@qikdev/vue-ui 0.1.56 → 0.1.57

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/lib.umd.js CHANGED
@@ -1,4 +1,4 @@
1
- var vw=Object.defineProperty,eC=Object.defineProperties;var tC=Object.getOwnPropertyDescriptors;var Jn=Object.getOwnPropertySymbols;var Na=Object.prototype.hasOwnProperty,Ta=Object.prototype.propertyIsEnumerable;var Sa=(w,n,se)=>n in w?vw(w,n,{enumerable:!0,configurable:!0,writable:!0,value:se}):w[n]=se,E=(w,n)=>{for(var se in n||(n={}))Na.call(n,se)&&Sa(w,se,n[se]);if(Jn)for(var se of Jn(n))Ta.call(n,se)&&Sa(w,se,n[se]);return w},fe=(w,n)=>eC(w,tC(n));var ao=(w,n)=>{var se={};for(var Ae in w)Na.call(w,Ae)&&n.indexOf(Ae)<0&&(se[Ae]=w[Ae]);if(w!=null&&Jn)for(var Ae of Jn(w))n.indexOf(Ae)<0&&Ta.call(w,Ae)&&(se[Ae]=w[Ae]);return se};(function(w,n){typeof exports=="object"&&typeof module!="undefined"?n(exports,require("vue"),require("@qikdev/sdk")):typeof define=="function"&&define.amd?define(["exports","vue","@qikdev/sdk"],n):(w=typeof globalThis!="undefined"?globalThis:w||self,n(w["@qikdev/vue-ui"]={},w.Vue,w["@qikdev/sdk"]))})(this,function(w,n,se){"use strict";const Ae="0.1.56";var nC="",k=(e,t)=>{const r=e.__vccOpts||e;for(const[o,l]of t)r[o]=l;return r};const Aa={},Da={class:"flex-column"};function Ma(e,t,r,o,l,i){return n.openBlock(),n.createElementBlock("div",Da,[n.renderSlot(e.$slots,"default",{},void 0,!0)])}var so=k(Aa,[["render",Ma],["__scopeId","data-v-203ea86f"]]),rC="";const Oa={},Fa={class:"flex-column-body"};function Ia(e,t,r,o,l,i){return n.openBlock(),n.createElementBlock("div",Fa,[n.renderSlot(e.$slots,"default",{},void 0,!0)])}var co=k(Oa,[["render",Ia],["__scopeId","data-v-64850355"]]),oC="";const $a={},La={class:"flex-column-header"};function Ua(e,t,r,o,l,i){return n.openBlock(),n.createElementBlock("div",La,[n.renderSlot(e.$slots,"default",{},void 0,!0)])}var uo=k($a,[["render",Ua],["__scopeId","data-v-10b28f00"]]),iC="";const Pa={},Ra={class:"flex-column-footer"};function ja(e,t,r,o,l,i){return n.openBlock(),n.createElementBlock("div",Ra,[n.renderSlot(e.$slots,"default",{},void 0,!0)])}var mo=k(Pa,[["render",ja],["__scopeId","data-v-68216a72"]]),lC="";const za={},qa={class:"flex-cell"};function Ha(e,t,r,o,l,i){return n.openBlock(),n.createElementBlock("div",qa,[n.renderSlot(e.$slots,"default",{},void 0,!0)])}var fo=k(za,[["render",Ha],["__scopeId","data-v-644bb279"]]),aC="";const Ga={},Wa={class:"flex-row"};function Za(e,t,r,o,l,i){return n.openBlock(),n.createElementBlock("div",Wa,[n.renderSlot(e.$slots,"default",{},void 0,!0)])}var ho=k(Ga,[["render",Za],["__scopeId","data-v-5b76ad1f"]]),sC="";const Ya={},Ka={class:"flex-spacer"};function Xa(e,t,r,o,l,i){return n.openBlock(),n.createElementBlock("div",Ka)}var po=k(Ya,[["render",Xa],["__scopeId","data-v-35b15579"]]),cC="";const Ja={},Qa={class:"panel"};function va(e,t,r,o,l,i){return n.openBlock(),n.createElementBlock("div",Qa,[n.renderSlot(e.$slots,"default",{},void 0,!0)])}var go=k(Ja,[["render",va],["__scopeId","data-v-50ae77fc"]]),dC="";const es={},ts={class:"panel-body"};function ns(e,t,r,o,l,i){return n.openBlock(),n.createElementBlock("div",ts,[n.renderSlot(e.$slots,"default",{},void 0,!0)])}var yo=k(es,[["render",ns],["__scopeId","data-v-c82dca76"]]),uC="";const rs={},os={class:"panel-header"};function is(e,t,r,o,l,i){return n.openBlock(),n.createElementBlock("div",os,[n.renderSlot(e.$slots,"default",{},void 0,!0)])}var _o=k(rs,[["render",is],["__scopeId","data-v-13bf11da"]]),mC="";const ls={},as={class:"panel-footer"};function ss(e,t,r,o,l,i){return n.openBlock(),n.createElementBlock("div",as,[n.renderSlot(e.$slots,"default",{},void 0,!0)])}var ko=k(ls,[["render",ss],["__scopeId","data-v-b4f4786a"]]),fC="";const cs={data(){return{activeIndex:0}},methods:{select(e){this.activeIndex=e}},computed:{tabs(){var e=this.$slots.default();return e}}},ds=["onClick"];function us(e,t,r,o,l,i){const a=n.resolveComponent("flex-row"),s=n.resolveComponent("flex-header"),c=n.resolveComponent("flex-column");return n.openBlock(),n.createBlock(c,null,{default:n.withCtx(()=>[n.createVNode(s,{class:"tabset-menu"},{default:n.withCtx(()=>[n.createVNode(a,null,{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(i.tabs,(d,u)=>(n.openBlock(),n.createElementBlock("a",{class:n.normalizeClass({active:u===l.activeIndex}),onClick:m=>i.select(u)},n.toDisplayString(d.props.heading),11,ds))),256))]),_:1})]),_:1}),n.createVNode(c,null,{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(i.tabs,(d,u)=>n.withDirectives((n.openBlock(),n.createBlock(c,{key:u},{default:n.withCtx(()=>[(n.openBlock(),n.createBlock(n.resolveDynamicComponent(d)))]),_:2},1024)),[[n.vShow,u===l.activeIndex]])),128))]),_:1})]),_:1})}var bo=k(cs,[["render",us],["__scopeId","data-v-1449f192"]]);const ms={props:{heading:{type:String,required:!0}},data(){return{isActive:!1}},computed:{active:{get(){return this.isActive},set(e){this.isActive=e}}}};function fs(e,t,r,o,l,i){const a=n.resolveComponent("flex-column");return n.openBlock(),n.createBlock(a,null,{default:n.withCtx(()=>[n.renderSlot(e.$slots,"default")]),_:3})}var xo=k(ms,[["render",fs]]),sn=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},hs=Array.isArray,Qn=hs,ps=typeof sn=="object"&&sn&&sn.Object===Object&&sn,gs=ps,ys=gs,_s=typeof self=="object"&&self&&self.Object===Object&&self,ks=ys||_s||Function("return this")(),cn=ks,bs=cn,xs=bs.Symbol,vn=xs,wo=vn,Co=Object.prototype,ws=Co.hasOwnProperty,Cs=Co.toString,$t=wo?wo.toStringTag:void 0;function Vs(e){var t=ws.call(e,$t),r=e[$t];try{e[$t]=void 0;var o=!0}catch{}var l=Cs.call(e);return o&&(t?e[$t]=r:delete e[$t]),l}var Es=Vs,Bs=Object.prototype,Ss=Bs.toString;function Ns(e){return Ss.call(e)}var Ts=Ns,Vo=vn,As=Es,Ds=Ts,Ms="[object Null]",Os="[object Undefined]",Eo=Vo?Vo.toStringTag:void 0;function Fs(e){return e==null?e===void 0?Os:Ms:Eo&&Eo in Object(e)?As(e):Ds(e)}var Bo=Fs;function Is(e){return e!=null&&typeof e=="object"}var $s=Is,Ls=Bo,Us=$s,Ps="[object Symbol]";function Rs(e){return typeof e=="symbol"||Us(e)&&Ls(e)==Ps}var dn=Rs,js=Qn,zs=dn,qs=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Hs=/^\w*$/;function Gs(e,t){if(js(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||zs(e)?!0:Hs.test(e)||!qs.test(e)||t!=null&&e in Object(t)}var Ws=Gs;function Zs(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var un=Zs,Ys=Bo,Ks=un,Xs="[object AsyncFunction]",Js="[object Function]",Qs="[object GeneratorFunction]",vs="[object Proxy]";function ec(e){if(!Ks(e))return!1;var t=Ys(e);return t==Js||t==Qs||t==Xs||t==vs}var tc=ec,nc=cn,rc=nc["__core-js_shared__"],oc=rc,er=oc,So=function(){var e=/[^.]+$/.exec(er&&er.keys&&er.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function ic(e){return!!So&&So in e}var lc=ic,ac=Function.prototype,sc=ac.toString;function cc(e){if(e!=null){try{return sc.call(e)}catch{}try{return e+""}catch{}}return""}var dc=cc,uc=tc,mc=lc,fc=un,hc=dc,pc=/[\\^$.*+?()[\]{}|]/g,gc=/^\[object .+?Constructor\]$/,yc=Function.prototype,_c=Object.prototype,kc=yc.toString,bc=_c.hasOwnProperty,xc=RegExp("^"+kc.call(bc).replace(pc,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function wc(e){if(!fc(e)||mc(e))return!1;var t=uc(e)?xc:gc;return t.test(hc(e))}var Cc=wc;function Vc(e,t){return e==null?void 0:e[t]}var Ec=Vc,Bc=Cc,Sc=Ec;function Nc(e,t){var r=Sc(e,t);return Bc(r)?r:void 0}var No=Nc,Tc=No,Ac=Tc(Object,"create"),mn=Ac,To=mn;function Dc(){this.__data__=To?To(null):{},this.size=0}var Mc=Dc;function Oc(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Fc=Oc,Ic=mn,$c="__lodash_hash_undefined__",Lc=Object.prototype,Uc=Lc.hasOwnProperty;function Pc(e){var t=this.__data__;if(Ic){var r=t[e];return r===$c?void 0:r}return Uc.call(t,e)?t[e]:void 0}var Rc=Pc,jc=mn,zc=Object.prototype,qc=zc.hasOwnProperty;function Hc(e){var t=this.__data__;return jc?t[e]!==void 0:qc.call(t,e)}var Gc=Hc,Wc=mn,Zc="__lodash_hash_undefined__";function Yc(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Wc&&t===void 0?Zc:t,this}var Kc=Yc,Xc=Mc,Jc=Fc,Qc=Rc,vc=Gc,ed=Kc;function pt(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var o=e[t];this.set(o[0],o[1])}}pt.prototype.clear=Xc,pt.prototype.delete=Jc,pt.prototype.get=Qc,pt.prototype.has=vc,pt.prototype.set=ed;var td=pt;function nd(){this.__data__=[],this.size=0}var rd=nd;function od(e,t){return e===t||e!==e&&t!==t}var id=od,ld=id;function ad(e,t){for(var r=e.length;r--;)if(ld(e[r][0],t))return r;return-1}var fn=ad,sd=fn,cd=Array.prototype,dd=cd.splice;function ud(e){var t=this.__data__,r=sd(t,e);if(r<0)return!1;var o=t.length-1;return r==o?t.pop():dd.call(t,r,1),--this.size,!0}var md=ud,fd=fn;function hd(e){var t=this.__data__,r=fd(t,e);return r<0?void 0:t[r][1]}var pd=hd,gd=fn;function yd(e){return gd(this.__data__,e)>-1}var _d=yd,kd=fn;function bd(e,t){var r=this.__data__,o=kd(r,e);return o<0?(++this.size,r.push([e,t])):r[o][1]=t,this}var xd=bd,wd=rd,Cd=md,Vd=pd,Ed=_d,Bd=xd;function gt(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var o=e[t];this.set(o[0],o[1])}}gt.prototype.clear=wd,gt.prototype.delete=Cd,gt.prototype.get=Vd,gt.prototype.has=Ed,gt.prototype.set=Bd;var Sd=gt,Nd=No,Td=cn,Ad=Nd(Td,"Map"),Dd=Ad,Ao=td,Md=Sd,Od=Dd;function Fd(){this.size=0,this.__data__={hash:new Ao,map:new(Od||Md),string:new Ao}}var Id=Fd;function $d(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var Ld=$d,Ud=Ld;function Pd(e,t){var r=e.__data__;return Ud(t)?r[typeof t=="string"?"string":"hash"]:r.map}var hn=Pd,Rd=hn;function jd(e){var t=Rd(this,e).delete(e);return this.size-=t?1:0,t}var zd=jd,qd=hn;function Hd(e){return qd(this,e).get(e)}var Gd=Hd,Wd=hn;function Zd(e){return Wd(this,e).has(e)}var Yd=Zd,Kd=hn;function Xd(e,t){var r=Kd(this,e),o=r.size;return r.set(e,t),this.size+=r.size==o?0:1,this}var Jd=Xd,Qd=Id,vd=zd,eu=Gd,tu=Yd,nu=Jd;function yt(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var o=e[t];this.set(o[0],o[1])}}yt.prototype.clear=Qd,yt.prototype.delete=vd,yt.prototype.get=eu,yt.prototype.has=tu,yt.prototype.set=nu;var ru=yt,Do=ru,ou="Expected a function";function tr(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(ou);var r=function(){var o=arguments,l=t?t.apply(this,o):o[0],i=r.cache;if(i.has(l))return i.get(l);var a=e.apply(this,o);return r.cache=i.set(l,a)||i,a};return r.cache=new(tr.Cache||Do),r}tr.Cache=Do;var iu=tr,lu=iu,au=500;function su(e){var t=lu(e,function(o){return r.size===au&&r.clear(),o}),r=t.cache;return t}var cu=su,du=cu,uu=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,mu=/\\(\\)?/g,fu=du(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(uu,function(r,o,l,i){t.push(l?i.replace(mu,"$1"):o||r)}),t}),hu=fu;function pu(e,t){for(var r=-1,o=e==null?0:e.length,l=Array(o);++r<o;)l[r]=t(e[r],r,e);return l}var gu=pu,Mo=vn,yu=gu,_u=Qn,ku=dn,bu=1/0,Oo=Mo?Mo.prototype:void 0,Fo=Oo?Oo.toString:void 0;function Io(e){if(typeof e=="string")return e;if(_u(e))return yu(e,Io)+"";if(ku(e))return Fo?Fo.call(e):"";var t=e+"";return t=="0"&&1/e==-bu?"-0":t}var xu=Io,wu=xu;function Cu(e){return e==null?"":wu(e)}var Vu=Cu,Eu=Qn,Bu=Ws,Su=hu,Nu=Vu;function Tu(e,t){return Eu(e)?e:Bu(e,t)?[e]:Su(Nu(e))}var Au=Tu,Du=dn,Mu=1/0;function Ou(e){if(typeof e=="string"||Du(e))return e;var t=e+"";return t=="0"&&1/e==-Mu?"-0":t}var Fu=Ou,Iu=Au,$u=Fu;function Lu(e,t){t=Iu(t,e);for(var r=0,o=t.length;e!=null&&r<o;)e=e[$u(t[r++])];return r&&r==o?e:void 0}var Uu=Lu,Pu=Uu;function Ru(e,t,r){var o=e==null?void 0:Pu(e,t);return o===void 0?r:o}var $o=Ru,Lt={props:{column:{type:Object,required:!0},row:{type:Object,required:!0},value:{}}},hC="";const ju={mixins:[Lt],computed:{type(){var e,t;return(t=(e=this.row)==null?void 0:e.meta)==null?void 0:t.type}}},zu={class:"table-image-cell"};function qu(e,t,r,o,l,i){const a=n.resolveComponent("ux-image"),s=n.resolveComponent("ux-icon");return n.openBlock(),n.createElementBlock("td",zu,[i.type=="image"||i.type=="video"?(n.openBlock(),n.createBlock(a,{key:0,item:e.row,type:i.type,width:50},null,8,["item","type"])):(n.openBlock(),n.createBlock(s,{key:1,icon:"fa-file"}))])}var Hu=k(ju,[["render",qu],["__scopeId","data-v-6dbe8d2c"]]),pC="";const Gu={data(){return{processing:!1}},mixins:[Lt],computed:{button(){return this.column.button},type(){var e,t;return(t=(e=this.row)==null?void 0:e.meta)==null?void 0:t.type}},methods:{async clicked(){this.processing=!0,await this.button.action(this.row),this.processing=!1}}},Wu={class:"table-button-cell"};function Zu(e,t,r,o,l,i){const a=n.resolveComponent("ux-icon"),s=n.resolveComponent("ux-button");return n.openBlock(),n.createElementBlock("td",Wu,[n.createVNode(s,{size:i.button.size,loading:l.processing,onClick:n.withModifiers(i.clicked,["stop","prevent"])},{default:n.withCtx(()=>[i.button.text?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[n.createTextVNode(n.toDisplayString(i.button.text),1)],64)):n.createCommentVNode("",!0),i.button.icon?(n.openBlock(),n.createBlock(a,{key:1,icon:i.button.icon,right:""},null,8,["icon"])):n.createCommentVNode("",!0)]),_:1},8,["size","loading","onClick"])])}var Yu=k(Gu,[["render",Zu],["__scopeId","data-v-3cbecb7e"]]);class rt extends Error{}class Ku extends rt{constructor(t){super(`Invalid DateTime: ${t.toMessage()}`)}}class Xu extends rt{constructor(t){super(`Invalid Interval: ${t.toMessage()}`)}}class Ju extends rt{constructor(t){super(`Invalid Duration: ${t.toMessage()}`)}}class Ut extends rt{}class Lo extends rt{constructor(t){super(`Invalid unit ${t}`)}}class Ee extends rt{}class Ze extends rt{constructor(){super("Zone is an abstract class")}}const x="numeric",De="short",be="long",nr={year:x,month:x,day:x},Uo={year:x,month:De,day:x},Qu={year:x,month:De,day:x,weekday:De},Po={year:x,month:be,day:x},Ro={year:x,month:be,day:x,weekday:be},jo={hour:x,minute:x},zo={hour:x,minute:x,second:x},qo={hour:x,minute:x,second:x,timeZoneName:De},Ho={hour:x,minute:x,second:x,timeZoneName:be},Go={hour:x,minute:x,hourCycle:"h23"},Wo={hour:x,minute:x,second:x,hourCycle:"h23"},Zo={hour:x,minute:x,second:x,hourCycle:"h23",timeZoneName:De},Yo={hour:x,minute:x,second:x,hourCycle:"h23",timeZoneName:be},Ko={year:x,month:x,day:x,hour:x,minute:x},Xo={year:x,month:x,day:x,hour:x,minute:x,second:x},Jo={year:x,month:De,day:x,hour:x,minute:x},Qo={year:x,month:De,day:x,hour:x,minute:x,second:x},vu={year:x,month:De,day:x,weekday:De,hour:x,minute:x},vo={year:x,month:be,day:x,hour:x,minute:x,timeZoneName:De},ei={year:x,month:be,day:x,hour:x,minute:x,second:x,timeZoneName:De},ti={year:x,month:be,day:x,weekday:be,hour:x,minute:x,timeZoneName:be},ni={year:x,month:be,day:x,weekday:be,hour:x,minute:x,second:x,timeZoneName:be};function I(e){return typeof e=="undefined"}function ot(e){return typeof e=="number"}function pn(e){return typeof e=="number"&&e%1===0}function em(e){return typeof e=="string"}function tm(e){return Object.prototype.toString.call(e)==="[object Date]"}function ri(){try{return typeof Intl!="undefined"&&!!Intl.RelativeTimeFormat}catch{return!1}}function nm(e){return Array.isArray(e)?e:[e]}function oi(e,t,r){if(e.length!==0)return e.reduce((o,l)=>{const i=[t(l),l];return o&&r(o[0],i[0])===o[0]?o:i},null)[1]}function rm(e,t){return t.reduce((r,o)=>(r[o]=e[o],r),{})}function _t(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function ze(e,t,r){return pn(e)&&e>=t&&e<=r}function om(e,t){return e-t*Math.floor(e/t)}function te(e,t=2){const r=e<0;let o;return r?o="-"+(""+-e).padStart(t,"0"):o=(""+e).padStart(t,"0"),o}function Ye(e){if(!(I(e)||e===null||e===""))return parseInt(e,10)}function it(e){if(!(I(e)||e===null||e===""))return parseFloat(e)}function rr(e){if(!(I(e)||e===null||e==="")){const t=parseFloat("0."+e)*1e3;return Math.floor(t)}}function or(e,t,r=!1){const o=10**t;return(r?Math.trunc:Math.round)(e*o)/o}function Pt(e){return e%4===0&&(e%100!==0||e%400===0)}function Rt(e){return Pt(e)?366:365}function gn(e,t){const r=om(t-1,12)+1,o=e+(t-r)/12;return r===2?Pt(o)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][r-1]}function ir(e){let t=Date.UTC(e.year,e.month-1,e.day,e.hour,e.minute,e.second,e.millisecond);return e.year<100&&e.year>=0&&(t=new Date(t),t.setUTCFullYear(t.getUTCFullYear()-1900)),+t}function yn(e){const t=(e+Math.floor(e/4)-Math.floor(e/100)+Math.floor(e/400))%7,r=e-1,o=(r+Math.floor(r/4)-Math.floor(r/100)+Math.floor(r/400))%7;return t===4||o===3?53:52}function lr(e){return e>99?e:e>60?1900+e:2e3+e}function ii(e,t,r,o=null){const l=new Date(e),i={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};o&&(i.timeZone=o);const a=E({timeZoneName:t},i),s=new Intl.DateTimeFormat(r,a).formatToParts(l).find(c=>c.type.toLowerCase()==="timezonename");return s?s.value:null}function _n(e,t){let r=parseInt(e,10);Number.isNaN(r)&&(r=0);const o=parseInt(t,10)||0,l=r<0||Object.is(r,-0)?-o:o;return r*60+l}function li(e){const t=Number(e);if(typeof e=="boolean"||e===""||Number.isNaN(t))throw new Ee(`Invalid unit value ${e}`);return t}function kn(e,t){const r={};for(const o in e)if(_t(e,o)){const l=e[o];if(l==null)continue;r[t(o)]=li(l)}return r}function bn(e,t){const r=Math.trunc(Math.abs(e/60)),o=Math.trunc(Math.abs(e%60)),l=e>=0?"+":"-";switch(t){case"short":return`${l}${te(r,2)}:${te(o,2)}`;case"narrow":return`${l}${r}${o>0?`:${o}`:""}`;case"techie":return`${l}${te(r,2)}${te(o,2)}`;default:throw new RangeError(`Value format ${t} is out of range for property format`)}}function xn(e){return rm(e,["hour","minute","second","millisecond"])}const im=/[A-Za-z_+-]{1,256}(:?\/[A-Za-z0-9_+-]{1,256}(\/[A-Za-z0-9_+-]{1,256})?)?/,lm=["January","February","March","April","May","June","July","August","September","October","November","December"],ai=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],am=["J","F","M","A","M","J","J","A","S","O","N","D"];function si(e){switch(e){case"narrow":return[...am];case"short":return[...ai];case"long":return[...lm];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}const ci=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],di=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],sm=["M","T","W","T","F","S","S"];function ui(e){switch(e){case"narrow":return[...sm];case"short":return[...di];case"long":return[...ci];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const mi=["AM","PM"],cm=["Before Christ","Anno Domini"],dm=["BC","AD"],um=["B","A"];function fi(e){switch(e){case"narrow":return[...um];case"short":return[...dm];case"long":return[...cm];default:return null}}function mm(e){return mi[e.hour<12?0:1]}function fm(e,t){return ui(t)[e.weekday-1]}function hm(e,t){return si(t)[e.month-1]}function pm(e,t){return fi(t)[e.year<0?0:1]}function gm(e,t,r="always",o=!1){const l={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},i=["hours","minutes","seconds"].indexOf(e)===-1;if(r==="auto"&&i){const m=e==="days";switch(t){case 1:return m?"tomorrow":`next ${l[e][0]}`;case-1:return m?"yesterday":`last ${l[e][0]}`;case 0:return m?"today":`this ${l[e][0]}`}}const a=Object.is(t,-0)||t<0,s=Math.abs(t),c=s===1,d=l[e],u=o?c?d[1]:d[2]||d[1]:c?l[e][0]:e;return a?`${s} ${u} ago`:`in ${s} ${u}`}function hi(e,t){let r="";for(const o of e)o.literal?r+=o.val:r+=t(o.val);return r}const ym={D:nr,DD:Uo,DDD:Po,DDDD:Ro,t:jo,tt:zo,ttt:qo,tttt:Ho,T:Go,TT:Wo,TTT:Zo,TTTT:Yo,f:Ko,ff:Jo,fff:vo,ffff:ti,F:Xo,FF:Qo,FFF:ei,FFFF:ni};class he{static create(t,r={}){return new he(t,r)}static parseFormat(t){let r=null,o="",l=!1;const i=[];for(let a=0;a<t.length;a++){const s=t.charAt(a);s==="'"?(o.length>0&&i.push({literal:l,val:o}),r=null,o="",l=!l):l||s===r?o+=s:(o.length>0&&i.push({literal:!1,val:o}),o=s,r=s)}return o.length>0&&i.push({literal:l,val:o}),i}static macroTokenToFormatOpts(t){return ym[t]}constructor(t,r){this.opts=r,this.loc=t,this.systemLoc=null}formatWithSystemDefault(t,r){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(t,E(E({},this.opts),r)).format()}formatDateTime(t,r={}){return this.loc.dtFormatter(t,E(E({},this.opts),r)).format()}formatDateTimeParts(t,r={}){return this.loc.dtFormatter(t,E(E({},this.opts),r)).formatToParts()}resolvedOptions(t,r={}){return this.loc.dtFormatter(t,E(E({},this.opts),r)).resolvedOptions()}num(t,r=0){if(this.opts.forceSimple)return te(t,r);const o=E({},this.opts);return r>0&&(o.padTo=r),this.loc.numberFormatter(o).format(t)}formatDateTimeFromString(t,r){const o=this.loc.listingMode()==="en",l=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",i=(h,p)=>this.loc.extract(t,h,p),a=h=>t.isOffsetFixed&&t.offset===0&&h.allowZ?"Z":t.isValid?t.zone.formatOffset(t.ts,h.format):"",s=()=>o?mm(t):i({hour:"numeric",hourCycle:"h12"},"dayperiod"),c=(h,p)=>o?hm(t,h):i(p?{month:h}:{month:h,day:"numeric"},"month"),d=(h,p)=>o?fm(t,h):i(p?{weekday:h}:{weekday:h,month:"long",day:"numeric"},"weekday"),u=h=>{const p=he.macroTokenToFormatOpts(h);return p?this.formatWithSystemDefault(t,p):h},m=h=>o?pm(t,h):i({era:h},"era"),f=h=>{switch(h){case"S":return this.num(t.millisecond);case"u":case"SSS":return this.num(t.millisecond,3);case"s":return this.num(t.second);case"ss":return this.num(t.second,2);case"uu":return this.num(Math.floor(t.millisecond/10),2);case"uuu":return this.num(Math.floor(t.millisecond/100));case"m":return this.num(t.minute);case"mm":return this.num(t.minute,2);case"h":return this.num(t.hour%12===0?12:t.hour%12);case"hh":return this.num(t.hour%12===0?12:t.hour%12,2);case"H":return this.num(t.hour);case"HH":return this.num(t.hour,2);case"Z":return a({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return a({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return a({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return t.zone.offsetName(t.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return t.zone.offsetName(t.ts,{format:"long",locale:this.loc.locale});case"z":return t.zoneName;case"a":return s();case"d":return l?i({day:"numeric"},"day"):this.num(t.day);case"dd":return l?i({day:"2-digit"},"day"):this.num(t.day,2);case"c":return this.num(t.weekday);case"ccc":return d("short",!0);case"cccc":return d("long",!0);case"ccccc":return d("narrow",!0);case"E":return this.num(t.weekday);case"EEE":return d("short",!1);case"EEEE":return d("long",!1);case"EEEEE":return d("narrow",!1);case"L":return l?i({month:"numeric",day:"numeric"},"month"):this.num(t.month);case"LL":return l?i({month:"2-digit",day:"numeric"},"month"):this.num(t.month,2);case"LLL":return c("short",!0);case"LLLL":return c("long",!0);case"LLLLL":return c("narrow",!0);case"M":return l?i({month:"numeric"},"month"):this.num(t.month);case"MM":return l?i({month:"2-digit"},"month"):this.num(t.month,2);case"MMM":return c("short",!1);case"MMMM":return c("long",!1);case"MMMMM":return c("narrow",!1);case"y":return l?i({year:"numeric"},"year"):this.num(t.year);case"yy":return l?i({year:"2-digit"},"year"):this.num(t.year.toString().slice(-2),2);case"yyyy":return l?i({year:"numeric"},"year"):this.num(t.year,4);case"yyyyyy":return l?i({year:"numeric"},"year"):this.num(t.year,6);case"G":return m("short");case"GG":return m("long");case"GGGGG":return m("narrow");case"kk":return this.num(t.weekYear.toString().slice(-2),2);case"kkkk":return this.num(t.weekYear,4);case"W":return this.num(t.weekNumber);case"WW":return this.num(t.weekNumber,2);case"o":return this.num(t.ordinal);case"ooo":return this.num(t.ordinal,3);case"q":return this.num(t.quarter);case"qq":return this.num(t.quarter,2);case"X":return this.num(Math.floor(t.ts/1e3));case"x":return this.num(t.ts);default:return u(h)}};return hi(he.parseFormat(r),f)}formatDurationFromString(t,r){const o=c=>{switch(c[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year";default:return null}},l=c=>d=>{const u=o(d);return u?this.num(c.get(u),d.length):d},i=he.parseFormat(r),a=i.reduce((c,{literal:d,val:u})=>d?c:c.concat(u),[]),s=t.shiftTo(...a.map(o).filter(c=>c));return hi(i,l(s))}}class Me{constructor(t,r){this.reason=t,this.explanation=r}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}class jt{get type(){throw new Ze}get name(){throw new Ze}get isUniversal(){throw new Ze}offsetName(t,r){throw new Ze}formatOffset(t,r){throw new Ze}offset(t){throw new Ze}equals(t){throw new Ze}get isValid(){throw new Ze}}let ar=null;class sr extends jt{static get instance(){return ar===null&&(ar=new sr),ar}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(t,{format:r,locale:o}){return ii(t,r,o)}formatOffset(t,r){return bn(this.offset(t),r)}offset(t){return-new Date(t).getTimezoneOffset()}equals(t){return t.type==="system"}get isValid(){return!0}}let wn={};function _m(e){return wn[e]||(wn[e]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})),wn[e]}const km={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function bm(e,t){const r=e.format(t).replace(/\u200E/g,""),o=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(r),[,l,i,a,s,c,d,u]=o;return[a,l,i,s,c,d,u]}function xm(e,t){const r=e.formatToParts(t),o=[];for(let l=0;l<r.length;l++){const{type:i,value:a}=r[l],s=km[i];i==="era"?o[s]=a:I(s)||(o[s]=parseInt(a,10))}return o}let Cn={};class qe extends jt{static create(t){return Cn[t]||(Cn[t]=new qe(t)),Cn[t]}static resetCache(){Cn={},wn={}}static isValidSpecifier(t){return this.isValidZone(t)}static isValidZone(t){if(!t)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:t}).format(),!0}catch{return!1}}constructor(t){super(),this.zoneName=t,this.valid=qe.isValidZone(t)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(t,{format:r,locale:o}){return ii(t,r,o,this.name)}formatOffset(t,r){return bn(this.offset(t),r)}offset(t){const r=new Date(t);if(isNaN(r))return NaN;const o=_m(this.name);let[l,i,a,s,c,d,u]=o.formatToParts?xm(o,r):bm(o,r);s==="BC"&&(l=-Math.abs(l)+1);const f=ir({year:l,month:i,day:a,hour:c===24?0:c,minute:d,second:u,millisecond:0});let h=+r;const p=h%1e3;return h-=p>=0?p:1e3+p,(f-h)/(60*1e3)}equals(t){return t.type==="iana"&&t.name===this.name}get isValid(){return this.valid}}let cr=null;class de extends jt{static get utcInstance(){return cr===null&&(cr=new de(0)),cr}static instance(t){return t===0?de.utcInstance:new de(t)}static parseSpecifier(t){if(t){const r=t.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(r)return new de(_n(r[1],r[2]))}return null}constructor(t){super(),this.fixed=t}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${bn(this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(t,r){return bn(this.fixed,r)}get isUniversal(){return!0}offset(){return this.fixed}equals(t){return t.type==="fixed"&&t.fixed===this.fixed}get isValid(){return!0}}class wm extends jt{constructor(t){super(),this.zoneName=t}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}function Ke(e,t){if(I(e)||e===null)return t;if(e instanceof jt)return e;if(em(e)){const r=e.toLowerCase();return r==="local"||r==="system"?t:r==="utc"||r==="gmt"?de.utcInstance:de.parseSpecifier(r)||qe.create(e)}else return ot(e)?de.instance(e):typeof e=="object"&&e.offset&&typeof e.offset=="number"?e:new wm(e)}let pi=()=>Date.now(),gi="system",yi=null,_i=null,ki=null,bi;class re{static get now(){return pi}static set now(t){pi=t}static set defaultZone(t){gi=t}static get defaultZone(){return Ke(gi,sr.instance)}static get defaultLocale(){return yi}static set defaultLocale(t){yi=t}static get defaultNumberingSystem(){return _i}static set defaultNumberingSystem(t){_i=t}static get defaultOutputCalendar(){return ki}static set defaultOutputCalendar(t){ki=t}static get throwOnInvalid(){return bi}static set throwOnInvalid(t){bi=t}static resetCaches(){Z.resetCache(),qe.resetCache()}}let xi={};function Cm(e,t={}){const r=JSON.stringify([e,t]);let o=xi[r];return o||(o=new Intl.ListFormat(e,t),xi[r]=o),o}let dr={};function ur(e,t={}){const r=JSON.stringify([e,t]);let o=dr[r];return o||(o=new Intl.DateTimeFormat(e,t),dr[r]=o),o}let mr={};function Vm(e,t={}){const r=JSON.stringify([e,t]);let o=mr[r];return o||(o=new Intl.NumberFormat(e,t),mr[r]=o),o}let fr={};function Em(e,t={}){const a=t,{base:r}=a,o=ao(a,["base"]),l=JSON.stringify([e,o]);let i=fr[l];return i||(i=new Intl.RelativeTimeFormat(e,t),fr[l]=i),i}let zt=null;function Bm(){return zt||(zt=new Intl.DateTimeFormat().resolvedOptions().locale,zt)}function Sm(e){const t=e.indexOf("-u-");if(t===-1)return[e];{let r;const o=e.substring(0,t);try{r=ur(e).resolvedOptions()}catch{r=ur(o).resolvedOptions()}const{numberingSystem:l,calendar:i}=r;return[o,l,i]}}function Nm(e,t,r){return(r||t)&&(e+="-u",r&&(e+=`-ca-${r}`),t&&(e+=`-nu-${t}`)),e}function Tm(e){const t=[];for(let r=1;r<=12;r++){const o=A.utc(2016,r,1);t.push(e(o))}return t}function Am(e){const t=[];for(let r=1;r<=7;r++){const o=A.utc(2016,11,13+r);t.push(e(o))}return t}function Vn(e,t,r,o,l){const i=e.listingMode(r);return i==="error"?null:i==="en"?o(t):l(t)}function Dm(e){return e.numberingSystem&&e.numberingSystem!=="latn"?!1:e.numberingSystem==="latn"||!e.locale||e.locale.startsWith("en")||new Intl.DateTimeFormat(e.intl).resolvedOptions().numberingSystem==="latn"}class Mm{constructor(t,r,o){this.padTo=o.padTo||0,this.floor=o.floor||!1;const s=o,{padTo:l,floor:i}=s,a=ao(s,["padTo","floor"]);if(!r||Object.keys(a).length>0){const c=E({useGrouping:!1},o);o.padTo>0&&(c.minimumIntegerDigits=o.padTo),this.inf=Vm(t,c)}}format(t){if(this.inf){const r=this.floor?Math.floor(t):t;return this.inf.format(r)}else{const r=this.floor?Math.floor(t):or(t,3);return te(r,this.padTo)}}}class Om{constructor(t,r,o){this.opts=o;let l;if(t.zone.isUniversal){const a=-1*(t.offset/60),s=a>=0?`Etc/GMT+${a}`:`Etc/GMT${a}`;t.offset!==0&&qe.create(s).valid?(l=s,this.dt=t):(l="UTC",o.timeZoneName?this.dt=t:this.dt=t.offset===0?t:A.fromMillis(t.ts+t.offset*60*1e3))}else t.zone.type==="system"?this.dt=t:(this.dt=t,l=t.zone.name);const i=E({},this.opts);l&&(i.timeZone=l),this.dtf=ur(r,i)}format(){return this.dtf.format(this.dt.toJSDate())}formatToParts(){return this.dtf.formatToParts(this.dt.toJSDate())}resolvedOptions(){return this.dtf.resolvedOptions()}}class Fm{constructor(t,r,o){this.opts=E({style:"long"},o),!r&&ri()&&(this.rtf=Em(t,o))}format(t,r){return this.rtf?this.rtf.format(t,r):gm(r,t,this.opts.numeric,this.opts.style!=="long")}formatToParts(t,r){return this.rtf?this.rtf.formatToParts(t,r):[]}}class Z{static fromOpts(t){return Z.create(t.locale,t.numberingSystem,t.outputCalendar,t.defaultToEN)}static create(t,r,o,l=!1){const i=t||re.defaultLocale,a=i||(l?"en-US":Bm()),s=r||re.defaultNumberingSystem,c=o||re.defaultOutputCalendar;return new Z(a,s,c,i)}static resetCache(){zt=null,dr={},mr={},fr={}}static fromObject({locale:t,numberingSystem:r,outputCalendar:o}={}){return Z.create(t,r,o)}constructor(t,r,o,l){const[i,a,s]=Sm(t);this.locale=i,this.numberingSystem=r||a||null,this.outputCalendar=o||s||null,this.intl=Nm(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=l,this.fastNumbersCached=null}get fastNumbers(){return this.fastNumbersCached==null&&(this.fastNumbersCached=Dm(this)),this.fastNumbersCached}listingMode(){const t=this.isEnglish(),r=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return t&&r?"en":"intl"}clone(t){return!t||Object.getOwnPropertyNames(t).length===0?this:Z.create(t.locale||this.specifiedLocale,t.numberingSystem||this.numberingSystem,t.outputCalendar||this.outputCalendar,t.defaultToEN||!1)}redefaultToEN(t={}){return this.clone(fe(E({},t),{defaultToEN:!0}))}redefaultToSystem(t={}){return this.clone(fe(E({},t),{defaultToEN:!1}))}months(t,r=!1,o=!0){return Vn(this,t,o,si,()=>{const l=r?{month:t,day:"numeric"}:{month:t},i=r?"format":"standalone";return this.monthsCache[i][t]||(this.monthsCache[i][t]=Tm(a=>this.extract(a,l,"month"))),this.monthsCache[i][t]})}weekdays(t,r=!1,o=!0){return Vn(this,t,o,ui,()=>{const l=r?{weekday:t,year:"numeric",month:"long",day:"numeric"}:{weekday:t},i=r?"format":"standalone";return this.weekdaysCache[i][t]||(this.weekdaysCache[i][t]=Am(a=>this.extract(a,l,"weekday"))),this.weekdaysCache[i][t]})}meridiems(t=!0){return Vn(this,void 0,t,()=>mi,()=>{if(!this.meridiemCache){const r={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[A.utc(2016,11,13,9),A.utc(2016,11,13,19)].map(o=>this.extract(o,r,"dayperiod"))}return this.meridiemCache})}eras(t,r=!0){return Vn(this,t,r,fi,()=>{const o={era:t};return this.eraCache[t]||(this.eraCache[t]=[A.utc(-40,1,1),A.utc(2017,1,1)].map(l=>this.extract(l,o,"era"))),this.eraCache[t]})}extract(t,r,o){const l=this.dtFormatter(t,r),i=l.formatToParts(),a=i.find(s=>s.type.toLowerCase()===o);return a?a.value:null}numberFormatter(t={}){return new Mm(this.intl,t.forceSimple||this.fastNumbers,t)}dtFormatter(t,r={}){return new Om(t,this.intl,r)}relFormatter(t={}){return new Fm(this.intl,this.isEnglish(),t)}listFormatter(t={}){return Cm(this.intl,t)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")}equals(t){return this.locale===t.locale&&this.numberingSystem===t.numberingSystem&&this.outputCalendar===t.outputCalendar}}function kt(...e){const t=e.reduce((r,o)=>r+o.source,"");return RegExp(`^${t}$`)}function lt(...e){return t=>e.reduce(([r,o,l],i)=>{const[a,s,c]=i(t,l);return[E(E({},r),a),o||s,c]},[{},null,1]).slice(0,2)}function bt(e,...t){if(e==null)return[null,null];for(const[r,o]of t){const l=r.exec(e);if(l)return o(l)}return[null,null]}function wi(...e){return(t,r)=>{const o={};let l;for(l=0;l<e.length;l++)o[e[l]]=Ye(t[r+l]);return[o,null,r+l]}}const Ci=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,hr=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,Vi=RegExp(`${hr.source}${Ci.source}?`),pr=RegExp(`(?:T${Vi.source})?`),Im=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,$m=/(\d{4})-?W(\d\d)(?:-?(\d))?/,Lm=/(\d{4})-?(\d{3})/,Um=wi("weekYear","weekNumber","weekDay"),Pm=wi("year","ordinal"),Rm=/(\d{4})-(\d\d)-(\d\d)/,Ei=RegExp(`${hr.source} ?(?:${Ci.source}|(${im.source}))?`),jm=RegExp(`(?: ${Ei.source})?`);function xt(e,t,r){const o=e[t];return I(o)?r:Ye(o)}function Bi(e,t){return[{year:xt(e,t),month:xt(e,t+1,1),day:xt(e,t+2,1)},null,t+3]}function at(e,t){return[{hours:xt(e,t,0),minutes:xt(e,t+1,0),seconds:xt(e,t+2,0),milliseconds:rr(e[t+3])},null,t+4]}function wt(e,t){const r=!e[t]&&!e[t+1],o=_n(e[t+1],e[t+2]),l=r?null:de.instance(o);return[{},l,t+3]}function Si(e,t){const r=e[t]?qe.create(e[t]):null;return[{},r,t+1]}const zm=RegExp(`^T?${hr.source}$`),qm=/^-?P(?:(?:(-?\d{1,9}(?:\.\d{1,9})?)Y)?(?:(-?\d{1,9}(?:\.\d{1,9})?)M)?(?:(-?\d{1,9}(?:\.\d{1,9})?)W)?(?:(-?\d{1,9}(?:\.\d{1,9})?)D)?(?:T(?:(-?\d{1,9}(?:\.\d{1,9})?)H)?(?:(-?\d{1,9}(?:\.\d{1,9})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,9}))?S)?)?)$/;function Hm(e){const[t,r,o,l,i,a,s,c,d]=e,u=t[0]==="-",m=c&&c[0]==="-",f=(h,p=!1)=>h!==void 0&&(p||h&&u)?-h:h;return[{years:f(it(r)),months:f(it(o)),weeks:f(it(l)),days:f(it(i)),hours:f(it(a)),minutes:f(it(s)),seconds:f(it(c),c==="-0"),milliseconds:f(rr(d),m)}]}const Gm={GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function gr(e,t,r,o,l,i,a){const s={year:t.length===2?lr(Ye(t)):Ye(t),month:ai.indexOf(r)+1,day:Ye(o),hour:Ye(l),minute:Ye(i)};return a&&(s.second=Ye(a)),e&&(s.weekday=e.length>3?ci.indexOf(e)+1:di.indexOf(e)+1),s}const Wm=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function Zm(e){const[,t,r,o,l,i,a,s,c,d,u,m]=e,f=gr(t,l,o,r,i,a,s);let h;return c?h=Gm[c]:d?h=0:h=_n(u,m),[f,new de(h)]}function Ym(e){return e.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}const Km=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,Xm=/^(Monday|Tuesday|Wedsday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,Jm=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function Ni(e){const[,t,r,o,l,i,a,s]=e;return[gr(t,l,o,r,i,a,s),de.utcInstance]}function Qm(e){const[,t,r,o,l,i,a,s]=e;return[gr(t,s,r,o,l,i,a),de.utcInstance]}const vm=kt(Im,pr),ef=kt($m,pr),tf=kt(Lm,pr),nf=kt(Vi),rf=lt(Bi,at,wt),of=lt(Um,at,wt),lf=lt(Pm,at,wt),af=lt(at,wt);function sf(e){return bt(e,[vm,rf],[ef,of],[tf,lf],[nf,af])}function cf(e){return bt(Ym(e),[Wm,Zm])}function df(e){return bt(e,[Km,Ni],[Xm,Ni],[Jm,Qm])}function uf(e){return bt(e,[qm,Hm])}const mf=lt(at);function ff(e){return bt(e,[zm,mf])}const hf=kt(Rm,jm),pf=kt(Ei),gf=lt(Bi,at,wt,Si),yf=lt(at,wt,Si);function _f(e){return bt(e,[hf,gf],[pf,yf])}const kf="Invalid Duration",Ti={weeks:{days:7,hours:7*24,minutes:7*24*60,seconds:7*24*60*60,milliseconds:7*24*60*60*1e3},days:{hours:24,minutes:24*60,seconds:24*60*60,milliseconds:24*60*60*1e3},hours:{minutes:60,seconds:60*60,milliseconds:60*60*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},bf=E({years:{quarters:4,months:12,weeks:52,days:365,hours:365*24,minutes:365*24*60,seconds:365*24*60*60,milliseconds:365*24*60*60*1e3},quarters:{months:3,weeks:13,days:91,hours:91*24,minutes:91*24*60,seconds:91*24*60*60,milliseconds:91*24*60*60*1e3},months:{weeks:4,days:30,hours:30*24,minutes:30*24*60,seconds:30*24*60*60,milliseconds:30*24*60*60*1e3}},Ti),Be=146097/400,Ct=146097/4800,xf=E({years:{quarters:4,months:12,weeks:Be/7,days:Be,hours:Be*24,minutes:Be*24*60,seconds:Be*24*60*60,milliseconds:Be*24*60*60*1e3},quarters:{months:3,weeks:Be/28,days:Be/4,hours:Be*24/4,minutes:Be*24*60/4,seconds:Be*24*60*60/4,milliseconds:Be*24*60*60*1e3/4},months:{weeks:Ct/7,days:Ct,hours:Ct*24,minutes:Ct*24*60,seconds:Ct*24*60*60,milliseconds:Ct*24*60*60*1e3}},Ti),st=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],wf=st.slice(0).reverse();function ct(e,t,r=!1){const o={values:r?t.values:E(E({},e.values),t.values||{}),loc:e.loc.clone(t.loc),conversionAccuracy:t.conversionAccuracy||e.conversionAccuracy};return new L(o)}function Cf(e){return e<0?Math.floor(e):Math.ceil(e)}function Ai(e,t,r,o,l){const i=e[l][r],a=t[r]/i,s=Math.sign(a)===Math.sign(o[l]),c=!s&&o[l]!==0&&Math.abs(a)<=1?Cf(a):Math.trunc(a);o[l]+=c,t[r]-=c*i}function Vf(e,t){wf.reduce((r,o)=>I(t[o])?r:(r&&Ai(e,t,r,t,o),o),null)}class L{constructor(t){const r=t.conversionAccuracy==="longterm"||!1;this.values=t.values,this.loc=t.loc||Z.create(),this.conversionAccuracy=r?"longterm":"casual",this.invalid=t.invalid||null,this.matrix=r?xf:bf,this.isLuxonDuration=!0}static fromMillis(t,r){return L.fromObject({milliseconds:t},r)}static fromObject(t,r={}){if(t==null||typeof t!="object")throw new Ee(`Duration.fromObject: argument expected to be an object, got ${t===null?"null":typeof t}`);return new L({values:kn(t,L.normalizeUnit),loc:Z.fromObject(r),conversionAccuracy:r.conversionAccuracy})}static fromDurationLike(t){if(ot(t))return L.fromMillis(t);if(L.isDuration(t))return t;if(typeof t=="object")return L.fromObject(t);throw new Ee(`Unknown duration argument ${t} of type ${typeof t}`)}static fromISO(t,r){const[o]=uf(t);return o?L.fromObject(o,r):L.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static fromISOTime(t,r){const[o]=ff(t);return o?L.fromObject(o,r):L.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static invalid(t,r=null){if(!t)throw new Ee("need to specify a reason the Duration is invalid");const o=t instanceof Me?t:new Me(t,r);if(re.throwOnInvalid)throw new Ju(o);return new L({invalid:o})}static normalizeUnit(t){const r={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[t&&t.toLowerCase()];if(!r)throw new Lo(t);return r}static isDuration(t){return t&&t.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(t,r={}){const o=fe(E({},r),{floor:r.round!==!1&&r.floor!==!1});return this.isValid?he.create(this.loc,o).formatDurationFromString(this,t):kf}toHuman(t={}){const r=st.map(o=>{const l=this.values[o];return I(l)?null:this.loc.numberFormatter(fe(E({style:"unit",unitDisplay:"long"},t),{unit:o.slice(0,-1)})).format(l)}).filter(o=>o);return this.loc.listFormatter(E({type:"conjunction",style:t.listStyle||"narrow"},t)).format(r)}toObject(){return this.isValid?E({},this.values):{}}toISO(){if(!this.isValid)return null;let t="P";return this.years!==0&&(t+=this.years+"Y"),(this.months!==0||this.quarters!==0)&&(t+=this.months+this.quarters*3+"M"),this.weeks!==0&&(t+=this.weeks+"W"),this.days!==0&&(t+=this.days+"D"),(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)&&(t+="T"),this.hours!==0&&(t+=this.hours+"H"),this.minutes!==0&&(t+=this.minutes+"M"),(this.seconds!==0||this.milliseconds!==0)&&(t+=or(this.seconds+this.milliseconds/1e3,3)+"S"),t==="P"&&(t+="T0S"),t}toISOTime(t={}){if(!this.isValid)return null;const r=this.toMillis();if(r<0||r>=864e5)return null;t=E({suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended"},t);const o=this.shiftTo("hours","minutes","seconds","milliseconds");let l=t.format==="basic"?"hhmm":"hh:mm";(!t.suppressSeconds||o.seconds!==0||o.milliseconds!==0)&&(l+=t.format==="basic"?"ss":":ss",(!t.suppressMilliseconds||o.milliseconds!==0)&&(l+=".SSS"));let i=o.toFormat(l);return t.includePrefix&&(i="T"+i),i}toJSON(){return this.toISO()}toString(){return this.toISO()}toMillis(){return this.as("milliseconds")}valueOf(){return this.toMillis()}plus(t){if(!this.isValid)return this;const r=L.fromDurationLike(t),o={};for(const l of st)(_t(r.values,l)||_t(this.values,l))&&(o[l]=r.get(l)+this.get(l));return ct(this,{values:o},!0)}minus(t){if(!this.isValid)return this;const r=L.fromDurationLike(t);return this.plus(r.negate())}mapUnits(t){if(!this.isValid)return this;const r={};for(const o of Object.keys(this.values))r[o]=li(t(this.values[o],o));return ct(this,{values:r},!0)}get(t){return this[L.normalizeUnit(t)]}set(t){if(!this.isValid)return this;const r=E(E({},this.values),kn(t,L.normalizeUnit));return ct(this,{values:r})}reconfigure({locale:t,numberingSystem:r,conversionAccuracy:o}={}){const l=this.loc.clone({locale:t,numberingSystem:r}),i={loc:l};return o&&(i.conversionAccuracy=o),ct(this,i)}as(t){return this.isValid?this.shiftTo(t).get(t):NaN}normalize(){if(!this.isValid)return this;const t=this.toObject();return Vf(this.matrix,t),ct(this,{values:t},!0)}shiftTo(...t){if(!this.isValid)return this;if(t.length===0)return this;t=t.map(a=>L.normalizeUnit(a));const r={},o={},l=this.toObject();let i;for(const a of st)if(t.indexOf(a)>=0){i=a;let s=0;for(const d in o)s+=this.matrix[d][a]*o[d],o[d]=0;ot(l[a])&&(s+=l[a]);const c=Math.trunc(s);r[a]=c,o[a]=(s*1e3-c*1e3)/1e3;for(const d in l)st.indexOf(d)>st.indexOf(a)&&Ai(this.matrix,l,d,r,a)}else ot(l[a])&&(o[a]=l[a]);for(const a in o)o[a]!==0&&(r[i]+=a===i?o[a]:o[a]/this.matrix[i][a]);return ct(this,{values:r},!0).normalize()}negate(){if(!this.isValid)return this;const t={};for(const r of Object.keys(this.values))t[r]=this.values[r]===0?0:-this.values[r];return ct(this,{values:t},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(t){if(!this.isValid||!t.isValid||!this.loc.equals(t.loc))return!1;function r(o,l){return o===void 0||o===0?l===void 0||l===0:o===l}for(const o of st)if(!r(this.values[o],t.values[o]))return!1;return!0}}const qt="Invalid Interval";function Ef(e,t){return!e||!e.isValid?Y.invalid("missing or invalid start"):!t||!t.isValid?Y.invalid("missing or invalid end"):t<e?Y.invalid("end before start",`The end of an interval must be after its start, but you had start=${e.toISO()} and end=${t.toISO()}`):null}class Y{constructor(t){this.s=t.start,this.e=t.end,this.invalid=t.invalid||null,this.isLuxonInterval=!0}static invalid(t,r=null){if(!t)throw new Ee("need to specify a reason the Interval is invalid");const o=t instanceof Me?t:new Me(t,r);if(re.throwOnInvalid)throw new Xu(o);return new Y({invalid:o})}static fromDateTimes(t,r){const o=Wt(t),l=Wt(r),i=Ef(o,l);return i==null?new Y({start:o,end:l}):i}static after(t,r){const o=L.fromDurationLike(r),l=Wt(t);return Y.fromDateTimes(l,l.plus(o))}static before(t,r){const o=L.fromDurationLike(r),l=Wt(t);return Y.fromDateTimes(l.minus(o),l)}static fromISO(t,r){const[o,l]=(t||"").split("/",2);if(o&&l){let i,a;try{i=A.fromISO(o,r),a=i.isValid}catch{a=!1}let s,c;try{s=A.fromISO(l,r),c=s.isValid}catch{c=!1}if(a&&c)return Y.fromDateTimes(i,s);if(a){const d=L.fromISO(l,r);if(d.isValid)return Y.after(i,d)}else if(c){const d=L.fromISO(o,r);if(d.isValid)return Y.before(s,d)}}return Y.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static isInterval(t){return t&&t.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get isValid(){return this.invalidReason===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(t="milliseconds"){return this.isValid?this.toDuration(t).get(t):NaN}count(t="milliseconds"){if(!this.isValid)return NaN;const r=this.start.startOf(t),o=this.end.startOf(t);return Math.floor(o.diff(r,t).get(t))+1}hasSame(t){return this.isValid?this.isEmpty()||this.e.minus(1).hasSame(this.s,t):!1}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(t){return this.isValid?this.s>t:!1}isBefore(t){return this.isValid?this.e<=t:!1}contains(t){return this.isValid?this.s<=t&&this.e>t:!1}set({start:t,end:r}={}){return this.isValid?Y.fromDateTimes(t||this.s,r||this.e):this}splitAt(...t){if(!this.isValid)return[];const r=t.map(Wt).filter(a=>this.contains(a)).sort(),o=[];let{s:l}=this,i=0;for(;l<this.e;){const a=r[i]||this.e,s=+a>+this.e?this.e:a;o.push(Y.fromDateTimes(l,s)),l=s,i+=1}return o}splitBy(t){const r=L.fromDurationLike(t);if(!this.isValid||!r.isValid||r.as("milliseconds")===0)return[];let{s:o}=this,l=1,i;const a=[];for(;o<this.e;){const s=this.start.plus(r.mapUnits(c=>c*l));i=+s>+this.e?this.e:s,a.push(Y.fromDateTimes(o,i)),o=i,l+=1}return a}divideEqually(t){return this.isValid?this.splitBy(this.length()/t).slice(0,t):[]}overlaps(t){return this.e>t.s&&this.s<t.e}abutsStart(t){return this.isValid?+this.e==+t.s:!1}abutsEnd(t){return this.isValid?+t.e==+this.s:!1}engulfs(t){return this.isValid?this.s<=t.s&&this.e>=t.e:!1}equals(t){return!this.isValid||!t.isValid?!1:this.s.equals(t.s)&&this.e.equals(t.e)}intersection(t){if(!this.isValid)return this;const r=this.s>t.s?this.s:t.s,o=this.e<t.e?this.e:t.e;return r>=o?null:Y.fromDateTimes(r,o)}union(t){if(!this.isValid)return this;const r=this.s<t.s?this.s:t.s,o=this.e>t.e?this.e:t.e;return Y.fromDateTimes(r,o)}static merge(t){const[r,o]=t.sort((l,i)=>l.s-i.s).reduce(([l,i],a)=>i?i.overlaps(a)||i.abutsStart(a)?[l,i.union(a)]:[l.concat([i]),a]:[l,a],[[],null]);return o&&r.push(o),r}static xor(t){let r=null,o=0;const l=[],i=t.map(c=>[{time:c.s,type:"s"},{time:c.e,type:"e"}]),a=Array.prototype.concat(...i),s=a.sort((c,d)=>c.time-d.time);for(const c of s)o+=c.type==="s"?1:-1,o===1?r=c.time:(r&&+r!=+c.time&&l.push(Y.fromDateTimes(r,c.time)),r=null);return Y.merge(l)}difference(...t){return Y.xor([this].concat(t)).map(r=>this.intersection(r)).filter(r=>r&&!r.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} \u2013 ${this.e.toISO()})`:qt}toISO(t){return this.isValid?`${this.s.toISO(t)}/${this.e.toISO(t)}`:qt}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:qt}toISOTime(t){return this.isValid?`${this.s.toISOTime(t)}/${this.e.toISOTime(t)}`:qt}toFormat(t,{separator:r=" \u2013 "}={}){return this.isValid?`${this.s.toFormat(t)}${r}${this.e.toFormat(t)}`:qt}toDuration(t,r){return this.isValid?this.e.diff(this.s,t,r):L.invalid(this.invalidReason)}mapEndpoints(t){return Y.fromDateTimes(t(this.s),t(this.e))}}class En{static hasDST(t=re.defaultZone){const r=A.now().setZone(t).set({month:12});return!t.isUniversal&&r.offset!==r.set({month:6}).offset}static isValidIANAZone(t){return qe.isValidZone(t)}static normalizeZone(t){return Ke(t,re.defaultZone)}static months(t="long",{locale:r=null,numberingSystem:o=null,locObj:l=null,outputCalendar:i="gregory"}={}){return(l||Z.create(r,o,i)).months(t)}static monthsFormat(t="long",{locale:r=null,numberingSystem:o=null,locObj:l=null,outputCalendar:i="gregory"}={}){return(l||Z.create(r,o,i)).months(t,!0)}static weekdays(t="long",{locale:r=null,numberingSystem:o=null,locObj:l=null}={}){return(l||Z.create(r,o,null)).weekdays(t)}static weekdaysFormat(t="long",{locale:r=null,numberingSystem:o=null,locObj:l=null}={}){return(l||Z.create(r,o,null)).weekdays(t,!0)}static meridiems({locale:t=null}={}){return Z.create(t).meridiems()}static eras(t="short",{locale:r=null}={}){return Z.create(r,null,"gregory").eras(t)}static features(){return{relative:ri()}}}function Di(e,t){const r=l=>l.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),o=r(t)-r(e);return Math.floor(L.fromMillis(o).as("days"))}function Bf(e,t,r){const o=[["years",(s,c)=>c.year-s.year],["quarters",(s,c)=>c.quarter-s.quarter],["months",(s,c)=>c.month-s.month+(c.year-s.year)*12],["weeks",(s,c)=>{const d=Di(s,c);return(d-d%7)/7}],["days",Di]],l={};let i,a;for(const[s,c]of o)if(r.indexOf(s)>=0){i=s;let d=c(e,t);a=e.plus({[s]:d}),a>t?(e=e.plus({[s]:d-1}),d-=1):e=a,l[s]=d}return[e,l,a,i]}function Sf(e,t,r,o){let[l,i,a,s]=Bf(e,t,r);const c=t-l,d=r.filter(m=>["hours","minutes","seconds","milliseconds"].indexOf(m)>=0);d.length===0&&(a<t&&(a=l.plus({[s]:1})),a!==l&&(i[s]=(i[s]||0)+c/(a-l)));const u=L.fromObject(i,o);return d.length>0?L.fromMillis(c,o).shiftTo(...d).plus(u):u}const yr={arab:"[\u0660-\u0669]",arabext:"[\u06F0-\u06F9]",bali:"[\u1B50-\u1B59]",beng:"[\u09E6-\u09EF]",deva:"[\u0966-\u096F]",fullwide:"[\uFF10-\uFF19]",gujr:"[\u0AE6-\u0AEF]",hanidec:"[\u3007|\u4E00|\u4E8C|\u4E09|\u56DB|\u4E94|\u516D|\u4E03|\u516B|\u4E5D]",khmr:"[\u17E0-\u17E9]",knda:"[\u0CE6-\u0CEF]",laoo:"[\u0ED0-\u0ED9]",limb:"[\u1946-\u194F]",mlym:"[\u0D66-\u0D6F]",mong:"[\u1810-\u1819]",mymr:"[\u1040-\u1049]",orya:"[\u0B66-\u0B6F]",tamldec:"[\u0BE6-\u0BEF]",telu:"[\u0C66-\u0C6F]",thai:"[\u0E50-\u0E59]",tibt:"[\u0F20-\u0F29]",latn:"\\d"},Mi={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},Nf=yr.hanidec.replace(/[\[|\]]/g,"").split("");function Tf(e){let t=parseInt(e,10);if(isNaN(t)){t="";for(let r=0;r<e.length;r++){const o=e.charCodeAt(r);if(e[r].search(yr.hanidec)!==-1)t+=Nf.indexOf(e[r]);else for(const l in Mi){const[i,a]=Mi[l];o>=i&&o<=a&&(t+=o-i)}}return parseInt(t,10)}else return t}function Oe({numberingSystem:e},t=""){return new RegExp(`${yr[e||"latn"]}${t}`)}const Af="missing Intl.DateTimeFormat.formatToParts support";function P(e,t=r=>r){return{regex:e,deser:([r])=>t(Tf(r))}}const Oi=`( |${String.fromCharCode(160)})`,Fi=new RegExp(Oi,"g");function Df(e){return e.replace(/\./g,"\\.?").replace(Fi,Oi)}function Ii(e){return e.replace(/\./g,"").replace(Fi," ").toLowerCase()}function Fe(e,t){return e===null?null:{regex:RegExp(e.map(Df).join("|")),deser:([r])=>e.findIndex(o=>Ii(r)===Ii(o))+t}}function $i(e,t){return{regex:e,deser:([,r,o])=>_n(r,o),groups:t}}function _r(e){return{regex:e,deser:([t])=>t}}function Mf(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function Of(e,t){const r=Oe(t),o=Oe(t,"{2}"),l=Oe(t,"{3}"),i=Oe(t,"{4}"),a=Oe(t,"{6}"),s=Oe(t,"{1,2}"),c=Oe(t,"{1,3}"),d=Oe(t,"{1,6}"),u=Oe(t,"{1,9}"),m=Oe(t,"{2,4}"),f=Oe(t,"{4,6}"),h=M=>({regex:RegExp(Mf(M.val)),deser:([F])=>F,literal:!0}),b=(M=>{if(e.literal)return h(M);switch(M.val){case"G":return Fe(t.eras("short",!1),0);case"GG":return Fe(t.eras("long",!1),0);case"y":return P(d);case"yy":return P(m,lr);case"yyyy":return P(i);case"yyyyy":return P(f);case"yyyyyy":return P(a);case"M":return P(s);case"MM":return P(o);case"MMM":return Fe(t.months("short",!0,!1),1);case"MMMM":return Fe(t.months("long",!0,!1),1);case"L":return P(s);case"LL":return P(o);case"LLL":return Fe(t.months("short",!1,!1),1);case"LLLL":return Fe(t.months("long",!1,!1),1);case"d":return P(s);case"dd":return P(o);case"o":return P(c);case"ooo":return P(l);case"HH":return P(o);case"H":return P(s);case"hh":return P(o);case"h":return P(s);case"mm":return P(o);case"m":return P(s);case"q":return P(s);case"qq":return P(o);case"s":return P(s);case"ss":return P(o);case"S":return P(c);case"SSS":return P(l);case"u":return _r(u);case"uu":return _r(s);case"uuu":return P(r);case"a":return Fe(t.meridiems(),0);case"kkkk":return P(i);case"kk":return P(m,lr);case"W":return P(s);case"WW":return P(o);case"E":case"c":return P(r);case"EEE":return Fe(t.weekdays("short",!1,!1),1);case"EEEE":return Fe(t.weekdays("long",!1,!1),1);case"ccc":return Fe(t.weekdays("short",!0,!1),1);case"cccc":return Fe(t.weekdays("long",!0,!1),1);case"Z":case"ZZ":return $i(new RegExp(`([+-]${s.source})(?::(${o.source}))?`),2);case"ZZZ":return $i(new RegExp(`([+-]${s.source})(${o.source})?`),2);case"z":return _r(/[a-z_+-/]{1,256}?/i);default:return h(M)}})(e)||{invalidReason:Af};return b.token=e,b}const Ff={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour:{numeric:"h","2-digit":"hh"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"}};function If(e,t,r){const{type:o,value:l}=e;if(o==="literal")return{literal:!0,val:l};const i=r[o];let a=Ff[o];if(typeof a=="object"&&(a=a[i]),a)return{literal:!1,val:a}}function $f(e){return[`^${e.map(r=>r.regex).reduce((r,o)=>`${r}(${o.source})`,"")}$`,e]}function Lf(e,t,r){const o=e.match(t);if(o){const l={};let i=1;for(const a in r)if(_t(r,a)){const s=r[a],c=s.groups?s.groups+1:1;!s.literal&&s.token&&(l[s.token.val[0]]=s.deser(o.slice(i,i+c))),i+=c}return[o,l]}else return[o,{}]}function Uf(e){const t=i=>{switch(i){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}};let r=null,o;return I(e.z)||(r=qe.create(e.z)),I(e.Z)||(r||(r=new de(e.Z)),o=e.Z),I(e.q)||(e.M=(e.q-1)*3+1),I(e.h)||(e.h<12&&e.a===1?e.h+=12:e.h===12&&e.a===0&&(e.h=0)),e.G===0&&e.y&&(e.y=-e.y),I(e.u)||(e.S=rr(e.u)),[Object.keys(e).reduce((i,a)=>{const s=t(a);return s&&(i[s]=e[a]),i},{}),r,o]}let kr=null;function Pf(){return kr||(kr=A.fromMillis(1555555555555)),kr}function Rf(e,t){if(e.literal)return e;const r=he.macroTokenToFormatOpts(e.val);if(!r)return e;const i=he.create(t,r).formatDateTimeParts(Pf()).map(a=>If(a,t,r));return i.includes(void 0)?e:i}function jf(e,t){return Array.prototype.concat(...e.map(r=>Rf(r,t)))}function Li(e,t,r){const o=jf(he.parseFormat(r),e),l=o.map(a=>Of(a,e)),i=l.find(a=>a.invalidReason);if(i)return{input:t,tokens:o,invalidReason:i.invalidReason};{const[a,s]=$f(l),c=RegExp(a,"i"),[d,u]=Lf(t,c,s),[m,f,h]=u?Uf(u):[null,null,void 0];if(_t(u,"a")&&_t(u,"H"))throw new Ut("Can't include meridiem when specifying 24-hour format");return{input:t,tokens:o,regex:c,rawMatches:d,matches:u,result:m,zone:f,specificOffset:h}}}function zf(e,t,r){const{result:o,zone:l,specificOffset:i,invalidReason:a}=Li(e,t,r);return[o,l,i,a]}const Ui=[0,31,59,90,120,151,181,212,243,273,304,334],Pi=[0,31,60,91,121,152,182,213,244,274,305,335];function Se(e,t){return new Me("unit out of range",`you specified ${t} (of type ${typeof t}) as a ${e}, which is invalid`)}function Ri(e,t,r){const o=new Date(Date.UTC(e,t-1,r));e<100&&e>=0&&o.setUTCFullYear(o.getUTCFullYear()-1900);const l=o.getUTCDay();return l===0?7:l}function ji(e,t,r){return r+(Pt(e)?Pi:Ui)[t-1]}function zi(e,t){const r=Pt(e)?Pi:Ui,o=r.findIndex(i=>i<t),l=t-r[o];return{month:o+1,day:l}}function br(e){const{year:t,month:r,day:o}=e,l=ji(t,r,o),i=Ri(t,r,o);let a=Math.floor((l-i+10)/7),s;return a<1?(s=t-1,a=yn(s)):a>yn(t)?(s=t+1,a=1):s=t,E({weekYear:s,weekNumber:a,weekday:i},xn(e))}function qi(e){const{weekYear:t,weekNumber:r,weekday:o}=e,l=Ri(t,1,4),i=Rt(t);let a=r*7+o-l-3,s;a<1?(s=t-1,a+=Rt(s)):a>i?(s=t+1,a-=Rt(t)):s=t;const{month:c,day:d}=zi(s,a);return E({year:s,month:c,day:d},xn(e))}function xr(e){const{year:t,month:r,day:o}=e,l=ji(t,r,o);return E({year:t,ordinal:l},xn(e))}function Hi(e){const{year:t,ordinal:r}=e,{month:o,day:l}=zi(t,r);return E({year:t,month:o,day:l},xn(e))}function qf(e){const t=pn(e.weekYear),r=ze(e.weekNumber,1,yn(e.weekYear)),o=ze(e.weekday,1,7);return t?r?o?!1:Se("weekday",e.weekday):Se("week",e.week):Se("weekYear",e.weekYear)}function Hf(e){const t=pn(e.year),r=ze(e.ordinal,1,Rt(e.year));return t?r?!1:Se("ordinal",e.ordinal):Se("year",e.year)}function Gi(e){const t=pn(e.year),r=ze(e.month,1,12),o=ze(e.day,1,gn(e.year,e.month));return t?r?o?!1:Se("day",e.day):Se("month",e.month):Se("year",e.year)}function Wi(e){const{hour:t,minute:r,second:o,millisecond:l}=e,i=ze(t,0,23)||t===24&&r===0&&o===0&&l===0,a=ze(r,0,59),s=ze(o,0,59),c=ze(l,0,999);return i?a?s?c?!1:Se("millisecond",l):Se("second",o):Se("minute",r):Se("hour",t)}const wr="Invalid DateTime",Zi=864e13;function Bn(e){return new Me("unsupported zone",`the zone "${e.name}" is not supported`)}function Cr(e){return e.weekData===null&&(e.weekData=br(e.c)),e.weekData}function Ht(e,t){const r={ts:e.ts,zone:e.zone,c:e.c,o:e.o,loc:e.loc,invalid:e.invalid};return new A(fe(E(E({},r),t),{old:r}))}function Yi(e,t,r){let o=e-t*60*1e3;const l=r.offset(o);if(t===l)return[o,t];o-=(l-t)*60*1e3;const i=r.offset(o);return l===i?[o,l]:[e-Math.min(l,i)*60*1e3,Math.max(l,i)]}function Ki(e,t){e+=t*60*1e3;const r=new Date(e);return{year:r.getUTCFullYear(),month:r.getUTCMonth()+1,day:r.getUTCDate(),hour:r.getUTCHours(),minute:r.getUTCMinutes(),second:r.getUTCSeconds(),millisecond:r.getUTCMilliseconds()}}function Sn(e,t,r){return Yi(ir(e),t,r)}function Xi(e,t){const r=e.o,o=e.c.year+Math.trunc(t.years),l=e.c.month+Math.trunc(t.months)+Math.trunc(t.quarters)*3,i=fe(E({},e.c),{year:o,month:l,day:Math.min(e.c.day,gn(o,l))+Math.trunc(t.days)+Math.trunc(t.weeks)*7}),a=L.fromObject({years:t.years-Math.trunc(t.years),quarters:t.quarters-Math.trunc(t.quarters),months:t.months-Math.trunc(t.months),weeks:t.weeks-Math.trunc(t.weeks),days:t.days-Math.trunc(t.days),hours:t.hours,minutes:t.minutes,seconds:t.seconds,milliseconds:t.milliseconds}).as("milliseconds"),s=ir(i);let[c,d]=Yi(s,r,e.zone);return a!==0&&(c+=a,d=e.zone.offset(c)),{ts:c,o:d}}function Gt(e,t,r,o,l,i){const{setZone:a,zone:s}=r;if(e&&Object.keys(e).length!==0){const c=t||s,d=A.fromObject(e,fe(E({},r),{zone:c,specificOffset:i}));return a?d:d.setZone(s)}else return A.invalid(new Me("unparsable",`the input "${l}" can't be parsed as ${o}`))}function Nn(e,t,r=!0){return e.isValid?he.create(Z.create("en-US"),{allowZ:r,forceSimple:!0}).formatDateTimeFromString(e,t):null}function Vr(e,t){const r=e.c.year>9999||e.c.year<0;let o="";return r&&e.c.year>=0&&(o+="+"),o+=te(e.c.year,r?6:4),t?(o+="-",o+=te(e.c.month),o+="-",o+=te(e.c.day)):(o+=te(e.c.month),o+=te(e.c.day)),o}function Ji(e,t,r,o,l){let i=te(e.c.hour);return t?(i+=":",i+=te(e.c.minute),(e.c.second!==0||!r)&&(i+=":")):i+=te(e.c.minute),(e.c.second!==0||!r)&&(i+=te(e.c.second),(e.c.millisecond!==0||!o)&&(i+=".",i+=te(e.c.millisecond,3))),l&&(e.isOffsetFixed&&e.offset===0?i+="Z":e.o<0?(i+="-",i+=te(Math.trunc(-e.o/60)),i+=":",i+=te(Math.trunc(-e.o%60))):(i+="+",i+=te(Math.trunc(e.o/60)),i+=":",i+=te(Math.trunc(e.o%60)))),i}const Qi={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},Gf={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},Wf={ordinal:1,hour:0,minute:0,second:0,millisecond:0},vi=["year","month","day","hour","minute","second","millisecond"],Zf=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],Yf=["year","ordinal","hour","minute","second","millisecond"];function el(e){const t={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[e.toLowerCase()];if(!t)throw new Lo(e);return t}function tl(e,t){const r=Ke(t.zone,re.defaultZone),o=Z.fromObject(t),l=re.now();let i,a;if(I(e.year))i=l;else{for(const d of vi)I(e[d])&&(e[d]=Qi[d]);const s=Gi(e)||Wi(e);if(s)return A.invalid(s);const c=r.offset(l);[i,a]=Sn(e,c,r)}return new A({ts:i,zone:r,loc:o,o:a})}function nl(e,t,r){const o=I(r.round)?!0:r.round,l=(a,s)=>(a=or(a,o||r.calendary?0:2,!0),t.loc.clone(r).relFormatter(r).format(a,s)),i=a=>r.calendary?t.hasSame(e,a)?0:t.startOf(a).diff(e.startOf(a),a).get(a):t.diff(e,a).get(a);if(r.unit)return l(i(r.unit),r.unit);for(const a of r.units){const s=i(a);if(Math.abs(s)>=1)return l(s,a)}return l(e>t?-0:0,r.units[r.units.length-1])}function rl(e){let t={},r;return e.length>0&&typeof e[e.length-1]=="object"?(t=e[e.length-1],r=Array.from(e).slice(0,e.length-1)):r=Array.from(e),[t,r]}class A{constructor(t){const r=t.zone||re.defaultZone;let o=t.invalid||(Number.isNaN(t.ts)?new Me("invalid input"):null)||(r.isValid?null:Bn(r));this.ts=I(t.ts)?re.now():t.ts;let l=null,i=null;if(!o)if(t.old&&t.old.ts===this.ts&&t.old.zone.equals(r))[l,i]=[t.old.c,t.old.o];else{const s=r.offset(this.ts);l=Ki(this.ts,s),o=Number.isNaN(l.year)?new Me("invalid input"):null,l=o?null:l,i=o?null:s}this._zone=r,this.loc=t.loc||Z.create(),this.invalid=o,this.weekData=null,this.c=l,this.o=i,this.isLuxonDateTime=!0}static now(){return new A({})}static local(){const[t,r]=rl(arguments),[o,l,i,a,s,c,d]=r;return tl({year:o,month:l,day:i,hour:a,minute:s,second:c,millisecond:d},t)}static utc(){const[t,r]=rl(arguments),[o,l,i,a,s,c,d]=r;return t.zone=de.utcInstance,tl({year:o,month:l,day:i,hour:a,minute:s,second:c,millisecond:d},t)}static fromJSDate(t,r={}){const o=tm(t)?t.valueOf():NaN;if(Number.isNaN(o))return A.invalid("invalid input");const l=Ke(r.zone,re.defaultZone);return l.isValid?new A({ts:o,zone:l,loc:Z.fromObject(r)}):A.invalid(Bn(l))}static fromMillis(t,r={}){if(ot(t))return t<-Zi||t>Zi?A.invalid("Timestamp out of range"):new A({ts:t,zone:Ke(r.zone,re.defaultZone),loc:Z.fromObject(r)});throw new Ee(`fromMillis requires a numerical input, but received a ${typeof t} with value ${t}`)}static fromSeconds(t,r={}){if(ot(t))return new A({ts:t*1e3,zone:Ke(r.zone,re.defaultZone),loc:Z.fromObject(r)});throw new Ee("fromSeconds requires a numerical input")}static fromObject(t,r={}){t=t||{};const o=Ke(r.zone,re.defaultZone);if(!o.isValid)return A.invalid(Bn(o));const l=re.now(),i=I(r.specificOffset)?o.offset(l):r.specificOffset,a=kn(t,el),s=!I(a.ordinal),c=!I(a.year),d=!I(a.month)||!I(a.day),u=c||d,m=a.weekYear||a.weekNumber,f=Z.fromObject(r);if((u||s)&&m)throw new Ut("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(d&&s)throw new Ut("Can't mix ordinal dates with month/day");const h=m||a.weekday&&!u;let p,b,M=Ki(l,i);h?(p=Zf,b=Gf,M=br(M)):s?(p=Yf,b=Wf,M=xr(M)):(p=vi,b=Qi);let F=!1;for(const ee of p){const O=a[ee];I(O)?F?a[ee]=b[ee]:a[ee]=M[ee]:F=!0}const j=h?qf(a):s?Hf(a):Gi(a),q=j||Wi(a);if(q)return A.invalid(q);const J=h?qi(a):s?Hi(a):a,[Q,S]=Sn(J,i,o),H=new A({ts:Q,zone:o,o:S,loc:f});return a.weekday&&u&&t.weekday!==H.weekday?A.invalid("mismatched weekday",`you can't specify both a weekday of ${a.weekday} and a date of ${H.toISO()}`):H}static fromISO(t,r={}){const[o,l]=sf(t);return Gt(o,l,r,"ISO 8601",t)}static fromRFC2822(t,r={}){const[o,l]=cf(t);return Gt(o,l,r,"RFC 2822",t)}static fromHTTP(t,r={}){const[o,l]=df(t);return Gt(o,l,r,"HTTP",r)}static fromFormat(t,r,o={}){if(I(t)||I(r))throw new Ee("fromFormat requires an input string and a format");const{locale:l=null,numberingSystem:i=null}=o,a=Z.fromOpts({locale:l,numberingSystem:i,defaultToEN:!0}),[s,c,d,u]=zf(a,t,r);return u?A.invalid(u):Gt(s,c,o,`format ${r}`,t,d)}static fromString(t,r,o={}){return A.fromFormat(t,r,o)}static fromSQL(t,r={}){const[o,l]=_f(t);return Gt(o,l,r,"SQL",t)}static invalid(t,r=null){if(!t)throw new Ee("need to specify a reason the DateTime is invalid");const o=t instanceof Me?t:new Me(t,r);if(re.throwOnInvalid)throw new Ku(o);return new A({invalid:o})}static isDateTime(t){return t&&t.isLuxonDateTime||!1}get(t){return this[t]}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?Cr(this).weekYear:NaN}get weekNumber(){return this.isValid?Cr(this).weekNumber:NaN}get weekday(){return this.isValid?Cr(this).weekday:NaN}get ordinal(){return this.isValid?xr(this.c).ordinal:NaN}get monthShort(){return this.isValid?En.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?En.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?En.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?En.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return this.isOffsetFixed?!1:this.offset>this.set({month:1}).offset||this.offset>this.set({month:5}).offset}get isInLeapYear(){return Pt(this.year)}get daysInMonth(){return gn(this.year,this.month)}get daysInYear(){return this.isValid?Rt(this.year):NaN}get weeksInWeekYear(){return this.isValid?yn(this.weekYear):NaN}resolvedLocaleOptions(t={}){const{locale:r,numberingSystem:o,calendar:l}=he.create(this.loc.clone(t),t).resolvedOptions(this);return{locale:r,numberingSystem:o,outputCalendar:l}}toUTC(t=0,r={}){return this.setZone(de.instance(t),r)}toLocal(){return this.setZone(re.defaultZone)}setZone(t,{keepLocalTime:r=!1,keepCalendarTime:o=!1}={}){if(t=Ke(t,re.defaultZone),t.equals(this.zone))return this;if(t.isValid){let l=this.ts;if(r||o){const i=t.offset(this.ts),a=this.toObject();[l]=Sn(a,i,t)}return Ht(this,{ts:l,zone:t})}else return A.invalid(Bn(t))}reconfigure({locale:t,numberingSystem:r,outputCalendar:o}={}){const l=this.loc.clone({locale:t,numberingSystem:r,outputCalendar:o});return Ht(this,{loc:l})}setLocale(t){return this.reconfigure({locale:t})}set(t){if(!this.isValid)return this;const r=kn(t,el),o=!I(r.weekYear)||!I(r.weekNumber)||!I(r.weekday),l=!I(r.ordinal),i=!I(r.year),a=!I(r.month)||!I(r.day),s=i||a,c=r.weekYear||r.weekNumber;if((s||l)&&c)throw new Ut("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(a&&l)throw new Ut("Can't mix ordinal dates with month/day");let d;o?d=qi(E(E({},br(this.c)),r)):I(r.ordinal)?(d=E(E({},this.toObject()),r),I(r.day)&&(d.day=Math.min(gn(d.year,d.month),d.day))):d=Hi(E(E({},xr(this.c)),r));const[u,m]=Sn(d,this.o,this.zone);return Ht(this,{ts:u,o:m})}plus(t){if(!this.isValid)return this;const r=L.fromDurationLike(t);return Ht(this,Xi(this,r))}minus(t){if(!this.isValid)return this;const r=L.fromDurationLike(t).negate();return Ht(this,Xi(this,r))}startOf(t){if(!this.isValid)return this;const r={},o=L.normalizeUnit(t);switch(o){case"years":r.month=1;case"quarters":case"months":r.day=1;case"weeks":case"days":r.hour=0;case"hours":r.minute=0;case"minutes":r.second=0;case"seconds":r.millisecond=0;break}if(o==="weeks"&&(r.weekday=1),o==="quarters"){const l=Math.ceil(this.month/3);r.month=(l-1)*3+1}return this.set(r)}endOf(t){return this.isValid?this.plus({[t]:1}).startOf(t).minus(1):this}toFormat(t,r={}){return this.isValid?he.create(this.loc.redefaultToEN(r)).formatDateTimeFromString(this,t):wr}toLocaleString(t=nr,r={}){return this.isValid?he.create(this.loc.clone(r),t).formatDateTime(this):wr}toLocaleParts(t={}){return this.isValid?he.create(this.loc.clone(t),t).formatDateTimeParts(this):[]}toISO({format:t="extended",suppressSeconds:r=!1,suppressMilliseconds:o=!1,includeOffset:l=!0}={}){if(!this.isValid)return null;const i=t==="extended";let a=Vr(this,i);return a+="T",a+=Ji(this,i,r,o,l),a}toISODate({format:t="extended"}={}){return this.isValid?Vr(this,t==="extended"):null}toISOWeekDate(){return Nn(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:t=!1,suppressSeconds:r=!1,includeOffset:o=!0,includePrefix:l=!1,format:i="extended"}={}){return this.isValid?(l?"T":"")+Ji(this,i==="extended",r,t,o):null}toRFC2822(){return Nn(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return Nn(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?Vr(this,!0):null}toSQLTime({includeOffset:t=!0,includeZone:r=!1,includeOffsetSpace:o=!0}={}){let l="HH:mm:ss.SSS";return(r||t)&&(o&&(l+=" "),r?l+="z":t&&(l+="ZZ")),Nn(this,l,!0)}toSQL(t={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(t)}`:null}toString(){return this.isValid?this.toISO():wr}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(t={}){if(!this.isValid)return{};const r=E({},this.c);return t.includeConfig&&(r.outputCalendar=this.outputCalendar,r.numberingSystem=this.loc.numberingSystem,r.locale=this.loc.locale),r}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(t,r="milliseconds",o={}){if(!this.isValid||!t.isValid)return L.invalid("created by diffing an invalid DateTime");const l=E({locale:this.locale,numberingSystem:this.numberingSystem},o),i=nm(r).map(L.normalizeUnit),a=t.valueOf()>this.valueOf(),s=a?this:t,c=a?t:this,d=Sf(s,c,i,l);return a?d.negate():d}diffNow(t="milliseconds",r={}){return this.diff(A.now(),t,r)}until(t){return this.isValid?Y.fromDateTimes(this,t):this}hasSame(t,r){if(!this.isValid)return!1;const o=t.valueOf(),l=this.setZone(t.zone,{keepLocalTime:!0});return l.startOf(r)<=o&&o<=l.endOf(r)}equals(t){return this.isValid&&t.isValid&&this.valueOf()===t.valueOf()&&this.zone.equals(t.zone)&&this.loc.equals(t.loc)}toRelative(t={}){if(!this.isValid)return null;const r=t.base||A.fromObject({},{zone:this.zone}),o=t.padding?this<r?-t.padding:t.padding:0;let l=["years","months","days","hours","minutes","seconds"],i=t.unit;return Array.isArray(t.unit)&&(l=t.unit,i=void 0),nl(r,this.plus(o),fe(E({},t),{numeric:"always",units:l,unit:i}))}toRelativeCalendar(t={}){return this.isValid?nl(t.base||A.fromObject({},{zone:this.zone}),this,fe(E({},t),{numeric:"auto",units:["years","months","days"],calendary:!0})):null}static min(...t){if(!t.every(A.isDateTime))throw new Ee("min requires all arguments be DateTimes");return oi(t,r=>r.valueOf(),Math.min)}static max(...t){if(!t.every(A.isDateTime))throw new Ee("max requires all arguments be DateTimes");return oi(t,r=>r.valueOf(),Math.max)}static fromFormatExplain(t,r,o={}){const{locale:l=null,numberingSystem:i=null}=o,a=Z.fromOpts({locale:l,numberingSystem:i,defaultToEN:!0});return Li(a,t,r)}static fromStringExplain(t,r,o={}){return A.fromFormatExplain(t,r,o)}static get DATE_SHORT(){return nr}static get DATE_MED(){return Uo}static get DATE_MED_WITH_WEEKDAY(){return Qu}static get DATE_FULL(){return Po}static get DATE_HUGE(){return Ro}static get TIME_SIMPLE(){return jo}static get TIME_WITH_SECONDS(){return zo}static get TIME_WITH_SHORT_OFFSET(){return qo}static get TIME_WITH_LONG_OFFSET(){return Ho}static get TIME_24_SIMPLE(){return Go}static get TIME_24_WITH_SECONDS(){return Wo}static get TIME_24_WITH_SHORT_OFFSET(){return Zo}static get TIME_24_WITH_LONG_OFFSET(){return Yo}static get DATETIME_SHORT(){return Ko}static get DATETIME_SHORT_WITH_SECONDS(){return Xo}static get DATETIME_MED(){return Jo}static get DATETIME_MED_WITH_SECONDS(){return Qo}static get DATETIME_MED_WITH_WEEKDAY(){return vu}static get DATETIME_FULL(){return vo}static get DATETIME_FULL_WITH_SECONDS(){return ei}static get DATETIME_HUGE(){return ti}static get DATETIME_HUGE_WITH_SECONDS(){return ni}}function Wt(e){if(A.isDateTime(e))return e;if(e&&e.valueOf&&ot(e.valueOf()))return A.fromJSDate(e);if(e&&typeof e=="object")return A.fromObject(e);throw new Ee(`Unknown datetime argument: ${e}, of type ${typeof e}`)}var yC="";const Kf={mixins:[Lt],computed:{hasValue(){return this.value!==void 0&&this.value!==null},timeago(){return A.fromISO(this.value).toRelative()},readable(){let e=A.fromISO(this.value),t=A.now(),r=t.toFormat("yyyy");return t.toFormat("MMM yyyy"),e.toFormat("yyyy")===r?A.fromISO(this.value).toFormat("h:mm a - dd MMM"):A.fromISO(this.value).toFormat("h:mm a - dd MMM yyyy")}}},Xf={class:"table-date-cell"},Jf={key:0},Qf={class:"off"},vf={class:"on"},eh={class:"spacer"};function th(e,t,r,o,l,i){return n.openBlock(),n.createElementBlock("td",Xf,[i.hasValue?(n.openBlock(),n.createElementBlock("div",Jf,[n.createElementVNode("span",Qf,n.toDisplayString(i.readable),1),n.createElementVNode("span",vf,n.toDisplayString(i.timeago),1),n.createElementVNode("span",eh,n.toDisplayString(i.readable),1)])):n.createCommentVNode("",!0)])}var ol=k(Kf,[["render",th],["__scopeId","data-v-3687693f"]]),_C="";const nh={mixins:[Lt],computed:{boolean(){return!!this.value}}};function rh(e,t,r,o,l,i){const a=n.resolveComponent("ux-icon");return n.openBlock(),n.createElementBlock("td",{class:n.normalizeClass(["table-boolean-cell",{true:i.boolean,false:!i.boolean}])},[n.createVNode(a,{icon:i.boolean?"fa-check":"fa-times"},null,8,["icon"])],2)}var il=k(nh,[["render",rh],["__scopeId","data-v-27f127ae"]]),kC="";const oh={mixins:[Lt],methods:{open(){window.open(this.href)}},computed:{href(){return`http://${this.value}`}}},ih={class:"table-url-cell"},lh=["href"];function ah(e,t,r,o,l,i){const a=n.resolveComponent("ux-icon");return n.openBlock(),n.createElementBlock("td",ih,[n.createElementVNode("a",{href:i.href,onClick:t[0]||(t[0]=n.withModifiers((...s)=>i.open&&i.open(...s),["stop","prevent"])),target:"_blank"},[n.createTextVNode(n.toDisplayString(e.value)+" ",1),n.createVNode(a,{right:"",icon:"fa-external-link"})],8,lh)])}var ll=k(oh,[["render",ah],["__scopeId","data-v-17cf3a86"]]),bC="";const sh={props:{multi:{type:Boolean},last:{type:Boolean},value:{required:!0},type:{type:String},widget:{type:String}},computed:{reference(){return!!(this.value&&this.value._id)},renderValue(){return this.value?this.value.title||this.value.name||this.value:void 0},date(){return A.fromISO(this.value).toFormat("dd MMM yyyy")},actualWidget(){var e;if(this.widget)e=this.widget;else switch(this.type){case"date":e="datetime";break}return e}},methods:{clicked(e){this.$sdk.dispatch("item:view",e)}}},ch=n.createTextVNode(",\xA0");function dh(e,t,r,o,l,i){return i.reference?(n.openBlock(),n.createElementBlock("a",{key:0,onClick:t[0]||(t[0]=n.withModifiers(a=>i.clicked(r.value),["stop","prevent"]))},n.toDisplayString(i.renderValue),1)):r.type=="date"?(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[n.createTextVNode(n.toDisplayString(i.date),1)],64)):(n.openBlock(),n.createElementBlock(n.Fragment,{key:2},[n.createTextVNode(n.toDisplayString(i.renderValue),1),r.multi&&!r.last?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[ch],64)):n.createCommentVNode("",!0)],64))}var uh=k(sh,[["render",dh],["__scopeId","data-v-255b9ec8"]]),xC="";function Er(e,t){if(!e||!t)return;var r=$o(e,t);if(r)return r;const o=t.split("."),l=o.shift(),i=o.join("."),a=$o(e,l);return Array.isArray(a)?a.map(function(s){return Er(s,i)}).flat().filter(Boolean):Er(a,i)}const mh={data(){return{component:null}},components:{ValueRenderer:uh},async created(){const e=this;let t;const r=e.column.type;switch(e.column.renderer){case"button":t=Yu;break;case"boolean":t=il;break;case"date":case"datetime":t=ol;break;case"url":t=ll;break;case"thumbnail":t=Hu;break;default:switch(r){case"date":t=ol;break;case"boolean":t=il;break;case"url":t=ll;break}break}e.component=t},props:{column:{type:Object,required:!0},row:{type:Object,required:!0}},computed:{multiValue(){return Array.isArray(this.value)},complex(){this.multiValue},renderer(){return this.column.renderer},renderValue(){var e=this.value;if(e!=null)return e.title||e.name||e},value(){var e=Er(this.row,this.column.key);return e}}},fh={key:1,class:"table-cell"},hh={class:"value"},ph={class:"value"};function gh(e,t,r,o,l,i){const a=n.resolveComponent("value-renderer");return l.component?(n.openBlock(),n.createBlock(n.resolveDynamicComponent(l.component),{key:0,column:r.column,row:r.row,value:i.value},null,8,["column","row","value"])):(n.openBlock(),n.createElementBlock("td",fh,[i.multiValue?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[i.complex?(n.openBlock(!0),n.createElementBlock(n.Fragment,{key:0},n.renderList(i.value,(s,c)=>(n.openBlock(),n.createElementBlock("span",hh,[n.createVNode(a,{type:r.column.type,multi:"",last:c===i.value.length-1,value:s},null,8,["type","last","value"])]))),256)):(n.openBlock(!0),n.createElementBlock(n.Fragment,{key:1},n.renderList(i.value,(s,c)=>(n.openBlock(),n.createElementBlock("span",ph,[n.createVNode(a,{type:r.column.type,multi:"",last:c===i.value.length-1,value:s},null,8,["type","last","value"])]))),256))],64)):(n.openBlock(),n.createBlock(a,{key:1,type:r.column.type,value:i.value},null,8,["type","value"]))]))}var al=k(mh,[["render",gh],["__scopeId","data-v-b6482442"]]);const yh={components:{TableCell:al},props:{selected:{type:Boolean},row:{type:Object,required:!0},columns:{type:Array,required:!0},enableActions:{type:Boolean,default(){return!1}},enableSelection:{type:Boolean,default(){return!0}}},methods:{clickCell(e){this.$emit("click:cell",{row:this.row,column:e}),this.$emit("click:row",this.row)},clickActions(e){this.$emit("click:actions",e)},clickSelect(e){this.$emit("click:select",e)}},computed:{classes(){var e=[];return this.selected&&e.push("selected"),e}}};function _h(e,t,r,o,l,i){const a=n.resolveComponent("ux-checkbox"),s=n.resolveComponent("table-cell"),c=n.resolveComponent("ux-icon"),d=n.resolveComponent("ux-button");return n.openBlock(),n.createElementBlock("tr",{class:n.normalizeClass([i.classes,"table-row"])},[n.renderSlot(e.$slots,"default",{},()=>[r.enableSelection?(n.openBlock(),n.createElementBlock("th",{key:0,class:"table-cell table-select first shrink",onClick:t[0]||(t[0]=n.withModifiers(u=>i.clickSelect(r.row),["stop","prevent"]))},[n.createVNode(a,{value:r.selected},null,8,["value"])])):n.createCommentVNode("",!0),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(r.columns,(u,m)=>(n.openBlock(),n.createBlock(s,{key:`${u.path||u.key}-${m}`,onClick:n.withModifiers(f=>i.clickCell(u),["stop","prevent"]),column:u,row:r.row},null,8,["onClick","column","row"]))),128)),r.enableActions?(n.openBlock(),n.createElementBlock("th",{key:1,class:"table-cell last shrink",onClick:t[1]||(t[1]=n.withModifiers(u=>i.clickActions(r.row),["stop","prevent"]))},[n.createVNode(d,{size:"xs",icon:""},{default:n.withCtx(()=>[n.createVNode(c,{icon:"fa-ellipsis"})]),_:1})])):n.createCommentVNode("",!0)])],2)}var kh=k(yh,[["render",_h]]),sl={data(){return{scrollTop:0}},methods:{updateScroll(e){var t=this.$refs.scroll;t=t.$el||t,this.scrollTop=t.scrollTop}},mounted(){var e=this.$refs.scroll;e=e.$el||e,e.addEventListener("scroll",this.updateScroll)},beforeUnmount(){var e=this.$refs.scroll;e=e.$el||e,e.removeEventListener("scroll",this.updateScroll)},activated(){var e=this.$refs.scroll;e=e.$el||e,e.scrollTop=this.scrollTop}},wC="";const bh={mixins:[sl],components:{TableRow:kh,TableCell:al},watch:{rows(){this.$refs.scroll.scroll({top:0,left:0})}},props:{total:{type:Number},columns:{type:Array,default(){return[]}},rows:{type:Array,default(){return[]}},scrollable:{type:Boolean,default(){return!0}},enableActions:{type:Boolean,default(){return!1}},enableSelection:{type:Boolean,default(){return!0}},selection:{type:Array,default(){return[]}},selectAll:{type:Function},deselectAll:{type:Function}},computed:{selectionHash(){var e=this;return e.selection.reduce(function(t,r){var o=r._id||r.id;return t[o]=r,t},{})},pageSelected(){var e=this;if(!(!e.rows||!e.rows.length))return!e.rows.some(function(t){return!e.selectionHash[t._id||t.id]})},renderColumns(){return this.columns.map(function(e){var t=Object.assign({},e);return t.class=[],t.shrink&&t.class.push("shrink"),t})},renderRows(){return this.rows},someSelectedOnPage(){return this.rows.some(this.isSelected)}},methods:{togglePage(){var e=this;e.pageSelected?e.deselectPage():e.selectPage()},selectPage(){var e=this;e.$emit("select:multiple",e.rows)},deselectPage(){var e=this;e.$emit("deselect:multiple",e.rows)},isSelected(e){var t=this,r=e._id||e.id;return t.selection.some(function(o){var l=o._id||o.id;return o==e||l==r})},classes(e){let t=[];return this.isSelected(e)&&t.push("selected"),t},toggleSort(e){},clickRow(e){this.$emit("click:row",e)},clickCell({row:e,column:t}){this.$emit("click:cell",{row:e,column:t})},clickActions(e){this.$emit("click:actions",e)},clickSelect(e){this.$emit("select:row:toggle",e)}}},xh={class:"table-wrapper"},wh={class:"table-scroll",ref:"scroll"},Ch={key:0,class:"first table-select shrink"},Vh=n.createTextVNode(" Select Page "),Eh=n.createTextVNode(" Deselect Page "),Bh=n.createTextVNode(" Deselect All "),Sh=["onClick"],Nh={key:1,class:"last shrink"};function Th(e,t,r,o,l,i){const a=n.resolveComponent("ux-checkbox"),s=n.resolveComponent("ux-list-item"),c=n.resolveComponent("ux-list"),d=n.resolveComponent("ux-menu"),u=n.resolveComponent("table-row");return n.openBlock(),n.createElementBlock("div",xh,[n.createElementVNode("div",wh,[n.createElementVNode("table",null,[n.createElementVNode("thead",null,[n.createElementVNode("tr",null,[r.enableSelection?(n.openBlock(),n.createElementBlock("th",Ch,[n.createVNode(d,null,{activator:n.withCtx(({on:m})=>[n.createVNode(a,n.mergeProps(n.toHandlers(m),{value:i.pageSelected}),null,16,["value"])]),default:n.withCtx(()=>[n.createVNode(c,null,{default:n.withCtx(()=>[n.createVNode(s,{onClick:t[0]||(t[0]=m=>i.selectPage())},{default:n.withCtx(()=>[Vh]),_:1}),i.someSelectedOnPage?(n.openBlock(),n.createBlock(s,{key:0,onClick:t[1]||(t[1]=m=>i.deselectPage())},{default:n.withCtx(()=>[Eh]),_:1})):n.createCommentVNode("",!0),r.selectAll?(n.openBlock(),n.createBlock(s,{key:1,onClick:t[2]||(t[2]=m=>r.selectAll())},{default:n.withCtx(()=>[n.createTextVNode(" Select All ("+n.toDisplayString(r.total)+") ",1)]),_:1})):n.createCommentVNode("",!0),r.deselectAll?(n.openBlock(),n.createBlock(s,{key:2,onClick:t[3]||(t[3]=m=>r.deselectAll())},{default:n.withCtx(()=>[Bh]),_:1})):n.createCommentVNode("",!0)]),_:1})]),_:1})])):n.createCommentVNode("",!0),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(i.renderColumns,m=>(n.openBlock(),n.createElementBlock("th",{onClick:f=>i.toggleSort(m),class:n.normalizeClass(m.class)},n.toDisplayString(m.title),11,Sh))),256)),r.enableActions?(n.openBlock(),n.createElementBlock("th",Nh,[n.renderSlot(e.$slots,"corner",{},void 0,!0)])):n.createCommentVNode("",!0)])]),n.createElementVNode("tbody",null,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(i.renderRows,m=>(n.openBlock(),n.createBlock(u,{enableSelection:r.enableSelection,enableActions:r.enableActions,key:m._id,"onClick:cell":i.clickCell,"onClick:row":i.clickRow,"onClick:select":i.clickSelect,"onClick:actions":i.clickActions,selected:i.isSelected(m),row:m,columns:r.columns},null,8,["enableSelection","enableActions","onClick:cell","onClick:row","onClick:select","onClick:actions","selected","row","columns"]))),128))])])],512)])}var cl=k(bh,[["render",Th],["__scopeId","data-v-e626ef3a"]]),CC="";const Ah={props:{large:{type:Boolean}}},Dh=[(e=>(n.pushScopeId("data-v-27f20370"),e=e(),n.popScopeId(),e))(()=>n.createElementVNode("i",{class:"fa fa-spin fa-spinner"},null,-1))];function Mh(e,t,r,o,l,i){return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["ux-spinner",{large:r.large}])},Dh,2)}var Br=k(Ah,[["render",Mh],["__scopeId","data-v-27f20370"]]),BC="";const Oh={components:{Spinner:Br},props:{to:{type:[Object,String]},icon:{type:Boolean},color:{type:String,default:"default"},bgColor:{type:String},fgColor:{type:String},tag:{type:String},href:{type:String},target:{type:String},loading:{type:Boolean},active:{type:Boolean},disabled:{type:Boolean},block:{type:Boolean},size:{type:String,default:"md"}},computed:{style(){var e={};return this.bgColor&&(e.backgroundColor=this.bgColor),this.fgColor&&(e.color=this.fgColor),e},classes(){var e=[];return e.push(`ux-btn-${this.size}`),this.block&&e.push("ux-btn-block"),this.loading&&e.push("ux-btn-loading"),this.active&&e.push("ux-btn-active"),this.icon&&e.push("ux-btn-icon"),this.color=="default"&&e.push("ux-btn-color-default"),this.color=="primary"&&e.push("ux-btn-color-primary"),this.disabled&&e.push("ux-btn-disabled"),e},element(){switch(this.tag){case"span":return this.tag;case"submit":return"button";default:return this.to||this.href?"ux-link":this.tag||"button"}}}},Fh={class:"ux-btn-text"};function Ih(e,t,r,o,l,i){const a=n.resolveComponent("spinner");return n.openBlock(),n.createBlock(n.resolveDynamicComponent(i.element),{active:r.active,loading:r.loading,to:r.to,href:r.href,target:r.target,style:n.normalizeStyle(i.style),class:n.normalizeClass([i.classes,"ux-btn"]),disabled:r.disabled},{default:n.withCtx(()=>[r.loading?(n.openBlock(),n.createBlock(a,{key:0})):n.createCommentVNode("",!0),n.createElementVNode("span",Fh,[n.renderSlot(e.$slots,"default",{},void 0,!0)])]),_:3},8,["active","loading","to","href","target","style","class","disabled"])}var dl=k(Oh,[["render",Ih],["__scopeId","data-v-ef0c5e26"]]),SC="";const $h={props:{value:{type:Boolean,default(){return!1}}},computed:{classes(){var e=[];return this.value?e.push("ux-checkbox-true"):e.push("ux-checkbox-false"),e}}};function Lh(e,t,r,o,l,i){const a=n.resolveComponent("ux-icon");return n.openBlock(),n.createElementBlock("button",{class:n.normalizeClass(["ux-checkbox",i.classes])},[n.createVNode(a,{class:"icon",icon:"fa-check"})],2)}var Sr=k($h,[["render",Lh],["__scopeId","data-v-73f2c6b6"]]),NC="";const Uh={props:{value:{type:Boolean,default(){return!1}},loading:{type:Boolean,default(){return!1}}},computed:{classes(){var e=[];return this.value?e.push("ux-switch-true"):e.push("ux-switch-false"),this.loading&&e.push("ux-switch-loading"),e}}};function Ph(e,t,r,o,l,i){const a=n.resolveComponent("ux-icon");return n.openBlock(),n.createElementBlock("a",{class:n.normalizeClass(["ux-switch",i.classes])},[n.createElementVNode("span",null,[n.createVNode(a,{spin:"",icon:"fa-spinner"})])],2)}var ul=k(Uh,[["render",Ph],["__scopeId","data-v-57a418e1"]]),TC="";const Rh={props:{to:{type:[Object,String]},href:{type:String},target:{type:String},disabled:{type:Boolean}},methods:{clicked(e){var t=this;if(t.to&&(t.buildMode||t.nuxtMode))return e.preventDefault(),e.stopImmediatePropagation(),t.$sdk.app.to(t.to);if(t.href&&(t.buildMode||t.nuxtMode)){e.preventDefault(),e.stopImmediatePropagation();return}}},computed:{actualHref(){if(this.href)return this.href;if(this.nuxtMode)return this.$sdk.app.createHref(this.to)},nuxtMode(){return this.to&&this.$sdk.nuxt&&this.$sdk.app&&this.$sdk.app.createHref},buildMode(){return!!this.$sdk&&this.$sdk.app&&this.$sdk.app.builder},class(){var e=[];return this.disabled&&e.push("disabled"),(this.href||this.to)&&e.push("haslink"),e},element(){return this.nuxtMode||this.buildMode?"a":this.to?"router-link":"a"}}};function jh(e,t,r,o,l,i){return n.openBlock(),n.createBlock(n.resolveDynamicComponent(i.element),{onClick:i.clicked,to:r.to,href:i.actualHref,target:r.target,class:n.normalizeClass([i.class,"ux-link"])},{default:n.withCtx(()=>[n.renderSlot(e.$slots,"default",{},void 0,!0)]),_:3},8,["onClick","to","href","target","class"])}var ml=k(Rh,[["render",jh],["__scopeId","data-v-efa81728"]]),AC="";const zh={props:{icon:{type:[Object,String]},spin:{type:Boolean},left:{type:Boolean},right:{type:Boolean}},computed:{classes(){var e=[];return e.push(this.icon),this.spin&&e.push("fa-spin"),this.left&&e.push("ux-icon-left"),this.right&&e.push("ux-icon-right"),e},element(){return"i"}}};function qh(e,t,r,o,l,i){return n.openBlock(),n.createBlock(n.resolveDynamicComponent(i.element),{class:n.normalizeClass(["ux-icon fa",i.classes])},null,8,["class"])}var fl=k(zh,[["render",qh],["__scopeId","data-v-1764a3d0"]]),Tn={cache:{}},DC="";const Hh={props:{group:{type:String},right:{type:Boolean,default:!1},bottom:{type:Boolean,default:!1},stop:{type:Boolean,default:!1},closeOnClick:{type:Boolean,default(){return!0}},modelValue:{type:Boolean,default(){return!1}}},data(){return{outerStyle:{},innerStyle:{},isExpanded:this.modelValue,triggerEvent:null,refMenu:null,mounted:!1}},watch:{modelValue(e){this.expanded=e}},mounted(){this.refMenu=this.$refs.menu,this.mounted=!0},beforeUnmount(){this.removeListeners(),this.refMenu=null,this.mounted=!1,Tn.cache[this.group]===this&&(Tn.cache[this.group]=null)},methods:{removeListeners(){document.removeEventListener("click",this.globalClick),this.refMenu&&this.refMenu.removeEventListener("click",this.immediateClick)},addEventListeners(){document.addEventListener("click",this.globalClick),this.refMenu&&this.refMenu.addEventListener("click",this.immediateClick)},immediateClick(e){this.expanded&&this.closeOnClick&&(e.stopImmediatePropagation(),this.expanded=!1)},globalClick(e){if(this.triggerEvent!==e){var t=this.$refs.menu,r=e.srcElement;t&&t.contains(r)?this.closeOnClick&&(this.expanded=!1):this.expanded=!1}},position(){const e=this.$el.getBoundingClientRect();this.outerStyle.left=`${e.left+window.scrollX}px`,this.outerStyle.top=`${e.bottom+window.scrollY}px`,this.right&&(this.innerStyle.right=`-${e.width}px`),this.bottom&&(this.innerStyle.bottom=`${e.height}px`);var t=this.getMaxZIndex();this.outerStyle.zIndex=t},getMaxZIndex(){return Math.max(...Array.from(document.querySelectorAll("body *"),e=>parseFloat(window.getComputedStyle(e).zIndex)).filter(e=>!Number.isNaN(e)),0)},close(){this.expanded=!1}},computed:{expanded:{get(){return this.isExpanded},set(e){var t;this.group&&(t=Tn.cache[this.group]),this.isExpanded!=e&&(this.isExpanded=e,e?(this.position(),this.addEventListeners(),Tn.cache[this.group]=this,t&&t!=this&&(t.expanded=!1)):this.removeListeners(),this.$emit("update:modelValue",e))}},on(){var e=this;return{click(t){e.stop&&t.stopImmediatePropagation(),e.triggerEvent=t,e.expanded=!e.expanded}}}}};function Gh(e,t,r,o,l,i){return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["ux-menu",{right:r.right}])},[n.createElementVNode("span",null,[n.renderSlot(e.$slots,"activator",{on:i.on},void 0,!0)]),(n.openBlock(),n.createBlock(n.Teleport,{to:"body"},[l.isExpanded?(n.openBlock(),n.createElementBlock("div",{key:0,class:"ux-menu-outer",style:n.normalizeStyle(l.outerStyle)},[n.createElementVNode("div",{class:"ux-menu-panel",ref:"menu",style:n.normalizeStyle(l.innerStyle)},[n.renderSlot(e.$slots,"default",{},void 0,!0)],4)],4)):n.createCommentVNode("",!0)]))],2)}var hl=k(Hh,[["render",Gh],["__scopeId","data-v-29d476a2"]]);const Wh={name:"menulist",props:{items:{type:Array,default(){return[]}},expandOn:{type:String,default:"click"}},methods:{toggle(e){e.expanded=!e.expanded,e.collapsed=!e.expanded}},data(){return{}}};function Zh(e,t,r,o,l,i){const a=n.resolveComponent("ux-link"),s=n.resolveComponent("menulist",!0);return n.openBlock(),n.createElementBlock("ul",null,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(r.items,c=>{var d;return n.openBlock(),n.createElementBlock("li",{class:n.normalizeClass({expanded:c.expanded,collapsed:c.collapsed})},[r.expandOn==="click"&&((d=c.items)==null?void 0:d.length)?(n.openBlock(),n.createBlock(a,{key:0,onClick:n.withModifiers(u=>i.toggle(c),["stop","prevent"]),class:n.normalizeClass(c.class)},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(c.title),1)]),_:2},1032,["onClick","class"])):(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[c.type==="url"?(n.openBlock(),n.createBlock(a,{key:0,class:n.normalizeClass(c.class),target:c.target,href:c.href||c.url},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(c.title),1)]),_:2},1032,["class","target","href"])):c.type==="route"?(n.openBlock(),n.createBlock(a,{key:1,class:n.normalizeClass(c.class),to:{name:c.route}},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(c.title),1)]),_:2},1032,["class","to"])):n.createCommentVNode("",!0)],64)),c.items&&c.items.length?(n.openBlock(),n.createBlock(s,{key:2,items:c.items},null,8,["items"])):n.createCommentVNode("",!0)],2)}),256))])}var pl=k(Wh,[["render",Zh]]),MC="";const Yh={props:{item:{type:Object},width:{type:[Number,String]},height:{type:[Number,String]},quality:{type:Number},crop:{type:Boolean},format:{type:String},upscale:{type:Boolean,default:!0},type:{type:String,default:"image"},svg:{type:Boolean}},data(){return{model:this.item}},computed:{isSvg(){var e;if(this.svg)return!0;switch((e=this.item)==null?void 0:e.fileMime){case"image/svg+xml":case"image/svg":return!0}},defaultWidth(){},defaultHeight(){},imageWidth(){return parseInt(this.width)},imageHeight(){return parseInt(this.height)},id(){return this.$sdk.utils.id(this.model)},params(){var e={};return e.access_token=this.$sdk.auth.getCurrentToken(),this.imageWidth&&(e.w=this.imageWidth?this.imageWidth:this.defaultWidth),this.imageHeight&&(e.h=this.imageHeight?this.imageHeight:this.defaultHeight),this.crop?e.c=!0:e.c=this.imageWidth&&this.imageHeight,this.quality&&(e.q=parseInt(this.quality)),this.upscale&&(e.u=!0),this.format&&(e.f=this.format),e},src(){return this.$sdk.api.generateEndpointURL(`/${this.type}/${this.id}`,this.params)},previewSrc(){var e=Object.assign({},this.params);return e.w=50,delete e.h,this.$sdk.api.generateEndpointURL(`/${this.type}/${this.id}`,e)},style(){var l,i,a;var e={},t=(a=(i=(l=this.model)==null?void 0:l.fileMeta)==null?void 0:i.colors)==null?void 0:a.colors;t&&t.length&&(e.backgroundColor=t[0]);var r=this.model.width,o=this.model.height;return this.width&&this.height&&(r=this.width,o=this.height),o&&r&&(e.height=0,e.paddingBottom=`${o/r*100}%`),this.isSvg||(e.backgroundImage=`url(${this.previewSrc})`),e}}},Kh=["data"],Xh=["src"];function Jh(e,t,r,o,l,i){return n.openBlock(),n.createElementBlock("div",{class:"ux-image",style:n.normalizeStyle(i.style)},[r.svg?(n.openBlock(),n.createElementBlock("object",{key:0,type:"image/svg+xml",data:i.src},null,8,Kh)):(n.openBlock(),n.createElementBlock("img",{key:1,src:i.src},null,8,Xh))],4)}var gl=k(Yh,[["render",Jh],["__scopeId","data-v-92100196"]]),OC="";const Qh={props:{value:{type:Number}},computed:{classes(){var e=[];return e.push(this.icon),this.spin&&e.push("fa-spin"),this.left&&e.push("ux-icon-left"),this.right&&e.push("ux-icon-right"),e},percent(){return this.value},barStyle(){return{width:`${this.percent}%`}},element(){return"i"}}},vh=e=>(n.pushScopeId("data-v-317a7690"),e=e(),n.popScopeId(),e),ep={class:"ux-progress"},tp=vh(()=>n.createElementVNode("div",{class:"ux-progress-bg"},null,-1));function np(e,t,r,o,l,i){return n.openBlock(),n.createElementBlock("div",ep,[tp,n.createElementVNode("div",{class:"ux-progress-fg",style:n.normalizeStyle(i.barStyle)},null,4)])}var yl=k(Qh,[["render",np],["__scopeId","data-v-317a7690"]]),FC="";const rp={},op={class:"ux-list"};function ip(e,t){return n.openBlock(),n.createElementBlock("ul",op,[n.renderSlot(e.$slots,"default",{},void 0,!0)])}var _l=k(rp,[["render",ip],["__scopeId","data-v-98e1e4e2"]]),IC="";const lp={},ap={class:"ux-list-item"};function sp(e,t,r,o,l,i){return n.openBlock(),n.createElementBlock("div",ap,[n.renderSlot(e.$slots,"default",{},void 0,!0)])}var kl=k(lp,[["render",sp],["__scopeId","data-v-0e73c260"]]),Nr={exports:{}},cp=Object.prototype.hasOwnProperty;function bl(e){return"[Throws: "+(e?e.message:"?")+"]"}function dp(e,t){if(cp.call(e,t))try{return e[t]}catch(r){return bl(r)}return e[t]}function xl(e){var t=[];function r(o){if(o===null||typeof o!="object")return o;if(t.indexOf(o)!==-1)return"[Circular]";if(t.push(o),typeof o.toJSON=="function")try{var l=r(o.toJSON());return t.pop(),l}catch(s){return bl(s)}if(Array.isArray(o)){var i=o.map(r);return t.pop(),i}var a=Object.keys(o).reduce(function(s,c){return s[c]=r(dp(o,c)),s},{});return t.pop(),a}return r(e)}Nr.exports=function(e,t,r){return JSON.stringify(xl(e),t,r)},Nr.exports.ensureProperties=xl;var Tr=Nr.exports;function up(e,t){return e==null||t=="date"&&e.toString&&e.toString()==="Invalid Date"}var v={props:{field:{type:Object,default(){return{}}},parentModel:{type:Object}},data(){return{value:this.modelValue}},watch:{modelValue(e,t){var r=this.cleanInput(e),o=this.cleanInput(this.model);Tr(r)!=Tr(o)&&(this.model=r)}},mounted(){this.checkAutofocus()},computed:{optionLookup(){var e=this;return e.options.reduce(function(t,r){const o=e.getValue(r);return t[o]=r,t},{})},selectableOptions(){return this.options},required(){return this.minimum},model:{get(){var e=this.cleanOutput(this.value);return e},set(e){this.value=this.cleanInput(e),this.checkAutofocus(),this.dispatch()}},options(){var e=this;return(this.field.options||[]).reduce(function(t,r){if(!r)return t;const o=e.getValue(r);var i={title:r.title||r.name||r.label||o,value:o,source:r};return e.field.type=="reference"&&(i._id=o),t.push(i),t},[])},prefix(){return this.field.suffix},suffix(){return this.field.suffix},type(){return this.field.type||"string"},key(){return this.field.key},isGroup(){return this.type==="group"},asObject(){return this.isGroup&&!!this.field.asObject},layoutGroup(){return this.isGroup&&!this.field.asObject},canAddValue(){if(!this.singleValue)return this.maximum===0||this.numValues<this.maximum},canRemoveValue(){return this.numValues>this.minimum},widget(){return this.field.widget},singleValue(){if(this.asObject){var e=this.minimum===1&&this.maximum===1;return e}else return this.maximum===1},multiValue(){return!this.singleValue},label(){return this.field.title},description(){return this.field.description},placeholder(){return this.field.placeholder||this.field.hint},addLabel(){return this.numValues?`Add another ${this.label}`:`Add ${this.label}`},removeLabel(){return"Remove"},numValues(){return this.singleValue?1:(this.value||[]).length||0},showLabel(){return this.field.title},showDescription(){return this.description},fields(){var e=this.field.fields;if(e&&e.length)return e},minimum(){if(this.layoutGroup)return 1;var e=parseInt(this.field.minimum||0);return isNaN(e)&&(e=0),e=Math.max(e,0),e=this.maximum?Math.min(e,this.maximum):e,parseInt(e)},maximum(){if(this.layoutGroup)return 1;var e=parseInt(this.field.maximum||0);return isNaN(e)&&(e=0),e=Math.max(e,0),parseInt(e)},ask(){var e=parseInt(this.field.ask);return e=Math.max(e,this.minimum),this.maximum&&(e=Math.min(e,this.maximum)),e}},methods:{cleanTextInput(e,t,r){switch(t){case"url":e=r.$sdk.utils.parseURL(e);break;case"key":e=r.$sdk.utils.machineName(e);break;case"integer":e=parseInt(String(e).replace(/[^0-9-]/g,"")),isNaN(e)&&(e=void 0);break;case"number":case"decimal":case"float":e=Number(String(e).replace(/[^0-9.-]/g,"")),isNaN(e)&&(e=void 0);break}return e},checkAutofocus(){if(this.field.autofocus){if(this.value)return;this.$nextTick(function(){this.refocus()})}},getValue(e){if(!!e){var t=e._id||e.value;return!t&&e.title&&!this.returnObject&&(t=e.title),t||e}},getLabel(e){if(!!e){var t=e.title||e.name||e.label;return typeof t=="object"?"(no title)":t}},touch(){this.$emit("touched")},getNewDefaultEntry(){},add(){if(!!this.canAddValue){var e=this.cleanInputValue(this.getNewDefaultEntry());(!this.value||!Array.isArray(this.value))&&(this.value=[]),this.value.push(e),this.dispatch(),this.$nextTick(function(){this.refocus()}),this.touch()}},remove(e){var t=this.model.indexOf(e);this.value.splice(t,1),this.dispatch(),this.touch()},dispatch(){this.$emit("update:modelValue",this.value)},cleanInputValue(e){return e},cleanOutputValue(e){return e},cleanOutput(e){var t=this;return up(e,t.field.type)?t.multiValue?e=[]:e=void 0:t.multiValue?(Array.isArray(e)||(e=[]),e.forEach(function(r,o){e[o]=t.cleanOutputValue(r)})):e=t.cleanOutputValue(e),e},cleanInput(e){var t=this;if(t.multiValue){for(e||(e=[]),Array.isArray(e)||(e=[e]),t.maximum&&e.length>t.maximum&&(e.length=t.maximum);e.length<t.minimum;)e.push(t.cleanInputValue(t.getNewDefaultEntry()));e=e.map(function(r){var o=t.cleanInputValue(r);return o})}else e&&(e=t.cleanInputValue(e));return e},refocus(){var e=this.$refs.input;if(!!e){var t;Array.isArray(e)?t=e[e.length-1]:t=e,t&&t.focus()}}}},$C="";function mp(e){return e===void 0||typeof e=="undefined"||e===null||String(e)==="null"||String(e)==="undefined"}const fp={props:{title:{type:String},modelValue:{}},mixins:[v],created(){this.model=this.model},methods:{cleanOutput(e){var t=this;return mp(e)?t.multiValue?e=[]:e=void 0:t.multiValue?e=(e||[]).filter(Boolean).map(function(r){return t.getValue(r)}):e=t.getValue(e),e},cleanInput(e){var t=this;if(t.multiValue)e||(e=[]),Array.isArray(e)||(e=[e]),t.maximum&&e.length>t.maximum&&(e.length=t.maximum),e=e.filter(Boolean).map(function(o){var l=t.getValue(o);return t.returnObject?t.optionLookup[l]:l});else{var r=t.getValue(e);e=t.returnObject?t.optionLookup[r]:r}return e}},computed:{returnObject(){return this.type=="reference"},classes(){var e=[];return this.multiValue?e.push("multiple"):e.push("single"),e},optionLookup(){var e=this;return e.options.reduce(function(t,r){const o=e.getValue(r);return t[o]=r,t},{})},summary(){return this.model?this.getLabel(this.optionLookup[this.model]):this.title||"Click to select"},selectableOptions(){return this.options}}},hp={key:0,class:"ux-field-title"},pp={key:0,class:"ux-required-marker"},gp={key:1,class:"ux-field-description"},yp={key:2,class:"ui-select-button"},_p=["multiple"],kp={key:0,value:""},bp=["value"];function xp(e,t,r,o,l,i){const a=n.resolveComponent("ux-button");return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["native-select",i.classes])},[e.showLabel?(n.openBlock(),n.createElementBlock("label",hp,[n.createTextVNode(n.toDisplayString(e.label)+" ",1),e.required?(n.openBlock(),n.createElementBlock("span",pp,"*")):n.createCommentVNode("",!0)])):n.createCommentVNode("",!0),e.showDescription?(n.openBlock(),n.createElementBlock("div",gp,n.toDisplayString(e.description),1)):n.createCommentVNode("",!0),e.singleValue?(n.openBlock(),n.createElementBlock("div",yp,[n.renderSlot(e.$slots,"default",{},()=>[n.createVNode(a,{tag:"div"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(i.summary),1)]),_:1})],!0)])):n.createCommentVNode("",!0),n.withDirectives(n.createElementVNode("select",{onFocus:t[0]||(t[0]=(...s)=>e.touch&&e.touch(...s)),multiple:e.multiValue,"onUpdate:modelValue":t[1]||(t[1]=s=>e.model=s)},[e.singleValue&&!e.minimum?(n.openBlock(),n.createElementBlock("option",kp,"None")):n.createCommentVNode("",!0),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(i.selectableOptions,s=>(n.openBlock(),n.createElementBlock("option",{value:s.value},n.toDisplayString(s.title),9,bp))),256))],40,_p),[[n.vModelSelect,e.model]])],2)}var dt=k(fp,[["render",xp],["__scopeId","data-v-1d53b270"]]),LC="";const wp={props:{modelValue:{type:[Object,Array]}},components:{NativeSelect:dt},mixins:[v],async created(){var e=await this.$sdk.system.countries(),t=e.reduce(function(r,o){if(!o.countryCallingCodes||!o.countryCallingCodes.length)return r;var l=`${o.name} (${o.countryCallingCodes.join(", ")})`,i=l;return r.values[i]||(r.values[i]=!0,r.lookup[o.alpha2]=o,r.value.push({title:`${l} - ${o.emoji}`,value:o.alpha2,emoji:o.emoji})),r},{value:[],values:{},lookup:{}});this.countryCodes=t.value,this.lookup=t.lookup},data(){return{countryCodes:[],lookup:{}}},computed:{actualPlaceholder(){return"+61 000 000 000"},countryCodeField(){return{minimum:0,maximum:1,type:"string",options:this.countryCodes}},defaultCountryCode(){var e=this.user?this.user.countryCode:"",t=this.user&&this.user.organisation?this.user.organisation.countryCode:"";return e||t}},methods:{getNewDefaultEntry(){return{label:"",countryCode:this.defaultCountryCode,number:""}}}},Cp=e=>(n.pushScopeId("data-v-79694d60"),e=e(),n.popScopeId(),e),Vp={key:0,class:"ux-field-title"},Ep={key:0,class:"ux-required-marker"},Bp={key:1,class:"ux-field-description"},Sp={key:2},Np=n.createTextVNode(" Country Code "),Tp={key:0},Ap={key:1},Dp={class:"ux-text-wrap"},Mp=["placeholder","onUpdate:modelValue"],Op=Cp(()=>n.createElementVNode("option",{value:""},"None",-1)),Fp=["value"],Ip={class:"ux-text-wrap"},$p=["placeholder"];function Lp(e,t,r,o,l,i){const a=n.resolveComponent("native-select"),s=n.resolveComponent("flex-cell"),c=n.resolveComponent("ux-icon"),d=n.resolveComponent("ux-button"),u=n.resolveComponent("flex-row");return n.openBlock(),n.createElementBlock(n.Fragment,null,[e.showLabel?(n.openBlock(),n.createElementBlock("label",Vp,[n.createTextVNode(n.toDisplayString(e.label)+" ",1),e.required?(n.openBlock(),n.createElementBlock("span",Ep,"*")):n.createCommentVNode("",!0)])):n.createCommentVNode("",!0),e.showDescription?(n.openBlock(),n.createElementBlock("div",Bp,n.toDisplayString(e.description),1)):n.createCommentVNode("",!0),e.multiValue?(n.openBlock(),n.createElementBlock("div",Sp,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.model,(m,f)=>(n.openBlock(),n.createBlock(u,{wrap:"",class:"ux-text-row",key:f},{default:n.withCtx(()=>[n.createVNode(s,{shrink:""},{default:n.withCtx(()=>[n.createVNode(a,{modelValue:m.countryCode,"onUpdate:modelValue":h=>m.countryCode=h,field:i.countryCodeField},{default:n.withCtx(()=>[m.countryCode?(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[l.lookup[m.countryCode]?(n.openBlock(),n.createElementBlock("div",Tp,n.toDisplayString(l.lookup[m.countryCode].emoji)+" - "+n.toDisplayString(l.lookup[m.countryCode].alpha2),1)):(n.openBlock(),n.createElementBlock("div",Ap,"Loading"))],64)):(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[Np],64))]),_:2},1032,["modelValue","onUpdate:modelValue","field"])]),_:2},1024),n.createVNode(s,null,{default:n.withCtx(()=>[n.createElementVNode("div",Dp,[n.withDirectives(n.createElementVNode("input",{class:"ux-field-focus ux-text-input-multiple",placeholder:i.actualPlaceholder,onFocus:t[0]||(t[0]=(...h)=>e.touch&&e.touch(...h)),ref_for:!0,ref:"input",onKeydown:t[1]||(t[1]=n.withKeys(n.withModifiers(h=>e.add(),["stop","prevent"]),["enter"])),"onUpdate:modelValue":h=>m.number=h},null,40,Mp),[[n.vModelText,m.number]])])]),_:2},1024),n.createVNode(s,{shrink:"",vcenter:""},{default:n.withCtx(()=>[e.canRemoveValue?(n.openBlock(),n.createBlock(d,{key:0,tag:"a",icon:"",onClick:h=>e.remove(m)},{default:n.withCtx(()=>[n.createVNode(c,{icon:"fa-times"})]),_:2},1032,["onClick"])):n.createCommentVNode("",!0)]),_:2},1024)]),_:2},1024))),128)),e.canAddValue?(n.openBlock(),n.createBlock(d,{key:0,onClick:t[2]||(t[2]=m=>e.add())},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.addLabel)+" ",1),n.createVNode(c,{icon:"fa-plus",right:""})]),_:1})):n.createCommentVNode("",!0)])):(n.openBlock(),n.createBlock(u,{wrap:"",class:"ux-text-row",key:e.index},{default:n.withCtx(()=>[n.createVNode(s,{shrink:""},{default:n.withCtx(()=>[n.withDirectives(n.createElementVNode("select",{class:"ux-country-code-select","onUpdate:modelValue":t[3]||(t[3]=m=>e.model.countryCode=m)},[Op,(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(l.countryCodes,m=>(n.openBlock(),n.createElementBlock("option",{value:m.value},n.toDisplayString(m.title),9,Fp))),256))],512),[[n.vModelSelect,e.model.countryCode]])]),_:1}),n.createVNode(s,null,{default:n.withCtx(()=>[n.createElementVNode("div",Ip,[n.withDirectives(n.createElementVNode("input",{class:"ux-field-focus ux-text-input-multiple",placeholder:i.actualPlaceholder,onFocus:t[4]||(t[4]=(...m)=>e.touch&&e.touch(...m)),ref:"input",onKeydown:t[5]||(t[5]=n.withKeys(n.withModifiers(m=>e.add(),["stop","prevent"]),["enter"])),"onUpdate:modelValue":t[6]||(t[6]=m=>e.model.number=m)},null,40,$p),[[n.vModelText,e.model.number]])])]),_:1})]),_:1}))],64)}var Up=k(wp,[["render",Lp],["__scopeId","data-v-79694d60"]]),UC="";function Pp(e){return e===void 0||typeof e=="undefined"||e===null||String(e)==="null"||String(e)==="undefined"}const Rp={props:{modelValue:{}},mixins:[v],created(){this.model=this.model},methods:{cleanOutput(e){var t=this;return Pp(e)?t.multiValue?e=[]:e=void 0:t.multiValue?e=(e||[]).filter(Boolean).map(function(r){return t.getValue(r)}):e=t.getValue(e),e},cleanInput(e){var t=this;if(t.multiValue)e||(e=[]),Array.isArray(e)||(e=[e]),t.maximum&&e.length>t.maximum&&(e.length=t.maximum),e=e.filter(Boolean).map(function(o){var l=t.getValue(o);return t.returnObject?t.optionLookup[l]:l});else{var r=t.getValue(e);e=t.returnObject?t.optionLookup[r]:r}return e}},computed:{returnObject(){return this.type=="reference"},classes(){var e=[];return this.multiValue?e.push("multiple"):e.push("single"),e},optionLookup(){var e=this;return e.options.reduce(function(t,r){const o=e.getValue(r);return t[o]=r,t},{})},summary(){return this.getLabel(this.optionLookup[this.model])||"Click to select"},options(){return["Africa/Abidjan","Africa/Accra","Africa/Addis_Ababa","Africa/Algiers","Africa/Asmera","Africa/Bamako","Africa/Bangui","Africa/Banjul","Africa/Bissau","Africa/Blantyre","Africa/Brazzaville","Africa/Bujumbura","Africa/Cairo","Africa/Casablanca","Africa/Ceuta","Africa/Conakry","Africa/Dakar","Africa/Dar_es_Salaam","Africa/Djibouti","Africa/Douala","Africa/El_Aaiun","Africa/Freetown","Africa/Gaborone","Africa/Harare","Africa/Johannesburg","Africa/Juba","Africa/Kampala","Africa/Khartoum","Africa/Kigali","Africa/Kinshasa","Africa/Lagos","Africa/Libreville","Africa/Lome","Africa/Luanda","Africa/Lubumbashi","Africa/Lusaka","Africa/Malabo","Africa/Maputo","Africa/Maseru","Africa/Mbabane","Africa/Mogadishu","Africa/Monrovia","Africa/Nairobi","Africa/Ndjamena","Africa/Niamey","Africa/Nouakchott","Africa/Ouagadougou","Africa/Porto-Novo","Africa/Sao_Tome","Africa/Tripoli","Africa/Tunis","Africa/Windhoek","America/Anchorage","America/Anguilla","America/Antigua","America/Araguaina","America/Argentina/La_Rioja","America/Argentina/Rio_Gallegos","America/Argentina/Salta","America/Argentina/San_Juan","America/Argentina/San_Luis","America/Argentina/Tucuman","America/Argentina/Ushuaia","America/Aruba","America/Asuncion","America/Bahia","America/Bahia_Banderas","America/Barbados","America/Belem","America/Belize","America/Blanc-Sablon","America/Boa_Vista","America/Bogota","America/Boise","America/Buenos_Aires","America/Cambridge_Bay","America/Campo_Grande","America/Cancun","America/Caracas","America/Catamarca","America/Cayenne","America/Cayman","America/Chicago","America/Chihuahua","America/Coral_Harbour","America/Cordoba","America/Costa_Rica","America/Creston","America/Cuiaba","America/Curacao","America/Danmarkshavn","America/Dawson","America/Dawson_Creek","America/Denver","America/Detroit","America/Dominica","America/Edmonton","America/Eirunepe","America/El_Salvador","America/Fortaleza","America/Glace_Bay","America/Godthab","America/Goose_Bay","America/Grand_Turk","America/Grenada","America/Guadeloupe","America/Guatemala","America/Guayaquil","America/Guyana","America/Halifax","America/Havana","America/Hermosillo","America/Indiana/Knox","America/Indiana/Marengo","America/Indiana/Petersburg","America/Indiana/Tell_City","America/Indiana/Vevay","America/Indiana/Vincennes","America/Indiana/Winamac","America/Indianapolis","America/Inuvik","America/Iqaluit","America/Jamaica","America/Jujuy","America/Juneau","America/Kentucky/Monticello","America/Kralendijk","America/La_Paz","America/Lima","America/Los_Angeles","America/Louisville","America/Lower_Princes","America/Maceio","America/Managua","America/Manaus","America/Marigot","America/Martinique","America/Matamoros","America/Mazatlan","America/Mendoza","America/Menominee","America/Merida","America/Mexico_City","America/Moncton","America/Monterrey","America/Montevideo","America/Montreal","America/Montserrat","America/Nassau","America/New_York","America/Nipigon","America/Nome","America/Noronha","America/North_Dakota/Beulah","America/North_Dakota/Center","America/North_Dakota/New_Salem","America/Ojinaga","America/Panama","America/Pangnirtung","America/Paramaribo","America/Phoenix","America/Port-au-Prince","America/Port_of_Spain","America/Porto_Velho","America/Puerto_Rico","America/Rainy_River","America/Rankin_Inlet","America/Recife","America/Regina","America/Resolute","America/Rio_Branco","America/Santa_Isabel","America/Santarem","America/Santiago","America/Santo_Domingo","America/Sao_Paulo","America/Scoresbysund","America/Sitka","America/St_Barthelemy","America/St_Johns","America/St_Kitts","America/St_Lucia","America/St_Thomas","America/St_Vincent","America/Swift_Current","America/Tegucigalpa","America/Thule","America/Thunder_Bay","America/Tijuana","America/Toronto","America/Tortola","America/Vancouver","America/Whitehorse","America/Winnipeg","America/Yakutat","America/Yellowknife","Antarctica/Casey","Antarctica/Davis","Antarctica/DumontDUrville","Antarctica/Macquarie","Antarctica/Mawson","Antarctica/McMurdo","Antarctica/Palmer","Antarctica/Rothera","Antarctica/Syowa","Antarctica/Vostok","Arctic/Longyearbyen","Asia/Aden","Asia/Almaty","Asia/Amman","Asia/Anadyr","Asia/Aqtau","Asia/Aqtobe","Asia/Ashgabat","Asia/Baghdad","Asia/Bahrain","Asia/Baku","Asia/Bangkok","Asia/Beirut","Asia/Bishkek","Asia/Brunei","Asia/Calcutta","Asia/Chita","Asia/Choibalsan","Asia/Colombo","Asia/Damascus","Asia/Dhaka","Asia/Dili","Asia/Dubai","Asia/Dushanbe","Asia/Hong_Kong","Asia/Hovd","Asia/Irkutsk","Asia/Jakarta","Asia/Jayapura","Asia/Jerusalem","Asia/Kabul","Asia/Kamchatka","Asia/Karachi","Asia/Kathmandu","Asia/Khandyga","Asia/Kolkata","Asia/Krasnoyarsk","Asia/Kuala_Lumpur","Asia/Kuching","Asia/Kuwait","Asia/Macau","Asia/Magadan","Asia/Makassar","Asia/Manila","Asia/Muscat","Asia/Nicosia","Asia/Novokuznetsk","Asia/Novosibirsk","Asia/Omsk","Asia/Oral","Asia/Phnom_Penh","Asia/Pontianak","Asia/Pyongyang","Asia/Qatar","Asia/Qyzylorda","Asia/Rangoon","Asia/Riyadh","Asia/Saigon","Asia/Sakhalin","Asia/Samarkand","Asia/Seoul","Asia/Shanghai","Asia/Singapore","Asia/Srednekolymsk","Asia/Taipei","Asia/Tashkent","Asia/Tbilisi","Asia/Tehran","Asia/Thimphu","Asia/Tokyo","Asia/Ulaanbaatar","Asia/Urumqi","Asia/Ust-Nera","Asia/Vientiane","Asia/Vladivostok","Asia/Yakutsk","Asia/Yekaterinburg","Asia/Yerevan","Atlantic/Azores","Atlantic/Bermuda","Atlantic/Canary","Atlantic/Cape_Verde","Atlantic/Faeroe","Atlantic/Madeira","Atlantic/Reykjavik","Atlantic/South_Georgia","Atlantic/St_Helena","Atlantic/Stanley","Australia/Adelaide","Australia/Brisbane","Australia/Broken_Hill","Australia/Currie","Australia/Darwin","Australia/Hobart","Australia/Lindeman","Australia/Melbourne","Australia/Perth","Australia/Sydney","CST6CDT","EST5EDT","Etc/GMT","Etc/GMT+1","Etc/GMT+10","Etc/GMT+11","Etc/GMT+12","Etc/GMT+2","Etc/GMT+3","Etc/GMT+4","Etc/GMT+5","Etc/GMT+6","Etc/GMT+7","Etc/GMT-1","Etc/GMT-10","Etc/GMT-11","Etc/GMT-12","Etc/GMT-13","Etc/GMT-2","Etc/GMT-3","Etc/GMT-4","Etc/GMT-5","Etc/GMT-6","Etc/GMT-7","Etc/GMT-8","Etc/GMT-9","Europe/Amsterdam","Europe/Andorra","Europe/Astrakhan","Europe/Athens","Europe/Belgrade","Europe/Berlin","Europe/Bratislava","Europe/Brussels","Europe/Bucharest","Europe/Budapest","Europe/Busingen","Europe/Chisinau","Europe/Copenhagen","Europe/Dublin","Europe/Gibraltar","Europe/Guernsey","Europe/Helsinki","Europe/Isle_of_Man","Europe/Istanbul","Europe/Jersey","Europe/Kaliningrad","Europe/Kiev","Europe/Kirov","Europe/Lisbon","Europe/Ljubljana","Europe/London","Europe/Luxembourg","Europe/Madrid","Europe/Malta","Europe/Mariehamn","Europe/Minsk","Europe/Monaco","Europe/Moscow","Europe/Nicosia","Europe/Oslo","Europe/Paris","Europe/Podgorica","Europe/Prague","Europe/Riga","Europe/Rome","Europe/Samara","Europe/San_Marino","Europe/Sarajevo","Europe/Simferopol","Europe/Skopje","Europe/Sofia","Europe/Stockholm","Europe/Tallinn","Europe/Tirane","Europe/Ulyanovsk","Europe/Uzhgorod","Europe/Vaduz","Europe/Vatican","Europe/Vienna","Europe/Vilnius","Europe/Volgograd","Europe/Warsaw","Europe/Zagreb","Europe/Zaporozhye","Europe/Zurich","Indian/Antananarivo","Indian/Chagos","Indian/Christmas","Indian/Cocos","Indian/Comoro","Indian/Kerguelen","Indian/Mahe","Indian/Maldives","Indian/Mauritius","Indian/Mayotte","Indian/Reunion","MST7MDT","PST8PDT","Pacific/Apia","Pacific/Auckland","Pacific/Efate","Pacific/Enderbury","Pacific/Fakaofo","Pacific/Fiji","Pacific/Funafuti","Pacific/Galapagos","Pacific/Guadalcanal","Pacific/Guam","Pacific/Honolulu","Pacific/Johnston","Pacific/Kosrae","Pacific/Kwajalein","Pacific/Majuro","Pacific/Midway","Pacific/Nauru","Pacific/Niue","Pacific/Noumea","Pacific/Pago_Pago","Pacific/Palau","Pacific/Ponape","Pacific/Port_Moresby","Pacific/Rarotonga","Pacific/Saipan","Pacific/Tahiti","Pacific/Tarawa","Pacific/Tongatapu","Pacific/Truk","Pacific/Wake","Pacific/Wallis"].map(function(e){return{title:e,value:e}})},selectableOptions(){return this.options}}},jp={key:0,class:"ux-field-title"},zp={key:0,class:"ux-required-marker"},qp={key:1,class:"ux-field-description"},Hp={key:2,class:"ui-select-button"},Gp=["multiple"],Wp={key:0,value:""},Zp=["value"];function Yp(e,t,r,o,l,i){const a=n.resolveComponent("ux-button");return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["native-select",i.classes])},[e.showLabel?(n.openBlock(),n.createElementBlock("label",jp,[n.createTextVNode(n.toDisplayString(e.label)+" ",1),e.required?(n.openBlock(),n.createElementBlock("span",zp,"*")):n.createCommentVNode("",!0)])):n.createCommentVNode("",!0),e.showDescription?(n.openBlock(),n.createElementBlock("div",qp,n.toDisplayString(e.description),1)):n.createCommentVNode("",!0),e.singleValue?(n.openBlock(),n.createElementBlock("div",Hp,[n.renderSlot(e.$slots,"default",{},()=>[n.createVNode(a,{tag:"div"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(i.summary),1)]),_:1})],!0)])):n.createCommentVNode("",!0),n.withDirectives(n.createElementVNode("select",{onFocus:t[0]||(t[0]=(...s)=>e.touch&&e.touch(...s)),multiple:e.multiValue,"onUpdate:modelValue":t[1]||(t[1]=s=>e.model=s)},[e.singleValue&&!e.minimum?(n.openBlock(),n.createElementBlock("option",Wp,"None")):n.createCommentVNode("",!0),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(i.selectableOptions,s=>(n.openBlock(),n.createElementBlock("option",{value:s.value},n.toDisplayString(s.title),9,Zp))),256))],40,Gp),[[n.vModelSelect,e.model]])],2)}var Kp=k(Rp,[["render",Yp],["__scopeId","data-v-a15362c8"]]),PC="";const Xp={props:{item:{type:Object,required:!0}},computed:{title(){return this.item.title||this.item.name||this.item.label||(this.item.firstName?`${this.item.firstName} ${this.item.lastName}`:"(Title unknown)")}},methods:{clicked(){this.$sdk.dispatch("item:view",this.item)}}};function Jp(e,t,r,o,l,i){const a=n.resolveComponent("flex-cell"),s=n.resolveComponent("flex-row");return n.openBlock(),n.createElementBlock("div",{class:"content-item",onClick:t[0]||(t[0]=(...c)=>i.clicked&&i.clicked(...c))},[n.createVNode(s,null,{default:n.withCtx(()=>[n.createVNode(a,{shrink:""}),n.createVNode(a,{vcenter:""},{default:n.withCtx(()=>[n.renderSlot(e.$slots,"default",{},()=>[n.createTextVNode(n.toDisplayString(i.title),1)],!0)]),_:3}),n.createVNode(a,{shrink:""},{default:n.withCtx(()=>[n.renderSlot(e.$slots,"actions",{},void 0,!0)]),_:3})]),_:3})])}var wl=k(Xp,[["render",Jp],["__scopeId","data-v-1eeabf50"]]);/**!
1
+ var vw=Object.defineProperty,eC=Object.defineProperties;var tC=Object.getOwnPropertyDescriptors;var Jn=Object.getOwnPropertySymbols;var Na=Object.prototype.hasOwnProperty,Ta=Object.prototype.propertyIsEnumerable;var Sa=(w,n,se)=>n in w?vw(w,n,{enumerable:!0,configurable:!0,writable:!0,value:se}):w[n]=se,E=(w,n)=>{for(var se in n||(n={}))Na.call(n,se)&&Sa(w,se,n[se]);if(Jn)for(var se of Jn(n))Ta.call(n,se)&&Sa(w,se,n[se]);return w},fe=(w,n)=>eC(w,tC(n));var ao=(w,n)=>{var se={};for(var Ae in w)Na.call(w,Ae)&&n.indexOf(Ae)<0&&(se[Ae]=w[Ae]);if(w!=null&&Jn)for(var Ae of Jn(w))n.indexOf(Ae)<0&&Ta.call(w,Ae)&&(se[Ae]=w[Ae]);return se};(function(w,n){typeof exports=="object"&&typeof module!="undefined"?n(exports,require("vue"),require("@qikdev/sdk")):typeof define=="function"&&define.amd?define(["exports","vue","@qikdev/sdk"],n):(w=typeof globalThis!="undefined"?globalThis:w||self,n(w["@qikdev/vue-ui"]={},w.Vue,w["@qikdev/sdk"]))})(this,function(w,n,se){"use strict";const Ae="0.1.57";var nC="",k=(e,t)=>{const r=e.__vccOpts||e;for(const[o,l]of t)r[o]=l;return r};const Aa={},Da={class:"flex-column"};function Ma(e,t,r,o,l,i){return n.openBlock(),n.createElementBlock("div",Da,[n.renderSlot(e.$slots,"default",{},void 0,!0)])}var so=k(Aa,[["render",Ma],["__scopeId","data-v-203ea86f"]]),rC="";const Oa={},Fa={class:"flex-column-body"};function Ia(e,t,r,o,l,i){return n.openBlock(),n.createElementBlock("div",Fa,[n.renderSlot(e.$slots,"default",{},void 0,!0)])}var co=k(Oa,[["render",Ia],["__scopeId","data-v-64850355"]]),oC="";const $a={},La={class:"flex-column-header"};function Ua(e,t,r,o,l,i){return n.openBlock(),n.createElementBlock("div",La,[n.renderSlot(e.$slots,"default",{},void 0,!0)])}var uo=k($a,[["render",Ua],["__scopeId","data-v-10b28f00"]]),iC="";const Pa={},Ra={class:"flex-column-footer"};function ja(e,t,r,o,l,i){return n.openBlock(),n.createElementBlock("div",Ra,[n.renderSlot(e.$slots,"default",{},void 0,!0)])}var mo=k(Pa,[["render",ja],["__scopeId","data-v-68216a72"]]),lC="";const za={},qa={class:"flex-cell"};function Ha(e,t,r,o,l,i){return n.openBlock(),n.createElementBlock("div",qa,[n.renderSlot(e.$slots,"default",{},void 0,!0)])}var fo=k(za,[["render",Ha],["__scopeId","data-v-644bb279"]]),aC="";const Ga={},Wa={class:"flex-row"};function Za(e,t,r,o,l,i){return n.openBlock(),n.createElementBlock("div",Wa,[n.renderSlot(e.$slots,"default",{},void 0,!0)])}var ho=k(Ga,[["render",Za],["__scopeId","data-v-5b76ad1f"]]),sC="";const Ya={},Ka={class:"flex-spacer"};function Xa(e,t,r,o,l,i){return n.openBlock(),n.createElementBlock("div",Ka)}var po=k(Ya,[["render",Xa],["__scopeId","data-v-35b15579"]]),cC="";const Ja={},Qa={class:"panel"};function va(e,t,r,o,l,i){return n.openBlock(),n.createElementBlock("div",Qa,[n.renderSlot(e.$slots,"default",{},void 0,!0)])}var go=k(Ja,[["render",va],["__scopeId","data-v-50ae77fc"]]),dC="";const es={},ts={class:"panel-body"};function ns(e,t,r,o,l,i){return n.openBlock(),n.createElementBlock("div",ts,[n.renderSlot(e.$slots,"default",{},void 0,!0)])}var yo=k(es,[["render",ns],["__scopeId","data-v-c82dca76"]]),uC="";const rs={},os={class:"panel-header"};function is(e,t,r,o,l,i){return n.openBlock(),n.createElementBlock("div",os,[n.renderSlot(e.$slots,"default",{},void 0,!0)])}var _o=k(rs,[["render",is],["__scopeId","data-v-13bf11da"]]),mC="";const ls={},as={class:"panel-footer"};function ss(e,t,r,o,l,i){return n.openBlock(),n.createElementBlock("div",as,[n.renderSlot(e.$slots,"default",{},void 0,!0)])}var ko=k(ls,[["render",ss],["__scopeId","data-v-b4f4786a"]]),fC="";const cs={data(){return{activeIndex:0}},methods:{select(e){this.activeIndex=e}},computed:{tabs(){var e=this.$slots.default();return e}}},ds=["onClick"];function us(e,t,r,o,l,i){const a=n.resolveComponent("flex-row"),s=n.resolveComponent("flex-header"),c=n.resolveComponent("flex-column");return n.openBlock(),n.createBlock(c,null,{default:n.withCtx(()=>[n.createVNode(s,{class:"tabset-menu"},{default:n.withCtx(()=>[n.createVNode(a,null,{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(i.tabs,(d,u)=>(n.openBlock(),n.createElementBlock("a",{class:n.normalizeClass({active:u===l.activeIndex}),onClick:m=>i.select(u)},n.toDisplayString(d.props.heading),11,ds))),256))]),_:1})]),_:1}),n.createVNode(c,null,{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(i.tabs,(d,u)=>n.withDirectives((n.openBlock(),n.createBlock(c,{key:u},{default:n.withCtx(()=>[(n.openBlock(),n.createBlock(n.resolveDynamicComponent(d)))]),_:2},1024)),[[n.vShow,u===l.activeIndex]])),128))]),_:1})]),_:1})}var bo=k(cs,[["render",us],["__scopeId","data-v-1449f192"]]);const ms={props:{heading:{type:String,required:!0}},data(){return{isActive:!1}},computed:{active:{get(){return this.isActive},set(e){this.isActive=e}}}};function fs(e,t,r,o,l,i){const a=n.resolveComponent("flex-column");return n.openBlock(),n.createBlock(a,null,{default:n.withCtx(()=>[n.renderSlot(e.$slots,"default")]),_:3})}var xo=k(ms,[["render",fs]]),sn=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},hs=Array.isArray,Qn=hs,ps=typeof sn=="object"&&sn&&sn.Object===Object&&sn,gs=ps,ys=gs,_s=typeof self=="object"&&self&&self.Object===Object&&self,ks=ys||_s||Function("return this")(),cn=ks,bs=cn,xs=bs.Symbol,vn=xs,wo=vn,Co=Object.prototype,ws=Co.hasOwnProperty,Cs=Co.toString,$t=wo?wo.toStringTag:void 0;function Vs(e){var t=ws.call(e,$t),r=e[$t];try{e[$t]=void 0;var o=!0}catch{}var l=Cs.call(e);return o&&(t?e[$t]=r:delete e[$t]),l}var Es=Vs,Bs=Object.prototype,Ss=Bs.toString;function Ns(e){return Ss.call(e)}var Ts=Ns,Vo=vn,As=Es,Ds=Ts,Ms="[object Null]",Os="[object Undefined]",Eo=Vo?Vo.toStringTag:void 0;function Fs(e){return e==null?e===void 0?Os:Ms:Eo&&Eo in Object(e)?As(e):Ds(e)}var Bo=Fs;function Is(e){return e!=null&&typeof e=="object"}var $s=Is,Ls=Bo,Us=$s,Ps="[object Symbol]";function Rs(e){return typeof e=="symbol"||Us(e)&&Ls(e)==Ps}var dn=Rs,js=Qn,zs=dn,qs=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Hs=/^\w*$/;function Gs(e,t){if(js(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||zs(e)?!0:Hs.test(e)||!qs.test(e)||t!=null&&e in Object(t)}var Ws=Gs;function Zs(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var un=Zs,Ys=Bo,Ks=un,Xs="[object AsyncFunction]",Js="[object Function]",Qs="[object GeneratorFunction]",vs="[object Proxy]";function ec(e){if(!Ks(e))return!1;var t=Ys(e);return t==Js||t==Qs||t==Xs||t==vs}var tc=ec,nc=cn,rc=nc["__core-js_shared__"],oc=rc,er=oc,So=function(){var e=/[^.]+$/.exec(er&&er.keys&&er.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function ic(e){return!!So&&So in e}var lc=ic,ac=Function.prototype,sc=ac.toString;function cc(e){if(e!=null){try{return sc.call(e)}catch{}try{return e+""}catch{}}return""}var dc=cc,uc=tc,mc=lc,fc=un,hc=dc,pc=/[\\^$.*+?()[\]{}|]/g,gc=/^\[object .+?Constructor\]$/,yc=Function.prototype,_c=Object.prototype,kc=yc.toString,bc=_c.hasOwnProperty,xc=RegExp("^"+kc.call(bc).replace(pc,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function wc(e){if(!fc(e)||mc(e))return!1;var t=uc(e)?xc:gc;return t.test(hc(e))}var Cc=wc;function Vc(e,t){return e==null?void 0:e[t]}var Ec=Vc,Bc=Cc,Sc=Ec;function Nc(e,t){var r=Sc(e,t);return Bc(r)?r:void 0}var No=Nc,Tc=No,Ac=Tc(Object,"create"),mn=Ac,To=mn;function Dc(){this.__data__=To?To(null):{},this.size=0}var Mc=Dc;function Oc(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Fc=Oc,Ic=mn,$c="__lodash_hash_undefined__",Lc=Object.prototype,Uc=Lc.hasOwnProperty;function Pc(e){var t=this.__data__;if(Ic){var r=t[e];return r===$c?void 0:r}return Uc.call(t,e)?t[e]:void 0}var Rc=Pc,jc=mn,zc=Object.prototype,qc=zc.hasOwnProperty;function Hc(e){var t=this.__data__;return jc?t[e]!==void 0:qc.call(t,e)}var Gc=Hc,Wc=mn,Zc="__lodash_hash_undefined__";function Yc(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Wc&&t===void 0?Zc:t,this}var Kc=Yc,Xc=Mc,Jc=Fc,Qc=Rc,vc=Gc,ed=Kc;function pt(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var o=e[t];this.set(o[0],o[1])}}pt.prototype.clear=Xc,pt.prototype.delete=Jc,pt.prototype.get=Qc,pt.prototype.has=vc,pt.prototype.set=ed;var td=pt;function nd(){this.__data__=[],this.size=0}var rd=nd;function od(e,t){return e===t||e!==e&&t!==t}var id=od,ld=id;function ad(e,t){for(var r=e.length;r--;)if(ld(e[r][0],t))return r;return-1}var fn=ad,sd=fn,cd=Array.prototype,dd=cd.splice;function ud(e){var t=this.__data__,r=sd(t,e);if(r<0)return!1;var o=t.length-1;return r==o?t.pop():dd.call(t,r,1),--this.size,!0}var md=ud,fd=fn;function hd(e){var t=this.__data__,r=fd(t,e);return r<0?void 0:t[r][1]}var pd=hd,gd=fn;function yd(e){return gd(this.__data__,e)>-1}var _d=yd,kd=fn;function bd(e,t){var r=this.__data__,o=kd(r,e);return o<0?(++this.size,r.push([e,t])):r[o][1]=t,this}var xd=bd,wd=rd,Cd=md,Vd=pd,Ed=_d,Bd=xd;function gt(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var o=e[t];this.set(o[0],o[1])}}gt.prototype.clear=wd,gt.prototype.delete=Cd,gt.prototype.get=Vd,gt.prototype.has=Ed,gt.prototype.set=Bd;var Sd=gt,Nd=No,Td=cn,Ad=Nd(Td,"Map"),Dd=Ad,Ao=td,Md=Sd,Od=Dd;function Fd(){this.size=0,this.__data__={hash:new Ao,map:new(Od||Md),string:new Ao}}var Id=Fd;function $d(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var Ld=$d,Ud=Ld;function Pd(e,t){var r=e.__data__;return Ud(t)?r[typeof t=="string"?"string":"hash"]:r.map}var hn=Pd,Rd=hn;function jd(e){var t=Rd(this,e).delete(e);return this.size-=t?1:0,t}var zd=jd,qd=hn;function Hd(e){return qd(this,e).get(e)}var Gd=Hd,Wd=hn;function Zd(e){return Wd(this,e).has(e)}var Yd=Zd,Kd=hn;function Xd(e,t){var r=Kd(this,e),o=r.size;return r.set(e,t),this.size+=r.size==o?0:1,this}var Jd=Xd,Qd=Id,vd=zd,eu=Gd,tu=Yd,nu=Jd;function yt(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var o=e[t];this.set(o[0],o[1])}}yt.prototype.clear=Qd,yt.prototype.delete=vd,yt.prototype.get=eu,yt.prototype.has=tu,yt.prototype.set=nu;var ru=yt,Do=ru,ou="Expected a function";function tr(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(ou);var r=function(){var o=arguments,l=t?t.apply(this,o):o[0],i=r.cache;if(i.has(l))return i.get(l);var a=e.apply(this,o);return r.cache=i.set(l,a)||i,a};return r.cache=new(tr.Cache||Do),r}tr.Cache=Do;var iu=tr,lu=iu,au=500;function su(e){var t=lu(e,function(o){return r.size===au&&r.clear(),o}),r=t.cache;return t}var cu=su,du=cu,uu=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,mu=/\\(\\)?/g,fu=du(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(uu,function(r,o,l,i){t.push(l?i.replace(mu,"$1"):o||r)}),t}),hu=fu;function pu(e,t){for(var r=-1,o=e==null?0:e.length,l=Array(o);++r<o;)l[r]=t(e[r],r,e);return l}var gu=pu,Mo=vn,yu=gu,_u=Qn,ku=dn,bu=1/0,Oo=Mo?Mo.prototype:void 0,Fo=Oo?Oo.toString:void 0;function Io(e){if(typeof e=="string")return e;if(_u(e))return yu(e,Io)+"";if(ku(e))return Fo?Fo.call(e):"";var t=e+"";return t=="0"&&1/e==-bu?"-0":t}var xu=Io,wu=xu;function Cu(e){return e==null?"":wu(e)}var Vu=Cu,Eu=Qn,Bu=Ws,Su=hu,Nu=Vu;function Tu(e,t){return Eu(e)?e:Bu(e,t)?[e]:Su(Nu(e))}var Au=Tu,Du=dn,Mu=1/0;function Ou(e){if(typeof e=="string"||Du(e))return e;var t=e+"";return t=="0"&&1/e==-Mu?"-0":t}var Fu=Ou,Iu=Au,$u=Fu;function Lu(e,t){t=Iu(t,e);for(var r=0,o=t.length;e!=null&&r<o;)e=e[$u(t[r++])];return r&&r==o?e:void 0}var Uu=Lu,Pu=Uu;function Ru(e,t,r){var o=e==null?void 0:Pu(e,t);return o===void 0?r:o}var $o=Ru,Lt={props:{column:{type:Object,required:!0},row:{type:Object,required:!0},value:{}}},hC="";const ju={mixins:[Lt],computed:{type(){var e,t;return(t=(e=this.row)==null?void 0:e.meta)==null?void 0:t.type}}},zu={class:"table-image-cell"};function qu(e,t,r,o,l,i){const a=n.resolveComponent("ux-image"),s=n.resolveComponent("ux-icon");return n.openBlock(),n.createElementBlock("td",zu,[i.type=="image"||i.type=="video"?(n.openBlock(),n.createBlock(a,{key:0,item:e.row,type:i.type,width:50},null,8,["item","type"])):(n.openBlock(),n.createBlock(s,{key:1,icon:"fa-file"}))])}var Hu=k(ju,[["render",qu],["__scopeId","data-v-6dbe8d2c"]]),pC="";const Gu={data(){return{processing:!1}},mixins:[Lt],computed:{button(){return this.column.button},type(){var e,t;return(t=(e=this.row)==null?void 0:e.meta)==null?void 0:t.type}},methods:{async clicked(){this.processing=!0,await this.button.action(this.row),this.processing=!1}}},Wu={class:"table-button-cell"};function Zu(e,t,r,o,l,i){const a=n.resolveComponent("ux-icon"),s=n.resolveComponent("ux-button");return n.openBlock(),n.createElementBlock("td",Wu,[n.createVNode(s,{size:i.button.size,loading:l.processing,onClick:n.withModifiers(i.clicked,["stop","prevent"])},{default:n.withCtx(()=>[i.button.text?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[n.createTextVNode(n.toDisplayString(i.button.text),1)],64)):n.createCommentVNode("",!0),i.button.icon?(n.openBlock(),n.createBlock(a,{key:1,icon:i.button.icon,right:""},null,8,["icon"])):n.createCommentVNode("",!0)]),_:1},8,["size","loading","onClick"])])}var Yu=k(Gu,[["render",Zu],["__scopeId","data-v-3cbecb7e"]]);class rt extends Error{}class Ku extends rt{constructor(t){super(`Invalid DateTime: ${t.toMessage()}`)}}class Xu extends rt{constructor(t){super(`Invalid Interval: ${t.toMessage()}`)}}class Ju extends rt{constructor(t){super(`Invalid Duration: ${t.toMessage()}`)}}class Ut extends rt{}class Lo extends rt{constructor(t){super(`Invalid unit ${t}`)}}class Ee extends rt{}class Ze extends rt{constructor(){super("Zone is an abstract class")}}const x="numeric",De="short",be="long",nr={year:x,month:x,day:x},Uo={year:x,month:De,day:x},Qu={year:x,month:De,day:x,weekday:De},Po={year:x,month:be,day:x},Ro={year:x,month:be,day:x,weekday:be},jo={hour:x,minute:x},zo={hour:x,minute:x,second:x},qo={hour:x,minute:x,second:x,timeZoneName:De},Ho={hour:x,minute:x,second:x,timeZoneName:be},Go={hour:x,minute:x,hourCycle:"h23"},Wo={hour:x,minute:x,second:x,hourCycle:"h23"},Zo={hour:x,minute:x,second:x,hourCycle:"h23",timeZoneName:De},Yo={hour:x,minute:x,second:x,hourCycle:"h23",timeZoneName:be},Ko={year:x,month:x,day:x,hour:x,minute:x},Xo={year:x,month:x,day:x,hour:x,minute:x,second:x},Jo={year:x,month:De,day:x,hour:x,minute:x},Qo={year:x,month:De,day:x,hour:x,minute:x,second:x},vu={year:x,month:De,day:x,weekday:De,hour:x,minute:x},vo={year:x,month:be,day:x,hour:x,minute:x,timeZoneName:De},ei={year:x,month:be,day:x,hour:x,minute:x,second:x,timeZoneName:De},ti={year:x,month:be,day:x,weekday:be,hour:x,minute:x,timeZoneName:be},ni={year:x,month:be,day:x,weekday:be,hour:x,minute:x,second:x,timeZoneName:be};function I(e){return typeof e=="undefined"}function ot(e){return typeof e=="number"}function pn(e){return typeof e=="number"&&e%1===0}function em(e){return typeof e=="string"}function tm(e){return Object.prototype.toString.call(e)==="[object Date]"}function ri(){try{return typeof Intl!="undefined"&&!!Intl.RelativeTimeFormat}catch{return!1}}function nm(e){return Array.isArray(e)?e:[e]}function oi(e,t,r){if(e.length!==0)return e.reduce((o,l)=>{const i=[t(l),l];return o&&r(o[0],i[0])===o[0]?o:i},null)[1]}function rm(e,t){return t.reduce((r,o)=>(r[o]=e[o],r),{})}function _t(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function ze(e,t,r){return pn(e)&&e>=t&&e<=r}function om(e,t){return e-t*Math.floor(e/t)}function te(e,t=2){const r=e<0;let o;return r?o="-"+(""+-e).padStart(t,"0"):o=(""+e).padStart(t,"0"),o}function Ye(e){if(!(I(e)||e===null||e===""))return parseInt(e,10)}function it(e){if(!(I(e)||e===null||e===""))return parseFloat(e)}function rr(e){if(!(I(e)||e===null||e==="")){const t=parseFloat("0."+e)*1e3;return Math.floor(t)}}function or(e,t,r=!1){const o=10**t;return(r?Math.trunc:Math.round)(e*o)/o}function Pt(e){return e%4===0&&(e%100!==0||e%400===0)}function Rt(e){return Pt(e)?366:365}function gn(e,t){const r=om(t-1,12)+1,o=e+(t-r)/12;return r===2?Pt(o)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][r-1]}function ir(e){let t=Date.UTC(e.year,e.month-1,e.day,e.hour,e.minute,e.second,e.millisecond);return e.year<100&&e.year>=0&&(t=new Date(t),t.setUTCFullYear(t.getUTCFullYear()-1900)),+t}function yn(e){const t=(e+Math.floor(e/4)-Math.floor(e/100)+Math.floor(e/400))%7,r=e-1,o=(r+Math.floor(r/4)-Math.floor(r/100)+Math.floor(r/400))%7;return t===4||o===3?53:52}function lr(e){return e>99?e:e>60?1900+e:2e3+e}function ii(e,t,r,o=null){const l=new Date(e),i={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};o&&(i.timeZone=o);const a=E({timeZoneName:t},i),s=new Intl.DateTimeFormat(r,a).formatToParts(l).find(c=>c.type.toLowerCase()==="timezonename");return s?s.value:null}function _n(e,t){let r=parseInt(e,10);Number.isNaN(r)&&(r=0);const o=parseInt(t,10)||0,l=r<0||Object.is(r,-0)?-o:o;return r*60+l}function li(e){const t=Number(e);if(typeof e=="boolean"||e===""||Number.isNaN(t))throw new Ee(`Invalid unit value ${e}`);return t}function kn(e,t){const r={};for(const o in e)if(_t(e,o)){const l=e[o];if(l==null)continue;r[t(o)]=li(l)}return r}function bn(e,t){const r=Math.trunc(Math.abs(e/60)),o=Math.trunc(Math.abs(e%60)),l=e>=0?"+":"-";switch(t){case"short":return`${l}${te(r,2)}:${te(o,2)}`;case"narrow":return`${l}${r}${o>0?`:${o}`:""}`;case"techie":return`${l}${te(r,2)}${te(o,2)}`;default:throw new RangeError(`Value format ${t} is out of range for property format`)}}function xn(e){return rm(e,["hour","minute","second","millisecond"])}const im=/[A-Za-z_+-]{1,256}(:?\/[A-Za-z0-9_+-]{1,256}(\/[A-Za-z0-9_+-]{1,256})?)?/,lm=["January","February","March","April","May","June","July","August","September","October","November","December"],ai=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],am=["J","F","M","A","M","J","J","A","S","O","N","D"];function si(e){switch(e){case"narrow":return[...am];case"short":return[...ai];case"long":return[...lm];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}const ci=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],di=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],sm=["M","T","W","T","F","S","S"];function ui(e){switch(e){case"narrow":return[...sm];case"short":return[...di];case"long":return[...ci];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const mi=["AM","PM"],cm=["Before Christ","Anno Domini"],dm=["BC","AD"],um=["B","A"];function fi(e){switch(e){case"narrow":return[...um];case"short":return[...dm];case"long":return[...cm];default:return null}}function mm(e){return mi[e.hour<12?0:1]}function fm(e,t){return ui(t)[e.weekday-1]}function hm(e,t){return si(t)[e.month-1]}function pm(e,t){return fi(t)[e.year<0?0:1]}function gm(e,t,r="always",o=!1){const l={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},i=["hours","minutes","seconds"].indexOf(e)===-1;if(r==="auto"&&i){const m=e==="days";switch(t){case 1:return m?"tomorrow":`next ${l[e][0]}`;case-1:return m?"yesterday":`last ${l[e][0]}`;case 0:return m?"today":`this ${l[e][0]}`}}const a=Object.is(t,-0)||t<0,s=Math.abs(t),c=s===1,d=l[e],u=o?c?d[1]:d[2]||d[1]:c?l[e][0]:e;return a?`${s} ${u} ago`:`in ${s} ${u}`}function hi(e,t){let r="";for(const o of e)o.literal?r+=o.val:r+=t(o.val);return r}const ym={D:nr,DD:Uo,DDD:Po,DDDD:Ro,t:jo,tt:zo,ttt:qo,tttt:Ho,T:Go,TT:Wo,TTT:Zo,TTTT:Yo,f:Ko,ff:Jo,fff:vo,ffff:ti,F:Xo,FF:Qo,FFF:ei,FFFF:ni};class he{static create(t,r={}){return new he(t,r)}static parseFormat(t){let r=null,o="",l=!1;const i=[];for(let a=0;a<t.length;a++){const s=t.charAt(a);s==="'"?(o.length>0&&i.push({literal:l,val:o}),r=null,o="",l=!l):l||s===r?o+=s:(o.length>0&&i.push({literal:!1,val:o}),o=s,r=s)}return o.length>0&&i.push({literal:l,val:o}),i}static macroTokenToFormatOpts(t){return ym[t]}constructor(t,r){this.opts=r,this.loc=t,this.systemLoc=null}formatWithSystemDefault(t,r){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(t,E(E({},this.opts),r)).format()}formatDateTime(t,r={}){return this.loc.dtFormatter(t,E(E({},this.opts),r)).format()}formatDateTimeParts(t,r={}){return this.loc.dtFormatter(t,E(E({},this.opts),r)).formatToParts()}resolvedOptions(t,r={}){return this.loc.dtFormatter(t,E(E({},this.opts),r)).resolvedOptions()}num(t,r=0){if(this.opts.forceSimple)return te(t,r);const o=E({},this.opts);return r>0&&(o.padTo=r),this.loc.numberFormatter(o).format(t)}formatDateTimeFromString(t,r){const o=this.loc.listingMode()==="en",l=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",i=(h,p)=>this.loc.extract(t,h,p),a=h=>t.isOffsetFixed&&t.offset===0&&h.allowZ?"Z":t.isValid?t.zone.formatOffset(t.ts,h.format):"",s=()=>o?mm(t):i({hour:"numeric",hourCycle:"h12"},"dayperiod"),c=(h,p)=>o?hm(t,h):i(p?{month:h}:{month:h,day:"numeric"},"month"),d=(h,p)=>o?fm(t,h):i(p?{weekday:h}:{weekday:h,month:"long",day:"numeric"},"weekday"),u=h=>{const p=he.macroTokenToFormatOpts(h);return p?this.formatWithSystemDefault(t,p):h},m=h=>o?pm(t,h):i({era:h},"era"),f=h=>{switch(h){case"S":return this.num(t.millisecond);case"u":case"SSS":return this.num(t.millisecond,3);case"s":return this.num(t.second);case"ss":return this.num(t.second,2);case"uu":return this.num(Math.floor(t.millisecond/10),2);case"uuu":return this.num(Math.floor(t.millisecond/100));case"m":return this.num(t.minute);case"mm":return this.num(t.minute,2);case"h":return this.num(t.hour%12===0?12:t.hour%12);case"hh":return this.num(t.hour%12===0?12:t.hour%12,2);case"H":return this.num(t.hour);case"HH":return this.num(t.hour,2);case"Z":return a({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return a({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return a({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return t.zone.offsetName(t.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return t.zone.offsetName(t.ts,{format:"long",locale:this.loc.locale});case"z":return t.zoneName;case"a":return s();case"d":return l?i({day:"numeric"},"day"):this.num(t.day);case"dd":return l?i({day:"2-digit"},"day"):this.num(t.day,2);case"c":return this.num(t.weekday);case"ccc":return d("short",!0);case"cccc":return d("long",!0);case"ccccc":return d("narrow",!0);case"E":return this.num(t.weekday);case"EEE":return d("short",!1);case"EEEE":return d("long",!1);case"EEEEE":return d("narrow",!1);case"L":return l?i({month:"numeric",day:"numeric"},"month"):this.num(t.month);case"LL":return l?i({month:"2-digit",day:"numeric"},"month"):this.num(t.month,2);case"LLL":return c("short",!0);case"LLLL":return c("long",!0);case"LLLLL":return c("narrow",!0);case"M":return l?i({month:"numeric"},"month"):this.num(t.month);case"MM":return l?i({month:"2-digit"},"month"):this.num(t.month,2);case"MMM":return c("short",!1);case"MMMM":return c("long",!1);case"MMMMM":return c("narrow",!1);case"y":return l?i({year:"numeric"},"year"):this.num(t.year);case"yy":return l?i({year:"2-digit"},"year"):this.num(t.year.toString().slice(-2),2);case"yyyy":return l?i({year:"numeric"},"year"):this.num(t.year,4);case"yyyyyy":return l?i({year:"numeric"},"year"):this.num(t.year,6);case"G":return m("short");case"GG":return m("long");case"GGGGG":return m("narrow");case"kk":return this.num(t.weekYear.toString().slice(-2),2);case"kkkk":return this.num(t.weekYear,4);case"W":return this.num(t.weekNumber);case"WW":return this.num(t.weekNumber,2);case"o":return this.num(t.ordinal);case"ooo":return this.num(t.ordinal,3);case"q":return this.num(t.quarter);case"qq":return this.num(t.quarter,2);case"X":return this.num(Math.floor(t.ts/1e3));case"x":return this.num(t.ts);default:return u(h)}};return hi(he.parseFormat(r),f)}formatDurationFromString(t,r){const o=c=>{switch(c[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year";default:return null}},l=c=>d=>{const u=o(d);return u?this.num(c.get(u),d.length):d},i=he.parseFormat(r),a=i.reduce((c,{literal:d,val:u})=>d?c:c.concat(u),[]),s=t.shiftTo(...a.map(o).filter(c=>c));return hi(i,l(s))}}class Me{constructor(t,r){this.reason=t,this.explanation=r}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}class jt{get type(){throw new Ze}get name(){throw new Ze}get isUniversal(){throw new Ze}offsetName(t,r){throw new Ze}formatOffset(t,r){throw new Ze}offset(t){throw new Ze}equals(t){throw new Ze}get isValid(){throw new Ze}}let ar=null;class sr extends jt{static get instance(){return ar===null&&(ar=new sr),ar}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(t,{format:r,locale:o}){return ii(t,r,o)}formatOffset(t,r){return bn(this.offset(t),r)}offset(t){return-new Date(t).getTimezoneOffset()}equals(t){return t.type==="system"}get isValid(){return!0}}let wn={};function _m(e){return wn[e]||(wn[e]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})),wn[e]}const km={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function bm(e,t){const r=e.format(t).replace(/\u200E/g,""),o=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(r),[,l,i,a,s,c,d,u]=o;return[a,l,i,s,c,d,u]}function xm(e,t){const r=e.formatToParts(t),o=[];for(let l=0;l<r.length;l++){const{type:i,value:a}=r[l],s=km[i];i==="era"?o[s]=a:I(s)||(o[s]=parseInt(a,10))}return o}let Cn={};class qe extends jt{static create(t){return Cn[t]||(Cn[t]=new qe(t)),Cn[t]}static resetCache(){Cn={},wn={}}static isValidSpecifier(t){return this.isValidZone(t)}static isValidZone(t){if(!t)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:t}).format(),!0}catch{return!1}}constructor(t){super(),this.zoneName=t,this.valid=qe.isValidZone(t)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(t,{format:r,locale:o}){return ii(t,r,o,this.name)}formatOffset(t,r){return bn(this.offset(t),r)}offset(t){const r=new Date(t);if(isNaN(r))return NaN;const o=_m(this.name);let[l,i,a,s,c,d,u]=o.formatToParts?xm(o,r):bm(o,r);s==="BC"&&(l=-Math.abs(l)+1);const f=ir({year:l,month:i,day:a,hour:c===24?0:c,minute:d,second:u,millisecond:0});let h=+r;const p=h%1e3;return h-=p>=0?p:1e3+p,(f-h)/(60*1e3)}equals(t){return t.type==="iana"&&t.name===this.name}get isValid(){return this.valid}}let cr=null;class de extends jt{static get utcInstance(){return cr===null&&(cr=new de(0)),cr}static instance(t){return t===0?de.utcInstance:new de(t)}static parseSpecifier(t){if(t){const r=t.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(r)return new de(_n(r[1],r[2]))}return null}constructor(t){super(),this.fixed=t}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${bn(this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(t,r){return bn(this.fixed,r)}get isUniversal(){return!0}offset(){return this.fixed}equals(t){return t.type==="fixed"&&t.fixed===this.fixed}get isValid(){return!0}}class wm extends jt{constructor(t){super(),this.zoneName=t}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}function Ke(e,t){if(I(e)||e===null)return t;if(e instanceof jt)return e;if(em(e)){const r=e.toLowerCase();return r==="local"||r==="system"?t:r==="utc"||r==="gmt"?de.utcInstance:de.parseSpecifier(r)||qe.create(e)}else return ot(e)?de.instance(e):typeof e=="object"&&e.offset&&typeof e.offset=="number"?e:new wm(e)}let pi=()=>Date.now(),gi="system",yi=null,_i=null,ki=null,bi;class re{static get now(){return pi}static set now(t){pi=t}static set defaultZone(t){gi=t}static get defaultZone(){return Ke(gi,sr.instance)}static get defaultLocale(){return yi}static set defaultLocale(t){yi=t}static get defaultNumberingSystem(){return _i}static set defaultNumberingSystem(t){_i=t}static get defaultOutputCalendar(){return ki}static set defaultOutputCalendar(t){ki=t}static get throwOnInvalid(){return bi}static set throwOnInvalid(t){bi=t}static resetCaches(){Z.resetCache(),qe.resetCache()}}let xi={};function Cm(e,t={}){const r=JSON.stringify([e,t]);let o=xi[r];return o||(o=new Intl.ListFormat(e,t),xi[r]=o),o}let dr={};function ur(e,t={}){const r=JSON.stringify([e,t]);let o=dr[r];return o||(o=new Intl.DateTimeFormat(e,t),dr[r]=o),o}let mr={};function Vm(e,t={}){const r=JSON.stringify([e,t]);let o=mr[r];return o||(o=new Intl.NumberFormat(e,t),mr[r]=o),o}let fr={};function Em(e,t={}){const a=t,{base:r}=a,o=ao(a,["base"]),l=JSON.stringify([e,o]);let i=fr[l];return i||(i=new Intl.RelativeTimeFormat(e,t),fr[l]=i),i}let zt=null;function Bm(){return zt||(zt=new Intl.DateTimeFormat().resolvedOptions().locale,zt)}function Sm(e){const t=e.indexOf("-u-");if(t===-1)return[e];{let r;const o=e.substring(0,t);try{r=ur(e).resolvedOptions()}catch{r=ur(o).resolvedOptions()}const{numberingSystem:l,calendar:i}=r;return[o,l,i]}}function Nm(e,t,r){return(r||t)&&(e+="-u",r&&(e+=`-ca-${r}`),t&&(e+=`-nu-${t}`)),e}function Tm(e){const t=[];for(let r=1;r<=12;r++){const o=A.utc(2016,r,1);t.push(e(o))}return t}function Am(e){const t=[];for(let r=1;r<=7;r++){const o=A.utc(2016,11,13+r);t.push(e(o))}return t}function Vn(e,t,r,o,l){const i=e.listingMode(r);return i==="error"?null:i==="en"?o(t):l(t)}function Dm(e){return e.numberingSystem&&e.numberingSystem!=="latn"?!1:e.numberingSystem==="latn"||!e.locale||e.locale.startsWith("en")||new Intl.DateTimeFormat(e.intl).resolvedOptions().numberingSystem==="latn"}class Mm{constructor(t,r,o){this.padTo=o.padTo||0,this.floor=o.floor||!1;const s=o,{padTo:l,floor:i}=s,a=ao(s,["padTo","floor"]);if(!r||Object.keys(a).length>0){const c=E({useGrouping:!1},o);o.padTo>0&&(c.minimumIntegerDigits=o.padTo),this.inf=Vm(t,c)}}format(t){if(this.inf){const r=this.floor?Math.floor(t):t;return this.inf.format(r)}else{const r=this.floor?Math.floor(t):or(t,3);return te(r,this.padTo)}}}class Om{constructor(t,r,o){this.opts=o;let l;if(t.zone.isUniversal){const a=-1*(t.offset/60),s=a>=0?`Etc/GMT+${a}`:`Etc/GMT${a}`;t.offset!==0&&qe.create(s).valid?(l=s,this.dt=t):(l="UTC",o.timeZoneName?this.dt=t:this.dt=t.offset===0?t:A.fromMillis(t.ts+t.offset*60*1e3))}else t.zone.type==="system"?this.dt=t:(this.dt=t,l=t.zone.name);const i=E({},this.opts);l&&(i.timeZone=l),this.dtf=ur(r,i)}format(){return this.dtf.format(this.dt.toJSDate())}formatToParts(){return this.dtf.formatToParts(this.dt.toJSDate())}resolvedOptions(){return this.dtf.resolvedOptions()}}class Fm{constructor(t,r,o){this.opts=E({style:"long"},o),!r&&ri()&&(this.rtf=Em(t,o))}format(t,r){return this.rtf?this.rtf.format(t,r):gm(r,t,this.opts.numeric,this.opts.style!=="long")}formatToParts(t,r){return this.rtf?this.rtf.formatToParts(t,r):[]}}class Z{static fromOpts(t){return Z.create(t.locale,t.numberingSystem,t.outputCalendar,t.defaultToEN)}static create(t,r,o,l=!1){const i=t||re.defaultLocale,a=i||(l?"en-US":Bm()),s=r||re.defaultNumberingSystem,c=o||re.defaultOutputCalendar;return new Z(a,s,c,i)}static resetCache(){zt=null,dr={},mr={},fr={}}static fromObject({locale:t,numberingSystem:r,outputCalendar:o}={}){return Z.create(t,r,o)}constructor(t,r,o,l){const[i,a,s]=Sm(t);this.locale=i,this.numberingSystem=r||a||null,this.outputCalendar=o||s||null,this.intl=Nm(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=l,this.fastNumbersCached=null}get fastNumbers(){return this.fastNumbersCached==null&&(this.fastNumbersCached=Dm(this)),this.fastNumbersCached}listingMode(){const t=this.isEnglish(),r=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return t&&r?"en":"intl"}clone(t){return!t||Object.getOwnPropertyNames(t).length===0?this:Z.create(t.locale||this.specifiedLocale,t.numberingSystem||this.numberingSystem,t.outputCalendar||this.outputCalendar,t.defaultToEN||!1)}redefaultToEN(t={}){return this.clone(fe(E({},t),{defaultToEN:!0}))}redefaultToSystem(t={}){return this.clone(fe(E({},t),{defaultToEN:!1}))}months(t,r=!1,o=!0){return Vn(this,t,o,si,()=>{const l=r?{month:t,day:"numeric"}:{month:t},i=r?"format":"standalone";return this.monthsCache[i][t]||(this.monthsCache[i][t]=Tm(a=>this.extract(a,l,"month"))),this.monthsCache[i][t]})}weekdays(t,r=!1,o=!0){return Vn(this,t,o,ui,()=>{const l=r?{weekday:t,year:"numeric",month:"long",day:"numeric"}:{weekday:t},i=r?"format":"standalone";return this.weekdaysCache[i][t]||(this.weekdaysCache[i][t]=Am(a=>this.extract(a,l,"weekday"))),this.weekdaysCache[i][t]})}meridiems(t=!0){return Vn(this,void 0,t,()=>mi,()=>{if(!this.meridiemCache){const r={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[A.utc(2016,11,13,9),A.utc(2016,11,13,19)].map(o=>this.extract(o,r,"dayperiod"))}return this.meridiemCache})}eras(t,r=!0){return Vn(this,t,r,fi,()=>{const o={era:t};return this.eraCache[t]||(this.eraCache[t]=[A.utc(-40,1,1),A.utc(2017,1,1)].map(l=>this.extract(l,o,"era"))),this.eraCache[t]})}extract(t,r,o){const l=this.dtFormatter(t,r),i=l.formatToParts(),a=i.find(s=>s.type.toLowerCase()===o);return a?a.value:null}numberFormatter(t={}){return new Mm(this.intl,t.forceSimple||this.fastNumbers,t)}dtFormatter(t,r={}){return new Om(t,this.intl,r)}relFormatter(t={}){return new Fm(this.intl,this.isEnglish(),t)}listFormatter(t={}){return Cm(this.intl,t)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")}equals(t){return this.locale===t.locale&&this.numberingSystem===t.numberingSystem&&this.outputCalendar===t.outputCalendar}}function kt(...e){const t=e.reduce((r,o)=>r+o.source,"");return RegExp(`^${t}$`)}function lt(...e){return t=>e.reduce(([r,o,l],i)=>{const[a,s,c]=i(t,l);return[E(E({},r),a),o||s,c]},[{},null,1]).slice(0,2)}function bt(e,...t){if(e==null)return[null,null];for(const[r,o]of t){const l=r.exec(e);if(l)return o(l)}return[null,null]}function wi(...e){return(t,r)=>{const o={};let l;for(l=0;l<e.length;l++)o[e[l]]=Ye(t[r+l]);return[o,null,r+l]}}const Ci=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,hr=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,Vi=RegExp(`${hr.source}${Ci.source}?`),pr=RegExp(`(?:T${Vi.source})?`),Im=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,$m=/(\d{4})-?W(\d\d)(?:-?(\d))?/,Lm=/(\d{4})-?(\d{3})/,Um=wi("weekYear","weekNumber","weekDay"),Pm=wi("year","ordinal"),Rm=/(\d{4})-(\d\d)-(\d\d)/,Ei=RegExp(`${hr.source} ?(?:${Ci.source}|(${im.source}))?`),jm=RegExp(`(?: ${Ei.source})?`);function xt(e,t,r){const o=e[t];return I(o)?r:Ye(o)}function Bi(e,t){return[{year:xt(e,t),month:xt(e,t+1,1),day:xt(e,t+2,1)},null,t+3]}function at(e,t){return[{hours:xt(e,t,0),minutes:xt(e,t+1,0),seconds:xt(e,t+2,0),milliseconds:rr(e[t+3])},null,t+4]}function wt(e,t){const r=!e[t]&&!e[t+1],o=_n(e[t+1],e[t+2]),l=r?null:de.instance(o);return[{},l,t+3]}function Si(e,t){const r=e[t]?qe.create(e[t]):null;return[{},r,t+1]}const zm=RegExp(`^T?${hr.source}$`),qm=/^-?P(?:(?:(-?\d{1,9}(?:\.\d{1,9})?)Y)?(?:(-?\d{1,9}(?:\.\d{1,9})?)M)?(?:(-?\d{1,9}(?:\.\d{1,9})?)W)?(?:(-?\d{1,9}(?:\.\d{1,9})?)D)?(?:T(?:(-?\d{1,9}(?:\.\d{1,9})?)H)?(?:(-?\d{1,9}(?:\.\d{1,9})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,9}))?S)?)?)$/;function Hm(e){const[t,r,o,l,i,a,s,c,d]=e,u=t[0]==="-",m=c&&c[0]==="-",f=(h,p=!1)=>h!==void 0&&(p||h&&u)?-h:h;return[{years:f(it(r)),months:f(it(o)),weeks:f(it(l)),days:f(it(i)),hours:f(it(a)),minutes:f(it(s)),seconds:f(it(c),c==="-0"),milliseconds:f(rr(d),m)}]}const Gm={GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function gr(e,t,r,o,l,i,a){const s={year:t.length===2?lr(Ye(t)):Ye(t),month:ai.indexOf(r)+1,day:Ye(o),hour:Ye(l),minute:Ye(i)};return a&&(s.second=Ye(a)),e&&(s.weekday=e.length>3?ci.indexOf(e)+1:di.indexOf(e)+1),s}const Wm=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function Zm(e){const[,t,r,o,l,i,a,s,c,d,u,m]=e,f=gr(t,l,o,r,i,a,s);let h;return c?h=Gm[c]:d?h=0:h=_n(u,m),[f,new de(h)]}function Ym(e){return e.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}const Km=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,Xm=/^(Monday|Tuesday|Wedsday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,Jm=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function Ni(e){const[,t,r,o,l,i,a,s]=e;return[gr(t,l,o,r,i,a,s),de.utcInstance]}function Qm(e){const[,t,r,o,l,i,a,s]=e;return[gr(t,s,r,o,l,i,a),de.utcInstance]}const vm=kt(Im,pr),ef=kt($m,pr),tf=kt(Lm,pr),nf=kt(Vi),rf=lt(Bi,at,wt),of=lt(Um,at,wt),lf=lt(Pm,at,wt),af=lt(at,wt);function sf(e){return bt(e,[vm,rf],[ef,of],[tf,lf],[nf,af])}function cf(e){return bt(Ym(e),[Wm,Zm])}function df(e){return bt(e,[Km,Ni],[Xm,Ni],[Jm,Qm])}function uf(e){return bt(e,[qm,Hm])}const mf=lt(at);function ff(e){return bt(e,[zm,mf])}const hf=kt(Rm,jm),pf=kt(Ei),gf=lt(Bi,at,wt,Si),yf=lt(at,wt,Si);function _f(e){return bt(e,[hf,gf],[pf,yf])}const kf="Invalid Duration",Ti={weeks:{days:7,hours:7*24,minutes:7*24*60,seconds:7*24*60*60,milliseconds:7*24*60*60*1e3},days:{hours:24,minutes:24*60,seconds:24*60*60,milliseconds:24*60*60*1e3},hours:{minutes:60,seconds:60*60,milliseconds:60*60*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},bf=E({years:{quarters:4,months:12,weeks:52,days:365,hours:365*24,minutes:365*24*60,seconds:365*24*60*60,milliseconds:365*24*60*60*1e3},quarters:{months:3,weeks:13,days:91,hours:91*24,minutes:91*24*60,seconds:91*24*60*60,milliseconds:91*24*60*60*1e3},months:{weeks:4,days:30,hours:30*24,minutes:30*24*60,seconds:30*24*60*60,milliseconds:30*24*60*60*1e3}},Ti),Be=146097/400,Ct=146097/4800,xf=E({years:{quarters:4,months:12,weeks:Be/7,days:Be,hours:Be*24,minutes:Be*24*60,seconds:Be*24*60*60,milliseconds:Be*24*60*60*1e3},quarters:{months:3,weeks:Be/28,days:Be/4,hours:Be*24/4,minutes:Be*24*60/4,seconds:Be*24*60*60/4,milliseconds:Be*24*60*60*1e3/4},months:{weeks:Ct/7,days:Ct,hours:Ct*24,minutes:Ct*24*60,seconds:Ct*24*60*60,milliseconds:Ct*24*60*60*1e3}},Ti),st=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],wf=st.slice(0).reverse();function ct(e,t,r=!1){const o={values:r?t.values:E(E({},e.values),t.values||{}),loc:e.loc.clone(t.loc),conversionAccuracy:t.conversionAccuracy||e.conversionAccuracy};return new L(o)}function Cf(e){return e<0?Math.floor(e):Math.ceil(e)}function Ai(e,t,r,o,l){const i=e[l][r],a=t[r]/i,s=Math.sign(a)===Math.sign(o[l]),c=!s&&o[l]!==0&&Math.abs(a)<=1?Cf(a):Math.trunc(a);o[l]+=c,t[r]-=c*i}function Vf(e,t){wf.reduce((r,o)=>I(t[o])?r:(r&&Ai(e,t,r,t,o),o),null)}class L{constructor(t){const r=t.conversionAccuracy==="longterm"||!1;this.values=t.values,this.loc=t.loc||Z.create(),this.conversionAccuracy=r?"longterm":"casual",this.invalid=t.invalid||null,this.matrix=r?xf:bf,this.isLuxonDuration=!0}static fromMillis(t,r){return L.fromObject({milliseconds:t},r)}static fromObject(t,r={}){if(t==null||typeof t!="object")throw new Ee(`Duration.fromObject: argument expected to be an object, got ${t===null?"null":typeof t}`);return new L({values:kn(t,L.normalizeUnit),loc:Z.fromObject(r),conversionAccuracy:r.conversionAccuracy})}static fromDurationLike(t){if(ot(t))return L.fromMillis(t);if(L.isDuration(t))return t;if(typeof t=="object")return L.fromObject(t);throw new Ee(`Unknown duration argument ${t} of type ${typeof t}`)}static fromISO(t,r){const[o]=uf(t);return o?L.fromObject(o,r):L.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static fromISOTime(t,r){const[o]=ff(t);return o?L.fromObject(o,r):L.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static invalid(t,r=null){if(!t)throw new Ee("need to specify a reason the Duration is invalid");const o=t instanceof Me?t:new Me(t,r);if(re.throwOnInvalid)throw new Ju(o);return new L({invalid:o})}static normalizeUnit(t){const r={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[t&&t.toLowerCase()];if(!r)throw new Lo(t);return r}static isDuration(t){return t&&t.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(t,r={}){const o=fe(E({},r),{floor:r.round!==!1&&r.floor!==!1});return this.isValid?he.create(this.loc,o).formatDurationFromString(this,t):kf}toHuman(t={}){const r=st.map(o=>{const l=this.values[o];return I(l)?null:this.loc.numberFormatter(fe(E({style:"unit",unitDisplay:"long"},t),{unit:o.slice(0,-1)})).format(l)}).filter(o=>o);return this.loc.listFormatter(E({type:"conjunction",style:t.listStyle||"narrow"},t)).format(r)}toObject(){return this.isValid?E({},this.values):{}}toISO(){if(!this.isValid)return null;let t="P";return this.years!==0&&(t+=this.years+"Y"),(this.months!==0||this.quarters!==0)&&(t+=this.months+this.quarters*3+"M"),this.weeks!==0&&(t+=this.weeks+"W"),this.days!==0&&(t+=this.days+"D"),(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)&&(t+="T"),this.hours!==0&&(t+=this.hours+"H"),this.minutes!==0&&(t+=this.minutes+"M"),(this.seconds!==0||this.milliseconds!==0)&&(t+=or(this.seconds+this.milliseconds/1e3,3)+"S"),t==="P"&&(t+="T0S"),t}toISOTime(t={}){if(!this.isValid)return null;const r=this.toMillis();if(r<0||r>=864e5)return null;t=E({suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended"},t);const o=this.shiftTo("hours","minutes","seconds","milliseconds");let l=t.format==="basic"?"hhmm":"hh:mm";(!t.suppressSeconds||o.seconds!==0||o.milliseconds!==0)&&(l+=t.format==="basic"?"ss":":ss",(!t.suppressMilliseconds||o.milliseconds!==0)&&(l+=".SSS"));let i=o.toFormat(l);return t.includePrefix&&(i="T"+i),i}toJSON(){return this.toISO()}toString(){return this.toISO()}toMillis(){return this.as("milliseconds")}valueOf(){return this.toMillis()}plus(t){if(!this.isValid)return this;const r=L.fromDurationLike(t),o={};for(const l of st)(_t(r.values,l)||_t(this.values,l))&&(o[l]=r.get(l)+this.get(l));return ct(this,{values:o},!0)}minus(t){if(!this.isValid)return this;const r=L.fromDurationLike(t);return this.plus(r.negate())}mapUnits(t){if(!this.isValid)return this;const r={};for(const o of Object.keys(this.values))r[o]=li(t(this.values[o],o));return ct(this,{values:r},!0)}get(t){return this[L.normalizeUnit(t)]}set(t){if(!this.isValid)return this;const r=E(E({},this.values),kn(t,L.normalizeUnit));return ct(this,{values:r})}reconfigure({locale:t,numberingSystem:r,conversionAccuracy:o}={}){const l=this.loc.clone({locale:t,numberingSystem:r}),i={loc:l};return o&&(i.conversionAccuracy=o),ct(this,i)}as(t){return this.isValid?this.shiftTo(t).get(t):NaN}normalize(){if(!this.isValid)return this;const t=this.toObject();return Vf(this.matrix,t),ct(this,{values:t},!0)}shiftTo(...t){if(!this.isValid)return this;if(t.length===0)return this;t=t.map(a=>L.normalizeUnit(a));const r={},o={},l=this.toObject();let i;for(const a of st)if(t.indexOf(a)>=0){i=a;let s=0;for(const d in o)s+=this.matrix[d][a]*o[d],o[d]=0;ot(l[a])&&(s+=l[a]);const c=Math.trunc(s);r[a]=c,o[a]=(s*1e3-c*1e3)/1e3;for(const d in l)st.indexOf(d)>st.indexOf(a)&&Ai(this.matrix,l,d,r,a)}else ot(l[a])&&(o[a]=l[a]);for(const a in o)o[a]!==0&&(r[i]+=a===i?o[a]:o[a]/this.matrix[i][a]);return ct(this,{values:r},!0).normalize()}negate(){if(!this.isValid)return this;const t={};for(const r of Object.keys(this.values))t[r]=this.values[r]===0?0:-this.values[r];return ct(this,{values:t},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(t){if(!this.isValid||!t.isValid||!this.loc.equals(t.loc))return!1;function r(o,l){return o===void 0||o===0?l===void 0||l===0:o===l}for(const o of st)if(!r(this.values[o],t.values[o]))return!1;return!0}}const qt="Invalid Interval";function Ef(e,t){return!e||!e.isValid?Y.invalid("missing or invalid start"):!t||!t.isValid?Y.invalid("missing or invalid end"):t<e?Y.invalid("end before start",`The end of an interval must be after its start, but you had start=${e.toISO()} and end=${t.toISO()}`):null}class Y{constructor(t){this.s=t.start,this.e=t.end,this.invalid=t.invalid||null,this.isLuxonInterval=!0}static invalid(t,r=null){if(!t)throw new Ee("need to specify a reason the Interval is invalid");const o=t instanceof Me?t:new Me(t,r);if(re.throwOnInvalid)throw new Xu(o);return new Y({invalid:o})}static fromDateTimes(t,r){const o=Wt(t),l=Wt(r),i=Ef(o,l);return i==null?new Y({start:o,end:l}):i}static after(t,r){const o=L.fromDurationLike(r),l=Wt(t);return Y.fromDateTimes(l,l.plus(o))}static before(t,r){const o=L.fromDurationLike(r),l=Wt(t);return Y.fromDateTimes(l.minus(o),l)}static fromISO(t,r){const[o,l]=(t||"").split("/",2);if(o&&l){let i,a;try{i=A.fromISO(o,r),a=i.isValid}catch{a=!1}let s,c;try{s=A.fromISO(l,r),c=s.isValid}catch{c=!1}if(a&&c)return Y.fromDateTimes(i,s);if(a){const d=L.fromISO(l,r);if(d.isValid)return Y.after(i,d)}else if(c){const d=L.fromISO(o,r);if(d.isValid)return Y.before(s,d)}}return Y.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static isInterval(t){return t&&t.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get isValid(){return this.invalidReason===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(t="milliseconds"){return this.isValid?this.toDuration(t).get(t):NaN}count(t="milliseconds"){if(!this.isValid)return NaN;const r=this.start.startOf(t),o=this.end.startOf(t);return Math.floor(o.diff(r,t).get(t))+1}hasSame(t){return this.isValid?this.isEmpty()||this.e.minus(1).hasSame(this.s,t):!1}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(t){return this.isValid?this.s>t:!1}isBefore(t){return this.isValid?this.e<=t:!1}contains(t){return this.isValid?this.s<=t&&this.e>t:!1}set({start:t,end:r}={}){return this.isValid?Y.fromDateTimes(t||this.s,r||this.e):this}splitAt(...t){if(!this.isValid)return[];const r=t.map(Wt).filter(a=>this.contains(a)).sort(),o=[];let{s:l}=this,i=0;for(;l<this.e;){const a=r[i]||this.e,s=+a>+this.e?this.e:a;o.push(Y.fromDateTimes(l,s)),l=s,i+=1}return o}splitBy(t){const r=L.fromDurationLike(t);if(!this.isValid||!r.isValid||r.as("milliseconds")===0)return[];let{s:o}=this,l=1,i;const a=[];for(;o<this.e;){const s=this.start.plus(r.mapUnits(c=>c*l));i=+s>+this.e?this.e:s,a.push(Y.fromDateTimes(o,i)),o=i,l+=1}return a}divideEqually(t){return this.isValid?this.splitBy(this.length()/t).slice(0,t):[]}overlaps(t){return this.e>t.s&&this.s<t.e}abutsStart(t){return this.isValid?+this.e==+t.s:!1}abutsEnd(t){return this.isValid?+t.e==+this.s:!1}engulfs(t){return this.isValid?this.s<=t.s&&this.e>=t.e:!1}equals(t){return!this.isValid||!t.isValid?!1:this.s.equals(t.s)&&this.e.equals(t.e)}intersection(t){if(!this.isValid)return this;const r=this.s>t.s?this.s:t.s,o=this.e<t.e?this.e:t.e;return r>=o?null:Y.fromDateTimes(r,o)}union(t){if(!this.isValid)return this;const r=this.s<t.s?this.s:t.s,o=this.e>t.e?this.e:t.e;return Y.fromDateTimes(r,o)}static merge(t){const[r,o]=t.sort((l,i)=>l.s-i.s).reduce(([l,i],a)=>i?i.overlaps(a)||i.abutsStart(a)?[l,i.union(a)]:[l.concat([i]),a]:[l,a],[[],null]);return o&&r.push(o),r}static xor(t){let r=null,o=0;const l=[],i=t.map(c=>[{time:c.s,type:"s"},{time:c.e,type:"e"}]),a=Array.prototype.concat(...i),s=a.sort((c,d)=>c.time-d.time);for(const c of s)o+=c.type==="s"?1:-1,o===1?r=c.time:(r&&+r!=+c.time&&l.push(Y.fromDateTimes(r,c.time)),r=null);return Y.merge(l)}difference(...t){return Y.xor([this].concat(t)).map(r=>this.intersection(r)).filter(r=>r&&!r.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} \u2013 ${this.e.toISO()})`:qt}toISO(t){return this.isValid?`${this.s.toISO(t)}/${this.e.toISO(t)}`:qt}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:qt}toISOTime(t){return this.isValid?`${this.s.toISOTime(t)}/${this.e.toISOTime(t)}`:qt}toFormat(t,{separator:r=" \u2013 "}={}){return this.isValid?`${this.s.toFormat(t)}${r}${this.e.toFormat(t)}`:qt}toDuration(t,r){return this.isValid?this.e.diff(this.s,t,r):L.invalid(this.invalidReason)}mapEndpoints(t){return Y.fromDateTimes(t(this.s),t(this.e))}}class En{static hasDST(t=re.defaultZone){const r=A.now().setZone(t).set({month:12});return!t.isUniversal&&r.offset!==r.set({month:6}).offset}static isValidIANAZone(t){return qe.isValidZone(t)}static normalizeZone(t){return Ke(t,re.defaultZone)}static months(t="long",{locale:r=null,numberingSystem:o=null,locObj:l=null,outputCalendar:i="gregory"}={}){return(l||Z.create(r,o,i)).months(t)}static monthsFormat(t="long",{locale:r=null,numberingSystem:o=null,locObj:l=null,outputCalendar:i="gregory"}={}){return(l||Z.create(r,o,i)).months(t,!0)}static weekdays(t="long",{locale:r=null,numberingSystem:o=null,locObj:l=null}={}){return(l||Z.create(r,o,null)).weekdays(t)}static weekdaysFormat(t="long",{locale:r=null,numberingSystem:o=null,locObj:l=null}={}){return(l||Z.create(r,o,null)).weekdays(t,!0)}static meridiems({locale:t=null}={}){return Z.create(t).meridiems()}static eras(t="short",{locale:r=null}={}){return Z.create(r,null,"gregory").eras(t)}static features(){return{relative:ri()}}}function Di(e,t){const r=l=>l.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),o=r(t)-r(e);return Math.floor(L.fromMillis(o).as("days"))}function Bf(e,t,r){const o=[["years",(s,c)=>c.year-s.year],["quarters",(s,c)=>c.quarter-s.quarter],["months",(s,c)=>c.month-s.month+(c.year-s.year)*12],["weeks",(s,c)=>{const d=Di(s,c);return(d-d%7)/7}],["days",Di]],l={};let i,a;for(const[s,c]of o)if(r.indexOf(s)>=0){i=s;let d=c(e,t);a=e.plus({[s]:d}),a>t?(e=e.plus({[s]:d-1}),d-=1):e=a,l[s]=d}return[e,l,a,i]}function Sf(e,t,r,o){let[l,i,a,s]=Bf(e,t,r);const c=t-l,d=r.filter(m=>["hours","minutes","seconds","milliseconds"].indexOf(m)>=0);d.length===0&&(a<t&&(a=l.plus({[s]:1})),a!==l&&(i[s]=(i[s]||0)+c/(a-l)));const u=L.fromObject(i,o);return d.length>0?L.fromMillis(c,o).shiftTo(...d).plus(u):u}const yr={arab:"[\u0660-\u0669]",arabext:"[\u06F0-\u06F9]",bali:"[\u1B50-\u1B59]",beng:"[\u09E6-\u09EF]",deva:"[\u0966-\u096F]",fullwide:"[\uFF10-\uFF19]",gujr:"[\u0AE6-\u0AEF]",hanidec:"[\u3007|\u4E00|\u4E8C|\u4E09|\u56DB|\u4E94|\u516D|\u4E03|\u516B|\u4E5D]",khmr:"[\u17E0-\u17E9]",knda:"[\u0CE6-\u0CEF]",laoo:"[\u0ED0-\u0ED9]",limb:"[\u1946-\u194F]",mlym:"[\u0D66-\u0D6F]",mong:"[\u1810-\u1819]",mymr:"[\u1040-\u1049]",orya:"[\u0B66-\u0B6F]",tamldec:"[\u0BE6-\u0BEF]",telu:"[\u0C66-\u0C6F]",thai:"[\u0E50-\u0E59]",tibt:"[\u0F20-\u0F29]",latn:"\\d"},Mi={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},Nf=yr.hanidec.replace(/[\[|\]]/g,"").split("");function Tf(e){let t=parseInt(e,10);if(isNaN(t)){t="";for(let r=0;r<e.length;r++){const o=e.charCodeAt(r);if(e[r].search(yr.hanidec)!==-1)t+=Nf.indexOf(e[r]);else for(const l in Mi){const[i,a]=Mi[l];o>=i&&o<=a&&(t+=o-i)}}return parseInt(t,10)}else return t}function Oe({numberingSystem:e},t=""){return new RegExp(`${yr[e||"latn"]}${t}`)}const Af="missing Intl.DateTimeFormat.formatToParts support";function P(e,t=r=>r){return{regex:e,deser:([r])=>t(Tf(r))}}const Oi=`( |${String.fromCharCode(160)})`,Fi=new RegExp(Oi,"g");function Df(e){return e.replace(/\./g,"\\.?").replace(Fi,Oi)}function Ii(e){return e.replace(/\./g,"").replace(Fi," ").toLowerCase()}function Fe(e,t){return e===null?null:{regex:RegExp(e.map(Df).join("|")),deser:([r])=>e.findIndex(o=>Ii(r)===Ii(o))+t}}function $i(e,t){return{regex:e,deser:([,r,o])=>_n(r,o),groups:t}}function _r(e){return{regex:e,deser:([t])=>t}}function Mf(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function Of(e,t){const r=Oe(t),o=Oe(t,"{2}"),l=Oe(t,"{3}"),i=Oe(t,"{4}"),a=Oe(t,"{6}"),s=Oe(t,"{1,2}"),c=Oe(t,"{1,3}"),d=Oe(t,"{1,6}"),u=Oe(t,"{1,9}"),m=Oe(t,"{2,4}"),f=Oe(t,"{4,6}"),h=M=>({regex:RegExp(Mf(M.val)),deser:([F])=>F,literal:!0}),b=(M=>{if(e.literal)return h(M);switch(M.val){case"G":return Fe(t.eras("short",!1),0);case"GG":return Fe(t.eras("long",!1),0);case"y":return P(d);case"yy":return P(m,lr);case"yyyy":return P(i);case"yyyyy":return P(f);case"yyyyyy":return P(a);case"M":return P(s);case"MM":return P(o);case"MMM":return Fe(t.months("short",!0,!1),1);case"MMMM":return Fe(t.months("long",!0,!1),1);case"L":return P(s);case"LL":return P(o);case"LLL":return Fe(t.months("short",!1,!1),1);case"LLLL":return Fe(t.months("long",!1,!1),1);case"d":return P(s);case"dd":return P(o);case"o":return P(c);case"ooo":return P(l);case"HH":return P(o);case"H":return P(s);case"hh":return P(o);case"h":return P(s);case"mm":return P(o);case"m":return P(s);case"q":return P(s);case"qq":return P(o);case"s":return P(s);case"ss":return P(o);case"S":return P(c);case"SSS":return P(l);case"u":return _r(u);case"uu":return _r(s);case"uuu":return P(r);case"a":return Fe(t.meridiems(),0);case"kkkk":return P(i);case"kk":return P(m,lr);case"W":return P(s);case"WW":return P(o);case"E":case"c":return P(r);case"EEE":return Fe(t.weekdays("short",!1,!1),1);case"EEEE":return Fe(t.weekdays("long",!1,!1),1);case"ccc":return Fe(t.weekdays("short",!0,!1),1);case"cccc":return Fe(t.weekdays("long",!0,!1),1);case"Z":case"ZZ":return $i(new RegExp(`([+-]${s.source})(?::(${o.source}))?`),2);case"ZZZ":return $i(new RegExp(`([+-]${s.source})(${o.source})?`),2);case"z":return _r(/[a-z_+-/]{1,256}?/i);default:return h(M)}})(e)||{invalidReason:Af};return b.token=e,b}const Ff={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour:{numeric:"h","2-digit":"hh"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"}};function If(e,t,r){const{type:o,value:l}=e;if(o==="literal")return{literal:!0,val:l};const i=r[o];let a=Ff[o];if(typeof a=="object"&&(a=a[i]),a)return{literal:!1,val:a}}function $f(e){return[`^${e.map(r=>r.regex).reduce((r,o)=>`${r}(${o.source})`,"")}$`,e]}function Lf(e,t,r){const o=e.match(t);if(o){const l={};let i=1;for(const a in r)if(_t(r,a)){const s=r[a],c=s.groups?s.groups+1:1;!s.literal&&s.token&&(l[s.token.val[0]]=s.deser(o.slice(i,i+c))),i+=c}return[o,l]}else return[o,{}]}function Uf(e){const t=i=>{switch(i){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}};let r=null,o;return I(e.z)||(r=qe.create(e.z)),I(e.Z)||(r||(r=new de(e.Z)),o=e.Z),I(e.q)||(e.M=(e.q-1)*3+1),I(e.h)||(e.h<12&&e.a===1?e.h+=12:e.h===12&&e.a===0&&(e.h=0)),e.G===0&&e.y&&(e.y=-e.y),I(e.u)||(e.S=rr(e.u)),[Object.keys(e).reduce((i,a)=>{const s=t(a);return s&&(i[s]=e[a]),i},{}),r,o]}let kr=null;function Pf(){return kr||(kr=A.fromMillis(1555555555555)),kr}function Rf(e,t){if(e.literal)return e;const r=he.macroTokenToFormatOpts(e.val);if(!r)return e;const i=he.create(t,r).formatDateTimeParts(Pf()).map(a=>If(a,t,r));return i.includes(void 0)?e:i}function jf(e,t){return Array.prototype.concat(...e.map(r=>Rf(r,t)))}function Li(e,t,r){const o=jf(he.parseFormat(r),e),l=o.map(a=>Of(a,e)),i=l.find(a=>a.invalidReason);if(i)return{input:t,tokens:o,invalidReason:i.invalidReason};{const[a,s]=$f(l),c=RegExp(a,"i"),[d,u]=Lf(t,c,s),[m,f,h]=u?Uf(u):[null,null,void 0];if(_t(u,"a")&&_t(u,"H"))throw new Ut("Can't include meridiem when specifying 24-hour format");return{input:t,tokens:o,regex:c,rawMatches:d,matches:u,result:m,zone:f,specificOffset:h}}}function zf(e,t,r){const{result:o,zone:l,specificOffset:i,invalidReason:a}=Li(e,t,r);return[o,l,i,a]}const Ui=[0,31,59,90,120,151,181,212,243,273,304,334],Pi=[0,31,60,91,121,152,182,213,244,274,305,335];function Se(e,t){return new Me("unit out of range",`you specified ${t} (of type ${typeof t}) as a ${e}, which is invalid`)}function Ri(e,t,r){const o=new Date(Date.UTC(e,t-1,r));e<100&&e>=0&&o.setUTCFullYear(o.getUTCFullYear()-1900);const l=o.getUTCDay();return l===0?7:l}function ji(e,t,r){return r+(Pt(e)?Pi:Ui)[t-1]}function zi(e,t){const r=Pt(e)?Pi:Ui,o=r.findIndex(i=>i<t),l=t-r[o];return{month:o+1,day:l}}function br(e){const{year:t,month:r,day:o}=e,l=ji(t,r,o),i=Ri(t,r,o);let a=Math.floor((l-i+10)/7),s;return a<1?(s=t-1,a=yn(s)):a>yn(t)?(s=t+1,a=1):s=t,E({weekYear:s,weekNumber:a,weekday:i},xn(e))}function qi(e){const{weekYear:t,weekNumber:r,weekday:o}=e,l=Ri(t,1,4),i=Rt(t);let a=r*7+o-l-3,s;a<1?(s=t-1,a+=Rt(s)):a>i?(s=t+1,a-=Rt(t)):s=t;const{month:c,day:d}=zi(s,a);return E({year:s,month:c,day:d},xn(e))}function xr(e){const{year:t,month:r,day:o}=e,l=ji(t,r,o);return E({year:t,ordinal:l},xn(e))}function Hi(e){const{year:t,ordinal:r}=e,{month:o,day:l}=zi(t,r);return E({year:t,month:o,day:l},xn(e))}function qf(e){const t=pn(e.weekYear),r=ze(e.weekNumber,1,yn(e.weekYear)),o=ze(e.weekday,1,7);return t?r?o?!1:Se("weekday",e.weekday):Se("week",e.week):Se("weekYear",e.weekYear)}function Hf(e){const t=pn(e.year),r=ze(e.ordinal,1,Rt(e.year));return t?r?!1:Se("ordinal",e.ordinal):Se("year",e.year)}function Gi(e){const t=pn(e.year),r=ze(e.month,1,12),o=ze(e.day,1,gn(e.year,e.month));return t?r?o?!1:Se("day",e.day):Se("month",e.month):Se("year",e.year)}function Wi(e){const{hour:t,minute:r,second:o,millisecond:l}=e,i=ze(t,0,23)||t===24&&r===0&&o===0&&l===0,a=ze(r,0,59),s=ze(o,0,59),c=ze(l,0,999);return i?a?s?c?!1:Se("millisecond",l):Se("second",o):Se("minute",r):Se("hour",t)}const wr="Invalid DateTime",Zi=864e13;function Bn(e){return new Me("unsupported zone",`the zone "${e.name}" is not supported`)}function Cr(e){return e.weekData===null&&(e.weekData=br(e.c)),e.weekData}function Ht(e,t){const r={ts:e.ts,zone:e.zone,c:e.c,o:e.o,loc:e.loc,invalid:e.invalid};return new A(fe(E(E({},r),t),{old:r}))}function Yi(e,t,r){let o=e-t*60*1e3;const l=r.offset(o);if(t===l)return[o,t];o-=(l-t)*60*1e3;const i=r.offset(o);return l===i?[o,l]:[e-Math.min(l,i)*60*1e3,Math.max(l,i)]}function Ki(e,t){e+=t*60*1e3;const r=new Date(e);return{year:r.getUTCFullYear(),month:r.getUTCMonth()+1,day:r.getUTCDate(),hour:r.getUTCHours(),minute:r.getUTCMinutes(),second:r.getUTCSeconds(),millisecond:r.getUTCMilliseconds()}}function Sn(e,t,r){return Yi(ir(e),t,r)}function Xi(e,t){const r=e.o,o=e.c.year+Math.trunc(t.years),l=e.c.month+Math.trunc(t.months)+Math.trunc(t.quarters)*3,i=fe(E({},e.c),{year:o,month:l,day:Math.min(e.c.day,gn(o,l))+Math.trunc(t.days)+Math.trunc(t.weeks)*7}),a=L.fromObject({years:t.years-Math.trunc(t.years),quarters:t.quarters-Math.trunc(t.quarters),months:t.months-Math.trunc(t.months),weeks:t.weeks-Math.trunc(t.weeks),days:t.days-Math.trunc(t.days),hours:t.hours,minutes:t.minutes,seconds:t.seconds,milliseconds:t.milliseconds}).as("milliseconds"),s=ir(i);let[c,d]=Yi(s,r,e.zone);return a!==0&&(c+=a,d=e.zone.offset(c)),{ts:c,o:d}}function Gt(e,t,r,o,l,i){const{setZone:a,zone:s}=r;if(e&&Object.keys(e).length!==0){const c=t||s,d=A.fromObject(e,fe(E({},r),{zone:c,specificOffset:i}));return a?d:d.setZone(s)}else return A.invalid(new Me("unparsable",`the input "${l}" can't be parsed as ${o}`))}function Nn(e,t,r=!0){return e.isValid?he.create(Z.create("en-US"),{allowZ:r,forceSimple:!0}).formatDateTimeFromString(e,t):null}function Vr(e,t){const r=e.c.year>9999||e.c.year<0;let o="";return r&&e.c.year>=0&&(o+="+"),o+=te(e.c.year,r?6:4),t?(o+="-",o+=te(e.c.month),o+="-",o+=te(e.c.day)):(o+=te(e.c.month),o+=te(e.c.day)),o}function Ji(e,t,r,o,l){let i=te(e.c.hour);return t?(i+=":",i+=te(e.c.minute),(e.c.second!==0||!r)&&(i+=":")):i+=te(e.c.minute),(e.c.second!==0||!r)&&(i+=te(e.c.second),(e.c.millisecond!==0||!o)&&(i+=".",i+=te(e.c.millisecond,3))),l&&(e.isOffsetFixed&&e.offset===0?i+="Z":e.o<0?(i+="-",i+=te(Math.trunc(-e.o/60)),i+=":",i+=te(Math.trunc(-e.o%60))):(i+="+",i+=te(Math.trunc(e.o/60)),i+=":",i+=te(Math.trunc(e.o%60)))),i}const Qi={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},Gf={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},Wf={ordinal:1,hour:0,minute:0,second:0,millisecond:0},vi=["year","month","day","hour","minute","second","millisecond"],Zf=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],Yf=["year","ordinal","hour","minute","second","millisecond"];function el(e){const t={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[e.toLowerCase()];if(!t)throw new Lo(e);return t}function tl(e,t){const r=Ke(t.zone,re.defaultZone),o=Z.fromObject(t),l=re.now();let i,a;if(I(e.year))i=l;else{for(const d of vi)I(e[d])&&(e[d]=Qi[d]);const s=Gi(e)||Wi(e);if(s)return A.invalid(s);const c=r.offset(l);[i,a]=Sn(e,c,r)}return new A({ts:i,zone:r,loc:o,o:a})}function nl(e,t,r){const o=I(r.round)?!0:r.round,l=(a,s)=>(a=or(a,o||r.calendary?0:2,!0),t.loc.clone(r).relFormatter(r).format(a,s)),i=a=>r.calendary?t.hasSame(e,a)?0:t.startOf(a).diff(e.startOf(a),a).get(a):t.diff(e,a).get(a);if(r.unit)return l(i(r.unit),r.unit);for(const a of r.units){const s=i(a);if(Math.abs(s)>=1)return l(s,a)}return l(e>t?-0:0,r.units[r.units.length-1])}function rl(e){let t={},r;return e.length>0&&typeof e[e.length-1]=="object"?(t=e[e.length-1],r=Array.from(e).slice(0,e.length-1)):r=Array.from(e),[t,r]}class A{constructor(t){const r=t.zone||re.defaultZone;let o=t.invalid||(Number.isNaN(t.ts)?new Me("invalid input"):null)||(r.isValid?null:Bn(r));this.ts=I(t.ts)?re.now():t.ts;let l=null,i=null;if(!o)if(t.old&&t.old.ts===this.ts&&t.old.zone.equals(r))[l,i]=[t.old.c,t.old.o];else{const s=r.offset(this.ts);l=Ki(this.ts,s),o=Number.isNaN(l.year)?new Me("invalid input"):null,l=o?null:l,i=o?null:s}this._zone=r,this.loc=t.loc||Z.create(),this.invalid=o,this.weekData=null,this.c=l,this.o=i,this.isLuxonDateTime=!0}static now(){return new A({})}static local(){const[t,r]=rl(arguments),[o,l,i,a,s,c,d]=r;return tl({year:o,month:l,day:i,hour:a,minute:s,second:c,millisecond:d},t)}static utc(){const[t,r]=rl(arguments),[o,l,i,a,s,c,d]=r;return t.zone=de.utcInstance,tl({year:o,month:l,day:i,hour:a,minute:s,second:c,millisecond:d},t)}static fromJSDate(t,r={}){const o=tm(t)?t.valueOf():NaN;if(Number.isNaN(o))return A.invalid("invalid input");const l=Ke(r.zone,re.defaultZone);return l.isValid?new A({ts:o,zone:l,loc:Z.fromObject(r)}):A.invalid(Bn(l))}static fromMillis(t,r={}){if(ot(t))return t<-Zi||t>Zi?A.invalid("Timestamp out of range"):new A({ts:t,zone:Ke(r.zone,re.defaultZone),loc:Z.fromObject(r)});throw new Ee(`fromMillis requires a numerical input, but received a ${typeof t} with value ${t}`)}static fromSeconds(t,r={}){if(ot(t))return new A({ts:t*1e3,zone:Ke(r.zone,re.defaultZone),loc:Z.fromObject(r)});throw new Ee("fromSeconds requires a numerical input")}static fromObject(t,r={}){t=t||{};const o=Ke(r.zone,re.defaultZone);if(!o.isValid)return A.invalid(Bn(o));const l=re.now(),i=I(r.specificOffset)?o.offset(l):r.specificOffset,a=kn(t,el),s=!I(a.ordinal),c=!I(a.year),d=!I(a.month)||!I(a.day),u=c||d,m=a.weekYear||a.weekNumber,f=Z.fromObject(r);if((u||s)&&m)throw new Ut("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(d&&s)throw new Ut("Can't mix ordinal dates with month/day");const h=m||a.weekday&&!u;let p,b,M=Ki(l,i);h?(p=Zf,b=Gf,M=br(M)):s?(p=Yf,b=Wf,M=xr(M)):(p=vi,b=Qi);let F=!1;for(const ee of p){const O=a[ee];I(O)?F?a[ee]=b[ee]:a[ee]=M[ee]:F=!0}const j=h?qf(a):s?Hf(a):Gi(a),q=j||Wi(a);if(q)return A.invalid(q);const J=h?qi(a):s?Hi(a):a,[Q,S]=Sn(J,i,o),H=new A({ts:Q,zone:o,o:S,loc:f});return a.weekday&&u&&t.weekday!==H.weekday?A.invalid("mismatched weekday",`you can't specify both a weekday of ${a.weekday} and a date of ${H.toISO()}`):H}static fromISO(t,r={}){const[o,l]=sf(t);return Gt(o,l,r,"ISO 8601",t)}static fromRFC2822(t,r={}){const[o,l]=cf(t);return Gt(o,l,r,"RFC 2822",t)}static fromHTTP(t,r={}){const[o,l]=df(t);return Gt(o,l,r,"HTTP",r)}static fromFormat(t,r,o={}){if(I(t)||I(r))throw new Ee("fromFormat requires an input string and a format");const{locale:l=null,numberingSystem:i=null}=o,a=Z.fromOpts({locale:l,numberingSystem:i,defaultToEN:!0}),[s,c,d,u]=zf(a,t,r);return u?A.invalid(u):Gt(s,c,o,`format ${r}`,t,d)}static fromString(t,r,o={}){return A.fromFormat(t,r,o)}static fromSQL(t,r={}){const[o,l]=_f(t);return Gt(o,l,r,"SQL",t)}static invalid(t,r=null){if(!t)throw new Ee("need to specify a reason the DateTime is invalid");const o=t instanceof Me?t:new Me(t,r);if(re.throwOnInvalid)throw new Ku(o);return new A({invalid:o})}static isDateTime(t){return t&&t.isLuxonDateTime||!1}get(t){return this[t]}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?Cr(this).weekYear:NaN}get weekNumber(){return this.isValid?Cr(this).weekNumber:NaN}get weekday(){return this.isValid?Cr(this).weekday:NaN}get ordinal(){return this.isValid?xr(this.c).ordinal:NaN}get monthShort(){return this.isValid?En.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?En.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?En.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?En.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return this.isOffsetFixed?!1:this.offset>this.set({month:1}).offset||this.offset>this.set({month:5}).offset}get isInLeapYear(){return Pt(this.year)}get daysInMonth(){return gn(this.year,this.month)}get daysInYear(){return this.isValid?Rt(this.year):NaN}get weeksInWeekYear(){return this.isValid?yn(this.weekYear):NaN}resolvedLocaleOptions(t={}){const{locale:r,numberingSystem:o,calendar:l}=he.create(this.loc.clone(t),t).resolvedOptions(this);return{locale:r,numberingSystem:o,outputCalendar:l}}toUTC(t=0,r={}){return this.setZone(de.instance(t),r)}toLocal(){return this.setZone(re.defaultZone)}setZone(t,{keepLocalTime:r=!1,keepCalendarTime:o=!1}={}){if(t=Ke(t,re.defaultZone),t.equals(this.zone))return this;if(t.isValid){let l=this.ts;if(r||o){const i=t.offset(this.ts),a=this.toObject();[l]=Sn(a,i,t)}return Ht(this,{ts:l,zone:t})}else return A.invalid(Bn(t))}reconfigure({locale:t,numberingSystem:r,outputCalendar:o}={}){const l=this.loc.clone({locale:t,numberingSystem:r,outputCalendar:o});return Ht(this,{loc:l})}setLocale(t){return this.reconfigure({locale:t})}set(t){if(!this.isValid)return this;const r=kn(t,el),o=!I(r.weekYear)||!I(r.weekNumber)||!I(r.weekday),l=!I(r.ordinal),i=!I(r.year),a=!I(r.month)||!I(r.day),s=i||a,c=r.weekYear||r.weekNumber;if((s||l)&&c)throw new Ut("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(a&&l)throw new Ut("Can't mix ordinal dates with month/day");let d;o?d=qi(E(E({},br(this.c)),r)):I(r.ordinal)?(d=E(E({},this.toObject()),r),I(r.day)&&(d.day=Math.min(gn(d.year,d.month),d.day))):d=Hi(E(E({},xr(this.c)),r));const[u,m]=Sn(d,this.o,this.zone);return Ht(this,{ts:u,o:m})}plus(t){if(!this.isValid)return this;const r=L.fromDurationLike(t);return Ht(this,Xi(this,r))}minus(t){if(!this.isValid)return this;const r=L.fromDurationLike(t).negate();return Ht(this,Xi(this,r))}startOf(t){if(!this.isValid)return this;const r={},o=L.normalizeUnit(t);switch(o){case"years":r.month=1;case"quarters":case"months":r.day=1;case"weeks":case"days":r.hour=0;case"hours":r.minute=0;case"minutes":r.second=0;case"seconds":r.millisecond=0;break}if(o==="weeks"&&(r.weekday=1),o==="quarters"){const l=Math.ceil(this.month/3);r.month=(l-1)*3+1}return this.set(r)}endOf(t){return this.isValid?this.plus({[t]:1}).startOf(t).minus(1):this}toFormat(t,r={}){return this.isValid?he.create(this.loc.redefaultToEN(r)).formatDateTimeFromString(this,t):wr}toLocaleString(t=nr,r={}){return this.isValid?he.create(this.loc.clone(r),t).formatDateTime(this):wr}toLocaleParts(t={}){return this.isValid?he.create(this.loc.clone(t),t).formatDateTimeParts(this):[]}toISO({format:t="extended",suppressSeconds:r=!1,suppressMilliseconds:o=!1,includeOffset:l=!0}={}){if(!this.isValid)return null;const i=t==="extended";let a=Vr(this,i);return a+="T",a+=Ji(this,i,r,o,l),a}toISODate({format:t="extended"}={}){return this.isValid?Vr(this,t==="extended"):null}toISOWeekDate(){return Nn(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:t=!1,suppressSeconds:r=!1,includeOffset:o=!0,includePrefix:l=!1,format:i="extended"}={}){return this.isValid?(l?"T":"")+Ji(this,i==="extended",r,t,o):null}toRFC2822(){return Nn(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return Nn(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?Vr(this,!0):null}toSQLTime({includeOffset:t=!0,includeZone:r=!1,includeOffsetSpace:o=!0}={}){let l="HH:mm:ss.SSS";return(r||t)&&(o&&(l+=" "),r?l+="z":t&&(l+="ZZ")),Nn(this,l,!0)}toSQL(t={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(t)}`:null}toString(){return this.isValid?this.toISO():wr}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(t={}){if(!this.isValid)return{};const r=E({},this.c);return t.includeConfig&&(r.outputCalendar=this.outputCalendar,r.numberingSystem=this.loc.numberingSystem,r.locale=this.loc.locale),r}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(t,r="milliseconds",o={}){if(!this.isValid||!t.isValid)return L.invalid("created by diffing an invalid DateTime");const l=E({locale:this.locale,numberingSystem:this.numberingSystem},o),i=nm(r).map(L.normalizeUnit),a=t.valueOf()>this.valueOf(),s=a?this:t,c=a?t:this,d=Sf(s,c,i,l);return a?d.negate():d}diffNow(t="milliseconds",r={}){return this.diff(A.now(),t,r)}until(t){return this.isValid?Y.fromDateTimes(this,t):this}hasSame(t,r){if(!this.isValid)return!1;const o=t.valueOf(),l=this.setZone(t.zone,{keepLocalTime:!0});return l.startOf(r)<=o&&o<=l.endOf(r)}equals(t){return this.isValid&&t.isValid&&this.valueOf()===t.valueOf()&&this.zone.equals(t.zone)&&this.loc.equals(t.loc)}toRelative(t={}){if(!this.isValid)return null;const r=t.base||A.fromObject({},{zone:this.zone}),o=t.padding?this<r?-t.padding:t.padding:0;let l=["years","months","days","hours","minutes","seconds"],i=t.unit;return Array.isArray(t.unit)&&(l=t.unit,i=void 0),nl(r,this.plus(o),fe(E({},t),{numeric:"always",units:l,unit:i}))}toRelativeCalendar(t={}){return this.isValid?nl(t.base||A.fromObject({},{zone:this.zone}),this,fe(E({},t),{numeric:"auto",units:["years","months","days"],calendary:!0})):null}static min(...t){if(!t.every(A.isDateTime))throw new Ee("min requires all arguments be DateTimes");return oi(t,r=>r.valueOf(),Math.min)}static max(...t){if(!t.every(A.isDateTime))throw new Ee("max requires all arguments be DateTimes");return oi(t,r=>r.valueOf(),Math.max)}static fromFormatExplain(t,r,o={}){const{locale:l=null,numberingSystem:i=null}=o,a=Z.fromOpts({locale:l,numberingSystem:i,defaultToEN:!0});return Li(a,t,r)}static fromStringExplain(t,r,o={}){return A.fromFormatExplain(t,r,o)}static get DATE_SHORT(){return nr}static get DATE_MED(){return Uo}static get DATE_MED_WITH_WEEKDAY(){return Qu}static get DATE_FULL(){return Po}static get DATE_HUGE(){return Ro}static get TIME_SIMPLE(){return jo}static get TIME_WITH_SECONDS(){return zo}static get TIME_WITH_SHORT_OFFSET(){return qo}static get TIME_WITH_LONG_OFFSET(){return Ho}static get TIME_24_SIMPLE(){return Go}static get TIME_24_WITH_SECONDS(){return Wo}static get TIME_24_WITH_SHORT_OFFSET(){return Zo}static get TIME_24_WITH_LONG_OFFSET(){return Yo}static get DATETIME_SHORT(){return Ko}static get DATETIME_SHORT_WITH_SECONDS(){return Xo}static get DATETIME_MED(){return Jo}static get DATETIME_MED_WITH_SECONDS(){return Qo}static get DATETIME_MED_WITH_WEEKDAY(){return vu}static get DATETIME_FULL(){return vo}static get DATETIME_FULL_WITH_SECONDS(){return ei}static get DATETIME_HUGE(){return ti}static get DATETIME_HUGE_WITH_SECONDS(){return ni}}function Wt(e){if(A.isDateTime(e))return e;if(e&&e.valueOf&&ot(e.valueOf()))return A.fromJSDate(e);if(e&&typeof e=="object")return A.fromObject(e);throw new Ee(`Unknown datetime argument: ${e}, of type ${typeof e}`)}var yC="";const Kf={mixins:[Lt],computed:{hasValue(){return this.value!==void 0&&this.value!==null},timeago(){return A.fromISO(this.value).toRelative()},readable(){let e=A.fromISO(this.value),t=A.now(),r=t.toFormat("yyyy");return t.toFormat("MMM yyyy"),e.toFormat("yyyy")===r?A.fromISO(this.value).toFormat("h:mm a - dd MMM"):A.fromISO(this.value).toFormat("h:mm a - dd MMM yyyy")}}},Xf={class:"table-date-cell"},Jf={key:0},Qf={class:"off"},vf={class:"on"},eh={class:"spacer"};function th(e,t,r,o,l,i){return n.openBlock(),n.createElementBlock("td",Xf,[i.hasValue?(n.openBlock(),n.createElementBlock("div",Jf,[n.createElementVNode("span",Qf,n.toDisplayString(i.readable),1),n.createElementVNode("span",vf,n.toDisplayString(i.timeago),1),n.createElementVNode("span",eh,n.toDisplayString(i.readable),1)])):n.createCommentVNode("",!0)])}var ol=k(Kf,[["render",th],["__scopeId","data-v-3687693f"]]),_C="";const nh={mixins:[Lt],computed:{boolean(){return!!this.value}}};function rh(e,t,r,o,l,i){const a=n.resolveComponent("ux-icon");return n.openBlock(),n.createElementBlock("td",{class:n.normalizeClass(["table-boolean-cell",{true:i.boolean,false:!i.boolean}])},[n.createVNode(a,{icon:i.boolean?"fa-check":"fa-times"},null,8,["icon"])],2)}var il=k(nh,[["render",rh],["__scopeId","data-v-27f127ae"]]),kC="";const oh={mixins:[Lt],methods:{open(){window.open(this.href)}},computed:{href(){return`http://${this.value}`}}},ih={class:"table-url-cell"},lh=["href"];function ah(e,t,r,o,l,i){const a=n.resolveComponent("ux-icon");return n.openBlock(),n.createElementBlock("td",ih,[n.createElementVNode("a",{href:i.href,onClick:t[0]||(t[0]=n.withModifiers((...s)=>i.open&&i.open(...s),["stop","prevent"])),target:"_blank"},[n.createTextVNode(n.toDisplayString(e.value)+" ",1),n.createVNode(a,{right:"",icon:"fa-external-link"})],8,lh)])}var ll=k(oh,[["render",ah],["__scopeId","data-v-17cf3a86"]]),bC="";const sh={props:{multi:{type:Boolean},last:{type:Boolean},value:{required:!0},type:{type:String},widget:{type:String}},computed:{reference(){return!!(this.value&&this.value._id)},renderValue(){return this.value?this.value.title||this.value.name||this.value:void 0},date(){return A.fromISO(this.value).toFormat("dd MMM yyyy")},actualWidget(){var e;if(this.widget)e=this.widget;else switch(this.type){case"date":e="datetime";break}return e}},methods:{clicked(e){this.$sdk.dispatch("item:view",e)}}},ch=n.createTextVNode(",\xA0");function dh(e,t,r,o,l,i){return i.reference?(n.openBlock(),n.createElementBlock("a",{key:0,onClick:t[0]||(t[0]=n.withModifiers(a=>i.clicked(r.value),["stop","prevent"]))},n.toDisplayString(i.renderValue),1)):r.type=="date"?(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[n.createTextVNode(n.toDisplayString(i.date),1)],64)):(n.openBlock(),n.createElementBlock(n.Fragment,{key:2},[n.createTextVNode(n.toDisplayString(i.renderValue),1),r.multi&&!r.last?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[ch],64)):n.createCommentVNode("",!0)],64))}var uh=k(sh,[["render",dh],["__scopeId","data-v-255b9ec8"]]),xC="";function Er(e,t){if(!e||!t)return;var r=$o(e,t);if(r)return r;const o=t.split("."),l=o.shift(),i=o.join("."),a=$o(e,l);return Array.isArray(a)?a.map(function(s){return Er(s,i)}).flat().filter(Boolean):Er(a,i)}const mh={data(){return{component:null}},components:{ValueRenderer:uh},async created(){const e=this;let t;const r=e.column.type;switch(e.column.renderer){case"button":t=Yu;break;case"boolean":t=il;break;case"date":case"datetime":t=ol;break;case"url":t=ll;break;case"thumbnail":t=Hu;break;default:switch(r){case"date":t=ol;break;case"boolean":t=il;break;case"url":t=ll;break}break}e.component=t},props:{column:{type:Object,required:!0},row:{type:Object,required:!0}},computed:{multiValue(){return Array.isArray(this.value)},complex(){this.multiValue},renderer(){return this.column.renderer},renderValue(){var e=this.value;if(e!=null)return e.title||e.name||e},value(){var e=Er(this.row,this.column.key);return e}}},fh={key:1,class:"table-cell"},hh={class:"value"},ph={class:"value"};function gh(e,t,r,o,l,i){const a=n.resolveComponent("value-renderer");return l.component?(n.openBlock(),n.createBlock(n.resolveDynamicComponent(l.component),{key:0,column:r.column,row:r.row,value:i.value},null,8,["column","row","value"])):(n.openBlock(),n.createElementBlock("td",fh,[i.multiValue?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[i.complex?(n.openBlock(!0),n.createElementBlock(n.Fragment,{key:0},n.renderList(i.value,(s,c)=>(n.openBlock(),n.createElementBlock("span",hh,[n.createVNode(a,{type:r.column.type,multi:"",last:c===i.value.length-1,value:s},null,8,["type","last","value"])]))),256)):(n.openBlock(!0),n.createElementBlock(n.Fragment,{key:1},n.renderList(i.value,(s,c)=>(n.openBlock(),n.createElementBlock("span",ph,[n.createVNode(a,{type:r.column.type,multi:"",last:c===i.value.length-1,value:s},null,8,["type","last","value"])]))),256))],64)):(n.openBlock(),n.createBlock(a,{key:1,type:r.column.type,value:i.value},null,8,["type","value"]))]))}var al=k(mh,[["render",gh],["__scopeId","data-v-b6482442"]]);const yh={components:{TableCell:al},props:{selected:{type:Boolean},row:{type:Object,required:!0},columns:{type:Array,required:!0},enableActions:{type:Boolean,default(){return!1}},enableSelection:{type:Boolean,default(){return!0}}},methods:{clickCell(e){this.$emit("click:cell",{row:this.row,column:e}),this.$emit("click:row",this.row)},clickActions(e){this.$emit("click:actions",e)},clickSelect(e){this.$emit("click:select",e)}},computed:{classes(){var e=[];return this.selected&&e.push("selected"),e}}};function _h(e,t,r,o,l,i){const a=n.resolveComponent("ux-checkbox"),s=n.resolveComponent("table-cell"),c=n.resolveComponent("ux-icon"),d=n.resolveComponent("ux-button");return n.openBlock(),n.createElementBlock("tr",{class:n.normalizeClass([i.classes,"table-row"])},[n.renderSlot(e.$slots,"default",{},()=>[r.enableSelection?(n.openBlock(),n.createElementBlock("th",{key:0,class:"table-cell table-select first shrink",onClick:t[0]||(t[0]=n.withModifiers(u=>i.clickSelect(r.row),["stop","prevent"]))},[n.createVNode(a,{value:r.selected},null,8,["value"])])):n.createCommentVNode("",!0),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(r.columns,(u,m)=>(n.openBlock(),n.createBlock(s,{key:`${u.path||u.key}-${m}`,onClick:n.withModifiers(f=>i.clickCell(u),["stop","prevent"]),column:u,row:r.row},null,8,["onClick","column","row"]))),128)),r.enableActions?(n.openBlock(),n.createElementBlock("th",{key:1,class:"table-cell last shrink",onClick:t[1]||(t[1]=n.withModifiers(u=>i.clickActions(r.row),["stop","prevent"]))},[n.createVNode(d,{size:"xs",icon:""},{default:n.withCtx(()=>[n.createVNode(c,{icon:"fa-ellipsis"})]),_:1})])):n.createCommentVNode("",!0)])],2)}var kh=k(yh,[["render",_h]]),sl={data(){return{scrollTop:0}},methods:{updateScroll(e){var t=this.$refs.scroll;t=t.$el||t,this.scrollTop=t.scrollTop}},mounted(){var e=this.$refs.scroll;e=e.$el||e,e.addEventListener("scroll",this.updateScroll)},beforeUnmount(){var e=this.$refs.scroll;e=e.$el||e,e.removeEventListener("scroll",this.updateScroll)},activated(){var e=this.$refs.scroll;e=e.$el||e,e.scrollTop=this.scrollTop}},wC="";const bh={mixins:[sl],components:{TableRow:kh,TableCell:al},watch:{rows(){this.$refs.scroll.scroll({top:0,left:0})}},props:{total:{type:Number},columns:{type:Array,default(){return[]}},rows:{type:Array,default(){return[]}},scrollable:{type:Boolean,default(){return!0}},enableActions:{type:Boolean,default(){return!1}},enableSelection:{type:Boolean,default(){return!0}},selection:{type:Array,default(){return[]}},selectAll:{type:Function},deselectAll:{type:Function}},computed:{selectionHash(){var e=this;return e.selection.reduce(function(t,r){var o=r._id||r.id;return t[o]=r,t},{})},pageSelected(){var e=this;if(!(!e.rows||!e.rows.length))return!e.rows.some(function(t){return!e.selectionHash[t._id||t.id]})},renderColumns(){return this.columns.map(function(e){var t=Object.assign({},e);return t.class=[],t.shrink&&t.class.push("shrink"),t})},renderRows(){return this.rows},someSelectedOnPage(){return this.rows.some(this.isSelected)}},methods:{togglePage(){var e=this;e.pageSelected?e.deselectPage():e.selectPage()},selectPage(){var e=this;e.$emit("select:multiple",e.rows)},deselectPage(){var e=this;e.$emit("deselect:multiple",e.rows)},isSelected(e){var t=this,r=e._id||e.id;return t.selection.some(function(o){var l=o._id||o.id;return o==e||l==r})},classes(e){let t=[];return this.isSelected(e)&&t.push("selected"),t},toggleSort(e){},clickRow(e){this.$emit("click:row",e)},clickCell({row:e,column:t}){this.$emit("click:cell",{row:e,column:t})},clickActions(e){this.$emit("click:actions",e)},clickSelect(e){this.$emit("select:row:toggle",e)}}},xh={class:"table-wrapper"},wh={class:"table-scroll",ref:"scroll"},Ch={key:0,class:"first table-select shrink"},Vh=n.createTextVNode(" Select Page "),Eh=n.createTextVNode(" Deselect Page "),Bh=n.createTextVNode(" Deselect All "),Sh=["onClick"],Nh={key:1,class:"last shrink"};function Th(e,t,r,o,l,i){const a=n.resolveComponent("ux-checkbox"),s=n.resolveComponent("ux-list-item"),c=n.resolveComponent("ux-list"),d=n.resolveComponent("ux-menu"),u=n.resolveComponent("table-row");return n.openBlock(),n.createElementBlock("div",xh,[n.createElementVNode("div",wh,[n.createElementVNode("table",null,[n.createElementVNode("thead",null,[n.createElementVNode("tr",null,[r.enableSelection?(n.openBlock(),n.createElementBlock("th",Ch,[n.createVNode(d,null,{activator:n.withCtx(({on:m})=>[n.createVNode(a,n.mergeProps(n.toHandlers(m),{value:i.pageSelected}),null,16,["value"])]),default:n.withCtx(()=>[n.createVNode(c,null,{default:n.withCtx(()=>[n.createVNode(s,{onClick:t[0]||(t[0]=m=>i.selectPage())},{default:n.withCtx(()=>[Vh]),_:1}),i.someSelectedOnPage?(n.openBlock(),n.createBlock(s,{key:0,onClick:t[1]||(t[1]=m=>i.deselectPage())},{default:n.withCtx(()=>[Eh]),_:1})):n.createCommentVNode("",!0),r.selectAll?(n.openBlock(),n.createBlock(s,{key:1,onClick:t[2]||(t[2]=m=>r.selectAll())},{default:n.withCtx(()=>[n.createTextVNode(" Select All ("+n.toDisplayString(r.total)+") ",1)]),_:1})):n.createCommentVNode("",!0),r.deselectAll?(n.openBlock(),n.createBlock(s,{key:2,onClick:t[3]||(t[3]=m=>r.deselectAll())},{default:n.withCtx(()=>[Bh]),_:1})):n.createCommentVNode("",!0)]),_:1})]),_:1})])):n.createCommentVNode("",!0),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(i.renderColumns,m=>(n.openBlock(),n.createElementBlock("th",{onClick:f=>i.toggleSort(m),class:n.normalizeClass(m.class)},n.toDisplayString(m.title),11,Sh))),256)),r.enableActions?(n.openBlock(),n.createElementBlock("th",Nh,[n.renderSlot(e.$slots,"corner",{},void 0,!0)])):n.createCommentVNode("",!0)])]),n.createElementVNode("tbody",null,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(i.renderRows,m=>(n.openBlock(),n.createBlock(u,{enableSelection:r.enableSelection,enableActions:r.enableActions,key:m._id,"onClick:cell":i.clickCell,"onClick:row":i.clickRow,"onClick:select":i.clickSelect,"onClick:actions":i.clickActions,selected:i.isSelected(m),row:m,columns:r.columns},null,8,["enableSelection","enableActions","onClick:cell","onClick:row","onClick:select","onClick:actions","selected","row","columns"]))),128))])])],512)])}var cl=k(bh,[["render",Th],["__scopeId","data-v-e626ef3a"]]),CC="";const Ah={props:{large:{type:Boolean}}},Dh=[(e=>(n.pushScopeId("data-v-27f20370"),e=e(),n.popScopeId(),e))(()=>n.createElementVNode("i",{class:"fa fa-spin fa-spinner"},null,-1))];function Mh(e,t,r,o,l,i){return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["ux-spinner",{large:r.large}])},Dh,2)}var Br=k(Ah,[["render",Mh],["__scopeId","data-v-27f20370"]]),BC="";const Oh={components:{Spinner:Br},props:{to:{type:[Object,String]},icon:{type:Boolean},color:{type:String,default:"default"},bgColor:{type:String},fgColor:{type:String},tag:{type:String},href:{type:String},target:{type:String},loading:{type:Boolean},active:{type:Boolean},disabled:{type:Boolean},block:{type:Boolean},size:{type:String,default:"md"}},computed:{style(){var e={};return this.bgColor&&(e.backgroundColor=this.bgColor),this.fgColor&&(e.color=this.fgColor),e},classes(){var e=[];return e.push(`ux-btn-${this.size}`),this.block&&e.push("ux-btn-block"),this.loading&&e.push("ux-btn-loading"),this.active&&e.push("ux-btn-active"),this.icon&&e.push("ux-btn-icon"),e.push(`ux-btn-${this.color}`),this.disabled&&e.push("ux-btn-disabled"),e},element(){switch(this.tag){case"span":return this.tag;case"submit":return"button";default:return this.to||this.href?"ux-link":this.tag||"button"}}}},Fh={class:"ux-btn-text"};function Ih(e,t,r,o,l,i){const a=n.resolveComponent("spinner");return n.openBlock(),n.createBlock(n.resolveDynamicComponent(i.element),{active:r.active,loading:r.loading,to:r.to,href:r.href,target:r.target,style:n.normalizeStyle(i.style),class:n.normalizeClass([i.classes,"ux-btn"]),disabled:r.disabled},{default:n.withCtx(()=>[r.loading?(n.openBlock(),n.createBlock(a,{key:0})):n.createCommentVNode("",!0),n.createElementVNode("span",Fh,[n.renderSlot(e.$slots,"default",{},void 0,!0)])]),_:3},8,["active","loading","to","href","target","style","class","disabled"])}var dl=k(Oh,[["render",Ih],["__scopeId","data-v-7db8ccb4"]]),SC="";const $h={props:{value:{type:Boolean,default(){return!1}}},computed:{classes(){var e=[];return this.value?e.push("ux-checkbox-true"):e.push("ux-checkbox-false"),e}}};function Lh(e,t,r,o,l,i){const a=n.resolveComponent("ux-icon");return n.openBlock(),n.createElementBlock("button",{class:n.normalizeClass(["ux-checkbox",i.classes])},[n.createVNode(a,{class:"icon",icon:"fa-check"})],2)}var Sr=k($h,[["render",Lh],["__scopeId","data-v-73f2c6b6"]]),NC="";const Uh={props:{value:{type:Boolean,default(){return!1}},loading:{type:Boolean,default(){return!1}}},computed:{classes(){var e=[];return this.value?e.push("ux-switch-true"):e.push("ux-switch-false"),this.loading&&e.push("ux-switch-loading"),e}}};function Ph(e,t,r,o,l,i){const a=n.resolveComponent("ux-icon");return n.openBlock(),n.createElementBlock("a",{class:n.normalizeClass(["ux-switch",i.classes])},[n.createElementVNode("span",null,[n.createVNode(a,{spin:"",icon:"fa-spinner"})])],2)}var ul=k(Uh,[["render",Ph],["__scopeId","data-v-57a418e1"]]),TC="";const Rh={props:{to:{type:[Object,String]},href:{type:String},target:{type:String},disabled:{type:Boolean}},methods:{clicked(e){var t=this;if(t.to&&(t.buildMode||t.nuxtMode))return e.preventDefault(),e.stopImmediatePropagation(),t.$sdk.app.to(t.to);if(t.href&&(t.buildMode||t.nuxtMode)){e.preventDefault(),e.stopImmediatePropagation();return}}},computed:{actualHref(){if(this.href)return this.href;if(this.nuxtMode)return this.$sdk.app.createHref(this.to)},nuxtMode(){return this.to&&this.$sdk.nuxt&&this.$sdk.app&&this.$sdk.app.createHref},buildMode(){return!!this.$sdk&&this.$sdk.app&&this.$sdk.app.builder},class(){var e=[];return this.disabled&&e.push("disabled"),(this.href||this.to)&&e.push("haslink"),e},element(){return this.nuxtMode||this.buildMode?"a":this.to?"router-link":"a"}}};function jh(e,t,r,o,l,i){return n.openBlock(),n.createBlock(n.resolveDynamicComponent(i.element),{onClick:i.clicked,to:r.to,href:i.actualHref,target:r.target,class:n.normalizeClass([i.class,"ux-link"])},{default:n.withCtx(()=>[n.renderSlot(e.$slots,"default",{},void 0,!0)]),_:3},8,["onClick","to","href","target","class"])}var ml=k(Rh,[["render",jh],["__scopeId","data-v-efa81728"]]),AC="";const zh={props:{icon:{type:[Object,String]},spin:{type:Boolean},left:{type:Boolean},right:{type:Boolean}},computed:{classes(){var e=[];return e.push(this.icon),this.spin&&e.push("fa-spin"),this.left&&e.push("ux-icon-left"),this.right&&e.push("ux-icon-right"),e},element(){return"i"}}};function qh(e,t,r,o,l,i){return n.openBlock(),n.createBlock(n.resolveDynamicComponent(i.element),{class:n.normalizeClass(["ux-icon fa",i.classes])},null,8,["class"])}var fl=k(zh,[["render",qh],["__scopeId","data-v-1764a3d0"]]),Tn={cache:{}},DC="";const Hh={props:{group:{type:String},right:{type:Boolean,default:!1},bottom:{type:Boolean,default:!1},stop:{type:Boolean,default:!1},closeOnClick:{type:Boolean,default(){return!0}},modelValue:{type:Boolean,default(){return!1}}},data(){return{outerStyle:{},innerStyle:{},isExpanded:this.modelValue,triggerEvent:null,refMenu:null,mounted:!1}},watch:{modelValue(e){this.expanded=e}},mounted(){this.refMenu=this.$refs.menu,this.mounted=!0},beforeUnmount(){this.removeListeners(),this.refMenu=null,this.mounted=!1,Tn.cache[this.group]===this&&(Tn.cache[this.group]=null)},methods:{removeListeners(){document.removeEventListener("click",this.globalClick),this.refMenu&&this.refMenu.removeEventListener("click",this.immediateClick)},addEventListeners(){document.addEventListener("click",this.globalClick),this.refMenu&&this.refMenu.addEventListener("click",this.immediateClick)},immediateClick(e){this.expanded&&this.closeOnClick&&(e.stopImmediatePropagation(),this.expanded=!1)},globalClick(e){if(this.triggerEvent!==e){var t=this.$refs.menu,r=e.srcElement;t&&t.contains(r)?this.closeOnClick&&(this.expanded=!1):this.expanded=!1}},position(){const e=this.$el.getBoundingClientRect();this.outerStyle.left=`${e.left+window.scrollX}px`,this.outerStyle.top=`${e.bottom+window.scrollY}px`,this.right&&(this.innerStyle.right=`-${e.width}px`),this.bottom&&(this.innerStyle.bottom=`${e.height}px`);var t=this.getMaxZIndex();this.outerStyle.zIndex=t},getMaxZIndex(){return Math.max(...Array.from(document.querySelectorAll("body *"),e=>parseFloat(window.getComputedStyle(e).zIndex)).filter(e=>!Number.isNaN(e)),0)},close(){this.expanded=!1}},computed:{expanded:{get(){return this.isExpanded},set(e){var t;this.group&&(t=Tn.cache[this.group]),this.isExpanded!=e&&(this.isExpanded=e,e?(this.position(),this.addEventListeners(),Tn.cache[this.group]=this,t&&t!=this&&(t.expanded=!1)):this.removeListeners(),this.$emit("update:modelValue",e))}},on(){var e=this;return{click(t){e.stop&&t.stopImmediatePropagation(),e.triggerEvent=t,e.expanded=!e.expanded}}}}};function Gh(e,t,r,o,l,i){return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["ux-menu",{right:r.right}])},[n.createElementVNode("span",null,[n.renderSlot(e.$slots,"activator",{on:i.on},void 0,!0)]),(n.openBlock(),n.createBlock(n.Teleport,{to:"body"},[l.isExpanded?(n.openBlock(),n.createElementBlock("div",{key:0,class:"ux-menu-outer",style:n.normalizeStyle(l.outerStyle)},[n.createElementVNode("div",{class:"ux-menu-panel",ref:"menu",style:n.normalizeStyle(l.innerStyle)},[n.renderSlot(e.$slots,"default",{},void 0,!0)],4)],4)):n.createCommentVNode("",!0)]))],2)}var hl=k(Hh,[["render",Gh],["__scopeId","data-v-29d476a2"]]);const Wh={name:"menulist",props:{items:{type:Array,default(){return[]}},expandOn:{type:String,default:"click"}},methods:{toggle(e){e.expanded=!e.expanded,e.collapsed=!e.expanded}},data(){return{}}};function Zh(e,t,r,o,l,i){const a=n.resolveComponent("ux-link"),s=n.resolveComponent("menulist",!0);return n.openBlock(),n.createElementBlock("ul",null,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(r.items,c=>{var d;return n.openBlock(),n.createElementBlock("li",{class:n.normalizeClass({expanded:c.expanded,collapsed:c.collapsed})},[r.expandOn==="click"&&((d=c.items)==null?void 0:d.length)?(n.openBlock(),n.createBlock(a,{key:0,onClick:n.withModifiers(u=>i.toggle(c),["stop","prevent"]),class:n.normalizeClass(c.class)},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(c.title),1)]),_:2},1032,["onClick","class"])):(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[c.type==="url"?(n.openBlock(),n.createBlock(a,{key:0,class:n.normalizeClass(c.class),target:c.target,href:c.href||c.url},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(c.title),1)]),_:2},1032,["class","target","href"])):c.type==="route"?(n.openBlock(),n.createBlock(a,{key:1,class:n.normalizeClass(c.class),to:{name:c.route}},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(c.title),1)]),_:2},1032,["class","to"])):n.createCommentVNode("",!0)],64)),c.items&&c.items.length?(n.openBlock(),n.createBlock(s,{key:2,items:c.items},null,8,["items"])):n.createCommentVNode("",!0)],2)}),256))])}var pl=k(Wh,[["render",Zh]]),MC="";const Yh={props:{item:{type:Object},width:{type:[Number,String]},height:{type:[Number,String]},quality:{type:Number},crop:{type:Boolean},format:{type:String},upscale:{type:Boolean,default:!0},type:{type:String,default:"image"},svg:{type:Boolean}},data(){return{model:this.item}},computed:{isSvg(){var e;if(this.svg)return!0;switch((e=this.item)==null?void 0:e.fileMime){case"image/svg+xml":case"image/svg":return!0}},defaultWidth(){},defaultHeight(){},imageWidth(){return parseInt(this.width)},imageHeight(){return parseInt(this.height)},id(){return this.$sdk.utils.id(this.model)},params(){var e={};return e.access_token=this.$sdk.auth.getCurrentToken(),this.imageWidth&&(e.w=this.imageWidth?this.imageWidth:this.defaultWidth),this.imageHeight&&(e.h=this.imageHeight?this.imageHeight:this.defaultHeight),this.crop?e.c=!0:e.c=this.imageWidth&&this.imageHeight,this.quality&&(e.q=parseInt(this.quality)),this.upscale&&(e.u=!0),this.format&&(e.f=this.format),e},src(){return this.$sdk.api.generateEndpointURL(`/${this.type}/${this.id}`,this.params)},previewSrc(){var e=Object.assign({},this.params);return e.w=50,delete e.h,this.$sdk.api.generateEndpointURL(`/${this.type}/${this.id}`,e)},style(){var l,i,a;var e={},t=(a=(i=(l=this.model)==null?void 0:l.fileMeta)==null?void 0:i.colors)==null?void 0:a.colors;t&&t.length&&(e.backgroundColor=t[0]);var r=this.model.width,o=this.model.height;return this.width&&this.height&&(r=this.width,o=this.height),o&&r&&(e.height=0,e.paddingBottom=`${o/r*100}%`),this.isSvg||(e.backgroundImage=`url(${this.previewSrc})`),e}}},Kh=["data"],Xh=["src"];function Jh(e,t,r,o,l,i){return n.openBlock(),n.createElementBlock("div",{class:"ux-image",style:n.normalizeStyle(i.style)},[r.svg?(n.openBlock(),n.createElementBlock("object",{key:0,type:"image/svg+xml",data:i.src},null,8,Kh)):(n.openBlock(),n.createElementBlock("img",{key:1,src:i.src},null,8,Xh))],4)}var gl=k(Yh,[["render",Jh],["__scopeId","data-v-4c8cc011"]]),OC="";const Qh={props:{value:{type:Number}},computed:{classes(){var e=[];return e.push(this.icon),this.spin&&e.push("fa-spin"),this.left&&e.push("ux-icon-left"),this.right&&e.push("ux-icon-right"),e},percent(){return this.value},barStyle(){return{width:`${this.percent}%`}},element(){return"i"}}},vh=e=>(n.pushScopeId("data-v-317a7690"),e=e(),n.popScopeId(),e),ep={class:"ux-progress"},tp=vh(()=>n.createElementVNode("div",{class:"ux-progress-bg"},null,-1));function np(e,t,r,o,l,i){return n.openBlock(),n.createElementBlock("div",ep,[tp,n.createElementVNode("div",{class:"ux-progress-fg",style:n.normalizeStyle(i.barStyle)},null,4)])}var yl=k(Qh,[["render",np],["__scopeId","data-v-317a7690"]]),FC="";const rp={},op={class:"ux-list"};function ip(e,t){return n.openBlock(),n.createElementBlock("ul",op,[n.renderSlot(e.$slots,"default",{},void 0,!0)])}var _l=k(rp,[["render",ip],["__scopeId","data-v-98e1e4e2"]]),IC="";const lp={},ap={class:"ux-list-item"};function sp(e,t,r,o,l,i){return n.openBlock(),n.createElementBlock("div",ap,[n.renderSlot(e.$slots,"default",{},void 0,!0)])}var kl=k(lp,[["render",sp],["__scopeId","data-v-0e73c260"]]),Nr={exports:{}},cp=Object.prototype.hasOwnProperty;function bl(e){return"[Throws: "+(e?e.message:"?")+"]"}function dp(e,t){if(cp.call(e,t))try{return e[t]}catch(r){return bl(r)}return e[t]}function xl(e){var t=[];function r(o){if(o===null||typeof o!="object")return o;if(t.indexOf(o)!==-1)return"[Circular]";if(t.push(o),typeof o.toJSON=="function")try{var l=r(o.toJSON());return t.pop(),l}catch(s){return bl(s)}if(Array.isArray(o)){var i=o.map(r);return t.pop(),i}var a=Object.keys(o).reduce(function(s,c){return s[c]=r(dp(o,c)),s},{});return t.pop(),a}return r(e)}Nr.exports=function(e,t,r){return JSON.stringify(xl(e),t,r)},Nr.exports.ensureProperties=xl;var Tr=Nr.exports;function up(e,t){return e==null||t=="date"&&e.toString&&e.toString()==="Invalid Date"}var v={props:{field:{type:Object,default(){return{}}},parentModel:{type:Object}},data(){return{value:this.modelValue}},watch:{modelValue(e,t){var r=this.cleanInput(e),o=this.cleanInput(this.model);Tr(r)!=Tr(o)&&(this.model=r)}},mounted(){this.checkAutofocus()},computed:{optionLookup(){var e=this;return e.options.reduce(function(t,r){const o=e.getValue(r);return t[o]=r,t},{})},selectableOptions(){return this.options},required(){return this.minimum},model:{get(){var e=this.cleanOutput(this.value);return e},set(e){this.value=this.cleanInput(e),this.checkAutofocus(),this.dispatch()}},options(){var e=this;return(this.field.options||[]).reduce(function(t,r){if(!r)return t;const o=e.getValue(r);var i={title:r.title||r.name||r.label||o,value:o,source:r};return e.field.type=="reference"&&(i._id=o),t.push(i),t},[])},prefix(){return this.field.suffix},suffix(){return this.field.suffix},type(){return this.field.type||"string"},key(){return this.field.key},isGroup(){return this.type==="group"},asObject(){return this.isGroup&&!!this.field.asObject},layoutGroup(){return this.isGroup&&!this.field.asObject},canAddValue(){if(!this.singleValue)return this.maximum===0||this.numValues<this.maximum},canRemoveValue(){return this.numValues>this.minimum},widget(){return this.field.widget},singleValue(){if(this.asObject){var e=this.minimum===1&&this.maximum===1;return e}else return this.maximum===1},multiValue(){return!this.singleValue},label(){return this.field.title},description(){return this.field.description},placeholder(){return this.field.placeholder||this.field.hint},addLabel(){return this.numValues?`Add another ${this.label}`:`Add ${this.label}`},removeLabel(){return"Remove"},numValues(){return this.singleValue?1:(this.value||[]).length||0},showLabel(){return this.field.title},showDescription(){return this.description},fields(){var e=this.field.fields;if(e&&e.length)return e},minimum(){if(this.layoutGroup)return 1;var e=parseInt(this.field.minimum||0);return isNaN(e)&&(e=0),e=Math.max(e,0),e=this.maximum?Math.min(e,this.maximum):e,parseInt(e)},maximum(){if(this.layoutGroup)return 1;var e=parseInt(this.field.maximum||0);return isNaN(e)&&(e=0),e=Math.max(e,0),parseInt(e)},ask(){var e=parseInt(this.field.ask);return e=Math.max(e,this.minimum),this.maximum&&(e=Math.min(e,this.maximum)),e}},methods:{cleanTextInput(e,t,r){switch(t){case"url":e=r.$sdk.utils.parseURL(e);break;case"key":e=r.$sdk.utils.machineName(e);break;case"integer":e=parseInt(String(e).replace(/[^0-9-]/g,"")),isNaN(e)&&(e=void 0);break;case"number":case"decimal":case"float":e=Number(String(e).replace(/[^0-9.-]/g,"")),isNaN(e)&&(e=void 0);break}return e},checkAutofocus(){if(this.field.autofocus){if(this.value)return;this.$nextTick(function(){this.refocus()})}},getValue(e){if(!!e){var t=e._id||e.value;return!t&&e.title&&!this.returnObject&&(t=e.title),t||e}},getLabel(e){if(!!e){var t=e.title||e.name||e.label;return typeof t=="object"?"(no title)":t}},touch(){this.$emit("touched")},getNewDefaultEntry(){},add(){if(!!this.canAddValue){var e=this.cleanInputValue(this.getNewDefaultEntry());(!this.value||!Array.isArray(this.value))&&(this.value=[]),this.value.push(e),this.dispatch(),this.$nextTick(function(){this.refocus()}),this.touch()}},remove(e){var t=this.model.indexOf(e);this.value.splice(t,1),this.dispatch(),this.touch()},dispatch(){this.$emit("update:modelValue",this.value)},cleanInputValue(e){return e},cleanOutputValue(e){return e},cleanOutput(e){var t=this;return up(e,t.field.type)?t.multiValue?e=[]:e=void 0:t.multiValue?(Array.isArray(e)||(e=[]),e.forEach(function(r,o){e[o]=t.cleanOutputValue(r)})):e=t.cleanOutputValue(e),e},cleanInput(e){var t=this;if(t.multiValue){for(e||(e=[]),Array.isArray(e)||(e=[e]),t.maximum&&e.length>t.maximum&&(e.length=t.maximum);e.length<t.minimum;)e.push(t.cleanInputValue(t.getNewDefaultEntry()));e=e.map(function(r){var o=t.cleanInputValue(r);return o})}else e&&(e=t.cleanInputValue(e));return e},refocus(){var e=this.$refs.input;if(!!e){var t;Array.isArray(e)?t=e[e.length-1]:t=e,t&&t.focus()}}}},$C="";function mp(e){return e===void 0||typeof e=="undefined"||e===null||String(e)==="null"||String(e)==="undefined"}const fp={props:{title:{type:String},modelValue:{}},mixins:[v],created(){this.model=this.model},methods:{cleanOutput(e){var t=this;return mp(e)?t.multiValue?e=[]:e=void 0:t.multiValue?e=(e||[]).filter(Boolean).map(function(r){return t.getValue(r)}):e=t.getValue(e),e},cleanInput(e){var t=this;if(t.multiValue)e||(e=[]),Array.isArray(e)||(e=[e]),t.maximum&&e.length>t.maximum&&(e.length=t.maximum),e=e.filter(Boolean).map(function(o){var l=t.getValue(o);return t.returnObject?t.optionLookup[l]:l});else{var r=t.getValue(e);e=t.returnObject?t.optionLookup[r]:r}return e}},computed:{returnObject(){return this.type=="reference"},classes(){var e=[];return this.multiValue?e.push("multiple"):e.push("single"),e},optionLookup(){var e=this;return e.options.reduce(function(t,r){const o=e.getValue(r);return t[o]=r,t},{})},summary(){return this.model?this.getLabel(this.optionLookup[this.model]):this.title||"Click to select"},selectableOptions(){return this.options}}},hp={key:0,class:"ux-field-title"},pp={key:0,class:"ux-required-marker"},gp={key:1,class:"ux-field-description"},yp={key:2,class:"ui-select-button"},_p=["multiple"],kp={key:0,value:""},bp=["value"];function xp(e,t,r,o,l,i){const a=n.resolveComponent("ux-button");return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["native-select",i.classes])},[e.showLabel?(n.openBlock(),n.createElementBlock("label",hp,[n.createTextVNode(n.toDisplayString(e.label)+" ",1),e.required?(n.openBlock(),n.createElementBlock("span",pp,"*")):n.createCommentVNode("",!0)])):n.createCommentVNode("",!0),e.showDescription?(n.openBlock(),n.createElementBlock("div",gp,n.toDisplayString(e.description),1)):n.createCommentVNode("",!0),e.singleValue?(n.openBlock(),n.createElementBlock("div",yp,[n.renderSlot(e.$slots,"default",{},()=>[n.createVNode(a,{tag:"div"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(i.summary),1)]),_:1})],!0)])):n.createCommentVNode("",!0),n.withDirectives(n.createElementVNode("select",{onFocus:t[0]||(t[0]=(...s)=>e.touch&&e.touch(...s)),multiple:e.multiValue,"onUpdate:modelValue":t[1]||(t[1]=s=>e.model=s)},[e.singleValue&&!e.minimum?(n.openBlock(),n.createElementBlock("option",kp,"None")):n.createCommentVNode("",!0),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(i.selectableOptions,s=>(n.openBlock(),n.createElementBlock("option",{value:s.value},n.toDisplayString(s.title),9,bp))),256))],40,_p),[[n.vModelSelect,e.model]])],2)}var dt=k(fp,[["render",xp],["__scopeId","data-v-1d53b270"]]),LC="";const wp={props:{modelValue:{type:[Object,Array]}},components:{NativeSelect:dt},mixins:[v],async created(){var e=await this.$sdk.system.countries(),t=e.reduce(function(r,o){if(!o.countryCallingCodes||!o.countryCallingCodes.length)return r;var l=`${o.name} (${o.countryCallingCodes.join(", ")})`,i=l;return r.values[i]||(r.values[i]=!0,r.lookup[o.alpha2]=o,r.value.push({title:`${l} - ${o.emoji}`,value:o.alpha2,emoji:o.emoji})),r},{value:[],values:{},lookup:{}});this.countryCodes=t.value,this.lookup=t.lookup},data(){return{countryCodes:[],lookup:{}}},computed:{actualPlaceholder(){return"+61 000 000 000"},countryCodeField(){return{minimum:0,maximum:1,type:"string",options:this.countryCodes}},defaultCountryCode(){var e=this.user?this.user.countryCode:"",t=this.user&&this.user.organisation?this.user.organisation.countryCode:"";return e||t}},methods:{getNewDefaultEntry(){return{label:"",countryCode:this.defaultCountryCode,number:""}}}},Cp=e=>(n.pushScopeId("data-v-79694d60"),e=e(),n.popScopeId(),e),Vp={key:0,class:"ux-field-title"},Ep={key:0,class:"ux-required-marker"},Bp={key:1,class:"ux-field-description"},Sp={key:2},Np=n.createTextVNode(" Country Code "),Tp={key:0},Ap={key:1},Dp={class:"ux-text-wrap"},Mp=["placeholder","onUpdate:modelValue"],Op=Cp(()=>n.createElementVNode("option",{value:""},"None",-1)),Fp=["value"],Ip={class:"ux-text-wrap"},$p=["placeholder"];function Lp(e,t,r,o,l,i){const a=n.resolveComponent("native-select"),s=n.resolveComponent("flex-cell"),c=n.resolveComponent("ux-icon"),d=n.resolveComponent("ux-button"),u=n.resolveComponent("flex-row");return n.openBlock(),n.createElementBlock(n.Fragment,null,[e.showLabel?(n.openBlock(),n.createElementBlock("label",Vp,[n.createTextVNode(n.toDisplayString(e.label)+" ",1),e.required?(n.openBlock(),n.createElementBlock("span",Ep,"*")):n.createCommentVNode("",!0)])):n.createCommentVNode("",!0),e.showDescription?(n.openBlock(),n.createElementBlock("div",Bp,n.toDisplayString(e.description),1)):n.createCommentVNode("",!0),e.multiValue?(n.openBlock(),n.createElementBlock("div",Sp,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.model,(m,f)=>(n.openBlock(),n.createBlock(u,{wrap:"",class:"ux-text-row",key:f},{default:n.withCtx(()=>[n.createVNode(s,{shrink:""},{default:n.withCtx(()=>[n.createVNode(a,{modelValue:m.countryCode,"onUpdate:modelValue":h=>m.countryCode=h,field:i.countryCodeField},{default:n.withCtx(()=>[m.countryCode?(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[l.lookup[m.countryCode]?(n.openBlock(),n.createElementBlock("div",Tp,n.toDisplayString(l.lookup[m.countryCode].emoji)+" - "+n.toDisplayString(l.lookup[m.countryCode].alpha2),1)):(n.openBlock(),n.createElementBlock("div",Ap,"Loading"))],64)):(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[Np],64))]),_:2},1032,["modelValue","onUpdate:modelValue","field"])]),_:2},1024),n.createVNode(s,null,{default:n.withCtx(()=>[n.createElementVNode("div",Dp,[n.withDirectives(n.createElementVNode("input",{class:"ux-field-focus ux-text-input-multiple",placeholder:i.actualPlaceholder,onFocus:t[0]||(t[0]=(...h)=>e.touch&&e.touch(...h)),ref_for:!0,ref:"input",onKeydown:t[1]||(t[1]=n.withKeys(n.withModifiers(h=>e.add(),["stop","prevent"]),["enter"])),"onUpdate:modelValue":h=>m.number=h},null,40,Mp),[[n.vModelText,m.number]])])]),_:2},1024),n.createVNode(s,{shrink:"",vcenter:""},{default:n.withCtx(()=>[e.canRemoveValue?(n.openBlock(),n.createBlock(d,{key:0,tag:"a",icon:"",onClick:h=>e.remove(m)},{default:n.withCtx(()=>[n.createVNode(c,{icon:"fa-times"})]),_:2},1032,["onClick"])):n.createCommentVNode("",!0)]),_:2},1024)]),_:2},1024))),128)),e.canAddValue?(n.openBlock(),n.createBlock(d,{key:0,onClick:t[2]||(t[2]=m=>e.add())},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.addLabel)+" ",1),n.createVNode(c,{icon:"fa-plus",right:""})]),_:1})):n.createCommentVNode("",!0)])):(n.openBlock(),n.createBlock(u,{wrap:"",class:"ux-text-row",key:e.index},{default:n.withCtx(()=>[n.createVNode(s,{shrink:""},{default:n.withCtx(()=>[n.withDirectives(n.createElementVNode("select",{class:"ux-country-code-select","onUpdate:modelValue":t[3]||(t[3]=m=>e.model.countryCode=m)},[Op,(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(l.countryCodes,m=>(n.openBlock(),n.createElementBlock("option",{value:m.value},n.toDisplayString(m.title),9,Fp))),256))],512),[[n.vModelSelect,e.model.countryCode]])]),_:1}),n.createVNode(s,null,{default:n.withCtx(()=>[n.createElementVNode("div",Ip,[n.withDirectives(n.createElementVNode("input",{class:"ux-field-focus ux-text-input-multiple",placeholder:i.actualPlaceholder,onFocus:t[4]||(t[4]=(...m)=>e.touch&&e.touch(...m)),ref:"input",onKeydown:t[5]||(t[5]=n.withKeys(n.withModifiers(m=>e.add(),["stop","prevent"]),["enter"])),"onUpdate:modelValue":t[6]||(t[6]=m=>e.model.number=m)},null,40,$p),[[n.vModelText,e.model.number]])])]),_:1})]),_:1}))],64)}var Up=k(wp,[["render",Lp],["__scopeId","data-v-79694d60"]]),UC="";function Pp(e){return e===void 0||typeof e=="undefined"||e===null||String(e)==="null"||String(e)==="undefined"}const Rp={props:{modelValue:{}},mixins:[v],created(){this.model=this.model},methods:{cleanOutput(e){var t=this;return Pp(e)?t.multiValue?e=[]:e=void 0:t.multiValue?e=(e||[]).filter(Boolean).map(function(r){return t.getValue(r)}):e=t.getValue(e),e},cleanInput(e){var t=this;if(t.multiValue)e||(e=[]),Array.isArray(e)||(e=[e]),t.maximum&&e.length>t.maximum&&(e.length=t.maximum),e=e.filter(Boolean).map(function(o){var l=t.getValue(o);return t.returnObject?t.optionLookup[l]:l});else{var r=t.getValue(e);e=t.returnObject?t.optionLookup[r]:r}return e}},computed:{returnObject(){return this.type=="reference"},classes(){var e=[];return this.multiValue?e.push("multiple"):e.push("single"),e},optionLookup(){var e=this;return e.options.reduce(function(t,r){const o=e.getValue(r);return t[o]=r,t},{})},summary(){return this.getLabel(this.optionLookup[this.model])||"Click to select"},options(){return["Africa/Abidjan","Africa/Accra","Africa/Addis_Ababa","Africa/Algiers","Africa/Asmera","Africa/Bamako","Africa/Bangui","Africa/Banjul","Africa/Bissau","Africa/Blantyre","Africa/Brazzaville","Africa/Bujumbura","Africa/Cairo","Africa/Casablanca","Africa/Ceuta","Africa/Conakry","Africa/Dakar","Africa/Dar_es_Salaam","Africa/Djibouti","Africa/Douala","Africa/El_Aaiun","Africa/Freetown","Africa/Gaborone","Africa/Harare","Africa/Johannesburg","Africa/Juba","Africa/Kampala","Africa/Khartoum","Africa/Kigali","Africa/Kinshasa","Africa/Lagos","Africa/Libreville","Africa/Lome","Africa/Luanda","Africa/Lubumbashi","Africa/Lusaka","Africa/Malabo","Africa/Maputo","Africa/Maseru","Africa/Mbabane","Africa/Mogadishu","Africa/Monrovia","Africa/Nairobi","Africa/Ndjamena","Africa/Niamey","Africa/Nouakchott","Africa/Ouagadougou","Africa/Porto-Novo","Africa/Sao_Tome","Africa/Tripoli","Africa/Tunis","Africa/Windhoek","America/Anchorage","America/Anguilla","America/Antigua","America/Araguaina","America/Argentina/La_Rioja","America/Argentina/Rio_Gallegos","America/Argentina/Salta","America/Argentina/San_Juan","America/Argentina/San_Luis","America/Argentina/Tucuman","America/Argentina/Ushuaia","America/Aruba","America/Asuncion","America/Bahia","America/Bahia_Banderas","America/Barbados","America/Belem","America/Belize","America/Blanc-Sablon","America/Boa_Vista","America/Bogota","America/Boise","America/Buenos_Aires","America/Cambridge_Bay","America/Campo_Grande","America/Cancun","America/Caracas","America/Catamarca","America/Cayenne","America/Cayman","America/Chicago","America/Chihuahua","America/Coral_Harbour","America/Cordoba","America/Costa_Rica","America/Creston","America/Cuiaba","America/Curacao","America/Danmarkshavn","America/Dawson","America/Dawson_Creek","America/Denver","America/Detroit","America/Dominica","America/Edmonton","America/Eirunepe","America/El_Salvador","America/Fortaleza","America/Glace_Bay","America/Godthab","America/Goose_Bay","America/Grand_Turk","America/Grenada","America/Guadeloupe","America/Guatemala","America/Guayaquil","America/Guyana","America/Halifax","America/Havana","America/Hermosillo","America/Indiana/Knox","America/Indiana/Marengo","America/Indiana/Petersburg","America/Indiana/Tell_City","America/Indiana/Vevay","America/Indiana/Vincennes","America/Indiana/Winamac","America/Indianapolis","America/Inuvik","America/Iqaluit","America/Jamaica","America/Jujuy","America/Juneau","America/Kentucky/Monticello","America/Kralendijk","America/La_Paz","America/Lima","America/Los_Angeles","America/Louisville","America/Lower_Princes","America/Maceio","America/Managua","America/Manaus","America/Marigot","America/Martinique","America/Matamoros","America/Mazatlan","America/Mendoza","America/Menominee","America/Merida","America/Mexico_City","America/Moncton","America/Monterrey","America/Montevideo","America/Montreal","America/Montserrat","America/Nassau","America/New_York","America/Nipigon","America/Nome","America/Noronha","America/North_Dakota/Beulah","America/North_Dakota/Center","America/North_Dakota/New_Salem","America/Ojinaga","America/Panama","America/Pangnirtung","America/Paramaribo","America/Phoenix","America/Port-au-Prince","America/Port_of_Spain","America/Porto_Velho","America/Puerto_Rico","America/Rainy_River","America/Rankin_Inlet","America/Recife","America/Regina","America/Resolute","America/Rio_Branco","America/Santa_Isabel","America/Santarem","America/Santiago","America/Santo_Domingo","America/Sao_Paulo","America/Scoresbysund","America/Sitka","America/St_Barthelemy","America/St_Johns","America/St_Kitts","America/St_Lucia","America/St_Thomas","America/St_Vincent","America/Swift_Current","America/Tegucigalpa","America/Thule","America/Thunder_Bay","America/Tijuana","America/Toronto","America/Tortola","America/Vancouver","America/Whitehorse","America/Winnipeg","America/Yakutat","America/Yellowknife","Antarctica/Casey","Antarctica/Davis","Antarctica/DumontDUrville","Antarctica/Macquarie","Antarctica/Mawson","Antarctica/McMurdo","Antarctica/Palmer","Antarctica/Rothera","Antarctica/Syowa","Antarctica/Vostok","Arctic/Longyearbyen","Asia/Aden","Asia/Almaty","Asia/Amman","Asia/Anadyr","Asia/Aqtau","Asia/Aqtobe","Asia/Ashgabat","Asia/Baghdad","Asia/Bahrain","Asia/Baku","Asia/Bangkok","Asia/Beirut","Asia/Bishkek","Asia/Brunei","Asia/Calcutta","Asia/Chita","Asia/Choibalsan","Asia/Colombo","Asia/Damascus","Asia/Dhaka","Asia/Dili","Asia/Dubai","Asia/Dushanbe","Asia/Hong_Kong","Asia/Hovd","Asia/Irkutsk","Asia/Jakarta","Asia/Jayapura","Asia/Jerusalem","Asia/Kabul","Asia/Kamchatka","Asia/Karachi","Asia/Kathmandu","Asia/Khandyga","Asia/Kolkata","Asia/Krasnoyarsk","Asia/Kuala_Lumpur","Asia/Kuching","Asia/Kuwait","Asia/Macau","Asia/Magadan","Asia/Makassar","Asia/Manila","Asia/Muscat","Asia/Nicosia","Asia/Novokuznetsk","Asia/Novosibirsk","Asia/Omsk","Asia/Oral","Asia/Phnom_Penh","Asia/Pontianak","Asia/Pyongyang","Asia/Qatar","Asia/Qyzylorda","Asia/Rangoon","Asia/Riyadh","Asia/Saigon","Asia/Sakhalin","Asia/Samarkand","Asia/Seoul","Asia/Shanghai","Asia/Singapore","Asia/Srednekolymsk","Asia/Taipei","Asia/Tashkent","Asia/Tbilisi","Asia/Tehran","Asia/Thimphu","Asia/Tokyo","Asia/Ulaanbaatar","Asia/Urumqi","Asia/Ust-Nera","Asia/Vientiane","Asia/Vladivostok","Asia/Yakutsk","Asia/Yekaterinburg","Asia/Yerevan","Atlantic/Azores","Atlantic/Bermuda","Atlantic/Canary","Atlantic/Cape_Verde","Atlantic/Faeroe","Atlantic/Madeira","Atlantic/Reykjavik","Atlantic/South_Georgia","Atlantic/St_Helena","Atlantic/Stanley","Australia/Adelaide","Australia/Brisbane","Australia/Broken_Hill","Australia/Currie","Australia/Darwin","Australia/Hobart","Australia/Lindeman","Australia/Melbourne","Australia/Perth","Australia/Sydney","CST6CDT","EST5EDT","Etc/GMT","Etc/GMT+1","Etc/GMT+10","Etc/GMT+11","Etc/GMT+12","Etc/GMT+2","Etc/GMT+3","Etc/GMT+4","Etc/GMT+5","Etc/GMT+6","Etc/GMT+7","Etc/GMT-1","Etc/GMT-10","Etc/GMT-11","Etc/GMT-12","Etc/GMT-13","Etc/GMT-2","Etc/GMT-3","Etc/GMT-4","Etc/GMT-5","Etc/GMT-6","Etc/GMT-7","Etc/GMT-8","Etc/GMT-9","Europe/Amsterdam","Europe/Andorra","Europe/Astrakhan","Europe/Athens","Europe/Belgrade","Europe/Berlin","Europe/Bratislava","Europe/Brussels","Europe/Bucharest","Europe/Budapest","Europe/Busingen","Europe/Chisinau","Europe/Copenhagen","Europe/Dublin","Europe/Gibraltar","Europe/Guernsey","Europe/Helsinki","Europe/Isle_of_Man","Europe/Istanbul","Europe/Jersey","Europe/Kaliningrad","Europe/Kiev","Europe/Kirov","Europe/Lisbon","Europe/Ljubljana","Europe/London","Europe/Luxembourg","Europe/Madrid","Europe/Malta","Europe/Mariehamn","Europe/Minsk","Europe/Monaco","Europe/Moscow","Europe/Nicosia","Europe/Oslo","Europe/Paris","Europe/Podgorica","Europe/Prague","Europe/Riga","Europe/Rome","Europe/Samara","Europe/San_Marino","Europe/Sarajevo","Europe/Simferopol","Europe/Skopje","Europe/Sofia","Europe/Stockholm","Europe/Tallinn","Europe/Tirane","Europe/Ulyanovsk","Europe/Uzhgorod","Europe/Vaduz","Europe/Vatican","Europe/Vienna","Europe/Vilnius","Europe/Volgograd","Europe/Warsaw","Europe/Zagreb","Europe/Zaporozhye","Europe/Zurich","Indian/Antananarivo","Indian/Chagos","Indian/Christmas","Indian/Cocos","Indian/Comoro","Indian/Kerguelen","Indian/Mahe","Indian/Maldives","Indian/Mauritius","Indian/Mayotte","Indian/Reunion","MST7MDT","PST8PDT","Pacific/Apia","Pacific/Auckland","Pacific/Efate","Pacific/Enderbury","Pacific/Fakaofo","Pacific/Fiji","Pacific/Funafuti","Pacific/Galapagos","Pacific/Guadalcanal","Pacific/Guam","Pacific/Honolulu","Pacific/Johnston","Pacific/Kosrae","Pacific/Kwajalein","Pacific/Majuro","Pacific/Midway","Pacific/Nauru","Pacific/Niue","Pacific/Noumea","Pacific/Pago_Pago","Pacific/Palau","Pacific/Ponape","Pacific/Port_Moresby","Pacific/Rarotonga","Pacific/Saipan","Pacific/Tahiti","Pacific/Tarawa","Pacific/Tongatapu","Pacific/Truk","Pacific/Wake","Pacific/Wallis"].map(function(e){return{title:e,value:e}})},selectableOptions(){return this.options}}},jp={key:0,class:"ux-field-title"},zp={key:0,class:"ux-required-marker"},qp={key:1,class:"ux-field-description"},Hp={key:2,class:"ui-select-button"},Gp=["multiple"],Wp={key:0,value:""},Zp=["value"];function Yp(e,t,r,o,l,i){const a=n.resolveComponent("ux-button");return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["native-select",i.classes])},[e.showLabel?(n.openBlock(),n.createElementBlock("label",jp,[n.createTextVNode(n.toDisplayString(e.label)+" ",1),e.required?(n.openBlock(),n.createElementBlock("span",zp,"*")):n.createCommentVNode("",!0)])):n.createCommentVNode("",!0),e.showDescription?(n.openBlock(),n.createElementBlock("div",qp,n.toDisplayString(e.description),1)):n.createCommentVNode("",!0),e.singleValue?(n.openBlock(),n.createElementBlock("div",Hp,[n.renderSlot(e.$slots,"default",{},()=>[n.createVNode(a,{tag:"div"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(i.summary),1)]),_:1})],!0)])):n.createCommentVNode("",!0),n.withDirectives(n.createElementVNode("select",{onFocus:t[0]||(t[0]=(...s)=>e.touch&&e.touch(...s)),multiple:e.multiValue,"onUpdate:modelValue":t[1]||(t[1]=s=>e.model=s)},[e.singleValue&&!e.minimum?(n.openBlock(),n.createElementBlock("option",Wp,"None")):n.createCommentVNode("",!0),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(i.selectableOptions,s=>(n.openBlock(),n.createElementBlock("option",{value:s.value},n.toDisplayString(s.title),9,Zp))),256))],40,Gp),[[n.vModelSelect,e.model]])],2)}var Kp=k(Rp,[["render",Yp],["__scopeId","data-v-a15362c8"]]),PC="";const Xp={props:{item:{type:Object,required:!0}},computed:{title(){return this.item.title||this.item.name||this.item.label||(this.item.firstName?`${this.item.firstName} ${this.item.lastName}`:"(Title unknown)")}},methods:{clicked(){this.$sdk.dispatch("item:view",this.item)}}};function Jp(e,t,r,o,l,i){const a=n.resolveComponent("flex-cell"),s=n.resolveComponent("flex-row");return n.openBlock(),n.createElementBlock("div",{class:"content-item",onClick:t[0]||(t[0]=(...c)=>i.clicked&&i.clicked(...c))},[n.createVNode(s,null,{default:n.withCtx(()=>[n.createVNode(a,{shrink:""}),n.createVNode(a,{vcenter:""},{default:n.withCtx(()=>[n.renderSlot(e.$slots,"default",{},()=>[n.createTextVNode(n.toDisplayString(i.title),1)],!0)]),_:3}),n.createVNode(a,{shrink:""},{default:n.withCtx(()=>[n.renderSlot(e.$slots,"actions",{},void 0,!0)]),_:3})]),_:3})])}var wl=k(Xp,[["render",Jp],["__scopeId","data-v-1eeabf50"]]);/**!
2
2
  * Sortable 1.14.0
3
3
  * @author RubaXa <trash@rubaxa.org>
4
4
  * @author owenm <owen23355@gmail.com>