@bagelink/vue 1.15.362 → 1.15.364

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- {"version":3,"file":"schema-fields.d.ts","sourceRoot":"","sources":["../../src/form-flow/schema-fields.ts"],"names":[],"mappings":"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"}
1
+ {"version":3,"file":"schema-fields.d.ts","sourceRoot":"","sources":["../../src/form-flow/schema-fields.ts"],"names":[],"mappings":"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"}
package/dist/index.cjs CHANGED
@@ -464,7 +464,7 @@ ${t.preList[o]}
464
464
  background: rgba(0, 0, 0, 0.1);
465
465
  cursor: ns-resize;
466
466
  transition: background 0.2s;
467
- `,e.appendChild(i))):i=e,i.addEventListener("mouseenter",()=>{i!==e&&(i.style.background="rgba(0, 0, 0, 0.2)")}),i.addEventListener("mouseleave",()=>{i!==e&&!o&&(i.style.background="rgba(0, 0, 0, 0.1)")}),i.style.cursor="ns-resize",i.style.userSelect="none";function c(m){return{clientY:m,deltaY:m-a,initialHeight:l}}function s(m){return r.gridSize?Math.round(m/r.gridSize)*r.gridSize:m}function u(m){if(!o)return;m.preventDefault();const p=c("touches"in m?m.touches[0].clientY:m.clientY);let h=l+p.deltaY;r.minHeight!==void 0&&(h=Math.max(h,r.minHeight)),r.maxHeight!==void 0&&(h=Math.min(h,r.maxHeight)),h=s(h),e.style.height=`${h}px`,r.onResize&&r.onResize(p),i!==e&&(i.style.background="rgba(0, 0, 0, 0.3)")}function d(m){if(!o)return;const p=c("touches"in m?m.changedTouches[0].clientY:m.clientY);o=!1,document.body.style.cursor="",document.body.style.userSelect="",i!==e&&(i.style.background="rgba(0, 0, 0, 0.1)"),r.onEnd&&r.onEnd(p),document.removeEventListener("mousemove",u),document.removeEventListener("mouseup",d),document.removeEventListener("touchmove",u),document.removeEventListener("touchend",d),document.removeEventListener("touchcancel",d)}function f(m){m instanceof MouseEvent&&m.button!==0||(m.preventDefault(),o=!0,a="touches"in m?m.touches[0].clientY:m.clientY,l=e.offsetHeight,r.onStart&&r.onStart(m),document.body.style.cursor="ns-resize",document.body.style.userSelect="none",document.addEventListener("mousemove",u,{passive:!1}),document.addEventListener("mouseup",d),document.addEventListener("touchmove",u,{passive:!1}),document.addEventListener("touchend",d),document.addEventListener("touchcancel",d))}i.addEventListener("mousedown",f),i.addEventListener("touchstart",f,{passive:!1}),e[fa]=()=>{i!==e&&e.removeChild(i),i.removeEventListener("mousedown",f),i.removeEventListener("touchstart",f),i.removeEventListener("mouseenter",f),i.removeEventListener("mouseleave",f),document.removeEventListener("mousemove",u),document.removeEventListener("mouseup",d),document.removeEventListener("touchmove",u),document.removeEventListener("touchend",d),document.removeEventListener("touchcancel",d)}}const Az={mounted(e,t){e2(e,t)},unmounted(e){const t=e[fa];typeof t=="function"&&(t(),delete e[fa])},updated(e,t){if(t.value!==t.oldValue){const r=e[fa];typeof r=="function"&&(r(),delete e[fa]),e2(e,t)}},getSSRProps(){return{}}},Pz=12,Iz=12,Vz=1;var L5=/^col-(\d{1,2})\/12$/,y5=/^start-col-(\d{1,2})$/,b5=/^m_col-(\d{1,2})\/12$/,_5=/^(?:grid-)?span-row-(\d{1,2})$/,$i={"col-1/12":1,"col-1/6":2,"col-2/12":2,"col-1/4":3,"col-3/12":3,"col-1/3":4,"col-4/12":4,"col-5/12":5,"col-1/2":6,"col-6/12":6,"col-7/12":7,"col-2/3":8,"col-8/12":8,"col-3/4":9,"col-9/12":9,"col-5/6":10,"col-10/12":10,"col-11/12":11,"col-full":12,"col-12/12":12},yu=Object.fromEntries(Object.entries($i).map(([e,t])=>[`m_${e}`,t]));function Nr(e){return Math.max(1,Math.min(12,Math.round(e)))}function w5(e){return`col-${Nr(e)}/12`}function k5(e){return`start-col-${Nr(e)}`}function $5(e){return`m_col-${Nr(e)}/12`}function E5(e){return`span-row-${Nr(e)}`}function Od(e){if(e)for(const t of e.split(/\s+/)){if(t.startsWith("m_"))continue;const r=t.match(L5);if(r)return Nr(Number(r[1]));if(t in $i)return $i[t]}}function Rd(e){if(e)for(const t of e.split(/\s+/)){const r=t.match(y5);if(r)return Nr(Number(r[1]))}}function Fd(e){if(e)for(const t of e.split(/\s+/)){const r=t.match(b5);if(r)return Nr(Number(r[1]));if(t in yu)return yu[t]}}function zd(e){if(e)for(const t of e.split(/\s+/)){const r=t.match(_5);if(r)return Nr(Number(r[1]))}}function Ud(e){return e?e.split(/\s+/).filter(Boolean).filter(t=>!L5.test(t)&&!y5.test(t)&&!b5.test(t)&&!_5.test(t)&&!(t in $i)&&!(t in yu)).join(" "):""}function S5(e,t){const r=Ud(e),o=r?[r]:[];return t.colSpan!==void 0&&t.colSpan!==12&&o.push(w5(t.colSpan)),t.colStart!==void 0&&o.push(k5(t.colStart)),t.rowSpan!==void 0&&t.rowSpan!==1&&o.push(E5(t.rowSpan)),t.mColSpan!==void 0&&t.mColSpan!==12&&o.push($5(t.mColSpan)),o.join(" ")}function Oz(e){return{colSpan:Od(e),colStart:Rd(e),rowSpan:zd(e),mColSpan:Fd(e)}}function Hd(e){return e==="richtext"?3:e==="textarea"||e==="json"||e==="radio"||e==="file"||e==="signature"?2:1}function Wd(e){if(e.format)switch(e.format){case"email":return"email";case"tel":return"phone";case"uri":case"url":return"url";case"date":case"date-time":return"date"}if(e.enum)return"select";switch(e.type){case"number":case"integer":return"number";case"boolean":return"checkbox"}return"text"}function C5(e){if(!e?.properties)return[];const t=new Set(e.required??[]),r=[];for(const[o,a]of Object.entries(e.properties)){const l=a["x-field-type"]??Wd(a),i={};a.minLength!==void 0&&(i.minLength=a.minLength),a.maxLength!==void 0&&(i.maxLength=a.maxLength),a.minimum!==void 0&&(i.min=a.minimum),a.maximum!==void 0&&(i.max=a.maximum),a.multipleOf!==void 0&&(i.step=a.multipleOf),a.pattern!==void 0&&(i.pattern=a.pattern),a["x-options"]?i.options=a["x-options"]:a.enum&&(i.options=a.enum.map(u=>({label:String(u),value:String(u)})));const c=a["x-ui"]?.class,s={id:crypto.randomUUID(),key:o,type:l,label:a.title??o,placeholder:a["x-placeholder"],description:a.description,required:t.has(o)||void 0,colSpan:Od(c)??12,colStart:Rd(c),rowSpan:zd(c)??Hd(l),mColSpan:Fd(c)??12,class:Ud(c)||void 0,hideLabel:a["x-hide-label"]??!1,condition:a["x-ui"]?.condition||void 0,hidden:a["x-ui"]?.hidden||l==="hidden"||void 0,richTextVariant:a["x-rich-text-variant"],markdownShowFormatting:a["x-markdown-show-formatting"],textareaRows:a["x-textarea-rows"],textareaAutoHeight:a["x-textarea-autoheight"],numberLayout:a["x-number-layout"],numberSpinner:a["x-number-spinner"]??!0,phoneOnlyCountries:a["x-phone-only-countries"],selectMultiselect:a["x-select-multiselect"],fileMultiple:a["x-file-multiple"],fileHeight:a["x-file-height"],fileAccept:a["x-file-accept"],fileTheme:a["x-file-theme"],fileShowIcon:a["x-file-show-icon"]===!1?!1:void 0,fileIcon:a["x-file-icon"],dateEnableTime:a["x-date-enable-time"],dateMin:a["x-date-min"],dateMax:a["x-date-max"],rangeMulti:a["x-range-multi"],radioThin:a["x-radio-thin"],radioHideRadio:a["x-radio-hide-radio"],radioAlign:a["x-ui"]?.radioAlign??a["x-radio-align"],radioInline:a["x-radio-inline"],radioSize:a["x-radio-size"],radioTextAlign:a["x-ui"]?.radioTextAlign??a["x-radio-text-align"]??"center",textIcon:a["x-text-icon"],textIconStart:a["x-text-icon-start"],validation:Object.keys(i).length>0?i:void 0,defaultValue:a.default,content:a["x-field-type"]==="heading"?a.title:void 0};r.push(s)}return r}function Rz(e){const t={},r=[];for(const a of e){const l={};if(a.type==="heading"||a.type==="divider")l.type="string",l.title=a.content||a.label,l["x-field-type"]=a.type;else{switch(a.type){case"text":case"textarea":case"richtext":case"markdown":case"email":case"phone":case"url":case"date":case"signature":case"color":case"hidden":l.type="string";break;case"file":l.type=["string","array"],l.items={type:"string"};break;case"number":case"range":l.type="number";break;case"checkbox":case"toggle":l.type="boolean";break;case"json":l.type="object";break;case"select":case"radio":l.type="string",a.validation?.options&&(l.enum=a.validation.options.map(c=>c.value));break}a.type==="email"&&(l.format="email"),a.type==="phone"&&(l.format="tel"),a.type==="url"&&(l.format="uri"),a.type==="date"&&(l.format=a.dateEnableTime?"date-time":"date"),a.type==="color"&&(l.format="color"),l.title=a.label,a.description&&(l.description=a.description),a.defaultValue!==void 0&&(l.default=a.defaultValue),a.type!=="text"&&(l["x-field-type"]=a.type),a.validation?.minLength!==void 0&&(l.minLength=a.validation.minLength),a.validation?.maxLength!==void 0&&(l.maxLength=a.validation.maxLength),a.validation?.min!==void 0&&(l.minimum=a.validation.min),a.validation?.max!==void 0&&(l.maximum=a.validation.max),a.validation?.step!==void 0&&(l.multipleOf=a.validation.step),a.validation?.pattern!==void 0&&(l.pattern=a.validation.pattern),a.required&&(r.push(a.key),a.type==="checkbox"&&(l.const=!0))}a.placeholder&&(l["x-placeholder"]=a.placeholder),a.validation?.options&&(l["x-options"]=a.validation.options);const i=S5(a.class,{colSpan:a.colSpan,colStart:a.colStart,rowSpan:a.rowSpan===Hd(a.type)?void 0:a.rowSpan,mColSpan:a.mColSpan});i&&(l["x-ui"]={...l["x-ui"],class:i}),a.condition&&(l["x-ui"]={...l["x-ui"],condition:a.condition}),a.hidden===!0&&(l["x-ui"]={...l["x-ui"],hidden:!0}),a.hideLabel===!0&&(l["x-hide-label"]=!0),a.richTextVariant&&(l["x-rich-text-variant"]=a.richTextVariant),a.markdownShowFormatting===!0&&(l["x-markdown-show-formatting"]=!0),a.textareaRows!==void 0&&(l["x-textarea-rows"]=a.textareaRows),a.textareaAutoHeight===!0&&(l["x-textarea-autoheight"]=!0),a.numberLayout&&a.numberLayout!=="default"&&(l["x-number-layout"]=a.numberLayout),a.numberSpinner===!1&&(l["x-number-spinner"]=!1),a.phoneOnlyCountries&&(l["x-phone-only-countries"]=a.phoneOnlyCountries),a.selectMultiselect===!0&&(l["x-select-multiselect"]=!0),a.fileMultiple===!0&&(l["x-file-multiple"]=!0),a.fileHeight!==void 0&&(l["x-file-height"]=a.fileHeight),a.fileAccept&&(l["x-file-accept"]=a.fileAccept),a.fileTheme&&(l["x-file-theme"]=a.fileTheme),a.fileShowIcon===!1&&(l["x-file-show-icon"]=!1),a.fileIcon&&(l["x-file-icon"]=a.fileIcon),a.dateEnableTime===!0&&(l["x-date-enable-time"]=!0),a.dateMin&&(l["x-date-min"]=a.dateMin),a.dateMax&&(l["x-date-max"]=a.dateMax),a.rangeMulti===!0&&(l["x-range-multi"]=!0),a.radioThin===!0&&(l["x-radio-thin"]=!0),a.radioHideRadio===!0&&(l["x-radio-hide-radio"]=!0),a.radioAlign&&(l["x-ui"]={...l["x-ui"],radioAlign:a.radioAlign}),a.radioInline===!0&&(l["x-radio-inline"]=!0),a.radioSize&&(l["x-radio-size"]=a.radioSize),a.radioTextAlign&&(l["x-ui"]={...l["x-ui"],radioTextAlign:a.radioTextAlign}),a.textIcon&&(l["x-text-icon"]=a.textIcon),a.textIconStart&&(l["x-text-icon-start"]=a.textIconStart),t[a.key]=l}const o={$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:t};return r.length>0&&(o.required=r),o}function bu(e,t){if(typeof t!="string")return t;const r=t.trim();switch(e.type){case"checkbox":case"toggle":return r.toLowerCase()==="true"?!0:r.toLowerCase()==="false"?!1:t;case"number":case"range":{if(!r)return t;const o=Number(r);return Number.isNaN(o)?t:o}default:return t}}function Fz(e,t){const r={};for(const o of e)if(!(o.type==="heading"||o.type==="divider")){if(t&&o.key in t){r[o.key]=bu(o,t[o.key]);continue}if(o.defaultValue!==void 0){r[o.key]=bu(o,o.defaultValue);continue}switch(o.type){case"checkbox":case"toggle":r[o.key]=!1;break;case"number":case"range":r[o.key]=o.validation?.min??0;break;default:r[o.key]=""}}return r}function zz(e,t){const r={};for(const o of e){if(o.type==="heading"||o.type==="divider"||o.type==="hidden"||o.hidden===!0)continue;const a=t[o.key];if(o.required&&(a==null||a==="")){r[o.key]=`${o.label} is required`;continue}if(a==null||a==="")continue;const l=o.validation;if(typeof a=="string"){if(l?.minLength!==void 0&&a.length<l.minLength){r[o.key]=`${o.label} must be at least ${l.minLength} characters`;continue}if(l?.maxLength!==void 0&&a.length>l.maxLength){r[o.key]=`${o.label} must be at most ${l.maxLength} characters`;continue}if(l?.pattern&&!new RegExp(l.pattern).test(a)){r[o.key]=`${o.label} format is invalid`;continue}}if(typeof a=="number"){if(l?.min!==void 0&&a<l.min){r[o.key]=`${o.label} must be at least ${l.min}`;continue}if(l?.max!==void 0&&a>l.max){r[o.key]=`${o.label} must be at most ${l.max}`;continue}}}return r}function Uz(e){return{fields:(0,n.computed)(()=>C5(e.value))}}const Hz=!0;var Ze=class{_type;_config;_condition;_hidden;_validations;_onUpdate;_class;_slots;_component;constructor(e,t={}){this._type=e,this._config=t}if(e){return this._condition=e,this}hidden(e=!0){return this._hidden=e,this}validate(e){return this._validations||(this._validations=[]),this._validations.push(e),this}onUpdate(e){return this._onUpdate=e,this}class(e){return this._class=this._class?`${this._class} ${e}`:e,this}required(e){return this._config.required=!0,e&&(this._config.requiredMessage=e),this}slot(e,t,r){return this._slots||(this._slots=[]),typeof e!="string"||t!==void 0&&typeof t!="string"?this._slots.push({component:e,props:t}):this._slots.push({name:e,component:t,props:r}),this}};function lt(e,t){return typeof e=="string"?{...t,label:e}:e??{}}const rt={text(e,t){return new Ze("text",lt(e,t))},email(e,t){return new Ze("email",lt(e,t))},password(e,t){return new Ze("password",lt(e,t))},number(e,t){return new Ze("number",lt(e,t))},tel(e,t){return new Ze("tel",lt(e,t))},url(e,t){return new Ze("url",lt(e,t))},date(e,t){return new Ze("date",lt(e,t))},time(e,t){return new Ze("time",lt(e,t))},datetime(e,t){return new Ze("datetime",lt(e,t))},textarea(e,t){return new Ze("textarea",lt(e,t))},richtext(e,t){return new Ze("richtext",lt(e,t))},json(e,t){const r=lt(e,t);return r.language||(r.language="json"),new Ze("json",r)},checkbox(e,t){return new Ze("checkbox",lt(e,t))},toggle(e,t){return new Ze("toggle",lt(e,t))},radio(e,t,r){if(typeof e=="string"){const o=e,a=t;return new Ze("radio",{...r,label:o,options:a})}return new Ze("radio",{...lt(t,r),options:e})},select(e,t,r){if(typeof e=="string"){const o=e,a=t;return new Ze("select",{...r,label:o,options:a})}return new Ze("select",{...lt(t,r),options:e})},multiselect(e,t,r){if(typeof e=="string"){const o=e,a=t;return new Ze("multiselect",{...r,label:o,options:a,multiple:!0})}return new Ze("multiselect",{...lt(t,r),options:e})},color(e,t){return new Ze("color",lt(e,t))},icon(e,t){return new Ze("icon",lt(e,t))},range(e,t){return new Ze("range",lt(e,t))},upload(e,t){return new Ze("upload",lt(e,t))},array(e,t,r){if(typeof e=="string"){const a=e,l=t;return new Ze("array",{...r??{},label:a,schema:l})}const o=e;return new Ze("array",{...lt(t,r),schema:o})},component(e,t={}){const r=new Ze("component",t);return r._component={component:e,props:t},r},display(e,t={}){const r=new Ze("display",t);return r._component={component:e,props:t},r}};var _u=class x5{_isSchema=!0;_label;_fields;_condition;_class;constructor(t,r){this._fields=t,this._label=r}if(t){return this._condition=t,this}class(t){return this._class=this._class?`${this._class} ${t}`:t,this}defaults(t){for(const[r,o]of Object.entries(t))this._fields[r]&&this._fields[r]._config.default===void 0&&(this._fields[r]._config.default=o);return this}getDefaults(){const t={};for(const[r,o]of Object.entries(this._fields))o._config.default!==void 0&&(t[r]=o._config.default);return t}toJSONSchema(){const t={},r=[];for(const[l,i]of Object.entries(this._fields)){const c=i._config,s=x5.getJSONSchemaType(i._type),u={type:s};if(c.label&&(u.title=c.label),c.helpText&&(u.description=c.helpText),c.default!==void 0&&(u.default=c.default),c.options){const f=c.options.map(m=>Lr(m)??m);i._type==="multiselect"?u.items={type:"string",enum:f}:u.enum=f}c.min!==void 0&&(u[s==="string"?"minLength":"minimum"]=c.min),c.max!==void 0&&(u[s==="string"?"maxLength":"maximum"]=c.max),i._type==="email"&&(u.format="email"),i._type==="url"&&(u.format="uri"),i._type==="date"&&(u.format="date"),i._type==="time"&&(u.format="time"),i._type==="datetime"&&(u.format="date-time");const d={};i._type!=="text"&&(d.fieldType=i._type),c.placeholder&&(d.placeholder=c.placeholder),c.disabled&&(d.disabled=c.disabled),c.readonly&&(d.readonly=c.readonly),c.autoheight&&(d.autoheight=c.autoheight),c.rows&&(d.rows=c.rows),c.cols&&(d.cols=c.cols),i._class&&(d.class=i._class),i._condition&&(d.condition=i._condition),i._hidden&&(d.hidden=!0),i._type==="array"&&(c.allowAdd!==void 0&&(d.allowAdd=c.allowAdd),c.allowDelete!==void 0&&(d.allowDelete=c.allowDelete)),i._component&&(d.component=typeof i._component.component=="string"?i._component.component:i._component.component.name||"CustomComponent",i._component.props&&(d.componentProps=i._component.props)),Object.keys(d).length>0&&(u["x-ui"]=d),t[l]=u,c.required===!0&&r.push(l)}const o={type:"object",properties:t};r.length>0&&(o.required=r),this._label&&(o.title=this._label);const a={};return this._condition&&(a.condition=this._condition),this._class&&(a.class=this._class),Object.keys(a).length>0&&(o["x-ui"]=a),o}static getJSONSchemaType(t){return{text:"string",email:"string",password:"string",number:"number",tel:"string",url:"string",date:"string",time:"string",datetime:"string",textarea:"string",richtext:"string",json:"object",checkbox:"boolean",toggle:"boolean",radio:"string",select:"string",multiselect:"array",array:"array"}[t]||"string"}};function Wz(e,t){if(typeof e=="string"){if(!t)throw new Error("Fields are required when providing a label");return new _u(t,e)}return new _u(e)}function jz(e){return e}function T5(e){const t={},r=new Set(e.required||[]);if(e.properties)for(const[a,l]of Object.entries(e.properties))t[a]=Yz(a,l,r.has(a),e);const o=new _u(t,e.title);return e["x-ui"]?.condition&&o.if(e["x-ui"].condition),e["x-ui"]?.class&&o.class(e["x-ui"].class),o}function Gz(e,t){const r=e.match(/^#\/(\$defs|definitions)\/(.+)$/);if(!r)return;const[,o,a]=r,l=o==="$defs"?t.$defs:t.definitions;return a?l?.[a]:void 0}function qz(e,t){const r=e.anyOf||e.oneOf;if(!r||r.length===0)return e;const o=r.filter(i=>i.type!=="null");if(o.length===1){const i=o[0];return{...i,title:e.title||i.title,description:e.description||i.description,default:e.default!==void 0?e.default:i.default,"x-ui":{...i["x-ui"],...e["x-ui"]}}}const a=["object","array","string","number","integer","boolean"],l=o.sort((i,c)=>a.indexOf(i.type||"string")-a.indexOf(c.type||"string"))[0];return{...l,title:e.title||l.title,description:e.description||l.description,default:e.default!==void 0?e.default:l.default,"x-ui":{...l["x-ui"],...e["x-ui"]}}}function Yz(e,t,r,o){let a=t;if(t.$ref){const d=Gz(t.$ref,o);d&&(a={...d,type:t.type??d.type,enum:t.enum??d.enum,title:t.title??d.title,description:t.description??d.description,default:t.default!==void 0?t.default:d.default,"x-ui":{...d["x-ui"],...t["x-ui"]}})}(a.anyOf||a.oneOf)&&(a=qz(a,o));const l=a["x-ui"]||{};let i=l.fieldType||a["x-field-type"]||t2(a);i==="select"&&a["x-select-multiselect"]&&(i="multiselect");const c=a["x-options"],s={};a.title&&(s.label=a.title),a.description&&(s.helpText=a.description),a.default!==void 0&&(s.default=a.default),r&&(s.required=!0),l.placeholder&&(s.placeholder=l.placeholder),a["x-placeholder"]&&(s.placeholder=a["x-placeholder"]),Zz(s,a),l.radioAlign!==void 0&&(s.align=l.radioAlign),l.radioTextAlign!==void 0&&(s.textAlign=l.radioTextAlign),l.disabled&&(s.disabled=l.disabled),l.readonly&&(s.readonly=l.readonly),l.autoheight&&(s.autoheight=l.autoheight),l.rows&&(s.rows=l.rows),l.cols&&(s.cols=l.cols),a.minimum!==void 0&&(s.min=a.minimum),a.maximum!==void 0&&(s.max=a.maximum),a.minLength!==void 0&&(s.min=a.minLength),a.maxLength!==void 0&&(s.max=a.maxLength);let u;switch(i){case"email":u=rt.email(s);break;case"password":u=rt.password(s);break;case"number":u=rt.number(s);break;case"tel":case"phone":u=rt.tel(s);break;case"url":u=rt.url(s);break;case"date":u=rt.date(s);break;case"time":u=rt.time(s);break;case"datetime":u=rt.datetime(s);break;case"textarea":u=rt.textarea(s);break;case"richtext":u=rt.richtext(s);break;case"json":u=rt.json(s);break;case"checkbox":u=rt.checkbox(s);break;case"toggle":u=rt.toggle(s);break;case"radio":u=rt.radio(c??a.enum??[],s);break;case"select":u=rt.select(c??a.enum??[],s);break;case"multiselect":u=rt.multiselect(c??a.enum??[],s);break;case"icon":u=rt.icon(s);break;case"file":case"upload":u=rt.upload(s);break;case"array":{const d={...s};l.allowAdd!==void 0&&(d.allowAdd=l.allowAdd),l.allowDelete!==void 0&&(d.allowDelete=l.allowDelete),a.items?.type&&(d.itemType=t2(a.items)),u=rt.array(a.title||e,void 0,d);break}case"display":u=rt.display(l.component||"div",l.componentProps||{});break;case"component":u=rt.component(l.component||"div",l.componentProps||{});break;default:u=rt.text(s)}return l.component&&i!=="component"&&i!=="display"&&(u._component={component:l.component,props:l.componentProps||{}}),a.const!==void 0&&u.validate(d=>d===a.const?!0:s.requiredMessage||"form.required"),l.class&&u.class(l.class),l.condition&&u.if(l.condition),l.hidden&&u.hidden(),u}function Zz(e,t){const r=t,o=(a,l)=>{r[l]!==void 0&&(e[a]=r[l])};r["x-radio-inline"]&&(e.inline=!0),r["x-radio-thin"]&&(e.thin=!0),r["x-radio-hide-radio"]&&(e.hideRadio=!0),o("align","x-radio-align"),o("textAlign","x-radio-text-align"),r["x-select-multiselect"]&&(e.multiple=!0),o("rows","x-textarea-rows"),o("autoheight","x-textarea-autoheight"),o("layout","x-number-layout"),r["x-number-spinner"]===!1&&(e.spinner=!1),o("onlyCountries","x-phone-only-countries"),r["x-range-multi"]&&(e.multiRange=!0),r["x-file-multiple"]&&(e.multiple=!0),o("height","x-file-height"),o("accept","x-file-accept"),o("theme","x-file-theme"),r["x-file-show-icon"]===!1&&(e.showIcon=!1),o("icon","x-file-icon"),r["x-date-enable-time"]&&(e.enableTime=!0),o("min","x-date-min"),o("max","x-date-max"),o("icon","x-text-icon"),o("iconStart","x-text-icon-start"),o("variant","x-rich-text-variant"),r["x-markdown-show-formatting"]&&(e.showFormatting=!0),r["x-hide-label"]===!0&&(e.hideLabel=!0)}function t2(e){if(e.format)switch(e.format){case"email":return"email";case"uri":return"url";case"date":return"date";case"time":return"time";case"date-time":return"datetime"}if(e.enum)return"select";switch(e.type){case"boolean":return"checkbox";case"number":case"integer":return"number";case"array":return"array";case"object":return"json";default:return"text"}}var Xz={class:"multi-step-form"},Kz={class:"step-progress"},Jz=["onClick"],Qz={class:"step-number"},eU={class:"step-label"},tU={key:0},nU={key:0,class:"step-title"},rU={key:1,class:"validation-errors"},oU={class:"step-navigation"},aU=["disabled"],lU={class:"step-counter"},iU=(0,n.defineComponent)({__name:"MultiStepForm",props:{schema:{},modelValue:{},currentStep:{},components:{},validateOnNext:{type:Boolean,default:!0}},emits:["update:modelValue","update:currentStep","stepChange","complete","validationError"],setup(e,{expose:t,emit:r}){const o=e,a=r,{$t:l}=nt(),i=(0,n.useSlots)(),c=(0,n.computed)(()=>Object.keys(i)),s=(0,n.ref)({...o.modelValue||{}}),u=(0,n.ref)(o.currentStep!=null&&o.currentStep!==""?o.currentStep:Object.keys(o.schema)[0]);let d=!1;(0,n.watch)(()=>o.modelValue,O=>{d||(s.value={...O||{}})},{deep:!0}),(0,n.watch)(s,O=>{d=!0,a("update:modelValue",O),setTimeout(()=>{d=!1},0)},{deep:!0}),(0,n.watch)(()=>o.currentStep,O=>{O!=null&&(u.value=O)}),(0,n.watch)(u,O=>{a("update:currentStep",O),a("stepChange",O)});function f(O,V){const I=V.split(".");let Z=O;for(const D of I)Z=Z?.[D];return Z}function m(O,V){if(!O)return!0;try{const I=Pa(O);if(I.length===0)return!0;let Z=!0,D=null;for(let C=0;C<I.length;C++){const U=I[C],R=f(V,U.field),{op:W,value:ne,connector:J}=U;let F=!1;switch(W){case"eq":F=R===ne;break;case"ne":F=R!==ne;break;case"gt":F=ne!=null&&R>ne;break;case"ge":F=ne!=null&&R>=ne;break;case"lt":F=ne!=null&&R<ne;break;case"le":F=ne!=null&&R<=ne;break;case"co":F=ne!=null&&String(R).includes(String(ne));break;case"sw":F=ne!=null&&String(R).startsWith(String(ne));break;case"ew":F=ne!=null&&String(R).endsWith(String(ne));break;case"pr":F=R!=null;break;default:F=!1}C===0?(Z=F,D=F):(J==="or"?Z=(D??!1)||F:J==="and"&&(Z=(D??!1)&&F),D=Z)}return Z}catch{return!0}}function p(O){return O._condition==null?!0:m(O._condition,s.value)}const h=(0,n.computed)(()=>Object.entries(o.schema).filter(([,O])=>p(O)).map(([O,V])=>({key:O,schema:V}))),v=(0,n.computed)(()=>h.value.findIndex(O=>O.key===u.value)),y=(0,n.computed)(()=>v.value===0),g=(0,n.computed)(()=>v.value===h.value.length-1),L=(0,n.computed)(()=>h.value[v.value]?.schema),b=(0,n.ref)({});function _(O){return O._hidden?!1:O._condition==null?!0:m(O._condition,s.value)}function w(O){const V=O.replace(/\[(\d+)\]/g,".$1");return f(s.value,V)}function E(O){return!!(O==null||typeof O=="string"&&O.trim()===""||Array.isArray(O)&&O.length===0)}function $(){if(!o.validateOnNext||L.value==null)return!0;const O={},V=L.value._fields;for(const[I,Z]of Object.entries(V)){if(Z._type==="display"||!_(Z))continue;const D=w(I),C=Z._config;if(C.required===!0&&E(D)){O[I]=`${typeof C.label=="string"?C.label:I} is required`;continue}if(Z._validations&&!E(D))for(const U of Z._validations){const R=U(D);if(R!==!0){O[I]=R;break}}}return b.value=O,Object.keys(O).length>0?(a("validationError",O),!1):!0}function k(O,V){return V._label!=null?V._label:O.split(/[._-]/).map(I=>I.charAt(0).toUpperCase()+I.slice(1)).join(" ")}function B(O){const V=h.value.findIndex(I=>I.key===O);if(V!==-1){if(V<v.value){u.value=O,b.value={};return}V>v.value&&!$()||(u.value=O)}}function N(){if($())if(g.value)a("complete");else{const O=v.value+1;u.value=h.value[O].key,b.value={}}}function M(){if(!y.value){const O=v.value-1;u.value=h.value[O].key,b.value={}}}return t({validateCurrentStep:$,stepErrors:b,nextStep:N,prevStep:M,goToStep:B,visibleSteps:h,activeStep:u,currentStepIndex:v,isFirstStep:y,isLastStep:g}),(O,V)=>((0,n.openBlock)(),(0,n.createElementBlock)("div",Xz,[(0,n.createElementVNode)("div",Kz,[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(h.value,(I,Z)=>((0,n.openBlock)(),(0,n.createElementBlock)("div",{key:I.key,class:(0,n.normalizeClass)(["step-indicator",{active:I.key===u.value,completed:Z<v.value}]),onClick:D=>B(I.key)},[(0,n.createElementVNode)("div",Qz,(0,n.toDisplayString)(Z+1),1),(0,n.createElementVNode)("div",eU,(0,n.toDisplayString)(k(I.key,I.schema)),1)],10,Jz))),128))]),L.value!=null?((0,n.openBlock)(),(0,n.createElementBlock)("div",tU,[L.value._label?((0,n.openBlock)(),(0,n.createElementBlock)("h2",nU,(0,n.toDisplayString)(L.value._label),1)):(0,n.createCommentVNode)("",!0),Object.keys(b.value).length>0?((0,n.openBlock)(),(0,n.createElementBlock)("div",rU,[(0,n.createElementVNode)("ul",null,[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(b.value,(I,Z)=>((0,n.openBlock)(),(0,n.createElementBlock)("li",{key:Z},(0,n.toDisplayString)(I),1))),128))])])):(0,n.createCommentVNode)("",!0),(0,n.renderSlot)(O.$slots,`step:${u.value}`,{schema:L.value,formData:s.value,stepKey:u.value,errors:b.value},()=>[(0,n.createVNode)(is,{modelValue:s.value,"onUpdate:modelValue":V[0]||(V[0]=I=>s.value=I),schema:L.value,components:e.components,errors:b.value},(0,n.createSlots)({_:2},[(0,n.renderList)(c.value,I=>({name:I,fn:(0,n.withCtx)(Z=>[(0,n.renderSlot)(O.$slots,I,(0,n.normalizeProps)((0,n.guardReactiveProps)(Z)),void 0,!0)])}))]),1032,["modelValue","schema","components","errors"])],!0)])):(0,n.createCommentVNode)("",!0),(0,n.createElementVNode)("div",oU,[(0,n.createElementVNode)("button",{type:"button",class:"btn-secondary",disabled:y.value,onClick:M},(0,n.toDisplayString)((0,n.unref)(l)("multiStep.previous")),9,aU),(0,n.createElementVNode)("div",lU,(0,n.toDisplayString)((0,n.unref)(l)("multiStep.step",{current:v.value+1,total:h.value.length})),1),(0,n.createElementVNode)("button",{type:"button",class:"btn-primary",onClick:N},(0,n.toDisplayString)(g.value?(0,n.unref)(l)("multiStep.complete"):(0,n.unref)(l)("multiStep.next")),1)])]))}}),sU=be(iU,[["__scopeId","data-v-7a55f4bb"]]);function cU(){return{steps:[],transitions:[]}}function uU(e){return!!e&&e.steps.length>1}function Ei(e,t){if(t!=null)return e.steps.find(r=>r.key===t)}function N5(e,t){return e.transitions.filter(r=>r.from===t)}function B5(e){const t=e.schema?.properties;return t&&typeof t=="object"?Object.entries(t):[]}function M5(e){if(!e)return!1;if(typeof e.autoAdvance=="boolean")return e.autoAdvance;const t=B5(e);if(t.length!==1)return!1;const[r,o]=t[0];if(!(Array.isArray(e.schema?.required)&&e.schema.required.includes(r)))return!1;const a=o?.["x-field-type"],l=a==="radio"||a==="select"||!a&&Array.isArray(o?.enum),i=o?.["x-field-type"]==="select"&&o?.["x-multiselect"]===!0;return l&&!i}function D5(e){if(!e)return null;const t=B5(e);return t.length===1?t[0][0]:null}function Si(e){return e.startId&&Ei(e,e.startId)?e.startId:e.steps[0]?.key}function ss(e,t,r){for(const o of N5(e,t))if(!o.condition||o.condition.trim()===""||td(o.condition,r))return o.to;return null}function dU(e,t,r){return ss(e,t,r)===null}function wu(e,t,r){const o=Si(e);if(!o||!t)return 0;const a=new Set;let l=o,i=0,c=0,s=!1;for(;l&&!a.has(l);)a.add(l),c++,s||(l===t?s=!0:i++),l=ss(e,l,r);return c<=1?s?100:0:Math.round(i/(c-1)*100)}function fU(e){const t={},r=[];for(const a of e.steps){const l=a.schema?.properties;l&&typeof l=="object"&&Object.assign(t,l);const i=a.schema?.required;if(Array.isArray(i))for(const c of i)r.includes(c)||r.push(c)}const o={type:"object",properties:t};return r.length&&(o.required=r),o}var mU={class:"form-flow-player"},pU={class:"ffp-stage"},hU={key:0,class:"ffp-title"},gU={key:1,class:"ffp-empty"},vU={class:"ffp-nav flex flex-center gap-1"},LU={key:0,class:"ffp-counter flex-center round bg-primary-10 color-primary px-075 txt13 medium tabular-nums"},yU=(0,n.defineComponent)({__name:"FormFlowPlayer",props:{structure:{},modelValue:{},components:{},formName:{default:""},animated:{type:Boolean,default:!0},autoAdvance:{type:Boolean,default:!0},autoAdvanceDelay:{default:200},redirect:{type:Boolean,default:!0},hideTitle:{type:Boolean,default:!1},hideCounter:{type:Boolean,default:!1},onComplete:{}},emits:["update:modelValue","stepChange","progress","stepEnter","formComplete","redirect","complete"],setup(e,{expose:t,emit:r}){const o=e,a=r,{$t:l}=nt(),i=(0,n.useSlots)(),c=(0,n.computed)(()=>Object.keys(i).filter(C=>C!=="nav"&&C!=="primary-label"&&C!=="step"&&C!=="empty")),s=(0,n.ref)("next"),u=(0,n.computed)(()=>o.animated?s.value==="prev"?"ffp-slide-prev":"ffp-slide-next":""),d=(0,n.ref)({...o.modelValue||{}});(0,n.watch)(d,C=>a("update:modelValue",C),{deep:!0}),(0,n.watch)(()=>o.modelValue,C=>{C&&C!==d.value&&(d.value={...C})},{deep:!0});const f=(0,n.ref)(Si(o.structure)),m=(0,n.ref)([]);(0,n.watch)(()=>o.structure,()=>{f.value=Si(o.structure),m.value=[]},{deep:!0}),(0,n.watch)(f,C=>{C&&a("stepChange",C)},{immediate:!0});const p=(0,n.computed)(()=>Ei(o.structure,f.value??null));function h(C){const U=Ei(o.structure,C),R=wu(o.structure,C,d.value),W=m.value.length+1,ne=R>0?Math.round(W/R*100):null;return{formName:o.formName,stepKey:C,stepTitle:U?.title??"",stepIndex:W,totalSteps:ne,skipSubmit:U?.skipSubmit??!1,formData:{...d.value}}}(0,n.watch)(f,(C,U)=>{C&&C!==U&&a("stepEnter",h(C))},{immediate:!0});const v=(0,n.computed)(()=>{const C=p.value;return C?T5(C.schema):null}),y=(0,n.computed)(()=>f.value?ss(o.structure,f.value,d.value):null),g=(0,n.computed)(()=>y.value===null),L=(0,n.computed)(()=>m.value.length>0),b=(0,n.computed)(()=>wu(o.structure,f.value,d.value));(0,n.watch)(b,C=>a("progress",C),{immediate:!0});const _=(0,n.ref)(null),w=(0,n.ref)(!1);function E(C){_.value=C}function $(){return _.value?.validate()??!0}async function k(){if(!$())return;if(g.value){w.value=!0;const U=p.value;try{U?.skipSubmit||await o.onComplete?.({...d.value}),f.value&&a("formComplete",h(f.value)),a("complete",{...d.value});const R=U?.redirectUrl?.trim();R&&(a("redirect",R),o.redirect&&typeof window<"u"&&window.location.assign(R))}finally{w.value=!1}return}const C=y.value;C&&f.value&&(s.value="next",m.value.push(f.value),f.value=C)}const B=(0,n.computed)(()=>o.autoAdvance&&M5(p.value)),N=(0,n.computed)(()=>D5(p.value));let M=null;const O=(0,n.ref)(null);function V(){M&&(clearTimeout(M),M=null)}const I=(0,n.ref)(N.value?d.value[N.value]:void 0);(0,n.watch)(f,()=>{V(),O.value=null,I.value=N.value?d.value[N.value]:void 0},{flush:"sync"}),(0,n.watch)(()=>N.value?d.value[N.value]:void 0,C=>{!B.value||g.value||O.value!==f.value&&(!(C!=null&&C!=="")||C===I.value||(V(),M=setTimeout(()=>{!B.value||g.value||(O.value=f.value??null,k())},o.autoAdvanceDelay)))});function Z(){const C=m.value.pop();C&&(s.value="prev",f.value=C)}const D=(0,n.computed)(()=>m.value.length+1);return t({formData:d,currentKey:f,nextKey:y,isTerminal:g,progress:b,validateStep:$}),(C,U)=>((0,n.openBlock)(),(0,n.createElementBlock)("div",mU,[(0,n.createElementVNode)("div",pU,[(0,n.createVNode)(n.Transition,{name:u.value,mode:"out-in"},{default:(0,n.withCtx)(()=>[p.value?((0,n.openBlock)(),(0,n.createElementBlock)("div",{key:f.value,class:"ffp-step"},[!e.hideTitle&&p.value.title?((0,n.openBlock)(),(0,n.createElementBlock)("h2",hU,(0,n.toDisplayString)(p.value.title),1)):(0,n.createCommentVNode)("",!0),(0,n.renderSlot)(C.$slots,"step",{step:p.value,formData:d.value,stepKey:f.value,schema:v.value,setFormRef:E},()=>[v.value?((0,n.openBlock)(),(0,n.createBlock)(is,{key:0,ref_key:"formRef",ref:_,modelValue:d.value,"onUpdate:modelValue":U[0]||(U[0]=R=>d.value=R),schema:v.value,components:e.components},(0,n.createSlots)({_:2},[(0,n.renderList)(c.value,R=>({name:R,fn:(0,n.withCtx)(W=>[(0,n.renderSlot)(C.$slots,R,(0,n.normalizeProps)((0,n.guardReactiveProps)(W)),void 0,!0)])}))]),1032,["modelValue","schema","components"])):(0,n.createCommentVNode)("",!0)],!0)])):((0,n.openBlock)(),(0,n.createElementBlock)("div",gU,[(0,n.renderSlot)(C.$slots,"empty",{},()=>[(0,n.createTextVNode)((0,n.toDisplayString)((0,n.unref)(l)?.("multiStep.empty")??"No steps to display."),1)],!0)]))]),_:3},8,["name"])]),(0,n.renderSlot)(C.$slots,"nav",{canGoBack:L.value,isTerminal:g.value,submitting:w.value,goBack:Z,goPrimary:k,stepPosition:D.value,progress:b.value,currentKey:f.value,autoAdvances:B.value},()=>[(0,n.createElementVNode)("div",vU,[(0,n.createVNode)(se,{class:"ffp-nav-btn",flat:"",icon:"arrow_back",value:(0,n.unref)(l)?.("multiStep.previous")??"Back",disabled:!L.value,onClick:Z},null,8,["value","disabled"]),e.hideCounter?(0,n.createCommentVNode)("",!0):((0,n.openBlock)(),(0,n.createElementBlock)("span",LU,(0,n.toDisplayString)(D.value),1)),g.value?((0,n.openBlock)(),(0,n.createBlock)(se,{key:1,class:"ffp-nav-btn",value:(0,n.unref)(l)?.("multiStep.complete")??"Submit",loading:w.value,onClick:k},{default:(0,n.withCtx)(()=>[(0,n.renderSlot)(C.$slots,"primary-label",{isTerminal:!0},()=>[(0,n.createTextVNode)((0,n.toDisplayString)((0,n.unref)(l)?.("multiStep.complete")??"Submit"),1)],!0)]),_:3},8,["value","loading"])):((0,n.openBlock)(),(0,n.createBlock)(se,{key:2,class:"ffp-nav-btn","icon-end":"arrow_forward",value:(0,n.unref)(l)?.("multiStep.next")??"Next",disabled:w.value,onClick:k},{default:(0,n.withCtx)(()=>[(0,n.renderSlot)(C.$slots,"primary-label",{isTerminal:!1},()=>[(0,n.createTextVNode)((0,n.toDisplayString)((0,n.unref)(l)?.("multiStep.next")??"Next"),1)],!0)]),_:3},8,["value","disabled"]))])],!0)]))}}),bU=be(yU,[["__scopeId","data-v-f019de9f"]]);function cn(e){var t;return((t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Fn(e){return cn(e).getComputedStyle(e)}var n2=Math.min,$a=Math.max,Ci=Math.round;function A5(e){const t=Fn(e);let r=parseFloat(t.width),o=parseFloat(t.height);const a=e.offsetWidth,l=e.offsetHeight,i=Ci(r)!==a||Ci(o)!==l;return i&&(r=a,o=l),{width:r,height:o,fallback:i}}function Sr(e){return I5(e)?(e.nodeName||"").toLowerCase():""}var Tl;function P5(){if(Tl)return Tl;const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?(Tl=e.brands.map((t=>t.brand+"/"+t.version)).join(" "),Tl):navigator.userAgent}function zn(e){return e instanceof cn(e).HTMLElement}function wr(e){return e instanceof cn(e).Element}function I5(e){return e instanceof cn(e).Node}function r2(e){return typeof ShadowRoot>"u"?!1:e instanceof cn(e).ShadowRoot||e instanceof ShadowRoot}function cs(e){const{overflow:t,overflowX:r,overflowY:o,display:a}=Fn(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+r)&&!["inline","contents"].includes(a)}function _U(e){return["table","td","th"].includes(Sr(e))}function ku(e){const t=/firefox/i.test(P5()),r=Fn(e),o=r.backdropFilter||r.WebkitBackdropFilter;return r.transform!=="none"||r.perspective!=="none"||!!o&&o!=="none"||t&&r.willChange==="filter"||t&&!!r.filter&&r.filter!=="none"||["transform","perspective"].some((a=>r.willChange.includes(a)))||["paint","layout","strict","content"].some((a=>{const l=r.contain;return l!=null&&l.includes(a)}))}function V5(){return!/^((?!chrome|android).)*safari/i.test(P5())}function jd(e){return["html","body","#document"].includes(Sr(e))}function O5(e){return wr(e)?e:e.contextElement}var R5={x:1,y:1};function Bo(e){const t=O5(e);if(!zn(t))return R5;const r=t.getBoundingClientRect(),{width:o,height:a,fallback:l}=A5(t);let i=(l?Ci(r.width):r.width)/o,c=(l?Ci(r.height):r.height)/a;return i&&Number.isFinite(i)||(i=1),c&&Number.isFinite(c)||(c=1),{x:i,y:c}}function Ua(e,t,r,o){var a,l;t===void 0&&(t=!1),r===void 0&&(r=!1);const i=e.getBoundingClientRect(),c=O5(e);let s=R5;t&&(o?wr(o)&&(s=Bo(o)):s=Bo(e));const u=c?cn(c):window,d=!V5()&&r;let f=(i.left+(d&&((a=u.visualViewport)==null?void 0:a.offsetLeft)||0))/s.x,m=(i.top+(d&&((l=u.visualViewport)==null?void 0:l.offsetTop)||0))/s.y,p=i.width/s.x,h=i.height/s.y;if(c){const v=cn(c),y=o&&wr(o)?cn(o):o;let g=v.frameElement;for(;g&&o&&y!==v;){const L=Bo(g),b=g.getBoundingClientRect(),_=getComputedStyle(g);b.x+=(g.clientLeft+parseFloat(_.paddingLeft))*L.x,b.y+=(g.clientTop+parseFloat(_.paddingTop))*L.y,f*=L.x,m*=L.y,p*=L.x,h*=L.y,f+=b.x,m+=b.y,g=cn(g).frameElement}}return{width:p,height:h,top:m,right:f+p,bottom:m+h,left:f,x:f,y:m}}function kr(e){return((I5(e)?e.ownerDocument:e.document)||window.document).documentElement}function us(e){return wr(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function F5(e){return Ua(kr(e)).left+us(e).scrollLeft}function Ha(e){if(Sr(e)==="html")return e;const t=e.assignedSlot||e.parentNode||r2(e)&&e.host||kr(e);return r2(t)?t.host:t}function z5(e){const t=Ha(e);return jd(t)?t.ownerDocument.body:zn(t)&&cs(t)?t:z5(t)}function xi(e,t){var r;t===void 0&&(t=[]);const o=z5(e),a=o===((r=e.ownerDocument)==null?void 0:r.body),l=cn(o);return a?t.concat(l,l.visualViewport||[],cs(o)?o:[]):t.concat(o,xi(o))}function o2(e,t,r){return t==="viewport"?Ur((function(o,a){const l=cn(o),i=kr(o),c=l.visualViewport;let s=i.clientWidth,u=i.clientHeight,d=0,f=0;if(c){s=c.width,u=c.height;const m=V5();(m||!m&&a==="fixed")&&(d=c.offsetLeft,f=c.offsetTop)}return{width:s,height:u,x:d,y:f}})(e,r)):wr(t)?Ur((function(o,a){const l=Ua(o,!0,a==="fixed"),i=l.top+o.clientTop,c=l.left+o.clientLeft,s=zn(o)?Bo(o):{x:1,y:1};return{width:o.clientWidth*s.x,height:o.clientHeight*s.y,x:c*s.x,y:i*s.y}})(t,r)):Ur((function(o){const a=kr(o),l=us(o),i=o.ownerDocument.body,c=$a(a.scrollWidth,a.clientWidth,i.scrollWidth,i.clientWidth),s=$a(a.scrollHeight,a.clientHeight,i.scrollHeight,i.clientHeight);let u=-l.scrollLeft+F5(o);const d=-l.scrollTop;return Fn(i).direction==="rtl"&&(u+=$a(a.clientWidth,i.clientWidth)-c),{width:c,height:s,x:u,y:d}})(kr(e)))}function a2(e){return zn(e)&&Fn(e).position!=="fixed"?e.offsetParent:null}function l2(e){const t=cn(e);let r=a2(e);for(;r&&_U(r)&&Fn(r).position==="static";)r=a2(r);return r&&(Sr(r)==="html"||Sr(r)==="body"&&Fn(r).position==="static"&&!ku(r))?t:r||(function(o){let a=Ha(o);for(;zn(a)&&!jd(a);){if(ku(a))return a;a=Ha(a)}return null})(e)||t}function wU(e,t,r){const o=zn(t),a=kr(t),l=Ua(e,!0,r==="fixed",t);let i={scrollLeft:0,scrollTop:0};const c={x:0,y:0};if(o||!o&&r!=="fixed")if((Sr(t)!=="body"||cs(a))&&(i=us(t)),zn(t)){const s=Ua(t,!0);c.x=s.x+t.clientLeft,c.y=s.y+t.clientTop}else a&&(c.x=F5(a));return{x:l.left+i.scrollLeft-c.x,y:l.top+i.scrollTop-c.y,width:l.width,height:l.height}}var kU={getClippingRect:function(e){let{element:t,boundary:r,rootBoundary:o,strategy:a}=e;const l=[...r==="clippingAncestors"?(function(s,u){const d=u.get(s);if(d)return d;let f=xi(s).filter((v=>wr(v)&&Sr(v)!=="body")),m=null;const p=Fn(s).position==="fixed";let h=p?Ha(s):s;for(;wr(h)&&!jd(h);){const v=Fn(h),y=ku(h);(p?y||m:y||v.position!=="static"||!m||!["absolute","fixed"].includes(m.position))?m=v:f=f.filter((g=>g!==h)),h=Ha(h)}return u.set(s,f),f})(t,this._c):[].concat(r),o],i=l[0],c=l.reduce(((s,u)=>{const d=o2(t,u,a);return s.top=$a(d.top,s.top),s.right=n2(d.right,s.right),s.bottom=n2(d.bottom,s.bottom),s.left=$a(d.left,s.left),s}),o2(t,i,a));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:r,strategy:o}=e;const a=zn(r),l=kr(r);if(r===l)return t;let i={scrollLeft:0,scrollTop:0},c={x:1,y:1};const s={x:0,y:0};if((a||!a&&o!=="fixed")&&((Sr(r)!=="body"||cs(l))&&(i=us(r)),zn(r))){const u=Ua(r);c=Bo(r),s.x=u.x+r.clientLeft,s.y=u.y+r.clientTop}return{width:t.width*c.x,height:t.height*c.y,x:t.x*c.x-i.scrollLeft*c.x+s.x,y:t.y*c.y-i.scrollTop*c.y+s.y}},isElement:wr,getDimensions:function(e){return zn(e)?A5(e):e.getBoundingClientRect()},getOffsetParent:l2,getDocumentElement:kr,getScale:Bo,async getElementRects(e){let{reference:t,floating:r,strategy:o}=e;const a=this.getOffsetParent||l2,l=this.getDimensions;return{reference:wU(t,await a(r),o),floating:{x:0,y:0,...await l(r)}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>Fn(e).direction==="rtl"},$U=(e,t,r)=>{const o=new Map,a={platform:kU,...r},l={...a.platform,_c:o};return Gm(e,t,{...a,platform:l})};function U5(e,t){for(const r in t)Object.prototype.hasOwnProperty.call(t,r)&&(typeof t[r]=="object"&&e[r]?U5(e[r],t[r]):e[r]=t[r])}var _n={disabled:!1,distance:5,skidding:0,container:"body",boundary:void 0,instantMove:!1,disposeTimeout:150,popperTriggers:[],strategy:"absolute",preventOverflow:!0,flip:!0,shift:!0,overflowPadding:0,arrowPadding:0,arrowOverflow:!0,autoHideOnMousedown:!1,themes:{tooltip:{placement:"top",triggers:["hover","focus","touch"],hideTriggers:e=>[...e,"click"],delay:{show:200,hide:0},handleResize:!1,html:!1,loadingContent:"..."},dropdown:{placement:"bottom",triggers:["click"],delay:0,handleResize:!0,autoHide:!0},menu:{$extend:"dropdown",triggers:["hover","focus"],popperTriggers:["hover"],delay:{show:0,hide:400}}}};function Wa(e,t){let r=_n.themes[e]||{},o;do o=r[t],typeof o>"u"?r.$extend?r=_n.themes[r.$extend]||{}:(r=null,o=_n[t]):r=null;while(r);return o}function EU(e){const t=[e];let r=_n.themes[e]||{};do r.$extend&&!r.$resetCss?(t.push(r.$extend),r=_n.themes[r.$extend]||{}):r=null;while(r);return t.map(o=>`v-popper--theme-${o}`)}function i2(e){const t=[e];let r=_n.themes[e]||{};do r.$extend?(t.push(r.$extend),r=_n.themes[r.$extend]||{}):r=null;while(r);return t}var Ro=!1;if(typeof window<"u"){Ro=!1;try{const e=Object.defineProperty({},"passive",{get(){Ro=!0}});window.addEventListener("test",null,e)}catch{}}var H5=!1;typeof window<"u"&&typeof navigator<"u"&&(H5=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream);var W5=["auto","top","bottom","left","right"].reduce((e,t)=>e.concat([t,`${t}-start`,`${t}-end`]),[]),s2={hover:"mouseenter",focus:"focus",click:"click",touch:"touchstart",pointer:"pointerdown"},c2={hover:"mouseleave",focus:"blur",click:"click",touch:"touchend",pointer:"pointerup"};function u2(e,t){const r=e.indexOf(t);r!==-1&&e.splice(r,1)}function ic(){return new Promise(e=>requestAnimationFrame(()=>{requestAnimationFrame(e)}))}var Ln=[],Ar=null,d2={};function f2(e){let t=d2[e];return t||(t=d2[e]=[]),t}var $u=function(){};typeof window<"u"&&($u=window.Element);function ze(e){return function(t){return Wa(t.theme,e)}}var sc="__floating-vue__popper",j5=()=>(0,n.defineComponent)({name:"VPopper",provide(){return{[sc]:{parentPopper:this}}},inject:{[sc]:{default:null}},props:{theme:{type:String,required:!0},targetNodes:{type:Function,required:!0},referenceNode:{type:Function,default:null},popperNode:{type:Function,required:!0},shown:{type:Boolean,default:!1},showGroup:{type:String,default:null},ariaId:{default:null},disabled:{type:Boolean,default:ze("disabled")},positioningDisabled:{type:Boolean,default:ze("positioningDisabled")},placement:{type:String,default:ze("placement"),validator:e=>W5.includes(e)},delay:{type:[String,Number,Object],default:ze("delay")},distance:{type:[Number,String],default:ze("distance")},skidding:{type:[Number,String],default:ze("skidding")},triggers:{type:Array,default:ze("triggers")},showTriggers:{type:[Array,Function],default:ze("showTriggers")},hideTriggers:{type:[Array,Function],default:ze("hideTriggers")},popperTriggers:{type:Array,default:ze("popperTriggers")},popperShowTriggers:{type:[Array,Function],default:ze("popperShowTriggers")},popperHideTriggers:{type:[Array,Function],default:ze("popperHideTriggers")},container:{type:[String,Object,$u,Boolean],default:ze("container")},boundary:{type:[String,$u],default:ze("boundary")},strategy:{type:String,validator:e=>["absolute","fixed"].includes(e),default:ze("strategy")},autoHide:{type:[Boolean,Function],default:ze("autoHide")},handleResize:{type:Boolean,default:ze("handleResize")},instantMove:{type:Boolean,default:ze("instantMove")},eagerMount:{type:Boolean,default:ze("eagerMount")},popperClass:{type:[String,Array,Object],default:ze("popperClass")},computeTransformOrigin:{type:Boolean,default:ze("computeTransformOrigin")},autoMinSize:{type:Boolean,default:ze("autoMinSize")},autoSize:{type:[Boolean,String],default:ze("autoSize")},autoMaxSize:{type:Boolean,default:ze("autoMaxSize")},autoBoundaryMaxSize:{type:Boolean,default:ze("autoBoundaryMaxSize")},preventOverflow:{type:Boolean,default:ze("preventOverflow")},overflowPadding:{type:[Number,String],default:ze("overflowPadding")},arrowPadding:{type:[Number,String],default:ze("arrowPadding")},arrowOverflow:{type:Boolean,default:ze("arrowOverflow")},flip:{type:Boolean,default:ze("flip")},shift:{type:Boolean,default:ze("shift")},shiftCrossAxis:{type:Boolean,default:ze("shiftCrossAxis")},noAutoFocus:{type:Boolean,default:ze("noAutoFocus")},disposeTimeout:{type:Number,default:ze("disposeTimeout")}},emits:{show:()=>!0,hide:()=>!0,"update:shown":e=>!0,"apply-show":()=>!0,"apply-hide":()=>!0,"close-group":()=>!0,"close-directive":()=>!0,"auto-hide":()=>!0,resize:()=>!0},data(){return{isShown:!1,isMounted:!1,skipTransition:!1,classes:{showFrom:!1,showTo:!1,hideFrom:!1,hideTo:!0},result:{x:0,y:0,placement:"",strategy:this.strategy,arrow:{x:0,y:0,centerOffset:0},transformOrigin:null},randomId:`popper_${[Math.random(),Date.now()].map(e=>e.toString(36).substring(2,10)).join("_")}`,shownChildren:new Set,lastAutoHide:!0,pendingHide:!1,containsGlobalTarget:!1,isDisposed:!0,mouseDownContains:!1}},computed:{popperId(){return this.ariaId!=null?this.ariaId:this.randomId},shouldMountContent(){return this.eagerMount||this.isMounted},slotData(){return{popperId:this.popperId,isShown:this.isShown,shouldMountContent:this.shouldMountContent,skipTransition:this.skipTransition,autoHide:typeof this.autoHide=="function"?this.lastAutoHide:this.autoHide,show:this.show,hide:this.hide,handleResize:this.handleResize,onResize:this.onResize,classes:{...this.classes,popperClass:this.popperClass},result:this.positioningDisabled?null:this.result,attrs:this.$attrs}},parentPopper(){var e;return(e=this[sc])==null?void 0:e.parentPopper},hasPopperShowTriggerHover(){var e,t;return((e=this.popperTriggers)==null?void 0:e.includes("hover"))||((t=this.popperShowTriggers)==null?void 0:t.includes("hover"))}},watch:{shown:"$_autoShowHide",disabled(e){e?this.dispose():this.init()},async container(){this.isShown&&(this.$_ensureTeleport(),await this.$_computePosition())},triggers:{handler:"$_refreshListeners",deep:!0},positioningDisabled:"$_refreshListeners",...["placement","distance","skidding","boundary","strategy","overflowPadding","arrowPadding","preventOverflow","shift","shiftCrossAxis","flip"].reduce((e,t)=>(e[t]="$_computePosition",e),{})},created(){this.autoMinSize,this.autoMaxSize},mounted(){this.init(),this.$_detachPopperNode()},activated(){this.$_autoShowHide()},deactivated(){this.hide()},beforeUnmount(){this.dispose()},methods:{show({event:e=null,skipDelay:t=!1,force:r=!1}={}){var o,a;(o=this.parentPopper)!=null&&o.lockedChild&&this.parentPopper.lockedChild!==this||(this.pendingHide=!1,(r||!this.disabled)&&(((a=this.parentPopper)==null?void 0:a.lockedChild)===this&&(this.parentPopper.lockedChild=null),this.$_scheduleShow(e,t),this.$emit("show"),this.$_showFrameLocked=!0,requestAnimationFrame(()=>{this.$_showFrameLocked=!1})),this.$emit("update:shown",!0))},hide({event:e=null,skipDelay:t=!1}={}){var r;if(!this.$_hideInProgress){if(this.shownChildren.size>0){this.pendingHide=!0;return}if(this.hasPopperShowTriggerHover&&this.$_isAimingPopper()){this.parentPopper&&(this.parentPopper.lockedChild=this,clearTimeout(this.parentPopper.lockedChildTimer),this.parentPopper.lockedChildTimer=setTimeout(()=>{this.parentPopper.lockedChild===this&&(this.parentPopper.lockedChild.hide({skipDelay:t}),this.parentPopper.lockedChild=null)},1e3));return}((r=this.parentPopper)==null?void 0:r.lockedChild)===this&&(this.parentPopper.lockedChild=null),this.pendingHide=!1,this.$_scheduleHide(e,t),this.$emit("hide"),this.$emit("update:shown",!1)}},init(){var e;this.isDisposed&&(this.isDisposed=!1,this.isMounted=!1,this.$_events=[],this.$_preventShow=!1,this.$_referenceNode=((e=this.referenceNode)==null?void 0:e.call(this))??this.$el,this.$_targetNodes=this.targetNodes().filter(t=>t.nodeType===t.ELEMENT_NODE),this.$_popperNode=this.popperNode(),this.$_innerNode=this.$_popperNode.querySelector(".v-popper__inner"),this.$_arrowNode=this.$_popperNode.querySelector(".v-popper__arrow-container"),this.$_swapTargetAttrs("title","data-original-title"),this.$_detachPopperNode(),this.triggers.length&&this.$_addEventListeners(),this.shown&&this.show())},dispose(){this.isDisposed||(this.isDisposed=!0,this.$_removeEventListeners(),this.hide({skipDelay:!0}),this.$_detachPopperNode(),this.isMounted=!1,this.isShown=!1,this.$_updateParentShownChildren(!1),this.$_swapTargetAttrs("data-original-title","title"))},async onResize(){this.isShown&&(await this.$_computePosition(),this.$emit("resize"))},async $_computePosition(){if(this.isDisposed||this.positioningDisabled)return;const e={strategy:this.strategy,middleware:[]};(this.distance||this.skidding)&&e.middleware.push(Zm({mainAxis:this.distance,crossAxis:this.skidding}));const t=this.placement.startsWith("auto");if(t?e.middleware.push(qm({alignment:this.placement.split("-")[1]??""})):e.placement=this.placement,this.preventOverflow&&(this.shift&&e.middleware.push(Xm({padding:this.overflowPadding,boundary:this.boundary,crossAxis:this.shiftCrossAxis})),!t&&this.flip&&e.middleware.push(Ym({padding:this.overflowPadding,boundary:this.boundary}))),e.middleware.push(ok({element:this.$_arrowNode,padding:this.arrowPadding})),this.arrowOverflow&&e.middleware.push({name:"arrowOverflow",fn:({placement:o,rects:a,middlewareData:l})=>{let i;const{centerOffset:c}=l.arrow;return o.startsWith("top")||o.startsWith("bottom")?i=Math.abs(c)>a.reference.width/2:i=Math.abs(c)>a.reference.height/2,{data:{overflow:i}}}}),this.autoMinSize||this.autoSize){const o=this.autoSize?this.autoSize:this.autoMinSize?"min":null;e.middleware.push({name:"autoSize",fn:({rects:a,placement:l,middlewareData:i})=>{var c;if((c=i.autoSize)!=null&&c.skip)return{};let s,u;return l.startsWith("top")||l.startsWith("bottom")?s=a.reference.width:u=a.reference.height,this.$_innerNode.style[o==="min"?"minWidth":o==="max"?"maxWidth":"width"]=s!=null?`${s}px`:null,this.$_innerNode.style[o==="min"?"minHeight":o==="max"?"maxHeight":"height"]=u!=null?`${u}px`:null,{data:{skip:!0},reset:{rects:!0}}}})}(this.autoMaxSize||this.autoBoundaryMaxSize)&&(this.$_innerNode.style.maxWidth=null,this.$_innerNode.style.maxHeight=null,e.middleware.push(sk({boundary:this.boundary,padding:this.overflowPadding,apply:({availableWidth:o,availableHeight:a})=>{this.$_innerNode.style.maxWidth=o!=null?`${o}px`:null,this.$_innerNode.style.maxHeight=a!=null?`${a}px`:null}})));const r=await $U(this.$_referenceNode,this.$_popperNode,e);Object.assign(this.result,{x:r.x,y:r.y,placement:r.placement,strategy:r.strategy,arrow:{...r.middlewareData.arrow,...r.middlewareData.arrowOverflow}})},$_scheduleShow(e,t=!1){if(this.$_updateParentShownChildren(!0),this.$_hideInProgress=!1,clearTimeout(this.$_scheduleTimer),Ar&&this.instantMove&&Ar.instantMove&&Ar!==this.parentPopper){Ar.$_applyHide(!0),this.$_applyShow(!0);return}t?this.$_applyShow():this.$_scheduleTimer=setTimeout(this.$_applyShow.bind(this),this.$_computeDelay("show"))},$_scheduleHide(e,t=!1){if(this.shownChildren.size>0){this.pendingHide=!0;return}this.$_updateParentShownChildren(!1),this.$_hideInProgress=!0,clearTimeout(this.$_scheduleTimer),this.isShown&&(Ar=this),t?this.$_applyHide():this.$_scheduleTimer=setTimeout(this.$_applyHide.bind(this),this.$_computeDelay("hide"))},$_computeDelay(e){const t=this.delay;return parseInt(t&&t[e]||t||0)},async $_applyShow(e=!1){clearTimeout(this.$_disposeTimer),clearTimeout(this.$_scheduleTimer),this.skipTransition=e,!this.isShown&&(this.$_ensureTeleport(),await ic(),await this.$_computePosition(),await this.$_applyShowEffect(),this.positioningDisabled||this.$_registerEventListeners([...xi(this.$_referenceNode),...xi(this.$_popperNode)],"scroll",()=>{this.$_computePosition()}))},async $_applyShowEffect(){if(this.$_hideInProgress)return;if(this.computeTransformOrigin){const t=this.$_referenceNode.getBoundingClientRect(),r=this.$_popperNode.querySelector(".v-popper__wrapper"),o=r.parentNode.getBoundingClientRect(),a=t.x+t.width/2-(o.left+r.offsetLeft),l=t.y+t.height/2-(o.top+r.offsetTop);this.result.transformOrigin=`${a}px ${l}px`}this.isShown=!0,this.$_applyAttrsToTarget({"aria-describedby":this.popperId,"data-popper-shown":""});const e=this.showGroup;if(e){let t;for(let r=0;r<Ln.length;r++)t=Ln[r],t.showGroup!==e&&(t.hide(),t.$emit("close-group"))}Ln.push(this),document.body.classList.add("v-popper--some-open");for(const t of i2(this.theme))f2(t).push(this),document.body.classList.add(`v-popper--some-open--${t}`);this.$emit("apply-show"),this.classes.showFrom=!0,this.classes.showTo=!1,this.classes.hideFrom=!1,this.classes.hideTo=!1,await ic(),this.classes.showFrom=!1,this.classes.showTo=!0,this.noAutoFocus||this.$_popperNode.focus()},async $_applyHide(e=!1){if(this.shownChildren.size>0){this.pendingHide=!0,this.$_hideInProgress=!1;return}if(clearTimeout(this.$_scheduleTimer),!this.isShown)return;this.skipTransition=e,u2(Ln,this),Ln.length===0&&document.body.classList.remove("v-popper--some-open");for(const r of i2(this.theme)){const o=f2(r);u2(o,this),o.length===0&&document.body.classList.remove(`v-popper--some-open--${r}`)}Ar===this&&(Ar=null),this.isShown=!1,this.$_applyAttrsToTarget({"aria-describedby":void 0,"data-popper-shown":void 0}),clearTimeout(this.$_disposeTimer);const t=this.disposeTimeout;t!==null&&(this.$_disposeTimer=setTimeout(()=>{this.$_popperNode&&(this.$_detachPopperNode(),this.isMounted=!1)},t)),this.$_removeEventListeners("scroll"),this.$emit("apply-hide"),this.classes.showFrom=!1,this.classes.showTo=!1,this.classes.hideFrom=!0,this.classes.hideTo=!1,await ic(),this.classes.hideFrom=!1,this.classes.hideTo=!0},$_autoShowHide(){this.shown?this.show():this.hide()},$_ensureTeleport(){if(this.isDisposed)return;let e=this.container;if(typeof e=="string"?e=window.document.querySelector(e):e===!1&&(e=this.$_targetNodes[0].parentNode),!e)throw new Error("No container for popover: "+this.container);e.appendChild(this.$_popperNode),this.isMounted=!0},$_addEventListeners(){const e=r=>{this.isShown&&!this.$_hideInProgress||(r.usedByTooltip=!0,!this.$_preventShow&&this.show({event:r}))};this.$_registerTriggerListeners(this.$_targetNodes,s2,this.triggers,this.showTriggers,e),this.$_registerTriggerListeners([this.$_popperNode],s2,this.popperTriggers,this.popperShowTriggers,e);const t=r=>{r.usedByTooltip||this.hide({event:r})};this.$_registerTriggerListeners(this.$_targetNodes,c2,this.triggers,this.hideTriggers,t),this.$_registerTriggerListeners([this.$_popperNode],c2,this.popperTriggers,this.popperHideTriggers,t)},$_registerEventListeners(e,t,r){this.$_events.push({targetNodes:e,eventType:t,handler:r}),e.forEach(o=>o.addEventListener(t,r,Ro?{passive:!0}:void 0))},$_registerTriggerListeners(e,t,r,o,a){let l=r;o!=null&&(l=typeof o=="function"?o(l):o),l.forEach(i=>{const c=t[i];c&&this.$_registerEventListeners(e,c,a)})},$_removeEventListeners(e){const t=[];this.$_events.forEach(r=>{const{targetNodes:o,eventType:a,handler:l}=r;!e||e===a?o.forEach(i=>i.removeEventListener(a,l)):t.push(r)}),this.$_events=t},$_refreshListeners(){this.isDisposed||(this.$_removeEventListeners(),this.$_addEventListeners())},$_handleGlobalClose(e,t=!1){this.$_showFrameLocked||(this.hide({event:e}),e.closePopover?this.$emit("close-directive"):this.$emit("auto-hide"),t&&(this.$_preventShow=!0,setTimeout(()=>{this.$_preventShow=!1},300)))},$_detachPopperNode(){this.$_popperNode.parentNode&&this.$_popperNode.parentNode.removeChild(this.$_popperNode)},$_swapTargetAttrs(e,t){for(const r of this.$_targetNodes){const o=r.getAttribute(e);o&&(r.removeAttribute(e),r.setAttribute(t,o))}},$_applyAttrsToTarget(e){for(const t of this.$_targetNodes)for(const r in e){const o=e[r];o==null?t.removeAttribute(r):t.setAttribute(r,o)}},$_updateParentShownChildren(e){let t=this.parentPopper;for(;t;)e?t.shownChildren.add(this.randomId):(t.shownChildren.delete(this.randomId),t.pendingHide&&t.hide()),t=t.parentPopper},$_isAimingPopper(){const e=this.$_referenceNode.getBoundingClientRect();if(Ea>=e.left&&Ea<=e.right&&Sa>=e.top&&Sa<=e.bottom){const t=this.$_popperNode.getBoundingClientRect(),r=Ea-mr,o=Sa-pr,a=t.left+t.width/2-mr+(t.top+t.height/2)-pr+t.width+t.height,l=mr+r*a,i=pr+o*a;return Nl(mr,pr,l,i,t.left,t.top,t.left,t.bottom)||Nl(mr,pr,l,i,t.left,t.top,t.right,t.top)||Nl(mr,pr,l,i,t.right,t.top,t.right,t.bottom)||Nl(mr,pr,l,i,t.left,t.bottom,t.right,t.bottom)}return!1}},render(){return this.$slots.default(this.slotData)}});if(typeof document<"u"&&typeof window<"u"){if(H5){const e=Ro?{passive:!0,capture:!0}:!0;document.addEventListener("touchstart",t=>m2(t,!0),e),document.addEventListener("touchend",t=>p2(t,!0),e)}else window.addEventListener("mousedown",e=>m2(e,!1),!0),window.addEventListener("click",e=>p2(e,!1),!0);window.addEventListener("resize",CU)}function m2(e,t){if(_n.autoHideOnMousedown)G5(e,t);else for(let r=0;r<Ln.length;r++){const o=Ln[r];try{o.mouseDownContains=o.popperNode().contains(e.target)}catch{}}}function p2(e,t){_n.autoHideOnMousedown||G5(e,t)}function G5(e,t){const r={};for(let o=Ln.length-1;o>=0;o--){const a=Ln[o];try{const l=a.containsGlobalTarget=a.mouseDownContains||a.popperNode().contains(e.target);a.pendingHide=!1,requestAnimationFrame(()=>{if(a.pendingHide=!1,!r[a.randomId]&&h2(a,l,e)){if(a.$_handleGlobalClose(e,t),!e.closeAllPopover&&e.closePopover&&l){let c=a.parentPopper;for(;c;)r[c.randomId]=!0,c=c.parentPopper;return}let i=a.parentPopper;for(;i&&h2(i,i.containsGlobalTarget,e);)i.$_handleGlobalClose(e,t),i=i.parentPopper}})}catch{}}}function h2(e,t,r){return r.closeAllPopover||r.closePopover&&t||SU(e,r)&&!t}function SU(e,t){if(typeof e.autoHide=="function"){const r=e.autoHide(t);return e.lastAutoHide=r,r}return e.autoHide}function CU(){for(let e=0;e<Ln.length;e++)Ln[e].$_computePosition()}var mr=0,pr=0,Ea=0,Sa=0;typeof window<"u"&&window.addEventListener("mousemove",e=>{mr=Ea,pr=Sa,Ea=e.clientX,Sa=e.clientY},Ro?{passive:!0}:void 0);function Nl(e,t,r,o,a,l,i,c){const s=((i-a)*(t-l)-(c-l)*(e-a))/((c-l)*(r-e)-(i-a)*(o-t)),u=((r-e)*(t-l)-(o-t)*(e-a))/((c-l)*(r-e)-(i-a)*(o-t));return s>=0&&s<=1&&u>=0&&u<=1}var xU={extends:j5()},ds=(e,t)=>{const r=e.__vccOpts||e;for(const[o,a]of t)r[o]=a;return r};function TU(e,t,r,o,a,l){return(0,n.openBlock)(),(0,n.createElementBlock)("div",{ref:"reference",class:(0,n.normalizeClass)(["v-popper",{"v-popper--shown":e.slotData.isShown}])},[(0,n.renderSlot)(e.$slots,"default",(0,n.normalizeProps)((0,n.guardReactiveProps)(e.slotData)))],2)}var NU=ds(xU,[["render",TU]]);function BU(){var e=window.navigator.userAgent,t=e.indexOf("MSIE ");if(t>0)return parseInt(e.substring(t+5,e.indexOf(".",t)),10);if(e.indexOf("Trident/")>0){var r=e.indexOf("rv:");return parseInt(e.substring(r+3,e.indexOf(".",r)),10)}var o=e.indexOf("Edge/");return o>0?parseInt(e.substring(o+5,e.indexOf(".",o)),10):-1}var Zl;function Eu(){Eu.init||(Eu.init=!0,Zl=BU()!==-1)}var fs={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){Eu(),(0,n.nextTick)(()=>{this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitOnMount&&this.emitSize()});const e=document.createElement("object");this._resizeObject=e,e.setAttribute("aria-hidden","true"),e.setAttribute("tabindex",-1),e.onload=this.addResizeHandlers,e.type="text/html",Zl&&this.$el.appendChild(e),e.data="about:blank",Zl||this.$el.appendChild(e)},beforeUnmount(){this.removeResizeHandlers()},methods:{compareAndNotify(){(!this.ignoreWidth&&this._w!==this.$el.offsetWidth||!this.ignoreHeight&&this._h!==this.$el.offsetHeight)&&(this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitSize())},emitSize(){this.$emit("notify",{width:this._w,height:this._h})},addResizeHandlers(){this._resizeObject.contentDocument.defaultView.addEventListener("resize",this.compareAndNotify),this.compareAndNotify()},removeResizeHandlers(){this._resizeObject&&this._resizeObject.onload&&(!Zl&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}},MU=(0,n.withScopeId)("data-v-b329ee4c");(0,n.pushScopeId)("data-v-b329ee4c");var DU={class:"resize-observer",tabindex:"-1"};(0,n.popScopeId)();fs.render=MU((e,t,r,o,a,l)=>((0,n.openBlock)(),(0,n.createBlock)("div",DU)));fs.__scopeId="data-v-b329ee4c";fs.__file="src/components/ResizeObserver.vue";var q5=(e="theme")=>({computed:{themeClass(){return EU(this[e])}}}),AU=(0,n.defineComponent)({name:"VPopperContent",components:{ResizeObserver:fs},mixins:[q5()],props:{popperId:String,theme:String,shown:Boolean,mounted:Boolean,skipTransition:Boolean,autoHide:Boolean,handleResize:Boolean,classes:Object,result:Object},emits:["hide","resize"],methods:{toPx(e){return e!=null&&!isNaN(e)?`${e}px`:null}}}),PU=["id","aria-hidden","tabindex","data-popper-placement"],IU={ref:"inner",class:"v-popper__inner"},VU=[(0,n.createElementVNode)("div",{class:"v-popper__arrow-outer"},null,-1),(0,n.createElementVNode)("div",{class:"v-popper__arrow-inner"},null,-1)];function OU(e,t,r,o,a,l){const i=(0,n.resolveComponent)("ResizeObserver");return(0,n.openBlock)(),(0,n.createElementBlock)("div",{id:e.popperId,ref:"popover",class:(0,n.normalizeClass)(["v-popper__popper",[e.themeClass,e.classes.popperClass,{"v-popper__popper--shown":e.shown,"v-popper__popper--hidden":!e.shown,"v-popper__popper--show-from":e.classes.showFrom,"v-popper__popper--show-to":e.classes.showTo,"v-popper__popper--hide-from":e.classes.hideFrom,"v-popper__popper--hide-to":e.classes.hideTo,"v-popper__popper--skip-transition":e.skipTransition,"v-popper__popper--arrow-overflow":e.result&&e.result.arrow.overflow,"v-popper__popper--no-positioning":!e.result}]]),style:(0,n.normalizeStyle)(e.result?{position:e.result.strategy,transform:`translate3d(${Math.round(e.result.x)}px,${Math.round(e.result.y)}px,0)`}:void 0),"aria-hidden":e.shown?"false":"true",tabindex:e.autoHide?0:void 0,"data-popper-placement":e.result?e.result.placement:void 0,onKeyup:t[2]||(t[2]=(0,n.withKeys)(c=>e.autoHide&&e.$emit("hide"),["esc"]))},[(0,n.createElementVNode)("div",{class:"v-popper__backdrop",onClick:t[0]||(t[0]=c=>e.autoHide&&e.$emit("hide"))}),(0,n.createElementVNode)("div",{class:"v-popper__wrapper",style:(0,n.normalizeStyle)(e.result?{transformOrigin:e.result.transformOrigin}:void 0)},[(0,n.createElementVNode)("div",IU,[e.mounted?((0,n.openBlock)(),(0,n.createElementBlock)(n.Fragment,{key:0},[(0,n.createElementVNode)("div",null,[(0,n.renderSlot)(e.$slots,"default")]),e.handleResize?((0,n.openBlock)(),(0,n.createBlock)(i,{key:0,onNotify:t[1]||(t[1]=c=>e.$emit("resize",c))})):(0,n.createCommentVNode)("",!0)],64)):(0,n.createCommentVNode)("",!0)],512),(0,n.createElementVNode)("div",{ref:"arrow",class:"v-popper__arrow-container",style:(0,n.normalizeStyle)(e.result?{left:e.toPx(e.result.arrow.x),top:e.toPx(e.result.arrow.y)}:void 0)},VU,4)],4)],46,PU)}var Y5=ds(AU,[["render",OU]]),Z5={methods:{show(...e){return this.$refs.popper.show(...e)},hide(...e){return this.$refs.popper.hide(...e)},dispose(...e){return this.$refs.popper.dispose(...e)},onResize(...e){return this.$refs.popper.onResize(...e)}}},Su=function(){};typeof window<"u"&&(Su=window.Element);var RU=(0,n.defineComponent)({name:"VPopperWrapper",components:{Popper:NU,PopperContent:Y5},mixins:[Z5,q5("finalTheme")],props:{theme:{type:String,default:null},referenceNode:{type:Function,default:null},shown:{type:Boolean,default:!1},showGroup:{type:String,default:null},ariaId:{default:null},disabled:{type:Boolean,default:void 0},positioningDisabled:{type:Boolean,default:void 0},placement:{type:String,default:void 0},delay:{type:[String,Number,Object],default:void 0},distance:{type:[Number,String],default:void 0},skidding:{type:[Number,String],default:void 0},triggers:{type:Array,default:void 0},showTriggers:{type:[Array,Function],default:void 0},hideTriggers:{type:[Array,Function],default:void 0},popperTriggers:{type:Array,default:void 0},popperShowTriggers:{type:[Array,Function],default:void 0},popperHideTriggers:{type:[Array,Function],default:void 0},container:{type:[String,Object,Su,Boolean],default:void 0},boundary:{type:[String,Su],default:void 0},strategy:{type:String,default:void 0},autoHide:{type:[Boolean,Function],default:void 0},handleResize:{type:Boolean,default:void 0},instantMove:{type:Boolean,default:void 0},eagerMount:{type:Boolean,default:void 0},popperClass:{type:[String,Array,Object],default:void 0},computeTransformOrigin:{type:Boolean,default:void 0},autoMinSize:{type:Boolean,default:void 0},autoSize:{type:[Boolean,String],default:void 0},autoMaxSize:{type:Boolean,default:void 0},autoBoundaryMaxSize:{type:Boolean,default:void 0},preventOverflow:{type:Boolean,default:void 0},overflowPadding:{type:[Number,String],default:void 0},arrowPadding:{type:[Number,String],default:void 0},arrowOverflow:{type:Boolean,default:void 0},flip:{type:Boolean,default:void 0},shift:{type:Boolean,default:void 0},shiftCrossAxis:{type:Boolean,default:void 0},noAutoFocus:{type:Boolean,default:void 0},disposeTimeout:{type:Number,default:void 0}},emits:{show:()=>!0,hide:()=>!0,"update:shown":e=>!0,"apply-show":()=>!0,"apply-hide":()=>!0,"close-group":()=>!0,"close-directive":()=>!0,"auto-hide":()=>!0,resize:()=>!0},computed:{finalTheme(){return this.theme??this.$options.vPopperTheme}},methods:{getTargetNodes(){return Array.from(this.$el.children).filter(e=>e!==this.$refs.popperContent.$el)}}});function FU(e,t,r,o,a,l){const i=(0,n.resolveComponent)("PopperContent"),c=(0,n.resolveComponent)("Popper");return(0,n.openBlock)(),(0,n.createBlock)(c,(0,n.mergeProps)({ref:"popper"},e.$props,{theme:e.finalTheme,"target-nodes":e.getTargetNodes,"popper-node":()=>e.$refs.popperContent.$el,class:[e.themeClass],onShow:t[0]||(t[0]=()=>e.$emit("show")),onHide:t[1]||(t[1]=()=>e.$emit("hide")),"onUpdate:shown":t[2]||(t[2]=s=>e.$emit("update:shown",s)),onApplyShow:t[3]||(t[3]=()=>e.$emit("apply-show")),onApplyHide:t[4]||(t[4]=()=>e.$emit("apply-hide")),onCloseGroup:t[5]||(t[5]=()=>e.$emit("close-group")),onCloseDirective:t[6]||(t[6]=()=>e.$emit("close-directive")),onAutoHide:t[7]||(t[7]=()=>e.$emit("auto-hide")),onResize:t[8]||(t[8]=()=>e.$emit("resize"))}),{default:(0,n.withCtx)(({popperId:s,isShown:u,shouldMountContent:d,skipTransition:f,autoHide:m,show:p,hide:h,handleResize:v,onResize:y,classes:g,result:L})=>[(0,n.renderSlot)(e.$slots,"default",{shown:u,show:p,hide:h}),(0,n.createVNode)(i,{ref:"popperContent","popper-id":s,theme:e.finalTheme,shown:u,mounted:d,"skip-transition":f,"auto-hide":m,"handle-resize":v,classes:g,result:L,onHide:h,onResize:y},{default:(0,n.withCtx)(()=>[(0,n.renderSlot)(e.$slots,"popper",{shown:u,hide:h})]),_:2},1032,["popper-id","theme","shown","mounted","skip-transition","auto-hide","handle-resize","classes","result","onHide","onResize"])]),_:3},16,["theme","target-nodes","popper-node","class"])}var Gd=ds(RU,[["render",FU]]),zU={...Gd,name:"VDropdown",vPopperTheme:"dropdown"},UU={...Gd,name:"VMenu",vPopperTheme:"menu"},HU={...Gd,name:"VTooltip",vPopperTheme:"tooltip"},WU=(0,n.defineComponent)({name:"VTooltipDirective",components:{Popper:j5(),PopperContent:Y5},mixins:[Z5],inheritAttrs:!1,props:{theme:{type:String,default:"tooltip"},html:{type:Boolean,default:e=>Wa(e.theme,"html")},content:{type:[String,Number,Function],default:null},loadingContent:{type:String,default:e=>Wa(e.theme,"loadingContent")},targetNodes:{type:Function,required:!0}},data(){return{asyncContent:null}},computed:{isContentAsync(){return typeof this.content=="function"},loading(){return this.isContentAsync&&this.asyncContent==null},finalContent(){return this.isContentAsync?this.loading?this.loadingContent:this.asyncContent:this.content}},watch:{content:{handler(){this.fetchContent(!0)},immediate:!0},async finalContent(){await this.$nextTick(),this.$refs.popper.onResize()}},created(){this.$_fetchId=0},methods:{fetchContent(e){if(typeof this.content=="function"&&this.$_isShown&&(e||!this.$_loading&&this.asyncContent==null)){this.asyncContent=null,this.$_loading=!0;const t=++this.$_fetchId,r=this.content(this);r.then?r.then(o=>this.onResult(t,o)):this.onResult(t,r)}},onResult(e,t){e===this.$_fetchId&&(this.$_loading=!1,this.asyncContent=t)},onShow(){this.$_isShown=!0,this.fetchContent()},onHide(){this.$_isShown=!1}}}),jU=["innerHTML"],GU=["textContent"];function qU(e,t,r,o,a,l){const i=(0,n.resolveComponent)("PopperContent"),c=(0,n.resolveComponent)("Popper");return(0,n.openBlock)(),(0,n.createBlock)(c,(0,n.mergeProps)({ref:"popper"},e.$attrs,{theme:e.theme,"target-nodes":e.targetNodes,"popper-node":()=>e.$refs.popperContent.$el,onApplyShow:e.onShow,onApplyHide:e.onHide}),{default:(0,n.withCtx)(({popperId:s,isShown:u,shouldMountContent:d,skipTransition:f,autoHide:m,hide:p,handleResize:h,onResize:v,classes:y,result:g})=>[(0,n.createVNode)(i,{ref:"popperContent",class:(0,n.normalizeClass)({"v-popper--tooltip-loading":e.loading}),"popper-id":s,theme:e.theme,shown:u,mounted:d,"skip-transition":f,"auto-hide":m,"handle-resize":h,classes:y,result:g,onHide:p,onResize:v},{default:(0,n.withCtx)(()=>[e.html?((0,n.openBlock)(),(0,n.createElementBlock)("div",{key:0,innerHTML:e.finalContent},null,8,jU)):((0,n.openBlock)(),(0,n.createElementBlock)("div",{key:1,textContent:(0,n.toDisplayString)(e.finalContent)},null,8,GU))]),_:2},1032,["class","popper-id","theme","shown","mounted","skip-transition","auto-hide","handle-resize","classes","result","onHide","onResize"])]),_:1},16,["theme","target-nodes","popper-node","onApplyShow","onApplyHide"])}var YU=ds(WU,[["render",qU]]),X5="v-popper--has-tooltip";function ZU(e,t){let r=e.placement;if(!r&&t)for(const o of W5)t[o]&&(r=o);return r||(r=Wa(e.theme||"tooltip","placement")),r}function K5(e,t,r){let o;const a=typeof t;return a==="string"?o={content:t}:t&&a==="object"?o=t:o={content:!1},o.placement=ZU(o,r),o.targetNodes=()=>[e],o.referenceNode=()=>e,o}var cc,ja,XU=0;function KU(){if(cc)return;ja=(0,n.ref)([]),cc=(0,n.createApp)({name:"VTooltipDirectiveApp",setup(){return{directives:ja}},render(){return this.directives.map(t=>(0,n.h)(YU,{...t.options,shown:t.shown||t.options.shown,key:t.id}))},devtools:{hide:!0}});const e=document.createElement("div");document.body.appendChild(e),cc.mount(e)}function JU(e,t,r){KU();const o=(0,n.ref)(K5(e,t,r)),a=(0,n.ref)(!1),l={id:XU++,options:o,shown:a};return ja.value.push(l),e.classList&&e.classList.add(X5),e.$_popper={options:o,item:l,show(){a.value=!0},hide(){a.value=!1}}}function J5(e){if(e.$_popper){const t=ja.value.indexOf(e.$_popper.item);t!==-1&&ja.value.splice(t,1),delete e.$_popper,delete e.$_popperOldShown,delete e.$_popperMountTarget}e.classList&&e.classList.remove(X5)}function g2(e,{value:t,modifiers:r}){const o=K5(e,t,r);if(!o.content||Wa(o.theme||"tooltip","disabled"))J5(e);else{let a;e.$_popper?(a=e.$_popper,a.options.value=o):a=JU(e,t,r),typeof t.shown<"u"&&t.shown!==e.$_popperOldShown&&(e.$_popperOldShown=t.shown,t.shown?a.show():a.hide())}}var QU={beforeMount:g2,updated:g2,beforeUnmount(e){J5(e)}};function v2(e){e.addEventListener("mousedown",Ti),e.addEventListener("click",Ti),e.addEventListener("touchstart",Q5,Ro?{passive:!0}:!1)}function L2(e){e.removeEventListener("mousedown",Ti),e.removeEventListener("click",Ti),e.removeEventListener("touchstart",Q5),e.removeEventListener("touchend",eh),e.removeEventListener("touchcancel",th)}function Ti(e){const t=e.currentTarget;e.closePopover=!t.$_vclosepopover_touch,e.closeAllPopover=t.$_closePopoverModifiers&&!!t.$_closePopoverModifiers.all}function Q5(e){if(e.changedTouches.length===1){const t=e.currentTarget;t.$_vclosepopover_touch=!0,t.$_vclosepopover_touchPoint=e.changedTouches[0],t.addEventListener("touchend",eh),t.addEventListener("touchcancel",th)}}function eh(e){const t=e.currentTarget;if(t.$_vclosepopover_touch=!1,e.changedTouches.length===1){const r=e.changedTouches[0],o=t.$_vclosepopover_touchPoint;e.closePopover=Math.abs(r.screenY-o.screenY)<20&&Math.abs(r.screenX-o.screenX)<20,e.closeAllPopover=t.$_closePopoverModifiers&&!!t.$_closePopoverModifiers.all}}function th(e){const t=e.currentTarget;t.$_vclosepopover_touch=!1}var eH={beforeMount(e,{value:t,modifiers:r}){e.$_closePopoverModifiers=r,(typeof t>"u"||t)&&v2(e)},updated(e,{value:t,oldValue:r,modifiers:o}){e.$_closePopoverModifiers=o,t!==r&&(typeof t>"u"||t?v2(e):L2(e))},beforeUnmount(e){L2(e)}};function tH(e,t={}){e.$_vTooltipInstalled||(e.$_vTooltipInstalled=!0,U5(_n,t),e.directive("tooltip",QU),e.directive("close-popper",eH),e.component("VTooltip",HU),e.component("VDropdown",zU),e.component("VMenu",UU))}var nH={version:"5.2.2",install:tH,options:_n},rH=["src"],oH=(0,n.defineComponent)({__name:"LightboxImage",props:{src:{}},setup(e){const t=e,{imageSrc:r}=Dd(()=>t.src);return(o,a)=>((0,n.openBlock)(),(0,n.createElementBlock)("img",{draggable:!1,src:(0,n.unref)(r),alt:"Preview",class:"lightbox-image"},null,8,rH))}}),aH=oH,lH={key:0,class:"center"},iH={key:3},sH={class:"bgl-lightbox-item"},cH={key:2,class:"lightbox-pdf"},uH=["src","title"],dH={key:3,class:"lightbox-file"},fH={class:"file-info txt-white flex m_block align-items-start gap-025"},mH={class:"txt-start"},pH={class:"mx-0 light"},hH={class:"semi word-break-all"},gH={class:"mx-0"},vH={class:"semi"},LH=(0,n.defineComponent)({__name:"Lightbox",setup(e,{expose:t}){const r=(0,n.ref)(!1),o=(0,n.ref)(null),a=(0,n.ref)([]),l=(0,n.ref)(0),i=(0,n.computed)(()=>a.value[l.value]),c=(0,n.ref)(1),s=(0,n.computed)(()=>c.value===1),u=(0,n.computed)(()=>({allowTouchMove:c.value===1,touchRatio:c.value===1?1:0,simulateTouch:c.value===1}));function d(p,h){r.value=!0,a.value=h||[p],l.value=a.value.findIndex(v=>{const y=p.src!==void 0&&p.src!==null&&p.src!==""&&v.src===p.src,g=p.pathKey!==void 0&&p.pathKey!==null&&p.pathKey!==""&&v.pathKey===p.pathKey;return y||g}),l.value===-1&&(l.value=0),c.value=1}function f(){r.value=!1}os(f,r);function m(p){l.value=p,c.value=1}return(0,n.watch)(()=>r.value,async p=>{p?(document.body.style.overflow="hidden",await(0,n.nextTick)(),o.value?.open||o.value?.showModal()):(document.body.style.overflow="",o.value?.open&&o.value.close())}),(0,n.watch)(()=>l.value,()=>{c.value=1}),t({open:d,close:f}),(p,h)=>((0,n.openBlock)(),(0,n.createBlock)(n.Transition,{name:"fade"},{default:(0,n.withCtx)(()=>[r.value?((0,n.openBlock)(),(0,n.createElementBlock)("dialog",{key:0,ref_key:"dialogRef",ref:o,class:"bgl-lightbox-overlay",onCancel:(0,n.withModifiers)(f,["prevent"])},[(0,n.createElementVNode)("div",{class:"flex start w-100 space-between p-025 z-9",onClick:f},[(0,n.createVNode)((0,n.unref)(se),{flat:"",class:"color-white",icon:"close",onClick:f}),i.value?.enableZoom&&i.value?.type==="image"?((0,n.openBlock)(),(0,n.createElementBlock)("div",lH,[(0,n.createVNode)((0,n.unref)(se),{flat:"",class:"color-white",icon:"remove",disabled:c.value===1,onClick:h[0]||(h[0]=v=>c.value--)},null,8,["disabled"]),(0,n.createVNode)((0,n.unref)(se),{flat:"",class:"color-white",icon:"zoom_in",disabled:c.value===1,onClick:h[1]||(h[1]=v=>c.value=1)},null,8,["disabled"]),(0,n.createVNode)((0,n.unref)(se),{flat:"",class:"color-white",icon:"add",disabled:c.value===3,onClick:h[2]||(h[2]=v=>c.value++)},null,8,["disabled"])])):(0,n.createCommentVNode)("",!0),i.value?.openFile&&i.value?.src?((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(se),{key:1,class:"color-white",round:"",thin:"",flat:"",iconEnd:"arrow_outward",value:"$t:lightbox.openFile",href:i.value?.src,target:"_blank"},null,8,["href"])):(0,n.createCommentVNode)("",!0),i.value?.download&&i.value?.src?((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(se),{key:2,class:"color-white",round:"",thin:"",flat:"",icon:"download",value:"Download File",onClick:h[3]||(h[3]=v=>(0,n.unref)(Md)(i.value?.src))})):(0,n.createCommentVNode)("",!0),!i.value?.openFile&&!i.value?.download?((0,n.openBlock)(),(0,n.createElementBlock)("div",iH)):(0,n.createCommentVNode)("",!0)]),a.value&&a.value.length>0?((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(H3),{key:0,index:l.value,"onUpdate:index":h[6]||(h[6]=v=>l.value=v),items:a.value,"initial-slide":l.value,class:(0,n.normalizeClass)(["bgl-lightbox-swiper",{zoomed:c.value>1}]),navigation:a.value.length>1,"grab-cursor":s.value,keyboard:!0,loop:!1,speed:400,"slides-per-view":1,"space-between":0,effect:"slide","advanced-options":u.value,onClick:h[7]||(h[7]=(0,n.withModifiers)(()=>{},["stop"]))},{default:(0,n.withCtx)(({item:v})=>[(0,n.createElementVNode)("div",sH,[v.type==="image"?((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(W3),{key:0,zoom:c.value,"onUpdate:zoom":h[4]||(h[4]=y=>c.value=y),disabled:!v?.enableZoom,"mouse-wheel-to-zoom":!1,"double-click-to-zoom":!0,"max-scale":5,"min-scale":1,"aspect-ratio":0,"limit-translation":!0,onClick:h[5]||(h[5]=(0,n.withModifiers)(()=>{},["stop"]))},{default:(0,n.withCtx)(()=>[(0,n.createVNode)(aH,{src:v?.src},null,8,["src"])]),_:2},1032,["zoom","disabled"])):v?.type==="video"&&v?.src?((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(Xu),{key:1,src:v?.src,autoplay:"",controls:"",class:"lightbox-video"},null,8,["src"])):v?.type==="pdf"&&v?.src?((0,n.openBlock)(),(0,n.createElementBlock)("div",cH,[(0,n.createElementVNode)("embed",{src:(0,n.unref)(Bd)(v?.src),type:"application/pdf",title:v?.name},null,8,uH)])):((0,n.openBlock)(),(0,n.createElementBlock)("div",dH,[(0,n.createElementVNode)("div",fH,[(0,n.createVNode)((0,n.unref)(_e),{class:"m-0 m_none",icon:"draft",size:10,weight:"12"}),(0,n.createVNode)((0,n.unref)(_e),{class:"m-0 none m_block m_-mb-1",icon:"draft",size:4,weight:"2"}),(0,n.createElementVNode)("div",mH,[(0,n.createElementVNode)("p",pH,[h[9]||(h[9]=(0,n.createTextVNode)(" File: ",-1)),(0,n.createElementVNode)("span",hH,(0,n.toDisplayString)(v?.name),1)]),(0,n.createElementVNode)("p",gH,[h[10]||(h[10]=(0,n.createTextVNode)(" Type: ",-1)),(0,n.createElementVNode)("span",vH,(0,n.toDisplayString)(v?.type),1)]),(0,n.createVNode)((0,n.unref)(se),{href:v?.src,target:"_blank",round:"",thin:"",class:"mt-1",value:"Open file"},null,8,["href"])])])]))])]),"prev-button":(0,n.withCtx)(({prev:v})=>[(0,n.createVNode)((0,n.unref)(se),{icon:"arrow_back",color:"black",onClick:v},null,8,["onClick"])]),"next-button":(0,n.withCtx)(({next:v})=>[(0,n.createVNode)((0,n.unref)(se),{icon:"arrow_forward",color:"black",onClick:v},null,8,["onClick"])]),_:1},8,["index","items","initial-slide","class","navigation","grab-cursor","advanced-options"])):(0,n.createCommentVNode)("",!0),a.value&&a.value.length>1?((0,n.openBlock)(),(0,n.createElementBlock)("div",{key:1,class:"lightbox-thumbnails",onClick:h[8]||(h[8]=(0,n.withModifiers)(()=>{},["stop"]))},[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(a.value,(v,y)=>((0,n.openBlock)(),(0,n.createElementBlock)(n.Fragment,{key:y},[v.type==="image"?((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(Ma),{key:0,class:(0,n.normalizeClass)(["thumbnail",{active:l.value===y}]),src:v.src,alt:"",onClick:(0,n.withModifiers)(g=>m(y),["stop"])},null,8,["src","class","onClick"])):((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(_e),{key:1,class:(0,n.normalizeClass)(["thumbnail thumbnail-icon",{active:l.value===y}]),icon:"description",onClick:(0,n.withModifiers)(g=>m(y),["stop"])},null,8,["class","onClick"]))],64))),128))])):(0,n.createCommentVNode)("",!0)],544)):(0,n.createCommentVNode)("",!0)]),_:1}))}}),yH=LH,ma={},uo=e=>{},bH={mounted(e,t){y2(Cu(t,e)),uo=r=>{b2(r,e,t)},e.addEventListener("click",uo)},updated(e,t){y2(Cu(t,e)),e.removeEventListener("click",uo),uo=r=>{b2(r,e,t)},e.addEventListener("click",uo)},unmounted(e){e.removeEventListener("click",uo)},getSSRProps(){return{}}};function y2(e){e.group&&(ma[e.group]||(ma[e.group]=[]),ma[e.group].findIndex(t=>t.src===e.src)===-1&&ma[e.group].push(e))}function b2(e,t,r){e.stopPropagation();const o=Cu(r,t),a=EH();if(!a||!a.open)return;const l=a.open;l(o,o&&o.group?ma[o.group]:void 0)}function Cu(e,t){let{group:r,src:o,type:a,name:l,thumbnail:i,enableZoom:c,openFile:s,download:u,pathKey:d}=e.value||{};return o=an(o||d)||e.value||t.getAttribute("src")||"",a=a||$H(o),l=l||kH(o)||t.getAttribute("alt")||"",{src:o,type:a,name:l,thumbnail:i,group:r,enableZoom:c,openFile:s,download:u}}var _H=/youtube\.com|youtu\.be/,wH=/vimeo\.com/;function kH(e){return!e||typeof e!="string"?"":(e.split("/").pop()||"").replace(/\.[^/.]+$/,"")}function $H(e){if(typeof e!="string"||!e)return"unknown";if(e.startsWith("blob:")||/^data:image\//i.test(e))return"image";if(/^data:video\//i.test(e))return"video";const t=(e.split(".").pop()||"").toLowerCase(),r=e.split("?")[0].split(".").pop()?.toLowerCase()||"";return ii.test(t)||ii.test(r)?"image":fp.test(t)||_H.test(e)||wH.test(e)?"video":["pdf"].includes(t)?"pdf":t??"unknown"}var uc;function EH(){if(!(typeof document>"u")){if(!uc){const e=document.createElement("div");document.body.prepend(e),uc=(0,n.createApp)(yH).mount(e)}return uc}}var SH={install(e){e.directive("lightbox",bH)}},CH=SH,xH={beforeMount(e,t){e.clickOutsideEvent=r=>{e===r.target||e.contains(r.target)||t.value(r)},document.addEventListener("click",e.clickOutsideEvent)},unmounted(e){document.removeEventListener("click",e.clickOutsideEvent)}},nh=Bu({EventBus:()=>hs,POSITION:()=>qa,TYPE:()=>zt,createToastInterface:()=>Ya,default:()=>yh,globalEventBus:()=>qd,provideToast:()=>hW,toastInjectionKey:()=>gs,useToast:()=>Lh},1),TH=Object.defineProperty,_2=Object.getOwnPropertySymbols,NH=Object.prototype.hasOwnProperty,BH=Object.prototype.propertyIsEnumerable,w2=(e,t,r)=>t in e?TH(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,rh=(e,t)=>{for(var r in t||(t={}))NH.call(t,r)&&w2(e,r,t[r]);if(_2)for(var r of _2(t))BH.call(t,r)&&w2(e,r,t[r]);return e},ms=e=>typeof e=="function",ps=e=>typeof e=="string",oh=e=>ps(e)&&e.trim().length>0,MH=e=>typeof e=="number",zr=e=>typeof e>"u",Ga=e=>typeof e=="object"&&e!==null,DH=e=>Un(e,"tag")&&oh(e.tag),ah=e=>window.TouchEvent&&e instanceof TouchEvent,lh=e=>Un(e,"component")&&ih(e.component),AH=e=>ms(e)||Ga(e),ih=e=>!zr(e)&&(ps(e)||AH(e)||lh(e)),k2=e=>Ga(e)&&["height","width","right","left","top","bottom"].every(t=>MH(e[t])),Un=(e,t)=>(Ga(e)||ms(e))&&t in e,PH=(e=>()=>e++)(0);function dc(e){return ah(e)?e.targetTouches[0].clientX:e.clientX}function $2(e){return ah(e)?e.targetTouches[0].clientY:e.clientY}var IH=e=>{zr(e.remove)?e.parentNode&&e.parentNode.removeChild(e):e.remove()},ul=e=>lh(e)?ul(e.component):DH(e)?(0,n.defineComponent)({render(){return e}}):typeof e=="string"?e:(0,n.toRaw)((0,n.unref)(e)),VH=e=>{if(typeof e=="string")return e;const t=Un(e,"props")&&Ga(e.props)?e.props:{},r=Un(e,"listeners")&&Ga(e.listeners)?e.listeners:{};return{component:ul(e),props:t,listeners:r}},OH=()=>typeof window<"u",hs=class{constructor(){this.allHandlers={}}getHandlers(e){return this.allHandlers[e]||[]}on(e,t){const r=this.getHandlers(e);r.push(t),this.allHandlers[e]=r}off(e,t){const r=this.getHandlers(e);r.splice(r.indexOf(t)>>>0,1)}emit(e,t){this.getHandlers(e).forEach(r=>r(t))}},RH=e=>["on","off","emit"].every(t=>Un(e,t)&&ms(e[t])),zt;(function(e){e.SUCCESS="success",e.ERROR="error",e.WARNING="warning",e.INFO="info",e.DEFAULT="default"})(zt||(zt={}));var qa;(function(e){e.TOP_LEFT="top-left",e.TOP_CENTER="top-center",e.TOP_RIGHT="top-right",e.BOTTOM_LEFT="bottom-left",e.BOTTOM_CENTER="bottom-center",e.BOTTOM_RIGHT="bottom-right"})(qa||(qa={}));var Kt;(function(e){e.ADD="add",e.DISMISS="dismiss",e.UPDATE="update",e.CLEAR="clear",e.UPDATE_DEFAULTS="update_defaults"})(Kt||(Kt={}));var tr="Vue-Toastification",hn={type:{type:String,default:zt.DEFAULT},classNames:{type:[String,Array],default:()=>[]},trueBoolean:{type:Boolean,default:!0}},E2={type:hn.type,customIcon:{type:[String,Boolean,Object,Function],default:!0}},Bl={component:{type:[String,Object,Function,Boolean],default:"button"},classNames:hn.classNames,showOnHover:{type:Boolean,default:!1},ariaLabel:{type:String,default:"close"}},fc={timeout:{type:[Number,Boolean],default:5e3},hideProgressBar:{type:Boolean,default:!1},isRunning:{type:Boolean,default:!1}},S2={transition:{type:[Object,String],default:`${tr}__bounce`}},ar={CORE_TOAST:{position:{type:String,default:qa.TOP_RIGHT},draggable:hn.trueBoolean,draggablePercent:{type:Number,default:.6},pauseOnFocusLoss:hn.trueBoolean,pauseOnHover:hn.trueBoolean,closeOnClick:hn.trueBoolean,timeout:fc.timeout,hideProgressBar:fc.hideProgressBar,toastClassName:hn.classNames,bodyClassName:hn.classNames,icon:E2.customIcon,closeButton:Bl.component,closeButtonClassName:Bl.classNames,showCloseButtonOnHover:Bl.showOnHover,accessibility:{type:Object,default:()=>({toastRole:"alert",closeButtonLabel:"close"})},rtl:{type:Boolean,default:!1},eventBus:{type:Object,required:!1,default:()=>new hs}},TOAST:{id:{type:[String,Number],required:!0,default:0},type:hn.type,content:{type:[String,Object,Function],required:!0,default:""},onClick:{type:Function,default:void 0},onClose:{type:Function,default:void 0}},CONTAINER:{container:{type:[Object,Function],default:()=>document.body},newestOnTop:hn.trueBoolean,maxToasts:{type:Number,default:20},transition:S2.transition,toastDefaults:Object,filterBeforeCreate:{type:Function,default:e=>e},filterToasts:{type:Function,default:e=>e},containerClassName:hn.classNames,onMounted:Function,shareAppContext:[Boolean,Object]},PROGRESS_BAR:fc,ICON:E2,TRANSITION:S2,CLOSE_BUTTON:Bl},sh=(0,n.defineComponent)({name:"VtProgressBar",props:ar.PROGRESS_BAR,data(){return{hasClass:!0}},computed:{style(){return{animationDuration:`${this.timeout}ms`,animationPlayState:this.isRunning?"running":"paused",opacity:this.hideProgressBar?0:1}},cpClass(){return this.hasClass?`${tr}__progress-bar`:""}},watch:{timeout(){this.hasClass=!1,this.$nextTick(()=>this.hasClass=!0)}},mounted(){this.$el.addEventListener("animationend",this.animationEnded)},beforeUnmount(){this.$el.removeEventListener("animationend",this.animationEnded)},methods:{animationEnded(){this.$emit("close-toast")}}});function FH(e,t){return(0,n.openBlock)(),(0,n.createElementBlock)("div",{style:(0,n.normalizeStyle)(e.style),class:(0,n.normalizeClass)(e.cpClass)},null,6)}sh.render=FH;var zH=sh,ch=(0,n.defineComponent)({name:"VtCloseButton",props:ar.CLOSE_BUTTON,computed:{buttonComponent(){return this.component!==!1?ul(this.component):"button"},classes(){const e=[`${tr}__close-button`];return this.showOnHover&&e.push("show-on-hover"),e.concat(this.classNames)}}}),UH=(0,n.createTextVNode)(" × ");function HH(e,t){return(0,n.openBlock)(),(0,n.createBlock)((0,n.resolveDynamicComponent)(e.buttonComponent),(0,n.mergeProps)({"aria-label":e.ariaLabel,class:e.classes},e.$attrs),{default:(0,n.withCtx)(()=>[UH]),_:1},16,["aria-label","class"])}ch.render=HH;var WH=ch,uh={},jH={"aria-hidden":"true",focusable:"false","data-prefix":"fas","data-icon":"check-circle",class:"svg-inline--fa fa-check-circle fa-w-16",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},GH=[(0,n.createElementVNode)("path",{fill:"currentColor",d:"M504 256c0 136.967-111.033 248-248 248S8 392.967 8 256 119.033 8 256 8s248 111.033 248 248zM227.314 387.314l184-184c6.248-6.248 6.248-16.379 0-22.627l-22.627-22.627c-6.248-6.249-16.379-6.249-22.628 0L216 308.118l-70.059-70.059c-6.248-6.248-16.379-6.248-22.628 0l-22.627 22.627c-6.248 6.248-6.248 16.379 0 22.627l104 104c6.249 6.249 16.379 6.249 22.628.001z"},null,-1)];function qH(e,t){return(0,n.openBlock)(),(0,n.createElementBlock)("svg",jH,GH)}uh.render=qH;var YH=uh,dh={},ZH={"aria-hidden":"true",focusable:"false","data-prefix":"fas","data-icon":"info-circle",class:"svg-inline--fa fa-info-circle fa-w-16",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},XH=[(0,n.createElementVNode)("path",{fill:"currentColor",d:"M256 8C119.043 8 8 119.083 8 256c0 136.997 111.043 248 248 248s248-111.003 248-248C504 119.083 392.957 8 256 8zm0 110c23.196 0 42 18.804 42 42s-18.804 42-42 42-42-18.804-42-42 18.804-42 42-42zm56 254c0 6.627-5.373 12-12 12h-88c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h12v-64h-12c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h64c6.627 0 12 5.373 12 12v100h12c6.627 0 12 5.373 12 12v24z"},null,-1)];function KH(e,t){return(0,n.openBlock)(),(0,n.createElementBlock)("svg",ZH,XH)}dh.render=KH;var C2=dh,fh={},JH={"aria-hidden":"true",focusable:"false","data-prefix":"fas","data-icon":"exclamation-circle",class:"svg-inline--fa fa-exclamation-circle fa-w-16",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},QH=[(0,n.createElementVNode)("path",{fill:"currentColor",d:"M504 256c0 136.997-111.043 248-248 248S8 392.997 8 256C8 119.083 119.043 8 256 8s248 111.083 248 248zm-248 50c-25.405 0-46 20.595-46 46s20.595 46 46 46 46-20.595 46-46-20.595-46-46-46zm-43.673-165.346l7.418 136c.347 6.364 5.609 11.346 11.982 11.346h48.546c6.373 0 11.635-4.982 11.982-11.346l7.418-136c.375-6.874-5.098-12.654-11.982-12.654h-63.383c-6.884 0-12.356 5.78-11.981 12.654z"},null,-1)];function eW(e,t){return(0,n.openBlock)(),(0,n.createElementBlock)("svg",JH,QH)}fh.render=eW;var tW=fh,mh={},nW={"aria-hidden":"true",focusable:"false","data-prefix":"fas","data-icon":"exclamation-triangle",class:"svg-inline--fa fa-exclamation-triangle fa-w-18",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512"},rW=[(0,n.createElementVNode)("path",{fill:"currentColor",d:"M569.517 440.013C587.975 472.007 564.806 512 527.94 512H48.054c-36.937 0-59.999-40.055-41.577-71.987L246.423 23.985c18.467-32.009 64.72-31.951 83.154 0l239.94 416.028zM288 354c-25.405 0-46 20.595-46 46s20.595 46 46 46 46-20.595 46-46-20.595-46-46-46zm-43.673-165.346l7.418 136c.347 6.364 5.609 11.346 11.982 11.346h48.546c6.373 0 11.635-4.982 11.982-11.346l7.418-136c.375-6.874-5.098-12.654-11.982-12.654h-63.383c-6.884 0-12.356 5.78-11.981 12.654z"},null,-1)];function oW(e,t){return(0,n.openBlock)(),(0,n.createElementBlock)("svg",nW,rW)}mh.render=oW;var aW=mh,ph=(0,n.defineComponent)({name:"VtIcon",props:ar.ICON,computed:{customIconChildren(){return Un(this.customIcon,"iconChildren")?this.trimValue(this.customIcon.iconChildren):""},customIconClass(){return ps(this.customIcon)?this.trimValue(this.customIcon):Un(this.customIcon,"iconClass")?this.trimValue(this.customIcon.iconClass):""},customIconTag(){return Un(this.customIcon,"iconTag")?this.trimValue(this.customIcon.iconTag,"i"):"i"},hasCustomIcon(){return this.customIconClass.length>0},component(){return this.hasCustomIcon?this.customIconTag:ih(this.customIcon)?ul(this.customIcon):this.iconTypeComponent},iconTypeComponent(){return{[zt.DEFAULT]:C2,[zt.INFO]:C2,[zt.SUCCESS]:YH,[zt.ERROR]:aW,[zt.WARNING]:tW}[this.type]},iconClasses(){const e=[`${tr}__icon`];return this.hasCustomIcon?e.concat(this.customIconClass):e}},methods:{trimValue(e,t=""){return oh(e)?e.trim():t}}});function lW(e,t){return(0,n.openBlock)(),(0,n.createBlock)((0,n.resolveDynamicComponent)(e.component),{class:(0,n.normalizeClass)(e.iconClasses)},{default:(0,n.withCtx)(()=>[(0,n.createTextVNode)((0,n.toDisplayString)(e.customIconChildren),1)]),_:1},8,["class"])}ph.render=lW;var hh=(0,n.defineComponent)({name:"VtToast",components:{ProgressBar:zH,CloseButton:WH,Icon:ph},inheritAttrs:!1,props:Object.assign({},ar.CORE_TOAST,ar.TOAST),data(){return{isRunning:!0,disableTransitions:!1,beingDragged:!1,dragStart:0,dragPos:{x:0,y:0},dragRect:{}}},computed:{classes(){const e=[`${tr}__toast`,`${tr}__toast--${this.type}`,`${this.position}`].concat(this.toastClassName);return this.disableTransitions&&e.push("disable-transition"),this.rtl&&e.push(`${tr}__toast--rtl`),e},bodyClasses(){return[`${tr}__toast-${ps(this.content)?"body":"component-body"}`].concat(this.bodyClassName)},draggableStyle(){return this.dragStart===this.dragPos.x?{}:this.beingDragged?{transform:`translateX(${this.dragDelta}px)`,opacity:1-Math.abs(this.dragDelta/this.removalDistance)}:{transition:"transform 0.2s, opacity 0.2s",transform:"translateX(0)",opacity:1}},dragDelta(){return this.beingDragged?this.dragPos.x-this.dragStart:0},removalDistance(){return k2(this.dragRect)?(this.dragRect.right-this.dragRect.left)*this.draggablePercent:0}},mounted(){this.draggable&&this.draggableSetup(),this.pauseOnFocusLoss&&this.focusSetup()},beforeUnmount(){this.draggable&&this.draggableCleanup(),this.pauseOnFocusLoss&&this.focusCleanup()},methods:{hasProp:Un,getVueComponentFromObj:ul,closeToast(){this.eventBus.emit(Kt.DISMISS,this.id)},clickHandler(){this.onClick&&this.onClick(this.closeToast),this.closeOnClick&&(!this.beingDragged||this.dragStart===this.dragPos.x)&&this.closeToast()},timeoutHandler(){this.closeToast()},hoverPause(){this.pauseOnHover&&(this.isRunning=!1)},hoverPlay(){this.pauseOnHover&&(this.isRunning=!0)},focusPause(){this.isRunning=!1},focusPlay(){this.isRunning=!0},focusSetup(){addEventListener("blur",this.focusPause),addEventListener("focus",this.focusPlay)},focusCleanup(){removeEventListener("blur",this.focusPause),removeEventListener("focus",this.focusPlay)},draggableSetup(){const e=this.$el;e.addEventListener("touchstart",this.onDragStart,{passive:!0}),e.addEventListener("mousedown",this.onDragStart),addEventListener("touchmove",this.onDragMove,{passive:!1}),addEventListener("mousemove",this.onDragMove),addEventListener("touchend",this.onDragEnd),addEventListener("mouseup",this.onDragEnd)},draggableCleanup(){const e=this.$el;e.removeEventListener("touchstart",this.onDragStart),e.removeEventListener("mousedown",this.onDragStart),removeEventListener("touchmove",this.onDragMove),removeEventListener("mousemove",this.onDragMove),removeEventListener("touchend",this.onDragEnd),removeEventListener("mouseup",this.onDragEnd)},onDragStart(e){this.beingDragged=!0,this.dragPos={x:dc(e),y:$2(e)},this.dragStart=dc(e),this.dragRect=this.$el.getBoundingClientRect()},onDragMove(e){this.beingDragged&&(e.preventDefault(),this.isRunning&&(this.isRunning=!1),this.dragPos={x:dc(e),y:$2(e)})},onDragEnd(){this.beingDragged&&(Math.abs(this.dragDelta)>=this.removalDistance?(this.disableTransitions=!0,this.$nextTick(()=>this.closeToast())):setTimeout(()=>{this.beingDragged=!1,k2(this.dragRect)&&this.pauseOnHover&&this.dragRect.bottom>=this.dragPos.y&&this.dragPos.y>=this.dragRect.top&&this.dragRect.left<=this.dragPos.x&&this.dragPos.x<=this.dragRect.right?this.isRunning=!1:this.isRunning=!0}))}}}),iW=["role"];function sW(e,t){const r=(0,n.resolveComponent)("Icon"),o=(0,n.resolveComponent)("CloseButton"),a=(0,n.resolveComponent)("ProgressBar");return(0,n.openBlock)(),(0,n.createElementBlock)("div",{class:(0,n.normalizeClass)(e.classes),style:(0,n.normalizeStyle)(e.draggableStyle),onClick:t[0]||(t[0]=(...l)=>e.clickHandler&&e.clickHandler(...l)),onMouseenter:t[1]||(t[1]=(...l)=>e.hoverPause&&e.hoverPause(...l)),onMouseleave:t[2]||(t[2]=(...l)=>e.hoverPlay&&e.hoverPlay(...l))},[e.icon?((0,n.openBlock)(),(0,n.createBlock)(r,{key:0,"custom-icon":e.icon,type:e.type},null,8,["custom-icon","type"])):(0,n.createCommentVNode)("v-if",!0),(0,n.createElementVNode)("div",{role:e.accessibility.toastRole||"alert",class:(0,n.normalizeClass)(e.bodyClasses)},[typeof e.content=="string"?((0,n.openBlock)(),(0,n.createElementBlock)(n.Fragment,{key:0},[(0,n.createTextVNode)((0,n.toDisplayString)(e.content),1)],2112)):((0,n.openBlock)(),(0,n.createBlock)((0,n.resolveDynamicComponent)(e.getVueComponentFromObj(e.content)),(0,n.mergeProps)({key:1,"toast-id":e.id},e.hasProp(e.content,"props")?e.content.props:{},(0,n.toHandlers)(e.hasProp(e.content,"listeners")?e.content.listeners:{}),{onCloseToast:e.closeToast}),null,16,["toast-id","onCloseToast"]))],10,iW),e.closeButton?((0,n.openBlock)(),(0,n.createBlock)(o,{key:1,component:e.closeButton,"class-names":e.closeButtonClassName,"show-on-hover":e.showCloseButtonOnHover,"aria-label":e.accessibility.closeButtonLabel,onClick:(0,n.withModifiers)(e.closeToast,["stop"])},null,8,["component","class-names","show-on-hover","aria-label","onClick"])):(0,n.createCommentVNode)("v-if",!0),e.timeout?((0,n.openBlock)(),(0,n.createBlock)(a,{key:2,"is-running":e.isRunning,"hide-progress-bar":e.hideProgressBar,timeout:e.timeout,onCloseToast:e.timeoutHandler},null,8,["is-running","hide-progress-bar","timeout","onCloseToast"])):(0,n.createCommentVNode)("v-if",!0)],38)}hh.render=sW;var cW=hh,gh=(0,n.defineComponent)({name:"VtTransition",props:ar.TRANSITION,emits:["leave"],methods:{hasProp:Un,leave(e){e instanceof HTMLElement&&(e.style.left=e.offsetLeft+"px",e.style.top=e.offsetTop+"px",e.style.width=getComputedStyle(e).width,e.style.position="absolute")}}});function uW(e,t){return(0,n.openBlock)(),(0,n.createBlock)(n.TransitionGroup,{tag:"div","enter-active-class":e.transition.enter?e.transition.enter:`${e.transition}-enter-active`,"move-class":e.transition.move?e.transition.move:`${e.transition}-move`,"leave-active-class":e.transition.leave?e.transition.leave:`${e.transition}-leave-active`,onLeave:e.leave},{default:(0,n.withCtx)(()=>[(0,n.renderSlot)(e.$slots,"default")]),_:3},8,["enter-active-class","move-class","leave-active-class","onLeave"])}gh.render=uW;var vh=(0,n.defineComponent)({name:"VueToastification",devtools:{hide:!0},components:{Toast:cW,VtTransition:gh},props:Object.assign({},ar.CORE_TOAST,ar.CONTAINER,ar.TRANSITION),data(){return{count:0,positions:Object.values(qa),toasts:{},defaults:{}}},computed:{toastArray(){return Object.values(this.toasts)},filteredToasts(){return this.defaults.filterToasts(this.toastArray)}},beforeMount(){const e=this.eventBus;e.on(Kt.ADD,this.addToast),e.on(Kt.CLEAR,this.clearToasts),e.on(Kt.DISMISS,this.dismissToast),e.on(Kt.UPDATE,this.updateToast),e.on(Kt.UPDATE_DEFAULTS,this.updateDefaults),this.defaults=this.$props},mounted(){this.setup(this.container)},methods:{async setup(e){ms(e)&&(e=await e()),IH(this.$el),e.appendChild(this.$el)},setToast(e){zr(e.id)||(this.toasts[e.id]=e)},addToast(e){e.content=VH(e.content);const t=Object.assign({},this.defaults,e.type&&this.defaults.toastDefaults&&this.defaults.toastDefaults[e.type],e),r=this.defaults.filterBeforeCreate(t,this.toastArray);r&&this.setToast(r)},dismissToast(e){const t=this.toasts[e];!zr(t)&&!zr(t.onClose)&&t.onClose(),delete this.toasts[e]},clearToasts(){Object.keys(this.toasts).forEach(e=>{this.dismissToast(e)})},getPositionToasts(e){const t=this.filteredToasts.filter(r=>r.position===e).slice(0,this.defaults.maxToasts);return this.defaults.newestOnTop?t.reverse():t},updateDefaults(e){zr(e.container)||this.setup(e.container),this.defaults=Object.assign({},this.defaults,e)},updateToast({id:e,options:t,create:r}){this.toasts[e]?(t.timeout&&t.timeout===this.toasts[e].timeout&&t.timeout++,this.setToast(Object.assign({},this.toasts[e],t))):r&&this.addToast(Object.assign({},{id:e},t))},getClasses(e){return[`${tr}__container`,e].concat(this.defaults.containerClassName)}}});function dW(e,t){const r=(0,n.resolveComponent)("Toast"),o=(0,n.resolveComponent)("VtTransition");return(0,n.openBlock)(),(0,n.createElementBlock)("div",null,[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(e.positions,a=>((0,n.openBlock)(),(0,n.createElementBlock)("div",{key:a},[(0,n.createVNode)(o,{transition:e.defaults.transition,class:(0,n.normalizeClass)(e.getClasses(a))},{default:(0,n.withCtx)(()=>[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(e.getPositionToasts(a),l=>((0,n.openBlock)(),(0,n.createBlock)(r,(0,n.mergeProps)({key:l.id},l),null,16))),128))]),_:2},1032,["transition","class"])]))),128))])}vh.render=dW;var fW=vh,x2=(e={},t=!0)=>{const r=e.eventBus=e.eventBus||new hs;t&&(0,n.nextTick)(()=>{const l=(0,n.createApp)(fW,rh({},e)),i=l.mount(document.createElement("div")),c=e.onMounted;if(zr(c)||c(i,l),e.shareAppContext){const s=e.shareAppContext;s===!0||(l._context.components=s._context.components,l._context.directives=s._context.directives,l._context.mixins=s._context.mixins,l._context.provides=s._context.provides,l.config.globalProperties=s.config.globalProperties)}});const o=(l,i)=>{const c=Object.assign({},{id:PH(),type:zt.DEFAULT},i,{content:l});return r.emit(Kt.ADD,c),c.id};o.clear=()=>r.emit(Kt.CLEAR,void 0),o.updateDefaults=l=>{r.emit(Kt.UPDATE_DEFAULTS,l)},o.dismiss=l=>{r.emit(Kt.DISMISS,l)};function a(l,{content:i,options:c},s=!1){const u=Object.assign({},c,{content:i});r.emit(Kt.UPDATE,{id:l,options:u,create:s})}return o.update=a,o.success=(l,i)=>o(l,Object.assign({},i,{type:zt.SUCCESS})),o.info=(l,i)=>o(l,Object.assign({},i,{type:zt.INFO})),o.error=(l,i)=>o(l,Object.assign({},i,{type:zt.ERROR})),o.warning=(l,i)=>o(l,Object.assign({},i,{type:zt.WARNING})),o},mW=()=>{const e=()=>{};return new Proxy(e,{get(){return e}})};function Ya(e){return OH()?RH(e)?x2({eventBus:e},!1):x2(e,!0):mW()}var gs=Symbol("VueToastification"),qd=new hs,pW=(e,t)=>{t?.shareAppContext===!0&&(t.shareAppContext=e);const r=Ya(rh({eventBus:qd},t));e.provide(gs,r)},hW=e=>{const t=Ya(e);(0,n.getCurrentInstance)()&&(0,n.provide)(gs,t)},Lh=e=>{if(e)return Ya(e);const t=(0,n.getCurrentInstance)()?(0,n.inject)(gs,void 0):void 0;return t||Ya(qd)},yh=pW,gW={key:0,class:"custom-toast__icon"},vW={class:"custom-toast__content"},LW=(0,n.defineComponent)({name:"BglToast",__name:"Toast",props:{message:{},type:{},info:{type:Boolean},success:{type:Boolean},warning:{type:Boolean},error:{type:Boolean},showIcon:{type:Boolean,default:!0},showCloseButton:{type:Boolean,default:!0},closeToast:{}},setup(e){const t=e,r=(0,n.computed)(()=>t.type?t.type:t.error?"error":t.warning?"warning":t.success?"success":"info");return(o,a)=>((0,n.openBlock)(),(0,n.createElementBlock)("div",{class:(0,n.normalizeClass)(["custom-toast",`custom-toast--${r.value}`])},[e.showIcon?((0,n.openBlock)(),(0,n.createElementBlock)("div",gW,[r.value==="success"?((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(_e),{key:0,icon:"check_circle"})):(0,n.createCommentVNode)("",!0),r.value==="error"?((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(_e),{key:1,icon:"dangerous"})):(0,n.createCommentVNode)("",!0),r.value==="warning"?((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(_e),{key:2,icon:"report"})):(0,n.createCommentVNode)("",!0),r.value==="info"?((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(_e),{key:3,icon:"info"})):(0,n.createCommentVNode)("",!0)])):(0,n.createCommentVNode)("",!0),(0,n.createElementVNode)("div",vW,(0,n.toDisplayString)(e.message),1),e.showCloseButton?((0,n.openBlock)(),(0,n.createElementBlock)("button",{key:1,class:"custom-toast__close",onClick:a[0]||(a[0]=(...l)=>e.closeToast&&e.closeToast(...l))},[(0,n.createVNode)((0,n.unref)(_e),{icon:"close"})])):(0,n.createCommentVNode)("",!0)],2))}}),la=LW,yW=yh||nh,{POSITION:bW}=nh,fo=Lh;const bh=Symbol("toast");var Ni=null;function _W(){const e=(0,n.inject)(bh,null);if(!e){if(Ni)return Ni;throw new Error("Toast API not provided. Make sure ToastPlugin is installed via app.use(ToastPlugin)")}return e}function wW(){if(typeof document>"u")return;let e=document.getElementById("bgl-toast-container");e||(e=document.createElement("div"),e.setAttribute("popover","manual"),e.setAttribute("id","bgl-toast-container"),document.body.appendChild(e));try{e.hidePopover()}catch{}try{e.showPopover()}catch{}return e}const _h={install:(e,t={})=>{const r=wW(),o={position:bW.TOP_RIGHT,timeout:5e3,closeOnClick:!0,pauseOnFocusLoss:!0,pauseOnHover:!0,draggable:!0,draggablePercent:.6,showCloseButtonOnHover:!1,hideProgressBar:!0,closeButton:!1,icon:!1,rtl:!1,transition:"Vue-Toastification__fade",maxToasts:5,newestOnTop:!0,toastClassName:"custom-toast-wrapper",bodyClassName:"custom-toast-body",...r?{container:r}:{},...t};e.use(yW,o);function a(){const i=typeof document<"u"?document.getElementById("bgl-toast-container"):null;if(i){try{i.hidePopover()}catch{}try{i.showPopover()}catch{}}}const l={success:(i,c)=>(a(),fo()({component:la,props:{message:i,type:"success"}},c)),error:(i,c)=>(a(),fo()({component:la,props:{message:i,type:"error"}},c)),info:(i,c)=>(a(),fo()({component:la,props:{message:i,type:"info"}},c)),warning:(i,c)=>(a(),fo()({component:la,props:{message:i,type:"warning"}},c)),show:(i,c)=>(a(),fo()({component:la,props:{message:i,type:"info"}},c)),clear:()=>{fo().clear()}};Ni||(Ni=l),e.provide(bh,l)}};var vs=class extends Event{oldState;newState;constructor(e,{oldState:t="",newState:r="",...o}={}){super(e,o),this.oldState=String(t||""),this.newState=String(r||"")}},T2=new WeakMap;function wh(e,t,r){T2.set(e,setTimeout(()=>{T2.has(e)&&e.dispatchEvent(new vs("toggle",{cancelable:!1,oldState:t,newState:r}))},0))}var Yd=globalThis.ShadowRoot||function(){},kW=globalThis.HTMLDialogElement||function(){},Xl=new WeakMap,nr=new WeakMap,ln=new WeakMap,Fo=new WeakMap;function Bi(e){return Fo.get(e)||"hidden"}var Mi=new WeakMap;function Za(e){return[...e].pop()}function $W(e){const t=e.popoverTargetElement;if(!(t instanceof HTMLElement))return;const r=Bi(t);e.popoverTargetAction==="show"&&r==="showing"||e.popoverTargetAction==="hide"&&r==="hidden"||(r==="showing"?Uo(t,!0,!0):Wr(t,!1)&&(Mi.set(t,e),xu(t)))}function Wr(e,t){return!(e.popover!=="auto"&&e.popover!=="manual"&&e.popover!=="hint"||!e.isConnected||t&&Bi(e)!=="showing"||!t&&Bi(e)!=="hidden"||e instanceof kW&&e.hasAttribute("open")||document.fullscreenElement===e)}function N2(e){if(!e)return 0;const t=nr.get(document)||new Set,r=ln.get(document)||new Set;return r.has(e)?[...r].indexOf(e)+t.size+1:t.has(e)?[...t].indexOf(e)+1:0}function EW(e){const t=kh(e),r=SW(e);return N2(t)>N2(r)?t:r}function Xa(e){let t;const r=ln.get(e)||new Set,o=nr.get(e)||new Set,a=r.size>0?r:o.size>0?o:null;return a?(t=Za(a),t.isConnected?t:(a.delete(t),Xa(e))):null}function B2(e){for(const t of e||[])if(!t.isConnected)e.delete(t);else return t;return null}function zo(e){return typeof e.getRootNode=="function"?e.getRootNode():e.parentNode?zo(e.parentNode):e}function kh(e){for(;e;){if(e instanceof HTMLElement&&e.popover==="auto"&&Fo.get(e)==="showing")return e;if(e=e instanceof Element&&e.assignedSlot||e.parentElement||zo(e),e instanceof Yd&&(e=e.host),e instanceof Document)return}}function SW(e){for(;e;){const t=e.popoverTargetElement;if(t instanceof HTMLElement)return t;if(e=e.parentElement||zo(e),e instanceof Yd&&(e=e.host),e instanceof Document)return}}function M2(e,t){const r=new Map;let o=0;for(const i of t||[])r.set(i,o),o+=1;r.set(e,o),o+=1;let a=null;function l(i){if(!i)return;let c=!1,s=null,u=null;for(;!c;){if(s=kh(i)||null,s===null||!r.has(s))return;(e.popover==="hint"||s.popover==="auto")&&(c=!0),c||(i=s.parentElement)}u=r.get(s),(a===null||r.get(a)<u)&&(a=s)}return l(e.parentElement||zo(e)),a}function CW(e){return e.hidden||e instanceof Yd||(e instanceof HTMLButtonElement||e instanceof HTMLInputElement||e instanceof HTMLSelectElement||e instanceof HTMLTextAreaElement||e instanceof HTMLOptGroupElement||e instanceof HTMLOptionElement||e instanceof HTMLFieldSetElement)&&e.disabled||e instanceof HTMLInputElement&&e.type==="hidden"||e instanceof HTMLAnchorElement&&e.href===""?!1:typeof e.tabIndex=="number"&&e.tabIndex!==-1}function xW(e){if(e.shadowRoot&&e.shadowRoot.delegatesFocus!==!0)return null;let t=e;t.shadowRoot&&(t=t.shadowRoot);let r=t.querySelector("[autofocus]");if(r)return r;{const l=t.querySelectorAll("slot");for(const i of l){const c=i.assignedElements({flatten:!0});for(const s of c){if(s.hasAttribute("autofocus"))return s;if(r=s.querySelector("[autofocus]"),r)return r}}}const o=e.ownerDocument.createTreeWalker(t,NodeFilter.SHOW_ELEMENT);let a=o.currentNode;for(;a;){if(CW(a))return a;a=o.nextNode()}}function TW(e){var t;(t=xW(e))==null||t.focus()}var Di=new WeakMap;function xu(e){if(!Wr(e,!1))return;const t=e.ownerDocument;if(!e.dispatchEvent(new vs("beforetoggle",{cancelable:!0,oldState:"closed",newState:"open"}))||!Wr(e,!1))return;let r=!1;const o=e.popover;let a=null;const l=M2(e,nr.get(t)||new Set),i=M2(e,ln.get(t)||new Set);if(o==="auto"&&(Tu(ln.get(t)||new Set,r,!0),jr(l||t,r,!0),a="auto"),o==="hint"&&(i?(jr(i,r,!0),a="hint"):(Tu(ln.get(t)||new Set,r,!0),l?(jr(l,r,!0),a="auto"):a="hint")),o==="auto"||o==="hint"){if(o!==e.popover||!Wr(e,!1))return;Xa(t)||(r=!0),a==="auto"?(nr.has(t)||nr.set(t,new Set),nr.get(t).add(e)):a==="hint"&&(ln.has(t)||ln.set(t,new Set),ln.get(t).add(e))}Di.delete(e);const c=t.activeElement;e.classList.add(":popover-open"),Fo.set(e,"showing"),Xl.has(t)||Xl.set(t,new Set),Xl.get(t).add(e),$h(Mi.get(e),!0),TW(e),r&&c&&e.popover==="auto"&&Di.set(e,c),wh(e,"closed","open")}function Uo(e,t=!1,r=!1){var o,a;if(!Wr(e,!0))return;const l=e.ownerDocument;if(["auto","hint"].includes(e.popover)&&(jr(e,t,r),!Wr(e,!0)))return;const i=nr.get(l)||new Set,c=i.has(e)&&Za(i)===e;if($h(Mi.get(e),!1),Mi.delete(e),r&&(e.dispatchEvent(new vs("beforetoggle",{oldState:"open",newState:"closed"})),c&&Za(i)!==e&&jr(e,t,r),!Wr(e,!0)))return;(o=Xl.get(l))==null||o.delete(e),i.delete(e),(a=ln.get(l))==null||a.delete(e),e.classList.remove(":popover-open"),Fo.set(e,"hidden"),r&&wh(e,"open","closed");const s=Di.get(e);s&&(Di.delete(e),t&&s.focus())}function NW(e,t=!1,r=!1){let o=Xa(e);for(;o;)Uo(o,t,r),o=Xa(e)}function Tu(e,t=!1,r=!1){let o=B2(e);for(;o;)Uo(o,t,r),o=B2(e)}function D2(e,t,r,o){let a=!1,l=!1;for(;a||!l;){l=!0;let i=null,c=!1;for(const s of t)if(s===e)c=!0;else if(c){i=s;break}if(!i)return;for(;Bi(i)==="showing"&&t.size;)Uo(Za(t),r,o);t.has(e)&&Za(t)!==e&&(a=!0),a&&(o=!1)}}function jr(e,t,r){var o,a;const l=e.ownerDocument||e;if(e instanceof Document)return NW(l,t,r);if((o=ln.get(l))!=null&&o.has(e)){D2(e,ln.get(l),t,r);return}Tu(ln.get(l)||new Set,t,r),(a=nr.get(l))!=null&&a.has(e)&&D2(e,nr.get(l),t,r)}var mc=new WeakMap;function A2(e){if(!e.isTrusted)return;const t=e.composedPath()[0];if(!t)return;const r=t.ownerDocument;if(!Xa(r))return;const o=EW(t);if(o&&e.type==="pointerdown")mc.set(r,o);else if(e.type==="pointerup"){const a=mc.get(r)===o;mc.delete(r),a&&jr(o||r,!1,!0)}}var pc=new WeakMap;function $h(e,t=!1){if(!e)return;pc.has(e)||pc.set(e,e.getAttribute("aria-expanded"));const r=e.popoverTargetElement;if(r instanceof HTMLElement&&r.popover==="auto")e.setAttribute("aria-expanded",String(t));else{const o=pc.get(e);o?e.setAttribute("aria-expanded",o):e.removeAttribute("aria-expanded")}}var P2=globalThis.ShadowRoot||function(){};function BW(){return typeof HTMLElement<"u"&&typeof HTMLElement.prototype=="object"&&"popover"in HTMLElement.prototype}function Pr(e,t,r){const o=e[t];Object.defineProperty(e,t,{value(a){return o.call(this,r(a))}})}var MW=/(^|[^\\]):popover-open\b/g;function DW(){return typeof globalThis.CSSLayerBlockRule=="function"}function AW(){const e=DW();return`
467
+ `,e.appendChild(i))):i=e,i.addEventListener("mouseenter",()=>{i!==e&&(i.style.background="rgba(0, 0, 0, 0.2)")}),i.addEventListener("mouseleave",()=>{i!==e&&!o&&(i.style.background="rgba(0, 0, 0, 0.1)")}),i.style.cursor="ns-resize",i.style.userSelect="none";function c(m){return{clientY:m,deltaY:m-a,initialHeight:l}}function s(m){return r.gridSize?Math.round(m/r.gridSize)*r.gridSize:m}function u(m){if(!o)return;m.preventDefault();const p=c("touches"in m?m.touches[0].clientY:m.clientY);let h=l+p.deltaY;r.minHeight!==void 0&&(h=Math.max(h,r.minHeight)),r.maxHeight!==void 0&&(h=Math.min(h,r.maxHeight)),h=s(h),e.style.height=`${h}px`,r.onResize&&r.onResize(p),i!==e&&(i.style.background="rgba(0, 0, 0, 0.3)")}function d(m){if(!o)return;const p=c("touches"in m?m.changedTouches[0].clientY:m.clientY);o=!1,document.body.style.cursor="",document.body.style.userSelect="",i!==e&&(i.style.background="rgba(0, 0, 0, 0.1)"),r.onEnd&&r.onEnd(p),document.removeEventListener("mousemove",u),document.removeEventListener("mouseup",d),document.removeEventListener("touchmove",u),document.removeEventListener("touchend",d),document.removeEventListener("touchcancel",d)}function f(m){m instanceof MouseEvent&&m.button!==0||(m.preventDefault(),o=!0,a="touches"in m?m.touches[0].clientY:m.clientY,l=e.offsetHeight,r.onStart&&r.onStart(m),document.body.style.cursor="ns-resize",document.body.style.userSelect="none",document.addEventListener("mousemove",u,{passive:!1}),document.addEventListener("mouseup",d),document.addEventListener("touchmove",u,{passive:!1}),document.addEventListener("touchend",d),document.addEventListener("touchcancel",d))}i.addEventListener("mousedown",f),i.addEventListener("touchstart",f,{passive:!1}),e[fa]=()=>{i!==e&&e.removeChild(i),i.removeEventListener("mousedown",f),i.removeEventListener("touchstart",f),i.removeEventListener("mouseenter",f),i.removeEventListener("mouseleave",f),document.removeEventListener("mousemove",u),document.removeEventListener("mouseup",d),document.removeEventListener("touchmove",u),document.removeEventListener("touchend",d),document.removeEventListener("touchcancel",d)}}const Az={mounted(e,t){e2(e,t)},unmounted(e){const t=e[fa];typeof t=="function"&&(t(),delete e[fa])},updated(e,t){if(t.value!==t.oldValue){const r=e[fa];typeof r=="function"&&(r(),delete e[fa]),e2(e,t)}},getSSRProps(){return{}}},Pz=12,Iz=12,Vz=1;var L5=/^col-(\d{1,2})\/12$/,y5=/^start-col-(\d{1,2})$/,b5=/^m_col-(\d{1,2})\/12$/,_5=/^(?:grid-)?span-row-(\d{1,2})$/,$i={"col-1/12":1,"col-1/6":2,"col-2/12":2,"col-1/4":3,"col-3/12":3,"col-1/3":4,"col-4/12":4,"col-5/12":5,"col-1/2":6,"col-6/12":6,"col-7/12":7,"col-2/3":8,"col-8/12":8,"col-3/4":9,"col-9/12":9,"col-5/6":10,"col-10/12":10,"col-11/12":11,"col-full":12,"col-12/12":12},yu=Object.fromEntries(Object.entries($i).map(([e,t])=>[`m_${e}`,t]));function Nr(e){return Math.max(1,Math.min(12,Math.round(e)))}function w5(e){return`col-${Nr(e)}/12`}function k5(e){return`start-col-${Nr(e)}`}function $5(e){return`m_col-${Nr(e)}/12`}function E5(e){return`span-row-${Nr(e)}`}function Od(e){if(e)for(const t of e.split(/\s+/)){if(t.startsWith("m_"))continue;const r=t.match(L5);if(r)return Nr(Number(r[1]));if(t in $i)return $i[t]}}function Rd(e){if(e)for(const t of e.split(/\s+/)){const r=t.match(y5);if(r)return Nr(Number(r[1]))}}function Fd(e){if(e)for(const t of e.split(/\s+/)){const r=t.match(b5);if(r)return Nr(Number(r[1]));if(t in yu)return yu[t]}}function zd(e){if(e)for(const t of e.split(/\s+/)){const r=t.match(_5);if(r)return Nr(Number(r[1]))}}function Ud(e){return e?e.split(/\s+/).filter(Boolean).filter(t=>!L5.test(t)&&!y5.test(t)&&!b5.test(t)&&!_5.test(t)&&!(t in $i)&&!(t in yu)).join(" "):""}function S5(e,t){const r=Ud(e),o=r?[r]:[];return t.colSpan!==void 0&&t.colSpan!==12&&o.push(w5(t.colSpan)),t.colStart!==void 0&&o.push(k5(t.colStart)),t.rowSpan!==void 0&&t.rowSpan!==1&&o.push(E5(t.rowSpan)),t.mColSpan!==void 0&&t.mColSpan!==12&&o.push($5(t.mColSpan)),o.join(" ")}function Oz(e){return{colSpan:Od(e),colStart:Rd(e),rowSpan:zd(e),mColSpan:Fd(e)}}function Hd(e){return e==="richtext"?3:e==="textarea"||e==="json"||e==="radio"||e==="file"||e==="signature"?2:1}function Wd(e){if(e.format)switch(e.format){case"email":return"email";case"tel":return"phone";case"uri":case"url":return"url";case"date":case"date-time":return"date"}if(e.enum)return"select";switch(e.type){case"number":case"integer":return"number";case"boolean":return"checkbox"}return"text"}function C5(e){if(!e?.properties)return[];const t=new Set(e.required??[]),r=[];for(const[o,a]of Object.entries(e.properties)){const l=a["x-field-type"]??Wd(a),i={};a.minLength!==void 0&&(i.minLength=a.minLength),a.maxLength!==void 0&&(i.maxLength=a.maxLength),a.minimum!==void 0&&(i.min=a.minimum),a.maximum!==void 0&&(i.max=a.maximum),a.multipleOf!==void 0&&(i.step=a.multipleOf),a.pattern!==void 0&&(i.pattern=a.pattern),a["x-options"]?i.options=a["x-options"]:a.enum&&(i.options=a.enum.map(u=>({label:String(u),value:String(u)})));const c=a["x-ui"]?.class,s={id:crypto.randomUUID(),key:o,type:l,label:a.title??o,placeholder:a["x-placeholder"],description:a.description,required:t.has(o)||void 0,colSpan:Od(c)??12,colStart:Rd(c),rowSpan:zd(c)??Hd(l),mColSpan:Fd(c)??12,class:Ud(c)||void 0,hideLabel:a["x-hide-label"]??!1,condition:a["x-ui"]?.condition||void 0,hidden:a["x-ui"]?.hidden||l==="hidden"||void 0,richTextVariant:a["x-rich-text-variant"],markdownShowFormatting:a["x-markdown-show-formatting"],textareaRows:a["x-textarea-rows"],textareaAutoHeight:a["x-textarea-autoheight"],numberLayout:a["x-number-layout"],numberSpinner:a["x-number-spinner"]??!0,phoneOnlyCountries:a["x-phone-only-countries"],selectMultiselect:a["x-select-multiselect"],fileMultiple:a["x-file-multiple"],fileHeight:a["x-file-height"],fileAccept:a["x-file-accept"],fileTheme:a["x-file-theme"],fileShowIcon:a["x-file-show-icon"]===!1?!1:void 0,fileIcon:a["x-file-icon"],dateEnableTime:a["x-date-enable-time"],dateMin:a["x-date-min"],dateMax:a["x-date-max"],rangeMulti:a["x-range-multi"],radioThin:a["x-radio-thin"],radioHideRadio:a["x-radio-hide-radio"],radioAlign:a["x-ui"]?.radioAlign??a["x-radio-align"],radioInline:a["x-radio-inline"],radioSize:a["x-radio-size"],radioTextAlign:a["x-ui"]?.radioTextAlign??a["x-radio-text-align"]??"center",textIcon:a["x-text-icon"],textIconStart:a["x-text-icon-start"],validation:Object.keys(i).length>0?i:void 0,defaultValue:a.default,content:a["x-field-type"]==="heading"?a.title:void 0};r.push(s)}return r}function Rz(e){const t={},r=[];for(const a of e){const l={};if(a.type==="heading"||a.type==="divider")l.type="string",l.title=a.content||a.label,l["x-field-type"]=a.type;else{switch(a.type){case"text":case"textarea":case"richtext":case"markdown":case"email":case"phone":case"url":case"date":case"signature":case"color":case"hidden":l.type="string";break;case"file":a.fileMultiple===!0?(l.type="array",l.items={type:"string"}):l.type="string";break;case"number":case"range":l.type="number";break;case"checkbox":case"toggle":l.type="boolean";break;case"json":l.type="object";break;case"select":case"radio":l.type="string",a.validation?.options&&(l.enum=a.validation.options.map(c=>c.value));break}a.type==="email"&&(l.format="email"),a.type==="phone"&&(l.format="tel"),a.type==="url"&&(l.format="uri"),a.type==="date"&&(l.format=a.dateEnableTime?"date-time":"date"),a.type==="color"&&(l.format="color"),l.title=a.label,a.description&&(l.description=a.description),a.defaultValue!==void 0&&(l.default=a.defaultValue),a.type!=="text"&&(l["x-field-type"]=a.type),a.validation?.minLength!==void 0&&(l.minLength=a.validation.minLength),a.validation?.maxLength!==void 0&&(l.maxLength=a.validation.maxLength),a.validation?.min!==void 0&&(l.minimum=a.validation.min),a.validation?.max!==void 0&&(l.maximum=a.validation.max),a.validation?.step!==void 0&&(l.multipleOf=a.validation.step),a.validation?.pattern!==void 0&&(l.pattern=a.validation.pattern),a.required&&(r.push(a.key),a.type==="checkbox"&&(l.const=!0))}a.placeholder&&(l["x-placeholder"]=a.placeholder),a.validation?.options&&(l["x-options"]=a.validation.options);const i=S5(a.class,{colSpan:a.colSpan,colStart:a.colStart,rowSpan:a.rowSpan===Hd(a.type)?void 0:a.rowSpan,mColSpan:a.mColSpan});i&&(l["x-ui"]={...l["x-ui"],class:i}),a.condition&&(l["x-ui"]={...l["x-ui"],condition:a.condition}),a.hidden===!0&&(l["x-ui"]={...l["x-ui"],hidden:!0}),a.hideLabel===!0&&(l["x-hide-label"]=!0),a.richTextVariant&&(l["x-rich-text-variant"]=a.richTextVariant),a.markdownShowFormatting===!0&&(l["x-markdown-show-formatting"]=!0),a.textareaRows!==void 0&&(l["x-textarea-rows"]=a.textareaRows),a.textareaAutoHeight===!0&&(l["x-textarea-autoheight"]=!0),a.numberLayout&&a.numberLayout!=="default"&&(l["x-number-layout"]=a.numberLayout),a.numberSpinner===!1&&(l["x-number-spinner"]=!1),a.phoneOnlyCountries&&(l["x-phone-only-countries"]=a.phoneOnlyCountries),a.selectMultiselect===!0&&(l["x-select-multiselect"]=!0),a.fileMultiple===!0&&(l["x-file-multiple"]=!0),a.fileHeight!==void 0&&(l["x-file-height"]=a.fileHeight),a.fileAccept&&(l["x-file-accept"]=a.fileAccept),a.fileTheme&&(l["x-file-theme"]=a.fileTheme),a.fileShowIcon===!1&&(l["x-file-show-icon"]=!1),a.fileIcon&&(l["x-file-icon"]=a.fileIcon),a.dateEnableTime===!0&&(l["x-date-enable-time"]=!0),a.dateMin&&(l["x-date-min"]=a.dateMin),a.dateMax&&(l["x-date-max"]=a.dateMax),a.rangeMulti===!0&&(l["x-range-multi"]=!0),a.radioThin===!0&&(l["x-radio-thin"]=!0),a.radioHideRadio===!0&&(l["x-radio-hide-radio"]=!0),a.radioAlign&&(l["x-ui"]={...l["x-ui"],radioAlign:a.radioAlign}),a.radioInline===!0&&(l["x-radio-inline"]=!0),a.radioSize&&(l["x-radio-size"]=a.radioSize),a.radioTextAlign&&(l["x-ui"]={...l["x-ui"],radioTextAlign:a.radioTextAlign}),a.textIcon&&(l["x-text-icon"]=a.textIcon),a.textIconStart&&(l["x-text-icon-start"]=a.textIconStart),t[a.key]=l}const o={$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:t};return r.length>0&&(o.required=r),o}function bu(e,t){if(typeof t!="string")return t;const r=t.trim();switch(e.type){case"checkbox":case"toggle":return r.toLowerCase()==="true"?!0:r.toLowerCase()==="false"?!1:t;case"number":case"range":{if(!r)return t;const o=Number(r);return Number.isNaN(o)?t:o}default:return t}}function Fz(e,t){const r={};for(const o of e)if(!(o.type==="heading"||o.type==="divider")){if(t&&o.key in t){r[o.key]=bu(o,t[o.key]);continue}if(o.defaultValue!==void 0){r[o.key]=bu(o,o.defaultValue);continue}switch(o.type){case"checkbox":case"toggle":r[o.key]=!1;break;case"number":case"range":r[o.key]=o.validation?.min??0;break;default:r[o.key]=""}}return r}function zz(e,t){const r={};for(const o of e){if(o.type==="heading"||o.type==="divider"||o.type==="hidden"||o.hidden===!0)continue;const a=t[o.key];if(o.required&&(a==null||a==="")){r[o.key]=`${o.label} is required`;continue}if(a==null||a==="")continue;const l=o.validation;if(typeof a=="string"){if(l?.minLength!==void 0&&a.length<l.minLength){r[o.key]=`${o.label} must be at least ${l.minLength} characters`;continue}if(l?.maxLength!==void 0&&a.length>l.maxLength){r[o.key]=`${o.label} must be at most ${l.maxLength} characters`;continue}if(l?.pattern&&!new RegExp(l.pattern).test(a)){r[o.key]=`${o.label} format is invalid`;continue}}if(typeof a=="number"){if(l?.min!==void 0&&a<l.min){r[o.key]=`${o.label} must be at least ${l.min}`;continue}if(l?.max!==void 0&&a>l.max){r[o.key]=`${o.label} must be at most ${l.max}`;continue}}}return r}function Uz(e){return{fields:(0,n.computed)(()=>C5(e.value))}}const Hz=!0;var Ze=class{_type;_config;_condition;_hidden;_validations;_onUpdate;_class;_slots;_component;constructor(e,t={}){this._type=e,this._config=t}if(e){return this._condition=e,this}hidden(e=!0){return this._hidden=e,this}validate(e){return this._validations||(this._validations=[]),this._validations.push(e),this}onUpdate(e){return this._onUpdate=e,this}class(e){return this._class=this._class?`${this._class} ${e}`:e,this}required(e){return this._config.required=!0,e&&(this._config.requiredMessage=e),this}slot(e,t,r){return this._slots||(this._slots=[]),typeof e!="string"||t!==void 0&&typeof t!="string"?this._slots.push({component:e,props:t}):this._slots.push({name:e,component:t,props:r}),this}};function lt(e,t){return typeof e=="string"?{...t,label:e}:e??{}}const rt={text(e,t){return new Ze("text",lt(e,t))},email(e,t){return new Ze("email",lt(e,t))},password(e,t){return new Ze("password",lt(e,t))},number(e,t){return new Ze("number",lt(e,t))},tel(e,t){return new Ze("tel",lt(e,t))},url(e,t){return new Ze("url",lt(e,t))},date(e,t){return new Ze("date",lt(e,t))},time(e,t){return new Ze("time",lt(e,t))},datetime(e,t){return new Ze("datetime",lt(e,t))},textarea(e,t){return new Ze("textarea",lt(e,t))},richtext(e,t){return new Ze("richtext",lt(e,t))},json(e,t){const r=lt(e,t);return r.language||(r.language="json"),new Ze("json",r)},checkbox(e,t){return new Ze("checkbox",lt(e,t))},toggle(e,t){return new Ze("toggle",lt(e,t))},radio(e,t,r){if(typeof e=="string"){const o=e,a=t;return new Ze("radio",{...r,label:o,options:a})}return new Ze("radio",{...lt(t,r),options:e})},select(e,t,r){if(typeof e=="string"){const o=e,a=t;return new Ze("select",{...r,label:o,options:a})}return new Ze("select",{...lt(t,r),options:e})},multiselect(e,t,r){if(typeof e=="string"){const o=e,a=t;return new Ze("multiselect",{...r,label:o,options:a,multiple:!0})}return new Ze("multiselect",{...lt(t,r),options:e})},color(e,t){return new Ze("color",lt(e,t))},icon(e,t){return new Ze("icon",lt(e,t))},range(e,t){return new Ze("range",lt(e,t))},upload(e,t){return new Ze("upload",lt(e,t))},array(e,t,r){if(typeof e=="string"){const a=e,l=t;return new Ze("array",{...r??{},label:a,schema:l})}const o=e;return new Ze("array",{...lt(t,r),schema:o})},component(e,t={}){const r=new Ze("component",t);return r._component={component:e,props:t},r},display(e,t={}){const r=new Ze("display",t);return r._component={component:e,props:t},r}};var _u=class x5{_isSchema=!0;_label;_fields;_condition;_class;constructor(t,r){this._fields=t,this._label=r}if(t){return this._condition=t,this}class(t){return this._class=this._class?`${this._class} ${t}`:t,this}defaults(t){for(const[r,o]of Object.entries(t))this._fields[r]&&this._fields[r]._config.default===void 0&&(this._fields[r]._config.default=o);return this}getDefaults(){const t={};for(const[r,o]of Object.entries(this._fields))o._config.default!==void 0&&(t[r]=o._config.default);return t}toJSONSchema(){const t={},r=[];for(const[l,i]of Object.entries(this._fields)){const c=i._config,s=x5.getJSONSchemaType(i._type),u={type:s};if(c.label&&(u.title=c.label),c.helpText&&(u.description=c.helpText),c.default!==void 0&&(u.default=c.default),c.options){const f=c.options.map(m=>Lr(m)??m);i._type==="multiselect"?u.items={type:"string",enum:f}:u.enum=f}c.min!==void 0&&(u[s==="string"?"minLength":"minimum"]=c.min),c.max!==void 0&&(u[s==="string"?"maxLength":"maximum"]=c.max),i._type==="email"&&(u.format="email"),i._type==="url"&&(u.format="uri"),i._type==="date"&&(u.format="date"),i._type==="time"&&(u.format="time"),i._type==="datetime"&&(u.format="date-time");const d={};i._type!=="text"&&(d.fieldType=i._type),c.placeholder&&(d.placeholder=c.placeholder),c.disabled&&(d.disabled=c.disabled),c.readonly&&(d.readonly=c.readonly),c.autoheight&&(d.autoheight=c.autoheight),c.rows&&(d.rows=c.rows),c.cols&&(d.cols=c.cols),i._class&&(d.class=i._class),i._condition&&(d.condition=i._condition),i._hidden&&(d.hidden=!0),i._type==="array"&&(c.allowAdd!==void 0&&(d.allowAdd=c.allowAdd),c.allowDelete!==void 0&&(d.allowDelete=c.allowDelete)),i._component&&(d.component=typeof i._component.component=="string"?i._component.component:i._component.component.name||"CustomComponent",i._component.props&&(d.componentProps=i._component.props)),Object.keys(d).length>0&&(u["x-ui"]=d),t[l]=u,c.required===!0&&r.push(l)}const o={type:"object",properties:t};r.length>0&&(o.required=r),this._label&&(o.title=this._label);const a={};return this._condition&&(a.condition=this._condition),this._class&&(a.class=this._class),Object.keys(a).length>0&&(o["x-ui"]=a),o}static getJSONSchemaType(t){return{text:"string",email:"string",password:"string",number:"number",tel:"string",url:"string",date:"string",time:"string",datetime:"string",textarea:"string",richtext:"string",json:"object",checkbox:"boolean",toggle:"boolean",radio:"string",select:"string",multiselect:"array",array:"array"}[t]||"string"}};function Wz(e,t){if(typeof e=="string"){if(!t)throw new Error("Fields are required when providing a label");return new _u(t,e)}return new _u(e)}function jz(e){return e}function T5(e){const t={},r=new Set(e.required||[]);if(e.properties)for(const[a,l]of Object.entries(e.properties))t[a]=Yz(a,l,r.has(a),e);const o=new _u(t,e.title);return e["x-ui"]?.condition&&o.if(e["x-ui"].condition),e["x-ui"]?.class&&o.class(e["x-ui"].class),o}function Gz(e,t){const r=e.match(/^#\/(\$defs|definitions)\/(.+)$/);if(!r)return;const[,o,a]=r,l=o==="$defs"?t.$defs:t.definitions;return a?l?.[a]:void 0}function qz(e,t){const r=e.anyOf||e.oneOf;if(!r||r.length===0)return e;const o=r.filter(i=>i.type!=="null");if(o.length===1){const i=o[0];return{...i,title:e.title||i.title,description:e.description||i.description,default:e.default!==void 0?e.default:i.default,"x-ui":{...i["x-ui"],...e["x-ui"]}}}const a=["object","array","string","number","integer","boolean"],l=o.sort((i,c)=>a.indexOf(i.type||"string")-a.indexOf(c.type||"string"))[0];return{...l,title:e.title||l.title,description:e.description||l.description,default:e.default!==void 0?e.default:l.default,"x-ui":{...l["x-ui"],...e["x-ui"]}}}function Yz(e,t,r,o){let a=t;if(t.$ref){const d=Gz(t.$ref,o);d&&(a={...d,type:t.type??d.type,enum:t.enum??d.enum,title:t.title??d.title,description:t.description??d.description,default:t.default!==void 0?t.default:d.default,"x-ui":{...d["x-ui"],...t["x-ui"]}})}(a.anyOf||a.oneOf)&&(a=qz(a,o));const l=a["x-ui"]||{};let i=l.fieldType||a["x-field-type"]||t2(a);i==="select"&&a["x-select-multiselect"]&&(i="multiselect");const c=a["x-options"],s={};a.title&&(s.label=a.title),a.description&&(s.helpText=a.description),a.default!==void 0&&(s.default=a.default),r&&(s.required=!0),l.placeholder&&(s.placeholder=l.placeholder),a["x-placeholder"]&&(s.placeholder=a["x-placeholder"]),Zz(s,a),l.radioAlign!==void 0&&(s.align=l.radioAlign),l.radioTextAlign!==void 0&&(s.textAlign=l.radioTextAlign),l.disabled&&(s.disabled=l.disabled),l.readonly&&(s.readonly=l.readonly),l.autoheight&&(s.autoheight=l.autoheight),l.rows&&(s.rows=l.rows),l.cols&&(s.cols=l.cols),a.minimum!==void 0&&(s.min=a.minimum),a.maximum!==void 0&&(s.max=a.maximum),a.minLength!==void 0&&(s.min=a.minLength),a.maxLength!==void 0&&(s.max=a.maxLength);let u;switch(i){case"email":u=rt.email(s);break;case"password":u=rt.password(s);break;case"number":u=rt.number(s);break;case"tel":case"phone":u=rt.tel(s);break;case"url":u=rt.url(s);break;case"date":u=rt.date(s);break;case"time":u=rt.time(s);break;case"datetime":u=rt.datetime(s);break;case"textarea":u=rt.textarea(s);break;case"richtext":u=rt.richtext(s);break;case"json":u=rt.json(s);break;case"checkbox":u=rt.checkbox(s);break;case"toggle":u=rt.toggle(s);break;case"radio":u=rt.radio(c??a.enum??[],s);break;case"select":u=rt.select(c??a.enum??[],s);break;case"multiselect":u=rt.multiselect(c??a.enum??[],s);break;case"icon":u=rt.icon(s);break;case"file":case"upload":u=rt.upload(s);break;case"array":{const d={...s};l.allowAdd!==void 0&&(d.allowAdd=l.allowAdd),l.allowDelete!==void 0&&(d.allowDelete=l.allowDelete),a.items?.type&&(d.itemType=t2(a.items)),u=rt.array(a.title||e,void 0,d);break}case"display":u=rt.display(l.component||"div",l.componentProps||{});break;case"component":u=rt.component(l.component||"div",l.componentProps||{});break;default:u=rt.text(s)}return l.component&&i!=="component"&&i!=="display"&&(u._component={component:l.component,props:l.componentProps||{}}),a.const!==void 0&&u.validate(d=>d===a.const?!0:s.requiredMessage||"form.required"),l.class&&u.class(l.class),l.condition&&u.if(l.condition),l.hidden&&u.hidden(),u}function Zz(e,t){const r=t,o=(a,l)=>{r[l]!==void 0&&(e[a]=r[l])};r["x-radio-inline"]&&(e.inline=!0),r["x-radio-thin"]&&(e.thin=!0),r["x-radio-hide-radio"]&&(e.hideRadio=!0),o("align","x-radio-align"),o("textAlign","x-radio-text-align"),r["x-select-multiselect"]&&(e.multiple=!0),o("rows","x-textarea-rows"),o("autoheight","x-textarea-autoheight"),o("layout","x-number-layout"),r["x-number-spinner"]===!1&&(e.spinner=!1),o("onlyCountries","x-phone-only-countries"),r["x-range-multi"]&&(e.multiRange=!0),r["x-file-multiple"]&&(e.multiple=!0),o("height","x-file-height"),o("accept","x-file-accept"),o("theme","x-file-theme"),r["x-file-show-icon"]===!1&&(e.showIcon=!1),o("icon","x-file-icon"),r["x-date-enable-time"]&&(e.enableTime=!0),o("min","x-date-min"),o("max","x-date-max"),o("icon","x-text-icon"),o("iconStart","x-text-icon-start"),o("variant","x-rich-text-variant"),r["x-markdown-show-formatting"]&&(e.showFormatting=!0),r["x-hide-label"]===!0&&(e.hideLabel=!0)}function t2(e){if(e.format)switch(e.format){case"email":return"email";case"uri":return"url";case"date":return"date";case"time":return"time";case"date-time":return"datetime"}if(e.enum)return"select";switch(e.type){case"boolean":return"checkbox";case"number":case"integer":return"number";case"array":return"array";case"object":return"json";default:return"text"}}var Xz={class:"multi-step-form"},Kz={class:"step-progress"},Jz=["onClick"],Qz={class:"step-number"},eU={class:"step-label"},tU={key:0},nU={key:0,class:"step-title"},rU={key:1,class:"validation-errors"},oU={class:"step-navigation"},aU=["disabled"],lU={class:"step-counter"},iU=(0,n.defineComponent)({__name:"MultiStepForm",props:{schema:{},modelValue:{},currentStep:{},components:{},validateOnNext:{type:Boolean,default:!0}},emits:["update:modelValue","update:currentStep","stepChange","complete","validationError"],setup(e,{expose:t,emit:r}){const o=e,a=r,{$t:l}=nt(),i=(0,n.useSlots)(),c=(0,n.computed)(()=>Object.keys(i)),s=(0,n.ref)({...o.modelValue||{}}),u=(0,n.ref)(o.currentStep!=null&&o.currentStep!==""?o.currentStep:Object.keys(o.schema)[0]);let d=!1;(0,n.watch)(()=>o.modelValue,O=>{d||(s.value={...O||{}})},{deep:!0}),(0,n.watch)(s,O=>{d=!0,a("update:modelValue",O),setTimeout(()=>{d=!1},0)},{deep:!0}),(0,n.watch)(()=>o.currentStep,O=>{O!=null&&(u.value=O)}),(0,n.watch)(u,O=>{a("update:currentStep",O),a("stepChange",O)});function f(O,V){const I=V.split(".");let Z=O;for(const D of I)Z=Z?.[D];return Z}function m(O,V){if(!O)return!0;try{const I=Pa(O);if(I.length===0)return!0;let Z=!0,D=null;for(let C=0;C<I.length;C++){const U=I[C],R=f(V,U.field),{op:W,value:ne,connector:J}=U;let F=!1;switch(W){case"eq":F=R===ne;break;case"ne":F=R!==ne;break;case"gt":F=ne!=null&&R>ne;break;case"ge":F=ne!=null&&R>=ne;break;case"lt":F=ne!=null&&R<ne;break;case"le":F=ne!=null&&R<=ne;break;case"co":F=ne!=null&&String(R).includes(String(ne));break;case"sw":F=ne!=null&&String(R).startsWith(String(ne));break;case"ew":F=ne!=null&&String(R).endsWith(String(ne));break;case"pr":F=R!=null;break;default:F=!1}C===0?(Z=F,D=F):(J==="or"?Z=(D??!1)||F:J==="and"&&(Z=(D??!1)&&F),D=Z)}return Z}catch{return!0}}function p(O){return O._condition==null?!0:m(O._condition,s.value)}const h=(0,n.computed)(()=>Object.entries(o.schema).filter(([,O])=>p(O)).map(([O,V])=>({key:O,schema:V}))),v=(0,n.computed)(()=>h.value.findIndex(O=>O.key===u.value)),y=(0,n.computed)(()=>v.value===0),g=(0,n.computed)(()=>v.value===h.value.length-1),L=(0,n.computed)(()=>h.value[v.value]?.schema),b=(0,n.ref)({});function _(O){return O._hidden?!1:O._condition==null?!0:m(O._condition,s.value)}function w(O){const V=O.replace(/\[(\d+)\]/g,".$1");return f(s.value,V)}function E(O){return!!(O==null||typeof O=="string"&&O.trim()===""||Array.isArray(O)&&O.length===0)}function $(){if(!o.validateOnNext||L.value==null)return!0;const O={},V=L.value._fields;for(const[I,Z]of Object.entries(V)){if(Z._type==="display"||!_(Z))continue;const D=w(I),C=Z._config;if(C.required===!0&&E(D)){O[I]=`${typeof C.label=="string"?C.label:I} is required`;continue}if(Z._validations&&!E(D))for(const U of Z._validations){const R=U(D);if(R!==!0){O[I]=R;break}}}return b.value=O,Object.keys(O).length>0?(a("validationError",O),!1):!0}function k(O,V){return V._label!=null?V._label:O.split(/[._-]/).map(I=>I.charAt(0).toUpperCase()+I.slice(1)).join(" ")}function B(O){const V=h.value.findIndex(I=>I.key===O);if(V!==-1){if(V<v.value){u.value=O,b.value={};return}V>v.value&&!$()||(u.value=O)}}function N(){if($())if(g.value)a("complete");else{const O=v.value+1;u.value=h.value[O].key,b.value={}}}function M(){if(!y.value){const O=v.value-1;u.value=h.value[O].key,b.value={}}}return t({validateCurrentStep:$,stepErrors:b,nextStep:N,prevStep:M,goToStep:B,visibleSteps:h,activeStep:u,currentStepIndex:v,isFirstStep:y,isLastStep:g}),(O,V)=>((0,n.openBlock)(),(0,n.createElementBlock)("div",Xz,[(0,n.createElementVNode)("div",Kz,[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(h.value,(I,Z)=>((0,n.openBlock)(),(0,n.createElementBlock)("div",{key:I.key,class:(0,n.normalizeClass)(["step-indicator",{active:I.key===u.value,completed:Z<v.value}]),onClick:D=>B(I.key)},[(0,n.createElementVNode)("div",Qz,(0,n.toDisplayString)(Z+1),1),(0,n.createElementVNode)("div",eU,(0,n.toDisplayString)(k(I.key,I.schema)),1)],10,Jz))),128))]),L.value!=null?((0,n.openBlock)(),(0,n.createElementBlock)("div",tU,[L.value._label?((0,n.openBlock)(),(0,n.createElementBlock)("h2",nU,(0,n.toDisplayString)(L.value._label),1)):(0,n.createCommentVNode)("",!0),Object.keys(b.value).length>0?((0,n.openBlock)(),(0,n.createElementBlock)("div",rU,[(0,n.createElementVNode)("ul",null,[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(b.value,(I,Z)=>((0,n.openBlock)(),(0,n.createElementBlock)("li",{key:Z},(0,n.toDisplayString)(I),1))),128))])])):(0,n.createCommentVNode)("",!0),(0,n.renderSlot)(O.$slots,`step:${u.value}`,{schema:L.value,formData:s.value,stepKey:u.value,errors:b.value},()=>[(0,n.createVNode)(is,{modelValue:s.value,"onUpdate:modelValue":V[0]||(V[0]=I=>s.value=I),schema:L.value,components:e.components,errors:b.value},(0,n.createSlots)({_:2},[(0,n.renderList)(c.value,I=>({name:I,fn:(0,n.withCtx)(Z=>[(0,n.renderSlot)(O.$slots,I,(0,n.normalizeProps)((0,n.guardReactiveProps)(Z)),void 0,!0)])}))]),1032,["modelValue","schema","components","errors"])],!0)])):(0,n.createCommentVNode)("",!0),(0,n.createElementVNode)("div",oU,[(0,n.createElementVNode)("button",{type:"button",class:"btn-secondary",disabled:y.value,onClick:M},(0,n.toDisplayString)((0,n.unref)(l)("multiStep.previous")),9,aU),(0,n.createElementVNode)("div",lU,(0,n.toDisplayString)((0,n.unref)(l)("multiStep.step",{current:v.value+1,total:h.value.length})),1),(0,n.createElementVNode)("button",{type:"button",class:"btn-primary",onClick:N},(0,n.toDisplayString)(g.value?(0,n.unref)(l)("multiStep.complete"):(0,n.unref)(l)("multiStep.next")),1)])]))}}),sU=be(iU,[["__scopeId","data-v-7a55f4bb"]]);function cU(){return{steps:[],transitions:[]}}function uU(e){return!!e&&e.steps.length>1}function Ei(e,t){if(t!=null)return e.steps.find(r=>r.key===t)}function N5(e,t){return e.transitions.filter(r=>r.from===t)}function B5(e){const t=e.schema?.properties;return t&&typeof t=="object"?Object.entries(t):[]}function M5(e){if(!e)return!1;if(typeof e.autoAdvance=="boolean")return e.autoAdvance;const t=B5(e);if(t.length!==1)return!1;const[r,o]=t[0];if(!(Array.isArray(e.schema?.required)&&e.schema.required.includes(r)))return!1;const a=o?.["x-field-type"],l=a==="radio"||a==="select"||!a&&Array.isArray(o?.enum),i=o?.["x-field-type"]==="select"&&o?.["x-multiselect"]===!0;return l&&!i}function D5(e){if(!e)return null;const t=B5(e);return t.length===1?t[0][0]:null}function Si(e){return e.startId&&Ei(e,e.startId)?e.startId:e.steps[0]?.key}function ss(e,t,r){for(const o of N5(e,t))if(!o.condition||o.condition.trim()===""||td(o.condition,r))return o.to;return null}function dU(e,t,r){return ss(e,t,r)===null}function wu(e,t,r){const o=Si(e);if(!o||!t)return 0;const a=new Set;let l=o,i=0,c=0,s=!1;for(;l&&!a.has(l);)a.add(l),c++,s||(l===t?s=!0:i++),l=ss(e,l,r);return c<=1?s?100:0:Math.round(i/(c-1)*100)}function fU(e){const t={},r=[];for(const a of e.steps){const l=a.schema?.properties;l&&typeof l=="object"&&Object.assign(t,l);const i=a.schema?.required;if(Array.isArray(i))for(const c of i)r.includes(c)||r.push(c)}const o={type:"object",properties:t};return r.length&&(o.required=r),o}var mU={class:"form-flow-player"},pU={class:"ffp-stage"},hU={key:0,class:"ffp-title"},gU={key:1,class:"ffp-empty"},vU={class:"ffp-nav flex flex-center gap-1"},LU={key:0,class:"ffp-counter flex-center round bg-primary-10 color-primary px-075 txt13 medium tabular-nums"},yU=(0,n.defineComponent)({__name:"FormFlowPlayer",props:{structure:{},modelValue:{},components:{},formName:{default:""},animated:{type:Boolean,default:!0},autoAdvance:{type:Boolean,default:!0},autoAdvanceDelay:{default:200},redirect:{type:Boolean,default:!0},hideTitle:{type:Boolean,default:!1},hideCounter:{type:Boolean,default:!1},onComplete:{}},emits:["update:modelValue","stepChange","progress","stepEnter","formComplete","redirect","complete"],setup(e,{expose:t,emit:r}){const o=e,a=r,{$t:l}=nt(),i=(0,n.useSlots)(),c=(0,n.computed)(()=>Object.keys(i).filter(C=>C!=="nav"&&C!=="primary-label"&&C!=="step"&&C!=="empty")),s=(0,n.ref)("next"),u=(0,n.computed)(()=>o.animated?s.value==="prev"?"ffp-slide-prev":"ffp-slide-next":""),d=(0,n.ref)({...o.modelValue||{}});(0,n.watch)(d,C=>a("update:modelValue",C),{deep:!0}),(0,n.watch)(()=>o.modelValue,C=>{C&&C!==d.value&&(d.value={...C})},{deep:!0});const f=(0,n.ref)(Si(o.structure)),m=(0,n.ref)([]);(0,n.watch)(()=>o.structure,()=>{f.value=Si(o.structure),m.value=[]},{deep:!0}),(0,n.watch)(f,C=>{C&&a("stepChange",C)},{immediate:!0});const p=(0,n.computed)(()=>Ei(o.structure,f.value??null));function h(C){const U=Ei(o.structure,C),R=wu(o.structure,C,d.value),W=m.value.length+1,ne=R>0?Math.round(W/R*100):null;return{formName:o.formName,stepKey:C,stepTitle:U?.title??"",stepIndex:W,totalSteps:ne,skipSubmit:U?.skipSubmit??!1,formData:{...d.value}}}(0,n.watch)(f,(C,U)=>{C&&C!==U&&a("stepEnter",h(C))},{immediate:!0});const v=(0,n.computed)(()=>{const C=p.value;return C?T5(C.schema):null}),y=(0,n.computed)(()=>f.value?ss(o.structure,f.value,d.value):null),g=(0,n.computed)(()=>y.value===null),L=(0,n.computed)(()=>m.value.length>0),b=(0,n.computed)(()=>wu(o.structure,f.value,d.value));(0,n.watch)(b,C=>a("progress",C),{immediate:!0});const _=(0,n.ref)(null),w=(0,n.ref)(!1);function E(C){_.value=C}function $(){return _.value?.validate()??!0}async function k(){if(!$())return;if(g.value){w.value=!0;const U=p.value;try{U?.skipSubmit||await o.onComplete?.({...d.value}),f.value&&a("formComplete",h(f.value)),a("complete",{...d.value});const R=U?.redirectUrl?.trim();R&&(a("redirect",R),o.redirect&&typeof window<"u"&&window.location.assign(R))}finally{w.value=!1}return}const C=y.value;C&&f.value&&(s.value="next",m.value.push(f.value),f.value=C)}const B=(0,n.computed)(()=>o.autoAdvance&&M5(p.value)),N=(0,n.computed)(()=>D5(p.value));let M=null;const O=(0,n.ref)(null);function V(){M&&(clearTimeout(M),M=null)}const I=(0,n.ref)(N.value?d.value[N.value]:void 0);(0,n.watch)(f,()=>{V(),O.value=null,I.value=N.value?d.value[N.value]:void 0},{flush:"sync"}),(0,n.watch)(()=>N.value?d.value[N.value]:void 0,C=>{!B.value||g.value||O.value!==f.value&&(!(C!=null&&C!=="")||C===I.value||(V(),M=setTimeout(()=>{!B.value||g.value||(O.value=f.value??null,k())},o.autoAdvanceDelay)))});function Z(){const C=m.value.pop();C&&(s.value="prev",f.value=C)}const D=(0,n.computed)(()=>m.value.length+1);return t({formData:d,currentKey:f,nextKey:y,isTerminal:g,progress:b,validateStep:$}),(C,U)=>((0,n.openBlock)(),(0,n.createElementBlock)("div",mU,[(0,n.createElementVNode)("div",pU,[(0,n.createVNode)(n.Transition,{name:u.value,mode:"out-in"},{default:(0,n.withCtx)(()=>[p.value?((0,n.openBlock)(),(0,n.createElementBlock)("div",{key:f.value,class:"ffp-step"},[!e.hideTitle&&p.value.title?((0,n.openBlock)(),(0,n.createElementBlock)("h2",hU,(0,n.toDisplayString)(p.value.title),1)):(0,n.createCommentVNode)("",!0),(0,n.renderSlot)(C.$slots,"step",{step:p.value,formData:d.value,stepKey:f.value,schema:v.value,setFormRef:E},()=>[v.value?((0,n.openBlock)(),(0,n.createBlock)(is,{key:0,ref_key:"formRef",ref:_,modelValue:d.value,"onUpdate:modelValue":U[0]||(U[0]=R=>d.value=R),schema:v.value,components:e.components},(0,n.createSlots)({_:2},[(0,n.renderList)(c.value,R=>({name:R,fn:(0,n.withCtx)(W=>[(0,n.renderSlot)(C.$slots,R,(0,n.normalizeProps)((0,n.guardReactiveProps)(W)),void 0,!0)])}))]),1032,["modelValue","schema","components"])):(0,n.createCommentVNode)("",!0)],!0)])):((0,n.openBlock)(),(0,n.createElementBlock)("div",gU,[(0,n.renderSlot)(C.$slots,"empty",{},()=>[(0,n.createTextVNode)((0,n.toDisplayString)((0,n.unref)(l)?.("multiStep.empty")??"No steps to display."),1)],!0)]))]),_:3},8,["name"])]),(0,n.renderSlot)(C.$slots,"nav",{canGoBack:L.value,isTerminal:g.value,submitting:w.value,goBack:Z,goPrimary:k,stepPosition:D.value,progress:b.value,currentKey:f.value,autoAdvances:B.value},()=>[(0,n.createElementVNode)("div",vU,[(0,n.createVNode)(se,{class:"ffp-nav-btn",flat:"",icon:"arrow_back",value:(0,n.unref)(l)?.("multiStep.previous")??"Back",disabled:!L.value,onClick:Z},null,8,["value","disabled"]),e.hideCounter?(0,n.createCommentVNode)("",!0):((0,n.openBlock)(),(0,n.createElementBlock)("span",LU,(0,n.toDisplayString)(D.value),1)),g.value?((0,n.openBlock)(),(0,n.createBlock)(se,{key:1,class:"ffp-nav-btn",value:(0,n.unref)(l)?.("multiStep.complete")??"Submit",loading:w.value,onClick:k},{default:(0,n.withCtx)(()=>[(0,n.renderSlot)(C.$slots,"primary-label",{isTerminal:!0},()=>[(0,n.createTextVNode)((0,n.toDisplayString)((0,n.unref)(l)?.("multiStep.complete")??"Submit"),1)],!0)]),_:3},8,["value","loading"])):((0,n.openBlock)(),(0,n.createBlock)(se,{key:2,class:"ffp-nav-btn","icon-end":"arrow_forward",value:(0,n.unref)(l)?.("multiStep.next")??"Next",disabled:w.value,onClick:k},{default:(0,n.withCtx)(()=>[(0,n.renderSlot)(C.$slots,"primary-label",{isTerminal:!1},()=>[(0,n.createTextVNode)((0,n.toDisplayString)((0,n.unref)(l)?.("multiStep.next")??"Next"),1)],!0)]),_:3},8,["value","disabled"]))])],!0)]))}}),bU=be(yU,[["__scopeId","data-v-f019de9f"]]);function cn(e){var t;return((t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Fn(e){return cn(e).getComputedStyle(e)}var n2=Math.min,$a=Math.max,Ci=Math.round;function A5(e){const t=Fn(e);let r=parseFloat(t.width),o=parseFloat(t.height);const a=e.offsetWidth,l=e.offsetHeight,i=Ci(r)!==a||Ci(o)!==l;return i&&(r=a,o=l),{width:r,height:o,fallback:i}}function Sr(e){return I5(e)?(e.nodeName||"").toLowerCase():""}var Tl;function P5(){if(Tl)return Tl;const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?(Tl=e.brands.map((t=>t.brand+"/"+t.version)).join(" "),Tl):navigator.userAgent}function zn(e){return e instanceof cn(e).HTMLElement}function wr(e){return e instanceof cn(e).Element}function I5(e){return e instanceof cn(e).Node}function r2(e){return typeof ShadowRoot>"u"?!1:e instanceof cn(e).ShadowRoot||e instanceof ShadowRoot}function cs(e){const{overflow:t,overflowX:r,overflowY:o,display:a}=Fn(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+r)&&!["inline","contents"].includes(a)}function _U(e){return["table","td","th"].includes(Sr(e))}function ku(e){const t=/firefox/i.test(P5()),r=Fn(e),o=r.backdropFilter||r.WebkitBackdropFilter;return r.transform!=="none"||r.perspective!=="none"||!!o&&o!=="none"||t&&r.willChange==="filter"||t&&!!r.filter&&r.filter!=="none"||["transform","perspective"].some((a=>r.willChange.includes(a)))||["paint","layout","strict","content"].some((a=>{const l=r.contain;return l!=null&&l.includes(a)}))}function V5(){return!/^((?!chrome|android).)*safari/i.test(P5())}function jd(e){return["html","body","#document"].includes(Sr(e))}function O5(e){return wr(e)?e:e.contextElement}var R5={x:1,y:1};function Bo(e){const t=O5(e);if(!zn(t))return R5;const r=t.getBoundingClientRect(),{width:o,height:a,fallback:l}=A5(t);let i=(l?Ci(r.width):r.width)/o,c=(l?Ci(r.height):r.height)/a;return i&&Number.isFinite(i)||(i=1),c&&Number.isFinite(c)||(c=1),{x:i,y:c}}function Ua(e,t,r,o){var a,l;t===void 0&&(t=!1),r===void 0&&(r=!1);const i=e.getBoundingClientRect(),c=O5(e);let s=R5;t&&(o?wr(o)&&(s=Bo(o)):s=Bo(e));const u=c?cn(c):window,d=!V5()&&r;let f=(i.left+(d&&((a=u.visualViewport)==null?void 0:a.offsetLeft)||0))/s.x,m=(i.top+(d&&((l=u.visualViewport)==null?void 0:l.offsetTop)||0))/s.y,p=i.width/s.x,h=i.height/s.y;if(c){const v=cn(c),y=o&&wr(o)?cn(o):o;let g=v.frameElement;for(;g&&o&&y!==v;){const L=Bo(g),b=g.getBoundingClientRect(),_=getComputedStyle(g);b.x+=(g.clientLeft+parseFloat(_.paddingLeft))*L.x,b.y+=(g.clientTop+parseFloat(_.paddingTop))*L.y,f*=L.x,m*=L.y,p*=L.x,h*=L.y,f+=b.x,m+=b.y,g=cn(g).frameElement}}return{width:p,height:h,top:m,right:f+p,bottom:m+h,left:f,x:f,y:m}}function kr(e){return((I5(e)?e.ownerDocument:e.document)||window.document).documentElement}function us(e){return wr(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function F5(e){return Ua(kr(e)).left+us(e).scrollLeft}function Ha(e){if(Sr(e)==="html")return e;const t=e.assignedSlot||e.parentNode||r2(e)&&e.host||kr(e);return r2(t)?t.host:t}function z5(e){const t=Ha(e);return jd(t)?t.ownerDocument.body:zn(t)&&cs(t)?t:z5(t)}function xi(e,t){var r;t===void 0&&(t=[]);const o=z5(e),a=o===((r=e.ownerDocument)==null?void 0:r.body),l=cn(o);return a?t.concat(l,l.visualViewport||[],cs(o)?o:[]):t.concat(o,xi(o))}function o2(e,t,r){return t==="viewport"?Ur((function(o,a){const l=cn(o),i=kr(o),c=l.visualViewport;let s=i.clientWidth,u=i.clientHeight,d=0,f=0;if(c){s=c.width,u=c.height;const m=V5();(m||!m&&a==="fixed")&&(d=c.offsetLeft,f=c.offsetTop)}return{width:s,height:u,x:d,y:f}})(e,r)):wr(t)?Ur((function(o,a){const l=Ua(o,!0,a==="fixed"),i=l.top+o.clientTop,c=l.left+o.clientLeft,s=zn(o)?Bo(o):{x:1,y:1};return{width:o.clientWidth*s.x,height:o.clientHeight*s.y,x:c*s.x,y:i*s.y}})(t,r)):Ur((function(o){const a=kr(o),l=us(o),i=o.ownerDocument.body,c=$a(a.scrollWidth,a.clientWidth,i.scrollWidth,i.clientWidth),s=$a(a.scrollHeight,a.clientHeight,i.scrollHeight,i.clientHeight);let u=-l.scrollLeft+F5(o);const d=-l.scrollTop;return Fn(i).direction==="rtl"&&(u+=$a(a.clientWidth,i.clientWidth)-c),{width:c,height:s,x:u,y:d}})(kr(e)))}function a2(e){return zn(e)&&Fn(e).position!=="fixed"?e.offsetParent:null}function l2(e){const t=cn(e);let r=a2(e);for(;r&&_U(r)&&Fn(r).position==="static";)r=a2(r);return r&&(Sr(r)==="html"||Sr(r)==="body"&&Fn(r).position==="static"&&!ku(r))?t:r||(function(o){let a=Ha(o);for(;zn(a)&&!jd(a);){if(ku(a))return a;a=Ha(a)}return null})(e)||t}function wU(e,t,r){const o=zn(t),a=kr(t),l=Ua(e,!0,r==="fixed",t);let i={scrollLeft:0,scrollTop:0};const c={x:0,y:0};if(o||!o&&r!=="fixed")if((Sr(t)!=="body"||cs(a))&&(i=us(t)),zn(t)){const s=Ua(t,!0);c.x=s.x+t.clientLeft,c.y=s.y+t.clientTop}else a&&(c.x=F5(a));return{x:l.left+i.scrollLeft-c.x,y:l.top+i.scrollTop-c.y,width:l.width,height:l.height}}var kU={getClippingRect:function(e){let{element:t,boundary:r,rootBoundary:o,strategy:a}=e;const l=[...r==="clippingAncestors"?(function(s,u){const d=u.get(s);if(d)return d;let f=xi(s).filter((v=>wr(v)&&Sr(v)!=="body")),m=null;const p=Fn(s).position==="fixed";let h=p?Ha(s):s;for(;wr(h)&&!jd(h);){const v=Fn(h),y=ku(h);(p?y||m:y||v.position!=="static"||!m||!["absolute","fixed"].includes(m.position))?m=v:f=f.filter((g=>g!==h)),h=Ha(h)}return u.set(s,f),f})(t,this._c):[].concat(r),o],i=l[0],c=l.reduce(((s,u)=>{const d=o2(t,u,a);return s.top=$a(d.top,s.top),s.right=n2(d.right,s.right),s.bottom=n2(d.bottom,s.bottom),s.left=$a(d.left,s.left),s}),o2(t,i,a));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:r,strategy:o}=e;const a=zn(r),l=kr(r);if(r===l)return t;let i={scrollLeft:0,scrollTop:0},c={x:1,y:1};const s={x:0,y:0};if((a||!a&&o!=="fixed")&&((Sr(r)!=="body"||cs(l))&&(i=us(r)),zn(r))){const u=Ua(r);c=Bo(r),s.x=u.x+r.clientLeft,s.y=u.y+r.clientTop}return{width:t.width*c.x,height:t.height*c.y,x:t.x*c.x-i.scrollLeft*c.x+s.x,y:t.y*c.y-i.scrollTop*c.y+s.y}},isElement:wr,getDimensions:function(e){return zn(e)?A5(e):e.getBoundingClientRect()},getOffsetParent:l2,getDocumentElement:kr,getScale:Bo,async getElementRects(e){let{reference:t,floating:r,strategy:o}=e;const a=this.getOffsetParent||l2,l=this.getDimensions;return{reference:wU(t,await a(r),o),floating:{x:0,y:0,...await l(r)}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>Fn(e).direction==="rtl"},$U=(e,t,r)=>{const o=new Map,a={platform:kU,...r},l={...a.platform,_c:o};return Gm(e,t,{...a,platform:l})};function U5(e,t){for(const r in t)Object.prototype.hasOwnProperty.call(t,r)&&(typeof t[r]=="object"&&e[r]?U5(e[r],t[r]):e[r]=t[r])}var _n={disabled:!1,distance:5,skidding:0,container:"body",boundary:void 0,instantMove:!1,disposeTimeout:150,popperTriggers:[],strategy:"absolute",preventOverflow:!0,flip:!0,shift:!0,overflowPadding:0,arrowPadding:0,arrowOverflow:!0,autoHideOnMousedown:!1,themes:{tooltip:{placement:"top",triggers:["hover","focus","touch"],hideTriggers:e=>[...e,"click"],delay:{show:200,hide:0},handleResize:!1,html:!1,loadingContent:"..."},dropdown:{placement:"bottom",triggers:["click"],delay:0,handleResize:!0,autoHide:!0},menu:{$extend:"dropdown",triggers:["hover","focus"],popperTriggers:["hover"],delay:{show:0,hide:400}}}};function Wa(e,t){let r=_n.themes[e]||{},o;do o=r[t],typeof o>"u"?r.$extend?r=_n.themes[r.$extend]||{}:(r=null,o=_n[t]):r=null;while(r);return o}function EU(e){const t=[e];let r=_n.themes[e]||{};do r.$extend&&!r.$resetCss?(t.push(r.$extend),r=_n.themes[r.$extend]||{}):r=null;while(r);return t.map(o=>`v-popper--theme-${o}`)}function i2(e){const t=[e];let r=_n.themes[e]||{};do r.$extend?(t.push(r.$extend),r=_n.themes[r.$extend]||{}):r=null;while(r);return t}var Ro=!1;if(typeof window<"u"){Ro=!1;try{const e=Object.defineProperty({},"passive",{get(){Ro=!0}});window.addEventListener("test",null,e)}catch{}}var H5=!1;typeof window<"u"&&typeof navigator<"u"&&(H5=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream);var W5=["auto","top","bottom","left","right"].reduce((e,t)=>e.concat([t,`${t}-start`,`${t}-end`]),[]),s2={hover:"mouseenter",focus:"focus",click:"click",touch:"touchstart",pointer:"pointerdown"},c2={hover:"mouseleave",focus:"blur",click:"click",touch:"touchend",pointer:"pointerup"};function u2(e,t){const r=e.indexOf(t);r!==-1&&e.splice(r,1)}function ic(){return new Promise(e=>requestAnimationFrame(()=>{requestAnimationFrame(e)}))}var Ln=[],Ar=null,d2={};function f2(e){let t=d2[e];return t||(t=d2[e]=[]),t}var $u=function(){};typeof window<"u"&&($u=window.Element);function ze(e){return function(t){return Wa(t.theme,e)}}var sc="__floating-vue__popper",j5=()=>(0,n.defineComponent)({name:"VPopper",provide(){return{[sc]:{parentPopper:this}}},inject:{[sc]:{default:null}},props:{theme:{type:String,required:!0},targetNodes:{type:Function,required:!0},referenceNode:{type:Function,default:null},popperNode:{type:Function,required:!0},shown:{type:Boolean,default:!1},showGroup:{type:String,default:null},ariaId:{default:null},disabled:{type:Boolean,default:ze("disabled")},positioningDisabled:{type:Boolean,default:ze("positioningDisabled")},placement:{type:String,default:ze("placement"),validator:e=>W5.includes(e)},delay:{type:[String,Number,Object],default:ze("delay")},distance:{type:[Number,String],default:ze("distance")},skidding:{type:[Number,String],default:ze("skidding")},triggers:{type:Array,default:ze("triggers")},showTriggers:{type:[Array,Function],default:ze("showTriggers")},hideTriggers:{type:[Array,Function],default:ze("hideTriggers")},popperTriggers:{type:Array,default:ze("popperTriggers")},popperShowTriggers:{type:[Array,Function],default:ze("popperShowTriggers")},popperHideTriggers:{type:[Array,Function],default:ze("popperHideTriggers")},container:{type:[String,Object,$u,Boolean],default:ze("container")},boundary:{type:[String,$u],default:ze("boundary")},strategy:{type:String,validator:e=>["absolute","fixed"].includes(e),default:ze("strategy")},autoHide:{type:[Boolean,Function],default:ze("autoHide")},handleResize:{type:Boolean,default:ze("handleResize")},instantMove:{type:Boolean,default:ze("instantMove")},eagerMount:{type:Boolean,default:ze("eagerMount")},popperClass:{type:[String,Array,Object],default:ze("popperClass")},computeTransformOrigin:{type:Boolean,default:ze("computeTransformOrigin")},autoMinSize:{type:Boolean,default:ze("autoMinSize")},autoSize:{type:[Boolean,String],default:ze("autoSize")},autoMaxSize:{type:Boolean,default:ze("autoMaxSize")},autoBoundaryMaxSize:{type:Boolean,default:ze("autoBoundaryMaxSize")},preventOverflow:{type:Boolean,default:ze("preventOverflow")},overflowPadding:{type:[Number,String],default:ze("overflowPadding")},arrowPadding:{type:[Number,String],default:ze("arrowPadding")},arrowOverflow:{type:Boolean,default:ze("arrowOverflow")},flip:{type:Boolean,default:ze("flip")},shift:{type:Boolean,default:ze("shift")},shiftCrossAxis:{type:Boolean,default:ze("shiftCrossAxis")},noAutoFocus:{type:Boolean,default:ze("noAutoFocus")},disposeTimeout:{type:Number,default:ze("disposeTimeout")}},emits:{show:()=>!0,hide:()=>!0,"update:shown":e=>!0,"apply-show":()=>!0,"apply-hide":()=>!0,"close-group":()=>!0,"close-directive":()=>!0,"auto-hide":()=>!0,resize:()=>!0},data(){return{isShown:!1,isMounted:!1,skipTransition:!1,classes:{showFrom:!1,showTo:!1,hideFrom:!1,hideTo:!0},result:{x:0,y:0,placement:"",strategy:this.strategy,arrow:{x:0,y:0,centerOffset:0},transformOrigin:null},randomId:`popper_${[Math.random(),Date.now()].map(e=>e.toString(36).substring(2,10)).join("_")}`,shownChildren:new Set,lastAutoHide:!0,pendingHide:!1,containsGlobalTarget:!1,isDisposed:!0,mouseDownContains:!1}},computed:{popperId(){return this.ariaId!=null?this.ariaId:this.randomId},shouldMountContent(){return this.eagerMount||this.isMounted},slotData(){return{popperId:this.popperId,isShown:this.isShown,shouldMountContent:this.shouldMountContent,skipTransition:this.skipTransition,autoHide:typeof this.autoHide=="function"?this.lastAutoHide:this.autoHide,show:this.show,hide:this.hide,handleResize:this.handleResize,onResize:this.onResize,classes:{...this.classes,popperClass:this.popperClass},result:this.positioningDisabled?null:this.result,attrs:this.$attrs}},parentPopper(){var e;return(e=this[sc])==null?void 0:e.parentPopper},hasPopperShowTriggerHover(){var e,t;return((e=this.popperTriggers)==null?void 0:e.includes("hover"))||((t=this.popperShowTriggers)==null?void 0:t.includes("hover"))}},watch:{shown:"$_autoShowHide",disabled(e){e?this.dispose():this.init()},async container(){this.isShown&&(this.$_ensureTeleport(),await this.$_computePosition())},triggers:{handler:"$_refreshListeners",deep:!0},positioningDisabled:"$_refreshListeners",...["placement","distance","skidding","boundary","strategy","overflowPadding","arrowPadding","preventOverflow","shift","shiftCrossAxis","flip"].reduce((e,t)=>(e[t]="$_computePosition",e),{})},created(){this.autoMinSize,this.autoMaxSize},mounted(){this.init(),this.$_detachPopperNode()},activated(){this.$_autoShowHide()},deactivated(){this.hide()},beforeUnmount(){this.dispose()},methods:{show({event:e=null,skipDelay:t=!1,force:r=!1}={}){var o,a;(o=this.parentPopper)!=null&&o.lockedChild&&this.parentPopper.lockedChild!==this||(this.pendingHide=!1,(r||!this.disabled)&&(((a=this.parentPopper)==null?void 0:a.lockedChild)===this&&(this.parentPopper.lockedChild=null),this.$_scheduleShow(e,t),this.$emit("show"),this.$_showFrameLocked=!0,requestAnimationFrame(()=>{this.$_showFrameLocked=!1})),this.$emit("update:shown",!0))},hide({event:e=null,skipDelay:t=!1}={}){var r;if(!this.$_hideInProgress){if(this.shownChildren.size>0){this.pendingHide=!0;return}if(this.hasPopperShowTriggerHover&&this.$_isAimingPopper()){this.parentPopper&&(this.parentPopper.lockedChild=this,clearTimeout(this.parentPopper.lockedChildTimer),this.parentPopper.lockedChildTimer=setTimeout(()=>{this.parentPopper.lockedChild===this&&(this.parentPopper.lockedChild.hide({skipDelay:t}),this.parentPopper.lockedChild=null)},1e3));return}((r=this.parentPopper)==null?void 0:r.lockedChild)===this&&(this.parentPopper.lockedChild=null),this.pendingHide=!1,this.$_scheduleHide(e,t),this.$emit("hide"),this.$emit("update:shown",!1)}},init(){var e;this.isDisposed&&(this.isDisposed=!1,this.isMounted=!1,this.$_events=[],this.$_preventShow=!1,this.$_referenceNode=((e=this.referenceNode)==null?void 0:e.call(this))??this.$el,this.$_targetNodes=this.targetNodes().filter(t=>t.nodeType===t.ELEMENT_NODE),this.$_popperNode=this.popperNode(),this.$_innerNode=this.$_popperNode.querySelector(".v-popper__inner"),this.$_arrowNode=this.$_popperNode.querySelector(".v-popper__arrow-container"),this.$_swapTargetAttrs("title","data-original-title"),this.$_detachPopperNode(),this.triggers.length&&this.$_addEventListeners(),this.shown&&this.show())},dispose(){this.isDisposed||(this.isDisposed=!0,this.$_removeEventListeners(),this.hide({skipDelay:!0}),this.$_detachPopperNode(),this.isMounted=!1,this.isShown=!1,this.$_updateParentShownChildren(!1),this.$_swapTargetAttrs("data-original-title","title"))},async onResize(){this.isShown&&(await this.$_computePosition(),this.$emit("resize"))},async $_computePosition(){if(this.isDisposed||this.positioningDisabled)return;const e={strategy:this.strategy,middleware:[]};(this.distance||this.skidding)&&e.middleware.push(Zm({mainAxis:this.distance,crossAxis:this.skidding}));const t=this.placement.startsWith("auto");if(t?e.middleware.push(qm({alignment:this.placement.split("-")[1]??""})):e.placement=this.placement,this.preventOverflow&&(this.shift&&e.middleware.push(Xm({padding:this.overflowPadding,boundary:this.boundary,crossAxis:this.shiftCrossAxis})),!t&&this.flip&&e.middleware.push(Ym({padding:this.overflowPadding,boundary:this.boundary}))),e.middleware.push(ok({element:this.$_arrowNode,padding:this.arrowPadding})),this.arrowOverflow&&e.middleware.push({name:"arrowOverflow",fn:({placement:o,rects:a,middlewareData:l})=>{let i;const{centerOffset:c}=l.arrow;return o.startsWith("top")||o.startsWith("bottom")?i=Math.abs(c)>a.reference.width/2:i=Math.abs(c)>a.reference.height/2,{data:{overflow:i}}}}),this.autoMinSize||this.autoSize){const o=this.autoSize?this.autoSize:this.autoMinSize?"min":null;e.middleware.push({name:"autoSize",fn:({rects:a,placement:l,middlewareData:i})=>{var c;if((c=i.autoSize)!=null&&c.skip)return{};let s,u;return l.startsWith("top")||l.startsWith("bottom")?s=a.reference.width:u=a.reference.height,this.$_innerNode.style[o==="min"?"minWidth":o==="max"?"maxWidth":"width"]=s!=null?`${s}px`:null,this.$_innerNode.style[o==="min"?"minHeight":o==="max"?"maxHeight":"height"]=u!=null?`${u}px`:null,{data:{skip:!0},reset:{rects:!0}}}})}(this.autoMaxSize||this.autoBoundaryMaxSize)&&(this.$_innerNode.style.maxWidth=null,this.$_innerNode.style.maxHeight=null,e.middleware.push(sk({boundary:this.boundary,padding:this.overflowPadding,apply:({availableWidth:o,availableHeight:a})=>{this.$_innerNode.style.maxWidth=o!=null?`${o}px`:null,this.$_innerNode.style.maxHeight=a!=null?`${a}px`:null}})));const r=await $U(this.$_referenceNode,this.$_popperNode,e);Object.assign(this.result,{x:r.x,y:r.y,placement:r.placement,strategy:r.strategy,arrow:{...r.middlewareData.arrow,...r.middlewareData.arrowOverflow}})},$_scheduleShow(e,t=!1){if(this.$_updateParentShownChildren(!0),this.$_hideInProgress=!1,clearTimeout(this.$_scheduleTimer),Ar&&this.instantMove&&Ar.instantMove&&Ar!==this.parentPopper){Ar.$_applyHide(!0),this.$_applyShow(!0);return}t?this.$_applyShow():this.$_scheduleTimer=setTimeout(this.$_applyShow.bind(this),this.$_computeDelay("show"))},$_scheduleHide(e,t=!1){if(this.shownChildren.size>0){this.pendingHide=!0;return}this.$_updateParentShownChildren(!1),this.$_hideInProgress=!0,clearTimeout(this.$_scheduleTimer),this.isShown&&(Ar=this),t?this.$_applyHide():this.$_scheduleTimer=setTimeout(this.$_applyHide.bind(this),this.$_computeDelay("hide"))},$_computeDelay(e){const t=this.delay;return parseInt(t&&t[e]||t||0)},async $_applyShow(e=!1){clearTimeout(this.$_disposeTimer),clearTimeout(this.$_scheduleTimer),this.skipTransition=e,!this.isShown&&(this.$_ensureTeleport(),await ic(),await this.$_computePosition(),await this.$_applyShowEffect(),this.positioningDisabled||this.$_registerEventListeners([...xi(this.$_referenceNode),...xi(this.$_popperNode)],"scroll",()=>{this.$_computePosition()}))},async $_applyShowEffect(){if(this.$_hideInProgress)return;if(this.computeTransformOrigin){const t=this.$_referenceNode.getBoundingClientRect(),r=this.$_popperNode.querySelector(".v-popper__wrapper"),o=r.parentNode.getBoundingClientRect(),a=t.x+t.width/2-(o.left+r.offsetLeft),l=t.y+t.height/2-(o.top+r.offsetTop);this.result.transformOrigin=`${a}px ${l}px`}this.isShown=!0,this.$_applyAttrsToTarget({"aria-describedby":this.popperId,"data-popper-shown":""});const e=this.showGroup;if(e){let t;for(let r=0;r<Ln.length;r++)t=Ln[r],t.showGroup!==e&&(t.hide(),t.$emit("close-group"))}Ln.push(this),document.body.classList.add("v-popper--some-open");for(const t of i2(this.theme))f2(t).push(this),document.body.classList.add(`v-popper--some-open--${t}`);this.$emit("apply-show"),this.classes.showFrom=!0,this.classes.showTo=!1,this.classes.hideFrom=!1,this.classes.hideTo=!1,await ic(),this.classes.showFrom=!1,this.classes.showTo=!0,this.noAutoFocus||this.$_popperNode.focus()},async $_applyHide(e=!1){if(this.shownChildren.size>0){this.pendingHide=!0,this.$_hideInProgress=!1;return}if(clearTimeout(this.$_scheduleTimer),!this.isShown)return;this.skipTransition=e,u2(Ln,this),Ln.length===0&&document.body.classList.remove("v-popper--some-open");for(const r of i2(this.theme)){const o=f2(r);u2(o,this),o.length===0&&document.body.classList.remove(`v-popper--some-open--${r}`)}Ar===this&&(Ar=null),this.isShown=!1,this.$_applyAttrsToTarget({"aria-describedby":void 0,"data-popper-shown":void 0}),clearTimeout(this.$_disposeTimer);const t=this.disposeTimeout;t!==null&&(this.$_disposeTimer=setTimeout(()=>{this.$_popperNode&&(this.$_detachPopperNode(),this.isMounted=!1)},t)),this.$_removeEventListeners("scroll"),this.$emit("apply-hide"),this.classes.showFrom=!1,this.classes.showTo=!1,this.classes.hideFrom=!0,this.classes.hideTo=!1,await ic(),this.classes.hideFrom=!1,this.classes.hideTo=!0},$_autoShowHide(){this.shown?this.show():this.hide()},$_ensureTeleport(){if(this.isDisposed)return;let e=this.container;if(typeof e=="string"?e=window.document.querySelector(e):e===!1&&(e=this.$_targetNodes[0].parentNode),!e)throw new Error("No container for popover: "+this.container);e.appendChild(this.$_popperNode),this.isMounted=!0},$_addEventListeners(){const e=r=>{this.isShown&&!this.$_hideInProgress||(r.usedByTooltip=!0,!this.$_preventShow&&this.show({event:r}))};this.$_registerTriggerListeners(this.$_targetNodes,s2,this.triggers,this.showTriggers,e),this.$_registerTriggerListeners([this.$_popperNode],s2,this.popperTriggers,this.popperShowTriggers,e);const t=r=>{r.usedByTooltip||this.hide({event:r})};this.$_registerTriggerListeners(this.$_targetNodes,c2,this.triggers,this.hideTriggers,t),this.$_registerTriggerListeners([this.$_popperNode],c2,this.popperTriggers,this.popperHideTriggers,t)},$_registerEventListeners(e,t,r){this.$_events.push({targetNodes:e,eventType:t,handler:r}),e.forEach(o=>o.addEventListener(t,r,Ro?{passive:!0}:void 0))},$_registerTriggerListeners(e,t,r,o,a){let l=r;o!=null&&(l=typeof o=="function"?o(l):o),l.forEach(i=>{const c=t[i];c&&this.$_registerEventListeners(e,c,a)})},$_removeEventListeners(e){const t=[];this.$_events.forEach(r=>{const{targetNodes:o,eventType:a,handler:l}=r;!e||e===a?o.forEach(i=>i.removeEventListener(a,l)):t.push(r)}),this.$_events=t},$_refreshListeners(){this.isDisposed||(this.$_removeEventListeners(),this.$_addEventListeners())},$_handleGlobalClose(e,t=!1){this.$_showFrameLocked||(this.hide({event:e}),e.closePopover?this.$emit("close-directive"):this.$emit("auto-hide"),t&&(this.$_preventShow=!0,setTimeout(()=>{this.$_preventShow=!1},300)))},$_detachPopperNode(){this.$_popperNode.parentNode&&this.$_popperNode.parentNode.removeChild(this.$_popperNode)},$_swapTargetAttrs(e,t){for(const r of this.$_targetNodes){const o=r.getAttribute(e);o&&(r.removeAttribute(e),r.setAttribute(t,o))}},$_applyAttrsToTarget(e){for(const t of this.$_targetNodes)for(const r in e){const o=e[r];o==null?t.removeAttribute(r):t.setAttribute(r,o)}},$_updateParentShownChildren(e){let t=this.parentPopper;for(;t;)e?t.shownChildren.add(this.randomId):(t.shownChildren.delete(this.randomId),t.pendingHide&&t.hide()),t=t.parentPopper},$_isAimingPopper(){const e=this.$_referenceNode.getBoundingClientRect();if(Ea>=e.left&&Ea<=e.right&&Sa>=e.top&&Sa<=e.bottom){const t=this.$_popperNode.getBoundingClientRect(),r=Ea-mr,o=Sa-pr,a=t.left+t.width/2-mr+(t.top+t.height/2)-pr+t.width+t.height,l=mr+r*a,i=pr+o*a;return Nl(mr,pr,l,i,t.left,t.top,t.left,t.bottom)||Nl(mr,pr,l,i,t.left,t.top,t.right,t.top)||Nl(mr,pr,l,i,t.right,t.top,t.right,t.bottom)||Nl(mr,pr,l,i,t.left,t.bottom,t.right,t.bottom)}return!1}},render(){return this.$slots.default(this.slotData)}});if(typeof document<"u"&&typeof window<"u"){if(H5){const e=Ro?{passive:!0,capture:!0}:!0;document.addEventListener("touchstart",t=>m2(t,!0),e),document.addEventListener("touchend",t=>p2(t,!0),e)}else window.addEventListener("mousedown",e=>m2(e,!1),!0),window.addEventListener("click",e=>p2(e,!1),!0);window.addEventListener("resize",CU)}function m2(e,t){if(_n.autoHideOnMousedown)G5(e,t);else for(let r=0;r<Ln.length;r++){const o=Ln[r];try{o.mouseDownContains=o.popperNode().contains(e.target)}catch{}}}function p2(e,t){_n.autoHideOnMousedown||G5(e,t)}function G5(e,t){const r={};for(let o=Ln.length-1;o>=0;o--){const a=Ln[o];try{const l=a.containsGlobalTarget=a.mouseDownContains||a.popperNode().contains(e.target);a.pendingHide=!1,requestAnimationFrame(()=>{if(a.pendingHide=!1,!r[a.randomId]&&h2(a,l,e)){if(a.$_handleGlobalClose(e,t),!e.closeAllPopover&&e.closePopover&&l){let c=a.parentPopper;for(;c;)r[c.randomId]=!0,c=c.parentPopper;return}let i=a.parentPopper;for(;i&&h2(i,i.containsGlobalTarget,e);)i.$_handleGlobalClose(e,t),i=i.parentPopper}})}catch{}}}function h2(e,t,r){return r.closeAllPopover||r.closePopover&&t||SU(e,r)&&!t}function SU(e,t){if(typeof e.autoHide=="function"){const r=e.autoHide(t);return e.lastAutoHide=r,r}return e.autoHide}function CU(){for(let e=0;e<Ln.length;e++)Ln[e].$_computePosition()}var mr=0,pr=0,Ea=0,Sa=0;typeof window<"u"&&window.addEventListener("mousemove",e=>{mr=Ea,pr=Sa,Ea=e.clientX,Sa=e.clientY},Ro?{passive:!0}:void 0);function Nl(e,t,r,o,a,l,i,c){const s=((i-a)*(t-l)-(c-l)*(e-a))/((c-l)*(r-e)-(i-a)*(o-t)),u=((r-e)*(t-l)-(o-t)*(e-a))/((c-l)*(r-e)-(i-a)*(o-t));return s>=0&&s<=1&&u>=0&&u<=1}var xU={extends:j5()},ds=(e,t)=>{const r=e.__vccOpts||e;for(const[o,a]of t)r[o]=a;return r};function TU(e,t,r,o,a,l){return(0,n.openBlock)(),(0,n.createElementBlock)("div",{ref:"reference",class:(0,n.normalizeClass)(["v-popper",{"v-popper--shown":e.slotData.isShown}])},[(0,n.renderSlot)(e.$slots,"default",(0,n.normalizeProps)((0,n.guardReactiveProps)(e.slotData)))],2)}var NU=ds(xU,[["render",TU]]);function BU(){var e=window.navigator.userAgent,t=e.indexOf("MSIE ");if(t>0)return parseInt(e.substring(t+5,e.indexOf(".",t)),10);if(e.indexOf("Trident/")>0){var r=e.indexOf("rv:");return parseInt(e.substring(r+3,e.indexOf(".",r)),10)}var o=e.indexOf("Edge/");return o>0?parseInt(e.substring(o+5,e.indexOf(".",o)),10):-1}var Zl;function Eu(){Eu.init||(Eu.init=!0,Zl=BU()!==-1)}var fs={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){Eu(),(0,n.nextTick)(()=>{this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitOnMount&&this.emitSize()});const e=document.createElement("object");this._resizeObject=e,e.setAttribute("aria-hidden","true"),e.setAttribute("tabindex",-1),e.onload=this.addResizeHandlers,e.type="text/html",Zl&&this.$el.appendChild(e),e.data="about:blank",Zl||this.$el.appendChild(e)},beforeUnmount(){this.removeResizeHandlers()},methods:{compareAndNotify(){(!this.ignoreWidth&&this._w!==this.$el.offsetWidth||!this.ignoreHeight&&this._h!==this.$el.offsetHeight)&&(this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitSize())},emitSize(){this.$emit("notify",{width:this._w,height:this._h})},addResizeHandlers(){this._resizeObject.contentDocument.defaultView.addEventListener("resize",this.compareAndNotify),this.compareAndNotify()},removeResizeHandlers(){this._resizeObject&&this._resizeObject.onload&&(!Zl&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}},MU=(0,n.withScopeId)("data-v-b329ee4c");(0,n.pushScopeId)("data-v-b329ee4c");var DU={class:"resize-observer",tabindex:"-1"};(0,n.popScopeId)();fs.render=MU((e,t,r,o,a,l)=>((0,n.openBlock)(),(0,n.createBlock)("div",DU)));fs.__scopeId="data-v-b329ee4c";fs.__file="src/components/ResizeObserver.vue";var q5=(e="theme")=>({computed:{themeClass(){return EU(this[e])}}}),AU=(0,n.defineComponent)({name:"VPopperContent",components:{ResizeObserver:fs},mixins:[q5()],props:{popperId:String,theme:String,shown:Boolean,mounted:Boolean,skipTransition:Boolean,autoHide:Boolean,handleResize:Boolean,classes:Object,result:Object},emits:["hide","resize"],methods:{toPx(e){return e!=null&&!isNaN(e)?`${e}px`:null}}}),PU=["id","aria-hidden","tabindex","data-popper-placement"],IU={ref:"inner",class:"v-popper__inner"},VU=[(0,n.createElementVNode)("div",{class:"v-popper__arrow-outer"},null,-1),(0,n.createElementVNode)("div",{class:"v-popper__arrow-inner"},null,-1)];function OU(e,t,r,o,a,l){const i=(0,n.resolveComponent)("ResizeObserver");return(0,n.openBlock)(),(0,n.createElementBlock)("div",{id:e.popperId,ref:"popover",class:(0,n.normalizeClass)(["v-popper__popper",[e.themeClass,e.classes.popperClass,{"v-popper__popper--shown":e.shown,"v-popper__popper--hidden":!e.shown,"v-popper__popper--show-from":e.classes.showFrom,"v-popper__popper--show-to":e.classes.showTo,"v-popper__popper--hide-from":e.classes.hideFrom,"v-popper__popper--hide-to":e.classes.hideTo,"v-popper__popper--skip-transition":e.skipTransition,"v-popper__popper--arrow-overflow":e.result&&e.result.arrow.overflow,"v-popper__popper--no-positioning":!e.result}]]),style:(0,n.normalizeStyle)(e.result?{position:e.result.strategy,transform:`translate3d(${Math.round(e.result.x)}px,${Math.round(e.result.y)}px,0)`}:void 0),"aria-hidden":e.shown?"false":"true",tabindex:e.autoHide?0:void 0,"data-popper-placement":e.result?e.result.placement:void 0,onKeyup:t[2]||(t[2]=(0,n.withKeys)(c=>e.autoHide&&e.$emit("hide"),["esc"]))},[(0,n.createElementVNode)("div",{class:"v-popper__backdrop",onClick:t[0]||(t[0]=c=>e.autoHide&&e.$emit("hide"))}),(0,n.createElementVNode)("div",{class:"v-popper__wrapper",style:(0,n.normalizeStyle)(e.result?{transformOrigin:e.result.transformOrigin}:void 0)},[(0,n.createElementVNode)("div",IU,[e.mounted?((0,n.openBlock)(),(0,n.createElementBlock)(n.Fragment,{key:0},[(0,n.createElementVNode)("div",null,[(0,n.renderSlot)(e.$slots,"default")]),e.handleResize?((0,n.openBlock)(),(0,n.createBlock)(i,{key:0,onNotify:t[1]||(t[1]=c=>e.$emit("resize",c))})):(0,n.createCommentVNode)("",!0)],64)):(0,n.createCommentVNode)("",!0)],512),(0,n.createElementVNode)("div",{ref:"arrow",class:"v-popper__arrow-container",style:(0,n.normalizeStyle)(e.result?{left:e.toPx(e.result.arrow.x),top:e.toPx(e.result.arrow.y)}:void 0)},VU,4)],4)],46,PU)}var Y5=ds(AU,[["render",OU]]),Z5={methods:{show(...e){return this.$refs.popper.show(...e)},hide(...e){return this.$refs.popper.hide(...e)},dispose(...e){return this.$refs.popper.dispose(...e)},onResize(...e){return this.$refs.popper.onResize(...e)}}},Su=function(){};typeof window<"u"&&(Su=window.Element);var RU=(0,n.defineComponent)({name:"VPopperWrapper",components:{Popper:NU,PopperContent:Y5},mixins:[Z5,q5("finalTheme")],props:{theme:{type:String,default:null},referenceNode:{type:Function,default:null},shown:{type:Boolean,default:!1},showGroup:{type:String,default:null},ariaId:{default:null},disabled:{type:Boolean,default:void 0},positioningDisabled:{type:Boolean,default:void 0},placement:{type:String,default:void 0},delay:{type:[String,Number,Object],default:void 0},distance:{type:[Number,String],default:void 0},skidding:{type:[Number,String],default:void 0},triggers:{type:Array,default:void 0},showTriggers:{type:[Array,Function],default:void 0},hideTriggers:{type:[Array,Function],default:void 0},popperTriggers:{type:Array,default:void 0},popperShowTriggers:{type:[Array,Function],default:void 0},popperHideTriggers:{type:[Array,Function],default:void 0},container:{type:[String,Object,Su,Boolean],default:void 0},boundary:{type:[String,Su],default:void 0},strategy:{type:String,default:void 0},autoHide:{type:[Boolean,Function],default:void 0},handleResize:{type:Boolean,default:void 0},instantMove:{type:Boolean,default:void 0},eagerMount:{type:Boolean,default:void 0},popperClass:{type:[String,Array,Object],default:void 0},computeTransformOrigin:{type:Boolean,default:void 0},autoMinSize:{type:Boolean,default:void 0},autoSize:{type:[Boolean,String],default:void 0},autoMaxSize:{type:Boolean,default:void 0},autoBoundaryMaxSize:{type:Boolean,default:void 0},preventOverflow:{type:Boolean,default:void 0},overflowPadding:{type:[Number,String],default:void 0},arrowPadding:{type:[Number,String],default:void 0},arrowOverflow:{type:Boolean,default:void 0},flip:{type:Boolean,default:void 0},shift:{type:Boolean,default:void 0},shiftCrossAxis:{type:Boolean,default:void 0},noAutoFocus:{type:Boolean,default:void 0},disposeTimeout:{type:Number,default:void 0}},emits:{show:()=>!0,hide:()=>!0,"update:shown":e=>!0,"apply-show":()=>!0,"apply-hide":()=>!0,"close-group":()=>!0,"close-directive":()=>!0,"auto-hide":()=>!0,resize:()=>!0},computed:{finalTheme(){return this.theme??this.$options.vPopperTheme}},methods:{getTargetNodes(){return Array.from(this.$el.children).filter(e=>e!==this.$refs.popperContent.$el)}}});function FU(e,t,r,o,a,l){const i=(0,n.resolveComponent)("PopperContent"),c=(0,n.resolveComponent)("Popper");return(0,n.openBlock)(),(0,n.createBlock)(c,(0,n.mergeProps)({ref:"popper"},e.$props,{theme:e.finalTheme,"target-nodes":e.getTargetNodes,"popper-node":()=>e.$refs.popperContent.$el,class:[e.themeClass],onShow:t[0]||(t[0]=()=>e.$emit("show")),onHide:t[1]||(t[1]=()=>e.$emit("hide")),"onUpdate:shown":t[2]||(t[2]=s=>e.$emit("update:shown",s)),onApplyShow:t[3]||(t[3]=()=>e.$emit("apply-show")),onApplyHide:t[4]||(t[4]=()=>e.$emit("apply-hide")),onCloseGroup:t[5]||(t[5]=()=>e.$emit("close-group")),onCloseDirective:t[6]||(t[6]=()=>e.$emit("close-directive")),onAutoHide:t[7]||(t[7]=()=>e.$emit("auto-hide")),onResize:t[8]||(t[8]=()=>e.$emit("resize"))}),{default:(0,n.withCtx)(({popperId:s,isShown:u,shouldMountContent:d,skipTransition:f,autoHide:m,show:p,hide:h,handleResize:v,onResize:y,classes:g,result:L})=>[(0,n.renderSlot)(e.$slots,"default",{shown:u,show:p,hide:h}),(0,n.createVNode)(i,{ref:"popperContent","popper-id":s,theme:e.finalTheme,shown:u,mounted:d,"skip-transition":f,"auto-hide":m,"handle-resize":v,classes:g,result:L,onHide:h,onResize:y},{default:(0,n.withCtx)(()=>[(0,n.renderSlot)(e.$slots,"popper",{shown:u,hide:h})]),_:2},1032,["popper-id","theme","shown","mounted","skip-transition","auto-hide","handle-resize","classes","result","onHide","onResize"])]),_:3},16,["theme","target-nodes","popper-node","class"])}var Gd=ds(RU,[["render",FU]]),zU={...Gd,name:"VDropdown",vPopperTheme:"dropdown"},UU={...Gd,name:"VMenu",vPopperTheme:"menu"},HU={...Gd,name:"VTooltip",vPopperTheme:"tooltip"},WU=(0,n.defineComponent)({name:"VTooltipDirective",components:{Popper:j5(),PopperContent:Y5},mixins:[Z5],inheritAttrs:!1,props:{theme:{type:String,default:"tooltip"},html:{type:Boolean,default:e=>Wa(e.theme,"html")},content:{type:[String,Number,Function],default:null},loadingContent:{type:String,default:e=>Wa(e.theme,"loadingContent")},targetNodes:{type:Function,required:!0}},data(){return{asyncContent:null}},computed:{isContentAsync(){return typeof this.content=="function"},loading(){return this.isContentAsync&&this.asyncContent==null},finalContent(){return this.isContentAsync?this.loading?this.loadingContent:this.asyncContent:this.content}},watch:{content:{handler(){this.fetchContent(!0)},immediate:!0},async finalContent(){await this.$nextTick(),this.$refs.popper.onResize()}},created(){this.$_fetchId=0},methods:{fetchContent(e){if(typeof this.content=="function"&&this.$_isShown&&(e||!this.$_loading&&this.asyncContent==null)){this.asyncContent=null,this.$_loading=!0;const t=++this.$_fetchId,r=this.content(this);r.then?r.then(o=>this.onResult(t,o)):this.onResult(t,r)}},onResult(e,t){e===this.$_fetchId&&(this.$_loading=!1,this.asyncContent=t)},onShow(){this.$_isShown=!0,this.fetchContent()},onHide(){this.$_isShown=!1}}}),jU=["innerHTML"],GU=["textContent"];function qU(e,t,r,o,a,l){const i=(0,n.resolveComponent)("PopperContent"),c=(0,n.resolveComponent)("Popper");return(0,n.openBlock)(),(0,n.createBlock)(c,(0,n.mergeProps)({ref:"popper"},e.$attrs,{theme:e.theme,"target-nodes":e.targetNodes,"popper-node":()=>e.$refs.popperContent.$el,onApplyShow:e.onShow,onApplyHide:e.onHide}),{default:(0,n.withCtx)(({popperId:s,isShown:u,shouldMountContent:d,skipTransition:f,autoHide:m,hide:p,handleResize:h,onResize:v,classes:y,result:g})=>[(0,n.createVNode)(i,{ref:"popperContent",class:(0,n.normalizeClass)({"v-popper--tooltip-loading":e.loading}),"popper-id":s,theme:e.theme,shown:u,mounted:d,"skip-transition":f,"auto-hide":m,"handle-resize":h,classes:y,result:g,onHide:p,onResize:v},{default:(0,n.withCtx)(()=>[e.html?((0,n.openBlock)(),(0,n.createElementBlock)("div",{key:0,innerHTML:e.finalContent},null,8,jU)):((0,n.openBlock)(),(0,n.createElementBlock)("div",{key:1,textContent:(0,n.toDisplayString)(e.finalContent)},null,8,GU))]),_:2},1032,["class","popper-id","theme","shown","mounted","skip-transition","auto-hide","handle-resize","classes","result","onHide","onResize"])]),_:1},16,["theme","target-nodes","popper-node","onApplyShow","onApplyHide"])}var YU=ds(WU,[["render",qU]]),X5="v-popper--has-tooltip";function ZU(e,t){let r=e.placement;if(!r&&t)for(const o of W5)t[o]&&(r=o);return r||(r=Wa(e.theme||"tooltip","placement")),r}function K5(e,t,r){let o;const a=typeof t;return a==="string"?o={content:t}:t&&a==="object"?o=t:o={content:!1},o.placement=ZU(o,r),o.targetNodes=()=>[e],o.referenceNode=()=>e,o}var cc,ja,XU=0;function KU(){if(cc)return;ja=(0,n.ref)([]),cc=(0,n.createApp)({name:"VTooltipDirectiveApp",setup(){return{directives:ja}},render(){return this.directives.map(t=>(0,n.h)(YU,{...t.options,shown:t.shown||t.options.shown,key:t.id}))},devtools:{hide:!0}});const e=document.createElement("div");document.body.appendChild(e),cc.mount(e)}function JU(e,t,r){KU();const o=(0,n.ref)(K5(e,t,r)),a=(0,n.ref)(!1),l={id:XU++,options:o,shown:a};return ja.value.push(l),e.classList&&e.classList.add(X5),e.$_popper={options:o,item:l,show(){a.value=!0},hide(){a.value=!1}}}function J5(e){if(e.$_popper){const t=ja.value.indexOf(e.$_popper.item);t!==-1&&ja.value.splice(t,1),delete e.$_popper,delete e.$_popperOldShown,delete e.$_popperMountTarget}e.classList&&e.classList.remove(X5)}function g2(e,{value:t,modifiers:r}){const o=K5(e,t,r);if(!o.content||Wa(o.theme||"tooltip","disabled"))J5(e);else{let a;e.$_popper?(a=e.$_popper,a.options.value=o):a=JU(e,t,r),typeof t.shown<"u"&&t.shown!==e.$_popperOldShown&&(e.$_popperOldShown=t.shown,t.shown?a.show():a.hide())}}var QU={beforeMount:g2,updated:g2,beforeUnmount(e){J5(e)}};function v2(e){e.addEventListener("mousedown",Ti),e.addEventListener("click",Ti),e.addEventListener("touchstart",Q5,Ro?{passive:!0}:!1)}function L2(e){e.removeEventListener("mousedown",Ti),e.removeEventListener("click",Ti),e.removeEventListener("touchstart",Q5),e.removeEventListener("touchend",eh),e.removeEventListener("touchcancel",th)}function Ti(e){const t=e.currentTarget;e.closePopover=!t.$_vclosepopover_touch,e.closeAllPopover=t.$_closePopoverModifiers&&!!t.$_closePopoverModifiers.all}function Q5(e){if(e.changedTouches.length===1){const t=e.currentTarget;t.$_vclosepopover_touch=!0,t.$_vclosepopover_touchPoint=e.changedTouches[0],t.addEventListener("touchend",eh),t.addEventListener("touchcancel",th)}}function eh(e){const t=e.currentTarget;if(t.$_vclosepopover_touch=!1,e.changedTouches.length===1){const r=e.changedTouches[0],o=t.$_vclosepopover_touchPoint;e.closePopover=Math.abs(r.screenY-o.screenY)<20&&Math.abs(r.screenX-o.screenX)<20,e.closeAllPopover=t.$_closePopoverModifiers&&!!t.$_closePopoverModifiers.all}}function th(e){const t=e.currentTarget;t.$_vclosepopover_touch=!1}var eH={beforeMount(e,{value:t,modifiers:r}){e.$_closePopoverModifiers=r,(typeof t>"u"||t)&&v2(e)},updated(e,{value:t,oldValue:r,modifiers:o}){e.$_closePopoverModifiers=o,t!==r&&(typeof t>"u"||t?v2(e):L2(e))},beforeUnmount(e){L2(e)}};function tH(e,t={}){e.$_vTooltipInstalled||(e.$_vTooltipInstalled=!0,U5(_n,t),e.directive("tooltip",QU),e.directive("close-popper",eH),e.component("VTooltip",HU),e.component("VDropdown",zU),e.component("VMenu",UU))}var nH={version:"5.2.2",install:tH,options:_n},rH=["src"],oH=(0,n.defineComponent)({__name:"LightboxImage",props:{src:{}},setup(e){const t=e,{imageSrc:r}=Dd(()=>t.src);return(o,a)=>((0,n.openBlock)(),(0,n.createElementBlock)("img",{draggable:!1,src:(0,n.unref)(r),alt:"Preview",class:"lightbox-image"},null,8,rH))}}),aH=oH,lH={key:0,class:"center"},iH={key:3},sH={class:"bgl-lightbox-item"},cH={key:2,class:"lightbox-pdf"},uH=["src","title"],dH={key:3,class:"lightbox-file"},fH={class:"file-info txt-white flex m_block align-items-start gap-025"},mH={class:"txt-start"},pH={class:"mx-0 light"},hH={class:"semi word-break-all"},gH={class:"mx-0"},vH={class:"semi"},LH=(0,n.defineComponent)({__name:"Lightbox",setup(e,{expose:t}){const r=(0,n.ref)(!1),o=(0,n.ref)(null),a=(0,n.ref)([]),l=(0,n.ref)(0),i=(0,n.computed)(()=>a.value[l.value]),c=(0,n.ref)(1),s=(0,n.computed)(()=>c.value===1),u=(0,n.computed)(()=>({allowTouchMove:c.value===1,touchRatio:c.value===1?1:0,simulateTouch:c.value===1}));function d(p,h){r.value=!0,a.value=h||[p],l.value=a.value.findIndex(v=>{const y=p.src!==void 0&&p.src!==null&&p.src!==""&&v.src===p.src,g=p.pathKey!==void 0&&p.pathKey!==null&&p.pathKey!==""&&v.pathKey===p.pathKey;return y||g}),l.value===-1&&(l.value=0),c.value=1}function f(){r.value=!1}os(f,r);function m(p){l.value=p,c.value=1}return(0,n.watch)(()=>r.value,async p=>{p?(document.body.style.overflow="hidden",await(0,n.nextTick)(),o.value?.open||o.value?.showModal()):(document.body.style.overflow="",o.value?.open&&o.value.close())}),(0,n.watch)(()=>l.value,()=>{c.value=1}),t({open:d,close:f}),(p,h)=>((0,n.openBlock)(),(0,n.createBlock)(n.Transition,{name:"fade"},{default:(0,n.withCtx)(()=>[r.value?((0,n.openBlock)(),(0,n.createElementBlock)("dialog",{key:0,ref_key:"dialogRef",ref:o,class:"bgl-lightbox-overlay",onCancel:(0,n.withModifiers)(f,["prevent"])},[(0,n.createElementVNode)("div",{class:"flex start w-100 space-between p-025 z-9",onClick:f},[(0,n.createVNode)((0,n.unref)(se),{flat:"",class:"color-white",icon:"close",onClick:f}),i.value?.enableZoom&&i.value?.type==="image"?((0,n.openBlock)(),(0,n.createElementBlock)("div",lH,[(0,n.createVNode)((0,n.unref)(se),{flat:"",class:"color-white",icon:"remove",disabled:c.value===1,onClick:h[0]||(h[0]=v=>c.value--)},null,8,["disabled"]),(0,n.createVNode)((0,n.unref)(se),{flat:"",class:"color-white",icon:"zoom_in",disabled:c.value===1,onClick:h[1]||(h[1]=v=>c.value=1)},null,8,["disabled"]),(0,n.createVNode)((0,n.unref)(se),{flat:"",class:"color-white",icon:"add",disabled:c.value===3,onClick:h[2]||(h[2]=v=>c.value++)},null,8,["disabled"])])):(0,n.createCommentVNode)("",!0),i.value?.openFile&&i.value?.src?((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(se),{key:1,class:"color-white",round:"",thin:"",flat:"",iconEnd:"arrow_outward",value:"$t:lightbox.openFile",href:i.value?.src,target:"_blank"},null,8,["href"])):(0,n.createCommentVNode)("",!0),i.value?.download&&i.value?.src?((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(se),{key:2,class:"color-white",round:"",thin:"",flat:"",icon:"download",value:"Download File",onClick:h[3]||(h[3]=v=>(0,n.unref)(Md)(i.value?.src))})):(0,n.createCommentVNode)("",!0),!i.value?.openFile&&!i.value?.download?((0,n.openBlock)(),(0,n.createElementBlock)("div",iH)):(0,n.createCommentVNode)("",!0)]),a.value&&a.value.length>0?((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(H3),{key:0,index:l.value,"onUpdate:index":h[6]||(h[6]=v=>l.value=v),items:a.value,"initial-slide":l.value,class:(0,n.normalizeClass)(["bgl-lightbox-swiper",{zoomed:c.value>1}]),navigation:a.value.length>1,"grab-cursor":s.value,keyboard:!0,loop:!1,speed:400,"slides-per-view":1,"space-between":0,effect:"slide","advanced-options":u.value,onClick:h[7]||(h[7]=(0,n.withModifiers)(()=>{},["stop"]))},{default:(0,n.withCtx)(({item:v})=>[(0,n.createElementVNode)("div",sH,[v.type==="image"?((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(W3),{key:0,zoom:c.value,"onUpdate:zoom":h[4]||(h[4]=y=>c.value=y),disabled:!v?.enableZoom,"mouse-wheel-to-zoom":!1,"double-click-to-zoom":!0,"max-scale":5,"min-scale":1,"aspect-ratio":0,"limit-translation":!0,onClick:h[5]||(h[5]=(0,n.withModifiers)(()=>{},["stop"]))},{default:(0,n.withCtx)(()=>[(0,n.createVNode)(aH,{src:v?.src},null,8,["src"])]),_:2},1032,["zoom","disabled"])):v?.type==="video"&&v?.src?((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(Xu),{key:1,src:v?.src,autoplay:"",controls:"",class:"lightbox-video"},null,8,["src"])):v?.type==="pdf"&&v?.src?((0,n.openBlock)(),(0,n.createElementBlock)("div",cH,[(0,n.createElementVNode)("embed",{src:(0,n.unref)(Bd)(v?.src),type:"application/pdf",title:v?.name},null,8,uH)])):((0,n.openBlock)(),(0,n.createElementBlock)("div",dH,[(0,n.createElementVNode)("div",fH,[(0,n.createVNode)((0,n.unref)(_e),{class:"m-0 m_none",icon:"draft",size:10,weight:"12"}),(0,n.createVNode)((0,n.unref)(_e),{class:"m-0 none m_block m_-mb-1",icon:"draft",size:4,weight:"2"}),(0,n.createElementVNode)("div",mH,[(0,n.createElementVNode)("p",pH,[h[9]||(h[9]=(0,n.createTextVNode)(" File: ",-1)),(0,n.createElementVNode)("span",hH,(0,n.toDisplayString)(v?.name),1)]),(0,n.createElementVNode)("p",gH,[h[10]||(h[10]=(0,n.createTextVNode)(" Type: ",-1)),(0,n.createElementVNode)("span",vH,(0,n.toDisplayString)(v?.type),1)]),(0,n.createVNode)((0,n.unref)(se),{href:v?.src,target:"_blank",round:"",thin:"",class:"mt-1",value:"Open file"},null,8,["href"])])])]))])]),"prev-button":(0,n.withCtx)(({prev:v})=>[(0,n.createVNode)((0,n.unref)(se),{icon:"arrow_back",color:"black",onClick:v},null,8,["onClick"])]),"next-button":(0,n.withCtx)(({next:v})=>[(0,n.createVNode)((0,n.unref)(se),{icon:"arrow_forward",color:"black",onClick:v},null,8,["onClick"])]),_:1},8,["index","items","initial-slide","class","navigation","grab-cursor","advanced-options"])):(0,n.createCommentVNode)("",!0),a.value&&a.value.length>1?((0,n.openBlock)(),(0,n.createElementBlock)("div",{key:1,class:"lightbox-thumbnails",onClick:h[8]||(h[8]=(0,n.withModifiers)(()=>{},["stop"]))},[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(a.value,(v,y)=>((0,n.openBlock)(),(0,n.createElementBlock)(n.Fragment,{key:y},[v.type==="image"?((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(Ma),{key:0,class:(0,n.normalizeClass)(["thumbnail",{active:l.value===y}]),src:v.src,alt:"",onClick:(0,n.withModifiers)(g=>m(y),["stop"])},null,8,["src","class","onClick"])):((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(_e),{key:1,class:(0,n.normalizeClass)(["thumbnail thumbnail-icon",{active:l.value===y}]),icon:"description",onClick:(0,n.withModifiers)(g=>m(y),["stop"])},null,8,["class","onClick"]))],64))),128))])):(0,n.createCommentVNode)("",!0)],544)):(0,n.createCommentVNode)("",!0)]),_:1}))}}),yH=LH,ma={},uo=e=>{},bH={mounted(e,t){y2(Cu(t,e)),uo=r=>{b2(r,e,t)},e.addEventListener("click",uo)},updated(e,t){y2(Cu(t,e)),e.removeEventListener("click",uo),uo=r=>{b2(r,e,t)},e.addEventListener("click",uo)},unmounted(e){e.removeEventListener("click",uo)},getSSRProps(){return{}}};function y2(e){e.group&&(ma[e.group]||(ma[e.group]=[]),ma[e.group].findIndex(t=>t.src===e.src)===-1&&ma[e.group].push(e))}function b2(e,t,r){e.stopPropagation();const o=Cu(r,t),a=EH();if(!a||!a.open)return;const l=a.open;l(o,o&&o.group?ma[o.group]:void 0)}function Cu(e,t){let{group:r,src:o,type:a,name:l,thumbnail:i,enableZoom:c,openFile:s,download:u,pathKey:d}=e.value||{};return o=an(o||d)||e.value||t.getAttribute("src")||"",a=a||$H(o),l=l||kH(o)||t.getAttribute("alt")||"",{src:o,type:a,name:l,thumbnail:i,group:r,enableZoom:c,openFile:s,download:u}}var _H=/youtube\.com|youtu\.be/,wH=/vimeo\.com/;function kH(e){return!e||typeof e!="string"?"":(e.split("/").pop()||"").replace(/\.[^/.]+$/,"")}function $H(e){if(typeof e!="string"||!e)return"unknown";if(e.startsWith("blob:")||/^data:image\//i.test(e))return"image";if(/^data:video\//i.test(e))return"video";const t=(e.split(".").pop()||"").toLowerCase(),r=e.split("?")[0].split(".").pop()?.toLowerCase()||"";return ii.test(t)||ii.test(r)?"image":fp.test(t)||_H.test(e)||wH.test(e)?"video":["pdf"].includes(t)?"pdf":t??"unknown"}var uc;function EH(){if(!(typeof document>"u")){if(!uc){const e=document.createElement("div");document.body.prepend(e),uc=(0,n.createApp)(yH).mount(e)}return uc}}var SH={install(e){e.directive("lightbox",bH)}},CH=SH,xH={beforeMount(e,t){e.clickOutsideEvent=r=>{e===r.target||e.contains(r.target)||t.value(r)},document.addEventListener("click",e.clickOutsideEvent)},unmounted(e){document.removeEventListener("click",e.clickOutsideEvent)}},nh=Bu({EventBus:()=>hs,POSITION:()=>qa,TYPE:()=>zt,createToastInterface:()=>Ya,default:()=>yh,globalEventBus:()=>qd,provideToast:()=>hW,toastInjectionKey:()=>gs,useToast:()=>Lh},1),TH=Object.defineProperty,_2=Object.getOwnPropertySymbols,NH=Object.prototype.hasOwnProperty,BH=Object.prototype.propertyIsEnumerable,w2=(e,t,r)=>t in e?TH(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,rh=(e,t)=>{for(var r in t||(t={}))NH.call(t,r)&&w2(e,r,t[r]);if(_2)for(var r of _2(t))BH.call(t,r)&&w2(e,r,t[r]);return e},ms=e=>typeof e=="function",ps=e=>typeof e=="string",oh=e=>ps(e)&&e.trim().length>0,MH=e=>typeof e=="number",zr=e=>typeof e>"u",Ga=e=>typeof e=="object"&&e!==null,DH=e=>Un(e,"tag")&&oh(e.tag),ah=e=>window.TouchEvent&&e instanceof TouchEvent,lh=e=>Un(e,"component")&&ih(e.component),AH=e=>ms(e)||Ga(e),ih=e=>!zr(e)&&(ps(e)||AH(e)||lh(e)),k2=e=>Ga(e)&&["height","width","right","left","top","bottom"].every(t=>MH(e[t])),Un=(e,t)=>(Ga(e)||ms(e))&&t in e,PH=(e=>()=>e++)(0);function dc(e){return ah(e)?e.targetTouches[0].clientX:e.clientX}function $2(e){return ah(e)?e.targetTouches[0].clientY:e.clientY}var IH=e=>{zr(e.remove)?e.parentNode&&e.parentNode.removeChild(e):e.remove()},ul=e=>lh(e)?ul(e.component):DH(e)?(0,n.defineComponent)({render(){return e}}):typeof e=="string"?e:(0,n.toRaw)((0,n.unref)(e)),VH=e=>{if(typeof e=="string")return e;const t=Un(e,"props")&&Ga(e.props)?e.props:{},r=Un(e,"listeners")&&Ga(e.listeners)?e.listeners:{};return{component:ul(e),props:t,listeners:r}},OH=()=>typeof window<"u",hs=class{constructor(){this.allHandlers={}}getHandlers(e){return this.allHandlers[e]||[]}on(e,t){const r=this.getHandlers(e);r.push(t),this.allHandlers[e]=r}off(e,t){const r=this.getHandlers(e);r.splice(r.indexOf(t)>>>0,1)}emit(e,t){this.getHandlers(e).forEach(r=>r(t))}},RH=e=>["on","off","emit"].every(t=>Un(e,t)&&ms(e[t])),zt;(function(e){e.SUCCESS="success",e.ERROR="error",e.WARNING="warning",e.INFO="info",e.DEFAULT="default"})(zt||(zt={}));var qa;(function(e){e.TOP_LEFT="top-left",e.TOP_CENTER="top-center",e.TOP_RIGHT="top-right",e.BOTTOM_LEFT="bottom-left",e.BOTTOM_CENTER="bottom-center",e.BOTTOM_RIGHT="bottom-right"})(qa||(qa={}));var Kt;(function(e){e.ADD="add",e.DISMISS="dismiss",e.UPDATE="update",e.CLEAR="clear",e.UPDATE_DEFAULTS="update_defaults"})(Kt||(Kt={}));var tr="Vue-Toastification",hn={type:{type:String,default:zt.DEFAULT},classNames:{type:[String,Array],default:()=>[]},trueBoolean:{type:Boolean,default:!0}},E2={type:hn.type,customIcon:{type:[String,Boolean,Object,Function],default:!0}},Bl={component:{type:[String,Object,Function,Boolean],default:"button"},classNames:hn.classNames,showOnHover:{type:Boolean,default:!1},ariaLabel:{type:String,default:"close"}},fc={timeout:{type:[Number,Boolean],default:5e3},hideProgressBar:{type:Boolean,default:!1},isRunning:{type:Boolean,default:!1}},S2={transition:{type:[Object,String],default:`${tr}__bounce`}},ar={CORE_TOAST:{position:{type:String,default:qa.TOP_RIGHT},draggable:hn.trueBoolean,draggablePercent:{type:Number,default:.6},pauseOnFocusLoss:hn.trueBoolean,pauseOnHover:hn.trueBoolean,closeOnClick:hn.trueBoolean,timeout:fc.timeout,hideProgressBar:fc.hideProgressBar,toastClassName:hn.classNames,bodyClassName:hn.classNames,icon:E2.customIcon,closeButton:Bl.component,closeButtonClassName:Bl.classNames,showCloseButtonOnHover:Bl.showOnHover,accessibility:{type:Object,default:()=>({toastRole:"alert",closeButtonLabel:"close"})},rtl:{type:Boolean,default:!1},eventBus:{type:Object,required:!1,default:()=>new hs}},TOAST:{id:{type:[String,Number],required:!0,default:0},type:hn.type,content:{type:[String,Object,Function],required:!0,default:""},onClick:{type:Function,default:void 0},onClose:{type:Function,default:void 0}},CONTAINER:{container:{type:[Object,Function],default:()=>document.body},newestOnTop:hn.trueBoolean,maxToasts:{type:Number,default:20},transition:S2.transition,toastDefaults:Object,filterBeforeCreate:{type:Function,default:e=>e},filterToasts:{type:Function,default:e=>e},containerClassName:hn.classNames,onMounted:Function,shareAppContext:[Boolean,Object]},PROGRESS_BAR:fc,ICON:E2,TRANSITION:S2,CLOSE_BUTTON:Bl},sh=(0,n.defineComponent)({name:"VtProgressBar",props:ar.PROGRESS_BAR,data(){return{hasClass:!0}},computed:{style(){return{animationDuration:`${this.timeout}ms`,animationPlayState:this.isRunning?"running":"paused",opacity:this.hideProgressBar?0:1}},cpClass(){return this.hasClass?`${tr}__progress-bar`:""}},watch:{timeout(){this.hasClass=!1,this.$nextTick(()=>this.hasClass=!0)}},mounted(){this.$el.addEventListener("animationend",this.animationEnded)},beforeUnmount(){this.$el.removeEventListener("animationend",this.animationEnded)},methods:{animationEnded(){this.$emit("close-toast")}}});function FH(e,t){return(0,n.openBlock)(),(0,n.createElementBlock)("div",{style:(0,n.normalizeStyle)(e.style),class:(0,n.normalizeClass)(e.cpClass)},null,6)}sh.render=FH;var zH=sh,ch=(0,n.defineComponent)({name:"VtCloseButton",props:ar.CLOSE_BUTTON,computed:{buttonComponent(){return this.component!==!1?ul(this.component):"button"},classes(){const e=[`${tr}__close-button`];return this.showOnHover&&e.push("show-on-hover"),e.concat(this.classNames)}}}),UH=(0,n.createTextVNode)(" × ");function HH(e,t){return(0,n.openBlock)(),(0,n.createBlock)((0,n.resolveDynamicComponent)(e.buttonComponent),(0,n.mergeProps)({"aria-label":e.ariaLabel,class:e.classes},e.$attrs),{default:(0,n.withCtx)(()=>[UH]),_:1},16,["aria-label","class"])}ch.render=HH;var WH=ch,uh={},jH={"aria-hidden":"true",focusable:"false","data-prefix":"fas","data-icon":"check-circle",class:"svg-inline--fa fa-check-circle fa-w-16",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},GH=[(0,n.createElementVNode)("path",{fill:"currentColor",d:"M504 256c0 136.967-111.033 248-248 248S8 392.967 8 256 119.033 8 256 8s248 111.033 248 248zM227.314 387.314l184-184c6.248-6.248 6.248-16.379 0-22.627l-22.627-22.627c-6.248-6.249-16.379-6.249-22.628 0L216 308.118l-70.059-70.059c-6.248-6.248-16.379-6.248-22.628 0l-22.627 22.627c-6.248 6.248-6.248 16.379 0 22.627l104 104c6.249 6.249 16.379 6.249 22.628.001z"},null,-1)];function qH(e,t){return(0,n.openBlock)(),(0,n.createElementBlock)("svg",jH,GH)}uh.render=qH;var YH=uh,dh={},ZH={"aria-hidden":"true",focusable:"false","data-prefix":"fas","data-icon":"info-circle",class:"svg-inline--fa fa-info-circle fa-w-16",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},XH=[(0,n.createElementVNode)("path",{fill:"currentColor",d:"M256 8C119.043 8 8 119.083 8 256c0 136.997 111.043 248 248 248s248-111.003 248-248C504 119.083 392.957 8 256 8zm0 110c23.196 0 42 18.804 42 42s-18.804 42-42 42-42-18.804-42-42 18.804-42 42-42zm56 254c0 6.627-5.373 12-12 12h-88c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h12v-64h-12c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h64c6.627 0 12 5.373 12 12v100h12c6.627 0 12 5.373 12 12v24z"},null,-1)];function KH(e,t){return(0,n.openBlock)(),(0,n.createElementBlock)("svg",ZH,XH)}dh.render=KH;var C2=dh,fh={},JH={"aria-hidden":"true",focusable:"false","data-prefix":"fas","data-icon":"exclamation-circle",class:"svg-inline--fa fa-exclamation-circle fa-w-16",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},QH=[(0,n.createElementVNode)("path",{fill:"currentColor",d:"M504 256c0 136.997-111.043 248-248 248S8 392.997 8 256C8 119.083 119.043 8 256 8s248 111.083 248 248zm-248 50c-25.405 0-46 20.595-46 46s20.595 46 46 46 46-20.595 46-46-20.595-46-46-46zm-43.673-165.346l7.418 136c.347 6.364 5.609 11.346 11.982 11.346h48.546c6.373 0 11.635-4.982 11.982-11.346l7.418-136c.375-6.874-5.098-12.654-11.982-12.654h-63.383c-6.884 0-12.356 5.78-11.981 12.654z"},null,-1)];function eW(e,t){return(0,n.openBlock)(),(0,n.createElementBlock)("svg",JH,QH)}fh.render=eW;var tW=fh,mh={},nW={"aria-hidden":"true",focusable:"false","data-prefix":"fas","data-icon":"exclamation-triangle",class:"svg-inline--fa fa-exclamation-triangle fa-w-18",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512"},rW=[(0,n.createElementVNode)("path",{fill:"currentColor",d:"M569.517 440.013C587.975 472.007 564.806 512 527.94 512H48.054c-36.937 0-59.999-40.055-41.577-71.987L246.423 23.985c18.467-32.009 64.72-31.951 83.154 0l239.94 416.028zM288 354c-25.405 0-46 20.595-46 46s20.595 46 46 46 46-20.595 46-46-20.595-46-46-46zm-43.673-165.346l7.418 136c.347 6.364 5.609 11.346 11.982 11.346h48.546c6.373 0 11.635-4.982 11.982-11.346l7.418-136c.375-6.874-5.098-12.654-11.982-12.654h-63.383c-6.884 0-12.356 5.78-11.981 12.654z"},null,-1)];function oW(e,t){return(0,n.openBlock)(),(0,n.createElementBlock)("svg",nW,rW)}mh.render=oW;var aW=mh,ph=(0,n.defineComponent)({name:"VtIcon",props:ar.ICON,computed:{customIconChildren(){return Un(this.customIcon,"iconChildren")?this.trimValue(this.customIcon.iconChildren):""},customIconClass(){return ps(this.customIcon)?this.trimValue(this.customIcon):Un(this.customIcon,"iconClass")?this.trimValue(this.customIcon.iconClass):""},customIconTag(){return Un(this.customIcon,"iconTag")?this.trimValue(this.customIcon.iconTag,"i"):"i"},hasCustomIcon(){return this.customIconClass.length>0},component(){return this.hasCustomIcon?this.customIconTag:ih(this.customIcon)?ul(this.customIcon):this.iconTypeComponent},iconTypeComponent(){return{[zt.DEFAULT]:C2,[zt.INFO]:C2,[zt.SUCCESS]:YH,[zt.ERROR]:aW,[zt.WARNING]:tW}[this.type]},iconClasses(){const e=[`${tr}__icon`];return this.hasCustomIcon?e.concat(this.customIconClass):e}},methods:{trimValue(e,t=""){return oh(e)?e.trim():t}}});function lW(e,t){return(0,n.openBlock)(),(0,n.createBlock)((0,n.resolveDynamicComponent)(e.component),{class:(0,n.normalizeClass)(e.iconClasses)},{default:(0,n.withCtx)(()=>[(0,n.createTextVNode)((0,n.toDisplayString)(e.customIconChildren),1)]),_:1},8,["class"])}ph.render=lW;var hh=(0,n.defineComponent)({name:"VtToast",components:{ProgressBar:zH,CloseButton:WH,Icon:ph},inheritAttrs:!1,props:Object.assign({},ar.CORE_TOAST,ar.TOAST),data(){return{isRunning:!0,disableTransitions:!1,beingDragged:!1,dragStart:0,dragPos:{x:0,y:0},dragRect:{}}},computed:{classes(){const e=[`${tr}__toast`,`${tr}__toast--${this.type}`,`${this.position}`].concat(this.toastClassName);return this.disableTransitions&&e.push("disable-transition"),this.rtl&&e.push(`${tr}__toast--rtl`),e},bodyClasses(){return[`${tr}__toast-${ps(this.content)?"body":"component-body"}`].concat(this.bodyClassName)},draggableStyle(){return this.dragStart===this.dragPos.x?{}:this.beingDragged?{transform:`translateX(${this.dragDelta}px)`,opacity:1-Math.abs(this.dragDelta/this.removalDistance)}:{transition:"transform 0.2s, opacity 0.2s",transform:"translateX(0)",opacity:1}},dragDelta(){return this.beingDragged?this.dragPos.x-this.dragStart:0},removalDistance(){return k2(this.dragRect)?(this.dragRect.right-this.dragRect.left)*this.draggablePercent:0}},mounted(){this.draggable&&this.draggableSetup(),this.pauseOnFocusLoss&&this.focusSetup()},beforeUnmount(){this.draggable&&this.draggableCleanup(),this.pauseOnFocusLoss&&this.focusCleanup()},methods:{hasProp:Un,getVueComponentFromObj:ul,closeToast(){this.eventBus.emit(Kt.DISMISS,this.id)},clickHandler(){this.onClick&&this.onClick(this.closeToast),this.closeOnClick&&(!this.beingDragged||this.dragStart===this.dragPos.x)&&this.closeToast()},timeoutHandler(){this.closeToast()},hoverPause(){this.pauseOnHover&&(this.isRunning=!1)},hoverPlay(){this.pauseOnHover&&(this.isRunning=!0)},focusPause(){this.isRunning=!1},focusPlay(){this.isRunning=!0},focusSetup(){addEventListener("blur",this.focusPause),addEventListener("focus",this.focusPlay)},focusCleanup(){removeEventListener("blur",this.focusPause),removeEventListener("focus",this.focusPlay)},draggableSetup(){const e=this.$el;e.addEventListener("touchstart",this.onDragStart,{passive:!0}),e.addEventListener("mousedown",this.onDragStart),addEventListener("touchmove",this.onDragMove,{passive:!1}),addEventListener("mousemove",this.onDragMove),addEventListener("touchend",this.onDragEnd),addEventListener("mouseup",this.onDragEnd)},draggableCleanup(){const e=this.$el;e.removeEventListener("touchstart",this.onDragStart),e.removeEventListener("mousedown",this.onDragStart),removeEventListener("touchmove",this.onDragMove),removeEventListener("mousemove",this.onDragMove),removeEventListener("touchend",this.onDragEnd),removeEventListener("mouseup",this.onDragEnd)},onDragStart(e){this.beingDragged=!0,this.dragPos={x:dc(e),y:$2(e)},this.dragStart=dc(e),this.dragRect=this.$el.getBoundingClientRect()},onDragMove(e){this.beingDragged&&(e.preventDefault(),this.isRunning&&(this.isRunning=!1),this.dragPos={x:dc(e),y:$2(e)})},onDragEnd(){this.beingDragged&&(Math.abs(this.dragDelta)>=this.removalDistance?(this.disableTransitions=!0,this.$nextTick(()=>this.closeToast())):setTimeout(()=>{this.beingDragged=!1,k2(this.dragRect)&&this.pauseOnHover&&this.dragRect.bottom>=this.dragPos.y&&this.dragPos.y>=this.dragRect.top&&this.dragRect.left<=this.dragPos.x&&this.dragPos.x<=this.dragRect.right?this.isRunning=!1:this.isRunning=!0}))}}}),iW=["role"];function sW(e,t){const r=(0,n.resolveComponent)("Icon"),o=(0,n.resolveComponent)("CloseButton"),a=(0,n.resolveComponent)("ProgressBar");return(0,n.openBlock)(),(0,n.createElementBlock)("div",{class:(0,n.normalizeClass)(e.classes),style:(0,n.normalizeStyle)(e.draggableStyle),onClick:t[0]||(t[0]=(...l)=>e.clickHandler&&e.clickHandler(...l)),onMouseenter:t[1]||(t[1]=(...l)=>e.hoverPause&&e.hoverPause(...l)),onMouseleave:t[2]||(t[2]=(...l)=>e.hoverPlay&&e.hoverPlay(...l))},[e.icon?((0,n.openBlock)(),(0,n.createBlock)(r,{key:0,"custom-icon":e.icon,type:e.type},null,8,["custom-icon","type"])):(0,n.createCommentVNode)("v-if",!0),(0,n.createElementVNode)("div",{role:e.accessibility.toastRole||"alert",class:(0,n.normalizeClass)(e.bodyClasses)},[typeof e.content=="string"?((0,n.openBlock)(),(0,n.createElementBlock)(n.Fragment,{key:0},[(0,n.createTextVNode)((0,n.toDisplayString)(e.content),1)],2112)):((0,n.openBlock)(),(0,n.createBlock)((0,n.resolveDynamicComponent)(e.getVueComponentFromObj(e.content)),(0,n.mergeProps)({key:1,"toast-id":e.id},e.hasProp(e.content,"props")?e.content.props:{},(0,n.toHandlers)(e.hasProp(e.content,"listeners")?e.content.listeners:{}),{onCloseToast:e.closeToast}),null,16,["toast-id","onCloseToast"]))],10,iW),e.closeButton?((0,n.openBlock)(),(0,n.createBlock)(o,{key:1,component:e.closeButton,"class-names":e.closeButtonClassName,"show-on-hover":e.showCloseButtonOnHover,"aria-label":e.accessibility.closeButtonLabel,onClick:(0,n.withModifiers)(e.closeToast,["stop"])},null,8,["component","class-names","show-on-hover","aria-label","onClick"])):(0,n.createCommentVNode)("v-if",!0),e.timeout?((0,n.openBlock)(),(0,n.createBlock)(a,{key:2,"is-running":e.isRunning,"hide-progress-bar":e.hideProgressBar,timeout:e.timeout,onCloseToast:e.timeoutHandler},null,8,["is-running","hide-progress-bar","timeout","onCloseToast"])):(0,n.createCommentVNode)("v-if",!0)],38)}hh.render=sW;var cW=hh,gh=(0,n.defineComponent)({name:"VtTransition",props:ar.TRANSITION,emits:["leave"],methods:{hasProp:Un,leave(e){e instanceof HTMLElement&&(e.style.left=e.offsetLeft+"px",e.style.top=e.offsetTop+"px",e.style.width=getComputedStyle(e).width,e.style.position="absolute")}}});function uW(e,t){return(0,n.openBlock)(),(0,n.createBlock)(n.TransitionGroup,{tag:"div","enter-active-class":e.transition.enter?e.transition.enter:`${e.transition}-enter-active`,"move-class":e.transition.move?e.transition.move:`${e.transition}-move`,"leave-active-class":e.transition.leave?e.transition.leave:`${e.transition}-leave-active`,onLeave:e.leave},{default:(0,n.withCtx)(()=>[(0,n.renderSlot)(e.$slots,"default")]),_:3},8,["enter-active-class","move-class","leave-active-class","onLeave"])}gh.render=uW;var vh=(0,n.defineComponent)({name:"VueToastification",devtools:{hide:!0},components:{Toast:cW,VtTransition:gh},props:Object.assign({},ar.CORE_TOAST,ar.CONTAINER,ar.TRANSITION),data(){return{count:0,positions:Object.values(qa),toasts:{},defaults:{}}},computed:{toastArray(){return Object.values(this.toasts)},filteredToasts(){return this.defaults.filterToasts(this.toastArray)}},beforeMount(){const e=this.eventBus;e.on(Kt.ADD,this.addToast),e.on(Kt.CLEAR,this.clearToasts),e.on(Kt.DISMISS,this.dismissToast),e.on(Kt.UPDATE,this.updateToast),e.on(Kt.UPDATE_DEFAULTS,this.updateDefaults),this.defaults=this.$props},mounted(){this.setup(this.container)},methods:{async setup(e){ms(e)&&(e=await e()),IH(this.$el),e.appendChild(this.$el)},setToast(e){zr(e.id)||(this.toasts[e.id]=e)},addToast(e){e.content=VH(e.content);const t=Object.assign({},this.defaults,e.type&&this.defaults.toastDefaults&&this.defaults.toastDefaults[e.type],e),r=this.defaults.filterBeforeCreate(t,this.toastArray);r&&this.setToast(r)},dismissToast(e){const t=this.toasts[e];!zr(t)&&!zr(t.onClose)&&t.onClose(),delete this.toasts[e]},clearToasts(){Object.keys(this.toasts).forEach(e=>{this.dismissToast(e)})},getPositionToasts(e){const t=this.filteredToasts.filter(r=>r.position===e).slice(0,this.defaults.maxToasts);return this.defaults.newestOnTop?t.reverse():t},updateDefaults(e){zr(e.container)||this.setup(e.container),this.defaults=Object.assign({},this.defaults,e)},updateToast({id:e,options:t,create:r}){this.toasts[e]?(t.timeout&&t.timeout===this.toasts[e].timeout&&t.timeout++,this.setToast(Object.assign({},this.toasts[e],t))):r&&this.addToast(Object.assign({},{id:e},t))},getClasses(e){return[`${tr}__container`,e].concat(this.defaults.containerClassName)}}});function dW(e,t){const r=(0,n.resolveComponent)("Toast"),o=(0,n.resolveComponent)("VtTransition");return(0,n.openBlock)(),(0,n.createElementBlock)("div",null,[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(e.positions,a=>((0,n.openBlock)(),(0,n.createElementBlock)("div",{key:a},[(0,n.createVNode)(o,{transition:e.defaults.transition,class:(0,n.normalizeClass)(e.getClasses(a))},{default:(0,n.withCtx)(()=>[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(e.getPositionToasts(a),l=>((0,n.openBlock)(),(0,n.createBlock)(r,(0,n.mergeProps)({key:l.id},l),null,16))),128))]),_:2},1032,["transition","class"])]))),128))])}vh.render=dW;var fW=vh,x2=(e={},t=!0)=>{const r=e.eventBus=e.eventBus||new hs;t&&(0,n.nextTick)(()=>{const l=(0,n.createApp)(fW,rh({},e)),i=l.mount(document.createElement("div")),c=e.onMounted;if(zr(c)||c(i,l),e.shareAppContext){const s=e.shareAppContext;s===!0||(l._context.components=s._context.components,l._context.directives=s._context.directives,l._context.mixins=s._context.mixins,l._context.provides=s._context.provides,l.config.globalProperties=s.config.globalProperties)}});const o=(l,i)=>{const c=Object.assign({},{id:PH(),type:zt.DEFAULT},i,{content:l});return r.emit(Kt.ADD,c),c.id};o.clear=()=>r.emit(Kt.CLEAR,void 0),o.updateDefaults=l=>{r.emit(Kt.UPDATE_DEFAULTS,l)},o.dismiss=l=>{r.emit(Kt.DISMISS,l)};function a(l,{content:i,options:c},s=!1){const u=Object.assign({},c,{content:i});r.emit(Kt.UPDATE,{id:l,options:u,create:s})}return o.update=a,o.success=(l,i)=>o(l,Object.assign({},i,{type:zt.SUCCESS})),o.info=(l,i)=>o(l,Object.assign({},i,{type:zt.INFO})),o.error=(l,i)=>o(l,Object.assign({},i,{type:zt.ERROR})),o.warning=(l,i)=>o(l,Object.assign({},i,{type:zt.WARNING})),o},mW=()=>{const e=()=>{};return new Proxy(e,{get(){return e}})};function Ya(e){return OH()?RH(e)?x2({eventBus:e},!1):x2(e,!0):mW()}var gs=Symbol("VueToastification"),qd=new hs,pW=(e,t)=>{t?.shareAppContext===!0&&(t.shareAppContext=e);const r=Ya(rh({eventBus:qd},t));e.provide(gs,r)},hW=e=>{const t=Ya(e);(0,n.getCurrentInstance)()&&(0,n.provide)(gs,t)},Lh=e=>{if(e)return Ya(e);const t=(0,n.getCurrentInstance)()?(0,n.inject)(gs,void 0):void 0;return t||Ya(qd)},yh=pW,gW={key:0,class:"custom-toast__icon"},vW={class:"custom-toast__content"},LW=(0,n.defineComponent)({name:"BglToast",__name:"Toast",props:{message:{},type:{},info:{type:Boolean},success:{type:Boolean},warning:{type:Boolean},error:{type:Boolean},showIcon:{type:Boolean,default:!0},showCloseButton:{type:Boolean,default:!0},closeToast:{}},setup(e){const t=e,r=(0,n.computed)(()=>t.type?t.type:t.error?"error":t.warning?"warning":t.success?"success":"info");return(o,a)=>((0,n.openBlock)(),(0,n.createElementBlock)("div",{class:(0,n.normalizeClass)(["custom-toast",`custom-toast--${r.value}`])},[e.showIcon?((0,n.openBlock)(),(0,n.createElementBlock)("div",gW,[r.value==="success"?((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(_e),{key:0,icon:"check_circle"})):(0,n.createCommentVNode)("",!0),r.value==="error"?((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(_e),{key:1,icon:"dangerous"})):(0,n.createCommentVNode)("",!0),r.value==="warning"?((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(_e),{key:2,icon:"report"})):(0,n.createCommentVNode)("",!0),r.value==="info"?((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(_e),{key:3,icon:"info"})):(0,n.createCommentVNode)("",!0)])):(0,n.createCommentVNode)("",!0),(0,n.createElementVNode)("div",vW,(0,n.toDisplayString)(e.message),1),e.showCloseButton?((0,n.openBlock)(),(0,n.createElementBlock)("button",{key:1,class:"custom-toast__close",onClick:a[0]||(a[0]=(...l)=>e.closeToast&&e.closeToast(...l))},[(0,n.createVNode)((0,n.unref)(_e),{icon:"close"})])):(0,n.createCommentVNode)("",!0)],2))}}),la=LW,yW=yh||nh,{POSITION:bW}=nh,fo=Lh;const bh=Symbol("toast");var Ni=null;function _W(){const e=(0,n.inject)(bh,null);if(!e){if(Ni)return Ni;throw new Error("Toast API not provided. Make sure ToastPlugin is installed via app.use(ToastPlugin)")}return e}function wW(){if(typeof document>"u")return;let e=document.getElementById("bgl-toast-container");e||(e=document.createElement("div"),e.setAttribute("popover","manual"),e.setAttribute("id","bgl-toast-container"),document.body.appendChild(e));try{e.hidePopover()}catch{}try{e.showPopover()}catch{}return e}const _h={install:(e,t={})=>{const r=wW(),o={position:bW.TOP_RIGHT,timeout:5e3,closeOnClick:!0,pauseOnFocusLoss:!0,pauseOnHover:!0,draggable:!0,draggablePercent:.6,showCloseButtonOnHover:!1,hideProgressBar:!0,closeButton:!1,icon:!1,rtl:!1,transition:"Vue-Toastification__fade",maxToasts:5,newestOnTop:!0,toastClassName:"custom-toast-wrapper",bodyClassName:"custom-toast-body",...r?{container:r}:{},...t};e.use(yW,o);function a(){const i=typeof document<"u"?document.getElementById("bgl-toast-container"):null;if(i){try{i.hidePopover()}catch{}try{i.showPopover()}catch{}}}const l={success:(i,c)=>(a(),fo()({component:la,props:{message:i,type:"success"}},c)),error:(i,c)=>(a(),fo()({component:la,props:{message:i,type:"error"}},c)),info:(i,c)=>(a(),fo()({component:la,props:{message:i,type:"info"}},c)),warning:(i,c)=>(a(),fo()({component:la,props:{message:i,type:"warning"}},c)),show:(i,c)=>(a(),fo()({component:la,props:{message:i,type:"info"}},c)),clear:()=>{fo().clear()}};Ni||(Ni=l),e.provide(bh,l)}};var vs=class extends Event{oldState;newState;constructor(e,{oldState:t="",newState:r="",...o}={}){super(e,o),this.oldState=String(t||""),this.newState=String(r||"")}},T2=new WeakMap;function wh(e,t,r){T2.set(e,setTimeout(()=>{T2.has(e)&&e.dispatchEvent(new vs("toggle",{cancelable:!1,oldState:t,newState:r}))},0))}var Yd=globalThis.ShadowRoot||function(){},kW=globalThis.HTMLDialogElement||function(){},Xl=new WeakMap,nr=new WeakMap,ln=new WeakMap,Fo=new WeakMap;function Bi(e){return Fo.get(e)||"hidden"}var Mi=new WeakMap;function Za(e){return[...e].pop()}function $W(e){const t=e.popoverTargetElement;if(!(t instanceof HTMLElement))return;const r=Bi(t);e.popoverTargetAction==="show"&&r==="showing"||e.popoverTargetAction==="hide"&&r==="hidden"||(r==="showing"?Uo(t,!0,!0):Wr(t,!1)&&(Mi.set(t,e),xu(t)))}function Wr(e,t){return!(e.popover!=="auto"&&e.popover!=="manual"&&e.popover!=="hint"||!e.isConnected||t&&Bi(e)!=="showing"||!t&&Bi(e)!=="hidden"||e instanceof kW&&e.hasAttribute("open")||document.fullscreenElement===e)}function N2(e){if(!e)return 0;const t=nr.get(document)||new Set,r=ln.get(document)||new Set;return r.has(e)?[...r].indexOf(e)+t.size+1:t.has(e)?[...t].indexOf(e)+1:0}function EW(e){const t=kh(e),r=SW(e);return N2(t)>N2(r)?t:r}function Xa(e){let t;const r=ln.get(e)||new Set,o=nr.get(e)||new Set,a=r.size>0?r:o.size>0?o:null;return a?(t=Za(a),t.isConnected?t:(a.delete(t),Xa(e))):null}function B2(e){for(const t of e||[])if(!t.isConnected)e.delete(t);else return t;return null}function zo(e){return typeof e.getRootNode=="function"?e.getRootNode():e.parentNode?zo(e.parentNode):e}function kh(e){for(;e;){if(e instanceof HTMLElement&&e.popover==="auto"&&Fo.get(e)==="showing")return e;if(e=e instanceof Element&&e.assignedSlot||e.parentElement||zo(e),e instanceof Yd&&(e=e.host),e instanceof Document)return}}function SW(e){for(;e;){const t=e.popoverTargetElement;if(t instanceof HTMLElement)return t;if(e=e.parentElement||zo(e),e instanceof Yd&&(e=e.host),e instanceof Document)return}}function M2(e,t){const r=new Map;let o=0;for(const i of t||[])r.set(i,o),o+=1;r.set(e,o),o+=1;let a=null;function l(i){if(!i)return;let c=!1,s=null,u=null;for(;!c;){if(s=kh(i)||null,s===null||!r.has(s))return;(e.popover==="hint"||s.popover==="auto")&&(c=!0),c||(i=s.parentElement)}u=r.get(s),(a===null||r.get(a)<u)&&(a=s)}return l(e.parentElement||zo(e)),a}function CW(e){return e.hidden||e instanceof Yd||(e instanceof HTMLButtonElement||e instanceof HTMLInputElement||e instanceof HTMLSelectElement||e instanceof HTMLTextAreaElement||e instanceof HTMLOptGroupElement||e instanceof HTMLOptionElement||e instanceof HTMLFieldSetElement)&&e.disabled||e instanceof HTMLInputElement&&e.type==="hidden"||e instanceof HTMLAnchorElement&&e.href===""?!1:typeof e.tabIndex=="number"&&e.tabIndex!==-1}function xW(e){if(e.shadowRoot&&e.shadowRoot.delegatesFocus!==!0)return null;let t=e;t.shadowRoot&&(t=t.shadowRoot);let r=t.querySelector("[autofocus]");if(r)return r;{const l=t.querySelectorAll("slot");for(const i of l){const c=i.assignedElements({flatten:!0});for(const s of c){if(s.hasAttribute("autofocus"))return s;if(r=s.querySelector("[autofocus]"),r)return r}}}const o=e.ownerDocument.createTreeWalker(t,NodeFilter.SHOW_ELEMENT);let a=o.currentNode;for(;a;){if(CW(a))return a;a=o.nextNode()}}function TW(e){var t;(t=xW(e))==null||t.focus()}var Di=new WeakMap;function xu(e){if(!Wr(e,!1))return;const t=e.ownerDocument;if(!e.dispatchEvent(new vs("beforetoggle",{cancelable:!0,oldState:"closed",newState:"open"}))||!Wr(e,!1))return;let r=!1;const o=e.popover;let a=null;const l=M2(e,nr.get(t)||new Set),i=M2(e,ln.get(t)||new Set);if(o==="auto"&&(Tu(ln.get(t)||new Set,r,!0),jr(l||t,r,!0),a="auto"),o==="hint"&&(i?(jr(i,r,!0),a="hint"):(Tu(ln.get(t)||new Set,r,!0),l?(jr(l,r,!0),a="auto"):a="hint")),o==="auto"||o==="hint"){if(o!==e.popover||!Wr(e,!1))return;Xa(t)||(r=!0),a==="auto"?(nr.has(t)||nr.set(t,new Set),nr.get(t).add(e)):a==="hint"&&(ln.has(t)||ln.set(t,new Set),ln.get(t).add(e))}Di.delete(e);const c=t.activeElement;e.classList.add(":popover-open"),Fo.set(e,"showing"),Xl.has(t)||Xl.set(t,new Set),Xl.get(t).add(e),$h(Mi.get(e),!0),TW(e),r&&c&&e.popover==="auto"&&Di.set(e,c),wh(e,"closed","open")}function Uo(e,t=!1,r=!1){var o,a;if(!Wr(e,!0))return;const l=e.ownerDocument;if(["auto","hint"].includes(e.popover)&&(jr(e,t,r),!Wr(e,!0)))return;const i=nr.get(l)||new Set,c=i.has(e)&&Za(i)===e;if($h(Mi.get(e),!1),Mi.delete(e),r&&(e.dispatchEvent(new vs("beforetoggle",{oldState:"open",newState:"closed"})),c&&Za(i)!==e&&jr(e,t,r),!Wr(e,!0)))return;(o=Xl.get(l))==null||o.delete(e),i.delete(e),(a=ln.get(l))==null||a.delete(e),e.classList.remove(":popover-open"),Fo.set(e,"hidden"),r&&wh(e,"open","closed");const s=Di.get(e);s&&(Di.delete(e),t&&s.focus())}function NW(e,t=!1,r=!1){let o=Xa(e);for(;o;)Uo(o,t,r),o=Xa(e)}function Tu(e,t=!1,r=!1){let o=B2(e);for(;o;)Uo(o,t,r),o=B2(e)}function D2(e,t,r,o){let a=!1,l=!1;for(;a||!l;){l=!0;let i=null,c=!1;for(const s of t)if(s===e)c=!0;else if(c){i=s;break}if(!i)return;for(;Bi(i)==="showing"&&t.size;)Uo(Za(t),r,o);t.has(e)&&Za(t)!==e&&(a=!0),a&&(o=!1)}}function jr(e,t,r){var o,a;const l=e.ownerDocument||e;if(e instanceof Document)return NW(l,t,r);if((o=ln.get(l))!=null&&o.has(e)){D2(e,ln.get(l),t,r);return}Tu(ln.get(l)||new Set,t,r),(a=nr.get(l))!=null&&a.has(e)&&D2(e,nr.get(l),t,r)}var mc=new WeakMap;function A2(e){if(!e.isTrusted)return;const t=e.composedPath()[0];if(!t)return;const r=t.ownerDocument;if(!Xa(r))return;const o=EW(t);if(o&&e.type==="pointerdown")mc.set(r,o);else if(e.type==="pointerup"){const a=mc.get(r)===o;mc.delete(r),a&&jr(o||r,!1,!0)}}var pc=new WeakMap;function $h(e,t=!1){if(!e)return;pc.has(e)||pc.set(e,e.getAttribute("aria-expanded"));const r=e.popoverTargetElement;if(r instanceof HTMLElement&&r.popover==="auto")e.setAttribute("aria-expanded",String(t));else{const o=pc.get(e);o?e.setAttribute("aria-expanded",o):e.removeAttribute("aria-expanded")}}var P2=globalThis.ShadowRoot||function(){};function BW(){return typeof HTMLElement<"u"&&typeof HTMLElement.prototype=="object"&&"popover"in HTMLElement.prototype}function Pr(e,t,r){const o=e[t];Object.defineProperty(e,t,{value(a){return o.call(this,r(a))}})}var MW=/(^|[^\\]):popover-open\b/g;function DW(){return typeof globalThis.CSSLayerBlockRule=="function"}function AW(){const e=DW();return`
468
468
  ${e?"@layer popover-polyfill {":""}
