ablok-components 0.1.74 → 0.1.76

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.
@@ -279,7 +279,7 @@ const sG = /* @__PURE__ */ nS(rS, [["render", sS]]), oS = ["type", "disabled"],
279
279
  };
280
280
  }
281
281
  });
282
- const aS = { class: "input-group input__input-group" }, lS = ["type", "id", "name", "placeholder", "pattern", "disabled", "read-only", "required", "maxlength", "true-value", "false-value", "aria-label"], uS = ["for", "innerHTML"], aG = /* @__PURE__ */ JA({
282
+ const aS = { class: "input-group input__input-group" }, lS = ["type", "id", "name", "placeholder", "pattern", "disabled", "read-only", "required", "maxlength", "true-value", "false-value", "aria-label", "role", "autocomplete"], uS = ["for", "innerHTML"], aG = /* @__PURE__ */ JA({
283
283
  __name: "base-input",
284
284
  props: {
285
285
  modelValue: {
@@ -336,6 +336,14 @@ const aS = { class: "input-group input__input-group" }, lS = ["type", "id", "nam
336
336
  falseValue: {
337
337
  type: null,
338
338
  default: !1
339
+ },
340
+ role: {
341
+ type: String,
342
+ default: "presentation"
343
+ },
344
+ autocomplete: {
345
+ type: String,
346
+ default: "off"
339
347
  }
340
348
  },
341
349
  emits: ["update:modelValue"],
@@ -369,7 +377,9 @@ const aS = { class: "input-group input__input-group" }, lS = ["type", "id", "nam
369
377
  class: IA(["form-control", {
370
378
  "form-check-input": t.type === "checkbox"
371
379
  }]),
372
- "aria-label": t.label
380
+ "aria-label": t.label,
381
+ role: t.role,
382
+ autocomplete: t.autocomplete
373
383
  }, null, 10, lS), [
374
384
  [U1, z(n)]
375
385
  ]),
@@ -22440,6 +22450,7 @@ const HN = { class: "upload-group" }, _N = ["innerHTML"], CG = /* @__PURE__ */ J
22440
22450
  __name: "asset-uploader",
22441
22451
  props: {
22442
22452
  modelValue: {
22453
+ type: Array,
22443
22454
  default: () => []
22444
22455
  },
22445
22456
  name: {
@@ -22506,9 +22517,9 @@ const HN = { class: "upload-group" }, _N = ["innerHTML"], CG = /* @__PURE__ */ J
22506
22517
  set(r) {
22507
22518
  A("update:modelValue", r.map(
22508
22519
  (i, s) => ({
22509
- mediaType: i instanceof Object ? i.path && e.mediaTypeMap[i.path.split(".")[1]] : i.includes("data:image/svg") ? "Svg" : i.includes("data:image") ? "Image" : "Video",
22520
+ mediaType: e.modelValue[s] && e.modelValue[s].mediaType || i.includes("data:image") ? i.includes("data:image/svg") ? "Svg" : "Image" : e.mediaTypeMap[i.split(".")[1]],
22510
22521
  src: i instanceof Object ? `/media/${i.path}` : i,
22511
- name: `${e.name}-${s}`,
22522
+ name: e.modelValue[s] && e.modelValue[s].name || `${e.name}-${s}`,
22512
22523
  ...e.type ? { type: e.type } : {}
22513
22524
  })
22514
22525
  ));
@@ -1,4 +1,4 @@
1
- (function(kA,h){typeof exports=="object"&&typeof module<"u"?h(exports,require("vue"),require("@popperjs/core")):typeof define=="function"&&define.amd?define(["exports","vue","@popperjs/core"],h):(kA=typeof globalThis<"u"?globalThis:kA||self,h(kA.AblokComponents={},kA.Vue,kA.core))})(this,function(kA,h,Xd){"use strict";const Iy={class:"icon",preserveAspectRatio:"xMaxYMin"},Sy=["xlink:href"],Ty=h.defineComponent({__name:"svg-icon",props:{basePath:{type:String,default:"/symbol-defs.svg"},prefix:{type:String,default:"icon-"},symbol:{type:String,default:""},size:{type:String,default:"default"}},setup(t){return(A,e)=>(h.openBlock(),h.createElementBlock("i",{class:h.normalizeClass(["svg-icon",{[`svg-icon--${t.size}`]:t.size}])},[(h.openBlock(),h.createElementBlock("svg",Iy,[h.createElementVNode("use",{"xlink:href":`${t.basePath}#${t.prefix}${t.symbol}`,"xmlns:xlink":"http://www.w3.org/1999/xlink",x:"0",y:"0"},null,8,Sy)]))],2))}}),C2="",xy={class:"loading-spinner d-block"},Hy={class:"loading-spinner__animation"},_y={class:"d-block",version:"1.1",id:"L9",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 100 100","enable-background":"new 0 0 0 0","xml:space":"preserve"},Ly=["fill"],Oy=[h.createElementVNode("animateTransform",{attributeName:"transform",attributeType:"XML",type:"rotate",dur:"1s",from:"0 50 50",to:"360 50 50",repeatCount:"indefinite"},null,-1)],ky=h.defineComponent({__name:"loading-spinner",props:{color:{type:String,default:"#fff"}},setup(t){return(A,e)=>(h.openBlock(),h.createElementBlock("span",xy,[h.createElementVNode("span",Hy,[(h.openBlock(),h.createElementBlock("svg",_y,[h.createElementVNode("path",{fill:t.color,d:"M73,50c0-12.7-10.3-23-23-23S27,37.3,27,50 M30.9,50c0-10.5,8.5-19.1,19.1-19.1S69.1,39.5,69.1,50"},Oy,8,Ly)]))]),h.renderSlot(A.$slots,"default")]))}}),Q2="",My=h.defineComponent({__name:"base-headline",props:{tag:null,size:null,variant:null,text:null,className:null},setup(t){const A=t,e=h.computed(()=>A.tag||"p");return(n,r)=>(h.openBlock(),h.createBlock(h.resolveDynamicComponent(h.unref(e)),{class:h.normalizeClass(["headline",`${t.size} headline--${t.size}${t.className||""}`])},{default:h.withCtx(()=>[h.renderSlot(n.$slots,"default",{},()=>[h.createTextVNode(h.toDisplayString(t.text),1)])]),_:3},8,["class"]))}}),Dy=["innerHTML"],Ny=h.defineComponent({__name:"base-paragraph",props:{size:null,variant:null,text:null,className:null},setup(t){return(A,e)=>(h.openBlock(),h.createElementBlock("div",{class:h.normalizeClass(["base-paragraph",`${t.size} ${t.className||""}`])},[h.renderSlot(A.$slots,"default",{},()=>[h.createElementVNode("p",{innerHTML:t.text},null,8,Dy)])],2))}});function we(){return(new Date().valueOf()+Math.random()).toString(36).replace(".","")}const Ry={class:"accordion-item"},Ky=["id"],Vy=["data-bs-target","aria-controls"],Py={class:"flex-grow-1"},Gy=["id","aria-labelledby","data-bs-parent"],Wy={class:"accordion-body"},$y=["innerHTML"],Jy=h.defineComponent({__name:"accordion-item",props:{id:{type:String,default:()=>we()},modelValue:{type:Boolean,default:!1},title:{type:String,default:"Accordion Title"},body:{type:String,default:"<p>Lorem ipsum dolor sit amet consectetur, adipisicing elit. Nisi aut, nobis inventore repudiandae quo laboriosam. Dicta placeat ullam harum optio expedita. Harum fugiat suscipit sapiente quos, molestias neque eaque omnis?</p>"},parent:{type:String,default:""}},emits:["update:modelValue"],setup(t,{emit:A}){const e=t;function n(){A("update:modelValue",!e.modelValue)}return(r,i)=>(h.openBlock(),h.createElementBlock("div",Ry,[h.createElementVNode("div",{class:"accordion-header",id:`heading${t.id}`},[h.createElementVNode("button",{class:h.normalizeClass(["accordion-button",!t.modelValue&&"collapsed"]),type:"button","data-bs-toggle":"collapse","data-bs-target":`#target${t.id}`,"aria-expanded":"true","aria-controls":`target${t.id}`,onClick:n},[h.renderSlot(r.$slots,"toggle",{},()=>[h.createElementVNode("span",Py,h.toDisplayString(t.title),1)])],10,Vy)],8,Ky),h.createElementVNode("div",{class:h.normalizeClass(["accordion-collapse collapse",t.modelValue&&"show"]),id:`target${t.id}`,"aria-labelledby":`heading${t.id}`,"data-bs-parent":t.parent},[h.createElementVNode("div",Wy,[h.renderSlot(r.$slots,"body",{},()=>[h.createElementVNode("article",{innerHTML:t.body},null,8,$y)])])],10,Gy)]))}}),E2="",Xy=(t,A)=>{const e=t.__vccOpts||t;for(const[n,r]of A)e[n]=r;return e},Yy={},zy={class:"accordion"};function qy(t,A){return h.openBlock(),h.createElementBlock("div",zy,[h.renderSlot(t.$slots,"default")])}const Zy=Xy(Yy,[["render",qy]]),jy=["type","disabled"],AQ=h.defineComponent({__name:"base-button",props:{type:{type:null},caption:{type:String},variant:{type:String},color:{type:String,default:"primary"},size:{type:String},icon:{type:String},disabled:{type:Boolean,default:!1},pending:{type:Boolean,default:!1},outlined:{type:Boolean,default:!1},rounded:{type:Boolean,default:!1},circle:{type:Boolean,default:!1}},setup(t){const A=t,e=h.computed(()=>A.caption&&!A.circle);return(n,r)=>{const i=h.resolveComponent("svg-icon");return h.openBlock(),h.createElementBlock("button",{type:t.type,disabled:t.disabled,class:h.normalizeClass(["btn",{disabled:t.disabled,pending:t.pending,rounded:t.rounded,"rounded-circle":t.circle,[`btn-${t.color}`]:!t.outlined,[`btn-outline-${t.color}`]:t.outlined,"x-large":t.size==="x-large",large:t.size==="large",small:t.size==="small","x-small":t.size==="x-small"}])},[h.renderSlot(n.$slots,"default",{},()=>[t.icon?(h.openBlock(),h.createBlock(i,{key:0,symbol:t.icon,class:"base-button__caption"},null,8,["symbol"])):h.createCommentVNode("",!0),h.unref(e)?(h.openBlock(),h.createElementBlock("span",{key:1,class:h.normalizeClass(["base-button__caption",{"icon-padding":t.icon}])},h.toDisplayString(t.caption),3)):h.createCommentVNode("",!0)])],10,jy)}}}),F2="",eQ={class:"input-group input__input-group"},tQ=["type","id","name","placeholder","pattern","disabled","read-only","required","maxlength","true-value","false-value","aria-label"],nQ=["for","innerHTML"],rQ=h.defineComponent({__name:"base-input",props:{modelValue:{type:[String,Number,Boolean,Date],default:""},type:{type:String,default:"text"},name:{type:String,default:()=>we()},id:{type:String,default:()=>we()},label:{type:String,default:""},placeholder:{type:String,default:""},variant:{type:String,default:""},disabled:{type:Boolean,default:!1},readOnly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},maxlength:{type:Number},pattern:{type:String,default:null},trueValue:{type:null,default:!0},falseValue:{type:null,default:!1}},emits:["update:modelValue"],setup(t,{emit:A}){const e=t,n=h.computed({get(){return e.modelValue},set(r){A("update:modelValue",r)}});return(r,i)=>(h.openBlock(),h.createElementBlock("div",{class:h.normalizeClass(["input",`input--${t.type}`])},[h.createElementVNode("div",eQ,[h.renderSlot(r.$slots,"input-prepend",{slotScope:"props"}),h.withDirectives(h.createElementVNode("input",{"onUpdate:modelValue":i[0]||(i[0]=s=>h.isRef(n)?n.value=s:null),type:t.type==="color"?"text":t.type,id:t.id,name:t.name,placeholder:t.placeholder,pattern:t.pattern,disabled:t.disabled,"read-only":t.readOnly,required:t.required,maxlength:t.maxlength,"true-value":t.trueValue,"false-value":t.falseValue,class:h.normalizeClass(["form-control",{"form-check-input":t.type==="checkbox"}]),"aria-label":t.label},null,10,tQ),[[h.vModelDynamic,h.unref(n)]]),h.renderSlot(r.$slots,"input-append",{slotScope:"props"})]),h.renderSlot(r.$slots,"label",{},()=>[t.label?(h.openBlock(),h.createElementBlock("label",{key:0,for:t.id,class:h.normalizeClass(["input__label",{"form-check-label":t.type==="checkbox"}]),innerHTML:`${t.label}${t.required?" *":""}`},null,10,nQ)):h.createCommentVNode("",!0)])],2))}}),U2="",iQ={class:"input input--textarea"},sQ=["type","id","name","placeholder","pattern","disabled","read-only","required","maxlength","aria-label"],oQ=["for","innerHTML"],aQ=h.defineComponent({__name:"input-textarea",props:{modelValue:{type:String,default:""},type:{type:String,default:"text"},name:{type:String,default:()=>we()},id:{type:String,default:()=>we()},label:{type:String,default:""},placeholder:{type:String,default:""},variant:{type:String,default:""},disabled:{type:Boolean,default:!1},readOnly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},maxlength:{type:Number},pattern:{type:String,default:null},checked:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(t,{emit:A}){const e=t,n=h.computed({get(){return e.modelValue},set(r){A("update:modelValue",r)}});return(r,i)=>(h.openBlock(),h.createElementBlock("div",iQ,[h.renderSlot(r.$slots,"input-prepend"),h.withDirectives(h.createElementVNode("textarea",{"onUpdate:modelValue":i[0]||(i[0]=s=>h.isRef(n)?n.value=s:null),type:t.type,id:t.id,name:t.name,placeholder:t.placeholder,pattern:t.pattern,disabled:t.disabled,"read-only":t.readOnly,required:t.required,maxlength:t.maxlength,class:h.normalizeClass(["form-control",{}]),"aria-label":t.label},null,8,sQ),[[h.vModelText,h.unref(n)]]),h.renderSlot(r.$slots,"input-append"),h.renderSlot(r.$slots,"label",{},()=>[h.createElementVNode("label",{for:t.id,class:h.normalizeClass(["input__label",{"form-check-label":t.type==="checkbox"}]),innerHTML:`${t.label}${t.required?" *":""}`},null,10,oQ)])]))}}),lQ=["value","id","name","required","disabled","true-value","false-value"],cQ=["for","innerHTML"],uQ=h.createElementVNode("span",{class:"input__error"},"error",-1),fQ=h.defineComponent({__name:"input-checkbox",props:{id:{type:String},name:{type:String},label:{type:String},error:{type:String},disabled:{type:Boolean,default:!1},readOnly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},modelValue:{type:[Boolean,Array]},value:{type:[String,Object]},checked:{type:Boolean},trueValue:{type:null,default:!0},falseValue:{type:null,default:!1}},emits:["update:modelValue","update:checked"],setup(t,{emit:A}){const e=t,n=h.computed({get(){return e.modelValue||e.checked},set(r){A("update:checked",r),A("update:modelValue",r)}});return(r,i)=>(h.openBlock(),h.createElementBlock("div",{class:"form-check input input--checkbox",onClick:i[1]||(i[1]=h.withModifiers(s=>r.void,["stop"]))},[h.withDirectives(h.createElementVNode("input",{ref:"input","onUpdate:modelValue":i[0]||(i[0]=s=>h.isRef(n)?n.value=s:null),value:t.value,id:t.id,name:t.name,type:"checkbox",required:t.required,disabled:t.disabled,class:"form-check-input","true-value":t.trueValue,"false-value":t.falseValue},null,8,lQ),[[h.vModelCheckbox,h.unref(n)]]),h.createElementVNode("label",{class:"input__label form-check-label",for:t.id,innerHTML:t.label},null,8,cQ),uQ]))}}),b2=`:root,*:before,*:after{--border-color: #ced4da;--border-radius: .25rem}.input--checkbox{flex-flow:row;gap:.5rem}.input--checkbox input{order:0}
1
+ (function(kA,h){typeof exports=="object"&&typeof module<"u"?h(exports,require("vue"),require("@popperjs/core")):typeof define=="function"&&define.amd?define(["exports","vue","@popperjs/core"],h):(kA=typeof globalThis<"u"?globalThis:kA||self,h(kA.AblokComponents={},kA.Vue,kA.core))})(this,function(kA,h,Xd){"use strict";const Iy={class:"icon",preserveAspectRatio:"xMaxYMin"},Sy=["xlink:href"],Ty=h.defineComponent({__name:"svg-icon",props:{basePath:{type:String,default:"/symbol-defs.svg"},prefix:{type:String,default:"icon-"},symbol:{type:String,default:""},size:{type:String,default:"default"}},setup(t){return(A,e)=>(h.openBlock(),h.createElementBlock("i",{class:h.normalizeClass(["svg-icon",{[`svg-icon--${t.size}`]:t.size}])},[(h.openBlock(),h.createElementBlock("svg",Iy,[h.createElementVNode("use",{"xlink:href":`${t.basePath}#${t.prefix}${t.symbol}`,"xmlns:xlink":"http://www.w3.org/1999/xlink",x:"0",y:"0"},null,8,Sy)]))],2))}}),C2="",xy={class:"loading-spinner d-block"},Hy={class:"loading-spinner__animation"},_y={class:"d-block",version:"1.1",id:"L9",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 100 100","enable-background":"new 0 0 0 0","xml:space":"preserve"},Ly=["fill"],Oy=[h.createElementVNode("animateTransform",{attributeName:"transform",attributeType:"XML",type:"rotate",dur:"1s",from:"0 50 50",to:"360 50 50",repeatCount:"indefinite"},null,-1)],ky=h.defineComponent({__name:"loading-spinner",props:{color:{type:String,default:"#fff"}},setup(t){return(A,e)=>(h.openBlock(),h.createElementBlock("span",xy,[h.createElementVNode("span",Hy,[(h.openBlock(),h.createElementBlock("svg",_y,[h.createElementVNode("path",{fill:t.color,d:"M73,50c0-12.7-10.3-23-23-23S27,37.3,27,50 M30.9,50c0-10.5,8.5-19.1,19.1-19.1S69.1,39.5,69.1,50"},Oy,8,Ly)]))]),h.renderSlot(A.$slots,"default")]))}}),Q2="",My=h.defineComponent({__name:"base-headline",props:{tag:null,size:null,variant:null,text:null,className:null},setup(t){const A=t,e=h.computed(()=>A.tag||"p");return(n,r)=>(h.openBlock(),h.createBlock(h.resolveDynamicComponent(h.unref(e)),{class:h.normalizeClass(["headline",`${t.size} headline--${t.size}${t.className||""}`])},{default:h.withCtx(()=>[h.renderSlot(n.$slots,"default",{},()=>[h.createTextVNode(h.toDisplayString(t.text),1)])]),_:3},8,["class"]))}}),Dy=["innerHTML"],Ny=h.defineComponent({__name:"base-paragraph",props:{size:null,variant:null,text:null,className:null},setup(t){return(A,e)=>(h.openBlock(),h.createElementBlock("div",{class:h.normalizeClass(["base-paragraph",`${t.size} ${t.className||""}`])},[h.renderSlot(A.$slots,"default",{},()=>[h.createElementVNode("p",{innerHTML:t.text},null,8,Dy)])],2))}});function we(){return(new Date().valueOf()+Math.random()).toString(36).replace(".","")}const Ry={class:"accordion-item"},Ky=["id"],Vy=["data-bs-target","aria-controls"],Py={class:"flex-grow-1"},Gy=["id","aria-labelledby","data-bs-parent"],Wy={class:"accordion-body"},$y=["innerHTML"],Jy=h.defineComponent({__name:"accordion-item",props:{id:{type:String,default:()=>we()},modelValue:{type:Boolean,default:!1},title:{type:String,default:"Accordion Title"},body:{type:String,default:"<p>Lorem ipsum dolor sit amet consectetur, adipisicing elit. Nisi aut, nobis inventore repudiandae quo laboriosam. Dicta placeat ullam harum optio expedita. Harum fugiat suscipit sapiente quos, molestias neque eaque omnis?</p>"},parent:{type:String,default:""}},emits:["update:modelValue"],setup(t,{emit:A}){const e=t;function n(){A("update:modelValue",!e.modelValue)}return(r,i)=>(h.openBlock(),h.createElementBlock("div",Ry,[h.createElementVNode("div",{class:"accordion-header",id:`heading${t.id}`},[h.createElementVNode("button",{class:h.normalizeClass(["accordion-button",!t.modelValue&&"collapsed"]),type:"button","data-bs-toggle":"collapse","data-bs-target":`#target${t.id}`,"aria-expanded":"true","aria-controls":`target${t.id}`,onClick:n},[h.renderSlot(r.$slots,"toggle",{},()=>[h.createElementVNode("span",Py,h.toDisplayString(t.title),1)])],10,Vy)],8,Ky),h.createElementVNode("div",{class:h.normalizeClass(["accordion-collapse collapse",t.modelValue&&"show"]),id:`target${t.id}`,"aria-labelledby":`heading${t.id}`,"data-bs-parent":t.parent},[h.createElementVNode("div",Wy,[h.renderSlot(r.$slots,"body",{},()=>[h.createElementVNode("article",{innerHTML:t.body},null,8,$y)])])],10,Gy)]))}}),E2="",Xy=(t,A)=>{const e=t.__vccOpts||t;for(const[n,r]of A)e[n]=r;return e},Yy={},zy={class:"accordion"};function qy(t,A){return h.openBlock(),h.createElementBlock("div",zy,[h.renderSlot(t.$slots,"default")])}const Zy=Xy(Yy,[["render",qy]]),jy=["type","disabled"],AQ=h.defineComponent({__name:"base-button",props:{type:{type:null},caption:{type:String},variant:{type:String},color:{type:String,default:"primary"},size:{type:String},icon:{type:String},disabled:{type:Boolean,default:!1},pending:{type:Boolean,default:!1},outlined:{type:Boolean,default:!1},rounded:{type:Boolean,default:!1},circle:{type:Boolean,default:!1}},setup(t){const A=t,e=h.computed(()=>A.caption&&!A.circle);return(n,r)=>{const i=h.resolveComponent("svg-icon");return h.openBlock(),h.createElementBlock("button",{type:t.type,disabled:t.disabled,class:h.normalizeClass(["btn",{disabled:t.disabled,pending:t.pending,rounded:t.rounded,"rounded-circle":t.circle,[`btn-${t.color}`]:!t.outlined,[`btn-outline-${t.color}`]:t.outlined,"x-large":t.size==="x-large",large:t.size==="large",small:t.size==="small","x-small":t.size==="x-small"}])},[h.renderSlot(n.$slots,"default",{},()=>[t.icon?(h.openBlock(),h.createBlock(i,{key:0,symbol:t.icon,class:"base-button__caption"},null,8,["symbol"])):h.createCommentVNode("",!0),h.unref(e)?(h.openBlock(),h.createElementBlock("span",{key:1,class:h.normalizeClass(["base-button__caption",{"icon-padding":t.icon}])},h.toDisplayString(t.caption),3)):h.createCommentVNode("",!0)])],10,jy)}}}),F2="",eQ={class:"input-group input__input-group"},tQ=["type","id","name","placeholder","pattern","disabled","read-only","required","maxlength","true-value","false-value","aria-label","role","autocomplete"],nQ=["for","innerHTML"],rQ=h.defineComponent({__name:"base-input",props:{modelValue:{type:[String,Number,Boolean,Date],default:""},type:{type:String,default:"text"},name:{type:String,default:()=>we()},id:{type:String,default:()=>we()},label:{type:String,default:""},placeholder:{type:String,default:""},variant:{type:String,default:""},disabled:{type:Boolean,default:!1},readOnly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},maxlength:{type:Number},pattern:{type:String,default:null},trueValue:{type:null,default:!0},falseValue:{type:null,default:!1},role:{type:String,default:"presentation"},autocomplete:{type:String,default:"off"}},emits:["update:modelValue"],setup(t,{emit:A}){const e=t,n=h.computed({get(){return e.modelValue},set(r){A("update:modelValue",r)}});return(r,i)=>(h.openBlock(),h.createElementBlock("div",{class:h.normalizeClass(["input",`input--${t.type}`])},[h.createElementVNode("div",eQ,[h.renderSlot(r.$slots,"input-prepend",{slotScope:"props"}),h.withDirectives(h.createElementVNode("input",{"onUpdate:modelValue":i[0]||(i[0]=s=>h.isRef(n)?n.value=s:null),type:t.type==="color"?"text":t.type,id:t.id,name:t.name,placeholder:t.placeholder,pattern:t.pattern,disabled:t.disabled,"read-only":t.readOnly,required:t.required,maxlength:t.maxlength,"true-value":t.trueValue,"false-value":t.falseValue,class:h.normalizeClass(["form-control",{"form-check-input":t.type==="checkbox"}]),"aria-label":t.label,role:t.role,autocomplete:t.autocomplete},null,10,tQ),[[h.vModelDynamic,h.unref(n)]]),h.renderSlot(r.$slots,"input-append",{slotScope:"props"})]),h.renderSlot(r.$slots,"label",{},()=>[t.label?(h.openBlock(),h.createElementBlock("label",{key:0,for:t.id,class:h.normalizeClass(["input__label",{"form-check-label":t.type==="checkbox"}]),innerHTML:`${t.label}${t.required?" *":""}`},null,10,nQ)):h.createCommentVNode("",!0)])],2))}}),U2="",iQ={class:"input input--textarea"},sQ=["type","id","name","placeholder","pattern","disabled","read-only","required","maxlength","aria-label"],oQ=["for","innerHTML"],aQ=h.defineComponent({__name:"input-textarea",props:{modelValue:{type:String,default:""},type:{type:String,default:"text"},name:{type:String,default:()=>we()},id:{type:String,default:()=>we()},label:{type:String,default:""},placeholder:{type:String,default:""},variant:{type:String,default:""},disabled:{type:Boolean,default:!1},readOnly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},maxlength:{type:Number},pattern:{type:String,default:null},checked:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(t,{emit:A}){const e=t,n=h.computed({get(){return e.modelValue},set(r){A("update:modelValue",r)}});return(r,i)=>(h.openBlock(),h.createElementBlock("div",iQ,[h.renderSlot(r.$slots,"input-prepend"),h.withDirectives(h.createElementVNode("textarea",{"onUpdate:modelValue":i[0]||(i[0]=s=>h.isRef(n)?n.value=s:null),type:t.type,id:t.id,name:t.name,placeholder:t.placeholder,pattern:t.pattern,disabled:t.disabled,"read-only":t.readOnly,required:t.required,maxlength:t.maxlength,class:h.normalizeClass(["form-control",{}]),"aria-label":t.label},null,8,sQ),[[h.vModelText,h.unref(n)]]),h.renderSlot(r.$slots,"input-append"),h.renderSlot(r.$slots,"label",{},()=>[h.createElementVNode("label",{for:t.id,class:h.normalizeClass(["input__label",{"form-check-label":t.type==="checkbox"}]),innerHTML:`${t.label}${t.required?" *":""}`},null,10,oQ)])]))}}),lQ=["value","id","name","required","disabled","true-value","false-value"],cQ=["for","innerHTML"],uQ=h.createElementVNode("span",{class:"input__error"},"error",-1),fQ=h.defineComponent({__name:"input-checkbox",props:{id:{type:String},name:{type:String},label:{type:String},error:{type:String},disabled:{type:Boolean,default:!1},readOnly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},modelValue:{type:[Boolean,Array]},value:{type:[String,Object]},checked:{type:Boolean},trueValue:{type:null,default:!0},falseValue:{type:null,default:!1}},emits:["update:modelValue","update:checked"],setup(t,{emit:A}){const e=t,n=h.computed({get(){return e.modelValue||e.checked},set(r){A("update:checked",r),A("update:modelValue",r)}});return(r,i)=>(h.openBlock(),h.createElementBlock("div",{class:"form-check input input--checkbox",onClick:i[1]||(i[1]=h.withModifiers(s=>r.void,["stop"]))},[h.withDirectives(h.createElementVNode("input",{ref:"input","onUpdate:modelValue":i[0]||(i[0]=s=>h.isRef(n)?n.value=s:null),value:t.value,id:t.id,name:t.name,type:"checkbox",required:t.required,disabled:t.disabled,class:"form-check-input","true-value":t.trueValue,"false-value":t.falseValue},null,8,lQ),[[h.vModelCheckbox,h.unref(n)]]),h.createElementVNode("label",{class:"input__label form-check-label",for:t.id,innerHTML:t.label},null,8,cQ),uQ]))}}),b2=`:root,*:before,*:after{--border-color: #ced4da;--border-radius: .25rem}.input--checkbox{flex-flow:row;gap:.5rem}.input--checkbox input{order:0}
2
2
  `,dQ={class:"check-group"},hQ=["id","name","value","disabled","read-only","required"],pQ=["for","innerHTML"],gQ=h.defineComponent({__name:"check-group",props:{modelValue:{type:null,default:()=>[]},options:{type:Array,required:!0},name:{type:String,default:()=>we()},id:{type:String,default:()=>we()},label:{type:String,default:""},disabled:{type:Boolean,default:!1},readOnly:{type:Boolean,default:!1},required:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(t,{emit:A}){const e=t;h.ref([]);const n=h.computed({get(){return e.modelValue},set(i){A("update:modelValue",i)}}),r=h.computed(()=>e.options.map(i=>(i=typeof i=="string"?{text:i,value:i}:i,{...i,active:e.modelValue&&e.modelValue.includes(i.value)})));return(i,s)=>(h.openBlock(),h.createElementBlock("div",dQ,[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(h.unref(r),(a,c)=>(h.openBlock(),h.createElementBlock("div",{key:c,class:"form-check"},[h.withDirectives(h.createElementVNode("input",{type:"checkbox","onUpdate:modelValue":s[0]||(s[0]=u=>h.isRef(n)?n.value=u:null),id:`${t.id}-${c}`,name:t.name,class:"form-check-input",value:a.value||a,disabled:t.disabled,"read-only":t.readOnly,required:t.required},null,8,hQ),[[h.vModelCheckbox,h.unref(n)]]),h.createElementVNode("label",{class:"form-check-label",for:`${t.id}-${c}`,innerHTML:a.text},null,8,pQ)]))),128))]))}}),v2="",BQ={class:"input radio-group"},mQ=["id","name","value","checked","disabled","read-only","required","onChange"],wQ=["for","innerHTML"],CQ=["for"],yQ=h.defineComponent({__name:"radio-group",props:{modelValue:{default:!1},options:{type:Array,default:[]},name:{type:String,default:()=>we()},id:{type:String,default:()=>we()},label:{type:String,default:""},variant:{type:String,default:""},disabled:{type:Boolean,default:!1},readOnly:{type:Boolean,default:!1},required:{type:Boolean,default:!1}},emits:["change","update:modelValue"],setup(t,{emit:A}){const e=t;h.ref(e.options.map(r=>r.value===e.modelValue));function n(r){console.log("asdfa",r),A("update:modelValue",r)}return h.onBeforeMount(()=>{}),(r,i)=>(h.openBlock(),h.createElementBlock("div",BQ,[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(t.options,(s,a)=>(h.openBlock(),h.createElementBlock("div",{key:a,class:"form-check"},[h.createElementVNode("input",{type:"radio",id:`${t.id}-${a}`,name:t.name,class:"form-check-input",value:s.value||s,checked:s.value?s.value===t.modelValue:s===t.modelValue,disabled:t.disabled,"read-only":t.readOnly,required:t.required,onChange:c=>n(s)},null,40,mQ),h.createElementVNode("label",{class:"form-check-label",for:`${t.id}-${a}`,innerHTML:t.label},null,8,wQ)]))),128)),h.renderSlot(r.$slots,"label",{},()=>[t.label?(h.openBlock(),h.createElementBlock("label",{key:0,for:t.id},h.toDisplayString(t.label),9,CQ)):h.createCommentVNode("",!0)])]))}}),I2="",QQ=["id","name","multiple","accept","disabled"],EQ={class:"input__input-group input-group"},FQ=["value","id","name","disabled"],UQ=["for","disabled"],bQ=h.createElementVNode("span",{class:"btn btn-outline-dark"},"Select File",-1),vQ=["for"],IQ=["innerHTML"],SQ=h.defineComponent({__name:"input-file",props:{modelValue:{type:Array,default:[]},name:{type:String,default:()=>we()},id:{type:String,default:()=>we()},label:{type:String,default:""},placeholder:{type:String,default:""},variant:{type:String,default:""},disabled:{type:Boolean,default:!1},readOnly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},pattern:{type:String,default:null},multiple:{type:Boolean,default:!1},accept:{type:String}},emits:["update:modelValue"],setup(t,{emit:A}){const e=t;function n(a){const c=a.target&&a.target.files;c&&(i.splice(0,i.length),Array.from(c).forEach(u=>{i.push(u)}))}const r=h.ref(),i=h.reactive([]),s=h.computed(()=>i&&i.map(a=>a.name));return h.computed(()=>i.map(a=>URL.createObjectURL(a))),h.watch(()=>e.modelValue,(a,c)=>{a.length===0&&(r.value.value=null)},{deep:!0}),h.watch(()=>i,(a,c)=>{A("update:modelValue",a)},{deep:!0}),(a,c)=>(h.openBlock(),h.createElementBlock("div",{class:h.normalizeClass(["input input-file","input-file--primary"])},[h.createElementVNode("input",{ref_key:"input",ref:r,type:"file",id:t.id,name:t.name,class:"d-none",onChange:n,multiple:t.multiple,accept:t.accept,disabled:t.disabled},null,40,QQ),h.createElementVNode("div",EQ,[h.renderSlot(a.$slots,"input-prepend"),h.createElementVNode("input",{type:"text",value:h.unref(s),id:t.id,name:t.name,class:"form-control",disabled:t.disabled},null,8,FQ),h.renderSlot(a.$slots,"input-append",{},()=>[h.createElementVNode("label",{for:t.id,disabled:t.disabled},[h.renderSlot(a.$slots,"button",{},()=>[bQ])],8,UQ)])]),h.createElementVNode("label",{for:t.id},[h.renderSlot(a.$slots,"label",{},()=>[h.createElementVNode("span",{class:"input__label",innerHTML:`${t.label}${t.required?" *":""}`},null,8,IQ)])],8,vQ)]))}});function He(t){this.content=t}He.prototype={constructor:He,find:function(t){for(var A=0;A<this.content.length;A+=2)if(this.content[A]===t)return A;return-1},get:function(t){var A=this.find(t);return A==-1?void 0:this.content[A+1]},update:function(t,A,e){var n=e&&e!=t?this.remove(e):this,r=n.find(t),i=n.content.slice();return r==-1?i.push(e||t,A):(i[r+1]=A,e&&(i[r]=e)),new He(i)},remove:function(t){var A=this.find(t);if(A==-1)return this;var e=this.content.slice();return e.splice(A,2),new He(e)},addToStart:function(t,A){return new He([t,A].concat(this.remove(t).content))},addToEnd:function(t,A){var e=this.remove(t).content.slice();return e.push(t,A),new He(e)},addBefore:function(t,A,e){var n=this.remove(A),r=n.content.slice(),i=n.find(t);return r.splice(i==-1?r.length:i,0,A,e),new He(r)},forEach:function(t){for(var A=0;A<this.content.length;A+=2)t(this.content[A],this.content[A+1])},prepend:function(t){return t=He.from(t),t.size?new He(t.content.concat(this.subtract(t).content)):this},append:function(t){return t=He.from(t),t.size?new He(this.subtract(t).content.concat(t.content)):this},subtract:function(t){var A=this;t=He.from(t);for(var e=0;e<t.content.length;e+=2)A=A.remove(t.content[e]);return A},toObject:function(){var t={};return this.forEach(function(A,e){t[A]=e}),t},get size(){return this.content.length>>1}},He.from=function(t){if(t instanceof He)return t;var A=[];if(t)for(var e in t)A.push(e,t[e]);return new He(A)};function Yd(t,A,e){for(let n=0;;n++){if(n==t.childCount||n==A.childCount)return t.childCount==A.childCount?null:e;let r=t.child(n),i=A.child(n);if(r==i){e+=r.nodeSize;continue}if(!r.sameMarkup(i))return e;if(r.isText&&r.text!=i.text){for(let s=0;r.text[s]==i.text[s];s++)e++;return e}if(r.content.size||i.content.size){let s=Yd(r.content,i.content,e+1);if(s!=null)return s}e+=r.nodeSize}}function zd(t,A,e,n){for(let r=t.childCount,i=A.childCount;;){if(r==0||i==0)return r==i?null:{a:e,b:n};let s=t.child(--r),a=A.child(--i),c=s.nodeSize;if(s==a){e-=c,n-=c;continue}if(!s.sameMarkup(a))return{a:e,b:n};if(s.isText&&s.text!=a.text){let u=0,d=Math.min(s.text.length,a.text.length);for(;u<d&&s.text[s.text.length-u-1]==a.text[a.text.length-u-1];)u++,e--,n--;return{a:e,b:n}}if(s.content.size||a.content.size){let u=zd(s.content,a.content,e-1,n-1);if(u)return u}e-=c,n-=c}}class X{constructor(A,e){if(this.content=A,this.size=e||0,e==null)for(let n=0;n<A.length;n++)this.size+=A[n].nodeSize}nodesBetween(A,e,n,r=0,i){for(let s=0,a=0;a<e;s++){let c=this.content[s],u=a+c.nodeSize;if(u>A&&n(c,r+a,i||null,s)!==!1&&c.content.size){let d=a+1;c.nodesBetween(Math.max(0,A-d),Math.min(c.content.size,e-d),n,r+d)}a=u}}descendants(A){this.nodesBetween(0,this.size,A)}textBetween(A,e,n,r){let i="",s=!0;return this.nodesBetween(A,e,(a,c)=>{a.isText?(i+=a.text.slice(Math.max(A,c)-c,e-c),s=!n):a.isLeaf?(r?i+=typeof r=="function"?r(a):r:a.type.spec.leafText&&(i+=a.type.spec.leafText(a)),s=!n):!s&&a.isBlock&&(i+=n,s=!0)},0),i}append(A){if(!A.size)return this;if(!this.size)return A;let e=this.lastChild,n=A.firstChild,r=this.content.slice(),i=0;for(e.isText&&e.sameMarkup(n)&&(r[r.length-1]=e.withText(e.text+n.text),i=1);i<A.content.length;i++)r.push(A.content[i]);return new X(r,this.size+A.size)}cut(A,e=this.size){if(A==0&&e==this.size)return this;let n=[],r=0;if(e>A)for(let i=0,s=0;s<e;i++){let a=this.content[i],c=s+a.nodeSize;c>A&&((s<A||c>e)&&(a.isText?a=a.cut(Math.max(0,A-s),Math.min(a.text.length,e-s)):a=a.cut(Math.max(0,A-s-1),Math.min(a.content.size,e-s-1))),n.push(a),r+=a.nodeSize),s=c}return new X(n,r)}cutByIndex(A,e){return A==e?X.empty:A==0&&e==this.content.length?this:new X(this.content.slice(A,e))}replaceChild(A,e){let n=this.content[A];if(n==e)return this;let r=this.content.slice(),i=this.size+e.nodeSize-n.nodeSize;return r[A]=e,new X(r,i)}addToStart(A){return new X([A].concat(this.content),this.size+A.nodeSize)}addToEnd(A){return new X(this.content.concat(A),this.size+A.nodeSize)}eq(A){if(this.content.length!=A.content.length)return!1;for(let e=0;e<this.content.length;e++)if(!this.content[e].eq(A.content[e]))return!1;return!0}get firstChild(){return this.content.length?this.content[0]:null}get lastChild(){return this.content.length?this.content[this.content.length-1]:null}get childCount(){return this.content.length}child(A){let e=this.content[A];if(!e)throw new RangeError("Index "+A+" out of range for "+this);return e}maybeChild(A){return this.content[A]||null}forEach(A){for(let e=0,n=0;e<this.content.length;e++){let r=this.content[e];A(r,n,e),n+=r.nodeSize}}findDiffStart(A,e=0){return Yd(this,A,e)}findDiffEnd(A,e=this.size,n=A.size){return zd(this,A,e,n)}findIndex(A,e=-1){if(A==0)return Uo(0,A);if(A==this.size)return Uo(this.content.length,A);if(A>this.size||A<0)throw new RangeError(`Position ${A} outside of fragment (${this})`);for(let n=0,r=0;;n++){let i=this.child(n),s=r+i.nodeSize;if(s>=A)return s==A||e>0?Uo(n+1,s):Uo(n,r);r=s}}toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map(A=>A.toJSON()):null}static fromJSON(A,e){if(!e)return X.empty;if(!Array.isArray(e))throw new RangeError("Invalid input for Fragment.fromJSON");return new X(e.map(A.nodeFromJSON))}static fromArray(A){if(!A.length)return X.empty;let e,n=0;for(let r=0;r<A.length;r++){let i=A[r];n+=i.nodeSize,r&&i.isText&&A[r-1].sameMarkup(i)?(e||(e=A.slice(0,r)),e[e.length-1]=i.withText(e[e.length-1].text+i.text)):e&&e.push(i)}return new X(e||A,n)}static from(A){if(!A)return X.empty;if(A instanceof X)return A;if(Array.isArray(A))return this.fromArray(A);if(A.attrs)return new X([A],A.nodeSize);throw new RangeError("Can not convert "+A+" to a Fragment"+(A.nodesBetween?" (looks like multiple versions of prosemirror-model were loaded)":""))}}X.empty=new X([],0);const Zl={index:0,offset:0};function Uo(t,A){return Zl.index=t,Zl.offset=A,Zl}function bo(t,A){if(t===A)return!0;if(!(t&&typeof t=="object")||!(A&&typeof A=="object"))return!1;let e=Array.isArray(t);if(Array.isArray(A)!=e)return!1;if(e){if(t.length!=A.length)return!1;for(let n=0;n<t.length;n++)if(!bo(t[n],A[n]))return!1}else{for(let n in t)if(!(n in A)||!bo(t[n],A[n]))return!1;for(let n in A)if(!(n in t))return!1}return!0}let PA=class Wd{constructor(A,e){this.type=A,this.attrs=e}addToSet(A){let e,n=!1;for(let r=0;r<A.length;r++){let i=A[r];if(this.eq(i))return A;if(this.type.excludes(i.type))e||(e=A.slice(0,r));else{if(i.type.excludes(this.type))return A;!n&&i.type.rank>this.type.rank&&(e||(e=A.slice(0,r)),e.push(this),n=!0),e&&e.push(i)}}return e||(e=A.slice()),n||e.push(this),e}removeFromSet(A){for(let e=0;e<A.length;e++)if(this.eq(A[e]))return A.slice(0,e).concat(A.slice(e+1));return A}isInSet(A){for(let e=0;e<A.length;e++)if(this.eq(A[e]))return!0;return!1}eq(A){return this==A||this.type==A.type&&bo(this.attrs,A.attrs)}toJSON(){let A={type:this.type.name};for(let e in this.attrs){A.attrs=this.attrs;break}return A}static fromJSON(A,e){if(!e)throw new RangeError("Invalid input for Mark.fromJSON");let n=A.marks[e.type];if(!n)throw new RangeError(`There is no mark type ${e.type} in this schema`);return n.create(e.attrs)}static sameSet(A,e){if(A==e)return!0;if(A.length!=e.length)return!1;for(let n=0;n<A.length;n++)if(!A[n].eq(e[n]))return!1;return!0}static setFrom(A){if(!A||Array.isArray(A)&&A.length==0)return Wd.none;if(A instanceof Wd)return[A];let e=A.slice();return e.sort((n,r)=>n.type.rank-r.type.rank),e}};PA.none=[];class vo extends Error{}class j{constructor(A,e,n){this.content=A,this.openStart=e,this.openEnd=n}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(A,e){let n=Zd(this.content,A+this.openStart,e);return n&&new j(n,this.openStart,this.openEnd)}removeBetween(A,e){return new j(qd(this.content,A+this.openStart,e+this.openStart),this.openStart,this.openEnd)}eq(A){return this.content.eq(A.content)&&this.openStart==A.openStart&&this.openEnd==A.openEnd}toString(){return this.content+"("+this.openStart+","+this.openEnd+")"}toJSON(){if(!this.content.size)return null;let A={content:this.content.toJSON()};return this.openStart>0&&(A.openStart=this.openStart),this.openEnd>0&&(A.openEnd=this.openEnd),A}static fromJSON(A,e){if(!e)return j.empty;let n=e.openStart||0,r=e.openEnd||0;if(typeof n!="number"||typeof r!="number")throw new RangeError("Invalid input for Slice.fromJSON");return new j(X.fromJSON(A,e.content),n,r)}static maxOpen(A,e=!0){let n=0,r=0;for(let i=A.firstChild;i&&!i.isLeaf&&(e||!i.type.spec.isolating);i=i.firstChild)n++;for(let i=A.lastChild;i&&!i.isLeaf&&(e||!i.type.spec.isolating);i=i.lastChild)r++;return new j(A,n,r)}}j.empty=new j(X.empty,0,0);function qd(t,A,e){let{index:n,offset:r}=t.findIndex(A),i=t.maybeChild(n),{index:s,offset:a}=t.findIndex(e);if(r==A||i.isText){if(a!=e&&!t.child(s).isText)throw new RangeError("Removing non-flat range");return t.cut(0,A).append(t.cut(e))}if(n!=s)throw new RangeError("Removing non-flat range");return t.replaceChild(n,i.copy(qd(i.content,A-r-1,e-r-1)))}function Zd(t,A,e,n){let{index:r,offset:i}=t.findIndex(A),s=t.maybeChild(r);if(i==A||s.isText)return n&&!n.canReplace(r,r,e)?null:t.cut(0,A).append(e).append(t.cut(A));let a=Zd(s.content,A-i-1,e);return a&&t.replaceChild(r,s.copy(a))}function TQ(t,A,e){if(e.openStart>t.depth)throw new vo("Inserted content deeper than insertion position");if(t.depth-e.openStart!=A.depth-e.openEnd)throw new vo("Inconsistent open depths");return jd(t,A,e,0)}function jd(t,A,e,n){let r=t.index(n),i=t.node(n);if(r==A.index(n)&&n<t.depth-e.openStart){let s=jd(t,A,e,n+1);return i.copy(i.content.replaceChild(r,s))}else if(e.content.size)if(!e.openStart&&!e.openEnd&&t.depth==n&&A.depth==n){let s=t.parent,a=s.content;return Mr(s,a.cut(0,t.parentOffset).append(e.content).append(a.cut(A.parentOffset)))}else{let{start:s,end:a}=xQ(e,t);return Mr(i,eh(t,s,a,A,n))}else return Mr(i,Io(t,A,n))}function Ah(t,A){if(!A.type.compatibleContent(t.type))throw new vo("Cannot join "+A.type.name+" onto "+t.type.name)}function jl(t,A,e){let n=t.node(e);return Ah(n,A.node(e)),n}function kr(t,A){let e=A.length-1;e>=0&&t.isText&&t.sameMarkup(A[e])?A[e]=t.withText(A[e].text+t.text):A.push(t)}function ds(t,A,e,n){let r=(A||t).node(e),i=0,s=A?A.index(e):r.childCount;t&&(i=t.index(e),t.depth>e?i++:t.textOffset&&(kr(t.nodeAfter,n),i++));for(let a=i;a<s;a++)kr(r.child(a),n);A&&A.depth==e&&A.textOffset&&kr(A.nodeBefore,n)}function Mr(t,A){return t.type.checkContent(A),t.copy(A)}function eh(t,A,e,n,r){let i=t.depth>r&&jl(t,A,r+1),s=n.depth>r&&jl(e,n,r+1),a=[];return ds(null,t,r,a),i&&s&&A.index(r)==e.index(r)?(Ah(i,s),kr(Mr(i,eh(t,A,e,n,r+1)),a)):(i&&kr(Mr(i,Io(t,A,r+1)),a),ds(A,e,r,a),s&&kr(Mr(s,Io(e,n,r+1)),a)),ds(n,null,r,a),new X(a)}function Io(t,A,e){let n=[];if(ds(null,t,e,n),t.depth>e){let r=jl(t,A,e+1);kr(Mr(r,Io(t,A,e+1)),n)}return ds(A,null,e,n),new X(n)}function xQ(t,A){let e=A.depth-t.openStart,r=A.node(e).copy(t.content);for(let i=e-1;i>=0;i--)r=A.node(i).copy(X.from(r));return{start:r.resolveNoCache(t.openStart+e),end:r.resolveNoCache(r.content.size-t.openEnd-e)}}class hs{constructor(A,e,n){this.pos=A,this.path=e,this.parentOffset=n,this.depth=e.length/3-1}resolveDepth(A){return A==null?this.depth:A<0?this.depth+A:A}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(A){return this.path[this.resolveDepth(A)*3]}index(A){return this.path[this.resolveDepth(A)*3+1]}indexAfter(A){return A=this.resolveDepth(A),this.index(A)+(A==this.depth&&!this.textOffset?0:1)}start(A){return A=this.resolveDepth(A),A==0?0:this.path[A*3-1]+1}end(A){return A=this.resolveDepth(A),this.start(A)+this.node(A).content.size}before(A){if(A=this.resolveDepth(A),!A)throw new RangeError("There is no position before the top-level node");return A==this.depth+1?this.pos:this.path[A*3-1]}after(A){if(A=this.resolveDepth(A),!A)throw new RangeError("There is no position after the top-level node");return A==this.depth+1?this.pos:this.path[A*3-1]+this.path[A*3].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let A=this.parent,e=this.index(this.depth);if(e==A.childCount)return null;let n=this.pos-this.path[this.path.length-1],r=A.child(e);return n?A.child(e).cut(n):r}get nodeBefore(){let A=this.index(this.depth),e=this.pos-this.path[this.path.length-1];return e?this.parent.child(A).cut(0,e):A==0?null:this.parent.child(A-1)}posAtIndex(A,e){e=this.resolveDepth(e);let n=this.path[e*3],r=e==0?0:this.path[e*3-1]+1;for(let i=0;i<A;i++)r+=n.child(i).nodeSize;return r}marks(){let A=this.parent,e=this.index();if(A.content.size==0)return PA.none;if(this.textOffset)return A.child(e).marks;let n=A.maybeChild(e-1),r=A.maybeChild(e);if(!n){let a=n;n=r,r=a}let i=n.marks;for(var s=0;s<i.length;s++)i[s].type.spec.inclusive===!1&&(!r||!i[s].isInSet(r.marks))&&(i=i[s--].removeFromSet(i));return i}marksAcross(A){let e=this.parent.maybeChild(this.index());if(!e||!e.isInline)return null;let n=e.marks,r=A.parent.maybeChild(A.index());for(var i=0;i<n.length;i++)n[i].type.spec.inclusive===!1&&(!r||!n[i].isInSet(r.marks))&&(n=n[i--].removeFromSet(n));return n}sharedDepth(A){for(let e=this.depth;e>0;e--)if(this.start(e)<=A&&this.end(e)>=A)return e;return 0}blockRange(A=this,e){if(A.pos<this.pos)return A.blockRange(this);for(let n=this.depth-(this.parent.inlineContent||this.pos==A.pos?1:0);n>=0;n--)if(A.pos<=this.end(n)&&(!e||e(this.node(n))))return new So(this,A,n);return null}sameParent(A){return this.pos-this.parentOffset==A.pos-A.parentOffset}max(A){return A.pos>this.pos?A:this}min(A){return A.pos<this.pos?A:this}toString(){let A="";for(let e=1;e<=this.depth;e++)A+=(A?"/":"")+this.node(e).type.name+"_"+this.index(e-1);return A+":"+this.parentOffset}static resolve(A,e){if(!(e>=0&&e<=A.content.size))throw new RangeError("Position "+e+" out of range");let n=[],r=0,i=e;for(let s=A;;){let{index:a,offset:c}=s.content.findIndex(i),u=i-c;if(n.push(s,a,r+c),!u||(s=s.child(a),s.isText))break;i=u-1,r+=c+1}return new hs(e,n,i)}static resolveCached(A,e){for(let r=0;r<Ac.length;r++){let i=Ac[r];if(i.pos==e&&i.doc==A)return i}let n=Ac[ec]=hs.resolve(A,e);return ec=(ec+1)%HQ,n}}let Ac=[],ec=0,HQ=12;class So{constructor(A,e,n){this.$from=A,this.$to=e,this.depth=n}get start(){return this.$from.before(this.depth+1)}get end(){return this.$to.after(this.depth+1)}get parent(){return this.$from.node(this.depth)}get startIndex(){return this.$from.index(this.depth)}get endIndex(){return this.$to.indexAfter(this.depth)}}const _Q=Object.create(null);let Dr=class $d{constructor(A,e,n,r=PA.none){this.type=A,this.attrs=e,this.marks=r,this.content=n||X.empty}get nodeSize(){return this.isLeaf?1:2+this.content.size}get childCount(){return this.content.childCount}child(A){return this.content.child(A)}maybeChild(A){return this.content.maybeChild(A)}forEach(A){this.content.forEach(A)}nodesBetween(A,e,n,r=0){this.content.nodesBetween(A,e,n,r,this)}descendants(A){this.nodesBetween(0,this.content.size,A)}get textContent(){return this.isLeaf&&this.type.spec.leafText?this.type.spec.leafText(this):this.textBetween(0,this.content.size,"")}textBetween(A,e,n,r){return this.content.textBetween(A,e,n,r)}get firstChild(){return this.content.firstChild}get lastChild(){return this.content.lastChild}eq(A){return this==A||this.sameMarkup(A)&&this.content.eq(A.content)}sameMarkup(A){return this.hasMarkup(A.type,A.attrs,A.marks)}hasMarkup(A,e,n){return this.type==A&&bo(this.attrs,e||A.defaultAttrs||_Q)&&PA.sameSet(this.marks,n||PA.none)}copy(A=null){return A==this.content?this:new $d(this.type,this.attrs,A,this.marks)}mark(A){return A==this.marks?this:new $d(this.type,this.attrs,this.content,A)}cut(A,e=this.content.size){return A==0&&e==this.content.size?this:this.copy(this.content.cut(A,e))}slice(A,e=this.content.size,n=!1){if(A==e)return j.empty;let r=this.resolve(A),i=this.resolve(e),s=n?0:r.sharedDepth(e),a=r.start(s),u=r.node(s).content.cut(r.pos-a,i.pos-a);return new j(u,r.depth-s,i.depth-s)}replace(A,e,n){return TQ(this.resolve(A),this.resolve(e),n)}nodeAt(A){for(let e=this;;){let{index:n,offset:r}=e.content.findIndex(A);if(e=e.maybeChild(n),!e)return null;if(r==A||e.isText)return e;A-=r+1}}childAfter(A){let{index:e,offset:n}=this.content.findIndex(A);return{node:this.content.maybeChild(e),index:e,offset:n}}childBefore(A){if(A==0)return{node:null,index:0,offset:0};let{index:e,offset:n}=this.content.findIndex(A);if(n<A)return{node:this.content.child(e),index:e,offset:n};let r=this.content.child(e-1);return{node:r,index:e-1,offset:n-r.nodeSize}}resolve(A){return hs.resolveCached(this,A)}resolveNoCache(A){return hs.resolve(this,A)}rangeHasMark(A,e,n){let r=!1;return e>A&&this.nodesBetween(A,e,i=>(n.isInSet(i.marks)&&(r=!0),!r)),r}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let A=this.type.name;return this.content.size&&(A+="("+this.content.toStringInner()+")"),th(this.marks,A)}contentMatchAt(A){let e=this.type.contentMatch.matchFragment(this.content,0,A);if(!e)throw new Error("Called contentMatchAt on a node with invalid content");return e}canReplace(A,e,n=X.empty,r=0,i=n.childCount){let s=this.contentMatchAt(A).matchFragment(n,r,i),a=s&&s.matchFragment(this.content,e);if(!a||!a.validEnd)return!1;for(let c=r;c<i;c++)if(!this.type.allowsMarks(n.child(c).marks))return!1;return!0}canReplaceWith(A,e,n,r){if(r&&!this.type.allowsMarks(r))return!1;let i=this.contentMatchAt(A).matchType(n),s=i&&i.matchFragment(this.content,e);return s?s.validEnd:!1}canAppend(A){return A.content.size?this.canReplace(this.childCount,this.childCount,A.content):this.type.compatibleContent(A.type)}check(){this.type.checkContent(this.content);let A=PA.none;for(let e=0;e<this.marks.length;e++)A=this.marks[e].addToSet(A);if(!PA.sameSet(A,this.marks))throw new RangeError(`Invalid collection of marks for node ${this.type.name}: ${this.marks.map(e=>e.type.name)}`);this.content.forEach(e=>e.check())}toJSON(){let A={type:this.type.name};for(let e in this.attrs){A.attrs=this.attrs;break}return this.content.size&&(A.content=this.content.toJSON()),this.marks.length&&(A.marks=this.marks.map(e=>e.toJSON())),A}static fromJSON(A,e){if(!e)throw new RangeError("Invalid input for Node.fromJSON");let n=null;if(e.marks){if(!Array.isArray(e.marks))throw new RangeError("Invalid mark data for Node.fromJSON");n=e.marks.map(A.markFromJSON)}if(e.type=="text"){if(typeof e.text!="string")throw new RangeError("Invalid text node in JSON");return A.text(e.text,n)}let r=X.fromJSON(A,e.content);return A.nodeType(e.type).create(e.attrs,r,n)}};Dr.prototype.text=void 0;class To extends Dr{constructor(A,e,n,r){if(super(A,e,null,r),!n)throw new RangeError("Empty text nodes are not allowed");this.text=n}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):th(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(A,e){return this.text.slice(A,e)}get nodeSize(){return this.text.length}mark(A){return A==this.marks?this:new To(this.type,this.attrs,this.text,A)}withText(A){return A==this.text?this:new To(this.type,this.attrs,A,this.marks)}cut(A=0,e=this.text.length){return A==0&&e==this.text.length?this:this.withText(this.text.slice(A,e))}eq(A){return this.sameMarkup(A)&&this.text==A.text}toJSON(){let A=super.toJSON();return A.text=this.text,A}}function th(t,A){for(let e=t.length-1;e>=0;e--)A=t[e].type.name+"("+A+")";return A}class Nr{constructor(A){this.validEnd=A,this.next=[],this.wrapCache=[]}static parse(A,e){let n=new LQ(A,e);if(n.next==null)return Nr.empty;let r=nh(n);n.next&&n.err("Unexpected trailing text");let i=KQ(RQ(r));return VQ(i,n),i}matchType(A){for(let e=0;e<this.next.length;e++)if(this.next[e].type==A)return this.next[e].next;return null}matchFragment(A,e=0,n=A.childCount){let r=this;for(let i=e;r&&i<n;i++)r=r.matchType(A.child(i).type);return r}get inlineContent(){return this.next.length!=0&&this.next[0].type.isInline}get defaultType(){for(let A=0;A<this.next.length;A++){let{type:e}=this.next[A];if(!(e.isText||e.hasRequiredAttrs()))return e}return null}compatible(A){for(let e=0;e<this.next.length;e++)for(let n=0;n<A.next.length;n++)if(this.next[e].type==A.next[n].type)return!0;return!1}fillBefore(A,e=!1,n=0){let r=[this];function i(s,a){let c=s.matchFragment(A,n);if(c&&(!e||c.validEnd))return X.from(a.map(u=>u.createAndFill()));for(let u=0;u<s.next.length;u++){let{type:d,next:p}=s.next[u];if(!(d.isText||d.hasRequiredAttrs())&&r.indexOf(p)==-1){r.push(p);let B=i(p,a.concat(d));if(B)return B}}return null}return i(this,[])}findWrapping(A){for(let n=0;n<this.wrapCache.length;n+=2)if(this.wrapCache[n]==A)return this.wrapCache[n+1];let e=this.computeWrapping(A);return this.wrapCache.push(A,e),e}computeWrapping(A){let e=Object.create(null),n=[{match:this,type:null,via:null}];for(;n.length;){let r=n.shift(),i=r.match;if(i.matchType(A)){let s=[];for(let a=r;a.type;a=a.via)s.push(a.type);return s.reverse()}for(let s=0;s<i.next.length;s++){let{type:a,next:c}=i.next[s];!a.isLeaf&&!a.hasRequiredAttrs()&&!(a.name in e)&&(!r.type||c.validEnd)&&(n.push({match:a.contentMatch,type:a,via:r}),e[a.name]=!0)}}return null}get edgeCount(){return this.next.length}edge(A){if(A>=this.next.length)throw new RangeError(`There's no ${A}th edge in this content match`);return this.next[A]}toString(){let A=[];function e(n){A.push(n);for(let r=0;r<n.next.length;r++)A.indexOf(n.next[r].next)==-1&&e(n.next[r].next)}return e(this),A.map((n,r)=>{let i=r+(n.validEnd?"*":" ")+" ";for(let s=0;s<n.next.length;s++)i+=(s?", ":"")+n.next[s].type.name+"->"+A.indexOf(n.next[s].next);return i}).join(`
3
3
  `)}}Nr.empty=new Nr(!0);class LQ{constructor(A,e){this.string=A,this.nodeTypes=e,this.inline=null,this.pos=0,this.tokens=A.split(/\s*(?=\b|\W|$)/),this.tokens[this.tokens.length-1]==""&&this.tokens.pop(),this.tokens[0]==""&&this.tokens.shift()}get next(){return this.tokens[this.pos]}eat(A){return this.next==A&&(this.pos++||!0)}err(A){throw new SyntaxError(A+" (in content expression '"+this.string+"')")}}function nh(t){let A=[];do A.push(OQ(t));while(t.eat("|"));return A.length==1?A[0]:{type:"choice",exprs:A}}function OQ(t){let A=[];do A.push(kQ(t));while(t.next&&t.next!=")"&&t.next!="|");return A.length==1?A[0]:{type:"seq",exprs:A}}function kQ(t){let A=NQ(t);for(;;)if(t.eat("+"))A={type:"plus",expr:A};else if(t.eat("*"))A={type:"star",expr:A};else if(t.eat("?"))A={type:"opt",expr:A};else if(t.eat("{"))A=MQ(t,A);else break;return A}function rh(t){/\D/.test(t.next)&&t.err("Expected number, got '"+t.next+"'");let A=Number(t.next);return t.pos++,A}function MQ(t,A){let e=rh(t),n=e;return t.eat(",")&&(t.next!="}"?n=rh(t):n=-1),t.eat("}")||t.err("Unclosed braced range"),{type:"range",min:e,max:n,expr:A}}function DQ(t,A){let e=t.nodeTypes,n=e[A];if(n)return[n];let r=[];for(let i in e){let s=e[i];s.groups.indexOf(A)>-1&&r.push(s)}return r.length==0&&t.err("No node type or group '"+A+"' found"),r}function NQ(t){if(t.eat("(")){let A=nh(t);return t.eat(")")||t.err("Missing closing paren"),A}else if(/\W/.test(t.next))t.err("Unexpected token '"+t.next+"'");else{let A=DQ(t,t.next).map(e=>(t.inline==null?t.inline=e.isInline:t.inline!=e.isInline&&t.err("Mixing inline and block content"),{type:"name",value:e}));return t.pos++,A.length==1?A[0]:{type:"choice",exprs:A}}}function RQ(t){let A=[[]];return r(i(t,0),e()),A;function e(){return A.push([])-1}function n(s,a,c){let u={term:c,to:a};return A[s].push(u),u}function r(s,a){s.forEach(c=>c.to=a)}function i(s,a){if(s.type=="choice")return s.exprs.reduce((c,u)=>c.concat(i(u,a)),[]);if(s.type=="seq")for(let c=0;;c++){let u=i(s.exprs[c],a);if(c==s.exprs.length-1)return u;r(u,a=e())}else if(s.type=="star"){let c=e();return n(a,c),r(i(s.expr,c),c),[n(c)]}else if(s.type=="plus"){let c=e();return r(i(s.expr,a),c),r(i(s.expr,c),c),[n(c)]}else{if(s.type=="opt")return[n(a)].concat(i(s.expr,a));if(s.type=="range"){let c=a;for(let u=0;u<s.min;u++){let d=e();r(i(s.expr,c),d),c=d}if(s.max==-1)r(i(s.expr,c),c);else for(let u=s.min;u<s.max;u++){let d=e();n(c,d),r(i(s.expr,c),d),c=d}return[n(c)]}else{if(s.type=="name")return[n(a,void 0,s.value)];throw new Error("Unknown expr type")}}}}function ih(t,A){return A-t}function sh(t,A){let e=[];return n(A),e.sort(ih);function n(r){let i=t[r];if(i.length==1&&!i[0].term)return n(i[0].to);e.push(r);for(let s=0;s<i.length;s++){let{term:a,to:c}=i[s];!a&&e.indexOf(c)==-1&&n(c)}}}function KQ(t){let A=Object.create(null);return e(sh(t,0));function e(n){let r=[];n.forEach(s=>{t[s].forEach(({term:a,to:c})=>{if(!a)return;let u;for(let d=0;d<r.length;d++)r[d][0]==a&&(u=r[d][1]);sh(t,c).forEach(d=>{u||r.push([a,u=[]]),u.indexOf(d)==-1&&u.push(d)})})});let i=A[n.join(",")]=new Nr(n.indexOf(t.length-1)>-1);for(let s=0;s<r.length;s++){let a=r[s][1].sort(ih);i.next.push({type:r[s][0],next:A[a.join(",")]||e(a)})}return i}}function VQ(t,A){for(let e=0,n=[t];e<n.length;e++){let r=n[e],i=!r.validEnd,s=[];for(let a=0;a<r.next.length;a++){let{type:c,next:u}=r.next[a];s.push(c.name),i&&!(c.isText||c.hasRequiredAttrs())&&(i=!1),n.indexOf(u)==-1&&n.push(u)}i&&A.err("Only non-generatable nodes ("+s.join(", ")+") in a required position (see https://prosemirror.net/docs/guide/#generatable)")}}function oh(t){let A=Object.create(null);for(let e in t){let n=t[e];if(!n.hasDefault)return null;A[e]=n.default}return A}function ah(t,A){let e=Object.create(null);for(let n in t){let r=A&&A[n];if(r===void 0){let i=t[n];if(i.hasDefault)r=i.default;else throw new RangeError("No value supplied for attribute "+n)}e[n]=r}return e}function lh(t){let A=Object.create(null);if(t)for(let e in t)A[e]=new PQ(t[e]);return A}let ch=class vy{constructor(A,e,n){this.name=A,this.schema=e,this.spec=n,this.markSet=null,this.groups=n.group?n.group.split(" "):[],this.attrs=lh(n.attrs),this.defaultAttrs=oh(this.attrs),this.contentMatch=null,this.inlineContent=null,this.isBlock=!(n.inline||A=="text"),this.isText=A=="text"}get isInline(){return!this.isBlock}get isTextblock(){return this.isBlock&&this.inlineContent}get isLeaf(){return this.contentMatch==Nr.empty}get isAtom(){return this.isLeaf||!!this.spec.atom}get whitespace(){return this.spec.whitespace||(this.spec.code?"pre":"normal")}hasRequiredAttrs(){for(let A in this.attrs)if(this.attrs[A].isRequired)return!0;return!1}compatibleContent(A){return this==A||this.contentMatch.compatible(A.contentMatch)}computeAttrs(A){return!A&&this.defaultAttrs?this.defaultAttrs:ah(this.attrs,A)}create(A=null,e,n){if(this.isText)throw new Error("NodeType.create can't construct text nodes");return new Dr(this,this.computeAttrs(A),X.from(e),PA.setFrom(n))}createChecked(A=null,e,n){return e=X.from(e),this.checkContent(e),new Dr(this,this.computeAttrs(A),e,PA.setFrom(n))}createAndFill(A=null,e,n){if(A=this.computeAttrs(A),e=X.from(e),e.size){let s=this.contentMatch.fillBefore(e);if(!s)return null;e=s.append(e)}let r=this.contentMatch.matchFragment(e),i=r&&r.fillBefore(X.empty,!0);return i?new Dr(this,A,e.append(i),PA.setFrom(n)):null}validContent(A){let e=this.contentMatch.matchFragment(A);if(!e||!e.validEnd)return!1;for(let n=0;n<A.childCount;n++)if(!this.allowsMarks(A.child(n).marks))return!1;return!0}checkContent(A){if(!this.validContent(A))throw new RangeError(`Invalid content for node ${this.name}: ${A.toString().slice(0,50)}`)}allowsMarkType(A){return this.markSet==null||this.markSet.indexOf(A)>-1}allowsMarks(A){if(this.markSet==null)return!0;for(let e=0;e<A.length;e++)if(!this.allowsMarkType(A[e].type))return!1;return!0}allowedMarks(A){if(this.markSet==null)return A;let e;for(let n=0;n<A.length;n++)this.allowsMarkType(A[n].type)?e&&e.push(A[n]):e||(e=A.slice(0,n));return e?e.length?e:PA.none:A}static compile(A,e){let n=Object.create(null);A.forEach((i,s)=>n[i]=new vy(i,e,s));let r=e.spec.topNode||"doc";if(!n[r])throw new RangeError("Schema is missing its top node type ('"+r+"')");if(!n.text)throw new RangeError("Every schema needs a 'text' type");for(let i in n.text.attrs)throw new RangeError("The text node type should not have attributes");return n}};class PQ{constructor(A){this.hasDefault=Object.prototype.hasOwnProperty.call(A,"default"),this.default=A.default}get isRequired(){return!this.hasDefault}}class xo{constructor(A,e,n,r){this.name=A,this.rank=e,this.schema=n,this.spec=r,this.attrs=lh(r.attrs),this.excluded=null;let i=oh(this.attrs);this.instance=i?new PA(this,i):null}create(A=null){return!A&&this.instance?this.instance:new PA(this,ah(this.attrs,A))}static compile(A,e){let n=Object.create(null),r=0;return A.forEach((i,s)=>n[i]=new xo(i,r++,e,s)),n}removeFromSet(A){for(var e=0;e<A.length;e++)A[e].type==this&&(A=A.slice(0,e).concat(A.slice(e+1)),e--);return A}isInSet(A){for(let e=0;e<A.length;e++)if(A[e].type==this)return A[e]}excludes(A){return this.excluded.indexOf(A)>-1}}class GQ{constructor(A){this.cached=Object.create(null);let e=this.spec={};for(let r in A)e[r]=A[r];e.nodes=He.from(A.nodes),e.marks=He.from(A.marks||{}),this.nodes=ch.compile(this.spec.nodes,this),this.marks=xo.compile(this.spec.marks,this);let n=Object.create(null);for(let r in this.nodes){if(r in this.marks)throw new RangeError(r+" can not be both a node and a mark");let i=this.nodes[r],s=i.spec.content||"",a=i.spec.marks;i.contentMatch=n[s]||(n[s]=Nr.parse(s,this.nodes)),i.inlineContent=i.contentMatch.inlineContent,i.markSet=a=="_"?null:a?uh(this,a.split(" ")):a==""||!i.inlineContent?[]:null}for(let r in this.marks){let i=this.marks[r],s=i.spec.excludes;i.excluded=s==null?[i]:s==""?[]:uh(this,s.split(" "))}this.nodeFromJSON=this.nodeFromJSON.bind(this),this.markFromJSON=this.markFromJSON.bind(this),this.topNodeType=this.nodes[this.spec.topNode||"doc"],this.cached.wrappings=Object.create(null)}node(A,e=null,n,r){if(typeof A=="string")A=this.nodeType(A);else if(A instanceof ch){if(A.schema!=this)throw new RangeError("Node type from different schema used ("+A.name+")")}else throw new RangeError("Invalid node type: "+A);return A.createChecked(e,n,r)}text(A,e){let n=this.nodes.text;return new To(n,n.defaultAttrs,A,PA.setFrom(e))}mark(A,e){return typeof A=="string"&&(A=this.marks[A]),A.create(e)}nodeFromJSON(A){return Dr.fromJSON(this,A)}markFromJSON(A){return PA.fromJSON(this,A)}nodeType(A){let e=this.nodes[A];if(!e)throw new RangeError("Unknown node type: "+A);return e}}function uh(t,A){let e=[];for(let n=0;n<A.length;n++){let r=A[n],i=t.marks[r],s=i;if(i)e.push(i);else for(let a in t.marks){let c=t.marks[a];(r=="_"||c.spec.group&&c.spec.group.split(" ").indexOf(r)>-1)&&e.push(s=c)}if(!s)throw new SyntaxError("Unknown mark type: '"+A[n]+"'")}return e}class di{constructor(A,e){this.schema=A,this.rules=e,this.tags=[],this.styles=[],e.forEach(n=>{n.tag?this.tags.push(n):n.style&&this.styles.push(n)}),this.normalizeLists=!this.tags.some(n=>{if(!/^(ul|ol)\b/.test(n.tag)||!n.node)return!1;let r=A.nodes[n.node];return r.contentMatch.matchType(r)})}parse(A,e={}){let n=new ph(this,e,!1);return n.addAll(A,e.from,e.to),n.finish()}parseSlice(A,e={}){let n=new ph(this,e,!0);return n.addAll(A,e.from,e.to),j.maxOpen(n.finish())}matchTag(A,e,n){for(let r=n?this.tags.indexOf(n)+1:0;r<this.tags.length;r++){let i=this.tags[r];if(JQ(A,i.tag)&&(i.namespace===void 0||A.namespaceURI==i.namespace)&&(!i.context||e.matchesContext(i.context))){if(i.getAttrs){let s=i.getAttrs(A);if(s===!1)continue;i.attrs=s||void 0}return i}}}matchStyle(A,e,n,r){for(let i=r?this.styles.indexOf(r)+1:0;i<this.styles.length;i++){let s=this.styles[i],a=s.style;if(!(a.indexOf(A)!=0||s.context&&!n.matchesContext(s.context)||a.length>A.length&&(a.charCodeAt(A.length)!=61||a.slice(A.length+1)!=e))){if(s.getAttrs){let c=s.getAttrs(e);if(c===!1)continue;s.attrs=c||void 0}return s}}}static schemaRules(A){let e=[];function n(r){let i=r.priority==null?50:r.priority,s=0;for(;s<e.length;s++){let a=e[s];if((a.priority==null?50:a.priority)<i)break}e.splice(s,0,r)}for(let r in A.marks){let i=A.marks[r].spec.parseDOM;i&&i.forEach(s=>{n(s=gh(s)),s.mark||s.ignore||s.clearMark||(s.mark=r)})}for(let r in A.nodes){let i=A.nodes[r].spec.parseDOM;i&&i.forEach(s=>{n(s=gh(s)),s.node||s.ignore||s.mark||(s.node=r)})}return e}static fromSchema(A){return A.cached.domParser||(A.cached.domParser=new di(A,di.schemaRules(A)))}}const fh={address:!0,article:!0,aside:!0,blockquote:!0,canvas:!0,dd:!0,div:!0,dl:!0,fieldset:!0,figcaption:!0,figure:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,li:!0,noscript:!0,ol:!0,output:!0,p:!0,pre:!0,section:!0,table:!0,tfoot:!0,ul:!0},WQ={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},dh={ol:!0,ul:!0},Ho=1,_o=2,ps=4;function hh(t,A,e){return A!=null?(A?Ho:0)|(A==="full"?_o:0):t&&t.whitespace=="pre"?Ho|_o:e&~ps}class Lo{constructor(A,e,n,r,i,s,a){this.type=A,this.attrs=e,this.marks=n,this.pendingMarks=r,this.solid=i,this.options=a,this.content=[],this.activeMarks=PA.none,this.stashMarks=[],this.match=s||(a&ps?null:A.contentMatch)}findWrapping(A){if(!this.match){if(!this.type)return[];let e=this.type.contentMatch.fillBefore(X.from(A));if(e)this.match=this.type.contentMatch.matchFragment(e);else{let n=this.type.contentMatch,r;return(r=n.findWrapping(A.type))?(this.match=n,r):null}}return this.match.findWrapping(A.type)}finish(A){if(!(this.options&Ho)){let n=this.content[this.content.length-1],r;if(n&&n.isText&&(r=/[ \t\r\n\u000c]+$/.exec(n.text))){let i=n;n.text.length==r[0].length?this.content.pop():this.content[this.content.length-1]=i.withText(i.text.slice(0,i.text.length-r[0].length))}}let e=X.from(this.content);return!A&&this.match&&(e=e.append(this.match.fillBefore(X.empty,!0))),this.type?this.type.create(this.attrs,e,this.marks):e}popFromStashMark(A){for(let e=this.stashMarks.length-1;e>=0;e--)if(A.eq(this.stashMarks[e]))return this.stashMarks.splice(e,1)[0]}applyPending(A){for(let e=0,n=this.pendingMarks;e<n.length;e++){let r=n[e];(this.type?this.type.allowsMarkType(r.type):YQ(r.type,A))&&!r.isInSet(this.activeMarks)&&(this.activeMarks=r.addToSet(this.activeMarks),this.pendingMarks=r.removeFromSet(this.pendingMarks))}}inlineContext(A){return this.type?this.type.inlineContent:this.content.length?this.content[0].isInline:A.parentNode&&!fh.hasOwnProperty(A.parentNode.nodeName.toLowerCase())}}class ph{constructor(A,e,n){this.parser=A,this.options=e,this.isOpen=n,this.open=0;let r=e.topNode,i,s=hh(null,e.preserveWhitespace,0)|(n?ps:0);r?i=new Lo(r.type,r.attrs,PA.none,PA.none,!0,e.topMatch||r.type.contentMatch,s):n?i=new Lo(null,null,PA.none,PA.none,!0,null,s):i=new Lo(A.schema.topNodeType,null,PA.none,PA.none,!0,null,s),this.nodes=[i],this.find=e.findPositions,this.needsBlock=!1}get top(){return this.nodes[this.open]}addDOM(A){if(A.nodeType==3)this.addTextNode(A);else if(A.nodeType==1){let e=A.getAttribute("style");if(!e)this.addElement(A);else{let n=this.readStyles(XQ(e));if(!n)return;let[r,i]=n,s=this.top;for(let a=0;a<i.length;a++)this.removePendingMark(i[a],s);for(let a=0;a<r.length;a++)this.addPendingMark(r[a]);this.addElement(A);for(let a=0;a<r.length;a++)this.removePendingMark(r[a],s);for(let a=0;a<i.length;a++)this.addPendingMark(i[a])}}}addTextNode(A){let e=A.nodeValue,n=this.top;if(n.options&_o||n.inlineContext(A)||/[^ \t\r\n\u000c]/.test(e)){if(n.options&Ho)n.options&_o?e=e.replace(/\r\n?/g,`
4
4
  `):e=e.replace(/\r?\n|\r/g," ");else if(e=e.replace(/[ \t\r\n\u000c]+/g," "),/^[ \t\r\n\u000c]/.test(e)&&this.open==this.nodes.length-1){let r=n.content[n.content.length-1],i=A.previousSibling;(!r||i&&i.nodeName=="BR"||r.isText&&/[ \t\r\n\u000c]$/.test(r.text))&&(e=e.slice(1))}e&&this.insertNode(this.parser.schema.text(e)),this.findInText(A)}else this.findInside(A)}addElement(A,e){let n=A.nodeName.toLowerCase(),r;dh.hasOwnProperty(n)&&this.parser.normalizeLists&&$Q(A);let i=this.options.ruleFromNode&&this.options.ruleFromNode(A)||(r=this.parser.matchTag(A,this,e));if(i?i.ignore:WQ.hasOwnProperty(n))this.findInside(A),this.ignoreFallback(A);else if(!i||i.skip||i.closeParent){i&&i.closeParent?this.open=Math.max(0,this.open-1):i&&i.skip.nodeType&&(A=i.skip);let s,a=this.top,c=this.needsBlock;if(fh.hasOwnProperty(n))a.content.length&&a.content[0].isInline&&this.open&&(this.open--,a=this.top),s=!0,a.type||(this.needsBlock=!0);else if(!A.firstChild){this.leafFallback(A);return}this.addAll(A),s&&this.sync(a),this.needsBlock=c}else this.addElementByRule(A,i,i.consuming===!1?r:void 0)}leafFallback(A){A.nodeName=="BR"&&this.top.type&&this.top.type.inlineContent&&this.addTextNode(A.ownerDocument.createTextNode(`
@@ -160,7 +160,7 @@ __p += '`),OA&&(J+=`' +
160
160
  function print() { __p += __j.call(arguments, '') }
161
161
  `:`;
162
162
  `)+J+`return __p
163
- }`;var EA=Fy(function(){return DA(Q,sA+"return "+J).apply(e,I)});if(EA.source=J,Ld(EA))throw EA;return EA}function vP(o){return RA(o).toLowerCase()}function IP(o){return RA(o).toUpperCase()}function SP(o,l,f){if(o=RA(o),o&&(f||l===e))return _C(o);if(!o||!(l=_t(l)))return o;var g=ln(o),w=ln(l),Q=LC(g,w),I=OC(g,w)+1;return Lr(g,Q,I).join("")}function TP(o,l,f){if(o=RA(o),o&&(f||l===e))return o.slice(0,MC(o)+1);if(!o||!(l=_t(l)))return o;var g=ln(o),w=OC(g,ln(l))+1;return Lr(g,0,w).join("")}function xP(o,l,f){if(o=RA(o),o&&(f||l===e))return o.replace(Lf,"");if(!o||!(l=_t(l)))return o;var g=ln(o),w=LC(g,ln(l));return Lr(g,w).join("")}function HP(o,l){var f=eA,g=gA;if(ie(l)){var w="separator"in l?l.separator:w;f="length"in l?CA(l.length):f,g="omission"in l?_t(l.omission):g}o=RA(o);var Q=o.length;if(As(o)){var I=ln(o);Q=I.length}if(f>=Q)return o;var x=f-es(g);if(x<1)return g;var O=I?Lr(I,0,x).join(""):o.slice(0,x);if(w===e)return O+g;if(I&&(x+=O.length-x),Od(w)){if(o.slice(x).search(w)){var P,G=O;for(w.global||(w=qf(w.source,RA(eC.exec(w))+"g")),w.lastIndex=0;P=w.exec(G);)var J=P.index;O=O.slice(0,J===e?x:J)}}else if(o.indexOf(_t(w),x)!=x){var z=O.lastIndexOf(w);z>-1&&(O=O.slice(0,z))}return O+g}function _P(o){return o=RA(o),o&&Vn.test(o)?o.replace(Kn,aN):o}var LP=ls(function(o,l,f){return o+(f?" ":"")+l.toUpperCase()}),Dd=U0("toUpperCase");function Ey(o,l,f){return o=RA(o),l=f?e:l,l===e?nN(o)?uN(o):XD(o):o.match(l)||[]}var Fy=UA(function(o,l){try{return xt(o,e,l)}catch(f){return Ld(f)?f:new pA(f)}}),OP=Jn(function(o,l){return $t(l,function(f){f=vn(f),Wn(o,f,Hd(o[f],o))}),o});function kP(o){var l=o==null?0:o.length,f=cA();return o=l?ne(o,function(g){if(typeof g[1]!="function")throw new Jt(s);return[f(g[0]),g[1]]}):[],UA(function(g){for(var w=-1;++w<l;){var Q=o[w];if(xt(Q[0],this,g))return xt(Q[1],this,g)}})}function MP(o){return aR(Yt(o,p))}function Nd(o){return function(){return o}}function DP(o,l){return o==null||o!==o?l:o}var NP=v0(),RP=v0(!0);function yt(o){return o}function Rd(o){return n0(typeof o=="function"?o:Yt(o,p))}function KP(o){return i0(Yt(o,p))}function VP(o,l){return s0(o,Yt(l,p))}var PP=UA(function(o,l){return function(f){return mo(f,o,l)}}),GP=UA(function(o,l){return function(f){return mo(o,f,l)}});function Kd(o,l,f){var g=xe(l),w=Hl(l,g);f==null&&!(ie(l)&&(w.length||!g.length))&&(f=l,l=o,o=this,w=Hl(l,xe(l)));var Q=!(ie(f)&&"chain"in f)||!!f.chain,I=Yn(o);return $t(w,function(x){var O=l[x];o[x]=O,I&&(o.prototype[x]=function(){var P=this.__chain__;if(Q||P){var G=o(this.__wrapped__),J=G.__actions__=mt(this.__actions__);return J.push({func:O,args:arguments,thisArg:o}),G.__chain__=P,G}return O.apply(o,Ir([this.value()],arguments))})}),o}function WP(){return Ve._===this&&(Ve._=BN),this}function Vd(){}function $P(o){return o=CA(o),UA(function(l){return o0(l,o)})}var JP=wd(ne),XP=wd(IC),YP=wd(Gf);function Uy(o){return bd(o)?Wf(vn(o)):UR(o)}function zP(o){return function(l){return o==null?e:li(o,l)}}var qP=S0(),ZP=S0(!0);function Pd(){return[]}function Gd(){return!1}function jP(){return{}}function A2(){return""}function e2(){return!0}function t2(o,l){if(o=CA(o),o<1||o>mA)return[];var f=$A,g=qe(o,$A);l=cA(l),o-=$A;for(var w=Xf(g,l);++f<o;)l(f);return w}function n2(o){return BA(o)?ne(o,vn):Lt(o)?[o]:mt(W0(RA(o)))}function r2(o){var l=++pN;return RA(o)+l}var i2=Dl(function(o,l){return o+l},0),s2=Cd("ceil"),o2=Dl(function(o,l){return o/l},1),a2=Cd("floor");function l2(o){return o&&o.length?xl(o,yt,id):e}function c2(o,l){return o&&o.length?xl(o,cA(l,2),id):e}function u2(o){return xC(o,yt)}function f2(o,l){return xC(o,cA(l,2))}function d2(o){return o&&o.length?xl(o,yt,ld):e}function h2(o,l){return o&&o.length?xl(o,cA(l,2),ld):e}var p2=Dl(function(o,l){return o*l},1),g2=Cd("round"),B2=Dl(function(o,l){return o-l},0);function m2(o){return o&&o.length?Jf(o,yt):0}function w2(o,l){return o&&o.length?Jf(o,cA(l,2)):0}return y.after=KK,y.ary=ty,y.assign=IV,y.assignIn=gy,y.assignInWith=ql,y.assignWith=SV,y.at=TV,y.before=ny,y.bind=Hd,y.bindAll=OP,y.bindKey=ry,y.castArray=jK,y.chain=j0,y.chunk=a4,y.compact=l4,y.concat=c4,y.cond=kP,y.conforms=MP,y.constant=Nd,y.countBy=mK,y.create=xV,y.curry=iy,y.curryRight=sy,y.debounce=oy,y.defaults=HV,y.defaultsDeep=_V,y.defer=VK,y.delay=PK,y.difference=u4,y.differenceBy=f4,y.differenceWith=d4,y.drop=h4,y.dropRight=p4,y.dropRightWhile=g4,y.dropWhile=B4,y.fill=m4,y.filter=CK,y.flatMap=EK,y.flatMapDeep=FK,y.flatMapDepth=UK,y.flatten=Y0,y.flattenDeep=w4,y.flattenDepth=C4,y.flip=GK,y.flow=NP,y.flowRight=RP,y.fromPairs=y4,y.functions=RV,y.functionsIn=KV,y.groupBy=bK,y.initial=E4,y.intersection=F4,y.intersectionBy=U4,y.intersectionWith=b4,y.invert=PV,y.invertBy=GV,y.invokeMap=IK,y.iteratee=Rd,y.keyBy=SK,y.keys=xe,y.keysIn=Ct,y.map=Wl,y.mapKeys=$V,y.mapValues=JV,y.matches=KP,y.matchesProperty=VP,y.memoize=Jl,y.merge=XV,y.mergeWith=By,y.method=PP,y.methodOf=GP,y.mixin=Kd,y.negate=Xl,y.nthArg=$P,y.omit=YV,y.omitBy=zV,y.once=WK,y.orderBy=TK,y.over=JP,y.overArgs=$K,y.overEvery=XP,y.overSome=YP,y.partial=_d,y.partialRight=ay,y.partition=xK,y.pick=qV,y.pickBy=my,y.property=Uy,y.propertyOf=zP,y.pull=T4,y.pullAll=q0,y.pullAllBy=x4,y.pullAllWith=H4,y.pullAt=_4,y.range=qP,y.rangeRight=ZP,y.rearg=JK,y.reject=LK,y.remove=L4,y.rest=XK,y.reverse=Td,y.sampleSize=kK,y.set=jV,y.setWith=AP,y.shuffle=MK,y.slice=O4,y.sortBy=RK,y.sortedUniq=V4,y.sortedUniqBy=P4,y.split=EP,y.spread=YK,y.tail=G4,y.take=W4,y.takeRight=$4,y.takeRightWhile=J4,y.takeWhile=X4,y.tap=lK,y.throttle=zK,y.thru=Gl,y.toArray=dy,y.toPairs=wy,y.toPairsIn=Cy,y.toPath=n2,y.toPlainObject=py,y.transform=eP,y.unary=qK,y.union=Y4,y.unionBy=z4,y.unionWith=q4,y.uniq=Z4,y.uniqBy=j4,y.uniqWith=AK,y.unset=tP,y.unzip=xd,y.unzipWith=Z0,y.update=nP,y.updateWith=rP,y.values=fs,y.valuesIn=iP,y.without=eK,y.words=Ey,y.wrap=ZK,y.xor=tK,y.xorBy=nK,y.xorWith=rK,y.zip=iK,y.zipObject=sK,y.zipObjectDeep=oK,y.zipWith=aK,y.entries=wy,y.entriesIn=Cy,y.extend=gy,y.extendWith=ql,Kd(y,y),y.add=i2,y.attempt=Fy,y.camelCase=lP,y.capitalize=yy,y.ceil=s2,y.clamp=sP,y.clone=AV,y.cloneDeep=tV,y.cloneDeepWith=nV,y.cloneWith=eV,y.conformsTo=rV,y.deburr=Qy,y.defaultTo=DP,y.divide=o2,y.endsWith=cP,y.eq=un,y.escape=uP,y.escapeRegExp=fP,y.every=wK,y.find=yK,y.findIndex=J0,y.findKey=LV,y.findLast=QK,y.findLastIndex=X0,y.findLastKey=OV,y.floor=a2,y.forEach=Ay,y.forEachRight=ey,y.forIn=kV,y.forInRight=MV,y.forOwn=DV,y.forOwnRight=NV,y.get=kd,y.gt=iV,y.gte=sV,y.has=VV,y.hasIn=Md,y.head=z0,y.identity=yt,y.includes=vK,y.indexOf=Q4,y.inRange=oP,y.invoke=WV,y.isArguments=fi,y.isArray=BA,y.isArrayBuffer=oV,y.isArrayLike=wt,y.isArrayLikeObject=de,y.isBoolean=aV,y.isBuffer=Or,y.isDate=lV,y.isElement=cV,y.isEmpty=uV,y.isEqual=fV,y.isEqualWith=dV,y.isError=Ld,y.isFinite=hV,y.isFunction=Yn,y.isInteger=ly,y.isLength=Yl,y.isMap=cy,y.isMatch=pV,y.isMatchWith=gV,y.isNaN=BV,y.isNative=mV,y.isNil=CV,y.isNull=wV,y.isNumber=uy,y.isObject=ie,y.isObjectLike=ae,y.isPlainObject=Fo,y.isRegExp=Od,y.isSafeInteger=yV,y.isSet=fy,y.isString=zl,y.isSymbol=Lt,y.isTypedArray=us,y.isUndefined=QV,y.isWeakMap=EV,y.isWeakSet=FV,y.join=v4,y.kebabCase=dP,y.last=qt,y.lastIndexOf=I4,y.lowerCase=hP,y.lowerFirst=pP,y.lt=UV,y.lte=bV,y.max=l2,y.maxBy=c2,y.mean=u2,y.meanBy=f2,y.min=d2,y.minBy=h2,y.stubArray=Pd,y.stubFalse=Gd,y.stubObject=jP,y.stubString=A2,y.stubTrue=e2,y.multiply=p2,y.nth=S4,y.noConflict=WP,y.noop=Vd,y.now=$l,y.pad=gP,y.padEnd=BP,y.padStart=mP,y.parseInt=wP,y.random=aP,y.reduce=HK,y.reduceRight=_K,y.repeat=CP,y.replace=yP,y.result=ZV,y.round=g2,y.runInContext=L,y.sample=OK,y.size=DK,y.snakeCase=QP,y.some=NK,y.sortedIndex=k4,y.sortedIndexBy=M4,y.sortedIndexOf=D4,y.sortedLastIndex=N4,y.sortedLastIndexBy=R4,y.sortedLastIndexOf=K4,y.startCase=FP,y.startsWith=UP,y.subtract=B2,y.sum=m2,y.sumBy=w2,y.template=bP,y.times=t2,y.toFinite=zn,y.toInteger=CA,y.toLength=hy,y.toLower=vP,y.toNumber=Zt,y.toSafeInteger=vV,y.toString=RA,y.toUpper=IP,y.trim=SP,y.trimEnd=TP,y.trimStart=xP,y.truncate=HP,y.unescape=_P,y.uniqueId=r2,y.upperCase=LP,y.upperFirst=Dd,y.each=Ay,y.eachRight=ey,y.first=z0,Kd(y,function(){var o={};return Un(y,function(l,f){VA.call(y.prototype,f)||(o[f]=l)}),o}(),{chain:!1}),y.VERSION=n,$t(["bind","bindKey","curry","curryRight","partial","partialRight"],function(o){y[o].placeholder=y}),$t(["drop","take"],function(o,l){_A.prototype[o]=function(f){f=f===e?1:be(CA(f),0);var g=this.__filtered__&&!l?new _A(this):this.clone();return g.__filtered__?g.__takeCount__=qe(f,g.__takeCount__):g.__views__.push({size:qe(f,$A),type:o+(g.__dir__<0?"Right":"")}),g},_A.prototype[o+"Right"]=function(f){return this.reverse()[o](f).reverse()}}),$t(["filter","map","takeWhile"],function(o,l){var f=l+1,g=f==HA||f==bA;_A.prototype[o]=function(w){var Q=this.clone();return Q.__iteratees__.push({iteratee:cA(w,3),type:f}),Q.__filtered__=Q.__filtered__||g,Q}}),$t(["head","last"],function(o,l){var f="take"+(l?"Right":"");_A.prototype[o]=function(){return this[f](1).value()[0]}}),$t(["initial","tail"],function(o,l){var f="drop"+(l?"":"Right");_A.prototype[o]=function(){return this.__filtered__?new _A(this):this[f](1)}}),_A.prototype.compact=function(){return this.filter(yt)},_A.prototype.find=function(o){return this.filter(o).head()},_A.prototype.findLast=function(o){return this.reverse().find(o)},_A.prototype.invokeMap=UA(function(o,l){return typeof o=="function"?new _A(this):this.map(function(f){return mo(f,o,l)})}),_A.prototype.reject=function(o){return this.filter(Xl(cA(o)))},_A.prototype.slice=function(o,l){o=CA(o);var f=this;return f.__filtered__&&(o>0||l<0)?new _A(f):(o<0?f=f.takeRight(-o):o&&(f=f.drop(o)),l!==e&&(l=CA(l),f=l<0?f.dropRight(-l):f.take(l-o)),f)},_A.prototype.takeRightWhile=function(o){return this.reverse().takeWhile(o).reverse()},_A.prototype.toArray=function(){return this.take($A)},Un(_A.prototype,function(o,l){var f=/^(?:filter|find|map|reject)|While$/.test(l),g=/^(?:head|last)$/.test(l),w=y[g?"take"+(l=="last"?"Right":""):l],Q=g||/^find/.test(l);w&&(y.prototype[l]=function(){var I=this.__wrapped__,x=g?[1]:arguments,O=I instanceof _A,P=x[0],G=O||BA(I),J=function(SA){var OA=w.apply(y,Ir([SA],x));return g&&z?OA[0]:OA};G&&f&&typeof P=="function"&&P.length!=1&&(O=G=!1);var z=this.__chain__,sA=!!this.__actions__.length,fA=Q&&!z,EA=O&&!sA;if(!Q&&G){I=EA?I:new _A(this);var dA=o.apply(I,x);return dA.__actions__.push({func:Gl,args:[J],thisArg:e}),new Xt(dA,z)}return fA&&EA?o.apply(this,x):(dA=this.thru(J),fA?g?dA.value()[0]:dA.value():dA)})}),$t(["pop","push","shift","sort","splice","unshift"],function(o){var l=gl[o],f=/^(?:push|sort|unshift)$/.test(o)?"tap":"thru",g=/^(?:pop|shift)$/.test(o);y.prototype[o]=function(){var w=arguments;if(g&&!this.__chain__){var Q=this.value();return l.apply(BA(Q)?Q:[],w)}return this[f](function(I){return l.apply(BA(I)?I:[],w)})}}),Un(_A.prototype,function(o,l){var f=y[l];if(f){var g=f.name+"";VA.call(is,g)||(is[g]=[]),is[g].push({name:l,func:f})}}),is[Ml(e,U).name]=[{name:"wrapper",func:e}],_A.prototype.clone=_N,_A.prototype.reverse=LN,_A.prototype.value=ON,y.prototype.at=cK,y.prototype.chain=uK,y.prototype.commit=fK,y.prototype.next=dK,y.prototype.plant=pK,y.prototype.reverse=gK,y.prototype.toJSON=y.prototype.valueOf=y.prototype.value=BK,y.prototype.first=y.prototype.head,co&&(y.prototype[co]=hK),y},ts=fN();ri?((ri.exports=ts)._=ts,Rf._=ts):Ve._=ts}).call(ks)})(JS,Ms);const XS="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAABAAAAAQACAYAAAB/HSuDAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAHkJJREFUeNrs3Q1u8zaXgNHS8JK4/xVwTyzytgnS1HZsixR/7jlAgZkMBl+hT6Z1H1FyqrX+BQAAAOzt4hAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAACAAAAACAAAAAAAAIAAA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AEAAAAAAAAIAAAAAEAAAAACAAAAAAAAEAAAAALAkwACd6iSVhnRezwAAAABJRU5ErkJggg==",YS={class:"camera__preview"},zS={class:"camera__bg-notification"},qS={class:h.normalizeClass("d-block light--text")},ZS=["width","height"],jS=["width","height"],AT={key:0,class:"camera__countdown-overlay"},eT=["innerHTML","data-countdown"],tT=["src"],nT={class:"camera__controls"},rT={class:"container"},iT={class:"row"},sT={class:"col"},oT={class:"btn-group"},aT={key:0},lT={key:1},cT={class:"camera__switch-cam"},uT=["onClick"],fT={name:"BaseCamera",inheritAttrs:!1};function dT(t){const A=atob(t.split(",")[1]),e=new ArrayBuffer(A.length),n=new Uint8Array(e);for(let r=0;r<A.length;r++)n[r]=A.charCodeAt(r);return new Blob([e],{type:"image/png"})}const hT=h.defineComponent({...fT,props:{modelValue:{type:null},enableSwitchCamera:{type:Boolean,default:!0},defaultRearCamera:{type:Boolean,default:!1},enableMirrorCamera:{type:Boolean,default:!1},enableGuide:{type:Boolean,default:!0},guideSrc:{type:String,default:()=>XS},countdown:{type:Number,default:3},ratio:{type:String,default:"16-9"}},emits:["update:modelValue"],setup(t,{expose:A,emit:e}){const n=t,r={"1-1":{width:720,height:720},"4-3":{width:640,height:480},"3-4":{width:480,height:640},"16-9":{width:1280,height:720},"9-16":{width:720,height:1280}},i=h.ref(),s=h.ref(),a=h.ref(),c=h.ref(),u=h.ref(!1),d=h.ref(!1),p=h.ref(0),B=h.ref(0),m=h.ref(),C=h.computed(()=>{const $=c.value&&a.value.findIndex(eA=>eA.deviceId===c.value.deviceId);return n.enableMirrorCamera&&$===0?"mirror-cam":""}),E=h.computed(()=>{const $=c.value&&a.value.findIndex(eA=>eA.deviceId===c.value.deviceId);return C.value?`mirror-cam mirror-device-${$}`:""});function S(){p.value=i.value.clientWidth,B.value=i.value.clientHeight}const U=Ms.debounce(()=>{S()},300,{trailing:!0,leading:!1});function v(){a.value.length>1&&(c.value=c.value&&c.value.deviceId===a.value[0].deviceId?a.value[1]:a.value[0])}function k(){navigator.mediaDevices.getUserMedia({audio:!1,video:{width:{ideal:r[n.ratio]?r[n.ratio].width:i.value.clientWidth},height:{ideal:r[n.ratio]?r[n.ratio].height:i.value.clientHeight}}}).then($=>{i.value.srcObject=$}).catch($=>{console.log($,"May the browser didnt support or there is some errors.")})}function F(){i.value.srcObject.getTracks().forEach(eA=>{eA.stop()})}function T(){u.value?(u.value=!1,d.value=!1,F()):(u.value=!0,k())}function _(){n.countdown?(m.value=m.value?m.value-1:n.countdown,m.value?setTimeout(_,1e3):N()):N()}A({onCapture:_});function N(){d.value=!0,console.log("capture");const $=s.value.getContext("2d"),eA=i.value,gA=eA&&eA.srcObject&&eA.srcObject.getTracks(),{width:wA,height:aA}=gA.length&&gA[0].getSettings(),HA=wA/aA;let WA=s.value.width,bA=WA/HA;bA<s.value.height&&(bA=s.value.height,WA=bA*HA);const vA=C.value?-1:1;$.save(),$.scale(vA,1),$.drawImage(eA,WA>s.value.width?(s.value.width-WA)/2:0,bA>s.value.height?(s.value.height-bA)/2:0,WA*vA,bA),$.restore();const mA=s.value.toDataURL("image/png");W(mA)}function W($){const eA=dT($);e("update:modelValue",{name:`cam-pic-${new Date().toISOString()}`,id:`cam-pic-${new Date().toISOString()}`,blob:eA,size:eA.size})}return h.onBeforeMount(async()=>{const $=await navigator.mediaDevices.enumerateDevices();a.value=$.filter(eA=>eA.kind==="videoinput"),c.value=a.value[0],n.defaultRearCamera&&v()}),h.onMounted(()=>{window.addEventListener("resize",U),S(),T()}),h.onBeforeUnmount(()=>{u.value=!1,d.value=!1,F(),window.removeEventListener("resize",U)}),($,eA)=>{const gA=h.resolveComponent("loading-spinner"),wA=h.resolveComponent("svg-icon");return h.openBlock(),h.createElementBlock("div",{class:h.normalizeClass(["camera",h.unref(E)])},[h.createElementVNode("div",YS,[h.createElementVNode("div",zS,[h.createVNode(gA,{color:"#000"},{default:h.withCtx(()=>[h.createElementVNode("span",qS,h.toDisplayString($.$t("camera.waitForCameraNotification")),1)]),_:1})]),h.createElementVNode("video",{ref_key:"camera",ref:i,class:"camera__video",width:p.value,height:B.value,autoplay:"",playsinline:""},null,8,ZS),h.withDirectives(h.createElementVNode("canvas",{ref_key:"canvas",ref:s,class:"camera__canvas",width:p.value,height:B.value},null,8,jS),[[h.vShow,d.value]]),m.value?(h.openBlock(),h.createElementBlock("div",AT,[(h.openBlock(),h.createElementBlock("p",{class:"countdown",key:m.value,innerHTML:m.value,"data-countdown":m.value},null,8,eT))])):h.createCommentVNode("",!0),t.enableGuide&&u.value?(h.openBlock(),h.createElementBlock("img",{key:1,class:"camera__guide",src:t.guideSrc},null,8,tT)):h.createCommentVNode("",!0)]),h.createElementVNode("div",nT,[h.createElementVNode("div",rT,[h.createElementVNode("div",iT,[h.createElementVNode("div",sT,[h.createElementVNode("div",oT,[h.createElementVNode("button",{type:"button",class:"camera__toggle btn btn-primary",onClick:T},[u.value?(h.openBlock(),h.createElementBlock("span",lT,h.toDisplayString($.$t("common.pause")),1)):(h.openBlock(),h.createElementBlock("span",aT,h.toDisplayString($.$t("common.play")),1))]),h.createElementVNode("button",{type:"button",class:"camera__capture btn btn-primary",onClick:_},h.toDisplayString($.$t("camera.capture")),1)])])])])]),h.createElementVNode("div",cT,[h.createElementVNode("button",{class:"btn",onClick:h.withModifiers(v,["prevent"])},[h.createVNode(wA,{symbol:"switch-camera"})],8,uT)])],2)}}}),K2="",pT=/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,gT=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,BT=/^\s*["[{]|^\s*-?\d[\d.]{0,14}\s*$/;function mT(t,A){if(t==="__proto__"||t==="constructor"&&A&&typeof A=="object"&&"prototype"in A){wT(t);return}return A}function wT(t){console.warn(`[destr] Dropping "${t}" key to prevent prototype pollution.`)}function CT(t,A={}){if(typeof t!="string")return t;const e=t.trim();if(t[0]==='"'&&t[t.length-1]==='"')return e.slice(1,-1);if(e.length<=9){const n=e.toLowerCase();if(n==="true")return!0;if(n==="false")return!1;if(n==="undefined")return;if(n==="null")return null;if(n==="nan")return Number.NaN;if(n==="infinity")return Number.POSITIVE_INFINITY;if(n==="-infinity")return Number.NEGATIVE_INFINITY}if(!BT.test(t)){if(A.strict)throw new SyntaxError("[destr] Invalid JSON");return t}try{if(pT.test(t)||gT.test(t)){if(A.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(t,mT)}return JSON.parse(t)}catch(n){if(A.strict)throw n;return t}}const yT=/#/g,QT=/&/g,ET=/=/g,Tu=/\+/g,FT=/%5e/gi,UT=/%60/gi,bT=/%7c/gi,vT=/%20/gi;function IT(t){return encodeURI(""+t).replace(bT,"|")}function xu(t){return IT(typeof t=="string"?t:JSON.stringify(t)).replace(Tu,"%2B").replace(vT,"+").replace(yT,"%23").replace(QT,"%26").replace(UT,"`").replace(FT,"^")}function Hu(t){return xu(t).replace(ET,"%3D")}function WB(t=""){try{return decodeURIComponent(""+t)}catch{return""+t}}function ST(t){return WB(t.replace(Tu," "))}function TT(t){return WB(t.replace(Tu," "))}function xT(t=""){const A={};t[0]==="?"&&(t=t.slice(1));for(const e of t.split("&")){const n=e.match(/([^=]+)=?(.*)/)||[];if(n.length<2)continue;const r=ST(n[1]);if(r==="__proto__"||r==="constructor")continue;const i=TT(n[2]||"");A[r]===void 0?A[r]=i:Array.isArray(A[r])?A[r].push(i):A[r]=[A[r],i]}return A}function HT(t,A){return(typeof A=="number"||typeof A=="boolean")&&(A=String(A)),A?Array.isArray(A)?A.map(e=>`${Hu(t)}=${xu(e)}`).join("&"):`${Hu(t)}=${xu(A)}`:Hu(t)}function _T(t){return Object.keys(t).filter(A=>t[A]!==void 0).map(A=>HT(A,t[A])).filter(Boolean).join("&")}const LT=/^[\s\w\0+.-]{2,}:([/\\]{1,2})/,OT=/^[\s\w\0+.-]{2,}:([/\\]{2})?/,kT=/^([/\\]\s*){2,}[^/\\]/;function $B(t,A={}){return typeof A=="boolean"&&(A={acceptRelative:A}),A.strict?LT.test(t):OT.test(t)||(A.acceptRelative?kT.test(t):!1)}const MT=/\/$|\/\?/;function _u(t="",A=!1){return A?MT.test(t):t.endsWith("/")}function DT(t="",A=!1){if(!A)return(_u(t)?t.slice(0,-1):t)||"/";if(!_u(t,!0))return t||"/";const[e,...n]=t.split("?");return(e.slice(0,-1)||"/")+(n.length>0?`?${n.join("?")}`:"")}function NT(t="",A=!1){if(!A)return t.endsWith("/")?t:t+"/";if(_u(t,!0))return t||"/";const[e,...n]=t.split("?");return e+"/"+(n.length>0?`?${n.join("?")}`:"")}function RT(t,A){if(VT(A)||$B(t))return t;const e=DT(A);return t.startsWith(e)?t:WT(e,t)}function KT(t,A){const e=JB(t),n={...xT(e.search),...A};return e.search=_T(n),$T(e)}function VT(t){return!t||t==="/"}function PT(t){return t&&t!=="/"}const GT=/^\.?\//;function WT(t,...A){let e=t||"";for(const n of A.filter(r=>PT(r)))if(e){const r=n.replace(GT,"");e=NT(e)+r}else e=n;return e}function JB(t="",A){const e=t.match(/^[\s\0]*(blob:|data:|javascript:|vbscript:)(.*)/);if(e){const[,p,B=""]=e;return{protocol:p,pathname:B,href:p+B,auth:"",host:"",search:"",hash:""}}if(!$B(t,{acceptRelative:!0}))return A?JB(A+t):XB(t);const[,n="",r,i=""]=t.replace(/\\/g,"/").match(/^[\s\0]*([\w+.-]{2,}:)?\/\/([^/@]+@)?(.*)/)||[],[,s="",a=""]=i.match(/([^#/?]*)(.*)?/)||[],{pathname:c,search:u,hash:d}=XB(a.replace(/\/(?=[A-Za-z]:)/,""));return{protocol:n,auth:r?r.slice(0,Math.max(0,r.length-1)):"",host:s,pathname:c,search:u,hash:d}}function XB(t=""){const[A="",e="",n=""]=(t.match(/([^#?]*)(\?[^#]*)?(#.*)?/)||[]).splice(1);return{pathname:A,search:e,hash:n}}function $T(t){const A=t.pathname||"",e=t.search?(t.search.startsWith("?")?"":"?")+t.search:"",n=t.hash||"",r=t.auth?t.auth+"@":"",i=t.host||"";return(t.protocol?t.protocol+"//":"")+r+i+A+e+n}class JT extends Error{constructor(A,e){super(A,e),this.name="FetchError",e!=null&&e.cause&&!this.cause&&(this.cause=e.cause)}}function XT(t){var c,u,d,p,B;const A=((c=t.error)==null?void 0:c.message)||((u=t.error)==null?void 0:u.toString())||"",e=((d=t.request)==null?void 0:d.method)||((p=t.options)==null?void 0:p.method)||"GET",n=((B=t.request)==null?void 0:B.url)||String(t.request)||"/",r=`[${e}] ${JSON.stringify(n)}`,i=t.response?`${t.response.status} ${t.response.statusText}`:"<no response>",s=`${r}: ${i}${A?` ${A}`:""}`,a=new JT(s,t.error?{cause:t.error}:void 0);for(const m of["request","options","response"])Object.defineProperty(a,m,{get(){return t[m]}});for(const[m,C]of[["data","_data"],["status","status"],["statusCode","status"],["statusText","statusText"],["statusMessage","statusText"]])Object.defineProperty(a,m,{get(){return t.response&&t.response[C]}});return a}const YT=new Set(Object.freeze(["PATCH","POST","PUT","DELETE"]));function YB(t="GET"){return YT.has(t.toUpperCase())}function zT(t){if(t===void 0)return!1;const A=typeof t;return A==="string"||A==="number"||A==="boolean"||A===null?!0:A!=="object"?!1:Array.isArray(t)?!0:t.buffer?!1:t.constructor&&t.constructor.name==="Object"||typeof t.toJSON=="function"}const qT=new Set(["image/svg","application/xml","application/xhtml","application/html"]),ZT=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;function jT(t=""){if(!t)return"json";const A=t.split(";").shift()||"";return ZT.test(A)?"json":qT.has(A)||A.startsWith("text/")?"text":"blob"}function Ax(t,A,e=globalThis.Headers){const n={...A,...t};if(A!=null&&A.params&&(t!=null&&t.params)&&(n.params={...A==null?void 0:A.params,...t==null?void 0:t.params}),A!=null&&A.query&&(t!=null&&t.query)&&(n.query={...A==null?void 0:A.query,...t==null?void 0:t.query}),A!=null&&A.headers&&(t!=null&&t.headers)){n.headers=new e((A==null?void 0:A.headers)||{});for(const[r,i]of new e((t==null?void 0:t.headers)||{}))n.headers.set(r,i)}return n}const ex=new Set([408,409,425,429,500,502,503,504]),tx=new Set([101,204,205,304]);function zB(t={}){const{fetch:A=globalThis.fetch,Headers:e=globalThis.Headers,AbortController:n=globalThis.AbortController}=t;async function r(a){const c=a.error&&a.error.name==="AbortError"&&!a.options.timeout||!1;if(a.options.retry!==!1&&!c){let d;typeof a.options.retry=="number"?d=a.options.retry:d=YB(a.options.method)?0:1;const p=a.response&&a.response.status||500;if(d>0&&(Array.isArray(a.options.retryStatusCodes)?a.options.retryStatusCodes.includes(p):ex.has(p))){const B=a.options.retryDelay||0;return B>0&&await new Promise(m=>setTimeout(m,B)),i(a.request,{...a.options,retry:d-1,timeout:a.options.timeout})}}const u=XT(a);throw Error.captureStackTrace&&Error.captureStackTrace(u,i),u}const i=async function(c,u={}){var B;const d={request:c,options:Ax(u,t.defaults,e),response:void 0,error:void 0};if(d.options.method=(B=d.options.method)==null?void 0:B.toUpperCase(),d.options.onRequest&&await d.options.onRequest(d),typeof d.request=="string"&&(d.options.baseURL&&(d.request=RT(d.request,d.options.baseURL)),(d.options.query||d.options.params)&&(d.request=KT(d.request,{...d.options.params,...d.options.query}))),d.options.body&&YB(d.options.method)&&(zT(d.options.body)?(d.options.body=typeof d.options.body=="string"?d.options.body:JSON.stringify(d.options.body),d.options.headers=new e(d.options.headers||{}),d.options.headers.has("content-type")||d.options.headers.set("content-type","application/json"),d.options.headers.has("accept")||d.options.headers.set("accept","application/json")):("pipeTo"in d.options.body&&typeof d.options.body.pipeTo=="function"||typeof d.options.body.pipe=="function")&&("duplex"in d.options||(d.options.duplex="half"))),!d.options.signal&&d.options.timeout){const m=new n;setTimeout(()=>m.abort(),d.options.timeout),d.options.signal=m.signal}try{d.response=await A(d.request,d.options)}catch(m){return d.error=m,d.options.onRequestError&&await d.options.onRequestError(d),await r(d)}if(d.response.body&&!tx.has(d.response.status)&&d.options.method!=="HEAD"){const m=(d.options.parseResponse?"json":d.options.responseType)||jT(d.response.headers.get("content-type")||"");switch(m){case"json":{const C=await d.response.text(),E=d.options.parseResponse||CT;d.response._data=E(C);break}case"stream":{d.response._data=d.response.body;break}default:d.response._data=await d.response[m]()}}return d.options.onResponse&&await d.options.onResponse(d),!d.options.ignoreResponseError&&d.response.status>=400&&d.response.status<600?(d.options.onResponseError&&await d.options.onResponseError(d),await r(d)):d.response},s=async function(c,u){return(await i(c,u))._data};return s.raw=i,s.native=(...a)=>A(...a),s.create=(a={})=>zB({...t,defaults:{...t.defaults,...a}}),s}const Lu=function(){if(typeof globalThis<"u")return globalThis;if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("unable to locate global object")}(),nx=Lu.fetch||(()=>Promise.reject(new Error("[ofetch] global.fetch is not supported!"))),rx=Lu.Headers,ix=Lu.AbortController,sx=zB({fetch:nx,Headers:rx,AbortController:ix}),ox={class:"file-upload"},ax=["src"],lx=["onClick"],cx=["for"],ux=h.createElementVNode("span",{class:"btn btn-outline-dark"}," Select Image ",-1),fx={key:0,class:"file-upload__loading-spinner"},dx=[h.createElementVNode("span",{class:"spinner-border",role:"status"},[h.createElementVNode("span",{class:"visually-hidden"},"Loading...")],-1)];async function hx(t){return await new Promise(A=>{let e=new FileReader;e.onload=()=>A(e.result),e.readAsDataURL(t)})}const px=h.defineComponent({__name:"file-upload",props:{modelValue:{type:Array,default:[]},src:{type:String},name:{type:String,default:()=>we()},id:{type:String,default:()=>we()},label:{type:String,default:""},placeholder:{type:String,default:""},variant:{type:String,default:""},disabled:{type:Boolean,default:!1},readOnly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},pattern:{type:String,default:null},multiple:{type:Boolean,default:!1},accept:{type:String,default:"image/*"},endpoint:{type:String,default:""},toDataUrl:{type:Boolean,default:!0},authToken:{type:String,default:""},customFetch:null,previewWidth:{type:Number,default:0}},emits:["update:modelValue","update:src"],setup(t,{emit:A}){const e=t,n=h.ref([]),r=h.ref([]),i=h.ref(!1),s=h.computed(()=>e.modelValue.length?e.modelValue:e.src?[{type:"",src:e.src}]:r.value);h.watch(()=>n,async(u,d)=>{r.value=await Promise.all(u.value.map(async p=>({src:e.toDataUrl?await hx(p):await c(p),type:p.type})))},{deep:!0}),h.watch(()=>r,async(u,d)=>{const p=e.multiple?r.value:r.value[0];A("update:modelValue",p),e.multiple||A("update:src",r.value[0]&&r.value[0].src)},{deep:!0});function a(u){n.value.splice(u,1),(!r.value||!r.value.length)&&A("update:src","")}async function c(u){const d=new FormData;d.append("file",u),i.value=!0;const B=await(e.customFetch||sx)(e.endpoint,{method:"POST",...e.customFetch?{}:{headers:{Accept:"application/json",...e.authToken?{Authorization:`Bearer ${e.authToken}`}:{}}},body:d}).catch(m=>{console.error("Error",m)});return i.value=!1,console.log("Response",B),`/media/${B.path}`}return(u,d)=>{const p=h.resolveComponent("svg-icon"),B=h.resolveComponent("input-file");return h.openBlock(),h.createElementBlock("div",ox,[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(h.unref(s),(m,C)=>(h.openBlock(),h.createElementBlock("div",{key:m.src,class:"file-upload__thumbnail"},[h.createElementVNode("img",{src:`${m.src}${t.previewWidth?`?width=${t.previewWidth}`:""}`,class:"img-thumbnail rounded"},null,8,ax),h.createElementVNode("button",{onClick:h.withModifiers(E=>a(C),["prevent"]),class:"btn btn--close"},[h.createVNode(p,{symbol:"x"})],8,lx)]))),128)),h.createVNode(B,{modelValue:n.value,"onUpdate:modelValue":d[0]||(d[0]=m=>n.value=m),id:t.id,name:t.name,accept:t.accept,class:"d-none"},null,8,["modelValue","id","name","accept"]),h.createElementVNode("label",{for:t.id,class:"file-upload__label"},[h.renderSlot(u.$slots,"button",{},()=>[ux]),h.createVNode(h.Transition,{name:"fade"},{default:h.withCtx(()=>[i.value?(h.openBlock(),h.createElementBlock("span",fx,dx)):h.createCommentVNode("",!0)]),_:1})],8,cx)])}}}),P2="",gx={class:"upload-group"},Bx=["innerHTML"],mx={class:"row"},wx={class:"img-container"},Cx=["src"],yx=["onClick"],Qx={class:"col-auto mb-4"},Ex={role:"button",class:"img-thumbnail d-flex justify-content-center align-items-center"},qB=h.defineComponent({__name:"upload-group",props:{modelValue:{type:Array,default:[]},name:{type:String,default:()=>we()},id:{type:String,default:()=>we()},label:{type:String,default:""},variant:{type:String,default:""},disabled:{type:Boolean,default:!1},required:{type:Boolean,default:!1},accept:{type:String,default:"image/*"},endpoint:{type:String,default:""},authToken:{type:String,default:""},customFetch:null,previewWidth:{type:Number,default:0}},emits:["update:modelValue"],setup(t,{emit:A}){const e=t,n=h.ref([...e.modelValue]);function r(i){n.value.splice(i,1),A("update:modelValue",n.value)}return h.watch(n.value,(i,s)=>{A("update:modelValue",i)}),(i,s)=>{const a=h.resolveComponent("svg-icon"),c=h.resolveComponent("file-upload");return h.openBlock(),h.createElementBlock("div",gx,[h.createElementVNode("label",{innerHTML:t.label},null,8,Bx),h.createElementVNode("div",mx,[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(n.value,(u,d)=>(h.openBlock(),h.createElementBlock("div",{key:u,class:"col-auto mb-4"},[h.createElementVNode("div",wx,[h.createElementVNode("img",{src:`${u}${t.previewWidth?`?width=${t.previewWidth}`:""}`,class:"img-thumbnail"},null,8,Cx),h.createElementVNode("button",{onClick:h.withModifiers(p=>r(d),["prevent"]),class:"btn btn--close"},[h.createVNode(a,{symbol:"x"})],8,yx)])]))),128)),h.createElementVNode("div",Qx,[h.createVNode(c,{src:n.value[n.value.length],"onUpdate:src":s[0]||(s[0]=u=>n.value[n.value.length]=u),multiple:!1,endpoint:t.endpoint,"custom-fetch":t.customFetch,"to-data-url":!t.endpoint,"auth-token":t.authToken,disabled:t.disabled},{button:h.withCtx(()=>[h.createElementVNode("span",Ex,[h.createVNode(a,{symbol:"plus"})])]),_:1},8,["src","endpoint","custom-fetch","to-data-url","auth-token","disabled"])])])])}}}),G2="",Fx={class:"upload-group"},Ux=["innerHTML"],bx=h.defineComponent({__name:"asset-uploader",props:{modelValue:{default:()=>[]},name:{type:String,default:()=>we()},id:{type:String,default:()=>we()},type:{type:String,default:""},label:{type:String,default:""},variant:{type:String,default:""},disabled:{type:Boolean,default:!1},required:{type:Boolean,default:!1},accept:{type:String,default:"image/*"},endpoint:{type:String,default:""},authToken:{type:String,default:""},customFetch:null,mediaTypeMap:{type:Object,default:()=>({svg:"Svg",png:"Image",jpg:"Image"})},previewWidth:{type:Number,default:0}},emits:["update:modelValue"],setup(t,{emit:A}){const e=t,n=h.computed({get(){return e.modelValue.map(r=>r.src)},set(r){A("update:modelValue",r.map((i,s)=>({mediaType:i instanceof Object?i.path&&e.mediaTypeMap[i.path.split(".")[1]]:i.includes("data:image/svg")?"Svg":i.includes("data:image")?"Image":"Video",src:i instanceof Object?`/media/${i.path}`:i,name:`${e.name}-${s}`,...e.type?{type:e.type}:{}})))}});return(r,i)=>(h.openBlock(),h.createElementBlock("div",Fx,[h.createElementVNode("label",{innerHTML:t.label},null,8,Ux),h.createVNode(qB,{modelValue:h.unref(n),"onUpdate:modelValue":i[0]||(i[0]=s=>h.isRef(n)?n.value=s:null),endpoint:t.endpoint,"custom-fetch":t.customFetch,"auth-token":t.authToken,disabled:t.disabled,"preview-width":t.previewWidth},null,8,["modelValue","endpoint","custom-fetch","auth-token","disabled","preview-width"])]))}}),W2="",vx={class:"carousel d-flex gap-2 align-items-center"},Ix=["onClick"],Sx={class:"carousel__track d-flex justify-center"},Tx=["onClick"],xx=["onClick"],ZB=h.defineComponent({__name:"base-carousel",props:{modelValue:{type:Number,default:-1},config:{type:Object,default:null},messages:{type:Object,default:{}},items:{type:Array,default:[]},navigation:{type:Boolean,default:!0}},emits:["update:modelValue","select"],setup(t,{emit:A}){const e=h.ref();function n(){e.value.scrollTo({top:0,left:0,behavior:"smooth"})}function r(){e.value.scrollTo({top:0,left:e.value.clientWidth,behavior:"smooth"})}function i(s){A("update:modelValue",s)}return(s,a)=>{const c=h.resolveComponent("svg-icon");return h.openBlock(),h.createElementBlock("div",vx,[t.navigation?(h.openBlock(),h.createElementBlock("button",{key:0,class:"btn btn-link text-light",type:"button",onClick:h.withModifiers(n,["prevent","stop"])},[h.createVNode(c,{symbol:"chevron-left"})],8,Ix)):h.createCommentVNode("",!0),h.createElementVNode("div",{ref_key:"viewport",ref:e,class:"carousel__viewport flex-grow-1"},[h.createElementVNode("div",Sx,[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(t.items,(u,d)=>h.renderSlot(s.$slots,"carousel-item",{key:u.src,item:u,index:d},()=>[h.createElementVNode("div",{class:h.normalizeClass(["carousel__item col-3",d===t.modelValue?"selected":""]),onClick:p=>i(d)},h.toDisplayString(u),11,Tx)])),128))])],512),t.navigation?(h.openBlock(),h.createElementBlock("button",{key:1,class:"btn btn-link text-light",type:"button",onClick:h.withModifiers(r,["prevent","stop"])},[h.createVNode(c,{symbol:"chevron-right"})],8,xx)):h.createCommentVNode("",!0)])}}}),$2="",Hx={class:"media-thumbnails"},_x=["onClick"],Lx={class:"img-container ratio ratio-1x1"},Ox=["src"],kx=h.defineComponent({__name:"media-thumbnails",props:{modelValue:{default:null},config:{type:Object,default:null},messages:{type:Object,default:{}},assets:{type:Array,default:[]}},emits:["update:modelValue","select"],setup(t,{emit:A}){const e=h.ref(-1);function n(r){A("update:modelValue",r),A("select",r)}return(r,i)=>(h.openBlock(),h.createElementBlock("div",Hx,[h.createVNode(ZB,{items:t.assets},{"carousel-item":h.withCtx(s=>[h.createElementVNode("a",{role:"button",class:"carousel-cell col-3 media-thumbnails__thumbnail",onClick:a=>n(s.index)},[h.createElementVNode("div",Lx,[h.createElementVNode("img",{src:s.item.thumbnail||s.item.src,class:h.normalizeClass(["img-fluid",e.value===s.index?"is-active":""])},null,10,Ox)])],8,_x)]),_:1},8,["items"])]))}}),J2="",Mx={class:"progress-steps"},Dx={class:"progress-steps__list"},Nx={class:"progress-step"},Rx=["checked","id","value","disabled","read-only","required","onChange"],Kx=["for"],Vx=["innerHTML"],Px=["for"],Gx=["innerHTML"],Wx=h.defineComponent({__name:"progress-steps",props:{modelValue:{type:Number,default:0},progress:{type:Number,default:0},steps:{type:Array},label:{type:String,default:""},reveal:{type:Boolean,default:!1}},emits:["update:modelValue","update:progress"],setup(t,{emit:A}){const e=t;function n(r){A("update:modelValue",r),r>=e.progress&&A("update:progress",r)}return(r,i)=>(h.openBlock(),h.createElementBlock("div",Mx,[h.createElementVNode("ul",Dx,[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(t.steps,(s,a)=>(h.openBlock(),h.createElementBlock("li",{key:a,class:h.normalizeClass(["progress-steps__step",{"progress-steps__step--disabled":a>t.progress+(t.reveal?1:0),"progress-steps__step--active":a===(t.modelValue||0)}])},[h.renderSlot(r.$slots,"step",{},()=>[h.createElementVNode("div",Nx,[h.createElementVNode("input",{type:"radio",checked:a<=(t.progress||0),id:`step-${a}`,name:"step",class:"form-check-input",value:s.value,disabled:s.disabled||a>t.progress+(t.reveal?1:0),"read-only":s.readOnly,required:s.required,onChange:c=>n(a)},null,40,Rx),h.createElementVNode("label",{for:`step-${a}`},[h.renderSlot(r.$slots,"button",{step:s},()=>[h.createElementVNode("span",{class:"btn rounded-circle",innerHTML:s.text},null,8,Vx)])],8,Kx),h.createElementVNode("label",{for:`step-${a}`},[h.renderSlot(r.$slots,"label",{step:s},()=>[h.createElementVNode("span",{class:"form-check-label",innerHTML:s.label},null,8,Gx)])],8,Px)])])],2))),128))])]))}}),X2="";/*!
163
+ }`;var EA=Fy(function(){return DA(Q,sA+"return "+J).apply(e,I)});if(EA.source=J,Ld(EA))throw EA;return EA}function vP(o){return RA(o).toLowerCase()}function IP(o){return RA(o).toUpperCase()}function SP(o,l,f){if(o=RA(o),o&&(f||l===e))return _C(o);if(!o||!(l=_t(l)))return o;var g=ln(o),w=ln(l),Q=LC(g,w),I=OC(g,w)+1;return Lr(g,Q,I).join("")}function TP(o,l,f){if(o=RA(o),o&&(f||l===e))return o.slice(0,MC(o)+1);if(!o||!(l=_t(l)))return o;var g=ln(o),w=OC(g,ln(l))+1;return Lr(g,0,w).join("")}function xP(o,l,f){if(o=RA(o),o&&(f||l===e))return o.replace(Lf,"");if(!o||!(l=_t(l)))return o;var g=ln(o),w=LC(g,ln(l));return Lr(g,w).join("")}function HP(o,l){var f=eA,g=gA;if(ie(l)){var w="separator"in l?l.separator:w;f="length"in l?CA(l.length):f,g="omission"in l?_t(l.omission):g}o=RA(o);var Q=o.length;if(As(o)){var I=ln(o);Q=I.length}if(f>=Q)return o;var x=f-es(g);if(x<1)return g;var O=I?Lr(I,0,x).join(""):o.slice(0,x);if(w===e)return O+g;if(I&&(x+=O.length-x),Od(w)){if(o.slice(x).search(w)){var P,G=O;for(w.global||(w=qf(w.source,RA(eC.exec(w))+"g")),w.lastIndex=0;P=w.exec(G);)var J=P.index;O=O.slice(0,J===e?x:J)}}else if(o.indexOf(_t(w),x)!=x){var z=O.lastIndexOf(w);z>-1&&(O=O.slice(0,z))}return O+g}function _P(o){return o=RA(o),o&&Vn.test(o)?o.replace(Kn,aN):o}var LP=ls(function(o,l,f){return o+(f?" ":"")+l.toUpperCase()}),Dd=U0("toUpperCase");function Ey(o,l,f){return o=RA(o),l=f?e:l,l===e?nN(o)?uN(o):XD(o):o.match(l)||[]}var Fy=UA(function(o,l){try{return xt(o,e,l)}catch(f){return Ld(f)?f:new pA(f)}}),OP=Jn(function(o,l){return $t(l,function(f){f=vn(f),Wn(o,f,Hd(o[f],o))}),o});function kP(o){var l=o==null?0:o.length,f=cA();return o=l?ne(o,function(g){if(typeof g[1]!="function")throw new Jt(s);return[f(g[0]),g[1]]}):[],UA(function(g){for(var w=-1;++w<l;){var Q=o[w];if(xt(Q[0],this,g))return xt(Q[1],this,g)}})}function MP(o){return aR(Yt(o,p))}function Nd(o){return function(){return o}}function DP(o,l){return o==null||o!==o?l:o}var NP=v0(),RP=v0(!0);function yt(o){return o}function Rd(o){return n0(typeof o=="function"?o:Yt(o,p))}function KP(o){return i0(Yt(o,p))}function VP(o,l){return s0(o,Yt(l,p))}var PP=UA(function(o,l){return function(f){return mo(f,o,l)}}),GP=UA(function(o,l){return function(f){return mo(o,f,l)}});function Kd(o,l,f){var g=xe(l),w=Hl(l,g);f==null&&!(ie(l)&&(w.length||!g.length))&&(f=l,l=o,o=this,w=Hl(l,xe(l)));var Q=!(ie(f)&&"chain"in f)||!!f.chain,I=Yn(o);return $t(w,function(x){var O=l[x];o[x]=O,I&&(o.prototype[x]=function(){var P=this.__chain__;if(Q||P){var G=o(this.__wrapped__),J=G.__actions__=mt(this.__actions__);return J.push({func:O,args:arguments,thisArg:o}),G.__chain__=P,G}return O.apply(o,Ir([this.value()],arguments))})}),o}function WP(){return Ve._===this&&(Ve._=BN),this}function Vd(){}function $P(o){return o=CA(o),UA(function(l){return o0(l,o)})}var JP=wd(ne),XP=wd(IC),YP=wd(Gf);function Uy(o){return bd(o)?Wf(vn(o)):UR(o)}function zP(o){return function(l){return o==null?e:li(o,l)}}var qP=S0(),ZP=S0(!0);function Pd(){return[]}function Gd(){return!1}function jP(){return{}}function A2(){return""}function e2(){return!0}function t2(o,l){if(o=CA(o),o<1||o>mA)return[];var f=$A,g=qe(o,$A);l=cA(l),o-=$A;for(var w=Xf(g,l);++f<o;)l(f);return w}function n2(o){return BA(o)?ne(o,vn):Lt(o)?[o]:mt(W0(RA(o)))}function r2(o){var l=++pN;return RA(o)+l}var i2=Dl(function(o,l){return o+l},0),s2=Cd("ceil"),o2=Dl(function(o,l){return o/l},1),a2=Cd("floor");function l2(o){return o&&o.length?xl(o,yt,id):e}function c2(o,l){return o&&o.length?xl(o,cA(l,2),id):e}function u2(o){return xC(o,yt)}function f2(o,l){return xC(o,cA(l,2))}function d2(o){return o&&o.length?xl(o,yt,ld):e}function h2(o,l){return o&&o.length?xl(o,cA(l,2),ld):e}var p2=Dl(function(o,l){return o*l},1),g2=Cd("round"),B2=Dl(function(o,l){return o-l},0);function m2(o){return o&&o.length?Jf(o,yt):0}function w2(o,l){return o&&o.length?Jf(o,cA(l,2)):0}return y.after=KK,y.ary=ty,y.assign=IV,y.assignIn=gy,y.assignInWith=ql,y.assignWith=SV,y.at=TV,y.before=ny,y.bind=Hd,y.bindAll=OP,y.bindKey=ry,y.castArray=jK,y.chain=j0,y.chunk=a4,y.compact=l4,y.concat=c4,y.cond=kP,y.conforms=MP,y.constant=Nd,y.countBy=mK,y.create=xV,y.curry=iy,y.curryRight=sy,y.debounce=oy,y.defaults=HV,y.defaultsDeep=_V,y.defer=VK,y.delay=PK,y.difference=u4,y.differenceBy=f4,y.differenceWith=d4,y.drop=h4,y.dropRight=p4,y.dropRightWhile=g4,y.dropWhile=B4,y.fill=m4,y.filter=CK,y.flatMap=EK,y.flatMapDeep=FK,y.flatMapDepth=UK,y.flatten=Y0,y.flattenDeep=w4,y.flattenDepth=C4,y.flip=GK,y.flow=NP,y.flowRight=RP,y.fromPairs=y4,y.functions=RV,y.functionsIn=KV,y.groupBy=bK,y.initial=E4,y.intersection=F4,y.intersectionBy=U4,y.intersectionWith=b4,y.invert=PV,y.invertBy=GV,y.invokeMap=IK,y.iteratee=Rd,y.keyBy=SK,y.keys=xe,y.keysIn=Ct,y.map=Wl,y.mapKeys=$V,y.mapValues=JV,y.matches=KP,y.matchesProperty=VP,y.memoize=Jl,y.merge=XV,y.mergeWith=By,y.method=PP,y.methodOf=GP,y.mixin=Kd,y.negate=Xl,y.nthArg=$P,y.omit=YV,y.omitBy=zV,y.once=WK,y.orderBy=TK,y.over=JP,y.overArgs=$K,y.overEvery=XP,y.overSome=YP,y.partial=_d,y.partialRight=ay,y.partition=xK,y.pick=qV,y.pickBy=my,y.property=Uy,y.propertyOf=zP,y.pull=T4,y.pullAll=q0,y.pullAllBy=x4,y.pullAllWith=H4,y.pullAt=_4,y.range=qP,y.rangeRight=ZP,y.rearg=JK,y.reject=LK,y.remove=L4,y.rest=XK,y.reverse=Td,y.sampleSize=kK,y.set=jV,y.setWith=AP,y.shuffle=MK,y.slice=O4,y.sortBy=RK,y.sortedUniq=V4,y.sortedUniqBy=P4,y.split=EP,y.spread=YK,y.tail=G4,y.take=W4,y.takeRight=$4,y.takeRightWhile=J4,y.takeWhile=X4,y.tap=lK,y.throttle=zK,y.thru=Gl,y.toArray=dy,y.toPairs=wy,y.toPairsIn=Cy,y.toPath=n2,y.toPlainObject=py,y.transform=eP,y.unary=qK,y.union=Y4,y.unionBy=z4,y.unionWith=q4,y.uniq=Z4,y.uniqBy=j4,y.uniqWith=AK,y.unset=tP,y.unzip=xd,y.unzipWith=Z0,y.update=nP,y.updateWith=rP,y.values=fs,y.valuesIn=iP,y.without=eK,y.words=Ey,y.wrap=ZK,y.xor=tK,y.xorBy=nK,y.xorWith=rK,y.zip=iK,y.zipObject=sK,y.zipObjectDeep=oK,y.zipWith=aK,y.entries=wy,y.entriesIn=Cy,y.extend=gy,y.extendWith=ql,Kd(y,y),y.add=i2,y.attempt=Fy,y.camelCase=lP,y.capitalize=yy,y.ceil=s2,y.clamp=sP,y.clone=AV,y.cloneDeep=tV,y.cloneDeepWith=nV,y.cloneWith=eV,y.conformsTo=rV,y.deburr=Qy,y.defaultTo=DP,y.divide=o2,y.endsWith=cP,y.eq=un,y.escape=uP,y.escapeRegExp=fP,y.every=wK,y.find=yK,y.findIndex=J0,y.findKey=LV,y.findLast=QK,y.findLastIndex=X0,y.findLastKey=OV,y.floor=a2,y.forEach=Ay,y.forEachRight=ey,y.forIn=kV,y.forInRight=MV,y.forOwn=DV,y.forOwnRight=NV,y.get=kd,y.gt=iV,y.gte=sV,y.has=VV,y.hasIn=Md,y.head=z0,y.identity=yt,y.includes=vK,y.indexOf=Q4,y.inRange=oP,y.invoke=WV,y.isArguments=fi,y.isArray=BA,y.isArrayBuffer=oV,y.isArrayLike=wt,y.isArrayLikeObject=de,y.isBoolean=aV,y.isBuffer=Or,y.isDate=lV,y.isElement=cV,y.isEmpty=uV,y.isEqual=fV,y.isEqualWith=dV,y.isError=Ld,y.isFinite=hV,y.isFunction=Yn,y.isInteger=ly,y.isLength=Yl,y.isMap=cy,y.isMatch=pV,y.isMatchWith=gV,y.isNaN=BV,y.isNative=mV,y.isNil=CV,y.isNull=wV,y.isNumber=uy,y.isObject=ie,y.isObjectLike=ae,y.isPlainObject=Fo,y.isRegExp=Od,y.isSafeInteger=yV,y.isSet=fy,y.isString=zl,y.isSymbol=Lt,y.isTypedArray=us,y.isUndefined=QV,y.isWeakMap=EV,y.isWeakSet=FV,y.join=v4,y.kebabCase=dP,y.last=qt,y.lastIndexOf=I4,y.lowerCase=hP,y.lowerFirst=pP,y.lt=UV,y.lte=bV,y.max=l2,y.maxBy=c2,y.mean=u2,y.meanBy=f2,y.min=d2,y.minBy=h2,y.stubArray=Pd,y.stubFalse=Gd,y.stubObject=jP,y.stubString=A2,y.stubTrue=e2,y.multiply=p2,y.nth=S4,y.noConflict=WP,y.noop=Vd,y.now=$l,y.pad=gP,y.padEnd=BP,y.padStart=mP,y.parseInt=wP,y.random=aP,y.reduce=HK,y.reduceRight=_K,y.repeat=CP,y.replace=yP,y.result=ZV,y.round=g2,y.runInContext=L,y.sample=OK,y.size=DK,y.snakeCase=QP,y.some=NK,y.sortedIndex=k4,y.sortedIndexBy=M4,y.sortedIndexOf=D4,y.sortedLastIndex=N4,y.sortedLastIndexBy=R4,y.sortedLastIndexOf=K4,y.startCase=FP,y.startsWith=UP,y.subtract=B2,y.sum=m2,y.sumBy=w2,y.template=bP,y.times=t2,y.toFinite=zn,y.toInteger=CA,y.toLength=hy,y.toLower=vP,y.toNumber=Zt,y.toSafeInteger=vV,y.toString=RA,y.toUpper=IP,y.trim=SP,y.trimEnd=TP,y.trimStart=xP,y.truncate=HP,y.unescape=_P,y.uniqueId=r2,y.upperCase=LP,y.upperFirst=Dd,y.each=Ay,y.eachRight=ey,y.first=z0,Kd(y,function(){var o={};return Un(y,function(l,f){VA.call(y.prototype,f)||(o[f]=l)}),o}(),{chain:!1}),y.VERSION=n,$t(["bind","bindKey","curry","curryRight","partial","partialRight"],function(o){y[o].placeholder=y}),$t(["drop","take"],function(o,l){_A.prototype[o]=function(f){f=f===e?1:be(CA(f),0);var g=this.__filtered__&&!l?new _A(this):this.clone();return g.__filtered__?g.__takeCount__=qe(f,g.__takeCount__):g.__views__.push({size:qe(f,$A),type:o+(g.__dir__<0?"Right":"")}),g},_A.prototype[o+"Right"]=function(f){return this.reverse()[o](f).reverse()}}),$t(["filter","map","takeWhile"],function(o,l){var f=l+1,g=f==HA||f==bA;_A.prototype[o]=function(w){var Q=this.clone();return Q.__iteratees__.push({iteratee:cA(w,3),type:f}),Q.__filtered__=Q.__filtered__||g,Q}}),$t(["head","last"],function(o,l){var f="take"+(l?"Right":"");_A.prototype[o]=function(){return this[f](1).value()[0]}}),$t(["initial","tail"],function(o,l){var f="drop"+(l?"":"Right");_A.prototype[o]=function(){return this.__filtered__?new _A(this):this[f](1)}}),_A.prototype.compact=function(){return this.filter(yt)},_A.prototype.find=function(o){return this.filter(o).head()},_A.prototype.findLast=function(o){return this.reverse().find(o)},_A.prototype.invokeMap=UA(function(o,l){return typeof o=="function"?new _A(this):this.map(function(f){return mo(f,o,l)})}),_A.prototype.reject=function(o){return this.filter(Xl(cA(o)))},_A.prototype.slice=function(o,l){o=CA(o);var f=this;return f.__filtered__&&(o>0||l<0)?new _A(f):(o<0?f=f.takeRight(-o):o&&(f=f.drop(o)),l!==e&&(l=CA(l),f=l<0?f.dropRight(-l):f.take(l-o)),f)},_A.prototype.takeRightWhile=function(o){return this.reverse().takeWhile(o).reverse()},_A.prototype.toArray=function(){return this.take($A)},Un(_A.prototype,function(o,l){var f=/^(?:filter|find|map|reject)|While$/.test(l),g=/^(?:head|last)$/.test(l),w=y[g?"take"+(l=="last"?"Right":""):l],Q=g||/^find/.test(l);w&&(y.prototype[l]=function(){var I=this.__wrapped__,x=g?[1]:arguments,O=I instanceof _A,P=x[0],G=O||BA(I),J=function(SA){var OA=w.apply(y,Ir([SA],x));return g&&z?OA[0]:OA};G&&f&&typeof P=="function"&&P.length!=1&&(O=G=!1);var z=this.__chain__,sA=!!this.__actions__.length,fA=Q&&!z,EA=O&&!sA;if(!Q&&G){I=EA?I:new _A(this);var dA=o.apply(I,x);return dA.__actions__.push({func:Gl,args:[J],thisArg:e}),new Xt(dA,z)}return fA&&EA?o.apply(this,x):(dA=this.thru(J),fA?g?dA.value()[0]:dA.value():dA)})}),$t(["pop","push","shift","sort","splice","unshift"],function(o){var l=gl[o],f=/^(?:push|sort|unshift)$/.test(o)?"tap":"thru",g=/^(?:pop|shift)$/.test(o);y.prototype[o]=function(){var w=arguments;if(g&&!this.__chain__){var Q=this.value();return l.apply(BA(Q)?Q:[],w)}return this[f](function(I){return l.apply(BA(I)?I:[],w)})}}),Un(_A.prototype,function(o,l){var f=y[l];if(f){var g=f.name+"";VA.call(is,g)||(is[g]=[]),is[g].push({name:l,func:f})}}),is[Ml(e,U).name]=[{name:"wrapper",func:e}],_A.prototype.clone=_N,_A.prototype.reverse=LN,_A.prototype.value=ON,y.prototype.at=cK,y.prototype.chain=uK,y.prototype.commit=fK,y.prototype.next=dK,y.prototype.plant=pK,y.prototype.reverse=gK,y.prototype.toJSON=y.prototype.valueOf=y.prototype.value=BK,y.prototype.first=y.prototype.head,co&&(y.prototype[co]=hK),y},ts=fN();ri?((ri.exports=ts)._=ts,Rf._=ts):Ve._=ts}).call(ks)})(JS,Ms);const XS="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAABAAAAAQACAYAAAB/HSuDAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAHkJJREFUeNrs3Q1u8zaXgNHS8JK4/xVwTyzytgnS1HZsixR/7jlAgZkMBl+hT6Z1H1FyqrX+BQAAAOzt4hAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAAC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AAAQAAAAAEAAAAAAAAQAAAAAQAAAAAAABAAAAABAAAAAAAAEAAAAAEAAAAAAAAQAAAAAEAIcAAAAABAAAAABAAAAAAAAEAAAAAEAAAAAAAAQAAAAAQAAAAAAABAAAAABAAAAAAAABAAAAABAAAAAAAAEAAAAAEAAAAACAs13f+X/KOdfv/3spJTmUAAAA0EeLOfxy9D/03t8AAACA9sP/u3O4RwAAAAAggJcCgDv9AAAAMIdXZ3Q7AAAAACAAAQAAAAAEAAAAAEAAAADgb3bsWAAAAABgkL/1IPYWRgAgAAAAAAABAAAAAAgAAAAAQAAAAAAAAgAAAAAQAAAAACAAAAAAAAEAAAAACAAAAABAAAAAAAACAAAAABAAAAAAgAAAAAAABAAAAAAIAAAAAEAAAAAAAAIAAAAAEAAAAACAAAAAAAAEAAAAALAkwACd6iSVhnRezwAAAABJRU5ErkJggg==",YS={class:"camera__preview"},zS={class:"camera__bg-notification"},qS={class:h.normalizeClass("d-block light--text")},ZS=["width","height"],jS=["width","height"],AT={key:0,class:"camera__countdown-overlay"},eT=["innerHTML","data-countdown"],tT=["src"],nT={class:"camera__controls"},rT={class:"container"},iT={class:"row"},sT={class:"col"},oT={class:"btn-group"},aT={key:0},lT={key:1},cT={class:"camera__switch-cam"},uT=["onClick"],fT={name:"BaseCamera",inheritAttrs:!1};function dT(t){const A=atob(t.split(",")[1]),e=new ArrayBuffer(A.length),n=new Uint8Array(e);for(let r=0;r<A.length;r++)n[r]=A.charCodeAt(r);return new Blob([e],{type:"image/png"})}const hT=h.defineComponent({...fT,props:{modelValue:{type:null},enableSwitchCamera:{type:Boolean,default:!0},defaultRearCamera:{type:Boolean,default:!1},enableMirrorCamera:{type:Boolean,default:!1},enableGuide:{type:Boolean,default:!0},guideSrc:{type:String,default:()=>XS},countdown:{type:Number,default:3},ratio:{type:String,default:"16-9"}},emits:["update:modelValue"],setup(t,{expose:A,emit:e}){const n=t,r={"1-1":{width:720,height:720},"4-3":{width:640,height:480},"3-4":{width:480,height:640},"16-9":{width:1280,height:720},"9-16":{width:720,height:1280}},i=h.ref(),s=h.ref(),a=h.ref(),c=h.ref(),u=h.ref(!1),d=h.ref(!1),p=h.ref(0),B=h.ref(0),m=h.ref(),C=h.computed(()=>{const $=c.value&&a.value.findIndex(eA=>eA.deviceId===c.value.deviceId);return n.enableMirrorCamera&&$===0?"mirror-cam":""}),E=h.computed(()=>{const $=c.value&&a.value.findIndex(eA=>eA.deviceId===c.value.deviceId);return C.value?`mirror-cam mirror-device-${$}`:""});function S(){p.value=i.value.clientWidth,B.value=i.value.clientHeight}const U=Ms.debounce(()=>{S()},300,{trailing:!0,leading:!1});function v(){a.value.length>1&&(c.value=c.value&&c.value.deviceId===a.value[0].deviceId?a.value[1]:a.value[0])}function k(){navigator.mediaDevices.getUserMedia({audio:!1,video:{width:{ideal:r[n.ratio]?r[n.ratio].width:i.value.clientWidth},height:{ideal:r[n.ratio]?r[n.ratio].height:i.value.clientHeight}}}).then($=>{i.value.srcObject=$}).catch($=>{console.log($,"May the browser didnt support or there is some errors.")})}function F(){i.value.srcObject.getTracks().forEach(eA=>{eA.stop()})}function T(){u.value?(u.value=!1,d.value=!1,F()):(u.value=!0,k())}function _(){n.countdown?(m.value=m.value?m.value-1:n.countdown,m.value?setTimeout(_,1e3):N()):N()}A({onCapture:_});function N(){d.value=!0,console.log("capture");const $=s.value.getContext("2d"),eA=i.value,gA=eA&&eA.srcObject&&eA.srcObject.getTracks(),{width:wA,height:aA}=gA.length&&gA[0].getSettings(),HA=wA/aA;let WA=s.value.width,bA=WA/HA;bA<s.value.height&&(bA=s.value.height,WA=bA*HA);const vA=C.value?-1:1;$.save(),$.scale(vA,1),$.drawImage(eA,WA>s.value.width?(s.value.width-WA)/2:0,bA>s.value.height?(s.value.height-bA)/2:0,WA*vA,bA),$.restore();const mA=s.value.toDataURL("image/png");W(mA)}function W($){const eA=dT($);e("update:modelValue",{name:`cam-pic-${new Date().toISOString()}`,id:`cam-pic-${new Date().toISOString()}`,blob:eA,size:eA.size})}return h.onBeforeMount(async()=>{const $=await navigator.mediaDevices.enumerateDevices();a.value=$.filter(eA=>eA.kind==="videoinput"),c.value=a.value[0],n.defaultRearCamera&&v()}),h.onMounted(()=>{window.addEventListener("resize",U),S(),T()}),h.onBeforeUnmount(()=>{u.value=!1,d.value=!1,F(),window.removeEventListener("resize",U)}),($,eA)=>{const gA=h.resolveComponent("loading-spinner"),wA=h.resolveComponent("svg-icon");return h.openBlock(),h.createElementBlock("div",{class:h.normalizeClass(["camera",h.unref(E)])},[h.createElementVNode("div",YS,[h.createElementVNode("div",zS,[h.createVNode(gA,{color:"#000"},{default:h.withCtx(()=>[h.createElementVNode("span",qS,h.toDisplayString($.$t("camera.waitForCameraNotification")),1)]),_:1})]),h.createElementVNode("video",{ref_key:"camera",ref:i,class:"camera__video",width:p.value,height:B.value,autoplay:"",playsinline:""},null,8,ZS),h.withDirectives(h.createElementVNode("canvas",{ref_key:"canvas",ref:s,class:"camera__canvas",width:p.value,height:B.value},null,8,jS),[[h.vShow,d.value]]),m.value?(h.openBlock(),h.createElementBlock("div",AT,[(h.openBlock(),h.createElementBlock("p",{class:"countdown",key:m.value,innerHTML:m.value,"data-countdown":m.value},null,8,eT))])):h.createCommentVNode("",!0),t.enableGuide&&u.value?(h.openBlock(),h.createElementBlock("img",{key:1,class:"camera__guide",src:t.guideSrc},null,8,tT)):h.createCommentVNode("",!0)]),h.createElementVNode("div",nT,[h.createElementVNode("div",rT,[h.createElementVNode("div",iT,[h.createElementVNode("div",sT,[h.createElementVNode("div",oT,[h.createElementVNode("button",{type:"button",class:"camera__toggle btn btn-primary",onClick:T},[u.value?(h.openBlock(),h.createElementBlock("span",lT,h.toDisplayString($.$t("common.pause")),1)):(h.openBlock(),h.createElementBlock("span",aT,h.toDisplayString($.$t("common.play")),1))]),h.createElementVNode("button",{type:"button",class:"camera__capture btn btn-primary",onClick:_},h.toDisplayString($.$t("camera.capture")),1)])])])])]),h.createElementVNode("div",cT,[h.createElementVNode("button",{class:"btn",onClick:h.withModifiers(v,["prevent"])},[h.createVNode(wA,{symbol:"switch-camera"})],8,uT)])],2)}}}),K2="",pT=/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,gT=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,BT=/^\s*["[{]|^\s*-?\d[\d.]{0,14}\s*$/;function mT(t,A){if(t==="__proto__"||t==="constructor"&&A&&typeof A=="object"&&"prototype"in A){wT(t);return}return A}function wT(t){console.warn(`[destr] Dropping "${t}" key to prevent prototype pollution.`)}function CT(t,A={}){if(typeof t!="string")return t;const e=t.trim();if(t[0]==='"'&&t[t.length-1]==='"')return e.slice(1,-1);if(e.length<=9){const n=e.toLowerCase();if(n==="true")return!0;if(n==="false")return!1;if(n==="undefined")return;if(n==="null")return null;if(n==="nan")return Number.NaN;if(n==="infinity")return Number.POSITIVE_INFINITY;if(n==="-infinity")return Number.NEGATIVE_INFINITY}if(!BT.test(t)){if(A.strict)throw new SyntaxError("[destr] Invalid JSON");return t}try{if(pT.test(t)||gT.test(t)){if(A.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(t,mT)}return JSON.parse(t)}catch(n){if(A.strict)throw n;return t}}const yT=/#/g,QT=/&/g,ET=/=/g,Tu=/\+/g,FT=/%5e/gi,UT=/%60/gi,bT=/%7c/gi,vT=/%20/gi;function IT(t){return encodeURI(""+t).replace(bT,"|")}function xu(t){return IT(typeof t=="string"?t:JSON.stringify(t)).replace(Tu,"%2B").replace(vT,"+").replace(yT,"%23").replace(QT,"%26").replace(UT,"`").replace(FT,"^")}function Hu(t){return xu(t).replace(ET,"%3D")}function WB(t=""){try{return decodeURIComponent(""+t)}catch{return""+t}}function ST(t){return WB(t.replace(Tu," "))}function TT(t){return WB(t.replace(Tu," "))}function xT(t=""){const A={};t[0]==="?"&&(t=t.slice(1));for(const e of t.split("&")){const n=e.match(/([^=]+)=?(.*)/)||[];if(n.length<2)continue;const r=ST(n[1]);if(r==="__proto__"||r==="constructor")continue;const i=TT(n[2]||"");A[r]===void 0?A[r]=i:Array.isArray(A[r])?A[r].push(i):A[r]=[A[r],i]}return A}function HT(t,A){return(typeof A=="number"||typeof A=="boolean")&&(A=String(A)),A?Array.isArray(A)?A.map(e=>`${Hu(t)}=${xu(e)}`).join("&"):`${Hu(t)}=${xu(A)}`:Hu(t)}function _T(t){return Object.keys(t).filter(A=>t[A]!==void 0).map(A=>HT(A,t[A])).filter(Boolean).join("&")}const LT=/^[\s\w\0+.-]{2,}:([/\\]{1,2})/,OT=/^[\s\w\0+.-]{2,}:([/\\]{2})?/,kT=/^([/\\]\s*){2,}[^/\\]/;function $B(t,A={}){return typeof A=="boolean"&&(A={acceptRelative:A}),A.strict?LT.test(t):OT.test(t)||(A.acceptRelative?kT.test(t):!1)}const MT=/\/$|\/\?/;function _u(t="",A=!1){return A?MT.test(t):t.endsWith("/")}function DT(t="",A=!1){if(!A)return(_u(t)?t.slice(0,-1):t)||"/";if(!_u(t,!0))return t||"/";const[e,...n]=t.split("?");return(e.slice(0,-1)||"/")+(n.length>0?`?${n.join("?")}`:"")}function NT(t="",A=!1){if(!A)return t.endsWith("/")?t:t+"/";if(_u(t,!0))return t||"/";const[e,...n]=t.split("?");return e+"/"+(n.length>0?`?${n.join("?")}`:"")}function RT(t,A){if(VT(A)||$B(t))return t;const e=DT(A);return t.startsWith(e)?t:WT(e,t)}function KT(t,A){const e=JB(t),n={...xT(e.search),...A};return e.search=_T(n),$T(e)}function VT(t){return!t||t==="/"}function PT(t){return t&&t!=="/"}const GT=/^\.?\//;function WT(t,...A){let e=t||"";for(const n of A.filter(r=>PT(r)))if(e){const r=n.replace(GT,"");e=NT(e)+r}else e=n;return e}function JB(t="",A){const e=t.match(/^[\s\0]*(blob:|data:|javascript:|vbscript:)(.*)/);if(e){const[,p,B=""]=e;return{protocol:p,pathname:B,href:p+B,auth:"",host:"",search:"",hash:""}}if(!$B(t,{acceptRelative:!0}))return A?JB(A+t):XB(t);const[,n="",r,i=""]=t.replace(/\\/g,"/").match(/^[\s\0]*([\w+.-]{2,}:)?\/\/([^/@]+@)?(.*)/)||[],[,s="",a=""]=i.match(/([^#/?]*)(.*)?/)||[],{pathname:c,search:u,hash:d}=XB(a.replace(/\/(?=[A-Za-z]:)/,""));return{protocol:n,auth:r?r.slice(0,Math.max(0,r.length-1)):"",host:s,pathname:c,search:u,hash:d}}function XB(t=""){const[A="",e="",n=""]=(t.match(/([^#?]*)(\?[^#]*)?(#.*)?/)||[]).splice(1);return{pathname:A,search:e,hash:n}}function $T(t){const A=t.pathname||"",e=t.search?(t.search.startsWith("?")?"":"?")+t.search:"",n=t.hash||"",r=t.auth?t.auth+"@":"",i=t.host||"";return(t.protocol?t.protocol+"//":"")+r+i+A+e+n}class JT extends Error{constructor(A,e){super(A,e),this.name="FetchError",e!=null&&e.cause&&!this.cause&&(this.cause=e.cause)}}function XT(t){var c,u,d,p,B;const A=((c=t.error)==null?void 0:c.message)||((u=t.error)==null?void 0:u.toString())||"",e=((d=t.request)==null?void 0:d.method)||((p=t.options)==null?void 0:p.method)||"GET",n=((B=t.request)==null?void 0:B.url)||String(t.request)||"/",r=`[${e}] ${JSON.stringify(n)}`,i=t.response?`${t.response.status} ${t.response.statusText}`:"<no response>",s=`${r}: ${i}${A?` ${A}`:""}`,a=new JT(s,t.error?{cause:t.error}:void 0);for(const m of["request","options","response"])Object.defineProperty(a,m,{get(){return t[m]}});for(const[m,C]of[["data","_data"],["status","status"],["statusCode","status"],["statusText","statusText"],["statusMessage","statusText"]])Object.defineProperty(a,m,{get(){return t.response&&t.response[C]}});return a}const YT=new Set(Object.freeze(["PATCH","POST","PUT","DELETE"]));function YB(t="GET"){return YT.has(t.toUpperCase())}function zT(t){if(t===void 0)return!1;const A=typeof t;return A==="string"||A==="number"||A==="boolean"||A===null?!0:A!=="object"?!1:Array.isArray(t)?!0:t.buffer?!1:t.constructor&&t.constructor.name==="Object"||typeof t.toJSON=="function"}const qT=new Set(["image/svg","application/xml","application/xhtml","application/html"]),ZT=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;function jT(t=""){if(!t)return"json";const A=t.split(";").shift()||"";return ZT.test(A)?"json":qT.has(A)||A.startsWith("text/")?"text":"blob"}function Ax(t,A,e=globalThis.Headers){const n={...A,...t};if(A!=null&&A.params&&(t!=null&&t.params)&&(n.params={...A==null?void 0:A.params,...t==null?void 0:t.params}),A!=null&&A.query&&(t!=null&&t.query)&&(n.query={...A==null?void 0:A.query,...t==null?void 0:t.query}),A!=null&&A.headers&&(t!=null&&t.headers)){n.headers=new e((A==null?void 0:A.headers)||{});for(const[r,i]of new e((t==null?void 0:t.headers)||{}))n.headers.set(r,i)}return n}const ex=new Set([408,409,425,429,500,502,503,504]),tx=new Set([101,204,205,304]);function zB(t={}){const{fetch:A=globalThis.fetch,Headers:e=globalThis.Headers,AbortController:n=globalThis.AbortController}=t;async function r(a){const c=a.error&&a.error.name==="AbortError"&&!a.options.timeout||!1;if(a.options.retry!==!1&&!c){let d;typeof a.options.retry=="number"?d=a.options.retry:d=YB(a.options.method)?0:1;const p=a.response&&a.response.status||500;if(d>0&&(Array.isArray(a.options.retryStatusCodes)?a.options.retryStatusCodes.includes(p):ex.has(p))){const B=a.options.retryDelay||0;return B>0&&await new Promise(m=>setTimeout(m,B)),i(a.request,{...a.options,retry:d-1,timeout:a.options.timeout})}}const u=XT(a);throw Error.captureStackTrace&&Error.captureStackTrace(u,i),u}const i=async function(c,u={}){var B;const d={request:c,options:Ax(u,t.defaults,e),response:void 0,error:void 0};if(d.options.method=(B=d.options.method)==null?void 0:B.toUpperCase(),d.options.onRequest&&await d.options.onRequest(d),typeof d.request=="string"&&(d.options.baseURL&&(d.request=RT(d.request,d.options.baseURL)),(d.options.query||d.options.params)&&(d.request=KT(d.request,{...d.options.params,...d.options.query}))),d.options.body&&YB(d.options.method)&&(zT(d.options.body)?(d.options.body=typeof d.options.body=="string"?d.options.body:JSON.stringify(d.options.body),d.options.headers=new e(d.options.headers||{}),d.options.headers.has("content-type")||d.options.headers.set("content-type","application/json"),d.options.headers.has("accept")||d.options.headers.set("accept","application/json")):("pipeTo"in d.options.body&&typeof d.options.body.pipeTo=="function"||typeof d.options.body.pipe=="function")&&("duplex"in d.options||(d.options.duplex="half"))),!d.options.signal&&d.options.timeout){const m=new n;setTimeout(()=>m.abort(),d.options.timeout),d.options.signal=m.signal}try{d.response=await A(d.request,d.options)}catch(m){return d.error=m,d.options.onRequestError&&await d.options.onRequestError(d),await r(d)}if(d.response.body&&!tx.has(d.response.status)&&d.options.method!=="HEAD"){const m=(d.options.parseResponse?"json":d.options.responseType)||jT(d.response.headers.get("content-type")||"");switch(m){case"json":{const C=await d.response.text(),E=d.options.parseResponse||CT;d.response._data=E(C);break}case"stream":{d.response._data=d.response.body;break}default:d.response._data=await d.response[m]()}}return d.options.onResponse&&await d.options.onResponse(d),!d.options.ignoreResponseError&&d.response.status>=400&&d.response.status<600?(d.options.onResponseError&&await d.options.onResponseError(d),await r(d)):d.response},s=async function(c,u){return(await i(c,u))._data};return s.raw=i,s.native=(...a)=>A(...a),s.create=(a={})=>zB({...t,defaults:{...t.defaults,...a}}),s}const Lu=function(){if(typeof globalThis<"u")return globalThis;if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("unable to locate global object")}(),nx=Lu.fetch||(()=>Promise.reject(new Error("[ofetch] global.fetch is not supported!"))),rx=Lu.Headers,ix=Lu.AbortController,sx=zB({fetch:nx,Headers:rx,AbortController:ix}),ox={class:"file-upload"},ax=["src"],lx=["onClick"],cx=["for"],ux=h.createElementVNode("span",{class:"btn btn-outline-dark"}," Select Image ",-1),fx={key:0,class:"file-upload__loading-spinner"},dx=[h.createElementVNode("span",{class:"spinner-border",role:"status"},[h.createElementVNode("span",{class:"visually-hidden"},"Loading...")],-1)];async function hx(t){return await new Promise(A=>{let e=new FileReader;e.onload=()=>A(e.result),e.readAsDataURL(t)})}const px=h.defineComponent({__name:"file-upload",props:{modelValue:{type:Array,default:[]},src:{type:String},name:{type:String,default:()=>we()},id:{type:String,default:()=>we()},label:{type:String,default:""},placeholder:{type:String,default:""},variant:{type:String,default:""},disabled:{type:Boolean,default:!1},readOnly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},pattern:{type:String,default:null},multiple:{type:Boolean,default:!1},accept:{type:String,default:"image/*"},endpoint:{type:String,default:""},toDataUrl:{type:Boolean,default:!0},authToken:{type:String,default:""},customFetch:null,previewWidth:{type:Number,default:0}},emits:["update:modelValue","update:src"],setup(t,{emit:A}){const e=t,n=h.ref([]),r=h.ref([]),i=h.ref(!1),s=h.computed(()=>e.modelValue.length?e.modelValue:e.src?[{type:"",src:e.src}]:r.value);h.watch(()=>n,async(u,d)=>{r.value=await Promise.all(u.value.map(async p=>({src:e.toDataUrl?await hx(p):await c(p),type:p.type})))},{deep:!0}),h.watch(()=>r,async(u,d)=>{const p=e.multiple?r.value:r.value[0];A("update:modelValue",p),e.multiple||A("update:src",r.value[0]&&r.value[0].src)},{deep:!0});function a(u){n.value.splice(u,1),(!r.value||!r.value.length)&&A("update:src","")}async function c(u){const d=new FormData;d.append("file",u),i.value=!0;const B=await(e.customFetch||sx)(e.endpoint,{method:"POST",...e.customFetch?{}:{headers:{Accept:"application/json",...e.authToken?{Authorization:`Bearer ${e.authToken}`}:{}}},body:d}).catch(m=>{console.error("Error",m)});return i.value=!1,console.log("Response",B),`/media/${B.path}`}return(u,d)=>{const p=h.resolveComponent("svg-icon"),B=h.resolveComponent("input-file");return h.openBlock(),h.createElementBlock("div",ox,[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(h.unref(s),(m,C)=>(h.openBlock(),h.createElementBlock("div",{key:m.src,class:"file-upload__thumbnail"},[h.createElementVNode("img",{src:`${m.src}${t.previewWidth?`?width=${t.previewWidth}`:""}`,class:"img-thumbnail rounded"},null,8,ax),h.createElementVNode("button",{onClick:h.withModifiers(E=>a(C),["prevent"]),class:"btn btn--close"},[h.createVNode(p,{symbol:"x"})],8,lx)]))),128)),h.createVNode(B,{modelValue:n.value,"onUpdate:modelValue":d[0]||(d[0]=m=>n.value=m),id:t.id,name:t.name,accept:t.accept,class:"d-none"},null,8,["modelValue","id","name","accept"]),h.createElementVNode("label",{for:t.id,class:"file-upload__label"},[h.renderSlot(u.$slots,"button",{},()=>[ux]),h.createVNode(h.Transition,{name:"fade"},{default:h.withCtx(()=>[i.value?(h.openBlock(),h.createElementBlock("span",fx,dx)):h.createCommentVNode("",!0)]),_:1})],8,cx)])}}}),P2="",gx={class:"upload-group"},Bx=["innerHTML"],mx={class:"row"},wx={class:"img-container"},Cx=["src"],yx=["onClick"],Qx={class:"col-auto mb-4"},Ex={role:"button",class:"img-thumbnail d-flex justify-content-center align-items-center"},qB=h.defineComponent({__name:"upload-group",props:{modelValue:{type:Array,default:[]},name:{type:String,default:()=>we()},id:{type:String,default:()=>we()},label:{type:String,default:""},variant:{type:String,default:""},disabled:{type:Boolean,default:!1},required:{type:Boolean,default:!1},accept:{type:String,default:"image/*"},endpoint:{type:String,default:""},authToken:{type:String,default:""},customFetch:null,previewWidth:{type:Number,default:0}},emits:["update:modelValue"],setup(t,{emit:A}){const e=t,n=h.ref([...e.modelValue]);function r(i){n.value.splice(i,1),A("update:modelValue",n.value)}return h.watch(n.value,(i,s)=>{A("update:modelValue",i)}),(i,s)=>{const a=h.resolveComponent("svg-icon"),c=h.resolveComponent("file-upload");return h.openBlock(),h.createElementBlock("div",gx,[h.createElementVNode("label",{innerHTML:t.label},null,8,Bx),h.createElementVNode("div",mx,[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(n.value,(u,d)=>(h.openBlock(),h.createElementBlock("div",{key:u,class:"col-auto mb-4"},[h.createElementVNode("div",wx,[h.createElementVNode("img",{src:`${u}${t.previewWidth?`?width=${t.previewWidth}`:""}`,class:"img-thumbnail"},null,8,Cx),h.createElementVNode("button",{onClick:h.withModifiers(p=>r(d),["prevent"]),class:"btn btn--close"},[h.createVNode(a,{symbol:"x"})],8,yx)])]))),128)),h.createElementVNode("div",Qx,[h.createVNode(c,{src:n.value[n.value.length],"onUpdate:src":s[0]||(s[0]=u=>n.value[n.value.length]=u),multiple:!1,endpoint:t.endpoint,"custom-fetch":t.customFetch,"to-data-url":!t.endpoint,"auth-token":t.authToken,disabled:t.disabled},{button:h.withCtx(()=>[h.createElementVNode("span",Ex,[h.createVNode(a,{symbol:"plus"})])]),_:1},8,["src","endpoint","custom-fetch","to-data-url","auth-token","disabled"])])])])}}}),G2="",Fx={class:"upload-group"},Ux=["innerHTML"],bx=h.defineComponent({__name:"asset-uploader",props:{modelValue:{type:Array,default:()=>[]},name:{type:String,default:()=>we()},id:{type:String,default:()=>we()},type:{type:String,default:""},label:{type:String,default:""},variant:{type:String,default:""},disabled:{type:Boolean,default:!1},required:{type:Boolean,default:!1},accept:{type:String,default:"image/*"},endpoint:{type:String,default:""},authToken:{type:String,default:""},customFetch:null,mediaTypeMap:{type:Object,default:()=>({svg:"Svg",png:"Image",jpg:"Image"})},previewWidth:{type:Number,default:0}},emits:["update:modelValue"],setup(t,{emit:A}){const e=t,n=h.computed({get(){return e.modelValue.map(r=>r.src)},set(r){A("update:modelValue",r.map((i,s)=>({mediaType:e.modelValue[s]&&e.modelValue[s].mediaType||i.includes("data:image")?i.includes("data:image/svg")?"Svg":"Image":e.mediaTypeMap[i.split(".")[1]],src:i instanceof Object?`/media/${i.path}`:i,name:e.modelValue[s]&&e.modelValue[s].name||`${e.name}-${s}`,...e.type?{type:e.type}:{}})))}});return(r,i)=>(h.openBlock(),h.createElementBlock("div",Fx,[h.createElementVNode("label",{innerHTML:t.label},null,8,Ux),h.createVNode(qB,{modelValue:h.unref(n),"onUpdate:modelValue":i[0]||(i[0]=s=>h.isRef(n)?n.value=s:null),endpoint:t.endpoint,"custom-fetch":t.customFetch,"auth-token":t.authToken,disabled:t.disabled,"preview-width":t.previewWidth},null,8,["modelValue","endpoint","custom-fetch","auth-token","disabled","preview-width"])]))}}),W2="",vx={class:"carousel d-flex gap-2 align-items-center"},Ix=["onClick"],Sx={class:"carousel__track d-flex justify-center"},Tx=["onClick"],xx=["onClick"],ZB=h.defineComponent({__name:"base-carousel",props:{modelValue:{type:Number,default:-1},config:{type:Object,default:null},messages:{type:Object,default:{}},items:{type:Array,default:[]},navigation:{type:Boolean,default:!0}},emits:["update:modelValue","select"],setup(t,{emit:A}){const e=h.ref();function n(){e.value.scrollTo({top:0,left:0,behavior:"smooth"})}function r(){e.value.scrollTo({top:0,left:e.value.clientWidth,behavior:"smooth"})}function i(s){A("update:modelValue",s)}return(s,a)=>{const c=h.resolveComponent("svg-icon");return h.openBlock(),h.createElementBlock("div",vx,[t.navigation?(h.openBlock(),h.createElementBlock("button",{key:0,class:"btn btn-link text-light",type:"button",onClick:h.withModifiers(n,["prevent","stop"])},[h.createVNode(c,{symbol:"chevron-left"})],8,Ix)):h.createCommentVNode("",!0),h.createElementVNode("div",{ref_key:"viewport",ref:e,class:"carousel__viewport flex-grow-1"},[h.createElementVNode("div",Sx,[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(t.items,(u,d)=>h.renderSlot(s.$slots,"carousel-item",{key:u.src,item:u,index:d},()=>[h.createElementVNode("div",{class:h.normalizeClass(["carousel__item col-3",d===t.modelValue?"selected":""]),onClick:p=>i(d)},h.toDisplayString(u),11,Tx)])),128))])],512),t.navigation?(h.openBlock(),h.createElementBlock("button",{key:1,class:"btn btn-link text-light",type:"button",onClick:h.withModifiers(r,["prevent","stop"])},[h.createVNode(c,{symbol:"chevron-right"})],8,xx)):h.createCommentVNode("",!0)])}}}),$2="",Hx={class:"media-thumbnails"},_x=["onClick"],Lx={class:"img-container ratio ratio-1x1"},Ox=["src"],kx=h.defineComponent({__name:"media-thumbnails",props:{modelValue:{default:null},config:{type:Object,default:null},messages:{type:Object,default:{}},assets:{type:Array,default:[]}},emits:["update:modelValue","select"],setup(t,{emit:A}){const e=h.ref(-1);function n(r){A("update:modelValue",r),A("select",r)}return(r,i)=>(h.openBlock(),h.createElementBlock("div",Hx,[h.createVNode(ZB,{items:t.assets},{"carousel-item":h.withCtx(s=>[h.createElementVNode("a",{role:"button",class:"carousel-cell col-3 media-thumbnails__thumbnail",onClick:a=>n(s.index)},[h.createElementVNode("div",Lx,[h.createElementVNode("img",{src:s.item.thumbnail||s.item.src,class:h.normalizeClass(["img-fluid",e.value===s.index?"is-active":""])},null,10,Ox)])],8,_x)]),_:1},8,["items"])]))}}),J2="",Mx={class:"progress-steps"},Dx={class:"progress-steps__list"},Nx={class:"progress-step"},Rx=["checked","id","value","disabled","read-only","required","onChange"],Kx=["for"],Vx=["innerHTML"],Px=["for"],Gx=["innerHTML"],Wx=h.defineComponent({__name:"progress-steps",props:{modelValue:{type:Number,default:0},progress:{type:Number,default:0},steps:{type:Array},label:{type:String,default:""},reveal:{type:Boolean,default:!1}},emits:["update:modelValue","update:progress"],setup(t,{emit:A}){const e=t;function n(r){A("update:modelValue",r),r>=e.progress&&A("update:progress",r)}return(r,i)=>(h.openBlock(),h.createElementBlock("div",Mx,[h.createElementVNode("ul",Dx,[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(t.steps,(s,a)=>(h.openBlock(),h.createElementBlock("li",{key:a,class:h.normalizeClass(["progress-steps__step",{"progress-steps__step--disabled":a>t.progress+(t.reveal?1:0),"progress-steps__step--active":a===(t.modelValue||0)}])},[h.renderSlot(r.$slots,"step",{},()=>[h.createElementVNode("div",Nx,[h.createElementVNode("input",{type:"radio",checked:a<=(t.progress||0),id:`step-${a}`,name:"step",class:"form-check-input",value:s.value,disabled:s.disabled||a>t.progress+(t.reveal?1:0),"read-only":s.readOnly,required:s.required,onChange:c=>n(a)},null,40,Rx),h.createElementVNode("label",{for:`step-${a}`},[h.renderSlot(r.$slots,"button",{step:s},()=>[h.createElementVNode("span",{class:"btn rounded-circle",innerHTML:s.text},null,8,Vx)])],8,Kx),h.createElementVNode("label",{for:`step-${a}`},[h.renderSlot(r.$slots,"label",{step:s},()=>[h.createElementVNode("span",{class:"form-check-label",innerHTML:s.label},null,8,Gx)])],8,Px)])])],2))),128))])]))}}),X2="";/*!
164
164
  * html2canvas 1.4.1 <https://html2canvas.hertzen.com>
165
165
  * Copyright (c) 2022 Niklas von Hertzen <https://hertzen.com>
166
166
  * Released under MIT License
@@ -54,6 +54,14 @@ declare const _sfc_main: import('./vue/dist/vue.esm-bundler.js').DefineComponent
54
54
  type: null;
55
55
  default: boolean;
56
56
  };
57
+ role: {
58
+ type: StringConstructor;
59
+ default: string;
60
+ };
61
+ autocomplete: {
62
+ type: StringConstructor;
63
+ default: string;
64
+ };
57
65
  }, {}, unknown, {}, {}, import('./vue/dist/vue.esm-bundler.js').ComponentOptionsMixin, import('./vue/dist/vue.esm-bundler.js').ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import('./vue/dist/vue.esm-bundler.js').VNodeProps & import('./vue/dist/vue.esm-bundler.js').AllowedComponentProps & import('./vue/dist/vue.esm-bundler.js').ComponentCustomProps, Readonly<import('./vue/dist/vue.esm-bundler.js').ExtractPropTypes<{
58
66
  modelValue: {
59
67
  type: (DateConstructor | StringConstructor | BooleanConstructor | NumberConstructor)[];
@@ -110,6 +118,14 @@ declare const _sfc_main: import('./vue/dist/vue.esm-bundler.js').DefineComponent
110
118
  type: null;
111
119
  default: boolean;
112
120
  };
121
+ role: {
122
+ type: StringConstructor;
123
+ default: string;
124
+ };
125
+ autocomplete: {
126
+ type: StringConstructor;
127
+ default: string;
128
+ };
113
129
  }>> & {
114
130
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
115
131
  }, {
@@ -126,5 +142,7 @@ declare const _sfc_main: import('./vue/dist/vue.esm-bundler.js').DefineComponent
126
142
  pattern: string;
127
143
  trueValue: any;
128
144
  falseValue: any;
145
+ role: string;
146
+ autocomplete: string;
129
147
  }>;
130
148
  export default _sfc_main;
@@ -9,6 +9,20 @@ export declare enum MediaType {
9
9
  }
10
10
  declare const _sfc_main: import('./vue/dist/vue.esm-bundler.js').DefineComponent<{
11
11
  modelValue: {
12
+ type: {
13
+ (arrayLength: number): any[];
14
+ (...items: any[]): any[];
15
+ new (arrayLength: number): any[];
16
+ new (...items: any[]): any[];
17
+ isArray(arg: any): arg is any[];
18
+ readonly prototype: any[];
19
+ from<T>(arrayLike: ArrayLike<T>): T[];
20
+ from<T_1, U>(arrayLike: ArrayLike<T_1>, mapfn: (v: T_1, k: number) => U, thisArg?: any): U[];
21
+ from<T_2>(iterable: Iterable<T_2> | ArrayLike<T_2>): T_2[];
22
+ from<T_3, U_1>(iterable: Iterable<T_3> | ArrayLike<T_3>, mapfn: (v: T_3, k: number) => U_1, thisArg?: any): U_1[];
23
+ of<T_4>(...items: T_4[]): T_4[];
24
+ readonly [Symbol.species]: ArrayConstructor;
25
+ };
12
26
  default: () => never[];
13
27
  };
14
28
  name: {
@@ -66,6 +80,20 @@ declare const _sfc_main: import('./vue/dist/vue.esm-bundler.js').DefineComponent
66
80
  };
67
81
  }, {}, unknown, {}, {}, import('./vue/dist/vue.esm-bundler.js').ComponentOptionsMixin, import('./vue/dist/vue.esm-bundler.js').ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import('./vue/dist/vue.esm-bundler.js').VNodeProps & import('./vue/dist/vue.esm-bundler.js').AllowedComponentProps & import('./vue/dist/vue.esm-bundler.js').ComponentCustomProps, Readonly<import('./vue/dist/vue.esm-bundler.js').ExtractPropTypes<{
68
82
  modelValue: {
83
+ type: {
84
+ (arrayLength: number): any[];
85
+ (...items: any[]): any[];
86
+ new (arrayLength: number): any[];
87
+ new (...items: any[]): any[];
88
+ isArray(arg: any): arg is any[];
89
+ readonly prototype: any[];
90
+ from<T>(arrayLike: ArrayLike<T>): T[];
91
+ from<T_1, U>(arrayLike: ArrayLike<T_1>, mapfn: (v: T_1, k: number) => U, thisArg?: any): U[];
92
+ from<T_2>(iterable: Iterable<T_2> | ArrayLike<T_2>): T_2[];
93
+ from<T_3, U_1>(iterable: Iterable<T_3> | ArrayLike<T_3>, mapfn: (v: T_3, k: number) => U_1, thisArg?: any): U_1[];
94
+ of<T_4>(...items: T_4[]): T_4[];
95
+ readonly [Symbol.species]: ArrayConstructor;
96
+ };
69
97
  default: () => never[];
70
98
  };
71
99
  name: {
@@ -128,7 +156,7 @@ declare const _sfc_main: import('./vue/dist/vue.esm-bundler.js').DefineComponent
128
156
  variant: string;
129
157
  disabled: boolean;
130
158
  required: boolean;
131
- modelValue: never[];
159
+ modelValue: any[];
132
160
  name: string;
133
161
  id: string;
134
162
  label: string;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ablok-components",
3
3
  "private": false,
4
- "version": "0.1.74",
4
+ "version": "0.1.76",
5
5
  "scripts": {
6
6
  "dev": "vite",
7
7
  "build": "vue-tsc --noEmit && vite build",