quasar-ui-danx 0.4.29 → 0.4.30

Sign up to get free protection for your applications and to get access to all the features.
package/dist/danx.umd.js CHANGED
@@ -1,4 +1,4 @@
1
- (function(S,i){typeof exports=="object"&&typeof module<"u"?i(exports,require("vue"),require("quasar")):typeof define=="function"&&define.amd?define(["exports","vue","quasar"],i):(S=typeof globalThis<"u"?globalThis:S||self,i(S.Danx={},S.Vue,S.Quasar))})(this,function(S,i,J){"use strict";var O4=Object.defineProperty;var D4=(S,i,J)=>i in S?O4(S,i,{enumerable:!0,configurable:!0,writable:!0,value:J}):S[i]=J;var G=(S,i,J)=>(D4(S,typeof i!="symbol"?i+"":i,J),J);const oe=i.shallowRef({tinyMceApiKey:"set-api-key-in-danx-options",router:void 0,request:{baseUrl:"",headers:{},onUnauthorized:void 0},fileUpload:{directory:"file-upload",createPresignedUpload:null,completePresignedUpload:null,refreshFile:null},flashMessages:{default:{},success:{},warning:{},error:{}}});function B1(t){oe.value={...oe.value,...t,fileUpload:{...oe.value.fileUpload,...t.fileUpload},flashMessages:{...oe.value.flashMessages,...t.flashMessages},request:{...oe.value.request,...t.request}}}function I1(t){return i.getCurrentScope()?(i.onScopeDispose(t),!0):!1}function Ta(t){return typeof t=="function"?t():i.unref(t)}const $1=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Na=()=>{};function F1(t,e){function n(...r){return new Promise((o,s)=>{Promise.resolve(t(()=>e.apply(this,r),{fn:e,thisArg:this,args:r})).then(o).catch(s)})}return n}function A1(t,e={}){let n,r,o=Na;const s=a=>{clearTimeout(a),o(),o=Na};return a=>{const c=Ta(t),u=Ta(e.maxWait);return n&&s(n),c<=0||u!==void 0&&u<=0?(r&&(s(r),r=null),Promise.resolve(a())):new Promise((d,f)=>{o=e.rejectOnCancel?f:d,u&&!r&&(r=setTimeout(()=>{n&&s(n),r=null,d(a())},u)),n=setTimeout(()=>{r&&s(r),r=null,d(a())},c)})}}function rn(t,e=200,n={}){return F1(A1(e,n),t)}const O1=$1?window.navigator:void 0;function D1(){const t=i.ref(!1),e=i.getCurrentInstance();return e&&i.onMounted(()=>{t.value=!0},e),t}function P1(t){const e=D1();return i.computed(()=>(e.value,!!t()))}function M1(t={}){const{enableHighAccuracy:e=!0,maximumAge:n=3e4,timeout:r=27e3,navigator:o=O1,immediate:s=!0}=t,l=P1(()=>o&&"geolocation"in o),a=i.ref(null),c=i.shallowRef(null),u=i.ref({accuracy:0,latitude:Number.POSITIVE_INFINITY,longitude:Number.POSITIVE_INFINITY,altitude:null,altitudeAccuracy:null,heading:null,speed:null});function d(p){a.value=p.timestamp,u.value=p.coords,c.value=null}let f;function h(){l.value&&(f=o.geolocation.watchPosition(d,p=>c.value=p,{enableHighAccuracy:e,maximumAge:n,timeout:r}))}s&&h();function _(){f&&o&&o.geolocation.clearWatch(f)}return I1(()=>{_()}),{isSupported:l,coords:u,locatedAt:a,error:c,resume:h,pause:_}}const L1={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 448 512"},v1=[i.createElementVNode("path",{d:"M438.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L160 338.7l233.4-233.3c12.5-12.5 32.8-12.5 45.3 0z"},null,-1)];function V1(t,e){return i.openBlock(),i.createElementBlock("svg",L1,[...v1])}const q1={render:V1},R1={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 448 512"},U1=[i.createElementVNode("path",{d:"M208 0h124.1C344.8 0 357 5.1 366 14.1L433.9 82c9 9 14.1 21.2 14.1 33.9V336c0 26.5-21.5 48-48 48H208c-26.5 0-48-21.5-48-48V48c0-26.5 21.5-48 48-48M48 128h80v64H64v256h192v-32h64v48c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V176c0-26.5 21.5-48 48-48"},null,-1)];function j1(t,e){return i.openBlock(),i.createElementBlock("svg",R1,[...U1])}const z1={render:j1},H1={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 640 512"},G1=[i.createElementVNode("path",{d:"M38.8 5.1C28.4-3.1 13.3-1.2 5.1 9.2s-6.3 25.5 4.1 33.7l592 464c10.4 8.2 25.5 6.3 33.7-4.1s6.3-25.5-4.1-33.7l-105.2-82.4c39.6-40.6 66.4-86.1 79.9-118.4 3.3-7.9 3.3-16.7 0-24.6-14.9-35.7-46.2-87.7-93-131.1C465.5 68.8 400.8 32 320 32c-68.2 0-125 26.3-169.3 60.8zm184.3 144.4c25.5-23.3 59.6-37.5 96.9-37.5 79.5 0 144 64.5 144 144 0 24.9-6.3 48.3-17.4 68.7L408 294.5c8.4-19.3 10.6-41.4 4.8-63.3-11.1-41.5-47.8-69.4-88.6-71.1-5.8-.2-9.2 6.1-7.4 11.7 2.1 6.4 3.3 13.2 3.3 20.3 0 10.2-2.4 19.8-6.6 28.3l-90.3-70.8zM373 389.9c-16.4 6.5-34.3 10.1-53 10.1-79.5 0-144-64.5-144-144 0-6.9.5-13.6 1.4-20.2l-94.3-74.3c-22.8 29.7-39.1 59.3-48.6 82.2-3.3 7.9-3.3 16.7 0 24.6 14.9 35.7 46.2 87.7 93 131.1 47 43.8 111.7 80.6 192.5 80.6 47.8 0 89.9-12.9 126.2-32.5z"},null,-1)];function Z1(t,e){return i.openBlock(),i.createElementBlock("svg",H1,[...G1])}const W1={render:Z1},Y1={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 576 512"},Q1=[i.createElementVNode("path",{d:"M288 32c-80.8 0-145.5 36.8-192.6 80.6C48.6 156 17.3 208 2.5 243.7c-3.3 7.9-3.3 16.7 0 24.6C17.3 304 48.6 356 95.4 399.4 142.5 443.2 207.2 480 288 480s145.5-36.8 192.6-80.6c46.8-43.5 78.1-95.4 93-131.1 3.3-7.9 3.3-16.7 0-24.6-14.9-35.7-46.2-87.7-93-131.1C433.5 68.8 368.8 32 288 32M144 256a144 144 0 1 1 288 0 144 144 0 1 1-288 0m144-64c0 35.3-28.7 64-64 64-7.1 0-13.9-1.2-20.3-3.3-5.5-1.8-11.9 1.6-11.7 7.4.3 6.9 1.3 13.8 3.2 20.7 13.7 51.2 66.4 81.6 117.6 67.9s81.6-66.4 67.9-117.6c-11.1-41.5-47.8-69.4-88.6-71.1-5.8-.2-9.2 6.1-7.4 11.7 2.1 6.4 3.3 13.2 3.3 20.3"},null,-1)];function K1(t,e){return i.openBlock(),i.createElementBlock("svg",Y1,[...Q1])}const X1={render:K1},J1={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 640 512"},em=[i.createElementVNode("path",{d:"M579.8 267.7c56.5-56.5 56.5-148 0-204.5-50-50-128.8-56.5-186.3-15.4l-1.6 1.1c-14.4 10.3-17.7 30.3-7.4 44.6s30.3 17.7 44.6 7.4l1.6-1.1c32.1-22.9 76-19.3 103.8 8.6 31.5 31.5 31.5 82.5 0 114L422.3 334.8c-31.5 31.5-82.5 31.5-114 0-27.9-27.9-31.5-71.8-8.6-103.8l1.1-1.6c10.3-14.4 6.9-34.4-7.4-44.6s-34.4-6.9-44.6 7.4l-1.1 1.6C206.5 251.2 213 330 263 380c56.5 56.5 148 56.5 204.5 0zM60.2 244.3c-56.5 56.5-56.5 148 0 204.5 50 50 128.8 56.5 186.3 15.4l1.6-1.1c14.4-10.3 17.7-30.3 7.4-44.6s-30.3-17.7-44.6-7.4l-1.6 1.1c-32.1 22.9-76 19.3-103.8-8.6C74 372 74 321 105.5 289.5l112.2-112.3c31.5-31.5 82.5-31.5 114 0 27.9 27.9 31.5 71.8 8.6 103.9l-1.1 1.6c-10.3 14.4-6.9 34.4 7.4 44.6s34.4 6.9 44.6-7.4l1.1-1.6C433.5 260.8 427 182 377 132c-56.5-56.5-148-56.5-204.5 0z"},null,-1)];function tm(t,e){return i.openBlock(),i.createElementBlock("svg",J1,[...em])}const nm={render:tm},rm={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 512 512"},om=[i.createElementVNode("path",{d:"m410.3 231 11.3-11.3-33.9-33.9-62.1-62.1-33.9-33.9-11.3 11.3-22.6 22.6L58.6 322.9c-10.4 10.4-18 23.3-22.2 37.4L1 480.7c-2.5 8.4-.2 17.5 6.1 23.7s15.3 8.5 23.7 6.1l120.3-35.4c14.1-4.2 27-11.8 37.4-22.2l199.2-199.2zM160 399.4l-9.1 22.7c-4 3.1-8.5 5.4-13.3 6.9l-78.2 23 23-78.1c1.4-4.9 3.8-9.4 6.9-13.3l22.7-9.1v32c0 8.8 7.2 16 16 16h32zM362.7 18.7l-14.4 14.5-22.6 22.6-11.4 11.3 33.9 33.9 62.1 62.1 33.9 33.9 11.3-11.3 22.6-22.6 14.5-14.5c25-25 25-65.5 0-90.5l-39.3-39.4c-25-25-65.5-25-90.5 0zm-47.4 168-144 144c-6.2 6.2-16.4 6.2-22.6 0s-6.2-16.4 0-22.6l144-144c6.2-6.2 16.4-6.2 22.6 0s6.2 16.4 0 22.6"},null,-1)];function im(t,e){return i.openBlock(),i.createElementBlock("svg",rm,[...om])}const Ba={render:im},sm={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 448 512"},lm=[i.createElementVNode("path",{d:"M256 80c0-17.7-14.3-32-32-32s-32 14.3-32 32v144H48c-17.7 0-32 14.3-32 32s14.3 32 32 32h144v144c0 17.7 14.3 32 32 32s32-14.3 32-32V288h144c17.7 0 32-14.3 32-32s-14.3-32-32-32H256z"},null,-1)];function am(t,e){return i.openBlock(),i.createElementBlock("svg",sm,[...lm])}const cm={render:am},um={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 448 512"},dm=[i.createElementVNode("path",{d:"M135.2 17.7 128 32H32C14.3 32 0 46.3 0 64s14.3 32 32 32h384c17.7 0 32-14.3 32-32s-14.3-32-32-32h-96l-7.2-14.3C307.4 6.8 296.3 0 284.2 0H163.8c-12.1 0-23.2 6.8-28.6 17.7M416 128H32l21.2 339c1.6 25.3 22.6 45 47.9 45h245.8c25.3 0 46.3-19.7 47.9-45z"},null,-1)];function fm(t,e){return i.openBlock(),i.createElementBlock("svg",um,[...dm])}const hm={render:fm};function _m(t,e){return i.openBlock(),i.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},[i.createVNode("path",{"fill-rule":"evenodd",d:"M3 17a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zm3.293-7.707a1 1 0 011.414 0L9 10.586V3a1 1 0 112 0v7.586l1.293-1.293a1 1 0 111.414 1.414l-3 3a1 1 0 01-1.414 0l-3-3a1 1 0 010-1.414z","clip-rule":"evenodd"})])}function Ia(t,e){return i.openBlock(),i.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},[i.createVNode("path",{"fill-rule":"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7 4a1 1 0 11-2 0 1 1 0 012 0zm-1-9a1 1 0 00-1 1v4a1 1 0 102 0V6a1 1 0 00-1-1z","clip-rule":"evenodd"})])}function mm(t,e){return i.openBlock(),i.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},[i.createVNode("path",{"fill-rule":"evenodd",d:"M5.05 4.05a7 7 0 119.9 9.9L10 18.9l-4.95-4.95a7 7 0 010-9.9zM10 11a2 2 0 100-4 2 2 0 000 4z","clip-rule":"evenodd"})])}function $a(t,e){return i.openBlock(),i.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},[i.createVNode("path",{d:"M13.586 3.586a2 2 0 112.828 2.828l-.793.793-2.828-2.828.793-.793zM11.379 5.793L3 14.172V17h2.828l8.38-8.379-2.83-2.828z"})])}function pm(t,e){return i.openBlock(),i.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},[i.createVNode("path",{"fill-rule":"evenodd",d:"M4 2a1 1 0 011 1v2.101a7.002 7.002 0 0111.601 2.566 1 1 0 11-1.885.666A5.002 5.002 0 005.999 7H9a1 1 0 010 2H4a1 1 0 01-1-1V3a1 1 0 011-1zm.008 9.057a1 1 0 011.276.61A5.002 5.002 0 0014.001 13H11a1 1 0 110-2h5a1 1 0 011 1v5a1 1 0 11-2 0v-2.101a7.002 7.002 0 01-11.601-2.566 1 1 0 01.61-1.276z","clip-rule":"evenodd"})])}function gm(t,e){return i.openBlock(),i.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},[i.createVNode("path",{d:"M9.049 2.927c.3-.921 1.603-.921 1.902 0l1.07 3.292a1 1 0 00.95.69h3.462c.969 0 1.371 1.24.588 1.81l-2.8 2.034a1 1 0 00-.364 1.118l1.07 3.292c.3.921-.755 1.688-1.54 1.118l-2.8-2.034a1 1 0 00-1.175 0l-2.8 2.034c-.784.57-1.838-.197-1.539-1.118l1.07-3.292a1 1 0 00-.364-1.118L2.98 8.72c-.783-.57-.38-1.81.588-1.81h3.461a1 1 0 00.951-.69l1.07-3.292z"})])}function ym(t,e){return i.openBlock(),i.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},[i.createVNode("path",{"fill-rule":"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zM8.707 7.293a1 1 0 00-1.414 1.414L8.586 10l-1.293 1.293a1 1 0 101.414 1.414L10 11.414l1.293 1.293a1 1 0 001.414-1.414L11.414 10l1.293-1.293a1 1 0 00-1.414-1.414L10 8.586 8.707 7.293z","clip-rule":"evenodd"})])}const Fa={__name:"ExportButton",props:{exporter:{type:Function,required:!0}},setup(t){const e=t,n=i.ref(!1);async function r(){n.value=!0;try{await e.exporter()}catch(o){console.error(o),Ve.error("Failed to export data")}n.value=!1}return(o,s)=>{const l=i.resolveComponent("QBtn");return i.openBlock(),i.createBlock(l,{class:"dx-export-button dx-action-button",loading:n.value,onClick:r},{default:i.withCtx(()=>[i.createVNode(i.unref(_m),{class:"w-5"})]),_:1},8,["loading"])}}},Aa=i.defineComponent({__name:"RefreshButton",props:{loading:{type:Boolean}},emits:["refresh"],setup(t){return(e,n)=>{const r=i.resolveComponent("QBtn");return i.openBlock(),i.createBlock(r,{class:"dx-refresh-button dx-action-button",loading:e.loading},{default:i.withCtx(()=>[i.createVNode(i.unref(pm),{class:"w-5"})]),_:1},8,["loading"])}}}),bm={class:"flex items-center flex-nowrap whitespace-nowrap"},ji="show-hide-button",Oa=i.defineComponent({__name:"ShowHideButton",props:i.mergeModels({name:{default:""},showLabel:{default:""},hideLabel:{default:""},showIcon:{default:null},hideIcon:{default:null},iconClass:{default:"w-4 h-6"},labelClass:{default:"ml-2"},label:{default:""},tooltip:{default:""},disable:{type:Boolean}},{modelValue:{type:Boolean},modelModifiers:{}}),emits:i.mergeModels(["show","hide"],["update:modelValue"]),setup(t,{emit:e}){const n=e,r=i.useModel(t,"modelValue"),o=t,s=xt(ji,{});o.name&&s[o.name]!==void 0&&(r.value=s[o.name]);function l(){r.value=!r.value,i.nextTick(()=>{r.value?n("show"):n("hide"),o.name&&(s[o.name]=r.value,Pt(ji,{...xt(ji,{}),[o.name]:r.value}))})}return(a,c)=>{const u=i.resolveComponent("QTooltip"),d=i.resolveComponent("QBtn");return i.openBlock(),i.createBlock(d,{class:"py-1 px-2",disable:a.disable,onClick:l},{default:i.withCtx(()=>[i.createElementVNode("div",bm,[i.renderSlot(a.$slots,"default",{isShowing:r.value},()=>[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(r.value?a.hideIcon||i.unref(W1):a.showIcon||i.unref(X1)),{class:i.normalizeClass(a.iconClass)},null,8,["class"])),a.label?(i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass(a.labelClass)},i.toDisplayString((r.value?a.hideLabel:a.showLabel)||a.label),3)):i.createCommentVNode("",!0)])]),a.tooltip?(i.openBlock(),i.createBlock(u,{key:0},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(a.tooltip),1)]),_:1})):i.createCommentVNode("",!0)]),_:3},8,["disable"])}}}),wm={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},km=[i.createElementVNode("path",{fill:"currentColor",d:"M10 12 6 8h8z"},null,-1)];function xm(t,e){return i.openBlock(),i.createElementBlock("svg",wm,[...km])}const Da={render:xm},Sm={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20"},Cm=[i.createElementVNode("path",{fill:"currentColor",d:"M7.5 16q-.625 0-1.062-.438A1.44 1.44 0 0 1 6 14.5q0-.625.438-1.062A1.44 1.44 0 0 1 7.5 13q.625 0 1.062.438Q9 13.875 9 14.5t-.438 1.062A1.44 1.44 0 0 1 7.5 16m5 0q-.625 0-1.062-.438A1.44 1.44 0 0 1 11 14.5q0-.625.438-1.062A1.44 1.44 0 0 1 12.5 13q.625 0 1.062.438.438.437.438 1.062t-.438 1.062A1.44 1.44 0 0 1 12.5 16m-5-4.5q-.625 0-1.062-.438A1.44 1.44 0 0 1 6 10q0-.625.438-1.062A1.44 1.44 0 0 1 7.5 8.5q.625 0 1.062.438Q9 9.375 9 10t-.438 1.062A1.44 1.44 0 0 1 7.5 11.5m5 0q-.625 0-1.062-.438A1.44 1.44 0 0 1 11 10q0-.625.438-1.062A1.44 1.44 0 0 1 12.5 8.5q.625 0 1.062.438Q14 9.375 14 10t-.438 1.062a1.44 1.44 0 0 1-1.062.438M7.5 7q-.625 0-1.062-.438A1.44 1.44 0 0 1 6 5.5q0-.625.438-1.062A1.44 1.44 0 0 1 7.5 4q.625 0 1.062.438Q9 4.875 9 5.5t-.438 1.062A1.44 1.44 0 0 1 7.5 7m5 0q-.625 0-1.062-.438A1.44 1.44 0 0 1 11 5.5q0-.625.438-1.062A1.44 1.44 0 0 1 12.5 4q.625 0 1.062.438Q14 4.875 14 5.5t-.438 1.062A1.44 1.44 0 0 1 12.5 7"},null,-1)];function Em(t,e){return i.openBlock(),i.createElementBlock("svg",Sm,[...Cm])}const Pa={render:Em},Tm={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 7 16"},Nm=[i.createElementVNode("path",{fill:"currentColor",d:"M.5 1v14c0 .55.45 1 1 1s1-.45 1-1V1c0-.55-.45-1-1-1S.5.45.5 1m6 14V1c0-.55-.45-1-1-1s-1 .45-1 1v14c0 .55.45 1 1 1s1-.45 1-1"},null,-1)];function Bm(t,e){return i.openBlock(),i.createElementBlock("svg",Tm,[...Nm])}const Ma={render:Bm},Im={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20"},$m=[i.createElementVNode("path",{fill:"currentColor",d:"M9.167 17.5v-5h1.666v1.667H17.5v1.666h-6.667V17.5zM2.5 15.833v-1.666h5v1.666zM5.833 12.5v-1.667H2.5V9.167h3.333V7.5H7.5v5zm3.334-1.667V9.167H17.5v1.666zM12.5 7.5v-5h1.667v1.667H17.5v1.666h-3.333V7.5zm-10-1.667V4.167h8.333v1.666z"},null,-1)];function Fm(t,e){return i.openBlock(),i.createElementBlock("svg",Im,[...$m])}const La={render:Fm},Am={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20"},Om=[i.createElementVNode("path",{fill:"currentColor","fill-rule":"evenodd",d:"M17.859 18.558c.394 0 .713-.32.713-.714V2.141a.714.714 0 0 0-.713-.713H2.156a.714.714 0 0 0-.714.713v15.703c0 .394.32.714.714.714zM20 17.844a2.14 2.14 0 0 1-2.141 2.141H2.156a2.14 2.14 0 0 1-2.141-2.14V2.14C.015.96.973.001 2.156.001h15.703C19.04 0 20 .958 20 2.14z","clip-rule":"evenodd"},null,-1),i.createElementVNode("path",{fill:"currentColor","fill-rule":"evenodd",d:"M13.205 4.996a1.784 1.784 0 1 0 0 3.569 1.784 1.784 0 0 0 0-3.57M9.993 6.78a3.212 3.212 0 1 1 6.424 0 3.212 3.212 0 0 1-6.424 0M2.848 9.993A11.22 11.22 0 0 1 14.12 19.14a.714.714 0 0 1-1.403.264 9.79 9.79 0 0 0-9.846-7.984h-.018c-.673-.001-1.344.061-2.005.188a.714.714 0 1 1-.268-1.402 12 12 0 0 1 2.268-.213","clip-rule":"evenodd"},null,-1),i.createElementVNode("path",{fill:"currentColor","fill-rule":"evenodd",d:"M10.954 13.82c1.5-.645 3.117-.976 4.75-.972 1.29 0 2.573.21 3.796.622a.714.714 0 1 1-.456 1.353 10.4 10.4 0 0 0-3.34-.548h-.002a10.55 10.55 0 0 0-4.185.856.714.714 0 1 1-.563-1.312","clip-rule":"evenodd"},null,-1)];function Dm(t,e){return i.openBlock(),i.createElementBlock("svg",Am,[...Om])}const zi={render:Dm},Pm={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 550.801 550.801"},Mm=[i.createElementVNode("path",{d:"M160.381 282.225c0-14.832-10.299-23.684-28.474-23.684-7.414 0-12.437.715-15.071 1.432V307.6c3.114.707 6.942.949 12.192.949 19.391 0 31.353-9.809 31.353-26.324M272.875 259.019c-8.145 0-13.397.717-16.519 1.435v105.523c3.116.729 8.142.729 12.69.729 33.017.231 54.554-17.946 54.554-56.474.242-33.513-19.385-51.213-50.725-51.213"},null,-1),i.createElementVNode("path",{d:"M488.426 197.019H475.2v-63.816c0-.398-.063-.799-.116-1.202-.021-2.534-.827-5.023-2.562-6.995L366.325 3.694c-.032-.031-.063-.042-.085-.076-.633-.707-1.371-1.295-2.151-1.804a10 10 0 0 0-.706-.419 11 11 0 0 0-2.131-.896c-.2-.056-.38-.138-.58-.19A10.8 10.8 0 0 0 358.193 0H97.2C85.282 0 75.6 9.693 75.6 21.601v175.413H62.377c-17.049 0-30.873 13.818-30.873 30.873v160.545c0 17.043 13.824 30.87 30.873 30.87h13.224V529.2c0 11.907 9.682 21.601 21.6 21.601h356.4c11.907 0 21.6-9.693 21.6-21.601V419.302h13.226c17.044 0 30.871-13.827 30.871-30.87v-160.54c-.001-17.054-13.828-30.873-30.872-30.873M97.2 21.605h250.193v110.513c0 5.967 4.841 10.8 10.8 10.8H453.6v54.108H97.2zm265.159 287.418c0 30.876-11.243 52.165-26.82 65.333-16.971 14.117-42.82 20.814-74.396 20.814-18.9 0-32.297-1.197-41.401-2.389V234.365c13.399-2.149 30.878-3.346 49.304-3.346 30.612 0 50.478 5.508 66.039 17.226 16.743 12.445 27.274 32.302 27.274 60.778M80.7 393.499V234.365c11.241-1.904 27.042-3.346 49.296-3.346 22.491 0 38.527 4.308 49.291 12.928 10.292 8.131 17.215 21.534 17.215 37.328 0 15.799-5.25 29.198-14.829 38.285-12.442 11.728-30.865 16.996-52.407 16.996-4.778 0-9.1-.243-12.435-.723v57.67H80.7zm372.901 129.854H97.2V419.302h356.4v104.051zm31.297-261.226h-61.989v36.851h57.913v29.674h-57.913V393.5h-36.593V232.216h98.582z"},null,-1)];function Lm(t,e){return i.openBlock(),i.createElementBlock("svg",Pm,[...Mm])}const va={render:Lm},vm={xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",fill:"currentColor",viewBox:"0 0 394.4 394.4"},Vm=[i.createElementVNode("path",{d:"M37.4 377.4a20.33 20.33 0 0 1-14.423-5.977c-7.97-7.963-7.97-20.883 0-28.846l319.6-319.601c7.97-7.97 20.876-7.97 28.846 0 7.97 7.962 7.97 20.882 0 28.845l-319.6 319.601A20.32 20.32 0 0 1 37.4 377.4m357-78.201c0-52.496-42.704-95.199-95.2-95.199S204 246.703 204 299.199s42.704 95.201 95.2 95.201 95.2-42.705 95.2-95.201m-40.799 0c0 29.996-24.405 54.4-54.4 54.4s-54.4-24.404-54.4-54.4c0-29.994 24.405-54.398 54.4-54.398s54.4 24.404 54.4 54.398M190.4 95.2C190.4 42.704 147.696 0 95.2 0S0 42.704 0 95.2s42.704 95.2 95.2 95.2 95.2-42.704 95.2-95.2m-40.8 0c0 29.995-24.405 54.4-54.4 54.4s-54.4-24.405-54.4-54.4 24.405-54.4 54.4-54.4 54.4 24.406 54.4 54.4"},null,-1)];function qm(t,e){return i.openBlock(),i.createElementBlock("svg",vm,[...Vm])}const Va={render:qm},Rm={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},Um=[i.createElementVNode("path",{fill:"currentColor",d:"M16.5 18V6h2v12zm-11 0V6l9 6z"},null,-1)];function jm(t,e){return i.openBlock(),i.createElementBlock("svg",Rm,[...Um])}const qa={render:jm},zm={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},Hm=[i.createElementVNode("path",{fill:"currentColor",d:"M5.5 18V6h2v12zm13 0-9-6 9-6z"},null,-1)];function Gm(t,e){return i.openBlock(),i.createElementBlock("svg",zm,[...Hm])}const Ra={render:Gm},Zm={xmlns:"http://www.w3.org/2000/svg",width:"18",height:"20",fill:"none",viewBox:"0 0 16 18"},Wm=[i.createElementVNode("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m13.833 4.833-.722 10.119a1.667 1.667 0 0 1-1.663 1.548H4.552a1.667 1.667 0 0 1-1.663-1.548L2.167 4.833m4.166 3.334v5m3.334-5v5m.833-8.334v-2.5a.833.833 0 0 0-.833-.833H6.333a.833.833 0 0 0-.833.833v2.5m-4.167 0h13.334"},null,-1)];function Ym(t,e){return i.openBlock(),i.createElementBlock("svg",Zm,[...Wm])}const go={render:Ym},Qm={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20"},Km=[i.createElementVNode("path",{fill:"currentColor",d:"M0 18.273 10 1l10 17.273zm3.136-1.819h13.728L10 4.637zM10 15.545a.88.88 0 0 0 .648-.261.88.88 0 0 0 .261-.648.88.88 0 0 0-.26-.647.88.88 0 0 0-.649-.262.88.88 0 0 0-.647.262.88.88 0 0 0-.262.647q0 .387.262.648.261.261.647.261m-.91-2.727h1.82V8.273H9.09z"},null,-1)];function Xm(t,e){return i.openBlock(),i.createElementBlock("svg",Qm,[...Km])}const Ua={render:Xm},Jm={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 17 17"},ep=[i.createElementVNode("path",{fill:"currentColor","fill-rule":"evenodd",d:"M16.822.178a.607.607 0 0 1 0 .858L1.036 16.822a.607.607 0 1 1-.858-.858L15.964.178a.607.607 0 0 1 .858 0","clip-rule":"evenodd"},null,-1),i.createElementVNode("path",{fill:"currentColor","fill-rule":"evenodd",d:"M.178.178a.607.607 0 0 1 .858 0l15.786 15.786a.607.607 0 0 1-.858.858L.178 1.036a.607.607 0 0 1 0-.858","clip-rule":"evenodd"},null,-1)];function tp(t,e){return i.openBlock(),i.createElementBlock("svg",Jm,[...ep])}const yo={render:tp},np={class:"dx-previous-next-controls"},ja={__name:"PreviousNextControls",props:{isLoading:Boolean},emits:["next"],setup(t){return(e,n)=>{const r=i.resolveComponent("QBtn");return i.openBlock(),i.createElementBlock("div",np,[i.createVNode(r,{class:"dx-control dx-control-previous border border-solid !rounded-r-none !p-2 !min-w-0",disable:t.isLoading,loading:t.isLoading,onClick:n[0]||(n[0]=o=>e.$emit("next",-1))},{default:i.withCtx(()=>[i.createVNode(i.unref(Ra),{class:"w-6"})]),_:1},8,["disable","loading"]),i.createVNode(r,{class:"dx-control dx-control-next border border-solid border-l-0 !rounded-l-none !p-2 !min-w-0",disable:t.isLoading,loading:t.isLoading,onClick:n[1]||(n[1]=o=>e.$emit("next",1))},{default:i.withCtx(()=>[i.createVNode(i.unref(qa),{class:"w-6"})]),_:1},8,["disable","loading"])])}}};function za(t,e){return i.openBlock(),i.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor","aria-hidden":"true"},[i.createVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M8 7V3m8 4V3m-9 8h10M5 21h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z"})])}function rp(t,e){return i.openBlock(),i.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor","aria-hidden":"true"},[i.createVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M19 9l-7 7-7-7"})])}function Ha(t,e){return i.openBlock(),i.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor","aria-hidden":"true"},[i.createVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15 19l-7-7 7-7"})])}function op(t,e){return i.openBlock(),i.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor","aria-hidden":"true"},[i.createVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 8c-1.657 0-3 .895-3 2s1.343 2 3 2 3 .895 3 2-1.343 2-3 2m0-8c1.11 0 2.08.402 2.599 1M12 8V7m0 1v8m0 0v1m0-1c-1.11 0-2.08-.402-2.599-1M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})])}function ip(t,e){return i.openBlock(),i.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor","aria-hidden":"true"},[i.createVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"})])}function sp(t,e){return i.openBlock(),i.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor","aria-hidden":"true"},[i.createVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 5v.01M12 12v.01M12 19v.01M12 6a1 1 0 110-2 1 1 0 010 2zm0 7a1 1 0 110-2 1 1 0 010 2zm0 7a1 1 0 110-2 1 1 0 010 2z"})])}function lp(t,e){return i.openBlock(),i.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor","aria-hidden":"true"},[i.createVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4"})])}function ap(t,e){return i.openBlock(),i.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor","aria-hidden":"true"},[i.createVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M13.875 18.825A10.05 10.05 0 0112 19c-4.478 0-8.268-2.943-9.543-7a9.97 9.97 0 011.563-3.029m5.858.908a3 3 0 114.243 4.243M9.878 9.878l4.242 4.242M9.88 9.88l-3.29-3.29m7.532 7.532l3.29 3.29M3 3l3.59 3.59m0 0A9.953 9.953 0 0112 5c4.478 0 8.268 2.943 9.543 7a10.025 10.025 0 01-4.132 5.411m0 0L21 21"})])}function cp(t,e){return i.openBlock(),i.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor","aria-hidden":"true"},[i.createVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15 12a3 3 0 11-6 0 3 3 0 016 0z"}),i.createVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M2.458 12C3.732 7.943 7.523 5 12 5c4.478 0 8.268 2.943 9.542 7-1.274 4.057-5.064 7-9.542 7-4.477 0-8.268-2.943-9.542-7z"})])}function up(t,e){return i.openBlock(),i.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor","aria-hidden":"true"},[i.createVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M7 20l4-16m2 16l4-16M6 9h14M4 15h14"})])}function dp(t,e){return i.openBlock(),i.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor","aria-hidden":"true"},[i.createVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 15v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2zm10-10V7a4 4 0 00-8 0v4h8z"})])}function fp(t,e){return i.openBlock(),i.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor","aria-hidden":"true"},[i.createVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M14.752 11.168l-3.197-2.132A1 1 0 0010 9.87v4.263a1 1 0 001.555.832l3.197-2.132a1 1 0 000-1.664z"}),i.createVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})])}function hp(t,e){return i.openBlock(),i.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor","aria-hidden":"true"},[i.createVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 4v16m8-8H4"})])}function _p(t,e){return i.openBlock(),i.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor","aria-hidden":"true"},[i.createVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6 18L18 6M6 6l12 12"})])}const mp={class:"flex-grow"},pp={key:1,class:"dx-dialog-subtitle"},gp={class:"flex dx-dialog-actions"},Hi=i.defineComponent({__name:"DialogLayout",props:{modelValue:{type:[String,Boolean,Object]},title:{default:""},titleClass:{default:""},subtitle:{default:""},content:{default:""},backdropDismiss:{type:Boolean},maximized:{type:Boolean},fullWidth:{type:Boolean},fullHeight:{type:Boolean},contentClass:{default:""}},emits:["close"],setup(t,{emit:e}){const n=e;function r(){n("close")}return(o,s)=>{const l=i.resolveComponent("QCardSection"),a=i.resolveComponent("QCard"),c=i.resolveComponent("QDialog");return i.openBlock(),i.createBlock(c,{class:"dx-dialog","full-height":o.fullHeight,"full-width":o.fullWidth,"model-value":!0,"no-backdrop-dismiss":!o.backdropDismiss,maximized:o.maximized,"onUpdate:modelValue":r},{default:i.withCtx(()=>[i.createVNode(a,{class:"dx-dialog-card flex flex-col flex-nowrap"},{default:i.withCtx(()=>[i.createVNode(l,{class:"dx-dialog-header flex items-center"},{default:i.withCtx(()=>[i.createElementVNode("div",mp,[o.title||o.$slots.title?(i.openBlock(),i.createElementBlock("h3",{key:0,class:i.normalizeClass(["dx-dialog-title flex items-center",o.titleClass])},[i.renderSlot(o.$slots,"title",{},()=>[i.createTextVNode(i.toDisplayString(o.title),1)])],2)):i.createCommentVNode("",!0),o.subtitle||o.$slots.subtitle?(i.openBlock(),i.createElementBlock("div",pp,[i.renderSlot(o.$slots,"subtitle",{},()=>[i.createTextVNode(i.toDisplayString(o.subtitle),1)])])):i.createCommentVNode("",!0)]),i.createElementVNode("div",null,[i.createElementVNode("div",{class:"dx-close-button cursor-pointer",onClick:r},[i.createVNode(i.unref(_p),{class:"w-5"})])])]),_:3}),o.$slots.toolbar?(i.openBlock(),i.createBlock(l,{key:0},{default:i.withCtx(()=>[i.renderSlot(o.$slots,"toolbar")]),_:3})):i.createCommentVNode("",!0),o.content||o.$slots.default?(i.openBlock(),i.createBlock(l,{key:1,class:i.normalizeClass(["dx-dialog-content flex-grow max-h-full overflow-y-auto",o.contentClass])},{default:i.withCtx(()=>[i.renderSlot(o.$slots,"default",{},()=>[i.createTextVNode(i.toDisplayString(o.content),1)])]),_:3},8,["class"])):i.createCommentVNode("",!0),i.createElementVNode("div",gp,[i.renderSlot(o.$slots,"actions")])]),_:3})]),_:3},8,["full-height","full-width","no-backdrop-dismiss","maximized"])}}}),yp={class:"dx-dialog-button-cancel"},bp={key:0,class:"dx-dialog-button-confirm"},Ct=i.defineComponent({__name:"ConfirmDialog",props:{disabled:{type:Boolean},isSaving:{type:Boolean},closeOnConfirm:{type:Boolean},hideConfirm:{type:Boolean},confirmText:{default:"Confirm"},cancelText:{default:"Cancel"},confirmClass:{default:""},contentClass:{default:""},modelValue:{type:[String,Boolean,Object]},title:{},titleClass:{},subtitle:{},content:{},backdropDismiss:{type:Boolean},maximized:{type:Boolean},fullWidth:{type:Boolean},fullHeight:{type:Boolean}},emits:["update:model-value","confirm","close"],setup(t,{emit:e}){const n=e,r=t,o=i.computed(()=>({...r,disabled:void 0})),s=i.computed(()=>["title","subtitle","toolbar"]);function l(){n("confirm"),r.closeOnConfirm&&n("close")}function a(){n("update:model-value",!1),n("close")}return(c,u)=>{const d=i.resolveComponent("QBtn");return i.openBlock(),i.createBlock(i.unref(Hi),i.mergeProps({class:"dx-confirm-dialog"},o.value,{onClose:a}),i.createSlots({actions:i.withCtx(()=>[i.createElementVNode("div",yp,[i.createVNode(d,{label:c.cancelText,class:"dx-dialog-button",onClick:a},{default:i.withCtx(()=>[i.renderSlot(c.$slots,"cancel-text")]),_:3},8,["label"])]),i.renderSlot(c.$slots,"actions"),c.hideConfirm?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("div",bp,[i.createVNode(d,{label:c.$slots["confirm-text"]?"":c.confirmText,class:i.normalizeClass(["dx-dialog-button",c.confirmClass]),loading:c.isSaving,disable:c.disabled,"data-testid":"confirm-button",onClick:l},{default:i.withCtx(()=>[i.renderSlot(c.$slots,"confirm-text")]),_:3},8,["label","class","loading","disable"])]))]),default:i.withCtx(()=>[i.renderSlot(c.$slots,"default")]),_:2},[i.renderList(s.value,f=>({name:f,fn:i.withCtx(()=>[i.renderSlot(c.$slots,f)])}))]),1040)}}}),wp=i.defineComponent({__name:"ActionFormDialog",props:{title:{},confirmText:{},form:{},action:{},target:{}},emits:["confirm","close"],setup(t){const e=i.ref("");return(n,r)=>(i.openBlock(),i.createBlock(i.unref(Ct),{title:n.title,"confirm-text":n.confirmText||n.title,onConfirm:r[0]||(r[0]=o=>n.$emit("confirm",{name:e.value})),onClose:r[1]||(r[1]=o=>n.$emit("close"))},{default:i.withCtx(()=>[i.createVNode(i.unref(ac),{form:n.form,action:n.action,target:n.target},null,8,["form","action","target"])]),_:1},8,["title","confirm-text"]))}}),Ga=i.defineComponent({__name:"ConfirmActionDialog",props:{action:{},label:{},target:{},message:{default:"Are you sure you want to"},disabled:{type:Boolean},isSaving:{type:Boolean},closeOnConfirm:{type:Boolean},hideConfirm:{type:Boolean},confirmText:{},cancelText:{},confirmClass:{},contentClass:{},modelValue:{type:[String,Boolean,Object]},title:{},titleClass:{},subtitle:{},content:{},backdropDismiss:{type:Boolean},maximized:{type:Boolean},fullWidth:{type:Boolean},fullHeight:{type:Boolean}},emits:["confirm","close"],setup(t){const e=t,n=i.computed(()=>Oh(e.target,e.label||e.action)),r=i.computed(()=>`Confirm ${e.action}`),o=i.computed(()=>`${e.action}`),s=i.computed(()=>`${e.message} ${e.action.toLowerCase()}${n.value?" "+n.value:""}?`),l=i.computed(()=>["title","subtitle","default","toolbar","actions"]);return(a,c)=>(i.openBlock(),i.createBlock(i.unref(Ct),i.mergeProps({class:"dx-confirm-action-dialog"},e,{"confirm-text":a.confirmText||o.value,title:a.title||r.value,content:a.content||s.value,onConfirm:c[0]||(c[0]=u=>a.$emit("confirm")),onClose:c[1]||(c[1]=u=>a.$emit("close"))}),i.createSlots({default:i.withCtx(()=>[i.renderSlot(a.$slots,"default")]),_:2},[i.renderList(l.value,u=>({name:u,fn:i.withCtx(()=>[i.renderSlot(a.$slots,u)])}))]),1040,["confirm-text","title","content"]))}}),Za=i.defineComponent({__name:"CreateNewWithNameDialog",props:{title:{},confirmText:{}},emits:["confirm","close"],setup(t){const e=i.ref("");return(n,r)=>(i.openBlock(),i.createBlock(i.unref(Ct),{title:n.title,"confirm-text":n.confirmText||n.title,onConfirm:r[1]||(r[1]=o=>n.$emit("confirm",{name:e.value})),onClose:r[2]||(r[2]=o=>n.$emit("close"))},{default:i.withCtx(()=>[i.createVNode(i.unref(on),{modelValue:e.value,"onUpdate:modelValue":r[0]||(r[0]=o=>e.value=o),label:"Name"},null,8,["modelValue"]),i.renderSlot(n.$slots,"default")]),_:3},8,["title","confirm-text"]))}}),kp={"!visible":"_!visible_1qcdh_1",visible:"_visible_1qcdh_1",collapse:"_collapse_1qcdh_1",static:"_static_1qcdh_1",absolute:"_absolute_1qcdh_1",relative:"_relative_1qcdh_1",sticky:"_sticky_1qcdh_1","left-0":"_left-0_1qcdh_1","right-0":"_right-0_1qcdh_1","right-1":"_right-1_1qcdh_1","top-0":"_top-0_1qcdh_1","top-1":"_top-1_1qcdh_1","z-10":"_z-10_1qcdh_1","m-2":"_m-2_1qcdh_1","m-4":"_m-4_1qcdh_1","m-auto":"_m-auto_1qcdh_1","mx-1":"_mx-1_1qcdh_1","mx-4":"_mx-4_1qcdh_1","mx-auto":"_mx-auto_1qcdh_1","my-2":"_my-2_1qcdh_1","!mr-1":"_!mr-1_1qcdh_1","mb-2":"_mb-2_1qcdh_1","mb-4":"_mb-4_1qcdh_1","ml-1":"_ml-1_1qcdh_1","ml-2":"_ml-2_1qcdh_1","ml-2.5":"_ml-2.5_1qcdh_1","ml-3":"_ml-3_1qcdh_1","ml-4":"_ml-4_1qcdh_1","ml-5":"_ml-5_1qcdh_1","ml-[-.2em]":"_ml-[-.2em]_1qcdh_1","mr-1":"_mr-1_1qcdh_1","mr-2":"_mr-2_1qcdh_1","mr-3":"_mr-3_1qcdh_1","mr-4":"_mr-4_1qcdh_1","mt-1":"_mt-1_1qcdh_1","mt-2":"_mt-2_1qcdh_1","mt-3":"_mt-3_1qcdh_1","mt-4":"_mt-4_1qcdh_1",block:"_block_1qcdh_1","inline-block":"_inline-block_1qcdh_1",inline:"_inline_1qcdh_1",flex:"_flex_1qcdh_1",table:"_table_1qcdh_1",hidden:"_hidden_1qcdh_1","h-10":"_h-10_1qcdh_1","h-16":"_h-16_1qcdh_1","h-32":"_h-32_1qcdh_1","h-4":"_h-4_1qcdh_1","h-5":"_h-5_1qcdh_1","h-6":"_h-6_1qcdh_1","h-8":"_h-8_1qcdh_1","h-[2.25rem]":"_h-[2.25rem]_1qcdh_1","h-full":"_h-full_1qcdh_1","max-h-full":"_max-h-full_1qcdh_1","w-1/5":"_w-1/5_1qcdh_1","w-10":"_w-10_1qcdh_1","w-16":"_w-16_1qcdh_1","w-2/5":"_w-2/5_1qcdh_1","w-24":"_w-24_1qcdh_1","w-3":"_w-3_1qcdh_1","w-3/5":"_w-3/5_1qcdh_1","w-32":"_w-32_1qcdh_1","w-4":"_w-4_1qcdh_1","w-48":"_w-48_1qcdh_1","w-5":"_w-5_1qcdh_1","w-6":"_w-6_1qcdh_1","w-7":"_w-7_1qcdh_1","w-72":"_w-72_1qcdh_1","w-8":"_w-8_1qcdh_1","w-96":"_w-96_1qcdh_1","w-[13.5rem]":"_w-[13.5rem]_1qcdh_1","w-[6.5rem]":"_w-[6.5rem]_1qcdh_1","w-[80rem]":"_w-[80rem]_1qcdh_1","w-full":"_w-full_1qcdh_1","!min-w-0":"_!min-w-0_1qcdh_1","max-w-full":"_max-w-full_1qcdh_1","flex-shrink":"_flex-shrink_1qcdh_1","flex-shrink-0":"_flex-shrink-0_1qcdh_1",shrink:"_shrink_1qcdh_1","flex-grow":"_flex-grow_1qcdh_1",grow:"_grow_1qcdh_1","rotate-180":"_rotate-180_1qcdh_1",transform:"_transform_1qcdh_1","cursor-ew-resize":"_cursor-ew-resize_1qcdh_1","cursor-move":"_cursor-move_1qcdh_1","cursor-not-allowed":"_cursor-not-allowed_1qcdh_1","cursor-ns-resize":"_cursor-ns-resize_1qcdh_1","cursor-pointer":"_cursor-pointer_1qcdh_1",resize:"_resize_1qcdh_1","flex-col":"_flex-col_1qcdh_1","flex-nowrap":"_flex-nowrap_1qcdh_1","items-center":"_items-center_1qcdh_1","items-stretch":"_items-stretch_1qcdh_1","justify-start":"_justify-start_1qcdh_1","justify-end":"_justify-end_1qcdh_1","justify-center":"_justify-center_1qcdh_1","justify-between":"_justify-between_1qcdh_1","gap-x-4":"_gap-x-4_1qcdh_1","gap-y-0":"_gap-y-0_1qcdh_1","gap-y-1":"_gap-y-1_1qcdh_1","space-x-1":"_space-x-1_1qcdh_1","space-x-2":"_space-x-2_1qcdh_1","self-center":"_self-center_1qcdh_1","overflow-auto":"_overflow-auto_1qcdh_1","overflow-hidden":"_overflow-hidden_1qcdh_1","overflow-y-auto":"_overflow-y-auto_1qcdh_73","overflow-x-hidden":"_overflow-x-hidden_1qcdh_1","scroll-smooth":"_scroll-smooth_1qcdh_1","overflow-ellipsis":"_overflow-ellipsis_1qcdh_1","whitespace-normal":"_whitespace-normal_1qcdh_1","whitespace-nowrap":"_whitespace-nowrap_1qcdh_1",rounded:"_rounded_1qcdh_1","rounded-2xl":"_rounded-2xl_1qcdh_1","rounded-lg":"_rounded-lg_1qcdh_1","rounded-md":"_rounded-md_1qcdh_1","rounded-sm":"_rounded-sm_1qcdh_1","!rounded-l-none":"_!rounded-l-none_1qcdh_1","!rounded-r-none":"_!rounded-r-none_1qcdh_1","rounded-b-lg":"_rounded-b-lg_1qcdh_1","rounded-t-lg":"_rounded-t-lg_1qcdh_1","rounded-t-md":"_rounded-t-md_1qcdh_1","!border-0":"_!border-0_1qcdh_1",border:"_border_1qcdh_1","border-b":"_border-b_1qcdh_1","border-l":"_border-l_1qcdh_1","border-l-0":"_border-l-0_1qcdh_1","border-r":"_border-r_1qcdh_1","border-solid":"_border-solid_1qcdh_1","border-dashed":"_border-dashed_1qcdh_1","border-none":"_border-none_1qcdh_1","border-blue-600":"_border-blue-600_1qcdh_1","border-blue-700":"_border-blue-700_1qcdh_1","border-gray-200":"_border-gray-200_1qcdh_1","border-gray-300":"_border-gray-300_1qcdh_1","border-slate-200":"_border-slate-200_1qcdh_1","bg-black":"_bg-black_1qcdh_1","bg-blue-200":"_bg-blue-200_1qcdh_1","bg-blue-600":"_bg-blue-600_1qcdh_1","bg-emerald-200":"_bg-emerald-200_1qcdh_1","bg-gray-100":"_bg-gray-100_1qcdh_1","bg-gray-200":"_bg-gray-200_1qcdh_1","bg-gray-400":"_bg-gray-400_1qcdh_1","bg-gray-500":"_bg-gray-500_1qcdh_1","bg-green-200":"_bg-green-200_1qcdh_1","bg-green-300":"_bg-green-300_1qcdh_1","bg-green-900":"_bg-green-900_1qcdh_1","bg-red-200":"_bg-red-200_1qcdh_1","bg-red-300":"_bg-red-300_1qcdh_1","bg-red-900":"_bg-red-900_1qcdh_1","bg-sky-300":"_bg-sky-300_1qcdh_1","bg-sky-800":"_bg-sky-800_1qcdh_1","bg-slate-100":"_bg-slate-100_1qcdh_1","bg-slate-500":"_bg-slate-500_1qcdh_1","bg-slate-800":"_bg-slate-800_1qcdh_1","bg-slate-900":"_bg-slate-900_1qcdh_1","bg-transparent":"_bg-transparent_1qcdh_1","bg-white":"_bg-white_1qcdh_1","bg-yellow-300":"_bg-yellow-300_1qcdh_1","!p-2":"_!p-2_1qcdh_1","p-0":"_p-0_1qcdh_1","p-1":"_p-1_1qcdh_1","p-2":"_p-2_1qcdh_1","p-3":"_p-3_1qcdh_1","p-4":"_p-4_1qcdh_1","!py-0":"_!py-0_1qcdh_1","px-1":"_px-1_1qcdh_1","px-12":"_px-12_1qcdh_1","px-2":"_px-2_1qcdh_1","px-2.5":"_px-2.5_1qcdh_1","px-4":"_px-4_1qcdh_1","px-6":"_px-6_1qcdh_1","px-8":"_px-8_1qcdh_1","py-1":"_py-1_1qcdh_1","py-14":"_py-14_1qcdh_1","py-2":"_py-2_1qcdh_1","py-3":"_py-3_1qcdh_1","py-4":"_py-4_1qcdh_1","py-5":"_py-5_1qcdh_1","py-8":"_py-8_1qcdh_1","pl-1":"_pl-1_1qcdh_1","pt-3":"_pt-3_1qcdh_1","text-left":"_text-left_1qcdh_1","text-center":"_text-center_1qcdh_1","text-[.7rem]":"_text-[.7rem]_1qcdh_1","text-[1rem]":"_text-[1rem]_1qcdh_1","text-base":"_text-base_1qcdh_1","text-sm":"_text-sm_1qcdh_1","text-xs":"_text-xs_1qcdh_1","font-bold":"_font-bold_1qcdh_1","font-medium":"_font-medium_1qcdh_1","font-semibold":"_font-semibold_1qcdh_1",uppercase:"_uppercase_1qcdh_1","leading-[1.2rem]":"_leading-[1.2rem]_1qcdh_1","!text-green-900":"_!text-green-900_1qcdh_1","!text-red-900":"_!text-red-900_1qcdh_1","!text-sky-900":"_!text-sky-900_1qcdh_1","!text-white":"_!text-white_1qcdh_1","!text-yellow-900":"_!text-yellow-900_1qcdh_1","text-blue-600":"_text-blue-600_1qcdh_1","text-blue-900":"_text-blue-900_1qcdh_1","text-gray-300":"_text-gray-300_1qcdh_1","text-gray-400":"_text-gray-400_1qcdh_1","text-gray-500":"_text-gray-500_1qcdh_1","text-gray-600":"_text-gray-600_1qcdh_1","text-gray-700":"_text-gray-700_1qcdh_1","text-green-700":"_text-green-700_1qcdh_1","text-red-400":"_text-red-400_1qcdh_1","text-red-500":"_text-red-500_1qcdh_1","text-red-800":"_text-red-800_1qcdh_1","text-red-900":"_text-red-900_1qcdh_1","text-slate-200":"_text-slate-200_1qcdh_1","text-slate-300":"_text-slate-300_1qcdh_1","text-slate-50":"_text-slate-50_1qcdh_1","text-slate-500":"_text-slate-500_1qcdh_1","text-white":"_text-white_1qcdh_1","text-yellow-600":"_text-yellow-600_1qcdh_1","text-zinc-500":"_text-zinc-500_1qcdh_1","text-zinc-800":"_text-zinc-800_1qcdh_1","line-through":"_line-through_1qcdh_1","opacity-0":"_opacity-0_1qcdh_1","opacity-20":"_opacity-20_1qcdh_1","opacity-50":"_opacity-50_1qcdh_1","opacity-70":"_opacity-70_1qcdh_1","opacity-80":"_opacity-80_1qcdh_1","shadow-none":"_shadow-none_1qcdh_1","outline-none":"_outline-none_1qcdh_1",outline:"_outline_1qcdh_1","outline-offset-0":"_outline-offset-0_1qcdh_1",filter:"_filter_1qcdh_1",transition:"_transition_1qcdh_1","transition-all":"_transition-all_1qcdh_1","duration-300":"_duration-300_1qcdh_1","danx-app":"_danx-app_1qcdh_4","q-tab":"_q-tab_1qcdh_4","q-table__card":"_q-table__card_1qcdh_7","q-checkbox__inner":"_q-checkbox__inner_1qcdh_11","q-toolbar":"_q-toolbar_1qcdh_14","q-notification__actions":"_q-notification__actions_1qcdh_19","q-date":"_q-date_1qcdh_22","q-date__view":"_q-date__view_1qcdh_25","q-field":"_q-field_1qcdh_28","q-field--auto-height":"_q-field--auto-height_1qcdh_28","q-field__control":"_q-field__control_1qcdh_28","q-field__native":"_q-field__native_1qcdh_31","q-field--labeled":"_q-field--labeled_1qcdh_35","q-field__control-container":"_q-field__control-container_1qcdh_35","q-textarea":"_q-textarea_1qcdh_38","q-field__marginal":"_q-field__marginal_1qcdh_41","q-field__input":"_q-field__input_1qcdh_41","q-field__label":"_q-field__label_1qcdh_41","q-btn":"_q-btn_1qcdh_48","q-item":"_q-item_1qcdh_56","q-tab-panels":"_q-tab-panels_1qcdh_60","q-panel":"_q-panel_1qcdh_64",scroll:"_scroll_1qcdh_67","q-tab-panel":"_q-tab-panel_1qcdh_60","dx-dialog":"_dx-dialog_1qcdh_77","q-card__section--vert":"_q-card__section--vert_1qcdh_77","q-banner":"_q-banner_1qcdh_81",app:"_app_1qcdh_1","main-layout":"_main-layout_1qcdh_1","is-disabled":"_is-disabled_1qcdh_98","disable-all-transitions":"_disable-all-transitions_1qcdh_103","v-enter-active":"_v-enter-active_1qcdh_107","v-leave-active":"_v-leave-active_1qcdh_108","v-enter-from":"_v-enter-from_1qcdh_112","v-leave-to":"_v-leave-to_1qcdh_113","dx-action-table":"_dx-action-table_1qcdh_117","dx-column-shrink":"_dx-column-shrink_1qcdh_117","slide-image":"_slide-image_1qcdh_121",carousel:"_carousel_1qcdh_135","q-carousel__navigation--bottom":"_q-carousel__navigation--bottom_1qcdh_135","hover:bg-blue-200":"_hover:bg-blue-200_1qcdh_1","hover:bg-gray-200":"_hover:bg-gray-200_1qcdh_1","hover:bg-green-100":"_hover:bg-green-100_1qcdh_1","hover:bg-red-100":"_hover:bg-red-100_1qcdh_1","hover:bg-red-200":"_hover:bg-red-200_1qcdh_1","hover:bg-slate-200":"_hover:bg-slate-200_1qcdh_1","hover:bg-slate-300":"_hover:bg-slate-300_1qcdh_1","hover:bg-slate-600":"_hover:bg-slate-600_1qcdh_1","hover:text-blue-500":"_hover:text-blue-500_1qcdh_1","hover:text-blue-600":"_hover:text-blue-600_1qcdh_1","hover:opacity-100":"_hover:opacity-100_1qcdh_1","hover:opacity-20":"_hover:opacity-20_1qcdh_1","hover:opacity-70":"_hover:opacity-70_1qcdh_1","hover:outline-4":"_hover:outline-4_1qcdh_1","focus:bg-blue-200":"_focus:bg-blue-200_1qcdh_1","focus:outline-4":"_focus:outline-4_1qcdh_1","focus:outline-blue-200":"_focus:outline-blue-200_1qcdh_1"},ft=(t,e)=>{const n=t.__vccOpts||t;for(const[r,o]of e)n[r]=o;return n},xp={class:"absolute top-0 left-0 w-full h-full"},Sp={key:0,class:"max-h-full w-full",controls:""},Cp=["src","type"],Ep=["alt","src"],Tp={key:2},Np=i.createElementVNode("h3",{class:"text-center mb-4"}," No Preview Available ",-1),Bp=["href"],Ip={class:"text-base text-center py-5 bg-slate-800 opacity-70 text-slate-300 absolute-top hover:opacity-20 transition-all"},Wa=ft({__name:"FullscreenCarouselDialog",props:{files:{type:Array,default:()=>[]},defaultSlide:{type:String,default:""}},emits:["close"],setup(t){const e=t,n=i.ref(null),r=i.ref(e.defaultSlide);function o(c){var u;return(u=c.mime)==null?void 0:u.startsWith("video")}function s(c){var u;return(u=c.mime)==null?void 0:u.startsWith("image")}function l(c){var u,d;return((u=c.optimized)==null?void 0:u.url)||(s(c)?c.blobUrl||c.url:(d=c.thumb)==null?void 0:d.url)}function a(c){return c.thumb?c.thumb.url:o(c)?`data:image/svg+xml;base64,${btoa('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M0 0h24v24H0z" fill="none"/><path d="M8 5v14l11-7z"/></svg>')}`:l(c)}return(c,u)=>{const d=i.resolveComponent("QCarouselSlide"),f=i.resolveComponent("QCarousel"),h=i.resolveComponent("QDialog");return i.openBlock(),i.createBlock(h,{"model-value":!0,maximized:"","onUpdate:modelValue":u[2]||(u[2]=_=>c.$emit("close")),onKeyup:[u[3]||(u[3]=i.withKeys(_=>n.value.previous(),["left"])),u[4]||(u[4]=i.withKeys(_=>n.value.next(),["right"]))]},{default:i.withCtx(()=>[i.createElementVNode("div",xp,[i.createVNode(f,{ref_key:"carousel",ref:n,modelValue:r.value,"onUpdate:modelValue":u[0]||(u[0]=_=>r.value=_),height:"100%",swipeable:"",animated:"",thumbnails:t.files.length>1,infinite:"",class:i.normalizeClass(c.cls.carousel)},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.files,_=>(i.openBlock(),i.createBlock(d,{key:"file-"+_.id,name:_.id,"img-src":a(_),class:"bg-black"},{default:i.withCtx(()=>[i.createElementVNode("div",{class:i.normalizeClass(c.cls["slide-image"])},[o(_)?(i.openBlock(),i.createElementBlock("video",Sp,[i.createElementVNode("source",{src:l(_)+"#t=0.1",type:_.mime},null,8,Cp)])):l(_)?(i.openBlock(),i.createElementBlock("img",{key:1,alt:_.filename,src:l(_)},null,8,Ep)):(i.openBlock(),i.createElementBlock("div",Tp,[Np,i.createElementVNode("a",{href:_.url,target:"_blank",class:"text-base"},i.toDisplayString(_.url),9,Bp)]))],2),i.createElementVNode("div",Ip,i.toDisplayString(_.filename||_.name),1)]),_:2},1032,["name","img-src"]))),128))]),_:1},8,["modelValue","thumbnails","class"]),i.createElementVNode("a",{class:"absolute top-0 right-0 text-white flex items-center justify-center w-16 h-16 hover:bg-slate-600 transition-all",onClick:u[1]||(u[1]=_=>c.$emit("close"))},[i.createVNode(i.unref(yo),{class:"w-8 h-8"})])])]),_:1})}}},[["__cssModules",{cls:kp}]]),$p={key:0,class:"p-4 m-4 absolute-top-right top right cursor-pointer"},Fp={__name:"FullScreenDialog",props:{modelValue:Boolean,center:Boolean,blue:Boolean,closeable:Boolean},emits:["update:model-value","close"],setup(t,{emit:e}){const n=e,r=t;let o=i.computed(()=>({"bg-blue-600 text-white":r.blue,"bg-white text-gray-400":!r.blue,"items-center":r.center}));function s(){n("update:model-value",!1),n("close")}return(l,a)=>{const c=i.resolveComponent("QDialog"),u=i.resolveDirective("close-popup");return i.openBlock(),i.createBlock(c,{"model-value":t.modelValue,maximized:"","transition-show":"slide-up","transition-hide":"slide-down","onUpdate:modelValue":s},{default:i.withCtx(()=>[i.createElementVNode("div",{class:i.normalizeClass(["flex justify-center min-w-xs",i.unref(o)])},[t.closeable?i.withDirectives((i.openBlock(),i.createElementBlock("div",$p,[i.createVNode(i.unref(yo),{class:"w-5 h-5"})])),[[u]]):i.createCommentVNode("",!0),i.renderSlot(l.$slots,"default")],2)]),_:3},8,["model-value"])}}},Ap={class:"flex-grow"},Ya={__name:"InfoDialog",props:{...Hi.props,doneClass:{type:[String,Object],default:""},doneText:{type:String,default:"Done"}},emits:["update:model-value","close"],setup(t,{emit:e}){const n=e;function r(){n("update:model-value",!1),n("close")}return(o,s)=>{const l=i.resolveComponent("QBtn");return i.openBlock(),i.createBlock(i.unref(Hi),i.mergeProps({class:"dx-info-dialog"},o.$props,{onClose:r}),i.createSlots({actions:i.withCtx(()=>[i.createElementVNode("div",Ap,[i.createVNode(l,{label:t.doneText,class:i.normalizeClass(["dx-dialog-button dx-dialog-button-done",t.doneClass]),onClick:r},{default:i.withCtx(()=>[i.renderSlot(o.$slots,"done-text")]),_:3},8,["label","class"])]),i.renderSlot(o.$slots,"actions")]),_:2},[o.$slots.title?{name:"title",fn:i.withCtx(()=>[i.renderSlot(o.$slots,"title")]),key:"0"}:void 0,o.$slots.subtitle?{name:"subtitle",fn:i.withCtx(()=>[i.renderSlot(o.$slots,"subtitle")]),key:"1"}:void 0]),1040)}}},Op={__name:"InputDialog",props:{...Ct.props,title:{type:String,default:"Enter Value"},input:{type:[Number,String],default:""}},emits:["confirm","close","update:input"],setup(t){const e=t,n=i.ref(e.input);return(r,o)=>{const s=i.resolveComponent("QInput");return i.openBlock(),i.createBlock(i.unref(Ct),i.mergeProps(r.$props,{onConfirm:o[2]||(o[2]=l=>r.$emit("confirm",n.value)),onClose:o[3]||(o[3]=l=>r.$emit("close",l))}),{default:i.withCtx(()=>[i.renderSlot(r.$slots,"default",{},()=>[i.createVNode(s,{modelValue:n.value,"onUpdate:modelValue":o[0]||(o[0]=l=>n.value=l),type:"number",class:"w-full",onInput:o[1]||(o[1]=l=>r.$emit("update:input",l))},null,8,["modelValue"])])]),_:3},16)}}},Dp={class:"dx-field-label"},Pp={class:"dx-field-label-text"},Mp={class:"dx-field-label-label"},Lp={key:0,class:"dx-field-label-name"},vp={key:0,class:"dx-field-required"},ht=i.defineComponent({__name:"FieldLabel",props:{label:{},name:{},required:{type:Boolean},requiredLabel:{}},setup(t){return(e,n)=>(i.openBlock(),i.createElementBlock("div",Dp,[i.renderSlot(e.$slots,"default",{},()=>[i.createElementVNode("div",Pp,[i.createElementVNode("div",Mp,i.toDisplayString(e.label),1),e.name?(i.openBlock(),i.createElementBlock("div",Lp," ("+i.toDisplayString(e.name)+") ",1)):i.createCommentVNode("",!0)])]),e.required?(i.openBlock(),i.createElementBlock("span",vp,i.toDisplayString(e.requiredLabel||"*"),1)):i.createCommentVNode("",!0)]))}}),Gi=i.defineComponent({__name:"BooleanField",props:{label:{type:String,default:null},name:{type:String,default:null},required:Boolean,modelValue:{type:Boolean,default:void 0},labelClass:{type:String,default:"text-sm"},showName:Boolean,toggleIndeterminate:Boolean,disable:Boolean,readonly:Boolean},emits:["update:model-value"],setup(t){return(e,n)=>{const r=i.resolveComponent("QToggle");return i.openBlock(),i.createBlock(r,{"data-testid":"boolean-field-"+(t.name||t.label),"model-value":t.modelValue||(t.toggleIndeterminate?t.modelValue:!1),disable:t.disable||t.readonly,"toggle-indeterminate":t.toggleIndeterminate,"indeterminate-value":void 0,"onUpdate:modelValue":n[0]||(n[0]=o=>e.$emit("update:model-value",o))},{default:i.withCtx(()=>[i.createVNode(i.unref(ht),{label:t.label||t.name,name:t.name,"show-name":t.showName,class:i.normalizeClass(t.labelClass)},null,8,["label","name","show-name","class"])]),_:1},8,["data-testid","model-value","disable","toggle-indeterminate"])}}}),Vp={for:"first_name",class:"form-label"},qp={class:"mt-1"},Zi={__name:"LabeledInput",props:{type:{type:String,default:"text"},name:{type:String,required:!0},label:{type:String,default:null},placeholder:{type:String,default:null},modelValue:{type:[String,Number],required:!0},error:{type:String,default:null},required:Boolean,disabled:Boolean,rules:{type:Array,default:null}},emits:["update:model-value"],setup(t){return(e,n)=>{const r=i.resolveComponent("QInput");return i.openBlock(),i.createElementBlock("div",null,[i.createElementVNode("label",Vp,[i.renderSlot(e.$slots,"label",{},()=>[i.createTextVNode(i.toDisplayString(t.label),1)])]),i.createElementVNode("div",qp,[i.createVNode(r,{"model-value":t.modelValue,"error-message":t.error,error:!!t.error,"no-error-icon":"",outlined:"",dense:"",disable:t.disabled,readonly:t.disabled,type:t.type,name:t.name,placeholder:t.placeholder||t.label,required:t.required,rules:t.rules,"lazy-rules":!!t.rules,class:"w-full","onUpdate:modelValue":n[0]||(n[0]=o=>e.$emit("update:model-value",o))},null,8,["model-value","error-message","error","disable","readonly","type","name","placeholder","required","rules","lazy-rules"])])])}}},Rp={__name:"ConfirmPasswordField",props:{name:{type:String,default:"password_confirmation"},label:{type:String,default:"Confirm Password"},placeholder:{type:String,default:"Confirm Password"},modelValue:{type:[String,Number],required:!0},error:{type:String,default:null},password:{type:String,default:""},disabled:Boolean},emits:["update:model-value"],setup(t){const e=t,n=[r=>r===e.password||"The password and confirmation do not match"];return(r,o)=>(i.openBlock(),i.createBlock(i.unref(Zi),i.mergeProps({type:"password"},e,{name:t.name,"model-value":t.modelValue,rules:n,"onUpdate:modelValue":o[0]||(o[0]=s=>r.$emit("update:model-value",s))}),null,16,["name","model-value"]))}},Up={key:0,class:"font-bold text-xs mb-2"},jp={class:"flex items-center cursor-pointer"},zp={class:"flex-grow font-bold ml-3 hover:opacity-70"},Hp={key:0},Wi=i.defineComponent({__name:"DateField",props:{modelValue:{},label:{},clearable:{type:Boolean}},emits:["update:model-value"],setup(t,{emit:e}){const n=e,r=t,o=i.computed(()=>r.modelValue?kt(Ft(r.modelValue||"0000-00-00")):"- -"),s=i.ref(Ft(r.modelValue));i.watch(()=>r.modelValue,a=>s.value=a);function l(){n("update:model-value",s.value)}return(a,c)=>{const u=i.resolveComponent("QBtn"),d=i.resolveComponent("QDate"),f=i.resolveComponent("QPopupProxy");return i.openBlock(),i.createElementBlock("div",null,[a.label?(i.openBlock(),i.createElementBlock("div",Up,i.toDisplayString(a.label),1)):i.createCommentVNode("",!0),i.createElementVNode("div",jp,[i.createVNode(i.unref(za),{class:"w-5"}),i.createElementVNode("div",zp,[s.value?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createTextVNode(i.toDisplayString(o.value),1)],64)):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.createTextVNode(" - - ")],64))]),a.clearable&&s.value?(i.openBlock(),i.createElementBlock("div",Hp,[i.createVNode(u,{icon:"close",size:"sm",round:"",flat:"",onClick:c[0]||(c[0]=i.withModifiers(h=>(s.value=null)||l(),["stop","prevent"]))})])):i.createCommentVNode("",!0)]),i.createVNode(f,null,{default:i.withCtx(()=>[i.createVNode(d,{modelValue:s.value,"onUpdate:modelValue":[c[1]||(c[1]=h=>s.value=h),l]},null,8,["modelValue"])]),_:1})])}}}),Gp={class:"mb-2"},Zp={class:"flex items-center cursor-pointer"},Wp={class:"flex-grow font-bold ml-3 hover:opacity-70"},Yp={key:0},Yi=i.defineComponent({__name:"DateRangeField",props:{modelValue:{},label:{},inline:{type:Boolean},clearable:{type:Boolean},withTime:{type:Boolean}},emits:["update:model-value"],setup(t,{emit:e}){const n=e,r=t,o=i.computed(()=>a.value?r.withTime?{from:kt(bi(a.value.from||"0000-00-00")),to:kt(bi(a.value.to||"9999-12-31"))}:{from:kt(yi(a.value.from||"0000-00-00")),to:kt(yi(a.value.to||"9999-12-31"))}:{from:null,to:null}),s=i.ref(l(r.modelValue));i.watch(()=>r.modelValue,u=>s.value=l(u));function l(u){return u!=null&&u.from&&(u!=null&&u.to)?kt(u.from)===kt(u.to)?u.from:u:null}const a=i.computed(()=>{let u;return typeof s.value=="string"?u={from:s.value,to:s.value}:s.value&&(u={from:s.value.from,to:s.value.to}),u!=null&&u.from&&(u!=null&&u.to)&&r.withTime&&!u.from.includes("00:00:00")&&(u.from+=" 00:00:00",u.to+=" 23:59:59"),u});function c(){n("update:model-value",a.value)}return(u,d)=>{const f=i.resolveComponent("QDate"),h=i.resolveComponent("QBtn"),_=i.resolveComponent("QPopupProxy");return i.openBlock(),i.createElementBlock("div",null,[i.createElementVNode("div",Gp,[i.createVNode(i.unref(ht),{label:u.label},null,8,["label"])]),u.inline?(i.openBlock(),i.createBlock(f,{key:0,modelValue:s.value,"onUpdate:modelValue":[d[0]||(d[0]=p=>s.value=p),c],range:"",class:"reactive"},null,8,["modelValue"])):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.createElementVNode("div",Zp,[i.createVNode(i.unref(za),{class:"w-5 py-2"}),i.createElementVNode("div",Wp,[a.value?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createTextVNode(i.toDisplayString(o.value.from)+" - "+i.toDisplayString(o.value.to),1)],64)):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.createTextVNode(" - - ")],64))]),u.clearable&&s.value?(i.openBlock(),i.createElementBlock("div",Yp,[i.createVNode(h,{icon:"close",size:"sm",round:"",flat:"",onClick:d[1]||(d[1]=i.withModifiers(p=>(s.value=null)||c(),["stop","prevent"]))})])):i.createCommentVNode("",!0)]),i.createVNode(_,null,{default:i.withCtx(()=>[i.createVNode(f,{modelValue:s.value,"onUpdate:modelValue":[d[2]||(d[2]=p=>s.value=p),c],range:""},null,8,["modelValue"])]),_:1})],64))])}}}),Qp={class:"flex items-center justify-center"},Kp={key:0,class:"flex-grow"},Qi={__name:"DateTimePicker",props:{modelValue:{type:String,default:null},mask:{type:String,default:"YYYY-MM-DD HH:mm"},color:{type:String,default:"blue-600"},nullable:Boolean},emits:["update:modelValue","save","cancel","clear"],setup(t,{emit:e}){const n=e,r=t,o=i.computed({get:()=>Wl(Zl(r.modelValue)),set(s){const l=s?Wl(Bh(s)):null;(l||r.nullable)&&n("update:modelValue",l)}});return(s,l)=>{const a=i.resolveComponent("QBtn"),c=i.resolveComponent("QDate"),u=i.resolveComponent("QTime"),d=i.resolveComponent("QPopupProxy");return i.openBlock(),i.createBlock(d,{"model-value":!0,cover:"","transition-show":"scale","transition-hide":"scale",class:"bg-transparent shadow-none flex items-stretch"},{default:i.withCtx(()=>[i.createVNode(c,{modelValue:o.value,"onUpdate:modelValue":l[3]||(l[3]=f=>o.value=f),mask:t.mask,color:t.color},{default:i.withCtx(()=>[i.createElementVNode("div",Qp,[t.nullable?(i.openBlock(),i.createElementBlock("div",Kp,[i.createVNode(a,{label:"Clear",color:"blue-600",flat:"",onClick:l[0]||(l[0]=f=>o.value=null)})])):i.createCommentVNode("",!0),i.createElementVNode("div",null,[i.createVNode(a,{label:"Cancel",color:"blue-600",flat:"",onClick:l[1]||(l[1]=f=>s.$emit("cancel"))}),i.createVNode(a,{label:"Set",color:"blue-600",flat:"",onClick:l[2]||(l[2]=f=>s.$emit("save"))})])])]),_:1},8,["modelValue","mask","color"]),i.createVNode(u,{modelValue:o.value,"onUpdate:modelValue":l[4]||(l[4]=f=>o.value=f),mask:t.mask,color:t.color,class:"ml-3"},null,8,["modelValue","mask","color"])]),_:1})}}},Xp={__name:"DateTimeField",props:{modelValue:{type:String,required:!0},color:{type:String,default:"blue-600"}},emits:["update:model-value"],setup(t,{emit:e}){const n=e,r=t,o=i.ref(!1),s=i.ref(r.modelValue);function l(){n("update:model-value",s.value),o.value=!1}return(a,c)=>{const u=i.resolveComponent("QPopupProxy"),d=i.resolveComponent("QIcon"),f=i.resolveComponent("QInput");return i.openBlock(),i.createElementBlock("div",null,[i.createVNode(f,{"model-value":i.unref(gr)(t.modelValue),color:t.color,class:"bg-white rounded overflow-hidden px-2 w-48",dense:"",readonly:"",onClick:c[3]||(c[3]=h=>o.value=!0)},{append:i.withCtx(()=>[i.createVNode(d,{name:"event",class:"cursor-pointer"},{default:i.withCtx(()=>[i.createVNode(u,{modelValue:o.value,"onUpdate:modelValue":c[2]||(c[2]=h=>o.value=h)},{default:i.withCtx(()=>[i.createVNode(i.unref(Qi),{modelValue:s.value,"onUpdate:modelValue":c[0]||(c[0]=h=>s.value=h),onCancel:c[1]||(c[1]=h=>o.value=!1),onSave:l},null,8,["modelValue"])]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["model-value","color"])])}}},Jp={class:"inline-block relative"},e0=i.defineComponent({__name:"EditableDiv",props:{modelValue:{},color:{default:"blue-200"},debounceDelay:{default:1e3},placeholder:{default:"Enter Text..."}},emits:["update:model-value","change"],setup(t,{emit:e}){const n=e,r=t,o=i.ref(r.modelValue),s=i.ref(null),l=i.ref(0),a=i.ref(0);i.onMounted(()=>{s.value&&(l.value=s.value.offsetWidth+"px",a.value=s.value.offsetHeight+"px")});const c=rn(()=>{n("update:model-value",o.value),n("change",o.value)},r.debounceDelay);function u(f){o.value=f.target.innerText,c()}const d=i.computed(()=>[`hover:bg-${r.color} focus:bg-${r.color}`,`hover:text-${r.textColor} focus:text-${r.textColor}`,`hover:outline-${r.color} focus:outline-${r.color}`]);return(f,h)=>(i.openBlock(),i.createElementBlock("div",Jp,[i.createElementVNode("div",{contenteditable:"",class:i.normalizeClass(["relative inline-block transition duration-300 outline-none outline-offset-0 border-none focus:outline-4 hover:outline-4 rounded-sm z-10",d.value]),style:i.normalizeStyle({minWidth:l.value,minHeight:a.value}),onInput:u},i.toDisplayString(o.value),39),!o.value&&f.placeholder?(i.openBlock(),i.createElementBlock("div",{key:0,ref_key:"placeholderDiv",ref:s,class:"text-gray-600 absolute-top-left whitespace-nowrap z-1"},i.toDisplayString(f.placeholder),513)):i.createCommentVNode("",!0)]))}}),t0=["contenteditable"],n0={key:0},r0=ft(i.defineComponent({__name:"EditOnClickTextField",props:i.mergeModels({class:{default:"hover:bg-slate-300"},editingClass:{default:"bg-slate-500"},inputClass:{default:"whitespace-normal"},readonly:{type:Boolean}},{modelValue:{type:String},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const e=i.ref(null),n=i.useModel(t,"modelValue"),r=i.ref(n.value),o=t,s=i.ref(!1);function l(){o.readonly||(s.value=!0,r.value=n.value,i.nextTick(()=>{var c;(c=e.value)==null||c.focus()}))}function a(c){r.value=c,n.value=c}return(c,u)=>{const d=i.resolveComponent("QBtn");return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["danx-edit-on-click-text-field flex flex-nowrap items-center rounded overflow-ellipsis",{[o.class]:!0,"is-readonly":c.readonly,"cursor-pointer":!s.value&&!c.readonly}]),onClick:l,onFocusout:u[2]||(u[2]=f=>s.value=!1)},[i.createElementVNode("div",{ref_key:"editableBox",ref:e,contenteditable:!c.readonly&&s.value,class:i.normalizeClass(["flex-grow p-2 rounded outline-none border-none",{[c.editingClass]:s.value,[c.inputClass]:!0}]),onInput:u[0]||(u[0]=f=>a(f.target.innerText))},i.toDisplayString(s.value?r.value:n.value),43,t0),c.readonly?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("div",n0,[s.value?(i.openBlock(),i.createBlock(d,{key:0,onClick:u[1]||(u[1]=i.withModifiers(f=>s.value=!1,["stop"]))},{default:i.withCtx(()=>[i.createVNode(i.unref(q1),{class:"w-4"})]),_:1})):(i.openBlock(),i.createBlock(d,{key:1,class:"edit-icon"},{default:i.withCtx(()=>[i.createVNode(i.unref(Ba),{class:"w-4"})]),_:1}))]))],34)}}}),[["__scopeId","data-v-4d689a6d"]]),o0=["accept","capture"],i0={__name:"FileUploadButton",props:{...J.QBtn.props,text:{type:String,default:"Add File"},locationWaitMessage:{type:String,default:"Waiting for location..."},cameraOnly:Boolean,geolocation:Boolean},emits:["uploading","file-progress","file-complete","complete"],setup(t,{expose:e,emit:n}){e({upload:l});const r=n,o=t,s=i.ref(null);function l(){s.value.click()}async function a({target:{files:c}}){r("uploading",c);let u=new mo(c).prepare().onProgress(({file:d,progress:f})=>{d.progress=f,r("file-progress",d)}).onComplete(({file:d,uploadedFile:f})=>{r("file-complete",{file:d,uploadedFile:f})}).onAllComplete(()=>{r("complete",u.files)});o.geolocation&&await u.resolveLocation(o.locationWaitMessage),u.upload()}return(c,u)=>(i.openBlock(),i.createBlock(i.unref(J.QBtn),i.mergeProps(c.$props,{onClick:u[0]||(u[0]=d=>c.$refs.fileUpload.click())}),{default:i.withCtx(()=>[i.renderSlot(c.$slots,"default",{},()=>[i.createVNode(i.unref(hp),{class:"w-5 mr-2"}),i.createTextVNode(" "+i.toDisplayString(t.text),1)]),i.createElementVNode("input",{ref_key:"fileUpload",ref:s,"data-testid":"file-upload",type:"file",accept:t.geolocation&&t.cameraOnly?"image/*;capture=camera":void 0,capture:t.geolocation&&t.cameraOnly?"environment":void 0,class:"hidden",multiple:"",onChange:a},null,40,o0)]),_:3},16))}},s0={class:"inline-block"},l0={class:"cursor-pointer py-2 hover:bg-blue-200 flex items-center justify-end"},a0={__name:"InlineDateTimeField",props:{modelValue:{type:String,default:null},nullable:Boolean},emits:["close","save","update:model-value"],setup(t,{emit:e}){const n=e;function r(o){n("update:model-value",o.value),n("save",o.value),o.set()}return(o,s)=>{const l=i.resolveComponent("QPopupEdit");return i.openBlock(),i.createElementBlock("div",s0,[i.createElementVNode("div",l0,[i.createTextVNode(i.toDisplayString(i.unref(gr)(t.modelValue,{empty:"Never"}))+" ",1),i.createVNode(i.unref($a),{class:"w-4 font-bold ml-2 text-gray-400"}),i.createVNode(l,{"model-value":t.modelValue,"touch-position":"",offset:[0,20],class:"bg-blue-600 text-white !min-w-0"},{default:i.withCtx(a=>[i.createVNode(i.unref(Qi),{modelValue:a.value,"onUpdate:modelValue":c=>a.value=c,nullable:t.nullable,onSave:c=>r(a),onCancel:a.cancel},null,8,["modelValue","onUpdate:modelValue","nullable","onSave","onCancel"])]),_:1},8,["model-value"])])])}}},Qa=i.defineComponent({__name:"MaxLengthCounter",props:{length:{},maxLength:{}},setup(t){return(e,n)=>e.maxLength?(i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass(["danx-input-chars",{"danx-input-chars--error":e.length>e.maxLength}])},i.toDisplayString(i.unref(At)(e.length))+" / "+i.toDisplayString(i.unref(At)(e.maxLength))+" characters ",3)):i.createCommentVNode("",!0)}}),c0={class:"dx-text-field"},u0={key:1,class:"dx-text-field-readonly-value"},on=i.defineComponent({__name:"TextField",props:{modelValue:{default:""},type:{default:"text"},label:{default:""},required:{type:Boolean},requiredLabel:{},prependLabel:{type:Boolean},placeholder:{default:null},labelClass:{default:""},inputClass:{default:""},allowOverMax:{type:Boolean},maxLength:{default:null},rows:{default:3},autogrow:{type:Boolean},noLabel:{type:Boolean},showName:{type:Boolean},disabled:{type:Boolean},readonly:{type:Boolean},debounce:{default:0}},emits:["update:model-value","submit"],setup(t){return(e,n)=>{const r=i.resolveComponent("QInput");return i.openBlock(),i.createElementBlock("div",c0,[e.prependLabel?i.createCommentVNode("",!0):(i.openBlock(),i.createBlock(i.unref(ht),{key:0,label:e.label,required:e.required,"required-label":e.requiredLabel,class:i.normalizeClass(e.labelClass)},null,8,["label","required","required-label","class"])),e.readonly?(i.openBlock(),i.createElementBlock("div",u0,i.toDisplayString(e.modelValue),1)):(i.openBlock(),i.createElementBlock(i.Fragment,{key:2},[i.createVNode(r,{placeholder:e.placeholder||(e.placeholder===""?"":`Enter ${e.label}`),outlined:"",dense:"",readonly:e.readonly,autogrow:e.autogrow,disable:e.disabled,"label-slot":!e.noLabel,"input-class":e.inputClass,rows:e.rows,class:i.normalizeClass({"dx-input-prepend-label":e.prependLabel}),"stack-label":"",type:e.type,"model-value":e.modelValue,maxlength:e.allowOverMax?void 0:e.maxLength,debounce:e.debounce,onKeydown:n[0]||(n[0]=i.withKeys(o=>e.$emit("submit"),["enter"])),"onUpdate:modelValue":n[1]||(n[1]=o=>e.$emit("update:model-value",o))},i.createSlots({append:i.withCtx(()=>[i.renderSlot(e.$slots,"append")]),_:2},[e.prependLabel||e.$slots.prepend?{name:"prepend",fn:i.withCtx(()=>[i.createVNode(i.unref(ht),{class:i.normalizeClass(["dx-prepended-label",e.labelClass]),label:e.label,required:e.required,"required-label":e.requiredLabel},null,8,["label","required","required-label","class"]),i.renderSlot(e.$slots,"prepend")]),key:"0"}:void 0]),1032,["placeholder","readonly","autogrow","disable","label-slot","input-class","rows","class","type","model-value","maxlength","debounce"]),i.createVNode(i.unref(Qa),{length:(e.modelValue+"").length||0,"max-length":e.maxLength},null,8,["length","max-length"])],64))])}}}),Er=i.defineComponent({__name:"NumberField",props:{precision:{default:2},delay:{default:1e3},currency:{type:Boolean},min:{default:void 0},max:{default:void 0},modelValue:{default:""},type:{},label:{default:void 0},required:{type:Boolean},requiredLabel:{},prependLabel:{type:Boolean},placeholder:{},labelClass:{},inputClass:{},allowOverMax:{type:Boolean},maxLength:{},rows:{},autogrow:{type:Boolean},noLabel:{type:Boolean},showName:{type:Boolean},disabled:{type:Boolean},readonly:{type:Boolean},debounce:{}},emits:["update:model-value","update"],setup(t,{emit:e}){const n=e,r=t,o=i.ref(s(r.modelValue));i.watch(()=>r.modelValue,()=>o.value=s(r.modelValue));function s(c){var f;if(!c&&c!==0&&c!=="0"||r.type==="number")return c;const u=Math.min(r.precision,((f=(""+c).split(".")[1])==null?void 0:f.length)||0);let d={minimumFractionDigits:u};return r.currency&&(d={style:"currency",currency:"USD",minimumFractionDigits:u}),At(c,d)}const l=rn(c=>n("update",c),r.delay);function a(c){let u;if(c.match(/[^\d.,$]/)){const d=o.value;return o.value+=" ",i.nextTick(()=>o.value=d)}c!==""&&(c=c.replace(/[^\d.]/g,""),u=+c,r.min&&(u=Math.max(u,r.min)),r.max&&(u=Math.min(u,r.max)),o.value=s(u)),n("update:model-value",u),l(u)}return(c,u)=>(i.openBlock(),i.createBlock(i.unref(on),i.mergeProps({class:"dx-number-field"},c.$props,{"model-value":o.value,"onUpdate:modelValue":a}),null,16,["model-value"]))}}),Ka=i.defineComponent({__name:"IntegerField",props:{precision:{},delay:{default:1e3},currency:{type:Boolean},min:{default:void 0},max:{default:void 0},modelValue:{default:""},type:{},label:{default:void 0},required:{type:Boolean},requiredLabel:{},prependLabel:{type:Boolean},placeholder:{},labelClass:{},inputClass:{},allowOverMax:{type:Boolean},maxLength:{},rows:{},autogrow:{type:Boolean},noLabel:{type:Boolean},showName:{type:Boolean},disabled:{type:Boolean},readonly:{type:Boolean},debounce:{}},emits:["update:model-value"],setup(t){return(e,n)=>(i.openBlock(),i.createBlock(i.unref(Er),i.mergeProps(e.$props,{precision:0,"model-value":e.modelValue,"onUpdate:modelValue":n[0]||(n[0]=r=>e.$emit("update:model-value",r))}),null,16,["model-value"]))}}),d0={class:"text-xs font-bold"},f0=["href"],h0=["href"],_0=i.defineComponent({__name:"LabelValueBlock",props:{label:{},value:{type:[String,Number,Boolean],default:""},url:{default:""},dense:{type:Boolean},nowrap:{type:Boolean}},setup(t){const e=t,n=i.computed(()=>({"mt-2":!e.dense,"mt-1":e.dense,"text-no-wrap":e.nowrap})),r=i.computed(()=>typeof e.value=="string"&&e.value.length>30),o=i.computed(()=>{switch(typeof e.value){case"boolean":return Fh(e.value);case"number":return At(e.value);default:return e.value||"-"}});return(s,l)=>(i.openBlock(),i.createElementBlock("div",null,[i.createElementVNode("div",d0,[i.renderSlot(s.$slots,"label",{},()=>[i.createTextVNode(i.toDisplayString(s.label),1)])]),i.createElementVNode("div",{class:i.normalizeClass(n.value)},[s.url?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[r.value?(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.renderSlot(s.$slots,"default",{},()=>[i.createTextVNode(i.toDisplayString(o.value),1)]),i.createElementVNode("a",{target:"_blank",href:s.url,class:"inline-block ml-2"},[i.createVNode(i.unref(nm),{class:"w-4"})],8,h0)],64)):(i.openBlock(),i.createElementBlock("a",{key:0,target:"_blank",href:s.url},[i.renderSlot(s.$slots,"default",{},()=>[i.createTextVNode(i.toDisplayString(o.value),1)])],8,f0))],64)):i.renderSlot(s.$slots,"default",{key:1},()=>[i.createTextVNode(i.toDisplayString(o.value),1)])],2)]))}}),m0={class:"flex items-stretch justify-start"},p0={key:0,class:"dx-add-remove-files w-32 h-32 m-2 rounded-2xl flex flex-col flex-nowrap items-center overflow-hidden cursor-pointer"},g0=i.createElementVNode("div",{class:"mt-1 text-center"}," Add ",-1),y0={key:1,class:"p-1"},Xa=i.defineComponent({__name:"MultiFileField",props:{modelValue:{},field:{},label:{},showName:{type:Boolean},disable:{type:Boolean},readonly:{type:Boolean}},emits:["update:model-value"],setup(t,{emit:e}){const n=e,r=t,{onComplete:o,onDrop:s,onFilesSelected:l,uploadedFiles:a,clearUploadedFiles:c,onRemove:u}=w1();return i.onMounted(()=>{r.modelValue&&(a.value=r.modelValue)}),o(()=>n("update:model-value",a.value)),(d,f)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["max-w-full relative overflow-auto",{"p-2":!d.readonly}]),onDragover:f[3]||(f[3]=i.withModifiers(()=>{},["prevent"])),onDrop:f[4]||(f[4]=i.withModifiers((...h)=>i.unref(s)&&i.unref(s)(...h),["prevent"]))},[i.createVNode(i.unref(ht),{field:d.field,label:d.label,"show-name":d.showName},null,8,["field","label","show-name"]),!d.disable&&!d.readonly?(i.openBlock(),i.createElementBlock("input",{key:0,ref:"file",class:"hidden",type:"file",multiple:"",onChange:f[0]||(f[0]=(...h)=>i.unref(l)&&i.unref(l)(...h))},null,544)):i.createCommentVNode("",!0),i.createElementVNode("div",m0,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(a),h=>(i.openBlock(),i.createBlock(i.unref(Tr),{key:"file-upload-"+h.id,class:"w-32 h-32 m-2 cursor-pointer bg-gray-200",file:h,"related-files":h.transcodes||i.unref(a),downloadable:"",removable:!d.readonly&&!d.disable,onRemove:_=>i.unref(u)(h)},null,8,["file","related-files","removable","onRemove"]))),128)),!d.disable&&!d.readonly?(i.openBlock(),i.createElementBlock("div",p0,[i.createElementVNode("div",{class:"dx-add-file flex-grow p-1 pt-3 flex justify-center items-center bg-green-200 text-green-700 w-full hover:bg-green-100",onClick:f[1]||(f[1]=h=>d.$refs.file.click())},[i.createElementVNode("div",null,[i.createVNode(i.unref(zi),{class:"w-10 m-auto"}),g0])]),i.unref(a).length>0?(i.openBlock(),i.createElementBlock("div",{key:0,class:"dx-remove-file flex items-center flex-nowrap p-2 bg-red-200 text-red-800 hover:bg-red-100 w-full justify-center text-xs",onClick:f[2]||(f[2]=(...h)=>i.unref(c)&&i.unref(c)(...h))},[i.createVNode(i.unref(go),{class:"mr-2 w-3"}),i.createTextVNode(" Remove All ")])):i.createCommentVNode("",!0)])):i.createCommentVNode("",!0),d.readonly&&i.unref(a).length===0?(i.openBlock(),i.createElementBlock("div",y0," -- ")):i.createCommentVNode("",!0)])],34))}}),Mn=i.defineComponent({__name:"SelectField",props:{modelValue:{default:void 0},placeholder:{default:""},selectionLabel:{type:[String,Function],default:null},chipLimit:{default:3},inputClass:{default:""},selectionClass:{default:""},options:{default:()=>[]},filterable:{type:Boolean},filterFn:{type:Function,default:null},selectByObject:{type:Boolean},optionLabel:{type:[String,Function],default:"label"},name:{},virtualScrollHorizontal:{type:Boolean},virtualScrollSliceSize:{},virtualScrollSliceRatioBefore:{},virtualScrollSliceRatioAfter:{},virtualScrollItemSize:{},virtualScrollStickySizeStart:{},virtualScrollStickySizeEnd:{},tableColspan:{},error:{type:[Boolean,null]},errorMessage:{},noErrorIcon:{type:Boolean},rules:{},reactiveRules:{type:Boolean},lazyRules:{type:[Boolean,String]},label:{},stackLabel:{type:Boolean},hint:{},hideHint:{type:Boolean},prefix:{},suffix:{},labelColor:{},color:{},bgColor:{},dark:{type:[Boolean,null]},loading:{type:Boolean},clearable:{type:Boolean},clearIcon:{},filled:{type:Boolean},outlined:{type:Boolean},borderless:{type:Boolean},standout:{type:[Boolean,String]},labelSlot:{type:Boolean},bottomSlots:{type:Boolean},hideBottomSpace:{type:Boolean},counter:{type:Boolean},rounded:{type:Boolean},square:{type:Boolean},dense:{type:Boolean},itemAligned:{type:Boolean},disable:{type:Boolean},readonly:{type:Boolean},autofocus:{type:Boolean},for:{},multiple:{type:Boolean},displayValue:{},displayValueHtml:{type:Boolean},optionValue:{},optionDisable:{},hideSelected:{type:Boolean},hideDropdownIcon:{type:Boolean},dropdownIcon:{},maxValues:{},optionsDense:{type:Boolean},optionsDark:{type:[Boolean,null]},optionsSelectedClass:{},optionsHtml:{type:Boolean},optionsCover:{type:Boolean},menuShrink:{type:Boolean},menuAnchor:{},menuSelf:{},menuOffset:{},popupContentClass:{},popupContentStyle:{},popupNoRouteDismiss:{type:Boolean},useInput:{type:Boolean},useChips:{type:Boolean},fillInput:{type:Boolean},newValueMode:{},mapOptions:{type:Boolean},emitValue:{type:Boolean},inputDebounce:{},inputStyle:{},tabindex:{},autocomplete:{},transitionShow:{},transitionHide:{},transitionDuration:{},behavior:{},onVirtualScroll:{},onClear:{},"onUpdate:modelValue":{},onInputValue:{},onRemove:{},onAdd:{},onNewValue:{},onFilter:{},onFilterAbort:{},onPopupShow:{},onPopupHide:{}},emits:["update:model-value","search","update"],setup(t,{emit:e}){const n=e,r=t,o=i.ref(null),s=i.ref(null),l=i.ref(!1),a=i.computed(()=>{let b=r.options;return r.placeholder&&!r.multiple&&!r.filterable&&(b=[{label:r.placeholder,value:null},...r.options]),b=b.map(k=>{let E=i.isRef(k)?k.value:k;return{label:_(E),value:m(E),selectionLabel:p(E)}}),b}),c=i.computed(()=>s.value&&!r.filterFn?a.value.filter(b=>{var k;return b.label.toLocaleLowerCase().indexOf((k=s.value)==null?void 0:k.toLowerCase())>-1}):a.value),u=i.computed(()=>r.multiple?(Array.isArray(r.modelValue)?r.modelValue:[]).map(k=>k===null?"__null__":k)||[]:r.modelValue===null?"__null__":r.selectByObject?r.modelValue.value||r.modelValue.id:r.modelValue),d=i.computed(()=>{let b=u.value;r.multiple||(b=b||b===0?[b]:[]);const k=b.map(E=>E==="__null__"?null:typeof E=="object"?E.value||E.id:E);return a.value.filter(E=>k.includes(E.value))}),f=i.computed(()=>r.filterable&&l.value?"":!d.value||d.value.length===0?r.placeholder||"(Select Option)":d.value[0].selectionLabel),h=i.computed(()=>d.value.slice(0,r.chipLimit));function _(b){return typeof b=="string"?b:typeof r.optionLabel=="string"?b[r.optionLabel]:typeof r.optionLabel=="function"?r.optionLabel(b):b==null?void 0:b.label}function p(b){return typeof b=="string"?b:typeof r.selectionLabel=="string"?b[r.selectionLabel]:typeof r.selectionLabel=="function"?r.selectionLabel(b):(b==null?void 0:b.selectionLabel)||(b==null?void 0:b.label)||b&&b[r.optionLabel]}function m(b){if(!b||typeof b=="string")return b;let k=b.value||b.id;return typeof r.optionValue=="string"?k=b[r.optionValue]:typeof r.optionValue=="function"&&(k=r.optionValue(b)),k===null?"__null__":k}function g(b){Array.isArray(b)&&(b=b.map(k=>k==="__null__"?null:k)),b=b==="__null__"?null:b,r.selectByObject&&b!==null&&b!==void 0&&typeof b!="object"&&(r.multiple?b=r.options.filter(k=>b.includes(m(k))):b=r.options.find(k=>m(k)===b)),n("update:model-value",b),n("update",b)}const x=i.ref(!1);async function y(b,k){if(!r.filterFn)s.value=b,await i.nextTick(k);else{if(k(),!x.value)return;b!==null&&b!==s.value&&(s.value=b,r.filterFn&&await r.filterFn(b))}}function w(){n("update:model-value",void 0),n("update",void 0)}function C(){l.value=!0,x.value=!1,i.nextTick(()=>{x.value=!0,o.value.focus()})}function T(){l.value=!1,x.value=!1}return(b,k)=>{const E=i.resolveComponent("QChip");return i.openBlock(),i.createElementBlock("div",null,[b.label?(i.openBlock(),i.createBlock(i.unref(ht),{key:0,label:b.label},null,8,["label"])):i.createCommentVNode("",!0),i.createVNode(i.unref(J.QSelect),i.mergeProps({ref_key:"selectField",ref:o},b.$props,{"model-value":u.value,outlined:"","hide-dropdown-icon":"",dense:"","emit-value":"","use-input":b.filterable,"hide-selected":b.filterable&&l.value&&!b.$props.multiple,"input-debounce":100,options:c.value,"option-label":"label","option-value":"value",placeholder:"",label:"","input-class":{"is-hidden":!l.value,[b.inputClass]:!0},class:"max-w-full dx-select-field",onFilter:y,onClear:w,onPopupShow:C,onPopupHide:T,"onUpdate:modelValue":g}),{append:i.withCtx(()=>[i.createVNode(i.unref(rp),{class:i.normalizeClass(["w-4 transition",l.value?"rotate-180":""])},null,8,["class"])]),selected:i.withCtx(()=>[b.$props.multiple?(i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass(["flex gap-y-1 overflow-hidden dx-selected-label",{"flex-nowrap gap-y-0":b.chipLimit===1,"dx-selected-chips":h.value.length>0,[b.selectionClass]:!0}])},[h.value.length>0?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(h.value,N=>(i.openBlock(),i.createBlock(E,{key:"selected-"+N.label,class:"!mr-1"},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(N.label),1)]),_:2},1024))),128)),d.value.length>h.value.length?(i.openBlock(),i.createBlock(E,{key:0,class:"!mr-1"},{default:i.withCtx(()=>[i.createTextVNode(" +"+i.toDisplayString(d.value.length-h.value.length),1)]),_:1})):i.createCommentVNode("",!0)],64)):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.createTextVNode(i.toDisplayString(b.placeholder),1)],64))],2)):(i.openBlock(),i.createElementBlock("div",{key:1,class:i.normalizeClass([b.selectionClass,"dx-selected-label"])},i.toDisplayString(f.value),3))]),_:1},16,["model-value","use-input","hide-selected","options","input-class"])])}}}),Ja={__name:"MultiKeywordField",props:{modelValue:{type:[String,Number,Object],default:""},field:{type:Object,default:null}},emits:["update:model-value"],setup(t,{emit:e}){const n=e,r=t,o=i.ref(r.field.defaultOption),s=i.computed(()=>r.modelValue&&r.modelValue[o.value]),l=i.ref(c());function a(){var u;l.value=((u=l.value)==null?void 0:u.replace(/\n/g,",").replace(/,{2,}/g,","))||"",n("update:model-value",l.value?{[o.value]:l.value.split(",")}:void 0)}function c(){var u;return Array.isArray(s.value)?(u=s.value)==null?void 0:u.join(","):""}return i.watch(()=>r.modelValue,()=>{l.value=c()}),(u,d)=>(i.openBlock(),i.createElementBlock("div",null,[i.createVNode(i.unref(Mn),{modelValue:o.value,"onUpdate:modelValue":[d[0]||(d[0]=f=>o.value=f),a],label:void 0,options:t.field.options,class:"mb-2"},null,8,["modelValue","options"]),i.createVNode(i.unref(on),{modelValue:l.value,"onUpdate:modelValue":[d[1]||(d[1]=f=>l.value=f),a],field:t.field,"no-label":!t.field.label,"label-class":"text-xs font-bold text-zinc-800","input-class":"!py-0",dense:"",type:"textarea",debounce:500},null,8,["modelValue","field","no-label"])]))}},b0={__name:"NewPasswordField",props:{name:{type:String,default:"password"},label:{type:String,default:"Password"},placeholder:{type:String,default:"Enter Password"},modelValue:{type:[String,Number],required:!0},error:{type:String,default:null},disabled:Boolean},emits:["update:model-value"],setup(t){const e=t,n=[r=>r.length>=8||"Please use at least 8 characters"];return(r,o)=>(i.openBlock(),i.createBlock(i.unref(Zi),i.mergeProps({type:"password"},e,{rules:n,"onUpdate:modelValue":o[0]||(o[0]=s=>r.$emit("update:model-value",s))}),null,16))}},w0={key:0,class:"font-bold text-xs mb-2"},k0={class:"flex items-center flex-nowrap cursor-pointer"},x0={class:"text-sm ml-3 hover:text-blue-600 whitespace-nowrap"},bo={__name:"NumberRangeField",props:{modelValue:{type:Object,default:null},label:{type:String,default:null},icon:{type:Object,default:null},currency:Boolean,percent:Boolean,debounce:{type:Number,default:0}},emits:["update:model-value"],setup(t,{emit:e}){const n=e,r=t,o=i.computed(()=>r.currency?"$":r.percent?"%":""),s=i.computed(()=>({id:"min-field",name:"from",label:"Min"+o.value,placeholder:"0"})),l=i.computed(()=>({id:"max-field",name:"to",label:"Max"+o.value,placeholder:"No Limit"})),a=i.computed(()=>r.icon||(r.currency?op:r.percent?Va:up)),c=i.ref({});i.watch(()=>r.modelValue,u);function u(h){const _=r.percent?100:1;c.value={from:h!=null&&h.from?h.from*_:void 0,to:h!=null&&h.to?h.to*_:void 0}}u(r.modelValue||{from:void 0,to:void 0});function d(h){return h===void 0?"No Limit":r.currency?ki(h):r.percent?Ah(h,{multiplier:1,maximumFractionDigits:2}):At(h)}const f=rn(()=>{if(c.value&&(c.value.from||c.value.to)){const h=r.percent?.01:1;let _={from:c.value.from?c.value.from*h:void 0,to:c.value.to?c.value.to*h:void 0};n("update:model-value",_)}},r.debounce);return(h,_)=>{const p=i.resolveComponent("QPopupProxy");return i.openBlock(),i.createElementBlock("div",null,[t.label?(i.openBlock(),i.createElementBlock("div",w0,i.toDisplayString(t.label),1)):i.createCommentVNode("",!0),i.createElementVNode("div",k0,[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(a.value),{class:"w-5 text-blue-600"})),i.createElementVNode("div",x0,[c.value?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createTextVNode(i.toDisplayString(d(c.value.from||0))+" - "+i.toDisplayString(d(c.value.to)),1)],64)):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.createTextVNode(" No Limit ")],64))])]),i.createVNode(p,null,{default:i.withCtx(()=>[i.createVNode(i.unref(Er),{modelValue:c.value.from,"onUpdate:modelValue":[_[0]||(_[0]=m=>c.value.from=m),i.unref(f)],field:s.value},null,8,["modelValue","field","onUpdate:modelValue"]),i.createVNode(i.unref(Er),{modelValue:c.value.to,"onUpdate:modelValue":[_[1]||(_[1]=m=>c.value.to=m),i.unref(f)],class:"mt-2",field:l.value},null,8,["modelValue","field","onUpdate:modelValue"])]),_:1})])}}},S0=["data-dusk","onClick"],C0={__name:"SelectDrawer",props:{modelValue:{type:[Object,String,Array,null],required:!0},options:{type:Array,default:()=>[]},multiple:Boolean,label:{type:String,default:"Select"},placeholder:{type:String,default:"All"}},emits:["update:modelValue"],setup(t,{emit:e}){const n=e,r=t,o=i.ref(!1),s=i.computed(()=>r.options.map(d=>typeof d=="string"?{label:d,value:d}:d));function l(d){return d.value===void 0?d:d.value}function a(d){return s.value.find(f=>f.value===d).label}function c(d){const f=l(d);return r.multiple?r.modelValue.includes(f):r.modelValue===f}function u(d){let f=l(d),h=f;r.multiple?(h=[...r.modelValue],c(f)?h=h.filter(_=>_!==f):h.push(f)):h===r.modelValue&&(h=null),n("update:modelValue",h)}return(d,f)=>{const h=i.resolveComponent("QCheckbox"),_=i.resolveComponent("QChip");return i.openBlock(),i.createElementBlock("div",null,[i.createVNode(i.unref(Ji),{show:o.value,"onUpdate:show":f[0]||(f[0]=p=>o.value=p),"content-class":"",position:"bottom",title:"Filter "+t.label},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(s.value,p=>(i.openBlock(),i.createElementBlock("div",{key:"select-drawer-"+p.value,"data-dusk":"drawer-opt-"+p.value,class:"cursor-pointer hover:bg-slate-200 px-8 py-3 flex items-center border-b border-slate-200",onClick:m=>u(p)},[i.createVNode(h,{"model-value":c(p),class:"mr-2",onClick:i.withModifiers(m=>u(p),["stop"])},null,8,["model-value","onClick"]),i.renderSlot(d.$slots,"option",{opt:p},()=>[i.createTextVNode(i.toDisplayString(p.label),1)])],8,S0))),128))]),_:3},8,["show","title"]),i.createVNode(_,{ref:"select",outline:"",clickable:"",size:"16px",onClick:f[1]||(f[1]=p=>o.value=!0)},{default:i.withCtx(()=>[i.renderSlot(d.$slots,"selected",{},()=>[i.renderSlot(d.$slots,"label",{},()=>[i.createTextVNode(i.toDisplayString(t.label)+":  ",1)]),t.modelValue&&t.modelValue.length>0?i.renderSlot(d.$slots,"selection",{key:0},()=>[t.multiple?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createTextVNode(i.toDisplayString(a(t.modelValue[0]))+" ",1),t.modelValue.length>1?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createTextVNode(" + "+i.toDisplayString(t.modelValue.length-1),1)],64)):i.createCommentVNode("",!0)],64)):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.createTextVNode(i.toDisplayString(a(t.modelValue)),1)],64))]):i.renderSlot(d.$slots,"placeholder",{key:1},()=>[i.createTextVNode(i.toDisplayString(t.placeholder),1)])])]),_:3},512)])}}},E0={class:"flex items-stretch flex-nowrap gap-x-4"},T0=i.defineComponent({__name:"SelectOrCreateField",props:i.mergeModels({options:{},showEdit:{type:Boolean},canEdit:{type:Boolean},loading:{type:Boolean},selectByObject:{type:Boolean},optionLabel:{default:"label"},createText:{default:"Create"},editText:{default:"Edit"},clearable:{type:Boolean}},{selected:{},selectedModifiers:{},editing:{type:Boolean},editingModifiers:{}}),emits:i.mergeModels(["create"],["update:selected","update:editing"]),setup(t){const e=i.useModel(t,"selected"),n=i.useModel(t,"editing");return(r,o)=>{const s=i.resolveComponent("QBtn");return i.openBlock(),i.createElementBlock("div",E0,[i.createVNode(s,{class:"bg-green-900 px-4",loading:r.loading,onClick:o[0]||(o[0]=l=>r.$emit("create"))},{default:i.withCtx(()=>[i.createVNode(i.unref(cm),{class:i.normalizeClass(["w-4",r.createText?"mr-2":""])},null,8,["class"]),i.createTextVNode(" "+i.toDisplayString(r.createText),1)]),_:1},8,["loading"]),i.createVNode(i.unref(Mn),{modelValue:e.value,"onUpdate:modelValue":o[1]||(o[1]=l=>e.value=l),class:"flex-grow",options:r.options,clearable:r.clearable,"select-by-object":r.selectByObject,"option-label":r.optionLabel},null,8,["modelValue","options","clearable","select-by-object","option-label"]),r.showEdit?(i.openBlock(),i.createBlock(i.unref(Oa),{key:0,modelValue:n.value,"onUpdate:modelValue":o[2]||(o[2]=l=>n.value=l),disable:!r.canEdit,label:r.editText,class:"bg-sky-800 w-1/5"},null,8,["modelValue","disable","label"])):i.createCommentVNode("",!0)])}}}),N0={key:0,class:"text-zinc-500"},B0={key:1},I0={class:"text-xs text-zinc-500"},ec=i.defineComponent({__name:"SelectWithChildrenField",props:{modelValue:{default:()=>[]},label:{default:"Selection"},placeholder:{default:"Select an option"},options:{default:()=>[]},loading:{type:Boolean}},emits:["update:model-value"],setup(t,{emit:e}){const n=e,r=t;function o(){var u;return((u=r.modelValue)==null?void 0:u.length)>0?r.options.find(d=>d.children.find(f=>r.modelValue.includes(f.id))):null}const s=i.ref(o()),l=i.ref(r.modelValue||[]);function a(u){l.value.includes(u.id)?l.value=Rr(l.value,u.id):l.value.push(u.id),n("update:model-value",l.value.length>0?l.value:void 0)}function c(){l.value=[],n("update:model-value",void 0)}return i.watch(()=>r.modelValue,u=>{s.value=o(),l.value=u||[]}),(u,d)=>{const f=i.resolveComponent("QCheckbox");return i.openBlock(),i.createElementBlock("div",null,[!u.loading&&!u.options.length?(i.openBlock(),i.createElementBlock("div",N0," No options available ")):i.createCommentVNode("",!0),i.createVNode(i.unref(Mn),{modelValue:s.value,"onUpdate:modelValue":[d[0]||(d[0]=h=>s.value=h),c],options:u.options,label:u.label,placeholder:u.placeholder,"option-value":h=>h,loading:u.loading},null,8,["modelValue","options","label","placeholder","option-value","loading"]),s.value?(i.openBlock(),i.createElementBlock("div",B0,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(s.value.children,h=>(i.openBlock(),i.createBlock(f,{key:h.id,"model-value":l.value.includes(h.id),field:h,class:"mt-3","onUpdate:modelValue":_=>a(h)},{default:i.withCtx(()=>[i.createElementVNode("div",null,i.toDisplayString(h.label),1),i.createElementVNode("div",I0,i.toDisplayString(h.name),1)]),_:2},1032,["model-value","field","onUpdate:modelValue"]))),128))])):i.createCommentVNode("",!0)])}}}),$0={key:1,class:"text-sm mt-2"},F0={key:3,class:"py-1"},tc=i.defineComponent({__name:"SingleFileField",props:{modelValue:{},label:{},name:{},showName:{type:Boolean},disable:{type:Boolean},readonly:{type:Boolean}},emits:["update:model-value"],setup(t,{emit:e}){const n=e,r=t,{onComplete:o,onDrop:s,onFileSelected:l,uploadedFile:a,clearUploadedFile:c}=x1();return o(()=>n("update:model-value",a.value)),i.onMounted(()=>{r.modelValue&&(a.value=r.modelValue)}),(u,d)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["max-w-full relative overflow-auto",{"p-4 border rounded border-gray-300 text-center":!u.readonly}]),onDragover:d[4]||(d[4]=i.withModifiers(()=>{},["prevent"])),onDrop:d[5]||(d[5]=i.withModifiers((...f)=>i.unref(s)&&i.unref(s)(...f),["prevent"]))},[u.label||u.name||u.showName?(i.openBlock(),i.createBlock(i.unref(ht),{key:0,label:u.label,name:u.name,"show-name":u.showName,class:"text-sm font-semibold"},null,8,["label","name","show-name"])):i.createCommentVNode("",!0),!u.disable&&!u.readonly?(i.openBlock(),i.createElementBlock("div",$0,[i.createElementVNode("a",{class:"text-blue-600",onClick:d[0]||(d[0]=f=>u.$refs.file.click())},"Upload"),i.unref(a)?(i.openBlock(),i.createElementBlock("a",{key:0,class:"ml-3 text-red-900",onClick:d[1]||(d[1]=(...f)=>i.unref(c)&&i.unref(c)(...f))},"Clear")):i.createCommentVNode("",!0),i.createElementVNode("input",{ref:"file",class:"hidden",type:"file",onChange:d[2]||(d[2]=(...f)=>i.unref(l)&&i.unref(l)(...f))},null,544)])):i.createCommentVNode("",!0),!u.readonly||i.unref(a)?(i.openBlock(),i.createBlock(i.unref(Tr),{key:2,class:i.normalizeClass(["w-32 cursor-pointer mt-2",{"border border-dashed border-blue-600":!i.unref(a),"mx-auto":!u.readonly}]),file:i.unref(a)||void 0,downloadable:"",onClick:d[3]||(d[3]=f=>!u.disable&&u.$refs.file.click())},null,8,["class","file"])):u.readonly?(i.openBlock(),i.createElementBlock("div",F0," -- ")):i.createCommentVNode("",!0)],34))}}),A0={class:"dx-slider-number-field"},O0=i.defineComponent({__name:"SliderNumberField",props:{modelValue:{},field:{},label:{},currency:{type:Boolean},percent:{type:Boolean},name:{},min:{},max:{},innerMin:{},innerMax:{},step:{},snap:{type:Boolean},reverse:{type:Boolean},vertical:{type:Boolean},color:{},trackColor:{},trackImg:{},innerTrackColor:{},innerTrackImg:{},selectionColor:{},selectionImg:{},labelColor:{},labelTextColor:{},switchLabelSide:{type:Boolean},labelAlways:{type:Boolean},markers:{type:[Boolean,Number]},markerLabels:{type:[Boolean,Array,Object,Function]},markerLabelsClass:{},switchMarkerLabelsSide:{type:Boolean},trackSize:{},thumbSize:{},thumbColor:{},thumbPath:{},dark:{type:[Boolean,null]},dense:{type:Boolean},disable:{type:Boolean},readonly:{type:Boolean},tabindex:{},labelValue:{},onChange:{type:Function},onPan:{type:Function},"onUpdate:modelValue":{type:Function}},emits:["update:model-value"],setup(t){const e=t,n=i.computed(()=>({...e,field:void 0,label:!!e.label})),r=i.computed(()=>e.currency?"$"+e.modelValue:e.percent?e.modelValue+"%":e.modelValue);return(o,s)=>{const l=i.resolveComponent("QSlider");return i.openBlock(),i.createElementBlock("div",A0,[i.createVNode(i.unref(ht),{label:o.label,field:o.field},null,8,["label","field"]),i.createVNode(l,i.mergeProps(n.value,{min:o.min,max:o.max,label:"","label-always":"","switch-label-side":"","price-label":r.value}),null,16,["min","max","price-label"])])}}});var D0=["onActivate","onAddUndo","onBeforeAddUndo","onBeforeExecCommand","onBeforeGetContent","onBeforeRenderUI","onBeforeSetContent","onBeforePaste","onBlur","onChange","onClearUndos","onClick","onContextMenu","onCopy","onCut","onDblclick","onDeactivate","onDirty","onDrag","onDragDrop","onDragEnd","onDragGesture","onDragOver","onDrop","onExecCommand","onFocus","onFocusIn","onFocusOut","onGetContent","onHide","onInit","onKeyDown","onKeyPress","onKeyUp","onLoadContent","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onNodeChange","onObjectResizeStart","onObjectResized","onObjectSelected","onPaste","onPostProcess","onPostRender","onPreProcess","onProgressState","onRedo","onRemove","onReset","onSaveContent","onSelectionChange","onSetAttrib","onSetContent","onShow","onSubmit","onUndo","onVisualAid"],P0=function(t){return D0.map(function(e){return e.toLowerCase()}).indexOf(t.toLowerCase())!==-1},M0=function(t,e,n){Object.keys(e).filter(P0).forEach(function(r){var o=e[r];typeof o=="function"&&(r==="onInit"?o(t,n):n.on(r.substring(2),function(s){return o(s,n)}))})},L0=function(t,e,n,r){var o=t.modelEvents?t.modelEvents:null,s=Array.isArray(o)?o.join(" "):o;i.watch(r,function(l,a){n&&typeof l=="string"&&l!==a&&l!==n.getContent({format:t.outputFormat})&&n.setContent(l)}),n.on(s||"change input undo redo",function(){e.emit("update:modelValue",n.getContent({format:t.outputFormat}))})},v0=function(t,e,n,r,o,s){r.setContent(s()),n.attrs["onUpdate:modelValue"]&&L0(e,n,r,o),M0(t,n.attrs,r)},nc=0,rc=function(t){var e=Date.now(),n=Math.floor(Math.random()*1e9);return nc++,t+"_"+n+nc+String(e)},V0=function(t){return t!==null&&t.tagName.toLowerCase()==="textarea"},oc=function(t){return typeof t>"u"||t===""?[]:Array.isArray(t)?t:t.split(" ")},q0=function(t,e){return oc(t).concat(oc(e))},R0=function(t){return t==null},ic=function(){return{listeners:[],scriptId:rc("tiny-script"),scriptLoaded:!1}},U0=function(){var t=ic(),e=function(o,s,l,a){var c=s.createElement("script");c.referrerPolicy="origin",c.type="application/javascript",c.id=o,c.src=l;var u=function(){c.removeEventListener("load",u),a()};c.addEventListener("load",u),s.head&&s.head.appendChild(c)},n=function(o,s,l){t.scriptLoaded?l():(t.listeners.push(l),o.getElementById(t.scriptId)||e(t.scriptId,o,s,function(){t.listeners.forEach(function(a){return a()}),t.scriptLoaded=!0}))},r=function(){t=ic()};return{load:n,reinitialize:r}},j0=U0(),z0=function(){return typeof window<"u"?window:global},sn=function(){var t=z0();return t&&t.tinymce?t.tinymce:null},H0={apiKey:String,cloudChannel:String,id:String,init:Object,initialValue:String,inline:Boolean,modelEvents:[String,Array],plugins:[String,Array],tagName:String,toolbar:[String,Array],modelValue:String,disabled:Boolean,tinymceScriptSrc:String,outputFormat:{type:String,validator:function(t){return t==="html"||t==="text"}}},_t=function(){return _t=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])}return t},_t.apply(this,arguments)},G0=function(t,e,n,r){return t(r||"div",{id:e,ref:n})},Z0=function(t,e,n){return t("textarea",{id:e,visibility:"hidden",ref:n})},Ki={selector:void 0,target:void 0},W0=i.defineComponent({props:H0,setup:function(t,e){var n=t.init?_t(_t({},t.init),Ki):_t({},Ki),r=i.toRefs(t),o=r.disabled,s=r.modelValue,l=r.tagName,a=i.ref(null),c=null,u=t.id||rc("tiny-vue"),d=t.init&&t.init.inline||t.inline,f=!!e.attrs["onUpdate:modelValue"],h=!0,_=t.initialValue?t.initialValue:"",p="",m=function(y){return f?function(){return s!=null&&s.value?s.value:""}:function(){return y?_:p}},g=function(){var y=m(h),w=_t(_t({},n),{readonly:t.disabled,target:a.value,plugins:q0(n.plugins,t.plugins),toolbar:t.toolbar||n.toolbar,inline:d,setup:function(C){c=C,C.on("init",function(T){return v0(T,t,e,C,s,y)}),typeof n.setup=="function"&&n.setup(C)}});V0(a.value)&&(a.value.style.visibility=""),sn().init(w),h=!1};i.watch(o,function(y){var w;c!==null&&(typeof((w=c.mode)===null||w===void 0?void 0:w.set)=="function"?c.mode.set(y?"readonly":"design"):c.setMode(y?"readonly":"design"))}),i.watch(l,function(y){var w;f||(p=c.getContent()),(w=sn())===null||w===void 0||w.remove(c),i.nextTick(function(){return g()})}),i.onMounted(function(){if(sn()!==null)g();else if(a.value&&a.value.ownerDocument){var y=t.cloudChannel?t.cloudChannel:"6",w=t.apiKey?t.apiKey:"no-api-key",C=R0(t.tinymceScriptSrc)?"https://cdn.tiny.cloud/1/".concat(w,"/tinymce/").concat(y,"/tinymce.min.js"):t.tinymceScriptSrc;j0.load(a.value.ownerDocument,C,g)}}),i.onBeforeUnmount(function(){sn()!==null&&sn().remove(c)}),d||(i.onActivated(function(){h||g()}),i.onDeactivated(function(){var y;f||(p=c.getContent()),(y=sn())===null||y===void 0||y.remove(c)}));var x=function(y){var w;p=c.getContent(),(w=sn())===null||w===void 0||w.remove(c),n=_t(_t(_t({},n),y),Ki),i.nextTick(function(){return g()})};return e.expose({rerender:x,getEditor:function(){return c}}),function(){return d?G0(i.h,u,a,t.tagName):Z0(i.h,u,a)}}});const Y0=["innerHTML"],sc={__name:"WysiwygField",props:{modelValue:{type:[String,Number],default:null},field:{type:Object,required:!0},noLabel:Boolean,showName:Boolean,disable:Boolean,readonly:Boolean},emits:["update:model-value"],setup(t){return(e,n)=>(i.openBlock(),i.createElementBlock("div",null,[t.noLabel?i.createCommentVNode("",!0):(i.openBlock(),i.createBlock(i.unref(ht),{key:0,field:t.field,"show-name":t.showName},null,8,["field","show-name"])),t.readonly?(i.openBlock(),i.createElementBlock("div",{key:1,class:"border border-gray-300 rounded-md p-2 bg-gray-100",innerHTML:t.modelValue},null,8,Y0)):(i.openBlock(),i.createBlock(i.unref(W0),{key:2,class:"mt-2","api-key":i.unref(oe).tinyMceApiKey,disabled:t.disable,"model-value":t.modelValue,"onUpdate:modelValue":n[0]||(n[0]=r=>e.$emit("update:model-value",r))},null,8,["api-key","disabled","model-value"]))]))}},lc=i.defineComponent({__name:"SaveStateIndicator",props:{saving:{type:Boolean},savedAt:{default:""},savingClass:{default:"text-sm text-slate-500"}},setup(t){return(e,n)=>{const r=i.resolveComponent("QSpinnerPie");return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass([e.savingClass,"dx-saving-indicator flex items-center flex-nowrap"])},[e.saving?i.renderSlot(e.$slots,"saving",{key:0},()=>[i.createTextVNode(" Saving... "),i.createVNode(r,{class:"ml-2"})]):i.renderSlot(e.$slots,"saved",{key:1},()=>[e.savedAt?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createTextVNode(" Saved at "+i.toDisplayString(i.unref(wi)(e.savedAt,{format:"M/d/yy h:mm:ssa"})),1)],64)):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.createTextVNode(" Not saved ")],64))])],2)}}}),Q0={class:"dx-rendered-form"},K0={key:0,class:"mb-4"},X0={class:"flex flex-nowrap items-center text-sm w-full"},J0={key:0,class:"variation-missing-icon pl-1"},eg={class:"flex-grow"},tg={key:1,class:"flex flex-nowrap items-center mr-2"},ng=["onClick"],rg=["onClick"],Xi=i.defineComponent({__name:"RenderedForm",props:{values:{default:null},form:{},noLabel:{type:Boolean},showName:{type:Boolean},disable:{type:Boolean},readonly:{type:Boolean},saving:{type:Boolean},clearable:{type:Boolean},emptyValue:{type:[String,Number,Boolean],default:void 0},canModifyVariations:{type:Boolean},fieldClass:{default:""},savingClass:{default:"text-sm text-slate-500 justify-end mt-4"},savedAt:{default:void 0}},emits:["update:values"],setup(t,{emit:e}){const n=t,r=e,o={BOOLEAN:Gi,DATE:Wi,DATE_RANGE:Yi,INTEGER:Ka,NUMBER:Er,TEXT:on,SINGLE_FILE:tc,MULTI_FILE:Xa,WYSIWYG:sc},s=n.form.fields.map(B=>({placeholder:`Enter ${B.label}`,...B,component:B.component||o[B.type]})),l=i.computed(()=>{const B=n.values;return B?Array.isArray(B)?B:Object.entries(B).filter(I=>s.find(A=>A.name===I[0])).map(([I,A])=>({name:I,value:A,variation:""})):[]}),a=i.computed(()=>{const B={};for(const I of s)B[I.name]=x(I.name);return B});function c(B){return B.enabled===void 0?!0:typeof B.enabled=="function"?B.enabled(a.value):B.enabled}function u(B){return{modelValue:x(B.name),label:B.label,clearable:B.clearable||n.clearable,readonly:n.readonly,disable:n.disable,showName:n.showName,noLabel:n.noLabel}}const d=i.computed(()=>{const B=[...new Set(l.value.map(I=>I.variation))].sort();return B.length===0&&B.push(""),B}),f=i.ref(d.value[0]||""),h=i.ref(""),_=i.ref(!1),p=i.ref(""),m=i.computed(()=>n.canModifyVariations&&!n.readonly&&!n.disable&&d.value.length<(n.form.variations||0));function g(B,I){if(l.value)return l.value.find(A=>A.variation===(I!==void 0?I:f.value)&&A.name===B)}function x(B){var I;return(I=g(B))==null?void 0:I.value}function y(B,I){const A=g(B),R={name:B,variation:f.value||"",value:I===void 0?n.emptyValue:I},K=Zs(l.value,A,R,!0);w(K)}function w(B){let I=B;Array.isArray(n.values)||(I=B.reduce((A,R)=>(A[R.name]=R.value,A),{})),r("update:values",I)}i.onMounted(()=>{window.addEventListener("beforeunload",C)}),i.onBeforeUnmount(()=>{window.removeEventListener("beforeunload",C)});function C(B){if(n.saving)return B.returnValue="Changes are currently being saved. If you leave now, you might lose unsaved changes."}function T(B){return n.form.fields.map(I=>({variation:B,name:I.name,value:I.default_value===void 0?null:I.default_value}))}function b(){if(n.saving)return;let B=[...l.value];B.length===0&&(B=T(""));const I=d.value[d.value.length-1],A=td(I||"1"),R=T(A);w([...B,...R]),f.value=A}function k(){if(!h.value)return;if(d.value.includes(h.value)){Ve.error("Variation name already exists");return}const B=l.value.map(I=>I.variation===_.value?{...I,variation:h.value}:I);w(B),f.value=h.value,_.value=!1,h.value=""}function E(B){if(!B)return;const I=l.value.filter(A=>A.variation!==B);w(I),f.value===B&&(f.value=d.value[0]),p.value=""}function N(B){const I={};return n.form.fields.filter(A=>A.required||A.required_group).every(A=>{const R=g(A.name,B),K=!!R&&R.value!==null;return A.required_group?I[A.required_group]?!0:I[A.required_group]=K:K})}return(B,I)=>{const A=i.resolveComponent("QTooltip"),R=i.resolveComponent("QTab"),K=i.resolveComponent("QSpinnerBall"),le=i.resolveComponent("QTabs");return i.openBlock(),i.createElementBlock("div",Q0,[B.form.variations>1?(i.openBlock(),i.createElementBlock("div",K0,[i.createVNode(le,{modelValue:f.value,"onUpdate:modelValue":I[0]||(I[0]=P=>f.value=P),class:"text-xs"},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(d.value,(P,te)=>(i.openBlock(),i.createBlock(R,{key:P,name:P,class:"p-0","content-class":"w-full"},{default:i.withCtx(()=>[i.createElementVNode("div",X0,[N(P)?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("div",J0,[i.createVNode(i.unref(Ia),{class:"text-red-400 w-4"}),i.createVNode(A,null,{default:i.withCtx(()=>[i.createTextVNode("Creative Form Incomplete")]),_:1})])),i.createElementVNode("div",eg,i.toDisplayString(P||"1"),1),!B.disable&&!B.readonly&&B.canModifyVariations?(i.openBlock(),i.createElementBlock("div",tg,[i.createElementVNode("a",{class:"ml-1 p-1 hover:opacity-100 opacity-20 hover:bg-blue-200 rounded",onClick:()=>(_.value=P)&&(h.value=P)},[i.createVNode(i.unref($a),{class:"w-3 text-blue-900"})],8,ng),te>0?(i.openBlock(),i.createElementBlock("a",{key:0,class:"ml-1 p-1 hover:opacity-100 opacity-20 hover:bg-red-200 rounded",onClick:we=>p.value=P},[i.createVNode(i.unref(go),{class:"w-3 text-red-900"})],8,rg)):i.createCommentVNode("",!0)])):i.createCommentVNode("",!0)])]),_:2},1032,["name"]))),128)),m.value?(i.openBlock(),i.createBlock(R,{key:"add-new-variation",name:"add",class:"bg-blue-600 rounded-t-lg !text-white",onClick:b},{default:i.withCtx(()=>[B.saving?(i.openBlock(),i.createBlock(K,{key:0,class:"w-4"})):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.createTextVNode(" + Add Variation ")],64))]),_:1})):i.createCommentVNode("",!0)]),_:1},8,["modelValue"])])):i.createCommentVNode("",!0),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(s),(P,te)=>i.withDirectives((i.openBlock(),i.createElementBlock("div",{key:P.id,class:i.normalizeClass({"mt-4":te>0,[B.fieldClass]:!0})},[P.vnode?(i.openBlock(),i.createBlock(i.unref(ln),{key:0,vnode:P.vnode,props:u(P),params:a.value,"onUpdate:modelValue":we=>y(P.name,we)},null,8,["vnode","props","params","onUpdate:modelValue"])):i.createCommentVNode("",!0),(i.openBlock(),i.createBlock(i.resolveDynamicComponent(P.component),{key:P.name+"-"+f.value,"model-value":x(P.name),field:P,label:P.label||void 0,"no-label":B.noLabel,"show-name":B.showName,clearable:P.clearable||B.clearable,disable:B.disable,readonly:B.readonly,"onUpdate:modelValue":we=>y(P.name,we)},null,8,["model-value","field","label","no-label","show-name","clearable","disable","readonly","onUpdate:modelValue"]))],2)),[[i.vShow,c(P)]])),128)),i.renderSlot(B.$slots,"default"),i.createVNode(i.unref(lc),{saving:B.saving,"saved-at":B.savedAt,"saving-class":B.savingClass},null,8,["saving","saved-at","saving-class"]),_.value!==!1?(i.openBlock(),i.createBlock(i.unref(Ct),{key:1,title:"Change variation name",onConfirm:k,onClose:I[2]||(I[2]=P=>_.value=!1)},{default:i.withCtx(()=>[i.createVNode(i.unref(on),{modelValue:h.value,"onUpdate:modelValue":I[1]||(I[1]=P=>h.value=P),label:"Enter name",placeholder:"Variation Name","input-class":"bg-white"},null,8,["modelValue"])]),_:1})):i.createCommentVNode("",!0),p.value?(i.openBlock(),i.createBlock(i.unref(Ct),{key:2,title:`Remove variation ${p.value}?`,content:"You cannot undo this action. If there was any analytics collected for this variation, it will still be attributed to the ad.","confirm-class":"bg-red-900 text-white","content-class":"w-96",onConfirm:I[3]||(I[3]=P=>E(p.value)),onClose:I[4]||(I[4]=P=>p.value="")},null,8,["title"])):i.createCommentVNode("",!0)])}}}),ac=i.defineComponent({__name:"ActionForm",props:{action:{},target:{},form:{},noLabel:{type:Boolean},showName:{type:Boolean},disable:{type:Boolean},readonly:{type:Boolean},clearable:{type:Boolean},fieldClass:{default:""},savingClass:{default:void 0},hideSavedAt:{type:Boolean}},emits:["saved"],setup(t,{emit:e}){const n=e,r=t,o={form:r.form,noLabel:r.noLabel,showName:r.showName,disable:r.disable,readonly:r.readonly,clearable:r.clearable,fieldClass:r.fieldClass,savingClass:r.savingClass},s=i.ref({...r.target}),l={};i.watch(()=>r.target,c=>{var u;if(c)for(let d of r.form.fields)(u=l[d.name])!=null&&u.isSaving||(s.value[d.name]=c[d.name])});async function a(){await r.action.trigger(r.target,s.value),n("saved")}return(c,u)=>(i.openBlock(),i.createBlock(Xi,i.mergeProps(o,{values:s.value,"onUpdate:values":[u[0]||(u[0]=d=>s.value=d),a],"empty-value":"","saved-at":c.hideSavedAt?void 0:c.target.updated_at,saving:c.action.isApplying}),{default:i.withCtx(()=>[i.renderSlot(c.$slots,"default")]),_:3},16,["values","saved-at","saving"]))}}),og=i.defineComponent({__name:"RenderedFormDialog",props:i.mergeModels({title:{},confirmText:{},form:{},noLabel:{type:Boolean},showName:{type:Boolean},disable:{type:Boolean},readonly:{type:Boolean},clearable:{type:Boolean},fieldClass:{},savingClass:{},hideSavedAt:{type:Boolean},contentClass:{}},{modelValue:{},modelModifiers:{}}),emits:i.mergeModels(["confirm","close"],["update:modelValue"]),setup(t){const e=t,n=i.useModel(t,"modelValue"),r={form:e.form,noLabel:e.noLabel,showName:e.showName,disable:e.disable,readonly:e.readonly,clearable:e.clearable,fieldClass:e.fieldClass,savingClass:e.savingClass};return(o,s)=>(i.openBlock(),i.createBlock(i.unref(Ct),{title:o.title,"confirm-text":o.confirmText||o.title,"content-class":o.contentClass,onConfirm:s[1]||(s[1]=l=>o.$emit("confirm",n.value)),onClose:s[2]||(s[2]=l=>o.$emit("close"))},{default:i.withCtx(()=>[i.createVNode(i.unref(Xi),i.mergeProps(r,{values:n.value,"onUpdate:values":s[0]||(s[0]=l=>n.value=l),"empty-value":""}),{default:i.withCtx(()=>[i.renderSlot(o.$slots,"default")]),_:3},16,["values"])]),_:3},8,["title","confirm-text","content-class"]))}}),ig={key:0,class:"relative max-h-full max-w-full w-full flex justify-center"},sg={class:"max-h-full",preload:"auto"},lg=["src","type"],ag={key:2,class:"flex items-center justify-center h-full"},cg={key:2,class:"text-[.7rem] bg-slate-900 text-slate-300 opacity-80 h-[2.25rem] py-.5 px-1 absolute-bottom"},ug={key:1,class:"absolute-bottom w-full bg-slate-800"},dg={class:"absolute-full flex items-center flex-nowrap text-[.7rem] text-slate-200 justify-start px-1"},fg={class:"absolute top-1 right-1 flex items-center justify-between space-x-1"},hg={key:0,class:"font-bold text-[1rem] leading-[1.2rem]"},Tr=ft(i.defineComponent({__name:"FilePreview",props:{src:{default:""},file:{default:null},relatedFiles:{default:null},missingIcon:{default:zi},downloadButtonClass:{default:"bg-blue-600 text-white"},imageFit:{default:"cover"},downloadable:{type:Boolean,default:!1},removable:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},square:{type:Boolean,default:!1}},emits:["remove"],setup(t,{emit:e}){const n=e,r=t,o=i.ref(!1),s=i.computed(()=>{var w;return r.file?r.file:r.src?{id:r.src,url:r.src,type:"image/"+((w=r.src.split(".").pop())==null?void 0:w.toLowerCase()),name:"",size:0,__type:"BrowserFile"}:null}),l=i.computed(()=>{var w;return!r.file||((w=r.file)==null?void 0:w.progress)!==void 0}),a=i.computed(()=>{var w;return((w=r.relatedFiles)==null?void 0:w.length)>0?r.relatedFiles:[s.value]}),c=i.computed(()=>{var w,C;return((w=s.value)==null?void 0:w.name)||((C=s.value)==null?void 0:C.filename)||""}),u=i.computed(()=>{var w,C;return((w=s.value)==null?void 0:w.type)||((C=s.value)==null?void 0:C.mime)||""}),d=i.computed(()=>!!u.value.match(/^image\//)),f=i.computed(()=>!!u.value.match(/^video\//)),h=i.computed(()=>!!u.value.match(/^application\/pdf/)),_=i.computed(()=>{var w,C,T,b;return((C=(w=s.value)==null?void 0:w.optimized)==null?void 0:C.url)||((T=s.value)==null?void 0:T.blobUrl)||((b=s.value)==null?void 0:b.url)}),p=i.computed(()=>{var w,C;return(C=(w=s.value)==null?void 0:w.thumb)==null?void 0:C.url}),m=i.computed(()=>!!p.value||f.value||d.value),g=i.computed(()=>{var T,b;let w=null;const C=((b=(T=r.file)==null?void 0:T.meta)==null?void 0:b.transcodes)||[];for(let k of Object.keys(C)){const E=C[k];if(!(E!=null&&E.completed_at))return{...E,message:`${k} ${E.status}`}}return w});i.onMounted(()=>{g.value&&new mo([]).waitForTranscode(r.file)});const x=i.ref(!1);function y(){x.value?n("remove"):(x.value=!0,setTimeout(()=>{x.value=!1},2e3))}return(w,C)=>{var N,B,I;const T=i.resolveComponent("QImg"),b=i.resolveComponent("QSpinnerPie"),k=i.resolveComponent("QLinearProgress"),E=i.resolveComponent("QBtn");return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["relative flex justify-center bg-gray-100 overflow-hidden",{"rounded-2xl":!w.square}])},[s.value?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createElementVNode("div",{class:"grow h-full",onClick:C[0]||(C[0]=A=>o.value=!0)},[f.value?(i.openBlock(),i.createElementBlock("div",ig,[i.createElementVNode("video",sg,[i.createElementVNode("source",{src:_.value+"#t=0.1",type:u.value},null,8,lg)]),i.createElementVNode("button",{class:i.normalizeClass(w.cls["play-button"])},[i.createVNode(i.unref(fp),{class:"w-16"})],2)])):i.createCommentVNode("",!0),p.value||m.value?(i.openBlock(),i.createBlock(T,{key:1,fit:w.imageFit,class:"non-selectable max-h-full max-w-full h-full",src:(p.value||_.value)+"#t=0.1",preload:"auto","data-testid":"previewed-image"},null,8,["fit","src"])):(i.openBlock(),i.createElementBlock("div",ag,[h.value?(i.openBlock(),i.createBlock(i.unref(va),{key:0,class:"w-24"})):(i.openBlock(),i.createBlock(i.unref(ip),{key:1,class:"w-24"})),c.value?(i.openBlock(),i.createElementBlock("div",cg,i.toDisplayString(c.value),1)):i.createCommentVNode("",!0)]))]),w.$slots["action-button"]?(i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass(w.cls["action-button"])},[i.renderSlot(w.$slots,"action-button")],2)):i.createCommentVNode("",!0),l.value||g.value?(i.openBlock(),i.createElementBlock("div",ug,[i.createVNode(k,{value:l.value?w.file.progress:g.value.progress/100,size:"36px",color:l.value?"green-800":"blue-800","animation-speed":((N=g.value)==null?void 0:N.estimate_ms)||3e3,stripe:""},{default:i.withCtx(()=>[i.createElementVNode("div",dg,[i.createVNode(b,{class:"mr-2 text-slate-50 ml-1",size:"20"}),i.createElementVNode("div",null,i.toDisplayString(l.value?"Uploading...":g.value.message),1)])]),_:1},8,["value","color","animation-speed"])])):i.createCommentVNode("",!0)],64)):i.renderSlot(w.$slots,"missing",{key:1},()=>[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(w.missingIcon),{class:"w-full h-full p-2 text-gray-300"}))]),i.createElementVNode("div",fg,[w.downloadable&&((B=s.value)!=null&&B.url)?(i.openBlock(),i.createBlock(E,{key:0,size:"sm",class:i.normalizeClass(["dx-file-preview-download py-1 px-2 opacity-70 hover:opacity-100",w.downloadButtonClass]),onClick:C[1]||(C[1]=i.withModifiers(A=>i.unref(Si)(s.value.url),["stop"]))},{default:i.withCtx(()=>[i.createVNode(i.unref(lp),{class:"w-4 h-5"})]),_:1},8,["class"])):i.createCommentVNode("",!0),w.removable?(i.openBlock(),i.createBlock(E,{key:1,size:"sm",class:"dx-file-preview-remove bg-red-900 text-white opacity-50 hover:opacity-100 py-1 px-2",onClick:i.withModifiers(y,["stop"])},{default:i.withCtx(()=>[x.value?(i.openBlock(),i.createElementBlock("div",hg," ? ")):(i.openBlock(),i.createBlock(i.unref(go),{key:1,class:"w-3"}))]),_:1})):i.createCommentVNode("",!0)]),o.value&&!w.disabled&&a.value?(i.openBlock(),i.createBlock(i.unref(Wa),{key:2,files:a.value,"default-slide":((I=a.value[0])==null?void 0:I.id)||"",onClose:C[2]||(C[2]=A=>o.value=!1)},null,8,["files","default-slide"])):i.createCommentVNode("",!0)],2)}}}),[["__cssModules",{cls:{"!visible":"_!visible_131fu_1",visible:"_visible_131fu_1",collapse:"_collapse_131fu_1",static:"_static_131fu_1",absolute:"_absolute_131fu_1",relative:"_relative_131fu_1",sticky:"_sticky_131fu_1","left-0":"_left-0_131fu_1","right-0":"_right-0_131fu_1","right-1":"_right-1_131fu_1","top-0":"_top-0_131fu_1","top-1":"_top-1_131fu_1","z-10":"_z-10_131fu_1","m-2":"_m-2_131fu_1","m-4":"_m-4_131fu_1","m-auto":"_m-auto_131fu_1","mx-1":"_mx-1_131fu_1","mx-4":"_mx-4_131fu_1","mx-auto":"_mx-auto_131fu_1","my-2":"_my-2_131fu_1","!mr-1":"_!mr-1_131fu_1","mb-2":"_mb-2_131fu_1","mb-4":"_mb-4_131fu_1","ml-1":"_ml-1_131fu_1","ml-2":"_ml-2_131fu_1","ml-2.5":"_ml-2.5_131fu_1","ml-3":"_ml-3_131fu_1","ml-4":"_ml-4_131fu_1","ml-5":"_ml-5_131fu_1","ml-[-.2em]":"_ml-[-.2em]_131fu_1","mr-1":"_mr-1_131fu_1","mr-2":"_mr-2_131fu_1","mr-3":"_mr-3_131fu_1","mr-4":"_mr-4_131fu_1","mt-1":"_mt-1_131fu_1","mt-2":"_mt-2_131fu_1","mt-3":"_mt-3_131fu_1","mt-4":"_mt-4_131fu_1",block:"_block_131fu_1","inline-block":"_inline-block_131fu_1",inline:"_inline_131fu_1",flex:"_flex_131fu_1",table:"_table_131fu_1",hidden:"_hidden_131fu_1","h-10":"_h-10_131fu_1","h-16":"_h-16_131fu_1","h-32":"_h-32_131fu_1","h-4":"_h-4_131fu_1","h-5":"_h-5_131fu_1","h-6":"_h-6_131fu_1","h-8":"_h-8_131fu_1","h-[2.25rem]":"_h-[2.25rem]_131fu_1","h-full":"_h-full_131fu_1","max-h-full":"_max-h-full_131fu_1","w-1/5":"_w-1/5_131fu_1","w-10":"_w-10_131fu_1","w-16":"_w-16_131fu_1","w-2/5":"_w-2/5_131fu_1","w-24":"_w-24_131fu_1","w-3":"_w-3_131fu_1","w-3/5":"_w-3/5_131fu_1","w-32":"_w-32_131fu_1","w-4":"_w-4_131fu_1","w-48":"_w-48_131fu_1","w-5":"_w-5_131fu_1","w-6":"_w-6_131fu_1","w-7":"_w-7_131fu_1","w-72":"_w-72_131fu_1","w-8":"_w-8_131fu_1","w-96":"_w-96_131fu_1","w-[13.5rem]":"_w-[13.5rem]_131fu_1","w-[6.5rem]":"_w-[6.5rem]_131fu_1","w-[80rem]":"_w-[80rem]_131fu_1","w-full":"_w-full_131fu_1","!min-w-0":"_!min-w-0_131fu_1","max-w-full":"_max-w-full_131fu_1","flex-shrink":"_flex-shrink_131fu_1","flex-shrink-0":"_flex-shrink-0_131fu_1",shrink:"_shrink_131fu_1","flex-grow":"_flex-grow_131fu_1",grow:"_grow_131fu_1","rotate-180":"_rotate-180_131fu_1",transform:"_transform_131fu_1","cursor-ew-resize":"_cursor-ew-resize_131fu_1","cursor-move":"_cursor-move_131fu_1","cursor-not-allowed":"_cursor-not-allowed_131fu_1","cursor-ns-resize":"_cursor-ns-resize_131fu_1","cursor-pointer":"_cursor-pointer_131fu_1",resize:"_resize_131fu_1","flex-col":"_flex-col_131fu_1","flex-nowrap":"_flex-nowrap_131fu_1","items-center":"_items-center_131fu_1","items-stretch":"_items-stretch_131fu_1","justify-start":"_justify-start_131fu_1","justify-end":"_justify-end_131fu_1","justify-center":"_justify-center_131fu_1","justify-between":"_justify-between_131fu_1","gap-x-4":"_gap-x-4_131fu_1","gap-y-0":"_gap-y-0_131fu_1","gap-y-1":"_gap-y-1_131fu_1","space-x-1":"_space-x-1_131fu_1","space-x-2":"_space-x-2_131fu_1","self-center":"_self-center_131fu_1","overflow-auto":"_overflow-auto_131fu_1","overflow-hidden":"_overflow-hidden_131fu_1","overflow-y-auto":"_overflow-y-auto_131fu_73","overflow-x-hidden":"_overflow-x-hidden_131fu_1","scroll-smooth":"_scroll-smooth_131fu_1","overflow-ellipsis":"_overflow-ellipsis_131fu_1","whitespace-normal":"_whitespace-normal_131fu_1","whitespace-nowrap":"_whitespace-nowrap_131fu_1",rounded:"_rounded_131fu_1","rounded-2xl":"_rounded-2xl_131fu_1","rounded-lg":"_rounded-lg_131fu_1","rounded-md":"_rounded-md_131fu_1","rounded-sm":"_rounded-sm_131fu_1","!rounded-l-none":"_!rounded-l-none_131fu_1","!rounded-r-none":"_!rounded-r-none_131fu_1","rounded-b-lg":"_rounded-b-lg_131fu_1","rounded-t-lg":"_rounded-t-lg_131fu_1","rounded-t-md":"_rounded-t-md_131fu_1","!border-0":"_!border-0_131fu_1",border:"_border_131fu_1","border-b":"_border-b_131fu_1","border-l":"_border-l_131fu_1","border-l-0":"_border-l-0_131fu_1","border-r":"_border-r_131fu_1","border-solid":"_border-solid_131fu_1","border-dashed":"_border-dashed_131fu_1","border-none":"_border-none_131fu_1","border-blue-600":"_border-blue-600_131fu_1","border-blue-700":"_border-blue-700_131fu_1","border-gray-200":"_border-gray-200_131fu_1","border-gray-300":"_border-gray-300_131fu_1","border-slate-200":"_border-slate-200_131fu_1","bg-black":"_bg-black_131fu_1","bg-blue-200":"_bg-blue-200_131fu_1","bg-blue-600":"_bg-blue-600_131fu_1","bg-emerald-200":"_bg-emerald-200_131fu_1","bg-gray-100":"_bg-gray-100_131fu_1","bg-gray-200":"_bg-gray-200_131fu_1","bg-gray-400":"_bg-gray-400_131fu_1","bg-gray-500":"_bg-gray-500_131fu_1","bg-green-200":"_bg-green-200_131fu_1","bg-green-300":"_bg-green-300_131fu_1","bg-green-900":"_bg-green-900_131fu_1","bg-red-200":"_bg-red-200_131fu_1","bg-red-300":"_bg-red-300_131fu_1","bg-red-900":"_bg-red-900_131fu_1","bg-sky-300":"_bg-sky-300_131fu_1","bg-sky-800":"_bg-sky-800_131fu_1","bg-slate-100":"_bg-slate-100_131fu_1","bg-slate-500":"_bg-slate-500_131fu_1","bg-slate-800":"_bg-slate-800_131fu_1","bg-slate-900":"_bg-slate-900_131fu_1","bg-transparent":"_bg-transparent_131fu_1","bg-white":"_bg-white_131fu_1","bg-yellow-300":"_bg-yellow-300_131fu_1","!p-2":"_!p-2_131fu_1","p-0":"_p-0_131fu_1","p-1":"_p-1_131fu_1","p-2":"_p-2_131fu_1","p-3":"_p-3_131fu_1","p-4":"_p-4_131fu_1","!py-0":"_!py-0_131fu_1","px-1":"_px-1_131fu_1","px-12":"_px-12_131fu_1","px-2":"_px-2_131fu_1","px-2.5":"_px-2.5_131fu_1","px-4":"_px-4_131fu_1","px-6":"_px-6_131fu_1","px-8":"_px-8_131fu_1","py-1":"_py-1_131fu_1","py-14":"_py-14_131fu_1","py-2":"_py-2_131fu_1","py-3":"_py-3_131fu_1","py-4":"_py-4_131fu_1","py-5":"_py-5_131fu_1","py-8":"_py-8_131fu_1","pl-1":"_pl-1_131fu_1","pt-3":"_pt-3_131fu_1","text-left":"_text-left_131fu_1","text-center":"_text-center_131fu_1","text-[.7rem]":"_text-[.7rem]_131fu_1","text-[1rem]":"_text-[1rem]_131fu_1","text-base":"_text-base_131fu_1","text-sm":"_text-sm_131fu_1","text-xs":"_text-xs_131fu_1","font-bold":"_font-bold_131fu_1","font-medium":"_font-medium_131fu_1","font-semibold":"_font-semibold_131fu_1",uppercase:"_uppercase_131fu_1","leading-[1.2rem]":"_leading-[1.2rem]_131fu_1","!text-green-900":"_!text-green-900_131fu_1","!text-red-900":"_!text-red-900_131fu_1","!text-sky-900":"_!text-sky-900_131fu_1","!text-white":"_!text-white_131fu_1","!text-yellow-900":"_!text-yellow-900_131fu_1","text-blue-600":"_text-blue-600_131fu_1","text-blue-900":"_text-blue-900_131fu_1","text-gray-300":"_text-gray-300_131fu_1","text-gray-400":"_text-gray-400_131fu_1","text-gray-500":"_text-gray-500_131fu_1","text-gray-600":"_text-gray-600_131fu_1","text-gray-700":"_text-gray-700_131fu_1","text-green-700":"_text-green-700_131fu_1","text-red-400":"_text-red-400_131fu_1","text-red-500":"_text-red-500_131fu_1","text-red-800":"_text-red-800_131fu_1","text-red-900":"_text-red-900_131fu_1","text-slate-200":"_text-slate-200_131fu_1","text-slate-300":"_text-slate-300_131fu_1","text-slate-50":"_text-slate-50_131fu_1","text-slate-500":"_text-slate-500_131fu_1","text-white":"_text-white_131fu_1","text-yellow-600":"_text-yellow-600_131fu_1","text-zinc-500":"_text-zinc-500_131fu_1","text-zinc-800":"_text-zinc-800_131fu_1","line-through":"_line-through_131fu_1","opacity-0":"_opacity-0_131fu_1","opacity-20":"_opacity-20_131fu_1","opacity-50":"_opacity-50_131fu_1","opacity-70":"_opacity-70_131fu_1","opacity-80":"_opacity-80_131fu_1","shadow-none":"_shadow-none_131fu_1","outline-none":"_outline-none_131fu_1",outline:"_outline_131fu_1","outline-offset-0":"_outline-offset-0_131fu_1",filter:"_filter_131fu_1",transition:"_transition_131fu_1","transition-all":"_transition-all_131fu_1","duration-300":"_duration-300_131fu_1","danx-app":"_danx-app_131fu_4","q-tab":"_q-tab_131fu_4","q-table__card":"_q-table__card_131fu_7","q-checkbox__inner":"_q-checkbox__inner_131fu_11","q-toolbar":"_q-toolbar_131fu_14","q-notification__actions":"_q-notification__actions_131fu_19","q-date":"_q-date_131fu_22","q-date__view":"_q-date__view_131fu_25","q-field":"_q-field_131fu_28","q-field--auto-height":"_q-field--auto-height_131fu_28","q-field__control":"_q-field__control_131fu_28","q-field__native":"_q-field__native_131fu_31","q-field--labeled":"_q-field--labeled_131fu_35","q-field__control-container":"_q-field__control-container_131fu_35","q-textarea":"_q-textarea_131fu_38","q-field__marginal":"_q-field__marginal_131fu_41","q-field__input":"_q-field__input_131fu_41","q-field__label":"_q-field__label_131fu_41","q-btn":"_q-btn_131fu_48","q-item":"_q-item_131fu_56","q-tab-panels":"_q-tab-panels_131fu_60","q-panel":"_q-panel_131fu_64",scroll:"_scroll_131fu_67","q-tab-panel":"_q-tab-panel_131fu_60","dx-dialog":"_dx-dialog_131fu_77","q-card__section--vert":"_q-card__section--vert_131fu_77","q-banner":"_q-banner_131fu_81",app:"_app_131fu_1","main-layout":"_main-layout_131fu_1","is-disabled":"_is-disabled_131fu_98","disable-all-transitions":"_disable-all-transitions_131fu_103","v-enter-active":"_v-enter-active_131fu_107","v-leave-active":"_v-leave-active_131fu_108","v-enter-from":"_v-enter-from_131fu_112","v-leave-to":"_v-leave-to_131fu_113","dx-action-table":"_dx-action-table_131fu_117","dx-column-shrink":"_dx-column-shrink_131fu_117","action-button":"_action-button_131fu_121","play-button":"_play-button_131fu_128","hover:bg-blue-200":"_hover:bg-blue-200_131fu_1","hover:bg-gray-200":"_hover:bg-gray-200_131fu_1","hover:bg-green-100":"_hover:bg-green-100_131fu_1","hover:bg-red-100":"_hover:bg-red-100_131fu_1","hover:bg-red-200":"_hover:bg-red-200_131fu_1","hover:bg-slate-200":"_hover:bg-slate-200_131fu_1","hover:bg-slate-300":"_hover:bg-slate-300_131fu_1","hover:bg-slate-600":"_hover:bg-slate-600_131fu_1","hover:text-blue-500":"_hover:text-blue-500_131fu_1","hover:text-blue-600":"_hover:text-blue-600_131fu_1","hover:opacity-100":"_hover:opacity-100_131fu_1","hover:opacity-20":"_hover:opacity-20_131fu_1","hover:opacity-70":"_hover:opacity-70_131fu_1","hover:outline-4":"_hover:outline-4_131fu_1","focus:bg-blue-200":"_focus:bg-blue-200_131fu_1","focus:outline-4":"_focus:outline-4_131fu_1","focus:outline-blue-200":"_focus:outline-blue-200_131fu_1"}}]]),_g=["src","alt"],cc={__name:"SvgImg",props:{svg:{type:[String,Object,Function],required:!0},alt:{type:String,default:""}},setup(t){const e=t,n=i.computed(()=>e.svg.default?e.svg.default:e.svg),r=i.computed(()=>typeof n.value=="string");return(o,s)=>r.value?(i.openBlock(),i.createElementBlock("img",{key:0,src:n.value,alt:t.alt},null,8,_g)):(i.openBlock(),i.createBlock(i.resolveDynamicComponent(n.value),{key:1}))}},mg={class:"address-format"},pg={key:0,class:"address-attn"},gg={key:1,class:"address-name"},yg={class:"address-line-1"},bg={key:0,class:"address-line-2"},wg={key:1,class:"address-line-3"},kg={class:"address-city-state-zip"},xg={__name:"AddressFormat",props:{address:{type:Object,required:!0}},setup(t){return(e,n)=>(i.openBlock(),i.createElementBlock("div",mg,[t.address.attn?(i.openBlock(),i.createElementBlock("div",pg,"Attn: "+i.toDisplayString(t.address.attn),1)):t.address.name?(i.openBlock(),i.createElementBlock("div",gg,i.toDisplayString(t.address.name),1)):i.createCommentVNode("",!0),t.address.line1?(i.openBlock(),i.createElementBlock(i.Fragment,{key:2},[i.createElementVNode("div",yg,i.toDisplayString(t.address.line1),1),t.address.line2?(i.openBlock(),i.createElementBlock("div",bg,i.toDisplayString(t.address.line2),1)):i.createCommentVNode("",!0),t.address.line3?(i.openBlock(),i.createElementBlock("div",wg,i.toDisplayString(t.address.line3),1)):i.createCommentVNode("",!0),i.createElementVNode("div",kg,[t.address.city?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createTextVNode(i.toDisplayString(t.address.city)+",",1)],64)):i.createCommentVNode("",!0),i.createTextVNode(" "+i.toDisplayString(t.address.state)+" "+i.toDisplayString(t.address.zip_code),1)])],64)):i.createCommentVNode("",!0)]))}},Sg={__name:"FlatListFormat",props:{items:{type:Array,required:!0},column:{type:String,required:!0}},setup(t){return(e,n)=>(i.openBlock(),i.createElementBlock("ul",null,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.items,r=>(i.openBlock(),i.createElementBlock("li",{key:r[t.column]},i.toDisplayString(r[t.column]),1))),128))]))}},Cg={class:"flex flex-nowrap items-center"},Eg={key:0,class:"whitespace-nowrap"},Tg={__name:"GpsCoordinatesFormat",props:{location:{type:Object,default:null},decimals:{type:Number,default:6},iconClass:{type:String,default:"w-7"}},setup(t){return(e,n)=>{var r;return i.openBlock(),i.createElementBlock("div",Cg,[i.createVNode(i.unref(mm),{class:i.normalizeClass(["mr-1 ml-[-.2em]",t.iconClass])},null,8,["class"]),(r=t.location)!=null&&r.latitude?(i.openBlock(),i.createElementBlock("div",Eg,i.toDisplayString(t.location.latitude.toFixed(t.decimals))+", "+i.toDisplayString(t.location.longitude.toFixed(t.decimals)),1)):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.createTextVNode(" Unknown ")],64))])}}},Ng={class:"flex items-center flex-nowrap"},Bg={__name:"IconWithTextFormat",props:{icon:{type:[String,Object],required:!0},iconClass:{type:String,default:"w-6"},text:{type:String,default:null},textClass:{type:String,default:"ml-2"}},setup(t){return(e,n)=>(i.openBlock(),i.createElementBlock("div",Ng,[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(t.icon),{class:i.normalizeClass(t.iconClass)},null,8,["class"])),i.createElementVNode("div",{class:i.normalizeClass(t.textClass)},[i.renderSlot(e.$slots,"default",{},()=>[i.createTextVNode(i.toDisplayString(t.text),1)])],2)]))}},Ig={class:"text-xs font-bold"},$g={__name:"LabelValueFormat",props:{label:{type:String,required:!0},value:{type:[String,Number],default:"-"},dense:Boolean,nowrap:Boolean,loading:Boolean},setup(t){return(e,n)=>{const r=i.resolveComponent("QSpinnerTail");return i.openBlock(),i.createElementBlock("div",null,[i.createElementVNode("div",Ig,i.toDisplayString(t.label),1),i.createElementVNode("div",{class:i.normalizeClass({"mt-2":!t.dense,"mt-1":t.dense,"text-no-wrap":t.nowrap})},[t.loading?(i.openBlock(),i.createBlock(r,{key:0})):i.renderSlot(e.$slots,"default",{key:1},()=>[i.createTextVNode(i.toDisplayString(t.value||"-"),1)])],2)])}}},Fg={class:"flex-grow max-w-full"},uc={__name:"CollapsableSidebar",props:{rightSide:Boolean,displayClass:{type:String,default:"flex flex-col"},maxWidth:{type:String,default:"13.5rem"},minWidth:{type:String,default:"5.5rem"},disabled:Boolean,collapse:Boolean,name:{type:String,default:"sidebar"},toggleAtTop:Boolean,toggleClass:{type:String,default:""},hideToggleOnCollapse:Boolean},emits:["collapse","update:collapse"],setup(t,{emit:e}){const n=e,r=t,o=i.ref(xt(r.name+"-is-collapsed",r.collapse));function s(c){o.value=c,Pt(r.name+"-is-collapsed",!!o.value)}function l(){s(!o.value),n("collapse",o.value),n("update:collapse",o.value)}i.onMounted(()=>{n("collapse",o.value),n("update:collapse",o.value)});const a=i.computed(()=>({width:o.value?r.minWidth:r.maxWidth}));return i.watch(()=>r.collapse,()=>{s(r.collapse)}),(c,u)=>{const d=i.resolveComponent("QBtn");return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["dx-collapsable-sidebar overflow-y-auto overflow-x-hidden scroll-smooth flex-shrink-0 transition-all relative",{"is-collapsed":o.value,"is-right-side":t.rightSide,[t.displayClass]:!0}]),style:i.normalizeStyle(a.value)},[i.createElementVNode("div",Fg,[i.renderSlot(c.$slots,"default",{isCollapsed:o.value})]),!t.disabled&&(!t.hideToggleOnCollapse||!o.value)?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[t.toggleAtTop?(i.openBlock(),i.createElementBlock("div",{key:1,class:i.normalizeClass(["absolute top-0 right-0 cursor-pointer p-2",t.toggleClass]),onClick:l},[i.createVNode(i.unref(Ha),{class:i.normalizeClass(["w-5 transition-all",{"rotate-180":t.rightSide?!o.value:o.value}])},null,8,["class"])],2)):(i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass(["flex w-full p-4",t.rightSide?"justify-start":"justify-end"])},[i.renderSlot(c.$slots,"toggle",{},()=>[i.createVNode(d,{class:"btn-secondary",onClick:l},{default:i.withCtx(()=>[i.createVNode(i.unref(Ha),{class:i.normalizeClass(["w-5 transition-all",{"rotate-180":t.rightSide?!o.value:o.value}])},null,8,["class"])]),_:1})])],2))],64)):i.createCommentVNode("",!0)],6)}}},Ji=ft(i.defineComponent({__name:"ContentDrawer",props:{show:{type:Boolean,default:!1},overlay:{type:Boolean},position:{default:"bottom"},seamless:{type:Boolean},contentClass:{default:"py-8 px-12"},title:{default:"Edit"}},emits:["update:show"],setup(t){return(e,n)=>{const r=i.resolveComponent("QDialog");return i.openBlock(),i.createBlock(r,{"model-value":e.show,maximized:"",position:e.position,seamless:e.seamless,class:i.normalizeClass({"hide-backdrop":!e.overlay}),onHide:n[1]||(n[1]=o=>e.$emit("update:show",!1))},{default:i.withCtx(()=>[i.createElementVNode("div",null,[e.title?(i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass(e.cls["dialog-title"]),onClick:n[0]||(n[0]=i.withModifiers(()=>{},["stop","prevent"]))},i.toDisplayString(e.title),3)):i.createCommentVNode("",!0),i.createElementVNode("div",{class:i.normalizeClass({[e.cls["dialog-content"]]:!0,[e.contentClass]:!0})},[i.renderSlot(e.$slots,"default")],2)])]),_:3},8,["model-value","position","seamless","class"])}}}),[["__cssModules",{cls:{"!visible":"_!visible_1816t_1",visible:"_visible_1816t_1",collapse:"_collapse_1816t_1",static:"_static_1816t_1",absolute:"_absolute_1816t_1",relative:"_relative_1816t_1",sticky:"_sticky_1816t_1","left-0":"_left-0_1816t_1","right-0":"_right-0_1816t_1","right-1":"_right-1_1816t_1","top-0":"_top-0_1816t_1","top-1":"_top-1_1816t_1","z-10":"_z-10_1816t_1","m-2":"_m-2_1816t_1","m-4":"_m-4_1816t_1","m-auto":"_m-auto_1816t_1","mx-1":"_mx-1_1816t_1","mx-4":"_mx-4_1816t_1","mx-auto":"_mx-auto_1816t_1","my-2":"_my-2_1816t_1","!mr-1":"_!mr-1_1816t_1","mb-2":"_mb-2_1816t_1","mb-4":"_mb-4_1816t_1","ml-1":"_ml-1_1816t_1","ml-2":"_ml-2_1816t_1","ml-2.5":"_ml-2.5_1816t_1","ml-3":"_ml-3_1816t_1","ml-4":"_ml-4_1816t_1","ml-5":"_ml-5_1816t_1","ml-[-.2em]":"_ml-[-.2em]_1816t_1","mr-1":"_mr-1_1816t_1","mr-2":"_mr-2_1816t_1","mr-3":"_mr-3_1816t_1","mr-4":"_mr-4_1816t_1","mt-1":"_mt-1_1816t_1","mt-2":"_mt-2_1816t_1","mt-3":"_mt-3_1816t_1","mt-4":"_mt-4_1816t_1",block:"_block_1816t_1","inline-block":"_inline-block_1816t_1",inline:"_inline_1816t_1",flex:"_flex_1816t_1",table:"_table_1816t_1",hidden:"_hidden_1816t_1","h-10":"_h-10_1816t_1","h-16":"_h-16_1816t_1","h-32":"_h-32_1816t_1","h-4":"_h-4_1816t_1","h-5":"_h-5_1816t_1","h-6":"_h-6_1816t_1","h-8":"_h-8_1816t_1","h-[2.25rem]":"_h-[2.25rem]_1816t_1","h-full":"_h-full_1816t_1","max-h-full":"_max-h-full_1816t_1","w-1/5":"_w-1/5_1816t_1","w-10":"_w-10_1816t_1","w-16":"_w-16_1816t_1","w-2/5":"_w-2/5_1816t_1","w-24":"_w-24_1816t_1","w-3":"_w-3_1816t_1","w-3/5":"_w-3/5_1816t_1","w-32":"_w-32_1816t_1","w-4":"_w-4_1816t_1","w-48":"_w-48_1816t_1","w-5":"_w-5_1816t_1","w-6":"_w-6_1816t_1","w-7":"_w-7_1816t_1","w-72":"_w-72_1816t_1","w-8":"_w-8_1816t_1","w-96":"_w-96_1816t_1","w-[13.5rem]":"_w-[13.5rem]_1816t_1","w-[6.5rem]":"_w-[6.5rem]_1816t_1","w-[80rem]":"_w-[80rem]_1816t_1","w-full":"_w-full_1816t_1","!min-w-0":"_!min-w-0_1816t_1","max-w-full":"_max-w-full_1816t_1","flex-shrink":"_flex-shrink_1816t_1","flex-shrink-0":"_flex-shrink-0_1816t_1",shrink:"_shrink_1816t_1","flex-grow":"_flex-grow_1816t_1",grow:"_grow_1816t_1","rotate-180":"_rotate-180_1816t_1",transform:"_transform_1816t_1","cursor-ew-resize":"_cursor-ew-resize_1816t_1","cursor-move":"_cursor-move_1816t_1","cursor-not-allowed":"_cursor-not-allowed_1816t_1","cursor-ns-resize":"_cursor-ns-resize_1816t_1","cursor-pointer":"_cursor-pointer_1816t_1",resize:"_resize_1816t_1","flex-col":"_flex-col_1816t_1","flex-nowrap":"_flex-nowrap_1816t_1","items-center":"_items-center_1816t_1","items-stretch":"_items-stretch_1816t_1","justify-start":"_justify-start_1816t_1","justify-end":"_justify-end_1816t_1","justify-center":"_justify-center_1816t_1","justify-between":"_justify-between_1816t_1","gap-x-4":"_gap-x-4_1816t_1","gap-y-0":"_gap-y-0_1816t_1","gap-y-1":"_gap-y-1_1816t_1","space-x-1":"_space-x-1_1816t_1","space-x-2":"_space-x-2_1816t_1","self-center":"_self-center_1816t_1","overflow-auto":"_overflow-auto_1816t_1","overflow-hidden":"_overflow-hidden_1816t_1","overflow-y-auto":"_overflow-y-auto_1816t_73","overflow-x-hidden":"_overflow-x-hidden_1816t_1","scroll-smooth":"_scroll-smooth_1816t_1","overflow-ellipsis":"_overflow-ellipsis_1816t_1","whitespace-normal":"_whitespace-normal_1816t_1","whitespace-nowrap":"_whitespace-nowrap_1816t_1",rounded:"_rounded_1816t_1","rounded-2xl":"_rounded-2xl_1816t_1","rounded-lg":"_rounded-lg_1816t_1","rounded-md":"_rounded-md_1816t_1","rounded-sm":"_rounded-sm_1816t_1","!rounded-l-none":"_!rounded-l-none_1816t_1","!rounded-r-none":"_!rounded-r-none_1816t_1","rounded-b-lg":"_rounded-b-lg_1816t_1","rounded-t-lg":"_rounded-t-lg_1816t_1","rounded-t-md":"_rounded-t-md_1816t_1","!border-0":"_!border-0_1816t_1",border:"_border_1816t_1","border-b":"_border-b_1816t_1","border-l":"_border-l_1816t_1","border-l-0":"_border-l-0_1816t_1","border-r":"_border-r_1816t_1","border-solid":"_border-solid_1816t_1","border-dashed":"_border-dashed_1816t_1","border-none":"_border-none_1816t_1","border-blue-600":"_border-blue-600_1816t_1","border-blue-700":"_border-blue-700_1816t_1","border-gray-200":"_border-gray-200_1816t_1","border-gray-300":"_border-gray-300_1816t_1","border-slate-200":"_border-slate-200_1816t_1","bg-black":"_bg-black_1816t_1","bg-blue-200":"_bg-blue-200_1816t_1","bg-blue-600":"_bg-blue-600_1816t_1","bg-emerald-200":"_bg-emerald-200_1816t_1","bg-gray-100":"_bg-gray-100_1816t_1","bg-gray-200":"_bg-gray-200_1816t_1","bg-gray-400":"_bg-gray-400_1816t_1","bg-gray-500":"_bg-gray-500_1816t_1","bg-green-200":"_bg-green-200_1816t_1","bg-green-300":"_bg-green-300_1816t_1","bg-green-900":"_bg-green-900_1816t_1","bg-red-200":"_bg-red-200_1816t_1","bg-red-300":"_bg-red-300_1816t_1","bg-red-900":"_bg-red-900_1816t_1","bg-sky-300":"_bg-sky-300_1816t_1","bg-sky-800":"_bg-sky-800_1816t_1","bg-slate-100":"_bg-slate-100_1816t_1","bg-slate-500":"_bg-slate-500_1816t_1","bg-slate-800":"_bg-slate-800_1816t_1","bg-slate-900":"_bg-slate-900_1816t_1","bg-transparent":"_bg-transparent_1816t_1","bg-white":"_bg-white_1816t_1","bg-yellow-300":"_bg-yellow-300_1816t_1","!p-2":"_!p-2_1816t_1","p-0":"_p-0_1816t_1","p-1":"_p-1_1816t_1","p-2":"_p-2_1816t_1","p-3":"_p-3_1816t_1","p-4":"_p-4_1816t_1","!py-0":"_!py-0_1816t_1","px-1":"_px-1_1816t_1","px-12":"_px-12_1816t_1","px-2":"_px-2_1816t_1","px-2.5":"_px-2.5_1816t_1","px-4":"_px-4_1816t_1","px-6":"_px-6_1816t_1","px-8":"_px-8_1816t_1","py-1":"_py-1_1816t_1","py-14":"_py-14_1816t_1","py-2":"_py-2_1816t_1","py-3":"_py-3_1816t_1","py-4":"_py-4_1816t_1","py-5":"_py-5_1816t_1","py-8":"_py-8_1816t_1","pl-1":"_pl-1_1816t_1","pt-3":"_pt-3_1816t_1","text-left":"_text-left_1816t_1","text-center":"_text-center_1816t_1","text-[.7rem]":"_text-[.7rem]_1816t_1","text-[1rem]":"_text-[1rem]_1816t_1","text-base":"_text-base_1816t_1","text-sm":"_text-sm_1816t_1","text-xs":"_text-xs_1816t_1","font-bold":"_font-bold_1816t_1","font-medium":"_font-medium_1816t_1","font-semibold":"_font-semibold_1816t_1",uppercase:"_uppercase_1816t_1","leading-[1.2rem]":"_leading-[1.2rem]_1816t_1","!text-green-900":"_!text-green-900_1816t_1","!text-red-900":"_!text-red-900_1816t_1","!text-sky-900":"_!text-sky-900_1816t_1","!text-white":"_!text-white_1816t_1","!text-yellow-900":"_!text-yellow-900_1816t_1","text-blue-600":"_text-blue-600_1816t_1","text-blue-900":"_text-blue-900_1816t_1","text-gray-300":"_text-gray-300_1816t_1","text-gray-400":"_text-gray-400_1816t_1","text-gray-500":"_text-gray-500_1816t_1","text-gray-600":"_text-gray-600_1816t_1","text-gray-700":"_text-gray-700_1816t_1","text-green-700":"_text-green-700_1816t_1","text-red-400":"_text-red-400_1816t_1","text-red-500":"_text-red-500_1816t_1","text-red-800":"_text-red-800_1816t_1","text-red-900":"_text-red-900_1816t_1","text-slate-200":"_text-slate-200_1816t_1","text-slate-300":"_text-slate-300_1816t_1","text-slate-50":"_text-slate-50_1816t_1","text-slate-500":"_text-slate-500_1816t_1","text-white":"_text-white_1816t_1","text-yellow-600":"_text-yellow-600_1816t_1","text-zinc-500":"_text-zinc-500_1816t_1","text-zinc-800":"_text-zinc-800_1816t_1","line-through":"_line-through_1816t_1","opacity-0":"_opacity-0_1816t_1","opacity-20":"_opacity-20_1816t_1","opacity-50":"_opacity-50_1816t_1","opacity-70":"_opacity-70_1816t_1","opacity-80":"_opacity-80_1816t_1","shadow-none":"_shadow-none_1816t_1","outline-none":"_outline-none_1816t_1",outline:"_outline_1816t_1","outline-offset-0":"_outline-offset-0_1816t_1",filter:"_filter_1816t_1",transition:"_transition_1816t_1","transition-all":"_transition-all_1816t_1","duration-300":"_duration-300_1816t_1","danx-app":"_danx-app_1816t_4","q-tab":"_q-tab_1816t_4","q-table__card":"_q-table__card_1816t_7","q-checkbox__inner":"_q-checkbox__inner_1816t_11","q-toolbar":"_q-toolbar_1816t_14","q-notification__actions":"_q-notification__actions_1816t_19","q-date":"_q-date_1816t_22","q-date__view":"_q-date__view_1816t_25","q-field":"_q-field_1816t_28","q-field--auto-height":"_q-field--auto-height_1816t_28","q-field__control":"_q-field__control_1816t_28","q-field__native":"_q-field__native_1816t_31","q-field--labeled":"_q-field--labeled_1816t_35","q-field__control-container":"_q-field__control-container_1816t_35","q-textarea":"_q-textarea_1816t_38","q-field__marginal":"_q-field__marginal_1816t_41","q-field__input":"_q-field__input_1816t_41","q-field__label":"_q-field__label_1816t_41","q-btn":"_q-btn_1816t_48","q-item":"_q-item_1816t_56","q-tab-panels":"_q-tab-panels_1816t_60","q-panel":"_q-panel_1816t_64",scroll:"_scroll_1816t_67","q-tab-panel":"_q-tab-panel_1816t_60","dx-dialog":"_dx-dialog_1816t_77","q-card__section--vert":"_q-card__section--vert_1816t_77","q-banner":"_q-banner_1816t_81",app:"_app_1816t_1","main-layout":"_main-layout_1816t_1","is-disabled":"_is-disabled_1816t_98","disable-all-transitions":"_disable-all-transitions_1816t_103","v-enter-active":"_v-enter-active_1816t_107","v-leave-active":"_v-leave-active_1816t_108","v-enter-from":"_v-enter-from_1816t_112","v-leave-to":"_v-leave-to_1816t_113","dx-action-table":"_dx-action-table_1816t_117","dx-column-shrink":"_dx-column-shrink_1816t_117","dialog-title":"_dialog-title_1816t_121","dialog-content":"_dialog-content_1816t_128","hover:bg-blue-200":"_hover:bg-blue-200_1816t_1","hover:bg-gray-200":"_hover:bg-gray-200_1816t_1","hover:bg-green-100":"_hover:bg-green-100_1816t_1","hover:bg-red-100":"_hover:bg-red-100_1816t_1","hover:bg-red-200":"_hover:bg-red-200_1816t_1","hover:bg-slate-200":"_hover:bg-slate-200_1816t_1","hover:bg-slate-300":"_hover:bg-slate-300_1816t_1","hover:bg-slate-600":"_hover:bg-slate-600_1816t_1","hover:text-blue-500":"_hover:text-blue-500_1816t_1","hover:text-blue-600":"_hover:text-blue-600_1816t_1","hover:opacity-100":"_hover:opacity-100_1816t_1","hover:opacity-20":"_hover:opacity-20_1816t_1","hover:opacity-70":"_hover:opacity-70_1816t_1","hover:outline-4":"_hover:outline-4_1816t_1","focus:bg-blue-200":"_focus:bg-blue-200_1816t_1","focus:outline-4":"_focus:outline-4_1816t_1","focus:outline-blue-200":"_focus:outline-blue-200_1816t_1"}}]]),dc=t=>i.isVNode(t.vnode)?t.vnode:i.isRef(t.vnode)?t.vnode.value:typeof t.vnode=="function"?t.vnode(t.props,t.params):null;dc.props={vnode:{type:[Function,Object],required:!0},props:{type:Object,default:()=>({})},params:{type:Object,default:null}};const ln=dc,Ag={__name:"ActionVnode",setup(t){const e=i.ref(!1);async function n(r){e.value=!0,await bn.value.confirm(r),e.value=!1}return(r,o)=>(i.openBlock(),i.createElementBlock("div",null,[i.unref(bn)?(i.openBlock(),i.createBlock(i.unref(ln),{key:0,vnode:i.unref(bn).vnode,"is-saving":e.value,onConfirm:n,onClose:i.unref(bn).cancel},null,8,["vnode","is-saving","onClose"])):i.createCommentVNode("",!0)]))}},fc={__name:"RenderComponent",props:{component:{type:[Function,Object],required:!0},params:{type:Array,default:()=>[]},overrideProps:{type:Object,default:()=>({})}},emits:["action"],setup(t){const e=t,n=i.computed(()=>{var o,s,l;return((o=r.value)==null?void 0:o.value)||((l=(s=r.value)==null?void 0:s.props)==null?void 0:l.text)}),r=i.computed(()=>typeof e.component=="function"?e.component(...e.params):e.component);return(o,s)=>n.value?(i.openBlock(),i.createBlock(i.resolveDynamicComponent(r.value.is),i.mergeProps({key:0},{...r.value.props,...t.overrideProps},{onAction:s[0]||(s[0]=l=>o.$emit("action",l))}),{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(n.value),1)]),_:1},16)):(i.openBlock(),i.createBlock(i.resolveDynamicComponent(r.value.is),i.mergeProps({key:1},{...r.value.props,...t.overrideProps},{onAction:s[1]||(s[1]=l=>o.$emit("action",l))}),null,16))}},Og=["href"],hc=i.defineComponent({__name:"PopoverMenu",props:{items:{},tooltip:{default:null},disabled:{type:Boolean},loading:{type:Boolean},loadingComponent:{default:()=>({is:J.QSpinner,props:{class:"w-4 h-4"}})}},emits:["action","action-item"],setup(t,{emit:e}){const n=e;function r(o){n("action",o.name||o.action),n("action-item",o)}return(o,s)=>{const l=i.resolveComponent("QTooltip"),a=i.resolveComponent("QItem"),c=i.resolveComponent("QList"),u=i.resolveComponent("QMenu");return i.openBlock(),i.createElementBlock("a",{class:i.normalizeClass(["p-3 dx-popover-menu",{"opacity-50 cursor-not-allowed":o.disabled}])},[o.$slots.tooltip||o.tooltip?(i.openBlock(),i.createBlock(l,{key:0},{default:i.withCtx(()=>[i.renderSlot(o.$slots,"tooltip",{},()=>[i.createTextVNode(i.toDisplayString(o.tooltip),1)])]),_:3})):i.createCommentVNode("",!0),i.createVNode(i.Transition,{mode:"out-in",duration:150},{default:i.withCtx(()=>[o.loading?(i.openBlock(),i.createBlock(i.unref(fc),{key:0,component:o.loadingComponent},null,8,["component"])):(i.openBlock(),i.createBlock(i.unref(sp),{key:1,class:"w-4 dx-menu-icon"}))]),_:1}),o.disabled?i.createCommentVNode("",!0):(i.openBlock(),i.createBlock(u,{key:1,"auto-close":""},{default:i.withCtx(()=>[i.createVNode(c,null,{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(o.items,d=>(i.openBlock(),i.createElementBlock(i.Fragment,{key:d.name},[d.url?(i.openBlock(),i.createElementBlock("a",{key:0,class:i.normalizeClass(["q-item",d.class]),target:"_blank",href:d.url},[d.icon?(i.openBlock(),i.createBlock(i.resolveDynamicComponent(d.icon),{key:0,class:i.normalizeClass([d.iconClass,"mr-3 w-4"])},null,8,["class"])):i.createCommentVNode("",!0),i.createTextVNode(" "+i.toDisplayString(d.label),1)],10,Og)):(i.openBlock(),i.createBlock(a,{key:1,clickable:"",class:i.normalizeClass(d.class),onClick:f=>r(d)},{default:i.withCtx(()=>[d.icon?(i.openBlock(),i.createBlock(i.resolveDynamicComponent(d.icon),{key:0,class:i.normalizeClass([d.iconClass,"mr-3 w-4"])},null,8,["class"])):i.createCommentVNode("",!0),i.createTextVNode(" "+i.toDisplayString(d.label),1)]),_:2},1032,["class","onClick"]))],64))),128))]),_:1})]),_:1}))],2)}}}),Dg={__name:"InteractiveTooltip",props:{tooltip:{type:String,default:""}},setup(t){const e=i.ref(!1),n=i.ref(null),r=i.ref(!1),o=i.ref(!1);let s=null;i.onMounted(()=>{n.value.$el.parentNode.addEventListener("mouseover",l),n.value.$el.parentNode.addEventListener("mouseleave",a)});function l(){e.value=!0,o.value=!0,s&&clearTimeout(s)}function a(){o.value=!1,e.value&&d()}function c(){r.value=!0,e.value=!0,s&&clearTimeout(s)}function u(){r.value=!1,e.value&&d()}function d(){s&&clearTimeout(s),s=setTimeout(()=>{r.value||o.value?d():e.value=!1},200)}return(f,h)=>{const _=i.resolveComponent("QTooltip");return i.openBlock(),i.createBlock(_,{ref_key:"tooltipBox",ref:n,modelValue:e.value,"onUpdate:modelValue":h[0]||(h[0]=p=>e.value=p),class:"interactive-tooltip","no-parent-event":"","transition-duration":200,onMouseenter:c,onMouseleave:u},{default:i.withCtx(()=>[i.renderSlot(f.$slots,"default",{},()=>[i.createTextVNode(i.toDisplayString(t.tooltip),1)])]),_:3},8,["modelValue"])}}},Pg={class:"flex items-center w-full"},Mg={class:"flex-grow text-sm"},Lg={__name:"BadgeTab",props:{name:{type:String,required:!0},label:{type:String,required:!0},count:{type:[String,Number],default:""}},setup(t){return(e,n)=>{const r=i.resolveComponent("QBadge"),o=i.resolveComponent("QTab");return i.openBlock(),i.createBlock(o,{name:t.name,class:"w-full","content-class":"w-full"},{default:i.withCtx(()=>[i.createElementVNode("div",Pg,[i.createElementVNode("div",Mg,i.toDisplayString(t.label),1),i.createVNode(r,{class:"bg-gray-400",label:t.count,rounded:""},null,8,["label"])])]),_:1},8,["name"])}}},vg={class:"flex items-center w-full"},Vg={class:"flex-grow text-sm"},qg={__name:"IndicatorTab",props:{name:{type:String,required:!0},label:{type:String,required:!0},overdue:Boolean,warning:Boolean,isActive:Boolean},setup(t){return(e,n)=>{const r=i.resolveComponent("QTab");return i.openBlock(),i.createBlock(r,{name:t.name,class:"w-full","content-class":"w-full"},{default:i.withCtx(()=>[i.createElementVNode("div",vg,[i.createElementVNode("div",Vg,i.toDisplayString(t.label),1),i.createElementVNode("div",null,[t.overdue?(i.openBlock(),i.createBlock(i.unref(Ia),{key:0,class:i.normalizeClass(["w-5 ml-2",t.isActive?"text-white":"text-red-400"])},null,8,["class"])):t.warning?(i.openBlock(),i.createBlock(i.unref(Ua),{key:1,class:"text-yellow-600 w-5"})):i.createCommentVNode("",!0)])])]),_:1},8,["name"])}}},Rg={};function Ug(t,e){return i.openBlock(),i.createBlock(i.Transition,{name:"autoHeight"},{default:i.withCtx(()=>[i.renderSlot(t.$slots,"default")]),_:3})}const jg=ft(Rg,[["render",Ug]]),_c={__name:"ListTransition",props:{name:{type:String,default:"fade-list"}},setup(t){return(e,n)=>(i.openBlock(),i.createBlock(i.TransitionGroup,{tag:"div",name:t.name,class:"relative"},{default:i.withCtx(()=>[i.renderSlot(e.$slots,"default")]),_:3},8,["name"]))}},zg=i.defineComponent({__name:"MaxHeightTransition",props:{maxHeight:{}},setup(t){return i.useCssVars(e=>({"0f80b08a":e.maxHeight})),(e,n)=>(i.openBlock(),i.createBlock(i.Transition,{name:"maxHeight"},{default:i.withCtx(()=>[i.renderSlot(e.$slots,"default")]),_:3}))}}),Hg={__name:"SlideTransition",props:{name:{type:String,default:"slide"}},setup(t){return(e,n)=>(i.openBlock(),i.createBlock(i.Transition,{name:t.name},{default:i.withCtx(()=>[i.renderSlot(e.$slots,"default")]),_:3},8,["name"]))}};function Et(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function mc(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}/*!
1
+ (function(S,i){typeof exports=="object"&&typeof module<"u"?i(exports,require("vue"),require("quasar")):typeof define=="function"&&define.amd?define(["exports","vue","quasar"],i):(S=typeof globalThis<"u"?globalThis:S||self,i(S.Danx={},S.Vue,S.Quasar))})(this,function(S,i,J){"use strict";var O4=Object.defineProperty;var D4=(S,i,J)=>i in S?O4(S,i,{enumerable:!0,configurable:!0,writable:!0,value:J}):S[i]=J;var G=(S,i,J)=>(D4(S,typeof i!="symbol"?i+"":i,J),J);const oe=i.shallowRef({tinyMceApiKey:"set-api-key-in-danx-options",router:void 0,request:{baseUrl:"",headers:{},onUnauthorized:void 0},fileUpload:{directory:"file-upload",createPresignedUpload:null,completePresignedUpload:null,refreshFile:null},flashMessages:{default:{},success:{},warning:{},error:{}}});function B1(t){oe.value={...oe.value,...t,fileUpload:{...oe.value.fileUpload,...t.fileUpload},flashMessages:{...oe.value.flashMessages,...t.flashMessages},request:{...oe.value.request,...t.request}}}function I1(t){return i.getCurrentScope()?(i.onScopeDispose(t),!0):!1}function Ta(t){return typeof t=="function"?t():i.unref(t)}const $1=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Na=()=>{};function F1(t,e){function n(...r){return new Promise((o,s)=>{Promise.resolve(t(()=>e.apply(this,r),{fn:e,thisArg:this,args:r})).then(o).catch(s)})}return n}function A1(t,e={}){let n,r,o=Na;const s=a=>{clearTimeout(a),o(),o=Na};return a=>{const c=Ta(t),u=Ta(e.maxWait);return n&&s(n),c<=0||u!==void 0&&u<=0?(r&&(s(r),r=null),Promise.resolve(a())):new Promise((d,f)=>{o=e.rejectOnCancel?f:d,u&&!r&&(r=setTimeout(()=>{n&&s(n),r=null,d(a())},u)),n=setTimeout(()=>{r&&s(r),r=null,d(a())},c)})}}function rn(t,e=200,n={}){return F1(A1(e,n),t)}const O1=$1?window.navigator:void 0;function D1(){const t=i.ref(!1),e=i.getCurrentInstance();return e&&i.onMounted(()=>{t.value=!0},e),t}function P1(t){const e=D1();return i.computed(()=>(e.value,!!t()))}function M1(t={}){const{enableHighAccuracy:e=!0,maximumAge:n=3e4,timeout:r=27e3,navigator:o=O1,immediate:s=!0}=t,l=P1(()=>o&&"geolocation"in o),a=i.ref(null),c=i.shallowRef(null),u=i.ref({accuracy:0,latitude:Number.POSITIVE_INFINITY,longitude:Number.POSITIVE_INFINITY,altitude:null,altitudeAccuracy:null,heading:null,speed:null});function d(p){a.value=p.timestamp,u.value=p.coords,c.value=null}let f;function h(){l.value&&(f=o.geolocation.watchPosition(d,p=>c.value=p,{enableHighAccuracy:e,maximumAge:n,timeout:r}))}s&&h();function _(){f&&o&&o.geolocation.clearWatch(f)}return I1(()=>{_()}),{isSupported:l,coords:u,locatedAt:a,error:c,resume:h,pause:_}}const L1={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 448 512"},v1=[i.createElementVNode("path",{d:"M438.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L160 338.7l233.4-233.3c12.5-12.5 32.8-12.5 45.3 0z"},null,-1)];function V1(t,e){return i.openBlock(),i.createElementBlock("svg",L1,[...v1])}const q1={render:V1},R1={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 448 512"},U1=[i.createElementVNode("path",{d:"M208 0h124.1C344.8 0 357 5.1 366 14.1L433.9 82c9 9 14.1 21.2 14.1 33.9V336c0 26.5-21.5 48-48 48H208c-26.5 0-48-21.5-48-48V48c0-26.5 21.5-48 48-48M48 128h80v64H64v256h192v-32h64v48c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V176c0-26.5 21.5-48 48-48"},null,-1)];function j1(t,e){return i.openBlock(),i.createElementBlock("svg",R1,[...U1])}const z1={render:j1},H1={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 640 512"},G1=[i.createElementVNode("path",{d:"M38.8 5.1C28.4-3.1 13.3-1.2 5.1 9.2s-6.3 25.5 4.1 33.7l592 464c10.4 8.2 25.5 6.3 33.7-4.1s6.3-25.5-4.1-33.7l-105.2-82.4c39.6-40.6 66.4-86.1 79.9-118.4 3.3-7.9 3.3-16.7 0-24.6-14.9-35.7-46.2-87.7-93-131.1C465.5 68.8 400.8 32 320 32c-68.2 0-125 26.3-169.3 60.8zm184.3 144.4c25.5-23.3 59.6-37.5 96.9-37.5 79.5 0 144 64.5 144 144 0 24.9-6.3 48.3-17.4 68.7L408 294.5c8.4-19.3 10.6-41.4 4.8-63.3-11.1-41.5-47.8-69.4-88.6-71.1-5.8-.2-9.2 6.1-7.4 11.7 2.1 6.4 3.3 13.2 3.3 20.3 0 10.2-2.4 19.8-6.6 28.3l-90.3-70.8zM373 389.9c-16.4 6.5-34.3 10.1-53 10.1-79.5 0-144-64.5-144-144 0-6.9.5-13.6 1.4-20.2l-94.3-74.3c-22.8 29.7-39.1 59.3-48.6 82.2-3.3 7.9-3.3 16.7 0 24.6 14.9 35.7 46.2 87.7 93 131.1 47 43.8 111.7 80.6 192.5 80.6 47.8 0 89.9-12.9 126.2-32.5z"},null,-1)];function Z1(t,e){return i.openBlock(),i.createElementBlock("svg",H1,[...G1])}const W1={render:Z1},Y1={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 576 512"},Q1=[i.createElementVNode("path",{d:"M288 32c-80.8 0-145.5 36.8-192.6 80.6C48.6 156 17.3 208 2.5 243.7c-3.3 7.9-3.3 16.7 0 24.6C17.3 304 48.6 356 95.4 399.4 142.5 443.2 207.2 480 288 480s145.5-36.8 192.6-80.6c46.8-43.5 78.1-95.4 93-131.1 3.3-7.9 3.3-16.7 0-24.6-14.9-35.7-46.2-87.7-93-131.1C433.5 68.8 368.8 32 288 32M144 256a144 144 0 1 1 288 0 144 144 0 1 1-288 0m144-64c0 35.3-28.7 64-64 64-7.1 0-13.9-1.2-20.3-3.3-5.5-1.8-11.9 1.6-11.7 7.4.3 6.9 1.3 13.8 3.2 20.7 13.7 51.2 66.4 81.6 117.6 67.9s81.6-66.4 67.9-117.6c-11.1-41.5-47.8-69.4-88.6-71.1-5.8-.2-9.2 6.1-7.4 11.7 2.1 6.4 3.3 13.2 3.3 20.3"},null,-1)];function K1(t,e){return i.openBlock(),i.createElementBlock("svg",Y1,[...Q1])}const X1={render:K1},J1={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 640 512"},em=[i.createElementVNode("path",{d:"M579.8 267.7c56.5-56.5 56.5-148 0-204.5-50-50-128.8-56.5-186.3-15.4l-1.6 1.1c-14.4 10.3-17.7 30.3-7.4 44.6s30.3 17.7 44.6 7.4l1.6-1.1c32.1-22.9 76-19.3 103.8 8.6 31.5 31.5 31.5 82.5 0 114L422.3 334.8c-31.5 31.5-82.5 31.5-114 0-27.9-27.9-31.5-71.8-8.6-103.8l1.1-1.6c10.3-14.4 6.9-34.4-7.4-44.6s-34.4-6.9-44.6 7.4l-1.1 1.6C206.5 251.2 213 330 263 380c56.5 56.5 148 56.5 204.5 0zM60.2 244.3c-56.5 56.5-56.5 148 0 204.5 50 50 128.8 56.5 186.3 15.4l1.6-1.1c14.4-10.3 17.7-30.3 7.4-44.6s-30.3-17.7-44.6-7.4l-1.6 1.1c-32.1 22.9-76 19.3-103.8-8.6C74 372 74 321 105.5 289.5l112.2-112.3c31.5-31.5 82.5-31.5 114 0 27.9 27.9 31.5 71.8 8.6 103.9l-1.1 1.6c-10.3 14.4-6.9 34.4 7.4 44.6s34.4 6.9 44.6-7.4l1.1-1.6C433.5 260.8 427 182 377 132c-56.5-56.5-148-56.5-204.5 0z"},null,-1)];function tm(t,e){return i.openBlock(),i.createElementBlock("svg",J1,[...em])}const nm={render:tm},rm={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 512 512"},om=[i.createElementVNode("path",{d:"m410.3 231 11.3-11.3-33.9-33.9-62.1-62.1-33.9-33.9-11.3 11.3-22.6 22.6L58.6 322.9c-10.4 10.4-18 23.3-22.2 37.4L1 480.7c-2.5 8.4-.2 17.5 6.1 23.7s15.3 8.5 23.7 6.1l120.3-35.4c14.1-4.2 27-11.8 37.4-22.2l199.2-199.2zM160 399.4l-9.1 22.7c-4 3.1-8.5 5.4-13.3 6.9l-78.2 23 23-78.1c1.4-4.9 3.8-9.4 6.9-13.3l22.7-9.1v32c0 8.8 7.2 16 16 16h32zM362.7 18.7l-14.4 14.5-22.6 22.6-11.4 11.3 33.9 33.9 62.1 62.1 33.9 33.9 11.3-11.3 22.6-22.6 14.5-14.5c25-25 25-65.5 0-90.5l-39.3-39.4c-25-25-65.5-25-90.5 0zm-47.4 168-144 144c-6.2 6.2-16.4 6.2-22.6 0s-6.2-16.4 0-22.6l144-144c6.2-6.2 16.4-6.2 22.6 0s6.2 16.4 0 22.6"},null,-1)];function im(t,e){return i.openBlock(),i.createElementBlock("svg",rm,[...om])}const Ba={render:im},sm={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 448 512"},lm=[i.createElementVNode("path",{d:"M256 80c0-17.7-14.3-32-32-32s-32 14.3-32 32v144H48c-17.7 0-32 14.3-32 32s14.3 32 32 32h144v144c0 17.7 14.3 32 32 32s32-14.3 32-32V288h144c17.7 0 32-14.3 32-32s-14.3-32-32-32H256z"},null,-1)];function am(t,e){return i.openBlock(),i.createElementBlock("svg",sm,[...lm])}const cm={render:am},um={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 448 512"},dm=[i.createElementVNode("path",{d:"M135.2 17.7 128 32H32C14.3 32 0 46.3 0 64s14.3 32 32 32h384c17.7 0 32-14.3 32-32s-14.3-32-32-32h-96l-7.2-14.3C307.4 6.8 296.3 0 284.2 0H163.8c-12.1 0-23.2 6.8-28.6 17.7M416 128H32l21.2 339c1.6 25.3 22.6 45 47.9 45h245.8c25.3 0 46.3-19.7 47.9-45z"},null,-1)];function fm(t,e){return i.openBlock(),i.createElementBlock("svg",um,[...dm])}const hm={render:fm};function _m(t,e){return i.openBlock(),i.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},[i.createVNode("path",{"fill-rule":"evenodd",d:"M3 17a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zm3.293-7.707a1 1 0 011.414 0L9 10.586V3a1 1 0 112 0v7.586l1.293-1.293a1 1 0 111.414 1.414l-3 3a1 1 0 01-1.414 0l-3-3a1 1 0 010-1.414z","clip-rule":"evenodd"})])}function Ia(t,e){return i.openBlock(),i.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},[i.createVNode("path",{"fill-rule":"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7 4a1 1 0 11-2 0 1 1 0 012 0zm-1-9a1 1 0 00-1 1v4a1 1 0 102 0V6a1 1 0 00-1-1z","clip-rule":"evenodd"})])}function mm(t,e){return i.openBlock(),i.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},[i.createVNode("path",{"fill-rule":"evenodd",d:"M5.05 4.05a7 7 0 119.9 9.9L10 18.9l-4.95-4.95a7 7 0 010-9.9zM10 11a2 2 0 100-4 2 2 0 000 4z","clip-rule":"evenodd"})])}function $a(t,e){return i.openBlock(),i.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},[i.createVNode("path",{d:"M13.586 3.586a2 2 0 112.828 2.828l-.793.793-2.828-2.828.793-.793zM11.379 5.793L3 14.172V17h2.828l8.38-8.379-2.83-2.828z"})])}function pm(t,e){return i.openBlock(),i.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},[i.createVNode("path",{"fill-rule":"evenodd",d:"M4 2a1 1 0 011 1v2.101a7.002 7.002 0 0111.601 2.566 1 1 0 11-1.885.666A5.002 5.002 0 005.999 7H9a1 1 0 010 2H4a1 1 0 01-1-1V3a1 1 0 011-1zm.008 9.057a1 1 0 011.276.61A5.002 5.002 0 0014.001 13H11a1 1 0 110-2h5a1 1 0 011 1v5a1 1 0 11-2 0v-2.101a7.002 7.002 0 01-11.601-2.566 1 1 0 01.61-1.276z","clip-rule":"evenodd"})])}function gm(t,e){return i.openBlock(),i.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},[i.createVNode("path",{d:"M9.049 2.927c.3-.921 1.603-.921 1.902 0l1.07 3.292a1 1 0 00.95.69h3.462c.969 0 1.371 1.24.588 1.81l-2.8 2.034a1 1 0 00-.364 1.118l1.07 3.292c.3.921-.755 1.688-1.54 1.118l-2.8-2.034a1 1 0 00-1.175 0l-2.8 2.034c-.784.57-1.838-.197-1.539-1.118l1.07-3.292a1 1 0 00-.364-1.118L2.98 8.72c-.783-.57-.38-1.81.588-1.81h3.461a1 1 0 00.951-.69l1.07-3.292z"})])}function ym(t,e){return i.openBlock(),i.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},[i.createVNode("path",{"fill-rule":"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zM8.707 7.293a1 1 0 00-1.414 1.414L8.586 10l-1.293 1.293a1 1 0 101.414 1.414L10 11.414l1.293 1.293a1 1 0 001.414-1.414L11.414 10l1.293-1.293a1 1 0 00-1.414-1.414L10 8.586 8.707 7.293z","clip-rule":"evenodd"})])}const Fa={__name:"ExportButton",props:{exporter:{type:Function,required:!0}},setup(t){const e=t,n=i.ref(!1);async function r(){n.value=!0;try{await e.exporter()}catch(o){console.error(o),Ve.error("Failed to export data")}n.value=!1}return(o,s)=>{const l=i.resolveComponent("QBtn");return i.openBlock(),i.createBlock(l,{class:"dx-export-button dx-action-button",loading:n.value,onClick:r},{default:i.withCtx(()=>[i.createVNode(i.unref(_m),{class:"w-5"})]),_:1},8,["loading"])}}},Aa=i.defineComponent({__name:"RefreshButton",props:{loading:{type:Boolean}},emits:["refresh"],setup(t){return(e,n)=>{const r=i.resolveComponent("QBtn");return i.openBlock(),i.createBlock(r,{class:"dx-refresh-button dx-action-button",loading:e.loading},{default:i.withCtx(()=>[i.createVNode(i.unref(pm),{class:"w-5"})]),_:1},8,["loading"])}}}),bm={class:"flex items-center flex-nowrap whitespace-nowrap"},ji="show-hide-button",Oa=i.defineComponent({__name:"ShowHideButton",props:i.mergeModels({name:{default:""},showLabel:{default:""},hideLabel:{default:""},showIcon:{default:null},hideIcon:{default:null},iconClass:{default:"w-4 h-6"},labelClass:{default:"ml-2"},label:{default:""},tooltip:{default:""},disable:{type:Boolean}},{modelValue:{type:Boolean},modelModifiers:{}}),emits:i.mergeModels(["show","hide"],["update:modelValue"]),setup(t,{emit:e}){const n=e,r=i.useModel(t,"modelValue"),o=t,s=xt(ji,{});o.name&&s[o.name]!==void 0&&(r.value=s[o.name]);function l(){r.value=!r.value,i.nextTick(()=>{r.value?n("show"):n("hide"),o.name&&(s[o.name]=r.value,Pt(ji,{...xt(ji,{}),[o.name]:r.value}))})}return(a,c)=>{const u=i.resolveComponent("QTooltip"),d=i.resolveComponent("QBtn");return i.openBlock(),i.createBlock(d,{class:"py-1 px-2",disable:a.disable,onClick:l},{default:i.withCtx(()=>[i.createElementVNode("div",bm,[i.renderSlot(a.$slots,"default",{isShowing:r.value},()=>[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(r.value?a.hideIcon||i.unref(W1):a.showIcon||i.unref(X1)),{class:i.normalizeClass(a.iconClass)},null,8,["class"])),a.label?(i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass(a.labelClass)},i.toDisplayString((r.value?a.hideLabel:a.showLabel)||a.label),3)):i.createCommentVNode("",!0)])]),a.tooltip?(i.openBlock(),i.createBlock(u,{key:0},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(a.tooltip),1)]),_:1})):i.createCommentVNode("",!0)]),_:3},8,["disable"])}}}),wm={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},km=[i.createElementVNode("path",{fill:"currentColor",d:"M10 12 6 8h8z"},null,-1)];function xm(t,e){return i.openBlock(),i.createElementBlock("svg",wm,[...km])}const Da={render:xm},Sm={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20"},Cm=[i.createElementVNode("path",{fill:"currentColor",d:"M7.5 16q-.625 0-1.062-.438A1.44 1.44 0 0 1 6 14.5q0-.625.438-1.062A1.44 1.44 0 0 1 7.5 13q.625 0 1.062.438Q9 13.875 9 14.5t-.438 1.062A1.44 1.44 0 0 1 7.5 16m5 0q-.625 0-1.062-.438A1.44 1.44 0 0 1 11 14.5q0-.625.438-1.062A1.44 1.44 0 0 1 12.5 13q.625 0 1.062.438.438.437.438 1.062t-.438 1.062A1.44 1.44 0 0 1 12.5 16m-5-4.5q-.625 0-1.062-.438A1.44 1.44 0 0 1 6 10q0-.625.438-1.062A1.44 1.44 0 0 1 7.5 8.5q.625 0 1.062.438Q9 9.375 9 10t-.438 1.062A1.44 1.44 0 0 1 7.5 11.5m5 0q-.625 0-1.062-.438A1.44 1.44 0 0 1 11 10q0-.625.438-1.062A1.44 1.44 0 0 1 12.5 8.5q.625 0 1.062.438Q14 9.375 14 10t-.438 1.062a1.44 1.44 0 0 1-1.062.438M7.5 7q-.625 0-1.062-.438A1.44 1.44 0 0 1 6 5.5q0-.625.438-1.062A1.44 1.44 0 0 1 7.5 4q.625 0 1.062.438Q9 4.875 9 5.5t-.438 1.062A1.44 1.44 0 0 1 7.5 7m5 0q-.625 0-1.062-.438A1.44 1.44 0 0 1 11 5.5q0-.625.438-1.062A1.44 1.44 0 0 1 12.5 4q.625 0 1.062.438Q14 4.875 14 5.5t-.438 1.062A1.44 1.44 0 0 1 12.5 7"},null,-1)];function Em(t,e){return i.openBlock(),i.createElementBlock("svg",Sm,[...Cm])}const Pa={render:Em},Tm={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 7 16"},Nm=[i.createElementVNode("path",{fill:"currentColor",d:"M.5 1v14c0 .55.45 1 1 1s1-.45 1-1V1c0-.55-.45-1-1-1S.5.45.5 1m6 14V1c0-.55-.45-1-1-1s-1 .45-1 1v14c0 .55.45 1 1 1s1-.45 1-1"},null,-1)];function Bm(t,e){return i.openBlock(),i.createElementBlock("svg",Tm,[...Nm])}const Ma={render:Bm},Im={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20"},$m=[i.createElementVNode("path",{fill:"currentColor",d:"M9.167 17.5v-5h1.666v1.667H17.5v1.666h-6.667V17.5zM2.5 15.833v-1.666h5v1.666zM5.833 12.5v-1.667H2.5V9.167h3.333V7.5H7.5v5zm3.334-1.667V9.167H17.5v1.666zM12.5 7.5v-5h1.667v1.667H17.5v1.666h-3.333V7.5zm-10-1.667V4.167h8.333v1.666z"},null,-1)];function Fm(t,e){return i.openBlock(),i.createElementBlock("svg",Im,[...$m])}const La={render:Fm},Am={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20"},Om=[i.createElementVNode("path",{fill:"currentColor","fill-rule":"evenodd",d:"M17.859 18.558c.394 0 .713-.32.713-.714V2.141a.714.714 0 0 0-.713-.713H2.156a.714.714 0 0 0-.714.713v15.703c0 .394.32.714.714.714zM20 17.844a2.14 2.14 0 0 1-2.141 2.141H2.156a2.14 2.14 0 0 1-2.141-2.14V2.14C.015.96.973.001 2.156.001h15.703C19.04 0 20 .958 20 2.14z","clip-rule":"evenodd"},null,-1),i.createElementVNode("path",{fill:"currentColor","fill-rule":"evenodd",d:"M13.205 4.996a1.784 1.784 0 1 0 0 3.569 1.784 1.784 0 0 0 0-3.57M9.993 6.78a3.212 3.212 0 1 1 6.424 0 3.212 3.212 0 0 1-6.424 0M2.848 9.993A11.22 11.22 0 0 1 14.12 19.14a.714.714 0 0 1-1.403.264 9.79 9.79 0 0 0-9.846-7.984h-.018c-.673-.001-1.344.061-2.005.188a.714.714 0 1 1-.268-1.402 12 12 0 0 1 2.268-.213","clip-rule":"evenodd"},null,-1),i.createElementVNode("path",{fill:"currentColor","fill-rule":"evenodd",d:"M10.954 13.82c1.5-.645 3.117-.976 4.75-.972 1.29 0 2.573.21 3.796.622a.714.714 0 1 1-.456 1.353 10.4 10.4 0 0 0-3.34-.548h-.002a10.55 10.55 0 0 0-4.185.856.714.714 0 1 1-.563-1.312","clip-rule":"evenodd"},null,-1)];function Dm(t,e){return i.openBlock(),i.createElementBlock("svg",Am,[...Om])}const zi={render:Dm},Pm={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 550.801 550.801"},Mm=[i.createElementVNode("path",{d:"M160.381 282.225c0-14.832-10.299-23.684-28.474-23.684-7.414 0-12.437.715-15.071 1.432V307.6c3.114.707 6.942.949 12.192.949 19.391 0 31.353-9.809 31.353-26.324M272.875 259.019c-8.145 0-13.397.717-16.519 1.435v105.523c3.116.729 8.142.729 12.69.729 33.017.231 54.554-17.946 54.554-56.474.242-33.513-19.385-51.213-50.725-51.213"},null,-1),i.createElementVNode("path",{d:"M488.426 197.019H475.2v-63.816c0-.398-.063-.799-.116-1.202-.021-2.534-.827-5.023-2.562-6.995L366.325 3.694c-.032-.031-.063-.042-.085-.076-.633-.707-1.371-1.295-2.151-1.804a10 10 0 0 0-.706-.419 11 11 0 0 0-2.131-.896c-.2-.056-.38-.138-.58-.19A10.8 10.8 0 0 0 358.193 0H97.2C85.282 0 75.6 9.693 75.6 21.601v175.413H62.377c-17.049 0-30.873 13.818-30.873 30.873v160.545c0 17.043 13.824 30.87 30.873 30.87h13.224V529.2c0 11.907 9.682 21.601 21.6 21.601h356.4c11.907 0 21.6-9.693 21.6-21.601V419.302h13.226c17.044 0 30.871-13.827 30.871-30.87v-160.54c-.001-17.054-13.828-30.873-30.872-30.873M97.2 21.605h250.193v110.513c0 5.967 4.841 10.8 10.8 10.8H453.6v54.108H97.2zm265.159 287.418c0 30.876-11.243 52.165-26.82 65.333-16.971 14.117-42.82 20.814-74.396 20.814-18.9 0-32.297-1.197-41.401-2.389V234.365c13.399-2.149 30.878-3.346 49.304-3.346 30.612 0 50.478 5.508 66.039 17.226 16.743 12.445 27.274 32.302 27.274 60.778M80.7 393.499V234.365c11.241-1.904 27.042-3.346 49.296-3.346 22.491 0 38.527 4.308 49.291 12.928 10.292 8.131 17.215 21.534 17.215 37.328 0 15.799-5.25 29.198-14.829 38.285-12.442 11.728-30.865 16.996-52.407 16.996-4.778 0-9.1-.243-12.435-.723v57.67H80.7zm372.901 129.854H97.2V419.302h356.4v104.051zm31.297-261.226h-61.989v36.851h57.913v29.674h-57.913V393.5h-36.593V232.216h98.582z"},null,-1)];function Lm(t,e){return i.openBlock(),i.createElementBlock("svg",Pm,[...Mm])}const va={render:Lm},vm={xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",fill:"currentColor",viewBox:"0 0 394.4 394.4"},Vm=[i.createElementVNode("path",{d:"M37.4 377.4a20.33 20.33 0 0 1-14.423-5.977c-7.97-7.963-7.97-20.883 0-28.846l319.6-319.601c7.97-7.97 20.876-7.97 28.846 0 7.97 7.962 7.97 20.882 0 28.845l-319.6 319.601A20.32 20.32 0 0 1 37.4 377.4m357-78.201c0-52.496-42.704-95.199-95.2-95.199S204 246.703 204 299.199s42.704 95.201 95.2 95.201 95.2-42.705 95.2-95.201m-40.799 0c0 29.996-24.405 54.4-54.4 54.4s-54.4-24.404-54.4-54.4c0-29.994 24.405-54.398 54.4-54.398s54.4 24.404 54.4 54.398M190.4 95.2C190.4 42.704 147.696 0 95.2 0S0 42.704 0 95.2s42.704 95.2 95.2 95.2 95.2-42.704 95.2-95.2m-40.8 0c0 29.995-24.405 54.4-54.4 54.4s-54.4-24.405-54.4-54.4 24.405-54.4 54.4-54.4 54.4 24.406 54.4 54.4"},null,-1)];function qm(t,e){return i.openBlock(),i.createElementBlock("svg",vm,[...Vm])}const Va={render:qm},Rm={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},Um=[i.createElementVNode("path",{fill:"currentColor",d:"M16.5 18V6h2v12zm-11 0V6l9 6z"},null,-1)];function jm(t,e){return i.openBlock(),i.createElementBlock("svg",Rm,[...Um])}const qa={render:jm},zm={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},Hm=[i.createElementVNode("path",{fill:"currentColor",d:"M5.5 18V6h2v12zm13 0-9-6 9-6z"},null,-1)];function Gm(t,e){return i.openBlock(),i.createElementBlock("svg",zm,[...Hm])}const Ra={render:Gm},Zm={xmlns:"http://www.w3.org/2000/svg",width:"18",height:"20",fill:"none",viewBox:"0 0 16 18"},Wm=[i.createElementVNode("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m13.833 4.833-.722 10.119a1.667 1.667 0 0 1-1.663 1.548H4.552a1.667 1.667 0 0 1-1.663-1.548L2.167 4.833m4.166 3.334v5m3.334-5v5m.833-8.334v-2.5a.833.833 0 0 0-.833-.833H6.333a.833.833 0 0 0-.833.833v2.5m-4.167 0h13.334"},null,-1)];function Ym(t,e){return i.openBlock(),i.createElementBlock("svg",Zm,[...Wm])}const go={render:Ym},Qm={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20"},Km=[i.createElementVNode("path",{fill:"currentColor",d:"M0 18.273 10 1l10 17.273zm3.136-1.819h13.728L10 4.637zM10 15.545a.88.88 0 0 0 .648-.261.88.88 0 0 0 .261-.648.88.88 0 0 0-.26-.647.88.88 0 0 0-.649-.262.88.88 0 0 0-.647.262.88.88 0 0 0-.262.647q0 .387.262.648.261.261.647.261m-.91-2.727h1.82V8.273H9.09z"},null,-1)];function Xm(t,e){return i.openBlock(),i.createElementBlock("svg",Qm,[...Km])}const Ua={render:Xm},Jm={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 17 17"},ep=[i.createElementVNode("path",{fill:"currentColor","fill-rule":"evenodd",d:"M16.822.178a.607.607 0 0 1 0 .858L1.036 16.822a.607.607 0 1 1-.858-.858L15.964.178a.607.607 0 0 1 .858 0","clip-rule":"evenodd"},null,-1),i.createElementVNode("path",{fill:"currentColor","fill-rule":"evenodd",d:"M.178.178a.607.607 0 0 1 .858 0l15.786 15.786a.607.607 0 0 1-.858.858L.178 1.036a.607.607 0 0 1 0-.858","clip-rule":"evenodd"},null,-1)];function tp(t,e){return i.openBlock(),i.createElementBlock("svg",Jm,[...ep])}const yo={render:tp},np={class:"dx-previous-next-controls"},ja={__name:"PreviousNextControls",props:{isLoading:Boolean},emits:["next"],setup(t){return(e,n)=>{const r=i.resolveComponent("QBtn");return i.openBlock(),i.createElementBlock("div",np,[i.createVNode(r,{class:"dx-control dx-control-previous border border-solid !rounded-r-none !p-2 !min-w-0",disable:t.isLoading,loading:t.isLoading,onClick:n[0]||(n[0]=o=>e.$emit("next",-1))},{default:i.withCtx(()=>[i.createVNode(i.unref(Ra),{class:"w-6"})]),_:1},8,["disable","loading"]),i.createVNode(r,{class:"dx-control dx-control-next border border-solid border-l-0 !rounded-l-none !p-2 !min-w-0",disable:t.isLoading,loading:t.isLoading,onClick:n[1]||(n[1]=o=>e.$emit("next",1))},{default:i.withCtx(()=>[i.createVNode(i.unref(qa),{class:"w-6"})]),_:1},8,["disable","loading"])])}}};function za(t,e){return i.openBlock(),i.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor","aria-hidden":"true"},[i.createVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M8 7V3m8 4V3m-9 8h10M5 21h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z"})])}function rp(t,e){return i.openBlock(),i.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor","aria-hidden":"true"},[i.createVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M19 9l-7 7-7-7"})])}function Ha(t,e){return i.openBlock(),i.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor","aria-hidden":"true"},[i.createVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15 19l-7-7 7-7"})])}function op(t,e){return i.openBlock(),i.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor","aria-hidden":"true"},[i.createVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 8c-1.657 0-3 .895-3 2s1.343 2 3 2 3 .895 3 2-1.343 2-3 2m0-8c1.11 0 2.08.402 2.599 1M12 8V7m0 1v8m0 0v1m0-1c-1.11 0-2.08-.402-2.599-1M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})])}function ip(t,e){return i.openBlock(),i.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor","aria-hidden":"true"},[i.createVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"})])}function sp(t,e){return i.openBlock(),i.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor","aria-hidden":"true"},[i.createVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 5v.01M12 12v.01M12 19v.01M12 6a1 1 0 110-2 1 1 0 010 2zm0 7a1 1 0 110-2 1 1 0 010 2zm0 7a1 1 0 110-2 1 1 0 010 2z"})])}function lp(t,e){return i.openBlock(),i.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor","aria-hidden":"true"},[i.createVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4"})])}function ap(t,e){return i.openBlock(),i.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor","aria-hidden":"true"},[i.createVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M13.875 18.825A10.05 10.05 0 0112 19c-4.478 0-8.268-2.943-9.543-7a9.97 9.97 0 011.563-3.029m5.858.908a3 3 0 114.243 4.243M9.878 9.878l4.242 4.242M9.88 9.88l-3.29-3.29m7.532 7.532l3.29 3.29M3 3l3.59 3.59m0 0A9.953 9.953 0 0112 5c4.478 0 8.268 2.943 9.543 7a10.025 10.025 0 01-4.132 5.411m0 0L21 21"})])}function cp(t,e){return i.openBlock(),i.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor","aria-hidden":"true"},[i.createVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15 12a3 3 0 11-6 0 3 3 0 016 0z"}),i.createVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M2.458 12C3.732 7.943 7.523 5 12 5c4.478 0 8.268 2.943 9.542 7-1.274 4.057-5.064 7-9.542 7-4.477 0-8.268-2.943-9.542-7z"})])}function up(t,e){return i.openBlock(),i.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor","aria-hidden":"true"},[i.createVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M7 20l4-16m2 16l4-16M6 9h14M4 15h14"})])}function dp(t,e){return i.openBlock(),i.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor","aria-hidden":"true"},[i.createVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 15v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2zm10-10V7a4 4 0 00-8 0v4h8z"})])}function fp(t,e){return i.openBlock(),i.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor","aria-hidden":"true"},[i.createVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M14.752 11.168l-3.197-2.132A1 1 0 0010 9.87v4.263a1 1 0 001.555.832l3.197-2.132a1 1 0 000-1.664z"}),i.createVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})])}function hp(t,e){return i.openBlock(),i.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor","aria-hidden":"true"},[i.createVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 4v16m8-8H4"})])}function _p(t,e){return i.openBlock(),i.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor","aria-hidden":"true"},[i.createVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6 18L18 6M6 6l12 12"})])}const mp={class:"flex-grow"},pp={key:1,class:"dx-dialog-subtitle"},gp={class:"flex dx-dialog-actions"},Hi=i.defineComponent({__name:"DialogLayout",props:{modelValue:{type:[String,Boolean,Object]},title:{default:""},titleClass:{default:""},subtitle:{default:""},content:{default:""},backdropDismiss:{type:Boolean},maximized:{type:Boolean},fullWidth:{type:Boolean},fullHeight:{type:Boolean},contentClass:{default:""}},emits:["close"],setup(t,{emit:e}){const n=e;function r(){n("close")}return(o,s)=>{const l=i.resolveComponent("QCardSection"),a=i.resolveComponent("QCard"),c=i.resolveComponent("QDialog");return i.openBlock(),i.createBlock(c,{class:"dx-dialog","full-height":o.fullHeight,"full-width":o.fullWidth,"model-value":!0,"no-backdrop-dismiss":!o.backdropDismiss,maximized:o.maximized,"onUpdate:modelValue":r},{default:i.withCtx(()=>[i.createVNode(a,{class:"dx-dialog-card flex flex-col flex-nowrap"},{default:i.withCtx(()=>[i.createVNode(l,{class:"dx-dialog-header flex items-center"},{default:i.withCtx(()=>[i.createElementVNode("div",mp,[o.title||o.$slots.title?(i.openBlock(),i.createElementBlock("h3",{key:0,class:i.normalizeClass(["dx-dialog-title flex items-center",o.titleClass])},[i.renderSlot(o.$slots,"title",{},()=>[i.createTextVNode(i.toDisplayString(o.title),1)])],2)):i.createCommentVNode("",!0),o.subtitle||o.$slots.subtitle?(i.openBlock(),i.createElementBlock("div",pp,[i.renderSlot(o.$slots,"subtitle",{},()=>[i.createTextVNode(i.toDisplayString(o.subtitle),1)])])):i.createCommentVNode("",!0)]),i.createElementVNode("div",null,[i.createElementVNode("div",{class:"dx-close-button cursor-pointer",onClick:r},[i.createVNode(i.unref(_p),{class:"w-5"})])])]),_:3}),o.$slots.toolbar?(i.openBlock(),i.createBlock(l,{key:0},{default:i.withCtx(()=>[i.renderSlot(o.$slots,"toolbar")]),_:3})):i.createCommentVNode("",!0),o.content||o.$slots.default?(i.openBlock(),i.createBlock(l,{key:1,class:i.normalizeClass(["dx-dialog-content flex-grow max-h-full overflow-y-auto",o.contentClass])},{default:i.withCtx(()=>[i.renderSlot(o.$slots,"default",{},()=>[i.createTextVNode(i.toDisplayString(o.content),1)])]),_:3},8,["class"])):i.createCommentVNode("",!0),i.createElementVNode("div",gp,[i.renderSlot(o.$slots,"actions")])]),_:3})]),_:3},8,["full-height","full-width","no-backdrop-dismiss","maximized"])}}}),yp={class:"dx-dialog-button-cancel"},bp={key:0,class:"dx-dialog-button-confirm"},Ct=i.defineComponent({__name:"ConfirmDialog",props:{disabled:{type:Boolean},isSaving:{type:Boolean},closeOnConfirm:{type:Boolean},hideConfirm:{type:Boolean},confirmText:{default:"Confirm"},cancelText:{default:"Cancel"},confirmClass:{default:""},contentClass:{default:""},modelValue:{type:[String,Boolean,Object]},title:{},titleClass:{},subtitle:{},content:{},backdropDismiss:{type:Boolean},maximized:{type:Boolean},fullWidth:{type:Boolean},fullHeight:{type:Boolean}},emits:["update:model-value","confirm","close"],setup(t,{emit:e}){const n=e,r=t,o=i.computed(()=>({...r,disabled:void 0})),s=i.computed(()=>["title","subtitle","toolbar"]);function l(){n("confirm"),r.closeOnConfirm&&n("close")}function a(){n("update:model-value",!1),n("close")}return(c,u)=>{const d=i.resolveComponent("QBtn");return i.openBlock(),i.createBlock(i.unref(Hi),i.mergeProps({class:"dx-confirm-dialog"},o.value,{onClose:a}),i.createSlots({actions:i.withCtx(()=>[i.createElementVNode("div",yp,[i.createVNode(d,{label:c.cancelText,class:"dx-dialog-button",onClick:a},{default:i.withCtx(()=>[i.renderSlot(c.$slots,"cancel-text")]),_:3},8,["label"])]),i.renderSlot(c.$slots,"actions"),c.hideConfirm?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("div",bp,[i.createVNode(d,{label:c.$slots["confirm-text"]?"":c.confirmText,class:i.normalizeClass(["dx-dialog-button",c.confirmClass]),loading:c.isSaving,disable:c.disabled,"data-testid":"confirm-button",onClick:l},{default:i.withCtx(()=>[i.renderSlot(c.$slots,"confirm-text")]),_:3},8,["label","class","loading","disable"])]))]),default:i.withCtx(()=>[i.renderSlot(c.$slots,"default")]),_:2},[i.renderList(s.value,f=>({name:f,fn:i.withCtx(()=>[i.renderSlot(c.$slots,f)])}))]),1040)}}}),wp=i.defineComponent({__name:"ActionFormDialog",props:{title:{},confirmText:{},form:{},action:{},target:{}},emits:["confirm","close"],setup(t){const e=i.ref("");return(n,r)=>(i.openBlock(),i.createBlock(i.unref(Ct),{title:n.title,"confirm-text":n.confirmText||n.title,onConfirm:r[0]||(r[0]=o=>n.$emit("confirm",{name:e.value})),onClose:r[1]||(r[1]=o=>n.$emit("close"))},{default:i.withCtx(()=>[i.createVNode(i.unref(ac),{form:n.form,action:n.action,target:n.target},null,8,["form","action","target"])]),_:1},8,["title","confirm-text"]))}}),Ga=i.defineComponent({__name:"ConfirmActionDialog",props:{action:{},label:{},target:{},message:{default:"Are you sure you want to"},disabled:{type:Boolean},isSaving:{type:Boolean},closeOnConfirm:{type:Boolean},hideConfirm:{type:Boolean},confirmText:{},cancelText:{},confirmClass:{},contentClass:{},modelValue:{type:[String,Boolean,Object]},title:{},titleClass:{},subtitle:{},content:{},backdropDismiss:{type:Boolean},maximized:{type:Boolean},fullWidth:{type:Boolean},fullHeight:{type:Boolean}},emits:["confirm","close"],setup(t){const e=t,n=i.computed(()=>Oh(e.target,e.label||e.action)),r=i.computed(()=>`Confirm ${e.action}`),o=i.computed(()=>`${e.action}`),s=i.computed(()=>`${e.message} ${e.action.toLowerCase()}${n.value?" "+n.value:""}?`),l=i.computed(()=>["title","subtitle","default","toolbar","actions"]);return(a,c)=>(i.openBlock(),i.createBlock(i.unref(Ct),i.mergeProps({class:"dx-confirm-action-dialog"},e,{"confirm-text":a.confirmText||o.value,title:a.title||r.value,content:a.content||s.value,onConfirm:c[0]||(c[0]=u=>a.$emit("confirm")),onClose:c[1]||(c[1]=u=>a.$emit("close"))}),i.createSlots({default:i.withCtx(()=>[i.renderSlot(a.$slots,"default")]),_:2},[i.renderList(l.value,u=>({name:u,fn:i.withCtx(()=>[i.renderSlot(a.$slots,u)])}))]),1040,["confirm-text","title","content"]))}}),Za=i.defineComponent({__name:"CreateNewWithNameDialog",props:{title:{},confirmText:{}},emits:["confirm","close"],setup(t){const e=i.ref("");return(n,r)=>(i.openBlock(),i.createBlock(i.unref(Ct),{title:n.title,"confirm-text":n.confirmText||n.title,onConfirm:r[1]||(r[1]=o=>n.$emit("confirm",{name:e.value})),onClose:r[2]||(r[2]=o=>n.$emit("close"))},{default:i.withCtx(()=>[i.createVNode(i.unref(on),{modelValue:e.value,"onUpdate:modelValue":r[0]||(r[0]=o=>e.value=o),label:"Name"},null,8,["modelValue"]),i.renderSlot(n.$slots,"default")]),_:3},8,["title","confirm-text"]))}}),kp={"!visible":"_!visible_1qcdh_1",visible:"_visible_1qcdh_1",collapse:"_collapse_1qcdh_1",static:"_static_1qcdh_1",absolute:"_absolute_1qcdh_1",relative:"_relative_1qcdh_1",sticky:"_sticky_1qcdh_1","left-0":"_left-0_1qcdh_1","right-0":"_right-0_1qcdh_1","right-1":"_right-1_1qcdh_1","top-0":"_top-0_1qcdh_1","top-1":"_top-1_1qcdh_1","z-10":"_z-10_1qcdh_1","m-2":"_m-2_1qcdh_1","m-4":"_m-4_1qcdh_1","m-auto":"_m-auto_1qcdh_1","mx-1":"_mx-1_1qcdh_1","mx-4":"_mx-4_1qcdh_1","mx-auto":"_mx-auto_1qcdh_1","my-2":"_my-2_1qcdh_1","!mr-1":"_!mr-1_1qcdh_1","mb-2":"_mb-2_1qcdh_1","mb-4":"_mb-4_1qcdh_1","ml-1":"_ml-1_1qcdh_1","ml-2":"_ml-2_1qcdh_1","ml-2.5":"_ml-2.5_1qcdh_1","ml-3":"_ml-3_1qcdh_1","ml-4":"_ml-4_1qcdh_1","ml-5":"_ml-5_1qcdh_1","ml-[-.2em]":"_ml-[-.2em]_1qcdh_1","mr-1":"_mr-1_1qcdh_1","mr-2":"_mr-2_1qcdh_1","mr-3":"_mr-3_1qcdh_1","mr-4":"_mr-4_1qcdh_1","mt-1":"_mt-1_1qcdh_1","mt-2":"_mt-2_1qcdh_1","mt-3":"_mt-3_1qcdh_1","mt-4":"_mt-4_1qcdh_1",block:"_block_1qcdh_1","inline-block":"_inline-block_1qcdh_1",inline:"_inline_1qcdh_1",flex:"_flex_1qcdh_1",table:"_table_1qcdh_1",hidden:"_hidden_1qcdh_1","h-10":"_h-10_1qcdh_1","h-16":"_h-16_1qcdh_1","h-32":"_h-32_1qcdh_1","h-4":"_h-4_1qcdh_1","h-5":"_h-5_1qcdh_1","h-6":"_h-6_1qcdh_1","h-8":"_h-8_1qcdh_1","h-[2.25rem]":"_h-[2.25rem]_1qcdh_1","h-full":"_h-full_1qcdh_1","max-h-full":"_max-h-full_1qcdh_1","w-1/5":"_w-1/5_1qcdh_1","w-10":"_w-10_1qcdh_1","w-16":"_w-16_1qcdh_1","w-2/5":"_w-2/5_1qcdh_1","w-24":"_w-24_1qcdh_1","w-3":"_w-3_1qcdh_1","w-3/5":"_w-3/5_1qcdh_1","w-32":"_w-32_1qcdh_1","w-4":"_w-4_1qcdh_1","w-48":"_w-48_1qcdh_1","w-5":"_w-5_1qcdh_1","w-6":"_w-6_1qcdh_1","w-7":"_w-7_1qcdh_1","w-72":"_w-72_1qcdh_1","w-8":"_w-8_1qcdh_1","w-96":"_w-96_1qcdh_1","w-[13.5rem]":"_w-[13.5rem]_1qcdh_1","w-[6.5rem]":"_w-[6.5rem]_1qcdh_1","w-[80rem]":"_w-[80rem]_1qcdh_1","w-full":"_w-full_1qcdh_1","!min-w-0":"_!min-w-0_1qcdh_1","max-w-full":"_max-w-full_1qcdh_1","flex-shrink":"_flex-shrink_1qcdh_1","flex-shrink-0":"_flex-shrink-0_1qcdh_1",shrink:"_shrink_1qcdh_1","flex-grow":"_flex-grow_1qcdh_1",grow:"_grow_1qcdh_1","rotate-180":"_rotate-180_1qcdh_1",transform:"_transform_1qcdh_1","cursor-ew-resize":"_cursor-ew-resize_1qcdh_1","cursor-move":"_cursor-move_1qcdh_1","cursor-not-allowed":"_cursor-not-allowed_1qcdh_1","cursor-ns-resize":"_cursor-ns-resize_1qcdh_1","cursor-pointer":"_cursor-pointer_1qcdh_1",resize:"_resize_1qcdh_1","flex-col":"_flex-col_1qcdh_1","flex-nowrap":"_flex-nowrap_1qcdh_1","items-center":"_items-center_1qcdh_1","items-stretch":"_items-stretch_1qcdh_1","justify-start":"_justify-start_1qcdh_1","justify-end":"_justify-end_1qcdh_1","justify-center":"_justify-center_1qcdh_1","justify-between":"_justify-between_1qcdh_1","gap-x-4":"_gap-x-4_1qcdh_1","gap-y-0":"_gap-y-0_1qcdh_1","gap-y-1":"_gap-y-1_1qcdh_1","space-x-1":"_space-x-1_1qcdh_1","space-x-2":"_space-x-2_1qcdh_1","self-center":"_self-center_1qcdh_1","overflow-auto":"_overflow-auto_1qcdh_1","overflow-hidden":"_overflow-hidden_1qcdh_1","overflow-y-auto":"_overflow-y-auto_1qcdh_73","overflow-x-hidden":"_overflow-x-hidden_1qcdh_1","scroll-smooth":"_scroll-smooth_1qcdh_1","overflow-ellipsis":"_overflow-ellipsis_1qcdh_1","whitespace-normal":"_whitespace-normal_1qcdh_1","whitespace-nowrap":"_whitespace-nowrap_1qcdh_1",rounded:"_rounded_1qcdh_1","rounded-2xl":"_rounded-2xl_1qcdh_1","rounded-lg":"_rounded-lg_1qcdh_1","rounded-md":"_rounded-md_1qcdh_1","rounded-sm":"_rounded-sm_1qcdh_1","!rounded-l-none":"_!rounded-l-none_1qcdh_1","!rounded-r-none":"_!rounded-r-none_1qcdh_1","rounded-b-lg":"_rounded-b-lg_1qcdh_1","rounded-t-lg":"_rounded-t-lg_1qcdh_1","rounded-t-md":"_rounded-t-md_1qcdh_1","!border-0":"_!border-0_1qcdh_1",border:"_border_1qcdh_1","border-b":"_border-b_1qcdh_1","border-l":"_border-l_1qcdh_1","border-l-0":"_border-l-0_1qcdh_1","border-r":"_border-r_1qcdh_1","border-solid":"_border-solid_1qcdh_1","border-dashed":"_border-dashed_1qcdh_1","border-none":"_border-none_1qcdh_1","border-blue-600":"_border-blue-600_1qcdh_1","border-blue-700":"_border-blue-700_1qcdh_1","border-gray-200":"_border-gray-200_1qcdh_1","border-gray-300":"_border-gray-300_1qcdh_1","border-slate-200":"_border-slate-200_1qcdh_1","bg-black":"_bg-black_1qcdh_1","bg-blue-200":"_bg-blue-200_1qcdh_1","bg-blue-600":"_bg-blue-600_1qcdh_1","bg-emerald-200":"_bg-emerald-200_1qcdh_1","bg-gray-100":"_bg-gray-100_1qcdh_1","bg-gray-200":"_bg-gray-200_1qcdh_1","bg-gray-400":"_bg-gray-400_1qcdh_1","bg-gray-500":"_bg-gray-500_1qcdh_1","bg-green-200":"_bg-green-200_1qcdh_1","bg-green-300":"_bg-green-300_1qcdh_1","bg-green-900":"_bg-green-900_1qcdh_1","bg-red-200":"_bg-red-200_1qcdh_1","bg-red-300":"_bg-red-300_1qcdh_1","bg-red-900":"_bg-red-900_1qcdh_1","bg-sky-300":"_bg-sky-300_1qcdh_1","bg-sky-800":"_bg-sky-800_1qcdh_1","bg-slate-100":"_bg-slate-100_1qcdh_1","bg-slate-500":"_bg-slate-500_1qcdh_1","bg-slate-800":"_bg-slate-800_1qcdh_1","bg-slate-900":"_bg-slate-900_1qcdh_1","bg-transparent":"_bg-transparent_1qcdh_1","bg-white":"_bg-white_1qcdh_1","bg-yellow-300":"_bg-yellow-300_1qcdh_1","!p-2":"_!p-2_1qcdh_1","p-0":"_p-0_1qcdh_1","p-1":"_p-1_1qcdh_1","p-2":"_p-2_1qcdh_1","p-3":"_p-3_1qcdh_1","p-4":"_p-4_1qcdh_1","!py-0":"_!py-0_1qcdh_1","px-1":"_px-1_1qcdh_1","px-12":"_px-12_1qcdh_1","px-2":"_px-2_1qcdh_1","px-2.5":"_px-2.5_1qcdh_1","px-4":"_px-4_1qcdh_1","px-6":"_px-6_1qcdh_1","px-8":"_px-8_1qcdh_1","py-1":"_py-1_1qcdh_1","py-14":"_py-14_1qcdh_1","py-2":"_py-2_1qcdh_1","py-3":"_py-3_1qcdh_1","py-4":"_py-4_1qcdh_1","py-5":"_py-5_1qcdh_1","py-8":"_py-8_1qcdh_1","pl-1":"_pl-1_1qcdh_1","pt-3":"_pt-3_1qcdh_1","text-left":"_text-left_1qcdh_1","text-center":"_text-center_1qcdh_1","text-[.7rem]":"_text-[.7rem]_1qcdh_1","text-[1rem]":"_text-[1rem]_1qcdh_1","text-base":"_text-base_1qcdh_1","text-sm":"_text-sm_1qcdh_1","text-xs":"_text-xs_1qcdh_1","font-bold":"_font-bold_1qcdh_1","font-medium":"_font-medium_1qcdh_1","font-semibold":"_font-semibold_1qcdh_1",uppercase:"_uppercase_1qcdh_1","leading-[1.2rem]":"_leading-[1.2rem]_1qcdh_1","!text-green-900":"_!text-green-900_1qcdh_1","!text-red-900":"_!text-red-900_1qcdh_1","!text-sky-900":"_!text-sky-900_1qcdh_1","!text-white":"_!text-white_1qcdh_1","!text-yellow-900":"_!text-yellow-900_1qcdh_1","text-blue-600":"_text-blue-600_1qcdh_1","text-blue-900":"_text-blue-900_1qcdh_1","text-gray-300":"_text-gray-300_1qcdh_1","text-gray-400":"_text-gray-400_1qcdh_1","text-gray-500":"_text-gray-500_1qcdh_1","text-gray-600":"_text-gray-600_1qcdh_1","text-gray-700":"_text-gray-700_1qcdh_1","text-green-700":"_text-green-700_1qcdh_1","text-red-400":"_text-red-400_1qcdh_1","text-red-500":"_text-red-500_1qcdh_1","text-red-800":"_text-red-800_1qcdh_1","text-red-900":"_text-red-900_1qcdh_1","text-slate-200":"_text-slate-200_1qcdh_1","text-slate-300":"_text-slate-300_1qcdh_1","text-slate-50":"_text-slate-50_1qcdh_1","text-slate-500":"_text-slate-500_1qcdh_1","text-white":"_text-white_1qcdh_1","text-yellow-600":"_text-yellow-600_1qcdh_1","text-zinc-500":"_text-zinc-500_1qcdh_1","text-zinc-800":"_text-zinc-800_1qcdh_1","line-through":"_line-through_1qcdh_1","opacity-0":"_opacity-0_1qcdh_1","opacity-20":"_opacity-20_1qcdh_1","opacity-50":"_opacity-50_1qcdh_1","opacity-70":"_opacity-70_1qcdh_1","opacity-80":"_opacity-80_1qcdh_1","shadow-none":"_shadow-none_1qcdh_1","outline-none":"_outline-none_1qcdh_1",outline:"_outline_1qcdh_1","outline-offset-0":"_outline-offset-0_1qcdh_1",filter:"_filter_1qcdh_1",transition:"_transition_1qcdh_1","transition-all":"_transition-all_1qcdh_1","duration-300":"_duration-300_1qcdh_1","danx-app":"_danx-app_1qcdh_4","q-tab":"_q-tab_1qcdh_4","q-table__card":"_q-table__card_1qcdh_7","q-checkbox__inner":"_q-checkbox__inner_1qcdh_11","q-toolbar":"_q-toolbar_1qcdh_14","q-notification__actions":"_q-notification__actions_1qcdh_19","q-date":"_q-date_1qcdh_22","q-date__view":"_q-date__view_1qcdh_25","q-field":"_q-field_1qcdh_28","q-field--auto-height":"_q-field--auto-height_1qcdh_28","q-field__control":"_q-field__control_1qcdh_28","q-field__native":"_q-field__native_1qcdh_31","q-field--labeled":"_q-field--labeled_1qcdh_35","q-field__control-container":"_q-field__control-container_1qcdh_35","q-textarea":"_q-textarea_1qcdh_38","q-field__marginal":"_q-field__marginal_1qcdh_41","q-field__input":"_q-field__input_1qcdh_41","q-field__label":"_q-field__label_1qcdh_41","q-btn":"_q-btn_1qcdh_48","q-item":"_q-item_1qcdh_56","q-tab-panels":"_q-tab-panels_1qcdh_60","q-panel":"_q-panel_1qcdh_64",scroll:"_scroll_1qcdh_67","q-tab-panel":"_q-tab-panel_1qcdh_60","dx-dialog":"_dx-dialog_1qcdh_77","q-card__section--vert":"_q-card__section--vert_1qcdh_77","q-banner":"_q-banner_1qcdh_81",app:"_app_1qcdh_1","main-layout":"_main-layout_1qcdh_1","is-disabled":"_is-disabled_1qcdh_98","disable-all-transitions":"_disable-all-transitions_1qcdh_103","v-enter-active":"_v-enter-active_1qcdh_107","v-leave-active":"_v-leave-active_1qcdh_108","v-enter-from":"_v-enter-from_1qcdh_112","v-leave-to":"_v-leave-to_1qcdh_113","dx-action-table":"_dx-action-table_1qcdh_117","dx-column-shrink":"_dx-column-shrink_1qcdh_117","slide-image":"_slide-image_1qcdh_121",carousel:"_carousel_1qcdh_135","q-carousel__navigation--bottom":"_q-carousel__navigation--bottom_1qcdh_135","hover:bg-blue-200":"_hover:bg-blue-200_1qcdh_1","hover:bg-gray-200":"_hover:bg-gray-200_1qcdh_1","hover:bg-green-100":"_hover:bg-green-100_1qcdh_1","hover:bg-red-100":"_hover:bg-red-100_1qcdh_1","hover:bg-red-200":"_hover:bg-red-200_1qcdh_1","hover:bg-slate-200":"_hover:bg-slate-200_1qcdh_1","hover:bg-slate-300":"_hover:bg-slate-300_1qcdh_1","hover:bg-slate-600":"_hover:bg-slate-600_1qcdh_1","hover:text-blue-500":"_hover:text-blue-500_1qcdh_1","hover:text-blue-600":"_hover:text-blue-600_1qcdh_1","hover:opacity-100":"_hover:opacity-100_1qcdh_1","hover:opacity-20":"_hover:opacity-20_1qcdh_1","hover:opacity-70":"_hover:opacity-70_1qcdh_1","hover:outline-4":"_hover:outline-4_1qcdh_1","focus:bg-blue-200":"_focus:bg-blue-200_1qcdh_1","focus:outline-4":"_focus:outline-4_1qcdh_1","focus:outline-blue-200":"_focus:outline-blue-200_1qcdh_1"},ft=(t,e)=>{const n=t.__vccOpts||t;for(const[r,o]of e)n[r]=o;return n},xp={class:"absolute top-0 left-0 w-full h-full"},Sp={key:0,class:"max-h-full w-full",controls:""},Cp=["src","type"],Ep=["alt","src"],Tp={key:2},Np=i.createElementVNode("h3",{class:"text-center mb-4"}," No Preview Available ",-1),Bp=["href"],Ip={class:"text-base text-center py-5 bg-slate-800 opacity-70 text-slate-300 absolute-top hover:opacity-20 transition-all"},Wa=ft({__name:"FullscreenCarouselDialog",props:{files:{type:Array,default:()=>[]},defaultSlide:{type:String,default:""}},emits:["close"],setup(t){const e=t,n=i.ref(null),r=i.ref(e.defaultSlide);function o(c){var u;return(u=c.mime)==null?void 0:u.startsWith("video")}function s(c){var u;return(u=c.mime)==null?void 0:u.startsWith("image")}function l(c){var u,d;return((u=c.optimized)==null?void 0:u.url)||(s(c)?c.blobUrl||c.url:(d=c.thumb)==null?void 0:d.url)}function a(c){return c.thumb?c.thumb.url:o(c)?`data:image/svg+xml;base64,${btoa('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M0 0h24v24H0z" fill="none"/><path d="M8 5v14l11-7z"/></svg>')}`:l(c)}return(c,u)=>{const d=i.resolveComponent("QCarouselSlide"),f=i.resolveComponent("QCarousel"),h=i.resolveComponent("QDialog");return i.openBlock(),i.createBlock(h,{"model-value":!0,maximized:"","onUpdate:modelValue":u[2]||(u[2]=_=>c.$emit("close")),onKeyup:[u[3]||(u[3]=i.withKeys(_=>n.value.previous(),["left"])),u[4]||(u[4]=i.withKeys(_=>n.value.next(),["right"]))]},{default:i.withCtx(()=>[i.createElementVNode("div",xp,[i.createVNode(f,{ref_key:"carousel",ref:n,modelValue:r.value,"onUpdate:modelValue":u[0]||(u[0]=_=>r.value=_),height:"100%",swipeable:"",animated:"",thumbnails:t.files.length>1,infinite:"",class:i.normalizeClass(c.cls.carousel)},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.files,_=>(i.openBlock(),i.createBlock(d,{key:"file-"+_.id,name:_.id,"img-src":a(_),class:"bg-black"},{default:i.withCtx(()=>[i.createElementVNode("div",{class:i.normalizeClass(c.cls["slide-image"])},[o(_)?(i.openBlock(),i.createElementBlock("video",Sp,[i.createElementVNode("source",{src:l(_)+"#t=0.1",type:_.mime},null,8,Cp)])):l(_)?(i.openBlock(),i.createElementBlock("img",{key:1,alt:_.filename,src:l(_)},null,8,Ep)):(i.openBlock(),i.createElementBlock("div",Tp,[Np,i.createElementVNode("a",{href:_.url,target:"_blank",class:"text-base"},i.toDisplayString(_.url),9,Bp)]))],2),i.createElementVNode("div",Ip,i.toDisplayString(_.filename||_.name),1)]),_:2},1032,["name","img-src"]))),128))]),_:1},8,["modelValue","thumbnails","class"]),i.createElementVNode("a",{class:"absolute top-0 right-0 text-white flex items-center justify-center w-16 h-16 hover:bg-slate-600 transition-all",onClick:u[1]||(u[1]=_=>c.$emit("close"))},[i.createVNode(i.unref(yo),{class:"w-8 h-8"})])])]),_:1})}}},[["__cssModules",{cls:kp}]]),$p={key:0,class:"p-4 m-4 absolute-top-right top right cursor-pointer"},Fp={__name:"FullScreenDialog",props:{modelValue:Boolean,center:Boolean,blue:Boolean,closeable:Boolean},emits:["update:model-value","close"],setup(t,{emit:e}){const n=e,r=t;let o=i.computed(()=>({"bg-blue-600 text-white":r.blue,"bg-white text-gray-400":!r.blue,"items-center":r.center}));function s(){n("update:model-value",!1),n("close")}return(l,a)=>{const c=i.resolveComponent("QDialog"),u=i.resolveDirective("close-popup");return i.openBlock(),i.createBlock(c,{"model-value":t.modelValue,maximized:"","transition-show":"slide-up","transition-hide":"slide-down","onUpdate:modelValue":s},{default:i.withCtx(()=>[i.createElementVNode("div",{class:i.normalizeClass(["flex justify-center min-w-xs",i.unref(o)])},[t.closeable?i.withDirectives((i.openBlock(),i.createElementBlock("div",$p,[i.createVNode(i.unref(yo),{class:"w-5 h-5"})])),[[u]]):i.createCommentVNode("",!0),i.renderSlot(l.$slots,"default")],2)]),_:3},8,["model-value"])}}},Ap={class:"flex-grow"},Ya={__name:"InfoDialog",props:{...Hi.props,doneClass:{type:[String,Object],default:""},doneText:{type:String,default:"Done"}},emits:["update:model-value","close"],setup(t,{emit:e}){const n=e;function r(){n("update:model-value",!1),n("close")}return(o,s)=>{const l=i.resolveComponent("QBtn");return i.openBlock(),i.createBlock(i.unref(Hi),i.mergeProps({class:"dx-info-dialog"},o.$props,{onClose:r}),i.createSlots({actions:i.withCtx(()=>[i.createElementVNode("div",Ap,[i.createVNode(l,{label:t.doneText,class:i.normalizeClass(["dx-dialog-button dx-dialog-button-done",t.doneClass]),onClick:r},{default:i.withCtx(()=>[i.renderSlot(o.$slots,"done-text")]),_:3},8,["label","class"])]),i.renderSlot(o.$slots,"actions")]),_:2},[o.$slots.title?{name:"title",fn:i.withCtx(()=>[i.renderSlot(o.$slots,"title")]),key:"0"}:void 0,o.$slots.subtitle?{name:"subtitle",fn:i.withCtx(()=>[i.renderSlot(o.$slots,"subtitle")]),key:"1"}:void 0]),1040)}}},Op={__name:"InputDialog",props:{...Ct.props,title:{type:String,default:"Enter Value"},input:{type:[Number,String],default:""}},emits:["confirm","close","update:input"],setup(t){const e=t,n=i.ref(e.input);return(r,o)=>{const s=i.resolveComponent("QInput");return i.openBlock(),i.createBlock(i.unref(Ct),i.mergeProps(r.$props,{onConfirm:o[2]||(o[2]=l=>r.$emit("confirm",n.value)),onClose:o[3]||(o[3]=l=>r.$emit("close",l))}),{default:i.withCtx(()=>[i.renderSlot(r.$slots,"default",{},()=>[i.createVNode(s,{modelValue:n.value,"onUpdate:modelValue":o[0]||(o[0]=l=>n.value=l),type:"number",class:"w-full",onInput:o[1]||(o[1]=l=>r.$emit("update:input",l))},null,8,["modelValue"])])]),_:3},16)}}},Dp={class:"dx-field-label"},Pp={class:"dx-field-label-text"},Mp={class:"dx-field-label-label"},Lp={key:0,class:"dx-field-label-name"},vp={key:0,class:"dx-field-required"},ht=i.defineComponent({__name:"FieldLabel",props:{label:{},name:{},required:{type:Boolean},requiredLabel:{}},setup(t){return(e,n)=>(i.openBlock(),i.createElementBlock("div",Dp,[i.renderSlot(e.$slots,"default",{},()=>[i.createElementVNode("div",Pp,[i.createElementVNode("div",Mp,i.toDisplayString(e.label),1),e.name?(i.openBlock(),i.createElementBlock("div",Lp," ("+i.toDisplayString(e.name)+") ",1)):i.createCommentVNode("",!0)])]),e.required?(i.openBlock(),i.createElementBlock("span",vp,i.toDisplayString(e.requiredLabel||"*"),1)):i.createCommentVNode("",!0)]))}}),Gi=i.defineComponent({__name:"BooleanField",props:{label:{type:String,default:null},name:{type:String,default:null},required:Boolean,modelValue:{type:Boolean,default:void 0},labelClass:{type:String,default:"text-sm"},showName:Boolean,toggleIndeterminate:Boolean,disable:Boolean,readonly:Boolean},emits:["update:model-value"],setup(t){return(e,n)=>{const r=i.resolveComponent("QToggle");return i.openBlock(),i.createBlock(r,{"data-testid":"boolean-field-"+(t.name||t.label),"model-value":t.modelValue||(t.toggleIndeterminate?t.modelValue:!1),disable:t.disable||t.readonly,"toggle-indeterminate":t.toggleIndeterminate,"indeterminate-value":void 0,"onUpdate:modelValue":n[0]||(n[0]=o=>e.$emit("update:model-value",o))},{default:i.withCtx(()=>[i.createVNode(i.unref(ht),{label:t.label||t.name,name:t.name,"show-name":t.showName,class:i.normalizeClass(t.labelClass)},null,8,["label","name","show-name","class"])]),_:1},8,["data-testid","model-value","disable","toggle-indeterminate"])}}}),Vp={for:"first_name",class:"form-label"},qp={class:"mt-1"},Zi={__name:"LabeledInput",props:{type:{type:String,default:"text"},name:{type:String,required:!0},label:{type:String,default:null},placeholder:{type:String,default:null},modelValue:{type:[String,Number],required:!0},error:{type:String,default:null},required:Boolean,disabled:Boolean,rules:{type:Array,default:null}},emits:["update:model-value"],setup(t){return(e,n)=>{const r=i.resolveComponent("QInput");return i.openBlock(),i.createElementBlock("div",null,[i.createElementVNode("label",Vp,[i.renderSlot(e.$slots,"label",{},()=>[i.createTextVNode(i.toDisplayString(t.label),1)])]),i.createElementVNode("div",qp,[i.createVNode(r,{"model-value":t.modelValue,"error-message":t.error,error:!!t.error,"no-error-icon":"",outlined:"",dense:"",disable:t.disabled,readonly:t.disabled,type:t.type,name:t.name,placeholder:t.placeholder||t.label,required:t.required,rules:t.rules,"lazy-rules":!!t.rules,class:"w-full","onUpdate:modelValue":n[0]||(n[0]=o=>e.$emit("update:model-value",o))},null,8,["model-value","error-message","error","disable","readonly","type","name","placeholder","required","rules","lazy-rules"])])])}}},Rp={__name:"ConfirmPasswordField",props:{name:{type:String,default:"password_confirmation"},label:{type:String,default:"Confirm Password"},placeholder:{type:String,default:"Confirm Password"},modelValue:{type:[String,Number],required:!0},error:{type:String,default:null},password:{type:String,default:""},disabled:Boolean},emits:["update:model-value"],setup(t){const e=t,n=[r=>r===e.password||"The password and confirmation do not match"];return(r,o)=>(i.openBlock(),i.createBlock(i.unref(Zi),i.mergeProps({type:"password"},e,{name:t.name,"model-value":t.modelValue,rules:n,"onUpdate:modelValue":o[0]||(o[0]=s=>r.$emit("update:model-value",s))}),null,16,["name","model-value"]))}},Up={key:0,class:"font-bold text-xs mb-2"},jp={class:"flex items-center cursor-pointer"},zp={class:"flex-grow font-bold ml-3 hover:opacity-70"},Hp={key:0},Wi=i.defineComponent({__name:"DateField",props:{modelValue:{},label:{},clearable:{type:Boolean}},emits:["update:model-value"],setup(t,{emit:e}){const n=e,r=t,o=i.computed(()=>r.modelValue?kt(Ft(r.modelValue||"0000-00-00")):"- -"),s=i.ref(Ft(r.modelValue));i.watch(()=>r.modelValue,a=>s.value=a);function l(){n("update:model-value",s.value)}return(a,c)=>{const u=i.resolveComponent("QBtn"),d=i.resolveComponent("QDate"),f=i.resolveComponent("QPopupProxy");return i.openBlock(),i.createElementBlock("div",null,[a.label?(i.openBlock(),i.createElementBlock("div",Up,i.toDisplayString(a.label),1)):i.createCommentVNode("",!0),i.createElementVNode("div",jp,[i.createVNode(i.unref(za),{class:"w-5"}),i.createElementVNode("div",zp,[s.value?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createTextVNode(i.toDisplayString(o.value),1)],64)):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.createTextVNode(" - - ")],64))]),a.clearable&&s.value?(i.openBlock(),i.createElementBlock("div",Hp,[i.createVNode(u,{icon:"close",size:"sm",round:"",flat:"",onClick:c[0]||(c[0]=i.withModifiers(h=>(s.value=null)||l(),["stop","prevent"]))})])):i.createCommentVNode("",!0)]),i.createVNode(f,null,{default:i.withCtx(()=>[i.createVNode(d,{modelValue:s.value,"onUpdate:modelValue":[c[1]||(c[1]=h=>s.value=h),l]},null,8,["modelValue"])]),_:1})])}}}),Gp={class:"mb-2"},Zp={class:"flex items-center cursor-pointer"},Wp={class:"flex-grow font-bold ml-3 hover:opacity-70"},Yp={key:0},Yi=i.defineComponent({__name:"DateRangeField",props:{modelValue:{},label:{},inline:{type:Boolean},clearable:{type:Boolean},withTime:{type:Boolean}},emits:["update:model-value"],setup(t,{emit:e}){const n=e,r=t,o=i.computed(()=>a.value?r.withTime?{from:kt(bi(a.value.from||"0000-00-00")),to:kt(bi(a.value.to||"9999-12-31"))}:{from:kt(yi(a.value.from||"0000-00-00")),to:kt(yi(a.value.to||"9999-12-31"))}:{from:null,to:null}),s=i.ref(l(r.modelValue));i.watch(()=>r.modelValue,u=>s.value=l(u));function l(u){return u!=null&&u.from&&(u!=null&&u.to)?kt(u.from)===kt(u.to)?u.from:u:null}const a=i.computed(()=>{let u;return typeof s.value=="string"?u={from:s.value,to:s.value}:s.value&&(u={from:s.value.from,to:s.value.to}),u!=null&&u.from&&(u!=null&&u.to)&&r.withTime&&!u.from.includes("00:00:00")&&(u.from+=" 00:00:00",u.to+=" 23:59:59"),u});function c(){n("update:model-value",a.value)}return(u,d)=>{const f=i.resolveComponent("QDate"),h=i.resolveComponent("QBtn"),_=i.resolveComponent("QPopupProxy");return i.openBlock(),i.createElementBlock("div",null,[i.createElementVNode("div",Gp,[i.createVNode(i.unref(ht),{label:u.label},null,8,["label"])]),u.inline?(i.openBlock(),i.createBlock(f,{key:0,modelValue:s.value,"onUpdate:modelValue":[d[0]||(d[0]=p=>s.value=p),c],range:"",class:"reactive"},null,8,["modelValue"])):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.createElementVNode("div",Zp,[i.createVNode(i.unref(za),{class:"w-5 py-2"}),i.createElementVNode("div",Wp,[a.value?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createTextVNode(i.toDisplayString(o.value.from)+" - "+i.toDisplayString(o.value.to),1)],64)):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.createTextVNode(" - - ")],64))]),u.clearable&&s.value?(i.openBlock(),i.createElementBlock("div",Yp,[i.createVNode(h,{icon:"close",size:"sm",round:"",flat:"",onClick:d[1]||(d[1]=i.withModifiers(p=>(s.value=null)||c(),["stop","prevent"]))})])):i.createCommentVNode("",!0)]),i.createVNode(_,null,{default:i.withCtx(()=>[i.createVNode(f,{modelValue:s.value,"onUpdate:modelValue":[d[2]||(d[2]=p=>s.value=p),c],range:""},null,8,["modelValue"])]),_:1})],64))])}}}),Qp={class:"flex items-center justify-center"},Kp={key:0,class:"flex-grow"},Qi={__name:"DateTimePicker",props:{modelValue:{type:String,default:null},mask:{type:String,default:"YYYY-MM-DD HH:mm"},color:{type:String,default:"blue-600"},nullable:Boolean},emits:["update:modelValue","save","cancel","clear"],setup(t,{emit:e}){const n=e,r=t,o=i.computed({get:()=>Wl(Zl(r.modelValue)),set(s){const l=s?Wl(Bh(s)):null;(l||r.nullable)&&n("update:modelValue",l)}});return(s,l)=>{const a=i.resolveComponent("QBtn"),c=i.resolveComponent("QDate"),u=i.resolveComponent("QTime"),d=i.resolveComponent("QPopupProxy");return i.openBlock(),i.createBlock(d,{"model-value":!0,cover:"","transition-show":"scale","transition-hide":"scale",class:"bg-transparent shadow-none flex items-stretch"},{default:i.withCtx(()=>[i.createVNode(c,{modelValue:o.value,"onUpdate:modelValue":l[3]||(l[3]=f=>o.value=f),mask:t.mask,color:t.color},{default:i.withCtx(()=>[i.createElementVNode("div",Qp,[t.nullable?(i.openBlock(),i.createElementBlock("div",Kp,[i.createVNode(a,{label:"Clear",color:"blue-600",flat:"",onClick:l[0]||(l[0]=f=>o.value=null)})])):i.createCommentVNode("",!0),i.createElementVNode("div",null,[i.createVNode(a,{label:"Cancel",color:"blue-600",flat:"",onClick:l[1]||(l[1]=f=>s.$emit("cancel"))}),i.createVNode(a,{label:"Set",color:"blue-600",flat:"",onClick:l[2]||(l[2]=f=>s.$emit("save"))})])])]),_:1},8,["modelValue","mask","color"]),i.createVNode(u,{modelValue:o.value,"onUpdate:modelValue":l[4]||(l[4]=f=>o.value=f),mask:t.mask,color:t.color,class:"ml-3"},null,8,["modelValue","mask","color"])]),_:1})}}},Xp={__name:"DateTimeField",props:{modelValue:{type:String,required:!0},color:{type:String,default:"blue-600"}},emits:["update:model-value"],setup(t,{emit:e}){const n=e,r=t,o=i.ref(!1),s=i.ref(r.modelValue);function l(){n("update:model-value",s.value),o.value=!1}return(a,c)=>{const u=i.resolveComponent("QPopupProxy"),d=i.resolveComponent("QIcon"),f=i.resolveComponent("QInput");return i.openBlock(),i.createElementBlock("div",null,[i.createVNode(f,{"model-value":i.unref(gr)(t.modelValue),color:t.color,class:"bg-white rounded overflow-hidden px-2 w-48",dense:"",readonly:"",onClick:c[3]||(c[3]=h=>o.value=!0)},{append:i.withCtx(()=>[i.createVNode(d,{name:"event",class:"cursor-pointer"},{default:i.withCtx(()=>[i.createVNode(u,{modelValue:o.value,"onUpdate:modelValue":c[2]||(c[2]=h=>o.value=h)},{default:i.withCtx(()=>[i.createVNode(i.unref(Qi),{modelValue:s.value,"onUpdate:modelValue":c[0]||(c[0]=h=>s.value=h),onCancel:c[1]||(c[1]=h=>o.value=!1),onSave:l},null,8,["modelValue"])]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["model-value","color"])])}}},Jp={class:"inline-block relative"},e0=i.defineComponent({__name:"EditableDiv",props:{modelValue:{},color:{default:"blue-200"},debounceDelay:{default:1e3},placeholder:{default:"Enter Text..."}},emits:["update:model-value","change"],setup(t,{emit:e}){const n=e,r=t,o=i.ref(r.modelValue),s=i.ref(null),l=i.ref(0),a=i.ref(0),c=i.ref(!1);i.onMounted(()=>{s.value&&(l.value=s.value.offsetWidth+"px",a.value=s.value.offsetHeight+"px")}),i.watch(()=>r.modelValue,h=>{c.value||(o.value=h)});const u=rn(()=>{n("update:model-value",o.value),n("change",o.value)},r.debounceDelay);function d(h){o.value=h.target.innerText,u()}const f=i.computed(()=>[`hover:bg-${r.color} focus:bg-${r.color}`,`hover:text-${r.textColor} focus:text-${r.textColor}`,`hover:outline-${r.color} focus:outline-${r.color}`]);return(h,_)=>(i.openBlock(),i.createElementBlock("div",Jp,[i.createElementVNode("div",{contenteditable:"",class:i.normalizeClass(["relative inline-block transition duration-300 outline-none outline-offset-0 border-none focus:outline-4 hover:outline-4 rounded-sm z-10",f.value]),style:i.normalizeStyle({minWidth:l.value,minHeight:a.value}),onInput:d,onFocusin:_[0]||(_[0]=p=>c.value=!0),onFocusout:_[1]||(_[1]=p=>c.value=!1)},i.toDisplayString(o.value),39),!o.value&&h.placeholder?(i.openBlock(),i.createElementBlock("div",{key:0,ref_key:"placeholderDiv",ref:s,class:"text-gray-600 absolute-top-left whitespace-nowrap z-1"},i.toDisplayString(h.placeholder),513)):i.createCommentVNode("",!0)]))}}),t0=["contenteditable"],n0={key:0},r0=ft(i.defineComponent({__name:"EditOnClickTextField",props:i.mergeModels({class:{default:"hover:bg-slate-300"},editingClass:{default:"bg-slate-500"},inputClass:{default:"whitespace-normal"},readonly:{type:Boolean}},{modelValue:{type:String},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const e=i.ref(null),n=i.useModel(t,"modelValue"),r=i.ref(n.value),o=t,s=i.ref(!1);function l(){o.readonly||(s.value=!0,r.value=n.value,i.nextTick(()=>{var c;(c=e.value)==null||c.focus()}))}function a(c){r.value=c,n.value=c}return(c,u)=>{const d=i.resolveComponent("QBtn");return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["danx-edit-on-click-text-field flex flex-nowrap items-center rounded overflow-ellipsis",{[o.class]:!0,"is-readonly":c.readonly,"cursor-pointer":!s.value&&!c.readonly}]),onClick:l,onFocusout:u[2]||(u[2]=f=>s.value=!1)},[i.createElementVNode("div",{ref_key:"editableBox",ref:e,contenteditable:!c.readonly&&s.value,class:i.normalizeClass(["flex-grow p-2 rounded outline-none border-none",{[c.editingClass]:s.value,[c.inputClass]:!0}]),onInput:u[0]||(u[0]=f=>a(f.target.innerText))},i.toDisplayString(s.value?r.value:n.value),43,t0),c.readonly?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("div",n0,[s.value?(i.openBlock(),i.createBlock(d,{key:0,onClick:u[1]||(u[1]=i.withModifiers(f=>s.value=!1,["stop"]))},{default:i.withCtx(()=>[i.createVNode(i.unref(q1),{class:"w-4"})]),_:1})):(i.openBlock(),i.createBlock(d,{key:1,class:"edit-icon"},{default:i.withCtx(()=>[i.createVNode(i.unref(Ba),{class:"w-4"})]),_:1}))]))],34)}}}),[["__scopeId","data-v-4d689a6d"]]),o0=["accept","capture"],i0={__name:"FileUploadButton",props:{...J.QBtn.props,text:{type:String,default:"Add File"},locationWaitMessage:{type:String,default:"Waiting for location..."},cameraOnly:Boolean,geolocation:Boolean},emits:["uploading","file-progress","file-complete","complete"],setup(t,{expose:e,emit:n}){e({upload:l});const r=n,o=t,s=i.ref(null);function l(){s.value.click()}async function a({target:{files:c}}){r("uploading",c);let u=new mo(c).prepare().onProgress(({file:d,progress:f})=>{d.progress=f,r("file-progress",d)}).onComplete(({file:d,uploadedFile:f})=>{r("file-complete",{file:d,uploadedFile:f})}).onAllComplete(()=>{r("complete",u.files)});o.geolocation&&await u.resolveLocation(o.locationWaitMessage),u.upload()}return(c,u)=>(i.openBlock(),i.createBlock(i.unref(J.QBtn),i.mergeProps(c.$props,{onClick:u[0]||(u[0]=d=>c.$refs.fileUpload.click())}),{default:i.withCtx(()=>[i.renderSlot(c.$slots,"default",{},()=>[i.createVNode(i.unref(hp),{class:"w-5 mr-2"}),i.createTextVNode(" "+i.toDisplayString(t.text),1)]),i.createElementVNode("input",{ref_key:"fileUpload",ref:s,"data-testid":"file-upload",type:"file",accept:t.geolocation&&t.cameraOnly?"image/*;capture=camera":void 0,capture:t.geolocation&&t.cameraOnly?"environment":void 0,class:"hidden",multiple:"",onChange:a},null,40,o0)]),_:3},16))}},s0={class:"inline-block"},l0={class:"cursor-pointer py-2 hover:bg-blue-200 flex items-center justify-end"},a0={__name:"InlineDateTimeField",props:{modelValue:{type:String,default:null},nullable:Boolean},emits:["close","save","update:model-value"],setup(t,{emit:e}){const n=e;function r(o){n("update:model-value",o.value),n("save",o.value),o.set()}return(o,s)=>{const l=i.resolveComponent("QPopupEdit");return i.openBlock(),i.createElementBlock("div",s0,[i.createElementVNode("div",l0,[i.createTextVNode(i.toDisplayString(i.unref(gr)(t.modelValue,{empty:"Never"}))+" ",1),i.createVNode(i.unref($a),{class:"w-4 font-bold ml-2 text-gray-400"}),i.createVNode(l,{"model-value":t.modelValue,"touch-position":"",offset:[0,20],class:"bg-blue-600 text-white !min-w-0"},{default:i.withCtx(a=>[i.createVNode(i.unref(Qi),{modelValue:a.value,"onUpdate:modelValue":c=>a.value=c,nullable:t.nullable,onSave:c=>r(a),onCancel:a.cancel},null,8,["modelValue","onUpdate:modelValue","nullable","onSave","onCancel"])]),_:1},8,["model-value"])])])}}},Qa=i.defineComponent({__name:"MaxLengthCounter",props:{length:{},maxLength:{}},setup(t){return(e,n)=>e.maxLength?(i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass(["danx-input-chars",{"danx-input-chars--error":e.length>e.maxLength}])},i.toDisplayString(i.unref(At)(e.length))+" / "+i.toDisplayString(i.unref(At)(e.maxLength))+" characters ",3)):i.createCommentVNode("",!0)}}),c0={class:"dx-text-field"},u0={key:1,class:"dx-text-field-readonly-value"},on=i.defineComponent({__name:"TextField",props:{modelValue:{default:""},type:{default:"text"},label:{default:""},required:{type:Boolean},requiredLabel:{},prependLabel:{type:Boolean},placeholder:{default:null},labelClass:{default:""},inputClass:{default:""},allowOverMax:{type:Boolean},maxLength:{default:null},rows:{default:3},autogrow:{type:Boolean},noLabel:{type:Boolean},showName:{type:Boolean},disabled:{type:Boolean},readonly:{type:Boolean},debounce:{default:0}},emits:["update:model-value","submit"],setup(t){return(e,n)=>{const r=i.resolveComponent("QInput");return i.openBlock(),i.createElementBlock("div",c0,[e.prependLabel?i.createCommentVNode("",!0):(i.openBlock(),i.createBlock(i.unref(ht),{key:0,label:e.label,required:e.required,"required-label":e.requiredLabel,class:i.normalizeClass(e.labelClass)},null,8,["label","required","required-label","class"])),e.readonly?(i.openBlock(),i.createElementBlock("div",u0,i.toDisplayString(e.modelValue),1)):(i.openBlock(),i.createElementBlock(i.Fragment,{key:2},[i.createVNode(r,{placeholder:e.placeholder||(e.placeholder===""?"":`Enter ${e.label}`),outlined:"",dense:"",readonly:e.readonly,autogrow:e.autogrow,disable:e.disabled,"label-slot":!e.noLabel,"input-class":e.inputClass,rows:e.rows,class:i.normalizeClass({"dx-input-prepend-label":e.prependLabel}),"stack-label":"",type:e.type,"model-value":e.modelValue,maxlength:e.allowOverMax?void 0:e.maxLength,debounce:e.debounce,onKeydown:n[0]||(n[0]=i.withKeys(o=>e.$emit("submit"),["enter"])),"onUpdate:modelValue":n[1]||(n[1]=o=>e.$emit("update:model-value",o))},i.createSlots({append:i.withCtx(()=>[i.renderSlot(e.$slots,"append")]),_:2},[e.prependLabel||e.$slots.prepend?{name:"prepend",fn:i.withCtx(()=>[i.createVNode(i.unref(ht),{class:i.normalizeClass(["dx-prepended-label",e.labelClass]),label:e.label,required:e.required,"required-label":e.requiredLabel},null,8,["label","required","required-label","class"]),i.renderSlot(e.$slots,"prepend")]),key:"0"}:void 0]),1032,["placeholder","readonly","autogrow","disable","label-slot","input-class","rows","class","type","model-value","maxlength","debounce"]),i.createVNode(i.unref(Qa),{length:(e.modelValue+"").length||0,"max-length":e.maxLength},null,8,["length","max-length"])],64))])}}}),Er=i.defineComponent({__name:"NumberField",props:{precision:{default:2},delay:{default:1e3},currency:{type:Boolean},min:{default:void 0},max:{default:void 0},modelValue:{default:""},type:{},label:{default:void 0},required:{type:Boolean},requiredLabel:{},prependLabel:{type:Boolean},placeholder:{},labelClass:{},inputClass:{},allowOverMax:{type:Boolean},maxLength:{},rows:{},autogrow:{type:Boolean},noLabel:{type:Boolean},showName:{type:Boolean},disabled:{type:Boolean},readonly:{type:Boolean},debounce:{}},emits:["update:model-value","update"],setup(t,{emit:e}){const n=e,r=t,o=i.ref(s(r.modelValue));i.watch(()=>r.modelValue,()=>o.value=s(r.modelValue));function s(c){var f;if(!c&&c!==0&&c!=="0"||r.type==="number")return c;const u=Math.min(r.precision,((f=(""+c).split(".")[1])==null?void 0:f.length)||0);let d={minimumFractionDigits:u};return r.currency&&(d={style:"currency",currency:"USD",minimumFractionDigits:u}),At(c,d)}const l=rn(c=>n("update",c),r.delay);function a(c){let u;if(c.match(/[^\d.,$]/)){const d=o.value;return o.value+=" ",i.nextTick(()=>o.value=d)}c!==""&&(c=c.replace(/[^\d.]/g,""),u=+c,r.min&&(u=Math.max(u,r.min)),r.max&&(u=Math.min(u,r.max)),o.value=s(u)),n("update:model-value",u),l(u)}return(c,u)=>(i.openBlock(),i.createBlock(i.unref(on),i.mergeProps({class:"dx-number-field"},c.$props,{"model-value":o.value,"onUpdate:modelValue":a}),null,16,["model-value"]))}}),Ka=i.defineComponent({__name:"IntegerField",props:{precision:{},delay:{default:1e3},currency:{type:Boolean},min:{default:void 0},max:{default:void 0},modelValue:{default:""},type:{},label:{default:void 0},required:{type:Boolean},requiredLabel:{},prependLabel:{type:Boolean},placeholder:{},labelClass:{},inputClass:{},allowOverMax:{type:Boolean},maxLength:{},rows:{},autogrow:{type:Boolean},noLabel:{type:Boolean},showName:{type:Boolean},disabled:{type:Boolean},readonly:{type:Boolean},debounce:{}},emits:["update:model-value"],setup(t){return(e,n)=>(i.openBlock(),i.createBlock(i.unref(Er),i.mergeProps(e.$props,{precision:0,"model-value":e.modelValue,"onUpdate:modelValue":n[0]||(n[0]=r=>e.$emit("update:model-value",r))}),null,16,["model-value"]))}}),d0={class:"text-xs font-bold"},f0=["href"],h0=["href"],_0=i.defineComponent({__name:"LabelValueBlock",props:{label:{},value:{type:[String,Number,Boolean],default:""},url:{default:""},dense:{type:Boolean},nowrap:{type:Boolean}},setup(t){const e=t,n=i.computed(()=>({"mt-2":!e.dense,"mt-1":e.dense,"text-no-wrap":e.nowrap})),r=i.computed(()=>typeof e.value=="string"&&e.value.length>30),o=i.computed(()=>{switch(typeof e.value){case"boolean":return Fh(e.value);case"number":return At(e.value);default:return e.value||"-"}});return(s,l)=>(i.openBlock(),i.createElementBlock("div",null,[i.createElementVNode("div",d0,[i.renderSlot(s.$slots,"label",{},()=>[i.createTextVNode(i.toDisplayString(s.label),1)])]),i.createElementVNode("div",{class:i.normalizeClass(n.value)},[s.url?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[r.value?(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.renderSlot(s.$slots,"default",{},()=>[i.createTextVNode(i.toDisplayString(o.value),1)]),i.createElementVNode("a",{target:"_blank",href:s.url,class:"inline-block ml-2"},[i.createVNode(i.unref(nm),{class:"w-4"})],8,h0)],64)):(i.openBlock(),i.createElementBlock("a",{key:0,target:"_blank",href:s.url},[i.renderSlot(s.$slots,"default",{},()=>[i.createTextVNode(i.toDisplayString(o.value),1)])],8,f0))],64)):i.renderSlot(s.$slots,"default",{key:1},()=>[i.createTextVNode(i.toDisplayString(o.value),1)])],2)]))}}),m0={class:"flex items-stretch justify-start"},p0={key:0,class:"dx-add-remove-files w-32 h-32 m-2 rounded-2xl flex flex-col flex-nowrap items-center overflow-hidden cursor-pointer"},g0=i.createElementVNode("div",{class:"mt-1 text-center"}," Add ",-1),y0={key:1,class:"p-1"},Xa=i.defineComponent({__name:"MultiFileField",props:{modelValue:{},field:{},label:{},showName:{type:Boolean},disable:{type:Boolean},readonly:{type:Boolean}},emits:["update:model-value"],setup(t,{emit:e}){const n=e,r=t,{onComplete:o,onDrop:s,onFilesSelected:l,uploadedFiles:a,clearUploadedFiles:c,onRemove:u}=w1();return i.onMounted(()=>{r.modelValue&&(a.value=r.modelValue)}),o(()=>n("update:model-value",a.value)),(d,f)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["max-w-full relative overflow-auto",{"p-2":!d.readonly}]),onDragover:f[3]||(f[3]=i.withModifiers(()=>{},["prevent"])),onDrop:f[4]||(f[4]=i.withModifiers((...h)=>i.unref(s)&&i.unref(s)(...h),["prevent"]))},[i.createVNode(i.unref(ht),{field:d.field,label:d.label,"show-name":d.showName},null,8,["field","label","show-name"]),!d.disable&&!d.readonly?(i.openBlock(),i.createElementBlock("input",{key:0,ref:"file",class:"hidden",type:"file",multiple:"",onChange:f[0]||(f[0]=(...h)=>i.unref(l)&&i.unref(l)(...h))},null,544)):i.createCommentVNode("",!0),i.createElementVNode("div",m0,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(a),h=>(i.openBlock(),i.createBlock(i.unref(Tr),{key:"file-upload-"+h.id,class:"w-32 h-32 m-2 cursor-pointer bg-gray-200",file:h,"related-files":h.transcodes||i.unref(a),downloadable:"",removable:!d.readonly&&!d.disable,onRemove:_=>i.unref(u)(h)},null,8,["file","related-files","removable","onRemove"]))),128)),!d.disable&&!d.readonly?(i.openBlock(),i.createElementBlock("div",p0,[i.createElementVNode("div",{class:"dx-add-file flex-grow p-1 pt-3 flex justify-center items-center bg-green-200 text-green-700 w-full hover:bg-green-100",onClick:f[1]||(f[1]=h=>d.$refs.file.click())},[i.createElementVNode("div",null,[i.createVNode(i.unref(zi),{class:"w-10 m-auto"}),g0])]),i.unref(a).length>0?(i.openBlock(),i.createElementBlock("div",{key:0,class:"dx-remove-file flex items-center flex-nowrap p-2 bg-red-200 text-red-800 hover:bg-red-100 w-full justify-center text-xs",onClick:f[2]||(f[2]=(...h)=>i.unref(c)&&i.unref(c)(...h))},[i.createVNode(i.unref(go),{class:"mr-2 w-3"}),i.createTextVNode(" Remove All ")])):i.createCommentVNode("",!0)])):i.createCommentVNode("",!0),d.readonly&&i.unref(a).length===0?(i.openBlock(),i.createElementBlock("div",y0," -- ")):i.createCommentVNode("",!0)])],34))}}),Mn=i.defineComponent({__name:"SelectField",props:{modelValue:{default:void 0},placeholder:{default:""},selectionLabel:{type:[String,Function],default:null},chipLimit:{default:3},inputClass:{default:""},selectionClass:{default:""},options:{default:()=>[]},filterable:{type:Boolean},filterFn:{type:Function,default:null},selectByObject:{type:Boolean},optionLabel:{type:[String,Function],default:"label"},name:{},virtualScrollHorizontal:{type:Boolean},virtualScrollSliceSize:{},virtualScrollSliceRatioBefore:{},virtualScrollSliceRatioAfter:{},virtualScrollItemSize:{},virtualScrollStickySizeStart:{},virtualScrollStickySizeEnd:{},tableColspan:{},error:{type:[Boolean,null]},errorMessage:{},noErrorIcon:{type:Boolean},rules:{},reactiveRules:{type:Boolean},lazyRules:{type:[Boolean,String]},label:{},stackLabel:{type:Boolean},hint:{},hideHint:{type:Boolean},prefix:{},suffix:{},labelColor:{},color:{},bgColor:{},dark:{type:[Boolean,null]},loading:{type:Boolean},clearable:{type:Boolean},clearIcon:{},filled:{type:Boolean},outlined:{type:Boolean},borderless:{type:Boolean},standout:{type:[Boolean,String]},labelSlot:{type:Boolean},bottomSlots:{type:Boolean},hideBottomSpace:{type:Boolean},counter:{type:Boolean},rounded:{type:Boolean},square:{type:Boolean},dense:{type:Boolean},itemAligned:{type:Boolean},disable:{type:Boolean},readonly:{type:Boolean},autofocus:{type:Boolean},for:{},multiple:{type:Boolean},displayValue:{},displayValueHtml:{type:Boolean},optionValue:{},optionDisable:{},hideSelected:{type:Boolean},hideDropdownIcon:{type:Boolean},dropdownIcon:{},maxValues:{},optionsDense:{type:Boolean},optionsDark:{type:[Boolean,null]},optionsSelectedClass:{},optionsHtml:{type:Boolean},optionsCover:{type:Boolean},menuShrink:{type:Boolean},menuAnchor:{},menuSelf:{},menuOffset:{},popupContentClass:{},popupContentStyle:{},popupNoRouteDismiss:{type:Boolean},useInput:{type:Boolean},useChips:{type:Boolean},fillInput:{type:Boolean},newValueMode:{},mapOptions:{type:Boolean},emitValue:{type:Boolean},inputDebounce:{},inputStyle:{},tabindex:{},autocomplete:{},transitionShow:{},transitionHide:{},transitionDuration:{},behavior:{},onVirtualScroll:{},onClear:{},"onUpdate:modelValue":{},onInputValue:{},onRemove:{},onAdd:{},onNewValue:{},onFilter:{},onFilterAbort:{},onPopupShow:{},onPopupHide:{}},emits:["update:model-value","search","update"],setup(t,{emit:e}){const n=e,r=t,o=i.ref(null),s=i.ref(null),l=i.ref(!1),a=i.computed(()=>{let b=r.options;return r.placeholder&&!r.multiple&&!r.filterable&&(b=[{label:r.placeholder,value:null},...r.options]),b=b.map(k=>{let E=i.isRef(k)?k.value:k;return{label:_(E),value:m(E),selectionLabel:p(E)}}),b}),c=i.computed(()=>s.value&&!r.filterFn?a.value.filter(b=>{var k;return b.label.toLocaleLowerCase().indexOf((k=s.value)==null?void 0:k.toLowerCase())>-1}):a.value),u=i.computed(()=>r.multiple?(Array.isArray(r.modelValue)?r.modelValue:[]).map(k=>k===null?"__null__":k)||[]:r.modelValue===null?"__null__":r.selectByObject?r.modelValue.value||r.modelValue.id:r.modelValue),d=i.computed(()=>{let b=u.value;r.multiple||(b=b||b===0?[b]:[]);const k=b.map(E=>E==="__null__"?null:typeof E=="object"?E.value||E.id:E);return a.value.filter(E=>k.includes(E.value))}),f=i.computed(()=>r.filterable&&l.value?"":!d.value||d.value.length===0?r.placeholder||"(Select Option)":d.value[0].selectionLabel),h=i.computed(()=>d.value.slice(0,r.chipLimit));function _(b){return typeof b=="string"?b:typeof r.optionLabel=="string"?b[r.optionLabel]:typeof r.optionLabel=="function"?r.optionLabel(b):b==null?void 0:b.label}function p(b){return typeof b=="string"?b:typeof r.selectionLabel=="string"?b[r.selectionLabel]:typeof r.selectionLabel=="function"?r.selectionLabel(b):(b==null?void 0:b.selectionLabel)||(b==null?void 0:b.label)||b&&b[r.optionLabel]}function m(b){if(!b||typeof b=="string")return b;let k=b.value||b.id;return typeof r.optionValue=="string"?k=b[r.optionValue]:typeof r.optionValue=="function"&&(k=r.optionValue(b)),k===null?"__null__":k}function g(b){Array.isArray(b)&&(b=b.map(k=>k==="__null__"?null:k)),b=b==="__null__"?null:b,r.selectByObject&&b!==null&&b!==void 0&&typeof b!="object"&&(r.multiple?b=r.options.filter(k=>b.includes(m(k))):b=r.options.find(k=>m(k)===b)),n("update:model-value",b),n("update",b)}const x=i.ref(!1);async function y(b,k){if(!r.filterFn)s.value=b,await i.nextTick(k);else{if(k(),!x.value)return;b!==null&&b!==s.value&&(s.value=b,r.filterFn&&await r.filterFn(b))}}function w(){n("update:model-value",void 0),n("update",void 0)}function C(){l.value=!0,x.value=!1,i.nextTick(()=>{x.value=!0,o.value.focus()})}function T(){l.value=!1,x.value=!1}return(b,k)=>{const E=i.resolveComponent("QChip");return i.openBlock(),i.createElementBlock("div",null,[b.label?(i.openBlock(),i.createBlock(i.unref(ht),{key:0,label:b.label},null,8,["label"])):i.createCommentVNode("",!0),i.createVNode(i.unref(J.QSelect),i.mergeProps({ref_key:"selectField",ref:o},b.$props,{"model-value":u.value,outlined:"","hide-dropdown-icon":"",dense:"","emit-value":"","use-input":b.filterable,"hide-selected":b.filterable&&l.value&&!b.$props.multiple,"input-debounce":100,options:c.value,"option-label":"label","option-value":"value",placeholder:"",label:"","input-class":{"is-hidden":!l.value,[b.inputClass]:!0},class:"max-w-full dx-select-field",onFilter:y,onClear:w,onPopupShow:C,onPopupHide:T,"onUpdate:modelValue":g}),{append:i.withCtx(()=>[i.createVNode(i.unref(rp),{class:i.normalizeClass(["w-4 transition",l.value?"rotate-180":""])},null,8,["class"])]),selected:i.withCtx(()=>[b.$props.multiple?(i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass(["flex gap-y-1 overflow-hidden dx-selected-label",{"flex-nowrap gap-y-0":b.chipLimit===1,"dx-selected-chips":h.value.length>0,[b.selectionClass]:!0}])},[h.value.length>0?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(h.value,N=>(i.openBlock(),i.createBlock(E,{key:"selected-"+N.label,class:"!mr-1"},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(N.label),1)]),_:2},1024))),128)),d.value.length>h.value.length?(i.openBlock(),i.createBlock(E,{key:0,class:"!mr-1"},{default:i.withCtx(()=>[i.createTextVNode(" +"+i.toDisplayString(d.value.length-h.value.length),1)]),_:1})):i.createCommentVNode("",!0)],64)):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.createTextVNode(i.toDisplayString(b.placeholder),1)],64))],2)):(i.openBlock(),i.createElementBlock("div",{key:1,class:i.normalizeClass([b.selectionClass,"dx-selected-label"])},i.toDisplayString(f.value),3))]),_:1},16,["model-value","use-input","hide-selected","options","input-class"])])}}}),Ja={__name:"MultiKeywordField",props:{modelValue:{type:[String,Number,Object],default:""},field:{type:Object,default:null}},emits:["update:model-value"],setup(t,{emit:e}){const n=e,r=t,o=i.ref(r.field.defaultOption),s=i.computed(()=>r.modelValue&&r.modelValue[o.value]),l=i.ref(c());function a(){var u;l.value=((u=l.value)==null?void 0:u.replace(/\n/g,",").replace(/,{2,}/g,","))||"",n("update:model-value",l.value?{[o.value]:l.value.split(",")}:void 0)}function c(){var u;return Array.isArray(s.value)?(u=s.value)==null?void 0:u.join(","):""}return i.watch(()=>r.modelValue,()=>{l.value=c()}),(u,d)=>(i.openBlock(),i.createElementBlock("div",null,[i.createVNode(i.unref(Mn),{modelValue:o.value,"onUpdate:modelValue":[d[0]||(d[0]=f=>o.value=f),a],label:void 0,options:t.field.options,class:"mb-2"},null,8,["modelValue","options"]),i.createVNode(i.unref(on),{modelValue:l.value,"onUpdate:modelValue":[d[1]||(d[1]=f=>l.value=f),a],field:t.field,"no-label":!t.field.label,"label-class":"text-xs font-bold text-zinc-800","input-class":"!py-0",dense:"",type:"textarea",debounce:500},null,8,["modelValue","field","no-label"])]))}},b0={__name:"NewPasswordField",props:{name:{type:String,default:"password"},label:{type:String,default:"Password"},placeholder:{type:String,default:"Enter Password"},modelValue:{type:[String,Number],required:!0},error:{type:String,default:null},disabled:Boolean},emits:["update:model-value"],setup(t){const e=t,n=[r=>r.length>=8||"Please use at least 8 characters"];return(r,o)=>(i.openBlock(),i.createBlock(i.unref(Zi),i.mergeProps({type:"password"},e,{rules:n,"onUpdate:modelValue":o[0]||(o[0]=s=>r.$emit("update:model-value",s))}),null,16))}},w0={key:0,class:"font-bold text-xs mb-2"},k0={class:"flex items-center flex-nowrap cursor-pointer"},x0={class:"text-sm ml-3 hover:text-blue-600 whitespace-nowrap"},bo={__name:"NumberRangeField",props:{modelValue:{type:Object,default:null},label:{type:String,default:null},icon:{type:Object,default:null},currency:Boolean,percent:Boolean,debounce:{type:Number,default:0}},emits:["update:model-value"],setup(t,{emit:e}){const n=e,r=t,o=i.computed(()=>r.currency?"$":r.percent?"%":""),s=i.computed(()=>({id:"min-field",name:"from",label:"Min"+o.value,placeholder:"0"})),l=i.computed(()=>({id:"max-field",name:"to",label:"Max"+o.value,placeholder:"No Limit"})),a=i.computed(()=>r.icon||(r.currency?op:r.percent?Va:up)),c=i.ref({});i.watch(()=>r.modelValue,u);function u(h){const _=r.percent?100:1;c.value={from:h!=null&&h.from?h.from*_:void 0,to:h!=null&&h.to?h.to*_:void 0}}u(r.modelValue||{from:void 0,to:void 0});function d(h){return h===void 0?"No Limit":r.currency?ki(h):r.percent?Ah(h,{multiplier:1,maximumFractionDigits:2}):At(h)}const f=rn(()=>{if(c.value&&(c.value.from||c.value.to)){const h=r.percent?.01:1;let _={from:c.value.from?c.value.from*h:void 0,to:c.value.to?c.value.to*h:void 0};n("update:model-value",_)}},r.debounce);return(h,_)=>{const p=i.resolveComponent("QPopupProxy");return i.openBlock(),i.createElementBlock("div",null,[t.label?(i.openBlock(),i.createElementBlock("div",w0,i.toDisplayString(t.label),1)):i.createCommentVNode("",!0),i.createElementVNode("div",k0,[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(a.value),{class:"w-5 text-blue-600"})),i.createElementVNode("div",x0,[c.value?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createTextVNode(i.toDisplayString(d(c.value.from||0))+" - "+i.toDisplayString(d(c.value.to)),1)],64)):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.createTextVNode(" No Limit ")],64))])]),i.createVNode(p,null,{default:i.withCtx(()=>[i.createVNode(i.unref(Er),{modelValue:c.value.from,"onUpdate:modelValue":[_[0]||(_[0]=m=>c.value.from=m),i.unref(f)],field:s.value},null,8,["modelValue","field","onUpdate:modelValue"]),i.createVNode(i.unref(Er),{modelValue:c.value.to,"onUpdate:modelValue":[_[1]||(_[1]=m=>c.value.to=m),i.unref(f)],class:"mt-2",field:l.value},null,8,["modelValue","field","onUpdate:modelValue"])]),_:1})])}}},S0=["data-dusk","onClick"],C0={__name:"SelectDrawer",props:{modelValue:{type:[Object,String,Array,null],required:!0},options:{type:Array,default:()=>[]},multiple:Boolean,label:{type:String,default:"Select"},placeholder:{type:String,default:"All"}},emits:["update:modelValue"],setup(t,{emit:e}){const n=e,r=t,o=i.ref(!1),s=i.computed(()=>r.options.map(d=>typeof d=="string"?{label:d,value:d}:d));function l(d){return d.value===void 0?d:d.value}function a(d){return s.value.find(f=>f.value===d).label}function c(d){const f=l(d);return r.multiple?r.modelValue.includes(f):r.modelValue===f}function u(d){let f=l(d),h=f;r.multiple?(h=[...r.modelValue],c(f)?h=h.filter(_=>_!==f):h.push(f)):h===r.modelValue&&(h=null),n("update:modelValue",h)}return(d,f)=>{const h=i.resolveComponent("QCheckbox"),_=i.resolveComponent("QChip");return i.openBlock(),i.createElementBlock("div",null,[i.createVNode(i.unref(Ji),{show:o.value,"onUpdate:show":f[0]||(f[0]=p=>o.value=p),"content-class":"",position:"bottom",title:"Filter "+t.label},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(s.value,p=>(i.openBlock(),i.createElementBlock("div",{key:"select-drawer-"+p.value,"data-dusk":"drawer-opt-"+p.value,class:"cursor-pointer hover:bg-slate-200 px-8 py-3 flex items-center border-b border-slate-200",onClick:m=>u(p)},[i.createVNode(h,{"model-value":c(p),class:"mr-2",onClick:i.withModifiers(m=>u(p),["stop"])},null,8,["model-value","onClick"]),i.renderSlot(d.$slots,"option",{opt:p},()=>[i.createTextVNode(i.toDisplayString(p.label),1)])],8,S0))),128))]),_:3},8,["show","title"]),i.createVNode(_,{ref:"select",outline:"",clickable:"",size:"16px",onClick:f[1]||(f[1]=p=>o.value=!0)},{default:i.withCtx(()=>[i.renderSlot(d.$slots,"selected",{},()=>[i.renderSlot(d.$slots,"label",{},()=>[i.createTextVNode(i.toDisplayString(t.label)+":  ",1)]),t.modelValue&&t.modelValue.length>0?i.renderSlot(d.$slots,"selection",{key:0},()=>[t.multiple?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createTextVNode(i.toDisplayString(a(t.modelValue[0]))+" ",1),t.modelValue.length>1?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createTextVNode(" + "+i.toDisplayString(t.modelValue.length-1),1)],64)):i.createCommentVNode("",!0)],64)):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.createTextVNode(i.toDisplayString(a(t.modelValue)),1)],64))]):i.renderSlot(d.$slots,"placeholder",{key:1},()=>[i.createTextVNode(i.toDisplayString(t.placeholder),1)])])]),_:3},512)])}}},E0={class:"flex items-stretch flex-nowrap gap-x-4"},T0=i.defineComponent({__name:"SelectOrCreateField",props:i.mergeModels({options:{},showEdit:{type:Boolean},canEdit:{type:Boolean},loading:{type:Boolean},selectByObject:{type:Boolean},optionLabel:{default:"label"},createText:{default:"Create"},editText:{default:"Edit"},clearable:{type:Boolean}},{selected:{},selectedModifiers:{},editing:{type:Boolean},editingModifiers:{}}),emits:i.mergeModels(["create"],["update:selected","update:editing"]),setup(t){const e=i.useModel(t,"selected"),n=i.useModel(t,"editing");return(r,o)=>{const s=i.resolveComponent("QBtn");return i.openBlock(),i.createElementBlock("div",E0,[i.createVNode(s,{class:"bg-green-900 px-4",loading:r.loading,onClick:o[0]||(o[0]=l=>r.$emit("create"))},{default:i.withCtx(()=>[i.createVNode(i.unref(cm),{class:i.normalizeClass(["w-4",r.createText?"mr-2":""])},null,8,["class"]),i.createTextVNode(" "+i.toDisplayString(r.createText),1)]),_:1},8,["loading"]),i.createVNode(i.unref(Mn),{modelValue:e.value,"onUpdate:modelValue":o[1]||(o[1]=l=>e.value=l),class:"flex-grow",options:r.options,clearable:r.clearable,"select-by-object":r.selectByObject,"option-label":r.optionLabel},null,8,["modelValue","options","clearable","select-by-object","option-label"]),r.showEdit?(i.openBlock(),i.createBlock(i.unref(Oa),{key:0,modelValue:n.value,"onUpdate:modelValue":o[2]||(o[2]=l=>n.value=l),disable:!r.canEdit,label:r.editText,class:"bg-sky-800 w-1/5"},null,8,["modelValue","disable","label"])):i.createCommentVNode("",!0)])}}}),N0={key:0,class:"text-zinc-500"},B0={key:1},I0={class:"text-xs text-zinc-500"},ec=i.defineComponent({__name:"SelectWithChildrenField",props:{modelValue:{default:()=>[]},label:{default:"Selection"},placeholder:{default:"Select an option"},options:{default:()=>[]},loading:{type:Boolean}},emits:["update:model-value"],setup(t,{emit:e}){const n=e,r=t;function o(){var u;return((u=r.modelValue)==null?void 0:u.length)>0?r.options.find(d=>d.children.find(f=>r.modelValue.includes(f.id))):null}const s=i.ref(o()),l=i.ref(r.modelValue||[]);function a(u){l.value.includes(u.id)?l.value=Rr(l.value,u.id):l.value.push(u.id),n("update:model-value",l.value.length>0?l.value:void 0)}function c(){l.value=[],n("update:model-value",void 0)}return i.watch(()=>r.modelValue,u=>{s.value=o(),l.value=u||[]}),(u,d)=>{const f=i.resolveComponent("QCheckbox");return i.openBlock(),i.createElementBlock("div",null,[!u.loading&&!u.options.length?(i.openBlock(),i.createElementBlock("div",N0," No options available ")):i.createCommentVNode("",!0),i.createVNode(i.unref(Mn),{modelValue:s.value,"onUpdate:modelValue":[d[0]||(d[0]=h=>s.value=h),c],options:u.options,label:u.label,placeholder:u.placeholder,"option-value":h=>h,loading:u.loading},null,8,["modelValue","options","label","placeholder","option-value","loading"]),s.value?(i.openBlock(),i.createElementBlock("div",B0,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(s.value.children,h=>(i.openBlock(),i.createBlock(f,{key:h.id,"model-value":l.value.includes(h.id),field:h,class:"mt-3","onUpdate:modelValue":_=>a(h)},{default:i.withCtx(()=>[i.createElementVNode("div",null,i.toDisplayString(h.label),1),i.createElementVNode("div",I0,i.toDisplayString(h.name),1)]),_:2},1032,["model-value","field","onUpdate:modelValue"]))),128))])):i.createCommentVNode("",!0)])}}}),$0={key:1,class:"text-sm mt-2"},F0={key:3,class:"py-1"},tc=i.defineComponent({__name:"SingleFileField",props:{modelValue:{},label:{},name:{},showName:{type:Boolean},disable:{type:Boolean},readonly:{type:Boolean}},emits:["update:model-value"],setup(t,{emit:e}){const n=e,r=t,{onComplete:o,onDrop:s,onFileSelected:l,uploadedFile:a,clearUploadedFile:c}=x1();return o(()=>n("update:model-value",a.value)),i.onMounted(()=>{r.modelValue&&(a.value=r.modelValue)}),(u,d)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["max-w-full relative overflow-auto",{"p-4 border rounded border-gray-300 text-center":!u.readonly}]),onDragover:d[4]||(d[4]=i.withModifiers(()=>{},["prevent"])),onDrop:d[5]||(d[5]=i.withModifiers((...f)=>i.unref(s)&&i.unref(s)(...f),["prevent"]))},[u.label||u.name||u.showName?(i.openBlock(),i.createBlock(i.unref(ht),{key:0,label:u.label,name:u.name,"show-name":u.showName,class:"text-sm font-semibold"},null,8,["label","name","show-name"])):i.createCommentVNode("",!0),!u.disable&&!u.readonly?(i.openBlock(),i.createElementBlock("div",$0,[i.createElementVNode("a",{class:"text-blue-600",onClick:d[0]||(d[0]=f=>u.$refs.file.click())},"Upload"),i.unref(a)?(i.openBlock(),i.createElementBlock("a",{key:0,class:"ml-3 text-red-900",onClick:d[1]||(d[1]=(...f)=>i.unref(c)&&i.unref(c)(...f))},"Clear")):i.createCommentVNode("",!0),i.createElementVNode("input",{ref:"file",class:"hidden",type:"file",onChange:d[2]||(d[2]=(...f)=>i.unref(l)&&i.unref(l)(...f))},null,544)])):i.createCommentVNode("",!0),!u.readonly||i.unref(a)?(i.openBlock(),i.createBlock(i.unref(Tr),{key:2,class:i.normalizeClass(["w-32 cursor-pointer mt-2",{"border border-dashed border-blue-600":!i.unref(a),"mx-auto":!u.readonly}]),file:i.unref(a)||void 0,downloadable:"",onClick:d[3]||(d[3]=f=>!u.disable&&u.$refs.file.click())},null,8,["class","file"])):u.readonly?(i.openBlock(),i.createElementBlock("div",F0," -- ")):i.createCommentVNode("",!0)],34))}}),A0={class:"dx-slider-number-field"},O0=i.defineComponent({__name:"SliderNumberField",props:{modelValue:{},field:{},label:{},currency:{type:Boolean},percent:{type:Boolean},name:{},min:{},max:{},innerMin:{},innerMax:{},step:{},snap:{type:Boolean},reverse:{type:Boolean},vertical:{type:Boolean},color:{},trackColor:{},trackImg:{},innerTrackColor:{},innerTrackImg:{},selectionColor:{},selectionImg:{},labelColor:{},labelTextColor:{},switchLabelSide:{type:Boolean},labelAlways:{type:Boolean},markers:{type:[Boolean,Number]},markerLabels:{type:[Boolean,Array,Object,Function]},markerLabelsClass:{},switchMarkerLabelsSide:{type:Boolean},trackSize:{},thumbSize:{},thumbColor:{},thumbPath:{},dark:{type:[Boolean,null]},dense:{type:Boolean},disable:{type:Boolean},readonly:{type:Boolean},tabindex:{},labelValue:{},onChange:{type:Function},onPan:{type:Function},"onUpdate:modelValue":{type:Function}},emits:["update:model-value"],setup(t){const e=t,n=i.computed(()=>({...e,field:void 0,label:!!e.label})),r=i.computed(()=>e.currency?"$"+e.modelValue:e.percent?e.modelValue+"%":e.modelValue);return(o,s)=>{const l=i.resolveComponent("QSlider");return i.openBlock(),i.createElementBlock("div",A0,[i.createVNode(i.unref(ht),{label:o.label,field:o.field},null,8,["label","field"]),i.createVNode(l,i.mergeProps(n.value,{min:o.min,max:o.max,label:"","label-always":"","switch-label-side":"","price-label":r.value}),null,16,["min","max","price-label"])])}}});var D0=["onActivate","onAddUndo","onBeforeAddUndo","onBeforeExecCommand","onBeforeGetContent","onBeforeRenderUI","onBeforeSetContent","onBeforePaste","onBlur","onChange","onClearUndos","onClick","onContextMenu","onCopy","onCut","onDblclick","onDeactivate","onDirty","onDrag","onDragDrop","onDragEnd","onDragGesture","onDragOver","onDrop","onExecCommand","onFocus","onFocusIn","onFocusOut","onGetContent","onHide","onInit","onKeyDown","onKeyPress","onKeyUp","onLoadContent","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onNodeChange","onObjectResizeStart","onObjectResized","onObjectSelected","onPaste","onPostProcess","onPostRender","onPreProcess","onProgressState","onRedo","onRemove","onReset","onSaveContent","onSelectionChange","onSetAttrib","onSetContent","onShow","onSubmit","onUndo","onVisualAid"],P0=function(t){return D0.map(function(e){return e.toLowerCase()}).indexOf(t.toLowerCase())!==-1},M0=function(t,e,n){Object.keys(e).filter(P0).forEach(function(r){var o=e[r];typeof o=="function"&&(r==="onInit"?o(t,n):n.on(r.substring(2),function(s){return o(s,n)}))})},L0=function(t,e,n,r){var o=t.modelEvents?t.modelEvents:null,s=Array.isArray(o)?o.join(" "):o;i.watch(r,function(l,a){n&&typeof l=="string"&&l!==a&&l!==n.getContent({format:t.outputFormat})&&n.setContent(l)}),n.on(s||"change input undo redo",function(){e.emit("update:modelValue",n.getContent({format:t.outputFormat}))})},v0=function(t,e,n,r,o,s){r.setContent(s()),n.attrs["onUpdate:modelValue"]&&L0(e,n,r,o),M0(t,n.attrs,r)},nc=0,rc=function(t){var e=Date.now(),n=Math.floor(Math.random()*1e9);return nc++,t+"_"+n+nc+String(e)},V0=function(t){return t!==null&&t.tagName.toLowerCase()==="textarea"},oc=function(t){return typeof t>"u"||t===""?[]:Array.isArray(t)?t:t.split(" ")},q0=function(t,e){return oc(t).concat(oc(e))},R0=function(t){return t==null},ic=function(){return{listeners:[],scriptId:rc("tiny-script"),scriptLoaded:!1}},U0=function(){var t=ic(),e=function(o,s,l,a){var c=s.createElement("script");c.referrerPolicy="origin",c.type="application/javascript",c.id=o,c.src=l;var u=function(){c.removeEventListener("load",u),a()};c.addEventListener("load",u),s.head&&s.head.appendChild(c)},n=function(o,s,l){t.scriptLoaded?l():(t.listeners.push(l),o.getElementById(t.scriptId)||e(t.scriptId,o,s,function(){t.listeners.forEach(function(a){return a()}),t.scriptLoaded=!0}))},r=function(){t=ic()};return{load:n,reinitialize:r}},j0=U0(),z0=function(){return typeof window<"u"?window:global},sn=function(){var t=z0();return t&&t.tinymce?t.tinymce:null},H0={apiKey:String,cloudChannel:String,id:String,init:Object,initialValue:String,inline:Boolean,modelEvents:[String,Array],plugins:[String,Array],tagName:String,toolbar:[String,Array],modelValue:String,disabled:Boolean,tinymceScriptSrc:String,outputFormat:{type:String,validator:function(t){return t==="html"||t==="text"}}},_t=function(){return _t=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])}return t},_t.apply(this,arguments)},G0=function(t,e,n,r){return t(r||"div",{id:e,ref:n})},Z0=function(t,e,n){return t("textarea",{id:e,visibility:"hidden",ref:n})},Ki={selector:void 0,target:void 0},W0=i.defineComponent({props:H0,setup:function(t,e){var n=t.init?_t(_t({},t.init),Ki):_t({},Ki),r=i.toRefs(t),o=r.disabled,s=r.modelValue,l=r.tagName,a=i.ref(null),c=null,u=t.id||rc("tiny-vue"),d=t.init&&t.init.inline||t.inline,f=!!e.attrs["onUpdate:modelValue"],h=!0,_=t.initialValue?t.initialValue:"",p="",m=function(y){return f?function(){return s!=null&&s.value?s.value:""}:function(){return y?_:p}},g=function(){var y=m(h),w=_t(_t({},n),{readonly:t.disabled,target:a.value,plugins:q0(n.plugins,t.plugins),toolbar:t.toolbar||n.toolbar,inline:d,setup:function(C){c=C,C.on("init",function(T){return v0(T,t,e,C,s,y)}),typeof n.setup=="function"&&n.setup(C)}});V0(a.value)&&(a.value.style.visibility=""),sn().init(w),h=!1};i.watch(o,function(y){var w;c!==null&&(typeof((w=c.mode)===null||w===void 0?void 0:w.set)=="function"?c.mode.set(y?"readonly":"design"):c.setMode(y?"readonly":"design"))}),i.watch(l,function(y){var w;f||(p=c.getContent()),(w=sn())===null||w===void 0||w.remove(c),i.nextTick(function(){return g()})}),i.onMounted(function(){if(sn()!==null)g();else if(a.value&&a.value.ownerDocument){var y=t.cloudChannel?t.cloudChannel:"6",w=t.apiKey?t.apiKey:"no-api-key",C=R0(t.tinymceScriptSrc)?"https://cdn.tiny.cloud/1/".concat(w,"/tinymce/").concat(y,"/tinymce.min.js"):t.tinymceScriptSrc;j0.load(a.value.ownerDocument,C,g)}}),i.onBeforeUnmount(function(){sn()!==null&&sn().remove(c)}),d||(i.onActivated(function(){h||g()}),i.onDeactivated(function(){var y;f||(p=c.getContent()),(y=sn())===null||y===void 0||y.remove(c)}));var x=function(y){var w;p=c.getContent(),(w=sn())===null||w===void 0||w.remove(c),n=_t(_t(_t({},n),y),Ki),i.nextTick(function(){return g()})};return e.expose({rerender:x,getEditor:function(){return c}}),function(){return d?G0(i.h,u,a,t.tagName):Z0(i.h,u,a)}}});const Y0=["innerHTML"],sc={__name:"WysiwygField",props:{modelValue:{type:[String,Number],default:null},field:{type:Object,required:!0},noLabel:Boolean,showName:Boolean,disable:Boolean,readonly:Boolean},emits:["update:model-value"],setup(t){return(e,n)=>(i.openBlock(),i.createElementBlock("div",null,[t.noLabel?i.createCommentVNode("",!0):(i.openBlock(),i.createBlock(i.unref(ht),{key:0,field:t.field,"show-name":t.showName},null,8,["field","show-name"])),t.readonly?(i.openBlock(),i.createElementBlock("div",{key:1,class:"border border-gray-300 rounded-md p-2 bg-gray-100",innerHTML:t.modelValue},null,8,Y0)):(i.openBlock(),i.createBlock(i.unref(W0),{key:2,class:"mt-2","api-key":i.unref(oe).tinyMceApiKey,disabled:t.disable,"model-value":t.modelValue,"onUpdate:modelValue":n[0]||(n[0]=r=>e.$emit("update:model-value",r))},null,8,["api-key","disabled","model-value"]))]))}},lc=i.defineComponent({__name:"SaveStateIndicator",props:{saving:{type:Boolean},savedAt:{default:""},savingClass:{default:"text-sm text-slate-500"}},setup(t){return(e,n)=>{const r=i.resolveComponent("QSpinnerPie");return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass([e.savingClass,"dx-saving-indicator flex items-center flex-nowrap"])},[e.saving?i.renderSlot(e.$slots,"saving",{key:0},()=>[i.createTextVNode(" Saving... "),i.createVNode(r,{class:"ml-2"})]):i.renderSlot(e.$slots,"saved",{key:1},()=>[e.savedAt?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createTextVNode(" Saved at "+i.toDisplayString(i.unref(wi)(e.savedAt,{format:"M/d/yy h:mm:ssa"})),1)],64)):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.createTextVNode(" Not saved ")],64))])],2)}}}),Q0={class:"dx-rendered-form"},K0={key:0,class:"mb-4"},X0={class:"flex flex-nowrap items-center text-sm w-full"},J0={key:0,class:"variation-missing-icon pl-1"},eg={class:"flex-grow"},tg={key:1,class:"flex flex-nowrap items-center mr-2"},ng=["onClick"],rg=["onClick"],Xi=i.defineComponent({__name:"RenderedForm",props:{values:{default:null},form:{},noLabel:{type:Boolean},showName:{type:Boolean},disable:{type:Boolean},readonly:{type:Boolean},saving:{type:Boolean},clearable:{type:Boolean},emptyValue:{type:[String,Number,Boolean],default:void 0},canModifyVariations:{type:Boolean},fieldClass:{default:""},savingClass:{default:"text-sm text-slate-500 justify-end mt-4"},savedAt:{default:void 0}},emits:["update:values"],setup(t,{emit:e}){const n=t,r=e,o={BOOLEAN:Gi,DATE:Wi,DATE_RANGE:Yi,INTEGER:Ka,NUMBER:Er,TEXT:on,SINGLE_FILE:tc,MULTI_FILE:Xa,WYSIWYG:sc},s=n.form.fields.map(B=>({placeholder:`Enter ${B.label}`,...B,component:B.component||o[B.type]})),l=i.computed(()=>{const B=n.values;return B?Array.isArray(B)?B:Object.entries(B).filter(I=>s.find(A=>A.name===I[0])).map(([I,A])=>({name:I,value:A,variation:""})):[]}),a=i.computed(()=>{const B={};for(const I of s)B[I.name]=x(I.name);return B});function c(B){return B.enabled===void 0?!0:typeof B.enabled=="function"?B.enabled(a.value):B.enabled}function u(B){return{modelValue:x(B.name),label:B.label,clearable:B.clearable||n.clearable,readonly:n.readonly,disable:n.disable,showName:n.showName,noLabel:n.noLabel}}const d=i.computed(()=>{const B=[...new Set(l.value.map(I=>I.variation))].sort();return B.length===0&&B.push(""),B}),f=i.ref(d.value[0]||""),h=i.ref(""),_=i.ref(!1),p=i.ref(""),m=i.computed(()=>n.canModifyVariations&&!n.readonly&&!n.disable&&d.value.length<(n.form.variations||0));function g(B,I){if(l.value)return l.value.find(A=>A.variation===(I!==void 0?I:f.value)&&A.name===B)}function x(B){var I;return(I=g(B))==null?void 0:I.value}function y(B,I){const A=g(B),R={name:B,variation:f.value||"",value:I===void 0?n.emptyValue:I},K=Zs(l.value,A,R,!0);w(K)}function w(B){let I=B;Array.isArray(n.values)||(I=B.reduce((A,R)=>(A[R.name]=R.value,A),{})),r("update:values",I)}i.onMounted(()=>{window.addEventListener("beforeunload",C)}),i.onBeforeUnmount(()=>{window.removeEventListener("beforeunload",C)});function C(B){if(n.saving)return B.returnValue="Changes are currently being saved. If you leave now, you might lose unsaved changes."}function T(B){return n.form.fields.map(I=>({variation:B,name:I.name,value:I.default_value===void 0?null:I.default_value}))}function b(){if(n.saving)return;let B=[...l.value];B.length===0&&(B=T(""));const I=d.value[d.value.length-1],A=td(I||"1"),R=T(A);w([...B,...R]),f.value=A}function k(){if(!h.value)return;if(d.value.includes(h.value)){Ve.error("Variation name already exists");return}const B=l.value.map(I=>I.variation===_.value?{...I,variation:h.value}:I);w(B),f.value=h.value,_.value=!1,h.value=""}function E(B){if(!B)return;const I=l.value.filter(A=>A.variation!==B);w(I),f.value===B&&(f.value=d.value[0]),p.value=""}function N(B){const I={};return n.form.fields.filter(A=>A.required||A.required_group).every(A=>{const R=g(A.name,B),K=!!R&&R.value!==null;return A.required_group?I[A.required_group]?!0:I[A.required_group]=K:K})}return(B,I)=>{const A=i.resolveComponent("QTooltip"),R=i.resolveComponent("QTab"),K=i.resolveComponent("QSpinnerBall"),le=i.resolveComponent("QTabs");return i.openBlock(),i.createElementBlock("div",Q0,[B.form.variations>1?(i.openBlock(),i.createElementBlock("div",K0,[i.createVNode(le,{modelValue:f.value,"onUpdate:modelValue":I[0]||(I[0]=P=>f.value=P),class:"text-xs"},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(d.value,(P,te)=>(i.openBlock(),i.createBlock(R,{key:P,name:P,class:"p-0","content-class":"w-full"},{default:i.withCtx(()=>[i.createElementVNode("div",X0,[N(P)?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("div",J0,[i.createVNode(i.unref(Ia),{class:"text-red-400 w-4"}),i.createVNode(A,null,{default:i.withCtx(()=>[i.createTextVNode("Creative Form Incomplete")]),_:1})])),i.createElementVNode("div",eg,i.toDisplayString(P||"1"),1),!B.disable&&!B.readonly&&B.canModifyVariations?(i.openBlock(),i.createElementBlock("div",tg,[i.createElementVNode("a",{class:"ml-1 p-1 hover:opacity-100 opacity-20 hover:bg-blue-200 rounded",onClick:()=>(_.value=P)&&(h.value=P)},[i.createVNode(i.unref($a),{class:"w-3 text-blue-900"})],8,ng),te>0?(i.openBlock(),i.createElementBlock("a",{key:0,class:"ml-1 p-1 hover:opacity-100 opacity-20 hover:bg-red-200 rounded",onClick:we=>p.value=P},[i.createVNode(i.unref(go),{class:"w-3 text-red-900"})],8,rg)):i.createCommentVNode("",!0)])):i.createCommentVNode("",!0)])]),_:2},1032,["name"]))),128)),m.value?(i.openBlock(),i.createBlock(R,{key:"add-new-variation",name:"add",class:"bg-blue-600 rounded-t-lg !text-white",onClick:b},{default:i.withCtx(()=>[B.saving?(i.openBlock(),i.createBlock(K,{key:0,class:"w-4"})):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.createTextVNode(" + Add Variation ")],64))]),_:1})):i.createCommentVNode("",!0)]),_:1},8,["modelValue"])])):i.createCommentVNode("",!0),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(s),(P,te)=>i.withDirectives((i.openBlock(),i.createElementBlock("div",{key:P.id,class:i.normalizeClass({"mt-4":te>0,[B.fieldClass]:!0})},[P.vnode?(i.openBlock(),i.createBlock(i.unref(ln),{key:0,vnode:P.vnode,props:u(P),params:a.value,"onUpdate:modelValue":we=>y(P.name,we)},null,8,["vnode","props","params","onUpdate:modelValue"])):i.createCommentVNode("",!0),(i.openBlock(),i.createBlock(i.resolveDynamicComponent(P.component),{key:P.name+"-"+f.value,"model-value":x(P.name),field:P,label:P.label||void 0,"no-label":B.noLabel,"show-name":B.showName,clearable:P.clearable||B.clearable,disable:B.disable,readonly:B.readonly,"onUpdate:modelValue":we=>y(P.name,we)},null,8,["model-value","field","label","no-label","show-name","clearable","disable","readonly","onUpdate:modelValue"]))],2)),[[i.vShow,c(P)]])),128)),i.renderSlot(B.$slots,"default"),i.createVNode(i.unref(lc),{saving:B.saving,"saved-at":B.savedAt,"saving-class":B.savingClass},null,8,["saving","saved-at","saving-class"]),_.value!==!1?(i.openBlock(),i.createBlock(i.unref(Ct),{key:1,title:"Change variation name",onConfirm:k,onClose:I[2]||(I[2]=P=>_.value=!1)},{default:i.withCtx(()=>[i.createVNode(i.unref(on),{modelValue:h.value,"onUpdate:modelValue":I[1]||(I[1]=P=>h.value=P),label:"Enter name",placeholder:"Variation Name","input-class":"bg-white"},null,8,["modelValue"])]),_:1})):i.createCommentVNode("",!0),p.value?(i.openBlock(),i.createBlock(i.unref(Ct),{key:2,title:`Remove variation ${p.value}?`,content:"You cannot undo this action. If there was any analytics collected for this variation, it will still be attributed to the ad.","confirm-class":"bg-red-900 text-white","content-class":"w-96",onConfirm:I[3]||(I[3]=P=>E(p.value)),onClose:I[4]||(I[4]=P=>p.value="")},null,8,["title"])):i.createCommentVNode("",!0)])}}}),ac=i.defineComponent({__name:"ActionForm",props:{action:{},target:{},form:{},noLabel:{type:Boolean},showName:{type:Boolean},disable:{type:Boolean},readonly:{type:Boolean},clearable:{type:Boolean},fieldClass:{default:""},savingClass:{default:void 0},hideSavedAt:{type:Boolean}},emits:["saved"],setup(t,{emit:e}){const n=e,r=t,o={form:r.form,noLabel:r.noLabel,showName:r.showName,disable:r.disable,readonly:r.readonly,clearable:r.clearable,fieldClass:r.fieldClass,savingClass:r.savingClass},s=i.ref({...r.target}),l={};i.watch(()=>r.target,c=>{var u;if(c)for(let d of r.form.fields)(u=l[d.name])!=null&&u.isSaving||(s.value[d.name]=c[d.name])});async function a(){await r.action.trigger(r.target,s.value),n("saved")}return(c,u)=>(i.openBlock(),i.createBlock(Xi,i.mergeProps(o,{values:s.value,"onUpdate:values":[u[0]||(u[0]=d=>s.value=d),a],"empty-value":"","saved-at":c.hideSavedAt?void 0:c.target.updated_at,saving:c.action.isApplying}),{default:i.withCtx(()=>[i.renderSlot(c.$slots,"default")]),_:3},16,["values","saved-at","saving"]))}}),og=i.defineComponent({__name:"RenderedFormDialog",props:i.mergeModels({title:{},confirmText:{},form:{},noLabel:{type:Boolean},showName:{type:Boolean},disable:{type:Boolean},readonly:{type:Boolean},clearable:{type:Boolean},fieldClass:{},savingClass:{},hideSavedAt:{type:Boolean},contentClass:{}},{modelValue:{},modelModifiers:{}}),emits:i.mergeModels(["confirm","close"],["update:modelValue"]),setup(t){const e=t,n=i.useModel(t,"modelValue"),r={form:e.form,noLabel:e.noLabel,showName:e.showName,disable:e.disable,readonly:e.readonly,clearable:e.clearable,fieldClass:e.fieldClass,savingClass:e.savingClass};return(o,s)=>(i.openBlock(),i.createBlock(i.unref(Ct),{title:o.title,"confirm-text":o.confirmText||o.title,"content-class":o.contentClass,onConfirm:s[1]||(s[1]=l=>o.$emit("confirm",n.value)),onClose:s[2]||(s[2]=l=>o.$emit("close"))},{default:i.withCtx(()=>[i.createVNode(i.unref(Xi),i.mergeProps(r,{values:n.value,"onUpdate:values":s[0]||(s[0]=l=>n.value=l),"empty-value":""}),{default:i.withCtx(()=>[i.renderSlot(o.$slots,"default")]),_:3},16,["values"])]),_:3},8,["title","confirm-text","content-class"]))}}),ig={key:0,class:"relative max-h-full max-w-full w-full flex justify-center"},sg={class:"max-h-full",preload:"auto"},lg=["src","type"],ag={key:2,class:"flex items-center justify-center h-full"},cg={key:2,class:"text-[.7rem] bg-slate-900 text-slate-300 opacity-80 h-[2.25rem] py-.5 px-1 absolute-bottom"},ug={key:1,class:"absolute-bottom w-full bg-slate-800"},dg={class:"absolute-full flex items-center flex-nowrap text-[.7rem] text-slate-200 justify-start px-1"},fg={class:"absolute top-1 right-1 flex items-center justify-between space-x-1"},hg={key:0,class:"font-bold text-[1rem] leading-[1.2rem]"},Tr=ft(i.defineComponent({__name:"FilePreview",props:{src:{default:""},file:{default:null},relatedFiles:{default:null},missingIcon:{default:zi},downloadButtonClass:{default:"bg-blue-600 text-white"},imageFit:{default:"cover"},downloadable:{type:Boolean,default:!1},removable:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},square:{type:Boolean,default:!1}},emits:["remove"],setup(t,{emit:e}){const n=e,r=t,o=i.ref(!1),s=i.computed(()=>{var w;return r.file?r.file:r.src?{id:r.src,url:r.src,type:"image/"+((w=r.src.split(".").pop())==null?void 0:w.toLowerCase()),name:"",size:0,__type:"BrowserFile"}:null}),l=i.computed(()=>{var w;return!r.file||((w=r.file)==null?void 0:w.progress)!==void 0}),a=i.computed(()=>{var w;return((w=r.relatedFiles)==null?void 0:w.length)>0?r.relatedFiles:[s.value]}),c=i.computed(()=>{var w,C;return((w=s.value)==null?void 0:w.name)||((C=s.value)==null?void 0:C.filename)||""}),u=i.computed(()=>{var w,C;return((w=s.value)==null?void 0:w.type)||((C=s.value)==null?void 0:C.mime)||""}),d=i.computed(()=>!!u.value.match(/^image\//)),f=i.computed(()=>!!u.value.match(/^video\//)),h=i.computed(()=>!!u.value.match(/^application\/pdf/)),_=i.computed(()=>{var w,C,T,b;return((C=(w=s.value)==null?void 0:w.optimized)==null?void 0:C.url)||((T=s.value)==null?void 0:T.blobUrl)||((b=s.value)==null?void 0:b.url)}),p=i.computed(()=>{var w,C;return(C=(w=s.value)==null?void 0:w.thumb)==null?void 0:C.url}),m=i.computed(()=>!!p.value||f.value||d.value),g=i.computed(()=>{var T,b;let w=null;const C=((b=(T=r.file)==null?void 0:T.meta)==null?void 0:b.transcodes)||[];for(let k of Object.keys(C)){const E=C[k];if(!(E!=null&&E.completed_at))return{...E,message:`${k} ${E.status}`}}return w});i.onMounted(()=>{g.value&&new mo([]).waitForTranscode(r.file)});const x=i.ref(!1);function y(){x.value?n("remove"):(x.value=!0,setTimeout(()=>{x.value=!1},2e3))}return(w,C)=>{var N,B,I;const T=i.resolveComponent("QImg"),b=i.resolveComponent("QSpinnerPie"),k=i.resolveComponent("QLinearProgress"),E=i.resolveComponent("QBtn");return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["relative flex justify-center bg-gray-100 overflow-hidden",{"rounded-2xl":!w.square}])},[s.value?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createElementVNode("div",{class:"grow h-full",onClick:C[0]||(C[0]=A=>o.value=!0)},[f.value?(i.openBlock(),i.createElementBlock("div",ig,[i.createElementVNode("video",sg,[i.createElementVNode("source",{src:_.value+"#t=0.1",type:u.value},null,8,lg)]),i.createElementVNode("button",{class:i.normalizeClass(w.cls["play-button"])},[i.createVNode(i.unref(fp),{class:"w-16"})],2)])):i.createCommentVNode("",!0),p.value||m.value?(i.openBlock(),i.createBlock(T,{key:1,fit:w.imageFit,class:"non-selectable max-h-full max-w-full h-full",src:(p.value||_.value)+"#t=0.1",preload:"auto","data-testid":"previewed-image"},null,8,["fit","src"])):(i.openBlock(),i.createElementBlock("div",ag,[h.value?(i.openBlock(),i.createBlock(i.unref(va),{key:0,class:"w-24"})):(i.openBlock(),i.createBlock(i.unref(ip),{key:1,class:"w-24"})),c.value?(i.openBlock(),i.createElementBlock("div",cg,i.toDisplayString(c.value),1)):i.createCommentVNode("",!0)]))]),w.$slots["action-button"]?(i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass(w.cls["action-button"])},[i.renderSlot(w.$slots,"action-button")],2)):i.createCommentVNode("",!0),l.value||g.value?(i.openBlock(),i.createElementBlock("div",ug,[i.createVNode(k,{value:l.value?w.file.progress:g.value.progress/100,size:"36px",color:l.value?"green-800":"blue-800","animation-speed":((N=g.value)==null?void 0:N.estimate_ms)||3e3,stripe:""},{default:i.withCtx(()=>[i.createElementVNode("div",dg,[i.createVNode(b,{class:"mr-2 text-slate-50 ml-1",size:"20"}),i.createElementVNode("div",null,i.toDisplayString(l.value?"Uploading...":g.value.message),1)])]),_:1},8,["value","color","animation-speed"])])):i.createCommentVNode("",!0)],64)):i.renderSlot(w.$slots,"missing",{key:1},()=>[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(w.missingIcon),{class:"w-full h-full p-2 text-gray-300"}))]),i.createElementVNode("div",fg,[w.downloadable&&((B=s.value)!=null&&B.url)?(i.openBlock(),i.createBlock(E,{key:0,size:"sm",class:i.normalizeClass(["dx-file-preview-download py-1 px-2 opacity-70 hover:opacity-100",w.downloadButtonClass]),onClick:C[1]||(C[1]=i.withModifiers(A=>i.unref(Si)(s.value.url),["stop"]))},{default:i.withCtx(()=>[i.createVNode(i.unref(lp),{class:"w-4 h-5"})]),_:1},8,["class"])):i.createCommentVNode("",!0),w.removable?(i.openBlock(),i.createBlock(E,{key:1,size:"sm",class:"dx-file-preview-remove bg-red-900 text-white opacity-50 hover:opacity-100 py-1 px-2",onClick:i.withModifiers(y,["stop"])},{default:i.withCtx(()=>[x.value?(i.openBlock(),i.createElementBlock("div",hg," ? ")):(i.openBlock(),i.createBlock(i.unref(go),{key:1,class:"w-3"}))]),_:1})):i.createCommentVNode("",!0)]),o.value&&!w.disabled&&a.value?(i.openBlock(),i.createBlock(i.unref(Wa),{key:2,files:a.value,"default-slide":((I=a.value[0])==null?void 0:I.id)||"",onClose:C[2]||(C[2]=A=>o.value=!1)},null,8,["files","default-slide"])):i.createCommentVNode("",!0)],2)}}}),[["__cssModules",{cls:{"!visible":"_!visible_131fu_1",visible:"_visible_131fu_1",collapse:"_collapse_131fu_1",static:"_static_131fu_1",absolute:"_absolute_131fu_1",relative:"_relative_131fu_1",sticky:"_sticky_131fu_1","left-0":"_left-0_131fu_1","right-0":"_right-0_131fu_1","right-1":"_right-1_131fu_1","top-0":"_top-0_131fu_1","top-1":"_top-1_131fu_1","z-10":"_z-10_131fu_1","m-2":"_m-2_131fu_1","m-4":"_m-4_131fu_1","m-auto":"_m-auto_131fu_1","mx-1":"_mx-1_131fu_1","mx-4":"_mx-4_131fu_1","mx-auto":"_mx-auto_131fu_1","my-2":"_my-2_131fu_1","!mr-1":"_!mr-1_131fu_1","mb-2":"_mb-2_131fu_1","mb-4":"_mb-4_131fu_1","ml-1":"_ml-1_131fu_1","ml-2":"_ml-2_131fu_1","ml-2.5":"_ml-2.5_131fu_1","ml-3":"_ml-3_131fu_1","ml-4":"_ml-4_131fu_1","ml-5":"_ml-5_131fu_1","ml-[-.2em]":"_ml-[-.2em]_131fu_1","mr-1":"_mr-1_131fu_1","mr-2":"_mr-2_131fu_1","mr-3":"_mr-3_131fu_1","mr-4":"_mr-4_131fu_1","mt-1":"_mt-1_131fu_1","mt-2":"_mt-2_131fu_1","mt-3":"_mt-3_131fu_1","mt-4":"_mt-4_131fu_1",block:"_block_131fu_1","inline-block":"_inline-block_131fu_1",inline:"_inline_131fu_1",flex:"_flex_131fu_1",table:"_table_131fu_1",hidden:"_hidden_131fu_1","h-10":"_h-10_131fu_1","h-16":"_h-16_131fu_1","h-32":"_h-32_131fu_1","h-4":"_h-4_131fu_1","h-5":"_h-5_131fu_1","h-6":"_h-6_131fu_1","h-8":"_h-8_131fu_1","h-[2.25rem]":"_h-[2.25rem]_131fu_1","h-full":"_h-full_131fu_1","max-h-full":"_max-h-full_131fu_1","w-1/5":"_w-1/5_131fu_1","w-10":"_w-10_131fu_1","w-16":"_w-16_131fu_1","w-2/5":"_w-2/5_131fu_1","w-24":"_w-24_131fu_1","w-3":"_w-3_131fu_1","w-3/5":"_w-3/5_131fu_1","w-32":"_w-32_131fu_1","w-4":"_w-4_131fu_1","w-48":"_w-48_131fu_1","w-5":"_w-5_131fu_1","w-6":"_w-6_131fu_1","w-7":"_w-7_131fu_1","w-72":"_w-72_131fu_1","w-8":"_w-8_131fu_1","w-96":"_w-96_131fu_1","w-[13.5rem]":"_w-[13.5rem]_131fu_1","w-[6.5rem]":"_w-[6.5rem]_131fu_1","w-[80rem]":"_w-[80rem]_131fu_1","w-full":"_w-full_131fu_1","!min-w-0":"_!min-w-0_131fu_1","max-w-full":"_max-w-full_131fu_1","flex-shrink":"_flex-shrink_131fu_1","flex-shrink-0":"_flex-shrink-0_131fu_1",shrink:"_shrink_131fu_1","flex-grow":"_flex-grow_131fu_1",grow:"_grow_131fu_1","rotate-180":"_rotate-180_131fu_1",transform:"_transform_131fu_1","cursor-ew-resize":"_cursor-ew-resize_131fu_1","cursor-move":"_cursor-move_131fu_1","cursor-not-allowed":"_cursor-not-allowed_131fu_1","cursor-ns-resize":"_cursor-ns-resize_131fu_1","cursor-pointer":"_cursor-pointer_131fu_1",resize:"_resize_131fu_1","flex-col":"_flex-col_131fu_1","flex-nowrap":"_flex-nowrap_131fu_1","items-center":"_items-center_131fu_1","items-stretch":"_items-stretch_131fu_1","justify-start":"_justify-start_131fu_1","justify-end":"_justify-end_131fu_1","justify-center":"_justify-center_131fu_1","justify-between":"_justify-between_131fu_1","gap-x-4":"_gap-x-4_131fu_1","gap-y-0":"_gap-y-0_131fu_1","gap-y-1":"_gap-y-1_131fu_1","space-x-1":"_space-x-1_131fu_1","space-x-2":"_space-x-2_131fu_1","self-center":"_self-center_131fu_1","overflow-auto":"_overflow-auto_131fu_1","overflow-hidden":"_overflow-hidden_131fu_1","overflow-y-auto":"_overflow-y-auto_131fu_73","overflow-x-hidden":"_overflow-x-hidden_131fu_1","scroll-smooth":"_scroll-smooth_131fu_1","overflow-ellipsis":"_overflow-ellipsis_131fu_1","whitespace-normal":"_whitespace-normal_131fu_1","whitespace-nowrap":"_whitespace-nowrap_131fu_1",rounded:"_rounded_131fu_1","rounded-2xl":"_rounded-2xl_131fu_1","rounded-lg":"_rounded-lg_131fu_1","rounded-md":"_rounded-md_131fu_1","rounded-sm":"_rounded-sm_131fu_1","!rounded-l-none":"_!rounded-l-none_131fu_1","!rounded-r-none":"_!rounded-r-none_131fu_1","rounded-b-lg":"_rounded-b-lg_131fu_1","rounded-t-lg":"_rounded-t-lg_131fu_1","rounded-t-md":"_rounded-t-md_131fu_1","!border-0":"_!border-0_131fu_1",border:"_border_131fu_1","border-b":"_border-b_131fu_1","border-l":"_border-l_131fu_1","border-l-0":"_border-l-0_131fu_1","border-r":"_border-r_131fu_1","border-solid":"_border-solid_131fu_1","border-dashed":"_border-dashed_131fu_1","border-none":"_border-none_131fu_1","border-blue-600":"_border-blue-600_131fu_1","border-blue-700":"_border-blue-700_131fu_1","border-gray-200":"_border-gray-200_131fu_1","border-gray-300":"_border-gray-300_131fu_1","border-slate-200":"_border-slate-200_131fu_1","bg-black":"_bg-black_131fu_1","bg-blue-200":"_bg-blue-200_131fu_1","bg-blue-600":"_bg-blue-600_131fu_1","bg-emerald-200":"_bg-emerald-200_131fu_1","bg-gray-100":"_bg-gray-100_131fu_1","bg-gray-200":"_bg-gray-200_131fu_1","bg-gray-400":"_bg-gray-400_131fu_1","bg-gray-500":"_bg-gray-500_131fu_1","bg-green-200":"_bg-green-200_131fu_1","bg-green-300":"_bg-green-300_131fu_1","bg-green-900":"_bg-green-900_131fu_1","bg-red-200":"_bg-red-200_131fu_1","bg-red-300":"_bg-red-300_131fu_1","bg-red-900":"_bg-red-900_131fu_1","bg-sky-300":"_bg-sky-300_131fu_1","bg-sky-800":"_bg-sky-800_131fu_1","bg-slate-100":"_bg-slate-100_131fu_1","bg-slate-500":"_bg-slate-500_131fu_1","bg-slate-800":"_bg-slate-800_131fu_1","bg-slate-900":"_bg-slate-900_131fu_1","bg-transparent":"_bg-transparent_131fu_1","bg-white":"_bg-white_131fu_1","bg-yellow-300":"_bg-yellow-300_131fu_1","!p-2":"_!p-2_131fu_1","p-0":"_p-0_131fu_1","p-1":"_p-1_131fu_1","p-2":"_p-2_131fu_1","p-3":"_p-3_131fu_1","p-4":"_p-4_131fu_1","!py-0":"_!py-0_131fu_1","px-1":"_px-1_131fu_1","px-12":"_px-12_131fu_1","px-2":"_px-2_131fu_1","px-2.5":"_px-2.5_131fu_1","px-4":"_px-4_131fu_1","px-6":"_px-6_131fu_1","px-8":"_px-8_131fu_1","py-1":"_py-1_131fu_1","py-14":"_py-14_131fu_1","py-2":"_py-2_131fu_1","py-3":"_py-3_131fu_1","py-4":"_py-4_131fu_1","py-5":"_py-5_131fu_1","py-8":"_py-8_131fu_1","pl-1":"_pl-1_131fu_1","pt-3":"_pt-3_131fu_1","text-left":"_text-left_131fu_1","text-center":"_text-center_131fu_1","text-[.7rem]":"_text-[.7rem]_131fu_1","text-[1rem]":"_text-[1rem]_131fu_1","text-base":"_text-base_131fu_1","text-sm":"_text-sm_131fu_1","text-xs":"_text-xs_131fu_1","font-bold":"_font-bold_131fu_1","font-medium":"_font-medium_131fu_1","font-semibold":"_font-semibold_131fu_1",uppercase:"_uppercase_131fu_1","leading-[1.2rem]":"_leading-[1.2rem]_131fu_1","!text-green-900":"_!text-green-900_131fu_1","!text-red-900":"_!text-red-900_131fu_1","!text-sky-900":"_!text-sky-900_131fu_1","!text-white":"_!text-white_131fu_1","!text-yellow-900":"_!text-yellow-900_131fu_1","text-blue-600":"_text-blue-600_131fu_1","text-blue-900":"_text-blue-900_131fu_1","text-gray-300":"_text-gray-300_131fu_1","text-gray-400":"_text-gray-400_131fu_1","text-gray-500":"_text-gray-500_131fu_1","text-gray-600":"_text-gray-600_131fu_1","text-gray-700":"_text-gray-700_131fu_1","text-green-700":"_text-green-700_131fu_1","text-red-400":"_text-red-400_131fu_1","text-red-500":"_text-red-500_131fu_1","text-red-800":"_text-red-800_131fu_1","text-red-900":"_text-red-900_131fu_1","text-slate-200":"_text-slate-200_131fu_1","text-slate-300":"_text-slate-300_131fu_1","text-slate-50":"_text-slate-50_131fu_1","text-slate-500":"_text-slate-500_131fu_1","text-white":"_text-white_131fu_1","text-yellow-600":"_text-yellow-600_131fu_1","text-zinc-500":"_text-zinc-500_131fu_1","text-zinc-800":"_text-zinc-800_131fu_1","line-through":"_line-through_131fu_1","opacity-0":"_opacity-0_131fu_1","opacity-20":"_opacity-20_131fu_1","opacity-50":"_opacity-50_131fu_1","opacity-70":"_opacity-70_131fu_1","opacity-80":"_opacity-80_131fu_1","shadow-none":"_shadow-none_131fu_1","outline-none":"_outline-none_131fu_1",outline:"_outline_131fu_1","outline-offset-0":"_outline-offset-0_131fu_1",filter:"_filter_131fu_1",transition:"_transition_131fu_1","transition-all":"_transition-all_131fu_1","duration-300":"_duration-300_131fu_1","danx-app":"_danx-app_131fu_4","q-tab":"_q-tab_131fu_4","q-table__card":"_q-table__card_131fu_7","q-checkbox__inner":"_q-checkbox__inner_131fu_11","q-toolbar":"_q-toolbar_131fu_14","q-notification__actions":"_q-notification__actions_131fu_19","q-date":"_q-date_131fu_22","q-date__view":"_q-date__view_131fu_25","q-field":"_q-field_131fu_28","q-field--auto-height":"_q-field--auto-height_131fu_28","q-field__control":"_q-field__control_131fu_28","q-field__native":"_q-field__native_131fu_31","q-field--labeled":"_q-field--labeled_131fu_35","q-field__control-container":"_q-field__control-container_131fu_35","q-textarea":"_q-textarea_131fu_38","q-field__marginal":"_q-field__marginal_131fu_41","q-field__input":"_q-field__input_131fu_41","q-field__label":"_q-field__label_131fu_41","q-btn":"_q-btn_131fu_48","q-item":"_q-item_131fu_56","q-tab-panels":"_q-tab-panels_131fu_60","q-panel":"_q-panel_131fu_64",scroll:"_scroll_131fu_67","q-tab-panel":"_q-tab-panel_131fu_60","dx-dialog":"_dx-dialog_131fu_77","q-card__section--vert":"_q-card__section--vert_131fu_77","q-banner":"_q-banner_131fu_81",app:"_app_131fu_1","main-layout":"_main-layout_131fu_1","is-disabled":"_is-disabled_131fu_98","disable-all-transitions":"_disable-all-transitions_131fu_103","v-enter-active":"_v-enter-active_131fu_107","v-leave-active":"_v-leave-active_131fu_108","v-enter-from":"_v-enter-from_131fu_112","v-leave-to":"_v-leave-to_131fu_113","dx-action-table":"_dx-action-table_131fu_117","dx-column-shrink":"_dx-column-shrink_131fu_117","action-button":"_action-button_131fu_121","play-button":"_play-button_131fu_128","hover:bg-blue-200":"_hover:bg-blue-200_131fu_1","hover:bg-gray-200":"_hover:bg-gray-200_131fu_1","hover:bg-green-100":"_hover:bg-green-100_131fu_1","hover:bg-red-100":"_hover:bg-red-100_131fu_1","hover:bg-red-200":"_hover:bg-red-200_131fu_1","hover:bg-slate-200":"_hover:bg-slate-200_131fu_1","hover:bg-slate-300":"_hover:bg-slate-300_131fu_1","hover:bg-slate-600":"_hover:bg-slate-600_131fu_1","hover:text-blue-500":"_hover:text-blue-500_131fu_1","hover:text-blue-600":"_hover:text-blue-600_131fu_1","hover:opacity-100":"_hover:opacity-100_131fu_1","hover:opacity-20":"_hover:opacity-20_131fu_1","hover:opacity-70":"_hover:opacity-70_131fu_1","hover:outline-4":"_hover:outline-4_131fu_1","focus:bg-blue-200":"_focus:bg-blue-200_131fu_1","focus:outline-4":"_focus:outline-4_131fu_1","focus:outline-blue-200":"_focus:outline-blue-200_131fu_1"}}]]),_g=["src","alt"],cc={__name:"SvgImg",props:{svg:{type:[String,Object,Function],required:!0},alt:{type:String,default:""}},setup(t){const e=t,n=i.computed(()=>e.svg.default?e.svg.default:e.svg),r=i.computed(()=>typeof n.value=="string");return(o,s)=>r.value?(i.openBlock(),i.createElementBlock("img",{key:0,src:n.value,alt:t.alt},null,8,_g)):(i.openBlock(),i.createBlock(i.resolveDynamicComponent(n.value),{key:1}))}},mg={class:"address-format"},pg={key:0,class:"address-attn"},gg={key:1,class:"address-name"},yg={class:"address-line-1"},bg={key:0,class:"address-line-2"},wg={key:1,class:"address-line-3"},kg={class:"address-city-state-zip"},xg={__name:"AddressFormat",props:{address:{type:Object,required:!0}},setup(t){return(e,n)=>(i.openBlock(),i.createElementBlock("div",mg,[t.address.attn?(i.openBlock(),i.createElementBlock("div",pg,"Attn: "+i.toDisplayString(t.address.attn),1)):t.address.name?(i.openBlock(),i.createElementBlock("div",gg,i.toDisplayString(t.address.name),1)):i.createCommentVNode("",!0),t.address.line1?(i.openBlock(),i.createElementBlock(i.Fragment,{key:2},[i.createElementVNode("div",yg,i.toDisplayString(t.address.line1),1),t.address.line2?(i.openBlock(),i.createElementBlock("div",bg,i.toDisplayString(t.address.line2),1)):i.createCommentVNode("",!0),t.address.line3?(i.openBlock(),i.createElementBlock("div",wg,i.toDisplayString(t.address.line3),1)):i.createCommentVNode("",!0),i.createElementVNode("div",kg,[t.address.city?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createTextVNode(i.toDisplayString(t.address.city)+",",1)],64)):i.createCommentVNode("",!0),i.createTextVNode(" "+i.toDisplayString(t.address.state)+" "+i.toDisplayString(t.address.zip_code),1)])],64)):i.createCommentVNode("",!0)]))}},Sg={__name:"FlatListFormat",props:{items:{type:Array,required:!0},column:{type:String,required:!0}},setup(t){return(e,n)=>(i.openBlock(),i.createElementBlock("ul",null,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.items,r=>(i.openBlock(),i.createElementBlock("li",{key:r[t.column]},i.toDisplayString(r[t.column]),1))),128))]))}},Cg={class:"flex flex-nowrap items-center"},Eg={key:0,class:"whitespace-nowrap"},Tg={__name:"GpsCoordinatesFormat",props:{location:{type:Object,default:null},decimals:{type:Number,default:6},iconClass:{type:String,default:"w-7"}},setup(t){return(e,n)=>{var r;return i.openBlock(),i.createElementBlock("div",Cg,[i.createVNode(i.unref(mm),{class:i.normalizeClass(["mr-1 ml-[-.2em]",t.iconClass])},null,8,["class"]),(r=t.location)!=null&&r.latitude?(i.openBlock(),i.createElementBlock("div",Eg,i.toDisplayString(t.location.latitude.toFixed(t.decimals))+", "+i.toDisplayString(t.location.longitude.toFixed(t.decimals)),1)):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.createTextVNode(" Unknown ")],64))])}}},Ng={class:"flex items-center flex-nowrap"},Bg={__name:"IconWithTextFormat",props:{icon:{type:[String,Object],required:!0},iconClass:{type:String,default:"w-6"},text:{type:String,default:null},textClass:{type:String,default:"ml-2"}},setup(t){return(e,n)=>(i.openBlock(),i.createElementBlock("div",Ng,[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(t.icon),{class:i.normalizeClass(t.iconClass)},null,8,["class"])),i.createElementVNode("div",{class:i.normalizeClass(t.textClass)},[i.renderSlot(e.$slots,"default",{},()=>[i.createTextVNode(i.toDisplayString(t.text),1)])],2)]))}},Ig={class:"text-xs font-bold"},$g={__name:"LabelValueFormat",props:{label:{type:String,required:!0},value:{type:[String,Number],default:"-"},dense:Boolean,nowrap:Boolean,loading:Boolean},setup(t){return(e,n)=>{const r=i.resolveComponent("QSpinnerTail");return i.openBlock(),i.createElementBlock("div",null,[i.createElementVNode("div",Ig,i.toDisplayString(t.label),1),i.createElementVNode("div",{class:i.normalizeClass({"mt-2":!t.dense,"mt-1":t.dense,"text-no-wrap":t.nowrap})},[t.loading?(i.openBlock(),i.createBlock(r,{key:0})):i.renderSlot(e.$slots,"default",{key:1},()=>[i.createTextVNode(i.toDisplayString(t.value||"-"),1)])],2)])}}},Fg={class:"flex-grow max-w-full"},uc={__name:"CollapsableSidebar",props:{rightSide:Boolean,displayClass:{type:String,default:"flex flex-col"},maxWidth:{type:String,default:"13.5rem"},minWidth:{type:String,default:"5.5rem"},disabled:Boolean,collapse:Boolean,name:{type:String,default:"sidebar"},toggleAtTop:Boolean,toggleClass:{type:String,default:""},hideToggleOnCollapse:Boolean},emits:["collapse","update:collapse"],setup(t,{emit:e}){const n=e,r=t,o=i.ref(xt(r.name+"-is-collapsed",r.collapse));function s(c){o.value=c,Pt(r.name+"-is-collapsed",!!o.value)}function l(){s(!o.value),n("collapse",o.value),n("update:collapse",o.value)}i.onMounted(()=>{n("collapse",o.value),n("update:collapse",o.value)});const a=i.computed(()=>({width:o.value?r.minWidth:r.maxWidth}));return i.watch(()=>r.collapse,()=>{s(r.collapse)}),(c,u)=>{const d=i.resolveComponent("QBtn");return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["dx-collapsable-sidebar overflow-y-auto overflow-x-hidden scroll-smooth flex-shrink-0 transition-all relative",{"is-collapsed":o.value,"is-right-side":t.rightSide,[t.displayClass]:!0}]),style:i.normalizeStyle(a.value)},[i.createElementVNode("div",Fg,[i.renderSlot(c.$slots,"default",{isCollapsed:o.value})]),!t.disabled&&(!t.hideToggleOnCollapse||!o.value)?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[t.toggleAtTop?(i.openBlock(),i.createElementBlock("div",{key:1,class:i.normalizeClass(["absolute top-0 right-0 cursor-pointer p-2",t.toggleClass]),onClick:l},[i.createVNode(i.unref(Ha),{class:i.normalizeClass(["w-5 transition-all",{"rotate-180":t.rightSide?!o.value:o.value}])},null,8,["class"])],2)):(i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass(["flex w-full p-4",t.rightSide?"justify-start":"justify-end"])},[i.renderSlot(c.$slots,"toggle",{},()=>[i.createVNode(d,{class:"btn-secondary",onClick:l},{default:i.withCtx(()=>[i.createVNode(i.unref(Ha),{class:i.normalizeClass(["w-5 transition-all",{"rotate-180":t.rightSide?!o.value:o.value}])},null,8,["class"])]),_:1})])],2))],64)):i.createCommentVNode("",!0)],6)}}},Ji=ft(i.defineComponent({__name:"ContentDrawer",props:{show:{type:Boolean,default:!1},overlay:{type:Boolean},position:{default:"bottom"},seamless:{type:Boolean},contentClass:{default:"py-8 px-12"},title:{default:"Edit"}},emits:["update:show"],setup(t){return(e,n)=>{const r=i.resolveComponent("QDialog");return i.openBlock(),i.createBlock(r,{"model-value":e.show,maximized:"",position:e.position,seamless:e.seamless,class:i.normalizeClass({"hide-backdrop":!e.overlay}),onHide:n[1]||(n[1]=o=>e.$emit("update:show",!1))},{default:i.withCtx(()=>[i.createElementVNode("div",null,[e.title?(i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass(e.cls["dialog-title"]),onClick:n[0]||(n[0]=i.withModifiers(()=>{},["stop","prevent"]))},i.toDisplayString(e.title),3)):i.createCommentVNode("",!0),i.createElementVNode("div",{class:i.normalizeClass({[e.cls["dialog-content"]]:!0,[e.contentClass]:!0})},[i.renderSlot(e.$slots,"default")],2)])]),_:3},8,["model-value","position","seamless","class"])}}}),[["__cssModules",{cls:{"!visible":"_!visible_1816t_1",visible:"_visible_1816t_1",collapse:"_collapse_1816t_1",static:"_static_1816t_1",absolute:"_absolute_1816t_1",relative:"_relative_1816t_1",sticky:"_sticky_1816t_1","left-0":"_left-0_1816t_1","right-0":"_right-0_1816t_1","right-1":"_right-1_1816t_1","top-0":"_top-0_1816t_1","top-1":"_top-1_1816t_1","z-10":"_z-10_1816t_1","m-2":"_m-2_1816t_1","m-4":"_m-4_1816t_1","m-auto":"_m-auto_1816t_1","mx-1":"_mx-1_1816t_1","mx-4":"_mx-4_1816t_1","mx-auto":"_mx-auto_1816t_1","my-2":"_my-2_1816t_1","!mr-1":"_!mr-1_1816t_1","mb-2":"_mb-2_1816t_1","mb-4":"_mb-4_1816t_1","ml-1":"_ml-1_1816t_1","ml-2":"_ml-2_1816t_1","ml-2.5":"_ml-2.5_1816t_1","ml-3":"_ml-3_1816t_1","ml-4":"_ml-4_1816t_1","ml-5":"_ml-5_1816t_1","ml-[-.2em]":"_ml-[-.2em]_1816t_1","mr-1":"_mr-1_1816t_1","mr-2":"_mr-2_1816t_1","mr-3":"_mr-3_1816t_1","mr-4":"_mr-4_1816t_1","mt-1":"_mt-1_1816t_1","mt-2":"_mt-2_1816t_1","mt-3":"_mt-3_1816t_1","mt-4":"_mt-4_1816t_1",block:"_block_1816t_1","inline-block":"_inline-block_1816t_1",inline:"_inline_1816t_1",flex:"_flex_1816t_1",table:"_table_1816t_1",hidden:"_hidden_1816t_1","h-10":"_h-10_1816t_1","h-16":"_h-16_1816t_1","h-32":"_h-32_1816t_1","h-4":"_h-4_1816t_1","h-5":"_h-5_1816t_1","h-6":"_h-6_1816t_1","h-8":"_h-8_1816t_1","h-[2.25rem]":"_h-[2.25rem]_1816t_1","h-full":"_h-full_1816t_1","max-h-full":"_max-h-full_1816t_1","w-1/5":"_w-1/5_1816t_1","w-10":"_w-10_1816t_1","w-16":"_w-16_1816t_1","w-2/5":"_w-2/5_1816t_1","w-24":"_w-24_1816t_1","w-3":"_w-3_1816t_1","w-3/5":"_w-3/5_1816t_1","w-32":"_w-32_1816t_1","w-4":"_w-4_1816t_1","w-48":"_w-48_1816t_1","w-5":"_w-5_1816t_1","w-6":"_w-6_1816t_1","w-7":"_w-7_1816t_1","w-72":"_w-72_1816t_1","w-8":"_w-8_1816t_1","w-96":"_w-96_1816t_1","w-[13.5rem]":"_w-[13.5rem]_1816t_1","w-[6.5rem]":"_w-[6.5rem]_1816t_1","w-[80rem]":"_w-[80rem]_1816t_1","w-full":"_w-full_1816t_1","!min-w-0":"_!min-w-0_1816t_1","max-w-full":"_max-w-full_1816t_1","flex-shrink":"_flex-shrink_1816t_1","flex-shrink-0":"_flex-shrink-0_1816t_1",shrink:"_shrink_1816t_1","flex-grow":"_flex-grow_1816t_1",grow:"_grow_1816t_1","rotate-180":"_rotate-180_1816t_1",transform:"_transform_1816t_1","cursor-ew-resize":"_cursor-ew-resize_1816t_1","cursor-move":"_cursor-move_1816t_1","cursor-not-allowed":"_cursor-not-allowed_1816t_1","cursor-ns-resize":"_cursor-ns-resize_1816t_1","cursor-pointer":"_cursor-pointer_1816t_1",resize:"_resize_1816t_1","flex-col":"_flex-col_1816t_1","flex-nowrap":"_flex-nowrap_1816t_1","items-center":"_items-center_1816t_1","items-stretch":"_items-stretch_1816t_1","justify-start":"_justify-start_1816t_1","justify-end":"_justify-end_1816t_1","justify-center":"_justify-center_1816t_1","justify-between":"_justify-between_1816t_1","gap-x-4":"_gap-x-4_1816t_1","gap-y-0":"_gap-y-0_1816t_1","gap-y-1":"_gap-y-1_1816t_1","space-x-1":"_space-x-1_1816t_1","space-x-2":"_space-x-2_1816t_1","self-center":"_self-center_1816t_1","overflow-auto":"_overflow-auto_1816t_1","overflow-hidden":"_overflow-hidden_1816t_1","overflow-y-auto":"_overflow-y-auto_1816t_73","overflow-x-hidden":"_overflow-x-hidden_1816t_1","scroll-smooth":"_scroll-smooth_1816t_1","overflow-ellipsis":"_overflow-ellipsis_1816t_1","whitespace-normal":"_whitespace-normal_1816t_1","whitespace-nowrap":"_whitespace-nowrap_1816t_1",rounded:"_rounded_1816t_1","rounded-2xl":"_rounded-2xl_1816t_1","rounded-lg":"_rounded-lg_1816t_1","rounded-md":"_rounded-md_1816t_1","rounded-sm":"_rounded-sm_1816t_1","!rounded-l-none":"_!rounded-l-none_1816t_1","!rounded-r-none":"_!rounded-r-none_1816t_1","rounded-b-lg":"_rounded-b-lg_1816t_1","rounded-t-lg":"_rounded-t-lg_1816t_1","rounded-t-md":"_rounded-t-md_1816t_1","!border-0":"_!border-0_1816t_1",border:"_border_1816t_1","border-b":"_border-b_1816t_1","border-l":"_border-l_1816t_1","border-l-0":"_border-l-0_1816t_1","border-r":"_border-r_1816t_1","border-solid":"_border-solid_1816t_1","border-dashed":"_border-dashed_1816t_1","border-none":"_border-none_1816t_1","border-blue-600":"_border-blue-600_1816t_1","border-blue-700":"_border-blue-700_1816t_1","border-gray-200":"_border-gray-200_1816t_1","border-gray-300":"_border-gray-300_1816t_1","border-slate-200":"_border-slate-200_1816t_1","bg-black":"_bg-black_1816t_1","bg-blue-200":"_bg-blue-200_1816t_1","bg-blue-600":"_bg-blue-600_1816t_1","bg-emerald-200":"_bg-emerald-200_1816t_1","bg-gray-100":"_bg-gray-100_1816t_1","bg-gray-200":"_bg-gray-200_1816t_1","bg-gray-400":"_bg-gray-400_1816t_1","bg-gray-500":"_bg-gray-500_1816t_1","bg-green-200":"_bg-green-200_1816t_1","bg-green-300":"_bg-green-300_1816t_1","bg-green-900":"_bg-green-900_1816t_1","bg-red-200":"_bg-red-200_1816t_1","bg-red-300":"_bg-red-300_1816t_1","bg-red-900":"_bg-red-900_1816t_1","bg-sky-300":"_bg-sky-300_1816t_1","bg-sky-800":"_bg-sky-800_1816t_1","bg-slate-100":"_bg-slate-100_1816t_1","bg-slate-500":"_bg-slate-500_1816t_1","bg-slate-800":"_bg-slate-800_1816t_1","bg-slate-900":"_bg-slate-900_1816t_1","bg-transparent":"_bg-transparent_1816t_1","bg-white":"_bg-white_1816t_1","bg-yellow-300":"_bg-yellow-300_1816t_1","!p-2":"_!p-2_1816t_1","p-0":"_p-0_1816t_1","p-1":"_p-1_1816t_1","p-2":"_p-2_1816t_1","p-3":"_p-3_1816t_1","p-4":"_p-4_1816t_1","!py-0":"_!py-0_1816t_1","px-1":"_px-1_1816t_1","px-12":"_px-12_1816t_1","px-2":"_px-2_1816t_1","px-2.5":"_px-2.5_1816t_1","px-4":"_px-4_1816t_1","px-6":"_px-6_1816t_1","px-8":"_px-8_1816t_1","py-1":"_py-1_1816t_1","py-14":"_py-14_1816t_1","py-2":"_py-2_1816t_1","py-3":"_py-3_1816t_1","py-4":"_py-4_1816t_1","py-5":"_py-5_1816t_1","py-8":"_py-8_1816t_1","pl-1":"_pl-1_1816t_1","pt-3":"_pt-3_1816t_1","text-left":"_text-left_1816t_1","text-center":"_text-center_1816t_1","text-[.7rem]":"_text-[.7rem]_1816t_1","text-[1rem]":"_text-[1rem]_1816t_1","text-base":"_text-base_1816t_1","text-sm":"_text-sm_1816t_1","text-xs":"_text-xs_1816t_1","font-bold":"_font-bold_1816t_1","font-medium":"_font-medium_1816t_1","font-semibold":"_font-semibold_1816t_1",uppercase:"_uppercase_1816t_1","leading-[1.2rem]":"_leading-[1.2rem]_1816t_1","!text-green-900":"_!text-green-900_1816t_1","!text-red-900":"_!text-red-900_1816t_1","!text-sky-900":"_!text-sky-900_1816t_1","!text-white":"_!text-white_1816t_1","!text-yellow-900":"_!text-yellow-900_1816t_1","text-blue-600":"_text-blue-600_1816t_1","text-blue-900":"_text-blue-900_1816t_1","text-gray-300":"_text-gray-300_1816t_1","text-gray-400":"_text-gray-400_1816t_1","text-gray-500":"_text-gray-500_1816t_1","text-gray-600":"_text-gray-600_1816t_1","text-gray-700":"_text-gray-700_1816t_1","text-green-700":"_text-green-700_1816t_1","text-red-400":"_text-red-400_1816t_1","text-red-500":"_text-red-500_1816t_1","text-red-800":"_text-red-800_1816t_1","text-red-900":"_text-red-900_1816t_1","text-slate-200":"_text-slate-200_1816t_1","text-slate-300":"_text-slate-300_1816t_1","text-slate-50":"_text-slate-50_1816t_1","text-slate-500":"_text-slate-500_1816t_1","text-white":"_text-white_1816t_1","text-yellow-600":"_text-yellow-600_1816t_1","text-zinc-500":"_text-zinc-500_1816t_1","text-zinc-800":"_text-zinc-800_1816t_1","line-through":"_line-through_1816t_1","opacity-0":"_opacity-0_1816t_1","opacity-20":"_opacity-20_1816t_1","opacity-50":"_opacity-50_1816t_1","opacity-70":"_opacity-70_1816t_1","opacity-80":"_opacity-80_1816t_1","shadow-none":"_shadow-none_1816t_1","outline-none":"_outline-none_1816t_1",outline:"_outline_1816t_1","outline-offset-0":"_outline-offset-0_1816t_1",filter:"_filter_1816t_1",transition:"_transition_1816t_1","transition-all":"_transition-all_1816t_1","duration-300":"_duration-300_1816t_1","danx-app":"_danx-app_1816t_4","q-tab":"_q-tab_1816t_4","q-table__card":"_q-table__card_1816t_7","q-checkbox__inner":"_q-checkbox__inner_1816t_11","q-toolbar":"_q-toolbar_1816t_14","q-notification__actions":"_q-notification__actions_1816t_19","q-date":"_q-date_1816t_22","q-date__view":"_q-date__view_1816t_25","q-field":"_q-field_1816t_28","q-field--auto-height":"_q-field--auto-height_1816t_28","q-field__control":"_q-field__control_1816t_28","q-field__native":"_q-field__native_1816t_31","q-field--labeled":"_q-field--labeled_1816t_35","q-field__control-container":"_q-field__control-container_1816t_35","q-textarea":"_q-textarea_1816t_38","q-field__marginal":"_q-field__marginal_1816t_41","q-field__input":"_q-field__input_1816t_41","q-field__label":"_q-field__label_1816t_41","q-btn":"_q-btn_1816t_48","q-item":"_q-item_1816t_56","q-tab-panels":"_q-tab-panels_1816t_60","q-panel":"_q-panel_1816t_64",scroll:"_scroll_1816t_67","q-tab-panel":"_q-tab-panel_1816t_60","dx-dialog":"_dx-dialog_1816t_77","q-card__section--vert":"_q-card__section--vert_1816t_77","q-banner":"_q-banner_1816t_81",app:"_app_1816t_1","main-layout":"_main-layout_1816t_1","is-disabled":"_is-disabled_1816t_98","disable-all-transitions":"_disable-all-transitions_1816t_103","v-enter-active":"_v-enter-active_1816t_107","v-leave-active":"_v-leave-active_1816t_108","v-enter-from":"_v-enter-from_1816t_112","v-leave-to":"_v-leave-to_1816t_113","dx-action-table":"_dx-action-table_1816t_117","dx-column-shrink":"_dx-column-shrink_1816t_117","dialog-title":"_dialog-title_1816t_121","dialog-content":"_dialog-content_1816t_128","hover:bg-blue-200":"_hover:bg-blue-200_1816t_1","hover:bg-gray-200":"_hover:bg-gray-200_1816t_1","hover:bg-green-100":"_hover:bg-green-100_1816t_1","hover:bg-red-100":"_hover:bg-red-100_1816t_1","hover:bg-red-200":"_hover:bg-red-200_1816t_1","hover:bg-slate-200":"_hover:bg-slate-200_1816t_1","hover:bg-slate-300":"_hover:bg-slate-300_1816t_1","hover:bg-slate-600":"_hover:bg-slate-600_1816t_1","hover:text-blue-500":"_hover:text-blue-500_1816t_1","hover:text-blue-600":"_hover:text-blue-600_1816t_1","hover:opacity-100":"_hover:opacity-100_1816t_1","hover:opacity-20":"_hover:opacity-20_1816t_1","hover:opacity-70":"_hover:opacity-70_1816t_1","hover:outline-4":"_hover:outline-4_1816t_1","focus:bg-blue-200":"_focus:bg-blue-200_1816t_1","focus:outline-4":"_focus:outline-4_1816t_1","focus:outline-blue-200":"_focus:outline-blue-200_1816t_1"}}]]),dc=t=>i.isVNode(t.vnode)?t.vnode:i.isRef(t.vnode)?t.vnode.value:typeof t.vnode=="function"?t.vnode(t.props,t.params):null;dc.props={vnode:{type:[Function,Object],required:!0},props:{type:Object,default:()=>({})},params:{type:Object,default:null}};const ln=dc,Ag={__name:"ActionVnode",setup(t){const e=i.ref(!1);async function n(r){e.value=!0,await bn.value.confirm(r),e.value=!1}return(r,o)=>(i.openBlock(),i.createElementBlock("div",null,[i.unref(bn)?(i.openBlock(),i.createBlock(i.unref(ln),{key:0,vnode:i.unref(bn).vnode,"is-saving":e.value,onConfirm:n,onClose:i.unref(bn).cancel},null,8,["vnode","is-saving","onClose"])):i.createCommentVNode("",!0)]))}},fc={__name:"RenderComponent",props:{component:{type:[Function,Object],required:!0},params:{type:Array,default:()=>[]},overrideProps:{type:Object,default:()=>({})}},emits:["action"],setup(t){const e=t,n=i.computed(()=>{var o,s,l;return((o=r.value)==null?void 0:o.value)||((l=(s=r.value)==null?void 0:s.props)==null?void 0:l.text)}),r=i.computed(()=>typeof e.component=="function"?e.component(...e.params):e.component);return(o,s)=>n.value?(i.openBlock(),i.createBlock(i.resolveDynamicComponent(r.value.is),i.mergeProps({key:0},{...r.value.props,...t.overrideProps},{onAction:s[0]||(s[0]=l=>o.$emit("action",l))}),{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(n.value),1)]),_:1},16)):(i.openBlock(),i.createBlock(i.resolveDynamicComponent(r.value.is),i.mergeProps({key:1},{...r.value.props,...t.overrideProps},{onAction:s[1]||(s[1]=l=>o.$emit("action",l))}),null,16))}},Og=["href"],hc=i.defineComponent({__name:"PopoverMenu",props:{items:{},tooltip:{default:null},disabled:{type:Boolean},loading:{type:Boolean},loadingComponent:{default:()=>({is:J.QSpinner,props:{class:"w-4 h-4"}})}},emits:["action","action-item"],setup(t,{emit:e}){const n=e;function r(o){n("action",o.name||o.action),n("action-item",o)}return(o,s)=>{const l=i.resolveComponent("QTooltip"),a=i.resolveComponent("QItem"),c=i.resolveComponent("QList"),u=i.resolveComponent("QMenu");return i.openBlock(),i.createElementBlock("a",{class:i.normalizeClass(["p-3 dx-popover-menu",{"opacity-50 cursor-not-allowed":o.disabled}])},[o.$slots.tooltip||o.tooltip?(i.openBlock(),i.createBlock(l,{key:0},{default:i.withCtx(()=>[i.renderSlot(o.$slots,"tooltip",{},()=>[i.createTextVNode(i.toDisplayString(o.tooltip),1)])]),_:3})):i.createCommentVNode("",!0),i.createVNode(i.Transition,{mode:"out-in",duration:150},{default:i.withCtx(()=>[o.loading?(i.openBlock(),i.createBlock(i.unref(fc),{key:0,component:o.loadingComponent},null,8,["component"])):(i.openBlock(),i.createBlock(i.unref(sp),{key:1,class:"w-4 dx-menu-icon"}))]),_:1}),o.disabled?i.createCommentVNode("",!0):(i.openBlock(),i.createBlock(u,{key:1,"auto-close":""},{default:i.withCtx(()=>[i.createVNode(c,null,{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(o.items,d=>(i.openBlock(),i.createElementBlock(i.Fragment,{key:d.name},[d.url?(i.openBlock(),i.createElementBlock("a",{key:0,class:i.normalizeClass(["q-item",d.class]),target:"_blank",href:d.url},[d.icon?(i.openBlock(),i.createBlock(i.resolveDynamicComponent(d.icon),{key:0,class:i.normalizeClass([d.iconClass,"mr-3 w-4"])},null,8,["class"])):i.createCommentVNode("",!0),i.createTextVNode(" "+i.toDisplayString(d.label),1)],10,Og)):(i.openBlock(),i.createBlock(a,{key:1,clickable:"",class:i.normalizeClass(d.class),onClick:f=>r(d)},{default:i.withCtx(()=>[d.icon?(i.openBlock(),i.createBlock(i.resolveDynamicComponent(d.icon),{key:0,class:i.normalizeClass([d.iconClass,"mr-3 w-4"])},null,8,["class"])):i.createCommentVNode("",!0),i.createTextVNode(" "+i.toDisplayString(d.label),1)]),_:2},1032,["class","onClick"]))],64))),128))]),_:1})]),_:1}))],2)}}}),Dg={__name:"InteractiveTooltip",props:{tooltip:{type:String,default:""}},setup(t){const e=i.ref(!1),n=i.ref(null),r=i.ref(!1),o=i.ref(!1);let s=null;i.onMounted(()=>{n.value.$el.parentNode.addEventListener("mouseover",l),n.value.$el.parentNode.addEventListener("mouseleave",a)});function l(){e.value=!0,o.value=!0,s&&clearTimeout(s)}function a(){o.value=!1,e.value&&d()}function c(){r.value=!0,e.value=!0,s&&clearTimeout(s)}function u(){r.value=!1,e.value&&d()}function d(){s&&clearTimeout(s),s=setTimeout(()=>{r.value||o.value?d():e.value=!1},200)}return(f,h)=>{const _=i.resolveComponent("QTooltip");return i.openBlock(),i.createBlock(_,{ref_key:"tooltipBox",ref:n,modelValue:e.value,"onUpdate:modelValue":h[0]||(h[0]=p=>e.value=p),class:"interactive-tooltip","no-parent-event":"","transition-duration":200,onMouseenter:c,onMouseleave:u},{default:i.withCtx(()=>[i.renderSlot(f.$slots,"default",{},()=>[i.createTextVNode(i.toDisplayString(t.tooltip),1)])]),_:3},8,["modelValue"])}}},Pg={class:"flex items-center w-full"},Mg={class:"flex-grow text-sm"},Lg={__name:"BadgeTab",props:{name:{type:String,required:!0},label:{type:String,required:!0},count:{type:[String,Number],default:""}},setup(t){return(e,n)=>{const r=i.resolveComponent("QBadge"),o=i.resolveComponent("QTab");return i.openBlock(),i.createBlock(o,{name:t.name,class:"w-full","content-class":"w-full"},{default:i.withCtx(()=>[i.createElementVNode("div",Pg,[i.createElementVNode("div",Mg,i.toDisplayString(t.label),1),i.createVNode(r,{class:"bg-gray-400",label:t.count,rounded:""},null,8,["label"])])]),_:1},8,["name"])}}},vg={class:"flex items-center w-full"},Vg={class:"flex-grow text-sm"},qg={__name:"IndicatorTab",props:{name:{type:String,required:!0},label:{type:String,required:!0},overdue:Boolean,warning:Boolean,isActive:Boolean},setup(t){return(e,n)=>{const r=i.resolveComponent("QTab");return i.openBlock(),i.createBlock(r,{name:t.name,class:"w-full","content-class":"w-full"},{default:i.withCtx(()=>[i.createElementVNode("div",vg,[i.createElementVNode("div",Vg,i.toDisplayString(t.label),1),i.createElementVNode("div",null,[t.overdue?(i.openBlock(),i.createBlock(i.unref(Ia),{key:0,class:i.normalizeClass(["w-5 ml-2",t.isActive?"text-white":"text-red-400"])},null,8,["class"])):t.warning?(i.openBlock(),i.createBlock(i.unref(Ua),{key:1,class:"text-yellow-600 w-5"})):i.createCommentVNode("",!0)])])]),_:1},8,["name"])}}},Rg={};function Ug(t,e){return i.openBlock(),i.createBlock(i.Transition,{name:"autoHeight"},{default:i.withCtx(()=>[i.renderSlot(t.$slots,"default")]),_:3})}const jg=ft(Rg,[["render",Ug]]),_c={__name:"ListTransition",props:{name:{type:String,default:"fade-list"}},setup(t){return(e,n)=>(i.openBlock(),i.createBlock(i.TransitionGroup,{tag:"div",name:t.name,class:"relative"},{default:i.withCtx(()=>[i.renderSlot(e.$slots,"default")]),_:3},8,["name"]))}},zg=i.defineComponent({__name:"MaxHeightTransition",props:{maxHeight:{}},setup(t){return i.useCssVars(e=>({"0f80b08a":e.maxHeight})),(e,n)=>(i.openBlock(),i.createBlock(i.Transition,{name:"maxHeight"},{default:i.withCtx(()=>[i.renderSlot(e.$slots,"default")]),_:3}))}}),Hg={__name:"SlideTransition",props:{name:{type:String,default:"slide"}},setup(t){return(e,n)=>(i.openBlock(),i.createBlock(i.Transition,{name:t.name},{default:i.withCtx(()=>[i.renderSlot(e.$slots,"default")]),_:3},8,["name"]))}};function Et(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function mc(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}/*!
2
2
  * GSAP 3.12.5
3
3
  * https://gsap.com
4
4
  *
@@ -150,5 +150,5 @@ ${e}
150
150
 
151
151
  Use Save As... to download, then click back to return to this page.`)&&(location.href=x),!0;var w=document.createElement("iframe");document.body.appendChild(w),y||(x="data:"+x.replace(/^data:([\w/\-+]+)/,o)),w.src=x,setTimeout(function(){document.body.removeChild(w)},333)}if(navigator.msSaveBlob)return navigator.msSaveBlob(h,f);if(r.URL)g(r.URL.createObjectURL(h),!0);else{if(typeof h=="string"||h.constructor===u)try{return g("data:"+s+";base64,"+r.btoa(h))}catch{return g("data:"+s+","+encodeURIComponent(h))}_=new FileReader,_.onload=function(x){g(this.result)},_.readAsDataURL(h)}return!0}async function Ph(t,e="",n=null){var l;let r;n&&(r={method:"POST",headers:{...(l=oe.value.request)==null?void 0:l.headers},body:JSON.stringify(n)});const o=await fetch(t,r);if(!o.ok)throw Error("File download failed: invalid response from server");let s;try{const a=JSON.parse(new TextDecoder().decode(o.data));console.error("Error downloading file:",a),s=a.message,a.errors&&(s=a.errors[0].message)}catch{}if(s)throw new Error("Failed to download file: "+s);await Mh(o,e)}async function Mh(t,e=""){const n=Yl(t,"content-disposition",""),r=Yl(t,"content-type",""),o=n.match(/filename="([^"]+)"/);e=e||o&&o[1]||"download.pdf";let s=t.data;s||(s=await t.blob()),Si(s,e,r)}function Yl(t,e,n){if(t.headers)return typeof t.headers.get=="function"?t.headers.get(e)||n:t.headers[e]||n}let Lh=class{constructor(e){if(Gx(e))throw new Error("DataView: Passed buffer type is unsupported.");this.buffer=e,this.byteLength=this.buffer.length}getUint8(e){return this.buffer.readUInt8(e)}getUint16(e,n){return n?this.buffer.readUInt16LE(e):this.buffer.readUInt16BE(e)}getUint32(e,n){return n?this.buffer.readUInt32LE(e):this.buffer.readUInt32BE(e)}getInt32(e,n){return n?this.buffer.readInt32LE(e):this.buffer.readInt32BE(e)}};function Gx(t){return typeof t!="object"||t.length===void 0||t.readUInt8===void 0||t.readUInt16LE===void 0||t.readUInt16BE===void 0||t.readUInt32LE===void 0||t.readUInt32BE===void 0||t.readInt32LE===void 0||t.readInt32BE===void 0}function vh(t,e,n){try{return new DataView(t,e,n)}catch{return new Lh(t,e,n)}}function V(t,e,n){const r=[];for(let o=0;o<n&&e+o<t.byteLength;o++)r.push(t.getUint8(e+o));return br(r)}function yr(t,e){const n=[];let r=0;for(;e+r<t.byteLength;){const o=t.getUint8(e+r);if(o===0)break;n.push(o),r++}return br(n)}function Zx(t,e,n){const r=[];for(let o=0;o<n&&e+o<t.byteLength;o+=2)r.push(t.getUint16(e+o));return r[r.length-1]===0&&r.pop(),br(r)}function Vh(t,e){const n=t.getUint8(e),r=V(t,e+1,n);return[n,r]}function br(t){return t.map(e=>String.fromCharCode(e)).join("")}function j(){for(let t=1;t<arguments.length;t++)for(const e in arguments[t])arguments[0][e]=arguments[t][e];return arguments[0]}function qh(t,e,n){let r=!1;Object.defineProperty(t,e,{get(){return r||(r=!0,Object.defineProperty(t,e,{configurable:!0,enumerable:!0,value:n.apply(t),writable:!0})),t[e]},configurable:!0,enumerable:!0})}function Rh(t){if(typeof btoa<"u")return btoa(typeof t=="string"?t:Array.prototype.reduce.call(new Uint8Array(t),(e,n)=>e+String.fromCharCode(n),""));if(!(typeof Buffer>"u"))return typeof Buffer.from<"u"?Buffer.from(t).toString("base64"):new Buffer(t).toString("base64")}function Wx(t){const e=t.substring(t.indexOf(",")+1);if(t.indexOf(";base64")!==-1)return typeof atob<"u"?Uint8Array.from(atob(e),r=>r.charCodeAt(0)).buffer:typeof Buffer>"u"?void 0:typeof Buffer.from<"u"?Buffer.from(e,"base64"):new Buffer(e,"base64");const n=decodeURIComponent(e);return typeof Buffer<"u"?typeof Buffer.from<"u"?Buffer.from(n):new Buffer(n):Uint8Array.from(n,r=>r.charCodeAt(0)).buffer}function Yx(t,e,n){return Uh(n,e-t.length)+t}function Qx(t,e){return parseInt(t.replace(".",""),e)/Math.pow(e,(t.split(".")[1]||"").length)}function Uh(t,e){return new Array(e+1).join(t)}const Ci=void 0,jh=0;function zh(t,e,n="string"){if(e===jh&&typeof DecompressionStream=="function"){const r=new DecompressionStream("deflate"),o=new Blob([t]).stream().pipeThrough(r);return n==="dataview"?new Response(o).arrayBuffer().then(s=>new DataView(s)):new Response(o).text()}return e!==void 0?Promise.reject(`Unknown compression method ${e}.`):t}const Hh={USE_FILE:!0,USE_JFIF:!0,USE_PNG_FILE:!0,USE_EXIF:!0,USE_IPTC:!0,USE_XMP:!0,USE_ICC:!0,USE_MPF:!0,USE_PHOTOSHOP:!0,USE_THUMBNAIL:!0,USE_TIFF:!0,USE_JPEG:!0,USE_PNG:!0,USE_HEIC:!0,USE_AVIF:!0,USE_WEBP:!0,USE_GIF:!0};function me(t){return t.map(e=>String.fromCharCode(e)).join("")}function Ql(t){if(t.length>=8){const e=me(t.slice(0,8));if(e==="ASCII\0\0\0")return me(t.slice(8));if(e==="JIS\0\0\0\0\0")return"[JIS encoded text]";if(e==="UNICODE\0")return"[Unicode encoded text]";if(e==="\0\0\0\0\0\0\0\0")return"[Undefined encoding]"}return"Undefined"}function Ei(t){return t[0][0]/t[0][1]+t[1][0]/t[1][1]/60+t[2][0]/t[2][1]/3600}const Kl=18761,Xl=19789,Fn={BIG_ENDIAN:Xl,LITTLE_ENDIAN:Kl,getByteOrder:Kx};function Kx(t,e){if(t.getUint16(e)===Kl)return Kl;if(t.getUint16(e)===Xl)return Xl;throw new Error("Illegal byte order value. Faulty image.")}const Gh={isTiffFile:Xx,findTiffOffsets:eS};function Xx(t){return!!t&&t.byteLength>=4&&Jx(t)}function Jx(t){const r=t.getUint16(0)===Fn.LITTLE_ENDIAN;return t.getUint16(2,r)===42}function eS(){return{hasAppMarkers:!0,tiffHeaderOffset:0}}const Zh={isJpegFile:pS,findJpegOffsets:gS},tS=2,nS=65496,Wh=2,ot=4,Be=2,rS=2,oS=10,iS=18,Yh=33,Qh=79,Kh=18,sS=8,Jl="ICC_PROFILE\0",Xh=ot+Jl.length,lS=Xh+1,Jh="MPF\0",e_=65472,t_=65474,aS=65476,cS=65499,uS=65501,dS=65498,n_=65504,ea=65505,r_=65506,fS=65517,hS=65519,_S=65534,mS=65535,o_="JFIF",i_="Exif",s_="http://ns.adobe.com/xap/1.0/\0",l_="http://ns.adobe.com/xmp/extension/\0",a_="Photoshop 3.0";function pS(t){return!!t&&t.byteLength>=tS&&t.getUint16(0)===nS}function gS(t){let e=Wh,n,r,o,s,l,a,c,u,d;for(;e+ot+5<=t.byteLength;){if(yS(t,e))n=t.getUint16(e+Be),r=e+Be;else if(bS(t,e))n=t.getUint16(e+Be),o=e+Be;else if(xS(t,e))n=t.getUint16(e+Be),s=e+rS;else if(SS(t,e))n=t.getUint16(e+Be),l=e+oS;else if(CS(t,e))c||(c=[]),n=t.getUint16(e+Be),c.push(BS(e,n));else if(TS(t,e))c||(c=[]),n=t.getUint16(e+Be),c.push(IS(e,n));else if($S(t,e))n=t.getUint16(e+Be),a=e+iS;else if(wS(t,e)){n=t.getUint16(e+Be);const f=e+Kh,h=n-(Kh-Be),_=t.getUint8(e+Xh),p=t.getUint8(e+lS);u||(u=[]),u.push({offset:f,length:h,chunkNumber:_,chunksTotal:p})}else if(kS(t,e))n=t.getUint16(e+Be),d=e+sS;else if(FS(t,e))n=t.getUint16(e+Be);else if(AS(t,e)){e++;continue}else break;e+=Be+n}return{hasAppMarkers:e>Wh,fileDataOffset:r||o,jfifDataOffset:s,tiffHeaderOffset:l,iptcDataOffset:a,xmpChunks:c,iccChunks:u,mpfDataOffset:d}}function yS(t,e){return t.getUint16(e)===e_}function bS(t,e){return t.getUint16(e)===t_}function wS(t,e){const n=Jl.length;return t.getUint16(e)===r_&&V(t,e+ot,n)===Jl}function kS(t,e){const n=Jh.length;return t.getUint16(e)===r_&&V(t,e+ot,n)===Jh}function xS(t,e){const n=o_.length;return t.getUint16(e)===n_&&V(t,e+ot,n)===o_&&t.getUint8(e+ot+n)===0}function SS(t,e){const n=i_.length;return t.getUint16(e)===ea&&V(t,e+ot,n)===i_&&t.getUint8(e+ot+n)===0}function CS(t,e){return t.getUint16(e)===ea&&ES(t,e)}function ES(t,e){const n=s_.length;return V(t,e+ot,n)===s_}function TS(t,e){return t.getUint16(e)===ea&&NS(t,e)}function NS(t,e){const n=l_.length;return V(t,e+ot,n)===l_}function BS(t,e){return{dataOffset:t+Yh,length:e-(Yh-Be)}}function IS(t,e){return{dataOffset:t+Qh,length:e-(Qh-Be)}}function $S(t,e){const n=a_.length;return t.getUint16(e)===fS&&V(t,e+ot,n)===a_&&t.getUint8(e+ot+n)===0}function FS(t,e){const n=t.getUint16(e);return n>=n_&&n<=hS||n===_S||n===e_||n===t_||n===aS||n===cS||n===uS||n===dS}function AS(t,e){return t.getUint16(e)===mS}const c_={isPngFile:PS,findPngOffsets:MS},ta=`‰PNG\r
152
152
  
153
- `,Ti=4,ut=4,wr=0,Jt=Ti,xe=Ti+ut,na="XML:com.adobe.xmp\0",u_="tEXt",An="iTXt",ra="zTXt",d_="pHYs",f_="tIME",OS="eXIf",DS="iCCP";function PS(t){return!!t&&V(t,0,ta.length)===ta}function MS(t,e){const r={hasAppMarkers:!1};let o=ta.length;for(;o+Ti+ut<=t.byteLength;){if(LS(t,o))r.hasAppMarkers=!0,r.pngHeaderOffset=o+xe;else if(vS(t,o)){const s=jS(t,o);s!==void 0&&(r.hasAppMarkers=!0,r.xmpChunks=[{dataOffset:s,length:t.getUint32(o+wr)-(s-(o+xe))}])}else if(VS(t,o,e)){r.hasAppMarkers=!0;const s=V(t,o+Jt,ut);r.pngTextChunks||(r.pngTextChunks=[]),r.pngTextChunks.push({length:t.getUint32(o+wr),type:s,offset:o+xe})}else if(qS(t,o))r.hasAppMarkers=!0,r.tiffHeaderOffset=o+xe;else if(e&&RS(t,o)){r.hasAppMarkers=!0;const s=t.getUint32(o+wr),l=o+xe,{profileName:a,compressionMethod:c,compressedProfileOffset:u}=zS(t,l);r.iccChunks||(r.iccChunks=[]),r.iccChunks.push({offset:u,length:s-(u-l),chunkNumber:1,chunksTotal:1,profileName:a,compressionMethod:c})}else US(t,o)&&(r.hasAppMarkers=!0,r.pngChunkOffsets||(r.pngChunkOffsets=[]),r.pngChunkOffsets.push(o+wr));o+=t.getUint32(o+wr)+Ti+ut+4}return r}function LS(t,e){return V(t,e+Jt,ut)==="IHDR"}function vS(t,e){return V(t,e+Jt,ut)===An&&V(t,e+xe,na.length)===na}function VS(t,e,n){const r=V(t,e+Jt,ut);return r===u_||r===An||r===ra&&n}function qS(t,e){return V(t,e+Jt,ut)===OS}function RS(t,e){return V(t,e+Jt,ut)===DS}function US(t,e){const n=[d_,f_],r=V(t,e+Jt,ut);return n.includes(r)}function jS(t,e){e+=xe+na.length+1+1;let o=0;for(;o<2&&e<t.byteLength;)t.getUint8(e)===0&&o++,e++;if(!(o<2))return e}function zS(t,e){const o=yr(t,e);e+=o.length+1;const s=t.getUint8(e);return e+=1,{profileName:o,compressionMethod:s,compressedProfileOffset:e}}function HS(t,e){return t.getUint32(e+4)}function GS(t,e,n,r){const{offsets:s,sizes:l}=ZS(e,n+3),a=t.getUint8(s.offsetSize)>>4;l.item.extent.extentOffset=a;const c=t.getUint8(s.lengthSize)&15;l.item.extent.extentLength=c;const u=t.getUint8(s.baseOffsetSize)>>4;l.item.baseOffset=u;const d=WS(t,s.indexSize,e);l.item.extent.extentIndex=d!==void 0?d:0;const f=YS(t,s.itemCount,e);return{type:"iloc",items:QS(t,e,s,l,a,c,d,f),length:r}}function ZS(t,e){const n={item:{dataReferenceIndex:2,extentCount:2,extent:{}}};t<2?(n.itemCount=2,n.item.itemId=2):t===2&&(n.itemCount=4,n.item.itemId=4),t===1||t===2?n.item.constructionMethod=2:n.item.constructionMethod=0;const r={offsetSize:e,lengthSize:e,baseOffsetSize:e+1,indexSize:e+1};return r.itemCount=e+2,r.items=r.itemCount+n.itemCount,r.item={itemId:0},r.item.constructionMethod=r.item.itemId+n.item.itemId,r.item.dataReferenceIndex=r.item.constructionMethod+n.item.constructionMethod,{offsets:r,sizes:n}}function WS(t,e,n){if(n===1||n===2)return t.getUint8(e)&15}function YS(t,e,n){if(n<2)return t.getUint16(e);if(n===2)return t.getUint32(e)}function QS(t,e,n,r,o,s,l,a){if(a===void 0)return[];const c=[];let u=n.items;for(let d=0;d<a;d++){const f={extents:[]};f.itemId=KS(t,u,e),u+=r.item.itemId,f.constructionMethod=e===1||e===2?t.getUint16(u)&15:void 0,u+=r.item.constructionMethod,f.dataReferenceIndex=t.getUint16(u),u+=r.item.dataReferenceIndex,f.baseOffset=Ni(t,u,r.item.baseOffset),u+=r.item.baseOffset,f.extentCount=t.getUint16(u),u+=r.item.extentCount;for(let h=0;h<f.extentCount;h++){const _={};_.extentIndex=XS(t,e,u,l),u+=r.item.extent.extentIndex,_.extentOffset=Ni(t,u,o),u+=r.item.extent.extentOffset,_.extentLength=Ni(t,u,s),u+=r.item.extent.extentLength,f.extents.push(_)}c.push(f)}return c}function KS(t,e,n){if(n<2)return t.getUint16(e);if(n===2)return t.getUint32(e)}function XS(t,e,n,r){if((e===1||e===2)&&r>0)return Ni(t,n,r)}function Ni(t,e,n){return n===4?t.getUint32(e):n===8?(console.warn("This file uses an 8-bit offset which is currently not supported by ExifReader. Contact the maintainer to get it fixed."),HS(t,e)):0}const JS=1718909296,eC=1768977008,tC=1835365473,nC=1768714083,rC=1768517222,oC=1768842853,iC=1768973167,sC=1668246642,h_=1165519206,oa=1835625829,lC=1970432288;function Bi(t,e){const{length:s,contentOffset:l}=aC(t,e);if(s<8)return;const a=t.getUint32(e+4);if(a===JS)return bC(t,l,s);if(a===eC)return wC(t,e,l,s);if(a===iC)return kC(t,e,l,s);if(a===sC)return xC(t,l,s);const c=t.getUint8(l);return a===tC?CC(t,e,l+1,s):a===nC?GS(t,c,l+1,s):a===rC?EC(t,e,c,l+1,s):a===oC?NC(t,e,c,l+1,s):{type:void 0,length:s}}function aC(t,e){const l=t.getUint32(e);return cC(l)?{length:t.byteLength-e,contentOffset:e+4+4}:uC(l)&&dC(t,e)?{length:t.getUint32(e+12),contentOffset:e+4+4+8}:{length:l,contentOffset:e+4+4}}function cC(t){return t===0}function uC(t){return t===1}function dC(t,e){return t.getUint32(e+8)===0}function __(t){{const e={},n=fC(t);return n?(e.tiffHeaderOffset=hC(t,n),e.xmpChunks=pC(n),e.iccChunks=yC(n),e.hasAppMarkers=e.tiffHeaderOffset!==void 0||e.xmpChunks!==void 0||e.iccChunks!==void 0,e):{hasAppMarkers:!1}}}function fC(t){let r=0;for(;r+4+4<=t.byteLength;){const o=Bi(t,r);if(o===void 0)break;if(o.type==="meta")return o;r+=o.length}}function hC(t,e){try{const n=_C(e).itemId,r=ia(e,n),o=r.baseOffset+r.extents[0].extentOffset;return mC(t,o)}catch{return}}function _C(t){return t.subBoxes.find(e=>e.type==="iinf").itemInfos.find(e=>e.itemType===h_)}function ia(t,e){return t.subBoxes.find(n=>n.type==="iloc").items.find(n=>n.itemId===e)}function mC(t,e){return e+4+t.getUint32(e)}function pC(t){try{const e=gC(t).itemId,n=ia(t,e),r=ia(t,e).extents[0];return[{dataOffset:n.baseOffset+r.extentOffset,length:r.extentLength}]}catch{return}}function gC(t){return t.subBoxes.find(e=>e.type==="iinf").itemInfos.find(e=>e.itemType===oa&&e.contentType==="application/rdf+xml")}function yC(t){try{const e=t.subBoxes.find(n=>n.type==="iprp").subBoxes.find(n=>n.type==="ipco").properties.find(n=>n.type==="colr").icc;if(e)return[e]}catch{}}function bC(t,e,n){return{type:"ftyp",majorBrand:V(t,e,4),length:n}}function wC(t,e,n,r){return{type:"iprp",subBoxes:Ii(t,n,r-(n-e)),length:r}}function kC(t,e,n,r){return{type:"ipco",properties:Ii(t,n,r-(n-e)),length:r}}function xC(t,e,n){return{type:"colr",icc:SC(t,e),length:n}}function SC(t,e){const r=V(t,e,4);if(!(r!=="prof"&&r!=="rICC"))return{offset:e+4,length:t.getUint32(e+4),chunkNumber:1,chunksTotal:1}}function CC(t,e,n,r){return{type:"meta",subBoxes:Ii(t,n+3,r-(n+3-e)),length:r}}function Ii(t,e,n){const r=[h_,oa],o=[];let s=e;for(;s<e+n;){const l=Bi(t,s);if(l===void 0)break;l.type!==void 0&&(l.itemType===void 0||r.indexOf(l.itemType)!==-1)&&o.push(l),s+=l.length}return o}function EC(t,e,n,r,o){const{offsets:s}=TC(n,r);return{type:"iinf",itemInfos:Ii(t,s.itemInfos,o-(s.itemInfos-e)),length:o}}function TC(t,e){const r={entryCount:e+3},o={};return t===0?o.entryCount=2:o.entryCount=4,r.itemInfos=r.entryCount+o.entryCount,{offsets:r}}function NC(t,e,n,r,o){r+=3;const l={type:"infe",length:o};return(n===0||n===1)&&(l.itemId=t.getUint16(r),r+=2,l.itemProtectionIndex=t.getUint16(r),r+=2,l.itemName=yr(t,r),r+=l.itemName.length+1),n>=2&&(n===2?(l.itemId=t.getUint16(r),r+=2):n===3&&(l.itemId=t.getUint32(r),r+=4),l.itemProtectionIndex=t.getUint16(r),r+=2,l.itemType=t.getUint32(r),r+=4,l.itemName=yr(t,r),r+=l.itemName.length+1,l.itemType===oa?(l.contentType=yr(t,r),r+=l.contentType.length+1,e+o>r&&(l.contentEncoding=yr(t,r),r+=l.contentEncoding.length+1)):l.itemType===lC&&(l.itemUri=yr(t,r),r+=l.itemUri.length+1)),l}const m_={isHeicFile:BC,findHeicOffsets:IC};function BC(t){if(!t)return!1;const e=["heic","heix","hevc","hevx","heim","heis","hevm","hevs","mif1"];try{const n=Bi(t,0);return n&&e.indexOf(n.majorBrand)!==-1}catch{return!1}}function IC(t){return __(t)}const p_={isAvifFile:$C,findAvifOffsets:FC};function $C(t){if(!t)return!1;try{const e=Bi(t,0);return e&&e.majorBrand==="avif"}catch{return!1}}function FC(t){return __(t)}const g_={isWebpFile:AC,findOffsets:OC};function AC(t){const n="RIFF",o="WEBP";return!!t&&V(t,0,n.length)===n&&V(t,8,o.length)===o}function OC(t){const r="Exif\0\0";let s=12,l=!1,a,c,u,d;for(;s+8<t.byteLength;){const f=V(t,s,4),h=t.getUint32(s+4,!0);f==="EXIF"?(l=!0,V(t,s+8,r.length)===r?a=s+8+r.length:a=s+8):f==="XMP "?(l=!0,c=[{dataOffset:s+8,length:h}]):f==="ICCP"?(l=!0,u=[{offset:s+8,length:h,chunkNumber:1,chunksTotal:1}]):f==="VP8X"&&(l=!0,d=s+8),s+=8+(h%2===0?h:h+1)}return{hasAppMarkers:l,tiffHeaderOffset:a,xmpChunks:c,iccChunks:u,vp8xChunkOffset:d}}const y_={isGifFile:MC,findOffsets:LC},DC=6,PC=["GIF87a","GIF89a"];function MC(t){return!!t&&PC.includes(V(t,0,DC))}function LC(){return{gifHeaderOffset:0}}const vC={parseAppMarkers:VC};function VC(t,e){if(Gh.isTiffFile(t))return On(Gh.findTiffOffsets(),"tiff","TIFF");if(Zh.isJpegFile(t))return On(Zh.findJpegOffsets(t),"jpeg","JPEG");if(c_.isPngFile(t))return On(c_.findPngOffsets(t,e),"png","PNG");if(m_.isHeicFile(t))return On(m_.findHeicOffsets(t),"heic","HEIC");if(p_.isAvifFile(t))return On(p_.findAvifOffsets(t),"avif","AVIF");if(g_.isWebpFile(t))return On(g_.findOffsets(t),"webp","WebP");if(y_.isGifFile(t))return On(y_.findOffsets(t),"gif","GIF");throw new Error("Invalid image format")}function On(t,e,n){return j({},t,{fileType:{value:e,description:n}})}const v={ApertureValue:t=>Math.pow(Math.sqrt(2),t[0]/t[1]).toFixed(2),ColorSpace(t){return t===1?"sRGB":t===65535?"Uncalibrated":"Unknown"},ComponentsConfiguration(t){return t.map(e=>{if(e===49)return"Y";if(e===50)return"Cb";if(e===51)return"Cr";if(e===52)return"R";if(e===53)return"G";if(e===54)return"B"}).join("")},Contrast(t){return t===0?"Normal":t===1?"Soft":t===2?"Hard":"Unknown"},CustomRendered(t){return t===0?"Normal process":t===1?"Custom process":"Unknown"},ExposureMode(t){return t===0?"Auto exposure":t===1?"Manual exposure":t===2?"Auto bracket":"Unknown"},ExposureProgram(t){return t===0?"Undefined":t===1?"Manual":t===2?"Normal program":t===3?"Aperture priority":t===4?"Shutter priority":t===5?"Creative program":t===6?"Action program":t===7?"Portrait mode":t===8?"Landscape mode":t===9?"Bulb":"Unknown"},ExposureTime(t){if(t[0]/t[1]>.25){const e=t[0]/t[1];return Number.isInteger(e)?""+e:e.toFixed(1)}return t[0]!==0?`1/${Math.round(t[1]/t[0])}`:`0/${t[1]}`},FNumber:t=>`f/${t[0]/t[1]}`,FocalLength:t=>t[0]/t[1]+" mm",FocalPlaneResolutionUnit(t){return t===2?"inches":t===3?"centimeters":"Unknown"},LightSource:t=>t===1?"Daylight":t===2?"Fluorescent":t===3?"Tungsten (incandescent light)":t===4?"Flash":t===9?"Fine weather":t===10?"Cloudy weather":t===11?"Shade":t===12?"Daylight fluorescent (D 5700 – 7100K)":t===13?"Day white fluorescent (N 4600 – 5400K)":t===14?"Cool white fluorescent (W 3900 – 4500K)":t===15?"White fluorescent (WW 3200 – 3700K)":t===17?"Standard light A":t===18?"Standard light B":t===19?"Standard light C":t===20?"D55":t===21?"D65":t===22?"D75":t===23?"D50":t===24?"ISO studio tungsten":t===255?"Other light source":"Unknown",MeteringMode(t){return t===1?"Average":t===2?"CenterWeightedAverage":t===3?"Spot":t===4?"MultiSpot":t===5?"Pattern":t===6?"Partial":t===255?"Other":"Unknown"},ResolutionUnit(t){return t===2?"inches":t===3?"centimeters":"Unknown"},Saturation(t){return t===0?"Normal":t===1?"Low saturation":t===2?"High saturation":"Unknown"},SceneCaptureType(t){return t===0?"Standard":t===1?"Landscape":t===2?"Portrait":t===3?"Night scene":"Unknown"},Sharpness(t){return t===0?"Normal":t===1?"Soft":t===2?"Hard":"Unknown"},ShutterSpeedValue(t){const e=Math.pow(2,t[0]/t[1]);return e<=1?`${Math.round(1/e)}`:`1/${Math.round(e)}`},WhiteBalance(t){return t===0?"Auto white balance":t===1?"Manual white balance":"Unknown"},XResolution:t=>""+Math.round(t[0]/t[1]),YResolution:t=>""+Math.round(t[0]/t[1])},b_={11:"ProcessingSoftware",254:{name:"SubfileType",description:t=>({0:"Full-resolution image",1:"Reduced-resolution image",2:"Single page of multi-page image",3:"Single page of multi-page reduced-resolution image",4:"Transparency mask",5:"Transparency mask of reduced-resolution image",6:"Transparency mask of multi-page image",7:"Transparency mask of reduced-resolution multi-page image",65537:"Alternate reduced-resolution image",4294967295:"Invalid"})[t]||"Unknown"},255:{name:"OldSubfileType",description:t=>({0:"Full-resolution image",1:"Reduced-resolution image",2:"Single page of multi-page image"})[t]||"Unknown"},256:"ImageWidth",257:"ImageLength",258:"BitsPerSample",259:"Compression",262:"PhotometricInterpretation",263:{name:"Thresholding",description:t=>({1:"No dithering or halftoning",2:"Ordered dither or halfton",3:"Randomized dither"})[t]||"Unknown"},264:"CellWidth",265:"CellLength",266:{name:"FillOrder",description:t=>({1:"Normal",2:"Reversed"})[t]||"Unknown"},269:"DocumentName",270:"ImageDescription",271:"Make",272:"Model",273:"StripOffsets",274:{name:"Orientation",description:t=>t===1?"top-left":t===2?"top-right":t===3?"bottom-right":t===4?"bottom-left":t===5?"left-top":t===6?"right-top":t===7?"right-bottom":t===8?"left-bottom":"Undefined"},277:"SamplesPerPixel",278:"RowsPerStrip",279:"StripByteCounts",280:"MinSampleValue",281:"MaxSampleValue",282:{name:"XResolution",description:v.XResolution},283:{name:"YResolution",description:v.YResolution},284:"PlanarConfiguration",285:"PageName",286:{name:"XPosition",description:t=>""+Math.round(t[0]/t[1])},287:{name:"YPosition",description:t=>""+Math.round(t[0]/t[1])},290:{name:"GrayResponseUnit",description:t=>({1:"0.1",2:"0.001",3:"0.0001",4:"1e-05",5:"1e-06"})[t]||"Unknown"},296:{name:"ResolutionUnit",description:v.ResolutionUnit},297:"PageNumber",301:"TransferFunction",305:"Software",306:"DateTime",315:"Artist",316:"HostComputer",317:"Predictor",318:{name:"WhitePoint",description:t=>t.map(e=>`${e[0]}/${e[1]}`).join(", ")},319:{name:"PrimaryChromaticities",description:t=>t.map(e=>`${e[0]}/${e[1]}`).join(", ")},321:"HalftoneHints",322:"TileWidth",323:"TileLength",330:"A100DataOffset",332:{name:"InkSet",description:t=>({1:"CMYK",2:"Not CMYK"})[t]||"Unknown"},337:"TargetPrinter",338:{name:"ExtraSamples",description:t=>({0:"Unspecified",1:"Associated Alpha",2:"Unassociated Alpha"})[t]||"Unknown"},339:{name:"SampleFormat",description:t=>{const e={1:"Unsigned",2:"Signed",3:"Float",4:"Undefined",5:"Complex int",6:"Complex float"};return Array.isArray(t)?t.map(n=>e[n]||"Unknown").join(", "):"Unknown"}},513:"JPEGInterchangeFormat",514:"JPEGInterchangeFormatLength",529:{name:"YCbCrCoefficients",description:t=>t.map(e=>""+e[0]/e[1]).join("/")},530:"YCbCrSubSampling",531:{name:"YCbCrPositioning",description:t=>t===1?"centered":t===2?"co-sited":"undefined "+t},532:{name:"ReferenceBlackWhite",description:t=>t.map(e=>""+e[0]/e[1]).join(", ")},700:"ApplicationNotes",18246:"Rating",18249:"RatingPercent",33432:{name:"Copyright",description:t=>t.join("; ")},33550:"PixelScale",33723:"IPTC-NAA",33920:"IntergraphMatrix",33922:"ModelTiePoint",34118:"SEMInfo",34264:"ModelTransform",34377:"PhotoshopSettings",34665:"Exif IFD Pointer",34675:"ICC_Profile",34735:"GeoTiffDirectory",34736:"GeoTiffDoubleParams",34737:"GeoTiffAsciiParams",34853:"GPS Info IFD Pointer",40091:"XPTitle",40092:"XPComment",40093:"XPAuthor",40094:"XPKeywords",40095:"XPSubject",42112:"GDALMetadata",42113:"GDALNoData",50341:"PrintIM",50707:"DNGBackwardVersion",50708:"UniqueCameraModel",50709:"LocalizedCameraModel",50721:"ColorMatrix1",50722:"ColorMatrix2",50723:"CameraCalibration1",50724:"CameraCalibration2",50725:"ReductionMatrix1",50726:"ReductionMatrix2",50727:"AnalogBalance",50728:"AsShotNeutral",50729:"AsShotWhiteXY",50730:"BaselineExposure",50731:"BaselineNoise",50732:"BaselineSharpness",50734:"LinearResponseLimit",50735:"CameraSerialNumber",50736:"DNGLensInfo",50739:"ShadowScale",50741:{name:"MakerNoteSafety",description:t=>({0:"Unsafe",1:"Safe"})[t]||"Unknown"},50778:{name:"CalibrationIlluminant1",description:v.LightSource},50779:{name:"CalibrationIlluminant2",description:v.LightSource},50781:"RawDataUniqueID",50827:"OriginalRawFileName",50828:"OriginalRawFileData",50831:"AsShotICCProfile",50832:"AsShotPreProfileMatrix",50833:"CurrentICCProfile",50834:"CurrentPreProfileMatrix",50879:"ColorimetricReference",50885:"SRawType",50898:"PanasonicTitle",50899:"PanasonicTitle2",50931:"CameraCalibrationSig",50932:"ProfileCalibrationSig",50933:"ProfileIFD",50934:"AsShotProfileName",50936:"ProfileName",50937:"ProfileHueSatMapDims",50938:"ProfileHueSatMapData1",50939:"ProfileHueSatMapData2",50940:"ProfileToneCurve",50941:{name:"ProfileEmbedPolicy",description:t=>({0:"Allow Copying",1:"Embed if Used",2:"Never Embed",3:"No Restrictions"})[t]||"Unknown"},50942:"ProfileCopyright",50964:"ForwardMatrix1",50965:"ForwardMatrix2",50966:"PreviewApplicationName",50967:"PreviewApplicationVersion",50968:"PreviewSettingsName",50969:"PreviewSettingsDigest",50970:{name:"PreviewColorSpace",description:t=>({1:"Gray Gamma 2.2",2:"sRGB",3:"Adobe RGB",4:"ProPhoto RGB"})[t]||"Unknown"},50971:"PreviewDateTime",50972:"RawImageDigest",50973:"OriginalRawFileDigest",50981:"ProfileLookTableDims",50982:"ProfileLookTableData",51043:"TimeCodes",51044:"FrameRate",51058:"TStop",51081:"ReelName",51089:"OriginalDefaultFinalSize",51090:"OriginalBestQualitySize",51091:"OriginalDefaultCropSize",51105:"CameraLabel",51107:{name:"ProfileHueSatMapEncoding",description:t=>({0:"Linear",1:"sRGB"})[t]||"Unknown"},51108:{name:"ProfileLookTableEncoding",description:t=>({0:"Linear",1:"sRGB"})[t]||"Unknown"},51109:"BaselineExposureOffset",51110:{name:"DefaultBlackRender",description:t=>({0:"Auto",1:"None"})[t]||"Unknown"},51111:"NewRawImageDigest",51112:"RawToPreviewGain"},qC={33434:{name:"ExposureTime",description:v.ExposureTime},33437:{name:"FNumber",description:v.FNumber},34850:{name:"ExposureProgram",description:v.ExposureProgram},34852:"SpectralSensitivity",34855:"ISOSpeedRatings",34856:{name:"OECF",description:()=>"[Raw OECF table data]"},34858:"TimeZoneOffset",34859:"SelfTimerMode",34864:{name:"SensitivityType",description:t=>({1:"Standard Output Sensitivity",2:"Recommended Exposure Index",3:"ISO Speed",4:"Standard Output Sensitivity and Recommended Exposure Index",5:"Standard Output Sensitivity and ISO Speed",6:"Recommended Exposure Index and ISO Speed",7:"Standard Output Sensitivity, Recommended Exposure Index and ISO Speed"})[t]||"Unknown"},34865:"StandardOutputSensitivity",34866:"RecommendedExposureIndex",34867:"ISOSpeed",34868:"ISOSpeedLatitudeyyy",34869:"ISOSpeedLatitudezzz",36864:{name:"ExifVersion",description:t=>me(t)},36867:"DateTimeOriginal",36868:"DateTimeDigitized",36873:"GooglePlusUploadCode",36880:"OffsetTime",36881:"OffsetTimeOriginal",36882:"OffsetTimeDigitized",37121:{name:"ComponentsConfiguration",description:v.ComponentsConfiguration},37122:"CompressedBitsPerPixel",37377:{name:"ShutterSpeedValue",description:v.ShutterSpeedValue},37378:{name:"ApertureValue",description:v.ApertureValue},37379:"BrightnessValue",37380:"ExposureBiasValue",37381:{name:"MaxApertureValue",description:t=>Math.pow(Math.sqrt(2),t[0]/t[1]).toFixed(2)},37382:{name:"SubjectDistance",description:t=>t[0]/t[1]+" m"},37383:{name:"MeteringMode",description:v.MeteringMode},37384:{name:"LightSource",description:v.LightSource},37385:{name:"Flash",description:t=>t===0?"Flash did not fire":t===1?"Flash fired":t===5?"Strobe return light not detected":t===7?"Strobe return light detected":t===9?"Flash fired, compulsory flash mode":t===13?"Flash fired, compulsory flash mode, return light not detected":t===15?"Flash fired, compulsory flash mode, return light detected":t===16?"Flash did not fire, compulsory flash mode":t===24?"Flash did not fire, auto mode":t===25?"Flash fired, auto mode":t===29?"Flash fired, auto mode, return light not detected":t===31?"Flash fired, auto mode, return light detected":t===32?"No flash function":t===65?"Flash fired, red-eye reduction mode":t===69?"Flash fired, red-eye reduction mode, return light not detected":t===71?"Flash fired, red-eye reduction mode, return light detected":t===73?"Flash fired, compulsory flash mode, red-eye reduction mode":t===77?"Flash fired, compulsory flash mode, red-eye reduction mode, return light not detected":t===79?"Flash fired, compulsory flash mode, red-eye reduction mode, return light detected":t===89?"Flash fired, auto mode, red-eye reduction mode":t===93?"Flash fired, auto mode, return light not detected, red-eye reduction mode":t===95?"Flash fired, auto mode, return light detected, red-eye reduction mode":"Unknown"},37386:{name:"FocalLength",description:v.FocalLength},37393:"ImageNumber",37394:{name:"SecurityClassification",description:t=>({C:"Confidential",R:"Restricted",S:"Secret",T:"Top Secret",U:"Unclassified"})[t]||"Unknown"},37395:"ImageHistory",37396:{name:"SubjectArea",description:t=>t.length===2?`Location; X: ${t[0]}, Y: ${t[1]}`:t.length===3?`Circle; X: ${t[0]}, Y: ${t[1]}, diameter: ${t[2]}`:t.length===4?`Rectangle; X: ${t[0]}, Y: ${t[1]}, width: ${t[2]}, height: ${t[3]}`:"Unknown"},37500:{name:"MakerNote",description:()=>"[Raw maker note data]"},37510:{name:"UserComment",description:Ql},37520:"SubSecTime",37521:"SubSecTimeOriginal",37522:"SubSecTimeDigitized",37724:"ImageSourceData",37888:{name:"AmbientTemperature",description:t=>t[0]/t[1]+" °C"},37889:{name:"Humidity",description:t=>t[0]/t[1]+" %"},37890:{name:"Pressure",description:t=>t[0]/t[1]+" hPa"},37891:{name:"WaterDepth",description:t=>t[0]/t[1]+" m"},37892:{name:"Acceleration",description:t=>t[0]/t[1]+" mGal"},37893:{name:"CameraElevationAngle",description:t=>t[0]/t[1]+" °"},40960:{name:"FlashpixVersion",description:t=>t.map(e=>String.fromCharCode(e)).join("")},40961:{name:"ColorSpace",description:v.ColorSpace},40962:"PixelXDimension",40963:"PixelYDimension",40964:"RelatedSoundFile",40965:"Interoperability IFD Pointer",41483:"FlashEnergy",41484:{name:"SpatialFrequencyResponse",description:()=>"[Raw SFR table data]"},41486:"FocalPlaneXResolution",41487:"FocalPlaneYResolution",41488:{name:"FocalPlaneResolutionUnit",description:v.FocalPlaneResolutionUnit},41492:{name:"SubjectLocation",description:([t,e])=>`X: ${t}, Y: ${e}`},41493:"ExposureIndex",41495:{name:"SensingMethod",description:t=>t===1?"Undefined":t===2?"One-chip color area sensor":t===3?"Two-chip color area sensor":t===4?"Three-chip color area sensor":t===5?"Color sequential area sensor":t===7?"Trilinear sensor":t===8?"Color sequential linear sensor":"Unknown"},41728:{name:"FileSource",description:t=>t===3?"DSC":"Unknown"},41729:{name:"SceneType",description:t=>t===1?"A directly photographed image":"Unknown"},41730:{name:"CFAPattern",description:()=>"[Raw CFA pattern table data]"},41985:{name:"CustomRendered",description:v.CustomRendered},41986:{name:"ExposureMode",description:v.ExposureMode},41987:{name:"WhiteBalance",description:v.WhiteBalance},41988:{name:"DigitalZoomRatio",description:t=>t[0]===0?"Digital zoom was not used":""+t[0]/t[1]},41989:{name:"FocalLengthIn35mmFilm",description:t=>t===0?"Unknown":t},41990:{name:"SceneCaptureType",description:v.SceneCaptureType},41991:{name:"GainControl",description:t=>t===0?"None":t===1?"Low gain up":t===2?"High gain up":t===3?"Low gain down":t===4?"High gain down":"Unknown"},41992:{name:"Contrast",description:v.Contrast},41993:{name:"Saturation",description:v.Saturation},41994:{name:"Sharpness",description:v.Sharpness},41995:{name:"DeviceSettingDescription",description:()=>"[Raw device settings table data]"},41996:{name:"SubjectDistanceRange",description:t=>t===1?"Macro":t===2?"Close view":t===3?"Distant view":"Unknown"},42016:"ImageUniqueID",42032:"CameraOwnerName",42033:"BodySerialNumber",42034:{name:"LensSpecification",description:t=>{const e=`${t[0][0]/t[0][1]}-${t[1][0]/t[1][1]} mm`;return t[3][1]===0?`${e} f/?`:`${e} f/${1/(t[2][1]/t[2][1]/(t[3][0]/t[3][1]))}`}},42035:"LensMake",42036:"LensModel",42037:"LensSerialNumber",42080:{name:"CompositeImage",description:t=>({1:"Not a Composite Image",2:"General Composite Image",3:"Composite Image Captured While Shooting"})[t]||"Unknown"},42081:"SourceImageNumberOfCompositeImage",42082:"SourceExposureTimesOfCompositeImage",42240:"Gamma",59932:"Padding",59933:"OffsetSchema",65e3:"OwnerName",65001:"SerialNumber",65002:"Lens",65100:"RawFile",65101:"Converter",65102:"WhiteBalance",65105:"Exposure",65106:"Shadows",65107:"Brightness",65108:"Contrast",65109:"Saturation",65110:"Sharpness",65111:"Smoothness",65112:"MoireFilter"},RC={0:{name:"GPSVersionID",description:t=>t[0]===2&&t[1]===2&&t[2]===0&&t[3]===0?"Version 2.2":"Unknown"},1:{name:"GPSLatitudeRef",description:t=>{const e=t.join("");return e==="N"?"North latitude":e==="S"?"South latitude":"Unknown"}},2:{name:"GPSLatitude",description:Ei},3:{name:"GPSLongitudeRef",description:t=>{const e=t.join("");return e==="E"?"East longitude":e==="W"?"West longitude":"Unknown"}},4:{name:"GPSLongitude",description:Ei},5:{name:"GPSAltitudeRef",description:t=>t===0?"Sea level":t===1?"Sea level reference (negative value)":"Unknown"},6:{name:"GPSAltitude",description:t=>t[0]/t[1]+" m"},7:{name:"GPSTimeStamp",description:t=>t.map(([e,n])=>{const r=e/n;return/^\d(\.|$)/.test(`${r}`)?`0${r}`:r}).join(":")},8:"GPSSatellites",9:{name:"GPSStatus",description:t=>{const e=t.join("");return e==="A"?"Measurement in progress":e==="V"?"Measurement Interoperability":"Unknown"}},10:{name:"GPSMeasureMode",description:t=>{const e=t.join("");return e==="2"?"2-dimensional measurement":e==="3"?"3-dimensional measurement":"Unknown"}},11:"GPSDOP",12:{name:"GPSSpeedRef",description:t=>{const e=t.join("");return e==="K"?"Kilometers per hour":e==="M"?"Miles per hour":e==="N"?"Knots":"Unknown"}},13:"GPSSpeed",14:{name:"GPSTrackRef",description:t=>{const e=t.join("");return e==="T"?"True direction":e==="M"?"Magnetic direction":"Unknown"}},15:"GPSTrack",16:{name:"GPSImgDirectionRef",description:t=>{const e=t.join("");return e==="T"?"True direction":e==="M"?"Magnetic direction":"Unknown"}},17:"GPSImgDirection",18:"GPSMapDatum",19:{name:"GPSDestLatitudeRef",description:t=>{const e=t.join("");return e==="N"?"North latitude":e==="S"?"South latitude":"Unknown"}},20:{name:"GPSDestLatitude",description:t=>t[0][0]/t[0][1]+t[1][0]/t[1][1]/60+t[2][0]/t[2][1]/3600},21:{name:"GPSDestLongitudeRef",description:t=>{const e=t.join("");return e==="E"?"East longitude":e==="W"?"West longitude":"Unknown"}},22:{name:"GPSDestLongitude",description:t=>t[0][0]/t[0][1]+t[1][0]/t[1][1]/60+t[2][0]/t[2][1]/3600},23:{name:"GPSDestBearingRef",description:t=>{const e=t.join("");return e==="T"?"True direction":e==="M"?"Magnetic direction":"Unknown"}},24:"GPSDestBearing",25:{name:"GPSDestDistanceRef",description:t=>{const e=t.join("");return e==="K"?"Kilometers":e==="M"?"Miles":e==="N"?"Knots":"Unknown"}},26:"GPSDestDistance",27:{name:"GPSProcessingMethod",description:Ql},28:{name:"GPSAreaInformation",description:Ql},29:"GPSDateStamp",30:{name:"GPSDifferential",description:t=>t===0?"Measurement without differential correction":t===1?"Differential correction applied":"Unknown"},31:"GPSHPositioningError"},UC={1:"InteroperabilityIndex",2:{name:"InteroperabilityVersion",description:t=>me(t)},4096:"RelatedImageFileFormat",4097:"RelatedImageWidth",4098:"RelatedImageHeight"},jC={45056:{name:"MPFVersion",description:t=>me(t)},45057:"NumberOfImages",45058:"MPEntry",45059:"ImageUIDList",45060:"TotalFrames"},w_=j({},b_,qC),sa="0th",k_="1st",x_="exif",S_="gps",C_="interoperability",E_="mpf",en={[sa]:w_,[k_]:b_,[x_]:w_,[S_]:RC,[C_]:UC,[E_]:jC},T_={1:1,2:1,3:2,4:4,5:8,7:1,9:4,10:8,13:4},la={BYTE:1,ASCII:2,SHORT:3,LONG:4,RATIONAL:5,UNDEFINED:7,SLONG:9,SRATIONAL:10,IFD:13},$={getAsciiValue:zC,getByteAt:N_,getAsciiAt:HC,getShortAt:GC,getLongAt:$i,getRationalAt:ZC,getUndefinedAt:WC,getSlongAt:aa,getSrationalAt:YC,getIfdPointerAt:QC,typeSizes:T_,tagTypes:la,getTypeSize:KC};function zC(t){return t.map(e=>String.fromCharCode(e))}function N_(t,e){return t.getUint8(e)}function HC(t,e){return t.getUint8(e)}function GC(t,e,n){return t.getUint16(e,n===Fn.LITTLE_ENDIAN)}function $i(t,e,n){return t.getUint32(e,n===Fn.LITTLE_ENDIAN)}function ZC(t,e,n){return[$i(t,e,n),$i(t,e+4,n)]}function WC(t,e){return N_(t,e)}function aa(t,e,n){return t.getInt32(e,n===Fn.LITTLE_ENDIAN)}function YC(t,e,n){return[aa(t,e,n),aa(t,e+4,n)]}function QC(t,e,n){return $i(t,e,n)}function KC(t){if(la[t]===void 0)throw new Error("No such type found.");return T_[la[t]]}const XC={1:$.getByteAt,2:$.getAsciiAt,3:$.getShortAt,4:$.getLongAt,5:$.getRationalAt,7:$.getUndefinedAt,9:$.getSlongAt,10:$.getSrationalAt,13:$.getIfdPointerAt};function B_(t,e,n){return e+$.getLongAt(t,e+4,n)}function kr(t,e,n,r,o,s){const l=$.getTypeSize("SHORT"),a=12,c={},u=JC(t,r,o);r+=l;for(let d=0;d<u&&!(r+a>t.byteLength);d++){const f=e3(t,e,n,r,o,s);f!==void 0&&(c[f.name]={id:f.id,value:f.value,description:f.description}),r+=a}if(r<t.byteLength-$.getTypeSize("LONG")){const d=$.getLongAt(t,r,o);d!==0&&e===sa&&(c.Thumbnail=kr(t,k_,n,n+d,o,!0))}return c}function JC(t,e,n){return e+$.getTypeSize("SHORT")<=t.byteLength?$.getShortAt(t,e,n):0}function e3(t,e,n,r,o,s){const a=$.getTypeSize("SHORT"),c=a+$.getTypeSize("SHORT"),u=c+$.getTypeSize("LONG"),d=$.getShortAt(t,r,o),f=$.getShortAt(t,r+a,o),h=$.getLongAt(t,r+c,o);let _;if($.typeSizes[f]===void 0||!s&&en[e][d]===void 0)return;if(t3(f,h))_=I_(t,r+u,f,h,o);else{const g=$.getLongAt(t,r+u,o);if(n3(t,n,g,f,h)){const x=d===33723;_=I_(t,n+g,f,h,o,x)}else _="<faulty value>"}f===$.tagTypes.ASCII&&(_=r3(_),_=o3(_));let p=`undefined-${d}`,m=_;if(en[e][d]!==void 0)if(en[e][d].name!==void 0&&en[e][d].description!==void 0){p=en[e][d].name;try{m=en[e][d].description(_)}catch{m=$_(_)}}else f===$.tagTypes.RATIONAL||f===$.tagTypes.SRATIONAL?(p=en[e][d],m=""+_[0]/_[1]):(p=en[e][d],m=$_(_));return{id:d,name:p,value:_,description:m}}function t3(t,e){return $.typeSizes[t]*e<=$.getTypeSize("LONG")}function I_(t,e,n,r,o,s=!1){let l=[];s&&(r=r*$.typeSizes[n],n=$.tagTypes.BYTE);for(let a=0;a<r;a++)l.push(XC[n](t,e,o)),e+=$.typeSizes[n];return n===$.tagTypes.ASCII?l=$.getAsciiValue(l):l.length===1&&(l=l[0]),l}function n3(t,e,n,r,o){return e+n+$.typeSizes[r]*o<=t.byteLength}function r3(t){const e=[];let n=0;for(let r=0;r<t.length;r++){if(t[r]==="\0"){n++;continue}e[n]===void 0&&(e[n]=""),e[n]+=t[r]}return e}function o3(t){try{return t.map(e=>decodeURIComponent(escape(e)))}catch{return t}}function $_(t){return t instanceof Array?t.join(", "):t}const F_="Exif IFD Pointer",A_="GPS Info IFD Pointer",O_="Interoperability IFD Pointer",D_={read:i3};function i3(t,e,n){const r=Fn.getByteOrder(t,e);let o=s3(t,e,r,n);return o=l3(o,t,e,r,n),o=a3(o,t,e,r,n),o=c3(o,t,e,r,n),o}function s3(t,e,n,r){return kr(t,sa,e,B_(t,e,n),n,r)}function l3(t,e,n,r,o){return t[F_]!==void 0?j(t,kr(e,x_,n,n+t[F_].value,r,o)):t}function a3(t,e,n,r,o){return t[A_]!==void 0?j(t,kr(e,S_,n,n+t[A_].value,r,o)):t}function c3(t,e,n,r,o){return t[O_]!==void 0?j(t,kr(e,C_,n,n+t[O_].value,r,o)):t}const u3={read:d3},xr=16;function d3(t,e,n){const r=Fn.getByteOrder(t,e),o=kr(t,E_,e,B_(t,e,r),r,n);return f3(t,e,o,r)}function f3(t,e,n,r){if(!n.MPEntry)return n;const o=[];for(let s=0;s<Math.ceil(n.MPEntry.value.length/xr);s++){o[s]={};const l=fo(n.MPEntry.value,s*xr,$.getTypeSize("LONG"),r);o[s].ImageFlags=h3(l),o[s].ImageFormat=_3(l),o[s].ImageType=m3(l);const a=fo(n.MPEntry.value,s*xr+4,$.getTypeSize("LONG"),r);o[s].ImageSize={value:a,description:""+a};const c=p3(s,n.MPEntry,r,e);o[s].ImageOffset={value:c,description:""+c};const u=fo(n.MPEntry.value,s*xr+12,$.getTypeSize("SHORT"),r);o[s].DependentImage1EntryNumber={value:u,description:""+u};const d=fo(n.MPEntry.value,s*xr+14,$.getTypeSize("SHORT"),r);o[s].DependentImage2EntryNumber={value:d,description:""+d},o[s].image=t.buffer.slice(c,c+a),qh(o[s],"base64",function(){return Rh(this.image)})}return n.Images=o,n}function fo(t,e,n,r){if(r===Fn.LITTLE_ENDIAN){let s=0;for(let l=0;l<n;l++)s+=t[e+l]<<8*l;return s}let o=0;for(let s=0;s<n;s++)o+=t[e+s]<<8*(n-1-s);return o}function h3(t){const e=[t>>31&1,t>>30&1,t>>29&1],n=[];return e[0]&&n.push("Dependent Parent Image"),e[1]&&n.push("Dependent Child Image"),e[2]&&n.push("Representative Image"),{value:e,description:n.join(", ")||"None"}}function _3(t){const e=t>>24&7;return{value:e,description:e===0?"JPEG":"Unknown"}}function m3(t){const e=t&16777215;return{value:e,description:{196608:"Baseline MP Primary Image",65537:"Large Thumbnail (VGA equivalent)",65538:"Large Thumbnail (Full HD equivalent)",131073:"Multi-Frame Image (Panorama)",131074:"Multi-Frame Image (Disparity)",131075:"Multi-Frame Image (Multi-Angle)",0:"Undefined"}[e]||"Unknown"}}function p3(t,e,n,r){return g3(t)?0:fo(e.value,t*xr+8,$.getTypeSize("LONG"),n)+r}function g3(t){return t===0}const y3={read:b3};function b3(t,e){const n=w3(t,e),r=C3(t,e,n);return{"Bits Per Sample":k3(t,e,n),"Image Height":x3(t,e,n),"Image Width":S3(t,e,n),"Color Components":r,Subsampling:r&&E3(t,e,r.value,n)}}function w3(t,e){return $.getShortAt(t,e)}function k3(t,e,n){if(3>n)return;const s=$.getByteAt(t,e+2);return{value:s,description:""+s}}function x3(t,e,n){if(5>n)return;const s=$.getShortAt(t,e+3);return{value:s,description:`${s}px`}}function S3(t,e,n){if(7>n)return;const s=$.getShortAt(t,e+5);return{value:s,description:`${s}px`}}function C3(t,e,n){if(8>n)return;const s=$.getByteAt(t,e+7);return{value:s,description:""+s}}function E3(t,e,n,r){if(8+3*n>r)return;const l=[];for(let a=0;a<n;a++){const c=e+8+a*3;l.push([$.getByteAt(t,c),$.getByteAt(t,c+1),$.getByteAt(t,c+2)])}return{value:l,description:l.length>1?T3(l)+N3(l):""}}function T3(t){const e={1:"Y",2:"Cb",3:"Cr",4:"I",5:"Q"};return t.map(n=>e[n[0]]).join("")}function N3(t){const e={17:"4:4:4 (1 1)",18:"4:4:0 (1 2)",20:"4:4:1 (1 4)",33:"4:2:2 (2 1)",34:"4:2:0 (2 2)",36:"4:2:1 (2 4)",65:"4:1:1 (4 1)",66:"4:1:0 (4 2)"};return t.length===0||t[0][1]===void 0||e[t[0][1]]===void 0?"":e[t[0][1]]}const B3={read:I3};function I3(t,e){const n=$3(t,e),r=M3(t,e,n),o=L3(t,e,n),s={"JFIF Version":F3(t,e,n),"Resolution Unit":A3(t,e,n),XResolution:D3(t,e,n),YResolution:P3(t,e,n),"JFIF Thumbnail Width":r,"JFIF Thumbnail Height":o};if(r!==void 0&&o!==void 0){const l=v3(t,e,3*r.value*o.value,n);l&&(s["JFIF Thumbnail"]=l)}for(const l in s)s[l]===void 0&&delete s[l];return s}function $3(t,e){return $.getShortAt(t,e)}function F3(t,e,n){if(9>n)return;const s=$.getByteAt(t,e+7),l=$.getByteAt(t,e+7+1);return{value:s*256+l,description:s+"."+l}}function A3(t,e,n){if(10>n)return;const s=$.getByteAt(t,e+9);return{value:s,description:O3(s)}}function O3(t){return t===0?"None":t===1?"inches":t===2?"cm":"Unknown"}function D3(t,e,n){if(12>n)return;const s=$.getShortAt(t,e+10);return{value:s,description:""+s}}function P3(t,e,n){if(14>n)return;const s=$.getShortAt(t,e+12);return{value:s,description:""+s}}function M3(t,e,n){if(15>n)return;const s=$.getByteAt(t,e+14);return{value:s,description:`${s}px`}}function L3(t,e,n){if(16>n)return;const s=$.getByteAt(t,e+15);return{value:s,description:`${s}px`}}function v3(t,e,n,r){return n===0||16+n>r?void 0:{value:t.buffer.slice(e+16,e+16+n),description:"<24-bit RGB pixel data>"}}const tn={iptc:{256:{name:"Model Version",description:t=>((t[0]<<8)+t[1]).toString()},261:{name:"Destination",repeatable:!0},276:{name:"File Format",description:t=>((t[0]<<8)+t[1]).toString()},278:{name:"File Format Version",description:t=>((t[0]<<8)+t[1]).toString()},286:"Service Identifier",296:"Envelope Number",306:"Product ID",316:"Envelope Priority",326:{name:"Date Sent",description:ca},336:{name:"Time Sent",description:ua},346:{name:"Coded Character Set",description:P_,encoding_name:P_},356:"UNO",376:{name:"ARM Identifier",description:t=>((t[0]<<8)+t[1]).toString()},378:{name:"ARM Version",description:t=>((t[0]<<8)+t[1]).toString()},512:{name:"Record Version",description:t=>((t[0]<<8)+t[1]).toString()},515:"Object Type Reference",516:"Object Attribute Reference",517:"Object Name",519:"Edit Status",520:{name:"Editorial Update",description:t=>me(t)==="01"?"Additional Language":"Unknown"},522:"Urgency",524:{name:"Subject Reference",repeatable:!0,description:t=>{const e=me(t).split(":");return e[2]+(e[3]?"/"+e[3]:"")+(e[4]?"/"+e[4]:"")}},527:"Category",532:{name:"Supplemental Category",repeatable:!0},534:"Fixture Identifier",537:{name:"Keywords",repeatable:!0},538:{name:"Content Location Code",repeatable:!0},539:{name:"Content Location Name",repeatable:!0},542:"Release Date",547:"Release Time",549:"Expiration Date",550:"Expiration Time",552:"Special Instructions",554:{name:"Action Advised",description:t=>{const e=me(t);return e==="01"?"Object Kill":e==="02"?"Object Replace":e==="03"?"Object Append":e==="04"?"Object Reference":"Unknown"}},557:{name:"Reference Service",repeatable:!0},559:{name:"Reference Date",repeatable:!0},562:{name:"Reference Number",repeatable:!0},567:{name:"Date Created",description:ca},572:{name:"Time Created",description:ua},574:{name:"Digital Creation Date",description:ca},575:{name:"Digital Creation Time",description:ua},577:"Originating Program",582:"Program Version",587:{name:"Object Cycle",description:t=>{const e=me(t);return e==="a"?"morning":e==="p"?"evening":e==="b"?"both":"Unknown"}},592:{name:"By-line",repeatable:!0},597:{name:"By-line Title",repeatable:!0},602:"City",604:"Sub-location",607:"Province/State",612:"Country/Primary Location Code",613:"Country/Primary Location Name",615:"Original Transmission Reference",617:"Headline",622:"Credit",627:"Source",628:"Copyright Notice",630:{name:"Contact",repeatable:!0},632:"Caption/Abstract",634:{name:"Writer/Editor",repeatable:!0},637:{name:"Rasterized Caption",description:t=>t},642:"Image Type",643:{name:"Image Orientation",description:t=>{const e=me(t);return e==="P"?"Portrait":e==="L"?"Landscape":e==="S"?"Square":"Unknown"}},647:"Language Identifier",662:{name:"Audio Type",description:t=>{const e=me(t),n=e.charAt(0),r=e.charAt(1);let o="";return n==="1"?o+="Mono":n==="2"&&(o+="Stereo"),r==="A"?o+=", actuality":r==="C"?o+=", question and answer session":r==="M"?o+=", music, transmitted by itself":r==="Q"?o+=", response to a question":r==="R"?o+=", raw sound":r==="S"?o+=", scener":r==="V"?o+=", voicer":r==="W"&&(o+=", wrap"),o!==""?o:e}},663:{name:"Audio Sampling Rate",description:t=>parseInt(me(t),10)+" Hz"},664:{name:"Audio Sampling Resolution",description:t=>{const e=parseInt(me(t),10);return e+(e===1?" bit":" bits")}},665:{name:"Audio Duration",description:t=>{const e=me(t);return e.length>=6?e.substr(0,2)+":"+e.substr(2,2)+":"+e.substr(4,2):e}},666:"Audio Outcue",698:"Short Document ID",699:"Unique Document ID",700:"Owner ID",712:{name:t=>t.length===2?"ObjectData Preview File Format":"Record 2 destination",description:t=>{if(t.length===2){const e=(t[0]<<8)+t[1];return e===0?"No ObjectData":e===1?"IPTC-NAA Digital Newsphoto Parameter Record":e===2?"IPTC7901 Recommended Message Format":e===3?"Tagged Image File Format (Adobe/Aldus Image data)":e===4?"Illustrator (Adobe Graphics data)":e===5?"AppleSingle (Apple Computer Inc)":e===6?"NAA 89-3 (ANPA 1312)":e===7?"MacBinary II":e===8?"IPTC Unstructured Character Oriented File Format (UCOFF)":e===9?"United Press International ANPA 1312 variant":e===10?"United Press International Down-Load Message":e===11?"JPEG File Interchange (JFIF)":e===12?"Photo-CD Image-Pac (Eastman Kodak)":e===13?"Microsoft Bit Mapped Graphics File [*.BMP]":e===14?"Digital Audio File [*.WAV] (Microsoft & Creative Labs)":e===15?"Audio plus Moving Video [*.AVI] (Microsoft)":e===16?"PC DOS/Windows Executable Files [*.COM][*.EXE]":e===17?"Compressed Binary File [*.ZIP] (PKWare Inc)":e===18?"Audio Interchange File Format AIFF (Apple Computer Inc)":e===19?"RIFF Wave (Microsoft Corporation)":e===20?"Freehand (Macromedia/Aldus)":e===21?'Hypertext Markup Language "HTML" (The Internet Society)':e===22?"MPEG 2 Audio Layer 2 (Musicom), ISO/IEC":e===23?"MPEG 2 Audio Layer 3, ISO/IEC":e===24?"Portable Document File (*.PDF) Adobe":e===25?"News Industry Text Format (NITF)":e===26?"Tape Archive (*.TAR)":e===27?"Tidningarnas Telegrambyrå NITF version (TTNITF DTD)":e===28?"Ritzaus Bureau NITF version (RBNITF DTD)":e===29?"Corel Draw [*.CDR]":`Unknown format ${e}`}return me(t)}},713:{name:"ObjectData Preview File Format Version",description:(t,e)=>{const n={"00":{"00":"1"},"01":{"01":"1","02":"2","03":"3","04":"4"},"02":{"04":"4"},"03":{"01":"5.0","02":"6.0"},"04":{"01":"1.40"},"05":{"01":"2"},"06":{"01":"1"},11:{"01":"1.02"},20:{"01":"3.1","02":"4.0","03":"5.0","04":"5.5"},21:{"02":"2.0"}},r=me(t);if(e["ObjectData Preview File Format"]){const o=me(e["ObjectData Preview File Format"].value);if(n[o]&&n[o][r])return n[o][r]}return r}},714:"ObjectData Preview Data",1802:{name:"Size Mode",description:t=>t[0].toString()},1812:{name:"Max Subfile Size",description:t=>{let e=0;for(let n=0;n<t.length;n++)e=(e<<8)+t[n];return e.toString()}},1882:{name:"ObjectData Size Announced",description:t=>{let e=0;for(let n=0;n<t.length;n++)e=(e<<8)+t[n];return e.toString()}},1887:{name:"Maximum ObjectData Size",description:t=>{let e=0;for(let n=0;n<t.length;n++)e=(e<<8)+t[n];return e.toString()}}}};function ca(t){const e=me(t);return e.length>=8?e.substr(0,4)+"-"+e.substr(4,2)+"-"+e.substr(6,2):e}function ua(t){const e=me(t);let n=e;return e.length>=6&&(n=e.substr(0,2)+":"+e.substr(2,2)+":"+e.substr(4,2),e.length===11&&(n+=e.substr(6,1)+e.substr(7,2)+":"+e.substr(9,2))),n}function P_(t){const e=me(t);return e==="\x1B%G"?"UTF-8":e==="\x1B%5"?"Windows-1252":e==="\x1B%/G"?"UTF-8 Level 1":e==="\x1B%/H"?"UTF-8 Level 2":e==="\x1B%/I"?"UTF-8 Level 3":e==="\x1B/A"?"ISO-8859-1":e==="\x1B/B"?"ISO-8859-2":e==="\x1B/C"?"ISO-8859-3":e==="\x1B/D"?"ISO-8859-4":e==="\x1B/@"?"ISO-8859-5":e==="\x1B/G"?"ISO-8859-6":e==="\x1B/F"?"ISO-8859-7":e==="\x1B/H"?"ISO-8859-8":"Unknown"}const V3={get:q3};function q3(){if(typeof TextDecoder<"u")return TextDecoder}const M_={decode:R3,TAG_HEADER_SIZE:5};function R3(t,e){const n=V3.get();if(typeof n<"u"&&t!==void 0)try{return new n(t).decode(e instanceof DataView?e.buffer:Uint8Array.from(e))}catch{}const r=e.map(o=>String.fromCharCode(o)).join("");return U3(r)}function U3(t){try{return decodeURIComponent(escape(t))}catch{return t}}const j3=943868237,L_=4,da=L_+8,z3=1028,v_=5,fa={read:H3};function H3(t,e,n){try{if(Array.isArray(t))return V_(new DataView(Uint8Array.from(t).buffer),{size:t.length},0,n);const{naaBlock:r,dataOffset:o}=G3(t,e);return V_(t,r,o,n)}catch{return{}}}function G3(t,e){for(;e+da<=t.byteLength;){const n=Z3(t,e);if(W3(n))return{naaBlock:n,dataOffset:e+da};e+=da+n.size+Y3(n)}throw new Error("No IPTC NAA resource block.")}function Z3(t,e){if(t.getUint32(e,!1)!==j3)throw new Error("Not an IPTC resource block.");return{type:t.getUint16(e+L_),size:t.getUint16(e+10)}}function W3(t){return t.type===z3}function Y3(t){return t.size%2!==0?1:0}function V_(t,e,n,r){const o={};let s;const l=n+e.size;for(;n<l&&n<t.byteLength;){const{tag:a,tagSize:c}=Q3(t,n,o,s,r);if(a===null)break;a&&("encoding"in a&&(s=a.encoding),o[a.name]===void 0||a.repeatable===void 0?o[a.name]={id:a.id,value:a.value,description:a.description}:(o[a.name]instanceof Array||(o[a.name]=[{id:o[a.name].id,value:o[a.name].value,description:o[a.name].description}]),o[a.name].push({id:a.id,value:a.value,description:a.description}))),n+=v_+c}return o}function Q3(t,e,n,r,o){if(K3(t,e))return{tag:null,tagSize:0};const a=t.getUint16(e+1),c=t.getUint16(e+3);if(!o&&!tn.iptc[a])return{tag:void 0,tagSize:c};const u=X3(t,e+v_,c),d={id:a,name:J3(tn.iptc[a],a,u),value:u,description:nE(tn.iptc[a],u,n,r)};return iE(a)&&(d.repeatable=!0),sE(a)&&(d.encoding=tn.iptc[a].encoding_name(u)),{tag:d,tagSize:c}}function K3(t,e){return t.getUint8(e)!==28}function X3(t,e,n){const r=[];for(let o=0;o<n;o++)r.push(t.getUint8(e+o));return r}function J3(t,e,n){return t?eE(t)?t:tE(t)?t.name(n):t.name:`undefined-${e}`}function eE(t){return typeof t=="string"}function tE(t){return typeof t.name=="function"}function nE(t,e,n,r){if(oE(t))try{return t.description(e,n)}catch{}return rE(t,e)?M_.decode(r,e):e}function rE(t,e){return t&&e instanceof Array}function oE(t){return t&&t.description!==void 0}function iE(t){return tn.iptc[t]&&tn.iptc[t].repeatable}function sE(t){return tn.iptc[t]&&tn.iptc[t].encoding_name!==void 0}const Fi={"tiff:Orientation"(t){return t==="1"?"Horizontal (normal)":t==="2"?"Mirror horizontal":t==="3"?"Rotate 180":t==="4"?"Mirror vertical":t==="5"?"Mirror horizontal and rotate 270 CW":t==="6"?"Rotate 90 CW":t==="7"?"Mirror horizontal and rotate 90 CW":t==="8"?"Rotate 270 CW":t},"tiff:ResolutionUnit":t=>v.ResolutionUnit(parseInt(t,10)),"tiff:XResolution":t=>Sr(v.XResolution,t),"tiff:YResolution":t=>Sr(v.YResolution,t),"exif:ApertureValue":t=>Sr(v.ApertureValue,t),"exif:GPSLatitude":R_,"exif:GPSLongitude":R_,"exif:FNumber":t=>Sr(v.FNumber,t),"exif:FocalLength":t=>Sr(v.FocalLength,t),"exif:FocalPlaneResolutionUnit":t=>v.FocalPlaneResolutionUnit(parseInt(t,10)),"exif:ColorSpace":t=>v.ColorSpace(lE(t)),"exif:ComponentsConfiguration"(t,e){if(/^\d, \d, \d, \d$/.test(e)){const n=e.split(", ").map(r=>r.charCodeAt(0));return v.ComponentsConfiguration(n)}return e},"exif:Contrast":t=>v.Contrast(parseInt(t,10)),"exif:CustomRendered":t=>v.CustomRendered(parseInt(t,10)),"exif:ExposureMode":t=>v.ExposureMode(parseInt(t,10)),"exif:ExposureProgram":t=>v.ExposureProgram(parseInt(t,10)),"exif:ExposureTime"(t){return q_(t)?v.ExposureTime(t.split("/").map(e=>parseInt(e,10))):t},"exif:MeteringMode":t=>v.MeteringMode(parseInt(t,10)),"exif:Saturation":t=>v.Saturation(parseInt(t,10)),"exif:SceneCaptureType":t=>v.SceneCaptureType(parseInt(t,10)),"exif:Sharpness":t=>v.Sharpness(parseInt(t,10)),"exif:ShutterSpeedValue":t=>Sr(v.ShutterSpeedValue,t),"exif:WhiteBalance":t=>v.WhiteBalance(parseInt(t,10))};function Sr(t,e){return q_(e)?t(e.split("/")):e}function lE(t){return t.substring(0,2)==="0x"?parseInt(t.substring(2),16):parseInt(t,10)}function q_(t){return/^-?\d+\/-?\d+$/.test(t)}function R_(t){const[e,n]=t.split(",");if(e!==void 0&&n!==void 0){const r=parseFloat(e),o=parseFloat(n),s=n.charAt(n.length-1);if(!Number.isNaN(r)&&!Number.isNaN(o))return""+(r+o/60)+s}return t}const aE={get:cE};function cE(){if(typeof DOMParser<"u")return new DOMParser;try{return new(__non_webpack_require__("@xmldom/xmldom")).DOMParser({errorHandler:{error:()=>{throw new Error("Faulty XML")}}})}catch{return}}const U_={read:uE};function uE(t,e){const n={};if(typeof t=="string")return Ai(n,t),n;const[r,o]=dE(t,e),s=Ai(n,r);if(o){const l=Ai(n,o);!s&&!l&&(delete n._raw,Ai(n,ha(t,e)))}return n}function dE(t,e){if(e.length===0)return[];const n=[ha(t,e.slice(0,1))];return e.length>1&&n.push(ha(t,e.slice(1))),n}function ha(t,e){const n=e.reduce((s,l)=>s+l.length,0),r=new Uint8Array(n);let o=0;for(let s=0;s<e.length;s++){const l=e[s],a=t.buffer.slice(l.dataOffset,l.dataOffset+l.length);r.set(new Uint8Array(a),o),o+=l.length}return new DataView(r.buffer)}function Ai(t,e){try{const{doc:n,raw:r}=fE(e);t._raw=(t._raw||"")+r;const o=j_(n);return j(t,H_(z_(o,!0))),!0}catch{return!1}}function fE(t){const e=aE.get();if(!e)throw console.warn("Warning: DOMParser is not available. It is needed to be able to parse XMP tags."),new Error;const n=typeof t=="string"?t:V(t,0,t.byteLength),r=e.parseFromString(hE(n),"application/xml");if(r.documentElement.nodeName==="parsererror")throw new Error(r.documentElement.textContent);return{doc:r,raw:n}}function hE(t){return t.replace(/^.+(<\?xpacket begin)/,"$1").replace(/(<\?xpacket end=".*"\?>).+$/,"$1")}function j_(t){for(let e=0;e<t.childNodes.length;e++){if(t.childNodes[e].tagName==="x:xmpmeta")return j_(t.childNodes[e]);if(t.childNodes[e].tagName==="rdf:RDF")return t.childNodes[e]}throw new Error}function z_(t,e=!1){const n=_E(t);return mE(n)?e?{}:pE(n[0]):gE(n)}function _E(t){const e=[];for(let n=0;n<t.childNodes.length;n++)e.push(t.childNodes[n]);return e}function mE(t){return t.length===1&&t[0].nodeName==="#text"}function pE(t){return t.nodeValue}function gE(t){const e={};return t.forEach(n=>{if(yE(n)){const r=bE(n);e[n.nodeName]!==void 0?(Array.isArray(e[n.nodeName])||(e[n.nodeName]=[e[n.nodeName]]),e[n.nodeName].push(r)):e[n.nodeName]=r}}),e}function yE(t){return t.nodeName&&t.nodeName!=="#text"}function bE(t){return{attributes:wE(t),value:z_(t)}}function wE(t){const e={};for(let n=0;n<t.attributes.length;n++)e[t.attributes[n].nodeName]=decodeURIComponent(escape(t.attributes[n].value));return e}function H_(t){const e={};if(typeof t=="string")return t;for(const n in t){let r=t[n];Array.isArray(r)||(r=[r]),r.forEach(o=>{j(e,_a(o.attributes)),typeof o.value=="object"&&j(e,G_(o.value))})}return e}function _a(t){const e={};for(const n in t)try{kE(n)&&(e[Di(n)]={value:t[n],attributes:{},description:Ot(t[n],n)})}catch{}return e}function kE(t){return t!=="rdf:parseType"&&!Oi(t)}function Oi(t){return t.split(":")[0]==="xmlns"}function Di(t){return/^MicrosoftPhoto(_\d+_)?:Rating$/i.test(t)?"RatingPercent":t.split(":")[1]}function Ot(t,e=void 0){if(Array.isArray(t)){const n=xE(t);return e&&typeof Fi[e]=="function"?Fi[e](t,n):n}if(typeof t=="object")return SE(t);try{return e&&typeof Fi[e]=="function"?Fi[e](t):decodeURIComponent(escape(t))}catch{return t}}function xE(t){return t.map(e=>e.value!==void 0?Ot(e.value):Ot(e)).join(", ")}function SE(t){const e=[];for(const n in t)e.push(`${CE(n)}: ${Ot(t[n].value)}`);return e.join("; ")}function CE(t){return t==="CiAdrCity"?"CreatorCity":t==="CiAdrCtry"?"CreatorCountry":t==="CiAdrExtadr"?"CreatorAddress":t==="CiAdrPcode"?"CreatorPostalCode":t==="CiAdrRegion"?"CreatorRegion":t==="CiEmailWork"?"CreatorWorkEmail":t==="CiTelWork"?"CreatorWorkPhone":t==="CiUrlWork"?"CreatorWorkUrl":t}function G_(t){const e={};for(const n in t)try{Oi(n)||(e[Di(n)]=EE(t[n],n))}catch{}return e}function EE(t,e){return NE(t)?BE(t,e):TE(t)?{value:"",attributes:{},description:""}:Z_(t)?W_(t,e):Y_(t)?Q_(t,e):K_(t)?X_(t,e):FE(t)?AE(t,e):ma(t,e)}function TE(t){return t.attributes["rdf:parseType"]==="Resource"&&typeof t.value=="string"&&t.value.trim()===""}function NE(t){return Array.isArray(t)}function BE(t,e){return ma(t[t.length-1],e)}function Z_(t){return t.attributes["rdf:parseType"]==="Resource"&&t.value["rdf:value"]!==void 0||t.value["rdf:Description"]!==void 0&&t.value["rdf:Description"].value["rdf:value"]!==void 0}function W_(t,e){const n=ho(t);t.value["rdf:Description"]!==void 0&&(t=t.value["rdf:Description"]),j(n,ho(t),IE(t));const r=$E(t);return{value:r,attributes:n,description:Ot(r,e)}}function ho(t){const e={};for(const n in t.attributes)n!=="rdf:parseType"&&n!=="rdf:resource"&&!Oi(n)&&(e[Di(n)]=t.attributes[n]);return e}function IE(t){const e={};for(const n in t.value)n!=="rdf:value"&&!Oi(n)&&(e[Di(n)]=t.value[n].value);return e}function $E(t){return e1(t.value["rdf:value"])||t.value["rdf:value"].value}function Y_(t){return t.attributes["rdf:parseType"]==="Resource"||t.value["rdf:Description"]!==void 0&&t.value["rdf:Description"].value["rdf:value"]===void 0}function Q_(t,e){const n={value:{},attributes:{}};return t.value["rdf:Description"]!==void 0&&(j(n.value,_a(t.value["rdf:Description"].attributes)),j(n.attributes,ho(t)),t=t.value["rdf:Description"]),j(n.value,G_(t.value)),n.description=Ot(n.value,e),n}function K_(t){return Object.keys(t.value).length===0&&t.attributes["xml:lang"]===void 0&&t.attributes["rdf:resource"]===void 0}function X_(t,e){const n=_a(t.attributes);return{value:n,attributes:{},description:Ot(n,e)}}function FE(t){return J_(t.value)!==void 0}function J_(t){return t["rdf:Bag"]||t["rdf:Seq"]||t["rdf:Alt"]}function AE(t,e){let n=J_(t.value).value["rdf:li"];const r=ho(t),o=[];return n===void 0?n=[]:Array.isArray(n)||(n=[n]),n.forEach(s=>{o.push(OE(s))}),{value:o,attributes:r,description:Ot(o,e)}}function OE(t){return Z_(t)?W_(t):Y_(t)?Q_(t).value:K_(t)?X_(t).value:ma(t)}function ma(t,e){const n=e1(t)||H_(t.value);return{value:n,attributes:ho(t),description:Ot(n,e)}}function e1(t){return t.attributes&&t.attributes["rdf:resource"]}const Dt={CLOSED_SUBPATH_LENGTH:0,CLOSED_SUBPATH_BEZIER_LINKED:1,CLOSED_SUBPATH_BEZIER_UNLINKED:2,OPEN_SUBPATH_LENGTH:3,OPEN_SUBPATH_BEZIER_LINKED:4,OPEN_SUBPATH_BEZIER_UNLINKED:5,FILL_RULE:6,CLIPBOARD:7,INITIAL_FILL_RULE:8},t1=24,pa={2e3:{name:"PathInformation",description:DE},2999:{name:"ClippingPathName",description(t){const[,e]=Vh(t,0);return e}}};function DE(t){const n={},r=[];for(let o=0;o<t.byteLength;o+=2+t1){const s=$.getShortAt(t,o);ga[s]&&(n[s]||(n[s]=ga[s].description),r.push({type:s,path:ga[s].path(t,o+2)}))}return JSON.stringify({types:n,paths:r})}const ga={[Dt.CLOSED_SUBPATH_LENGTH]:{description:"Closed subpath length",path:(t,e)=>[$.getShortAt(t,e)]},[Dt.CLOSED_SUBPATH_BEZIER_LINKED]:{description:"Closed subpath Bezier knot, linked",path:Pi},[Dt.CLOSED_SUBPATH_BEZIER_UNLINKED]:{description:"Closed subpath Bezier knot, unlinked",path:Pi},[Dt.OPEN_SUBPATH_LENGTH]:{description:"Open subpath length",path:(t,e)=>[$.getShortAt(t,e)]},[Dt.OPEN_SUBPATH_BEZIER_LINKED]:{description:"Open subpath Bezier knot, linked",path:Pi},[Dt.OPEN_SUBPATH_BEZIER_UNLINKED]:{description:"Open subpath Bezier knot, unlinked",path:Pi},[Dt.FILL_RULE]:{description:"Path fill rule",path:()=>[]},[Dt.INITIAL_FILL_RULE]:{description:"Initial fill rule",path:(t,e)=>[$.getShortAt(t,e)]},[Dt.CLIPBOARD]:{description:"Clipboard",path:ME}};function Pi(t,e){const r=[];for(let o=0;o<t1;o+=8)r.push(PE(t,e+o));return r}function PE(t,e){const n=Dn(t,e,8);return[Dn(t,e+4,8),n]}function ME(t,e){return[[Dn(t,e,8),Dn(t,e+4,8),Dn(t,e+8,8),Dn(t,e+12,8)],Dn(t,e+16,8)]}function Dn(t,e,n){const r=$.getLongAt(t,e),o=r>>>31?-1:1,s=(r&2130706432)>>>32-n,l=r&parseInt(Uh("1",32-n),2);return o*Qx(s.toString(2)+"."+Yx(l.toString(2),32-n,"0"),2)}const LE={read:qE},n1="8BIM",vE=2,VE=4,r1=n1.length;function qE(t,e){const n=vh(new Uint8Array(t).buffer),r={};let o=0;for(;o<t.length;){const s=V(n,o,r1);o+=r1;const l=$.getShortAt(n,o);o+=vE;const{tagName:a,tagNameSize:c}=RE(n,o);o+=c;const u=$.getLongAt(n,o);if(o+=VE,s===n1){const d=vh(n.buffer,o,u),f={id:l,value:V(d,0,u)};if(pa[l]){try{f.description=pa[l].description(d)}catch{f.description="<no description formatter>"}r[a||pa[l].name]=f}else e&&(r[`undefined-${l}`]=f)}o+=u+u%2}return r}function RE(t,e){const[n,r]=Vh(t,e);return{tagName:r,tagNameSize:1+n+(n%2===0?1:0)}}const o1={desc:{name:"ICC Description"},cprt:{name:"ICC Copyright"},dmdd:{name:"ICC Device Model Description"},vued:{name:"ICC Viewing Conditions Description"},dmnd:{name:"ICC Device Manufacturer for Display"},tech:{name:"Technology"}},i1={4:{name:"Preferred CMM type",value:(t,e)=>V(t,e,4),description:t=>t!==null?ya(t):""},8:{name:"Profile Version",value:(t,e)=>t.getUint8(e).toString(10)+"."+(t.getUint8(e+1)>>4).toString(10)+"."+(t.getUint8(e+1)%16).toString(10)},12:{name:"Profile/Device class",value:(t,e)=>V(t,e,4),description:t=>{switch(t.toLowerCase()){case"scnr":return"Input Device profile";case"mntr":return"Display Device profile";case"prtr":return"Output Device profile";case"link":return"DeviceLink profile";case"abst":return"Abstract profile";case"spac":return"ColorSpace profile";case"nmcl":return"NamedColor profile";case"cenc":return"ColorEncodingSpace profile";case"mid ":return"MultiplexIdentification profile";case"mlnk":return"MultiplexLink profile";case"mvis":return"MultiplexVisualization profile";default:return t}}},16:{name:"Color Space",value:(t,e)=>V(t,e,4)},20:{name:"Connection Space",value:(t,e)=>V(t,e,4)},24:{name:"ICC Profile Date",value:(t,e)=>UE(t,e).toISOString()},36:{name:"ICC Signature",value:(t,e)=>jE(t.buffer.slice(e,e+4))},40:{name:"Primary Platform",value:(t,e)=>V(t,e,4),description:t=>ya(t)},48:{name:"Device Manufacturer",value:(t,e)=>V(t,e,4),description:t=>ya(t)},52:{name:"Device Model Number",value:(t,e)=>V(t,e,4)},64:{name:"Rendering Intent",value:(t,e)=>t.getUint32(e),description:t=>{switch(t){case 0:return"Perceptual";case 1:return"Relative Colorimetric";case 2:return"Saturation";case 3:return"Absolute Colorimetric";default:return t}}},80:{name:"Profile Creator",value:(t,e)=>V(t,e,4)}};function UE(t,e){const n=t.getUint16(e),r=t.getUint16(e+2)-1,o=t.getUint16(e+4),s=t.getUint16(e+6),l=t.getUint16(e+8),a=t.getUint16(e+10);return new Date(Date.UTC(n,r,o,s,l,a))}function jE(t){return String.fromCharCode.apply(null,new Uint8Array(t))}function ya(t){switch(t.toLowerCase()){case"appl":return"Apple";case"adbe":return"Adobe";case"msft":return"Microsoft";case"sunw":return"Sun Microsystems";case"sgi":return"Silicon Graphics";case"tgnt":return"Taligent";default:return t}}const s1={read:XE},zE=84,HE=128,GE="acsp",ZE="desc",WE="mluc",YE="text",QE="sig ",KE=12;function XE(t,e,n){return n&&e[0].compressionMethod!==Ci?JE(t,e):tT(t,e)}function JE(t,e){if(!eT(e[0].compressionMethod))return{};const n=new DataView(t.buffer.slice(e[0].offset,e[0].offset+e[0].length));return zh(n,e[0].compressionMethod,"dataview").then(l1).catch(()=>({}))}function eT(t){return t===jh}function tT(t,e){try{const n=e.reduce((l,a)=>l+a.length,0),r=new Uint8Array(n);let o=0;const s=nT(t);for(let l=1;l<=e.length;l++){const a=e.find(d=>d.chunkNumber===l);if(!a)throw new Error(`ICC chunk ${l} not found`);const c=s.slice(a.offset,a.offset+a.length),u=new Uint8Array(c);r.set(u,o),o+=u.length}return l1(new DataView(r.buffer))}catch{return{}}}function nT(t){return Array.isArray(t)?new DataView(Uint8Array.from(t).buffer).buffer:t.buffer}function rT(t){return t.length<HE+4}function oT(t,e){return t.length<e+KE}function l1(t){const e=t.buffer,n=t.getUint32();if(t.byteLength!==n)throw new Error("ICC profile length not matching");if(t.length<zE)throw new Error("ICC profile too short");const r={},o=Object.keys(i1);for(let c=0;c<o.length;c++){const u=o[c],d=i1[u],f=d.value(t,parseInt(u,10));let h=f;d.description&&(h=d.description(f)),r[d.name]={value:f,description:h}}if(Mi(e.slice(36,40))!==GE)throw new Error("ICC profile: missing signature");if(rT(e))return r;const l=t.getUint32(128);let a=132;for(let c=0;c<l;c++){if(oT(e,a))return r;const u=V(t,a,4),d=t.getUint32(a+4),f=t.getUint32(a+8);if(d>e.length)return r;const h=V(t,d,4);if(h===ZE){const _=t.getUint32(d+8);if(_>f)return r;const p=Mi(e.slice(d+12,d+_+11));_o(r,u,p)}else if(h===WE){const _=t.getUint32(d+8),p=t.getUint32(d+12);let m=d+16;const g=[];for(let x=0;x<_;x++){const y=V(t,m+0,2),w=V(t,m+2,2),C=t.getUint32(m+4),T=t.getUint32(m+8),b=Zx(t,d+T,C);g.push({languageCode:y,countryCode:w,text:b}),m+=p}if(_===1)_o(r,u,g[0].text);else{const x={};for(let y=0;y<g.length;y++)x[`${g[y].languageCode}-${g[y].countryCode}`]=g[y].text;_o(r,u,x)}}else if(h===YE){const _=Mi(e.slice(d+8,d+f-7));_o(r,u,_)}else if(h===QE){const _=Mi(e.slice(d+8,d+12));_o(r,u,_)}a=a+12}return r}function Mi(t){return String.fromCharCode.apply(null,new Uint8Array(t))}function _o(t,e,n){o1[e]?t[o1[e].name]={value:n,description:n}:t[e]={value:n,description:n}}const iT={read:sT};function sT(t,e){return{"Image Width":lT(t,e),"Image Height":aT(t,e),"Bit Depth":cT(t,e),"Color Type":uT(t,e),Compression:dT(t,e),Filter:fT(t,e),Interlace:hT(t,e)}}function lT(t,e){if(e+0+4>t.byteLength)return;const o=$.getLongAt(t,e);return{value:o,description:`${o}px`}}function aT(t,e){if(e+4+4>t.byteLength)return;const o=$.getLongAt(t,e+4);return{value:o,description:`${o}px`}}function cT(t,e){if(e+8+1>t.byteLength)return;const o=$.getByteAt(t,e+8);return{value:o,description:`${o}`}}function uT(t,e){const o={0:"Grayscale",2:"RGB",3:"Palette",4:"Grayscale with Alpha",6:"RGB with Alpha"};if(e+9+1>t.byteLength)return;const s=$.getByteAt(t,e+9);return{value:s,description:o[s]||"Unknown"}}function dT(t,e){if(e+10+1>t.byteLength)return;const o=$.getByteAt(t,e+10);return{value:o,description:o===0?"Deflate/Inflate":"Unknown"}}function fT(t,e){if(e+11+1>t.byteLength)return;const o=$.getByteAt(t,e+11);return{value:o,description:o===0?"Adaptive":"Unknown"}}function hT(t,e){const o={0:"Noninterlaced",1:"Adam7 Interlace"};if(e+12+1>t.byteLength)return;const s=$.getByteAt(t,e+12);return{value:s,description:o[s]||"Unknown"}}const _T={read:bT},ba="STATE_KEYWORD",wa="STATE_COMPRESSION",ka="STATE_LANG",mT="STATE_TRANSLATED_KEYWORD",xa="STATE_TEXT",pT=1,gT=1,yT=6;function bT(t,e,n,r){const o={},s=[];for(let l=0;l<e.length;l++){const{offset:a,length:c,type:u}=e[l],d=wT(t,a,c,u,n);if(d instanceof Promise)s.push(d.then(({name:f,value:h,description:_})=>{try{if(Hh.USE_EXIF&&ET(f,h))return{__exif:D_.read(c1(h),yT,r)};if(Hh.USE_IPTC&&TT(f,h))return{__iptc:fa.read(c1(h),0,r)};if(f)return{[f]:{value:h,description:_}}}catch{}return{}}));else{const{name:f,value:h,description:_}=d;f&&(o[f]={value:h,description:_})}}return{readTags:o,readTagsPromise:s.length>0?Promise.all(s):void 0}}function wT(t,e,n,r,o){const s=[],l=[];let a,c=ba,u=Ci;for(let f=0;f<n&&e+f<t.byteLength;f++){if(c===wa){u=kT({type:r,dataView:t,offset:e+f}),r===An&&(f+=pT),c=a1(r,c);continue}else if(c===xa){a=new DataView(t.buffer.slice(e+f,e+n));break}const h=t.getUint8(e+f);h===0?c=a1(r,c):c===ba?s.push(h):c===ka&&l.push(h)}if(u!==Ci&&!o)return{};const d=zh(a,u);return d instanceof Promise?d.then(f=>Sa(f,r,l,s)).catch(()=>Sa("<text using unknown compression>".split(""),r,l,s)):Sa(d,r,l,s)}function kT({type:t,dataView:e,offset:n}){if(t===An){if(e.getUint8(n)===gT)return e.getUint8(n+1)}else if(t===ra)return e.getUint8(n);return Ci}function a1(t,e){return e===ba&&[An,ra].includes(t)?wa:e===wa?t===An?ka:xa:e===ka?mT:xa}function Sa(t,e,n,r){const o=ST(t);return{name:xT(e,n,r),value:o,description:e===An?CT(t):o}}function xT(t,e,n){const r=br(n);if(t===u_||e.length===0)return r;const o=br(e);return`${r} (${o})`}function ST(t){return t instanceof DataView?V(t,0,t.byteLength):t}function CT(t){return M_.decode("UTF-8",t)}function ET(t,e){return t.toLowerCase()==="raw profile type exif"&&e.substring(1,5)==="exif"}function TT(t,e){return t.toLowerCase()==="raw profile type iptc"&&e.substring(1,5)==="iptc"}function c1(t){const e=t.match(/\n(exif|iptc)\n\s*\d+\n([\s\S]*)$/);return NT(e[2].replace(/\n/g,""))}function NT(t){const e=new DataView(new ArrayBuffer(t.length/2));for(let n=0;n<t.length;n+=2)e.setUint8(n/2,parseInt(t.substring(n,n+2),16));return e}const BT={read:IT};function IT(t,e){const n={};for(let r=0;r<e.length;r++){const o=$.getLongAt(t,e[r]+wr),s=V(t,e[r]+Jt,ut);s===d_?(n["Pixels Per Unit X"]=$T(t,e[r],o),n["Pixels Per Unit Y"]=FT(t,e[r],o),n["Pixel Units"]=AT(t,e[r],o)):s===f_&&(n["Modify Date"]=OT(t,e[r],o))}return n}function $T(t,e,n){if(!Li(t,e,n,0,4))return;const s=$.getLongAt(t,e+xe+0);return{value:s,description:""+s}}function FT(t,e,n){if(!Li(t,e,n,4,4))return;const s=$.getLongAt(t,e+xe+4);return{value:s,description:""+s}}function AT(t,e,n){if(!Li(t,e,n,8,1))return;const s=$.getByteAt(t,e+xe+8);return{value:s,description:s===1?"meters":"Unknown"}}function OT(t,e,n){if(!Li(t,e,n,0,7))return;const o=$.getShortAt(t,e+xe),s=$.getByteAt(t,e+xe+2),l=$.getByteAt(t,e+xe+3),a=$.getByteAt(t,e+xe+4),c=$.getByteAt(t,e+xe+5),u=$.getByteAt(t,e+xe+6);return{value:[o,s,l,a,c,u],description:`${Cr(o,4)}-${Cr(s,2)}-${Cr(l,2)} ${Cr(a,2)}:${Cr(c,2)}:${Cr(u,2)}`}}function Li(t,e,n,r,o){return r+o<=n&&e+xe+r+o<=t.byteLength}function Cr(t,e){return`${"0".repeat(e-(""+t).length)}${t}`}const DT={read:LT},PT=4,MT=7;function LT(t,e){const n={},r=$.getByteAt(t,e);return n.Alpha=vT(r),n.Animation=VT(r),n.ImageWidth=u1(t,e+PT),n.ImageHeight=u1(t,e+MT),n}function vT(t){const e=t&16;return{value:e?1:0,description:e?"Yes":"No"}}function VT(t){const e=t&2;return{value:e?1:0,description:e?"Yes":"No"}}function u1(t,e){const n=$.getByteAt(t,e)+256*$.getByteAt(t,e+1)+65536*$.getByteAt(t,e+2)+1;return{value:n,description:n+"px"}}const qT={read:RT};function RT(t){return{"GIF Version":UT(t),"Image Width":jT(t),"Image Height":zT(t),"Global Color Map":HT(t),"Bits Per Pixel":ZT(t),"Color Resolution Depth":GT(t)}}function UT(t){if(6>t.byteLength)return;const r=V(t,3,3);return{value:r,description:r}}function jT(t){if(8>t.byteLength)return;const r=t.getUint16(6,!0);return{value:r,description:`${r}px`}}function zT(t){if(10>t.byteLength)return;const r=t.getUint16(8,!0);return{value:r,description:`${r}px`}}function HT(t){if(11>t.byteLength)return;const o=(t.getUint8(10)&128)>>>7;return{value:o,description:o===1?"Yes":"No"}}function GT(t){if(11>t.byteLength)return;const o=((t.getUint8(10)&112)>>>4)+1;return{value:o,description:`${o} ${o===1?"bit":"bits"}`}}function ZT(t){if(11>t.byteLength)return;const o=(t.getUint8(10)&7)+1;return{value:o,description:`${o} ${o===1?"bit":"bits"}`}}const WT=[6,7,99],YT={get:QT};function QT(t,e,n){if(KT(e)){e.type="image/jpeg";const r=n+e.JPEGInterchangeFormat.value;e.image=t.buffer.slice(r,r+e.JPEGInterchangeFormatLength.value),qh(e,"base64",function(){return Rh(this.image)})}return e}function KT(t){return t&&(t.Compression===void 0||WT.includes(t.Compression.value))&&t.JPEGInterchangeFormat&&t.JPEGInterchangeFormat.value&&t.JPEGInterchangeFormatLength&&t.JPEGInterchangeFormatLength.value}function d1(t){this.name="MetadataMissingError",this.message=t||"No Exif data",this.stack=new Error().stack}d1.prototype=new Error;const f1={MetadataMissingError:d1},XT={load:JT,loadView:h1,errors:f1};function JT(t,e={}){return e4(t)?(e.async=!0,t4(t,e).then(n=>Ca(n,e))):a4(t)?(e.async=!0,c4(t).then(n=>Ca(n,e))):Ca(t,e)}function e4(t){return typeof t=="string"}function t4(t,e){return/^\w+:\/\//.test(t)?typeof fetch<"u"?n4(t,e):r4(t,e):i4(t)?Promise.resolve(Wx(t)):s4(t,e)}function n4(t,{length:e}={}){const n={method:"GET"};return Number.isInteger(e)&&e>=0&&(n.headers={range:`bytes=0-${e-1}`}),fetch(t,n).then(r=>r.arrayBuffer())}function r4(t,{length:e}={}){return new Promise((n,r)=>{const o={};Number.isInteger(e)&&e>=0&&(o.headers={range:`bytes=0-${e-1}`}),o4(t)(t,o,l=>{if(l.statusCode>=200&&l.statusCode<=299){const a=[];l.on("data",c=>a.push(Buffer.from(c))),l.on("error",c=>r(c)),l.on("end",()=>n(Buffer.concat(a)))}else r(`Could not fetch file: ${l.statusCode} ${l.statusMessage}`),l.resume()}).on("error",l=>r(l))})}function o4(t){return/^https:\/\//.test(t)?__non_webpack_require__("https").get:__non_webpack_require__("http").get}function i4(t){return/^data:[^;,]*(;base64)?,/.test(t)}function s4(t,{length:e}={}){return new Promise((n,r)=>{const o=l4();o.open(t,(s,l)=>{s?r(s):o.stat(t,(a,c)=>{if(a)r(a);else{const u=Math.min(c.size,e!==void 0?e:c.size),d=Buffer.alloc(u),f={buffer:d,length:u};o.read(l,f,h=>{h?r(h):o.close(l,_=>{_&&console.warn(`Could not close file ${t}:`,_),n(d)})})}})})})}function l4(){try{return __non_webpack_require__("fs")}catch{return}}function a4(t){return typeof window<"u"&&typeof File<"u"&&t instanceof File}function c4(t){return new Promise((e,n)=>{const r=new FileReader;r.onload=o=>e(o.target.result),r.onerror=()=>n(r.error),r.readAsArrayBuffer(t)})}function Ca(t,e){return u4(t)&&(t=new Uint8Array(t).buffer),h1(d4(t),e)}function u4(t){try{return Buffer.isBuffer(t)}catch{return!1}}function d4(t){try{return new DataView(t)}catch{return new Lh(t)}}function h1(t,{expanded:e=!1,async:n=!1,includeUnknown:r=!1}={expanded:!1,async:!1,includeUnknown:!1}){let o=!1,s={};const l=[],{fileType:a,fileDataOffset:c,jfifDataOffset:u,tiffHeaderOffset:d,iptcDataOffset:f,xmpChunks:h,iccChunks:_,mpfDataOffset:p,pngHeaderOffset:m,pngTextChunks:g,pngChunkOffsets:x,vp8xChunkOffset:y,gifHeaderOffset:w}=vC.parseAppMarkers(t,n);if(f4(c)){o=!0;const k=y3.read(t,c);e?s.file=k:s=j({},s,k)}if(h4(u)){o=!0;const k=B3.read(t,u);e?s.jfif=k:s=j({},s,k)}if(_4(d)){o=!0;const k=D_.read(t,d,r);if(k.Thumbnail&&(s.Thumbnail=k.Thumbnail,delete k.Thumbnail),e?(s.exif=k,m4(s)):s=j({},s,k),k["IPTC-NAA"]&&!_1(f)){const E=fa.read(k["IPTC-NAA"].value,0,r);e?s.iptc=E:s=j({},s,E)}if(k.ApplicationNotes&&!m1(h)){const E=U_.read(br(k.ApplicationNotes.value));e?s.xmp=E:(delete E._raw,s=j({},s,E))}if(k.ImageSourceData){const E=LE.read(k.PhotoshopSettings.value,r);e?s.photoshop=E:s=j({},s,E)}if(k.ICC_Profile&&!p1(_)){const E=s1.read(k.ICC_Profile.value,[{offset:0,length:k.ICC_Profile.value.length,chunkNumber:1,chunksTotal:1}]);e?s.icc=E:s=j({},s,E)}}if(_1(f)){o=!0;const k=fa.read(t,f,r);e?s.iptc=k:s=j({},s,k)}if(m1(h)){o=!0;const k=U_.read(t,h);e?s.xmp=k:(delete k._raw,s=j({},s,k))}if(p1(_)){o=!0;const k=s1.read(t,_,n);k instanceof Promise?l.push(k.then(T)):T(k)}if(p4(p)){o=!0;const k=u3.read(t,p,r);e?s.mpf=k:s=j({},s,k)}if(g4(m)){o=!0;const k=iT.read(t,m);e?(s.png=s.png?j({},s.png,k):k,s.pngFile=k):s=j({},s,k)}if(y4(g)){o=!0;const{readTags:k,readTagsPromise:E}=_T.read(t,g,n,r);b(k),E&&l.push(E.then(N=>N.forEach(b)))}if(b4(x)){o=!0;const k=BT.read(t,x);e?s.png=s.png?j({},s.png,k):k:s=j({},s,k)}if(w4(y)){o=!0;const k=DT.read(t,y);e?s.riff=s.riff?j({},s.riff,k):k:s=j({},s,k)}if(k4(w)){o=!0;const k=qT.read(t,w);e?s.gif=s.gif?j({},s.gif,k):k:s=j({},s,k)}const C=YT.get(t,s.Thumbnail,d);if(C?(o=!0,s.Thumbnail=C):delete s.Thumbnail,a&&(e?(s.file||(s.file={}),s.file.FileType=a):s.FileType=a,o=!0),!o)throw new f1.MetadataMissingError;if(n)return Promise.all(l).then(()=>s);return s;function T(k){e?s.icc=k:s=j({},s,k)}function b(k){if(e){for(const E of["exif","iptc"]){const N=`__${E}`;k[N]&&(s[E]=s[E]?j({},s.exif,k[N]):k[N],delete k[N])}s.png=s.png?j({},s.png,k):k,s.pngText=s.pngText?j({},s.png,k):k}else s=j({},s,k.__exif?k.__exif:{},k.__iptc?k.__iptc:{},k)}}function f4(t){return t!==void 0}function h4(t){return t!==void 0}function _4(t){return t!==void 0}function m4(t){if(t.exif){if(t.exif.GPSLatitude&&t.exif.GPSLatitudeRef)try{t.gps=t.gps||{},t.gps.Latitude=Ei(t.exif.GPSLatitude.value),t.exif.GPSLatitudeRef.value.join("")==="S"&&(t.gps.Latitude=-t.gps.Latitude)}catch{}if(t.exif.GPSLongitude&&t.exif.GPSLongitudeRef)try{t.gps=t.gps||{},t.gps.Longitude=Ei(t.exif.GPSLongitude.value),t.exif.GPSLongitudeRef.value.join("")==="W"&&(t.gps.Longitude=-t.gps.Longitude)}catch{}if(t.exif.GPSAltitude&&t.exif.GPSAltitudeRef)try{t.gps=t.gps||{},t.gps.Altitude=t.exif.GPSAltitude.value[0]/t.exif.GPSAltitude.value[1],t.exif.GPSAltitudeRef.value===1&&(t.gps.Altitude=-t.gps.Altitude)}catch{}}}function _1(t){return t!==void 0}function m1(t){return Array.isArray(t)&&t.length>0}function p1(t){return Array.isArray(t)&&t.length>0}function p4(t){return t!==void 0}function g4(t){return t!==void 0}function y4(t){return t!==void 0}function b4(t){return t!==void 0}function w4(t){return t!==void 0}function k4(t){return t!==void 0}async function g1(t,e=null){if(t.location)return t.location;try{const n=await XT.load(t.blobUrl||t.url||"",{expanded:!0});if(n.gps)return{latitude:n.gps.Latitude,longitude:n.gps.Longitude}}catch(n){console.error("Failed to load EXIF data from file:",n)}try{const{waitForLocation:n,location:r}=id();if(e&&setTimeout(()=>{!r.value&&e&&Ve.warning(e)},1e3),window.location.protocol==="https:")await n();else if(window.location.href.match("localhost"))return{latitude:37.7749,longitude:-122.4194,accuracy:1,altitude:0,altitudeAccuracy:0};return r.value?{latitude:r.value.latitude,longitude:r.value.longitude,accuracy:r.value.accuracy,altitude:r.value.altitude,altitudeAccuracy:r.value.altitudeAccuracy}:null}catch(n){return console.error(n),null}}class mo{constructor(e,n){G(this,"files",[]);G(this,"fileUploads",[]);G(this,"onErrorCb",null);G(this,"onProgressCb",null);G(this,"onCompleteCb",null);G(this,"onAllCompleteCb",null);G(this,"options");if(this.files=!Array.isArray(e)&&!(e instanceof FileList)?[e]:e,this.fileUploads=[],this.onErrorCb=null,this.onProgressCb=null,this.onCompleteCb=null,this.onAllCompleteCb=null,this.options={createPresignedUpload:null,completePresignedUpload:null,refreshFile:null,...oe.value.fileUpload,...n},!this.options.createPresignedUpload||!this.options.completePresignedUpload)throw new Error("Please configure danxOptions.fileUpload: import { configure } from 'quasar-ui-danx';")}prepare(){for(const e of this.files){if(!(e instanceof File))throw Error("FileUpload constructor requires a File object or a list of File objects");e.id=J.uid(),e.blobUrl=URL.createObjectURL(e);const n=new FormData;n.append("file",e),this.fileUploads.push({file:e,xhr:null,formData:n,isComplete:!1})}return this}onAllComplete(e){return this.onAllCompleteCb=e,this}onComplete(e){return this.onCompleteCb=e,this}onProgress(e){return this.onProgressCb=e,this}onError(e){return this.onErrorCb=e,this}errorHandler(e,n,r=null){this.onErrorCb&&this.onErrorCb({e,file:n,error:r})}async resolveLocation(e=null){for(const n of this.fileUploads)n.file.location=await g1(n.file,e),n.formData.append("meta",JSON.stringify(n.file.location));return this}fireProgressCallback(e,n){e.file.progress=n,this.onProgressCb&&this.onProgressCb({file:this.wrapFile(e.file),progress:n})}fireCompleteCallback(e,n){e.isComplete=!0,e.file.progress=1,this.onCompleteCb&&this.onCompleteCb({file:this.wrapFile(e.file),uploadedFile:n})}checkAllComplete(){this.onAllCompleteCb&&this.fileUploads.every(e=>e.isComplete)&&this.onAllCompleteCb({files:this.fileUploads})}wrapFile(e){return{id:e.id,name:e.name,size:e.size,type:e.type,progress:e.progress,location:e.location,blobUrl:e.blobUrl,url:"",__type:"BrowserFile"}}setXhrCallbacks(){var e,n,r;for(const o of this.fileUploads)(e=o.xhr)==null||e.addEventListener("error",s=>this.errorHandler(s,o.file),!1);if(this.onProgressCb)for(const o of this.fileUploads)(n=o.xhr)==null||n.upload.addEventListener("progress",s=>{const l=Math.min(.95,s.loaded/s.total);this.fireProgressCallback(o,l)},!1);for(const o of this.fileUploads)(r=o.xhr)==null||r.addEventListener("load",async s=>{try{let l=await this.completePresignedUpload(o);l=ye(l),this.fireCompleteCallback(o,l),this.checkAllComplete(),await this.waitForTranscode(l)}catch(l){this.errorHandler(s,o.file,l)}},!1)}async completePresignedUpload(e){if(this.fireProgressCallback(e,.95),!e.file.resource_id)throw new Error("File resource ID is required to complete presigned upload");if(!this.options.completePresignedUpload)throw new Error("Please configure danxOptions.fileUpload.completePresignedUpload");return await this.options.completePresignedUpload(e.file.resource_id,e)}async refreshFile(e){if(!this.options.refreshFile)return null;const n=await this.options.refreshFile(e.id);return n&&ye(n)}isTranscoding(e){var r;const n=((r=e==null?void 0:e.meta)==null?void 0:r.transcodes)||[];for(const o of Object.keys(n)){const s=n[o];if(s.status==="Pending"||s.status==="In Progress")return!0}return!1}async waitForTranscode(e){if(!e.meta||e.meta.is_waiting_transcode)return;e.meta.is_waiting_transcode=!0;let n=e;for(;n&&this.isTranscoding(n);)await Ur(1e3),n=await this.refreshFile(n)}async upload(){var e;for(const n of this.fileUploads){const r=n.file.mimeType||n.file.type;if(!this.options.createPresignedUpload)throw new Error("Please configure danxOptions.fileUpload.createPresignedUpload");const o=await this.options.createPresignedUpload(this.options.directory||"",n.file.name,r);if(!o.url){Ve.error("Could not fetch presigned upload URL for file "+n.file.name);continue}const s=!o.url.match("upload-presigned-url-contents");n.file.resource_id=o.id;const l=new XMLHttpRequest;s?(l.open("PUT",o.url),l.setRequestHeader("Content-Type",r),n.body=n.file):(l.open("POST",o.url),n.body=n.formData),n.xhr=l}this.setXhrCallbacks();for(const n of this.fileUploads)(e=n.xhr)==null||e.send(n.body)}}const vi=i.ref([]),Vi=i.ref([]);function x4(t){vi.value=[...vi.value,t]}function S4(t,e,n){Vi.value.push({id:n,name:t,callback:e})}function C4(t){Vi.value=Vi.value.filter(e=>e.id!==t)}function y1(t,e,n){for(let r of vi.value)if(r.type===t&&r.key===e&&n.ctrlKey===!!r.ctrl&&n.altKey===!!r.alt&&n.shiftKey===!!r.shift)for(let o of Vi.value)o.name===r.name&&o.callback(n)}function b1(t){return t.key?(""+t.key).toLowerCase():t.keyCode}function E4(t){vi.value=t,window.addEventListener("keydown",e=>{y1("keydown",b1(e),e)}),window.addEventListener("keyup",e=>{y1("keyup",b1(e),e)})}function w1(t){const e=i.ref([]),n=i.ref(null),r=i.ref(null),o=f=>{e.value=[...e.value,...f.target.files],new mo(f.target.files,t).prepare().onProgress(({file:h})=>{h&&s(h)}).onComplete(({file:h,uploadedFile:_})=>{h&&s(h,_)}).onError(({file:h,error:_})=>{console.error("Failed to upload",h,_),Ve.error(`Failed to upload ${h.name}: ${_}`)}).onAllComplete(()=>{n.value&&n.value({file:e.value[0],uploadedFile:e.value[0]}),r.value&&r.value(e.value)}).upload()};function s(f,h=null){const _=e.value.findIndex(p=>p.id===f.id);_!==-1&&e.value.splice(_,1,h||f),r.value&&r.value(e.value)}return{clearUploadedFiles:()=>{e.value=[],r.value&&r.value(e.value),n.value&&n.value({file:null,uploadedFile:null})},onRemove:f=>{const h=e.value.findIndex(_=>_.id===f.id);h!==-1&&e.value.splice(h,1),r.value&&r.value(e.value),n.value&&n.value({file:f,uploadedFile:f})},onComplete:f=>{n.value=f},onFilesChange:f=>{r.value=f},onDrop:f=>{var h;o({target:{files:(h=f.dataTransfer)==null?void 0:h.files}})},onFilesSelected:o,uploadedFiles:e}}const Se={abortControllers:{},url(t){var e;return t.startsWith("http")?t:(((e=oe.value.request)==null?void 0:e.baseUrl)||"").replace(/\/$/,"")+"/"+t},async call(t,e){var l;e=e||{};const n=(e==null?void 0:e.abortOn)!==void 0?e.abortOn:t,r=new Date().getTime();if(n){const a=new AbortController,c=Se.abortControllers[n];c&&c.abort.abort("Request was aborted due to a newer request being made"),Se.abortControllers[n]={abort:a,timestamp:r},e.signal=a.signal}const o=await fetch(Se.url(t),e);if(T4(o),n){if(r<Se.abortControllers[n].timestamp)return{abort:!0};delete Se.abortControllers[n]}const s=await o.json();if(o.status===401){const a=(l=oe.value.request)==null?void 0:l.onUnauthorized;return a?a(s,o):{error:!0,message:"Unauthorized",...s}}return o.status>400&&s.exception&&!s.error&&(s.error=!0),s},async poll(t,e,n,r){let o;do o=await Se.call(t,e),await Ur(n);while(!r(o));return o},async get(t,e){var n;return await Se.call(t,{method:"get",headers:{Accept:"application/json","Content-Type":"application/json",...(n=oe.value.request)==null?void 0:n.headers},...e})},async post(t,e,n){var r;return await Se.call(t,{method:"post",body:e&&JSON.stringify(e),headers:{Accept:"application/json","Content-Type":"application/json",...(r=oe.value.request)==null?void 0:r.headers},...n})}};function T4(t){const e=oe.value.request;if(!e||!e.headers||!e.onAppVersionMismatch)return;const n=e.headers["X-App-Version"]||"",r=t.headers.get("X-App-Version");n&&n!==r&&e.onAppVersionMismatch(r)}async function N4(t,e,n,r){let o;n&&(o=e.value.find(s=>s.id===n)||(await t({id:n}))[0]),e.value=await t(r),o&&!e.value.find(s=>s.id===n)&&e.value.push(o)}function k1(t,e){return new URLSearchParams((e==null?void 0:e.replace(/.*\?/,""))||window.location.search).get(t)}function B4(t,e){return{list(n){return Se.post(`${t}/list`,n)},summary(n){return Se.post(`${t}/summary`,{filter:n})},details(n){return Se.get(`${t}/${n.id}/details`)},async detailsAndStore(n){const r=await Se.get(`${t}/${n.id}/details`);return ye(r)},async relation(n,r){const o=await Se.get(`${t}/${n.id}/relation/${r}`);return ye(o)},fieldOptions(){return Se.get(`${t}/field-options`)},applyAction(n,r,o){return Se.post(`${t}/${r?r.id:"new"}/apply-action`,{action:n,data:o})},batchAction(n,r,o){return Se.post(`${t}/batch-action`,{action:n,filter:{id:r.map(s=>s.id)},data:o})},export(n,r){return Ph(`${t}/export`,r||"export.csv",{filter:n})},...e}}function x1(t=null){const e=i.ref(null),n=i.ref(null),r=i.ref(null),o=d=>{var f;e.value=null,new mo((f=d.target)==null?void 0:f.files[0],t).prepare().onProgress(({file:h})=>{h&&(e.value=h,r.value&&r.value(e.value))}).onComplete(({uploadedFile:h})=>{h&&(e.value=h,n.value&&n.value(e.value),r.value&&r.value(e.value))}).onError(({file:h,error:_})=>{console.error("Failed to upload",h,_),Ve.error(`Failed to upload ${h.name}: ${_}`)}).upload()},s=d=>{var f;o({target:{files:(f=d.dataTransfer)==null?void 0:f.files}})};return{isFileUploaded:i.computed(()=>e.value&&e.value.url),clearUploadedFile:()=>{e.value=null,r.value&&r.value(e.value),n.value&&n.value(e.value)},onComplete:d=>{n.value=d},onFileChange:d=>{r.value=d},onDrop:s,onFileSelected:o,uploadedFile:e}}function Pt(t,e){localStorage.setItem(t,JSON.stringify(e))}function xt(t,e=null){const n=localStorage.getItem(t);try{return n?JSON.parse(n):e}catch{return}}function I4(t,e=""){const n=Ea(t,e),r=document.createElement("style");r.innerHTML=`:root {${n}}`,document.head.appendChild(r)}function Ea(t,e=""){return Object.entries(t).map(([n,r])=>typeof r=="object"?Ea(r,`${e}${n}-`):`--${e}${n}: ${r}`).join(";")}const $4={name:"quasar-ui-danx",version:"0.4.29",author:"Dan <dan@flytedesk.com>",description:"DanX Vue / Quasar component library",license:"MIT",type:"module",main:"./dist/danx.umd.js",module:"./dist/danx.es.js",types:"types/index.d.ts",scripts:{dev:"cd dev && quasar dev && cd ..",build:"vite build",preview:"vite preview",postversion:'yarn build && npm publish && cd .. && git add ui && git commit -m "v$npm_package_version" && git tag "v$npm_package_version" && git push'},repository:{type:"git",url:"https://github.com/flytedan/quasar-ui-danx"},peerDependencies:{quasar:"^2.0.0",vue:"^3.4.21"},devDependencies:{"@quasar/extras":"^1.16.4","@types/luxon":"^3.4.2","@types/node":"^20.12.7","@typescript-eslint/eslint-plugin":"^7.6.0","@typescript-eslint/parser":"^7.6.0","@vitejs/plugin-vue":"^5.0.4",autoprefixer:"^10.4.19",chalk:"^4.1.0","core-js":"^3.0.0",cssnano:"^4.1.10",eslint:"^8.5.0","eslint-plugin-import":"^2.29.1","eslint-plugin-vue":"^9.24.1","fs-extra":"^8.1.0",postcss:"^8.4.38",quasar:"^2.0.0",sass:"^1.33.0",tailwindcss:"^3.4.3","ts-node":"^10.9.2",typescript:"^5.4.4",vite:"^5.2.8","vite-plugin-dts":"^3.8.1","vite-svg-loader":"^5.1.0",vue:"^3.4.21","vue-eslint-parser":"^9.4.2","vue-router":"^4.3.2"},dependencies:{"@heroicons/vue":"v1","@tinymce/tinymce-vue":"^5.1.1","@vueuse/core":"^10.7.2","danx-icon":"^1.0.2",exifreader:"^4.21.1",gsap:"^3.12.5",luxon:"^3.4.4",yaml:"^2.4.5"},browserslist:["last 4 Chrome versions","last 4 Firefox versions","last 2 Edge versions","last 4 Safari versions","last 4 Android versions","last 4 ChromeAndroid versions","last 4 FirefoxAndroid versions","last 4 iOS versions"]},{version:S1}=$4;function F4(){console.log(`Installing Danx UI ${S1}... Nothing to do really.`)}S.ActionForm=ac,S.ActionFormDialog=wp,S.ActionMenu=Us,S.ActionTable=Wu,S.ActionTableColumn=$u,S.ActionTableHeaderColumn=Du,S.ActionTableLayout=Xb,S.ActionToolbar=Yu,S.ActionVnode=Ag,S.AddressFormat=xg,S.AuditHistoryItem=cw,S.AuditHistoryItemValue=Gs,S.AutoHeightTransition=jg,S.BadgeTab=Lg,S.BooleanField=Gi,S.CaretDownIcon=Da,S.CollapsableFiltersSidebar=Ru,S.CollapsableSidebar=uc,S.ColumnListItem=zs,S.ColumnSettingsDialog=hb,S.ConfirmActionDialog=Ga,S.ConfirmDialog=Ct,S.ConfirmPasswordField=Rp,S.ContentDrawer=Ji,S.CreateNewWithNameDialog=Za,S.DateField=Wi,S.DateRangeField=Yi,S.DateTime=D,S.DateTimeField=Xp,S.DateTimePicker=Qi,S.DragAndDrop=js,S.DragHandleDotsIcon=Pa,S.DragHandleIcon=Ma,S.EditOnClickTextField=r0,S.EditableDiv=e0,S.EmptyTableState=Gu,S.ExportButton=Fa,S.FieldLabel=ht,S.FilePreview=Tr,S.FileUpload=mo,S.FileUploadButton=i0,S.FilterIcon=La,S.FilterItem=Vu,S.FilterList=qu,S.FilterListToggle=Uu,S.FilterToolbarLayout=$b,S.FilterableField=Hs,S.FlashMessages=Ve,S.FlatListFormat=Sg,S.FullScreenCarouselDialog=Wa,S.FullScreenDialog=Fp,S.GpsCoordinatesFormat=Tg,S.HandleDraggable=Fu,S.IconWithTextFormat=Bg,S.ImageIcon=zi,S.IndicatorTab=qg,S.InfoDialog=Ya,S.InlineDateTimeField=a0,S.InputDialog=Op,S.IntegerField=Ka,S.InteractiveTooltip=Dg,S.LabelValueBlock=_0,S.LabelValueFormat=$g,S.LabeledInput=Zi,S.ListDragAndDrop=Au,S.ListItemDraggable=Ou,S.ListTransition=_c,S.MaxHeightTransition=zg,S.MaxLengthCounter=Qa,S.MultiFileField=Xa,S.MultiKeywordField=Ja,S.NavigationMenu=fw,S.NewPasswordField=b0,S.NumberField=Er,S.NumberRangeField=bo,S.PanelsDrawer=Hu,S.PanelsDrawerPanels=ju,S.PanelsDrawerTabs=zu,S.PdfIcon=va,S.PercentIcon=Va,S.PopoverMenu=hc,S.PreviousNextControls=ja,S.RefreshButton=Aa,S.RenderComponent=fc,S.RenderVnode=ln,S.RenderedForm=Xi,S.RenderedFormDialog=og,S.SERVER_TZ=Gl,S.SaveStateIndicator=lc,S.SelectDrawer=C0,S.SelectField=Mn,S.SelectOrCreateField=T0,S.SelectWithChildrenField=ec,S.ShowHideButton=Oa,S.SingleFileField=tc,S.SkipNextIcon=qa,S.SkipPreviousIcon=Ra,S.SlideTransition=Hg,S.SliderNumberField=O0,S.StaggeredListTransition=sb,S.SvgImg=cc,S.TableSummaryRow=Zu,S.TextField=on,S.TitleColumnFormat=Pu,S.TrashIcon=go,S.VisibleColumnsToggleButtons=yb,S.WarningIcon=Ua,S.WysiwygField=sc,S.XIcon=yo,S.activeActionVnode=bn,S.addHotkey=x4,S.applyCssVars=I4,S.autoRefreshObject=Ku,S.buildCssVars=Ea,S.centerTruncate=qx,S.configure=B1,S.danxOptions=oe,S.dbDateTime=Wl,S.diffInDays=Hx,S.download=Si,S.downloadFile=Ph,S.downloadFileResponse=Mh,S.fBoolean=Fh,S.fCurrency=ki,S.fCurrencyNoCents=Lx,S.fDate=kt,S.fDateTime=wi,S.fElapsedTime=Mx,S.fJSON=Dh,S.fLocalizedDateTime=gr,S.fMarkdownCode=zx,S.fNameOrCount=Oh,S.fNumber=At,S.fPercent=Ah,S.fPhone=Rx,S.fQDate=Dx,S.fSecondsToTime=Px,S.fShortCurrency=vx,S.fShortNumber=$h,S.fShortSize=Vx,S.fetchResourceListWithSelected=N4,S.getFilterFromUrl=vu,S.getItem=xt,S.getResponseHeader=Yl,S.getUrlParam=k1,S.incrementName=td,S.install=F4,S.isJSON=nd,S.latestCallOnly=Ys,S.listen=S4,S.localizedDateTime=Zl,S.mapSortBy=Lu,S.metersToMiles=kw,S.milesToMeters=xw,S.minmax=ww,S.notify=hw,S.parseCoords=Sw,S.parseDateTime=Ft,S.parseMarkdownCode=xi,S.parseMarkdownJSON=Ux,S.parseMarkdownYAML=jx,S.parseQDate=yi,S.parseQDateTime=bi,S.parseSqlDateTime=Ih,S.pollUntil=bw,S.refreshApplication=gw,S.registerHotkeys=E4,S.registerStickyScrolling=Mu,S.remoteDateTime=Bh,S.remove=Rr,S.replace=Zs,S.request=Se,S.resolveFileLocation=g1,S.setItem=Pt,S.sleep=Ur,S.storeObject=ye,S.storeObjects=_w,S.uniqueBy=yw,S.unlisten=C4,S.useActionRoutes=B4,S.useActions=mw,S.useCompatibility=id,S.useControls=bb,S.useDebounceFn=rn,S.useMultiFileUpload=w1,S.useSingleFileUpload=x1,S.useTableColumns=Jb,S.version=S1,S.waitForRef=Ws,S.withDefaultActions=pw,Object.defineProperty(S,Symbol.toStringTag,{value:"Module"})});
153
+ `,Ti=4,ut=4,wr=0,Jt=Ti,xe=Ti+ut,na="XML:com.adobe.xmp\0",u_="tEXt",An="iTXt",ra="zTXt",d_="pHYs",f_="tIME",OS="eXIf",DS="iCCP";function PS(t){return!!t&&V(t,0,ta.length)===ta}function MS(t,e){const r={hasAppMarkers:!1};let o=ta.length;for(;o+Ti+ut<=t.byteLength;){if(LS(t,o))r.hasAppMarkers=!0,r.pngHeaderOffset=o+xe;else if(vS(t,o)){const s=jS(t,o);s!==void 0&&(r.hasAppMarkers=!0,r.xmpChunks=[{dataOffset:s,length:t.getUint32(o+wr)-(s-(o+xe))}])}else if(VS(t,o,e)){r.hasAppMarkers=!0;const s=V(t,o+Jt,ut);r.pngTextChunks||(r.pngTextChunks=[]),r.pngTextChunks.push({length:t.getUint32(o+wr),type:s,offset:o+xe})}else if(qS(t,o))r.hasAppMarkers=!0,r.tiffHeaderOffset=o+xe;else if(e&&RS(t,o)){r.hasAppMarkers=!0;const s=t.getUint32(o+wr),l=o+xe,{profileName:a,compressionMethod:c,compressedProfileOffset:u}=zS(t,l);r.iccChunks||(r.iccChunks=[]),r.iccChunks.push({offset:u,length:s-(u-l),chunkNumber:1,chunksTotal:1,profileName:a,compressionMethod:c})}else US(t,o)&&(r.hasAppMarkers=!0,r.pngChunkOffsets||(r.pngChunkOffsets=[]),r.pngChunkOffsets.push(o+wr));o+=t.getUint32(o+wr)+Ti+ut+4}return r}function LS(t,e){return V(t,e+Jt,ut)==="IHDR"}function vS(t,e){return V(t,e+Jt,ut)===An&&V(t,e+xe,na.length)===na}function VS(t,e,n){const r=V(t,e+Jt,ut);return r===u_||r===An||r===ra&&n}function qS(t,e){return V(t,e+Jt,ut)===OS}function RS(t,e){return V(t,e+Jt,ut)===DS}function US(t,e){const n=[d_,f_],r=V(t,e+Jt,ut);return n.includes(r)}function jS(t,e){e+=xe+na.length+1+1;let o=0;for(;o<2&&e<t.byteLength;)t.getUint8(e)===0&&o++,e++;if(!(o<2))return e}function zS(t,e){const o=yr(t,e);e+=o.length+1;const s=t.getUint8(e);return e+=1,{profileName:o,compressionMethod:s,compressedProfileOffset:e}}function HS(t,e){return t.getUint32(e+4)}function GS(t,e,n,r){const{offsets:s,sizes:l}=ZS(e,n+3),a=t.getUint8(s.offsetSize)>>4;l.item.extent.extentOffset=a;const c=t.getUint8(s.lengthSize)&15;l.item.extent.extentLength=c;const u=t.getUint8(s.baseOffsetSize)>>4;l.item.baseOffset=u;const d=WS(t,s.indexSize,e);l.item.extent.extentIndex=d!==void 0?d:0;const f=YS(t,s.itemCount,e);return{type:"iloc",items:QS(t,e,s,l,a,c,d,f),length:r}}function ZS(t,e){const n={item:{dataReferenceIndex:2,extentCount:2,extent:{}}};t<2?(n.itemCount=2,n.item.itemId=2):t===2&&(n.itemCount=4,n.item.itemId=4),t===1||t===2?n.item.constructionMethod=2:n.item.constructionMethod=0;const r={offsetSize:e,lengthSize:e,baseOffsetSize:e+1,indexSize:e+1};return r.itemCount=e+2,r.items=r.itemCount+n.itemCount,r.item={itemId:0},r.item.constructionMethod=r.item.itemId+n.item.itemId,r.item.dataReferenceIndex=r.item.constructionMethod+n.item.constructionMethod,{offsets:r,sizes:n}}function WS(t,e,n){if(n===1||n===2)return t.getUint8(e)&15}function YS(t,e,n){if(n<2)return t.getUint16(e);if(n===2)return t.getUint32(e)}function QS(t,e,n,r,o,s,l,a){if(a===void 0)return[];const c=[];let u=n.items;for(let d=0;d<a;d++){const f={extents:[]};f.itemId=KS(t,u,e),u+=r.item.itemId,f.constructionMethod=e===1||e===2?t.getUint16(u)&15:void 0,u+=r.item.constructionMethod,f.dataReferenceIndex=t.getUint16(u),u+=r.item.dataReferenceIndex,f.baseOffset=Ni(t,u,r.item.baseOffset),u+=r.item.baseOffset,f.extentCount=t.getUint16(u),u+=r.item.extentCount;for(let h=0;h<f.extentCount;h++){const _={};_.extentIndex=XS(t,e,u,l),u+=r.item.extent.extentIndex,_.extentOffset=Ni(t,u,o),u+=r.item.extent.extentOffset,_.extentLength=Ni(t,u,s),u+=r.item.extent.extentLength,f.extents.push(_)}c.push(f)}return c}function KS(t,e,n){if(n<2)return t.getUint16(e);if(n===2)return t.getUint32(e)}function XS(t,e,n,r){if((e===1||e===2)&&r>0)return Ni(t,n,r)}function Ni(t,e,n){return n===4?t.getUint32(e):n===8?(console.warn("This file uses an 8-bit offset which is currently not supported by ExifReader. Contact the maintainer to get it fixed."),HS(t,e)):0}const JS=1718909296,eC=1768977008,tC=1835365473,nC=1768714083,rC=1768517222,oC=1768842853,iC=1768973167,sC=1668246642,h_=1165519206,oa=1835625829,lC=1970432288;function Bi(t,e){const{length:s,contentOffset:l}=aC(t,e);if(s<8)return;const a=t.getUint32(e+4);if(a===JS)return bC(t,l,s);if(a===eC)return wC(t,e,l,s);if(a===iC)return kC(t,e,l,s);if(a===sC)return xC(t,l,s);const c=t.getUint8(l);return a===tC?CC(t,e,l+1,s):a===nC?GS(t,c,l+1,s):a===rC?EC(t,e,c,l+1,s):a===oC?NC(t,e,c,l+1,s):{type:void 0,length:s}}function aC(t,e){const l=t.getUint32(e);return cC(l)?{length:t.byteLength-e,contentOffset:e+4+4}:uC(l)&&dC(t,e)?{length:t.getUint32(e+12),contentOffset:e+4+4+8}:{length:l,contentOffset:e+4+4}}function cC(t){return t===0}function uC(t){return t===1}function dC(t,e){return t.getUint32(e+8)===0}function __(t){{const e={},n=fC(t);return n?(e.tiffHeaderOffset=hC(t,n),e.xmpChunks=pC(n),e.iccChunks=yC(n),e.hasAppMarkers=e.tiffHeaderOffset!==void 0||e.xmpChunks!==void 0||e.iccChunks!==void 0,e):{hasAppMarkers:!1}}}function fC(t){let r=0;for(;r+4+4<=t.byteLength;){const o=Bi(t,r);if(o===void 0)break;if(o.type==="meta")return o;r+=o.length}}function hC(t,e){try{const n=_C(e).itemId,r=ia(e,n),o=r.baseOffset+r.extents[0].extentOffset;return mC(t,o)}catch{return}}function _C(t){return t.subBoxes.find(e=>e.type==="iinf").itemInfos.find(e=>e.itemType===h_)}function ia(t,e){return t.subBoxes.find(n=>n.type==="iloc").items.find(n=>n.itemId===e)}function mC(t,e){return e+4+t.getUint32(e)}function pC(t){try{const e=gC(t).itemId,n=ia(t,e),r=ia(t,e).extents[0];return[{dataOffset:n.baseOffset+r.extentOffset,length:r.extentLength}]}catch{return}}function gC(t){return t.subBoxes.find(e=>e.type==="iinf").itemInfos.find(e=>e.itemType===oa&&e.contentType==="application/rdf+xml")}function yC(t){try{const e=t.subBoxes.find(n=>n.type==="iprp").subBoxes.find(n=>n.type==="ipco").properties.find(n=>n.type==="colr").icc;if(e)return[e]}catch{}}function bC(t,e,n){return{type:"ftyp",majorBrand:V(t,e,4),length:n}}function wC(t,e,n,r){return{type:"iprp",subBoxes:Ii(t,n,r-(n-e)),length:r}}function kC(t,e,n,r){return{type:"ipco",properties:Ii(t,n,r-(n-e)),length:r}}function xC(t,e,n){return{type:"colr",icc:SC(t,e),length:n}}function SC(t,e){const r=V(t,e,4);if(!(r!=="prof"&&r!=="rICC"))return{offset:e+4,length:t.getUint32(e+4),chunkNumber:1,chunksTotal:1}}function CC(t,e,n,r){return{type:"meta",subBoxes:Ii(t,n+3,r-(n+3-e)),length:r}}function Ii(t,e,n){const r=[h_,oa],o=[];let s=e;for(;s<e+n;){const l=Bi(t,s);if(l===void 0)break;l.type!==void 0&&(l.itemType===void 0||r.indexOf(l.itemType)!==-1)&&o.push(l),s+=l.length}return o}function EC(t,e,n,r,o){const{offsets:s}=TC(n,r);return{type:"iinf",itemInfos:Ii(t,s.itemInfos,o-(s.itemInfos-e)),length:o}}function TC(t,e){const r={entryCount:e+3},o={};return t===0?o.entryCount=2:o.entryCount=4,r.itemInfos=r.entryCount+o.entryCount,{offsets:r}}function NC(t,e,n,r,o){r+=3;const l={type:"infe",length:o};return(n===0||n===1)&&(l.itemId=t.getUint16(r),r+=2,l.itemProtectionIndex=t.getUint16(r),r+=2,l.itemName=yr(t,r),r+=l.itemName.length+1),n>=2&&(n===2?(l.itemId=t.getUint16(r),r+=2):n===3&&(l.itemId=t.getUint32(r),r+=4),l.itemProtectionIndex=t.getUint16(r),r+=2,l.itemType=t.getUint32(r),r+=4,l.itemName=yr(t,r),r+=l.itemName.length+1,l.itemType===oa?(l.contentType=yr(t,r),r+=l.contentType.length+1,e+o>r&&(l.contentEncoding=yr(t,r),r+=l.contentEncoding.length+1)):l.itemType===lC&&(l.itemUri=yr(t,r),r+=l.itemUri.length+1)),l}const m_={isHeicFile:BC,findHeicOffsets:IC};function BC(t){if(!t)return!1;const e=["heic","heix","hevc","hevx","heim","heis","hevm","hevs","mif1"];try{const n=Bi(t,0);return n&&e.indexOf(n.majorBrand)!==-1}catch{return!1}}function IC(t){return __(t)}const p_={isAvifFile:$C,findAvifOffsets:FC};function $C(t){if(!t)return!1;try{const e=Bi(t,0);return e&&e.majorBrand==="avif"}catch{return!1}}function FC(t){return __(t)}const g_={isWebpFile:AC,findOffsets:OC};function AC(t){const n="RIFF",o="WEBP";return!!t&&V(t,0,n.length)===n&&V(t,8,o.length)===o}function OC(t){const r="Exif\0\0";let s=12,l=!1,a,c,u,d;for(;s+8<t.byteLength;){const f=V(t,s,4),h=t.getUint32(s+4,!0);f==="EXIF"?(l=!0,V(t,s+8,r.length)===r?a=s+8+r.length:a=s+8):f==="XMP "?(l=!0,c=[{dataOffset:s+8,length:h}]):f==="ICCP"?(l=!0,u=[{offset:s+8,length:h,chunkNumber:1,chunksTotal:1}]):f==="VP8X"&&(l=!0,d=s+8),s+=8+(h%2===0?h:h+1)}return{hasAppMarkers:l,tiffHeaderOffset:a,xmpChunks:c,iccChunks:u,vp8xChunkOffset:d}}const y_={isGifFile:MC,findOffsets:LC},DC=6,PC=["GIF87a","GIF89a"];function MC(t){return!!t&&PC.includes(V(t,0,DC))}function LC(){return{gifHeaderOffset:0}}const vC={parseAppMarkers:VC};function VC(t,e){if(Gh.isTiffFile(t))return On(Gh.findTiffOffsets(),"tiff","TIFF");if(Zh.isJpegFile(t))return On(Zh.findJpegOffsets(t),"jpeg","JPEG");if(c_.isPngFile(t))return On(c_.findPngOffsets(t,e),"png","PNG");if(m_.isHeicFile(t))return On(m_.findHeicOffsets(t),"heic","HEIC");if(p_.isAvifFile(t))return On(p_.findAvifOffsets(t),"avif","AVIF");if(g_.isWebpFile(t))return On(g_.findOffsets(t),"webp","WebP");if(y_.isGifFile(t))return On(y_.findOffsets(t),"gif","GIF");throw new Error("Invalid image format")}function On(t,e,n){return j({},t,{fileType:{value:e,description:n}})}const v={ApertureValue:t=>Math.pow(Math.sqrt(2),t[0]/t[1]).toFixed(2),ColorSpace(t){return t===1?"sRGB":t===65535?"Uncalibrated":"Unknown"},ComponentsConfiguration(t){return t.map(e=>{if(e===49)return"Y";if(e===50)return"Cb";if(e===51)return"Cr";if(e===52)return"R";if(e===53)return"G";if(e===54)return"B"}).join("")},Contrast(t){return t===0?"Normal":t===1?"Soft":t===2?"Hard":"Unknown"},CustomRendered(t){return t===0?"Normal process":t===1?"Custom process":"Unknown"},ExposureMode(t){return t===0?"Auto exposure":t===1?"Manual exposure":t===2?"Auto bracket":"Unknown"},ExposureProgram(t){return t===0?"Undefined":t===1?"Manual":t===2?"Normal program":t===3?"Aperture priority":t===4?"Shutter priority":t===5?"Creative program":t===6?"Action program":t===7?"Portrait mode":t===8?"Landscape mode":t===9?"Bulb":"Unknown"},ExposureTime(t){if(t[0]/t[1]>.25){const e=t[0]/t[1];return Number.isInteger(e)?""+e:e.toFixed(1)}return t[0]!==0?`1/${Math.round(t[1]/t[0])}`:`0/${t[1]}`},FNumber:t=>`f/${t[0]/t[1]}`,FocalLength:t=>t[0]/t[1]+" mm",FocalPlaneResolutionUnit(t){return t===2?"inches":t===3?"centimeters":"Unknown"},LightSource:t=>t===1?"Daylight":t===2?"Fluorescent":t===3?"Tungsten (incandescent light)":t===4?"Flash":t===9?"Fine weather":t===10?"Cloudy weather":t===11?"Shade":t===12?"Daylight fluorescent (D 5700 – 7100K)":t===13?"Day white fluorescent (N 4600 – 5400K)":t===14?"Cool white fluorescent (W 3900 – 4500K)":t===15?"White fluorescent (WW 3200 – 3700K)":t===17?"Standard light A":t===18?"Standard light B":t===19?"Standard light C":t===20?"D55":t===21?"D65":t===22?"D75":t===23?"D50":t===24?"ISO studio tungsten":t===255?"Other light source":"Unknown",MeteringMode(t){return t===1?"Average":t===2?"CenterWeightedAverage":t===3?"Spot":t===4?"MultiSpot":t===5?"Pattern":t===6?"Partial":t===255?"Other":"Unknown"},ResolutionUnit(t){return t===2?"inches":t===3?"centimeters":"Unknown"},Saturation(t){return t===0?"Normal":t===1?"Low saturation":t===2?"High saturation":"Unknown"},SceneCaptureType(t){return t===0?"Standard":t===1?"Landscape":t===2?"Portrait":t===3?"Night scene":"Unknown"},Sharpness(t){return t===0?"Normal":t===1?"Soft":t===2?"Hard":"Unknown"},ShutterSpeedValue(t){const e=Math.pow(2,t[0]/t[1]);return e<=1?`${Math.round(1/e)}`:`1/${Math.round(e)}`},WhiteBalance(t){return t===0?"Auto white balance":t===1?"Manual white balance":"Unknown"},XResolution:t=>""+Math.round(t[0]/t[1]),YResolution:t=>""+Math.round(t[0]/t[1])},b_={11:"ProcessingSoftware",254:{name:"SubfileType",description:t=>({0:"Full-resolution image",1:"Reduced-resolution image",2:"Single page of multi-page image",3:"Single page of multi-page reduced-resolution image",4:"Transparency mask",5:"Transparency mask of reduced-resolution image",6:"Transparency mask of multi-page image",7:"Transparency mask of reduced-resolution multi-page image",65537:"Alternate reduced-resolution image",4294967295:"Invalid"})[t]||"Unknown"},255:{name:"OldSubfileType",description:t=>({0:"Full-resolution image",1:"Reduced-resolution image",2:"Single page of multi-page image"})[t]||"Unknown"},256:"ImageWidth",257:"ImageLength",258:"BitsPerSample",259:"Compression",262:"PhotometricInterpretation",263:{name:"Thresholding",description:t=>({1:"No dithering or halftoning",2:"Ordered dither or halfton",3:"Randomized dither"})[t]||"Unknown"},264:"CellWidth",265:"CellLength",266:{name:"FillOrder",description:t=>({1:"Normal",2:"Reversed"})[t]||"Unknown"},269:"DocumentName",270:"ImageDescription",271:"Make",272:"Model",273:"StripOffsets",274:{name:"Orientation",description:t=>t===1?"top-left":t===2?"top-right":t===3?"bottom-right":t===4?"bottom-left":t===5?"left-top":t===6?"right-top":t===7?"right-bottom":t===8?"left-bottom":"Undefined"},277:"SamplesPerPixel",278:"RowsPerStrip",279:"StripByteCounts",280:"MinSampleValue",281:"MaxSampleValue",282:{name:"XResolution",description:v.XResolution},283:{name:"YResolution",description:v.YResolution},284:"PlanarConfiguration",285:"PageName",286:{name:"XPosition",description:t=>""+Math.round(t[0]/t[1])},287:{name:"YPosition",description:t=>""+Math.round(t[0]/t[1])},290:{name:"GrayResponseUnit",description:t=>({1:"0.1",2:"0.001",3:"0.0001",4:"1e-05",5:"1e-06"})[t]||"Unknown"},296:{name:"ResolutionUnit",description:v.ResolutionUnit},297:"PageNumber",301:"TransferFunction",305:"Software",306:"DateTime",315:"Artist",316:"HostComputer",317:"Predictor",318:{name:"WhitePoint",description:t=>t.map(e=>`${e[0]}/${e[1]}`).join(", ")},319:{name:"PrimaryChromaticities",description:t=>t.map(e=>`${e[0]}/${e[1]}`).join(", ")},321:"HalftoneHints",322:"TileWidth",323:"TileLength",330:"A100DataOffset",332:{name:"InkSet",description:t=>({1:"CMYK",2:"Not CMYK"})[t]||"Unknown"},337:"TargetPrinter",338:{name:"ExtraSamples",description:t=>({0:"Unspecified",1:"Associated Alpha",2:"Unassociated Alpha"})[t]||"Unknown"},339:{name:"SampleFormat",description:t=>{const e={1:"Unsigned",2:"Signed",3:"Float",4:"Undefined",5:"Complex int",6:"Complex float"};return Array.isArray(t)?t.map(n=>e[n]||"Unknown").join(", "):"Unknown"}},513:"JPEGInterchangeFormat",514:"JPEGInterchangeFormatLength",529:{name:"YCbCrCoefficients",description:t=>t.map(e=>""+e[0]/e[1]).join("/")},530:"YCbCrSubSampling",531:{name:"YCbCrPositioning",description:t=>t===1?"centered":t===2?"co-sited":"undefined "+t},532:{name:"ReferenceBlackWhite",description:t=>t.map(e=>""+e[0]/e[1]).join(", ")},700:"ApplicationNotes",18246:"Rating",18249:"RatingPercent",33432:{name:"Copyright",description:t=>t.join("; ")},33550:"PixelScale",33723:"IPTC-NAA",33920:"IntergraphMatrix",33922:"ModelTiePoint",34118:"SEMInfo",34264:"ModelTransform",34377:"PhotoshopSettings",34665:"Exif IFD Pointer",34675:"ICC_Profile",34735:"GeoTiffDirectory",34736:"GeoTiffDoubleParams",34737:"GeoTiffAsciiParams",34853:"GPS Info IFD Pointer",40091:"XPTitle",40092:"XPComment",40093:"XPAuthor",40094:"XPKeywords",40095:"XPSubject",42112:"GDALMetadata",42113:"GDALNoData",50341:"PrintIM",50707:"DNGBackwardVersion",50708:"UniqueCameraModel",50709:"LocalizedCameraModel",50721:"ColorMatrix1",50722:"ColorMatrix2",50723:"CameraCalibration1",50724:"CameraCalibration2",50725:"ReductionMatrix1",50726:"ReductionMatrix2",50727:"AnalogBalance",50728:"AsShotNeutral",50729:"AsShotWhiteXY",50730:"BaselineExposure",50731:"BaselineNoise",50732:"BaselineSharpness",50734:"LinearResponseLimit",50735:"CameraSerialNumber",50736:"DNGLensInfo",50739:"ShadowScale",50741:{name:"MakerNoteSafety",description:t=>({0:"Unsafe",1:"Safe"})[t]||"Unknown"},50778:{name:"CalibrationIlluminant1",description:v.LightSource},50779:{name:"CalibrationIlluminant2",description:v.LightSource},50781:"RawDataUniqueID",50827:"OriginalRawFileName",50828:"OriginalRawFileData",50831:"AsShotICCProfile",50832:"AsShotPreProfileMatrix",50833:"CurrentICCProfile",50834:"CurrentPreProfileMatrix",50879:"ColorimetricReference",50885:"SRawType",50898:"PanasonicTitle",50899:"PanasonicTitle2",50931:"CameraCalibrationSig",50932:"ProfileCalibrationSig",50933:"ProfileIFD",50934:"AsShotProfileName",50936:"ProfileName",50937:"ProfileHueSatMapDims",50938:"ProfileHueSatMapData1",50939:"ProfileHueSatMapData2",50940:"ProfileToneCurve",50941:{name:"ProfileEmbedPolicy",description:t=>({0:"Allow Copying",1:"Embed if Used",2:"Never Embed",3:"No Restrictions"})[t]||"Unknown"},50942:"ProfileCopyright",50964:"ForwardMatrix1",50965:"ForwardMatrix2",50966:"PreviewApplicationName",50967:"PreviewApplicationVersion",50968:"PreviewSettingsName",50969:"PreviewSettingsDigest",50970:{name:"PreviewColorSpace",description:t=>({1:"Gray Gamma 2.2",2:"sRGB",3:"Adobe RGB",4:"ProPhoto RGB"})[t]||"Unknown"},50971:"PreviewDateTime",50972:"RawImageDigest",50973:"OriginalRawFileDigest",50981:"ProfileLookTableDims",50982:"ProfileLookTableData",51043:"TimeCodes",51044:"FrameRate",51058:"TStop",51081:"ReelName",51089:"OriginalDefaultFinalSize",51090:"OriginalBestQualitySize",51091:"OriginalDefaultCropSize",51105:"CameraLabel",51107:{name:"ProfileHueSatMapEncoding",description:t=>({0:"Linear",1:"sRGB"})[t]||"Unknown"},51108:{name:"ProfileLookTableEncoding",description:t=>({0:"Linear",1:"sRGB"})[t]||"Unknown"},51109:"BaselineExposureOffset",51110:{name:"DefaultBlackRender",description:t=>({0:"Auto",1:"None"})[t]||"Unknown"},51111:"NewRawImageDigest",51112:"RawToPreviewGain"},qC={33434:{name:"ExposureTime",description:v.ExposureTime},33437:{name:"FNumber",description:v.FNumber},34850:{name:"ExposureProgram",description:v.ExposureProgram},34852:"SpectralSensitivity",34855:"ISOSpeedRatings",34856:{name:"OECF",description:()=>"[Raw OECF table data]"},34858:"TimeZoneOffset",34859:"SelfTimerMode",34864:{name:"SensitivityType",description:t=>({1:"Standard Output Sensitivity",2:"Recommended Exposure Index",3:"ISO Speed",4:"Standard Output Sensitivity and Recommended Exposure Index",5:"Standard Output Sensitivity and ISO Speed",6:"Recommended Exposure Index and ISO Speed",7:"Standard Output Sensitivity, Recommended Exposure Index and ISO Speed"})[t]||"Unknown"},34865:"StandardOutputSensitivity",34866:"RecommendedExposureIndex",34867:"ISOSpeed",34868:"ISOSpeedLatitudeyyy",34869:"ISOSpeedLatitudezzz",36864:{name:"ExifVersion",description:t=>me(t)},36867:"DateTimeOriginal",36868:"DateTimeDigitized",36873:"GooglePlusUploadCode",36880:"OffsetTime",36881:"OffsetTimeOriginal",36882:"OffsetTimeDigitized",37121:{name:"ComponentsConfiguration",description:v.ComponentsConfiguration},37122:"CompressedBitsPerPixel",37377:{name:"ShutterSpeedValue",description:v.ShutterSpeedValue},37378:{name:"ApertureValue",description:v.ApertureValue},37379:"BrightnessValue",37380:"ExposureBiasValue",37381:{name:"MaxApertureValue",description:t=>Math.pow(Math.sqrt(2),t[0]/t[1]).toFixed(2)},37382:{name:"SubjectDistance",description:t=>t[0]/t[1]+" m"},37383:{name:"MeteringMode",description:v.MeteringMode},37384:{name:"LightSource",description:v.LightSource},37385:{name:"Flash",description:t=>t===0?"Flash did not fire":t===1?"Flash fired":t===5?"Strobe return light not detected":t===7?"Strobe return light detected":t===9?"Flash fired, compulsory flash mode":t===13?"Flash fired, compulsory flash mode, return light not detected":t===15?"Flash fired, compulsory flash mode, return light detected":t===16?"Flash did not fire, compulsory flash mode":t===24?"Flash did not fire, auto mode":t===25?"Flash fired, auto mode":t===29?"Flash fired, auto mode, return light not detected":t===31?"Flash fired, auto mode, return light detected":t===32?"No flash function":t===65?"Flash fired, red-eye reduction mode":t===69?"Flash fired, red-eye reduction mode, return light not detected":t===71?"Flash fired, red-eye reduction mode, return light detected":t===73?"Flash fired, compulsory flash mode, red-eye reduction mode":t===77?"Flash fired, compulsory flash mode, red-eye reduction mode, return light not detected":t===79?"Flash fired, compulsory flash mode, red-eye reduction mode, return light detected":t===89?"Flash fired, auto mode, red-eye reduction mode":t===93?"Flash fired, auto mode, return light not detected, red-eye reduction mode":t===95?"Flash fired, auto mode, return light detected, red-eye reduction mode":"Unknown"},37386:{name:"FocalLength",description:v.FocalLength},37393:"ImageNumber",37394:{name:"SecurityClassification",description:t=>({C:"Confidential",R:"Restricted",S:"Secret",T:"Top Secret",U:"Unclassified"})[t]||"Unknown"},37395:"ImageHistory",37396:{name:"SubjectArea",description:t=>t.length===2?`Location; X: ${t[0]}, Y: ${t[1]}`:t.length===3?`Circle; X: ${t[0]}, Y: ${t[1]}, diameter: ${t[2]}`:t.length===4?`Rectangle; X: ${t[0]}, Y: ${t[1]}, width: ${t[2]}, height: ${t[3]}`:"Unknown"},37500:{name:"MakerNote",description:()=>"[Raw maker note data]"},37510:{name:"UserComment",description:Ql},37520:"SubSecTime",37521:"SubSecTimeOriginal",37522:"SubSecTimeDigitized",37724:"ImageSourceData",37888:{name:"AmbientTemperature",description:t=>t[0]/t[1]+" °C"},37889:{name:"Humidity",description:t=>t[0]/t[1]+" %"},37890:{name:"Pressure",description:t=>t[0]/t[1]+" hPa"},37891:{name:"WaterDepth",description:t=>t[0]/t[1]+" m"},37892:{name:"Acceleration",description:t=>t[0]/t[1]+" mGal"},37893:{name:"CameraElevationAngle",description:t=>t[0]/t[1]+" °"},40960:{name:"FlashpixVersion",description:t=>t.map(e=>String.fromCharCode(e)).join("")},40961:{name:"ColorSpace",description:v.ColorSpace},40962:"PixelXDimension",40963:"PixelYDimension",40964:"RelatedSoundFile",40965:"Interoperability IFD Pointer",41483:"FlashEnergy",41484:{name:"SpatialFrequencyResponse",description:()=>"[Raw SFR table data]"},41486:"FocalPlaneXResolution",41487:"FocalPlaneYResolution",41488:{name:"FocalPlaneResolutionUnit",description:v.FocalPlaneResolutionUnit},41492:{name:"SubjectLocation",description:([t,e])=>`X: ${t}, Y: ${e}`},41493:"ExposureIndex",41495:{name:"SensingMethod",description:t=>t===1?"Undefined":t===2?"One-chip color area sensor":t===3?"Two-chip color area sensor":t===4?"Three-chip color area sensor":t===5?"Color sequential area sensor":t===7?"Trilinear sensor":t===8?"Color sequential linear sensor":"Unknown"},41728:{name:"FileSource",description:t=>t===3?"DSC":"Unknown"},41729:{name:"SceneType",description:t=>t===1?"A directly photographed image":"Unknown"},41730:{name:"CFAPattern",description:()=>"[Raw CFA pattern table data]"},41985:{name:"CustomRendered",description:v.CustomRendered},41986:{name:"ExposureMode",description:v.ExposureMode},41987:{name:"WhiteBalance",description:v.WhiteBalance},41988:{name:"DigitalZoomRatio",description:t=>t[0]===0?"Digital zoom was not used":""+t[0]/t[1]},41989:{name:"FocalLengthIn35mmFilm",description:t=>t===0?"Unknown":t},41990:{name:"SceneCaptureType",description:v.SceneCaptureType},41991:{name:"GainControl",description:t=>t===0?"None":t===1?"Low gain up":t===2?"High gain up":t===3?"Low gain down":t===4?"High gain down":"Unknown"},41992:{name:"Contrast",description:v.Contrast},41993:{name:"Saturation",description:v.Saturation},41994:{name:"Sharpness",description:v.Sharpness},41995:{name:"DeviceSettingDescription",description:()=>"[Raw device settings table data]"},41996:{name:"SubjectDistanceRange",description:t=>t===1?"Macro":t===2?"Close view":t===3?"Distant view":"Unknown"},42016:"ImageUniqueID",42032:"CameraOwnerName",42033:"BodySerialNumber",42034:{name:"LensSpecification",description:t=>{const e=`${t[0][0]/t[0][1]}-${t[1][0]/t[1][1]} mm`;return t[3][1]===0?`${e} f/?`:`${e} f/${1/(t[2][1]/t[2][1]/(t[3][0]/t[3][1]))}`}},42035:"LensMake",42036:"LensModel",42037:"LensSerialNumber",42080:{name:"CompositeImage",description:t=>({1:"Not a Composite Image",2:"General Composite Image",3:"Composite Image Captured While Shooting"})[t]||"Unknown"},42081:"SourceImageNumberOfCompositeImage",42082:"SourceExposureTimesOfCompositeImage",42240:"Gamma",59932:"Padding",59933:"OffsetSchema",65e3:"OwnerName",65001:"SerialNumber",65002:"Lens",65100:"RawFile",65101:"Converter",65102:"WhiteBalance",65105:"Exposure",65106:"Shadows",65107:"Brightness",65108:"Contrast",65109:"Saturation",65110:"Sharpness",65111:"Smoothness",65112:"MoireFilter"},RC={0:{name:"GPSVersionID",description:t=>t[0]===2&&t[1]===2&&t[2]===0&&t[3]===0?"Version 2.2":"Unknown"},1:{name:"GPSLatitudeRef",description:t=>{const e=t.join("");return e==="N"?"North latitude":e==="S"?"South latitude":"Unknown"}},2:{name:"GPSLatitude",description:Ei},3:{name:"GPSLongitudeRef",description:t=>{const e=t.join("");return e==="E"?"East longitude":e==="W"?"West longitude":"Unknown"}},4:{name:"GPSLongitude",description:Ei},5:{name:"GPSAltitudeRef",description:t=>t===0?"Sea level":t===1?"Sea level reference (negative value)":"Unknown"},6:{name:"GPSAltitude",description:t=>t[0]/t[1]+" m"},7:{name:"GPSTimeStamp",description:t=>t.map(([e,n])=>{const r=e/n;return/^\d(\.|$)/.test(`${r}`)?`0${r}`:r}).join(":")},8:"GPSSatellites",9:{name:"GPSStatus",description:t=>{const e=t.join("");return e==="A"?"Measurement in progress":e==="V"?"Measurement Interoperability":"Unknown"}},10:{name:"GPSMeasureMode",description:t=>{const e=t.join("");return e==="2"?"2-dimensional measurement":e==="3"?"3-dimensional measurement":"Unknown"}},11:"GPSDOP",12:{name:"GPSSpeedRef",description:t=>{const e=t.join("");return e==="K"?"Kilometers per hour":e==="M"?"Miles per hour":e==="N"?"Knots":"Unknown"}},13:"GPSSpeed",14:{name:"GPSTrackRef",description:t=>{const e=t.join("");return e==="T"?"True direction":e==="M"?"Magnetic direction":"Unknown"}},15:"GPSTrack",16:{name:"GPSImgDirectionRef",description:t=>{const e=t.join("");return e==="T"?"True direction":e==="M"?"Magnetic direction":"Unknown"}},17:"GPSImgDirection",18:"GPSMapDatum",19:{name:"GPSDestLatitudeRef",description:t=>{const e=t.join("");return e==="N"?"North latitude":e==="S"?"South latitude":"Unknown"}},20:{name:"GPSDestLatitude",description:t=>t[0][0]/t[0][1]+t[1][0]/t[1][1]/60+t[2][0]/t[2][1]/3600},21:{name:"GPSDestLongitudeRef",description:t=>{const e=t.join("");return e==="E"?"East longitude":e==="W"?"West longitude":"Unknown"}},22:{name:"GPSDestLongitude",description:t=>t[0][0]/t[0][1]+t[1][0]/t[1][1]/60+t[2][0]/t[2][1]/3600},23:{name:"GPSDestBearingRef",description:t=>{const e=t.join("");return e==="T"?"True direction":e==="M"?"Magnetic direction":"Unknown"}},24:"GPSDestBearing",25:{name:"GPSDestDistanceRef",description:t=>{const e=t.join("");return e==="K"?"Kilometers":e==="M"?"Miles":e==="N"?"Knots":"Unknown"}},26:"GPSDestDistance",27:{name:"GPSProcessingMethod",description:Ql},28:{name:"GPSAreaInformation",description:Ql},29:"GPSDateStamp",30:{name:"GPSDifferential",description:t=>t===0?"Measurement without differential correction":t===1?"Differential correction applied":"Unknown"},31:"GPSHPositioningError"},UC={1:"InteroperabilityIndex",2:{name:"InteroperabilityVersion",description:t=>me(t)},4096:"RelatedImageFileFormat",4097:"RelatedImageWidth",4098:"RelatedImageHeight"},jC={45056:{name:"MPFVersion",description:t=>me(t)},45057:"NumberOfImages",45058:"MPEntry",45059:"ImageUIDList",45060:"TotalFrames"},w_=j({},b_,qC),sa="0th",k_="1st",x_="exif",S_="gps",C_="interoperability",E_="mpf",en={[sa]:w_,[k_]:b_,[x_]:w_,[S_]:RC,[C_]:UC,[E_]:jC},T_={1:1,2:1,3:2,4:4,5:8,7:1,9:4,10:8,13:4},la={BYTE:1,ASCII:2,SHORT:3,LONG:4,RATIONAL:5,UNDEFINED:7,SLONG:9,SRATIONAL:10,IFD:13},$={getAsciiValue:zC,getByteAt:N_,getAsciiAt:HC,getShortAt:GC,getLongAt:$i,getRationalAt:ZC,getUndefinedAt:WC,getSlongAt:aa,getSrationalAt:YC,getIfdPointerAt:QC,typeSizes:T_,tagTypes:la,getTypeSize:KC};function zC(t){return t.map(e=>String.fromCharCode(e))}function N_(t,e){return t.getUint8(e)}function HC(t,e){return t.getUint8(e)}function GC(t,e,n){return t.getUint16(e,n===Fn.LITTLE_ENDIAN)}function $i(t,e,n){return t.getUint32(e,n===Fn.LITTLE_ENDIAN)}function ZC(t,e,n){return[$i(t,e,n),$i(t,e+4,n)]}function WC(t,e){return N_(t,e)}function aa(t,e,n){return t.getInt32(e,n===Fn.LITTLE_ENDIAN)}function YC(t,e,n){return[aa(t,e,n),aa(t,e+4,n)]}function QC(t,e,n){return $i(t,e,n)}function KC(t){if(la[t]===void 0)throw new Error("No such type found.");return T_[la[t]]}const XC={1:$.getByteAt,2:$.getAsciiAt,3:$.getShortAt,4:$.getLongAt,5:$.getRationalAt,7:$.getUndefinedAt,9:$.getSlongAt,10:$.getSrationalAt,13:$.getIfdPointerAt};function B_(t,e,n){return e+$.getLongAt(t,e+4,n)}function kr(t,e,n,r,o,s){const l=$.getTypeSize("SHORT"),a=12,c={},u=JC(t,r,o);r+=l;for(let d=0;d<u&&!(r+a>t.byteLength);d++){const f=e3(t,e,n,r,o,s);f!==void 0&&(c[f.name]={id:f.id,value:f.value,description:f.description}),r+=a}if(r<t.byteLength-$.getTypeSize("LONG")){const d=$.getLongAt(t,r,o);d!==0&&e===sa&&(c.Thumbnail=kr(t,k_,n,n+d,o,!0))}return c}function JC(t,e,n){return e+$.getTypeSize("SHORT")<=t.byteLength?$.getShortAt(t,e,n):0}function e3(t,e,n,r,o,s){const a=$.getTypeSize("SHORT"),c=a+$.getTypeSize("SHORT"),u=c+$.getTypeSize("LONG"),d=$.getShortAt(t,r,o),f=$.getShortAt(t,r+a,o),h=$.getLongAt(t,r+c,o);let _;if($.typeSizes[f]===void 0||!s&&en[e][d]===void 0)return;if(t3(f,h))_=I_(t,r+u,f,h,o);else{const g=$.getLongAt(t,r+u,o);if(n3(t,n,g,f,h)){const x=d===33723;_=I_(t,n+g,f,h,o,x)}else _="<faulty value>"}f===$.tagTypes.ASCII&&(_=r3(_),_=o3(_));let p=`undefined-${d}`,m=_;if(en[e][d]!==void 0)if(en[e][d].name!==void 0&&en[e][d].description!==void 0){p=en[e][d].name;try{m=en[e][d].description(_)}catch{m=$_(_)}}else f===$.tagTypes.RATIONAL||f===$.tagTypes.SRATIONAL?(p=en[e][d],m=""+_[0]/_[1]):(p=en[e][d],m=$_(_));return{id:d,name:p,value:_,description:m}}function t3(t,e){return $.typeSizes[t]*e<=$.getTypeSize("LONG")}function I_(t,e,n,r,o,s=!1){let l=[];s&&(r=r*$.typeSizes[n],n=$.tagTypes.BYTE);for(let a=0;a<r;a++)l.push(XC[n](t,e,o)),e+=$.typeSizes[n];return n===$.tagTypes.ASCII?l=$.getAsciiValue(l):l.length===1&&(l=l[0]),l}function n3(t,e,n,r,o){return e+n+$.typeSizes[r]*o<=t.byteLength}function r3(t){const e=[];let n=0;for(let r=0;r<t.length;r++){if(t[r]==="\0"){n++;continue}e[n]===void 0&&(e[n]=""),e[n]+=t[r]}return e}function o3(t){try{return t.map(e=>decodeURIComponent(escape(e)))}catch{return t}}function $_(t){return t instanceof Array?t.join(", "):t}const F_="Exif IFD Pointer",A_="GPS Info IFD Pointer",O_="Interoperability IFD Pointer",D_={read:i3};function i3(t,e,n){const r=Fn.getByteOrder(t,e);let o=s3(t,e,r,n);return o=l3(o,t,e,r,n),o=a3(o,t,e,r,n),o=c3(o,t,e,r,n),o}function s3(t,e,n,r){return kr(t,sa,e,B_(t,e,n),n,r)}function l3(t,e,n,r,o){return t[F_]!==void 0?j(t,kr(e,x_,n,n+t[F_].value,r,o)):t}function a3(t,e,n,r,o){return t[A_]!==void 0?j(t,kr(e,S_,n,n+t[A_].value,r,o)):t}function c3(t,e,n,r,o){return t[O_]!==void 0?j(t,kr(e,C_,n,n+t[O_].value,r,o)):t}const u3={read:d3},xr=16;function d3(t,e,n){const r=Fn.getByteOrder(t,e),o=kr(t,E_,e,B_(t,e,r),r,n);return f3(t,e,o,r)}function f3(t,e,n,r){if(!n.MPEntry)return n;const o=[];for(let s=0;s<Math.ceil(n.MPEntry.value.length/xr);s++){o[s]={};const l=fo(n.MPEntry.value,s*xr,$.getTypeSize("LONG"),r);o[s].ImageFlags=h3(l),o[s].ImageFormat=_3(l),o[s].ImageType=m3(l);const a=fo(n.MPEntry.value,s*xr+4,$.getTypeSize("LONG"),r);o[s].ImageSize={value:a,description:""+a};const c=p3(s,n.MPEntry,r,e);o[s].ImageOffset={value:c,description:""+c};const u=fo(n.MPEntry.value,s*xr+12,$.getTypeSize("SHORT"),r);o[s].DependentImage1EntryNumber={value:u,description:""+u};const d=fo(n.MPEntry.value,s*xr+14,$.getTypeSize("SHORT"),r);o[s].DependentImage2EntryNumber={value:d,description:""+d},o[s].image=t.buffer.slice(c,c+a),qh(o[s],"base64",function(){return Rh(this.image)})}return n.Images=o,n}function fo(t,e,n,r){if(r===Fn.LITTLE_ENDIAN){let s=0;for(let l=0;l<n;l++)s+=t[e+l]<<8*l;return s}let o=0;for(let s=0;s<n;s++)o+=t[e+s]<<8*(n-1-s);return o}function h3(t){const e=[t>>31&1,t>>30&1,t>>29&1],n=[];return e[0]&&n.push("Dependent Parent Image"),e[1]&&n.push("Dependent Child Image"),e[2]&&n.push("Representative Image"),{value:e,description:n.join(", ")||"None"}}function _3(t){const e=t>>24&7;return{value:e,description:e===0?"JPEG":"Unknown"}}function m3(t){const e=t&16777215;return{value:e,description:{196608:"Baseline MP Primary Image",65537:"Large Thumbnail (VGA equivalent)",65538:"Large Thumbnail (Full HD equivalent)",131073:"Multi-Frame Image (Panorama)",131074:"Multi-Frame Image (Disparity)",131075:"Multi-Frame Image (Multi-Angle)",0:"Undefined"}[e]||"Unknown"}}function p3(t,e,n,r){return g3(t)?0:fo(e.value,t*xr+8,$.getTypeSize("LONG"),n)+r}function g3(t){return t===0}const y3={read:b3};function b3(t,e){const n=w3(t,e),r=C3(t,e,n);return{"Bits Per Sample":k3(t,e,n),"Image Height":x3(t,e,n),"Image Width":S3(t,e,n),"Color Components":r,Subsampling:r&&E3(t,e,r.value,n)}}function w3(t,e){return $.getShortAt(t,e)}function k3(t,e,n){if(3>n)return;const s=$.getByteAt(t,e+2);return{value:s,description:""+s}}function x3(t,e,n){if(5>n)return;const s=$.getShortAt(t,e+3);return{value:s,description:`${s}px`}}function S3(t,e,n){if(7>n)return;const s=$.getShortAt(t,e+5);return{value:s,description:`${s}px`}}function C3(t,e,n){if(8>n)return;const s=$.getByteAt(t,e+7);return{value:s,description:""+s}}function E3(t,e,n,r){if(8+3*n>r)return;const l=[];for(let a=0;a<n;a++){const c=e+8+a*3;l.push([$.getByteAt(t,c),$.getByteAt(t,c+1),$.getByteAt(t,c+2)])}return{value:l,description:l.length>1?T3(l)+N3(l):""}}function T3(t){const e={1:"Y",2:"Cb",3:"Cr",4:"I",5:"Q"};return t.map(n=>e[n[0]]).join("")}function N3(t){const e={17:"4:4:4 (1 1)",18:"4:4:0 (1 2)",20:"4:4:1 (1 4)",33:"4:2:2 (2 1)",34:"4:2:0 (2 2)",36:"4:2:1 (2 4)",65:"4:1:1 (4 1)",66:"4:1:0 (4 2)"};return t.length===0||t[0][1]===void 0||e[t[0][1]]===void 0?"":e[t[0][1]]}const B3={read:I3};function I3(t,e){const n=$3(t,e),r=M3(t,e,n),o=L3(t,e,n),s={"JFIF Version":F3(t,e,n),"Resolution Unit":A3(t,e,n),XResolution:D3(t,e,n),YResolution:P3(t,e,n),"JFIF Thumbnail Width":r,"JFIF Thumbnail Height":o};if(r!==void 0&&o!==void 0){const l=v3(t,e,3*r.value*o.value,n);l&&(s["JFIF Thumbnail"]=l)}for(const l in s)s[l]===void 0&&delete s[l];return s}function $3(t,e){return $.getShortAt(t,e)}function F3(t,e,n){if(9>n)return;const s=$.getByteAt(t,e+7),l=$.getByteAt(t,e+7+1);return{value:s*256+l,description:s+"."+l}}function A3(t,e,n){if(10>n)return;const s=$.getByteAt(t,e+9);return{value:s,description:O3(s)}}function O3(t){return t===0?"None":t===1?"inches":t===2?"cm":"Unknown"}function D3(t,e,n){if(12>n)return;const s=$.getShortAt(t,e+10);return{value:s,description:""+s}}function P3(t,e,n){if(14>n)return;const s=$.getShortAt(t,e+12);return{value:s,description:""+s}}function M3(t,e,n){if(15>n)return;const s=$.getByteAt(t,e+14);return{value:s,description:`${s}px`}}function L3(t,e,n){if(16>n)return;const s=$.getByteAt(t,e+15);return{value:s,description:`${s}px`}}function v3(t,e,n,r){return n===0||16+n>r?void 0:{value:t.buffer.slice(e+16,e+16+n),description:"<24-bit RGB pixel data>"}}const tn={iptc:{256:{name:"Model Version",description:t=>((t[0]<<8)+t[1]).toString()},261:{name:"Destination",repeatable:!0},276:{name:"File Format",description:t=>((t[0]<<8)+t[1]).toString()},278:{name:"File Format Version",description:t=>((t[0]<<8)+t[1]).toString()},286:"Service Identifier",296:"Envelope Number",306:"Product ID",316:"Envelope Priority",326:{name:"Date Sent",description:ca},336:{name:"Time Sent",description:ua},346:{name:"Coded Character Set",description:P_,encoding_name:P_},356:"UNO",376:{name:"ARM Identifier",description:t=>((t[0]<<8)+t[1]).toString()},378:{name:"ARM Version",description:t=>((t[0]<<8)+t[1]).toString()},512:{name:"Record Version",description:t=>((t[0]<<8)+t[1]).toString()},515:"Object Type Reference",516:"Object Attribute Reference",517:"Object Name",519:"Edit Status",520:{name:"Editorial Update",description:t=>me(t)==="01"?"Additional Language":"Unknown"},522:"Urgency",524:{name:"Subject Reference",repeatable:!0,description:t=>{const e=me(t).split(":");return e[2]+(e[3]?"/"+e[3]:"")+(e[4]?"/"+e[4]:"")}},527:"Category",532:{name:"Supplemental Category",repeatable:!0},534:"Fixture Identifier",537:{name:"Keywords",repeatable:!0},538:{name:"Content Location Code",repeatable:!0},539:{name:"Content Location Name",repeatable:!0},542:"Release Date",547:"Release Time",549:"Expiration Date",550:"Expiration Time",552:"Special Instructions",554:{name:"Action Advised",description:t=>{const e=me(t);return e==="01"?"Object Kill":e==="02"?"Object Replace":e==="03"?"Object Append":e==="04"?"Object Reference":"Unknown"}},557:{name:"Reference Service",repeatable:!0},559:{name:"Reference Date",repeatable:!0},562:{name:"Reference Number",repeatable:!0},567:{name:"Date Created",description:ca},572:{name:"Time Created",description:ua},574:{name:"Digital Creation Date",description:ca},575:{name:"Digital Creation Time",description:ua},577:"Originating Program",582:"Program Version",587:{name:"Object Cycle",description:t=>{const e=me(t);return e==="a"?"morning":e==="p"?"evening":e==="b"?"both":"Unknown"}},592:{name:"By-line",repeatable:!0},597:{name:"By-line Title",repeatable:!0},602:"City",604:"Sub-location",607:"Province/State",612:"Country/Primary Location Code",613:"Country/Primary Location Name",615:"Original Transmission Reference",617:"Headline",622:"Credit",627:"Source",628:"Copyright Notice",630:{name:"Contact",repeatable:!0},632:"Caption/Abstract",634:{name:"Writer/Editor",repeatable:!0},637:{name:"Rasterized Caption",description:t=>t},642:"Image Type",643:{name:"Image Orientation",description:t=>{const e=me(t);return e==="P"?"Portrait":e==="L"?"Landscape":e==="S"?"Square":"Unknown"}},647:"Language Identifier",662:{name:"Audio Type",description:t=>{const e=me(t),n=e.charAt(0),r=e.charAt(1);let o="";return n==="1"?o+="Mono":n==="2"&&(o+="Stereo"),r==="A"?o+=", actuality":r==="C"?o+=", question and answer session":r==="M"?o+=", music, transmitted by itself":r==="Q"?o+=", response to a question":r==="R"?o+=", raw sound":r==="S"?o+=", scener":r==="V"?o+=", voicer":r==="W"&&(o+=", wrap"),o!==""?o:e}},663:{name:"Audio Sampling Rate",description:t=>parseInt(me(t),10)+" Hz"},664:{name:"Audio Sampling Resolution",description:t=>{const e=parseInt(me(t),10);return e+(e===1?" bit":" bits")}},665:{name:"Audio Duration",description:t=>{const e=me(t);return e.length>=6?e.substr(0,2)+":"+e.substr(2,2)+":"+e.substr(4,2):e}},666:"Audio Outcue",698:"Short Document ID",699:"Unique Document ID",700:"Owner ID",712:{name:t=>t.length===2?"ObjectData Preview File Format":"Record 2 destination",description:t=>{if(t.length===2){const e=(t[0]<<8)+t[1];return e===0?"No ObjectData":e===1?"IPTC-NAA Digital Newsphoto Parameter Record":e===2?"IPTC7901 Recommended Message Format":e===3?"Tagged Image File Format (Adobe/Aldus Image data)":e===4?"Illustrator (Adobe Graphics data)":e===5?"AppleSingle (Apple Computer Inc)":e===6?"NAA 89-3 (ANPA 1312)":e===7?"MacBinary II":e===8?"IPTC Unstructured Character Oriented File Format (UCOFF)":e===9?"United Press International ANPA 1312 variant":e===10?"United Press International Down-Load Message":e===11?"JPEG File Interchange (JFIF)":e===12?"Photo-CD Image-Pac (Eastman Kodak)":e===13?"Microsoft Bit Mapped Graphics File [*.BMP]":e===14?"Digital Audio File [*.WAV] (Microsoft & Creative Labs)":e===15?"Audio plus Moving Video [*.AVI] (Microsoft)":e===16?"PC DOS/Windows Executable Files [*.COM][*.EXE]":e===17?"Compressed Binary File [*.ZIP] (PKWare Inc)":e===18?"Audio Interchange File Format AIFF (Apple Computer Inc)":e===19?"RIFF Wave (Microsoft Corporation)":e===20?"Freehand (Macromedia/Aldus)":e===21?'Hypertext Markup Language "HTML" (The Internet Society)':e===22?"MPEG 2 Audio Layer 2 (Musicom), ISO/IEC":e===23?"MPEG 2 Audio Layer 3, ISO/IEC":e===24?"Portable Document File (*.PDF) Adobe":e===25?"News Industry Text Format (NITF)":e===26?"Tape Archive (*.TAR)":e===27?"Tidningarnas Telegrambyrå NITF version (TTNITF DTD)":e===28?"Ritzaus Bureau NITF version (RBNITF DTD)":e===29?"Corel Draw [*.CDR]":`Unknown format ${e}`}return me(t)}},713:{name:"ObjectData Preview File Format Version",description:(t,e)=>{const n={"00":{"00":"1"},"01":{"01":"1","02":"2","03":"3","04":"4"},"02":{"04":"4"},"03":{"01":"5.0","02":"6.0"},"04":{"01":"1.40"},"05":{"01":"2"},"06":{"01":"1"},11:{"01":"1.02"},20:{"01":"3.1","02":"4.0","03":"5.0","04":"5.5"},21:{"02":"2.0"}},r=me(t);if(e["ObjectData Preview File Format"]){const o=me(e["ObjectData Preview File Format"].value);if(n[o]&&n[o][r])return n[o][r]}return r}},714:"ObjectData Preview Data",1802:{name:"Size Mode",description:t=>t[0].toString()},1812:{name:"Max Subfile Size",description:t=>{let e=0;for(let n=0;n<t.length;n++)e=(e<<8)+t[n];return e.toString()}},1882:{name:"ObjectData Size Announced",description:t=>{let e=0;for(let n=0;n<t.length;n++)e=(e<<8)+t[n];return e.toString()}},1887:{name:"Maximum ObjectData Size",description:t=>{let e=0;for(let n=0;n<t.length;n++)e=(e<<8)+t[n];return e.toString()}}}};function ca(t){const e=me(t);return e.length>=8?e.substr(0,4)+"-"+e.substr(4,2)+"-"+e.substr(6,2):e}function ua(t){const e=me(t);let n=e;return e.length>=6&&(n=e.substr(0,2)+":"+e.substr(2,2)+":"+e.substr(4,2),e.length===11&&(n+=e.substr(6,1)+e.substr(7,2)+":"+e.substr(9,2))),n}function P_(t){const e=me(t);return e==="\x1B%G"?"UTF-8":e==="\x1B%5"?"Windows-1252":e==="\x1B%/G"?"UTF-8 Level 1":e==="\x1B%/H"?"UTF-8 Level 2":e==="\x1B%/I"?"UTF-8 Level 3":e==="\x1B/A"?"ISO-8859-1":e==="\x1B/B"?"ISO-8859-2":e==="\x1B/C"?"ISO-8859-3":e==="\x1B/D"?"ISO-8859-4":e==="\x1B/@"?"ISO-8859-5":e==="\x1B/G"?"ISO-8859-6":e==="\x1B/F"?"ISO-8859-7":e==="\x1B/H"?"ISO-8859-8":"Unknown"}const V3={get:q3};function q3(){if(typeof TextDecoder<"u")return TextDecoder}const M_={decode:R3,TAG_HEADER_SIZE:5};function R3(t,e){const n=V3.get();if(typeof n<"u"&&t!==void 0)try{return new n(t).decode(e instanceof DataView?e.buffer:Uint8Array.from(e))}catch{}const r=e.map(o=>String.fromCharCode(o)).join("");return U3(r)}function U3(t){try{return decodeURIComponent(escape(t))}catch{return t}}const j3=943868237,L_=4,da=L_+8,z3=1028,v_=5,fa={read:H3};function H3(t,e,n){try{if(Array.isArray(t))return V_(new DataView(Uint8Array.from(t).buffer),{size:t.length},0,n);const{naaBlock:r,dataOffset:o}=G3(t,e);return V_(t,r,o,n)}catch{return{}}}function G3(t,e){for(;e+da<=t.byteLength;){const n=Z3(t,e);if(W3(n))return{naaBlock:n,dataOffset:e+da};e+=da+n.size+Y3(n)}throw new Error("No IPTC NAA resource block.")}function Z3(t,e){if(t.getUint32(e,!1)!==j3)throw new Error("Not an IPTC resource block.");return{type:t.getUint16(e+L_),size:t.getUint16(e+10)}}function W3(t){return t.type===z3}function Y3(t){return t.size%2!==0?1:0}function V_(t,e,n,r){const o={};let s;const l=n+e.size;for(;n<l&&n<t.byteLength;){const{tag:a,tagSize:c}=Q3(t,n,o,s,r);if(a===null)break;a&&("encoding"in a&&(s=a.encoding),o[a.name]===void 0||a.repeatable===void 0?o[a.name]={id:a.id,value:a.value,description:a.description}:(o[a.name]instanceof Array||(o[a.name]=[{id:o[a.name].id,value:o[a.name].value,description:o[a.name].description}]),o[a.name].push({id:a.id,value:a.value,description:a.description}))),n+=v_+c}return o}function Q3(t,e,n,r,o){if(K3(t,e))return{tag:null,tagSize:0};const a=t.getUint16(e+1),c=t.getUint16(e+3);if(!o&&!tn.iptc[a])return{tag:void 0,tagSize:c};const u=X3(t,e+v_,c),d={id:a,name:J3(tn.iptc[a],a,u),value:u,description:nE(tn.iptc[a],u,n,r)};return iE(a)&&(d.repeatable=!0),sE(a)&&(d.encoding=tn.iptc[a].encoding_name(u)),{tag:d,tagSize:c}}function K3(t,e){return t.getUint8(e)!==28}function X3(t,e,n){const r=[];for(let o=0;o<n;o++)r.push(t.getUint8(e+o));return r}function J3(t,e,n){return t?eE(t)?t:tE(t)?t.name(n):t.name:`undefined-${e}`}function eE(t){return typeof t=="string"}function tE(t){return typeof t.name=="function"}function nE(t,e,n,r){if(oE(t))try{return t.description(e,n)}catch{}return rE(t,e)?M_.decode(r,e):e}function rE(t,e){return t&&e instanceof Array}function oE(t){return t&&t.description!==void 0}function iE(t){return tn.iptc[t]&&tn.iptc[t].repeatable}function sE(t){return tn.iptc[t]&&tn.iptc[t].encoding_name!==void 0}const Fi={"tiff:Orientation"(t){return t==="1"?"Horizontal (normal)":t==="2"?"Mirror horizontal":t==="3"?"Rotate 180":t==="4"?"Mirror vertical":t==="5"?"Mirror horizontal and rotate 270 CW":t==="6"?"Rotate 90 CW":t==="7"?"Mirror horizontal and rotate 90 CW":t==="8"?"Rotate 270 CW":t},"tiff:ResolutionUnit":t=>v.ResolutionUnit(parseInt(t,10)),"tiff:XResolution":t=>Sr(v.XResolution,t),"tiff:YResolution":t=>Sr(v.YResolution,t),"exif:ApertureValue":t=>Sr(v.ApertureValue,t),"exif:GPSLatitude":R_,"exif:GPSLongitude":R_,"exif:FNumber":t=>Sr(v.FNumber,t),"exif:FocalLength":t=>Sr(v.FocalLength,t),"exif:FocalPlaneResolutionUnit":t=>v.FocalPlaneResolutionUnit(parseInt(t,10)),"exif:ColorSpace":t=>v.ColorSpace(lE(t)),"exif:ComponentsConfiguration"(t,e){if(/^\d, \d, \d, \d$/.test(e)){const n=e.split(", ").map(r=>r.charCodeAt(0));return v.ComponentsConfiguration(n)}return e},"exif:Contrast":t=>v.Contrast(parseInt(t,10)),"exif:CustomRendered":t=>v.CustomRendered(parseInt(t,10)),"exif:ExposureMode":t=>v.ExposureMode(parseInt(t,10)),"exif:ExposureProgram":t=>v.ExposureProgram(parseInt(t,10)),"exif:ExposureTime"(t){return q_(t)?v.ExposureTime(t.split("/").map(e=>parseInt(e,10))):t},"exif:MeteringMode":t=>v.MeteringMode(parseInt(t,10)),"exif:Saturation":t=>v.Saturation(parseInt(t,10)),"exif:SceneCaptureType":t=>v.SceneCaptureType(parseInt(t,10)),"exif:Sharpness":t=>v.Sharpness(parseInt(t,10)),"exif:ShutterSpeedValue":t=>Sr(v.ShutterSpeedValue,t),"exif:WhiteBalance":t=>v.WhiteBalance(parseInt(t,10))};function Sr(t,e){return q_(e)?t(e.split("/")):e}function lE(t){return t.substring(0,2)==="0x"?parseInt(t.substring(2),16):parseInt(t,10)}function q_(t){return/^-?\d+\/-?\d+$/.test(t)}function R_(t){const[e,n]=t.split(",");if(e!==void 0&&n!==void 0){const r=parseFloat(e),o=parseFloat(n),s=n.charAt(n.length-1);if(!Number.isNaN(r)&&!Number.isNaN(o))return""+(r+o/60)+s}return t}const aE={get:cE};function cE(){if(typeof DOMParser<"u")return new DOMParser;try{return new(__non_webpack_require__("@xmldom/xmldom")).DOMParser({errorHandler:{error:()=>{throw new Error("Faulty XML")}}})}catch{return}}const U_={read:uE};function uE(t,e){const n={};if(typeof t=="string")return Ai(n,t),n;const[r,o]=dE(t,e),s=Ai(n,r);if(o){const l=Ai(n,o);!s&&!l&&(delete n._raw,Ai(n,ha(t,e)))}return n}function dE(t,e){if(e.length===0)return[];const n=[ha(t,e.slice(0,1))];return e.length>1&&n.push(ha(t,e.slice(1))),n}function ha(t,e){const n=e.reduce((s,l)=>s+l.length,0),r=new Uint8Array(n);let o=0;for(let s=0;s<e.length;s++){const l=e[s],a=t.buffer.slice(l.dataOffset,l.dataOffset+l.length);r.set(new Uint8Array(a),o),o+=l.length}return new DataView(r.buffer)}function Ai(t,e){try{const{doc:n,raw:r}=fE(e);t._raw=(t._raw||"")+r;const o=j_(n);return j(t,H_(z_(o,!0))),!0}catch{return!1}}function fE(t){const e=aE.get();if(!e)throw console.warn("Warning: DOMParser is not available. It is needed to be able to parse XMP tags."),new Error;const n=typeof t=="string"?t:V(t,0,t.byteLength),r=e.parseFromString(hE(n),"application/xml");if(r.documentElement.nodeName==="parsererror")throw new Error(r.documentElement.textContent);return{doc:r,raw:n}}function hE(t){return t.replace(/^.+(<\?xpacket begin)/,"$1").replace(/(<\?xpacket end=".*"\?>).+$/,"$1")}function j_(t){for(let e=0;e<t.childNodes.length;e++){if(t.childNodes[e].tagName==="x:xmpmeta")return j_(t.childNodes[e]);if(t.childNodes[e].tagName==="rdf:RDF")return t.childNodes[e]}throw new Error}function z_(t,e=!1){const n=_E(t);return mE(n)?e?{}:pE(n[0]):gE(n)}function _E(t){const e=[];for(let n=0;n<t.childNodes.length;n++)e.push(t.childNodes[n]);return e}function mE(t){return t.length===1&&t[0].nodeName==="#text"}function pE(t){return t.nodeValue}function gE(t){const e={};return t.forEach(n=>{if(yE(n)){const r=bE(n);e[n.nodeName]!==void 0?(Array.isArray(e[n.nodeName])||(e[n.nodeName]=[e[n.nodeName]]),e[n.nodeName].push(r)):e[n.nodeName]=r}}),e}function yE(t){return t.nodeName&&t.nodeName!=="#text"}function bE(t){return{attributes:wE(t),value:z_(t)}}function wE(t){const e={};for(let n=0;n<t.attributes.length;n++)e[t.attributes[n].nodeName]=decodeURIComponent(escape(t.attributes[n].value));return e}function H_(t){const e={};if(typeof t=="string")return t;for(const n in t){let r=t[n];Array.isArray(r)||(r=[r]),r.forEach(o=>{j(e,_a(o.attributes)),typeof o.value=="object"&&j(e,G_(o.value))})}return e}function _a(t){const e={};for(const n in t)try{kE(n)&&(e[Di(n)]={value:t[n],attributes:{},description:Ot(t[n],n)})}catch{}return e}function kE(t){return t!=="rdf:parseType"&&!Oi(t)}function Oi(t){return t.split(":")[0]==="xmlns"}function Di(t){return/^MicrosoftPhoto(_\d+_)?:Rating$/i.test(t)?"RatingPercent":t.split(":")[1]}function Ot(t,e=void 0){if(Array.isArray(t)){const n=xE(t);return e&&typeof Fi[e]=="function"?Fi[e](t,n):n}if(typeof t=="object")return SE(t);try{return e&&typeof Fi[e]=="function"?Fi[e](t):decodeURIComponent(escape(t))}catch{return t}}function xE(t){return t.map(e=>e.value!==void 0?Ot(e.value):Ot(e)).join(", ")}function SE(t){const e=[];for(const n in t)e.push(`${CE(n)}: ${Ot(t[n].value)}`);return e.join("; ")}function CE(t){return t==="CiAdrCity"?"CreatorCity":t==="CiAdrCtry"?"CreatorCountry":t==="CiAdrExtadr"?"CreatorAddress":t==="CiAdrPcode"?"CreatorPostalCode":t==="CiAdrRegion"?"CreatorRegion":t==="CiEmailWork"?"CreatorWorkEmail":t==="CiTelWork"?"CreatorWorkPhone":t==="CiUrlWork"?"CreatorWorkUrl":t}function G_(t){const e={};for(const n in t)try{Oi(n)||(e[Di(n)]=EE(t[n],n))}catch{}return e}function EE(t,e){return NE(t)?BE(t,e):TE(t)?{value:"",attributes:{},description:""}:Z_(t)?W_(t,e):Y_(t)?Q_(t,e):K_(t)?X_(t,e):FE(t)?AE(t,e):ma(t,e)}function TE(t){return t.attributes["rdf:parseType"]==="Resource"&&typeof t.value=="string"&&t.value.trim()===""}function NE(t){return Array.isArray(t)}function BE(t,e){return ma(t[t.length-1],e)}function Z_(t){return t.attributes["rdf:parseType"]==="Resource"&&t.value["rdf:value"]!==void 0||t.value["rdf:Description"]!==void 0&&t.value["rdf:Description"].value["rdf:value"]!==void 0}function W_(t,e){const n=ho(t);t.value["rdf:Description"]!==void 0&&(t=t.value["rdf:Description"]),j(n,ho(t),IE(t));const r=$E(t);return{value:r,attributes:n,description:Ot(r,e)}}function ho(t){const e={};for(const n in t.attributes)n!=="rdf:parseType"&&n!=="rdf:resource"&&!Oi(n)&&(e[Di(n)]=t.attributes[n]);return e}function IE(t){const e={};for(const n in t.value)n!=="rdf:value"&&!Oi(n)&&(e[Di(n)]=t.value[n].value);return e}function $E(t){return e1(t.value["rdf:value"])||t.value["rdf:value"].value}function Y_(t){return t.attributes["rdf:parseType"]==="Resource"||t.value["rdf:Description"]!==void 0&&t.value["rdf:Description"].value["rdf:value"]===void 0}function Q_(t,e){const n={value:{},attributes:{}};return t.value["rdf:Description"]!==void 0&&(j(n.value,_a(t.value["rdf:Description"].attributes)),j(n.attributes,ho(t)),t=t.value["rdf:Description"]),j(n.value,G_(t.value)),n.description=Ot(n.value,e),n}function K_(t){return Object.keys(t.value).length===0&&t.attributes["xml:lang"]===void 0&&t.attributes["rdf:resource"]===void 0}function X_(t,e){const n=_a(t.attributes);return{value:n,attributes:{},description:Ot(n,e)}}function FE(t){return J_(t.value)!==void 0}function J_(t){return t["rdf:Bag"]||t["rdf:Seq"]||t["rdf:Alt"]}function AE(t,e){let n=J_(t.value).value["rdf:li"];const r=ho(t),o=[];return n===void 0?n=[]:Array.isArray(n)||(n=[n]),n.forEach(s=>{o.push(OE(s))}),{value:o,attributes:r,description:Ot(o,e)}}function OE(t){return Z_(t)?W_(t):Y_(t)?Q_(t).value:K_(t)?X_(t).value:ma(t)}function ma(t,e){const n=e1(t)||H_(t.value);return{value:n,attributes:ho(t),description:Ot(n,e)}}function e1(t){return t.attributes&&t.attributes["rdf:resource"]}const Dt={CLOSED_SUBPATH_LENGTH:0,CLOSED_SUBPATH_BEZIER_LINKED:1,CLOSED_SUBPATH_BEZIER_UNLINKED:2,OPEN_SUBPATH_LENGTH:3,OPEN_SUBPATH_BEZIER_LINKED:4,OPEN_SUBPATH_BEZIER_UNLINKED:5,FILL_RULE:6,CLIPBOARD:7,INITIAL_FILL_RULE:8},t1=24,pa={2e3:{name:"PathInformation",description:DE},2999:{name:"ClippingPathName",description(t){const[,e]=Vh(t,0);return e}}};function DE(t){const n={},r=[];for(let o=0;o<t.byteLength;o+=2+t1){const s=$.getShortAt(t,o);ga[s]&&(n[s]||(n[s]=ga[s].description),r.push({type:s,path:ga[s].path(t,o+2)}))}return JSON.stringify({types:n,paths:r})}const ga={[Dt.CLOSED_SUBPATH_LENGTH]:{description:"Closed subpath length",path:(t,e)=>[$.getShortAt(t,e)]},[Dt.CLOSED_SUBPATH_BEZIER_LINKED]:{description:"Closed subpath Bezier knot, linked",path:Pi},[Dt.CLOSED_SUBPATH_BEZIER_UNLINKED]:{description:"Closed subpath Bezier knot, unlinked",path:Pi},[Dt.OPEN_SUBPATH_LENGTH]:{description:"Open subpath length",path:(t,e)=>[$.getShortAt(t,e)]},[Dt.OPEN_SUBPATH_BEZIER_LINKED]:{description:"Open subpath Bezier knot, linked",path:Pi},[Dt.OPEN_SUBPATH_BEZIER_UNLINKED]:{description:"Open subpath Bezier knot, unlinked",path:Pi},[Dt.FILL_RULE]:{description:"Path fill rule",path:()=>[]},[Dt.INITIAL_FILL_RULE]:{description:"Initial fill rule",path:(t,e)=>[$.getShortAt(t,e)]},[Dt.CLIPBOARD]:{description:"Clipboard",path:ME}};function Pi(t,e){const r=[];for(let o=0;o<t1;o+=8)r.push(PE(t,e+o));return r}function PE(t,e){const n=Dn(t,e,8);return[Dn(t,e+4,8),n]}function ME(t,e){return[[Dn(t,e,8),Dn(t,e+4,8),Dn(t,e+8,8),Dn(t,e+12,8)],Dn(t,e+16,8)]}function Dn(t,e,n){const r=$.getLongAt(t,e),o=r>>>31?-1:1,s=(r&2130706432)>>>32-n,l=r&parseInt(Uh("1",32-n),2);return o*Qx(s.toString(2)+"."+Yx(l.toString(2),32-n,"0"),2)}const LE={read:qE},n1="8BIM",vE=2,VE=4,r1=n1.length;function qE(t,e){const n=vh(new Uint8Array(t).buffer),r={};let o=0;for(;o<t.length;){const s=V(n,o,r1);o+=r1;const l=$.getShortAt(n,o);o+=vE;const{tagName:a,tagNameSize:c}=RE(n,o);o+=c;const u=$.getLongAt(n,o);if(o+=VE,s===n1){const d=vh(n.buffer,o,u),f={id:l,value:V(d,0,u)};if(pa[l]){try{f.description=pa[l].description(d)}catch{f.description="<no description formatter>"}r[a||pa[l].name]=f}else e&&(r[`undefined-${l}`]=f)}o+=u+u%2}return r}function RE(t,e){const[n,r]=Vh(t,e);return{tagName:r,tagNameSize:1+n+(n%2===0?1:0)}}const o1={desc:{name:"ICC Description"},cprt:{name:"ICC Copyright"},dmdd:{name:"ICC Device Model Description"},vued:{name:"ICC Viewing Conditions Description"},dmnd:{name:"ICC Device Manufacturer for Display"},tech:{name:"Technology"}},i1={4:{name:"Preferred CMM type",value:(t,e)=>V(t,e,4),description:t=>t!==null?ya(t):""},8:{name:"Profile Version",value:(t,e)=>t.getUint8(e).toString(10)+"."+(t.getUint8(e+1)>>4).toString(10)+"."+(t.getUint8(e+1)%16).toString(10)},12:{name:"Profile/Device class",value:(t,e)=>V(t,e,4),description:t=>{switch(t.toLowerCase()){case"scnr":return"Input Device profile";case"mntr":return"Display Device profile";case"prtr":return"Output Device profile";case"link":return"DeviceLink profile";case"abst":return"Abstract profile";case"spac":return"ColorSpace profile";case"nmcl":return"NamedColor profile";case"cenc":return"ColorEncodingSpace profile";case"mid ":return"MultiplexIdentification profile";case"mlnk":return"MultiplexLink profile";case"mvis":return"MultiplexVisualization profile";default:return t}}},16:{name:"Color Space",value:(t,e)=>V(t,e,4)},20:{name:"Connection Space",value:(t,e)=>V(t,e,4)},24:{name:"ICC Profile Date",value:(t,e)=>UE(t,e).toISOString()},36:{name:"ICC Signature",value:(t,e)=>jE(t.buffer.slice(e,e+4))},40:{name:"Primary Platform",value:(t,e)=>V(t,e,4),description:t=>ya(t)},48:{name:"Device Manufacturer",value:(t,e)=>V(t,e,4),description:t=>ya(t)},52:{name:"Device Model Number",value:(t,e)=>V(t,e,4)},64:{name:"Rendering Intent",value:(t,e)=>t.getUint32(e),description:t=>{switch(t){case 0:return"Perceptual";case 1:return"Relative Colorimetric";case 2:return"Saturation";case 3:return"Absolute Colorimetric";default:return t}}},80:{name:"Profile Creator",value:(t,e)=>V(t,e,4)}};function UE(t,e){const n=t.getUint16(e),r=t.getUint16(e+2)-1,o=t.getUint16(e+4),s=t.getUint16(e+6),l=t.getUint16(e+8),a=t.getUint16(e+10);return new Date(Date.UTC(n,r,o,s,l,a))}function jE(t){return String.fromCharCode.apply(null,new Uint8Array(t))}function ya(t){switch(t.toLowerCase()){case"appl":return"Apple";case"adbe":return"Adobe";case"msft":return"Microsoft";case"sunw":return"Sun Microsystems";case"sgi":return"Silicon Graphics";case"tgnt":return"Taligent";default:return t}}const s1={read:XE},zE=84,HE=128,GE="acsp",ZE="desc",WE="mluc",YE="text",QE="sig ",KE=12;function XE(t,e,n){return n&&e[0].compressionMethod!==Ci?JE(t,e):tT(t,e)}function JE(t,e){if(!eT(e[0].compressionMethod))return{};const n=new DataView(t.buffer.slice(e[0].offset,e[0].offset+e[0].length));return zh(n,e[0].compressionMethod,"dataview").then(l1).catch(()=>({}))}function eT(t){return t===jh}function tT(t,e){try{const n=e.reduce((l,a)=>l+a.length,0),r=new Uint8Array(n);let o=0;const s=nT(t);for(let l=1;l<=e.length;l++){const a=e.find(d=>d.chunkNumber===l);if(!a)throw new Error(`ICC chunk ${l} not found`);const c=s.slice(a.offset,a.offset+a.length),u=new Uint8Array(c);r.set(u,o),o+=u.length}return l1(new DataView(r.buffer))}catch{return{}}}function nT(t){return Array.isArray(t)?new DataView(Uint8Array.from(t).buffer).buffer:t.buffer}function rT(t){return t.length<HE+4}function oT(t,e){return t.length<e+KE}function l1(t){const e=t.buffer,n=t.getUint32();if(t.byteLength!==n)throw new Error("ICC profile length not matching");if(t.length<zE)throw new Error("ICC profile too short");const r={},o=Object.keys(i1);for(let c=0;c<o.length;c++){const u=o[c],d=i1[u],f=d.value(t,parseInt(u,10));let h=f;d.description&&(h=d.description(f)),r[d.name]={value:f,description:h}}if(Mi(e.slice(36,40))!==GE)throw new Error("ICC profile: missing signature");if(rT(e))return r;const l=t.getUint32(128);let a=132;for(let c=0;c<l;c++){if(oT(e,a))return r;const u=V(t,a,4),d=t.getUint32(a+4),f=t.getUint32(a+8);if(d>e.length)return r;const h=V(t,d,4);if(h===ZE){const _=t.getUint32(d+8);if(_>f)return r;const p=Mi(e.slice(d+12,d+_+11));_o(r,u,p)}else if(h===WE){const _=t.getUint32(d+8),p=t.getUint32(d+12);let m=d+16;const g=[];for(let x=0;x<_;x++){const y=V(t,m+0,2),w=V(t,m+2,2),C=t.getUint32(m+4),T=t.getUint32(m+8),b=Zx(t,d+T,C);g.push({languageCode:y,countryCode:w,text:b}),m+=p}if(_===1)_o(r,u,g[0].text);else{const x={};for(let y=0;y<g.length;y++)x[`${g[y].languageCode}-${g[y].countryCode}`]=g[y].text;_o(r,u,x)}}else if(h===YE){const _=Mi(e.slice(d+8,d+f-7));_o(r,u,_)}else if(h===QE){const _=Mi(e.slice(d+8,d+12));_o(r,u,_)}a=a+12}return r}function Mi(t){return String.fromCharCode.apply(null,new Uint8Array(t))}function _o(t,e,n){o1[e]?t[o1[e].name]={value:n,description:n}:t[e]={value:n,description:n}}const iT={read:sT};function sT(t,e){return{"Image Width":lT(t,e),"Image Height":aT(t,e),"Bit Depth":cT(t,e),"Color Type":uT(t,e),Compression:dT(t,e),Filter:fT(t,e),Interlace:hT(t,e)}}function lT(t,e){if(e+0+4>t.byteLength)return;const o=$.getLongAt(t,e);return{value:o,description:`${o}px`}}function aT(t,e){if(e+4+4>t.byteLength)return;const o=$.getLongAt(t,e+4);return{value:o,description:`${o}px`}}function cT(t,e){if(e+8+1>t.byteLength)return;const o=$.getByteAt(t,e+8);return{value:o,description:`${o}`}}function uT(t,e){const o={0:"Grayscale",2:"RGB",3:"Palette",4:"Grayscale with Alpha",6:"RGB with Alpha"};if(e+9+1>t.byteLength)return;const s=$.getByteAt(t,e+9);return{value:s,description:o[s]||"Unknown"}}function dT(t,e){if(e+10+1>t.byteLength)return;const o=$.getByteAt(t,e+10);return{value:o,description:o===0?"Deflate/Inflate":"Unknown"}}function fT(t,e){if(e+11+1>t.byteLength)return;const o=$.getByteAt(t,e+11);return{value:o,description:o===0?"Adaptive":"Unknown"}}function hT(t,e){const o={0:"Noninterlaced",1:"Adam7 Interlace"};if(e+12+1>t.byteLength)return;const s=$.getByteAt(t,e+12);return{value:s,description:o[s]||"Unknown"}}const _T={read:bT},ba="STATE_KEYWORD",wa="STATE_COMPRESSION",ka="STATE_LANG",mT="STATE_TRANSLATED_KEYWORD",xa="STATE_TEXT",pT=1,gT=1,yT=6;function bT(t,e,n,r){const o={},s=[];for(let l=0;l<e.length;l++){const{offset:a,length:c,type:u}=e[l],d=wT(t,a,c,u,n);if(d instanceof Promise)s.push(d.then(({name:f,value:h,description:_})=>{try{if(Hh.USE_EXIF&&ET(f,h))return{__exif:D_.read(c1(h),yT,r)};if(Hh.USE_IPTC&&TT(f,h))return{__iptc:fa.read(c1(h),0,r)};if(f)return{[f]:{value:h,description:_}}}catch{}return{}}));else{const{name:f,value:h,description:_}=d;f&&(o[f]={value:h,description:_})}}return{readTags:o,readTagsPromise:s.length>0?Promise.all(s):void 0}}function wT(t,e,n,r,o){const s=[],l=[];let a,c=ba,u=Ci;for(let f=0;f<n&&e+f<t.byteLength;f++){if(c===wa){u=kT({type:r,dataView:t,offset:e+f}),r===An&&(f+=pT),c=a1(r,c);continue}else if(c===xa){a=new DataView(t.buffer.slice(e+f,e+n));break}const h=t.getUint8(e+f);h===0?c=a1(r,c):c===ba?s.push(h):c===ka&&l.push(h)}if(u!==Ci&&!o)return{};const d=zh(a,u);return d instanceof Promise?d.then(f=>Sa(f,r,l,s)).catch(()=>Sa("<text using unknown compression>".split(""),r,l,s)):Sa(d,r,l,s)}function kT({type:t,dataView:e,offset:n}){if(t===An){if(e.getUint8(n)===gT)return e.getUint8(n+1)}else if(t===ra)return e.getUint8(n);return Ci}function a1(t,e){return e===ba&&[An,ra].includes(t)?wa:e===wa?t===An?ka:xa:e===ka?mT:xa}function Sa(t,e,n,r){const o=ST(t);return{name:xT(e,n,r),value:o,description:e===An?CT(t):o}}function xT(t,e,n){const r=br(n);if(t===u_||e.length===0)return r;const o=br(e);return`${r} (${o})`}function ST(t){return t instanceof DataView?V(t,0,t.byteLength):t}function CT(t){return M_.decode("UTF-8",t)}function ET(t,e){return t.toLowerCase()==="raw profile type exif"&&e.substring(1,5)==="exif"}function TT(t,e){return t.toLowerCase()==="raw profile type iptc"&&e.substring(1,5)==="iptc"}function c1(t){const e=t.match(/\n(exif|iptc)\n\s*\d+\n([\s\S]*)$/);return NT(e[2].replace(/\n/g,""))}function NT(t){const e=new DataView(new ArrayBuffer(t.length/2));for(let n=0;n<t.length;n+=2)e.setUint8(n/2,parseInt(t.substring(n,n+2),16));return e}const BT={read:IT};function IT(t,e){const n={};for(let r=0;r<e.length;r++){const o=$.getLongAt(t,e[r]+wr),s=V(t,e[r]+Jt,ut);s===d_?(n["Pixels Per Unit X"]=$T(t,e[r],o),n["Pixels Per Unit Y"]=FT(t,e[r],o),n["Pixel Units"]=AT(t,e[r],o)):s===f_&&(n["Modify Date"]=OT(t,e[r],o))}return n}function $T(t,e,n){if(!Li(t,e,n,0,4))return;const s=$.getLongAt(t,e+xe+0);return{value:s,description:""+s}}function FT(t,e,n){if(!Li(t,e,n,4,4))return;const s=$.getLongAt(t,e+xe+4);return{value:s,description:""+s}}function AT(t,e,n){if(!Li(t,e,n,8,1))return;const s=$.getByteAt(t,e+xe+8);return{value:s,description:s===1?"meters":"Unknown"}}function OT(t,e,n){if(!Li(t,e,n,0,7))return;const o=$.getShortAt(t,e+xe),s=$.getByteAt(t,e+xe+2),l=$.getByteAt(t,e+xe+3),a=$.getByteAt(t,e+xe+4),c=$.getByteAt(t,e+xe+5),u=$.getByteAt(t,e+xe+6);return{value:[o,s,l,a,c,u],description:`${Cr(o,4)}-${Cr(s,2)}-${Cr(l,2)} ${Cr(a,2)}:${Cr(c,2)}:${Cr(u,2)}`}}function Li(t,e,n,r,o){return r+o<=n&&e+xe+r+o<=t.byteLength}function Cr(t,e){return`${"0".repeat(e-(""+t).length)}${t}`}const DT={read:LT},PT=4,MT=7;function LT(t,e){const n={},r=$.getByteAt(t,e);return n.Alpha=vT(r),n.Animation=VT(r),n.ImageWidth=u1(t,e+PT),n.ImageHeight=u1(t,e+MT),n}function vT(t){const e=t&16;return{value:e?1:0,description:e?"Yes":"No"}}function VT(t){const e=t&2;return{value:e?1:0,description:e?"Yes":"No"}}function u1(t,e){const n=$.getByteAt(t,e)+256*$.getByteAt(t,e+1)+65536*$.getByteAt(t,e+2)+1;return{value:n,description:n+"px"}}const qT={read:RT};function RT(t){return{"GIF Version":UT(t),"Image Width":jT(t),"Image Height":zT(t),"Global Color Map":HT(t),"Bits Per Pixel":ZT(t),"Color Resolution Depth":GT(t)}}function UT(t){if(6>t.byteLength)return;const r=V(t,3,3);return{value:r,description:r}}function jT(t){if(8>t.byteLength)return;const r=t.getUint16(6,!0);return{value:r,description:`${r}px`}}function zT(t){if(10>t.byteLength)return;const r=t.getUint16(8,!0);return{value:r,description:`${r}px`}}function HT(t){if(11>t.byteLength)return;const o=(t.getUint8(10)&128)>>>7;return{value:o,description:o===1?"Yes":"No"}}function GT(t){if(11>t.byteLength)return;const o=((t.getUint8(10)&112)>>>4)+1;return{value:o,description:`${o} ${o===1?"bit":"bits"}`}}function ZT(t){if(11>t.byteLength)return;const o=(t.getUint8(10)&7)+1;return{value:o,description:`${o} ${o===1?"bit":"bits"}`}}const WT=[6,7,99],YT={get:QT};function QT(t,e,n){if(KT(e)){e.type="image/jpeg";const r=n+e.JPEGInterchangeFormat.value;e.image=t.buffer.slice(r,r+e.JPEGInterchangeFormatLength.value),qh(e,"base64",function(){return Rh(this.image)})}return e}function KT(t){return t&&(t.Compression===void 0||WT.includes(t.Compression.value))&&t.JPEGInterchangeFormat&&t.JPEGInterchangeFormat.value&&t.JPEGInterchangeFormatLength&&t.JPEGInterchangeFormatLength.value}function d1(t){this.name="MetadataMissingError",this.message=t||"No Exif data",this.stack=new Error().stack}d1.prototype=new Error;const f1={MetadataMissingError:d1},XT={load:JT,loadView:h1,errors:f1};function JT(t,e={}){return e4(t)?(e.async=!0,t4(t,e).then(n=>Ca(n,e))):a4(t)?(e.async=!0,c4(t).then(n=>Ca(n,e))):Ca(t,e)}function e4(t){return typeof t=="string"}function t4(t,e){return/^\w+:\/\//.test(t)?typeof fetch<"u"?n4(t,e):r4(t,e):i4(t)?Promise.resolve(Wx(t)):s4(t,e)}function n4(t,{length:e}={}){const n={method:"GET"};return Number.isInteger(e)&&e>=0&&(n.headers={range:`bytes=0-${e-1}`}),fetch(t,n).then(r=>r.arrayBuffer())}function r4(t,{length:e}={}){return new Promise((n,r)=>{const o={};Number.isInteger(e)&&e>=0&&(o.headers={range:`bytes=0-${e-1}`}),o4(t)(t,o,l=>{if(l.statusCode>=200&&l.statusCode<=299){const a=[];l.on("data",c=>a.push(Buffer.from(c))),l.on("error",c=>r(c)),l.on("end",()=>n(Buffer.concat(a)))}else r(`Could not fetch file: ${l.statusCode} ${l.statusMessage}`),l.resume()}).on("error",l=>r(l))})}function o4(t){return/^https:\/\//.test(t)?__non_webpack_require__("https").get:__non_webpack_require__("http").get}function i4(t){return/^data:[^;,]*(;base64)?,/.test(t)}function s4(t,{length:e}={}){return new Promise((n,r)=>{const o=l4();o.open(t,(s,l)=>{s?r(s):o.stat(t,(a,c)=>{if(a)r(a);else{const u=Math.min(c.size,e!==void 0?e:c.size),d=Buffer.alloc(u),f={buffer:d,length:u};o.read(l,f,h=>{h?r(h):o.close(l,_=>{_&&console.warn(`Could not close file ${t}:`,_),n(d)})})}})})})}function l4(){try{return __non_webpack_require__("fs")}catch{return}}function a4(t){return typeof window<"u"&&typeof File<"u"&&t instanceof File}function c4(t){return new Promise((e,n)=>{const r=new FileReader;r.onload=o=>e(o.target.result),r.onerror=()=>n(r.error),r.readAsArrayBuffer(t)})}function Ca(t,e){return u4(t)&&(t=new Uint8Array(t).buffer),h1(d4(t),e)}function u4(t){try{return Buffer.isBuffer(t)}catch{return!1}}function d4(t){try{return new DataView(t)}catch{return new Lh(t)}}function h1(t,{expanded:e=!1,async:n=!1,includeUnknown:r=!1}={expanded:!1,async:!1,includeUnknown:!1}){let o=!1,s={};const l=[],{fileType:a,fileDataOffset:c,jfifDataOffset:u,tiffHeaderOffset:d,iptcDataOffset:f,xmpChunks:h,iccChunks:_,mpfDataOffset:p,pngHeaderOffset:m,pngTextChunks:g,pngChunkOffsets:x,vp8xChunkOffset:y,gifHeaderOffset:w}=vC.parseAppMarkers(t,n);if(f4(c)){o=!0;const k=y3.read(t,c);e?s.file=k:s=j({},s,k)}if(h4(u)){o=!0;const k=B3.read(t,u);e?s.jfif=k:s=j({},s,k)}if(_4(d)){o=!0;const k=D_.read(t,d,r);if(k.Thumbnail&&(s.Thumbnail=k.Thumbnail,delete k.Thumbnail),e?(s.exif=k,m4(s)):s=j({},s,k),k["IPTC-NAA"]&&!_1(f)){const E=fa.read(k["IPTC-NAA"].value,0,r);e?s.iptc=E:s=j({},s,E)}if(k.ApplicationNotes&&!m1(h)){const E=U_.read(br(k.ApplicationNotes.value));e?s.xmp=E:(delete E._raw,s=j({},s,E))}if(k.ImageSourceData){const E=LE.read(k.PhotoshopSettings.value,r);e?s.photoshop=E:s=j({},s,E)}if(k.ICC_Profile&&!p1(_)){const E=s1.read(k.ICC_Profile.value,[{offset:0,length:k.ICC_Profile.value.length,chunkNumber:1,chunksTotal:1}]);e?s.icc=E:s=j({},s,E)}}if(_1(f)){o=!0;const k=fa.read(t,f,r);e?s.iptc=k:s=j({},s,k)}if(m1(h)){o=!0;const k=U_.read(t,h);e?s.xmp=k:(delete k._raw,s=j({},s,k))}if(p1(_)){o=!0;const k=s1.read(t,_,n);k instanceof Promise?l.push(k.then(T)):T(k)}if(p4(p)){o=!0;const k=u3.read(t,p,r);e?s.mpf=k:s=j({},s,k)}if(g4(m)){o=!0;const k=iT.read(t,m);e?(s.png=s.png?j({},s.png,k):k,s.pngFile=k):s=j({},s,k)}if(y4(g)){o=!0;const{readTags:k,readTagsPromise:E}=_T.read(t,g,n,r);b(k),E&&l.push(E.then(N=>N.forEach(b)))}if(b4(x)){o=!0;const k=BT.read(t,x);e?s.png=s.png?j({},s.png,k):k:s=j({},s,k)}if(w4(y)){o=!0;const k=DT.read(t,y);e?s.riff=s.riff?j({},s.riff,k):k:s=j({},s,k)}if(k4(w)){o=!0;const k=qT.read(t,w);e?s.gif=s.gif?j({},s.gif,k):k:s=j({},s,k)}const C=YT.get(t,s.Thumbnail,d);if(C?(o=!0,s.Thumbnail=C):delete s.Thumbnail,a&&(e?(s.file||(s.file={}),s.file.FileType=a):s.FileType=a,o=!0),!o)throw new f1.MetadataMissingError;if(n)return Promise.all(l).then(()=>s);return s;function T(k){e?s.icc=k:s=j({},s,k)}function b(k){if(e){for(const E of["exif","iptc"]){const N=`__${E}`;k[N]&&(s[E]=s[E]?j({},s.exif,k[N]):k[N],delete k[N])}s.png=s.png?j({},s.png,k):k,s.pngText=s.pngText?j({},s.png,k):k}else s=j({},s,k.__exif?k.__exif:{},k.__iptc?k.__iptc:{},k)}}function f4(t){return t!==void 0}function h4(t){return t!==void 0}function _4(t){return t!==void 0}function m4(t){if(t.exif){if(t.exif.GPSLatitude&&t.exif.GPSLatitudeRef)try{t.gps=t.gps||{},t.gps.Latitude=Ei(t.exif.GPSLatitude.value),t.exif.GPSLatitudeRef.value.join("")==="S"&&(t.gps.Latitude=-t.gps.Latitude)}catch{}if(t.exif.GPSLongitude&&t.exif.GPSLongitudeRef)try{t.gps=t.gps||{},t.gps.Longitude=Ei(t.exif.GPSLongitude.value),t.exif.GPSLongitudeRef.value.join("")==="W"&&(t.gps.Longitude=-t.gps.Longitude)}catch{}if(t.exif.GPSAltitude&&t.exif.GPSAltitudeRef)try{t.gps=t.gps||{},t.gps.Altitude=t.exif.GPSAltitude.value[0]/t.exif.GPSAltitude.value[1],t.exif.GPSAltitudeRef.value===1&&(t.gps.Altitude=-t.gps.Altitude)}catch{}}}function _1(t){return t!==void 0}function m1(t){return Array.isArray(t)&&t.length>0}function p1(t){return Array.isArray(t)&&t.length>0}function p4(t){return t!==void 0}function g4(t){return t!==void 0}function y4(t){return t!==void 0}function b4(t){return t!==void 0}function w4(t){return t!==void 0}function k4(t){return t!==void 0}async function g1(t,e=null){if(t.location)return t.location;try{const n=await XT.load(t.blobUrl||t.url||"",{expanded:!0});if(n.gps)return{latitude:n.gps.Latitude,longitude:n.gps.Longitude}}catch(n){console.error("Failed to load EXIF data from file:",n)}try{const{waitForLocation:n,location:r}=id();if(e&&setTimeout(()=>{!r.value&&e&&Ve.warning(e)},1e3),window.location.protocol==="https:")await n();else if(window.location.href.match("localhost"))return{latitude:37.7749,longitude:-122.4194,accuracy:1,altitude:0,altitudeAccuracy:0};return r.value?{latitude:r.value.latitude,longitude:r.value.longitude,accuracy:r.value.accuracy,altitude:r.value.altitude,altitudeAccuracy:r.value.altitudeAccuracy}:null}catch(n){return console.error(n),null}}class mo{constructor(e,n){G(this,"files",[]);G(this,"fileUploads",[]);G(this,"onErrorCb",null);G(this,"onProgressCb",null);G(this,"onCompleteCb",null);G(this,"onAllCompleteCb",null);G(this,"options");if(this.files=!Array.isArray(e)&&!(e instanceof FileList)?[e]:e,this.fileUploads=[],this.onErrorCb=null,this.onProgressCb=null,this.onCompleteCb=null,this.onAllCompleteCb=null,this.options={createPresignedUpload:null,completePresignedUpload:null,refreshFile:null,...oe.value.fileUpload,...n},!this.options.createPresignedUpload||!this.options.completePresignedUpload)throw new Error("Please configure danxOptions.fileUpload: import { configure } from 'quasar-ui-danx';")}prepare(){for(const e of this.files){if(!(e instanceof File))throw Error("FileUpload constructor requires a File object or a list of File objects");e.id=J.uid(),e.blobUrl=URL.createObjectURL(e);const n=new FormData;n.append("file",e),this.fileUploads.push({file:e,xhr:null,formData:n,isComplete:!1})}return this}onAllComplete(e){return this.onAllCompleteCb=e,this}onComplete(e){return this.onCompleteCb=e,this}onProgress(e){return this.onProgressCb=e,this}onError(e){return this.onErrorCb=e,this}errorHandler(e,n,r=null){this.onErrorCb&&this.onErrorCb({e,file:n,error:r})}async resolveLocation(e=null){for(const n of this.fileUploads)n.file.location=await g1(n.file,e),n.formData.append("meta",JSON.stringify(n.file.location));return this}fireProgressCallback(e,n){e.file.progress=n,this.onProgressCb&&this.onProgressCb({file:this.wrapFile(e.file),progress:n})}fireCompleteCallback(e,n){e.isComplete=!0,e.file.progress=1,this.onCompleteCb&&this.onCompleteCb({file:this.wrapFile(e.file),uploadedFile:n})}checkAllComplete(){this.onAllCompleteCb&&this.fileUploads.every(e=>e.isComplete)&&this.onAllCompleteCb({files:this.fileUploads})}wrapFile(e){return{id:e.id,name:e.name,size:e.size,type:e.type,progress:e.progress,location:e.location,blobUrl:e.blobUrl,url:"",__type:"BrowserFile"}}setXhrCallbacks(){var e,n,r;for(const o of this.fileUploads)(e=o.xhr)==null||e.addEventListener("error",s=>this.errorHandler(s,o.file),!1);if(this.onProgressCb)for(const o of this.fileUploads)(n=o.xhr)==null||n.upload.addEventListener("progress",s=>{const l=Math.min(.95,s.loaded/s.total);this.fireProgressCallback(o,l)},!1);for(const o of this.fileUploads)(r=o.xhr)==null||r.addEventListener("load",async s=>{try{let l=await this.completePresignedUpload(o);l=ye(l),this.fireCompleteCallback(o,l),this.checkAllComplete(),await this.waitForTranscode(l)}catch(l){this.errorHandler(s,o.file,l)}},!1)}async completePresignedUpload(e){if(this.fireProgressCallback(e,.95),!e.file.resource_id)throw new Error("File resource ID is required to complete presigned upload");if(!this.options.completePresignedUpload)throw new Error("Please configure danxOptions.fileUpload.completePresignedUpload");return await this.options.completePresignedUpload(e.file.resource_id,e)}async refreshFile(e){if(!this.options.refreshFile)return null;const n=await this.options.refreshFile(e.id);return n&&ye(n)}isTranscoding(e){var r;const n=((r=e==null?void 0:e.meta)==null?void 0:r.transcodes)||[];for(const o of Object.keys(n)){const s=n[o];if(s.status==="Pending"||s.status==="In Progress")return!0}return!1}async waitForTranscode(e){if(!e.meta||e.meta.is_waiting_transcode)return;e.meta.is_waiting_transcode=!0;let n=e;for(;n&&this.isTranscoding(n);)await Ur(1e3),n=await this.refreshFile(n)}async upload(){var e;for(const n of this.fileUploads){const r=n.file.mimeType||n.file.type;if(!this.options.createPresignedUpload)throw new Error("Please configure danxOptions.fileUpload.createPresignedUpload");const o=await this.options.createPresignedUpload(this.options.directory||"",n.file.name,r);if(!o.url){Ve.error("Could not fetch presigned upload URL for file "+n.file.name);continue}const s=!o.url.match("upload-presigned-url-contents");n.file.resource_id=o.id;const l=new XMLHttpRequest;s?(l.open("PUT",o.url),l.setRequestHeader("Content-Type",r),n.body=n.file):(l.open("POST",o.url),n.body=n.formData),n.xhr=l}this.setXhrCallbacks();for(const n of this.fileUploads)(e=n.xhr)==null||e.send(n.body)}}const vi=i.ref([]),Vi=i.ref([]);function x4(t){vi.value=[...vi.value,t]}function S4(t,e,n){Vi.value.push({id:n,name:t,callback:e})}function C4(t){Vi.value=Vi.value.filter(e=>e.id!==t)}function y1(t,e,n){for(let r of vi.value)if(r.type===t&&r.key===e&&n.ctrlKey===!!r.ctrl&&n.altKey===!!r.alt&&n.shiftKey===!!r.shift)for(let o of Vi.value)o.name===r.name&&o.callback(n)}function b1(t){return t.key?(""+t.key).toLowerCase():t.keyCode}function E4(t){vi.value=t,window.addEventListener("keydown",e=>{y1("keydown",b1(e),e)}),window.addEventListener("keyup",e=>{y1("keyup",b1(e),e)})}function w1(t){const e=i.ref([]),n=i.ref(null),r=i.ref(null),o=f=>{e.value=[...e.value,...f.target.files],new mo(f.target.files,t).prepare().onProgress(({file:h})=>{h&&s(h)}).onComplete(({file:h,uploadedFile:_})=>{h&&s(h,_)}).onError(({file:h,error:_})=>{console.error("Failed to upload",h,_),Ve.error(`Failed to upload ${h.name}: ${_}`)}).onAllComplete(()=>{n.value&&n.value({file:e.value[0],uploadedFile:e.value[0]}),r.value&&r.value(e.value)}).upload()};function s(f,h=null){const _=e.value.findIndex(p=>p.id===f.id);_!==-1&&e.value.splice(_,1,h||f),r.value&&r.value(e.value)}return{clearUploadedFiles:()=>{e.value=[],r.value&&r.value(e.value),n.value&&n.value({file:null,uploadedFile:null})},onRemove:f=>{const h=e.value.findIndex(_=>_.id===f.id);h!==-1&&e.value.splice(h,1),r.value&&r.value(e.value),n.value&&n.value({file:f,uploadedFile:f})},onComplete:f=>{n.value=f},onFilesChange:f=>{r.value=f},onDrop:f=>{var h;o({target:{files:(h=f.dataTransfer)==null?void 0:h.files}})},onFilesSelected:o,uploadedFiles:e}}const Se={abortControllers:{},url(t){var e;return t.startsWith("http")?t:(((e=oe.value.request)==null?void 0:e.baseUrl)||"").replace(/\/$/,"")+"/"+t},async call(t,e){var l;e=e||{};const n=(e==null?void 0:e.abortOn)!==void 0?e.abortOn:t,r=new Date().getTime();if(n){const a=new AbortController,c=Se.abortControllers[n];c&&c.abort.abort("Request was aborted due to a newer request being made"),Se.abortControllers[n]={abort:a,timestamp:r},e.signal=a.signal}const o=await fetch(Se.url(t),e);if(T4(o),n){if(r<Se.abortControllers[n].timestamp)return{abort:!0};delete Se.abortControllers[n]}const s=await o.json();if(o.status===401){const a=(l=oe.value.request)==null?void 0:l.onUnauthorized;return a?a(s,o):{error:!0,message:"Unauthorized",...s}}return o.status>400&&s.exception&&!s.error&&(s.error=!0),s},async poll(t,e,n,r){let o;do o=await Se.call(t,e),await Ur(n);while(!r(o));return o},async get(t,e){var n;return await Se.call(t,{method:"get",headers:{Accept:"application/json","Content-Type":"application/json",...(n=oe.value.request)==null?void 0:n.headers},...e})},async post(t,e,n){var r;return await Se.call(t,{method:"post",body:e&&JSON.stringify(e),headers:{Accept:"application/json","Content-Type":"application/json",...(r=oe.value.request)==null?void 0:r.headers},...n})}};function T4(t){const e=oe.value.request;if(!e||!e.headers||!e.onAppVersionMismatch)return;const n=e.headers["X-App-Version"]||"",r=t.headers.get("X-App-Version");n&&n!==r&&e.onAppVersionMismatch(r)}async function N4(t,e,n,r){let o;n&&(o=e.value.find(s=>s.id===n)||(await t({id:n}))[0]),e.value=await t(r),o&&!e.value.find(s=>s.id===n)&&e.value.push(o)}function k1(t,e){return new URLSearchParams((e==null?void 0:e.replace(/.*\?/,""))||window.location.search).get(t)}function B4(t,e){return{list(n){return Se.post(`${t}/list`,n)},summary(n){return Se.post(`${t}/summary`,{filter:n})},details(n){return Se.get(`${t}/${n.id}/details`)},async detailsAndStore(n){const r=await Se.get(`${t}/${n.id}/details`);return ye(r)},async relation(n,r){const o=await Se.get(`${t}/${n.id}/relation/${r}`);return ye(o)},fieldOptions(){return Se.get(`${t}/field-options`)},applyAction(n,r,o){return Se.post(`${t}/${r?r.id:"new"}/apply-action`,{action:n,data:o})},batchAction(n,r,o){return Se.post(`${t}/batch-action`,{action:n,filter:{id:r.map(s=>s.id)},data:o})},export(n,r){return Ph(`${t}/export`,r||"export.csv",{filter:n})},...e}}function x1(t=null){const e=i.ref(null),n=i.ref(null),r=i.ref(null),o=d=>{var f;e.value=null,new mo((f=d.target)==null?void 0:f.files[0],t).prepare().onProgress(({file:h})=>{h&&(e.value=h,r.value&&r.value(e.value))}).onComplete(({uploadedFile:h})=>{h&&(e.value=h,n.value&&n.value(e.value),r.value&&r.value(e.value))}).onError(({file:h,error:_})=>{console.error("Failed to upload",h,_),Ve.error(`Failed to upload ${h.name}: ${_}`)}).upload()},s=d=>{var f;o({target:{files:(f=d.dataTransfer)==null?void 0:f.files}})};return{isFileUploaded:i.computed(()=>e.value&&e.value.url),clearUploadedFile:()=>{e.value=null,r.value&&r.value(e.value),n.value&&n.value(e.value)},onComplete:d=>{n.value=d},onFileChange:d=>{r.value=d},onDrop:s,onFileSelected:o,uploadedFile:e}}function Pt(t,e){localStorage.setItem(t,JSON.stringify(e))}function xt(t,e=null){const n=localStorage.getItem(t);try{return n?JSON.parse(n):e}catch{return}}function I4(t,e=""){const n=Ea(t,e),r=document.createElement("style");r.innerHTML=`:root {${n}}`,document.head.appendChild(r)}function Ea(t,e=""){return Object.entries(t).map(([n,r])=>typeof r=="object"?Ea(r,`${e}${n}-`):`--${e}${n}: ${r}`).join(";")}const $4={name:"quasar-ui-danx",version:"0.4.30",author:"Dan <dan@flytedesk.com>",description:"DanX Vue / Quasar component library",license:"MIT",type:"module",main:"./dist/danx.umd.js",module:"./dist/danx.es.js",types:"types/index.d.ts",scripts:{dev:"cd dev && quasar dev && cd ..",build:"vite build",preview:"vite preview",postversion:'yarn build && npm publish && cd .. && git add ui && git commit -m "v$npm_package_version" && git tag "v$npm_package_version" && git push'},repository:{type:"git",url:"https://github.com/flytedan/quasar-ui-danx"},peerDependencies:{quasar:"^2.0.0",vue:"^3.4.21"},devDependencies:{"@quasar/extras":"^1.16.4","@types/luxon":"^3.4.2","@types/node":"^20.12.7","@typescript-eslint/eslint-plugin":"^7.6.0","@typescript-eslint/parser":"^7.6.0","@vitejs/plugin-vue":"^5.0.4",autoprefixer:"^10.4.19",chalk:"^4.1.0","core-js":"^3.0.0",cssnano:"^4.1.10",eslint:"^8.5.0","eslint-plugin-import":"^2.29.1","eslint-plugin-vue":"^9.24.1","fs-extra":"^8.1.0",postcss:"^8.4.38",quasar:"^2.0.0",sass:"^1.33.0",tailwindcss:"^3.4.3","ts-node":"^10.9.2",typescript:"^5.4.4",vite:"^5.2.8","vite-plugin-dts":"^3.8.1","vite-svg-loader":"^5.1.0",vue:"^3.4.21","vue-eslint-parser":"^9.4.2","vue-router":"^4.3.2"},dependencies:{"@heroicons/vue":"v1","@tinymce/tinymce-vue":"^5.1.1","@vueuse/core":"^10.7.2","danx-icon":"^1.0.2",exifreader:"^4.21.1",gsap:"^3.12.5",luxon:"^3.4.4",yaml:"^2.4.5"},browserslist:["last 4 Chrome versions","last 4 Firefox versions","last 2 Edge versions","last 4 Safari versions","last 4 Android versions","last 4 ChromeAndroid versions","last 4 FirefoxAndroid versions","last 4 iOS versions"]},{version:S1}=$4;function F4(){console.log(`Installing Danx UI ${S1}... Nothing to do really.`)}S.ActionForm=ac,S.ActionFormDialog=wp,S.ActionMenu=Us,S.ActionTable=Wu,S.ActionTableColumn=$u,S.ActionTableHeaderColumn=Du,S.ActionTableLayout=Xb,S.ActionToolbar=Yu,S.ActionVnode=Ag,S.AddressFormat=xg,S.AuditHistoryItem=cw,S.AuditHistoryItemValue=Gs,S.AutoHeightTransition=jg,S.BadgeTab=Lg,S.BooleanField=Gi,S.CaretDownIcon=Da,S.CollapsableFiltersSidebar=Ru,S.CollapsableSidebar=uc,S.ColumnListItem=zs,S.ColumnSettingsDialog=hb,S.ConfirmActionDialog=Ga,S.ConfirmDialog=Ct,S.ConfirmPasswordField=Rp,S.ContentDrawer=Ji,S.CreateNewWithNameDialog=Za,S.DateField=Wi,S.DateRangeField=Yi,S.DateTime=D,S.DateTimeField=Xp,S.DateTimePicker=Qi,S.DragAndDrop=js,S.DragHandleDotsIcon=Pa,S.DragHandleIcon=Ma,S.EditOnClickTextField=r0,S.EditableDiv=e0,S.EmptyTableState=Gu,S.ExportButton=Fa,S.FieldLabel=ht,S.FilePreview=Tr,S.FileUpload=mo,S.FileUploadButton=i0,S.FilterIcon=La,S.FilterItem=Vu,S.FilterList=qu,S.FilterListToggle=Uu,S.FilterToolbarLayout=$b,S.FilterableField=Hs,S.FlashMessages=Ve,S.FlatListFormat=Sg,S.FullScreenCarouselDialog=Wa,S.FullScreenDialog=Fp,S.GpsCoordinatesFormat=Tg,S.HandleDraggable=Fu,S.IconWithTextFormat=Bg,S.ImageIcon=zi,S.IndicatorTab=qg,S.InfoDialog=Ya,S.InlineDateTimeField=a0,S.InputDialog=Op,S.IntegerField=Ka,S.InteractiveTooltip=Dg,S.LabelValueBlock=_0,S.LabelValueFormat=$g,S.LabeledInput=Zi,S.ListDragAndDrop=Au,S.ListItemDraggable=Ou,S.ListTransition=_c,S.MaxHeightTransition=zg,S.MaxLengthCounter=Qa,S.MultiFileField=Xa,S.MultiKeywordField=Ja,S.NavigationMenu=fw,S.NewPasswordField=b0,S.NumberField=Er,S.NumberRangeField=bo,S.PanelsDrawer=Hu,S.PanelsDrawerPanels=ju,S.PanelsDrawerTabs=zu,S.PdfIcon=va,S.PercentIcon=Va,S.PopoverMenu=hc,S.PreviousNextControls=ja,S.RefreshButton=Aa,S.RenderComponent=fc,S.RenderVnode=ln,S.RenderedForm=Xi,S.RenderedFormDialog=og,S.SERVER_TZ=Gl,S.SaveStateIndicator=lc,S.SelectDrawer=C0,S.SelectField=Mn,S.SelectOrCreateField=T0,S.SelectWithChildrenField=ec,S.ShowHideButton=Oa,S.SingleFileField=tc,S.SkipNextIcon=qa,S.SkipPreviousIcon=Ra,S.SlideTransition=Hg,S.SliderNumberField=O0,S.StaggeredListTransition=sb,S.SvgImg=cc,S.TableSummaryRow=Zu,S.TextField=on,S.TitleColumnFormat=Pu,S.TrashIcon=go,S.VisibleColumnsToggleButtons=yb,S.WarningIcon=Ua,S.WysiwygField=sc,S.XIcon=yo,S.activeActionVnode=bn,S.addHotkey=x4,S.applyCssVars=I4,S.autoRefreshObject=Ku,S.buildCssVars=Ea,S.centerTruncate=qx,S.configure=B1,S.danxOptions=oe,S.dbDateTime=Wl,S.diffInDays=Hx,S.download=Si,S.downloadFile=Ph,S.downloadFileResponse=Mh,S.fBoolean=Fh,S.fCurrency=ki,S.fCurrencyNoCents=Lx,S.fDate=kt,S.fDateTime=wi,S.fElapsedTime=Mx,S.fJSON=Dh,S.fLocalizedDateTime=gr,S.fMarkdownCode=zx,S.fNameOrCount=Oh,S.fNumber=At,S.fPercent=Ah,S.fPhone=Rx,S.fQDate=Dx,S.fSecondsToTime=Px,S.fShortCurrency=vx,S.fShortNumber=$h,S.fShortSize=Vx,S.fetchResourceListWithSelected=N4,S.getFilterFromUrl=vu,S.getItem=xt,S.getResponseHeader=Yl,S.getUrlParam=k1,S.incrementName=td,S.install=F4,S.isJSON=nd,S.latestCallOnly=Ys,S.listen=S4,S.localizedDateTime=Zl,S.mapSortBy=Lu,S.metersToMiles=kw,S.milesToMeters=xw,S.minmax=ww,S.notify=hw,S.parseCoords=Sw,S.parseDateTime=Ft,S.parseMarkdownCode=xi,S.parseMarkdownJSON=Ux,S.parseMarkdownYAML=jx,S.parseQDate=yi,S.parseQDateTime=bi,S.parseSqlDateTime=Ih,S.pollUntil=bw,S.refreshApplication=gw,S.registerHotkeys=E4,S.registerStickyScrolling=Mu,S.remoteDateTime=Bh,S.remove=Rr,S.replace=Zs,S.request=Se,S.resolveFileLocation=g1,S.setItem=Pt,S.sleep=Ur,S.storeObject=ye,S.storeObjects=_w,S.uniqueBy=yw,S.unlisten=C4,S.useActionRoutes=B4,S.useActions=mw,S.useCompatibility=id,S.useControls=bb,S.useDebounceFn=rn,S.useMultiFileUpload=w1,S.useSingleFileUpload=x1,S.useTableColumns=Jb,S.version=S1,S.waitForRef=Ws,S.withDefaultActions=pw,Object.defineProperty(S,Symbol.toStringTag,{value:"Module"})});
154
154
  //# sourceMappingURL=danx.umd.js.map