469
469
  :where([popover]) {
470
470
  position: fixed;
package/dist/index.mjs CHANGED
@@ -51749,7 +51749,7 @@ function cG(e) {
51749
51749
  o.type = "string";
51750
51750
  break;
51751
51751
  case "file":
51752
- o.type = ["string", "array"], o.items = { type: "string" };
51752
+ r.fileMultiple === !0 ? (o.type = "array", o.items = { type: "string" }) : o.type = "string";
51753
51753
  break;
51754
51754
  case "number":
51755
51755
  case "range":
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@bagelink/vue",
3
3
  "type": "module",
4
- "version": "1.15.362",
4
+ "version": "1.15.364",
5
5
  "description": "Bagel core sdk packages",
6
6
  "author": {
7
7
  "name": "Bagel Studio",
@@ -306,8 +306,12 @@ export function fieldsToSchema(fields: FormField[]): JSONSchemaObject {
306
306
  prop.type = 'string'
307
307
  break
308
308
  case 'file':
309
- prop.type = ['string', 'array']
310
- prop.items = { type: 'string' }
309
+ if (field.fileMultiple === true) {
310
+ prop.type = 'array'
311
+ prop.items = { type: 'string' }
312
+ } else {
313
+ prop.type = 'string'
314
+ }
311
315
  break
312
316
  case 'number':
313
317
  case 'range':