sm-click-library-ui 0.0.605-dev.25 → 0.0.606-dev.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{index-Dl_pPiG0.js → index-Dsu2GaaY.js} +128 -66
- package/dist/sm-click-library-ui.es.js +1 -1
- package/dist/sm-click-library-ui.umd.js +1 -1
- package/dist/{vue3-lottie.es-Ceyd-LNa.js → vue3-lottie.es--tlZSlIa.js} +1 -1
- package/dist/{web-DfxTy5xx.js → web-CRrpHp80.js} +2 -2
- package/dist/{web-BR32St1k.js → web-ZLwUCnTP.js} +2 -2
- package/package.json +1 -1
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
<path d="M8.95 19.7c.7.8 1.7 1.3 2.8 1.3 1.6 0 2.9-1.1 3.3-2.5l-6.1 1.2Z" />
|
|
12
12
|
</svg>`},authentication:{label:"Autenticação",colorClass:"bg-amber-500/20 border border-amber-500/50 hover:border-amber-400 text-amber-400",icon:`<svg class="size-4" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24">
|
|
13
13
|
<path fill-rule="evenodd" d="M8 10V7a4 4 0 1 1 8 0v3h1a2 2 0 0 1 2 2v7a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2v-7a2 2 0 0 1 2-2h1Zm2-3a2 2 0 1 1 4 0v3h-4V7Zm2 6a1 1 0 0 1 1 1v3a1 1 0 1 1-2 0v-3a1 1 0 0 1 1-1Z" clip-rule="evenodd"/>
|
|
14
|
-
</svg>`}};return re[ne.value]||re.marketing});return(re,oe)=>(e$b.openBlock(),e$b.createElementBlock("div",{class:e$b.normalizeClass(["gap-2 font-semibold flex justify-center items-center min-w-19 lg:min-w-32 w-0 p-1.5 rounded-lg transition-colors",ae.value.colorClass])},[ee.showIcon?(e$b.openBlock(),e$b.createElementBlock("div",{key:0,class:"flex-shrink-0 hidden lg:block",innerHTML:ae.value.icon},null,8,_hoisted_1$2x)):e$b.createCommentVNode("",!0),e$b.createElementVNode("span",_hoisted_2$2e,e$b.toDisplayString(ae.value.label),1)],2))}},_sfc_main$2K={__name:"DepartmentIcon",props:{color:{type:String,default:""}},setup(ee){return(te,ne)=>(e$b.openBlock(),e$b.createElementBlock("svg",{style:e$b.normalizeStyle(ee.color?{color:ee.color}:void 0),"aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"currentColor",viewBox:"0 0 24 24"},[...ne[0]||(ne[0]=[e$b.createElementVNode("path",{"fill-rule":"evenodd",d:"M4 4a1 1 0 0 1 1-1h14a1 1 0 1 1 0 2v14a1 1 0 1 1 0 2H5a1 1 0 1 1 0-2V5a1 1 0 0 1-1-1Zm5 2a1 1 0 0 0-1 1v1a1 1 0 0 0 1 1h1a1 1 0 0 0 1-1V7a1 1 0 0 0-1-1H9Zm5 0a1 1 0 0 0-1 1v1a1 1 0 0 0 1 1h1a1 1 0 0 0 1-1V7a1 1 0 0 0-1-1h-1Zm-5 4a1 1 0 0 0-1 1v1a1 1 0 0 0 1 1h1a1 1 0 0 0 1-1v-1a1 1 0 0 0-1-1H9Zm5 0a1 1 0 0 0-1 1v1a1 1 0 0 0 1 1h1a1 1 0 0 0 1-1v-1a1 1 0 0 0-1-1h-1Zm-3 4a2 2 0 0 0-2 2v3h2v-3h2v3h2v-3a2 2 0 0 0-2-2h-2Z","clip-rule":"evenodd"},null,-1)])],4))}},useDepartmentStore=pinia.defineStore("department",{state:()=>({departments:[],count:null,loaded:!1}),actions:{async fetchDepartments(ee=""){try{let te=`${departmentUrl}`;const ne=await api.get(te);this.departments=ne.data,this.count=this.departments.length,this.loaded=!0}catch(te){console.log("Erro ao buscar departamentos:",te)}},removeDepartments(ee){this.departments=this.departments.filter(te=>te.id!==ee)},addDepartments(ee){const te=this.departments.findIndex(ne=>ne.id===ee.id);te!==-1?this.departments[te]=ee:this.departments.push(ee)}}}),_hoisted_1$2w=["title"],_hoisted_2$2d={class:"whitespace-nowrap text-sm font-medium"},_hoisted_3$1_={class:"flex justify-center"},_hoisted_4$1O={class:"flex justify-center"},_hoisted_5$1E={class:"flex-shrink-0 hidden lg:block"},_hoisted_6$1v={key:0,class:"size-4","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},_hoisted_7$1o={key:1,class:"size-4","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},_hoisted_8$1e={key:2,class:"size-4","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},_hoisted_9$18={key:3,class:"size-4","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},_hoisted_10$11={class:"text-xs"},_hoisted_11$U={class:"mx-auto flex justify-center"},_hoisted_12$P={class:"w-72 rounded-lg p-2"},_hoisted_13$H={key:0,class:"space-y-2"},_hoisted_14$F={class:"font-medium text-slate-100 text-sm"},_hoisted_15$A={key:1,class:"text-xs text-slate-400 text-center py-2"},_hoisted_16$y={class:"flex items-center gap-2 px-3 py-1.5 bg-gradient-to-r from-blue-500/10 to-blue-400/10 border border-blue-500/30 rounded-lg cursor-pointer hover:border-blue-300/50 transition-all"},_hoisted_17$r={class:"text-sm font-semibold text-blue-500"},_hoisted_18$r={class:"z-50 flex items-center justify-center gap-2"},_hoisted_19$o={class:"border border-base-200 rounded-md overflow-hidden"},_hoisted_20$n={class:"flex justify-between items-center p-2 sticky top-0 bg-base-200 z-10"},_hoisted_21$k={class:"font-semibold text-sm"},_hoisted_22$i=["disabled","onClick"],_hoisted_23$c=["onClick"],_hoisted_24$b=["onClick"],_hoisted_25$9=["onClick"],_sfc_main$2J={__name:"templateTable",props:{instanceId:{type:[String,Number],required:!0},departmentId:{type:[String,Number],default:null},extraParams:{type:Object,default:()=>({})},mode:{type:String,default:"manage",validator:ee=>["manage","send"].includes(ee)},showLang:{type:Boolean,default:!1},showDepartments:{type:Boolean,default:!1},itemsPerPage:{type:Number,default:15}},emits:["send","edit","delete","copy-id"],setup(ee,{expose:te,emit:ne}){const ae=ee,re=e$b.ref([]),oe=e$b.ref(!1),ie=e$b.ref(1),le=e$b.ref(0),ce=e$b.ref({}),de=useDepartmentStore(),ue=e$b.computed(()=>{const pe=[{key:"name",label:"Nome",width:"w-64",headerAlign:"left",filter:{type:"text",placeholder:"Buscar nome..."}}];return ae.showLang&&pe.push({key:"lang",label:"Idioma",width:"w-20",headerAlign:"left",filter:{type:"select",key:"language",options:[{value:"pt_BR",label:"Português"},{value:"en",label:"Inglês"}]}}),pe.push({key:"category",label:"Categoria",width:"w-32",filter:{type:"select",options:[{value:"MARKETING",label:"Marketing"},{value:"UTILITY",label:"Utilidade"},{value:"AUTHENTICATION",label:"Autenticação"}]}},{key:"status",label:"Status",width:"w-32",filter:{type:"select",options:[{value:"PENDING",label:"Pendente"},{value:"APPROVED",label:"Aprovado"},{value:"REJECTED",label:"Reprovado"},{value:"PENDING_DELETION",label:"Ag. deleção"}]}}),ae.showDepartments&&pe.push({key:"department",label:"Departamento(s)",width:"w-28",headerAlign:"center",filter:{type:"multiselect",key:"departments",options:de.departments.map(_e=>({value:String(_e.id),label:_e.name}))}}),pe.push({key:"actions",label:"Ações",width:"w-44",cellClass:"whitespace-nowrap"}),pe});async function ve(){oe.value=!0;try{const pe=new URLSearchParams;pe.set("page",ie.value),pe.set("instance",ae.instanceId),ae.departmentId&&pe.set("department",ae.departmentId);for(const[be,ke]of Object.entries(ce.value))Array.isArray(ke)?ke.length&&pe.set(be,ke.join(",")):ke!=null&&ke!==""&&pe.append(be,ke);if(ae.extraParams)for(const[be,ke]of Object.entries(ae.extraParams))Array.isArray(ke)?ke.forEach($e=>pe.append(be,$e)):ke!=null&&ke!==""&&pe.append(be,ke);const{data:_e}=await api.get(`${templateUrl}?${pe.toString()}`);re.value=_e.results,le.value=_e.count}catch{re.value=[],le.value=0}finally{oe.value=!1}}function me(pe){ce.value=pe,ie.value=1,ve()}function ge(pe){ie.value=pe,ve()}e$b.watch(()=>[ae.instanceId,ae.departmentId,ae.extraParams],()=>{ie.value=1,ve()},{deep:!0}),e$b.onMounted(()=>{ve(),ae.showDepartments&&!de.loaded&&de.fetchDepartments()});function fe(pe){switch(pe==null?void 0:pe.toLowerCase()){case"pending":return"Pendente";case"approved":return"Aprovado";case"rejected":return"Reprovado";case"pending_deletion":return"Aguardando deleção";default:return pe??""}}return te({refresh:ve}),(pe,_e)=>{const be=e$b.resolveComponent("Popper");return e$b.openBlock(),e$b.createBlock(baseTable,{columns:ue.value,rows:re.value,loading:oe.value,"total-items":le.value,"items-per-page":ee.itemsPerPage,"current-page":ie.value,filters:ce.value,"empty-text":"Nenhum modelo de mensagem disponível","onUpdate:currentPage":ge,"onUpdate:filters":me},e$b.createSlots({"empty-action":e$b.withCtx(()=>[e$b.renderSlot(pe.$slots,"empty-action",{},void 0,!0)]),"cell-name":e$b.withCtx(({row:ke})=>[e$b.createElementVNode("span",{title:ke.name,class:"block truncate text-left max-w-64 whitespace-nowrap font-medium text-sm"},e$b.toDisplayString(ke.name),9,_hoisted_1$2w)]),"cell-category":e$b.withCtx(({row:ke})=>[e$b.createElementVNode("div",_hoisted_3$1_,[e$b.createVNode(_sfc_main$2L,{category:ke.category},null,8,["category"])])]),"cell-status":e$b.withCtx(({row:ke})=>{var $e,ye,Ee,Se,Le,Ve,Te,ze;return[e$b.createElementVNode("div",_hoisted_4$1O,[e$b.createElementVNode("div",{class:e$b.normalizeClass([{"bg-orange-500/20 border border-orange-500 text-orange-300 dark:text-orange-500 hover:text-orange-200 hover:border-orange-200":(($e=ke.status)==null?void 0:$e.toLowerCase())==="pending","bg-green-600/20 border border-green-600 dark:text-green-500 text-green-300 hover:text-green-200 hover:border-green-200":((ye=ke.status)==null?void 0:ye.toLowerCase())==="approved","bg-red-500/20 border border-red-500 text-red-300 dark:text-red-500 hover:text-red-200 hover:border-red-200":((Ee=ke.status)==null?void 0:Ee.toLowerCase())==="rejected"||((Se=ke.status)==null?void 0:Se.toLowerCase())==="pending_deletion"},"p-1.5 rounded-lg font-semibold text-xs flex items-center justify-center gap-2 min-w-19 lg:min-w-28 w-0 transition-colors"])},[e$b.createElementVNode("div",_hoisted_5$1E,[((Le=ke.status)==null?void 0:Le.toLowerCase())==="pending"?(e$b.openBlock(),e$b.createElementBlock("svg",_hoisted_6$1v,[..._e[0]||(_e[0]=[e$b.createElementVNode("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M12 8v4l3 3M3.22302 14C4.13247 18.008 7.71683 21 12 21c4.9706 0 9-4.0294 9-9 0-4.97056-4.0294-9-9-9-3.72916 0-6.92858 2.26806-8.29409 5.5M7 9H3V5"},null,-1)])])):((Ve=ke.status)==null?void 0:Ve.toLowerCase())==="rejected"?(e$b.openBlock(),e$b.createElementBlock("svg",_hoisted_7$1o,[..._e[1]||(_e[1]=[e$b.createElementVNode("path",{stroke:"currentColor","stroke-linecap":"round","stroke-width":"2",d:"m6 6 12 12m3-6a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"},null,-1)])])):((Te=ke.status)==null?void 0:Te.toLowerCase())==="approved"?(e$b.openBlock(),e$b.createElementBlock("svg",_hoisted_8$1e,[..._e[2]||(_e[2]=[e$b.createElementVNode("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m8.032 12 1.984 1.984 4.96-4.96m4.55 5.272.893-.893a1.984 1.984 0 0 0 0-2.806l-.893-.893a1.984 1.984 0 0 1-.581-1.403V7.04a1.984 1.984 0 0 0-1.984-1.984h-1.262a1.983 1.983 0 0 1-1.403-.581l-.893-.893a1.984 1.984 0 0 0-2.806 0l-.893.893a1.984 1.984 0 0 1-1.403.581H7.04A1.984 1.984 0 0 0 5.055 7.04v1.262c0 .527-.209 1.031-.581 1.403l-.893.893a1.984 1.984 0 0 0 0 2.806l.893.893c.372.372.581.876.581 1.403v1.262a1.984 1.984 0 0 0 1.984 1.984h1.262c.527 0 1.031.209 1.403.581l.893.893a1.984 1.984 0 0 0 2.806 0l.893-.893a1.985 1.985 0 0 1 1.403-.581h1.262a1.984 1.984 0 0 0 1.984-1.984V15.7c0-.527.209-1.031.581-1.403Z"},null,-1)])])):((ze=ke.status)==null?void 0:ze.toLowerCase())==="pending_deletion"?(e$b.openBlock(),e$b.createElementBlock("svg",_hoisted_9$18,[..._e[3]||(_e[3]=[e$b.createElementVNode("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M5 7h14m-9 3v8m4-8v8M10 3h4a1 1 0 0 1 1 1v3H9V4a1 1 0 0 1 1-1ZM6 7h12v13a1 1 0 0 1-1 1H7a1 1 0 0 1-1-1V7Z"},null,-1)])])):e$b.createCommentVNode("",!0)]),e$b.createElementVNode("span",_hoisted_10$11,e$b.toDisplayString(fe(ke.status)),1)],2)])]}),"cell-actions":e$b.withCtx(({row:ke})=>{var $e,ye;return[e$b.createElementVNode("main",_hoisted_18$r,[e$b.createVNode(be,{placement:"left",class:"preview-popper"},{content:e$b.withCtx(()=>[e$b.createElementVNode("div",_hoisted_19$o,[e$b.createElementVNode("div",_hoisted_20$n,[e$b.createElementVNode("p",_hoisted_21$k,e$b.toDisplayString(ke.name),1)]),e$b.renderSlot(pe.$slots,"preview",{template:ke},()=>[_e[5]||(_e[5]=e$b.createElementVNode("span",{class:"block p-4 text-xs text-gray-400 text-center"}," Sem pré-visualização disponível ",-1))],!0)])]),default:e$b.withCtx(()=>[_e[6]||(_e[6]=e$b.createElementVNode("button",{class:"group action-btn action-btn-info"},[e$b.createElementVNode("svg",{class:"size-4",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"},[e$b.createElementVNode("path",{d:"M10 12a2 2 0 100-4 2 2 0 000 4z"}),e$b.createElementVNode("path",{"fill-rule":"evenodd",d:"M.458 10C1.732 5.943 5.522 3 10 3s8.268 2.943 9.542 7c-1.274 4.057-5.064 7-9.542 7S1.732 14.057.458 10zM14 10a4 4 0 11-8 0 4 4 0 018 0z","clip-rule":"evenodd"})]),e$b.createElementVNode("span",{class:"pointer-events-none absolute right-0 -top-3 z-50 m-2 mx-auto -translate-x-1/3 rounded-md bg-slate-700 p-2 text-sm text-white opacity-0 transition-opacity duration-300 group-hover:opacity-100"},"Pré-visualizar")],-1))]),_:2},1024),ee.mode==="send"?(e$b.openBlock(),e$b.createElementBlock("button",{key:0,disabled:(($e=ke.status)==null?void 0:$e.toLowerCase())!=="approved",class:e$b.normalizeClass(["action-btn group",((ye=ke.status)==null?void 0:ye.toLowerCase())==="approved"?"action-btn-success":"action-btn-danger"]),onClick:Ee=>pe.$emit("send",ke)},[..._e[7]||(_e[7]=[e$b.createElementVNode("svg",{class:"size-4","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 14 16"},[e$b.createElementVNode("path",{d:"M0 .984v14.032a1 1 0 0 0 1.506.845l12.006-7.016a.974.974 0 0 0 0-1.69L1.506.139A1 1 0 0 0 0 .984Z"})],-1),e$b.createElementVNode("span",{class:"pointer-events-none absolute right-0 -top-3 z-50 m-2 mx-auto -translate-x-1/3 rounded-md bg-slate-700 p-2 text-sm text-white opacity-0 transition-opacity duration-300 group-hover:opacity-100"},"Enviar modelo",-1)])],10,_hoisted_22$i)):e$b.createCommentVNode("",!0),ee.mode==="manage"?(e$b.openBlock(),e$b.createElementBlock("button",{key:1,class:"group action-btn action-btn-success",onClick:Ee=>pe.$emit("edit",ke)},[..._e[8]||(_e[8]=[e$b.createElementVNode("svg",{class:"size-4",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"},[e$b.createElementVNode("path",{d:"M13.586 3.586a2 2 0 112.828 2.828l-.793.793-2.828-2.828.793-.793zM11.379 5.793L3 14.172V17h2.828l8.38-8.379-2.83-2.828z"})],-1),e$b.createElementVNode("span",{class:"pointer-events-none absolute right-0 -top-3 z-50 m-2 mx-auto -translate-x-1/3 rounded-md bg-slate-700 p-2 text-sm text-white opacity-0 transition-opacity duration-300 group-hover:opacity-100"},"Editar Template",-1)])],8,_hoisted_23$c)):e$b.createCommentVNode("",!0),ee.mode==="manage"?(e$b.openBlock(),e$b.createElementBlock("button",{key:2,class:"group action-btn action-btn-danger",onClick:Ee=>pe.$emit("delete",ke)},[..._e[9]||(_e[9]=[e$b.createElementVNode("svg",{class:"size-4",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor"},[e$b.createElementVNode("path",{d:"M0 0h24v24H0V0z",fill:"none"}),e$b.createElementVNode("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM8 9h8v10H8V9zm7.5-5l-1-1h-5l-1 1H5v2h14V4z"})],-1),e$b.createElementVNode("span",{class:"pointer-events-none absolute right-10 -top-3 z-50 m-2 mx-auto rounded-md bg-slate-700 p-2 text-sm text-white opacity-0 transition-opacity duration-300 group-hover:opacity-100"},"Excluir",-1)])],8,_hoisted_24$b)):e$b.createCommentVNode("",!0),ee.mode==="manage"?(e$b.openBlock(),e$b.createElementBlock("button",{key:3,class:"group action-btn action-btn-info",onClick:Ee=>pe.$emit("copy-id",ke)},[..._e[10]||(_e[10]=[e$b.createElementVNode("svg",{class:"size-4","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"currentColor",viewBox:"0 0 24 24"},[e$b.createElementVNode("path",{"fill-rule":"evenodd",d:"M7 9v6a4 4 0 0 0 4 4h4a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2h1v2Z","clip-rule":"evenodd"}),e$b.createElementVNode("path",{"fill-rule":"evenodd",d:"M13 3.054V7H9.2a2 2 0 0 1 .281-.432l2.46-2.87A2 2 0 0 1 13 3.054ZM15 3v4a2 2 0 0 1-2 2H9v6a2 2 0 0 0 2 2h7a2 2 0 0 0 2-2V5a2 2 0 0 0-2-2h-3Z","clip-rule":"evenodd"})],-1),e$b.createElementVNode("span",{class:"pointer-events-none absolute right-2 -top-3 z-50 m-2 mx-auto -translate-x-1/3 rounded-md bg-slate-700 p-2 text-sm text-white opacity-0 transition-opacity duration-300 group-hover:opacity-100"},"Copiar ID",-1)])],8,_hoisted_25$9)):e$b.createCommentVNode("",!0)]),e$b.renderSlot(pe.$slots,"extra-actions",{template:ke},void 0,!0)]}),_:2},[ee.showLang?{name:"cell-lang",fn:e$b.withCtx(({row:ke})=>[e$b.createElementVNode("span",_hoisted_2$2d,e$b.toDisplayString(ke.lang),1)]),key:"0"}:void 0,ee.showDepartments?{name:"cell-department",fn:e$b.withCtx(({row:ke})=>[e$b.createElementVNode("div",_hoisted_11$U,[e$b.createVNode(be,{placement:"top",arrow:!1,class:"tip-popper"},{content:e$b.withCtx(()=>{var $e;return[e$b.createElementVNode("section",_hoisted_12$P,[_e[4]||(_e[4]=e$b.createElementVNode("div",{class:"text-sm font-semibold text-slate-100 pb-2"}," Departamentos ",-1)),(($e=ke.department)==null?void 0:$e.length)>0?(e$b.openBlock(),e$b.createElementBlock("div",_hoisted_13$H,[(e$b.openBlock(!0),e$b.createElementBlock(e$b.Fragment,null,e$b.renderList(ke.department,ye=>(e$b.openBlock(),e$b.createElementBlock("div",{key:ye.id,class:"bg-slate-800/80 rounded-lg p-2 border border-slate-700/50 hover:border-blue-500/30 transition-all"},[e$b.createElementVNode("span",_hoisted_14$F,e$b.toDisplayString(ye.name),1)]))),128))])):(e$b.openBlock(),e$b.createElementBlock("div",_hoisted_15$A," Sem departamentos vinculados "))])]}),default:e$b.withCtx(()=>{var $e;return[e$b.createElementVNode("div",_hoisted_16$y,[e$b.createVNode(_sfc_main$2K,{class:"size-5 text-blue-400"}),e$b.createElementVNode("span",_hoisted_17$r,e$b.toDisplayString(($e=ke.department)==null?void 0:$e.length),1)])]}),_:2},1024)])]),key:"1"}:void 0]),1032,["columns","rows","loading","total-items","items-per-page","current-page","filters"])}}},templateTable=_export_sfc$1(_sfc_main$2J,[["__scopeId","data-v-07b01775"]]);function tryOnScopeDispose(ee){return e$b.getCurrentScope()?(e$b.onScopeDispose(ee),!0):!1}function toValue(ee){return typeof ee=="function"?ee():e$b.unref(ee)}const isClient=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const toString$2=Object.prototype.toString,isObject=ee=>toString$2.call(ee)==="[object Object]",noop=()=>{},isIOS=getIsIOS();function getIsIOS(){var ee,te;return isClient&&((ee=window==null?void 0:window.navigator)==null?void 0:ee.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((te=window==null?void 0:window.navigator)==null?void 0:te.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}function unrefElement(ee){var te;const ne=toValue(ee);return(te=ne==null?void 0:ne.$el)!=null?te:ne}const defaultWindow=isClient?window:void 0;function useEventListener$1(...ee){let te,ne,ae,re;if(typeof ee[0]=="string"||Array.isArray(ee[0])?([ne,ae,re]=ee,te=defaultWindow):[te,ne,ae,re]=ee,!te)return noop;Array.isArray(ne)||(ne=[ne]),Array.isArray(ae)||(ae=[ae]);const oe=[],ie=()=>{oe.forEach(ue=>ue()),oe.length=0},le=(ue,ve,me,ge)=>(ue.addEventListener(ve,me,ge),()=>ue.removeEventListener(ve,me,ge)),ce=e$b.watch(()=>[unrefElement(te),toValue(re)],([ue,ve])=>{if(ie(),!ue)return;const me=isObject(ve)?{...ve}:ve;oe.push(...ne.flatMap(ge=>ae.map(fe=>le(ue,ge,fe,me))))},{immediate:!0,flush:"post"}),de=()=>{ce(),ie()};return tryOnScopeDispose(de),de}let _iOSWorkaround=!1;function onClickOutside(ee,te,ne={}){const{window:ae=defaultWindow,ignore:re=[],capture:oe=!0,detectIframe:ie=!1}=ne;if(!ae)return noop;isIOS&&!_iOSWorkaround&&(_iOSWorkaround=!0,Array.from(ae.document.body.children).forEach(me=>me.addEventListener("click",noop)),ae.document.documentElement.addEventListener("click",noop));let le=!0;const ce=me=>re.some(ge=>{if(typeof ge=="string")return Array.from(ae.document.querySelectorAll(ge)).some(fe=>fe===me.target||me.composedPath().includes(fe));{const fe=unrefElement(ge);return fe&&(me.target===fe||me.composedPath().includes(fe))}}),ue=[useEventListener$1(ae,"click",me=>{const ge=unrefElement(ee);if(!(!ge||ge===me.target||me.composedPath().includes(ge))){if(me.detail===0&&(le=!ce(me)),!le){le=!0;return}te(me)}},{passive:!0,capture:oe}),useEventListener$1(ae,"pointerdown",me=>{const ge=unrefElement(ee);le=!ce(me)&&!!(ge&&!me.composedPath().includes(ge))},{passive:!0}),ie&&useEventListener$1(ae,"blur",me=>{setTimeout(()=>{var ge;const fe=unrefElement(ee);((ge=ae.document.activeElement)==null?void 0:ge.tagName)==="IFRAME"&&!(fe!=null&&fe.contains(ae.document.activeElement))&&te(me)},0)})].filter(Boolean);return()=>ue.forEach(me=>me())}const _hoisted_1$2v={class:"line-clamp-2 uppercase text-xs truncate text-white"},_hoisted_2$2c={key:0,class:"select_widget_lib"},_sfc_main$2I={__name:"primary_select",props:{config:{type:Object,default:{title:"select_primary"}}},emits:["closeSelect"],setup(ee,{emit:te}){const ne=ee,ae=e$b.ref(!1),re=e$b.ref(null);e$b.computed(()=>ne.selectConfig.some(le=>le.freeSlot));const oe=()=>{ae.value=!ae.value};return onClickOutside(re,()=>{ae.value&&(ae.value=!1)}),(le,ce)=>(e$b.openBlock(),e$b.createElementBlock("div",{ref_key:"target",ref:re,class:"relative w-full"},[e$b.createElementVNode("button",{onClick:oe,class:"bg-base-100 z-10 truncate flex items-center justify-between gap-6 p-2 rounded-md lg:mt-0 w-full shadow-md shadow-base-300"},[e$b.createElementVNode("div",null,[e$b.createElementVNode("p",_hoisted_1$2v,e$b.toDisplayString(ee.config.title),1)]),e$b.createElementVNode("div",null,[(e$b.openBlock(),e$b.createElementBlock("svg",{class:e$b.normalizeClass([ae.value?"rotate-180 transition-transform ease-in-out":"","w-3 h-3 text-white"]),xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24"},[...ce[0]||(ce[0]=[e$b.createElementVNode("path",{"fill-rule":"evenodd",d:"M18.4 10.3A2 2 0 0 0 17 7H7a2 2 0 0 0-1.5 3.3l4.9 5.9a2 2 0 0 0 3 0l5-6Z","clip-rule":"evenodd"},null,-1)])],2))])]),ae.value?(e$b.openBlock(),e$b.createElementBlock("section",_hoisted_2$2c,[e$b.createElementVNode("div",null,[e$b.renderSlot(le.$slots,"free-slot",{},void 0,!0)])])):e$b.createCommentVNode("",!0)],512))}},primarySelect=_export_sfc$1(_sfc_main$2I,[["__scopeId","data-v-265f04f1"]]),_hoisted_1$2u={key:0,class:"modal_head"},_hoisted_2$2b={class:"modal_responsive"},_hoisted_3$1Z={class:"flex min-h-full items-center justify-center text-center sm:p-0"},_hoisted_4$1N={class:"modal_tittle text-current bg-base-300 border-base-100"},_hoisted_5$1D={class:"flex items-center w-full"},_hoisted_6$1u=["innerHTML"],_hoisted_7$1n={class:"text-xl ml-1 font-semibold flex items-center gap-2"},_hoisted_8$1d={class:"bg-base-200"},_hoisted_9$17={class:"text-center"},_hoisted_10$10={class:"modal_end_button border-base-100 bg-base-300"},_sfc_main$2H={__name:"simple_modal",props:{isOpen:{type:Boolean,default:!1},header:{type:Object,default:{title:"title",svg:"<svg class='w-5 mr-2 text-primary inline-block' aria-hidden='true' xmlns='http://www.w3.org/2000/svg' fill='currentColor' viewBox='0 0 24 24'> <path d='M18 3h-5.7a2 2 0 0 0-1.4.6L3.6 11a2 2 0 0 0 0 2.8l6.6 6.6a2 2 0 0 0 2.8 0l7.4-7.5a2 2 0 0 0 .6-1.4V6a3 3 0 0 0-3-3Zm-2.4 6.4a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z' /> </svg>"}},size:{type:String,default:"md:w-1/2 xl:w-1/3"}},emits:["update:isOpen","close"],setup(ee,{emit:te}){e$b.useSlots();const ne=ee,ae=te,re=()=>{ae("update:isOpen",!ne.isOpen),ne.isOpen&&ae("close")};return(oe,ie)=>(e$b.openBlock(),e$b.createBlock(e$b.Transition,{"leave-active-class":"transition-opacity duration-200 ease-in","leave-from-class":"opacity-100","leave-to-class":"opacity-0","enter-active-class":"transition-opacity duration-200 ease-out","enter-from-class":"opacity-0","enter-to-class":"opacity-100"},{default:e$b.withCtx(()=>{var le,ce;return[ee.isOpen?(e$b.openBlock(),e$b.createElementBlock("div",_hoisted_1$2u,[ie[2]||(ie[2]=e$b.createElementVNode("div",{class:"modal-overlay absolute h-full w-full bg-gray-600 opacity-50"},null,-1)),e$b.createElementVNode("div",_hoisted_2$2b,[e$b.createElementVNode("div",_hoisted_3$1Z,[e$b.createElementVNode("div",{class:e$b.normalizeClass([ee.size,"z-50 w-full shadow-card rounded-2xl"])},[e$b.createElementVNode("div",_hoisted_4$1N,[e$b.createElementVNode("section",_hoisted_5$1D,[oe.$slots.header?e$b.renderSlot(oe.$slots,"header",{key:1},void 0,!0):(e$b.openBlock(),e$b.createElementBlock(e$b.Fragment,{key:0},[e$b.createElementVNode("span",{innerHTML:(le=ee.header)==null?void 0:le.svg},null,8,_hoisted_6$1u),e$b.createElementVNode("h3",_hoisted_7$1n,e$b.toDisplayString((ce=ee.header)==null?void 0:ce.title),1)],64))]),e$b.createElementVNode("button",{onClick:ie[0]||(ie[0]=de=>re()),class:"modal_close_button bg-base-200/40"},[...ie[1]||(ie[1]=[e$b.createElementVNode("svg",{class:"size-5","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},[e$b.createElementVNode("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M6 18 17.94 6M18 18 6.06 6"})],-1)])])]),e$b.createElementVNode("div",_hoisted_8$1d,[e$b.createElementVNode("div",_hoisted_9$17,[e$b.renderSlot(oe.$slots,"body",{},void 0,!0)])]),e$b.createElementVNode("div",_hoisted_10$10,[e$b.renderSlot(oe.$slots,"footer",{},void 0,!0)])],2)])])])):e$b.createCommentVNode("",!0)]}),_:3}))}},simpleModal=_export_sfc$1(_sfc_main$2H,[["__scopeId","data-v-171e94f2"]]),_hoisted_1$2t={class:"simple_card_header"},_hoisted_2$2a={key:0,class:"simple_card_icon",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 22 22",fill:"none"},_hoisted_3$1Y={key:1,class:"simple_card_icon",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 22 22",fill:"none"},_hoisted_4$1M={key:2,class:"simple_card_icon",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 22 22",fill:"none"},_hoisted_5$1C={key:3,class:"simple_card_icon","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 23 23"},_hoisted_6$1t={class:"simple_card_title"},_hoisted_7$1m={class:"simple_card_descripiton"},_sfc_main$2G={__name:"simple_card",props:{content:{type:Object,default:{title:"Title",description:"Coloque aqui a descrição"}},typeCard:{type:String,default:"default"}},setup(ee){const te=ee,ne=e$b.computed(()=>({simple_card_success:te.typeCard==="success",simple_card_info:te.typeCard==="info",simple_card_alert:te.typeCard==="alert",simple_card_error:te.typeCard==="error"}));return(ae,re)=>(e$b.openBlock(),e$b.createElementBlock("div",{class:e$b.normalizeClass([ne.value,"simple_card"])},[e$b.createElementVNode("div",_hoisted_1$2t,[ee.typeCard==="success"?(e$b.openBlock(),e$b.createElementBlock("svg",_hoisted_2$2a,[...re[0]||(re[0]=[e$b.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M0.25 10C0.25 4.61522 4.61522 0.25 10 0.25C15.3848 0.25 19.75 4.61522 19.75 10C19.75 15.3848 15.3848 19.75 10 19.75C4.61522 19.75 0.25 15.3848 0.25 10ZM13.6103 8.18593C13.8511 7.84887 13.773 7.38046 13.4359 7.1397C13.0989 6.89894 12.6305 6.97701 12.3897 7.31407L9.1543 11.8436L7.53033 10.2197C7.23744 9.92678 6.76256 9.92678 6.46967 10.2197C6.17678 10.5126 6.17678 10.9874 6.46967 11.2803L8.71967 13.5303C8.87556 13.6862 9.09215 13.7656 9.31186 13.7474C9.53157 13.7293 9.73216 13.6153 9.8603 13.4359L13.6103 8.18593Z",fill:"currentColor"},null,-1)])])):e$b.createCommentVNode("",!0),ee.typeCard==="info"?(e$b.openBlock(),e$b.createElementBlock("svg",_hoisted_3$1Y,[...re[1]||(re[1]=[e$b.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M0.25 10C0.25 4.61522 4.61522 0.25 10 0.25C15.3848 0.25 19.75 4.61522 19.75 10C19.75 15.3848 15.3848 19.75 10 19.75C4.61522 19.75 0.25 15.3848 0.25 10ZM10 6.25C10.4142 6.25 10.75 6.58579 10.75 7V10.75C10.75 11.1642 10.4142 11.5 10 11.5C9.58579 11.5 9.25 11.1642 9.25 10.75V7C9.25 6.58579 9.58579 6.25 10 6.25ZM10 14.5C10.4142 14.5 10.75 14.1642 10.75 13.75C10.75 13.3358 10.4142 13 10 13C9.58579 13 9.25 13.3358 9.25 13.75C9.25 14.1642 9.58579 14.5 10 14.5Z",fill:"currentColor"},null,-1)])])):e$b.createCommentVNode("",!0),ee.typeCard==="alert"?(e$b.openBlock(),e$b.createElementBlock("svg",_hoisted_4$1M,[...re[2]||(re[2]=[e$b.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M8.40123 2.0034C9.55572 0.0022862 12.4439 0.0022856 13.5983 2.0034L20.9527 14.7509C22.1065 16.7509 20.6631 19.2501 18.3541 19.2501H3.64546C1.33649 19.2501 -0.106939 16.7509 1.04691 14.7509L8.40123 2.0034ZM11 7.25C11.4142 7.25 11.75 7.58579 11.75 8V11.75C11.75 12.1642 11.4142 12.5 11 12.5C10.5858 12.5 10.25 12.1642 10.25 11.75V8C10.25 7.58579 10.5858 7.25 11 7.25ZM11 15.5C11.4142 15.5 11.75 15.1642 11.75 14.75C11.75 14.3358 11.4142 14 11 14C10.5858 14 10.25 14.3358 10.25 14.75C10.25 15.1642 10.5858 15.5 11 15.5Z",fill:"currentColor"},null,-1)])])):e$b.createCommentVNode("",!0),ee.typeCard==="error"?(e$b.openBlock(),e$b.createElementBlock("svg",_hoisted_5$1C,[...re[3]||(re[3]=[e$b.createElementVNode("path",{"fill-rule":"evenodd",d:"M2 12C2 6.477 6.477 2 12 2s10 4.477 10 10-4.477 10-10 10S2 17.523 2 12Zm7.707-3.707a1 1 0 0 0-1.414 1.414L10.586 12l-2.293 2.293a1 1 0 1 0 1.414 1.414L12 13.414l2.293 2.293a1 1 0 0 0 1.414-1.414L13.414 12l2.293-2.293a1 1 0 0 0-1.414-1.414L12 10.586 9.707 8.293Z","clip-rule":"evenodd"},null,-1)])])):e$b.createCommentVNode("",!0),e$b.createElementVNode("p",_hoisted_6$1t,e$b.toDisplayString(ee.content.title),1)]),e$b.createElementVNode("section",_hoisted_7$1m,[e$b.createElementVNode("p",null,e$b.toDisplayString(ee.content.description),1)])],2))}},FRAME_LAYER_OPTIONS=Object.freeze({ring:[{key:"gradient",label:"Gradiente"},{key:"rainbow",label:"Arco-íris"},{key:"neon",label:"Neon"},{key:"double",label:"Aro duplo"},{key:"solid",label:"Cor sólida"},{key:"arc",label:"Aro de assinatura",locked:!0}],ornament:[{key:"none",label:"Sem ornamento"},{key:"wings",label:"Asas"},{key:"crown",label:"Coroa"},{key:"holly",label:"Azevinho"},{key:"bow",label:"Laço"},{key:"flowers",label:"Flores"},{key:"cat",label:"Gatinho"},{key:"runes",label:"Runas",locked:!0},{key:"bolt",label:"Raio",locked:!0},{key:"heart",label:"Coração",locked:!0},{key:"bars",label:"Barras",locked:!0},{key:"blade",label:"Lâmina",locked:!0},{key:"claw",label:"Garra",locked:!0},{key:"crest",label:"Emblema",locked:!0},{key:"orb",label:"Orbe",locked:!0}],effect:[{key:"none",label:"Sem efeito"},{key:"aura",label:"Aura"},{key:"flame",label:"Fogo"},{key:"frost",label:"Geada"},{key:"lightning",label:"Raios"}],particles:[{key:"none",label:"Sem partículas"},{key:"sparks",label:"Faíscas"},{key:"stars",label:"Estrelas"},{key:"snow",label:"Neve"},{key:"confetti",label:"Confetes"},{key:"hearts",label:"Corações"},{key:"petals",label:"Pétalas"},{key:"paws",label:"Patinhas"},{key:"whales",label:"Baleias",locked:!0}]}),RING_FINE=Object.freeze({gradient:{width:3,glow:.45,intensity:.65},rainbow:{width:5,glow:.78,intensity:.9},neon:{width:5,glow:.9,intensity:.92},double:{width:4,glow:.6,intensity:.8},solid:{width:3,glow:.3,intensity:.6},arc:{width:4,glow:.95,intensity:.95}}),ORNAMENT_FINE=Object.freeze({none:{intensity:.7,scale:1,offset_y:0,placement:"front"},wings:{intensity:.9,scale:1.08,offset_y:2,placement:"behind"},crown:{intensity:.95,scale:1,offset_y:0,placement:"front"},holly:{intensity:.8,scale:1,offset_y:0,placement:"front"},bow:{intensity:.9,scale:1,offset_y:0,placement:"front"},flowers:{intensity:.88,scale:1,offset_y:0,placement:"behind"},cat:{intensity:.95,scale:1,offset_y:0,placement:"behind"},runes:{intensity:1,scale:1,offset_y:0,placement:"front"},bolt:{intensity:1,scale:1,offset_y:0,placement:"front"},heart:{intensity:1,scale:.96,offset_y:0,placement:"front"},bars:{intensity:1,scale:.94,offset_y:0,placement:"front"},blade:{intensity:1,scale:1,offset_y:0,placement:"front"},claw:{intensity:1,scale:1,offset_y:0,placement:"front"},crest:{intensity:1,scale:1,offset_y:0,placement:"front"},orb:{intensity:1,scale:.98,offset_y:0,placement:"front"}}),EFFECT_FINE=Object.freeze({none:{intensity:.65,spread:1},aura:{intensity:.55,spread:1},flame:{intensity:.92,spread:.85},frost:{intensity:.75,spread:1},lightning:{intensity:.9,spread:1.1}}),PARTICLES_FINE=Object.freeze({none:{intensity:.65,density:7,size:1,orbit:1},sparks:{intensity:.9,density:10,size:.8,orbit:1.15},stars:{intensity:.7,density:8,size:1,orbit:1},snow:{intensity:.8,density:9,size:1,orbit:1},confetti:{intensity:.8,density:10,size:1,orbit:1},hearts:{intensity:.82,density:8,size:1,orbit:1.04},petals:{intensity:.78,density:9,size:1,orbit:1.08},paws:{intensity:.86,density:7,size:1,orbit:1.06},whales:{intensity:.9,density:3,size:1.15,orbit:1.08}}),MOTION_FINE=Object.freeze({none:{speed:.9,pulse:!0,flicker:!1},aura:{speed:.8,pulse:!0,flicker:!1},flame:{speed:1.35,pulse:!1,flicker:!0},frost:{speed:.65,pulse:!0,flicker:!1},lightning:{speed:1.5,pulse:!1,flicker:!0}}),DEFAULT_COLORS=["#7C3AED","#22D3EE","#F8FAFC"],HEX_COLOR=/^#[0-9a-f]{6}$/i;function clone(ee){return JSON.parse(JSON.stringify(ee))}function color(ee,te){return HEX_COLOR.test(String(ee||""))?String(ee).toUpperCase():te}function optionEntry(ee,te){return FRAME_LAYER_OPTIONS[ee].find(ne=>ne.key===te)}function optionExists(ee,te){return!!optionEntry(ee,te)}function frameVariantLocked(ee,te){var ne;return!!((ne=optionEntry(ee,te))!=null&&ne.locked)}const LAYERS=["ring","ornament","effect","particles"];function isSignatureFrameVisual(ee){const te=normalizeFrameVisual(ee);return LAYERS.some(ne=>frameVariantLocked(ne,te[ne].variant))}function defaultVariant(ee){return FRAME_LAYER_OPTIONS[ee][0].key}function normalizeLayer(ee,te,ne){var oe,ie,le;const ae=te&&typeof te=="object"?te:{},re=optionExists(ee,ae.variant)?ae.variant:defaultVariant(ee);return{enabled:ae.enabled!==!1&&re!=="none",variant:re,colors:[color((oe=ae.colors)==null?void 0:oe[0],ne[0]),color((ie=ae.colors)==null?void 0:ie[1],ne[1]),color((le=ae.colors)==null?void 0:le[2],ne[2])]}}function ringBackground(ee,te){const[ne,ae,re]=te;return ee==="solid"?ne:ee==="rainbow"?`conic-gradient(from var(--sm-frame-angle, 0deg), ${ne}, #F97316, ${ae}, #22C55E, #06B6D4, ${re}, #8B5CF6, #EC4899, ${ne})`:ee==="neon"?`conic-gradient(from var(--sm-frame-angle, 0deg), ${ne}, ${ae}, ${re}, ${ne})`:ee==="double"?`linear-gradient(135deg, ${ne}, ${ae})`:`linear-gradient(135deg, ${ne}, ${ae} 50%, ${re})`}function normalizeFrameVisual(ee={}){var de,ue,ve,me,ge,fe,pe;const te=ee&&typeof ee=="object"?ee:{},ne=[color((ue=(de=te.ring)==null?void 0:de.colors)==null?void 0:ue[0],DEFAULT_COLORS[0]),color((me=(ve=te.ring)==null?void 0:ve.colors)==null?void 0:me[1],DEFAULT_COLORS[1]),color((fe=(ge=te.ring)==null?void 0:ge.colors)==null?void 0:fe[2],DEFAULT_COLORS[2])],ae={...normalizeLayer("ring",te.ring,ne)};Object.assign(ae,RING_FINE[ae.variant]||RING_FINE.gradient);const re={...normalizeLayer("ornament",te.ornament,ne)};Object.assign(re,ORNAMENT_FINE[re.variant]||ORNAMENT_FINE.none);const oe={...normalizeLayer("effect",te.effect,ne)};Object.assign(oe,EFFECT_FINE[oe.variant]||EFFECT_FINE.none);const ie={...normalizeLayer("particles",te.particles,ne)};Object.assign(ie,PARTICLES_FINE[ie.variant]||PARTICLES_FINE.none);const le=MOTION_FINE[oe.variant]||MOTION_FINE.none,ce={enabled:((pe=te.motion)==null?void 0:pe.enabled)!==!1,speed:le.speed,rotation:!0,direction:"clockwise",pulse:le.pulse,flicker:le.flicker};return{ring:ae,ornament:re,effect:oe,particles:ie,motion:ce,css:ringBackground(ae.variant,ae.colors),animated:ce.enabled}}function frameRingBackground(ee){const te=normalizeFrameVisual(ee);return ringBackground(te.ring.variant,te.ring.colors)}function resolveFrameVisual(ee){return ee!=null&&ee.visual?normalizeFrameVisual(ee.visual):null}function preset(ee,te,ne,ae=""){return{id:ee,name:te,description:ae,visual:normalizeFrameVisual(ne)}}const FRAME_STUDIO_PRESETS=Object.freeze([preset("slate","Grafite",{ring:{variant:"solid",colors:["#94A3B8","#64748B","#CBD5E1"]},motion:{enabled:!1}}),preset("sunrise","Alvorada",{ring:{variant:"gradient",colors:["#FBBF24","#FB7185","#FDE68A"]},motion:{enabled:!1}}),preset("tide","Maré",{ring:{variant:"double",colors:["#38BDF8","#0EA5E9","#E0F2FE"]},motion:{enabled:!1}}),preset("pulse","Pulso",{ring:{variant:"neon",colors:["#8B5CF6","#22D3EE","#F8FAFC"]},motion:{enabled:!0}}),preset("halo","Halo",{ring:{variant:"gradient",colors:["#A78BFA","#F0ABFC","#F8FAFC"]},effect:{variant:"aura",colors:["#A78BFA","#F0ABFC","#FFFFFF"]},motion:{enabled:!0}}),preset("aurora","Aurora",{ring:{variant:"neon",colors:["#34D399","#38BDF8","#F472B6"]},effect:{variant:"aura",colors:["#34D399","#38BDF8","#F472B6"]},particles:{variant:"stars",colors:["#F8FAFC","#38BDF8","#F472B6"]},motion:{enabled:!0}}),preset("celestial-wings","Asas Celestiais",{ring:{variant:"double",colors:["#E0E7FF","#818CF8","#C4B5FD"]},ornament:{variant:"wings",colors:["#F8FAFC","#A5B4FC","#C4B5FD"]},effect:{variant:"aura",colors:["#A5B4FC","#C4B5FD","#FFFFFF"]},particles:{variant:"stars",colors:["#FFFFFF","#C4B5FD","#A5B4FC"]},motion:{enabled:!0}}),preset("inferno","Inferno",{ring:{variant:"neon",colors:["#EF4444","#F97316","#FDE047"]},effect:{variant:"flame",colors:["#EF4444","#F97316","#FDE047"]},particles:{variant:"sparks",colors:["#FDE047","#FB923C","#EF4444"]},motion:{enabled:!0}}),preset("winter","Inverno Encantado",{ring:{variant:"double",colors:["#E0F2FE","#38BDF8","#A5F3FC"]},ornament:{variant:"holly",colors:["#166534","#22C55E","#DC2626"]},effect:{variant:"frost",colors:["#E0F2FE","#7DD3FC","#FFFFFF"]},particles:{variant:"snow",colors:["#FFFFFF","#E0F2FE","#BAE6FD"]},motion:{enabled:!0}}),preset("champion","Campeão",{ring:{variant:"double",colors:["#F59E0B","#FDE68A","#D97706"]},ornament:{variant:"crown",colors:["#FDE68A","#F59E0B","#FFFFFF"]},effect:{variant:"aura",colors:["#F59E0B","#FDE68A","#FFFFFF"]},particles:{variant:"confetti",colors:["#F59E0B","#22D3EE","#F472B6"]},motion:{enabled:!0}}),preset("neon-storm","Tempestade Neon",{ring:{variant:"neon",colors:["#22D3EE","#6366F1","#D946EF"]},effect:{variant:"lightning",colors:["#67E8F9","#818CF8","#FFFFFF"]},particles:{variant:"sparks",colors:["#67E8F9","#C4B5FD","#FFFFFF"]},motion:{enabled:!0}}),preset("spectrum","Espectro",{ring:{variant:"rainbow",colors:["#FB7185","#FACC15","#60A5FA"]},motion:{enabled:!0}},"Cores espectrais em um aro contínuo."),preset("pastel","Pastel",{ring:{variant:"double",colors:["#5BCEFA","#F5A9B8","#FFFFFF"]},effect:{variant:"aura",colors:["#5BCEFA","#F5A9B8","#FFFFFF"]},particles:{variant:"stars",colors:["#FFFFFF","#5BCEFA","#F5A9B8"]},motion:{enabled:!0}},"Tons suaves e pontos de luz."),preset("charm","Encanto",{ring:{variant:"double",colors:["#F472B6","#C084FC","#FDF2F8"]},ornament:{variant:"bow",colors:["#F472B6","#C084FC","#FFFFFF"]},effect:{variant:"aura",colors:["#F9A8D4","#C4B5FD","#FFFFFF"]},particles:{variant:"hearts",colors:["#FB7185","#F472B6","#C084FC"]},motion:{enabled:!0}},"Formas delicadas e brilho sutil."),preset("garden","Jardim",{ring:{variant:"gradient",colors:["#FB7185","#D946EF","#FEF3C7"]},ornament:{variant:"flowers",colors:["#F9A8D4","#FDE68A","#FFFFFF"]},effect:{variant:"aura",colors:["#F9A8D4","#E879F9","#FFFFFF"]},particles:{variant:"petals",colors:["#FDA4AF","#F9A8D4","#FDE68A"]},motion:{enabled:!0}},"Elementos orgânicos em movimento."),preset("playful","Travessura",{ring:{variant:"neon",colors:["#A855F7","#EC4899","#67E8F9"]},ornament:{variant:"cat",colors:["#C084FC","#F9A8D4","#FDE68A"]},effect:{variant:"aura",colors:["#A855F7","#EC4899","#67E8F9"]},particles:{variant:"paws",colors:["#F9A8D4","#C084FC","#67E8F9"]},motion:{enabled:!0}},"Linhas expressivas e detalhes lúdicos.")]),FRAME_SIGNATURE_MODELS=Object.freeze([preset("signature-runes","Aro Ancestral",{ring:{variant:"arc",colors:["#FBBF24","#F59E0B","#FEF3C7"]},ornament:{variant:"runes",colors:["#FCD34D","#F59E0B","#FFFBEB"]},particles:{variant:"sparks",colors:["#FDE68A","#FBBF24","#FFFFFF"]},motion:{enabled:!0}}),preset("signature-bolt","Faísca Arcana",{ring:{variant:"arc",colors:["#FCD34D","#F59E0B","#FEF9C3"]},ornament:{variant:"bolt",colors:["#FDE047","#F59E0B","#FFFBEB"]},particles:{variant:"stars",colors:["#FEF9C3","#FDE047","#FFFFFF"]},motion:{enabled:!0}}),preset("signature-heart","Doce Encanto",{ring:{variant:"arc",colors:["#F472B6","#EC4899","#FFFFFF"]},ornament:{variant:"heart",colors:["#F9A8D4","#EC4899","#FFFFFF"]},particles:{variant:"hearts",colors:["#F9A8D4","#FB7185","#FFFFFF"]},motion:{enabled:!0}}),preset("signature-bars","Pulso Púrpura",{ring:{variant:"arc",colors:["#A78BFA","#8B5CF6","#DDD6FE"]},ornament:{variant:"bars",colors:["#C4B5FD","#8B5CF6","#F5F3FF"]},particles:{variant:"whales",colors:["#C4B5FD","#8B5CF6","#F5F3FF"]},motion:{enabled:!0}}),preset("signature-blade","Lâmina de Luz",{ring:{variant:"arc",colors:["#60A5FA","#3B82F6","#DBEAFE"]},ornament:{variant:"blade",colors:["#38BDF8","#64748B","#FFFFFF"]},particles:{variant:"sparks",colors:["#DBEAFE","#60A5FA","#FFFFFF"]},motion:{enabled:!0}}),preset("signature-claw","Rastro Ancestral",{ring:{variant:"arc",colors:["#4ADE80","#22C55E","#DCFCE7"]},ornament:{variant:"claw",colors:["#86EFAC","#16A34A","#F0FDF4"]},particles:{variant:"sparks",colors:["#DCFCE7","#4ADE80","#FFFFFF"]},motion:{enabled:!0}}),preset("signature-crest","Emblema Heroico",{ring:{variant:"arc",colors:["#EF4444","#B91C1C","#FFF1F2"]},ornament:{variant:"crest",colors:["#F87171","#B91C1C","#FFFFFF"]},particles:{variant:"sparks",colors:["#FFF1F2","#EF4444","#FFFFFF"]},motion:{enabled:!0}}),preset("signature-orb","Orbe Selvagem",{ring:{variant:"arc",colors:["#FDE047","#FACC15","#FEF9C3"]},ornament:{variant:"orb",colors:["#FACC15","#EF4444","#FFFFFF"]},particles:{variant:"sparks",colors:["#FEF9C3","#FDE047","#FFFFFF"]},motion:{enabled:!0}})]);function findFramePreset(ee){return FRAME_STUDIO_PRESETS.find(te=>te.id===ee)||FRAME_SIGNATURE_MODELS.find(te=>te.id===ee)||null}const DECORATIVE_LAYERS=["effect","particles","ornament"],FRAME_TIERS=Object.freeze([{layers:1,name:"Simples",hint:"nível 1–10"},{layers:2,name:"Composta",hint:"nível 10–20"},{layers:3,name:"Elaborada",hint:"nível 20–40"},{layers:4,name:"Lendária",hint:"nível 40+"}]);function activeDecorativeLayers(ee){return DECORATIVE_LAYERS.filter(te=>ee[te].enabled&&ee[te].variant!=="none")}function frameLayerCount(ee){return 1+activeDecorativeLayers(normalizeFrameVisual(ee)).length}function frameTier(ee){const te=frameLayerCount(ee);return FRAME_TIERS.find(ne=>ne.layers===te)||FRAME_TIERS[FRAME_TIERS.length-1]}const LADDER_STEP_LEVELS=Object.freeze({1:[10],2:[10,25],3:[5,15,30],4:[5,15,25,40]}),LADDER_STEP_SUFFIX=["I","II","III","IV"];function deriveFrameLadder(ee){const te=normalizeFrameVisual(ee==null?void 0:ee.visual),ne=activeDecorativeLayers(te),ae=ne.length+1,re=LADDER_STEP_LEVELS[ae]||LADDER_STEP_LEVELS[4],oe=String((ee==null?void 0:ee.name)||"Moldura").trim();return Array.from({length:ae},(ie,le)=>{const ce=ne.slice(0,le),de=DECORATIVE_LAYERS.reduce((ue,ve)=>{const me={variant:"none",enabled:!1};return{...ue,[ve]:ce.includes(ve)?clone(te[ve]):{...me,colors:clone(te[ve].colors)}}},{});return{type:"frame",name:`${oe} ${LADDER_STEP_SUFFIX[le]||le+1}`,status:!0,season_id:null,visual:normalizeFrameVisual({ring:clone(te.ring),...de,motion:{enabled:te.motion.enabled&&ce.length>0}}),availability:{kind:"level",level:re[le]}}})}function createFrameDraft(ee="aurora"){const te=findFramePreset(ee)||FRAME_STUDIO_PRESETS[0];return{id:null,type:"frame",name:te.name,status:!0,season_id:null,availability:{kind:"public"},visual:clone(te.visual)}}function validateFrameDraft(ee){var ne;const te={};return String((ee==null?void 0:ee.name)||"").trim()||(te.name="Dê um nome para a moldura."),String((ee==null?void 0:ee.name)||"").trim().length>48&&(te.name="Use no máximo 48 caracteres."),((ne=ee==null?void 0:ee.availability)==null?void 0:ne.kind)==="season_rank"&&!ee.availability.season_id&&!(ee!=null&&ee.season_id)&&(te.season_id="Escolha a temporada desta regra de obtenção."),te}function validateFrameRewardDraft(ee){const te={};return String((ee==null?void 0:ee.name)||"").trim()||(te.name="Dê um nome para a moldura."),String((ee==null?void 0:ee.name)||"").trim().length>48&&(te.name="Use no máximo 48 caracteres."),te}function framePayloadBase(ee){const te=normalizeFrameVisual(ee.visual),ne={ring:layerPayload(te.ring),ornament:layerPayload(te.ornament),effect:layerPayload(te.effect),particles:layerPayload(te.particles),motion:{enabled:te.motion.enabled}};return{type:"frame",name:String(ee.name).trim(),status:ee.status!==!1,visual:ne}}function layerPayload(ee){return{enabled:ee.enabled,variant:ee.variant,colors:[...ee.colors]}}function createFrameRewardApiPayload(ee){const te=validateFrameRewardDraft(ee);if(Object.keys(te).length){const ne=new Error("A recompensa de moldura possui campos inválidos.");throw ne.fields=te,ne}return{...framePayloadBase(ee)}}function createFrameApiPayload(ee){const te=validateFrameDraft(ee);if(Object.keys(te).length){const oe=new Error("A moldura possui campos inválidos.");throw oe.fields=te,oe}const ne=typeof ee.availability=="string"?{kind:ee.availability}:ee.availability||{kind:"public"},{season_id:ae,...re}=ne;return{...framePayloadBase(ee),season_id:ae??ee.season_id??null,availability:re}}const whaleSvgUrl="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Uploaded%20to:%20SVG%20Repo,%20www.svgrepo.com,%20Generator:%20SVG%20Repo%20Mixer%20Tools%20--%3e%3csvg%20width='800px'%20height='800px'%20viewBox='0%200%20512%20512'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20aria-hidden='true'%20role='img'%20class='iconify%20iconify--fxemoji'%20preserveAspectRatio='xMidYMid%20meet'%3e%3cpath%20fill='%2394DEF7'%20d='M508.36%20241.99c-.123-.424-.26-.795-.405-1.142c5.304%20107.375-138.325%20176.779-239.848%20176.779c-54.532%200-67.454-46.877-87.643-95.976a301.342%20301.342%200%200%200-1.632-5.615c-21.07-69.795-137.899-101.8-169.134-72.73C4.803%20247.599%202%20253.601%202%20261.516c0%201.012.018%202.017.049%203.018C4.113%20394.814%20139.282%20499.93%20269.945%20499.93c131.673%200%20238.414-106.742%20238.414-238.414c.001-4.659.673-17.2.001-19.526z'%3e%3c/path%3e%3cpath%20fill='%2300B1FF'%20d='M507.965%20241.215c-.006-.123-.004-.244-.01-.367c.143.342.279.708.4%201.126a161.121%20161.121%200%200%200-1.056-9.011c-.032-.278-.055-.554-.09-.833l-.031-.018c-8.724-58.79-48.079-97.941-77.889-113.876a132.97%20132.97%200%200%200-3.237-4.838c-.02-.079-.036-.152-.055-.234l-.549-2.538l-.585-2.947c-.36-2.108-.741-4.43-1.015-6.874c-.277-2.439-.456-4.996-.447-7.456c-.01-2.462.258-4.803.696-6.683a11.487%2011.487%200%200%201%201.611-3.982c.081-.089.16-.173.222-.266l.089-.14a.702.702%200%200%200%20.12-.109c.072-.077.123-.165.181-.25c.087-.066.163-.137.229-.216c.107-.171.334-.293.447-.489c.111-.074.213-.156.307-.246c.081-.097.17-.202.313-.289c.124-.094.243-.196.356-.307c.107-.114.309-.193.446-.31c.156-.111.279-.24.452-.356c.192-.108.38-.221.566-.341l.277-.184l.069-.047l.034-.024c-.514.261.717-.367.608-.313l.042-.025l.333-.198l1.329-.79l.663-.394l1.071-.669l2.165-1.446c.764-.505%201.293-.942%201.892-1.403c.59-.453%201.158-.931%201.73-1.397c1.104-.982%202.203-1.955%203.22-2.99c2.022-2.081%203.867-4.254%205.436-6.51a50.883%2050.883%200%200%200%206.825-13.662a51.363%2051.363%200%200%200%202.352-12.61a49.822%2049.822%200%200%200-.47-10.397c-.215-1.514-.544-2.927-.824-4.207a59.17%2059.17%200%200%200-1.018-3.503c-.719-2.096-1.418-3.699-1.976-4.794c-.542-1.093-.925-1.68-.913-1.734a3.677%203.677%200%201%200-7.354%200c.011-.054-.371.397-1.015%201.246l-2.719%203.598c-.566.756-1.18%201.579-1.86%202.449c-.64.878-1.393%201.793-2.129%202.753a140.065%20140.065%200%200%201-4.97%205.968c-1.784%202.016-3.684%204.002-5.631%205.805a51.29%2051.29%200%200%201-5.935%204.721c-.971.691-1.984%201.262-2.949%201.843c-.511.255-.988.537-1.477.802c-.254.118-.515.225-.755.359c-.235.121-.519.3-.64.307c-.156.047-.305.1-.448.162l-.243.131l-.699.327l-1.4.656l-.351.164l-.044.021c-.138.069%201.065-.543.523-.267l-.136.068l-.272.136l-1.086.55l-2.165%201.13c-.722.403-1.448.87-2.167%201.314c-.719.465-1.427.893-2.133%201.425l-2.097%201.607c-5.574%204.353-10.324%2010.744-13.017%2017.447a45.584%2045.584%200%200%200-2.618%209.686c-3.718-2.178-7.716-4.218-12.143-5.924c-5.35-2.082-11.365-3.729-18.329-4.023c-3.461-.156-7.197.17-10.933%201.044c-3.743.906-7.489%202.417-10.773%204.478l-1.213.787l-.3.2c-.105.069.617-.399.294-.188l-.039.029l-.079.057l-.314.228l-1.249.908l-.73.523c-.219.147-.326.283-.63.457c-1.047.756-2.107%201.382-3.138%201.994a38.17%2038.17%200%200%201-6.192%202.876c-1.033.359-2.068.709-3.092.949c-1.028.313-2.036.465-3.025.68c-1.967.338-3.827.559-5.39.655c-1.587.153-2.832.12-3.685.186c-.83.021-1.217.084-1.048.184a7.926%207.926%200%201%200-8.402%2013.442c.172.095.553%201.025%201.368%202.479a31.423%2031.423%200%200%200%204.07%205.575c1.984%202.124%204.66%204.542%208.256%206.574a39.084%2039.084%200%200%200%2013.332%204.725c5.245.91%2011.233.794%2017.244-.526c3.005-.653%205.986-1.638%208.894-2.852l.55-.237l.62-.298l1.242-.61l1.244-.628l.992-.526l.04-.021c.268.033.74.083%201.404.223c.805.193%201.855.443%203.02.848c2.357.761%205.185%201.989%208.117%203.41c1.452.739%202.981%201.462%204.476%202.283c1.505.807%202.979%201.696%204.503%202.526c1.509.85%202.988%201.743%204.443%202.643a129.62%20129.62%200%200%201%204.333%202.649l4.141%202.608l3.893%202.507l10.771%207.08c.101.136.196.268.299.406c21.579%2017.085%2036.028%2042.773%2038.141%2071.892c-.998-.854-1.982-1.651-2.872-2.397c-2.216-1.767-4.078-3.186-5.433-4.158l-2.201-1.569c-2.067-1.467-4.924-1.564-7.116-.024a6.16%206.16%200%200%200-1.498%208.581l.319.454l1.271%201.809c.84%201.192%202.011%202.966%203.359%205.101c.648%201.092%201.385%202.239%202.089%203.499c.714%201.253%201.468%202.563%202.174%203.95c.744%201.366%201.435%202.805%202.122%204.258c.728%201.437%201.291%202.949%201.939%204.41c.598%201.478%201.103%202.963%201.636%204.395c.413%201.451.884%202.854%201.219%204.198c.019.095.041.188.06.282a100.474%20100.474%200%200%201-2.494%208.182a55.331%2055.331%200%200%200-1.985%203.467c-45.484%2087.138-130.687%2078.792-180.854%203.023c-17.245-26.045-48.063-43.714-80.768-53.436c-18.699-7.551-41.129-10.855-64.603-10.855c-53.511%200-92.27%206.326-95.012%2048.874c30.674-21.373%20118.321.252%20153.936%2050.866c5.14%209.819%209.563%2019.925%2013.682%2029.94l.016.055c3.365%208.183%206.529%2016.287%209.717%2024.139c.393.969.788%201.934%201.182%202.895c.276.672.55%201.357.827%202.025l.006-.007c13.068%2031.496%2027.327%2057.82%2058.081%2064.988l.139.032a66.858%2066.858%200%200%200%204.419.868l.463.075c.624.098%201.255.188%201.892.271l.591.077c.601.074%201.208.139%201.82.199c.234.023.465.048.701.07c.591.053%201.19.097%201.791.138c.256.017.509.038.768.053c.617.036%201.243.062%201.871.085c.244.009.484.023.73.03a92.24%2092.24%200%200%200%202.646.039c1.609%200%203.228-.018%204.857-.053c.547-.012%201.102-.036%201.652-.052c1.087-.031%202.172-.059%203.267-.105c.652-.027%201.311-.068%201.966-.101c1.001-.05%202-.096%203.007-.159c.697-.043%201.4-.1%202.1-.149c.975-.069%201.947-.133%202.927-.214c.721-.059%201.448-.131%202.171-.196c.965-.087%201.928-.17%202.897-.268c.744-.075%201.493-.162%202.239-.244c.956-.104%201.911-.206%202.871-.321c.758-.091%201.52-.193%202.28-.291c.955-.122%201.908-.242%202.866-.375c.774-.107%201.551-.225%202.328-.339c.947-.139%201.893-.276%202.842-.425c.184-.029.367-.053.552-.082l.785%201.47l1.362%202.542l1.511%202.616l1.588%202.736l1.774%202.819l1.883%202.926c.629%201.001%201.32%201.96%202.048%202.98l2.184%203.048c.771%201.04%201.541%202.091%202.369%203.109c.793%201.021%201.705%202.08%202.562%203.124c.86%201.046%201.748%202.099%202.698%203.164c.971%201.041%201.898%202.072%202.93%203.111l3.091%203.108c2.144%202.086%204.409%204.038%206.827%205.976c2.336%201.948%204.899%203.813%207.508%205.514l4.009%202.49a60.862%2060.862%200%200%200%204.157%202.26c.706.351%201.39.715%202.106%201.043l2.158.954c1.449.605%202.821%201.288%204.3%201.783l4.373%201.444c1.443.459%202.922.799%204.352%201.181c2.876.749%205.788%201.081%208.545%201.524c1.383.2%202.787.209%204.138.307c1.359.052%202.683.189%203.991.143c1.301.005%202.595-.082%203.848-.136l1.86-.097l1.811-.196c1.189-.118%202.363-.321%203.496-.485l1.678-.264l1.622-.346c1.065-.219%202.106-.511%203.11-.758c1.003-.269%201.981-.481%202.91-.802a209.75%20209.75%200%200%200%205.216-1.868a79.912%2079.912%200%200%200%208.02-3.919c2.132-1.272%203.744-2.443%204.835-3.184c.546-.366.956-.697%201.233-.907l.418-.322a4.174%204.174%200%200%200%20.263-6.392l-.911-.83l-.458-.417c-.301-.272-.748-.7-1.316-1.176l-.946-.821l-1.116-.918c-.8-.688-1.701-1.367-2.69-2.158l-3.167-2.597c-1.117-.924-2.321-1.74-3.524-2.817l-3.72-3.034c-.645-.463-1.251-1.075-1.882-1.593c-.628-.522-1.254-1.091-1.888-1.598c-2.511-2.143-4.94-4.378-7.212-6.533c-.599-.478-1.092-1.15-1.652-1.649l-1.611-1.589c-.513-.543-1.007-1.115-1.521-1.612c-.53-.47-.994-1.05-1.474-1.576c-1.959-2.032-3.744-4.085-5.652-6.054c-1.905-1.947-3.878-4.015-6.065-6.197a682.294%20682.294%200%200%201-7.103-7.078c-2.505-2.473-5.193-5.031-8.038-7.729a315.84%20315.84%200%200%200%203.962-1.505c.444-.172.885-.348%201.328-.521a350.725%20350.725%200%200%200%204.768-1.91a313.805%20313.805%200%200%200%204.781-2.005a329.54%20329.54%200%200%200%203.989-1.747c.476-.212.951-.427%201.427-.641a305.31%20305.31%200%200%200%203.339-1.532c.376-.175.753-.348%201.128-.524a320.563%20320.563%200%200%200%204.26-2.046c.377-.185.751-.373%201.127-.559a294.32%20294.32%200%200%200%203.322-1.67c.423-.216.846-.431%201.268-.649a288.878%20288.878%200%200%200%204.238-2.228l.284-.155c1.329-.716%202.65-1.444%203.965-2.179c.394-.22.786-.442%201.178-.663c1.153-.652%202.3-1.31%203.44-1.976c.266-.156.535-.309.801-.465a285.739%20285.739%200%200%200%204.119-2.473c.295-.181.587-.364.881-.545c1.118-.69%202.228-1.388%203.332-2.092c.329-.21.659-.419.987-.631c1.359-.876%202.71-1.76%204.047-2.657l.121-.082a249.4%20249.4%200%200%200%204.754-3.28a238.369%20238.369%200%200%200%203.466-2.491c.147-.108.296-.214.442-.321a230.552%20230.552%200%200%200%203.864-2.908c.221-.17.439-.341.659-.512a218.993%20218.993%200%200%200%203.218-2.538c.235-.189.472-.377.706-.567a217.815%20217.815%200%200%200%203.734-3.089l.004-.004a212.063%20212.063%200%200%200%204.234-3.692a206.713%20206.713%200%200%200%203.333-3.043l.136-.125c1.175-1.1%202.33-2.213%203.471-3.335c.159-.156.315-.314.474-.471c.995-.985%201.975-1.979%202.943-2.981c.158-.164.318-.326.475-.491a177.773%20177.773%200%200%200%206.316-6.948l.49-.571a164.21%20164.21%200%200%200%205.848-7.245c.113-.148.223-.297.335-.446a158.277%20158.277%200%200%200%202.496-3.4l.293-.409a147.489%20147.489%200%200%200%205.086-7.678l.336-.546a136.36%20136.36%200%200%200%204.502-7.931l.234-.453a130.998%20130.998%200%200%200%201.881-3.77l.167-.346a125.44%20125.44%200%200%200%203.6-8.347l.214-.552a119.768%20119.768%200%200%200%202.918-8.553c.049-.164.096-.329.144-.493c.399-1.354.775-2.716%201.124-4.086l.081-.309a113.712%20113.712%200%200%200%201.063-4.606c.301-1.441.57-2.892.816-4.35l.098-.583c.491-3.002.865-6.04%201.115-9.112l.043-.569c.11-1.442.196-2.89.251-4.347c.004-.1.01-.2.013-.301c.057-1.592.081-3.193.071-4.803l-.003-.202c-.01-1.499-.055-2.997-.124-4.502zM356.242%20108.389a1.689%201.689%200%200%201-.207.161c-.525.374-1.155.726-1.641.873l.863-.465l.342-.184l.086-.046l.043-.023c-.469.306.692-.446.563-.361l-.049.045z'%3e%3c/path%3e%3cpath%20fill='%23EDEDE2'%20d='M176.205%20308.716a16.311%2016.311%200%200%200-.31-1.818c-12.97-55.324-43.201-75.19-75.053-86.142c-29.651-10.195-76.99-16.091-75.57%2014.413c41.872-11.739%20127.743%2017.345%20150.933%2073.547z'%3e%3c/path%3e%3cpath%20fill='%23D6D3C5'%20d='M85.928%20216.421l-6.395%2020.515l-.314-.078c-.744-.181-1.486-.356-2.227-.526l-.736-.167c-.332-.075-.662-.144-.994-.217l6.388-20.494c1.436.305%202.864.627%204.278.967zm-20.656-3.485l-6.344%2020.352c.304.032.607.061.913.096c.273.031.547.062.822.095c.68.08%201.362.164%202.048.255l.63.087l6.361-20.406a120.92%20120.92%200%200%200-4.43-.479zm35.57%207.82c-1.16-.399-2.35-.79-3.561-1.174l-6.407%2020.555c.79.252%201.581.512%202.371.776l.546.182c.41.139.82.284%201.23.426l6.408-20.558c-.196-.068-.391-.14-.587-.207zm-52.369-7.783l-6.142%2019.704c.136-.006.271-.012.407-.016c.584-.021%201.172-.036%201.764-.047c.27-.005.542-.007.813-.009c.537-.005%201.076-.007%201.618-.004l6.233-19.997c-1.605.07-3.173.191-4.693.369zm116.922%2063.139l-3.041%209.756c.297.362.599.721.89%201.087l.047.061c.8%201.007%201.571%202.031%202.329%203.063l2.458-7.887a129.759%20129.759%200%200%200-2.683-6.08zm-8.388-14.817a100.83%20100.83%200%200%200-3.195-4.439l-4.766%2015.288a125.806%20125.806%200%200%201%203.56%203.267l4.401-14.116zm-13.148-15.651a95.275%2095.275%200%200%200-3.552-3.257l-5.891%2018.561c1.268.849%202.525%201.71%203.762%202.594l5.681-17.898zm-115.01-23.571l-3.604%2011.563a27.64%2027.64%200%200%200%20.028%201.54c.354-.098.707-.195%201.066-.288c.229-.06.457-.12.689-.177a61.822%2061.822%200%200%201%202.213-.501c.142-.03.287-.056.43-.085l5.386-17.28c-2.495%201.365-4.595%203.094-6.208%205.228zm101.376%2012.692a102.81%20102.81%200%200%200-3.822-2.404l-6.369%2020.012c1.312.694%202.613%201.409%203.906%202.138l6.285-19.746zm-14.108-7.87a131.68%20131.68%200%200%200-4.013-1.805l-6.499%2020.478c1.349.564%202.693%201.145%204.032%201.744l6.48-20.417z'%3e%3c/path%3e%3cpath%20fill='%232B3B47'%20d='M243.055%20335.671c6.275%200%2011.371%205.085%2011.371%2011.381v13.973c0%206.285-5.096%2011.382-11.371%2011.382c-6.285%200-11.381-5.097-11.381-11.382v-13.973c0-6.296%205.095-11.381%2011.381-11.381z'%3e%3c/path%3e%3c/svg%3e",harrysWandUrl="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAYAAAD0eNT6AAA11UlEQVR42uzav6ue9QGG8U9MSMAYJIgoKg4SXPxBpxBwEbQ6dBCtILSCIAi1IELbyUmnujlI61BwEATBJaDVtlAiGQPBRZSASJAQ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Wh4ALB+eCxf/g3pGQv9FdYAxJknL0c9WBqoV3Aq4sLyQnZyeLevX/G0iSlLNdwB0gqZU7AVeXF+/Hf6qoV//fAfqRJKkAngeSWhgCrh/5v5f+inv176Y/kqTCaAJeKvsQcO1+/E+/G/+iXv2/BWxCkqQC2QD8dVmHgPfEv8hX/59EkqQPxSEg8/jv370r5P//TaAVSZIKqmoIiPF1wEjh419ZXR3tIf/3H0OSpIIrxZ2AmPGf3jkQ8n9+FViHJEklUOg7AdeOLCanIsX/8cmxpKWpMeT/+yNIklQiWdwJCHXlX9QDf/4FaEaSpJLJ8E5A/vEfH9ge+n98GkmSSiqnOwHxb/tXf/NfXx/0rP9XgCYkSSqxHIeA+Ff+K2N7k5amptD/10eRJKkG5DAExI//Y5OjSVtLS+j/5ytAA5Ik1Yjs3gmIf9s/jX9H67oY/8spJEmqMZncCUiv/MsZ/79AkqQaFf1OwOzQjjLG/zYwjiRJNSz2EFDZka9M8U+AZ5EkaQ0o1RAQOf7/ALQgSdIaUYrHAZHjfxtYQJKkNabQdwIeEH9P+5MkqVaHgAzi/3tIkrTGZfs4IP/4fxVoR5IkZXQnIP/4vwbsQJIkZXonIM/43wSmkCRJuQwBecT/beAgkiQp1yEgy/h/B3gcSZJUiCHA+EuS9KHUyBCwvqXZ+EuS9KHUwBBg/CVJKq6yDQHGX5KkNTYEGH9JktbYEGD8JUlaY0OA8ZckaY0NAcZfkiTW1hBg/CVJ4nvWxhBg/CVJolptDwHGX5KkB6rNIeAWcApJkvQBamsIMP6SJH3famMIMP6SJBVUOgQYf0mS1p50CDD+kiStPekQYPwlSVp70iHA+EuStPakQ4DxlyRp7dkAvPQh4n/TTX4kSaoNTcDzwJ3/J/5fBvYhSZJqyjDw88DLwFvALeAV4LPAGaAOSZJUjf8Fo6HAhMXYfJkAAAAASUVORK5CYII=";function signature({particleCap:ee,ornament:te}){return Object.freeze({particleCap:ee,ornament:Object.freeze(te)})}const FRAME_SIGNATURE_CONFIG=Object.freeze({runes:signature({particleCap:3,ornament:{top:"-12%",left:"-12%",width:"124%",height:"124%"}}),bolt:signature({particleCap:4,ornament:{top:"10%",left:"20%",width:"106%",height:"106%"}}),heart:signature({particleCap:5,ornament:{top:"10%",left:"86%",width:"27%",height:"27%"}}),bars:signature({particleCap:3,ornament:{top:"9%",left:"87%",width:"28%",height:"34%"}}),blade:signature({particleCap:4,ornament:{top:"10%",left:"20%",width:"106%",height:"106%"}}),claw:signature({particleCap:4,ornament:{top:"86%",left:"83%",width:"31%",height:"31%"}}),crest:signature({particleCap:3,ornament:{top:"85%",left:"84%",width:"31%",height:"31%"}}),orb:signature({particleCap:3,ornament:{top:"-6%",left:"-6%",width:"112%",height:"112%"}})});function frameSignatureConfig(ee){return FRAME_SIGNATURE_CONFIG[ee]||null}const RUNE_GLYPHS=Object.freeze(["M0 -3v6","M0 -3v6M-2.2 -1h4.4","M-2 -3 0 3 2 -3","M0 -3v6M2.2 -2.4 0 0","M-2.2 -3h4.4M0 -3v6","M-2 3 0 -3 2 3M-1.4 .8h2.8"]),SIGNATURE_RUNE_MARKS=Object.freeze(Array.from({length:14},(ee,te)=>{const ne=te<7?0:1,ae=te-ne*7;return Object.freeze({d:RUNE_GLYPHS[te%RUNE_GLYPHS.length],transform:`translate(50 50) rotate(${(ne?63:243)+ae*9}) translate(0 -47)`})})),_hoisted_1$2s=["d","transform"],_hoisted_2$29=["href"],_sfc_main$2F={__name:"SignatureFrameOrnament",props:{variant:{type:String,required:!0},motion:{type:Boolean,default:!1},clearance:{type:Boolean,default:!1}},setup(ee){const te=ee,ne=e$b.computed(()=>frameSignatureConfig(te.variant)),ae=e$b.computed(()=>{var ie;const oe=(ie=ne.value)==null?void 0:ie.ornament;return oe?{"--sm-signature-top":oe.top,"--sm-signature-left":oe.left,"--sm-signature-width":oe.width,"--sm-signature-height":oe.height}:{}}),re=e$b.computed(()=>["sm-frame-ornament","sm-frame-signature",["bolt","heart","bars","claw","crest"].includes(te.variant)?"sm-frame-ornament--badge":`sm-frame-ornament--${te.variant}`,`sm-frame-signature--${te.variant}`,te.clearance?"sm-frame-ornament--clearance":"sm-frame-ornament--art",te.motion?"sm-frame-signature--motion":""]);return(oe,ie)=>ee.variant==="runes"?(e$b.openBlock(),e$b.createElementBlock("svg",{key:0,class:e$b.normalizeClass(re.value),style:e$b.normalizeStyle(ae.value),viewBox:"0 0 100 100",fill:"none"},[(e$b.openBlock(!0),e$b.createElementBlock(e$b.Fragment,null,e$b.renderList(e$b.unref(SIGNATURE_RUNE_MARKS),(le,ce)=>(e$b.openBlock(),e$b.createElementBlock("path",{key:ce,d:le.d,transform:le.transform},null,8,_hoisted_1$2s))),128))],6)):ee.variant==="blade"?(e$b.openBlock(),e$b.createElementBlock("svg",{key:1,class:e$b.normalizeClass(re.value),style:e$b.normalizeStyle(ae.value),viewBox:"0 0 120 120",fill:"none"},[...ie[0]||(ie[0]=[e$b.createStaticVNode('<line class="sm-blade-halo" x1="60" y1="89" x2="101" y2="42" data-v-f94f9f66></line><line class="sm-blade-color" x1="60" y1="89" x2="101" y2="42" data-v-f94f9f66></line><line class="sm-blade-core" x1="60" y1="89" x2="101" y2="42" data-v-f94f9f66></line><g class="sm-blade-hilt" transform="rotate(-49 57 93)" data-v-f94f9f66><rect x="47" y="89" width="19" height="7" rx="2" data-v-f94f9f66></rect><path d="M49 89v7m5-7v7m7-7v7" data-v-f94f9f66></path><rect x="64" y="87" width="4" height="11" rx="1" data-v-f94f9f66></rect></g>',4)])],6)):ee.variant==="bolt"?(e$b.openBlock(),e$b.createElementBlock("svg",{key:2,class:e$b.normalizeClass(re.value),style:e$b.normalizeStyle(ae.value),viewBox:"0 0 120 120",fill:"none"},[ee.clearance?e$b.createCommentVNode("",!0):(e$b.openBlock(),e$b.createElementBlock("image",{key:0,class:"sm-harry-wand",href:e$b.unref(harrysWandUrl),x:"58",y:"40",width:"50",height:"50",preserveAspectRatio:"xMidYMid meet"},null,8,_hoisted_2$29)),ie[1]||(ie[1]=e$b.createElementVNode("path",{class:"sm-arcane-bolt",d:"M13.9 1.6 5.2 13.9h4.9L8.9 22.4 18.8 9.3h-5.2l.3-7.7Z",transform:"translate(-24 2) scale(1.08)",fill:"currentColor",stroke:"var(--sm-frame-ornament-secondary)","stroke-width":"1.1","stroke-linejoin":"round"},null,-1))],6)):ee.variant==="heart"?(e$b.openBlock(),e$b.createElementBlock("svg",{key:3,class:e$b.normalizeClass(re.value),style:e$b.normalizeStyle(ae.value),viewBox:"0 0 32 32"},[...ie[2]||(ie[2]=[e$b.createElementVNode("path",{class:"sm-career-case",d:"M5.1 11.2h21.8c1.5 0 2.7 1.2 2.7 2.7v11.2c0 1.5-1.2 2.7-2.7 2.7H5.1c-1.5 0-2.7-1.2-2.7-2.7V13.9c0-1.5 1.2-2.7 2.7-2.7Z",fill:"var(--sm-frame-ornament-secondary)",stroke:"currentColor","stroke-width":"1.3","stroke-linejoin":"round"},null,-1),e$b.createElementVNode("path",{d:"M11.1 11.2V8.8c0-1.6 1.3-2.9 2.9-2.9h4c1.6 0 2.9 1.3 2.9 2.9v2.4",fill:"none",stroke:"currentColor","stroke-width":"1.6","stroke-linecap":"round"},null,-1),e$b.createElementVNode("path",{class:"sm-career-monogram",d:"M12.4 15.1v8.7m0-8.7H16c3.1 0 3.1 3.9 0 3.9h-3.6m3.7 0c3.7 0 3.7 4.8 0 4.8h-3.7",fill:"none",stroke:"var(--sm-frame-ornament-accent)","stroke-width":"1.8","stroke-linecap":"round","stroke-linejoin":"round"},null,-1),e$b.createElementVNode("path",{class:"sm-career-sparkle",d:"m25.8 3.1.8 2.2 2.2.8-2.2.8-.8 2.2-.8-2.2-2.2-.8 2.2-.8.8-2.2Z",fill:"var(--sm-frame-ornament-accent)"},null,-1)])],6)):ee.variant==="bars"?(e$b.openBlock(),e$b.createElementBlock("svg",{key:4,class:e$b.normalizeClass(re.value),style:e$b.normalizeStyle(ae.value),viewBox:"0 0 24 24"},[...ie[3]||(ie[3]=[e$b.createElementVNode("path",{d:"M3.2 2.2 10.7 7v14.8l-7.5-4.7V2.2Z",fill:"currentColor"},null,-1),e$b.createElementVNode("path",{d:"m20.8 2.2-7.5 4.7v14.9l7.5-4.7V2.2Z",fill:"var(--sm-frame-ornament-secondary)"},null,-1)])],6)):ee.variant==="claw"?(e$b.openBlock(),e$b.createElementBlock("svg",{key:5,class:e$b.normalizeClass(re.value),style:e$b.normalizeStyle(ae.value),viewBox:"0 0 512 512"},[...ie[4]||(ie[4]=[e$b.createElementVNode("path",{d:"M511.517 370.284c-5.971-20.294-92.954-22.906-113.159-18.866-20.216 4.041-76.79 2.68-88.913-9.443-12.124-12.124 4.041-32.329 16.175-44.451 12.124-12.124 38.389-50.524 46.472-58.606 8.082-8.082 50.166-50.378 65.325-74.758 30.988-49.843 41.437-98.68 25.262-114.845-16.164-16.164-65.003-5.727-114.834 25.262-24.38 15.17-66.688 57.244-74.769 65.325-8.083 8.083-46.472 34.36-58.606 46.483-12.122 12.124-32.328 28.287-44.451 16.164-12.122-12.124-13.474-68.698-9.433-88.902 4.041-20.205 1.419-107.187-18.866-113.16C121.438-5.483 83.798 44.94 68.984 87.37 60.299 112.241-13.868 228.816 2.296 313.689c16.175 84.872 31 127.982 49.507 146.503 18.519 18.519 61.642 33.343 146.503 49.507 84.872 16.164 201.448-57.991 226.319-66.676 42.431-14.825 92.853-52.466 86.892-72.739Z",fill:"currentColor"},null,-1)])],6)):ee.variant==="crest"?(e$b.openBlock(),e$b.createElementBlock("svg",{key:6,class:e$b.normalizeClass(re.value),style:e$b.normalizeStyle(ae.value),viewBox:"0 0 190.764 222.769"},[...ie[5]||(ie[5]=[e$b.createElementVNode("path",{d:"M91.256 43.595c-42.332 2.172-75.995 37.577-75.995 80.931 0 14.627 3.832 28.349 10.535 40.195l-8.118 15.765C6.548 164.704 0 145.388 0 124.526 0 71.248 42.704 28.053 95.382 28.053c.753 0 1.504.009 2.252.026L111.412 0h29.434v39.696c29.733 16.337 49.918 48.2 49.918 84.829 0 53.279-42.704 96.473-95.382 96.473-16.079 0-31.229-4.024-44.519-11.132l6.712-13.875c11.262 6.107 24.134 9.571 37.807 9.571 44.249 0 80.121-36.282 80.121-81.037 0-27.971-14.013-52.633-35.325-67.197v76.695l-26.897-25.442V50.453l-33.218 78.891h33.218V116.68l31.141 29.274-32.179 24.705V157.58H68.437l-28.855 65.189-35.708-.699L91.256 43.595Z",fill:"currentColor"},null,-1),e$b.createElementVNode("path",{d:"m112.21 179.637 27.915-23.914v23.914Z",fill:"currentColor"},null,-1)])],6)):ee.variant==="orb"?(e$b.openBlock(),e$b.createElementBlock("svg",{key:7,class:e$b.normalizeClass(re.value),style:e$b.normalizeStyle(ae.value),viewBox:"0 0 100 100"},[...ie[6]||(ie[6]=[e$b.createStaticVNode('<path class="sm-orb-bolt" d="m82 0-12 18h7l-4 13 14-20h-7l2-11Z" fill="currentColor" stroke="var(--sm-frame-ornament-secondary)" stroke-width="1.1" stroke-linejoin="round" data-v-f94f9f66></path><g class="sm-orb-mark" data-v-f94f9f66><path d="M72 84a12 12 0 0 1 24 0H72Z" fill="var(--sm-frame-ornament-secondary)" data-v-f94f9f66></path><path d="M96 84a12 12 0 0 1-24 0h24Z" fill="var(--sm-frame-ornament-accent)" data-v-f94f9f66></path><circle cx="84" cy="84" r="12" fill="none" stroke="#30343b" stroke-width="2.4" data-v-f94f9f66></circle><path d="M72 84h24" stroke="#30343b" stroke-width="2.4" data-v-f94f9f66></path><circle cx="84" cy="84" r="4.2" fill="#f8fafc" stroke="#30343b" stroke-width="2" data-v-f94f9f66></circle><circle cx="84" cy="84" r="1.7" fill="#30343b" data-v-f94f9f66></circle><circle cx="83.5" cy="83.5" r=".55" fill="#ffffff" opacity=".9" data-v-f94f9f66></circle></g>',2)])],6)):e$b.createCommentVNode("",!0)}},SignatureFrameOrnament=_export_sfc$1(_sfc_main$2F,[["__scopeId","data-v-f94f9f66"]]),states=new WeakMap;let observer=null;function ensureObserver(){return observer||typeof IntersectionObserver>"u"||(observer=new IntersectionObserver(ee=>{for(const te of ee){const ne=states.get(te.target);ne&&(ne.value=!te.isIntersecting)}},{rootMargin:"150px"})),observer}function useOffscreenPause(ee=!0){const te=e$b.shallowRef(null),ne=e$b.ref(!1),ae=e$b.computed(()=>!!(typeof ee=="function"?ee():e$b.unref(ee))),re=()=>{var le;return((le=te.value)==null?void 0:le.$el)||te.value};function oe(){const le=re();if(!(le!=null&&le.nodeType))return;const ce=ensureObserver();ce&&(states.set(le,ne),ce.observe(le))}function ie(){const le=re();!(le!=null&&le.nodeType)||!observer||(observer.unobserve(le),states.delete(le),ne.value=!1)}return e$b.onMounted(()=>{ae.value&&oe(),e$b.watch(ae,le=>le?oe():ie())}),e$b.onBeforeUnmount(ie),{offscreenRef:te,paused:ne}}const _hoisted_1$2r={key:0,class:"sm-frame-effect sm-frame-effect--lightning",viewBox:"0 0 100 100",fill:"none"},_hoisted_2$28={class:"sm-frame-flower sm-frame-flower--large",transform:"translate(23 101)"},_hoisted_3$1X=["transform"],_hoisted_4$1L={class:"sm-frame-flower sm-frame-flower--medium",transform:"translate(112 32)"},_hoisted_5$1B=["transform"],_hoisted_6$1s={class:"sm-frame-flower sm-frame-flower--small",transform:"translate(123 65)"},_hoisted_7$1l=["transform"],_hoisted_8$1c={key:0,class:"sm-frame-snowflake",viewBox:"0 0 16 16",fill:"none"},_hoisted_9$16={key:1,class:"sm-frame-star",viewBox:"0 0 16 16"},_hoisted_10$$={key:2,class:"sm-frame-spark",viewBox:"0 0 16 16"},_hoisted_11$T={key:3,class:"sm-frame-heart",viewBox:"0 0 16 16"},_hoisted_12$O={key:4,class:"sm-frame-petal",viewBox:"0 0 16 16"},_hoisted_13$G={key:5,class:"sm-frame-paw",viewBox:"0 0 18 18"},_hoisted_14$E=["src"],_sfc_main$2E={__name:"FrameEffects",props:{visual:{type:Object,required:!0},visualNormalized:{type:Boolean,default:!1},effectLevel:{type:String,default:"full",validator:ee=>["full","compact","border"].includes(ee)},pauseOffscreen:{type:Boolean,default:!0}},setup(ee){const te=ee,ne=e$b.computed(()=>te.visualNormalized?te.visual:normalizeFrameVisual(te.visual)),ae=e$b.computed(()=>ne.value.ornament),re=e$b.computed(()=>ne.value.effect),oe=e$b.computed(()=>ne.value.particles),ie=e$b.computed(()=>te.effectLevel==="border"),le=e$b.computed(()=>ae.value.enabled&&frameVariantLocked("ornament",ae.value.variant)),ce=e$b.computed(()=>le.value?ae.value.variant:""),de=e$b.computed(()=>frameSignatureConfig(ce.value)),ue=e$b.computed(()=>ae.value.enabled&&(!ie.value||le.value)),ve=e$b.computed(()=>ae.value.placement==="behind"?[!1]:[!0,!1]);function me($e,ye){return["sm-frame-ornament",`sm-frame-ornament--${$e}`,ye?"sm-frame-ornament--clearance":"sm-frame-ornament--art",ae.value.placement==="behind"?"sm-frame-ornament--behind":"sm-frame-ornament--front"]}const ge=e$b.computed(()=>!ie.value&&re.value.enabled&&re.value.variant!=="none"),fe=e$b.computed(()=>{var Ee;const $e=te.effectLevel==="compact"?4:oe.value.density,ye=((Ee=de.value)==null?void 0:Ee.particleCap)??oe.value.density;return Math.min(oe.value.density,$e,ye)}),pe=e$b.computed(()=>{const $e=ne.value.ring.colors;return{"--sm-frame-primary":$e[0],"--sm-frame-secondary":$e[1],"--sm-frame-accent":$e[2],"--sm-frame-ornament-primary":ae.value.colors[0],"--sm-frame-ornament-secondary":ae.value.colors[1],"--sm-frame-ornament-accent":ae.value.colors[2],"--sm-frame-ornament-opacity":.35+ae.value.intensity*.65,"--sm-frame-ornament-scale":ae.value.scale,"--sm-frame-ornament-offset-y":`${ae.value.offset_y}%`,"--sm-frame-ornament-clearance":"rgb(var(--bg-base-300))","--sm-frame-effect-primary":re.value.colors[0],"--sm-frame-effect-secondary":re.value.colors[1],"--sm-frame-effect-accent":re.value.colors[2],"--sm-frame-effect-spread":re.value.spread,"--sm-frame-effect-inset":`${15*re.value.spread}%`,"--sm-frame-effect-inset-tight":`${7*re.value.spread}%`,"--sm-frame-effect-inset-wide":`${17*re.value.spread}%`,"--sm-frame-particle-primary":oe.value.colors[0],"--sm-frame-particle-secondary":oe.value.colors[1],"--sm-frame-particle-accent":oe.value.colors[2],"--sm-frame-particle-size":`${oe.value.size*5}%`,"--sm-frame-particle-orbit":oe.value.orbit,"--sm-frame-particle-opacity":.4+oe.value.intensity*.6,"--sm-frame-intensity":re.value.intensity,"--sm-frame-effect-opacity":.5+re.value.intensity*.5,"--sm-frame-speed":`${6/ne.value.motion.speed}s`,"--sm-frame-effect-speed":`${4.2/ne.value.motion.speed}s`,"--sm-frame-ornament-speed":`${3.6/ne.value.motion.speed}s`,"--sm-frame-particle-speed":`${3.2/ne.value.motion.speed}s`,"--sm-frame-whale-speed":`${5.4/ne.value.motion.speed}s`,"--sm-frame-fast":`${1.8/ne.value.motion.speed}s`,"--sm-frame-flash":`${2.7/ne.value.motion.speed}s`}}),{offscreenRef:_e,paused:be}=useOffscreenPause(()=>te.pauseOffscreen),ke=e$b.computed(()=>ne.value.motion.enabled?["sm-frame-effects--motion",ne.value.motion.pulse?"sm-frame-effects--pulse":"",ne.value.motion.flicker?"sm-frame-effects--flicker":"",be.value?"sm-frame-effects--paused":""]:["sm-frame-effects--static"]);return($e,ye)=>ee.effectLevel!=="border"||le.value?(e$b.openBlock(),e$b.createElementBlock("span",{key:0,ref_key:"offscreenRef",ref:_e,class:e$b.normalizeClass(["sm-frame-effects",[`sm-frame-effects--${ee.effectLevel}`,le.value?"sm-frame-effects--signature":"",ce.value?`sm-frame-effects--signature-${ce.value}`:"",ke.value]]),style:e$b.normalizeStyle(pe.value),"aria-hidden":"true"},[ge.value&&re.value.variant==="lightning"?(e$b.openBlock(),e$b.createElementBlock("svg",_hoisted_1$2r,[...ye[0]||(ye[0]=[e$b.createStaticVNode('<circle class="sm-lightning-orbit-halo" cx="50" cy="50" r="39" data-v-542b7f71></circle><circle class="sm-lightning-orbit-core" cx="50" cy="50" r="39" data-v-542b7f71></circle><g class="sm-lightning-discharge sm-lightning-discharge--north-west" data-v-542b7f71><path class="sm-lightning-halo" d="m20 34 7-4-2-5 8-2-1-6 8 2" data-v-542b7f71></path><path class="sm-lightning-core" d="m20 34 7-4-2-5 8-2-1-6 8 2" data-v-542b7f71></path><path class="sm-lightning-branch" d="m27 30-5-1m10-6 4-4" data-v-542b7f71></path></g><g class="sm-lightning-discharge sm-lightning-discharge--east" data-v-542b7f71><path class="sm-lightning-halo" d="m80 33-3 7 5 2-3 7 6 3-4 7" data-v-542b7f71></path><path class="sm-lightning-core" d="m80 33-3 7 5 2-3 7 6 3-4 7" data-v-542b7f71></path><path class="sm-lightning-branch" d="m82 42 5-3m-8 10-5 3" data-v-542b7f71></path></g><g class="sm-lightning-discharge sm-lightning-discharge--south-west" data-v-542b7f71><path class="sm-lightning-halo" d="m39 82-7-3-3 5-6-6-5 3-3-7" data-v-542b7f71></path><path class="sm-lightning-core" d="m39 82-7-3-3 5-6-6-5 3-3-7" data-v-542b7f71></path><path class="sm-lightning-branch" d="m29 79 1-5m-7 4-4-4" data-v-542b7f71></path></g>',5)])])):ge.value?(e$b.openBlock(),e$b.createElementBlock("span",{key:1,class:e$b.normalizeClass(["sm-frame-effect",`sm-frame-effect--${re.value.variant}`])},[re.value.variant==="flame"?(e$b.openBlock(),e$b.createElementBlock(e$b.Fragment,{key:0},e$b.renderList(8,Ee=>e$b.createElementVNode("i",{key:Ee,style:e$b.normalizeStyle({"--sm-flame-index":Ee-1})},null,4)),64)):e$b.createCommentVNode("",!0)],2)):e$b.createCommentVNode("",!0),(e$b.openBlock(!0),e$b.createElementBlock(e$b.Fragment,null,e$b.renderList(ve.value,Ee=>(e$b.openBlock(),e$b.createElementBlock(e$b.Fragment,{key:Ee?"clearance":"art"},[ue.value&&ae.value.variant==="wings"?(e$b.openBlock(),e$b.createElementBlock("svg",{key:0,class:e$b.normalizeClass(me("wings",Ee)),viewBox:"0 0 180 100",fill:"none"},[...ye[1]||(ye[1]=[e$b.createElementVNode("path",{class:"sm-frame-wing sm-frame-wing--left",d:"M75 61C55 58 42 46 30 24c-3 17 1 29 10 38-11-3-21-9-31-19 4 22 21 38 54 44",stroke:"currentColor","stroke-width":"13","stroke-linecap":"round","stroke-linejoin":"round"},null,-1),e$b.createElementVNode("path",{class:"sm-frame-wing sm-frame-wing--right",d:"M105 61c20-3 33-15 45-37 3 17-1 29-10 38 11-3 21-9 31-19-4 22-21 38-54 44",stroke:"currentColor","stroke-width":"13","stroke-linecap":"round","stroke-linejoin":"round"},null,-1),e$b.createElementVNode("path",{d:"M75 61C55 58 42 46 30 24M63 87C45 82 33 72 22 53M105 61c20-3 33-15 45-37M117 87c18-5 30-15 41-34",stroke:"var(--sm-frame-ornament-secondary)","stroke-width":"5","stroke-linecap":"round","stroke-linejoin":"round"},null,-1),e$b.createElementVNode("path",{d:"M72 58C57 53 47 43 38 29M67 78C49 75 37 67 27 56M108 58c15-5 25-15 34-29M113 78c18-3 30-11 40-22",stroke:"var(--sm-frame-ornament-accent)","stroke-width":"2.5","stroke-linecap":"round",opacity:".86"},null,-1)])],2)):ue.value&&ae.value.variant==="crown"?(e$b.openBlock(),e$b.createElementBlock("svg",{key:1,class:e$b.normalizeClass(me("crown",Ee)),viewBox:"0 0 90 48"},[...ye[2]||(ye[2]=[e$b.createElementVNode("path",{d:"M10 37 6 12l21 13L44 5l18 20 21-13-5 25H10Z",fill:"currentColor",stroke:"var(--sm-frame-ornament-secondary)","stroke-width":"3","stroke-linejoin":"round"},null,-1),e$b.createElementVNode("path",{d:"M12 37h65l-3 8H15l-3-8Z",fill:"var(--sm-frame-ornament-secondary)"},null,-1)])],2)):ue.value&&ae.value.variant==="holly"?(e$b.openBlock(),e$b.createElementBlock("svg",{key:2,class:e$b.normalizeClass(me("holly",Ee)),viewBox:"0 0 120 100",fill:"none"},[...ye[3]||(ye[3]=[e$b.createStaticVNode('<path d="M58 52C45 38 28 30 8 28l13 12-17 2 18 8-13 8 20 1-8 13 18-11c3 15 12 25 24 32-2-17-7-29-15-38 13 0 25-5 35-16-16 3-28 7-36 15Z" fill="var(--sm-frame-ornament-primary)" stroke="var(--sm-frame-ornament-secondary)" stroke-linejoin="round" stroke-width="3" data-v-542b7f71></path><path d="M53 48c17-12 35-15 57-9l-14 10 17 4-19 6 12 11-20-3 5 15-17-15c-5 14-16 23-30 28 5-16 11-27 22-35-13-3-24-9-33-20Z" fill="var(--sm-frame-ornament-primary)" stroke="var(--sm-frame-ornament-secondary)" stroke-linejoin="round" stroke-width="3" data-v-542b7f71></path><path d="M38 59C28 47 14 42 2 43l11 9-13 4 16 6-9 10 17-2 3 15 9-18" fill="var(--sm-frame-ornament-secondary)" opacity=".68" data-v-542b7f71></path><circle cx="51" cy="62" r="10" fill="var(--sm-frame-ornament-accent)" data-v-542b7f71></circle><circle cx="68" cy="64" r="10" fill="var(--sm-frame-ornament-accent)" data-v-542b7f71></circle><circle cx="59" cy="78" r="10" fill="var(--sm-frame-ornament-accent)" data-v-542b7f71></circle><circle cx="48" cy="58" r="2.7" fill="white" opacity=".42" data-v-542b7f71></circle><circle cx="65" cy="60" r="2.7" fill="white" opacity=".42" data-v-542b7f71></circle><circle cx="56" cy="74" r="2.7" fill="white" opacity=".42" data-v-542b7f71></circle>',9)])],2)):ue.value&&ae.value.variant==="bow"?(e$b.openBlock(),e$b.createElementBlock("svg",{key:3,class:e$b.normalizeClass(me("bow",Ee)),viewBox:"0 0 96 68",fill:"none"},[...ye[4]||(ye[4]=[e$b.createStaticVNode('<path d="M43 30C31 9 10 6 7 20 4 34 25 41 43 35Z" fill="currentColor" stroke="var(--sm-frame-ornament-secondary)" stroke-width="3" data-v-542b7f71></path><path d="M53 30C65 9 86 6 89 20c3 14-18 21-36 15Z" fill="currentColor" stroke="var(--sm-frame-ornament-secondary)" stroke-width="3" data-v-542b7f71></path><path d="m42 39-16 24 22-10 22 10-16-24Z" fill="var(--sm-frame-ornament-secondary)" stroke="currentColor" stroke-width="3" stroke-linejoin="round" data-v-542b7f71></path><rect x="38" y="25" width="20" height="20" rx="8" fill="var(--sm-frame-ornament-accent)" stroke="var(--sm-frame-ornament-secondary)" stroke-width="3" data-v-542b7f71></rect><path d="M16 20c7-4 14-2 20 7M80 20c-7-4-14-2-20 7" stroke="white" stroke-width="3" opacity=".5" data-v-542b7f71></path>',5)])],2)):ue.value&&ae.value.variant==="flowers"?(e$b.openBlock(),e$b.createElementBlock("svg",{key:4,class:e$b.normalizeClass(me("flowers",Ee)),viewBox:"0 0 140 140",fill:"none"},[e$b.createElementVNode("g",_hoisted_2$28,[(e$b.openBlock(),e$b.createElementBlock(e$b.Fragment,null,e$b.renderList(5,Se=>e$b.createElementVNode("ellipse",{key:`large-${Se}`,ry:"18",rx:"8","transform-origin":"0 0",transform:`rotate(${(Se-1)*72}) translate(0 -15)`,fill:"currentColor"},null,8,_hoisted_3$1X)),64)),ye[5]||(ye[5]=e$b.createElementVNode("circle",{r:"8",fill:"var(--sm-frame-ornament-accent)"},null,-1))]),e$b.createElementVNode("g",_hoisted_4$1L,[(e$b.openBlock(),e$b.createElementBlock(e$b.Fragment,null,e$b.renderList(5,Se=>e$b.createElementVNode("ellipse",{key:`medium-${Se}`,ry:"15",rx:"7","transform-origin":"0 0",transform:`rotate(${(Se-1)*72}) translate(0 -12)`,fill:"var(--sm-frame-ornament-secondary)"},null,8,_hoisted_5$1B)),64)),ye[6]||(ye[6]=e$b.createElementVNode("circle",{r:"6.5",fill:"var(--sm-frame-ornament-accent)"},null,-1))]),e$b.createElementVNode("g",_hoisted_6$1s,[(e$b.openBlock(),e$b.createElementBlock(e$b.Fragment,null,e$b.renderList(5,Se=>e$b.createElementVNode("ellipse",{key:`small-${Se}`,ry:"10",rx:"5","transform-origin":"0 0",transform:`rotate(${(Se-1)*72}) translate(0 -8)`,fill:"currentColor"},null,8,_hoisted_7$1l)),64)),ye[7]||(ye[7]=e$b.createElementVNode("circle",{r:"4",fill:"var(--sm-frame-ornament-accent)"},null,-1))]),ye[8]||(ye[8]=e$b.createElementVNode("path",{d:"M29 111c11 6 19 12 23 21M106 41c-10 3-18 8-24 16",stroke:"var(--sm-frame-ornament-secondary)","stroke-width":"4","stroke-linecap":"round"},null,-1))],2)):ue.value&&ae.value.variant==="cat"?(e$b.openBlock(),e$b.createElementBlock("svg",{key:5,class:e$b.normalizeClass(me("cat",Ee)),viewBox:"0 0 140 128",fill:"none"},[...ye[9]||(ye[9]=[e$b.createElementVNode("path",{class:"sm-cat-ear sm-cat-ear--left",d:"M37 47C34 39 31 27 33 18C44 22 53 30 58 39C50 39 43 42 37 47Z",fill:"currentColor",stroke:"var(--sm-frame-ornament-secondary)","stroke-width":"4","stroke-linecap":"round","stroke-linejoin":"round"},null,-1),e$b.createElementVNode("path",{class:"sm-cat-ear sm-cat-ear--right",d:"M103 47C106 39 109 27 107 18C96 22 87 30 82 39C90 39 97 42 103 47Z",fill:"currentColor",stroke:"var(--sm-frame-ornament-secondary)","stroke-width":"4","stroke-linecap":"round","stroke-linejoin":"round"},null,-1),e$b.createElementVNode("path",{class:"sm-cat-inner-ear",d:"M38 38C36 33 35 27 36 23C43 26 49 31 52 37C47 36 42 37 38 38ZM102 38C104 33 105 27 104 23C97 26 91 31 88 37C93 36 98 37 102 38Z",fill:"var(--sm-frame-ornament-accent)",opacity:".9"},null,-1),e$b.createElementVNode("path",{class:"sm-cat-whiskers",d:"M29 76C19 72 11 68 2 62M26 89C16 88 8 88 0 89M30 101C20 105 12 109 4 115M111 76c10-4 18-8 27-14M114 89c10-1 18-1 26 0M110 101c10 4 18 8 26 14",stroke:"currentColor","stroke-width":"3.5","stroke-linecap":"round"},null,-1)])],2)):ue.value&&le.value?(e$b.openBlock(),e$b.createBlock(SignatureFrameOrnament,{key:`${Ee?"clearance":"art"}-${ce.value}`,variant:ce.value,motion:ne.value.motion.enabled,clearance:Ee},null,8,["variant","motion","clearance"])):e$b.createCommentVNode("",!0)],64))),128)),!ie.value&&oe.value.enabled&&oe.value.variant!=="none"?(e$b.openBlock(),e$b.createElementBlock("span",{key:2,class:e$b.normalizeClass(["sm-frame-particles",`sm-frame-particles--${oe.value.variant}`])},[(e$b.openBlock(!0),e$b.createElementBlock(e$b.Fragment,null,e$b.renderList(fe.value,Ee=>(e$b.openBlock(),e$b.createElementBlock("i",{key:Ee},[oe.value.variant==="snow"?(e$b.openBlock(),e$b.createElementBlock("svg",_hoisted_8$1c,[...ye[10]||(ye[10]=[e$b.createElementVNode("line",{x1:"8",y1:"1",x2:"8",y2:"15"},null,-1),e$b.createElementVNode("line",{x1:"2",y1:"4.5",x2:"14",y2:"11.5"},null,-1),e$b.createElementVNode("line",{x1:"2",y1:"11.5",x2:"14",y2:"4.5"},null,-1)])])):oe.value.variant==="stars"?(e$b.openBlock(),e$b.createElementBlock("svg",_hoisted_9$16,[...ye[11]||(ye[11]=[e$b.createElementVNode("polygon",{points:"8,0.8 10.15,5.45 15.25,6.05 11.5,9.5 12.5,14.55 8,11.95 3.5,14.55 4.5,9.5 0.75,6.05 5.85,5.45"},null,-1)])])):oe.value.variant==="sparks"?(e$b.openBlock(),e$b.createElementBlock("svg",_hoisted_10$$,[...ye[12]||(ye[12]=[e$b.createElementVNode("polygon",{points:"8,0 9.55,6.35 16,8 9.55,9.65 8,16 6.45,9.65 0,8 6.45,6.35"},null,-1)])])):oe.value.variant==="hearts"?(e$b.openBlock(),e$b.createElementBlock("svg",_hoisted_11$T,[...ye[13]||(ye[13]=[e$b.createElementVNode("path",{d:"M8 14.2C6.8 12.6 1.2 9.5 1.2 5.4A3.6 3.6 0 0 1 8 3.7a3.6 3.6 0 0 1 6.8 1.7c0 4.1-5.6 7.2-6.8 8.8Z"},null,-1)])])):oe.value.variant==="petals"?(e$b.openBlock(),e$b.createElementBlock("svg",_hoisted_12$O,[...ye[14]||(ye[14]=[e$b.createElementVNode("path",{d:"M2 13.5C1.7 7.9 4.5 2.8 13.8 1.4 14.7 9.1 10.6 14.3 2 13.5Z"},null,-1),e$b.createElementVNode("path",{d:"M3 12.5c3.6-2.2 6.3-4.8 9.2-8.4",fill:"none"},null,-1)])])):oe.value.variant==="paws"?(e$b.openBlock(),e$b.createElementBlock("svg",_hoisted_13$G,[...ye[15]||(ye[15]=[e$b.createStaticVNode('<ellipse cx="9" cy="12" rx="5.2" ry="4.2" data-v-542b7f71></ellipse><circle cx="3.4" cy="7.1" r="2.1" data-v-542b7f71></circle><circle cx="7.2" cy="3.9" r="2.2" data-v-542b7f71></circle><circle cx="11.4" cy="3.9" r="2.2" data-v-542b7f71></circle><circle cx="15" cy="7.3" r="2" data-v-542b7f71></circle>',5)])])):oe.value.variant==="whales"?(e$b.openBlock(),e$b.createElementBlock("img",{key:6,class:"sm-frame-whale",src:e$b.unref(whaleSvgUrl),alt:"","aria-hidden":"true"},null,8,_hoisted_14$E)):e$b.createCommentVNode("",!0)]))),128))],2)):e$b.createCommentVNode("",!0)],6)):e$b.createCommentVNode("",!0)}},FrameEffects=_export_sfc$1(_sfc_main$2E,[["__scopeId","data-v-542b7f71"]]),CHANNELS=["whatsapp","instagram","telegram","webchat","sms"],ALIASES={"whatsapp-qrcode":"whatsapp","whatsapp-api-official":"whatsapp","whatsapp-api":"whatsapp",whatsapp:"whatsapp",instagram:"instagram",telegram:"telegram",webchat:"webchat","web-chat":"webchat",widget:"webchat",sms:"sms"},LABELS={whatsapp:"WhatsApp",instagram:"Instagram",telegram:"Telegram",webchat:"Webchat",sms:"SMS"};function normalizeChannel(ee){return ee?ALIASES[String(ee).trim().toLowerCase()]??null:null}function channelLabel(ee){return LABELS[normalizeChannel(ee)]??""}function isOfficialChannel(ee){return String(ee||"").toLowerCase().includes("official")}const _hoisted_1$2q=["aria-label"],_hoisted_2$27={class:"channel-icon-glyph",viewBox:"0 0 16 16",fill:"currentColor"},_hoisted_3$1W={key:0,d:"M13.601 2.326A7.854 7.854 0 0 0 7.994 0C3.627 0 .068 3.558.064 7.926c0 1.399.366 2.76 1.057 3.965L0 16l4.204-1.102a7.933 7.933 0 0 0 3.79.965h.004c4.368 0 7.926-3.558 7.93-7.93A7.898 7.898 0 0 0 13.6 2.326zM7.994 14.521a6.573 6.573 0 0 1-3.356-.92l-.24-.144-2.494.654.666-2.433-.156-.251a6.56 6.56 0 0 1-1.007-3.505c0-3.626 2.957-6.584 6.591-6.584a6.56 6.56 0 0 1 4.66 1.931 6.557 6.557 0 0 1 1.928 4.66c-.004 3.639-2.961 6.592-6.592 6.592zm3.615-4.934c-.197-.099-1.17-.578-1.353-.646-.182-.065-.315-.099-.445.099-.133.197-.513.646-.627.775-.114.133-.232.148-.43.05-.197-.1-.836-.308-1.592-.985-.59-.525-.985-1.175-1.103-1.372-.114-.198-.011-.304.088-.403.087-.088.197-.232.296-.346.1-.114.133-.198.198-.33.065-.134.034-.248-.015-.347-.05-.099-.445-1.076-.612-1.47-.16-.389-.323-.335-.445-.34-.114-.007-.247-.007-.38-.007a.729.729 0 0 0-.529.247c-.182.198-.691.677-.691 1.654 0 .977.71 1.916.81 2.049.098.133 1.394 2.132 3.383 2.992.47.205.84.326 1.129.418.475.152.904.129 1.246.08.38-.058 1.171-.48 1.338-.943.164-.464.164-.86.114-.943-.049-.084-.182-.133-.38-.232z"},_hoisted_4$1K={key:1,d:"M8 0C5.829 0 5.556.01 4.703.048 3.85.088 3.269.222 2.76.42a3.917 3.917 0 0 0-1.417.923A3.927 3.927 0 0 0 .42 2.76C.222 3.268.087 3.85.048 4.7.01 5.555 0 5.827 0 8.001c0 2.172.01 2.444.048 3.297.04.852.174 1.433.372 1.942.205.526.478.972.923 1.417.444.445.89.719 1.416.923.51.198 1.09.333 1.942.372C5.555 15.99 5.827 16 8 16s2.444-.01 3.298-.048c.851-.04 1.434-.174 1.943-.372a3.916 3.916 0 0 0 1.416-.923c.445-.445.718-.891.923-1.417.197-.509.332-1.09.372-1.942C15.99 10.445 16 10.173 16 8s-.01-2.445-.048-3.299c-.04-.851-.175-1.433-.372-1.941a3.926 3.926 0 0 0-.923-1.417A3.911 3.911 0 0 0 13.24.42c-.51-.198-1.092-.333-1.943-.372C10.443.01 10.172 0 7.998 0h.003zm-.717 1.442h.718c2.136 0 2.389.007 3.232.046.78.035 1.204.166 1.486.275.373.145.64.319.92.599.28.28.453.546.598.92.11.281.24.705.275 1.485.039.843.047 1.096.047 3.231s-.008 2.389-.047 3.232c-.035.78-.166 1.203-.275 1.485a2.47 2.47 0 0 1-.599.919c-.28.28-.546.453-.92.598-.28.11-.704.24-1.485.276-.843.038-1.096.047-3.232.047s-2.39-.009-3.233-.047c-.78-.036-1.203-.166-1.485-.276a2.478 2.478 0 0 1-.92-.598 2.48 2.48 0 0 1-.6-.92c-.109-.281-.24-.705-.275-1.485-.038-.843-.046-1.096-.046-3.233 0-2.136.008-2.388.046-3.231.036-.78.166-1.204.276-1.486.145-.373.319-.64.599-.92.28-.28.546-.453.92-.598.282-.11.705-.24 1.485-.276.738-.034 1.024-.044 2.515-.045v.002zm4.988 1.328a.96.96 0 1 0 0 1.92.96.96 0 0 0 0-1.92zm-4.27 1.122a4.109 4.109 0 1 0 0 8.217 4.109 4.109 0 0 0 0-8.217zm0 1.441a2.667 2.667 0 1 1 0 5.334 2.667 2.667 0 0 1 0-5.334z"},_hoisted_5$1A={key:2,d:"M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0zM8.287 5.906c-.778.324-2.334.994-4.666 2.01-.378.15-.577.298-.595.442-.03.243.275.339.69.47.057.018.116.037.176.057.415.144.973.31 1.262.317.263.006.556-.102.88-.325 2.14-1.443 3.245-2.173 3.315-2.19.05-.011.118-.026.164.015.045.041.041.12.036.141-.03.125-1.204 1.216-1.812 1.78-.19.176-.324.3-.352.33a8.404 8.404 0 0 1-.198.196c-.38.366-.664.64.015 1.088.327.216.589.394.85.572.284.194.568.387.936.629.093.06.183.125.27.187.331.236.63.448.997.414.214-.02.435-.22.547-.82.265-1.417.786-4.486.906-5.751a1.426 1.426 0 0 0-.013-.315.337.337 0 0 0-.114-.217.526.526 0 0 0-.31-.093c-.3.005-.763.166-2.984 1.09z"},_hoisted_6$1r={key:3,d:"M1.6 7.6C1.6 8.96 2.083 10.215 2.897 11.223L1.677 13.457C1.627 13.55 1.6 13.655 1.6 13.762C1.6 14.115 1.885 14.4 2.237 14.4C2.337 14.4 2.433 14.385 2.525 14.348L5.435 13.1C6.22 13.422 7.088 13.6 8 13.6C11.535 13.6 14.4 10.912 14.4 7.6C14.4 4.287 11.535 1.6 8 1.6C4.465 1.6 1.6 4.287 1.6 7.6zM3.95 11.797C4.183 11.37 4.135 10.845 3.83 10.467C3.177 9.66 2.8 8.67 2.8 7.6C2.8 5.02 5.055 2.8 8 2.8C10.945 2.8 13.2 5.02 13.2 7.6C13.2 10.18 10.945 12.4 8 12.4C7.245 12.4 6.533 12.253 5.893 11.99C5.595 11.867 5.26 11.87 4.965 11.997L3.5 12.622L3.95 11.797zM5.2 8.4C5.643 8.4 6 8.043 6 7.6C6 7.158 5.643 6.8 5.2 6.8C4.758 6.8 4.4 7.158 4.4 7.6C4.4 8.043 4.758 8.4 5.2 8.4zM8.8 7.6C8.8 7.158 8.442 6.8 8 6.8C7.558 6.8 7.2 7.158 7.2 7.6C7.2 8.043 7.558 8.4 8 8.4C8.442 8.4 8.8 8.043 8.8 7.6zM10.8 8.4C11.242 8.4 11.6 8.043 11.6 7.6C11.6 7.158 11.242 6.8 10.8 6.8C10.357 6.8 10 7.158 10 7.6C10 8.043 10.357 8.4 10.8 8.4z"},_hoisted_7$1k={key:4,d:"M2 3a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v7a1 1 0 0 1-1 1H8.9l-2.4 2.2c-.5.45-1.3.1-1.3-.57V11H3a1 1 0 0 1-1-1V3zm2.5 2.25a.75.75 0 0 0 0 1.5h7a.75.75 0 0 0 0-1.5h-7zm0 2.5a.75.75 0 0 0 0 1.5h4a.75.75 0 0 0 0-1.5h-4z"},_hoisted_8$1b={key:0,class:"channel-icon-official",viewBox:"0 0 16 16",fill:"#0081fb","aria-hidden":"true"},_sfc_main$2D={__name:"ChannelIcon",props:{channel:{type:String,default:null},tone:{type:String,default:"mono",validator:ee=>["mono","brand"].includes(ee)},official:{type:Boolean,default:!1}},setup(ee){const te=ee,ne={whatsapp:"#25d366",instagram:"#d6249f",telegram:"#229ed9",webchat:"#ffffff"},ae=e$b.computed(()=>normalizeChannel(te.channel)),re=e$b.computed(()=>channelLabel(te.channel)),oe=e$b.computed(()=>te.tone==="brand"?ne[ae.value]??null:null),ie=e$b.computed(()=>te.official&&ae.value==="whatsapp");return(le,ce)=>ae.value?(e$b.openBlock(),e$b.createElementBlock("span",{key:0,class:"channel-icon",style:e$b.normalizeStyle(oe.value?{color:oe.value}:null),role:"img","aria-label":re.value},[(e$b.openBlock(),e$b.createElementBlock("svg",_hoisted_2$27,[ae.value==="whatsapp"?(e$b.openBlock(),e$b.createElementBlock("path",_hoisted_3$1W)):ae.value==="instagram"?(e$b.openBlock(),e$b.createElementBlock("path",_hoisted_4$1K)):ae.value==="telegram"?(e$b.openBlock(),e$b.createElementBlock("path",_hoisted_5$1A)):ae.value==="webchat"?(e$b.openBlock(),e$b.createElementBlock("path",_hoisted_6$1r)):(e$b.openBlock(),e$b.createElementBlock("path",_hoisted_7$1k))])),ie.value?(e$b.openBlock(),e$b.createElementBlock("svg",_hoisted_8$1b,[...ce[0]||(ce[0]=[e$b.createElementVNode("path",{"fill-rule":"evenodd",d:"M8.217 5.243C9.145 3.988 10.171 3 11.483 3 13.96 3 16 6.153 16.001 9.907c0 2.29-.986 3.725-2.757 3.725-1.543 0-2.395-.866-3.924-3.424l-.667-1.123-.118-.197a54.944 54.944 0 0 0-.53-.877l-1.178 2.08c-1.673 2.925-2.615 3.541-3.923 3.541C1.086 13.632 0 12.217 0 9.973 0 6.388 1.995 3 4.598 3c.319 0 .625.039.924.122.31.086.611.22.913.407.577.359 1.154.915 1.782 1.714Zm1.516 2.224c-.252-.41-.494-.787-.727-1.133L9 6.326c.845-1.305 1.543-1.954 2.372-1.954 1.723 0 3.102 2.537 3.102 5.653 0 1.188-.39 1.877-1.195 1.877-.773 0-1.142-.51-2.61-2.87l-.937-1.565ZM4.846 4.756c.725.1 1.385.634 2.34 2.001A212.13 212.13 0 0 0 5.551 9.3c-1.357 2.126-1.826 2.603-2.581 2.603-.777 0-1.24-.682-1.24-1.9 0-2.602 1.298-5.264 2.846-5.264.091 0 .181.006.27.018Z"},null,-1)])])):e$b.createCommentVNode("",!0)],12,_hoisted_1$2q)):e$b.createCommentVNode("",!0)}},ChannelIcon=_export_sfc$1(_sfc_main$2D,[["__scopeId","data-v-06c1e53c"]]),MAX_ENTRIES=300;try{window.localStorage.removeItem("sm-click:media-size")}catch{}const sizes=new Map;function isDataSource(ee){return typeof ee=="string"&&ee.startsWith("data:")}function mediaKey(ee){return typeof ee!="string"||!ee||ee.startsWith("undefined")||isDataSource(ee)?"":ee.split("?")[0]}function sameMediaSource(ee,te){if(isDataSource(ee)||isDataSource(te))return ee===te;const ne=mediaKey(ee);return!!ne&&ne===mediaKey(te)}function rememberMediaSize(ee,te,ne){const ae=mediaKey(ee);if(!ae||!(te>0)||!(ne>0))return;const re=sizes.get(ae);re&&re.w===te&&re.h===ne||(sizes.delete(ae),sizes.set(ae,{w:te,h:ne}),sizes.size>MAX_ENTRIES&&sizes.delete(sizes.keys().next().value))}function readMediaSize(ee){const te=mediaKey(ee);return te&&sizes.get(te)||null}function positivePair(ee,te){const ne=Number(ee),ae=Number(te);return ne>0&&ae>0?{w:ne,h:ae}:null}function mediaSizeFromContent(ee,te){var ae,re;const ne=ee||{};return positivePair(ne.width,ne.height)||positivePair(ne.media_width,ne.media_height)||positivePair((ae=ne.dimensions)==null?void 0:ae.width,(re=ne.dimensions)==null?void 0:re.height)||readMediaSize(te||ne.url||"")}const preloadedImageSources=new Set;function validImageSource(ee){return typeof ee=="string"&&ee.length>0&&!ee.startsWith("undefined")}function isImageSourcePreloaded(ee){return validImageSource(ee)&&preloadedImageSources.has(ee)}function preloadImageSource(ee){return new Promise(te=>{if(preloadedImageSources.has(ee)){te();return}const ne=new Image,ae=async re=>{var oe;if(ne.onload=null,ne.onerror=null,re){try{await((oe=ne.decode)==null?void 0:oe.call(ne))}catch{}preloadedImageSources.add(ee),rememberMediaSize(ee,ne.naturalWidth,ne.naturalHeight)}te()};ne.onload=()=>void ae(!0),ne.onerror=()=>void ae(!1),ne.src=ee})}async function warmImageSources(ee,te){const ne=[...new Set(ee.filter(validImageSource))];if(ne.length===0)return;const ae=Promise.allSettled(ne.map(preloadImageSource));await new Promise(re=>{const oe=window.setTimeout(re,te);ae.then(()=>{window.clearTimeout(oe),re()})})}function senderHue(ee){const te=String(ee||"").trim().toLowerCase();if(!te)return 210;let ne=5381;for(let ae=0;ae<te.length;ae+=1)ne=(ne<<5)+ne+te.charCodeAt(ae)>>>0;return ne%12*30}function senderColorStyle(ee){return{"--sender-hue":senderHue(ee)}}const LETTER=new RegExp("\\p{L}|\\p{N}","u");function avatarInitials(ee,te=""){const ne=String(ee||te||"").trim();if(!ne||!LETTER.test(ne))return"";const ae=ne.split(/\s+/).filter(oe=>LETTER.test(oe));return ae.length?(ae.length>1?ae[0].charAt(0)+ae[ae.length-1].charAt(0):ae[0].slice(0,2)).toUpperCase():""}function avatarHue(ee){return senderHue(ee)}const RARITIES={common:{key:"common",label:"Comum",order:0,accentRgb:null,glow:0,tile:"bg-slate-400/15 text-slate-200 ring-slate-400/25",badge:"bg-slate-400/20 text-slate-100",chip:"bg-slate-400/10 text-slate-300 dark:bg-slate-500/15 dark:text-slate-600",text:"text-slate-300 dark:text-slate-600",bar:"from-slate-400/70 to-slate-300"},rare:{key:"rare",label:"Raro",order:1,accentRgb:"56 189 248",glow:.16,tile:"bg-sky-500/15 text-sky-200 ring-sky-400/30",badge:"bg-sky-500/25 text-sky-100",chip:"bg-sky-500/10 text-sky-300 dark:bg-sky-500/15 dark:text-sky-700",text:"text-sky-300 dark:text-sky-700",bar:"from-sky-500/80 to-sky-300"},epic:{key:"epic",label:"Épico",order:2,accentRgb:"167 139 250",glow:.22,tile:"bg-violet-500/15 text-violet-200 ring-violet-400/30",badge:"bg-violet-500/25 text-violet-100",chip:"bg-violet-500/10 text-violet-300 dark:bg-violet-500/15 dark:text-violet-700",text:"text-violet-300 dark:text-violet-700",bar:"from-violet-500/80 to-violet-300"},legendary:{key:"legendary",label:"Lendário",order:3,accentRgb:"251 191 36",glow:.28,tile:"bg-amber-400/15 text-amber-200 ring-amber-400/35",badge:"bg-amber-400/25 text-amber-100",chip:"bg-amber-400/10 text-amber-300 dark:bg-amber-400/15 dark:text-amber-700",text:"text-amber-300 dark:text-amber-700",bar:"from-amber-500/80 to-amber-300"},secret:{key:"secret",label:"Secreta",order:4,accentRgb:"232 121 249",glow:.26,tile:"bg-fuchsia-500/15 text-fuchsia-200 ring-fuchsia-400/30",badge:"bg-fuchsia-500/25 text-fuchsia-100",chip:"bg-fuchsia-500/10 text-fuchsia-300 dark:bg-fuchsia-500/15 dark:text-fuchsia-700",text:"text-fuchsia-300 dark:text-fuchsia-700",bar:"from-fuchsia-500/80 to-fuchsia-300"}},MIN_GRADE_PARAM={key:"min_grade",label:"Nota mínima",unit:"de 10",min:1,max:10,default:9},MAX_MINUTES_PARAM={key:"max_minutes",label:"Tempo máximo",unit:"min",min:1,max:600,default:5},MAX_QUEUE_MINUTES_PARAM={...MAX_MINUTES_PARAM,label:"Espera máxima",default:1},ACHIEVEMENT_METRICS=[{key:"chat_finished",label:"Atendimentos concluídos",unit:"atendimentos",params:[]},{key:"chat_grade",label:"Avaliação (nota)",unit:"avaliações",params:[MIN_GRADE_PARAM]},{key:"chat_attending_time",label:"Tempo de atendimento",unit:"atendimentos",params:[MAX_MINUTES_PARAM]},{key:"chat_waiting_time",label:"Tempo de espera na fila",unit:"atendimentos",params:[MAX_QUEUE_MINUTES_PARAM]},{key:"chat_flow",label:"Atendimento proativo",unit:"atendimentos",params:[]},{key:"level",label:"Nível alcançado",unit:"nível",params:[]},{key:"season_points",label:"Pontos na temporada",unit:"pts",params:[]},{key:"season_rank",label:"Posição na temporada",unit:"posição",params:[]},{key:"season_wins",label:"Temporadas vencidas",unit:"temporadas",params:[]}],ACHIEVEMENT_SCOPES=[{key:"general",label:"Geral (permanente)"},{key:"season",label:"Temporada atual"}];function achievementMetric(ee){return ACHIEVEMENT_METRICS.find(te=>te.key===ee)||null}function metricParams(ee){var te;return((te=achievementMetric(ee))==null?void 0:te.params)||[]}function defaultMetricParams(ee){return Object.fromEntries(metricParams(ee).map(te=>[te.key,te.default]))}function normalizeParams(ee,te={}){const ne=metricParams(ee).map(ae=>[ae.key,Number(te==null?void 0:te[ae.key])]).filter(([,ae])=>Number.isFinite(ae));return Object.fromEntries(ne)}function createAchievementRequirement(ee={}){const te=ACHIEVEMENT_SCOPES.some(ne=>ne.key===ee.scope)?ee.scope:"general";return{metric:ee.metric,target:Number(ee.target),params:normalizeParams(ee.metric,ee.params),scope:te,season_id:te==="season"?ee.season_id??null:null}}function isInvalidPositiveNumber(ee){const te=Number(ee);return ee===""||ee===null||ee===void 0||!Number.isFinite(te)||te<1}function validateAchievementDraft(ee){const te={};return ee&&(String(ee.name||"").trim()||(te.name="Dê um nome para a conquista."),String(ee.description||"").trim()||(te.description="Descreva como desbloquear."),achievementMetric(ee.metric)||(te.metric="Escolha uma métrica."),ee.scope&&!ACHIEVEMENT_SCOPES.some(ne=>ne.key===ee.scope)&&(te.scope="Escolha um escopo."),ee.scope==="season"&&!ee.season_id&&(te.season_id="Selecione a temporada."),isInvalidPositiveNumber(ee.target)&&(te.target="Informe uma meta igual ou maior que 1."),isInvalidPositiveNumber(ee.xp)&&(te.xp="Informe uma recompensa igual ou maior que 1."),metricParams(ee.metric).forEach(ne=>{var re;const ae=Number((re=ee.params)==null?void 0:re[ne.key]);(!Number.isFinite(ae)||ae<ne.min||ae>ne.max)&&(te[ne.key]=`Informe ${ne.label.toLowerCase()} entre ${ne.min} e ${ne.max}.`)}),ee.rarity==="secret"&&!String(ee.hint||"").trim()&&(te.hint="Conquistas secretas precisam de uma dica.")),te}function createCustomAchievement(ee){const te=RARITIES[ee.rarity]?ee.rarity:"common";return{id:`custom-${Date.now().toString(36)}-${Math.random().toString(36).slice(2,7)}`,name:String(ee.name).trim(),description:String(ee.description).trim(),icon:ee.icon||"🏅",rarity:te,hint:te==="secret"?String(ee.hint).trim():"",requirement:createAchievementRequirement(ee),xp:Number(ee.xp),status:!0}}function createCustomAchievementApiPayload(ee){const{id:te,...ne}=createCustomAchievement(ee);return ne}const REQUIREMENT_SENTENCE={chat_finished:(ee,te)=>`Conclua ${ee} ${te===1?"atendimento":"atendimentos"}`,chat_grade:(ee,te,ne)=>{const ae=`${ee} ${te===1?"avaliação":"avaliações"}`;return ne.min_grade?`Receba ${ae} com nota ${ne.min_grade}${ne.min_grade>=10?"":" ou mais"}`:`Receba ${ae}`},chat_attending_time:(ee,te,ne)=>{const ae=`${ee} ${te===1?"atendimento":"atendimentos"}`;return ne.max_minutes?`Resolva ${ae} em menos de ${minutesLabel(ne.max_minutes)}`:`Resolva ${ae} rapidamente`},chat_waiting_time:(ee,te,ne)=>{const ae=`${ee} ${te===1?"atendimento":"atendimentos"}`;return ne.max_minutes?`Capture ${ae} com menos de ${minutesLabel(ne.max_minutes)} de fila`:`Capture ${ae} sem deixar na fila`},chat_flow:(ee,te)=>te===1?"Inicie 1 atendimento proativo":`Inicie ${ee} atendimentos proativos`,level:ee=>`Alcance o nível ${ee}`,season_points:ee=>`Acumule ${ee} pontos`,season_rank:(ee,te)=>te===1?"Termine uma temporada em 1º lugar":`Termine uma temporada no top ${ee}`,season_wins:(ee,te)=>`Vença ${ee} ${te===1?"temporada":"temporadas"}`};function minutesLabel(ee){return`${formatTarget(ee)} ${Number(ee)===1?"minuto":"minutos"}`}function formatTarget(ee){return Number(ee).toLocaleString("pt-BR")}function describeAchievementRequirement(ee){var de;const te=ee==null?void 0:ee.requirement,ne=achievementMetric(te==null?void 0:te.metric),ae=Number(te==null?void 0:te.target);if(!ne||!Number.isFinite(ae)||ae<1)return null;const re=normalizeParams(ne.key,te.params),oe=te.scope==="season"?"season":"general",ie=ee.progress??((de=ee.unlocked)==null?void 0:de.progress),le=Number(ie),ce=ie!=null&&Number.isFinite(le);return{metric:ne.key,metricLabel:ne.label,unit:ne.unit,target:ae,params:re,scope:oe,scopeLabel:oe==="season"?"Por temporada":"Conta desde sempre",text:REQUIREMENT_SENTENCE[ne.key](formatTarget(ae),ae,re),progress:ce?{current:Math.max(0,Math.min(le,ae)),target:ae,remaining:Math.max(0,ae-le),pct:Math.max(0,Math.min(100,Math.round(le/ae*100)))}:null}}const RAW_BASE_ACHIEVEMENTS=[{id:"primeiro-contato",name:"Primeiro Contato",description:"Conclua seu primeiro atendimento.",icon:"👋",rarity:"common",metric:"chat_finished",target:1,xp:25},{id:"pegando-o-jeito",name:"Pegando o Jeito",description:"Conclua 25 atendimentos.",icon:"🔥",rarity:"common",metric:"chat_finished",target:25,xp:50},{id:"primeira-estrela",name:"Primeira Estrela",description:"Receba sua primeira avaliação nota 9 ou 10.",icon:"⭐",rarity:"common",metric:"chat_grade",params:{min_grade:9},target:1,xp:25},{id:"mao-na-massa",name:"Mão na Massa",description:"Inicie seu primeiro atendimento proativo.",icon:"💪",rarity:"common",metric:"chat_flow",target:1,xp:25},{id:"sem-enrolar",name:"Sem Enrolar",description:"Resolva 10 atendimentos em menos de 5 minutos.",icon:"⚡",rarity:"common",metric:"chat_attending_time",params:{max_minutes:5},target:10,xp:50},{id:"centuriao",name:"Centurião",description:"Conclua 100 atendimentos.",icon:"💯",rarity:"rare",metric:"chat_finished",target:100,xp:120},{id:"modo-turbo",name:"Modo Turbo",description:"Acumule 50 resoluções em menos de 5 minutos.",icon:"🚀",rarity:"rare",metric:"chat_attending_time",params:{max_minutes:5},target:50,xp:120},{id:"ima-de-elogios",name:"Ímã de Elogios",description:"Receba 25 avaliações nota 9 ou 10.",icon:"🧲",rarity:"rare",metric:"chat_grade",params:{min_grade:9},target:25,xp:130},{id:"ninja-da-fila",name:"Ninja da Fila",description:"Capture 50 atendimentos com menos de 1 minuto de fila.",icon:"🥷",rarity:"rare",metric:"chat_waiting_time",params:{max_minutes:1},target:50,xp:140},{id:"cacador-de-clientes",name:"Caçador de Clientes",description:"Conclua 25 atendimentos proativos.",icon:"🎯",rarity:"rare",metric:"chat_flow",target:25,xp:140},{id:"maratonista",name:"Maratonista",description:"Conclua 1.000 atendimentos.",icon:"🏃",rarity:"epic",metric:"chat_finished",target:1e3,xp:350},{id:"colecionador-de-dez",name:"Colecionador de Dez",description:"Receba 100 avaliações nota 10.",icon:"💎",rarity:"epic",metric:"chat_grade",params:{min_grade:10},target:100,xp:400},{id:"lugar-ao-sol",name:"Lugar ao Sol",description:"Termine uma temporada no pódio (top 3) do departamento.",icon:"🥉",rarity:"epic",metric:"season_rank",target:3,xp:400},{id:"lenda-viva",name:"Lenda Viva",description:"Conclua 10.000 atendimentos.",icon:"👑",rarity:"legendary",metric:"chat_finished",target:1e4,xp:1e3},{id:"dinastia",name:"Dinastia",description:"Vença 3 temporadas no seu departamento.",icon:"🏆",rarity:"legendary",metric:"season_wins",target:3,xp:1500},{id:"coruja",name:"Coruja",description:"Conclua um atendimento na madrugada.",icon:"🦉",rarity:"secret",hint:"A noite é uma criança.",metric:"chat_finished",target:1,xp:200},{id:"movido-a-cafe",name:"Movido a Café",description:"Conclua 50 atendimentos.",icon:"☕",rarity:"secret",hint:"☕ ☕ ☕",metric:"chat_finished",target:50,xp:300},{id:"elite",name:"Elite",description:"Acumule 1.337 pontos na temporada.",icon:"😎",rarity:"secret",hint:"Um número muito específico.",metric:"season_points",target:1337,xp:337},{id:"speedrun",name:"Speedrun Any%",description:"Resolva 10 atendimentos em menos de 2 minutos.",icon:"🏁",rarity:"secret",hint:"Rápido demais para ser visto.",metric:"chat_attending_time",params:{max_minutes:2},target:10,xp:250},{id:"a-virada",name:"A Virada",description:"Termine uma temporada no top 5 do departamento.",icon:"📈",rarity:"secret",hint:"Ninguém viu essa chegando.",metric:"season_rank",target:5,xp:250},{id:"na-mosca",name:"Na Mosca",description:"Receba 10 avaliações nota 10.",icon:"🎯",rarity:"secret",hint:"Perfeição tem sequência.",metric:"chat_grade",params:{min_grade:10},target:10,xp:300}],BASE_ACHIEVEMENTS=RAW_BASE_ACHIEVEMENTS.map(({metric:ee,target:te,params:ne,scope:ae,season_id:re,...oe})=>({hint:"",status:!0,...oe,requirement:createAchievementRequirement({metric:ee,target:te,params:ne,scope:ae,season_id:re})})),SM_PLAY_MOCK_ENABLED=!1,XP_CURVE_BASE=100,XP_CURVE_EXPONENT=1.5;function xpStep(ee){const te=Number(ee)>=1?Number(ee):1;return Math.round(XP_CURVE_BASE*te**XP_CURVE_EXPONENT)}function xpFloorForLevel(ee){const te=Number(ee)>=1?Math.trunc(Number(ee)):1;let ne=0;for(let ae=1;ae<te;ae+=1)ne+=xpStep(ae);return ne}function resolveLevel(ee){const te=Math.max(0,Math.trunc(Number(ee)||0));let ne=1,ae=0;for(;te-ae>=xpStep(ne);)ae+=xpStep(ne),ne+=1;const re=te-ae,oe=xpStep(ne);return{level:ne,xp_into_level:re,xp_for_next:oe,progress_pct:Math.min(100,Math.round(re/oe*100))}}function buildBalanceImpact({points:ee=0,totalXp:te=0,level:ne=0,delta:ae=0}={}){const re=ve=>Number(ve).toLocaleString("pt-BR"),oe=ae!==0,ie=Math.max(0,Number(ee)+ae),le=Math.max(0,Number(te)+ae),ce=resolveLevel(le).level,de=ce-Number(ne),ue=Math.abs(de);return[{key:"points",label:"Pontos da temporada",from:re(ee),to:re(ie),changed:oe},{key:"xp",label:"XP total",from:re(te),to:re(le),changed:oe},{key:"level",label:"Nível",from:String(ne),to:String(ce),changed:oe&&ue>0,note:ue?`${de>0?"+":"−"}${ue} ${ue===1?"nível":"níveis"}`:""}]}const activeCatalog=e$b.shallowRef({frames:[],titles:[],achievements:[]});let catalogIndex={frame:new Map,title:new Map,achievement:new Map};function indexById(ee){const te=new Map;for(const ne of ee)ne!=null&&ne.id&&te.set(ne.id,ne);return te}function setCosmeticsCatalog(ee){activeCatalog.value={frames:(ee==null?void 0:ee.frames)??[],titles:(ee==null?void 0:ee.titles)??[],achievements:(ee==null?void 0:ee.achievements)??[]},catalogIndex={frame:indexById(activeCatalog.value.frames),title:indexById(activeCatalog.value.titles),achievement:indexById(activeCatalog.value.achievements)}}const activeAchievements=e$b.shallowRef([]);let achievementIndex=new Map;function setAchievementsCatalog(ee){activeAchievements.value=Array.isArray(ee)?ee:[],achievementIndex=indexById(activeAchievements.value)}function findAchievement(ee){return ee?(activeAchievements.value,achievementIndex.get(ee)||null):null}function findCosmetic(ee,te){var ne;return te?(activeCatalog.value,((ne=catalogIndex[ee])==null?void 0:ne.get(te))||null):null}function isRequirementMet(ee,te){var ne;return!ee||ee.kind==="public"?!0:ee.kind==="level"?te.level>=ee.level:ee.kind==="achievement"?te.unlockedAchievementIds.has(ee.id):ee.kind==="season_rank"?te.bestSeasonRank<=ee.rank:["manual","grant","season"].includes(ee.kind)?((ne=te.ownedCosmeticIds)==null?void 0:ne.has(ee.cosmetic_id))??!1:!1}function isSecretToViewer(ee,te){var ne;return(ee==null?void 0:ee.rarity)==="secret"&&!(te!=null&&te.revealSecrets)&&!((ne=te==null?void 0:te.unlockedAchievementIds)!=null&&ne.has(ee.id))}function requirementLabel(ee,te){if(!ee||ee.kind==="public")return"Disponível para todos";if(ee.kind==="level")return`Nível ${ee.level}`;if(ee.kind==="season_rank")return`Top ${ee.rank} na temporada`;if(ee.kind==="season")return"Coleção de temporada";if(["manual","grant"].includes(ee.kind))return"Concedido pela gestão";const ne=findAchievement(ee.id);return ne?isSecretToViewer(ne,te)?"Conquista secreta":`Conquista: ${ne.name}`:"Conquista"}function describeCosmeticRequirement(ee,te=null){const ne={...baselineMeritContext(),...te||{}},ae=(ee==null?void 0:ee.kind)??"public",re=requirementLabel(ee,ne);if(!ee||ae==="public")return{kind:"public",label:re,text:"Já está disponível — sem requisito."};if(ae==="level"){const oe=Number(ee.level)||0,ie=Number(ne.level)||0;return{kind:ae,label:re,text:`Chegue ao nível ${oe}. O XP que sobe o nível não zera entre temporadas.`,unit:"níveis",progress:oe>0?{current:Math.max(0,Math.min(ie,oe)),target:oe,remaining:Math.max(0,oe-ie),pct:Math.max(0,Math.min(100,Math.round(ie/oe*100)))}:null}}if(ae==="season_rank"){const oe=Number(ee.rank)||0,ie=Number(ne.bestSeasonRank),le=Number.isFinite(ie);return{kind:ae,label:re,text:`Feche uma temporada entre os ${oe} primeiros do seu departamento.`,note:le?`Sua melhor posição até agora: ${ie}º`:"Você ainda não fechou uma temporada com posição registrada."}}if(ae==="achievement"){const oe=findAchievement(ee.id),ie=isSecretToViewer(oe,ne);return oe?{kind:ae,label:re,text:ie?"Desbloqueie uma conquista secreta — ela se revela quando você chegar lá.":`Desbloqueie a conquista "${oe.name}".`,note:ie?null:oe.description||null}:{kind:ae,label:re,text:"Desbloqueie a conquista ligada a este item."}}return ae==="season"?{kind:ae,label:re,text:"Item de coleção de temporada: sai com o ciclo em que é oferecido."}:["manual","grant"].includes(ae)?{kind:ae,label:re,text:"Só a gestão concede este item — não há como desbloquear atendendo."}:{kind:ae,label:re,text:re}}function resolveCosmeticRequirement(ee){const te=ee.availability||ee.requirement;return te?{...typeof te=="string"?{kind:te}:{...te},cosmetic_id:ee.id}:null}function baselineMeritContext(){return{level:1,unlockedAchievementIds:new Set,bestSeasonRank:1/0,ownedCosmeticIds:new Set,revealSecrets:!1}}function buildCosmetics(ee=baselineMeritContext()){const te=re=>{var ce;const oe=resolveCosmeticRequirement(re),ie=isRequirementMet(oe,ee),le={...re,unlocked:ie,availability:oe,requirementLabel:requirementLabel(oe,ee)};return re.type!=="achievement"?le:re.achievementId?{...le,requirementLabel:((ce=RARITIES[re.rarity])==null?void 0:ce.label)||"Desbloqueada"}:{...le,requirementLabel:"Sem destaque"}},ne=activeCatalog.value,ae=ne.achievements.filter(re=>!re.achievementId||isRequirementMet(resolveCosmeticRequirement(re),ee));return[{slot:"frame",label:"Molduras",items:ne.frames.map(te)},{slot:"title",label:"Títulos",items:ne.titles.map(te)},{slot:"achievement",label:"Destaque",items:ae.map(te)}]}function slotId(ee){return ee?typeof ee=="object"?ee.id??null:ee:null}function resolveSmPlayEnabled(ee,te=SM_PLAY_MOCK_ENABLED){var ne;return!ee||typeof ee!="object"?!1:!!(((ne=ee.gamification)==null?void 0:ne.enabled)??ee.gamification_enabled??te)}function resolveAttendantGamification(ee){var ce;const te=(ee==null?void 0:ee.gamification)??(ee==null?void 0:ee.game_profile)??{},ne=te.cosmetics??(ee==null?void 0:ee.cosmetics)??{},ae=ne.equipped??te.equipped??((ce=ee==null?void 0:ee.cosmetics)==null?void 0:ce.equipped)??ne,re=slotId(ae.frame)??null,oe=slotId(ae.title)??null,ie=slotId(ae.achievement)??null,le=(de,ue,ve)=>{const me=de==="achievement"?findAchievement(ve):findCosmetic(de,ve);return me?typeof ue!="object"?me:{...me,...ue,...ue.rarity==null&&me.rarity?{rarity:me.rarity}:{}}:typeof ue=="object"?ue:null};return{level:Number(te.level??(ee==null?void 0:ee.gamification_level)??(ee==null?void 0:ee.level)??1),equipped:{frame:re,title:oe,achievement:ie},frame:le("frame",ae.frame,re),title:le("title",ae.title,oe),achievement:le("achievement",ae.achievement,ie)}}const useAttendantStore=pinia.defineStore("attendant",{state:()=>({attendants:[],count:null,loaded:!1}),getters:{logged_attendant:ee=>()=>ee.attendants.find(te=>te.is_me),attendantsById:ee=>{const te=new Map;for(const ne of ee.attendants)(ne==null?void 0:ne.id)!=null&&te.set(String(ne.id),ne);return te}},actions:{async fetchAttendants(){try{let ee=`${attendantUrl}`;const te=await api.get(ee);this.attendants=te.data,this.count=this.attendants.length}catch(ee){console.log("Erro ao buscar atendentes:",ee)}},removeAttendants(ee){this.attendants=this.attendants.filter(te=>te.id!==ee)},addAttendants(ee){const te=this.attendants.findIndex(ne=>ne.id===ee.id);te!==-1?this.attendants[te]=ee:this.attendants.push(ee)}}}),useMessageUiStore=pinia.defineStore("smClickMessageUi",{state:()=>({deviceType:"web",smPlayEnabled:!1,currentChat:null,attendant:null,themeMode:!0,forwardMode:{active:!1,selectedMessages:[]},actionsMenu:{messageId:null,message:null,x:0,y:0},quote:null,editMessage:{id:null,text:"",editing:!1},list:{modal:!1,message:null}}),getters:{isWebDevice:ee=>ee.deviceType==="web",chatActive:ee=>{var te;return((te=ee.currentChat)==null?void 0:te.status)==="active"},chatInstanceId:ee=>{var te,ne;return((ne=(te=ee.currentChat)==null?void 0:te.instance)==null?void 0:ne.id)??null},instancePhone:ee=>{var te,ne;return((ne=(te=ee.currentChat)==null?void 0:te.instance)==null?void 0:ne.telephone)??""},isGroupChat:ee=>{var te;return!!((te=ee.currentChat)!=null&&te.group)},contactPhoto:ee=>{var te,ne;return((ne=(te=ee.currentChat)==null?void 0:te.contact)==null?void 0:ne.photo)??""},contactName:ee=>{var te,ne;return((ne=(te=ee.currentChat)==null?void 0:te.contact)==null?void 0:ne.name)??""},isMessageSelected:ee=>te=>ee.forwardMode.selectedMessages.includes(te),isActionsTarget:ee=>te=>ee.actionsMenu.messageId!==null&&ee.actionsMenu.messageId===te,loggedAttendant:ee=>ee.attendant||useAttendantStore().logged_attendant()||null},actions:{setContext({deviceType:ee,smPlayEnabled:te,currentChat:ne,themeMode:ae,attendant:re}={}){ee!==void 0&&(this.deviceType=ee||"web"),te!==void 0&&(this.smPlayEnabled=!!te),ne!==void 0&&(this.currentChat=ne),ae!==void 0&&(this.themeMode=!!ae),re!==void 0&&(this.attendant=re)},openActions(ee,te){ee!=null&&ee.id&&(this.actionsMenu={messageId:ee.id,message:ee,x:(te==null?void 0:te.clientX)??0,y:(te==null?void 0:te.clientY)??0})},closeActions(){this.actionsMenu={messageId:null,message:null,x:0,y:0}},startForward(ee){this.forwardMode.active=!0;const te=Array.isArray(ee==null?void 0:ee.items)?ee.items.map(ne=>ne==null?void 0:ne.id).filter(ne=>ne!=null&&ne!==""):[];this.forwardMode.selectedMessages=te.length?te:[ee==null?void 0:ee.id].filter(Boolean)},toggleMessageSelection(ee){if(!ee)return;this.forwardMode.active=!0;const te=this.forwardMode.selectedMessages.indexOf(ee);te>-1?this.forwardMode.selectedMessages.splice(te,1):this.forwardMode.selectedMessages.push(ee),this.forwardMode.selectedMessages.length||(this.forwardMode.active=!1)},togglePackageSelection(ee=[]){const te=ee.filter(ae=>ae!=null&&ae!=="");if(!te.length)return;this.forwardMode.active=!0;const ne=te.filter(ae=>this.forwardMode.selectedMessages.includes(ae));ne.length>te.length-ne.length?this.forwardMode.selectedMessages=this.forwardMode.selectedMessages.filter(ae=>!te.includes(ae)):te.forEach(ae=>{this.forwardMode.selectedMessages.includes(ae)||this.forwardMode.selectedMessages.push(ae)}),this.forwardMode.selectedMessages.length||(this.forwardMode.active=!1)},clearForward(){this.forwardMode.active=!1,this.forwardMode.selectedMessages=[]},setQuote(ee,te,ne){if(!ee){this.quote=null;return}this.quote={...ee,id:ne,...te?{sent_by:te}:{}}},clearQuote(){this.quote=null},startEdit(ee){var te;this.editMessage={id:(ee==null?void 0:ee.id)??null,editing:!0,text:((te=ee==null?void 0:ee.content)==null?void 0:te.text)??""},this.quote=null},clearEdit(){this.editMessage={id:null,text:"",editing:!1}},openList(ee){this.list.modal=!0,this.list.message=ee},closeList(){this.list.modal=!1,this.list.message=null}}}),_hoisted_1$2p={key:0,class:"sm-avatar-arc",viewBox:"0 0 100 100",fill:"none","aria-hidden":"true"},_hoisted_2$26={key:0,class:"sm-avatar-core sm-avatar-core--empty","aria-hidden":"true"},_hoisted_3$1V={key:1,class:"sm-avatar-core"},_hoisted_4$1J=["alt"],_hoisted_5$1z=["src","alt"],_hoisted_6$1q={key:2,class:"sm-avatar-core sm-avatar-core--initials"},_hoisted_7$1j={key:0,class:"size-[62%]",viewBox:"0 0 24 24",fill:"currentColor"},_hoisted_8$1a={key:1,class:"size-[58%]",viewBox:"0 0 24 24",fill:"currentColor"},_hoisted_9$15={class:"sm-avatar-level"},_hoisted_10$_=["title"],_hoisted_11$S={key:3,class:"sm-avatar-outcome","aria-hidden":"true"},_hoisted_12$N={key:0,class:"sm-avatar-outcome-icon sm-avatar-outcome-icon--won",viewBox:"0 0 20 20",fill:"none"},_hoisted_13$F={key:1,class:"sm-avatar-outcome-icon sm-avatar-outcome-icon--lost",viewBox:"0 0 20 17",fill:"none"},_hoisted_14$D={key:4,class:"sm-avatar-blocked","aria-hidden":"true"},FRAME_REFERENCE_SIZE=72,_sfc_main$2C={__name:"Avatar",props:{photo:{type:String,default:""},name:{type:String,default:""},size:{type:String,default:"md",validator:ee=>["xs","sm","md","lg","xl","preview","fill"].includes(ee)},scale:{type:String,default:"identity",validator:ee=>["identity","app"].includes(ee)},fallback:{type:String,default:"initials",validator:ee=>["initials","icon","group"].includes(ee)},attendant:{type:Object,default:null},smPlay:{type:Boolean,default:void 0},frame:{type:Object,default:void 0},frameOnly:{type:Boolean,default:!1},level:{type:Number,default:null},showLevel:{type:Boolean,default:!0},effectLevel:{type:String,default:"border",validator:ee=>["full","compact","border"].includes(ee)},clickable:{type:Boolean,default:!1},blocked:{type:Boolean,default:!1},channel:{type:String,default:null},outcome:{type:String,default:null,validator:ee=>[null,"","won","lost"].includes(ee)}},emits:["view"],setup(ee,{emit:te}){const ne=ee,ae=te,re={identity:{xs:22.4,sm:38.4,md:44,lg:60,preview:66,xl:112},app:{xs:26,sm:40,md:56,lg:80,xl:112}},oe=!!pinia.getActivePinia(),ie=oe?useAttendantStore():null,le=oe?useMessageUiStore():null,ce=e$b.inject("smPlayEnabled",null),de=e$b.computed(()=>{var Ge;return ne.name||((Ge=ne.attendant)==null?void 0:Ge.name)||""}),ue=e$b.computed(()=>{var Ge;return ne.photo||((Ge=ne.attendant)==null?void 0:Ge.photo)||""}),ve=e$b.computed(()=>{var Ke;const Ge=(Ke=ne.attendant)==null?void 0:Ke.id;return!Ge||!ie?null:ie.attendantsById.get(String(Ge))||null}),me=e$b.computed(()=>{if(!ne.attendant)return null;const Ge=resolveAttendantGamification(ne.attendant);return Ge.frame||Ge.title||Ge.achievement||!ve.value?Ge:resolveAttendantGamification(ve.value)}),ge=e$b.computed(()=>{if(ne.smPlay!==void 0)return ne.smPlay;const Ge=e$b.unref(ce);return Ge!=null?!!Ge:!!(le!=null&&le.smPlayEnabled)}),fe=e$b.computed(()=>!!ne.attendant&&ge.value&&resolveSmPlayEnabled(ve.value||ne.attendant)),pe=e$b.computed(()=>{var Ge;return ne.frame!==void 0?ne.frame:fe.value?(Ge=me.value)==null?void 0:Ge.frame:null}),_e=e$b.computed(()=>{var Ge;return ne.level!==null?ne.level:fe.value?(Ge=me.value)==null?void 0:Ge.level:null}),be=e$b.computed(()=>avatarInitials(de.value)),ke=e$b.computed(()=>ne.fallback==="initials"&&!!be.value),$e=e$b.computed(()=>avatarHue(de.value||ue.value)),ye=e$b.computed(()=>!isImageSourcePreloaded(ue.value)),Ee=e$b.computed(()=>resolveFrameVisual(pe.value)),Se=e$b.computed(()=>{var Ge;return((Ge=Ee.value)==null?void 0:Ge.css)??null}),Le=e$b.computed(()=>!!Se.value),Ve=e$b.computed(()=>{var Ge;return((Ge=Ee.value)==null?void 0:Ge.ring.variant)==="arc"}),Te=e$b.computed(()=>{var Ge;return((Ge=Ee.value)==null?void 0:Ge.ring.variant)==="double"}),ze=e$b.computed(()=>{var Ge,Ke;return Ve.value&&((Ke=(Ge=Ee.value)==null?void 0:Ge.ornament)==null?void 0:Ke.variant)||""}),Re=e$b.computed(()=>{var Ge;return!!((Ge=Ee.value)!=null&&Ge.ornament.enabled)&&frameVariantLocked("ornament",Ee.value.ornament.variant)}),Oe=e$b.computed(()=>{var Ge,Ke;return((Ge=Ee.value)==null?void 0:Ge.motion.enabled)&&((Ke=Ee.value)==null?void 0:Ke.motion.rotation)&&ne.effectLevel!=="border"}),Pe=e$b.computed(()=>{var Ge;return Oe.value&&["rainbow","neon"].includes((Ge=Ee.value)==null?void 0:Ge.ring.variant)}),Be=e$b.computed(()=>{var Ke;if(ne.size==="fill")return 1;const Ge=((Ke=re[ne.scale])==null?void 0:Ke[ne.size])??FRAME_REFERENCE_SIZE;return Math.min(2.4,Ge/FRAME_REFERENCE_SIZE)}),De=Ge=>`calc(var(--sm-frame-width, 2px) * ${Math.round(Ge*100)/100})`,Ne=e$b.computed(()=>{if(!Ee.value)return"";const Ge=Ee.value.ring;if(Ge.variant==="arc")return"none";const Ke=Ge.glow*Ge.intensity,et=Ge.colors[0],yt=Ge.colors[1];if(Ge.variant==="double")return`0 0 ${De(1.6+Ke*1.8)} color-mix(in srgb, ${et} ${Math.round(28+Ke*45)}%, transparent)`;if(Ge.variant==="neon")return`0 0 ${De(1.4+Ke*1.4)} color-mix(in srgb, ${et} ${Math.round(45+Ke*45)}%, transparent), 0 0 ${De(2.6+Ke*2.6)} color-mix(in srgb, ${yt} ${Math.round(25+Ke*45)}%, transparent)`;if(Ge.variant==="rainbow"){const Et=Ge.colors[2];return`0 0 ${De(1.3+Ke*1.3)} color-mix(in srgb, ${et} ${Math.round(35+Ke*40)}%, transparent), 0 0 ${De(2.2+Ke*2.2)} color-mix(in srgb, ${yt} ${Math.round(25+Ke*35)}%, transparent), 0 0 ${De(3.1+Ke*3.1)} color-mix(in srgb, ${Et} ${Math.round(18+Ke*32)}%, transparent)`}return`0 0 ${De(1.2+Ke*2)} color-mix(in srgb, ${et} ${Math.round(18+Ke*42)}%, transparent)`}),Me=e$b.computed(()=>{var yt;if(ne.size==="fill"&&!Le.value)return"0px";const Ge=Ve.value?.72:Te.value?1.4:1,Ke=Ve.value?1.5:Te.value?3:2,et=(((yt=Ee.value)==null?void 0:yt.ring.width)||2)*Ge/FRAME_REFERENCE_SIZE;return ne.size==="fill"?`max(${Ke}px, ${Math.round(et*1e4)/100}cqw)`:`${Math.max(Ke,et*FRAME_REFERENCE_SIZE*Be.value)}px`}),we=e$b.computed(()=>{var Ge,Ke,et,yt,Et,At,Pt,_t;return Le.value?{"--sm-frame-bg":Ve.value?"transparent":Se.value,boxShadow:Ne.value,"--sm-frame-width":Me.value,"--sm-frame-band-gap":"max(1px, calc(var(--sm-frame-width) * 0.16))","--sm-frame-band-inner":"calc(max(1px, calc(var(--sm-frame-width) * 0.16)) + max(1px, calc(var(--sm-frame-width) * 0.3)))","--sm-frame-primary":((Ke=(Ge=Ee.value)==null?void 0:Ge.ring.colors)==null?void 0:Ke[0])||"rgb(var(--primary-rgb))","--sm-frame-secondary":((yt=(et=Ee.value)==null?void 0:et.ring.colors)==null?void 0:yt[1])||"rgb(var(--primary-rgb))","--sm-frame-accent":((At=(Et=Ee.value)==null?void 0:Et.ring.colors)==null?void 0:At[2])||"rgb(var(--primary-rgb))","--sm-frame-ring-speed":`${6/(((Pt=Ee.value)==null?void 0:Pt.motion.speed)||1)}s`,"--sm-frame-ring-direction":((_t=Ee.value)==null?void 0:_t.motion.direction)==="counterclockwise"?"reverse":"normal","--avatar-hue":$e.value}:{"--sm-frame-width":Me.value,"--avatar-hue":$e.value}}),Ce=e$b.computed(()=>({background:Se.value||"rgb(var(--primary-rgb))"})),Fe=e$b.computed(()=>ne.size==="fill"?"sm-avatar--fill":`sm-avatar--${ne.scale}-${ne.size}`),Ie=e$b.computed(()=>{const Ge=normalizeChannel(ne.channel);return Ge==="whatsapp"?null:Ge}),Ue=e$b.computed(()=>{var Ge;return!!((Ge=Ee.value)!=null&&Ge.motion.enabled)&&(ne.effectLevel!=="border"||Re.value)}),{offscreenRef:qe,paused:je}=useOffscreenPause(Ue);function We(){ne.clickable&&ue.value&&ae("view",ue.value)}return(Ge,Ke)=>{const et=e$b.resolveDirective("lazy");return e$b.openBlock(),e$b.createBlock(e$b.resolveDynamicComponent(ee.clickable?"button":"div"),{ref_key:"offscreenRef",ref:qe,class:e$b.normalizeClass(["sm-avatar",[Fe.value,ee.clickable?"sm-avatar--clickable":"",e$b.unref(je)?"sm-avatar--offscreen":""]]),type:ee.clickable?"button":void 0,onClick:We},{default:e$b.withCtx(()=>{var yt;return[Ee.value&&(ee.effectLevel!=="border"||Re.value)?(e$b.openBlock(),e$b.createBlock(FrameEffects,{key:0,visual:Ee.value,"visual-normalized":"","effect-level":ee.effectLevel,"pause-offscreen":!1},null,8,["visual","effect-level"])):e$b.createCommentVNode("",!0),e$b.createElementVNode("div",{class:e$b.normalizeClass(["sm-avatar-frame",[Oe.value?"sm-avatar-frame--animated":"",Pe.value?"sm-avatar-frame--spins":"",(yt=Ee.value)!=null&&yt.ring.variant?`sm-avatar-frame--${Ee.value.ring.variant}`:"",ze.value?`sm-avatar-frame--signature-${ze.value}`:"",Le.value?"sm-avatar-frame--painted":"",ee.frameOnly&&!Le.value?"sm-avatar-frame--empty":""]]),style:e$b.normalizeStyle(we.value)},[Ve.value?(e$b.openBlock(),e$b.createElementBlock("svg",_hoisted_1$2p,[...Ke[0]||(Ke[0]=[e$b.createElementVNode("circle",{class:"sm-avatar-arc-halo",cx:"50",cy:"50",r:"48.5"},null,-1),e$b.createElementVNode("circle",{class:"sm-avatar-arc-core",cx:"50",cy:"50",r:"48.5"},null,-1),e$b.createElementVNode("circle",{class:"sm-avatar-arc-highlight",cx:"50",cy:"50",r:"48.5"},null,-1)])])):e$b.createCommentVNode("",!0),e$b.createElementVNode("div",{class:e$b.normalizeClass(["sm-avatar-gap",Le.value&&ee.scale==="app"?"sm-avatar-gap--app":""])},[ee.frameOnly?(e$b.openBlock(),e$b.createElementBlock("div",_hoisted_2$26)):ue.value?(e$b.openBlock(),e$b.createElementBlock("div",_hoisted_3$1V,[ye.value?e$b.withDirectives((e$b.openBlock(),e$b.createElementBlock("img",{key:0,alt:de.value,class:"sm-avatar-image"},null,8,_hoisted_4$1J)),[[et,ue.value]]):(e$b.openBlock(),e$b.createElementBlock("img",{key:1,src:ue.value,alt:de.value,class:"sm-avatar-image"},null,8,_hoisted_5$1z))])):ke.value?(e$b.openBlock(),e$b.createElementBlock("div",_hoisted_6$1q,e$b.toDisplayString(be.value),1)):(e$b.openBlock(),e$b.createElementBlock("div",{key:3,class:e$b.normalizeClass(["sm-avatar-core",ee.fallback==="group"?"sm-avatar-core--initials sm-avatar-core--group":"sm-avatar-core--icon"]),"aria-hidden":"true"},[ee.fallback==="group"?(e$b.openBlock(),e$b.createElementBlock("svg",_hoisted_7$1j,[...Ke[1]||(Ke[1]=[e$b.createElementVNode("path",{"fill-rule":"evenodd",d:"M12 6a3.5 3.5 0 1 0 0 7 3.5 3.5 0 0 0 0-7Zm-1.5 8a4 4 0 0 0-4 4 2 2 0 0 0 2 2h7a2 2 0 0 0 2-2 4 4 0 0 0-4-4h-3Zm6.82-3.096a5.51 5.51 0 0 0-2.797-6.293 3.5 3.5 0 1 1 2.796 6.292ZM19.5 18h.5a2 2 0 0 0 2-2 4 4 0 0 0-4-4h-1.1a5.503 5.503 0 0 1-.471.762A5.998 5.998 0 0 1 19.5 18ZM4 7.5a3.5 3.5 0 0 1 5.477-2.889 5.5 5.5 0 0 0-2.796 6.293A3.501 3.501 0 0 1 4 7.5ZM7.1 12H6a4 4 0 0 0-4 4 2 2 0 0 0 2 2h.5a5.998 5.998 0 0 1 3.071-5.238A5.505 5.505 0 0 1 7.1 12Z","clip-rule":"evenodd"},null,-1)])])):(e$b.openBlock(),e$b.createElementBlock("svg",_hoisted_8$1a,[...Ke[2]||(Ke[2]=[e$b.createElementVNode("path",{d:"M12 12.4a4.2 4.2 0 1 0 0-8.4 4.2 4.2 0 0 0 0 8.4Zm0 1.7c-3.98 0-7.2 2.28-7.2 5.09 0 .45.37.81.83.81h12.74c.46 0 .83-.36.83-.81 0-2.81-3.22-5.09-7.2-5.09Z"},null,-1)])]))],2))],2)],6),!ee.frameOnly&&ee.showLevel&&_e.value?(e$b.openBlock(),e$b.createElementBlock("span",{key:1,class:"sm-avatar-level-frame",style:e$b.normalizeStyle(Ce.value)},[e$b.createElementVNode("span",_hoisted_9$15,e$b.toDisplayString(_e.value),1)],4)):e$b.createCommentVNode("",!0),Ie.value?(e$b.openBlock(),e$b.createElementBlock("span",{key:2,class:e$b.normalizeClass(["sm-avatar-channel",`sm-avatar-channel--${Ie.value}`]),title:e$b.unref(channelLabel)(ee.channel)},[e$b.createVNode(ChannelIcon,{channel:Ie.value},null,8,["channel"])],10,_hoisted_10$_)):e$b.createCommentVNode("",!0),ee.outcome?(e$b.openBlock(),e$b.createElementBlock("span",_hoisted_11$S,[ee.outcome==="won"?(e$b.openBlock(),e$b.createElementBlock("svg",_hoisted_12$N,[...Ke[3]||(Ke[3]=[e$b.createElementVNode("path",{d:"M3.16666 6.37502C3.74962 6.37502 4.2222 6.85073 4.22222 7.43752V15.9375C4.22222 16.5243 3.74963 17 3.16666 17H1.05555C0.472588 17 0 16.5243 0 15.9375V7.43752C1.50967e-05 6.85073 0.472597 6.37502 1.05555 6.37502H3.16666Z",fill:"currentColor"},null,-1),e$b.createElementVNode("path",{d:"M9.48143 1.4454C9.79496 -0.637173 11.5194 0.143216 11.5194 0.143216C13.863 1.75728 13.005 4.80783 12.2832 6.13118H17.4424C19.5307 6.65187 19.0768 8.34354 18.5887 9.12465C19.5056 10.7905 18.4191 11.7716 17.7609 12.0538C18.1175 13.7717 17.0601 14.4178 16.4869 14.5264C16.8944 16.4004 15.5533 16.9564 14.8314 17H10.436C8.49997 16.9999 6.19055 16.1753 5.27777 15.7632V7.368C9.03523 5.6108 9.09933 3.98356 9.48143 1.4454Z",fill:"currentColor"},null,-1)])])):(e$b.openBlock(),e$b.createElementBlock("svg",_hoisted_13$F,[...Ke[4]||(Ke[4]=[e$b.createElementVNode("path",{d:"M15.8333 10.625C15.2504 10.625 14.7778 10.1493 14.7778 9.56249L14.7778 1.0625C14.7778 0.475698 15.2504 1.57955e-06 15.8333 1.63051e-06L17.9444 1.81507e-06C18.5274 1.86603e-06 19 0.475698 19 1.0625L19 9.56249C19 10.1493 18.5274 10.625 17.9444 10.625L15.8333 10.625Z",fill:"currentColor"},null,-1),e$b.createElementVNode("path",{d:"M9.51857 15.5546C9.20504 17.6372 7.48065 16.8568 7.48065 16.8568C5.13698 15.2427 5.99503 12.1922 6.71681 10.8688L1.55759 10.8688C-0.530671 10.3481 -0.0768444 8.65646 0.411319 7.87535C-0.50562 6.20951 0.580926 5.22844 1.23906 4.94622C0.882549 3.22832 1.93994 2.5822 2.51315 2.47363C2.10564 0.59965 3.44673 0.0436064 4.16864 6.1075e-07L8.56403 9.95007e-07C10.5 0.000138493 12.8095 0.824657 13.7222 1.23682L13.7222 9.632C9.96477 11.3892 9.90067 13.0164 9.51857 15.5546Z",fill:"currentColor"},null,-1)])]))])):e$b.createCommentVNode("",!0),ee.blocked?(e$b.openBlock(),e$b.createElementBlock("span",_hoisted_14$D,[...Ke[5]||(Ke[5]=[e$b.createElementVNode("svg",{viewBox:"0 0 24 24",fill:"currentColor"},[e$b.createElementVNode("path",{"fill-rule":"evenodd",d:"M8 10V7a4 4 0 1 1 8 0v3h1a2 2 0 0 1 2 2v7a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2v-7a2 2 0 0 1 2-2h1Zm2-3a2 2 0 1 1 4 0v3h-4V7Zm2 6a1 1 0 0 1 1 1v3a1 1 0 1 1-2 0v-3a1 1 0 0 1 1-1Z","clip-rule":"evenodd"})],-1)])])):e$b.createCommentVNode("",!0),e$b.renderSlot(Ge.$slots,"badge",{},void 0,!0)]}),_:3},8,["class","type"])}}},Avatar=_export_sfc$1(_sfc_main$2C,[["__scopeId","data-v-bfed9127"]]),_hoisted_1$2o=["href"],_hoisted_2$25={key:0,class:"size-3 opacity-70 group-hover:opacity-100",viewBox:"0 0 16 16"},_hoisted_3$1U=["id"],_hoisted_4$1I=["fill"],_hoisted_5$1y={class:"instagram-user group-hover:underline"},_sfc_main$2B={__name:"instagramBadge",props:{instagramUserName:{type:String,required:!0},size:{type:String,default:"small",validator:ee=>["small","medium","large"].includes(ee)},hideSvg:{type:Boolean,default:!1}},setup(ee){const te=ee,ne=e$b.computed(()=>({"instagram-badge":!0,"instagram-badge--medium":te.size==="medium","instagram-badge--large":te.size==="large"})),ae=e$b.computed(()=>`ig-grad-${Math.random().toString(36).slice(2,9)}`);return(re,oe)=>ee.instagramUserName?(e$b.openBlock(),e$b.createElementBlock("a",{key:0,target:"_blank",rel:"noopener noreferrer",href:`https://www.instagram.com/${ee.instagramUserName}/`,class:e$b.normalizeClass([ne.value,"group rt-transition"]),onClick:oe[0]||(oe[0]=e$b.withModifiers(()=>{},["stop"]))},[ee.hideSvg?e$b.createCommentVNode("",!0):(e$b.openBlock(),e$b.createElementBlock("svg",_hoisted_2$25,[e$b.createElementVNode("defs",null,[e$b.createElementVNode("linearGradient",{id:ae.value,x1:"0%",y1:"100%",x2:"100%",y2:"0%"},[...oe[1]||(oe[1]=[e$b.createElementVNode("stop",{offset:"0%",style:{"stop-color":"#fd5949"}},null,-1),e$b.createElementVNode("stop",{offset:"50%",style:{"stop-color":"#d6249f"}},null,-1),e$b.createElementVNode("stop",{offset:"100%",style:{"stop-color":"#285aeb"}},null,-1)])],8,_hoisted_3$1U)]),e$b.createElementVNode("path",{fill:`url(#${ae.value})`,d:"M8 0C5.829 0 5.556.01 4.703.048 3.85.088 3.269.222 2.76.42a3.917 3.917 0 0 0-1.417.923A3.927 3.927 0 0 0 .42 2.76C.222 3.268.087 3.85.048 4.7.01 5.555 0 5.827 0 8.001c0 2.172.01 2.444.048 3.297.04.852.174 1.433.372 1.942.205.526.478.972.923 1.417.444.445.89.719 1.416.923.51.198 1.09.333 1.942.372C5.555 15.99 5.827 16 8 16s2.444-.01 3.298-.048c.851-.04 1.434-.174 1.943-.372a3.916 3.916 0 0 0 1.416-.923c.445-.445.718-.891.923-1.417.197-.509.332-1.09.372-1.942C15.99 10.445 16 10.173 16 8s-.01-2.445-.048-3.299c-.04-.851-.175-1.433-.372-1.941a3.926 3.926 0 0 0-.923-1.417A3.911 3.911 0 0 0 13.24.42c-.51-.198-1.092-.333-1.943-.372C10.443.01 10.172 0 7.998 0h.003zm-.717 1.442h.718c2.136 0 2.389.007 3.232.046.78.035 1.204.166 1.486.275.373.145.64.319.92.599.28.28.453.546.598.92.11.281.24.705.275 1.485.039.843.047 1.096.047 3.231s-.008 2.389-.047 3.232c-.035.78-.166 1.203-.275 1.485a2.47 2.47 0 0 1-.599.919c-.28.28-.546.453-.92.598-.28.11-.704.24-1.485.276-.843.038-1.096.047-3.232.047s-2.39-.009-3.233-.047c-.78-.036-1.203-.166-1.485-.276a2.478 2.478 0 0 1-.92-.598 2.48 2.48 0 0 1-.6-.92c-.109-.281-.24-.705-.275-1.485-.038-.843-.046-1.096-.046-3.233 0-2.136.008-2.388.046-3.231.036-.78.166-1.204.276-1.486.145-.373.319-.64.599-.92.28-.28.546-.453.92-.598.282-.11.705-.24 1.485-.276.738-.034 1.024-.044 2.515-.045v.002zm4.988 1.328a.96.96 0 1 0 0 1.92.96.96 0 0 0 0-1.92zm-4.27 1.122a4.109 4.109 0 1 0 0 8.217 4.109 4.109 0 0 0 0-8.217zm0 1.441a2.667 2.667 0 1 1 0 5.334 2.667 2.667 0 0 1 0-5.334z"},null,8,_hoisted_4$1I)])),e$b.createElementVNode("span",_hoisted_5$1y," @"+e$b.toDisplayString(ee.instagramUserName),1)],10,_hoisted_1$2o)):e$b.createCommentVNode("",!0)}},InstagramBadge=_export_sfc$1(_sfc_main$2B,[["__scopeId","data-v-d98b827e"]]);function useWhatsappBindings(ee){return e$b.computed(()=>{const te=typeof ee=="function"?ee():ee==null?void 0:ee.value;return((te==null?void 0:te.whatsapp_infos)||[]).filter(ae=>(ae==null?void 0:ae.meta_business_acc_id)||(ae==null?void 0:ae.whatsapp_bsuid)).map((ae,re)=>({id:ae.id||`wa-${re}`,instanceName:ae.instance||"",bsuid:ae.whatsapp_bsuid||"",user_name:ae.whatsapp_user_name||""})).filter(ae=>ae.instanceName)})}function useInstagramBindings(ee){return e$b.computed(()=>{const te=typeof ee=="function"?ee():ee==null?void 0:ee.value;return((te==null?void 0:te.instagram_infos)||[]).filter(ae=>(ae==null?void 0:ae.instagram_account_id)||(ae==null?void 0:ae.instagram_bsuid)).map((ae,re)=>({id:ae.id||`ig-${re}`,instanceName:ae.instance||"",bsuid:ae.instagram_bsuid||"",user_name:ae.instagram_user_name||""})).filter(ae=>ae.instanceName)})}function useTelegramBindings(ee){return e$b.computed(()=>{const te=typeof ee=="function"?ee():ee==null?void 0:ee.value;return((te==null?void 0:te.telegram_infos)||[]).filter(ae=>(ae==null?void 0:ae.telegram_account_id)||(ae==null?void 0:ae.telegram_chat_id)).map((ae,re)=>({id:ae.id||`tg-${re}`,instanceName:ae.instance||"",bsuid:ae.telegram_chat_id||"",user_name:ae.telegram_user_name||""})).filter(ae=>ae.instanceName)})}function useWebchatBindings(ee){return e$b.computed(()=>{const te=typeof ee=="function"?ee():ee==null?void 0:ee.value;return((te==null?void 0:te.webchat_infos)||[]).filter(ae=>ae==null?void 0:ae.webchat_id).map((ae,re)=>({id:ae.id||`wc-${re}`,instanceName:ae.instance||"",bsuid:ae.webchat_id||"",user_name:""})).filter(ae=>ae.instanceName)})}function useHasContactBindings(ee,te,ne,ae){return e$b.computed(()=>{var re,oe;return ee.value.length>0||te.value.length>0||(((re=ne==null?void 0:ne.value)==null?void 0:re.length)||0)>0||(((oe=ae==null?void 0:ae.value)==null?void 0:oe.length)||0)>0})}const _hoisted_1$2n={class:"relative shrink-0"},_hoisted_2$24={key:0,class:"truncate text-sm font-medium xl:text-base"},_hoisted_3$1T={key:1,class:"merge-card__name"},_hoisted_4$1H={key:0,class:"contact-phone rt-transition"},_hoisted_5$1x={key:2,class:"conn-btns"},_hoisted_6$1p={class:"conn-btn__count"},_hoisted_7$1i={class:"stack-popover__list"},_hoisted_8$19={class:"stack-popover__name"},_hoisted_9$14={key:0,class:"stack-popover__username"},_hoisted_10$Z={class:"conn-btn__count"},_hoisted_11$R={class:"stack-popover__list"},_hoisted_12$M={class:"stack-popover__name"},_hoisted_13$E={key:0,class:"stack-popover__username"},_hoisted_14$C={class:"conn-btn__count"},_hoisted_15$z={class:"stack-popover__list"},_hoisted_16$x={class:"stack-popover__name"},_hoisted_17$q={key:0,class:"stack-popover__username"},_hoisted_18$q={key:0,class:"flex shrink-0 flex-col items-center gap-2 text-xs xl:text-sm"},_hoisted_19$n={key:0,class:"flex items-center gap-1 opacity-80",title:"Quantidade de produtos vinculados"},_hoisted_20$m={class:"font-semibold"},_hoisted_21$j={key:1,class:"flex items-center gap-1 opacity-80",title:"Nota do contato"},_hoisted_22$h={style:{fill:"#facc15"},class:"size-4",viewBox:"0 0 20 20"},_hoisted_23$b={class:"font-semibold"},_hoisted_24$a={key:2,class:"merge-card__check"},_sfc_main$2A={__name:"contactCard",props:{contact:{type:Object,required:!0},mode:{type:String,default:"merge"},viewNumberPermission:{type:Boolean,default:!1},blockedTooltipText:{type:String,default:"Contato bloqueado - nao e possivel iniciar atendimento"},variant:{type:String,default:"default"},size:{type:String,default:"normal"},showBadge:{type:Boolean,default:!1},badgeText:{type:String,default:""},selectable:{type:Boolean,default:!1},selected:{type:Boolean,default:!1},showDetails:{type:Boolean,default:!1},avatarVariant:{type:String,default:"default"},showStartChat:{type:Boolean,default:!1}},emits:["select"],setup(ee,{emit:te}){const ne=ee,ae=te,re=Ce=>(Ce??"").toString().trim().replace(/\D/g,""),oe=Ce=>(Ce??"").toString().trim(),ie=Ce=>{const Fe=re(Ce);return Fe?Fe.length===11?`(${Fe.slice(0,2)}) ${Fe.slice(2,7)}-${Fe.slice(7)}`:Fe.length===10?`(${Fe.slice(0,2)}) ${Fe.slice(2,6)}-${Fe.slice(6)}`:Fe.length===13&&Fe.startsWith("55")?`+55 (${Fe.slice(2,4)}) ${Fe.slice(4,9)}-${Fe.slice(9)}`:Ce:""},le=e$b.computed(()=>ne.mode==="sidebar"),ce=e$b.computed(()=>{var Ce;return!!((Ce=ne.contact)!=null&&Ce.blocked)}),de=e$b.computed(()=>{var Ce;return!!((Ce=ne.contact)!=null&&Ce.telephone)}),ue=e$b.computed(()=>{var Ce;return!!((Ce=ne.contact)!=null&&Ce.instagram_user_name)});e$b.computed(()=>{var Ce,Fe;return((Fe=(Ce=ne.contact)==null?void 0:Ce.tags)==null?void 0:Fe.length)>0});const ve=e$b.computed(()=>{var Ce;return Array.isArray((Ce=ne.contact)==null?void 0:Ce.products)&&ne.contact.products.length>0}),me=e$b.computed(()=>{var Ce,Fe,Ie;return((Ce=ne.contact)==null?void 0:Ce.rating)!==null&&((Fe=ne.contact)==null?void 0:Fe.rating)!==void 0&&((Ie=ne.contact)==null?void 0:Ie.rating)!==""}),ge=e$b.computed(()=>{var Ce;return ie((Ce=ne.contact)==null?void 0:Ce.telephone)}),fe=e$b.computed(()=>{var Ie,Ue;const Ce=oe((Ie=ne.contact)==null?void 0:Ie.name);if(Ce)return Ce;const Fe=oe((Ue=ne.contact)==null?void 0:Ue.telephone);return ne.viewNumberPermission&&Fe?Fe:"Não disponível"}),pe=e$b.computed(()=>{var Ce;return le.value?fe.value:((Ce=ne.contact)==null?void 0:Ce.name)||"Sem nome"});e$b.computed(()=>{var Ie,Ue;const Ce=oe((Ie=ne.contact)==null?void 0:Ie.name),Fe=oe((Ue=ne.contact)==null?void 0:Ue.telephone);return le.value&&ne.viewNumberPermission&&!!Ce&&!!Fe});const _e=e$b.computed(()=>!le.value&&ne.selectable?"button":"div"),be=e$b.computed(()=>Pe.value||Be.value||De.value),ke=e$b.computed(()=>{const Ce=["merge-card","bg-base-300"];return ne.selectable&&Ce.push("merge-card--selectable"),ne.selected&&Ce.push("merge-card--selected"),ne.variant==="primary"&&Ce.push("merge-card--primary"),ne.variant==="danger"&&Ce.push("merge-card--danger"),be.value&&Ce.push("merge-card--popover-open"),Ce}),$e=e$b.computed(()=>{const Ce=["group relative flex items-center gap-3 p-3 text-xs transition-all xl:text-sm"];return ce.value?Ce.push("cursor-not-allowed opacity-60"):Ce.push("cursor-pointer hover:bg-base-100/50 dark:hover:bg-sky-300/20"),Ce}),ye=e$b.computed(()=>le.value?$e.value:ke.value),Ee=e$b.computed(()=>{if(le.value&&ce.value)return ne.blockedTooltipText}),Se=e$b.computed(()=>{if(le.value)return"size-12";const Ce=["merge-card__avatar"];return ne.size==="large"&&Ce.push("merge-card__avatar--lg"),ne.avatarVariant==="brand"?Ce.push("merge-card__avatar--brand"):ne.selected?Ce.push("merge-card__avatar--selected"):ne.variant==="primary"?Ce.push("merge-card__avatar--primary"):ne.variant==="danger"&&Ce.push("merge-card__avatar--danger"),Ce}),Le=e$b.computed(()=>le.value?"flex min-w-0 flex-1 flex-col gap-1":"merge-card__info"),Ve=()=>{!le.value&&ne.selectable&&ae("select",ne.contact)},Te=useWhatsappBindings(()=>ne.contact),ze=useInstagramBindings(()=>ne.contact),Re=useTelegramBindings(()=>ne.contact),Oe=useHasContactBindings(Te,ze,Re),Pe=e$b.ref(!1),Be=e$b.ref(!1),De=e$b.ref(!1),Ne=Ce=>{Ce.stopPropagation(),Pe.value=!Pe.value,Be.value=!1,De.value=!1},Me=Ce=>{Ce.stopPropagation(),Be.value=!Be.value,Pe.value=!1,De.value=!1},we=Ce=>{Ce.stopPropagation(),De.value=!De.value,Pe.value=!1,Be.value=!1};return(Ce,Fe)=>{const Ie=e$b.resolveComponent("Popper");return e$b.openBlock(),e$b.createBlock(e$b.resolveDynamicComponent(_e.value),{class:e$b.normalizeClass(ye.value),title:Ee.value,onClick:Ve,style:e$b.normalizeStyle(`border-radius: ${ne.showStartChat?"0.5rem 0.5rem 0rem 0rem":"0.5rem"};`)},{default:e$b.withCtx(()=>{var Ue,qe;return[e$b.createElementVNode("div",_hoisted_1$2n,[e$b.createVNode(Avatar,{photo:ee.contact.photo,name:ee.contact.name,outcome:le.value?ee.contact.outcome:null,blocked:le.value&&ce.value,size:"fill",class:e$b.normalizeClass(Se.value)},null,8,["photo","name","outcome","blocked","class"])]),e$b.createElementVNode("div",{class:e$b.normalizeClass(Le.value)},[le.value?(e$b.openBlock(),e$b.createElementBlock("span",_hoisted_2$24,e$b.toDisplayString(pe.value),1)):(e$b.openBlock(),e$b.createElementBlock("p",_hoisted_3$1T,e$b.toDisplayString(pe.value),1)),de.value||ue.value||e$b.unref(Oe)?(e$b.openBlock(),e$b.createElementBlock("div",{key:2,class:e$b.normalizeClass(le.value?"contact-inline-meta":"contact-meta-column")},[de.value?(e$b.openBlock(),e$b.createElementBlock("span",_hoisted_4$1H,[(Ue=ee.contact)!=null&&Ue.country&&((qe=ee.contact)!=null&&qe.telephone)?(e$b.openBlock(),e$b.createElementBlock("span",{key:0,class:e$b.normalizeClass([` fi fi-${ee.contact.country.toLowerCase()}`,"text-xs size-[10px]"])},null,2)):e$b.createCommentVNode("",!0),e$b.createTextVNode(" "+e$b.toDisplayString(ge.value),1)])):e$b.createCommentVNode("",!0),le.value&&ue.value?(e$b.openBlock(),e$b.createBlock(InstagramBadge,{key:1,"instagram-user-name":ee.contact.instagram_user_name},null,8,["instagram-user-name"])):e$b.createCommentVNode("",!0),!le.value&&e$b.unref(Oe)?(e$b.openBlock(),e$b.createElementBlock("div",_hoisted_5$1x,[e$b.unref(Te).length?(e$b.openBlock(),e$b.createBlock(Ie,{key:0,placement:"bottom-start",class:"popper-dark",hover:!0},{content:e$b.withCtx(()=>[e$b.createElementVNode("div",{class:"stack-popover",onClick:Fe[0]||(Fe[0]=e$b.withModifiers(()=>{},["stop"]))},[Fe[5]||(Fe[5]=e$b.createElementVNode("p",{class:"stack-popover__title stack-popover__title--wa"}," WhatsApp ",-1)),e$b.createElementVNode("div",_hoisted_7$1i,[(e$b.openBlock(!0),e$b.createElementBlock(e$b.Fragment,null,e$b.renderList(e$b.unref(Te),je=>(e$b.openBlock(),e$b.createElementBlock("div",{key:je.id,class:"stack-popover__item stack-popover__item--wa"},[e$b.createElementVNode("span",_hoisted_8$19,e$b.toDisplayString(je.instanceName),1),je.user_name?(e$b.openBlock(),e$b.createElementBlock("span",_hoisted_9$14,e$b.toDisplayString(je.user_name),1)):e$b.createCommentVNode("",!0)]))),128))])])]),default:e$b.withCtx(()=>[e$b.createElementVNode("button",{type:"button",class:"conn-btn conn-btn--wa",onClick:Ne},[Fe[3]||(Fe[3]=e$b.createElementVNode("svg",{class:"size-6",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 17 17"},[e$b.createElementVNode("path",{d:"M13.601 2.326A7.854 7.854 0 0 0 7.994 0C3.627 0 .068 3.558.064 7.926c0 1.399.366 2.76 1.057 3.965L0 16l4.204-1.102a7.933 7.933 0 0 0 3.79.965h.004c4.368 0 7.926-3.558 7.93-7.93A7.898 7.898 0 0 0 13.6 2.326zM7.994 14.521a6.573 6.573 0 0 1-3.356-.92l-.24-.144-2.494.654.666-2.433-.156-.251a6.56 6.56 0 0 1-1.007-3.505c0-3.626 2.957-6.584 6.591-6.584a6.56 6.56 0 0 1 4.66 1.931 6.557 6.557 0 0 1 1.928 4.66c-.004 3.639-2.961 6.592-6.592 6.592zm3.615-4.934c-.197-.099-1.17-.578-1.353-.646-.182-.065-.315-.099-.445.099-.133.197-.513.646-.627.775-.114.133-.232.148-.43.05-.197-.1-.836-.308-1.592-.985-.59-.525-.985-1.175-1.103-1.372-.114-.198-.011-.304.088-.403.087-.088.197-.232.296-.346.1-.114.133-.198.198-.33.065-.134.034-.248-.015-.347-.05-.099-.445-1.076-.612-1.47-.16-.389-.323-.335-.445-.34-.114-.007-.247-.007-.38-.007a.729.729 0 0 0-.529.247c-.182.198-.691.677-.691 1.654 0 .977.71 1.916.81 2.049.098.133 1.394 2.132 3.383 2.992.47.205.84.326 1.129.418.475.152.904.129 1.246.08.38-.058 1.171-.48 1.338-.943.164-.464.164-.86.114-.943-.049-.084-.182-.133-.38-.232z"})],-1)),Fe[4]||(Fe[4]=e$b.createElementVNode("span",null,"WhatsApp",-1)),e$b.createElementVNode("span",_hoisted_6$1p,e$b.toDisplayString(e$b.unref(Te).length),1)])]),_:1})):e$b.createCommentVNode("",!0),e$b.unref(ze).length?(e$b.openBlock(),e$b.createBlock(Ie,{key:1,placement:"bottom",class:"popper-dark",hover:!0},{content:e$b.withCtx(()=>[e$b.createElementVNode("div",{class:"stack-popover",onClick:Fe[1]||(Fe[1]=e$b.withModifiers(()=>{},["stop"]))},[Fe[8]||(Fe[8]=e$b.createElementVNode("p",{class:"stack-popover__title stack-popover__title--ig"}," Instagram ",-1)),e$b.createElementVNode("div",_hoisted_11$R,[(e$b.openBlock(!0),e$b.createElementBlock(e$b.Fragment,null,e$b.renderList(e$b.unref(ze),je=>(e$b.openBlock(),e$b.createElementBlock("div",{key:je.id,class:"stack-popover__item stack-popover__item--ig"},[e$b.createElementVNode("span",_hoisted_12$M,e$b.toDisplayString(je.instanceName),1),je.user_name?(e$b.openBlock(),e$b.createElementBlock("span",_hoisted_13$E,"@"+e$b.toDisplayString(je.user_name),1)):e$b.createCommentVNode("",!0)]))),128))])])]),default:e$b.withCtx(()=>[e$b.createElementVNode("button",{type:"button",class:"conn-btn conn-btn--ig",onClick:Me},[Fe[6]||(Fe[6]=e$b.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},[e$b.createElementVNode("defs",null,[e$b.createElementVNode("linearGradient",{id:"ig-conn-grad",x1:"0%",y1:"100%",x2:"100%",y2:"0%"},[e$b.createElementVNode("stop",{offset:"0%","stop-color":"#f58529"}),e$b.createElementVNode("stop",{offset:"40%","stop-color":"#dd2a7b"}),e$b.createElementVNode("stop",{offset:"70%","stop-color":"#8134af"}),e$b.createElementVNode("stop",{offset:"100%","stop-color":"#515bd4"})])]),e$b.createElementVNode("path",{fill:"url(#ig-conn-grad)",d:"M8 0C5.829 0 5.556.01 4.703.048 3.85.088 3.269.222 2.76.42a3.917 3.917 0 0 0-1.417.923A3.927 3.927 0 0 0 .42 2.76C.222 3.268.087 3.85.048 4.7.01 5.555 0 5.827 0 8.001c0 2.172.01 2.444.048 3.297.04.852.174 1.433.372 1.942.205.526.478.972.923 1.417.444.445.89.719 1.416.923.51.198 1.09.333 1.942.372C5.555 15.99 5.827 16 8 16s2.444-.01 3.298-.048c.851-.04 1.434-.174 1.943-.372a3.916 3.916 0 0 0 1.416-.923c.445-.445.718-.891.923-1.417.197-.509.332-1.09.372-1.942C15.99 10.445 16 10.173 16 8s-.01-2.445-.048-3.299c-.04-.851-.175-1.433-.372-1.941a3.926 3.926 0 0 0-.923-1.417A3.911 3.911 0 0 0 13.24.42c-.51-.198-1.092-.333-1.943-.372C10.443.01 10.172 0 7.998 0h.003zm-.717 1.442h.718c2.136 0 2.389.007 3.232.046.78.035 1.204.166 1.486.275.373.145.64.319.92.599.28.28.453.546.598.92.11.281.24.705.275 1.485.039.843.047 1.096.047 3.231s-.008 2.389-.047 3.232c-.035.78-.166 1.203-.275 1.485a2.47 2.47 0 0 1-.599.919c-.28.28-.546.453-.92.598-.28.11-.704.24-1.485.276-.843.038-1.096.047-3.232.047s-2.39-.009-3.233-.047c-.78-.036-1.203-.166-1.485-.276a2.478 2.478 0 0 1-.92-.598 2.48 2.48 0 0 1-.6-.92c-.109-.281-.24-.705-.275-1.485-.038-.843-.046-1.096-.046-3.233 0-2.136.008-2.388.046-3.231.036-.78.166-1.204.276-1.486.145-.373.319-.64.599-.92.28-.28.546-.453.92-.598.282-.11.705-.24 1.485-.276.738-.034 1.024-.044 2.515-.045v.002zm4.988 1.328a.96.96 0 1 0 0 1.92.96.96 0 0 0 0-1.92zm-4.27 1.122a4.109 4.109 0 1 0 0 8.217 4.109 4.109 0 0 0 0-8.217zm0 1.441a2.667 2.667 0 1 1 0 5.334 2.667 2.667 0 0 1 0-5.334z"})],-1)),Fe[7]||(Fe[7]=e$b.createElementVNode("span",{class:"conn-btn__ig-label"},"Instagram",-1)),e$b.createElementVNode("span",_hoisted_10$Z,e$b.toDisplayString(e$b.unref(ze).length),1)])]),_:1})):e$b.createCommentVNode("",!0),e$b.unref(Re).length?(e$b.openBlock(),e$b.createBlock(Ie,{key:2,placement:"bottom",class:"popper-dark",hover:!0},{content:e$b.withCtx(()=>[e$b.createElementVNode("div",{class:"stack-popover",onClick:Fe[2]||(Fe[2]=e$b.withModifiers(()=>{},["stop"]))},[Fe[11]||(Fe[11]=e$b.createElementVNode("p",{class:"stack-popover__title stack-popover__title--tg"}," Telegram ",-1)),e$b.createElementVNode("div",_hoisted_15$z,[(e$b.openBlock(!0),e$b.createElementBlock(e$b.Fragment,null,e$b.renderList(e$b.unref(Re),je=>(e$b.openBlock(),e$b.createElementBlock("div",{key:je.id,class:"stack-popover__item stack-popover__item--tg"},[e$b.createElementVNode("span",_hoisted_16$x,e$b.toDisplayString(je.instanceName),1),je.user_name?(e$b.openBlock(),e$b.createElementBlock("span",_hoisted_17$q,"@"+e$b.toDisplayString(je.user_name),1)):e$b.createCommentVNode("",!0)]))),128))])])]),default:e$b.withCtx(()=>[e$b.createElementVNode("button",{type:"button",class:"conn-btn conn-btn--tg",onClick:we},[Fe[9]||(Fe[9]=e$b.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24"},[e$b.createElementVNode("path",{d:"M11.944 0A12 12 0 0 0 0 12a12 12 0 0 0 12 12 12 12 0 0 0 12-12A12 12 0 0 0 12 0a12 12 0 0 0-.056 0zm4.962 7.224c.1-.002.321.023.465.14a.506.506 0 0 1 .171.325c.016.093.036.306.02.472-.18 1.898-.962 6.502-1.36 8.627-.168.9-.499 1.201-.82 1.23-.696.065-1.225-.46-1.9-.902-1.056-.693-1.653-1.124-2.678-1.8-1.185-.78-.417-1.21.258-1.91.177-.184 3.247-2.977 3.307-3.23.007-.032.014-.15-.056-.212s-.174-.041-.249-.024c-.106.024-1.793 1.14-5.061 3.345-.48.33-.913.49-1.302.48-.428-.008-1.252-.241-1.865-.44-.752-.245-1.349-.374-1.297-.789.027-.216.325-.437.893-.663 3.498-1.524 5.83-2.529 6.998-3.014 3.332-1.386 4.025-1.627 4.476-1.635z"})],-1)),Fe[10]||(Fe[10]=e$b.createElementVNode("span",{class:"conn-btn__tg-label"},"Telegram",-1)),e$b.createElementVNode("span",_hoisted_14$C,e$b.toDisplayString(e$b.unref(Re).length),1)])]),_:1})):e$b.createCommentVNode("",!0)])):e$b.createCommentVNode("",!0)],2)):e$b.createCommentVNode("",!0)],2),le.value?(e$b.openBlock(),e$b.createElementBlock("div",_hoisted_18$q,[ve.value?(e$b.openBlock(),e$b.createElementBlock("div",_hoisted_19$n,[Fe[12]||(Fe[12]=e$b.createElementVNode("svg",{class:"size-4 dark:text-primary_alt","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},[e$b.createElementVNode("path",{fill:"currentColor",d:"M4 19v2c0 .5523.44772 1 1 1h14c.5523 0 1-.4477 1-1v-2H4Z"}),e$b.createElementVNode("path",{fill:"currentColor","fill-rule":"evenodd",d:"M9 3c0-.55228.44772-1 1-1h8c.5523 0 1 .44772 1 1v3c0 .55228-.4477 1-1 1h-2v1h2c.5096 0 .9376.38314.9939.88957L19.8951 17H4.10498l.90116-8.11043C5.06241 8.38314 5.49047 8 6.00002 8H12V7h-2c-.55228 0-1-.44772-1-1V3Z","clip-rule":"evenodd"})],-1)),e$b.createElementVNode("span",_hoisted_20$m,e$b.toDisplayString(ee.contact.products.length),1)])):e$b.createCommentVNode("",!0),me.value?(e$b.openBlock(),e$b.createElementBlock("div",_hoisted_21$j,[(e$b.openBlock(),e$b.createElementBlock("svg",_hoisted_22$h,[...Fe[13]||(Fe[13]=[e$b.createElementVNode("path",{d:"M10 15l-5.878 3.09 1.123-6.545L.489 6.91l6.572-.955L10 0l2.939 5.955 6.572.955-4.756 4.635 1.123 6.545z"},null,-1)])])),e$b.createElementVNode("span",_hoisted_23$b,e$b.toDisplayString(ee.contact.rating),1)])):e$b.createCommentVNode("",!0)])):e$b.createCommentVNode("",!0),!le.value&&ee.showBadge&&ee.badgeText?(e$b.openBlock(),e$b.createElementBlock("div",{key:1,class:e$b.normalizeClass(["merge-card__badge",[`merge-card__badge--${ee.variant}`]])},e$b.toDisplayString(ee.badgeText),3)):e$b.createCommentVNode("",!0),!le.value&&ee.selectable&&ee.selected?(e$b.openBlock(),e$b.createElementBlock("div",_hoisted_24$a,[...Fe[14]||(Fe[14]=[e$b.createElementVNode("svg",{class:"size-5",fill:"currentColor",viewBox:"0 0 20 20"},[e$b.createElementVNode("path",{"fill-rule":"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z","clip-rule":"evenodd"})],-1)])])):e$b.createCommentVNode("",!0)]}),_:1},8,["class","title","style"])}}},ContactCard=_export_sfc$1(_sfc_main$2A,[["__scopeId","data-v-6cb70be7"]]),_hoisted_1$2m={class:"contact-msg-wrapper"},_hoisted_2$23={class:"contact-card-shell"},_hoisted_3$1S={key:0,class:"info-chip-count"},_hoisted_4$1G={class:"contact-details"},_hoisted_5$1w={key:0,class:"detail-row"},_hoisted_6$1o={class:"detail-row-content"},_hoisted_7$1h={class:"detail-meta"},_hoisted_8$18={class:"detail-value"},_hoisted_9$13={key:1,class:"info-group"},_hoisted_10$Y={class:"group-header"},_hoisted_11$Q={class:"group-label"},_hoisted_12$L={class:"group-items"},_hoisted_13$D=["title","onClick"],_hoisted_14$B={class:"item-value"},_hoisted_15$y={key:0,class:"copy-icon text-primary",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor"},_hoisted_16$w={key:1,class:"copy-icon",viewBox:"0 0 24 24",fill:"currentColor"},_hoisted_17$p={key:2,class:"info-group"},_hoisted_18$p={class:"group-header"},_hoisted_19$m={class:"group-label"},_hoisted_20$l={class:"group-items"},_hoisted_21$i=["title","onClick"],_hoisted_22$g={class:"item-value"},_hoisted_23$a={key:0,class:"item-type"},_hoisted_24$9={key:1,class:"copy-icon text-primary",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor"},_hoisted_25$8={key:2,class:"copy-icon",viewBox:"0 0 24 24",fill:"currentColor"},_hoisted_26$6={key:3,class:"info-group"},_hoisted_27$6={class:"group-header"},_hoisted_28$6={class:"group-label"},_hoisted_29$5={class:"group-items"},_hoisted_30$5=["title","onClick"],_hoisted_31$4={class:"item-value"},_hoisted_32$3={key:0,class:"item-type"},_hoisted_33$3={key:1,class:"copy-icon text-primary",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor"},_hoisted_34$2={key:2,class:"copy-icon",viewBox:"0 0 24 24",fill:"currentColor"},_hoisted_35$2={key:4,class:"info-group"},_hoisted_36$1={class:"group-header"},_hoisted_37$1={class:"group-label"},_hoisted_38$1={class:"group-items"},_hoisted_39$1=["href"],_hoisted_40$1={class:"item-value text-primary"},_hoisted_41$1={key:5,class:"detail-row"},_hoisted_42$1={class:"detail-row-content"},_hoisted_43$1={class:"detail-value"},_sfc_main$2z={__name:"contactMessageCard",props:{contact:{type:Object,default:()=>({})},showStartChat:{type:Boolean,default:!1}},emits:["start-chat"],setup(ee,{emit:te}){const ne=ee,ae=te,re=e$b.ref(!1),oe=e$b.ref(""),ie=e$b.computed(()=>({title:de.value.name,svg:'<svg class="size-6 text-primary" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"> <path fill-rule="evenodd" d="M12 4a4 4 0 1 0 0 8 4 4 0 0 0 0-8Zm-2 9a4 4 0 0 0-4 4v1a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2v-1a4 4 0 0 0-4-4h-4Z" clip-rule="evenodd"/> </svg>'}));let le=null;function ce(_e){return _e?Array.isArray(_e)?_e:[_e]:[]}const de=e$b.computed(()=>{const _e=ne.contact||{},be=ce(_e.telephones??_e.phones??_e.phone??_e.telephone).filter(Boolean),ke=ce(_e.emails??_e.email).map(Ee=>typeof Ee=="string"?{email:Ee,type:""}:Ee).filter(Ee=>Ee&&Ee.email),$e=ce(_e.urls??_e.url).map(Ee=>typeof Ee=="string"?{url:Ee,type:""}:Ee).filter(Ee=>Ee&&Ee.url),ye=ce(_e.addresses??_e.address).filter(Boolean);return{name:_e.name||"Contato",title:_e.title||"",org:_e.org||_e.organization||"",photo:_e.photo||null,birthday:_e.birthday||"",phones:be,emails:ke,urls:$e,addresses:ye}}),ue=e$b.computed(()=>({name:de.value.name,telephone:de.value.phones[0]||"",photo:de.value.photo}));e$b.computed(()=>{const _e=de.value;return _e.phones.length>0||_e.emails.length>0||_e.urls.length>0||_e.addresses.length>0||!!_e.birthday||!!_e.title}),e$b.computed(()=>{const _e=de.value;return[{key:"phone",label:"Telefone",icon:'<svg class="group-icon" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path d="M7.978 4a2.553 2.553 0 0 0-1.926.877C4.233 6.7 3.699 8.751 4.153 10.814c.44 1.995 1.778 3.893 3.456 5.572 1.68 1.679 3.577 3.018 5.57 3.459 2.062.456 4.115-.073 5.94-1.885a2.556 2.556 0 0 0 .001-3.861l-1.21-1.21a2.689 2.689 0 0 0-3.802 0l-.617.618a.806.806 0 0 1-1.14 0l-1.854-1.855a.807.807 0 0 1 0-1.14l.618-.62a2.692 2.692 0 0 0 0-3.803l-1.21-1.211A2.555 2.555 0 0 0 7.978 4Z"/></svg>',items:_e.phones,type:"phone"},{key:"email",label:"E-mail",icon:'<svg class="group-icon" viewBox="0 0 24 24" fill="currentColor"><path d="M20 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z"/></svg>',items:_e.emails,type:"email"},{key:"addr",label:"Endereço",icon:'<svg class="group-icon" viewBox="0 0 24 24" fill="currentColor"><path d="M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z"/></svg>',items:_e.addresses,type:"address"},{key:"url",label:"Site",icon:'<svg class="group-icon" viewBox="0 0 24 24" fill="currentColor"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-1 17.93c-3.95-.49-7-3.85-7-7.93 0-.62.08-1.21.21-1.79L9 15v1c0 1.1.9 2 2 2v1.93zm6.9-2.54c-.26-.81-1-1.39-1.9-1.39h-1v-3c0-.55-.45-1-1-1H8v-2h2c.55 0 1-.45 1-1V7h2c1.1 0 2-.9 2-2v-.41c2.93 1.19 5 4.06 5 7.41 0 2.08-.8 3.97-2.1 5.39z"/></svg>',items:_e.urls,type:"url"}].filter(be=>be.items.length)});const ve=e$b.computed(()=>{const _e=de.value,be=[];return _e.phones.length&&be.push({key:"phone",count:_e.phones.length,label:"Tel"}),_e.emails.length&&be.push({key:"email",count:_e.emails.length,label:"Email"}),_e.urls.length&&be.push({key:"url",count:_e.urls.length,label:"Site"}),_e.addresses.length&&be.push({key:"addr",count:_e.addresses.length,label:"End."}),_e.birthday&&be.push({key:"bday",count:null,label:"Aniv."}),(_e.title||_e.org)&&be.push({key:"work",count:null,label:_e.org||_e.title}),be}),me=e$b.computed(()=>ne.showStartChat||ve.value.length>0);function ge(_e){return typeof _e=="string"?_e:[_e.street,_e.city,_e.state,_e.zip,_e.country].filter(Boolean).join(", ")}function fe(_e){const be=/^(\d{4})-(\d{2})-(\d{2})/.exec(_e||"");return be?`${be[3]}/${be[2]}/${be[1]}`:_e}async function pe(_e,be){if(_e)try{await navigator.clipboard.writeText(_e),oe.value=be,le&&clearTimeout(le),le=setTimeout(()=>{oe.value=""},1500)}catch(ke){console.error("Falha ao copiar:",ke)}}return(_e,be)=>(e$b.openBlock(),e$b.createElementBlock(e$b.Fragment,null,[e$b.createElementVNode("div",_hoisted_1$2m,[e$b.createElementVNode("div",_hoisted_2$23,[e$b.createVNode(ContactCard,{contact:ue.value,mode:"merge","avatar-variant":"brand","show-start-chat":me.value},null,8,["contact","show-start-chat"])]),ve.value.length?(e$b.openBlock(),e$b.createElementBlock("button",{key:0,class:e$b.normalizeClass(["info-chips-bar",{"info-chips-bar--no-chat":!ee.showStartChat}]),title:"Ver detalhes do contato",onClick:be[0]||(be[0]=e$b.withModifiers(ke=>re.value=!0,["stop"]))},[(e$b.openBlock(!0),e$b.createElementBlock(e$b.Fragment,null,e$b.renderList(ve.value,ke=>(e$b.openBlock(),e$b.createElementBlock("span",{key:ke.key,class:"info-chip"},[e$b.createTextVNode(e$b.toDisplayString(ke.label),1),ke.count!==null&&ke.count>1?(e$b.openBlock(),e$b.createElementBlock("span",_hoisted_3$1S,e$b.toDisplayString(ke.count),1)):e$b.createCommentVNode("",!0)]))),128)),be[4]||(be[4]=e$b.createElementVNode("svg",{class:"info-chips-arrow","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},[e$b.createElementVNode("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M8 4H4m0 0v4m0-4 5 5m7-5h4m0 0v4m0-4-5 5M8 20H4m0 0v-4m0 4 5-5m7 5h4m0 0v-4m0 4-5-5"})],-1))],2)):e$b.createCommentVNode("",!0),ee.showStartChat?(e$b.openBlock(),e$b.createElementBlock("button",{key:1,class:"start-chat-btn",onClick:be[1]||(be[1]=e$b.withModifiers(ke=>ae("start-chat",de.value),["stop"]))},[...be[5]||(be[5]=[e$b.createElementVNode("svg",{class:"start-chat-icon","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"currentColor",viewBox:"0 0 24 24"},[e$b.createElementVNode("path",{"fill-rule":"evenodd",d:"M9 4a4 4 0 1 0 0 8 4 4 0 0 0 0-8Zm-2 9a4 4 0 0 0-4 4v1a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2v-1a4 4 0 0 0-4-4H7Zm8-1a1 1 0 0 1 1-1h1v-1a1 1 0 1 1 2 0v1h1a1 1 0 1 1 0 2h-1v1a1 1 0 1 1-2 0v-1h-1a1 1 0 0 1-1-1Z","clip-rule":"evenodd"})],-1),e$b.createElementVNode("span",null,"Iniciar conversa",-1)])])):e$b.createCommentVNode("",!0)]),(e$b.openBlock(),e$b.createBlock(e$b.Teleport,{to:"body"},[e$b.createVNode(simpleModal,{"is-open":re.value,size:"md:w-1/2 xl:w-2/5",header:ie.value,onClose:be[3]||(be[3]=ke=>re.value=!1)},{body:e$b.withCtx(()=>[e$b.createElementVNode("div",_hoisted_4$1G,[de.value.title||de.value.org?(e$b.openBlock(),e$b.createElementBlock("div",_hoisted_5$1w,[e$b.createVNode(_sfc_main$2K,{class:"detail-icon"}),e$b.createElementVNode("div",_hoisted_6$1o,[e$b.createElementVNode("span",_hoisted_7$1h,e$b.toDisplayString(de.value.org||"Cargo"),1),e$b.createElementVNode("span",_hoisted_8$18,e$b.toDisplayString(de.value.title||de.value.org),1)])])):e$b.createCommentVNode("",!0),de.value.phones.length?(e$b.openBlock(),e$b.createElementBlock("div",_hoisted_9$13,[e$b.createElementVNode("div",_hoisted_10$Y,[be[6]||(be[6]=e$b.createElementVNode("svg",{class:"group-icon","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"currentColor",viewBox:"0 0 24 24"},[e$b.createElementVNode("path",{d:"M7.978 4a2.553 2.553 0 0 0-1.926.877C4.233 6.7 3.699 8.751 4.153 10.814c.44 1.995 1.778 3.893 3.456 5.572 1.68 1.679 3.577 3.018 5.57 3.459 2.062.456 4.115-.073 5.94-1.885a2.556 2.556 0 0 0 .001-3.861l-1.21-1.21a2.689 2.689 0 0 0-3.802 0l-.617.618a.806.806 0 0 1-1.14 0l-1.854-1.855a.807.807 0 0 1 0-1.14l.618-.62a2.692 2.692 0 0 0 0-3.803l-1.21-1.211A2.555 2.555 0 0 0 7.978 4Z"})],-1)),e$b.createElementVNode("span",_hoisted_11$Q,"Telefone"+e$b.toDisplayString(de.value.phones.length>1?"s":""),1)]),e$b.createElementVNode("div",_hoisted_12$L,[(e$b.openBlock(!0),e$b.createElementBlock(e$b.Fragment,null,e$b.renderList(de.value.phones,(ke,$e)=>(e$b.openBlock(),e$b.createElementBlock("button",{key:`phone-${$e}`,class:"group-item",title:oe.value===`phone-${$e}`?"Copiado!":"Clique para copiar",onClick:e$b.withModifiers(ye=>pe(ke,`phone-${$e}`),["stop"])},[e$b.createElementVNode("span",_hoisted_14$B,e$b.toDisplayString(ke),1),oe.value===`phone-${$e}`?(e$b.openBlock(),e$b.createElementBlock("svg",_hoisted_15$y,[...be[7]||(be[7]=[e$b.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M5 13l4 4L19 7"},null,-1)])])):(e$b.openBlock(),e$b.createElementBlock("svg",_hoisted_16$w,[...be[8]||(be[8]=[e$b.createElementVNode("path",{d:"M8 5a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2h-2v2a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2h2V5Zm2 2h4a2 2 0 0 1 2 2v6h2V5h-8v2Zm-4 2v10h8V9H6Z"},null,-1)])]))],8,_hoisted_13$D))),128))])])):e$b.createCommentVNode("",!0),de.value.emails.length?(e$b.openBlock(),e$b.createElementBlock("div",_hoisted_17$p,[e$b.createElementVNode("div",_hoisted_18$p,[be[9]||(be[9]=e$b.createElementVNode("svg",{class:"group-icon",viewBox:"0 0 24 24",fill:"currentColor"},[e$b.createElementVNode("path",{d:"M20 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z"})],-1)),e$b.createElementVNode("span",_hoisted_19$m,"E-mail"+e$b.toDisplayString(de.value.emails.length>1?"s":""),1)]),e$b.createElementVNode("div",_hoisted_20$l,[(e$b.openBlock(!0),e$b.createElementBlock(e$b.Fragment,null,e$b.renderList(de.value.emails,(ke,$e)=>(e$b.openBlock(),e$b.createElementBlock("button",{key:`email-${$e}`,class:"group-item",title:oe.value===`email-${$e}`?"Copiado!":"Clique para copiar",onClick:e$b.withModifiers(ye=>pe(ke.email,`email-${$e}`),["stop"])},[e$b.createElementVNode("span",_hoisted_22$g,e$b.toDisplayString(ke.email),1),ke.type?(e$b.openBlock(),e$b.createElementBlock("span",_hoisted_23$a,e$b.toDisplayString(ke.type),1)):e$b.createCommentVNode("",!0),oe.value===`email-${$e}`?(e$b.openBlock(),e$b.createElementBlock("svg",_hoisted_24$9,[...be[10]||(be[10]=[e$b.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M5 13l4 4L19 7"},null,-1)])])):(e$b.openBlock(),e$b.createElementBlock("svg",_hoisted_25$8,[...be[11]||(be[11]=[e$b.createElementVNode("path",{d:"M8 5a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2h-2v2a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2h2V5Zm2 2h4a2 2 0 0 1 2 2v6h2V5h-8v2Zm-4 2v10h8V9H6Z"},null,-1)])]))],8,_hoisted_21$i))),128))])])):e$b.createCommentVNode("",!0),de.value.addresses.length?(e$b.openBlock(),e$b.createElementBlock("div",_hoisted_26$6,[e$b.createElementVNode("div",_hoisted_27$6,[be[12]||(be[12]=e$b.createElementVNode("svg",{class:"group-icon",viewBox:"0 0 24 24",fill:"currentColor"},[e$b.createElementVNode("path",{d:"M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z"})],-1)),e$b.createElementVNode("span",_hoisted_28$6,"Endereço"+e$b.toDisplayString(de.value.addresses.length>1?"s":""),1)]),e$b.createElementVNode("div",_hoisted_29$5,[(e$b.openBlock(!0),e$b.createElementBlock(e$b.Fragment,null,e$b.renderList(de.value.addresses,(ke,$e)=>(e$b.openBlock(),e$b.createElementBlock("button",{key:`addr-${$e}`,class:"group-item",title:oe.value===`addr-${$e}`?"Copiado!":"Clique para copiar",onClick:e$b.withModifiers(ye=>pe(ge(ke),`addr-${$e}`),["stop"])},[e$b.createElementVNode("span",_hoisted_31$4,e$b.toDisplayString(ge(ke)),1),ke.type?(e$b.openBlock(),e$b.createElementBlock("span",_hoisted_32$3,e$b.toDisplayString(ke.type),1)):e$b.createCommentVNode("",!0),oe.value===`addr-${$e}`?(e$b.openBlock(),e$b.createElementBlock("svg",_hoisted_33$3,[...be[13]||(be[13]=[e$b.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M5 13l4 4L19 7"},null,-1)])])):(e$b.openBlock(),e$b.createElementBlock("svg",_hoisted_34$2,[...be[14]||(be[14]=[e$b.createElementVNode("path",{d:"M8 5a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2h-2v2a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2h2V5Zm2 2h4a2 2 0 0 1 2 2v6h2V5h-8v2Zm-4 2v10h8V9H6Z"},null,-1)])]))],8,_hoisted_30$5))),128))])])):e$b.createCommentVNode("",!0),de.value.urls.length?(e$b.openBlock(),e$b.createElementBlock("div",_hoisted_35$2,[e$b.createElementVNode("div",_hoisted_36$1,[be[15]||(be[15]=e$b.createElementVNode("svg",{class:"group-icon",viewBox:"0 0 24 24",fill:"currentColor"},[e$b.createElementVNode("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-1 17.93c-3.95-.49-7-3.85-7-7.93 0-.62.08-1.21.21-1.79L9 15v1c0 1.1.9 2 2 2v1.93zm6.9-2.54c-.26-.81-1-1.39-1.9-1.39h-1v-3c0-.55-.45-1-1-1H8v-2h2c.55 0 1-.45 1-1V7h2c1.1 0 2-.9 2-2v-.41c2.93 1.19 5 4.06 5 7.41 0 2.08-.8 3.97-2.1 5.39z"})],-1)),e$b.createElementVNode("span",_hoisted_37$1,"Site"+e$b.toDisplayString(de.value.urls.length>1?"s":""),1)]),e$b.createElementVNode("div",_hoisted_38$1,[(e$b.openBlock(!0),e$b.createElementBlock(e$b.Fragment,null,e$b.renderList(de.value.urls,(ke,$e)=>(e$b.openBlock(),e$b.createElementBlock("a",{key:`url-${$e}`,href:ke.url,target:"_blank",rel:"noopener noreferrer",class:"group-item group-item-link"},[e$b.createElementVNode("span",_hoisted_40$1,e$b.toDisplayString(ke.url),1),be[16]||(be[16]=e$b.createElementVNode("svg",{class:"copy-icon",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor"},[e$b.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"})],-1))],8,_hoisted_39$1))),128))])])):e$b.createCommentVNode("",!0),de.value.birthday?(e$b.openBlock(),e$b.createElementBlock("div",_hoisted_41$1,[be[18]||(be[18]=e$b.createElementVNode("svg",{class:"detail-icon","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"currentColor",viewBox:"0 0 24 24"},[e$b.createElementVNode("path",{"fill-rule":"evenodd",d:"M5 5a1 1 0 0 0 1-1 1 1 0 1 1 2 0 1 1 0 0 0 1 1h1a1 1 0 0 0 1-1 1 1 0 1 1 2 0 1 1 0 0 0 1 1h1a1 1 0 0 0 1-1 1 1 0 1 1 2 0 1 1 0 0 0 1 1 2 2 0 0 1 2 2v1a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V7a2 2 0 0 1 2-2ZM3 19v-7a1 1 0 0 1 1-1h16a1 1 0 0 1 1 1v7a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2Zm6.01-6a1 1 0 1 0-2 0 1 1 0 0 0 2 0Zm2 0a1 1 0 1 1 2 0 1 1 0 0 1-2 0Zm6 0a1 1 0 1 0-2 0 1 1 0 0 0 2 0Zm-10 4a1 1 0 1 1 2 0 1 1 0 0 1-2 0Zm6 0a1 1 0 1 0-2 0 1 1 0 0 0 2 0Zm2 0a1 1 0 1 1 2 0 1 1 0 0 1-2 0Z","clip-rule":"evenodd"})],-1)),e$b.createElementVNode("div",_hoisted_42$1,[be[17]||(be[17]=e$b.createElementVNode("span",{class:"detail-meta"},"Aniversário",-1)),e$b.createElementVNode("span",_hoisted_43$1,e$b.toDisplayString(fe(de.value.birthday)),1)])])):e$b.createCommentVNode("",!0)])]),footer:e$b.withCtx(()=>[e$b.createElementVNode("button",{class:"details-close-btn ml-auto bg-base-200/60 hover:bg-base-200",type:"button",onClick:be[2]||(be[2]=ke=>re.value=!1)}," Fechar ")]),_:1},8,["is-open","header"])]))],64))}},ContactMessageCard=_export_sfc$1(_sfc_main$2z,[["__scopeId","data-v-9e8c1301"]]);/*! License details at fancyapps.com/license */const t$9=ee=>typeof ee=="string";/*! License details at fancyapps.com/license */const n$b=ee=>ee&&ee!==null&&ee instanceof Element&&"nodeType"in ee;/*! License details at fancyapps.com/license */const e$a=function(ee){if(!(ee&&ee instanceof Element&&ee.offsetParent))return!1;const te=ee.scrollHeight>ee.clientHeight,ne=window.getComputedStyle(ee).overflowY,ae=ne.indexOf("hidden")!==-1,re=ne.indexOf("visible")!==-1;return te&&!ae&&!re},n$a=function(ee,te=void 0){return!ee||ee===document.body||te&&ee===te?null:e$a(ee)?ee:n$a(ee.parentElement,te)};/*! License details at fancyapps.com/license */const e$9=function(ee){var te=new DOMParser().parseFromString(ee,"text/html").body;if(te.childElementCount>1){for(var ne=document.createElement("div");te.firstChild;)ne.appendChild(te.firstChild);return ne}let ae=te.firstChild;return!ae||ae instanceof HTMLElement?ae:((ne=document.createElement("div")).appendChild(ae),ne)};/*! License details at fancyapps.com/license */const t$8=function(ee=0,te=0,ne=0){return Math.max(Math.min(te,ne),ee)};/*! License details at fancyapps.com/license */const t$7=ee=>typeof ee=="object"&&ee!==null&&ee.constructor===Object&&Object.prototype.toString.call(ee)==="[object Object]";/*! License details at fancyapps.com/license */function e$8(ee){return t$7(ee)||Array.isArray(ee)}function n$9(ee,te){const ne=Object.keys(ee),ae=Object.keys(te);return ne.length===ae.length&&ne.every(re=>{const oe=ee[re],ie=te[re];return typeof oe=="function"?`${oe}`==`${ie}`:e$8(oe)&&e$8(ie)?n$9(oe,ie):oe===ie})}/*! License details at fancyapps.com/license */const e$7=function(ee){for(const te of s$c)te.getState()===i$a.Running&&te.tick(a$9?ee-a$9:0);a$9=ee,u$7=window.requestAnimationFrame(e$7)};var i$a,o$9,r$7;(function(ee){ee[ee.Initializing=0]="Initializing",ee[ee.Running=1]="Running",ee[ee.Paused=2]="Paused",ee[ee.Completed=3]="Completed",ee[ee.Destroyed=4]="Destroyed"})(i$a||(i$a={})),function(ee){ee[ee.Spring=0]="Spring",ee[ee.Ease=1]="Ease"}(o$9||(o$9={})),function(ee){ee[ee.Loop=0]="Loop",ee[ee.Reverse=1]="Reverse"}(r$7||(r$7={}));const s$c=new Set;let u$7=null,a$9=0;function c$5(){let ee=i$a.Initializing,te=o$9.Ease,ne=0,ae=0,re=c$5.Easings.Linear,oe=500,ie=0,le=0,ce=0,de=0,ue=1/0,ve=.01,me=.01,ge=!1,fe={},pe=null,_e={},be={},ke={},$e=0,ye=0,Ee=r$7.Loop,Se=c$5.Easings.Linear;const Le=new Map;function Ve(Pe,...Be){for(const De of Le.get(Pe)||[])De(...Be)}function Te(Pe){return ae=0,Pe?pe=setTimeout(()=>{ze()},Pe):ze(),Oe}function ze(){ee=i$a.Running,Ve("start",_e,be)}function Re(){if(ee=i$a.Completed,ke={},Ve("end",_e),ee===i$a.Completed)if(ne<$e){if(ne++,Ee===r$7.Reverse){const Pe=Object.assign({},fe);fe=Object.assign({},be),be=Pe}Te(ye)}else ne=0;return Oe}const Oe={getState:function(){return ee},easing:function(Pe){return re=Pe,te=o$9.Ease,ke={},Oe},duration:function(Pe){return oe=Pe,Oe},spring:function(Pe={}){te=o$9.Spring;const Be={velocity:0,mass:1,tension:170,friction:26,restDelta:.1,restSpeed:.1,maxSpeed:1/0,clamp:!0},{velocity:De,mass:Ne,tension:Me,friction:we,restDelta:Ce,restSpeed:Fe,maxSpeed:Ie,clamp:Ue}=Object.assign(Object.assign({},Be),Pe);return ie=De,le=Ne,ce=Me,de=we,me=Ce,ve=Fe,ue=Ie,ge=Ue,ke={},Oe},isRunning:function(){return ee===i$a.Running},isSpring:function(){return te===o$9.Spring},from:function(Pe){return _e=Object.assign({},Pe),Oe},to:function(Pe){return be=Pe,Oe},repeat:function(Pe,Be=0,De=r$7.Loop,Ne){return $e=Pe,ye=Be,Ee=De,Se=Ne||re,Oe},on:function(Pe,Be){var De,Ne;return De=Pe,Ne=Be,Le.set(De,[...Le.get(De)||[],Ne]),Oe},off:function(Pe,Be){var De,Ne;return De=Pe,Ne=Be,Le.has(De)&&Le.set(De,Le.get(De).filter(Me=>Me!==Ne)),Oe},start:function(Pe){return n$9(_e,be)||(ee=i$a.Initializing,fe=Object.assign({},_e),s$c.add(this),u$7||(u$7=window.requestAnimationFrame(e$7)),Te(Pe)),Oe},pause:function(){return pe&&(clearTimeout(pe),pe=null),ee===i$a.Running&&(ee=i$a.Paused,Ve("pause",_e)),Oe},end:Re,tick:function(Pe){Pe>50&&(Pe=50),ae+=Pe;let Be=0,De=!1;if(ee!==i$a.Running)return Oe;if(te===o$9.Ease){Be=t$8(0,ae/oe,1),De=Be===1;const Me=Ee===r$7.Reverse?Se:re;for(const we in _e)_e[we]=fe[we]+(be[we]-fe[we])*Me(Be)}if(te===o$9.Spring){const Me=.001*Pe;let we=0;for(const Ce in _e){const Fe=be[Ce];let Ie=_e[Ce];if(typeof Fe!="number"||isNaN(Fe)||typeof Ie!="number"||isNaN(Ie))continue;if(Math.abs(Fe-Ie)<=me){_e[Ce]=Fe,ke[Ce]=0;continue}ke[Ce]||(typeof ie=="object"&&typeof ie[Ce]=="number"?ke[Ce]=ie[Ce]:ke[Ce]=typeof ie=="number"?ie:0);let Ue=ke[Ce];Ue=t$8(-1*Math.abs(ue),Ue,Math.abs(ue));const qe=Ue*le*de;Ue+=((Ie>Fe?-1:1)*(Math.abs(Fe-Ie)*ce)-qe)/le*Me,Ie+=Ue*Me;const je=_e[Ce]>Fe?Ie<Fe:Ie>Fe;let We=Math.abs(Ue)<ve&&Math.abs(Fe-Ie)<=me;ge&&je&&(We=!0),We?(Ie=Fe,Ue=0):we++,_e[Ce]=Ie,ke[Ce]=Ue}De=!we}const Ne=Object.assign({},be);return Ve("step",_e,fe,be,Be),De&&ee===i$a.Running&&n$9(be,Ne)&&(ee=i$a.Completed,Re()),Oe},getStartValues:function(){return fe},getCurrentValues:function(){return _e},getCurrentVelocities:function(){return ke},getEndValues:function(){return be},destroy:function(){ee=i$a.Destroyed,pe&&(clearTimeout(pe),pe=null),fe=_e=be={},s$c.delete(this)}};return Oe}c$5.destroy=()=>{for(const ee of s$c)ee.destroy();u$7&&(cancelAnimationFrame(u$7),u$7=null)},c$5.Easings={Linear:function(ee){return ee},EaseIn:function(ee){return ee===0?0:Math.pow(2,10*ee-10)},EaseOut:function(ee){return ee===1?1:1-Math.pow(2,-10*ee)},EaseInOut:function(ee){return ee===0?0:ee===1?1:ee<.5?Math.pow(2,20*ee-10)/2:(2-Math.pow(2,-20*ee+10))/2}};/*! License details at fancyapps.com/license */function e$6(ee){return typeof TouchEvent<"u"&&ee instanceof TouchEvent}function t$6(ee,te){const ne=[],ae=e$6(ee)?ee[te]:ee instanceof MouseEvent&&(te==="changedTouches"||ee.type!=="mouseup")?[ee]:[];for(const re of ae)ne.push({x:re.clientX,y:re.clientY,ts:Date.now()});return ne}function n$8(ee){return t$6(ee,"touches")}function o$8(ee){return t$6(ee,"targetTouches")}function s$b(ee){return t$6(ee,"changedTouches")}function i$9(ee){const te=ee[0],ne=ee[1]||te;return{x:(te.x+ne.x)/2,y:(te.y+ne.y)/2,ts:ne.ts}}function c$4(ee){const te=ee[0],ne=ee[1]||ee[0];return te&&ne?-1*Math.sqrt((ne.x-te.x)*(ne.x-te.x)+(ne.y-te.y)*(ne.y-te.y)):0}const r$6=ee=>{ee.cancelable&&ee.preventDefault()},a$8={passive:!1},u$6={panThreshold:5,swipeThreshold:3,ignore:["textarea","input","select","[contenteditable]","[data-selectable]","[data-draggable]"]};let l$8=!1,d$4=!0;const f$4=(ee,te)=>{let ne,ae,re,oe=Object.assign(Object.assign({},u$6),te),ie=[],le=[],ce=[],de=!1,ue=!1,ve=!1,me=!1,ge=0,fe=0,pe=0,_e=0,be=0,ke=0,$e=0,ye=0,Ee=0,Se=[],Le=0,Ve=0;const Te=new Map;function ze(Ce){const Fe=c$4(le),Ie=c$4(ce),Ue=Fe&&Ie?Fe/Ie:0,qe=Math.abs($e)>Math.abs(ye)?$e:ye,je={srcEvent:ne,isPanRecognized:de,isSwipeRecognized:ue,firstTouch:ie,previousTouch:ce,currentTouch:le,deltaX:pe,deltaY:_e,offsetX:be,offsetY:ke,velocityX:$e,velocityY:ye,velocity:qe,angle:Ee,axis:re,scale:Ue,center:ae};for(const We of Te.get(Ce)||[])We(je)}function Re(Ce){const Fe=Date.now();if(Se=Se.filter(Ie=>!Ie.ts||Ie.ts>Fe-100),Ce&&Se.push(Ce),$e=0,ye=0,Se.length>3){const Ie=Se[0],Ue=Se[Se.length-1];if(Ie&&Ue){const qe=Ue.x-Ie.x,je=Ue.y-Ie.y,We=Ie.ts&&Ue.ts?Ue.ts-Ie.ts:0;We>0&&($e=Math.abs(qe)>3?qe/(We/30):0,ye=Math.abs(je)>3?je/(We/30):0)}}}function Oe(Ce){if(typeof MouseEvent<"u"&&Ce instanceof MouseEvent){if(l$8)return}else l$8=!0;const Fe=Ce.composedPath()[0],Ie=oe.ignore.join(",");if(Fe.matches(Ie)||Fe.closest(Ie))return;if(typeof MouseEvent<"u"&&Ce instanceof MouseEvent){if(!Ce.buttons||Ce.button!==0)return;r$6(Ce)}Ce instanceof MouseEvent&&(window.addEventListener("mousemove",Pe),window.addEventListener("mouseup",Be)),window.addEventListener("blur",De),ne=Ce,le=o$8(Ce),ie=[...le],ce=[],fe=le.length,ae=i$9(le),fe===1&&(de=!1,ue=!1,ve=!1),fe&&Re(i$9(le));const Ue=Date.now(),qe=Ue-(ge||Ue);me=qe>0&&qe<=250&&fe===1,ge=Ue,clearTimeout(Le),ze("start")}function Pe(Ce){var Fe;if(!ie.length||Ce.defaultPrevented)return;ne=Ce,ce=[...le],le=n$8(Ce);const Ie=i$9(ce),Ue=i$9(n$8(Ce));if(Re(Ue),fe=le.length,ae=Ue,ce.length===le.length?(pe=Ue.x-Ie.x,_e=Ue.y-Ie.y):(pe=0,_e=0),ie.length){const qe=i$9(ie);be=Ue.x-qe.x,ke=Ue.y-qe.y}if(le.length>1){const qe=c$4(le),je=c$4(ce);Math.abs(qe-je)>=.1&&(ve=!0,ze("pinch"))}de||(de=Math.abs(be)>oe.panThreshold||Math.abs(ke)>oe.panThreshold,de&&(d$4=!1,clearTimeout(Ve),Ve=0,Ee=Math.abs(180*Math.atan2(ke,be)/Math.PI),re=Ee>45&&Ee<135?"y":"x",ie=[...le],ce=[...le],be=0,ke=0,pe=0,_e=0,(Fe=window.getSelection())===null||Fe===void 0||Fe.removeAllRanges(),ze("panstart"))),de&&(pe||_e)&&ze("pan"),ze("move")}function Be(Ce){if(ne=Ce,!ie.length)return;const Fe=o$8(Ce),Ie=s$b(Ce);if(fe=Fe.length,ae=i$9(Ie),Ie.length&&Re(i$9(Ie)),ce=[...le],le=[...Fe],ie=[...Fe],fe>0)ze("end"),de=!1,ue=!1,Se=[];else{const Ue=oe.swipeThreshold;(Math.abs($e)>Ue||Math.abs(ye)>Ue)&&(ue=!0),de&&ze("panend"),ue&&ze("swipe"),de||ue||ve||(ze("tap"),me?ze("doubleTap"):Le=setTimeout(function(){ze("singleTap")},250)),ze("end"),Ne()}}function De(){clearTimeout(Le),Ne(),de&&ze("panend"),ze("end")}function Ne(){l$8=!1,de=!1,ue=!1,me=!1,fe=0,Se=[],le=[],ce=[],ie=[],pe=0,_e=0,be=0,ke=0,$e=0,ye=0,Ee=0,re=void 0,window.removeEventListener("mousemove",Pe),window.removeEventListener("mouseup",Be),window.removeEventListener("blur",De),d$4||Ve||(Ve=setTimeout(()=>{d$4=!0,Ve=0},100))}function Me(Ce){const Fe=Ce.target;l$8=!1,Fe&&!Ce.defaultPrevented&&(d$4||(r$6(Ce),Ce.stopPropagation()))}const we={init:function(){return ee&&(ee.addEventListener("click",Me,a$8),ee.addEventListener("mousedown",Oe,a$8),ee.addEventListener("touchstart",Oe,a$8),ee.addEventListener("touchmove",Pe,a$8),ee.addEventListener("touchend",Be),ee.addEventListener("touchcancel",Be)),we},on:function(Ce,Fe){return function(Ie,Ue){Te.set(Ie,[...Te.get(Ie)||[],Ue])}(Ce,Fe),we},off:function(Ce,Fe){return Te.has(Ce)&&Te.set(Ce,Te.get(Ce).filter(Ie=>Ie!==Fe)),we},isPointerDown:()=>fe>0,destroy:function(){clearTimeout(Le),clearTimeout(Ve),Ve=0,ee&&(ee.removeEventListener("click",Me,a$8),ee.removeEventListener("mousedown",Oe,a$8),ee.removeEventListener("touchstart",Oe,a$8),ee.removeEventListener("touchmove",Pe,a$8),ee.removeEventListener("touchend",Be),ee.removeEventListener("touchcancel",Be)),ee=null,Ne()}};return we};f$4.isClickAllowed=()=>d$4;/*! License details at fancyapps.com/license */const e$5={IMAGE_ERROR:"This image couldn't be loaded. <br /> Please try again later.",MOVE_UP:"Move up",MOVE_DOWN:"Move down",MOVE_LEFT:"Move left",MOVE_RIGHT:"Move right",ZOOM_IN:"Zoom in",ZOOM_OUT:"Zoom out",TOGGLE_FULL:"Toggle zoom level",TOGGLE_1TO1:"Toggle zoom level",ITERATE_ZOOM:"Toggle zoom level",ROTATE_CCW:"Rotate counterclockwise",ROTATE_CW:"Rotate clockwise",FLIP_X:"Flip horizontally",FLIP_Y:"Flip vertically",RESET:"Reset",TOGGLE_FS:"Toggle fullscreen"};/*! License details at fancyapps.com/license */const s$a=(ee,te="")=>{ee&&ee.classList&&te.split(" ").forEach(ne=>{ne&&ee.classList.add(ne)})};/*! License details at fancyapps.com/license */const s$9=(ee,te="")=>{ee&&ee.classList&&te.split(" ").forEach(ne=>{ne&&ee.classList.remove(ne)})};/*! License details at fancyapps.com/license */const s$8=(ee,te="",ne)=>{ee&&ee.classList&&te.split(" ").forEach(ae=>{ae&&ee.classList.toggle(ae,ne||!1)})};/*! License details at fancyapps.com/license */const h$6=ee=>{ee.cancelable&&ee.preventDefault()},m$4=(ee,te=1e4)=>(ee=parseFloat(ee+"")||0,Math.round((ee+Number.EPSILON)*te)/te),p$3=ee=>ee instanceof HTMLImageElement;var v$6,b$4;(function(ee){ee.Reset="reset",ee.Zoom="zoom",ee.ZoomIn="zoomIn",ee.ZoomOut="zoomOut",ee.ZoomTo="zoomTo",ee.ToggleCover="toggleCover",ee.ToggleFull="toggleFull",ee.ToggleMax="toggleMax",ee.IterateZoom="iterateZoom",ee.Pan="pan",ee.Swipe="swipe",ee.Move="move",ee.MoveLeft="moveLeft",ee.MoveRight="moveRight",ee.MoveUp="moveUp",ee.MoveDown="moveDown",ee.RotateCCW="rotateCCW",ee.RotateCW="rotateCW",ee.FlipX="flipX",ee.FlipY="flipY",ee.ToggleFS="toggleFS"})(v$6||(v$6={})),function(ee){ee.Cover="cover",ee.Full="full",ee.Max="max"}(b$4||(b$4={}));const y$5={x:0,y:0,scale:1,angle:0,flipX:1,flipY:1},x$2={bounds:!0,classes:{container:"f-panzoom",wrapper:"f-panzoom__wrapper",content:"f-panzoom__content",viewport:"f-panzoom__viewport"},clickAction:v$6.ToggleFull,dblClickAction:!1,gestures:{},height:"auto",l10n:e$5,maxScale:4,minScale:1,mouseMoveFactor:1,panMode:"drag",protected:!1,singleClickAction:!1,spinnerTpl:'<div class="f-spinner"></div>',wheelAction:v$6.Zoom,width:"auto"};let w$6,M$2=0,k$4=0,j$3=0;const E$4=(ee,te={},ne={})=>{let ae,re,oe,ie,le,ce,de,ue,ve=0,me=Object.assign(Object.assign({},x$2),te),ge={},fe=Object.assign({},y$5),pe=Object.assign({},y$5);const _e=[];function be(Ye){let Je=me[Ye];return Je&&typeof Je=="function"?Je(tt):Je}function ke(){return ee&&ee.parentElement&&ae&&ve===3}const $e=new Map;function ye(Ye,...Je){const nt=[...$e.get(Ye)||[]];me.on&&nt.push(me.on[Ye]);for(const ut of nt)ut&&ut instanceof Function&&ut(tt,...Je);Ye!=="*"&&ye("*",Ye,...Je)}function Ee(Ye){if(!ke())return;const Je=Ye.target;if(n$a(Je))return;const nt=Date.now(),ut=[-Ye.deltaX||0,-Ye.deltaY||0,-Ye.detail||0].reduce(function(Mt,Dt){return Math.abs(Dt)>Math.abs(Mt)?Dt:Mt}),it=t$8(-1,ut,1);ye("wheel",Ye,it);const st=be("wheelAction");if(!st||Ye.defaultPrevented)return;const $t=pe.scale;let kt=$t*(it>0?1.5:.5);if(st===v$6.Zoom){const Mt=Math.abs(Ye.deltaY)<100&&Math.abs(Ye.deltaX)<100;if(nt-k$4<(Mt?200:45))return void h$6(Ye);k$4=nt;const Dt=Me(),Lt=Ie();if(m$4(kt)<m$4(Dt)&&m$4($t)<=m$4(Dt)?(j$3+=Math.abs(it),kt=Dt):m$4(kt)>m$4(Lt)&&m$4($t)>=m$4(Lt)?(j$3+=Math.abs(it),kt=Lt):(j$3=0,kt=t$8(Dt,kt,Lt)),j$3>7)return}switch(h$6(Ye),st){case v$6.Pan:We(st,{srcEvent:Ye,deltaX:2*-Ye.deltaX,deltaY:2*-Ye.deltaY});break;case v$6.Zoom:We(v$6.ZoomTo,{srcEvent:Ye,scale:kt,center:{x:Ye.clientX,y:Ye.clientY}});break;default:We(st,{srcEvent:Ye})}}function Se(Ye){var Je,nt;const ut=Ye.composedPath()[0];if(!f$4.isClickAllowed()||!n$b(ut)||Ye.defaultPrevented||!(ee!=null&&ee.contains(ut))||ut.hasAttribute("disabled")||ut.hasAttribute("aria-disabled"))return;const it=ut.closest("[data-panzoom-action]"),st=(Je=it==null?void 0:it.dataset)===null||Je===void 0?void 0:Je.panzoomAction,$t=((nt=it==null?void 0:it.dataset)===null||nt===void 0?void 0:nt.panzoomValue)||"";if(st){switch(h$6(Ye),st){case v$6.ZoomTo:case v$6.ZoomIn:case v$6.ZoomOut:We(st,{scale:parseFloat($t||"")||void 0});break;case v$6.MoveLeft:case v$6.MoveRight:We(st,{deltaX:parseFloat($t||"")||void 0});break;case v$6.MoveUp:case v$6.MoveDown:We(st,{deltaY:parseFloat($t||"")||void 0});break;case v$6.ToggleFS:ct();break;default:We(st)}return}if(!(ae!=null&&ae.contains(ut)))return;const kt={srcEvent:Ye};if(We(be("clickAction"),kt),be("dblClickAction")){const Mt=Date.now(),Dt=Mt-(M$2||Mt);M$2=Mt,Dt>0&&Dt<=250?(w$6&&(clearTimeout(w$6),w$6=void 0),We(be("dblClickAction"),kt)):w$6=setTimeout(()=>{We(be("singleClickAction"),kt)},250)}}function Le(Ye){if(ue=Ye,!ke()||!Be()||fe.scale<=1||pe.scale<=1||((ae==null?void 0:ae.dataset.animationName)||"").indexOf("zoom")>-1)return;const Je=De(pe.scale);if(!Je)return;const{x:nt,y:ut}=Je;We(v$6.Pan,{deltaX:nt-pe.x,deltaY:ut-pe.y})}function Ve(){var Ye;ee&&(s$9(ee,"is-loading"),(Ye=ee.querySelector(".f-spinner"))===null||Ye===void 0||Ye.remove())}function Te(){if(!ee||!re)return;if(Ve(),p$3(re)&&(!re.complete||!re.naturalWidth))return ve=2,ae==null||ae.classList.add("has-error"),void ye("error");ye("loaded");const{width:Ye,height:Je}=Oe();p$3(re)&&(re.setAttribute("width",Ye+""),re.setAttribute("height",Je+"")),ae&&(s$9(ae,"has-error"),p$3(re)&&(ae.setAttribute("width",Ye+""),ae.setAttribute("height",Je+""),ae.style.aspectRatio=`${Ye/Je||""}`)),ce=c$5().on("start",(ut,it)=>{it.angle!==void 0&&(it.angle=90*Math.round(it.angle/90)),it.flipX!==void 0&&(it.flipX=it.flipX>0?1:-1),it.flipY!==void 0&&(it.flipY=it.flipY>0?1:-1),pe=Object.assign(Object.assign({},y$5),it),je(),ye("animationStart")}).on("pause",ut=>{pe=Object.assign(Object.assign({},y$5),ut)}).on("step",ut=>{if(!ke())return void(ce==null||ce.end());if(fe=Object.assign(Object.assign({},y$5),ut),Be()||!be("bounds")||Ze()||pe.scale>fe.scale||pe.scale<we())return void Ge();const it=Ue(pe.scale);let st=!1,$t=!1,kt=!1,Mt=!1;fe.x<it.x[0]&&(st=!0),fe.x>it.x[1]&&($t=!0),fe.y<it.y[0]&&(Mt=!0),fe.y>it.y[1]&&(kt=!0);let Dt=!1,Lt=!1,Gt=!1,Rt=!1;pe.x<it.x[0]&&(Dt=!0),pe.x>it.x[1]&&(Lt=!0),pe.y<it.y[0]&&(Rt=!0),pe.y>it.y[1]&&(Gt=!0);let Xt=!1;($t&&Lt||st&&Dt)&&(pe.x=t$8(it.x[0],pe.x,it.x[1]),Xt=!0),(kt&&Gt||Mt&&Rt)&&(pe.y=t$8(it.y[0],pe.y,it.y[1]),Xt=!0),Xt&&ce&&ce.spring({tension:94,friction:17,maxSpeed:555*pe.scale,restDelta:.1,restSpeed:.1,velocity:ce.getCurrentVelocities()}).from(fe).to(pe).start(),Ge()}).on("end",()=>{le!=null&&le.isPointerDown()||qe(),ce!=null&&ce.isRunning()||(je(),ye("animationEnd"))}),function(){const ut=be("gestures");if(!ut||!ie||!re)return;let it=!1;le=f$4(ie,ut).on("start",st=>{if(!be("gestures")||!ce||!ke()||Be())return;const $t=st.srcEvent;(fe.scale>1||st.currentTouch.length>1)&&($t==null||$t.stopPropagation(),ce.pause(),it=!0),st.currentTouch.length===1&&ye("touchStart")}).on("move",st=>{var $t;it&&(pe.scale!==1||st.currentTouch.length>1)&&(h$6(st.srcEvent),($t=st.srcEvent)===null||$t===void 0||$t.stopPropagation())}).on("pan",st=>{if(!it)return;const $t=st.srcEvent;(pe.scale!==1||st.currentTouch.length>1)&&(h$6($t),We(v$6.Pan,st))}).on("swipe",st=>{it&&pe.scale>1&&We(v$6.Swipe,st)}).on("tap",st=>{ye("click",st)}).on("singleTap",st=>{ye("singleClick",st)}).on("doubleTap",st=>{ye("dblClick",st)}).on("pinch",st=>{it&&(st.scale>we()?We(v$6.ZoomIn,st):st.scale<we()?We(v$6.ZoomOut,st):We(v$6.Pan,st))}).on("end",st=>{it&&(st.currentTouch.length?(st.srcEvent.stopPropagation(),h$6(st.srcEvent),ce==null||ce.end()):(it=!1,je(),qe(),ye("touchEnd")))}).init()}(),ie&&(ie.addEventListener("wheel",Ee,{passive:!1}),_e.push(()=>{ie==null||ie.removeEventListener("wheel",Ee,{passive:!1})})),ee==null||ee.addEventListener("click",Se),document==null||document.addEventListener("mousemove",Le),_e.push(()=>{ee==null||ee.removeEventListener("click",Se),document==null||document.removeEventListener("mousemove",Le)});const nt=ze();fe=Object.assign({},nt),pe=Object.assign({},nt),ve=3,Ge(),je(),ye("ready"),requestAnimationFrame(()=>{Ve(),ie&&(ie.style.visibility="")})}function ze(){const Ye=Object.assign({},be("startPos")||{});let Je=Ye.scale,nt=1;nt=typeof Je=="string"?Ne(Je):typeof Je=="number"?Je:we();const ut=Object.assign(Object.assign(Object.assign({},y$5),Ye),{scale:nt}),it=Be()?De(nt):void 0;if(it){const{x:st,y:$t}=it;ut.x=st,ut.y=$t}return ut}function Re(){const Ye={top:0,left:0,width:0,height:0};if(ae){const Je=ae.getBoundingClientRect();pe.angle%180==90?(Ye.top=Je.top+.5*Je.height-.5*Je.width,Ye.left=Je.left+.5*Je.width-.5*Je.height,Ye.width=Je.height,Ye.height=Je.width):(Ye.top=Je.top,Ye.left=Je.left,Ye.width=Je.width,Ye.height=Je.height)}return Ye}function Oe(){let Ye=be("width"),Je=be("height");if(re&&Ye==="auto"){const nt=re.getAttribute("width");Ye=nt?parseFloat(nt+""):re.dataset.width!==void 0?parseFloat(re.dataset.width+""):p$3(ie)?ie.naturalWidth:p$3(re)?re.naturalWidth:(ae==null?void 0:ae.getBoundingClientRect().width)||0}else Ye=t$9(Ye)?parseFloat(Ye):Ye;if(re&&Je==="auto"){const nt=re.getAttribute("height");Je=nt?parseFloat(nt+""):re.dataset.height!==void 0?parseFloat(re.dataset.height+""):p$3(ie)?ie.naturalHeight:p$3(re)?re.naturalHeight:(ae==null?void 0:ae.getBoundingClientRect().height)||0}else Je=t$9(Je)?parseFloat(Je):Je;return{width:Ye,height:Je}}function Pe(){const Ye=Re();return{width:Ye.width,height:Ye.height}}function Be(){return be("panMode")==="mousemove"&&matchMedia("(hover: hover)").matches}function De(Ye){const Je=ue||be("event"),nt=ae==null?void 0:ae.getBoundingClientRect();if(!Je||!nt||Ye<=1)return{x:0,y:0};const ut=(Je.clientX||0)-nt.left,it=(Je.clientY||0)-nt.top,{width:st,height:$t}=Pe(),kt=Ue(Ye);if(Ye>1){const Rt=be("mouseMoveFactor");Rt>1&&(Ye*=Rt)}let Mt=st*Ye,Dt=$t*Ye,Lt=.5*(Mt-st)-ut/st*100/100*(Mt-st),Gt=.5*(Dt-$t)-it/$t*100/100*(Dt-$t);return Lt=t$8(kt.x[0],Lt,kt.x[1]),Gt=t$8(kt.y[0],Gt,kt.y[1]),{x:Lt,y:Gt}}function Ne(Ye="base"){if(!ee)return 1;const Je=ee.getBoundingClientRect(),nt=Re(),{width:ut,height:it}=Oe(),st=Lt=>{if(typeof Lt=="number")return Lt;switch(Lt){case"min":case"base":return 1;case"cover":return Math.max(Je.height/nt.height,Je.width/nt.width)||1;case"full":case"max":{const Gt=pe.angle%180==90?it:ut;return Gt&&nt.width?Gt/nt.width:1}}},$t=be("minScale"),kt=be("maxScale"),Mt=Math.min(st("full"),st($t)),Dt=typeof kt=="number"?st("full")*kt:Math.min(st("full"),st(kt));switch(Ye){case"min":return Mt;case"base":return t$8(Mt,1,Dt);case"cover":return st("cover");case"full":return Math.min(Dt,st("full"));case"max":return Dt}}function Me(){return Ne("min")}function we(){return Ne("base")}function Ce(){return Ne("cover")}function Fe(){return Ne("full")}function Ie(){return Ne("max")}function Ue(Ye){const Je={x:[0,0],y:[0,0]},nt=ee==null?void 0:ee.getBoundingClientRect();if(!nt)return Je;const ut=Re(),it=nt.width,st=nt.height;let $t=ut.width,kt=ut.height,Mt=Ye=Ye===void 0?pe.scale:Ye,Dt=Ye;if(Be()&&Ye>1){const Lt=be("mouseMoveFactor");Lt>1&&($t*Ye>it+.01&&(Mt*=Lt),kt*Ye>st+.01&&(Dt*=Lt))}return $t*=Mt,kt*=Dt,Ye>1&&($t>it&&(Je.x[0]=.5*(it-$t),Je.x[1]=.5*($t-it)),Je.x[0]-=.5*(ut.left-nt.left),Je.x[1]-=.5*(ut.left-nt.left),Je.x[0]-=.5*(ut.left+ut.width-nt.right),Je.x[1]-=.5*(ut.left+ut.width-nt.right),kt>st&&(Je.y[0]=.5*(st-kt),Je.y[1]=.5*(kt-st)),Je.y[0]-=.5*(ut.top-nt.top),Je.y[1]-=.5*(ut.top-nt.top),Je.y[0]-=.5*(ut.top+ut.height-nt.bottom),Je.y[1]-=.5*(ut.top+ut.height-nt.bottom)),Je}function qe(){if(!ke()||!be("bounds")||!ce)return;const Ye=Me(),Je=Ie(),nt=t$8(Ye,pe.scale,Je);if(pe.scale<Ye-.01||pe.scale>Je+.01)return void We(v$6.ZoomTo,{scale:nt});if(ce.isRunning()||Ze())return;const ut=Ue(nt);pe.x<ut.x[0]||pe.x>ut.x[1]||pe.y<ut.y[0]||pe.y>ut.y[1]?(pe.x=t$8(ut.x[0],pe.x,ut.x[1]),pe.y=t$8(ut.y[0],pe.y,ut.y[1]),ce.spring({tension:170,friction:17,restDelta:.001,restSpeed:.001,maxSpeed:1/0,velocity:ce.getCurrentVelocities()}),ce.from(fe).to(pe).start()):Ge()}function je(Ye){var Je;if(!ke())return;const nt=_t(),ut=Ze(),it=at(),st=dt(),$t=et(),kt=yt();s$8(ae,"is-fullsize",st),s$8(ae,"is-expanded",it),s$8(ae,"is-dragging",ut),s$8(ae,"can-drag",nt),s$8(ae,"will-zoom-in",$t),s$8(ae,"will-zoom-out",kt);const Mt=At(),Dt=Pt(),Lt=Et(),Gt=!ke();for(const Rt of((Je=Ye||ee)===null||Je===void 0?void 0:Je.querySelectorAll("[data-panzoom-action]"))||[]){const Xt=Rt.dataset.panzoomAction;let It=!1;if(Gt)It=!0;else switch(Xt){case v$6.ZoomIn:Mt||(It=!0);break;case v$6.ZoomOut:Lt||(It=!0);break;case v$6.ToggleFull:{Dt||Lt||(It=!0);const Qe=Rt.querySelector("g");Qe&&(Qe.style.display=st&&!It?"none":"");break}case v$6.IterateZoom:{Mt||Lt||(It=!0);const Qe=Rt.querySelector("g");Qe&&(Qe.style.display=Mt||It?"":"none");break}case v$6.ToggleCover:case v$6.ToggleMax:Mt||Lt||(It=!0)}It?(Rt.setAttribute("aria-disabled",""),Rt.setAttribute("tabindex","-1")):(Rt.removeAttribute("aria-disabled"),Rt.removeAttribute("tabindex"))}}function We(Ye,Je){var nt;if(!(Ye&&ee&&re&&ce&&ke())||Ye===v$6.Swipe&&Math.abs(ce.getCurrentVelocities().scale)>.01)return;const ut=Object.assign({},pe);let it=Object.assign({},pe),st=Ue(Be()?ut.scale:fe.scale);const $t=ce.getCurrentVelocities(),kt=Re(),Mt=(((nt=(Je=Je||{}).currentTouch)===null||nt===void 0?void 0:nt.length)||0)>1,Dt=Je.velocityX||0,Lt=Je.velocityY||0;let Gt=Je.center;Je.srcEvent&&(Gt=i$9(s$b(Je.srcEvent)));let Rt=Je.deltaX||0,Xt=Je.deltaY||0;switch(Ye){case v$6.MoveRight:Rt=Je.deltaX||100;break;case v$6.MoveLeft:Rt=Je.deltaX||-100;break;case v$6.MoveUp:Xt=Je.deltaY||-100;break;case v$6.MoveDown:Xt=Je.deltaY||100}let It=[];switch(Ye){case v$6.Reset:it=Object.assign({},y$5),it.scale=we();break;case v$6.Pan:case v$6.Move:case v$6.MoveLeft:case v$6.MoveRight:case v$6.MoveUp:case v$6.MoveDown:if(Ze()){let mt=1,vt=1;it.x<=st.x[0]&&Dt<=0&&(mt=Math.max(.01,1-Math.abs(1/kt.width*Math.abs(it.x-st.x[0]))),mt*=.2),it.x>=st.x[1]&&Dt>=0&&(mt=Math.max(.01,1-Math.abs(1/kt.width*Math.abs(it.x-st.x[1]))),mt*=.2),it.y<=st.y[0]&&Lt<=0&&(vt=Math.max(.01,1-Math.abs(1/kt.height*Math.abs(it.y-st.y[0]))),vt*=.2),it.y>=st.y[1]&&Lt>=0&&(vt=Math.max(.01,1-Math.abs(1/kt.height*Math.abs(it.y-st.y[1]))),vt*=.2),it.x+=Rt*mt,it.y+=Xt*vt}else it.x=t$8(st.x[0],it.x+Rt,st.x[1]),it.y=t$8(st.y[0],it.y+Xt,st.y[1]);break;case v$6.Swipe:const Qe=(mt=0)=>Math.sign(mt)*Math.pow(Math.abs(mt),1.5);it.x+=t$8(-1e3,Qe(Dt),1e3),it.y+=t$8(-1e3,Qe(Lt),1e3),Lt&&!Dt&&(it.x=t$8(st.x[0],it.x,st.x[1])),!Lt&&Dt&&(it.y=t$8(st.y[0],it.y,st.y[1])),$t.x=Dt,$t.y=Lt;break;case v$6.ZoomTo:it.scale=Je.scale||1;break;case v$6.ZoomIn:it.scale=it.scale*(Je.scale||2),Mt||(it.scale=Math.min(it.scale,Ie()));break;case v$6.ZoomOut:it.scale=it.scale*(Je.scale||.5),Mt||(it.scale=Math.max(it.scale,Me()));break;case v$6.ToggleCover:It=[we(),Ce()];break;case v$6.ToggleFull:It=[we(),Fe()];break;case v$6.ToggleMax:It=[we(),Ie()];break;case v$6.IterateZoom:It=[we(),Fe(),Ie()];break;case v$6.Zoom:const lt=Fe();it.scale>=lt-.05?it.scale=we():it.scale=Math.min(lt,it.scale*(Je.scale||2));break;case v$6.RotateCW:it.angle+=90;break;case v$6.RotateCCW:it.angle-=90;break;case v$6.FlipX:it.flipX*=-1;break;case v$6.FlipY:it.flipY*=-1}if(fe.angle!==void 0&&Math.abs(fe.angle)>=360&&(it.angle-=360*Math.floor(fe.angle/360),fe.angle-=360*Math.floor(fe.angle/360)),It.length){const Qe=It.findIndex(lt=>lt>it.scale+1e-4);it.scale=It[Qe]||It[0]}if(Mt&&(it.scale=t$8(Me()*(Mt?.8:1),it.scale,Ie()*(Mt?1.6:1))),Be()){const Qe=De(it.scale);if(Qe){const{x:lt,y:mt}=Qe;it.x=lt,it.y=mt}}else if(Math.abs(it.scale-ut.scale)>1e-4){let Qe=0,lt=0;if(Gt)Qe=Gt.x,lt=Gt.y;else{const St=ee.getBoundingClientRect();Qe=St.x+.5*St.width,lt=St.y+.5*St.height}let mt=Qe-kt.left,vt=lt-kt.top;mt-=.5*kt.width,vt-=.5*kt.height;const wt=(mt-ut.x)/ut.scale,xt=(vt-ut.y)/ut.scale;it.x=mt-wt*it.scale,it.y=vt-xt*it.scale,!Mt&&be("bounds")&&(st=Ue(it.scale),it.x=t$8(st.x[0],it.x,st.x[1]),it.y=t$8(st.y[0],it.y,st.y[1]))}if(Ye===v$6.Swipe){let Qe=94,lt=17,mt=500*it.scale,vt=$t;ce.spring({tension:Qe,friction:lt,maxSpeed:mt,restDelta:.1,restSpeed:.1,velocity:vt})}else Ye===v$6.Pan||Mt?ce.spring({tension:900,friction:17,restDelta:.01,restSpeed:.01,maxSpeed:1}):ce.spring({tension:170,friction:17,restDelta:.001,restSpeed:.001,maxSpeed:1/0,velocity:$t});if(Je.velocity===0||n$9(fe,it))fe=Object.assign({},it),pe=Object.assign({},it),ce.end(),Ge(),je();else{if(n$9(pe,it))return;ce.from(fe).to(it).start()}ye("action",Ye)}function Ge(){if(!re||!ae||!ie)return;const{width:Ye,height:Je}=Oe();Object.assign(ae.style,{maxWidth:`min(${Ye}px, 100%)`,maxHeight:`min(${Je}px, 100%)`});const nt=function(){const{width:Rt,height:Xt}=Oe(),{width:It,height:Qe}=Pe();if(!ee)return{x:0,y:0,width:0,height:0,scale:0,flipX:0,flipY:0,angle:0,fitWidth:It,fitHeight:Qe,fullWidth:Rt,fullHeight:Xt};let{x:lt,y:mt,scale:vt,angle:wt,flipX:xt,flipY:St}=fe,rt=1/Fe(),bt=Rt,pt=Xt,Tt=fe.scale*rt,Ft=pe.scale*rt;const Ot=Math.max(It,Qe),Ht=Math.min(It,Qe);Rt>Xt?(bt=Ot,pt=Ht):(bt=Ht,pt=Ot),Tt=Rt>Xt?Ot*vt/Rt||1:Ot*vt/Xt||1;let Zt=bt?Rt*Ft:0,an=pt?Xt*Ft:0,rn=bt&&pt?Rt*Tt/Zt:0;return lt=lt+.5*bt-.5*Zt,mt=mt+.5*pt-.5*an,{x:lt,y:mt,width:Zt,height:an,scale:rn,flipX:xt,flipY:St,angle:wt,fitWidth:It,fitHeight:Qe,fullWidth:Rt,fullHeight:Xt}}(),{x:ut,y:it,width:st,height:$t,scale:kt,angle:Mt,flipX:Dt,flipY:Lt}=nt;let Gt=`translate(${m$4(ut)}px, ${m$4(it)}px)`;Gt+=Dt!==1||Lt!==1?` scaleX(${m$4(kt*Dt)}) scaleY(${m$4(kt*Lt)})`:` scale(${m$4(kt)})`,Mt!==0&&(Gt+=` rotate(${Mt}deg)`),ie.style.width=`${m$4(st)}px`,ie.style.height=`${m$4($t)}px`,ie.style.transform=`${Gt}`,ye("render")}function Ke(){let Ye=pe.scale;const Je=be("clickAction");let nt=we();if(Je){let ut=[];switch(Je){case v$6.ZoomIn:nt=2*Ye;break;case v$6.ZoomOut:nt=.5*Ye;break;case v$6.ToggleCover:ut=[we(),Ce()];break;case v$6.ToggleFull:ut=[we(),Fe()];break;case v$6.ToggleMax:ut=[we(),Ie()];break;case v$6.IterateZoom:ut=[we(),Fe(),Ie()];break;case v$6.Zoom:const it=Fe();nt=Ye>=it-.05?we():Math.min(it,2*Ye)}if(ut.length){const it=ut.findIndex(st=>st>Ye+1e-4);nt=ut[it]||we()}}return nt=t$8(Me(),nt,Ie()),nt}function et(){return!!(ke()&&Ke()>pe.scale)}function yt(){return!!(ke()&&Ke()<pe.scale)}function Et(){return!!(ke()&&pe.scale>Me())}function At(){return!!(ke()&&pe.scale<Ie())}function Pt(){return!!(ke()&&pe.scale<Fe())}function _t(){return!(!(ke()&&at()&&le)||Be())}function Ze(){return!(!ke()||!(le!=null&&le.isPointerDown())||Be())}function at(){return!!(ke()&&pe.scale>we())}function dt(){return!!(ke()&&pe.scale>=Fe())}function ct(){const Ye="in-fullscreen",Je="with-panzoom-in-fullscreen";ee==null||ee.classList.toggle(Ye);const nt=ee==null?void 0:ee.classList.contains(Ye);nt?(document.documentElement.classList.add(Je),document.addEventListener("keydown",ht,!0)):(document.documentElement.classList.remove(Je),document.removeEventListener("keydown",ht,!0)),Ge(),ye(nt?"enterFS":"exitFS")}function ht(Ye){Ye.key!=="Escape"||Ye.defaultPrevented||ct()}const tt={canDrag:_t,canZoomIn:At,canZoomOut:Et,canZoomToFull:Pt,destroy:function(){ye("destroy");for(const Ye of Object.values(ge))Ye==null||Ye.destroy(tt);for(const Ye of _e)Ye();return ae&&(ae.style.aspectRatio="",ae.style.maxWidth="",ae.style.maxHeight=""),ie&&(ie.style.width="",ie.style.height="",ie.style.transform=""),ae=void 0,re=void 0,ie=void 0,fe=Object.assign({},y$5),pe=Object.assign({},y$5),ce==null||ce.destroy(),ce=void 0,le==null||le.destroy(),le=void 0,ve=4,tt},emit:ye,execute:We,getBoundaries:Ue,getContainer:function(){return ee},getContent:function(){return re},getFullDim:Oe,getGestures:function(){return le},getMousemovePos:De,getOptions:function(){return me},getPlugins:function(){return ge},getScale:Ne,getStartPosition:ze,getState:function(){return ve},getTransform:function(Ye){return Ye===!0?pe:fe},getTween:function(){return ce},getViewport:function(){return ie},getWrapper:function(){return ae},init:function(){return ve=0,ye("init"),function(){for(const[Ye,Je]of Object.entries(Object.assign(Object.assign({},ne),me.plugins||{})))if(Ye&&!ge[Ye]&&Je instanceof Function){const nt=Je();nt.init(tt),ge[Ye]=nt}ye("initPlugins")}(),function(){const Ye=Object.assign(Object.assign({},x$2.classes),be("classes"));if(ee&&(s$a(ee,Ye.container),re=ee.querySelector("."+Ye.content),!!re)){if(re.setAttribute("draggable","false"),ae=ee.querySelector("."+Ye.wrapper),ae||(ae=document.createElement("div"),s$a(ae,Ye.wrapper),re.insertAdjacentElement("beforebegin",ae),ae.insertAdjacentElement("afterbegin",re)),ie=ee.querySelector("."+Ye.viewport),ie||(ie=document.createElement("div"),s$a(ie,Ye.viewport),ie.insertAdjacentElement("afterbegin",re),ae.insertAdjacentElement("beforeend",ie)),oe=re.cloneNode(!0),oe.removeAttribute("id"),ae.insertAdjacentElement("afterbegin",oe),re instanceof HTMLPictureElement&&(re=re.querySelector("img")),oe instanceof HTMLPictureElement&&(oe=oe.querySelector("img")),ie instanceof HTMLPictureElement&&(ie=ie.querySelector("img")),ie&&(ie.style.visibility="hidden",be("protected"))){ie.addEventListener("contextmenu",nt=>{h$6(nt)});const Je=document.createElement("div");s$a(Je,"f-panzoom__protected"),ie.appendChild(Je)}ye("initLayout")}}(),function(){if(ee&&ae&&!de){let Ye=null;de=new ResizeObserver(()=>{ke()&&(Ye=Ye||requestAnimationFrame(()=>{ke()&&(je(),qe(),ye("refresh")),Ye=null}))}),de.observe(ae),_e.push(()=>{de==null||de.disconnect(),de=void 0,Ye&&(cancelAnimationFrame(Ye),Ye=null)})}}(),function(){if(!ee||!re)return;if(!p$3(re)||!p$3(oe))return void Te();const Ye=()=>{re&&p$3(re)&&re.decode().then(()=>{Te()}).catch(()=>{Te()})};if(ve=1,ee.classList.add("is-loading"),ye("loading"),oe.src&&oe.complete)return void Ye();(function(){if(!ee||ee!=null&&ee.querySelector(".f-spinner"))return;const Je=be("spinnerTpl"),nt=e$9(Je);nt&&(nt.classList.add("f-spinner"),ee.classList.add("is-loading"),ae==null||ae.insertAdjacentElement("afterbegin",nt))})(),oe.addEventListener("load",Ye,!1),oe.addEventListener("error",Ye,!1),_e.push(()=>{oe==null||oe.removeEventListener("load",Ye,!1),oe==null||oe.removeEventListener("error",Ye,!1)})}(),tt},isDragging:Ze,isExpanded:at,isFullsize:dt,isMousemoveMode:Be,localize:function(Ye,Je=[]){const nt=be("l10n")||{};Ye=String(Ye).replace(/\{\{(\w+)\}\}/g,(ut,it)=>nt[it]||ut);for(let ut=0;ut<Je.length;ut++)Ye=Ye.split(Je[ut][0]).join(Je[ut][1]);return Ye=Ye.replace(/\{\{(.*?)\}\}/g,(ut,it)=>it)},off:function(Ye,Je){for(const nt of Ye instanceof Array?Ye:[Ye])$e.has(nt)&&$e.set(nt,$e.get(nt).filter(ut=>ut!==Je));return tt},on:function(Ye,Je){for(const nt of Ye instanceof Array?Ye:[Ye])$e.set(nt,[...$e.get(nt)||[],Je]);return tt},toggleFS:ct,updateControls:je,version:"6.1.3",willZoomIn:et,willZoomOut:yt};return tt};E$4.l10n={en_EN:e$5},E$4.getDefaults=()=>x$2;/*! License details at fancyapps.com/license */const e$4=(ee,te)=>{let ne=[];return ee.childNodes.forEach(ae=>{ae.nodeType!==Node.ELEMENT_NODE||te&&!ae.matches(te)||ne.push(ae)}),ne};/*! License details at fancyapps.com/license */const r$5=(ee,...te)=>{const ne=te.length;for(let ae=0;ae<ne;ae++){const re=te[ae]||{};Object.entries(re).forEach(([oe,ie])=>{const le=Array.isArray(ie)?[]:{};ee[oe]||Object.assign(ee,{[oe]:le}),t$7(ie)?Object.assign(ee[oe],r$5(ee[oe],ie)):Array.isArray(ie)?Object.assign(ee,{[oe]:[...ie]}):Object.assign(ee,{[oe]:ie})})}return ee};/*! License details at fancyapps.com/license */const t$5=function(ee=0,te=0,ne=0,ae=0,re=0,oe=!1){const ie=(ee-te)/(ne-te)*(re-ae)+ae;return oe?ae<re?t$8(ae,ie,re):t$8(re,ie,ae):ie};/*! License details at fancyapps.com/license */const o$7=Object.assign(Object.assign({},e$5),{ERROR:"Something went wrong. <br /> Please try again later.",NEXT:"Next page",PREV:"Previous page",GOTO:"Go to page #%d",DOWNLOAD:"Download",TOGGLE_FULLSCREEN:"Toggle full-screen mode",TOGGLE_EXPAND:"Toggle full-size mode",TOGGLE_THUMBS:"Toggle thumbnails",TOGGLE_AUTOPLAY:"Toggle slideshow"});/*! License details at fancyapps.com/license */const m$3=ee=>{ee.cancelable&&ee.preventDefault()},h$5={adaptiveHeight:!1,center:!0,classes:{container:"f-carousel",isEnabled:"is-enabled",isLTR:"is-ltr",isRTL:"is-rtl",isHorizontal:"is-horizontal",isVertical:"is-vertical",hasAdaptiveHeight:"has-adaptive-height",viewport:"f-carousel__viewport",slide:"f-carousel__slide",isSelected:"is-selected"},dragFree:!1,enabled:!0,errorTpl:'<div class="f-html">{{ERROR}}</div>',fill:!1,infinite:!0,initialPage:0,l10n:o$7,rtl:!1,slides:[],slidesPerPage:"auto",spinnerTpl:'<div class="f-spinner"></div>',transition:"fade",tween:{clamp:!0,mass:1,tension:160,friction:25,restDelta:1,restSpeed:1,velocity:0},vertical:!1};let b$3,y$4=0;const E$3=(ee,te={},ne={})=>{y$4++;let ae,re,oe,ie,le,ce=0,de=Object.assign({},h$5),ue=Object.assign({},h$5),ve={},me=null,ge=null,fe=!1,pe=!1,_e=!1,be=!1,ke="height",$e=0,ye=!0,Ee=0,Se=0,Le=0,Ve=0,Te="*",ze=[],Re=[];const Oe=new Set;let Pe=[],Be=[],De=0,Ne=0,Me=0;function we(Qe,...lt){let mt=ue[Qe];return mt&&mt instanceof Function?mt(It,...lt):mt}function Ce(Qe,lt=[]){const mt=we("l10n")||{};Qe=String(Qe).replace(/\{\{(\w+)\}\}/g,(vt,wt)=>mt[wt]||vt);for(let vt=0;vt<lt.length;vt++)Qe=Qe.split(lt[vt][0]).join(lt[vt][1]);return Qe=Qe.replace(/\{\{(.*?)\}\}/g,(vt,wt)=>wt)}const Fe=new Map;function Ie(Qe,...lt){const mt=[...Fe.get(Qe)||[]];ue.on&&mt.push(ue.on[Qe]);for(const vt of mt)vt&&vt instanceof Function&&vt(It,...lt);Qe!=="*"&&Ie("*",Qe,...lt)}function Ue(){var Qe,lt;const mt=r$5({},h$5,de);r$5(mt,h$5,de);let vt="";const wt=de.breakpoints||{};if(wt)for(const[xt,St]of Object.entries(wt))window.matchMedia(xt).matches&&(vt+=xt,r$5(mt,St));if(le===void 0||vt!==le){if(le=vt,ce!==0){let xt=(lt=(Qe=Be[Ee])===null||Qe===void 0?void 0:Qe.slides[0])===null||lt===void 0?void 0:lt.index;xt===void 0&&(xt=ue.initialSlide),mt.initialSlide=xt,mt.slides=[];for(const St of ze)St.isVirtual&&mt.slides.push(St)}Gt(),ue=mt,we("enabled")!==!1&&(ce=0,Ie("init"),function(){for(const[xt,St]of Object.entries(Object.assign(Object.assign({},ne),ue.plugins||{})))if(xt&&!ve[xt]&&St instanceof Function){const rt=St();rt.init(It,E$3),ve[xt]=rt}Ie("initPlugins")}(),function(){if(!me)return;const xt=we("classes")||{};s$a(me,xt.container);const St=we("style");if(St&&t$7(St))for(const[rt,bt]of Object.entries(St))me.style.setProperty(rt,bt);ge=me.querySelector(`.${xt.viewport}`),ge||(ge=document.createElement("div"),s$a(ge,xt.viewport),ge.append(...e$4(me,`.${xt.slide}`)),me.insertAdjacentElement("afterbegin",ge)),me.carousel=It,Ie("initLayout")}(),function(){if(!ge)return;const xt=we("classes")||{};ze=[],[...e$4(ge,`.${xt.slide}`)].forEach(St=>{if(St.parentElement){const rt=at(Object.assign({el:St,isVirtual:!1},St.dataset||{}));Ie("createSlide",rt),ze.push(rt)}}),tt();for(const St of ze)Ie("addSlide",St);Ze(we("slides"));for(const St of ze){const rt=St.el;(rt==null?void 0:rt.parentElement)===ge&&(s$a(rt,ue.classes.slide),s$a(rt,St.class),kt(St),Ie("attachSlideEl",St))}Ie("initSlides")}(),Ye(),ce=1,s$a(me,(we("classes")||{}).isEnabled||""),Lt(),Ke(),re=c$5().on("start",()=>{ae&&ae.isPointerDown()||(Ge(),Lt())}).on("step",xt=>{const St=$e;$e=xt.pos,$e!==St&&(ye=!1,Lt())}).on("end",xt=>{ae!=null&&ae.isPointerDown()||($e=xt.pos,re&&!pe&&($e<Le||$e>Ve)?re.spring({clamp:!0,mass:1,tension:200,friction:25,velocity:0,restDelta:1,restSpeed:1}).from({pos:$e}).to({pos:t$8(Le,$e,Ve)}).start():ye||(ye=!0,Ie("settle")))}),je(),function(){if(!me||!ge)return;me.addEventListener("click",it,{passive:!1}),document.addEventListener("mousemove",qe);const xt=ge.getBoundingClientRect();if(De=xt.height,Ne=xt.width,!oe){let St=null;oe=new ResizeObserver(()=>{St||(St=requestAnimationFrame(()=>{(function(){if(ce!==1||!ge)return;const rt=Be.length,bt=ge.getBoundingClientRect(),pt=bt.height,Tt=bt.width;rt>1&&(be&&Math.abs(pt-De)<.5||!be&&Math.abs(Tt-Ne)<.5)||(Ye(),je(),De=pt,Ne=Tt,be&&!pt||!be&&!Tt||me&&ge&&(rt===Be.length&&(ae!=null&&ae.isPointerDown())||(we("dragFree")&&(pe||$e>Le&&$e<Ve)?(Ge(),Lt()):Mt(Ee,{transition:!1}))))})(),St=null}))}),oe.observe(ge)}}(),Ie("ready"))}}function qe(Qe){b$3=Qe}function je(){we("gestures")===!1?ae&&(ae.destroy(),ae=void 0):ae||function(){const Qe=we("gestures");!ae&&Qe!==!1&&ge&&(ae=f$4(ge,Qe).on("start",lt=>{var mt,vt;if(!re)return;const{srcEvent:wt}=lt;be&&e$6(wt)&&!n$a(wt.target)&&m$3(wt),re.pause(),re.getCurrentVelocities().pos=0;const xt=(mt=Be[Ee])===null||mt===void 0?void 0:mt.slides[0];xt&&Oe.has(xt.index)&&xt.el&&($e=xt.offset||0,$e+=(function(St){const rt=window.getComputedStyle(St),bt=new DOMMatrixReadOnly(rt.transform);return{width:bt.m41||0,height:bt.m42||0}}(xt.el)[ke]||0)*(_e&&!be?1:-1)),nt(),pe||($e<Le||$e>Ve)&&re.spring({clamp:!0,mass:1,tension:500,friction:25,velocity:((vt=re.getCurrentVelocities())===null||vt===void 0?void 0:vt.pos)||0,restDelta:1,restSpeed:1}).from({pos:$e}).to({pos:t$8(Le,$e,Ve)}).start()}).on("move",lt=>{var mt,vt;const{srcEvent:wt,axis:xt}=lt,St=wt.target;if(xt||(m$3(wt),wt.stopPropagation(),wt.stopImmediatePropagation()),(xt==="y"&&be||xt==="x"&&!be)&&(m$3(wt),wt.stopPropagation()),!xt)return;const{deltaX:rt,deltaY:bt}=lt;if(!re||e$6(wt)&&((mt=wt.touches)===null||mt===void 0?void 0:mt.length)>1||xt==="y"&&!be||xt==="x"&&be||St&&n$a(St)&&(xt!=="x"||be))return;const pt=_e&&!be?1:-1;let Tt=be?bt:rt,Ft=re!=null&&re.isRunning()?re.getEndValues().pos:$e,Ot=1;pe||(Ft<=Le&&Tt*pt<0?(Ot=Math.max(.01,1-(Math.abs(1/At()*Math.abs(Ft-Le))||0)),Ot*=.2):Ft>=Ve&&Tt*pt>0&&(Ot=Math.max(.01,1-(Math.abs(1/At()*Math.abs(Ft-Ve))||0)),Ot*=.2)),Ft+=Tt*Ot*pt,re.spring({clamp:!0,mass:1,tension:700,friction:25,velocity:((vt=re.getCurrentVelocities())===null||vt===void 0?void 0:vt.pos)||0,restDelta:1,restSpeed:1}).from({pos:$e}).to({pos:Ft}).start()}).on("panstart",lt=>{(lt==null?void 0:lt.axis)===(be?"y":"x")&&s$a(ge,"is-dragging")}).on("panend",()=>{s$9(ge,"is-dragging")}).on("end",lt=>{var mt,vt;const{srcEvent:wt,axis:xt,velocityX:St,velocityY:rt,currentTouch:bt}=lt;if(bt.length>0||!re)return;const pt=wt.target,Tt=pt&&n$a(pt)&&!(xt==="x"&&!be);be&&e$6(wt)&&!lt.axis&&it(wt);const Ft=Be.length,Ot=we("dragFree");if(!Ft)return;const Ht=we("vertical")?rt:St;let Zt=re!=null&&re.isRunning()?re.getEndValues().pos:$e;const an=_e&&!be?1:-1;if(Tt||(Zt+=Ht*(Ot?5:1)*an),!pe&&(Ht*an<=0&&Zt<Le||Ht*an>=0&&Zt>Ve)){let on=0;return Math.abs(Ht)>0&&(on=2*Math.abs(Ht),on=Math.min(.3*At(),on)),Zt=t$8(Le+-1*on,Zt,Ve+on),void re.spring({clamp:!0,mass:1,tension:380,friction:25,velocity:-1*Ht,restDelta:1,restSpeed:1}).from({pos:$e}).to({pos:Zt}).start()}if(Ot||!((mt=ve.Autoscroll)===null||mt===void 0)&&mt.isEnabled())return void(Math.abs(Ht)>10?re.spring({clamp:!0,mass:1,tension:150,friction:25,velocity:-1*Ht,restDelta:1,restSpeed:1}).from({pos:$e}).to({pos:Zt}).start():re.isRunning()||ye||(ye=!0,Ie("settle")));if(!Ot&&!(!((vt=ve.Autoscroll)===null||vt===void 0)&&vt.isEnabled())&&(!lt.offsetX&&!lt.offsetY||xt==="y"&&!be||xt==="x"&&be))return void Mt(Ee,{transition:"tween"});let rn=yt(Zt);Math.abs(Ht)>10&&rn===Ee&&(rn+=Ht>0?_e&&!be?1:-1:_e&&!be?-1:1),Mt(rn,{transition:"tween",tween:{velocity:-1*Ht}})}).init())}(),s$8(ge,"is-draggable",!!ae&&Be.length>0)}function We(Qe="*"){var lt;const mt=[];for(const vt of ze)(Qe==="*"||vt.class&&vt.class.includes(Qe)||vt.el&&(!((lt=vt.el)===null||lt===void 0)&<.classList.contains(Qe)))&&mt.push(vt);ie=void 0,Te=Qe,Re=[...mt]}function Ge(){if(!re)return;const Qe=yt(re!=null&&re.isRunning()?re.getEndValues().pos:$e);Qe!==Ee&&(ie=Ee,Ee=Qe,kt(),Ke(),et(),Ie("change",Ee,ie))}function Ke(){var Qe,lt;if(!me)return;for(const wt of me.querySelectorAll("[data-carousel-index]"))wt.innerHTML=Ee+"";for(const wt of me.querySelectorAll("[data-carousel-page]"))wt.innerHTML=Ee+1+"";for(const wt of me.querySelectorAll("[data-carousel-pages]"))wt.innerHTML=Be.length+"";for(const wt of me.querySelectorAll("[data-carousel-go-to]"))parseInt(((Qe=wt.dataset)===null||Qe===void 0?void 0:Qe.carouselGoTo)||"-1",10)===Ee?wt.setAttribute("aria-current","true"):wt.removeAttribute("aria-current");for(const wt of me.querySelectorAll("[data-carousel-go-prev]"))wt.toggleAttribute("aria-disabled",!Rt()),Rt()?wt.removeAttribute("tabindex"):wt.setAttribute("tabindex","-1");for(const wt of me.querySelectorAll("[data-carousel-go-next]"))wt.toggleAttribute("aria-disabled",!Xt()),Xt()?wt.removeAttribute("tabindex"):wt.setAttribute("tabindex","-1");let mt=!1;const vt=(lt=Be[Ee])===null||lt===void 0?void 0:lt.slides[0];vt&&(vt.downloadSrc||vt.type==="image"&&vt.src)&&(mt=!0);for(const wt of me.querySelectorAll("[data-carousel-download]"))wt.toggleAttribute("aria-disabled",!mt)}function et(Qe){var lt;Qe||(Qe=(lt=Be[Ee])===null||lt===void 0?void 0:lt.slides[0]);const mt=Qe==null?void 0:Qe.el;if(mt)for(const vt of mt.querySelectorAll("[data-slide-index]"))vt.innerHTML=Qe.index+1+""}function yt(Qe){var lt,mt,vt;if(!Be.length)return 0;const wt=Pt();let xt=Qe;pe?xt-=Math.floor((Qe-((lt=Be[0])===null||lt===void 0?void 0:lt.pos))/wt)*wt||0:xt=t$8((mt=Be[0])===null||mt===void 0?void 0:mt.pos,Qe,(vt=Be[Be.length-1])===null||vt===void 0?void 0:vt.pos);const St=new Map;let rt=0;for(const pt of Be){const Tt=Math.abs(pt.pos-xt),Ft=Math.abs(pt.pos-xt-wt),Ot=Math.abs(pt.pos-xt+wt),Ht=Math.min(Tt,Ft,Ot);St.set(rt,Ht),rt++}const bt=St.size>0?[...St.entries()].reduce((pt,Tt)=>Tt[1]<pt[1]?Tt:pt):[Ee,0];return parseInt(bt[0])}function Et(){return Me}function At(){let Qe=0;return ge&&(ge.childElementCount||(ge.style.display="grid"),Qe=ge.getBoundingClientRect()[ke]||0,ge.style.display=""),Qe}function Pt(Qe=!0){return Re.length?Re.reduce((lt,mt)=>lt+mt.dim,0)+(Re.length-(pe&&Qe?0:1))*Me:0}function _t(Qe){const lt=Pt(),mt=At();if(!lt||!ge||!mt)return[];const vt=[];Qe=Qe===void 0?$e:Qe,pe&&(Qe-=Math.floor(Qe/lt)*lt||0);let wt=0,xt=0;if(fe){const rt=ge.getBoundingClientRect();wt=Math.abs(rt[be?"top":"left"]),xt=Math.abs(window[be?"innerHeight":"innerWidth"]-rt[be?"bottom":"right"])}let St=0;for(let rt of Re){const bt=(pt=0)=>{vt.indexOf(rt)>-1||(rt.pos=St-Qe+pt||0,rt.offset+pt>Qe-rt.dim-wt+.51&&rt.offset+pt<Qe+mt+xt-.51&&vt.push(rt))};rt.offset=St,pe&&(bt(lt),bt(-1*lt)),bt(),St+=rt.dim+Me}return vt}function Ze(Qe,lt){const mt=[];for(const vt of Array.isArray(Qe)?Qe:[Qe]){const wt=at(Object.assign(Object.assign({},vt),{isVirtual:!0}));wt.el||(wt.el=document.createElement("div")),Ie("createSlide",wt),mt.push(wt)}ze.splice(lt===void 0?ze.length:lt,0,...mt),tt();for(const vt of mt)Ie("addSlide",vt),dt(vt);return We(Te),mt}function at(Qe){return(t$9(Qe)||Qe instanceof HTMLElement)&&(Qe={html:Qe}),Object.assign({index:-1,el:void 0,class:"",isVirtual:!0,dim:0,pos:0,offset:0,html:"",src:""},Qe)}function dt(Qe){let lt=Qe.el;if(!Qe||!lt)return;const mt=Qe.html?Qe.html instanceof HTMLElement?Qe.html:e$9(Qe.html):void 0;mt&&(s$a(mt,"f-html"),Qe.htmlEl=mt,s$a(lt,"has-html"),lt.append(mt),Ie("contentReady",Qe))}function ct(Qe){if(!ge||!Qe)return;let lt=Qe.el;if(lt){if(lt.setAttribute("index",Qe.index+""),lt.parentElement!==ge){let mt;s$a(lt,ue.classes.slide),s$a(lt,Qe.class),kt(Qe);for(const vt of ze)if(vt.index>Qe.index){mt=vt.el;break}ge.insertBefore(lt,mt&&ge.contains(mt)?mt:null),Ie("attachSlideEl",Qe)}return et(Qe),lt}}function ht(Qe){const lt=Qe==null?void 0:Qe.el;lt&&(lt.remove(),Je(lt),Ie("detachSlideEl",Qe))}function tt(){for(let Qe=0;Qe<ze.length;Qe++){const lt=ze[Qe],mt=lt.el;mt&&(lt.index!==Qe&&Je(mt),mt.setAttribute("index",`${Qe}`)),lt.index=Qe}}function Ye(){var Qe,lt,mt,vt,wt;if(!me||!ge)return;_e=we("rtl"),be=we("vertical"),ke=be?"height":"width";const xt=we("classes");if(s$8(me,xt.isLTR,!_e),s$8(me,xt.isRTL,_e),s$8(me,xt.isHorizontal,!be),s$8(me,xt.isVertical,be),s$8(me,xt.hasAdaptiveHeight,we("adaptiveHeight")),!At())return;const St=window.getComputedStyle(ge);fe=St.getPropertyValue("overflow-"+(be?"y":"x"))==="visible",Me=ge&&parseFloat(St.getPropertyValue("--f-carousel-gap"))||0;const rt=function(){let bt=0;if(ge){let pt=document.createElement("div");pt.style.display="block",s$a(pt,ue.classes.slide),ge.appendChild(pt),bt=pt.getBoundingClientRect()[ke],pt.remove(),pt=void 0}return bt}();for(const bt of Re){const pt=bt.el;let Tt=0;if(!bt.isVirtual&&pt&&n$b(pt)){let Ft=!1;pt.parentElement&&pt.parentElement===ge||(ge.appendChild(pt),Ft=!0),Tt=pt.getBoundingClientRect()[ke],Ft&&((Qe=pt.parentElement)===null||Qe===void 0||Qe.removeChild(pt))}else Tt=rt;bt.dim=Tt}if(pe=!1,we("infinite")){pe=!0;const bt=Pt();let pt=At();if(fe){const Tt=ge.getBoundingClientRect();pt+=Tt.left,pt+=Tt.right-Tt.width}for(let Tt=0;Tt<Re.length;Tt++){const Ft=((lt=Re[Tt])===null||lt===void 0?void 0:lt.dim)+Me;if(bt-Ft<pt&&bt-Ft-pt<Ft){pe=!1;break}}}(function(){var bt;if(!me)return;const pt=At(),Tt=Pt(!1);let Ft=we("slidesPerPage");Ft=Ft==="auto"?1/0:parseFloat(Ft+""),Be=[];let Ot=0,Ht=0;for(const Ct of Re)(!Be.length||Ot+Ct.dim-pt>.05||Ht>=Ft)&&(Be.push({index:Be.length,slides:[],dim:0,offset:0,pos:0}),Ot=0,Ht=0),(bt=Be[Be.length-1])===null||bt===void 0||bt.slides.push(Ct),Ot+=Ct.dim+Me,Ht++;const Zt=we("center"),an=we("fill");let rn=0;for(const Ct of Be){Ct.dim=(Ct.slides.length-1)*Me;for(const Nt of Ct.slides)Ct.dim+=Nt.dim;Ct.offset=rn,Ct.pos=rn,Zt!==!1&&(Ct.pos-=.5*(pt-Ct.dim)),an&&!pe&&Tt>pt&&(Ct.pos=t$8(0,Ct.pos,Tt-pt)),rn+=Ct.dim+Me}const on=[];let Bt;for(const Ct of Be){const Nt=Object.assign({},Ct);Bt&&Math.abs(Nt.pos-Bt.pos)<.1?(Bt.dim+=Nt.dim,Bt.slides=[...Bt.slides,...Nt.slides]):(Bt=Nt,Nt.index=on.length,on.push(Nt))}Be=on,Ee=t$8(0,Ee,Be.length-1)})(),Le=((mt=Be[0])===null||mt===void 0?void 0:mt.pos)||0,Ve=((vt=Be[Be.length-1])===null||vt===void 0?void 0:vt.pos)||0,ce===0?function(){var bt;ie=void 0,Ee=we("initialPage");const pt=we("initialSlide")||void 0;pt!==void 0&&(Ee=It.getPageIndex(pt)||0),Ee=t$8(0,Ee,Be.length-1),$e=((bt=Be[Ee])===null||bt===void 0?void 0:bt.pos)||0,Se=$e}():Se=((wt=Be[Ee||0])===null||wt===void 0?void 0:wt.pos)||0,Ie("refresh"),Ke()}function Je(Qe){if(!Qe||!n$b(Qe))return;const lt=parseInt(Qe.getAttribute("index")||"-1");let mt="";for(const wt of Array.from(Qe.classList)){const xt=wt.match(/^f-(\w+)(Out|In)$/);xt&&xt[1]&&(mt=xt[1]+"")}if(!Qe||!mt)return;const vt=[`f-${mt}Out`,`f-${mt}In`,"to-prev","to-next","from-prev","from-next"];Qe.removeEventListener("animationend",ut),s$9(Qe,vt.join(" ")),Oe.delete(lt)}function nt(){if(!ge)return;const Qe=Oe.size>0;for(const lt of Re)Je(lt.el);Oe.clear(),Qe&&Lt()}function ut(Qe){var lt;((lt=Qe.animationName)===null||lt===void 0?void 0:lt.substring(0,2))==="f-"&&(Je(Qe.target),Oe.size||(s$9(me,"in-transition"),!ye&&Math.abs(It.getPosition(!0)-Se)<.5&&(ye=!0,Ie("settle"))),Lt())}function it(Qe){var lt;if(Qe.defaultPrevented)return;const mt=Qe.composedPath()[0];if(mt.closest("[data-carousel-go-prev]"))return m$3(Qe),void It.prev();if(mt.closest("[data-carousel-go-next]"))return m$3(Qe),void It.next();const vt=mt.closest("[data-carousel-go-to]");if(vt)return m$3(Qe),void It.goTo(parseFloat(vt.dataset.carouselGoTo||"")||0);if(mt.closest("[data-carousel-download]")){m$3(Qe);const wt=(lt=Be[Ee])===null||lt===void 0?void 0:lt.slides[0];if(wt&&(wt.downloadSrc||wt.type==="image"&&wt.src)){const xt=wt.downloadFilename,St=document.createElement("a"),rt=wt.downloadSrc||wt.src||"";St.href=rt,St.target="_blank",St.download=xt||rt,St.click()}}else Ie("click",Qe)}function st(Qe){var lt;const mt=Qe.el;mt&&((lt=mt.querySelector(".f-spinner"))===null||lt===void 0||lt.remove())}function $t(Qe){var lt;const mt=Qe.el;mt&&((lt=mt.querySelector(".f-html.is-error"))===null||lt===void 0||lt.remove(),s$9(mt,"has-error"))}function kt(Qe){var lt;Qe||(Qe=(lt=Be[Ee])===null||lt===void 0?void 0:lt.slides[0]);const mt=Qe==null?void 0:Qe.el;if(!mt)return;let vt=we("formatCaption",Qe);vt===void 0&&(vt=Qe.caption),vt=vt||"";const wt=we("captionEl");if(wt&&wt instanceof HTMLElement){if(Qe.index!==Ee)return;if(t$9(vt)&&(wt.innerHTML=Ce(vt+"")),vt instanceof HTMLElement){if(vt.parentElement===wt)return;wt.innerHTML="",vt.parentElement&&(vt=vt.cloneNode(!0)),wt.append(vt)}return}if(!vt)return;let xt=Qe.captionEl||mt.querySelector(".f-caption");!xt&&vt instanceof HTMLElement&&vt.classList.contains("f-caption")&&(xt=vt),xt||(xt=document.createElement("div"),s$a(xt,"f-caption"),t$9(vt)?xt.innerHTML=Ce(vt+""):vt instanceof HTMLElement&&(vt.parentElement&&(vt=vt.cloneNode(!0)),xt.append(vt)));const St=`f-caption-${y$4}_${Qe.index}`;xt.setAttribute("id",St),xt.dataset.selectable="true",s$a(mt,"has-caption"),mt.setAttribute("aria-labelledby",St),Qe.captionEl=xt,mt.insertAdjacentElement("beforeend",xt)}function Mt(Qe,lt={}){var mt,vt;let{transition:wt,tween:xt}=Object.assign({transition:ue.transition,tween:ue.tween},lt||{});if(!me||!re)return;const St=Be.length;if(!St||function(pt,Tt){var Ft,Ot,Ht,Zt;if(!(me&&re&&Tt&&t$9(Tt)&&Tt!=="tween")||((Ft=Be[Ee])===null||Ft===void 0?void 0:Ft.slides.length)>1)return!1;const an=Be.length;let rn=pt>Ee?1:-1;pt=pe?(pt%an+an)%an:t$8(0,pt,an-1),_e&&(rn*=-1);const on=(Ot=Be[Ee])===null||Ot===void 0?void 0:Ot.slides[0],Bt=on==null?void 0:on.index,Ct=(Ht=Be[pt])===null||Ht===void 0?void 0:Ht.slides[0],Nt=Ct==null?void 0:Ct.index,Jt=(Zt=Be[pt])===null||Zt===void 0?void 0:Zt.pos;if(Nt===void 0||Bt===void 0||Bt===Nt||$e===Jt||Math.abs(At()-((Ct==null?void 0:Ct.dim)||0))>1)return!1;ye=!1,re.pause(),nt(),s$a(me,"in-transition"),$e=Se=Jt;const Yt=ct(on),sn=ct(Ct);return Ge(),Yt&&(Oe.add(Bt),Yt.style.transform="",Yt.addEventListener("animationend",ut),s$9(Yt,ue.classes.isSelected),Yt.inert=!1,s$a(Yt,`f-${Tt}Out to-${rn>0?"next":"prev"}`)),sn&&(Oe.add(Nt),sn.style.transform="",sn.addEventListener("animationend",ut),s$a(sn,ue.classes.isSelected),sn.inert=!1,s$a(sn,`f-${Tt}In from-${rn>0?"prev":"next"}`)),Lt(),!0}(Qe,wt))return;Qe=pe?(Qe%St+St)%St:t$8(0,Qe,St-1),Se=((mt=Be[Qe||0])===null||mt===void 0?void 0:mt.pos)||0;const bt=re.isRunning()?re.getEndValues().pos:$e;if(Math.abs(Se-bt)<1)return $e=Se,Ee!==Qe&&(kt(),ie=Ee,Ee=Qe,Ke(),et(),Ie("change",Ee,ie)),Lt(),void(ye||(ye=!0,Ie("settle")));if(re.pause(),nt(),pe){const pt=Pt(),Tt=Math.floor((bt-((vt=Be[0])===null||vt===void 0?void 0:vt.pos))/pt)||0,Ft=Se+Tt*pt;Se=[Ft+pt,Ft,Ft-pt].reduce(function(Ot,Ht){return Math.abs(Ht-bt)<Math.abs(Ot-bt)?Ht:Ot})}wt!==!1&&t$7(xt)?re.spring(r$5({},ue.tween,xt)).from({pos:$e}).to({pos:Se}).start():($e=Se,Ge(),Lt(),ye||(ye=!0,Ie("settle")))}function Dt(Qe){var lt;let mt=$e;if(pe&&Qe!==!0){const vt=Pt();mt-=(Math.floor(($e-((lt=Be[0])===null||lt===void 0?void 0:lt.pos)||0)/vt)||0)*vt}return mt}function Lt(){var Qe;if(!me||!ge)return;Pe=_t();const lt=new Set,mt=[],vt=Be[Ee],wt=ue.setTransform;let xt;for(const St of Re){const rt=Oe.has(St.index),bt=Pe.indexOf(St)>-1,pt=((Qe=vt==null?void 0:vt.slides)===null||Qe===void 0?void 0:Qe.indexOf(St))>-1;if(St.isVirtual&&!rt&&!bt)continue;let Tt=ct(St);if(Tt&&(mt.push(St),pt&<.add(Tt),we("adaptiveHeight")&&pt)){const Ft=(Tt.firstElementChild||Tt).getBoundingClientRect().height;xt=xt==null?Ft:Math.max(xt,Ft)}}ge&&xt&&(ge.style.height=`${xt}px`),[...e$4(ge,`.${ue.classes.slide}`)].forEach(St=>{s$8(St,ue.classes.isSelected,lt.has(St));const rt=ze[parseInt(St.getAttribute("index")||"-1")];if(!rt)return St.remove(),void Je(St);const bt=Oe.has(rt.index),pt=Pe.indexOf(rt)>-1;if(rt.isVirtual&&!bt&&!pt)return void ht(rt);if(St.inert=!pt,wt===!1)return;let Tt=rt.pos?Math.round(1e4*rt.pos)/1e4:0,Ft=0,Ot=0,Ht=0,Zt=0;bt||(Ft=be?0:_e?-1*Tt:Tt,Ot=be?Tt:0,Ht=t$5(Ft,0,rt.dim,0,100),Zt=t$5(Ot,0,rt.dim,0,100)),wt instanceof Function&&!bt?wt(It,rt,{x:Ft,y:Ot,xPercent:Ht,yPercent:Zt}):St.style.transform=Ft||Ot?`translate3d(${Ht}%, ${Zt}%,0)`:""}),Ie("render",mt)}function Gt(){me==null||me.removeEventListener("click",it),document.removeEventListener("mousemove",qe),Oe.clear(),oe==null||oe.disconnect(),oe=void 0;for(const Qe of ze){let lt=Qe.el;lt&&n$b(lt)&&(Qe.state=void 0,st(Qe),$t(Qe),Qe.isVirtual?(ht(Qe),Qe.el=void 0):(Je(lt),lt.style.transform="",ge&&!ge.contains(lt)&&ge.appendChild(lt)))}for(const Qe of Object.values(ve))Qe==null||Qe.destroy();ve={},ae==null||ae.destroy(),ae=void 0,re==null||re.destroy(),re=void 0;for(const[Qe,lt]of Object.entries(ue.classes||{}))Qe!=="container"&&s$9(me,lt);s$9(ge,"is-draggable")}function Rt(){return pe||Ee>0}function Xt(){return pe||Ee<Be.length-1}const It={add:function(Qe,lt){var mt;let vt=$e;const wt=Ee,xt=Pt(),St=re!=null&&re.isRunning()?re.getEndValues().pos:$e,rt=xt&&Math.floor((St-(((mt=Be[0])===null||mt===void 0?void 0:mt.pos)||0))/xt)||0;return Ze(Qe,lt),We(Te),Ye(),re&&xt&&(wt===Ee&&(vt-=rt*xt),vt===Se?$e=Se:re.spring({clamp:!0,mass:1,tension:300,friction:25,restDelta:1,restSpeed:1}).from({pos:vt}).to({pos:Se}).start()),Lt(),It},canGoPrev:Rt,canGoNext:Xt,destroy:function(){return Ie("destroy"),window.removeEventListener("resize",Ue),Gt(),Fe.clear(),me=null,Be=[],ze=[],ue=Object.assign({},h$5),ve={},Re=[],le=void 0,Te="*",ce=2,It},emit:Ie,filter:function(Qe="*"){return We(Qe),Ye(),$e=t$8(Le,$e,Ve),Lt(),Ie("filter",Qe),It},getContainer:function(){return me},getGapDim:Et,getGestures:function(){return ae},getLastMouseMove:function(){return b$3},getOption:function(Qe){return we(Qe)},getOptions:function(){return ue},getPage:function(){return Be[Ee]},getPageIndex:function(Qe){if(Qe!==void 0){for(const lt of Be||[])for(const mt of lt.slides)if(mt.index===Qe)return lt.index;return-1}return Ee},getPageIndexFromPosition:yt,getPageProgress:function(Qe,lt){var mt;Qe===void 0&&(Qe=Ee);const vt=Be[Qe];if(!vt)return Qe>Ee?-1:1;const wt=Pt(),xt=Et();let St=vt.pos,rt=Dt();if(pe&<!==!0){const bt=Math.floor((rt-((mt=Be[0])===null||mt===void 0?void 0:mt.pos))/wt)||0;rt-=bt*wt,St=[St+wt,St,St-wt].reduce(function(pt,Tt){return Math.abs(Tt-rt)<Math.abs(pt-rt)?Tt:pt})}return(rt-St)/(vt.dim+xt)||0},getPageVisibility:function(Qe){var lt;Qe===void 0&&(Qe=Ee);const mt=Be[Qe];if(!mt)return Qe>Ee?-1:1;const vt=Dt(),wt=At();let xt=mt.pos;if(pe){const St=Pt(),rt=xt+(Math.floor((vt-((lt=Be[0])===null||lt===void 0?void 0:lt.pos))/St)||0)*St;xt=[rt+St,rt,rt-St].reduce(function(bt,pt){return Math.abs(pt-vt)<Math.abs(bt-vt)?pt:bt})}return xt>vt&&xt+mt.dim<vt+wt?1:xt<vt?(xt+mt.dim-vt)/mt.dim||0:xt+mt.dim>vt+wt&&(vt+wt-xt)/mt.dim||0},getPages:function(){return Be},getPlugins:function(){return ve},getPosition:Dt,getSlides:function(){return ze},getState:function(){return ce},getTotalSlideDim:Pt,getTween:function(){return re},getViewport:function(){return ge},getViewportDim:At,getVisibleSlides:function(Qe){return Qe===void 0?Pe:_t(Qe)},goTo:Mt,hasNavigated:function(){return ie!==void 0},hideError:$t,hideLoading:st,init:function(){if(!ee||!n$b(ee))throw new Error("No Element found");return ce!==0&&(Gt(),ce=0),me=ee,de=te,window.removeEventListener("resize",Ue),de.breakpoints&&window.addEventListener("resize",Ue),Ue(),It},isInfinite:function(){return pe},isInTransition:function(){return Oe.size>0},isRTL:function(){return _e},isSettled:function(){return ye},isVertical:function(){return be},localize:function(Qe,lt=[]){return Ce(Qe,lt)},next:function(Qe={}){return Mt(Ee+1,Qe),It},off:function(Qe,lt){for(const mt of Qe instanceof Array?Qe:[Qe])Fe.has(mt)&&Fe.set(mt,Fe.get(mt).filter(vt=>vt!==lt));return It},on:function(Qe,lt){for(const mt of Qe instanceof Array?Qe:[Qe])Fe.set(mt,[...Fe.get(mt)||[],lt]);return It},prev:function(Qe={}){return Mt(Ee-1,Qe),It},reInit:function(Qe={},lt={}){return Gt(),ce=0,le=void 0,Te="*",te=Qe,de=Qe,ne=lt,Ue(),It},remove:function(Qe){Qe===void 0&&(Qe=ze.length-1);const lt=ze[Qe];return lt&&(Ie("removeSlide",lt),lt.el&&(Je(lt.el),lt.el.remove(),lt.el=void 0),ze.splice(Qe,1),We(Te),Ye(),$e=t$8(Le,$e,Ve),Lt()),It},setPosition:function(Qe){$e=Qe,Ge(),Lt()},showError:function(Qe,lt){st(Qe),$t(Qe);const mt=Qe.el;if(mt){const vt=document.createElement("div");s$a(vt,"f-html"),s$a(vt,"is-error"),vt.innerHTML=Ce(lt||"<p>{{ERROR}}</p>"),Qe.htmlEl=vt,s$a(mt,"has-html"),s$a(mt,"has-error"),mt.insertAdjacentElement("afterbegin",vt),Ie("contentReady",Qe)}return It},showLoading:function(Qe){const lt=Qe.el,mt=lt==null?void 0:lt.querySelector(".f-spinner");if(!lt||mt)return It;const vt=we("spinnerTpl"),wt=e$9(vt);return wt&&(s$a(wt,"f-spinner"),lt.insertAdjacentElement("beforeend",wt)),It},version:"6.1.3"};return It};E$3.l10n={en_EN:o$7},E$3.getDefaults=()=>h$5;/*! License details at fancyapps.com/license */const t$4=(ee=!0,te="--f-scrollbar-compensate",ne="--f-body-margin",ae="hide-scrollbar")=>{const re=document,oe=re.body,ie=re.documentElement;if(ee){if(oe.classList.contains(ae))return;let le=window.innerWidth-ie.getBoundingClientRect().width;le<0&&(le=0),ie.style.setProperty(te,`${le}px`);const ce=parseFloat(window.getComputedStyle(oe).marginRight);ce&&oe.style.setProperty(ne,`${ce}px`),oe.classList.add(ae)}else oe.classList.remove(ae),oe.style.setProperty(ne,""),re.documentElement.style.setProperty(te,"")};/*! License details at fancyapps.com/license */function e$3(){return!(typeof window>"u"||!window.document||!window.document.createElement)}/*! License details at fancyapps.com/license */const n$7=function(ee="",te="",ne=""){return ee.split(te).join(ne)};/*! License details at fancyapps.com/license */const a$7={tpl:ee=>`<img class="f-panzoom__content"
|
|
14
|
+
</svg>`}};return re[ne.value]||re.marketing});return(re,oe)=>(e$b.openBlock(),e$b.createElementBlock("div",{class:e$b.normalizeClass(["gap-2 font-semibold flex justify-center items-center min-w-19 lg:min-w-32 w-0 p-1.5 rounded-lg transition-colors",ae.value.colorClass])},[ee.showIcon?(e$b.openBlock(),e$b.createElementBlock("div",{key:0,class:"flex-shrink-0 hidden lg:block",innerHTML:ae.value.icon},null,8,_hoisted_1$2x)):e$b.createCommentVNode("",!0),e$b.createElementVNode("span",_hoisted_2$2e,e$b.toDisplayString(ae.value.label),1)],2))}},_sfc_main$2K={__name:"DepartmentIcon",props:{color:{type:String,default:""}},setup(ee){return(te,ne)=>(e$b.openBlock(),e$b.createElementBlock("svg",{style:e$b.normalizeStyle(ee.color?{color:ee.color}:void 0),"aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"currentColor",viewBox:"0 0 24 24"},[...ne[0]||(ne[0]=[e$b.createElementVNode("path",{"fill-rule":"evenodd",d:"M4 4a1 1 0 0 1 1-1h14a1 1 0 1 1 0 2v14a1 1 0 1 1 0 2H5a1 1 0 1 1 0-2V5a1 1 0 0 1-1-1Zm5 2a1 1 0 0 0-1 1v1a1 1 0 0 0 1 1h1a1 1 0 0 0 1-1V7a1 1 0 0 0-1-1H9Zm5 0a1 1 0 0 0-1 1v1a1 1 0 0 0 1 1h1a1 1 0 0 0 1-1V7a1 1 0 0 0-1-1h-1Zm-5 4a1 1 0 0 0-1 1v1a1 1 0 0 0 1 1h1a1 1 0 0 0 1-1v-1a1 1 0 0 0-1-1H9Zm5 0a1 1 0 0 0-1 1v1a1 1 0 0 0 1 1h1a1 1 0 0 0 1-1v-1a1 1 0 0 0-1-1h-1Zm-3 4a2 2 0 0 0-2 2v3h2v-3h2v3h2v-3a2 2 0 0 0-2-2h-2Z","clip-rule":"evenodd"},null,-1)])],4))}},useDepartmentStore=pinia.defineStore("department",{state:()=>({departments:[],count:null,loaded:!1}),actions:{async fetchDepartments(ee=""){try{let te=`${departmentUrl}`;const ne=await api.get(te);this.departments=ne.data,this.count=this.departments.length,this.loaded=!0}catch(te){console.log("Erro ao buscar departamentos:",te)}},removeDepartments(ee){this.departments=this.departments.filter(te=>te.id!==ee)},addDepartments(ee){const te=this.departments.findIndex(ne=>ne.id===ee.id);te!==-1?this.departments[te]=ee:this.departments.push(ee)}}}),_hoisted_1$2w=["title"],_hoisted_2$2d={class:"whitespace-nowrap text-sm font-medium"},_hoisted_3$1_={class:"flex justify-center"},_hoisted_4$1O={class:"flex justify-center"},_hoisted_5$1E={class:"flex-shrink-0 hidden lg:block"},_hoisted_6$1v={key:0,class:"size-4","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},_hoisted_7$1o={key:1,class:"size-4","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},_hoisted_8$1e={key:2,class:"size-4","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},_hoisted_9$18={key:3,class:"size-4","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},_hoisted_10$11={class:"text-xs"},_hoisted_11$U={class:"mx-auto flex justify-center"},_hoisted_12$P={class:"w-72 rounded-lg p-2"},_hoisted_13$H={key:0,class:"space-y-2"},_hoisted_14$F={class:"font-medium text-slate-100 text-sm"},_hoisted_15$A={key:1,class:"text-xs text-slate-400 text-center py-2"},_hoisted_16$y={class:"flex items-center gap-2 px-3 py-1.5 bg-gradient-to-r from-blue-500/10 to-blue-400/10 border border-blue-500/30 rounded-lg cursor-pointer hover:border-blue-300/50 transition-all"},_hoisted_17$r={class:"text-sm font-semibold text-blue-500"},_hoisted_18$r={class:"z-50 flex items-center justify-center gap-2"},_hoisted_19$o={class:"border border-base-200 rounded-md overflow-hidden"},_hoisted_20$n={class:"flex justify-between items-center p-2 sticky top-0 bg-base-200 z-10"},_hoisted_21$k={class:"font-semibold text-sm"},_hoisted_22$i=["disabled","onClick"],_hoisted_23$c=["onClick"],_hoisted_24$b=["onClick"],_hoisted_25$9=["onClick"],_sfc_main$2J={__name:"templateTable",props:{instanceId:{type:[String,Number],required:!0},departmentId:{type:[String,Number],default:null},extraParams:{type:Object,default:()=>({})},mode:{type:String,default:"manage",validator:ee=>["manage","send"].includes(ee)},showLang:{type:Boolean,default:!1},showDepartments:{type:Boolean,default:!1},itemsPerPage:{type:Number,default:15}},emits:["send","edit","delete","copy-id"],setup(ee,{expose:te,emit:ne}){const ae=ee,re=e$b.ref([]),oe=e$b.ref(!1),ie=e$b.ref(1),le=e$b.ref(0),ce=e$b.ref({}),de=useDepartmentStore(),ue=e$b.computed(()=>{const pe=[{key:"name",label:"Nome",width:"w-64",headerAlign:"left",filter:{type:"text",placeholder:"Buscar nome..."}}];return ae.showLang&&pe.push({key:"lang",label:"Idioma",width:"w-20",headerAlign:"left",filter:{type:"select",key:"language",options:[{value:"pt_BR",label:"Português"},{value:"en",label:"Inglês"}]}}),pe.push({key:"category",label:"Categoria",width:"w-32",filter:{type:"select",options:[{value:"MARKETING",label:"Marketing"},{value:"UTILITY",label:"Utilidade"},{value:"AUTHENTICATION",label:"Autenticação"}]}},{key:"status",label:"Status",width:"w-32",filter:{type:"select",options:[{value:"PENDING",label:"Pendente"},{value:"APPROVED",label:"Aprovado"},{value:"REJECTED",label:"Reprovado"},{value:"PENDING_DELETION",label:"Ag. deleção"}]}}),ae.showDepartments&&pe.push({key:"department",label:"Departamento(s)",width:"w-28",headerAlign:"center",filter:{type:"multiselect",key:"departments",options:de.departments.map(_e=>({value:String(_e.id),label:_e.name}))}}),pe.push({key:"actions",label:"Ações",width:"w-44",cellClass:"whitespace-nowrap"}),pe});async function ve(){oe.value=!0;try{const pe=new URLSearchParams;pe.set("page",ie.value),pe.set("instance",ae.instanceId),ae.departmentId&&pe.set("department",ae.departmentId);for(const[be,ke]of Object.entries(ce.value))Array.isArray(ke)?ke.length&&pe.set(be,ke.join(",")):ke!=null&&ke!==""&&pe.append(be,ke);if(ae.extraParams)for(const[be,ke]of Object.entries(ae.extraParams))Array.isArray(ke)?ke.forEach($e=>pe.append(be,$e)):ke!=null&&ke!==""&&pe.append(be,ke);const{data:_e}=await api.get(`${templateUrl}?${pe.toString()}`);re.value=_e.results,le.value=_e.count}catch{re.value=[],le.value=0}finally{oe.value=!1}}function me(pe){ce.value=pe,ie.value=1,ve()}function ge(pe){ie.value=pe,ve()}e$b.watch(()=>[ae.instanceId,ae.departmentId,ae.extraParams],()=>{ie.value=1,ve()},{deep:!0}),e$b.onMounted(()=>{ve(),ae.showDepartments&&!de.loaded&&de.fetchDepartments()});function fe(pe){switch(pe==null?void 0:pe.toLowerCase()){case"pending":return"Pendente";case"approved":return"Aprovado";case"rejected":return"Reprovado";case"pending_deletion":return"Aguardando deleção";default:return pe??""}}return te({refresh:ve}),(pe,_e)=>{const be=e$b.resolveComponent("Popper");return e$b.openBlock(),e$b.createBlock(baseTable,{columns:ue.value,rows:re.value,loading:oe.value,"total-items":le.value,"items-per-page":ee.itemsPerPage,"current-page":ie.value,filters:ce.value,"empty-text":"Nenhum modelo de mensagem disponível","onUpdate:currentPage":ge,"onUpdate:filters":me},e$b.createSlots({"empty-action":e$b.withCtx(()=>[e$b.renderSlot(pe.$slots,"empty-action",{},void 0,!0)]),"cell-name":e$b.withCtx(({row:ke})=>[e$b.createElementVNode("span",{title:ke.name,class:"block truncate text-left max-w-64 whitespace-nowrap font-medium text-sm"},e$b.toDisplayString(ke.name),9,_hoisted_1$2w)]),"cell-category":e$b.withCtx(({row:ke})=>[e$b.createElementVNode("div",_hoisted_3$1_,[e$b.createVNode(_sfc_main$2L,{category:ke.category},null,8,["category"])])]),"cell-status":e$b.withCtx(({row:ke})=>{var $e,ye,Ee,Se,Le,Ve,Te,ze;return[e$b.createElementVNode("div",_hoisted_4$1O,[e$b.createElementVNode("div",{class:e$b.normalizeClass([{"bg-orange-500/20 border border-orange-500 text-orange-300 dark:text-orange-500 hover:text-orange-200 hover:border-orange-200":(($e=ke.status)==null?void 0:$e.toLowerCase())==="pending","bg-green-600/20 border border-green-600 dark:text-green-500 text-green-300 hover:text-green-200 hover:border-green-200":((ye=ke.status)==null?void 0:ye.toLowerCase())==="approved","bg-red-500/20 border border-red-500 text-red-300 dark:text-red-500 hover:text-red-200 hover:border-red-200":((Ee=ke.status)==null?void 0:Ee.toLowerCase())==="rejected"||((Se=ke.status)==null?void 0:Se.toLowerCase())==="pending_deletion"},"p-1.5 rounded-lg font-semibold text-xs flex items-center justify-center gap-2 min-w-19 lg:min-w-28 w-0 transition-colors"])},[e$b.createElementVNode("div",_hoisted_5$1E,[((Le=ke.status)==null?void 0:Le.toLowerCase())==="pending"?(e$b.openBlock(),e$b.createElementBlock("svg",_hoisted_6$1v,[..._e[0]||(_e[0]=[e$b.createElementVNode("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M12 8v4l3 3M3.22302 14C4.13247 18.008 7.71683 21 12 21c4.9706 0 9-4.0294 9-9 0-4.97056-4.0294-9-9-9-3.72916 0-6.92858 2.26806-8.29409 5.5M7 9H3V5"},null,-1)])])):((Ve=ke.status)==null?void 0:Ve.toLowerCase())==="rejected"?(e$b.openBlock(),e$b.createElementBlock("svg",_hoisted_7$1o,[..._e[1]||(_e[1]=[e$b.createElementVNode("path",{stroke:"currentColor","stroke-linecap":"round","stroke-width":"2",d:"m6 6 12 12m3-6a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"},null,-1)])])):((Te=ke.status)==null?void 0:Te.toLowerCase())==="approved"?(e$b.openBlock(),e$b.createElementBlock("svg",_hoisted_8$1e,[..._e[2]||(_e[2]=[e$b.createElementVNode("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m8.032 12 1.984 1.984 4.96-4.96m4.55 5.272.893-.893a1.984 1.984 0 0 0 0-2.806l-.893-.893a1.984 1.984 0 0 1-.581-1.403V7.04a1.984 1.984 0 0 0-1.984-1.984h-1.262a1.983 1.983 0 0 1-1.403-.581l-.893-.893a1.984 1.984 0 0 0-2.806 0l-.893.893a1.984 1.984 0 0 1-1.403.581H7.04A1.984 1.984 0 0 0 5.055 7.04v1.262c0 .527-.209 1.031-.581 1.403l-.893.893a1.984 1.984 0 0 0 0 2.806l.893.893c.372.372.581.876.581 1.403v1.262a1.984 1.984 0 0 0 1.984 1.984h1.262c.527 0 1.031.209 1.403.581l.893.893a1.984 1.984 0 0 0 2.806 0l.893-.893a1.985 1.985 0 0 1 1.403-.581h1.262a1.984 1.984 0 0 0 1.984-1.984V15.7c0-.527.209-1.031.581-1.403Z"},null,-1)])])):((ze=ke.status)==null?void 0:ze.toLowerCase())==="pending_deletion"?(e$b.openBlock(),e$b.createElementBlock("svg",_hoisted_9$18,[..._e[3]||(_e[3]=[e$b.createElementVNode("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M5 7h14m-9 3v8m4-8v8M10 3h4a1 1 0 0 1 1 1v3H9V4a1 1 0 0 1 1-1ZM6 7h12v13a1 1 0 0 1-1 1H7a1 1 0 0 1-1-1V7Z"},null,-1)])])):e$b.createCommentVNode("",!0)]),e$b.createElementVNode("span",_hoisted_10$11,e$b.toDisplayString(fe(ke.status)),1)],2)])]}),"cell-actions":e$b.withCtx(({row:ke})=>{var $e,ye;return[e$b.createElementVNode("main",_hoisted_18$r,[e$b.createVNode(be,{placement:"left",class:"preview-popper"},{content:e$b.withCtx(()=>[e$b.createElementVNode("div",_hoisted_19$o,[e$b.createElementVNode("div",_hoisted_20$n,[e$b.createElementVNode("p",_hoisted_21$k,e$b.toDisplayString(ke.name),1)]),e$b.renderSlot(pe.$slots,"preview",{template:ke},()=>[_e[5]||(_e[5]=e$b.createElementVNode("span",{class:"block p-4 text-xs text-gray-400 text-center"}," Sem pré-visualização disponível ",-1))],!0)])]),default:e$b.withCtx(()=>[_e[6]||(_e[6]=e$b.createElementVNode("button",{class:"group action-btn action-btn-info"},[e$b.createElementVNode("svg",{class:"size-4",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"},[e$b.createElementVNode("path",{d:"M10 12a2 2 0 100-4 2 2 0 000 4z"}),e$b.createElementVNode("path",{"fill-rule":"evenodd",d:"M.458 10C1.732 5.943 5.522 3 10 3s8.268 2.943 9.542 7c-1.274 4.057-5.064 7-9.542 7S1.732 14.057.458 10zM14 10a4 4 0 11-8 0 4 4 0 018 0z","clip-rule":"evenodd"})]),e$b.createElementVNode("span",{class:"pointer-events-none absolute right-0 -top-3 z-50 m-2 mx-auto -translate-x-1/3 rounded-md bg-slate-700 p-2 text-sm text-white opacity-0 transition-opacity duration-300 group-hover:opacity-100"},"Pré-visualizar")],-1))]),_:2},1024),ee.mode==="send"?(e$b.openBlock(),e$b.createElementBlock("button",{key:0,disabled:(($e=ke.status)==null?void 0:$e.toLowerCase())!=="approved",class:e$b.normalizeClass(["action-btn group",((ye=ke.status)==null?void 0:ye.toLowerCase())==="approved"?"action-btn-success":"action-btn-danger"]),onClick:Ee=>pe.$emit("send",ke)},[..._e[7]||(_e[7]=[e$b.createElementVNode("svg",{class:"size-4","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 14 16"},[e$b.createElementVNode("path",{d:"M0 .984v14.032a1 1 0 0 0 1.506.845l12.006-7.016a.974.974 0 0 0 0-1.69L1.506.139A1 1 0 0 0 0 .984Z"})],-1),e$b.createElementVNode("span",{class:"pointer-events-none absolute right-0 -top-3 z-50 m-2 mx-auto -translate-x-1/3 rounded-md bg-slate-700 p-2 text-sm text-white opacity-0 transition-opacity duration-300 group-hover:opacity-100"},"Enviar modelo",-1)])],10,_hoisted_22$i)):e$b.createCommentVNode("",!0),ee.mode==="manage"?(e$b.openBlock(),e$b.createElementBlock("button",{key:1,class:"group action-btn action-btn-success",onClick:Ee=>pe.$emit("edit",ke)},[..._e[8]||(_e[8]=[e$b.createElementVNode("svg",{class:"size-4",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"},[e$b.createElementVNode("path",{d:"M13.586 3.586a2 2 0 112.828 2.828l-.793.793-2.828-2.828.793-.793zM11.379 5.793L3 14.172V17h2.828l8.38-8.379-2.83-2.828z"})],-1),e$b.createElementVNode("span",{class:"pointer-events-none absolute right-0 -top-3 z-50 m-2 mx-auto -translate-x-1/3 rounded-md bg-slate-700 p-2 text-sm text-white opacity-0 transition-opacity duration-300 group-hover:opacity-100"},"Editar Template",-1)])],8,_hoisted_23$c)):e$b.createCommentVNode("",!0),ee.mode==="manage"?(e$b.openBlock(),e$b.createElementBlock("button",{key:2,class:"group action-btn action-btn-danger",onClick:Ee=>pe.$emit("delete",ke)},[..._e[9]||(_e[9]=[e$b.createElementVNode("svg",{class:"size-4",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor"},[e$b.createElementVNode("path",{d:"M0 0h24v24H0V0z",fill:"none"}),e$b.createElementVNode("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM8 9h8v10H8V9zm7.5-5l-1-1h-5l-1 1H5v2h14V4z"})],-1),e$b.createElementVNode("span",{class:"pointer-events-none absolute right-10 -top-3 z-50 m-2 mx-auto rounded-md bg-slate-700 p-2 text-sm text-white opacity-0 transition-opacity duration-300 group-hover:opacity-100"},"Excluir",-1)])],8,_hoisted_24$b)):e$b.createCommentVNode("",!0),ee.mode==="manage"?(e$b.openBlock(),e$b.createElementBlock("button",{key:3,class:"group action-btn action-btn-info",onClick:Ee=>pe.$emit("copy-id",ke)},[..._e[10]||(_e[10]=[e$b.createElementVNode("svg",{class:"size-4","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"currentColor",viewBox:"0 0 24 24"},[e$b.createElementVNode("path",{"fill-rule":"evenodd",d:"M7 9v6a4 4 0 0 0 4 4h4a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2h1v2Z","clip-rule":"evenodd"}),e$b.createElementVNode("path",{"fill-rule":"evenodd",d:"M13 3.054V7H9.2a2 2 0 0 1 .281-.432l2.46-2.87A2 2 0 0 1 13 3.054ZM15 3v4a2 2 0 0 1-2 2H9v6a2 2 0 0 0 2 2h7a2 2 0 0 0 2-2V5a2 2 0 0 0-2-2h-3Z","clip-rule":"evenodd"})],-1),e$b.createElementVNode("span",{class:"pointer-events-none absolute right-2 -top-3 z-50 m-2 mx-auto -translate-x-1/3 rounded-md bg-slate-700 p-2 text-sm text-white opacity-0 transition-opacity duration-300 group-hover:opacity-100"},"Copiar ID",-1)])],8,_hoisted_25$9)):e$b.createCommentVNode("",!0)]),e$b.renderSlot(pe.$slots,"extra-actions",{template:ke},void 0,!0)]}),_:2},[ee.showLang?{name:"cell-lang",fn:e$b.withCtx(({row:ke})=>[e$b.createElementVNode("span",_hoisted_2$2d,e$b.toDisplayString(ke.lang),1)]),key:"0"}:void 0,ee.showDepartments?{name:"cell-department",fn:e$b.withCtx(({row:ke})=>[e$b.createElementVNode("div",_hoisted_11$U,[e$b.createVNode(be,{placement:"top",arrow:!1,class:"tip-popper"},{content:e$b.withCtx(()=>{var $e;return[e$b.createElementVNode("section",_hoisted_12$P,[_e[4]||(_e[4]=e$b.createElementVNode("div",{class:"text-sm font-semibold text-slate-100 pb-2"}," Departamentos ",-1)),(($e=ke.department)==null?void 0:$e.length)>0?(e$b.openBlock(),e$b.createElementBlock("div",_hoisted_13$H,[(e$b.openBlock(!0),e$b.createElementBlock(e$b.Fragment,null,e$b.renderList(ke.department,ye=>(e$b.openBlock(),e$b.createElementBlock("div",{key:ye.id,class:"bg-slate-800/80 rounded-lg p-2 border border-slate-700/50 hover:border-blue-500/30 transition-all"},[e$b.createElementVNode("span",_hoisted_14$F,e$b.toDisplayString(ye.name),1)]))),128))])):(e$b.openBlock(),e$b.createElementBlock("div",_hoisted_15$A," Sem departamentos vinculados "))])]}),default:e$b.withCtx(()=>{var $e;return[e$b.createElementVNode("div",_hoisted_16$y,[e$b.createVNode(_sfc_main$2K,{class:"size-5 text-blue-400"}),e$b.createElementVNode("span",_hoisted_17$r,e$b.toDisplayString(($e=ke.department)==null?void 0:$e.length),1)])]}),_:2},1024)])]),key:"1"}:void 0]),1032,["columns","rows","loading","total-items","items-per-page","current-page","filters"])}}},templateTable=_export_sfc$1(_sfc_main$2J,[["__scopeId","data-v-07b01775"]]);function tryOnScopeDispose(ee){return e$b.getCurrentScope()?(e$b.onScopeDispose(ee),!0):!1}function toValue(ee){return typeof ee=="function"?ee():e$b.unref(ee)}const isClient=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const toString$2=Object.prototype.toString,isObject=ee=>toString$2.call(ee)==="[object Object]",noop=()=>{},isIOS=getIsIOS();function getIsIOS(){var ee,te;return isClient&&((ee=window==null?void 0:window.navigator)==null?void 0:ee.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((te=window==null?void 0:window.navigator)==null?void 0:te.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}function unrefElement(ee){var te;const ne=toValue(ee);return(te=ne==null?void 0:ne.$el)!=null?te:ne}const defaultWindow=isClient?window:void 0;function useEventListener$1(...ee){let te,ne,ae,re;if(typeof ee[0]=="string"||Array.isArray(ee[0])?([ne,ae,re]=ee,te=defaultWindow):[te,ne,ae,re]=ee,!te)return noop;Array.isArray(ne)||(ne=[ne]),Array.isArray(ae)||(ae=[ae]);const oe=[],ie=()=>{oe.forEach(ue=>ue()),oe.length=0},le=(ue,ve,me,ge)=>(ue.addEventListener(ve,me,ge),()=>ue.removeEventListener(ve,me,ge)),ce=e$b.watch(()=>[unrefElement(te),toValue(re)],([ue,ve])=>{if(ie(),!ue)return;const me=isObject(ve)?{...ve}:ve;oe.push(...ne.flatMap(ge=>ae.map(fe=>le(ue,ge,fe,me))))},{immediate:!0,flush:"post"}),de=()=>{ce(),ie()};return tryOnScopeDispose(de),de}let _iOSWorkaround=!1;function onClickOutside(ee,te,ne={}){const{window:ae=defaultWindow,ignore:re=[],capture:oe=!0,detectIframe:ie=!1}=ne;if(!ae)return noop;isIOS&&!_iOSWorkaround&&(_iOSWorkaround=!0,Array.from(ae.document.body.children).forEach(me=>me.addEventListener("click",noop)),ae.document.documentElement.addEventListener("click",noop));let le=!0;const ce=me=>re.some(ge=>{if(typeof ge=="string")return Array.from(ae.document.querySelectorAll(ge)).some(fe=>fe===me.target||me.composedPath().includes(fe));{const fe=unrefElement(ge);return fe&&(me.target===fe||me.composedPath().includes(fe))}}),ue=[useEventListener$1(ae,"click",me=>{const ge=unrefElement(ee);if(!(!ge||ge===me.target||me.composedPath().includes(ge))){if(me.detail===0&&(le=!ce(me)),!le){le=!0;return}te(me)}},{passive:!0,capture:oe}),useEventListener$1(ae,"pointerdown",me=>{const ge=unrefElement(ee);le=!ce(me)&&!!(ge&&!me.composedPath().includes(ge))},{passive:!0}),ie&&useEventListener$1(ae,"blur",me=>{setTimeout(()=>{var ge;const fe=unrefElement(ee);((ge=ae.document.activeElement)==null?void 0:ge.tagName)==="IFRAME"&&!(fe!=null&&fe.contains(ae.document.activeElement))&&te(me)},0)})].filter(Boolean);return()=>ue.forEach(me=>me())}const _hoisted_1$2v={class:"line-clamp-2 uppercase text-xs truncate text-white"},_hoisted_2$2c={key:0,class:"select_widget_lib"},_sfc_main$2I={__name:"primary_select",props:{config:{type:Object,default:{title:"select_primary"}}},emits:["closeSelect"],setup(ee,{emit:te}){const ne=ee,ae=e$b.ref(!1),re=e$b.ref(null);e$b.computed(()=>ne.selectConfig.some(le=>le.freeSlot));const oe=()=>{ae.value=!ae.value};return onClickOutside(re,()=>{ae.value&&(ae.value=!1)}),(le,ce)=>(e$b.openBlock(),e$b.createElementBlock("div",{ref_key:"target",ref:re,class:"relative w-full"},[e$b.createElementVNode("button",{onClick:oe,class:"bg-base-100 z-10 truncate flex items-center justify-between gap-6 p-2 rounded-md lg:mt-0 w-full shadow-md shadow-base-300"},[e$b.createElementVNode("div",null,[e$b.createElementVNode("p",_hoisted_1$2v,e$b.toDisplayString(ee.config.title),1)]),e$b.createElementVNode("div",null,[(e$b.openBlock(),e$b.createElementBlock("svg",{class:e$b.normalizeClass([ae.value?"rotate-180 transition-transform ease-in-out":"","w-3 h-3 text-white"]),xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24"},[...ce[0]||(ce[0]=[e$b.createElementVNode("path",{"fill-rule":"evenodd",d:"M18.4 10.3A2 2 0 0 0 17 7H7a2 2 0 0 0-1.5 3.3l4.9 5.9a2 2 0 0 0 3 0l5-6Z","clip-rule":"evenodd"},null,-1)])],2))])]),ae.value?(e$b.openBlock(),e$b.createElementBlock("section",_hoisted_2$2c,[e$b.createElementVNode("div",null,[e$b.renderSlot(le.$slots,"free-slot",{},void 0,!0)])])):e$b.createCommentVNode("",!0)],512))}},primarySelect=_export_sfc$1(_sfc_main$2I,[["__scopeId","data-v-265f04f1"]]),_hoisted_1$2u={key:0,class:"modal_head"},_hoisted_2$2b={class:"modal_responsive"},_hoisted_3$1Z={class:"flex min-h-full items-center justify-center text-center sm:p-0"},_hoisted_4$1N={class:"modal_tittle text-current bg-base-300 border-base-100"},_hoisted_5$1D={class:"flex items-center w-full"},_hoisted_6$1u=["innerHTML"],_hoisted_7$1n={class:"text-xl ml-1 font-semibold flex items-center gap-2"},_hoisted_8$1d={class:"bg-base-200"},_hoisted_9$17={class:"text-center"},_hoisted_10$10={class:"modal_end_button border-base-100 bg-base-300"},_sfc_main$2H={__name:"simple_modal",props:{isOpen:{type:Boolean,default:!1},header:{type:Object,default:{title:"title",svg:"<svg class='w-5 mr-2 text-primary inline-block' aria-hidden='true' xmlns='http://www.w3.org/2000/svg' fill='currentColor' viewBox='0 0 24 24'> <path d='M18 3h-5.7a2 2 0 0 0-1.4.6L3.6 11a2 2 0 0 0 0 2.8l6.6 6.6a2 2 0 0 0 2.8 0l7.4-7.5a2 2 0 0 0 .6-1.4V6a3 3 0 0 0-3-3Zm-2.4 6.4a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z' /> </svg>"}},size:{type:String,default:"md:w-1/2 xl:w-1/3"}},emits:["update:isOpen","close"],setup(ee,{emit:te}){e$b.useSlots();const ne=ee,ae=te,re=()=>{ae("update:isOpen",!ne.isOpen),ne.isOpen&&ae("close")};return(oe,ie)=>(e$b.openBlock(),e$b.createBlock(e$b.Transition,{"leave-active-class":"transition-opacity duration-200 ease-in","leave-from-class":"opacity-100","leave-to-class":"opacity-0","enter-active-class":"transition-opacity duration-200 ease-out","enter-from-class":"opacity-0","enter-to-class":"opacity-100"},{default:e$b.withCtx(()=>{var le,ce;return[ee.isOpen?(e$b.openBlock(),e$b.createElementBlock("div",_hoisted_1$2u,[ie[2]||(ie[2]=e$b.createElementVNode("div",{class:"modal-overlay absolute h-full w-full bg-gray-600 opacity-50"},null,-1)),e$b.createElementVNode("div",_hoisted_2$2b,[e$b.createElementVNode("div",_hoisted_3$1Z,[e$b.createElementVNode("div",{class:e$b.normalizeClass([ee.size,"z-50 w-full shadow-card rounded-2xl"])},[e$b.createElementVNode("div",_hoisted_4$1N,[e$b.createElementVNode("section",_hoisted_5$1D,[oe.$slots.header?e$b.renderSlot(oe.$slots,"header",{key:1},void 0,!0):(e$b.openBlock(),e$b.createElementBlock(e$b.Fragment,{key:0},[e$b.createElementVNode("span",{innerHTML:(le=ee.header)==null?void 0:le.svg},null,8,_hoisted_6$1u),e$b.createElementVNode("h3",_hoisted_7$1n,e$b.toDisplayString((ce=ee.header)==null?void 0:ce.title),1)],64))]),e$b.createElementVNode("button",{onClick:ie[0]||(ie[0]=de=>re()),class:"modal_close_button bg-base-200/40"},[...ie[1]||(ie[1]=[e$b.createElementVNode("svg",{class:"size-5","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},[e$b.createElementVNode("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M6 18 17.94 6M18 18 6.06 6"})],-1)])])]),e$b.createElementVNode("div",_hoisted_8$1d,[e$b.createElementVNode("div",_hoisted_9$17,[e$b.renderSlot(oe.$slots,"body",{},void 0,!0)])]),e$b.createElementVNode("div",_hoisted_10$10,[e$b.renderSlot(oe.$slots,"footer",{},void 0,!0)])],2)])])])):e$b.createCommentVNode("",!0)]}),_:3}))}},simpleModal=_export_sfc$1(_sfc_main$2H,[["__scopeId","data-v-171e94f2"]]),_hoisted_1$2t={class:"simple_card_header"},_hoisted_2$2a={key:0,class:"simple_card_icon",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 22 22",fill:"none"},_hoisted_3$1Y={key:1,class:"simple_card_icon",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 22 22",fill:"none"},_hoisted_4$1M={key:2,class:"simple_card_icon",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 22 22",fill:"none"},_hoisted_5$1C={key:3,class:"simple_card_icon","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 23 23"},_hoisted_6$1t={class:"simple_card_title"},_hoisted_7$1m={class:"simple_card_descripiton"},_sfc_main$2G={__name:"simple_card",props:{content:{type:Object,default:{title:"Title",description:"Coloque aqui a descrição"}},typeCard:{type:String,default:"default"}},setup(ee){const te=ee,ne=e$b.computed(()=>({simple_card_success:te.typeCard==="success",simple_card_info:te.typeCard==="info",simple_card_alert:te.typeCard==="alert",simple_card_error:te.typeCard==="error"}));return(ae,re)=>(e$b.openBlock(),e$b.createElementBlock("div",{class:e$b.normalizeClass([ne.value,"simple_card"])},[e$b.createElementVNode("div",_hoisted_1$2t,[ee.typeCard==="success"?(e$b.openBlock(),e$b.createElementBlock("svg",_hoisted_2$2a,[...re[0]||(re[0]=[e$b.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M0.25 10C0.25 4.61522 4.61522 0.25 10 0.25C15.3848 0.25 19.75 4.61522 19.75 10C19.75 15.3848 15.3848 19.75 10 19.75C4.61522 19.75 0.25 15.3848 0.25 10ZM13.6103 8.18593C13.8511 7.84887 13.773 7.38046 13.4359 7.1397C13.0989 6.89894 12.6305 6.97701 12.3897 7.31407L9.1543 11.8436L7.53033 10.2197C7.23744 9.92678 6.76256 9.92678 6.46967 10.2197C6.17678 10.5126 6.17678 10.9874 6.46967 11.2803L8.71967 13.5303C8.87556 13.6862 9.09215 13.7656 9.31186 13.7474C9.53157 13.7293 9.73216 13.6153 9.8603 13.4359L13.6103 8.18593Z",fill:"currentColor"},null,-1)])])):e$b.createCommentVNode("",!0),ee.typeCard==="info"?(e$b.openBlock(),e$b.createElementBlock("svg",_hoisted_3$1Y,[...re[1]||(re[1]=[e$b.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M0.25 10C0.25 4.61522 4.61522 0.25 10 0.25C15.3848 0.25 19.75 4.61522 19.75 10C19.75 15.3848 15.3848 19.75 10 19.75C4.61522 19.75 0.25 15.3848 0.25 10ZM10 6.25C10.4142 6.25 10.75 6.58579 10.75 7V10.75C10.75 11.1642 10.4142 11.5 10 11.5C9.58579 11.5 9.25 11.1642 9.25 10.75V7C9.25 6.58579 9.58579 6.25 10 6.25ZM10 14.5C10.4142 14.5 10.75 14.1642 10.75 13.75C10.75 13.3358 10.4142 13 10 13C9.58579 13 9.25 13.3358 9.25 13.75C9.25 14.1642 9.58579 14.5 10 14.5Z",fill:"currentColor"},null,-1)])])):e$b.createCommentVNode("",!0),ee.typeCard==="alert"?(e$b.openBlock(),e$b.createElementBlock("svg",_hoisted_4$1M,[...re[2]||(re[2]=[e$b.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M8.40123 2.0034C9.55572 0.0022862 12.4439 0.0022856 13.5983 2.0034L20.9527 14.7509C22.1065 16.7509 20.6631 19.2501 18.3541 19.2501H3.64546C1.33649 19.2501 -0.106939 16.7509 1.04691 14.7509L8.40123 2.0034ZM11 7.25C11.4142 7.25 11.75 7.58579 11.75 8V11.75C11.75 12.1642 11.4142 12.5 11 12.5C10.5858 12.5 10.25 12.1642 10.25 11.75V8C10.25 7.58579 10.5858 7.25 11 7.25ZM11 15.5C11.4142 15.5 11.75 15.1642 11.75 14.75C11.75 14.3358 11.4142 14 11 14C10.5858 14 10.25 14.3358 10.25 14.75C10.25 15.1642 10.5858 15.5 11 15.5Z",fill:"currentColor"},null,-1)])])):e$b.createCommentVNode("",!0),ee.typeCard==="error"?(e$b.openBlock(),e$b.createElementBlock("svg",_hoisted_5$1C,[...re[3]||(re[3]=[e$b.createElementVNode("path",{"fill-rule":"evenodd",d:"M2 12C2 6.477 6.477 2 12 2s10 4.477 10 10-4.477 10-10 10S2 17.523 2 12Zm7.707-3.707a1 1 0 0 0-1.414 1.414L10.586 12l-2.293 2.293a1 1 0 1 0 1.414 1.414L12 13.414l2.293 2.293a1 1 0 0 0 1.414-1.414L13.414 12l2.293-2.293a1 1 0 0 0-1.414-1.414L12 10.586 9.707 8.293Z","clip-rule":"evenodd"},null,-1)])])):e$b.createCommentVNode("",!0),e$b.createElementVNode("p",_hoisted_6$1t,e$b.toDisplayString(ee.content.title),1)]),e$b.createElementVNode("section",_hoisted_7$1m,[e$b.createElementVNode("p",null,e$b.toDisplayString(ee.content.description),1)])],2))}},FRAME_LAYER_OPTIONS=Object.freeze({ring:[{key:"gradient",label:"Gradiente"},{key:"rainbow",label:"Arco-íris"},{key:"neon",label:"Neon"},{key:"double",label:"Aro duplo"},{key:"solid",label:"Cor sólida"},{key:"arc",label:"Aro de assinatura",locked:!0}],ornament:[{key:"none",label:"Sem ornamento"},{key:"wings",label:"Asas"},{key:"crown",label:"Coroa"},{key:"holly",label:"Azevinho"},{key:"bow",label:"Laço"},{key:"flowers",label:"Flores"},{key:"cat",label:"Gatinho"},{key:"runes",label:"Runas",locked:!0},{key:"bolt",label:"Raio",locked:!0},{key:"heart",label:"Coração",locked:!0},{key:"bars",label:"Barras",locked:!0},{key:"blade",label:"Lâmina",locked:!0},{key:"claw",label:"Garra",locked:!0},{key:"crest",label:"Emblema",locked:!0},{key:"orb",label:"Orbe",locked:!0}],effect:[{key:"none",label:"Sem efeito"},{key:"aura",label:"Aura"},{key:"flame",label:"Fogo"},{key:"frost",label:"Geada"},{key:"lightning",label:"Raios"}],particles:[{key:"none",label:"Sem partículas"},{key:"sparks",label:"Faíscas"},{key:"stars",label:"Estrelas"},{key:"snow",label:"Neve"},{key:"confetti",label:"Confetes"},{key:"hearts",label:"Corações"},{key:"petals",label:"Pétalas"},{key:"paws",label:"Patinhas"},{key:"whales",label:"Baleias",locked:!0}]}),RING_FINE=Object.freeze({gradient:{width:3,glow:.45,intensity:.65},rainbow:{width:5,glow:.78,intensity:.9},neon:{width:5,glow:.9,intensity:.92},double:{width:4,glow:.6,intensity:.8},solid:{width:3,glow:.3,intensity:.6},arc:{width:4,glow:.95,intensity:.95}}),ORNAMENT_FINE=Object.freeze({none:{intensity:.7,scale:1,offset_y:0,placement:"front"},wings:{intensity:.9,scale:1.08,offset_y:2,placement:"behind"},crown:{intensity:.95,scale:1,offset_y:0,placement:"front"},holly:{intensity:.8,scale:1,offset_y:0,placement:"front"},bow:{intensity:.9,scale:1,offset_y:0,placement:"front"},flowers:{intensity:.88,scale:1,offset_y:0,placement:"behind"},cat:{intensity:.95,scale:1,offset_y:0,placement:"behind"},runes:{intensity:1,scale:1,offset_y:0,placement:"front"},bolt:{intensity:1,scale:1,offset_y:0,placement:"front"},heart:{intensity:1,scale:.96,offset_y:0,placement:"front"},bars:{intensity:1,scale:.94,offset_y:0,placement:"front"},blade:{intensity:1,scale:1,offset_y:0,placement:"front"},claw:{intensity:1,scale:1,offset_y:0,placement:"front"},crest:{intensity:1,scale:1,offset_y:0,placement:"front"},orb:{intensity:1,scale:.98,offset_y:0,placement:"front"}}),EFFECT_FINE=Object.freeze({none:{intensity:.65,spread:1},aura:{intensity:.55,spread:1},flame:{intensity:.92,spread:.85},frost:{intensity:.75,spread:1},lightning:{intensity:.9,spread:1.1}}),PARTICLES_FINE=Object.freeze({none:{intensity:.65,density:7,size:1,orbit:1},sparks:{intensity:.9,density:10,size:.8,orbit:1.15},stars:{intensity:.7,density:8,size:1,orbit:1},snow:{intensity:.8,density:9,size:1,orbit:1},confetti:{intensity:.8,density:10,size:1,orbit:1},hearts:{intensity:.82,density:8,size:1,orbit:1.04},petals:{intensity:.78,density:9,size:1,orbit:1.08},paws:{intensity:.86,density:7,size:1,orbit:1.06},whales:{intensity:.9,density:3,size:1.15,orbit:1.08}}),MOTION_FINE=Object.freeze({none:{speed:.9,pulse:!0,flicker:!1},aura:{speed:.8,pulse:!0,flicker:!1},flame:{speed:1.35,pulse:!1,flicker:!0},frost:{speed:.65,pulse:!0,flicker:!1},lightning:{speed:1.5,pulse:!1,flicker:!0}}),DEFAULT_COLORS=["#7C3AED","#22D3EE","#F8FAFC"],HEX_COLOR=/^#[0-9a-f]{6}$/i;function clone(ee){return JSON.parse(JSON.stringify(ee))}function color(ee,te){return HEX_COLOR.test(String(ee||""))?String(ee).toUpperCase():te}function optionEntry(ee,te){return FRAME_LAYER_OPTIONS[ee].find(ne=>ne.key===te)}function optionExists(ee,te){return!!optionEntry(ee,te)}function frameVariantLocked(ee,te){var ne;return!!((ne=optionEntry(ee,te))!=null&&ne.locked)}const LAYERS=["ring","ornament","effect","particles"];function isSignatureFrameVisual(ee){const te=normalizeFrameVisual(ee);return LAYERS.some(ne=>frameVariantLocked(ne,te[ne].variant))}function defaultVariant(ee){return FRAME_LAYER_OPTIONS[ee][0].key}function normalizeLayer(ee,te,ne){var oe,ie,le;const ae=te&&typeof te=="object"?te:{},re=optionExists(ee,ae.variant)?ae.variant:defaultVariant(ee);return{enabled:ae.enabled!==!1&&re!=="none",variant:re,colors:[color((oe=ae.colors)==null?void 0:oe[0],ne[0]),color((ie=ae.colors)==null?void 0:ie[1],ne[1]),color((le=ae.colors)==null?void 0:le[2],ne[2])]}}function ringBackground(ee,te){const[ne,ae,re]=te;return ee==="solid"?ne:ee==="rainbow"?`conic-gradient(from var(--sm-frame-angle, 0deg), ${ne}, #F97316, ${ae}, #22C55E, #06B6D4, ${re}, #8B5CF6, #EC4899, ${ne})`:ee==="neon"?`conic-gradient(from var(--sm-frame-angle, 0deg), ${ne}, ${ae}, ${re}, ${ne})`:ee==="double"?`linear-gradient(135deg, ${ne}, ${ae})`:`linear-gradient(135deg, ${ne}, ${ae} 50%, ${re})`}function normalizeFrameVisual(ee={}){var de,ue,ve,me,ge,fe,pe;const te=ee&&typeof ee=="object"?ee:{},ne=[color((ue=(de=te.ring)==null?void 0:de.colors)==null?void 0:ue[0],DEFAULT_COLORS[0]),color((me=(ve=te.ring)==null?void 0:ve.colors)==null?void 0:me[1],DEFAULT_COLORS[1]),color((fe=(ge=te.ring)==null?void 0:ge.colors)==null?void 0:fe[2],DEFAULT_COLORS[2])],ae={...normalizeLayer("ring",te.ring,ne)};Object.assign(ae,RING_FINE[ae.variant]||RING_FINE.gradient);const re={...normalizeLayer("ornament",te.ornament,ne)};Object.assign(re,ORNAMENT_FINE[re.variant]||ORNAMENT_FINE.none);const oe={...normalizeLayer("effect",te.effect,ne)};Object.assign(oe,EFFECT_FINE[oe.variant]||EFFECT_FINE.none);const ie={...normalizeLayer("particles",te.particles,ne)};Object.assign(ie,PARTICLES_FINE[ie.variant]||PARTICLES_FINE.none);const le=MOTION_FINE[oe.variant]||MOTION_FINE.none,ce={enabled:((pe=te.motion)==null?void 0:pe.enabled)!==!1,speed:le.speed,rotation:!0,direction:"clockwise",pulse:le.pulse,flicker:le.flicker};return{ring:ae,ornament:re,effect:oe,particles:ie,motion:ce,css:ringBackground(ae.variant,ae.colors),animated:ce.enabled}}function frameRingBackground(ee){const te=normalizeFrameVisual(ee);return ringBackground(te.ring.variant,te.ring.colors)}function resolveFrameVisual(ee){return ee!=null&&ee.visual?normalizeFrameVisual(ee.visual):null}function preset(ee,te,ne,ae=""){return{id:ee,name:te,description:ae,visual:normalizeFrameVisual(ne)}}const FRAME_STUDIO_PRESETS=Object.freeze([preset("slate","Grafite",{ring:{variant:"solid",colors:["#94A3B8","#64748B","#CBD5E1"]},motion:{enabled:!1}}),preset("sunrise","Alvorada",{ring:{variant:"gradient",colors:["#FBBF24","#FB7185","#FDE68A"]},motion:{enabled:!1}}),preset("tide","Maré",{ring:{variant:"double",colors:["#38BDF8","#0EA5E9","#E0F2FE"]},motion:{enabled:!1}}),preset("pulse","Pulso",{ring:{variant:"neon",colors:["#8B5CF6","#22D3EE","#F8FAFC"]},motion:{enabled:!0}}),preset("halo","Halo",{ring:{variant:"gradient",colors:["#A78BFA","#F0ABFC","#F8FAFC"]},effect:{variant:"aura",colors:["#A78BFA","#F0ABFC","#FFFFFF"]},motion:{enabled:!0}}),preset("aurora","Aurora",{ring:{variant:"neon",colors:["#34D399","#38BDF8","#F472B6"]},effect:{variant:"aura",colors:["#34D399","#38BDF8","#F472B6"]},particles:{variant:"stars",colors:["#F8FAFC","#38BDF8","#F472B6"]},motion:{enabled:!0}}),preset("celestial-wings","Asas Celestiais",{ring:{variant:"double",colors:["#E0E7FF","#818CF8","#C4B5FD"]},ornament:{variant:"wings",colors:["#F8FAFC","#A5B4FC","#C4B5FD"]},effect:{variant:"aura",colors:["#A5B4FC","#C4B5FD","#FFFFFF"]},particles:{variant:"stars",colors:["#FFFFFF","#C4B5FD","#A5B4FC"]},motion:{enabled:!0}}),preset("inferno","Inferno",{ring:{variant:"neon",colors:["#EF4444","#F97316","#FDE047"]},effect:{variant:"flame",colors:["#EF4444","#F97316","#FDE047"]},particles:{variant:"sparks",colors:["#FDE047","#FB923C","#EF4444"]},motion:{enabled:!0}}),preset("winter","Inverno Encantado",{ring:{variant:"double",colors:["#E0F2FE","#38BDF8","#A5F3FC"]},ornament:{variant:"holly",colors:["#166534","#22C55E","#DC2626"]},effect:{variant:"frost",colors:["#E0F2FE","#7DD3FC","#FFFFFF"]},particles:{variant:"snow",colors:["#FFFFFF","#E0F2FE","#BAE6FD"]},motion:{enabled:!0}}),preset("champion","Campeão",{ring:{variant:"double",colors:["#F59E0B","#FDE68A","#D97706"]},ornament:{variant:"crown",colors:["#FDE68A","#F59E0B","#FFFFFF"]},effect:{variant:"aura",colors:["#F59E0B","#FDE68A","#FFFFFF"]},particles:{variant:"confetti",colors:["#F59E0B","#22D3EE","#F472B6"]},motion:{enabled:!0}}),preset("neon-storm","Tempestade Neon",{ring:{variant:"neon",colors:["#22D3EE","#6366F1","#D946EF"]},effect:{variant:"lightning",colors:["#67E8F9","#818CF8","#FFFFFF"]},particles:{variant:"sparks",colors:["#67E8F9","#C4B5FD","#FFFFFF"]},motion:{enabled:!0}}),preset("spectrum","Espectro",{ring:{variant:"rainbow",colors:["#FB7185","#FACC15","#60A5FA"]},motion:{enabled:!0}},"Cores espectrais em um aro contínuo."),preset("pastel","Pastel",{ring:{variant:"double",colors:["#5BCEFA","#F5A9B8","#FFFFFF"]},effect:{variant:"aura",colors:["#5BCEFA","#F5A9B8","#FFFFFF"]},particles:{variant:"stars",colors:["#FFFFFF","#5BCEFA","#F5A9B8"]},motion:{enabled:!0}},"Tons suaves e pontos de luz."),preset("charm","Encanto",{ring:{variant:"double",colors:["#F472B6","#C084FC","#FDF2F8"]},ornament:{variant:"bow",colors:["#F472B6","#C084FC","#FFFFFF"]},effect:{variant:"aura",colors:["#F9A8D4","#C4B5FD","#FFFFFF"]},particles:{variant:"hearts",colors:["#FB7185","#F472B6","#C084FC"]},motion:{enabled:!0}},"Formas delicadas e brilho sutil."),preset("garden","Jardim",{ring:{variant:"gradient",colors:["#FB7185","#D946EF","#FEF3C7"]},ornament:{variant:"flowers",colors:["#F9A8D4","#FDE68A","#FFFFFF"]},effect:{variant:"aura",colors:["#F9A8D4","#E879F9","#FFFFFF"]},particles:{variant:"petals",colors:["#FDA4AF","#F9A8D4","#FDE68A"]},motion:{enabled:!0}},"Elementos orgânicos em movimento."),preset("playful","Travessura",{ring:{variant:"neon",colors:["#A855F7","#EC4899","#67E8F9"]},ornament:{variant:"cat",colors:["#C084FC","#F9A8D4","#FDE68A"]},effect:{variant:"aura",colors:["#A855F7","#EC4899","#67E8F9"]},particles:{variant:"paws",colors:["#F9A8D4","#C084FC","#67E8F9"]},motion:{enabled:!0}},"Linhas expressivas e detalhes lúdicos.")]),FRAME_SIGNATURE_MODELS=Object.freeze([preset("signature-runes","Aro Ancestral",{ring:{variant:"arc",colors:["#FBBF24","#F59E0B","#FEF3C7"]},ornament:{variant:"runes",colors:["#FCD34D","#F59E0B","#FFFBEB"]},particles:{variant:"sparks",colors:["#FDE68A","#FBBF24","#FFFFFF"]},motion:{enabled:!0}}),preset("signature-bolt","Faísca Arcana",{ring:{variant:"arc",colors:["#FCD34D","#F59E0B","#FEF9C3"]},ornament:{variant:"bolt",colors:["#FDE047","#F59E0B","#FFFBEB"]},particles:{variant:"stars",colors:["#FEF9C3","#FDE047","#FFFFFF"]},motion:{enabled:!0}}),preset("signature-heart","Doce Encanto",{ring:{variant:"arc",colors:["#F472B6","#EC4899","#FFFFFF"]},ornament:{variant:"heart",colors:["#F9A8D4","#EC4899","#FFFFFF"]},particles:{variant:"hearts",colors:["#F9A8D4","#FB7185","#FFFFFF"]},motion:{enabled:!0}}),preset("signature-bars","Pulso Púrpura",{ring:{variant:"arc",colors:["#A78BFA","#8B5CF6","#DDD6FE"]},ornament:{variant:"bars",colors:["#C4B5FD","#8B5CF6","#F5F3FF"]},particles:{variant:"whales",colors:["#C4B5FD","#8B5CF6","#F5F3FF"]},motion:{enabled:!0}}),preset("signature-blade","Lâmina de Luz",{ring:{variant:"arc",colors:["#60A5FA","#3B82F6","#DBEAFE"]},ornament:{variant:"blade",colors:["#38BDF8","#64748B","#FFFFFF"]},particles:{variant:"sparks",colors:["#DBEAFE","#60A5FA","#FFFFFF"]},motion:{enabled:!0}}),preset("signature-claw","Rastro Ancestral",{ring:{variant:"arc",colors:["#4ADE80","#22C55E","#DCFCE7"]},ornament:{variant:"claw",colors:["#86EFAC","#16A34A","#F0FDF4"]},particles:{variant:"sparks",colors:["#DCFCE7","#4ADE80","#FFFFFF"]},motion:{enabled:!0}}),preset("signature-crest","Emblema Heroico",{ring:{variant:"arc",colors:["#EF4444","#B91C1C","#FFF1F2"]},ornament:{variant:"crest",colors:["#F87171","#B91C1C","#FFFFFF"]},particles:{variant:"sparks",colors:["#FFF1F2","#EF4444","#FFFFFF"]},motion:{enabled:!0}}),preset("signature-orb","Orbe Selvagem",{ring:{variant:"arc",colors:["#FDE047","#FACC15","#FEF9C3"]},ornament:{variant:"orb",colors:["#FACC15","#EF4444","#FFFFFF"]},particles:{variant:"sparks",colors:["#FEF9C3","#FDE047","#FFFFFF"]},motion:{enabled:!0}})]);function findFramePreset(ee){return FRAME_STUDIO_PRESETS.find(te=>te.id===ee)||FRAME_SIGNATURE_MODELS.find(te=>te.id===ee)||null}const DECORATIVE_LAYERS=["effect","particles","ornament"],FRAME_TIERS=Object.freeze([{layers:1,name:"Simples",hint:"nível 1–10"},{layers:2,name:"Composta",hint:"nível 10–20"},{layers:3,name:"Elaborada",hint:"nível 20–40"},{layers:4,name:"Lendária",hint:"nível 40+"}]);function activeDecorativeLayers(ee){return DECORATIVE_LAYERS.filter(te=>ee[te].enabled&&ee[te].variant!=="none")}function frameLayerCount(ee){return 1+activeDecorativeLayers(normalizeFrameVisual(ee)).length}function frameTier(ee){const te=frameLayerCount(ee);return FRAME_TIERS.find(ne=>ne.layers===te)||FRAME_TIERS[FRAME_TIERS.length-1]}const LADDER_STEP_LEVELS=Object.freeze({1:[10],2:[10,25],3:[5,15,30],4:[5,15,25,40]}),LADDER_STEP_SUFFIX=["I","II","III","IV"];function deriveFrameLadder(ee){const te=normalizeFrameVisual(ee==null?void 0:ee.visual),ne=activeDecorativeLayers(te),ae=ne.length+1,re=LADDER_STEP_LEVELS[ae]||LADDER_STEP_LEVELS[4],oe=String((ee==null?void 0:ee.name)||"Moldura").trim();return Array.from({length:ae},(ie,le)=>{const ce=ne.slice(0,le),de=DECORATIVE_LAYERS.reduce((ue,ve)=>{const me={variant:"none",enabled:!1};return{...ue,[ve]:ce.includes(ve)?clone(te[ve]):{...me,colors:clone(te[ve].colors)}}},{});return{type:"frame",name:`${oe} ${LADDER_STEP_SUFFIX[le]||le+1}`,status:!0,season_id:null,visual:normalizeFrameVisual({ring:clone(te.ring),...de,motion:{enabled:te.motion.enabled&&ce.length>0}}),availability:{kind:"level",level:re[le]}}})}function createFrameDraft(ee="aurora"){const te=findFramePreset(ee)||FRAME_STUDIO_PRESETS[0];return{id:null,type:"frame",name:te.name,status:!0,season_id:null,availability:{kind:"public"},visual:clone(te.visual)}}function validateFrameDraft(ee){var ne;const te={};return String((ee==null?void 0:ee.name)||"").trim()||(te.name="Dê um nome para a moldura."),String((ee==null?void 0:ee.name)||"").trim().length>48&&(te.name="Use no máximo 48 caracteres."),((ne=ee==null?void 0:ee.availability)==null?void 0:ne.kind)==="season_rank"&&!ee.availability.season_id&&!(ee!=null&&ee.season_id)&&(te.season_id="Escolha a temporada desta regra de obtenção."),te}function validateFrameRewardDraft(ee){const te={};return String((ee==null?void 0:ee.name)||"").trim()||(te.name="Dê um nome para a moldura."),String((ee==null?void 0:ee.name)||"").trim().length>48&&(te.name="Use no máximo 48 caracteres."),te}function framePayloadBase(ee){const te=normalizeFrameVisual(ee.visual),ne={ring:layerPayload(te.ring),ornament:layerPayload(te.ornament),effect:layerPayload(te.effect),particles:layerPayload(te.particles),motion:{enabled:te.motion.enabled}};return{type:"frame",name:String(ee.name).trim(),status:ee.status!==!1,visual:ne}}function layerPayload(ee){return{enabled:ee.enabled,variant:ee.variant,colors:[...ee.colors]}}function createFrameRewardApiPayload(ee){const te=validateFrameRewardDraft(ee);if(Object.keys(te).length){const ne=new Error("A recompensa de moldura possui campos inválidos.");throw ne.fields=te,ne}return{...framePayloadBase(ee)}}function createFrameApiPayload(ee){const te=validateFrameDraft(ee);if(Object.keys(te).length){const oe=new Error("A moldura possui campos inválidos.");throw oe.fields=te,oe}const ne=typeof ee.availability=="string"?{kind:ee.availability}:ee.availability||{kind:"public"},{season_id:ae,...re}=ne;return{...framePayloadBase(ee),season_id:ae??ee.season_id??null,availability:re}}const whaleSvgUrl="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Uploaded%20to:%20SVG%20Repo,%20www.svgrepo.com,%20Generator:%20SVG%20Repo%20Mixer%20Tools%20--%3e%3csvg%20width='800px'%20height='800px'%20viewBox='0%200%20512%20512'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20aria-hidden='true'%20role='img'%20class='iconify%20iconify--fxemoji'%20preserveAspectRatio='xMidYMid%20meet'%3e%3cpath%20fill='%2394DEF7'%20d='M508.36%20241.99c-.123-.424-.26-.795-.405-1.142c5.304%20107.375-138.325%20176.779-239.848%20176.779c-54.532%200-67.454-46.877-87.643-95.976a301.342%20301.342%200%200%200-1.632-5.615c-21.07-69.795-137.899-101.8-169.134-72.73C4.803%20247.599%202%20253.601%202%20261.516c0%201.012.018%202.017.049%203.018C4.113%20394.814%20139.282%20499.93%20269.945%20499.93c131.673%200%20238.414-106.742%20238.414-238.414c.001-4.659.673-17.2.001-19.526z'%3e%3c/path%3e%3cpath%20fill='%2300B1FF'%20d='M507.965%20241.215c-.006-.123-.004-.244-.01-.367c.143.342.279.708.4%201.126a161.121%20161.121%200%200%200-1.056-9.011c-.032-.278-.055-.554-.09-.833l-.031-.018c-8.724-58.79-48.079-97.941-77.889-113.876a132.97%20132.97%200%200%200-3.237-4.838c-.02-.079-.036-.152-.055-.234l-.549-2.538l-.585-2.947c-.36-2.108-.741-4.43-1.015-6.874c-.277-2.439-.456-4.996-.447-7.456c-.01-2.462.258-4.803.696-6.683a11.487%2011.487%200%200%201%201.611-3.982c.081-.089.16-.173.222-.266l.089-.14a.702.702%200%200%200%20.12-.109c.072-.077.123-.165.181-.25c.087-.066.163-.137.229-.216c.107-.171.334-.293.447-.489c.111-.074.213-.156.307-.246c.081-.097.17-.202.313-.289c.124-.094.243-.196.356-.307c.107-.114.309-.193.446-.31c.156-.111.279-.24.452-.356c.192-.108.38-.221.566-.341l.277-.184l.069-.047l.034-.024c-.514.261.717-.367.608-.313l.042-.025l.333-.198l1.329-.79l.663-.394l1.071-.669l2.165-1.446c.764-.505%201.293-.942%201.892-1.403c.59-.453%201.158-.931%201.73-1.397c1.104-.982%202.203-1.955%203.22-2.99c2.022-2.081%203.867-4.254%205.436-6.51a50.883%2050.883%200%200%200%206.825-13.662a51.363%2051.363%200%200%200%202.352-12.61a49.822%2049.822%200%200%200-.47-10.397c-.215-1.514-.544-2.927-.824-4.207a59.17%2059.17%200%200%200-1.018-3.503c-.719-2.096-1.418-3.699-1.976-4.794c-.542-1.093-.925-1.68-.913-1.734a3.677%203.677%200%201%200-7.354%200c.011-.054-.371.397-1.015%201.246l-2.719%203.598c-.566.756-1.18%201.579-1.86%202.449c-.64.878-1.393%201.793-2.129%202.753a140.065%20140.065%200%200%201-4.97%205.968c-1.784%202.016-3.684%204.002-5.631%205.805a51.29%2051.29%200%200%201-5.935%204.721c-.971.691-1.984%201.262-2.949%201.843c-.511.255-.988.537-1.477.802c-.254.118-.515.225-.755.359c-.235.121-.519.3-.64.307c-.156.047-.305.1-.448.162l-.243.131l-.699.327l-1.4.656l-.351.164l-.044.021c-.138.069%201.065-.543.523-.267l-.136.068l-.272.136l-1.086.55l-2.165%201.13c-.722.403-1.448.87-2.167%201.314c-.719.465-1.427.893-2.133%201.425l-2.097%201.607c-5.574%204.353-10.324%2010.744-13.017%2017.447a45.584%2045.584%200%200%200-2.618%209.686c-3.718-2.178-7.716-4.218-12.143-5.924c-5.35-2.082-11.365-3.729-18.329-4.023c-3.461-.156-7.197.17-10.933%201.044c-3.743.906-7.489%202.417-10.773%204.478l-1.213.787l-.3.2c-.105.069.617-.399.294-.188l-.039.029l-.079.057l-.314.228l-1.249.908l-.73.523c-.219.147-.326.283-.63.457c-1.047.756-2.107%201.382-3.138%201.994a38.17%2038.17%200%200%201-6.192%202.876c-1.033.359-2.068.709-3.092.949c-1.028.313-2.036.465-3.025.68c-1.967.338-3.827.559-5.39.655c-1.587.153-2.832.12-3.685.186c-.83.021-1.217.084-1.048.184a7.926%207.926%200%201%200-8.402%2013.442c.172.095.553%201.025%201.368%202.479a31.423%2031.423%200%200%200%204.07%205.575c1.984%202.124%204.66%204.542%208.256%206.574a39.084%2039.084%200%200%200%2013.332%204.725c5.245.91%2011.233.794%2017.244-.526c3.005-.653%205.986-1.638%208.894-2.852l.55-.237l.62-.298l1.242-.61l1.244-.628l.992-.526l.04-.021c.268.033.74.083%201.404.223c.805.193%201.855.443%203.02.848c2.357.761%205.185%201.989%208.117%203.41c1.452.739%202.981%201.462%204.476%202.283c1.505.807%202.979%201.696%204.503%202.526c1.509.85%202.988%201.743%204.443%202.643a129.62%20129.62%200%200%201%204.333%202.649l4.141%202.608l3.893%202.507l10.771%207.08c.101.136.196.268.299.406c21.579%2017.085%2036.028%2042.773%2038.141%2071.892c-.998-.854-1.982-1.651-2.872-2.397c-2.216-1.767-4.078-3.186-5.433-4.158l-2.201-1.569c-2.067-1.467-4.924-1.564-7.116-.024a6.16%206.16%200%200%200-1.498%208.581l.319.454l1.271%201.809c.84%201.192%202.011%202.966%203.359%205.101c.648%201.092%201.385%202.239%202.089%203.499c.714%201.253%201.468%202.563%202.174%203.95c.744%201.366%201.435%202.805%202.122%204.258c.728%201.437%201.291%202.949%201.939%204.41c.598%201.478%201.103%202.963%201.636%204.395c.413%201.451.884%202.854%201.219%204.198c.019.095.041.188.06.282a100.474%20100.474%200%200%201-2.494%208.182a55.331%2055.331%200%200%200-1.985%203.467c-45.484%2087.138-130.687%2078.792-180.854%203.023c-17.245-26.045-48.063-43.714-80.768-53.436c-18.699-7.551-41.129-10.855-64.603-10.855c-53.511%200-92.27%206.326-95.012%2048.874c30.674-21.373%20118.321.252%20153.936%2050.866c5.14%209.819%209.563%2019.925%2013.682%2029.94l.016.055c3.365%208.183%206.529%2016.287%209.717%2024.139c.393.969.788%201.934%201.182%202.895c.276.672.55%201.357.827%202.025l.006-.007c13.068%2031.496%2027.327%2057.82%2058.081%2064.988l.139.032a66.858%2066.858%200%200%200%204.419.868l.463.075c.624.098%201.255.188%201.892.271l.591.077c.601.074%201.208.139%201.82.199c.234.023.465.048.701.07c.591.053%201.19.097%201.791.138c.256.017.509.038.768.053c.617.036%201.243.062%201.871.085c.244.009.484.023.73.03a92.24%2092.24%200%200%200%202.646.039c1.609%200%203.228-.018%204.857-.053c.547-.012%201.102-.036%201.652-.052c1.087-.031%202.172-.059%203.267-.105c.652-.027%201.311-.068%201.966-.101c1.001-.05%202-.096%203.007-.159c.697-.043%201.4-.1%202.1-.149c.975-.069%201.947-.133%202.927-.214c.721-.059%201.448-.131%202.171-.196c.965-.087%201.928-.17%202.897-.268c.744-.075%201.493-.162%202.239-.244c.956-.104%201.911-.206%202.871-.321c.758-.091%201.52-.193%202.28-.291c.955-.122%201.908-.242%202.866-.375c.774-.107%201.551-.225%202.328-.339c.947-.139%201.893-.276%202.842-.425c.184-.029.367-.053.552-.082l.785%201.47l1.362%202.542l1.511%202.616l1.588%202.736l1.774%202.819l1.883%202.926c.629%201.001%201.32%201.96%202.048%202.98l2.184%203.048c.771%201.04%201.541%202.091%202.369%203.109c.793%201.021%201.705%202.08%202.562%203.124c.86%201.046%201.748%202.099%202.698%203.164c.971%201.041%201.898%202.072%202.93%203.111l3.091%203.108c2.144%202.086%204.409%204.038%206.827%205.976c2.336%201.948%204.899%203.813%207.508%205.514l4.009%202.49a60.862%2060.862%200%200%200%204.157%202.26c.706.351%201.39.715%202.106%201.043l2.158.954c1.449.605%202.821%201.288%204.3%201.783l4.373%201.444c1.443.459%202.922.799%204.352%201.181c2.876.749%205.788%201.081%208.545%201.524c1.383.2%202.787.209%204.138.307c1.359.052%202.683.189%203.991.143c1.301.005%202.595-.082%203.848-.136l1.86-.097l1.811-.196c1.189-.118%202.363-.321%203.496-.485l1.678-.264l1.622-.346c1.065-.219%202.106-.511%203.11-.758c1.003-.269%201.981-.481%202.91-.802a209.75%20209.75%200%200%200%205.216-1.868a79.912%2079.912%200%200%200%208.02-3.919c2.132-1.272%203.744-2.443%204.835-3.184c.546-.366.956-.697%201.233-.907l.418-.322a4.174%204.174%200%200%200%20.263-6.392l-.911-.83l-.458-.417c-.301-.272-.748-.7-1.316-1.176l-.946-.821l-1.116-.918c-.8-.688-1.701-1.367-2.69-2.158l-3.167-2.597c-1.117-.924-2.321-1.74-3.524-2.817l-3.72-3.034c-.645-.463-1.251-1.075-1.882-1.593c-.628-.522-1.254-1.091-1.888-1.598c-2.511-2.143-4.94-4.378-7.212-6.533c-.599-.478-1.092-1.15-1.652-1.649l-1.611-1.589c-.513-.543-1.007-1.115-1.521-1.612c-.53-.47-.994-1.05-1.474-1.576c-1.959-2.032-3.744-4.085-5.652-6.054c-1.905-1.947-3.878-4.015-6.065-6.197a682.294%20682.294%200%200%201-7.103-7.078c-2.505-2.473-5.193-5.031-8.038-7.729a315.84%20315.84%200%200%200%203.962-1.505c.444-.172.885-.348%201.328-.521a350.725%20350.725%200%200%200%204.768-1.91a313.805%20313.805%200%200%200%204.781-2.005a329.54%20329.54%200%200%200%203.989-1.747c.476-.212.951-.427%201.427-.641a305.31%20305.31%200%200%200%203.339-1.532c.376-.175.753-.348%201.128-.524a320.563%20320.563%200%200%200%204.26-2.046c.377-.185.751-.373%201.127-.559a294.32%20294.32%200%200%200%203.322-1.67c.423-.216.846-.431%201.268-.649a288.878%20288.878%200%200%200%204.238-2.228l.284-.155c1.329-.716%202.65-1.444%203.965-2.179c.394-.22.786-.442%201.178-.663c1.153-.652%202.3-1.31%203.44-1.976c.266-.156.535-.309.801-.465a285.739%20285.739%200%200%200%204.119-2.473c.295-.181.587-.364.881-.545c1.118-.69%202.228-1.388%203.332-2.092c.329-.21.659-.419.987-.631c1.359-.876%202.71-1.76%204.047-2.657l.121-.082a249.4%20249.4%200%200%200%204.754-3.28a238.369%20238.369%200%200%200%203.466-2.491c.147-.108.296-.214.442-.321a230.552%20230.552%200%200%200%203.864-2.908c.221-.17.439-.341.659-.512a218.993%20218.993%200%200%200%203.218-2.538c.235-.189.472-.377.706-.567a217.815%20217.815%200%200%200%203.734-3.089l.004-.004a212.063%20212.063%200%200%200%204.234-3.692a206.713%20206.713%200%200%200%203.333-3.043l.136-.125c1.175-1.1%202.33-2.213%203.471-3.335c.159-.156.315-.314.474-.471c.995-.985%201.975-1.979%202.943-2.981c.158-.164.318-.326.475-.491a177.773%20177.773%200%200%200%206.316-6.948l.49-.571a164.21%20164.21%200%200%200%205.848-7.245c.113-.148.223-.297.335-.446a158.277%20158.277%200%200%200%202.496-3.4l.293-.409a147.489%20147.489%200%200%200%205.086-7.678l.336-.546a136.36%20136.36%200%200%200%204.502-7.931l.234-.453a130.998%20130.998%200%200%200%201.881-3.77l.167-.346a125.44%20125.44%200%200%200%203.6-8.347l.214-.552a119.768%20119.768%200%200%200%202.918-8.553c.049-.164.096-.329.144-.493c.399-1.354.775-2.716%201.124-4.086l.081-.309a113.712%20113.712%200%200%200%201.063-4.606c.301-1.441.57-2.892.816-4.35l.098-.583c.491-3.002.865-6.04%201.115-9.112l.043-.569c.11-1.442.196-2.89.251-4.347c.004-.1.01-.2.013-.301c.057-1.592.081-3.193.071-4.803l-.003-.202c-.01-1.499-.055-2.997-.124-4.502zM356.242%20108.389a1.689%201.689%200%200%201-.207.161c-.525.374-1.155.726-1.641.873l.863-.465l.342-.184l.086-.046l.043-.023c-.469.306.692-.446.563-.361l-.049.045z'%3e%3c/path%3e%3cpath%20fill='%23EDEDE2'%20d='M176.205%20308.716a16.311%2016.311%200%200%200-.31-1.818c-12.97-55.324-43.201-75.19-75.053-86.142c-29.651-10.195-76.99-16.091-75.57%2014.413c41.872-11.739%20127.743%2017.345%20150.933%2073.547z'%3e%3c/path%3e%3cpath%20fill='%23D6D3C5'%20d='M85.928%20216.421l-6.395%2020.515l-.314-.078c-.744-.181-1.486-.356-2.227-.526l-.736-.167c-.332-.075-.662-.144-.994-.217l6.388-20.494c1.436.305%202.864.627%204.278.967zm-20.656-3.485l-6.344%2020.352c.304.032.607.061.913.096c.273.031.547.062.822.095c.68.08%201.362.164%202.048.255l.63.087l6.361-20.406a120.92%20120.92%200%200%200-4.43-.479zm35.57%207.82c-1.16-.399-2.35-.79-3.561-1.174l-6.407%2020.555c.79.252%201.581.512%202.371.776l.546.182c.41.139.82.284%201.23.426l6.408-20.558c-.196-.068-.391-.14-.587-.207zm-52.369-7.783l-6.142%2019.704c.136-.006.271-.012.407-.016c.584-.021%201.172-.036%201.764-.047c.27-.005.542-.007.813-.009c.537-.005%201.076-.007%201.618-.004l6.233-19.997c-1.605.07-3.173.191-4.693.369zm116.922%2063.139l-3.041%209.756c.297.362.599.721.89%201.087l.047.061c.8%201.007%201.571%202.031%202.329%203.063l2.458-7.887a129.759%20129.759%200%200%200-2.683-6.08zm-8.388-14.817a100.83%20100.83%200%200%200-3.195-4.439l-4.766%2015.288a125.806%20125.806%200%200%201%203.56%203.267l4.401-14.116zm-13.148-15.651a95.275%2095.275%200%200%200-3.552-3.257l-5.891%2018.561c1.268.849%202.525%201.71%203.762%202.594l5.681-17.898zm-115.01-23.571l-3.604%2011.563a27.64%2027.64%200%200%200%20.028%201.54c.354-.098.707-.195%201.066-.288c.229-.06.457-.12.689-.177a61.822%2061.822%200%200%201%202.213-.501c.142-.03.287-.056.43-.085l5.386-17.28c-2.495%201.365-4.595%203.094-6.208%205.228zm101.376%2012.692a102.81%20102.81%200%200%200-3.822-2.404l-6.369%2020.012c1.312.694%202.613%201.409%203.906%202.138l6.285-19.746zm-14.108-7.87a131.68%20131.68%200%200%200-4.013-1.805l-6.499%2020.478c1.349.564%202.693%201.145%204.032%201.744l6.48-20.417z'%3e%3c/path%3e%3cpath%20fill='%232B3B47'%20d='M243.055%20335.671c6.275%200%2011.371%205.085%2011.371%2011.381v13.973c0%206.285-5.096%2011.382-11.371%2011.382c-6.285%200-11.381-5.097-11.381-11.382v-13.973c0-6.296%205.095-11.381%2011.381-11.381z'%3e%3c/path%3e%3c/svg%3e",harrysWandUrl="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAYAAAD0eNT6AAA11UlE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K5CYII=";function signature({particleCap:ee,ornament:te}){return Object.freeze({particleCap:ee,ornament:Object.freeze(te)})}const FRAME_SIGNATURE_CONFIG=Object.freeze({runes:signature({particleCap:3,ornament:{top:"-12%",left:"-12%",width:"124%",height:"124%"}}),bolt:signature({particleCap:4,ornament:{top:"10%",left:"20%",width:"106%",height:"106%"}}),heart:signature({particleCap:5,ornament:{top:"10%",left:"86%",width:"27%",height:"27%"}}),bars:signature({particleCap:3,ornament:{top:"9%",left:"87%",width:"28%",height:"34%"}}),blade:signature({particleCap:4,ornament:{top:"10%",left:"20%",width:"106%",height:"106%"}}),claw:signature({particleCap:4,ornament:{top:"86%",left:"83%",width:"31%",height:"31%"}}),crest:signature({particleCap:3,ornament:{top:"85%",left:"84%",width:"31%",height:"31%"}}),orb:signature({particleCap:3,ornament:{top:"-6%",left:"-6%",width:"112%",height:"112%"}})});function frameSignatureConfig(ee){return FRAME_SIGNATURE_CONFIG[ee]||null}const RUNE_GLYPHS=Object.freeze(["M0 -3v6","M0 -3v6M-2.2 -1h4.4","M-2 -3 0 3 2 -3","M0 -3v6M2.2 -2.4 0 0","M-2.2 -3h4.4M0 -3v6","M-2 3 0 -3 2 3M-1.4 .8h2.8"]),SIGNATURE_RUNE_MARKS=Object.freeze(Array.from({length:14},(ee,te)=>{const ne=te<7?0:1,ae=te-ne*7;return Object.freeze({d:RUNE_GLYPHS[te%RUNE_GLYPHS.length],transform:`translate(50 50) rotate(${(ne?63:243)+ae*9}) translate(0 -47)`})})),_hoisted_1$2s=["d","transform"],_hoisted_2$29=["href"],_sfc_main$2F={__name:"SignatureFrameOrnament",props:{variant:{type:String,required:!0},motion:{type:Boolean,default:!1},clearance:{type:Boolean,default:!1}},setup(ee){const te=ee,ne=e$b.computed(()=>frameSignatureConfig(te.variant)),ae=e$b.computed(()=>{var ie;const oe=(ie=ne.value)==null?void 0:ie.ornament;return oe?{"--sm-signature-top":oe.top,"--sm-signature-left":oe.left,"--sm-signature-width":oe.width,"--sm-signature-height":oe.height}:{}}),re=e$b.computed(()=>["sm-frame-ornament","sm-frame-signature",["bolt","heart","bars","claw","crest"].includes(te.variant)?"sm-frame-ornament--badge":`sm-frame-ornament--${te.variant}`,`sm-frame-signature--${te.variant}`,te.clearance?"sm-frame-ornament--clearance":"sm-frame-ornament--art",te.motion?"sm-frame-signature--motion":""]);return(oe,ie)=>ee.variant==="runes"?(e$b.openBlock(),e$b.createElementBlock("svg",{key:0,class:e$b.normalizeClass(re.value),style:e$b.normalizeStyle(ae.value),viewBox:"0 0 100 100",fill:"none"},[(e$b.openBlock(!0),e$b.createElementBlock(e$b.Fragment,null,e$b.renderList(e$b.unref(SIGNATURE_RUNE_MARKS),(le,ce)=>(e$b.openBlock(),e$b.createElementBlock("path",{key:ce,d:le.d,transform:le.transform},null,8,_hoisted_1$2s))),128))],6)):ee.variant==="blade"?(e$b.openBlock(),e$b.createElementBlock("svg",{key:1,class:e$b.normalizeClass(re.value),style:e$b.normalizeStyle(ae.value),viewBox:"0 0 120 120",fill:"none"},[...ie[0]||(ie[0]=[e$b.createStaticVNode('<line class="sm-blade-halo" x1="60" y1="89" x2="101" y2="42" data-v-f94f9f66></line><line class="sm-blade-color" x1="60" y1="89" x2="101" y2="42" data-v-f94f9f66></line><line class="sm-blade-core" x1="60" y1="89" x2="101" y2="42" data-v-f94f9f66></line><g class="sm-blade-hilt" transform="rotate(-49 57 93)" data-v-f94f9f66><rect x="47" y="89" width="19" height="7" rx="2" data-v-f94f9f66></rect><path d="M49 89v7m5-7v7m7-7v7" data-v-f94f9f66></path><rect x="64" y="87" width="4" height="11" rx="1" data-v-f94f9f66></rect></g>',4)])],6)):ee.variant==="bolt"?(e$b.openBlock(),e$b.createElementBlock("svg",{key:2,class:e$b.normalizeClass(re.value),style:e$b.normalizeStyle(ae.value),viewBox:"0 0 120 120",fill:"none"},[ee.clearance?e$b.createCommentVNode("",!0):(e$b.openBlock(),e$b.createElementBlock("image",{key:0,class:"sm-harry-wand",href:e$b.unref(harrysWandUrl),x:"58",y:"40",width:"50",height:"50",preserveAspectRatio:"xMidYMid meet"},null,8,_hoisted_2$29)),ie[1]||(ie[1]=e$b.createElementVNode("path",{class:"sm-arcane-bolt",d:"M13.9 1.6 5.2 13.9h4.9L8.9 22.4 18.8 9.3h-5.2l.3-7.7Z",transform:"translate(-24 2) scale(1.08)",fill:"currentColor",stroke:"var(--sm-frame-ornament-secondary)","stroke-width":"1.1","stroke-linejoin":"round"},null,-1))],6)):ee.variant==="heart"?(e$b.openBlock(),e$b.createElementBlock("svg",{key:3,class:e$b.normalizeClass(re.value),style:e$b.normalizeStyle(ae.value),viewBox:"0 0 32 32"},[...ie[2]||(ie[2]=[e$b.createElementVNode("path",{class:"sm-career-case",d:"M5.1 11.2h21.8c1.5 0 2.7 1.2 2.7 2.7v11.2c0 1.5-1.2 2.7-2.7 2.7H5.1c-1.5 0-2.7-1.2-2.7-2.7V13.9c0-1.5 1.2-2.7 2.7-2.7Z",fill:"var(--sm-frame-ornament-secondary)",stroke:"currentColor","stroke-width":"1.3","stroke-linejoin":"round"},null,-1),e$b.createElementVNode("path",{d:"M11.1 11.2V8.8c0-1.6 1.3-2.9 2.9-2.9h4c1.6 0 2.9 1.3 2.9 2.9v2.4",fill:"none",stroke:"currentColor","stroke-width":"1.6","stroke-linecap":"round"},null,-1),e$b.createElementVNode("path",{class:"sm-career-monogram",d:"M12.4 15.1v8.7m0-8.7H16c3.1 0 3.1 3.9 0 3.9h-3.6m3.7 0c3.7 0 3.7 4.8 0 4.8h-3.7",fill:"none",stroke:"var(--sm-frame-ornament-accent)","stroke-width":"1.8","stroke-linecap":"round","stroke-linejoin":"round"},null,-1),e$b.createElementVNode("path",{class:"sm-career-sparkle",d:"m25.8 3.1.8 2.2 2.2.8-2.2.8-.8 2.2-.8-2.2-2.2-.8 2.2-.8.8-2.2Z",fill:"var(--sm-frame-ornament-accent)"},null,-1)])],6)):ee.variant==="bars"?(e$b.openBlock(),e$b.createElementBlock("svg",{key:4,class:e$b.normalizeClass(re.value),style:e$b.normalizeStyle(ae.value),viewBox:"0 0 24 24"},[...ie[3]||(ie[3]=[e$b.createElementVNode("path",{d:"M3.2 2.2 10.7 7v14.8l-7.5-4.7V2.2Z",fill:"currentColor"},null,-1),e$b.createElementVNode("path",{d:"m20.8 2.2-7.5 4.7v14.9l7.5-4.7V2.2Z",fill:"var(--sm-frame-ornament-secondary)"},null,-1)])],6)):ee.variant==="claw"?(e$b.openBlock(),e$b.createElementBlock("svg",{key:5,class:e$b.normalizeClass(re.value),style:e$b.normalizeStyle(ae.value),viewBox:"0 0 512 512"},[...ie[4]||(ie[4]=[e$b.createElementVNode("path",{d:"M511.517 370.284c-5.971-20.294-92.954-22.906-113.159-18.866-20.216 4.041-76.79 2.68-88.913-9.443-12.124-12.124 4.041-32.329 16.175-44.451 12.124-12.124 38.389-50.524 46.472-58.606 8.082-8.082 50.166-50.378 65.325-74.758 30.988-49.843 41.437-98.68 25.262-114.845-16.164-16.164-65.003-5.727-114.834 25.262-24.38 15.17-66.688 57.244-74.769 65.325-8.083 8.083-46.472 34.36-58.606 46.483-12.122 12.124-32.328 28.287-44.451 16.164-12.122-12.124-13.474-68.698-9.433-88.902 4.041-20.205 1.419-107.187-18.866-113.16C121.438-5.483 83.798 44.94 68.984 87.37 60.299 112.241-13.868 228.816 2.296 313.689c16.175 84.872 31 127.982 49.507 146.503 18.519 18.519 61.642 33.343 146.503 49.507 84.872 16.164 201.448-57.991 226.319-66.676 42.431-14.825 92.853-52.466 86.892-72.739Z",fill:"currentColor"},null,-1)])],6)):ee.variant==="crest"?(e$b.openBlock(),e$b.createElementBlock("svg",{key:6,class:e$b.normalizeClass(re.value),style:e$b.normalizeStyle(ae.value),viewBox:"0 0 190.764 222.769"},[...ie[5]||(ie[5]=[e$b.createElementVNode("path",{d:"M91.256 43.595c-42.332 2.172-75.995 37.577-75.995 80.931 0 14.627 3.832 28.349 10.535 40.195l-8.118 15.765C6.548 164.704 0 145.388 0 124.526 0 71.248 42.704 28.053 95.382 28.053c.753 0 1.504.009 2.252.026L111.412 0h29.434v39.696c29.733 16.337 49.918 48.2 49.918 84.829 0 53.279-42.704 96.473-95.382 96.473-16.079 0-31.229-4.024-44.519-11.132l6.712-13.875c11.262 6.107 24.134 9.571 37.807 9.571 44.249 0 80.121-36.282 80.121-81.037 0-27.971-14.013-52.633-35.325-67.197v76.695l-26.897-25.442V50.453l-33.218 78.891h33.218V116.68l31.141 29.274-32.179 24.705V157.58H68.437l-28.855 65.189-35.708-.699L91.256 43.595Z",fill:"currentColor"},null,-1),e$b.createElementVNode("path",{d:"m112.21 179.637 27.915-23.914v23.914Z",fill:"currentColor"},null,-1)])],6)):ee.variant==="orb"?(e$b.openBlock(),e$b.createElementBlock("svg",{key:7,class:e$b.normalizeClass(re.value),style:e$b.normalizeStyle(ae.value),viewBox:"0 0 100 100"},[...ie[6]||(ie[6]=[e$b.createStaticVNode('<path class="sm-orb-bolt" d="m82 0-12 18h7l-4 13 14-20h-7l2-11Z" fill="currentColor" stroke="var(--sm-frame-ornament-secondary)" stroke-width="1.1" stroke-linejoin="round" data-v-f94f9f66></path><g class="sm-orb-mark" data-v-f94f9f66><path d="M72 84a12 12 0 0 1 24 0H72Z" fill="var(--sm-frame-ornament-secondary)" data-v-f94f9f66></path><path d="M96 84a12 12 0 0 1-24 0h24Z" fill="var(--sm-frame-ornament-accent)" data-v-f94f9f66></path><circle cx="84" cy="84" r="12" fill="none" stroke="#30343b" stroke-width="2.4" data-v-f94f9f66></circle><path d="M72 84h24" stroke="#30343b" stroke-width="2.4" data-v-f94f9f66></path><circle cx="84" cy="84" r="4.2" fill="#f8fafc" stroke="#30343b" stroke-width="2" data-v-f94f9f66></circle><circle cx="84" cy="84" r="1.7" fill="#30343b" data-v-f94f9f66></circle><circle cx="83.5" cy="83.5" r=".55" fill="#ffffff" opacity=".9" data-v-f94f9f66></circle></g>',2)])],6)):e$b.createCommentVNode("",!0)}},SignatureFrameOrnament=_export_sfc$1(_sfc_main$2F,[["__scopeId","data-v-f94f9f66"]]),states=new WeakMap;let observer=null;function ensureObserver(){return observer||typeof IntersectionObserver>"u"||(observer=new IntersectionObserver(ee=>{for(const te of ee){const ne=states.get(te.target);ne&&(ne.value=!te.isIntersecting)}},{rootMargin:"150px"})),observer}function useOffscreenPause(ee=!0){const te=e$b.shallowRef(null),ne=e$b.ref(!1),ae=e$b.computed(()=>!!(typeof ee=="function"?ee():e$b.unref(ee))),re=()=>{var le;return((le=te.value)==null?void 0:le.$el)||te.value};function oe(){const le=re();if(!(le!=null&&le.nodeType))return;const ce=ensureObserver();ce&&(states.set(le,ne),ce.observe(le))}function ie(){const le=re();!(le!=null&&le.nodeType)||!observer||(observer.unobserve(le),states.delete(le),ne.value=!1)}return e$b.onMounted(()=>{ae.value&&oe(),e$b.watch(ae,le=>le?oe():ie())}),e$b.onBeforeUnmount(ie),{offscreenRef:te,paused:ne}}const _hoisted_1$2r={key:0,class:"sm-frame-effect sm-frame-effect--lightning",viewBox:"0 0 100 100",fill:"none"},_hoisted_2$28={class:"sm-frame-flower sm-frame-flower--large",transform:"translate(23 101)"},_hoisted_3$1X=["transform"],_hoisted_4$1L={class:"sm-frame-flower sm-frame-flower--medium",transform:"translate(112 32)"},_hoisted_5$1B=["transform"],_hoisted_6$1s={class:"sm-frame-flower sm-frame-flower--small",transform:"translate(123 65)"},_hoisted_7$1l=["transform"],_hoisted_8$1c={key:0,class:"sm-frame-snowflake",viewBox:"0 0 16 16",fill:"none"},_hoisted_9$16={key:1,class:"sm-frame-star",viewBox:"0 0 16 16"},_hoisted_10$$={key:2,class:"sm-frame-spark",viewBox:"0 0 16 16"},_hoisted_11$T={key:3,class:"sm-frame-heart",viewBox:"0 0 16 16"},_hoisted_12$O={key:4,class:"sm-frame-petal",viewBox:"0 0 16 16"},_hoisted_13$G={key:5,class:"sm-frame-paw",viewBox:"0 0 18 18"},_hoisted_14$E=["src"],_sfc_main$2E={__name:"FrameEffects",props:{visual:{type:Object,required:!0},visualNormalized:{type:Boolean,default:!1},effectLevel:{type:String,default:"full",validator:ee=>["full","compact","border"].includes(ee)},pauseOffscreen:{type:Boolean,default:!0}},setup(ee){const te=ee,ne=e$b.computed(()=>te.visualNormalized?te.visual:normalizeFrameVisual(te.visual)),ae=e$b.computed(()=>ne.value.ornament),re=e$b.computed(()=>ne.value.effect),oe=e$b.computed(()=>ne.value.particles),ie=e$b.computed(()=>te.effectLevel==="border"),le=e$b.computed(()=>ae.value.enabled&&frameVariantLocked("ornament",ae.value.variant)),ce=e$b.computed(()=>le.value?ae.value.variant:""),de=e$b.computed(()=>frameSignatureConfig(ce.value)),ue=e$b.computed(()=>ae.value.enabled&&(!ie.value||le.value)),ve=e$b.computed(()=>ae.value.placement==="behind"?[!1]:[!0,!1]);function me($e,ye){return["sm-frame-ornament",`sm-frame-ornament--${$e}`,ye?"sm-frame-ornament--clearance":"sm-frame-ornament--art",ae.value.placement==="behind"?"sm-frame-ornament--behind":"sm-frame-ornament--front"]}const ge=e$b.computed(()=>!ie.value&&re.value.enabled&&re.value.variant!=="none"),fe=e$b.computed(()=>{var Ee;const $e=te.effectLevel==="compact"?4:oe.value.density,ye=((Ee=de.value)==null?void 0:Ee.particleCap)??oe.value.density;return Math.min(oe.value.density,$e,ye)}),pe=e$b.computed(()=>{const $e=ne.value.ring.colors;return{"--sm-frame-primary":$e[0],"--sm-frame-secondary":$e[1],"--sm-frame-accent":$e[2],"--sm-frame-ornament-primary":ae.value.colors[0],"--sm-frame-ornament-secondary":ae.value.colors[1],"--sm-frame-ornament-accent":ae.value.colors[2],"--sm-frame-ornament-opacity":.35+ae.value.intensity*.65,"--sm-frame-ornament-scale":ae.value.scale,"--sm-frame-ornament-offset-y":`${ae.value.offset_y}%`,"--sm-frame-ornament-clearance":"rgb(var(--bg-base-300))","--sm-frame-effect-primary":re.value.colors[0],"--sm-frame-effect-secondary":re.value.colors[1],"--sm-frame-effect-accent":re.value.colors[2],"--sm-frame-effect-spread":re.value.spread,"--sm-frame-effect-inset":`${15*re.value.spread}%`,"--sm-frame-effect-inset-tight":`${7*re.value.spread}%`,"--sm-frame-effect-inset-wide":`${17*re.value.spread}%`,"--sm-frame-particle-primary":oe.value.colors[0],"--sm-frame-particle-secondary":oe.value.colors[1],"--sm-frame-particle-accent":oe.value.colors[2],"--sm-frame-particle-size":`${oe.value.size*5}%`,"--sm-frame-particle-orbit":oe.value.orbit,"--sm-frame-particle-opacity":.4+oe.value.intensity*.6,"--sm-frame-intensity":re.value.intensity,"--sm-frame-effect-opacity":.5+re.value.intensity*.5,"--sm-frame-speed":`${6/ne.value.motion.speed}s`,"--sm-frame-effect-speed":`${4.2/ne.value.motion.speed}s`,"--sm-frame-ornament-speed":`${3.6/ne.value.motion.speed}s`,"--sm-frame-particle-speed":`${3.2/ne.value.motion.speed}s`,"--sm-frame-whale-speed":`${5.4/ne.value.motion.speed}s`,"--sm-frame-fast":`${1.8/ne.value.motion.speed}s`,"--sm-frame-flash":`${2.7/ne.value.motion.speed}s`}}),{offscreenRef:_e,paused:be}=useOffscreenPause(()=>te.pauseOffscreen),ke=e$b.computed(()=>ne.value.motion.enabled?["sm-frame-effects--motion",ne.value.motion.pulse?"sm-frame-effects--pulse":"",ne.value.motion.flicker?"sm-frame-effects--flicker":"",be.value?"sm-frame-effects--paused":""]:["sm-frame-effects--static"]);return($e,ye)=>ee.effectLevel!=="border"||le.value?(e$b.openBlock(),e$b.createElementBlock("span",{key:0,ref_key:"offscreenRef",ref:_e,class:e$b.normalizeClass(["sm-frame-effects",[`sm-frame-effects--${ee.effectLevel}`,le.value?"sm-frame-effects--signature":"",ce.value?`sm-frame-effects--signature-${ce.value}`:"",ke.value]]),style:e$b.normalizeStyle(pe.value),"aria-hidden":"true"},[ge.value&&re.value.variant==="lightning"?(e$b.openBlock(),e$b.createElementBlock("svg",_hoisted_1$2r,[...ye[0]||(ye[0]=[e$b.createStaticVNode('<circle class="sm-lightning-orbit-halo" cx="50" cy="50" r="39" data-v-542b7f71></circle><circle class="sm-lightning-orbit-core" cx="50" cy="50" r="39" data-v-542b7f71></circle><g class="sm-lightning-discharge sm-lightning-discharge--north-west" data-v-542b7f71><path class="sm-lightning-halo" d="m20 34 7-4-2-5 8-2-1-6 8 2" data-v-542b7f71></path><path class="sm-lightning-core" d="m20 34 7-4-2-5 8-2-1-6 8 2" data-v-542b7f71></path><path class="sm-lightning-branch" d="m27 30-5-1m10-6 4-4" data-v-542b7f71></path></g><g class="sm-lightning-discharge sm-lightning-discharge--east" data-v-542b7f71><path class="sm-lightning-halo" d="m80 33-3 7 5 2-3 7 6 3-4 7" data-v-542b7f71></path><path class="sm-lightning-core" d="m80 33-3 7 5 2-3 7 6 3-4 7" data-v-542b7f71></path><path class="sm-lightning-branch" d="m82 42 5-3m-8 10-5 3" data-v-542b7f71></path></g><g class="sm-lightning-discharge sm-lightning-discharge--south-west" data-v-542b7f71><path class="sm-lightning-halo" d="m39 82-7-3-3 5-6-6-5 3-3-7" data-v-542b7f71></path><path class="sm-lightning-core" d="m39 82-7-3-3 5-6-6-5 3-3-7" data-v-542b7f71></path><path class="sm-lightning-branch" d="m29 79 1-5m-7 4-4-4" data-v-542b7f71></path></g>',5)])])):ge.value?(e$b.openBlock(),e$b.createElementBlock("span",{key:1,class:e$b.normalizeClass(["sm-frame-effect",`sm-frame-effect--${re.value.variant}`])},[re.value.variant==="flame"?(e$b.openBlock(),e$b.createElementBlock(e$b.Fragment,{key:0},e$b.renderList(8,Ee=>e$b.createElementVNode("i",{key:Ee,style:e$b.normalizeStyle({"--sm-flame-index":Ee-1})},null,4)),64)):e$b.createCommentVNode("",!0)],2)):e$b.createCommentVNode("",!0),(e$b.openBlock(!0),e$b.createElementBlock(e$b.Fragment,null,e$b.renderList(ve.value,Ee=>(e$b.openBlock(),e$b.createElementBlock(e$b.Fragment,{key:Ee?"clearance":"art"},[ue.value&&ae.value.variant==="wings"?(e$b.openBlock(),e$b.createElementBlock("svg",{key:0,class:e$b.normalizeClass(me("wings",Ee)),viewBox:"0 0 180 100",fill:"none"},[...ye[1]||(ye[1]=[e$b.createElementVNode("path",{class:"sm-frame-wing sm-frame-wing--left",d:"M75 61C55 58 42 46 30 24c-3 17 1 29 10 38-11-3-21-9-31-19 4 22 21 38 54 44",stroke:"currentColor","stroke-width":"13","stroke-linecap":"round","stroke-linejoin":"round"},null,-1),e$b.createElementVNode("path",{class:"sm-frame-wing sm-frame-wing--right",d:"M105 61c20-3 33-15 45-37 3 17-1 29-10 38 11-3 21-9 31-19-4 22-21 38-54 44",stroke:"currentColor","stroke-width":"13","stroke-linecap":"round","stroke-linejoin":"round"},null,-1),e$b.createElementVNode("path",{d:"M75 61C55 58 42 46 30 24M63 87C45 82 33 72 22 53M105 61c20-3 33-15 45-37M117 87c18-5 30-15 41-34",stroke:"var(--sm-frame-ornament-secondary)","stroke-width":"5","stroke-linecap":"round","stroke-linejoin":"round"},null,-1),e$b.createElementVNode("path",{d:"M72 58C57 53 47 43 38 29M67 78C49 75 37 67 27 56M108 58c15-5 25-15 34-29M113 78c18-3 30-11 40-22",stroke:"var(--sm-frame-ornament-accent)","stroke-width":"2.5","stroke-linecap":"round",opacity:".86"},null,-1)])],2)):ue.value&&ae.value.variant==="crown"?(e$b.openBlock(),e$b.createElementBlock("svg",{key:1,class:e$b.normalizeClass(me("crown",Ee)),viewBox:"0 0 90 48"},[...ye[2]||(ye[2]=[e$b.createElementVNode("path",{d:"M10 37 6 12l21 13L44 5l18 20 21-13-5 25H10Z",fill:"currentColor",stroke:"var(--sm-frame-ornament-secondary)","stroke-width":"3","stroke-linejoin":"round"},null,-1),e$b.createElementVNode("path",{d:"M12 37h65l-3 8H15l-3-8Z",fill:"var(--sm-frame-ornament-secondary)"},null,-1)])],2)):ue.value&&ae.value.variant==="holly"?(e$b.openBlock(),e$b.createElementBlock("svg",{key:2,class:e$b.normalizeClass(me("holly",Ee)),viewBox:"0 0 120 100",fill:"none"},[...ye[3]||(ye[3]=[e$b.createStaticVNode('<path d="M58 52C45 38 28 30 8 28l13 12-17 2 18 8-13 8 20 1-8 13 18-11c3 15 12 25 24 32-2-17-7-29-15-38 13 0 25-5 35-16-16 3-28 7-36 15Z" fill="var(--sm-frame-ornament-primary)" stroke="var(--sm-frame-ornament-secondary)" stroke-linejoin="round" stroke-width="3" data-v-542b7f71></path><path d="M53 48c17-12 35-15 57-9l-14 10 17 4-19 6 12 11-20-3 5 15-17-15c-5 14-16 23-30 28 5-16 11-27 22-35-13-3-24-9-33-20Z" fill="var(--sm-frame-ornament-primary)" stroke="var(--sm-frame-ornament-secondary)" stroke-linejoin="round" stroke-width="3" data-v-542b7f71></path><path d="M38 59C28 47 14 42 2 43l11 9-13 4 16 6-9 10 17-2 3 15 9-18" fill="var(--sm-frame-ornament-secondary)" opacity=".68" data-v-542b7f71></path><circle cx="51" cy="62" r="10" fill="var(--sm-frame-ornament-accent)" data-v-542b7f71></circle><circle cx="68" cy="64" r="10" fill="var(--sm-frame-ornament-accent)" data-v-542b7f71></circle><circle cx="59" cy="78" r="10" fill="var(--sm-frame-ornament-accent)" data-v-542b7f71></circle><circle cx="48" cy="58" r="2.7" fill="white" opacity=".42" data-v-542b7f71></circle><circle cx="65" cy="60" r="2.7" fill="white" opacity=".42" data-v-542b7f71></circle><circle cx="56" cy="74" r="2.7" fill="white" opacity=".42" data-v-542b7f71></circle>',9)])],2)):ue.value&&ae.value.variant==="bow"?(e$b.openBlock(),e$b.createElementBlock("svg",{key:3,class:e$b.normalizeClass(me("bow",Ee)),viewBox:"0 0 96 68",fill:"none"},[...ye[4]||(ye[4]=[e$b.createStaticVNode('<path d="M43 30C31 9 10 6 7 20 4 34 25 41 43 35Z" fill="currentColor" stroke="var(--sm-frame-ornament-secondary)" stroke-width="3" data-v-542b7f71></path><path d="M53 30C65 9 86 6 89 20c3 14-18 21-36 15Z" fill="currentColor" stroke="var(--sm-frame-ornament-secondary)" stroke-width="3" data-v-542b7f71></path><path d="m42 39-16 24 22-10 22 10-16-24Z" fill="var(--sm-frame-ornament-secondary)" stroke="currentColor" stroke-width="3" stroke-linejoin="round" data-v-542b7f71></path><rect x="38" y="25" width="20" height="20" rx="8" fill="var(--sm-frame-ornament-accent)" stroke="var(--sm-frame-ornament-secondary)" stroke-width="3" data-v-542b7f71></rect><path d="M16 20c7-4 14-2 20 7M80 20c-7-4-14-2-20 7" stroke="white" stroke-width="3" opacity=".5" data-v-542b7f71></path>',5)])],2)):ue.value&&ae.value.variant==="flowers"?(e$b.openBlock(),e$b.createElementBlock("svg",{key:4,class:e$b.normalizeClass(me("flowers",Ee)),viewBox:"0 0 140 140",fill:"none"},[e$b.createElementVNode("g",_hoisted_2$28,[(e$b.openBlock(),e$b.createElementBlock(e$b.Fragment,null,e$b.renderList(5,Se=>e$b.createElementVNode("ellipse",{key:`large-${Se}`,ry:"18",rx:"8","transform-origin":"0 0",transform:`rotate(${(Se-1)*72}) translate(0 -15)`,fill:"currentColor"},null,8,_hoisted_3$1X)),64)),ye[5]||(ye[5]=e$b.createElementVNode("circle",{r:"8",fill:"var(--sm-frame-ornament-accent)"},null,-1))]),e$b.createElementVNode("g",_hoisted_4$1L,[(e$b.openBlock(),e$b.createElementBlock(e$b.Fragment,null,e$b.renderList(5,Se=>e$b.createElementVNode("ellipse",{key:`medium-${Se}`,ry:"15",rx:"7","transform-origin":"0 0",transform:`rotate(${(Se-1)*72}) translate(0 -12)`,fill:"var(--sm-frame-ornament-secondary)"},null,8,_hoisted_5$1B)),64)),ye[6]||(ye[6]=e$b.createElementVNode("circle",{r:"6.5",fill:"var(--sm-frame-ornament-accent)"},null,-1))]),e$b.createElementVNode("g",_hoisted_6$1s,[(e$b.openBlock(),e$b.createElementBlock(e$b.Fragment,null,e$b.renderList(5,Se=>e$b.createElementVNode("ellipse",{key:`small-${Se}`,ry:"10",rx:"5","transform-origin":"0 0",transform:`rotate(${(Se-1)*72}) translate(0 -8)`,fill:"currentColor"},null,8,_hoisted_7$1l)),64)),ye[7]||(ye[7]=e$b.createElementVNode("circle",{r:"4",fill:"var(--sm-frame-ornament-accent)"},null,-1))]),ye[8]||(ye[8]=e$b.createElementVNode("path",{d:"M29 111c11 6 19 12 23 21M106 41c-10 3-18 8-24 16",stroke:"var(--sm-frame-ornament-secondary)","stroke-width":"4","stroke-linecap":"round"},null,-1))],2)):ue.value&&ae.value.variant==="cat"?(e$b.openBlock(),e$b.createElementBlock("svg",{key:5,class:e$b.normalizeClass(me("cat",Ee)),viewBox:"0 0 140 128",fill:"none"},[...ye[9]||(ye[9]=[e$b.createElementVNode("path",{class:"sm-cat-ear sm-cat-ear--left",d:"M37 47C34 39 31 27 33 18C44 22 53 30 58 39C50 39 43 42 37 47Z",fill:"currentColor",stroke:"var(--sm-frame-ornament-secondary)","stroke-width":"4","stroke-linecap":"round","stroke-linejoin":"round"},null,-1),e$b.createElementVNode("path",{class:"sm-cat-ear sm-cat-ear--right",d:"M103 47C106 39 109 27 107 18C96 22 87 30 82 39C90 39 97 42 103 47Z",fill:"currentColor",stroke:"var(--sm-frame-ornament-secondary)","stroke-width":"4","stroke-linecap":"round","stroke-linejoin":"round"},null,-1),e$b.createElementVNode("path",{class:"sm-cat-inner-ear",d:"M38 38C36 33 35 27 36 23C43 26 49 31 52 37C47 36 42 37 38 38ZM102 38C104 33 105 27 104 23C97 26 91 31 88 37C93 36 98 37 102 38Z",fill:"var(--sm-frame-ornament-accent)",opacity:".9"},null,-1),e$b.createElementVNode("path",{class:"sm-cat-whiskers",d:"M29 76C19 72 11 68 2 62M26 89C16 88 8 88 0 89M30 101C20 105 12 109 4 115M111 76c10-4 18-8 27-14M114 89c10-1 18-1 26 0M110 101c10 4 18 8 26 14",stroke:"currentColor","stroke-width":"3.5","stroke-linecap":"round"},null,-1)])],2)):ue.value&&le.value?(e$b.openBlock(),e$b.createBlock(SignatureFrameOrnament,{key:`${Ee?"clearance":"art"}-${ce.value}`,variant:ce.value,motion:ne.value.motion.enabled,clearance:Ee},null,8,["variant","motion","clearance"])):e$b.createCommentVNode("",!0)],64))),128)),!ie.value&&oe.value.enabled&&oe.value.variant!=="none"?(e$b.openBlock(),e$b.createElementBlock("span",{key:2,class:e$b.normalizeClass(["sm-frame-particles",`sm-frame-particles--${oe.value.variant}`])},[(e$b.openBlock(!0),e$b.createElementBlock(e$b.Fragment,null,e$b.renderList(fe.value,Ee=>(e$b.openBlock(),e$b.createElementBlock("i",{key:Ee},[oe.value.variant==="snow"?(e$b.openBlock(),e$b.createElementBlock("svg",_hoisted_8$1c,[...ye[10]||(ye[10]=[e$b.createElementVNode("line",{x1:"8",y1:"1",x2:"8",y2:"15"},null,-1),e$b.createElementVNode("line",{x1:"2",y1:"4.5",x2:"14",y2:"11.5"},null,-1),e$b.createElementVNode("line",{x1:"2",y1:"11.5",x2:"14",y2:"4.5"},null,-1)])])):oe.value.variant==="stars"?(e$b.openBlock(),e$b.createElementBlock("svg",_hoisted_9$16,[...ye[11]||(ye[11]=[e$b.createElementVNode("polygon",{points:"8,0.8 10.15,5.45 15.25,6.05 11.5,9.5 12.5,14.55 8,11.95 3.5,14.55 4.5,9.5 0.75,6.05 5.85,5.45"},null,-1)])])):oe.value.variant==="sparks"?(e$b.openBlock(),e$b.createElementBlock("svg",_hoisted_10$$,[...ye[12]||(ye[12]=[e$b.createElementVNode("polygon",{points:"8,0 9.55,6.35 16,8 9.55,9.65 8,16 6.45,9.65 0,8 6.45,6.35"},null,-1)])])):oe.value.variant==="hearts"?(e$b.openBlock(),e$b.createElementBlock("svg",_hoisted_11$T,[...ye[13]||(ye[13]=[e$b.createElementVNode("path",{d:"M8 14.2C6.8 12.6 1.2 9.5 1.2 5.4A3.6 3.6 0 0 1 8 3.7a3.6 3.6 0 0 1 6.8 1.7c0 4.1-5.6 7.2-6.8 8.8Z"},null,-1)])])):oe.value.variant==="petals"?(e$b.openBlock(),e$b.createElementBlock("svg",_hoisted_12$O,[...ye[14]||(ye[14]=[e$b.createElementVNode("path",{d:"M2 13.5C1.7 7.9 4.5 2.8 13.8 1.4 14.7 9.1 10.6 14.3 2 13.5Z"},null,-1),e$b.createElementVNode("path",{d:"M3 12.5c3.6-2.2 6.3-4.8 9.2-8.4",fill:"none"},null,-1)])])):oe.value.variant==="paws"?(e$b.openBlock(),e$b.createElementBlock("svg",_hoisted_13$G,[...ye[15]||(ye[15]=[e$b.createStaticVNode('<ellipse cx="9" cy="12" rx="5.2" ry="4.2" data-v-542b7f71></ellipse><circle cx="3.4" cy="7.1" r="2.1" data-v-542b7f71></circle><circle cx="7.2" cy="3.9" r="2.2" data-v-542b7f71></circle><circle cx="11.4" cy="3.9" r="2.2" data-v-542b7f71></circle><circle cx="15" cy="7.3" r="2" data-v-542b7f71></circle>',5)])])):oe.value.variant==="whales"?(e$b.openBlock(),e$b.createElementBlock("img",{key:6,class:"sm-frame-whale",src:e$b.unref(whaleSvgUrl),alt:"","aria-hidden":"true"},null,8,_hoisted_14$E)):e$b.createCommentVNode("",!0)]))),128))],2)):e$b.createCommentVNode("",!0)],6)):e$b.createCommentVNode("",!0)}},FrameEffects=_export_sfc$1(_sfc_main$2E,[["__scopeId","data-v-542b7f71"]]),CHANNELS=["whatsapp","instagram","telegram","webchat","sms"],ALIASES={"whatsapp-qrcode":"whatsapp","whatsapp-api-official":"whatsapp","whatsapp-api":"whatsapp",whatsapp:"whatsapp",instagram:"instagram",telegram:"telegram",webchat:"webchat","web-chat":"webchat",widget:"webchat",sms:"sms"},LABELS={whatsapp:"WhatsApp",instagram:"Instagram",telegram:"Telegram",webchat:"Webchat",sms:"SMS"};function normalizeChannel(ee){return ee?ALIASES[String(ee).trim().toLowerCase()]??null:null}function channelLabel(ee){return LABELS[normalizeChannel(ee)]??""}function isOfficialChannel(ee){return String(ee||"").toLowerCase().includes("official")}const _hoisted_1$2q=["aria-label"],_hoisted_2$27={class:"channel-icon-glyph",viewBox:"0 0 16 16",fill:"currentColor"},_hoisted_3$1W={key:0,d:"M13.601 2.326A7.854 7.854 0 0 0 7.994 0C3.627 0 .068 3.558.064 7.926c0 1.399.366 2.76 1.057 3.965L0 16l4.204-1.102a7.933 7.933 0 0 0 3.79.965h.004c4.368 0 7.926-3.558 7.93-7.93A7.898 7.898 0 0 0 13.6 2.326zM7.994 14.521a6.573 6.573 0 0 1-3.356-.92l-.24-.144-2.494.654.666-2.433-.156-.251a6.56 6.56 0 0 1-1.007-3.505c0-3.626 2.957-6.584 6.591-6.584a6.56 6.56 0 0 1 4.66 1.931 6.557 6.557 0 0 1 1.928 4.66c-.004 3.639-2.961 6.592-6.592 6.592zm3.615-4.934c-.197-.099-1.17-.578-1.353-.646-.182-.065-.315-.099-.445.099-.133.197-.513.646-.627.775-.114.133-.232.148-.43.05-.197-.1-.836-.308-1.592-.985-.59-.525-.985-1.175-1.103-1.372-.114-.198-.011-.304.088-.403.087-.088.197-.232.296-.346.1-.114.133-.198.198-.33.065-.134.034-.248-.015-.347-.05-.099-.445-1.076-.612-1.47-.16-.389-.323-.335-.445-.34-.114-.007-.247-.007-.38-.007a.729.729 0 0 0-.529.247c-.182.198-.691.677-.691 1.654 0 .977.71 1.916.81 2.049.098.133 1.394 2.132 3.383 2.992.47.205.84.326 1.129.418.475.152.904.129 1.246.08.38-.058 1.171-.48 1.338-.943.164-.464.164-.86.114-.943-.049-.084-.182-.133-.38-.232z"},_hoisted_4$1K={key:1,d:"M8 0C5.829 0 5.556.01 4.703.048 3.85.088 3.269.222 2.76.42a3.917 3.917 0 0 0-1.417.923A3.927 3.927 0 0 0 .42 2.76C.222 3.268.087 3.85.048 4.7.01 5.555 0 5.827 0 8.001c0 2.172.01 2.444.048 3.297.04.852.174 1.433.372 1.942.205.526.478.972.923 1.417.444.445.89.719 1.416.923.51.198 1.09.333 1.942.372C5.555 15.99 5.827 16 8 16s2.444-.01 3.298-.048c.851-.04 1.434-.174 1.943-.372a3.916 3.916 0 0 0 1.416-.923c.445-.445.718-.891.923-1.417.197-.509.332-1.09.372-1.942C15.99 10.445 16 10.173 16 8s-.01-2.445-.048-3.299c-.04-.851-.175-1.433-.372-1.941a3.926 3.926 0 0 0-.923-1.417A3.911 3.911 0 0 0 13.24.42c-.51-.198-1.092-.333-1.943-.372C10.443.01 10.172 0 7.998 0h.003zm-.717 1.442h.718c2.136 0 2.389.007 3.232.046.78.035 1.204.166 1.486.275.373.145.64.319.92.599.28.28.453.546.598.92.11.281.24.705.275 1.485.039.843.047 1.096.047 3.231s-.008 2.389-.047 3.232c-.035.78-.166 1.203-.275 1.485a2.47 2.47 0 0 1-.599.919c-.28.28-.546.453-.92.598-.28.11-.704.24-1.485.276-.843.038-1.096.047-3.232.047s-2.39-.009-3.233-.047c-.78-.036-1.203-.166-1.485-.276a2.478 2.478 0 0 1-.92-.598 2.48 2.48 0 0 1-.6-.92c-.109-.281-.24-.705-.275-1.485-.038-.843-.046-1.096-.046-3.233 0-2.136.008-2.388.046-3.231.036-.78.166-1.204.276-1.486.145-.373.319-.64.599-.92.28-.28.546-.453.92-.598.282-.11.705-.24 1.485-.276.738-.034 1.024-.044 2.515-.045v.002zm4.988 1.328a.96.96 0 1 0 0 1.92.96.96 0 0 0 0-1.92zm-4.27 1.122a4.109 4.109 0 1 0 0 8.217 4.109 4.109 0 0 0 0-8.217zm0 1.441a2.667 2.667 0 1 1 0 5.334 2.667 2.667 0 0 1 0-5.334z"},_hoisted_5$1A={key:2,d:"M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0zM8.287 5.906c-.778.324-2.334.994-4.666 2.01-.378.15-.577.298-.595.442-.03.243.275.339.69.47.057.018.116.037.176.057.415.144.973.31 1.262.317.263.006.556-.102.88-.325 2.14-1.443 3.245-2.173 3.315-2.19.05-.011.118-.026.164.015.045.041.041.12.036.141-.03.125-1.204 1.216-1.812 1.78-.19.176-.324.3-.352.33a8.404 8.404 0 0 1-.198.196c-.38.366-.664.64.015 1.088.327.216.589.394.85.572.284.194.568.387.936.629.093.06.183.125.27.187.331.236.63.448.997.414.214-.02.435-.22.547-.82.265-1.417.786-4.486.906-5.751a1.426 1.426 0 0 0-.013-.315.337.337 0 0 0-.114-.217.526.526 0 0 0-.31-.093c-.3.005-.763.166-2.984 1.09z"},_hoisted_6$1r={key:3,d:"M1.6 7.6C1.6 8.96 2.083 10.215 2.897 11.223L1.677 13.457C1.627 13.55 1.6 13.655 1.6 13.762C1.6 14.115 1.885 14.4 2.237 14.4C2.337 14.4 2.433 14.385 2.525 14.348L5.435 13.1C6.22 13.422 7.088 13.6 8 13.6C11.535 13.6 14.4 10.912 14.4 7.6C14.4 4.287 11.535 1.6 8 1.6C4.465 1.6 1.6 4.287 1.6 7.6zM3.95 11.797C4.183 11.37 4.135 10.845 3.83 10.467C3.177 9.66 2.8 8.67 2.8 7.6C2.8 5.02 5.055 2.8 8 2.8C10.945 2.8 13.2 5.02 13.2 7.6C13.2 10.18 10.945 12.4 8 12.4C7.245 12.4 6.533 12.253 5.893 11.99C5.595 11.867 5.26 11.87 4.965 11.997L3.5 12.622L3.95 11.797zM5.2 8.4C5.643 8.4 6 8.043 6 7.6C6 7.158 5.643 6.8 5.2 6.8C4.758 6.8 4.4 7.158 4.4 7.6C4.4 8.043 4.758 8.4 5.2 8.4zM8.8 7.6C8.8 7.158 8.442 6.8 8 6.8C7.558 6.8 7.2 7.158 7.2 7.6C7.2 8.043 7.558 8.4 8 8.4C8.442 8.4 8.8 8.043 8.8 7.6zM10.8 8.4C11.242 8.4 11.6 8.043 11.6 7.6C11.6 7.158 11.242 6.8 10.8 6.8C10.357 6.8 10 7.158 10 7.6C10 8.043 10.357 8.4 10.8 8.4z"},_hoisted_7$1k={key:4,d:"M2 3a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v7a1 1 0 0 1-1 1H8.9l-2.4 2.2c-.5.45-1.3.1-1.3-.57V11H3a1 1 0 0 1-1-1V3zm2.5 2.25a.75.75 0 0 0 0 1.5h7a.75.75 0 0 0 0-1.5h-7zm0 2.5a.75.75 0 0 0 0 1.5h4a.75.75 0 0 0 0-1.5h-4z"},_hoisted_8$1b={key:0,class:"channel-icon-official",viewBox:"0 0 16 16",fill:"#0081fb","aria-hidden":"true"},_sfc_main$2D={__name:"ChannelIcon",props:{channel:{type:String,default:null},tone:{type:String,default:"mono",validator:ee=>["mono","brand"].includes(ee)},official:{type:Boolean,default:!1}},setup(ee){const te=ee,ne={whatsapp:"#25d366",instagram:"#d6249f",telegram:"#229ed9",webchat:"#ffffff"},ae=e$b.computed(()=>normalizeChannel(te.channel)),re=e$b.computed(()=>channelLabel(te.channel)),oe=e$b.computed(()=>te.tone==="brand"?ne[ae.value]??null:null),ie=e$b.computed(()=>te.official&&ae.value==="whatsapp");return(le,ce)=>ae.value?(e$b.openBlock(),e$b.createElementBlock("span",{key:0,class:"channel-icon",style:e$b.normalizeStyle(oe.value?{color:oe.value}:null),role:"img","aria-label":re.value},[(e$b.openBlock(),e$b.createElementBlock("svg",_hoisted_2$27,[ae.value==="whatsapp"?(e$b.openBlock(),e$b.createElementBlock("path",_hoisted_3$1W)):ae.value==="instagram"?(e$b.openBlock(),e$b.createElementBlock("path",_hoisted_4$1K)):ae.value==="telegram"?(e$b.openBlock(),e$b.createElementBlock("path",_hoisted_5$1A)):ae.value==="webchat"?(e$b.openBlock(),e$b.createElementBlock("path",_hoisted_6$1r)):(e$b.openBlock(),e$b.createElementBlock("path",_hoisted_7$1k))])),ie.value?(e$b.openBlock(),e$b.createElementBlock("svg",_hoisted_8$1b,[...ce[0]||(ce[0]=[e$b.createElementVNode("path",{"fill-rule":"evenodd",d:"M8.217 5.243C9.145 3.988 10.171 3 11.483 3 13.96 3 16 6.153 16.001 9.907c0 2.29-.986 3.725-2.757 3.725-1.543 0-2.395-.866-3.924-3.424l-.667-1.123-.118-.197a54.944 54.944 0 0 0-.53-.877l-1.178 2.08c-1.673 2.925-2.615 3.541-3.923 3.541C1.086 13.632 0 12.217 0 9.973 0 6.388 1.995 3 4.598 3c.319 0 .625.039.924.122.31.086.611.22.913.407.577.359 1.154.915 1.782 1.714Zm1.516 2.224c-.252-.41-.494-.787-.727-1.133L9 6.326c.845-1.305 1.543-1.954 2.372-1.954 1.723 0 3.102 2.537 3.102 5.653 0 1.188-.39 1.877-1.195 1.877-.773 0-1.142-.51-2.61-2.87l-.937-1.565ZM4.846 4.756c.725.1 1.385.634 2.34 2.001A212.13 212.13 0 0 0 5.551 9.3c-1.357 2.126-1.826 2.603-2.581 2.603-.777 0-1.24-.682-1.24-1.9 0-2.602 1.298-5.264 2.846-5.264.091 0 .181.006.27.018Z"},null,-1)])])):e$b.createCommentVNode("",!0)],12,_hoisted_1$2q)):e$b.createCommentVNode("",!0)}},ChannelIcon=_export_sfc$1(_sfc_main$2D,[["__scopeId","data-v-06c1e53c"]]),MAX_ENTRIES=300;try{window.localStorage.removeItem("sm-click:media-size")}catch{}const sizes=new Map;function isDataSource(ee){return typeof ee=="string"&&ee.startsWith("data:")}function mediaKey(ee){return typeof ee!="string"||!ee||ee.startsWith("undefined")||isDataSource(ee)?"":ee.split("?")[0]}function sameMediaSource(ee,te){if(isDataSource(ee)||isDataSource(te))return ee===te;const ne=mediaKey(ee);return!!ne&&ne===mediaKey(te)}function rememberMediaSize(ee,te,ne){const ae=mediaKey(ee);if(!ae||!(te>0)||!(ne>0))return;const re=sizes.get(ae);re&&re.w===te&&re.h===ne||(sizes.delete(ae),sizes.set(ae,{w:te,h:ne}),sizes.size>MAX_ENTRIES&&sizes.delete(sizes.keys().next().value))}function readMediaSize(ee){const te=mediaKey(ee);return te&&sizes.get(te)||null}function positivePair(ee,te){const ne=Number(ee),ae=Number(te);return ne>0&&ae>0?{w:ne,h:ae}:null}function mediaSizeFromContent(ee,te){var ae,re;const ne=ee||{};return positivePair(ne.width,ne.height)||positivePair(ne.media_width,ne.media_height)||positivePair((ae=ne.dimensions)==null?void 0:ae.width,(re=ne.dimensions)==null?void 0:re.height)||readMediaSize(te||ne.url||"")}const preloadedImageSources=new Set;function validImageSource(ee){return typeof ee=="string"&&ee.length>0&&!ee.startsWith("undefined")}function isImageSourcePreloaded(ee){return validImageSource(ee)&&preloadedImageSources.has(ee)}function preloadImageSource(ee){return new Promise(te=>{if(preloadedImageSources.has(ee)){te();return}const ne=new Image,ae=async re=>{var oe;if(ne.onload=null,ne.onerror=null,re){try{await((oe=ne.decode)==null?void 0:oe.call(ne))}catch{}preloadedImageSources.add(ee),rememberMediaSize(ee,ne.naturalWidth,ne.naturalHeight)}te()};ne.onload=()=>void ae(!0),ne.onerror=()=>void ae(!1),ne.src=ee})}async function warmImageSources(ee,te){const ne=[...new Set(ee.filter(validImageSource))];if(ne.length===0)return;const ae=Promise.allSettled(ne.map(preloadImageSource));await new Promise(re=>{const oe=window.setTimeout(re,te);ae.then(()=>{window.clearTimeout(oe),re()})})}function senderHue(ee){const te=String(ee||"").trim().toLowerCase();if(!te)return 210;let ne=5381;for(let ae=0;ae<te.length;ae+=1)ne=(ne<<5)+ne+te.charCodeAt(ae)>>>0;return ne%12*30}function senderColorStyle(ee){return{"--sender-hue":senderHue(ee)}}const LETTER=new RegExp("\\p{L}|\\p{N}","u");function avatarInitials(ee,te=""){const ne=String(ee||te||"").trim();if(!ne||!LETTER.test(ne))return"";const ae=ne.split(/\s+/).filter(oe=>LETTER.test(oe));return ae.length?(ae.length>1?ae[0].charAt(0)+ae[ae.length-1].charAt(0):ae[0].slice(0,2)).toUpperCase():""}function avatarHue(ee){return senderHue(ee)}const RARITIES={common:{key:"common",label:"Comum",order:0,accentRgb:null,glow:0,tile:"bg-slate-400/15 text-slate-200 ring-slate-400/25",badge:"bg-slate-400/20 text-slate-100",chip:"bg-slate-400/10 text-slate-300 dark:bg-slate-500/15 dark:text-slate-600",text:"text-slate-300 dark:text-slate-600",bar:"from-slate-400/70 to-slate-300"},rare:{key:"rare",label:"Raro",order:1,accentRgb:"56 189 248",glow:.16,tile:"bg-sky-500/15 text-sky-200 ring-sky-400/30",badge:"bg-sky-500/25 text-sky-100",chip:"bg-sky-500/10 text-sky-300 dark:bg-sky-500/15 dark:text-sky-700",text:"text-sky-300 dark:text-sky-700",bar:"from-sky-500/80 to-sky-300"},epic:{key:"epic",label:"Épico",order:2,accentRgb:"167 139 250",glow:.22,tile:"bg-violet-500/15 text-violet-200 ring-violet-400/30",badge:"bg-violet-500/25 text-violet-100",chip:"bg-violet-500/10 text-violet-300 dark:bg-violet-500/15 dark:text-violet-700",text:"text-violet-300 dark:text-violet-700",bar:"from-violet-500/80 to-violet-300"},legendary:{key:"legendary",label:"Lendário",order:3,accentRgb:"251 191 36",glow:.28,tile:"bg-amber-400/15 text-amber-200 ring-amber-400/35",badge:"bg-amber-400/25 text-amber-100",chip:"bg-amber-400/10 text-amber-300 dark:bg-amber-400/15 dark:text-amber-700",text:"text-amber-300 dark:text-amber-700",bar:"from-amber-500/80 to-amber-300"},secret:{key:"secret",label:"Secreta",order:4,accentRgb:"232 121 249",glow:.26,tile:"bg-fuchsia-500/15 text-fuchsia-200 ring-fuchsia-400/30",badge:"bg-fuchsia-500/25 text-fuchsia-100",chip:"bg-fuchsia-500/10 text-fuchsia-300 dark:bg-fuchsia-500/15 dark:text-fuchsia-700",text:"text-fuchsia-300 dark:text-fuchsia-700",bar:"from-fuchsia-500/80 to-fuchsia-300"}},MIN_GRADE_PARAM={key:"min_grade",label:"Nota mínima",unit:"de 10",min:1,max:10,default:9},MAX_MINUTES_PARAM={key:"max_minutes",label:"Tempo máximo",unit:"min",min:1,max:600,default:5},MAX_QUEUE_MINUTES_PARAM={...MAX_MINUTES_PARAM,label:"Espera máxima",default:1},ACHIEVEMENT_METRICS=[{key:"chat_finished",label:"Atendimentos concluídos",unit:"atendimentos",params:[]},{key:"chat_grade",label:"Avaliação (nota)",unit:"avaliações",params:[MIN_GRADE_PARAM]},{key:"chat_attending_time",label:"Tempo de atendimento",unit:"atendimentos",params:[MAX_MINUTES_PARAM]},{key:"chat_waiting_time",label:"Tempo de espera na fila",unit:"atendimentos",params:[MAX_QUEUE_MINUTES_PARAM]},{key:"chat_flow",label:"Atendimento proativo",unit:"atendimentos",params:[]},{key:"level",label:"Nível alcançado",unit:"nível",params:[]},{key:"season_points",label:"Pontos na temporada",unit:"pts",params:[]},{key:"season_rank",label:"Posição na temporada",unit:"posição",params:[]},{key:"season_wins",label:"Temporadas vencidas",unit:"temporadas",params:[]}],ACHIEVEMENT_SCOPES=[{key:"general",label:"Geral (permanente)"},{key:"season",label:"Temporada atual"}];function achievementMetric(ee){return ACHIEVEMENT_METRICS.find(te=>te.key===ee)||null}function metricParams(ee){var te;return((te=achievementMetric(ee))==null?void 0:te.params)||[]}function defaultMetricParams(ee){return Object.fromEntries(metricParams(ee).map(te=>[te.key,te.default]))}function normalizeParams(ee,te={}){const ne=metricParams(ee).map(ae=>[ae.key,Number(te==null?void 0:te[ae.key])]).filter(([,ae])=>Number.isFinite(ae));return Object.fromEntries(ne)}function createAchievementRequirement(ee={}){const te=ACHIEVEMENT_SCOPES.some(ne=>ne.key===ee.scope)?ee.scope:"general";return{metric:ee.metric,target:Number(ee.target),params:normalizeParams(ee.metric,ee.params),scope:te,season_id:te==="season"?ee.season_id??null:null}}function isInvalidPositiveNumber(ee){const te=Number(ee);return ee===""||ee===null||ee===void 0||!Number.isFinite(te)||te<1}function validateAchievementDraft(ee){const te={};return ee&&(String(ee.name||"").trim()||(te.name="Dê um nome para a conquista."),String(ee.description||"").trim()||(te.description="Descreva como desbloquear."),achievementMetric(ee.metric)||(te.metric="Escolha uma métrica."),ee.scope&&!ACHIEVEMENT_SCOPES.some(ne=>ne.key===ee.scope)&&(te.scope="Escolha um escopo."),ee.scope==="season"&&!ee.season_id&&(te.season_id="Selecione a temporada."),isInvalidPositiveNumber(ee.target)&&(te.target="Informe uma meta igual ou maior que 1."),isInvalidPositiveNumber(ee.xp)&&(te.xp="Informe uma recompensa igual ou maior que 1."),metricParams(ee.metric).forEach(ne=>{var re;const ae=Number((re=ee.params)==null?void 0:re[ne.key]);(!Number.isFinite(ae)||ae<ne.min||ae>ne.max)&&(te[ne.key]=`Informe ${ne.label.toLowerCase()} entre ${ne.min} e ${ne.max}.`)}),ee.rarity==="secret"&&!String(ee.hint||"").trim()&&(te.hint="Conquistas secretas precisam de uma dica.")),te}function createCustomAchievement(ee){const te=RARITIES[ee.rarity]?ee.rarity:"common";return{id:`custom-${Date.now().toString(36)}-${Math.random().toString(36).slice(2,7)}`,name:String(ee.name).trim(),description:String(ee.description).trim(),icon:ee.icon||"🏅",rarity:te,hint:te==="secret"?String(ee.hint).trim():"",requirement:createAchievementRequirement(ee),xp:Number(ee.xp),status:!0}}function createCustomAchievementApiPayload(ee){const{id:te,...ne}=createCustomAchievement(ee);return ne}const REQUIREMENT_SENTENCE={chat_finished:(ee,te)=>`Conclua ${ee} ${te===1?"atendimento":"atendimentos"}`,chat_grade:(ee,te,ne)=>{const ae=`${ee} ${te===1?"avaliação":"avaliações"}`;return ne.min_grade?`Receba ${ae} com nota ${ne.min_grade}${ne.min_grade>=10?"":" ou mais"}`:`Receba ${ae}`},chat_attending_time:(ee,te,ne)=>{const ae=`${ee} ${te===1?"atendimento":"atendimentos"}`;if(!ne.max_minutes)return`Resolva ${ae} rapidamente`;const re=`em menos de ${minutesLabel(ne.max_minutes)}`;return te===1?`Resolva ${ae} ${re}`:`Resolva ${ae}, cada um ${re}`},chat_waiting_time:(ee,te,ne)=>{const ae=`${ee} ${te===1?"atendimento":"atendimentos"}`;if(!ne.max_minutes)return`Capture ${ae} sem deixar na fila`;const re=`com menos de ${minutesLabel(ne.max_minutes)} de fila`;return te===1?`Capture ${ae} ${re}`:`Capture ${ae}, cada um ${re}`},chat_flow:(ee,te)=>te===1?"Inicie 1 atendimento proativo":`Inicie ${ee} atendimentos proativos`,level:ee=>`Alcance o nível ${ee}`,season_points:ee=>`Acumule ${ee} pontos`,season_rank:(ee,te)=>te===1?"Termine uma temporada em 1º lugar":`Termine uma temporada no top ${ee}`,season_wins:(ee,te)=>`Vença ${ee} ${te===1?"temporada":"temporadas"}`};function minutesLabel(ee){return`${formatTarget(ee)} ${Number(ee)===1?"minuto":"minutos"}`}function formatTarget(ee){return Number(ee).toLocaleString("pt-BR")}function describeAchievementRequirement(ee){var de;const te=ee==null?void 0:ee.requirement,ne=achievementMetric(te==null?void 0:te.metric),ae=Number(te==null?void 0:te.target);if(!ne||!Number.isFinite(ae)||ae<1)return null;const re=normalizeParams(ne.key,te.params),oe=te.scope==="season"?"season":"general",ie=ee.progress??((de=ee.unlocked)==null?void 0:de.progress),le=Number(ie),ce=ie!=null&&Number.isFinite(le);return{metric:ne.key,metricLabel:ne.label,unit:ne.unit,target:ae,params:re,scope:oe,scopeLabel:oe==="season"?"Por temporada":"Conta desde sempre",text:REQUIREMENT_SENTENCE[ne.key](formatTarget(ae),ae,re),progress:ce?{current:Math.max(0,Math.min(le,ae)),target:ae,remaining:Math.max(0,ae-le),pct:Math.max(0,Math.min(100,Math.round(le/ae*100)))}:null}}const RAW_BASE_ACHIEVEMENTS=[{id:"primeiro-contato",name:"Primeiro Contato",description:"Conclua 1 atendimento.",icon:"👋",rarity:"common",metric:"chat_finished",target:1,xp:25},{id:"pegando-o-jeito",name:"Pegando o Jeito",description:"Conclua 25 atendimentos.",icon:"🔥",rarity:"common",metric:"chat_finished",target:25,xp:50},{id:"primeira-estrela",name:"Primeira Estrela",description:"Receba 1 avaliação com nota 9 ou mais.",icon:"⭐",rarity:"common",metric:"chat_grade",params:{min_grade:9},target:1,xp:25},{id:"mao-na-massa",name:"Mão na Massa",description:"Inicie 1 atendimento proativo.",icon:"💪",rarity:"common",metric:"chat_flow",target:1,xp:25},{id:"sem-enrolar",name:"Sem Enrolar",description:"Resolva 10 atendimentos, cada um em menos de 5 minutos.",icon:"⚡",rarity:"common",metric:"chat_attending_time",params:{max_minutes:5},target:10,xp:50},{id:"porta-aberta",name:"Porta Aberta",description:"Capture 10 atendimentos, cada um com menos de 1 minuto de fila.",icon:"🚪",rarity:"common",metric:"chat_waiting_time",params:{max_minutes:1},target:10,xp:50},{id:"centuriao",name:"Centurião",description:"Conclua 100 atendimentos.",icon:"💯",rarity:"rare",metric:"chat_finished",target:100,xp:120},{id:"modo-turbo",name:"Modo Turbo",description:"Resolva 50 atendimentos, cada um em menos de 5 minutos.",icon:"🚀",rarity:"rare",metric:"chat_attending_time",params:{max_minutes:5},target:50,xp:120},{id:"ima-de-elogios",name:"Ímã de Elogios",description:"Receba 25 avaliações com nota 9 ou mais.",icon:"🧲",rarity:"rare",metric:"chat_grade",params:{min_grade:9},target:25,xp:130},{id:"ninja-da-fila",name:"Ninja da Fila",description:"Capture 50 atendimentos, cada um com menos de 1 minuto de fila.",icon:"🥷",rarity:"rare",metric:"chat_waiting_time",params:{max_minutes:1},target:50,xp:140},{id:"cacador-de-clientes",name:"Caçador de Clientes",description:"Inicie 25 atendimentos proativos.",icon:"🎯",rarity:"rare",metric:"chat_flow",target:25,xp:140},{id:"veterano",name:"Veterano",description:"Alcance o nível 15.",icon:"🎖️",rarity:"rare",metric:"level",target:15,xp:160},{id:"pontuador",name:"Pontuador",description:"Acumule 500 pontos na temporada.",icon:"📊",rarity:"rare",metric:"season_points",scope:"season",target:500,xp:150},{id:"maratonista",name:"Maratonista",description:"Conclua 1.000 atendimentos.",icon:"🏃",rarity:"epic",metric:"chat_finished",target:1e3,xp:350},{id:"colecionador-de-dez",name:"Colecionador de Dez",description:"Receba 100 avaliações com nota 10.",icon:"💎",rarity:"epic",metric:"chat_grade",params:{min_grade:10},target:100,xp:400},{id:"velocidade-de-cruzeiro",name:"Velocidade de Cruzeiro",description:"Resolva 250 atendimentos, cada um em menos de 5 minutos.",icon:"🛫",rarity:"epic",metric:"chat_attending_time",params:{max_minutes:5},target:250,xp:380},{id:"especialista",name:"Especialista",description:"Alcance o nível 30.",icon:"⚔️",rarity:"epic",metric:"level",target:30,xp:500},{id:"lugar-ao-sol",name:"Lugar ao Sol",description:"Termine uma temporada no top 3.",icon:"🥉",rarity:"epic",metric:"season_rank",target:3,xp:400},{id:"lenda-viva",name:"Lenda Viva",description:"Conclua 10.000 atendimentos.",icon:"👑",rarity:"legendary",metric:"chat_finished",target:1e4,xp:1e3},{id:"imortal",name:"Imortal",description:"Alcance o nível 50.",icon:"♾️",rarity:"legendary",metric:"level",target:50,xp:1200},{id:"topo-do-mundo",name:"Topo do Mundo",description:"Termine uma temporada em 1º lugar.",icon:"🌟",rarity:"legendary",metric:"season_rank",target:1,xp:1200},{id:"dinastia",name:"Dinastia",description:"Vença 3 temporadas.",icon:"🏆",rarity:"legendary",metric:"season_wins",target:3,xp:1500},{id:"speedrun",name:"Speedrun Any%",description:"Resolva 10 atendimentos, cada um em menos de 2 minutos.",icon:"🏁",rarity:"secret",hint:"Rápido demais para ser visto.",metric:"chat_attending_time",params:{max_minutes:2},target:10,xp:1800},{id:"na-mosca",name:"Na Mosca",description:"Receba 10 avaliações com nota 10.",icon:"🔟",rarity:"secret",hint:"Perfeição tem sequência.",metric:"chat_grade",params:{min_grade:10},target:10,xp:2e3},{id:"movido-a-cafe",name:"Movido a Café",description:"Conclua 500 atendimentos.",icon:"☕",rarity:"secret",hint:"☕ ☕ ☕",metric:"chat_finished",target:500,xp:2200},{id:"elite",name:"Elite",description:"Acumule 1.337 pontos na temporada.",icon:"😎",rarity:"secret",hint:"Um número muito específico.",metric:"season_points",scope:"season",target:1337,xp:2337},{id:"a-virada",name:"A Virada",description:"Termine uma temporada no top 5.",icon:"📈",rarity:"secret",hint:"Ninguém viu essa chegando.",metric:"season_rank",target:5,xp:2100}],BASE_ACHIEVEMENTS=RAW_BASE_ACHIEVEMENTS.map(({metric:ee,target:te,params:ne,scope:ae,season_id:re,...oe})=>({hint:"",status:!0,...oe,requirement:createAchievementRequirement({metric:ee,target:te,params:ne,scope:ae,season_id:re})})),SM_PLAY_MOCK_ENABLED=!1,XP_CURVE_BASE=100,XP_CURVE_EXPONENT=1.5;function xpStep(ee){const te=Number(ee)>=1?Number(ee):1;return Math.round(XP_CURVE_BASE*te**XP_CURVE_EXPONENT)}function xpFloorForLevel(ee){const te=Number(ee)>=1?Math.trunc(Number(ee)):1;let ne=0;for(let ae=1;ae<te;ae+=1)ne+=xpStep(ae);return ne}function resolveLevel(ee){const te=Math.max(0,Math.trunc(Number(ee)||0));let ne=1,ae=0;for(;te-ae>=xpStep(ne);)ae+=xpStep(ne),ne+=1;const re=te-ae,oe=xpStep(ne);return{level:ne,xp_into_level:re,xp_for_next:oe,progress_pct:Math.min(100,Math.round(re/oe*100))}}function buildBalanceImpact({points:ee=0,totalXp:te=0,level:ne=0,delta:ae=0}={}){const re=ve=>Number(ve).toLocaleString("pt-BR"),oe=ae!==0,ie=Math.max(0,Number(ee)+ae),le=Math.max(0,Number(te)+ae),ce=resolveLevel(le).level,de=ce-Number(ne),ue=Math.abs(de);return[{key:"points",label:"Pontos da temporada",from:re(ee),to:re(ie),changed:oe},{key:"xp",label:"XP total",from:re(te),to:re(le),changed:oe},{key:"level",label:"Nível",from:String(ne),to:String(ce),changed:oe&&ue>0,note:ue?`${de>0?"+":"−"}${ue} ${ue===1?"nível":"níveis"}`:""}]}const activeCatalog=e$b.shallowRef({frames:[],titles:[],achievements:[]});let catalogIndex={frame:new Map,title:new Map,achievement:new Map};function indexById(ee){const te=new Map;for(const ne of ee)ne!=null&&ne.id&&te.set(ne.id,ne);return te}function setCosmeticsCatalog(ee){activeCatalog.value={frames:(ee==null?void 0:ee.frames)??[],titles:(ee==null?void 0:ee.titles)??[],achievements:(ee==null?void 0:ee.achievements)??[]},catalogIndex={frame:indexById(activeCatalog.value.frames),title:indexById(activeCatalog.value.titles),achievement:indexById(activeCatalog.value.achievements)}}const activeAchievements=e$b.shallowRef([]);let achievementIndex=new Map;function setAchievementsCatalog(ee){activeAchievements.value=Array.isArray(ee)?ee:[],achievementIndex=indexById(activeAchievements.value)}function findAchievement(ee){return ee?(activeAchievements.value,achievementIndex.get(ee)||null):null}function findCosmetic(ee,te){var ne;return te?(activeCatalog.value,((ne=catalogIndex[ee])==null?void 0:ne.get(te))||null):null}function isRequirementMet(ee,te){var ne;return!ee||ee.kind==="public"?!0:ee.kind==="level"?te.level>=ee.level:ee.kind==="achievement"?te.unlockedAchievementIds.has(ee.id):ee.kind==="season_rank"?te.bestSeasonRank<=ee.rank:["manual","grant","season"].includes(ee.kind)?((ne=te.ownedCosmeticIds)==null?void 0:ne.has(ee.cosmetic_id))??!1:!1}function isSecretToViewer(ee,te){var ne;return(ee==null?void 0:ee.rarity)==="secret"&&!(te!=null&&te.revealSecrets)&&!((ne=te==null?void 0:te.unlockedAchievementIds)!=null&&ne.has(ee.id))}function requirementLabel(ee,te){if(!ee||ee.kind==="public")return"Disponível para todos";if(ee.kind==="level")return`Nível ${ee.level}`;if(ee.kind==="season_rank")return`Top ${ee.rank} na temporada`;if(ee.kind==="season")return"Coleção de temporada";if(["manual","grant"].includes(ee.kind))return"Concedido pela gestão";const ne=findAchievement(ee.id);return ne?isSecretToViewer(ne,te)?"Conquista secreta":`Conquista: ${ne.name}`:"Conquista"}function describeCosmeticRequirement(ee,te=null){const ne={...baselineMeritContext(),...te||{}},ae=(ee==null?void 0:ee.kind)??"public",re=requirementLabel(ee,ne);if(!ee||ae==="public")return{kind:"public",label:re,text:"Já está disponível — sem requisito."};if(ae==="level"){const oe=Number(ee.level)||0,ie=Number(ne.level)||0;return{kind:ae,label:re,text:`Chegue ao nível ${oe}. O XP que sobe o nível não zera entre temporadas.`,unit:"níveis",progress:oe>0?{current:Math.max(0,Math.min(ie,oe)),target:oe,remaining:Math.max(0,oe-ie),pct:Math.max(0,Math.min(100,Math.round(ie/oe*100)))}:null}}if(ae==="season_rank"){const oe=Number(ee.rank)||0,ie=Number(ne.bestSeasonRank),le=Number.isFinite(ie);return{kind:ae,label:re,text:`Feche uma temporada entre os ${oe} primeiros do seu departamento.`,note:le?`Sua melhor posição até agora: ${ie}º`:"Você ainda não fechou uma temporada com posição registrada."}}if(ae==="achievement"){const oe=findAchievement(ee.id),ie=isSecretToViewer(oe,ne);return oe?{kind:ae,label:re,text:ie?"Desbloqueie uma conquista secreta — ela se revela quando você chegar lá.":`Desbloqueie a conquista "${oe.name}".`,note:ie?null:oe.description||null}:{kind:ae,label:re,text:"Desbloqueie a conquista ligada a este item."}}return ae==="season"?{kind:ae,label:re,text:"Item de coleção de temporada: sai com o ciclo em que é oferecido."}:["manual","grant"].includes(ae)?{kind:ae,label:re,text:"Só a gestão concede este item — não há como desbloquear atendendo."}:{kind:ae,label:re,text:re}}function resolveCosmeticRequirement(ee){const te=ee.availability||ee.requirement;return te?{...typeof te=="string"?{kind:te}:{...te},cosmetic_id:ee.id}:null}function baselineMeritContext(){return{level:1,unlockedAchievementIds:new Set,bestSeasonRank:1/0,ownedCosmeticIds:new Set,revealSecrets:!1}}function buildCosmetics(ee=baselineMeritContext()){const te=re=>{var ce;const oe=resolveCosmeticRequirement(re),ie=isRequirementMet(oe,ee),le={...re,unlocked:ie,availability:oe,requirementLabel:requirementLabel(oe,ee)};return re.type!=="achievement"?le:re.achievementId?{...le,requirementLabel:((ce=RARITIES[re.rarity])==null?void 0:ce.label)||"Desbloqueada"}:{...le,requirementLabel:"Sem destaque"}},ne=activeCatalog.value,ae=ne.achievements.filter(re=>!re.achievementId||isRequirementMet(resolveCosmeticRequirement(re),ee));return[{slot:"frame",label:"Molduras",items:ne.frames.map(te)},{slot:"title",label:"Títulos",items:ne.titles.map(te)},{slot:"achievement",label:"Destaque",items:ae.map(te)}]}function slotId(ee){return ee?typeof ee=="object"?ee.id??null:ee:null}function resolveSmPlayEnabled(ee,te=SM_PLAY_MOCK_ENABLED){var ne;return!ee||typeof ee!="object"?!1:!!(((ne=ee.gamification)==null?void 0:ne.enabled)??ee.gamification_enabled??te)}function resolveAttendantGamification(ee){var ce;const te=(ee==null?void 0:ee.gamification)??(ee==null?void 0:ee.game_profile)??{},ne=te.cosmetics??(ee==null?void 0:ee.cosmetics)??{},ae=ne.equipped??te.equipped??((ce=ee==null?void 0:ee.cosmetics)==null?void 0:ce.equipped)??ne,re=slotId(ae.frame)??null,oe=slotId(ae.title)??null,ie=slotId(ae.achievement)??null,le=(de,ue,ve)=>{const me=de==="achievement"?findAchievement(ve):findCosmetic(de,ve);return me?typeof ue!="object"?me:{...me,...ue,...ue.rarity==null&&me.rarity?{rarity:me.rarity}:{}}:typeof ue=="object"?ue:null};return{level:Number(te.level??(ee==null?void 0:ee.gamification_level)??(ee==null?void 0:ee.level)??1),equipped:{frame:re,title:oe,achievement:ie},frame:le("frame",ae.frame,re),title:le("title",ae.title,oe),achievement:le("achievement",ae.achievement,ie)}}const useAttendantStore=pinia.defineStore("attendant",{state:()=>({attendants:[],count:null,loaded:!1}),getters:{logged_attendant:ee=>()=>ee.attendants.find(te=>te.is_me),attendantsById:ee=>{const te=new Map;for(const ne of ee.attendants)(ne==null?void 0:ne.id)!=null&&te.set(String(ne.id),ne);return te}},actions:{async fetchAttendants(){try{let ee=`${attendantUrl}`;const te=await api.get(ee);this.attendants=te.data,this.count=this.attendants.length}catch(ee){console.log("Erro ao buscar atendentes:",ee)}},removeAttendants(ee){this.attendants=this.attendants.filter(te=>te.id!==ee)},addAttendants(ee){const te=this.attendants.findIndex(ne=>ne.id===ee.id);te!==-1?this.attendants[te]=ee:this.attendants.push(ee)}}}),useMessageUiStore=pinia.defineStore("smClickMessageUi",{state:()=>({deviceType:"web",smPlayEnabled:!1,currentChat:null,attendant:null,themeMode:!0,forwardMode:{active:!1,selectedMessages:[]},actionsMenu:{messageId:null,message:null,x:0,y:0},quote:null,editMessage:{id:null,text:"",editing:!1},list:{modal:!1,message:null}}),getters:{isWebDevice:ee=>ee.deviceType==="web",chatActive:ee=>{var te;return((te=ee.currentChat)==null?void 0:te.status)==="active"},chatInstanceId:ee=>{var te,ne;return((ne=(te=ee.currentChat)==null?void 0:te.instance)==null?void 0:ne.id)??null},instancePhone:ee=>{var te,ne;return((ne=(te=ee.currentChat)==null?void 0:te.instance)==null?void 0:ne.telephone)??""},isGroupChat:ee=>{var te;return!!((te=ee.currentChat)!=null&&te.group)},contactPhoto:ee=>{var te,ne;return((ne=(te=ee.currentChat)==null?void 0:te.contact)==null?void 0:ne.photo)??""},contactName:ee=>{var te,ne;return((ne=(te=ee.currentChat)==null?void 0:te.contact)==null?void 0:ne.name)??""},isMessageSelected:ee=>te=>ee.forwardMode.selectedMessages.includes(te),isActionsTarget:ee=>te=>ee.actionsMenu.messageId!==null&&ee.actionsMenu.messageId===te,loggedAttendant:ee=>ee.attendant||useAttendantStore().logged_attendant()||null},actions:{setContext({deviceType:ee,smPlayEnabled:te,currentChat:ne,themeMode:ae,attendant:re}={}){ee!==void 0&&(this.deviceType=ee||"web"),te!==void 0&&(this.smPlayEnabled=!!te),ne!==void 0&&(this.currentChat=ne),ae!==void 0&&(this.themeMode=!!ae),re!==void 0&&(this.attendant=re)},openActions(ee,te){ee!=null&&ee.id&&(this.actionsMenu={messageId:ee.id,message:ee,x:(te==null?void 0:te.clientX)??0,y:(te==null?void 0:te.clientY)??0})},closeActions(){this.actionsMenu={messageId:null,message:null,x:0,y:0}},startForward(ee){this.forwardMode.active=!0;const te=Array.isArray(ee==null?void 0:ee.items)?ee.items.map(ne=>ne==null?void 0:ne.id).filter(ne=>ne!=null&&ne!==""):[];this.forwardMode.selectedMessages=te.length?te:[ee==null?void 0:ee.id].filter(Boolean)},toggleMessageSelection(ee){if(!ee)return;this.forwardMode.active=!0;const te=this.forwardMode.selectedMessages.indexOf(ee);te>-1?this.forwardMode.selectedMessages.splice(te,1):this.forwardMode.selectedMessages.push(ee),this.forwardMode.selectedMessages.length||(this.forwardMode.active=!1)},togglePackageSelection(ee=[]){const te=ee.filter(ae=>ae!=null&&ae!=="");if(!te.length)return;this.forwardMode.active=!0;const ne=te.filter(ae=>this.forwardMode.selectedMessages.includes(ae));ne.length>te.length-ne.length?this.forwardMode.selectedMessages=this.forwardMode.selectedMessages.filter(ae=>!te.includes(ae)):te.forEach(ae=>{this.forwardMode.selectedMessages.includes(ae)||this.forwardMode.selectedMessages.push(ae)}),this.forwardMode.selectedMessages.length||(this.forwardMode.active=!1)},clearForward(){this.forwardMode.active=!1,this.forwardMode.selectedMessages=[]},setQuote(ee,te,ne){if(!ee){this.quote=null;return}this.quote={...ee,id:ne,...te?{sent_by:te}:{}}},clearQuote(){this.quote=null},startEdit(ee){var te;this.editMessage={id:(ee==null?void 0:ee.id)??null,editing:!0,text:((te=ee==null?void 0:ee.content)==null?void 0:te.text)??""},this.quote=null},clearEdit(){this.editMessage={id:null,text:"",editing:!1}},openList(ee){this.list.modal=!0,this.list.message=ee},closeList(){this.list.modal=!1,this.list.message=null}}}),_hoisted_1$2p={key:0,class:"sm-avatar-arc",viewBox:"0 0 100 100",fill:"none","aria-hidden":"true"},_hoisted_2$26={key:0,class:"sm-avatar-core sm-avatar-core--empty","aria-hidden":"true"},_hoisted_3$1V={key:1,class:"sm-avatar-core"},_hoisted_4$1J=["alt"],_hoisted_5$1z=["src","alt"],_hoisted_6$1q={key:2,class:"sm-avatar-core sm-avatar-core--initials"},_hoisted_7$1j={key:0,class:"size-[62%]",viewBox:"0 0 24 24",fill:"currentColor"},_hoisted_8$1a={key:1,class:"size-[58%]",viewBox:"0 0 24 24",fill:"currentColor"},_hoisted_9$15={class:"sm-avatar-level"},_hoisted_10$_=["title"],_hoisted_11$S={key:3,class:"sm-avatar-outcome","aria-hidden":"true"},_hoisted_12$N={key:0,class:"sm-avatar-outcome-icon sm-avatar-outcome-icon--won",viewBox:"0 0 20 20",fill:"none"},_hoisted_13$F={key:1,class:"sm-avatar-outcome-icon sm-avatar-outcome-icon--lost",viewBox:"0 0 20 17",fill:"none"},_hoisted_14$D={key:4,class:"sm-avatar-blocked","aria-hidden":"true"},FRAME_REFERENCE_SIZE=72,_sfc_main$2C={__name:"Avatar",props:{photo:{type:String,default:""},name:{type:String,default:""},size:{type:String,default:"md",validator:ee=>["xs","sm","md","lg","xl","preview","fill"].includes(ee)},scale:{type:String,default:"identity",validator:ee=>["identity","app"].includes(ee)},fallback:{type:String,default:"initials",validator:ee=>["initials","icon","group"].includes(ee)},attendant:{type:Object,default:null},smPlay:{type:Boolean,default:void 0},frame:{type:Object,default:void 0},frameOnly:{type:Boolean,default:!1},level:{type:Number,default:null},showLevel:{type:Boolean,default:!0},effectLevel:{type:String,default:"border",validator:ee=>["full","compact","border"].includes(ee)},clickable:{type:Boolean,default:!1},blocked:{type:Boolean,default:!1},channel:{type:String,default:null},outcome:{type:String,default:null,validator:ee=>[null,"","won","lost"].includes(ee)}},emits:["view"],setup(ee,{emit:te}){const ne=ee,ae=te,re={identity:{xs:22.4,sm:38.4,md:44,lg:60,preview:66,xl:112},app:{xs:26,sm:40,md:56,lg:80,xl:112}},oe=!!pinia.getActivePinia(),ie=oe?useAttendantStore():null,le=oe?useMessageUiStore():null,ce=e$b.inject("smPlayEnabled",null),de=e$b.computed(()=>{var Ge;return ne.name||((Ge=ne.attendant)==null?void 0:Ge.name)||""}),ue=e$b.computed(()=>{var Ge;return ne.photo||((Ge=ne.attendant)==null?void 0:Ge.photo)||""}),ve=e$b.computed(()=>{var Ke;const Ge=(Ke=ne.attendant)==null?void 0:Ke.id;return!Ge||!ie?null:ie.attendantsById.get(String(Ge))||null}),me=e$b.computed(()=>{if(!ne.attendant)return null;const Ge=resolveAttendantGamification(ne.attendant);return Ge.frame||Ge.title||Ge.achievement||!ve.value?Ge:resolveAttendantGamification(ve.value)}),ge=e$b.computed(()=>{if(ne.smPlay!==void 0)return ne.smPlay;const Ge=e$b.unref(ce);return Ge!=null?!!Ge:!!(le!=null&&le.smPlayEnabled)}),fe=e$b.computed(()=>!!ne.attendant&&ge.value&&resolveSmPlayEnabled(ve.value||ne.attendant)),pe=e$b.computed(()=>{var Ge;return ne.frame!==void 0?ne.frame:fe.value?(Ge=me.value)==null?void 0:Ge.frame:null}),_e=e$b.computed(()=>{var Ge;return ne.level!==null?ne.level:fe.value?(Ge=me.value)==null?void 0:Ge.level:null}),be=e$b.computed(()=>avatarInitials(de.value)),ke=e$b.computed(()=>ne.fallback==="initials"&&!!be.value),$e=e$b.computed(()=>avatarHue(de.value||ue.value)),ye=e$b.computed(()=>!isImageSourcePreloaded(ue.value)),Ee=e$b.computed(()=>resolveFrameVisual(pe.value)),Se=e$b.computed(()=>{var Ge;return((Ge=Ee.value)==null?void 0:Ge.css)??null}),Le=e$b.computed(()=>!!Se.value),Ve=e$b.computed(()=>{var Ge;return((Ge=Ee.value)==null?void 0:Ge.ring.variant)==="arc"}),Te=e$b.computed(()=>{var Ge;return((Ge=Ee.value)==null?void 0:Ge.ring.variant)==="double"}),ze=e$b.computed(()=>{var Ge,Ke;return Ve.value&&((Ke=(Ge=Ee.value)==null?void 0:Ge.ornament)==null?void 0:Ke.variant)||""}),Re=e$b.computed(()=>{var Ge;return!!((Ge=Ee.value)!=null&&Ge.ornament.enabled)&&frameVariantLocked("ornament",Ee.value.ornament.variant)}),Oe=e$b.computed(()=>{var Ge,Ke;return((Ge=Ee.value)==null?void 0:Ge.motion.enabled)&&((Ke=Ee.value)==null?void 0:Ke.motion.rotation)&&ne.effectLevel!=="border"}),Pe=e$b.computed(()=>{var Ge;return Oe.value&&["rainbow","neon"].includes((Ge=Ee.value)==null?void 0:Ge.ring.variant)}),Be=e$b.computed(()=>{var Ke;if(ne.size==="fill")return 1;const Ge=((Ke=re[ne.scale])==null?void 0:Ke[ne.size])??FRAME_REFERENCE_SIZE;return Math.min(2.4,Ge/FRAME_REFERENCE_SIZE)}),De=Ge=>`calc(var(--sm-frame-width, 2px) * ${Math.round(Ge*100)/100})`,Ne=e$b.computed(()=>{if(!Ee.value)return"";const Ge=Ee.value.ring;if(Ge.variant==="arc")return"none";const Ke=Ge.glow*Ge.intensity,et=Ge.colors[0],yt=Ge.colors[1];if(Ge.variant==="double")return`0 0 ${De(1.6+Ke*1.8)} color-mix(in srgb, ${et} ${Math.round(28+Ke*45)}%, transparent)`;if(Ge.variant==="neon")return`0 0 ${De(1.4+Ke*1.4)} color-mix(in srgb, ${et} ${Math.round(45+Ke*45)}%, transparent), 0 0 ${De(2.6+Ke*2.6)} color-mix(in srgb, ${yt} ${Math.round(25+Ke*45)}%, transparent)`;if(Ge.variant==="rainbow"){const Et=Ge.colors[2];return`0 0 ${De(1.3+Ke*1.3)} color-mix(in srgb, ${et} ${Math.round(35+Ke*40)}%, transparent), 0 0 ${De(2.2+Ke*2.2)} color-mix(in srgb, ${yt} ${Math.round(25+Ke*35)}%, transparent), 0 0 ${De(3.1+Ke*3.1)} color-mix(in srgb, ${Et} ${Math.round(18+Ke*32)}%, transparent)`}return`0 0 ${De(1.2+Ke*2)} color-mix(in srgb, ${et} ${Math.round(18+Ke*42)}%, transparent)`}),Me=e$b.computed(()=>{var yt;if(ne.size==="fill"&&!Le.value)return"0px";const Ge=Ve.value?.72:Te.value?1.4:1,Ke=Ve.value?1.5:Te.value?3:2,et=(((yt=Ee.value)==null?void 0:yt.ring.width)||2)*Ge/FRAME_REFERENCE_SIZE;return ne.size==="fill"?`max(${Ke}px, ${Math.round(et*1e4)/100}cqw)`:`${Math.max(Ke,et*FRAME_REFERENCE_SIZE*Be.value)}px`}),we=e$b.computed(()=>{var Ge,Ke,et,yt,Et,At,Pt,_t;return Le.value?{"--sm-frame-bg":Ve.value?"transparent":Se.value,boxShadow:Ne.value,"--sm-frame-width":Me.value,"--sm-frame-band-gap":"max(1px, calc(var(--sm-frame-width) * 0.16))","--sm-frame-band-inner":"calc(max(1px, calc(var(--sm-frame-width) * 0.16)) + max(1px, calc(var(--sm-frame-width) * 0.3)))","--sm-frame-primary":((Ke=(Ge=Ee.value)==null?void 0:Ge.ring.colors)==null?void 0:Ke[0])||"rgb(var(--primary-rgb))","--sm-frame-secondary":((yt=(et=Ee.value)==null?void 0:et.ring.colors)==null?void 0:yt[1])||"rgb(var(--primary-rgb))","--sm-frame-accent":((At=(Et=Ee.value)==null?void 0:Et.ring.colors)==null?void 0:At[2])||"rgb(var(--primary-rgb))","--sm-frame-ring-speed":`${6/(((Pt=Ee.value)==null?void 0:Pt.motion.speed)||1)}s`,"--sm-frame-ring-direction":((_t=Ee.value)==null?void 0:_t.motion.direction)==="counterclockwise"?"reverse":"normal","--avatar-hue":$e.value}:{"--sm-frame-width":Me.value,"--avatar-hue":$e.value}}),Ce=e$b.computed(()=>({background:Se.value||"rgb(var(--primary-rgb))"})),Fe=e$b.computed(()=>ne.size==="fill"?"sm-avatar--fill":`sm-avatar--${ne.scale}-${ne.size}`),Ie=e$b.computed(()=>{const Ge=normalizeChannel(ne.channel);return Ge==="whatsapp"?null:Ge}),Ue=e$b.computed(()=>{var Ge;return!!((Ge=Ee.value)!=null&&Ge.motion.enabled)&&(ne.effectLevel!=="border"||Re.value)}),{offscreenRef:qe,paused:je}=useOffscreenPause(Ue);function We(){ne.clickable&&ue.value&&ae("view",ue.value)}return(Ge,Ke)=>{const et=e$b.resolveDirective("lazy");return e$b.openBlock(),e$b.createBlock(e$b.resolveDynamicComponent(ee.clickable?"button":"div"),{ref_key:"offscreenRef",ref:qe,class:e$b.normalizeClass(["sm-avatar",[Fe.value,ee.clickable?"sm-avatar--clickable":"",e$b.unref(je)?"sm-avatar--offscreen":""]]),type:ee.clickable?"button":void 0,onClick:We},{default:e$b.withCtx(()=>{var yt;return[Ee.value&&(ee.effectLevel!=="border"||Re.value)?(e$b.openBlock(),e$b.createBlock(FrameEffects,{key:0,visual:Ee.value,"visual-normalized":"","effect-level":ee.effectLevel,"pause-offscreen":!1},null,8,["visual","effect-level"])):e$b.createCommentVNode("",!0),e$b.createElementVNode("div",{class:e$b.normalizeClass(["sm-avatar-frame",[Oe.value?"sm-avatar-frame--animated":"",Pe.value?"sm-avatar-frame--spins":"",(yt=Ee.value)!=null&&yt.ring.variant?`sm-avatar-frame--${Ee.value.ring.variant}`:"",ze.value?`sm-avatar-frame--signature-${ze.value}`:"",Le.value?"sm-avatar-frame--painted":"",ee.frameOnly&&!Le.value?"sm-avatar-frame--empty":""]]),style:e$b.normalizeStyle(we.value)},[Ve.value?(e$b.openBlock(),e$b.createElementBlock("svg",_hoisted_1$2p,[...Ke[0]||(Ke[0]=[e$b.createElementVNode("circle",{class:"sm-avatar-arc-halo",cx:"50",cy:"50",r:"48.5"},null,-1),e$b.createElementVNode("circle",{class:"sm-avatar-arc-core",cx:"50",cy:"50",r:"48.5"},null,-1),e$b.createElementVNode("circle",{class:"sm-avatar-arc-highlight",cx:"50",cy:"50",r:"48.5"},null,-1)])])):e$b.createCommentVNode("",!0),e$b.createElementVNode("div",{class:e$b.normalizeClass(["sm-avatar-gap",Le.value&&ee.scale==="app"?"sm-avatar-gap--app":""])},[ee.frameOnly?(e$b.openBlock(),e$b.createElementBlock("div",_hoisted_2$26)):ue.value?(e$b.openBlock(),e$b.createElementBlock("div",_hoisted_3$1V,[ye.value?e$b.withDirectives((e$b.openBlock(),e$b.createElementBlock("img",{key:0,alt:de.value,class:"sm-avatar-image"},null,8,_hoisted_4$1J)),[[et,ue.value]]):(e$b.openBlock(),e$b.createElementBlock("img",{key:1,src:ue.value,alt:de.value,class:"sm-avatar-image"},null,8,_hoisted_5$1z))])):ke.value?(e$b.openBlock(),e$b.createElementBlock("div",_hoisted_6$1q,e$b.toDisplayString(be.value),1)):(e$b.openBlock(),e$b.createElementBlock("div",{key:3,class:e$b.normalizeClass(["sm-avatar-core",ee.fallback==="group"?"sm-avatar-core--initials sm-avatar-core--group":"sm-avatar-core--icon"]),"aria-hidden":"true"},[ee.fallback==="group"?(e$b.openBlock(),e$b.createElementBlock("svg",_hoisted_7$1j,[...Ke[1]||(Ke[1]=[e$b.createElementVNode("path",{"fill-rule":"evenodd",d:"M12 6a3.5 3.5 0 1 0 0 7 3.5 3.5 0 0 0 0-7Zm-1.5 8a4 4 0 0 0-4 4 2 2 0 0 0 2 2h7a2 2 0 0 0 2-2 4 4 0 0 0-4-4h-3Zm6.82-3.096a5.51 5.51 0 0 0-2.797-6.293 3.5 3.5 0 1 1 2.796 6.292ZM19.5 18h.5a2 2 0 0 0 2-2 4 4 0 0 0-4-4h-1.1a5.503 5.503 0 0 1-.471.762A5.998 5.998 0 0 1 19.5 18ZM4 7.5a3.5 3.5 0 0 1 5.477-2.889 5.5 5.5 0 0 0-2.796 6.293A3.501 3.501 0 0 1 4 7.5ZM7.1 12H6a4 4 0 0 0-4 4 2 2 0 0 0 2 2h.5a5.998 5.998 0 0 1 3.071-5.238A5.505 5.505 0 0 1 7.1 12Z","clip-rule":"evenodd"},null,-1)])])):(e$b.openBlock(),e$b.createElementBlock("svg",_hoisted_8$1a,[...Ke[2]||(Ke[2]=[e$b.createElementVNode("path",{d:"M12 12.4a4.2 4.2 0 1 0 0-8.4 4.2 4.2 0 0 0 0 8.4Zm0 1.7c-3.98 0-7.2 2.28-7.2 5.09 0 .45.37.81.83.81h12.74c.46 0 .83-.36.83-.81 0-2.81-3.22-5.09-7.2-5.09Z"},null,-1)])]))],2))],2)],6),!ee.frameOnly&&ee.showLevel&&_e.value?(e$b.openBlock(),e$b.createElementBlock("span",{key:1,class:"sm-avatar-level-frame",style:e$b.normalizeStyle(Ce.value)},[e$b.createElementVNode("span",_hoisted_9$15,e$b.toDisplayString(_e.value),1)],4)):e$b.createCommentVNode("",!0),Ie.value?(e$b.openBlock(),e$b.createElementBlock("span",{key:2,class:e$b.normalizeClass(["sm-avatar-channel",`sm-avatar-channel--${Ie.value}`]),title:e$b.unref(channelLabel)(ee.channel)},[e$b.createVNode(ChannelIcon,{channel:Ie.value},null,8,["channel"])],10,_hoisted_10$_)):e$b.createCommentVNode("",!0),ee.outcome?(e$b.openBlock(),e$b.createElementBlock("span",_hoisted_11$S,[ee.outcome==="won"?(e$b.openBlock(),e$b.createElementBlock("svg",_hoisted_12$N,[...Ke[3]||(Ke[3]=[e$b.createElementVNode("path",{d:"M3.16666 6.37502C3.74962 6.37502 4.2222 6.85073 4.22222 7.43752V15.9375C4.22222 16.5243 3.74963 17 3.16666 17H1.05555C0.472588 17 0 16.5243 0 15.9375V7.43752C1.50967e-05 6.85073 0.472597 6.37502 1.05555 6.37502H3.16666Z",fill:"currentColor"},null,-1),e$b.createElementVNode("path",{d:"M9.48143 1.4454C9.79496 -0.637173 11.5194 0.143216 11.5194 0.143216C13.863 1.75728 13.005 4.80783 12.2832 6.13118H17.4424C19.5307 6.65187 19.0768 8.34354 18.5887 9.12465C19.5056 10.7905 18.4191 11.7716 17.7609 12.0538C18.1175 13.7717 17.0601 14.4178 16.4869 14.5264C16.8944 16.4004 15.5533 16.9564 14.8314 17H10.436C8.49997 16.9999 6.19055 16.1753 5.27777 15.7632V7.368C9.03523 5.6108 9.09933 3.98356 9.48143 1.4454Z",fill:"currentColor"},null,-1)])])):(e$b.openBlock(),e$b.createElementBlock("svg",_hoisted_13$F,[...Ke[4]||(Ke[4]=[e$b.createElementVNode("path",{d:"M15.8333 10.625C15.2504 10.625 14.7778 10.1493 14.7778 9.56249L14.7778 1.0625C14.7778 0.475698 15.2504 1.57955e-06 15.8333 1.63051e-06L17.9444 1.81507e-06C18.5274 1.86603e-06 19 0.475698 19 1.0625L19 9.56249C19 10.1493 18.5274 10.625 17.9444 10.625L15.8333 10.625Z",fill:"currentColor"},null,-1),e$b.createElementVNode("path",{d:"M9.51857 15.5546C9.20504 17.6372 7.48065 16.8568 7.48065 16.8568C5.13698 15.2427 5.99503 12.1922 6.71681 10.8688L1.55759 10.8688C-0.530671 10.3481 -0.0768444 8.65646 0.411319 7.87535C-0.50562 6.20951 0.580926 5.22844 1.23906 4.94622C0.882549 3.22832 1.93994 2.5822 2.51315 2.47363C2.10564 0.59965 3.44673 0.0436064 4.16864 6.1075e-07L8.56403 9.95007e-07C10.5 0.000138493 12.8095 0.824657 13.7222 1.23682L13.7222 9.632C9.96477 11.3892 9.90067 13.0164 9.51857 15.5546Z",fill:"currentColor"},null,-1)])]))])):e$b.createCommentVNode("",!0),ee.blocked?(e$b.openBlock(),e$b.createElementBlock("span",_hoisted_14$D,[...Ke[5]||(Ke[5]=[e$b.createElementVNode("svg",{viewBox:"0 0 24 24",fill:"currentColor"},[e$b.createElementVNode("path",{"fill-rule":"evenodd",d:"M8 10V7a4 4 0 1 1 8 0v3h1a2 2 0 0 1 2 2v7a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2v-7a2 2 0 0 1 2-2h1Zm2-3a2 2 0 1 1 4 0v3h-4V7Zm2 6a1 1 0 0 1 1 1v3a1 1 0 1 1-2 0v-3a1 1 0 0 1 1-1Z","clip-rule":"evenodd"})],-1)])])):e$b.createCommentVNode("",!0),e$b.renderSlot(Ge.$slots,"badge",{},void 0,!0)]}),_:3},8,["class","type"])}}},Avatar=_export_sfc$1(_sfc_main$2C,[["__scopeId","data-v-bfed9127"]]),_hoisted_1$2o=["href"],_hoisted_2$25={key:0,class:"size-3 opacity-70 group-hover:opacity-100",viewBox:"0 0 16 16"},_hoisted_3$1U=["id"],_hoisted_4$1I=["fill"],_hoisted_5$1y={class:"instagram-user group-hover:underline"},_sfc_main$2B={__name:"instagramBadge",props:{instagramUserName:{type:String,required:!0},size:{type:String,default:"small",validator:ee=>["small","medium","large"].includes(ee)},hideSvg:{type:Boolean,default:!1}},setup(ee){const te=ee,ne=e$b.computed(()=>({"instagram-badge":!0,"instagram-badge--medium":te.size==="medium","instagram-badge--large":te.size==="large"})),ae=e$b.computed(()=>`ig-grad-${Math.random().toString(36).slice(2,9)}`);return(re,oe)=>ee.instagramUserName?(e$b.openBlock(),e$b.createElementBlock("a",{key:0,target:"_blank",rel:"noopener noreferrer",href:`https://www.instagram.com/${ee.instagramUserName}/`,class:e$b.normalizeClass([ne.value,"group rt-transition"]),onClick:oe[0]||(oe[0]=e$b.withModifiers(()=>{},["stop"]))},[ee.hideSvg?e$b.createCommentVNode("",!0):(e$b.openBlock(),e$b.createElementBlock("svg",_hoisted_2$25,[e$b.createElementVNode("defs",null,[e$b.createElementVNode("linearGradient",{id:ae.value,x1:"0%",y1:"100%",x2:"100%",y2:"0%"},[...oe[1]||(oe[1]=[e$b.createElementVNode("stop",{offset:"0%",style:{"stop-color":"#fd5949"}},null,-1),e$b.createElementVNode("stop",{offset:"50%",style:{"stop-color":"#d6249f"}},null,-1),e$b.createElementVNode("stop",{offset:"100%",style:{"stop-color":"#285aeb"}},null,-1)])],8,_hoisted_3$1U)]),e$b.createElementVNode("path",{fill:`url(#${ae.value})`,d:"M8 0C5.829 0 5.556.01 4.703.048 3.85.088 3.269.222 2.76.42a3.917 3.917 0 0 0-1.417.923A3.927 3.927 0 0 0 .42 2.76C.222 3.268.087 3.85.048 4.7.01 5.555 0 5.827 0 8.001c0 2.172.01 2.444.048 3.297.04.852.174 1.433.372 1.942.205.526.478.972.923 1.417.444.445.89.719 1.416.923.51.198 1.09.333 1.942.372C5.555 15.99 5.827 16 8 16s2.444-.01 3.298-.048c.851-.04 1.434-.174 1.943-.372a3.916 3.916 0 0 0 1.416-.923c.445-.445.718-.891.923-1.417.197-.509.332-1.09.372-1.942C15.99 10.445 16 10.173 16 8s-.01-2.445-.048-3.299c-.04-.851-.175-1.433-.372-1.941a3.926 3.926 0 0 0-.923-1.417A3.911 3.911 0 0 0 13.24.42c-.51-.198-1.092-.333-1.943-.372C10.443.01 10.172 0 7.998 0h.003zm-.717 1.442h.718c2.136 0 2.389.007 3.232.046.78.035 1.204.166 1.486.275.373.145.64.319.92.599.28.28.453.546.598.92.11.281.24.705.275 1.485.039.843.047 1.096.047 3.231s-.008 2.389-.047 3.232c-.035.78-.166 1.203-.275 1.485a2.47 2.47 0 0 1-.599.919c-.28.28-.546.453-.92.598-.28.11-.704.24-1.485.276-.843.038-1.096.047-3.232.047s-2.39-.009-3.233-.047c-.78-.036-1.203-.166-1.485-.276a2.478 2.478 0 0 1-.92-.598 2.48 2.48 0 0 1-.6-.92c-.109-.281-.24-.705-.275-1.485-.038-.843-.046-1.096-.046-3.233 0-2.136.008-2.388.046-3.231.036-.78.166-1.204.276-1.486.145-.373.319-.64.599-.92.28-.28.546-.453.92-.598.282-.11.705-.24 1.485-.276.738-.034 1.024-.044 2.515-.045v.002zm4.988 1.328a.96.96 0 1 0 0 1.92.96.96 0 0 0 0-1.92zm-4.27 1.122a4.109 4.109 0 1 0 0 8.217 4.109 4.109 0 0 0 0-8.217zm0 1.441a2.667 2.667 0 1 1 0 5.334 2.667 2.667 0 0 1 0-5.334z"},null,8,_hoisted_4$1I)])),e$b.createElementVNode("span",_hoisted_5$1y," @"+e$b.toDisplayString(ee.instagramUserName),1)],10,_hoisted_1$2o)):e$b.createCommentVNode("",!0)}},InstagramBadge=_export_sfc$1(_sfc_main$2B,[["__scopeId","data-v-d98b827e"]]);function useWhatsappBindings(ee){return e$b.computed(()=>{const te=typeof ee=="function"?ee():ee==null?void 0:ee.value;return((te==null?void 0:te.whatsapp_infos)||[]).filter(ae=>(ae==null?void 0:ae.meta_business_acc_id)||(ae==null?void 0:ae.whatsapp_bsuid)).map((ae,re)=>({id:ae.id||`wa-${re}`,instanceName:ae.instance||"",bsuid:ae.whatsapp_bsuid||"",user_name:ae.whatsapp_user_name||""})).filter(ae=>ae.instanceName)})}function useInstagramBindings(ee){return e$b.computed(()=>{const te=typeof ee=="function"?ee():ee==null?void 0:ee.value;return((te==null?void 0:te.instagram_infos)||[]).filter(ae=>(ae==null?void 0:ae.instagram_account_id)||(ae==null?void 0:ae.instagram_bsuid)).map((ae,re)=>({id:ae.id||`ig-${re}`,instanceName:ae.instance||"",bsuid:ae.instagram_bsuid||"",user_name:ae.instagram_user_name||""})).filter(ae=>ae.instanceName)})}function useTelegramBindings(ee){return e$b.computed(()=>{const te=typeof ee=="function"?ee():ee==null?void 0:ee.value;return((te==null?void 0:te.telegram_infos)||[]).filter(ae=>(ae==null?void 0:ae.telegram_account_id)||(ae==null?void 0:ae.telegram_chat_id)).map((ae,re)=>({id:ae.id||`tg-${re}`,instanceName:ae.instance||"",bsuid:ae.telegram_chat_id||"",user_name:ae.telegram_user_name||""})).filter(ae=>ae.instanceName)})}function useWebchatBindings(ee){return e$b.computed(()=>{const te=typeof ee=="function"?ee():ee==null?void 0:ee.value;return((te==null?void 0:te.webchat_infos)||[]).filter(ae=>ae==null?void 0:ae.webchat_id).map((ae,re)=>({id:ae.id||`wc-${re}`,instanceName:ae.instance||"",bsuid:ae.webchat_id||"",user_name:""})).filter(ae=>ae.instanceName)})}function useHasContactBindings(ee,te,ne,ae){return e$b.computed(()=>{var re,oe;return ee.value.length>0||te.value.length>0||(((re=ne==null?void 0:ne.value)==null?void 0:re.length)||0)>0||(((oe=ae==null?void 0:ae.value)==null?void 0:oe.length)||0)>0})}const _hoisted_1$2n={class:"relative shrink-0"},_hoisted_2$24={key:0,class:"truncate text-sm font-medium xl:text-base"},_hoisted_3$1T={key:1,class:"merge-card__name"},_hoisted_4$1H={key:0,class:"contact-phone rt-transition"},_hoisted_5$1x={key:2,class:"conn-btns"},_hoisted_6$1p={class:"conn-btn__count"},_hoisted_7$1i={class:"stack-popover__list"},_hoisted_8$19={class:"stack-popover__name"},_hoisted_9$14={key:0,class:"stack-popover__username"},_hoisted_10$Z={class:"conn-btn__count"},_hoisted_11$R={class:"stack-popover__list"},_hoisted_12$M={class:"stack-popover__name"},_hoisted_13$E={key:0,class:"stack-popover__username"},_hoisted_14$C={class:"conn-btn__count"},_hoisted_15$z={class:"stack-popover__list"},_hoisted_16$x={class:"stack-popover__name"},_hoisted_17$q={key:0,class:"stack-popover__username"},_hoisted_18$q={key:0,class:"flex shrink-0 flex-col items-center gap-2 text-xs xl:text-sm"},_hoisted_19$n={key:0,class:"flex items-center gap-1 opacity-80",title:"Quantidade de produtos vinculados"},_hoisted_20$m={class:"font-semibold"},_hoisted_21$j={key:1,class:"flex items-center gap-1 opacity-80",title:"Nota do contato"},_hoisted_22$h={style:{fill:"#facc15"},class:"size-4",viewBox:"0 0 20 20"},_hoisted_23$b={class:"font-semibold"},_hoisted_24$a={key:2,class:"merge-card__check"},_sfc_main$2A={__name:"contactCard",props:{contact:{type:Object,required:!0},mode:{type:String,default:"merge"},viewNumberPermission:{type:Boolean,default:!1},blockedTooltipText:{type:String,default:"Contato bloqueado - nao e possivel iniciar atendimento"},variant:{type:String,default:"default"},size:{type:String,default:"normal"},showBadge:{type:Boolean,default:!1},badgeText:{type:String,default:""},selectable:{type:Boolean,default:!1},selected:{type:Boolean,default:!1},showDetails:{type:Boolean,default:!1},avatarVariant:{type:String,default:"default"},showStartChat:{type:Boolean,default:!1}},emits:["select"],setup(ee,{emit:te}){const ne=ee,ae=te,re=Ce=>(Ce??"").toString().trim().replace(/\D/g,""),oe=Ce=>(Ce??"").toString().trim(),ie=Ce=>{const Fe=re(Ce);return Fe?Fe.length===11?`(${Fe.slice(0,2)}) ${Fe.slice(2,7)}-${Fe.slice(7)}`:Fe.length===10?`(${Fe.slice(0,2)}) ${Fe.slice(2,6)}-${Fe.slice(6)}`:Fe.length===13&&Fe.startsWith("55")?`+55 (${Fe.slice(2,4)}) ${Fe.slice(4,9)}-${Fe.slice(9)}`:Ce:""},le=e$b.computed(()=>ne.mode==="sidebar"),ce=e$b.computed(()=>{var Ce;return!!((Ce=ne.contact)!=null&&Ce.blocked)}),de=e$b.computed(()=>{var Ce;return!!((Ce=ne.contact)!=null&&Ce.telephone)}),ue=e$b.computed(()=>{var Ce;return!!((Ce=ne.contact)!=null&&Ce.instagram_user_name)});e$b.computed(()=>{var Ce,Fe;return((Fe=(Ce=ne.contact)==null?void 0:Ce.tags)==null?void 0:Fe.length)>0});const ve=e$b.computed(()=>{var Ce;return Array.isArray((Ce=ne.contact)==null?void 0:Ce.products)&&ne.contact.products.length>0}),me=e$b.computed(()=>{var Ce,Fe,Ie;return((Ce=ne.contact)==null?void 0:Ce.rating)!==null&&((Fe=ne.contact)==null?void 0:Fe.rating)!==void 0&&((Ie=ne.contact)==null?void 0:Ie.rating)!==""}),ge=e$b.computed(()=>{var Ce;return ie((Ce=ne.contact)==null?void 0:Ce.telephone)}),fe=e$b.computed(()=>{var Ie,Ue;const Ce=oe((Ie=ne.contact)==null?void 0:Ie.name);if(Ce)return Ce;const Fe=oe((Ue=ne.contact)==null?void 0:Ue.telephone);return ne.viewNumberPermission&&Fe?Fe:"Não disponível"}),pe=e$b.computed(()=>{var Ce;return le.value?fe.value:((Ce=ne.contact)==null?void 0:Ce.name)||"Sem nome"});e$b.computed(()=>{var Ie,Ue;const Ce=oe((Ie=ne.contact)==null?void 0:Ie.name),Fe=oe((Ue=ne.contact)==null?void 0:Ue.telephone);return le.value&&ne.viewNumberPermission&&!!Ce&&!!Fe});const _e=e$b.computed(()=>!le.value&&ne.selectable?"button":"div"),be=e$b.computed(()=>Pe.value||Be.value||De.value),ke=e$b.computed(()=>{const Ce=["merge-card","bg-base-300"];return ne.selectable&&Ce.push("merge-card--selectable"),ne.selected&&Ce.push("merge-card--selected"),ne.variant==="primary"&&Ce.push("merge-card--primary"),ne.variant==="danger"&&Ce.push("merge-card--danger"),be.value&&Ce.push("merge-card--popover-open"),Ce}),$e=e$b.computed(()=>{const Ce=["group relative flex items-center gap-3 p-3 text-xs transition-all xl:text-sm"];return ce.value?Ce.push("cursor-not-allowed opacity-60"):Ce.push("cursor-pointer hover:bg-base-100/50 dark:hover:bg-sky-300/20"),Ce}),ye=e$b.computed(()=>le.value?$e.value:ke.value),Ee=e$b.computed(()=>{if(le.value&&ce.value)return ne.blockedTooltipText}),Se=e$b.computed(()=>{if(le.value)return"size-12";const Ce=["merge-card__avatar"];return ne.size==="large"&&Ce.push("merge-card__avatar--lg"),ne.avatarVariant==="brand"?Ce.push("merge-card__avatar--brand"):ne.selected?Ce.push("merge-card__avatar--selected"):ne.variant==="primary"?Ce.push("merge-card__avatar--primary"):ne.variant==="danger"&&Ce.push("merge-card__avatar--danger"),Ce}),Le=e$b.computed(()=>le.value?"flex min-w-0 flex-1 flex-col gap-1":"merge-card__info"),Ve=()=>{!le.value&&ne.selectable&&ae("select",ne.contact)},Te=useWhatsappBindings(()=>ne.contact),ze=useInstagramBindings(()=>ne.contact),Re=useTelegramBindings(()=>ne.contact),Oe=useHasContactBindings(Te,ze,Re),Pe=e$b.ref(!1),Be=e$b.ref(!1),De=e$b.ref(!1),Ne=Ce=>{Ce.stopPropagation(),Pe.value=!Pe.value,Be.value=!1,De.value=!1},Me=Ce=>{Ce.stopPropagation(),Be.value=!Be.value,Pe.value=!1,De.value=!1},we=Ce=>{Ce.stopPropagation(),De.value=!De.value,Pe.value=!1,Be.value=!1};return(Ce,Fe)=>{const Ie=e$b.resolveComponent("Popper");return e$b.openBlock(),e$b.createBlock(e$b.resolveDynamicComponent(_e.value),{class:e$b.normalizeClass(ye.value),title:Ee.value,onClick:Ve,style:e$b.normalizeStyle(`border-radius: ${ne.showStartChat?"0.5rem 0.5rem 0rem 0rem":"0.5rem"};`)},{default:e$b.withCtx(()=>{var Ue,qe;return[e$b.createElementVNode("div",_hoisted_1$2n,[e$b.createVNode(Avatar,{photo:ee.contact.photo,name:ee.contact.name,outcome:le.value?ee.contact.outcome:null,blocked:le.value&&ce.value,size:"fill",class:e$b.normalizeClass(Se.value)},null,8,["photo","name","outcome","blocked","class"])]),e$b.createElementVNode("div",{class:e$b.normalizeClass(Le.value)},[le.value?(e$b.openBlock(),e$b.createElementBlock("span",_hoisted_2$24,e$b.toDisplayString(pe.value),1)):(e$b.openBlock(),e$b.createElementBlock("p",_hoisted_3$1T,e$b.toDisplayString(pe.value),1)),de.value||ue.value||e$b.unref(Oe)?(e$b.openBlock(),e$b.createElementBlock("div",{key:2,class:e$b.normalizeClass(le.value?"contact-inline-meta":"contact-meta-column")},[de.value?(e$b.openBlock(),e$b.createElementBlock("span",_hoisted_4$1H,[(Ue=ee.contact)!=null&&Ue.country&&((qe=ee.contact)!=null&&qe.telephone)?(e$b.openBlock(),e$b.createElementBlock("span",{key:0,class:e$b.normalizeClass([` fi fi-${ee.contact.country.toLowerCase()}`,"text-xs size-[10px]"])},null,2)):e$b.createCommentVNode("",!0),e$b.createTextVNode(" "+e$b.toDisplayString(ge.value),1)])):e$b.createCommentVNode("",!0),le.value&&ue.value?(e$b.openBlock(),e$b.createBlock(InstagramBadge,{key:1,"instagram-user-name":ee.contact.instagram_user_name},null,8,["instagram-user-name"])):e$b.createCommentVNode("",!0),!le.value&&e$b.unref(Oe)?(e$b.openBlock(),e$b.createElementBlock("div",_hoisted_5$1x,[e$b.unref(Te).length?(e$b.openBlock(),e$b.createBlock(Ie,{key:0,placement:"bottom-start",class:"popper-dark",hover:!0},{content:e$b.withCtx(()=>[e$b.createElementVNode("div",{class:"stack-popover",onClick:Fe[0]||(Fe[0]=e$b.withModifiers(()=>{},["stop"]))},[Fe[5]||(Fe[5]=e$b.createElementVNode("p",{class:"stack-popover__title stack-popover__title--wa"}," WhatsApp ",-1)),e$b.createElementVNode("div",_hoisted_7$1i,[(e$b.openBlock(!0),e$b.createElementBlock(e$b.Fragment,null,e$b.renderList(e$b.unref(Te),je=>(e$b.openBlock(),e$b.createElementBlock("div",{key:je.id,class:"stack-popover__item stack-popover__item--wa"},[e$b.createElementVNode("span",_hoisted_8$19,e$b.toDisplayString(je.instanceName),1),je.user_name?(e$b.openBlock(),e$b.createElementBlock("span",_hoisted_9$14,e$b.toDisplayString(je.user_name),1)):e$b.createCommentVNode("",!0)]))),128))])])]),default:e$b.withCtx(()=>[e$b.createElementVNode("button",{type:"button",class:"conn-btn conn-btn--wa",onClick:Ne},[Fe[3]||(Fe[3]=e$b.createElementVNode("svg",{class:"size-6",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 17 17"},[e$b.createElementVNode("path",{d:"M13.601 2.326A7.854 7.854 0 0 0 7.994 0C3.627 0 .068 3.558.064 7.926c0 1.399.366 2.76 1.057 3.965L0 16l4.204-1.102a7.933 7.933 0 0 0 3.79.965h.004c4.368 0 7.926-3.558 7.93-7.93A7.898 7.898 0 0 0 13.6 2.326zM7.994 14.521a6.573 6.573 0 0 1-3.356-.92l-.24-.144-2.494.654.666-2.433-.156-.251a6.56 6.56 0 0 1-1.007-3.505c0-3.626 2.957-6.584 6.591-6.584a6.56 6.56 0 0 1 4.66 1.931 6.557 6.557 0 0 1 1.928 4.66c-.004 3.639-2.961 6.592-6.592 6.592zm3.615-4.934c-.197-.099-1.17-.578-1.353-.646-.182-.065-.315-.099-.445.099-.133.197-.513.646-.627.775-.114.133-.232.148-.43.05-.197-.1-.836-.308-1.592-.985-.59-.525-.985-1.175-1.103-1.372-.114-.198-.011-.304.088-.403.087-.088.197-.232.296-.346.1-.114.133-.198.198-.33.065-.134.034-.248-.015-.347-.05-.099-.445-1.076-.612-1.47-.16-.389-.323-.335-.445-.34-.114-.007-.247-.007-.38-.007a.729.729 0 0 0-.529.247c-.182.198-.691.677-.691 1.654 0 .977.71 1.916.81 2.049.098.133 1.394 2.132 3.383 2.992.47.205.84.326 1.129.418.475.152.904.129 1.246.08.38-.058 1.171-.48 1.338-.943.164-.464.164-.86.114-.943-.049-.084-.182-.133-.38-.232z"})],-1)),Fe[4]||(Fe[4]=e$b.createElementVNode("span",null,"WhatsApp",-1)),e$b.createElementVNode("span",_hoisted_6$1p,e$b.toDisplayString(e$b.unref(Te).length),1)])]),_:1})):e$b.createCommentVNode("",!0),e$b.unref(ze).length?(e$b.openBlock(),e$b.createBlock(Ie,{key:1,placement:"bottom",class:"popper-dark",hover:!0},{content:e$b.withCtx(()=>[e$b.createElementVNode("div",{class:"stack-popover",onClick:Fe[1]||(Fe[1]=e$b.withModifiers(()=>{},["stop"]))},[Fe[8]||(Fe[8]=e$b.createElementVNode("p",{class:"stack-popover__title stack-popover__title--ig"}," Instagram ",-1)),e$b.createElementVNode("div",_hoisted_11$R,[(e$b.openBlock(!0),e$b.createElementBlock(e$b.Fragment,null,e$b.renderList(e$b.unref(ze),je=>(e$b.openBlock(),e$b.createElementBlock("div",{key:je.id,class:"stack-popover__item stack-popover__item--ig"},[e$b.createElementVNode("span",_hoisted_12$M,e$b.toDisplayString(je.instanceName),1),je.user_name?(e$b.openBlock(),e$b.createElementBlock("span",_hoisted_13$E,"@"+e$b.toDisplayString(je.user_name),1)):e$b.createCommentVNode("",!0)]))),128))])])]),default:e$b.withCtx(()=>[e$b.createElementVNode("button",{type:"button",class:"conn-btn conn-btn--ig",onClick:Me},[Fe[6]||(Fe[6]=e$b.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},[e$b.createElementVNode("defs",null,[e$b.createElementVNode("linearGradient",{id:"ig-conn-grad",x1:"0%",y1:"100%",x2:"100%",y2:"0%"},[e$b.createElementVNode("stop",{offset:"0%","stop-color":"#f58529"}),e$b.createElementVNode("stop",{offset:"40%","stop-color":"#dd2a7b"}),e$b.createElementVNode("stop",{offset:"70%","stop-color":"#8134af"}),e$b.createElementVNode("stop",{offset:"100%","stop-color":"#515bd4"})])]),e$b.createElementVNode("path",{fill:"url(#ig-conn-grad)",d:"M8 0C5.829 0 5.556.01 4.703.048 3.85.088 3.269.222 2.76.42a3.917 3.917 0 0 0-1.417.923A3.927 3.927 0 0 0 .42 2.76C.222 3.268.087 3.85.048 4.7.01 5.555 0 5.827 0 8.001c0 2.172.01 2.444.048 3.297.04.852.174 1.433.372 1.942.205.526.478.972.923 1.417.444.445.89.719 1.416.923.51.198 1.09.333 1.942.372C5.555 15.99 5.827 16 8 16s2.444-.01 3.298-.048c.851-.04 1.434-.174 1.943-.372a3.916 3.916 0 0 0 1.416-.923c.445-.445.718-.891.923-1.417.197-.509.332-1.09.372-1.942C15.99 10.445 16 10.173 16 8s-.01-2.445-.048-3.299c-.04-.851-.175-1.433-.372-1.941a3.926 3.926 0 0 0-.923-1.417A3.911 3.911 0 0 0 13.24.42c-.51-.198-1.092-.333-1.943-.372C10.443.01 10.172 0 7.998 0h.003zm-.717 1.442h.718c2.136 0 2.389.007 3.232.046.78.035 1.204.166 1.486.275.373.145.64.319.92.599.28.28.453.546.598.92.11.281.24.705.275 1.485.039.843.047 1.096.047 3.231s-.008 2.389-.047 3.232c-.035.78-.166 1.203-.275 1.485a2.47 2.47 0 0 1-.599.919c-.28.28-.546.453-.92.598-.28.11-.704.24-1.485.276-.843.038-1.096.047-3.232.047s-2.39-.009-3.233-.047c-.78-.036-1.203-.166-1.485-.276a2.478 2.478 0 0 1-.92-.598 2.48 2.48 0 0 1-.6-.92c-.109-.281-.24-.705-.275-1.485-.038-.843-.046-1.096-.046-3.233 0-2.136.008-2.388.046-3.231.036-.78.166-1.204.276-1.486.145-.373.319-.64.599-.92.28-.28.546-.453.92-.598.282-.11.705-.24 1.485-.276.738-.034 1.024-.044 2.515-.045v.002zm4.988 1.328a.96.96 0 1 0 0 1.92.96.96 0 0 0 0-1.92zm-4.27 1.122a4.109 4.109 0 1 0 0 8.217 4.109 4.109 0 0 0 0-8.217zm0 1.441a2.667 2.667 0 1 1 0 5.334 2.667 2.667 0 0 1 0-5.334z"})],-1)),Fe[7]||(Fe[7]=e$b.createElementVNode("span",{class:"conn-btn__ig-label"},"Instagram",-1)),e$b.createElementVNode("span",_hoisted_10$Z,e$b.toDisplayString(e$b.unref(ze).length),1)])]),_:1})):e$b.createCommentVNode("",!0),e$b.unref(Re).length?(e$b.openBlock(),e$b.createBlock(Ie,{key:2,placement:"bottom",class:"popper-dark",hover:!0},{content:e$b.withCtx(()=>[e$b.createElementVNode("div",{class:"stack-popover",onClick:Fe[2]||(Fe[2]=e$b.withModifiers(()=>{},["stop"]))},[Fe[11]||(Fe[11]=e$b.createElementVNode("p",{class:"stack-popover__title stack-popover__title--tg"}," Telegram ",-1)),e$b.createElementVNode("div",_hoisted_15$z,[(e$b.openBlock(!0),e$b.createElementBlock(e$b.Fragment,null,e$b.renderList(e$b.unref(Re),je=>(e$b.openBlock(),e$b.createElementBlock("div",{key:je.id,class:"stack-popover__item stack-popover__item--tg"},[e$b.createElementVNode("span",_hoisted_16$x,e$b.toDisplayString(je.instanceName),1),je.user_name?(e$b.openBlock(),e$b.createElementBlock("span",_hoisted_17$q,"@"+e$b.toDisplayString(je.user_name),1)):e$b.createCommentVNode("",!0)]))),128))])])]),default:e$b.withCtx(()=>[e$b.createElementVNode("button",{type:"button",class:"conn-btn conn-btn--tg",onClick:we},[Fe[9]||(Fe[9]=e$b.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24"},[e$b.createElementVNode("path",{d:"M11.944 0A12 12 0 0 0 0 12a12 12 0 0 0 12 12 12 12 0 0 0 12-12A12 12 0 0 0 12 0a12 12 0 0 0-.056 0zm4.962 7.224c.1-.002.321.023.465.14a.506.506 0 0 1 .171.325c.016.093.036.306.02.472-.18 1.898-.962 6.502-1.36 8.627-.168.9-.499 1.201-.82 1.23-.696.065-1.225-.46-1.9-.902-1.056-.693-1.653-1.124-2.678-1.8-1.185-.78-.417-1.21.258-1.91.177-.184 3.247-2.977 3.307-3.23.007-.032.014-.15-.056-.212s-.174-.041-.249-.024c-.106.024-1.793 1.14-5.061 3.345-.48.33-.913.49-1.302.48-.428-.008-1.252-.241-1.865-.44-.752-.245-1.349-.374-1.297-.789.027-.216.325-.437.893-.663 3.498-1.524 5.83-2.529 6.998-3.014 3.332-1.386 4.025-1.627 4.476-1.635z"})],-1)),Fe[10]||(Fe[10]=e$b.createElementVNode("span",{class:"conn-btn__tg-label"},"Telegram",-1)),e$b.createElementVNode("span",_hoisted_14$C,e$b.toDisplayString(e$b.unref(Re).length),1)])]),_:1})):e$b.createCommentVNode("",!0)])):e$b.createCommentVNode("",!0)],2)):e$b.createCommentVNode("",!0)],2),le.value?(e$b.openBlock(),e$b.createElementBlock("div",_hoisted_18$q,[ve.value?(e$b.openBlock(),e$b.createElementBlock("div",_hoisted_19$n,[Fe[12]||(Fe[12]=e$b.createElementVNode("svg",{class:"size-4 dark:text-primary_alt","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},[e$b.createElementVNode("path",{fill:"currentColor",d:"M4 19v2c0 .5523.44772 1 1 1h14c.5523 0 1-.4477 1-1v-2H4Z"}),e$b.createElementVNode("path",{fill:"currentColor","fill-rule":"evenodd",d:"M9 3c0-.55228.44772-1 1-1h8c.5523 0 1 .44772 1 1v3c0 .55228-.4477 1-1 1h-2v1h2c.5096 0 .9376.38314.9939.88957L19.8951 17H4.10498l.90116-8.11043C5.06241 8.38314 5.49047 8 6.00002 8H12V7h-2c-.55228 0-1-.44772-1-1V3Z","clip-rule":"evenodd"})],-1)),e$b.createElementVNode("span",_hoisted_20$m,e$b.toDisplayString(ee.contact.products.length),1)])):e$b.createCommentVNode("",!0),me.value?(e$b.openBlock(),e$b.createElementBlock("div",_hoisted_21$j,[(e$b.openBlock(),e$b.createElementBlock("svg",_hoisted_22$h,[...Fe[13]||(Fe[13]=[e$b.createElementVNode("path",{d:"M10 15l-5.878 3.09 1.123-6.545L.489 6.91l6.572-.955L10 0l2.939 5.955 6.572.955-4.756 4.635 1.123 6.545z"},null,-1)])])),e$b.createElementVNode("span",_hoisted_23$b,e$b.toDisplayString(ee.contact.rating),1)])):e$b.createCommentVNode("",!0)])):e$b.createCommentVNode("",!0),!le.value&&ee.showBadge&&ee.badgeText?(e$b.openBlock(),e$b.createElementBlock("div",{key:1,class:e$b.normalizeClass(["merge-card__badge",[`merge-card__badge--${ee.variant}`]])},e$b.toDisplayString(ee.badgeText),3)):e$b.createCommentVNode("",!0),!le.value&&ee.selectable&&ee.selected?(e$b.openBlock(),e$b.createElementBlock("div",_hoisted_24$a,[...Fe[14]||(Fe[14]=[e$b.createElementVNode("svg",{class:"size-5",fill:"currentColor",viewBox:"0 0 20 20"},[e$b.createElementVNode("path",{"fill-rule":"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z","clip-rule":"evenodd"})],-1)])])):e$b.createCommentVNode("",!0)]}),_:1},8,["class","title","style"])}}},ContactCard=_export_sfc$1(_sfc_main$2A,[["__scopeId","data-v-6cb70be7"]]),_hoisted_1$2m={class:"contact-msg-wrapper"},_hoisted_2$23={class:"contact-card-shell"},_hoisted_3$1S={key:0,class:"info-chip-count"},_hoisted_4$1G={class:"contact-details"},_hoisted_5$1w={key:0,class:"detail-row"},_hoisted_6$1o={class:"detail-row-content"},_hoisted_7$1h={class:"detail-meta"},_hoisted_8$18={class:"detail-value"},_hoisted_9$13={key:1,class:"info-group"},_hoisted_10$Y={class:"group-header"},_hoisted_11$Q={class:"group-label"},_hoisted_12$L={class:"group-items"},_hoisted_13$D=["title","onClick"],_hoisted_14$B={class:"item-value"},_hoisted_15$y={key:0,class:"copy-icon text-primary",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor"},_hoisted_16$w={key:1,class:"copy-icon",viewBox:"0 0 24 24",fill:"currentColor"},_hoisted_17$p={key:2,class:"info-group"},_hoisted_18$p={class:"group-header"},_hoisted_19$m={class:"group-label"},_hoisted_20$l={class:"group-items"},_hoisted_21$i=["title","onClick"],_hoisted_22$g={class:"item-value"},_hoisted_23$a={key:0,class:"item-type"},_hoisted_24$9={key:1,class:"copy-icon text-primary",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor"},_hoisted_25$8={key:2,class:"copy-icon",viewBox:"0 0 24 24",fill:"currentColor"},_hoisted_26$6={key:3,class:"info-group"},_hoisted_27$6={class:"group-header"},_hoisted_28$6={class:"group-label"},_hoisted_29$5={class:"group-items"},_hoisted_30$5=["title","onClick"],_hoisted_31$4={class:"item-value"},_hoisted_32$3={key:0,class:"item-type"},_hoisted_33$3={key:1,class:"copy-icon text-primary",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor"},_hoisted_34$2={key:2,class:"copy-icon",viewBox:"0 0 24 24",fill:"currentColor"},_hoisted_35$2={key:4,class:"info-group"},_hoisted_36$1={class:"group-header"},_hoisted_37$1={class:"group-label"},_hoisted_38$1={class:"group-items"},_hoisted_39$1=["href"],_hoisted_40$1={class:"item-value text-primary"},_hoisted_41$1={key:5,class:"detail-row"},_hoisted_42$1={class:"detail-row-content"},_hoisted_43$1={class:"detail-value"},_sfc_main$2z={__name:"contactMessageCard",props:{contact:{type:Object,default:()=>({})},showStartChat:{type:Boolean,default:!1}},emits:["start-chat"],setup(ee,{emit:te}){const ne=ee,ae=te,re=e$b.ref(!1),oe=e$b.ref(""),ie=e$b.computed(()=>({title:de.value.name,svg:'<svg class="size-6 text-primary" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"> <path fill-rule="evenodd" d="M12 4a4 4 0 1 0 0 8 4 4 0 0 0 0-8Zm-2 9a4 4 0 0 0-4 4v1a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2v-1a4 4 0 0 0-4-4h-4Z" clip-rule="evenodd"/> </svg>'}));let le=null;function ce(_e){return _e?Array.isArray(_e)?_e:[_e]:[]}const de=e$b.computed(()=>{const _e=ne.contact||{},be=ce(_e.telephones??_e.phones??_e.phone??_e.telephone).filter(Boolean),ke=ce(_e.emails??_e.email).map(Ee=>typeof Ee=="string"?{email:Ee,type:""}:Ee).filter(Ee=>Ee&&Ee.email),$e=ce(_e.urls??_e.url).map(Ee=>typeof Ee=="string"?{url:Ee,type:""}:Ee).filter(Ee=>Ee&&Ee.url),ye=ce(_e.addresses??_e.address).filter(Boolean);return{name:_e.name||"Contato",title:_e.title||"",org:_e.org||_e.organization||"",photo:_e.photo||null,birthday:_e.birthday||"",phones:be,emails:ke,urls:$e,addresses:ye}}),ue=e$b.computed(()=>({name:de.value.name,telephone:de.value.phones[0]||"",photo:de.value.photo}));e$b.computed(()=>{const _e=de.value;return _e.phones.length>0||_e.emails.length>0||_e.urls.length>0||_e.addresses.length>0||!!_e.birthday||!!_e.title}),e$b.computed(()=>{const _e=de.value;return[{key:"phone",label:"Telefone",icon:'<svg class="group-icon" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path d="M7.978 4a2.553 2.553 0 0 0-1.926.877C4.233 6.7 3.699 8.751 4.153 10.814c.44 1.995 1.778 3.893 3.456 5.572 1.68 1.679 3.577 3.018 5.57 3.459 2.062.456 4.115-.073 5.94-1.885a2.556 2.556 0 0 0 .001-3.861l-1.21-1.21a2.689 2.689 0 0 0-3.802 0l-.617.618a.806.806 0 0 1-1.14 0l-1.854-1.855a.807.807 0 0 1 0-1.14l.618-.62a2.692 2.692 0 0 0 0-3.803l-1.21-1.211A2.555 2.555 0 0 0 7.978 4Z"/></svg>',items:_e.phones,type:"phone"},{key:"email",label:"E-mail",icon:'<svg class="group-icon" viewBox="0 0 24 24" fill="currentColor"><path d="M20 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z"/></svg>',items:_e.emails,type:"email"},{key:"addr",label:"Endereço",icon:'<svg class="group-icon" viewBox="0 0 24 24" fill="currentColor"><path d="M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z"/></svg>',items:_e.addresses,type:"address"},{key:"url",label:"Site",icon:'<svg class="group-icon" viewBox="0 0 24 24" fill="currentColor"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-1 17.93c-3.95-.49-7-3.85-7-7.93 0-.62.08-1.21.21-1.79L9 15v1c0 1.1.9 2 2 2v1.93zm6.9-2.54c-.26-.81-1-1.39-1.9-1.39h-1v-3c0-.55-.45-1-1-1H8v-2h2c.55 0 1-.45 1-1V7h2c1.1 0 2-.9 2-2v-.41c2.93 1.19 5 4.06 5 7.41 0 2.08-.8 3.97-2.1 5.39z"/></svg>',items:_e.urls,type:"url"}].filter(be=>be.items.length)});const ve=e$b.computed(()=>{const _e=de.value,be=[];return _e.phones.length&&be.push({key:"phone",count:_e.phones.length,label:"Tel"}),_e.emails.length&&be.push({key:"email",count:_e.emails.length,label:"Email"}),_e.urls.length&&be.push({key:"url",count:_e.urls.length,label:"Site"}),_e.addresses.length&&be.push({key:"addr",count:_e.addresses.length,label:"End."}),_e.birthday&&be.push({key:"bday",count:null,label:"Aniv."}),(_e.title||_e.org)&&be.push({key:"work",count:null,label:_e.org||_e.title}),be}),me=e$b.computed(()=>ne.showStartChat||ve.value.length>0);function ge(_e){return typeof _e=="string"?_e:[_e.street,_e.city,_e.state,_e.zip,_e.country].filter(Boolean).join(", ")}function fe(_e){const be=/^(\d{4})-(\d{2})-(\d{2})/.exec(_e||"");return be?`${be[3]}/${be[2]}/${be[1]}`:_e}async function pe(_e,be){if(_e)try{await navigator.clipboard.writeText(_e),oe.value=be,le&&clearTimeout(le),le=setTimeout(()=>{oe.value=""},1500)}catch(ke){console.error("Falha ao copiar:",ke)}}return(_e,be)=>(e$b.openBlock(),e$b.createElementBlock(e$b.Fragment,null,[e$b.createElementVNode("div",_hoisted_1$2m,[e$b.createElementVNode("div",_hoisted_2$23,[e$b.createVNode(ContactCard,{contact:ue.value,mode:"merge","avatar-variant":"brand","show-start-chat":me.value},null,8,["contact","show-start-chat"])]),ve.value.length?(e$b.openBlock(),e$b.createElementBlock("button",{key:0,class:e$b.normalizeClass(["info-chips-bar",{"info-chips-bar--no-chat":!ee.showStartChat}]),title:"Ver detalhes do contato",onClick:be[0]||(be[0]=e$b.withModifiers(ke=>re.value=!0,["stop"]))},[(e$b.openBlock(!0),e$b.createElementBlock(e$b.Fragment,null,e$b.renderList(ve.value,ke=>(e$b.openBlock(),e$b.createElementBlock("span",{key:ke.key,class:"info-chip"},[e$b.createTextVNode(e$b.toDisplayString(ke.label),1),ke.count!==null&&ke.count>1?(e$b.openBlock(),e$b.createElementBlock("span",_hoisted_3$1S,e$b.toDisplayString(ke.count),1)):e$b.createCommentVNode("",!0)]))),128)),be[4]||(be[4]=e$b.createElementVNode("svg",{class:"info-chips-arrow","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},[e$b.createElementVNode("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M8 4H4m0 0v4m0-4 5 5m7-5h4m0 0v4m0-4-5 5M8 20H4m0 0v-4m0 4 5-5m7 5h4m0 0v-4m0 4-5-5"})],-1))],2)):e$b.createCommentVNode("",!0),ee.showStartChat?(e$b.openBlock(),e$b.createElementBlock("button",{key:1,class:"start-chat-btn",onClick:be[1]||(be[1]=e$b.withModifiers(ke=>ae("start-chat",de.value),["stop"]))},[...be[5]||(be[5]=[e$b.createElementVNode("svg",{class:"start-chat-icon","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"currentColor",viewBox:"0 0 24 24"},[e$b.createElementVNode("path",{"fill-rule":"evenodd",d:"M9 4a4 4 0 1 0 0 8 4 4 0 0 0 0-8Zm-2 9a4 4 0 0 0-4 4v1a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2v-1a4 4 0 0 0-4-4H7Zm8-1a1 1 0 0 1 1-1h1v-1a1 1 0 1 1 2 0v1h1a1 1 0 1 1 0 2h-1v1a1 1 0 1 1-2 0v-1h-1a1 1 0 0 1-1-1Z","clip-rule":"evenodd"})],-1),e$b.createElementVNode("span",null,"Iniciar conversa",-1)])])):e$b.createCommentVNode("",!0)]),(e$b.openBlock(),e$b.createBlock(e$b.Teleport,{to:"body"},[e$b.createVNode(simpleModal,{"is-open":re.value,size:"md:w-1/2 xl:w-2/5",header:ie.value,onClose:be[3]||(be[3]=ke=>re.value=!1)},{body:e$b.withCtx(()=>[e$b.createElementVNode("div",_hoisted_4$1G,[de.value.title||de.value.org?(e$b.openBlock(),e$b.createElementBlock("div",_hoisted_5$1w,[e$b.createVNode(_sfc_main$2K,{class:"detail-icon"}),e$b.createElementVNode("div",_hoisted_6$1o,[e$b.createElementVNode("span",_hoisted_7$1h,e$b.toDisplayString(de.value.org||"Cargo"),1),e$b.createElementVNode("span",_hoisted_8$18,e$b.toDisplayString(de.value.title||de.value.org),1)])])):e$b.createCommentVNode("",!0),de.value.phones.length?(e$b.openBlock(),e$b.createElementBlock("div",_hoisted_9$13,[e$b.createElementVNode("div",_hoisted_10$Y,[be[6]||(be[6]=e$b.createElementVNode("svg",{class:"group-icon","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"currentColor",viewBox:"0 0 24 24"},[e$b.createElementVNode("path",{d:"M7.978 4a2.553 2.553 0 0 0-1.926.877C4.233 6.7 3.699 8.751 4.153 10.814c.44 1.995 1.778 3.893 3.456 5.572 1.68 1.679 3.577 3.018 5.57 3.459 2.062.456 4.115-.073 5.94-1.885a2.556 2.556 0 0 0 .001-3.861l-1.21-1.21a2.689 2.689 0 0 0-3.802 0l-.617.618a.806.806 0 0 1-1.14 0l-1.854-1.855a.807.807 0 0 1 0-1.14l.618-.62a2.692 2.692 0 0 0 0-3.803l-1.21-1.211A2.555 2.555 0 0 0 7.978 4Z"})],-1)),e$b.createElementVNode("span",_hoisted_11$Q,"Telefone"+e$b.toDisplayString(de.value.phones.length>1?"s":""),1)]),e$b.createElementVNode("div",_hoisted_12$L,[(e$b.openBlock(!0),e$b.createElementBlock(e$b.Fragment,null,e$b.renderList(de.value.phones,(ke,$e)=>(e$b.openBlock(),e$b.createElementBlock("button",{key:`phone-${$e}`,class:"group-item",title:oe.value===`phone-${$e}`?"Copiado!":"Clique para copiar",onClick:e$b.withModifiers(ye=>pe(ke,`phone-${$e}`),["stop"])},[e$b.createElementVNode("span",_hoisted_14$B,e$b.toDisplayString(ke),1),oe.value===`phone-${$e}`?(e$b.openBlock(),e$b.createElementBlock("svg",_hoisted_15$y,[...be[7]||(be[7]=[e$b.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M5 13l4 4L19 7"},null,-1)])])):(e$b.openBlock(),e$b.createElementBlock("svg",_hoisted_16$w,[...be[8]||(be[8]=[e$b.createElementVNode("path",{d:"M8 5a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2h-2v2a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2h2V5Zm2 2h4a2 2 0 0 1 2 2v6h2V5h-8v2Zm-4 2v10h8V9H6Z"},null,-1)])]))],8,_hoisted_13$D))),128))])])):e$b.createCommentVNode("",!0),de.value.emails.length?(e$b.openBlock(),e$b.createElementBlock("div",_hoisted_17$p,[e$b.createElementVNode("div",_hoisted_18$p,[be[9]||(be[9]=e$b.createElementVNode("svg",{class:"group-icon",viewBox:"0 0 24 24",fill:"currentColor"},[e$b.createElementVNode("path",{d:"M20 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z"})],-1)),e$b.createElementVNode("span",_hoisted_19$m,"E-mail"+e$b.toDisplayString(de.value.emails.length>1?"s":""),1)]),e$b.createElementVNode("div",_hoisted_20$l,[(e$b.openBlock(!0),e$b.createElementBlock(e$b.Fragment,null,e$b.renderList(de.value.emails,(ke,$e)=>(e$b.openBlock(),e$b.createElementBlock("button",{key:`email-${$e}`,class:"group-item",title:oe.value===`email-${$e}`?"Copiado!":"Clique para copiar",onClick:e$b.withModifiers(ye=>pe(ke.email,`email-${$e}`),["stop"])},[e$b.createElementVNode("span",_hoisted_22$g,e$b.toDisplayString(ke.email),1),ke.type?(e$b.openBlock(),e$b.createElementBlock("span",_hoisted_23$a,e$b.toDisplayString(ke.type),1)):e$b.createCommentVNode("",!0),oe.value===`email-${$e}`?(e$b.openBlock(),e$b.createElementBlock("svg",_hoisted_24$9,[...be[10]||(be[10]=[e$b.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M5 13l4 4L19 7"},null,-1)])])):(e$b.openBlock(),e$b.createElementBlock("svg",_hoisted_25$8,[...be[11]||(be[11]=[e$b.createElementVNode("path",{d:"M8 5a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2h-2v2a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2h2V5Zm2 2h4a2 2 0 0 1 2 2v6h2V5h-8v2Zm-4 2v10h8V9H6Z"},null,-1)])]))],8,_hoisted_21$i))),128))])])):e$b.createCommentVNode("",!0),de.value.addresses.length?(e$b.openBlock(),e$b.createElementBlock("div",_hoisted_26$6,[e$b.createElementVNode("div",_hoisted_27$6,[be[12]||(be[12]=e$b.createElementVNode("svg",{class:"group-icon",viewBox:"0 0 24 24",fill:"currentColor"},[e$b.createElementVNode("path",{d:"M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z"})],-1)),e$b.createElementVNode("span",_hoisted_28$6,"Endereço"+e$b.toDisplayString(de.value.addresses.length>1?"s":""),1)]),e$b.createElementVNode("div",_hoisted_29$5,[(e$b.openBlock(!0),e$b.createElementBlock(e$b.Fragment,null,e$b.renderList(de.value.addresses,(ke,$e)=>(e$b.openBlock(),e$b.createElementBlock("button",{key:`addr-${$e}`,class:"group-item",title:oe.value===`addr-${$e}`?"Copiado!":"Clique para copiar",onClick:e$b.withModifiers(ye=>pe(ge(ke),`addr-${$e}`),["stop"])},[e$b.createElementVNode("span",_hoisted_31$4,e$b.toDisplayString(ge(ke)),1),ke.type?(e$b.openBlock(),e$b.createElementBlock("span",_hoisted_32$3,e$b.toDisplayString(ke.type),1)):e$b.createCommentVNode("",!0),oe.value===`addr-${$e}`?(e$b.openBlock(),e$b.createElementBlock("svg",_hoisted_33$3,[...be[13]||(be[13]=[e$b.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M5 13l4 4L19 7"},null,-1)])])):(e$b.openBlock(),e$b.createElementBlock("svg",_hoisted_34$2,[...be[14]||(be[14]=[e$b.createElementVNode("path",{d:"M8 5a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2h-2v2a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2h2V5Zm2 2h4a2 2 0 0 1 2 2v6h2V5h-8v2Zm-4 2v10h8V9H6Z"},null,-1)])]))],8,_hoisted_30$5))),128))])])):e$b.createCommentVNode("",!0),de.value.urls.length?(e$b.openBlock(),e$b.createElementBlock("div",_hoisted_35$2,[e$b.createElementVNode("div",_hoisted_36$1,[be[15]||(be[15]=e$b.createElementVNode("svg",{class:"group-icon",viewBox:"0 0 24 24",fill:"currentColor"},[e$b.createElementVNode("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-1 17.93c-3.95-.49-7-3.85-7-7.93 0-.62.08-1.21.21-1.79L9 15v1c0 1.1.9 2 2 2v1.93zm6.9-2.54c-.26-.81-1-1.39-1.9-1.39h-1v-3c0-.55-.45-1-1-1H8v-2h2c.55 0 1-.45 1-1V7h2c1.1 0 2-.9 2-2v-.41c2.93 1.19 5 4.06 5 7.41 0 2.08-.8 3.97-2.1 5.39z"})],-1)),e$b.createElementVNode("span",_hoisted_37$1,"Site"+e$b.toDisplayString(de.value.urls.length>1?"s":""),1)]),e$b.createElementVNode("div",_hoisted_38$1,[(e$b.openBlock(!0),e$b.createElementBlock(e$b.Fragment,null,e$b.renderList(de.value.urls,(ke,$e)=>(e$b.openBlock(),e$b.createElementBlock("a",{key:`url-${$e}`,href:ke.url,target:"_blank",rel:"noopener noreferrer",class:"group-item group-item-link"},[e$b.createElementVNode("span",_hoisted_40$1,e$b.toDisplayString(ke.url),1),be[16]||(be[16]=e$b.createElementVNode("svg",{class:"copy-icon",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor"},[e$b.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"})],-1))],8,_hoisted_39$1))),128))])])):e$b.createCommentVNode("",!0),de.value.birthday?(e$b.openBlock(),e$b.createElementBlock("div",_hoisted_41$1,[be[18]||(be[18]=e$b.createElementVNode("svg",{class:"detail-icon","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"currentColor",viewBox:"0 0 24 24"},[e$b.createElementVNode("path",{"fill-rule":"evenodd",d:"M5 5a1 1 0 0 0 1-1 1 1 0 1 1 2 0 1 1 0 0 0 1 1h1a1 1 0 0 0 1-1 1 1 0 1 1 2 0 1 1 0 0 0 1 1h1a1 1 0 0 0 1-1 1 1 0 1 1 2 0 1 1 0 0 0 1 1 2 2 0 0 1 2 2v1a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V7a2 2 0 0 1 2-2ZM3 19v-7a1 1 0 0 1 1-1h16a1 1 0 0 1 1 1v7a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2Zm6.01-6a1 1 0 1 0-2 0 1 1 0 0 0 2 0Zm2 0a1 1 0 1 1 2 0 1 1 0 0 1-2 0Zm6 0a1 1 0 1 0-2 0 1 1 0 0 0 2 0Zm-10 4a1 1 0 1 1 2 0 1 1 0 0 1-2 0Zm6 0a1 1 0 1 0-2 0 1 1 0 0 0 2 0Zm2 0a1 1 0 1 1 2 0 1 1 0 0 1-2 0Z","clip-rule":"evenodd"})],-1)),e$b.createElementVNode("div",_hoisted_42$1,[be[17]||(be[17]=e$b.createElementVNode("span",{class:"detail-meta"},"Aniversário",-1)),e$b.createElementVNode("span",_hoisted_43$1,e$b.toDisplayString(fe(de.value.birthday)),1)])])):e$b.createCommentVNode("",!0)])]),footer:e$b.withCtx(()=>[e$b.createElementVNode("button",{class:"details-close-btn ml-auto bg-base-200/60 hover:bg-base-200",type:"button",onClick:be[2]||(be[2]=ke=>re.value=!1)}," Fechar ")]),_:1},8,["is-open","header"])]))],64))}},ContactMessageCard=_export_sfc$1(_sfc_main$2z,[["__scopeId","data-v-9e8c1301"]]);/*! License details at fancyapps.com/license */const t$9=ee=>typeof ee=="string";/*! License details at fancyapps.com/license */const n$b=ee=>ee&&ee!==null&&ee instanceof Element&&"nodeType"in ee;/*! License details at fancyapps.com/license */const e$a=function(ee){if(!(ee&&ee instanceof Element&&ee.offsetParent))return!1;const te=ee.scrollHeight>ee.clientHeight,ne=window.getComputedStyle(ee).overflowY,ae=ne.indexOf("hidden")!==-1,re=ne.indexOf("visible")!==-1;return te&&!ae&&!re},n$a=function(ee,te=void 0){return!ee||ee===document.body||te&&ee===te?null:e$a(ee)?ee:n$a(ee.parentElement,te)};/*! License details at fancyapps.com/license */const e$9=function(ee){var te=new DOMParser().parseFromString(ee,"text/html").body;if(te.childElementCount>1){for(var ne=document.createElement("div");te.firstChild;)ne.appendChild(te.firstChild);return ne}let ae=te.firstChild;return!ae||ae instanceof HTMLElement?ae:((ne=document.createElement("div")).appendChild(ae),ne)};/*! License details at fancyapps.com/license */const t$8=function(ee=0,te=0,ne=0){return Math.max(Math.min(te,ne),ee)};/*! License details at fancyapps.com/license */const t$7=ee=>typeof ee=="object"&&ee!==null&&ee.constructor===Object&&Object.prototype.toString.call(ee)==="[object Object]";/*! License details at fancyapps.com/license */function e$8(ee){return t$7(ee)||Array.isArray(ee)}function n$9(ee,te){const ne=Object.keys(ee),ae=Object.keys(te);return ne.length===ae.length&&ne.every(re=>{const oe=ee[re],ie=te[re];return typeof oe=="function"?`${oe}`==`${ie}`:e$8(oe)&&e$8(ie)?n$9(oe,ie):oe===ie})}/*! License details at fancyapps.com/license */const e$7=function(ee){for(const te of s$c)te.getState()===i$a.Running&&te.tick(a$9?ee-a$9:0);a$9=ee,u$7=window.requestAnimationFrame(e$7)};var i$a,o$9,r$7;(function(ee){ee[ee.Initializing=0]="Initializing",ee[ee.Running=1]="Running",ee[ee.Paused=2]="Paused",ee[ee.Completed=3]="Completed",ee[ee.Destroyed=4]="Destroyed"})(i$a||(i$a={})),function(ee){ee[ee.Spring=0]="Spring",ee[ee.Ease=1]="Ease"}(o$9||(o$9={})),function(ee){ee[ee.Loop=0]="Loop",ee[ee.Reverse=1]="Reverse"}(r$7||(r$7={}));const s$c=new Set;let u$7=null,a$9=0;function c$5(){let ee=i$a.Initializing,te=o$9.Ease,ne=0,ae=0,re=c$5.Easings.Linear,oe=500,ie=0,le=0,ce=0,de=0,ue=1/0,ve=.01,me=.01,ge=!1,fe={},pe=null,_e={},be={},ke={},$e=0,ye=0,Ee=r$7.Loop,Se=c$5.Easings.Linear;const Le=new Map;function Ve(Pe,...Be){for(const De of Le.get(Pe)||[])De(...Be)}function Te(Pe){return ae=0,Pe?pe=setTimeout(()=>{ze()},Pe):ze(),Oe}function ze(){ee=i$a.Running,Ve("start",_e,be)}function Re(){if(ee=i$a.Completed,ke={},Ve("end",_e),ee===i$a.Completed)if(ne<$e){if(ne++,Ee===r$7.Reverse){const Pe=Object.assign({},fe);fe=Object.assign({},be),be=Pe}Te(ye)}else ne=0;return Oe}const Oe={getState:function(){return ee},easing:function(Pe){return re=Pe,te=o$9.Ease,ke={},Oe},duration:function(Pe){return oe=Pe,Oe},spring:function(Pe={}){te=o$9.Spring;const Be={velocity:0,mass:1,tension:170,friction:26,restDelta:.1,restSpeed:.1,maxSpeed:1/0,clamp:!0},{velocity:De,mass:Ne,tension:Me,friction:we,restDelta:Ce,restSpeed:Fe,maxSpeed:Ie,clamp:Ue}=Object.assign(Object.assign({},Be),Pe);return ie=De,le=Ne,ce=Me,de=we,me=Ce,ve=Fe,ue=Ie,ge=Ue,ke={},Oe},isRunning:function(){return ee===i$a.Running},isSpring:function(){return te===o$9.Spring},from:function(Pe){return _e=Object.assign({},Pe),Oe},to:function(Pe){return be=Pe,Oe},repeat:function(Pe,Be=0,De=r$7.Loop,Ne){return $e=Pe,ye=Be,Ee=De,Se=Ne||re,Oe},on:function(Pe,Be){var De,Ne;return De=Pe,Ne=Be,Le.set(De,[...Le.get(De)||[],Ne]),Oe},off:function(Pe,Be){var De,Ne;return De=Pe,Ne=Be,Le.has(De)&&Le.set(De,Le.get(De).filter(Me=>Me!==Ne)),Oe},start:function(Pe){return n$9(_e,be)||(ee=i$a.Initializing,fe=Object.assign({},_e),s$c.add(this),u$7||(u$7=window.requestAnimationFrame(e$7)),Te(Pe)),Oe},pause:function(){return pe&&(clearTimeout(pe),pe=null),ee===i$a.Running&&(ee=i$a.Paused,Ve("pause",_e)),Oe},end:Re,tick:function(Pe){Pe>50&&(Pe=50),ae+=Pe;let Be=0,De=!1;if(ee!==i$a.Running)return Oe;if(te===o$9.Ease){Be=t$8(0,ae/oe,1),De=Be===1;const Me=Ee===r$7.Reverse?Se:re;for(const we in _e)_e[we]=fe[we]+(be[we]-fe[we])*Me(Be)}if(te===o$9.Spring){const Me=.001*Pe;let we=0;for(const Ce in _e){const Fe=be[Ce];let Ie=_e[Ce];if(typeof Fe!="number"||isNaN(Fe)||typeof Ie!="number"||isNaN(Ie))continue;if(Math.abs(Fe-Ie)<=me){_e[Ce]=Fe,ke[Ce]=0;continue}ke[Ce]||(typeof ie=="object"&&typeof ie[Ce]=="number"?ke[Ce]=ie[Ce]:ke[Ce]=typeof ie=="number"?ie:0);let Ue=ke[Ce];Ue=t$8(-1*Math.abs(ue),Ue,Math.abs(ue));const qe=Ue*le*de;Ue+=((Ie>Fe?-1:1)*(Math.abs(Fe-Ie)*ce)-qe)/le*Me,Ie+=Ue*Me;const je=_e[Ce]>Fe?Ie<Fe:Ie>Fe;let We=Math.abs(Ue)<ve&&Math.abs(Fe-Ie)<=me;ge&&je&&(We=!0),We?(Ie=Fe,Ue=0):we++,_e[Ce]=Ie,ke[Ce]=Ue}De=!we}const Ne=Object.assign({},be);return Ve("step",_e,fe,be,Be),De&&ee===i$a.Running&&n$9(be,Ne)&&(ee=i$a.Completed,Re()),Oe},getStartValues:function(){return fe},getCurrentValues:function(){return _e},getCurrentVelocities:function(){return ke},getEndValues:function(){return be},destroy:function(){ee=i$a.Destroyed,pe&&(clearTimeout(pe),pe=null),fe=_e=be={},s$c.delete(this)}};return Oe}c$5.destroy=()=>{for(const ee of s$c)ee.destroy();u$7&&(cancelAnimationFrame(u$7),u$7=null)},c$5.Easings={Linear:function(ee){return ee},EaseIn:function(ee){return ee===0?0:Math.pow(2,10*ee-10)},EaseOut:function(ee){return ee===1?1:1-Math.pow(2,-10*ee)},EaseInOut:function(ee){return ee===0?0:ee===1?1:ee<.5?Math.pow(2,20*ee-10)/2:(2-Math.pow(2,-20*ee+10))/2}};/*! License details at fancyapps.com/license */function e$6(ee){return typeof TouchEvent<"u"&&ee instanceof TouchEvent}function t$6(ee,te){const ne=[],ae=e$6(ee)?ee[te]:ee instanceof MouseEvent&&(te==="changedTouches"||ee.type!=="mouseup")?[ee]:[];for(const re of ae)ne.push({x:re.clientX,y:re.clientY,ts:Date.now()});return ne}function n$8(ee){return t$6(ee,"touches")}function o$8(ee){return t$6(ee,"targetTouches")}function s$b(ee){return t$6(ee,"changedTouches")}function i$9(ee){const te=ee[0],ne=ee[1]||te;return{x:(te.x+ne.x)/2,y:(te.y+ne.y)/2,ts:ne.ts}}function c$4(ee){const te=ee[0],ne=ee[1]||ee[0];return te&&ne?-1*Math.sqrt((ne.x-te.x)*(ne.x-te.x)+(ne.y-te.y)*(ne.y-te.y)):0}const r$6=ee=>{ee.cancelable&&ee.preventDefault()},a$8={passive:!1},u$6={panThreshold:5,swipeThreshold:3,ignore:["textarea","input","select","[contenteditable]","[data-selectable]","[data-draggable]"]};let l$8=!1,d$4=!0;const f$4=(ee,te)=>{let ne,ae,re,oe=Object.assign(Object.assign({},u$6),te),ie=[],le=[],ce=[],de=!1,ue=!1,ve=!1,me=!1,ge=0,fe=0,pe=0,_e=0,be=0,ke=0,$e=0,ye=0,Ee=0,Se=[],Le=0,Ve=0;const Te=new Map;function ze(Ce){const Fe=c$4(le),Ie=c$4(ce),Ue=Fe&&Ie?Fe/Ie:0,qe=Math.abs($e)>Math.abs(ye)?$e:ye,je={srcEvent:ne,isPanRecognized:de,isSwipeRecognized:ue,firstTouch:ie,previousTouch:ce,currentTouch:le,deltaX:pe,deltaY:_e,offsetX:be,offsetY:ke,velocityX:$e,velocityY:ye,velocity:qe,angle:Ee,axis:re,scale:Ue,center:ae};for(const We of Te.get(Ce)||[])We(je)}function Re(Ce){const Fe=Date.now();if(Se=Se.filter(Ie=>!Ie.ts||Ie.ts>Fe-100),Ce&&Se.push(Ce),$e=0,ye=0,Se.length>3){const Ie=Se[0],Ue=Se[Se.length-1];if(Ie&&Ue){const qe=Ue.x-Ie.x,je=Ue.y-Ie.y,We=Ie.ts&&Ue.ts?Ue.ts-Ie.ts:0;We>0&&($e=Math.abs(qe)>3?qe/(We/30):0,ye=Math.abs(je)>3?je/(We/30):0)}}}function Oe(Ce){if(typeof MouseEvent<"u"&&Ce instanceof MouseEvent){if(l$8)return}else l$8=!0;const Fe=Ce.composedPath()[0],Ie=oe.ignore.join(",");if(Fe.matches(Ie)||Fe.closest(Ie))return;if(typeof MouseEvent<"u"&&Ce instanceof MouseEvent){if(!Ce.buttons||Ce.button!==0)return;r$6(Ce)}Ce instanceof MouseEvent&&(window.addEventListener("mousemove",Pe),window.addEventListener("mouseup",Be)),window.addEventListener("blur",De),ne=Ce,le=o$8(Ce),ie=[...le],ce=[],fe=le.length,ae=i$9(le),fe===1&&(de=!1,ue=!1,ve=!1),fe&&Re(i$9(le));const Ue=Date.now(),qe=Ue-(ge||Ue);me=qe>0&&qe<=250&&fe===1,ge=Ue,clearTimeout(Le),ze("start")}function Pe(Ce){var Fe;if(!ie.length||Ce.defaultPrevented)return;ne=Ce,ce=[...le],le=n$8(Ce);const Ie=i$9(ce),Ue=i$9(n$8(Ce));if(Re(Ue),fe=le.length,ae=Ue,ce.length===le.length?(pe=Ue.x-Ie.x,_e=Ue.y-Ie.y):(pe=0,_e=0),ie.length){const qe=i$9(ie);be=Ue.x-qe.x,ke=Ue.y-qe.y}if(le.length>1){const qe=c$4(le),je=c$4(ce);Math.abs(qe-je)>=.1&&(ve=!0,ze("pinch"))}de||(de=Math.abs(be)>oe.panThreshold||Math.abs(ke)>oe.panThreshold,de&&(d$4=!1,clearTimeout(Ve),Ve=0,Ee=Math.abs(180*Math.atan2(ke,be)/Math.PI),re=Ee>45&&Ee<135?"y":"x",ie=[...le],ce=[...le],be=0,ke=0,pe=0,_e=0,(Fe=window.getSelection())===null||Fe===void 0||Fe.removeAllRanges(),ze("panstart"))),de&&(pe||_e)&&ze("pan"),ze("move")}function Be(Ce){if(ne=Ce,!ie.length)return;const Fe=o$8(Ce),Ie=s$b(Ce);if(fe=Fe.length,ae=i$9(Ie),Ie.length&&Re(i$9(Ie)),ce=[...le],le=[...Fe],ie=[...Fe],fe>0)ze("end"),de=!1,ue=!1,Se=[];else{const Ue=oe.swipeThreshold;(Math.abs($e)>Ue||Math.abs(ye)>Ue)&&(ue=!0),de&&ze("panend"),ue&&ze("swipe"),de||ue||ve||(ze("tap"),me?ze("doubleTap"):Le=setTimeout(function(){ze("singleTap")},250)),ze("end"),Ne()}}function De(){clearTimeout(Le),Ne(),de&&ze("panend"),ze("end")}function Ne(){l$8=!1,de=!1,ue=!1,me=!1,fe=0,Se=[],le=[],ce=[],ie=[],pe=0,_e=0,be=0,ke=0,$e=0,ye=0,Ee=0,re=void 0,window.removeEventListener("mousemove",Pe),window.removeEventListener("mouseup",Be),window.removeEventListener("blur",De),d$4||Ve||(Ve=setTimeout(()=>{d$4=!0,Ve=0},100))}function Me(Ce){const Fe=Ce.target;l$8=!1,Fe&&!Ce.defaultPrevented&&(d$4||(r$6(Ce),Ce.stopPropagation()))}const we={init:function(){return ee&&(ee.addEventListener("click",Me,a$8),ee.addEventListener("mousedown",Oe,a$8),ee.addEventListener("touchstart",Oe,a$8),ee.addEventListener("touchmove",Pe,a$8),ee.addEventListener("touchend",Be),ee.addEventListener("touchcancel",Be)),we},on:function(Ce,Fe){return function(Ie,Ue){Te.set(Ie,[...Te.get(Ie)||[],Ue])}(Ce,Fe),we},off:function(Ce,Fe){return Te.has(Ce)&&Te.set(Ce,Te.get(Ce).filter(Ie=>Ie!==Fe)),we},isPointerDown:()=>fe>0,destroy:function(){clearTimeout(Le),clearTimeout(Ve),Ve=0,ee&&(ee.removeEventListener("click",Me,a$8),ee.removeEventListener("mousedown",Oe,a$8),ee.removeEventListener("touchstart",Oe,a$8),ee.removeEventListener("touchmove",Pe,a$8),ee.removeEventListener("touchend",Be),ee.removeEventListener("touchcancel",Be)),ee=null,Ne()}};return we};f$4.isClickAllowed=()=>d$4;/*! License details at fancyapps.com/license */const e$5={IMAGE_ERROR:"This image couldn't be loaded. <br /> Please try again later.",MOVE_UP:"Move up",MOVE_DOWN:"Move down",MOVE_LEFT:"Move left",MOVE_RIGHT:"Move right",ZOOM_IN:"Zoom in",ZOOM_OUT:"Zoom out",TOGGLE_FULL:"Toggle zoom level",TOGGLE_1TO1:"Toggle zoom level",ITERATE_ZOOM:"Toggle zoom level",ROTATE_CCW:"Rotate counterclockwise",ROTATE_CW:"Rotate clockwise",FLIP_X:"Flip horizontally",FLIP_Y:"Flip vertically",RESET:"Reset",TOGGLE_FS:"Toggle fullscreen"};/*! License details at fancyapps.com/license */const s$a=(ee,te="")=>{ee&&ee.classList&&te.split(" ").forEach(ne=>{ne&&ee.classList.add(ne)})};/*! License details at fancyapps.com/license */const s$9=(ee,te="")=>{ee&&ee.classList&&te.split(" ").forEach(ne=>{ne&&ee.classList.remove(ne)})};/*! License details at fancyapps.com/license */const s$8=(ee,te="",ne)=>{ee&&ee.classList&&te.split(" ").forEach(ae=>{ae&&ee.classList.toggle(ae,ne||!1)})};/*! License details at fancyapps.com/license */const h$6=ee=>{ee.cancelable&&ee.preventDefault()},m$4=(ee,te=1e4)=>(ee=parseFloat(ee+"")||0,Math.round((ee+Number.EPSILON)*te)/te),p$3=ee=>ee instanceof HTMLImageElement;var v$6,b$4;(function(ee){ee.Reset="reset",ee.Zoom="zoom",ee.ZoomIn="zoomIn",ee.ZoomOut="zoomOut",ee.ZoomTo="zoomTo",ee.ToggleCover="toggleCover",ee.ToggleFull="toggleFull",ee.ToggleMax="toggleMax",ee.IterateZoom="iterateZoom",ee.Pan="pan",ee.Swipe="swipe",ee.Move="move",ee.MoveLeft="moveLeft",ee.MoveRight="moveRight",ee.MoveUp="moveUp",ee.MoveDown="moveDown",ee.RotateCCW="rotateCCW",ee.RotateCW="rotateCW",ee.FlipX="flipX",ee.FlipY="flipY",ee.ToggleFS="toggleFS"})(v$6||(v$6={})),function(ee){ee.Cover="cover",ee.Full="full",ee.Max="max"}(b$4||(b$4={}));const y$5={x:0,y:0,scale:1,angle:0,flipX:1,flipY:1},x$2={bounds:!0,classes:{container:"f-panzoom",wrapper:"f-panzoom__wrapper",content:"f-panzoom__content",viewport:"f-panzoom__viewport"},clickAction:v$6.ToggleFull,dblClickAction:!1,gestures:{},height:"auto",l10n:e$5,maxScale:4,minScale:1,mouseMoveFactor:1,panMode:"drag",protected:!1,singleClickAction:!1,spinnerTpl:'<div class="f-spinner"></div>',wheelAction:v$6.Zoom,width:"auto"};let w$6,M$2=0,k$4=0,j$3=0;const E$4=(ee,te={},ne={})=>{let ae,re,oe,ie,le,ce,de,ue,ve=0,me=Object.assign(Object.assign({},x$2),te),ge={},fe=Object.assign({},y$5),pe=Object.assign({},y$5);const _e=[];function be(Ye){let Je=me[Ye];return Je&&typeof Je=="function"?Je(tt):Je}function ke(){return ee&&ee.parentElement&&ae&&ve===3}const $e=new Map;function ye(Ye,...Je){const nt=[...$e.get(Ye)||[]];me.on&&nt.push(me.on[Ye]);for(const ut of nt)ut&&ut instanceof Function&&ut(tt,...Je);Ye!=="*"&&ye("*",Ye,...Je)}function Ee(Ye){if(!ke())return;const Je=Ye.target;if(n$a(Je))return;const nt=Date.now(),ut=[-Ye.deltaX||0,-Ye.deltaY||0,-Ye.detail||0].reduce(function(Mt,Dt){return Math.abs(Dt)>Math.abs(Mt)?Dt:Mt}),it=t$8(-1,ut,1);ye("wheel",Ye,it);const st=be("wheelAction");if(!st||Ye.defaultPrevented)return;const $t=pe.scale;let kt=$t*(it>0?1.5:.5);if(st===v$6.Zoom){const Mt=Math.abs(Ye.deltaY)<100&&Math.abs(Ye.deltaX)<100;if(nt-k$4<(Mt?200:45))return void h$6(Ye);k$4=nt;const Dt=Me(),Lt=Ie();if(m$4(kt)<m$4(Dt)&&m$4($t)<=m$4(Dt)?(j$3+=Math.abs(it),kt=Dt):m$4(kt)>m$4(Lt)&&m$4($t)>=m$4(Lt)?(j$3+=Math.abs(it),kt=Lt):(j$3=0,kt=t$8(Dt,kt,Lt)),j$3>7)return}switch(h$6(Ye),st){case v$6.Pan:We(st,{srcEvent:Ye,deltaX:2*-Ye.deltaX,deltaY:2*-Ye.deltaY});break;case v$6.Zoom:We(v$6.ZoomTo,{srcEvent:Ye,scale:kt,center:{x:Ye.clientX,y:Ye.clientY}});break;default:We(st,{srcEvent:Ye})}}function Se(Ye){var Je,nt;const ut=Ye.composedPath()[0];if(!f$4.isClickAllowed()||!n$b(ut)||Ye.defaultPrevented||!(ee!=null&&ee.contains(ut))||ut.hasAttribute("disabled")||ut.hasAttribute("aria-disabled"))return;const it=ut.closest("[data-panzoom-action]"),st=(Je=it==null?void 0:it.dataset)===null||Je===void 0?void 0:Je.panzoomAction,$t=((nt=it==null?void 0:it.dataset)===null||nt===void 0?void 0:nt.panzoomValue)||"";if(st){switch(h$6(Ye),st){case v$6.ZoomTo:case v$6.ZoomIn:case v$6.ZoomOut:We(st,{scale:parseFloat($t||"")||void 0});break;case v$6.MoveLeft:case v$6.MoveRight:We(st,{deltaX:parseFloat($t||"")||void 0});break;case v$6.MoveUp:case v$6.MoveDown:We(st,{deltaY:parseFloat($t||"")||void 0});break;case v$6.ToggleFS:ct();break;default:We(st)}return}if(!(ae!=null&&ae.contains(ut)))return;const kt={srcEvent:Ye};if(We(be("clickAction"),kt),be("dblClickAction")){const Mt=Date.now(),Dt=Mt-(M$2||Mt);M$2=Mt,Dt>0&&Dt<=250?(w$6&&(clearTimeout(w$6),w$6=void 0),We(be("dblClickAction"),kt)):w$6=setTimeout(()=>{We(be("singleClickAction"),kt)},250)}}function Le(Ye){if(ue=Ye,!ke()||!Be()||fe.scale<=1||pe.scale<=1||((ae==null?void 0:ae.dataset.animationName)||"").indexOf("zoom")>-1)return;const Je=De(pe.scale);if(!Je)return;const{x:nt,y:ut}=Je;We(v$6.Pan,{deltaX:nt-pe.x,deltaY:ut-pe.y})}function Ve(){var Ye;ee&&(s$9(ee,"is-loading"),(Ye=ee.querySelector(".f-spinner"))===null||Ye===void 0||Ye.remove())}function Te(){if(!ee||!re)return;if(Ve(),p$3(re)&&(!re.complete||!re.naturalWidth))return ve=2,ae==null||ae.classList.add("has-error"),void ye("error");ye("loaded");const{width:Ye,height:Je}=Oe();p$3(re)&&(re.setAttribute("width",Ye+""),re.setAttribute("height",Je+"")),ae&&(s$9(ae,"has-error"),p$3(re)&&(ae.setAttribute("width",Ye+""),ae.setAttribute("height",Je+""),ae.style.aspectRatio=`${Ye/Je||""}`)),ce=c$5().on("start",(ut,it)=>{it.angle!==void 0&&(it.angle=90*Math.round(it.angle/90)),it.flipX!==void 0&&(it.flipX=it.flipX>0?1:-1),it.flipY!==void 0&&(it.flipY=it.flipY>0?1:-1),pe=Object.assign(Object.assign({},y$5),it),je(),ye("animationStart")}).on("pause",ut=>{pe=Object.assign(Object.assign({},y$5),ut)}).on("step",ut=>{if(!ke())return void(ce==null||ce.end());if(fe=Object.assign(Object.assign({},y$5),ut),Be()||!be("bounds")||Ze()||pe.scale>fe.scale||pe.scale<we())return void Ge();const it=Ue(pe.scale);let st=!1,$t=!1,kt=!1,Mt=!1;fe.x<it.x[0]&&(st=!0),fe.x>it.x[1]&&($t=!0),fe.y<it.y[0]&&(Mt=!0),fe.y>it.y[1]&&(kt=!0);let Dt=!1,Lt=!1,Gt=!1,Rt=!1;pe.x<it.x[0]&&(Dt=!0),pe.x>it.x[1]&&(Lt=!0),pe.y<it.y[0]&&(Rt=!0),pe.y>it.y[1]&&(Gt=!0);let Xt=!1;($t&&Lt||st&&Dt)&&(pe.x=t$8(it.x[0],pe.x,it.x[1]),Xt=!0),(kt&&Gt||Mt&&Rt)&&(pe.y=t$8(it.y[0],pe.y,it.y[1]),Xt=!0),Xt&&ce&&ce.spring({tension:94,friction:17,maxSpeed:555*pe.scale,restDelta:.1,restSpeed:.1,velocity:ce.getCurrentVelocities()}).from(fe).to(pe).start(),Ge()}).on("end",()=>{le!=null&&le.isPointerDown()||qe(),ce!=null&&ce.isRunning()||(je(),ye("animationEnd"))}),function(){const ut=be("gestures");if(!ut||!ie||!re)return;let it=!1;le=f$4(ie,ut).on("start",st=>{if(!be("gestures")||!ce||!ke()||Be())return;const $t=st.srcEvent;(fe.scale>1||st.currentTouch.length>1)&&($t==null||$t.stopPropagation(),ce.pause(),it=!0),st.currentTouch.length===1&&ye("touchStart")}).on("move",st=>{var $t;it&&(pe.scale!==1||st.currentTouch.length>1)&&(h$6(st.srcEvent),($t=st.srcEvent)===null||$t===void 0||$t.stopPropagation())}).on("pan",st=>{if(!it)return;const $t=st.srcEvent;(pe.scale!==1||st.currentTouch.length>1)&&(h$6($t),We(v$6.Pan,st))}).on("swipe",st=>{it&&pe.scale>1&&We(v$6.Swipe,st)}).on("tap",st=>{ye("click",st)}).on("singleTap",st=>{ye("singleClick",st)}).on("doubleTap",st=>{ye("dblClick",st)}).on("pinch",st=>{it&&(st.scale>we()?We(v$6.ZoomIn,st):st.scale<we()?We(v$6.ZoomOut,st):We(v$6.Pan,st))}).on("end",st=>{it&&(st.currentTouch.length?(st.srcEvent.stopPropagation(),h$6(st.srcEvent),ce==null||ce.end()):(it=!1,je(),qe(),ye("touchEnd")))}).init()}(),ie&&(ie.addEventListener("wheel",Ee,{passive:!1}),_e.push(()=>{ie==null||ie.removeEventListener("wheel",Ee,{passive:!1})})),ee==null||ee.addEventListener("click",Se),document==null||document.addEventListener("mousemove",Le),_e.push(()=>{ee==null||ee.removeEventListener("click",Se),document==null||document.removeEventListener("mousemove",Le)});const nt=ze();fe=Object.assign({},nt),pe=Object.assign({},nt),ve=3,Ge(),je(),ye("ready"),requestAnimationFrame(()=>{Ve(),ie&&(ie.style.visibility="")})}function ze(){const Ye=Object.assign({},be("startPos")||{});let Je=Ye.scale,nt=1;nt=typeof Je=="string"?Ne(Je):typeof Je=="number"?Je:we();const ut=Object.assign(Object.assign(Object.assign({},y$5),Ye),{scale:nt}),it=Be()?De(nt):void 0;if(it){const{x:st,y:$t}=it;ut.x=st,ut.y=$t}return ut}function Re(){const Ye={top:0,left:0,width:0,height:0};if(ae){const Je=ae.getBoundingClientRect();pe.angle%180==90?(Ye.top=Je.top+.5*Je.height-.5*Je.width,Ye.left=Je.left+.5*Je.width-.5*Je.height,Ye.width=Je.height,Ye.height=Je.width):(Ye.top=Je.top,Ye.left=Je.left,Ye.width=Je.width,Ye.height=Je.height)}return Ye}function Oe(){let Ye=be("width"),Je=be("height");if(re&&Ye==="auto"){const nt=re.getAttribute("width");Ye=nt?parseFloat(nt+""):re.dataset.width!==void 0?parseFloat(re.dataset.width+""):p$3(ie)?ie.naturalWidth:p$3(re)?re.naturalWidth:(ae==null?void 0:ae.getBoundingClientRect().width)||0}else Ye=t$9(Ye)?parseFloat(Ye):Ye;if(re&&Je==="auto"){const nt=re.getAttribute("height");Je=nt?parseFloat(nt+""):re.dataset.height!==void 0?parseFloat(re.dataset.height+""):p$3(ie)?ie.naturalHeight:p$3(re)?re.naturalHeight:(ae==null?void 0:ae.getBoundingClientRect().height)||0}else Je=t$9(Je)?parseFloat(Je):Je;return{width:Ye,height:Je}}function Pe(){const Ye=Re();return{width:Ye.width,height:Ye.height}}function Be(){return be("panMode")==="mousemove"&&matchMedia("(hover: hover)").matches}function De(Ye){const Je=ue||be("event"),nt=ae==null?void 0:ae.getBoundingClientRect();if(!Je||!nt||Ye<=1)return{x:0,y:0};const ut=(Je.clientX||0)-nt.left,it=(Je.clientY||0)-nt.top,{width:st,height:$t}=Pe(),kt=Ue(Ye);if(Ye>1){const Rt=be("mouseMoveFactor");Rt>1&&(Ye*=Rt)}let Mt=st*Ye,Dt=$t*Ye,Lt=.5*(Mt-st)-ut/st*100/100*(Mt-st),Gt=.5*(Dt-$t)-it/$t*100/100*(Dt-$t);return Lt=t$8(kt.x[0],Lt,kt.x[1]),Gt=t$8(kt.y[0],Gt,kt.y[1]),{x:Lt,y:Gt}}function Ne(Ye="base"){if(!ee)return 1;const Je=ee.getBoundingClientRect(),nt=Re(),{width:ut,height:it}=Oe(),st=Lt=>{if(typeof Lt=="number")return Lt;switch(Lt){case"min":case"base":return 1;case"cover":return Math.max(Je.height/nt.height,Je.width/nt.width)||1;case"full":case"max":{const Gt=pe.angle%180==90?it:ut;return Gt&&nt.width?Gt/nt.width:1}}},$t=be("minScale"),kt=be("maxScale"),Mt=Math.min(st("full"),st($t)),Dt=typeof kt=="number"?st("full")*kt:Math.min(st("full"),st(kt));switch(Ye){case"min":return Mt;case"base":return t$8(Mt,1,Dt);case"cover":return st("cover");case"full":return Math.min(Dt,st("full"));case"max":return Dt}}function Me(){return Ne("min")}function we(){return Ne("base")}function Ce(){return Ne("cover")}function Fe(){return Ne("full")}function Ie(){return Ne("max")}function Ue(Ye){const Je={x:[0,0],y:[0,0]},nt=ee==null?void 0:ee.getBoundingClientRect();if(!nt)return Je;const ut=Re(),it=nt.width,st=nt.height;let $t=ut.width,kt=ut.height,Mt=Ye=Ye===void 0?pe.scale:Ye,Dt=Ye;if(Be()&&Ye>1){const Lt=be("mouseMoveFactor");Lt>1&&($t*Ye>it+.01&&(Mt*=Lt),kt*Ye>st+.01&&(Dt*=Lt))}return $t*=Mt,kt*=Dt,Ye>1&&($t>it&&(Je.x[0]=.5*(it-$t),Je.x[1]=.5*($t-it)),Je.x[0]-=.5*(ut.left-nt.left),Je.x[1]-=.5*(ut.left-nt.left),Je.x[0]-=.5*(ut.left+ut.width-nt.right),Je.x[1]-=.5*(ut.left+ut.width-nt.right),kt>st&&(Je.y[0]=.5*(st-kt),Je.y[1]=.5*(kt-st)),Je.y[0]-=.5*(ut.top-nt.top),Je.y[1]-=.5*(ut.top-nt.top),Je.y[0]-=.5*(ut.top+ut.height-nt.bottom),Je.y[1]-=.5*(ut.top+ut.height-nt.bottom)),Je}function qe(){if(!ke()||!be("bounds")||!ce)return;const Ye=Me(),Je=Ie(),nt=t$8(Ye,pe.scale,Je);if(pe.scale<Ye-.01||pe.scale>Je+.01)return void We(v$6.ZoomTo,{scale:nt});if(ce.isRunning()||Ze())return;const ut=Ue(nt);pe.x<ut.x[0]||pe.x>ut.x[1]||pe.y<ut.y[0]||pe.y>ut.y[1]?(pe.x=t$8(ut.x[0],pe.x,ut.x[1]),pe.y=t$8(ut.y[0],pe.y,ut.y[1]),ce.spring({tension:170,friction:17,restDelta:.001,restSpeed:.001,maxSpeed:1/0,velocity:ce.getCurrentVelocities()}),ce.from(fe).to(pe).start()):Ge()}function je(Ye){var Je;if(!ke())return;const nt=_t(),ut=Ze(),it=at(),st=dt(),$t=et(),kt=yt();s$8(ae,"is-fullsize",st),s$8(ae,"is-expanded",it),s$8(ae,"is-dragging",ut),s$8(ae,"can-drag",nt),s$8(ae,"will-zoom-in",$t),s$8(ae,"will-zoom-out",kt);const Mt=At(),Dt=Pt(),Lt=Et(),Gt=!ke();for(const Rt of((Je=Ye||ee)===null||Je===void 0?void 0:Je.querySelectorAll("[data-panzoom-action]"))||[]){const Xt=Rt.dataset.panzoomAction;let It=!1;if(Gt)It=!0;else switch(Xt){case v$6.ZoomIn:Mt||(It=!0);break;case v$6.ZoomOut:Lt||(It=!0);break;case v$6.ToggleFull:{Dt||Lt||(It=!0);const Qe=Rt.querySelector("g");Qe&&(Qe.style.display=st&&!It?"none":"");break}case v$6.IterateZoom:{Mt||Lt||(It=!0);const Qe=Rt.querySelector("g");Qe&&(Qe.style.display=Mt||It?"":"none");break}case v$6.ToggleCover:case v$6.ToggleMax:Mt||Lt||(It=!0)}It?(Rt.setAttribute("aria-disabled",""),Rt.setAttribute("tabindex","-1")):(Rt.removeAttribute("aria-disabled"),Rt.removeAttribute("tabindex"))}}function We(Ye,Je){var nt;if(!(Ye&&ee&&re&&ce&&ke())||Ye===v$6.Swipe&&Math.abs(ce.getCurrentVelocities().scale)>.01)return;const ut=Object.assign({},pe);let it=Object.assign({},pe),st=Ue(Be()?ut.scale:fe.scale);const $t=ce.getCurrentVelocities(),kt=Re(),Mt=(((nt=(Je=Je||{}).currentTouch)===null||nt===void 0?void 0:nt.length)||0)>1,Dt=Je.velocityX||0,Lt=Je.velocityY||0;let Gt=Je.center;Je.srcEvent&&(Gt=i$9(s$b(Je.srcEvent)));let Rt=Je.deltaX||0,Xt=Je.deltaY||0;switch(Ye){case v$6.MoveRight:Rt=Je.deltaX||100;break;case v$6.MoveLeft:Rt=Je.deltaX||-100;break;case v$6.MoveUp:Xt=Je.deltaY||-100;break;case v$6.MoveDown:Xt=Je.deltaY||100}let It=[];switch(Ye){case v$6.Reset:it=Object.assign({},y$5),it.scale=we();break;case v$6.Pan:case v$6.Move:case v$6.MoveLeft:case v$6.MoveRight:case v$6.MoveUp:case v$6.MoveDown:if(Ze()){let mt=1,vt=1;it.x<=st.x[0]&&Dt<=0&&(mt=Math.max(.01,1-Math.abs(1/kt.width*Math.abs(it.x-st.x[0]))),mt*=.2),it.x>=st.x[1]&&Dt>=0&&(mt=Math.max(.01,1-Math.abs(1/kt.width*Math.abs(it.x-st.x[1]))),mt*=.2),it.y<=st.y[0]&&Lt<=0&&(vt=Math.max(.01,1-Math.abs(1/kt.height*Math.abs(it.y-st.y[0]))),vt*=.2),it.y>=st.y[1]&&Lt>=0&&(vt=Math.max(.01,1-Math.abs(1/kt.height*Math.abs(it.y-st.y[1]))),vt*=.2),it.x+=Rt*mt,it.y+=Xt*vt}else it.x=t$8(st.x[0],it.x+Rt,st.x[1]),it.y=t$8(st.y[0],it.y+Xt,st.y[1]);break;case v$6.Swipe:const Qe=(mt=0)=>Math.sign(mt)*Math.pow(Math.abs(mt),1.5);it.x+=t$8(-1e3,Qe(Dt),1e3),it.y+=t$8(-1e3,Qe(Lt),1e3),Lt&&!Dt&&(it.x=t$8(st.x[0],it.x,st.x[1])),!Lt&&Dt&&(it.y=t$8(st.y[0],it.y,st.y[1])),$t.x=Dt,$t.y=Lt;break;case v$6.ZoomTo:it.scale=Je.scale||1;break;case v$6.ZoomIn:it.scale=it.scale*(Je.scale||2),Mt||(it.scale=Math.min(it.scale,Ie()));break;case v$6.ZoomOut:it.scale=it.scale*(Je.scale||.5),Mt||(it.scale=Math.max(it.scale,Me()));break;case v$6.ToggleCover:It=[we(),Ce()];break;case v$6.ToggleFull:It=[we(),Fe()];break;case v$6.ToggleMax:It=[we(),Ie()];break;case v$6.IterateZoom:It=[we(),Fe(),Ie()];break;case v$6.Zoom:const lt=Fe();it.scale>=lt-.05?it.scale=we():it.scale=Math.min(lt,it.scale*(Je.scale||2));break;case v$6.RotateCW:it.angle+=90;break;case v$6.RotateCCW:it.angle-=90;break;case v$6.FlipX:it.flipX*=-1;break;case v$6.FlipY:it.flipY*=-1}if(fe.angle!==void 0&&Math.abs(fe.angle)>=360&&(it.angle-=360*Math.floor(fe.angle/360),fe.angle-=360*Math.floor(fe.angle/360)),It.length){const Qe=It.findIndex(lt=>lt>it.scale+1e-4);it.scale=It[Qe]||It[0]}if(Mt&&(it.scale=t$8(Me()*(Mt?.8:1),it.scale,Ie()*(Mt?1.6:1))),Be()){const Qe=De(it.scale);if(Qe){const{x:lt,y:mt}=Qe;it.x=lt,it.y=mt}}else if(Math.abs(it.scale-ut.scale)>1e-4){let Qe=0,lt=0;if(Gt)Qe=Gt.x,lt=Gt.y;else{const St=ee.getBoundingClientRect();Qe=St.x+.5*St.width,lt=St.y+.5*St.height}let mt=Qe-kt.left,vt=lt-kt.top;mt-=.5*kt.width,vt-=.5*kt.height;const wt=(mt-ut.x)/ut.scale,xt=(vt-ut.y)/ut.scale;it.x=mt-wt*it.scale,it.y=vt-xt*it.scale,!Mt&&be("bounds")&&(st=Ue(it.scale),it.x=t$8(st.x[0],it.x,st.x[1]),it.y=t$8(st.y[0],it.y,st.y[1]))}if(Ye===v$6.Swipe){let Qe=94,lt=17,mt=500*it.scale,vt=$t;ce.spring({tension:Qe,friction:lt,maxSpeed:mt,restDelta:.1,restSpeed:.1,velocity:vt})}else Ye===v$6.Pan||Mt?ce.spring({tension:900,friction:17,restDelta:.01,restSpeed:.01,maxSpeed:1}):ce.spring({tension:170,friction:17,restDelta:.001,restSpeed:.001,maxSpeed:1/0,velocity:$t});if(Je.velocity===0||n$9(fe,it))fe=Object.assign({},it),pe=Object.assign({},it),ce.end(),Ge(),je();else{if(n$9(pe,it))return;ce.from(fe).to(it).start()}ye("action",Ye)}function Ge(){if(!re||!ae||!ie)return;const{width:Ye,height:Je}=Oe();Object.assign(ae.style,{maxWidth:`min(${Ye}px, 100%)`,maxHeight:`min(${Je}px, 100%)`});const nt=function(){const{width:Rt,height:Xt}=Oe(),{width:It,height:Qe}=Pe();if(!ee)return{x:0,y:0,width:0,height:0,scale:0,flipX:0,flipY:0,angle:0,fitWidth:It,fitHeight:Qe,fullWidth:Rt,fullHeight:Xt};let{x:lt,y:mt,scale:vt,angle:wt,flipX:xt,flipY:St}=fe,rt=1/Fe(),bt=Rt,pt=Xt,Tt=fe.scale*rt,Ft=pe.scale*rt;const Ot=Math.max(It,Qe),Ht=Math.min(It,Qe);Rt>Xt?(bt=Ot,pt=Ht):(bt=Ht,pt=Ot),Tt=Rt>Xt?Ot*vt/Rt||1:Ot*vt/Xt||1;let Zt=bt?Rt*Ft:0,an=pt?Xt*Ft:0,rn=bt&&pt?Rt*Tt/Zt:0;return lt=lt+.5*bt-.5*Zt,mt=mt+.5*pt-.5*an,{x:lt,y:mt,width:Zt,height:an,scale:rn,flipX:xt,flipY:St,angle:wt,fitWidth:It,fitHeight:Qe,fullWidth:Rt,fullHeight:Xt}}(),{x:ut,y:it,width:st,height:$t,scale:kt,angle:Mt,flipX:Dt,flipY:Lt}=nt;let Gt=`translate(${m$4(ut)}px, ${m$4(it)}px)`;Gt+=Dt!==1||Lt!==1?` scaleX(${m$4(kt*Dt)}) scaleY(${m$4(kt*Lt)})`:` scale(${m$4(kt)})`,Mt!==0&&(Gt+=` rotate(${Mt}deg)`),ie.style.width=`${m$4(st)}px`,ie.style.height=`${m$4($t)}px`,ie.style.transform=`${Gt}`,ye("render")}function Ke(){let Ye=pe.scale;const Je=be("clickAction");let nt=we();if(Je){let ut=[];switch(Je){case v$6.ZoomIn:nt=2*Ye;break;case v$6.ZoomOut:nt=.5*Ye;break;case v$6.ToggleCover:ut=[we(),Ce()];break;case v$6.ToggleFull:ut=[we(),Fe()];break;case v$6.ToggleMax:ut=[we(),Ie()];break;case v$6.IterateZoom:ut=[we(),Fe(),Ie()];break;case v$6.Zoom:const it=Fe();nt=Ye>=it-.05?we():Math.min(it,2*Ye)}if(ut.length){const it=ut.findIndex(st=>st>Ye+1e-4);nt=ut[it]||we()}}return nt=t$8(Me(),nt,Ie()),nt}function et(){return!!(ke()&&Ke()>pe.scale)}function yt(){return!!(ke()&&Ke()<pe.scale)}function Et(){return!!(ke()&&pe.scale>Me())}function At(){return!!(ke()&&pe.scale<Ie())}function Pt(){return!!(ke()&&pe.scale<Fe())}function _t(){return!(!(ke()&&at()&&le)||Be())}function Ze(){return!(!ke()||!(le!=null&&le.isPointerDown())||Be())}function at(){return!!(ke()&&pe.scale>we())}function dt(){return!!(ke()&&pe.scale>=Fe())}function ct(){const Ye="in-fullscreen",Je="with-panzoom-in-fullscreen";ee==null||ee.classList.toggle(Ye);const nt=ee==null?void 0:ee.classList.contains(Ye);nt?(document.documentElement.classList.add(Je),document.addEventListener("keydown",ht,!0)):(document.documentElement.classList.remove(Je),document.removeEventListener("keydown",ht,!0)),Ge(),ye(nt?"enterFS":"exitFS")}function ht(Ye){Ye.key!=="Escape"||Ye.defaultPrevented||ct()}const tt={canDrag:_t,canZoomIn:At,canZoomOut:Et,canZoomToFull:Pt,destroy:function(){ye("destroy");for(const Ye of Object.values(ge))Ye==null||Ye.destroy(tt);for(const Ye of _e)Ye();return ae&&(ae.style.aspectRatio="",ae.style.maxWidth="",ae.style.maxHeight=""),ie&&(ie.style.width="",ie.style.height="",ie.style.transform=""),ae=void 0,re=void 0,ie=void 0,fe=Object.assign({},y$5),pe=Object.assign({},y$5),ce==null||ce.destroy(),ce=void 0,le==null||le.destroy(),le=void 0,ve=4,tt},emit:ye,execute:We,getBoundaries:Ue,getContainer:function(){return ee},getContent:function(){return re},getFullDim:Oe,getGestures:function(){return le},getMousemovePos:De,getOptions:function(){return me},getPlugins:function(){return ge},getScale:Ne,getStartPosition:ze,getState:function(){return ve},getTransform:function(Ye){return Ye===!0?pe:fe},getTween:function(){return ce},getViewport:function(){return ie},getWrapper:function(){return ae},init:function(){return ve=0,ye("init"),function(){for(const[Ye,Je]of Object.entries(Object.assign(Object.assign({},ne),me.plugins||{})))if(Ye&&!ge[Ye]&&Je instanceof Function){const nt=Je();nt.init(tt),ge[Ye]=nt}ye("initPlugins")}(),function(){const Ye=Object.assign(Object.assign({},x$2.classes),be("classes"));if(ee&&(s$a(ee,Ye.container),re=ee.querySelector("."+Ye.content),!!re)){if(re.setAttribute("draggable","false"),ae=ee.querySelector("."+Ye.wrapper),ae||(ae=document.createElement("div"),s$a(ae,Ye.wrapper),re.insertAdjacentElement("beforebegin",ae),ae.insertAdjacentElement("afterbegin",re)),ie=ee.querySelector("."+Ye.viewport),ie||(ie=document.createElement("div"),s$a(ie,Ye.viewport),ie.insertAdjacentElement("afterbegin",re),ae.insertAdjacentElement("beforeend",ie)),oe=re.cloneNode(!0),oe.removeAttribute("id"),ae.insertAdjacentElement("afterbegin",oe),re instanceof HTMLPictureElement&&(re=re.querySelector("img")),oe instanceof HTMLPictureElement&&(oe=oe.querySelector("img")),ie instanceof HTMLPictureElement&&(ie=ie.querySelector("img")),ie&&(ie.style.visibility="hidden",be("protected"))){ie.addEventListener("contextmenu",nt=>{h$6(nt)});const Je=document.createElement("div");s$a(Je,"f-panzoom__protected"),ie.appendChild(Je)}ye("initLayout")}}(),function(){if(ee&&ae&&!de){let Ye=null;de=new ResizeObserver(()=>{ke()&&(Ye=Ye||requestAnimationFrame(()=>{ke()&&(je(),qe(),ye("refresh")),Ye=null}))}),de.observe(ae),_e.push(()=>{de==null||de.disconnect(),de=void 0,Ye&&(cancelAnimationFrame(Ye),Ye=null)})}}(),function(){if(!ee||!re)return;if(!p$3(re)||!p$3(oe))return void Te();const Ye=()=>{re&&p$3(re)&&re.decode().then(()=>{Te()}).catch(()=>{Te()})};if(ve=1,ee.classList.add("is-loading"),ye("loading"),oe.src&&oe.complete)return void Ye();(function(){if(!ee||ee!=null&&ee.querySelector(".f-spinner"))return;const Je=be("spinnerTpl"),nt=e$9(Je);nt&&(nt.classList.add("f-spinner"),ee.classList.add("is-loading"),ae==null||ae.insertAdjacentElement("afterbegin",nt))})(),oe.addEventListener("load",Ye,!1),oe.addEventListener("error",Ye,!1),_e.push(()=>{oe==null||oe.removeEventListener("load",Ye,!1),oe==null||oe.removeEventListener("error",Ye,!1)})}(),tt},isDragging:Ze,isExpanded:at,isFullsize:dt,isMousemoveMode:Be,localize:function(Ye,Je=[]){const nt=be("l10n")||{};Ye=String(Ye).replace(/\{\{(\w+)\}\}/g,(ut,it)=>nt[it]||ut);for(let ut=0;ut<Je.length;ut++)Ye=Ye.split(Je[ut][0]).join(Je[ut][1]);return Ye=Ye.replace(/\{\{(.*?)\}\}/g,(ut,it)=>it)},off:function(Ye,Je){for(const nt of Ye instanceof Array?Ye:[Ye])$e.has(nt)&&$e.set(nt,$e.get(nt).filter(ut=>ut!==Je));return tt},on:function(Ye,Je){for(const nt of Ye instanceof Array?Ye:[Ye])$e.set(nt,[...$e.get(nt)||[],Je]);return tt},toggleFS:ct,updateControls:je,version:"6.1.3",willZoomIn:et,willZoomOut:yt};return tt};E$4.l10n={en_EN:e$5},E$4.getDefaults=()=>x$2;/*! License details at fancyapps.com/license */const e$4=(ee,te)=>{let ne=[];return ee.childNodes.forEach(ae=>{ae.nodeType!==Node.ELEMENT_NODE||te&&!ae.matches(te)||ne.push(ae)}),ne};/*! License details at fancyapps.com/license */const r$5=(ee,...te)=>{const ne=te.length;for(let ae=0;ae<ne;ae++){const re=te[ae]||{};Object.entries(re).forEach(([oe,ie])=>{const le=Array.isArray(ie)?[]:{};ee[oe]||Object.assign(ee,{[oe]:le}),t$7(ie)?Object.assign(ee[oe],r$5(ee[oe],ie)):Array.isArray(ie)?Object.assign(ee,{[oe]:[...ie]}):Object.assign(ee,{[oe]:ie})})}return ee};/*! License details at fancyapps.com/license */const t$5=function(ee=0,te=0,ne=0,ae=0,re=0,oe=!1){const ie=(ee-te)/(ne-te)*(re-ae)+ae;return oe?ae<re?t$8(ae,ie,re):t$8(re,ie,ae):ie};/*! License details at fancyapps.com/license */const o$7=Object.assign(Object.assign({},e$5),{ERROR:"Something went wrong. <br /> Please try again later.",NEXT:"Next page",PREV:"Previous page",GOTO:"Go to page #%d",DOWNLOAD:"Download",TOGGLE_FULLSCREEN:"Toggle full-screen mode",TOGGLE_EXPAND:"Toggle full-size mode",TOGGLE_THUMBS:"Toggle thumbnails",TOGGLE_AUTOPLAY:"Toggle slideshow"});/*! License details at fancyapps.com/license */const m$3=ee=>{ee.cancelable&&ee.preventDefault()},h$5={adaptiveHeight:!1,center:!0,classes:{container:"f-carousel",isEnabled:"is-enabled",isLTR:"is-ltr",isRTL:"is-rtl",isHorizontal:"is-horizontal",isVertical:"is-vertical",hasAdaptiveHeight:"has-adaptive-height",viewport:"f-carousel__viewport",slide:"f-carousel__slide",isSelected:"is-selected"},dragFree:!1,enabled:!0,errorTpl:'<div class="f-html">{{ERROR}}</div>',fill:!1,infinite:!0,initialPage:0,l10n:o$7,rtl:!1,slides:[],slidesPerPage:"auto",spinnerTpl:'<div class="f-spinner"></div>',transition:"fade",tween:{clamp:!0,mass:1,tension:160,friction:25,restDelta:1,restSpeed:1,velocity:0},vertical:!1};let b$3,y$4=0;const E$3=(ee,te={},ne={})=>{y$4++;let ae,re,oe,ie,le,ce=0,de=Object.assign({},h$5),ue=Object.assign({},h$5),ve={},me=null,ge=null,fe=!1,pe=!1,_e=!1,be=!1,ke="height",$e=0,ye=!0,Ee=0,Se=0,Le=0,Ve=0,Te="*",ze=[],Re=[];const Oe=new Set;let Pe=[],Be=[],De=0,Ne=0,Me=0;function we(Qe,...lt){let mt=ue[Qe];return mt&&mt instanceof Function?mt(It,...lt):mt}function Ce(Qe,lt=[]){const mt=we("l10n")||{};Qe=String(Qe).replace(/\{\{(\w+)\}\}/g,(vt,wt)=>mt[wt]||vt);for(let vt=0;vt<lt.length;vt++)Qe=Qe.split(lt[vt][0]).join(lt[vt][1]);return Qe=Qe.replace(/\{\{(.*?)\}\}/g,(vt,wt)=>wt)}const Fe=new Map;function Ie(Qe,...lt){const mt=[...Fe.get(Qe)||[]];ue.on&&mt.push(ue.on[Qe]);for(const vt of mt)vt&&vt instanceof Function&&vt(It,...lt);Qe!=="*"&&Ie("*",Qe,...lt)}function Ue(){var Qe,lt;const mt=r$5({},h$5,de);r$5(mt,h$5,de);let vt="";const wt=de.breakpoints||{};if(wt)for(const[xt,St]of Object.entries(wt))window.matchMedia(xt).matches&&(vt+=xt,r$5(mt,St));if(le===void 0||vt!==le){if(le=vt,ce!==0){let xt=(lt=(Qe=Be[Ee])===null||Qe===void 0?void 0:Qe.slides[0])===null||lt===void 0?void 0:lt.index;xt===void 0&&(xt=ue.initialSlide),mt.initialSlide=xt,mt.slides=[];for(const St of ze)St.isVirtual&&mt.slides.push(St)}Gt(),ue=mt,we("enabled")!==!1&&(ce=0,Ie("init"),function(){for(const[xt,St]of Object.entries(Object.assign(Object.assign({},ne),ue.plugins||{})))if(xt&&!ve[xt]&&St instanceof Function){const rt=St();rt.init(It,E$3),ve[xt]=rt}Ie("initPlugins")}(),function(){if(!me)return;const xt=we("classes")||{};s$a(me,xt.container);const St=we("style");if(St&&t$7(St))for(const[rt,bt]of Object.entries(St))me.style.setProperty(rt,bt);ge=me.querySelector(`.${xt.viewport}`),ge||(ge=document.createElement("div"),s$a(ge,xt.viewport),ge.append(...e$4(me,`.${xt.slide}`)),me.insertAdjacentElement("afterbegin",ge)),me.carousel=It,Ie("initLayout")}(),function(){if(!ge)return;const xt=we("classes")||{};ze=[],[...e$4(ge,`.${xt.slide}`)].forEach(St=>{if(St.parentElement){const rt=at(Object.assign({el:St,isVirtual:!1},St.dataset||{}));Ie("createSlide",rt),ze.push(rt)}}),tt();for(const St of ze)Ie("addSlide",St);Ze(we("slides"));for(const St of ze){const rt=St.el;(rt==null?void 0:rt.parentElement)===ge&&(s$a(rt,ue.classes.slide),s$a(rt,St.class),kt(St),Ie("attachSlideEl",St))}Ie("initSlides")}(),Ye(),ce=1,s$a(me,(we("classes")||{}).isEnabled||""),Lt(),Ke(),re=c$5().on("start",()=>{ae&&ae.isPointerDown()||(Ge(),Lt())}).on("step",xt=>{const St=$e;$e=xt.pos,$e!==St&&(ye=!1,Lt())}).on("end",xt=>{ae!=null&&ae.isPointerDown()||($e=xt.pos,re&&!pe&&($e<Le||$e>Ve)?re.spring({clamp:!0,mass:1,tension:200,friction:25,velocity:0,restDelta:1,restSpeed:1}).from({pos:$e}).to({pos:t$8(Le,$e,Ve)}).start():ye||(ye=!0,Ie("settle")))}),je(),function(){if(!me||!ge)return;me.addEventListener("click",it,{passive:!1}),document.addEventListener("mousemove",qe);const xt=ge.getBoundingClientRect();if(De=xt.height,Ne=xt.width,!oe){let St=null;oe=new ResizeObserver(()=>{St||(St=requestAnimationFrame(()=>{(function(){if(ce!==1||!ge)return;const rt=Be.length,bt=ge.getBoundingClientRect(),pt=bt.height,Tt=bt.width;rt>1&&(be&&Math.abs(pt-De)<.5||!be&&Math.abs(Tt-Ne)<.5)||(Ye(),je(),De=pt,Ne=Tt,be&&!pt||!be&&!Tt||me&&ge&&(rt===Be.length&&(ae!=null&&ae.isPointerDown())||(we("dragFree")&&(pe||$e>Le&&$e<Ve)?(Ge(),Lt()):Mt(Ee,{transition:!1}))))})(),St=null}))}),oe.observe(ge)}}(),Ie("ready"))}}function qe(Qe){b$3=Qe}function je(){we("gestures")===!1?ae&&(ae.destroy(),ae=void 0):ae||function(){const Qe=we("gestures");!ae&&Qe!==!1&&ge&&(ae=f$4(ge,Qe).on("start",lt=>{var mt,vt;if(!re)return;const{srcEvent:wt}=lt;be&&e$6(wt)&&!n$a(wt.target)&&m$3(wt),re.pause(),re.getCurrentVelocities().pos=0;const xt=(mt=Be[Ee])===null||mt===void 0?void 0:mt.slides[0];xt&&Oe.has(xt.index)&&xt.el&&($e=xt.offset||0,$e+=(function(St){const rt=window.getComputedStyle(St),bt=new DOMMatrixReadOnly(rt.transform);return{width:bt.m41||0,height:bt.m42||0}}(xt.el)[ke]||0)*(_e&&!be?1:-1)),nt(),pe||($e<Le||$e>Ve)&&re.spring({clamp:!0,mass:1,tension:500,friction:25,velocity:((vt=re.getCurrentVelocities())===null||vt===void 0?void 0:vt.pos)||0,restDelta:1,restSpeed:1}).from({pos:$e}).to({pos:t$8(Le,$e,Ve)}).start()}).on("move",lt=>{var mt,vt;const{srcEvent:wt,axis:xt}=lt,St=wt.target;if(xt||(m$3(wt),wt.stopPropagation(),wt.stopImmediatePropagation()),(xt==="y"&&be||xt==="x"&&!be)&&(m$3(wt),wt.stopPropagation()),!xt)return;const{deltaX:rt,deltaY:bt}=lt;if(!re||e$6(wt)&&((mt=wt.touches)===null||mt===void 0?void 0:mt.length)>1||xt==="y"&&!be||xt==="x"&&be||St&&n$a(St)&&(xt!=="x"||be))return;const pt=_e&&!be?1:-1;let Tt=be?bt:rt,Ft=re!=null&&re.isRunning()?re.getEndValues().pos:$e,Ot=1;pe||(Ft<=Le&&Tt*pt<0?(Ot=Math.max(.01,1-(Math.abs(1/At()*Math.abs(Ft-Le))||0)),Ot*=.2):Ft>=Ve&&Tt*pt>0&&(Ot=Math.max(.01,1-(Math.abs(1/At()*Math.abs(Ft-Ve))||0)),Ot*=.2)),Ft+=Tt*Ot*pt,re.spring({clamp:!0,mass:1,tension:700,friction:25,velocity:((vt=re.getCurrentVelocities())===null||vt===void 0?void 0:vt.pos)||0,restDelta:1,restSpeed:1}).from({pos:$e}).to({pos:Ft}).start()}).on("panstart",lt=>{(lt==null?void 0:lt.axis)===(be?"y":"x")&&s$a(ge,"is-dragging")}).on("panend",()=>{s$9(ge,"is-dragging")}).on("end",lt=>{var mt,vt;const{srcEvent:wt,axis:xt,velocityX:St,velocityY:rt,currentTouch:bt}=lt;if(bt.length>0||!re)return;const pt=wt.target,Tt=pt&&n$a(pt)&&!(xt==="x"&&!be);be&&e$6(wt)&&!lt.axis&&it(wt);const Ft=Be.length,Ot=we("dragFree");if(!Ft)return;const Ht=we("vertical")?rt:St;let Zt=re!=null&&re.isRunning()?re.getEndValues().pos:$e;const an=_e&&!be?1:-1;if(Tt||(Zt+=Ht*(Ot?5:1)*an),!pe&&(Ht*an<=0&&Zt<Le||Ht*an>=0&&Zt>Ve)){let on=0;return Math.abs(Ht)>0&&(on=2*Math.abs(Ht),on=Math.min(.3*At(),on)),Zt=t$8(Le+-1*on,Zt,Ve+on),void re.spring({clamp:!0,mass:1,tension:380,friction:25,velocity:-1*Ht,restDelta:1,restSpeed:1}).from({pos:$e}).to({pos:Zt}).start()}if(Ot||!((mt=ve.Autoscroll)===null||mt===void 0)&&mt.isEnabled())return void(Math.abs(Ht)>10?re.spring({clamp:!0,mass:1,tension:150,friction:25,velocity:-1*Ht,restDelta:1,restSpeed:1}).from({pos:$e}).to({pos:Zt}).start():re.isRunning()||ye||(ye=!0,Ie("settle")));if(!Ot&&!(!((vt=ve.Autoscroll)===null||vt===void 0)&&vt.isEnabled())&&(!lt.offsetX&&!lt.offsetY||xt==="y"&&!be||xt==="x"&&be))return void Mt(Ee,{transition:"tween"});let rn=yt(Zt);Math.abs(Ht)>10&&rn===Ee&&(rn+=Ht>0?_e&&!be?1:-1:_e&&!be?-1:1),Mt(rn,{transition:"tween",tween:{velocity:-1*Ht}})}).init())}(),s$8(ge,"is-draggable",!!ae&&Be.length>0)}function We(Qe="*"){var lt;const mt=[];for(const vt of ze)(Qe==="*"||vt.class&&vt.class.includes(Qe)||vt.el&&(!((lt=vt.el)===null||lt===void 0)&<.classList.contains(Qe)))&&mt.push(vt);ie=void 0,Te=Qe,Re=[...mt]}function Ge(){if(!re)return;const Qe=yt(re!=null&&re.isRunning()?re.getEndValues().pos:$e);Qe!==Ee&&(ie=Ee,Ee=Qe,kt(),Ke(),et(),Ie("change",Ee,ie))}function Ke(){var Qe,lt;if(!me)return;for(const wt of me.querySelectorAll("[data-carousel-index]"))wt.innerHTML=Ee+"";for(const wt of me.querySelectorAll("[data-carousel-page]"))wt.innerHTML=Ee+1+"";for(const wt of me.querySelectorAll("[data-carousel-pages]"))wt.innerHTML=Be.length+"";for(const wt of me.querySelectorAll("[data-carousel-go-to]"))parseInt(((Qe=wt.dataset)===null||Qe===void 0?void 0:Qe.carouselGoTo)||"-1",10)===Ee?wt.setAttribute("aria-current","true"):wt.removeAttribute("aria-current");for(const wt of me.querySelectorAll("[data-carousel-go-prev]"))wt.toggleAttribute("aria-disabled",!Rt()),Rt()?wt.removeAttribute("tabindex"):wt.setAttribute("tabindex","-1");for(const wt of me.querySelectorAll("[data-carousel-go-next]"))wt.toggleAttribute("aria-disabled",!Xt()),Xt()?wt.removeAttribute("tabindex"):wt.setAttribute("tabindex","-1");let mt=!1;const vt=(lt=Be[Ee])===null||lt===void 0?void 0:lt.slides[0];vt&&(vt.downloadSrc||vt.type==="image"&&vt.src)&&(mt=!0);for(const wt of me.querySelectorAll("[data-carousel-download]"))wt.toggleAttribute("aria-disabled",!mt)}function et(Qe){var lt;Qe||(Qe=(lt=Be[Ee])===null||lt===void 0?void 0:lt.slides[0]);const mt=Qe==null?void 0:Qe.el;if(mt)for(const vt of mt.querySelectorAll("[data-slide-index]"))vt.innerHTML=Qe.index+1+""}function yt(Qe){var lt,mt,vt;if(!Be.length)return 0;const wt=Pt();let xt=Qe;pe?xt-=Math.floor((Qe-((lt=Be[0])===null||lt===void 0?void 0:lt.pos))/wt)*wt||0:xt=t$8((mt=Be[0])===null||mt===void 0?void 0:mt.pos,Qe,(vt=Be[Be.length-1])===null||vt===void 0?void 0:vt.pos);const St=new Map;let rt=0;for(const pt of Be){const Tt=Math.abs(pt.pos-xt),Ft=Math.abs(pt.pos-xt-wt),Ot=Math.abs(pt.pos-xt+wt),Ht=Math.min(Tt,Ft,Ot);St.set(rt,Ht),rt++}const bt=St.size>0?[...St.entries()].reduce((pt,Tt)=>Tt[1]<pt[1]?Tt:pt):[Ee,0];return parseInt(bt[0])}function Et(){return Me}function At(){let Qe=0;return ge&&(ge.childElementCount||(ge.style.display="grid"),Qe=ge.getBoundingClientRect()[ke]||0,ge.style.display=""),Qe}function Pt(Qe=!0){return Re.length?Re.reduce((lt,mt)=>lt+mt.dim,0)+(Re.length-(pe&&Qe?0:1))*Me:0}function _t(Qe){const lt=Pt(),mt=At();if(!lt||!ge||!mt)return[];const vt=[];Qe=Qe===void 0?$e:Qe,pe&&(Qe-=Math.floor(Qe/lt)*lt||0);let wt=0,xt=0;if(fe){const rt=ge.getBoundingClientRect();wt=Math.abs(rt[be?"top":"left"]),xt=Math.abs(window[be?"innerHeight":"innerWidth"]-rt[be?"bottom":"right"])}let St=0;for(let rt of Re){const bt=(pt=0)=>{vt.indexOf(rt)>-1||(rt.pos=St-Qe+pt||0,rt.offset+pt>Qe-rt.dim-wt+.51&&rt.offset+pt<Qe+mt+xt-.51&&vt.push(rt))};rt.offset=St,pe&&(bt(lt),bt(-1*lt)),bt(),St+=rt.dim+Me}return vt}function Ze(Qe,lt){const mt=[];for(const vt of Array.isArray(Qe)?Qe:[Qe]){const wt=at(Object.assign(Object.assign({},vt),{isVirtual:!0}));wt.el||(wt.el=document.createElement("div")),Ie("createSlide",wt),mt.push(wt)}ze.splice(lt===void 0?ze.length:lt,0,...mt),tt();for(const vt of mt)Ie("addSlide",vt),dt(vt);return We(Te),mt}function at(Qe){return(t$9(Qe)||Qe instanceof HTMLElement)&&(Qe={html:Qe}),Object.assign({index:-1,el:void 0,class:"",isVirtual:!0,dim:0,pos:0,offset:0,html:"",src:""},Qe)}function dt(Qe){let lt=Qe.el;if(!Qe||!lt)return;const mt=Qe.html?Qe.html instanceof HTMLElement?Qe.html:e$9(Qe.html):void 0;mt&&(s$a(mt,"f-html"),Qe.htmlEl=mt,s$a(lt,"has-html"),lt.append(mt),Ie("contentReady",Qe))}function ct(Qe){if(!ge||!Qe)return;let lt=Qe.el;if(lt){if(lt.setAttribute("index",Qe.index+""),lt.parentElement!==ge){let mt;s$a(lt,ue.classes.slide),s$a(lt,Qe.class),kt(Qe);for(const vt of ze)if(vt.index>Qe.index){mt=vt.el;break}ge.insertBefore(lt,mt&&ge.contains(mt)?mt:null),Ie("attachSlideEl",Qe)}return et(Qe),lt}}function ht(Qe){const lt=Qe==null?void 0:Qe.el;lt&&(lt.remove(),Je(lt),Ie("detachSlideEl",Qe))}function tt(){for(let Qe=0;Qe<ze.length;Qe++){const lt=ze[Qe],mt=lt.el;mt&&(lt.index!==Qe&&Je(mt),mt.setAttribute("index",`${Qe}`)),lt.index=Qe}}function Ye(){var Qe,lt,mt,vt,wt;if(!me||!ge)return;_e=we("rtl"),be=we("vertical"),ke=be?"height":"width";const xt=we("classes");if(s$8(me,xt.isLTR,!_e),s$8(me,xt.isRTL,_e),s$8(me,xt.isHorizontal,!be),s$8(me,xt.isVertical,be),s$8(me,xt.hasAdaptiveHeight,we("adaptiveHeight")),!At())return;const St=window.getComputedStyle(ge);fe=St.getPropertyValue("overflow-"+(be?"y":"x"))==="visible",Me=ge&&parseFloat(St.getPropertyValue("--f-carousel-gap"))||0;const rt=function(){let bt=0;if(ge){let pt=document.createElement("div");pt.style.display="block",s$a(pt,ue.classes.slide),ge.appendChild(pt),bt=pt.getBoundingClientRect()[ke],pt.remove(),pt=void 0}return bt}();for(const bt of Re){const pt=bt.el;let Tt=0;if(!bt.isVirtual&&pt&&n$b(pt)){let Ft=!1;pt.parentElement&&pt.parentElement===ge||(ge.appendChild(pt),Ft=!0),Tt=pt.getBoundingClientRect()[ke],Ft&&((Qe=pt.parentElement)===null||Qe===void 0||Qe.removeChild(pt))}else Tt=rt;bt.dim=Tt}if(pe=!1,we("infinite")){pe=!0;const bt=Pt();let pt=At();if(fe){const Tt=ge.getBoundingClientRect();pt+=Tt.left,pt+=Tt.right-Tt.width}for(let Tt=0;Tt<Re.length;Tt++){const Ft=((lt=Re[Tt])===null||lt===void 0?void 0:lt.dim)+Me;if(bt-Ft<pt&&bt-Ft-pt<Ft){pe=!1;break}}}(function(){var bt;if(!me)return;const pt=At(),Tt=Pt(!1);let Ft=we("slidesPerPage");Ft=Ft==="auto"?1/0:parseFloat(Ft+""),Be=[];let Ot=0,Ht=0;for(const Ct of Re)(!Be.length||Ot+Ct.dim-pt>.05||Ht>=Ft)&&(Be.push({index:Be.length,slides:[],dim:0,offset:0,pos:0}),Ot=0,Ht=0),(bt=Be[Be.length-1])===null||bt===void 0||bt.slides.push(Ct),Ot+=Ct.dim+Me,Ht++;const Zt=we("center"),an=we("fill");let rn=0;for(const Ct of Be){Ct.dim=(Ct.slides.length-1)*Me;for(const Nt of Ct.slides)Ct.dim+=Nt.dim;Ct.offset=rn,Ct.pos=rn,Zt!==!1&&(Ct.pos-=.5*(pt-Ct.dim)),an&&!pe&&Tt>pt&&(Ct.pos=t$8(0,Ct.pos,Tt-pt)),rn+=Ct.dim+Me}const on=[];let Bt;for(const Ct of Be){const Nt=Object.assign({},Ct);Bt&&Math.abs(Nt.pos-Bt.pos)<.1?(Bt.dim+=Nt.dim,Bt.slides=[...Bt.slides,...Nt.slides]):(Bt=Nt,Nt.index=on.length,on.push(Nt))}Be=on,Ee=t$8(0,Ee,Be.length-1)})(),Le=((mt=Be[0])===null||mt===void 0?void 0:mt.pos)||0,Ve=((vt=Be[Be.length-1])===null||vt===void 0?void 0:vt.pos)||0,ce===0?function(){var bt;ie=void 0,Ee=we("initialPage");const pt=we("initialSlide")||void 0;pt!==void 0&&(Ee=It.getPageIndex(pt)||0),Ee=t$8(0,Ee,Be.length-1),$e=((bt=Be[Ee])===null||bt===void 0?void 0:bt.pos)||0,Se=$e}():Se=((wt=Be[Ee||0])===null||wt===void 0?void 0:wt.pos)||0,Ie("refresh"),Ke()}function Je(Qe){if(!Qe||!n$b(Qe))return;const lt=parseInt(Qe.getAttribute("index")||"-1");let mt="";for(const wt of Array.from(Qe.classList)){const xt=wt.match(/^f-(\w+)(Out|In)$/);xt&&xt[1]&&(mt=xt[1]+"")}if(!Qe||!mt)return;const vt=[`f-${mt}Out`,`f-${mt}In`,"to-prev","to-next","from-prev","from-next"];Qe.removeEventListener("animationend",ut),s$9(Qe,vt.join(" ")),Oe.delete(lt)}function nt(){if(!ge)return;const Qe=Oe.size>0;for(const lt of Re)Je(lt.el);Oe.clear(),Qe&&Lt()}function ut(Qe){var lt;((lt=Qe.animationName)===null||lt===void 0?void 0:lt.substring(0,2))==="f-"&&(Je(Qe.target),Oe.size||(s$9(me,"in-transition"),!ye&&Math.abs(It.getPosition(!0)-Se)<.5&&(ye=!0,Ie("settle"))),Lt())}function it(Qe){var lt;if(Qe.defaultPrevented)return;const mt=Qe.composedPath()[0];if(mt.closest("[data-carousel-go-prev]"))return m$3(Qe),void It.prev();if(mt.closest("[data-carousel-go-next]"))return m$3(Qe),void It.next();const vt=mt.closest("[data-carousel-go-to]");if(vt)return m$3(Qe),void It.goTo(parseFloat(vt.dataset.carouselGoTo||"")||0);if(mt.closest("[data-carousel-download]")){m$3(Qe);const wt=(lt=Be[Ee])===null||lt===void 0?void 0:lt.slides[0];if(wt&&(wt.downloadSrc||wt.type==="image"&&wt.src)){const xt=wt.downloadFilename,St=document.createElement("a"),rt=wt.downloadSrc||wt.src||"";St.href=rt,St.target="_blank",St.download=xt||rt,St.click()}}else Ie("click",Qe)}function st(Qe){var lt;const mt=Qe.el;mt&&((lt=mt.querySelector(".f-spinner"))===null||lt===void 0||lt.remove())}function $t(Qe){var lt;const mt=Qe.el;mt&&((lt=mt.querySelector(".f-html.is-error"))===null||lt===void 0||lt.remove(),s$9(mt,"has-error"))}function kt(Qe){var lt;Qe||(Qe=(lt=Be[Ee])===null||lt===void 0?void 0:lt.slides[0]);const mt=Qe==null?void 0:Qe.el;if(!mt)return;let vt=we("formatCaption",Qe);vt===void 0&&(vt=Qe.caption),vt=vt||"";const wt=we("captionEl");if(wt&&wt instanceof HTMLElement){if(Qe.index!==Ee)return;if(t$9(vt)&&(wt.innerHTML=Ce(vt+"")),vt instanceof HTMLElement){if(vt.parentElement===wt)return;wt.innerHTML="",vt.parentElement&&(vt=vt.cloneNode(!0)),wt.append(vt)}return}if(!vt)return;let xt=Qe.captionEl||mt.querySelector(".f-caption");!xt&&vt instanceof HTMLElement&&vt.classList.contains("f-caption")&&(xt=vt),xt||(xt=document.createElement("div"),s$a(xt,"f-caption"),t$9(vt)?xt.innerHTML=Ce(vt+""):vt instanceof HTMLElement&&(vt.parentElement&&(vt=vt.cloneNode(!0)),xt.append(vt)));const St=`f-caption-${y$4}_${Qe.index}`;xt.setAttribute("id",St),xt.dataset.selectable="true",s$a(mt,"has-caption"),mt.setAttribute("aria-labelledby",St),Qe.captionEl=xt,mt.insertAdjacentElement("beforeend",xt)}function Mt(Qe,lt={}){var mt,vt;let{transition:wt,tween:xt}=Object.assign({transition:ue.transition,tween:ue.tween},lt||{});if(!me||!re)return;const St=Be.length;if(!St||function(pt,Tt){var Ft,Ot,Ht,Zt;if(!(me&&re&&Tt&&t$9(Tt)&&Tt!=="tween")||((Ft=Be[Ee])===null||Ft===void 0?void 0:Ft.slides.length)>1)return!1;const an=Be.length;let rn=pt>Ee?1:-1;pt=pe?(pt%an+an)%an:t$8(0,pt,an-1),_e&&(rn*=-1);const on=(Ot=Be[Ee])===null||Ot===void 0?void 0:Ot.slides[0],Bt=on==null?void 0:on.index,Ct=(Ht=Be[pt])===null||Ht===void 0?void 0:Ht.slides[0],Nt=Ct==null?void 0:Ct.index,Jt=(Zt=Be[pt])===null||Zt===void 0?void 0:Zt.pos;if(Nt===void 0||Bt===void 0||Bt===Nt||$e===Jt||Math.abs(At()-((Ct==null?void 0:Ct.dim)||0))>1)return!1;ye=!1,re.pause(),nt(),s$a(me,"in-transition"),$e=Se=Jt;const Yt=ct(on),sn=ct(Ct);return Ge(),Yt&&(Oe.add(Bt),Yt.style.transform="",Yt.addEventListener("animationend",ut),s$9(Yt,ue.classes.isSelected),Yt.inert=!1,s$a(Yt,`f-${Tt}Out to-${rn>0?"next":"prev"}`)),sn&&(Oe.add(Nt),sn.style.transform="",sn.addEventListener("animationend",ut),s$a(sn,ue.classes.isSelected),sn.inert=!1,s$a(sn,`f-${Tt}In from-${rn>0?"prev":"next"}`)),Lt(),!0}(Qe,wt))return;Qe=pe?(Qe%St+St)%St:t$8(0,Qe,St-1),Se=((mt=Be[Qe||0])===null||mt===void 0?void 0:mt.pos)||0;const bt=re.isRunning()?re.getEndValues().pos:$e;if(Math.abs(Se-bt)<1)return $e=Se,Ee!==Qe&&(kt(),ie=Ee,Ee=Qe,Ke(),et(),Ie("change",Ee,ie)),Lt(),void(ye||(ye=!0,Ie("settle")));if(re.pause(),nt(),pe){const pt=Pt(),Tt=Math.floor((bt-((vt=Be[0])===null||vt===void 0?void 0:vt.pos))/pt)||0,Ft=Se+Tt*pt;Se=[Ft+pt,Ft,Ft-pt].reduce(function(Ot,Ht){return Math.abs(Ht-bt)<Math.abs(Ot-bt)?Ht:Ot})}wt!==!1&&t$7(xt)?re.spring(r$5({},ue.tween,xt)).from({pos:$e}).to({pos:Se}).start():($e=Se,Ge(),Lt(),ye||(ye=!0,Ie("settle")))}function Dt(Qe){var lt;let mt=$e;if(pe&&Qe!==!0){const vt=Pt();mt-=(Math.floor(($e-((lt=Be[0])===null||lt===void 0?void 0:lt.pos)||0)/vt)||0)*vt}return mt}function Lt(){var Qe;if(!me||!ge)return;Pe=_t();const lt=new Set,mt=[],vt=Be[Ee],wt=ue.setTransform;let xt;for(const St of Re){const rt=Oe.has(St.index),bt=Pe.indexOf(St)>-1,pt=((Qe=vt==null?void 0:vt.slides)===null||Qe===void 0?void 0:Qe.indexOf(St))>-1;if(St.isVirtual&&!rt&&!bt)continue;let Tt=ct(St);if(Tt&&(mt.push(St),pt&<.add(Tt),we("adaptiveHeight")&&pt)){const Ft=(Tt.firstElementChild||Tt).getBoundingClientRect().height;xt=xt==null?Ft:Math.max(xt,Ft)}}ge&&xt&&(ge.style.height=`${xt}px`),[...e$4(ge,`.${ue.classes.slide}`)].forEach(St=>{s$8(St,ue.classes.isSelected,lt.has(St));const rt=ze[parseInt(St.getAttribute("index")||"-1")];if(!rt)return St.remove(),void Je(St);const bt=Oe.has(rt.index),pt=Pe.indexOf(rt)>-1;if(rt.isVirtual&&!bt&&!pt)return void ht(rt);if(St.inert=!pt,wt===!1)return;let Tt=rt.pos?Math.round(1e4*rt.pos)/1e4:0,Ft=0,Ot=0,Ht=0,Zt=0;bt||(Ft=be?0:_e?-1*Tt:Tt,Ot=be?Tt:0,Ht=t$5(Ft,0,rt.dim,0,100),Zt=t$5(Ot,0,rt.dim,0,100)),wt instanceof Function&&!bt?wt(It,rt,{x:Ft,y:Ot,xPercent:Ht,yPercent:Zt}):St.style.transform=Ft||Ot?`translate3d(${Ht}%, ${Zt}%,0)`:""}),Ie("render",mt)}function Gt(){me==null||me.removeEventListener("click",it),document.removeEventListener("mousemove",qe),Oe.clear(),oe==null||oe.disconnect(),oe=void 0;for(const Qe of ze){let lt=Qe.el;lt&&n$b(lt)&&(Qe.state=void 0,st(Qe),$t(Qe),Qe.isVirtual?(ht(Qe),Qe.el=void 0):(Je(lt),lt.style.transform="",ge&&!ge.contains(lt)&&ge.appendChild(lt)))}for(const Qe of Object.values(ve))Qe==null||Qe.destroy();ve={},ae==null||ae.destroy(),ae=void 0,re==null||re.destroy(),re=void 0;for(const[Qe,lt]of Object.entries(ue.classes||{}))Qe!=="container"&&s$9(me,lt);s$9(ge,"is-draggable")}function Rt(){return pe||Ee>0}function Xt(){return pe||Ee<Be.length-1}const It={add:function(Qe,lt){var mt;let vt=$e;const wt=Ee,xt=Pt(),St=re!=null&&re.isRunning()?re.getEndValues().pos:$e,rt=xt&&Math.floor((St-(((mt=Be[0])===null||mt===void 0?void 0:mt.pos)||0))/xt)||0;return Ze(Qe,lt),We(Te),Ye(),re&&xt&&(wt===Ee&&(vt-=rt*xt),vt===Se?$e=Se:re.spring({clamp:!0,mass:1,tension:300,friction:25,restDelta:1,restSpeed:1}).from({pos:vt}).to({pos:Se}).start()),Lt(),It},canGoPrev:Rt,canGoNext:Xt,destroy:function(){return Ie("destroy"),window.removeEventListener("resize",Ue),Gt(),Fe.clear(),me=null,Be=[],ze=[],ue=Object.assign({},h$5),ve={},Re=[],le=void 0,Te="*",ce=2,It},emit:Ie,filter:function(Qe="*"){return We(Qe),Ye(),$e=t$8(Le,$e,Ve),Lt(),Ie("filter",Qe),It},getContainer:function(){return me},getGapDim:Et,getGestures:function(){return ae},getLastMouseMove:function(){return b$3},getOption:function(Qe){return we(Qe)},getOptions:function(){return ue},getPage:function(){return Be[Ee]},getPageIndex:function(Qe){if(Qe!==void 0){for(const lt of Be||[])for(const mt of lt.slides)if(mt.index===Qe)return lt.index;return-1}return Ee},getPageIndexFromPosition:yt,getPageProgress:function(Qe,lt){var mt;Qe===void 0&&(Qe=Ee);const vt=Be[Qe];if(!vt)return Qe>Ee?-1:1;const wt=Pt(),xt=Et();let St=vt.pos,rt=Dt();if(pe&<!==!0){const bt=Math.floor((rt-((mt=Be[0])===null||mt===void 0?void 0:mt.pos))/wt)||0;rt-=bt*wt,St=[St+wt,St,St-wt].reduce(function(pt,Tt){return Math.abs(Tt-rt)<Math.abs(pt-rt)?Tt:pt})}return(rt-St)/(vt.dim+xt)||0},getPageVisibility:function(Qe){var lt;Qe===void 0&&(Qe=Ee);const mt=Be[Qe];if(!mt)return Qe>Ee?-1:1;const vt=Dt(),wt=At();let xt=mt.pos;if(pe){const St=Pt(),rt=xt+(Math.floor((vt-((lt=Be[0])===null||lt===void 0?void 0:lt.pos))/St)||0)*St;xt=[rt+St,rt,rt-St].reduce(function(bt,pt){return Math.abs(pt-vt)<Math.abs(bt-vt)?pt:bt})}return xt>vt&&xt+mt.dim<vt+wt?1:xt<vt?(xt+mt.dim-vt)/mt.dim||0:xt+mt.dim>vt+wt&&(vt+wt-xt)/mt.dim||0},getPages:function(){return Be},getPlugins:function(){return ve},getPosition:Dt,getSlides:function(){return ze},getState:function(){return ce},getTotalSlideDim:Pt,getTween:function(){return re},getViewport:function(){return ge},getViewportDim:At,getVisibleSlides:function(Qe){return Qe===void 0?Pe:_t(Qe)},goTo:Mt,hasNavigated:function(){return ie!==void 0},hideError:$t,hideLoading:st,init:function(){if(!ee||!n$b(ee))throw new Error("No Element found");return ce!==0&&(Gt(),ce=0),me=ee,de=te,window.removeEventListener("resize",Ue),de.breakpoints&&window.addEventListener("resize",Ue),Ue(),It},isInfinite:function(){return pe},isInTransition:function(){return Oe.size>0},isRTL:function(){return _e},isSettled:function(){return ye},isVertical:function(){return be},localize:function(Qe,lt=[]){return Ce(Qe,lt)},next:function(Qe={}){return Mt(Ee+1,Qe),It},off:function(Qe,lt){for(const mt of Qe instanceof Array?Qe:[Qe])Fe.has(mt)&&Fe.set(mt,Fe.get(mt).filter(vt=>vt!==lt));return It},on:function(Qe,lt){for(const mt of Qe instanceof Array?Qe:[Qe])Fe.set(mt,[...Fe.get(mt)||[],lt]);return It},prev:function(Qe={}){return Mt(Ee-1,Qe),It},reInit:function(Qe={},lt={}){return Gt(),ce=0,le=void 0,Te="*",te=Qe,de=Qe,ne=lt,Ue(),It},remove:function(Qe){Qe===void 0&&(Qe=ze.length-1);const lt=ze[Qe];return lt&&(Ie("removeSlide",lt),lt.el&&(Je(lt.el),lt.el.remove(),lt.el=void 0),ze.splice(Qe,1),We(Te),Ye(),$e=t$8(Le,$e,Ve),Lt()),It},setPosition:function(Qe){$e=Qe,Ge(),Lt()},showError:function(Qe,lt){st(Qe),$t(Qe);const mt=Qe.el;if(mt){const vt=document.createElement("div");s$a(vt,"f-html"),s$a(vt,"is-error"),vt.innerHTML=Ce(lt||"<p>{{ERROR}}</p>"),Qe.htmlEl=vt,s$a(mt,"has-html"),s$a(mt,"has-error"),mt.insertAdjacentElement("afterbegin",vt),Ie("contentReady",Qe)}return It},showLoading:function(Qe){const lt=Qe.el,mt=lt==null?void 0:lt.querySelector(".f-spinner");if(!lt||mt)return It;const vt=we("spinnerTpl"),wt=e$9(vt);return wt&&(s$a(wt,"f-spinner"),lt.insertAdjacentElement("beforeend",wt)),It},version:"6.1.3"};return It};E$3.l10n={en_EN:o$7},E$3.getDefaults=()=>h$5;/*! License details at fancyapps.com/license */const t$4=(ee=!0,te="--f-scrollbar-compensate",ne="--f-body-margin",ae="hide-scrollbar")=>{const re=document,oe=re.body,ie=re.documentElement;if(ee){if(oe.classList.contains(ae))return;let le=window.innerWidth-ie.getBoundingClientRect().width;le<0&&(le=0),ie.style.setProperty(te,`${le}px`);const ce=parseFloat(window.getComputedStyle(oe).marginRight);ce&&oe.style.setProperty(ne,`${ce}px`),oe.classList.add(ae)}else oe.classList.remove(ae),oe.style.setProperty(ne,""),re.documentElement.style.setProperty(te,"")};/*! License details at fancyapps.com/license */function e$3(){return!(typeof window>"u"||!window.document||!window.document.createElement)}/*! License details at fancyapps.com/license */const n$7=function(ee="",te="",ne=""){return ee.split(te).join(ne)};/*! License details at fancyapps.com/license */const a$7={tpl:ee=>`<img class="f-panzoom__content"
|
|
15
15
|
${ee.srcset?'data-lazy-srcset="{{srcset}}"':""}
|
|
16
16
|
${ee.sizes?'data-lazy-sizes="{{sizes}}"':""}
|
|
17
17
|
data-lazy-src="{{src}}" alt="{{alt}}" />`},s$7=()=>{let ee;function te(ue,ve){const me=ee==null?void 0:ee.getOptions().Zoomable;let ge=(t$7(me)?Object.assign(Object.assign({},a$7),me):a$7)[ue];return ge&&typeof ge=="function"&&ve?ge(ve):ge}function ne(){ee&&ee.getOptions().Zoomable!==!1&&(ee.on("addSlide",oe),ee.on("removeSlide",ie),ee.on("attachSlideEl",le),ee.on("click",re),ee.on("change",ae),ee.on("ready",ae))}function ae(){ce();const ue=(ee==null?void 0:ee.getVisibleSlides())||[];if(ue.length>1||(ee==null?void 0:ee.getOption("transition"))==="slide")for(const ve of ue){const me=ve.panzoomRef;me&&((ee==null?void 0:ee.getPage().slides)||[]).indexOf(ve)<0&&me.execute(v$6.ZoomTo,Object.assign({},me.getStartPosition()))}}function re(ue,ve){const me=ve.target;me&&!ve.defaultPrevented&&me.dataset.panzoomAction&&de(me.dataset.panzoomAction)}function oe(ue,ve){const me=ve.el;if(!ee||!me||ve.panzoomRef)return;const ge=ve.src||ve.lazySrc||"",fe=ve.alt||ve.caption||`Image #${ve.index}`,pe=ve.srcset||ve.lazySrcset||"",_e=ve.sizes||ve.lazySizes||"";if(ge&&t$9(ge)&&!ve.html&&(!ve.type||ve.type==="image")){ve.type="image",ve.thumbSrc=ve.thumbSrc||ge;let Ee=te("tpl",ve);Ee=n$7(Ee,"{{src}}",ge+""),Ee=n$7(Ee,"{{srcset}}",pe+""),Ee=n$7(Ee,"{{sizes}}",_e+""),me.insertAdjacentHTML("afterbegin",Ee)}const be=me.querySelector(".f-panzoom__content");if(!be)return;be.setAttribute("alt",fe+"");const ke=ve.width&&ve.width!=="auto"?parseFloat(ve.width+""):"auto",$e=ve.height&&ve.height!=="auto"?parseFloat(ve.height+""):"auto",ye=E$4(me,Object.assign({width:ke,height:$e,classes:{container:"f-zoomable"},event:()=>ee==null?void 0:ee.getLastMouseMove(),spinnerTpl:()=>(ee==null?void 0:ee.getOption("spinnerTpl"))||""},te("Panzoom")));ye.on("*",(Ee,Se,...Le)=>{ee&&(Se==="loading"&&(ve.state=0),Se==="loaded"&&(ve.state=1),Se==="error"&&(ve.state=2,ee==null||ee.showError(ve,"{{IMAGE_ERROR}}")),ee.emit(`panzoom:${Se}`,ve,...Le),Se==="ready"&&ee.emit("contentReady",ve),ve.index===(ee==null?void 0:ee.getPageIndex())&&ce())}),ve.panzoomRef=ye}function ie(ue,ve){ve.panzoomRef&&(ve.panzoomRef.destroy(),ve.panzoomRef=void 0)}function le(ue,ve){const me=ve.panzoomRef;if(me)switch(me.getState()){case 0:me.init();break;case 3:me.execute(v$6.ZoomTo,Object.assign(Object.assign({},me.getStartPosition()),{velocity:0}))}}function ce(){var ue,ve;const me=(ee==null?void 0:ee.getContainer())||void 0,ge=(ve=(ue=ee==null?void 0:ee.getPage())===null||ue===void 0?void 0:ue.slides[0])===null||ve===void 0?void 0:ve.panzoomRef;if(me)if(ge)ge.updateControls(me);else for(const fe of me.querySelectorAll("[data-panzoom-action]")||[])fe.setAttribute("aria-disabled",""),fe.setAttribute("tabindex","-1")}function de(ue,...ve){var me;(me=ee==null?void 0:ee.getPage().slides[0].panzoomRef)===null||me===void 0||me.execute(ue,...ve)}return{init:function(ue){ee=ue,ee.on("initPlugins",ne)},destroy:function(){if(ee){ee.off("initPlugins",ne),ee.off("addSlide",oe),ee.off("removeSlide",ie),ee.off("attachSlideEl",le),ee.off("click",re),ee.off("change",ae),ee.off("ready",ae);for(const ue of ee.getSlides())ie(0,ue)}ee=void 0},execute:de}};/*! License details at fancyapps.com/license */const e$2={syncOnChange:!1,syncOnClick:!0,syncOnHover:!1},i$8=()=>{let ee,te;function ne(){const ge=ee==null?void 0:ee.getOptions().Sync;return t$7(ge)?Object.assign(Object.assign({},e$2),ge):e$2}function ae(ge){var fe,pe,_e;ee&&ge&&(te=ge,ee.getOptions().classes=Object.assign(Object.assign({},ee.getOptions().classes),{isSelected:""}),ee.getOptions().initialSlide=((pe=(fe=te.getPage())===null||fe===void 0?void 0:fe.slides[0])===null||pe===void 0?void 0:pe.index)||0,ne().syncOnChange&&ee.on("change",ie),ne().syncOnClick&&ee.on("click",ce),ne().syncOnHover&&((_e=ee.getViewport())===null||_e===void 0||_e.addEventListener("mouseover",de)),function(){!ee||!te||(ee.on("ready",oe),ee.on("refresh",ue),te.on("change",le),te.on("filter",ve))}())}function re(){const ge=ne().target;ee&&ge&&ae(ge)}function oe(){me()}function ie(){var ge;if(ee&&te){const fe=((ge=ee.getPage())===null||ge===void 0?void 0:ge.slides)||[],pe=te.getPageIndex(fe[0].index||0);pe>-1&&te.goTo(pe,ee.hasNavigated()?void 0:{tween:!1,transition:!1}),me()}}function le(){var ge;if(ee&&te){const fe=ee.getPageIndex(((ge=te.getPage())===null||ge===void 0?void 0:ge.slides[0].index)||0);fe>-1&&ee.goTo(fe,te.hasNavigated()?void 0:{tween:!1,transition:!1}),me()}}function ce(ge,fe){var pe;if(!ee||!te||!((pe=ee.getTween())===null||pe===void 0)&&pe.isRunning())return;const _e=ee==null?void 0:ee.getOptions().classes.slide;if(!_e)return;const be=_e?fe.target.closest(`.${_e}`):null;if(be){const ke=parseInt(be.getAttribute("index")||"")||0,$e=te.getPageIndex(ke);te.goTo($e)}}function de(ge){ee&&ce(0,ge)}function ue(){var ge;if(ee&&te){const fe=ee.getPageIndex(((ge=te.getPage())===null||ge===void 0?void 0:ge.slides[0].index)||0);fe>-1&&ee.goTo(fe,{tween:!1,transition:!1}),me()}}function ve(ge,fe){ee&&te&&(ee.filter(fe),le())}function me(){var ge,fe,pe;if(!te)return;const _e=((fe=(ge=te.getPage())===null||ge===void 0?void 0:ge.slides[0])===null||fe===void 0?void 0:fe.index)||0;for(const be of(ee==null?void 0:ee.getSlides())||[])(pe=be.el)===null||pe===void 0||pe.classList.toggle("is-selected",be.index===_e)}return{init:function(ge){ee=ge,ee.on("initSlides",re)},destroy:function(){var ge;ee==null||ee.off("ready",oe),ee==null||ee.off("refresh",ue),ee==null||ee.off("change",ie),ee==null||ee.off("click",ce),(ge=ee==null?void 0:ee.getViewport())===null||ge===void 0||ge.removeEventListener("mouseover",de),te==null||te.off("change",le),te==null||te.off("filter",ve),te=void 0,ee==null||ee.off("initSlides",re),ee=void 0},getTarget:function(){return te}}};/*! License details at fancyapps.com/license */const s$6={showLoading:!0,preload:1},n$6="is-lazyloading",o$6="is-lazyloaded",l$7="has-lazyerror",i$7=()=>{let ee;function te(){const re=ee==null?void 0:ee.getOptions().Lazyload;return t$7(re)?Object.assign(Object.assign({},s$6),re):s$6}function ne(re){var oe;const ie=re.el;if(!ie)return;const le="[data-lazy-src],[data-lazy-srcset],[data-lazy-bg]",ce=Array.from(ie.querySelectorAll(le));ie.matches(le)&&ce.push(ie);for(const de of ce){const ue=de.dataset.lazySrc,ve=de.dataset.lazySrcset,me=de.dataset.lazySizes,ge=de.dataset.lazyBg,fe=(de instanceof HTMLImageElement||de instanceof HTMLSourceElement)&&(ue||ve),pe=de instanceof HTMLElement&≥if(!fe&&!pe)continue;const _e=ue||ve||ge;if(_e){if(fe&&_e){const be=(oe=de.parentElement)===null||oe===void 0?void 0:oe.classList.contains("f-panzoom__wrapper");te().showLoading&&(ee==null||ee.showLoading(re)),de.addEventListener("load",()=>{ee==null||ee.hideLoading(re),s$9(de,l$7),de instanceof HTMLImageElement?de.decode().then(()=>{s$9(de,n$6),s$a(de,o$6)}):(s$9(de,n$6),s$a(de,o$6)),be||ee==null||ee.emit("lazyLoad:loaded",re,de,_e)}),de.addEventListener("error",()=>{ee==null||ee.hideLoading(re),s$9(de,n$6),s$a(de,l$7),be||ee==null||ee.emit("lazyLoad:error",re,de,_e)}),de.classList.add("f-lazyload"),de.classList.add(n$6),be||ee==null||ee.emit("lazyLoad:load",re,de,_e),ue&&(de.src=ue),ve&&(de.srcset=ve),me&&(de.sizes=me)}else pe&&(document.body.contains(de)||(document.createElement("img").src=ge),de.style.backgroundImage=`url('${ge}')`);delete de.dataset.lazySrc,delete de.dataset.lazySrcset,delete de.dataset.lazySizes,delete de.dataset.lazyBg}}}function ae(){if(!ee)return;const re=[...ee.getVisibleSlides()],oe=te().preload;if(oe>0){const ie=ee.getPosition(),le=ee.getViewportDim();re.push(...ee.getVisibleSlides(ie+le*oe),...ee.getVisibleSlides(ie-le*oe))}for(const ie of re)ne(ie)}return{init:function(re){ee=re,ee.on("render",ae)},destroy:function(){ee==null||ee.off("render",ae),ee=void 0}}};/*! License details at fancyapps.com/license */const r$4='<svg width="24" height="24" viewBox="0 0 24 24" tabindex="-1">',i$6="</svg>",s$5={prevTpl:r$4+'<path d="M15 3l-9 9 9 9"></path>'+i$6,nextTpl:r$4+'<path d="M9 3l9 9-9 9"></path>'+i$6},l$6=()=>{let ee,te,ne;function ae(){const le=ee==null?void 0:ee.getOptions().Arrows;return t$7(le)?Object.assign(Object.assign({},s$5),le):s$5}function re(le){if(!ee)return;const ce=`<button data-carousel-go-${le} tabindex="0" class="f-button is-arrow is-${le}" title="{{${le.toUpperCase()}}}">`+ae()[`${le}Tpl`]+"</button",de=e$9(ee.localize(ce))||void 0;return de&&s$a(de,ae()[`${le}Class`]),de}function oe(){var le;te==null||te.remove(),te=void 0,ne==null||ne.remove(),ne=void 0,(le=ee==null?void 0:ee.getContainer())===null||le===void 0||le.classList.remove("has-arrows")}function ie(){ee&&ee.getOptions().Arrows!==!1&&ee.getPages().length>1?(function(){if(!ee)return;const le=ee.getViewport();le&&(te||(te=re("prev"),te&&le.insertAdjacentElement("beforebegin",te)),ne||(ne=re("next"),ne&&le.insertAdjacentElement("afterend",ne)),s$8(ee.getContainer(),"has-arrows",!(!te&&!ne)))}(),ee&&(te==null||te.toggleAttribute("aria-disabled",!ee.canGoPrev()),ne==null||ne.toggleAttribute("aria-disabled",!ee.canGoNext()))):oe()}return{init:function(le){ee=le.on(["change","refresh"],ie)},destroy:function(){oe(),ee==null||ee.off(["change","refresh"],ie),ee=void 0}}};/*! License details at fancyapps.com/license */const t$3='<circle cx="11" cy="11" r="7.5"/><path d="m21 21-4.35-4.35M8 11h6"/>',M$1='<g><line x1="11" y1="8" x2="11" y2="14"></line></g>'+t$3,o$5={moveLeft:["moveLeft","MOVE_LEFT",'<path d="M5 12h14M5 12l6 6M5 12l6-6"/>'],moveRight:["moveRight","MOVE_RIGHT",'<path d="M5 12h14M13 18l6-6M13 6l6 6"/>'],moveUp:["moveUp","MOVE_UP",'<path d="M12 5v14M18 11l-6-6M6 11l6-6"/>'],moveDown:["moveDown","MOVE_DOWN",'<path d="M12 5v14M18 13l-6 6M6 13l6 6"/>'],zoomOut:["zoomOut","ZOOM_OUT",t$3],zoomIn:["zoomIn","ZOOM_IN",M$1],toggleFull:["toggleFull","TOGGLE_FULL",M$1],iterateZoom:["iterateZoom","ITERATE_ZOOM",M$1],toggle1to1:["toggleFull","TOGGLE_FULL",'<path d="M3.51 3.07c5.74.02 11.48-.02 17.22.02 1.37.1 2.34 1.64 2.18 3.13 0 4.08.02 8.16 0 12.23-.1 1.54-1.47 2.64-2.79 2.46-5.61-.01-11.24.02-16.86-.01-1.36-.12-2.33-1.65-2.17-3.14 0-4.07-.02-8.16 0-12.23.1-1.36 1.22-2.48 2.42-2.46Z"/><path d="M5.65 8.54h1.49v6.92m8.94-6.92h1.49v6.92M11.5 9.4v.02m0 5.18v0"/>'],rotateCCW:["rotateCCW","ROTATE_CCW",'<path d="M15 4.55a8 8 0 0 0-6 14.9M9 15v5H4M18.37 7.16v.01M13 19.94v.01M16.84 18.37v.01M19.37 15.1v.01M19.94 11v.01"/>'],rotateCW:["rotateCW","ROTATE_CW",'<path d="M9 4.55a8 8 0 0 1 6 14.9M15 15v5h5M5.63 7.16v.01M4.06 11v.01M4.63 15.1v.01M7.16 18.37v.01M11 19.94v.01"/>'],flipX:["flipX","FLIP_X",'<path d="M12 3v18M16 7v10h5L16 7M8 7v10H3L8 7"/>'],flipY:["flipY","FLIP_Y",'<path d="M3 12h18M7 16h10L7 21v-5M7 8h10L7 3v5"/>'],reset:["reset","RESET",'<path d="M20 11A8.1 8.1 0 0 0 4.5 9M4 5v4h4M4 13a8.1 8.1 0 0 0 15.5 2m.5 4v-4h-4"/>'],toggleFS:["toggleFS","TOGGLE_FS",'<g><path d="M14.5 9.5 21 3m0 0h-6m6 0v6M3 21l6.5-6.5M3 21v-6m0 6h6"/></g><g><path d="m14 10 7-7m-7 7h6m-6 0V4M3 21l7-7m0 0v6m0-6H4"/></g>']},v$5={};for(const[ee,te]of Object.entries(o$5))v$5[ee]={tpl:`<button data-panzoom-action="${te[0]}" class="f-button" title="{{${te[1]}}}"><svg>${te[2]}</svg></button>`};/*! License details at fancyapps.com/license */var l$5;(function(ee){ee.Left="left",ee.middle="middle",ee.right="right"})(l$5||(l$5={}));const s$4=Object.assign({counter:{tpl:'<div class="f-counter"><span data-carousel-page></span>/<span data-carousel-pages></span></div>'},download:{tpl:'<button data-carousel-download class="f-button" title="{{DOWNLOAD}}"><svg><path d="M4 17v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-2M7 11l5 5 5-5M12 4v12"/></svg></button>'},autoplay:{tpl:'<button data-autoplay-action="toggle" class="f-button" title="{{TOGGLE_AUTOPLAY}}"><svg><g><path d="M5 3.5 19 12 5 20.5Z"/></g><g><path d="M8 4v15M17 4v15"/></g></svg></button>'},thumbs:{tpl:'<button data-thumbs-action="toggle" class="f-button" title="{{TOGGLE_THUMBS}}"><svg><rect width="18" height="14" x="3" y="3" rx="2"/><path d="M4 21h1M9 21h1M14 21h1M19 21h1"/></svg></button>'}},v$5),a$6={absolute:!1,display:{left:[],middle:["zoomIn","zoomOut","toggle1to1","rotateCCW","rotateCW","flipX","flipY","reset"],right:[]},enabled:"auto",items:{}},r$3=()=>{let ee,te;function ne(re){const oe=ee==null?void 0:ee.getOptions().Toolbar;let ie=(t$7(oe)?Object.assign(Object.assign({},a$6),oe):a$6)[re];return ie&&typeof ie=="function"&&ee?ie(ee):ie}function ae(){var re,oe;if(!(ee!=null&&ee.getOptions().Toolbar)||!ee||te)return;const ie=ee.getContainer();if(!ie)return;let le=ne("enabled");if(!le)return;const ce=ne("absolute"),de=ee.getSlides().length>1;let ue=!1,ve=!1;for(const be of ee.getSlides())be.panzoomRef&&(ue=!0),(be.downloadSrc||be.type==="image"&&be.src)&&(ve=!0);const me=((re=ee.getPlugins().Thumbs)===null||re===void 0?void 0:re.isEnabled())||!1,ge=de&&ee.getPlugins().Autoplay||!1,fe=ee.getPlugins().Fullscreen&&(document.fullscreenEnabled||document.webkitFullscreenEnabled);if(le==="auto"&&(le=ue),!le)return;te=ie.querySelector(".f-carousel__toolbar")||void 0,te||(te=document.createElement("div"),te.classList.add("f-carousel__toolbar"));const pe=ne("display"),_e=r$5({},s$4,ne("items"));for(const be of["left","middle","right"]){const ke=pe[be]||[],$e=document.createElement("div");$e.classList.add("f-carousel__toolbar__column"),$e.classList.add(`is-${be}`);for(const ye of ke){let Ee;if(t$9(ye)){if(ye==="counter"&&!de||ye==="autoplay"&&!ge||v$5[ye]&&!ue||ye==="fullscreen"&&!fe||ye==="thumbs"&&!me||ye==="download"&&!ve)continue;Ee=_e[ye]}if(t$7(ye)&&(Ee=ye),Ee&&Ee.tpl){let Se=ee.localize(Ee.tpl);Se=Se.split("<svg>").join('<svg tabindex="-1" width="24" height="24" viewBox="0 0 24 24">');const Le=e$9(Se);Le&&(typeof Ee.click=="function"&&ee&&Le.addEventListener("click",Ve=>{Ve.preventDefault(),Ve.stopPropagation(),typeof Ee.click=="function"&&ee&&Ee.click(ee,Ve)}),$e.append(Le))}}te.append($e)}if(te.childElementCount){if(ce&&te.classList.add("is-absolute"),!te.parentElement){const be=ne("parentEl");be?be.insertAdjacentElement("afterbegin",te):(oe=ee.getViewport())===null||oe===void 0||oe.insertAdjacentElement("beforebegin",te)}ie.contains(te)&&ie.classList.add("has-toolbar")}}return{init:function(re){ee=re,ee==null||ee.on("initSlides",ae)},destroy:function(){var re;ee==null||ee.off("initSlides",ae),(re=ee==null?void 0:ee.getContainer())===null||re===void 0||re.classList.remove("has-toolbar"),te==null||te.remove(),te=void 0},add:function(re,oe){s$4[re]=oe},isEnabled:function(){return!!te}}};/*! License details at fancyapps.com/license */const n$5={autoStart:!0,pauseOnHover:!0,showProgressbar:!0,timeout:2e3},o$4=()=>{let ee,te,ne=!1,ae=!1,re=!1,oe=null;function ie(Ee){const Se=ee==null?void 0:ee.getOptions().Autoplay;let Le=(t$7(Se)?Object.assign(Object.assign({},n$5),Se):n$5)[Ee];return Le&&typeof Le=="function"&&ee?Le(ee):Le}function le(){clearTimeout(te),te=void 0}function ce(){if(!ee||!ne||re||ae||te||!ee.isSettled()||function(){var Se;const Le=((Se=ee==null?void 0:ee.getPage())===null||Se===void 0?void 0:Se.slides)||[];for(const Ve of Le)if(Ve.state===0)return!0;return!1}())return;(function(){var Se,Le,Ve,Te;if(!ee||(ve(),!ie("showProgressbar")))return;let ze=ie("progressbarParentEl");if(!ze&&(!((Se=ee.getPlugins().Toolbar)===null||Se===void 0)&&Se.isEnabled())&&(ze=ee.getContainer()),!ze&&((Le=ee.getPlugins().Toolbar)===null||Le===void 0?void 0:Le.isEnabled())!==!0){const Oe=((Ve=ee.getPages()[0])===null||Ve===void 0?void 0:Ve.slides)||[],Pe=((Te=ee.getPage())===null||Te===void 0?void 0:Te.slides)||[];Oe.length===1&&Pe.length===1&&(ze=Pe[0].el)}if(ze||(ze=ee.getViewport()),!ze)return;oe=document.createElement("div"),s$a(oe,"f-progressbar"),ze.prepend(oe);const Re=ie("timeout")||1e3;oe.style.animationDuration=`${Re}ms`})();const Ee=ie("timeout");te=setTimeout(()=>{ee&&ne&&!ae&&(ee.isInfinite()||ee.getPageIndex()!==ee.getPages().length-1?ee.next():ee.goTo(0))},Ee)}function de(){var Ee;if(!ee||ee.getPages().length<2||ee.getOptions().Autoplay===!1||ne)return;ne=!0,ee.emit("autoplay:start",ie("timeout")),s$a(ee.getContainer(),"has-autoplay"),(Ee=ee.getTween())===null||Ee===void 0||Ee.on("start",be);const Se=ee==null?void 0:ee.getContainer();Se&&ie("pauseOnHover")&&matchMedia("(hover: hover)").matches&&(Se.addEventListener("mouseenter",ke,!1),Se.addEventListener("mouseleave",$e,!1)),ee.on("change",pe),ee.on("settle",_e),ee.on("contentReady",ge),ee.on("panzoom:touchStart",ue),ee.on("panzoom:wheel",ue),ee.isSettled()&&ce()}function ue(){var Ee;if(le(),ve(),ee){if(ne){ee.emit("autoplay:end"),(Ee=ee.getTween())===null||Ee===void 0||Ee.off("start",be);const Se=ee.getContainer();Se&&(Se.classList.remove("has-autoplay"),Se.removeEventListener("mouseenter",ke,!1),Se.removeEventListener("mouseleave",$e,!1))}ee.off("change",pe),ee.off("settle",_e),ee.off("contentReady",ge),ee.off("panzoom:touchStart",ue),ee.off("panzoom:wheel",ue)}ne=!1,ae=!1}function ve(){oe&&(oe.remove(),oe=null)}function me(){ee&&ee.getPages().length>1&&ie("autoStart")&&de()}function ge(){ce()}function fe(Ee,Se){const Le=Se.target;Le&&!Se.defaultPrevented&&Le.dataset.autoplayAction==="toggle"&&ye.toggle()}function pe(){!ee||!(ee!=null&&ee.isInfinite())&&ee.getPageIndex()===ee.getPages().length-1?ue():(ve(),le())}function _e(){ce()}function be(){le(),ve()}function ke(){re=!0,ne&&(ve(),le())}function $e(){re=!1,ne&&!ae&&(ee!=null&&ee.isSettled())&&ce()}const ye={init:function(Ee){ee=Ee,ee.on("ready",me),ee.on("click",fe)},destroy:function(){ue(),ee==null||ee.off("ready",me),ee==null||ee.off("click",fe),ee=void 0},isEnabled:()=>ne,pause:function(){ae=!0,le()},resume:function(){ae=!1,ne&&!re&&ce()},start(){de()},stop(){ue()},toggle(){ne?ue():de()}};return ye};/*! License details at fancyapps.com/license */const u$5={Carousel:{Lazyload:{showLoading:!1}},minCount:2,showOnStart:!0,thumbTpl:'<button aria-label="Slide to #{{page}}"><img draggable="false" alt="{{alt}}" data-lazy-src="{{src}}" /></button>',type:"modern"};let a$5;const c$3=()=>{let ee,te,ne,ae,re,oe=0,ie=0,le=!0;function ce(Pe){const Be=ee==null?void 0:ee.getOptions().Thumbs;let De=(t$7(Be)?Object.assign(Object.assign({},u$5),Be):u$5)[Pe];return De&&typeof De=="function"&&ee?De(ee):De}function de(){if(!ee||(ee==null?void 0:ee.getOptions().Thumbs)===!1)return!1;let Pe=0;for(const Be of ee.getSlides())Be.thumbSrc&&Pe++;return Pe>=ce("minCount")}function ue(){return ce("type")==="modern"}function ve(){return ce("type")==="scrollable"}function me(){const Pe=[],Be=(ee==null?void 0:ee.getSlides())||[];for(const De of Be)Pe.push({index:De.index,class:De.thumbClass,html:ge(De)});return Pe}function ge(Pe){const Be=Pe.thumb?Pe.thumb instanceof HTMLImageElement?Pe.thumb.src:Pe.thumb:Pe.thumbSrc||void 0,De=Pe.thumbAlt===void 0?`Thumbnail #${Pe.index}`:Pe.thumbAlt+"";let Ne=ce("thumbTpl");return Ne=n$7(Ne,"{{alt}}",De),Ne=n$7(Ne,"{{src}}",Be+""),Ne=n$7(Ne,"{{index}}",`${Pe.index}`),Ne=n$7(Ne,"{{page}}",`${Pe.index||1}`),Ne}function fe(Pe){return`<div index="${Pe.index||0}" class="f-thumbs__slide ${Pe.class||""}">${Pe.html||""}</div>`}function pe(Pe=!1){var Be;const De=ee==null?void 0:ee.getContainer();if(!ee||!De||ne||!de())return;const Ne=((Be=ce("Carousel"))===null||Be===void 0?void 0:Be.classes)||{};if(Ne.container=Ne.container||"f-thumbs",!ne){const Me=De.nextElementSibling;Me!=null&&Me.classList.contains(Ne.container)&&(ne=Me)}if(!ne){ne=document.createElement("div");const Me=ce("parentEl");Me?Me.insertAdjacentElement("beforeend",ne):De.insertAdjacentElement("afterend",ne)}s$a(ne,Ne.container),s$a(ne,"f-thumbs"),s$a(ne,`is-${ce("type")}`),Pe&&s$a(ne,"is-hidden")}function _e(){if(!ne||!ve())return;ae=document.createElement("div"),s$a(ae,"f-thumbs__viewport");let Pe="";for(const Be of me())typeof(Be.html||"")=="string"&&(Pe+=fe(Be));ae.innerHTML=Pe,ne.append(ae),ne.addEventListener("click",Be=>{Be.preventDefault();const De=Be.target.closest("[index]"),Ne=parseInt((De==null?void 0:De.getAttribute("index"))||"-1");ee&&Ne>-1&&ee.goTo(Ne)}),re=new IntersectionObserver(Be=>{Be.forEach(De=>{De.isIntersecting&&De.target instanceof HTMLImageElement&&(De.target.src=De.target.getAttribute("data-lazy-src")+"",De.target.removeAttribute("data-lazy-src"),re==null||re.unobserve(De.target))})},{root:ae,rootMargin:"100px"}),ne.querySelectorAll("[data-lazy-src]").forEach(Be=>{re==null||re.observe(Be)}),ee==null||ee.emit("thumbs:ready")}function be(){var Pe;if(!a$5||!ee||!ne||ve()||te)return;const Be=me();if(!Be.length)return;const De=r$5({},{Sync:{target:ee},Lazyload:{preload:1},slides:Be,classes:{container:"f-thumbs",viewport:"f-thumbs__viewport",slide:"f-thumbs__slide"},center:!0,fill:!ue(),infinite:!1,dragFree:!0,rtl:ee.getOptions().rtl||!1,slidesPerPage:Ne=>{let Me=0;return ue()&&(function(){if(!ue()||!ne)return;const we=Ce=>ne&&parseFloat(getComputedStyle(ne).getPropertyValue("--f-thumb-"+Ce))||0;oe=we("width"),ie=we("clip-width")}(),Me=4*(oe-ie)),Ne&&Ne.getTotalSlideDim()<=Ne.getViewportDim()-Me?1/0:1}},u$5.Carousel||{},ce("Carousel")||{});te=a$5(ne,De,{Sync:i$8,Lazyload:i$7}),te.on("ready",()=>{s$a(ne,"is-syncing"),ee==null||ee.emit("thumbs:ready"),ue()&&(ee==null||ee.on("render",Ee))}),te.on("destroy",()=>{ee==null||ee.emit("thumbs:destroy")}),te.init(),(Pe=te.getGestures())===null||Pe===void 0||Pe.on("start",()=>{le=!1}),te.on("click",(Ne,Me)=>{const we=Me.target;if(we){const Ce=we.matches("button")?we:we.firstElementChild;Ce&&Ce.matches("button")&&(Me.preventDefault(),Ce.focus({preventScroll:!0}))}}),s$a(ee.getContainer(),"has-thumbs"),Oe()}function ke(){de()&&ce("showOnStart")&&(pe(),_e())}function $e(){var Pe;de()&&(be(),ee==null||ee.on("addSlide",Le),ee==null||ee.on("removeSlide",Ve),ee==null||ee.on("click",Te),ee==null||ee.on("refresh",ze),(Pe=ee==null?void 0:ee.getGestures())===null||Pe===void 0||Pe.on("start",ye),Re(!0))}function ye(){var Pe,Be;le=!0,!((Pe=document.activeElement)===null||Pe===void 0)&&Pe.closest(".f-thumbs")&&((Be=document.activeElement)===null||Be===void 0||Be.blur())}function Ee(){var Pe,Be;ne==null||ne.classList.toggle("is-syncing",(ee==null?void 0:ee.hasNavigated())===!1||((Pe=ee==null?void 0:ee.getTween())===null||Pe===void 0?void 0:Pe.isRunning())),Oe(),!((Be=ee==null?void 0:ee.getGestures())===null||Be===void 0)&&Be.isPointerDown()&&function(){if(!ue()||!ee||!te||!le)return;const De=te.getTween(),Ne=te.getPages(),Me=ee.getPageIndex()||0,we=ee.getPageProgress()||0;if(!(ee&&Ne&&Ne[Me]&&De))return;const Ce=De.isRunning()?De.getCurrentValues().pos:te.getPosition();if(Ce===void 0)return;let Fe=Ne[Me].pos+we*(oe-ie);Fe=t$8(Ne[0].pos,Fe,Ne[Ne.length-1].pos),De.from({pos:Ce}).to({pos:Fe}).start()}()}function Se(){le=!0,Re()}function Le(Pe,Be){const De={html:ge(Be)};if(te)te.add(De,Be.index);else if(ae){const Ne=e$9(fe(De));if(Ne){ae.append(Ne);const Me=Ne.querySelector("img");Me&&(re==null||re.observe(Me))}}}function Ve(Pe,Be){var De;te?te.remove(Be.index):ae&&((De=ae.querySelector(`[index="${Be.index}"]`))===null||De===void 0||De.remove())}function Te(Pe,Be){var De;const Ne=Be.target;Be.defaultPrevented||((De=Ne==null?void 0:Ne.dataset)===null||De===void 0?void 0:De.thumbsAction)!=="toggle"||(ne||(pe(!0),_e(),be()),ne&&ne.classList.toggle("is-hidden"))}function ze(){Re()}function Re(Pe=!1){if(!ee||!ae||!ve())return;const Be=ee.getPageIndex();ae.querySelectorAll(".is-selected").forEach(Ne=>{Ne.classList.remove("is-selected")});const De=ae.querySelector(`[index="${Be}"]`);if(De){De.classList.add("is-selected");const Ne=ae.getBoundingClientRect(),Me=De.getBoundingClientRect(),we=De.offsetTop-ae.offsetTop-.5*Ne.height+.5*Me.height,Ce=De.scrollLeft-ae.scrollLeft-.5*Ne.width+.5*Me.width;ae.scrollTo({top:we,left:Ce,behavior:Pe?"instant":"smooth"})}}function Oe(){if(!ue()||!ee||!te)return;const Pe=(te==null?void 0:te.getSlides())||[];let Be=-.5*oe;for(const De of Pe){const Ne=De.el;if(!Ne)continue;let Me=ee.getPageProgress(De.index)||0;Me=Math.max(-1,Math.min(1,Me)),Me>-1&&Me<1&&(Be+=.5*oe*(1-Math.abs(Me))),Me=Math.round(1e4*Me)/1e4,Be=Math.round(1e4*Be)/1e4,Ne.style.setProperty("--progress",`${Math.abs(Me)}`),Ne.style.setProperty("--shift",`${ee!=null&&ee.isRTL()?-1*Be:Be}px`),Me>-1&&Me<1&&(Be+=.5*oe*(1-Math.abs(Me)))}}return{init:function(Pe,Be){a$5=Be,ee=Pe,ee.on("ready",$e),ee.on("initSlides",ke),ee.on("change",Se)},destroy:function(){var Pe,Be;ve()&&(ee==null||ee.emit("thumbs:destroy")),ee==null||ee.off("ready",$e),ee==null||ee.off("initSlides",ke),ee==null||ee.off("change",Se),ee==null||ee.off("render",Ee),ee==null||ee.off("addSlide",Le),ee==null||ee.off("click",Te),ee==null||ee.off("refresh",ze),(Pe=ee==null?void 0:ee.getGestures())===null||Pe===void 0||Pe.off("start",ye),(Be=ee==null?void 0:ee.getContainer())===null||Be===void 0||Be.classList.remove("has-thumbs"),ee=void 0,te==null||te.destroy(),te=void 0,ne==null||ne.remove(),ne=void 0},getCarousel:function(){return te},getContainer:function(){return ne},getType:function(){return ce("type")},isEnabled:de}};/*! License details at fancyapps.com/license */const a$4={iframeAttr:{allow:"autoplay; fullscreen",scrolling:"auto"}},i$5=()=>{let ee;function te(re,oe){let ie=oe.src;if(!t$9(ie))return;let le=oe.type;if(!le){if(le||(ie.charAt(0)==="#"?le="inline":ie.match(/(^data:image\/[a-z0-9+\/=]*,)|(\.((a)?png|avif|gif|jp(g|eg)|pjp(eg)?|jfif|svg|webp|bmp|ico|tif(f)?)((\?|#).*)?$)/i)?le="image":ie.match(/\.(pdf)((\?|#).*)?$/i)?le="pdf":ie.match(/\.(html|php)((\?|#).*)?$/i)&&(le="iframe")),!le){const ce=ie.match(/(?:maps\.)?google\.([a-z]{2,3}(?:\.[a-z]{2})?)\/(?:(?:(?:maps\/(?:place\/(?:.*)\/)?\@(.*),(\d+.?\d+?)z))|(?:\?ll=))(.*)?/i);ce&&(ie=`https://maps.google.${ce[1]}/?ll=${(ce[2]?ce[2]+"&z="+Math.floor(parseFloat(ce[3]))+(ce[4]?ce[4].replace(/^\//,"&"):""):ce[4]+"").replace(/\?/,"&")}&output=${ce[4]&&ce[4].indexOf("layer=c")>0?"svembed":"embed"}`,le="gmap")}if(!le){const ce=ie.match(/(?:maps\.)?google\.([a-z]{2,3}(?:\.[a-z]{2})?)\/(?:maps\/search\/)(.*)/i);ce&&(ie=`https://maps.google.${ce[1]}/maps?q=${ce[2].replace("query=","q=").replace("api=1","")}&output=embed`,le="gmap")}oe.src=ie,oe.type=le}}function ne(re,oe){oe.type!=="iframe"&&oe.type!=="pdf"&&oe.type!=="gmap"||function(ie){if(!ee||!ie.el||!ie.src)return;const le=document.createElement("iframe");le.classList.add("f-iframe");for(const[de,ue]of Object.entries(function(){const ve=ee==null?void 0:ee.getOptions().Html;return t$7(ve)?Object.assign(Object.assign({},a$4),ve):a$4}().iframeAttr||{}))le.setAttribute(de,ue);le.onerror=()=>{ee&&ee.getState()===1&&ee.showError(ie,"{{IFRAME_ERROR}}")},le.src=ie.src;const ce=document.createElement("div");if(ce.classList.add("f-html"),ce.append(le),ie.width){let de=`${ie.width}`;de.match(/^\d+$/)&&(de+="px"),ce.style.maxWidth=`${de}`}if(ie.height){let de=`${ie.height}`;de.match(/^\d+$/)&&(de+="px"),ce.style.maxHeight=`${de}`}if(ie.aspectRatio){const de=ie.el.getBoundingClientRect();ce.style.aspectRatio=`${ie.aspectRatio}`,ce.style[de.width>de.height?"width":"height"]="auto",ce.style[de.width>de.height?"maxWidth":"maxHeight"]="none"}ie.contentEl=le,ie.htmlEl=ce,ie.el.classList.add("has-html"),ie.el.classList.add("has-iframe"),ie.el.classList.add(`has-${ie.type}`),ie.el.prepend(ce),ee.emit("contentReady",ie)}(oe)}function ae(re,oe){var ie,le;oe.type!=="iframe"&&oe.type!=="pdf"&&oe.type!=="gmap"||(ee==null||ee.hideError(oe),(ie=oe.contentEl)===null||ie===void 0||ie.remove(),oe.contentEl=void 0,(le=oe.htmlEl)===null||le===void 0||le.remove(),oe.htmlEl=void 0)}return{init:function(re){ee=re,ee.on("addSlide",te),ee.on("attachSlideEl",ne),ee.on("detachSlideEl",ae)},destroy:function(){ee==null||ee.off("addSlide",te),ee==null||ee.off("attachSlideEl",ne),ee==null||ee.off("detachSlideEl",ae),ee=void 0}}};/*! License details at fancyapps.com/license */const n$4=(ee,te={})=>{const ne=new URL(ee),ae=new URLSearchParams(ne.search),re=new URLSearchParams;for(const[le,ce]of[...ae,...Object.entries(te)]){let de=ce+"";if(le==="t"){let ue=de.match(/((\d*)m)?(\d*)s?/);ue&&re.set("start",60*parseInt(ue[2]||"0")+parseInt(ue[3]||"0")+"")}else re.set(le,de)}let oe=re+"",ie=ee.match(/#t=((.*)?\d+s)/);return ie&&(oe+=`#t=${ie[1]}`),oe},i$4={autoplay:!1,html5videoTpl:`<video class="f-html5video" playsinline controls controlsList="nodownload" poster="{{poster}}">
|