sm-click-library-ui 0.0.442 → 0.0.444
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/README.md +3 -3
- package/dist/{index-CbprpAaO.js → index-BtMdh4bD.js} +8362 -7985
- package/dist/sm-click-library-ui.es.js +1 -1
- package/dist/sm-click-library-ui.umd.js +16 -15
- package/dist/style.css +1 -1
- package/dist/tailwind.css +466 -498
- package/dist/test-utils/setup.js +65 -65
- package/dist/{web-CyIQQOFE.js → web-BCxf9krm.js} +2 -2
- package/dist/{web-BLBNNkkD.js → web-DTt5o2_H.js} +2 -2
- package/package.json +1 -1
- package/src/test-utils/components/selects/attendanceSelect.test.js +106 -106
- package/src/test-utils/setup.js +65 -65
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
(function(Ke,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue"),require("pinia")):typeof define=="function"&&define.amd?define(["exports","vue","pinia"],e):(Ke=typeof globalThis<"u"?globalThis:Ke||self,e(Ke["sm-click-library-ui"]={},Ke.Vue,Ke.Pinia))})(this,function(Ke,e,Vt){"use strict";function pi(t){return e.getCurrentScope()?(e.onScopeDispose(t),!0):!1}function no(t){return typeof t=="function"?t():e.unref(t)}const ao=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const gi=Object.prototype.toString,yi=t=>gi.call(t)==="[object Object]",un=()=>{},ki=xi();function xi(){var t,n;return ao&&((t=window==null?void 0:window.navigator)==null?void 0:t.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((n=window==null?void 0:window.navigator)==null?void 0:n.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}function Zt(t){var n;const a=no(t);return(n=a==null?void 0:a.$el)!=null?n:a}const oo=ao?window:void 0;function Xn(...t){let n,a,o,r;if(typeof t[0]=="string"||Array.isArray(t[0])?([a,o,r]=t,n=oo):[n,a,o,r]=t,!n)return un;Array.isArray(a)||(a=[a]),Array.isArray(o)||(o=[o]);const i=[],s=()=>{i.forEach(u=>u()),i.length=0},l=(u,h,m,p)=>(u.addEventListener(h,m,p),()=>u.removeEventListener(h,m,p)),d=e.watch(()=>[Zt(n),no(r)],([u,h])=>{if(s(),!u)return;const m=yi(h)?{...h}:h;i.push(...a.flatMap(p=>o.map(c=>l(u,p,c,m))))},{immediate:!0,flush:"post"}),f=()=>{d(),s()};return pi(f),f}let ro=!1;function mn(t,n,a={}){const{window:o=oo,ignore:r=[],capture:i=!0,detectIframe:s=!1}=a;if(!o)return un;ki&&!ro&&(ro=!0,Array.from(o.document.body.children).forEach(m=>m.addEventListener("click",un)),o.document.documentElement.addEventListener("click",un));let l=!0;const d=m=>r.some(p=>{if(typeof p=="string")return Array.from(o.document.querySelectorAll(p)).some(c=>c===m.target||m.composedPath().includes(c));{const c=Zt(p);return c&&(m.target===c||m.composedPath().includes(c))}}),u=[Xn(o,"click",m=>{const p=Zt(t);if(!(!p||p===m.target||m.composedPath().includes(p))){if(m.detail===0&&(l=!d(m)),!l){l=!0;return}n(m)}},{passive:!0,capture:i}),Xn(o,"pointerdown",m=>{const p=Zt(t);l=!d(m)&&!!(p&&!m.composedPath().includes(p))},{passive:!0}),s&&Xn(o,"blur",m=>{setTimeout(()=>{var p;const c=Zt(t);((p=o.document.activeElement)==null?void 0:p.tagName)==="IFRAME"&&!(c!=null&&c.contains(o.document.activeElement))&&n(m)},0)})].filter(Boolean);return()=>u.forEach(m=>m())}const Ce=(t,n)=>{const a=t.__vccOpts||t;for(const[o,r]of n)a[o]=r;return a},bi={class:"line-clamp-2 uppercase text-xs truncate text-white"},wi={key:0,class:"select_widget_lib"},io=Ce({__name:"primary_select",props:{config:{type:Object,default:{title:"select_primary"}}},emits:["closeSelect"],setup(t,{emit:n}){const a=t,o=e.ref(!1),r=e.ref(null);e.computed(()=>a.selectConfig.some(l=>l.freeSlot));const i=()=>{o.value=!o.value};return mn(r,()=>{o.value&&(o.value=!1)}),(l,d)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"target",ref:r,class:"relative w-full"},[e.createElementVNode("button",{onClick:i,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.createElementVNode("div",null,[e.createElementVNode("p",bi,e.toDisplayString(t.config.title),1)]),e.createElementVNode("div",null,[(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass([o.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"},d[0]||(d[0]=[e.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))])]),o.value?(e.openBlock(),e.createElementBlock("section",wi,[e.createElementVNode("div",null,[e.renderSlot(l.$slots,"free-slot",{},void 0,!0)])])):e.createCommentVNode("",!0)],512))}},[["__scopeId","data-v-265f04f1"]]),Ei={key:0,class:"modal_head"},vi={class:"modal_responsive"},Ci={class:"flex min-h-full items-center justify-center text-center sm:p-0"},Si={class:"modal_tittle text-current bg-base-300 border-base-100"},Bi={class:"flex items-center gap-3"},Vi=["innerHTML"],Mi={class:"text-xl font-semibold flex items-center gap-2"},Ni={class:"bg-base-200"},Ai={class:"text-center"},Ti={class:"modal_end_button border-base-100 bg-base-300"},so=Ce({__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(t,{emit:n}){const a=t,o=n,r=()=>{o("update:isOpen",!a.isOpen),a.isOpen&&o("close")};return(i,s)=>(e.openBlock(),e.createBlock(e.Transition,{"leave-active-class":"transition-opacity duration-200 ease-in","leave-from-class":"opacity-100","leave-to-class":"opacity-0"},{default:e.withCtx(()=>{var l,d;return[t.isOpen?(e.openBlock(),e.createElementBlock("div",Ei,[s[2]||(s[2]=e.createElementVNode("div",{class:"modal-overlay absolute h-full w-full bg-gray-600 opacity-50"},null,-1)),e.createElementVNode("div",vi,[e.createElementVNode("div",Ci,[e.createElementVNode("div",{class:e.normalizeClass(["z-50 w-full shadow rounded-2xl shadow-black",t.size])},[e.createElementVNode("div",Si,[e.createElementVNode("section",Bi,[e.createElementVNode("div",{innerHTML:(l=t.header)==null?void 0:l.svg},null,8,Vi),e.createElementVNode("div",null,[e.createElementVNode("h3",Mi,[e.createElementVNode("p",null,e.toDisplayString((d=t.header)==null?void 0:d.title),1)]),e.createElementVNode("div",null,[e.renderSlot(i.$slots,"header",{},void 0,!0)])])]),e.createElementVNode("button",{onClick:s[0]||(s[0]=f=>r()),class:"modal_close_button bg-base-200/40"},s[1]||(s[1]=[e.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.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.createElementVNode("div",Ni,[e.createElementVNode("div",Ai,[e.renderSlot(i.$slots,"body",{},void 0,!0)])]),e.createElementVNode("div",Ti,[e.renderSlot(i.$slots,"footer",{},void 0,!0)])],2)])])])):e.createCommentVNode("",!0)]}),_:3}))}},[["__scopeId","data-v-943d3e1c"]]),Di={class:"simple_card_header"},Li={key:0,class:"simple_card_icon",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 22 22",fill:"none"},Fi={key:1,class:"simple_card_icon",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 22 22",fill:"none"},$i={key:2,class:"simple_card_icon",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 22 22",fill:"none"},_i={key:3,class:"simple_card_icon","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 23 23"},Pi={class:"simple_card_title"},Oi={class:"simple_card_descripiton"},lo={__name:"simple_card",props:{content:{type:Object,default:{title:"Title",description:"Coloque aqui a descrição"}},typeCard:{type:String,default:"default"}},setup(t){const n=t,a=e.computed(()=>({simple_card_success:n.typeCard==="success",simple_card_info:n.typeCard==="info",simple_card_alert:n.typeCard==="alert",simple_card_error:n.typeCard==="error"}));return(o,r)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([a.value,"simple_card"])},[e.createElementVNode("div",Di,[t.typeCard==="success"?(e.openBlock(),e.createElementBlock("svg",Li,r[0]||(r[0]=[e.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.createCommentVNode("",!0),t.typeCard==="info"?(e.openBlock(),e.createElementBlock("svg",Fi,r[1]||(r[1]=[e.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.createCommentVNode("",!0),t.typeCard==="alert"?(e.openBlock(),e.createElementBlock("svg",$i,r[2]||(r[2]=[e.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.createCommentVNode("",!0),t.typeCard==="error"?(e.openBlock(),e.createElementBlock("svg",_i,r[3]||(r[3]=[e.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.createCommentVNode("",!0),e.createElementVNode("p",Pi,e.toDisplayString(t.content.title),1)]),e.createElementVNode("section",Oi,[e.createElementVNode("p",null,e.toDisplayString(t.content.description),1)])],2))}};function co(t,n){return function(){return t.apply(n,arguments)}}const{toString:Ri}=Object.prototype,{getPrototypeOf:Kn}=Object,{iterator:fn,toStringTag:uo}=Symbol,hn=(t=>n=>{const a=Ri.call(n);return t[a]||(t[a]=a.slice(8,-1).toLowerCase())})(Object.create(null)),it=t=>(t=t.toLowerCase(),n=>hn(n)===t),pn=t=>n=>typeof n===t,{isArray:$t}=Array,Yt=pn("undefined");function Hi(t){return t!==null&&!Yt(t)&&t.constructor!==null&&!Yt(t.constructor)&&Qe(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const mo=it("ArrayBuffer");function zi(t){let n;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?n=ArrayBuffer.isView(t):n=t&&t.buffer&&mo(t.buffer),n}const ji=pn("string"),Qe=pn("function"),fo=pn("number"),gn=t=>t!==null&&typeof t=="object",Gi=t=>t===!0||t===!1,yn=t=>{if(hn(t)!=="object")return!1;const n=Kn(t);return(n===null||n===Object.prototype||Object.getPrototypeOf(n)===null)&&!(uo in t)&&!(fn in t)},qi=it("Date"),Ii=it("File"),Wi=it("Blob"),Ui=it("FileList"),Zi=t=>gn(t)&&Qe(t.pipe),Yi=t=>{let n;return t&&(typeof FormData=="function"&&t instanceof FormData||Qe(t.append)&&((n=hn(t))==="formdata"||n==="object"&&Qe(t.toString)&&t.toString()==="[object FormData]"))},Xi=it("URLSearchParams"),[Ki,Qi,Ji,e0]=["ReadableStream","Request","Response","Headers"].map(it),t0=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Xt(t,n,{allOwnKeys:a=!1}={}){if(t===null||typeof t>"u")return;let o,r;if(typeof t!="object"&&(t=[t]),$t(t))for(o=0,r=t.length;o<r;o++)n.call(null,t[o],o,t);else{const i=a?Object.getOwnPropertyNames(t):Object.keys(t),s=i.length;let l;for(o=0;o<s;o++)l=i[o],n.call(null,t[l],l,t)}}function ho(t,n){n=n.toLowerCase();const a=Object.keys(t);let o=a.length,r;for(;o-- >0;)if(r=a[o],n===r.toLowerCase())return r;return null}const Mt=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,po=t=>!Yt(t)&&t!==Mt;function Qn(){const{caseless:t}=po(this)&&this||{},n={},a=(o,r)=>{const i=t&&ho(n,r)||r;yn(n[i])&&yn(o)?n[i]=Qn(n[i],o):yn(o)?n[i]=Qn({},o):$t(o)?n[i]=o.slice():n[i]=o};for(let o=0,r=arguments.length;o<r;o++)arguments[o]&&Xt(arguments[o],a);return n}const n0=(t,n,a,{allOwnKeys:o}={})=>(Xt(n,(r,i)=>{a&&Qe(r)?t[i]=co(r,a):t[i]=r},{allOwnKeys:o}),t),a0=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),o0=(t,n,a,o)=>{t.prototype=Object.create(n.prototype,o),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:n.prototype}),a&&Object.assign(t.prototype,a)},r0=(t,n,a,o)=>{let r,i,s;const l={};if(n=n||{},t==null)return n;do{for(r=Object.getOwnPropertyNames(t),i=r.length;i-- >0;)s=r[i],(!o||o(s,t,n))&&!l[s]&&(n[s]=t[s],l[s]=!0);t=a!==!1&&Kn(t)}while(t&&(!a||a(t,n))&&t!==Object.prototype);return n},i0=(t,n,a)=>{t=String(t),(a===void 0||a>t.length)&&(a=t.length),a-=n.length;const o=t.indexOf(n,a);return o!==-1&&o===a},s0=t=>{if(!t)return null;if($t(t))return t;let n=t.length;if(!fo(n))return null;const a=new Array(n);for(;n-- >0;)a[n]=t[n];return a},l0=(t=>n=>t&&n instanceof t)(typeof Uint8Array<"u"&&Kn(Uint8Array)),c0=(t,n)=>{const o=(t&&t[fn]).call(t);let r;for(;(r=o.next())&&!r.done;){const i=r.value;n.call(t,i[0],i[1])}},d0=(t,n)=>{let a;const o=[];for(;(a=t.exec(n))!==null;)o.push(a);return o},u0=it("HTMLFormElement"),m0=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(a,o,r){return o.toUpperCase()+r}),go=(({hasOwnProperty:t})=>(n,a)=>t.call(n,a))(Object.prototype),f0=it("RegExp"),yo=(t,n)=>{const a=Object.getOwnPropertyDescriptors(t),o={};Xt(a,(r,i)=>{let s;(s=n(r,i,t))!==!1&&(o[i]=s||r)}),Object.defineProperties(t,o)},h0=t=>{yo(t,(n,a)=>{if(Qe(t)&&["arguments","caller","callee"].indexOf(a)!==-1)return!1;const o=t[a];if(Qe(o)){if(n.enumerable=!1,"writable"in n){n.writable=!1;return}n.set||(n.set=()=>{throw Error("Can not rewrite read-only method '"+a+"'")})}})},p0=(t,n)=>{const a={},o=r=>{r.forEach(i=>{a[i]=!0})};return $t(t)?o(t):o(String(t).split(n)),a},g0=()=>{},y0=(t,n)=>t!=null&&Number.isFinite(t=+t)?t:n;function k0(t){return!!(t&&Qe(t.append)&&t[uo]==="FormData"&&t[fn])}const x0=t=>{const n=new Array(10),a=(o,r)=>{if(gn(o)){if(n.indexOf(o)>=0)return;if(!("toJSON"in o)){n[r]=o;const i=$t(o)?[]:{};return Xt(o,(s,l)=>{const d=a(s,r+1);!Yt(d)&&(i[l]=d)}),n[r]=void 0,i}}return o};return a(t,0)},b0=it("AsyncFunction"),w0=t=>t&&(gn(t)||Qe(t))&&Qe(t.then)&&Qe(t.catch),ko=((t,n)=>t?setImmediate:n?((a,o)=>(Mt.addEventListener("message",({source:r,data:i})=>{r===Mt&&i===a&&o.length&&o.shift()()},!1),r=>{o.push(r),Mt.postMessage(a,"*")}))(`axios@${Math.random()}`,[]):a=>setTimeout(a))(typeof setImmediate=="function",Qe(Mt.postMessage)),E0=typeof queueMicrotask<"u"?queueMicrotask.bind(Mt):typeof process<"u"&&process.nextTick||ko,W={isArray:$t,isArrayBuffer:mo,isBuffer:Hi,isFormData:Yi,isArrayBufferView:zi,isString:ji,isNumber:fo,isBoolean:Gi,isObject:gn,isPlainObject:yn,isReadableStream:Ki,isRequest:Qi,isResponse:Ji,isHeaders:e0,isUndefined:Yt,isDate:qi,isFile:Ii,isBlob:Wi,isRegExp:f0,isFunction:Qe,isStream:Zi,isURLSearchParams:Xi,isTypedArray:l0,isFileList:Ui,forEach:Xt,merge:Qn,extend:n0,trim:t0,stripBOM:a0,inherits:o0,toFlatObject:r0,kindOf:hn,kindOfTest:it,endsWith:i0,toArray:s0,forEachEntry:c0,matchAll:d0,isHTMLForm:u0,hasOwnProperty:go,hasOwnProp:go,reduceDescriptors:yo,freezeMethods:h0,toObjectSet:p0,toCamelCase:m0,noop:g0,toFiniteNumber:y0,findKey:ho,global:Mt,isContextDefined:po,isSpecCompliantForm:k0,toJSONObject:x0,isAsyncFn:b0,isThenable:w0,setImmediate:ko,asap:E0,isIterable:t=>t!=null&&Qe(t[fn])};function Be(t,n,a,o,r){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",n&&(this.code=n),a&&(this.config=a),o&&(this.request=o),r&&(this.response=r,this.status=r.status?r.status:null)}W.inherits(Be,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:W.toJSONObject(this.config),code:this.code,status:this.status}}});const xo=Be.prototype,bo={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(t=>{bo[t]={value:t}}),Object.defineProperties(Be,bo),Object.defineProperty(xo,"isAxiosError",{value:!0}),Be.from=(t,n,a,o,r,i)=>{const s=Object.create(xo);return W.toFlatObject(t,s,function(d){return d!==Error.prototype},l=>l!=="isAxiosError"),Be.call(s,t.message,n,a,o,r),s.cause=t,s.name=t.name,i&&Object.assign(s,i),s};const v0=null;function Jn(t){return W.isPlainObject(t)||W.isArray(t)}function wo(t){return W.endsWith(t,"[]")?t.slice(0,-2):t}function Eo(t,n,a){return t?t.concat(n).map(function(r,i){return r=wo(r),!a&&i?"["+r+"]":r}).join(a?".":""):n}function C0(t){return W.isArray(t)&&!t.some(Jn)}const S0=W.toFlatObject(W,{},null,function(n){return/^is[A-Z]/.test(n)});function kn(t,n,a){if(!W.isObject(t))throw new TypeError("target must be an object");n=n||new FormData,a=W.toFlatObject(a,{metaTokens:!0,dots:!1,indexes:!1},!1,function(g,y){return!W.isUndefined(y[g])});const o=a.metaTokens,r=a.visitor||u,i=a.dots,s=a.indexes,d=(a.Blob||typeof Blob<"u"&&Blob)&&W.isSpecCompliantForm(n);if(!W.isFunction(r))throw new TypeError("visitor must be a function");function f(c){if(c===null)return"";if(W.isDate(c))return c.toISOString();if(W.isBoolean(c))return c.toString();if(!d&&W.isBlob(c))throw new Be("Blob is not supported. Use a Buffer instead.");return W.isArrayBuffer(c)||W.isTypedArray(c)?d&&typeof Blob=="function"?new Blob([c]):Buffer.from(c):c}function u(c,g,y){let b=c;if(c&&!y&&typeof c=="object"){if(W.endsWith(g,"{}"))g=o?g:g.slice(0,-2),c=JSON.stringify(c);else if(W.isArray(c)&&C0(c)||(W.isFileList(c)||W.endsWith(g,"[]"))&&(b=W.toArray(c)))return g=wo(g),b.forEach(function(E,x){!(W.isUndefined(E)||E===null)&&n.append(s===!0?Eo([g],x,i):s===null?g:g+"[]",f(E))}),!1}return Jn(c)?!0:(n.append(Eo(y,g,i),f(c)),!1)}const h=[],m=Object.assign(S0,{defaultVisitor:u,convertValue:f,isVisitable:Jn});function p(c,g){if(!W.isUndefined(c)){if(h.indexOf(c)!==-1)throw Error("Circular reference detected in "+g.join("."));h.push(c),W.forEach(c,function(b,w){(!(W.isUndefined(b)||b===null)&&r.call(n,b,W.isString(w)?w.trim():w,g,m))===!0&&p(b,g?g.concat(w):[w])}),h.pop()}}if(!W.isObject(t))throw new TypeError("data must be an object");return p(t),n}function vo(t){const n={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(o){return n[o]})}function ea(t,n){this._pairs=[],t&&kn(t,this,n)}const Co=ea.prototype;Co.append=function(n,a){this._pairs.push([n,a])},Co.toString=function(n){const a=n?function(o){return n.call(this,o,vo)}:vo;return this._pairs.map(function(r){return a(r[0])+"="+a(r[1])},"").join("&")};function B0(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function So(t,n,a){if(!n)return t;const o=a&&a.encode||B0;W.isFunction(a)&&(a={serialize:a});const r=a&&a.serialize;let i;if(r?i=r(n,a):i=W.isURLSearchParams(n)?n.toString():new ea(n,a).toString(o),i){const s=t.indexOf("#");s!==-1&&(t=t.slice(0,s)),t+=(t.indexOf("?")===-1?"?":"&")+i}return t}class Bo{constructor(){this.handlers=[]}use(n,a,o){return this.handlers.push({fulfilled:n,rejected:a,synchronous:o?o.synchronous:!1,runWhen:o?o.runWhen:null}),this.handlers.length-1}eject(n){this.handlers[n]&&(this.handlers[n]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(n){W.forEach(this.handlers,function(o){o!==null&&n(o)})}}const Vo={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},V0={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:ea,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},ta=typeof window<"u"&&typeof document<"u",na=typeof navigator=="object"&&navigator||void 0,M0=ta&&(!na||["ReactNative","NativeScript","NS"].indexOf(na.product)<0),N0=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",A0=ta&&window.location.href||"http://localhost",We={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:ta,hasStandardBrowserEnv:M0,hasStandardBrowserWebWorkerEnv:N0,navigator:na,origin:A0},Symbol.toStringTag,{value:"Module"})),...V0};function T0(t,n){return kn(t,new We.classes.URLSearchParams,Object.assign({visitor:function(a,o,r,i){return We.isNode&&W.isBuffer(a)?(this.append(o,a.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},n))}function D0(t){return W.matchAll(/\w+|\[(\w*)]/g,t).map(n=>n[0]==="[]"?"":n[1]||n[0])}function L0(t){const n={},a=Object.keys(t);let o;const r=a.length;let i;for(o=0;o<r;o++)i=a[o],n[i]=t[i];return n}function Mo(t){function n(a,o,r,i){let s=a[i++];if(s==="__proto__")return!0;const l=Number.isFinite(+s),d=i>=a.length;return s=!s&&W.isArray(r)?r.length:s,d?(W.hasOwnProp(r,s)?r[s]=[r[s],o]:r[s]=o,!l):((!r[s]||!W.isObject(r[s]))&&(r[s]=[]),n(a,o,r[s],i)&&W.isArray(r[s])&&(r[s]=L0(r[s])),!l)}if(W.isFormData(t)&&W.isFunction(t.entries)){const a={};return W.forEachEntry(t,(o,r)=>{n(D0(o),r,a,0)}),a}return null}function F0(t,n,a){if(W.isString(t))try{return(n||JSON.parse)(t),W.trim(t)}catch(o){if(o.name!=="SyntaxError")throw o}return(a||JSON.stringify)(t)}const Kt={transitional:Vo,adapter:["xhr","http","fetch"],transformRequest:[function(n,a){const o=a.getContentType()||"",r=o.indexOf("application/json")>-1,i=W.isObject(n);if(i&&W.isHTMLForm(n)&&(n=new FormData(n)),W.isFormData(n))return r?JSON.stringify(Mo(n)):n;if(W.isArrayBuffer(n)||W.isBuffer(n)||W.isStream(n)||W.isFile(n)||W.isBlob(n)||W.isReadableStream(n))return n;if(W.isArrayBufferView(n))return n.buffer;if(W.isURLSearchParams(n))return a.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),n.toString();let l;if(i){if(o.indexOf("application/x-www-form-urlencoded")>-1)return T0(n,this.formSerializer).toString();if((l=W.isFileList(n))||o.indexOf("multipart/form-data")>-1){const d=this.env&&this.env.FormData;return kn(l?{"files[]":n}:n,d&&new d,this.formSerializer)}}return i||r?(a.setContentType("application/json",!1),F0(n)):n}],transformResponse:[function(n){const a=this.transitional||Kt.transitional,o=a&&a.forcedJSONParsing,r=this.responseType==="json";if(W.isResponse(n)||W.isReadableStream(n))return n;if(n&&W.isString(n)&&(o&&!this.responseType||r)){const s=!(a&&a.silentJSONParsing)&&r;try{return JSON.parse(n)}catch(l){if(s)throw l.name==="SyntaxError"?Be.from(l,Be.ERR_BAD_RESPONSE,this,null,this.response):l}}return n}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:We.classes.FormData,Blob:We.classes.Blob},validateStatus:function(n){return n>=200&&n<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};W.forEach(["delete","get","head","post","put","patch"],t=>{Kt.headers[t]={}});const $0=W.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),_0=t=>{const n={};let a,o,r;return t&&t.split(`
|
|
2
|
-
`).forEach(function(s){r=s.indexOf(":"),a=s.substring(0,r).trim().toLowerCase(),o=s.substring(r+1).trim(),!(!a||n[a]
|
|
3
|
-
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(n){return n instanceof this?n:new this(n)}static concat(n,...a){const o=new this(n);return a.forEach(r=>o.set(r)),o}static accessor(n){const o=(this[No]=this[No]={accessors:{}}).accessors,r=this.prototype;function i(s){const l=Qt(s);o[l]||(H0(r,s),o[l]=!0)}return W.isArray(n)?n.forEach(i):i(n),this}};Je.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),W.reduceDescriptors(Je.prototype,({value:t},n)=>{let a=n[0].toUpperCase()+n.slice(1);return{get:()=>t,set(o){this[a]=o}}}),W.freezeMethods(Je);function oa(t,n){const a=this||Kt,o=n||a,r=Je.from(o.headers);let i=o.data;return W.forEach(t,function(l){i=l.call(a,i,r.normalize(),n?n.status:void 0)}),r.normalize(),i}function Ao(t){return!!(t&&t.__CANCEL__)}function _t(t,n,a){Be.call(this,t??"canceled",Be.ERR_CANCELED,n,a),this.name="CanceledError"}W.inherits(_t,Be,{__CANCEL__:!0});function To(t,n,a){const o=a.config.validateStatus;!a.status||!o||o(a.status)?t(a):n(new Be("Request failed with status code "+a.status,[Be.ERR_BAD_REQUEST,Be.ERR_BAD_RESPONSE][Math.floor(a.status/100)-4],a.config,a.request,a))}function z0(t){const n=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return n&&n[1]||""}function j0(t,n){t=t||10;const a=new Array(t),o=new Array(t);let r=0,i=0,s;return n=n!==void 0?n:1e3,function(d){const f=Date.now(),u=o[i];s||(s=f),a[r]=d,o[r]=f;let h=i,m=0;for(;h!==r;)m+=a[h++],h=h%t;if(r=(r+1)%t,r===i&&(i=(i+1)%t),f-s<n)return;const p=u&&f-u;return p?Math.round(m*1e3/p):void 0}}function G0(t,n){let a=0,o=1e3/n,r,i;const s=(f,u=Date.now())=>{a=u,r=null,i&&(clearTimeout(i),i=null),t.apply(null,f)};return[(...f)=>{const u=Date.now(),h=u-a;h>=o?s(f,u):(r=f,i||(i=setTimeout(()=>{i=null,s(r)},o-h)))},()=>r&&s(r)]}const bn=(t,n,a=3)=>{let o=0;const r=j0(50,250);return G0(i=>{const s=i.loaded,l=i.lengthComputable?i.total:void 0,d=s-o,f=r(d),u=s<=l;o=s;const h={loaded:s,total:l,progress:l?s/l:void 0,bytes:d,rate:f||void 0,estimated:f&&l&&u?(l-s)/f:void 0,event:i,lengthComputable:l!=null,[n?"download":"upload"]:!0};t(h)},a)},Do=(t,n)=>{const a=t!=null;return[o=>n[0]({lengthComputable:a,total:t,loaded:o}),n[1]]},Lo=t=>(...n)=>W.asap(()=>t(...n)),q0=We.hasStandardBrowserEnv?((t,n)=>a=>(a=new URL(a,We.origin),t.protocol===a.protocol&&t.host===a.host&&(n||t.port===a.port)))(new URL(We.origin),We.navigator&&/(msie|trident)/i.test(We.navigator.userAgent)):()=>!0,I0=We.hasStandardBrowserEnv?{write(t,n,a,o,r,i){const s=[t+"="+encodeURIComponent(n)];W.isNumber(a)&&s.push("expires="+new Date(a).toGMTString()),W.isString(o)&&s.push("path="+o),W.isString(r)&&s.push("domain="+r),i===!0&&s.push("secure"),document.cookie=s.join("; ")},read(t){const n=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return n?decodeURIComponent(n[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function W0(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function U0(t,n){return n?t.replace(/\/?\/$/,"")+"/"+n.replace(/^\/+/,""):t}function Fo(t,n,a){let o=!W0(n);return t&&(o||a==!1)?U0(t,n):n}const $o=t=>t instanceof Je?{...t}:t;function Nt(t,n){n=n||{};const a={};function o(f,u,h,m){return W.isPlainObject(f)&&W.isPlainObject(u)?W.merge.call({caseless:m},f,u):W.isPlainObject(u)?W.merge({},u):W.isArray(u)?u.slice():u}function r(f,u,h,m){if(W.isUndefined(u)){if(!W.isUndefined(f))return o(void 0,f,h,m)}else return o(f,u,h,m)}function i(f,u){if(!W.isUndefined(u))return o(void 0,u)}function s(f,u){if(W.isUndefined(u)){if(!W.isUndefined(f))return o(void 0,f)}else return o(void 0,u)}function l(f,u,h){if(h in n)return o(f,u);if(h in t)return o(void 0,f)}const d={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:l,headers:(f,u,h)=>r($o(f),$o(u),h,!0)};return W.forEach(Object.keys(Object.assign({},t,n)),function(u){const h=d[u]||r,m=h(t[u],n[u],u);W.isUndefined(m)&&h!==l||(a[u]=m)}),a}const _o=t=>{const n=Nt({},t);let{data:a,withXSRFToken:o,xsrfHeaderName:r,xsrfCookieName:i,headers:s,auth:l}=n;n.headers=s=Je.from(s),n.url=So(Fo(n.baseURL,n.url,n.allowAbsoluteUrls),t.params,t.paramsSerializer),l&&s.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):"")));let d;if(W.isFormData(a)){if(We.hasStandardBrowserEnv||We.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if((d=s.getContentType())!==!1){const[f,...u]=d?d.split(";").map(h=>h.trim()).filter(Boolean):[];s.setContentType([f||"multipart/form-data",...u].join("; "))}}if(We.hasStandardBrowserEnv&&(o&&W.isFunction(o)&&(o=o(n)),o||o!==!1&&q0(n.url))){const f=r&&i&&I0.read(i);f&&s.set(r,f)}return n},Z0=typeof XMLHttpRequest<"u"&&function(t){return new Promise(function(a,o){const r=_o(t);let i=r.data;const s=Je.from(r.headers).normalize();let{responseType:l,onUploadProgress:d,onDownloadProgress:f}=r,u,h,m,p,c;function g(){p&&p(),c&&c(),r.cancelToken&&r.cancelToken.unsubscribe(u),r.signal&&r.signal.removeEventListener("abort",u)}let y=new XMLHttpRequest;y.open(r.method.toUpperCase(),r.url,!0),y.timeout=r.timeout;function b(){if(!y)return;const E=Je.from("getAllResponseHeaders"in y&&y.getAllResponseHeaders()),v={data:!l||l==="text"||l==="json"?y.responseText:y.response,status:y.status,statusText:y.statusText,headers:E,config:t,request:y};To(function(_){a(_),g()},function(_){o(_),g()},v),y=null}"onloadend"in y?y.onloadend=b:y.onreadystatechange=function(){!y||y.readyState!==4||y.status===0&&!(y.responseURL&&y.responseURL.indexOf("file:")===0)||setTimeout(b)},y.onabort=function(){y&&(o(new Be("Request aborted",Be.ECONNABORTED,t,y)),y=null)},y.onerror=function(){o(new Be("Network Error",Be.ERR_NETWORK,t,y)),y=null},y.ontimeout=function(){let x=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const v=r.transitional||Vo;r.timeoutErrorMessage&&(x=r.timeoutErrorMessage),o(new Be(x,v.clarifyTimeoutError?Be.ETIMEDOUT:Be.ECONNABORTED,t,y)),y=null},i===void 0&&s.setContentType(null),"setRequestHeader"in y&&W.forEach(s.toJSON(),function(x,v){y.setRequestHeader(v,x)}),W.isUndefined(r.withCredentials)||(y.withCredentials=!!r.withCredentials),l&&l!=="json"&&(y.responseType=r.responseType),f&&([m,c]=bn(f,!0),y.addEventListener("progress",m)),d&&y.upload&&([h,p]=bn(d),y.upload.addEventListener("progress",h),y.upload.addEventListener("loadend",p)),(r.cancelToken||r.signal)&&(u=E=>{y&&(o(!E||E.type?new _t(null,t,y):E),y.abort(),y=null)},r.cancelToken&&r.cancelToken.subscribe(u),r.signal&&(r.signal.aborted?u():r.signal.addEventListener("abort",u)));const w=z0(r.url);if(w&&We.protocols.indexOf(w)===-1){o(new Be("Unsupported protocol "+w+":",Be.ERR_BAD_REQUEST,t));return}y.send(i||null)})},Y0=(t,n)=>{const{length:a}=t=t?t.filter(Boolean):[];if(n||a){let o=new AbortController,r;const i=function(f){if(!r){r=!0,l();const u=f instanceof Error?f:this.reason;o.abort(u instanceof Be?u:new _t(u instanceof Error?u.message:u))}};let s=n&&setTimeout(()=>{s=null,i(new Be(`timeout ${n} of ms exceeded`,Be.ETIMEDOUT))},n);const l=()=>{t&&(s&&clearTimeout(s),s=null,t.forEach(f=>{f.unsubscribe?f.unsubscribe(i):f.removeEventListener("abort",i)}),t=null)};t.forEach(f=>f.addEventListener("abort",i));const{signal:d}=o;return d.unsubscribe=()=>W.asap(l),d}},X0=function*(t,n){let a=t.byteLength;if(a<n){yield t;return}let o=0,r;for(;o<a;)r=o+n,yield t.slice(o,r),o=r},K0=async function*(t,n){for await(const a of Q0(t))yield*X0(a,n)},Q0=async function*(t){if(t[Symbol.asyncIterator]){yield*t;return}const n=t.getReader();try{for(;;){const{done:a,value:o}=await n.read();if(a)break;yield o}}finally{await n.cancel()}},Po=(t,n,a,o)=>{const r=K0(t,n);let i=0,s,l=d=>{s||(s=!0,o&&o(d))};return new ReadableStream({async pull(d){try{const{done:f,value:u}=await r.next();if(f){l(),d.close();return}let h=u.byteLength;if(a){let m=i+=h;a(m)}d.enqueue(new Uint8Array(u))}catch(f){throw l(f),f}},cancel(d){return l(d),r.return()}},{highWaterMark:2})},wn=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Oo=wn&&typeof ReadableStream=="function",J0=wn&&(typeof TextEncoder=="function"?(t=>n=>t.encode(n))(new TextEncoder):async t=>new Uint8Array(await new Response(t).arrayBuffer())),Ro=(t,...n)=>{try{return!!t(...n)}catch{return!1}},es=Oo&&Ro(()=>{let t=!1;const n=new Request(We.origin,{body:new ReadableStream,method:"POST",get duplex(){return t=!0,"half"}}).headers.has("Content-Type");return t&&!n}),Ho=64*1024,ra=Oo&&Ro(()=>W.isReadableStream(new Response("").body)),En={stream:ra&&(t=>t.body)};wn&&(t=>{["text","arrayBuffer","blob","formData","stream"].forEach(n=>{!En[n]&&(En[n]=W.isFunction(t[n])?a=>a[n]():(a,o)=>{throw new Be(`Response type '${n}' is not supported`,Be.ERR_NOT_SUPPORT,o)})})})(new Response);const ts=async t=>{if(t==null)return 0;if(W.isBlob(t))return t.size;if(W.isSpecCompliantForm(t))return(await new Request(We.origin,{method:"POST",body:t}).arrayBuffer()).byteLength;if(W.isArrayBufferView(t)||W.isArrayBuffer(t))return t.byteLength;if(W.isURLSearchParams(t)&&(t=t+""),W.isString(t))return(await J0(t)).byteLength},ns=async(t,n)=>{const a=W.toFiniteNumber(t.getContentLength());return a??ts(n)},ia={http:v0,xhr:Z0,fetch:wn&&(async t=>{let{url:n,method:a,data:o,signal:r,cancelToken:i,timeout:s,onDownloadProgress:l,onUploadProgress:d,responseType:f,headers:u,withCredentials:h="same-origin",fetchOptions:m}=_o(t);f=f?(f+"").toLowerCase():"text";let p=Y0([r,i&&i.toAbortSignal()],s),c;const g=p&&p.unsubscribe&&(()=>{p.unsubscribe()});let y;try{if(d&&es&&a!=="get"&&a!=="head"&&(y=await ns(u,o))!==0){let v=new Request(n,{method:"POST",body:o,duplex:"half"}),D;if(W.isFormData(o)&&(D=v.headers.get("content-type"))&&u.setContentType(D),v.body){const[_,C]=Do(y,bn(Lo(d)));o=Po(v.body,Ho,_,C)}}W.isString(h)||(h=h?"include":"omit");const b="credentials"in Request.prototype;c=new Request(n,{...m,signal:p,method:a.toUpperCase(),headers:u.normalize().toJSON(),body:o,duplex:"half",credentials:b?h:void 0});let w=await fetch(c,m);const E=ra&&(f==="stream"||f==="response");if(ra&&(l||E&&g)){const v={};["status","statusText","headers"].forEach(k=>{v[k]=w[k]});const D=W.toFiniteNumber(w.headers.get("content-length")),[_,C]=l&&Do(D,bn(Lo(l),!0))||[];w=new Response(Po(w.body,Ho,_,()=>{C&&C(),g&&g()}),v)}f=f||"text";let x=await En[W.findKey(En,f)||"text"](w,t);return!E&&g&&g(),await new Promise((v,D)=>{To(v,D,{data:x,headers:Je.from(w.headers),status:w.status,statusText:w.statusText,config:t,request:c})})}catch(b){throw g&&g(),b&&b.name==="TypeError"&&/Load failed|fetch/i.test(b.message)?Object.assign(new Be("Network Error",Be.ERR_NETWORK,t,c),{cause:b.cause||b}):Be.from(b,b&&b.code,t,c)}})};W.forEach(ia,(t,n)=>{if(t){try{Object.defineProperty(t,"name",{value:n})}catch{}Object.defineProperty(t,"adapterName",{value:n})}});const zo=t=>`- ${t}`,as=t=>W.isFunction(t)||t===null||t===!1,jo={getAdapter:t=>{t=W.isArray(t)?t:[t];const{length:n}=t;let a,o;const r={};for(let i=0;i<n;i++){a=t[i];let s;if(o=a,!as(a)&&(o=ia[(s=String(a)).toLowerCase()],o===void 0))throw new Be(`Unknown adapter '${s}'`);if(o)break;r[s||"#"+i]=o}if(!o){const i=Object.entries(r).map(([l,d])=>`adapter ${l} `+(d===!1?"is not supported by the environment":"is not available in the build"));let s=n?i.length>1?`since :
|
|
4
|
-
`+
|
|
5
|
-
`):" "+
|
|
6
|
-
`+i):o.stack=i}catch{}}throw o}}_request(n,a){typeof n=="string"?(a=a||{},a.url=n):a=n||{},a=Nt(this.defaults,a);const{transitional:o,paramsSerializer:r,headers:i}=a;o!==void 0&&Cn.assertOptions(o,{silentJSONParsing:lt.transitional(lt.boolean),forcedJSONParsing:lt.transitional(lt.boolean),clarifyTimeoutError:lt.transitional(lt.boolean)},!1),r!=null&&(W.isFunction(r)?a.paramsSerializer={serialize:r}:Cn.assertOptions(r,{encode:lt.function,serialize:lt.function},!0)),a.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?a.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:a.allowAbsoluteUrls=!0),Cn.assertOptions(a,{baseUrl:lt.spelling("baseURL"),withXsrfToken:lt.spelling("withXSRFToken")},!0),a.method=(a.method||this.defaults.method||"get").toLowerCase();let s=i&&W.merge(i.common,i[a.method]);i&&W.forEach(["delete","get","head","post","put","patch","common"],c=>{delete i[c]}),a.headers=Je.concat(s,i);const l=[];let d=!0;this.interceptors.request.forEach(function(g){typeof g.runWhen=="function"&&g.runWhen(a)===!1||(d=d&&g.synchronous,l.unshift(g.fulfilled,g.rejected))});const f=[];this.interceptors.response.forEach(function(g){f.push(g.fulfilled,g.rejected)});let u,h=0,m;if(!d){const c=[Go.bind(this),void 0];for(c.unshift.apply(c,l),c.push.apply(c,f),m=c.length,u=Promise.resolve(a);h<m;)u=u.then(c[h++],c[h++]);return u}m=l.length;let p=a;for(h=0;h<m;){const c=l[h++],g=l[h++];try{p=c(p)}catch(y){g.call(this,y);break}}try{u=Go.call(this,p)}catch(c){return Promise.reject(c)}for(h=0,m=f.length;h<m;)u=u.then(f[h++],f[h++]);return u}getUri(n){n=Nt(this.defaults,n);const a=Fo(n.baseURL,n.url,n.allowAbsoluteUrls);return So(a,n.params,n.paramsSerializer)}};W.forEach(["delete","get","head","options"],function(n){At.prototype[n]=function(a,o){return this.request(Nt(o||{},{method:n,url:a,data:(o||{}).data}))}}),W.forEach(["post","put","patch"],function(n){function a(o){return function(i,s,l){return this.request(Nt(l||{},{method:n,headers:o?{"Content-Type":"multipart/form-data"}:{},url:i,data:s}))}}At.prototype[n]=a(),At.prototype[n+"Form"]=a(!0)});let rs=class fi{constructor(n){if(typeof n!="function")throw new TypeError("executor must be a function.");let a;this.promise=new Promise(function(i){a=i});const o=this;this.promise.then(r=>{if(!o._listeners)return;let i=o._listeners.length;for(;i-- >0;)o._listeners[i](r);o._listeners=null}),this.promise.then=r=>{let i;const s=new Promise(l=>{o.subscribe(l),i=l}).then(r);return s.cancel=function(){o.unsubscribe(i)},s},n(function(i,s,l){o.reason||(o.reason=new _t(i,s,l),a(o.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(n){if(this.reason){n(this.reason);return}this._listeners?this._listeners.push(n):this._listeners=[n]}unsubscribe(n){if(!this._listeners)return;const a=this._listeners.indexOf(n);a!==-1&&this._listeners.splice(a,1)}toAbortSignal(){const n=new AbortController,a=o=>{n.abort(o)};return this.subscribe(a),n.signal.unsubscribe=()=>this.unsubscribe(a),n.signal}static source(){let n;return{token:new fi(function(r){n=r}),cancel:n}}};function is(t){return function(a){return t.apply(null,a)}}function ss(t){return W.isObject(t)&&t.isAxiosError===!0}const la={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(la).forEach(([t,n])=>{la[n]=t});function Wo(t){const n=new At(t),a=co(At.prototype.request,n);return W.extend(a,At.prototype,n,{allOwnKeys:!0}),W.extend(a,n,null,{allOwnKeys:!0}),a.create=function(r){return Wo(Nt(t,r))},a}const He=Wo(Kt);He.Axios=At,He.CanceledError=_t,He.CancelToken=rs,He.isCancel=Ao,He.VERSION=qo,He.toFormData=kn,He.AxiosError=Be,He.Cancel=He.CanceledError,He.all=function(n){return Promise.all(n)},He.spread=is,He.isAxiosError=ss,He.mergeConfig=Nt,He.AxiosHeaders=Je,He.formToJSON=t=>Mo(W.isHTMLForm(t)?new FormData(t):t),He.getAdapter=jo.getAdapter,He.HttpStatusCode=la,He.default=He;const{Axios:Kx,AxiosError:Qx,CanceledError:Jx,isCancel:eb,CancelToken:tb,VERSION:nb,all:ab,Cancel:ob,isAxiosError:rb,spread:ib,toFormData:sb,AxiosHeaders:lb,HttpStatusCode:cb,formToJSON:db,getAdapter:ub,mergeConfig:mb}=He,Uo=Vt.defineStore("auth",{state:()=>({jwtToken:null}),actions:{setToken(t){this.jwtToken=t},clearToken(){this.jwtToken=null}},getters:{getToken:t=>t.jwtToken}}),Ue=He.create({baseURL:"https://back.dev-smclick.com.br/"});let ca=null;const ls=()=>(ca||(ca=Uo()),ca);Ue.interceptors.request.use(t=>{try{const a=ls().jwtToken;a?t.headers.Authorization=`Bearer ${a}`:console.warn("JWT token não configurado em api request")}catch(n){console.warn("Erro ao acessar authStore no interceptor:",n)}return t},t=>Promise.reject(t));const cs="v1/api/attendances/attendant/",ds="v1/api/attendances/department/",da="v1/api/attendances/internal_chat/",us="v1/api/instances/instance/",ms="v1/api/crm/event/scheduled_message/",fs="v1/api/crm/event/calendar",hs="v1/api/crm/products/",ps="v1/api/contacts/tag/",gs="/v1/api/contacts/segmentation_field/",ys="v1/api/attendances/calls/",ua=Vt.defineStore("instance",{state:()=>({instances:[],count:null,loaded:!1}),actions:{async fetchInstances(t=""){try{let n=`${us}`;const a=await Ue.get(n);this.instances=a.data,await Promise.all(this.instances.map(async o=>{o.isLoading=!0;try{const r=o.last_instance_status;r==="DISCONNECTED"||r==="UNDEFINED"?o.status=!1:o.status=!0}catch(r){console.log(r),o.status="Offline"}o.isLoading=!1})),this.count=this.instances.length,this.loaded=!0}catch(n){console.log("Erro ao buscar instâncias:",n),this.loaded=!0}},removeInstance(t){this.instances=this.instances.filter(n=>n.id!==t),this.count=this.instances.length},addInstance(t){const n=this.instances.findIndex(a=>a.id===t.id);n!==-1?this.instances[n]=t:this.instances.push(t),this.count=this.instances.length}}}),ks={class:"w-full relative text-current"},xs={class:"flex cursor-pointer justify-between items-center"},bs={key:0},ws={key:0},Es={key:1,class:"flex items-center gap-2"},vs={class:"flex gap-3 items-center flex-shrink-0"},Cs={key:0,xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",class:"w-5 h-5 text-green-400",viewBox:"0 0 16 16"},Ss={key:1,class:"relative"},Bs={style:{color:"#0081FB",width:"20px",height:"20px"},xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",class:"icon-meta",viewBox:"0 0 16 16"},Vs={class:"my-auto text-center mx-auto group-hover:inline-block"},Ms={key:1,class:"flex justify-center"},Ns={class:"w-full"},As={key:1,class:"flex items-center gap-2 justify-center"},Ts={class:"flex px-4 items-center gap-2"},Ds={key:0,class:"absolute top-[48px] w-full z-20 text-sm"},Ls={class:"gap-2 rounded-b-lg flex overflow-y-auto p-2 shadow shadow-black dark:shadow-gray-400 bg-base-300 max-h-[200px] flex-col"},Fs={class:"select-none cursor-pointer w-full"},$s=["onClick","disabled"],_s={class:"flex w-full items-center pl-2 gap-3"},Ps={key:0,xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",class:"w-4 h-4 flex-shrink-0 text-green-400",viewBox:"0 0 16 16"},Os={key:1,class:"relative"},Rs={style:{color:"#0081FB"},xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",class:"icon-meta",viewBox:"0 0 16 16"},Hs={key:0,class:"w-6 h-6 flex-shrink-0","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"currentColor",viewBox:"0 0 24 24"},zs={class:"w-full text-center"},js={class:"my-auto text-center mx-auto group-hover:inline-block"},Gs={key:1,class:"flex justify-center"},qs={class:"flex min-w-[50px] text-sm text-center items-center my-auto flex-shrink-0 px-1 justify-center"},Is={key:1,class:"p-4"},Zo={__name:"index",props:{modelValue:{type:Object,default:null},type:{type:String},webhooks:{type:Boolean,default:void 0}},emits:["update:modelValue","function","component-mounted"],setup(t,{emit:n}){const a=ua(),o=e.ref(!1),r=e.ref(null),i=t,s=n;function l(d){r.value=d,s("function",d)}return e.watch(()=>i.modelValue,d=>{r.value=d},{immediate:!0}),e.watch(r,d=>{s("update:modelValue",d)}),e.onMounted(async()=>{if(r.value){const d=a.instances.find(f=>f.id===r.value.id);d&&(r.value.status=d.status)}s("component-mounted")}),(d,f)=>{const u=e.resolveComponent("Popper");return e.openBlock(),e.createElementBlock("main",ks,[e.createElementVNode("div",{class:e.normalizeClass([{"rounded-b-none":o.value},"rounded-lg shadow dark:shadow-gray-400 shadow-gray-900 dark:bg-base-100 bg-base-100 text-center"])},[e.createElementVNode("div",xs,[e.createElementVNode("p",{onClick:f[0]||(f[0]=h=>o.value=!o.value),class:"w-full p-3 px-4 select-none"},[e.unref(a).loaded?(e.openBlock(),e.createElementBlock("div",bs,[r.value?(e.openBlock(),e.createElementBlock("span",Es,[e.createElementVNode("header",vs,[r.value.type==="whatsapp-qrcode"?(e.openBlock(),e.createElementBlock("svg",Cs,f[3]||(f[3]=[e.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"},null,-1)]))):r.value.type==="whatsapp-api-official"?(e.openBlock(),e.createElementBlock("div",Ss,[f[5]||(f[5]=e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",class:"w-5 h-5 text-green-400",viewBox:"0 0 16 16"},[e.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)),(e.openBlock(),e.createElementBlock("svg",Bs,f[4]||(f[4]=[e.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.createCommentVNode("",!0),r.value&&r.value.status!==void 0?(e.openBlock(),e.createBlock(u,{key:2,class:"dark:popper-light popper-dark",hover:!0,placement:"top"},{content:e.withCtx(()=>[e.createElementVNode("main",{class:e.normalizeClass(["p-1 rounded text-sm px-3",{"bg-red-500":r.value.status===!1,"bg-green-500":r.value.status===!0,"bg-purple-500":r.value.status==="Offline"}])},[e.createElementVNode("div",Vs,e.toDisplayString(r.value.status===!0?"Conectada":r.value.status===!1?"Desconectada":"Indefinida"),1)],2)]),default:e.withCtx(()=>[r.value.isLoading?(e.openBlock(),e.createElementBlock("div",Ms,f[6]||(f[6]=[e.createElementVNode("div",{class:"h-5 w-5 border-t-transparent border-solid animate-spin rounded-full border-white border-4"},null,-1)]))):(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass([{"bg-red-500":r.value.status===!1,"bg-green-500":r.value.status===!0,"bg-purple-500":r.value.status==="Offline"},"text-xs w-5 h-5 py-1 shadow flex justify-start shadow-gray-900 dark:shadow-gray-400 rounded-full cursor-pointer transition-all duration-200 ease-in-out"])},null,2))]),_:1})):e.createCommentVNode("",!0)]),e.createElementVNode("div",Ns,e.toDisplayString(r.value.name),1)])):(e.openBlock(),e.createElementBlock("span",ws,e.toDisplayString(e.unref(a).instances?e.unref(a).instances.length:"Sem")+" Instâncias disponíveis",1))])):(e.openBlock(),e.createElementBlock("div",As,f[7]||(f[7]=[e.createElementVNode("svg",{"aria-hidden":"true",class:"inline w-5 h-5 text-blue-300 animate-spin fill-gray-600",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),e.createElementVNode("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})],-1),e.createTextVNode("Inicializando instâncias...")])))]),e.createElementVNode("footer",Ts,[e.createElementVNode("button",{onClick:f[1]||(f[1]=h=>(r.value=null,o.value=!1))},f[8]||(f[8]=[e.createElementVNode("svg",{class:"w-4 h-4","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},[e.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.createElementVNode("button",{onClick:f[2]||(f[2]=h=>o.value=!o.value)},[(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass([{"rotate-180":o.value},"w-4 h-4 ease-out transition"]),"aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},f[9]||(f[9]=[e.createElementVNode("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m19 9-7 7-7-7"},null,-1)]),2))])])])],2),o.value?(e.openBlock(),e.createElementBlock("nav",Ds,[e.createElementVNode("ul",Ls,[e.unref(a).instances.length>0?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(e.unref(a).instances,(h,m)=>{var p;return e.openBlock(),e.createElementBlock("li",Fs,[e.createElementVNode("button",{class:e.normalizeClass([r.value&&r.value.id===h.id?"bg-base-100":"bg-base-200 hover:bg-base-100","flex rounded-md justify-between items-center p-2 px-1 w-full"]),onClick:c=>(r.value=h,o.value=!1,l(h)),disabled:r.value&&r.value.id===h.id||t.type&&h.type!==t.type||t.webhooks!==void 0&&t.webhooks!==((p=h.config)==null?void 0:p.webhooks)},[e.createElementVNode("div",_s,[h.type==="whatsapp-qrcode"?(e.openBlock(),e.createElementBlock("svg",Ps,f[10]||(f[10]=[e.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"},null,-1)]))):h.type==="whatsapp-api-official"?(e.openBlock(),e.createElementBlock("div",Os,[f[12]||(f[12]=e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",class:"w-4 h-4 flex-shrink-0 text-green-400",viewBox:"0 0 16 16"},[e.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)),(e.openBlock(),e.createElementBlock("svg",Rs,f[11]||(f[11]=[e.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.createCommentVNode("",!0),e.createVNode(u,{class:"dark:popper-light popper-dark",hover:!0,placement:"top"},{content:e.withCtx(()=>[e.createElementVNode("span",null,e.toDisplayString(t.type&&h.type!==t.type?"Não é possível utilizar esse tipo de Instância neste recurso":t.webhooks===!0?"Essa instância está com o Atendimento desabilitado":"Essa aplicação é somente para instâncias sem atendimento habilitado."),1)]),default:e.withCtx(()=>{var c;return[t.type&&h.type!==t.type||t.webhooks!==void 0&&t.webhooks!==((c=h.config)==null?void 0:c.webhooks)?(e.openBlock(),e.createElementBlock("svg",Hs,f[13]||(f[13]=[e.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"},null,-1)]))):e.createCommentVNode("",!0)]}),_:2},1024),e.createElementVNode("p",zs,e.toDisplayString(h.name),1),e.createVNode(u,{class:"dark:popper-light popper-dark",hover:!0,placement:"top"},{content:e.withCtx(()=>[e.createElementVNode("main",{class:e.normalizeClass(["p-1 rounded px-3",{"bg-red-500":h.status===!1,"bg-green-500":h.status===!0,"bg-purple-500":h.status==="Offline"}])},[e.createElementVNode("div",js,e.toDisplayString(h.status===!0?"Conectada":h.status===!1?"Desconectada":"Indefinida"),1)],2)]),default:e.withCtx(()=>[h.isLoading?(e.openBlock(),e.createElementBlock("div",Gs,f[14]||(f[14]=[e.createElementVNode("div",{class:"h-5 w-5 border-t-transparent border-solid animate-spin rounded-full border-white border-4"},null,-1)]))):(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass([{"bg-red-500":h.status===!1,"bg-green-500":h.status===!0,"bg-purple-500":h.status==="Offline"},"text-xs w-5 h-5 py-1 shadow flex justify-start shadow-gray-900 dark:shadow-gray-400 rounded-full cursor-pointer transition-all duration-200 ease-in-out"])},null,2))]),_:2},1024)]),e.createElementVNode("div",qs,[h.telephone?(e.openBlock(),e.createBlock(u,{key:0,class:"dark:popper-light popper-dark",hover:!0,placement:"top"},{content:e.withCtx(()=>[e.createElementVNode("div",null,e.toDisplayString(h.telephone?`${h.telephone}`:""),1)]),default:e.withCtx(()=>[f[15]||(f[15]=e.createElementVNode("svg",{class:"w-6 h-6","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"currentColor",viewBox:"0 0 24 24"},[e.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))]),_:2,__:[15]},1024)):e.createCommentVNode("",!0)])],10,$s)])}),256)):(e.openBlock(),e.createElementBlock("div",Is," Sem instâncias disponíveis"))])])):e.createCommentVNode("",!0)])}}},Ws=["aria-labelledby","aria-describedby"],Us={class:"cpk-popover__header border-base-100"},Zs=["id"],Ys=["disabled"],Xs=["id"],Ks={class:"cpk-popover__details bg-base-200 border border-base-100"},Qs={class:"cpk-popover__footer"},Js=["disabled"],el=["disabled"],tl={key:0,class:"loading-spinner"},nl=Ce({__name:"confirmModal",props:{modelValue:{type:Boolean,default:!1},title:{type:String,default:"Confirmar ação"},description:{type:String,default:""},confirmLabel:{type:String,default:"Confirmar"},cancelLabel:{type:String,default:"Cancelar"},loadingLabel:{type:String,default:"Processando…"},loading:{type:Boolean,default:!1},destructive:{type:Boolean,default:!1},context:{type:Object,default:()=>({})},anchorEl:{type:[HTMLElement,Object],default:null},anchorRect:{type:Object,default:null},placement:{type:String,default:"auto"},align:{type:String,default:"center"},offset:{type:Number,default:10},viewportPadding:{type:Number,default:8}},emits:["update:modelValue","confirm","cancel"],setup(t,{emit:n}){const a=t,o=n,r=e.computed({get:()=>a.modelValue,set:x=>o("update:modelValue",x)}),i=e.ref(null),s=e.ref({left:0,top:0,p:"bottom"}),l={title:`cpk-popover-title-${Math.random().toString(36).slice(2)}`,desc:`cpk-popover-desc-${Math.random().toString(36).slice(2)}`};function d(){o("cancel",a.context),r.value=!1}function f(){a.loading||o("confirm",a.context)}let u,h,m=[];function p(){if(a.anchorRect)return a.anchorRect;const x=a.anchorEl instanceof Element?a.anchorEl:null;if(x)return x.getBoundingClientRect();const v=document.activeElement instanceof Element?document.activeElement:null;return v?v.getBoundingClientRect():{left:window.__lastMouseX??window.innerWidth/2,top:window.__lastMouseY??window.innerHeight/2,width:1,height:1,right:(window.__lastMouseX??0)+1,bottom:(window.__lastMouseY??0)+1}}function c(){if(!r.value)return;const x=window.innerWidth,v=window.innerHeight,D=a.viewportPadding,_=p(),C=i.value?i.value.getBoundingClientRect():{width:320,height:200},k=a.placement==="auto"?["bottom","top","right","left"]:[a.placement];let N=k[0],S=0,B=0;const A=_.left+_.width/2-C.width/2,M=_.top+_.height/2-C.height/2,H=_.left,ie=_.left+_.width-C.width,Q=_.top,fe=_.top+_.height-C.height;for(const F of k){if(F==="bottom"&&(B=_.bottom+a.offset,S=a.align==="start"?H:a.align==="end"?ie:A,B+C.height+D<=v)){N="bottom";break}if(F==="top"&&(B=_.top-C.height-a.offset,S=a.align==="start"?H:a.align==="end"?ie:A,B>=D)){N="top";break}if(F==="right"&&(S=_.right+a.offset,B=a.align==="start"?Q:a.align==="end"?fe:M,S+C.width+D<=x)){N="right";break}if(F==="left"&&(S=_.left-C.width-a.offset,B=a.align==="start"?Q:a.align==="end"?fe:M,S>=D)){N="left";break}}S=Math.min(Math.max(D,S),x-C.width-D),B=Math.min(Math.max(D,B),v-C.height-D),s.value={left:S,top:B,p:N}}function g(){y();let v=a.anchorEl instanceof Element?a.anchorEl:document.body;for(;v&&v!==document.body;)m.push(v),v=v.parentElement;m.push(window),m.forEach(D=>D.addEventListener("scroll",c,{passive:!0}))}function y(){m.forEach(x=>{var v;return(v=x.removeEventListener)==null?void 0:v.call(x,"scroll",c)}),m=[]}e.watch(()=>r.value,async x=>{var v;if(x){await e.nextTick(),c(),g(),u=new ResizeObserver(c),u.observe(document.body);const D=a.anchorEl instanceof Element?a.anchorEl:null;D&&((v=h==null?void 0:h.disconnect)==null||v.call(h),h=new ResizeObserver(c),h.observe(D)),window.addEventListener("resize",c),window.addEventListener("keydown",b)}else w()}),e.watch(()=>a.anchorEl,async x=>{var D;if(!r.value)return;await e.nextTick(),y(),g(),(D=h==null?void 0:h.disconnect)==null||D.call(h);const v=x instanceof Element?x:null;v&&(h=new ResizeObserver(c),h.observe(v)),c()}),e.watch(()=>a.anchorRect,()=>{r.value&&c()}),e.watch(()=>[a.placement,a.align,a.offset,a.viewportPadding],()=>{r.value&&c()});function b(x){x.key==="Escape"&&d(),x.key==="Enter"&&f()}e.onMounted(()=>{window.addEventListener("mousemove",x=>{window.__lastMouseX=x.clientX,window.__lastMouseY=x.clientY},{passive:!0})}),e.onBeforeUnmount(w);function w(){y(),window.removeEventListener("resize",c),window.removeEventListener("keydown",b),u&&u.disconnect(),h&&h.disconnect()}const E=e.computed(()=>({left:`${s.value.left}px`,top:`${s.value.top}px`}));return(x,v)=>(e.openBlock(),e.createBlock(e.Transition,{name:"cpk-layer",appear:""},{default:e.withCtx(()=>[r.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"cpk-popover-layer",onMousedown:e.withModifiers(d,["self"])},[e.createVNode(e.Transition,{name:"cpk-card",appear:""},{default:e.withCtx(()=>[e.createElementVNode("div",{ref_key:"card",ref:i,class:e.normalizeClass(["cpk-popover bg-base-300",[{"is-loading":t.loading,"is-danger":t.destructive}]]),style:e.normalizeStyle(E.value),role:"dialog","aria-modal":"false","aria-labelledby":l.title,"aria-describedby":l.desc},[e.createElementVNode("div",Us,[v[0]||(v[0]=e.createElementVNode("div",{class:"cpk-popover__icon","aria-hidden":"true"},"!",-1)),e.createElementVNode("h3",{class:"cpk-popover__title",id:l.title},e.toDisplayString(t.title),9,Zs),e.createElementVNode("button",{class:"cpk-popover__close",type:"button",onClick:d,disabled:t.loading,"aria-label":"Fechar"}," × ",8,Ys)]),t.description?(e.openBlock(),e.createElementBlock("p",{key:0,class:"cpk-popover__desc",id:l.desc},e.toDisplayString(t.description),9,Xs)):e.createCommentVNode("",!0),e.createElementVNode("div",Ks,[e.renderSlot(x.$slots,"details",{},void 0,!0)]),e.createElementVNode("div",Qs,[e.createElementVNode("button",{type:"button",class:"cyber-button cyber-button--md",onClick:d,disabled:t.loading},e.toDisplayString(t.cancelLabel),9,Js),e.createElementVNode("button",{type:"button",class:e.normalizeClass(["cyber-button","cyber-button--md",t.destructive?"cyber-button--danger":"cyber-button--accent"]),onClick:f,disabled:t.loading},[t.loading?(e.openBlock(),e.createElementBlock("span",tl)):e.createCommentVNode("",!0),e.createElementVNode("span",null,e.toDisplayString(t.loading?t.loadingLabel:t.confirmLabel),1)],10,el)])],14,Ws)]),_:3})],32)):e.createCommentVNode("",!0)]),_:3}))}},[["__scopeId","data-v-b23001fc"]]);function Pt(t){return(n={})=>{const a=n.width?String(n.width):t.defaultWidth;return t.formats[a]||t.formats[t.defaultWidth]}}function ct(t){return(n,a)=>{const o=a!=null&&a.context?String(a.context):"standalone";let r;if(o==="formatting"&&t.formattingValues){const s=t.defaultFormattingWidth||t.defaultWidth,l=a!=null&&a.width?String(a.width):s;r=t.formattingValues[l]||t.formattingValues[s]}else{const s=t.defaultWidth,l=a!=null&&a.width?String(a.width):t.defaultWidth;r=t.values[l]||t.values[s]}const i=t.argumentCallback?t.argumentCallback(n):n;return r[i]}}function dt(t){return(n,a={})=>{const o=a.width,r=o&&t.matchPatterns[o]||t.matchPatterns[t.defaultMatchWidth],i=n.match(r);if(!i)return null;const s=i[0],l=o&&t.parsePatterns[o]||t.parsePatterns[t.defaultParseWidth],d=Array.isArray(l)?ol(l,h=>h.test(s)):al(l,h=>h.test(s));let f;f=t.valueCallback?t.valueCallback(d):d,f=a.valueCallback?a.valueCallback(f):f;const u=n.slice(s.length);return{value:f,rest:u}}}function al(t,n){for(const a in t)if(Object.prototype.hasOwnProperty.call(t,a)&&n(t[a]))return a}function ol(t,n){for(let a=0;a<t.length;a++)if(n(t[a]))return a}function Yo(t){return(n,a={})=>{const o=n.match(t.matchPattern);if(!o)return null;const r=o[0],i=n.match(t.parsePattern);if(!i)return null;let s=t.valueCallback?t.valueCallback(i[0]):i[0];s=a.valueCallback?a.valueCallback(s):s;const l=n.slice(r.length);return{value:s,rest:l}}}const Xo=6048e5,rl=864e5,Ko=Symbol.for("constructDateFrom");function et(t,n){return typeof t=="function"?t(n):t&&typeof t=="object"&&Ko in t?t[Ko](n):t instanceof Date?new t.constructor(n):new Date(n)}function ma(t,...n){const a=et.bind(null,n.find(o=>typeof o=="object"));return n.map(a)}let il={};function Sn(){return il}function nt(t,n){return et(n||t,t)}function Tt(t,n){var l,d,f,u;const a=Sn(),o=(n==null?void 0:n.weekStartsOn)??((d=(l=n==null?void 0:n.locale)==null?void 0:l.options)==null?void 0:d.weekStartsOn)??a.weekStartsOn??((u=(f=a.locale)==null?void 0:f.options)==null?void 0:u.weekStartsOn)??0,r=nt(t,n==null?void 0:n.in),i=r.getDay(),s=(i<o?7:0)+i-o;return r.setDate(r.getDate()-s),r.setHours(0,0,0,0),r}function sl(t,n,a){const[o,r]=ma(a==null?void 0:a.in,t,n);return+Tt(o,a)==+Tt(r,a)}const ll={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},cl=(t,n,a)=>{let o;const r=ll[t];return typeof r=="string"?o=r:n===1?o=r.one:o=r.other.replace("{{count}}",n.toString()),a!=null&&a.addSuffix?a.comparison&&a.comparison>0?"in "+o:o+" ago":o},dl={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},ul=(t,n,a,o)=>dl[t],ml={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},fl={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},hl={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},pl={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},gl={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},yl={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},kl={ordinalNumber:(t,n)=>{const a=Number(t),o=a%100;if(o>20||o<10)switch(o%10){case 1:return a+"st";case 2:return a+"nd";case 3:return a+"rd"}return a+"th"},era:ct({values:ml,defaultWidth:"wide"}),quarter:ct({values:fl,defaultWidth:"wide",argumentCallback:t=>t-1}),month:ct({values:hl,defaultWidth:"wide"}),day:ct({values:pl,defaultWidth:"wide"}),dayPeriod:ct({values:gl,defaultWidth:"wide",formattingValues:yl,defaultFormattingWidth:"wide"})},xl=/^(\d+)(th|st|nd|rd)?/i,bl=/\d+/i,wl={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},El={any:[/^b/i,/^(a|c)/i]},vl={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Cl={any:[/1/i,/2/i,/3/i,/4/i]},Sl={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},Bl={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},Vl={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},Ml={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},Nl={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},Al={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},Tl={ordinalNumber:Yo({matchPattern:xl,parsePattern:bl,valueCallback:t=>parseInt(t,10)}),era:dt({matchPatterns:wl,defaultMatchWidth:"wide",parsePatterns:El,defaultParseWidth:"any"}),quarter:dt({matchPatterns:vl,defaultMatchWidth:"wide",parsePatterns:Cl,defaultParseWidth:"any",valueCallback:t=>t+1}),month:dt({matchPatterns:Sl,defaultMatchWidth:"wide",parsePatterns:Bl,defaultParseWidth:"any"}),day:dt({matchPatterns:Vl,defaultMatchWidth:"wide",parsePatterns:Ml,defaultParseWidth:"any"}),dayPeriod:dt({matchPatterns:Nl,defaultMatchWidth:"any",parsePatterns:Al,defaultParseWidth:"any"})},Dl={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Ll={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Fl={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},$l={date:Pt({formats:Dl,defaultWidth:"full"}),time:Pt({formats:Ll,defaultWidth:"full"}),dateTime:Pt({formats:Fl,defaultWidth:"full"})},_l={code:"en-US",formatDistance:cl,formatLong:$l,formatRelative:ul,localize:kl,match:Tl,options:{weekStartsOn:0,firstWeekContainsDate:1}},Pl={lessThanXSeconds:{one:"menos de um segundo",other:"menos de {{count}} segundos"},xSeconds:{one:"1 segundo",other:"{{count}} segundos"},halfAMinute:"meio minuto",lessThanXMinutes:{one:"menos de um minuto",other:"menos de {{count}} minutos"},xMinutes:{one:"1 minuto",other:"{{count}} minutos"},aboutXHours:{one:"cerca de 1 hora",other:"cerca de {{count}} horas"},xHours:{one:"1 hora",other:"{{count}} horas"},xDays:{one:"1 dia",other:"{{count}} dias"},aboutXWeeks:{one:"cerca de 1 semana",other:"cerca de {{count}} semanas"},xWeeks:{one:"1 semana",other:"{{count}} semanas"},aboutXMonths:{one:"cerca de 1 mês",other:"cerca de {{count}} meses"},xMonths:{one:"1 mês",other:"{{count}} meses"},aboutXYears:{one:"cerca de 1 ano",other:"cerca de {{count}} anos"},xYears:{one:"1 ano",other:"{{count}} anos"},overXYears:{one:"mais de 1 ano",other:"mais de {{count}} anos"},almostXYears:{one:"quase 1 ano",other:"quase {{count}} anos"}},Ol=(t,n,a)=>{let o;const r=Pl[t];return typeof r=="string"?o=r:n===1?o=r.one:o=r.other.replace("{{count}}",String(n)),a!=null&&a.addSuffix?a.comparison&&a.comparison>0?"em "+o:"há "+o:o},Rl={full:"EEEE, d 'de' MMMM 'de' y",long:"d 'de' MMMM 'de' y",medium:"d MMM y",short:"dd/MM/yyyy"},Hl={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},zl={full:"{{date}} 'às' {{time}}",long:"{{date}} 'às' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},jl={date:Pt({formats:Rl,defaultWidth:"full"}),time:Pt({formats:Hl,defaultWidth:"full"}),dateTime:Pt({formats:zl,defaultWidth:"full"})},Gl={lastWeek:t=>{const n=t.getDay();return"'"+(n===0||n===6?"último":"última")+"' eeee 'às' p"},yesterday:"'ontem às' p",today:"'hoje às' p",tomorrow:"'amanhã às' p",nextWeek:"eeee 'às' p",other:"P"},ql=(t,n,a,o)=>{const r=Gl[t];return typeof r=="function"?r(n):r},Il={narrow:["AC","DC"],abbreviated:["AC","DC"],wide:["antes de cristo","depois de cristo"]},Wl={narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]},Ul={narrow:["j","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["jan","fev","mar","abr","mai","jun","jul","ago","set","out","nov","dez"],wide:["janeiro","fevereiro","março","abril","maio","junho","julho","agosto","setembro","outubro","novembro","dezembro"]},Zl={narrow:["D","S","T","Q","Q","S","S"],short:["dom","seg","ter","qua","qui","sex","sab"],abbreviated:["domingo","segunda","terça","quarta","quinta","sexta","sábado"],wide:["domingo","segunda-feira","terça-feira","quarta-feira","quinta-feira","sexta-feira","sábado"]},Yl={narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"manhã",afternoon:"tarde",evening:"tarde",night:"noite"},abbreviated:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"manhã",afternoon:"tarde",evening:"tarde",night:"noite"},wide:{am:"a.m.",pm:"p.m.",midnight:"meia-noite",noon:"meio-dia",morning:"manhã",afternoon:"tarde",evening:"tarde",night:"noite"}},Xl={narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"da manhã",afternoon:"da tarde",evening:"da tarde",night:"da noite"},abbreviated:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"da manhã",afternoon:"da tarde",evening:"da tarde",night:"da noite"},wide:{am:"a.m.",pm:"p.m.",midnight:"meia-noite",noon:"meio-dia",morning:"da manhã",afternoon:"da tarde",evening:"da tarde",night:"da noite"}},Kl={ordinalNumber:(t,n)=>{const a=Number(t);return(n==null?void 0:n.unit)==="week"?a+"ª":a+"º"},era:ct({values:Il,defaultWidth:"wide"}),quarter:ct({values:Wl,defaultWidth:"wide",argumentCallback:t=>t-1}),month:ct({values:Ul,defaultWidth:"wide"}),day:ct({values:Zl,defaultWidth:"wide"}),dayPeriod:ct({values:Yl,defaultWidth:"wide",formattingValues:Xl,defaultFormattingWidth:"wide"})},Ql=/^(\d+)[ºªo]?/i,Jl=/\d+/i,e2={narrow:/^(ac|dc|a|d)/i,abbreviated:/^(a\.?\s?c\.?|d\.?\s?c\.?)/i,wide:/^(antes de cristo|depois de cristo)/i},t2={any:[/^ac/i,/^dc/i],wide:[/^antes de cristo/i,/^depois de cristo/i]},n2={narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](º)? trimestre/i},a2={any:[/1/i,/2/i,/3/i,/4/i]},o2={narrow:/^[jfmajsond]/i,abbreviated:/^(jan|fev|mar|abr|mai|jun|jul|ago|set|out|nov|dez)/i,wide:/^(janeiro|fevereiro|março|abril|maio|junho|julho|agosto|setembro|outubro|novembro|dezembro)/i},r2={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^fev/i,/^mar/i,/^abr/i,/^mai/i,/^jun/i,/^jul/i,/^ago/i,/^set/i,/^out/i,/^nov/i,/^dez/i]},i2={narrow:/^(dom|[23456]ª?|s[aá]b)/i,short:/^(dom|[23456]ª?|s[aá]b)/i,abbreviated:/^(dom|seg|ter|qua|qui|sex|s[aá]b)/i,wide:/^(domingo|(segunda|ter[cç]a|quarta|quinta|sexta)([- ]feira)?|s[aá]bado)/i},s2={short:[/^d/i,/^2/i,/^3/i,/^4/i,/^5/i,/^6/i,/^s[aá]/i],narrow:[/^d/i,/^2/i,/^3/i,/^4/i,/^5/i,/^6/i,/^s[aá]/i],any:[/^d/i,/^seg/i,/^t/i,/^qua/i,/^qui/i,/^sex/i,/^s[aá]b/i]},l2={narrow:/^(a|p|mn|md|(da) (manhã|tarde|noite))/i,any:/^([ap]\.?\s?m\.?|meia[-\s]noite|meio[-\s]dia|(da) (manhã|tarde|noite))/i},c2={any:{am:/^a/i,pm:/^p/i,midnight:/^mn|^meia[-\s]noite/i,noon:/^md|^meio[-\s]dia/i,morning:/manhã/i,afternoon:/tarde/i,evening:/tarde/i,night:/noite/i}},d2={ordinalNumber:Yo({matchPattern:Ql,parsePattern:Jl,valueCallback:t=>parseInt(t,10)}),era:dt({matchPatterns:e2,defaultMatchWidth:"wide",parsePatterns:t2,defaultParseWidth:"any"}),quarter:dt({matchPatterns:n2,defaultMatchWidth:"wide",parsePatterns:a2,defaultParseWidth:"any",valueCallback:t=>t+1}),month:dt({matchPatterns:o2,defaultMatchWidth:"wide",parsePatterns:r2,defaultParseWidth:"any"}),day:dt({matchPatterns:i2,defaultMatchWidth:"wide",parsePatterns:s2,defaultParseWidth:"any"}),dayPeriod:dt({matchPatterns:l2,defaultMatchWidth:"any",parsePatterns:c2,defaultParseWidth:"any"})},Qo={code:"pt-BR",formatDistance:Ol,formatLong:jl,formatRelative:ql,localize:Kl,match:d2,options:{weekStartsOn:0,firstWeekContainsDate:1}},u2={scheduled_messages:"Mensagem programada"};function m2(t){return u2[t]||t||"Evento"}function fa(t,n){return t.getFullYear()===n.getFullYear()&&t.getMonth()===n.getMonth()&&t.getDate()===n.getDate()}function Ot(t){const n=t instanceof Date?t:new Date(t),a=n.getFullYear(),o=(n.getMonth()+1).toString().padStart(2,"0");return`${a}-${o}`}function Jt(t){const[n,a]=String(t||"").trim().split(" ");if(!n)return null;const[o,r,i]=n.split("-").map(f=>parseInt(f,10));let s=0,l=0;if(a){const[f,u]=a.split(":");s=parseInt(f||"0",10),l=parseInt(u||"0",10)}const d=new Date(o,(r||1)-1,i||1,s,l);return isNaN(d.getTime())?null:d}function f2(t){if(!t)return null;try{const n=String(t).replace(/(\.\d{3})\d+$/,"$1"),a=new Date(n);return isNaN(a.getTime())?null:a}catch{return null}}function Bn(t){if(!t)return"";const n=t instanceof Date?t:new Date(t);if(isNaN(n.getTime()))return"";const a=String(n.getHours()).padStart(2,"0"),o=String(n.getMinutes()).padStart(2,"0");return`${a}:${o}`}function h2(){return"id-"+Math.random().toString(36).slice(2)+Date.now().toString(36)}function ha(t){if(!t)return null;const n=(t==null?void 0:t.params)||{},a=(n==null?void 0:n.schedule)||{},o=(t==null?void 0:t.info)||{},r=(o==null?void 0:o.entity)||{},i=(o==null?void 0:o.department)||{},s=(o==null?void 0:o.instance)||{};let l=null;if(a!=null&&a.time&&(l=Jt(a.time)),!l&&(t!=null&&t.next_execution_at)&&(l=f2(t.next_execution_at)),!l)return null;const d=Array.isArray(n==null?void 0:n.message)?n.message[0]:null,f=d&&(d.content||d.text)||"",u=(t==null?void 0:t.function)||(n==null?void 0:n.function)||"",h=m2(u),m=(f||"").trim();return{id:(t==null?void 0:t.id)||h2(),date:l,time:Bn(l),type:t.function,status:t.status||null,scheduled_by:n.scheduled_by,title:h,content:m,functionName:u||null,chatId:(n==null?void 0:n.chat_id)||(o==null?void 0:o.id)||"",protocol:(o==null?void 0:o.protocol)??"",contactName:(r==null?void 0:r.name)||"Contato",contactPhoto:(r==null?void 0:r.photo)||"",departmentName:(i==null?void 0:i.name)||"",departmentId:(i==null?void 0:i.id)||null,instanceName:(s==null?void 0:s.name)||"",raw:t}}function Jo(t=[]){const n=Array.isArray(t)?t:Array.isArray(t.results)?t.results:[],a=[];for(const o of n){const r=ha(o);r&&a.push(r)}return a.sort((o,r)=>o.date-r.date),a}async function p2(t="/crm_scheduled",n){var a;try{const o=((a=n==null?void 0:n.raw)==null?void 0:a.id)??(n==null?void 0:n.id)??n;if(o==null)throw new Error("ID inválido");const r=`${String(t).replace(/\/$/,"")}/${o}/`,i=await Ue.delete(r);return{ok:(i==null?void 0:i.status)>=200&&i.status<300,status:(i==null?void 0:i.status)??0}}catch(o){return console.error("Error erasing scheduled event:",o),{ok:!1,status:0}}}const er={scheduled_messages:"#3b82f6"},tr=["#10b981","#06b6d4","#22c55e","#eab308","#ef4444","#84cc16","#f472b6","#0ea5e9","#8b5cf6","#64748b"];function g2(t=""){let n=2166136261;for(let a=0;a<t.length;a++)n^=t.charCodeAt(a),n=Math.imul(n,16777619);return n>>>0}function y2(t={}){var s,l,d,f,u,h,m,p,c,g,y;const n=t.functionName||t.function||((s=t==null?void 0:t.params)==null?void 0:s.function);if(n)return`fn:${n}`;const a=(t==null?void 0:t.departmentName)||((d=(l=t==null?void 0:t.info)==null?void 0:l.department)==null?void 0:d.name)||((u=(f=t==null?void 0:t.info)==null?void 0:f.department)==null?void 0:u.id);if(a)return`dept:${a}`;const o=(t==null?void 0:t.instanceName)||((m=(h=t==null?void 0:t.info)==null?void 0:h.instance)==null?void 0:m.name)||((c=(p=t==null?void 0:t.info)==null?void 0:p.instance)==null?void 0:c.id);if(o)return`inst:${o}`;const r=(t==null?void 0:t.protocol)??((g=t==null?void 0:t.info)==null?void 0:g.protocol);if(r!=null)return`proto:${r}`;const i=(t==null?void 0:t.chatId)||((y=t==null?void 0:t.params)==null?void 0:y.chat_id);return i?`chat:${i}`:"misc"}function Vn(t={}){var r;const n=t.functionName||t.function||((r=t==null?void 0:t.params)==null?void 0:r.function);if(n&&Object.prototype.hasOwnProperty.call(er,n))return er[n];const a=y2(t),o=g2(String(a))%tr.length;return tr[o]}const Rt=Vt.defineStore("attendant",{state:()=>({attendants:[],count:null,loaded:!1}),actions:{async fetchAttendants(){try{this.attendants=[];let t=`${cs}`;const n=await Ue.get(t);this.attendants=n.data,this.count=this.attendants.length}catch(t){console.log("Erro ao buscar atendentes:",t)}},removeAttendants(t){this.attendants=this.attendants.filter(n=>n.id!==t)},addAttendants(t){const n=this.attendants.findIndex(a=>a.id===t.id);n!==-1?this.attendants[n]=t:this.attendants.push(t)}}}),k2={class:"itemc-head"},x2={class:"minw0"},b2={class:"itemc-title"},w2={class:"itemc-sub"},E2={class:"flex items-center gap-1"},v2={class:"itemc-actions"},C2={class:"flex flex-col items-center"},S2={class:"time-badge"},B2={class:"sched-pop",tabindex:"0","aria-haspopup":"true","aria-label":"Agendado por"},V2={class:"sched-pop__card bg-base-300",role:"dialog"},M2={key:0,class:"icon-4",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},N2={key:1,class:"icon-4","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"currentColor",viewBox:"0 0 24 24"},A2=["disabled"],T2={key:0,class:"icon-4","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"currentColor",viewBox:"0 0 24 24"},D2={key:1,class:"loading-spinner"},L2={class:"itemsb-head"},F2=["src"],$2={key:1,class:"avatar avatar--placeholder bg-base-100"},_2={class:"sched-pop",style:{position:"absolute",bottom:"-2px",right:"-2px"},tabindex:"0","aria-haspopup":"true","aria-label":"Agendado por"},P2={class:"sched-pop__card bg-base-300",style:{left:"-100%",right:"auto",transform:"translate(10%, -50%) scale(0.98)"},role:"dialog"},O2={class:"itemsb-main"},R2={class:"itemsb-row"},H2={class:"itemsb-title truncate"},z2={class:"itemsb-time"},j2={class:"itemsb-sub"},G2={class:"items-attendant"},q2={class:"itemsb-content"},I2={key:0,class:"itemsb-actions"},W2=["disabled"],U2={key:0,class:"loading-spinner"},Z2={class:"event-left"},Y2={class:"event-line"},X2={class:"event-actions"},K2={class:"sched-pop",tabindex:"0","aria-haspopup":"true","aria-label":"Agendado por"},Q2={class:"sched-pop__card bg-base-300",role:"dialog"},J2={class:"sched-pop",tabindex:"0","aria-haspopup":"true","aria-label":"Agendado por"},ec={class:"sched-pop__card bg-base-300",role:"dialog"},tc={class:"event-time"},nc={key:0,class:"icon-4",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},ac={key:1,class:"icon-4","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"currentColor",viewBox:"0 0 24 24"},oc=["disabled"],rc={key:0,class:"icon-4","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"currentColor",viewBox:"0 0 24 24"},ic={key:1,class:"loading-spinner"},pa=Ce({__name:"EventItem",props:{ev:{type:Object,required:!0},mode:{type:String,default:"compact"},getEventColor:{type:Function,default:null},viewOnly:{type:Boolean,default:!1}},emits:["open-message","open-chat","delete-message"],setup(t,{emit:n}){const a=Rt(),o=t,r=e.computed(()=>(o.getEventColor||Vn)(o.ev)),i=e.computed(()=>{var f;return((f=o.ev)==null?void 0:f.type)==="scheduled_messages"}),s=e.computed(()=>a.attendants.find(f=>f.is_me)||{}),l=f=>{const u=a.attendants.find(h=>h.id===f);return u?u.id===s.value.id?"Você":u.name||"Desconhecido":"Desconhecido"},d=e.computed(()=>{var u,h;const f=[];return(u=o.ev)!=null&&u.contactName&&f.push(o.ev.contactName),f.push(((h=o.ev)==null?void 0:h.departmentName)||"sem depto"),f.join(" • ")});return(f,u)=>{var h,m,p,c,g,y;return t.mode==="compact"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("header",k2,[e.createElementVNode("span",{style:e.normalizeStyle({background:r.value}),class:"color-bar"},null,4),e.createElementVNode("div",x2,[e.createElementVNode("div",b2,e.toDisplayString(t.ev.contactName?t.ev.contactName+" • ":"")+" "+e.toDisplayString(t.ev.departmentName||"sem depto"),1),e.createElementVNode("div",w2,[e.createElementVNode("span",E2,[u[9]||(u[9]=e.createElementVNode("svg",{class:"icon-3","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"currentColor",viewBox:"0 0 24 24"},[e.createElementVNode("path",{"fill-rule":"evenodd",d:"M12 2a7 7 0 0 0-7 7 3 3 0 0 0-3 3v2a3 3 0 0 0 3 3h1a1 1 0 0 0 1-1V9a5 5 0 1 1 10 0v7.083A2.919 2.919 0 0 1 14.083 19H14a2 2 0 0 0-2-2h-1a2 2 0 0 0-2 2v1a2 2 0 0 0 2 2h1a2 2 0 0 0 1.732-1h.351a4.917 4.917 0 0 0 4.83-4H19a3 3 0 0 0 3-3v-2a3 3 0 0 0-3-3 7 7 0 0 0-7-7Zm1.45 3.275a4 4 0 0 0-4.352.976 1 1 0 0 0 1.452 1.376 2.001 2.001 0 0 1 2.836-.067 1 1 0 1 0 1.386-1.442 4 4 0 0 0-1.321-.843Z","clip-rule":"evenodd"})],-1)),e.createTextVNode(" "+e.toDisplayString(l(t.ev.scheduled_by)),1)])])])]),e.createElementVNode("footer",v2,[e.createElementVNode("div",C2,[e.createElementVNode("div",S2,e.toDisplayString(t.ev.time),1),e.createElementVNode("div",B2,[t.ev.status!==void 0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["status-bar",(h=t.ev)!=null&&h.status?"status--up":"status--down"])},null,2)):e.createCommentVNode("",!0),e.createElementVNode("div",V2,[u[10]||(u[10]=e.createElementVNode("strong",null,"Status",-1)),u[11]||(u[11]=e.createElementVNode("br",null,null,-1)),e.createTextVNode(" "+e.toDisplayString(t.ev.status===!0?"Ativo":"Executado"),1)])])]),i.value?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:u[0]||(u[0]=b=>f.$emit("open-message",t.ev)),class:"cyber-button cyber-button--xs cyber-button--primary","aria-label":"Editar mensagem programada"},[((m=t.ev)==null?void 0:m.status)===!0?(e.openBlock(),e.createElementBlock("svg",M2,u[12]||(u[12]=[e.createElementVNode("path",{fill:"currentColor","fill-rule":"evenodd",d:"M14 4.182A4.136 4.136 0 0 1 16.9 3c1.087 0 2.13.425 2.899 1.182A4.01 4.01 0 0 1 21 7.037c0 1.068-.43 2.092-1.194 2.849L18.5 11.214l-5.8-5.71 1.287-1.31.012-.012Zm-2.717 2.763L6.186 12.13l2.175 2.141 5.063-5.218-2.141-2.108Zm-6.25 6.886-1.98 5.849a.992.992 0 0 0 .245 1.026 1.03 1.03 0 0 0 1.043.242L10.282 19l-5.25-5.168Zm6.954 4.01 5.096-5.186-2.218-2.183-5.063 5.218 2.185 2.15Z","clip-rule":"evenodd"},null,-1)]))):(e.openBlock(),e.createElementBlock("svg",N2,u[13]||(u[13]=[e.createElementVNode("path",{"fill-rule":"evenodd",d:"M4.998 7.78C6.729 6.345 9.198 5 12 5c2.802 0 5.27 1.345 7.002 2.78a12.713 12.713 0 0 1 2.096 2.183c.253 .344 .465 .682 .618 .997 .14 .286 .284 .658 .284 1.04s-.145 .754 -.284 1.04a6.6 6.6 0 0 1-.618 .997 12.712 12.712 0 0 1-2.096 2.183C17.271 17.655 14.802 19 12 19c-2.802 0-5.27-1.345-7.002-2.78a12.712 12.712 0 0 1-2.096-2.183 6.6 6.6 0 0 1-.618-.997C2.144 12.754 2 12.382 2 12s.145-.754 .284-1.04c.153-.315 .365-.653 .618-.997A12.714 12.714 0 0 1 4.998 7.78ZM12 15a3 3 0 1 0 0-6 3 3 0 0 0 0 6Z","clip-rule":"evenodd"},null,-1)])))])):e.createCommentVNode("",!0),i.value?(e.openBlock(),e.createElementBlock("button",{key:1,onClick:u[1]||(u[1]=b=>f.$emit("delete-message",t.ev)),class:"cyber-button cyber-button--xs cyber-button--danger","aria-label":"Apagar evento",disabled:t.ev.deleteLoading||!t.ev.status},[t.ev.deleteLoading?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("svg",T2,u[14]||(u[14]=[e.createElementVNode("path",{"fill-rule":"evenodd",d:"M8.586 2.586A2 2 0 0 1 10 2h4a2 2 0 0 1 2 2v2h3a1 1 0 1 1 0 2v12a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V8a1 1 0 0 1 0-2h3V4a2 2 0 0 1 .586-1.414ZM10 6h4V4h-4v2Zm1 4a1 1 0 1 0-2 0v8a1 1 0 1 0 2 0v-8Zm4 0a1 1 0 1 0-2 0v8a1 1 0 1 0 2 0v-8Z","clip-rule":"evenodd"},null,-1)]))),t.ev.deleteLoading?(e.openBlock(),e.createElementBlock("div",D2)):e.createCommentVNode("",!0)],8,A2)):e.createCommentVNode("",!0),e.createElementVNode("button",{class:"cyber-button cyber-button--xs cyber-button--accent",onClick:u[2]||(u[2]=b=>f.$emit("open-chat",t.ev)),"aria-label":"Abrir conversa"},u[15]||(u[15]=[e.createElementVNode("svg",{class:"icon-4",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},[e.createElementVNode("path",{fill:"currentColor","fill-rule":"evenodd",d:"M3.559 4.544c.355-.35.834-.544 1.33-.544H19.11c.496 0 .975.194 1.33.544.356.35.559.829.559 1.331v9.25c0 .502-.203.981-.559 1.331-.355.35-.834.544-1.33.544H15.5l-2.7 3.6a1 1 0 0 1-1.6 0L8.5 17H4.889c-.496 0-.975-.194-1.33-.544A1.868 1.868 0 0 1 3 15.125v-9.25c0-.502.203-.981.559-1.331ZM7.556 7.5a1 1 0 1 0 0 2h8a1 1 0 0 0 0-2h-8Zm0 3.5a1 1 0 1 0 0 2H12a1 1 0 1 0 0-2H7.556Z","clip-rule":"evenodd"})],-1)]))])],64)):t.mode==="sidebar"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("div",L2,[e.createElementVNode("div",{class:"avatar-wrap",style:e.normalizeStyle({boxShadow:`0 0 0 1px ${r.value}`})},[t.ev.contactPhoto?(e.openBlock(),e.createElementBlock("img",{key:0,src:t.ev.contactPhoto,alt:"",class:"avatar",loading:"lazy"},null,8,F2)):(e.openBlock(),e.createElementBlock("div",$2,u[16]||(u[16]=[e.createElementVNode("svg",{viewBox:"0 0 24 24",class:"icon-5 icon-muted"},[e.createElementVNode("path",{fill:"currentColor",d:"M12 12a5 5 0 1 0-5-5a5 5 0 0 0 5 5m0 2c-4 0-8 2-8 4v2h16v-2c0-2-4-4-8-4Z"})],-1)]))),e.createElementVNode("div",_2,[t.ev.status!==void 0?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(["status-dot-avatar",(p=t.ev)!=null&&p.status?"status--up":"status--down"])},null,2)):e.createCommentVNode("",!0),e.createElementVNode("div",P2,[u[17]||(u[17]=e.createElementVNode("strong",null,"Status",-1)),u[18]||(u[18]=e.createElementVNode("br",null,null,-1)),e.createTextVNode(" "+e.toDisplayString(t.ev.status===!0?"Ativo":"Executado"),1)])])],4),e.createElementVNode("div",O2,[e.createElementVNode("div",R2,[e.createElementVNode("span",H2,e.toDisplayString(t.ev.contactName)+" • "+e.toDisplayString(t.ev.departmentName||"sem depto"),1),e.createElementVNode("span",z2,e.toDisplayString(t.ev.time),1)]),e.createElementVNode("div",j2,[e.createElementVNode("span",G2,[u[19]||(u[19]=e.createElementVNode("svg",{class:"icon-3","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"currentColor",viewBox:"0 0 24 24"},[e.createElementVNode("path",{"fill-rule":"evenodd",d:"M12 2a7 7 0 0 0-7 7 3 3 0 0 0-3 3v2a3 3 0 0 0 3 3h1a1 1 0 0 0 1-1V9a5 5 0 1 1 10 0v7.083A2.919 2.919 0 0 1 14.083 19H14a2 2 0 0 0-2-2h-1a2 2 0 0 0-2 2v1a2 2 0 0 0 2 2h1a2 2 0 0 0 1.732-1h.351a4.917 4.917 0 0 0 4.83-4H19a3 3 0 0 0 3-3v-2a3 3 0 0 0-3-3 7 7 0 0 0-7-7Zm1.45 3.275a4 4 0 0 0-4.352.976 1 1 0 0 0 1.452 1.376 2.001 2.001 0 0 1 2.836-.067 1 1 0 1 0 1.386-1.442 4 4 0 0 0-1.321-.843Z"})],-1)),e.createTextVNode(" "+e.toDisplayString(l(t.ev.scheduled_by)),1)])])])]),e.createElementVNode("p",q2,e.toDisplayString(t.ev.content||t.ev.title),1),t.viewOnly?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",I2,[i.value?(e.openBlock(),e.createElementBlock("button",{key:0,type:"button",class:"cyber-button cyber-button--sm cyber-button--primary",onClick:u[3]||(u[3]=b=>f.$emit("open-message",t.ev))},e.toDisplayString(((c=t.ev)==null?void 0:c.status)===!0?"Editar":"Visualizar"),1)):e.createCommentVNode("",!0),i.value?(e.openBlock(),e.createElementBlock("button",{key:1,onClick:u[4]||(u[4]=b=>f.$emit("delete-message",t.ev)),class:"cyber-button cyber-button--sm cyber-button--danger","aria-label":"Apagar evento",disabled:t.ev.deleteLoading||!t.ev.status},[t.ev.deleteLoading?(e.openBlock(),e.createElementBlock("div",U2)):e.createCommentVNode("",!0),u[20]||(u[20]=e.createTextVNode(" Apagar "))],8,W2)):e.createCommentVNode("",!0),i.value?(e.openBlock(),e.createElementBlock("button",{key:2,type:"button",class:"cyber-button cyber-button--sm cyber-button--accent",onClick:u[5]||(u[5]=b=>f.$emit("open-chat",t.ev))}," Abrir conversa ")):e.createCommentVNode("",!0)]))],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createElementVNode("div",Z2,[e.createElementVNode("span",{style:e.normalizeStyle({background:r.value}),class:"event-color-bar"},null,4),e.createElementVNode("div",Y2,e.toDisplayString(d.value),1)]),e.createElementVNode("footer",X2,[e.createElementVNode("div",K2,[u[23]||(u[23]=e.createElementVNode("svg",{class:"icon-4","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"currentColor",viewBox:"0 0 24 24"},[e.createElementVNode("path",{"fill-rule":"evenodd",d:"M12 2a7 7 0 0 0-7 7 3 3 0 0 0-3 3v2a3 3 0 0 0 3 3h1a1 1 0 0 0 1-1V9a5 5 0 1 1 10 0v7.083A2.919 2.919 0 0 1 14.083 19H14a2 2 0 0 0-2-2h-1a2 2 0 0 0-2 2v1a2 2 0 0 0 2 2h1a2 2 0 0 0 1.732-1h.351a4.917 4.917 0 0 0 4.83-4H19a3 3 0 0 0 3-3v-2a3 3 0 0 0-3-3 7 7 0 0 0-7-7Zm1.45 3.275a4 4 0 0 0-4.352.976 1 1 0 0 0 1.452 1.376 2.001 2.001 0 0 1 2.836-.067 1 1 0 1 0 1.386-1.442 4 4 0 0 0-1.321-.843Z","clip-rule":"evenodd"})],-1)),e.createElementVNode("div",Q2,[u[21]||(u[21]=e.createElementVNode("strong",null,"Agendado por",-1)),u[22]||(u[22]=e.createElementVNode("br",null,null,-1)),e.createTextVNode(" "+e.toDisplayString(l(t.ev.scheduled_by)),1)])]),e.createElementVNode("div",J2,[t.ev.status!==void 0?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(["status-bar",(g=t.ev)!=null&&g.status?"status--up":"status--down"])},null,2)):e.createCommentVNode("",!0),e.createElementVNode("div",ec,[u[24]||(u[24]=e.createElementVNode("strong",null,"Status",-1)),u[25]||(u[25]=e.createElementVNode("br",null,null,-1)),e.createTextVNode(" "+e.toDisplayString(t.ev.status===!0?"Ativo":"Executado"),1)])]),e.createElementVNode("div",tc,e.toDisplayString(t.ev.time),1),i.value?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:u[6]||(u[6]=b=>f.$emit("open-message",t.ev)),class:"cyber-button cyber-button--xs cyber-button--primary","aria-label":"Editar mensagem programada"},[((y=t.ev)==null?void 0:y.status)===!0?(e.openBlock(),e.createElementBlock("svg",nc,u[26]||(u[26]=[e.createElementVNode("path",{fill:"currentColor","fill-rule":"evenodd",d:"M14 4.182A4.136 4.136 0 0 1 16.9 3c1.087 0 2.13.425 2.899 1.182A4.01 4.01 0 0 1 21 7.037c0 1.068-.43 2.092-1.194 2.849L18.5 11.214l-5.8-5.71 1.287-1.31.012-.012Zm-2.717 2.763L6.186 12.13l2.175 2.141 5.063-5.218-2.141-2.108Zm-6.25 6.886-1.98 5.849a.992.992 0 0 0 .245 1.026 1.03 1.03 0 0 0 1.043.242L10.282 19l-5.25-5.168Zm6.954 4.01 5.096-5.186-2.218-2.183-5.063 5.218 2.185 2.15Z","clip-rule":"evenodd"},null,-1)]))):(e.openBlock(),e.createElementBlock("svg",ac,u[27]||(u[27]=[e.createElementVNode("path",{"fill-rule":"evenodd",d:"M4.998 7.78C6.729 6.345 9.198 5 12 5c2.802 0 5.27 1.345 7.002 2.78a12.713 12.713 0 0 1 2.096 2.183c.253 .344 .465 .682 .618 .997 .14 .286 .284 .658 .284 1.04s-.145 .754 -.284 1.04a6.6 6.6 0 0 1-.618 .997 12.712 12.712 0 0 1-2.096 2.183C17.271 17.655 14.802 19 12 19c-2.802 0-5.27-1.345-7.002-2.78a12.712 12.712 0 0 1-2.096-2.183 6.6 6.6 0 0 1-.618-.997C2.144 12.754 2 12.382 2 12s.145-.754 .284-1.04c.153-.315 .365-.653 .618-.997A12.714 12.714 0 0 1 4.998 7.78ZM12 15a3 3 0 1 0 0-6 3 3 0 0 0 0 6Z","clip-rule":"evenodd"},null,-1)])))])):e.createCommentVNode("",!0),i.value?(e.openBlock(),e.createElementBlock("button",{key:1,onClick:u[7]||(u[7]=b=>f.$emit("delete-message",t.ev)),class:"cyber-button cyber-button--xs cyber-button--danger","aria-label":"Apagar evento",disabled:t.ev.deleteLoading||!t.ev.status},[t.ev.deleteLoading?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("svg",rc,u[28]||(u[28]=[e.createElementVNode("path",{"fill-rule":"evenodd",d:"M8.586 2.586A2 2 0 0 1 10 2h4a2 2 0 0 1 2 2v2h3a1 1 0 1 1 0 2v12a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V8a1 1 0 0 1 0-2h3V4a2 2 0 0 1 .586-1.414ZM10 6h4V4h-4v2Zm1 4a1 1 0 1 0-2 0v8a1 1 0 1 0 2 0v-8Zm4 0a1 1 0 1 0-2 0v8a1 1 0 1 0 2 0v-8Z","clip-rule":"evenodd"},null,-1)]))),t.ev.deleteLoading?(e.openBlock(),e.createElementBlock("div",ic)):e.createCommentVNode("",!0)],8,oc)):e.createCommentVNode("",!0),e.createElementVNode("button",{class:"cyber-button cyber-button--xs cyber-button--accent",onClick:u[8]||(u[8]=b=>f.$emit("open-chat",t.ev)),"aria-label":"Abrir conversa"},u[29]||(u[29]=[e.createElementVNode("svg",{class:"icon-4",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},[e.createElementVNode("path",{fill:"currentColor","fill-rule":"evenodd",d:"M3.559 4.544c.355-.35.834-.544 1.33-.544H19.11c.496 0 .975.194 1.33.544.356.35.559.829.559 1.331v9.25c0 .502-.203.981-.559 1.331-.355.35-.834.544-1.33.544H15.5l-2.7 3.6a1 1 0 0 1-1.6 0L8.5 17H4.889c-.496 0-.975-.194-1.33-.544A1.868 1.868 0 0 1 3 15.125v-9.25c0-.502.203-.981.559-1.331ZM7.556 7.5a1 1 0 1 0 0 2h8a1 1 0 0 0 0-2h-8Zm0 3.5a1 1 0 1 0 0 2H12a1 1 0 1 0 0-2H7.556Z","clip-rule":"evenodd"})],-1)]))])],64))}}},[["__scopeId","data-v-fb30306a"]]),gt=new Map,nr=Vt.defineStore("scheduled",{state:()=>({baseUrl:fs,monthCache:{},loadingYM:new Set,errorByYM:{},loadedYM:new Set,filters:{}}),getters:{eventsOf:t=>n=>t.monthCache[n]||[],isLoading:t=>n=>t.loadingYM.has(n),errorOf:t=>n=>t.errorByYM[n]||""},actions:{setBaseUrl(t){this.baseUrl=t||"/crm_scheduled"},_setMonth(t,n){this.monthCache={...this.monthCache,[t]:n||[]}},_deleteMonth(t){const{[t]:n,...a}=this.monthCache;this.monthCache=a,this.loadingYM.delete(t);const{[t]:o,...r}=this.errorByYM;this.errorByYM=r,this.loadedYM.delete(t)},coerceHttps(t){return t&&t.startsWith("http://")?t.replace(/^http:\/\//i,"https://"):t},_appendMonth(t,n){if(!n||n.length===0)return;this.monthCache[t]||(this.monthCache[t]=[]);const a=new Set(this.monthCache[t].map(o=>o==null?void 0:o.id));for(const o of n)o&&(o.id&&a.has(o.id)||this.monthCache[t].push(o))},async ensureMonthLoaded(t){if(t||(t=Ot(new Date)),this.loadedYM.has(t))return;const n=`${this.baseUrl}|${t}`;if(gt.has(n))return gt.get(n);this.loadingYM.add(t),this.errorByYM={...this.errorByYM,[t]:""};const a=(async()=>{var o,r;try{const i=`${this.baseUrl}?year_month=${encodeURIComponent(t)}&page_size=10`,s=await Ue.get(i),l=Array.isArray(s==null?void 0:s.data)?s.data:((o=s==null?void 0:s.data)==null?void 0:o.results)||[],d=Jo(l||[]);this._setMonth(t,d),this.loadedYM.add(t);let f=this.coerceHttps(((r=s==null?void 0:s.data)==null?void 0:r.next)||null);f&&(async()=>{var u,h;try{let m=f;for(;m;){const p=await Ue.get(m),c=Array.isArray(p==null?void 0:p.data)?p.data:((u=p==null?void 0:p.data)==null?void 0:u.results)||[],g=Jo(c||[]);this._appendMonth(t,g),m=this.coerceHttps(((h=p==null?void 0:p.data)==null?void 0:h.next)||null)}}catch(m){console.warn("[scheduled] background paging error:",(m==null?void 0:m.message)||m)}})()}catch(i){const s=String((i==null?void 0:i.message)||i);throw this.errorByYM={...this.errorByYM,[t]:s},console.error("[scheduled] fetch error",t,s),this._setMonth(t,[]),this.loadedYM.delete(t),i}finally{gt.delete(n),this.loadingYM.delete(t)}})();return gt.set(n,a),a},async forceReload(t){t||(t=Ot(new Date));const n=`${this.baseUrl}|${t}`;gt.delete(n),this._deleteMonth(t),this.loadedYM.delete(t),await this.ensureMonthLoaded(t)},findEventById(t){const n=String(t);for(const[a,o]of Object.entries(this.monthCache)){const r=(o||[]).findIndex(i=>{var d;const s=((d=i==null?void 0:i.raw)==null?void 0:d.id)!=null?String(i.raw.id):null,l=(i==null?void 0:i.id)!=null?String(i.id):null;return s===n||l===n});if(r!==-1)return{ym:a,idx:r}}return null},applyUpdateToCache({id:t,params:n}){var m,p,c,g,y,b,w,E,x,v,D,_,C;let a=null;if((m=n==null?void 0:n.schedule)!=null&&m.time){const k=n.schedule.time,N=/^(\d{4})-(\d{2})-(\d{2})(?:[ T](\d{2}):(\d{2}))?$/.exec(k);if(N){const[,S,B,A,M="00",H="00"]=N;a=new Date(Number(S),Number(B)-1,Number(A),Number(M),Number(H),0,0)}else{const S=typeof k=="string"&&!k.includes("T")?k.replace(" ","T"):k;a=new Date(S)}}console.log(n);const o=k=>{var N,S,B,A;return a instanceof Date&&!isNaN(a)&&(k.date=a,k.time=Bn(a)),((S=(N=n==null?void 0:n.message)==null?void 0:N[0])==null?void 0:S.content)!=null&&(k.content=n.message[0].content),k.raw=k.raw||{id:t},k.raw.params=k.raw.params||{},n!=null&&n.schedule&&(k.raw.params.schedule={...k.raw.params.schedule||{},...n.schedule}),n!=null&&n.scheduled_by&&(k.raw.params.scheduled_by=n.scheduled_by),n.department&&(k.raw.params.department=n.department),n!=null&&n.message&&(k.raw.params.message=n.message),Object.prototype.hasOwnProperty.call(n||{},"chat_id")&&(k.chatId=n.chat_id??k.chatId??""),n!=null&&n.entity&&(k.raw.params.entity={...k.raw.params.entity||{},...n.entity},Object.prototype.hasOwnProperty.call(n.entity,"name")&&(k.contactName=n.entity.name??k.contactName??"Cliente"),Object.prototype.hasOwnProperty.call(n.entity,"photo")&&(k.contactPhoto=n.entity.photo??k.contactPhoto??null,n.entity.photo&&(k.photo=n.entity.photo))),n!=null&&n.info&&(k.raw.params.info={...k.raw.params.info||{},...n.info},(B=n.info)!=null&&B.department&&Object.prototype.hasOwnProperty.call(n.info.department,"name")&&(k.departmentName=n.info.department.name??k.departmentName),(A=n.info)!=null&&A.instance&&(Object.prototype.hasOwnProperty.call(n.info.instance,"name")&&(k.instanceName=n.info.instance.name??k.instanceName),Object.prototype.hasOwnProperty.call(n.info.instance,"last_instance_status")&&(k.instanceStatus=n.info.instance.last_instance_status??k.instanceStatus))),Object.prototype.hasOwnProperty.call(n||{},"title")?k.title=n.title??k.title??"Mensagem programada":k.title=k.title||"Mensagem programada",Object.prototype.hasOwnProperty.call(n||{},"function")?(k.function=n.function??k.function??"scheduled_messages",k.type=n.function??k.type??"scheduled_messages"):(k.function=k.function||"scheduled_messages",k.type=k.type||"scheduled_messages"),k},r=this.findEventById(t);if(!r){const k=a instanceof Date&&!isNaN(a)?a:(()=>{var H;const A=(H=n==null?void 0:n.schedule)==null?void 0:H.time,M=typeof A=="string"&&!A.includes("T")?A.replace(" ","T"):A;return(Jt==null?void 0:Jt(M))||(M?new Date(M):new Date)})(),N=o({id:t,date:k,time:Bn(k),title:(n==null?void 0:n.title)||"Mensagem programada",type:(n==null?void 0:n.function)||"scheduled_messages",status:(n==null?void 0:n.status)||"true",scheduled_by:(n==null?void 0:n.scheduled_by)||null,function:(n==null?void 0:n.function)||"scheduled_messages",content:((c=(p=n==null?void 0:n.message)==null?void 0:p[0])==null?void 0:c.content)??"",raw:{id:t,params:n},contactName:((g=n==null?void 0:n.entity)==null?void 0:g.name)??"Cliente",contactPhoto:((y=n==null?void 0:n.entity)==null?void 0:y.photo)??null,departmentName:((w=(b=n==null?void 0:n.info)==null?void 0:b.department)==null?void 0:w.name)??null,departmentId:((x=(E=n==null?void 0:n.info)==null?void 0:E.department)==null?void 0:x.id)??null,instanceName:((D=(v=n==null?void 0:n.info)==null?void 0:v.instance)==null?void 0:D.name)??null,instanceStatus:((C=(_=n==null?void 0:n.info)==null?void 0:_.instance)==null?void 0:C.last_instance_status)??null,...Object.prototype.hasOwnProperty.call(n||{},"chat_id")&&{chatId:n.chat_id??""}}),S=Ot(N.date),B=this.monthCache[S]?[...this.monthCache[S],N]:[N];B.sort((A,M)=>A.date-M.date),this._setMonth(S,B);return}const{ym:i,idx:s}=r,l=this.monthCache[i]||[],d={...l[s]},f=o({...d}),u=f.date instanceof Date?f.date:d.date,h=Ot(u);if(h===i){const k=[...l];k.splice(s,1,f),k.sort((N,S)=>N.date-S.date),this._setMonth(i,k)}else{const k=l.slice(0,s).concat(l.slice(s+1)),N=this.monthCache[h]?[...this.monthCache[h],f]:[f];N.sort((S,B)=>S.date-B.date),this.monthCache={...this.monthCache,[i]:k,[h]:N}}},removeFromCache(t){const n=this.findEventById(t);if(!n)return!1;const{ym:a,idx:o}=n,r=this.monthCache[a]||[],i=r.slice(0,o).concat(r.slice(o+1));return this._setMonth(a,i),!0},insertNormalizedEvent(t){if(!t)return;const n=String(t.id),a=t.date instanceof Date?t.date:Jt(t.date)||new Date,o=Ot(a),r={...t,id:n,date:a,time:t.time??Bn(a)},i=this.monthCache[o]?[...this.monthCache[o]]:[],s=i.findIndex(l=>{var d;return String(((d=l==null?void 0:l.raw)==null?void 0:d.id)??(l==null?void 0:l.id))===n});s!==-1?i.splice(s,1,r):i.push(r),i.sort((l,d)=>l.date-d.date),this._setMonth(o,i)},insertFromApiItem(t){const n=ha(t);n&&this.insertNormalizedEvent(n)},insertManyFromApi(t=[]){for(const n of t){const a=ha(n);a&&this.insertNormalizedEvent(a)}},insertFromApiPage(t){const n=Array.isArray(t)?t:(t==null?void 0:t.results)||[];this.insertManyFromApi(n)},insertFromParams(t){return this.applyUpdateToCache(t)},hasEvent(t){return!!this.findEventById(t)},resetAll(){var t;this.monthCache={},this.loadingYM=new Set,this.errorByYM={},this.loadedYM=new Set,(t=gt.clear)==null||t.call(gt)}}}),sc={class:"cpk-header bg-base-200"},lc={class:"left"},cc=["title"],dc={class:"right"},uc=["title"],mc={class:"toggle"},fc=["aria-pressed","title"],hc={key:0,class:"icon-5",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true"},pc={key:1,class:"icon-5",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true"},gc=Ce({__name:"CalHeader",props:{month:String,year:[String,Number],isCompact:Boolean,viewMode:{type:String,default:"calendar"},filterCount:{type:Number,default:0}},emits:["prev","next","today","toggle-compact","set-view-mode","close-page","open-filter"],setup(t){return(n,a)=>(e.openBlock(),e.createElementBlock("header",sc,[e.createElementVNode("div",lc,[e.createElementVNode("button",{onClick:a[0]||(a[0]=o=>n.$emit("close-page")),class:"cyber-button cyber-button--sm btn-ghost nav hide-md-up","aria-label":"Fechar"},a[8]||(a[8]=[e.createElementVNode("svg",{class:"icon-4",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true"},[e.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.createElementVNode("button",{type:"button",class:"cyber-button cyber-button--sm btn-ghost nav",onClick:a[1]||(a[1]=o=>n.$emit("prev")),"aria-label":"Mês anterior"},a[9]||(a[9]=[e.createElementVNode("svg",{class:"icon-4",viewBox:"0 0 24 24"},[e.createElementVNode("path",{fill:"currentColor",d:"M15.5 19 9 12l6.5-7 1.5 1.3L12.3 12l4.7 5.7z"})],-1),e.createElementVNode("span",{class:"label-md"},"Anterior",-1)])),e.createElementVNode("button",{type:"button",class:"cyber-button cyber-button--sm cyber-button--accent today",onClick:a[2]||(a[2]=o=>n.$emit("today")),"aria-label":"Hoje"},a[10]||(a[10]=[e.createElementVNode("svg",{class:"icon-4",viewBox:"0 0 24 24","aria-hidden":"true"},[e.createElementVNode("path",{fill:"currentColor",d:"M11.6643 2.05648c.0197-.00699.1589-.05645.3357-.05645.1768 0 .316.04946.3357.05645l.0019.00067c.0461.01577.0846.03229.1092.04332.0514.02304.1015.04898.1449.07268.0896.04898.1957.11302.3102.18855.2291.15109.521.36725.8121.63689C14.247 3.49218 15 4.37 15 5.50003c0 1.12688-.7447 2.00396-1.2779 2.49995-.2531.23541-.5075.43043-.7221.57742V10h5c.5523 0 1 .4477 1 1v3h-4c-.0568 0-.1125.0048-.1667.0139-.0542-.0091-.1099-.0139-.1667-.0139H5v-3c0-.5523.44772-1 1-1h5V8.57622c-.2139-.14666-.4676-.34115-.7202-.57589C9.74664 7.50489 9 6.62764 9 5.50003c0-1.13003.753-2.00785 1.286-2.50144.2911-.26964.583-.4858.8121-.63689.1145-.07553.2206-.13957.3102-.18855.0434-.0237.0935-.04964.1449-.07268.0246-.01103.0631-.02755.1092-.04332l.0019-.00067ZM4 17.8377V21c0 .5523.44772 1 1 1h14c.5523 0 1-.4477 1-1v-2.8243c-.0609.0534-.1248.1054-.1917.1556-.56.42-1.274.6687-2.1416.6687-.8677 0-1.5817-.2487-2.1417-.6687-.281-.2108-.5081-.4531-.6917-.7045-.1835.2514-.4106.4937-.6917.7045-.5599.42-1.2739.6687-2.1416.6687-.8677 0-1.5817-.2487-2.14169-.6687-.20142-.1511-.37514-.3184-.52499-.4936-.14984.1752-.32356.3425-.52499.4936-.55999.42-1.27398.6687-2.14166.6687s-1.58168-.2487-2.14167-.6687c-.20143-.1511-.37515-.3184-.525-.4936ZM5.2078 16c.0124.0314.0255.0628.03934.0939.11841.2664.27553.4856.47786.6374.19001.1425.47602.2687.94167.2687s.75165-.1262.94166-.2687c.20234-.1518.35945-.371.47786-.6374.01384-.0311.02694-.0625.03934-.0939H5.2078Zm5.3727.0939c-.0139-.0311-.027-.0625-.0394-.0939h2.9177c-.0124.0314-.0255.0628-.0393.0939-.1184.2664-.2755.4856-.4779.6374-.19.1425-.476.2687-.9416.2687-.4657 0-.7517-.1262-.9417-.2687-.2023-.1518-.3594-.371-.4778-.6374Zm5.6666 0c-.0138-.0311-.0269-.0625-.0393-.0939h2.9177c-.0124.0314-.0255.0628-.0393.0939-.1184.2664-.2755.4856-.4779.6374-.19.1425-.476.2687-.9416.2687-.4657 0-.7517-.1262-.9417-.2687-.2023-.1518-.3594-.371-.4779-.6374Z"})],-1),e.createElementVNode("span",{class:"label-md"},"Hoje",-1)])),e.createElementVNode("button",{type:"button",class:"cyber-button cyber-button--sm btn-ghost nav",onClick:a[3]||(a[3]=o=>n.$emit("next")),"aria-label":"Próximo mês"},a[11]||(a[11]=[e.createElementVNode("span",{class:"label-md"},"Próximo",-1),e.createElementVNode("svg",{class:"icon-4",viewBox:"0 0 24 24"},[e.createElementVNode("path",{fill:"currentColor",d:"M8 19l6.5-7L8 5l-1.5 1.3L11.7 12 6.5 17.7z"})],-1)]))]),e.createElementVNode("h2",{class:"month-title",title:`${t.month} ${t.year}`},e.toDisplayString(t.month)+" "+e.toDisplayString(t.year),9,cc),e.createElementVNode("div",dc,[e.createElementVNode("button",{type:"button",class:"cyber-button cyber-button--sm btn-ghost filter-btn",title:"Filtro de eventos",onClick:a[4]||(a[4]=o=>n.$emit("open-filter",o))},[a[12]||(a[12]=e.createElementVNode("svg",{class:"icon-5","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"currentColor",viewBox:"0 0 24 24"},[e.createElementVNode("path",{d:"M5.05 3C3.291 3 2.352 5.024 3.51 6.317l5.422 6.059v4.874c0 .472.227.917.613 1.2l3.069 2.25c1.01.742 2.454.036 2.454-1.2v-7.124l5.422-6.059C21.647 5.024 20.708 3 18.95 3H5.05Z"})],-1)),t.filterCount>0?(e.openBlock(),e.createElementBlock("span",{key:0,class:"filter-badge",title:`${t.filterCount} filtro${t.filterCount>1?"s":""} ativo${t.filterCount>1?"s":""}`},e.toDisplayString(t.filterCount),9,uc)):e.createCommentVNode("",!0)]),e.createElementVNode("div",mc,[e.createElementVNode("button",{type:"button",class:e.normalizeClass(["cyber-button cyber-button--sm btn-ghost",t.viewMode==="calendar"?"is-active":""]),onClick:a[5]||(a[5]=o=>n.$emit("set-view-mode","calendar")),"aria-label":"Visão Calendário"},a[13]||(a[13]=[e.createElementVNode("svg",{class:"icon-5",viewBox:"0 0 24 24","aria-hidden":"true"},[e.createElementVNode("path",{fill:"currentColor","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-2Z","clip-rule":"evenodd"})],-1),e.createElementVNode("span",{class:"label-lg"},"Calendário",-1)]),2),e.createElementVNode("button",{type:"button",class:e.normalizeClass(["cyber-button cyber-button--sm btn-ghost",t.viewMode==="agenda"?"is-active":""]),onClick:a[6]||(a[6]=o=>n.$emit("set-view-mode","agenda")),"aria-label":"Visão Agenda"},a[14]||(a[14]=[e.createElementVNode("svg",{class:"icon-5",viewBox:"0 0 24 24","aria-hidden":"true"},[e.createElementVNode("path",{fill:"currentColor","fill-rule":"evenodd",d:"M11 4.717c-2.286-.58-4.16-.756-7.045-.71A1.99 1.99 0 0 0 2 6v11c0 1.133.934 2.022 2.044 2.007 2.759-.38 4.5-.182 6.956.449V4.717Zm2 15.081c2.456-.631 4.198-.829 6.956-.791A2.013 2.013 0 0 0 22 16.999V6a1.99 1.99 0 0 0-1.955-1.993c-2.885-.046-4.76.13-7.045.71v15.081Z","clip-rule":"evenodd"})],-1),e.createElementVNode("span",{class:"label-lg"},"Agenda",-1)]),2)]),e.createElementVNode("button",{type:"button",class:"cyber-button cyber-button--sm show-lg btn-ghost",onClick:a[7]||(a[7]=o=>n.$emit("toggle-compact")),"aria-pressed":t.isCompact,title:t.isCompact?"Sair do modo compacto":"Ativar modo compacto"},[t.isCompact?(e.openBlock(),e.createElementBlock("svg",pc,a[16]||(a[16]=[e.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"},null,-1)]))):(e.openBlock(),e.createElementBlock("svg",hc,a[15]||(a[15]=[e.createElementVNode("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M4 8h4V4m12 4h-4V4M4 16h4v4m12-4h-4v4"},null,-1)])))],8,fc)])]))}},[["__scopeId","data-v-e367c35d"]]),yc=["title"],kc={class:"week-header"},xc=Ce({__name:"WeekDays",props:{weekDays:{type:Array,default:()=>[]},month:String,year:[String,Number]},setup(t){return(n,a)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("h2",{class:"month-title",title:`${t.month} ${t.year}`},e.toDisplayString(t.month)+" "+e.toDisplayString(t.year),9,yc),e.createElementVNode("div",kc,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.weekDays,o=>(e.openBlock(),e.createElementBlock("div",{key:o,class:"week-cell"},e.toDisplayString(o),1))),128))])],64))}},[["__scopeId","data-v-a59e7945"]]),bc=["onClick"],wc={key:0,class:"cell-today-indicator show-lg"},Ec={class:"cell-top"},vc={class:"day-number"},Cc={key:1,class:"more"},Sc={class:"bars-wrap"},Bc=4,Vc=8,ar=4,or=2,Mc=1,Nc=Ce({__name:"CalendarGrid",props:{startOffset:Number,monthDays:Array,viewDate:Date,isCompact:Boolean,isSameMonthFn:Function,isSelectedDayFn:Function,isTodayFn:Function,selectDayFn:Function,eventsByDayFn:Function,dayEventCountFn:Function,eventBarsToShowFn:Function,dayEventOverflowFn:Function},setup(t){const n=t,a=e.ref({}),o=new Map;function r(c){const g=(c==null?void 0:c.clientWidth)||0,y=(c==null?void 0:c.clientHeight)||0;if(!g||!y)return{cols:0,rows:0,widths:[],sum:0};const b=Math.max(0,Math.floor((g+ar)/(Bc+ar))),w=Math.max(0,Math.floor((y+or)/(Vc+or))),E=l(b,w),x=E.reduce((v,D)=>v+D,0);return{cols:b,rows:w,widths:E,sum:x}}function i(c,g){const y=r(g),b=a.value[c];(!b||b.cols!==y.cols||b.rows!==y.rows||b.sum!==y.sum)&&(a.value={...a.value,[c]:y})}function s(c,g){if(!g){const b=o.get(c);if(b&&(b.disconnect(),o.delete(c)),a.value[c]!=null){const w={...a.value};delete w[c],a.value=w}return}i(c,g);const y=new ResizeObserver(()=>i(c,g));y.observe(g),o.set(c,y)}e.onBeforeUnmount(()=>{o.forEach(c=>c.disconnect()),o.clear()});function l(c,g){if(c<=0||g<=0)return[];const y=[],b=.25;for(let w=0;w<g;w++){const E=w/Math.max(1,g-1),x=b+(1-b)*E,v=Math.max(1,Math.round(c*x));y.push(Math.min(v,c))}return y}function d(c,g){var x;const y=(typeof n.dayEventCountFn=="function"?n.dayEventCountFn(g):0)||0,b=((x=a.value[c])==null?void 0:x.sum)??0;if(y<=b)return{bars:y,overflow:0};const w=Math.max(0,b-Mc),E=Math.max(0,y-w);return{bars:w,overflow:E}}function f(c,g){const y=a.value[c];if(!y||y.rows===0||y.cols===0)return[];const{widths:b}=y,E=d(c,g).bars,x=(typeof n.eventsByDayFn=="function"?n.eventsByDayFn(g).slice(0,E):[])||[],v=b.map(()=>[]);let D=0;for(let _=b.length-1;_>=0&&D<x.length;_--){const C=Math.min(b[_],x.length-D);v[_]=x.slice(D,D+C),D+=C}return v}const u=e.ref(null);function h(c){return c&&c.nodeType===1&&typeof c.getBoundingClientRect=="function"}function m(c){if(!h(c))return;const g=u.value,y=g&&h(g)?g:c.offsetParent;if(!h(y))return;let b,w;try{b=c.getBoundingClientRect(),w=y.getBoundingClientRect()}catch{return}const E=y.scrollLeft||0,x=y.scrollTop||0;c.style.position="absolute",c.style.zIndex="0",c.style.top=`${b.top-w.top+x}px`,c.style.left=`${b.left-w.left+E}px`,c.style.width=`${b.width}px`,c.style.height=`${b.height}px`,c.style.pointerEvents="none"}function p(c){!c||!c.style||requestAnimationFrame(()=>{!c||!c.style||(c.style.position="",c.style.zIndex="",c.style.top="",c.style.left="",c.style.width="",c.style.height="",c.style.pointerEvents="")})}return(c,g)=>(e.openBlock(),e.createBlock(e.TransitionGroup,{name:"cal-fade","move-class":"cal-move",tag:"div",class:"cal-grid calendar-grid",appear:"",ref_key:"gridRef",ref:u,onBeforeLeave:m,onAfterLeave:p},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.startOffset,y=>(e.openBlock(),e.createElementBlock("div",{key:"x"+y,class:"cal-cell day-empty bg-base-300 border border-base-100"}))),128)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.monthDays,(y,b)=>(e.openBlock(),e.createElementBlock("div",{key:y.key,style:e.normalizeStyle({"--i":b}),class:e.normalizeClass(["cal-cell day-cell border border-base-100 bg-base-200 hover:bg-base-100",[t.isSameMonthFn(y.date,t.viewDate)?"":"opacity-60",t.isSelectedDayFn(y.date)?"neon-selected":"",t.isTodayFn(y.date)?"is-today":"",t.dayEventCountFn(y.date)>0?"has-events":""]]),onClick:w=>t.selectDayFn(y.date)},[t.isTodayFn(y.date)?(e.openBlock(),e.createElementBlock("div",wc," Hoje ")):e.createCommentVNode("",!0),e.createElementVNode("div",Ec,[e.createElementVNode("span",vc,e.toDisplayString(y.date.getDate()),1)]),d(y.key,y.date).overflow>0?(e.openBlock(),e.createElementBlock("span",Cc," +"+e.toDisplayString(d(y.key,y.date).overflow),1)):e.createCommentVNode("",!0),e.createElementVNode("div",Sc,[e.createElementVNode("div",{class:"bars-vert",ref_for:!0,ref:w=>s(y.key,w)},[d(y.key,y.date).bars>0?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(f(y.key,y.date),(w,E)=>(e.openBlock(),e.createElementBlock("div",{key:"vrow"+E,class:"vrow"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(w,(x,v)=>(e.openBlock(),e.createElementBlock("span",{key:"vbar"+E+"-"+v,class:"vbar",style:e.normalizeStyle({background:e.unref(Vn)(x),boxShadow:`0 0 8px ${e.unref(Vn)(x)}70`})},null,4))),128))]))),128)):e.createCommentVNode("",!0)],512)])],14,bc))),128))]),_:1},512))}},[["__scopeId","data-v-82c146bb"]]),Ac={class:"agenda-section"},Tc={key:0,class:"empty-state"},Dc={key:1,class:"day-list"},Lc={class:"date-trail"},Fc={class:"weekday-short"},$c={class:"date-pill bg-base-200 border border-base-300"},_c={class:"date-pill-month"},Pc={class:"date-pill-day"},Oc={class:"content-col"},Rc={class:"day-header"},Hc={class:"agenda-title"},zc={class:"month-header-text"},jc={class:"events-list"},Gc=Ce({__name:"AgendaList",props:{days:{type:Array,default:()=>[]},weekdayLong:Function,weekdayShort:Function,monthShort:Function,monthLabelOf:Function,year:Number},emits:["open-chat","open-message","delete-message"],setup(t,{emit:n}){return(a,o)=>(e.openBlock(),e.createElementBlock("section",Ac,[t.days.length===0?(e.openBlock(),e.createElementBlock("div",Tc," Sem eventos neste mês. ")):(e.openBlock(),e.createElementBlock("ul",Dc,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.days,r=>{var i;return e.openBlock(),e.createElementBlock("li",{key:r.key,class:"day-item border-base-200"},[e.createElementVNode("div",Lc,[e.createElementVNode("div",Fc,e.toDisplayString(t.weekdayShort(r.date)),1),e.createElementVNode("div",$c,[e.createElementVNode("div",_c,e.toDisplayString(t.monthShort(r.date)),1),e.createElementVNode("div",Pc,e.toDisplayString(r.date.getDate()),1),e.createElementVNode("div",{style:e.normalizeStyle({background:e.unref(Vn)(((i=r.events)==null?void 0:i[0])||{})}),class:"date-pill-dot"},null,4)])]),e.createElementVNode("div",Oc,[e.createElementVNode("div",Rc,[e.createElementVNode("h3",Hc,e.toDisplayString(t.weekdayLong(r.date).toUpperCase())+" "+e.toDisplayString(r.date.getDate()),1),e.createElementVNode("div",zc,e.toDisplayString(t.monthLabelOf(r.date).toUpperCase())+" "+e.toDisplayString(t.year),1)]),e.createElementVNode("ul",jc,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.events,s=>(e.openBlock(),e.createElementBlock("li",{key:s.id,class:"event-item border border-base-100 bg-base-200 hover:bg-base-100"},[e.createVNode(pa,{ev:s,mode:"agenda",onOpenMessage:o[0]||(o[0]=l=>a.$emit("open-message",l)),onOpenChat:o[1]||(o[1]=l=>a.$emit("open-chat",l)),onDeleteMessage:o[2]||(o[2]=l=>a.$emit("delete-message",l))},null,8,["ev"])]))),128))])])])}),128))]))]))}},[["__scopeId","data-v-d901943e"]]),qc=["data-mode","data-empty"],Ic=["disabled"],rr=Ce({__name:"EventsList",props:{loading:{type:Boolean,default:!1},selectedLabel:{type:String,default:""},selectedLabelLong:{type:String,default:""},events:{type:Array,default:()=>[]},mode:{type:String,default:"compact"}},emits:["reload","open-chat","open-message","delete-message"],setup(t){const n=t,a=e.computed(()=>n.mode==="compact"?n.selectedLabelLong||"Hoje":`Eventos em ${n.selectedLabel||"—"}`);return(o,r)=>(e.openBlock(),e.createElementBlock("section",{class:e.normalizeClass(["bg-base-300 daylist",[t.mode==="compact"?"daylist--compact has-border border-base-200":"daylist--sidebar has-border border-base-200 supports-blur",{"daylist--tight":t.mode==="compact"&&!t.loading&&t.events.length===0}]]),"data-mode":t.mode,"data-empty":!t.loading&&t.events.length===0?"1":"0"},[e.createElementVNode("div",{class:e.normalizeClass(["daylist-header",t.mode==="compact"?"daylist-header--compact bg-base-300":"daylist-header--sidebar bg-base-300"])},[e.createElementVNode("h3",{class:e.normalizeClass(t.mode==="compact"?"daylist-title--compact":"daylist-title--sidebar")},e.toDisplayString(a.value),3),e.createElementVNode("button",{type:"button",class:"cyber-button cyber-button--sm cyber-button--accent",onClick:r[0]||(r[0]=i=>o.$emit("reload")),disabled:t.loading},e.toDisplayString(t.loading?"Atualizando…":"Atualizar"),9,Ic)],2),t.loading?(e.openBlock(),e.createBlock(e.Transition,{key:0,name:"fade"},{default:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass(["loading-text",t.mode==="compact"?"is-compact":"is-sidebar"])}," Carregando… ",2)]),_:1})):t.events.length===0?(e.openBlock(),e.createBlock(e.Transition,{key:1,name:"fade"},{default:e.withCtx(()=>r[4]||(r[4]=[e.createElementVNode("div",{class:"empty-text"},"Sem eventos.",-1)])),_:1,__:[4]})):(e.openBlock(),e.createBlock(e.TransitionGroup,{key:2,name:"list","move-class":"list-move",tag:"ul",appear:"",class:e.normalizeClass([t.mode==="compact"?"list-compact has-border border-base-300 bg-base-200 supports-blur":"list-sidebar"])},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.events,(i,s)=>(e.openBlock(),e.createElementBlock("li",{key:i.id,style:e.normalizeStyle({"--i":s}),class:e.normalizeClass(t.mode==="compact"?"item-compact hover:bg-base-100":"item-sidebar hover:z-10 has-border hover:bg-base-100 border-base-100 bg-base-200 ")},[e.createVNode(pa,{ev:i,mode:t.mode==="compact"?"compact":"sidebar",onOpenMessage:r[1]||(r[1]=l=>o.$emit("open-message",l)),onOpenChat:r[2]||(r[2]=l=>o.$emit("open-chat",l)),onDeleteMessage:r[3]||(r[3]=l=>o.$emit("delete-message",l))},null,8,["ev","mode"])],6))),128))]),_:1},8,["class"]))],10,qc))}},[["__scopeId","data-v-0c2dc086"]]),Wc={class:"cpk-popover__header border-base-100"},Uc={class:"filter-body"},Zc={class:"row"},Yc=["checked"],Xc={class:"row row--status",role:"group","aria-label":"Filtrar por status de execução"},Kc={class:"status-wrap"},Qc={class:"seg"},Jc=Ce({__name:"CalFilter",props:{open:{type:Boolean,default:!1},anchorEl:{type:[HTMLElement,Object],default:null},offset:{type:Number,default:8},align:{type:String,default:"center"},filters:{type:Object,default:()=>({})}},emits:["close","update:filters"],setup(t,{emit:n}){const a=t,o=n,r=Rt(),i=e.computed(()=>r.attendants.find(C=>C.is_me)||null),s=e.reactive({onlyMine:!1,status:null});e.watch(()=>a.open,async C=>{var S,B,A;if(!C)return;await e.nextTick();const k=(S=i.value)!=null&&S.id?String(i.value.id):null;s.onlyMine=!!k&&String(((B=a.filters)==null?void 0:B.scheduled_by)??"")===k;const N=(A=a.filters)==null?void 0:A.status;s.status=N===!0||N===!1?N:null,y()},{immediate:!1});function l(C,k){if(!C)return{};const{[k]:N,...S}=C;return S}function d(C){var N;s.onlyMine=!!C.target.checked;const k=(N=i.value)!=null&&N.id?String(i.value.id):null;s.onlyMine&&k?o("update:filters",{...a.filters,scheduled_by:k}):o("update:filters",l(a.filters,"scheduled_by"))}function f(C){if(s.status===C){s.status=null;const k=l(a.filters,"status");o("update:filters",k)}else s.status=C,o("update:filters",{...a.filters,status:C})}const u=e.ref(null),h=e.ref({left:0,top:0,placed:"bottom"}),m=e.computed(()=>({position:"fixed",left:`${h.value.left}px`,top:`${h.value.top}px`}));function p(){const C=a.anchorEl instanceof Element?a.anchorEl:null;if(C!=null&&C.getBoundingClientRect)return C.getBoundingClientRect();const k=window.innerWidth/2,N=window.innerHeight/3;return{left:k,right:k,top:N,bottom:N,width:0,height:0}}function c(C,k,N,S){return{left:Math.max(8,Math.min(C,window.innerWidth-N-8)),top:Math.max(8,Math.min(k,window.innerHeight-S-8))}}function g(){const C=p(),k=u.value,N=(k==null?void 0:k.offsetWidth)??300,S=(k==null?void 0:k.offsetHeight)??220;let B=C.bottom+a.offset,A;if(a.align==="center"?A=C.left+C.width/2-N/2:a.align==="end"?A=C.right-N:A=C.left,B+S>window.innerHeight-4){const H=C.top-S-a.offset;H>=4?(B=H,h.value.placed="top"):h.value.placed="bottom"}else h.value.placed="bottom";const M=c(A,B,N,S);h.value={left:M.left,top:M.top,placed:h.value.placed}}function y(){g(),requestAnimationFrame(g)}let b,w,E=[];function x(){v(),E=[window];const C=a.anchorEl instanceof Element?a.anchorEl:null;let k=C==null?void 0:C.parentElement;for(;k&&k!==document.body;){const N=getComputedStyle(k);/(auto|scroll)/.test(N.overflow+N.overflowY+N.overflowX)&&E.push(k),k=k.parentElement}E.forEach(N=>N.addEventListener("scroll",y,{passive:!0}))}function v(){E.forEach(C=>{var k;return(k=C.removeEventListener)==null?void 0:k.call(C,"scroll",y)}),E=[]}e.watch(()=>a.open,async C=>{var N,S,B,A;if(!C){v(),(N=b==null?void 0:b.disconnect)==null||N.call(b),(S=w==null?void 0:w.disconnect)==null||S.call(w);return}await e.nextTick(),y(),x(),(B=b==null?void 0:b.disconnect)==null||B.call(b),b=new ResizeObserver(y),b.observe(document.body),(A=w==null?void 0:w.disconnect)==null||A.call(w);const k=a.anchorEl instanceof Element?a.anchorEl:null;k&&(w=new ResizeObserver(y),w.observe(k)),window.addEventListener("resize",y)}),e.watch(()=>a.anchorEl,async()=>{a.open&&(await e.nextTick(),x(),y())});function D(C){C.key==="Escape"&&o("close")}function _(C){if(!a.open)return;const k=C.target,N=u.value;if(N&&N.contains(k))return;const S=a.anchorEl instanceof Element?a.anchorEl:null;S&&S.contains&&S.contains(k)||o("close")}return e.onMounted(()=>{document.addEventListener("pointerdown",_,!0),window.addEventListener("keydown",D)}),e.onBeforeUnmount(()=>{var C,k;document.removeEventListener("pointerdown",_,!0),window.removeEventListener("keydown",D),v(),(C=b==null?void 0:b.disconnect)==null||C.call(b),(k=w==null?void 0:w.disconnect)==null||k.call(w)}),(C,k)=>(e.openBlock(),e.createBlock(e.Transition,{name:"cpk-layer",appear:""},{default:e.withCtx(()=>[t.open?(e.openBlock(),e.createElementBlock("div",{key:0,class:"cpk-popover-layer",onMousedown:k[4]||(k[4]=e.withModifiers(N=>C.$emit("close"),["self"]))},[e.createVNode(e.Transition,{name:"cpk-card",appear:""},{default:e.withCtx(()=>[e.createElementVNode("div",{ref_key:"card",ref:u,class:"cpk-popover bg-base-300",style:e.normalizeStyle(m.value),role:"dialog","aria-modal":"true","aria-label":"Filtro de eventos"},[e.createElementVNode("div",Wc,[k[5]||(k[5]=e.createElementVNode("div",{class:"cpk-popover__icon","aria-hidden":"true"},"⚙",-1)),k[6]||(k[6]=e.createElementVNode("h3",{class:"cpk-popover__title"},"Filtros",-1)),e.createElementVNode("button",{class:"cpk-popover__close",type:"button",onClick:k[0]||(k[0]=N=>C.$emit("close")),"aria-label":"Fechar"}," × ")]),e.createElementVNode("div",Uc,[e.createElementVNode("label",Zc,[e.createElementVNode("input",{class:"switch",type:"checkbox",checked:s.onlyMine,onChange:k[1]||(k[1]=N=>d(N)),"aria-label":"Exibir somente meus eventos"},null,40,Yc),k[7]||(k[7]=e.createElementVNode("span",{class:"label-cpk"},"Exibir somente meus eventos",-1))]),e.createElementVNode("div",Xc,[k[9]||(k[9]=e.createElementVNode("span",{class:"status-icon","aria-hidden":"true"},[e.createElementVNode("svg",{class:"icon-4","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"currentColor",viewBox:"0 0 24 24"},[e.createElementVNode("path",{"fill-rule":"evenodd",d:"M12 2a1 1 0 0 1 .932.638l7 18a1 1 0 0 1-1.326 1.281L13 19.517V13a1 1 0 1 0-2 0v6.517l-5.606 2.402a1 1 0 0 1-1.326-1.281l7-18A1 1 0 0 1 12 2Z","clip-rule":"evenodd"})])],-1)),e.createElementVNode("div",Kc,[k[8]||(k[8]=e.createElementVNode("div",{class:"label-cpk"},[e.createTextVNode(" Status "),e.createElementVNode("span",{class:"sched-pop",tabindex:"0","aria-label":"Ajuda sobre status"},[e.createElementVNode("span",{class:"sched-pop__mark"},[e.createElementVNode("svg",{class:"icon-4","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"currentColor",viewBox:"0 0 24 24"},[e.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 12Zm9.008-3.018a1.502 1.502 0 0 1 2.522 1.159v.024a1.44 1.44 0 0 1-1.493 1.418 1 1 0 0 0-1.037.999V14a1 1 0 1 0 2 0v-.539a3.44 3.44 0 0 0 2.529-3.256 3.502 3.502 0 0 0-7-.255 1 1 0 0 0 2 .076c.014-.398.187-.774.48-1.044Zm.982 7.026a1 1 0 1 0 0 2H12a1 1 0 1 0 0-2h-.01Z","clip-rule":"evenodd"})])]),e.createElementVNode("div",{class:"sched-pop__card bg-base-300",style:{"--popover-brd":"var(--cyber-border)",transform:"translate(-5%, -50%) scale(0.98)"}},[e.createElementVNode("div",null,[e.createElementVNode("span",{style:{"font-weight":"600"}},"Ativos:"),e.createTextVNode(" Eventos que estão programados para ocorrer ")]),e.createElementVNode("div",null,[e.createElementVNode("span",{style:{"font-weight":"600"}},"Executados:"),e.createTextVNode(" Eventos que já ocorreram ")])])])],-1)),e.createElementVNode("div",Qc,[e.createElementVNode("button",{type:"button",class:e.normalizeClass(["cyber-button cyber-button--xs btn-ghost",s.status===!0?"is-active":""]),onClick:k[2]||(k[2]=N=>f(!0)),"aria-pressed":"state.status === true"}," Ativos ",2),e.createElementVNode("button",{type:"button",class:e.normalizeClass(["cyber-button cyber-button--xs btn-ghost",s.status===!1?"is-active":""]),onClick:k[3]||(k[3]=N=>f(!1)),"aria-pressed":"state.status === false"}," Executados ",2)])])])])],4)]),_:1})],32)):e.createCommentVNode("",!0)]),_:1}))}},[["__scopeId","data-v-cc8bb01a"]]),ed={class:"calendar-content"},td={class:"calendar-stage-main"},nd={key:0},ir=Ce({__name:"scheduledCalendar",props:{sourceUrl:{type:String,default:"/crm_scheduled"},initialDate:{type:[String,Date],default:()=>new Date}},emits:["open-chat","loaded","open-message","close-page"],setup(t,{expose:n,emit:a}){const o=t,r=nr();r.setBaseUrl(o.sourceUrl);const i=new Date,s=e.ref(f(o.initialDate)),l=e.ref(new Date(i.getFullYear(),i.getMonth(),i.getDate())),d=e.ref("calendar");function f(O){if(O instanceof Date)return new Date(O.getFullYear(),O.getMonth(),1);if(typeof O=="string"){const[K,ae]=O.split("-").map(ce=>parseInt(ce,10));return new Date(K||i.getFullYear(),(ae||i.getMonth()+1)-1,1)}return new Date(i.getFullYear(),i.getMonth(),1)}function u(O){return new Date(O.getFullYear(),O.getMonth()+1,0).getDate()}function h(O){return new Date(O.getFullYear(),O.getMonth(),1).getDay()}function m(O,K){return O.getFullYear()===K.getFullYear()&&O.getMonth()===K.getMonth()}function p(O){return fa(O,i)}function c(O){return fa(O,l.value)}function g(O){l.value=new Date(O.getFullYear(),O.getMonth(),O.getDate()),m(O,s.value)||(s.value=new Date(O.getFullYear(),O.getMonth(),1))}function y(){s.value=new Date(s.value.getFullYear(),s.value.getMonth()-1,1)}function b(){s.value=new Date(s.value.getFullYear(),s.value.getMonth()+1,1)}function w(){s.value=new Date(i.getFullYear(),i.getMonth(),1),l.value=new Date(i.getFullYear(),i.getMonth(),i.getDate())}const E=["janeiro","fevereiro","março","abril","maio","junho","julho","agosto","setembro","outubro","novembro","dezembro"],x=["DOM","SEG","TER","QUA","QUI","SEX","SÁB"],v=e.computed(()=>M(E[s.value.getMonth()])),D=e.computed(()=>s.value.getFullYear()),_=e.computed(()=>k(l.value)),C=e.computed(()=>`${N(l.value)} ${l.value.getDate()}`);function k(O){return`${String(O.getDate()).padStart(2,"0")}/${String(O.getMonth()+1).padStart(2,"0")}/${O.getFullYear()}`}function N(O){return["DOMINGO","SEGUNDA","TERÇA","QUARTA","QUINTA","SEXTA","SÁBADO"][O.getDay()]}function S(O){return["DOM","SEG","TER","QUA","QUI","SEX","SÁB"][O.getDay()]}function B(O){return["JAN","FEV","MAR","ABR","MAI","JUN","JUL","AGO","SET","OUT","NOV","DEZ"][O.getMonth()]}function A(O){return E[O.getMonth()]}function M(O){return O.charAt(0).toUpperCase()+O.slice(1)}const H=e.computed(()=>h(s.value)),ie=e.computed(()=>{const O=u(s.value);return Array.from({length:O},(K,ae)=>{const ce=ae+1,Ee=new Date(s.value.getFullYear(),s.value.getMonth(),ce);return{key:`d${ce}`,date:Ee}})}),Q=e.ref({open:!1,anchorEl:null});function fe(O){Q.value.open=!0,Q.value.anchorEl=(O==null?void 0:O.currentTarget)||null}const{filters:F}=Vt.storeToRefs(r),L=e.computed(()=>Ot(s.value)),j=e.computed(()=>r.eventsOf(L.value)),re={scheduled_by:O=>{var ce,Ee,ye;const K=(O==null?void 0:O.scheduled_by)??((Ee=(ce=O==null?void 0:O.raw)==null?void 0:ce.params)==null?void 0:Ee.scheduled_by)??((ye=O==null?void 0:O.raw)==null?void 0:ye.scheduled_by)??(O==null?void 0:O.created_by)??(O==null?void 0:O.attendant_id),ae=typeof K=="object"&&K?K.id??K.attendant_id:K;return ae!=null?String(ae):""}};function se(O,K){const ae=(K==null?void 0:K.value)??K;return!ae||typeof ae!="object"?!0:Object.entries(ae).every(([ce,Ee])=>{var I,Z,he;if(Ee==null||Ee===""||Array.isArray(Ee)&&Ee.length===0)return!0;const ye=re[ce],T=(ye==null?void 0:ye(O))??(O==null?void 0:O[ce])??((I=O==null?void 0:O.raw)==null?void 0:I[ce])??((he=(Z=O==null?void 0:O.raw)==null?void 0:Z.params)==null?void 0:he[ce])??null,P=typeof T=="string"?T:T??"";if(typeof Ee=="function")return!!Ee(P,O);if(Array.isArray(Ee))return Ee.map(String).includes(String(P));if(typeof Ee=="object"){const{in:te,notIn:oe,range:ue,contains:R}=Ee;if(te&&!te.map(String).includes(String(P))||oe&&oe.map(String).includes(String(P)))return!1;if(ue&&typeof P=="number"){const[Y,le]=ue;if(Y!=null&&P<Y||le!=null&&P>le)return!1}if(R!=null){const Y=Array.isArray(P)?P:String(P).split(",");if(!(Array.isArray(R)?R:[R]).some(xe=>Y.map(String).includes(String(xe))))return!1}return!0}return String(P)===String(Ee)})}const be=e.computed(()=>(j.value||[]).filter(K=>se(K,F)));function Se(O){return be.value.filter(K=>fa(K.date,O))}const Fe=e.computed(()=>Se(l.value)),$e=e.computed(()=>[...Fe.value].sort((O,K)=>O.date-K.date));function Ve(O){return Se(O).length}function G(O){return Math.min(3,Ve(O))}function ne(O){const K=Ve(O);return K>3?K-3:0}const J=e.computed(()=>{const O=s.value.getFullYear(),K=s.value.getMonth(),ae=new Map;for(const Ee of be.value){const ye=Ee==null?void 0:Ee.date;if(!(ye instanceof Date)||ye.getFullYear()!==O||ye.getMonth()!==K)continue;const T=`${O}-${K+1}-${ye.getDate()}`;ae.has(T)||ae.set(T,{key:`ag-${T}`,date:new Date(O,K,ye.getDate()),events:[]}),ae.get(T).events.push(Ee)}const ce=Array.from(ae.values());for(const Ee of ce)Ee.events.sort((ye,T)=>ye.date-T.date);return ce.sort((Ee,ye)=>Ee.date-ye.date),ce}),V=e.ref(!1),$=e.ref(!1),q=e.computed(()=>$.value||V.value),z=e.computed(()=>q?"calendar-stage--compact":"calendar-stage--single");function X(){var ae;const O=window.matchMedia("(max-width: 1280px)"),K=()=>$.value=O.matches;K(),(ae=O.addEventListener)==null||ae.call(O,"change",K)}const U=e.computed(()=>r.isLoading(L.value));e.computed(()=>r.errorOf(L.value));const ee=e.ref({open:!1,loading:!1,context:null,title:"Confirmar exclusão",description:"Tem certeza que deseja apagar este item?",destructive:!0,anchorEl:null,confirmLabel:"Apagar",cancelLabel:"Cancelar",loadingLabel:"Apagando…"});function de(O,K){ee.value.open=!0,ee.value.context={action:"delete-message",event:O},ee.value.title="Confirmar exclusão",ee.value.description="Tem certeza que deseja apagar este evento?",ee.value.anchorEl=K&&K.currentTarget||typeof document<"u"&&document.activeElement||null,ee.value.destructive=!0,ee.value.confirmLabel="Apagar",ee.value.loadingLabel="Apagando…"}async function we(O){if(O)try{ee.value.loading=!0,O.action==="delete-message"&&await ge(O.event)}finally{ee.value.loading=!1,ee.value.open=!1,ee.value.context=null}}function ke(){ee.value.open=!1,ee.value.context=null}async function pe(){await r.forceReload(L.value)}async function ge(O){var K;try{O.deleteLoading=!0;const ae=((K=O==null?void 0:O.raw)==null?void 0:K.id)??(O==null?void 0:O.id)??O;if(ae==null)throw new Error("Evento inválido para exclusão");const ce=await p2(ms,O);return ce!=null&&ce.ok&&(r.removeFromCache(String(ae))||await r.forceReload(L.value)),ce}catch(ae){return console.error(ae),null}finally{O.deleteLoading=!1}}return e.onMounted(async()=>{if(X(),await r.ensureMonthLoaded(L.value),!Se(l.value).length&&be.value.length){const O=be.value[0];l.value=new Date(O.date.getFullYear(),O.date.getMonth(),O.date.getDate())}}),e.watch(()=>o.sourceUrl,async O=>{if(r.setBaseUrl(O),r.resetAll(),await r.ensureMonthLoaded(L.value),!Se(l.value).length&&be.value.length){const K=be.value[0];l.value=new Date(K.date.getFullYear(),K.date.getMonth(),K.date.getDate())}}),e.watch(L,async()=>{const O=s.value.getFullYear(),K=s.value.getMonth(),ae=Math.min(l.value.getDate(),u(s.value));if(l.value=new Date(O,K,ae),await r.ensureMonthLoaded(L.value),!Se(l.value).length&&be.value.length){const ce=be.value[0];l.value=new Date(ce.date.getFullYear(),ce.date.getMonth(),ce.date.getDate())}}),n({updateEvent:r.applyUpdateToCache}),(O,K)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{class:e.normalizeClass(["calendar-main bg-base-300",{"calendar-main--compact":q.value}])},[e.createElementVNode("div",ed,[K[15]||(K[15]=e.createElementVNode("div",{class:"cyber-glow-overlay"},null,-1)),e.createVNode(gc,{month:v.value,year:D.value,"is-compact":q.value,"view-mode":d.value,"filter-count":Object.keys(e.unref(F)).length,onPrev:y,onNext:b,onToday:w,onToggleCompact:K[0]||(K[0]=ae=>V.value=!V.value),onSetViewMode:K[1]||(K[1]=ae=>d.value=ae),onClosePage:K[2]||(K[2]=ae=>O.$emit("close-page")),onOpenFilter:fe},null,8,["month","year","is-compact","view-mode","filter-count"]),d.value==="calendar"?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["calendar-stage",z.value])},[e.createElementVNode("div",td,[e.createVNode(xc,{"week-days":x,month:v.value,year:D.value},null,8,["month","year"]),e.createVNode(Nc,{"start-offset":H.value,"month-days":ie.value,"view-date":s.value,"is-compact":q.value,"is-same-month-fn":m,"is-selected-day-fn":c,"is-today-fn":p,"select-day-fn":g,"events-by-day-fn":Se,"day-event-count-fn":Ve,"event-bars-to-show-fn":G,"day-event-overflow-fn":ne},null,8,["start-offset","month-days","view-date","is-compact"])]),q.value?(e.openBlock(),e.createBlock(rr,{key:0,class:"calendar-daylist calendar-daylist--mobile",loading:U.value,"selected-label-long":C.value,events:$e.value,mode:"compact",onReload:pe,onOpenChat:K[3]||(K[3]=ae=>O.$emit("open-chat",ae)),onOpenMessage:K[4]||(K[4]=ae=>O.$emit("open-message",ae)),onDeleteMessage:K[5]||(K[5]=(ae,ce)=>de(ae,ce))},null,8,["loading","selected-label-long","events"])):e.createCommentVNode("",!0)],2)):(e.openBlock(),e.createBlock(Gc,{key:1,days:J.value,"weekday-long":N,"weekday-short":S,"month-short":B,"month-label-of":A,year:D.value,onOpenChat:K[6]||(K[6]=ae=>O.$emit("open-chat",ae)),onOpenMessage:K[7]||(K[7]=ae=>O.$emit("open-message",ae)),onDeleteMessage:K[8]||(K[8]=(ae,ce)=>de(ae,ce))},null,8,["days","year"]))]),e.createVNode(rr,{class:"calendar-daylist calendar-daylist--desktop",loading:U.value,"selected-label":_.value,"selected-label-long":C.value,events:$e.value,mode:q.value?"compact":"sidebar",onReload:pe,onOpenChat:K[9]||(K[9]=ae=>O.$emit("open-chat",ae)),onOpenMessage:K[10]||(K[10]=ae=>O.$emit("open-message",ae)),onDeleteMessage:K[11]||(K[11]=(ae,ce)=>de(ae,ce))},null,8,["loading","selected-label","selected-label-long","events","mode"])],2),e.createVNode(nl,{modelValue:ee.value.open,"onUpdate:modelValue":K[12]||(K[12]=ae=>ee.value.open=ae),title:ee.value.title,description:ee.value.description,destructive:ee.value.destructive,"confirm-label":ee.value.confirmLabel,"cancel-label":ee.value.cancelLabel,loading:ee.value.loading,"loading-label":ee.value.loadingLabel,context:ee.value.context,"anchor-el":ee.value.anchorEl,placement:"auto",align:"center",offset:12,onConfirm:we,onCancel:ke},{details:e.withCtx(()=>{var ae;return[(ae=ee.value.context)!=null&&ae.event?(e.openBlock(),e.createElementBlock("div",nd,[e.createVNode(pa,{"view-only":!0,mode:"sidebar",ev:ee.value.context.event},null,8,["ev"])])):e.createCommentVNode("",!0)]}),_:1},8,["modelValue","title","description","destructive","confirm-label","cancel-label","loading","loading-label","context","anchor-el"]),e.createVNode(Jc,{open:Q.value.open,"anchor-el":Q.value.anchorEl,filters:e.unref(F),"onUpdate:filters":K[13]||(K[13]=ae=>e.isRef(F)?F.value=ae:null),onClose:K[14]||(K[14]=ae=>Q.value.open=!1)},null,8,["open","anchor-el","filters"])],64))}},[["__scopeId","data-v-d0a577ac"]]),ad={class:"flex flex-col text-center"},od={class:"flex flex-col space-y-3 justify-center"},rd={class:"space-x-4 flex-col text-black justify-center"},id=["onUpdate:modelValue","onInput","onKeydown"],sr={__name:"mfa",props:{eventHandling:{type:String,default:null}},emits:["filled","reset"],setup(t,{emit:n}){e.onMounted(()=>{r.value[0].focus()});const a=n,o=e.ref(Array(6).fill("")),r=e.ref([]);e.ref(!1);const i=f=>{const u=o.value[f];o.value[0]<1&&a("reset"),/^\d$/.test(u)?s(f):o.value[f]="",f===o.value.length-1&&o.value.every(h=>h!=="")&&d()},s=f=>{f<o.value.length-1&&o.value[f]&&r.value[f+1].focus()},l=(f,u)=>{u.key==="Backspace"&&!o.value[f]&&f>0&&r.value[f-1].focus()},d=()=>{const f=o.value.join("");a("filled",f)};return(f,u)=>(e.openBlock(),e.createElementBlock("section",ad,[e.createElementVNode("div",od,[e.createElementVNode("div",rd,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.value,(h,m)=>e.withDirectives((e.openBlock(),e.createElementBlock("input",{key:m,"onUpdate:modelValue":p=>o.value[m]=p,class:e.normalizeClass([t.eventHandling==="check"?"checked_mfa":t.eventHandling==="err"?"err_mfa":"reset_input","inline-block w-10 h-10 rounded-md text-center"]),type:"text",maxlength:"1",onInput:p=>i(m),onKeydown:e.withKeys(p=>l(m,p),["backspace"]),ref_for:!0,ref_key:"inputs",ref:r},null,42,id)),[[e.vModelText,o.value[m]]])),128))])])]))}},sd={class:"text-center flex gap-3"},ld={class:"flex justify-center gap-2 relative bg-base-200 p-2 rounded-lg shadow-md shadow-black"},cd={key:0,class:"items-center justify-center inline-flex"},dd=["src"],ud={__name:"mfaQrCode",props:{base64:{type:String,default:""},dimensions:{type:Array,default:null},loading:{type:Boolean,default:!1},generated:{type:Boolean,default:!1}},emits:["generateQR"],setup(t,{emit:n}){const a=n;e.ref(!1);const o=t,r=()=>{a("generateQR")},i=e.computed(()=>o.base64?o.base64:l.value),s=e.computed(()=>`w-${o.dimensions[0]} h-${o.dimensions[1]}`),l=e.ref("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAASwAAAEsCAYAAAB5fY51AAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAABmJLR0QAAAAAAAD5Q7t/AAAACXBIWXMAAABgAAAAYADwa0LPAAARGUlEQVR42u3dsZLbxhKFYejGpAOp9Jb7ACo9gMqx9JYbKOA6pwNfuly2yJ5lz5nuA/xfFSILwGAwanuxxz0frtfrdQMAA/+rHgAAjKJgAbBBwQJgg4IFwAYFC4ANChYAGxQsADYoWABsULAA2KBgAbBBwQJgg4IFwAYFC4ANChYAGxQsADYoWABsULAA2KBgAbBBwQJgg4IFwAYFC4ANChYAGxQsADYoWABsULAA2KBgAbBBwQJgg4IFwAYFC4ANChYAGxQsADYoWABsULAA2GhTsD59+rR9+PBht0fkx48f2/l8/s955/N5+/HjR/XruTu+6Bgdv/r51dc/+vpd5cP1er1WD2Lb/nrhP3/+rB6GTDTN5/N5++OPP375z06n0/b29lY6/kfji4yMX/386usfff2uQsFaJJrm6N9i1a8p+2/Z6udXX//o63eVNj8SAkCEggXABgULgA0KFkIzPvhH1zidTk/9s07PCD0KFh56e3vbvnz5kr7O169fHxaFb9++/bIwnU6n7ffff5c/ZzQ+NHFt4uPHj9dt2+4er6+v1UNMjT/y6NwZr+n79+/X0+kU3mf1cTqdrt+/f396/KPnq8d39PW7ik2s4fX1dfv8+XP1MJ8efzTN6l+7Z3JUaityWplYxsj1j75+V+FHwoPoWqxGx/boz6ifrfPcHQ0FC4ANChYAGxQsADYoWCayv3JfkWVSjq06p4UeKFgmsjmhezmnaqM5q+qcFpqozlXcZHMsmyAjtL0jh6LOYd07RnNC91wul+vLy0t4n5eXl+vlcpl+/irV73/v63eV3eSw1E3GomlS57AeyfZzent723777beHf+ZyuWzn81ly/grq9jhHX7+r8CPhDmRzQiOF5NGfyZ4PjKJgAbBBwQJgg4IFwAYFayeqW6N0z0l1GAPyKFg7Ud3PqXtOqmsODe9Unau4OXqORTXuWf2i1FT9uqLnH82RZd//3tfvKuSwBkXTVJnDiszoF6VeJsp+XdHzj+TIsu9/7+t3FX4kPACHfk7KMUbXJiPmg4IFwAYFC4ANChYAGxSsJo7+K/fq5++eI8NfKFhNHD0nVP383XNk+L/qXMUNOZZfG80JZcefPb/KrBxVFut3Df4Lq7nz+bx9+/atehhtMT/HQsEyQE7oMebnOChYAGxQsADYoGABsEHBMrCibYx7Dsl9/BhDwWru7e1t+/Lli/w+7jkk9/FjUHWu4iabY6mWzbGo+kGN3r+7e/OT3Zdx1vWPvn5X2U0/rGrZfkLKflAj9+/u0fxk92Wccf2jr99V+JGwCYeeVZUezc+MuVNfH3NQsADYoGABsEHBAmCDggUL5KywbRQsmCBnhW3b+gQsohyI+xGJzn95ebleLpf/nDerH1Q2h+R+fnb+jr5+V7HJYbmLpjnal+5yudxtozJjX71sDsn9/Oy+jEdfv6tQsBbJFizO733+0dfvKnzDAmCDggXABgULgA0KVhPqnFH00Tl7/8z5M/p9VY4f61CwmlDnjL5+/fqwMGTv/+z5s/p9VY0fi1XnKjDH9mS+pjonNXpkqftpYY02sQbkRL+Wf6Q6JzUiu0zV/bSwBgVrJzIFa9vqc07Z8UWy40cPfMMCYIOCBcAGBQuADQoWynNSanxQ3w8K1sFV56TUVu3riEWqcxU3z+Z01PvSZY9VOZ9oHPf6ac16/mep+3mpxz+qOsfWff2OahNryOR01PvSZa3I+WT6ac14/swyUvfzUo9/RHWOLaNTTq1Nweqe08lST/PRc1LV4+/+fFlNygTfsAD4oGABsEHBAmBjFwUr++ty9QfFFb/OV/aDGpGdw+rxqzk/X6e5tS9Y2X5F6pzOqn5Kqn5Qo6J+W93Hr+b6fO36gVXnKm624hxR9ojGF+nar2k0J3XvcBl/xP39ZNdnFzaxBnWOKCsaX6Rzv6aRnNQjDuOP/hq4v5/s+uzCpmBFw3TPqXTv19Q955Qdf3Z9uT+fC/tvWACOg4IFwAYFC4ANCtYk1TkktcwYqsffYd/D7s/ngoI1SXUOSe3ZHFD1+Lvse9j9+WxU5yputmROJjq/66Huh1SdE1o1/up+WNU5wOzzdc2Z/RuxhgbU/ZCqc0Irxl/dD6s6B5h9vs45s3+iYDWhfr7q11y9b2L2+urnU8vOX/X6ueEbFgAbFCwANihYAGy0KVjO/YK66zA36hxX535e1bLz1+nZ2hQs135B3VXnhG7UOa6u/byqZeevy/r5W3WuYtSzOZFsP6fR416/oVn9mJ69v3p+Z53f9f1X55CO1u8q0ibWEMnkRLL9nEY86jc0ox9Ttl9YRLlvnnrfSPX7r84hHanfVcSmYHXPaWXvrz4/cvTxRar/mrjkpNTafMMCgAgFC4ANChYAGxYFq8v/eHnPipyLOieTuf6K91M5vo5xhdnP6KJ9were72dVzkWdk3n2+qveT9X42uWQ7sjmyGxU5ypu1P2Mnr3uNphz2WuOadX7UT3fXt5vdv3eO6pzZu/VJtag7meU/bV2Zl9E9xxTdP4I9TLLjq/7+1XGcqpzZu/RpmC590six/SYepnt/f1W5wi7aP8NCwBuKFgAbFCwANhoU7Dc+yWpc1LV+x5235ewcv2seL/KOXTImd20KVju/ZLUOanqfQ+770tYtX5WvV9Vvy2XnNnfqnMVs7j3S3r2/rPG1z0H5k71/o7WL6tNrCHLvV9Sdc6mew7MXeb9zli/e+mXtZuCVZ1zyU5jdc6mew7MXfecmIs237AAIELBAmCDggXAxmEKVvTRMqN6T7zs+Ebunxnj3j+oj1CuEfX76+QwBetezqW6X5K6n9SsflHP5sC69zNbRZUDVL+/dqpzFbNsohzTNphjyfZjyt4/oh5f9sh69vmqc2ar9s1UP/8qh4k1ZGX6Ja24f0Q9vqzsMsw8X3XObMW+mernX4WCNSiapur7R9Tjc38+9f2r14/6+Vc5zDcsAP4oWABsULAA2NhNwaruF9S5p1D3D6odcmzO/caOZDcFq7pfkOr+Wd1zUF1ybK79xg6nOldxo+qX1L1f0Oj4np2/0ePe83eZv6ocmVtO6d9mra8u2sQalP2SuvcLGhlf9JqU+/J1mL/KHJlTTulXZqyvLtoUrKP3Y6rO8WSvr54/cko51e9vlt18wwKwfxQsADYoWABstClY6n3f1NfPmPFBV7kvX/UH5+r7V6+PrOr5m6lNwVLv+6a+/rNm5YhU+/JV57iq71+9PrKq52+66lzFqOp+R6rxjR7dx199/+zxbL8zdT+tVYeLNrGGSHW/I+X4RqhfU3b82fFV9+vK9DtT99NawaQM9MlhhQMt7nekHp/7+LPj656zqs4JVj9/F22+YQFAhIIFwAYFC4ANi4LVod9RpLofV/U9qvd2VN9bmePbU05KrX3B6tLvKFLdj6t6/Kp+UmrZflVd+nkdRnWu4qY6h3Lv6NKPqyqHlt03z6WfVPecVbZfWXS4aBNrqM6hPNKhH1dlDi27b55DP6nuOatsv7JIkzIQalOwqnMokew0de93lR2/+v5q3XNW3dfHKu2/YQHADQULgA0KFgAbbQpW955D2Y/W2T9TPT/KflsdVPZjG/FofTjkFGdpU7C678v2bM5oNGcTXb96flT9trqo6sc26t76cMkpTlOdq8jK5pxm5VhUR5QD2su+c9kclDpHpbq/+/pbrU2sISObc5qRY1GKckB72Hcum4NS56iU43dffyvtomBtW33OSS07/u6vWf3+1M9/9PW3SptvWAAQoWABsEHBAmBjNwUrm6PpHKk4AuX7q+4n5r7+Oo1tNwUrm6Opzjkdner9VfcTc19/7XJ01bmKVdQ5mep+Rdnz3XNQz44ve3R5vntm9WPrYjexhog6J1Pdryj7a3X3HFRE2W+tw/M9MqMfWxeHKVjVOZ/qfkjdz1dz3zdS/fzdx3+zm29YAPaPggXABgULgI3DFCx1TkfZrygan7rf1oz77133OajOqc1ymIKlzumo+hVF41P325p1/73r3k+qOqc2TXWu4qZq371R7x3Xew/VvoSz5i97/+r3r35/qqN7zmu1NrGGyn33Rqh/La7clzCSzVmNiJaZ+v13b9+Sfb6jaFOwuu+rVp3jcb+/+/WrNflrWu4w37AA+KNgAbBBwQJgo03B6r7vnfIe1f2S1PdXv58j5MT28AwztClY3fe9U/Urqu6XpL6/+v0cJSfWPee1THWuAn+p7idVff8tyCNV5dRG7/8s9b6Ee8txtYk1HF11P6nq+0exg8qc2sj9M9T7Eu4px0XBaqK6X5H7/atzaurn7z7+Vdp8wwKACAULgA0KFgAbFKwmKvsVzeinpb4/sG0UrDaq+hXN6qelvj+wbVufHNbHjx/Lew8pjyzVvoEuR6T6/tn34z7+VdrEGj59+rT9/Pmzehgy2WlW7hvoIJq/6lhA9v24j38VCtYi2WnunlNSq36+7P33Pv5V+IYFwAYFC4ANChYAGxQsA10+eFap7heWHWP12LZNuy/lShSs5o6eU6ruFzaq+75/qn0pl6vOVdxEOazX19fqIabGH1Hv+xedf6/f02i/JlW/qKxZ/abU1O/n3tEtZxWxiTW8vr5unz9/rh7m0+OPplm971+m39RIvyZlv6isGf2m1H9N1O/nkU45qwg/EjZRHeqMmuNlzq/WeWwzniH7fNVr7z0oWABsULAA2KBgAbBBwdqBbE7pCPv6ZSMP1f3AMjmqSKecVYSCZS6bUzrKvn7ZnFZ1P7Bnc1SRdjmrSHWu4iabw9qSOZvoyI4/Et1fnXNS58BU98/miNT7AqqPWTkq+mG9UzaHVd2eI5vDyu7Ll6XOgSnvn80RqfcFVJuRo3Lph8WPhCbUWaLqLE7m/tmxu+e0Zry7R9eoXhv/RMECYIOCBcAGBQuADQpWE9X9iDrnlNRjn3WNStn5r15/oyhYTVT3I+qaU4rMmp/qflpZ2fmvXn/DqnMVN0fPYUWqcjKr+i1F18nm0J6dv2w/sFXnq99PF+SwBkXTlM1hRSpzMiv6LalzaJn5y/YDW3F+RqecVYSCNai6YFXvG5ed32h86udT7xtYfX5WkzIQ4hsWABsULAA2KFgAbFCwMETdb0mdA8pev/P5M7h8dKdgYYi635I6B5S9ftfzZ6nK0b1bda7ihhzWY9nxVVPnyKr7OWXvr86JPXt0y2kRaxgUTdPeYw1Z6hxZdT+n7P3VObGMTjktfiTEEup+S9X9nLL3z5y/915p/0TBAmCDggXABgULgA0KloEuHzwzuues1KKP5urzMzrM3w0Fq7m97wvYJWeldi/nlN2XUL0+uszf36pzFTfZHFa1bA6r676A6hzRqvGpr//se1t1qPe1XGU3Oaxq2RxW530B1TmiFeNTX1+dA8xS72u5Cj8SNlGddanMEa0YX/X1q+2hWG0bBQuAEQoWABsULAA2KFg7UJ1jUueAOly/MgeV1SlHlUXBMledY1LngLpcvyoHldUuR5VVnau4iXJM7kckOj/K0Tyb48rmrGY9f/frZw/VvoWjqvuFzWKTw3IXTXN2X75Mjiubs5rx/N2vn6Xct3BEdb+wWShYi2QLVvZ89fj2fv0s9fuPuDeAvOEbFgAbFCwANihYAGxQsJqo3LeO62vtYV/GLihYTVTtW8f1tfayL2MXbX5LCAAR/gsLgA0KFgAbFCwANihYAGxQsADYoGABsEHBAmCDggXABgULgA0KFgAbFCwANihYAGxQsADYoGABsEHBAmCDggXABgULgA0KFgAbFCwANihYAGxQsADYoGABsEHBAmCDggXABgULgA0KFgAbFCwANihYAGxQsADYoGABsEHBAmCDggXABgULgI0/AXRl5K/bYs25AAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDIxLTAyLTExVDIwOjQzOjIzKzAwOjAwj4NP3QAAACV0RVh0ZGF0ZTptb2RpZnkAMjAyMS0wMi0xMVQyMDo0MzoyMyswMDowMP7e92EAAAAASUVORK5CYII=");return(d,f)=>(e.openBlock(),e.createElementBlock("div",sd,[e.createElementVNode("section",ld,[t.generated?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass([s.value,"btnQrCode"])},[t.loading?(e.openBlock(),e.createElementBlock("div",cd,f[0]||(f[0]=[e.createElementVNode("div",{class:"loaderMFA"},null,-1)]))):(e.openBlock(),e.createElementBlock("button",{key:1,class:"uppercase bg-base-300 p-2 z-40",onClick:r}," Gerar QR "))],2)),e.createElementVNode("img",{class:e.normalizeClass([[s.value,t.generated?"rounded-md":"rounded-none"],""]),src:i.value,alt:"QRCode"},null,10,dd)])]))}};for(var qe=[],ga=0;ga<256;++ga)qe.push((ga+256).toString(16).slice(1));function md(t,n=0){return(qe[t[n+0]]+qe[t[n+1]]+qe[t[n+2]]+qe[t[n+3]]+"-"+qe[t[n+4]]+qe[t[n+5]]+"-"+qe[t[n+6]]+qe[t[n+7]]+"-"+qe[t[n+8]]+qe[t[n+9]]+"-"+qe[t[n+10]]+qe[t[n+11]]+qe[t[n+12]]+qe[t[n+13]]+qe[t[n+14]]+qe[t[n+15]]).toLowerCase()}var Mn,fd=new Uint8Array(16);function hd(){if(!Mn&&(Mn=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Mn))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Mn(fd)}var pd=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);const lr={randomUUID:pd};function gd(t,n,a){if(lr.randomUUID&&!t)return lr.randomUUID();t=t||{};var o=t.random||(t.rng||hd)();return o[6]=o[6]&15|64,o[8]=o[8]&63|128,md(o)}function cr(){const t=Rt(),n=async l=>{const d=t.attendants.find(f=>f.id===l);if(d)try{const f=await Ue.get(`${da}?attendant=${l}&page=1`);d.messages=f.data.results.reverse(),d.hasNextPage=f.data.next!==null,d.currentPage=2,d.internal_chat={channel_id:f.data.channel_id,unread:0}}catch(f){console.error("Erro ao buscar mensagens:",f)}},a=async l=>{const d=t.attendants.find(f=>f.id===l);if(!(!d||!d.hasNextPage))try{const f=await Ue.get(`${da}?attendant=${l}&page=${d.currentPage}`);d.messages=[...f.data.results.reverse(),...d.messages],d.hasNextPage=f.data.next!==null,d.currentPage++}catch(f){console.error("Erro ao carregar mais mensagens:",f)}},o=(l,d,f)=>{const u=l==null?void 0:l.message;if(!u)return;const h=t.attendants.find(m=>{var p;return((p=m.internal_chat)==null?void 0:p.channel_id)===u.channel_id});h?(h.messages=h.messages||[],h.messages.find(p=>p.id===u.id)||(h.messages.push(u),(!d||h.id!==f)&&(h.internal_chat.unread=(h.internal_chat.unread||0)+1))):console.error("Atendente não encontrado para o canal especificado.")},r=l=>{const d=t.attendants.find(f=>f.id===l);d&&(d.internal_chat.unread=0)},i=async(l,d,f,u=!1)=>{var c;const h=t.attendants.find(g=>g.id===l);if(!h||!((c=h.internal_chat)!=null&&c.channel_id))return;let m;u?m=d:m={type:"text",content:d};const p={id:gd(),content:m,created_at:new Date().toISOString(),sender:f};h.messages.push(p);try{await Ue.post(`${da}${h.internal_chat.channel_id}/message/`,{id:p.id,content:p.content})}catch(g){console.error("Erro ao enviar mensagem:",g)}},s=l=>{const d=t.attendants.find(f=>f.id===l);return d?d.hasNextPage:!1};return{attendants:e.computed(()=>t.attendants),count:e.computed(()=>t.count),fetchMessagesForAtendente:n,loadMessagesForAtendente:a,addMessageToAtendente:o,sendMessageToAtendente:i,hasNextPageForAtendente:s,resetUnreadMessages:r}}const yd={class:"avatar bg-[#404857] shadow shadow-gray-900 dark:shadow-gray-700 dark:bg-gray-300 text-gray-100 dark:text-gray-500"},kd={key:0,style:{"padding-top":"0.5rem"},xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},xd=["src"],ya=Ce({__name:"Avatar",props:{url:{type:String}},setup(t){return(n,a)=>(e.openBlock(),e.createElementBlock("div",yd,[t.url?(e.openBlock(),e.createElementBlock("img",{key:1,style:{"object-fit":"scale-down"},src:t.url},null,8,xd)):(e.openBlock(),e.createElementBlock("svg",kd,a[0]||(a[0]=[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15.75 6a3.75 3.75 0 11-7.5 0 3.75 3.75 0 017.5 0zM4.501 20.118a7.5 7.5 0 0114.998 0A17.933 17.933 0 0112 21.75c-2.676 0-5.216-.584-7.499-1.632z"},null,-1)])))]))}},[["__scopeId","data-v-1d00f344"]]),bd={class:"attendants-container"},wd={class:"atendentes-list bg-base-300"},Ed={key:0,class:"empty-message bg-base-200"},vd=["onClick"],Cd={class:"atendente-main"},Sd={class:"atendente-name"},Bd={class:"flex items-center gap-4"},Vd={key:0,class:"message-indicator"},Md={key:0,class:"chat-footer bg-base-200"},dr=Ce({__name:"ChatList",props:{atendentes:{type:Array,required:!0},attendant:{required:!0},mobile:{type:Boolean,default:!1}},emits:["atendenteSelecionado"],setup(t,{emit:n}){const a=t,o=n,r=e.ref(""),i=d=>{o("atendenteSelecionado",d)},s=d=>{switch(d){case"Busy":return"bg-red-500";case"Online":return"bg-green-500";case"Away":return"bg-yellow-500";case"Offline":return"bg-gray-500";default:return"bg-purple-500"}},l=e.computed(()=>r.value?a.atendentes.filter(d=>d.name.toLowerCase().includes(r.value.toLowerCase())&&d.id!==a.attendant.id):a.atendentes.filter(d=>d.id!==a.attendant.id));return(d,f)=>(e.openBlock(),e.createElementBlock("div",bd,[e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":f[0]||(f[0]=u=>r.value=u),class:e.normalizeClass(t.mobile?"search-input-mobile bg-base-300 border-b border-base-200":"search-input bg-base-300 border-b border-base-200"),placeholder:"Pesquise entre os atendentes..."},null,2),[[e.vModelText,r.value]]),e.createElementVNode("ul",wd,[l.value.length===0?(e.openBlock(),e.createElementBlock("li",Ed,e.toDisplayString(t.atendentes.length===0?"Não há atendentes disponíveis":"Não há atendentes com esse nome"),1)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.value,u=>(e.openBlock(),e.createElementBlock("li",{key:u.id,onClick:h=>i(u),class:e.normalizeClass([["atendente-item",u.isMoved?"moved":""],"border-b even:bg-base-300 bg-blue-400/10 border-base-200 hover:bg-base-200 relative"])},[e.createElementVNode("main",Cd,[e.createVNode(ya,{url:u.photo},null,8,["url"]),e.createElementVNode("span",Sd,e.toDisplayString(u.name),1)]),e.createElementVNode("footer",Bd,[u.internal_chat.unread>0?(e.openBlock(),e.createElementBlock("span",Vd,e.toDisplayString(u.internal_chat.unread),1)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["status-indicator",s(u.login_status)])},null,2)]),f[1]||(f[1]=e.createElementVNode("div",{class:"hover-action"},"Conversar",-1))],10,vd))),128))]),t.mobile?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("footer",Md))]))}},[["__scopeId","data-v-9be33af9"]]);function Nd(t,n=null){if(!t)return!1;const a=t.getBoundingClientRect(),o=n?n.getBoundingClientRect():{top:0,left:0,bottom:window.innerHeight,right:window.innerWidth};return a.bottom>=o.top&&a.top<=o.bottom&&a.right>=o.left&&a.left<=o.right}async function Ad(t){return t?(await e.nextTick(),t.value instanceof HTMLElement?t.value:t.value?document.querySelector(t.value):null):null}function Td(t){let n=`0px 0px ${t.distance}px 0px`;t.top&&(n=`${t.distance}px 0px 0px 0px`);const a=new IntersectionObserver(o=>{o[0].isIntersecting&&(t.firstload&&t.emit(),t.firstload=!0)},{root:t.parentEl,rootMargin:n});return t.infiniteLoading.value&&a.observe(t.infiniteLoading.value),a}async function ur(t,n){if(await e.nextTick(),!t.top)return;const a=t.parentEl||document.documentElement;a.scrollTop=a.scrollHeight-n}const mr=(t,n)=>{const a=t.__vccOpts||t;for(const[o,r]of n)a[o]=r;return a},Dd={},Ld=t=>(e.pushScopeId("data-v-d3e37633"),t=t(),e.popScopeId(),t),Fd={class:"container"},$d=Ld(()=>e.createElementVNode("div",{class:"spinner"},null,-1)),_d=[$d];function Pd(t,n){return e.openBlock(),e.createElementBlock("div",Fd,_d)}const Od=mr(Dd,[["render",Pd],["__scopeId","data-v-d3e37633"]]),Rd={class:"state-error"},Ht=mr(e.defineComponent({__name:"InfiniteLoading",props:{top:{type:Boolean,default:!1},target:{},distance:{default:0},identifier:{},firstload:{type:Boolean,default:!0},slots:{}},emits:["infinite"],setup(t,{emit:n}){const a=t;let o=null,r=0;const i=e.ref(null),s=e.ref(""),{top:l,firstload:d,distance:f}=a,{identifier:u,target:h}=e.toRefs(a),m={infiniteLoading:i,top:l,firstload:d,distance:f,parentEl:null,emit(){r=(m.parentEl||document.documentElement).scrollHeight,p.loading(),n("infinite",p)}},p={loading(){s.value="loading"},async loaded(){s.value="loaded",await ur(m,r),Nd(i.value,m.parentEl)&&m.emit()},async complete(){s.value="complete",await ur(m,r),o==null||o.disconnect()},error(){s.value="error"}};function c(){o==null||o.disconnect(),o=Td(m)}return e.watch(u,c),e.onMounted(async()=>{m.parentEl=await Ad(h),c()}),e.onUnmounted(()=>o==null?void 0:o.disconnect()),(g,y)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"infiniteLoading",ref:i,class:"v3-infinite-loading"},[e.withDirectives(e.createElementVNode("div",null,[e.renderSlot(g.$slots,"spinner",{},()=>[e.createVNode(Od)],!0)],512),[[e.vShow,s.value=="loading"]]),s.value=="complete"?e.renderSlot(g.$slots,"complete",{key:0},()=>{var b;return[e.createElementVNode("span",null,e.toDisplayString(((b=g.slots)==null?void 0:b.complete)||"No more results!"),1)]},!0):e.createCommentVNode("",!0),s.value=="error"?e.renderSlot(g.$slots,"error",{key:1,retry:m.emit},()=>{var b;return[e.createElementVNode("span",Rd,[e.createElementVNode("span",null,e.toDisplayString(((b=g.slots)==null?void 0:b.error)||"Oops something went wrong!"),1),e.createElementVNode("button",{class:"retry",onClick:y[0]||(y[0]=(...w)=>m.emit&&m.emit(...w))},"retry")])]},!0):e.createCommentVNode("",!0)],512))}}),[["__scopeId","data-v-4bdee133"]]);function Hd(t,n,a){const o=nt(t,a==null?void 0:a.in);return isNaN(n)?et(t,NaN):(o.setDate(o.getDate()+n),o)}function Nn(t,n){return Tt(t,{...n,weekStartsOn:1})}function fr(t,n){const a=nt(t,n==null?void 0:n.in),o=a.getFullYear(),r=et(a,0);r.setFullYear(o+1,0,4),r.setHours(0,0,0,0);const i=Nn(r),s=et(a,0);s.setFullYear(o,0,4),s.setHours(0,0,0,0);const l=Nn(s);return a.getTime()>=i.getTime()?o+1:a.getTime()>=l.getTime()?o:o-1}function hr(t){const n=nt(t),a=new Date(Date.UTC(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()));return a.setUTCFullYear(n.getFullYear()),+t-+a}function An(t,n){const a=nt(t,n==null?void 0:n.in);return a.setHours(0,0,0,0),a}function zd(t,n,a){const[o,r]=ma(a==null?void 0:a.in,t,n),i=An(o),s=An(r),l=+i-hr(i),d=+s-hr(s);return Math.round((l-d)/rl)}function jd(t,n){const a=fr(t,n),o=et(t,0);return o.setFullYear(a,0,4),o.setHours(0,0,0,0),Nn(o)}function ka(t){return et(t,Date.now())}function pr(t,n,a){const[o,r]=ma(a==null?void 0:a.in,t,n);return+An(o)==+An(r)}function Gd(t){return t instanceof Date||typeof t=="object"&&Object.prototype.toString.call(t)==="[object Date]"}function qd(t){return!(!Gd(t)&&typeof t!="number"||isNaN(+nt(t)))}function Id(t,n){const a=nt(t,n==null?void 0:n.in);return a.setFullYear(a.getFullYear(),0,1),a.setHours(0,0,0,0),a}function Wd(t,n){const a=nt(t,n==null?void 0:n.in);return zd(a,Id(a))+1}function Ud(t,n){const a=nt(t,n==null?void 0:n.in),o=+Nn(a)-+jd(a);return Math.round(o/Xo)+1}function gr(t,n){var u,h,m,p;const a=nt(t,n==null?void 0:n.in),o=a.getFullYear(),r=Sn(),i=(n==null?void 0:n.firstWeekContainsDate)??((h=(u=n==null?void 0:n.locale)==null?void 0:u.options)==null?void 0:h.firstWeekContainsDate)??r.firstWeekContainsDate??((p=(m=r.locale)==null?void 0:m.options)==null?void 0:p.firstWeekContainsDate)??1,s=et((n==null?void 0:n.in)||t,0);s.setFullYear(o+1,0,i),s.setHours(0,0,0,0);const l=Tt(s,n),d=et((n==null?void 0:n.in)||t,0);d.setFullYear(o,0,i),d.setHours(0,0,0,0);const f=Tt(d,n);return+a>=+l?o+1:+a>=+f?o:o-1}function Zd(t,n){var l,d,f,u;const a=Sn(),o=(n==null?void 0:n.firstWeekContainsDate)??((d=(l=n==null?void 0:n.locale)==null?void 0:l.options)==null?void 0:d.firstWeekContainsDate)??a.firstWeekContainsDate??((u=(f=a.locale)==null?void 0:f.options)==null?void 0:u.firstWeekContainsDate)??1,r=gr(t,n),i=et((n==null?void 0:n.in)||t,0);return i.setFullYear(r,0,o),i.setHours(0,0,0,0),Tt(i,n)}function Yd(t,n){const a=nt(t,n==null?void 0:n.in),o=+Tt(a,n)-+Zd(a,n);return Math.round(o/Xo)+1}function Le(t,n){const a=t<0?"-":"",o=Math.abs(t).toString().padStart(n,"0");return a+o}const yt={y(t,n){const a=t.getFullYear(),o=a>0?a:1-a;return Le(n==="yy"?o%100:o,n.length)},M(t,n){const a=t.getMonth();return n==="M"?String(a+1):Le(a+1,2)},d(t,n){return Le(t.getDate(),n.length)},a(t,n){const a=t.getHours()/12>=1?"pm":"am";switch(n){case"a":case"aa":return a.toUpperCase();case"aaa":return a;case"aaaaa":return a[0];case"aaaa":default:return a==="am"?"a.m.":"p.m."}},h(t,n){return Le(t.getHours()%12||12,n.length)},H(t,n){return Le(t.getHours(),n.length)},m(t,n){return Le(t.getMinutes(),n.length)},s(t,n){return Le(t.getSeconds(),n.length)},S(t,n){const a=n.length,o=t.getMilliseconds(),r=Math.trunc(o*Math.pow(10,a-3));return Le(r,n.length)}},zt={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},yr={G:function(t,n,a){const o=t.getFullYear()>0?1:0;switch(n){case"G":case"GG":case"GGG":return a.era(o,{width:"abbreviated"});case"GGGGG":return a.era(o,{width:"narrow"});case"GGGG":default:return a.era(o,{width:"wide"})}},y:function(t,n,a){if(n==="yo"){const o=t.getFullYear(),r=o>0?o:1-o;return a.ordinalNumber(r,{unit:"year"})}return yt.y(t,n)},Y:function(t,n,a,o){const r=gr(t,o),i=r>0?r:1-r;if(n==="YY"){const s=i%100;return Le(s,2)}return n==="Yo"?a.ordinalNumber(i,{unit:"year"}):Le(i,n.length)},R:function(t,n){const a=fr(t);return Le(a,n.length)},u:function(t,n){const a=t.getFullYear();return Le(a,n.length)},Q:function(t,n,a){const o=Math.ceil((t.getMonth()+1)/3);switch(n){case"Q":return String(o);case"QQ":return Le(o,2);case"Qo":return a.ordinalNumber(o,{unit:"quarter"});case"QQQ":return a.quarter(o,{width:"abbreviated",context:"formatting"});case"QQQQQ":return a.quarter(o,{width:"narrow",context:"formatting"});case"QQQQ":default:return a.quarter(o,{width:"wide",context:"formatting"})}},q:function(t,n,a){const o=Math.ceil((t.getMonth()+1)/3);switch(n){case"q":return String(o);case"qq":return Le(o,2);case"qo":return a.ordinalNumber(o,{unit:"quarter"});case"qqq":return a.quarter(o,{width:"abbreviated",context:"standalone"});case"qqqqq":return a.quarter(o,{width:"narrow",context:"standalone"});case"qqqq":default:return a.quarter(o,{width:"wide",context:"standalone"})}},M:function(t,n,a){const o=t.getMonth();switch(n){case"M":case"MM":return yt.M(t,n);case"Mo":return a.ordinalNumber(o+1,{unit:"month"});case"MMM":return a.month(o,{width:"abbreviated",context:"formatting"});case"MMMMM":return a.month(o,{width:"narrow",context:"formatting"});case"MMMM":default:return a.month(o,{width:"wide",context:"formatting"})}},L:function(t,n,a){const o=t.getMonth();switch(n){case"L":return String(o+1);case"LL":return Le(o+1,2);case"Lo":return a.ordinalNumber(o+1,{unit:"month"});case"LLL":return a.month(o,{width:"abbreviated",context:"standalone"});case"LLLLL":return a.month(o,{width:"narrow",context:"standalone"});case"LLLL":default:return a.month(o,{width:"wide",context:"standalone"})}},w:function(t,n,a,o){const r=Yd(t,o);return n==="wo"?a.ordinalNumber(r,{unit:"week"}):Le(r,n.length)},I:function(t,n,a){const o=Ud(t);return n==="Io"?a.ordinalNumber(o,{unit:"week"}):Le(o,n.length)},d:function(t,n,a){return n==="do"?a.ordinalNumber(t.getDate(),{unit:"date"}):yt.d(t,n)},D:function(t,n,a){const o=Wd(t);return n==="Do"?a.ordinalNumber(o,{unit:"dayOfYear"}):Le(o,n.length)},E:function(t,n,a){const o=t.getDay();switch(n){case"E":case"EE":case"EEE":return a.day(o,{width:"abbreviated",context:"formatting"});case"EEEEE":return a.day(o,{width:"narrow",context:"formatting"});case"EEEEEE":return a.day(o,{width:"short",context:"formatting"});case"EEEE":default:return a.day(o,{width:"wide",context:"formatting"})}},e:function(t,n,a,o){const r=t.getDay(),i=(r-o.weekStartsOn+8)%7||7;switch(n){case"e":return String(i);case"ee":return Le(i,2);case"eo":return a.ordinalNumber(i,{unit:"day"});case"eee":return a.day(r,{width:"abbreviated",context:"formatting"});case"eeeee":return a.day(r,{width:"narrow",context:"formatting"});case"eeeeee":return a.day(r,{width:"short",context:"formatting"});case"eeee":default:return a.day(r,{width:"wide",context:"formatting"})}},c:function(t,n,a,o){const r=t.getDay(),i=(r-o.weekStartsOn+8)%7||7;switch(n){case"c":return String(i);case"cc":return Le(i,n.length);case"co":return a.ordinalNumber(i,{unit:"day"});case"ccc":return a.day(r,{width:"abbreviated",context:"standalone"});case"ccccc":return a.day(r,{width:"narrow",context:"standalone"});case"cccccc":return a.day(r,{width:"short",context:"standalone"});case"cccc":default:return a.day(r,{width:"wide",context:"standalone"})}},i:function(t,n,a){const o=t.getDay(),r=o===0?7:o;switch(n){case"i":return String(r);case"ii":return Le(r,n.length);case"io":return a.ordinalNumber(r,{unit:"day"});case"iii":return a.day(o,{width:"abbreviated",context:"formatting"});case"iiiii":return a.day(o,{width:"narrow",context:"formatting"});case"iiiiii":return a.day(o,{width:"short",context:"formatting"});case"iiii":default:return a.day(o,{width:"wide",context:"formatting"})}},a:function(t,n,a){const r=t.getHours()/12>=1?"pm":"am";switch(n){case"a":case"aa":return a.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return a.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return a.dayPeriod(r,{width:"narrow",context:"formatting"});case"aaaa":default:return a.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(t,n,a){const o=t.getHours();let r;switch(o===12?r=zt.noon:o===0?r=zt.midnight:r=o/12>=1?"pm":"am",n){case"b":case"bb":return a.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return a.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return a.dayPeriod(r,{width:"narrow",context:"formatting"});case"bbbb":default:return a.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(t,n,a){const o=t.getHours();let r;switch(o>=17?r=zt.evening:o>=12?r=zt.afternoon:o>=4?r=zt.morning:r=zt.night,n){case"B":case"BB":case"BBB":return a.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return a.dayPeriod(r,{width:"narrow",context:"formatting"});case"BBBB":default:return a.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(t,n,a){if(n==="ho"){let o=t.getHours()%12;return o===0&&(o=12),a.ordinalNumber(o,{unit:"hour"})}return yt.h(t,n)},H:function(t,n,a){return n==="Ho"?a.ordinalNumber(t.getHours(),{unit:"hour"}):yt.H(t,n)},K:function(t,n,a){const o=t.getHours()%12;return n==="Ko"?a.ordinalNumber(o,{unit:"hour"}):Le(o,n.length)},k:function(t,n,a){let o=t.getHours();return o===0&&(o=24),n==="ko"?a.ordinalNumber(o,{unit:"hour"}):Le(o,n.length)},m:function(t,n,a){return n==="mo"?a.ordinalNumber(t.getMinutes(),{unit:"minute"}):yt.m(t,n)},s:function(t,n,a){return n==="so"?a.ordinalNumber(t.getSeconds(),{unit:"second"}):yt.s(t,n)},S:function(t,n){return yt.S(t,n)},X:function(t,n,a){const o=t.getTimezoneOffset();if(o===0)return"Z";switch(n){case"X":return xr(o);case"XXXX":case"XX":return Dt(o);case"XXXXX":case"XXX":default:return Dt(o,":")}},x:function(t,n,a){const o=t.getTimezoneOffset();switch(n){case"x":return xr(o);case"xxxx":case"xx":return Dt(o);case"xxxxx":case"xxx":default:return Dt(o,":")}},O:function(t,n,a){const o=t.getTimezoneOffset();switch(n){case"O":case"OO":case"OOO":return"GMT"+kr(o,":");case"OOOO":default:return"GMT"+Dt(o,":")}},z:function(t,n,a){const o=t.getTimezoneOffset();switch(n){case"z":case"zz":case"zzz":return"GMT"+kr(o,":");case"zzzz":default:return"GMT"+Dt(o,":")}},t:function(t,n,a){const o=Math.trunc(+t/1e3);return Le(o,n.length)},T:function(t,n,a){return Le(+t,n.length)}};function kr(t,n=""){const a=t>0?"-":"+",o=Math.abs(t),r=Math.trunc(o/60),i=o%60;return i===0?a+String(r):a+String(r)+n+Le(i,2)}function xr(t,n){return t%60===0?(t>0?"-":"+")+Le(Math.abs(t)/60,2):Dt(t,n)}function Dt(t,n=""){const a=t>0?"-":"+",o=Math.abs(t),r=Le(Math.trunc(o/60),2),i=Le(o%60,2);return a+r+n+i}const br=(t,n)=>{switch(t){case"P":return n.date({width:"short"});case"PP":return n.date({width:"medium"});case"PPP":return n.date({width:"long"});case"PPPP":default:return n.date({width:"full"})}},wr=(t,n)=>{switch(t){case"p":return n.time({width:"short"});case"pp":return n.time({width:"medium"});case"ppp":return n.time({width:"long"});case"pppp":default:return n.time({width:"full"})}},Xd={p:wr,P:(t,n)=>{const a=t.match(/(P+)(p+)?/)||[],o=a[1],r=a[2];if(!r)return br(t,n);let i;switch(o){case"P":i=n.dateTime({width:"short"});break;case"PP":i=n.dateTime({width:"medium"});break;case"PPP":i=n.dateTime({width:"long"});break;case"PPPP":default:i=n.dateTime({width:"full"});break}return i.replace("{{date}}",br(o,n)).replace("{{time}}",wr(r,n))}},Kd=/^D+$/,Qd=/^Y+$/,Jd=["D","DD","YY","YYYY"];function e3(t){return Kd.test(t)}function t3(t){return Qd.test(t)}function n3(t,n,a){const o=a3(t,n,a);if(console.warn(o),Jd.includes(t))throw new RangeError(o)}function a3(t,n,a){const o=t[0]==="Y"?"years":"days of the month";return`Use \`${t.toLowerCase()}\` instead of \`${t}\` (in \`${n}\`) for formatting ${o} to the input \`${a}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const o3=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,r3=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,i3=/^'([^]*?)'?$/,s3=/''/g,l3=/[a-zA-Z]/;function Er(t,n,a){var u,h,m,p,c,g,y,b;const o=Sn(),r=(a==null?void 0:a.locale)??o.locale??_l,i=(a==null?void 0:a.firstWeekContainsDate)??((h=(u=a==null?void 0:a.locale)==null?void 0:u.options)==null?void 0:h.firstWeekContainsDate)??o.firstWeekContainsDate??((p=(m=o.locale)==null?void 0:m.options)==null?void 0:p.firstWeekContainsDate)??1,s=(a==null?void 0:a.weekStartsOn)??((g=(c=a==null?void 0:a.locale)==null?void 0:c.options)==null?void 0:g.weekStartsOn)??o.weekStartsOn??((b=(y=o.locale)==null?void 0:y.options)==null?void 0:b.weekStartsOn)??0,l=nt(t,a==null?void 0:a.in);if(!qd(l))throw new RangeError("Invalid time value");let d=n.match(r3).map(w=>{const E=w[0];if(E==="p"||E==="P"){const x=Xd[E];return x(w,r.formatLong)}return w}).join("").match(o3).map(w=>{if(w==="''")return{isToken:!1,value:"'"};const E=w[0];if(E==="'")return{isToken:!1,value:c3(w)};if(yr[E])return{isToken:!0,value:w};if(E.match(l3))throw new RangeError("Format string contains an unescaped latin alphabet character `"+E+"`");return{isToken:!1,value:w}});r.localize.preprocessor&&(d=r.localize.preprocessor(l,d));const f={firstWeekContainsDate:i,weekStartsOn:s,locale:r};return d.map(w=>{if(!w.isToken)return w.value;const E=w.value;(!(a!=null&&a.useAdditionalWeekYearTokens)&&t3(E)||!(a!=null&&a.useAdditionalDayOfYearTokens)&&e3(E))&&n3(E,n,String(t));const x=yr[E[0]];return x(l,E,r.localize,f)}).join("")}function c3(t){const n=t.match(i3);return n?n[1].replace(s3,"'"):t}function d3(t,n){return sl(et(t,t),ka(t),n)}function u3(t,n){return pr(et(t,t),ka(t))}function m3(t,n,a){return Hd(t,-1,a)}function f3(t,n){return pr(et(t,t),m3(ka(t)))}/*! License details at fancyapps.com/license */const je=t=>typeof t=="string";/*! License details at fancyapps.com/license */const jt=t=>t&&t!==null&&t instanceof Element&&"nodeType"in t;/*! License details at fancyapps.com/license */const h3=function(t){if(!(t&&t instanceof Element&&t.offsetParent))return!1;const n=t.scrollHeight>t.clientHeight,a=window.getComputedStyle(t).overflowY,o=a.indexOf("hidden")!==-1,r=a.indexOf("visible")!==-1;return n&&!o&&!r},en=function(t,n=void 0){return!t||t===document.body||n&&t===n?null:h3(t)?t:en(t.parentElement,n)};/*! License details at fancyapps.com/license */const kt=function(t){var n=new DOMParser().parseFromString(t,"text/html").body;if(n.childElementCount>1){for(var a=document.createElement("div");n.firstChild;)a.appendChild(n.firstChild);return a}let o=n.firstChild;return!o||o instanceof HTMLElement?o:((a=document.createElement("div")).appendChild(o),a)};/*! License details at fancyapps.com/license */const Te=function(t=0,n=0,a=0){return Math.max(Math.min(n,a),t)};/*! License details at fancyapps.com/license */const Ze=t=>typeof t=="object"&&t!==null&&t.constructor===Object&&Object.prototype.toString.call(t)==="[object Object]";/*! License details at fancyapps.com/license */function vr(t){return Ze(t)||Array.isArray(t)}function xa(t,n){const a=Object.keys(t),o=Object.keys(n);return a.length===o.length&&a.every(r=>{const i=t[r],s=n[r];return typeof i=="function"?`${i}`==`${s}`:vr(i)&&vr(s)?xa(i,s):i===s})}/*! License details at fancyapps.com/license */const Cr=function(t){for(const n of Tn)n.getState()===Ye.Running&&n.tick(ba?t-ba:0);ba=t,qt=window.requestAnimationFrame(Cr)};var Ye,xt,Gt;(function(t){t[t.Initializing=0]="Initializing",t[t.Running=1]="Running",t[t.Paused=2]="Paused",t[t.Completed=3]="Completed",t[t.Destroyed=4]="Destroyed"})(Ye||(Ye={})),function(t){t[t.Spring=0]="Spring",t[t.Ease=1]="Ease"}(xt||(xt={})),function(t){t[t.Loop=0]="Loop",t[t.Reverse=1]="Reverse"}(Gt||(Gt={}));const Tn=new Set;let qt=null,ba=0;function bt(){let t=Ye.Initializing,n=xt.Ease,a=0,o=0,r=bt.Easings.Linear,i=500,s=0,l=0,d=0,f=0,u=1/0,h=.01,m=.01,p=!1,c={},g=null,y={},b={},w={},E=0,x=0,v=Gt.Loop,D=bt.Easings.Linear;const _=new Map;function C(A,...M){for(const H of _.get(A)||[])H(...M)}function k(A){return o=0,A?g=setTimeout(()=>{N()},A):N(),B}function N(){t=Ye.Running,C("start",y,b)}function S(){if(t=Ye.Completed,w={},C("end",y),t===Ye.Completed)if(a<E){if(a++,v===Gt.Reverse){const A=Object.assign({},c);c=Object.assign({},b),b=A}k(x)}else a=0;return B}const B={getState:function(){return t},easing:function(A){return r=A,n=xt.Ease,w={},B},duration:function(A){return i=A,B},spring:function(A={}){n=xt.Spring;const M={velocity:0,mass:1,tension:170,friction:26,restDelta:.1,restSpeed:.1,maxSpeed:1/0,clamp:!0},{velocity:H,mass:ie,tension:Q,friction:fe,restDelta:F,restSpeed:L,maxSpeed:j,clamp:re}=Object.assign(Object.assign({},M),A);return s=H,l=ie,d=Q,f=fe,m=F,h=L,u=j,p=re,w={},B},isRunning:function(){return t===Ye.Running},isSpring:function(){return n===xt.Spring},from:function(A){return y=Object.assign({},A),B},to:function(A){return b=A,B},repeat:function(A,M=0,H=Gt.Loop,ie){return E=A,x=M,v=H,D=ie||r,B},on:function(A,M){var H,ie;return H=A,ie=M,_.set(H,[..._.get(H)||[],ie]),B},off:function(A,M){var H,ie;return H=A,ie=M,_.has(H)&&_.set(H,_.get(H).filter(Q=>Q!==ie)),B},start:function(A){return t=Ye.Initializing,c=Object.assign({},y),xa(c,b)||(Tn.add(this),qt||(qt=window.requestAnimationFrame(Cr)),k(A)),B},pause:function(){return g&&(clearTimeout(g),g=null),t===Ye.Running&&(t=Ye.Paused,C("pause",y)),B},end:S,tick:function(A){A>50&&(A=50),o+=A;let M=0,H=!1;if(t!==Ye.Running)return B;if(n===xt.Ease){M=Te(0,o/i,1),H=M===1;const Q=v===Gt.Reverse?D:r;for(const fe in y)y[fe]=c[fe]+(b[fe]-c[fe])*Q(M)}if(n===xt.Spring){const Q=.001*A;let fe=0;for(const F in y){const L=b[F];let j=y[F];if(typeof L!="number"||isNaN(L)||typeof j!="number"||isNaN(j))continue;if(Math.abs(L-j)<=m){y[F]=L,w[F]=0;continue}w[F]||(typeof s=="object"&&typeof s[F]=="number"?w[F]=s[F]:w[F]=typeof s=="number"?s:0);let re=w[F];re=Te(-1*Math.abs(u),re,Math.abs(u));const se=re*l*f;re+=((j>L?-1:1)*(Math.abs(L-j)*d)-se)/l*Q,j+=re*Q;const be=y[F]>L?j<L:j>L;let Se=Math.abs(re)<h&&Math.abs(L-j)<=m;p&&be&&(Se=!0),Se?(j=L,re=0):fe++,y[F]=j,w[F]=re}H=!fe}const ie=Object.assign({},b);return C("step",y,c,b,M),H&&t===Ye.Running&&xa(b,ie)&&(t=Ye.Completed,S()),B},getStartValues:function(){return c},getCurrentValues:function(){return y},getCurrentVelocities:function(){return w},getEndValues:function(){return b},destroy:function(){t=Ye.Destroyed,g&&(clearTimeout(g),g=null),c=y=b={},Tn.delete(this)}};return B}bt.destroy=()=>{for(const t of Tn)t.destroy();qt&&(cancelAnimationFrame(qt),qt=null)},bt.Easings={Linear:function(t){return t},EaseIn:function(t){return t===0?0:Math.pow(2,10*t-10)},EaseOut:function(t){return t===1?1:1-Math.pow(2,-10*t)},EaseInOut:function(t){return t===0?0:t===1?1:t<.5?Math.pow(2,20*t-10)/2:(2-Math.pow(2,-20*t+10))/2}};/*! License details at fancyapps.com/license */function wa(t){const n=[],a=typeof TouchEvent<"u"&&t instanceof TouchEvent?t.touches:t instanceof MouseEvent&&t.type!=="mouseup"?[t]:[];for(const o of a)n.push({x:o.clientX,y:o.clientY,ts:Date.now()});return n}function Sr(t){const n=[],a=typeof TouchEvent<"u"&&t instanceof TouchEvent?t.changedTouches:t instanceof MouseEvent?[t]:[];for(const o of a)n.push({x:o.clientX,y:o.clientY,ts:Date.now()});return n}function wt(t){const n=t[0],a=t[1]||n;return{x:(n.x+a.x)/2,y:(n.y+a.y)/2,ts:a.ts}}function Dn(t){const n=t[0],a=t[1]||t[0];return n&&a?-1*Math.sqrt((a.x-n.x)*(a.x-n.x)+(a.y-n.y)*(a.y-n.y)):0}const Br=t=>{t.cancelable&&t.preventDefault()},Et={passive:!1},p3={panThreshold:5,swipeThreshold:3,ignore:["textarea","input","select","[contenteditable]","[data-selectable]","[data-draggable]"]};let Ea=!1,tn=!0;const nn=(t,n)=>{let a,o,r,i=Object.assign(Object.assign({},p3),n),s=[],l=[],d=[],f=!1,u=!1,h=!1,m=0,p=0,c=0,g=0,y=0,b=0,w=0,E=0,x=0,v=[],D=0,_=0;const C=new Map;function k(F){const L=Dn(l),j=Dn(d),re=L&&j?L/j:0,se=Math.abs(w)>Math.abs(E)?w:E,be={srcEvent:a,isPanRecognized:f,isSwipeRecognized:u,firstTouch:s,previousTouch:d,currentTouch:l,deltaX:c,deltaY:g,offsetX:y,offsetY:b,velocityX:w,velocityY:E,velocity:se,angle:x,axis:r,scale:re,center:o};for(const Se of C.get(F)||[])Se(be)}function N(F){const L=Date.now();v=v.filter(j=>!j.ts||j.ts>L-100),F&&v.push(F)}function S(){if(w=0,E=0,v.length>3){const F=v[0],L=v[v.length-1];if(F&&L){const j=L.x-F.x,re=L.y-F.y,se=F.ts&&L.ts?L.ts-F.ts:0;se>0&&(w=Math.abs(j)>3?j/(se/30):0,E=Math.abs(re)>3?re/(se/30):0)}}}function B(F){if(F instanceof MouseEvent){if(Ea)return}else Ea=!0;const L=F.composedPath()[0],j=i.ignore.join(",");if(L.matches(j)||L.closest(j)||typeof MouseEvent<"u"&&F instanceof MouseEvent&&(!F.buttons||F.button!==0))return;F instanceof MouseEvent&&Br(F);const re=Date.now(),se=re-(m||re);h=se>0&&se<=250,m=re,clearTimeout(D),a=F,F instanceof MouseEvent&&(window.addEventListener("mousemove",A),window.addEventListener("mouseup",M)),window.addEventListener("blur",H),l=wa(F),s=[...l],d=[],p=l.length,o=wt(l),p===1&&(f=!1,u=!1),p&&N(wt(l)),k("start")}function A(F){var L;if(!s.length||F.defaultPrevented)return;a=F,d=[...l],l=wa(F),p=l.length,o=wt(l);const j=o,re=wt(d);if(c=j.x-re.x,g=j.y-re.y,N(j),S(),k("move"),l.length>1){const se=Dn(l),be=Dn(d);Math.abs(se-be)>=.1&&k("pinch")}if(!f&&s.length){const se=wt(s);y=j.x-se.x,b=j.y-se.y,f=Math.abs(y)>i.panThreshold||Math.abs(b)>i.panThreshold,f&&(tn=!1,clearTimeout(_),_=0,x=Math.abs(180*Math.atan2(b,y)/Math.PI),r=x>45&&x<135?"y":"x",s=[...l],d=[...l],(L=window.getSelection())===null||L===void 0||L.removeAllRanges(),k("panstart"))}f&&(c||g)&&k("pan")}function M(F){if(a=F,!s.length)return;const L=wa(F),j=Sr(F);if(p=L.length,o=wt(j),j.length&&N(wt(j)),S(),d=[...l],l=[...L],s=[...L],L.length>0)k("end"),f=!1,u=!1,v=[];else{const re=i.swipeThreshold;(Math.abs(w)>re||Math.abs(E)>re)&&(u=!0),f&&k("panend"),u&&k("swipe"),f||u||(k("tap"),h?k("doubleTap"):D=setTimeout(function(){k("singleTap")},250)),k("end"),ie()}}function H(){clearTimeout(D),ie(),f&&k("panend"),k("end")}function ie(){f=!1,u=!1,h=!1,p=0,v=[],l=[],d=[],s=[],c=0,g=0,y=0,b=0,w=0,E=0,x=0,r=void 0,window.removeEventListener("mousemove",A),window.removeEventListener("mouseup",M),window.removeEventListener("blur",H),tn||_||(_=setTimeout(()=>{tn=!0,_=0},100))}function Q(F){const L=F.target;Ea=!1,L&&!F.defaultPrevented&&(tn||(Br(F),F.stopPropagation()))}const fe={init:function(){if(t)return t.addEventListener("click",Q,Et),t.addEventListener("mousedown",B,Et),t.addEventListener("touchstart",B,Et),t.addEventListener("touchmove",A,Et),t.addEventListener("touchend",M),t.addEventListener("touchcancel",M),fe},on:function(F,L){return function(j,re){C.set(j,[...C.get(j)||[],re])}(F,L),fe},off:function(F,L){return C.has(F)&&C.set(F,C.get(F).filter(j=>j!==L)),fe},isPointerDown:()=>p>0,destroy:function(){clearTimeout(D),clearTimeout(_),_=0,t&&(t.removeEventListener("click",Q,Et),t.removeEventListener("mousedown",B,Et),t.removeEventListener("touchstart",B,Et),t.removeEventListener("touchmove",A,Et),t.removeEventListener("touchend",M),t.removeEventListener("touchcancel",M)),t=null,ie()}};return fe};nn.isClickAllowed=()=>tn;/*! License details at fancyapps.com/license */const va={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"};/*! License details at fancyapps.com/license */const De=(t,n="")=>{t&&t.classList&&n.split(" ").forEach(a=>{a&&t.classList.add(a)})};/*! License details at fancyapps.com/license */const Ln=t=>{t.cancelable&&t.preventDefault()},Xe=(t,n=1e4)=>(t=parseFloat(t+"")||0,Math.round((t+Number.EPSILON)*n)/n);var me,Vr;(function(t){t.Reset="reset",t.Zoom="zoom",t.ZoomIn="zoomIn",t.ZoomOut="zoomOut",t.ZoomTo="zoomTo",t.ToggleCover="toggleCover",t.ToggleFull="toggleFull",t.ToggleMax="toggleMax",t.IterateZoom="iterateZoom",t.Pan="pan",t.Swipe="swipe",t.Move="move",t.MoveLeft="moveLeft",t.MoveRight="moveRight",t.MoveUp="moveUp",t.MoveDown="moveDown",t.RotateCCW="rotateCCW",t.RotateCW="rotateCW",t.FlipX="flipX",t.FlipY="flipY"})(me||(me={})),function(t){t.Cover="cover",t.Full="full",t.Max="max"}(Vr||(Vr={}));const at={x:0,y:0,scale:1,angle:0,flipX:1,flipY:1},Ca={bounds:!0,classes:{container:"f-panzoom",wrapper:"f-panzoom__wrapper",content:"f-panzoom__content",viewport:"f-panzoom__viewport"},clickAction:me.ToggleFull,dblClickAction:!1,gestures:{},height:"auto",l10n:va,maxScale:4,minScale:1,mouseMoveFactor:1,panMode:"drag",protected:!1,singleClickAction:!1,spinnerTpl:'<div class="f-spinner"></div>',wheelAction:me.Zoom,width:"auto"};let Fn,Mr=0,Nr=0,$n=0;const Sa=(t,n={},a={})=>{let o,r,i,s,l,d,f,u=0,h=Object.assign(Object.assign({},Ca),n),m={},p=Object.assign({},at),c=Object.assign({},at);const g=[];function y(V){let $=h[V];return $&&typeof $=="function"?$(J):$}const b=new Map;function w(V,...$){const q=b.get(V)||[];h.on&&q.push(h.on[V]);for(const z of q)z&&z instanceof Function&&z(J,...$);V!=="*"&&w("*",V,...$)}function E(V){if(u!==3)return;const $=V.target;if(en($))return;const q=Date.now(),z=[-V.deltaX||0,-V.deltaY||0,-V.detail||0].reduce(function(we,ke){return Math.abs(ke)>Math.abs(we)?ke:we}),X=Te(-1,z,1);w("wheel",V,X);const U=y("wheelAction");if(!U||V.defaultPrevented)return;const ee=c.scale;let de=ee*(X>0?1.5:.5);if(U===me.Zoom){const we=Math.abs(V.deltaY)<100&&Math.abs(V.deltaX)<100;if(q-Nr<(we?200:45))return void Ln(V);Nr=q;const ke=B(),pe=ie();if(Xe(de)<Xe(ke)&&Xe(ee)<=Xe(ke)?($n+=Math.abs(X),de=ke):Xe(de)>Xe(pe)&&Xe(ee)>=Xe(pe)?($n+=Math.abs(X),de=pe):($n=0,de=Te(ke,de,pe)),$n>7)return}switch(Ln(V),U){case me.Pan:L(U,{srcEvent:V,deltaX:2*-V.deltaX,deltaY:2*-V.deltaY});break;case me.Zoom:L(me.ZoomTo,{srcEvent:V,scale:de,center:{x:V.clientX,y:V.clientY}});break;default:L(U,{srcEvent:V})}}function x(V){var $,q;const z=V.composedPath()[0];if(!nn.isClickAllowed()||!jt(z)||V.defaultPrevented||!(t!=null&&t.contains(z))||z.hasAttribute("disabled")||z.hasAttribute("aria-disabled"))return;const X=z.closest("[data-panzoom-action]"),U=($=X==null?void 0:X.dataset)===null||$===void 0?void 0:$.panzoomAction,ee=((q=X==null?void 0:X.dataset)===null||q===void 0?void 0:q.panzoomValue)||"";if(U){switch(U){case me.ZoomTo:case me.ZoomIn:case me.ZoomOut:L(U,{scale:parseFloat(ee||"")||void 0});break;case me.MoveLeft:case me.MoveRight:L(U,{deltaX:parseFloat(ee||"")||void 0});break;case me.MoveUp:case me.MoveDown:L(U,{deltaY:parseFloat(ee||"")||void 0});break;default:L(U)}return}if(!(o!=null&&o.contains(z)))return;const de={srcEvent:V};if(L(y("clickAction"),de),y("dblClickAction")){const we=Date.now(),ke=we-(Mr||we);Mr=we,ke>0&&ke<=250?(Fn&&(clearTimeout(Fn),Fn=void 0),L(y("dblClickAction"),de)):Fn=setTimeout(()=>{L(y("singleClickAction"),de)},250)}}function v(V){if(f=V,!k()||u!==3||p.scale<=1||c.scale<=1||((o==null?void 0:o.dataset.animationName)||"").indexOf("zoom")>-1)return;const $=N(c.scale);if(!$)return;const{x:q,y:z}=$;L(me.Pan,{deltaX:q-c.x,deltaY:z-c.y})}function D(){var V;if(t&&((V=t.querySelector(".f-spinner"))===null||V===void 0||V.remove(),t.classList.remove("is-loading")),!t||!o)return;if(r instanceof HTMLImageElement&&(!r.complete||!r.naturalWidth))return u=2,o==null||o.classList.add("has-error"),void w("error");w("loaded");const{width:$,height:q}=C();r&&(r.setAttribute("width",$+""),r.setAttribute("height",q+"")),o&&(o.classList.remove("has-error"),o.setAttribute("width",$+""),o.setAttribute("height",q+""),o.style.aspectRatio=`${$/q||""}`),l=bt().on("start",(X,U)=>{c=Object.assign(Object.assign({},at),U),U.angle!==void 0&&(U.angle=90*Math.round(U.angle/90)),U.flipX!==void 0&&(U.flipX=U.flipX>0?1:-1),U.flipY!==void 0&&(U.flipY=U.flipY>0?1:-1),F(),w("animationStart")}).on("pause",X=>{c=Object.assign(Object.assign({},at),X)}).on("step",X=>{if(u!==3||!l)return;if(!t||!t.parentElement)return void l.end();if(p=Object.assign(Object.assign({},at),X),k()||!y("bounds")||(s==null?void 0:s.isPointerDown())||c.scale>p.scale||c.scale<A())return void j();const U=Q(c.scale);let ee=!1,de=!1,we=!1,ke=!1;p.x<U.x[0]&&(ee=!0),p.x>U.x[1]&&(de=!0),p.y<U.y[0]&&(ke=!0),p.y>U.y[1]&&(we=!0);let pe=!1,ge=!1,O=!1,K=!1;c.x<U.x[0]&&(pe=!0),c.x>U.x[1]&&(ge=!0),c.y<U.y[0]&&(K=!0),c.y>U.y[1]&&(O=!0);let ae=!1;(de&&ge||ee&&pe)&&(c.x=Te(U.x[0],c.x,U.x[1]),ae=!0),(we&&O||ke&&K)&&(c.y=Te(U.y[0],c.y,U.y[1]),ae=!0),ae&&l.spring({tension:94,friction:17,maxSpeed:555*c.scale,restDelta:.1,restSpeed:.1,velocity:l.getCurrentVelocities()}).from(p).to(c).start(),j()}).on("end",()=>{fe(),l!=null&&l.isRunning()||(F(),w("animationEnd"))}),function(){const X=y("gestures");X&&i&&r&&(s=nn(i,X).on("start",U=>{if(!l)return;const ee=U.srcEvent;k()||((p.scale>1||U.currentTouch.length>1)&&(ee==null||ee.stopPropagation(),l.pause()),U.currentTouch.length===1&&w("touchStart"))}).on("move",U=>{k()||(c.scale!==1||U.currentTouch.length>1)&&(U.srcEvent.preventDefault(),U.srcEvent.stopPropagation())}).on("pan",U=>{if(k())return;const ee=U.srcEvent;(c.scale!==1||U.currentTouch.length>1)&&(Ln(ee),L(me.Pan,U))}).on("swipe",U=>{k()||c.scale>1&&L(me.Swipe,U)}).on("tap",U=>{w("click",U)}).on("singleTap",U=>{w("singleClick",U)}).on("doubleTap",U=>{w("dblClick",U)}).on("pinch",U=>{k()||(U.scale>A()?L(me.ZoomIn,U):U.scale<A()?L(me.ZoomOut,U):L(me.Pan,U))}).on("end",U=>{k()||(U.currentTouch.length?(U.srcEvent.stopPropagation(),Ln(U.srcEvent),l==null||l.end()):(F(),fe(),w("touchEnd")))}).init())}(),i&&(i.addEventListener("wheel",E,{passive:!1}),g.push(()=>{i==null||i.removeEventListener("wheel",E,{passive:!1})})),t==null||t.addEventListener("click",x),document==null||document.addEventListener("mousemove",v),g.push(()=>{t==null||t.removeEventListener("click",x),document==null||document.removeEventListener("mousemove",v)});const z=Object.assign(Object.assign({},y("startPos")||{}),{scale:A()});if(p=Object.assign(Object.assign({},at),z),c=Object.assign(Object.assign({},at),z),k()){const X=N(c.scale);if(X){const{x:U,y:ee}=X;p.x=U,p.y=ee,c.x=U,c.y=ee}}u=3,j(),F(),w("ready"),requestAnimationFrame(()=>{i&&(i.style.visibility="")})}function _(){const V={top:0,left:0,width:0,height:0};if(o){const $=o.getBoundingClientRect();c.angle%180==90?(V.top=$.top+.5*$.height-.5*$.width,V.left=$.left+.5*$.width-.5*$.height,V.width=$.height,V.height=$.width):(V.top=$.top,V.left=$.left,V.width=$.width,V.height=$.height)}return V}function C(){let V=y("width"),$=y("height");if(r&&V==="auto"){const q=r.getAttribute("width");V=q?parseFloat(q+""):r.dataset.width!==void 0?parseFloat(r.dataset.width+""):i instanceof HTMLImageElement?i.naturalWidth:r instanceof HTMLImageElement?r.naturalWidth:r.getBoundingClientRect().width}else V=je(V)?parseFloat(V):V;if(r&&$==="auto"){const q=r.getAttribute("height");$=q?parseFloat(q+""):r.dataset.height!==void 0?parseFloat(r.dataset.height+""):i instanceof HTMLImageElement?i.naturalHeight:r instanceof HTMLImageElement?r.naturalHeight:r.getBoundingClientRect().height}else $=je($)?parseFloat($):$;return{width:V,height:$}}function k(){return y("panMode")==="mousemove"&&matchMedia("(hover: hover)").matches}function N(V){const $=f||y("event"),q=o==null?void 0:o.getBoundingClientRect();if(!$||!q||V<=1)return{x:0,y:0};const z=($.clientX||0)-q.left,X=($.clientY||0)-q.top,U=q.width,ee=q.height,de=Q(V);if(V>1){const O=y("mouseMoveFactor");O>1&&(V*=O)}let we=U*V,ke=ee*V,pe=.5*(we-U)-z/U*100/100*(we-U),ge=.5*(ke-ee)-X/ee*100/100*(ke-ee);return pe=Te(de.x[0],pe,de.x[1]),ge=Te(de.y[0],ge,de.y[1]),{x:pe,y:ge}}function S(V="base"){if(!t)return 1;const $=t.getBoundingClientRect(),q=_(),{width:z,height:X}=C(),U=pe=>{if(typeof pe=="number")return pe;switch(pe){case"min":case"base":return 1;case"cover":return Math.max($.height/q.height,$.width/q.width)||1;case"full":case"max":{const ge=c.angle%180==90?X:z;return ge&&q.width?ge/q.width:1}}},ee=y("minScale"),de=y("maxScale"),we=Math.min(U("full"),U(ee)),ke=typeof de=="number"?U("full")*de:Math.min(U("full"),U(de));switch(V){case"min":return we;case"base":return Te(we,1,ke);case"cover":return U("cover");case"full":return Math.min(ke,U("full"));case"max":return ke}}function B(){return S("min")}function A(){return S("base")}function M(){return S("cover")}function H(){return S("full")}function ie(){return S("max")}function Q(V){const $={x:[0,0],y:[0,0]},q=t==null?void 0:t.getBoundingClientRect();if(!q)return $;const z=_(),X=q.width,U=q.height;let ee=z.width,de=z.height,we=V=V===void 0?c.scale:V,ke=V;if(k()&&V>1){const pe=y("mouseMoveFactor");pe>1&&(ee*V>X+.01&&(we*=pe),de*V>U+.01&&(ke*=pe))}return ee*=we,de*=ke,V>1&&(ee>X&&($.x[0]=.5*(X-ee),$.x[1]=.5*(ee-X)),$.x[0]-=.5*(z.left-q.left),$.x[1]-=.5*(z.left-q.left),$.x[0]-=.5*(z.left+z.width-q.right),$.x[1]-=.5*(z.left+z.width-q.right),de>U&&($.y[0]=.5*(U-de),$.y[1]=.5*(de-U)),$.y[0]-=.5*(z.top-q.top),$.y[1]-=.5*(z.top-q.top),$.y[0]-=.5*(z.top+z.height-q.bottom),$.y[1]-=.5*(z.top+z.height-q.bottom)),$}function fe(){if(!y("bounds")||u!==3||!(t!=null&&t.parentElement)||!l)return;const V=B(),$=ie(),q=Te(V,c.scale,$);if(c.scale<V-.01||c.scale>$+.01)return void L(me.ZoomTo,{scale:q});if(l.isRunning()||s!=null&&s.isPointerDown())return;const z=Q(q);c.x<z.x[0]||c.x>z.x[1]||c.y<z.y[0]||c.y>z.y[1]?(c.x=Te(z.x[0],c.x,z.x[1]),c.y=Te(z.y[0],c.y,z.y[1]),l.spring({tension:170,friction:17,restDelta:.001,restSpeed:.001,maxSpeed:1/0,velocity:l.getCurrentVelocities()}),l.from(p).to(c).start()):j()}function F(){if(!t||!t.parentElement||!o)return;const V=$e(),$=Ve(),q=G(),z=ne(),X=se(),U=be();o.classList.toggle("is-fullsize",z),o.classList.toggle("is-expanded",q),o.classList.toggle("is-dragging",$),o.classList.toggle("can-drag",V),o.classList.toggle("will-zoom-in",X),o.classList.toggle("will-zoom-out",U);const ee=Se(),de=Fe(),we=u!==3;for(const ke of(t==null?void 0:t.querySelectorAll("[data-panzoom-action]"))||[]){const pe=ke.dataset.panzoomAction;let ge=!1;if(we)ge=!0;else switch(pe){case me.ZoomIn:ee||(ge=!0);break;case me.ZoomOut:de||(ge=!0);break;case me.ToggleFull:ee||de||(ge=!0);const O=ke.querySelector("g");O&&(O.style.display=z?"none":"");break;case me.ToggleCover:case me.ToggleMax:ee||de||(ge=!0)}ge?(ke.setAttribute("aria-disabled",""),ke.setAttribute("tabindex","-1")):(ke.removeAttribute("aria-disabled"),ke.removeAttribute("tabindex"))}}function L(V,$){var q;if(!t||!r||!l||V===me.Swipe&&Math.abs(l.getCurrentVelocities().scale)>.01)return;let z=Object.assign({},c),X=Q(k()?c.scale:p.scale);const U=l.getCurrentVelocities(),ee=_(),de=(((q=($=$||{}).currentTouch)===null||q===void 0?void 0:q.length)||0)>1,we=$.velocityX||0,ke=$.velocityY||0;let pe=$.center;!pe&&$.srcEvent&&(pe=wt(Sr($.srcEvent)));let ge=$.deltaX||0,O=$.deltaY||0;switch(V){case me.MoveRight:ge=$.deltaX||100;break;case me.MoveLeft:ge=$.deltaX||-100;break;case me.MoveUp:O=$.deltaY||-100;break;case me.MoveDown:O=$.deltaY||100}let K=[];switch(V){case me.Reset:c=Object.assign({},at),c.scale=A();break;case me.Pan:case me.Move:case me.MoveLeft:case me.MoveRight:case me.MoveUp:case me.MoveDown:if(s!=null&&s.isPointerDown()){let Ee=1,ye=1;c.x<=X.x[0]&&we<=0&&(Ee=Math.max(.01,1-Math.abs(1/ee.width*Math.abs(c.x-X.x[0]))),Ee*=.2),c.x>=X.x[1]&&we>=0&&(Ee=Math.max(.01,1-Math.abs(1/ee.width*Math.abs(c.x-X.x[1]))),Ee*=.2),c.y<=X.y[0]&&ke<=0&&(ye=Math.max(.01,1-Math.abs(1/ee.height*Math.abs(c.y-X.y[0]))),ye*=.2),c.y>=X.y[1]&&ke>=0&&(ye=Math.max(.01,1-Math.abs(1/ee.height*Math.abs(c.y-X.y[1]))),ye*=.2),c.x+=ge*Ee,c.y+=O*ye}else c.x=Te(X.x[0],c.x+ge,X.x[1]),c.y=Te(X.y[0],c.y+O,X.y[1]);break;case me.Swipe:const ae=(Ee=0)=>Math.sign(Ee)*Math.pow(Math.abs(Ee),1.5);c.x+=Te(-1e3,ae(we),1e3),c.y+=Te(-1e3,ae(ke),1e3),ke&&!we&&(c.x=Te(X.x[0],c.x,X.x[1])),!ke&&we&&(c.y=Te(X.y[0],c.y,X.y[1])),U.x=we,U.y=ke;break;case me.ZoomTo:c.scale=$.scale||1;break;case me.ZoomIn:c.scale=c.scale*($.scale||2),de||(c.scale=Math.min(c.scale,ie()));break;case me.ZoomOut:c.scale=c.scale*($.scale||.5),de||(c.scale=Math.max(c.scale,B()));break;case me.ToggleCover:K=[A(),M()];break;case me.ToggleFull:K=[A(),H()];break;case me.ToggleMax:K=[A(),ie()];break;case me.IterateZoom:K=[A(),H(),ie()];break;case me.Zoom:const ce=H();c.scale>=ce-.05?c.scale=A():c.scale=Math.min(ce,c.scale*($.scale||2));break;case me.RotateCW:c.angle+=90;break;case me.RotateCCW:c.angle-=90;break;case me.FlipX:c.flipX*=-1;break;case me.FlipY:c.flipY*=-1}if(p.angle!==void 0&&Math.abs(p.angle)>=360&&(c.angle-=360*Math.floor(p.angle/360),p.angle-=360*Math.floor(p.angle/360)),K.length){const ae=K.findIndex(ce=>ce>c.scale+1e-4);c.scale=K[ae]||K[0]}if(de&&(c.scale=Te(B()*(de?.8:1),c.scale,ie()*(de?1.6:1))),k()){const ae=N(c.scale);if(ae){const{x:ce,y:Ee}=ae;c.x=ce,c.y=Ee}}else if(c.scale!==z.scale){let ae=0,ce=0;if(pe)ae=pe.x,ce=pe.y;else{const I=t.getBoundingClientRect();ae=I.x+.5*I.width,ce=I.y+.5*I.height}let Ee=ae-ee.left,ye=ce-ee.top;Ee-=.5*ee.width,ye-=.5*ee.height;const T=(Ee-z.x)/z.scale,P=(ye-z.y)/z.scale;c.x=Ee-T*c.scale,c.y=ye-P*c.scale,!de&&y("bounds")&&(X=Q(c.scale),c.x=Te(X.x[0],c.x,X.x[1]),c.y=Te(X.y[0],c.y,X.y[1]))}if(V===me.Swipe){let ae=94,ce=17,Ee=500*c.scale,ye=U;l.spring({tension:ae,friction:ce,maxSpeed:Ee,restDelta:.1,restSpeed:.1,velocity:ye})}else V===me.Pan||de?l.spring({tension:750,friction:17,restDelta:.01,restSpeed:.01,maxSpeed:1}):l.spring({tension:170,friction:17,restDelta:.001,restSpeed:.001,maxSpeed:1/0,velocity:U});V===me.Reset&&$.velocity===0?p=Object.assign({},c):l.from(p).to(c).start(),w("action",V)}function j(){if(!o||!r)return;if(r instanceof HTMLImageElement){const{width:de,height:we}=C();o.style.maxWidth=`min(${de}px, 100%)`,o.style.maxHeight=`min(${we}px, 100%)`}let{x:V,y:$,scale:q,angle:z,flipX:X,flipY:U}=p;const ee=function(){const de=_(),we=de.width,ke=de.height,{width:pe,height:ge}=C();if(!t)return{x:0,y:0,width:0,height:0,scale:0,flipX:0,flipY:0,angle:0,fitWidth:we,fitHeight:ke,fullWidth:pe,fullHeight:ge};let{x:O,y:K,scale:ae,angle:ce,flipX:Ee,flipY:ye}=p,T=1/H(),P=pe,I=ge,Z=p.scale*T,he=c.scale*T;const te=Math.max(we,ke),oe=Math.min(we,ke);pe>ge?(P=te,I=oe):(P=oe,I=te),Z=pe>ge?te*ae/pe||1:te*ae/ge||1;let ue=P?pe*he:0,R=I?ge*he:0;return O=O+.5*P-.5*ue,K=K+.5*I-.5*R,{x:O,y:K,width:ue,height:R,scale:P&&I?pe*Z/ue:0,flipX:Ee,flipY:ye,angle:ce,fitWidth:we,fitHeight:ke,fullWidth:pe,fullHeight:ge}}();if(o&&ee){const{x:de,y:we,width:ke,height:pe,scale:ge,flipX:O,flipY:K}=ee;let ae=`translate(${Xe(de)}px, ${Xe(we)}px)`;ae+=O!==1||K!==1?` scaleX(${Xe(ge*O)}) scaleY(${Xe(ge*K)})`:` scale(${Xe(ge)})`,z!==0&&(ae+=` rotate(${z}deg)`),i&&(i.style.width=`${Xe(ke)}px`,i.style.height=`${Xe(pe)}px`,i.style.transform=`${ae}`)}w("render")}function re(){let V=c.scale;const $=y("clickAction");let q=A();if($){let z=[];switch($){case me.ZoomIn:q=2*V;break;case me.ZoomOut:q=.5*V;break;case me.ToggleCover:z=[A(),M()];break;case me.ToggleFull:z=[A(),H()];break;case me.ToggleMax:z=[A(),ie()];break;case me.IterateZoom:z=[A(),H(),ie()];break;case me.Zoom:const X=H();q=V>=X-.05?A():Math.min(X,2*V)}if(z.length){const X=z.findIndex(U=>U>V+1e-4);q=z[X]||A()}}return q=Te(B(),q,ie()),q}function se(){return u===3&&re()>c.scale}function be(){return u===3&&re()<c.scale}function Se(){return u===3&&c.scale<ie()}function Fe(){return u===3&&c.scale>B()}function $e(){return u===3&&G()&&!!s&&!k()}function Ve(){return u===3&&(s==null?void 0:s.isPointerDown())&&!k()}function G(){return u===3&&c.scale>A()}function ne(){return u===3&&c.scale>=H()}const J={canDrag:$e,canZoomIn:Se,canZoomOut:Fe,destroy:function(){w("destroy");for(const V of Object.values(m))V==null||V.destroy(J);for(const V of g)V();return o&&(o.style.aspectRatio="",o.style.maxWidth="",o.style.maxHeight=""),i&&(i.style.width="",i.style.height="",i.style.transform=""),o=void 0,r=void 0,i=void 0,p=Object.assign({},at),c=Object.assign({},at),l==null||l.destroy(),l=void 0,s==null||s.destroy(),s=void 0,u=4,J},emit:w,execute:L,getBoundaries:Q,getContainer:function(){return t},getFullDim:C,getGestures:function(){return s},getMousemovePos:N,getOptions:function(){return h},getScale:S,getState:function(){return u},getTransform:function(V){return V===!0?c:p},getTween:function(){return l},getViewport:function(){return i},getWrapper:function(){return o},init:function(){return u=0,w("init"),function(){for(const[V,$]of Object.entries(Object.assign(Object.assign({},a),h.plugins||{})))if(V&&!m[V]&&$ instanceof Function){const q=$();q.init(J),m[V]=q}w("initPlugins")}(),function(){if(!t)return;const V=Object.assign(Object.assign({},Ca.classes),y("classes"));if(De(t,V.container),r=t.querySelector("."+V.content),!!r&&(r.setAttribute("draggable","false"),o=t.querySelector("."+V.wrapper),o||(o=document.createElement("div"),De(o,V.wrapper),r.insertAdjacentElement("beforebegin",o),o.insertAdjacentElement("afterbegin",r)),r instanceof HTMLImageElement||r instanceof HTMLPictureElement)){if(i=t.querySelector("."+V.viewport),!i){i=document.createElement("div"),De(i,V.viewport);const $=r.cloneNode(!0);$.classList.remove("is-lazyloading"),$.classList.remove("is-lazyloaded"),i.insertAdjacentElement("afterbegin",$),o.insertAdjacentElement("beforeend",i)}if(r instanceof HTMLPictureElement&&(r=r.querySelector("img")),i instanceof HTMLPictureElement&&(i=i.querySelector("img")),i.style.visibility="hidden",y("protected")){i.addEventListener("contextmenu",q=>{q.preventDefault()});const $=document.createElement("div");De($,"f-panzoom__protected"),i.appendChild($)}w("initLayout")}}(),function(){if(!(r&&r instanceof HTMLImageElement))return;u=1,w("loading");const V=()=>{r&&r instanceof HTMLImageElement&&r.decode().then(()=>{requestAnimationFrame(()=>{D()})}).catch(()=>{D()})};if(r.src&&r.complete)return void V();(function(){const $=t==null?void 0:t.querySelector(".f-spinner");if(!t||$)return;const q=y("spinnerTpl"),z=kt(q);z&&(z.classList.add("f-spinner"),t.classList.add("is-loading"),o==null||o.insertAdjacentElement("afterbegin",z))})(),r.addEventListener("load",V,!1),r.addEventListener("error",V,!1),g.push(()=>{r==null||r.removeEventListener("load",V,!1),r==null||r.removeEventListener("error",V,!1)})}(),function(){if(t&&o&&!d){let V=null;d=new ResizeObserver(()=>{V||(V=requestAnimationFrame(()=>{t&&t.parentElement&&u===3&&(F(),fe(),w("refresh")),V=null}))}),d.observe(o),g.push(()=>{d==null||d.disconnect(),d=void 0,V&&(cancelAnimationFrame(V),V=null)})}}(),J},isDragging:Ve,isExpanded:G,isFullsize:ne,localize:function(V,$=[]){const q=y("l10n")||{};V=String(V).replace(/\{\{(\w+)\}\}/g,(z,X)=>q[X]||z);for(let z=0;z<$.length;z++)V=V.split($[z][0]).join($[z][1]);return V=V.replace(/\{\{(.*?)\}\}/g,(z,X)=>X)},off:function(V,$){for(const q of V instanceof Array?V:[V])b.has(q)&&b.set(q,b.get(q).filter(z=>z!==$));return J},on:function(V,$){for(const q of V instanceof Array?V:[V])b.set(q,[...b.get(q)||[],$]);return J},version:"6.0.16",willZoomIn:se,willZoomOut:be};return J};Sa.l10n={en_EN:va},Sa.getDefaults=()=>Ca;/*! License details at fancyapps.com/license */const Ba=(t,n)=>{let a=[];return t.childNodes.forEach(o=>{o.nodeType!==Node.ELEMENT_NODE||n&&!o.matches(n)||a.push(o)}),a};/*! License details at fancyapps.com/license */const ot=(t,...n)=>{const a=n.length;for(let o=0;o<a;o++){const r=n[o]||{};Object.entries(r).forEach(([i,s])=>{const l=Array.isArray(s)?[]:{};t[i]||Object.assign(t,{[i]:l}),Ze(s)?Object.assign(t[i],ot(l,s)):Array.isArray(s)?Object.assign(t,{[i]:[...s]}):Object.assign(t,{[i]:s})})}return t};/*! License details at fancyapps.com/license */const Va=function(t=0,n=0,a=0,o=0,r=0,i=!1){const s=(t-n)/(a-n)*(r-o)+o;return i?o<r?Te(o,s,r):Te(r,s,o):s};/*! License details at fancyapps.com/license */const mt=(t,n="")=>{t&&t.classList&&n.split(" ").forEach(a=>{a&&t.classList.remove(a)})};/*! License details at fancyapps.com/license */const vt=(t,n="",a)=>{t&&t.classList&&n.split(" ").forEach(o=>{o&&t.classList.toggle(o,a||!1)})};/*! License details at fancyapps.com/license */const Ma=Object.assign(Object.assign({},va),{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 It=t=>{t.cancelable&&t.preventDefault()},Wt={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:Ma,rtl:!1,slides:[],slidesPerPage:"auto",spinnerTpl:'<div class="f-spinner"></div>',transition:"fade",tween:{clamp:!0,mass:1,tension:200,friction:25,restDelta:1,restSpeed:1,velocity:0},vertical:!1};let Ar,Tr=0;const _n=(t,n={},a={})=>{Tr++;let o,r,i,s,l,d=0,f=Object.assign({},Wt),u=Object.assign({},Wt),h={},m=null,p=null,c=!1,g=!1,y=!1,b=!1,w="height",E=0,x=!0,v=0,D=0,_=0,C=0,k="*",N=[],S=[];const B=new Set;let A=[],M=[],H=0,ie=0;function Q(T,...P){let I=u[T];return I&&I instanceof Function?I(ye,...P):I}function fe(T,P=[]){const I=Q("l10n")||{};T=String(T).replace(/\{\{(\w+)\}\}/g,(Z,he)=>I[he]||Z);for(let Z=0;Z<P.length;Z++)T=T.split(P[Z][0]).join(P[Z][1]);return T=T.replace(/\{\{(.*?)\}\}/g,(Z,he)=>he)}const F=new Map;function L(T,...P){const I=F.get(T)||[];u.on&&I.push(u.on[T]);for(const Z of I)Z&&Z instanceof Function&&Z(ye,...P);T!=="*"&&L("*",T,...P)}function j(){var T,P;const I=ot({},Wt,f);ot(I,Wt,f);let Z="";const he=f.breakpoints||{};if(he)for(const[te,oe]of Object.entries(he))window.matchMedia(te).matches&&(Z+=te,ot(I,oe));if(l===void 0||Z!==l){if(l=Z,d!==0){let te=(P=(T=M[v])===null||T===void 0?void 0:T.slides[0])===null||P===void 0?void 0:P.index;te===void 0&&(te=u.initialSlide),I.initialSlide=te,I.slides=[];for(const oe of N)oe.isVirtual&&I.slides.push(oe)}Ee(),u=I,u.enabled!==!1&&(d=0,L("init"),function(){for(const[te,oe]of Object.entries(Object.assign(Object.assign({},a),u.plugins||{})))if(te&&!h[te]&&oe instanceof Function){const ue=oe();ue.init(ye,_n),h[te]=ue}L("initPlugins")}(),function(){if(!m)return;const te=Q("classes")||{};De(m,te.container),De(m,te.isEnabled);const oe=Q("style");if(oe&&Ze(oe))for(const[ue,R]of Object.entries(oe))m.style.setProperty(ue,R);p=m.querySelector(`.${te.viewport}`),p||(p=document.createElement("div"),De(p,te.viewport),p.append(...Ba(m,`.${te.slide}`)),m.insertAdjacentElement("afterbegin",p)),c=window.getComputedStyle(p).getPropertyValue("overflow")==="visible",m.carousel=ye,L("initLayout")}(),function(){if(!p)return;const te=Q("classes")||{};N=[],[...Ba(p,`.${te.slide}`)].forEach(oe=>{oe.parentElement&&(N.push($(Object.assign({el:oe,isVirtual:!1},oe.dataset||{}))),oe.parentElement.removeChild(oe))}),V(Q("slides"));for(const oe of N)L("addSlide",oe);L("initSlides")}(),r=bt().on("start",()=>{x=!1,o&&o.isPointerDown()||(be(),ce())}).on("step",te=>{E=te.pos,ce()}).on("end",te=>{o!=null&&o.isPointerDown()||(E=te.pos,r&&!g&&(E<_||E>C)?r.spring({clamp:!0,mass:1,tension:200,friction:25,velocity:0,restDelta:1,restSpeed:1}).from({pos:E}).to({pos:Te(_,E,C)}).start():x||(x=!0,L("settle")))}),function(){const te=Q("gestures");p&&te!==!1&&(o=nn(p,te).on("start",oe=>{var ue,R;if(!r)return;const{srcEvent:Y}=oe;function le(ve){const Me=window.getComputedStyle(ve),Ae=new DOMMatrixReadOnly(Me.transform);return{width:Ae.m41||0,height:Ae.m42||0}}b&&It(Y),r.pause(),r.getCurrentVelocities().pos=0;const xe=(ue=M[v])===null||ue===void 0?void 0:ue.slides[0];xe&&B.has(xe.index)&&xe.el&&(E=xe.offset||0,E+=(le(xe.el)[w]||0)*(y&&!b?1:-1)),we(),g||(E<_||E>C)&&r.spring({clamp:!0,mass:1,tension:500,friction:25,velocity:((R=r.getCurrentVelocities())===null||R===void 0?void 0:R.pos)||0,restDelta:1,restSpeed:1}).from({pos:E}).to({pos:Te(_,E,C)}).start()}).on("move",oe=>{const{srcEvent:ue,axis:R}=oe,Y=oe.srcEvent.target;Y&&en(Y)||(R||(ue.stopPropagation(),ue.stopImmediatePropagation()),(R==="y"&&b||R==="x"&&!b)&&(It(ue),ue.stopPropagation()))}).on("panstart",oe=>{(oe==null?void 0:oe.axis)===(b?"y":"x")&&De(p,"is-dragging")}).on("panend",()=>{mt(p,"is-dragging")}).on("pan",oe=>{var ue;const{deltaX:R,deltaY:Y,currentTouch:le,axis:xe}=oe;if(!r||le.length>1||xe==="y"&&!b||xe==="x"&&b)return;const ve=y&&!b?1:-1;let Me=b?Y:R,Ae=r!=null&&r.isRunning()?r.getEndValues().pos:E,Ne=1;g||(Ae<=_&&Me*ve<0?(Ne=Math.max(.01,1-Math.abs(1/G()*Math.abs(Ae-_))),Ne*=.2):Ae>=C&&Me*ve>0&&(Ne=Math.max(.01,1-Math.abs(1/G()*Math.abs(Ae-C))),Ne*=.2)),Ae+=Me*Ne*ve,r.spring({clamp:!0,mass:1,tension:700,friction:25,velocity:((ue=r.getCurrentVelocities())===null||ue===void 0?void 0:ue.pos)||0,restDelta:1,restSpeed:1}).from({pos:E}).to({pos:Ae}).start()}).on("end",oe=>{var ue,R;const{axis:Y,velocityX:le,velocityY:xe,currentTouch:ve}=oe,Me=M.length,Ae=Q("dragFree");if(ve.length>0||!r||!Me)return;const Ne=Q("vertical")?xe:le;let Re=r!=null&&r.isRunning()?r.getEndValues().pos:E;const tt=y&&!b?1:-1;if(Re+=Ne*(Ae?5:1)*tt,!g&&(Ne*tt<=0&&Re<_||Ne*tt>=0&&Re>C)){let Ge=0;return Math.abs(Ne)>0&&(Ge=2*Math.abs(Ne),Ge=Math.min(.3*G(),Ge)),Re=Te(_+-1*Ge,Re,C+Ge),void r.spring({clamp:!0,mass:1,tension:380,friction:25,velocity:-1*Ne,restDelta:1,restSpeed:1}).from({pos:E}).to({pos:Re}).start()}if(Ae||!((ue=h.Autoscroll)===null||ue===void 0)&&ue.isEnabled())return void(Math.abs(Ne)>10?r.spring({clamp:!0,mass:1,tension:150,friction:25,velocity:-1*Ne,restDelta:1,restSpeed:1}).from({pos:E}).to({pos:Re}).start():r.isRunning()||x||(x=!0,L("settle")));if(!Ae&&!(!((R=h.Autoscroll)===null||R===void 0)&&R.isEnabled())&&(!oe.offsetX&&!oe.offsetY||Y==="y"&&!b||Y==="x"&&b))return void ae(v,{transition:"tween"});let rt=$e(Re);Math.abs(Ne)>10&&rt===v&&(rt+=Ne>0?y&&!b?1:-1:y&&!b?-1:1),ae(rt,{transition:"tween",tween:{tension:160,friction:25,velocity:-1*Ne}})}).init())}(),ee(),function(){if(m&&(m.addEventListener("click",pe,{passive:!1}),document.addEventListener("mousemove",re),!i)){let te=null;i=new ResizeObserver(oe=>{te||(te=requestAnimationFrame(()=>{(function(ue){if(!m)return;let R=ue[0].contentBoxSize[0].blockSize,Y=ue[0].contentBoxSize[0].inlineSize;if(d===0)return H=R,ie=Y,d=1,ce(),Se(),void L("ready");if(d!==1)return;const le=M.length;ee();const xe=m.getBoundingClientRect();R=xe.height,Y=xe.width,le>1&&(b&&Math.abs(R-H)<.5||!b&&Math.abs(Y-ie)<.5)||(H=R,ie=Y,b&&!R||!b&&!Y||m&&p&&(le===M.length&&(o!=null&&o.isPointerDown())||(Q("dragFree")&&(g||E>_&&E<C)?(be(),ce()):ae(v,{transition:!1}))))})(oe),te=null}))}),i.observe(m)}}())}}function re(T){Ar=T}function se(T="*"){var P;const I=[];for(const Z of N)(T==="*"||Z.class&&Z.class.includes(T)||Z.el&&(!((P=Z.el)===null||P===void 0)&&P.classList.contains(T)))&&I.push(Z);s=void 0,k=T,S=[...I]}function be(){if(!r)return;const T=$e(r!=null&&r.isRunning()?r.getEndValues().pos:E);T!==v&&(s=v,v=T,K(),Se(),Fe(),L("change",v,s))}function Se(){var T;if(!m)return;vt(p,"is-draggable",!!o&&M.length>0);for(const Z of m.querySelectorAll("[data-carousel-index]"))Z.innerHTML=v+"";for(const Z of m.querySelectorAll("[data-carousel-page]"))Z.innerHTML=v+1+"";for(const Z of m.querySelectorAll("[data-carousel-pages]"))Z.innerHTML=M.length+"";let P=!1;const I=(T=M[v])===null||T===void 0?void 0:T.slides[0];I&&(I.downloadSrc||I.type==="image"&&I.src)&&(P=!0);for(const Z of m.querySelectorAll("[data-carousel-download]"))Z.toggleAttribute("aria-disabled",!P)}function Fe(T){var P;if(!m)return;T||(T=(P=M[v])===null||P===void 0?void 0:P.slides[0]);const I=T.el;if(I)for(const Z of I.querySelectorAll("[data-slide-index]"))Z.innerHTML=T.index+1+""}function $e(T){if(!M.length||!r)return 0;const P=ne();let I=T;g?I-=Math.floor((T-M[0].pos)/P)*P:I=Te(M[0].pos,T,M[M.length-1].pos);const Z=new Map;let he=0;for(const oe of M){const ue=Math.abs(oe.pos-I),R=Math.abs(oe.pos-I-P),Y=Math.abs(oe.pos-I+P),le=Math.min(ue,R,Y);Z.set(he,le),he++}const te=Z.size>0?[...Z.entries()].reduce((oe,ue)=>ue[1]<oe[1]?ue:oe):[v,0];return parseInt(te[0])}function Ve(){return p&&parseFloat(getComputedStyle(p).getPropertyValue("--f-carousel-gap"))||0}function G(){return p&&p.getBoundingClientRect()[w]||0}function ne(T=!0){const P=Ve();return S.reduce((I,Z)=>I+Z.dim,0)+(S.length-(g&&T?0:1))*P}function J(T){const P=Ve(),I=ne();let Z=G();if(!p)return[];const he=[];if(!I||!Z)return[];T=T===void 0?E:T,g&&(T-=Math.floor(T/I)*I);let te=0,oe=0;if(c){const R=p.getBoundingClientRect();te=R.left,oe=R.right-R.width}let ue=0;for(let R of S){const Y=(le=0)=>{he.indexOf(R)>-1||(R.pos=ue-T+le||0,R.offset+le>T-R.dim-te+.51&&R.offset+le<T+Z+oe-.51&&he.push(R))};if(R.offset=ue,g)for(let le=-1;le<=1;le++)Y(I*le);else Y();ue+=R.dim+P}return he}function V(T,P){const I=[];for(const Z of Array.isArray(T)?T:[T]){const he=$(Object.assign(Object.assign({},Z),{isVirtual:!0}));I.push(he)}N.splice(P===void 0?N.length:P,0,...I),U();for(const Z of I)q(Z);return se(k),I}function $(T){return(je(T)||T instanceof HTMLElement)&&(T={html:T}),Object.assign({index:-1,el:void 0,class:"",isVirtual:!0,dim:0,pos:0,offset:0,html:"",src:""},T)}function q(T){if(!T)return;let P=T.el;P||(P=document.createElement("div"),T.el=P);const I=T.html?T.html instanceof HTMLElement?T.html:kt(T.html):void 0;I&&(De(I,"f-html"),T.htmlEl=I,De(P,"has-html"),P.append(I),L("contentReady",T))}function z(T){if(!p||!T)return;let P=T.el;if(P){if(P.setAttribute("index",T.index+""),P.parentElement!==p){let I;De(P,u.classes.slide),De(P,T.class),K(T);for(const Z of N)if(Z.index>T.index){I=Z.el;break}p.insertBefore(P,I&&p.contains(I)?I:null),L("attachSlideEl",T)}return P}}function X(T){const P=T==null?void 0:T.el;P&&(P.remove(),de(P),L("detachSlideEl",T))}function U(){for(let T=0;T<N.length;T++){const P=N[T],I=P.el;I&&(P.index!==T&&de(I),I.setAttribute("index",`${T}`)),P.index=T}}function ee(){var T,P,I,Z;if(!m||!p)return;y=Q("rtl"),b=Q("vertical"),w=b?"height":"width";const he=Q("classes");vt(m,he.isLTR,!y),vt(m,he.isRTL,y),vt(m,he.isHorizontal,!b),vt(m,he.isVertical,b),vt(m,he.hasAdaptiveHeight,Q("adaptiveHeight"));const te=p.getBoundingClientRect();if(!te.width&&!te.height)return;const oe=function(){let R=0;if(p){let Y=document.createElement("div");De(Y,u.classes.slide),p.appendChild(Y),R=Y.getBoundingClientRect()[w],Y.remove(),Y=void 0}return R}();for(const R of S){const Y=R.el;let le=0;if(!R.isVirtual&&Y&&jt(Y)){let xe=!1;Y.parentElement&&Y.parentElement===p||(p.appendChild(Y),xe=!0),le=Y.getBoundingClientRect()[w],xe&&((T=Y.parentElement)===null||T===void 0||T.removeChild(Y))}else le=oe;R.dim=le}(function(){if(!m)return;U();const R=G(),Y=Ve(),le=ne(!1);let xe=Q("slidesPerPage");xe=xe==="auto"?1/0:parseFloat(xe+""),M=[];let ve=0,Me=0;for(const Pe of S)(!M.length||ve+Pe.dim-R>.05||Me>=xe)&&(M.push({index:M.length,slides:[],dim:0,offset:0,pos:0}),ve=0,Me=0),M[M.length-1].slides.push(Pe),ve+=Pe.dim+Y,Me++;const Ae=Q("center"),Ne=Q("fill"),Re=Q("infinite");let tt=0;for(const Pe of M){Pe.dim=(Pe.slides.length-1)*Y;for(const Bt of Pe.slides)Pe.dim+=Bt.dim;Pe.offset=tt,Pe.pos=tt,Ae!==!1&&(Pe.pos-=.5*(R-Pe.dim)),Ne&&!Re&&le>R&&(Pe.pos=Te(0,Pe.pos,le-R)),tt+=Pe.dim+Y}const rt=[];let Ge;for(const Pe of M){const Bt=Object.assign({},Pe);Ge&&Bt.pos===Ge.pos?(Ge.dim+=Bt.dim,Ge.slides=[...Ge.slides,...Bt.slides]):(Ge=Bt,Bt.index=rt.length,rt.push(Bt))}M=rt,Se()})();let ue=G();if(c){const R=p.getBoundingClientRect();ue+=R.left,ue+=R.right-R.width}if(g=Q("infinite")&&M.length>1&&ne()-(ue+(((P=S[0])===null||P===void 0?void 0:P.dim)||0))>-.5,_=((I=M[0])===null||I===void 0?void 0:I.pos)||0,C=((Z=M[M.length-1])===null||Z===void 0?void 0:Z.pos)||0,d===0)(function(){var R;s=void 0,v=Q("initialPage");const Y=Q("initialSlide")||void 0;Y!==void 0&&(v=ye.getPageIndex(Y)||0),v=Te(0,v,M.length-1),E=((R=M[v])===null||R===void 0?void 0:R.pos)||0,D=E})();else{const R=r!=null&&r.isRunning()?r.getEndValues().pos:E;(R<_||R>C)&&(v=Te(0,v,M.length-1),D=M[v||0].pos||0)}L("refresh")}function de(T){if(!T||!jt(T))return;const P=parseInt(T.getAttribute("index")||"-1");let I="";for(const he of Array.from(T.classList)){const te=he.match(/^f-(\w+)(Out|In)$/);te&&te[1]&&(I=te[1]+"")}if(!T||!I)return;const Z=[`f-${I}Out`,`f-${I}In`,"to-prev","to-next","from-prev","from-next"];T.removeEventListener("animationend",ke),mt(T,Z.join(" ")),B.delete(P)}function we(){if(!p)return;const T=B.size;for(const P of S)de(P.el);B.clear(),T&&ce()}function ke(T){T.animationName.substring(0,2)==="f-"&&(de(T.target),B.size||(mt(m,"in-transition"),!x&&Math.abs(ye.getPosition(!0)-D)<.5&&(x=!0,L("settle"))),ce())}function pe(T){if(T.defaultPrevented)return;const P=T.composedPath()[0];if(P.closest("[data-carousel-go-prev]"))return It(T),void ye.prev();if(P.closest("[data-carousel-go-next]"))return It(T),void ye.next();const I=P.closest("[data-carousel-go-to]");if(I)return It(T),void ye.goTo(parseFloat(I.dataset.carouselGoTo||"")||0);if(P.closest("[data-carousel-download]")){It(T);const Z=M[v].slides[0];if(Z.downloadSrc||Z.type==="image"&&Z.src){const he=Z.downloadFilename,te=document.createElement("a"),oe=Z.downloadSrc||Z.src||"";te.href=oe,te.target="_blank",te.download=he||oe,te.click()}}else L("click",T)}function ge(T){var P;const I=T.el;I&&((P=I.querySelector(".f-spinner"))===null||P===void 0||P.remove(),mt(I,"is-loading"))}function O(T){var P;const I=T.el;I&&((P=I.querySelector(".f-html.is-error"))===null||P===void 0||P.remove(),mt(I,"has-error"))}function K(T){var P;T||(T=(P=M[v])===null||P===void 0?void 0:P.slides[0]);const I=T==null?void 0:T.el;if(!I)return;let Z=Q("formatCaption",T);Z===void 0&&(Z=T.caption),Z=Z||"";const he=Q("captionEl");if(he&&he instanceof HTMLElement){if(T.index!==v)return;if(je(Z)&&(he.innerHTML=fe(Z+"")),Z instanceof HTMLElement){if(Z.parentElement===he)return;he.innerHTML="",Z.parentElement&&(Z=Z.cloneNode(!0)),he.append(Z)}return}if(!Z)return;let te=T.captionEl||I.querySelector(".f-caption");!te&&Z instanceof HTMLElement&&Z.classList.contains("f-caption")&&(te=Z),te||(te=document.createElement("div"),De(te,"f-caption"),je(Z)?te.innerHTML=fe(Z+""):Z instanceof HTMLElement&&(Z.parentElement&&(Z=Z.cloneNode(!0)),te.append(Z)));const oe=`f-caption-${Tr}_${T.index}`;te.setAttribute("id",oe),te.dataset.selectable="true",De(I,"has-caption"),I.setAttribute("aria-labelledby",oe),T.captionEl=te,I.insertAdjacentElement("beforeend",te)}function ae(T,P){let{transition:I,tween:Z}=Object.assign({transition:u.transition,tween:u.tween},P||{});if(!m||!r)return;const he=M.length;if(!he||function(oe,ue){var R,Y,le,xe;if(!(m&&r&&ue&&je(ue)&&ue!=="tween")||((R=M[v])===null||R===void 0?void 0:R.slides.length)>1)return!1;const ve=M.length;let Me=oe>v?1:-1;oe=g?(oe%ve+ve)%ve:Te(0,oe,ve-1),y&&(Me*=-1);const Ae=(Y=M[v])===null||Y===void 0?void 0:Y.slides[0],Ne=Ae==null?void 0:Ae.index,Re=(le=M[oe])===null||le===void 0?void 0:le.slides[0],tt=Re==null?void 0:Re.index,rt=(xe=M[oe])===null||xe===void 0?void 0:xe.pos;if(tt===void 0||Ne===void 0||Ne===tt||E===rt||Math.abs(G()-((Re==null?void 0:Re.dim)||0))>1)return!1;x=!1,r.pause(),we(),De(m,"in-transition"),E=D=rt;const Ge=z(Ae),Pe=z(Re);return be(),Ge&&(B.add(Ne),Ge.style.transform="",Ge.addEventListener("animationend",ke),mt(Ge,u.classes.isSelected),De(Ge,`f-${ue}Out to-${Me>0?"next":"prev"}`)),Pe&&(B.add(tt),Pe.style.transform="",Pe.addEventListener("animationend",ke),De(Pe,u.classes.isSelected),De(Pe,`f-${ue}In from-${Me>0?"prev":"next"}`)),ce(),!0}(T,I))return;T=g?(T%he+he)%he:Te(0,T,he-1),D=M[T||0].pos||0;const te=r.isRunning()?r.getEndValues().pos:E;if(Math.abs(D-te)<1)return E=D,v!==T&&(K(),Se(),Fe(),s=v,v=T,L("change",v,s)),ce(),void(x||(x=!0,L("settle")));if(r.pause(),we(),g){const oe=ne(),ue=Math.floor((te-M[0].pos)/oe),R=D+ue*oe;D=[R+oe,R,R-oe].reduce(function(Y,le){return Math.abs(le-te)<Math.abs(Y-te)?le:Y})}I!==!1&&Ze(Z)?r.spring(Z).from({pos:E}).to({pos:D}).start():(E=D,be(),ce(),x||(x=!0,L("settle")))}function ce(){var T;if(!m||!p)return;const P=M[v];A=J();const I=new Set;let Z;const he=[];for(const te of S){if(te.isVirtual&&!B.has(te.index)&&A.indexOf(te)<0)continue;let oe=z(te);if(!oe)continue;he.push(te);const ue=((T=P==null?void 0:P.slides)===null||T===void 0?void 0:T.indexOf(te))>-1;if(ue&&I.add(oe),!B.has(te.index)){const R=te.pos?Math.round(1e4*te.pos)/1e4:0,Y=b?0:y?-1*R:R,le=b?R:0,xe=Va(Y,0,te.dim,0,100),ve=Va(le,0,te.dim,0,100),Me=u.setTransform||void 0;Me instanceof Function?Me(ye,te,{x:Y,y:le,xPercent:xe,yPercent:ve}):oe.style.transform=Y||le?`translate3d(${xe}%, ${ve}%,0)`:""}if(Q("adaptiveHeight")&&ue){const R=(oe.firstElementChild||oe).getBoundingClientRect().height;Z=Z==null?R:Math.max(Z,R)}}[...Ba(p,`.${u.classes.slide}`)].forEach(te=>{const oe=parseInt(te.getAttribute("index")||"-1"),ue=N[oe];ue||te.remove(),vt(te,u.classes.isSelected,I.has(te)),ue.isVirtual&&!B.has(ue.index)&&A.indexOf(ue)<0&&X(ue)}),p&&Z&&(p.style.height=`${Z}px`),L("render",he)}function Ee(){var T;m==null||m.removeEventListener("click",pe),we(),document.removeEventListener("mousemove",re),i==null||i.disconnect(),i=void 0;for(const P of N)P.el&&jt(P.el)&&(P.state=void 0,ge(P),O(P),X(P),P.isVirtual?((T=P.el)===null||T===void 0||T.remove(),P.el=void 0):(P.el.style.transform="",p==null||p.appendChild(P.el)));for(const P of Object.values(h))P==null||P.destroy();h={},o==null||o.destroy(),o=void 0,r==null||r.destroy(),r=void 0;for(const P of Object.values(u.classes||{}))mt(m,P);mt(p,"is-draggable")}const ye={add:function(T,P){const I=E,Z=D,he=V(T,P);for(const te of he)L("addSlide",te);return se(k),ee(),r&&Z!==D&&r.spring({clamp:!0,mass:1,tension:300,friction:25,restDelta:1,restSpeed:1}).from({pos:I}).to({pos:D}).start(),ce(),ye},canGoPrev:function(){return g||v>0},canGoNext:function(){return g||v<M.length-1},destroy:function(){return L("destroy"),window.removeEventListener("resize",j),Ee(),F.clear(),m=null,M=[],N=[],u=Object.assign({},Wt),h={},S=[],l="",k="*",d=2,ye},emit:L,filter:function(T="*"){return se(T),ee(),ce(),L("filter",T),ye},getContainer:function(){return m},getGapDim:Ve,getGestures:function(){return o},getLastMouseMove:function(){return Ar},getOptions:function(){return u},getPage:function(){return M[v]},getPageIndex:function(T){if(T!==void 0){for(const P of M||[])for(const I of P.slides)if(I.index===T)return P.index;return-1}return v},getPageProgress:function(T,P){T===void 0&&(T=v);const I=M[T];if(!I)return T>v?-1:1;const Z=ne(),he=Ve();let te=I.pos,oe=ye.getPosition();if(g&&P!==!0){const ue=Math.floor((oe-M[0].pos)/Z);oe-=ue*Z,te=[te+Z,te,te-Z].reduce(function(R,Y){return Math.abs(Y-oe)<Math.abs(R-oe)?Y:R})}return(oe-te)/(I.dim+he)},getPageVisibility:function(T){T===void 0&&(T=v);const P=M[T];if(!P)return T>v?-1:1;const I=ye.getPosition(),Z=G();let he=P.pos;if(g){const te=ye.getPosition(),oe=ne(),ue=he+Math.floor((te-M[0].pos)/oe)*oe;he=[ue+oe,ue,ue-oe].reduce(function(R,Y){return Math.abs(Y-te)<Math.abs(R-te)?Y:R})}return he>I&&he+P.dim<I+Z?1:he<I?(he+P.dim-I)/P.dim:he+P.dim>I+Z?(I+Z-he)/P.dim:0},getPages:function(){return M},getPlugins:function(){return h},getPosition:function(T){var P;let I=E;if(g&&T!==!0){const Z=ne();I-=Math.floor((E-((P=M[0])===null||P===void 0?void 0:P.pos)||0)/Z)*Z}return I},getSlides:function(){return N},getState:function(){return d},getTotalSlideDim:ne,getTween:function(){return r},getViewport:function(){return p},getViewportDim:G,getVisibleSlides:function(T){return T===void 0?A:J(T)},goTo:ae,hasNavigated:function(){return s!==void 0},hideError:O,hideLoading:ge,init:function(){if(!t||!jt(t))throw new Error("No Element found");return d!==0&&(Ee(),d=0),m=t,f=n,window.removeEventListener("resize",j),f.breakpoints&&window.addEventListener("resize",j),j(),ye},isInfinite:function(){return g},isInTransition:function(){return B.size>0},isRTL:function(){return y},isSettled:function(){return x},localize:function(T,P=[]){return fe(T,P)},next:function(T={}){return ae(v+1,T),ye},off:function(T,P){for(const I of T instanceof Array?T:[T])F.has(I)&&F.set(I,F.get(I).filter(Z=>Z!==P));return ye},on:function(T,P){for(const I of T instanceof Array?T:[T])F.set(I,[...F.get(I)||[],P]);return ye},prev:function(T={}){return ae(v-1,T),ye},remove:function(T){T===void 0&&(T=N.length-1);const P=N[T];return P&&(L("removeSlide",P),P.el&&(de(P.el),P.el.remove(),P.el=void 0),N.splice(T,1),se(k),ee(),ce()),ye},setPosition:function(T){E=T,be(),ce()},showError:function(T,P){ge(T),O(T);const I=T.el;if(I){const Z=document.createElement("div");De(Z,"f-html"),De(Z,"is-error"),Z.innerHTML=fe(P||"<p>{{ERROR}}</p>"),T.htmlEl=Z,De(I,"has-html"),De(I,"has-error"),I.insertAdjacentElement("afterbegin",Z),L("contentReady",T)}return ye},showLoading:function(T){const P=T.el,I=P==null?void 0:P.querySelector(".f-spinner");if(!P||I)return ye;const Z=Q("spinnerTpl"),he=kt(Z);return he&&(De(he,"f-spinner"),De(P,"is-loading"),P.insertAdjacentElement("beforeend",he)),ye},version:"6.0.16"};return ye};_n.l10n={en_EN:Ma},_n.getDefaults=()=>Wt;/*! License details at fancyapps.com/license */const Dr=(t=!0,n="--f-scrollbar-compensate",a="--f-body-margin",o="hide-scrollbar")=>{const r=document,i=r.body,s=r.documentElement;if(t){if(i.classList.contains(o))return;let l=window.innerWidth-s.getBoundingClientRect().width;l<0&&(l=0),s.style.setProperty(n,`${l}px`);const d=parseFloat(window.getComputedStyle(i).marginRight);d&&i.style.setProperty(a,`${d}px`),i.classList.add(o)}else i.classList.remove(o),i.style.setProperty(a,""),r.documentElement.style.setProperty(n,"")};/*! License details at fancyapps.com/license */function Lr(){return!(typeof window>"u"||!window.document||!window.document.createElement)}/*! License details at fancyapps.com/license */const Ct=function(t="",n="",a=""){return t.split(n).join(a)};/*! License details at fancyapps.com/license */const Fr={tpl:t=>`<img class="f-panzoom__content"
|
|
1
|
+
(function(tt,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue"),require("pinia")):typeof define=="function"&&define.amd?define(["exports","vue","pinia"],e):(tt=typeof globalThis<"u"?globalThis:tt||self,e(tt["sm-click-library-ui"]={},tt.Vue,tt.Pinia))})(this,function(tt,e,Dt){"use strict";function Oi(t){return e.getCurrentScope()?(e.onScopeDispose(t),!0):!1}function ho(t){return typeof t=="function"?t():e.unref(t)}const po=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Ri=Object.prototype.toString,Hi=t=>Ri.call(t)==="[object Object]",Sn=()=>{},zi=ji();function ji(){var t,n;return po&&((t=window==null?void 0:window.navigator)==null?void 0:t.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((n=window==null?void 0:window.navigator)==null?void 0:n.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}function sn(t){var n;const a=ho(t);return(n=a==null?void 0:a.$el)!=null?n:a}const go=po?window:void 0;function ca(...t){let n,a,o,r;if(typeof t[0]=="string"||Array.isArray(t[0])?([a,o,r]=t,n=go):[n,a,o,r]=t,!n)return Sn;Array.isArray(a)||(a=[a]),Array.isArray(o)||(o=[o]);const i=[],s=()=>{i.forEach(c=>c()),i.length=0},l=(c,h,m,p)=>(c.addEventListener(h,m,p),()=>c.removeEventListener(h,m,p)),d=e.watch(()=>[sn(n),ho(r)],([c,h])=>{if(s(),!c)return;const m=Hi(h)?{...h}:h;i.push(...a.flatMap(p=>o.map(f=>l(c,p,f,m))))},{immediate:!0,flush:"post"}),u=()=>{d(),s()};return Oi(u),u}let yo=!1;function Bn(t,n,a={}){const{window:o=go,ignore:r=[],capture:i=!0,detectIframe:s=!1}=a;if(!o)return Sn;zi&&!yo&&(yo=!0,Array.from(o.document.body.children).forEach(m=>m.addEventListener("click",Sn)),o.document.documentElement.addEventListener("click",Sn));let l=!0;const d=m=>r.some(p=>{if(typeof p=="string")return Array.from(o.document.querySelectorAll(p)).some(f=>f===m.target||m.composedPath().includes(f));{const f=sn(p);return f&&(m.target===f||m.composedPath().includes(f))}}),c=[ca(o,"click",m=>{const p=sn(t);if(!(!p||p===m.target||m.composedPath().includes(p))){if(m.detail===0&&(l=!d(m)),!l){l=!0;return}n(m)}},{passive:!0,capture:i}),ca(o,"pointerdown",m=>{const p=sn(t);l=!d(m)&&!!(p&&!m.composedPath().includes(p))},{passive:!0}),s&&ca(o,"blur",m=>{setTimeout(()=>{var p;const f=sn(t);((p=o.document.activeElement)==null?void 0:p.tagName)==="IFRAME"&&!(f!=null&&f.contains(o.document.activeElement))&&n(m)},0)})].filter(Boolean);return()=>c.forEach(m=>m())}const we=(t,n)=>{const a=t.__vccOpts||t;for(const[o,r]of n)a[o]=r;return a},Gi={class:"line-clamp-2 uppercase text-xs truncate text-white"},Ii={key:0,class:"select_widget_lib"},ko=we({__name:"primary_select",props:{config:{type:Object,default:{title:"select_primary"}}},emits:["closeSelect"],setup(t,{emit:n}){const a=t,o=e.ref(!1),r=e.ref(null);e.computed(()=>a.selectConfig.some(l=>l.freeSlot));const i=()=>{o.value=!o.value};return Bn(r,()=>{o.value&&(o.value=!1)}),(l,d)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"target",ref:r,class:"relative w-full"},[e.createElementVNode("button",{onClick:i,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.createElementVNode("div",null,[e.createElementVNode("p",Gi,e.toDisplayString(t.config.title),1)]),e.createElementVNode("div",null,[(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass([o.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"},[...d[0]||(d[0]=[e.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))])]),o.value?(e.openBlock(),e.createElementBlock("section",Ii,[e.createElementVNode("div",null,[e.renderSlot(l.$slots,"free-slot",{},void 0,!0)])])):e.createCommentVNode("",!0)],512))}},[["__scopeId","data-v-970e6830"]]),qi={key:0,class:"modal_head"},Wi={class:"modal_responsive"},Ui={class:"flex min-h-full items-center justify-center text-center sm:p-0"},Zi={class:"modal_tittle text-current bg-base-300 border-base-100"},Yi={class:"flex items-center gap-3"},Xi=["innerHTML"],Ki={class:"text-xl font-semibold flex items-center gap-2"},Qi={class:"bg-base-200"},Ji={class:"text-center"},es={class:"modal_end_button border-base-100 bg-base-300"},xo=we({__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(t,{emit:n}){const a=t,o=n,r=()=>{o("update:isOpen",!a.isOpen),a.isOpen&&o("close")};return(i,s)=>(e.openBlock(),e.createBlock(e.Transition,{"leave-active-class":"transition-opacity duration-200 ease-in","leave-from-class":"opacity-100","leave-to-class":"opacity-0"},{default:e.withCtx(()=>{var l,d;return[t.isOpen?(e.openBlock(),e.createElementBlock("div",qi,[s[2]||(s[2]=e.createElementVNode("div",{class:"modal-overlay absolute h-full w-full bg-gray-600 opacity-50"},null,-1)),e.createElementVNode("div",Wi,[e.createElementVNode("div",Ui,[e.createElementVNode("div",{class:e.normalizeClass(["z-50 w-full shadow rounded-2xl shadow-black",t.size])},[e.createElementVNode("div",Zi,[e.createElementVNode("section",Yi,[e.createElementVNode("div",{innerHTML:(l=t.header)==null?void 0:l.svg},null,8,Xi),e.createElementVNode("div",null,[e.createElementVNode("h3",Ki,[e.createElementVNode("p",null,e.toDisplayString((d=t.header)==null?void 0:d.title),1)]),e.createElementVNode("div",null,[e.renderSlot(i.$slots,"header",{},void 0,!0)])])]),e.createElementVNode("button",{onClick:s[0]||(s[0]=u=>r()),class:"modal_close_button bg-base-200/40"},[...s[1]||(s[1]=[e.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.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.createElementVNode("div",Qi,[e.createElementVNode("div",Ji,[e.renderSlot(i.$slots,"body",{},void 0,!0)])]),e.createElementVNode("div",es,[e.renderSlot(i.$slots,"footer",{},void 0,!0)])],2)])])])):e.createCommentVNode("",!0)]}),_:3}))}},[["__scopeId","data-v-2db3c09c"]]),ts={class:"simple_card_header"},ns={key:0,class:"simple_card_icon",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 22 22",fill:"none"},as={key:1,class:"simple_card_icon",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 22 22",fill:"none"},os={key:2,class:"simple_card_icon",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 22 22",fill:"none"},rs={key:3,class:"simple_card_icon","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 23 23"},is={class:"simple_card_title"},ss={class:"simple_card_descripiton"},bo={__name:"simple_card",props:{content:{type:Object,default:{title:"Title",description:"Coloque aqui a descrição"}},typeCard:{type:String,default:"default"}},setup(t){const n=t,a=e.computed(()=>({simple_card_success:n.typeCard==="success",simple_card_info:n.typeCard==="info",simple_card_alert:n.typeCard==="alert",simple_card_error:n.typeCard==="error"}));return(o,r)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([a.value,"simple_card"])},[e.createElementVNode("div",ts,[t.typeCard==="success"?(e.openBlock(),e.createElementBlock("svg",ns,[...r[0]||(r[0]=[e.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.createCommentVNode("",!0),t.typeCard==="info"?(e.openBlock(),e.createElementBlock("svg",as,[...r[1]||(r[1]=[e.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.createCommentVNode("",!0),t.typeCard==="alert"?(e.openBlock(),e.createElementBlock("svg",os,[...r[2]||(r[2]=[e.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.createCommentVNode("",!0),t.typeCard==="error"?(e.openBlock(),e.createElementBlock("svg",rs,[...r[3]||(r[3]=[e.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.createCommentVNode("",!0),e.createElementVNode("p",is,e.toDisplayString(t.content.title),1)]),e.createElementVNode("section",ss,[e.createElementVNode("p",null,e.toDisplayString(t.content.description),1)])],2))}};function wo(t,n){return function(){return t.apply(n,arguments)}}const{toString:ls}=Object.prototype,{getPrototypeOf:da}=Object,{iterator:Vn,toStringTag:Eo}=Symbol,Mn=(t=>n=>{const a=ls.call(n);return t[a]||(t[a]=a.slice(8,-1).toLowerCase())})(Object.create(null)),ut=t=>(t=t.toLowerCase(),n=>Mn(n)===t),Nn=t=>n=>typeof n===t,{isArray:It}=Array,qt=Nn("undefined");function ln(t){return t!==null&&!qt(t)&&t.constructor!==null&&!qt(t.constructor)&&nt(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const vo=ut("ArrayBuffer");function cs(t){let n;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?n=ArrayBuffer.isView(t):n=t&&t.buffer&&vo(t.buffer),n}const ds=Nn("string"),nt=Nn("function"),Co=Nn("number"),cn=t=>t!==null&&typeof t=="object",us=t=>t===!0||t===!1,An=t=>{if(Mn(t)!=="object")return!1;const n=da(t);return(n===null||n===Object.prototype||Object.getPrototypeOf(n)===null)&&!(Eo in t)&&!(Vn in t)},fs=t=>{if(!cn(t)||ln(t))return!1;try{return Object.keys(t).length===0&&Object.getPrototypeOf(t)===Object.prototype}catch{return!1}},ms=ut("Date"),hs=ut("File"),ps=ut("Blob"),gs=ut("FileList"),ys=t=>cn(t)&&nt(t.pipe),ks=t=>{let n;return t&&(typeof FormData=="function"&&t instanceof FormData||nt(t.append)&&((n=Mn(t))==="formdata"||n==="object"&&nt(t.toString)&&t.toString()==="[object FormData]"))},xs=ut("URLSearchParams"),[bs,ws,Es,vs]=["ReadableStream","Request","Response","Headers"].map(ut),Cs=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function dn(t,n,{allOwnKeys:a=!1}={}){if(t===null||typeof t>"u")return;let o,r;if(typeof t!="object"&&(t=[t]),It(t))for(o=0,r=t.length;o<r;o++)n.call(null,t[o],o,t);else{if(ln(t))return;const i=a?Object.getOwnPropertyNames(t):Object.keys(t),s=i.length;let l;for(o=0;o<s;o++)l=i[o],n.call(null,t[l],l,t)}}function So(t,n){if(ln(t))return null;n=n.toLowerCase();const a=Object.keys(t);let o=a.length,r;for(;o-- >0;)if(r=a[o],n===r.toLowerCase())return r;return null}const Lt=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Bo=t=>!qt(t)&&t!==Lt;function ua(){const{caseless:t,skipUndefined:n}=Bo(this)&&this||{},a={},o=(r,i)=>{const s=t&&So(a,i)||i;An(a[s])&&An(r)?a[s]=ua(a[s],r):An(r)?a[s]=ua({},r):It(r)?a[s]=r.slice():(!n||!qt(r))&&(a[s]=r)};for(let r=0,i=arguments.length;r<i;r++)arguments[r]&&dn(arguments[r],o);return a}const Ss=(t,n,a,{allOwnKeys:o}={})=>(dn(n,(r,i)=>{a&&nt(r)?t[i]=wo(r,a):t[i]=r},{allOwnKeys:o}),t),Bs=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),Vs=(t,n,a,o)=>{t.prototype=Object.create(n.prototype,o),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:n.prototype}),a&&Object.assign(t.prototype,a)},Ms=(t,n,a,o)=>{let r,i,s;const l={};if(n=n||{},t==null)return n;do{for(r=Object.getOwnPropertyNames(t),i=r.length;i-- >0;)s=r[i],(!o||o(s,t,n))&&!l[s]&&(n[s]=t[s],l[s]=!0);t=a!==!1&&da(t)}while(t&&(!a||a(t,n))&&t!==Object.prototype);return n},Ns=(t,n,a)=>{t=String(t),(a===void 0||a>t.length)&&(a=t.length),a-=n.length;const o=t.indexOf(n,a);return o!==-1&&o===a},As=t=>{if(!t)return null;if(It(t))return t;let n=t.length;if(!Co(n))return null;const a=new Array(n);for(;n-- >0;)a[n]=t[n];return a},Ts=(t=>n=>t&&n instanceof t)(typeof Uint8Array<"u"&&da(Uint8Array)),Ds=(t,n)=>{const o=(t&&t[Vn]).call(t);let r;for(;(r=o.next())&&!r.done;){const i=r.value;n.call(t,i[0],i[1])}},Ls=(t,n)=>{let a;const o=[];for(;(a=t.exec(n))!==null;)o.push(a);return o},Fs=ut("HTMLFormElement"),$s=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(a,o,r){return o.toUpperCase()+r}),Vo=(({hasOwnProperty:t})=>(n,a)=>t.call(n,a))(Object.prototype),Ps=ut("RegExp"),Mo=(t,n)=>{const a=Object.getOwnPropertyDescriptors(t),o={};dn(a,(r,i)=>{let s;(s=n(r,i,t))!==!1&&(o[i]=s||r)}),Object.defineProperties(t,o)},_s=t=>{Mo(t,(n,a)=>{if(nt(t)&&["arguments","caller","callee"].indexOf(a)!==-1)return!1;const o=t[a];if(nt(o)){if(n.enumerable=!1,"writable"in n){n.writable=!1;return}n.set||(n.set=()=>{throw Error("Can not rewrite read-only method '"+a+"'")})}})},Os=(t,n)=>{const a={},o=r=>{r.forEach(i=>{a[i]=!0})};return It(t)?o(t):o(String(t).split(n)),a},Rs=()=>{},Hs=(t,n)=>t!=null&&Number.isFinite(t=+t)?t:n;function zs(t){return!!(t&&nt(t.append)&&t[Eo]==="FormData"&&t[Vn])}const js=t=>{const n=new Array(10),a=(o,r)=>{if(cn(o)){if(n.indexOf(o)>=0)return;if(ln(o))return o;if(!("toJSON"in o)){n[r]=o;const i=It(o)?[]:{};return dn(o,(s,l)=>{const d=a(s,r+1);!qt(d)&&(i[l]=d)}),n[r]=void 0,i}}return o};return a(t,0)},Gs=ut("AsyncFunction"),Is=t=>t&&(cn(t)||nt(t))&&nt(t.then)&&nt(t.catch),No=((t,n)=>t?setImmediate:n?((a,o)=>(Lt.addEventListener("message",({source:r,data:i})=>{r===Lt&&i===a&&o.length&&o.shift()()},!1),r=>{o.push(r),Lt.postMessage(a,"*")}))(`axios@${Math.random()}`,[]):a=>setTimeout(a))(typeof setImmediate=="function",nt(Lt.postMessage)),qs=typeof queueMicrotask<"u"?queueMicrotask.bind(Lt):typeof process<"u"&&process.nextTick||No,U={isArray:It,isArrayBuffer:vo,isBuffer:ln,isFormData:ks,isArrayBufferView:cs,isString:ds,isNumber:Co,isBoolean:us,isObject:cn,isPlainObject:An,isEmptyObject:fs,isReadableStream:bs,isRequest:ws,isResponse:Es,isHeaders:vs,isUndefined:qt,isDate:ms,isFile:hs,isBlob:ps,isRegExp:Ps,isFunction:nt,isStream:ys,isURLSearchParams:xs,isTypedArray:Ts,isFileList:gs,forEach:dn,merge:ua,extend:Ss,trim:Cs,stripBOM:Bs,inherits:Vs,toFlatObject:Ms,kindOf:Mn,kindOfTest:ut,endsWith:Ns,toArray:As,forEachEntry:Ds,matchAll:Ls,isHTMLForm:Fs,hasOwnProperty:Vo,hasOwnProp:Vo,reduceDescriptors:Mo,freezeMethods:_s,toObjectSet:Os,toCamelCase:$s,noop:Rs,toFiniteNumber:Hs,findKey:So,global:Lt,isContextDefined:Bo,isSpecCompliantForm:zs,toJSONObject:js,isAsyncFn:Gs,isThenable:Is,setImmediate:No,asap:qs,isIterable:t=>t!=null&&nt(t[Vn])};function Se(t,n,a,o,r){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",n&&(this.code=n),a&&(this.config=a),o&&(this.request=o),r&&(this.response=r,this.status=r.status?r.status:null)}U.inherits(Se,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:U.toJSONObject(this.config),code:this.code,status:this.status}}});const Ao=Se.prototype,To={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(t=>{To[t]={value:t}}),Object.defineProperties(Se,To),Object.defineProperty(Ao,"isAxiosError",{value:!0}),Se.from=(t,n,a,o,r,i)=>{const s=Object.create(Ao);U.toFlatObject(t,s,function(c){return c!==Error.prototype},u=>u!=="isAxiosError");const l=t&&t.message?t.message:"Error",d=n==null&&t?t.code:n;return Se.call(s,l,d,a,o,r),t&&s.cause==null&&Object.defineProperty(s,"cause",{value:t,configurable:!0}),s.name=t&&t.name||"Error",i&&Object.assign(s,i),s};const Ws=null;function fa(t){return U.isPlainObject(t)||U.isArray(t)}function Do(t){return U.endsWith(t,"[]")?t.slice(0,-2):t}function Lo(t,n,a){return t?t.concat(n).map(function(r,i){return r=Do(r),!a&&i?"["+r+"]":r}).join(a?".":""):n}function Us(t){return U.isArray(t)&&!t.some(fa)}const Zs=U.toFlatObject(U,{},null,function(n){return/^is[A-Z]/.test(n)});function Tn(t,n,a){if(!U.isObject(t))throw new TypeError("target must be an object");n=n||new FormData,a=U.toFlatObject(a,{metaTokens:!0,dots:!1,indexes:!1},!1,function(g,y){return!U.isUndefined(y[g])});const o=a.metaTokens,r=a.visitor||c,i=a.dots,s=a.indexes,d=(a.Blob||typeof Blob<"u"&&Blob)&&U.isSpecCompliantForm(n);if(!U.isFunction(r))throw new TypeError("visitor must be a function");function u(f){if(f===null)return"";if(U.isDate(f))return f.toISOString();if(U.isBoolean(f))return f.toString();if(!d&&U.isBlob(f))throw new Se("Blob is not supported. Use a Buffer instead.");return U.isArrayBuffer(f)||U.isTypedArray(f)?d&&typeof Blob=="function"?new Blob([f]):Buffer.from(f):f}function c(f,g,y){let k=f;if(f&&!y&&typeof f=="object"){if(U.endsWith(g,"{}"))g=o?g:g.slice(0,-2),f=JSON.stringify(f);else if(U.isArray(f)&&Us(f)||(U.isFileList(f)||U.endsWith(g,"[]"))&&(k=U.toArray(f)))return g=Do(g),k.forEach(function(C,b){!(U.isUndefined(C)||C===null)&&n.append(s===!0?Lo([g],b,i):s===null?g:g+"[]",u(C))}),!1}return fa(f)?!0:(n.append(Lo(y,g,i),u(f)),!1)}const h=[],m=Object.assign(Zs,{defaultVisitor:c,convertValue:u,isVisitable:fa});function p(f,g){if(!U.isUndefined(f)){if(h.indexOf(f)!==-1)throw Error("Circular reference detected in "+g.join("."));h.push(f),U.forEach(f,function(k,E){(!(U.isUndefined(k)||k===null)&&r.call(n,k,U.isString(E)?E.trim():E,g,m))===!0&&p(k,g?g.concat(E):[E])}),h.pop()}}if(!U.isObject(t))throw new TypeError("data must be an object");return p(t),n}function Fo(t){const n={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(o){return n[o]})}function ma(t,n){this._pairs=[],t&&Tn(t,this,n)}const $o=ma.prototype;$o.append=function(n,a){this._pairs.push([n,a])},$o.toString=function(n){const a=n?function(o){return n.call(this,o,Fo)}:Fo;return this._pairs.map(function(r){return a(r[0])+"="+a(r[1])},"").join("&")};function Ys(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Po(t,n,a){if(!n)return t;const o=a&&a.encode||Ys;U.isFunction(a)&&(a={serialize:a});const r=a&&a.serialize;let i;if(r?i=r(n,a):i=U.isURLSearchParams(n)?n.toString():new ma(n,a).toString(o),i){const s=t.indexOf("#");s!==-1&&(t=t.slice(0,s)),t+=(t.indexOf("?")===-1?"?":"&")+i}return t}class _o{constructor(){this.handlers=[]}use(n,a,o){return this.handlers.push({fulfilled:n,rejected:a,synchronous:o?o.synchronous:!1,runWhen:o?o.runWhen:null}),this.handlers.length-1}eject(n){this.handlers[n]&&(this.handlers[n]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(n){U.forEach(this.handlers,function(o){o!==null&&n(o)})}}const Oo={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Xs={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:ma,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},ha=typeof window<"u"&&typeof document<"u",pa=typeof navigator=="object"&&navigator||void 0,Ks=ha&&(!pa||["ReactNative","NativeScript","NS"].indexOf(pa.product)<0),Qs=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Js=ha&&window.location.href||"http://localhost",Ue={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:ha,hasStandardBrowserEnv:Ks,hasStandardBrowserWebWorkerEnv:Qs,navigator:pa,origin:Js},Symbol.toStringTag,{value:"Module"})),...Xs};function e0(t,n){return Tn(t,new Ue.classes.URLSearchParams,{visitor:function(a,o,r,i){return Ue.isNode&&U.isBuffer(a)?(this.append(o,a.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)},...n})}function t0(t){return U.matchAll(/\w+|\[(\w*)]/g,t).map(n=>n[0]==="[]"?"":n[1]||n[0])}function n0(t){const n={},a=Object.keys(t);let o;const r=a.length;let i;for(o=0;o<r;o++)i=a[o],n[i]=t[i];return n}function Ro(t){function n(a,o,r,i){let s=a[i++];if(s==="__proto__")return!0;const l=Number.isFinite(+s),d=i>=a.length;return s=!s&&U.isArray(r)?r.length:s,d?(U.hasOwnProp(r,s)?r[s]=[r[s],o]:r[s]=o,!l):((!r[s]||!U.isObject(r[s]))&&(r[s]=[]),n(a,o,r[s],i)&&U.isArray(r[s])&&(r[s]=n0(r[s])),!l)}if(U.isFormData(t)&&U.isFunction(t.entries)){const a={};return U.forEachEntry(t,(o,r)=>{n(t0(o),r,a,0)}),a}return null}function a0(t,n,a){if(U.isString(t))try{return(n||JSON.parse)(t),U.trim(t)}catch(o){if(o.name!=="SyntaxError")throw o}return(a||JSON.stringify)(t)}const un={transitional:Oo,adapter:["xhr","http","fetch"],transformRequest:[function(n,a){const o=a.getContentType()||"",r=o.indexOf("application/json")>-1,i=U.isObject(n);if(i&&U.isHTMLForm(n)&&(n=new FormData(n)),U.isFormData(n))return r?JSON.stringify(Ro(n)):n;if(U.isArrayBuffer(n)||U.isBuffer(n)||U.isStream(n)||U.isFile(n)||U.isBlob(n)||U.isReadableStream(n))return n;if(U.isArrayBufferView(n))return n.buffer;if(U.isURLSearchParams(n))return a.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),n.toString();let l;if(i){if(o.indexOf("application/x-www-form-urlencoded")>-1)return e0(n,this.formSerializer).toString();if((l=U.isFileList(n))||o.indexOf("multipart/form-data")>-1){const d=this.env&&this.env.FormData;return Tn(l?{"files[]":n}:n,d&&new d,this.formSerializer)}}return i||r?(a.setContentType("application/json",!1),a0(n)):n}],transformResponse:[function(n){const a=this.transitional||un.transitional,o=a&&a.forcedJSONParsing,r=this.responseType==="json";if(U.isResponse(n)||U.isReadableStream(n))return n;if(n&&U.isString(n)&&(o&&!this.responseType||r)){const s=!(a&&a.silentJSONParsing)&&r;try{return JSON.parse(n,this.parseReviver)}catch(l){if(s)throw l.name==="SyntaxError"?Se.from(l,Se.ERR_BAD_RESPONSE,this,null,this.response):l}}return n}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ue.classes.FormData,Blob:Ue.classes.Blob},validateStatus:function(n){return n>=200&&n<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};U.forEach(["delete","get","head","post","put","patch"],t=>{un.headers[t]={}});const o0=U.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),r0=t=>{const n={};let a,o,r;return t&&t.split(`
|
|
2
|
+
`).forEach(function(s){r=s.indexOf(":"),a=s.substring(0,r).trim().toLowerCase(),o=s.substring(r+1).trim(),!(!a||n[a]&&o0[a])&&(a==="set-cookie"?n[a]?n[a].push(o):n[a]=[o]:n[a]=n[a]?n[a]+", "+o:o)}),n},Ho=Symbol("internals");function fn(t){return t&&String(t).trim().toLowerCase()}function Dn(t){return t===!1||t==null?t:U.isArray(t)?t.map(Dn):String(t)}function i0(t){const n=Object.create(null),a=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let o;for(;o=a.exec(t);)n[o[1]]=o[2];return n}const s0=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function ga(t,n,a,o,r){if(U.isFunction(o))return o.call(this,n,a);if(r&&(n=a),!!U.isString(n)){if(U.isString(o))return n.indexOf(o)!==-1;if(U.isRegExp(o))return o.test(n)}}function l0(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(n,a,o)=>a.toUpperCase()+o)}function c0(t,n){const a=U.toCamelCase(" "+n);["get","set","has"].forEach(o=>{Object.defineProperty(t,o+a,{value:function(r,i,s){return this[o].call(this,n,r,i,s)},configurable:!0})})}let at=class{constructor(n){n&&this.set(n)}set(n,a,o){const r=this;function i(l,d,u){const c=fn(d);if(!c)throw new Error("header name must be a non-empty string");const h=U.findKey(r,c);(!h||r[h]===void 0||u===!0||u===void 0&&r[h]!==!1)&&(r[h||d]=Dn(l))}const s=(l,d)=>U.forEach(l,(u,c)=>i(u,c,d));if(U.isPlainObject(n)||n instanceof this.constructor)s(n,a);else if(U.isString(n)&&(n=n.trim())&&!s0(n))s(r0(n),a);else if(U.isObject(n)&&U.isIterable(n)){let l={},d,u;for(const c of n){if(!U.isArray(c))throw TypeError("Object iterator must return a key-value pair");l[u=c[0]]=(d=l[u])?U.isArray(d)?[...d,c[1]]:[d,c[1]]:c[1]}s(l,a)}else n!=null&&i(a,n,o);return this}get(n,a){if(n=fn(n),n){const o=U.findKey(this,n);if(o){const r=this[o];if(!a)return r;if(a===!0)return i0(r);if(U.isFunction(a))return a.call(this,r,o);if(U.isRegExp(a))return a.exec(r);throw new TypeError("parser must be boolean|regexp|function")}}}has(n,a){if(n=fn(n),n){const o=U.findKey(this,n);return!!(o&&this[o]!==void 0&&(!a||ga(this,this[o],o,a)))}return!1}delete(n,a){const o=this;let r=!1;function i(s){if(s=fn(s),s){const l=U.findKey(o,s);l&&(!a||ga(o,o[l],l,a))&&(delete o[l],r=!0)}}return U.isArray(n)?n.forEach(i):i(n),r}clear(n){const a=Object.keys(this);let o=a.length,r=!1;for(;o--;){const i=a[o];(!n||ga(this,this[i],i,n,!0))&&(delete this[i],r=!0)}return r}normalize(n){const a=this,o={};return U.forEach(this,(r,i)=>{const s=U.findKey(o,i);if(s){a[s]=Dn(r),delete a[i];return}const l=n?l0(i):String(i).trim();l!==i&&delete a[i],a[l]=Dn(r),o[l]=!0}),this}concat(...n){return this.constructor.concat(this,...n)}toJSON(n){const a=Object.create(null);return U.forEach(this,(o,r)=>{o!=null&&o!==!1&&(a[r]=n&&U.isArray(o)?o.join(", "):o)}),a}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([n,a])=>n+": "+a).join(`
|
|
3
|
+
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(n){return n instanceof this?n:new this(n)}static concat(n,...a){const o=new this(n);return a.forEach(r=>o.set(r)),o}static accessor(n){const o=(this[Ho]=this[Ho]={accessors:{}}).accessors,r=this.prototype;function i(s){const l=fn(s);o[l]||(c0(r,s),o[l]=!0)}return U.isArray(n)?n.forEach(i):i(n),this}};at.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),U.reduceDescriptors(at.prototype,({value:t},n)=>{let a=n[0].toUpperCase()+n.slice(1);return{get:()=>t,set(o){this[a]=o}}}),U.freezeMethods(at);function ya(t,n){const a=this||un,o=n||a,r=at.from(o.headers);let i=o.data;return U.forEach(t,function(l){i=l.call(a,i,r.normalize(),n?n.status:void 0)}),r.normalize(),i}function zo(t){return!!(t&&t.__CANCEL__)}function Wt(t,n,a){Se.call(this,t??"canceled",Se.ERR_CANCELED,n,a),this.name="CanceledError"}U.inherits(Wt,Se,{__CANCEL__:!0});function jo(t,n,a){const o=a.config.validateStatus;!a.status||!o||o(a.status)?t(a):n(new Se("Request failed with status code "+a.status,[Se.ERR_BAD_REQUEST,Se.ERR_BAD_RESPONSE][Math.floor(a.status/100)-4],a.config,a.request,a))}function d0(t){const n=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return n&&n[1]||""}function u0(t,n){t=t||10;const a=new Array(t),o=new Array(t);let r=0,i=0,s;return n=n!==void 0?n:1e3,function(d){const u=Date.now(),c=o[i];s||(s=u),a[r]=d,o[r]=u;let h=i,m=0;for(;h!==r;)m+=a[h++],h=h%t;if(r=(r+1)%t,r===i&&(i=(i+1)%t),u-s<n)return;const p=c&&u-c;return p?Math.round(m*1e3/p):void 0}}function f0(t,n){let a=0,o=1e3/n,r,i;const s=(u,c=Date.now())=>{a=c,r=null,i&&(clearTimeout(i),i=null),t(...u)};return[(...u)=>{const c=Date.now(),h=c-a;h>=o?s(u,c):(r=u,i||(i=setTimeout(()=>{i=null,s(r)},o-h)))},()=>r&&s(r)]}const Ln=(t,n,a=3)=>{let o=0;const r=u0(50,250);return f0(i=>{const s=i.loaded,l=i.lengthComputable?i.total:void 0,d=s-o,u=r(d),c=s<=l;o=s;const h={loaded:s,total:l,progress:l?s/l:void 0,bytes:d,rate:u||void 0,estimated:u&&l&&c?(l-s)/u:void 0,event:i,lengthComputable:l!=null,[n?"download":"upload"]:!0};t(h)},a)},Go=(t,n)=>{const a=t!=null;return[o=>n[0]({lengthComputable:a,total:t,loaded:o}),n[1]]},Io=t=>(...n)=>U.asap(()=>t(...n)),m0=Ue.hasStandardBrowserEnv?((t,n)=>a=>(a=new URL(a,Ue.origin),t.protocol===a.protocol&&t.host===a.host&&(n||t.port===a.port)))(new URL(Ue.origin),Ue.navigator&&/(msie|trident)/i.test(Ue.navigator.userAgent)):()=>!0,h0=Ue.hasStandardBrowserEnv?{write(t,n,a,o,r,i,s){if(typeof document>"u")return;const l=[`${t}=${encodeURIComponent(n)}`];U.isNumber(a)&&l.push(`expires=${new Date(a).toUTCString()}`),U.isString(o)&&l.push(`path=${o}`),U.isString(r)&&l.push(`domain=${r}`),i===!0&&l.push("secure"),U.isString(s)&&l.push(`SameSite=${s}`),document.cookie=l.join("; ")},read(t){if(typeof document>"u")return null;const n=document.cookie.match(new RegExp("(?:^|; )"+t+"=([^;]*)"));return n?decodeURIComponent(n[1]):null},remove(t){this.write(t,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function p0(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function g0(t,n){return n?t.replace(/\/?\/$/,"")+"/"+n.replace(/^\/+/,""):t}function qo(t,n,a){let o=!p0(n);return t&&(o||a==!1)?g0(t,n):n}const Wo=t=>t instanceof at?{...t}:t;function Ft(t,n){n=n||{};const a={};function o(u,c,h,m){return U.isPlainObject(u)&&U.isPlainObject(c)?U.merge.call({caseless:m},u,c):U.isPlainObject(c)?U.merge({},c):U.isArray(c)?c.slice():c}function r(u,c,h,m){if(U.isUndefined(c)){if(!U.isUndefined(u))return o(void 0,u,h,m)}else return o(u,c,h,m)}function i(u,c){if(!U.isUndefined(c))return o(void 0,c)}function s(u,c){if(U.isUndefined(c)){if(!U.isUndefined(u))return o(void 0,u)}else return o(void 0,c)}function l(u,c,h){if(h in n)return o(u,c);if(h in t)return o(void 0,u)}const d={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:l,headers:(u,c,h)=>r(Wo(u),Wo(c),h,!0)};return U.forEach(Object.keys({...t,...n}),function(c){const h=d[c]||r,m=h(t[c],n[c],c);U.isUndefined(m)&&h!==l||(a[c]=m)}),a}const Uo=t=>{const n=Ft({},t);let{data:a,withXSRFToken:o,xsrfHeaderName:r,xsrfCookieName:i,headers:s,auth:l}=n;if(n.headers=s=at.from(s),n.url=Po(qo(n.baseURL,n.url,n.allowAbsoluteUrls),t.params,t.paramsSerializer),l&&s.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):""))),U.isFormData(a)){if(Ue.hasStandardBrowserEnv||Ue.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if(U.isFunction(a.getHeaders)){const d=a.getHeaders(),u=["content-type","content-length"];Object.entries(d).forEach(([c,h])=>{u.includes(c.toLowerCase())&&s.set(c,h)})}}if(Ue.hasStandardBrowserEnv&&(o&&U.isFunction(o)&&(o=o(n)),o||o!==!1&&m0(n.url))){const d=r&&i&&h0.read(i);d&&s.set(r,d)}return n},y0=typeof XMLHttpRequest<"u"&&function(t){return new Promise(function(a,o){const r=Uo(t);let i=r.data;const s=at.from(r.headers).normalize();let{responseType:l,onUploadProgress:d,onDownloadProgress:u}=r,c,h,m,p,f;function g(){p&&p(),f&&f(),r.cancelToken&&r.cancelToken.unsubscribe(c),r.signal&&r.signal.removeEventListener("abort",c)}let y=new XMLHttpRequest;y.open(r.method.toUpperCase(),r.url,!0),y.timeout=r.timeout;function k(){if(!y)return;const C=at.from("getAllResponseHeaders"in y&&y.getAllResponseHeaders()),N={data:!l||l==="text"||l==="json"?y.responseText:y.response,status:y.status,statusText:y.statusText,headers:C,config:t,request:y};jo(function(z){a(z),g()},function(z){o(z),g()},N),y=null}"onloadend"in y?y.onloadend=k:y.onreadystatechange=function(){!y||y.readyState!==4||y.status===0&&!(y.responseURL&&y.responseURL.indexOf("file:")===0)||setTimeout(k)},y.onabort=function(){y&&(o(new Se("Request aborted",Se.ECONNABORTED,t,y)),y=null)},y.onerror=function(b){const N=b&&b.message?b.message:"Network Error",D=new Se(N,Se.ERR_NETWORK,t,y);D.event=b||null,o(D),y=null},y.ontimeout=function(){let b=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const N=r.transitional||Oo;r.timeoutErrorMessage&&(b=r.timeoutErrorMessage),o(new Se(b,N.clarifyTimeoutError?Se.ETIMEDOUT:Se.ECONNABORTED,t,y)),y=null},i===void 0&&s.setContentType(null),"setRequestHeader"in y&&U.forEach(s.toJSON(),function(b,N){y.setRequestHeader(N,b)}),U.isUndefined(r.withCredentials)||(y.withCredentials=!!r.withCredentials),l&&l!=="json"&&(y.responseType=r.responseType),u&&([m,f]=Ln(u,!0),y.addEventListener("progress",m)),d&&y.upload&&([h,p]=Ln(d),y.upload.addEventListener("progress",h),y.upload.addEventListener("loadend",p)),(r.cancelToken||r.signal)&&(c=C=>{y&&(o(!C||C.type?new Wt(null,t,y):C),y.abort(),y=null)},r.cancelToken&&r.cancelToken.subscribe(c),r.signal&&(r.signal.aborted?c():r.signal.addEventListener("abort",c)));const E=d0(r.url);if(E&&Ue.protocols.indexOf(E)===-1){o(new Se("Unsupported protocol "+E+":",Se.ERR_BAD_REQUEST,t));return}y.send(i||null)})},k0=(t,n)=>{const{length:a}=t=t?t.filter(Boolean):[];if(n||a){let o=new AbortController,r;const i=function(u){if(!r){r=!0,l();const c=u instanceof Error?u:this.reason;o.abort(c instanceof Se?c:new Wt(c instanceof Error?c.message:c))}};let s=n&&setTimeout(()=>{s=null,i(new Se(`timeout ${n} of ms exceeded`,Se.ETIMEDOUT))},n);const l=()=>{t&&(s&&clearTimeout(s),s=null,t.forEach(u=>{u.unsubscribe?u.unsubscribe(i):u.removeEventListener("abort",i)}),t=null)};t.forEach(u=>u.addEventListener("abort",i));const{signal:d}=o;return d.unsubscribe=()=>U.asap(l),d}},x0=function*(t,n){let a=t.byteLength;if(a<n){yield t;return}let o=0,r;for(;o<a;)r=o+n,yield t.slice(o,r),o=r},b0=async function*(t,n){for await(const a of w0(t))yield*x0(a,n)},w0=async function*(t){if(t[Symbol.asyncIterator]){yield*t;return}const n=t.getReader();try{for(;;){const{done:a,value:o}=await n.read();if(a)break;yield o}}finally{await n.cancel()}},Zo=(t,n,a,o)=>{const r=b0(t,n);let i=0,s,l=d=>{s||(s=!0,o&&o(d))};return new ReadableStream({async pull(d){try{const{done:u,value:c}=await r.next();if(u){l(),d.close();return}let h=c.byteLength;if(a){let m=i+=h;a(m)}d.enqueue(new Uint8Array(c))}catch(u){throw l(u),u}},cancel(d){return l(d),r.return()}},{highWaterMark:2})},Yo=64*1024,{isFunction:Fn}=U,E0=(({Request:t,Response:n})=>({Request:t,Response:n}))(U.global),{ReadableStream:Xo,TextEncoder:Ko}=U.global,Qo=(t,...n)=>{try{return!!t(...n)}catch{return!1}},v0=t=>{t=U.merge.call({skipUndefined:!0},E0,t);const{fetch:n,Request:a,Response:o}=t,r=n?Fn(n):typeof fetch=="function",i=Fn(a),s=Fn(o);if(!r)return!1;const l=r&&Fn(Xo),d=r&&(typeof Ko=="function"?(f=>g=>f.encode(g))(new Ko):async f=>new Uint8Array(await new a(f).arrayBuffer())),u=i&&l&&Qo(()=>{let f=!1;const g=new a(Ue.origin,{body:new Xo,method:"POST",get duplex(){return f=!0,"half"}}).headers.has("Content-Type");return f&&!g}),c=s&&l&&Qo(()=>U.isReadableStream(new o("").body)),h={stream:c&&(f=>f.body)};r&&["text","arrayBuffer","blob","formData","stream"].forEach(f=>{!h[f]&&(h[f]=(g,y)=>{let k=g&&g[f];if(k)return k.call(g);throw new Se(`Response type '${f}' is not supported`,Se.ERR_NOT_SUPPORT,y)})});const m=async f=>{if(f==null)return 0;if(U.isBlob(f))return f.size;if(U.isSpecCompliantForm(f))return(await new a(Ue.origin,{method:"POST",body:f}).arrayBuffer()).byteLength;if(U.isArrayBufferView(f)||U.isArrayBuffer(f))return f.byteLength;if(U.isURLSearchParams(f)&&(f=f+""),U.isString(f))return(await d(f)).byteLength},p=async(f,g)=>{const y=U.toFiniteNumber(f.getContentLength());return y??m(g)};return async f=>{let{url:g,method:y,data:k,signal:E,cancelToken:C,timeout:b,onDownloadProgress:N,onUploadProgress:D,responseType:z,headers:M,withCredentials:x="same-origin",fetchOptions:T}=Uo(f),B=n||fetch;z=z?(z+"").toLowerCase():"text";let V=k0([E,C&&C.toAbortSignal()],b),S=null;const v=V&&V.unsubscribe&&(()=>{V.unsubscribe()});let P;try{if(D&&u&&y!=="get"&&y!=="head"&&(P=await p(M,k))!==0){let O=new a(g,{method:"POST",body:k,duplex:"half"}),oe;if(U.isFormData(k)&&(oe=O.headers.get("content-type"))&&M.setContentType(oe),O.body){const[de,pe]=Go(P,Ln(Io(D)));k=Zo(O.body,Yo,de,pe)}}U.isString(x)||(x=x?"include":"omit");const Z=i&&"credentials"in a.prototype,Q={...T,signal:V,method:y.toUpperCase(),headers:M.normalize().toJSON(),body:k,duplex:"half",credentials:Z?x:void 0};S=i&&new a(g,Q);let J=await(i?B(S,T):B(g,Q));const _=c&&(z==="stream"||z==="response");if(c&&(N||_&&v)){const O={};["status","statusText","headers"].forEach(ye=>{O[ye]=J[ye]});const oe=U.toFiniteNumber(J.headers.get("content-length")),[de,pe]=N&&Go(oe,Ln(Io(N),!0))||[];J=new o(Zo(J.body,Yo,de,()=>{pe&&pe(),v&&v()}),O)}z=z||"text";let R=await h[U.findKey(h,z)||"text"](J,f);return!_&&v&&v(),await new Promise((O,oe)=>{jo(O,oe,{data:R,headers:at.from(J.headers),status:J.status,statusText:J.statusText,config:f,request:S})})}catch(Z){throw v&&v(),Z&&Z.name==="TypeError"&&/Load failed|fetch/i.test(Z.message)?Object.assign(new Se("Network Error",Se.ERR_NETWORK,f,S),{cause:Z.cause||Z}):Se.from(Z,Z&&Z.code,f,S)}}},C0=new Map,Jo=t=>{let n=t&&t.env||{};const{fetch:a,Request:o,Response:r}=n,i=[o,r,a];let s=i.length,l=s,d,u,c=C0;for(;l--;)d=i[l],u=c.get(d),u===void 0&&c.set(d,u=l?new Map:v0(n)),c=u;return u};Jo();const ka={http:Ws,xhr:y0,fetch:{get:Jo}};U.forEach(ka,(t,n)=>{if(t){try{Object.defineProperty(t,"name",{value:n})}catch{}Object.defineProperty(t,"adapterName",{value:n})}});const er=t=>`- ${t}`,S0=t=>U.isFunction(t)||t===null||t===!1;function B0(t,n){t=U.isArray(t)?t:[t];const{length:a}=t;let o,r;const i={};for(let s=0;s<a;s++){o=t[s];let l;if(r=o,!S0(o)&&(r=ka[(l=String(o)).toLowerCase()],r===void 0))throw new Se(`Unknown adapter '${l}'`);if(r&&(U.isFunction(r)||(r=r.get(n))))break;i[l||"#"+s]=r}if(!r){const s=Object.entries(i).map(([d,u])=>`adapter ${d} `+(u===!1?"is not supported by the environment":"is not available in the build"));let l=a?s.length>1?`since :
|
|
4
|
+
`+s.map(er).join(`
|
|
5
|
+
`):" "+er(s[0]):"as no adapter specified";throw new Se("There is no suitable adapter to dispatch the request "+l,"ERR_NOT_SUPPORT")}return r}const tr={getAdapter:B0,adapters:ka};function xa(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new Wt(null,t)}function nr(t){return xa(t),t.headers=at.from(t.headers),t.data=ya.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),tr.getAdapter(t.adapter||un.adapter,t)(t).then(function(o){return xa(t),o.data=ya.call(t,t.transformResponse,o),o.headers=at.from(o.headers),o},function(o){return zo(o)||(xa(t),o&&o.response&&(o.response.data=ya.call(t,t.transformResponse,o.response),o.response.headers=at.from(o.response.headers))),Promise.reject(o)})}const ar="1.13.1",$n={};["object","boolean","number","function","string","symbol"].forEach((t,n)=>{$n[t]=function(o){return typeof o===t||"a"+(n<1?"n ":" ")+t}});const or={};$n.transitional=function(n,a,o){function r(i,s){return"[Axios v"+ar+"] Transitional option '"+i+"'"+s+(o?". "+o:"")}return(i,s,l)=>{if(n===!1)throw new Se(r(s," has been removed"+(a?" in "+a:"")),Se.ERR_DEPRECATED);return a&&!or[s]&&(or[s]=!0,console.warn(r(s," has been deprecated since v"+a+" and will be removed in the near future"))),n?n(i,s,l):!0}},$n.spelling=function(n){return(a,o)=>(console.warn(`${o} is likely a misspelling of ${n}`),!0)};function V0(t,n,a){if(typeof t!="object")throw new Se("options must be an object",Se.ERR_BAD_OPTION_VALUE);const o=Object.keys(t);let r=o.length;for(;r-- >0;){const i=o[r],s=n[i];if(s){const l=t[i],d=l===void 0||s(l,i,t);if(d!==!0)throw new Se("option "+i+" must be "+d,Se.ERR_BAD_OPTION_VALUE);continue}if(a!==!0)throw new Se("Unknown option "+i,Se.ERR_BAD_OPTION)}}const Pn={assertOptions:V0,validators:$n},pt=Pn.validators;let $t=class{constructor(n){this.defaults=n||{},this.interceptors={request:new _o,response:new _o}}async request(n,a){try{return await this._request(n,a)}catch(o){if(o instanceof Error){let r={};Error.captureStackTrace?Error.captureStackTrace(r):r=new Error;const i=r.stack?r.stack.replace(/^.+\n/,""):"";try{o.stack?i&&!String(o.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(o.stack+=`
|
|
6
|
+
`+i):o.stack=i}catch{}}throw o}}_request(n,a){typeof n=="string"?(a=a||{},a.url=n):a=n||{},a=Ft(this.defaults,a);const{transitional:o,paramsSerializer:r,headers:i}=a;o!==void 0&&Pn.assertOptions(o,{silentJSONParsing:pt.transitional(pt.boolean),forcedJSONParsing:pt.transitional(pt.boolean),clarifyTimeoutError:pt.transitional(pt.boolean)},!1),r!=null&&(U.isFunction(r)?a.paramsSerializer={serialize:r}:Pn.assertOptions(r,{encode:pt.function,serialize:pt.function},!0)),a.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?a.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:a.allowAbsoluteUrls=!0),Pn.assertOptions(a,{baseUrl:pt.spelling("baseURL"),withXsrfToken:pt.spelling("withXSRFToken")},!0),a.method=(a.method||this.defaults.method||"get").toLowerCase();let s=i&&U.merge(i.common,i[a.method]);i&&U.forEach(["delete","get","head","post","put","patch","common"],f=>{delete i[f]}),a.headers=at.concat(s,i);const l=[];let d=!0;this.interceptors.request.forEach(function(g){typeof g.runWhen=="function"&&g.runWhen(a)===!1||(d=d&&g.synchronous,l.unshift(g.fulfilled,g.rejected))});const u=[];this.interceptors.response.forEach(function(g){u.push(g.fulfilled,g.rejected)});let c,h=0,m;if(!d){const f=[nr.bind(this),void 0];for(f.unshift(...l),f.push(...u),m=f.length,c=Promise.resolve(a);h<m;)c=c.then(f[h++],f[h++]);return c}m=l.length;let p=a;for(;h<m;){const f=l[h++],g=l[h++];try{p=f(p)}catch(y){g.call(this,y);break}}try{c=nr.call(this,p)}catch(f){return Promise.reject(f)}for(h=0,m=u.length;h<m;)c=c.then(u[h++],u[h++]);return c}getUri(n){n=Ft(this.defaults,n);const a=qo(n.baseURL,n.url,n.allowAbsoluteUrls);return Po(a,n.params,n.paramsSerializer)}};U.forEach(["delete","get","head","options"],function(n){$t.prototype[n]=function(a,o){return this.request(Ft(o||{},{method:n,url:a,data:(o||{}).data}))}}),U.forEach(["post","put","patch"],function(n){function a(o){return function(i,s,l){return this.request(Ft(l||{},{method:n,headers:o?{"Content-Type":"multipart/form-data"}:{},url:i,data:s}))}}$t.prototype[n]=a(),$t.prototype[n+"Form"]=a(!0)});let M0=class _i{constructor(n){if(typeof n!="function")throw new TypeError("executor must be a function.");let a;this.promise=new Promise(function(i){a=i});const o=this;this.promise.then(r=>{if(!o._listeners)return;let i=o._listeners.length;for(;i-- >0;)o._listeners[i](r);o._listeners=null}),this.promise.then=r=>{let i;const s=new Promise(l=>{o.subscribe(l),i=l}).then(r);return s.cancel=function(){o.unsubscribe(i)},s},n(function(i,s,l){o.reason||(o.reason=new Wt(i,s,l),a(o.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(n){if(this.reason){n(this.reason);return}this._listeners?this._listeners.push(n):this._listeners=[n]}unsubscribe(n){if(!this._listeners)return;const a=this._listeners.indexOf(n);a!==-1&&this._listeners.splice(a,1)}toAbortSignal(){const n=new AbortController,a=o=>{n.abort(o)};return this.subscribe(a),n.signal.unsubscribe=()=>this.unsubscribe(a),n.signal}static source(){let n;return{token:new _i(function(r){n=r}),cancel:n}}};function N0(t){return function(a){return t.apply(null,a)}}function A0(t){return U.isObject(t)&&t.isAxiosError===!0}const ba={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(ba).forEach(([t,n])=>{ba[n]=t});function rr(t){const n=new $t(t),a=wo($t.prototype.request,n);return U.extend(a,$t.prototype,n,{allOwnKeys:!0}),U.extend(a,n,null,{allOwnKeys:!0}),a.create=function(r){return rr(Ft(t,r))},a}const Ge=rr(un);Ge.Axios=$t,Ge.CanceledError=Wt,Ge.CancelToken=M0,Ge.isCancel=zo,Ge.VERSION=ar,Ge.toFormData=Tn,Ge.AxiosError=Se,Ge.Cancel=Ge.CanceledError,Ge.all=function(n){return Promise.all(n)},Ge.spread=N0,Ge.isAxiosError=A0,Ge.mergeConfig=Ft,Ge.AxiosHeaders=at,Ge.formToJSON=t=>Ro(U.isHTMLForm(t)?new FormData(t):t),Ge.getAdapter=tr.getAdapter,Ge.HttpStatusCode=ba,Ge.default=Ge;const{Axios:vb,AxiosError:Cb,CanceledError:Sb,isCancel:Bb,CancelToken:Vb,VERSION:Mb,all:Nb,Cancel:Ab,isAxiosError:Tb,spread:Db,toFormData:Lb,AxiosHeaders:Fb,HttpStatusCode:$b,formToJSON:Pb,getAdapter:_b,mergeConfig:Ob}=Ge,ir=Dt.defineStore("auth",{state:()=>({jwtToken:null}),actions:{setToken(t){this.jwtToken=t},clearToken(){this.jwtToken=null}},getters:{getToken:t=>t.jwtToken}}),Xe=Ge.create({baseURL:"https://back.dev-smclick.com.br/"});let wa=null;const T0=()=>(wa||(wa=ir()),wa);Xe.interceptors.request.use(t=>{try{const a=T0().jwtToken;a?t.headers.Authorization=`Bearer ${a}`:console.warn("JWT token não configurado em api request")}catch(n){console.warn("Erro ao acessar authStore no interceptor:",n)}return t},t=>Promise.reject(t));const D0="v1/api/attendances/attendant/",L0="v1/api/attendances/department/",Ea="v1/api/attendances/internal_chat/",F0="v1/api/instances/instance/",$0="v1/api/crm/event/scheduled_message/",P0="v1/api/crm/event/calendar",_0="v1/api/crm/products/",O0="v1/api/contacts/tag/",R0="/v1/api/contacts/segmentation_field/",H0="v1/api/attendances/calls/",va=Dt.defineStore("instance",{state:()=>({instances:[],count:null,loaded:!1}),actions:{async fetchInstances(t=""){try{let n=`${F0}`;const a=await Xe.get(n);this.instances=a.data,await Promise.all(this.instances.map(async o=>{o.isLoading=!0;try{const r=o.last_instance_status;r==="DISCONNECTED"||r==="UNDEFINED"?o.status=!1:o.status=!0}catch(r){console.log(r),o.status="Offline"}o.isLoading=!1})),this.count=this.instances.length,this.loaded=!0}catch(n){console.log("Erro ao buscar instâncias:",n),this.loaded=!0}},removeInstance(t){this.instances=this.instances.filter(n=>n.id!==t),this.count=this.instances.length},addInstance(t){const n=this.instances.findIndex(a=>a.id===t.id);n!==-1?this.instances[n]=t:this.instances.push(t),this.count=this.instances.length}}}),z0={class:"w-full relative text-current"},j0={class:"flex cursor-pointer justify-between items-center"},G0={key:0},I0={key:0},q0={key:1,class:"flex items-center gap-2"},W0={class:"flex gap-3 items-center flex-shrink-0"},U0={key:0,xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",class:"w-5 h-5 text-green-400",viewBox:"0 0 16 16"},Z0={key:1,class:"relative"},Y0={style:{color:"#0081FB",width:"20px",height:"20px"},xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",class:"icon-meta",viewBox:"0 0 16 16"},X0={class:"my-auto text-center mx-auto group-hover:inline-block"},K0={key:1,class:"flex justify-center"},Q0={class:"w-full"},J0={key:1,class:"flex items-center gap-2 justify-center"},el={class:"flex px-4 items-center gap-2"},tl={key:0,class:"absolute top-[48px] w-full z-20 text-sm"},nl={class:"gap-2 rounded-b-lg flex overflow-y-auto p-2 shadow shadow-black dark:shadow-gray-400 bg-base-300 max-h-[200px] flex-col"},al={class:"select-none cursor-pointer w-full"},ol=["onClick","disabled"],rl={class:"flex w-full items-center pl-2 gap-3"},il={key:0,xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",class:"w-4 h-4 flex-shrink-0 text-green-400",viewBox:"0 0 16 16"},sl={key:1,class:"relative"},ll={style:{color:"#0081FB"},xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",class:"icon-meta",viewBox:"0 0 16 16"},cl={key:0,class:"w-6 h-6 flex-shrink-0","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"currentColor",viewBox:"0 0 24 24"},dl={class:"w-full text-center"},ul={class:"my-auto text-center mx-auto group-hover:inline-block"},fl={key:1,class:"flex justify-center"},ml={class:"flex min-w-[50px] text-sm text-center items-center my-auto flex-shrink-0 px-1 justify-center"},hl={key:1,class:"p-4"},sr={__name:"index",props:{modelValue:{type:Object,default:null},type:{type:String},webhooks:{type:Boolean,default:void 0}},emits:["update:modelValue","function","component-mounted"],setup(t,{emit:n}){const a=va(),o=e.ref(!1),r=e.ref(null),i=t,s=n;function l(d){r.value=d,s("function",d)}return e.watch(()=>i.modelValue,d=>{r.value=d},{immediate:!0}),e.watch(r,d=>{s("update:modelValue",d)}),e.onMounted(async()=>{if(r.value){const d=a.instances.find(u=>u.id===r.value.id);d&&(r.value.status=d.status)}s("component-mounted")}),(d,u)=>{const c=e.resolveComponent("Popper");return e.openBlock(),e.createElementBlock("main",z0,[e.createElementVNode("div",{class:e.normalizeClass([{"rounded-b-none":o.value},"rounded-lg shadow dark:shadow-gray-400 shadow-gray-900 dark:bg-base-100 bg-base-100 text-center"])},[e.createElementVNode("div",j0,[e.createElementVNode("p",{onClick:u[0]||(u[0]=h=>o.value=!o.value),class:"w-full p-3 px-4 select-none"},[e.unref(a).loaded?(e.openBlock(),e.createElementBlock("div",G0,[r.value?(e.openBlock(),e.createElementBlock("span",q0,[e.createElementVNode("header",W0,[r.value.type==="whatsapp-qrcode"?(e.openBlock(),e.createElementBlock("svg",U0,[...u[3]||(u[3]=[e.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"},null,-1)])])):r.value.type==="whatsapp-api-official"?(e.openBlock(),e.createElementBlock("div",Z0,[u[5]||(u[5]=e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",class:"w-5 h-5 text-green-400",viewBox:"0 0 16 16"},[e.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)),(e.openBlock(),e.createElementBlock("svg",Y0,[...u[4]||(u[4]=[e.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.createCommentVNode("",!0),r.value&&r.value.status!==void 0?(e.openBlock(),e.createBlock(c,{key:2,class:"dark:popper-light popper-dark",hover:!0,placement:"top"},{content:e.withCtx(()=>[e.createElementVNode("main",{class:e.normalizeClass(["p-1 rounded text-sm px-3",{"bg-red-500":r.value.status===!1,"bg-green-500":r.value.status===!0,"bg-purple-500":r.value.status==="Offline"}])},[e.createElementVNode("div",X0,e.toDisplayString(r.value.status===!0?"Conectada":r.value.status===!1?"Desconectada":"Indefinida"),1)],2)]),default:e.withCtx(()=>[r.value.isLoading?(e.openBlock(),e.createElementBlock("div",K0,[...u[6]||(u[6]=[e.createElementVNode("div",{class:"h-5 w-5 border-t-transparent border-solid animate-spin rounded-full border-white border-4"},null,-1)])])):(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass([{"bg-red-500":r.value.status===!1,"bg-green-500":r.value.status===!0,"bg-purple-500":r.value.status==="Offline"},"text-xs w-5 h-5 py-1 shadow flex justify-start shadow-gray-900 dark:shadow-gray-400 rounded-full cursor-pointer transition-all duration-200 ease-in-out"])},null,2))]),_:1})):e.createCommentVNode("",!0)]),e.createElementVNode("div",Q0,e.toDisplayString(r.value.name),1)])):(e.openBlock(),e.createElementBlock("span",I0,e.toDisplayString(e.unref(a).instances?e.unref(a).instances.length:"Sem")+" Instâncias disponíveis",1))])):(e.openBlock(),e.createElementBlock("div",J0,[...u[7]||(u[7]=[e.createElementVNode("svg",{"aria-hidden":"true",class:"inline w-5 h-5 text-blue-300 animate-spin fill-gray-600",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),e.createElementVNode("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})],-1),e.createTextVNode("Inicializando instâncias...",-1)])]))]),e.createElementVNode("footer",el,[e.createElementVNode("button",{onClick:u[1]||(u[1]=h=>(r.value=null,o.value=!1))},[...u[8]||(u[8]=[e.createElementVNode("svg",{class:"w-4 h-4","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},[e.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.createElementVNode("button",{onClick:u[2]||(u[2]=h=>o.value=!o.value)},[(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass([{"rotate-180":o.value},"w-4 h-4 ease-out transition"]),"aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},[...u[9]||(u[9]=[e.createElementVNode("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m19 9-7 7-7-7"},null,-1)])],2))])])])],2),o.value?(e.openBlock(),e.createElementBlock("nav",tl,[e.createElementVNode("ul",nl,[e.unref(a).instances.length>0?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(e.unref(a).instances,(h,m)=>{var p;return e.openBlock(),e.createElementBlock("li",al,[e.createElementVNode("button",{class:e.normalizeClass([r.value&&r.value.id===h.id?"bg-base-100":"bg-base-200 hover:bg-base-100","flex rounded-md justify-between items-center p-2 px-1 w-full"]),onClick:f=>(r.value=h,o.value=!1,l(h)),disabled:r.value&&r.value.id===h.id||t.type&&h.type!==t.type||t.webhooks!==void 0&&t.webhooks!==((p=h.config)==null?void 0:p.webhooks)},[e.createElementVNode("div",rl,[h.type==="whatsapp-qrcode"?(e.openBlock(),e.createElementBlock("svg",il,[...u[10]||(u[10]=[e.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"},null,-1)])])):h.type==="whatsapp-api-official"?(e.openBlock(),e.createElementBlock("div",sl,[u[12]||(u[12]=e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",class:"w-4 h-4 flex-shrink-0 text-green-400",viewBox:"0 0 16 16"},[e.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)),(e.openBlock(),e.createElementBlock("svg",ll,[...u[11]||(u[11]=[e.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.createCommentVNode("",!0),e.createVNode(c,{class:"dark:popper-light popper-dark",hover:!0,placement:"top"},{content:e.withCtx(()=>[e.createElementVNode("span",null,e.toDisplayString(t.type&&h.type!==t.type?"Não é possível utilizar esse tipo de Instância neste recurso":t.webhooks===!0?"Essa instância está com o Atendimento desabilitado":"Essa aplicação é somente para instâncias sem atendimento habilitado."),1)]),default:e.withCtx(()=>{var f;return[t.type&&h.type!==t.type||t.webhooks!==void 0&&t.webhooks!==((f=h.config)==null?void 0:f.webhooks)?(e.openBlock(),e.createElementBlock("svg",cl,[...u[13]||(u[13]=[e.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"},null,-1)])])):e.createCommentVNode("",!0)]}),_:2},1024),e.createElementVNode("p",dl,e.toDisplayString(h.name),1),e.createVNode(c,{class:"dark:popper-light popper-dark",hover:!0,placement:"top"},{content:e.withCtx(()=>[e.createElementVNode("main",{class:e.normalizeClass(["p-1 rounded px-3",{"bg-red-500":h.status===!1,"bg-green-500":h.status===!0,"bg-purple-500":h.status==="Offline"}])},[e.createElementVNode("div",ul,e.toDisplayString(h.status===!0?"Conectada":h.status===!1?"Desconectada":"Indefinida"),1)],2)]),default:e.withCtx(()=>[h.isLoading?(e.openBlock(),e.createElementBlock("div",fl,[...u[14]||(u[14]=[e.createElementVNode("div",{class:"h-5 w-5 border-t-transparent border-solid animate-spin rounded-full border-white border-4"},null,-1)])])):(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass([{"bg-red-500":h.status===!1,"bg-green-500":h.status===!0,"bg-purple-500":h.status==="Offline"},"text-xs w-5 h-5 py-1 shadow flex justify-start shadow-gray-900 dark:shadow-gray-400 rounded-full cursor-pointer transition-all duration-200 ease-in-out"])},null,2))]),_:2},1024)]),e.createElementVNode("div",ml,[h.telephone?(e.openBlock(),e.createBlock(c,{key:0,class:"dark:popper-light popper-dark",hover:!0,placement:"top"},{content:e.withCtx(()=>[e.createElementVNode("div",null,e.toDisplayString(h.telephone?`${h.telephone}`:""),1)]),default:e.withCtx(()=>[u[15]||(u[15]=e.createElementVNode("svg",{class:"w-6 h-6","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"currentColor",viewBox:"0 0 24 24"},[e.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))]),_:2},1024)):e.createCommentVNode("",!0)])],10,ol)])}),256)):(e.openBlock(),e.createElementBlock("div",hl," Sem instâncias disponíveis"))])])):e.createCommentVNode("",!0)])}}},pl=["aria-labelledby","aria-describedby"],gl={class:"cpk-popover__header border-base-100"},yl=["id"],kl=["disabled"],xl=["id"],bl={class:"cpk-popover__details bg-base-200 border border-base-100"},wl={class:"cpk-popover__footer"},El=["disabled"],vl=["disabled"],Cl={key:0,class:"loading-spinner"},Sl=we({__name:"confirmModal",props:{modelValue:{type:Boolean,default:!1},title:{type:String,default:"Confirmar ação"},description:{type:String,default:""},confirmLabel:{type:String,default:"Confirmar"},cancelLabel:{type:String,default:"Cancelar"},loadingLabel:{type:String,default:"Processando…"},loading:{type:Boolean,default:!1},destructive:{type:Boolean,default:!1},context:{type:Object,default:()=>({})},anchorEl:{type:[HTMLElement,Object],default:null},anchorRect:{type:Object,default:null},placement:{type:String,default:"auto"},align:{type:String,default:"center"},offset:{type:Number,default:10},viewportPadding:{type:Number,default:8}},emits:["update:modelValue","confirm","cancel"],setup(t,{emit:n}){const a=t,o=n,r=e.computed({get:()=>a.modelValue,set:b=>o("update:modelValue",b)}),i=e.ref(null),s=e.ref({left:0,top:0,p:"bottom"}),l={title:`cpk-popover-title-${Math.random().toString(36).slice(2)}`,desc:`cpk-popover-desc-${Math.random().toString(36).slice(2)}`};function d(){o("cancel",a.context),r.value=!1}function u(){a.loading||o("confirm",a.context)}let c,h,m=[];function p(){if(a.anchorRect)return a.anchorRect;const b=a.anchorEl instanceof Element?a.anchorEl:null;if(b)return b.getBoundingClientRect();const N=document.activeElement instanceof Element?document.activeElement:null;return N?N.getBoundingClientRect():{left:window.__lastMouseX??window.innerWidth/2,top:window.__lastMouseY??window.innerHeight/2,width:1,height:1,right:(window.__lastMouseX??0)+1,bottom:(window.__lastMouseY??0)+1}}function f(){if(!r.value)return;const b=window.innerWidth,N=window.innerHeight,D=a.viewportPadding,z=p(),M=i.value?i.value.getBoundingClientRect():{width:320,height:200},x=a.placement==="auto"?["bottom","top","right","left"]:[a.placement];let T=x[0],B=0,V=0;const S=z.left+z.width/2-M.width/2,v=z.top+z.height/2-M.height/2,P=z.left,Z=z.left+z.width-M.width,Q=z.top,J=z.top+z.height-M.height;for(const _ of x){if(_==="bottom"&&(V=z.bottom+a.offset,B=a.align==="start"?P:a.align==="end"?Z:S,V+M.height+D<=N)){T="bottom";break}if(_==="top"&&(V=z.top-M.height-a.offset,B=a.align==="start"?P:a.align==="end"?Z:S,V>=D)){T="top";break}if(_==="right"&&(B=z.right+a.offset,V=a.align==="start"?Q:a.align==="end"?J:v,B+M.width+D<=b)){T="right";break}if(_==="left"&&(B=z.left-M.width-a.offset,V=a.align==="start"?Q:a.align==="end"?J:v,B>=D)){T="left";break}}B=Math.min(Math.max(D,B),b-M.width-D),V=Math.min(Math.max(D,V),N-M.height-D),s.value={left:B,top:V,p:T}}function g(){y();let N=a.anchorEl instanceof Element?a.anchorEl:document.body;for(;N&&N!==document.body;)m.push(N),N=N.parentElement;m.push(window),m.forEach(D=>D.addEventListener("scroll",f,{passive:!0}))}function y(){m.forEach(b=>{var N;return(N=b.removeEventListener)==null?void 0:N.call(b,"scroll",f)}),m=[]}e.watch(()=>r.value,async b=>{var N;if(b){await e.nextTick(),f(),g(),c=new ResizeObserver(f),c.observe(document.body);const D=a.anchorEl instanceof Element?a.anchorEl:null;D&&((N=h==null?void 0:h.disconnect)==null||N.call(h),h=new ResizeObserver(f),h.observe(D)),window.addEventListener("resize",f),window.addEventListener("keydown",k)}else E()}),e.watch(()=>a.anchorEl,async b=>{var D;if(!r.value)return;await e.nextTick(),y(),g(),(D=h==null?void 0:h.disconnect)==null||D.call(h);const N=b instanceof Element?b:null;N&&(h=new ResizeObserver(f),h.observe(N)),f()}),e.watch(()=>a.anchorRect,()=>{r.value&&f()}),e.watch(()=>[a.placement,a.align,a.offset,a.viewportPadding],()=>{r.value&&f()});function k(b){b.key==="Escape"&&d(),b.key==="Enter"&&u()}e.onMounted(()=>{window.addEventListener("mousemove",b=>{window.__lastMouseX=b.clientX,window.__lastMouseY=b.clientY},{passive:!0})}),e.onBeforeUnmount(E);function E(){y(),window.removeEventListener("resize",f),window.removeEventListener("keydown",k),c&&c.disconnect(),h&&h.disconnect()}const C=e.computed(()=>({left:`${s.value.left}px`,top:`${s.value.top}px`}));return(b,N)=>(e.openBlock(),e.createBlock(e.Transition,{name:"cpk-layer",appear:""},{default:e.withCtx(()=>[r.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"cpk-popover-layer",onMousedown:e.withModifiers(d,["self"])},[e.createVNode(e.Transition,{name:"cpk-card",appear:""},{default:e.withCtx(()=>[e.createElementVNode("div",{ref_key:"card",ref:i,class:e.normalizeClass(["cpk-popover bg-base-300",[{"is-loading":t.loading,"is-danger":t.destructive}]]),style:e.normalizeStyle(C.value),role:"dialog","aria-modal":"false","aria-labelledby":l.title,"aria-describedby":l.desc},[e.createElementVNode("div",gl,[N[0]||(N[0]=e.createElementVNode("div",{class:"cpk-popover__icon","aria-hidden":"true"},"!",-1)),e.createElementVNode("h3",{class:"cpk-popover__title",id:l.title},e.toDisplayString(t.title),9,yl),e.createElementVNode("button",{class:"cpk-popover__close",type:"button",onClick:d,disabled:t.loading,"aria-label":"Fechar"}," × ",8,kl)]),t.description?(e.openBlock(),e.createElementBlock("p",{key:0,class:"cpk-popover__desc",id:l.desc},e.toDisplayString(t.description),9,xl)):e.createCommentVNode("",!0),e.createElementVNode("div",bl,[e.renderSlot(b.$slots,"details",{},void 0,!0)]),e.createElementVNode("div",wl,[e.createElementVNode("button",{type:"button",class:"cyber-button cyber-button--md",onClick:d,disabled:t.loading},e.toDisplayString(t.cancelLabel),9,El),e.createElementVNode("button",{type:"button",class:e.normalizeClass(["cyber-button","cyber-button--md",t.destructive?"cyber-button--danger":"cyber-button--accent"]),onClick:u,disabled:t.loading},[t.loading?(e.openBlock(),e.createElementBlock("span",Cl)):e.createCommentVNode("",!0),e.createElementVNode("span",null,e.toDisplayString(t.loading?t.loadingLabel:t.confirmLabel),1)],10,vl)])],14,pl)]),_:3})],32)):e.createCommentVNode("",!0)]),_:3}))}},[["__scopeId","data-v-2f78365f"]]);function Ut(t){return(n={})=>{const a=n.width?String(n.width):t.defaultWidth;return t.formats[a]||t.formats[t.defaultWidth]}}function gt(t){return(n,a)=>{const o=a!=null&&a.context?String(a.context):"standalone";let r;if(o==="formatting"&&t.formattingValues){const s=t.defaultFormattingWidth||t.defaultWidth,l=a!=null&&a.width?String(a.width):s;r=t.formattingValues[l]||t.formattingValues[s]}else{const s=t.defaultWidth,l=a!=null&&a.width?String(a.width):t.defaultWidth;r=t.values[l]||t.values[s]}const i=t.argumentCallback?t.argumentCallback(n):n;return r[i]}}function yt(t){return(n,a={})=>{const o=a.width,r=o&&t.matchPatterns[o]||t.matchPatterns[t.defaultMatchWidth],i=n.match(r);if(!i)return null;const s=i[0],l=o&&t.parsePatterns[o]||t.parsePatterns[t.defaultParseWidth],d=Array.isArray(l)?Vl(l,h=>h.test(s)):Bl(l,h=>h.test(s));let u;u=t.valueCallback?t.valueCallback(d):d,u=a.valueCallback?a.valueCallback(u):u;const c=n.slice(s.length);return{value:u,rest:c}}}function Bl(t,n){for(const a in t)if(Object.prototype.hasOwnProperty.call(t,a)&&n(t[a]))return a}function Vl(t,n){for(let a=0;a<t.length;a++)if(n(t[a]))return a}function lr(t){return(n,a={})=>{const o=n.match(t.matchPattern);if(!o)return null;const r=o[0],i=n.match(t.parsePattern);if(!i)return null;let s=t.valueCallback?t.valueCallback(i[0]):i[0];s=a.valueCallback?a.valueCallback(s):s;const l=n.slice(r.length);return{value:s,rest:l}}}const cr=6048e5,Ml=864e5,dr=Symbol.for("constructDateFrom");function rt(t,n){return typeof t=="function"?t(n):t&&typeof t=="object"&&dr in t?t[dr](n):t instanceof Date?new t.constructor(n):new Date(n)}function Ca(t,...n){const a=rt.bind(null,n.find(o=>typeof o=="object"));return n.map(a)}let Nl={};function _n(){return Nl}function ct(t,n){return rt(n||t,t)}function Pt(t,n){var l,d,u,c;const a=_n(),o=(n==null?void 0:n.weekStartsOn)??((d=(l=n==null?void 0:n.locale)==null?void 0:l.options)==null?void 0:d.weekStartsOn)??a.weekStartsOn??((c=(u=a.locale)==null?void 0:u.options)==null?void 0:c.weekStartsOn)??0,r=ct(t,n==null?void 0:n.in),i=r.getDay(),s=(i<o?7:0)+i-o;return r.setDate(r.getDate()-s),r.setHours(0,0,0,0),r}function Al(t,n,a){const[o,r]=Ca(a==null?void 0:a.in,t,n);return+Pt(o,a)==+Pt(r,a)}const Tl={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},Dl=(t,n,a)=>{let o;const r=Tl[t];return typeof r=="string"?o=r:n===1?o=r.one:o=r.other.replace("{{count}}",n.toString()),a!=null&&a.addSuffix?a.comparison&&a.comparison>0?"in "+o:o+" ago":o},Ll={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Fl=(t,n,a,o)=>Ll[t],$l={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Pl={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},_l={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},Ol={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},Rl={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},Hl={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},zl={ordinalNumber:(t,n)=>{const a=Number(t),o=a%100;if(o>20||o<10)switch(o%10){case 1:return a+"st";case 2:return a+"nd";case 3:return a+"rd"}return a+"th"},era:gt({values:$l,defaultWidth:"wide"}),quarter:gt({values:Pl,defaultWidth:"wide",argumentCallback:t=>t-1}),month:gt({values:_l,defaultWidth:"wide"}),day:gt({values:Ol,defaultWidth:"wide"}),dayPeriod:gt({values:Rl,defaultWidth:"wide",formattingValues:Hl,defaultFormattingWidth:"wide"})},jl=/^(\d+)(th|st|nd|rd)?/i,Gl=/\d+/i,Il={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},ql={any:[/^b/i,/^(a|c)/i]},Wl={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Ul={any:[/1/i,/2/i,/3/i,/4/i]},Zl={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},Yl={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},Xl={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},Kl={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},Ql={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},Jl={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},e2={ordinalNumber:lr({matchPattern:jl,parsePattern:Gl,valueCallback:t=>parseInt(t,10)}),era:yt({matchPatterns:Il,defaultMatchWidth:"wide",parsePatterns:ql,defaultParseWidth:"any"}),quarter:yt({matchPatterns:Wl,defaultMatchWidth:"wide",parsePatterns:Ul,defaultParseWidth:"any",valueCallback:t=>t+1}),month:yt({matchPatterns:Zl,defaultMatchWidth:"wide",parsePatterns:Yl,defaultParseWidth:"any"}),day:yt({matchPatterns:Xl,defaultMatchWidth:"wide",parsePatterns:Kl,defaultParseWidth:"any"}),dayPeriod:yt({matchPatterns:Ql,defaultMatchWidth:"any",parsePatterns:Jl,defaultParseWidth:"any"})},t2={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},n2={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},a2={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},o2={date:Ut({formats:t2,defaultWidth:"full"}),time:Ut({formats:n2,defaultWidth:"full"}),dateTime:Ut({formats:a2,defaultWidth:"full"})},r2={code:"en-US",formatDistance:Dl,formatLong:o2,formatRelative:Fl,localize:zl,match:e2,options:{weekStartsOn:0,firstWeekContainsDate:1}},i2={lessThanXSeconds:{one:"menos de um segundo",other:"menos de {{count}} segundos"},xSeconds:{one:"1 segundo",other:"{{count}} segundos"},halfAMinute:"meio minuto",lessThanXMinutes:{one:"menos de um minuto",other:"menos de {{count}} minutos"},xMinutes:{one:"1 minuto",other:"{{count}} minutos"},aboutXHours:{one:"cerca de 1 hora",other:"cerca de {{count}} horas"},xHours:{one:"1 hora",other:"{{count}} horas"},xDays:{one:"1 dia",other:"{{count}} dias"},aboutXWeeks:{one:"cerca de 1 semana",other:"cerca de {{count}} semanas"},xWeeks:{one:"1 semana",other:"{{count}} semanas"},aboutXMonths:{one:"cerca de 1 mês",other:"cerca de {{count}} meses"},xMonths:{one:"1 mês",other:"{{count}} meses"},aboutXYears:{one:"cerca de 1 ano",other:"cerca de {{count}} anos"},xYears:{one:"1 ano",other:"{{count}} anos"},overXYears:{one:"mais de 1 ano",other:"mais de {{count}} anos"},almostXYears:{one:"quase 1 ano",other:"quase {{count}} anos"}},s2=(t,n,a)=>{let o;const r=i2[t];return typeof r=="string"?o=r:n===1?o=r.one:o=r.other.replace("{{count}}",String(n)),a!=null&&a.addSuffix?a.comparison&&a.comparison>0?"em "+o:"há "+o:o},l2={full:"EEEE, d 'de' MMMM 'de' y",long:"d 'de' MMMM 'de' y",medium:"d MMM y",short:"dd/MM/yyyy"},c2={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},d2={full:"{{date}} 'às' {{time}}",long:"{{date}} 'às' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},u2={date:Ut({formats:l2,defaultWidth:"full"}),time:Ut({formats:c2,defaultWidth:"full"}),dateTime:Ut({formats:d2,defaultWidth:"full"})},f2={lastWeek:t=>{const n=t.getDay();return"'"+(n===0||n===6?"último":"última")+"' eeee 'às' p"},yesterday:"'ontem às' p",today:"'hoje às' p",tomorrow:"'amanhã às' p",nextWeek:"eeee 'às' p",other:"P"},m2=(t,n,a,o)=>{const r=f2[t];return typeof r=="function"?r(n):r},h2={narrow:["AC","DC"],abbreviated:["AC","DC"],wide:["antes de cristo","depois de cristo"]},p2={narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]},g2={narrow:["j","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["jan","fev","mar","abr","mai","jun","jul","ago","set","out","nov","dez"],wide:["janeiro","fevereiro","março","abril","maio","junho","julho","agosto","setembro","outubro","novembro","dezembro"]},y2={narrow:["D","S","T","Q","Q","S","S"],short:["dom","seg","ter","qua","qui","sex","sab"],abbreviated:["domingo","segunda","terça","quarta","quinta","sexta","sábado"],wide:["domingo","segunda-feira","terça-feira","quarta-feira","quinta-feira","sexta-feira","sábado"]},k2={narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"manhã",afternoon:"tarde",evening:"tarde",night:"noite"},abbreviated:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"manhã",afternoon:"tarde",evening:"tarde",night:"noite"},wide:{am:"a.m.",pm:"p.m.",midnight:"meia-noite",noon:"meio-dia",morning:"manhã",afternoon:"tarde",evening:"tarde",night:"noite"}},x2={narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"da manhã",afternoon:"da tarde",evening:"da tarde",night:"da noite"},abbreviated:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"da manhã",afternoon:"da tarde",evening:"da tarde",night:"da noite"},wide:{am:"a.m.",pm:"p.m.",midnight:"meia-noite",noon:"meio-dia",morning:"da manhã",afternoon:"da tarde",evening:"da tarde",night:"da noite"}},b2={ordinalNumber:(t,n)=>{const a=Number(t);return(n==null?void 0:n.unit)==="week"?a+"ª":a+"º"},era:gt({values:h2,defaultWidth:"wide"}),quarter:gt({values:p2,defaultWidth:"wide",argumentCallback:t=>t-1}),month:gt({values:g2,defaultWidth:"wide"}),day:gt({values:y2,defaultWidth:"wide"}),dayPeriod:gt({values:k2,defaultWidth:"wide",formattingValues:x2,defaultFormattingWidth:"wide"})},w2=/^(\d+)[ºªo]?/i,E2=/\d+/i,v2={narrow:/^(ac|dc|a|d)/i,abbreviated:/^(a\.?\s?c\.?|d\.?\s?c\.?)/i,wide:/^(antes de cristo|depois de cristo)/i},C2={any:[/^ac/i,/^dc/i],wide:[/^antes de cristo/i,/^depois de cristo/i]},S2={narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](º)? trimestre/i},B2={any:[/1/i,/2/i,/3/i,/4/i]},V2={narrow:/^[jfmajsond]/i,abbreviated:/^(jan|fev|mar|abr|mai|jun|jul|ago|set|out|nov|dez)/i,wide:/^(janeiro|fevereiro|março|abril|maio|junho|julho|agosto|setembro|outubro|novembro|dezembro)/i},M2={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^fev/i,/^mar/i,/^abr/i,/^mai/i,/^jun/i,/^jul/i,/^ago/i,/^set/i,/^out/i,/^nov/i,/^dez/i]},N2={narrow:/^(dom|[23456]ª?|s[aá]b)/i,short:/^(dom|[23456]ª?|s[aá]b)/i,abbreviated:/^(dom|seg|ter|qua|qui|sex|s[aá]b)/i,wide:/^(domingo|(segunda|ter[cç]a|quarta|quinta|sexta)([- ]feira)?|s[aá]bado)/i},A2={short:[/^d/i,/^2/i,/^3/i,/^4/i,/^5/i,/^6/i,/^s[aá]/i],narrow:[/^d/i,/^2/i,/^3/i,/^4/i,/^5/i,/^6/i,/^s[aá]/i],any:[/^d/i,/^seg/i,/^t/i,/^qua/i,/^qui/i,/^sex/i,/^s[aá]b/i]},T2={narrow:/^(a|p|mn|md|(da) (manhã|tarde|noite))/i,any:/^([ap]\.?\s?m\.?|meia[-\s]noite|meio[-\s]dia|(da) (manhã|tarde|noite))/i},D2={any:{am:/^a/i,pm:/^p/i,midnight:/^mn|^meia[-\s]noite/i,noon:/^md|^meio[-\s]dia/i,morning:/manhã/i,afternoon:/tarde/i,evening:/tarde/i,night:/noite/i}},L2={ordinalNumber:lr({matchPattern:w2,parsePattern:E2,valueCallback:t=>parseInt(t,10)}),era:yt({matchPatterns:v2,defaultMatchWidth:"wide",parsePatterns:C2,defaultParseWidth:"any"}),quarter:yt({matchPatterns:S2,defaultMatchWidth:"wide",parsePatterns:B2,defaultParseWidth:"any",valueCallback:t=>t+1}),month:yt({matchPatterns:V2,defaultMatchWidth:"wide",parsePatterns:M2,defaultParseWidth:"any"}),day:yt({matchPatterns:N2,defaultMatchWidth:"wide",parsePatterns:A2,defaultParseWidth:"any"}),dayPeriod:yt({matchPatterns:T2,defaultMatchWidth:"any",parsePatterns:D2,defaultParseWidth:"any"})},ur={code:"pt-BR",formatDistance:s2,formatLong:u2,formatRelative:m2,localize:b2,match:L2,options:{weekStartsOn:0,firstWeekContainsDate:1}},F2={scheduled_messages:"Mensagem programada"};function $2(t){return F2[t]||t||"Evento"}function Sa(t,n){return t.getFullYear()===n.getFullYear()&&t.getMonth()===n.getMonth()&&t.getDate()===n.getDate()}function Zt(t){const n=t instanceof Date?t:new Date(t),a=n.getFullYear(),o=(n.getMonth()+1).toString().padStart(2,"0");return`${a}-${o}`}function mn(t){const[n,a]=String(t||"").trim().split(" ");if(!n)return null;const[o,r,i]=n.split("-").map(u=>parseInt(u,10));let s=0,l=0;if(a){const[u,c]=a.split(":");s=parseInt(u||"0",10),l=parseInt(c||"0",10)}const d=new Date(o,(r||1)-1,i||1,s,l);return isNaN(d.getTime())?null:d}function P2(t){if(!t)return null;try{const n=String(t).replace(/(\.\d{3})\d+$/,"$1"),a=new Date(n);return isNaN(a.getTime())?null:a}catch{return null}}function On(t){if(!t)return"";const n=t instanceof Date?t:new Date(t);if(isNaN(n.getTime()))return"";const a=String(n.getHours()).padStart(2,"0"),o=String(n.getMinutes()).padStart(2,"0");return`${a}:${o}`}function _2(){return"id-"+Math.random().toString(36).slice(2)+Date.now().toString(36)}function Ba(t){if(!t)return null;const n=(t==null?void 0:t.params)||{},a=(n==null?void 0:n.schedule)||{},o=(t==null?void 0:t.info)||{},r=(o==null?void 0:o.entity)||{},i=(o==null?void 0:o.department)||{},s=(o==null?void 0:o.instance)||{};let l=null;if(a!=null&&a.time&&(l=mn(a.time)),!l&&(t!=null&&t.next_execution_at)&&(l=P2(t.next_execution_at)),!l)return null;const d=Array.isArray(n==null?void 0:n.message)?n.message[0]:null,u=d&&(d.content||d.text)||"",c=(t==null?void 0:t.function)||(n==null?void 0:n.function)||"",h=$2(c),m=(u||"").trim();return{id:(t==null?void 0:t.id)||_2(),date:l,time:On(l),type:t.function,status:t.status||null,scheduled_by:n.scheduled_by,title:h,content:m,functionName:c||null,chatId:(n==null?void 0:n.chat_id)||(o==null?void 0:o.id)||"",protocol:(o==null?void 0:o.protocol)??"",contactName:(r==null?void 0:r.name)||"Contato",contactPhoto:(r==null?void 0:r.photo)||"",departmentName:(i==null?void 0:i.name)||"",departmentId:(i==null?void 0:i.id)||null,instanceName:(s==null?void 0:s.name)||"",raw:t}}function fr(t=[]){const n=Array.isArray(t)?t:Array.isArray(t.results)?t.results:[],a=[];for(const o of n){const r=Ba(o);r&&a.push(r)}return a.sort((o,r)=>o.date-r.date),a}async function O2(t="/crm_scheduled",n){var a;try{const o=((a=n==null?void 0:n.raw)==null?void 0:a.id)??(n==null?void 0:n.id)??n;if(o==null)throw new Error("ID inválido");const r=`${String(t).replace(/\/$/,"")}/${o}/`,i=await Xe.delete(r);return{ok:(i==null?void 0:i.status)>=200&&i.status<300,status:(i==null?void 0:i.status)??0}}catch(o){return console.error("Error erasing scheduled event:",o),{ok:!1,status:0}}}const mr={scheduled_messages:"#3b82f6"},hr=["#10b981","#06b6d4","#22c55e","#eab308","#ef4444","#84cc16","#f472b6","#0ea5e9","#8b5cf6","#64748b"];function R2(t=""){let n=2166136261;for(let a=0;a<t.length;a++)n^=t.charCodeAt(a),n=Math.imul(n,16777619);return n>>>0}function H2(t={}){var s,l,d,u,c,h,m,p,f,g,y;const n=t.functionName||t.function||((s=t==null?void 0:t.params)==null?void 0:s.function);if(n)return`fn:${n}`;const a=(t==null?void 0:t.departmentName)||((d=(l=t==null?void 0:t.info)==null?void 0:l.department)==null?void 0:d.name)||((c=(u=t==null?void 0:t.info)==null?void 0:u.department)==null?void 0:c.id);if(a)return`dept:${a}`;const o=(t==null?void 0:t.instanceName)||((m=(h=t==null?void 0:t.info)==null?void 0:h.instance)==null?void 0:m.name)||((f=(p=t==null?void 0:t.info)==null?void 0:p.instance)==null?void 0:f.id);if(o)return`inst:${o}`;const r=(t==null?void 0:t.protocol)??((g=t==null?void 0:t.info)==null?void 0:g.protocol);if(r!=null)return`proto:${r}`;const i=(t==null?void 0:t.chatId)||((y=t==null?void 0:t.params)==null?void 0:y.chat_id);return i?`chat:${i}`:"misc"}function Rn(t={}){var r;const n=t.functionName||t.function||((r=t==null?void 0:t.params)==null?void 0:r.function);if(n&&Object.prototype.hasOwnProperty.call(mr,n))return mr[n];const a=H2(t),o=R2(String(a))%hr.length;return hr[o]}const Yt=Dt.defineStore("attendant",{state:()=>({attendants:[],count:null,loaded:!1}),actions:{async fetchAttendants(){try{this.attendants=[];let t=`${D0}`;const n=await Xe.get(t);this.attendants=n.data,this.count=this.attendants.length}catch(t){console.log("Erro ao buscar atendentes:",t)}},removeAttendants(t){this.attendants=this.attendants.filter(n=>n.id!==t)},addAttendants(t){const n=this.attendants.findIndex(a=>a.id===t.id);n!==-1?this.attendants[n]=t:this.attendants.push(t)}}}),z2={class:"itemc-head"},j2={class:"minw0"},G2={class:"itemc-title"},I2={class:"itemc-sub"},q2={class:"flex items-center gap-1"},W2={class:"itemc-actions"},U2={class:"flex flex-col items-center"},Z2={class:"time-badge"},Y2={class:"sched-pop",tabindex:"0","aria-haspopup":"true","aria-label":"Agendado por"},X2={class:"sched-pop__card bg-base-300",role:"dialog"},K2={key:0,class:"icon-4",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Q2={key:1,class:"icon-4","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"currentColor",viewBox:"0 0 24 24"},J2=["disabled"],ec={key:0,class:"icon-4","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"currentColor",viewBox:"0 0 24 24"},tc={key:1,class:"loading-spinner"},nc={class:"itemsb-head"},ac=["src"],oc={key:1,class:"avatar avatar--placeholder bg-base-100"},rc={class:"sched-pop",style:{position:"absolute",bottom:"-2px",right:"-2px"},tabindex:"0","aria-haspopup":"true","aria-label":"Agendado por"},ic={class:"sched-pop__card bg-base-300",style:{left:"-100%",right:"auto",transform:"translate(10%, -50%) scale(0.98)"},role:"dialog"},sc={class:"itemsb-main"},lc={class:"itemsb-row"},cc={class:"itemsb-title truncate"},dc={class:"itemsb-time"},uc={class:"itemsb-sub"},fc={class:"items-attendant"},mc={class:"itemsb-content"},hc={key:0,class:"itemsb-actions"},pc=["disabled"],gc={key:0,class:"loading-spinner"},yc={class:"event-left"},kc={class:"event-line"},xc={class:"event-actions"},bc={class:"sched-pop",tabindex:"0","aria-haspopup":"true","aria-label":"Agendado por"},wc={class:"sched-pop__card bg-base-300",role:"dialog"},Ec={class:"sched-pop",tabindex:"0","aria-haspopup":"true","aria-label":"Agendado por"},vc={class:"sched-pop__card bg-base-300",role:"dialog"},Cc={class:"event-time"},Sc={key:0,class:"icon-4",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Bc={key:1,class:"icon-4","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"currentColor",viewBox:"0 0 24 24"},Vc=["disabled"],Mc={key:0,class:"icon-4","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"currentColor",viewBox:"0 0 24 24"},Nc={key:1,class:"loading-spinner"},Va=we({__name:"EventItem",props:{ev:{type:Object,required:!0},mode:{type:String,default:"compact"},getEventColor:{type:Function,default:null},viewOnly:{type:Boolean,default:!1}},emits:["open-message","open-chat","delete-message"],setup(t,{emit:n}){const a=Yt(),o=t,r=e.computed(()=>(o.getEventColor||Rn)(o.ev)),i=e.computed(()=>{var u;return((u=o.ev)==null?void 0:u.type)==="scheduled_messages"}),s=e.computed(()=>a.attendants.find(u=>u.is_me)||{}),l=u=>{const c=a.attendants.find(h=>h.id===u);return c?c.id===s.value.id?"Você":c.name||"Desconhecido":"Desconhecido"},d=e.computed(()=>{var c,h;const u=[];return(c=o.ev)!=null&&c.contactName&&u.push(o.ev.contactName),u.push(((h=o.ev)==null?void 0:h.departmentName)||"sem depto"),u.join(" • ")});return(u,c)=>{var h,m,p,f,g,y;return t.mode==="compact"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("header",z2,[e.createElementVNode("span",{style:e.normalizeStyle({background:r.value}),class:"color-bar"},null,4),e.createElementVNode("div",j2,[e.createElementVNode("div",G2,e.toDisplayString(t.ev.contactName?t.ev.contactName+" • ":"")+" "+e.toDisplayString(t.ev.departmentName||"sem depto"),1),e.createElementVNode("div",I2,[e.createElementVNode("span",q2,[c[9]||(c[9]=e.createElementVNode("svg",{class:"icon-3","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"currentColor",viewBox:"0 0 24 24"},[e.createElementVNode("path",{"fill-rule":"evenodd",d:"M12 2a7 7 0 0 0-7 7 3 3 0 0 0-3 3v2a3 3 0 0 0 3 3h1a1 1 0 0 0 1-1V9a5 5 0 1 1 10 0v7.083A2.919 2.919 0 0 1 14.083 19H14a2 2 0 0 0-2-2h-1a2 2 0 0 0-2 2v1a2 2 0 0 0 2 2h1a2 2 0 0 0 1.732-1h.351a4.917 4.917 0 0 0 4.83-4H19a3 3 0 0 0 3-3v-2a3 3 0 0 0-3-3 7 7 0 0 0-7-7Zm1.45 3.275a4 4 0 0 0-4.352.976 1 1 0 0 0 1.452 1.376 2.001 2.001 0 0 1 2.836-.067 1 1 0 1 0 1.386-1.442 4 4 0 0 0-1.321-.843Z","clip-rule":"evenodd"})],-1)),e.createTextVNode(" "+e.toDisplayString(l(t.ev.scheduled_by)),1)])])])]),e.createElementVNode("footer",W2,[e.createElementVNode("div",U2,[e.createElementVNode("div",Z2,e.toDisplayString(t.ev.time),1),e.createElementVNode("div",Y2,[t.ev.status!==void 0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["status-bar",(h=t.ev)!=null&&h.status?"status--up":"status--down"])},null,2)):e.createCommentVNode("",!0),e.createElementVNode("div",X2,[c[10]||(c[10]=e.createElementVNode("strong",null,"Status",-1)),c[11]||(c[11]=e.createElementVNode("br",null,null,-1)),e.createTextVNode(" "+e.toDisplayString(t.ev.status===!0?"Ativo":"Executado"),1)])])]),i.value?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:c[0]||(c[0]=k=>u.$emit("open-message",t.ev)),class:"cyber-button cyber-button--xs cyber-button--primary","aria-label":"Editar mensagem programada"},[((m=t.ev)==null?void 0:m.status)===!0?(e.openBlock(),e.createElementBlock("svg",K2,[...c[12]||(c[12]=[e.createElementVNode("path",{fill:"currentColor","fill-rule":"evenodd",d:"M14 4.182A4.136 4.136 0 0 1 16.9 3c1.087 0 2.13.425 2.899 1.182A4.01 4.01 0 0 1 21 7.037c0 1.068-.43 2.092-1.194 2.849L18.5 11.214l-5.8-5.71 1.287-1.31.012-.012Zm-2.717 2.763L6.186 12.13l2.175 2.141 5.063-5.218-2.141-2.108Zm-6.25 6.886-1.98 5.849a.992.992 0 0 0 .245 1.026 1.03 1.03 0 0 0 1.043.242L10.282 19l-5.25-5.168Zm6.954 4.01 5.096-5.186-2.218-2.183-5.063 5.218 2.185 2.15Z","clip-rule":"evenodd"},null,-1)])])):(e.openBlock(),e.createElementBlock("svg",Q2,[...c[13]||(c[13]=[e.createElementVNode("path",{"fill-rule":"evenodd",d:"M4.998 7.78C6.729 6.345 9.198 5 12 5c2.802 0 5.27 1.345 7.002 2.78a12.713 12.713 0 0 1 2.096 2.183c.253 .344 .465 .682 .618 .997 .14 .286 .284 .658 .284 1.04s-.145 .754 -.284 1.04a6.6 6.6 0 0 1-.618 .997 12.712 12.712 0 0 1-2.096 2.183C17.271 17.655 14.802 19 12 19c-2.802 0-5.27-1.345-7.002-2.78a12.712 12.712 0 0 1-2.096-2.183 6.6 6.6 0 0 1-.618-.997C2.144 12.754 2 12.382 2 12s.145-.754 .284-1.04c.153-.315 .365-.653 .618-.997A12.714 12.714 0 0 1 4.998 7.78ZM12 15a3 3 0 1 0 0-6 3 3 0 0 0 0 6Z","clip-rule":"evenodd"},null,-1)])]))])):e.createCommentVNode("",!0),i.value?(e.openBlock(),e.createElementBlock("button",{key:1,onClick:c[1]||(c[1]=k=>u.$emit("delete-message",t.ev)),class:"cyber-button cyber-button--xs cyber-button--danger","aria-label":"Apagar evento",disabled:t.ev.deleteLoading||!t.ev.status},[t.ev.deleteLoading?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("svg",ec,[...c[14]||(c[14]=[e.createElementVNode("path",{"fill-rule":"evenodd",d:"M8.586 2.586A2 2 0 0 1 10 2h4a2 2 0 0 1 2 2v2h3a1 1 0 1 1 0 2v12a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V8a1 1 0 0 1 0-2h3V4a2 2 0 0 1 .586-1.414ZM10 6h4V4h-4v2Zm1 4a1 1 0 1 0-2 0v8a1 1 0 1 0 2 0v-8Zm4 0a1 1 0 1 0-2 0v8a1 1 0 1 0 2 0v-8Z","clip-rule":"evenodd"},null,-1)])])),t.ev.deleteLoading?(e.openBlock(),e.createElementBlock("div",tc)):e.createCommentVNode("",!0)],8,J2)):e.createCommentVNode("",!0),e.createElementVNode("button",{class:"cyber-button cyber-button--xs cyber-button--accent",onClick:c[2]||(c[2]=k=>u.$emit("open-chat",t.ev)),"aria-label":"Abrir conversa"},[...c[15]||(c[15]=[e.createElementVNode("svg",{class:"icon-4",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},[e.createElementVNode("path",{fill:"currentColor","fill-rule":"evenodd",d:"M3.559 4.544c.355-.35.834-.544 1.33-.544H19.11c.496 0 .975.194 1.33.544.356.35.559.829.559 1.331v9.25c0 .502-.203.981-.559 1.331-.355.35-.834.544-1.33.544H15.5l-2.7 3.6a1 1 0 0 1-1.6 0L8.5 17H4.889c-.496 0-.975-.194-1.33-.544A1.868 1.868 0 0 1 3 15.125v-9.25c0-.502.203-.981.559-1.331ZM7.556 7.5a1 1 0 1 0 0 2h8a1 1 0 0 0 0-2h-8Zm0 3.5a1 1 0 1 0 0 2H12a1 1 0 1 0 0-2H7.556Z","clip-rule":"evenodd"})],-1)])])])],64)):t.mode==="sidebar"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("div",nc,[e.createElementVNode("div",{class:"avatar-wrap",style:e.normalizeStyle({boxShadow:`0 0 0 1px ${r.value}`})},[t.ev.contactPhoto?(e.openBlock(),e.createElementBlock("img",{key:0,src:t.ev.contactPhoto,alt:"",class:"avatar",loading:"lazy"},null,8,ac)):(e.openBlock(),e.createElementBlock("div",oc,[...c[16]||(c[16]=[e.createElementVNode("svg",{viewBox:"0 0 24 24",class:"icon-5 icon-muted"},[e.createElementVNode("path",{fill:"currentColor",d:"M12 12a5 5 0 1 0-5-5a5 5 0 0 0 5 5m0 2c-4 0-8 2-8 4v2h16v-2c0-2-4-4-8-4Z"})],-1)])])),e.createElementVNode("div",rc,[t.ev.status!==void 0?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(["status-dot-avatar",(p=t.ev)!=null&&p.status?"status--up":"status--down"])},null,2)):e.createCommentVNode("",!0),e.createElementVNode("div",ic,[c[17]||(c[17]=e.createElementVNode("strong",null,"Status",-1)),c[18]||(c[18]=e.createElementVNode("br",null,null,-1)),e.createTextVNode(" "+e.toDisplayString(t.ev.status===!0?"Ativo":"Executado"),1)])])],4),e.createElementVNode("div",sc,[e.createElementVNode("div",lc,[e.createElementVNode("span",cc,e.toDisplayString(t.ev.contactName)+" • "+e.toDisplayString(t.ev.departmentName||"sem depto"),1),e.createElementVNode("span",dc,e.toDisplayString(t.ev.time),1)]),e.createElementVNode("div",uc,[e.createElementVNode("span",fc,[c[19]||(c[19]=e.createElementVNode("svg",{class:"icon-3","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"currentColor",viewBox:"0 0 24 24"},[e.createElementVNode("path",{"fill-rule":"evenodd",d:"M12 2a7 7 0 0 0-7 7 3 3 0 0 0-3 3v2a3 3 0 0 0 3 3h1a1 1 0 0 0 1-1V9a5 5 0 1 1 10 0v7.083A2.919 2.919 0 0 1 14.083 19H14a2 2 0 0 0-2-2h-1a2 2 0 0 0-2 2v1a2 2 0 0 0 2 2h1a2 2 0 0 0 1.732-1h.351a4.917 4.917 0 0 0 4.83-4H19a3 3 0 0 0 3-3v-2a3 3 0 0 0-3-3 7 7 0 0 0-7-7Zm1.45 3.275a4 4 0 0 0-4.352.976 1 1 0 0 0 1.452 1.376 2.001 2.001 0 0 1 2.836-.067 1 1 0 1 0 1.386-1.442 4 4 0 0 0-1.321-.843Z"})],-1)),e.createTextVNode(" "+e.toDisplayString(l(t.ev.scheduled_by)),1)])])])]),e.createElementVNode("p",mc,e.toDisplayString(t.ev.content||t.ev.title),1),t.viewOnly?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",hc,[i.value?(e.openBlock(),e.createElementBlock("button",{key:0,type:"button",class:"cyber-button cyber-button--sm cyber-button--primary",onClick:c[3]||(c[3]=k=>u.$emit("open-message",t.ev))},e.toDisplayString(((f=t.ev)==null?void 0:f.status)===!0?"Editar":"Visualizar"),1)):e.createCommentVNode("",!0),i.value?(e.openBlock(),e.createElementBlock("button",{key:1,onClick:c[4]||(c[4]=k=>u.$emit("delete-message",t.ev)),class:"cyber-button cyber-button--sm cyber-button--danger","aria-label":"Apagar evento",disabled:t.ev.deleteLoading||!t.ev.status},[t.ev.deleteLoading?(e.openBlock(),e.createElementBlock("div",gc)):e.createCommentVNode("",!0),c[20]||(c[20]=e.createTextVNode(" Apagar ",-1))],8,pc)):e.createCommentVNode("",!0),i.value?(e.openBlock(),e.createElementBlock("button",{key:2,type:"button",class:"cyber-button cyber-button--sm cyber-button--accent",onClick:c[5]||(c[5]=k=>u.$emit("open-chat",t.ev))}," Abrir conversa ")):e.createCommentVNode("",!0)]))],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createElementVNode("div",yc,[e.createElementVNode("span",{style:e.normalizeStyle({background:r.value}),class:"event-color-bar"},null,4),e.createElementVNode("div",kc,e.toDisplayString(d.value),1)]),e.createElementVNode("footer",xc,[e.createElementVNode("div",bc,[c[23]||(c[23]=e.createElementVNode("svg",{class:"icon-4","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"currentColor",viewBox:"0 0 24 24"},[e.createElementVNode("path",{"fill-rule":"evenodd",d:"M12 2a7 7 0 0 0-7 7 3 3 0 0 0-3 3v2a3 3 0 0 0 3 3h1a1 1 0 0 0 1-1V9a5 5 0 1 1 10 0v7.083A2.919 2.919 0 0 1 14.083 19H14a2 2 0 0 0-2-2h-1a2 2 0 0 0-2 2v1a2 2 0 0 0 2 2h1a2 2 0 0 0 1.732-1h.351a4.917 4.917 0 0 0 4.83-4H19a3 3 0 0 0 3-3v-2a3 3 0 0 0-3-3 7 7 0 0 0-7-7Zm1.45 3.275a4 4 0 0 0-4.352.976 1 1 0 0 0 1.452 1.376 2.001 2.001 0 0 1 2.836-.067 1 1 0 1 0 1.386-1.442 4 4 0 0 0-1.321-.843Z","clip-rule":"evenodd"})],-1)),e.createElementVNode("div",wc,[c[21]||(c[21]=e.createElementVNode("strong",null,"Agendado por",-1)),c[22]||(c[22]=e.createElementVNode("br",null,null,-1)),e.createTextVNode(" "+e.toDisplayString(l(t.ev.scheduled_by)),1)])]),e.createElementVNode("div",Ec,[t.ev.status!==void 0?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(["status-bar",(g=t.ev)!=null&&g.status?"status--up":"status--down"])},null,2)):e.createCommentVNode("",!0),e.createElementVNode("div",vc,[c[24]||(c[24]=e.createElementVNode("strong",null,"Status",-1)),c[25]||(c[25]=e.createElementVNode("br",null,null,-1)),e.createTextVNode(" "+e.toDisplayString(t.ev.status===!0?"Ativo":"Executado"),1)])]),e.createElementVNode("div",Cc,e.toDisplayString(t.ev.time),1),i.value?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:c[6]||(c[6]=k=>u.$emit("open-message",t.ev)),class:"cyber-button cyber-button--xs cyber-button--primary","aria-label":"Editar mensagem programada"},[((y=t.ev)==null?void 0:y.status)===!0?(e.openBlock(),e.createElementBlock("svg",Sc,[...c[26]||(c[26]=[e.createElementVNode("path",{fill:"currentColor","fill-rule":"evenodd",d:"M14 4.182A4.136 4.136 0 0 1 16.9 3c1.087 0 2.13.425 2.899 1.182A4.01 4.01 0 0 1 21 7.037c0 1.068-.43 2.092-1.194 2.849L18.5 11.214l-5.8-5.71 1.287-1.31.012-.012Zm-2.717 2.763L6.186 12.13l2.175 2.141 5.063-5.218-2.141-2.108Zm-6.25 6.886-1.98 5.849a.992.992 0 0 0 .245 1.026 1.03 1.03 0 0 0 1.043.242L10.282 19l-5.25-5.168Zm6.954 4.01 5.096-5.186-2.218-2.183-5.063 5.218 2.185 2.15Z","clip-rule":"evenodd"},null,-1)])])):(e.openBlock(),e.createElementBlock("svg",Bc,[...c[27]||(c[27]=[e.createElementVNode("path",{"fill-rule":"evenodd",d:"M4.998 7.78C6.729 6.345 9.198 5 12 5c2.802 0 5.27 1.345 7.002 2.78a12.713 12.713 0 0 1 2.096 2.183c.253 .344 .465 .682 .618 .997 .14 .286 .284 .658 .284 1.04s-.145 .754 -.284 1.04a6.6 6.6 0 0 1-.618 .997 12.712 12.712 0 0 1-2.096 2.183C17.271 17.655 14.802 19 12 19c-2.802 0-5.27-1.345-7.002-2.78a12.712 12.712 0 0 1-2.096-2.183 6.6 6.6 0 0 1-.618-.997C2.144 12.754 2 12.382 2 12s.145-.754 .284-1.04c.153-.315 .365-.653 .618-.997A12.714 12.714 0 0 1 4.998 7.78ZM12 15a3 3 0 1 0 0-6 3 3 0 0 0 0 6Z","clip-rule":"evenodd"},null,-1)])]))])):e.createCommentVNode("",!0),i.value?(e.openBlock(),e.createElementBlock("button",{key:1,onClick:c[7]||(c[7]=k=>u.$emit("delete-message",t.ev)),class:"cyber-button cyber-button--xs cyber-button--danger","aria-label":"Apagar evento",disabled:t.ev.deleteLoading||!t.ev.status},[t.ev.deleteLoading?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("svg",Mc,[...c[28]||(c[28]=[e.createElementVNode("path",{"fill-rule":"evenodd",d:"M8.586 2.586A2 2 0 0 1 10 2h4a2 2 0 0 1 2 2v2h3a1 1 0 1 1 0 2v12a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V8a1 1 0 0 1 0-2h3V4a2 2 0 0 1 .586-1.414ZM10 6h4V4h-4v2Zm1 4a1 1 0 1 0-2 0v8a1 1 0 1 0 2 0v-8Zm4 0a1 1 0 1 0-2 0v8a1 1 0 1 0 2 0v-8Z","clip-rule":"evenodd"},null,-1)])])),t.ev.deleteLoading?(e.openBlock(),e.createElementBlock("div",Nc)):e.createCommentVNode("",!0)],8,Vc)):e.createCommentVNode("",!0),e.createElementVNode("button",{class:"cyber-button cyber-button--xs cyber-button--accent",onClick:c[8]||(c[8]=k=>u.$emit("open-chat",t.ev)),"aria-label":"Abrir conversa"},[...c[29]||(c[29]=[e.createElementVNode("svg",{class:"icon-4",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},[e.createElementVNode("path",{fill:"currentColor","fill-rule":"evenodd",d:"M3.559 4.544c.355-.35.834-.544 1.33-.544H19.11c.496 0 .975.194 1.33.544.356.35.559.829.559 1.331v9.25c0 .502-.203.981-.559 1.331-.355.35-.834.544-1.33.544H15.5l-2.7 3.6a1 1 0 0 1-1.6 0L8.5 17H4.889c-.496 0-.975-.194-1.33-.544A1.868 1.868 0 0 1 3 15.125v-9.25c0-.502.203-.981.559-1.331ZM7.556 7.5a1 1 0 1 0 0 2h8a1 1 0 0 0 0-2h-8Zm0 3.5a1 1 0 1 0 0 2H12a1 1 0 1 0 0-2H7.556Z","clip-rule":"evenodd"})],-1)])])])],64))}}},[["__scopeId","data-v-ba8ebbe5"]]),St=new Map,pr=Dt.defineStore("scheduled",{state:()=>({baseUrl:P0,monthCache:{},loadingYM:new Set,errorByYM:{},loadedYM:new Set,filters:{}}),getters:{eventsOf:t=>n=>t.monthCache[n]||[],isLoading:t=>n=>t.loadingYM.has(n),errorOf:t=>n=>t.errorByYM[n]||""},actions:{setBaseUrl(t){this.baseUrl=t||"/crm_scheduled"},_setMonth(t,n){this.monthCache={...this.monthCache,[t]:n||[]}},_deleteMonth(t){const{[t]:n,...a}=this.monthCache;this.monthCache=a,this.loadingYM.delete(t);const{[t]:o,...r}=this.errorByYM;this.errorByYM=r,this.loadedYM.delete(t)},coerceHttps(t){return t&&t.startsWith("http://")?t.replace(/^http:\/\//i,"https://"):t},_appendMonth(t,n){if(!n||n.length===0)return;this.monthCache[t]||(this.monthCache[t]=[]);const a=new Set(this.monthCache[t].map(o=>o==null?void 0:o.id));for(const o of n)o&&(o.id&&a.has(o.id)||this.monthCache[t].push(o))},async ensureMonthLoaded(t){if(t||(t=Zt(new Date)),this.loadedYM.has(t))return;const n=`${this.baseUrl}|${t}`;if(St.has(n))return St.get(n);this.loadingYM.add(t),this.errorByYM={...this.errorByYM,[t]:""};const a=(async()=>{var o,r;try{const i=`${this.baseUrl}?year_month=${encodeURIComponent(t)}&page_size=10`,s=await Xe.get(i),l=Array.isArray(s==null?void 0:s.data)?s.data:((o=s==null?void 0:s.data)==null?void 0:o.results)||[],d=fr(l||[]);this._setMonth(t,d),this.loadedYM.add(t);let u=this.coerceHttps(((r=s==null?void 0:s.data)==null?void 0:r.next)||null);u&&(async()=>{var c,h;try{let m=u;for(;m;){const p=await Xe.get(m),f=Array.isArray(p==null?void 0:p.data)?p.data:((c=p==null?void 0:p.data)==null?void 0:c.results)||[],g=fr(f||[]);this._appendMonth(t,g),m=this.coerceHttps(((h=p==null?void 0:p.data)==null?void 0:h.next)||null)}}catch(m){console.warn("[scheduled] background paging error:",(m==null?void 0:m.message)||m)}})()}catch(i){const s=String((i==null?void 0:i.message)||i);throw this.errorByYM={...this.errorByYM,[t]:s},console.error("[scheduled] fetch error",t,s),this._setMonth(t,[]),this.loadedYM.delete(t),i}finally{St.delete(n),this.loadingYM.delete(t)}})();return St.set(n,a),a},async forceReload(t){t||(t=Zt(new Date));const n=`${this.baseUrl}|${t}`;St.delete(n),this._deleteMonth(t),this.loadedYM.delete(t),await this.ensureMonthLoaded(t)},findEventById(t){const n=String(t);for(const[a,o]of Object.entries(this.monthCache)){const r=(o||[]).findIndex(i=>{var d;const s=((d=i==null?void 0:i.raw)==null?void 0:d.id)!=null?String(i.raw.id):null,l=(i==null?void 0:i.id)!=null?String(i.id):null;return s===n||l===n});if(r!==-1)return{ym:a,idx:r}}return null},applyUpdateToCache({id:t,params:n}){var m,p,f,g,y,k,E,C,b,N,D,z,M;let a=null;if((m=n==null?void 0:n.schedule)!=null&&m.time){const x=n.schedule.time,T=/^(\d{4})-(\d{2})-(\d{2})(?:[ T](\d{2}):(\d{2}))?$/.exec(x);if(T){const[,B,V,S,v="00",P="00"]=T;a=new Date(Number(B),Number(V)-1,Number(S),Number(v),Number(P),0,0)}else{const B=typeof x=="string"&&!x.includes("T")?x.replace(" ","T"):x;a=new Date(B)}}console.log(n);const o=x=>{var T,B,V,S;return a instanceof Date&&!isNaN(a)&&(x.date=a,x.time=On(a)),((B=(T=n==null?void 0:n.message)==null?void 0:T[0])==null?void 0:B.content)!=null&&(x.content=n.message[0].content),x.raw=x.raw||{id:t},x.raw.params=x.raw.params||{},n!=null&&n.schedule&&(x.raw.params.schedule={...x.raw.params.schedule||{},...n.schedule}),n!=null&&n.scheduled_by&&(x.raw.params.scheduled_by=n.scheduled_by),n.department&&(x.raw.params.department=n.department),n!=null&&n.message&&(x.raw.params.message=n.message),Object.prototype.hasOwnProperty.call(n||{},"chat_id")&&(x.chatId=n.chat_id??x.chatId??""),n!=null&&n.entity&&(x.raw.params.entity={...x.raw.params.entity||{},...n.entity},Object.prototype.hasOwnProperty.call(n.entity,"name")&&(x.contactName=n.entity.name??x.contactName??"Cliente"),Object.prototype.hasOwnProperty.call(n.entity,"photo")&&(x.contactPhoto=n.entity.photo??x.contactPhoto??null,n.entity.photo&&(x.photo=n.entity.photo))),n!=null&&n.info&&(x.raw.params.info={...x.raw.params.info||{},...n.info},(V=n.info)!=null&&V.department&&Object.prototype.hasOwnProperty.call(n.info.department,"name")&&(x.departmentName=n.info.department.name??x.departmentName),(S=n.info)!=null&&S.instance&&(Object.prototype.hasOwnProperty.call(n.info.instance,"name")&&(x.instanceName=n.info.instance.name??x.instanceName),Object.prototype.hasOwnProperty.call(n.info.instance,"last_instance_status")&&(x.instanceStatus=n.info.instance.last_instance_status??x.instanceStatus))),Object.prototype.hasOwnProperty.call(n||{},"title")?x.title=n.title??x.title??"Mensagem programada":x.title=x.title||"Mensagem programada",Object.prototype.hasOwnProperty.call(n||{},"function")?(x.function=n.function??x.function??"scheduled_messages",x.type=n.function??x.type??"scheduled_messages"):(x.function=x.function||"scheduled_messages",x.type=x.type||"scheduled_messages"),x},r=this.findEventById(t);if(!r){const x=a instanceof Date&&!isNaN(a)?a:(()=>{var P;const S=(P=n==null?void 0:n.schedule)==null?void 0:P.time,v=typeof S=="string"&&!S.includes("T")?S.replace(" ","T"):S;return(mn==null?void 0:mn(v))||(v?new Date(v):new Date)})(),T=o({id:t,date:x,time:On(x),title:(n==null?void 0:n.title)||"Mensagem programada",type:(n==null?void 0:n.function)||"scheduled_messages",status:(n==null?void 0:n.status)||"true",scheduled_by:(n==null?void 0:n.scheduled_by)||null,function:(n==null?void 0:n.function)||"scheduled_messages",content:((f=(p=n==null?void 0:n.message)==null?void 0:p[0])==null?void 0:f.content)??"",raw:{id:t,params:n},contactName:((g=n==null?void 0:n.entity)==null?void 0:g.name)??"Cliente",contactPhoto:((y=n==null?void 0:n.entity)==null?void 0:y.photo)??null,departmentName:((E=(k=n==null?void 0:n.info)==null?void 0:k.department)==null?void 0:E.name)??null,departmentId:((b=(C=n==null?void 0:n.info)==null?void 0:C.department)==null?void 0:b.id)??null,instanceName:((D=(N=n==null?void 0:n.info)==null?void 0:N.instance)==null?void 0:D.name)??null,instanceStatus:((M=(z=n==null?void 0:n.info)==null?void 0:z.instance)==null?void 0:M.last_instance_status)??null,...Object.prototype.hasOwnProperty.call(n||{},"chat_id")&&{chatId:n.chat_id??""}}),B=Zt(T.date),V=this.monthCache[B]?[...this.monthCache[B],T]:[T];V.sort((S,v)=>S.date-v.date),this._setMonth(B,V);return}const{ym:i,idx:s}=r,l=this.monthCache[i]||[],d={...l[s]},u=o({...d}),c=u.date instanceof Date?u.date:d.date,h=Zt(c);if(h===i){const x=[...l];x.splice(s,1,u),x.sort((T,B)=>T.date-B.date),this._setMonth(i,x)}else{const x=l.slice(0,s).concat(l.slice(s+1)),T=this.monthCache[h]?[...this.monthCache[h],u]:[u];T.sort((B,V)=>B.date-V.date),this.monthCache={...this.monthCache,[i]:x,[h]:T}}},removeFromCache(t){const n=this.findEventById(t);if(!n)return!1;const{ym:a,idx:o}=n,r=this.monthCache[a]||[],i=r.slice(0,o).concat(r.slice(o+1));return this._setMonth(a,i),!0},insertNormalizedEvent(t){if(!t)return;const n=String(t.id),a=t.date instanceof Date?t.date:mn(t.date)||new Date,o=Zt(a),r={...t,id:n,date:a,time:t.time??On(a)},i=this.monthCache[o]?[...this.monthCache[o]]:[],s=i.findIndex(l=>{var d;return String(((d=l==null?void 0:l.raw)==null?void 0:d.id)??(l==null?void 0:l.id))===n});s!==-1?i.splice(s,1,r):i.push(r),i.sort((l,d)=>l.date-d.date),this._setMonth(o,i)},insertFromApiItem(t){const n=Ba(t);n&&this.insertNormalizedEvent(n)},insertManyFromApi(t=[]){for(const n of t){const a=Ba(n);a&&this.insertNormalizedEvent(a)}},insertFromApiPage(t){const n=Array.isArray(t)?t:(t==null?void 0:t.results)||[];this.insertManyFromApi(n)},insertFromParams(t){return this.applyUpdateToCache(t)},hasEvent(t){return!!this.findEventById(t)},resetAll(){var t;this.monthCache={},this.loadingYM=new Set,this.errorByYM={},this.loadedYM=new Set,(t=St.clear)==null||t.call(St)}}}),Ac={class:"cpk-header bg-base-200"},Tc={class:"left"},Dc=["title"],Lc={class:"right"},Fc=["title"],$c={class:"toggle"},Pc=["aria-pressed","title"],_c={key:0,class:"icon-5",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true"},Oc={key:1,class:"icon-5",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true"},Rc=we({__name:"CalHeader",props:{month:String,year:[String,Number],isCompact:Boolean,viewMode:{type:String,default:"calendar"},filterCount:{type:Number,default:0}},emits:["prev","next","today","toggle-compact","set-view-mode","close-page","open-filter"],setup(t){return(n,a)=>(e.openBlock(),e.createElementBlock("header",Ac,[e.createElementVNode("div",Tc,[e.createElementVNode("button",{onClick:a[0]||(a[0]=o=>n.$emit("close-page")),class:"cyber-button cyber-button--sm btn-ghost nav hide-md-up","aria-label":"Fechar"},[...a[8]||(a[8]=[e.createElementVNode("svg",{class:"icon-4",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true"},[e.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.createElementVNode("button",{type:"button",class:"cyber-button cyber-button--sm btn-ghost nav",onClick:a[1]||(a[1]=o=>n.$emit("prev")),"aria-label":"Mês anterior"},[...a[9]||(a[9]=[e.createElementVNode("svg",{class:"icon-4",viewBox:"0 0 24 24"},[e.createElementVNode("path",{fill:"currentColor",d:"M15.5 19 9 12l6.5-7 1.5 1.3L12.3 12l4.7 5.7z"})],-1),e.createElementVNode("span",{class:"label-md"},"Anterior",-1)])]),e.createElementVNode("button",{type:"button",class:"cyber-button cyber-button--sm cyber-button--accent today",onClick:a[2]||(a[2]=o=>n.$emit("today")),"aria-label":"Hoje"},[...a[10]||(a[10]=[e.createElementVNode("svg",{class:"icon-4",viewBox:"0 0 24 24","aria-hidden":"true"},[e.createElementVNode("path",{fill:"currentColor",d:"M11.6643 2.05648c.0197-.00699.1589-.05645.3357-.05645.1768 0 .316.04946.3357.05645l.0019.00067c.0461.01577.0846.03229.1092.04332.0514.02304.1015.04898.1449.07268.0896.04898.1957.11302.3102.18855.2291.15109.521.36725.8121.63689C14.247 3.49218 15 4.37 15 5.50003c0 1.12688-.7447 2.00396-1.2779 2.49995-.2531.23541-.5075.43043-.7221.57742V10h5c.5523 0 1 .4477 1 1v3h-4c-.0568 0-.1125.0048-.1667.0139-.0542-.0091-.1099-.0139-.1667-.0139H5v-3c0-.5523.44772-1 1-1h5V8.57622c-.2139-.14666-.4676-.34115-.7202-.57589C9.74664 7.50489 9 6.62764 9 5.50003c0-1.13003.753-2.00785 1.286-2.50144.2911-.26964.583-.4858.8121-.63689.1145-.07553.2206-.13957.3102-.18855.0434-.0237.0935-.04964.1449-.07268.0246-.01103.0631-.02755.1092-.04332l.0019-.00067ZM4 17.8377V21c0 .5523.44772 1 1 1h14c.5523 0 1-.4477 1-1v-2.8243c-.0609.0534-.1248.1054-.1917.1556-.56.42-1.274.6687-2.1416.6687-.8677 0-1.5817-.2487-2.1417-.6687-.281-.2108-.5081-.4531-.6917-.7045-.1835.2514-.4106.4937-.6917.7045-.5599.42-1.2739.6687-2.1416.6687-.8677 0-1.5817-.2487-2.14169-.6687-.20142-.1511-.37514-.3184-.52499-.4936-.14984.1752-.32356.3425-.52499.4936-.55999.42-1.27398.6687-2.14166.6687s-1.58168-.2487-2.14167-.6687c-.20143-.1511-.37515-.3184-.525-.4936ZM5.2078 16c.0124.0314.0255.0628.03934.0939.11841.2664.27553.4856.47786.6374.19001.1425.47602.2687.94167.2687s.75165-.1262.94166-.2687c.20234-.1518.35945-.371.47786-.6374.01384-.0311.02694-.0625.03934-.0939H5.2078Zm5.3727.0939c-.0139-.0311-.027-.0625-.0394-.0939h2.9177c-.0124.0314-.0255.0628-.0393.0939-.1184.2664-.2755.4856-.4779.6374-.19.1425-.476.2687-.9416.2687-.4657 0-.7517-.1262-.9417-.2687-.2023-.1518-.3594-.371-.4778-.6374Zm5.6666 0c-.0138-.0311-.0269-.0625-.0393-.0939h2.9177c-.0124.0314-.0255.0628-.0393.0939-.1184.2664-.2755.4856-.4779.6374-.19.1425-.476.2687-.9416.2687-.4657 0-.7517-.1262-.9417-.2687-.2023-.1518-.3594-.371-.4779-.6374Z"})],-1),e.createElementVNode("span",{class:"label-md"},"Hoje",-1)])]),e.createElementVNode("button",{type:"button",class:"cyber-button cyber-button--sm btn-ghost nav",onClick:a[3]||(a[3]=o=>n.$emit("next")),"aria-label":"Próximo mês"},[...a[11]||(a[11]=[e.createElementVNode("span",{class:"label-md"},"Próximo",-1),e.createElementVNode("svg",{class:"icon-4",viewBox:"0 0 24 24"},[e.createElementVNode("path",{fill:"currentColor",d:"M8 19l6.5-7L8 5l-1.5 1.3L11.7 12 6.5 17.7z"})],-1)])])]),e.createElementVNode("h2",{class:"month-title",title:`${t.month} ${t.year}`},e.toDisplayString(t.month)+" "+e.toDisplayString(t.year),9,Dc),e.createElementVNode("div",Lc,[e.createElementVNode("button",{type:"button",class:"cyber-button cyber-button--sm btn-ghost filter-btn",title:"Filtro de eventos",onClick:a[4]||(a[4]=o=>n.$emit("open-filter",o))},[a[12]||(a[12]=e.createElementVNode("svg",{class:"icon-5","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"currentColor",viewBox:"0 0 24 24"},[e.createElementVNode("path",{d:"M5.05 3C3.291 3 2.352 5.024 3.51 6.317l5.422 6.059v4.874c0 .472.227.917.613 1.2l3.069 2.25c1.01.742 2.454.036 2.454-1.2v-7.124l5.422-6.059C21.647 5.024 20.708 3 18.95 3H5.05Z"})],-1)),t.filterCount>0?(e.openBlock(),e.createElementBlock("span",{key:0,class:"filter-badge",title:`${t.filterCount} filtro${t.filterCount>1?"s":""} ativo${t.filterCount>1?"s":""}`},e.toDisplayString(t.filterCount),9,Fc)):e.createCommentVNode("",!0)]),e.createElementVNode("div",$c,[e.createElementVNode("button",{type:"button",class:e.normalizeClass(["cyber-button cyber-button--sm btn-ghost",t.viewMode==="calendar"?"is-active":""]),onClick:a[5]||(a[5]=o=>n.$emit("set-view-mode","calendar")),"aria-label":"Visão Calendário"},[...a[13]||(a[13]=[e.createElementVNode("svg",{class:"icon-5",viewBox:"0 0 24 24","aria-hidden":"true"},[e.createElementVNode("path",{fill:"currentColor","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-2Z","clip-rule":"evenodd"})],-1),e.createElementVNode("span",{class:"label-lg"},"Calendário",-1)])],2),e.createElementVNode("button",{type:"button",class:e.normalizeClass(["cyber-button cyber-button--sm btn-ghost",t.viewMode==="agenda"?"is-active":""]),onClick:a[6]||(a[6]=o=>n.$emit("set-view-mode","agenda")),"aria-label":"Visão Agenda"},[...a[14]||(a[14]=[e.createElementVNode("svg",{class:"icon-5",viewBox:"0 0 24 24","aria-hidden":"true"},[e.createElementVNode("path",{fill:"currentColor","fill-rule":"evenodd",d:"M11 4.717c-2.286-.58-4.16-.756-7.045-.71A1.99 1.99 0 0 0 2 6v11c0 1.133.934 2.022 2.044 2.007 2.759-.38 4.5-.182 6.956.449V4.717Zm2 15.081c2.456-.631 4.198-.829 6.956-.791A2.013 2.013 0 0 0 22 16.999V6a1.99 1.99 0 0 0-1.955-1.993c-2.885-.046-4.76.13-7.045.71v15.081Z","clip-rule":"evenodd"})],-1),e.createElementVNode("span",{class:"label-lg"},"Agenda",-1)])],2)]),e.createElementVNode("button",{type:"button",class:"cyber-button cyber-button--sm show-lg btn-ghost",onClick:a[7]||(a[7]=o=>n.$emit("toggle-compact")),"aria-pressed":t.isCompact,title:t.isCompact?"Sair do modo compacto":"Ativar modo compacto"},[t.isCompact?(e.openBlock(),e.createElementBlock("svg",Oc,[...a[16]||(a[16]=[e.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"},null,-1)])])):(e.openBlock(),e.createElementBlock("svg",_c,[...a[15]||(a[15]=[e.createElementVNode("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M4 8h4V4m12 4h-4V4M4 16h4v4m12-4h-4v4"},null,-1)])]))],8,Pc)])]))}},[["__scopeId","data-v-37b625a5"]]),Hc=["title"],zc={class:"week-header"},jc=we({__name:"WeekDays",props:{weekDays:{type:Array,default:()=>[]},month:String,year:[String,Number]},setup(t){return(n,a)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("h2",{class:"month-title",title:`${t.month} ${t.year}`},e.toDisplayString(t.month)+" "+e.toDisplayString(t.year),9,Hc),e.createElementVNode("div",zc,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.weekDays,o=>(e.openBlock(),e.createElementBlock("div",{key:o,class:"week-cell"},e.toDisplayString(o),1))),128))])],64))}},[["__scopeId","data-v-756165d9"]]),Gc=["onClick"],Ic={key:0,class:"cell-today-indicator show-lg"},qc={class:"cell-top"},Wc={class:"day-number"},Uc={key:1,class:"more"},Zc={class:"bars-wrap"},Yc=4,Xc=8,gr=4,yr=2,Kc=1,Qc=we({__name:"CalendarGrid",props:{startOffset:Number,monthDays:Array,viewDate:Date,isCompact:Boolean,isSameMonthFn:Function,isSelectedDayFn:Function,isTodayFn:Function,selectDayFn:Function,eventsByDayFn:Function,dayEventCountFn:Function,eventBarsToShowFn:Function,dayEventOverflowFn:Function},setup(t){const n=t,a=e.ref({}),o=new Map;function r(f){const g=(f==null?void 0:f.clientWidth)||0,y=(f==null?void 0:f.clientHeight)||0;if(!g||!y)return{cols:0,rows:0,widths:[],sum:0};const k=Math.max(0,Math.floor((g+gr)/(Yc+gr))),E=Math.max(0,Math.floor((y+yr)/(Xc+yr))),C=l(k,E),b=C.reduce((N,D)=>N+D,0);return{cols:k,rows:E,widths:C,sum:b}}function i(f,g){const y=r(g),k=a.value[f];(!k||k.cols!==y.cols||k.rows!==y.rows||k.sum!==y.sum)&&(a.value={...a.value,[f]:y})}function s(f,g){if(!g){const k=o.get(f);if(k&&(k.disconnect(),o.delete(f)),a.value[f]!=null){const E={...a.value};delete E[f],a.value=E}return}i(f,g);const y=new ResizeObserver(()=>i(f,g));y.observe(g),o.set(f,y)}e.onBeforeUnmount(()=>{o.forEach(f=>f.disconnect()),o.clear()});function l(f,g){if(f<=0||g<=0)return[];const y=[],k=.25;for(let E=0;E<g;E++){const C=E/Math.max(1,g-1),b=k+(1-k)*C,N=Math.max(1,Math.round(f*b));y.push(Math.min(N,f))}return y}function d(f,g){var b;const y=(typeof n.dayEventCountFn=="function"?n.dayEventCountFn(g):0)||0,k=((b=a.value[f])==null?void 0:b.sum)??0;if(y<=k)return{bars:y,overflow:0};const E=Math.max(0,k-Kc),C=Math.max(0,y-E);return{bars:E,overflow:C}}function u(f,g){const y=a.value[f];if(!y||y.rows===0||y.cols===0)return[];const{widths:k}=y,C=d(f,g).bars,b=(typeof n.eventsByDayFn=="function"?n.eventsByDayFn(g).slice(0,C):[])||[],N=k.map(()=>[]);let D=0;for(let z=k.length-1;z>=0&&D<b.length;z--){const M=Math.min(k[z],b.length-D);N[z]=b.slice(D,D+M),D+=M}return N}const c=e.ref(null);function h(f){return f&&f.nodeType===1&&typeof f.getBoundingClientRect=="function"}function m(f){if(!h(f))return;const g=c.value,y=g&&h(g)?g:f.offsetParent;if(!h(y))return;let k,E;try{k=f.getBoundingClientRect(),E=y.getBoundingClientRect()}catch{return}const C=y.scrollLeft||0,b=y.scrollTop||0;f.style.position="absolute",f.style.zIndex="0",f.style.top=`${k.top-E.top+b}px`,f.style.left=`${k.left-E.left+C}px`,f.style.width=`${k.width}px`,f.style.height=`${k.height}px`,f.style.pointerEvents="none"}function p(f){!f||!f.style||requestAnimationFrame(()=>{!f||!f.style||(f.style.position="",f.style.zIndex="",f.style.top="",f.style.left="",f.style.width="",f.style.height="",f.style.pointerEvents="")})}return(f,g)=>(e.openBlock(),e.createBlock(e.TransitionGroup,{name:"cal-fade","move-class":"cal-move",tag:"div",class:"cal-grid calendar-grid",appear:"",ref_key:"gridRef",ref:c,onBeforeLeave:m,onAfterLeave:p},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.startOffset,y=>(e.openBlock(),e.createElementBlock("div",{key:"x"+y,class:"cal-cell day-empty bg-base-300 border border-base-100"}))),128)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.monthDays,(y,k)=>(e.openBlock(),e.createElementBlock("div",{key:y.key,style:e.normalizeStyle({"--i":k}),class:e.normalizeClass(["cal-cell day-cell border border-base-100 bg-base-200 hover:bg-base-100",[t.isSameMonthFn(y.date,t.viewDate)?"":"opacity-60",t.isSelectedDayFn(y.date)?"neon-selected":"",t.isTodayFn(y.date)?"is-today":"",t.dayEventCountFn(y.date)>0?"has-events":""]]),onClick:E=>t.selectDayFn(y.date)},[t.isTodayFn(y.date)?(e.openBlock(),e.createElementBlock("div",Ic," Hoje ")):e.createCommentVNode("",!0),e.createElementVNode("div",qc,[e.createElementVNode("span",Wc,e.toDisplayString(y.date.getDate()),1)]),d(y.key,y.date).overflow>0?(e.openBlock(),e.createElementBlock("span",Uc," +"+e.toDisplayString(d(y.key,y.date).overflow),1)):e.createCommentVNode("",!0),e.createElementVNode("div",Zc,[e.createElementVNode("div",{class:"bars-vert",ref_for:!0,ref:E=>s(y.key,E)},[d(y.key,y.date).bars>0?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(u(y.key,y.date),(E,C)=>(e.openBlock(),e.createElementBlock("div",{key:"vrow"+C,class:"vrow"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(E,(b,N)=>(e.openBlock(),e.createElementBlock("span",{key:"vbar"+C+"-"+N,class:"vbar",style:e.normalizeStyle({background:e.unref(Rn)(b),boxShadow:`0 0 8px ${e.unref(Rn)(b)}70`})},null,4))),128))]))),128)):e.createCommentVNode("",!0)],512)])],14,Gc))),128))]),_:1},512))}},[["__scopeId","data-v-26af06b5"]]),Jc={class:"agenda-section"},ed={key:0,class:"empty-state"},td={key:1,class:"day-list"},nd={class:"date-trail"},ad={class:"weekday-short"},od={class:"date-pill bg-base-200 border border-base-300"},rd={class:"date-pill-month"},id={class:"date-pill-day"},sd={class:"content-col"},ld={class:"day-header"},cd={class:"agenda-title"},dd={class:"month-header-text"},ud={class:"events-list"},fd=we({__name:"AgendaList",props:{days:{type:Array,default:()=>[]},weekdayLong:Function,weekdayShort:Function,monthShort:Function,monthLabelOf:Function,year:Number},emits:["open-chat","open-message","delete-message"],setup(t,{emit:n}){return(a,o)=>(e.openBlock(),e.createElementBlock("section",Jc,[t.days.length===0?(e.openBlock(),e.createElementBlock("div",ed," Sem eventos neste mês. ")):(e.openBlock(),e.createElementBlock("ul",td,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.days,r=>{var i;return e.openBlock(),e.createElementBlock("li",{key:r.key,class:"day-item border-base-200"},[e.createElementVNode("div",nd,[e.createElementVNode("div",ad,e.toDisplayString(t.weekdayShort(r.date)),1),e.createElementVNode("div",od,[e.createElementVNode("div",rd,e.toDisplayString(t.monthShort(r.date)),1),e.createElementVNode("div",id,e.toDisplayString(r.date.getDate()),1),e.createElementVNode("div",{style:e.normalizeStyle({background:e.unref(Rn)(((i=r.events)==null?void 0:i[0])||{})}),class:"date-pill-dot"},null,4)])]),e.createElementVNode("div",sd,[e.createElementVNode("div",ld,[e.createElementVNode("h3",cd,e.toDisplayString(t.weekdayLong(r.date).toUpperCase())+" "+e.toDisplayString(r.date.getDate()),1),e.createElementVNode("div",dd,e.toDisplayString(t.monthLabelOf(r.date).toUpperCase())+" "+e.toDisplayString(t.year),1)]),e.createElementVNode("ul",ud,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.events,s=>(e.openBlock(),e.createElementBlock("li",{key:s.id,class:"event-item border border-base-100 bg-base-200 hover:bg-base-100"},[e.createVNode(Va,{ev:s,mode:"agenda",onOpenMessage:o[0]||(o[0]=l=>a.$emit("open-message",l)),onOpenChat:o[1]||(o[1]=l=>a.$emit("open-chat",l)),onDeleteMessage:o[2]||(o[2]=l=>a.$emit("delete-message",l))},null,8,["ev"])]))),128))])])])}),128))]))]))}},[["__scopeId","data-v-2c977f25"]]),md=["data-mode","data-empty"],hd=["disabled"],kr=we({__name:"EventsList",props:{loading:{type:Boolean,default:!1},selectedLabel:{type:String,default:""},selectedLabelLong:{type:String,default:""},events:{type:Array,default:()=>[]},mode:{type:String,default:"compact"}},emits:["reload","open-chat","open-message","delete-message"],setup(t){const n=t,a=e.computed(()=>n.mode==="compact"?n.selectedLabelLong||"Hoje":`Eventos em ${n.selectedLabel||"—"}`);return(o,r)=>(e.openBlock(),e.createElementBlock("section",{class:e.normalizeClass(["bg-base-300 daylist",[t.mode==="compact"?"daylist--compact has-border border-base-200":"daylist--sidebar has-border border-base-200 supports-blur",{"daylist--tight":t.mode==="compact"&&!t.loading&&t.events.length===0}]]),"data-mode":t.mode,"data-empty":!t.loading&&t.events.length===0?"1":"0"},[e.createElementVNode("div",{class:e.normalizeClass(["daylist-header",t.mode==="compact"?"daylist-header--compact bg-base-300":"daylist-header--sidebar bg-base-300"])},[e.createElementVNode("h3",{class:e.normalizeClass(t.mode==="compact"?"daylist-title--compact":"daylist-title--sidebar")},e.toDisplayString(a.value),3),e.createElementVNode("button",{type:"button",class:"cyber-button cyber-button--sm cyber-button--accent",onClick:r[0]||(r[0]=i=>o.$emit("reload")),disabled:t.loading},e.toDisplayString(t.loading?"Atualizando…":"Atualizar"),9,hd)],2),t.loading?(e.openBlock(),e.createBlock(e.Transition,{key:0,name:"fade"},{default:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass(["loading-text",t.mode==="compact"?"is-compact":"is-sidebar"])}," Carregando… ",2)]),_:1})):t.events.length===0?(e.openBlock(),e.createBlock(e.Transition,{key:1,name:"fade"},{default:e.withCtx(()=>[...r[4]||(r[4]=[e.createElementVNode("div",{class:"empty-text"},"Sem eventos.",-1)])]),_:1})):(e.openBlock(),e.createBlock(e.TransitionGroup,{key:2,name:"list","move-class":"list-move",tag:"ul",appear:"",class:e.normalizeClass([t.mode==="compact"?"list-compact has-border border-base-300 bg-base-200 supports-blur":"list-sidebar"])},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.events,(i,s)=>(e.openBlock(),e.createElementBlock("li",{key:i.id,style:e.normalizeStyle({"--i":s}),class:e.normalizeClass(t.mode==="compact"?"item-compact hover:bg-base-100":"item-sidebar hover:z-10 has-border hover:bg-base-100 border-base-100 bg-base-200 ")},[e.createVNode(Va,{ev:i,mode:t.mode==="compact"?"compact":"sidebar",onOpenMessage:r[1]||(r[1]=l=>o.$emit("open-message",l)),onOpenChat:r[2]||(r[2]=l=>o.$emit("open-chat",l)),onDeleteMessage:r[3]||(r[3]=l=>o.$emit("delete-message",l))},null,8,["ev","mode"])],6))),128))]),_:1},8,["class"]))],10,md))}},[["__scopeId","data-v-4ecbf2a5"]]),pd={class:"cpk-popover__header border-base-100"},gd={class:"filter-body"},yd={class:"row"},kd=["checked"],xd={class:"row row--status",role:"group","aria-label":"Filtrar por status de execução"},bd={class:"status-wrap"},wd={class:"seg"},Ed=we({__name:"CalFilter",props:{open:{type:Boolean,default:!1},anchorEl:{type:[HTMLElement,Object],default:null},offset:{type:Number,default:8},align:{type:String,default:"center"},filters:{type:Object,default:()=>({})}},emits:["close","update:filters"],setup(t,{emit:n}){const a=t,o=n,r=Yt(),i=e.computed(()=>r.attendants.find(M=>M.is_me)||null),s=e.reactive({onlyMine:!1,status:null});e.watch(()=>a.open,async M=>{var B,V,S;if(!M)return;await e.nextTick();const x=(B=i.value)!=null&&B.id?String(i.value.id):null;s.onlyMine=!!x&&String(((V=a.filters)==null?void 0:V.scheduled_by)??"")===x;const T=(S=a.filters)==null?void 0:S.status;s.status=T===!0||T===!1?T:null,y()},{immediate:!1});function l(M,x){if(!M)return{};const{[x]:T,...B}=M;return B}function d(M){var T;s.onlyMine=!!M.target.checked;const x=(T=i.value)!=null&&T.id?String(i.value.id):null;s.onlyMine&&x?o("update:filters",{...a.filters,scheduled_by:x}):o("update:filters",l(a.filters,"scheduled_by"))}function u(M){if(s.status===M){s.status=null;const x=l(a.filters,"status");o("update:filters",x)}else s.status=M,o("update:filters",{...a.filters,status:M})}const c=e.ref(null),h=e.ref({left:0,top:0,placed:"bottom"}),m=e.computed(()=>({position:"fixed",left:`${h.value.left}px`,top:`${h.value.top}px`}));function p(){const M=a.anchorEl instanceof Element?a.anchorEl:null;if(M!=null&&M.getBoundingClientRect)return M.getBoundingClientRect();const x=window.innerWidth/2,T=window.innerHeight/3;return{left:x,right:x,top:T,bottom:T,width:0,height:0}}function f(M,x,T,B){return{left:Math.max(8,Math.min(M,window.innerWidth-T-8)),top:Math.max(8,Math.min(x,window.innerHeight-B-8))}}function g(){const M=p(),x=c.value,T=(x==null?void 0:x.offsetWidth)??300,B=(x==null?void 0:x.offsetHeight)??220;let V=M.bottom+a.offset,S;if(a.align==="center"?S=M.left+M.width/2-T/2:a.align==="end"?S=M.right-T:S=M.left,V+B>window.innerHeight-4){const P=M.top-B-a.offset;P>=4?(V=P,h.value.placed="top"):h.value.placed="bottom"}else h.value.placed="bottom";const v=f(S,V,T,B);h.value={left:v.left,top:v.top,placed:h.value.placed}}function y(){g(),requestAnimationFrame(g)}let k,E,C=[];function b(){N(),C=[window];const M=a.anchorEl instanceof Element?a.anchorEl:null;let x=M==null?void 0:M.parentElement;for(;x&&x!==document.body;){const T=getComputedStyle(x);/(auto|scroll)/.test(T.overflow+T.overflowY+T.overflowX)&&C.push(x),x=x.parentElement}C.forEach(T=>T.addEventListener("scroll",y,{passive:!0}))}function N(){C.forEach(M=>{var x;return(x=M.removeEventListener)==null?void 0:x.call(M,"scroll",y)}),C=[]}e.watch(()=>a.open,async M=>{var T,B,V,S;if(!M){N(),(T=k==null?void 0:k.disconnect)==null||T.call(k),(B=E==null?void 0:E.disconnect)==null||B.call(E);return}await e.nextTick(),y(),b(),(V=k==null?void 0:k.disconnect)==null||V.call(k),k=new ResizeObserver(y),k.observe(document.body),(S=E==null?void 0:E.disconnect)==null||S.call(E);const x=a.anchorEl instanceof Element?a.anchorEl:null;x&&(E=new ResizeObserver(y),E.observe(x)),window.addEventListener("resize",y)}),e.watch(()=>a.anchorEl,async()=>{a.open&&(await e.nextTick(),b(),y())});function D(M){M.key==="Escape"&&o("close")}function z(M){if(!a.open)return;const x=M.target,T=c.value;if(T&&T.contains(x))return;const B=a.anchorEl instanceof Element?a.anchorEl:null;B&&B.contains&&B.contains(x)||o("close")}return e.onMounted(()=>{document.addEventListener("pointerdown",z,!0),window.addEventListener("keydown",D)}),e.onBeforeUnmount(()=>{var M,x;document.removeEventListener("pointerdown",z,!0),window.removeEventListener("keydown",D),N(),(M=k==null?void 0:k.disconnect)==null||M.call(k),(x=E==null?void 0:E.disconnect)==null||x.call(E)}),(M,x)=>(e.openBlock(),e.createBlock(e.Transition,{name:"cpk-layer",appear:""},{default:e.withCtx(()=>[t.open?(e.openBlock(),e.createElementBlock("div",{key:0,class:"cpk-popover-layer",onMousedown:x[4]||(x[4]=e.withModifiers(T=>M.$emit("close"),["self"]))},[e.createVNode(e.Transition,{name:"cpk-card",appear:""},{default:e.withCtx(()=>[e.createElementVNode("div",{ref_key:"card",ref:c,class:"cpk-popover bg-base-300",style:e.normalizeStyle(m.value),role:"dialog","aria-modal":"true","aria-label":"Filtro de eventos"},[e.createElementVNode("div",pd,[x[5]||(x[5]=e.createElementVNode("div",{class:"cpk-popover__icon","aria-hidden":"true"},"⚙",-1)),x[6]||(x[6]=e.createElementVNode("h3",{class:"cpk-popover__title"},"Filtros",-1)),e.createElementVNode("button",{class:"cpk-popover__close",type:"button",onClick:x[0]||(x[0]=T=>M.$emit("close")),"aria-label":"Fechar"}," × ")]),e.createElementVNode("div",gd,[e.createElementVNode("label",yd,[e.createElementVNode("input",{class:"switch",type:"checkbox",checked:s.onlyMine,onChange:x[1]||(x[1]=T=>d(T)),"aria-label":"Exibir somente meus eventos"},null,40,kd),x[7]||(x[7]=e.createElementVNode("span",{class:"label-cpk"},"Exibir somente meus eventos",-1))]),e.createElementVNode("div",xd,[x[9]||(x[9]=e.createElementVNode("span",{class:"status-icon","aria-hidden":"true"},[e.createElementVNode("svg",{class:"icon-4","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"currentColor",viewBox:"0 0 24 24"},[e.createElementVNode("path",{"fill-rule":"evenodd",d:"M12 2a1 1 0 0 1 .932.638l7 18a1 1 0 0 1-1.326 1.281L13 19.517V13a1 1 0 1 0-2 0v6.517l-5.606 2.402a1 1 0 0 1-1.326-1.281l7-18A1 1 0 0 1 12 2Z","clip-rule":"evenodd"})])],-1)),e.createElementVNode("div",bd,[x[8]||(x[8]=e.createElementVNode("div",{class:"label-cpk"},[e.createTextVNode(" Status "),e.createElementVNode("span",{class:"sched-pop",tabindex:"0","aria-label":"Ajuda sobre status"},[e.createElementVNode("span",{class:"sched-pop__mark"},[e.createElementVNode("svg",{class:"icon-4","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"currentColor",viewBox:"0 0 24 24"},[e.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 12Zm9.008-3.018a1.502 1.502 0 0 1 2.522 1.159v.024a1.44 1.44 0 0 1-1.493 1.418 1 1 0 0 0-1.037.999V14a1 1 0 1 0 2 0v-.539a3.44 3.44 0 0 0 2.529-3.256 3.502 3.502 0 0 0-7-.255 1 1 0 0 0 2 .076c.014-.398.187-.774.48-1.044Zm.982 7.026a1 1 0 1 0 0 2H12a1 1 0 1 0 0-2h-.01Z","clip-rule":"evenodd"})])]),e.createElementVNode("div",{class:"sched-pop__card bg-base-300",style:{"--popover-brd":"var(--cyber-border)",transform:"translate(-5%, -50%) scale(0.98)"}},[e.createElementVNode("div",null,[e.createElementVNode("span",{style:{"font-weight":"600"}},"Ativos:"),e.createTextVNode(" Eventos que estão programados para ocorrer ")]),e.createElementVNode("div",null,[e.createElementVNode("span",{style:{"font-weight":"600"}},"Executados:"),e.createTextVNode(" Eventos que já ocorreram ")])])])],-1)),e.createElementVNode("div",wd,[e.createElementVNode("button",{type:"button",class:e.normalizeClass(["cyber-button cyber-button--xs btn-ghost",s.status===!0?"is-active":""]),onClick:x[2]||(x[2]=T=>u(!0)),"aria-pressed":"state.status === true"}," Ativos ",2),e.createElementVNode("button",{type:"button",class:e.normalizeClass(["cyber-button cyber-button--xs btn-ghost",s.status===!1?"is-active":""]),onClick:x[3]||(x[3]=T=>u(!1)),"aria-pressed":"state.status === false"}," Executados ",2)])])])])],4)]),_:1})],32)):e.createCommentVNode("",!0)]),_:1}))}},[["__scopeId","data-v-0aad9d42"]]),vd={class:"calendar-content"},Cd={class:"calendar-stage-main"},Sd={key:0},xr=we({__name:"scheduledCalendar",props:{sourceUrl:{type:String,default:"/crm_scheduled"},initialDate:{type:[String,Date],default:()=>new Date}},emits:["open-chat","loaded","open-message","close-page"],setup(t,{expose:n,emit:a}){const o=t,r=pr();r.setBaseUrl(o.sourceUrl);const i=new Date,s=e.ref(u(o.initialDate)),l=e.ref(new Date(i.getFullYear(),i.getMonth(),i.getDate())),d=e.ref("calendar");function u(w){if(w instanceof Date)return new Date(w.getFullYear(),w.getMonth(),1);if(typeof w=="string"){const[L,X]=w.split("-").map(ne=>parseInt(ne,10));return new Date(L||i.getFullYear(),(X||i.getMonth()+1)-1,1)}return new Date(i.getFullYear(),i.getMonth(),1)}function c(w){return new Date(w.getFullYear(),w.getMonth()+1,0).getDate()}function h(w){return new Date(w.getFullYear(),w.getMonth(),1).getDay()}function m(w,L){return w.getFullYear()===L.getFullYear()&&w.getMonth()===L.getMonth()}function p(w){return Sa(w,i)}function f(w){return Sa(w,l.value)}function g(w){l.value=new Date(w.getFullYear(),w.getMonth(),w.getDate()),m(w,s.value)||(s.value=new Date(w.getFullYear(),w.getMonth(),1))}function y(){s.value=new Date(s.value.getFullYear(),s.value.getMonth()-1,1)}function k(){s.value=new Date(s.value.getFullYear(),s.value.getMonth()+1,1)}function E(){s.value=new Date(i.getFullYear(),i.getMonth(),1),l.value=new Date(i.getFullYear(),i.getMonth(),i.getDate())}const C=["janeiro","fevereiro","março","abril","maio","junho","julho","agosto","setembro","outubro","novembro","dezembro"],b=["DOM","SEG","TER","QUA","QUI","SEX","SÁB"],N=e.computed(()=>v(C[s.value.getMonth()])),D=e.computed(()=>s.value.getFullYear()),z=e.computed(()=>x(l.value)),M=e.computed(()=>`${T(l.value)} ${l.value.getDate()}`);function x(w){return`${String(w.getDate()).padStart(2,"0")}/${String(w.getMonth()+1).padStart(2,"0")}/${w.getFullYear()}`}function T(w){return["DOMINGO","SEGUNDA","TERÇA","QUARTA","QUINTA","SEXTA","SÁBADO"][w.getDay()]}function B(w){return["DOM","SEG","TER","QUA","QUI","SEX","SÁB"][w.getDay()]}function V(w){return["JAN","FEV","MAR","ABR","MAI","JUN","JUL","AGO","SET","OUT","NOV","DEZ"][w.getMonth()]}function S(w){return C[w.getMonth()]}function v(w){return w.charAt(0).toUpperCase()+w.slice(1)}const P=e.computed(()=>h(s.value)),Z=e.computed(()=>{const w=c(s.value);return Array.from({length:w},(L,X)=>{const ne=X+1,se=new Date(s.value.getFullYear(),s.value.getMonth(),ne);return{key:`d${ne}`,date:se}})}),Q=e.ref({open:!1,anchorEl:null});function J(w){Q.value.open=!0,Q.value.anchorEl=(w==null?void 0:w.currentTarget)||null}const{filters:_}=Dt.storeToRefs(r),R=e.computed(()=>Zt(s.value)),O=e.computed(()=>r.eventsOf(R.value)),oe={scheduled_by:w=>{var ne,se,fe;const L=(w==null?void 0:w.scheduled_by)??((se=(ne=w==null?void 0:w.raw)==null?void 0:ne.params)==null?void 0:se.scheduled_by)??((fe=w==null?void 0:w.raw)==null?void 0:fe.scheduled_by)??(w==null?void 0:w.created_by)??(w==null?void 0:w.attendant_id),X=typeof L=="object"&&L?L.id??L.attendant_id:L;return X!=null?String(X):""}};function de(w,L){const X=(L==null?void 0:L.value)??L;return!X||typeof X!="object"?!0:Object.entries(X).every(([ne,se])=>{var Ce,Le,xe;if(se==null||se===""||Array.isArray(se)&&se.length===0)return!0;const fe=oe[ne],me=(fe==null?void 0:fe(w))??(w==null?void 0:w[ne])??((Ce=w==null?void 0:w.raw)==null?void 0:Ce[ne])??((xe=(Le=w==null?void 0:w.raw)==null?void 0:Le.params)==null?void 0:xe[ne])??null,be=typeof me=="string"?me:me??"";if(typeof se=="function")return!!se(be,w);if(Array.isArray(se))return se.map(String).includes(String(be));if(typeof se=="object"){const{in:A,notIn:H,range:j,contains:F}=se;if(A&&!A.map(String).includes(String(be))||H&&H.map(String).includes(String(be)))return!1;if(j&&typeof be=="number"){const[G,W]=j;if(G!=null&&be<G||W!=null&&be>W)return!1}if(F!=null){const G=Array.isArray(be)?be:String(be).split(",");if(!(Array.isArray(F)?F:[F]).some(ee=>G.map(String).includes(String(ee))))return!1}return!0}return String(be)===String(se)})}const pe=e.computed(()=>(O.value||[]).filter(L=>de(L,_)));function ye(w){return pe.value.filter(L=>Sa(L.date,w))}const Ve=e.computed(()=>ye(l.value)),Fe=e.computed(()=>[...Ve.value].sort((w,L)=>w.date-L.date));function Ae(w){return ye(w).length}function qe(w){return Math.min(3,Ae(w))}function Oe(w){const L=Ae(w);return L>3?L-3:0}const $e=e.computed(()=>{const w=s.value.getFullYear(),L=s.value.getMonth(),X=new Map;for(const se of pe.value){const fe=se==null?void 0:se.date;if(!(fe instanceof Date)||fe.getFullYear()!==w||fe.getMonth()!==L)continue;const me=`${w}-${L+1}-${fe.getDate()}`;X.has(me)||X.set(me,{key:`ag-${me}`,date:new Date(w,L,fe.getDate()),events:[]}),X.get(me).events.push(se)}const ne=Array.from(X.values());for(const se of ne)se.events.sort((fe,me)=>fe.date-me.date);return ne.sort((se,fe)=>se.date-fe.date),ne}),_e=e.ref(!1),ze=e.ref(!1),q=e.computed(()=>ze.value||_e.value),re=e.computed(()=>q?"calendar-stage--compact":"calendar-stage--single");function he(){var X;const w=window.matchMedia("(max-width: 1280px)"),L=()=>ze.value=w.matches;L(),(X=w.addEventListener)==null||X.call(w,"change",L)}const ae=e.computed(()=>r.isLoading(R.value));e.computed(()=>r.errorOf(R.value));const K=e.ref({open:!1,loading:!1,context:null,title:"Confirmar exclusão",description:"Tem certeza que deseja apagar este item?",destructive:!0,anchorEl:null,confirmLabel:"Apagar",cancelLabel:"Cancelar",loadingLabel:"Apagando…"});function ce(w,L){K.value.open=!0,K.value.context={action:"delete-message",event:w},K.value.title="Confirmar exclusão",K.value.description="Tem certeza que deseja apagar este evento?",K.value.anchorEl=L&&L.currentTarget||typeof document<"u"&&document.activeElement||null,K.value.destructive=!0,K.value.confirmLabel="Apagar",K.value.loadingLabel="Apagando…"}async function $(w){if(w)try{K.value.loading=!0,w.action==="delete-message"&&await Y(w.event)}finally{K.value.loading=!1,K.value.open=!1,K.value.context=null}}function I(){K.value.open=!1,K.value.context=null}async function te(){await r.forceReload(R.value)}async function Y(w){var L;try{w.deleteLoading=!0;const X=((L=w==null?void 0:w.raw)==null?void 0:L.id)??(w==null?void 0:w.id)??w;if(X==null)throw new Error("Evento inválido para exclusão");const ne=await O2($0,w);return ne!=null&&ne.ok&&(r.removeFromCache(String(X))||await r.forceReload(R.value)),ne}catch(X){return console.error(X),null}finally{w.deleteLoading=!1}}return e.onMounted(async()=>{if(he(),await r.ensureMonthLoaded(R.value),!ye(l.value).length&&pe.value.length){const w=pe.value[0];l.value=new Date(w.date.getFullYear(),w.date.getMonth(),w.date.getDate())}}),e.watch(()=>o.sourceUrl,async w=>{if(r.setBaseUrl(w),r.resetAll(),await r.ensureMonthLoaded(R.value),!ye(l.value).length&&pe.value.length){const L=pe.value[0];l.value=new Date(L.date.getFullYear(),L.date.getMonth(),L.date.getDate())}}),e.watch(R,async()=>{const w=s.value.getFullYear(),L=s.value.getMonth(),X=Math.min(l.value.getDate(),c(s.value));if(l.value=new Date(w,L,X),await r.ensureMonthLoaded(R.value),!ye(l.value).length&&pe.value.length){const ne=pe.value[0];l.value=new Date(ne.date.getFullYear(),ne.date.getMonth(),ne.date.getDate())}}),n({updateEvent:r.applyUpdateToCache}),(w,L)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{class:e.normalizeClass(["calendar-main bg-base-300",{"calendar-main--compact":q.value}])},[e.createElementVNode("div",vd,[L[15]||(L[15]=e.createElementVNode("div",{class:"cyber-glow-overlay"},null,-1)),e.createVNode(Rc,{month:N.value,year:D.value,"is-compact":q.value,"view-mode":d.value,"filter-count":Object.keys(e.unref(_)).length,onPrev:y,onNext:k,onToday:E,onToggleCompact:L[0]||(L[0]=X=>_e.value=!_e.value),onSetViewMode:L[1]||(L[1]=X=>d.value=X),onClosePage:L[2]||(L[2]=X=>w.$emit("close-page")),onOpenFilter:J},null,8,["month","year","is-compact","view-mode","filter-count"]),d.value==="calendar"?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["calendar-stage",re.value])},[e.createElementVNode("div",Cd,[e.createVNode(jc,{"week-days":b,month:N.value,year:D.value},null,8,["month","year"]),e.createVNode(Qc,{"start-offset":P.value,"month-days":Z.value,"view-date":s.value,"is-compact":q.value,"is-same-month-fn":m,"is-selected-day-fn":f,"is-today-fn":p,"select-day-fn":g,"events-by-day-fn":ye,"day-event-count-fn":Ae,"event-bars-to-show-fn":qe,"day-event-overflow-fn":Oe},null,8,["start-offset","month-days","view-date","is-compact"])]),q.value?(e.openBlock(),e.createBlock(kr,{key:0,class:"calendar-daylist calendar-daylist--mobile",loading:ae.value,"selected-label-long":M.value,events:Fe.value,mode:"compact",onReload:te,onOpenChat:L[3]||(L[3]=X=>w.$emit("open-chat",X)),onOpenMessage:L[4]||(L[4]=X=>w.$emit("open-message",X)),onDeleteMessage:L[5]||(L[5]=(X,ne)=>ce(X,ne))},null,8,["loading","selected-label-long","events"])):e.createCommentVNode("",!0)],2)):(e.openBlock(),e.createBlock(fd,{key:1,days:$e.value,"weekday-long":T,"weekday-short":B,"month-short":V,"month-label-of":S,year:D.value,onOpenChat:L[6]||(L[6]=X=>w.$emit("open-chat",X)),onOpenMessage:L[7]||(L[7]=X=>w.$emit("open-message",X)),onDeleteMessage:L[8]||(L[8]=(X,ne)=>ce(X,ne))},null,8,["days","year"]))]),e.createVNode(kr,{class:"calendar-daylist calendar-daylist--desktop",loading:ae.value,"selected-label":z.value,"selected-label-long":M.value,events:Fe.value,mode:q.value?"compact":"sidebar",onReload:te,onOpenChat:L[9]||(L[9]=X=>w.$emit("open-chat",X)),onOpenMessage:L[10]||(L[10]=X=>w.$emit("open-message",X)),onDeleteMessage:L[11]||(L[11]=(X,ne)=>ce(X,ne))},null,8,["loading","selected-label","selected-label-long","events","mode"])],2),e.createVNode(Sl,{modelValue:K.value.open,"onUpdate:modelValue":L[12]||(L[12]=X=>K.value.open=X),title:K.value.title,description:K.value.description,destructive:K.value.destructive,"confirm-label":K.value.confirmLabel,"cancel-label":K.value.cancelLabel,loading:K.value.loading,"loading-label":K.value.loadingLabel,context:K.value.context,"anchor-el":K.value.anchorEl,placement:"auto",align:"center",offset:12,onConfirm:$,onCancel:I},{details:e.withCtx(()=>{var X;return[(X=K.value.context)!=null&&X.event?(e.openBlock(),e.createElementBlock("div",Sd,[e.createVNode(Va,{"view-only":!0,mode:"sidebar",ev:K.value.context.event},null,8,["ev"])])):e.createCommentVNode("",!0)]}),_:1},8,["modelValue","title","description","destructive","confirm-label","cancel-label","loading","loading-label","context","anchor-el"]),e.createVNode(Ed,{open:Q.value.open,"anchor-el":Q.value.anchorEl,filters:e.unref(_),"onUpdate:filters":L[13]||(L[13]=X=>e.isRef(_)?_.value=X:null),onClose:L[14]||(L[14]=X=>Q.value.open=!1)},null,8,["open","anchor-el","filters"])],64))}},[["__scopeId","data-v-9c3b18ef"]]),Bd={class:"flex flex-col text-center"},Vd={class:"flex flex-col space-y-3 justify-center"},Md={class:"space-x-4 flex-col text-black justify-center"},Nd=["onUpdate:modelValue","onInput","onKeydown"],br={__name:"mfa",props:{eventHandling:{type:String,default:null}},emits:["filled","reset"],setup(t,{emit:n}){e.onMounted(()=>{r.value[0].focus()});const a=n,o=e.ref(Array(6).fill("")),r=e.ref([]);e.ref(!1);const i=u=>{const c=o.value[u];o.value[0]<1&&a("reset"),/^\d$/.test(c)?s(u):o.value[u]="",u===o.value.length-1&&o.value.every(h=>h!=="")&&d()},s=u=>{u<o.value.length-1&&o.value[u]&&r.value[u+1].focus()},l=(u,c)=>{c.key==="Backspace"&&!o.value[u]&&u>0&&r.value[u-1].focus()},d=()=>{const u=o.value.join("");a("filled",u)};return(u,c)=>(e.openBlock(),e.createElementBlock("section",Bd,[e.createElementVNode("div",Vd,[e.createElementVNode("div",Md,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.value,(h,m)=>e.withDirectives((e.openBlock(),e.createElementBlock("input",{key:m,"onUpdate:modelValue":p=>o.value[m]=p,class:e.normalizeClass([t.eventHandling==="check"?"checked_mfa":t.eventHandling==="err"?"err_mfa":"reset_input","inline-block w-10 h-10 rounded-md text-center"]),type:"text",maxlength:"1",onInput:p=>i(m),onKeydown:e.withKeys(p=>l(m,p),["backspace"]),ref_for:!0,ref_key:"inputs",ref:r},null,42,Nd)),[[e.vModelText,o.value[m]]])),128))])])]))}},Ad={class:"text-center flex gap-3"},Td={class:"flex justify-center gap-2 relative bg-base-200 p-2 rounded-lg shadow-md shadow-black"},Dd={key:0,class:"items-center justify-center inline-flex"},Ld=["src"],Fd={__name:"mfaQrCode",props:{base64:{type:String,default:""},dimensions:{type:Array,default:null},loading:{type:Boolean,default:!1},generated:{type:Boolean,default:!1}},emits:["generateQR"],setup(t,{emit:n}){const a=n;e.ref(!1);const o=t,r=()=>{a("generateQR")},i=e.computed(()=>o.base64?o.base64:l.value),s=e.computed(()=>`w-${o.dimensions[0]} h-${o.dimensions[1]}`),l=e.ref("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAASwAAAEsCAYAAAB5fY51AAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAABmJLR0QAAAAAAAD5Q7t/AAAACXBIWXMAAABgAAAAYADwa0LPAAARGUlEQVR42u3dsZLbxhKFYejGpAOp9Jb7ACo9gMqx9JYbKOA6pwNfuly2yJ5lz5nuA/xfFSILwGAwanuxxz0frtfrdQMAA/+rHgAAjKJgAbBBwQJgg4IFwAYFC4ANChYAGxQsADYoWABsULAA2KBgAbBBwQJgg4IFwAYFC4ANChYAGxQsADYoWABsULAA2KBgAbBBwQJgg4IFwAYFC4ANChYAGxQsADYoWABsULAA2KBgAbBBwQJgg4IFwAYFC4ANChYAGxQsADYoWABsULAA2GhTsD59+rR9+PBht0fkx48f2/l8/s955/N5+/HjR/XruTu+6Bgdv/r51dc/+vpd5cP1er1WD2Lb/nrhP3/+rB6GTDTN5/N5++OPP375z06n0/b29lY6/kfji4yMX/386usfff2uQsFaJJrm6N9i1a8p+2/Z6udXX//o63eVNj8SAkCEggXABgULgA0KFkIzPvhH1zidTk/9s07PCD0KFh56e3vbvnz5kr7O169fHxaFb9++/bIwnU6n7ffff5c/ZzQ+NHFt4uPHj9dt2+4er6+v1UNMjT/y6NwZr+n79+/X0+kU3mf1cTqdrt+/f396/KPnq8d39PW7ik2s4fX1dfv8+XP1MJ8efzTN6l+7Z3JUaityWplYxsj1j75+V+FHwoPoWqxGx/boz6ifrfPcHQ0FC4ANChYAGxQsADYoWCayv3JfkWVSjq06p4UeKFgmsjmhezmnaqM5q+qcFpqozlXcZHMsmyAjtL0jh6LOYd07RnNC91wul+vLy0t4n5eXl+vlcpl+/irV73/v63eV3eSw1E3GomlS57AeyfZzent723777beHf+ZyuWzn81ly/grq9jhHX7+r8CPhDmRzQiOF5NGfyZ4PjKJgAbBBwQJgg4IFwAYFayeqW6N0z0l1GAPyKFg7Ud3PqXtOqmsODe9Unau4OXqORTXuWf2i1FT9uqLnH82RZd//3tfvKuSwBkXTVJnDiszoF6VeJsp+XdHzj+TIsu9/7+t3FX4kPACHfk7KMUbXJiPmg4IFwAYFC4ANChYAGxSsJo7+K/fq5++eI8NfKFhNHD0nVP383XNk+L/qXMUNOZZfG80JZcefPb/KrBxVFut3Df4Lq7nz+bx9+/atehhtMT/HQsEyQE7oMebnOChYAGxQsADYoGABsEHBMrCibYx7Dsl9/BhDwWru7e1t+/Lli/w+7jkk9/FjUHWu4iabY6mWzbGo+kGN3r+7e/OT3Zdx1vWPvn5X2U0/rGrZfkLKflAj9+/u0fxk92Wccf2jr99V+JGwCYeeVZUezc+MuVNfH3NQsADYoGABsEHBAmCDggUL5KywbRQsmCBnhW3b+gQsohyI+xGJzn95ebleLpf/nDerH1Q2h+R+fnb+jr5+V7HJYbmLpjnal+5yudxtozJjX71sDsn9/Oy+jEdfv6tQsBbJFizO733+0dfvKnzDAmCDggXABgULgA0KVhPqnFH00Tl7/8z5M/p9VY4f61CwmlDnjL5+/fqwMGTv/+z5s/p9VY0fi1XnKjDH9mS+pjonNXpkqftpYY02sQbkRL+Wf6Q6JzUiu0zV/bSwBgVrJzIFa9vqc07Z8UWy40cPfMMCYIOCBcAGBQuADQoWynNSanxQ3w8K1sFV56TUVu3riEWqcxU3z+Z01PvSZY9VOZ9oHPf6ac16/mep+3mpxz+qOsfWff2OahNryOR01PvSZa3I+WT6ac14/swyUvfzUo9/RHWOLaNTTq1Nweqe08lST/PRc1LV4+/+fFlNygTfsAD4oGABsEHBAmBjFwUr++ty9QfFFb/OV/aDGpGdw+rxqzk/X6e5tS9Y2X5F6pzOqn5Kqn5Qo6J+W93Hr+b6fO36gVXnKm624hxR9ojGF+nar2k0J3XvcBl/xP39ZNdnFzaxBnWOKCsaX6Rzv6aRnNQjDuOP/hq4v5/s+uzCpmBFw3TPqXTv19Q955Qdf3Z9uT+fC/tvWACOg4IFwAYFC4ANCtYk1TkktcwYqsffYd/D7s/ngoI1SXUOSe3ZHFD1+Lvse9j9+WxU5yputmROJjq/66Huh1SdE1o1/up+WNU5wOzzdc2Z/RuxhgbU/ZCqc0Irxl/dD6s6B5h9vs45s3+iYDWhfr7q11y9b2L2+urnU8vOX/X6ueEbFgAbFCwANihYAGy0KVjO/YK66zA36hxX535e1bLz1+nZ2hQs135B3VXnhG7UOa6u/byqZeevy/r5W3WuYtSzOZFsP6fR416/oVn9mJ69v3p+Z53f9f1X55CO1u8q0ibWEMnkRLL9nEY86jc0ox9Ttl9YRLlvnnrfSPX7r84hHanfVcSmYHXPaWXvrz4/cvTxRar/mrjkpNTafMMCgAgFC4ANChYAGxYFq8v/eHnPipyLOieTuf6K91M5vo5xhdnP6KJ9were72dVzkWdk3n2+qveT9X42uWQ7sjmyGxU5ypu1P2Mnr3uNphz2WuOadX7UT3fXt5vdv3eO6pzZu/VJtag7meU/bV2Zl9E9xxTdP4I9TLLjq/7+1XGcqpzZu/RpmC590six/SYepnt/f1W5wi7aP8NCwBuKFgAbFCwANhoU7Dc+yWpc1LV+x5235ewcv2seL/KOXTImd20KVju/ZLUOanqfQ+770tYtX5WvV9Vvy2XnNnfqnMVs7j3S3r2/rPG1z0H5k71/o7WL6tNrCHLvV9Sdc6mew7MXeb9zli/e+mXtZuCVZ1zyU5jdc6mew7MXfecmIs237AAIELBAmCDggXAxmEKVvTRMqN6T7zs+Ebunxnj3j+oj1CuEfX76+QwBetezqW6X5K6n9SsflHP5sC69zNbRZUDVL+/dqpzFbNsohzTNphjyfZjyt4/oh5f9sh69vmqc2ar9s1UP/8qh4k1ZGX6Ja24f0Q9vqzsMsw8X3XObMW+mernX4WCNSiapur7R9Tjc38+9f2r14/6+Vc5zDcsAP4oWABsULAA2NhNwaruF9S5p1D3D6odcmzO/caOZDcFq7pfkOr+Wd1zUF1ybK79xg6nOldxo+qX1L1f0Oj4np2/0ePe83eZv6ocmVtO6d9mra8u2sQalP2SuvcLGhlf9JqU+/J1mL/KHJlTTulXZqyvLtoUrKP3Y6rO8WSvr54/cko51e9vlt18wwKwfxQsADYoWABstClY6n3f1NfPmPFBV7kvX/UH5+r7V6+PrOr5m6lNwVLv+6a+/rNm5YhU+/JV57iq71+9PrKq52+66lzFqOp+R6rxjR7dx199/+zxbL8zdT+tVYeLNrGGSHW/I+X4RqhfU3b82fFV9+vK9DtT99NawaQM9MlhhQMt7nekHp/7+LPj656zqs4JVj9/F22+YQFAhIIFwAYFC4ANi4LVod9RpLofV/U9qvd2VN9bmePbU05KrX3B6tLvKFLdj6t6/Kp+UmrZflVd+nkdRnWu4qY6h3Lv6NKPqyqHlt03z6WfVPecVbZfWXS4aBNrqM6hPNKhH1dlDi27b55DP6nuOatsv7JIkzIQalOwqnMokew0de93lR2/+v5q3XNW3dfHKu2/YQHADQULgA0KFgAbbQpW955D2Y/W2T9TPT/KflsdVPZjG/FofTjkFGdpU7C678v2bM5oNGcTXb96flT9trqo6sc26t76cMkpTlOdq8jK5pxm5VhUR5QD2su+c9kclDpHpbq/+/pbrU2sISObc5qRY1GKckB72Hcum4NS56iU43dffyvtomBtW33OSS07/u6vWf3+1M9/9PW3SptvWAAQoWABsEHBAmBjNwUrm6PpHKk4AuX7q+4n5r7+Oo1tNwUrm6Opzjkdner9VfcTc19/7XJ01bmKVdQ5mep+Rdnz3XNQz44ve3R5vntm9WPrYjexhog6J1Pdryj7a3X3HFRE2W+tw/M9MqMfWxeHKVjVOZ/qfkjdz1dz3zdS/fzdx3+zm29YAPaPggXABgULgI3DFCx1TkfZrygan7rf1oz77133OajOqc1ymIKlzumo+hVF41P325p1/73r3k+qOqc2TXWu4qZq371R7x3Xew/VvoSz5i97/+r3r35/qqN7zmu1NrGGyn33Rqh/La7clzCSzVmNiJaZ+v13b9+Sfb6jaFOwuu+rVp3jcb+/+/WrNflrWu4w37AA+KNgAbBBwQJgo03B6r7vnfIe1f2S1PdXv58j5MT28AwztClY3fe9U/Urqu6XpL6/+v0cJSfWPee1THWuAn+p7idVff8tyCNV5dRG7/8s9b6Ee8txtYk1HF11P6nq+0exg8qc2sj9M9T7Eu4px0XBaqK6X5H7/atzaurn7z7+Vdp8wwKACAULgA0KFgAbFKwmKvsVzeinpb4/sG0UrDaq+hXN6qelvj+wbVufHNbHjx/Lew8pjyzVvoEuR6T6/tn34z7+VdrEGj59+rT9/Pmzehgy2WlW7hvoIJq/6lhA9v24j38VCtYi2WnunlNSq36+7P33Pv5V+IYFwAYFC4ANChYAGxQsA10+eFap7heWHWP12LZNuy/lShSs5o6eU6ruFzaq+75/qn0pl6vOVdxEOazX19fqIabGH1Hv+xedf6/f02i/JlW/qKxZ/abU1O/n3tEtZxWxiTW8vr5unz9/rh7m0+OPplm971+m39RIvyZlv6isGf2m1H9N1O/nkU45qwg/EjZRHeqMmuNlzq/WeWwzniH7fNVr7z0oWABsULAA2KBgAbBBwdqBbE7pCPv6ZSMP1f3AMjmqSKecVYSCZS6bUzrKvn7ZnFZ1P7Bnc1SRdjmrSHWu4iabw9qSOZvoyI4/Et1fnXNS58BU98/miNT7AqqPWTkq+mG9UzaHVd2eI5vDyu7Ll6XOgSnvn80RqfcFVJuRo3Lph8WPhCbUWaLqLE7m/tmxu+e0Zry7R9eoXhv/RMECYIOCBcAGBQuADQpWE9X9iDrnlNRjn3WNStn5r15/oyhYTVT3I+qaU4rMmp/qflpZ2fmvXn/DqnMVN0fPYUWqcjKr+i1F18nm0J6dv2w/sFXnq99PF+SwBkXTlM1hRSpzMiv6LalzaJn5y/YDW3F+RqecVYSCNai6YFXvG5ed32h86udT7xtYfX5WkzIQ4hsWABsULAA2KFgAbFCwMETdb0mdA8pev/P5M7h8dKdgYYi635I6B5S9ftfzZ6nK0b1bda7ihhzWY9nxVVPnyKr7OWXvr86JPXt0y2kRaxgUTdPeYw1Z6hxZdT+n7P3VObGMTjktfiTEEup+S9X9nLL3z5y/915p/0TBAmCDggXABgULgA0KloEuHzwzuues1KKP5urzMzrM3w0Fq7m97wvYJWeldi/nlN2XUL0+uszf36pzFTfZHFa1bA6r676A6hzRqvGpr//se1t1qPe1XGU3Oaxq2RxW530B1TmiFeNTX1+dA8xS72u5Cj8SNlGddanMEa0YX/X1q+2hWG0bBQuAEQoWABsULAA2KFg7UJ1jUueAOly/MgeV1SlHlUXBMledY1LngLpcvyoHldUuR5VVnau4iXJM7kckOj/K0Tyb48rmrGY9f/frZw/VvoWjqvuFzWKTw3IXTXN2X75Mjiubs5rx/N2vn6Xct3BEdb+wWShYi2QLVvZ89fj2fv0s9fuPuDeAvOEbFgAbFCwANihYAGxQsJqo3LeO62vtYV/GLihYTVTtW8f1tfayL2MXbX5LCAAR/gsLgA0KFgAbFCwANihYAGxQsADYoGABsEHBAmCDggXABgULgA0KFgAbFCwANihYAGxQsADYoGABsEHBAmCDggXABgULgA0KFgAbFCwANihYAGxQsADYoGABsEHBAmCDggXABgULgA0KFgAbFCwANihYAGxQsADYoGABsEHBAmCDggXABgULgI0/AXRl5K/bYs25AAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDIxLTAyLTExVDIwOjQzOjIzKzAwOjAwj4NP3QAAACV0RVh0ZGF0ZTptb2RpZnkAMjAyMS0wMi0xMVQyMDo0MzoyMyswMDowMP7e92EAAAAASUVORK5CYII=");return(d,u)=>(e.openBlock(),e.createElementBlock("div",Ad,[e.createElementVNode("section",Td,[t.generated?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass([s.value,"btnQrCode"])},[t.loading?(e.openBlock(),e.createElementBlock("div",Dd,[...u[0]||(u[0]=[e.createElementVNode("div",{class:"loaderMFA"},null,-1)])])):(e.openBlock(),e.createElementBlock("button",{key:1,class:"uppercase bg-base-300 p-2 z-40",onClick:r}," Gerar QR "))],2)),e.createElementVNode("img",{class:e.normalizeClass([[s.value,t.generated?"rounded-md":"rounded-none"],""]),src:i.value,alt:"QRCode"},null,10,Ld)])]))}};for(var We=[],Ma=0;Ma<256;++Ma)We.push((Ma+256).toString(16).slice(1));function $d(t,n=0){return(We[t[n+0]]+We[t[n+1]]+We[t[n+2]]+We[t[n+3]]+"-"+We[t[n+4]]+We[t[n+5]]+"-"+We[t[n+6]]+We[t[n+7]]+"-"+We[t[n+8]]+We[t[n+9]]+"-"+We[t[n+10]]+We[t[n+11]]+We[t[n+12]]+We[t[n+13]]+We[t[n+14]]+We[t[n+15]]).toLowerCase()}var Hn,Pd=new Uint8Array(16);function _d(){if(!Hn&&(Hn=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Hn))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Hn(Pd)}var Od=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);const wr={randomUUID:Od};function Rd(t,n,a){if(wr.randomUUID&&!t)return wr.randomUUID();t=t||{};var o=t.random||(t.rng||_d)();return o[6]=o[6]&15|64,o[8]=o[8]&63|128,$d(o)}function Er(){const t=Yt(),n=async l=>{const d=t.attendants.find(u=>u.id===l);if(d)try{const u=await Xe.get(`${Ea}?attendant=${l}&page=1`);d.messages=u.data.results.reverse(),d.hasNextPage=u.data.next!==null,d.currentPage=2,d.internal_chat={channel_id:u.data.channel_id,unread:0}}catch(u){console.error("Erro ao buscar mensagens:",u)}},a=async l=>{const d=t.attendants.find(u=>u.id===l);if(!(!d||!d.hasNextPage))try{const u=await Xe.get(`${Ea}?attendant=${l}&page=${d.currentPage}`);d.messages=[...u.data.results.reverse(),...d.messages],d.hasNextPage=u.data.next!==null,d.currentPage++}catch(u){console.error("Erro ao carregar mais mensagens:",u)}},o=(l,d,u)=>{const c=l==null?void 0:l.message;if(!c)return;const h=t.attendants.find(m=>{var p;return((p=m.internal_chat)==null?void 0:p.channel_id)===c.channel_id});h?(h.messages=h.messages||[],h.messages.find(p=>p.id===c.id)||(h.messages.push(c),(!d||h.id!==u)&&(h.internal_chat.unread=(h.internal_chat.unread||0)+1))):console.error("Atendente não encontrado para o canal especificado.")},r=l=>{const d=t.attendants.find(u=>u.id===l);d&&(d.internal_chat.unread=0)},i=async(l,d,u,c=!1)=>{var f;const h=t.attendants.find(g=>g.id===l);if(!h||!((f=h.internal_chat)!=null&&f.channel_id))return;let m;c?m=d:m={type:"text",content:d};const p={id:Rd(),content:m,created_at:new Date().toISOString(),sender:u};h.messages.push(p);try{await Xe.post(`${Ea}${h.internal_chat.channel_id}/message/`,{id:p.id,content:p.content})}catch(g){console.error("Erro ao enviar mensagem:",g)}},s=l=>{const d=t.attendants.find(u=>u.id===l);return d?d.hasNextPage:!1};return{attendants:e.computed(()=>t.attendants),count:e.computed(()=>t.count),fetchMessagesForAtendente:n,loadMessagesForAtendente:a,addMessageToAtendente:o,sendMessageToAtendente:i,hasNextPageForAtendente:s,resetUnreadMessages:r}}const Hd={class:"avatar bg-[#404857] shadow shadow-gray-900 dark:shadow-gray-700 dark:bg-gray-300 text-gray-100 dark:text-gray-500"},zd={key:0,style:{"padding-top":"0.5rem"},xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},jd=["src"],Na=we({__name:"Avatar",props:{url:{type:String}},setup(t){return(n,a)=>(e.openBlock(),e.createElementBlock("div",Hd,[t.url?(e.openBlock(),e.createElementBlock("img",{key:1,style:{"object-fit":"scale-down"},src:t.url},null,8,jd)):(e.openBlock(),e.createElementBlock("svg",zd,[...a[0]||(a[0]=[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15.75 6a3.75 3.75 0 11-7.5 0 3.75 3.75 0 017.5 0zM4.501 20.118a7.5 7.5 0 0114.998 0A17.933 17.933 0 0112 21.75c-2.676 0-5.216-.584-7.499-1.632z"},null,-1)])]))]))}},[["__scopeId","data-v-7d8b2820"]]),Gd={class:"attendants-container"},Id={class:"atendentes-list bg-base-300"},qd={key:0,class:"empty-message bg-base-200"},Wd=["onClick"],Ud={class:"atendente-main"},Zd={class:"atendente-name"},Yd={class:"flex items-center gap-4"},Xd={key:0,class:"message-indicator"},Kd={key:0,class:"chat-footer bg-base-200"},vr=we({__name:"ChatList",props:{atendentes:{type:Array,required:!0},attendant:{required:!0},mobile:{type:Boolean,default:!1}},emits:["atendenteSelecionado"],setup(t,{emit:n}){const a=t,o=n,r=e.ref(""),i=d=>{o("atendenteSelecionado",d)},s=d=>{switch(d){case"Busy":return"bg-red-500";case"Online":return"bg-green-500";case"Away":return"bg-yellow-500";case"Offline":return"bg-gray-500";default:return"bg-purple-500"}},l=e.computed(()=>r.value?a.atendentes.filter(d=>d.name.toLowerCase().includes(r.value.toLowerCase())&&d.id!==a.attendant.id):a.atendentes.filter(d=>d.id!==a.attendant.id));return(d,u)=>(e.openBlock(),e.createElementBlock("div",Gd,[e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":u[0]||(u[0]=c=>r.value=c),class:e.normalizeClass(t.mobile?"search-input-mobile bg-base-300 border-b border-base-200":"search-input bg-base-300 border-b border-base-200"),placeholder:"Pesquise entre os atendentes..."},null,2),[[e.vModelText,r.value]]),e.createElementVNode("ul",Id,[l.value.length===0?(e.openBlock(),e.createElementBlock("li",qd,e.toDisplayString(t.atendentes.length===0?"Não há atendentes disponíveis":"Não há atendentes com esse nome"),1)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.value,c=>(e.openBlock(),e.createElementBlock("li",{key:c.id,onClick:h=>i(c),class:e.normalizeClass([["atendente-item",c.isMoved?"moved":""],"border-b even:bg-base-300 bg-blue-400/10 border-base-200 hover:bg-base-200 relative"])},[e.createElementVNode("main",Ud,[e.createVNode(Na,{url:c.photo},null,8,["url"]),e.createElementVNode("span",Zd,e.toDisplayString(c.name),1)]),e.createElementVNode("footer",Yd,[c.internal_chat.unread>0?(e.openBlock(),e.createElementBlock("span",Xd,e.toDisplayString(c.internal_chat.unread),1)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["status-indicator",s(c.login_status)])},null,2)]),u[1]||(u[1]=e.createElementVNode("div",{class:"hover-action"},"Conversar",-1))],10,Wd))),128))]),t.mobile?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("footer",Kd))]))}},[["__scopeId","data-v-dc8950e9"]]);function Qd(t,n=null){if(!t)return!1;const a=t.getBoundingClientRect(),o=n?n.getBoundingClientRect():{top:0,left:0,bottom:window.innerHeight,right:window.innerWidth};return a.bottom>=o.top&&a.top<=o.bottom&&a.right>=o.left&&a.left<=o.right}async function Jd(t){return t?(await e.nextTick(),t.value instanceof HTMLElement?t.value:t.value?document.querySelector(t.value):null):null}function e3(t){let n=`0px 0px ${t.distance}px 0px`;t.top&&(n=`${t.distance}px 0px 0px 0px`);const a=new IntersectionObserver(o=>{o[0].isIntersecting&&(t.firstload&&t.emit(),t.firstload=!0)},{root:t.parentEl,rootMargin:n});return t.infiniteLoading.value&&a.observe(t.infiniteLoading.value),a}async function Cr(t,n){if(await e.nextTick(),!t.top)return;const a=t.parentEl||document.documentElement;a.scrollTop=a.scrollHeight-n}const Sr=(t,n)=>{const a=t.__vccOpts||t;for(const[o,r]of n)a[o]=r;return a},t3={},n3=t=>(e.pushScopeId("data-v-d3e37633"),t=t(),e.popScopeId(),t),a3={class:"container"},o3=n3(()=>e.createElementVNode("div",{class:"spinner"},null,-1)),r3=[o3];function i3(t,n){return e.openBlock(),e.createElementBlock("div",a3,r3)}const s3=Sr(t3,[["render",i3],["__scopeId","data-v-d3e37633"]]),l3={class:"state-error"},Xt=Sr(e.defineComponent({__name:"InfiniteLoading",props:{top:{type:Boolean,default:!1},target:{},distance:{default:0},identifier:{},firstload:{type:Boolean,default:!0},slots:{}},emits:["infinite"],setup(t,{emit:n}){const a=t;let o=null,r=0;const i=e.ref(null),s=e.ref(""),{top:l,firstload:d,distance:u}=a,{identifier:c,target:h}=e.toRefs(a),m={infiniteLoading:i,top:l,firstload:d,distance:u,parentEl:null,emit(){r=(m.parentEl||document.documentElement).scrollHeight,p.loading(),n("infinite",p)}},p={loading(){s.value="loading"},async loaded(){s.value="loaded",await Cr(m,r),Qd(i.value,m.parentEl)&&m.emit()},async complete(){s.value="complete",await Cr(m,r),o==null||o.disconnect()},error(){s.value="error"}};function f(){o==null||o.disconnect(),o=e3(m)}return e.watch(c,f),e.onMounted(async()=>{m.parentEl=await Jd(h),f()}),e.onUnmounted(()=>o==null?void 0:o.disconnect()),(g,y)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"infiniteLoading",ref:i,class:"v3-infinite-loading"},[e.withDirectives(e.createElementVNode("div",null,[e.renderSlot(g.$slots,"spinner",{},()=>[e.createVNode(s3)],!0)],512),[[e.vShow,s.value=="loading"]]),s.value=="complete"?e.renderSlot(g.$slots,"complete",{key:0},()=>{var k;return[e.createElementVNode("span",null,e.toDisplayString(((k=g.slots)==null?void 0:k.complete)||"No more results!"),1)]},!0):e.createCommentVNode("",!0),s.value=="error"?e.renderSlot(g.$slots,"error",{key:1,retry:m.emit},()=>{var k;return[e.createElementVNode("span",l3,[e.createElementVNode("span",null,e.toDisplayString(((k=g.slots)==null?void 0:k.error)||"Oops something went wrong!"),1),e.createElementVNode("button",{class:"retry",onClick:y[0]||(y[0]=(...E)=>m.emit&&m.emit(...E))},"retry")])]},!0):e.createCommentVNode("",!0)],512))}}),[["__scopeId","data-v-4bdee133"]]);function c3(t,n,a){const o=ct(t,a==null?void 0:a.in);return isNaN(n)?rt(t,NaN):(o.setDate(o.getDate()+n),o)}function zn(t,n){return Pt(t,{...n,weekStartsOn:1})}function Br(t,n){const a=ct(t,n==null?void 0:n.in),o=a.getFullYear(),r=rt(a,0);r.setFullYear(o+1,0,4),r.setHours(0,0,0,0);const i=zn(r),s=rt(a,0);s.setFullYear(o,0,4),s.setHours(0,0,0,0);const l=zn(s);return a.getTime()>=i.getTime()?o+1:a.getTime()>=l.getTime()?o:o-1}function Vr(t){const n=ct(t),a=new Date(Date.UTC(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()));return a.setUTCFullYear(n.getFullYear()),+t-+a}function jn(t,n){const a=ct(t,n==null?void 0:n.in);return a.setHours(0,0,0,0),a}function d3(t,n,a){const[o,r]=Ca(a==null?void 0:a.in,t,n),i=jn(o),s=jn(r),l=+i-Vr(i),d=+s-Vr(s);return Math.round((l-d)/Ml)}function u3(t,n){const a=Br(t,n),o=rt(t,0);return o.setFullYear(a,0,4),o.setHours(0,0,0,0),zn(o)}function Aa(t){return rt(t,Date.now())}function Mr(t,n,a){const[o,r]=Ca(a==null?void 0:a.in,t,n);return+jn(o)==+jn(r)}function f3(t){return t instanceof Date||typeof t=="object"&&Object.prototype.toString.call(t)==="[object Date]"}function m3(t){return!(!f3(t)&&typeof t!="number"||isNaN(+ct(t)))}function h3(t,n){const a=ct(t,n==null?void 0:n.in);return a.setFullYear(a.getFullYear(),0,1),a.setHours(0,0,0,0),a}function p3(t,n){const a=ct(t,n==null?void 0:n.in);return d3(a,h3(a))+1}function g3(t,n){const a=ct(t,n==null?void 0:n.in),o=+zn(a)-+u3(a);return Math.round(o/cr)+1}function Nr(t,n){var c,h,m,p;const a=ct(t,n==null?void 0:n.in),o=a.getFullYear(),r=_n(),i=(n==null?void 0:n.firstWeekContainsDate)??((h=(c=n==null?void 0:n.locale)==null?void 0:c.options)==null?void 0:h.firstWeekContainsDate)??r.firstWeekContainsDate??((p=(m=r.locale)==null?void 0:m.options)==null?void 0:p.firstWeekContainsDate)??1,s=rt((n==null?void 0:n.in)||t,0);s.setFullYear(o+1,0,i),s.setHours(0,0,0,0);const l=Pt(s,n),d=rt((n==null?void 0:n.in)||t,0);d.setFullYear(o,0,i),d.setHours(0,0,0,0);const u=Pt(d,n);return+a>=+l?o+1:+a>=+u?o:o-1}function y3(t,n){var l,d,u,c;const a=_n(),o=(n==null?void 0:n.firstWeekContainsDate)??((d=(l=n==null?void 0:n.locale)==null?void 0:l.options)==null?void 0:d.firstWeekContainsDate)??a.firstWeekContainsDate??((c=(u=a.locale)==null?void 0:u.options)==null?void 0:c.firstWeekContainsDate)??1,r=Nr(t,n),i=rt((n==null?void 0:n.in)||t,0);return i.setFullYear(r,0,o),i.setHours(0,0,0,0),Pt(i,n)}function k3(t,n){const a=ct(t,n==null?void 0:n.in),o=+Pt(a,n)-+y3(a,n);return Math.round(o/cr)+1}function De(t,n){const a=t<0?"-":"",o=Math.abs(t).toString().padStart(n,"0");return a+o}const Bt={y(t,n){const a=t.getFullYear(),o=a>0?a:1-a;return De(n==="yy"?o%100:o,n.length)},M(t,n){const a=t.getMonth();return n==="M"?String(a+1):De(a+1,2)},d(t,n){return De(t.getDate(),n.length)},a(t,n){const a=t.getHours()/12>=1?"pm":"am";switch(n){case"a":case"aa":return a.toUpperCase();case"aaa":return a;case"aaaaa":return a[0];case"aaaa":default:return a==="am"?"a.m.":"p.m."}},h(t,n){return De(t.getHours()%12||12,n.length)},H(t,n){return De(t.getHours(),n.length)},m(t,n){return De(t.getMinutes(),n.length)},s(t,n){return De(t.getSeconds(),n.length)},S(t,n){const a=n.length,o=t.getMilliseconds(),r=Math.trunc(o*Math.pow(10,a-3));return De(r,n.length)}},Kt={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Ar={G:function(t,n,a){const o=t.getFullYear()>0?1:0;switch(n){case"G":case"GG":case"GGG":return a.era(o,{width:"abbreviated"});case"GGGGG":return a.era(o,{width:"narrow"});case"GGGG":default:return a.era(o,{width:"wide"})}},y:function(t,n,a){if(n==="yo"){const o=t.getFullYear(),r=o>0?o:1-o;return a.ordinalNumber(r,{unit:"year"})}return Bt.y(t,n)},Y:function(t,n,a,o){const r=Nr(t,o),i=r>0?r:1-r;if(n==="YY"){const s=i%100;return De(s,2)}return n==="Yo"?a.ordinalNumber(i,{unit:"year"}):De(i,n.length)},R:function(t,n){const a=Br(t);return De(a,n.length)},u:function(t,n){const a=t.getFullYear();return De(a,n.length)},Q:function(t,n,a){const o=Math.ceil((t.getMonth()+1)/3);switch(n){case"Q":return String(o);case"QQ":return De(o,2);case"Qo":return a.ordinalNumber(o,{unit:"quarter"});case"QQQ":return a.quarter(o,{width:"abbreviated",context:"formatting"});case"QQQQQ":return a.quarter(o,{width:"narrow",context:"formatting"});case"QQQQ":default:return a.quarter(o,{width:"wide",context:"formatting"})}},q:function(t,n,a){const o=Math.ceil((t.getMonth()+1)/3);switch(n){case"q":return String(o);case"qq":return De(o,2);case"qo":return a.ordinalNumber(o,{unit:"quarter"});case"qqq":return a.quarter(o,{width:"abbreviated",context:"standalone"});case"qqqqq":return a.quarter(o,{width:"narrow",context:"standalone"});case"qqqq":default:return a.quarter(o,{width:"wide",context:"standalone"})}},M:function(t,n,a){const o=t.getMonth();switch(n){case"M":case"MM":return Bt.M(t,n);case"Mo":return a.ordinalNumber(o+1,{unit:"month"});case"MMM":return a.month(o,{width:"abbreviated",context:"formatting"});case"MMMMM":return a.month(o,{width:"narrow",context:"formatting"});case"MMMM":default:return a.month(o,{width:"wide",context:"formatting"})}},L:function(t,n,a){const o=t.getMonth();switch(n){case"L":return String(o+1);case"LL":return De(o+1,2);case"Lo":return a.ordinalNumber(o+1,{unit:"month"});case"LLL":return a.month(o,{width:"abbreviated",context:"standalone"});case"LLLLL":return a.month(o,{width:"narrow",context:"standalone"});case"LLLL":default:return a.month(o,{width:"wide",context:"standalone"})}},w:function(t,n,a,o){const r=k3(t,o);return n==="wo"?a.ordinalNumber(r,{unit:"week"}):De(r,n.length)},I:function(t,n,a){const o=g3(t);return n==="Io"?a.ordinalNumber(o,{unit:"week"}):De(o,n.length)},d:function(t,n,a){return n==="do"?a.ordinalNumber(t.getDate(),{unit:"date"}):Bt.d(t,n)},D:function(t,n,a){const o=p3(t);return n==="Do"?a.ordinalNumber(o,{unit:"dayOfYear"}):De(o,n.length)},E:function(t,n,a){const o=t.getDay();switch(n){case"E":case"EE":case"EEE":return a.day(o,{width:"abbreviated",context:"formatting"});case"EEEEE":return a.day(o,{width:"narrow",context:"formatting"});case"EEEEEE":return a.day(o,{width:"short",context:"formatting"});case"EEEE":default:return a.day(o,{width:"wide",context:"formatting"})}},e:function(t,n,a,o){const r=t.getDay(),i=(r-o.weekStartsOn+8)%7||7;switch(n){case"e":return String(i);case"ee":return De(i,2);case"eo":return a.ordinalNumber(i,{unit:"day"});case"eee":return a.day(r,{width:"abbreviated",context:"formatting"});case"eeeee":return a.day(r,{width:"narrow",context:"formatting"});case"eeeeee":return a.day(r,{width:"short",context:"formatting"});case"eeee":default:return a.day(r,{width:"wide",context:"formatting"})}},c:function(t,n,a,o){const r=t.getDay(),i=(r-o.weekStartsOn+8)%7||7;switch(n){case"c":return String(i);case"cc":return De(i,n.length);case"co":return a.ordinalNumber(i,{unit:"day"});case"ccc":return a.day(r,{width:"abbreviated",context:"standalone"});case"ccccc":return a.day(r,{width:"narrow",context:"standalone"});case"cccccc":return a.day(r,{width:"short",context:"standalone"});case"cccc":default:return a.day(r,{width:"wide",context:"standalone"})}},i:function(t,n,a){const o=t.getDay(),r=o===0?7:o;switch(n){case"i":return String(r);case"ii":return De(r,n.length);case"io":return a.ordinalNumber(r,{unit:"day"});case"iii":return a.day(o,{width:"abbreviated",context:"formatting"});case"iiiii":return a.day(o,{width:"narrow",context:"formatting"});case"iiiiii":return a.day(o,{width:"short",context:"formatting"});case"iiii":default:return a.day(o,{width:"wide",context:"formatting"})}},a:function(t,n,a){const r=t.getHours()/12>=1?"pm":"am";switch(n){case"a":case"aa":return a.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return a.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return a.dayPeriod(r,{width:"narrow",context:"formatting"});case"aaaa":default:return a.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(t,n,a){const o=t.getHours();let r;switch(o===12?r=Kt.noon:o===0?r=Kt.midnight:r=o/12>=1?"pm":"am",n){case"b":case"bb":return a.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return a.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return a.dayPeriod(r,{width:"narrow",context:"formatting"});case"bbbb":default:return a.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(t,n,a){const o=t.getHours();let r;switch(o>=17?r=Kt.evening:o>=12?r=Kt.afternoon:o>=4?r=Kt.morning:r=Kt.night,n){case"B":case"BB":case"BBB":return a.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return a.dayPeriod(r,{width:"narrow",context:"formatting"});case"BBBB":default:return a.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(t,n,a){if(n==="ho"){let o=t.getHours()%12;return o===0&&(o=12),a.ordinalNumber(o,{unit:"hour"})}return Bt.h(t,n)},H:function(t,n,a){return n==="Ho"?a.ordinalNumber(t.getHours(),{unit:"hour"}):Bt.H(t,n)},K:function(t,n,a){const o=t.getHours()%12;return n==="Ko"?a.ordinalNumber(o,{unit:"hour"}):De(o,n.length)},k:function(t,n,a){let o=t.getHours();return o===0&&(o=24),n==="ko"?a.ordinalNumber(o,{unit:"hour"}):De(o,n.length)},m:function(t,n,a){return n==="mo"?a.ordinalNumber(t.getMinutes(),{unit:"minute"}):Bt.m(t,n)},s:function(t,n,a){return n==="so"?a.ordinalNumber(t.getSeconds(),{unit:"second"}):Bt.s(t,n)},S:function(t,n){return Bt.S(t,n)},X:function(t,n,a){const o=t.getTimezoneOffset();if(o===0)return"Z";switch(n){case"X":return Dr(o);case"XXXX":case"XX":return _t(o);case"XXXXX":case"XXX":default:return _t(o,":")}},x:function(t,n,a){const o=t.getTimezoneOffset();switch(n){case"x":return Dr(o);case"xxxx":case"xx":return _t(o);case"xxxxx":case"xxx":default:return _t(o,":")}},O:function(t,n,a){const o=t.getTimezoneOffset();switch(n){case"O":case"OO":case"OOO":return"GMT"+Tr(o,":");case"OOOO":default:return"GMT"+_t(o,":")}},z:function(t,n,a){const o=t.getTimezoneOffset();switch(n){case"z":case"zz":case"zzz":return"GMT"+Tr(o,":");case"zzzz":default:return"GMT"+_t(o,":")}},t:function(t,n,a){const o=Math.trunc(+t/1e3);return De(o,n.length)},T:function(t,n,a){return De(+t,n.length)}};function Tr(t,n=""){const a=t>0?"-":"+",o=Math.abs(t),r=Math.trunc(o/60),i=o%60;return i===0?a+String(r):a+String(r)+n+De(i,2)}function Dr(t,n){return t%60===0?(t>0?"-":"+")+De(Math.abs(t)/60,2):_t(t,n)}function _t(t,n=""){const a=t>0?"-":"+",o=Math.abs(t),r=De(Math.trunc(o/60),2),i=De(o%60,2);return a+r+n+i}const Lr=(t,n)=>{switch(t){case"P":return n.date({width:"short"});case"PP":return n.date({width:"medium"});case"PPP":return n.date({width:"long"});case"PPPP":default:return n.date({width:"full"})}},Fr=(t,n)=>{switch(t){case"p":return n.time({width:"short"});case"pp":return n.time({width:"medium"});case"ppp":return n.time({width:"long"});case"pppp":default:return n.time({width:"full"})}},x3={p:Fr,P:(t,n)=>{const a=t.match(/(P+)(p+)?/)||[],o=a[1],r=a[2];if(!r)return Lr(t,n);let i;switch(o){case"P":i=n.dateTime({width:"short"});break;case"PP":i=n.dateTime({width:"medium"});break;case"PPP":i=n.dateTime({width:"long"});break;case"PPPP":default:i=n.dateTime({width:"full"});break}return i.replace("{{date}}",Lr(o,n)).replace("{{time}}",Fr(r,n))}},b3=/^D+$/,w3=/^Y+$/,E3=["D","DD","YY","YYYY"];function v3(t){return b3.test(t)}function C3(t){return w3.test(t)}function S3(t,n,a){const o=B3(t,n,a);if(console.warn(o),E3.includes(t))throw new RangeError(o)}function B3(t,n,a){const o=t[0]==="Y"?"years":"days of the month";return`Use \`${t.toLowerCase()}\` instead of \`${t}\` (in \`${n}\`) for formatting ${o} to the input \`${a}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const V3=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,M3=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,N3=/^'([^]*?)'?$/,A3=/''/g,T3=/[a-zA-Z]/;function $r(t,n,a){var c,h,m,p,f,g,y,k;const o=_n(),r=(a==null?void 0:a.locale)??o.locale??r2,i=(a==null?void 0:a.firstWeekContainsDate)??((h=(c=a==null?void 0:a.locale)==null?void 0:c.options)==null?void 0:h.firstWeekContainsDate)??o.firstWeekContainsDate??((p=(m=o.locale)==null?void 0:m.options)==null?void 0:p.firstWeekContainsDate)??1,s=(a==null?void 0:a.weekStartsOn)??((g=(f=a==null?void 0:a.locale)==null?void 0:f.options)==null?void 0:g.weekStartsOn)??o.weekStartsOn??((k=(y=o.locale)==null?void 0:y.options)==null?void 0:k.weekStartsOn)??0,l=ct(t,a==null?void 0:a.in);if(!m3(l))throw new RangeError("Invalid time value");let d=n.match(M3).map(E=>{const C=E[0];if(C==="p"||C==="P"){const b=x3[C];return b(E,r.formatLong)}return E}).join("").match(V3).map(E=>{if(E==="''")return{isToken:!1,value:"'"};const C=E[0];if(C==="'")return{isToken:!1,value:D3(E)};if(Ar[C])return{isToken:!0,value:E};if(C.match(T3))throw new RangeError("Format string contains an unescaped latin alphabet character `"+C+"`");return{isToken:!1,value:E}});r.localize.preprocessor&&(d=r.localize.preprocessor(l,d));const u={firstWeekContainsDate:i,weekStartsOn:s,locale:r};return d.map(E=>{if(!E.isToken)return E.value;const C=E.value;(!(a!=null&&a.useAdditionalWeekYearTokens)&&C3(C)||!(a!=null&&a.useAdditionalDayOfYearTokens)&&v3(C))&&S3(C,n,String(t));const b=Ar[C[0]];return b(l,C,r.localize,u)}).join("")}function D3(t){const n=t.match(N3);return n?n[1].replace(A3,"'"):t}function L3(t,n){return Al(rt(t,t),Aa(t),n)}function F3(t,n){return Mr(rt(t,t),Aa(t))}function $3(t,n,a){return c3(t,-1,a)}function P3(t,n){return Mr(rt(t,t),$3(Aa(t)))}/*! License details at fancyapps.com/license */const Te=t=>typeof t=="string";/*! License details at fancyapps.com/license */const Qt=t=>t&&t!==null&&t instanceof Element&&"nodeType"in t;/*! License details at fancyapps.com/license */const _3=function(t){if(!(t&&t instanceof Element&&t.offsetParent))return!1;const n=t.scrollHeight>t.clientHeight,a=window.getComputedStyle(t).overflowY,o=a.indexOf("hidden")!==-1,r=a.indexOf("visible")!==-1;return n&&!o&&!r},Ot=function(t,n=void 0){return!t||t===document.body||n&&t===n?null:_3(t)?t:Ot(t.parentElement,n)};/*! License details at fancyapps.com/license */const wt=function(t){var n=new DOMParser().parseFromString(t,"text/html").body;if(n.childElementCount>1){for(var a=document.createElement("div");n.firstChild;)a.appendChild(n.firstChild);return a}let o=n.firstChild;return!o||o instanceof HTMLElement?o:((a=document.createElement("div")).appendChild(o),a)};/*! License details at fancyapps.com/license */const Be=function(t=0,n=0,a=0){return Math.max(Math.min(n,a),t)};/*! License details at fancyapps.com/license */const Ze=t=>typeof t=="object"&&t!==null&&t.constructor===Object&&Object.prototype.toString.call(t)==="[object Object]";/*! License details at fancyapps.com/license */function Pr(t){return Ze(t)||Array.isArray(t)}function hn(t,n){const a=Object.keys(t),o=Object.keys(n);return a.length===o.length&&a.every(r=>{const i=t[r],s=n[r];return typeof i=="function"?`${i}`==`${s}`:Pr(i)&&Pr(s)?hn(i,s):i===s})}/*! License details at fancyapps.com/license */const _r=function(t){for(const n of Gn)n.getState()===Ke.Running&&n.tick(Ta?t-Ta:0);Ta=t,en=window.requestAnimationFrame(_r)};var Ke,Vt,Jt;(function(t){t[t.Initializing=0]="Initializing",t[t.Running=1]="Running",t[t.Paused=2]="Paused",t[t.Completed=3]="Completed",t[t.Destroyed=4]="Destroyed"})(Ke||(Ke={})),function(t){t[t.Spring=0]="Spring",t[t.Ease=1]="Ease"}(Vt||(Vt={})),function(t){t[t.Loop=0]="Loop",t[t.Reverse=1]="Reverse"}(Jt||(Jt={}));const Gn=new Set;let en=null,Ta=0;function Mt(){let t=Ke.Initializing,n=Vt.Ease,a=0,o=0,r=Mt.Easings.Linear,i=500,s=0,l=0,d=0,u=0,c=1/0,h=.01,m=.01,p=!1,f={},g=null,y={},k={},E={},C=0,b=0,N=Jt.Loop,D=Mt.Easings.Linear;const z=new Map;function M(S,...v){for(const P of z.get(S)||[])P(...v)}function x(S){return o=0,S?g=setTimeout(()=>{T()},S):T(),V}function T(){t=Ke.Running,M("start",y,k)}function B(){if(t=Ke.Completed,E={},M("end",y),t===Ke.Completed)if(a<C){if(a++,N===Jt.Reverse){const S=Object.assign({},f);f=Object.assign({},k),k=S}x(b)}else a=0;return V}const V={getState:function(){return t},easing:function(S){return r=S,n=Vt.Ease,E={},V},duration:function(S){return i=S,V},spring:function(S={}){n=Vt.Spring;const v={velocity:0,mass:1,tension:170,friction:26,restDelta:.1,restSpeed:.1,maxSpeed:1/0,clamp:!0},{velocity:P,mass:Z,tension:Q,friction:J,restDelta:_,restSpeed:R,maxSpeed:O,clamp:oe}=Object.assign(Object.assign({},v),S);return s=P,l=Z,d=Q,u=J,m=_,h=R,c=O,p=oe,E={},V},isRunning:function(){return t===Ke.Running},isSpring:function(){return n===Vt.Spring},from:function(S){return y=Object.assign({},S),V},to:function(S){return k=S,V},repeat:function(S,v=0,P=Jt.Loop,Z){return C=S,b=v,N=P,D=Z||r,V},on:function(S,v){var P,Z;return P=S,Z=v,z.set(P,[...z.get(P)||[],Z]),V},off:function(S,v){var P,Z;return P=S,Z=v,z.has(P)&&z.set(P,z.get(P).filter(Q=>Q!==Z)),V},start:function(S){return hn(y,k)||(t=Ke.Initializing,f=Object.assign({},y),Gn.add(this),en||(en=window.requestAnimationFrame(_r)),x(S)),V},pause:function(){return g&&(clearTimeout(g),g=null),t===Ke.Running&&(t=Ke.Paused,M("pause",y)),V},end:B,tick:function(S){S>50&&(S=50),o+=S;let v=0,P=!1;if(t!==Ke.Running)return V;if(n===Vt.Ease){v=Be(0,o/i,1),P=v===1;const Q=N===Jt.Reverse?D:r;for(const J in y)y[J]=f[J]+(k[J]-f[J])*Q(v)}if(n===Vt.Spring){const Q=.001*S;let J=0;for(const _ in y){const R=k[_];let O=y[_];if(typeof R!="number"||isNaN(R)||typeof O!="number"||isNaN(O))continue;if(Math.abs(R-O)<=m){y[_]=R,E[_]=0;continue}E[_]||(typeof s=="object"&&typeof s[_]=="number"?E[_]=s[_]:E[_]=typeof s=="number"?s:0);let oe=E[_];oe=Be(-1*Math.abs(c),oe,Math.abs(c));const de=oe*l*u;oe+=((O>R?-1:1)*(Math.abs(R-O)*d)-de)/l*Q,O+=oe*Q;const pe=y[_]>R?O<R:O>R;let ye=Math.abs(oe)<h&&Math.abs(R-O)<=m;p&&pe&&(ye=!0),ye?(O=R,oe=0):J++,y[_]=O,E[_]=oe}P=!J}const Z=Object.assign({},k);return M("step",y,f,k,v),P&&t===Ke.Running&&hn(k,Z)&&(t=Ke.Completed,B()),V},getStartValues:function(){return f},getCurrentValues:function(){return y},getCurrentVelocities:function(){return E},getEndValues:function(){return k},destroy:function(){t=Ke.Destroyed,g&&(clearTimeout(g),g=null),f=y=k={},Gn.delete(this)}};return V}Mt.destroy=()=>{for(const t of Gn)t.destroy();en&&(cancelAnimationFrame(en),en=null)},Mt.Easings={Linear:function(t){return t},EaseIn:function(t){return t===0?0:Math.pow(2,10*t-10)},EaseOut:function(t){return t===1?1:1-Math.pow(2,-10*t)},EaseInOut:function(t){return t===0?0:t===1?1:t<.5?Math.pow(2,20*t-10)/2:(2-Math.pow(2,-20*t+10))/2}};/*! License details at fancyapps.com/license */function pn(t){return typeof TouchEvent<"u"&&t instanceof TouchEvent}function Da(t,n){const a=[],o=pn(t)?t[n]:t instanceof MouseEvent&&(n==="changedTouches"||t.type!=="mouseup")?[t]:[];for(const r of o)a.push({x:r.clientX,y:r.clientY,ts:Date.now()});return a}function Or(t){return Da(t,"touches")}function Rr(t){return Da(t,"targetTouches")}function Hr(t){return Da(t,"changedTouches")}function Nt(t){const n=t[0],a=t[1]||n;return{x:(n.x+a.x)/2,y:(n.y+a.y)/2,ts:a.ts}}function In(t){const n=t[0],a=t[1]||t[0];return n&&a?-1*Math.sqrt((a.x-n.x)*(a.x-n.x)+(a.y-n.y)*(a.y-n.y)):0}const zr=t=>{t.cancelable&&t.preventDefault()},At={passive:!1},O3={panThreshold:5,swipeThreshold:3,ignore:["textarea","input","select","[contenteditable]","[data-selectable]","[data-draggable]"]};let qn=!1,gn=!0;const tn=(t,n)=>{let a,o,r,i=Object.assign(Object.assign({},O3),n),s=[],l=[],d=[],u=!1,c=!1,h=!1,m=!1,p=0,f=0,g=0,y=0,k=0,E=0,C=0,b=0,N=0,D=[],z=0,M=0;const x=new Map;function T(_){const R=In(l),O=In(d),oe=R&&O?R/O:0,de=Math.abs(C)>Math.abs(b)?C:b,pe={srcEvent:a,isPanRecognized:u,isSwipeRecognized:c,firstTouch:s,previousTouch:d,currentTouch:l,deltaX:g,deltaY:y,offsetX:k,offsetY:E,velocityX:C,velocityY:b,velocity:de,angle:N,axis:r,scale:oe,center:o};for(const ye of x.get(_)||[])ye(pe)}function B(_){const R=Date.now();if(D=D.filter(O=>!O.ts||O.ts>R-100),_&&D.push(_),C=0,b=0,D.length>3){const O=D[0],oe=D[D.length-1];if(O&&oe){const de=oe.x-O.x,pe=oe.y-O.y,ye=O.ts&&oe.ts?oe.ts-O.ts:0;ye>0&&(C=Math.abs(de)>3?de/(ye/30):0,b=Math.abs(pe)>3?pe/(ye/30):0)}}}function V(_){if(typeof MouseEvent<"u"&&_ instanceof MouseEvent){if(qn)return}else qn=!0;const R=_.composedPath()[0],O=i.ignore.join(",");if(R.matches(O)||R.closest(O))return;if(typeof MouseEvent<"u"&&_ instanceof MouseEvent){if(!_.buttons||_.button!==0)return;zr(_)}_ instanceof MouseEvent&&(window.addEventListener("mousemove",S),window.addEventListener("mouseup",v)),window.addEventListener("blur",P),a=_,l=Rr(_),s=[...l],d=[],f=l.length,o=Nt(l),f===1&&(u=!1,c=!1,h=!1),f&&B(Nt(l));const oe=Date.now(),de=oe-(p||oe);m=de>0&&de<=250&&f===1,p=oe,clearTimeout(z),T("start")}function S(_){var R;if(!s.length||_.defaultPrevented)return;a=_,d=[...l],l=Or(_);const O=Nt(d),oe=Nt(Or(_));if(B(oe),f=l.length,o=oe,d.length===l.length?(g=oe.x-O.x,y=oe.y-O.y):(g=0,y=0),s.length){const de=Nt(s);k=oe.x-de.x,E=oe.y-de.y}if(l.length>1){const de=In(l),pe=In(d);Math.abs(de-pe)>=.1&&(h=!0,T("pinch"))}u||(u=Math.abs(k)>i.panThreshold||Math.abs(E)>i.panThreshold,u&&(gn=!1,clearTimeout(M),M=0,N=Math.abs(180*Math.atan2(E,k)/Math.PI),r=N>45&&N<135?"y":"x",s=[...l],d=[...l],k=0,E=0,g=0,y=0,(R=window.getSelection())===null||R===void 0||R.removeAllRanges(),T("panstart"))),u&&(g||y)&&T("pan"),T("move")}function v(_){if(a=_,!s.length)return;const R=Rr(_),O=Hr(_);if(f=R.length,o=Nt(O),O.length&&B(Nt(O)),d=[...l],l=[...R],s=[...R],f>0)T("end"),u=!1,c=!1,D=[];else{const oe=i.swipeThreshold;(Math.abs(C)>oe||Math.abs(b)>oe)&&(c=!0),u&&T("panend"),c&&T("swipe"),u||c||h||(T("tap"),m?T("doubleTap"):z=setTimeout(function(){T("singleTap")},250)),T("end"),Z()}}function P(){clearTimeout(z),Z(),u&&T("panend"),T("end")}function Z(){qn=!1,u=!1,c=!1,m=!1,f=0,D=[],l=[],d=[],s=[],g=0,y=0,k=0,E=0,C=0,b=0,N=0,r=void 0,window.removeEventListener("mousemove",S),window.removeEventListener("mouseup",v),window.removeEventListener("blur",P),gn||M||(M=setTimeout(()=>{gn=!0,M=0},100))}function Q(_){const R=_.target;qn=!1,R&&!_.defaultPrevented&&(gn||(zr(_),_.stopPropagation()))}const J={init:function(){return t&&(t.addEventListener("click",Q,At),t.addEventListener("mousedown",V,At),t.addEventListener("touchstart",V,At),t.addEventListener("touchmove",S,At),t.addEventListener("touchend",v),t.addEventListener("touchcancel",v)),J},on:function(_,R){return function(O,oe){x.set(O,[...x.get(O)||[],oe])}(_,R),J},off:function(_,R){return x.has(_)&&x.set(_,x.get(_).filter(O=>O!==R)),J},isPointerDown:()=>f>0,destroy:function(){clearTimeout(z),clearTimeout(M),M=0,t&&(t.removeEventListener("click",Q,At),t.removeEventListener("mousedown",V,At),t.removeEventListener("touchstart",V,At),t.removeEventListener("touchmove",S,At),t.removeEventListener("touchend",v),t.removeEventListener("touchcancel",v)),t=null,Z()}};return J};tn.isClickAllowed=()=>gn;/*! License details at fancyapps.com/license */const La={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 Ee=(t,n="")=>{t&&t.classList&&n.split(" ").forEach(a=>{a&&t.classList.add(a)})};/*! License details at fancyapps.com/license */const Qe=(t,n="")=>{t&&t.classList&&n.split(" ").forEach(a=>{a&&t.classList.remove(a)})};/*! License details at fancyapps.com/license */const Ye=(t,n="",a)=>{t&&t.classList&&n.split(" ").forEach(o=>{o&&t.classList.toggle(o,a||!1)})};/*! License details at fancyapps.com/license */const Rt=t=>{t.cancelable&&t.preventDefault()},Je=(t,n=1e4)=>(t=parseFloat(t+"")||0,Math.round((t+Number.EPSILON)*n)/n),kt=t=>t instanceof HTMLImageElement;var ge,jr;(function(t){t.Reset="reset",t.Zoom="zoom",t.ZoomIn="zoomIn",t.ZoomOut="zoomOut",t.ZoomTo="zoomTo",t.ToggleCover="toggleCover",t.ToggleFull="toggleFull",t.ToggleMax="toggleMax",t.IterateZoom="iterateZoom",t.Pan="pan",t.Swipe="swipe",t.Move="move",t.MoveLeft="moveLeft",t.MoveRight="moveRight",t.MoveUp="moveUp",t.MoveDown="moveDown",t.RotateCCW="rotateCCW",t.RotateCW="rotateCW",t.FlipX="flipX",t.FlipY="flipY",t.ToggleFS="toggleFS"})(ge||(ge={})),function(t){t.Cover="cover",t.Full="full",t.Max="max"}(jr||(jr={}));const ft={x:0,y:0,scale:1,angle:0,flipX:1,flipY:1},Fa={bounds:!0,classes:{container:"f-panzoom",wrapper:"f-panzoom__wrapper",content:"f-panzoom__content",viewport:"f-panzoom__viewport"},clickAction:ge.ToggleFull,dblClickAction:!1,gestures:{},height:"auto",l10n:La,maxScale:4,minScale:1,mouseMoveFactor:1,panMode:"drag",protected:!1,singleClickAction:!1,spinnerTpl:'<div class="f-spinner"></div>',wheelAction:ge.Zoom,width:"auto"};let Wn,Gr=0,Ir=0,Un=0;const $a=(t,n={},a={})=>{let o,r,i,s,l,d,u,c,h=0,m=Object.assign(Object.assign({},Fa),n),p={},f=Object.assign({},ft),g=Object.assign({},ft);const y=[];function k($){let I=m[$];return I&&typeof I=="function"?I(ce):I}function E(){return t&&t.parentElement&&o&&h===3}const C=new Map;function b($,...I){const te=[...C.get($)||[]];m.on&&te.push(m.on[$]);for(const Y of te)Y&&Y instanceof Function&&Y(ce,...I);$!=="*"&&b("*",$,...I)}function N($){if(!E())return;const I=$.target;if(Ot(I))return;const te=Date.now(),Y=[-$.deltaX||0,-$.deltaY||0,-$.detail||0].reduce(function(se,fe){return Math.abs(fe)>Math.abs(se)?fe:se}),w=Be(-1,Y,1);b("wheel",$,w);const L=k("wheelAction");if(!L||$.defaultPrevented)return;const X=g.scale;let ne=X*(w>0?1.5:.5);if(L===ge.Zoom){const se=Math.abs($.deltaY)<100&&Math.abs($.deltaX)<100;if(te-Ir<(se?200:45))return void Rt($);Ir=te;const fe=Q(),me=O();if(Je(ne)<Je(fe)&&Je(X)<=Je(fe)?(Un+=Math.abs(w),ne=fe):Je(ne)>Je(me)&&Je(X)>=Je(me)?(Un+=Math.abs(w),ne=me):(Un=0,ne=Be(fe,ne,me)),Un>7)return}switch(Rt($),L){case ge.Pan:ye(L,{srcEvent:$,deltaX:2*-$.deltaX,deltaY:2*-$.deltaY});break;case ge.Zoom:ye(ge.ZoomTo,{srcEvent:$,scale:ne,center:{x:$.clientX,y:$.clientY}});break;default:ye(L,{srcEvent:$})}}function D($){var I,te;const Y=$.composedPath()[0];if(!tn.isClickAllowed()||!Qt(Y)||$.defaultPrevented||!(t!=null&&t.contains(Y))||Y.hasAttribute("disabled")||Y.hasAttribute("aria-disabled"))return;const w=Y.closest("[data-panzoom-action]"),L=(I=w==null?void 0:w.dataset)===null||I===void 0?void 0:I.panzoomAction,X=((te=w==null?void 0:w.dataset)===null||te===void 0?void 0:te.panzoomValue)||"";if(L){switch(Rt($),L){case ge.ZoomTo:case ge.ZoomIn:case ge.ZoomOut:ye(L,{scale:parseFloat(X||"")||void 0});break;case ge.MoveLeft:case ge.MoveRight:ye(L,{deltaX:parseFloat(X||"")||void 0});break;case ge.MoveUp:case ge.MoveDown:ye(L,{deltaY:parseFloat(X||"")||void 0});break;case ge.ToggleFS:ae();break;default:ye(L)}return}if(!(o!=null&&o.contains(Y)))return;const ne={srcEvent:$};if(ye(k("clickAction"),ne),k("dblClickAction")){const se=Date.now(),fe=se-(Gr||se);Gr=se,fe>0&&fe<=250?(Wn&&(clearTimeout(Wn),Wn=void 0),ye(k("dblClickAction"),ne)):Wn=setTimeout(()=>{ye(k("singleClickAction"),ne)},250)}}function z($){if(c=$,!E()||!v()||f.scale<=1||g.scale<=1||((o==null?void 0:o.dataset.animationName)||"").indexOf("zoom")>-1)return;const I=P(g.scale);if(!I)return;const{x:te,y:Y}=I;ye(ge.Pan,{deltaX:te-g.x,deltaY:Y-g.y})}function M(){var $;t&&(Qe(t,"is-loading"),($=t.querySelector(".f-spinner"))===null||$===void 0||$.remove())}function x(){if(!t||!r)return;if(M(),kt(r)&&(!r.complete||!r.naturalWidth))return h=2,o==null||o.classList.add("has-error"),void b("error");b("loaded");const{width:$,height:I}=V();kt(r)&&(r.setAttribute("width",$+""),r.setAttribute("height",I+"")),o&&(Qe(o,"has-error"),kt(r)&&(o.setAttribute("width",$+""),o.setAttribute("height",I+""),o.style.aspectRatio=`${$/I||""}`)),d=Mt().on("start",(Y,w)=>{w.angle!==void 0&&(w.angle=90*Math.round(w.angle/90)),w.flipX!==void 0&&(w.flipX=w.flipX>0?1:-1),w.flipY!==void 0&&(w.flipY=w.flipY>0?1:-1),g=Object.assign(Object.assign({},ft),w),pe(),b("animationStart")}).on("pause",Y=>{g=Object.assign(Object.assign({},ft),Y)}).on("step",Y=>{if(!E())return void(d==null||d.end());if(f=Object.assign(Object.assign({},ft),Y),v()||!k("bounds")||q()||g.scale>f.scale||g.scale<J())return void Ve();const w=oe(g.scale);let L=!1,X=!1,ne=!1,se=!1;f.x<w.x[0]&&(L=!0),f.x>w.x[1]&&(X=!0),f.y<w.y[0]&&(se=!0),f.y>w.y[1]&&(ne=!0);let fe=!1,me=!1,be=!1,Ce=!1;g.x<w.x[0]&&(fe=!0),g.x>w.x[1]&&(me=!0),g.y<w.y[0]&&(Ce=!0),g.y>w.y[1]&&(be=!0);let Le=!1;(X&&me||L&&fe)&&(g.x=Be(w.x[0],g.x,w.x[1]),Le=!0),(ne&&be||se&&Ce)&&(g.y=Be(w.y[0],g.y,w.y[1]),Le=!0),Le&&d&&d.spring({tension:94,friction:17,maxSpeed:555*g.scale,restDelta:.1,restSpeed:.1,velocity:d.getCurrentVelocities()}).from(f).to(g).start(),Ve()}).on("end",()=>{l!=null&&l.isPointerDown()||de(),d!=null&&d.isRunning()||(pe(),b("animationEnd"))}),function(){const Y=k("gestures");if(!Y||!s||!r)return;let w=!1;l=tn(s,Y).on("start",L=>{if(!k("gestures")||!d||!E()||v())return;const X=L.srcEvent;(f.scale>1||L.currentTouch.length>1)&&(X==null||X.stopPropagation(),d.pause(),w=!0),L.currentTouch.length===1&&b("touchStart")}).on("move",L=>{var X;w&&(g.scale!==1||L.currentTouch.length>1)&&(Rt(L.srcEvent),(X=L.srcEvent)===null||X===void 0||X.stopPropagation())}).on("pan",L=>{if(!w)return;const X=L.srcEvent;(g.scale!==1||L.currentTouch.length>1)&&(Rt(X),ye(ge.Pan,L))}).on("swipe",L=>{w&&g.scale>1&&ye(ge.Swipe,L)}).on("tap",L=>{b("click",L)}).on("singleTap",L=>{b("singleClick",L)}).on("doubleTap",L=>{b("dblClick",L)}).on("pinch",L=>{w&&(L.scale>J()?ye(ge.ZoomIn,L):L.scale<J()?ye(ge.ZoomOut,L):ye(ge.Pan,L))}).on("end",L=>{w&&(L.currentTouch.length?(L.srcEvent.stopPropagation(),Rt(L.srcEvent),d==null||d.end()):(w=!1,pe(),de(),b("touchEnd")))}).init()}(),s&&(s.addEventListener("wheel",N,{passive:!1}),y.push(()=>{s==null||s.removeEventListener("wheel",N,{passive:!1})})),t==null||t.addEventListener("click",D),document==null||document.addEventListener("mousemove",z),y.push(()=>{t==null||t.removeEventListener("click",D),document==null||document.removeEventListener("mousemove",z)});const te=T();f=Object.assign({},te),g=Object.assign({},te),h=3,Ve(),pe(),b("ready"),requestAnimationFrame(()=>{M(),s&&(s.style.visibility="")})}function T(){const $=Object.assign({},k("startPos")||{});let I=$.scale,te=1;te=typeof I=="string"?Z(I):typeof I=="number"?I:J();const Y=Object.assign(Object.assign(Object.assign({},ft),$),{scale:te}),w=v()?P(te):void 0;if(w){const{x:L,y:X}=w;Y.x=L,Y.y=X}return Y}function B(){const $={top:0,left:0,width:0,height:0};if(o){const I=o.getBoundingClientRect();g.angle%180==90?($.top=I.top+.5*I.height-.5*I.width,$.left=I.left+.5*I.width-.5*I.height,$.width=I.height,$.height=I.width):($.top=I.top,$.left=I.left,$.width=I.width,$.height=I.height)}return $}function V(){let $=k("width"),I=k("height");if(r&&$==="auto"){const te=r.getAttribute("width");$=te?parseFloat(te+""):r.dataset.width!==void 0?parseFloat(r.dataset.width+""):kt(s)?s.naturalWidth:kt(r)?r.naturalWidth:(o==null?void 0:o.getBoundingClientRect().width)||0}else $=Te($)?parseFloat($):$;if(r&&I==="auto"){const te=r.getAttribute("height");I=te?parseFloat(te+""):r.dataset.height!==void 0?parseFloat(r.dataset.height+""):kt(s)?s.naturalHeight:kt(r)?r.naturalHeight:(o==null?void 0:o.getBoundingClientRect().height)||0}else I=Te(I)?parseFloat(I):I;return{width:$,height:I}}function S(){const $=B();return{width:$.width,height:$.height}}function v(){return k("panMode")==="mousemove"&&matchMedia("(hover: hover)").matches}function P($){const I=c||k("event"),te=o==null?void 0:o.getBoundingClientRect();if(!I||!te||$<=1)return{x:0,y:0};const Y=(I.clientX||0)-te.left,w=(I.clientY||0)-te.top,{width:L,height:X}=S(),ne=oe($);if($>1){const Ce=k("mouseMoveFactor");Ce>1&&($*=Ce)}let se=L*$,fe=X*$,me=.5*(se-L)-Y/L*100/100*(se-L),be=.5*(fe-X)-w/X*100/100*(fe-X);return me=Be(ne.x[0],me,ne.x[1]),be=Be(ne.y[0],be,ne.y[1]),{x:me,y:be}}function Z($="base"){if(!t)return 1;const I=t.getBoundingClientRect(),te=B(),{width:Y,height:w}=V(),L=me=>{if(typeof me=="number")return me;switch(me){case"min":case"base":return 1;case"cover":return Math.max(I.height/te.height,I.width/te.width)||1;case"full":case"max":{const be=g.angle%180==90?w:Y;return be&&te.width?be/te.width:1}}},X=k("minScale"),ne=k("maxScale"),se=Math.min(L("full"),L(X)),fe=typeof ne=="number"?L("full")*ne:Math.min(L("full"),L(ne));switch($){case"min":return se;case"base":return Be(se,1,fe);case"cover":return L("cover");case"full":return Math.min(fe,L("full"));case"max":return fe}}function Q(){return Z("min")}function J(){return Z("base")}function _(){return Z("cover")}function R(){return Z("full")}function O(){return Z("max")}function oe($){const I={x:[0,0],y:[0,0]},te=t==null?void 0:t.getBoundingClientRect();if(!te)return I;const Y=B(),w=te.width,L=te.height;let X=Y.width,ne=Y.height,se=$=$===void 0?g.scale:$,fe=$;if(v()&&$>1){const me=k("mouseMoveFactor");me>1&&(X*$>w+.01&&(se*=me),ne*$>L+.01&&(fe*=me))}return X*=se,ne*=fe,$>1&&(X>w&&(I.x[0]=.5*(w-X),I.x[1]=.5*(X-w)),I.x[0]-=.5*(Y.left-te.left),I.x[1]-=.5*(Y.left-te.left),I.x[0]-=.5*(Y.left+Y.width-te.right),I.x[1]-=.5*(Y.left+Y.width-te.right),ne>L&&(I.y[0]=.5*(L-ne),I.y[1]=.5*(ne-L)),I.y[0]-=.5*(Y.top-te.top),I.y[1]-=.5*(Y.top-te.top),I.y[0]-=.5*(Y.top+Y.height-te.bottom),I.y[1]-=.5*(Y.top+Y.height-te.bottom)),I}function de(){if(!E()||!k("bounds")||!d)return;const $=Q(),I=O(),te=Be($,g.scale,I);if(g.scale<$-.01||g.scale>I+.01)return void ye(ge.ZoomTo,{scale:te});if(d.isRunning()||q())return;const Y=oe(te);g.x<Y.x[0]||g.x>Y.x[1]||g.y<Y.y[0]||g.y>Y.y[1]?(g.x=Be(Y.x[0],g.x,Y.x[1]),g.y=Be(Y.y[0],g.y,Y.y[1]),d.spring({tension:170,friction:17,restDelta:.001,restSpeed:.001,maxSpeed:1/0,velocity:d.getCurrentVelocities()}),d.from(f).to(g).start()):Ve()}function pe($){var I;if(!E())return;const te=ze(),Y=q(),w=re(),L=he(),X=Ae(),ne=qe();Ye(o,"is-fullsize",L),Ye(o,"is-expanded",w),Ye(o,"is-dragging",Y),Ye(o,"can-drag",te),Ye(o,"will-zoom-in",X),Ye(o,"will-zoom-out",ne);const se=$e(),fe=_e(),me=Oe(),be=!E();for(const Ce of((I=$||t)===null||I===void 0?void 0:I.querySelectorAll("[data-panzoom-action]"))||[]){const Le=Ce.dataset.panzoomAction;let xe=!1;if(be)xe=!0;else switch(Le){case ge.ZoomIn:se||(xe=!0);break;case ge.ZoomOut:me||(xe=!0);break;case ge.ToggleFull:{fe||me||(xe=!0);const A=Ce.querySelector("g");A&&(A.style.display=L&&!xe?"none":"");break}case ge.IterateZoom:{se||me||(xe=!0);const A=Ce.querySelector("g");A&&(A.style.display=se||xe?"":"none");break}case ge.ToggleCover:case ge.ToggleMax:se||me||(xe=!0)}xe?(Ce.setAttribute("aria-disabled",""),Ce.setAttribute("tabindex","-1")):(Ce.removeAttribute("aria-disabled"),Ce.removeAttribute("tabindex"))}}function ye($,I){var te;if(!($&&t&&r&&d&&E())||$===ge.Swipe&&Math.abs(d.getCurrentVelocities().scale)>.01)return;const Y=Object.assign({},g);let w=Object.assign({},g),L=oe(v()?Y.scale:f.scale);const X=d.getCurrentVelocities(),ne=B(),se=(((te=(I=I||{}).currentTouch)===null||te===void 0?void 0:te.length)||0)>1,fe=I.velocityX||0,me=I.velocityY||0;let be=I.center;I.srcEvent&&(be=Nt(Hr(I.srcEvent)));let Ce=I.deltaX||0,Le=I.deltaY||0;switch($){case ge.MoveRight:Ce=I.deltaX||100;break;case ge.MoveLeft:Ce=I.deltaX||-100;break;case ge.MoveUp:Le=I.deltaY||-100;break;case ge.MoveDown:Le=I.deltaY||100}let xe=[];switch($){case ge.Reset:w=Object.assign({},ft),w.scale=J();break;case ge.Pan:case ge.Move:case ge.MoveLeft:case ge.MoveRight:case ge.MoveUp:case ge.MoveDown:if(q()){let j=1,F=1;w.x<=L.x[0]&&fe<=0&&(j=Math.max(.01,1-Math.abs(1/ne.width*Math.abs(w.x-L.x[0]))),j*=.2),w.x>=L.x[1]&&fe>=0&&(j=Math.max(.01,1-Math.abs(1/ne.width*Math.abs(w.x-L.x[1]))),j*=.2),w.y<=L.y[0]&&me<=0&&(F=Math.max(.01,1-Math.abs(1/ne.height*Math.abs(w.y-L.y[0]))),F*=.2),w.y>=L.y[1]&&me>=0&&(F=Math.max(.01,1-Math.abs(1/ne.height*Math.abs(w.y-L.y[1]))),F*=.2),w.x+=Ce*j,w.y+=Le*F}else w.x=Be(L.x[0],w.x+Ce,L.x[1]),w.y=Be(L.y[0],w.y+Le,L.y[1]);break;case ge.Swipe:const A=(j=0)=>Math.sign(j)*Math.pow(Math.abs(j),1.5);w.x+=Be(-1e3,A(fe),1e3),w.y+=Be(-1e3,A(me),1e3),me&&!fe&&(w.x=Be(L.x[0],w.x,L.x[1])),!me&&fe&&(w.y=Be(L.y[0],w.y,L.y[1])),X.x=fe,X.y=me;break;case ge.ZoomTo:w.scale=I.scale||1;break;case ge.ZoomIn:w.scale=w.scale*(I.scale||2),se||(w.scale=Math.min(w.scale,O()));break;case ge.ZoomOut:w.scale=w.scale*(I.scale||.5),se||(w.scale=Math.max(w.scale,Q()));break;case ge.ToggleCover:xe=[J(),_()];break;case ge.ToggleFull:xe=[J(),R()];break;case ge.ToggleMax:xe=[J(),O()];break;case ge.IterateZoom:xe=[J(),R(),O()];break;case ge.Zoom:const H=R();w.scale>=H-.05?w.scale=J():w.scale=Math.min(H,w.scale*(I.scale||2));break;case ge.RotateCW:w.angle+=90;break;case ge.RotateCCW:w.angle-=90;break;case ge.FlipX:w.flipX*=-1;break;case ge.FlipY:w.flipY*=-1}if(f.angle!==void 0&&Math.abs(f.angle)>=360&&(w.angle-=360*Math.floor(f.angle/360),f.angle-=360*Math.floor(f.angle/360)),xe.length){const A=xe.findIndex(H=>H>w.scale+1e-4);w.scale=xe[A]||xe[0]}if(se&&(w.scale=Be(Q()*(se?.8:1),w.scale,O()*(se?1.6:1))),v()){const A=P(w.scale);if(A){const{x:H,y:j}=A;w.x=H,w.y=j}}else if(Math.abs(w.scale-Y.scale)>1e-4){let A=0,H=0;if(be)A=be.x,H=be.y;else{const ee=t.getBoundingClientRect();A=ee.x+.5*ee.width,H=ee.y+.5*ee.height}let j=A-ne.left,F=H-ne.top;j-=.5*ne.width,F-=.5*ne.height;const G=(j-Y.x)/Y.scale,W=(F-Y.y)/Y.scale;w.x=j-G*w.scale,w.y=F-W*w.scale,!se&&k("bounds")&&(L=oe(w.scale),w.x=Be(L.x[0],w.x,L.x[1]),w.y=Be(L.y[0],w.y,L.y[1]))}if($===ge.Swipe){let A=94,H=17,j=500*w.scale,F=X;d.spring({tension:A,friction:H,maxSpeed:j,restDelta:.1,restSpeed:.1,velocity:F})}else $===ge.Pan||se?d.spring({tension:900,friction:17,restDelta:.01,restSpeed:.01,maxSpeed:1}):d.spring({tension:170,friction:17,restDelta:.001,restSpeed:.001,maxSpeed:1/0,velocity:X});if(I.velocity===0||hn(f,w))f=Object.assign({},w),g=Object.assign({},w),d.end(),Ve(),pe();else{if(hn(g,w))return;d.from(f).to(w).start()}b("action",$)}function Ve(){if(!r||!o||!s)return;const{width:$,height:I}=V();Object.assign(o.style,{maxWidth:`min(${$}px, 100%)`,maxHeight:`min(${I}px, 100%)`});const te=function(){const{width:Ce,height:Le}=V(),{width:xe,height:A}=S();if(!t)return{x:0,y:0,width:0,height:0,scale:0,flipX:0,flipY:0,angle:0,fitWidth:xe,fitHeight:A,fullWidth:Ce,fullHeight:Le};let{x:H,y:j,scale:F,angle:G,flipX:W,flipY:ee}=f,ie=1/R(),ue=Ce,le=Le,ke=f.scale*ie,ve=g.scale*ie;const Me=Math.max(xe,A),Ne=Math.min(xe,A);Ce>Le?(ue=Me,le=Ne):(ue=Ne,le=Me),ke=Ce>Le?Me*F/Ce||1:Me*F/Le||1;let je=ue?Ce*ve:0,it=le?Le*ve:0,st=ue&&le?Ce*ke/je:0;return H=H+.5*ue-.5*je,j=j+.5*le-.5*it,{x:H,y:j,width:je,height:it,scale:st,flipX:W,flipY:ee,angle:G,fitWidth:xe,fitHeight:A,fullWidth:Ce,fullHeight:Le}}(),{x:Y,y:w,width:L,height:X,scale:ne,angle:se,flipX:fe,flipY:me}=te;let be=`translate(${Je(Y)}px, ${Je(w)}px)`;be+=fe!==1||me!==1?` scaleX(${Je(ne*fe)}) scaleY(${Je(ne*me)})`:` scale(${Je(ne)})`,se!==0&&(be+=` rotate(${se}deg)`),s.style.width=`${Je(L)}px`,s.style.height=`${Je(X)}px`,s.style.transform=`${be}`,b("render")}function Fe(){let $=g.scale;const I=k("clickAction");let te=J();if(I){let Y=[];switch(I){case ge.ZoomIn:te=2*$;break;case ge.ZoomOut:te=.5*$;break;case ge.ToggleCover:Y=[J(),_()];break;case ge.ToggleFull:Y=[J(),R()];break;case ge.ToggleMax:Y=[J(),O()];break;case ge.IterateZoom:Y=[J(),R(),O()];break;case ge.Zoom:const w=R();te=$>=w-.05?J():Math.min(w,2*$)}if(Y.length){const w=Y.findIndex(L=>L>$+1e-4);te=Y[w]||J()}}return te=Be(Q(),te,O()),te}function Ae(){return!!(E()&&Fe()>g.scale)}function qe(){return!!(E()&&Fe()<g.scale)}function Oe(){return!!(E()&&g.scale>Q())}function $e(){return!!(E()&&g.scale<O())}function _e(){return!!(E()&&g.scale<R())}function ze(){return!(!(E()&&re()&&l)||v())}function q(){return!(!E()||!(l!=null&&l.isPointerDown())||v())}function re(){return!!(E()&&g.scale>J())}function he(){return!!(E()&&g.scale>=R())}function ae(){const $="in-fullscreen",I="with-panzoom-in-fullscreen";t==null||t.classList.toggle($);const te=t==null?void 0:t.classList.contains($);te?(document.documentElement.classList.add(I),document.addEventListener("keydown",K,!0)):(document.documentElement.classList.remove(I),document.removeEventListener("keydown",K,!0)),Ve(),b(te?"enterFS":"exitFS")}function K($){$.key!=="Escape"||$.defaultPrevented||ae()}const ce={canDrag:ze,canZoomIn:$e,canZoomOut:Oe,canZoomToFull:_e,destroy:function(){b("destroy");for(const $ of Object.values(p))$==null||$.destroy(ce);for(const $ of y)$();return o&&(o.style.aspectRatio="",o.style.maxWidth="",o.style.maxHeight=""),s&&(s.style.width="",s.style.height="",s.style.transform=""),o=void 0,r=void 0,s=void 0,f=Object.assign({},ft),g=Object.assign({},ft),d==null||d.destroy(),d=void 0,l==null||l.destroy(),l=void 0,h=4,ce},emit:b,execute:ye,getBoundaries:oe,getContainer:function(){return t},getContent:function(){return r},getFullDim:V,getGestures:function(){return l},getMousemovePos:P,getOptions:function(){return m},getPlugins:function(){return p},getScale:Z,getStartPosition:T,getState:function(){return h},getTransform:function($){return $===!0?g:f},getTween:function(){return d},getViewport:function(){return s},getWrapper:function(){return o},init:function(){return h=0,b("init"),function(){for(const[$,I]of Object.entries(Object.assign(Object.assign({},a),m.plugins||{})))if($&&!p[$]&&I instanceof Function){const te=I();te.init(ce),p[$]=te}b("initPlugins")}(),function(){const $=Object.assign(Object.assign({},Fa.classes),k("classes"));if(t&&(Ee(t,$.container),r=t.querySelector("."+$.content),!!r)){if(r.setAttribute("draggable","false"),o=t.querySelector("."+$.wrapper),o||(o=document.createElement("div"),Ee(o,$.wrapper),r.insertAdjacentElement("beforebegin",o),o.insertAdjacentElement("afterbegin",r)),s=t.querySelector("."+$.viewport),s||(s=document.createElement("div"),Ee(s,$.viewport),s.insertAdjacentElement("afterbegin",r),o.insertAdjacentElement("beforeend",s)),i=r.cloneNode(!0),i.removeAttribute("id"),o.insertAdjacentElement("afterbegin",i),r instanceof HTMLPictureElement&&(r=r.querySelector("img")),i instanceof HTMLPictureElement&&(i=i.querySelector("img")),s instanceof HTMLPictureElement&&(s=s.querySelector("img")),s&&(s.style.visibility="hidden",k("protected"))){s.addEventListener("contextmenu",te=>{Rt(te)});const I=document.createElement("div");Ee(I,"f-panzoom__protected"),s.appendChild(I)}b("initLayout")}}(),function(){if(t&&o&&!u){let $=null;u=new ResizeObserver(()=>{E()&&($=$||requestAnimationFrame(()=>{E()&&(pe(),de(),b("refresh")),$=null}))}),u.observe(o),y.push(()=>{u==null||u.disconnect(),u=void 0,$&&(cancelAnimationFrame($),$=null)})}}(),function(){if(!t||!r)return;if(!kt(r)||!kt(i))return void x();const $=()=>{r&&kt(r)&&r.decode().then(()=>{x()}).catch(()=>{x()})};if(h=1,t.classList.add("is-loading"),b("loading"),i.src&&i.complete)return void $();(function(){if(!t||t!=null&&t.querySelector(".f-spinner"))return;const I=k("spinnerTpl"),te=wt(I);te&&(te.classList.add("f-spinner"),t.classList.add("is-loading"),o==null||o.insertAdjacentElement("afterbegin",te))})(),i.addEventListener("load",$,!1),i.addEventListener("error",$,!1),y.push(()=>{i==null||i.removeEventListener("load",$,!1),i==null||i.removeEventListener("error",$,!1)})}(),ce},isDragging:q,isExpanded:re,isFullsize:he,isMousemoveMode:v,localize:function($,I=[]){const te=k("l10n")||{};$=String($).replace(/\{\{(\w+)\}\}/g,(Y,w)=>te[w]||Y);for(let Y=0;Y<I.length;Y++)$=$.split(I[Y][0]).join(I[Y][1]);return $=$.replace(/\{\{(.*?)\}\}/g,(Y,w)=>w)},off:function($,I){for(const te of $ instanceof Array?$:[$])C.has(te)&&C.set(te,C.get(te).filter(Y=>Y!==I));return ce},on:function($,I){for(const te of $ instanceof Array?$:[$])C.set(te,[...C.get(te)||[],I]);return ce},toggleFS:ae,updateControls:pe,version:"6.1.3",willZoomIn:Ae,willZoomOut:qe};return ce};$a.l10n={en_EN:La},$a.getDefaults=()=>Fa;/*! License details at fancyapps.com/license */const Pa=(t,n)=>{let a=[];return t.childNodes.forEach(o=>{o.nodeType!==Node.ELEMENT_NODE||n&&!o.matches(n)||a.push(o)}),a};/*! License details at fancyapps.com/license */const ot=(t,...n)=>{const a=n.length;for(let o=0;o<a;o++){const r=n[o]||{};Object.entries(r).forEach(([i,s])=>{const l=Array.isArray(s)?[]:{};t[i]||Object.assign(t,{[i]:l}),Ze(s)?Object.assign(t[i],ot(t[i],s)):Array.isArray(s)?Object.assign(t,{[i]:[...s]}):Object.assign(t,{[i]:s})})}return t};/*! License details at fancyapps.com/license */const Zn=function(t=0,n=0,a=0,o=0,r=0,i=!1){const s=(t-n)/(a-n)*(r-o)+o;return i?o<r?Be(o,s,r):Be(r,s,o):s};/*! License details at fancyapps.com/license */const _a=Object.assign(Object.assign({},La),{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 Ht=t=>{t.cancelable&&t.preventDefault()},nn={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:_a,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 qr,Wr=0;const Yn=(t,n={},a={})=>{Wr++;let o,r,i,s,l,d=0,u=Object.assign({},nn),c=Object.assign({},nn),h={},m=null,p=null,f=!1,g=!1,y=!1,k=!1,E="height",C=0,b=!0,N=0,D=0,z=0,M=0,x="*",T=[],B=[];const V=new Set;let S=[],v=[],P=0,Z=0,Q=0;function J(A,...H){let j=c[A];return j&&j instanceof Function?j(xe,...H):j}function _(A,H=[]){const j=J("l10n")||{};A=String(A).replace(/\{\{(\w+)\}\}/g,(F,G)=>j[G]||F);for(let F=0;F<H.length;F++)A=A.split(H[F][0]).join(H[F][1]);return A=A.replace(/\{\{(.*?)\}\}/g,(F,G)=>G)}const R=new Map;function O(A,...H){const j=[...R.get(A)||[]];c.on&&j.push(c.on[A]);for(const F of j)F&&F instanceof Function&&F(xe,...H);A!=="*"&&O("*",A,...H)}function oe(){var A,H;const j=ot({},nn,u);ot(j,nn,u);let F="";const G=u.breakpoints||{};if(G)for(const[W,ee]of Object.entries(G))window.matchMedia(W).matches&&(F+=W,ot(j,ee));if(l===void 0||F!==l){if(l=F,d!==0){let W=(H=(A=v[N])===null||A===void 0?void 0:A.slides[0])===null||H===void 0?void 0:H.index;W===void 0&&(W=c.initialSlide),j.initialSlide=W,j.slides=[];for(const ee of T)ee.isVirtual&&j.slides.push(ee)}be(),c=j,J("enabled")!==!1&&(d=0,O("init"),function(){for(const[W,ee]of Object.entries(Object.assign(Object.assign({},a),c.plugins||{})))if(W&&!h[W]&&ee instanceof Function){const ie=ee();ie.init(xe,Yn),h[W]=ie}O("initPlugins")}(),function(){if(!m)return;const W=J("classes")||{};Ee(m,W.container);const ee=J("style");if(ee&&Ze(ee))for(const[ie,ue]of Object.entries(ee))m.style.setProperty(ie,ue);p=m.querySelector(`.${W.viewport}`),p||(p=document.createElement("div"),Ee(p,W.viewport),p.append(...Pa(m,`.${W.slide}`)),m.insertAdjacentElement("afterbegin",p)),m.carousel=xe,O("initLayout")}(),function(){if(!p)return;const W=J("classes")||{};T=[],[...Pa(p,`.${W.slide}`)].forEach(ee=>{if(ee.parentElement){const ie=re(Object.assign({el:ee,isVirtual:!1},ee.dataset||{}));O("createSlide",ie),T.push(ie)}}),ce();for(const ee of T)O("addSlide",ee);q(J("slides"));for(const ee of T){const ie=ee.el;(ie==null?void 0:ie.parentElement)===p&&(Ee(ie,c.classes.slide),Ee(ie,ee.class),ne(ee),O("attachSlideEl",ee))}O("initSlides")}(),$(),d=1,Ee(m,(J("classes")||{}).isEnabled||""),me(),Fe(),r=Mt().on("start",()=>{o&&o.isPointerDown()||(Ve(),me())}).on("step",W=>{const ee=C;C=W.pos,C!==ee&&(b=!1,me())}).on("end",W=>{o!=null&&o.isPointerDown()||(C=W.pos,r&&!g&&(C<z||C>M)?r.spring({clamp:!0,mass:1,tension:200,friction:25,velocity:0,restDelta:1,restSpeed:1}).from({pos:C}).to({pos:Be(z,C,M)}).start():b||(b=!0,O("settle")))}),pe(),function(){if(!m||!p)return;m.addEventListener("click",w,{passive:!1}),document.addEventListener("mousemove",de);const W=p.getBoundingClientRect();if(P=W.height,Z=W.width,!i){let ee=null;i=new ResizeObserver(()=>{ee||(ee=requestAnimationFrame(()=>{(function(){if(d!==1||!p)return;const ie=v.length,ue=p.getBoundingClientRect(),le=ue.height,ke=ue.width;ie>1&&(k&&Math.abs(le-P)<.5||!k&&Math.abs(ke-Z)<.5)||($(),pe(),P=le,Z=ke,k&&!le||!k&&!ke||m&&p&&(ie===v.length&&(o!=null&&o.isPointerDown())||(J("dragFree")&&(g||C>z&&C<M)?(Ve(),me()):se(N,{transition:!1}))))})(),ee=null}))}),i.observe(p)}}(),O("ready"))}}function de(A){qr=A}function pe(){J("gestures")===!1?o&&(o.destroy(),o=void 0):o||function(){const A=J("gestures");!o&&A!==!1&&p&&(o=tn(p,A).on("start",H=>{var j,F;if(!r)return;const{srcEvent:G}=H;k&&pn(G)&&!Ot(G.target)&&Ht(G),r.pause(),r.getCurrentVelocities().pos=0;const W=(j=v[N])===null||j===void 0?void 0:j.slides[0];W&&V.has(W.index)&&W.el&&(C=W.offset||0,C+=(function(ee){const ie=window.getComputedStyle(ee),ue=new DOMMatrixReadOnly(ie.transform);return{width:ue.m41||0,height:ue.m42||0}}(W.el)[E]||0)*(y&&!k?1:-1)),te(),g||(C<z||C>M)&&r.spring({clamp:!0,mass:1,tension:500,friction:25,velocity:((F=r.getCurrentVelocities())===null||F===void 0?void 0:F.pos)||0,restDelta:1,restSpeed:1}).from({pos:C}).to({pos:Be(z,C,M)}).start()}).on("move",H=>{var j,F;const{srcEvent:G,axis:W}=H,ee=G.target;if(W||(Ht(G),G.stopPropagation(),G.stopImmediatePropagation()),(W==="y"&&k||W==="x"&&!k)&&(Ht(G),G.stopPropagation()),!W)return;const{deltaX:ie,deltaY:ue}=H;if(!r||pn(G)&&((j=G.touches)===null||j===void 0?void 0:j.length)>1||W==="y"&&!k||W==="x"&&k||ee&&Ot(ee)&&(W!=="x"||k))return;const le=y&&!k?1:-1;let ke=k?ue:ie,ve=r!=null&&r.isRunning()?r.getEndValues().pos:C,Me=1;g||(ve<=z&&ke*le<0?(Me=Math.max(.01,1-(Math.abs(1/$e()*Math.abs(ve-z))||0)),Me*=.2):ve>=M&&ke*le>0&&(Me=Math.max(.01,1-(Math.abs(1/$e()*Math.abs(ve-M))||0)),Me*=.2)),ve+=ke*Me*le,r.spring({clamp:!0,mass:1,tension:700,friction:25,velocity:((F=r.getCurrentVelocities())===null||F===void 0?void 0:F.pos)||0,restDelta:1,restSpeed:1}).from({pos:C}).to({pos:ve}).start()}).on("panstart",H=>{(H==null?void 0:H.axis)===(k?"y":"x")&&Ee(p,"is-dragging")}).on("panend",()=>{Qe(p,"is-dragging")}).on("end",H=>{var j,F;const{srcEvent:G,axis:W,velocityX:ee,velocityY:ie,currentTouch:ue}=H;if(ue.length>0||!r)return;const le=G.target,ke=le&&Ot(le)&&!(W==="x"&&!k);k&&pn(G)&&!H.axis&&w(G);const ve=v.length,Me=J("dragFree");if(!ve)return;const Ne=J("vertical")?ie:ee;let je=r!=null&&r.isRunning()?r.getEndValues().pos:C;const it=y&&!k?1:-1;if(ke||(je+=Ne*(Me?5:1)*it),!g&&(Ne*it<=0&&je<z||Ne*it>=0&&je>M)){let lt=0;return Math.abs(Ne)>0&&(lt=2*Math.abs(Ne),lt=Math.min(.3*$e(),lt)),je=Be(z+-1*lt,je,M+lt),void r.spring({clamp:!0,mass:1,tension:380,friction:25,velocity:-1*Ne,restDelta:1,restSpeed:1}).from({pos:C}).to({pos:je}).start()}if(Me||!((j=h.Autoscroll)===null||j===void 0)&&j.isEnabled())return void(Math.abs(Ne)>10?r.spring({clamp:!0,mass:1,tension:150,friction:25,velocity:-1*Ne,restDelta:1,restSpeed:1}).from({pos:C}).to({pos:je}).start():r.isRunning()||b||(b=!0,O("settle")));if(!Me&&!(!((F=h.Autoscroll)===null||F===void 0)&&F.isEnabled())&&(!H.offsetX&&!H.offsetY||W==="y"&&!k||W==="x"&&k))return void se(N,{transition:"tween"});let st=qe(je);Math.abs(Ne)>10&&st===N&&(st+=Ne>0?y&&!k?1:-1:y&&!k?-1:1),se(st,{transition:"tween",tween:{velocity:-1*Ne}})}).init())}(),Ye(p,"is-draggable",!!o&&v.length>0)}function ye(A="*"){var H;const j=[];for(const F of T)(A==="*"||F.class&&F.class.includes(A)||F.el&&(!((H=F.el)===null||H===void 0)&&H.classList.contains(A)))&&j.push(F);s=void 0,x=A,B=[...j]}function Ve(){if(!r)return;const A=qe(r!=null&&r.isRunning()?r.getEndValues().pos:C);A!==N&&(s=N,N=A,ne(),Fe(),Ae(),O("change",N,s))}function Fe(){var A,H;if(!m)return;for(const G of m.querySelectorAll("[data-carousel-index]"))G.innerHTML=N+"";for(const G of m.querySelectorAll("[data-carousel-page]"))G.innerHTML=N+1+"";for(const G of m.querySelectorAll("[data-carousel-pages]"))G.innerHTML=v.length+"";for(const G of m.querySelectorAll("[data-carousel-go-to]"))parseInt(((A=G.dataset)===null||A===void 0?void 0:A.carouselGoTo)||"-1",10)===N?G.setAttribute("aria-current","true"):G.removeAttribute("aria-current");for(const G of m.querySelectorAll("[data-carousel-go-prev]"))G.toggleAttribute("aria-disabled",!Ce()),Ce()?G.removeAttribute("tabindex"):G.setAttribute("tabindex","-1");for(const G of m.querySelectorAll("[data-carousel-go-next]"))G.toggleAttribute("aria-disabled",!Le()),Le()?G.removeAttribute("tabindex"):G.setAttribute("tabindex","-1");let j=!1;const F=(H=v[N])===null||H===void 0?void 0:H.slides[0];F&&(F.downloadSrc||F.type==="image"&&F.src)&&(j=!0);for(const G of m.querySelectorAll("[data-carousel-download]"))G.toggleAttribute("aria-disabled",!j)}function Ae(A){var H;A||(A=(H=v[N])===null||H===void 0?void 0:H.slides[0]);const j=A==null?void 0:A.el;if(j)for(const F of j.querySelectorAll("[data-slide-index]"))F.innerHTML=A.index+1+""}function qe(A){var H,j,F;if(!v.length)return 0;const G=_e();let W=A;g?W-=Math.floor((A-((H=v[0])===null||H===void 0?void 0:H.pos))/G)*G||0:W=Be((j=v[0])===null||j===void 0?void 0:j.pos,A,(F=v[v.length-1])===null||F===void 0?void 0:F.pos);const ee=new Map;let ie=0;for(const le of v){const ke=Math.abs(le.pos-W),ve=Math.abs(le.pos-W-G),Me=Math.abs(le.pos-W+G),Ne=Math.min(ke,ve,Me);ee.set(ie,Ne),ie++}const ue=ee.size>0?[...ee.entries()].reduce((le,ke)=>ke[1]<le[1]?ke:le):[N,0];return parseInt(ue[0])}function Oe(){return Q}function $e(){let A=0;return p&&(p.childElementCount||(p.style.display="grid"),A=p.getBoundingClientRect()[E]||0,p.style.display=""),A}function _e(A=!0){return B.length?B.reduce((H,j)=>H+j.dim,0)+(B.length-(g&&A?0:1))*Q:0}function ze(A){const H=_e(),j=$e();if(!H||!p||!j)return[];const F=[];A=A===void 0?C:A,g&&(A-=Math.floor(A/H)*H||0);let G=0,W=0;if(f){const ie=p.getBoundingClientRect();G=Math.abs(ie[k?"top":"left"]),W=Math.abs(window[k?"innerHeight":"innerWidth"]-ie[k?"bottom":"right"])}let ee=0;for(let ie of B){const ue=(le=0)=>{F.indexOf(ie)>-1||(ie.pos=ee-A+le||0,ie.offset+le>A-ie.dim-G+.51&&ie.offset+le<A+j+W-.51&&F.push(ie))};ie.offset=ee,g&&(ue(H),ue(-1*H)),ue(),ee+=ie.dim+Q}return F}function q(A,H){const j=[];for(const F of Array.isArray(A)?A:[A]){const G=re(Object.assign(Object.assign({},F),{isVirtual:!0}));G.el||(G.el=document.createElement("div")),O("createSlide",G),j.push(G)}T.splice(H===void 0?T.length:H,0,...j),ce();for(const F of j)O("addSlide",F),he(F);return ye(x),j}function re(A){return(Te(A)||A instanceof HTMLElement)&&(A={html:A}),Object.assign({index:-1,el:void 0,class:"",isVirtual:!0,dim:0,pos:0,offset:0,html:"",src:""},A)}function he(A){let H=A.el;if(!A||!H)return;const j=A.html?A.html instanceof HTMLElement?A.html:wt(A.html):void 0;j&&(Ee(j,"f-html"),A.htmlEl=j,Ee(H,"has-html"),H.append(j),O("contentReady",A))}function ae(A){if(!p||!A)return;let H=A.el;if(H){if(H.setAttribute("index",A.index+""),H.parentElement!==p){let j;Ee(H,c.classes.slide),Ee(H,A.class),ne(A);for(const F of T)if(F.index>A.index){j=F.el;break}p.insertBefore(H,j&&p.contains(j)?j:null),O("attachSlideEl",A)}return Ae(A),H}}function K(A){const H=A==null?void 0:A.el;H&&(H.remove(),I(H),O("detachSlideEl",A))}function ce(){for(let A=0;A<T.length;A++){const H=T[A],j=H.el;j&&(H.index!==A&&I(j),j.setAttribute("index",`${A}`)),H.index=A}}function $(){var A,H,j,F,G;if(!m||!p)return;y=J("rtl"),k=J("vertical"),E=k?"height":"width";const W=J("classes");if(Ye(m,W.isLTR,!y),Ye(m,W.isRTL,y),Ye(m,W.isHorizontal,!k),Ye(m,W.isVertical,k),Ye(m,W.hasAdaptiveHeight,J("adaptiveHeight")),!$e())return;const ee=window.getComputedStyle(p);f=ee.getPropertyValue("overflow-"+(k?"y":"x"))==="visible",Q=p&&parseFloat(ee.getPropertyValue("--f-carousel-gap"))||0;const ie=function(){let ue=0;if(p){let le=document.createElement("div");le.style.display="block",Ee(le,c.classes.slide),p.appendChild(le),ue=le.getBoundingClientRect()[E],le.remove(),le=void 0}return ue}();for(const ue of B){const le=ue.el;let ke=0;if(!ue.isVirtual&&le&&Qt(le)){let ve=!1;le.parentElement&&le.parentElement===p||(p.appendChild(le),ve=!0),ke=le.getBoundingClientRect()[E],ve&&((A=le.parentElement)===null||A===void 0||A.removeChild(le))}else ke=ie;ue.dim=ke}if(g=!1,J("infinite")){g=!0;const ue=_e();let le=$e();if(f){const ke=p.getBoundingClientRect();le+=ke.left,le+=ke.right-ke.width}for(let ke=0;ke<B.length;ke++){const ve=((H=B[ke])===null||H===void 0?void 0:H.dim)+Q;if(ue-ve<le&&ue-ve-le<ve){g=!1;break}}}(function(){var ue;if(!m)return;const le=$e(),ke=_e(!1);let ve=J("slidesPerPage");ve=ve==="auto"?1/0:parseFloat(ve+""),v=[];let Me=0,Ne=0;for(const Re of B)(!v.length||Me+Re.dim-le>.05||Ne>=ve)&&(v.push({index:v.length,slides:[],dim:0,offset:0,pos:0}),Me=0,Ne=0),(ue=v[v.length-1])===null||ue===void 0||ue.slides.push(Re),Me+=Re.dim+Q,Ne++;const je=J("center"),it=J("fill");let st=0;for(const Re of v){Re.dim=(Re.slides.length-1)*Q;for(const dt of Re.slides)Re.dim+=dt.dim;Re.offset=st,Re.pos=st,je!==!1&&(Re.pos-=.5*(le-Re.dim)),it&&!g&&ke>le&&(Re.pos=Be(0,Re.pos,ke-le)),st+=Re.dim+Q}const lt=[];let bt;for(const Re of v){const dt=Object.assign({},Re);bt&&Math.abs(dt.pos-bt.pos)<.1?(bt.dim+=dt.dim,bt.slides=[...bt.slides,...dt.slides]):(bt=dt,dt.index=lt.length,lt.push(dt))}v=lt,N=Be(0,N,v.length-1)})(),z=((j=v[0])===null||j===void 0?void 0:j.pos)||0,M=((F=v[v.length-1])===null||F===void 0?void 0:F.pos)||0,d===0?function(){var ue;s=void 0,N=J("initialPage");const le=J("initialSlide")||void 0;le!==void 0&&(N=xe.getPageIndex(le)||0),N=Be(0,N,v.length-1),C=((ue=v[N])===null||ue===void 0?void 0:ue.pos)||0,D=C}():D=((G=v[N||0])===null||G===void 0?void 0:G.pos)||0,O("refresh"),Fe()}function I(A){if(!A||!Qt(A))return;const H=parseInt(A.getAttribute("index")||"-1");let j="";for(const G of Array.from(A.classList)){const W=G.match(/^f-(\w+)(Out|In)$/);W&&W[1]&&(j=W[1]+"")}if(!A||!j)return;const F=[`f-${j}Out`,`f-${j}In`,"to-prev","to-next","from-prev","from-next"];A.removeEventListener("animationend",Y),Qe(A,F.join(" ")),V.delete(H)}function te(){if(!p)return;const A=V.size>0;for(const H of B)I(H.el);V.clear(),A&&me()}function Y(A){var H;((H=A.animationName)===null||H===void 0?void 0:H.substring(0,2))==="f-"&&(I(A.target),V.size||(Qe(m,"in-transition"),!b&&Math.abs(xe.getPosition(!0)-D)<.5&&(b=!0,O("settle"))),me())}function w(A){var H;if(A.defaultPrevented)return;const j=A.composedPath()[0];if(j.closest("[data-carousel-go-prev]"))return Ht(A),void xe.prev();if(j.closest("[data-carousel-go-next]"))return Ht(A),void xe.next();const F=j.closest("[data-carousel-go-to]");if(F)return Ht(A),void xe.goTo(parseFloat(F.dataset.carouselGoTo||"")||0);if(j.closest("[data-carousel-download]")){Ht(A);const G=(H=v[N])===null||H===void 0?void 0:H.slides[0];if(G&&(G.downloadSrc||G.type==="image"&&G.src)){const W=G.downloadFilename,ee=document.createElement("a"),ie=G.downloadSrc||G.src||"";ee.href=ie,ee.target="_blank",ee.download=W||ie,ee.click()}}else O("click",A)}function L(A){var H;const j=A.el;j&&((H=j.querySelector(".f-spinner"))===null||H===void 0||H.remove())}function X(A){var H;const j=A.el;j&&((H=j.querySelector(".f-html.is-error"))===null||H===void 0||H.remove(),Qe(j,"has-error"))}function ne(A){var H;A||(A=(H=v[N])===null||H===void 0?void 0:H.slides[0]);const j=A==null?void 0:A.el;if(!j)return;let F=J("formatCaption",A);F===void 0&&(F=A.caption),F=F||"";const G=J("captionEl");if(G&&G instanceof HTMLElement){if(A.index!==N)return;if(Te(F)&&(G.innerHTML=_(F+"")),F instanceof HTMLElement){if(F.parentElement===G)return;G.innerHTML="",F.parentElement&&(F=F.cloneNode(!0)),G.append(F)}return}if(!F)return;let W=A.captionEl||j.querySelector(".f-caption");!W&&F instanceof HTMLElement&&F.classList.contains("f-caption")&&(W=F),W||(W=document.createElement("div"),Ee(W,"f-caption"),Te(F)?W.innerHTML=_(F+""):F instanceof HTMLElement&&(F.parentElement&&(F=F.cloneNode(!0)),W.append(F)));const ee=`f-caption-${Wr}_${A.index}`;W.setAttribute("id",ee),W.dataset.selectable="true",Ee(j,"has-caption"),j.setAttribute("aria-labelledby",ee),A.captionEl=W,j.insertAdjacentElement("beforeend",W)}function se(A,H={}){var j,F;let{transition:G,tween:W}=Object.assign({transition:c.transition,tween:c.tween},H||{});if(!m||!r)return;const ee=v.length;if(!ee||function(le,ke){var ve,Me,Ne,je;if(!(m&&r&&ke&&Te(ke)&&ke!=="tween")||((ve=v[N])===null||ve===void 0?void 0:ve.slides.length)>1)return!1;const it=v.length;let st=le>N?1:-1;le=g?(le%it+it)%it:Be(0,le,it-1),y&&(st*=-1);const lt=(Me=v[N])===null||Me===void 0?void 0:Me.slides[0],bt=lt==null?void 0:lt.index,Re=(Ne=v[le])===null||Ne===void 0?void 0:Ne.slides[0],dt=Re==null?void 0:Re.index,Pi=(je=v[le])===null||je===void 0?void 0:je.pos;if(dt===void 0||bt===void 0||bt===dt||C===Pi||Math.abs($e()-((Re==null?void 0:Re.dim)||0))>1)return!1;b=!1,r.pause(),te(),Ee(m,"in-transition"),C=D=Pi;const on=ae(lt),rn=ae(Re);return Ve(),on&&(V.add(bt),on.style.transform="",on.addEventListener("animationend",Y),Qe(on,c.classes.isSelected),on.inert=!1,Ee(on,`f-${ke}Out to-${st>0?"next":"prev"}`)),rn&&(V.add(dt),rn.style.transform="",rn.addEventListener("animationend",Y),Ee(rn,c.classes.isSelected),rn.inert=!1,Ee(rn,`f-${ke}In from-${st>0?"prev":"next"}`)),me(),!0}(A,G))return;A=g?(A%ee+ee)%ee:Be(0,A,ee-1),D=((j=v[A||0])===null||j===void 0?void 0:j.pos)||0;const ue=r.isRunning()?r.getEndValues().pos:C;if(Math.abs(D-ue)<1)return C=D,N!==A&&(ne(),s=N,N=A,Fe(),Ae(),O("change",N,s)),me(),void(b||(b=!0,O("settle")));if(r.pause(),te(),g){const le=_e(),ke=Math.floor((ue-((F=v[0])===null||F===void 0?void 0:F.pos))/le)||0,ve=D+ke*le;D=[ve+le,ve,ve-le].reduce(function(Me,Ne){return Math.abs(Ne-ue)<Math.abs(Me-ue)?Ne:Me})}G!==!1&&Ze(W)?r.spring(ot({},c.tween,W)).from({pos:C}).to({pos:D}).start():(C=D,Ve(),me(),b||(b=!0,O("settle")))}function fe(A){var H;let j=C;if(g&&A!==!0){const F=_e();j-=(Math.floor((C-((H=v[0])===null||H===void 0?void 0:H.pos)||0)/F)||0)*F}return j}function me(){var A;if(!m||!p)return;S=ze();const H=new Set,j=[],F=v[N],G=c.setTransform;let W;for(const ee of B){const ie=V.has(ee.index),ue=S.indexOf(ee)>-1,le=((A=F==null?void 0:F.slides)===null||A===void 0?void 0:A.indexOf(ee))>-1;if(ee.isVirtual&&!ie&&!ue)continue;let ke=ae(ee);if(ke&&(j.push(ee),le&&H.add(ke),J("adaptiveHeight")&&le)){const ve=(ke.firstElementChild||ke).getBoundingClientRect().height;W=W==null?ve:Math.max(W,ve)}}p&&W&&(p.style.height=`${W}px`),[...Pa(p,`.${c.classes.slide}`)].forEach(ee=>{Ye(ee,c.classes.isSelected,H.has(ee));const ie=T[parseInt(ee.getAttribute("index")||"-1")];if(!ie)return ee.remove(),void I(ee);const ue=V.has(ie.index),le=S.indexOf(ie)>-1;if(ie.isVirtual&&!ue&&!le)return void K(ie);if(ee.inert=!le,G===!1)return;let ke=ie.pos?Math.round(1e4*ie.pos)/1e4:0,ve=0,Me=0,Ne=0,je=0;ue||(ve=k?0:y?-1*ke:ke,Me=k?ke:0,Ne=Zn(ve,0,ie.dim,0,100),je=Zn(Me,0,ie.dim,0,100)),G instanceof Function&&!ue?G(xe,ie,{x:ve,y:Me,xPercent:Ne,yPercent:je}):ee.style.transform=ve||Me?`translate3d(${Ne}%, ${je}%,0)`:""}),O("render",j)}function be(){m==null||m.removeEventListener("click",w),document.removeEventListener("mousemove",de),V.clear(),i==null||i.disconnect(),i=void 0;for(const A of T){let H=A.el;H&&Qt(H)&&(A.state=void 0,L(A),X(A),A.isVirtual?(K(A),A.el=void 0):(I(H),H.style.transform="",p&&!p.contains(H)&&p.appendChild(H)))}for(const A of Object.values(h))A==null||A.destroy();h={},o==null||o.destroy(),o=void 0,r==null||r.destroy(),r=void 0;for(const[A,H]of Object.entries(c.classes||{}))A!=="container"&&Qe(m,H);Qe(p,"is-draggable")}function Ce(){return g||N>0}function Le(){return g||N<v.length-1}const xe={add:function(A,H){var j;let F=C;const G=N,W=_e(),ee=r!=null&&r.isRunning()?r.getEndValues().pos:C,ie=W&&Math.floor((ee-(((j=v[0])===null||j===void 0?void 0:j.pos)||0))/W)||0;return q(A,H),ye(x),$(),r&&W&&(G===N&&(F-=ie*W),F===D?C=D:r.spring({clamp:!0,mass:1,tension:300,friction:25,restDelta:1,restSpeed:1}).from({pos:F}).to({pos:D}).start()),me(),xe},canGoPrev:Ce,canGoNext:Le,destroy:function(){return O("destroy"),window.removeEventListener("resize",oe),be(),R.clear(),m=null,v=[],T=[],c=Object.assign({},nn),h={},B=[],l=void 0,x="*",d=2,xe},emit:O,filter:function(A="*"){return ye(A),$(),C=Be(z,C,M),me(),O("filter",A),xe},getContainer:function(){return m},getGapDim:Oe,getGestures:function(){return o},getLastMouseMove:function(){return qr},getOption:function(A){return J(A)},getOptions:function(){return c},getPage:function(){return v[N]},getPageIndex:function(A){if(A!==void 0){for(const H of v||[])for(const j of H.slides)if(j.index===A)return H.index;return-1}return N},getPageIndexFromPosition:qe,getPageProgress:function(A,H){var j;A===void 0&&(A=N);const F=v[A];if(!F)return A>N?-1:1;const G=_e(),W=Oe();let ee=F.pos,ie=fe();if(g&&H!==!0){const ue=Math.floor((ie-((j=v[0])===null||j===void 0?void 0:j.pos))/G)||0;ie-=ue*G,ee=[ee+G,ee,ee-G].reduce(function(le,ke){return Math.abs(ke-ie)<Math.abs(le-ie)?ke:le})}return(ie-ee)/(F.dim+W)||0},getPageVisibility:function(A){var H;A===void 0&&(A=N);const j=v[A];if(!j)return A>N?-1:1;const F=fe(),G=$e();let W=j.pos;if(g){const ee=_e(),ie=W+(Math.floor((F-((H=v[0])===null||H===void 0?void 0:H.pos))/ee)||0)*ee;W=[ie+ee,ie,ie-ee].reduce(function(ue,le){return Math.abs(le-F)<Math.abs(ue-F)?le:ue})}return W>F&&W+j.dim<F+G?1:W<F?(W+j.dim-F)/j.dim||0:W+j.dim>F+G&&(F+G-W)/j.dim||0},getPages:function(){return v},getPlugins:function(){return h},getPosition:fe,getSlides:function(){return T},getState:function(){return d},getTotalSlideDim:_e,getTween:function(){return r},getViewport:function(){return p},getViewportDim:$e,getVisibleSlides:function(A){return A===void 0?S:ze(A)},goTo:se,hasNavigated:function(){return s!==void 0},hideError:X,hideLoading:L,init:function(){if(!t||!Qt(t))throw new Error("No Element found");return d!==0&&(be(),d=0),m=t,u=n,window.removeEventListener("resize",oe),u.breakpoints&&window.addEventListener("resize",oe),oe(),xe},isInfinite:function(){return g},isInTransition:function(){return V.size>0},isRTL:function(){return y},isSettled:function(){return b},isVertical:function(){return k},localize:function(A,H=[]){return _(A,H)},next:function(A={}){return se(N+1,A),xe},off:function(A,H){for(const j of A instanceof Array?A:[A])R.has(j)&&R.set(j,R.get(j).filter(F=>F!==H));return xe},on:function(A,H){for(const j of A instanceof Array?A:[A])R.set(j,[...R.get(j)||[],H]);return xe},prev:function(A={}){return se(N-1,A),xe},reInit:function(A={},H={}){return be(),d=0,l=void 0,x="*",n=A,u=A,a=H,oe(),xe},remove:function(A){A===void 0&&(A=T.length-1);const H=T[A];return H&&(O("removeSlide",H),H.el&&(I(H.el),H.el.remove(),H.el=void 0),T.splice(A,1),ye(x),$(),C=Be(z,C,M),me()),xe},setPosition:function(A){C=A,Ve(),me()},showError:function(A,H){L(A),X(A);const j=A.el;if(j){const F=document.createElement("div");Ee(F,"f-html"),Ee(F,"is-error"),F.innerHTML=_(H||"<p>{{ERROR}}</p>"),A.htmlEl=F,Ee(j,"has-html"),Ee(j,"has-error"),j.insertAdjacentElement("afterbegin",F),O("contentReady",A)}return xe},showLoading:function(A){const H=A.el,j=H==null?void 0:H.querySelector(".f-spinner");if(!H||j)return xe;const F=J("spinnerTpl"),G=wt(F);return G&&(Ee(G,"f-spinner"),H.insertAdjacentElement("beforeend",G)),xe},version:"6.1.3"};return xe};Yn.l10n={en_EN:_a},Yn.getDefaults=()=>nn;/*! License details at fancyapps.com/license */const Ur=(t=!0,n="--f-scrollbar-compensate",a="--f-body-margin",o="hide-scrollbar")=>{const r=document,i=r.body,s=r.documentElement;if(t){if(i.classList.contains(o))return;let l=window.innerWidth-s.getBoundingClientRect().width;l<0&&(l=0),s.style.setProperty(n,`${l}px`);const d=parseFloat(window.getComputedStyle(i).marginRight);d&&i.style.setProperty(a,`${d}px`),i.classList.add(o)}else i.classList.remove(o),i.style.setProperty(a,""),r.documentElement.style.setProperty(n,"")};/*! License details at fancyapps.com/license */function Xn(){return!(typeof window>"u"||!window.document||!window.document.createElement)}/*! License details at fancyapps.com/license */const zt=function(t="",n="",a=""){return t.split(n).join(a)};/*! License details at fancyapps.com/license */const Zr={tpl:t=>`<img class="f-panzoom__content"
|
|
7
7
|
${t.srcset?'data-lazy-srcset="{{srcset}}"':""}
|
|
8
8
|
${t.sizes?'data-lazy-sizes="{{sizes}}"':""}
|
|
9
|
-
data-lazy-src="{{src}}" alt="{{alt}}" />`},g3=()=>{let t;function n(u,h){const m=t==null?void 0:t.getOptions().Zoomable;let p=(Ze(m)?Object.assign(Object.assign({},Fr),m):Fr)[u];return p&&typeof p=="function"&&h?p(h):p}function a(){t&&(t.on("addSlide",i),t.on("removeSlide",s),t.on("attachSlideEl",l),t.on("click",r),t.on("change",o))}function o(){d()}function r(u,h){const m=h.target;m&&!h.defaultPrevented&&m.dataset.panzoomAction&&f(m.dataset.panzoomAction)}function i(u,h){if(!t)return;const m=h.el;if(!m)return;const p=h.src||h.lazySrc||"",c=h.alt||h.caption||`Image #${h.index}`,g=h.srcset||h.lazySrcset||"",y=h.sizes||h.lazySizes||"";if(p&&je(p)&&!h.html&&(!h.type||h.type==="image")){h.type="image";let x=n("tpl",h);x=Ct(x,"{{src}}",p+""),x=Ct(x,"{{alt}}",c+""),x=Ct(x,"{{srcset}}",g+""),x=Ct(x,"{{sizes}}",y+""),m.insertAdjacentHTML("afterbegin",x)}if(!m.querySelector(".f-panzoom__content"))return;const b=h.width&&h.width!=="auto"?parseFloat(h.width+""):"auto",w=h.height&&h.height!=="auto"?parseFloat(h.height+""):"auto",E=Sa(m,Object.assign({width:b,height:w,event:()=>t==null?void 0:t.getLastMouseMove(),classes:{container:"f-zoomable"}},n("Panzoom")));E.on("*",(x,v,...D)=>{t&&(v==="loading"&&(h.state=0),v==="loaded"&&(h.state=1),v==="error"&&(h.state=2,t==null||t.showError(h,"{{IMAGE_ERROR}}")),t.emit(`panzoom:${v}`,h,...D),v==="ready"&&t.emit("contentReady",h),h.index===t.getPageIndex()&&d())}),h.panzoomRef=E}function s(u,h){h.panzoomRef&&(h.panzoomRef.destroy(),h.panzoomRef=void 0)}function l(u,h){const m=h.panzoomRef;if(m)switch(m.getState()){case 0:m.init();break;case 3:m.execute(me.Reset,{velocity:0})}}function d(){var u;const h=t==null?void 0:t.getContainer();if(!h)return;const m=(u=t==null?void 0:t.getPage())===null||u===void 0?void 0:u.slides[0].panzoomRef,p=(m==null?void 0:m.canZoomIn())||!1,c=(m==null?void 0:m.canZoomOut())||!1,g=(m==null?void 0:m.isFullsize())||!1,y=!m||(m==null?void 0:m.getState())!==3;for(const b of(h==null?void 0:h.querySelectorAll("[data-panzoom-action]"))||[]){const w=b.dataset.panzoomAction;let E=!1;if(y)E=!0;else switch(w){case me.ZoomIn:p||(E=!0);break;case me.ZoomOut:c||(E=!0);break;case me.ToggleFull:p||c||(E=!0);const x=b.querySelector("g");x&&(x.style.display=g?"none":"");break;case me.ToggleCover:case me.ToggleMax:p||c||(E=!0)}E?(b.setAttribute("aria-disabled",""),b.setAttribute("tabindex","-1")):(b.removeAttribute("aria-disabled"),b.removeAttribute("tabindex"))}}function f(u,...h){var m;(m=t==null?void 0:t.getPage().slides[0].panzoomRef)===null||m===void 0||m.execute(u,...h)}return{init:function(u){t=u,t.getOptions().Zoomable!==!1&&t.on("initPlugins",a)},destroy:function(){if(t){t.off("addSlide",i),t.off("removeSlide",s),t.off("attachSlideEl",l),t.off("change",o);for(const u of t.getSlides())s(0,u)}t=void 0},execute:f}};/*! License details at fancyapps.com/license */const $r={syncOnChange:!1,syncOnClick:!0,syncOnHover:!1},_r=()=>{let t,n;function a(){const p=t==null?void 0:t.getOptions().Sync;return Ze(p)?Object.assign(Object.assign({},$r),p):$r}function o(p){var c,g,y;t&&p&&(n=p,t.getOptions().classes=Object.assign(Object.assign({},t.getOptions().classes),{isSelected:""}),t.getOptions().initialSlide=((g=(c=n.getPage())===null||c===void 0?void 0:c.slides[0])===null||g===void 0?void 0:g.index)||0,a().syncOnChange&&t.on("change",s),a().syncOnClick&&t.on("click",d),a().syncOnHover&&((y=t.getViewport())===null||y===void 0||y.addEventListener("mouseover",f)),function(){!t||!n||(t.on("ready",i),t.on("refresh",u),n.on("change",l),n.on("filter",h))}())}function r(){const p=a().target;t&&p&&o(p)}function i(){m()}function s(){var p;if(t&&n){const c=((p=t.getPage())===null||p===void 0?void 0:p.slides)||[],g=n.getPageIndex(c[0].index||0);g>-1&&n.goTo(g,t.hasNavigated()?void 0:{tween:!1,transition:!1}),m()}}function l(){var p;if(t&&n){const c=t.getPageIndex(((p=n.getPage())===null||p===void 0?void 0:p.slides[0].index)||0);c>-1&&t.goTo(c,n.hasNavigated()?void 0:{tween:!1,transition:!1}),m()}}function d(p,c){var g;if(!t||!n||!((g=t.getTween())===null||g===void 0)&&g.isRunning())return;const y=t==null?void 0:t.getOptions().classes.slide;if(!y)return;const b=y?c.target.closest(`.${y}`):null;if(b){const w=parseInt(b.getAttribute("index")||"")||0,E=n.getPageIndex(w);n.goTo(E)}}function f(p){t&&d(0,p)}function u(){var p;if(t&&n){const c=t.getPageIndex(((p=n.getPage())===null||p===void 0?void 0:p.slides[0].index)||0);c>-1&&t.goTo(c,{tween:!1,transition:!1}),m()}}function h(p,c){t&&n&&(t.filter(c),l())}function m(){var p,c,g;if(!n)return;const y=((c=(p=n.getPage())===null||p===void 0?void 0:p.slides[0])===null||c===void 0?void 0:c.index)||0;for(const b of(t==null?void 0:t.getSlides())||[])(g=b.el)===null||g===void 0||g.classList.toggle("is-selected",b.index===y)}return{init:function(p){t=p,t.on("initSlides",r)},destroy:function(){var p;t==null||t.off("ready",i),t==null||t.off("refresh",u),t==null||t.off("change",s),t==null||t.off("click",d),(p=t==null?void 0:t.getViewport())===null||p===void 0||p.removeEventListener("mouseover",f),n==null||n.off("change",l),n==null||n.off("filter",h),n=void 0,t==null||t.off("initSlides",r),t=void 0},getTarget:function(){return n}}};/*! License details at fancyapps.com/license */const Pr={showLoading:!0,preload:1},Pn="is-lazyloading",Or="is-lazyloaded",Rr=()=>{let t;function n(){const r=t==null?void 0:t.getOptions().Lazyload;return Ze(r)?Object.assign(Object.assign({},Pr),r):Pr}function a(r){const i=r.el;if(!i)return;const s="[data-lazy-src],[data-lazy-srcset],[data-lazy-bg]",l=Array.from(i.querySelectorAll(s));i.matches(s)&&l.push(i);for(const d of l){const f=d.dataset.lazySrc,u=d.dataset.lazySrcset,h=d.dataset.lazySizes,m=d.dataset.lazyBg,p=(d instanceof HTMLImageElement||d instanceof HTMLSourceElement)&&(f||u),c=d instanceof HTMLElement&&m;if(!p&&!c)continue;const g=f||u||m;g&&(p&&g?(n().showLoading&&(t==null||t.showLoading(r)),d.addEventListener("load",()=>{t==null||t.hideLoading(r),d instanceof HTMLImageElement?d.decode().then(()=>{d.classList.remove(Pn),d.classList.add(Or)}):(d.classList.remove(Pn),d.classList.add(Or)),t==null||t.emit("lazyLoad:loaded",r,d,g)}),d.addEventListener("error",()=>{t==null||t.hideLoading(r),d.classList.remove(Pn),d.classList.add("has-lazyerror"),t==null||t.emit("lazyLoad:error",r,d,g)}),d.classList.add("f-lazyload"),d.classList.add(Pn),t==null||t.emit("lazyLoad:load",r,d,g),f&&(d.src=f),u&&(d.srcset=u),h&&(d.sizes=h)):c&&(document.body.contains(d)||(document.createElement("img").src=m),d.style.backgroundImage=`url('${m}')`),delete d.dataset.lazySrc,delete d.dataset.lazySrcset,delete d.dataset.lazySizes)}}function o(){if(!t)return;const r=n().preload,i=[...t.getVisibleSlides()],s=t.getPosition(),l=t.getViewportDim();i.push(...t.getVisibleSlides(s+l*r),...t.getVisibleSlides(s-l*r));for(const d of i||[])a(d)}return{init:function(r){t=r,t.on("render",o)},destroy:function(){t==null||t.off("render",o),t=void 0}}};/*! License details at fancyapps.com/license */const Hr={prevTpl:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" tabindex="-1"><path d="M15 3l-9 9 9 9"></path></svg>',nextTpl:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" tabindex="-1"><path d="M9 3l9 9-9 9"></path></svg>'},y3=()=>{let t,n,a;function o(s){if(!t)return;const l=`<button data-carousel-go-${s} tabindex="0" class="f-button is-arrow is-${s}" title="{{${s.toUpperCase()}}}">`+function(){const d=t==null?void 0:t.getOptions().Arrows;return Ze(d)?Object.assign(Object.assign({},Hr),d):Hr}()[`${s}Tpl`]+"</button";return kt(t.localize(l))||void 0}function r(){var s;n==null||n.remove(),n=void 0,a==null||a.remove(),a=void 0,(s=t==null?void 0:t.getContainer())===null||s===void 0||s.classList.remove("has-arrows")}function i(){t&&t.getOptions().Arrows!==!1&&t.getPages().length>1?(function(){if(!t)return;const s=t.getViewport();s&&(n||(n=o("prev"),n&&s.insertAdjacentElement("beforebegin",n)),a||(a=o("next"),a&&s.insertAdjacentElement("afterend",a)),vt(t.getContainer(),"has-arrows",!(!n&&!a)))}(),t&&(n==null||n.toggleAttribute("aria-disabled",!t.canGoPrev()),a==null||a.toggleAttribute("aria-disabled",!t.canGoNext()))):r()}return{init:function(s){t=s.on(["change","refresh"],i)},destroy:function(){r(),t==null||t.off(["change","refresh"],i),t=void 0}}};/*! License details at fancyapps.com/license */const zr={moveLeft:{tpl:'<button data-panzoom-action="moveLeft" class="f-button" title="{{MOVE_LEFT}}"><svg><path d="M5 12h14M5 12l6 6M5 12l6-6"/></svg></button>'},moveRight:{tpl:'<button data-panzoom-action="moveRight" class="f-button" title="{{MOVE_RIGHT}}"><svg><path d="M5 12h14M13 18l6-6M13 6l6 6"/></svg></button>'},moveUp:{tpl:'<button data-panzoom-action="moveUp" class="f-button" title="{{MOVE_UP}}"><svg><path d="M12 5v14M18 11l-6-6M6 11l6-6"/></svg></button>'},moveDown:{tpl:'<button data-panzoom-action="moveDown" class="f-button" title="{{MOVE_DOWN}}"><svg><path d="M12 5v14M18 13l-6 6M6 13l6 6"/></svg></button>'},zoomIn:{tpl:'<button data-panzoom-action="zoomIn" class="f-button" title="{{ZOOM_IN}}"><svg><circle cx="11" cy="11" r="7.5"/><path d="m21 21-4.35-4.35M11 8v6M8 11h6"/></svg></button>'},zoomOut:{tpl:'<button data-panzoom-action="zoomOut" class="f-button" title="{{ZOOM_OUT}}"><svg><circle cx="11" cy="11" r="7.5"/><path d="m21 21-4.35-4.35M8 11h6"/></svg></button>'},toggle1to1:{tpl:'<button data-panzoom-action="toggleFull" class="f-button" title="{{TOGGLE_FULL}}"><svg><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"/></svg></button>'},toggleFull:{tpl:'<button data-panzoom-action="toggleFull" class="f-button" title="{{TOGGLE_FULL}}"><svg><g><line x1="11" y1="8" x2="11" y2="14"></line></g><circle cx="11" cy="11" r="7.5"/><path d="m21 21-4.35-4.35M8 11h6"/></svg></button>'},rotateCCW:{tpl:'<button data-panzoom-action="rotateCCW" class="f-button" title="{{ROTATE_CCW}}"><svg><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"/></svg></button>'},rotateCW:{tpl:'<button data-panzoom-action="rotateCW" class="f-button" title="{{ROTATE_CW}}"><svg><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"/></svg></button>'},flipX:{tpl:'<button data-panzoom-action="flipX" class="f-button" title="{{FLIP_X}}"><svg><path d="M12 3v18M16 7v10h5L16 7M8 7v10H3L8 7"/></svg></button>'},flipY:{tpl:'<button data-panzoom-action="flipY" class="f-button" title="{{FLIP_Y}}"><svg><path d="M3 12h18M7 16h10L7 21v-5M7 8h10L7 3v5"/></svg></button>'},reset:{tpl:'<button data-panzoom-action="reset" class="f-button" title="{{RESET}}"><svg><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"/></svg></button>'}};/*! License details at fancyapps.com/license */var jr;(function(t){t.Left="left",t.middle="middle",t.right="right"})(jr||(jr={}));const Gr=Object.assign({counter:{tpl:'<div class="f-carousel__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>'}},zr),qr={absolute:!1,display:{left:[],middle:["zoomIn","zoomOut","toggle1to1","rotateCCW","rotateCW","flipX","flipY","reset"],right:[]},enabled:"auto",items:{}},Ir=()=>{let t,n;function a(){const r=t==null?void 0:t.getOptions().Toolbar;return Ze(r)?Object.assign(Object.assign({},qr),r):qr}function o(){var r,i,s;if(!(t!=null&&t.getOptions().Toolbar)||!t||n)return;let l=a().enabled;if(!l)return;let d=a().absolute;const f=t.getSlides().length>1;let u=!1,h=!1;for(const b of t.getSlides())b.panzoomRef&&(u=!0),(b.downloadSrc||b.type==="image"&&b.src)&&(h=!0);let m=((r=t.getPlugins().Thumbs)===null||r===void 0?void 0:r.isEnabled())||!1,p=f&&t.getPlugins().Autoplay||!1,c=t.getPlugins().Fullscreen&&(document.fullscreenEnabled||document.webkitFullscreenEnabled);if(l==="auto"&&(l=u),!l)return;n=document.createElement("div"),n.classList.add("f-carousel__toolbar");const g=a().display,y=ot({},Gr,a().items);for(const b of["left","middle","right"]){const w=g[b]||[],E=document.createElement("div");E.classList.add("f-carousel__toolbar__column"),E.classList.add(`is-${b}`);for(const x of w){let v;if(je(x)){if(x==="counter"&&!f||x==="autoplay"&&!p||zr[x]&&!u||x==="fullscreen"&&!c||x==="thumbs"&&!m||x==="download"&&!h)continue;v=y[x]}if(typeof x=="object"&&(v=x),v&&v.tpl){let D=t.localize(v.tpl);D=D.split("<svg>").join('<svg tabindex="-1" width="24" height="24" viewBox="0 0 24 24">');const _=kt(D);_&&(typeof v.click=="function"&&t&&_.addEventListener("click",C=>{C.preventDefault(),C.stopPropagation(),typeof v.click=="function"&&t&&v.click(t,C)}),E.append(_))}}n.append(E)}n.childElementCount&&(d===!0&&n.classList.add("is-absolute"),(i=t.getContainer())===null||i===void 0||i.classList.add("has-toolbar"),(s=t.getViewport())===null||s===void 0||s.insertAdjacentElement("beforebegin",n))}return{init:function(r){t=r,t.on("initSlides",o)},destroy:function(){var r;t==null||t.off("initSlides",o),(r=t==null?void 0:t.getContainer())===null||r===void 0||r.classList.remove("has-toolbar"),n==null||n.remove(),n=void 0},add:function(r,i){Gr[r]=i},isEnabled:function(){return!!n}}};/*! License details at fancyapps.com/license */const Wr={autoStart:!0,pauseOnHover:!0,showProgressbar:!0,timeout:2e3},k3=()=>{let t,n,a=!1,o=!1,r=!1,i=null;function s(D){const _=t==null?void 0:t.getOptions().Autoplay;let C=(Ze(_)?Object.assign(Object.assign({},Wr),_):Wr)[D];return C&&typeof C=="function"&&t?C(t):C}function l(){var D;const _=((D=t==null?void 0:t.getPage())===null||D===void 0?void 0:D.slides)||[];for(const C of _)if(C.state===0)return!0;return!1}function d(){clearTimeout(n),n=void 0}function f(){if(n||r||l()||!(t!=null&&t.isSettled()))return;(function(){var _,C,k,N;if(!t||(m(),!s("showProgressbar")))return;let S=s("progressbarParentEl");if(!S&&(!((_=t.getPlugins().Toolbar)===null||_===void 0)&&_.isEnabled())&&(S=t.getContainer()),!S&&((C=t.getPlugins().Toolbar)===null||C===void 0?void 0:C.isEnabled())!==!0){const A=((k=t.getPages()[0])===null||k===void 0?void 0:k.slides)||[],M=((N=t.getPage())===null||N===void 0?void 0:N.slides)||[];A.length===1&&M.length===1&&(S=M[0].el)}if(S||(S=t.getViewport()),!S)return;i=document.createElement("div"),i.classList.add("f-progressbar"),S.prepend(i);const B=s("timeout")||1e3;i.style.animationDuration=`${B}ms`})();const D=s("timeout");n=setTimeout(()=>{t&&a&&!o&&(t.isInfinite()||t.getPageIndex()!==t.getPages().length-1?t.next():t.goTo(0))},D)}function u(){var D,_;if(!t||t.getPages().length<2||t.getOptions().Autoplay===!1||a)return;a=!0,t.emit("autoplay:start",s("timeout")),(D=t.getContainer())===null||D===void 0||D.classList.add("has-autoplay"),(_=t.getTween())===null||_===void 0||_.on("start",w);const C=t==null?void 0:t.getContainer();C&&s("pauseOnHover")&&matchMedia("(hover: hover)").matches&&(C.addEventListener("mouseenter",E,!1),C.addEventListener("mouseleave",x,!1)),t.on("change",y),t.on("settle",b),t.on("contentReady",c),t.on("panzoom:animationStart",h),t.isSettled()&&f()}function h(){var D,_;if(d(),m(),a&&t){t.emit("autoplay:end"),(D=t.getContainer())===null||D===void 0||D.classList.remove("has-autoplay"),(_=t.getTween())===null||_===void 0||_.off("start",w);const C=t==null?void 0:t.getContainer();C&&(C.removeEventListener("mouseenter",E,!1),C.removeEventListener("mouseleave",x,!1))}t&&(t.off("change",y),t.off("settle",b),t.off("contentReady",c),t.off("panzoom:animationStart",h)),a=!1,o=!1}function m(){i&&(i.remove(),i=null)}function p(){t&&t.getPages().length>1&&s("autoStart")&&u()}function c(D){t&&t.getPageIndex(D.index)===t.getPageIndex()&&(!a||r||l()||f())}function g(D,_){const C=_.target;C&&!_.defaultPrevented&&C.dataset.autoplayAction==="toggle"&&v.toggle()}function y(){!t||!(t!=null&&t.isInfinite())&&t.getPageIndex()===t.getPages().length-1?h():(m(),d())}function b(){!a||r||o||f()}function w(){d(),m()}function E(){r=!0,a&&(m(),d())}function x(){r=!1,a&&!o&&(t!=null&&t.isSettled())&&f()}const v={init:function(D){t=D,t.on("ready",p),t.on("click",g)},destroy:function(){h(),t==null||t.off("ready",p),t==null||t.off("click",g),t=void 0},isEnabled:()=>a,pause:function(){o=!0,d()},resume:function(){o=!1,a&&!r&&f()},start(){u()},stop(){h()},toggle(){a?h():u()}};return v};/*! License details at fancyapps.com/license */const Na={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 Aa;const x3=()=>{let t,n,a,o=0,r=0,i=!0;function s(E){const x=t==null?void 0:t.getOptions().Thumbs;let v=(Ze(x)?Object.assign(Object.assign({},Na),x):Na)[E];return v&&typeof v=="function"?v():v}function l(){if(!t||(t==null?void 0:t.getOptions().Thumbs)===!1)return!1;let E=0;for(const x of t.getSlides())x.thumbSrc&&E++;return E>=s("minCount")}function d(){return s("type")==="modern"}function f(E=!1){const x=t==null?void 0:t.getContainer();if(t&&x&&!a&&l()){if(!a){const v=x.nextElementSibling;v!=null&&v.classList.contains("f-thumbs")&&(a=v)}if(!a){a=document.createElement("div"),a.classList.add("f-thumbs");const v=s("parentEl");v?v.insertAdjacentElement("beforeend",a):x.insertAdjacentElement("afterend",a)}a.classList.add(`is-${s("type")}`),a.classList.add("is-syncing"),E&&(a.style.maxHeight="0px")}}function u(E){let x=E.thumb?E.thumb instanceof HTMLImageElement?E.thumb.src:E.thumb:E.thumbSrc||void 0,v=s("thumbTpl");return v=Ct(v,"{{alt}}",`Thumbnail #${E.index}`),v=Ct(v,"{{src}}",x+""),v=Ct(v,"{{index}}",`${E.index}`),v=Ct(v,"{{page}}",`${E.index||1}`),{html:v,class:E.thumbClass}}function h(){var E,x;if(!Aa||!t||!a||n)return;const v=[];for(const D of t.getSlides())v.push(u(D));v.length&&(n=Aa(a,ot({},{Sync:{target:t},Lazyload:{preload:1},slides:v,classes:{container:"f-thumbs",viewport:"f-thumbs__viewport",slide:"f-thumbs__slide"},initialSlide:t.getOptions().initialPage,center:!0,fill:!d(),infinite:!1,dragFree:!0,rtl:t.getOptions().rtl||!1,slidesPerPage:D=>{let _=0;return d()&&(function(){if(!d()||!a)return;const C=k=>a&&parseFloat(getComputedStyle(a).getPropertyValue("--f-thumb-"+k))||0;o=C("width"),r=C("clip-width")}(),_=4*(o-r)),D&&D.getTotalSlideDim()<=D.getViewportDim()-_?1/0:1}},Na.Carousel||{},s("Carousel")||{}),{Sync:_r,Lazyload:Rr}).init(),(E=n.getGestures())===null||E===void 0||E.on("start",()=>{i=!1}),n.on("click",(D,_)=>{const C=_.target;if(C){const k=C.matches("button")?C:C.firstElementChild;k&&k.matches("button")&&k.focus({})}}),(x=t.getContainer())===null||x===void 0||x.classList.add("has-thumbs"),w())}function m(){var E;l()&&(s("showOnStart")&&(f(),h()),(E=t==null?void 0:t.getGestures())===null||E===void 0||E.on("start",p),t==null||t.on("addSlide",y),t==null||t.on("click",b))}function p(){var E,x;i=!0,!((E=document.activeElement)===null||E===void 0)&&E.closest(".f-thumbs")&&((x=document.activeElement)===null||x===void 0||x.blur())}function c(){var E,x;a==null||a.classList.toggle("is-syncing",(t==null?void 0:t.hasNavigated())===!1||((E=t==null?void 0:t.getTween())===null||E===void 0?void 0:E.isRunning())),w(),!((x=t==null?void 0:t.getGestures())===null||x===void 0)&&x.isPointerDown()&&function(){if(!d()||!t||!n||!i)return;const v=n.getTween(),D=n.getPages(),_=t.getPageIndex()||0,C=t.getPageProgress()||0;if(!(t&&D&&D[_]&&v))return;const k=v.isRunning()?v.getCurrentValues().pos:n.getPosition();if(k===void 0)return;let N=D[_].pos+C*(o-r);N=Te(D[0].pos,N,D[D.length-1].pos),v.from({pos:k}).to({pos:N}).start()}()}function g(){i=!0}function y(E,x){n==null||n.add(u(x),x.index)}function b(E,x){const v=x.target;v&&!x.defaultPrevented&&v.dataset.thumbsAction==="toggle"&&function(){if(a||(f(!0),h()),!a)return;const D=a.style.maxHeight;a.style.maxHeight=D?"":"0px"}()}function w(){if(!d()||!t||!n)return;const E=(n==null?void 0:n.getSlides())||[];let x=-.5*o;for(const v of E){const D=v.el;if(!D)continue;let _=t.getPageProgress(v.index)||0;_=Math.max(-1,Math.min(1,_)),_>-1&&_<1&&(x+=.5*o*(1-Math.abs(_))),_=Math.round(1e4*_)/1e4,x=Math.round(1e4*x)/1e4,D.style.setProperty("--progress",`${Math.abs(_)}`),D.style.setProperty("--shift",`${t!=null&&t.isRTL()?-1*x:x}px`),_>-1&&_<1&&(x+=.5*o*(1-Math.abs(_)))}}return{init:function(E,x){Aa=x,t=E,t.on("ready",m),t.on("render",c),t.on("change",g)},destroy:function(){var E,x;t==null||t.off("ready",m),t==null||t.off("render",c),t==null||t.off("change",g),t==null||t.off("addSlide",y),t==null||t.off("click",b),(E=t==null?void 0:t.getGestures())===null||E===void 0||E.off("start",p),(x=t==null?void 0:t.getContainer())===null||x===void 0||x.classList.remove("has-thumbs"),t=void 0,n==null||n.destroy(),n=void 0,a==null||a.remove(),a=void 0},getContainer:function(){return a},isEnabled:function(){return l()}}};/*! License details at fancyapps.com/license */const Ur={iframeAttr:{allow:"autoplay; fullscreen",scrolling:"auto"}},b3=()=>{let t;function n(r,i){let s=i.src;if(!je(s))return;let l=i.type;if(!l){if(l||(s.charAt(0)==="#"?l="inline":s.match(/(^data:image\/[a-z0-9+\/=]*,)|(\.((a)?png|avif|gif|jp(g|eg)|pjp(eg)?|jfif|svg|webp|bmp|ico|tif(f)?)((\?|#).*)?$)/i)?l="image":s.match(/\.(pdf)((\?|#).*)?$/i)?l="pdf":s.match(/\.(html|php)((\?|#).*)?$/i)&&(l="iframe")),!l){const d=s.match(/(?:maps\.)?google\.([a-z]{2,3}(?:\.[a-z]{2})?)\/(?:(?:(?:maps\/(?:place\/(?:.*)\/)?\@(.*),(\d+.?\d+?)z))|(?:\?ll=))(.*)?/i);d&&(s=`https://maps.google.${d[1]}/?ll=${(d[2]?d[2]+"&z="+Math.floor(parseFloat(d[3]))+(d[4]?d[4].replace(/^\//,"&"):""):d[4]+"").replace(/\?/,"&")}&output=${d[4]&&d[4].indexOf("layer=c")>0?"svembed":"embed"}`,l="gmap")}if(!l){const d=s.match(/(?:maps\.)?google\.([a-z]{2,3}(?:\.[a-z]{2})?)\/(?:maps\/search\/)(.*)/i);d&&(s=`https://maps.google.${d[1]}/maps?q=${d[2].replace("query=","q=").replace("api=1","")}&output=embed`,l="gmap")}i.src=s,i.type=l}}function a(r,i){i.type!=="iframe"&&i.type!=="pdf"&&i.type!=="gmap"||function(s){if(!t||!s.el||!s.src)return;const l=document.createElement("iframe");l.classList.add("f-iframe");for(const[f,u]of Object.entries(function(){const h=t==null?void 0:t.getOptions().Html;return Ze(h)?Object.assign(Object.assign({},Ur),h):Ur}().iframeAttr||{}))l.setAttribute(f,u);l.onerror=()=>{t&&t.getState()===1&&t.showError(s,"{{IFRAME_ERROR}}")},l.src=s.src;const d=document.createElement("div");if(d.classList.add("f-html"),d.append(l),s.width){let f=`${s.width}`;f.match(/^\d+$/)&&(f+="px"),d.style.maxWidth=`${f}`}if(s.height){let f=`${s.height}`;f.match(/^\d+$/)&&(f+="px"),d.style.maxHeight=`${f}`}if(s.aspectRatio){const f=s.el.getBoundingClientRect();d.style.aspectRatio=`${s.aspectRatio}`,d.style[f.width>f.height?"width":"height"]="auto",d.style[f.width>f.height?"maxWidth":"maxHeight"]="none"}s.contentEl=l,s.htmlEl=d,s.el.classList.add("has-html"),s.el.classList.add("has-iframe"),s.el.classList.add(`has-${s.type}`),s.el.prepend(d),t.emit("contentReady",s)}(i)}function o(r,i){var s,l;i.type!=="iframe"&&i.type!=="pdf"&&i.type!=="gmap"||(t==null||t.hideError(i),(s=i.contentEl)===null||s===void 0||s.remove(),i.contentEl=void 0,(l=i.htmlEl)===null||l===void 0||l.remove(),i.htmlEl=void 0)}return{init:function(r){t=r,t.on("addSlide",n),t.on("attachSlideEl",a),t.on("detachSlideEl",o)},destroy:function(){t==null||t.off("addSlide",n),t==null||t.off("attachSlideEl",a),t==null||t.off("detachSlideEl",o),t=void 0}}};/*! License details at fancyapps.com/license */const Zr=(t,n={})=>{const a=new URL(t),o=new URLSearchParams(a.search),r=new URLSearchParams;for(const[l,d]of[...o,...Object.entries(n)]){let f=d+"";if(l==="t"){let u=f.match(/((\d*)m)?(\d*)s?/);u&&r.set("start",60*parseInt(u[2]||"0")+parseInt(u[3]||"0")+"")}else r.set(l,f)}let i=r+"",s=t.match(/#t=((.*)?\d+s)/);return s&&(i+=`#t=${s[1]}`),i},Yr={autoplay:!1,html5videoTpl:`<video class="f-html5video" playsinline controls controlsList="nodownload" poster="{{poster}}">
|
|
10
|
-
<source src="{{src}}" type="{{format}}" />Sorry, your browser doesn't support embedded videos.</video>`,iframeAttr:{allow:"autoplay; fullscreen",scrolling:"auto",credentialless:""},vimeo:{byline:1,color:"00adef",controls:1,dnt:1,muted:0},youtube:{controls:1,enablejsapi:1,nocookie:1,rel:0,fs:1}},w3=()=>{let t,n=!1;function a(){const m=t==null?void 0:t.getOptions().Video;return Ze(m)?Object.assign(Object.assign({},Yr),m):Yr}function o(){var m;return(m=t==null?void 0:t.getPage())===null||m===void 0?void 0:m.slides[0]}const r=m=>{var p;try{let c=JSON.parse(m.data);if(m.origin==="https://player.vimeo.com"){if(c.event==="ready")for(let g of Array.from(((p=t==null?void 0:t.getContainer())===null||p===void 0?void 0:p.getElementsByClassName("f-iframe"))||[]))g instanceof HTMLIFrameElement&&g.contentWindow===m.source&&(g.dataset.ready="true")}else if(m.origin.match(/^https:\/\/(www.)?youtube(-nocookie)?.com$/)&&c.event==="onReady"){const g=document.getElementById(c.id);g&&(g.dataset.ready="true")}}catch{}};function i(m,p){const c=p.src;if(!je(c))return;let g=p.type;if(!g||g==="html5video"){const y=c.match(/\.(mp4|mov|ogv|webm)((\?|#).*)?$/i);y&&(g="html5video",p.html5videoFormat=p.html5videoFormat||"video/"+(y[1]==="ogv"?"ogg":y[1]))}if(!g||g==="youtube"){const y=c.match(/(youtube\.com|youtu\.be|youtube\-nocookie\.com)\/(?:watch\?(?:.*&)?v=|v\/|u\/|shorts\/|embed\/?)?(videoseries\?list=(?:.*)|[\w-]{11}|\?listType=(?:.*)&list=(?:.*))(?:.*)/i);if(y){const b=Object.assign(Object.assign({},a().youtube),p.youtube||{}),w=`www.youtube${b.nocookie?"-nocookie":""}.com`,E=Zr(c,b),x=encodeURIComponent(y[2]);p.videoId=x,p.src=`https://${w}/embed/${x}?${E}`,p.thumb=p.thumb||`https://i.ytimg.com/vi/${x}/mqdefault.jpg`,g="youtube"}}if(!g||g==="vimeo"){const y=c.match(/^.+vimeo.com\/(?:\/)?(video\/)?([\d]+)((\/|\?h=)([a-z0-9]+))?(.*)?/);if(y){const b=Object.assign(Object.assign({},a().vimeo),p.vimeo||{}),w=Zr(c,b),E=encodeURIComponent(y[2]),x=y[5]||"";p.videoId=E,p.src=`https://player.vimeo.com/video/${E}?${x?`h=${x}${w?"&":""}`:""}${w}`,g="vimeo"}}p.type=g}function s(m,p){p.type==="html5video"&&function(c){if(!t||!c.el||!c.src)return;const{el:g,src:y}=c;if(!g||!y)return;const b=c.html5videoTpl||a().html5videoTpl,w=c.html5videoFormat||a().html5videoFormat;if(!b)return;const E=c.poster||(c.thumb&&je(c.thumb)?c.thumb:""),x=kt(b.replace(/\{\{src\}\}/gi,y+"").replace(/\{\{format\}\}/gi,w||"").replace(/\{\{poster\}\}/gi,E+""));if(!x)return;const v=document.createElement("div");v.classList.add("f-html"),v.append(x),c.contentEl=x,c.htmlEl=v,g.classList.add(`has-${c.type}`),g.prepend(v),u(c),t.emit("contentReady",c)}(p),p.type!=="youtube"&&p.type!=="vimeo"||function(c){if(!t||!c.el||!c.src)return;const g=document.createElement("iframe");g.classList.add("f-iframe"),g.setAttribute("id",`f-iframe_${c.videoId}`);for(const[b,w]of Object.entries(a().iframeAttr||{}))g.setAttribute(b,w);g.onload=()=>{var b;t&&t.getState()===1&&c.type==="youtube"&&((b=g.contentWindow)===null||b===void 0||b.postMessage(JSON.stringify({event:"listening",id:g.getAttribute("id")}),"*"))},g.onerror=()=>{t&&t.getState()===1&&(t==null||t.showError(c,"{{IFRAME_ERROR}}"))},g.src=c.src;const y=document.createElement("div");y.classList.add("f-html"),y.append(g),c.contentEl=g,c.htmlEl=y,c.el.classList.add("has-html"),c.el.classList.add("has-iframe"),c.el.classList.add(`has-${c.type}`),c.el.prepend(y),u(c),t.emit("contentReady",c)}(p)}function l(m,p){var c,g;p.type!=="html5video"&&p.type!=="youtube"&&p.type!=="vimeo"||((c=p.contentEl)===null||c===void 0||c.remove(),p.contentEl=void 0,(g=p.htmlEl)===null||g===void 0||g.remove(),p.htmlEl=void 0),p.poller&&clearTimeout(p.poller)}function d(){n=!1}function f(){if(n)return;n=!0;const m=o();(m&&m.autoplay!==void 0?m.autoplay:a().autoplay)&&(function(){var p;const c=o(),g=c==null?void 0:c.el;if(g&&(c==null?void 0:c.type)==="html5video")try{const b=g.querySelector("video");if(b){const w=b.play();w!==void 0&&w.then(()=>{}).catch(E=>{b.muted=!0,b.play()})}}catch{}const y=c==null?void 0:c.htmlEl;y instanceof HTMLIFrameElement&&((p=y.contentWindow)===null||p===void 0||p.postMessage('{"event":"command","func":"stopVideo","args":""}',"*"))}(),function(){const p=o(),c=p==null?void 0:p.type;if(!(p!=null&&p.el)||c!=="youtube"&&c!=="vimeo")return;const g=()=>{if(p.contentEl&&p.contentEl instanceof HTMLIFrameElement&&p.contentEl.contentWindow){let y;if(p.contentEl.dataset.ready==="true")return y=p.type==="youtube"?{event:"command",func:"playVideo"}:{method:"play",value:"true"},y&&p.contentEl.contentWindow.postMessage(JSON.stringify(y),"*"),void(p.poller=void 0);p.type==="youtube"&&(y={event:"listening",id:p.contentEl.getAttribute("id")},p.contentEl.contentWindow.postMessage(JSON.stringify(y),"*"))}p.poller=setTimeout(g,250)};g()}())}function u(m){const p=m==null?void 0:m.htmlEl;if(m&&p&&(m.type==="html5video"||m.type==="youtube"||m.type==="vimeo")){if(p.style.aspectRatio="",p.style.width="",p.style.height="",p.style.maxWidth="",p.style.maxHeight="",m.width){let c=`${m.width}`;c.match(/^\d+$/)&&(c+="px"),p.style.maxWidth=`${c}`}if(m.height){let c=`${m.height}`;c.match(/^\d+$/)&&(c+="px"),p.style.maxHeight=`${c}`}if(m.aspectRatio){const c=m.aspectRatio.split("/"),g=parseFloat(c[0].trim()),y=c[1]?parseFloat(c[1].trim()):0,b=g&&y?g/y:g;p.offsetHeight;const w=p.getBoundingClientRect(),E=b<(w.width||1)/(w.height||1);p.style.aspectRatio=`${m.aspectRatio}`,p.style.width=E?"auto":"",p.style.height=E?"":"auto"}}}function h(){u(o())}return{init:function(m){t=m,t.on("addSlide",i),t.on("attachSlideEl",s),t.on("detachSlideEl",l),t.on("ready",f),t.on("change",d),t.on("settle",f),t.on("refresh",h),window.addEventListener("message",r)},destroy:function(){t==null||t.off("addSlide",i),t==null||t.off("attachSlideEl",s),t==null||t.off("detachSlideEl",l),t==null||t.off("ready",f),t==null||t.off("change",d),t==null||t.off("settle",f),t==null||t.off("refresh",h),window.removeEventListener("message",r),t=void 0}}};/*! License details at fancyapps.com/license */const Xr={autoStart:!1,btnTpl:'<button data-fullscreen-action="toggle" class="f-button" title="{{TOGGLE_FULLSCREEN}}"><svg><g><path d="M8 3H5a2 2 0 0 0-2 2v3M21 8V5a2 2 0 0 0-2-2h-3M3 16v3a2 2 0 0 0 2 2h3M16 21h3a2 2 0 0 0 2-2v-3"/></g><g><path d="M15 19v-2a2 2 0 0 1 2-2h2M15 5v2a2 2 0 0 0 2 2h2M5 15h2a2 2 0 0 1 2 2v2M5 9h2a2 2 0 0 0 2-2V5"/></g></svg></button>'},Kr="in-fullscreen-mode",E3=()=>{let t;function n(h){const m=t==null?void 0:t.getOptions().Fullscreen;let p=(Ze(m)?Object.assign(Object.assign({},Xr),m):Xr)[h];return p&&typeof p=="function"&&t?p(t):p}function a(){var h;(h=t==null?void 0:t.getPlugins().Toolbar)===null||h===void 0||h.add("fullscreen",{tpl:n("btnTpl")})}function o(){if(n("autoStart")){const h=s();h&&d(h)}}function r(h,m){const p=m.target;p&&!m.defaultPrevented&&p.dataset.fullscreenAction==="toggle"&&u()}function i(h){s()&&h.key==="Escape"&&!h.defaultPrevented&&u()}function s(){return n("el")||(t==null?void 0:t.getContainer())||void 0}function l(){const h=document;return h.fullscreenEnabled?!!h.fullscreenElement:!!h.webkitFullscreenEnabled&&!!h.webkitFullscreenElement}function d(h){const m=document;let p;return h||(h=m.documentElement),m.fullscreenEnabled?p=h.requestFullscreen():m.webkitFullscreenEnabled&&(p=h.webkitRequestFullscreen(Element.ALLOW_KEYBOARD_INPUT)),p&&p.then(()=>{h.classList.add(Kr)}),p}function f(){const h=document;let m;return h.fullscreenEnabled?m=h.fullscreenElement&&h.exitFullscreen():h.webkitFullscreenEnabled&&(m=h.webkitFullscreenElement&&h.webkitExitFullscreen()),m&&m.then(()=>{var p;(p=s())===null||p===void 0||p.classList.remove(Kr)}),m}function u(){const h=s();h&&(l()?f():d(h))}return{init:function(h){t=h,t.on("initPlugins",a),t.on("ready",o),t.on("click",r)},destroy:function(){t==null||t.off("initPlugins",a),t==null||t.off("ready",o),t==null||t.off("click",r),document.removeEventListener("keydown",i,!0)},exit:f,inFullscreen:l,request:d,toggle:u}};/*! License details at fancyapps.com/license */let ut,On=!1,Qr=!1,an=!1,Ta=!1;const Rn=()=>{const t=new URL(document.URL).hash,n=t.slice(1).split("-"),a=n[n.length-1],o=a&&/^\+?\d+$/.test(a)&&parseInt(n.pop()||"1",10)||1;return{hash:t,slug:n.join("-"),index:o}},Da=()=>{if(!ut||ut.getInstance())return;const{slug:t,index:n}=Rn();if(!t)return;let a=document.querySelector(`[data-slug="${t}"]`);if(a&&a.dispatchEvent(new CustomEvent("click",{bubbles:!0,cancelable:!0})),!ut||ut.getInstance())return;const o=document.querySelectorAll(`[data-fancybox="${t}"]`);o.length&&(a=o[n-1],a&&a.dispatchEvent(new CustomEvent("click",{bubbles:!0,cancelable:!0})))},v3=()=>{var t,n,a;if(!ut||an)return;const o=ut==null?void 0:ut.getInstance();if((o==null?void 0:o.getOptions().Hash)===!1)return;const{slug:r,index:i}=Rn(),s=((t=o==null?void 0:o.getSlide())===null||t===void 0?void 0:t.fancybox)||((n=o==null?void 0:o.getSlide())===null||n===void 0?void 0:n.slug)||void 0;o&&s&&(r===s?(a=o.getCarousel())===null||a===void 0||a.goTo(i-1):(Ta=!0,o.close(),Ta=!1)),Da()},Jr=()=>{ut&&setTimeout(()=>{On=!0,Da(),On=!1,window.addEventListener("hashchange",v3,!1)},300)},La=()=>{let t,n="auto",a="";function o(){if(!t||!t.isTopMost()||t.getOptions().Hash===!1)return;const s=t.getCarousel();if(!s)return;const{hash:l,slug:d}=Rn(),f=t.getSlide();if(!f)return;let u=f.fancybox||"",h=parseInt(f.index+"",10)+1;if(!u)return;let m=`#${u}-${h}`;if(l!==m&&(a=l),history.scrollRestoration&&(n=history.scrollRestoration,history.scrollRestoration="manual"),s.on("change",r),!On)if(u===d)try{window.history.replaceState({},document.title,window.location.pathname+window.location.search+m)}catch{}else try{window.history.pushState({},document.title,window.location.pathname+window.location.search+m),Qr=!0}catch{}}function r(){if(!t||!t.isTopMost()||t.getOptions().Hash===!1)return;const{slug:s}=Rn(),l=t.getSlide();if(!l)return;let d=l.fancybox||"",f=`#${d}-${l.index+1}`;if(d===s){an=!0;try{window.history.replaceState({},document.title,window.location.pathname+window.location.search+f)}catch{}an=!1}}function i(){if(Ta||!t||!t.isTopMost()||t.getOptions().Hash===!1)return;const s=t.getSlide();if(s&&s.fancybox){an=!0;try{!Qr||On||function(){if(window.parent===window)return!1;try{var l=window.frameElement}catch{l=null}return l===null?location.protocol==="data:":l.hasAttribute("sandbox")}()?window.history.replaceState({},document.title,window.location.pathname+window.location.search+a):window.history.back()}catch{}an=!1}}return{init:function(s){t=s,t.on("ready",o),t.on("close",i)},destroy:function(){t==null||t.off("ready",o),t==null||t.off("close",i);const s=t==null?void 0:t.getCarousel();s&&s.off("change",r),t=void 0,history.scrollRestoration&&n&&(history.scrollRestoration=n)}}};La.startFromUrl=Da,La.setup=function(t){ut||(ut=t,Lr()&&(/complete|interactive|loaded/.test(document.readyState)?Jr():document.addEventListener("DOMContentLoaded",Jr)))};/*! License details at fancyapps.com/license */const C3=Object.assign(Object.assign({},Ma),{CLOSE:"Close",NEXT:"Next",PREV:"Previous",MODAL:"You can close this modal content with the ESC key",ELEMENT_NOT_FOUND:"HTML Element Not Found",IFRAME_ERROR:"Error Loading Page"});/*! License details at fancyapps.com/license */const e1='<button class="f-button" title="{{CLOSE}}" data-fancybox-close><svg><path d="M19.286 4.714 4.714 19.286M4.714 4.714l14.572 14.572" /></svg></button>';Ir().add("close",{tpl:e1});const t1=t=>{t&&t.dispatchEvent(new CustomEvent("animationend",{bubbles:!1,cancelable:!0,currentTarget:t}))},n1=(t=null,n="",a)=>{if(!t||!t.parentElement||!n)return void(a&&a());t1(t);const o=r=>{r.target===t&&t.dataset.animationName&&(t.removeEventListener("animationend",o),delete t.dataset.animationName,a&&a(),t.classList.remove(n))};t.dataset.animationName=n,t.addEventListener("animationend",o),De(t,n)};var ze;(function(t){t[t.Init=0]="Init",t[t.Ready=1]="Ready",t[t.Closing=2]="Closing",t[t.Destroyed=3]="Destroyed"})(ze||(ze={}));const on={ajax:null,backdropClick:"close",Carousel:{},closeButton:"auto",closeExisting:!1,delegateEl:void 0,dragToClose:!0,fadeEffect:!0,groupAll:!1,groupAttr:"data-fancybox",hideClass:"f-fadeOut",hideScrollbar:!0,id:void 0,idle:!1,keyboard:{Escape:"close",Delete:"close",Backspace:"close",PageUp:"next",PageDown:"prev",ArrowUp:"prev",ArrowDown:"next",ArrowRight:"next",ArrowLeft:"prev"},l10n:C3,mainClass:"",mainStyle:{},mainTpl:`<dialog class="fancybox__dialog">
|
|
9
|
+
data-lazy-src="{{src}}" alt="{{alt}}" />`},R3=()=>{let t;function n(c,h){const m=t==null?void 0:t.getOptions().Zoomable;let p=(Ze(m)?Object.assign(Object.assign({},Zr),m):Zr)[c];return p&&typeof p=="function"&&h?p(h):p}function a(){t&&t.getOptions().Zoomable!==!1&&(t.on("addSlide",i),t.on("removeSlide",s),t.on("attachSlideEl",l),t.on("click",r),t.on("change",o),t.on("ready",o))}function o(){d();const c=(t==null?void 0:t.getVisibleSlides())||[];if(c.length>1||(t==null?void 0:t.getOption("transition"))==="slide")for(const h of c){const m=h.panzoomRef;m&&((t==null?void 0:t.getPage().slides)||[]).indexOf(h)<0&&m.execute(ge.ZoomTo,Object.assign({},m.getStartPosition()))}}function r(c,h){const m=h.target;m&&!h.defaultPrevented&&m.dataset.panzoomAction&&u(m.dataset.panzoomAction)}function i(c,h){const m=h.el;if(!t||!m||h.panzoomRef)return;const p=h.src||h.lazySrc||"",f=h.alt||h.caption||`Image #${h.index}`,g=h.srcset||h.lazySrcset||"",y=h.sizes||h.lazySizes||"";if(p&&Te(p)&&!h.html&&(!h.type||h.type==="image")){h.type="image",h.thumbSrc=h.thumbSrc||p;let N=n("tpl",h);N=zt(N,"{{src}}",p+""),N=zt(N,"{{srcset}}",g+""),N=zt(N,"{{sizes}}",y+""),m.insertAdjacentHTML("afterbegin",N)}const k=m.querySelector(".f-panzoom__content");if(!k)return;k.setAttribute("alt",f+"");const E=h.width&&h.width!=="auto"?parseFloat(h.width+""):"auto",C=h.height&&h.height!=="auto"?parseFloat(h.height+""):"auto",b=$a(m,Object.assign({width:E,height:C,classes:{container:"f-zoomable"},event:()=>t==null?void 0:t.getLastMouseMove(),spinnerTpl:()=>(t==null?void 0:t.getOption("spinnerTpl"))||""},n("Panzoom")));b.on("*",(N,D,...z)=>{t&&(D==="loading"&&(h.state=0),D==="loaded"&&(h.state=1),D==="error"&&(h.state=2,t==null||t.showError(h,"{{IMAGE_ERROR}}")),t.emit(`panzoom:${D}`,h,...z),D==="ready"&&t.emit("contentReady",h),h.index===(t==null?void 0:t.getPageIndex())&&d())}),h.panzoomRef=b}function s(c,h){h.panzoomRef&&(h.panzoomRef.destroy(),h.panzoomRef=void 0)}function l(c,h){const m=h.panzoomRef;if(m)switch(m.getState()){case 0:m.init();break;case 3:m.execute(ge.ZoomTo,Object.assign(Object.assign({},m.getStartPosition()),{velocity:0}))}}function d(){var c,h;const m=(t==null?void 0:t.getContainer())||void 0,p=(h=(c=t==null?void 0:t.getPage())===null||c===void 0?void 0:c.slides[0])===null||h===void 0?void 0:h.panzoomRef;if(m)if(p)p.updateControls(m);else for(const f of m.querySelectorAll("[data-panzoom-action]")||[])f.setAttribute("aria-disabled",""),f.setAttribute("tabindex","-1")}function u(c,...h){var m;(m=t==null?void 0:t.getPage().slides[0].panzoomRef)===null||m===void 0||m.execute(c,...h)}return{init:function(c){t=c,t.on("initPlugins",a)},destroy:function(){if(t){t.off("initPlugins",a),t.off("addSlide",i),t.off("removeSlide",s),t.off("attachSlideEl",l),t.off("click",r),t.off("change",o),t.off("ready",o);for(const c of t.getSlides())s(0,c)}t=void 0},execute:u}};/*! License details at fancyapps.com/license */const Yr={syncOnChange:!1,syncOnClick:!0,syncOnHover:!1},Xr=()=>{let t,n;function a(){const p=t==null?void 0:t.getOptions().Sync;return Ze(p)?Object.assign(Object.assign({},Yr),p):Yr}function o(p){var f,g,y;t&&p&&(n=p,t.getOptions().classes=Object.assign(Object.assign({},t.getOptions().classes),{isSelected:""}),t.getOptions().initialSlide=((g=(f=n.getPage())===null||f===void 0?void 0:f.slides[0])===null||g===void 0?void 0:g.index)||0,a().syncOnChange&&t.on("change",s),a().syncOnClick&&t.on("click",d),a().syncOnHover&&((y=t.getViewport())===null||y===void 0||y.addEventListener("mouseover",u)),function(){!t||!n||(t.on("ready",i),t.on("refresh",c),n.on("change",l),n.on("filter",h))}())}function r(){const p=a().target;t&&p&&o(p)}function i(){m()}function s(){var p;if(t&&n){const f=((p=t.getPage())===null||p===void 0?void 0:p.slides)||[],g=n.getPageIndex(f[0].index||0);g>-1&&n.goTo(g,t.hasNavigated()?void 0:{tween:!1,transition:!1}),m()}}function l(){var p;if(t&&n){const f=t.getPageIndex(((p=n.getPage())===null||p===void 0?void 0:p.slides[0].index)||0);f>-1&&t.goTo(f,n.hasNavigated()?void 0:{tween:!1,transition:!1}),m()}}function d(p,f){var g;if(!t||!n||!((g=t.getTween())===null||g===void 0)&&g.isRunning())return;const y=t==null?void 0:t.getOptions().classes.slide;if(!y)return;const k=y?f.target.closest(`.${y}`):null;if(k){const E=parseInt(k.getAttribute("index")||"")||0,C=n.getPageIndex(E);n.goTo(C)}}function u(p){t&&d(0,p)}function c(){var p;if(t&&n){const f=t.getPageIndex(((p=n.getPage())===null||p===void 0?void 0:p.slides[0].index)||0);f>-1&&t.goTo(f,{tween:!1,transition:!1}),m()}}function h(p,f){t&&n&&(t.filter(f),l())}function m(){var p,f,g;if(!n)return;const y=((f=(p=n.getPage())===null||p===void 0?void 0:p.slides[0])===null||f===void 0?void 0:f.index)||0;for(const k of(t==null?void 0:t.getSlides())||[])(g=k.el)===null||g===void 0||g.classList.toggle("is-selected",k.index===y)}return{init:function(p){t=p,t.on("initSlides",r)},destroy:function(){var p;t==null||t.off("ready",i),t==null||t.off("refresh",c),t==null||t.off("change",s),t==null||t.off("click",d),(p=t==null?void 0:t.getViewport())===null||p===void 0||p.removeEventListener("mouseover",u),n==null||n.off("change",l),n==null||n.off("filter",h),n=void 0,t==null||t.off("initSlides",r),t=void 0},getTarget:function(){return n}}};/*! License details at fancyapps.com/license */const Kr={showLoading:!0,preload:1},Kn="is-lazyloading",Qr="is-lazyloaded",Jr="has-lazyerror",e1=()=>{let t;function n(){const r=t==null?void 0:t.getOptions().Lazyload;return Ze(r)?Object.assign(Object.assign({},Kr),r):Kr}function a(r){var i;const s=r.el;if(!s)return;const l="[data-lazy-src],[data-lazy-srcset],[data-lazy-bg]",d=Array.from(s.querySelectorAll(l));s.matches(l)&&d.push(s);for(const u of d){const c=u.dataset.lazySrc,h=u.dataset.lazySrcset,m=u.dataset.lazySizes,p=u.dataset.lazyBg,f=(u instanceof HTMLImageElement||u instanceof HTMLSourceElement)&&(c||h),g=u instanceof HTMLElement&&p;if(!f&&!g)continue;const y=c||h||p;if(y){if(f&&y){const k=(i=u.parentElement)===null||i===void 0?void 0:i.classList.contains("f-panzoom__wrapper");n().showLoading&&(t==null||t.showLoading(r)),u.addEventListener("load",()=>{t==null||t.hideLoading(r),Qe(u,Jr),u instanceof HTMLImageElement?u.decode().then(()=>{Qe(u,Kn),Ee(u,Qr)}):(Qe(u,Kn),Ee(u,Qr)),k||t==null||t.emit("lazyLoad:loaded",r,u,y)}),u.addEventListener("error",()=>{t==null||t.hideLoading(r),Qe(u,Kn),Ee(u,Jr),k||t==null||t.emit("lazyLoad:error",r,u,y)}),u.classList.add("f-lazyload"),u.classList.add(Kn),k||t==null||t.emit("lazyLoad:load",r,u,y),c&&(u.src=c),h&&(u.srcset=h),m&&(u.sizes=m)}else g&&(document.body.contains(u)||(document.createElement("img").src=p),u.style.backgroundImage=`url('${p}')`);delete u.dataset.lazySrc,delete u.dataset.lazySrcset,delete u.dataset.lazySizes,delete u.dataset.lazyBg}}}function o(){if(!t)return;const r=[...t.getVisibleSlides()],i=n().preload;if(i>0){const s=t.getPosition(),l=t.getViewportDim();r.push(...t.getVisibleSlides(s+l*i),...t.getVisibleSlides(s-l*i))}for(const s of r)a(s)}return{init:function(r){t=r,t.on("render",o)},destroy:function(){t==null||t.off("render",o),t=void 0}}};/*! License details at fancyapps.com/license */const t1='<svg width="24" height="24" viewBox="0 0 24 24" tabindex="-1">',n1="</svg>",a1={prevTpl:t1+'<path d="M15 3l-9 9 9 9"></path>'+n1,nextTpl:t1+'<path d="M9 3l9 9-9 9"></path>'+n1},H3=()=>{let t,n,a;function o(){const l=t==null?void 0:t.getOptions().Arrows;return Ze(l)?Object.assign(Object.assign({},a1),l):a1}function r(l){if(!t)return;const d=`<button data-carousel-go-${l} tabindex="0" class="f-button is-arrow is-${l}" title="{{${l.toUpperCase()}}}">`+o()[`${l}Tpl`]+"</button",u=wt(t.localize(d))||void 0;return u&&Ee(u,o()[`${l}Class`]),u}function i(){var l;n==null||n.remove(),n=void 0,a==null||a.remove(),a=void 0,(l=t==null?void 0:t.getContainer())===null||l===void 0||l.classList.remove("has-arrows")}function s(){t&&t.getOptions().Arrows!==!1&&t.getPages().length>1?(function(){if(!t)return;const l=t.getViewport();l&&(n||(n=r("prev"),n&&l.insertAdjacentElement("beforebegin",n)),a||(a=r("next"),a&&l.insertAdjacentElement("afterend",a)),Ye(t.getContainer(),"has-arrows",!(!n&&!a)))}(),t&&(n==null||n.toggleAttribute("aria-disabled",!t.canGoPrev()),a==null||a.toggleAttribute("aria-disabled",!t.canGoNext()))):i()}return{init:function(l){t=l.on(["change","refresh"],s)},destroy:function(){i(),t==null||t.off(["change","refresh"],s),t=void 0}}};/*! License details at fancyapps.com/license */const o1='<circle cx="11" cy="11" r="7.5"/><path d="m21 21-4.35-4.35M8 11h6"/>',Oa='<g><line x1="11" y1="8" x2="11" y2="14"></line></g>'+o1,z3={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",o1],zoomIn:["zoomIn","ZOOM_IN",Oa],toggleFull:["toggleFull","TOGGLE_FULL",Oa],iterateZoom:["iterateZoom","ITERATE_ZOOM",Oa],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>']},Ra={};for(const[t,n]of Object.entries(z3))Ra[t]={tpl:`<button data-panzoom-action="${n[0]}" class="f-button" title="{{${n[1]}}}"><svg>${n[2]}</svg></button>`};/*! License details at fancyapps.com/license */var r1;(function(t){t.Left="left",t.middle="middle",t.right="right"})(r1||(r1={}));const i1=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>'}},Ra),s1={absolute:!1,display:{left:[],middle:["zoomIn","zoomOut","toggle1to1","rotateCCW","rotateCW","flipX","flipY","reset"],right:[]},enabled:"auto",items:{}},l1=()=>{let t,n;function a(r){const i=t==null?void 0:t.getOptions().Toolbar;let s=(Ze(i)?Object.assign(Object.assign({},s1),i):s1)[r];return s&&typeof s=="function"&&t?s(t):s}function o(){var r,i;if(!(t!=null&&t.getOptions().Toolbar)||!t||n)return;const s=t.getContainer();if(!s)return;let l=a("enabled");if(!l)return;const d=a("absolute"),u=t.getSlides().length>1;let c=!1,h=!1;for(const k of t.getSlides())k.panzoomRef&&(c=!0),(k.downloadSrc||k.type==="image"&&k.src)&&(h=!0);const m=((r=t.getPlugins().Thumbs)===null||r===void 0?void 0:r.isEnabled())||!1,p=u&&t.getPlugins().Autoplay||!1,f=t.getPlugins().Fullscreen&&(document.fullscreenEnabled||document.webkitFullscreenEnabled);if(l==="auto"&&(l=c),!l)return;n=s.querySelector(".f-carousel__toolbar")||void 0,n||(n=document.createElement("div"),n.classList.add("f-carousel__toolbar"));const g=a("display"),y=ot({},i1,a("items"));for(const k of["left","middle","right"]){const E=g[k]||[],C=document.createElement("div");C.classList.add("f-carousel__toolbar__column"),C.classList.add(`is-${k}`);for(const b of E){let N;if(Te(b)){if(b==="counter"&&!u||b==="autoplay"&&!p||Ra[b]&&!c||b==="fullscreen"&&!f||b==="thumbs"&&!m||b==="download"&&!h)continue;N=y[b]}if(Ze(b)&&(N=b),N&&N.tpl){let D=t.localize(N.tpl);D=D.split("<svg>").join('<svg tabindex="-1" width="24" height="24" viewBox="0 0 24 24">');const z=wt(D);z&&(typeof N.click=="function"&&t&&z.addEventListener("click",M=>{M.preventDefault(),M.stopPropagation(),typeof N.click=="function"&&t&&N.click(t,M)}),C.append(z))}}n.append(C)}if(n.childElementCount){if(d&&n.classList.add("is-absolute"),!n.parentElement){const k=a("parentEl");k?k.insertAdjacentElement("afterbegin",n):(i=t.getViewport())===null||i===void 0||i.insertAdjacentElement("beforebegin",n)}s.contains(n)&&s.classList.add("has-toolbar")}}return{init:function(r){t=r,t==null||t.on("initSlides",o)},destroy:function(){var r;t==null||t.off("initSlides",o),(r=t==null?void 0:t.getContainer())===null||r===void 0||r.classList.remove("has-toolbar"),n==null||n.remove(),n=void 0},add:function(r,i){i1[r]=i},isEnabled:function(){return!!n}}};/*! License details at fancyapps.com/license */const c1={autoStart:!0,pauseOnHover:!0,showProgressbar:!0,timeout:2e3},j3=()=>{let t,n,a=!1,o=!1,r=!1,i=null;function s(N){const D=t==null?void 0:t.getOptions().Autoplay;let z=(Ze(D)?Object.assign(Object.assign({},c1),D):c1)[N];return z&&typeof z=="function"&&t?z(t):z}function l(){clearTimeout(n),n=void 0}function d(){if(!t||!a||r||o||n||!t.isSettled()||function(){var D;const z=((D=t==null?void 0:t.getPage())===null||D===void 0?void 0:D.slides)||[];for(const M of z)if(M.state===0)return!0;return!1}())return;(function(){var D,z,M,x;if(!t||(h(),!s("showProgressbar")))return;let T=s("progressbarParentEl");if(!T&&(!((D=t.getPlugins().Toolbar)===null||D===void 0)&&D.isEnabled())&&(T=t.getContainer()),!T&&((z=t.getPlugins().Toolbar)===null||z===void 0?void 0:z.isEnabled())!==!0){const V=((M=t.getPages()[0])===null||M===void 0?void 0:M.slides)||[],S=((x=t.getPage())===null||x===void 0?void 0:x.slides)||[];V.length===1&&S.length===1&&(T=S[0].el)}if(T||(T=t.getViewport()),!T)return;i=document.createElement("div"),Ee(i,"f-progressbar"),T.prepend(i);const B=s("timeout")||1e3;i.style.animationDuration=`${B}ms`})();const N=s("timeout");n=setTimeout(()=>{t&&a&&!o&&(t.isInfinite()||t.getPageIndex()!==t.getPages().length-1?t.next():t.goTo(0))},N)}function u(){var N;if(!t||t.getPages().length<2||t.getOptions().Autoplay===!1||a)return;a=!0,t.emit("autoplay:start",s("timeout")),Ee(t.getContainer(),"has-autoplay"),(N=t.getTween())===null||N===void 0||N.on("start",k);const D=t==null?void 0:t.getContainer();D&&s("pauseOnHover")&&matchMedia("(hover: hover)").matches&&(D.addEventListener("mouseenter",E,!1),D.addEventListener("mouseleave",C,!1)),t.on("change",g),t.on("settle",y),t.on("contentReady",p),t.on("panzoom:touchStart",c),t.on("panzoom:wheel",c),t.isSettled()&&d()}function c(){var N;if(l(),h(),t){if(a){t.emit("autoplay:end"),(N=t.getTween())===null||N===void 0||N.off("start",k);const D=t.getContainer();D&&(D.classList.remove("has-autoplay"),D.removeEventListener("mouseenter",E,!1),D.removeEventListener("mouseleave",C,!1))}t.off("change",g),t.off("settle",y),t.off("contentReady",p),t.off("panzoom:touchStart",c),t.off("panzoom:wheel",c)}a=!1,o=!1}function h(){i&&(i.remove(),i=null)}function m(){t&&t.getPages().length>1&&s("autoStart")&&u()}function p(){d()}function f(N,D){const z=D.target;z&&!D.defaultPrevented&&z.dataset.autoplayAction==="toggle"&&b.toggle()}function g(){!t||!(t!=null&&t.isInfinite())&&t.getPageIndex()===t.getPages().length-1?c():(h(),l())}function y(){d()}function k(){l(),h()}function E(){r=!0,a&&(h(),l())}function C(){r=!1,a&&!o&&(t!=null&&t.isSettled())&&d()}const b={init:function(N){t=N,t.on("ready",m),t.on("click",f)},destroy:function(){c(),t==null||t.off("ready",m),t==null||t.off("click",f),t=void 0},isEnabled:()=>a,pause:function(){o=!0,l()},resume:function(){o=!1,a&&!r&&d()},start(){u()},stop(){c()},toggle(){a?c():u()}};return b};/*! License details at fancyapps.com/license */const Ha={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 za;const G3=()=>{let t,n,a,o,r,i=0,s=0,l=!0;function d(S){const v=t==null?void 0:t.getOptions().Thumbs;let P=(Ze(v)?Object.assign(Object.assign({},Ha),v):Ha)[S];return P&&typeof P=="function"&&t?P(t):P}function u(){if(!t||(t==null?void 0:t.getOptions().Thumbs)===!1)return!1;let S=0;for(const v of t.getSlides())v.thumbSrc&&S++;return S>=d("minCount")}function c(){return d("type")==="modern"}function h(){return d("type")==="scrollable"}function m(){const S=[],v=(t==null?void 0:t.getSlides())||[];for(const P of v)S.push({index:P.index,class:P.thumbClass,html:p(P)});return S}function p(S){const v=S.thumb?S.thumb instanceof HTMLImageElement?S.thumb.src:S.thumb:S.thumbSrc||void 0,P=S.thumbAlt===void 0?`Thumbnail #${S.index}`:S.thumbAlt+"";let Z=d("thumbTpl");return Z=zt(Z,"{{alt}}",P),Z=zt(Z,"{{src}}",v+""),Z=zt(Z,"{{index}}",`${S.index}`),Z=zt(Z,"{{page}}",`${S.index||1}`),Z}function f(S){return`<div index="${S.index||0}" class="f-thumbs__slide ${S.class||""}">${S.html||""}</div>`}function g(S=!1){var v;const P=t==null?void 0:t.getContainer();if(!t||!P||a||!u())return;const Z=((v=d("Carousel"))===null||v===void 0?void 0:v.classes)||{};if(Z.container=Z.container||"f-thumbs",!a){const Q=P.nextElementSibling;Q!=null&&Q.classList.contains(Z.container)&&(a=Q)}if(!a){a=document.createElement("div");const Q=d("parentEl");Q?Q.insertAdjacentElement("beforeend",a):P.insertAdjacentElement("afterend",a)}Ee(a,Z.container),Ee(a,"f-thumbs"),Ee(a,`is-${d("type")}`),S&&Ee(a,"is-hidden")}function y(){if(!a||!h())return;o=document.createElement("div"),Ee(o,"f-thumbs__viewport");let S="";for(const v of m())typeof(v.html||"")=="string"&&(S+=f(v));o.innerHTML=S,a.append(o),a.addEventListener("click",v=>{v.preventDefault();const P=v.target.closest("[index]"),Z=parseInt((P==null?void 0:P.getAttribute("index"))||"-1");t&&Z>-1&&t.goTo(Z)}),r=new IntersectionObserver(v=>{v.forEach(P=>{P.isIntersecting&&P.target instanceof HTMLImageElement&&(P.target.src=P.target.getAttribute("data-lazy-src")+"",P.target.removeAttribute("data-lazy-src"),r==null||r.unobserve(P.target))})},{root:o,rootMargin:"100px"}),a.querySelectorAll("[data-lazy-src]").forEach(v=>{r==null||r.observe(v)}),t==null||t.emit("thumbs:ready")}function k(){var S;if(!za||!t||!a||h()||n)return;const v=m();if(!v.length)return;const P=ot({},{Sync:{target:t},Lazyload:{preload:1},slides:v,classes:{container:"f-thumbs",viewport:"f-thumbs__viewport",slide:"f-thumbs__slide"},center:!0,fill:!c(),infinite:!1,dragFree:!0,rtl:t.getOptions().rtl||!1,slidesPerPage:Z=>{let Q=0;return c()&&(function(){if(!c()||!a)return;const J=_=>a&&parseFloat(getComputedStyle(a).getPropertyValue("--f-thumb-"+_))||0;i=J("width"),s=J("clip-width")}(),Q=4*(i-s)),Z&&Z.getTotalSlideDim()<=Z.getViewportDim()-Q?1/0:1}},Ha.Carousel||{},d("Carousel")||{});n=za(a,P,{Sync:Xr,Lazyload:e1}),n.on("ready",()=>{Ee(a,"is-syncing"),t==null||t.emit("thumbs:ready"),c()&&(t==null||t.on("render",N))}),n.on("destroy",()=>{t==null||t.emit("thumbs:destroy")}),n.init(),(S=n.getGestures())===null||S===void 0||S.on("start",()=>{l=!1}),n.on("click",(Z,Q)=>{const J=Q.target;if(J){const _=J.matches("button")?J:J.firstElementChild;_&&_.matches("button")&&(Q.preventDefault(),_.focus({preventScroll:!0}))}}),Ee(t.getContainer(),"has-thumbs"),V()}function E(){u()&&d("showOnStart")&&(g(),y())}function C(){var S;u()&&(k(),t==null||t.on("addSlide",z),t==null||t.on("removeSlide",M),t==null||t.on("click",x),t==null||t.on("refresh",T),(S=t==null?void 0:t.getGestures())===null||S===void 0||S.on("start",b),B(!0))}function b(){var S,v;l=!0,!((S=document.activeElement)===null||S===void 0)&&S.closest(".f-thumbs")&&((v=document.activeElement)===null||v===void 0||v.blur())}function N(){var S,v;a==null||a.classList.toggle("is-syncing",(t==null?void 0:t.hasNavigated())===!1||((S=t==null?void 0:t.getTween())===null||S===void 0?void 0:S.isRunning())),V(),!((v=t==null?void 0:t.getGestures())===null||v===void 0)&&v.isPointerDown()&&function(){if(!c()||!t||!n||!l)return;const P=n.getTween(),Z=n.getPages(),Q=t.getPageIndex()||0,J=t.getPageProgress()||0;if(!(t&&Z&&Z[Q]&&P))return;const _=P.isRunning()?P.getCurrentValues().pos:n.getPosition();if(_===void 0)return;let R=Z[Q].pos+J*(i-s);R=Be(Z[0].pos,R,Z[Z.length-1].pos),P.from({pos:_}).to({pos:R}).start()}()}function D(){l=!0,B()}function z(S,v){const P={html:p(v)};if(n)n.add(P,v.index);else if(o){const Z=wt(f(P));if(Z){o.append(Z);const Q=Z.querySelector("img");Q&&(r==null||r.observe(Q))}}}function M(S,v){var P;n?n.remove(v.index):o&&((P=o.querySelector(`[index="${v.index}"]`))===null||P===void 0||P.remove())}function x(S,v){var P;const Z=v.target;v.defaultPrevented||((P=Z==null?void 0:Z.dataset)===null||P===void 0?void 0:P.thumbsAction)!=="toggle"||(a||(g(!0),y(),k()),a&&a.classList.toggle("is-hidden"))}function T(){B()}function B(S=!1){if(!t||!o||!h())return;const v=t.getPageIndex();o.querySelectorAll(".is-selected").forEach(Z=>{Z.classList.remove("is-selected")});const P=o.querySelector(`[index="${v}"]`);if(P){P.classList.add("is-selected");const Z=o.getBoundingClientRect(),Q=P.getBoundingClientRect(),J=P.offsetTop-o.offsetTop-.5*Z.height+.5*Q.height,_=P.scrollLeft-o.scrollLeft-.5*Z.width+.5*Q.width;o.scrollTo({top:J,left:_,behavior:S?"instant":"smooth"})}}function V(){if(!c()||!t||!n)return;const S=(n==null?void 0:n.getSlides())||[];let v=-.5*i;for(const P of S){const Z=P.el;if(!Z)continue;let Q=t.getPageProgress(P.index)||0;Q=Math.max(-1,Math.min(1,Q)),Q>-1&&Q<1&&(v+=.5*i*(1-Math.abs(Q))),Q=Math.round(1e4*Q)/1e4,v=Math.round(1e4*v)/1e4,Z.style.setProperty("--progress",`${Math.abs(Q)}`),Z.style.setProperty("--shift",`${t!=null&&t.isRTL()?-1*v:v}px`),Q>-1&&Q<1&&(v+=.5*i*(1-Math.abs(Q)))}}return{init:function(S,v){za=v,t=S,t.on("ready",C),t.on("initSlides",E),t.on("change",D)},destroy:function(){var S,v;h()&&(t==null||t.emit("thumbs:destroy")),t==null||t.off("ready",C),t==null||t.off("initSlides",E),t==null||t.off("change",D),t==null||t.off("render",N),t==null||t.off("addSlide",z),t==null||t.off("click",x),t==null||t.off("refresh",T),(S=t==null?void 0:t.getGestures())===null||S===void 0||S.off("start",b),(v=t==null?void 0:t.getContainer())===null||v===void 0||v.classList.remove("has-thumbs"),t=void 0,n==null||n.destroy(),n=void 0,a==null||a.remove(),a=void 0},getCarousel:function(){return n},getContainer:function(){return a},getType:function(){return d("type")},isEnabled:u}};/*! License details at fancyapps.com/license */const d1={iframeAttr:{allow:"autoplay; fullscreen",scrolling:"auto"}},I3=()=>{let t;function n(r,i){let s=i.src;if(!Te(s))return;let l=i.type;if(!l){if(l||(s.charAt(0)==="#"?l="inline":s.match(/(^data:image\/[a-z0-9+\/=]*,)|(\.((a)?png|avif|gif|jp(g|eg)|pjp(eg)?|jfif|svg|webp|bmp|ico|tif(f)?)((\?|#).*)?$)/i)?l="image":s.match(/\.(pdf)((\?|#).*)?$/i)?l="pdf":s.match(/\.(html|php)((\?|#).*)?$/i)&&(l="iframe")),!l){const d=s.match(/(?:maps\.)?google\.([a-z]{2,3}(?:\.[a-z]{2})?)\/(?:(?:(?:maps\/(?:place\/(?:.*)\/)?\@(.*),(\d+.?\d+?)z))|(?:\?ll=))(.*)?/i);d&&(s=`https://maps.google.${d[1]}/?ll=${(d[2]?d[2]+"&z="+Math.floor(parseFloat(d[3]))+(d[4]?d[4].replace(/^\//,"&"):""):d[4]+"").replace(/\?/,"&")}&output=${d[4]&&d[4].indexOf("layer=c")>0?"svembed":"embed"}`,l="gmap")}if(!l){const d=s.match(/(?:maps\.)?google\.([a-z]{2,3}(?:\.[a-z]{2})?)\/(?:maps\/search\/)(.*)/i);d&&(s=`https://maps.google.${d[1]}/maps?q=${d[2].replace("query=","q=").replace("api=1","")}&output=embed`,l="gmap")}i.src=s,i.type=l}}function a(r,i){i.type!=="iframe"&&i.type!=="pdf"&&i.type!=="gmap"||function(s){if(!t||!s.el||!s.src)return;const l=document.createElement("iframe");l.classList.add("f-iframe");for(const[u,c]of Object.entries(function(){const h=t==null?void 0:t.getOptions().Html;return Ze(h)?Object.assign(Object.assign({},d1),h):d1}().iframeAttr||{}))l.setAttribute(u,c);l.onerror=()=>{t&&t.getState()===1&&t.showError(s,"{{IFRAME_ERROR}}")},l.src=s.src;const d=document.createElement("div");if(d.classList.add("f-html"),d.append(l),s.width){let u=`${s.width}`;u.match(/^\d+$/)&&(u+="px"),d.style.maxWidth=`${u}`}if(s.height){let u=`${s.height}`;u.match(/^\d+$/)&&(u+="px"),d.style.maxHeight=`${u}`}if(s.aspectRatio){const u=s.el.getBoundingClientRect();d.style.aspectRatio=`${s.aspectRatio}`,d.style[u.width>u.height?"width":"height"]="auto",d.style[u.width>u.height?"maxWidth":"maxHeight"]="none"}s.contentEl=l,s.htmlEl=d,s.el.classList.add("has-html"),s.el.classList.add("has-iframe"),s.el.classList.add(`has-${s.type}`),s.el.prepend(d),t.emit("contentReady",s)}(i)}function o(r,i){var s,l;i.type!=="iframe"&&i.type!=="pdf"&&i.type!=="gmap"||(t==null||t.hideError(i),(s=i.contentEl)===null||s===void 0||s.remove(),i.contentEl=void 0,(l=i.htmlEl)===null||l===void 0||l.remove(),i.htmlEl=void 0)}return{init:function(r){t=r,t.on("addSlide",n),t.on("attachSlideEl",a),t.on("detachSlideEl",o)},destroy:function(){t==null||t.off("addSlide",n),t==null||t.off("attachSlideEl",a),t==null||t.off("detachSlideEl",o),t=void 0}}};/*! License details at fancyapps.com/license */const u1=(t,n={})=>{const a=new URL(t),o=new URLSearchParams(a.search),r=new URLSearchParams;for(const[l,d]of[...o,...Object.entries(n)]){let u=d+"";if(l==="t"){let c=u.match(/((\d*)m)?(\d*)s?/);c&&r.set("start",60*parseInt(c[2]||"0")+parseInt(c[3]||"0")+"")}else r.set(l,u)}let i=r+"",s=t.match(/#t=((.*)?\d+s)/);return s&&(i+=`#t=${s[1]}`),i},f1={autoplay:!1,html5videoTpl:`<video class="f-html5video" playsinline controls controlsList="nodownload" poster="{{poster}}">
|
|
10
|
+
<source src="{{src}}" type="{{format}}" />Sorry, your browser doesn't support embedded videos.</video>`,iframeAttr:{allow:"autoplay; fullscreen",scrolling:"auto",credentialless:""},vimeo:{byline:1,color:"00adef",controls:1,dnt:1,muted:0},youtube:{controls:1,enablejsapi:1,nocookie:1,rel:0,fs:1}},q3=()=>{let t,n=!1;function a(){const m=t==null?void 0:t.getOptions().Video;return Ze(m)?Object.assign(Object.assign({},f1),m):f1}function o(){var m;return(m=t==null?void 0:t.getPage())===null||m===void 0?void 0:m.slides[0]}const r=m=>{var p;try{let f=JSON.parse(m.data);if(m.origin==="https://player.vimeo.com"){if(f.event==="ready")for(let g of Array.from(((p=t==null?void 0:t.getContainer())===null||p===void 0?void 0:p.getElementsByClassName("f-iframe"))||[]))g instanceof HTMLIFrameElement&&g.contentWindow===m.source&&(g.dataset.ready="true")}else if(m.origin.match(/^https:\/\/(www.)?youtube(-nocookie)?.com$/)&&f.event==="onReady"){const g=document.getElementById(f.id);g&&(g.dataset.ready="true")}}catch{}};function i(m,p){const f=p.src;if(!Te(f))return;let g=p.type;if(!g||g==="html5video"){const y=f.match(/\.(mp4|mov|ogv|webm)((\?|#).*)?$/i);y&&(g="html5video",p.html5videoFormat=p.html5videoFormat||"video/"+(y[1]==="ogv"?"ogg":y[1]))}if(!g||g==="youtube"){const y=f.match(/(youtube\.com|youtu\.be|youtube\-nocookie\.com)\/(?:watch\?(?:.*&)?v=|v\/|u\/|shorts\/|embed\/?)?(videoseries\?list=(?:.*)|[\w-]{11}|\?listType=(?:.*)&list=(?:.*))(?:.*)/i);if(y){const k=Object.assign(Object.assign({},a().youtube),p.youtube||{}),E=`www.youtube${k.nocookie?"-nocookie":""}.com`,C=u1(f,k),b=encodeURIComponent(y[2]);p.videoId=b,p.src=`https://${E}/embed/${b}?${C}`,p.thumb=p.thumb||`https://i.ytimg.com/vi/${b}/mqdefault.jpg`,g="youtube"}}if(!g||g==="vimeo"){const y=f.match(/^.+vimeo.com\/(?:\/)?(video\/)?([\d]+)((\/|\?h=)([a-z0-9]+))?(.*)?/);if(y){const k=Object.assign(Object.assign({},a().vimeo),p.vimeo||{}),E=u1(f,k),C=encodeURIComponent(y[2]),b=y[5]||"";p.videoId=C,p.src=`https://player.vimeo.com/video/${C}?${b?`h=${b}${E?"&":""}`:""}${E}`,g="vimeo"}}p.type=g}function s(m,p){p.type==="html5video"&&function(f){if(!t||!f.el||!f.src)return;const{el:g,src:y}=f;if(!g||!y)return;const k=f.html5videoTpl||a().html5videoTpl,E=f.html5videoFormat||a().html5videoFormat;if(!k)return;const C=f.poster||(f.thumb&&Te(f.thumb)?f.thumb:""),b=wt(k.replace(/\{\{src\}\}/gi,y+"").replace(/\{\{format\}\}/gi,E||"").replace(/\{\{poster\}\}/gi,C+""));if(!b)return;const N=document.createElement("div");N.classList.add("f-html"),N.append(b),f.contentEl=b,f.htmlEl=N,g.classList.add(`has-${f.type}`),g.prepend(N),c(f),t.emit("contentReady",f)}(p),p.type!=="youtube"&&p.type!=="vimeo"||function(f){if(!t||!f.el||!f.src)return;const g=document.createElement("iframe");g.classList.add("f-iframe"),g.setAttribute("id",`f-iframe_${f.videoId}`);for(const[k,E]of Object.entries(a().iframeAttr||{}))g.setAttribute(k,E);g.onload=()=>{var k;t&&t.getState()===1&&f.type==="youtube"&&((k=g.contentWindow)===null||k===void 0||k.postMessage(JSON.stringify({event:"listening",id:g.getAttribute("id")}),"*"))},g.onerror=()=>{t&&t.getState()===1&&(t==null||t.showError(f,"{{IFRAME_ERROR}}"))},g.src=f.src;const y=document.createElement("div");y.classList.add("f-html"),y.append(g),f.contentEl=g,f.htmlEl=y,f.el.classList.add("has-html"),f.el.classList.add("has-iframe"),f.el.classList.add(`has-${f.type}`),f.el.prepend(y),c(f),t.emit("contentReady",f)}(p)}function l(m,p){var f,g;p.type!=="html5video"&&p.type!=="youtube"&&p.type!=="vimeo"||((f=p.contentEl)===null||f===void 0||f.remove(),p.contentEl=void 0,(g=p.htmlEl)===null||g===void 0||g.remove(),p.htmlEl=void 0),p.poller&&clearTimeout(p.poller)}function d(){n=!1}function u(){if(n)return;n=!0;const m=o();(m&&m.autoplay!==void 0?m.autoplay:a().autoplay)&&(function(){var p;const f=o(),g=f==null?void 0:f.el;if(g&&(f==null?void 0:f.type)==="html5video")try{const k=g.querySelector("video");if(k){const E=k.play();E!==void 0&&E.then(()=>{}).catch(C=>{k.muted=!0,k.play()})}}catch{}const y=f==null?void 0:f.htmlEl;y instanceof HTMLIFrameElement&&((p=y.contentWindow)===null||p===void 0||p.postMessage('{"event":"command","func":"stopVideo","args":""}',"*"))}(),function(){const p=o(),f=p==null?void 0:p.type;if(!(p!=null&&p.el)||f!=="youtube"&&f!=="vimeo")return;const g=()=>{if(p.contentEl&&p.contentEl instanceof HTMLIFrameElement&&p.contentEl.contentWindow){let y;if(p.contentEl.dataset.ready==="true")return y=p.type==="youtube"?{event:"command",func:"playVideo"}:{method:"play",value:"true"},y&&p.contentEl.contentWindow.postMessage(JSON.stringify(y),"*"),void(p.poller=void 0);p.type==="youtube"&&(y={event:"listening",id:p.contentEl.getAttribute("id")},p.contentEl.contentWindow.postMessage(JSON.stringify(y),"*"))}p.poller=setTimeout(g,250)};g()}())}function c(m){const p=m==null?void 0:m.htmlEl;if(m&&p&&(m.type==="html5video"||m.type==="youtube"||m.type==="vimeo")){if(p.style.aspectRatio="",p.style.width="",p.style.height="",p.style.maxWidth="",p.style.maxHeight="",m.width){let f=`${m.width}`;f.match(/^\d+$/)&&(f+="px"),p.style.maxWidth=`${f}`}if(m.height){let f=`${m.height}`;f.match(/^\d+$/)&&(f+="px"),p.style.maxHeight=`${f}`}if(m.aspectRatio){const f=m.aspectRatio.split("/"),g=parseFloat(f[0].trim()),y=f[1]?parseFloat(f[1].trim()):0,k=g&&y?g/y:g;p.offsetHeight;const E=p.getBoundingClientRect(),C=k<(E.width||1)/(E.height||1);p.style.aspectRatio=`${m.aspectRatio}`,p.style.width=C?"auto":"",p.style.height=C?"":"auto"}}}function h(){c(o())}return{init:function(m){t=m,t.on("addSlide",i),t.on("attachSlideEl",s),t.on("detachSlideEl",l),t.on("ready",u),t.on("change",d),t.on("settle",u),t.on("refresh",h),window.addEventListener("message",r)},destroy:function(){t==null||t.off("addSlide",i),t==null||t.off("attachSlideEl",s),t==null||t.off("detachSlideEl",l),t==null||t.off("ready",u),t==null||t.off("change",d),t==null||t.off("settle",u),t==null||t.off("refresh",h),window.removeEventListener("message",r),t=void 0}}};/*! License details at fancyapps.com/license */const m1={autoStart:!1,btnTpl:'<button data-fullscreen-action="toggle" class="f-button" title="{{TOGGLE_FULLSCREEN}}"><svg><g><path d="M8 3H5a2 2 0 0 0-2 2v3M21 8V5a2 2 0 0 0-2-2h-3M3 16v3a2 2 0 0 0 2 2h3M16 21h3a2 2 0 0 0 2-2v-3"/></g><g><path d="M15 19v-2a2 2 0 0 1 2-2h2M15 5v2a2 2 0 0 0 2 2h2M5 15h2a2 2 0 0 1 2 2v2M5 9h2a2 2 0 0 0 2-2V5"/></g></svg></button>'},h1="in-fullscreen-mode",W3=()=>{let t;function n(c){const h=t==null?void 0:t.getOptions().Fullscreen;let m=(Ze(h)?Object.assign(Object.assign({},m1),h):m1)[c];return m&&typeof m=="function"&&t?m(t):m}function a(){var c;(c=t==null?void 0:t.getPlugins().Toolbar)===null||c===void 0||c.add("fullscreen",{tpl:n("btnTpl")})}function o(){if(n("autoStart")){const c=i();c&&l(c)}}function r(c,h){const m=h.target;m&&!h.defaultPrevented&&m.dataset.fullscreenAction==="toggle"&&u()}function i(){return n("el")||(t==null?void 0:t.getContainer())||void 0}function s(){const c=document;return c.fullscreenEnabled?!!c.fullscreenElement:!!c.webkitFullscreenEnabled&&!!c.webkitFullscreenElement}function l(c){const h=document;let m;return c||(c=h.documentElement),h.fullscreenEnabled?m=c.requestFullscreen():h.webkitFullscreenEnabled&&(m=c.webkitRequestFullscreen(Element.ALLOW_KEYBOARD_INPUT)),m&&m.then(()=>{c.classList.add(h1)}),m}function d(){const c=document;let h;return c.fullscreenEnabled?h=c.fullscreenElement&&c.exitFullscreen():c.webkitFullscreenEnabled&&(h=c.webkitFullscreenElement&&c.webkitExitFullscreen()),h&&h.then(()=>{var m;(m=i())===null||m===void 0||m.classList.remove(h1)}),h}function u(){if(s())d();else{const c=i();c&&l(c)}}return{init:function(c){t=c,t.on("initPlugins",a),t.on("ready",o),t.on("click",r)},destroy:function(){t==null||t.off("initPlugins",a),t==null||t.off("ready",o),t==null||t.off("click",r)},exit:d,inFullscreen:s,request:l,toggle:u}};/*! License details at fancyapps.com/license */let mt,Qn=!1,p1=!1,yn=!1,ja=!1;const Ga=()=>{const t=new URL(document.URL).hash,n=t.slice(1).split("-"),a=n[n.length-1],o=a&&/^\+?\d+$/.test(a)&&parseInt(n.pop()||"1",10)||1;return{urlHash:t,urlSlug:n.join("-"),urlIndex:o}},Ia=()=>{const t=mt==null?void 0:mt.getInstance();return!(!t||t.getState()!=1)},qa=()=>{if(!mt||Ia())return;const{urlSlug:t,urlIndex:n}=Ga();if(!t)return;let a=document.querySelector(`[data-slug="${t}"]`);a&&mt.fromTriggerEl(a),Ia()||(a=document.querySelectorAll(`[data-fancybox="${t}"]`)[n-1],a&&mt.fromTriggerEl(a,{startIndex:n-1})),a&&Ia()&&a.scrollIntoView({behavior:"instant",block:"center",inline:"center"})},U3=()=>{if(!mt||yn)return;const t=mt==null?void 0:mt.getInstance(),n=t==null?void 0:t.getCarousel();if((t==null?void 0:t.getOptions().Hash)===!1)return;const{urlSlug:a,urlIndex:o}=Ga();if(t&&n){const r=n.getSlides();for(const i of r||[])if(a===i.slug||a===i.fancybox&&i.index===o-1)return void n.goTo(i.index);ja=!0,t.close(),ja=!1}qa()},g1=()=>{mt&&setTimeout(()=>{Qn=!0,qa(),Qn=!1,window.addEventListener("hashchange",U3,!1)},300)},Wa=()=>{let t,n="auto",a="";function o(){var s,l,d,u;if(!t||!t.isTopMost()||t.getOptions().Hash===!1)return;const c=t.getCarousel();if(!c)return;const{urlHash:h,urlSlug:m}=Ga(),p=t.getSlide();if(!p)return;let f=p.slug||p.fancybox||"",g=parseInt(p.index+"",10)+1;if(!f)return;let y=p.slug?`#${p.slug}`:`#${f}-${g}`;if((((l=(s=t.getCarousel())===null||s===void 0?void 0:s.getPages())===null||l===void 0?void 0:l.length)||0)<2&&(y=`#${f}`),h!==y&&(a=h),history.scrollRestoration&&(n=history.scrollRestoration,history.scrollRestoration="manual"),c.on("change",r),Qn)return void((d=t.getOptions().sync)===null||d===void 0||d.goTo(((u=t.getCarousel())===null||u===void 0?void 0:u.getPageIndex())||0,{transition:!1}));const k=f!==m;try{window.history[k?"pushState":"replaceState"]({},document.title,window.location.pathname+window.location.search+y)}catch{}k&&(p1=!0)}function r(){if(!t||!t.isTopMost()||t.getOptions().Hash===!1)return;const s=t.getSlide();if(!s)return;let l=s.slug||s.fancybox||"",d=s.index+1,u=s.slug?`#${s.slug}`:`#${l}-${d}`;yn=!0;try{window.history.replaceState({},document.title,window.location.pathname+window.location.search+u)}catch{}yn=!1}function i(){if(ja||!t||!t.isTopMost()||t.getOptions().Hash===!1)return;const s=t.getSlide();if(s&&s.fancybox){yn=!0;try{!p1||Qn||function(){if(window.parent===window)return!1;try{var l=window.frameElement}catch{l=null}return l===null?location.protocol==="data:":l.hasAttribute("sandbox")}()?window.history.replaceState({},document.title,window.location.pathname+window.location.search+a):window.history.back()}catch{}yn=!1}}return{init:function(s){t=s,t.on("ready",o),t.on("close",i)},destroy:function(){t==null||t.off("ready",o),t==null||t.off("close",i);const s=t==null?void 0:t.getCarousel();s&&s.off("change",r),t=void 0,history.scrollRestoration&&n&&(history.scrollRestoration=n)}}};Wa.startFromUrl=qa,Wa.setup=function(t){mt||(mt=t,Xn()&&(/complete|interactive|loaded/.test(document.readyState)?g1():document.addEventListener("DOMContentLoaded",g1)))};/*! License details at fancyapps.com/license */const Z3=Object.assign(Object.assign({},_a),{CLOSE:"Close",NEXT:"Next",PREV:"Previous",MODAL:"You can close this modal content with the ESC key",ELEMENT_NOT_FOUND:"HTML Element Not Found",IFRAME_ERROR:"Error Loading Page"});/*! License details at fancyapps.com/license */const y1='<button class="f-button" title="{{CLOSE}}" data-fancybox-close><svg tabindex="-1" width="24" height="24" viewBox="0 0 24 24"><path d="M19.286 4.714 4.714 19.286M4.714 4.714l14.572 14.572" /></svg></button>';l1().add("close",{tpl:y1});const xt=t=>{t.cancelable&&t.preventDefault()},k1=(t=null,n="",a)=>{if(!t||!t.parentElement||!n)return void(a&&a());x1(t);const o=r=>{r.target===t&&t.dataset.animationName&&(t.removeEventListener("animationend",o),delete t.dataset.animationName,a&&a(),t.classList.remove(n))};t.dataset.animationName=n,t.addEventListener("animationend",o),Ee(t,n)},x1=t=>{t&&t.dispatchEvent(new CustomEvent("animationend",{bubbles:!1,cancelable:!0,currentTarget:t}))};var Ie;(function(t){t[t.Init=0]="Init",t[t.Ready=1]="Ready",t[t.Closing=2]="Closing",t[t.Destroyed=3]="Destroyed"})(Ie||(Ie={}));const kn={ajax:null,backdropClick:"close",Carousel:{},closeButton:"auto",closeExisting:!1,delegateEl:void 0,dragToClose:!0,fadeEffect:!0,groupAll:!1,groupAttr:"data-fancybox",hideClass:"f-fadeOut",hideScrollbar:!0,id:void 0,idle:!1,keyboard:{Escape:"close",Delete:"close",Backspace:"close",PageUp:"next",PageDown:"prev",ArrowUp:"prev",ArrowDown:"next",ArrowRight:"next",ArrowLeft:"prev"},l10n:Z3,mainClass:"",mainStyle:{},mainTpl:`<dialog class="fancybox__dialog">
|
|
11
11
|
<div class="fancybox__container" tabindex="0" aria-label="{{MODAL}}">
|
|
12
12
|
<div class="fancybox__backdrop"></div>
|
|
13
13
|
<div class="fancybox__carousel"></div>
|
|
14
14
|
</div>
|
|
15
|
-
</dialog>`,on:{},parentEl:void 0,placeFocusBack:!0,showClass:"f-zoomInUp",startIndex:0,sync:void 0,theme:"dark",triggerEl:void 0,triggerEvent:void 0,zoomEffect:!0},ft=new Map;let S3=0;const a1="with-fancybox",B3=()=>{let t,n,a,o,r,i=ze.Init,s=Object.assign({},on),l=-1,d={},f=[],u=!1,h=!0;function m(G,...ne){let J=s[G];return J&&typeof J=="function"?J(Ve,...ne):J}function p(G,ne=[]){const J=m("l10n")||{};G=String(G).replace(/\{\{(\w+)\}\}/g,(V,$)=>J[$]||V);for(let V=0;V<ne.length;V++)G=G.split(ne[V][0]).join(ne[V][1]);return G=G.replace(/\{\{(.*?)\}\}/g,(V,$)=>$)}const c=new Map;function g(G,...ne){const J=c.get(G)||[];for(const[V,$]of Object.entries(s.on||{}))(V===G||V.split(" ").indexOf(G)>-1)&&J.push($);for(const V of J)V&&typeof V=="function"&&V(Ve,...ne);G!=="*"&&g("*",G,...ne)}function y(G=[],ne={}){i!==ze.Init&&(Ve.destroy(),i=ze.Init),s=ot({},on,ne),l=m("id")||"fancybox-"+ ++S3;const J=ft.get(l);if(J&&J.destroy(),ft.set(l,Ve),g("init"),function(){for(const[V,$]of Object.entries(Object.assign(Object.assign({},_e.Plugins),s.plugins||{})))if(V&&!d[V]&&$ instanceof Function){const q=$();q.init(Ve),d[V]=q}g("initPlugins")}(),function(V=[]){g("initSlides",V),f=[...V]}(G),function(){const V=m("parentEl")||document.body;if(!(V&&V instanceof HTMLElement))return;const $=p(m("mainTpl")||"");if(t=kt($)||void 0,!(t&&t instanceof HTMLDialogElement)||(n=t.querySelector(".fancybox__container"),!(n&&n instanceof HTMLElement)))return;const q=m("mainClass");q&&De(n,q);const z=m("mainStyle");if(z&&Ze(z))for(const[ee,de]of Object.entries(z))n.style.setProperty(ee,de);const X=m("theme"),U=X==="auto"?window.matchMedia("(prefers-color-scheme:light)").matches:X==="light";n.setAttribute("theme",U?"light":"dark"),t.setAttribute("id",`${l}`),t.addEventListener("keydown",ee=>{ee.key==="Escape"&&ee.preventDefault()}),t.addEventListener("cancel",ee=>{Se(ee)}),V.append(t),ft.size===1&&(m("hideScrollbar")&&Dr(!0),document.documentElement.classList.add(a1)),t.showModal(),g("initLayout")}(),function(){if(a=(t==null?void 0:t.querySelector(".fancybox__carousel"))||void 0,!a)return;const V=ot({Autoplay:{autoStart:!1,pauseOnHover:!1,progressbarParentEl:$=>{const q=$.getContainer();return(q==null?void 0:q.querySelector(".f-carousel__toolbar [data-autoplay-action]"))||q}},Fullscreen:{el:n},Toolbar:{absolute:!0,display:{left:["counter"],right:["toggleFull","autoplay","fullscreen","thumbs","close"]}},Video:{autoplay:!0},Zoomable:{Panzoom:{event:m("triggerEvent")}},classes:{container:"fancybox__carousel",viewport:"fancybox__viewport",slide:"fancybox__slide"},spinnerTpl:'<div class="f-spinner" data-fancybox-close></div>',dragFree:!1,slidesPerPage:1,plugins:{Sync:_r,Arrows:y3,Lazyload:Rr,Zoomable:g3,Html:b3,Video:w3,Autoplay:k3,Fullscreen:E3,Thumbs:x3,Toolbar:Ir}},m("Carousel")||{},{slides:f,enabled:!0,initialPage:m("startIndex")||0,l10n:m("l10n")});o=_n(a,V),g("initCarousel",o),o.on("*",($,q,...z)=>{g(`Carousel.${q}`,$,...z)}),o==null||o.on("addSlide",v),o.on("attachSlideEl",D),o.on("detachSlideEl",_),o.on("contentReady",A),o.on("ready",N),o.on("change",k),o.on("settle",S),o.init()}(),t&&n){if(m("closeExisting"))for(const[V,$]of ft.entries())V!==l&&$.close();m("fadeEffect")?(setTimeout(()=>{b()},500),De(n,"is-revealing")):b(),n.classList.add("is-ready"),i=ze.Ready,g("ready")}}function b(){mt(n,"is-revealing");try{document.activeElement===t&&((n==null?void 0:n.querySelector("[autofocus]"))||n).focus()}catch{}}function w(G){if(!ie())return;if(i!==ze.Ready)return G.preventDefault(),void G.stopPropagation();if(G.defaultPrevented||!nn.isClickAllowed())return;const ne=G.composedPath()[0];ne.closest(".fancybox__carousel")&&ne.classList.contains("fancybox__slide")&&E(G)}function E(G){if(G.composedPath()[0].closest("[data-fancybox-close]"))return void Se(G);g("backdropClick",G),!G.defaultPrevented&&m("backdropClick")&&Se(G)}function x(G){if(!ie()||i!==ze.Ready||(se(),G.defaultPrevented))return;const ne=G.composedPath()[0],J=!!ne.closest("[data-fancybox-close]"),V=ne.classList.contains("fancybox__backdrop");(J||V)&&E(G)}function v(G,ne){var J;(J=ne.el)===null||J===void 0||J.addEventListener("click",w)}function D(G,ne){C(ne),ne.type!=="inline"&&ne.type!=="clone"||function(J){if(!o||!J||!J.el)return;let V=null;if(je(J.src)){const $=J.src.split("#",2).pop();V=$?document.getElementById($):null}if(V){if(De(V,"f-html"),J.type==="clone"||V.closest(".fancybox__carousel")){V=V.cloneNode(!0);const $=V.dataset.animationName;$&&(V.classList.remove($),delete V.dataset.animationName);let q=V.getAttribute("id");q=q?`${q}--clone`:`clone-${l}-${J.index}`,V.setAttribute("id",q)}else if(V.parentNode){const $=document.createElement("div");$.inert=!0,V.parentNode.insertBefore($,V),J.placeholderEl=$}J.htmlEl=V,De(J.el,"has-html"),J.el.prepend(V),V.classList.remove("hidden"),V.style.display==="none"&&(V.style.display=""),getComputedStyle(V).getPropertyValue("display")==="none"&&(V.style.display=V.dataset.display||"flex"),o==null||o.emit("contentReady",J)}else o==null||o.showError(J,"{{ELEMENT_NOT_FOUND}}")}(ne),ne.type==="ajax"&&function(J){const V=J.el;if(!V||J.htmlEl||J.xhr)return;o==null||o.showLoading(J),J.state=0;const $=new XMLHttpRequest;$.onreadystatechange=function(){if($.readyState===XMLHttpRequest.DONE&&i===ze.Ready)if(o==null||o.hideLoading(J),J.state=1,$.status===200){let z=$.responseText+"",X=null,U=null;if(J.filter){const ee=document.createElement("div");ee.innerHTML=z,U=ee.querySelector(J.filter+"")}U&&U instanceof HTMLElement?X=U:(X=document.createElement("div"),X.innerHTML=z),X.classList.add("f-html"),J.htmlEl=X,V.classList.add("has-html"),V.classList.add("has-ajax"),V.prepend(X),o==null||o.emit("contentReady",J)}else o==null||o.showError(J)};const q=m("ajax")||null;$.open(q?"POST":"GET",J.src+""),$.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),$.setRequestHeader("X-Requested-With","XMLHttpRequest"),$.send(q),J.xhr=$}(ne)}function _(G,ne){(function(J){J.closeButtonEl&&(J.closeButtonEl.remove(),J.closeButtonEl=void 0)})(ne),ne.type!=="inline"&&ne.type!=="clone"||function(J){const V=J.htmlEl,$=J.placeholderEl;V&&(getComputedStyle(V).getPropertyValue("display")!=="none"&&(V.style.display="none"),V.offsetHeight),$&&(V&&$.parentNode&&$.parentNode.insertBefore(V,$),$.remove()),J.htmlEl=void 0,J.placeholderEl=void 0}(ne),ne.xhr&&(ne.xhr.abort(),ne.xhr=void 0)}function C(G){var ne;const{el:J,htmlEl:V,closeButtonEl:$}=G;if(!J||!V||$)return;let q=m("closeButton");if(q==="auto"&&(q=((ne=o==null?void 0:o.getPlugins().Toolbar)===null||ne===void 0?void 0:ne.isEnabled())!==!0),q){const z=kt(p(e1));z&&(G.closeButtonEl=V.insertAdjacentElement("afterbegin",z),J.classList.add("has-close-btn"))}}function k(){h=!1,n&&o&&n.classList.remove("is-revealing");const G=m("sync");if(o&&G){const ne=G.getPageIndex(o.getPageIndex())||0;G.goTo(ne,{transition:!1})}}function N(){var G;if(i!==ze.Ready)return;B(Q()),function(){if(!m("dragToClose")||!o||!o.getViewport())return;const J=o.getGestures();if(!J)return;let V=0,$=0,q=bt().on("step",z=>{V=z.y;const X=o==null?void 0:o.getViewport();if(n&&X){const U=Va(Math.abs(V),0,.5*X.getBoundingClientRect().height,1,.5);n.style.setProperty("--f-drag-opacity",U+""),n.style.setProperty("--f-drag-offset",V+"px")}}).on("end",()=>{if(!V){n&&n.style.removeProperty("--f-opacity");const z=o==null?void 0:o.getViewport();z&&(z.style.transform="")}});J.on("start",function(){q.pause()}).on("panstart",z=>{var X;const U=z.srcEvent.target;U&&!en(U)&&((X=o==null?void 0:o.getViewport())===null||X===void 0||X.classList.add("is-dragging"))}).on("pan",function(z){const X=z.srcEvent.target;X&&en(X)||o!=null&&o.getViewport()&&z.axis==="y"&&($+=z.deltaY,q.spring({clamp:!0,mass:1,tension:860,friction:17,restDelta:.01,restSpeed:.01}).from({y:V}).to({y:$}).start())}).on("end",function(z){q.pause(),z.axis==="y"&&Math.abs(z.velocityY)>5&&Math.abs($)>0?Se(z.srcEvent,"f-throwOut"+(z.velocityY>0?"Down":"Up")):$!==0&&($=0,q.spring({clamp:!0,mass:1,tension:140,friction:25,restDelta:.1,restSpeed:.1,maxSpeed:1/0}).from({y:V}).to({y:$}).start())})}(),document.body.addEventListener("click",x),document.body.addEventListener("keydown",H,{passive:!1,capture:!0}),j();const ne=m("sync");ne&&((G=ne.getTween())===null||G===void 0||G.start())}function S(){o!=null&&o.canGoNext()?j():be()}function B(G){if(!(h&&o&&o.getState()===1&&G&&G.index===o.getOptions().initialPage&&G.el&&G.el.parentElement)||G.state!==void 0&&G.state!==1)return;h=!1;const ne=G.panzoomRef,J=ne==null?void 0:ne.getTween(),V=m("zoomEffect")?F(G):void 0;if(ne&&J&&V){const q=ne.getScale("base")||1,{x:z,y:X}=ne.getMousemovePos(q)||{x:0,y:0};return void J.spring({tension:225,friction:25,restDelta:.001,restSpeed:.001,maxSpeed:1/0}).from(V).to({x:z,y:X,scale:q}).start()}const $=(ne==null?void 0:ne.getWrapper())||G.htmlEl;$&&n1($,m("showClass",G))}function A(G,ne){C(ne),B(ne)}function M(){se()}function H(G){if(!ie()||i!==ze.Ready)return;const ne=G.key,J=m("keyboard");if(!J||G.ctrlKey||G.altKey||G.shiftKey)return;const V=G.composedPath()[0];if(!jt(V)||ne!=="Escape"&&(q=>{const z=["input","textarea","select","option","video","iframe","[contenteditable]","[data-selectable]","[data-draggable]"].join(",");return q.matches(z)||q.closest(z)})(V)||(g("keydown",G),G.defaultPrevented))return;const $=J[ne];if($)switch($){case"close":Se(G);break;case"next":G.preventDefault(),o==null||o.next();break;case"prev":G.preventDefault(),o==null||o.prev()}}function ie(){var G;return((G=_e.getInstance())===null||G===void 0?void 0:G.getId())===l}function Q(){var G;return(G=o==null?void 0:o.getPage())===null||G===void 0?void 0:G.slides[0]}function fe(){const G=Q();return G?G.triggerEl||m("triggerEl"):void 0}function F(G){var ne,J;const V=(J=(ne=G.panzoomRef)===null||ne===void 0?void 0:ne.getWrapper())===null||J===void 0?void 0:J.getBoundingClientRect(),$=V==null?void 0:V.width,q=V==null?void 0:V.height;if(!$||!q)return;const z=G.thumbEl;if(!z)return;const X=z.getBoundingClientRect();let U=X.width,ee=X.height,de=X.left,we=X.top;if(!(!X||!U||!ee)&&(ke=>{const pe=ke.getBoundingClientRect(),ge=ke.closest("[style]"),O=ge==null?void 0:ge.parentElement;if(ge&&ge.style.transform&&O){const ce=O.getBoundingClientRect();if(pe.left<ce.left||pe.left>ce.left+ce.width-pe.width||pe.top<ce.top||pe.top>ce.top+ce.height-pe.height)return!1}const K=Math.max(document.documentElement.clientHeight,window.innerHeight),ae=Math.max(document.documentElement.clientWidth,window.innerWidth);return!(pe.bottom<0||pe.top-K>=0||pe.right<0||pe.left-ae>=0)})(z)){if(z instanceof HTMLImageElement){const ke=window.getComputedStyle(z).getPropertyValue("object-fit");if(ke==="contain"||ke==="scale-down"){const{width:pe,height:ge}=((O,K,ae,ce,Ee="contain")=>{if(Ee==="contain"||O>ae||K>ce){const ye=ae/O,T=ce/K,P=Math.min(ye,T);O*=P,K*=P}return{width:O,height:K}})(z.naturalWidth,z.naturalHeight,U,ee,ke);de+=.5*(U-pe),we+=.5*(ee-ge),U=pe,ee=ge}}if(!(Math.abs($/q-U/ee)>.1))return{x:de+.5*U-(V.left+.5*$),y:we+.5*ee-(V.top+.5*q),scale:U/$}}}function L(){r&&clearTimeout(r),r=void 0,document.removeEventListener("mousemove",M)}function j(){if(u||r)return;const G=m("idle");G&&(r=setTimeout(re,G))}function re(){n&&(L(),De(n,"is-idle"),document.addEventListener("mousemove",M),u=!0)}function se(){u&&(be(),j())}function be(){L(),n==null||n.classList.remove("is-idle"),u=!1}function Se(G,ne){var J,V,$,q,z,X;if(i===ze.Closing||i===ze.Destroyed)return;if(i=ze.Closing,L(),G){if(G.defaultPrevented)return;G.cancelable&&G.preventDefault(),G.stopPropagation(),G.stopImmediatePropagation()}if(o){(J=o.getGestures())===null||J===void 0||J.destroy(),(V=o.getTween())===null||V===void 0||V.pause();const ee=Q(),de=ee==null?void 0:ee.panzoomRef;ee&&de&&ot(de.getOptions(),{clickAction:!1,wheelAction:!1,bounds:!1,minScale:0,maxScale:1/0});for(const we of o.getSlides())(q=($=we.panzoomRef)===null||$===void 0?void 0:$.getGestures())===null||q===void 0||q.destroy(),(X=(z=we.panzoomRef)===null||z===void 0?void 0:z.getTween())===null||X===void 0||X.pause()}const U=o==null?void 0:o.getPlugins().fullscreen;U&&U.inFullscreen()?Promise.resolve(U.exit()).then(()=>{setTimeout(()=>{Fe(G,ne)},150)}):Fe(G,ne)}function Fe(G,ne){var J,V,$,q,z;if(i!==ze.Closing)return;if(g("close",G),m("placeFocusBack")){const ge=fe();!ge||(z=ge.getBoundingClientRect()).bottom>0&&z.right>0&&z.left<(window.innerWidth||document.documentElement.clientWidth)&&z.top<(window.innerHeight||document.documentElement.clientHeight)||ge.scrollIntoView({behavior:"instant",block:"center",inline:"center"})}m("fadeEffect")&&(n==null||n.classList.remove("is-ready"),n==null||n.classList.add("is-hiding")),n==null||n.classList.add("is-closing");const X=Q(),U=X==null?void 0:X.panzoomRef,ee=(J=X==null?void 0:X.panzoomRef)===null||J===void 0?void 0:J.getTween(),de=ne||m("hideClass");let we=!1,ke=!1;if(o&&X&&U&&ee){let ge;m("zoomEffect")&&((($=(V=o.getTween())===null||V===void 0?void 0:V.getCurrentVelocities())===null||$===void 0?void 0:$.pos)||0)<700&&X.state===1&&(ge=F(X)),ge&&(we=!0,o.on("refresh",()=>{const O=F(X);O&&ee.to(Object.assign(Object.assign({},at),O))}),ee.easing(bt.Easings.EaseOut).duration(350).from(Object.assign({},U.getTransform())).to(Object.assign(Object.assign({},at),ge)).start())}const pe=(X==null?void 0:X.htmlEl)||((q=X==null?void 0:X.panzoomRef)===null||q===void 0?void 0:q.getWrapper());pe&&t1(pe),!we&&de&&pe&&(ke=!0,n1(pe,de,()=>{$e()})),we||ke?setTimeout(()=>{$e()},350):$e()}function $e(){var G,ne,J,V,$;if(i===ze.Destroyed)return;i=ze.Destroyed,document.body.removeEventListener("click",x),document.body.removeEventListener("keydown",H,{passive:!1,capture:!0});const q=fe();g("destroy"),(ne=(G=m("sync"))===null||G===void 0?void 0:G.getPlugins().Autoplay)===null||ne===void 0||ne.resume(),(V=(J=m("sync"))===null||J===void 0?void 0:J.getPlugins().Autoscroll)===null||V===void 0||V.resume(),t instanceof HTMLDialogElement&&t.close(),($=o==null?void 0:o.getContainer())===null||$===void 0||$.classList.remove("is-idle"),o==null||o.destroy();for(const z of Object.values(d))z==null||z.destroy();if(d={},t==null||t.remove(),t=void 0,n=void 0,o=void 0,ft.delete(l),!ft.size&&(Dr(!1),document.documentElement.classList.remove(a1),m("placeFocusBack")))try{q==null||q.focus({preventScroll:!0})}catch{}}const Ve={close:Se,destroy:$e,getCarousel:function(){return o},getContainer:function(){return n},getId:function(){return l},getOptions:function(){return s},getPlugins:function(){return d},getSlide:function(){return Q()},getState:function(){return i},init:function(G=[],ne={}){return y(G,ne),Ve},isCurrentSlide:function(G){const ne=Q();return!(!G||!ne)&&ne.index===G.index},isTopMost:function(){return ie()},off:function(G,ne){return c.has(G)&&c.set(G,c.get(G).filter(J=>J!==ne)),Ve},on:function(G,ne){return c.set(G,[...c.get(G)||[],ne]),Ve},toggleIdle(G){(u||G===!0)&&re(),u&&G!==!1||be()}};return Ve},_e={Plugins:{Hash:La},version:"6.0.16",openers:new Map,bind:function(t,n,a){if(!Lr())return;let o=document.body,r="[data-fancybox]",i={};if(je(t)?(o=document.body,r=t,typeof n=="object"&&(i=n||{})):t instanceof Element&&(o=t,je(n)&&(r=n),typeof a=="object"&&(i=a||{})),!(o&&o instanceof Element&&r))return!1;const s=_e.openers.get(o)||new Map;if(s.set(r,i),_e.openers.set(o,s),s.size===1){o.addEventListener("click",_e.fromEvent);for(const l of Object.values(_e.Plugins)){const d=l.setup;typeof d=="function"&&d(_e)}}return!0},close:function(t=!0,...n){if(t)for(const a of ft.values())a.close(...n);else{const a=_e.getInstance();a&&a.close(...n)}},destroy:function(){let t;for(;t=_e.getInstance();)t.destroy();for(const n of _e.openers.keys())n.removeEventListener("click",_e.fromEvent);_e.openers.clear()},fromEvent:function(t){var n,a,o;if(t.defaultPrevented||t.button&&t.button!==0||t.ctrlKey||t.metaKey||t.shiftKey)return;let r=t.composedPath()[0];if(r.closest(".fancybox__container.is-hiding"))return t.preventDefault(),void t.stopPropagation();const i=r.closest("[data-fancybox-delegate]")||void 0;if(i){const y=i.dataset.fancyboxDelegate||"",b=document.querySelectorAll(`[data-fancybox="${y}"]`);r=b[parseInt(i.dataset.fancyboxIndex||"",10)||0]||b[0]}if(!(r&&r instanceof Element))return;let s,l,d;for(const y of Array.from(_e.openers.keys()).reverse()){const b=_e.openers.get(y);if(b&&y.contains(r))for(const w of Array.from(b.keys()).reverse()){let E=null;try{E=r.closest(w)}catch{}if(E){r=E,s=y,l=w,d=b.get(w);break}}}if(!(s&&l&&d))return;t.preventDefault();const f=ot({},on,{triggerEvent:t,triggerEl:r,delegateEl:i},d),u=f.groupAll,h=f.groupAttr,m=h&&r?r.getAttribute(`${h}`):"";let p=[];const c=(n=r.closest(".f-carousel"))===null||n===void 0?void 0:n.carousel;if(c){const y=[];for(const b of c==null?void 0:c.getSlides()){const w=b.el;w&&(w.matches(l)?y.push(w):y.push(...[].slice.call(w.querySelectorAll(l))))}y.length&&(p=[...y],(a=c.getPlugins().Autoplay)===null||a===void 0||a.pause(),(o=c.getPlugins().Autoscroll)===null||o===void 0||o.pause(),f.sync=c)}else(!r||m||u)&&(p=[].slice.call(s.querySelectorAll(l)));if(r&&!u&&(p=m?p.filter(y=>y.getAttribute(`${h}`)===m):[r]),!p.length)return;const g=_e.getInstance();if(g){const y=g.getOptions().triggerEl;if(y&&p.indexOf(y)>-1)return}return Object.assign({},f.Carousel||{}).rtl&&(p=p.reverse()),r&&(f.startIndex=p.indexOf(r)),_e.fromNodes(p,f)},fromNodes:function(t,n){n=ot({},on,n||{});const a=[],o=r=>r instanceof HTMLImageElement?r:r instanceof HTMLElement?r.querySelector("img:not([aria-hidden])"):void 0;for(const r of t){const i=r.dataset||{},s=n.delegateEl&&t.indexOf(r)===n.startIndex?n.delegateEl:void 0,l=o(s)||o(r)||void 0,d=i.src||r.getAttribute("href")||r.getAttribute("currentSrc")||r.getAttribute("src")||void 0,f=i.thumb||i.thumbSrc||(l==null?void 0:l.getAttribute("currentSrc"))||(l==null?void 0:l.getAttribute("src"))||(l==null?void 0:l.dataset.lazySrc)||void 0,u={src:d,alt:i.alt||(l==null?void 0:l.getAttribute("alt"))||void 0,thumbSrc:f,thumbEl:l,triggerEl:r,delegateEl:s};for(const h in i){let m=i[h]+"";m=m!=="false"&&(m==="true"||m),u[h]=m}a.push(u)}return _e.show(a,n)},fromSelector:function(t,n,a){let o=document.body,r="",i={};if(je(t)?r=t:t instanceof Element&&(o=t,je(n)&&(r=n),typeof a=="object"&&(i=a||{})),!(o&&o instanceof Element&&r))return;const s=_e.openers.get(o);return s?(i=ot({},s.get(r)||{},i),i?_e.fromNodes(Array.from(o.querySelectorAll(r)),i):void 0):void 0},getCarousel:function(){var t;return((t=_e.getInstance())===null||t===void 0?void 0:t.getCarousel())||void 0},getDefaults:function(){return on},getInstance:function(t){if(t){const n=ft.get(t);return n&&n.getState()!==ze.Destroyed?n:void 0}return Array.from(ft.values()).reverse().find(n=>{if(n.getState()!==ze.Destroyed)return n})||void 0},getSlide:function(){var t;return((t=_e.getInstance())===null||t===void 0?void 0:t.getSlide())||void 0},show:function(t=[],n={}){return B3().init(t,n)},unbind:function(t,n){let a=document.body,o="";if(je(t)?o=t:t instanceof Element&&(a=t,je(n)&&(o=n)),a){const r=_e.openers.get(a);r&&o&&r.delete(o),r!=null&&r.size&&o||_e.openers.delete(a),a.removeEventListener("click",_e.fromEvent)}}};function Ie(t,n,a,o){return new(a||(a=Promise))(function(r,i){function s(f){try{d(o.next(f))}catch(u){i(u)}}function l(f){try{d(o.throw(f))}catch(u){i(u)}}function d(f){var u;f.done?r(f.value):(u=f.value,u instanceof a?u:new a(function(h){h(u)})).then(s,l)}d((o=o.apply(t,n||[])).next())})}typeof SuppressedError=="function"&&SuppressedError;class rn{constructor(){this.listeners={}}on(n,a,o){if(this.listeners[n]||(this.listeners[n]=new Set),this.listeners[n].add(a),o==null?void 0:o.once){const r=()=>{this.un(n,r),this.un(n,a)};return this.on(n,r),r}return()=>this.un(n,a)}un(n,a){var o;(o=this.listeners[n])===null||o===void 0||o.delete(a)}once(n,a){return this.on(n,a,{once:!0})}unAll(){this.listeners={}}emit(n,...a){this.listeners[n]&&this.listeners[n].forEach(o=>o(...a))}}const Hn={decode:function(t,n){return Ie(this,void 0,void 0,function*(){const a=new AudioContext({sampleRate:n});return a.decodeAudioData(t).finally(()=>a.close())})},createBuffer:function(t,n){return typeof t[0]=="number"&&(t=[t]),function(a){const o=a[0];if(o.some(r=>r>1||r<-1)){const r=o.length;let i=0;for(let s=0;s<r;s++){const l=Math.abs(o[s]);l>i&&(i=l)}for(const s of a)for(let l=0;l<r;l++)s[l]/=i}}(t),{duration:n,length:t[0].length,sampleRate:t[0].length/n,numberOfChannels:t.length,getChannelData:a=>t==null?void 0:t[a],copyFromChannel:AudioBuffer.prototype.copyFromChannel,copyToChannel:AudioBuffer.prototype.copyToChannel}}};function o1(t,n){const a=n.xmlns?document.createElementNS(n.xmlns,t):document.createElement(t);for(const[o,r]of Object.entries(n))if(o==="children"&&r)for(const[i,s]of Object.entries(r))s instanceof Node?a.appendChild(s):typeof s=="string"?a.appendChild(document.createTextNode(s)):a.appendChild(o1(i,s));else o==="style"?Object.assign(a.style,r):o==="textContent"?a.textContent=r:a.setAttribute(o,r.toString());return a}function r1(t,n,a){const o=o1(t,n||{});return a==null||a.appendChild(o),o}var V3=Object.freeze({__proto__:null,createElement:r1,default:r1});const M3={fetchBlob:function(t,n,a){return Ie(this,void 0,void 0,function*(){const o=yield fetch(t,a);if(o.status>=400)throw new Error(`Failed to fetch ${t}: ${o.status} (${o.statusText})`);return function(r,i){Ie(this,void 0,void 0,function*(){if(!r.body||!r.headers)return;const s=r.body.getReader(),l=Number(r.headers.get("Content-Length"))||0;let d=0;const f=h=>Ie(this,void 0,void 0,function*(){d+=(h==null?void 0:h.length)||0;const m=Math.round(d/l*100);i(m)}),u=()=>Ie(this,void 0,void 0,function*(){let h;try{h=yield s.read()}catch{return}h.done||(f(h.value),yield u())});u()})}(o.clone(),n),o.blob()})}};class N3 extends rn{constructor(n){super(),this.isExternalMedia=!1,n.media?(this.media=n.media,this.isExternalMedia=!0):this.media=document.createElement("audio"),n.mediaControls&&(this.media.controls=!0),n.autoplay&&(this.media.autoplay=!0),n.playbackRate!=null&&this.onMediaEvent("canplay",()=>{n.playbackRate!=null&&(this.media.playbackRate=n.playbackRate)},{once:!0})}onMediaEvent(n,a,o){return this.media.addEventListener(n,a,o),()=>this.media.removeEventListener(n,a,o)}getSrc(){return this.media.currentSrc||this.media.src||""}revokeSrc(){const n=this.getSrc();n.startsWith("blob:")&&URL.revokeObjectURL(n)}canPlayType(n){return this.media.canPlayType(n)!==""}setSrc(n,a){const o=this.getSrc();if(n&&o===n)return;this.revokeSrc();const r=a instanceof Blob&&(this.canPlayType(a.type)||!n)?URL.createObjectURL(a):n;if(o&&this.media.removeAttribute("src"),r||n)try{this.media.src=r}catch{this.media.src=n}}destroy(){this.isExternalMedia||(this.media.pause(),this.media.remove(),this.revokeSrc(),this.media.removeAttribute("src"),this.media.load())}setMediaElement(n){this.media=n}play(){return Ie(this,void 0,void 0,function*(){try{return yield this.media.play()}catch(n){if(n instanceof DOMException&&n.name==="AbortError")return;throw n}})}pause(){this.media.pause()}isPlaying(){return!this.media.paused&&!this.media.ended}setTime(n){this.media.currentTime=Math.max(0,Math.min(n,this.getDuration()))}getDuration(){return this.media.duration}getCurrentTime(){return this.media.currentTime}getVolume(){return this.media.volume}setVolume(n){this.media.volume=n}getMuted(){return this.media.muted}setMuted(n){this.media.muted=n}getPlaybackRate(){return this.media.playbackRate}isSeeking(){return this.media.seeking}setPlaybackRate(n,a){a!=null&&(this.media.preservesPitch=a),this.media.playbackRate=n}getMediaElement(){return this.media}setSinkId(n){return this.media.setSinkId(n)}}let Fa=class to extends rn{constructor(n,a){super(),this.timeouts=[],this.isScrollable=!1,this.audioData=null,this.resizeObserver=null,this.lastContainerWidth=0,this.isDragging=!1,this.subscriptions=[],this.unsubscribeOnScroll=[],this.subscriptions=[],this.options=n;const o=this.parentFromOptionsContainer(n.container);this.parent=o;const[r,i]=this.initHtml();o.appendChild(r),this.container=r,this.scrollContainer=i.querySelector(".scroll"),this.wrapper=i.querySelector(".wrapper"),this.canvasWrapper=i.querySelector(".canvases"),this.progressWrapper=i.querySelector(".progress"),this.cursor=i.querySelector(".cursor"),a&&i.appendChild(a),this.initEvents()}parentFromOptionsContainer(n){let a;if(typeof n=="string"?a=document.querySelector(n):n instanceof HTMLElement&&(a=n),!a)throw new Error("Container not found");return a}initEvents(){const n=a=>{const o=this.wrapper.getBoundingClientRect(),r=a.clientX-o.left,i=a.clientY-o.top;return[r/o.width,i/o.height]};if(this.wrapper.addEventListener("click",a=>{const[o,r]=n(a);this.emit("click",o,r)}),this.wrapper.addEventListener("dblclick",a=>{const[o,r]=n(a);this.emit("dblclick",o,r)}),this.options.dragToSeek!==!0&&typeof this.options.dragToSeek!="object"||this.initDrag(),this.scrollContainer.addEventListener("scroll",()=>{const{scrollLeft:a,scrollWidth:o,clientWidth:r}=this.scrollContainer,i=a/o,s=(a+r)/o;this.emit("scroll",i,s,a,a+r)}),typeof ResizeObserver=="function"){const a=this.createDelay(100);this.resizeObserver=new ResizeObserver(()=>{a().then(()=>this.onContainerResize()).catch(()=>{})}),this.resizeObserver.observe(this.scrollContainer)}}onContainerResize(){const n=this.parent.clientWidth;n===this.lastContainerWidth&&this.options.height!=="auto"||(this.lastContainerWidth=n,this.reRender())}initDrag(){this.subscriptions.push(function(n,a,o,r,i=3,s=0,l=100){if(!n)return()=>{};const d=matchMedia("(pointer: coarse)").matches;let f=()=>{};const u=h=>{if(h.button!==s)return;h.preventDefault(),h.stopPropagation();let m=h.clientX,p=h.clientY,c=!1;const g=Date.now(),y=v=>{if(v.preventDefault(),v.stopPropagation(),d&&Date.now()-g<l)return;const D=v.clientX,_=v.clientY,C=D-m,k=_-p;if(c||Math.abs(C)>i||Math.abs(k)>i){const N=n.getBoundingClientRect(),{left:S,top:B}=N;c||(o==null||o(m-S,p-B),c=!0),a(C,k,D-S,_-B),m=D,p=_}},b=v=>{if(c){const D=v.clientX,_=v.clientY,C=n.getBoundingClientRect(),{left:k,top:N}=C;r==null||r(D-k,_-N)}f()},w=v=>{v.relatedTarget&&v.relatedTarget!==document.documentElement||b(v)},E=v=>{c&&(v.stopPropagation(),v.preventDefault())},x=v=>{c&&v.preventDefault()};document.addEventListener("pointermove",y),document.addEventListener("pointerup",b),document.addEventListener("pointerout",w),document.addEventListener("pointercancel",w),document.addEventListener("touchmove",x,{passive:!1}),document.addEventListener("click",E,{capture:!0}),f=()=>{document.removeEventListener("pointermove",y),document.removeEventListener("pointerup",b),document.removeEventListener("pointerout",w),document.removeEventListener("pointercancel",w),document.removeEventListener("touchmove",x),setTimeout(()=>{document.removeEventListener("click",E,{capture:!0})},10)}};return n.addEventListener("pointerdown",u),()=>{f(),n.removeEventListener("pointerdown",u)}}(this.wrapper,(n,a,o)=>{this.emit("drag",Math.max(0,Math.min(1,o/this.wrapper.getBoundingClientRect().width)))},n=>{this.isDragging=!0,this.emit("dragstart",Math.max(0,Math.min(1,n/this.wrapper.getBoundingClientRect().width)))},n=>{this.isDragging=!1,this.emit("dragend",Math.max(0,Math.min(1,n/this.wrapper.getBoundingClientRect().width)))}))}getHeight(n,a){var o;const r=((o=this.audioData)===null||o===void 0?void 0:o.numberOfChannels)||1;if(n==null)return 128;if(!isNaN(Number(n)))return Number(n);if(n==="auto"){const i=this.parent.clientHeight||128;return a!=null&&a.every(s=>!s.overlay)?i/r:i}return 128}initHtml(){const n=document.createElement("div"),a=n.attachShadow({mode:"open"}),o=this.options.cspNonce&&typeof this.options.cspNonce=="string"?this.options.cspNonce.replace(/"/g,""):"";return a.innerHTML=`
|
|
15
|
+
</dialog>`,modal:!0,on:{},parentEl:void 0,placeFocusBack:!0,showClass:"f-zoomInUp",startIndex:0,sync:void 0,theme:"dark",triggerEl:void 0,triggerEvent:void 0,zoomEffect:!0},Et=new Map;let Y3=0;const b1="with-fancybox",X3=()=>{let t,n,a,o,r,i,s,l=Ie.Init,d=Object.assign({},kn),u=-1,c={},h=[],m=!1,p=!0,f=0;function g(q,...re){let he=d[q];return he&&typeof he=="function"?he(ze,...re):he}function y(q,re=[]){const he=g("l10n")||{};q=String(q).replace(/\{\{(\w+)\}\}/g,(ae,K)=>he[K]||ae);for(let ae=0;ae<re.length;ae++)q=q.split(re[ae][0]).join(re[ae][1]);return q=q.replace(/\{\{(.*?)\}\}/g,(ae,K)=>K)}const k=new Map;function E(q,...re){const he=[...k.get(q)||[]];for(const[ae,K]of Object.entries(d.on||{}))(ae===q||ae.split(" ").indexOf(q)>-1)&&he.push(K);for(const ae of he)ae&&typeof ae=="function"&&ae(ze,...re);q!=="*"&&E("*",q,...re)}function C(){Qe(n,"is-revealing");try{document.activeElement===t&&((n==null?void 0:n.querySelector("[autofocus]"))||n).focus()}catch{}}function b(q,re){var he;Q(re),V(),(he=re.el)===null||he===void 0||he.addEventListener("click",D),re.type!=="inline"&&re.type!=="clone"||function(ae){if(!o||!ae||!ae.el)return;let K=null;if(Te(ae.src)){const ce=ae.src.split("#",2).pop();K=ce?document.getElementById(ce):null}if(K){if(Ee(K,"f-html"),ae.type==="clone"||K.closest(".fancybox__carousel")){K=K.cloneNode(!0);const ce=K.dataset.animationName;ce&&(K.classList.remove(ce),delete K.dataset.animationName);let $=K.getAttribute("id");$=$?`${$}--clone`:`clone-${u}-${ae.index}`,K.setAttribute("id",$)}else if(K.parentNode){const ce=document.createElement("div");ce.inert=!0,K.parentNode.insertBefore(ce,K),ae.placeholderEl=ce}ae.htmlEl=K,Ee(ae.el,"has-html"),ae.el.prepend(K),K.classList.remove("hidden"),K.style.display==="none"&&(K.style.display=""),getComputedStyle(K).getPropertyValue("display")==="none"&&(K.style.display=K.dataset.display||"flex"),o==null||o.emit("contentReady",ae)}else o==null||o.showError(ae,"{{ELEMENT_NOT_FOUND}}")}(re),re.type==="ajax"&&function(ae){const K=ae.el;if(!K||ae.htmlEl||ae.xhr)return;o==null||o.showLoading(ae),ae.state=0;const ce=new XMLHttpRequest;ce.onreadystatechange=function(){if(ce.readyState===XMLHttpRequest.DONE&&l===Ie.Ready)if(o==null||o.hideLoading(ae),ae.state=1,ce.status===200){let I=ce.responseText+"",te=null,Y=null;if(ae.filter){const w=document.createElement("div");w.innerHTML=I,Y=w.querySelector(ae.filter+"")}Y&&Y instanceof HTMLElement?te=Y:(te=document.createElement("div"),te.innerHTML=I),te.classList.add("f-html"),ae.htmlEl=te,K.classList.add("has-html"),K.classList.add("has-ajax"),K.prepend(te),o==null||o.emit("contentReady",ae)}else o==null||o.showError(ae)};const $=g("ajax")||null;ce.open($?"POST":"GET",ae.src+""),ce.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),ce.setRequestHeader("X-Requested-With","XMLHttpRequest"),ce.send($),ae.xhr=ce}(re)}function N(q,re){var he;J(re),(he=re.el)===null||he===void 0||he.removeEventListener("click",D),re.type!=="inline"&&re.type!=="clone"||function(ae){const K=ae.htmlEl,ce=ae.placeholderEl;K&&(getComputedStyle(K).getPropertyValue("display")!=="none"&&(K.style.display="none"),K.offsetHeight),ce&&(K&&ce.parentNode&&ce.parentNode.insertBefore(K,ce),ce.remove()),ae.htmlEl=void 0,ae.placeholderEl=void 0}(re),re.xhr&&(re.xhr.abort(),re.xhr=void 0)}function D(q){if(!R())return;if(l!==Ie.Ready)return xt(q),void q.stopPropagation();if(q.defaultPrevented||!tn.isClickAllowed())return;const re=q.composedPath()[0];re.closest(".fancybox__carousel")&&re.classList.contains("fancybox__slide")&&S(q)}function z(){p=!1,n&&o&&n.classList.remove("is-revealing"),V();const q=g("sync");if(o&&q){const re=q.getPageIndex(o.getPageIndex())||0;q.goTo(re,{transition:!1})}}function M(){var q;(function(){const he=o==null?void 0:o.getViewport();if(!g("dragToClose")||!o||!he||(r=tn(he).init(),!r))return;let ae=!1,K=0,ce=0,$={},I=1;function te(){var w,L;i==null||i.spring({clamp:!0,mass:1,tension:ce===0?140:960,friction:17,restDelta:.1,restSpeed:.1,maxSpeed:1/0}).from({y:K}).to({y:ce}).start();const X=((w=o==null?void 0:o.getViewport())===null||w===void 0?void 0:w.getBoundingClientRect().height)||0,ne=(L=O())===null||L===void 0?void 0:L.panzoomRef;if(X&&ne)if(ce===0)ne.execute(ge.Reset);else{const se=Zn(Math.abs(K),0,.33*X,I,.77*I,!1);ne.execute(ge.ZoomTo,{scale:se})}}const Y=w=>{var L;const X=w.srcEvent,ne=X.target;return o&&!(pn(X)&&((L=X.touches)===null||L===void 0?void 0:L.length)>1)&&ne&&!Ot(ne)};i=Mt().on("step",w=>{if(n&&he&&l===Ie.Ready){const L=he.getBoundingClientRect().height;K=Math.min(L,Math.max(-1*L,w.y));const X=Zn(Math.abs(K),0,.5*L,1,0,!0);n.style.setProperty("--f-drag-opacity",X+""),n.style.setProperty("--f-drag-offset",K+"px")}}),r.on("start",function(){ae||(i==null||i.pause(),ce=K)}).on("panstart",w=>{var L,X;if(!ae&&Y(w)&&w.axis==="y"){xt(w.srcEvent),ae=!0,qe(),(L=o==null?void 0:o.getViewport())===null||L===void 0||L.classList.add("is-dragging");const ne=(X=O())===null||X===void 0?void 0:X.panzoomRef;if(ne){I=ne.getTransform().scale||1;const se=ne.getOptions();$=Object.assign({},se),se.bounds=!1,se.gestures=!1}}else ae=!1}).on("pan",function(w){ae&&Y(w)&&(xt(w.srcEvent),w.srcEvent.stopPropagation(),w.axis==="y"&&(ce+=w.deltaY,te()))}).on("end",w=>{var L,X,ne;if((L=o==null?void 0:o.getViewport())===null||L===void 0||L.classList.remove("is-dragging"),ae){const se=(X=O())===null||X===void 0?void 0:X.panzoomRef;if(se){(ne=se.getTween())===null||ne===void 0||ne.end();const fe=se.getOptions();fe.bounds=$.bounds||!1,fe.gestures=$.gestures||!1}Y(w)&&w.axis==="y"&&(Math.abs(w.velocityY)>5||Math.abs(K)>50)&&Oe(w.srcEvent,"f-throwOut"+(w.velocityY>0?"Down":"Up"))}ae=!1,l===Ie.Ready&&K!==0&&(ce=0,te())})})(),document.body.addEventListener("click",Z),document.body.addEventListener("keydown",P,{passive:!1,capture:!0}),V(),ye();const re=g("sync");o&&re&&((q=re.getTween())===null||q===void 0||q.start()),_(O())}function x(){o!=null&&o.canGoNext()?ye():Ae()}function T(q,re){Q(re),_(re)}function B(){var q;const re=o==null?void 0:o.getPlugins().Thumbs;Ye(n,"has-thumbs",(re==null?void 0:re.isEnabled())||!1),Ye(n,"has-vertical-thumbs",!!re&&(re.getType()==="scrollable"||((q=re.getCarousel())===null||q===void 0?void 0:q.isVertical())===!0))}function V(){if(n){const q=(o==null?void 0:o.getPages())||[],re=(o==null?void 0:o.getPageIndex())||0;for(const he of n.querySelectorAll("[data-fancybox-index]"))he.innerHTML=re+"";for(const he of n.querySelectorAll("[data-fancybox-page]"))he.innerHTML=re+1+"";for(const he of n.querySelectorAll("[data-fancybox-pages]"))he.innerHTML=q.length+""}}function S(q){if(q.composedPath()[0].closest("[data-fancybox-close]"))return void Oe(q);E("backdropClick",q),!q.defaultPrevented&&g("backdropClick")&&Oe(q)}function v(){Fe()}function P(q){if(!R()||l!==Ie.Ready)return;const re=q.key,he=g("keyboard");if(!he||q.ctrlKey||q.altKey||q.shiftKey)return;const ae=q.composedPath()[0];if(!Qt(ae)||re!=="Escape"&&(ce=>{const $=["input","textarea","select","option","video","iframe","[contenteditable]","[data-selectable]","[data-draggable]"].join(",");return ce.matches($)||ce.closest($)})(ae)||(E("keydown",q),q.defaultPrevented))return;const K=he[re];if(K)switch(K){case"close":Oe(q);break;case"next":xt(q),o==null||o.next();break;case"prev":xt(q),o==null||o.prev()}}function Z(q){if(!R()||l!==Ie.Ready||(Fe(),q.defaultPrevented))return;const re=q.composedPath()[0],he=!!re.closest("[data-fancybox-close]"),ae=re.classList.contains("fancybox__backdrop");(he||ae)&&S(q)}function Q(q){var re;const{el:he,htmlEl:ae,closeButtonEl:K}=q;if(!he||!he.parentElement||!ae)return;let ce=g("closeButton");if(ce==="auto"&&(ce=((re=o==null?void 0:o.getPlugins().Toolbar)===null||re===void 0?void 0:re.isEnabled())!==!0),ce){if(!K){const $=wt(y(y1));$&&(Ee($,"is-close-button"),q.closeButtonEl=ae.insertAdjacentElement("afterbegin",$),Ee(he,"has-close-btn"))}}else J(q)}function J(q){q.closeButtonEl&&(q.closeButtonEl.remove(),q.closeButtonEl=void 0),Qe(q.el,"has-close-btn")}function _(q){if(!(p&&o&&o.getState()===1&&q&&q.index===o.getOptions().initialPage&&q.el&&q.el.parentElement)||q.state!==void 0&&q.state!==1)return;p=!1;const re=q.panzoomRef,he=re==null?void 0:re.getTween(),ae=g("zoomEffect")&&he?de(q):void 0;if(re&&he&&ae){const{x:ce,y:$,scale:I}=re.getStartPosition();return void he.spring({tension:215,friction:25,restDelta:.001,restSpeed:.001,maxSpeed:1/0}).from(ae).to({x:ce,y:$,scale:I}).start()}const K=(re==null?void 0:re.getContent())||q.htmlEl;K&&k1(K,g("showClass",q))}function R(){var q;return((q=Pe.getInstance())===null||q===void 0?void 0:q.getId())===u}function O(){var q;return(q=o==null?void 0:o.getPage())===null||q===void 0?void 0:q.slides[0]}function oe(){const q=O();return q?q.triggerEl||g("triggerEl"):void 0}function de(q){var re,he;const ae=q.thumbEl;if(!ae||!(X=>{const ne=X.getBoundingClientRect(),se=X.closest("[style]"),fe=se==null?void 0:se.parentElement;if(se&&se.style.transform&&fe){const Ce=fe.getBoundingClientRect();if(ne.left<Ce.left||ne.left>Ce.left+Ce.width-ne.width||ne.top<Ce.top||ne.top>Ce.top+Ce.height-ne.height)return!1}const me=Math.max(document.documentElement.clientHeight,window.innerHeight),be=Math.max(document.documentElement.clientWidth,window.innerWidth);return!(ne.bottom<0||ne.top-me>=0||ne.right<0||ne.left-be>=0)})(ae))return;const K=(he=(re=q.panzoomRef)===null||re===void 0?void 0:re.getWrapper())===null||he===void 0?void 0:he.getBoundingClientRect(),ce=K==null?void 0:K.width,$=K==null?void 0:K.height;if(!ce||!$)return;const I=ae.getBoundingClientRect();let te=I.width,Y=I.height,w=I.left,L=I.top;if(!(!I||!te||!Y)){if(ae instanceof HTMLImageElement){const X=window.getComputedStyle(ae).getPropertyValue("object-fit");if(X==="contain"||X==="scale-down"){const{width:ne,height:se}=((fe,me,be,Ce,Le="contain")=>{if(Le==="contain"||fe>be||me>Ce){const xe=be/fe,A=Ce/me,H=Math.min(xe,A);fe*=H,me*=H}return{width:fe,height:me}})(ae.naturalWidth,ae.naturalHeight,te,Y,X);w+=.5*(te-ne),L+=.5*(Y-se),te=ne,Y=se}}if(!(Math.abs(ce/$-te/Y)>.1))return{x:w+.5*te-(K.left+.5*ce),y:L+.5*Y-(K.top+.5*$),scale:te/ce}}}function pe(){s&&clearTimeout(s),s=void 0,document.removeEventListener("mousemove",v)}function ye(){if(m||s)return;const q=g("idle");q&&(s=setTimeout(Ve,q))}function Ve(){n&&(pe(),Ee(n,"is-idle"),document.addEventListener("mousemove",v),m=!0)}function Fe(){m&&(Ae(),ye())}function Ae(){pe(),n==null||n.classList.remove("is-idle"),m=!1}function qe(){const q=oe();var re;!q||(re=q.getBoundingClientRect()).bottom>0&&re.right>0&&re.left<(window.innerWidth||document.documentElement.clientWidth)&&re.top<(window.innerHeight||document.documentElement.clientHeight)||q.scrollIntoView({behavior:"instant",block:"center",inline:"center"})}function Oe(q,re){var he,ae,K,ce,$;if(l===Ie.Closing||l===Ie.Destroyed)return;const I=new Event("shouldClose",{bubbles:!0,cancelable:!0});if(E("shouldClose",I,q),I.defaultPrevented)return;if(pe(),q){if(q.defaultPrevented)return;xt(q),q.stopPropagation(),q.stopImmediatePropagation()}if(l=Ie.Closing,i==null||i.pause(),r==null||r.destroy(),o){(he=o.getGestures())===null||he===void 0||he.destroy(),(ae=o.getTween())===null||ae===void 0||ae.pause();for(const w of o.getSlides()){const L=w.panzoomRef;L&&(ot(L.getOptions(),{clickAction:!1,dblClickAction:!1,wheelAction:!1,bounds:!1,minScale:0,maxScale:1/0}),(K=L.getGestures())===null||K===void 0||K.destroy(),(ce=L.getTween())===null||ce===void 0||ce.pause())}}const te=o==null?void 0:o.getPlugins();($=te==null?void 0:te.Autoplay)===null||$===void 0||$.stop();const Y=te==null?void 0:te.Fullscreen;Y&&Y.inFullscreen()?Promise.resolve(Y.exit()).then(()=>{setTimeout(()=>{$e(q,re)},150)}):$e(q,re)}function $e(q,re){var he,ae;if(l!==Ie.Closing)return;E("close",q),p=!1,document.body.removeEventListener("click",Z),document.body.removeEventListener("keydown",P,{passive:!1,capture:!0}),g("placeFocusBack")&&qe(),g("fadeEffect")&&(n==null||n.classList.remove("is-ready"),n==null||n.classList.add("is-hiding")),n==null||n.classList.add("is-closing");const K=O(),ce=K==null?void 0:K.el,$=K==null?void 0:K.panzoomRef,I=(he=K==null?void 0:K.panzoomRef)===null||he===void 0?void 0:he.getTween(),te=re||g("hideClass");let Y=!1,w=!1;if(o&&K&&ce&&$&&I){let X;if(g("zoomEffect")&&K.state===1&&(X=de(K)),X){Y=!0;const ne=()=>{X=de(K),X?I.to(Object.assign(Object.assign({},ft),X)):_e()};$.on("refresh",()=>{ne()}),I.easing(Mt.Easings.EaseOut).duration(350).from(Object.assign({},$.getTransform())).to(Object.assign(Object.assign({},ft),X)).start(),ce!=null&&ce.getAnimations()&&(ce.style.animationPlayState="paused",requestAnimationFrame(()=>{ne()}))}}const L=(K==null?void 0:K.htmlEl)||((ae=K==null?void 0:K.panzoomRef)===null||ae===void 0?void 0:ae.getWrapper());L&&x1(L),!Y&&te&&L&&(w=!0,k1(L,te,()=>{_e()})),Y||w?setTimeout(()=>{_e()},350):_e()}function _e(){var q,re,he,ae,K;if(l===Ie.Destroyed)return;l=Ie.Destroyed;const ce=oe();E("destroy"),(re=(q=g("sync"))===null||q===void 0?void 0:q.getPlugins().Autoplay)===null||re===void 0||re.resume(),(ae=(he=g("sync"))===null||he===void 0?void 0:he.getPlugins().Autoscroll)===null||ae===void 0||ae.resume(),t instanceof HTMLDialogElement&&t.close(),(K=o==null?void 0:o.getContainer())===null||K===void 0||K.classList.remove("is-idle"),o==null||o.destroy();for(const $ of Object.values(c))$==null||$.destroy();if(c={},t==null||t.remove(),t=void 0,n=void 0,o=void 0,Et.delete(u),!Et.size&&(Ur(!1),document.documentElement.classList.remove(b1),g("placeFocusBack")))try{ce==null||ce.focus({preventScroll:!0})}catch{}}const ze={close:Oe,destroy:_e,getCarousel:function(){return o},getContainer:function(){return n},getId:function(){return u},getOptions:function(){return d},getPlugins:function(){return c},getSlide:function(){return O()},getState:function(){return l},init:function(q=[],re={}){l!==Ie.Init&&(ze.destroy(),l=Ie.Init),d=ot({},kn,re),u=g("id")||"fancybox-"+ ++Y3;const he=Et.get(u);if(he&&he.destroy(),Et.set(u,ze),E("init"),function(){for(const[ae,K]of Object.entries(Object.assign(Object.assign({},Pe.Plugins),d.plugins||{})))if(ae&&!c[ae]&&K instanceof Function){const ce=K();ce.init(ze),c[ae]=ce}E("initPlugins")}(),function(ae=[]){E("initSlides",ae),h=[...ae]}(q),function(){const ae=g("parentEl")||document.body;if(!(ae&&ae instanceof HTMLElement))return;const K=y(g("mainTpl")||"");if(t=wt(K)||void 0,!t||(n=t.querySelector(".fancybox__container"),!(n&&n instanceof HTMLElement)))return;const ce=g("mainClass");ce&&Ee(n,ce);const $=g("mainStyle");if($&&Ze($))for(const[Y,w]of Object.entries($))n.style.setProperty(Y,w);const I=g("theme"),te=I==="auto"?window.matchMedia("(prefers-color-scheme:light)").matches:I==="light";n.setAttribute("theme",te?"light":"dark"),t.setAttribute("id",`${u}`),t.addEventListener("keydown",Y=>{Y.key==="Escape"&&xt(Y)}),t.addEventListener("wheel",Y=>{const w=Y.target;let L=g("wheel",Y);w.closest(".f-thumbs")&&(L="slide");const X=L==="slide",ne=[-Y.deltaX||0,-Y.deltaY||0,-Y.detail||0].reduce(function(me,be){return Math.abs(be)>Math.abs(me)?be:me}),se=Math.max(-1,Math.min(1,ne)),fe=Date.now();f&&fe-f<300?X&&xt(Y):(f=fe,E("wheel",Y,se),Y.defaultPrevented||(L==="close"?Oe(Y):L==="slide"&&o&&!Ot(w)&&(xt(Y),o[se>0?"prev":"next"]())))},{capture:!0,passive:!1}),t.addEventListener("cancel",Y=>{Oe(Y)}),ae.append(t),Et.size===1&&(g("hideScrollbar")&&Ur(!0),document.documentElement.classList.add(b1)),t instanceof HTMLDialogElement&&(g("modal")?t.showModal():t.show()),E("initLayout")}(),function(){if(a=(t==null?void 0:t.querySelector(".fancybox__carousel"))||void 0,!a)return;a.fancybox=ze;const ae=ot({},{Autoplay:{autoStart:!1,pauseOnHover:!1,progressbarParentEl:K=>{const ce=K.getContainer();return(ce==null?void 0:ce.querySelector(".f-carousel__toolbar [data-autoplay-action]"))||ce}},Fullscreen:{el:n},Toolbar:{absolute:!0,items:{counter:{tpl:'<div class="f-counter"><span data-fancybox-page></span>/<span data-fancybox-pages></span></div>'}},display:{left:["counter"],right:["toggleFull","autoplay","fullscreen","thumbs","close"]}},Video:{autoplay:!0},Thumbs:{minCount:2,Carousel:{classes:{container:"fancybox__thumbs"}}},classes:{container:"fancybox__carousel",viewport:"fancybox__viewport",slide:"fancybox__slide"},spinnerTpl:'<div class="f-spinner" data-fancybox-close></div>',dragFree:!1,slidesPerPage:1,plugins:{Sync:Xr,Arrows:H3,Lazyload:e1,Zoomable:R3,Html:I3,Video:q3,Autoplay:j3,Fullscreen:W3,Thumbs:G3,Toolbar:l1}},g("Carousel")||{},{slides:h,enabled:!0,initialPage:g("startIndex")||0,l10n:g("l10n")});o=Yn(a,ae),E("initCarousel",o),o.on("*",(K,ce,...$)=>{E(`Carousel.${ce}`,K,...$)}),o.on("attachSlideEl",b),o.on("detachSlideEl",N),o.on("contentReady",T),o.on("ready",M),o.on("change",z),o.on("settle",x),o.on("thumbs:ready",B),o.on("thumbs:destroy",B),o.init()}(),t&&n){if(g("closeExisting"))for(const[ae,K]of Et.entries())ae!==u&&K.close();g("fadeEffect")?(setTimeout(()=>{C()},500),Ee(n,"is-revealing")):C(),n.classList.add("is-ready"),l=Ie.Ready,E("ready")}},isCurrentSlide:function(q){const re=O();return!(!q||!re)&&re.index===q.index},isTopMost:function(){return R()},off:function(q,re){return k.has(q)&&k.set(q,k.get(q).filter(he=>he!==re)),ze},on:function(q,re){return k.set(q,[...k.get(q)||[],re]),ze},toggleIdle(q){(m||q===!0)&&Ve(),m&&q!==!1||Ae()}};return ze};function w1(t,n={}){var a,o,r;if(!(t&&t instanceof Element))return;let i,s,l,d,u={};for(const[g,y]of Pe.openers)if(g.contains(t))for(const[k,E]of y){let C;if(k){for(const b of g.querySelectorAll(k))if(b.contains(t)){C=b;break}if(!C)continue}for(const[b,N]of E){let D=null;try{D=t.closest(b)}catch{}D&&(s=g,l=C,i=D,d=b,ot(u,N||{}))}}if(!s||!d||!i)return;const c=ot({},kn,n,u,{triggerEl:i});let h=[].slice.call((l||s).querySelectorAll(d));const m=i.closest(".f-carousel"),p=m==null?void 0:m.carousel;if(p&&(!l||!m.contains(l))){const g=[];for(const y of p==null?void 0:p.getSlides()){const k=y.el;k&&(k.matches(d)?g.push(k):g.push(...[].slice.call(k.querySelectorAll(d))))}g.length&&(h=[...g],(a=p.getPlugins().Autoplay)===null||a===void 0||a.pause(),(o=p.getPlugins().Autoscroll)===null||o===void 0||o.pause(),c.sync=p)}if(c.groupAll===!1){const g=c.groupAttr,y=g&&i?i.getAttribute(`${g}`):"";h=g&&y?h.filter(k=>k.getAttribute(`${g}`)===y):[i]}if(!h.length)return;(r=c.triggerEvent)===null||r===void 0||r.preventDefault();const f=Pe.getInstance();if(f){const g=f.getOptions().triggerEl;if(g&&h.indexOf(g)>-1)return}return Object.assign({},c.Carousel||{}).rtl&&(h=h.reverse()),i&&n.startIndex===void 0&&(c.startIndex=h.indexOf(i)),Pe.fromNodes(h,c)}const Pe={Plugins:{Hash:Wa},version:"6.1.3",openers:new Map,bind:function(t,n,a,o){if(!Xn())return;let r=document.body,i=null,s="[data-fancybox]",l={};t instanceof Element&&(r=t),Te(t)&&Te(n)?(i=t,s=n):Te(n)&&Te(a)?(i=n,s=a):Te(n)?s=n:Te(t)&&(s=t),typeof n=="object"&&(l=n||{}),typeof a=="object"&&(l=a||{}),typeof o=="object"&&(l=o||{}),function(d,u,c,h={}){if(!(d&&d instanceof Element&&c))return;const m=Pe.openers.get(d)||new Map,p=m.get(u)||new Map;if(p.set(c,h),m.set(u,p),Pe.openers.set(d,m),m.size===1&&d.addEventListener("click",Pe.fromEvent),Pe.openers.size===1)for(const f of Object.values(Pe.Plugins)){const g=f.setup;typeof g=="function"&&g(Pe)}}(r,i,s,l)},close:function(t=!0,...n){if(t)for(const a of Et.values())a.close(...n);else{const a=Pe.getInstance();a&&a.close(...n)}},destroy:function(){let t;for(;t=Pe.getInstance();)t.destroy();for(const n of Pe.openers.keys())n.removeEventListener("click",Pe.fromEvent);Pe.openers.clear()},fromEvent:function(t){if(t.defaultPrevented||t.button&&t.button!==0||t.ctrlKey||t.metaKey||t.shiftKey)return;let n=t.composedPath()[0];const a={triggerEvent:t};if(n.closest(".fancybox__container.is-hiding"))return xt(t),void t.stopPropagation();const o=n.closest("[data-fancybox-delegate]")||void 0;if(o){const r=o.dataset.fancyboxDelegate||"",i=document.querySelectorAll(`[data-fancybox="${r}"]`),s=parseInt(o.dataset.fancyboxIndex||"",10)||0;n=i[s]||i[0],ot(a,{delegateEl:o,startIndex:s})}return w1(n,a)},fromNodes:function(t,n){n=ot({},kn,n||{});const a=[],o=r=>r instanceof HTMLImageElement?r:r instanceof HTMLElement?r.querySelector("img:not([aria-hidden])"):void 0;for(const r of t){const i=r.dataset||{},s=n.delegateEl&&t.indexOf(r)===n.startIndex?n.delegateEl:void 0,l=o(s)||o(r)||void 0,d=i.src||r.getAttribute("href")||r.getAttribute("currentSrc")||r.getAttribute("src")||void 0,u=i.thumb||i.thumbSrc||(l==null?void 0:l.getAttribute("currentSrc"))||(l==null?void 0:l.getAttribute("src"))||(l==null?void 0:l.dataset.lazySrc)||void 0,c={src:d,alt:i.alt||(l==null?void 0:l.getAttribute("alt"))||void 0,thumbSrc:u,thumbEl:l,triggerEl:r,delegateEl:s};for(const h in i){let m=i[h]+"";m=m!=="false"&&(m==="true"||m),c[h]=m}a.push(c)}return Pe.show(a,n)},fromSelector:function(t,n,a,o){if(!Xn())return;let r=document.body,i=null,s="[data-fancybox]",l={};t instanceof Element&&(r=t),Te(t)&&Te(n)?(i=t,s=n):Te(n)&&Te(a)?(i=n,s=a):Te(n)?s=n:Te(t)&&(s=t),typeof n=="object"&&(l=n||{}),typeof a=="object"&&(l=a||{}),typeof o=="object"&&(l=o||{});for(const[d,u]of Pe.openers)for(const[c,h]of u)for(const[m,p]of h)if(d===r&&c===i){const f=r.querySelector((c?`${c} `:"")+s);if(f&&f.matches(m))return Pe.fromTriggerEl(f,l)}},fromTriggerEl:w1,getCarousel:function(){var t;return((t=Pe.getInstance())===null||t===void 0?void 0:t.getCarousel())||void 0},getDefaults:function(){return kn},getInstance:function(t){if(t){const n=Et.get(t);return n&&n.getState()!==Ie.Destroyed?n:void 0}return Array.from(Et.values()).reverse().find(n=>{if(n.getState()!==Ie.Destroyed)return n})||void 0},getSlide:function(){var t;return((t=Pe.getInstance())===null||t===void 0?void 0:t.getSlide())||void 0},show:function(t=[],n={}){return X3().init(t,n)},unbind:function(t,n,a){if(!Xn())return;let o=document.body,r=null,i="[data-fancybox]";t instanceof Element&&(o=t),Te(t)&&Te(n)?(r=t,i=n):Te(n)&&Te(a)?(r=n,i=a):Te(n)?i=n:Te(t)&&(i=t),function(s,l,d){if(!(s&&s instanceof Element&&d))return;const u=Pe.openers.get(s)||new Map,c=u.get(l)||new Map;c&&d&&c.delete(d),c.size&&d||u.delete(l),u.size||(Pe.openers.delete(s),s.removeEventListener("click",Pe.fromEvent))}(o,r,i)}};function et(t,n,a,o){return new(a||(a=Promise))(function(r,i){function s(u){try{d(o.next(u))}catch(c){i(c)}}function l(u){try{d(o.throw(u))}catch(c){i(c)}}function d(u){var c;u.done?r(u.value):(c=u.value,c instanceof a?c:new a(function(h){h(c)})).then(s,l)}d((o=o.apply(t,n||[])).next())})}typeof SuppressedError=="function"&&SuppressedError;class xn{constructor(){this.listeners={}}on(n,a,o){if(this.listeners[n]||(this.listeners[n]=new Set),o==null?void 0:o.once){const r=(...i)=>{this.un(n,r),a(...i)};return this.listeners[n].add(r),()=>this.un(n,r)}return this.listeners[n].add(a),()=>this.un(n,a)}un(n,a){var o;(o=this.listeners[n])===null||o===void 0||o.delete(a)}once(n,a){return this.on(n,a,{once:!0})}unAll(){this.listeners={}}emit(n,...a){this.listeners[n]&&this.listeners[n].forEach(o=>o(...a))}}const Jn={decode:function(t,n){return et(this,void 0,void 0,function*(){const a=new AudioContext({sampleRate:n});try{return yield a.decodeAudioData(t)}finally{a.close()}})},createBuffer:function(t,n){if(!t||t.length===0)throw new Error("channelData must be a non-empty array");if(n<=0)throw new Error("duration must be greater than 0");if(typeof t[0]=="number"&&(t=[t]),!t[0]||t[0].length===0)throw new Error("channelData must contain non-empty channel arrays");(function(o){const r=o[0];if(r.some(i=>i>1||i<-1)){const i=r.length;let s=0;for(let l=0;l<i;l++){const d=Math.abs(r[l]);d>s&&(s=d)}for(const l of o)for(let d=0;d<i;d++)l[d]/=s}})(t);const a=t.map(o=>o instanceof Float32Array?o:Float32Array.from(o));return{duration:n,length:a[0].length,sampleRate:a[0].length/n,numberOfChannels:a.length,getChannelData:o=>{const r=a[o];if(!r)throw new Error(`Channel ${o} not found`);return r},copyFromChannel:AudioBuffer.prototype.copyFromChannel,copyToChannel:AudioBuffer.prototype.copyToChannel}}};function E1(t,n){const a=n.xmlns?document.createElementNS(n.xmlns,t):document.createElement(t);for(const[o,r]of Object.entries(n))if(o==="children"&&r)for(const[i,s]of Object.entries(r))s instanceof Node?a.appendChild(s):typeof s=="string"?a.appendChild(document.createTextNode(s)):a.appendChild(E1(i,s));else o==="style"?Object.assign(a.style,r):o==="textContent"?a.textContent=r:a.setAttribute(o,r.toString());return a}function v1(t,n,a){const o=E1(t,n||{});return a==null||a.appendChild(o),o}var K3=Object.freeze({__proto__:null,createElement:v1,default:v1});const Q3={fetchBlob:function(t,n,a){return et(this,void 0,void 0,function*(){const o=yield fetch(t,a);if(o.status>=400)throw new Error(`Failed to fetch ${t}: ${o.status} (${o.statusText})`);return function(r,i){et(this,void 0,void 0,function*(){if(!r.body||!r.headers)return;const s=r.body.getReader(),l=Number(r.headers.get("Content-Length"))||0;let d=0;const u=c=>{d+=(c==null?void 0:c.length)||0;const h=Math.round(d/l*100);i(h)};try{for(;;){const c=yield s.read();if(c.done)break;u(c.value)}}catch(c){console.warn("Progress tracking error:",c)}})}(o.clone(),n),o.blob()})}};class J3 extends xn{constructor(n){super(),this.isExternalMedia=!1,n.media?(this.media=n.media,this.isExternalMedia=!0):this.media=document.createElement("audio"),n.mediaControls&&(this.media.controls=!0),n.autoplay&&(this.media.autoplay=!0),n.playbackRate!=null&&this.onMediaEvent("canplay",()=>{n.playbackRate!=null&&(this.media.playbackRate=n.playbackRate)},{once:!0})}onMediaEvent(n,a,o){return this.media.addEventListener(n,a,o),()=>this.media.removeEventListener(n,a,o)}getSrc(){return this.media.currentSrc||this.media.src||""}revokeSrc(){const n=this.getSrc();n.startsWith("blob:")&&URL.revokeObjectURL(n)}canPlayType(n){return this.media.canPlayType(n)!==""}setSrc(n,a){const o=this.getSrc();if(n&&o===n)return;this.revokeSrc();const r=a instanceof Blob&&(this.canPlayType(a.type)||!n)?URL.createObjectURL(a):n;if(o&&this.media.removeAttribute("src"),r||n)try{this.media.src=r}catch{this.media.src=n}}destroy(){this.isExternalMedia||(this.media.pause(),this.revokeSrc(),this.media.removeAttribute("src"),this.media.load(),this.media.remove())}setMediaElement(n){this.media=n}play(){return et(this,void 0,void 0,function*(){try{return yield this.media.play()}catch(n){if(n instanceof DOMException&&n.name==="AbortError")return;throw n}})}pause(){this.media.pause()}isPlaying(){return!this.media.paused&&!this.media.ended}setTime(n){this.media.currentTime=Math.max(0,Math.min(n,this.getDuration()))}getDuration(){return this.media.duration}getCurrentTime(){return this.media.currentTime}getVolume(){return this.media.volume}setVolume(n){this.media.volume=n}getMuted(){return this.media.muted}setMuted(n){this.media.muted=n}getPlaybackRate(){return this.media.playbackRate}isSeeking(){return this.media.seeking}setPlaybackRate(n,a){a!=null&&(this.media.preservesPitch=a),this.media.playbackRate=n}getMediaElement(){return this.media}setSinkId(n){return this.media.setSinkId(n)}}function Ua(t){return t<0?0:t>1?1:t}function e4({maxTop:t,maxBottom:n,halfHeight:a,vScale:o}){const r=Math.round(t*a*o);return{topHeight:r,totalHeight:r+Math.round(n*a*o)||1}}function t4({barAlign:t,halfHeight:n,topHeight:a,totalHeight:o,canvasHeight:r}){return t==="top"?0:t==="bottom"?r-o:n-a}function C1(t,n,a){const o=n-t.left,r=a-t.top;return[o/t.width,r/t.height]}function S1(t){return!!(t.barWidth||t.barGap||t.barAlign)}function B1(t,n){if(!S1(n))return t;const a=n.barWidth||.5,o=a+(n.barGap||a/2);return o===0?t:Math.floor(t/o)*o}function V1({scrollLeft:t,totalWidth:n,numCanvases:a}){if(n===0)return[0];const o=t/n,r=Math.floor(o*a);return[r-1,r,r+1]}function M1({scrollLeft:t,clientWidth:n,scrollWidth:a}){return a===0?{startX:0,endX:0}:{startX:t/a,endX:(t+n)/a}}class n4 extends xn{constructor(n,a){super(),this.timeouts=[],this.isScrollable=!1,this.audioData=null,this.resizeObserver=null,this.lastContainerWidth=0,this.isDragging=!1,this.subscriptions=[],this.unsubscribeOnScroll=[],this.dragUnsubscribe=null,this.subscriptions=[],this.options=n;const o=this.parentFromOptionsContainer(n.container);this.parent=o;const[r,i]=this.initHtml();o.appendChild(r),this.container=r,this.scrollContainer=i.querySelector(".scroll"),this.wrapper=i.querySelector(".wrapper"),this.canvasWrapper=i.querySelector(".canvases"),this.progressWrapper=i.querySelector(".progress"),this.cursor=i.querySelector(".cursor"),a&&i.appendChild(a),this.initEvents()}parentFromOptionsContainer(n){let a;if(typeof n=="string"?a=document.querySelector(n):n instanceof HTMLElement&&(a=n),!a)throw new Error("Container not found");return a}initEvents(){if(this.wrapper.addEventListener("click",n=>{const a=this.wrapper.getBoundingClientRect(),[o,r]=C1(a,n.clientX,n.clientY);this.emit("click",o,r)}),this.wrapper.addEventListener("dblclick",n=>{const a=this.wrapper.getBoundingClientRect(),[o,r]=C1(a,n.clientX,n.clientY);this.emit("dblclick",o,r)}),this.options.dragToSeek!==!0&&typeof this.options.dragToSeek!="object"||this.initDrag(),this.scrollContainer.addEventListener("scroll",()=>{const{scrollLeft:n,scrollWidth:a,clientWidth:o}=this.scrollContainer,{startX:r,endX:i}=M1({scrollLeft:n,scrollWidth:a,clientWidth:o});this.emit("scroll",r,i,n,n+o)}),typeof ResizeObserver=="function"){const n=this.createDelay(100);this.resizeObserver=new ResizeObserver(()=>{n().then(()=>this.onContainerResize()).catch(()=>{})}),this.resizeObserver.observe(this.scrollContainer)}}onContainerResize(){const n=this.parent.clientWidth;n===this.lastContainerWidth&&this.options.height!=="auto"||(this.lastContainerWidth=n,this.reRender(),this.emit("resize"))}initDrag(){this.dragUnsubscribe||(this.dragUnsubscribe=function(n,a,o,r,i=3,s=0,l=100){if(!n)return()=>{};const d=new Map,u=matchMedia("(pointer: coarse)").matches;let c=()=>{};const h=m=>{if(m.button!==s||(d.set(m.pointerId,m),d.size>1))return;let p=m.clientX,f=m.clientY,g=!1;const y=Date.now(),k=D=>{if(D.defaultPrevented||d.size>1||u&&Date.now()-y<l)return;const z=D.clientX,M=D.clientY,x=z-p,T=M-f;if(g||Math.abs(x)>i||Math.abs(T)>i){D.preventDefault(),D.stopPropagation();const B=n.getBoundingClientRect(),{left:V,top:S}=B;g||(o==null||o(p-V,f-S),g=!0),a(x,T,z-V,M-S),p=z,f=M}},E=D=>{if(d.delete(D.pointerId),g){const z=D.clientX,M=D.clientY,x=n.getBoundingClientRect(),{left:T,top:B}=x;r==null||r(z-T,M-B)}c()},C=D=>{d.delete(D.pointerId),D.relatedTarget&&D.relatedTarget!==document.documentElement||E(D)},b=D=>{g&&(D.stopPropagation(),D.preventDefault())},N=D=>{D.defaultPrevented||d.size>1||g&&D.preventDefault()};document.addEventListener("pointermove",k),document.addEventListener("pointerup",E),document.addEventListener("pointerout",C),document.addEventListener("pointercancel",C),document.addEventListener("touchmove",N,{passive:!1}),document.addEventListener("click",b,{capture:!0}),c=()=>{document.removeEventListener("pointermove",k),document.removeEventListener("pointerup",E),document.removeEventListener("pointerout",C),document.removeEventListener("pointercancel",C),document.removeEventListener("touchmove",N),setTimeout(()=>{document.removeEventListener("click",b,{capture:!0})},10)}};return n.addEventListener("pointerdown",h),()=>{c(),n.removeEventListener("pointerdown",h),d.clear()}}(this.wrapper,(n,a,o)=>{const r=this.wrapper.getBoundingClientRect().width;this.emit("drag",Ua(o/r))},n=>{this.isDragging=!0;const a=this.wrapper.getBoundingClientRect().width;this.emit("dragstart",Ua(n/a))},n=>{this.isDragging=!1;const a=this.wrapper.getBoundingClientRect().width;this.emit("dragend",Ua(n/a))}),this.subscriptions.push(this.dragUnsubscribe))}initHtml(){const n=document.createElement("div"),a=n.attachShadow({mode:"open"}),o=this.options.cspNonce&&typeof this.options.cspNonce=="string"?this.options.cspNonce.replace(/"/g,""):"";return a.innerHTML=`
|
|
16
16
|
<style${o?` nonce="${o}"`:""}>
|
|
17
17
|
:host {
|
|
18
18
|
user-select: none;
|
|
@@ -43,6 +43,7 @@
|
|
|
43
43
|
}
|
|
44
44
|
:host .canvases {
|
|
45
45
|
min-height: ${this.getHeight(this.options.height,this.options.splitChannels)}px;
|
|
46
|
+
pointer-events: none;
|
|
46
47
|
}
|
|
47
48
|
:host .canvases > div {
|
|
48
49
|
position: relative;
|
|
@@ -84,16 +85,16 @@
|
|
|
84
85
|
<div class="cursor" part="cursor"></div>
|
|
85
86
|
</div>
|
|
86
87
|
</div>
|
|
87
|
-
`,[n,a]}setOptions(n){if(this.options.container!==n.container){const a=this.parentFromOptionsContainer(n.container);a.appendChild(this.container),this.parent=a}n.dragToSeek!==!0&&typeof this.options.dragToSeek!="object"||this.initDrag(),this.options=n,this.reRender()}getWrapper(){return this.wrapper}getWidth(){return this.scrollContainer.clientWidth}getScroll(){return this.scrollContainer.scrollLeft}setScroll(n){this.scrollContainer.scrollLeft=n}setScrollPercentage(n){const{scrollWidth:a}=this.scrollContainer,o=a*n;this.setScroll(o)}destroy(){var n,a;this.subscriptions.forEach(o=>o()),this.container.remove(),(n=this.resizeObserver)===null||n===void 0||n.disconnect(),(a=this.unsubscribeOnScroll)===null||a===void 0||a.forEach(o=>o()),this.unsubscribeOnScroll=[]}createDelay(n=10){let a,o;const r=()=>{a&&clearTimeout(a),o&&o()};return this.timeouts.push(r),()=>new Promise((i,s)=>{r(),o=s,a=setTimeout(()=>{a=void 0,o=void 0,i()},n)})}convertColorValues(n){if(!Array.isArray(n))return n||"";if(n.length<2)return n[0]||"";const a=document.createElement("canvas"),o=a.getContext("2d"),r=a.height*(window.devicePixelRatio||1),i=o.createLinearGradient(0,0,0,r),s=1/(n.length-1);return n.forEach((l,d)=>{const f=d*s;i.addColorStop(f,l)}),i}getPixelRatio(){return Math.max(1,window.devicePixelRatio||1)}renderBarWaveform(n,a,o,r){const i=n[0],s=n[1]||n[0],l=i.length,{width:d,height:f}=o.canvas,u=f/2,h=this.getPixelRatio(),m=a.barWidth?a.barWidth*h:1,p=a.barGap?a.barGap*h:a.barWidth?m/2:0,c=a.barRadius||0,g=d/(m+p)/l,y=c&&"roundRect"in o?"roundRect":"rect";o.beginPath();let b=0,w=0,E=0;for(let x=0;x<=l;x++){const v=Math.round(x*g);if(v>b){const C=Math.round(w*u*r),k=C+Math.round(E*u*r)||1;let N=u-C;a.barAlign==="top"?N=0:a.barAlign==="bottom"&&(N=f-k),o[y](b*(m+p),N,m,k,c),b=v,w=0,E=0}const D=Math.abs(i[x]||0),_=Math.abs(s[x]||0);D>w&&(w=D),_>E&&(E=_)}o.fill(),o.closePath()}renderLineWaveform(n,a,o,r){const i=s=>{const l=n[s]||n[0],d=l.length,{height:f}=o.canvas,u=f/2,h=o.canvas.width/d;o.moveTo(0,u);let m=0,p=0;for(let c=0;c<=d;c++){const g=Math.round(c*h);if(g>m){const b=u+(Math.round(p*u*r)||1)*(s===0?-1:1);o.lineTo(m,b),m=g,p=0}const y=Math.abs(l[c]||0);y>p&&(p=y)}o.lineTo(m,u)};o.beginPath(),i(0),i(1),o.fill(),o.closePath()}renderWaveform(n,a,o){if(o.fillStyle=this.convertColorValues(a.waveColor),a.renderFunction)return void a.renderFunction(n,o);let r=a.barHeight||1;if(a.normalize){const i=Array.from(n[0]).reduce((s,l)=>Math.max(s,Math.abs(l)),0);r=i?1/i:1}a.barWidth||a.barGap||a.barAlign?this.renderBarWaveform(n,a,o,r):this.renderLineWaveform(n,a,o,r)}renderSingleCanvas(n,a,o,r,i,s,l){const d=this.getPixelRatio(),f=document.createElement("canvas");f.width=Math.round(o*d),f.height=Math.round(r*d),f.style.width=`${o}px`,f.style.height=`${r}px`,f.style.left=`${Math.round(i)}px`,s.appendChild(f);const u=f.getContext("2d");if(this.renderWaveform(n,a,u),f.width>0&&f.height>0){const h=f.cloneNode(),m=h.getContext("2d");m.drawImage(f,0,0),m.globalCompositeOperation="source-in",m.fillStyle=this.convertColorValues(a.progressColor),m.fillRect(0,0,f.width,f.height),l.appendChild(h)}}renderMultiCanvas(n,a,o,r,i,s){const l=this.getPixelRatio(),{clientWidth:d}=this.scrollContainer,f=o/l;let u=Math.min(to.MAX_CANVAS_WIDTH,d,f),h={};if(a.barWidth||a.barGap){const y=a.barWidth||.5,b=y+(a.barGap||y/2);u%b!=0&&(u=Math.floor(u/b)*b)}if(u===0)return;const m=y=>{if(y<0||y>=p||h[y])return;h[y]=!0;const b=y*u;let w=Math.min(f-b,u);if(a.barWidth||a.barGap){const x=a.barWidth||.5,v=x+(a.barGap||x/2);w=Math.floor(w/v)*v}if(w<=0)return;const E=n.map(x=>{const v=Math.floor(b/f*x.length),D=Math.floor((b+w)/f*x.length);return x.slice(v,D)});this.renderSingleCanvas(E,a,w,r,b,i,s)},p=Math.ceil(f/u);if(!this.isScrollable){for(let y=0;y<p;y++)m(y);return}const c=this.scrollContainer.scrollLeft/f,g=Math.floor(c*p);if(m(g-1),m(g),m(g+1),p>1){const y=this.on("scroll",()=>{const{scrollLeft:b}=this.scrollContainer,w=Math.floor(b/f*p);Object.keys(h).length>to.MAX_NODES&&(i.innerHTML="",s.innerHTML="",h={}),m(w-1),m(w),m(w+1)});this.unsubscribeOnScroll.push(y)}}renderChannel(n,a,o,r){var{overlay:i}=a,s=function(u,h){var m={};for(var p in u)Object.prototype.hasOwnProperty.call(u,p)&&h.indexOf(p)<0&&(m[p]=u[p]);if(u!=null&&typeof Object.getOwnPropertySymbols=="function"){var c=0;for(p=Object.getOwnPropertySymbols(u);c<p.length;c++)h.indexOf(p[c])<0&&Object.prototype.propertyIsEnumerable.call(u,p[c])&&(m[p[c]]=u[p[c]])}return m}(a,["overlay"]);const l=document.createElement("div"),d=this.getHeight(s.height,s.splitChannels);l.style.height=`${d}px`,i&&r>0&&(l.style.marginTop=`-${d}px`),this.canvasWrapper.style.minHeight=`${d}px`,this.canvasWrapper.appendChild(l);const f=l.cloneNode();this.progressWrapper.appendChild(f),this.renderMultiCanvas(n,s,o,d,l,f)}render(n){return Ie(this,void 0,void 0,function*(){var a;this.timeouts.forEach(d=>d()),this.timeouts=[],this.canvasWrapper.innerHTML="",this.progressWrapper.innerHTML="",this.options.width!=null&&(this.scrollContainer.style.width=typeof this.options.width=="number"?`${this.options.width}px`:this.options.width);const o=this.getPixelRatio(),r=this.scrollContainer.clientWidth,i=Math.ceil(n.duration*(this.options.minPxPerSec||0));this.isScrollable=i>r;const s=this.options.fillParent&&!this.isScrollable,l=(s?r:i)*o;if(this.wrapper.style.width=s?"100%":`${i}px`,this.scrollContainer.style.overflowX=this.isScrollable?"auto":"hidden",this.scrollContainer.classList.toggle("noScrollbar",!!this.options.hideScrollbar),this.cursor.style.backgroundColor=`${this.options.cursorColor||this.options.progressColor}`,this.cursor.style.width=`${this.options.cursorWidth}px`,this.audioData=n,this.emit("render"),this.options.splitChannels)for(let d=0;d<n.numberOfChannels;d++){const f=Object.assign(Object.assign({},this.options),(a=this.options.splitChannels)===null||a===void 0?void 0:a[d]);this.renderChannel([n.getChannelData(d)],f,l,d)}else{const d=[n.getChannelData(0)];n.numberOfChannels>1&&d.push(n.getChannelData(1)),this.renderChannel(d,this.options,l,0)}Promise.resolve().then(()=>this.emit("rendered"))})}reRender(){if(this.unsubscribeOnScroll.forEach(o=>o()),this.unsubscribeOnScroll=[],!this.audioData)return;const{scrollWidth:n}=this.scrollContainer,{right:a}=this.progressWrapper.getBoundingClientRect();if(this.render(this.audioData),this.isScrollable&&n!==this.scrollContainer.scrollWidth){const{right:o}=this.progressWrapper.getBoundingClientRect();let r=o-a;r*=2,r=r<0?Math.floor(r):Math.ceil(r),r/=2,this.scrollContainer.scrollLeft+=r}}zoom(n){this.options.minPxPerSec=n,this.reRender()}scrollIntoView(n,a=!1){const{scrollLeft:o,scrollWidth:r,clientWidth:i}=this.scrollContainer,s=n*r,l=o,d=o+i,f=i/2;if(this.isDragging)s+30>d?this.scrollContainer.scrollLeft+=30:s-30<l&&(this.scrollContainer.scrollLeft-=30);else{(s<l||s>d)&&(this.scrollContainer.scrollLeft=s-(this.options.autoCenter?f:0));const u=s-o-f;a&&this.options.autoCenter&&u>0&&(this.scrollContainer.scrollLeft+=Math.min(u,10))}{const u=this.scrollContainer.scrollLeft,h=u/r,m=(u+i)/r;this.emit("scroll",h,m,u,u+i)}}renderProgress(n,a){if(isNaN(n))return;const o=100*n;this.canvasWrapper.style.clipPath=`polygon(${o}% 0%, 100% 0%, 100% 100%, ${o}% 100%)`,this.progressWrapper.style.width=`${o}%`,this.cursor.style.left=`${o}%`,this.cursor.style.transform=this.options.cursorWidth?`translateX(-${n*this.options.cursorWidth}px)`:"",this.isScrollable&&this.options.autoScroll&&this.scrollIntoView(n,a)}exportImage(n,a,o){return Ie(this,void 0,void 0,function*(){const r=this.canvasWrapper.querySelectorAll("canvas");if(!r.length)throw new Error("No waveform data");if(o==="dataURL"){const i=Array.from(r).map(s=>s.toDataURL(n,a));return Promise.resolve(i)}return Promise.all(Array.from(r).map(i=>new Promise((s,l)=>{i.toBlob(d=>{d?s(d):l(new Error("Could not export image"))},n,a)})))})}};Fa.MAX_CANVAS_WIDTH=8e3,Fa.MAX_NODES=10;class A3 extends rn{constructor(){super(...arguments),this.unsubscribe=()=>{}}start(){this.unsubscribe=this.on("tick",()=>{requestAnimationFrame(()=>{this.emit("tick")})}),this.emit("tick")}stop(){this.unsubscribe()}destroy(){this.unsubscribe()}}class $a extends rn{constructor(n=new AudioContext){super(),this.bufferNode=null,this.playStartTime=0,this.playedDuration=0,this._muted=!1,this._playbackRate=1,this._duration=void 0,this.buffer=null,this.currentSrc="",this.paused=!0,this.crossOrigin=null,this.seeking=!1,this.autoplay=!1,this.addEventListener=this.on,this.removeEventListener=this.un,this.audioContext=n,this.gainNode=this.audioContext.createGain(),this.gainNode.connect(this.audioContext.destination)}load(){return Ie(this,void 0,void 0,function*(){})}get src(){return this.currentSrc}set src(n){if(this.currentSrc=n,this._duration=void 0,!n)return this.buffer=null,void this.emit("emptied");fetch(n).then(a=>{if(a.status>=400)throw new Error(`Failed to fetch ${n}: ${a.status} (${a.statusText})`);return a.arrayBuffer()}).then(a=>this.currentSrc!==n?null:this.audioContext.decodeAudioData(a)).then(a=>{this.currentSrc===n&&(this.buffer=a,this.emit("loadedmetadata"),this.emit("canplay"),this.autoplay&&this.play())})}_play(){var n;if(!this.paused)return;this.paused=!1,(n=this.bufferNode)===null||n===void 0||n.disconnect(),this.bufferNode=this.audioContext.createBufferSource(),this.buffer&&(this.bufferNode.buffer=this.buffer),this.bufferNode.playbackRate.value=this._playbackRate,this.bufferNode.connect(this.gainNode);let a=this.playedDuration*this._playbackRate;(a>=this.duration||a<0)&&(a=0,this.playedDuration=0),this.bufferNode.start(this.audioContext.currentTime,a),this.playStartTime=this.audioContext.currentTime,this.bufferNode.onended=()=>{this.currentTime>=this.duration&&(this.pause(),this.emit("ended"))}}_pause(){var n;this.paused=!0,(n=this.bufferNode)===null||n===void 0||n.stop(),this.playedDuration+=this.audioContext.currentTime-this.playStartTime}play(){return Ie(this,void 0,void 0,function*(){this.paused&&(this._play(),this.emit("play"))})}pause(){this.paused||(this._pause(),this.emit("pause"))}stopAt(n){const a=n-this.currentTime,o=this.bufferNode;o==null||o.stop(this.audioContext.currentTime+a),o==null||o.addEventListener("ended",()=>{o===this.bufferNode&&(this.bufferNode=null,this.pause())},{once:!0})}setSinkId(n){return Ie(this,void 0,void 0,function*(){return this.audioContext.setSinkId(n)})}get playbackRate(){return this._playbackRate}set playbackRate(n){this._playbackRate=n,this.bufferNode&&(this.bufferNode.playbackRate.value=n)}get currentTime(){return(this.paused?this.playedDuration:this.playedDuration+(this.audioContext.currentTime-this.playStartTime))*this._playbackRate}set currentTime(n){const a=!this.paused;a&&this._pause(),this.playedDuration=n/this._playbackRate,a&&this._play(),this.emit("seeking"),this.emit("timeupdate")}get duration(){var n,a;return(n=this._duration)!==null&&n!==void 0?n:((a=this.buffer)===null||a===void 0?void 0:a.duration)||0}set duration(n){this._duration=n}get volume(){return this.gainNode.gain.value}set volume(n){this.gainNode.gain.value=n,this.emit("volumechange")}get muted(){return this._muted}set muted(n){this._muted!==n&&(this._muted=n,this._muted?this.gainNode.disconnect():this.gainNode.connect(this.audioContext.destination))}canPlayType(n){return/^(audio|video)\//.test(n)}getGainNode(){return this.gainNode}getChannelData(){const n=[];if(!this.buffer)return n;const a=this.buffer.numberOfChannels;for(let o=0;o<a;o++)n.push(this.buffer.getChannelData(o));return n}removeAttribute(n){switch(n){case"src":this.src="";break;case"playbackRate":this.playbackRate=0;break;case"currentTime":this.currentTime=0;break;case"duration":this.duration=0;break;case"volume":this.volume=0;break;case"muted":this.muted=!1}}}const T3={waveColor:"#999",progressColor:"#555",cursorWidth:1,minPxPerSec:0,fillParent:!0,interact:!0,dragToSeek:!1,autoScroll:!0,autoCenter:!0,sampleRate:8e3};let _a=class hi extends N3{static create(n){return new hi(n)}constructor(n){const a=n.media||(n.backend==="WebAudio"?new $a:void 0);super({media:a,mediaControls:n.mediaControls,autoplay:n.autoplay,playbackRate:n.audioRate}),this.plugins=[],this.decodedData=null,this.stopAtPosition=null,this.subscriptions=[],this.mediaSubscriptions=[],this.abortController=null,this.options=Object.assign({},T3,n),this.timer=new A3;const o=a?void 0:this.getMediaElement();this.renderer=new Fa(this.options,o),this.initPlayerEvents(),this.initRendererEvents(),this.initTimerEvents(),this.initPlugins();const r=this.options.url||this.getSrc()||"";Promise.resolve().then(()=>{this.emit("init");const{peaks:i,duration:s}=this.options;(r||i&&s)&&this.load(r,i,s).catch(()=>null)})}updateProgress(n=this.getCurrentTime()){return this.renderer.renderProgress(n/this.getDuration(),this.isPlaying()),n}initTimerEvents(){this.subscriptions.push(this.timer.on("tick",()=>{if(!this.isSeeking()){const n=this.updateProgress();this.emit("timeupdate",n),this.emit("audioprocess",n),this.stopAtPosition!=null&&this.isPlaying()&&n>=this.stopAtPosition&&this.pause()}}))}initPlayerEvents(){this.isPlaying()&&(this.emit("play"),this.timer.start()),this.mediaSubscriptions.push(this.onMediaEvent("timeupdate",()=>{const n=this.updateProgress();this.emit("timeupdate",n)}),this.onMediaEvent("play",()=>{this.emit("play"),this.timer.start()}),this.onMediaEvent("pause",()=>{this.emit("pause"),this.timer.stop(),this.stopAtPosition=null}),this.onMediaEvent("emptied",()=>{this.timer.stop(),this.stopAtPosition=null}),this.onMediaEvent("ended",()=>{this.emit("timeupdate",this.getDuration()),this.emit("finish"),this.stopAtPosition=null}),this.onMediaEvent("seeking",()=>{this.emit("seeking",this.getCurrentTime())}),this.onMediaEvent("error",()=>{var n;this.emit("error",(n=this.getMediaElement().error)!==null&&n!==void 0?n:new Error("Media error")),this.stopAtPosition=null}))}initRendererEvents(){this.subscriptions.push(this.renderer.on("click",(n,a)=>{this.options.interact&&(this.seekTo(n),this.emit("interaction",n*this.getDuration()),this.emit("click",n,a))}),this.renderer.on("dblclick",(n,a)=>{this.emit("dblclick",n,a)}),this.renderer.on("scroll",(n,a,o,r)=>{const i=this.getDuration();this.emit("scroll",n*i,a*i,o,r)}),this.renderer.on("render",()=>{this.emit("redraw")}),this.renderer.on("rendered",()=>{this.emit("redrawcomplete")}),this.renderer.on("dragstart",n=>{this.emit("dragstart",n)}),this.renderer.on("dragend",n=>{this.emit("dragend",n)}));{let n;this.subscriptions.push(this.renderer.on("drag",a=>{if(!this.options.interact)return;let o;this.renderer.renderProgress(a),clearTimeout(n),this.isPlaying()?o=0:this.options.dragToSeek===!0?o=200:typeof this.options.dragToSeek=="object"&&this.options.dragToSeek!==void 0&&(o=this.options.dragToSeek.debounceTime),n=setTimeout(()=>{this.seekTo(a)},o),this.emit("interaction",a*this.getDuration()),this.emit("drag",a)}))}}initPlugins(){var n;!((n=this.options.plugins)===null||n===void 0)&&n.length&&this.options.plugins.forEach(a=>{this.registerPlugin(a)})}unsubscribePlayerEvents(){this.mediaSubscriptions.forEach(n=>n()),this.mediaSubscriptions=[]}setOptions(n){this.options=Object.assign({},this.options,n),n.duration&&!n.peaks&&(this.decodedData=Hn.createBuffer(this.exportPeaks(),n.duration)),n.peaks&&n.duration&&(this.decodedData=Hn.createBuffer(n.peaks,n.duration)),this.renderer.setOptions(this.options),n.audioRate&&this.setPlaybackRate(n.audioRate),n.mediaControls!=null&&(this.getMediaElement().controls=n.mediaControls)}registerPlugin(n){if(this.plugins.includes(n))return n;n._init(this),this.plugins.push(n);const a=n.once("destroy",()=>{this.plugins=this.plugins.filter(o=>o!==n),this.subscriptions=this.subscriptions.filter(o=>o!==a)});return this.subscriptions.push(a),n}unregisterPlugin(n){this.plugins=this.plugins.filter(a=>a!==n),n.destroy()}getWrapper(){return this.renderer.getWrapper()}getWidth(){return this.renderer.getWidth()}getScroll(){return this.renderer.getScroll()}setScroll(n){return this.renderer.setScroll(n)}setScrollTime(n){const a=n/this.getDuration();this.renderer.setScrollPercentage(a)}getActivePlugins(){return this.plugins}loadAudio(n,a,o,r){return Ie(this,void 0,void 0,function*(){var i;if(this.emit("load",n),!this.options.media&&this.isPlaying()&&this.pause(),this.decodedData=null,this.stopAtPosition=null,!a&&!o){const l=this.options.fetchParams||{};window.AbortController&&!l.signal&&(this.abortController=new AbortController,l.signal=(i=this.abortController)===null||i===void 0?void 0:i.signal);const d=u=>this.emit("loading",u);a=yield M3.fetchBlob(n,d,l);const f=this.options.blobMimeType;f&&(a=new Blob([a],{type:f}))}this.setSrc(n,a);const s=yield new Promise(l=>{const d=r||this.getDuration();d?l(d):this.mediaSubscriptions.push(this.onMediaEvent("loadedmetadata",()=>l(this.getDuration()),{once:!0}))});if(!n&&!a){const l=this.getMediaElement();l instanceof $a&&(l.duration=s)}if(o)this.decodedData=Hn.createBuffer(o,s||0);else if(a){const l=yield a.arrayBuffer();this.decodedData=yield Hn.decode(l,this.options.sampleRate)}this.decodedData&&(this.emit("decode",this.getDuration()),this.renderer.render(this.decodedData)),this.emit("ready",this.getDuration())})}load(n,a,o){return Ie(this,void 0,void 0,function*(){try{return yield this.loadAudio(n,void 0,a,o)}catch(r){throw this.emit("error",r),r}})}loadBlob(n,a,o){return Ie(this,void 0,void 0,function*(){try{return yield this.loadAudio("",n,a,o)}catch(r){throw this.emit("error",r),r}})}zoom(n){if(!this.decodedData)throw new Error("No audio loaded");this.renderer.zoom(n),this.emit("zoom",n)}getDecodedData(){return this.decodedData}exportPeaks({channels:n=2,maxLength:a=8e3,precision:o=1e4}={}){if(!this.decodedData)throw new Error("The audio has not been decoded yet");const r=Math.min(n,this.decodedData.numberOfChannels),i=[];for(let s=0;s<r;s++){const l=this.decodedData.getChannelData(s),d=[],f=l.length/a;for(let u=0;u<a;u++){const h=l.slice(Math.floor(u*f),Math.ceil((u+1)*f));let m=0;for(let p=0;p<h.length;p++){const c=h[p];Math.abs(c)>Math.abs(m)&&(m=c)}d.push(Math.round(m*o)/o)}i.push(d)}return i}getDuration(){let n=super.getDuration()||0;return n!==0&&n!==1/0||!this.decodedData||(n=this.decodedData.duration),n}toggleInteraction(n){this.options.interact=n}setTime(n){this.stopAtPosition=null,super.setTime(n),this.updateProgress(n),this.emit("timeupdate",n)}seekTo(n){const a=this.getDuration()*n;this.setTime(a)}play(n,a){const o=Object.create(null,{play:{get:()=>super.play}});return Ie(this,void 0,void 0,function*(){n!=null&&this.setTime(n);const r=yield o.play.call(this);return a!=null&&(this.media instanceof $a?this.media.stopAt(a):this.stopAtPosition=a),r})}playPause(){return Ie(this,void 0,void 0,function*(){return this.isPlaying()?this.pause():this.play()})}stop(){this.pause(),this.setTime(0)}skip(n){this.setTime(this.getCurrentTime()+n)}empty(){this.load("",[[0]],.001)}setMediaElement(n){this.unsubscribePlayerEvents(),super.setMediaElement(n),this.initPlayerEvents()}exportImage(){return Ie(this,arguments,void 0,function*(n="image/png",a=1,o="dataURL"){return this.renderer.exportImage(n,a,o)})}destroy(){var n;this.emit("destroy"),(n=this.abortController)===null||n===void 0||n.abort(),this.plugins.forEach(a=>a.destroy()),this.subscriptions.forEach(a=>a()),this.unsubscribePlayerEvents(),this.timer.destroy(),this.renderer.destroy(),super.destroy()}};_a.BasePlugin=class extends rn{constructor(t){super(),this.subscriptions=[],this.isDestroyed=!1,this.options=t}onInit(){}_init(t){this.isDestroyed&&(this.subscriptions=[],this.isDestroyed=!1),this.wavesurfer=t,this.onInit()}destroy(){this.emit("destroy"),this.subscriptions.forEach(t=>t()),this.subscriptions=[],this.isDestroyed=!0,this.wavesurfer=void 0}},_a.dom=V3;const D3={components:{Avatar:ya},props:{audio:{type:String,required:!0},avatar:{type:[String,null],required:!0},isOwner:{type:Boolean}},emits:["duration","currentTime"],data(){return{wavesurfer:null,audioData:null,isPlaying:!1,duration:0,currentTime:0,isLoading:!0,playbackRate:1}},watch:{audio(t){this.loadAudio(t)}},mounted(){this.wavesurfer=_a.create({container:this.$refs.waveform,waveColor:"#165CF3",progressColor:"#AFAFAF",height:70,cursorWidth:14,cursorColor:"#fff",barWidth:4,barRadius:30,barHeight:.7,barGap:3,hideScrollbar:!0}),this.wavesurfer.on("ready",()=>{this.duration=this.wavesurfer.getDuration(),this.$emit("duration",this.duration),this.isLoading=!1}),this.wavesurfer.on("play",()=>{this.isPlaying=!0}),this.wavesurfer.on("pause",()=>{this.isPlaying=!1}),this.wavesurfer.on("finish",()=>{this.isPlaying=!1}),this.wavesurfer.on("audioprocess",()=>{this.currentTime=this.wavesurfer.getCurrentTime(),this.$emit("currentTime",this.currentTime)}),this.loadAudio(this.audio)},methods:{changeValue(){this.playbackRate===2?this.playbackRate=1:this.playbackRate+=.5,this.changePlaybackRate()},changePlaybackRate(){this.wavesurfer.setPlaybackRate(this.playbackRate)},loadAudio(t){if(this.isBase64(t)){const n=this.base64ToBlob(t);this.wavesurfer.loadBlob(n)}else this.wavesurfer.load(t)},isBase64(t){try{return btoa(atob(t))==t}catch{return!1}},base64ToBlob(t){const n=atob(t),a=new Array(n.length);for(let r=0;r<n.length;r++)a[r]=n.charCodeAt(r);const o=new Uint8Array(a);return new Blob([o],{type:"audio/mp3"})},playPause(){this.wavesurfer.playPause()}}},L3={class:"flex size-full min-w-[220px] select-none items-center justify-center space-x-2 pr-2 text-gray-200 dark:text-gray-700"},F3={key:0,class:"w-20"},$3={class:"fade relative"},_3={key:0,xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"w-8 fill-current"},P3={key:1,xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"w-10"},O3={class:"flex h-20 w-full items-center justify-center text-center"},R3={key:0,class:"loader-dots relative mx-auto flex h-5 w-full items-center justify-center"},H3={id:"waveform",ref:"waveform",style:{display:"block"},class:"w-full"},z3={key:1,class:"w-24 pl-3"},j3={class:"fade relative"};function G3(t,n,a,o,r,i){const s=e.resolveComponent("Avatar");return e.openBlock(),e.createElementBlock("div",L3,[a.isOwner?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("section",F3,[e.withDirectives(e.createElementVNode("main",$3,[e.createVNode(s,{url:a.avatar,class:"xl:size-[50px]"},null,8,["url"]),n[3]||(n[3]=e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"absolute -bottom-1 -right-1 w-5 rounded-full bg-emerald-500 p-1 text-white"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 18.75a6 6 0 006-6v-1.5m-6 7.5a6 6 0 01-6-6v-1.5m6 7.5v3.75m-3.75 0h7.5M12 15.75a3 3 0 01-3-3V4.5a3 3 0 116 0v8.25a3 3 0 01-3 3z"})],-1))],512),[[e.vShow,!r.isPlaying]]),e.withDirectives(e.createElementVNode("div",{class:"fade header relative flex size-12 cursor-pointer items-center justify-center rounded-full border-2 border-light dark:border-light",onClick:n[0]||(n[0]=(...l)=>i.changeValue&&i.changeValue(...l))},[e.createTextVNode(e.toDisplayString(r.playbackRate.toFixed(1))+"x ",1),n[4]||(n[4]=e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",class:"absolute bottom-[-11px] left-[28px] w-5 rounded-full bg-emerald-500 p-[4px] text-white",viewBox:"0 0 16 16"},[e.createElementVNode("path",{d:"M12.5 4a.5.5 0 0 0-1 0v3.248L5.233 3.612C4.693 3.3 4 3.678 4 4.308v7.384c0 .63.692 1.01 1.233.697L11.5 8.753V12a.5.5 0 0 0 1 0V4z"})],-1))],512),[[e.vShow,r.isPlaying]])])),e.createElementVNode("button",{class:"",onClick:n[1]||(n[1]=(...l)=>i.playPause&&i.playPause(...l))},[r.isPlaying?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("svg",_3,n[5]||(n[5]=[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M5.25 5.653c0-.856.917-1.398 1.667-.986l11.54 6.348a1.125 1.125 0 010 1.971l-11.54 6.347a1.125 1.125 0 01-1.667-.985V5.653z"},null,-1)]))),r.isPlaying?(e.openBlock(),e.createElementBlock("svg",P3,n[6]||(n[6]=[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15.75 5.25v13.5m-7.5-13.5v13.5"},null,-1)]))):e.createCommentVNode("",!0)]),e.createElementVNode("section",O3,[r.isLoading?(e.openBlock(),e.createElementBlock("div",R3,n[7]||(n[7]=[e.createElementVNode("div",{class:"absolute ml-5 mt-1 size-3 rounded-full bg-[#0FB2D6]"},null,-1),e.createElementVNode("div",{class:"absolute top-0 ml-5 mt-1 size-3 rounded-full bg-[#0FB2D6]"},null,-1),e.createElementVNode("div",{class:"absolute top-0 ml-5 mt-1 size-3 rounded-full bg-[#0FB2D6]"},null,-1),e.createElementVNode("div",{class:"absolute top-0 ml-5 mt-1 size-3 rounded-full bg-[#0FB2D6]"},null,-1)]))):e.createCommentVNode("",!0),e.withDirectives(e.createElementVNode("div",H3,null,512),[[e.vShow,!r.isLoading]])]),a.isOwner?(e.openBlock(),e.createElementBlock("section",z3,[e.withDirectives(e.createElementVNode("main",j3,[e.createVNode(s,{url:a.avatar,class:"xl:size-[50px]"},null,8,["url"]),n[8]||(n[8]=e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"absolute -bottom-2 -left-2 w-7 rounded-full bg-emerald-500 p-1 text-white"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 18.75a6 6 0 006-6v-1.5m-6 7.5a6 6 0 01-6-6v-1.5m6 7.5v3.75m-3.75 0h7.5M12 15.75a3 3 0 01-3-3V4.5a3 3 0 116 0v8.25a3 3 0 01-3 3z"})],-1))],512),[[e.vShow,!r.isPlaying]]),e.withDirectives(e.createElementVNode("div",{class:"fade header relative flex size-12 cursor-pointer items-center justify-center rounded-full border-2 border-light dark:border-light",onClick:n[2]||(n[2]=(...l)=>i.changeValue&&i.changeValue(...l))},[e.createTextVNode(e.toDisplayString(r.playbackRate.toFixed(1))+"x ",1),n[9]||(n[9]=e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",class:"absolute bottom-[-10px] right-[26px] w-7 rounded-full bg-emerald-500 p-[4px] text-white",viewBox:"0 0 16 16"},[e.createElementVNode("path",{d:"M12.5 4a.5.5 0 0 0-1 0v3.248L5.233 3.612C4.693 3.3 4 3.678 4 4.308v7.384c0 .63.692 1.01 1.233.697L11.5 8.753V12a.5.5 0 0 0 1 0V4z"})],-1))],512),[[e.vShow,r.isPlaying]])])):e.createCommentVNode("",!0)])}const i1=Ce(D3,[["render",G3]]),q3={key:0},I3=["src"],W3={key:1,class:"size-12 text-white","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"currentColor",viewBox:"0 0 24 24"},U3={class:"flex gap-2 items-center text-primary max-w-xs"},Z3={class:"truncate text-xs text-primary w-40 flex"},Y3={key:0,class:"flex gap-2"},X3={class:"video_message_preview"},K3={class:"label_video_hover"},Q3={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2",class:"absolute left-2 top-2 size-6",style:{transform:"rotate(135deg)"}},J3={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2",class:"absolute right-2 top-2 size-6",style:{transform:"rotate(-135deg)"}},e4={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2",class:"absolute bottom-2 left-2 size-6",style:{transform:"rotate(45deg)"}},t4={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2",class:"absolute bottom-2 right-2 size-6",style:{transform:"rotate(-45deg)"}},n4=["src"],a4={key:3},o4=["src"],r4=["src","type"],i4={key:1,class:"size-12 text-white","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"currentColor",viewBox:"0 0 24 24"},s4={key:0},l4={class:"video_message_preview"},c4={class:"label_video_hover"},d4={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2",class:"absolute left-2 top-2 size-6",style:{transform:"rotate(135deg)"}},u4={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2",class:"absolute right-2 top-2 size-6",style:{transform:"rotate(-135deg)"}},m4={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2",class:"absolute bottom-2 left-2 size-6",style:{transform:"rotate(45deg)"}},f4={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2",class:"absolute bottom-2 right-2 size-6",style:{transform:"rotate(-45deg)"}},h4=["src"],p4={key:1,class:"size-full"},g4={key:4},y4={key:0,class:"w-full px-4"},k4={key:1,class:"size-12 text-white","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"currentColor",viewBox:"0 0 24 24"},x4={key:0,class:"span_generic_files"},b4={class:"truncate"},w4={key:6,class:"flex flex-col w-full"},E4={key:0,class:"preview_audio_time"},Pa=Ce({__name:"previewFiles",props:{isMobile:{type:Boolean,default:!1},base64:{type:String},mimetype:{type:String},mode:{type:String,default:"message"},fileName:{type:String},avatar:{type:[String,null],required:!0}},setup(t){const n=t,a=e.ref(null),o=e.ref(null),r=e.ref(0),i=e.computed(()=>n.mimetype==="application/pdf"),s=e.computed(()=>["image/png","image/jpeg","image/svg+xml"].includes(n.mimetype)),l=e.computed(()=>["audio/mpeg","audio/mp4","audio/mp3","audio/aac"].includes(n.mimetype)),d=c=>c?c.startsWith("video/"):void 0,f=async(c,g,y="")=>{n.mode!=="miniature"&&(d(g)?_e.show([{type:"html",src:c,html:`
|
|
88
|
+
`,[n,a]}setOptions(n){if(this.options.container!==n.container){const a=this.parentFromOptionsContainer(n.container);a.appendChild(this.container),this.parent=a}n.dragToSeek!==!0&&typeof this.options.dragToSeek!="object"||this.initDrag(),this.options=n,this.reRender()}getWrapper(){return this.wrapper}getWidth(){return this.scrollContainer.clientWidth}getScroll(){return this.scrollContainer.scrollLeft}setScroll(n){this.scrollContainer.scrollLeft=n}setScrollPercentage(n){const{scrollWidth:a}=this.scrollContainer,o=a*n;this.setScroll(o)}destroy(){var n;this.subscriptions.forEach(a=>a()),this.container.remove(),this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null),(n=this.unsubscribeOnScroll)===null||n===void 0||n.forEach(a=>a()),this.unsubscribeOnScroll=[]}createDelay(n=10){let a,o;const r=()=>{a&&(clearTimeout(a),a=void 0),o&&(o(),o=void 0)};return this.timeouts.push(r),()=>new Promise((i,s)=>{r(),o=s,a=setTimeout(()=>{a=void 0,o=void 0,i()},n)})}getHeight(n,a){var o;const r=((o=this.audioData)===null||o===void 0?void 0:o.numberOfChannels)||1;return function({optionsHeight:i,optionsSplitChannels:s,parentHeight:l,numberOfChannels:d,defaultHeight:u=128}){if(i==null)return u;const c=Number(i);if(!isNaN(c))return c;if(i==="auto"){const h=l||u;return s!=null&&s.every(m=>!m.overlay)?h/d:h}return u}({optionsHeight:n,optionsSplitChannels:a,parentHeight:this.parent.clientHeight,numberOfChannels:r,defaultHeight:128})}convertColorValues(n){return function(a,o){if(!Array.isArray(a))return a||"";if(a.length===0)return"#999";if(a.length<2)return a[0]||"";const r=document.createElement("canvas"),i=r.getContext("2d"),s=r.height*o,l=i.createLinearGradient(0,0,0,s||o),d=1/(a.length-1);return a.forEach((u,c)=>{l.addColorStop(c*d,u)}),l}(n,this.getPixelRatio())}getPixelRatio(){return n=window.devicePixelRatio,Math.max(1,n||1);var n}renderBarWaveform(n,a,o,r){const{width:i,height:s}=o.canvas,{halfHeight:l,barWidth:d,barRadius:u,barIndexScale:c,barSpacing:h}=function({width:p,height:f,length:g,options:y,pixelRatio:k}){const E=f/2,C=y.barWidth?y.barWidth*k:1,b=y.barGap?y.barGap*k:y.barWidth?C/2:0,N=C+b||1;return{halfHeight:E,barWidth:C,barGap:b,barRadius:y.barRadius||0,barIndexScale:g>0?p/N/g:0,barSpacing:N}}({width:i,height:s,length:(n[0]||[]).length,options:a,pixelRatio:this.getPixelRatio()}),m=function({channelData:p,barIndexScale:f,barSpacing:g,barWidth:y,halfHeight:k,vScale:E,canvasHeight:C,barAlign:b}){const N=p[0]||[],D=p[1]||N,z=N.length,M=[];let x=0,T=0,B=0;for(let V=0;V<=z;V++){const S=Math.round(V*f);if(S>x){const{topHeight:Z,totalHeight:Q}=e4({maxTop:T,maxBottom:B,halfHeight:k,vScale:E}),J=t4({barAlign:b,halfHeight:k,topHeight:Z,totalHeight:Q,canvasHeight:C});M.push({x:x*g,y:J,width:y,height:Q}),x=S,T=0,B=0}const v=Math.abs(N[V]||0),P=Math.abs(D[V]||0);v>T&&(T=v),P>B&&(B=P)}return M}({channelData:n,barIndexScale:c,barSpacing:h,barWidth:d,halfHeight:l,vScale:r,canvasHeight:s,barAlign:a.barAlign});o.beginPath();for(const p of m)u&&"roundRect"in o?o.roundRect(p.x,p.y,p.width,p.height,u):o.rect(p.x,p.y,p.width,p.height);o.fill(),o.closePath()}renderLineWaveform(n,a,o,r){const{width:i,height:s}=o.canvas,l=function({channelData:d,width:u,height:c,vScale:h}){const m=c/2,p=d[0]||[];return[p,d[1]||p].map((f,g)=>{const y=f.length,k=y?u/y:0,E=m,C=g===0?-1:1,b=[{x:0,y:E}];let N=0,D=0;for(let z=0;z<=y;z++){const M=Math.round(z*k);if(M>N){const T=E+(Math.round(D*m*h)||1)*C;b.push({x:N,y:T}),N=M,D=0}const x=Math.abs(f[z]||0);x>D&&(D=x)}return b.push({x:N,y:E}),b})}({channelData:n,width:i,height:s,vScale:r});o.beginPath();for(const d of l)if(d.length){o.moveTo(d[0].x,d[0].y);for(let u=1;u<d.length;u++){const c=d[u];o.lineTo(c.x,c.y)}}o.fill(),o.closePath()}renderWaveform(n,a,o){if(o.fillStyle=this.convertColorValues(a.waveColor),a.renderFunction)return void a.renderFunction(n,o);const r=function({channelData:i,barHeight:s,normalize:l}){var d;const u=s||1;if(!l)return u;const c=i[0];if(!c||c.length===0)return u;let h=0;for(let m=0;m<c.length;m++){const p=(d=c[m])!==null&&d!==void 0?d:0,f=Math.abs(p);f>h&&(h=f)}return h?u/h:u}({channelData:n,barHeight:a.barHeight,normalize:a.normalize});S1(a)?this.renderBarWaveform(n,a,o,r):this.renderLineWaveform(n,a,o,r)}renderSingleCanvas(n,a,o,r,i,s,l){const d=this.getPixelRatio(),u=document.createElement("canvas");u.width=Math.round(o*d),u.height=Math.round(r*d),u.style.width=`${o}px`,u.style.height=`${r}px`,u.style.left=`${Math.round(i)}px`,s.appendChild(u);const c=u.getContext("2d");if(a.renderFunction?(c.fillStyle=this.convertColorValues(a.waveColor),a.renderFunction(n,c)):this.renderWaveform(n,a,c),u.width>0&&u.height>0){const h=u.cloneNode(),m=h.getContext("2d");m.drawImage(u,0,0),m.globalCompositeOperation="source-in",m.fillStyle=this.convertColorValues(a.progressColor),m.fillRect(0,0,u.width,u.height),l.appendChild(h)}}renderMultiCanvas(n,a,o,r,i,s){const l=this.getPixelRatio(),{clientWidth:d}=this.scrollContainer,u=o/l,c=function({clientWidth:f,totalWidth:g,options:y}){return B1(Math.min(8e3,f,g),y)}({clientWidth:d,totalWidth:u,options:a});let h={};if(c===0)return;const m=f=>{if(f<0||f>=p||h[f])return;h[f]=!0;const g=f*c;let y=Math.min(u-g,c);if(y=B1(y,a),y<=0)return;const k=function({channelData:E,offset:C,clampedWidth:b,totalWidth:N}){return E.map(D=>{const z=Math.floor(C/N*D.length),M=Math.floor((C+b)/N*D.length);return D.slice(z,M)})}({channelData:n,offset:g,clampedWidth:y,totalWidth:u});this.renderSingleCanvas(k,a,y,r,g,i,s)},p=Math.ceil(u/c);if(!this.isScrollable){for(let f=0;f<p;f++)m(f);return}if(V1({scrollLeft:this.scrollContainer.scrollLeft,totalWidth:u,numCanvases:p}).forEach(f=>m(f)),p>1){const f=this.on("scroll",()=>{const{scrollLeft:g}=this.scrollContainer;Object.keys(h).length>10&&(i.innerHTML="",s.innerHTML="",h={}),V1({scrollLeft:g,totalWidth:u,numCanvases:p}).forEach(y=>m(y))});this.unsubscribeOnScroll.push(f)}}renderChannel(n,a,o,r){var{overlay:i}=a,s=function(c,h){var m={};for(var p in c)Object.prototype.hasOwnProperty.call(c,p)&&h.indexOf(p)<0&&(m[p]=c[p]);if(c!=null&&typeof Object.getOwnPropertySymbols=="function"){var f=0;for(p=Object.getOwnPropertySymbols(c);f<p.length;f++)h.indexOf(p[f])<0&&Object.prototype.propertyIsEnumerable.call(c,p[f])&&(m[p[f]]=c[p[f]])}return m}(a,["overlay"]);const l=document.createElement("div"),d=this.getHeight(s.height,s.splitChannels);l.style.height=`${d}px`,i&&r>0&&(l.style.marginTop=`-${d}px`),this.canvasWrapper.style.minHeight=`${d}px`,this.canvasWrapper.appendChild(l);const u=l.cloneNode();this.progressWrapper.appendChild(u),this.renderMultiCanvas(n,s,o,d,l,u)}render(n){return et(this,void 0,void 0,function*(){var a;this.timeouts.forEach(u=>u()),this.timeouts=[],this.canvasWrapper.innerHTML="",this.progressWrapper.innerHTML="",this.options.width!=null&&(this.scrollContainer.style.width=typeof this.options.width=="number"?`${this.options.width}px`:this.options.width);const o=this.getPixelRatio(),r=this.scrollContainer.clientWidth,{scrollWidth:i,isScrollable:s,useParentWidth:l,width:d}=function({duration:u,minPxPerSec:c=0,parentWidth:h,fillParent:m,pixelRatio:p}){const f=Math.ceil(u*c),g=f>h,y=!!(m&&!g);return{scrollWidth:f,isScrollable:g,useParentWidth:y,width:(y?h:f)*p}}({duration:n.duration,minPxPerSec:this.options.minPxPerSec||0,parentWidth:r,fillParent:this.options.fillParent,pixelRatio:o});if(this.isScrollable=s,this.wrapper.style.width=l?"100%":`${i}px`,this.scrollContainer.style.overflowX=this.isScrollable?"auto":"hidden",this.scrollContainer.classList.toggle("noScrollbar",!!this.options.hideScrollbar),this.cursor.style.backgroundColor=`${this.options.cursorColor||this.options.progressColor}`,this.cursor.style.width=`${this.options.cursorWidth}px`,this.audioData=n,this.emit("render"),this.options.splitChannels)for(let u=0;u<n.numberOfChannels;u++){const c=Object.assign(Object.assign({},this.options),(a=this.options.splitChannels)===null||a===void 0?void 0:a[u]);this.renderChannel([n.getChannelData(u)],c,d,u)}else{const u=[n.getChannelData(0)];n.numberOfChannels>1&&u.push(n.getChannelData(1)),this.renderChannel(u,this.options,d,0)}Promise.resolve().then(()=>this.emit("rendered"))})}reRender(){if(this.unsubscribeOnScroll.forEach(o=>o()),this.unsubscribeOnScroll=[],!this.audioData)return;const{scrollWidth:n}=this.scrollContainer,{right:a}=this.progressWrapper.getBoundingClientRect();if(this.render(this.audioData),this.isScrollable&&n!==this.scrollContainer.scrollWidth){const{right:o}=this.progressWrapper.getBoundingClientRect(),r=function(i){const s=2*i;return(s<0?Math.floor(s):Math.ceil(s))/2}(o-a);this.scrollContainer.scrollLeft+=r}}zoom(n){this.options.minPxPerSec=n,this.reRender()}scrollIntoView(n,a=!1){const{scrollLeft:o,scrollWidth:r,clientWidth:i}=this.scrollContainer,s=n*r,l=o,d=o+i,u=i/2;if(this.isDragging)s+30>d?this.scrollContainer.scrollLeft+=30:s-30<l&&(this.scrollContainer.scrollLeft-=30);else{(s<l||s>d)&&(this.scrollContainer.scrollLeft=s-(this.options.autoCenter?u:0));const c=s-o-u;a&&this.options.autoCenter&&c>0&&(this.scrollContainer.scrollLeft+=c)}{const c=this.scrollContainer.scrollLeft,{startX:h,endX:m}=M1({scrollLeft:c,scrollWidth:r,clientWidth:i});this.emit("scroll",h,m,c,c+i)}}renderProgress(n,a){if(isNaN(n))return;const o=100*n;this.canvasWrapper.style.clipPath=`polygon(${o}% 0%, 100% 0%, 100% 100%, ${o}% 100%)`,this.progressWrapper.style.width=`${o}%`,this.cursor.style.left=`${o}%`,this.cursor.style.transform=this.options.cursorWidth?`translateX(-${n*this.options.cursorWidth}px)`:"",this.isScrollable&&this.options.autoScroll&&this.scrollIntoView(n,a)}exportImage(n,a,o){return et(this,void 0,void 0,function*(){const r=this.canvasWrapper.querySelectorAll("canvas");if(!r.length)throw new Error("No waveform data");if(o==="dataURL"){const i=Array.from(r).map(s=>s.toDataURL(n,a));return Promise.resolve(i)}return Promise.all(Array.from(r).map(i=>new Promise((s,l)=>{i.toBlob(d=>{d?s(d):l(new Error("Could not export image"))},n,a)})))})}}let a4=class extends xn{constructor(){super(...arguments),this.animationFrameId=null,this.isRunning=!1}start(){if(this.isRunning)return;this.isRunning=!0;const n=()=>{this.isRunning&&(this.emit("tick"),this.animationFrameId=requestAnimationFrame(n))};n()}stop(){this.isRunning=!1,this.animationFrameId!==null&&(cancelAnimationFrame(this.animationFrameId),this.animationFrameId=null)}destroy(){this.stop()}};class Za extends xn{constructor(n=new AudioContext){super(),this.bufferNode=null,this.playStartTime=0,this.playedDuration=0,this._muted=!1,this._playbackRate=1,this._duration=void 0,this.buffer=null,this.currentSrc="",this.paused=!0,this.crossOrigin=null,this.seeking=!1,this.autoplay=!1,this.addEventListener=this.on,this.removeEventListener=this.un,this.audioContext=n,this.gainNode=this.audioContext.createGain(),this.gainNode.connect(this.audioContext.destination)}load(){return et(this,void 0,void 0,function*(){})}get src(){return this.currentSrc}set src(n){if(this.currentSrc=n,this._duration=void 0,!n)return this.buffer=null,void this.emit("emptied");fetch(n).then(a=>{if(a.status>=400)throw new Error(`Failed to fetch ${n}: ${a.status} (${a.statusText})`);return a.arrayBuffer()}).then(a=>this.currentSrc!==n?null:this.audioContext.decodeAudioData(a)).then(a=>{this.currentSrc===n&&(this.buffer=a,this.emit("loadedmetadata"),this.emit("canplay"),this.autoplay&&this.play())}).catch(a=>{console.error("WebAudioPlayer load error:",a)})}_play(){if(!this.paused)return;this.paused=!1,this.bufferNode&&(this.bufferNode.onended=null,this.bufferNode.disconnect()),this.bufferNode=this.audioContext.createBufferSource(),this.buffer&&(this.bufferNode.buffer=this.buffer),this.bufferNode.playbackRate.value=this._playbackRate,this.bufferNode.connect(this.gainNode);let n=this.playedDuration*this._playbackRate;(n>=this.duration||n<0)&&(n=0,this.playedDuration=0),this.bufferNode.start(this.audioContext.currentTime,n),this.playStartTime=this.audioContext.currentTime,this.bufferNode.onended=()=>{this.currentTime>=this.duration&&(this.pause(),this.emit("ended"))}}_pause(){var n;this.paused=!0,(n=this.bufferNode)===null||n===void 0||n.stop(),this.playedDuration+=this.audioContext.currentTime-this.playStartTime}play(){return et(this,void 0,void 0,function*(){this.paused&&(this._play(),this.emit("play"))})}pause(){this.paused||(this._pause(),this.emit("pause"))}stopAt(n){const a=n-this.currentTime,o=this.bufferNode;o==null||o.stop(this.audioContext.currentTime+a),o==null||o.addEventListener("ended",()=>{o===this.bufferNode&&(this.bufferNode=null,this.pause())},{once:!0})}setSinkId(n){return et(this,void 0,void 0,function*(){return this.audioContext.setSinkId(n)})}get playbackRate(){return this._playbackRate}set playbackRate(n){this._playbackRate=n,this.bufferNode&&(this.bufferNode.playbackRate.value=n)}get currentTime(){return(this.paused?this.playedDuration:this.playedDuration+(this.audioContext.currentTime-this.playStartTime))*this._playbackRate}set currentTime(n){const a=!this.paused;a&&this._pause(),this.playedDuration=n/this._playbackRate,a&&this._play(),this.emit("seeking"),this.emit("timeupdate")}get duration(){var n,a;return(n=this._duration)!==null&&n!==void 0?n:((a=this.buffer)===null||a===void 0?void 0:a.duration)||0}set duration(n){this._duration=n}get volume(){return this.gainNode.gain.value}set volume(n){this.gainNode.gain.value=n,this.emit("volumechange")}get muted(){return this._muted}set muted(n){this._muted!==n&&(this._muted=n,this._muted?this.gainNode.disconnect():this.gainNode.connect(this.audioContext.destination))}canPlayType(n){return/^(audio|video)\//.test(n)}getGainNode(){return this.gainNode}getChannelData(){const n=[];if(!this.buffer)return n;const a=this.buffer.numberOfChannels;for(let o=0;o<a;o++)n.push(this.buffer.getChannelData(o));return n}removeAttribute(n){switch(n){case"src":this.src="";break;case"playbackRate":this.playbackRate=0;break;case"currentTime":this.currentTime=0;break;case"duration":this.duration=0;break;case"volume":this.volume=0;break;case"muted":this.muted=!1}}}const o4={waveColor:"#999",progressColor:"#555",cursorWidth:1,minPxPerSec:0,fillParent:!0,interact:!0,dragToSeek:!1,autoScroll:!0,autoCenter:!0,sampleRate:8e3};class bn extends J3{static create(n){return new bn(n)}constructor(n){const a=n.media||(n.backend==="WebAudio"?new Za:void 0);super({media:a,mediaControls:n.mediaControls,autoplay:n.autoplay,playbackRate:n.audioRate}),this.plugins=[],this.decodedData=null,this.stopAtPosition=null,this.subscriptions=[],this.mediaSubscriptions=[],this.abortController=null,this.options=Object.assign({},o4,n),this.timer=new a4;const o=a?void 0:this.getMediaElement();this.renderer=new n4(this.options,o),this.initPlayerEvents(),this.initRendererEvents(),this.initTimerEvents(),this.initPlugins();const r=this.options.url||this.getSrc()||"";Promise.resolve().then(()=>{this.emit("init");const{peaks:i,duration:s}=this.options;(r||i&&s)&&this.load(r,i,s).catch(l=>{this.emit("error",l instanceof Error?l:new Error(String(l)))})})}updateProgress(n=this.getCurrentTime()){return this.renderer.renderProgress(n/this.getDuration(),this.isPlaying()),n}initTimerEvents(){this.subscriptions.push(this.timer.on("tick",()=>{if(!this.isSeeking()){const n=this.updateProgress();this.emit("timeupdate",n),this.emit("audioprocess",n),this.stopAtPosition!=null&&this.isPlaying()&&n>=this.stopAtPosition&&this.pause()}}))}initPlayerEvents(){this.isPlaying()&&(this.emit("play"),this.timer.start()),this.mediaSubscriptions.push(this.onMediaEvent("timeupdate",()=>{const n=this.updateProgress();this.emit("timeupdate",n)}),this.onMediaEvent("play",()=>{this.emit("play"),this.timer.start()}),this.onMediaEvent("pause",()=>{this.emit("pause"),this.timer.stop(),this.stopAtPosition=null}),this.onMediaEvent("emptied",()=>{this.timer.stop(),this.stopAtPosition=null}),this.onMediaEvent("ended",()=>{this.emit("timeupdate",this.getDuration()),this.emit("finish"),this.stopAtPosition=null}),this.onMediaEvent("seeking",()=>{this.emit("seeking",this.getCurrentTime())}),this.onMediaEvent("error",()=>{var n;this.emit("error",(n=this.getMediaElement().error)!==null&&n!==void 0?n:new Error("Media error")),this.stopAtPosition=null}))}initRendererEvents(){this.subscriptions.push(this.renderer.on("click",(n,a)=>{this.options.interact&&(this.seekTo(n),this.emit("interaction",n*this.getDuration()),this.emit("click",n,a))}),this.renderer.on("dblclick",(n,a)=>{this.emit("dblclick",n,a)}),this.renderer.on("scroll",(n,a,o,r)=>{const i=this.getDuration();this.emit("scroll",n*i,a*i,o,r)}),this.renderer.on("render",()=>{this.emit("redraw")}),this.renderer.on("rendered",()=>{this.emit("redrawcomplete")}),this.renderer.on("dragstart",n=>{this.emit("dragstart",n)}),this.renderer.on("dragend",n=>{this.emit("dragend",n)}),this.renderer.on("resize",()=>{this.emit("resize")}));{let n;const a=this.renderer.on("drag",o=>{var r;if(!this.options.interact)return;this.renderer.renderProgress(o),clearTimeout(n);let i=0;const s=this.options.dragToSeek;this.isPlaying()?i=0:s===!0?i=200:s&&typeof s=="object"&&(i=(r=s.debounceTime)!==null&&r!==void 0?r:200),n=setTimeout(()=>{this.seekTo(o)},i),this.emit("interaction",o*this.getDuration()),this.emit("drag",o)});this.subscriptions.push(()=>{clearTimeout(n),a()})}}initPlugins(){var n;!((n=this.options.plugins)===null||n===void 0)&&n.length&&this.options.plugins.forEach(a=>{this.registerPlugin(a)})}unsubscribePlayerEvents(){this.mediaSubscriptions.forEach(n=>n()),this.mediaSubscriptions=[]}setOptions(n){this.options=Object.assign({},this.options,n),n.duration&&!n.peaks&&(this.decodedData=Jn.createBuffer(this.exportPeaks(),n.duration)),n.peaks&&n.duration&&(this.decodedData=Jn.createBuffer(n.peaks,n.duration)),this.renderer.setOptions(this.options),n.audioRate&&this.setPlaybackRate(n.audioRate),n.mediaControls!=null&&(this.getMediaElement().controls=n.mediaControls)}registerPlugin(n){if(this.plugins.includes(n))return n;n._init(this),this.plugins.push(n);const a=n.once("destroy",()=>{this.plugins=this.plugins.filter(o=>o!==n),this.subscriptions=this.subscriptions.filter(o=>o!==a)});return this.subscriptions.push(a),n}unregisterPlugin(n){this.plugins=this.plugins.filter(a=>a!==n),n.destroy()}getWrapper(){return this.renderer.getWrapper()}getWidth(){return this.renderer.getWidth()}getScroll(){return this.renderer.getScroll()}setScroll(n){return this.renderer.setScroll(n)}setScrollTime(n){const a=n/this.getDuration();this.renderer.setScrollPercentage(a)}getActivePlugins(){return this.plugins}loadAudio(n,a,o,r){return et(this,void 0,void 0,function*(){var i;if(this.emit("load",n),!this.options.media&&this.isPlaying()&&this.pause(),this.decodedData=null,this.stopAtPosition=null,(i=this.abortController)===null||i===void 0||i.abort(),this.abortController=null,!a&&!o){const l=this.options.fetchParams||{};window.AbortController&&!l.signal&&(this.abortController=new AbortController,l.signal=this.abortController.signal);const d=c=>this.emit("loading",c);a=yield Q3.fetchBlob(n,d,l);const u=this.options.blobMimeType;u&&(a=new Blob([a],{type:u}))}this.setSrc(n,a);const s=yield new Promise(l=>{const d=r||this.getDuration();d?l(d):this.mediaSubscriptions.push(this.onMediaEvent("loadedmetadata",()=>l(this.getDuration()),{once:!0}))});if(!n&&!a){const l=this.getMediaElement();l instanceof Za&&(l.duration=s)}if(o)this.decodedData=Jn.createBuffer(o,s||0);else if(a){const l=yield a.arrayBuffer();this.decodedData=yield Jn.decode(l,this.options.sampleRate)}this.decodedData&&(this.emit("decode",this.getDuration()),this.renderer.render(this.decodedData)),this.emit("ready",this.getDuration())})}load(n,a,o){return et(this,void 0,void 0,function*(){try{return yield this.loadAudio(n,void 0,a,o)}catch(r){throw this.emit("error",r),r}})}loadBlob(n,a,o){return et(this,void 0,void 0,function*(){try{return yield this.loadAudio("",n,a,o)}catch(r){throw this.emit("error",r),r}})}zoom(n){if(!this.decodedData)throw new Error("No audio loaded");this.renderer.zoom(n),this.emit("zoom",n)}getDecodedData(){return this.decodedData}exportPeaks({channels:n=2,maxLength:a=8e3,precision:o=1e4}={}){if(!this.decodedData)throw new Error("The audio has not been decoded yet");const r=Math.min(n,this.decodedData.numberOfChannels),i=[];for(let s=0;s<r;s++){const l=this.decodedData.getChannelData(s),d=[],u=l.length/a;for(let c=0;c<a;c++){const h=l.slice(Math.floor(c*u),Math.ceil((c+1)*u));let m=0;for(let p=0;p<h.length;p++){const f=h[p];Math.abs(f)>Math.abs(m)&&(m=f)}d.push(Math.round(m*o)/o)}i.push(d)}return i}getDuration(){let n=super.getDuration()||0;return n!==0&&n!==1/0||!this.decodedData||(n=this.decodedData.duration),n}toggleInteraction(n){this.options.interact=n}setTime(n){this.stopAtPosition=null,super.setTime(n),this.updateProgress(n),this.emit("timeupdate",n)}seekTo(n){const a=this.getDuration()*n;this.setTime(a)}play(n,a){const o=Object.create(null,{play:{get:()=>super.play}});return et(this,void 0,void 0,function*(){n!=null&&this.setTime(n);const r=yield o.play.call(this);return a!=null&&(this.media instanceof Za?this.media.stopAt(a):this.stopAtPosition=a),r})}playPause(){return et(this,void 0,void 0,function*(){return this.isPlaying()?this.pause():this.play()})}stop(){this.pause(),this.setTime(0)}skip(n){this.setTime(this.getCurrentTime()+n)}empty(){this.load("",[[0]],.001)}setMediaElement(n){this.unsubscribePlayerEvents(),super.setMediaElement(n),this.initPlayerEvents()}exportImage(){return et(this,arguments,void 0,function*(n="image/png",a=1,o="dataURL"){return this.renderer.exportImage(n,a,o)})}destroy(){var n;this.emit("destroy"),(n=this.abortController)===null||n===void 0||n.abort(),this.plugins.forEach(a=>a.destroy()),this.subscriptions.forEach(a=>a()),this.unsubscribePlayerEvents(),this.timer.destroy(),this.renderer.destroy(),super.destroy()}}bn.BasePlugin=class extends xn{constructor(t){super(),this.subscriptions=[],this.isDestroyed=!1,this.options=t}onInit(){}_init(t){this.isDestroyed&&(this.subscriptions=[],this.isDestroyed=!1),this.wavesurfer=t,this.onInit()}destroy(){this.emit("destroy"),this.subscriptions.forEach(t=>t()),this.subscriptions=[],this.isDestroyed=!0,this.wavesurfer=void 0}},bn.dom=K3;const r4={components:{Avatar:Na},props:{audio:{type:String,required:!0},avatar:{type:[String,null],required:!0},isOwner:{type:Boolean}},emits:["duration","currentTime"],data(){return{wavesurfer:null,audioData:null,isPlaying:!1,duration:0,currentTime:0,isLoading:!0,playbackRate:1}},watch:{audio(t){this.loadAudio(t)}},mounted(){this.wavesurfer=bn.create({container:this.$refs.waveform,waveColor:"#165CF3",progressColor:"#AFAFAF",height:70,cursorWidth:14,cursorColor:"#fff",barWidth:4,barRadius:30,barHeight:.7,barGap:3,hideScrollbar:!0}),this.wavesurfer.on("ready",()=>{this.duration=this.wavesurfer.getDuration(),this.$emit("duration",this.duration),this.isLoading=!1}),this.wavesurfer.on("play",()=>{this.isPlaying=!0}),this.wavesurfer.on("pause",()=>{this.isPlaying=!1}),this.wavesurfer.on("finish",()=>{this.isPlaying=!1}),this.wavesurfer.on("audioprocess",()=>{this.currentTime=this.wavesurfer.getCurrentTime(),this.$emit("currentTime",this.currentTime)}),this.loadAudio(this.audio)},methods:{changeValue(){this.playbackRate===2?this.playbackRate=1:this.playbackRate+=.5,this.changePlaybackRate()},changePlaybackRate(){this.wavesurfer.setPlaybackRate(this.playbackRate)},loadAudio(t){if(this.isBase64(t)){const n=this.base64ToBlob(t);this.wavesurfer.loadBlob(n)}else this.wavesurfer.load(t)},isBase64(t){try{return btoa(atob(t))==t}catch{return!1}},base64ToBlob(t){const n=atob(t),a=new Array(n.length);for(let r=0;r<n.length;r++)a[r]=n.charCodeAt(r);const o=new Uint8Array(a);return new Blob([o],{type:"audio/mp3"})},playPause(){this.wavesurfer.playPause()}}},i4={class:"flex size-full min-w-[220px] select-none items-center justify-center space-x-2 pr-2 text-gray-200 dark:text-gray-700"},s4={key:0,class:"w-20"},l4={class:"fade relative"},c4={key:0,xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"w-8 fill-current"},d4={key:1,xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"w-10"},u4={class:"flex h-20 w-full items-center justify-center text-center"},f4={key:0,class:"loader-dots relative mx-auto flex h-5 w-full items-center justify-center"},m4={id:"waveform",ref:"waveform",style:{display:"block"},class:"w-full"},h4={key:1,class:"w-24 pl-3"},p4={class:"fade relative"};function g4(t,n,a,o,r,i){const s=e.resolveComponent("Avatar");return e.openBlock(),e.createElementBlock("div",i4,[a.isOwner?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("section",s4,[e.withDirectives(e.createElementVNode("main",l4,[e.createVNode(s,{url:a.avatar,class:"xl:size-[50px]"},null,8,["url"]),n[3]||(n[3]=e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"absolute -bottom-1 -right-1 w-5 rounded-full bg-emerald-500 p-1 text-white"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 18.75a6 6 0 006-6v-1.5m-6 7.5a6 6 0 01-6-6v-1.5m6 7.5v3.75m-3.75 0h7.5M12 15.75a3 3 0 01-3-3V4.5a3 3 0 116 0v8.25a3 3 0 01-3 3z"})],-1))],512),[[e.vShow,!r.isPlaying]]),e.withDirectives(e.createElementVNode("div",{class:"fade header relative flex size-12 cursor-pointer items-center justify-center rounded-full border-2 border-light dark:border-light",onClick:n[0]||(n[0]=(...l)=>i.changeValue&&i.changeValue(...l))},[e.createTextVNode(e.toDisplayString(r.playbackRate.toFixed(1))+"x ",1),n[4]||(n[4]=e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",class:"absolute bottom-[-11px] left-[28px] w-5 rounded-full bg-emerald-500 p-[4px] text-white",viewBox:"0 0 16 16"},[e.createElementVNode("path",{d:"M12.5 4a.5.5 0 0 0-1 0v3.248L5.233 3.612C4.693 3.3 4 3.678 4 4.308v7.384c0 .63.692 1.01 1.233.697L11.5 8.753V12a.5.5 0 0 0 1 0V4z"})],-1))],512),[[e.vShow,r.isPlaying]])])),e.createElementVNode("button",{class:"",onClick:n[1]||(n[1]=(...l)=>i.playPause&&i.playPause(...l))},[r.isPlaying?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("svg",c4,[...n[5]||(n[5]=[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M5.25 5.653c0-.856.917-1.398 1.667-.986l11.54 6.348a1.125 1.125 0 010 1.971l-11.54 6.347a1.125 1.125 0 01-1.667-.985V5.653z"},null,-1)])])),r.isPlaying?(e.openBlock(),e.createElementBlock("svg",d4,[...n[6]||(n[6]=[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15.75 5.25v13.5m-7.5-13.5v13.5"},null,-1)])])):e.createCommentVNode("",!0)]),e.createElementVNode("section",u4,[r.isLoading?(e.openBlock(),e.createElementBlock("div",f4,[...n[7]||(n[7]=[e.createElementVNode("div",{class:"absolute ml-5 mt-1 size-3 rounded-full bg-[#0FB2D6]"},null,-1),e.createElementVNode("div",{class:"absolute top-0 ml-5 mt-1 size-3 rounded-full bg-[#0FB2D6]"},null,-1),e.createElementVNode("div",{class:"absolute top-0 ml-5 mt-1 size-3 rounded-full bg-[#0FB2D6]"},null,-1),e.createElementVNode("div",{class:"absolute top-0 ml-5 mt-1 size-3 rounded-full bg-[#0FB2D6]"},null,-1)])])):e.createCommentVNode("",!0),e.withDirectives(e.createElementVNode("div",m4,null,512),[[e.vShow,!r.isLoading]])]),a.isOwner?(e.openBlock(),e.createElementBlock("section",h4,[e.withDirectives(e.createElementVNode("main",p4,[e.createVNode(s,{url:a.avatar,class:"xl:size-[50px]"},null,8,["url"]),n[8]||(n[8]=e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"absolute -bottom-2 -left-2 w-7 rounded-full bg-emerald-500 p-1 text-white"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 18.75a6 6 0 006-6v-1.5m-6 7.5a6 6 0 01-6-6v-1.5m6 7.5v3.75m-3.75 0h7.5M12 15.75a3 3 0 01-3-3V4.5a3 3 0 116 0v8.25a3 3 0 01-3 3z"})],-1))],512),[[e.vShow,!r.isPlaying]]),e.withDirectives(e.createElementVNode("div",{class:"fade header relative flex size-12 cursor-pointer items-center justify-center rounded-full border-2 border-light dark:border-light",onClick:n[2]||(n[2]=(...l)=>i.changeValue&&i.changeValue(...l))},[e.createTextVNode(e.toDisplayString(r.playbackRate.toFixed(1))+"x ",1),n[9]||(n[9]=e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",class:"absolute bottom-[-10px] right-[26px] w-7 rounded-full bg-emerald-500 p-[4px] text-white",viewBox:"0 0 16 16"},[e.createElementVNode("path",{d:"M12.5 4a.5.5 0 0 0-1 0v3.248L5.233 3.612C4.693 3.3 4 3.678 4 4.308v7.384c0 .63.692 1.01 1.233.697L11.5 8.753V12a.5.5 0 0 0 1 0V4z"})],-1))],512),[[e.vShow,r.isPlaying]])])):e.createCommentVNode("",!0)])}const N1=we(r4,[["render",g4]]),y4={key:0},k4=["src"],x4={key:1,class:"size-12 text-white","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"currentColor",viewBox:"0 0 24 24"},b4={class:"flex gap-2 items-center text-primary max-w-xs"},w4={class:"truncate text-xs text-primary w-40 flex"},E4={key:0,class:"flex gap-2"},v4={class:"video_message_preview"},C4={class:"label_video_hover"},S4={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2",class:"absolute left-2 top-2 size-6",style:{transform:"rotate(135deg)"}},B4={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2",class:"absolute right-2 top-2 size-6",style:{transform:"rotate(-135deg)"}},V4={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2",class:"absolute bottom-2 left-2 size-6",style:{transform:"rotate(45deg)"}},M4={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2",class:"absolute bottom-2 right-2 size-6",style:{transform:"rotate(-45deg)"}},N4=["src"],A4={key:3},T4=["src"],D4=["src","type"],L4={key:1,class:"size-12 text-white","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"currentColor",viewBox:"0 0 24 24"},F4={key:0},$4={class:"video_message_preview"},P4={class:"label_video_hover"},_4={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2",class:"absolute left-2 top-2 size-6",style:{transform:"rotate(135deg)"}},O4={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2",class:"absolute right-2 top-2 size-6",style:{transform:"rotate(-135deg)"}},R4={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2",class:"absolute bottom-2 left-2 size-6",style:{transform:"rotate(45deg)"}},H4={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2",class:"absolute bottom-2 right-2 size-6",style:{transform:"rotate(-45deg)"}},z4=["src"],j4={key:1,class:"size-full"},G4={key:4},I4={key:0,class:"w-full px-4"},q4={key:1,class:"size-12 text-white","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"currentColor",viewBox:"0 0 24 24"},W4={key:0,class:"span_generic_files"},U4={class:"truncate"},Z4={key:6,class:"flex flex-col w-full"},Y4={key:0,class:"preview_audio_time"},Ya=we({__name:"previewFiles",props:{isMobile:{type:Boolean,default:!1},base64:{type:String},mimetype:{type:String},mode:{type:String,default:"message"},fileName:{type:String},avatar:{type:[String,null],required:!0}},setup(t){const n=t,a=e.ref(null),o=e.ref(null),r=e.ref(0),i=e.computed(()=>n.mimetype==="application/pdf"),s=e.computed(()=>["image/png","image/jpeg","image/svg+xml"].includes(n.mimetype)),l=e.computed(()=>["audio/mpeg","audio/mp4","audio/mp3","audio/aac"].includes(n.mimetype)),d=f=>f?f.startsWith("video/"):void 0,u=async(f,g,y="")=>{n.mode!=="miniature"&&(d(g)?Pe.show([{type:"html",src:f,html:`
|
|
88
89
|
<video controls autoplay style="width:100%;height:auto;max-height:80vh">
|
|
89
|
-
<source src="${
|
|
90
|
+
<source src="${f}" type="${g}" />
|
|
90
91
|
Seu navegador não suporta vídeo.
|
|
91
92
|
</video>
|
|
92
|
-
`,caption:y}]):_e.show([{src:c,type:"image",caption:y}]))},u=()=>{const c=document.createElement("canvas"),g=320,y=180;c.width=g,c.height=y;const b=c.getContext("2d");return b.fillStyle="black",b.fillRect(0,0,g,y),c.toDataURL("image/png")};function h(c,g=1){return new Promise((y,b)=>{const w=document.createElement("video");w.src=c,w.crossOrigin="anonymous",w.muted=!0,w.playsInline=!0,w.preload="auto",w.addEventListener("loadeddata",()=>{w.readyState>=2&&(w.currentTime=g)}),w.addEventListener("seeked",()=>{const E=document.createElement("canvas");E.width=w.videoWidth,E.height=w.videoHeight,E.getContext("2d").drawImage(w,0,0,E.width,E.height);const v=E.toDataURL("image/png");y(v)})})}const m=c=>typeof c=="string"&&c.startsWith("data:")&&c.includes(";base64,"),p=c=>{const g=Math.floor(c/60),y=(c%60).toFixed(0),b=g.toString().padStart(2,"0"),w=y.toString().padStart(2,"0");return`${b}:${w}`};return e.onMounted(async()=>{try{const c=await h(n.base64),g=c&&c!=="data:,";a.value=g?c:u()}catch(c){console.error("Erro ao gerar thumbnail:",c),a.value=u()}}),(c,g)=>(e.openBlock(),e.createElementBlock("main",{class:e.normalizeClass({main_preview_files_container_message:t.mode==="message",main_preview_files_container_miniature:t.mode==="miniature","main_preview_files_container_preview bg-base-200":t.mode==="preview"})},[!t.isMobile&&i.value?(e.openBlock(),e.createElementBlock("section",q3,[t.mode!=="miniature"?(e.openBlock(),e.createElementBlock("iframe",{key:0,class:"iframe_preview_files",src:t.base64,frameborder:"0"},null,8,I3)):(e.openBlock(),e.createElementBlock("svg",W3,g[6]||(g[6]=[e.createElementVNode("path",{"fill-rule":"evenodd",d:"M9 2.221V7H4.221a2 2 0 0 1 .365-.5L8.5 2.586A2 2 0 0 1 9 2.22ZM11 2v5a2 2 0 0 1-2 2H4a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2 2 2 0 0 0 2 2h12a2 2 0 0 0 2-2 2 2 0 0 0 2-2v-7a2 2 0 0 0-2-2V4a2 2 0 0 0-2-2h-7Zm-6 9a1 1 0 0 0-1 1v5a1 1 0 1 0 2 0v-1h.5a2.5 2.5 0 0 0 0-5H5Zm1.5 3H6v-1h.5a.5.5 0 0 1 0 1Zm4.5-3a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1h1.376A2.626 2.626 0 0 0 15 15.375v-1.75A2.626 2.626 0 0 0 12.375 11H11Zm1 5v-3h.375a.626.626 0 0 1 .625.626v1.748a.625.625 0 0 1-.626.626H12Zm5-5a1 1 0 0 0-1 1v5a1 1 0 1 0 2 0v-1h1a1 1 0 1 0 0-2h-1v-1h1a1 1 0 1 0 0-2h-2Z","clip-rule":"evenodd"},null,-1)])))])):t.isMobile&&i.value&&t.mode==="message"?(e.openBlock(),e.createElementBlock("section",{key:1,class:e.normalizeClass(t.mode==="message"?"flex flex-col bg-base-300 p-2 rounded-md gap-2":"")},[e.createElementVNode("span",U3,[g[7]||(g[7]=e.createElementVNode("svg",{class:"size-8 text-primary","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"currentColor",viewBox:"0 0 24 24"},[e.createElementVNode("path",{"fill-rule":"evenodd",d:"M9 2.221V7H4.221a2 2 0 0 1 .365-.5L8.5 2.586A2 2 0 0 1 9 2.22ZM11 2v5a2 2 0 0 1-2 2H4a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2 2 2 0 0 0 2 2h12a2 2 0 0 0 2-2 2 2 0 0 0 2-2v-7a2 2 0 0 0-2-2V4a2 2 0 0 0-2-2h-7Zm-6 9a1 1 0 0 0-1 1v5a1 1 0 1 0 2 0v-1h.5a2.5 2.5 0 0 0 0-5H5Zm1.5 3H6v-1h.5a.5.5 0 0 1 0 1Zm4.5-3a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1h1.376A2.626 2.626 0 0 0 15 15.375v-1.75A2.626 2.626 0 0 0 12.375 11H11Zm1 5v-3h.375a.626.626 0 0 1 .625.626v1.748a.625.625 0 0 1-.626.626H12Zm5-5a1 1 0 0 0-1 1v5a1 1 0 1 0 2 0v-1h1a1 1 0 1 0 0-2h-1v-1h1a1 1 0 1 0 0-2h-2Z","clip-rule":"evenodd"})],-1)),e.createElementVNode("p",Z3,e.toDisplayString(t.fileName),1)]),t.mode==="message"?(e.openBlock(),e.createElementBlock("div",Y3,[e.createElementVNode("button",{class:"bg-base-200 p-2 text-primary w-full text-xs rounded-md hover:bg-base-100",onClick:g[0]||(g[0]=y=>c.$emit("open-mobile-pdf"))}," Abrir PDF ")])):e.createCommentVNode("",!0)],2)):s.value?(e.openBlock(),e.createElementBlock("button",{key:2,onClick:g[1]||(g[1]=y=>f(t.base64,t.mimetype)),class:"video_message_preview_container"},[e.createElementVNode("div",X3,[e.createElementVNode("div",K3,[(e.openBlock(),e.createElementBlock("svg",Q3,g[8]||(g[8]=[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m19 9-7 7-7-7"},null,-1)]))),(e.openBlock(),e.createElementBlock("svg",J3,g[9]||(g[9]=[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m19 9-7 7-7-7"},null,-1)]))),(e.openBlock(),e.createElementBlock("svg",e4,g[10]||(g[10]=[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m19 9-7 7-7-7"},null,-1)]))),(e.openBlock(),e.createElementBlock("svg",t4,g[11]||(g[11]=[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m19 9-7 7-7-7"},null,-1)])))])]),e.createElementVNode("img",{class:e.normalizeClass(["preview_img",t.mode]),src:m(t.base64)?t.base64:t.base64.replace("+","%2B")},null,10,n4)])):d(t.mimetype)?(e.openBlock(),e.createElementBlock("section",a4,[t.mode==="preview"?(e.openBlock(),e.createElementBlock("video",{key:0,width:"300",height:"150",controls:"",src:t.base64},[e.createElementVNode("source",{src:t.base64,type:t.mimetype},null,8,r4)],8,o4)):t.mode==="miniature"?(e.openBlock(),e.createElementBlock("svg",i4,g[12]||(g[12]=[e.createElementVNode("path",{"fill-rule":"evenodd",d:"M14 7a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V7Zm2 9.387 4.684 1.562A1 1 0 0 0 22 17V7a1 1 0 0 0-1.316-.949L16 7.613v8.774Z","clip-rule":"evenodd"},null,-1)]))):t.mode==="message"?(e.openBlock(),e.createElementBlock("button",{key:2,onClick:g[2]||(g[2]=y=>f(t.base64,t.mimetype)),class:"video_message_preview_container"},[a.value?(e.openBlock(),e.createElementBlock("section",s4,[e.createElementVNode("div",l4,[g[17]||(g[17]=e.createElementVNode("svg",{class:"size-12 text-white","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"currentColor",viewBox:"0 0 24 24"},[e.createElementVNode("path",{"fill-rule":"evenodd",d:"M8.6 5.2A1 1 0 0 0 7 6v12a1 1 0 0 0 1.6.8l8-6a1 1 0 0 0 0-1.6l-8-6Z","clip-rule":"evenodd"})],-1)),e.createElementVNode("div",c4,[(e.openBlock(),e.createElementBlock("svg",d4,g[13]||(g[13]=[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m19 9-7 7-7-7"},null,-1)]))),(e.openBlock(),e.createElementBlock("svg",u4,g[14]||(g[14]=[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m19 9-7 7-7-7"},null,-1)]))),(e.openBlock(),e.createElementBlock("svg",m4,g[15]||(g[15]=[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m19 9-7 7-7-7"},null,-1)]))),(e.openBlock(),e.createElementBlock("svg",f4,g[16]||(g[16]=[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m19 9-7 7-7-7"},null,-1)])))])]),e.createElementVNode("img",{class:e.normalizeClass(["preview_img",t.mode]),src:a.value},null,10,h4)])):(e.openBlock(),e.createElementBlock("span",p4,g[18]||(g[18]=[e.createElementVNode("span",{class:"loader-preview-lib"},null,-1)])))])):e.createCommentVNode("",!0)])):l.value?(e.openBlock(),e.createElementBlock("section",g4,[t.mode!=="miniature"?(e.openBlock(),e.createElementBlock("section",y4,[e.createVNode(i1,{avatar:t.avatar,audio:t.base64,onDuration:g[3]||(g[3]=y=>o.value=y),onCurrentTime:g[4]||(g[4]=y=>r.value=y)},null,8,["avatar","audio"])])):(e.openBlock(),e.createElementBlock("svg",k4,g[19]||(g[19]=[e.createElementVNode("path",{"fill-rule":"evenodd",d:"M5 8a1 1 0 0 1 1 1v3a4.006 4.006 0 0 0 4 4h4a4.006 4.006 0 0 0 4-4V9a1 1 0 1 1 2 0v3.001A6.006 6.006 0 0 1 14.001 18H13v2h2a1 1 0 1 1 0 2H9a1 1 0 1 1 0-2h2v-2H9.999A6.006 6.006 0 0 1 4 12.001V9a1 1 0 0 1 1-1Z","clip-rule":"evenodd"},null,-1),e.createElementVNode("path",{d:"M7 6a4 4 0 0 1 4-4h2a4 4 0 0 1 4 4v5a4 4 0 0 1-4 4h-2a4 4 0 0 1-4-4V6Z"},null,-1)])))])):(e.openBlock(),e.createElementBlock("div",{key:5,class:e.normalizeClass(t.mode==="message"?"generic_files":"")},[g[20]||(g[20]=e.createElementVNode("div",null,[e.createElementVNode("svg",{class:"size-8 text-white","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"currentColor",viewBox:"0 0 24 24"},[e.createElementVNode("path",{"fill-rule":"evenodd",d:"M9 2.221V7H4.221a2 2 0 0 1 .365-.5L8.5 2.586A2 2 0 0 1 9 2.22ZM11 2v5a2 2 0 0 1-2 2H4v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2h-7Z","clip-rule":"evenodd"})])],-1)),t.mode==="message"?(e.openBlock(),e.createElementBlock("span",x4,[e.createElementVNode("p",b4,e.toDisplayString(t.fileName),1),e.createElementVNode("button",{class:"download_btn_generic_files",onClick:g[5]||(g[5]=y=>c.$emit("download"))}," Baixar arquivo ")])):e.createCommentVNode("",!0)],2)),t.mode==="message"?(e.openBlock(),e.createElementBlock("div",w4,[e.renderSlot(c.$slots,"content-message",{},void 0,!0),e.createElementVNode("div",{class:e.normalizeClass([o.value?"justify-between":" justify-end","flex w-full"])},[l.value&&o.value?(e.openBlock(),e.createElementBlock("p",E4,e.toDisplayString(p(o.value))+" - "+e.toDisplayString(r.value?p(r.value):"00:00"),1)):e.createCommentVNode("",!0),e.renderSlot(c.$slots,"time-message",{},void 0,!0)],2)])):e.createCommentVNode("",!0)],2))}},[["__scopeId","data-v-0f627339"]]),v4={props:{audioStream:MediaStream},data(){return{audioContext:null,analyser:null}},mounted(){this.initializeAudio()},methods:{initializeAudio(){this.audioContext=new(window.AudioContext||window.webkitAudioContext),this.analyser=this.audioContext.createAnalyser();const t=this.$refs.canvas,n=t.getContext("2d");this.audioContext.createMediaStreamSource(this.audioStream).connect(this.analyser),this.analyser.fftSize=256;const o=this.analyser.frequencyBinCount,r=new Uint8Array(o),i=()=>{this.analyser.getByteFrequencyData(r),n.clearRect(0,0,t.width,t.height);const s=t.width/o*2.5,l=t.height/2;let d=0;n.strokeStyle="green",n.lineWidth=2,n.beginPath(),n.moveTo(0,l),n.lineTo(t.width,l),n.stroke(),r.forEach(f=>{const u=f;n.fillStyle=`rgb(50, ${u+100}, 50)`,n.fillRect(d,l-u/2,s,u),d+=s+1}),this.audioStream.active&&requestAnimationFrame(i)};i()}}},C4={ref:"canvas",width:"200",height:"40",class:"mx-auto flex items-center rounded"};function S4(t,n,a,o,r,i){return e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("canvas",C4,null,512)])}const B4=Ce(v4,[["render",S4],["__scopeId","data-v-2f66baab"]]),V4={key:0,class:"flex w-full items-center space-x-3 text-white dark:text-black"},M4=["disabled"],N4=["disabled"],A4={key:0,class:"size-4 hover:text-red-500","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 10 16"},T4={key:1,xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"w-5 hover:text-emerald-500"},D4={key:5,class:"flex w-full items-center space-x-2"},L4={class:"text-xs"},F4={key:0},$4={key:1,class:"flex items-center px-2 pr-[21px]"},_4=Ce({__name:"audioRecorder",props:{canSendMessage:Boolean,sendAudioToAttendant:{type:Function,required:!0},selectedAttendant:{type:Object,required:!0},attendant:{required:!0}},emits:["audio-sent","recording","b64Audio"],setup(t,{emit:n}){const a=t,o=n,r=e.ref(null),i=e.ref(!1),s=e.ref(!1),l=e.ref(0),d=e.ref(0),f=e.ref(null),u=e.ref(null),h=e.ref(null),m=e.ref(null),p=e.ref(0),c=e.ref(0),g=e.ref(null),y=e.ref(!1),b=e.ref(!1),w=A=>{p.value=A},E=A=>{c.value=A},x=A=>{const M=Math.floor(A/60),H=(A%60).toFixed(0),ie=M.toString().padStart(2,"0"),Q=H.toString().padStart(2,"0");return`${ie}:${Q}`},v=async()=>{try{u.value=null,m.value=await navigator.mediaDevices.getUserMedia({audio:!0}),r.value=new MediaRecorder(m.value),r.value.ondataavailable=D,r.value.start(),_(),i.value=!0,o("recording",!0)}catch(A){console.error("Erro ao iniciar a gravação:",A)}},D=A=>{A.data.size>0&&!y.value&&(f.value=new Blob([A.data]),g.value=URL.createObjectURL(f.value),N())},_=()=>{let A=Date.now();h.value=setInterval(()=>{l.value=d.value+Math.floor((Date.now()-A)/1e3)},1e3)},C=async()=>{u.value=null,r.value&&i.value&&(s.value?(r.value.resume(),_()):(r.value.pause(),clearInterval(h.value),d.value=l.value),s.value=!s.value)},k=async()=>{r.value&&i.value&&(await r.value.stop(),clearInterval(h.value),i.value=!1,s.value=!1,N()),m.value&&m.value.getTracks().forEach(A=>A.stop())},N=async()=>{if(f.value){const A=new Blob([f.value],{type:"audio/mpeg"}),M=new FileReader;M.onload=()=>{u.value=M.result},M.readAsDataURL(A)}},S=async()=>{b.value=!0,o("b64Audio",u.value);const M={type:"file",media:{name:"audio",mimetype:(H=>H?H.split(";")[0].split(":")[1]:null)(u.value),data:u.value}};await a.sendAudioToAttendant(a.selectedAttendant.id,M,a.attendant,!0),o("recording",!1),b.value=!1,m.value=null,u.value=null,f.value=null,i.value=!1,s.value=!1,l.value=0},B=async()=>{y.value=!0,i.value=!1,o("recording",!1),await r.value.stop(),m.value&&(m.value.getTracks().forEach(A=>A.stop()),m.value=null),f.value=null,clearInterval(h.value),u.value=null,s.value=!1,l.value=0};return(A,M)=>{var H;return b.value?(e.openBlock(),e.createElementBlock("div",$4,M[9]||(M[9]=[e.createElementVNode("span",{class:"loader-audio-recorder"},null,-1)]))):(e.openBlock(),e.createElementBlock("div",V4,[!i.value&&!u.value?(e.openBlock(),e.createElementBlock("button",{key:0,class:e.normalizeClass(["send-audio-button",{recording:i.value}]),disabled:i.value||!t.canSendMessage,onClick:M[0]||(M[0]=ie=>(v(),d.value=0,y.value=!1))},M[3]||(M[3]=[e.createElementVNode("svg",{class:"start-recording-icon","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 16 19"},[e.createElementVNode("path",{d:"M15 5a1 1 0 0 0-1 1v3a4 4 0 0 1-4 4H6a4 4 0 0 1-4-4V6a1 1 0 0 0-2 0v3a6.006 6.006 0 0 0 6 6h1v2H5a1 1 0 0 0 0 2h6a1 1 0 0 0 0-2H9v-2h1a6.006 6.006 0 0 0 6-6V6a1 1 0 0 0-1-1Z"}),e.createElementVNode("path",{d:"M9 0H7a3 3 0 0 0-3 3v5a3 3 0 0 0 3 3h2a3 3 0 0 0 3-3V3a3 3 0 0 0-3-3Z"})],-1)]),10,M4)):e.createCommentVNode("",!0),m.value?(e.openBlock(),e.createElementBlock("button",{key:1,class:"rounded-full bg-red-500 p-1.5 hover:bg-red-600",onClick:M[1]||(M[1]=ie=>B())},M[4]||(M[4]=[e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"size-4"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M14.74 9l-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 01-2.244 2.077H8.084a2.25 2.25 0 01-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 00-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 013.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 00-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 00-7.5 0"})],-1)]))):e.createCommentVNode("",!0),i.value?(e.openBlock(),e.createElementBlock("button",{key:2,disabled:!i.value&&!s.value,onClick:C},[s.value?(e.openBlock(),e.createElementBlock("svg",T4,M[6]||(M[6]=[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M21 7.5V18M15 7.5V18M3 16.811V8.69c0-.864.933-1.406 1.683-.977l7.108 4.061a1.125 1.125 0 010 1.954l-7.108 4.061A1.125 1.125 0 013 16.811z"},null,-1)]))):(e.openBlock(),e.createElementBlock("svg",A4,M[5]||(M[5]=[e.createElementVNode("path",{"fill-rule":"evenodd",d:"M0 .8C0 .358.32 0 .714 0h1.429c.394 0 .714.358.714.8v14.4c0 .442-.32.8-.714.8H.714a.678.678 0 0 1-.505-.234A.851.851 0 0 1 0 15.2V.8Zm7.143 0c0-.442.32-.8.714-.8h1.429c.19 0 .37.084.505.234.134.15.209.354.209.566v14.4c0 .442-.32.8-.714.8H7.857c-.394 0-.714-.358-.714-.8V.8Z","clip-rule":"evenodd"},null,-1)])))],8,N4)):e.createCommentVNode("",!0),(i.value||f.value)&&!u.value?(e.openBlock(),e.createElementBlock("button",{key:3,class:"rounded-full p-1.5 hover:bg-gray-100 hover:text-light",onClick:k},M[7]||(M[7]=[e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"size-4"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M5.25 7.5A2.25 2.25 0 017.5 5.25h9a2.25 2.25 0 012.25 2.25v9a2.25 2.25 0 01-2.25 2.25h-9a2.25 2.25 0 01-2.25-2.25v-9z"})],-1)]))):e.createCommentVNode("",!0),m.value&&i.value&&!s.value?(e.openBlock(),e.createBlock(B4,{key:4,"audio-stream":m.value},null,8,["audio-stream"])):e.createCommentVNode("",!0),u.value?(e.openBlock(),e.createElementBlock("div",D4,[e.createVNode(i1,{avatar:((H=t.attendant)==null?void 0:H.photo)||null,audio:u.value,onDuration:w,onCurrentTime:E},null,8,["avatar","audio"]),e.createElementVNode("main",L4,[e.createElementVNode("div",null,e.toDisplayString(x(c.value)),1),i.value||f.value?(e.openBlock(),e.createElementBlock("div",F4,e.toDisplayString(x(l.value)),1)):e.createCommentVNode("",!0)])])):e.createCommentVNode("",!0),u.value?(e.openBlock(),e.createElementBlock("button",{key:6,class:"rounded-full p-2 hover:bg-base-100",onClick:M[2]||(M[2]=ie=>S())},M[8]||(M[8]=[e.createElementVNode("svg",{class:"size-5 text-base-200 rotate-90","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"currentColor",viewBox:"0 0 24 24"},[e.createElementVNode("path",{"fill-rule":"evenodd",d:"M12 2a1 1 0 0 1 .932.638l7 18a1 1 0 0 1-1.326 1.281L13 19.517V13a1 1 0 1 0-2 0v6.517l-5.606 2.402a1 1 0 0 1-1.326-1.281l7-18A1 1 0 0 1 12 2Z","clip-rule":"evenodd"})],-1)]))):e.createCommentVNode("",!0)]))}}},[["__scopeId","data-v-2126da40"]]);function P4(t){return{all:t=t||new Map,on:function(n,a){var o=t.get(n);o?o.push(a):t.set(n,[a])},off:function(n,a){var o=t.get(n);o&&(a?o.splice(o.indexOf(a)>>>0,1):t.set(n,[]))},emit:function(n,a){var o=t.get(n);o&&o.slice().map(function(r){r(a)}),(o=t.get("*"))&&o.slice().map(function(r){r(n,a)})}}}const s1=P4();let l1=0;const O4=()=>{const t=l1;return l1+=1,t},c1=(t,n)=>{const a={...t,id:O4(),group:t.group||""};return s1.emit("notify",{notification:a,timeout:n}),()=>s1.emit("close",a.id)};/*! Capacitor: https://capacitorjs.com/ - MIT License */var Ut;(function(t){t.Unimplemented="UNIMPLEMENTED",t.Unavailable="UNAVAILABLE"})(Ut||(Ut={}));class Oa extends Error{constructor(n,a,o){super(n),this.message=n,this.code=a,this.data=o}}const R4=t=>{var n,a;return t!=null&&t.androidBridge?"android":!((a=(n=t==null?void 0:t.webkit)===null||n===void 0?void 0:n.messageHandlers)===null||a===void 0)&&a.bridge?"ios":"web"},H4=t=>{const n=t.CapacitorCustomPlatform||null,a=t.Capacitor||{},o=a.Plugins=a.Plugins||{},r=()=>n!==null?n.name:R4(t),i=()=>r()!=="web",s=h=>{const m=f.get(h);return!!(m!=null&&m.platforms.has(r())||l(h))},l=h=>{var m;return(m=a.PluginHeaders)===null||m===void 0?void 0:m.find(p=>p.name===h)},d=h=>t.console.error(h),f=new Map,u=(h,m={})=>{const p=f.get(h);if(p)return console.warn(`Capacitor plugin "${h}" already registered. Cannot register plugins twice.`),p.proxy;const c=r(),g=l(h);let y;const b=async()=>(!y&&c in m?y=typeof m[c]=="function"?y=await m[c]():y=m[c]:n!==null&&!y&&"web"in m&&(y=typeof m.web=="function"?y=await m.web():y=m.web),y),w=(C,k)=>{var N,S;if(g){const B=g==null?void 0:g.methods.find(A=>k===A.name);if(B)return B.rtype==="promise"?A=>a.nativePromise(h,k.toString(),A):(A,M)=>a.nativeCallback(h,k.toString(),A,M);if(C)return(N=C[k])===null||N===void 0?void 0:N.bind(C)}else{if(C)return(S=C[k])===null||S===void 0?void 0:S.bind(C);throw new Oa(`"${h}" plugin is not implemented on ${c}`,Ut.Unimplemented)}},E=C=>{let k;const N=(...S)=>{const B=b().then(A=>{const M=w(A,C);if(M){const H=M(...S);return k=H==null?void 0:H.remove,H}else throw new Oa(`"${h}.${C}()" is not implemented on ${c}`,Ut.Unimplemented)});return C==="addListener"&&(B.remove=async()=>k()),B};return N.toString=()=>`${C.toString()}() { [capacitor code] }`,Object.defineProperty(N,"name",{value:C,writable:!1,configurable:!1}),N},x=E("addListener"),v=E("removeListener"),D=(C,k)=>{const N=x({eventName:C},k),S=async()=>{const A=await N;v({eventName:C,callbackId:A},k)},B=new Promise(A=>N.then(()=>A({remove:S})));return B.remove=async()=>{console.warn("Using addListener() without 'await' is deprecated."),await S()},B},_=new Proxy({},{get(C,k){switch(k){case"$$typeof":return;case"toJSON":return()=>({});case"addListener":return g?D:x;case"removeListener":return v;default:return E(k)}}});return o[h]=_,f.set(h,{name:h,proxy:_,platforms:new Set([...Object.keys(m),...g?[c]:[]])}),_};return a.convertFileSrc||(a.convertFileSrc=h=>h),a.getPlatform=r,a.handleError=d,a.isNativePlatform=i,a.isPluginAvailable=s,a.registerPlugin=u,a.Exception=Oa,a.DEBUG=!!a.DEBUG,a.isLoggingEnabled=!!a.isLoggingEnabled,a},zn=(t=>t.Capacitor=H4(t))(typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}),sn=zn.registerPlugin;class jn{constructor(){this.listeners={},this.retainedEventArguments={},this.windowListeners={}}addListener(n,a){let o=!1;this.listeners[n]||(this.listeners[n]=[],o=!0),this.listeners[n].push(a);const i=this.windowListeners[n];i&&!i.registered&&this.addWindowListener(i),o&&this.sendRetainedArgumentsForEvent(n);const s=async()=>this.removeListener(n,a);return Promise.resolve({remove:s})}async removeAllListeners(){this.listeners={};for(const n in this.windowListeners)this.removeWindowListener(this.windowListeners[n]);this.windowListeners={}}notifyListeners(n,a,o){const r=this.listeners[n];if(!r){if(o){let i=this.retainedEventArguments[n];i||(i=[]),i.push(a),this.retainedEventArguments[n]=i}return}r.forEach(i=>i(a))}hasListeners(n){var a;return!!(!((a=this.listeners[n])===null||a===void 0)&&a.length)}registerWindowListener(n,a){this.windowListeners[a]={registered:!1,windowEventName:n,pluginEventName:a,handler:o=>{this.notifyListeners(a,o)}}}unimplemented(n="not implemented"){return new zn.Exception(n,Ut.Unimplemented)}unavailable(n="not available"){return new zn.Exception(n,Ut.Unavailable)}async removeListener(n,a){const o=this.listeners[n];if(!o)return;const r=o.indexOf(a);this.listeners[n].splice(r,1),this.listeners[n].length||this.removeWindowListener(this.windowListeners[n])}addWindowListener(n){window.addEventListener(n.windowEventName,n.handler),n.registered=!0}removeWindowListener(n){n&&(window.removeEventListener(n.windowEventName,n.handler),n.registered=!1)}sendRetainedArgumentsForEvent(n){const a=this.retainedEventArguments[n];a&&(delete this.retainedEventArguments[n],a.forEach(o=>{this.notifyListeners(n,o)}))}}const d1=t=>encodeURIComponent(t).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape),u1=t=>t.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent);class z4 extends jn{async getCookies(){const n=document.cookie,a={};return n.split(";").forEach(o=>{if(o.length<=0)return;let[r,i]=o.replace(/=/,"CAP_COOKIE").split("CAP_COOKIE");r=u1(r).trim(),i=u1(i).trim(),a[r]=i}),a}async setCookie(n){try{const a=d1(n.key),o=d1(n.value),r=`; expires=${(n.expires||"").replace("expires=","")}`,i=(n.path||"/").replace("path=",""),s=n.url!=null&&n.url.length>0?`domain=${n.url}`:"";document.cookie=`${a}=${o||""}${r}; path=${i}; ${s};`}catch(a){return Promise.reject(a)}}async deleteCookie(n){try{document.cookie=`${n.key}=; Max-Age=0`}catch(a){return Promise.reject(a)}}async clearCookies(){try{const n=document.cookie.split(";")||[];for(const a of n)document.cookie=a.replace(/^ +/,"").replace(/=.*/,`=;expires=${new Date().toUTCString()};path=/`)}catch(n){return Promise.reject(n)}}async clearAllCookies(){try{await this.clearCookies()}catch(n){return Promise.reject(n)}}}sn("CapacitorCookies",{web:()=>new z4});const j4=async t=>new Promise((n,a)=>{const o=new FileReader;o.onload=()=>{const r=o.result;n(r.indexOf(",")>=0?r.split(",")[1]:r)},o.onerror=r=>a(r),o.readAsDataURL(t)}),G4=(t={})=>{const n=Object.keys(t);return Object.keys(t).map(r=>r.toLocaleLowerCase()).reduce((r,i,s)=>(r[i]=t[n[s]],r),{})},q4=(t,n=!0)=>t?Object.entries(t).reduce((o,r)=>{const[i,s]=r;let l,d;return Array.isArray(s)?(d="",s.forEach(f=>{l=n?encodeURIComponent(f):f,d+=`${i}=${l}&`}),d.slice(0,-1)):(l=n?encodeURIComponent(s):s,d=`${i}=${l}`),`${o}&${d}`},"").substr(1):null,m1=(t,n={})=>{const a=Object.assign({method:t.method||"GET",headers:t.headers},n),r=G4(t.headers)["content-type"]||"";if(typeof t.data=="string")a.body=t.data;else if(r.includes("application/x-www-form-urlencoded")){const i=new URLSearchParams;for(const[s,l]of Object.entries(t.data||{}))i.set(s,l);a.body=i.toString()}else if(r.includes("multipart/form-data")||t.data instanceof FormData){const i=new FormData;if(t.data instanceof FormData)t.data.forEach((l,d)=>{i.append(d,l)});else for(const l of Object.keys(t.data))i.append(l,t.data[l]);a.body=i;const s=new Headers(a.headers);s.delete("content-type"),a.headers=s}else(r.includes("application/json")||typeof t.data=="object")&&(a.body=JSON.stringify(t.data));return a};class I4 extends jn{async request(n){const a=m1(n,n.webFetchExtra),o=q4(n.params,n.shouldEncodeUrlParams),r=o?`${n.url}?${o}`:n.url,i=await fetch(r,a),s=i.headers.get("content-type")||"";let{responseType:l="text"}=i.ok?n:{};s.includes("application/json")&&(l="json");let d,f;switch(l){case"arraybuffer":case"blob":f=await i.blob(),d=await j4(f);break;case"json":d=await i.json();break;case"document":case"text":default:d=await i.text()}const u={};return i.headers.forEach((h,m)=>{u[m]=h}),{data:d,headers:u,status:i.status,url:i.url}}async get(n){return this.request(Object.assign(Object.assign({},n),{method:"GET"}))}async post(n){return this.request(Object.assign(Object.assign({},n),{method:"POST"}))}async put(n){return this.request(Object.assign(Object.assign({},n),{method:"PUT"}))}async patch(n){return this.request(Object.assign(Object.assign({},n),{method:"PATCH"}))}async delete(n){return this.request(Object.assign(Object.assign({},n),{method:"DELETE"}))}}sn("CapacitorHttp",{web:()=>new I4});const Gn={RECORDING:"RECORDING",PAUSED:"PAUSED",NONE:"NONE"},Lt=sn("VoiceRecorder",{web:()=>Promise.resolve().then(()=>Rx).then(t=>new t.VoiceRecorderWeb)});function f1(t,n){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[e.createElementVNode("path",{d:"M8.25 4.5a3.75 3.75 0 1 1 7.5 0v8.25a3.75 3.75 0 1 1-7.5 0V4.5Z"}),e.createElementVNode("path",{d:"M6 10.5a.75.75 0 0 1 .75.75v1.5a5.25 5.25 0 1 0 10.5 0v-1.5a.75.75 0 0 1 1.5 0v1.5a6.751 6.751 0 0 1-6 6.709v2.291h3a.75.75 0 0 1 0 1.5h-7.5a.75.75 0 0 1 0-1.5h3v-2.291a6.751 6.751 0 0 1-6-6.709v-1.5A.75.75 0 0 1 6 10.5Z"})])}function W4(t,n){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[e.createElementVNode("path",{d:"M3.478 2.404a.75.75 0 0 0-.926.941l2.432 7.905H13.5a.75.75 0 0 1 0 1.5H4.984l-2.432 7.905a.75.75 0 0 0 .926.94 60.519 60.519 0 0 0 18.445-8.986.75.75 0 0 0 0-1.218A60.517 60.517 0 0 0 3.478 2.404Z"})])}function h1(t,n){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[e.createElementVNode("path",{"fill-rule":"evenodd",d:"M6.75 5.25a.75.75 0 0 1 .75-.75H9a.75.75 0 0 1 .75.75v13.5a.75.75 0 0 1-.75.75H7.5a.75.75 0 0 1-.75-.75V5.25Zm7.5 0A.75.75 0 0 1 15 4.5h1.5a.75.75 0 0 1 .75.75v13.5a.75.75 0 0 1-.75.75H15a.75.75 0 0 1-.75-.75V5.25Z","clip-rule":"evenodd"})])}function U4(t,n){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[e.createElementVNode("path",{"fill-rule":"evenodd",d:"M4.5 5.653c0-1.427 1.529-2.33 2.779-1.643l11.54 6.347c1.295.712 1.295 2.573 0 3.286L7.28 19.99c-1.25.687-2.779-.217-2.779-1.643V5.653Z","clip-rule":"evenodd"})])}function Z4(t,n){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[e.createElementVNode("path",{"fill-rule":"evenodd",d:"M16.5 4.478v.227a48.816 48.816 0 0 1 3.878.512.75.75 0 1 1-.256 1.478l-.209-.035-1.005 13.07a3 3 0 0 1-2.991 2.77H8.084a3 3 0 0 1-2.991-2.77L4.087 6.66l-.209.035a.75.75 0 0 1-.256-1.478A48.567 48.567 0 0 1 7.5 4.705v-.227c0-1.564 1.213-2.9 2.816-2.951a52.662 52.662 0 0 1 3.369 0c1.603.051 2.815 1.387 2.815 2.951Zm-6.136-1.452a51.196 51.196 0 0 1 3.273 0C14.39 3.05 15 3.684 15 4.478v.113a49.488 49.488 0 0 0-6 0v-.113c0-.794.609-1.428 1.364-1.452Zm-.355 5.945a.75.75 0 1 0-1.5.058l.347 9a.75.75 0 1 0 1.499-.058l-.346-9Zm5.48.058a.75.75 0 1 0-1.498-.058l-.347 9a.75.75 0 0 0 1.5.058l.345-9Z","clip-rule":"evenodd"})])}const Y4={key:0,class:"bg-base-300 absolute bottom-14 left-0 z-50 flex w-full items-center justify-between rounded-t-2xl p-3"},X4={class:"flex h-11 items-center"},K4={key:0},Q4={key:0},J4={key:1,class:"flex w-full justify-between rounded-lg border-2 border-gray-500 p-2 px-4"},e5={key:1},t5={class:"flex w-full items-center justify-between gap-2"},n5=["disabled"],a5=["disabled"],o5={key:1,class:"loader-mobile-audio-recorder"},r5=Ce({__name:"mobileAudioRecorder",props:{disableBtn:{type:Boolean,default:!1},sendAudioToAttendant:{type:Function,required:!0},selectedAttendant:{type:Object,required:!0},attendant:{required:!0}},emits:["audio-sent","recording","paused"],setup(t,{emit:n}){const a=n,o=t,r=e.ref(null),i=e.ref(!1),s=e.ref(0),l=e.ref(null),d=e.ref([]),f=e.ref(null),u=e.ref("00:00"),h=e.ref(!1),m=e.ref(null);let p=0;e.onUnmounted(()=>{_()});const c=()=>{let M;try{if(d.value.length>0){const H=d.value.map(fe=>{const F=atob(fe),L=new Array(F.length);for(let re=0;re<F.length;re++)L[re]=F.charCodeAt(re);const j=new Uint8Array(L);return new Blob([j],{type:f.value})}),ie=new Blob(H,{type:f.value}),Q=URL.createObjectURL(ie);return M=new Audio(Q),M}}catch(H){console.error("Erro ao criar o objeto Audio:",H)}},g=M=>{M==="play"?(m.value.currentTime=p,m.value.oncanplay=()=>{m.value.play().then(()=>{h.value=!0}).catch(H=>{console.error("Erro ao tentar reproduzir o áudio:",H)})},m.value.onended=()=>{h.value=!1,p=0},m.value.onerror=H=>{console.error("Erro ao carregar o áudio:",H)},m.value.load()):M==="pause"&&(m.value&&!m.value.paused?(h.value=!1,m.value.pause()):console.error("Nenhum áudio está tocando no momento"))},y=M=>{const H=Math.floor(M/60),ie=(M%60).toFixed(0),Q=H.toString().padStart(2,"0"),fe=ie.toString().padStart(2,"0");return`${Q}:${fe}`},b=()=>{s.value++,u.value=y(s.value)},w=()=>{l.value&&clearInterval(l.value),l.value=setInterval(b,1e3)},E=()=>{l.value&&clearInterval(l.value)},x=async()=>{let{value:M}=await Lt.hasAudioRecordingPermission();if(M)try{Lt.startRecording(),a("recording",!0),r.value="started",w()}catch(H){console.error(H)}else c1({group:"error",title:"Erro",text:"Permissões de microfone desativadas, ajuste nas configurações do dispositivo"},4e3)},v=()=>{try{a("paused",!0),r.value="paused",_(),E()}catch(M){console.error(M)}},D=()=>{try{m.value&&(m.value.pause(),h.value=!1),a("paused",!1),r.value="started",x(),w()}catch(M){console.error(M)}},_=async()=>{(await Lt.getCurrentStatus()).status!=="NONE"&&await Lt.stopRecording().then(H=>{f.value=H.value.mimeType,d.value.push(H.value.recordDataBase64),m.value=c(),E()})},C=async()=>{const M=await Lt.getCurrentStatus();M.status==="RECORDING"?(await _(),a("paused",!1),a("recording",!1),r.value=null,d.value=[],i.value=!1,s.value=0,u.value=y(0)):M.status==="NONE"&&(a("recording",!1),a("paused",!1),r.value=null,i.value=!1,d.value=[],s.value=0,u.value=y(0))},k=async()=>{await Lt.getCurrentStatus(),m.value&&(m.value.pause(),h.value=!1),C()};function N(M){const H=atob(M),ie=H.length,Q=new Uint8Array(ie);for(let fe=0;fe<ie;fe++)Q[fe]=H.charCodeAt(fe);return Q}function S(M){let H=M.reduce((fe,F)=>fe+F.length,0),ie=new Uint8Array(H),Q=0;return M.forEach(fe=>{ie.set(fe,Q),Q+=fe.length}),ie}function B(M){let H="",ie=M.byteLength;for(let Q=0;Q<ie;Q++)H+=String.fromCharCode(M[Q]);return btoa(H)}const A=async()=>{i.value=!0,(await Lt.getCurrentStatus()).status==="RECORDING"&&await _();try{const H=d.value.map(N),ie=S(H),Q=B(ie),fe=`data:${f.value};base64,${Q}`,L={type:"file",media:{name:"audio",mimetype:(j=>j?j.split(";")[0].split(":")[1]:null)(fe),data:fe}};console.log("payload",JSON.stringify(L)),await o.sendAudioToAttendant(o.selectedAttendant.id,L,o.attendant,!0),C()}catch(H){C(),console.error("Erro ao enviar áudio:",H),c1({group:"error",title:"Erro",text:"Erro ao enviar áudio, tente novamente."},4e3);return}};return(M,H)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(e.Transition,{name:"bounce"},{default:e.withCtx(()=>[r.value?(e.openBlock(),e.createElementBlock("div",Y4,[e.createElementVNode("div",X4,[r.value!="paused"?(e.openBlock(),e.createElementBlock("section",K4,"Gravando")):e.createCommentVNode("",!0)]),r.value!="paused"?(e.openBlock(),e.createElementBlock("section",Q4,e.toDisplayString(u.value),1)):e.createCommentVNode("",!0),r.value==="paused"?(e.openBlock(),e.createElementBlock("section",J4,[h.value?(e.openBlock(),e.createElementBlock("button",e5,[e.createVNode(e.unref(h1),{class:"size-6 cursor-pointer",onClick:H[1]||(H[1]=ie=>g("pause"))})])):(e.openBlock(),e.createElementBlock("button",{key:0,onClick:H[0]||(H[0]=ie=>g("play"))},[e.createVNode(e.unref(U4),{class:"size-6 cursor-pointer"})])),H[7]||(H[7]=e.createElementVNode("div",null,null,-1)),e.createTextVNode(" "+e.toDisplayString(u.value),1)])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)]),_:1}),e.createElementVNode("div",t5,[r.value?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:H[2]||(H[2]=ie=>k())},[e.createVNode(e.unref(Z4),{class:"ml-2 size-6 cursor-pointer text-red-500/80 drop-shadow-md"})])):e.createCommentVNode("",!0),r.value==="paused"?(e.openBlock(),e.createElementBlock("button",{key:1,onClick:H[3]||(H[3]=ie=>D())},[e.createVNode(e.unref(f1),{class:"size-7 cursor-pointer text-green-500/90 drop-shadow-md"})])):e.createCommentVNode("",!0),r.value==="started"?(e.openBlock(),e.createElementBlock("button",{key:2,onClick:H[4]||(H[4]=ie=>v())},[e.createVNode(e.unref(h1),{class:"size-7 cursor-pointer text-green-500 drop-shadow-md"})])):e.createCommentVNode("",!0),r.value?(e.openBlock(),e.createElementBlock("button",{key:4,disabled:i.value,class:"mr-2 flex items-center justify-center rounded-full bg-primary p-2 drop-shadow-md",onClick:H[6]||(H[6]=ie=>A())},[i.value?(e.openBlock(),e.createElementBlock("span",o5)):(e.openBlock(),e.createBlock(e.unref(W4),{key:0,class:"size-5 cursor-pointer"}))],8,a5)):(e.openBlock(),e.createElementBlock("button",{key:3,class:"rounded-full bg-primary p-2 send-audio-button",disabled:t.disableBtn,onClick:H[5]||(H[5]=ie=>x())},[e.createVNode(e.unref(f1),{class:"hover:text-white size-5"})],8,n5))])],64))}},[["__scopeId","data-v-ffe4fb12"]]),i5={class:"messages-container bg-base-300"},s5={class:"header-intern bg-base-300"},l5={class:"atendente-name"},c5={key:0,class:"date-separator bg-base-100/50"},d5={class:"date-separator-text"},u5={key:0,class:"dropdown-container-internal-messages"},m5=["onClick"],f5={class:"message-time"},h5={key:1},p5={class:"message-time"},g5={class:"input-area"},p1=Ce({__name:"ChatMessages",props:{isMobile:{type:Boolean,default:!1},selectedAtendente:{type:Object,required:!0},attendant:{required:!0},loadMessagesForAtendente:{type:Function,required:!0},sendMessageToAtendente:{type:Function,required:!0},hasNextPageForAtendente:{type:Function,required:!0},downloadFilesMobile:{type:Function},openMobilePdf:{type:Function}},emits:["send-files","voltar"],setup(t,{emit:n}){const a=t,o=n,r=e.ref(""),i=e.ref(null),s=e.ref(!1),l=e.ref(!1),d=e.ref(!1),f=e.computed(()=>{var C;return((C=a.selectedAtendente)==null?void 0:C.messages)||[]}),u=C=>{a.isMobile&&a.openMobilePdf(C)},h=(C,k)=>{if(C)if(a.isMobile){const S=C.mimetype.split("/")[1],B={url:C.mimetype==="image/svg+xml"?C.data.replace("+","%2B"):C.data,type:S,title:C.name};a.downloadFilesMobile(B,k)}else _(C.data,k)},m=e.computed(()=>a.hasNextPageForAtendente(a.selectedAtendente.id)),p=C=>{const k=new Date(C),N=k.getHours(),S=k.getMinutes();return`${N.toString().padStart(2,"0")}:${S.toString().padStart(2,"0")}`},c=C=>{const k=new Date(C);return u3(k)?"Hoje":f3(k)?"Ontem":d3(k)?Er(k,"EEEE",{locale:Qo}):Er(k,"dd 'de' MMMM 'de' yyyy",{locale:Qo})},g=C=>{if(C===0)return!0;const k=new Date(f.value[C].created_at),N=new Date(f.value[C-1].created_at);return k.toDateString()!==N.toDateString()},y=C=>{C.key==="Enter"&&!C.shiftKey&&(C.preventDefault(),E())},b=()=>{i.value&&i.value.scrollTo({top:i.value.scrollHeight,behavior:"instant"})},w=async C=>{try{if(!m.value){C.complete();return}const k=i.value.scrollHeight,N=i.value.scrollTop;await a.loadMessagesForAtendente(a.selectedAtendente.id),await e.nextTick(),i.value.scrollTop=i.value.scrollHeight-k+N-32,C.loaded()}catch(k){console.error(k),C.complete()}},E=async()=>{if(r.value.trim()!=="")try{const C=JSON.parse(JSON.stringify(r.value));r.value="",await a.sendMessageToAtendente(a.selectedAtendente.id,C,a.attendant),await e.nextTick(),b()}catch(C){console.error("Erro ao enviar mensagem:",C)}},x=()=>{E();const C=document.querySelector(".send-button");C.classList.add("clicked"),setTimeout(()=>{C.classList.remove("clicked")},200)},v=()=>{o("send-files");const C=document.querySelector(".send-files-button");C.classList.add("clicked"),setTimeout(()=>{C.classList.remove("clicked")},200)};e.onMounted(async()=>{await e.nextTick(()=>{b(),s.value=!0})}),e.watch(()=>{var C;return(C=f.value)==null?void 0:C.length},(C,k)=>{f.value&&D()&&setTimeout(()=>{i.value.scrollTo({top:i.value.scrollHeight,behavior:"instant"})},100)});function D(){const k=i.value.scrollTop+i.value.clientHeight;return i.value.scrollHeight-k<=80}const _=async(C,k="undefined")=>{const N=C.endsWith("svg+xml");try{const S=await fetch(N?C.replace("+","%2B"):C);if(!S.ok)throw new Error("Erro ao baixar o arquivo");const B=S.headers.get("Content-Type"),A=await S.arrayBuffer(),M=B&&B!=="application/octet-stream"?B:"audio/mp3",H=new Blob([A],{type:M}),ie=window.URL.createObjectURL(H),Q=document.createElement("a");Q.href=ie;const fe=B.endsWith("aac")?`${k}.mp3`:k;Q.download=fe,document.body.appendChild(Q),Q.click(),document.body.removeChild(Q),window.URL.revokeObjectURL(ie)}catch(S){console.error("Erro no download:",S)}};return(C,k)=>{const N=e.resolveComponent("Popper");return e.openBlock(),e.createElementBlock("div",i5,[e.createElementVNode("div",s5,[e.createElementVNode("button",{onClick:k[0]||(k[0]=S=>o("voltar")),class:"back-button"},k[4]||(k[4]=[e.createElementVNode("svg",{class:"w-6 h-6","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24"},[e.createElementVNode("path",{d:"M14.502 7.046h-2.5v-.928a2.122 2.122 0 0 0-1.199-1.954 1.827 1.827 0 0 0-1.984.311L3.71 8.965a2.2 2.2 0 0 0 0 3.24L8.82 16.7a1.829 1.829 0 0 0 1.985.31 2.121 2.121 0 0 0 1.199-1.959v-.928h1a2.025 2.025 0 0 1 1.999 2.047V19a1 1 0 0 0 1.275.961 6.59 6.59 0 0 0 4.662-7.22 6.593 6.593 0 0 0-6.437-5.695Z"})],-1)])),e.createVNode(ya,{url:t.selectedAtendente.photo},null,8,["url"]),e.createElementVNode("h3",l5,e.toDisplayString(t.selectedAtendente.name),1)]),e.createElementVNode("div",{class:"message-area",ref_key:"chatArea",ref:i},[!d.value&&m.value&&s.value?(e.openBlock(),e.createBlock(e.unref(Ht),{key:0,onInfinite:w,distance:30,top:!0,direction:"top",class:"p-3"},{complete:e.withCtx(()=>k[5]||(k[5]=[e.createElementVNode("span",null,null,-1)])),spinner:e.withCtx(()=>k[6]||(k[6]=[e.createElementVNode("div",{class:"loading"},[e.createElementVNode("svg",{class:"spinner",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},[e.createElementVNode("circle",{class:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"}),e.createElementVNode("path",{class:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4z"})])],-1)])),_:1})):e.createCommentVNode("",!0),e.createElementVNode("div",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f.value,(S,B)=>(e.openBlock(),e.createElementBlock("div",{key:B},[g(B)?(e.openBlock(),e.createElementBlock("div",c5,[k[7]||(k[7]=e.createElementVNode("div",{class:"date-separator-line"},null,-1)),e.createElementVNode("div",d5,e.toDisplayString(c(S.created_at)),1),k[8]||(k[8]=e.createElementVNode("div",{class:"date-separator-line"},null,-1))])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["message",{me:S.sender.id===t.attendant.id,"not-me":S.sender.id!==t.attendant.id,"new-message":B===f.value.length-1}])},[e.createElementVNode("div",{class:e.normalizeClass(["relative",S.sender.id===t.attendant.id?"text-right":"text-left"])},[S.content&&S.content.media&&S.content.media.data?(e.openBlock(),e.createElementBlock("div",u5,[e.createVNode(N,{hover:"",class:"label-popper-internal-messages",placement:"left"},{content:e.withCtx(()=>[e.createElementVNode("button",{class:"download-button-internal-messages",onClick:A=>h(S.content.media,S.content.media.name)}," Baixar ",8,m5)]),default:e.withCtx(()=>[k[9]||(k[9]=e.createElementVNode("button",{class:"dropdown-toggle-internal-messages"},[e.createElementVNode("svg",{class:"dropdown-icon-internal-messages","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},[e.createElementVNode("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m19 9-7 7-7-7"})])],-1))]),_:2,__:[9]},1024)])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["shadow shadow-gray-900 dark:shadow-gray-500",["message-content",{me:S.sender.id===t.attendant.id,"not-me":S.sender.id!==t.attendant.id}]])},[S.content&&S.content.media&&S.content.media.data?(e.openBlock(),e.createBlock(Pa,{key:0,mode:"message",isMobile:t.isMobile,onDownload:A=>h(S.content.media,S.content.media.name),onOpenMobilePdf:A=>u(S.content.media.data),avatar:S.sender.id===t.attendant.id?t.attendant.photo:S.sender.photo,fileName:S.content.media.name,base64:S.content.media.data,mimetype:S.content.media.mimetype},{"content-message":e.withCtx(()=>[e.createElementVNode("p",null,e.toDisplayString(S.content.content),1)]),"time-message":e.withCtx(()=>[e.createElementVNode("div",f5,e.toDisplayString(p(S.created_at)),1)]),_:2},1032,["isMobile","onDownload","onOpenMobilePdf","avatar","fileName","base64","mimetype"])):(e.openBlock(),e.createElementBlock("section",h5,[e.createElementVNode("p",null,e.toDisplayString(S.content.content),1),e.createElementVNode("div",p5,e.toDisplayString(p(S.created_at)),1)]))],2)],2)],2)]))),128))])],512),e.createElementVNode("div",g5,[e.withDirectives(e.createElementVNode("textarea",{type:"text","onUpdate:modelValue":k[1]||(k[1]=S=>r.value=S),class:"message-input bg-base-300 focus:ring-0",placeholder:"Digite sua mensagem...",onKeydown:y},null,544),[[e.vModelText,r.value]]),e.createElementVNode("button",{onClick:v,class:"send-files-button"},k[10]||(k[10]=[e.createElementVNode("svg",{class:"size-5 text-white","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},[e.createElementVNode("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M7 8v8a5 5 0 1 0 10 0V6.5a3.5 3.5 0 1 0-7 0V15a2 2 0 0 0 4 0V8"})],-1)])),r.value.length>0?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:x,class:"send-button"},k[11]||(k[11]=[e.createElementVNode("svg",{class:"size-5 text-white rotate-90","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"currentColor",viewBox:"0 0 24 24"},[e.createElementVNode("path",{"fill-rule":"evenodd",d:"M12 2a1 1 0 0 1 .932.638l7 18a1 1 0 0 1-1.326 1.281L13 19.517V13a1 1 0 1 0-2 0v6.517l-5.606 2.402a1 1 0 0 1-1.326-1.281l7-18A1 1 0 0 1 12 2Z","clip-rule":"evenodd"})],-1)]))):(e.openBlock(),e.createElementBlock("section",{key:1,class:e.normalizeClass(["bg-base-300",["send-audio-button",{recording:l.value}]])},[t.isMobile?(e.openBlock(),e.createBlock(r5,{key:0,attendant:t.attendant,selectedAttendant:t.selectedAtendente,sendAudioToAttendant:t.sendMessageToAtendente,onRecording:k[2]||(k[2]=S=>l.value=S)},null,8,["attendant","selectedAttendant","sendAudioToAttendant"])):(e.openBlock(),e.createBlock(_4,{key:1,"can-send-message":!0,attendant:t.attendant,selectedAttendant:t.selectedAtendente,sendAudioToAttendant:t.sendMessageToAtendente,onRecording:k[3]||(k[3]=S=>l.value=S)},null,8,["attendant","selectedAttendant","sendAudioToAttendant"]))],2))])])}}},[["__scopeId","data-v-22b5feef"]]),y5={},k5={class:"loading"};function x5(t,n){return e.openBlock(),e.createElementBlock("div",k5,n[0]||(n[0]=[e.createElementVNode("svg",{class:"spinner",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},[e.createElementVNode("circle",{class:"opacity-30",cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"}),e.createElementVNode("path",{class:"opacity-90",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4z"})],-1)]))}const g1=Ce(y5,[["render",x5],["__scopeId","data-v-17a2cc35"]]);/**
|
|
93
|
+
`,caption:y}]):Pe.show([{src:f,type:"image",caption:y}]))},c=()=>{const f=document.createElement("canvas"),g=320,y=180;f.width=g,f.height=y;const k=f.getContext("2d");return k.fillStyle="black",k.fillRect(0,0,g,y),f.toDataURL("image/png")};function h(f,g=1){return new Promise((y,k)=>{const E=document.createElement("video");E.src=f,E.crossOrigin="anonymous",E.muted=!0,E.playsInline=!0,E.preload="auto",E.addEventListener("loadeddata",()=>{E.readyState>=2&&(E.currentTime=g)}),E.addEventListener("seeked",()=>{const C=document.createElement("canvas");C.width=E.videoWidth,C.height=E.videoHeight,C.getContext("2d").drawImage(E,0,0,C.width,C.height);const N=C.toDataURL("image/png");y(N)})})}const m=f=>typeof f=="string"&&f.startsWith("data:")&&f.includes(";base64,"),p=f=>{const g=Math.floor(f/60),y=(f%60).toFixed(0),k=g.toString().padStart(2,"0"),E=y.toString().padStart(2,"0");return`${k}:${E}`};return e.onMounted(async()=>{try{const f=await h(n.base64),g=f&&f!=="data:,";a.value=g?f:c()}catch(f){console.error("Erro ao gerar thumbnail:",f),a.value=c()}}),(f,g)=>(e.openBlock(),e.createElementBlock("main",{class:e.normalizeClass({main_preview_files_container_message:t.mode==="message",main_preview_files_container_miniature:t.mode==="miniature","main_preview_files_container_preview bg-base-200":t.mode==="preview"})},[!t.isMobile&&i.value?(e.openBlock(),e.createElementBlock("section",y4,[t.mode!=="miniature"?(e.openBlock(),e.createElementBlock("iframe",{key:0,class:"iframe_preview_files",src:t.base64,frameborder:"0"},null,8,k4)):(e.openBlock(),e.createElementBlock("svg",x4,[...g[6]||(g[6]=[e.createElementVNode("path",{"fill-rule":"evenodd",d:"M9 2.221V7H4.221a2 2 0 0 1 .365-.5L8.5 2.586A2 2 0 0 1 9 2.22ZM11 2v5a2 2 0 0 1-2 2H4a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2 2 2 0 0 0 2 2h12a2 2 0 0 0 2-2 2 2 0 0 0 2-2v-7a2 2 0 0 0-2-2V4a2 2 0 0 0-2-2h-7Zm-6 9a1 1 0 0 0-1 1v5a1 1 0 1 0 2 0v-1h.5a2.5 2.5 0 0 0 0-5H5Zm1.5 3H6v-1h.5a.5.5 0 0 1 0 1Zm4.5-3a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1h1.376A2.626 2.626 0 0 0 15 15.375v-1.75A2.626 2.626 0 0 0 12.375 11H11Zm1 5v-3h.375a.626.626 0 0 1 .625.626v1.748a.625.625 0 0 1-.626.626H12Zm5-5a1 1 0 0 0-1 1v5a1 1 0 1 0 2 0v-1h1a1 1 0 1 0 0-2h-1v-1h1a1 1 0 1 0 0-2h-2Z","clip-rule":"evenodd"},null,-1)])]))])):t.isMobile&&i.value&&t.mode==="message"?(e.openBlock(),e.createElementBlock("section",{key:1,class:e.normalizeClass(t.mode==="message"?"flex flex-col bg-base-300 p-2 rounded-md gap-2":"")},[e.createElementVNode("span",b4,[g[7]||(g[7]=e.createElementVNode("svg",{class:"size-8 text-primary","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"currentColor",viewBox:"0 0 24 24"},[e.createElementVNode("path",{"fill-rule":"evenodd",d:"M9 2.221V7H4.221a2 2 0 0 1 .365-.5L8.5 2.586A2 2 0 0 1 9 2.22ZM11 2v5a2 2 0 0 1-2 2H4a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2 2 2 0 0 0 2 2h12a2 2 0 0 0 2-2 2 2 0 0 0 2-2v-7a2 2 0 0 0-2-2V4a2 2 0 0 0-2-2h-7Zm-6 9a1 1 0 0 0-1 1v5a1 1 0 1 0 2 0v-1h.5a2.5 2.5 0 0 0 0-5H5Zm1.5 3H6v-1h.5a.5.5 0 0 1 0 1Zm4.5-3a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1h1.376A2.626 2.626 0 0 0 15 15.375v-1.75A2.626 2.626 0 0 0 12.375 11H11Zm1 5v-3h.375a.626.626 0 0 1 .625.626v1.748a.625.625 0 0 1-.626.626H12Zm5-5a1 1 0 0 0-1 1v5a1 1 0 1 0 2 0v-1h1a1 1 0 1 0 0-2h-1v-1h1a1 1 0 1 0 0-2h-2Z","clip-rule":"evenodd"})],-1)),e.createElementVNode("p",w4,e.toDisplayString(t.fileName),1)]),t.mode==="message"?(e.openBlock(),e.createElementBlock("div",E4,[e.createElementVNode("button",{class:"bg-base-200 p-2 text-primary w-full text-xs rounded-md hover:bg-base-100",onClick:g[0]||(g[0]=y=>f.$emit("open-mobile-pdf"))}," Abrir PDF ")])):e.createCommentVNode("",!0)],2)):s.value?(e.openBlock(),e.createElementBlock("button",{key:2,onClick:g[1]||(g[1]=y=>u(t.base64,t.mimetype)),class:"video_message_preview_container"},[e.createElementVNode("div",v4,[e.createElementVNode("div",C4,[(e.openBlock(),e.createElementBlock("svg",S4,[...g[8]||(g[8]=[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m19 9-7 7-7-7"},null,-1)])])),(e.openBlock(),e.createElementBlock("svg",B4,[...g[9]||(g[9]=[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m19 9-7 7-7-7"},null,-1)])])),(e.openBlock(),e.createElementBlock("svg",V4,[...g[10]||(g[10]=[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m19 9-7 7-7-7"},null,-1)])])),(e.openBlock(),e.createElementBlock("svg",M4,[...g[11]||(g[11]=[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m19 9-7 7-7-7"},null,-1)])]))])]),e.createElementVNode("img",{class:e.normalizeClass(["preview_img",t.mode]),src:m(t.base64)?t.base64:t.base64.replace("+","%2B")},null,10,N4)])):d(t.mimetype)?(e.openBlock(),e.createElementBlock("section",A4,[t.mode==="preview"?(e.openBlock(),e.createElementBlock("video",{key:0,width:"300",height:"150",controls:"",src:t.base64},[e.createElementVNode("source",{src:t.base64,type:t.mimetype},null,8,D4)],8,T4)):t.mode==="miniature"?(e.openBlock(),e.createElementBlock("svg",L4,[...g[12]||(g[12]=[e.createElementVNode("path",{"fill-rule":"evenodd",d:"M14 7a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V7Zm2 9.387 4.684 1.562A1 1 0 0 0 22 17V7a1 1 0 0 0-1.316-.949L16 7.613v8.774Z","clip-rule":"evenodd"},null,-1)])])):t.mode==="message"?(e.openBlock(),e.createElementBlock("button",{key:2,onClick:g[2]||(g[2]=y=>u(t.base64,t.mimetype)),class:"video_message_preview_container"},[a.value?(e.openBlock(),e.createElementBlock("section",F4,[e.createElementVNode("div",$4,[g[17]||(g[17]=e.createElementVNode("svg",{class:"size-12 text-white","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"currentColor",viewBox:"0 0 24 24"},[e.createElementVNode("path",{"fill-rule":"evenodd",d:"M8.6 5.2A1 1 0 0 0 7 6v12a1 1 0 0 0 1.6.8l8-6a1 1 0 0 0 0-1.6l-8-6Z","clip-rule":"evenodd"})],-1)),e.createElementVNode("div",P4,[(e.openBlock(),e.createElementBlock("svg",_4,[...g[13]||(g[13]=[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m19 9-7 7-7-7"},null,-1)])])),(e.openBlock(),e.createElementBlock("svg",O4,[...g[14]||(g[14]=[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m19 9-7 7-7-7"},null,-1)])])),(e.openBlock(),e.createElementBlock("svg",R4,[...g[15]||(g[15]=[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m19 9-7 7-7-7"},null,-1)])])),(e.openBlock(),e.createElementBlock("svg",H4,[...g[16]||(g[16]=[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m19 9-7 7-7-7"},null,-1)])]))])]),e.createElementVNode("img",{class:e.normalizeClass(["preview_img",t.mode]),src:a.value},null,10,z4)])):(e.openBlock(),e.createElementBlock("span",j4,[...g[18]||(g[18]=[e.createElementVNode("span",{class:"loader-preview-lib"},null,-1)])]))])):e.createCommentVNode("",!0)])):l.value?(e.openBlock(),e.createElementBlock("section",G4,[t.mode!=="miniature"?(e.openBlock(),e.createElementBlock("section",I4,[e.createVNode(N1,{avatar:t.avatar,audio:t.base64,onDuration:g[3]||(g[3]=y=>o.value=y),onCurrentTime:g[4]||(g[4]=y=>r.value=y)},null,8,["avatar","audio"])])):(e.openBlock(),e.createElementBlock("svg",q4,[...g[19]||(g[19]=[e.createElementVNode("path",{"fill-rule":"evenodd",d:"M5 8a1 1 0 0 1 1 1v3a4.006 4.006 0 0 0 4 4h4a4.006 4.006 0 0 0 4-4V9a1 1 0 1 1 2 0v3.001A6.006 6.006 0 0 1 14.001 18H13v2h2a1 1 0 1 1 0 2H9a1 1 0 1 1 0-2h2v-2H9.999A6.006 6.006 0 0 1 4 12.001V9a1 1 0 0 1 1-1Z","clip-rule":"evenodd"},null,-1),e.createElementVNode("path",{d:"M7 6a4 4 0 0 1 4-4h2a4 4 0 0 1 4 4v5a4 4 0 0 1-4 4h-2a4 4 0 0 1-4-4V6Z"},null,-1)])]))])):(e.openBlock(),e.createElementBlock("div",{key:5,class:e.normalizeClass(t.mode==="message"?"generic_files":"")},[g[20]||(g[20]=e.createElementVNode("div",null,[e.createElementVNode("svg",{class:"size-8 text-white","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"currentColor",viewBox:"0 0 24 24"},[e.createElementVNode("path",{"fill-rule":"evenodd",d:"M9 2.221V7H4.221a2 2 0 0 1 .365-.5L8.5 2.586A2 2 0 0 1 9 2.22ZM11 2v5a2 2 0 0 1-2 2H4v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2h-7Z","clip-rule":"evenodd"})])],-1)),t.mode==="message"?(e.openBlock(),e.createElementBlock("span",W4,[e.createElementVNode("p",U4,e.toDisplayString(t.fileName),1),e.createElementVNode("button",{class:"download_btn_generic_files",onClick:g[5]||(g[5]=y=>f.$emit("download"))}," Baixar arquivo ")])):e.createCommentVNode("",!0)],2)),t.mode==="message"?(e.openBlock(),e.createElementBlock("div",Z4,[e.renderSlot(f.$slots,"content-message",{},void 0,!0),e.createElementVNode("div",{class:e.normalizeClass([o.value?"justify-between":" justify-end","flex w-full"])},[l.value&&o.value?(e.openBlock(),e.createElementBlock("p",Y4,e.toDisplayString(p(o.value))+" - "+e.toDisplayString(r.value?p(r.value):"00:00"),1)):e.createCommentVNode("",!0),e.renderSlot(f.$slots,"time-message",{},void 0,!0)],2)])):e.createCommentVNode("",!0)],2))}},[["__scopeId","data-v-6405f10f"]]),X4={props:{audioStream:MediaStream},data(){return{audioContext:null,analyser:null}},mounted(){this.initializeAudio()},methods:{initializeAudio(){this.audioContext=new(window.AudioContext||window.webkitAudioContext),this.analyser=this.audioContext.createAnalyser();const t=this.$refs.canvas,n=t.getContext("2d");this.audioContext.createMediaStreamSource(this.audioStream).connect(this.analyser),this.analyser.fftSize=256;const o=this.analyser.frequencyBinCount,r=new Uint8Array(o),i=()=>{this.analyser.getByteFrequencyData(r),n.clearRect(0,0,t.width,t.height);const s=t.width/o*2.5,l=t.height/2;let d=0;n.strokeStyle="green",n.lineWidth=2,n.beginPath(),n.moveTo(0,l),n.lineTo(t.width,l),n.stroke(),r.forEach(u=>{const c=u;n.fillStyle=`rgb(50, ${c+100}, 50)`,n.fillRect(d,l-c/2,s,c),d+=s+1}),this.audioStream.active&&requestAnimationFrame(i)};i()}}},K4={ref:"canvas",width:"200",height:"40",class:"mx-auto flex items-center rounded"};function Q4(t,n,a,o,r,i){return e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("canvas",K4,null,512)])}const J4=we(X4,[["render",Q4],["__scopeId","data-v-49dbe3dd"]]),e5={key:0,class:"flex w-full items-center space-x-3 text-white dark:text-black"},t5=["disabled"],n5=["disabled"],a5={key:0,class:"size-4 hover:text-red-500","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 10 16"},o5={key:1,xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"w-5 hover:text-emerald-500"},r5={key:5,class:"flex w-full items-center space-x-2"},i5={class:"text-xs"},s5={key:0},l5={key:1,class:"flex items-center px-2 pr-[21px]"},c5=we({__name:"audioRecorder",props:{canSendMessage:Boolean,sendAudioToAttendant:{type:Function,required:!0},selectedAttendant:{type:Object,required:!0},attendant:{required:!0}},emits:["audio-sent","recording","b64Audio"],setup(t,{emit:n}){const a=t,o=n,r=e.ref(null),i=e.ref(!1),s=e.ref(!1),l=e.ref(0),d=e.ref(0),u=e.ref(null),c=e.ref(null),h=e.ref(null),m=e.ref(null),p=e.ref(0),f=e.ref(0),g=e.ref(null),y=e.ref(!1),k=e.ref(!1),E=S=>{p.value=S},C=S=>{f.value=S},b=S=>{const v=Math.floor(S/60),P=(S%60).toFixed(0),Z=v.toString().padStart(2,"0"),Q=P.toString().padStart(2,"0");return`${Z}:${Q}`},N=async()=>{try{c.value=null,m.value=await navigator.mediaDevices.getUserMedia({audio:!0}),r.value=new MediaRecorder(m.value),r.value.ondataavailable=D,r.value.start(),z(),i.value=!0,o("recording",!0)}catch(S){console.error("Erro ao iniciar a gravação:",S)}},D=S=>{S.data.size>0&&!y.value&&(u.value=new Blob([S.data]),g.value=URL.createObjectURL(u.value),T())},z=()=>{let S=Date.now();h.value=setInterval(()=>{l.value=d.value+Math.floor((Date.now()-S)/1e3)},1e3)},M=async()=>{c.value=null,r.value&&i.value&&(s.value?(r.value.resume(),z()):(r.value.pause(),clearInterval(h.value),d.value=l.value),s.value=!s.value)},x=async()=>{r.value&&i.value&&(await r.value.stop(),clearInterval(h.value),i.value=!1,s.value=!1,T()),m.value&&m.value.getTracks().forEach(S=>S.stop())},T=async()=>{if(u.value){const S=new Blob([u.value],{type:"audio/mpeg"}),v=new FileReader;v.onload=()=>{c.value=v.result},v.readAsDataURL(S)}},B=async()=>{k.value=!0,o("b64Audio",c.value);const v={type:"file",media:{name:"audio",mimetype:(P=>P?P.split(";")[0].split(":")[1]:null)(c.value),data:c.value}};await a.sendAudioToAttendant(a.selectedAttendant.id,v,a.attendant,!0),o("recording",!1),k.value=!1,m.value=null,c.value=null,u.value=null,i.value=!1,s.value=!1,l.value=0},V=async()=>{y.value=!0,i.value=!1,o("recording",!1),await r.value.stop(),m.value&&(m.value.getTracks().forEach(S=>S.stop()),m.value=null),u.value=null,clearInterval(h.value),c.value=null,s.value=!1,l.value=0};return(S,v)=>{var P;return k.value?(e.openBlock(),e.createElementBlock("div",l5,[...v[9]||(v[9]=[e.createElementVNode("span",{class:"loader-audio-recorder"},null,-1)])])):(e.openBlock(),e.createElementBlock("div",e5,[!i.value&&!c.value?(e.openBlock(),e.createElementBlock("button",{key:0,class:e.normalizeClass(["send-audio-button",{recording:i.value}]),disabled:i.value||!t.canSendMessage,onClick:v[0]||(v[0]=Z=>(N(),d.value=0,y.value=!1))},[...v[3]||(v[3]=[e.createElementVNode("svg",{class:"start-recording-icon","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 16 19"},[e.createElementVNode("path",{d:"M15 5a1 1 0 0 0-1 1v3a4 4 0 0 1-4 4H6a4 4 0 0 1-4-4V6a1 1 0 0 0-2 0v3a6.006 6.006 0 0 0 6 6h1v2H5a1 1 0 0 0 0 2h6a1 1 0 0 0 0-2H9v-2h1a6.006 6.006 0 0 0 6-6V6a1 1 0 0 0-1-1Z"}),e.createElementVNode("path",{d:"M9 0H7a3 3 0 0 0-3 3v5a3 3 0 0 0 3 3h2a3 3 0 0 0 3-3V3a3 3 0 0 0-3-3Z"})],-1)])],10,t5)):e.createCommentVNode("",!0),m.value?(e.openBlock(),e.createElementBlock("button",{key:1,class:"rounded-full bg-red-500 p-1.5 hover:bg-red-600",onClick:v[1]||(v[1]=Z=>V())},[...v[4]||(v[4]=[e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"size-4"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M14.74 9l-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 01-2.244 2.077H8.084a2.25 2.25 0 01-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 00-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 013.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 00-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 00-7.5 0"})],-1)])])):e.createCommentVNode("",!0),i.value?(e.openBlock(),e.createElementBlock("button",{key:2,disabled:!i.value&&!s.value,onClick:M},[s.value?(e.openBlock(),e.createElementBlock("svg",o5,[...v[6]||(v[6]=[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M21 7.5V18M15 7.5V18M3 16.811V8.69c0-.864.933-1.406 1.683-.977l7.108 4.061a1.125 1.125 0 010 1.954l-7.108 4.061A1.125 1.125 0 013 16.811z"},null,-1)])])):(e.openBlock(),e.createElementBlock("svg",a5,[...v[5]||(v[5]=[e.createElementVNode("path",{"fill-rule":"evenodd",d:"M0 .8C0 .358.32 0 .714 0h1.429c.394 0 .714.358.714.8v14.4c0 .442-.32.8-.714.8H.714a.678.678 0 0 1-.505-.234A.851.851 0 0 1 0 15.2V.8Zm7.143 0c0-.442.32-.8.714-.8h1.429c.19 0 .37.084.505.234.134.15.209.354.209.566v14.4c0 .442-.32.8-.714.8H7.857c-.394 0-.714-.358-.714-.8V.8Z","clip-rule":"evenodd"},null,-1)])]))],8,n5)):e.createCommentVNode("",!0),(i.value||u.value)&&!c.value?(e.openBlock(),e.createElementBlock("button",{key:3,class:"rounded-full p-1.5 hover:bg-gray-100 hover:text-light",onClick:x},[...v[7]||(v[7]=[e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"size-4"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M5.25 7.5A2.25 2.25 0 017.5 5.25h9a2.25 2.25 0 012.25 2.25v9a2.25 2.25 0 01-2.25 2.25h-9a2.25 2.25 0 01-2.25-2.25v-9z"})],-1)])])):e.createCommentVNode("",!0),m.value&&i.value&&!s.value?(e.openBlock(),e.createBlock(J4,{key:4,"audio-stream":m.value},null,8,["audio-stream"])):e.createCommentVNode("",!0),c.value?(e.openBlock(),e.createElementBlock("div",r5,[e.createVNode(N1,{avatar:((P=t.attendant)==null?void 0:P.photo)||null,audio:c.value,onDuration:E,onCurrentTime:C},null,8,["avatar","audio"]),e.createElementVNode("main",i5,[e.createElementVNode("div",null,e.toDisplayString(b(f.value)),1),i.value||u.value?(e.openBlock(),e.createElementBlock("div",s5,e.toDisplayString(b(l.value)),1)):e.createCommentVNode("",!0)])])):e.createCommentVNode("",!0),c.value?(e.openBlock(),e.createElementBlock("button",{key:6,class:"rounded-full p-2 hover:bg-base-100",onClick:v[2]||(v[2]=Z=>B())},[...v[8]||(v[8]=[e.createElementVNode("svg",{class:"size-5 text-base-200 rotate-90","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"currentColor",viewBox:"0 0 24 24"},[e.createElementVNode("path",{"fill-rule":"evenodd",d:"M12 2a1 1 0 0 1 .932.638l7 18a1 1 0 0 1-1.326 1.281L13 19.517V13a1 1 0 1 0-2 0v6.517l-5.606 2.402a1 1 0 0 1-1.326-1.281l7-18A1 1 0 0 1 12 2Z","clip-rule":"evenodd"})],-1)])])):e.createCommentVNode("",!0)]))}}},[["__scopeId","data-v-fe1e6df5"]]);function d5(t){return{all:t=t||new Map,on:function(n,a){var o=t.get(n);o?o.push(a):t.set(n,[a])},off:function(n,a){var o=t.get(n);o&&(a?o.splice(o.indexOf(a)>>>0,1):t.set(n,[]))},emit:function(n,a){var o=t.get(n);o&&o.slice().map(function(r){r(a)}),(o=t.get("*"))&&o.slice().map(function(r){r(n,a)})}}}const A1=d5();let T1=0;const u5=()=>{const t=T1;return T1+=1,t},D1=(t,n)=>{const a={...t,id:u5(),group:t.group||""};return A1.emit("notify",{notification:a,timeout:n}),()=>A1.emit("close",a.id)};/*! Capacitor: https://capacitorjs.com/ - MIT License */var an;(function(t){t.Unimplemented="UNIMPLEMENTED",t.Unavailable="UNAVAILABLE"})(an||(an={}));class Xa extends Error{constructor(n,a,o){super(n),this.message=n,this.code=a,this.data=o}}const f5=t=>{var n,a;return t!=null&&t.androidBridge?"android":!((a=(n=t==null?void 0:t.webkit)===null||n===void 0?void 0:n.messageHandlers)===null||a===void 0)&&a.bridge?"ios":"web"},m5=t=>{const n=t.CapacitorCustomPlatform||null,a=t.Capacitor||{},o=a.Plugins=a.Plugins||{},r=()=>n!==null?n.name:f5(t),i=()=>r()!=="web",s=h=>{const m=u.get(h);return!!(m!=null&&m.platforms.has(r())||l(h))},l=h=>{var m;return(m=a.PluginHeaders)===null||m===void 0?void 0:m.find(p=>p.name===h)},d=h=>t.console.error(h),u=new Map,c=(h,m={})=>{const p=u.get(h);if(p)return console.warn(`Capacitor plugin "${h}" already registered. Cannot register plugins twice.`),p.proxy;const f=r(),g=l(h);let y;const k=async()=>(!y&&f in m?y=typeof m[f]=="function"?y=await m[f]():y=m[f]:n!==null&&!y&&"web"in m&&(y=typeof m.web=="function"?y=await m.web():y=m.web),y),E=(M,x)=>{var T,B;if(g){const V=g==null?void 0:g.methods.find(S=>x===S.name);if(V)return V.rtype==="promise"?S=>a.nativePromise(h,x.toString(),S):(S,v)=>a.nativeCallback(h,x.toString(),S,v);if(M)return(T=M[x])===null||T===void 0?void 0:T.bind(M)}else{if(M)return(B=M[x])===null||B===void 0?void 0:B.bind(M);throw new Xa(`"${h}" plugin is not implemented on ${f}`,an.Unimplemented)}},C=M=>{let x;const T=(...B)=>{const V=k().then(S=>{const v=E(S,M);if(v){const P=v(...B);return x=P==null?void 0:P.remove,P}else throw new Xa(`"${h}.${M}()" is not implemented on ${f}`,an.Unimplemented)});return M==="addListener"&&(V.remove=async()=>x()),V};return T.toString=()=>`${M.toString()}() { [capacitor code] }`,Object.defineProperty(T,"name",{value:M,writable:!1,configurable:!1}),T},b=C("addListener"),N=C("removeListener"),D=(M,x)=>{const T=b({eventName:M},x),B=async()=>{const S=await T;N({eventName:M,callbackId:S},x)},V=new Promise(S=>T.then(()=>S({remove:B})));return V.remove=async()=>{console.warn("Using addListener() without 'await' is deprecated."),await B()},V},z=new Proxy({},{get(M,x){switch(x){case"$$typeof":return;case"toJSON":return()=>({});case"addListener":return g?D:b;case"removeListener":return N;default:return C(x)}}});return o[h]=z,u.set(h,{name:h,proxy:z,platforms:new Set([...Object.keys(m),...g?[f]:[]])}),z};return a.convertFileSrc||(a.convertFileSrc=h=>h),a.getPlatform=r,a.handleError=d,a.isNativePlatform=i,a.isPluginAvailable=s,a.registerPlugin=c,a.Exception=Xa,a.DEBUG=!!a.DEBUG,a.isLoggingEnabled=!!a.isLoggingEnabled,a},ea=(t=>t.Capacitor=m5(t))(typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}),wn=ea.registerPlugin;class ta{constructor(){this.listeners={},this.retainedEventArguments={},this.windowListeners={}}addListener(n,a){let o=!1;this.listeners[n]||(this.listeners[n]=[],o=!0),this.listeners[n].push(a);const i=this.windowListeners[n];i&&!i.registered&&this.addWindowListener(i),o&&this.sendRetainedArgumentsForEvent(n);const s=async()=>this.removeListener(n,a);return Promise.resolve({remove:s})}async removeAllListeners(){this.listeners={};for(const n in this.windowListeners)this.removeWindowListener(this.windowListeners[n]);this.windowListeners={}}notifyListeners(n,a,o){const r=this.listeners[n];if(!r){if(o){let i=this.retainedEventArguments[n];i||(i=[]),i.push(a),this.retainedEventArguments[n]=i}return}r.forEach(i=>i(a))}hasListeners(n){var a;return!!(!((a=this.listeners[n])===null||a===void 0)&&a.length)}registerWindowListener(n,a){this.windowListeners[a]={registered:!1,windowEventName:n,pluginEventName:a,handler:o=>{this.notifyListeners(a,o)}}}unimplemented(n="not implemented"){return new ea.Exception(n,an.Unimplemented)}unavailable(n="not available"){return new ea.Exception(n,an.Unavailable)}async removeListener(n,a){const o=this.listeners[n];if(!o)return;const r=o.indexOf(a);this.listeners[n].splice(r,1),this.listeners[n].length||this.removeWindowListener(this.windowListeners[n])}addWindowListener(n){window.addEventListener(n.windowEventName,n.handler),n.registered=!0}removeWindowListener(n){n&&(window.removeEventListener(n.windowEventName,n.handler),n.registered=!1)}sendRetainedArgumentsForEvent(n){const a=this.retainedEventArguments[n];a&&(delete this.retainedEventArguments[n],a.forEach(o=>{this.notifyListeners(n,o)}))}}const L1=t=>encodeURIComponent(t).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape),F1=t=>t.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent);class h5 extends ta{async getCookies(){const n=document.cookie,a={};return n.split(";").forEach(o=>{if(o.length<=0)return;let[r,i]=o.replace(/=/,"CAP_COOKIE").split("CAP_COOKIE");r=F1(r).trim(),i=F1(i).trim(),a[r]=i}),a}async setCookie(n){try{const a=L1(n.key),o=L1(n.value),r=`; expires=${(n.expires||"").replace("expires=","")}`,i=(n.path||"/").replace("path=",""),s=n.url!=null&&n.url.length>0?`domain=${n.url}`:"";document.cookie=`${a}=${o||""}${r}; path=${i}; ${s};`}catch(a){return Promise.reject(a)}}async deleteCookie(n){try{document.cookie=`${n.key}=; Max-Age=0`}catch(a){return Promise.reject(a)}}async clearCookies(){try{const n=document.cookie.split(";")||[];for(const a of n)document.cookie=a.replace(/^ +/,"").replace(/=.*/,`=;expires=${new Date().toUTCString()};path=/`)}catch(n){return Promise.reject(n)}}async clearAllCookies(){try{await this.clearCookies()}catch(n){return Promise.reject(n)}}}wn("CapacitorCookies",{web:()=>new h5});const p5=async t=>new Promise((n,a)=>{const o=new FileReader;o.onload=()=>{const r=o.result;n(r.indexOf(",")>=0?r.split(",")[1]:r)},o.onerror=r=>a(r),o.readAsDataURL(t)}),g5=(t={})=>{const n=Object.keys(t);return Object.keys(t).map(r=>r.toLocaleLowerCase()).reduce((r,i,s)=>(r[i]=t[n[s]],r),{})},y5=(t,n=!0)=>t?Object.entries(t).reduce((o,r)=>{const[i,s]=r;let l,d;return Array.isArray(s)?(d="",s.forEach(u=>{l=n?encodeURIComponent(u):u,d+=`${i}=${l}&`}),d.slice(0,-1)):(l=n?encodeURIComponent(s):s,d=`${i}=${l}`),`${o}&${d}`},"").substr(1):null,$1=(t,n={})=>{const a=Object.assign({method:t.method||"GET",headers:t.headers},n),r=g5(t.headers)["content-type"]||"";if(typeof t.data=="string")a.body=t.data;else if(r.includes("application/x-www-form-urlencoded")){const i=new URLSearchParams;for(const[s,l]of Object.entries(t.data||{}))i.set(s,l);a.body=i.toString()}else if(r.includes("multipart/form-data")||t.data instanceof FormData){const i=new FormData;if(t.data instanceof FormData)t.data.forEach((l,d)=>{i.append(d,l)});else for(const l of Object.keys(t.data))i.append(l,t.data[l]);a.body=i;const s=new Headers(a.headers);s.delete("content-type"),a.headers=s}else(r.includes("application/json")||typeof t.data=="object")&&(a.body=JSON.stringify(t.data));return a};class k5 extends ta{async request(n){const a=$1(n,n.webFetchExtra),o=y5(n.params,n.shouldEncodeUrlParams),r=o?`${n.url}?${o}`:n.url,i=await fetch(r,a),s=i.headers.get("content-type")||"";let{responseType:l="text"}=i.ok?n:{};s.includes("application/json")&&(l="json");let d,u;switch(l){case"arraybuffer":case"blob":u=await i.blob(),d=await p5(u);break;case"json":d=await i.json();break;case"document":case"text":default:d=await i.text()}const c={};return i.headers.forEach((h,m)=>{c[m]=h}),{data:d,headers:c,status:i.status,url:i.url}}async get(n){return this.request(Object.assign(Object.assign({},n),{method:"GET"}))}async post(n){return this.request(Object.assign(Object.assign({},n),{method:"POST"}))}async put(n){return this.request(Object.assign(Object.assign({},n),{method:"PUT"}))}async patch(n){return this.request(Object.assign(Object.assign({},n),{method:"PATCH"}))}async delete(n){return this.request(Object.assign(Object.assign({},n),{method:"DELETE"}))}}wn("CapacitorHttp",{web:()=>new k5});const na={RECORDING:"RECORDING",PAUSED:"PAUSED",NONE:"NONE"},jt=wn("VoiceRecorder",{web:()=>Promise.resolve().then(()=>fb).then(t=>new t.VoiceRecorderWeb)});function P1(t,n){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[e.createElementVNode("path",{d:"M8.25 4.5a3.75 3.75 0 1 1 7.5 0v8.25a3.75 3.75 0 1 1-7.5 0V4.5Z"}),e.createElementVNode("path",{d:"M6 10.5a.75.75 0 0 1 .75.75v1.5a5.25 5.25 0 1 0 10.5 0v-1.5a.75.75 0 0 1 1.5 0v1.5a6.751 6.751 0 0 1-6 6.709v2.291h3a.75.75 0 0 1 0 1.5h-7.5a.75.75 0 0 1 0-1.5h3v-2.291a6.751 6.751 0 0 1-6-6.709v-1.5A.75.75 0 0 1 6 10.5Z"})])}function x5(t,n){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[e.createElementVNode("path",{d:"M3.478 2.404a.75.75 0 0 0-.926.941l2.432 7.905H13.5a.75.75 0 0 1 0 1.5H4.984l-2.432 7.905a.75.75 0 0 0 .926.94 60.519 60.519 0 0 0 18.445-8.986.75.75 0 0 0 0-1.218A60.517 60.517 0 0 0 3.478 2.404Z"})])}function _1(t,n){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[e.createElementVNode("path",{"fill-rule":"evenodd",d:"M6.75 5.25a.75.75 0 0 1 .75-.75H9a.75.75 0 0 1 .75.75v13.5a.75.75 0 0 1-.75.75H7.5a.75.75 0 0 1-.75-.75V5.25Zm7.5 0A.75.75 0 0 1 15 4.5h1.5a.75.75 0 0 1 .75.75v13.5a.75.75 0 0 1-.75.75H15a.75.75 0 0 1-.75-.75V5.25Z","clip-rule":"evenodd"})])}function b5(t,n){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[e.createElementVNode("path",{"fill-rule":"evenodd",d:"M4.5 5.653c0-1.427 1.529-2.33 2.779-1.643l11.54 6.347c1.295.712 1.295 2.573 0 3.286L7.28 19.99c-1.25.687-2.779-.217-2.779-1.643V5.653Z","clip-rule":"evenodd"})])}function w5(t,n){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[e.createElementVNode("path",{"fill-rule":"evenodd",d:"M16.5 4.478v.227a48.816 48.816 0 0 1 3.878.512.75.75 0 1 1-.256 1.478l-.209-.035-1.005 13.07a3 3 0 0 1-2.991 2.77H8.084a3 3 0 0 1-2.991-2.77L4.087 6.66l-.209.035a.75.75 0 0 1-.256-1.478A48.567 48.567 0 0 1 7.5 4.705v-.227c0-1.564 1.213-2.9 2.816-2.951a52.662 52.662 0 0 1 3.369 0c1.603.051 2.815 1.387 2.815 2.951Zm-6.136-1.452a51.196 51.196 0 0 1 3.273 0C14.39 3.05 15 3.684 15 4.478v.113a49.488 49.488 0 0 0-6 0v-.113c0-.794.609-1.428 1.364-1.452Zm-.355 5.945a.75.75 0 1 0-1.5.058l.347 9a.75.75 0 1 0 1.499-.058l-.346-9Zm5.48.058a.75.75 0 1 0-1.498-.058l-.347 9a.75.75 0 0 0 1.5.058l.345-9Z","clip-rule":"evenodd"})])}const E5={key:0,class:"bg-base-300 absolute bottom-14 left-0 z-50 flex w-full items-center justify-between rounded-t-2xl p-3"},v5={class:"flex h-11 items-center"},C5={key:0},S5={key:0},B5={key:1,class:"flex w-full justify-between rounded-lg border-2 border-gray-500 p-2 px-4"},V5={key:1},M5={class:"flex w-full items-center justify-between gap-2"},N5=["disabled"],A5=["disabled"],T5={key:1,class:"loader-mobile-audio-recorder"},D5=we({__name:"mobileAudioRecorder",props:{disableBtn:{type:Boolean,default:!1},sendAudioToAttendant:{type:Function,required:!0},selectedAttendant:{type:Object,required:!0},attendant:{required:!0}},emits:["audio-sent","recording","paused"],setup(t,{emit:n}){const a=n,o=t,r=e.ref(null),i=e.ref(!1),s=e.ref(0),l=e.ref(null),d=e.ref([]),u=e.ref(null),c=e.ref("00:00"),h=e.ref(!1),m=e.ref(null);let p=0;e.onUnmounted(()=>{z()});const f=()=>{let v;try{if(d.value.length>0){const P=d.value.map(J=>{const _=atob(J),R=new Array(_.length);for(let oe=0;oe<_.length;oe++)R[oe]=_.charCodeAt(oe);const O=new Uint8Array(R);return new Blob([O],{type:u.value})}),Z=new Blob(P,{type:u.value}),Q=URL.createObjectURL(Z);return v=new Audio(Q),v}}catch(P){console.error("Erro ao criar o objeto Audio:",P)}},g=v=>{v==="play"?(m.value.currentTime=p,m.value.oncanplay=()=>{m.value.play().then(()=>{h.value=!0}).catch(P=>{console.error("Erro ao tentar reproduzir o áudio:",P)})},m.value.onended=()=>{h.value=!1,p=0},m.value.onerror=P=>{console.error("Erro ao carregar o áudio:",P)},m.value.load()):v==="pause"&&(m.value&&!m.value.paused?(h.value=!1,m.value.pause()):console.error("Nenhum áudio está tocando no momento"))},y=v=>{const P=Math.floor(v/60),Z=(v%60).toFixed(0),Q=P.toString().padStart(2,"0"),J=Z.toString().padStart(2,"0");return`${Q}:${J}`},k=()=>{s.value++,c.value=y(s.value)},E=()=>{l.value&&clearInterval(l.value),l.value=setInterval(k,1e3)},C=()=>{l.value&&clearInterval(l.value)},b=async()=>{let{value:v}=await jt.hasAudioRecordingPermission();if(v)try{jt.startRecording(),a("recording",!0),r.value="started",E()}catch(P){console.error(P)}else D1({group:"error",title:"Erro",text:"Permissões de microfone desativadas, ajuste nas configurações do dispositivo"},4e3)},N=()=>{try{a("paused",!0),r.value="paused",z(),C()}catch(v){console.error(v)}},D=()=>{try{m.value&&(m.value.pause(),h.value=!1),a("paused",!1),r.value="started",b(),E()}catch(v){console.error(v)}},z=async()=>{(await jt.getCurrentStatus()).status!=="NONE"&&await jt.stopRecording().then(P=>{u.value=P.value.mimeType,d.value.push(P.value.recordDataBase64),m.value=f(),C()})},M=async()=>{const v=await jt.getCurrentStatus();v.status==="RECORDING"?(await z(),a("paused",!1),a("recording",!1),r.value=null,d.value=[],i.value=!1,s.value=0,c.value=y(0)):v.status==="NONE"&&(a("recording",!1),a("paused",!1),r.value=null,i.value=!1,d.value=[],s.value=0,c.value=y(0))},x=async()=>{await jt.getCurrentStatus(),m.value&&(m.value.pause(),h.value=!1),M()};function T(v){const P=atob(v),Z=P.length,Q=new Uint8Array(Z);for(let J=0;J<Z;J++)Q[J]=P.charCodeAt(J);return Q}function B(v){let P=v.reduce((J,_)=>J+_.length,0),Z=new Uint8Array(P),Q=0;return v.forEach(J=>{Z.set(J,Q),Q+=J.length}),Z}function V(v){let P="",Z=v.byteLength;for(let Q=0;Q<Z;Q++)P+=String.fromCharCode(v[Q]);return btoa(P)}const S=async()=>{i.value=!0,(await jt.getCurrentStatus()).status==="RECORDING"&&await z();try{const P=d.value.map(T),Z=B(P),Q=V(Z),J=`data:${u.value};base64,${Q}`,R={type:"file",media:{name:"audio",mimetype:(O=>O?O.split(";")[0].split(":")[1]:null)(J),data:J}};console.log("payload",JSON.stringify(R)),await o.sendAudioToAttendant(o.selectedAttendant.id,R,o.attendant,!0),M()}catch(P){M(),console.error("Erro ao enviar áudio:",P),D1({group:"error",title:"Erro",text:"Erro ao enviar áudio, tente novamente."},4e3);return}};return(v,P)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(e.Transition,{name:"bounce"},{default:e.withCtx(()=>[r.value?(e.openBlock(),e.createElementBlock("div",E5,[e.createElementVNode("div",v5,[r.value!="paused"?(e.openBlock(),e.createElementBlock("section",C5,"Gravando")):e.createCommentVNode("",!0)]),r.value!="paused"?(e.openBlock(),e.createElementBlock("section",S5,e.toDisplayString(c.value),1)):e.createCommentVNode("",!0),r.value==="paused"?(e.openBlock(),e.createElementBlock("section",B5,[h.value?(e.openBlock(),e.createElementBlock("button",V5,[e.createVNode(e.unref(_1),{class:"size-6 cursor-pointer",onClick:P[1]||(P[1]=Z=>g("pause"))})])):(e.openBlock(),e.createElementBlock("button",{key:0,onClick:P[0]||(P[0]=Z=>g("play"))},[e.createVNode(e.unref(b5),{class:"size-6 cursor-pointer"})])),P[7]||(P[7]=e.createElementVNode("div",null,null,-1)),e.createTextVNode(" "+e.toDisplayString(c.value),1)])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)]),_:1}),e.createElementVNode("div",M5,[r.value?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:P[2]||(P[2]=Z=>x())},[e.createVNode(e.unref(w5),{class:"ml-2 size-6 cursor-pointer text-red-500/80 drop-shadow-md"})])):e.createCommentVNode("",!0),r.value==="paused"?(e.openBlock(),e.createElementBlock("button",{key:1,onClick:P[3]||(P[3]=Z=>D())},[e.createVNode(e.unref(P1),{class:"size-7 cursor-pointer text-green-500/90 drop-shadow-md"})])):e.createCommentVNode("",!0),r.value==="started"?(e.openBlock(),e.createElementBlock("button",{key:2,onClick:P[4]||(P[4]=Z=>N())},[e.createVNode(e.unref(_1),{class:"size-7 cursor-pointer text-green-500 drop-shadow-md"})])):e.createCommentVNode("",!0),r.value?(e.openBlock(),e.createElementBlock("button",{key:4,disabled:i.value,class:"mr-2 flex items-center justify-center rounded-full bg-primary p-2 drop-shadow-md",onClick:P[6]||(P[6]=Z=>S())},[i.value?(e.openBlock(),e.createElementBlock("span",T5)):(e.openBlock(),e.createBlock(e.unref(x5),{key:0,class:"size-5 cursor-pointer"}))],8,A5)):(e.openBlock(),e.createElementBlock("button",{key:3,class:"rounded-full bg-primary p-2 send-audio-button",disabled:t.disableBtn,onClick:P[5]||(P[5]=Z=>b())},[e.createVNode(e.unref(P1),{class:"hover:text-white size-5"})],8,N5))])],64))}},[["__scopeId","data-v-becd1b1f"]]),L5={class:"messages-container bg-base-300"},F5={class:"header-intern bg-base-300"},$5={class:"atendente-name"},P5={key:0,class:"date-separator bg-base-100/50"},_5={class:"date-separator-text"},O5={key:0,class:"dropdown-container-internal-messages"},R5=["onClick"],H5={class:"message-time"},z5={key:1},j5={class:"message-time"},G5={class:"input-area"},O1=we({__name:"ChatMessages",props:{isMobile:{type:Boolean,default:!1},selectedAtendente:{type:Object,required:!0},attendant:{required:!0},loadMessagesForAtendente:{type:Function,required:!0},sendMessageToAtendente:{type:Function,required:!0},hasNextPageForAtendente:{type:Function,required:!0},downloadFilesMobile:{type:Function},openMobilePdf:{type:Function}},emits:["send-files","voltar"],setup(t,{emit:n}){const a=t,o=n,r=e.ref(""),i=e.ref(null),s=e.ref(!1),l=e.ref(!1),d=e.ref(!1),u=e.computed(()=>{var M;return((M=a.selectedAtendente)==null?void 0:M.messages)||[]}),c=M=>{a.isMobile&&a.openMobilePdf(M)},h=(M,x)=>{if(M)if(a.isMobile){const B=M.mimetype.split("/")[1],V={url:M.mimetype==="image/svg+xml"?M.data.replace("+","%2B"):M.data,type:B,title:M.name};a.downloadFilesMobile(V,x)}else z(M.data,x)},m=e.computed(()=>a.hasNextPageForAtendente(a.selectedAtendente.id)),p=M=>{const x=new Date(M),T=x.getHours(),B=x.getMinutes();return`${T.toString().padStart(2,"0")}:${B.toString().padStart(2,"0")}`},f=M=>{const x=new Date(M);return F3(x)?"Hoje":P3(x)?"Ontem":L3(x)?$r(x,"EEEE",{locale:ur}):$r(x,"dd 'de' MMMM 'de' yyyy",{locale:ur})},g=M=>{if(M===0)return!0;const x=new Date(u.value[M].created_at),T=new Date(u.value[M-1].created_at);return x.toDateString()!==T.toDateString()},y=M=>{M.key==="Enter"&&!M.shiftKey&&(M.preventDefault(),C())},k=()=>{i.value&&i.value.scrollTo({top:i.value.scrollHeight,behavior:"instant"})},E=async M=>{try{if(!m.value){M.complete();return}const x=i.value.scrollHeight,T=i.value.scrollTop;await a.loadMessagesForAtendente(a.selectedAtendente.id),await e.nextTick(),i.value.scrollTop=i.value.scrollHeight-x+T-32,M.loaded()}catch(x){console.error(x),M.complete()}},C=async()=>{if(r.value.trim()!=="")try{const M=JSON.parse(JSON.stringify(r.value));r.value="",await a.sendMessageToAtendente(a.selectedAtendente.id,M,a.attendant),await e.nextTick(),k()}catch(M){console.error("Erro ao enviar mensagem:",M)}},b=()=>{C();const M=document.querySelector(".send-button");M.classList.add("clicked"),setTimeout(()=>{M.classList.remove("clicked")},200)},N=()=>{o("send-files");const M=document.querySelector(".send-files-button");M.classList.add("clicked"),setTimeout(()=>{M.classList.remove("clicked")},200)};e.onMounted(async()=>{await e.nextTick(()=>{k(),s.value=!0})}),e.watch(()=>{var M;return(M=u.value)==null?void 0:M.length},(M,x)=>{u.value&&D()&&setTimeout(()=>{i.value.scrollTo({top:i.value.scrollHeight,behavior:"instant"})},100)});function D(){const x=i.value.scrollTop+i.value.clientHeight;return i.value.scrollHeight-x<=80}const z=async(M,x="undefined")=>{const T=M.endsWith("svg+xml");try{const B=await fetch(T?M.replace("+","%2B"):M);if(!B.ok)throw new Error("Erro ao baixar o arquivo");const V=B.headers.get("Content-Type"),S=await B.arrayBuffer(),v=V&&V!=="application/octet-stream"?V:"audio/mp3",P=new Blob([S],{type:v}),Z=window.URL.createObjectURL(P),Q=document.createElement("a");Q.href=Z;const J=V.endsWith("aac")?`${x}.mp3`:x;Q.download=J,document.body.appendChild(Q),Q.click(),document.body.removeChild(Q),window.URL.revokeObjectURL(Z)}catch(B){console.error("Erro no download:",B)}};return(M,x)=>{const T=e.resolveComponent("Popper");return e.openBlock(),e.createElementBlock("div",L5,[e.createElementVNode("div",F5,[e.createElementVNode("button",{onClick:x[0]||(x[0]=B=>o("voltar")),class:"back-button"},[...x[4]||(x[4]=[e.createElementVNode("svg",{class:"w-6 h-6","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24"},[e.createElementVNode("path",{d:"M14.502 7.046h-2.5v-.928a2.122 2.122 0 0 0-1.199-1.954 1.827 1.827 0 0 0-1.984.311L3.71 8.965a2.2 2.2 0 0 0 0 3.24L8.82 16.7a1.829 1.829 0 0 0 1.985.31 2.121 2.121 0 0 0 1.199-1.959v-.928h1a2.025 2.025 0 0 1 1.999 2.047V19a1 1 0 0 0 1.275.961 6.59 6.59 0 0 0 4.662-7.22 6.593 6.593 0 0 0-6.437-5.695Z"})],-1)])]),e.createVNode(Na,{url:t.selectedAtendente.photo},null,8,["url"]),e.createElementVNode("h3",$5,e.toDisplayString(t.selectedAtendente.name),1)]),e.createElementVNode("div",{class:"message-area",ref_key:"chatArea",ref:i},[!d.value&&m.value&&s.value?(e.openBlock(),e.createBlock(e.unref(Xt),{key:0,onInfinite:E,distance:30,top:!0,direction:"top",class:"p-3"},{complete:e.withCtx(()=>[...x[5]||(x[5]=[e.createElementVNode("span",null,null,-1)])]),spinner:e.withCtx(()=>[...x[6]||(x[6]=[e.createElementVNode("div",{class:"loading"},[e.createElementVNode("svg",{class:"spinner",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},[e.createElementVNode("circle",{class:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"}),e.createElementVNode("path",{class:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4z"})])],-1)])]),_:1})):e.createCommentVNode("",!0),e.createElementVNode("div",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.value,(B,V)=>(e.openBlock(),e.createElementBlock("div",{key:V},[g(V)?(e.openBlock(),e.createElementBlock("div",P5,[x[7]||(x[7]=e.createElementVNode("div",{class:"date-separator-line"},null,-1)),e.createElementVNode("div",_5,e.toDisplayString(f(B.created_at)),1),x[8]||(x[8]=e.createElementVNode("div",{class:"date-separator-line"},null,-1))])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["message",{me:B.sender.id===t.attendant.id,"not-me":B.sender.id!==t.attendant.id,"new-message":V===u.value.length-1}])},[e.createElementVNode("div",{class:e.normalizeClass(["relative",B.sender.id===t.attendant.id?"text-right":"text-left"])},[B.content&&B.content.media&&B.content.media.data?(e.openBlock(),e.createElementBlock("div",O5,[e.createVNode(T,{hover:"",class:"label-popper-internal-messages",placement:"left"},{content:e.withCtx(()=>[e.createElementVNode("button",{class:"download-button-internal-messages",onClick:S=>h(B.content.media,B.content.media.name)}," Baixar ",8,R5)]),default:e.withCtx(()=>[x[9]||(x[9]=e.createElementVNode("button",{class:"dropdown-toggle-internal-messages"},[e.createElementVNode("svg",{class:"dropdown-icon-internal-messages","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},[e.createElementVNode("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m19 9-7 7-7-7"})])],-1))]),_:2},1024)])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["shadow shadow-gray-900 dark:shadow-gray-500",["message-content",{me:B.sender.id===t.attendant.id,"not-me":B.sender.id!==t.attendant.id}]])},[B.content&&B.content.media&&B.content.media.data?(e.openBlock(),e.createBlock(Ya,{key:0,mode:"message",isMobile:t.isMobile,onDownload:S=>h(B.content.media,B.content.media.name),onOpenMobilePdf:S=>c(B.content.media.data),avatar:B.sender.id===t.attendant.id?t.attendant.photo:B.sender.photo,fileName:B.content.media.name,base64:B.content.media.data,mimetype:B.content.media.mimetype},{"content-message":e.withCtx(()=>[e.createElementVNode("p",null,e.toDisplayString(B.content.content),1)]),"time-message":e.withCtx(()=>[e.createElementVNode("div",H5,e.toDisplayString(p(B.created_at)),1)]),_:2},1032,["isMobile","onDownload","onOpenMobilePdf","avatar","fileName","base64","mimetype"])):(e.openBlock(),e.createElementBlock("section",z5,[e.createElementVNode("p",null,e.toDisplayString(B.content.content),1),e.createElementVNode("div",j5,e.toDisplayString(p(B.created_at)),1)]))],2)],2)],2)]))),128))])],512),e.createElementVNode("div",G5,[e.withDirectives(e.createElementVNode("textarea",{type:"text","onUpdate:modelValue":x[1]||(x[1]=B=>r.value=B),class:"message-input bg-base-300 focus:ring-0",placeholder:"Digite sua mensagem...",onKeydown:y},null,544),[[e.vModelText,r.value]]),e.createElementVNode("button",{onClick:N,class:"send-files-button"},[...x[10]||(x[10]=[e.createElementVNode("svg",{class:"size-5 text-white","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},[e.createElementVNode("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M7 8v8a5 5 0 1 0 10 0V6.5a3.5 3.5 0 1 0-7 0V15a2 2 0 0 0 4 0V8"})],-1)])]),r.value.length>0?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:b,class:"send-button"},[...x[11]||(x[11]=[e.createElementVNode("svg",{class:"size-5 text-white rotate-90","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"currentColor",viewBox:"0 0 24 24"},[e.createElementVNode("path",{"fill-rule":"evenodd",d:"M12 2a1 1 0 0 1 .932.638l7 18a1 1 0 0 1-1.326 1.281L13 19.517V13a1 1 0 1 0-2 0v6.517l-5.606 2.402a1 1 0 0 1-1.326-1.281l7-18A1 1 0 0 1 12 2Z","clip-rule":"evenodd"})],-1)])])):(e.openBlock(),e.createElementBlock("section",{key:1,class:e.normalizeClass(["bg-base-300",["send-audio-button",{recording:l.value}]])},[t.isMobile?(e.openBlock(),e.createBlock(D5,{key:0,attendant:t.attendant,selectedAttendant:t.selectedAtendente,sendAudioToAttendant:t.sendMessageToAtendente,onRecording:x[2]||(x[2]=B=>l.value=B)},null,8,["attendant","selectedAttendant","sendAudioToAttendant"])):(e.openBlock(),e.createBlock(c5,{key:1,"can-send-message":!0,attendant:t.attendant,selectedAttendant:t.selectedAtendente,sendAudioToAttendant:t.sendMessageToAtendente,onRecording:x[3]||(x[3]=B=>l.value=B)},null,8,["attendant","selectedAttendant","sendAudioToAttendant"]))],2))])])}}},[["__scopeId","data-v-5bc3a393"]]),I5={},q5={class:"loading"};function W5(t,n){return e.openBlock(),e.createElementBlock("div",q5,[...n[0]||(n[0]=[e.createElementVNode("svg",{class:"spinner",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},[e.createElementVNode("circle",{class:"opacity-30",cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"}),e.createElementVNode("path",{class:"opacity-90",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4z"})],-1)])])}const R1=we(I5,[["render",W5],["__scopeId","data-v-bd52ddea"]]);/**
|
|
93
94
|
* Vue 3 Carousel 0.16.0
|
|
94
95
|
* (c) 2025
|
|
95
96
|
* @license MIT
|
|
96
|
-
*/const y1=["viewport","carousel"],qn={"bottom-to-top":"btt","left-to-right":"ltr","right-to-left":"rtl","top-to-bottom":"ttb"},k1=["ltr","left-to-right","rtl","right-to-left","ttb","top-to-bottom","btt","bottom-to-top"],b5={ariaGallery:"Gallery",ariaNavigateToPage:"Navigate to page {slideNumber}",ariaNavigateToSlide:"Navigate to slide {slideNumber}",ariaNextSlide:"Navigate to next slide",ariaPreviousSlide:"Navigate to previous slide",iconArrowDown:"Arrow pointing downwards",iconArrowLeft:"Arrow pointing to the left",iconArrowRight:"Arrow pointing to the right",iconArrowUp:"Arrow pointing upwards",itemXofY:"Item {currentSlide} of {slidesCount}"},x1=["slide","fade"],b1=["center","start","end","center-even","center-odd"],w1=10,In=.08,Oe={autoplay:0,breakpointMode:y1[0],breakpoints:void 0,dir:k1[0],enabled:!0,gap:0,height:"auto",i18n:b5,ignoreAnimations:!1,itemsToScroll:1,itemsToShow:1,modelValue:0,mouseDrag:!0,mouseWheel:!1,pauseAutoplayOnHover:!1,preventExcessiveDragging:!1,slideEffect:x1[0],snapAlign:b1[0],touchDrag:!0,transition:300,wrapAround:!1},Ft=Symbol("carousel"),w5=t=>{const n=e.shallowReactive([]),a=o=>{o!==void 0?n.slice(o).forEach((r,i)=>{var s;(s=r.exposed)===null||s===void 0||s.setIndex(o+i)}):n.forEach((r,i)=>{var s;(s=r.exposed)===null||s===void 0||s.setIndex(i)})};return{cleanup:()=>{n.splice(0,n.length)},getSlides:()=>n,registerSlide:(o,r)=>{if(!o||o.props.isClone)return;const i=r??n.length;n.splice(i,0,o),a(i),t("slide-registered",{slide:o,index:i})},unregisterSlide:o=>{const r=n.indexOf(o);r!==-1&&(t("slide-unregistered",{slide:o,index:r}),n.splice(r,1),a(r))}}};function E5(t){return t.length===0?0:t.reduce((a,o)=>a+o,0)/t.length}function E1({slides:t,position:n,toShow:a}){const o=[],r=n==="before",i=r?-a:0,s=r?0:a;if(t.length<=0)return o;for(let l=i;l<s;l++){const f={index:r?l:l+t.length,isClone:!0,id:void 0,key:`clone-${n}-${l}`},u=t[(l%t.length+t.length)%t.length].vnode,h=e.cloneVNode(u,f);h.el=null,o.push(h)}return o}const v5='a[href], button, input, textarea, select, details, [tabindex]:not([tabindex="-1"])';function v1(t){if(!t.el||!(t.el instanceof Element))return;const n=t.el.querySelectorAll(v5);for(const a of n)a instanceof HTMLElement&&!a.hasAttribute("disabled")&&a.getAttribute("aria-hidden")!=="true"&&a.setAttribute("tabindex","-1")}function C5(t,n){return Object.keys(t).filter(a=>!n.includes(a)).reduce((a,o)=>(a[o]=t[o],a),{})}function S5(t){const{isVertical:n,isReversed:a,dragged:o,effectiveSlideSize:r,threshold:i}=t,s=n?o.y:o.x;if(s===0)return 0;const l=s/r,d=Math.abs(l);if(d<i)return 0;const f=d<1?Math.sign(l):Math.round(l);return a?f:-f}function ht({val:t,max:n,min:a}){return n<a?t:Math.min(Math.max(t,isNaN(a)?t:a),isNaN(n)?t:n)}function B5(t){const{transform:n}=window.getComputedStyle(t);return n.split(/[(,)]/).slice(1,-1).map(a=>parseFloat(a))}function V5(t){let n=1,a=1;return t.forEach(o=>{const r=B5(o);r.length===6&&(n/=r[0],a/=r[3])}),{widthMultiplier:n,heightMultiplier:a}}function M5(t,n){switch(t){case"start":return 0;case"center":case"center-odd":return(n-1)/2;case"center-even":return(n-2)/2;case"end":return n-1;default:return 0}}function N5(t,n,a){switch(t){case"start":return 0;case"center":case"center-odd":return(a-n)/2;case"center-even":return a/2-n;case"end":return a-n;default:return 0}}function Ra({slideSize:t,viewportSize:n,align:a,itemsToShow:o}){return o!==void 0?M5(a,o):t!==void 0&&n!==void 0?N5(a,t,n):0}function C1(t="",n={}){return Object.entries(n).reduce((a,[o,r])=>a.replace(`{${o}}`,String(r)),t)}function S1({val:t,max:n,min:a=0}){const o=n-a+1;return((t-a)%o+o)%o+a}function Ha(t,n=0){let a=!1,o=0,r=null;function i(...s){if(a)return;a=!0;const l=()=>{r=requestAnimationFrame(d=>{d-o>n?(o=d,t(...s),a=!1):l()})};l()}return i.cancel=()=>{r&&(cancelAnimationFrame(r),r=null,a=!1)},i}function Wn(t,n="px"){if(!(t==null||t===""))return typeof t=="number"||parseFloat(t).toString()===t?`${t}${n}`:t}const A5=e.defineComponent({name:"CarouselAria",setup(){const t=e.inject(Ft);return t?()=>e.h("div",{class:["carousel__liveregion","carousel__sr-only"],"aria-live":"polite","aria-atomic":"true"},C1(t.config.i18n.itemXofY,{currentSlide:t.currentSlide+1,slidesCount:t.slidesCount})):()=>""}});function T5(t){let n=!1;const a={x:0,y:0},o=e.reactive({x:0,y:0}),r=e.ref(!1),{isSliding:i}=t,s=e.computed(()=>typeof i=="boolean"?i:i.value),l=u=>{var h;const m=u.target.tagName;if(["INPUT","TEXTAREA","SELECT"].includes(m)||s.value||(n=u.type==="touchstart",n&&u.touches.length>1))return;if(!n&&(u.preventDefault(),u.button!==0))return;a.x=n?u.touches[0].clientX:u.clientX,a.y=n?u.touches[0].clientY:u.clientY;const p=n?"touchmove":"mousemove",c=n?"touchend":"mouseup";document.addEventListener(p,d,{passive:!1}),document.addEventListener(c,f,{passive:!0}),(h=t.onDragStart)===null||h===void 0||h.call(t)},d=Ha(u=>{var h;if(n&&u.touches.length>1)return;r.value=!0;const m=n?u.touches[0].clientX:u.clientX,p=n?u.touches[0].clientY:u.clientY;o.x=m-a.x,o.y=p-a.y,(h=t.onDrag)===null||h===void 0||h.call(t,{deltaX:o.x,deltaY:o.y,isTouch:n})}),f=()=>{var u;d.cancel();const h=Math.abs(o.x)+Math.abs(o.y);!n&&h>10&&window.addEventListener("click",c=>{c.preventDefault(),c.stopPropagation()},{once:!0,capture:!0}),(u=t.onDragEnd)===null||u===void 0||u.call(t),o.x=0,o.y=0,r.value=!1;const m=n?"touchmove":"mousemove",p=n?"touchend":"mouseup";document.removeEventListener(m,d),document.removeEventListener(p,f)};return{dragged:o,isDragging:r,handleDragStart:l}}function D5(){const t=e.ref(!1);return{isHover:t,handleMouseEnter:()=>{t.value=!0},handleMouseLeave:()=>{t.value=!1}}}function L5(t){const{isVertical:n,isSliding:a,config:o}=t,r=e.computed(()=>typeof n=="boolean"?n:n.value),i=e.computed(()=>typeof a=="boolean"?a:a.value);return{handleScroll:l=>{var d,f;if(l.preventDefault(),!o.mouseWheel||i.value)return;const u=typeof o.mouseWheel=="object"&&(d=o.mouseWheel.threshold)!==null&&d!==void 0?d:w1,h=Math.abs(l.deltaY)>u?l.deltaY:0,m=Math.abs(l.deltaX)>u?l.deltaX:0;if(h===0&&m===0)return;const p=r.value?h:m,g=(p!==0?p:r.value?m:h)>0;(f=t.onWheel)===null||f===void 0||f.call(t,{deltaX:m,deltaY:h,isScrollingForward:g})}}}const F5={autoplay:{default:Oe.autoplay,type:Number},breakpoints:{default:Oe.breakpoints,type:Object},breakpointMode:{default:Oe.breakpointMode,validator(t){return y1.includes(t)}},clamp:{type:Boolean},dir:{type:String,default:Oe.dir,validator(t,n){if(!k1.includes(t))return!1;const a=t in qn?qn[t]:t;return["ttb","btt"].includes(a)&&(!n.height||n.height==="auto")&&console.warn(`[vue3-carousel]: The dir "${t}" is not supported with height "auto".`),!0}},enabled:{default:Oe.enabled,type:Boolean},gap:{default:Oe.gap,type:Number},height:{default:Oe.height,type:[Number,String]},i18n:{default:Oe.i18n,type:Object},ignoreAnimations:{default:!1,type:[Array,Boolean,String]},itemsToScroll:{default:Oe.itemsToScroll,type:Number},itemsToShow:{default:Oe.itemsToShow,type:[Number,String]},modelValue:{default:void 0,type:Number},mouseDrag:{default:Oe.mouseDrag,type:[Boolean,Object]},mouseWheel:{default:Oe.mouseWheel,type:[Boolean,Object]},mouseScrollThreshold:{default:Oe.mouseScrollThreshold,type:Number},pauseAutoplayOnHover:{default:Oe.pauseAutoplayOnHover,type:Boolean},preventExcessiveDragging:{default:!1,type:Boolean,validator(t,n){return t&&n.wrapAround&&console.warn('[vue3-carousel]: "preventExcessiveDragging" cannot be used with wrapAround. The setting will be ignored.'),!0}},slideEffect:{type:String,default:Oe.slideEffect,validator(t){return x1.includes(t)}},snapAlign:{default:Oe.snapAlign,validator(t){return b1.includes(t)}},touchDrag:{default:Oe.touchDrag,type:[Boolean,Object]},transition:{default:Oe.transition,type:Number},wrapAround:{default:Oe.wrapAround,type:Boolean}},$5=e.defineComponent({name:"VueCarousel",props:F5,emits:["before-init","drag","init","loop","slide-end","slide-registered","slide-start","slide-unregistered","update:modelValue","wheel"],setup(t,{slots:n,emit:a,expose:o}){var r;const i=w5(a),s=i.getSlides(),l=e.computed(()=>s.length),d=e.ref(null),f=e.ref(null),u=e.ref(0),h=e.computed(()=>Object.assign(Object.assign(Object.assign({},Oe),C5(t,["breakpoints","modelValue"])),{i18n:Object.assign(Object.assign({},Oe.i18n),t.i18n)})),m=e.shallowReactive(Object.assign({},h.value)),p=e.ref((r=t.modelValue)!==null&&r!==void 0?r:0),c=e.ref(p.value);e.watch(p,R=>c.value=R);const g=e.ref(0),y=e.computed(()=>Math.ceil((l.value-1)/2)),b=e.computed(()=>l.value-1),w=e.computed(()=>0);let E=null,x=null,v=null;const D=e.computed(()=>u.value+m.gap),_=e.computed(()=>{const R=m.dir||"ltr";return R in qn?qn[R]:R}),C=e.computed(()=>["rtl","btt"].includes(_.value)),k=e.computed(()=>["ttb","btt"].includes(_.value)),N=e.computed(()=>m.itemsToShow==="auto"),S=e.computed(()=>k.value?"height":"width");function B(){var R;if(!Se.value)return;const Y=(h.value.breakpointMode==="carousel"?(R=d.value)===null||R===void 0?void 0:R.getBoundingClientRect().width:typeof window<"u"?window.innerWidth:0)||0,le=Object.keys(t.breakpoints||{}).map(ve=>Number(ve)).sort((ve,Me)=>+Me-+ve),xe={};le.some(ve=>Y>=ve?(Object.assign(xe,t.breakpoints[ve]),xe.i18n&&Object.assign(xe.i18n,h.value.i18n,t.breakpoints[ve].i18n),!0):!1),Object.assign(m,h.value,xe),N.value||(m.itemsToShow=ht({val:Number(m.itemsToShow),max:t.clamp?l.value:1/0,min:1}))}const A=Ha(()=>{B(),L(),F()}),M=e.shallowReactive(new Set),H=e.ref([]);function ie({widthMultiplier:R,heightMultiplier:Y}){H.value=s.map(le=>{var xe;const ve=(xe=le.exposed)===null||xe===void 0?void 0:xe.getBoundingRect();return{width:ve.width*R,height:ve.height*Y}})}const Q=e.ref({width:0,height:0});function fe({widthMultiplier:R,heightMultiplier:Y}){var le;const xe=((le=f.value)===null||le===void 0?void 0:le.getBoundingClientRect())||{width:0,height:0};Q.value={width:xe.width*R,height:xe.height*Y}}function F(){if(!f.value)return;const R=V5(M);if(fe(R),ie(R),N.value)u.value=E5(H.value.map(Y=>Y[S.value]));else{const Y=Number(m.itemsToShow),le=(Y-1)*m.gap;u.value=(Q.value[S.value]-le)/Y}}function L(){!m.wrapAround&&l.value>0&&(p.value=ht({val:p.value,max:b.value,min:w.value}))}const j=e.computed(()=>typeof t.ignoreAnimations=="string"?t.ignoreAnimations.split(","):Array.isArray(t.ignoreAnimations)?t.ignoreAnimations:t.ignoreAnimations?!1:[]);e.watchEffect(()=>L()),e.watchEffect(()=>{F()});let re;const se=R=>{const Y=R.target;if(!(!(Y!=null&&Y.contains(d.value))||Array.isArray(j.value)&&j.value.includes(R.animationName))&&(M.add(Y),!re)){const le=()=>{re=requestAnimationFrame(()=>{F(),le()})};le()}},be=R=>{const Y=R.target;Y&&M.delete(Y),re&&M.size===0&&(cancelAnimationFrame(re),F())},Se=e.ref(!1);typeof document<"u"&&e.watchEffect(()=>{Se.value&&j.value!==!1?(document.addEventListener("animationstart",se),document.addEventListener("animationend",be)):(document.removeEventListener("animationstart",se),document.removeEventListener("animationend",be))}),e.onMounted(()=>{Se.value=!0,B(),V(),d.value&&(v=new ResizeObserver(A),v.observe(d.value)),a("init")}),e.onBeforeUnmount(()=>{Se.value=!1,i.cleanup(),x&&clearTimeout(x),re&&cancelAnimationFrame(re),E&&clearInterval(E),v&&(v.disconnect(),v=null),typeof document<"u"&&ne(),d.value&&(d.value.removeEventListener("transitionend",F),d.value.removeEventListener("animationiteration",F))});const{isHover:Fe,handleMouseEnter:$e,handleMouseLeave:Ve}=D5(),G=Ha(R=>{if(!R.ctrlKey)switch(R.key){case"ArrowLeft":case"ArrowUp":k.value===R.key.endsWith("Up")&&(C.value?ge(!0):O(!0));break;case"ArrowRight":case"ArrowDown":k.value===R.key.endsWith("Down")&&(C.value?O(!0):ge(!0));break}},200),ne=()=>{document.removeEventListener("keydown",G)},J=()=>{document.addEventListener("keydown",G)};function V(){!m.autoplay||m.autoplay<=0||(E=setInterval(()=>{m.pauseAutoplayOnHover&&Fe.value||ge()},m.autoplay))}function $(){q(),V()}function q(){E&&(clearInterval(E),E=null)}const z=e.ref(!1),X=({deltaX:R,deltaY:Y,isTouch:le})=>{var xe,ve,Me,Ae;a("drag",{deltaX:R,deltaY:Y});const Ne=le?typeof m.touchDrag=="object"&&(ve=(xe=m.touchDrag)===null||xe===void 0?void 0:xe.threshold)!==null&&ve!==void 0?ve:In:typeof m.mouseDrag=="object"&&(Ae=(Me=m.mouseDrag)===null||Me===void 0?void 0:Me.threshold)!==null&&Ae!==void 0?Ae:In,Re=S5({isVertical:k.value,isReversed:C.value,dragged:{x:R,y:Y},effectiveSlideSize:D.value,threshold:Ne});Re!==0&&(c.value=m.wrapAround?p.value+Re:ht({val:p.value+Re,max:b.value,min:w.value}))},U=()=>K(c.value),{dragged:ee,isDragging:de,handleDragStart:we}=T5({isSliding:z,onDrag:X,onDragEnd:U}),ke=({deltaX:R,deltaY:Y,isScrollingForward:le})=>{a("wheel",{deltaX:R,deltaY:Y}),le?C.value?O():ge():C.value?ge():O()},{handleScroll:pe}=L5({isVertical:k,isSliding:z,config:m,onWheel:ke});function ge(R=!1){K(p.value+m.itemsToScroll,R)}function O(R=!1){K(p.value-m.itemsToScroll,R)}function K(R,Y=!1){if(!Y&&z.value)return;const le=(m.wrapAround?S1:ht)({val:R,max:b.value,min:w.value});if(p.value===le)return;g.value=p.value,a("slide-start",{slidingToIndex:R,currentSlideIndex:p.value,prevSlideIndex:g.value,slidesCount:l.value}),q(),z.value=!0,p.value=R,le!==R&&ce.pause(),a("update:modelValue",le),x=setTimeout(()=>{m.wrapAround&&le!==R&&(ce.resume(),p.value=le,a("loop",{currentSlideIndex:p.value,slidingToIndex:R})),a("slide-end",{currentSlideIndex:p.value,prevSlideIndex:g.value,slidesCount:l.value}),z.value=!1,$()},m.transition)}function ae(){B(),L(),F(),$()}e.watch(()=>[h.value,t.breakpoints],()=>B(),{deep:!0}),e.watch(()=>t.autoplay,()=>$());const ce=e.watch(()=>t.modelValue,R=>{R!==p.value&&K(Number(R),!0)});a("before-init");const Ee=e.computed(()=>{if(!m.wrapAround)return{before:0,after:0};if(N.value)return{before:s.length,after:s.length};const R=Number(m.itemsToShow),Y=Math.ceil(R+(m.itemsToScroll-1)),le=Y-c.value,xe=Y-(l.value-(c.value+1));return{before:Math.max(0,le),after:Math.max(0,xe)}}),ye=e.computed(()=>Ee.value.before?N.value?H.value.slice(-1*Ee.value.before).reduce((R,Y)=>R+Y[S.value]+m.gap,0)*-1:Ee.value.before*D.value*-1:0),T=e.computed(()=>{var R;if(N.value){const Y=(p.value%s.length+s.length)%s.length;return Ra({slideSize:(R=H.value[Y])===null||R===void 0?void 0:R[S.value],viewportSize:Q.value[S.value],align:m.snapAlign})}return Ra({align:m.snapAlign,itemsToShow:+m.itemsToShow})}),P=e.computed(()=>{let R=0;if(N.value){if(p.value<0?R=H.value.slice(p.value).reduce((Y,le)=>Y+le[S.value]+m.gap,0)*-1:R=H.value.slice(0,p.value).reduce((Y,le)=>Y+le[S.value]+m.gap,0),R-=T.value,!m.wrapAround){const Y=H.value.reduce((le,xe)=>le+xe[S.value]+m.gap,0)-Q.value[S.value]-m.gap;R=ht({val:R,max:Y,min:0})}}else{let Y=p.value-T.value;m.wrapAround||(Y=ht({val:Y,max:l.value-+m.itemsToShow,min:0})),R=Y*D.value}return R*(C.value?1:-1)}),I=e.computed(()=>{var R,Y;if(!N.value){const ve=p.value-T.value;return m.wrapAround?{min:Math.floor(ve),max:Math.ceil(ve+Number(m.itemsToShow)-1)}:{min:Math.floor(ht({val:ve,max:l.value-Number(m.itemsToShow),min:0})),max:Math.ceil(ht({val:ve+Number(m.itemsToShow)-1,max:l.value-1,min:0}))}}let le=0;{let ve=0,Me=0-Ee.value.before;const Ae=Math.abs(P.value+ye.value);for(;ve<=Ae;){const Ne=(Me%s.length+s.length)%s.length;ve+=((R=H.value[Ne])===null||R===void 0?void 0:R[S.value])+m.gap,Me++}le=Me-1}let xe=0;{let ve=le,Me=0;for(ve<0?Me=H.value.slice(0,ve).reduce((Ae,Ne)=>Ae+Ne[S.value]+m.gap,0)-Math.abs(P.value+ye.value):Me=H.value.slice(0,ve).reduce((Ae,Ne)=>Ae+Ne[S.value]+m.gap,0)-Math.abs(P.value);Me<Q.value[S.value];){const Ae=(ve%s.length+s.length)%s.length;Me+=((Y=H.value[Ae])===null||Y===void 0?void 0:Y[S.value])+m.gap,ve++}xe=ve-1}return{min:Math.floor(le),max:Math.ceil(xe)}}),Z=e.computed(()=>{if(m.slideEffect==="fade")return;const R=k.value?"Y":"X",Y=k.value?ee.y:ee.x;let le=P.value+Y;if(!m.wrapAround&&m.preventExcessiveDragging){let xe=0;N.value?xe=H.value.reduce((Ae,Ne)=>Ae+Ne[S.value],0):xe=(l.value-Number(m.itemsToShow))*D.value;const ve=C.value?0:-1*xe,Me=C.value?xe:0;le=ht({val:le,min:ve,max:Me})}return`translate${R}(${le}px)`}),he=e.computed(()=>({"--vc-carousel-height":Wn(m.height),"--vc-cloned-offset":Wn(ye.value),"--vc-slide-gap":Wn(m.gap),"--vc-transition-duration":z.value?Wn(m.transition,"ms"):void 0})),te={slideTo:K,next:ge,prev:O},oe=e.reactive({activeSlide:c,config:m,currentSlide:p,isSliding:z,isVertical:k,maxSlide:b,minSlide:w,nav:te,normalizedDir:_,slideRegistry:i,slideSize:u,slides:s,slidesCount:l,viewport:f,visibleRange:I});e.provide(Ft,oe);const ue=e.reactive({config:m,currentSlide:p,maxSlide:b,middleSlide:y,minSlide:w,slideSize:u,slidesCount:l});return o(e.reactive(Object.assign({data:ue,next:ge,prev:O,restartCarousel:ae,slideTo:K,updateBreakpointsConfig:B,updateSlideSize:F,updateSlidesData:L},e.toRefs(oe)))),()=>{var R;const Y=n.default||n.slides,le=(Y==null?void 0:Y(ue))||[],{before:xe,after:ve}=Ee.value,Me=E1({slides:s,position:"before",toShow:xe}),Ae=E1({slides:s,position:"after",toShow:ve}),Ne=[...Me,...le,...Ae];if(!m.enabled||!Ne.length)return e.h("section",{ref:d,class:["carousel","is-disabled"]},Ne);const Re=((R=n.addons)===null||R===void 0?void 0:R.call(n,ue))||[],tt=e.h("ol",{class:"carousel__track",onMousedownCapture:m.mouseDrag?we:null,onTouchstartPassiveCapture:m.touchDrag?we:null,onWheel:m.mouseWheel?pe:null,style:{transform:Z.value}},Ne),rt=e.h("div",{class:"carousel__viewport",ref:f},tt);return e.h("section",{ref:d,class:["carousel",`is-${_.value}`,`is-effect-${m.slideEffect}`,{"is-dragging":de.value,"is-hover":Fe.value,"is-sliding":z.value,"is-vertical":k.value}],dir:_.value,style:he.value,"aria-label":m.i18n.ariaGallery,tabindex:"0",onBlur:ne,onFocus:J,onMouseenter:$e,onMouseleave:Ve},[rt,Re,e.h(A5)])}}});var za;(function(t){t.arrowDown="arrowDown",t.arrowLeft="arrowLeft",t.arrowRight="arrowRight",t.arrowUp="arrowUp"})(za||(za={}));const B1=t=>`icon${t.charAt(0).toUpperCase()+t.slice(1)}`,_5={arrowDown:"M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z",arrowLeft:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z",arrowRight:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z",arrowUp:"M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6-6 6z"};function P5(t){return t in za}const V1=t=>t&&P5(t),M1=e.defineComponent({props:{name:{type:String,required:!0,validator:V1},title:{type:String,default:t=>t.name?Oe.i18n[B1(t.name)]:""}},setup(t){const n=e.inject(Ft,null);return()=>{const a=t.name;if(!a||!V1(a))return;const o=_5[a],r=e.h("path",{d:o}),i=(n==null?void 0:n.config.i18n[B1(a)])||t.title,s=e.h("title",i);return e.h("svg",{class:"carousel__icon",viewBox:"0 0 24 24",role:"img","aria-label":i},[s,r])}}}),O5=e.defineComponent({name:"CarouselNavigation",inheritAttrs:!1,props:{carousel:{type:Object}},setup(t,{slots:n,attrs:a}){let o=e.inject(Ft,null);const{next:r,prev:i}=n,s=()=>({btt:"arrowDown",ltr:"arrowLeft",rtl:"arrowRight",ttb:"arrowUp"})[o.normalizedDir],l=()=>({btt:"arrowUp",ltr:"arrowRight",rtl:"arrowLeft",ttb:"arrowDown"})[o.normalizedDir],d=e.computed(()=>!o.config.wrapAround&&o.currentSlide<=o.minSlide),f=e.computed(()=>!o.config.wrapAround&&o.currentSlide>=o.maxSlide);return()=>{if(t.carousel&&(o=t.carousel),!o)return console.warn("[vue3-carousel]: A carousel component must be provided for the navigation component to display"),"";const{i18n:u}=o.config,h=e.h("button",Object.assign(Object.assign({type:"button",disabled:d.value,"aria-label":u.ariaPreviousSlide,title:u.ariaPreviousSlide,onClick:o.nav.prev},a),{class:["carousel__prev",{"carousel__prev--disabled":d.value},a.class]}),(i==null?void 0:i())||e.h(M1,{name:s()})),m=e.h("button",Object.assign(Object.assign({type:"button",disabled:f.value,"aria-label":u.ariaNextSlide,title:u.ariaNextSlide,onClick:o.nav.next},a),{class:["carousel__next",{"carousel__next--disabled":f.value},a.class]}),(r==null?void 0:r())||e.h(M1,{name:l()}));return[h,m]}}});e.defineComponent({name:"CarouselPagination",props:{disableOnClick:{type:Boolean},paginateByItemsToShow:{type:Boolean},carousel:{type:Object}},setup(t){let n=e.inject(Ft,null);const a=e.computed(()=>n.config.itemsToShow),o=e.computed(()=>Ra({align:n.config.snapAlign,itemsToShow:a.value})),r=e.computed(()=>t.paginateByItemsToShow&&a.value>1),i=e.computed(()=>Math.ceil((n.activeSlide-o.value)/a.value)),s=e.computed(()=>Math.ceil(n.slidesCount/a.value)),l=d=>S1(r.value?{val:i.value,max:s.value-1,min:0}:{val:n.activeSlide,max:n.maxSlide,min:n.minSlide})===d;return()=>{var d,f;if(t.carousel&&(n=t.carousel),!n)return console.warn("[vue3-carousel]: A carousel component must be provided for the pagination component to display"),"";const u=[];for(let h=r.value?0:n.minSlide;h<=(r.value?s.value-1:n.maxSlide);h++){const m=C1(n.config.i18n[r.value?"ariaNavigateToPage":"ariaNavigateToSlide"],{slideNumber:h+1}),p=l(h),c=e.h("button",{type:"button",class:{"carousel__pagination-button":!0,"carousel__pagination-button--active":p},"aria-label":m,"aria-pressed":p,"aria-controls":(f=(d=n.slides[h])===null||d===void 0?void 0:d.exposed)===null||f===void 0?void 0:f.id,title:m,disabled:t.disableOnClick,onClick:()=>n.nav.slideTo(r.value?Math.floor(h*+n.config.itemsToShow+o.value):h)}),g=e.h("li",{class:"carousel__pagination-item",key:h},c);u.push(g)}return e.h("ol",{class:"carousel__pagination"},u)}}});const R5=e.defineComponent({name:"CarouselSlide",props:{id:{type:String,default:t=>t.isClone?void 0:e.useId()},index:{type:Number,default:void 0},isClone:{type:Boolean,default:!1}},setup(t,{attrs:n,slots:a,expose:o}){const r=e.inject(Ft);if(e.provide(Ft,void 0),!r)return()=>"";const i=e.ref(t.index),s=c=>{i.value=c},l=e.getCurrentInstance(),d=()=>{const c=l.vnode.el;return c?c.getBoundingClientRect():{width:0,height:0}};o({id:t.id,setIndex:s,getBoundingRect:d});const f=e.computed(()=>i.value===r.activeSlide),u=e.computed(()=>i.value===r.activeSlide-1),h=e.computed(()=>i.value===r.activeSlide+1),m=e.computed(()=>i.value>=r.visibleRange.min&&i.value<=r.visibleRange.max),p=e.computed(()=>{if(r.config.itemsToShow==="auto")return;const c=r.config.itemsToShow,g=r.config.gap>0&&c>1?`calc(${100/c}% - ${r.config.gap*(c-1)/c}px)`:`${100/c}%`;return r.isVertical?{height:g}:{width:g}});return r.slideRegistry.registerSlide(l,t.index),e.onUnmounted(()=>{r.slideRegistry.unregisterSlide(l)}),t.isClone&&(e.onMounted(()=>{v1(l.vnode)}),e.onUpdated(()=>{v1(l.vnode)})),()=>{var c,g;return r.config.enabled?e.h("li",{style:[n.style,Object.assign({},p.value)],class:{carousel__slide:!0,"carousel__slide--clone":t.isClone,"carousel__slide--visible":m.value,"carousel__slide--active":f.value,"carousel__slide--prev":u.value,"carousel__slide--next":h.value,"carousel__slide--sliding":r.isSliding},onFocusin:()=>{r.viewport&&(r.viewport.scrollLeft=0),r.nav.slideTo(i.value)},id:t.isClone?void 0:t.id,"aria-hidden":t.isClone||void 0},(g=a.default)===null||g===void 0?void 0:g.call(a,{currentIndex:i.value,isActive:f.value,isClone:t.isClone,isPrev:u.value,isNext:h.value,isSliding:r.isSliding,isVisible:m.value})):(c=a.default)===null||c===void 0?void 0:c.call(a)}}}),H5={key:0,class:"preview-overlay bg-base-300"},z5={class:"preview-info"},j5={class:"text-black"},G5={class:"queue-info"},q5={class:"carousel-container bg-base-200"},I5={class:"carousel-item"},W5=["onClick"],U5=["onClick"],Z5={class:"send-footer"},Y5={key:1,class:"toast-loader-files"},N1=Ce({__name:"dropFilesArea",props:{sendFilesToAttendant:{type:Function,required:!0},selectedAttendant:{type:Object,required:!0},attendant:{required:!0},isMobile:{type:Boolean,default:!1}},setup(t,{expose:n}){const a=t,o={itemsToShow:6,wrapAround:!1,gap:8,mouseDrag:!0,touchDrag:!0,mouseWheel:!0,snapAlign:"start",breakpoints:{1024:{itemsToShow:4},768:{itemsToShow:4},480:{itemsToShow:4},320:{itemsToShow:2},0:{itemsToShow:1}}},r=e.ref(!1),i=e.ref(""),s=e.ref(null),l=e.ref([]),d=e.ref([]),f=e.ref(null),u=e.ref(0),h=e.ref(!1),m=e.ref(0),p=e.ref(0),c=B=>new Promise((A,M)=>{const H=new FileReader;H.readAsDataURL(B),H.onload=()=>{A(H.result)},H.onerror=ie=>{M(ie)}}),g=()=>{r.value=!0},y=()=>{r.value=!1},b=()=>{d.value=[],l.value=[],i.value="",f.value=null,u.value=0},w=B=>{if(!(B<0||B>=d.value.length)){if(d.value.splice(B,1),l.value.splice(B,1),d.value.length===0){f.value=null,u.value=0;return}if(B===u.value){const A=B>0?B-1:0;f.value=d.value[A],u.value=A}else B<u.value&&(u.value-=1)}},E=()=>{s.value.click()},x=async B=>{const A=Array.from(B.target.files);l.value=A,d.value=await Promise.all(A.map(async M=>({name:M.name,base64:await c(M)}))),f.value=d.value[0],e.nextTick(()=>{k()})},v=async B=>{r.value=!1;const A=Array.from(B.dataTransfer.files);l.value.push(...A);const M=await Promise.all(A.map(async H=>({name:H.name,base64:await c(H)})));d.value.push(...M),f.value||(f.value=d.value[0],u.value=0),e.nextTick(()=>{k()})},D=B=>B?B.split(";")[0].split(":")[1]:null,_=async()=>{try{h.value=!0,m.value=l.value.length,p.value=0;for(let B=0;B<l.value.length;B++){const A=B===l.value.length-1,M={type:"file",media:{name:d.value[B].name,mimetype:D(d.value[B].base64),data:d.value[B].base64}};A&&(M.content=i.value),await a.sendFilesToAttendant(a.selectedAttendant.id,M,a.attendant,!0),p.value++}await e.nextTick()}catch(B){console.error(B)}finally{h.value=!1,b(),y()}},C=e.ref(null),k=()=>{C.value&&C.value.focus()},N=(B,A)=>{f.value=B,u.value=A},S=async B=>{var H;const A=(H=B.clipboardData)==null?void 0:H.items;if(!A)return;const M=[];for(const ie of A)if(ie.kind==="file"){const Q=ie.getAsFile();Q&&M.push(Q)}if(M.length>0){const ie=new Set(l.value.map(F=>F.name));if(M.filter(F=>!ie.has(F.name)).length===0)return;l.value.push(...M);const fe=await Promise.all(M.map(async F=>({name:F.name,base64:await c(F)})));d.value.push(...fe),f.value||(f.value=fe[0],u.value=0)}e.nextTick(()=>{k()})};return e.watch(u,(B,A)=>{f.value=d.value[B]}),e.onMounted(()=>{window.addEventListener("paste",S)}),e.onUnmounted(()=>{window.removeEventListener("paste",S)}),n({chooseFiles:E}),(B,A)=>{var M,H,ie;return e.openBlock(),e.createElementBlock("main",{onDragover:e.withModifiers(g,["prevent"]),onDragleave:y,onDrop:e.withModifiers(v,["prevent"])},[e.createElementVNode("section",{class:e.normalizeClass(["dropzone-container ",{"dropzone-active":r.value}])},[!h.value&&d.value.length>0&&!r.value?(e.openBlock(),e.createElementBlock("div",H5,[e.createElementVNode("button",{onClick:A[0]||(A[0]=Q=>b()),class:"close-button"},A[6]||(A[6]=[e.createElementVNode("svg",{"aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 14 14"},[e.createElementVNode("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m1 1 6 6m0 0 6 6M7 7l6-6M7 7l-6 6"})],-1)])),e.createElementVNode("section",z5,[e.createElementVNode("p",j5,e.toDisplayString((M=f.value)==null?void 0:M.name),1),e.createVNode(Pa,{isMobile:t.isMobile,avatar:null,mode:"preview",base64:(H=f.value)==null?void 0:H.base64,mimetype:D((ie=f.value)==null?void 0:ie.base64)},null,8,["isMobile","base64","mimetype"]),e.withDirectives(e.createElementVNode("input",{ref_key:"textInput",ref:C,onKeydown:A[1]||(A[1]=e.withKeys(Q=>_(),["enter"])),placeholder:"Digite uma mensagem para acompanhar o arquivo",class:"input-drop-files-area bg-base-200 text-text-base","onUpdate:modelValue":A[2]||(A[2]=Q=>i.value=Q),type:"text"},null,544),[[e.vModelText,i.value]])]),e.createElementVNode("div",G5,[A[8]||(A[8]=e.createElementVNode("p",null,"fila de envio",-1)),e.createElementVNode("section",q5,[e.createVNode(e.unref($5),e.mergeProps({modelValue:u.value,"onUpdate:modelValue":A[4]||(A[4]=Q=>u.value=Q)},o),e.createSlots({default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,(Q,fe)=>(e.openBlock(),e.createBlock(e.unref(R5),{key:fe},{default:e.withCtx(()=>[e.createElementVNode("section",I5,[u.value===fe?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:F=>w(fe),class:"remove-file-btn"},A[7]||(A[7]=[e.createElementVNode("svg",{"aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"currentColor",viewBox:"0 0 24 24"},[e.createElementVNode("path",{"fill-rule":"evenodd",d:"M8.586 2.586A2 2 0 0 1 10 2h4a2 2 0 0 1 2 2v2h3a1 1 0 1 1 0 2v12a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V8a1 1 0 0 1 0-2h3V4a2 2 0 0 1 .586-1.414ZM10 6h4V4h-4v2Zm1 4a1 1 0 1 0-2 0v8a1 1 0 1 0 2 0v-8Zm4 0a1 1 0 1 0-2 0v8a1 1 0 1 0 2 0v-8Z","clip-rule":"evenodd"})],-1)]),8,W5)):e.createCommentVNode("",!0),e.createElementVNode("button",{class:e.normalizeClass(["bg-base-100",["carousel-preview",{active:u.value===fe}]]),onDragstart:A[3]||(A[3]=e.withModifiers(()=>{},["prevent"])),onClick:F=>N(Q,fe)},[e.createVNode(Pa,{isMobile:t.isMobile,avatar:null,mode:"miniature",base64:Q.base64,mimetype:D(Q.base64)},null,8,["isMobile","base64","mimetype"])],42,U5)])]),_:2},1024))),128))]),_:2},[t.isMobile?{name:"addons",fn:e.withCtx(()=>[e.createVNode(e.unref(O5))]),key:"0"}:void 0]),1040,["modelValue"])])]),e.createElementVNode("footer",Z5,[e.createElementVNode("button",{class:"send-button",onClick:A[5]||(A[5]=Q=>_())},A[9]||(A[9]=[e.createElementVNode("svg",{"aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"currentColor",viewBox:"0 0 24 24"},[e.createElementVNode("path",{"fill-rule":"evenodd",d:"M12 2a1 1 0 0 1 .932.638l7 18a1 1 0 0 1-1.326 1.281L13 19.517V13a1 1 0 1 0-2 0v6.517l-5.606 2.402a1 1 0 0 1-1.326-1.281l7-18A1 1 0 0 1 12 2Z","clip-rule":"evenodd"})],-1)]))])])):e.createCommentVNode("",!0),h.value?(e.openBlock(),e.createElementBlock("section",Y5," Enviando Arquivos... ("+e.toDisplayString(p.value)+" / "+e.toDisplayString(m.value)+") ",1)):e.createCommentVNode("",!0),e.renderSlot(B.$slots,"default",{},void 0,!0)],2),e.createElementVNode("input",{onChange:x,multiple:"",ref_key:"manualFile",ref:s,type:"file",hidden:""},null,544)],32)}}},[["__scopeId","data-v-931a7cac"]]),X5={key:0,class:"chat-icon"},K5={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 640 512"},Q5={key:0,class:"unread-count"},J5={key:0,class:"chat-content"},e6={key:1,class:"h-full"},A1=Ce({__name:"chatWindow",props:{attendant:{default:{id:"dea5c13f-4464-4cc6-8653-8c8524acdd3b",name:"Joao Pedro Souto Santos",photo:"https://sm-click.s3.us-east-1.amazonaws.com/clients/624dfe23-92d0-43f1-8061-a2321f2b5ebb/attendants/dea5c13f-4464-4cc6-8653-8c8524acdd3b.png"}},socketMessage:{default:{id:"6170e5cd-a06f-4184-83a4-debd4bfaab35",channel_id:"e10b7177-3400-4457-bb43-b6c9d4a6faa1",sender:{id:"dea5c13f-4464-4cc6-8653-8c8524acdd3b",name:"Joao Pedro Souto Santos",photo:"https://sm-click.s3.us-east-1.amazonaws.com/clients/624dfe23-92d0-43f1-8061-a2321f2b5ebb/attendants/dea5c13f-4464-4cc6-8653-8c8524acdd3b.png"},content:{type:"text",content:"teste sockdet 3"},created_at:"2024-09-17T09:45:19.286087Z"}},countMessages:{type:Number,default:null},mode:{type:String,default:"dark"}},emits:["unreadMessagesEmit"],setup(t,{emit:n}){const a=t,{attendants:o,loadingMessages:r,fetchMessagesForAtendente:i,addMessageToAtendente:s,hasNextPageForAtendente:l,sendMessageToAtendente:d,loadMessagesForAtendente:f,resetUnreadMessages:u,loadingAttendants:h}=cr(),m=e.ref(!1),p=e.ref(!1),c=e.ref(null),g=e.ref(null),y=n,b=e.ref(null),w=()=>{var S;(S=b.value)==null||S.chooseFiles()},E=e.computed(()=>{if(c.value){const S=o.value.find(B=>B.id===c.value.id);return S?S.internal_chat.unread:0}return 0}),x=S=>{var M;const B=(M=g.value)==null?void 0:M.contains(S.target),A=S.target.closest(".fancybox__container");!B&&!A&&m.value&&C()};e.onMounted(()=>{document.addEventListener("click",x)}),e.onBeforeUnmount(()=>{document.removeEventListener("click",x)});const v=e.ref(!1),D=e.ref(!1),_=e.computed(()=>D.value?{position:"absolute",width:"42px",height:"42px",transition:"width 0.2s ease-in, height 0.2s ease-out"}:v.value||m.value?{position:"absolute",width:"400px",height:"65vh",transition:"width 0.2s ease-in, height 0.2s ease-out"}:{position:"relative",width:"42px",height:"42px",transition:"none"}),C=()=>{m.value?(D.value=!0,setTimeout(()=>{m.value=!1,D.value=!1},200)):(m.value=!0,v.value=!0,setTimeout(()=>{v.value=!1},200))},k=()=>{m.value||C()},N=async S=>{const B=o.value.find(M=>M.id===S.id),A=B?B.internal_chat.unread:0;y("unreadMessagesEmit",A),c.value=S,u(S.id),S.hasNextPage||await i(S.id)};return e.watch(()=>a.socketMessage,(S,B)=>{var A;S!==B&&s(S,m.value,(A=c.value)==null?void 0:A.id)}),e.watch(m,S=>{S&&setTimeout(()=>{p.value=!0},400)}),(S,B)=>(e.openBlock(),e.createElementBlock("div",{class:"chat-container",ref_key:"chatContainer",ref:g},[m.value?(e.openBlock(),e.createElementBlock("div",{key:0,onClick:e.withModifiers(C,["stop"]),style:{width:"42px",height:"42px","border-radius":"50%","background-color":"#02a9db",display:"flex","justify-content":"center"}},B[1]||(B[1]=[e.createElementVNode("span",{style:{"margin-top":"auto","margin-bottom":"auto"},class:"chat-icon my-auto"},[e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 640 512"},[e.createElementVNode("path",{fill:"currentColor",d:"M208 352c114.9 0 208-78.8 208-176S322.9 0 208 0S0 78.8 0 176c0 38.6 14.7 74.3 39.6 103.4c-3.5 9.4-8.7 17.7-14.2 24.7c-4.8 6.2-9.7 11-13.3 14.3c-1.8 1.6-3.3 2.9-4.3 3.7c-.5 .4-.9 .7-1.1 .8l-.2 .2s0 0 0 0s0 0 0 0C1 327.2-1.4 334.4 .8 340.9S9.1 352 16 352c21.8 0 43.8-5.6 62.1-12.5c9.2-3.5 17.8-7.4 25.2-11.4C134.1 343.3 169.8 352 208 352zM448 176c0 112.3-99.1 196.9-216.5 207C255.8 457.4 336.4 512 432 512c38.2 0 73.9-8.7 104.7-23.9c7.5 4 16 7.9 25.2 11.4c18.3 6.9 40.3 12.5 62.1 12.5c6.9 0 13.1-4.5 15.2-11.1c2.1-6.6-.2-13.8-5.8-17.9c0 0 0 0 0 0s0 0 0 0l-.2-.2c-.2-.2-.6-.4-1.1-.8c-1-.8-2.5-2-4.3-3.7c-3.6-3.3-8.5-8.1-13.3-14.3c-5.5-7-10.7-15.4-14.2-24.7c24.9-29 39.6-64.7 39.6-103.4c0-92.8-84.9-168.9-192.6-175.5c.4 5.1 .6 10.3 .6 15.5z"})])],-1)]))):e.createCommentVNode("",!0),!m.value&&t.countMessages>0?(e.openBlock(),e.createElementBlock("section",{key:1,style:e.normalizeStyle(t.countMessages>10?"padding: 0.2rem 0.500rem;":"padding: 0.2rem 0.625rem;"),class:"chat-count"},e.toDisplayString(t.countMessages),5)):e.createCommentVNode("",!0),e.createElementVNode("div",{onClick:e.withModifiers(k,["stop"]),class:e.normalizeClass(["group relative",m.value?"chat-box border-base-200 open bg-base-200":"chat-box closed"]),style:e.normalizeStyle(_.value)},[m.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("span",X5,[(e.openBlock(),e.createElementBlock("svg",K5,[e.createElementVNode("path",{class:e.normalizeClass(t.mode==="dark"?"dark-chat-window-icon":"chat-window-icon"),fill:"currentColor",d:"M208 352c114.9 0 208-78.8 208-176S322.9 0 208 0S0 78.8 0 176c0 38.6 14.7 74.3 39.6 103.4c-3.5 9.4-8.7 17.7-14.2 24.7c-4.8 6.2-9.7 11-13.3 14.3c-1.8 1.6-3.3 2.9-4.3 3.7c-.5 .4-.9 .7-1.1 .8l-.2 .2s0 0 0 0s0 0 0 0C1 327.2-1.4 334.4 .8 340.9S9.1 352 16 352c21.8 0 43.8-5.6 62.1-12.5c9.2-3.5 17.8-7.4 25.2-11.4C134.1 343.3 169.8 352 208 352zM448 176c0 112.3-99.1 196.9-216.5 207C255.8 457.4 336.4 512 432 512c38.2 0 73.9-8.7 104.7-23.9c7.5 4 16 7.9 25.2 11.4c18.3 6.9 40.3 12.5 62.1 12.5c6.9 0 13.1-4.5 15.2-11.1c2.1-6.6-.2-13.8-5.8-17.9c0 0 0 0 0 0s0 0 0 0l-.2-.2c-.2-.2-.6-.4-1.1-.8c-1-.8-2.5-2-4.3-3.7c-3.6-3.3-8.5-8.1-13.3-14.3c-5.5-7-10.7-15.4-14.2-24.7c24.9-29 39.6-64.7 39.6-103.4c0-92.8-84.9-168.9-192.6-175.5c.4 5.1 .6 10.3 .6 15.5z"},null,2)])),E.value>0?(e.openBlock(),e.createElementBlock("span",Q5,e.toDisplayString(E.value),1)):e.createCommentVNode("",!0),B[2]||(B[2]=e.createElementVNode("div",{class:"chat-tooltip"},[e.createElementVNode("div",{class:"text-sm my-auto text-center"},"Chat interno")],-1))])),e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>[m.value&&!D.value?(e.openBlock(),e.createElementBlock("div",J5,[e.createElementVNode("button",{onClick:e.withModifiers(C,["stop"]),class:"close-button"},B[3]||(B[3]=[e.createElementVNode("svg",{class:"w-5 h-5",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},[e.createElementVNode("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M6 18L17.94 6M18 18L6.06 6"})],-1)])),e.unref(r)||e.unref(h)?(e.openBlock(),e.createBlock(g1,{key:0})):c.value&&!e.unref(r)?(e.openBlock(),e.createElementBlock("div",e6,[e.createVNode(N1,{ref_key:"dropFilesRef",ref:b,attendant:t.attendant,selectedAttendant:c.value,sendFilesToAttendant:e.unref(d)},{default:e.withCtx(()=>[e.createVNode(p1,{isMobile:!1,onSendFiles:w,attendant:t.attendant,selectedAtendente:c.value,onVoltar:B[0]||(B[0]=A=>c.value=null),loadMessagesForAtendente:e.unref(f),sendMessageToAtendente:e.unref(d),hasNextPageForAtendente:e.unref(l)},null,8,["attendant","selectedAtendente","loadMessagesForAtendente","sendMessageToAtendente","hasNextPageForAtendente"])]),_:1},8,["attendant","selectedAttendant","sendFilesToAttendant"])])):e.createCommentVNode("",!0),!c.value&&!e.unref(h)?(e.openBlock(),e.createBlock(dr,{key:2,attendant:t.attendant,atendentes:e.unref(o),onAtendenteSelecionado:N},null,8,["attendant","atendentes"])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)]),_:1})],6)],512))}},[["__scopeId","data-v-2a677344"]]),t6={class:"chat-content"},n6={key:1,class:"h-full"},T1=Ce({__name:"mobileChatWindow",props:{attendant:{default:{id:"dea5c13f-4464-4cc6-8653-8c8524acdd3b",name:"Joao Pedro Souto Santos",photo:"https://sm-click.s3.us-east-1.amazonaws.com/clients/624dfe23-92d0-43f1-8061-a2321f2b5ebb/attendants/dea5c13f-4464-4cc6-8653-8c8524acdd3b.png"}},socketMessage:{default:{id:"6170e5cd-a06f-4184-83a4-debd4bfaab35",channel_id:"e10b7177-3400-4457-bb43-b6c9d4a6faa1",sender:{id:"dea5c13f-4464-4cc6-8653-8c8524acdd3b",name:"Joao Pedro Souto Santos",photo:"https://sm-click.s3.us-east-1.amazonaws.com/clients/624dfe23-92d0-43f1-8061-a2321f2b5ebb/attendants/dea5c13f-4464-4cc6-8653-8c8524acdd3b.png"},content:{type:"text",content:"teste sockdet 3"},created_at:"2024-09-17T09:45:19.286087Z"}},countMessages:{type:Number,default:null},downloadFilesMobile:{type:Function,required:!0},openMobilePdf:{type:Function}},emits:["unreadMessagesEmit"],setup(t,{emit:n}){const a=t,{attendants:o,loadingMessages:r,fetchMessagesForAtendente:i,addMessageToAtendente:s,hasNextPageForAtendente:l,sendMessageToAtendente:d,loadMessagesForAtendente:f,resetUnreadMessages:u,loadingAttendants:h}=cr(),m=e.ref(!1),p=e.ref(!1),c=e.ref(null),g=e.ref(null),y=n,b=e.ref(null),w=()=>{var C;(C=b.value)==null||C.chooseFiles()};e.computed(()=>{if(c.value){const C=o.value.find(k=>k.id===c.value.id);return C?C.internal_chat.unread:0}return 0});const E=C=>{g.value&&!g.value.contains(C.target)&&m.value&&D()};e.onMounted(()=>{document.addEventListener("click",E)}),e.onBeforeUnmount(()=>{document.removeEventListener("click",E)});const x=e.ref(!1),v=e.ref(!1),D=()=>{m.value?(v.value=!0,setTimeout(()=>{m.value=!1,v.value=!1},200)):(m.value=!0,x.value=!0,setTimeout(()=>{x.value=!1},200))},_=async C=>{const k=o.value.find(S=>S.id===C.id),N=k?k.internal_chat.unread:0;y("unreadMessagesEmit",N),c.value=C,u(C.id),C.hasNextPage||await i(C.id)};return e.watch(()=>a.socketMessage,(C,k)=>{var N;C!==k&&s(C,m.value,(N=c.value)==null?void 0:N.id)}),e.watch(m,C=>{C&&setTimeout(()=>{p.value=!0},400)}),(C,k)=>(e.openBlock(),e.createElementBlock("div",t6,[e.unref(r)||e.unref(h)?(e.openBlock(),e.createBlock(g1,{key:0})):c.value&&!e.unref(r)?(e.openBlock(),e.createElementBlock("div",n6,[e.createVNode(N1,{ref_key:"dropFilesRef",ref:b,isMobile:"",attendant:t.attendant,selectedAttendant:c.value,sendFilesToAttendant:e.unref(d)},{default:e.withCtx(()=>[e.createVNode(p1,{isMobile:"",attendant:t.attendant,selectedAtendente:c.value,loadMessagesForAtendente:e.unref(f),sendMessageToAtendente:e.unref(d),hasNextPageForAtendente:e.unref(l),downloadFilesMobile:t.downloadFilesMobile,openMobilePdf:t.openMobilePdf,onVoltar:k[0]||(k[0]=N=>c.value=null),onSendFiles:w},null,8,["attendant","selectedAtendente","loadMessagesForAtendente","sendMessageToAtendente","hasNextPageForAtendente","downloadFilesMobile","openMobilePdf"])]),_:1},8,["attendant","selectedAttendant","sendFilesToAttendant"])])):e.createCommentVNode("",!0),!c.value&&!e.unref(h)?(e.openBlock(),e.createBlock(dr,{key:2,mobile:!0,attendant:t.attendant,atendentes:e.unref(o),onAtendenteSelecionado:_},null,8,["attendant","atendentes"])):e.createCommentVNode("",!0)]))}},[["__scopeId","data-v-56eadf01"]]),ja=Vt.defineStore("department",{state:()=>({departments:[],count:null,loaded:!1}),actions:{async fetchDepartments(t=""){try{let n=`${ds}`;const a=await Ue.get(n);this.departments=a.data,this.count=this.departments.length}catch(n){console.log("Erro ao buscar departamentos:",n)}},removeDepartments(t){this.departments=this.departments.filter(n=>n.id!==t)},addDepartments(t){const n=this.departments.findIndex(a=>a.id===t.id);n!==-1?this.departments[n]=t:this.departments.push(t)}}}),a6={class:"depart-select-container"},o6={class:"search-container relative shadow shadow-gray-900 dark:shadow-gray-500"},r6=["placeholder"],i6={key:0,class:"selection-container bg-base-300 border-b border-base-200"},s6=["onClick"],l6={class:"department-list"},c6=["onClick"],d6={key:0,style:{width:"150px"}},u6=["onUpdate:modelValue","onChange"],m6={key:0,class:"no-departments bg-base-300"},f6={key:0},h6={key:1,class:"library-loading-spinner"},D1=Ce({__name:"departSelect",props:{department:{type:[Array,String],default:null},modal_filter:{type:String,default:null},multiSelect:{type:Boolean,default:!0},permissions:{type:Boolean,default:!1},externalDepartments:{type:Array,default:null},attDel:{type:String,default:null},hiddenDepartment:{type:String,default:null}},emits:["depart","component-mounted"],setup(t,{emit:n}){e.useSlots();const a=t,o=n,r=ja(),i=e.ref(""),s=e.ref([]),l=e.ref(!1),d=e.ref(!1),f=e.computed(()=>(a.externalDepartments||r.departments).filter(E=>!(a.hiddenDepartment&&E.id===a.hiddenDepartment)).filter(E=>!i.value||E.name.toLowerCase().includes(i.value.toLowerCase())));e.onMounted(async()=>{await m(),await h(),o("component-mounted")}),e.watch(()=>r.departments.length,async()=>{await m(),await e.nextTick(),await h()},{immediate:!0}),e.watch(()=>a.attDel,w=>w&&u(w),{immediate:!0});function u(w){const x=(a.externalDepartments||r.departments).findIndex(v=>v.id===w);x!==-1&&(s.value=s.value.filter(v=>v.id!==w),a.externalDepartments?a.externalDepartments.splice(x,1):r.removeDepartments(w),o("depart",s.value))}async function h(){d.value=!0;const w=a.externalDepartments||r.departments;a.permissions&&w.forEach(E=>{E.permission||(E.permission="normal")}),await p(),d.value=!1}async function m(){(a.externalDepartments||r.departments).forEach(E=>E.selected=!1),s.value=[]}async function p(){const w=a.externalDepartments||r.departments;if(!(w!=null&&w.length))return;(Array.isArray(a.department)?a.department:a.department?[a.department]:[]).forEach(x=>{const v=typeof x=="object"?x.id:x,D=typeof x=="object"?x.permission:void 0,_=w.find(C=>C.id===v);_&&(_.selected=!0,D&&(_.permission=D),s.value.some(C=>C.id===v)||s.value.push(_))}),o("depart",s.value)}function c(w){const E=s.value.findIndex(x=>x.id===w.id);E!==-1?(w.selected=!1,s.value.splice(E,1)):(a.multiSelect||m(),w.selected=!0,s.value.push(w)),o("depart",s.value)}function g(){o("depart",s.value)}function y(w,E){w.selected=!1,s.value.splice(E,1),o("depart",s.value)}const b=e.computed(()=>i.value.trim().length>0);return e.watch(b,w=>{o("searching",w)}),(w,E)=>(e.openBlock(),e.createElementBlock("div",a6,[e.createElementVNode("div",o6,[e.createElementVNode("div",{class:e.normalizeClass(["input-wrapper bg-base-300 border-b border-base-200",{expanded:l.value||s.value.length>0}]),onClick:E[1]||(E[1]=x=>l.value=!l.value)},[e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":E[0]||(E[0]=x=>i.value=x),placeholder:s.value.length>0?t.multiSelect?`Selecionados: ${s.value.length}`:`Selecionado: ${s.value[0].name}`:"Pesquise por nome.",class:"select-depart-input"},null,8,r6),[[e.vModelText,i.value]]),E[2]||(E[2]=e.createElementVNode("div",{class:"icon-container"},[e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"search-icon"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M21 21l-5.197-5.197m0 0A7.5 7.5 0 105.196 5.196a7.5 7.5 0 0010.607 10.607z"})])],-1))],2),s.value.length>0&&t.multiSelect&&e.unref(r).loaded?(e.openBlock(),e.createElementBlock("main",i6,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value,(x,v)=>(e.openBlock(),e.createElementBlock("div",{key:x.id,class:"selection-item"},[e.createTextVNode(e.toDisplayString(x.name)+" ",1),e.createElementVNode("button",{onClick:D=>y(x,v),class:"close-btn"},E[3]||(E[3]=[e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"close-icon"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6 18L18 6M6 6l12 12"})],-1)]),8,s6)]))),128))])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass([s.value.length>0&&t.multiSelect?"dropdown-depart-expanded":"dropdown-depart","dropdown-depart bg-base-300"])},[e.createElementVNode("div",l6,[e.createElementVNode("div",{class:e.normalizeClass([{"two-columns":f.value.length>4},"grid-container"])},[e.unref(r).loaded?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(f.value,x=>(e.openBlock(),e.createElementBlock("div",{key:x.id,class:e.normalizeClass([{selected:x.selected},"department-item line-clamp-1 bg-slate-500/20 hover:bg-teal-600"])},[e.createElementVNode("span",{onClick:v=>c(x),class:"department-name h-full w-full"},e.toDisplayString(x.name),9,c6),t.multiSelect&&t.permissions?(e.openBlock(),e.createElementBlock("div",d6,[e.withDirectives(e.createElementVNode("select",{"onUpdate:modelValue":v=>x.permission=v,onChange:v=>g(),class:"select-dropdown-depart bg-base-300"},E[4]||(E[4]=[e.createElementVNode("option",{value:"normal"},"normal",-1),e.createElementVNode("option",{value:"supervisor"},"supervisor",-1)]),40,u6),[[e.vModelSelect,x.permission]])])):e.createCommentVNode("",!0)],2))),128)):e.createCommentVNode("",!0)],2)]),e.unref(r).loaded&&f.value.length===0?(e.openBlock(),e.createElementBlock("div",m6,[w.$slots.default?e.renderSlot(w.$slots,"default",{key:1},void 0,!0):(e.openBlock(),e.createElementBlock("p",f6,"Nenhum departamento disponível."))])):e.createCommentVNode("",!0),e.unref(r).loaded?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",h6,E[5]||(E[5]=[e.createTextVNode(" Inicializando departamentos "),e.createElementVNode("div",{class:"library-loader"},null,-1)])))],2)])]))}},[["__scopeId","data-v-6721add7"]]),p6={class:"depart-select-container"},g6={class:"search-container relative shadow shadow-gray-900 dark:shadow-gray-500"},y6=["placeholder"],k6={key:0,class:"selection-container bg-base-300 border-b border-base-200"},x6=["onClick"],b6={class:"department-list"},w6={style:{"padding-left":"5px"}},E6=["src"],v6={key:1,style:{"pointer-events":"none","border-radius":"100%",width:"24px",height:"24px"},class:"bg-base-300","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",fill:"currentColor",viewBox:"0 0 24 24"},C6=["onClick"],S6={key:0,class:"no-departments bg-base-300"},B6={key:1,class:"library-loading-spinner"},L1=Ce({__name:"attendantSelect",props:{attendance:{type:[Array,String],default:null},multiSelect:{type:Boolean,default:!0},department:{type:Array,default:[]},modal_filter:{type:String,default:null},attDel:{type:Object,default:{id:null}},method:{type:String,default:null},preselect:{type:Boolean,default:!0}},emits:["attend","component-mounted"],setup(t,{emit:n}){const a=t,o=n,r=Rt(),i=e.ref(""),s=e.ref(!1),l=e.ref([]);function d(){const b=Array.isArray(a.attendance)?a.attendance:a.attendance?[a.attendance]:[];return new Set(b.filter(Boolean).map(w=>typeof w=="object"?w.id:w))}const f=e.computed(()=>{const b=r.attendants.filter(E=>E.status===!0),w=i.value?b.filter(E=>E.name.toLowerCase().includes(i.value.toLowerCase())):b;return h(u(w))});function u(b){var w;if(a.method==="remove")return(Array.isArray(a.attendance)?a.attendance:a.attendance?[a.attendance]:b).filter(x=>{var D;return(typeof x=="object"?x.id:x)!==((D=a==null?void 0:a.attDel)==null?void 0:D.id)});if(a.method==="addParticipant"){const E=d();return(w=a==null?void 0:a.attDel)!=null&&w.id&&E.add(a.attDel.id),b.filter(x=>!E.has(x.id))}return b}function h(b){return Array.isArray(a.department)&&a.department.length>0?b.filter(w=>w.department.some(E=>a.department.some(x=>x.id===E.id))):b}e.onMounted(()=>{m(),o("component-mounted")}),e.watch(()=>r.attendants.length,async()=>{await e.nextTick(),m()},{immediate:!0}),e.watch(()=>a.modal_filter,()=>{!a.modal_filter&&a.multiSelect&&p()},{immediate:!0}),e.watch(()=>a.department,()=>m(),{deep:!0});function m(){p(),c()}function p(){r.attendants.forEach(b=>b.selected=!1),l.value=[]}function c(){if(!a.preselect)return;const b=r.attendants;if(!(b!=null&&b.length))return;(Array.isArray(a.attendance)?a.attendance:a.attendance?[a.attendance]:[]).forEach(E=>{const x=typeof E=="object"?E.id:E,v=b.find(D=>D.id===x);v&&!l.value.some(D=>D.id===x)&&(v.selected=!0,l.value.push(v))}),o("attend",l.value)}function g(b){const w=l.value.findIndex(E=>E.id===b.id);w!==-1?(b.selected=!1,l.value.splice(w,1)):(a.multiSelect||p(),b.selected=!0,l.value.push(b)),o("attend",l.value)}function y(b,w){b.selected=!1,l.value.splice(w,1),o("attend",l.value)}return(b,w)=>(e.openBlock(),e.createElementBlock("div",p6,[e.createElementVNode("div",g6,[e.createElementVNode("div",{class:e.normalizeClass(["input-wrapper bg-base-300 border-b border-base-200",{expanded:s.value||l.value.length>0}]),onClick:w[1]||(w[1]=E=>s.value=!s.value)},[e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":w[0]||(w[0]=E=>i.value=E),placeholder:l.value.length>0?t.multiSelect?`Selecionados: ${l.value.length}`:`Selecionado: ${l.value[0].name}`:"Pesquise por nome.",class:"select-depart-input"},null,8,y6),[[e.vModelText,i.value]]),w[2]||(w[2]=e.createElementVNode("div",{class:"icon-container"},[e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"search-icon"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M21 21l-5.197-5.197m0 0A7.5 7.5 0 105.196 5.196a7.5 7.5 0 0010.607 10.607z"})])],-1))],2),l.value.length>0&&t.multiSelect&&e.unref(r).loaded?(e.openBlock(),e.createElementBlock("main",k6,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.value,(E,x)=>(e.openBlock(),e.createElementBlock("div",{key:E,class:"selection-item"},[e.createTextVNode(e.toDisplayString(E.name)+" ",1),e.createElementVNode("button",{onClick:v=>y(E,x),class:"close-btn"},w[3]||(w[3]=[e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"close-icon"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6 18L18 6M6 6l12 12"})],-1)]),8,x6)]))),128))])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass([l.value.length>0&&t.multiSelect?"dropdown-attendance-expanded":"dropdown-attendance","dropdown-attendance bg-base-300"])},[e.createElementVNode("div",b6,[e.createElementVNode("div",{class:e.normalizeClass([{"two-columns":f.value.length>4},"grid-container"])},[e.unref(r).loaded?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(f.value,E=>(e.openBlock(),e.createElementBlock("div",{key:E,class:e.normalizeClass([{selected:E.selected},"department-item line-clamp-1 bg-slate-500/20 hover:bg-teal-600"])},[e.createElementVNode("div",w6,[E.photo?(e.openBlock(),e.createElementBlock("img",{key:0,src:E.photo,style:{"pointer-events":"none","border-radius":"100%",width:"24px",height:"24px"}},null,8,E6)):(e.openBlock(),e.createElementBlock("svg",v6,w[4]||(w[4]=[e.createElementVNode("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"},null,-1)])))]),e.createElementVNode("span",{onClick:x=>g(E),class:"department-name h-full w-full"},e.toDisplayString(E.name),9,C6)],2))),128)):e.createCommentVNode("",!0)],2)]),e.unref(r).loaded&&f.value.length===0?(e.openBlock(),e.createElementBlock("div",S6," Nenhum atendente disponível. ")):e.createCommentVNode("",!0),e.unref(r).loaded?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",B6,w[5]||(w[5]=[e.createTextVNode(" Inicializando atendentes "),e.createElementVNode("div",{class:"library-loader"},null,-1)])))],2)])]))}},[["__scopeId","data-v-6d479fae"]]),V6={class:""},M6={class:"flex justify-between mb-3"},N6={class:""},F1=Ce({__name:"filterSelect",props:{title:{type:String,default:"Filtros"},modelValue:{default:null}},setup(t){const n=e.ref(!0);return(a,o)=>{const r=e.resolveComponent("Popper");return e.openBlock(),e.createBlock(r,{placement:"bottom",arrow:!1,class:"dark:popper-light popper-dark"},{content:e.withCtx(({close:i})=>[e.createElementVNode("section",V6,[e.createElementVNode("div",null,[e.createElementVNode("div",M6,[e.createElementVNode("p",null,e.toDisplayString(t.title),1),o[1]||(o[1]=e.createElementVNode("svg",{class:"w-4 h-4 text-white","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24"},[e.createElementVNode("path",{d:"M5 3a2 2 0 0 0-1.5 3.3l5.4 6v5c0 .4.3.9.6 1.1l3.1 2.3c1 .7 2.5 0 2.5-1.2v-7.1l5.4-6C21.6 5 20.7 3 19 3H5Z"})],-1))]),e.createElementVNode("div",N6,[e.renderSlot(a.$slots,"default",{},void 0,!0)])])])]),default:e.withCtx(()=>[e.createElementVNode("button",{onClick:o[0]||(o[0]=i=>n.value=!n.value),class:"group max-w-max relative flex p-0.5 flex-col items-center justify-center cursor-pointer rounded-md text-xs font-semibold"},o[2]||(o[2]=[e.createElementVNode("svg",{class:"w-3 h-3","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24"},[e.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"})],-1)]))]),_:3})}}},[["__scopeId","data-v-27cda391"]]);function A6(t,n){return e.openBlock(),e.createElementBlock("svg")}const T6={render:A6},D6=e.createStaticVNode('<g id="Top/_Resources/Prescription-01" fill="none" transform="translate(62 85)"><defs><filter id="filter1" width="101.5%" height="109.8%" x="-.8%" y="-2.4%" filterUnits="objectBoundingBox"><feOffset dy="2" in="SourceAlpha" result="shadowOffsetOuter1"></feOffset><feColorMatrix in="shadowOffsetOuter1" result="shadowMatrixOuter1" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0"></feColorMatrix><feMerge><feMergeNode in="shadowMatrixOuter1"></feMergeNode><feMergeNode in="SourceGraphic"></feMergeNode></feMerge></filter></defs><g id="Glasses" fill="#D6EAF2" filter="url('#filter1')" transform="translate(8 8)"><path id="Frame-Stuff" d="M46.25 7.275c2.37.022 3.492.417 3.896 2.89.41 2.506.011 5.322-.46 7.79-.721 3.768-1.92 7.46-4.708 10.214-1.47 1.45-3.261 2.606-5.167 3.395-1.012.42-2.081.722-3.15.952-.312.067-2.979.434-1.343.248-3.817.435-7.958.418-11.146-2.012-3.532-2.692-5.952-6.952-7.015-11.196-.623-2.483-1.93-8.422.459-10.407 2.737-2.274 28.633-1.874 28.633-1.874M22.217.491c-5.44.187-9.071 1.143-11.755 6.578-4.917 9.961 3.5 24.9 12.89 28.97 10.976 4.76 23.24-.507 29.043-10.033 3.073-5.044 4.626-12.683 4.526-18.502C56.795.077 51.607-.13 45.51.034zM79.68 7.273c-2.371.022-3.492.416-3.896 2.89-.41 2.505-.012 5.322.46 7.79.72 3.767 1.919 7.459 4.708 10.213 1.47 1.45 3.261 2.606 5.167 3.396 1.012.419 2.08.722 3.15.951.312.067 2.978.435 1.343.248 3.817.436 7.958.418 11.145-2.011 3.533-2.692 5.952-6.952 7.016-11.196.623-2.483 1.93-8.422-.46-10.407-2.737-2.275-28.632-1.874-28.632-1.874M103.713.488c5.44.187 9.071 1.144 11.754 6.579 4.918 9.96-3.5 24.9-12.889 28.97-10.977 4.76-23.24-.508-29.043-10.033C70.46 20.96 68.907 13.32 69.007 7.5 69.135.074 74.323-.132 80.42.031z"></path><path id="Frame-Stuff" d="M13.197 4.927c-3.412.191-7.31.237-10.507 1.712-3.385 1.562-3.908 5.1.36 5.587 1.92.22 3.845-.143 5.737-.481 1.55-.277 3.655-.187 5.12-.78 2.729-1.103 2.553-6.225-.71-6.038m99.538 0c3.412.191 7.31.237 10.507 1.712 3.384 1.562 3.907 5.1-.36 5.587-1.921.22-3.845-.143-5.738-.481-1.55-.277-3.654-.187-5.119-.78-2.73-1.103-2.554-6.225.71-6.038M73.11 7.013c-1.947-2.3-7.019-3.628-10.219-3.628s-8.123 1.328-10.069 3.628c-.981 1.16-1.015 2.711.686 3.438 2.118.906 4.01-.737 5.705-1.596 2.168-1.098 5.499-.978 7.506 0 1.708.833 3.586 2.502 5.704 1.596 1.701-.727 1.668-2.279.686-3.438"></path></g></g>',1),L6=[D6];function F6(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...L6])}const $6={render:F6},_6=e.createStaticVNode('<g id="Top/_Resources/Round" fill="none" transform="translate(62 85)"><defs><filter id="filter1" width="101.6%" height="108.3%" x="-.8%" y="-2.1%" filterUnits="objectBoundingBox"><feOffset dy="2" in="SourceAlpha" result="shadowOffsetOuter1"></feOffset><feColorMatrix in="shadowOffsetOuter1" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.1 0"></feColorMatrix></filter><path id="Round-path1" d="M80.465 16.394C84.38 8.46 92.553 3 102 3c8.92 0 16.703 4.866 20.84 12.088q.316-.087.66-.088h8a2.5 2.5 0 1 1 0 5h-6.537A24 24 0 0 1 126 27c0 13.255-10.745 24-24 24S78 40.255 78 27c0-1.422.124-2.815.36-4.169C78.277 18.455 74.915 15 70.863 15c-3.736 0-6.887 2.94-7.42 6.83.365 1.665.558 3.395.558 5.17 0 13.255-10.745 24-24 24S16 40.255 16 27c0-2.435.363-4.785 1.037-7H10.5a2.5 2.5 0 1 1 0-5h8q.343 0 .66.088C23.297 7.866 31.08 3 40 3c9.352 0 17.455 5.35 21.416 13.155C63.493 13.039 66.949 11 70.862 11c4.013 0 7.545 2.144 9.603 5.394M40 47c11.046 0 20-8.954 20-20S51.046 7 40 7s-20 8.954-20 20 8.954 20 20 20m62 0c11.046 0 20-8.954 20-20s-8.954-20-20-20-20 8.954-20 20 8.954 20 20 20"></path></defs><g id="Lennon-Glasses"><use fill="#000" filter="url('#filter1')" href="#Round-path1"></use><use fill="#252C2F" href="#Round-path1"></use></g></g>',1),P6=[_6];function O6(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...P6])}const R6={render:O6},H6=e.createStaticVNode('<g id="Top/_Resources/Wayfarers" fill="none" stroke-width="1" transform="translate(62 85)"><defs><path id="react-path-1157" d="M44.918 17.571c0 9.703-8.25 17.572-21.998 17.572h-2.75C6.423 35.143.923 27.27.923 17.57.923 7.866 2.207 0 21.455 0h2.931c19.248 0 20.532 7.866 20.532 17.571"></path><path id="react-path-1158" d="M106.486 17.571c0 9.703-8.247 17.572-21.997 17.572h-2.75c-13.748 0-19.248-7.872-19.248-17.572C62.491 7.866 63.775 0 83.023 0h2.932c19.244 0 20.531 7.866 20.531 17.571"></path><linearGradient id="react-linear-gradient-1160" x1="50%" x2="50%" y1="0%" y2="100%"><stop offset="0%" stop-color="#FFF" stop-opacity=".5"></stop><stop offset="70.506%" stop-opacity=".5"></stop></linearGradient><filter id="react-filter-1159" width="101.6%" height="109.8%" x="-.8%" y="-2.4%" filterUnits="objectBoundingBox"><feOffset dy="2" in="SourceAlpha" result="shadowOffsetOuter1"></feOffset><feColorMatrix in="shadowOffsetOuter1" result="shadowMatrixOuter1" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0"></feColorMatrix><feMerge><feMergeNode in="shadowMatrixOuter1"></feMergeNode><feMergeNode in="SourceGraphic"></feMergeNode></feMerge></filter></defs><g id="Wayfarers" filter="url(#react-filter-1159)" transform="translate(7 7)"><g id="Shades" fill-rule="evenodd" transform="translate(10.795 2.929)"><g id="Shade"><use fill="#000" fill-opacity=".7" href="#react-path-1157"></use><use fill="url(#react-linear-gradient-1160)" href="#react-path-1157" style="mix-blend-mode:screen;"></use></g><g id="Shade"><use fill="#000" fill-opacity=".7" href="#react-path-1158"></use><use fill="url(#react-linear-gradient-1160)" href="#react-path-1158" style="mix-blend-mode:screen;"></use></g></g><path id="Left" fill="#252C2F" fill-rule="nonzero" d="M33.716 41h-2.75c-13.888 0-22.18-7.664-22.18-20.5C8.787 10.127 10.6 0 32.25 0h2.932c21.651 0 23.463 10.127 23.463 20.5 0 12.069-10.25 20.5-24.93 20.5M32.25 5.854c-17.6 0-17.6 6.464-17.6 14.646 0 6.68 2.83 14.643 16.316 14.643h2.75c11.226 0 19.066-6.021 19.066-14.643 0-8.182 0-14.646-17.6-14.646z"></path><path id="Right" fill="#252C2F" fill-rule="nonzero" d="M95.284 41h-2.75c-13.888 0-22.18-7.664-22.18-20.5 0-10.373 1.813-20.5 23.464-20.5h2.932c21.651 0 23.463 10.127 23.463 20.5 0 12.069-10.25 20.5-24.929 20.5M93.818 5.854c-17.6 0-17.6 6.464-17.6 14.646 0 6.68 2.833 14.643 16.316 14.643h2.75c11.226 0 19.066-6.021 19.066-14.643 0-8.182 0-14.646-17.6-14.646z"></path><path id="Stuff" fill="#252C2F" fill-rule="nonzero" d="M2.932 5.857C3.618 5.172 11.123 0 32.25 0c17.714 0 21.464 1.88 27.14 4.72l.415.21c.395.143 2.413.844 4.773.921a16.5 16.5 0 0 0 4.528-.881C75.584 1.748 81.926 0 96.75 0c21.127 0 28.632 5.172 29.318 5.857A2.93 2.93 0 0 1 129 8.786v2.928c0 1.62-1.31 2.929-2.932 2.929 0 0-5.863 0-5.863 2.928s-2.932-4.237-2.932-5.857V8.862c-3.576-1.4-9.976-3.005-20.523-3.005-11.75 0-17.602 1.131-22.622 3.247l.056.139-2.496 1.007 2.493 1.008-2.2 5.43-2.717-1.1a13 13 0 0 0-1.493-.457c-2.024-.51-4.106-.666-5.946-.28a7.7 7.7 0 0 0-1.877.642l-2.622 1.31-2.623-5.238 2.622-1.31.006-.003-2.512-1.015.08-.198C50.57 6.976 46.58 5.857 32.25 5.857c-10.546 0-16.947 1.604-20.523 3.004v2.853c0 1.62-2.932 8.786-2.932 5.857s-5.863-2.928-5.863-2.928A2.93 2.93 0 0 1 0 11.714V8.786a2.93 2.93 0 0 1 2.932-2.929"></path></g></g>',1),z6=[H6];function j6(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...z6])}const G6={render:j6},q6=e.createStaticVNode('<g id="Top/_Resources/Kurt" fill="none" transform="translate(62 85)"><defs><filter id="filter1" width="101.5%" height="108%" x="-.8%" y="-2%" filterUnits="objectBoundingBox"><feOffset dy="2" in="SourceAlpha" result="shadowOffsetOuter1"></feOffset><feColorMatrix in="shadowOffsetOuter1" result="shadowMatrixOuter1" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"></feColorMatrix><feMerge><feMergeNode in="shadowMatrixOuter1"></feMergeNode><feMergeNode in="SourceGraphic"></feMergeNode></feMerge></filter></defs><g id="Kurts" filter="url('#filter1')" transform="translate(5 2)"><path id="It!" fill="#F4F4F4" d="M66 11.111c-11.037 0-12.63-9.084-35.33-10.37C7.987-.283.816 6.449.777 11.11c.037 4.293-1.128 15.45 13.589 28.519 14.772 15.512 29.905 10.252 35.33 5.185C55.134 42.473 61.34 21.46 66 21.48s10.865 20.992 16.306 23.334c5.424 5.067 20.557 10.327 35.33-5.185 14.716-13.069 13.55-24.226 13.588-28.519-.04-4.662-7.21-11.394-29.895-10.37C78.63 2.027 77.037 11.11 66 11.11"></path><path id="Did" fill="#2F383B" d="M55.13 21.481c.38-7.658-12.914-15.839-27.177-15.555-14.256.299-16.111 9.453-16.306 12.963-.349 8.133 8.367 26.415 24.459 25.926 16.091-.51 18.803-18.28 19.023-23.334"></path><path id="Courtney" fill="#2F383B" d="M120.353 21.481c.38-7.658-12.914-15.839-27.177-15.555-14.255.299-16.11 9.453-16.305 12.963-.35 8.133 8.367 26.415 24.458 25.926 16.092-.51 18.804-18.28 19.024-23.334" transform="matrix(-1 0 0 1 197.224 0)"></path></g></g>',1),I6=[q6];function W6(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...I6])}const U6={render:W6},Z6=e.createStaticVNode('<g id="Top/_Resources/Prescription-02" fill="none" stroke-width="1" transform="translate(62 85)"><defs><filter id="react-filter-1166" width="101.5%" height="109.8%" x="-.8%" y="-2.4%" filterUnits="objectBoundingBox"><feOffset dy="2" in="SourceAlpha" result="shadowOffsetOuter1"></feOffset><feColorMatrix in="shadowOffsetOuter1" result="shadowMatrixOuter1" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0"></feColorMatrix><feMerge><feMergeNode in="shadowMatrixOuter1"></feMergeNode><feMergeNode in="SourceGraphic"></feMergeNode></feMerge></filter></defs><g id="Wayfarers" fill="#252C2F" fill-rule="nonzero" filter="url(#react-filter-1166)" transform="translate(6 7)"><path id="Left" d="M34 41h-2.758C17.315 41 9 33.336 9 20.5 9 10.127 10.817 0 32.53 0h2.94C57.183 0 59 10.127 59 20.5 59 32.569 48.721 41 34 41M32.385 6C13 6 13 12.841 13 21.502 13 28.572 16.116 37 30.97 37H34c12.365 0 21-6.373 21-15.498C55 12.84 55 6 35.615 6z"></path><path id="Right" d="M96 41h-2.758C79.315 41 71 33.336 71 20.5 71 10.127 72.817 0 94.53 0h2.94C119.183 0 121 10.127 121 20.5 121 32.569 110.721 41 96 41M94.385 6C75 6 75 12.841 75 21.502 75 28.572 78.12 37 92.97 37H96c12.365 0 21-6.373 21-15.498C117 12.84 117 6 97.615 6z"></path><path id="Stuff" d="M2.955 5.772C3.645 5.096 11.21 0 32.5 0c17.851 0 21.63 1.853 27.35 4.652l.419.207c.398.14 2.431.83 4.81.907a17 17 0 0 0 4.563-.869C76.17 1.722 82.562 0 97.5 0c21.29 0 28.854 5.096 29.545 5.772 1.634 0 2.955 1.29 2.955 2.885v2.886c0 1.596-1.32 2.886-2.955 2.886 0 0-6.901 0-6.901 2.886 0 2.885-1.962-4.176-1.962-5.772v-2.81c-3.603-1.38-10.054-3.947-20.682-3.947-11.842 0-17.739 2.1-22.798 4.185l.057.137-.003 1.986-2.217 5.35L69.8 15.36c-.244-.097-.772-.27-1.504-.451-2.04-.503-4.137-.656-5.992-.276q-1.021.21-1.891.633l-2.643 1.29-2.643-5.16.117-2.295.08-.195c-4.362-2.033-8.385-4.12-22.824-4.12-10.628 0-17.078 2.565-20.682 3.944v2.812c0 1.596-2.954 8.657-2.954 5.772 0-2.886-5.91-2.886-5.91-2.886-1.63 0-2.954-1.29-2.954-2.886V8.657c0-1.595 1.324-2.885 2.955-2.885"></path></g></g>',1),Y6=[Z6];function X6(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...Y6])}const K6={render:X6},Q6=e.createStaticVNode('<g id="Top/_Resources/Sunglasses" fill="none" stroke-width="1" transform="translate(62 85)"><defs><linearGradient id="react-linear-gradient-1164" x1="50%" x2="50%" y1="0%" y2="70.506%"><stop offset="0%" stop-color="#FFF" stop-opacity=".5"></stop><stop offset="100%" stop-opacity=".5"></stop></linearGradient><linearGradient id="react-linear-gradient-1165" x1="50%" x2="50%" y1="0%" y2="100%"><stop offset="0%" stop-color="#FFF" stop-opacity=".5"></stop><stop offset="70.506%" stop-opacity=".5"></stop></linearGradient><path id="react-path-1161" d="M47.01 6.277c2.511.024 3.698.45 4.126 3.115.433 2.7.012 5.736-.488 8.395-.762 4.06-2.031 8.04-4.984 11.007-1.555 1.564-3.452 2.81-5.47 3.66-1.071.452-2.203.778-3.334 1.026-.33.072-3.154.468-1.422.267-4.041.47-8.425.45-11.8-2.168-3.74-2.901-6.301-7.493-7.427-12.066-.66-2.676-2.044-9.076.486-11.216 2.898-2.452 30.313-2.02 30.313-2.02"></path><path id="react-path-1162" d="M78.92 6.275c-2.512.024-3.699.449-4.126 3.114-.434 2.7-.012 5.736.487 8.395.763 4.061 2.032 8.04 4.984 11.008 1.556 1.563 3.453 2.809 5.47 3.66 1.072.451 2.204.778 3.335 1.025.33.072 3.153.469 1.422.267 4.04.47 8.425.45 11.8-2.167 3.74-2.902 6.3-7.493 7.427-12.066.66-2.677 2.043-9.077-.486-11.217-2.898-2.451-30.314-2.02-30.314-2.02"></path><filter id="react-filter-1163" width="101.6%" height="110.5%" x="-.8%" y="-2.6%" filterUnits="objectBoundingBox"><feOffset dy="2" in="SourceAlpha" result="shadowOffsetOuter1"></feOffset><feColorMatrix in="shadowOffsetOuter1" result="shadowMatrixOuter1" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.1 0"></feColorMatrix><feMerge><feMergeNode in="shadowMatrixOuter1"></feMergeNode><feMergeNode in="SourceGraphic"></feMergeNode></feMerge></filter></defs><g id="Sunglasses" filter="url(#react-filter-1163)" transform="translate(8 8)"><g id="shades"><use fill="#000" fill-opacity=".7" href="#react-path-1161"></use><use fill="url(#react-linear-gradient-1164)" href="#react-path-1161" style="mix-blend-mode:screen;"></use></g><g id="shades"><use fill="#000" fill-opacity=".7" href="#react-path-1162"></use><use fill="url(#react-linear-gradient-1165)" href="#react-path-1162" style="mix-blend-mode:screen;"></use></g><g id="Glasses" fill="#252C2F"><path id="Frame" d="M46.25 7.275c2.37.022 3.492.417 3.896 2.89.41 2.506.011 5.322-.46 7.79-.721 3.768-1.92 7.46-4.708 10.214-1.47 1.45-3.261 2.606-5.167 3.395-1.012.42-2.081.722-3.15.952-.312.067-2.979.434-1.343.248-3.817.435-7.958.418-11.146-2.012-3.532-2.692-5.952-6.952-7.015-11.196-.623-2.483-1.93-8.422.459-10.407 2.737-2.274 28.633-1.874 28.633-1.874M22.217.491c-5.44.187-9.071 1.143-11.755 6.578-4.917 9.961 3.5 24.9 12.89 28.97 10.976 4.76 23.24-.507 29.043-10.033 3.073-5.044 4.626-12.683 4.526-18.502C56.795.077 51.607-.13 45.51.034zM79.68 7.273c-2.371.022-3.492.416-3.896 2.89-.41 2.505-.012 5.322.46 7.79.72 3.767 1.919 7.459 4.708 10.213 1.47 1.45 3.261 2.606 5.167 3.396 1.012.419 2.08.722 3.15.951.312.067 2.978.435 1.343.248 3.817.436 7.958.418 11.145-2.011 3.533-2.692 5.952-6.952 7.016-11.196.623-2.483 1.93-8.422-.46-10.407-2.737-2.275-28.632-1.874-28.632-1.874M103.713.488c5.44.187 9.071 1.144 11.754 6.579 4.918 9.96-3.5 24.9-12.889 28.97-10.977 4.76-23.24-.508-29.043-10.033C70.46 20.96 68.907 13.32 69.007 7.5 69.135.074 74.323-.132 80.42.031z"></path><path id="Frame" d="M13.197 4.927c-3.412.191-7.31.237-10.507 1.712-3.385 1.562-3.908 5.1.36 5.587 1.92.22 3.845-.143 5.737-.481 1.55-.277 3.655-.187 5.12-.78 2.729-1.103 2.553-6.225-.71-6.038m99.538 0c3.412.191 7.31.237 10.507 1.712 3.384 1.562 3.907 5.1-.36 5.587-1.921.22-3.845-.143-5.738-.481-1.55-.277-3.654-.187-5.119-.78-2.73-1.103-2.554-6.225.71-6.038M73.11 7.013c-1.947-2.3-7.019-3.628-10.219-3.628s-8.123 1.328-10.069 3.628c-.981 1.16-1.015 2.711.686 3.438 2.118.906 4.01-.737 5.705-1.596 2.168-1.098 5.499-.978 7.506 0 1.708.833 3.586 2.502 5.704 1.596 1.701-.727 1.668-2.279.686-3.438"></path></g></g></g>',1),J6=[Q6];function e7(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...J6])}const t7={render:e7},n7={Blank:T6,Prescription01:$6,Round:R6,Wayfarers:G6,Kurt:U6,Prescription02:K6,Sunglasses:t7},a7=e.createStaticVNode('<g id="Clothing/Blazer-+-Shirt" transform="translate(0 170)"><defs><path id="BlazerShirt-path1" d="M133.96.295c36.976 3.03 66.04 34 66.04 71.757V81H0v-8.948C0 33.952 29.592 2.765 67.045.22Q67 .78 67 1.348c0 11.863 14.998 21.48 33.5 21.48S134 13.211 134 1.348q0-.53-.04-1.053"></path></defs><g id="Shirt" transform="translate(32 29)"><mask id="BlazerShirt-mask1" fill="#fff"><use href="#BlazerShirt-path1"></use></mask><use fill="#E6E6E6" class="CustomColor" href="#BlazerShirt-path1"></use><g id="Color/Palette/Black" fill="#262E33" mask="url('#BlazerShirt-mask1')"><path id="Color" d="M0 0h264v110H0z" transform="translate(-32 -29)"></path></g><g id="Shadowy" fill="#000" mask="url('#BlazerShirt-mask1')" opacity=".16"><ellipse id="Hola" cx="40.5" cy="27.848" rx="39.635" ry="26.914" transform="translate(60 -25)"></ellipse></g></g><g id="Blazer" transform="translate(32 28)"><path id="Saco" fill="#3A4C5A" d="M68.785 1.122C30.512 2.804 0 34.365 0 73.052V82h69.362C65.96 69.92 64 55.709 64 40.5c0-14.327 1.74-27.769 4.785-39.378M131.638 82H200v-8.948c0-38.345-29.975-69.69-67.771-71.878C135.265 12.77 137 26.194 137 40.5c0 15.209-1.96 29.42-5.362 41.5"></path><path id="Pocket-hanky" fill="#E6E6E6" d="m149 58 9.556-7.167a4 4 0 0 1 4.856.043L170 56z"></path><path id="Wing" fill="#2F4351" d="M69 0q-6 29 5 82H58L44 46l6-9-6-6L63 1q3.042-.945 6-1"></path><path id="Wing" fill="#2F4351" d="M151 0q-6 29 5 82h-16l-14-36 6-9-6-6 19-30q3.042-.945 6-1" transform="matrix(-1 0 0 1 282 0)"></path></g></g>',1),o7=[a7];function r7(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...o7])}const i7={render:r7},s7=e.createStaticVNode('<g id="Clothing/Blazer-+-Sweater" transform="translate(0 170)"><defs><path id="BlazerSweater-path1" d="M105.192 29.052H104c-39.765 0-72 32.235-72 72V110h200v-8.948c0-39.765-32.235-72-72-72h-1.192q.191 1.475.192 3c0 13.807-12.088 25-27 25s-27-11.193-27-25q0-1.525.192-3"></path></defs><mask id="BlazerSweater-mask1" fill="#fff"><use href="#BlazerSweater-path1"></use></mask><use fill="#E6E6E6" class="CustomColor" href="#BlazerSweater-path1"></use><g id="Color/Palette/Black" fill="#262E33" mask="url('#BlazerSweater-mask1')"><path id="Color" d="M0 0h264v110H0z"></path></g><g id="Blazer" transform="translate(32 28)"><path id="Saco" fill="#3A4C5A" d="M68.785 1.122C30.512 2.804 0 34.365 0 73.052V82h69.362C65.96 69.92 64 55.709 64 40.5c0-14.327 1.74-27.769 4.785-39.378M131.638 82H200v-8.948c0-38.345-29.975-69.69-67.771-71.878C135.265 12.77 137 26.194 137 40.5c0 15.209-1.96 29.42-5.362 41.5"></path><path id="Pocket-hanky" fill="#E6E6E6" d="m149 58 9.556-7.167a4 4 0 0 1 4.856.043L170 56z"></path><path id="Wing" fill="#2F4351" d="M69 0q-6 29 5 82H58L44 46l6-9-6-6L63 1q3.042-.945 6-1"></path><path id="Wing" fill="#2F4351" d="M151 0q-6 29 5 82h-16l-14-36 6-9-6-6 19-30q3.042-.945 6-1" transform="matrix(-1 0 0 1 282 0)"></path></g><path id="Collar" fill="#F2F2F2" d="M156 21.539c6.772 4.597 11 11.117 11 18.349 0 7.4-4.428 14.057-11.48 18.668l-5.94-4.68-4.58.332 1-3.151-.078-.061C152.022 47.853 156 42.7 156 36.876zm-48 0c-6.772 4.597-11 11.117-11 18.349 0 7.4 4.428 14.057 11.48 18.668l5.94-4.68 4.58.332-1-3.151.078-.061C111.978 47.853 108 42.7 108 36.876z"></path></g>',1),l7=[s7];function c7(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...l7])}const d7={render:c7},u7=e.createElementVNode("g",{id:"Clothing/Collar-+-Sweater",transform:"translate(0 170)"},[e.createElementVNode("defs",null,[e.createElementVNode("path",{id:"CollarSweater-path1",d:"M105.192 29.052H104c-39.765 0-72 32.235-72 72V110h200v-8.948c0-39.765-32.235-72-72-72h-1.192q.191 1.475.192 3c0 13.807-12.088 25-27 25s-27-11.193-27-25q0-1.525.192-3"})]),e.createElementVNode("use",{fill:"var(--avataaar-shirt-color)",class:"CustomColor",href:"#CollarSweater-path1"}),e.createElementVNode("path",{id:"Collar",fill:"#F2F2F2",d:"M156 22.28c6.182 4.555 10 10.826 10 17.748 0 7.205-4.137 13.705-10.771 18.3l-5.65-4.452-4.579.332 1-3.151-.078-.061C152.022 47.853 156 42.7 156 36.876zm-48-.709c-6.767 4.603-11 11.169-11 18.457 0 7.398 4.362 14.052 11.308 18.664l6.113-4.816 4.579.332-1-3.151.078-.061C111.978 47.853 108 42.7 108 36.876z"})],-1),m7=[u7];function f7(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...m7])}const h7={render:f7},p7=e.createStaticVNode('<g id="Clothing/Hoodie" transform="translate(0 170)"><defs><path id="Hoodie-path1" d="M108 13.07c-17.919 2.006-31.72 7.482-31.996 21.575C50.146 45.568 32 71.165 32 100.999V110h200v-9c0-29.835-18.146-55.432-44.004-66.355-.276-14.093-14.077-19.57-31.996-21.574V32c0 13.255-10.745 24-24 24s-24-10.745-24-24z"></path></defs><mask id="Hoodie-mask1" fill="#fff"><use href="#Hoodie-path1"></use></mask><use fill="var(--avataaar-shirt-color)" class="CustomColor" href="#Hoodie-path1"></use><path id="Straps" fill="#F4F4F4" d="M102 61.74V110h-7V58.15a65 65 0 0 0 7 3.59m67-3.59V98.5a3.5 3.5 0 1 1-7 0V61.74a65 65 0 0 0 7-3.59" mask="url('#Hoodie-mask1')"></path><path id="Shadow" fill="#000" d="M90.96 12.724C75.91 15.571 65.5 21.243 65.5 32.308 65.5 52.02 98.538 68 132 68s66.5-15.98 66.5-35.692c0-11.065-10.41-16.737-25.46-19.584 9.085 3.35 14.96 8.982 14.96 18.353C188 51.469 160.179 68 132 68S76 51.469 76 31.077c0-9.37 5.875-15.003 14.96-18.353" mask="url('#Hoodie-mask1')" opacity=".16"></path></g>',1),g7=[p7];function y7(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...g7])}const k7={render:y7},x7=e.createElementVNode("g",{id:"Clothing/Graphic-Shirt",transform:"translate(0 170)"},[e.createElementVNode("defs",null,[e.createElementVNode("path",{id:"GraphicShirt-path1",d:"M165.624 29.268C202.76 32.138 232 63.18 232 101.052V110H32v-8.948c0-38.217 29.775-69.48 67.393-71.855A14 14 0 0 0 99 32.5C99 44.374 113.998 54 132.5 54S166 44.374 166 32.5c0-1.098-.128-2.178-.376-3.232"})]),e.createElementVNode("use",{fill:"#E6E6E6",class:"CustomColor",href:"#GraphicShirt-path1"})],-1),b7=[x7];function w7(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...b7])}const E7={render:w7},v7=e.createStaticVNode('<g id="Clothing/Overall" transform="translate(0 170)"><defs><path id="Overall-path1" d="M94 29.688V74h76V29.688a71.5 71.5 0 0 1 26 8.944V110H68V38.632a71.5 71.5 0 0 1 26-8.944"></path></defs><use fill="var(--avataaar-shirt-color)" class="CustomColor" href="#Overall-path1"></use><circle id="Button" cx="81" cy="83" r="5" fill="#F4F4F4"></circle><circle id="Button" cx="183" cy="83" r="5" fill="#F4F4F4"></circle></g>',1),C7=[v7];function S7(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...C7])}const B7={render:S7},V7=e.createStaticVNode('<g id="Clothing/Shirt-Crew-Neck" transform="translate(0 170)"><defs><path id="ShirtCrewNeck-path1" d="M165.96 29.295c36.976 3.03 66.04 34 66.04 71.757V110H32v-8.948c0-38.1 29.592-69.287 67.045-71.832Q99 29.78 99 30.348c0 11.863 14.998 21.48 33.5 21.48s33.5-9.617 33.5-21.48q0-.53-.04-1.053"></path></defs><mask id="ShirtCrewNeck-mask1" fill="#fff"><use href="#ShirtCrewNeck-path1"></use></mask><use fill="var(--avataaar-shirt-color)" class="CustomColor" href="#ShirtCrewNeck-path1"></use><g id="Shadowy" fill="#000" mask="url('#ShirtCrewNeck-mask1')" opacity=".16"><ellipse id="Hola" cx="40.5" cy="27.848" rx="39.635" ry="26.914" transform="translate(92 4)"></ellipse></g></g>',1),M7=[V7];function N7(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...M7])}const A7={render:N7},T7=e.createElementVNode("g",{id:"Clothing/Shirt-V-Neck",transform:"translate(0 170)"},[e.createElementVNode("defs",null,[e.createElementVNode("path",{id:"ShirtVNeck-path1",d:"M171.32 29.936C205.706 35.366 232 65.14 232 101.052V110H32v-8.948c0-35.914 26.294-65.686 60.682-71.116a23.9 23.9 0 0 0 7.554 13.603l29.085 26.229a4 4 0 0 0 5.358 0l29.085-26.229a24 24 0 0 0 1.234-1.196 23.9 23.9 0 0 0 6.322-12.407"})]),e.createElementVNode("use",{fill:"var(--avataaar-shirt-color)",class:"CustomColor",href:"#ShirtVNeck-path1"})],-1),D7=[T7];function L7(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...D7])}const F7={render:L7},$7=e.createElementVNode("g",{id:"Clothing/Shirt-Scoop-Neck",transform:"translate(0 170)"},[e.createElementVNode("defs",null,[e.createElementVNode("path",{id:"ShirtScoopNeck-path1",d:"M181.544 32.33C210.784 41.488 232 68.792 232 101.052V110H32v-8.948c0-32.655 21.739-60.232 51.534-69.05A18 18 0 0 0 83 36.348c0 16.281 22.162 29.48 49.5 29.48S182 52.629 182 36.348c0-1.363-.155-2.704-.456-4.018"})]),e.createElementVNode("use",{fill:"var(--avataaar-shirt-color)",class:"CustomColor",href:"#ShirtScoopNeck-path1"})],-1),_7=[$7];function P7(t,n){return e.openBlock(),e.createElementBlock("svg",null,[..._7])}const O7={render:P7},R7={BlazerShirt:i7,CollarSweater:h7,BlazerSweater:d7,Hoodie:k7,GraphicShirt:E7,Overall:B7,ShirtCrewNeck:A7,ShirtVNeck:F7,ShirtScoopNeck:O7},H7=e.createStaticVNode('<g id="Top"><defs><path id="Eyepatch-path1" d="M0 0h264v280H0z"></path></defs><mask id="Eyepatch-mask1" fill="#fff"><use href="#Eyepatch-path1"></use></mask><g id="Top/Accesories/Eyepatch" mask="url('#Eyepatch-mask1')"><path fill="#28354B" d="M159.395 39.781c-3.077-3.088-6.276 3.858-7.772 5.647-3.61 4.32-7.083 8.755-10.755 13.024-7.252 8.43-14.429 16.922-21.634 25.388-1.094 1.286-.961 1.425-2.397 1.549-.951.082-2.274-.409-3.263-.463-2.75-.151-5.462.309-8.138.897-5.345 1.173-11.01 3.106-15.647 6.075-1.217.78-2.002 1.7-3.322 1.943-1.149.212-2.673-.211-3.845-.322-2.08-.195-5.084-1.046-7.127-.605-2.592.56-3.578 3.697-.935 5.086 2.01 1.056 6.01.476 8.264.645 2.573.192 1.788.06 1.423 2.52-.523 3.533.352 7.481 1.842 10.713 3.46 7.505 13.034 15.457 21.766 14.725 7.287-.61 13.672-7.19 16.664-13.503 1.532-3.231 2.436-6.908 2.731-10.472.189-2.266.084-4.67-.566-6.865-.321-1.085-.83-2.208-1.376-3.193-.442-.799-2.4-2.65-2.52-3.453-.232-1.557 4.185-5.73 5.028-6.773 3.973-4.916 7.964-9.812 11.906-14.755 3.881-4.869 7.784-9.725 11.768-14.51 1.804-2.17 10.828-10.364 7.905-13.298" class="CustomColor"></path></g></g>',1),z7=[H7];function j7(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...z7])}const G7={render:j7},q7=e.createStaticVNode('<g id="Top"><defs><path id="LongHairMiaWallace-path1" d="M0 0h264v280H0z"></path><path id="LongHairMiaWallace-path2" d="M148.86 69q.14 1.982.14 4v38c0 22.34-13.08 41.623-32 50.611v8.706c18.146 1.499 35.721 4.018 46 6.683 9.953-13.56 22.885-26.2 23-51 .085-18.985-27.676-95.572-40-111-8.138-10.188-28.695-13.55-53-14S48.923 6.509 41 16C30.319 28.795-.085 107.015 0 126c.116 24.8 13.048 37.44 23 51 10.279-2.665 27.854-5.184 46-6.683v-8.706C50.08 152.623 37 133.339 37 111V73q0-2.018.14-4h28.234l3.879-21.444L72.058 69h76.801Z"></path></defs><mask id="LongHairMiaWallace-mask1" fill="#fff"><use href="#LongHairMiaWallace-path1"></use></mask><g id="Top/Long-Hair/Mia-Wallace" mask="url('#LongHairMiaWallace-mask1')"><g transform="translate(-1)"><path id="Shadow" fill="#000" d="M69.033 76.213q19.407-49.626 41.025-49.626c.539 0 29.253-.238 48.055-.36C178.767 35.585 193 55.304 193 78.115V93h-82.942l-2.805-23.18-3.88 23.18H69V78.115q0-.955.033-1.902" opacity=".16"></path><use id="Hair" fill="var(--avataaar-hair-color)" class="CustomColor" href="#LongHairMiaWallace-path2" transform="translate(40 19)"></use></g></g></g>',1),I7=[q7];function W7(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...I7])}const U7={render:W7},Z7=e.createStaticVNode('<g id="Top"><defs><path id="ShortHairShortCurly-path2" d="M0 0h264v280H0z"></path><path id="ShortHairShortCurly-path1" d="M94.252 52.022q.185-.081-.916-.062 1.338-.003.916.062m-8.135-15.72c-.002-.02.017.15 0 0m107.648 34.464c-.264-3.317-.732-6.614-1.518-9.855-.625-2.576-1.478-5.033-2.487-7.491-.61-1.485-2.032-3.524-2.2-5.126-.165-1.577 1.067-3.325 1.33-5.162a16 16 0 0 0-.156-5.438c-.833-4.023-3.594-7.764-7.857-8.813-.952-.234-2.964.055-3.636-.5-.771-.635-1.308-2.8-2.006-3.669-1.99-2.476-5.095-4.07-8.37-3.514-2.41.409-1.026.907-2.833-.512-1.005-.788-1.756-1.993-2.732-2.847-1.467-1.283-3.15-2.38-4.892-3.282-4.557-2.358-9.754-4.072-14.844-4.908-9.285-1.524-19.195-.195-28.195 2.22-4.479 1.201-8.987 2.726-13.147 4.743-1.783.864-2.813 1.582-4.673 1.808-2.928.357-5.409.339-8.183 1.581-8.536 3.822-12.381 12.689-9.06 21.174a14.6 14.6 0 0 0 2.82 4.584c1.521 1.68 2.072 1.35.762 3.282a53 53 0 0 0-4.955 9.172c-3.529 8.402-4.12 17.864-3.89 26.824.081 3.137.216 6.313.71 9.42.214 1.344.274 3.872 1.282 4.87.512.506 1.241.788 1.969.587 1.71-.474 1.121-1.735 1.161-2.906.2-5.884-.07-11.089 1.33-16.902 1.033-4.294 2.755-8.195 4.988-12.035 2.838-4.884 5.903-9.173 9.807-13.355.917-.984 1.118-1.4 2.349-1.472.932-.054 2.295.584 3.2.805 1.999.487 4 .968 6.034 1.296 3.74.603 7.444.644 11.217.525 7.426-.232 14.885-.753 22.085-2.623 4.782-1.242 9.022-3.47 13.602-5.105.082-.029 1.23-.847 1.43-.814.282.047 1.978 1.826 2.264 2.05 2.226 1.746 4.667 2.479 7.07 3.83 2.964 1.667.094-.718 1.728 1.359.477.605.72 1.726 1.103 2.411a18.1 18.1 0 0 0 4.93 5.624c1.956 1.47 4.894 2.18 5.891 4.095.769 1.477 1.028 3.484 1.648 5.06 1.628 4.136 3.777 7.992 5.926 11.887 1.732 3.14 3.625 5.881 3.818 9.468.067 1.248-1.121 8.737 1.773 6.46.429-.338 1.353-4.156 1.543-4.804.772-2.633 1.046-5.381 1.395-8.086.694-5.38.923-10.498.47-15.916"></path></defs><mask id="ShortHairShortCurly-mask2" fill="#fff"><use href="#ShortHairShortCurly-path2"></use></mask><g id="Top/Short-Hair/Short-Curly" mask="url('#ShortHairShortCurly-mask2')"><use fill="var(--avataaar-hair-color)" class="CustomColor" href="#ShortHairShortCurly-path1" transform="translate(-1)"></use></g></g>',1),Y7=[Z7];function X7(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...Y7])}const K7={render:X7},Q7=e.createStaticVNode('<g id="Top"><defs><path id="Hat-path2" d="M0 0h264v280H0z"></path><path id="Hat-path1" d="M156 180.611c17.53-8.328 30.048-25.496 31.791-45.744C193.57 134.002 198 129.02 198 123v-13c0-5.946-4.325-10.882-10-11.834V92a55.8 55.8 0 0 0-4.638-22.35C173.435 53 89.312 53.802 80.71 69.484A55.8 55.8 0 0 0 76 92v6.166c-5.675.952-10 5.888-10 11.834v13c0 6.019 4.43 11.002 10.209 11.867 1.743 20.248 14.26 37.416 31.791 45.744V199h-4c-39.765 0-72 32.235-72 72v9h200v-9c0-39.765-32.235-72-72-72h-4zM0 0h264v280H0z"></path></defs><mask id="Hat-mask1" fill="#fff"><use href="#Hat-path2"></use></mask><g id="Top/Accesories/Hat" mask="url('#Hat-mask1')"><g transform="translate(-1)"><g id="Hat" transform="translate(1)"><mask id="Hat-mask2" fill="#fff"><use href="#Hat-path1"></use></mask><path fill="var(--avataaar-top-color)" d="M123.182 2h18.636c18.791 0 35.049 13.08 39.072 31.436L190 75H75l9.11-41.564C88.133 15.08 104.39 2 123.182 2" mask="url('#Hat-mask2')" style="fill-opacity:.6;"></path><ellipse id="Hipster" cx="132" cy="87.5" fill="var(--avataaar-top-color)" mask="url('#Hat-mask2')" rx="122" ry="57.5"></ellipse><ellipse id="Hipster" cx="132" cy="87.5" fill="#2e2e2e" mask="url('#Hat-mask2')" rx="122" ry="57.5" style="fill-opacity:.1;"></ellipse><ellipse id="Very" cx="132" cy="82" fill="var(--avataaar-top-color)" mask="url('#Hat-mask2')" rx="62" ry="25"></ellipse><ellipse id="Very" cx="132" cy="82" fill="#2e2e2e" mask="url('#Hat-mask2')" rx="62" ry="25" style="fill-opacity:.5;"></ellipse></g></g></g></g>',1),J7=[Q7];function e8(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...J7])}const t8={render:e8},n8=e.createStaticVNode('<g id="Top"><defs><path id="LongHairNotTooLong-path1" d="M0 0h264v280H0z"></path><path id="LongHairNotTooLong-path2" d="M59 102.34V182a8 8 0 0 0 8 8h42v-9.389c-17.53-8.328-30.048-25.496-31.791-45.744C71.43 134.002 67 129.02 67 123v-13c0-3.49 1.49-6.633 3.87-8.826 11.539-2.619 24.1-7.536 36.472-14.679 12.131-7.004 22.502-15.237 30.479-23.743q-5.14 11.862-12.449 20.783 19.013-8.285 25.892-26.639.565 1.383 1.18 2.762c10.256 23.035 27.874 39.36 45.762 44.745.513 2.11.794 4.08.794 5.597v13c0 6.019-4.43 11.002-10.209 11.867-1.743 20.248-14.26 37.416-31.791 45.744V190h18c17.673 0 32-14.327 32-32v-54.125q0-.1-.028-.26-.216-18.391-.612-21.39C201.577 45.977 170.556 18 133 18c-36.085 0-66.137 25.828-73 60-5.523 0-10 5.596-10 12.5 0 4.55 1.695 8.643 4.853 10.773.905.61 2.47.925 4.147 1.067"></path></defs><mask id="LongHairNotTooLong-mask1" fill="#fff"><use href="#LongHairNotTooLong-path1"></use></mask><g id="Top/Long-Hair/Long-but-not-too-long" mask="url('#LongHairNotTooLong-mask1')"><g transform="translate(-1)"><use id="Behind" fill="var(--avataaar-hair-color)" class="CustomColor" href="#LongHairNotTooLong-path2"></use><g id="Top" opacity=".16" transform="translate(50 18)"><path id="Combined-Shape" fill="#FFF" d="M11.899 84.775c13.812-1.76 29.78-7.237 45.443-16.28 12.131-7.004 22.502-15.237 30.479-23.743q-5.14 11.862-12.449 20.783 19.013-8.285 25.892-26.639.565 1.383 1.18 2.762C114.382 68.471 136.296 86.194 157 88.151V74c0-40.87-33.13-74-74-74-36.085 0-66.137 25.828-72.679 60.006A8 8 0 0 0 10 60C4.477 60 0 65.596 0 72.5c0 6.482 3.947 11.811 9 12.438v.155q.474-.044.953-.093a8.2 8.2 0 0 0 1.946-.225"></path></g></g></g></g>',1),a8=[n8];function o8(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...a8])}const r8={render:o8},i8=e.createStaticVNode('<g id="Top"><defs><path id="ShortHairShortFlat-path2" d="M0 0h264v280H0z"></path><path id="ShortHairShortFlat-path1" d="M180.15 39.92c-2.76-2.82-5.964-5.213-9.08-7.613-.688-.53-1.387-1.046-2.06-1.595-.152-.125-1.718-1.246-1.905-1.659-.451-.993-.19-.22-.128-1.404.079-1.498 3.134-5.73.854-6.7-1.003-.427-2.791.709-3.753 1.084a60 60 0 0 1-5.731 1.9c.932-1.857 2.708-5.574-.631-4.579-2.602.775-5.026 2.768-7.64 3.705.865-1.417 4.324-5.811 1.198-6.057-.972-.076-3.803 1.748-4.85 2.138-3.137 1.165-6.34 1.92-9.634 2.513-11.198 2.018-24.293 1.442-34.653 6.54-7.988 3.93-15.874 10.029-20.489 17.795-4.447 7.485-6.11 15.676-7.041 24.253-.683 6.295-.739 12.802-.42 19.119.105 2.07.338 11.61 3.345 8.721 1.498-1.44 1.487-7.253 1.864-9.22.751-3.916 1.474-7.848 2.726-11.638 2.206-6.68 4.809-13.793 10.305-18.393 3.527-2.952 6.004-6.941 9.379-9.919 1.516-1.337.36-1.198 2.797-1.022 1.638.117 3.282.162 4.923.205 3.796.099 7.598.074 11.395.087 7.647.028 15.258.136 22.898-.265 3.395-.177 6.799-.274 10.185-.588 1.891-.175 5.247-1.387 6.804-.461 1.425.847 2.905 3.615 3.928 4.748 2.418 2.679 5.3 4.724 8.126 6.92 5.895 4.58 8.87 10.332 10.66 17.488 1.784 7.13 1.284 13.745 3.491 20.762.389 1.233 1.416 3.36 2.682 1.454.235-.354.175-2.3.175-3.42 0-4.52 1.144-7.91 1.13-12.46-.056-13.832-.504-31.868-10.85-42.439"></path></defs><mask id="ShortHairShortFlat-mask2" fill="#fff"><use href="#ShortHairShortFlat-path2"></use></mask><g id="Top/Short-Hair/Short-Flat" mask="url('#ShortHairShortFlat-mask2')"><use fill="var(--avataaar-hair-color)" class="CustomColor" href="#ShortHairShortFlat-path1" transform="translate(-1)"></use></g></g>',1),s8=[i8];function l8(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...s8])}const c8={render:l8},d8=e.createStaticVNode('<g id="Top"><defs><path id="Hijab-path1" d="M0 0h264v280H0z"></path><path id="Hijab-path2" d="M66.042 77.075C71.68 45.205 99.513 21 133 21c37.555 0 68 30.445 68 68v30.751q1.313 14.705 2.456 20.603c1.377 7.104 5.694 4.761 5.694 14.866s-4.328 13.5-4.347 22.485c-.019 8.986 15.397 16.131 15.397 27.538s-7.074 65.233-77.622 65.233q-22.605 0-38.51-12.862Q105.091 267.349 106 280H59c.932-23.771-7.284-37.064-7.284-63.554S65.353 151.428 65 142q.03-.873.062-2.068A69 69 0 0 1 65 137V89c0-3.976.341-7.872.996-11.661L66 77zM132.5 53C102.4 53 78 77.4 78 107.5v23c0 30.1 24.4 54.5 54.5 54.5h1c30.1 0 54.5-24.4 54.5-54.5v-23c0-30.1-24.4-54.5-54.5-54.5z"></path></defs><mask id="Hijab-mask1" fill="#fff"><use href="#Hijab-path1"></use></mask><g id="Top/Accesories/Hijab" mask="url('#Hijab-mask1')"><g transform="translate(-1)"><mask id="Hijab-mask2" fill="#fff"><use href="#Hijab-path2"></use></mask><use fill="var(--avataaar-top-color)" class="CustomColor" href="#Hijab-path2"></use><path id="Band" fill="#FFF" stroke="none" d="M72.074 104.96A61.4 61.4 0 0 1 71 93.5C71 59.534 98.758 32 133 32s62 27.534 62 61.5c0 3.916-.369 7.747-1.074 11.46C192.34 72.683 165.67 47 133 47s-59.341 25.683-60.926 57.96" mask="url('#Hijab-mask2')" opacity=".5"></path><path id="Shadows" fill="#000" stroke="none" d="M187.93 104.695A55 55 0 0 1 189 115.5v23c0 30.1-24.4 54.5-54.5 54.5h-3c-30.1 0-54.5-24.4-54.5-54.5v-23c0-3.7.369-7.312 1.07-10.805Q78 106.089 78 107.5v23c0 30.1 24.4 54.5 54.5 54.5h1c30.1 0 54.5-24.4 54.5-54.5v-23q0-1.41-.07-2.805m-73.763 102.3c6.484 4.986 21.496 6.713 38.238 3.761 16.74-2.951 30.257-9.71 34.645-16.612q.102.379.171.767c1.71 9.695-13.236 20.434-33.38 23.987-20.146 3.552-37.863-1.428-39.573-11.123a9 9 0 0 1-.101-.78m11.868 28.926c8.192 5.654 24.387 5.923 41.069-.149s28.915-16.687 31.556-26.284q.215.48.396.98c4.527 12.436-8.077 28.441-28.151 35.748s-40.017 3.147-44.544-9.29q-.181-.498-.326-1.005" mask="url('#Hijab-mask2')" opacity=".16"></path></g></g></g>',1),u8=[d8];function m8(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...u8])}const f8={render:m8},h8=e.createStaticVNode('<g id="Top"><defs><path id="LongHairShavedSides-path2" d="M0 0h264v280H0z"></path><path id="LongHairShavedSides-path3" d="M156 180.611c17.53-8.328 30.048-25.496 31.791-45.744C193.57 134.002 198 129.02 198 123v-13c0-5.946-4.325-10.882-10-11.834V92c0-30.928-25.072-56-56-56S76 61.072 76 92v6.166c-5.675.952-10 5.888-10 11.834v13c0 6.019 4.43 11.002 10.209 11.867 1.743 20.248 14.26 37.416 31.791 45.744V199h-4c-39.765 0-72 32.235-72 72v9h200v-9c0-39.765-32.235-72-72-72h-4zM0 0h264v280H0z"></path><path id="LongHairShavedSides-path1" d="M65.18 77.737c2.183-1.632 15.227-2.258 17.578-3.648.734-.434 1.303-.873 1.742-1.309.439.436 1.009.875 1.742 1.31 2.351 1.389 15.395 2.015 17.578 3.647 2.21 1.654 3.824 5.448 3.647 8.414-.212 3.56-4.106 12.052-13.795 13.03-2.114-2.353-5.435-3.87-9.172-3.87s-7.058 1.517-9.172 3.87c-9.69-.978-13.583-9.47-13.795-13.03-.176-2.966 1.437-6.76 3.647-8.414m.665 17.164.017.007zm79.018-38.916c-.389-5.955-1.585-11.833-2.629-17.699-.281-1.579-1.81-12.286-2.5-12.286-.232 9.11-1.032 18.08-2.064 27.14-.309 2.708-.632 5.416-.845 8.134-.171 2.196.135 4.848-.397 6.972-.679 2.706-4.08 5.232-6.725 6.165-6.6 2.326-12.105-7.303-17.742-10.12-7.318-3.656-19.897-4.527-27.38.239-7.645-4.766-20.224-3.895-27.542-.239-5.637 2.817-11.142 12.446-17.742 10.12-2.645-.933-6.047-3.459-6.725-6.165-.532-2.124-.226-4.776-.397-6.972-.213-2.718-.536-5.426-.845-8.135C30.298 44.08 29.497 35.11 29.265 26c-.689 0-2.218 10.707-2.5 12.286-1.043 5.866-2.24 11.744-2.627 17.7-.4 6.119.077 12.181 1.332 18.177a165 165 0 0 0 2.049 8.541c.834 3.143-.32 9.262.053 12.488.707 6.104 3.582 18.008 6.811 23.259 1.561 2.538 3.39 4.123 5.433 6.168 1.967 1.97 2.788 5.021 4.91 7.118 3.956 3.908 9.72 6.234 15.64 6.806C65.677 143.05 74.506 146 84.5 146s18.823-2.95 24.135-7.457c5.919-.572 11.683-2.898 15.64-6.806 2.121-2.097 2.942-5.149 4.909-7.118 2.042-2.045 3.872-3.63 5.433-6.168 3.229-5.251 6.104-17.155 6.81-23.259.374-3.226-.78-9.345.054-12.488.75-2.828 1.45-5.676 2.05-8.54 1.254-5.997 1.73-12.06 1.332-18.179"></path><rect id="LongHairShavedSides-path4" width="112" height="150" x="0" y="0" rx="56"></rect></defs><mask id="LongHairShavedSides-mask2" fill="#fff"><use href="#LongHairShavedSides-path2"></use></mask><g id="Top/Long-Hair/Shaved-Sides" mask="url('#LongHairShavedSides-mask2')"><g transform="translate(-1)"><g id="Behind" fill="none" transform="translate(1)"><mask id="LongHairShavedSides-mask3" fill="#fff"><use href="#LongHairShavedSides-path3"></use></mask><path fill="var(--avataaar-hair-color)" d="M116.18 40H146c25.405 0 46 20.595 46 46v68.109c0 26.541 18.759 50.24 30.61 71.943s-7.355 42.19-26.84 50.717A38.5 38.5 0 0 1 180.332 280h-45.068c-56.352 0-65.046-63.69-67.566-133.496l2.52-62.36C71.213 59.48 91.497 40 116.179 40Z" class="CustomColor" mask="url('#LongHairShavedSides-mask3')"></path></g><g id="Top" fill="none" transform="translate(77 36)"><mask id="LongHairShavedSides-mask1" fill="#fff"><use href="#LongHairShavedSides-path4"></use></mask><path id="Shadow" fill="#000" d="M98.801 19.94C107.027 29.484 112 41.91 112 55.5v10-4c0-15.74-6.672-29.92-17.342-39.87q-46.107 16.57-77.717.378C6.505 31.937 0 45.958 0 61.5v4-10c0-13.607 4.987-26.05 13.233-35.6-3.834-3.04-4.974-11.713 6.234-15.023 11.845-3.499 9.84-18.079 27.99-20.803C65.61-18.65 63.972-11.375 81.03-12.35c17.057-.974 22.607-16.763 25.82-12.724 12.74 16.01 9.572 34.414-8.048 45.014Z" mask="url('#LongHairShavedSides-mask1')" opacity=".16"></path></g><path fill="#E0C863" d="M90.878 52.361q33.225 19.299 83.366 0c14.53-7.772 25.087-23.319 8.707-43.398-2.169-2.658-10.707 6.713-27.6 7.687s-13.271-3.3-31.248-.576-15.991 17.304-27.722 20.803c-11.73 3.498-9.803 12.987-5.503 15.484" class="CustomColor"></path></g></g></g>',1),p8=[h8];function g8(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...p8])}const y8={render:g8},k8=e.createStaticVNode('<g id="Top"><defs><path id="ShortHairShortRound-path2" d="M0 0h264v280H0z"></path><path id="ShortHairShortRound-path1" d="M167.309 35.006c-20.188-11.7-40.18-9.784-55.272-5.976s-24.02 14.621-31.68 30.618c-3.761 7.855-5.991 17.143-6.334 25.833-.135 3.412.325 6.934 1.245 10.22.337 1.205 2.155 5.386 2.654 2.008.167-1.125-.442-2.676-.5-3.871-.078-1.569.005-3.157.112-4.723.2-2.928.722-5.8 1.65-8.59 1.328-3.988 3.017-8.312 5.603-11.677 6.401-8.327 17.482-8.802 26.28-13.384-.764 1.405-3.707 3.68-2.688 5.263.705 1.094 3.37.762 4.643.727 3.349-.092 6.713-.674 10.02-1.147 5.214-.745 10.099-2.255 15.005-4.089 4.016-1.502 8.603-2.892 11.622-6.078 4.87 5.048 11.14 9.795 17.401 13.003 5.618 2.88 14.679 4.318 18.113 10.158 4.065 6.914 2.195 15.406 3.436 22.9.472 2.85 1.545 2.786 2.132.237.997-4.33 1.468-8.828 1.151-13.279-.718-10.048-4.405-36.453-24.593-48.153"></path></defs><mask id="ShortHairShortRound-mask2" fill="#fff"><use href="#ShortHairShortRound-path2"></use></mask><g id="Top/Short-Hair/Short-Round" mask="url('#ShortHairShortRound-mask2')"><use fill="var(--avataaar-hair-color)" class="CustomColor" href="#ShortHairShortRound-path1" transform="translate(-1)"></use></g></g>',1),x8=[k8];function b8(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...x8])}const w8={render:b8},E8=e.createStaticVNode('<g id="Top"><defs><path id="LongHairBigHair-path1" d="M0 0h264v280H0z"></path><path id="LongHairBigHair-path2" d="M222.385 182.806c-5.374 5.712-10.737 9.322-10.554 15.194.317 11.889 43.608 47.051 5.169 69H16.005c-38.439-21.949 4.852-57.111 5.17-69 .182-5.872-5.18-9.482-10.555-15.194C5.247 177.094-.137 169.28.003 155c.941-29.028 31.369-26.412 31.2-46 .169-19-11.39-26.84 0-63C42.84 9.54 72.917.768 116.003.016V0l.5.008.5-.008v.016c43.086.752 73.163 9.523 84.8 45.984 11.388 36.16-.17 44 0 63-.17 19.588 30.258 16.972 31.2 46 .14 14.28-5.245 22.094-10.618 27.806m-39.501-87.481c-21.52-11.588-39.994-28.18-52.038-47.023C112.764 73.924 76.53 78.535 51.224 94.68A12 12 0 0 0 51 97v13c0 6.019 4.43 11.002 10.209 11.867 1.743 20.248 14.26 37.416 31.791 45.744V186h-4c-39.765 0-72 32.235-72 72v9h200v-9c0-39.765-32.235-72-72-72h-4v-18.389c17.53-8.328 30.048-25.496 31.791-45.744C178.57 121.002 183 116.02 183 110V97q-.001-.853-.116-1.675"></path><path id="LongHairBigHair-path3" d="M222.385 182.806c-5.374 5.712-10.737 9.322-10.554 15.194.317 11.889 43.608 47.051 5.169 69H16.005c-38.439-21.949 4.852-57.111 5.17-69 .182-5.872-5.18-9.482-10.555-15.194C5.247 177.094-.137 169.28.003 155c.941-29.028 31.369-26.412 31.2-46 .169-19-11.39-26.84 0-63C42.84 9.54 72.917.768 116.003.016V0l.5.008.5-.008v.016c43.086.752 73.163 9.523 84.8 45.984 11.388 36.16-.17 44 0 63-.17 19.588 30.258 16.972 31.2 46 .14 14.28-5.245 22.094-10.618 27.806M93 186h-4c-39.765 0-72 32.235-72 72v9h200v-9c0-39.765-32.235-72-72-72h-4v-46H93z"></path></defs><mask id="LongHairBigHair-mask2" fill="#fff"><use href="#LongHairBigHair-path1"></use></mask><g id="Top/Long-Hair/Big-Hair" mask="url('#LongHairBigHair-mask2')"><g transform="translate(-1)"><use id="Hair" fill="var(--avataaar-hair-color)" class="CustomColor" href="#LongHairBigHair-path2" transform="translate(16 13)"></use><g id="Shadow" fill="none" transform="translate(16 13)"><mask id="LongHairBigHair-mask1" fill="#fff"><use href="#LongHairBigHair-path3"></use></mask><path id="Shadow-Mask" fill="#000" d="M30.099 115.057c-2.374 3.026-5.57 7.471-5.737 7.137 1.873-2.383 3.013-5.182 2.979-8.758.177-18.101-11.904-25.569 0-60.017.669-1.91 1.766-3.715 3.245-5.414-10.343 34.454.783 42.35.617 60.995.02 2.295-.38 4.285-1.104 6.057m172.32-67.052c1.48 1.7 2.577 3.504 3.245 5.414 10.158 29.394 2.852 39.144.6 52.617-.3.805-.069 1.754-.384 2.567-30.673-10.458-58.29-30.043-74.385-52.991-22.784 29.424-73.14 29.761-97.821 55.324.387-.544.754-1.051 1.084-1.49 22.536-29.919 73.489-29.122 96.088-61.144 15.398 24.088 41.818 44.648 71.163 55.625.301-.854.08-1.85.367-2.694 2.108-13.833 8.84-23.926.043-53.228" mask="url('#LongHairBigHair-mask1')" opacity=".16"></path></g><path id="Light" fill="#FFF" d="M50.758 122.446c22.536-29.919 73.489-29.122 96.088-61.144 15.398 24.088 41.818 44.648 71.163 55.625.301-.854.08-1.85.367-2.694 2.155-14.144 9.144-24.378-.573-55.233-11.637-36.46-41.714-45.232-84.8-45.984l-1-.016c-43.086.768-73.163 9.54-84.8 46-11.39 36.16.169 44 0 63 .032 3.753-1.059 6.691-2.85 9.193.183.402 4.153-5.756 6.405-8.747" opacity=".1"></path></g></g></g>',1),v8=[E8];function C8(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...v8])}const S8={render:C8},B8=e.createStaticVNode('<g id="Top"><defs><path id="LongHairStraight-path1" d="M0 0h264v280H0z"></path><path id="LongHairStraight-path2" d="M133.506 81.335A12 12 0 0 1 140 92v13c0 6.019-4.43 11.002-10.209 11.867-1.743 20.248-14.26 37.416-31.791 45.744V181h4c17.49 0 33.525 6.237 46 16.608V74c0-20.435-8.283-38.935-21.674-52.326S94.435 0 74 0C33.13 0 0 33.13 0 74v183.716c13.57-1.94 24-13.61 24-27.716v-45.577A72 72 0 0 1 46 181h4v-18.389a56.23 56.23 0 0 1-26-25.365v-61.98c9.147-2.975 18.778-7.249 28.342-12.77 15.403-8.894 28.09-19.555 36.724-30.099a87 87 0 0 0 7.044 15.488c8.768 15.186 21.114 26.349 33.89 32.032v.249q.6.1 1.18.26 1.162.484 2.326.91Z"></path></defs><mask id="LongHairStraight-mask1" fill="#fff"><use href="#LongHairStraight-path1"></use></mask><g id="Top/Long-Hair/Straight" mask="url('#LongHairStraight-mask1')"><g transform="translate(-1)"><use id="Hair" fill="var(--avataaar-hair-color)" class="CustomColor" href="#LongHairStraight-path2" transform="translate(59 18)"></use><path id="Shadow" fill="#000" d="M192.506 99.335c4.869 1.773 9.757 2.737 14.494 2.813V92c0-20.435-8.283-38.935-21.674-52.326C198.717 53.065 207 71.565 207 92v123.608C194.525 205.237 178.49 199 161 199h-4v-18.389c17.53-8.328 30.048-25.496 31.791-45.744C194.57 134.002 199 129.02 199 123v-13a12 12 0 0 0-6.494-10.665m-2.326-.91a12 12 0 0 0-1.18-.26v-.248q.59.262 1.18.509ZM83 155.246a56.23 56.23 0 0 0 26 25.366V199h-4c-7.673 0-15.065 1.2-22 3.423z" opacity=".24"></path></g></g></g>',1),V8=[B8];function M8(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...V8])}const N8={render:M8},A8=e.createStaticVNode('<g id="Top"><defs><path id="ShortHairShortWaved-path2" d="M0 0h264v280H0z"></path><path id="ShortHairShortWaved-path1" d="M183.68 38.949c5.406-4.95 6.707-14.987 3.638-21.5-3.769-7.995-11.417-8.997-18.746-5.48-6.908 3.315-13.057 4.419-20.622 2.813-7.258-1.541-14.144-4.26-21.647-4.706-12.325-.733-24.3 3.839-32.7 13.053-1.603 1.758-2.894 3.768-4.115 5.805-.976 1.63-2.077 3.38-2.493 5.258-.198.894.17 3.098-.275 3.83-.48.79-2.296 1.515-3.069 2.102-1.567 1.189-2.924 2.53-4.18 4.047-2.666 3.222-4.133 6.587-5.368 10.572-4.102 13.245-4.45 28.998.854 42.004.707 1.734 2.898 5.352 4.186 1.638.255-.734-.334-3.194-.333-3.935.005-2.72 1.506-20.729 8.047-30.817 2.13-3.284 11.973-15.58 13.984-15.68 1.065 1.693 11.88 12.51 39.942 11.242 12.662-.572 22.4-6.26 24.738-8.727 1.028 5.533 12.992 13.816 14.815 17.224 5.267 9.846 6.435 30.304 8.445 30.265s3.453-5.237 3.867-6.23c3.072-7.375 3.595-16.632 3.267-24.559-.427-10.202-4.638-21.226-12.235-28.22Z"></path></defs><mask id="ShortHairShortWaved-mask2" fill="#fff"><use href="#ShortHairShortWaved-path2"></use></mask><g id="Top/Short-Hair/Short-Waved" mask="url('#ShortHairShortWaved-mask2')"><use fill="var(--avataaar-hair-color)" class="CustomColor" href="#ShortHairShortWaved-path1" transform="translate(-1)"></use></g></g>',1),T8=[A8];function D8(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...T8])}const L8={render:D8},F8=e.createStaticVNode('<g id="Top"><defs><path id="LongHairBob-path1" d="M0 0h264v280H0z"></path><path id="LongHairBob-path2" d="M38 79.36V111c0 22.34 13.08 41.623 32 50.611v13.135c-19.637 2.688-35.359 7.418-46.615 6.254C9.162 179.53 1.496 150.796 1 126 .383 95.164 29.319 30.795 40 18 47.923 8.509 69.695.55 94 1s46.862 5.812 55 16c12.324 15.428 37.869 74.079 38 109 .094 24.8-9.537 49.66-23 51-11.08 1.103-26.524-1.489-46-3.003v-12.386c18.92-8.988 32-28.272 32-50.611V82.988q-14.282-7.286-25.846-17.647 4.812 7.944 10.46 13.532-40.526-11.37-64.473-38.528Q58.169 65.042 38 79.36"></path></defs><mask id="LongHairBob-mask1" fill="#fff"><use href="#LongHairBob-path1"></use></mask><g id="Top/Long-Hair/Bob" mask="url('#LongHairBob-mask1')"><g transform="translate(-1)"><use id="Hair" fill="var(--avataaar-hair-color)" class="CustomColor" href="#LongHairBob-path2" transform="translate(39 19)"></use></g></g></g>',1),$8=[F8];function _8(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...$8])}const P8={render:_8},O8=e.createStaticVNode('<g id="Top"><defs><path id="LongHairStraight2-path1" d="M0 0h264v280H0z"></path><path id="LongHairStraight2-path2" d="M21 157.54V69.047c0-3.532.398-6.971 1.152-10.275C25.205 38.731 36.775 22.811 50 13c19.905-14.76 53.442-19.018 65.047-1.478C123.698 7.681 136.52 11.182 146 20c9.565 9.415 17.2 30.197 12.657 47.204q.158 1.898.158 3.837v21.851A12.01 12.01 0 0 0 149 83.166V83c-6.036-21.536-23.77-31.42-34.57-41.223C97.535 60.673 44.823 60.74 27 98v10c0 6.019 4.43 11.002 10.209 11.867 1.743 20.248 14.26 37.416 31.791 45.744V166c2.93 43.855-6.642 98.797-69 82 13.606-7.962 20.808-58.944 21-90.46m96 8.071c17.53-8.328 30.048-25.496 31.791-45.744a12.01 12.01 0 0 0 10.024-9.76v1.363a100 100 0 0 0 10.963 45.524l26.949 52.707c6.963 13.619 4.919 29.473-3.936 40.768C189.966 213.289 158.903 184 121 184h-4z"></path><path id="LongHairStraight2-path3" d="M65.18 77.737c2.183-1.632 15.227-2.258 17.578-3.648.734-.434 1.303-.873 1.742-1.309.439.436 1.009.875 1.742 1.31 2.351 1.389 15.395 2.015 17.578 3.647 2.21 1.654 3.824 5.448 3.647 8.414-.212 3.56-4.106 12.052-13.795 13.03-2.114-2.353-5.435-3.87-9.172-3.87s-7.058 1.517-9.172 3.87c-9.69-.978-13.583-9.47-13.795-13.03-.176-2.966 1.437-6.76 3.647-8.414m.665 17.164.017.007zm79.018-38.916c-.389-5.955-1.585-11.833-2.629-17.699-.281-1.579-1.81-12.286-2.5-12.286-.232 9.11-1.032 18.08-2.064 27.14-.309 2.708-.632 5.416-.845 8.134-.171 2.196.135 4.848-.397 6.972-.679 2.706-4.08 5.232-6.725 6.165-6.6 2.326-12.105-7.303-17.742-10.12-7.318-3.656-19.897-4.527-27.38.239-7.645-4.766-20.224-3.895-27.542-.239-5.637 2.817-11.142 12.446-17.742 10.12-2.645-.933-6.047-3.459-6.725-6.165-.532-2.124-.226-4.776-.397-6.972-.213-2.718-.536-5.426-.845-8.135C30.298 44.08 29.497 35.11 29.265 26c-.689 0-2.218 10.707-2.5 12.286-1.043 5.866-2.24 11.744-2.627 17.7-.4 6.119.077 12.181 1.332 18.177a165 165 0 0 0 2.049 8.541c.834 3.143-.32 9.262.053 12.488.707 6.104 3.582 18.008 6.811 23.259 1.561 2.538 3.39 4.123 5.433 6.168 1.967 1.97 2.788 5.021 4.91 7.118 3.956 3.908 9.72 6.234 15.64 6.806C65.677 143.05 74.506 146 84.5 146s18.823-2.95 24.135-7.457c5.919-.572 11.683-2.898 15.64-6.806 2.121-2.097 2.942-5.149 4.909-7.118 2.042-2.045 3.872-3.63 5.433-6.168 3.229-5.251 6.104-17.155 6.81-23.259.374-3.226-.78-9.345.054-12.488.75-2.828 1.45-5.676 2.05-8.54 1.254-5.997 1.73-12.06 1.332-18.179"></path></defs><mask id="LongHairStraight2-mask1" fill="#fff"><use href="#LongHairStraight2-path1"></use></mask><g id="Top/Long-Hair/Straight" mask="url('#LongHairStraight2-mask1')"><g transform="translate(-1)"><use id="Hair" fill="var(--avataaar-hair-color)" class="CustomColor" href="#LongHairStraight2-path2" transform="translate(40 15)"></use><path id="Shadow" fill="#000" d="M67 113c17.823-32.335 70.535-32.393 87.43-48.792 10.778 8.49 28.462 15.059 34.533 33.66-6.071-21.444-23.755-31.308-34.533-41.09C137.535 75.672 84.823 75.74 67 113" opacity=".16"></path></g></g></g>',1),R8=[O8];function H8(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...R8])}const z8={render:H8},j8=e.createStaticVNode('<g id="Top"><defs><path id="ShortHairSides-path1" d="M0 0h264v280H0z"></path><path id="ShortHairSides-path2" d="M65.18 77.737c2.183-1.632 15.227-2.258 17.578-3.648.734-.434 1.303-.873 1.742-1.309.439.436 1.009.875 1.742 1.31 2.351 1.389 15.395 2.015 17.578 3.647 2.21 1.654 3.824 5.448 3.647 8.414-.212 3.56-4.106 12.052-13.795 13.03-2.114-2.353-5.435-3.87-9.172-3.87s-7.058 1.517-9.172 3.87c-9.69-.978-13.583-9.47-13.795-13.03-.176-2.966 1.437-6.76 3.647-8.414m.665 17.164.017.007zm79.018-38.916c-.389-5.955-1.585-11.833-2.629-17.699-.281-1.579-1.81-12.286-2.5-12.286-.232 9.11-1.032 18.08-2.064 27.14-.309 2.708-.632 5.416-.845 8.134-.171 2.196.135 4.848-.397 6.972-.679 2.706-4.08 5.232-6.725 6.165-6.6 2.326-12.105-7.303-17.742-10.12-7.318-3.656-19.897-4.527-27.38.239-7.645-4.766-20.224-3.895-27.542-.239-5.637 2.817-11.142 12.446-17.742 10.12-2.645-.933-6.047-3.459-6.725-6.165-.532-2.124-.226-4.776-.397-6.972-.213-2.718-.536-5.426-.845-8.135C30.298 44.08 29.497 35.11 29.265 26c-.689 0-2.218 10.707-2.5 12.286-1.043 5.866-2.24 11.744-2.627 17.7-.4 6.119.077 12.181 1.332 18.177a165 165 0 0 0 2.049 8.541c.834 3.143-.32 9.262.053 12.488.707 6.104 3.582 18.008 6.811 23.259 1.561 2.538 3.39 4.123 5.433 6.168 1.967 1.97 2.788 5.021 4.91 7.118 3.956 3.908 9.72 6.234 15.64 6.806C65.677 143.05 74.506 146 84.5 146s18.823-2.95 24.135-7.457c5.919-.572 11.683-2.898 15.64-6.806 2.121-2.097 2.942-5.149 4.909-7.118 2.042-2.045 3.872-3.63 5.433-6.168 3.229-5.251 6.104-17.155 6.81-23.259.374-3.226-.78-9.345.054-12.488.75-2.828 1.45-5.676 2.05-8.54 1.254-5.997 1.73-12.06 1.332-18.179"></path><path id="ShortHairSides-path3" d="M6 28c-5.076.071-6-1.006-6-5C0 17.344 4.04 6.778 8 2c1.176-2.17 3.619-3.432 3 1-2.66 8.477.417 24.914-5 25m114 0c-5.417-.086-2.34-16.523-5-25-.619-4.432 1.824-3.17 3-1 3.96 4.778 8 15.344 8 21 0 3.994-.924 5.071-6 5"></path></defs><mask id="ShortHairSides-mask2" fill="#fff"><use href="#ShortHairSides-path1"></use></mask><g id="Top/Short-Hair/Sides" mask="url('#ShortHairSides-mask2')"><g transform="translate(-1)"><use id="Hair" fill="var(--avataaar-hair-color)" class="CustomColor" href="#ShortHairSides-path3" transform="translate(70 74)"></use></g></g></g>',1),G8=[j8];function q8(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...G8])}const I8={render:q8},W8=e.createStaticVNode('<g id="Top"><defs><path id="LongHairBun-path2" d="M0 0h264v280H0z"></path><path id="LongHairBun-path1" d="M114.94 28.337q-1.48.334-2.903.693c-15.092 3.808-24.02 14.621-31.68 30.618-3.761 7.855-5.991 17.143-6.334 25.833-.135 3.412.325 6.934 1.245 10.22.337 1.205 2.155 5.386 2.654 2.008.167-1.125-.442-2.676-.5-3.871-.078-1.569.005-3.157.112-4.723.2-2.928.722-5.8 1.65-8.59 1.328-3.988 3.017-8.312 5.603-11.677C91.188 60.521 95.765 43.206 133 41.671s48.749 25.79 52.183 31.63c4.065 6.914 2.195 15.406 3.436 22.9.472 2.85 1.545 2.786 2.132.237.997-4.33 1.468-8.828 1.151-13.279-.718-10.048-4.405-36.453-24.593-48.153-5.443-3.154-10.87-5.319-16.192-6.723C154.177 25.31 156 21.568 156 17.5 156 7.835 145.703 0 133 0s-23 7.835-23 17.5c0 4.092 1.846 7.857 4.94 10.837"></path></defs><mask id="LongHairBun-mask2" fill="#fff"><use href="#LongHairBun-path2"></use></mask><g id="Top/Long-Hair/Bun" mask="url('#LongHairBun-mask2')"><use fill="var(--avataaar-hair-color)" class="CustomColor" href="#LongHairBun-path1" transform="translate(-1)"></use></g></g>',1),U8=[W8];function Z8(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...U8])}const Y8={render:Z8},X8=e.createStaticVNode('<g id="Top"><defs><path id="LongHairStraightStrand-path1" d="M0 0h264v280H0z"></path><path id="LongHairStraightStrand-path2" d="M8.461 88.694C8.161 89.744 8 90.854 8 92v13c0 6.019 4.43 11.002 10.209 11.867 1.743 20.248 14.26 37.416 31.791 45.744V181h-4c-15.619 0-30.076 4.973-41.875 13.423A73.9 73.9 0 0 1 0 170V74C0 33.13 33.13 0 74 0s74 33.13 74 74v96a73.9 73.9 0 0 1-4.125 24.423C132.076 185.973 117.619 181 102 181h-4v-18.389c17.53-8.328 30.048-25.496 31.791-45.744C135.57 116.002 140 111.02 140 105V92c0-1.69-.349-3.297-.979-4.755-12.956-2.188-27.542-7.476-41.872-15.75-12.132-7.004-22.503-15.237-30.48-23.743q5.14 11.862 12.45 20.783-19.013-8.285-25.892-26.639a100 100 0 0 1-1.18 2.762c-9.84 22.1-26.456 38.024-43.586 44.036"></path><path id="LongHairStraightStrand-path3" d="M65.18 77.737c2.183-1.632 15.227-2.258 17.578-3.648.734-.434 1.303-.873 1.742-1.309.439.436 1.009.875 1.742 1.31 2.351 1.389 15.395 2.015 17.578 3.647 2.21 1.654 3.824 5.448 3.647 8.414-.212 3.56-4.106 12.052-13.795 13.03-2.114-2.353-5.435-3.87-9.172-3.87s-7.058 1.517-9.172 3.87c-9.69-.978-13.583-9.47-13.795-13.03-.176-2.966 1.437-6.76 3.647-8.414m.665 17.164.017.007zm79.018-38.916c-.389-5.955-1.585-11.833-2.629-17.699-.281-1.579-1.81-12.286-2.5-12.286-.232 9.11-1.032 18.08-2.064 27.14-.309 2.708-.632 5.416-.845 8.134-.171 2.196.135 4.848-.397 6.972-.679 2.706-4.08 5.232-6.725 6.165-6.6 2.326-12.105-7.303-17.742-10.12-7.318-3.656-19.897-4.527-27.38.239-7.645-4.766-20.224-3.895-27.542-.239-5.637 2.817-11.142 12.446-17.742 10.12-2.645-.933-6.047-3.459-6.725-6.165-.532-2.124-.226-4.776-.397-6.972-.213-2.718-.536-5.426-.845-8.135C30.298 44.08 29.497 35.11 29.265 26c-.689 0-2.218 10.707-2.5 12.286-1.043 5.866-2.24 11.744-2.627 17.7-.4 6.119.077 12.181 1.332 18.177a165 165 0 0 0 2.049 8.541c.834 3.143-.32 9.262.053 12.488.707 6.104 3.582 18.008 6.811 23.259 1.561 2.538 3.39 4.123 5.433 6.168 1.967 1.97 2.788 5.021 4.91 7.118 3.956 3.908 9.72 6.234 15.64 6.806C65.677 143.05 74.506 146 84.5 146s18.823-2.95 24.135-7.457c5.919-.572 11.683-2.898 15.64-6.806 2.121-2.097 2.942-5.149 4.909-7.118 2.042-2.045 3.872-3.63 5.433-6.168 3.229-5.251 6.104-17.155 6.81-23.259.374-3.226-.78-9.345.054-12.488.75-2.828 1.45-5.676 2.05-8.54 1.254-5.997 1.73-12.06 1.332-18.179"></path></defs><mask id="LongHairStraightStrand-mask1" fill="#fff"><use href="#LongHairStraightStrand-path1"></use></mask><g id="Top/Long-Hair/Straight-+-Strand" mask="url('#LongHairStraightStrand-mask1')"><g transform="translate(-1)"><use id="Hair" fill="var(--avataaar-hair-color)" class="CustomColor" href="#LongHairStraightStrand-path2" transform="translate(59 18)"></use><path id="Shadow" fill="#000" d="M59 102.419v6.419c19.945-3.088 40.59-20.448 52.046-46.18q.615-1.38 1.18-2.762 6.008 16.029 21.27 24.378a78 78 0 0 0 4.622 6.261q-19.012-8.285-25.891-26.639a101 101 0 0 1-1.18 2.762C99.59 92.39 78.944 109.75 59 112.838zm148-1.279v9.14c-14.953-.867-33.099-6.535-50.851-16.785-10.273-5.93-19.283-12.743-26.646-19.855a99 99 0 0 1-3.833-7.888c7.976 8.506 18.347 16.74 30.479 23.743 17.752 10.25 35.898 15.918 50.851 16.786z" opacity=".16"></path></g></g></g>',1),K8=[X8];function Q8(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...K8])}const J8={render:Q8},e9=e.createStaticVNode('<g id="Top"><defs><path id="ShortHairTheCaesar-path1" d="M0 0h264v280H0z"></path><path id="ShortHairTheCaesar-path2" d="M1 64c.347 1.488 1.673 1.223 2 0-.463-1.554 3.296-28.752 13-36 3.618-2.517 23.008-4.768 42.313-4.754C77.409 23.259 96.42 25.51 100 28c9.704 7.248 13.463 34.446 13 36 .327 1.223 1.653 1.488 2 0 .72-10.298 0-63.726-57-63S.28 53.702 1 64"></path></defs><mask id="ShortHairTheCaesar-mask1" fill="#fff"><use href="#ShortHairTheCaesar-path1"></use></mask><g id="Top/Short-Hair/The-Caesar" mask="url('#ShortHairTheCaesar-mask1')"><g transform="translate(-1)"><use id="Hair" fill="var(--avataaar-hair-color)" class="CustomColor" href="#ShortHairTheCaesar-path2" transform="translate(75 34)"></use></g></g></g>',1),t9=[e9];function n9(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...t9])}const a9={render:n9},o9=e.createStaticVNode('<g id="Top"><defs><path id="LongHairCurly-path1" d="M0 0h264v280H0z"></path><path id="LongHairCurly-path2" d="M48.725 89.219A12 12 0 0 0 42 100v13c0 6.019 4.43 11.002 10.209 11.867 1.743 20.248 14.26 37.416 31.791 45.744V189h-4q-2.38 0-4.721.152a72 72 0 0 1-13.689-9.103A48 48 0 0 1 48 182c-26.51 0-48-21.49-48-48 0-14.41 6.349-27.335 16.402-36.134A43.8 43.8 0 0 1 8 72c0-21.84 15.911-39.962 36.774-43.41C51.019 11.89 67.12 0 86 0a43.8 43.8 0 0 1 22 5.886A43.8 43.8 0 0 1 130 0c18.88 0 34.981 11.89 41.226 28.59C192.09 32.039 208 50.16 208 72a43.8 43.8 0 0 1-8.402 25.866C209.65 106.665 216 119.591 216 134c0 26.51-21.49 48-48 48-4.72 0-9.281-.681-13.59-1.951a72 72 0 0 1-13.689 9.103A73 73 0 0 0 136 189h-4v-18.389c17.53-8.328 30.048-25.496 31.791-45.744C169.57 124.002 174 119.02 174 113v-13a11.99 11.99 0 0 0-5.476-10.073 24 24 0 0 1-3.235-1.47q-.63-.18-1.289-.291v-.453c-8.68-5.303-17.235-16.538-22.55-30.914C131.312 58.835 119.547 60 107 60c-11.961 0-23.212-1.059-33.02-2.921C68.756 71.064 60.465 82.043 52 87.423v.743a12 12 0 0 0-3.275 1.053"></path></defs><mask id="LongHairCurly-mask1" fill="#fff"><use href="#LongHairCurly-path1"></use></mask><g id="Top/Long-Hair/Curly" mask="url('#LongHairCurly-mask1')"><g transform="translate(-1)"><path id="Shadow" fill="#000" d="M105.985 27.764C114.013 26.627 122.796 26 132 26c10.358 0 20.183.794 29 2.216C183.451 38.75 199 61.56 199 88v17.044c-11.538-.371-25.169-14.28-32.55-34.245C156.312 72.835 144.547 74 132 74c-11.961 0-23.212-1.059-33.02-2.921-7.304 19.548-20.597 33.223-31.98 33.943V88c0-26.825 16.004-49.913 38.985-60.236" opacity=".16"></path><use id="Hair" fill="var(--avataaar-hair-color)" class="CustomColor" href="#LongHairCurly-path2" transform="translate(25 10)"></use></g></g></g>',1),r9=[o9];function i9(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...r9])}const s9={render:i9};function l9(t,n){return e.openBlock(),e.createElementBlock("svg")}const c9={render:l9},d9=e.createStaticVNode('<g id="Top"><defs><path id="ShortHairTheCaesarSidePart-path1" d="M0 0h264v280H0z"></path><path id="ShortHairTheCaesarSidePart-path2" d="M82.018 24.378c-7.032-.693-15.36-1.127-23.705-1.132C39.008 23.232 19.618 25.483 16 28 6.296 35.248 2.537 62.446 3 64c-.327 1.223-1.653 1.488-2 0C.28 53.702 1 1.726 58 1s57.72 52.702 57 63c-.347 1.488-1.673 1.223-2 0 .463-1.554-3.296-28.752-13-36-1.76-1.224-7.247-2.39-14.641-3.261L89 16z"></path></defs><mask id="ShortHairTheCaesarSidePart-mask1" fill="#fff"><use href="#ShortHairTheCaesarSidePart-path1"></use></mask><g id="Top/Short-Hair/The-Caesar-+-Side-Part" mask="url('#ShortHairTheCaesarSidePart-mask1')"><g transform="translate(-1)"><use id="Hair" fill="var(--avataaar-hair-color)" class="CustomColor" href="#ShortHairTheCaesarSidePart-path2" transform="translate(75 34)"></use></g></g></g>',1),u9=[d9];function m9(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...u9])}const f9={render:m9},h9=e.createStaticVNode('<g id="Top"><defs><path id="LongHairCurvy-path1" d="M0 0h264v280H0z"></path><path id="LongHairCurvy-path2" d="M162.831 71.618A57 57 0 0 1 163 76v38c0 22.34-13.08 41.623-32 50.611V183h4c1.524 0 2.038.047 3.539.14-14.913 27.356-18.715 50.434-1.067 64.403 1.698 1.203 2.924 1.786 3.135 1.885 2.373 1.118 4.837 2.34 7.467 2.955 4.623 1.08 9.933-.373 14.557-.953 2.112-.266 4.217-.43 6.346-.436 2.565-.009 5.211.084 7.142 1.697 1.884 1.574 1.644 7.198-3.875 9.833 4.1 1.855 9.012-2.453 10.688-5.177 1.466-2.385 2.594-4.968 3.214-7.605.772-3.283.822-6.725.218-10.014-1.258-6.848-4.176-13.432-6.163-20.122-.732-2.466-1.686-5.165-2.102-7.69-.113-.684-.247-3.215-.141-3.744.078-.393.059-.797 1.415-1.176 3.916-1.096 8.007-2.933 10.852-5.52 3.365-3.058 5.119-7.03 6.533-10.979 2.24-6.252 3.523-12.947 4.113-19.44.122-1.349.191-2.695.215-4.047.015-.817-.085-1.747.008-2.565.153-1.34-.054-.987 1.248-1.874 4.257-2.9 7.58-7.122 9.71-11.37 3.346-6.672 3.782-13.708 1.066-20.467-2.253-5.607-5.827-11.235-11.392-14.846-2.137-1.386-4.392-2.643-6.61-3.93-1.21-.7-4.048-1.615-4.906-2.517-.6-.63.355-3.792.476-4.858.528-4.648-.08-9.157-1.165-13.696-2.394-10.008-12.033-26.149-15.903-35.662-3.325-8.172-8.136-55.3-65.031-55.026C51.69.473 41.419 50.438 33.716 59.774c-8.365 10.138-16.809 29.402-11.113 47.262-5.504 6.922-18.058 17.008-21.218 27.09-1.982 6.325-1.897 13.37.644 19.507 1.437 3.471 3.496 6.618 5.911 9.64 2.117 2.646 4.468 5.15 6.518 7.837 1.237 1.622 1.568 2.02 1.102 4.018-.92 3.94-2.819 7.725-4.466 11.475-2.552 5.81-4.697 11.22-5.014 17.413-.302 5.896 1.324 22.673 18.261 32.56a63 63 0 0 0 6.042 3.11c-1.09-3.396.146-15.524 2.343-20.032.56 1.55 1.511 3.043 2.536 4.398 1.6 2.115 5.374 7.409 10.147 7.655-1.937-2.984-4.02-4.998-4.624-8.598 3.977 1.96 9.634 3.747 14.262 3.582 3.404-.12 8.424-1.82 10.953-3.943-8.372 1.327-16.321-1.433-19.518-7.329-.667-1.23-1.174-2.52-1.468-3.86-.417-1.9-1.076-4.944-.191-6.697.215-.426.566-.86.984-1.29l-.197-.235c5.694-4.787 12.84-12.404 16.665-17.97q.106-.183.21-.367h.04l.085-.126A72.2 72.2 0 0 1 79 183h4v-18.389C64.08 155.623 51 136.339 51 114V76c0-2.463.159-4.888.467-7.267 3.942-1.263 7.898-2.455 11.932-3.528 4.456-1.186 14.399-3.114 18.29-4.01l2.736-2.98 1.063 1.955c2.158-.166 14.078-1.957 14.078-1.957l1.33-3.223c1.717 1.763 2.939 2.679 2.939 2.679 2.556-.209 13.653-.458 16.285-.426 0 0 7.34.258 9.12.328l1.668-.638.548 1.077c1.454.591 10.243 3.59 11.978 4.128l2.547-.906c1.12 2.694 3.94 2.354 6.276 4.481 2.503 2.279 7.226 4.024 10.574 5.905"></path></defs><mask id="LongHairCurvy-mask1" fill="#fff"><use href="#LongHairCurvy-path1"></use></mask><g id="Top/Long-Hair/Curvy" mask="url('#LongHairCurvy-mask1')"><g transform="translate(-1)"><path id="Top-Shadow" fill="#000" d="M100.9 42.465c-9.798 6.007-18.514 13.862-24.313 22.895-2.762 4.303-5.034 8.84-7.15 13.398a136 136 0 0 0-2.961 6.931c-.587 1.47-1.487 3.056-.64 4.599.517-.302.713-.194.388.347 2.692.734 6.434-1.335 8.767-2.099 4.763-1.56 9.53-3.033 14.408-4.331 4.456-1.186 14.399-3.114 18.29-4.01l2.736-2.98 1.063 1.955c2.158-.166 14.078-1.957 14.078-1.957l1.33-3.223c1.717 1.763 2.939 2.679 2.939 2.679 2.556-.209 13.653-.458 16.285-.426 0 0 7.34.258 9.12.328l1.668-.638.548 1.077c1.454.591 10.243 3.59 11.978 4.128l2.547-.906c1.12 2.694 3.94 2.354 6.276 4.481 3.092 2.814 9.569 4.816 12.66 7.263 1.108.876 2.143 1.792 3.183 2.726 1.156 1.037.985 1.188 1.36 2.378.113.356 1.256 2.199 1.743 2.35 1.733.536-10.154-30.486-13.417-34.453-3.368-4.094-25.211-31.654-54.174-30.752" opacity=".16"></path><g id="Hair" fill="none" transform="translate(26 16)"><mask id="LongHairCurvy-mask2" fill="#fff"><use href="#LongHairCurvy-path2"></use></mask><use fill="var(--avataaar-hair-color)" class="CustomColor" href="#LongHairCurvy-path2"></use><path id="Shadow" fill="#000" d="M62.68 184.462c7.075-9.707-.531-36.675-6.552-46.661q25.256-11.495 99.746 4.247-7.192 13.279-5.868 23.71-6.806 8.363-11.246 17.383l-34.871 8.606q-33.054 3.98-41.21-7.285Z" mask="url('#LongHairCurvy-mask2')" opacity=".24"></path></g><path id="Lights" fill="#FFF" d="M79.04 170.094c-.059-.201-.205-.427-.405-.665q.205.331.405.665m-22.63-49.719a88.6 88.6 0 0 0 4.456 18.002c2.062 5.721 4.42 11.46 7.813 16.69 3.161 4.876 6.924 9.425 9.956 14.362-.797-.948-2.472-2.1-3.114-2.778a50 50 0 0 1-2.984-3.458c-1.923-2.443-3.637-5-5.294-7.583-3.252-5.073-5.69-10.576-7.803-16.08-4.15-10.807-8.313-23.913-4.666-35.33-.282.735.459 2.488.575 3.297.204 1.414.386 2.837.478 4.26.185 2.883.184 5.749.583 8.618m12.445 44.666c-1.358-1.731-3.881-3.097-5.442-4.762-1.415-1.51-2.511-3.2-3.506-4.94-2.255-3.94-3.737-7.964-4.217-12.37.11.523.918 1.427 1.173 1.856a85 85 0 0 1 1.788 3.124c1.097 2.04 2.013 4.15 3.122 6.187 2.038 3.74 4.63 7.36 7.082 10.905m4.677 18.458c1.115 1.962 2.04 3.966 2.625 6.102a42 42 0 0 1 .77 3.413c.07.369.082 1.696.258 2.27-2.215-4.291-3.905-8.835-6.543-12.942-2.604-4.054-5.947-7.781-9.446-11.281-3.695-3.695-7.41-7.182-9.392-11.847-1.725-4.06-2.391-8.218-1.99-12.556.002 1.911 1.757 4.622 2.363 6.469.83 2.527 1.489 5.105 2.737 7.507 2.126 4.089 5.959 7.243 9.165 10.688 3.553 3.816 6.946 7.762 9.453 12.177m-14.303-9.32a22 22 0 0 1 2.806 3.275c.898 1.285 1.556 2.636 2.145 4.05.507 1.217.73 3.482 1.527 4.498-2.578-3.146-5.233-6.117-7.011-9.69-.607-1.222-1.548-3.023-2.243-4.495.231.593 2.253 1.86 2.776 2.362m-10.326 6.349c2.838 4.25 6.548 8.081 8.974 12.528 2.83 5.187 4.075 10.807 4.326 16.54.119 2.711.112 5.465-.253 8.168-.196 1.448-.51 2.886-.869 4.312-.136.54-.84 1.926-.977 2.77-.29-10.54 1.454-21.082-4.027-30.903-2.596-4.65-6.586-8.616-9.679-13.018-2.782-3.959-5.498-7.841-7.713-12.074 1.356 1.716 3.8 3.065 5.316 4.769 1.899 2.134 3.348 4.58 4.902 6.908m11.2 44.319c-.032.204-.033.377.014.5l-.013-.5Zm-9.543-22.353c.001.496.816 1.518 1.04 2.035.52 1.209.946 2.478 1.157 3.76.418 2.529-.13 5.14-1.067 7.561-1.9 4.907-4.874 9.253-8.613 13.3 1.335-1.748 1.867-4.589 2.806-6.538.965-2 2-3.97 2.85-6.011 1.92-4.605 1.75-9.311 1.827-14.107M41.917 221.2c.401-.548.193-3.183.405-3.872.392-1.273 1.07-2.502 1.849-3.635-.416.699.198 2.466-.005 3.373-.332 1.489-1.17 2.932-2.249 4.134m57.69-178.453a.9.9 0 0 0-.239.297zm-14.76 21.584c1.42-1.246 2.177-4.19 3.156-5.78 1.125-1.825 2.418-3.579 3.645-5.356 2.432-3.524 4.726-6.984 7.72-10.19-.622.934-1.173 3.768-1.514 4.513a34.6 34.6 0 0 1-3.221 5.605c-2.86 4.044-5.93 7.803-9.786 11.208m-.535-10.21c.75-1.327 1.894-2.448 3.18-3.414-.573.503-.831 2.575-1.225 3.275-.795 1.412-1.953 2.63-3.196 3.772.664-.582.772-2.803 1.24-3.633Zm119.194 98.006-.041.31c-.002-1.525-.68-3.2-.76-4.769-.113-2.19.202-4.315 1.082-6.392 1.74-4.101 5.003-7.207 9.164-9.638-1.145.674-2.267 3.213-3.001 4.268-1.103 1.586-2.282 3.187-3.214 4.85-1.943 3.469-2.506 7.618-3.23 11.371m-1.508-21.646a23 23 0 0 1-.989 3.626c-.474 1.279-1.093 2.523-1.783 3.728-.43.75-1.98 2.327-1.978 3.157-.083-4.898 1.728-9.335 5.172-13.257-.378.657-.283 2.03-.422 2.746m-.801 35.238c3.656-.517 7.105 1.261 9.421 3.551 1.238 1.224 2.338 2.63 3.065 4.133.547 1.13.546 2.983 1.28 3.92-1.797-2.419-4.076-4.373-6.324-6.464-1.564-1.455-4.688-5.181-7.442-5.14m-.778 10.377c-.192-.065-1.934-.558-2.337-.32.597-.267 1.33-.592 1.987-.679 4.284-.569 9.492 3.141 10.067 6.721-.478-1.226-3.025-2.24-4.176-2.85-1.823-.967-3.564-2.137-5.541-2.872m1.809 7.811c.742.182 2.32 1.176 3.047 1.165-2.929.07-5.572-.255-8.391-.914.152.041 1.759-.456 1.811-.463 1.215-.172 2.357-.076 3.533.212m-11.345 13.857c4.288-.242 9.336.384 13.431 1.417a22.3 22.3 0 0 1 5.692 2.295c1.414.814 3.93 1.932 4.876 3.137-3.74-6.452-11.85-9.803-20.16-8.14-1.107.222-2.808 1.276-3.84 1.291Zm-.96 12.433c2.688-.965 5.661-1.894 8.583-2.029 2.771-.127 5.845.29 8.41 1.173-.883-.24-2.993.332-3.92.437-1.297.147-2.596.299-3.896.418a52 52 0 0 1-4.801.222c-1.14-.002-3.32-.54-4.376-.221M179.46 227.41c.253 3.972 2.552 7.434 5.931 10.08 3.583 2.805 8.379 4.082 10.98 7.829 1.267 1.825 1.943 3.95 1.834 6.098-.056 1.106-.334 2.218-.635 3.294-.197.708-.902 1.868-.901 2.559.031-3.887.084-8.412-2.636-11.673-2.731-3.274-7.493-4.427-10.829-7.115-3.278-2.642-5.765-6.094-6.325-9.985-.452-3.144-.23-8.626 3.03-10.76-.662.39-.53 2.374-.547 2.931a74 74 0 0 0 .098 6.742m-2.453 15.262c.396.52 2.57 1.151 3.208 1.51 1.456.817 2.865 1.746 4.02 2.877 2.317 2.266 3.81 5.445 3.918 8.494 0-.72-1.646-2.457-2.109-3.073-.768-1.022-1.635-1.969-2.518-2.917-2.154-2.31-4.39-4.564-6.52-6.891Zm52.162-88.882c1.204 1.05 2.01 2.357 2.675 3.709 1.53 3.12 1.815 6.717.589 10 .203-.704-.401-2.184-.571-2.898-.373-1.563-.955-3.04-1.563-4.542-1.18-2.916-2.134-5.648-4.184-8.202.53.668 2.328 1.3 3.054 1.933M171.51 41.983c0 .332.917 1.293 1.123 1.654.517.902.924 1.849 1.064 2.855.158 1.142-.035 2.259-.381 3.369-.206.66-1.184 1.934-1.184 2.528-.16-3.498-.933-6.86-.622-10.406m7.637 6.822c.165 1.243-.24 2.644-.964 3.742.132-.31-.454-2.383-.473-2.762-.059-1.173.07-2.38.146-3.552.001.64 1.183 1.763 1.291 2.572m-60.77 1.568a35 35 0 0 1-4.15 4.243c-1.023.89-2.984 1.89-3.764 2.91 3.501-5.711 7.546-10.638 12.302-15.63-.716.92-.903 2.916-1.428 3.993-.774 1.587-1.81 3.076-2.96 4.484m5.898 2.479c.57-.336 1.104-1.993 1.538-2.55a17 17 0 0 1 2.578-2.63c-.205.22-.602 2.044-.825 2.402-.723 1.16-2 2.107-3.29 2.778Z" opacity=".6"></path></g></g></g>',1),p9=[h9];function g9(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...p9])}const y9={render:g9},k9=e.createStaticVNode('<g id="Top"><defs><path id="ShortHairDreads01-path1" d="M0 0h264v280H0z"></path><path id="ShortHairDreads01-path2" d="M65.18 77.737c2.183-1.632 15.227-2.258 17.578-3.648.734-.434 1.303-.873 1.742-1.309.439.436 1.009.875 1.742 1.31 2.351 1.389 15.395 2.015 17.578 3.647 2.21 1.654 3.824 5.448 3.647 8.414-.212 3.56-4.106 12.052-13.795 13.03-2.114-2.353-5.435-3.87-9.172-3.87s-7.058 1.517-9.172 3.87c-9.69-.978-13.583-9.47-13.795-13.03-.176-2.966 1.437-6.76 3.647-8.414m.665 17.164.017.007zm79.018-38.916c-.389-5.955-1.585-11.833-2.629-17.699-.281-1.579-1.81-12.286-2.5-12.286-.232 9.11-1.032 18.08-2.064 27.14-.309 2.708-.632 5.416-.845 8.134-.171 2.196.135 4.848-.397 6.972-.679 2.706-4.08 5.232-6.725 6.165-6.6 2.326-12.105-7.303-17.742-10.12-7.318-3.656-19.897-4.527-27.38.239-7.645-4.766-20.224-3.895-27.542-.239-5.637 2.817-11.142 12.446-17.742 10.12-2.645-.933-6.047-3.459-6.725-6.165-.532-2.124-.226-4.776-.397-6.972-.213-2.718-.536-5.426-.845-8.135C30.298 44.08 29.497 35.11 29.265 26c-.689 0-2.218 10.707-2.5 12.286-1.043 5.866-2.24 11.744-2.627 17.7-.4 6.119.077 12.181 1.332 18.177a165 165 0 0 0 2.049 8.541c.834 3.143-.32 9.262.053 12.488.707 6.104 3.582 18.008 6.811 23.259 1.561 2.538 3.39 4.123 5.433 6.168 1.967 1.97 2.788 5.021 4.91 7.118 3.956 3.908 9.72 6.234 15.64 6.806C65.677 143.05 74.506 146 84.5 146s18.823-2.95 24.135-7.457c5.919-.572 11.683-2.898 15.64-6.806 2.121-2.097 2.942-5.149 4.909-7.118 2.042-2.045 3.872-3.63 5.433-6.168 3.229-5.251 6.104-17.155 6.81-23.259.374-3.226-.78-9.345.054-12.488.75-2.828 1.45-5.676 2.05-8.54 1.254-5.997 1.73-12.06 1.332-18.179"></path><path id="ShortHairDreads01-path3" d="M185.832 73.929c1.757.988 3.148 10.899 3.216 14.689.042 2.338.08 11.256-2.394 10.485-.753-.235-1.902-4.956-2.066-7.719s-1.733-12.164-4.141-16.49c-.55-.988-2.126-2.723-1.445-3.56.844-1.036 1.664-.434 2.695-.02 1.115.45 3.937 2.504 4.135 2.615m.805-2.972c-.746.962-5.841-1.74-7.966-2.913-17.845-9.86-21.31-12.995-49.425-12.586-28.116.409-47.379 13.582-48.462 14.93-.754.937-1.716 3.44-2.508 10.413-.791 6.972.22 19.477-2.646 19.462-2.438-.013-2.97-23.786-1.916-33.217.161-1.448.784-4.038.333-5.34-.394-1.138-2.322-1.135-2.014-3.03.35-2.159 2.525-1.087 3.473-2.119 1.795-1.954-.974-2.417-1.433-4.126-.682-2.542 1.29-3.197 3.067-4 1.966-.887 1.71-.108 3.306-1.846-2.131-1.563-2.902-3.691.016-4.833 1.24-.485 4.465.157 5.436-.572.253-.19.353-1.28.51-1.502 1.55-2.219 1.168-3.825 1.01-6.316-.129-2.038-.112-3.909 2.329-4.112 1.628-.136 2.952 1.194 4.411 1.586 1.619.435 1.01.752 2.279-.121 2.226-1.533.711-4.52 2.476-6.303 2.423-2.446 4.01 1.14 5.956 1.41 4.222.588 2.867-3.7 5.367-5.272 2.988-1.876 3.277 2.251 5.143 2.398 1.617.127 4.529-2.993 5.938-3.575 4.183-1.726 6.255 3.13 10.237 2.511 2.89-.45 3.67-.816 6.277.828 2.53 1.595 3.132.454 5.998.432 2.025-.016 3.265 1.676 4.959 1.853.844.088 1.653-.792 2.56-.737 3.237.197 3.442 4.383 6.014 5.536 2.35 1.053 5.112-.427 7.445-.7 5.69-.668 1.793 4.647 1.954 7.819 2.233.52 4.5-1.564 6.724-1.18 3.502.604 2.18 4.233 1.368 6.68 2.427-.044 8.76-2.737 10.332.707.81 1.776-1.078 4.147-1.047 5.952.043 2.542 1.91 4.645 2.571 7.05.892 3.247 2.163 11.95-.072 14.833"></path></defs><mask id="ShortHairDreads01-mask2" fill="#fff"><use href="#ShortHairDreads01-path1"></use></mask><g id="Top/Short-Hair/Dreads-01" mask="url('#ShortHairDreads01-mask2')"><g transform="translate(-1)"><use id="Hair" fill="var(--avataaar-hair-color)" class="CustomColor" href="#ShortHairDreads01-path3" transform="translate(1)"></use></g></g></g>',1),x9=[k9];function b9(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...x9])}const w9={render:b9},E9=e.createStaticVNode('<g id="Top"><defs><path id="Turban-path1" d="M0 0h264v280H0z"></path><path id="Turban-path2" d="M156 180.611c17.53-8.328 30.048-25.496 31.791-45.744C193.57 134.002 198 129.02 198 123v-13c0-5.946-4.325-10.882-10-11.834V92c0-30.928-25.072-56-56-56S76 61.072 76 92v6.166c-5.675.952-10 5.888-10 11.834v13c0 6.019 4.43 11.002 10.209 11.867 1.743 20.248 14.26 37.416 31.791 45.744V199h-4c-39.765 0-72 32.235-72 72v9h200v-9c0-39.765-32.235-72-72-72h-4zM0 0h264v280H0z"></path><path id="Turban-path3" d="M83.972 55.817C107.404 69.414 145.115 82.111 139 138q29.066-8.46 29-46.676C167.918 44.148 115.85 0 86 0q-1.012 0-2.008.088A23 23 0 0 0 82 0C52.074 0 .08 44.148 0 91.324Q-.067 130.498 29 138c-6.138-55.889 31.51-68.586 54.972-82.183"></path></defs><mask id="Turban-mask1" fill="#fff"><use href="#Turban-path1"></use></mask><g id="Top/Accesories/Turban" mask="url('#Turban-mask1')"><g id="Turban"><path id="Band" fill="#EDECE3" d="M74.53 97.5c-1-2.41-1.53-4.92-1.53-7.5 0-18.225 26.415-33 59-33s59 14.775 59 33c0 2.58-.53 5.09-1.53 7.5C183.398 82.888 159.972 72 132 72S80.602 82.888 74.53 97.5"></path><use fill="var(--avataaar-top-color)" class="CustomColor" href="#Turban-path3" transform="translate(48 3)"></use><path id="Shadow" fill="#000" d="M48.011 96.012q.555 37.65 28.99 44.988-29.068-7.066-29-43.97 0-.51.01-1.018m104.635-65.544c.744 5.727-.52 12.421-4.646 19.668-11.153 21.43-71.439 21.868-71.666 79.544-.229-61.919 60.471-62.3 71.666-85.136 2.67-4.977 4.141-9.709 4.646-14.076" opacity=".16"></path></g></g></g>',1),v9=[E9];function C9(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...v9])}const S9={render:C9},B9=e.createStaticVNode('<g id="Top"><defs><path id="LongHairDreads-path1" d="M0 0h264v280H0z"></path><path id="LongHairDreads-path2" d="M85.718 185.073A73 73 0 0 1 89 185h4v-18.389a56.22 56.22 0 0 1-26.789-26.99c-2.764-8.607-2.6-17.934-3.21-26.795-.805-11.68-.112-23.078 2.536-34.578 2.39-10.376 5.824-15.941 13.626-24.255 4.36-4.646 10.905-4.915 17.42-6.564 6.593-1.67 12.611-4.21 16.735-8.99 9.083 10.41 33.354 6.664 42.236 18.01 10.802 13.798 10.923 22.7 12.193 38.643.953 11.951-.528 33.564-.943 46.538A56.24 56.24 0 0 1 141 166.611V185h4c6.636 0 13.062.898 19.163 2.578-2.05 3.174-4.494 6.18-7.051 8.973-3.831 4.188-7.681 8.52-12 12.367-4.941 4.401-9.668 7.597-12.668 13.082-1.358 2.483-3.737 5.094-1.22 7.817 2.3 2.487 5.925 1.975 8.386.175 3.637-2.66 6.338-6.858 9.69-9.915-3.238 5.815-7.742 14.484-5.43 21.005.787 2.217 1.586 2.173 2.802 3.65q2.88.066 2.276 2.606l.54 1.451c1.456 2.594 4.243 4.41 7.78 3.188 11.56-3.994-1.775-21.961 10.953-27.302 2.278 2.83-1.086 10.779-1.177 14.256-.111 4.287.122 14.013 6.642 15.179 8.496 1.52 5.22-6.597 5.555-10.05.39-4.016 2.86-9.312 4.87-12.869-1.222 3.78-3.508 12.154 2.817 13.87 7.317 1.986 6.481-6.586 7.592-10.15.229 5.275 7.045 17.749 13.205 7.896 3.173-5.076 1.009-13.441.66-18.854 4.414 4.56 7.94-1.35 7.84-4.63 1.677 4.752 7.982 18.002 13.57 7.485 3.398-6.395-.226-14.985-2.483-21.16 5.944.52 4.75-5.236 3.864-8.095-1.307-4.222-.61-4.841-.34-9.206 8.25 4.805 7.997-8.234 7.542-11.432-1.146-8.051-7.409-15.261-12.243-22.052-3.466-4.871-9.935-13.352-8.038-19.226 1.957 2.468 6.507 2.442 8.316-.142 1.532-2.188-.091-5.796-.83-7.982-2.021-5.98-6.06-9.844-9.711-14.981-7.108-10.001-6.086-23.133-6.743-34.313-.82-13.949-3.814-27.68-16.48-37.827-6.787-5.437-15.058-9.914-21.37-15.682-1.722-1.573-2.45-3.521-4.066-5.038-1.813-1.701-2.66-1.298-4.158-3.72-2.668-4.315-5.802-8.355-12.25-8.558-4.22-.132-9.556 3.43-13.359 2.909-3.122-.427-5.094-4.879-7.656-6.373-3.966-2.312-6.734-1.414-10.972-.075-6.31 1.994-10.33 2.689-16.755.306C97.69 2.539 93.565-.846 88.402.357c-4.05.945-5.858 4.213-8.244 6.718-2.46 2.586-1.271 1.73-4.87 2.305-3.68.588-6.586 1.122-9.378 3.532-4.512 3.895-1.386 9.955-4.953 13.389-1.925 1.854-5.935 2.737-8.165 4.654-2.434 2.092-4.424 4.635-6.248 7.11-3.551 4.823-5.976 10.079-8.58 15.281-4.843 9.681-9.161 19.671-11.002 30.072-.945 5.347-2.538 10.577-3.512 15.912-.75 4.115-.43 8.622-1.896 12.617-1.74 4.74-5.899 9.096-8.152 13.757-2.988 6.183-4.994 12.115-5.63 18.771-.624 6.544 1.113 12.311 1.879 18.727.443 3.717-.324 4.139-2.88 7.647-1.967 2.7-3.96 5.373-5.225 8.378-2.361 5.615-2.23 11.077 1.879 16.013 2.82 3.388 12.299 6.933 11.523-.618-.36-3.508-4.772-5.095-3.93-9.12.584-2.787 3.425-4.715 6.874-5.577 2.436-.608 3.636-.582 4.735 2.09.996 2.42-.325 7.706-.63 10.25-.123 1.023-.305 1.92-.428 2.867-.868 6.674-1.028 12.815-4.682 18.944-2.244 3.766-6.636 9.073-1.628 12.703 3.959 2.87 10.79 1.121 13.877-1.882 3.256 4.027 2.532 8.423 1.314 12.869-.756 2.76-2.824 6.802.431 9.033 4.408 3.021 11.603-1.738 14.908-4.14 1.91 4.268 3.703 19.827 11.235 10.552 2.198-2.705 5.858-5.344 6.555-8.534 1.156-5.29.326-10.858.804-16.202 2.404 6.997 4.038 9.787 5.51 16.97.884 4.321 1.231 18.82 10.174 16.91 6.88-1.47 2.48-10.524 1.601-14.215-1.683-7.07-2.496-10.063-4.122-17.14 2.533 4.626 4.746 9.371 7.18 14.034 2.39 4.58 13.078 14.027 16.205 10.05 3.127-3.978-4.496-9.645-6.23-14.46-3.609-10.024-7.98-20.006-9.017-30.508-.499-5.049.436-9.712.846-14.703.28-3.41-.141-6.902-.812-10.34"></path></defs><mask id="LongHairDreads-mask2" fill="#fff"><use href="#LongHairDreads-path1"></use></mask><g id="Top/Long-Hair/Dreads" mask="url('#LongHairDreads-mask2')"><g transform="translate(-1)"><g id="Hair" transform="translate(16 14)"><mask id="LongHairDreads-mask1" fill="#fff"><use href="#LongHairDreads-path2"></use></mask><use fill="var(--avataaar-hair-color)" class="CustomColor" href="#LongHairDreads-path2"></use><path id="Shadows" fill="#000" d="M85.718 185.073A73 73 0 0 1 89 185h4v-18.389a56.22 56.22 0 0 1-26.789-26.99 37 37 0 0 0 1.95 4.888c5.756 11.833 13.257 22.412 16.327 35.08.435 1.798.869 3.633 1.23 5.484m78.445 2.505A72 72 0 0 0 145 185h-4v-18.389a56.24 56.24 0 0 0 25.502-24.404c-.077 2.994-.01 5.972.373 8.849 1.07 8.044 4.001 15.31 2.64 23.58-.744 4.532-2.725 8.875-5.352 12.942" mask="url('#LongHairDreads-mask1')" opacity=".24"></path><path id="Highlights" fill="#FFF" d="M49.36 108.248c-.124-2.422-1.98-10.537.329-11.939 2.53-1.537 2.002 7.707 2.028 8.654.044 1.537 1.211 13.135-.927 13.084-2.132-.051-1.347-8.219-1.43-9.799m8.435 57.75c-.009 1.014-1.072.953-1.832.688-.937-.328-.363-2.484-.413-3.191-.13-1.86-1.023-7.338.34-8.873 2.726-3.069 1.916 9.948 1.905 11.376m-25.674 13.163c1.93-.054.144-37.832-2.821-37.79-2.083.03 1.361 37.827 2.821 37.79m2.232 19.355c-2.397 0-1.957 8.462-.545 9.139 2.14 1.025 3.227-9.139.545-9.139m15.237 3.539c.021 1.058-1.179 1.074-1.98.744-.908-.376-.528-3.506-.563-4.2-.114-2.188-2.017-10.672-.286-12.231 1.974-1.778 2.017.173 2.548 1.498 1.564 3.903.197 10.032.28 14.189Zm140.652-79.722c.11 1.463 1.069 11.018-.524 11.746-2.742 1.254-1.561-4.65-1.55-5.413.107-7.437-.969-14.812-1.787-22.21-.155-1.404-2.625-12.224-.816-13.12 2.707-1.342 2.303 2.245 2.458 3.41 1.129 8.468 1.628 17.078 2.22 25.587Zm-3.219 33.254c-2.532-.502-3.858 8.094-2.702 9.016 1.917 1.53 5.35-8.49 2.702-9.016m-.268 37.798c-1.139-.226-9.433 15.733-8.75 16.635 1.299 1.719 12.829-15.82 8.75-16.635m-20.422 7.374c-1.782-.803-9.334 10.75-7.406 11.619 1.748.786 9.561-10.652 7.406-11.62Zm42.092-43.312c-2.15 0-2.055 11.822-.4 12.568 1.711.77 2.942-12.568.4-12.568M178.14 48.844c-.609-.87-7.175-8.62-2.472-7.513 2.291.539 5.448 7.352 6.481 9.41.594 1.183 3.985 6.46.392 6.086-.977-.101-3.59-6.82-4.401-7.983m-23.092-15.488q-1.27.572.042 1.072 1.27-.57-.042-1.072m-84.43 8.13c-2.004 1.844-9.542 12.519-12.125 12.626-4.707.195 4.278-9.025 5.297-10.198.455-.527 2.486-3.092 3.722-3.723 1.261-.643 5.444-.859 3.107 1.295ZM43.255 69.981c-2.183-.43-5.835 10.264-4.56 11.555 1.923 1.95 7.007-11.07 4.56-11.555m24.939 119.011c.412 1.341 4.631 11.08 3.571 12.361-1.621 1.958-2.087-.817-2.617-1.967-1.178-2.555-4.238-8.846-3.746-11.536.477-2.608 2.375-.201 2.792 1.142m-8.207 22.824c-2.295 0-2.03 9.802-.663 10.385 2.116.902 3.478-10.385.663-10.385m161.805-8.37c.137.604 2.054 5.563-.663 4.845-1.562-.413-1.802-4.785-2.201-6.11-1.23-4.086-5.28-9.163-5.632-13.194-.34-3.897 1.84-2.412 3.515.889 2.236 4.407 3.913 8.87 4.981 13.57m-19.702-.495c-2.132-.01-2.235 10.773-.902 11.402 1.864.878 3.621-11.402.902-11.402m6.16-88.297c1.582-.412-3.41-13.325-5.177-13.183-2.695.217 2.776 13.803 5.178 13.183Zm-26.815 56.093q-1.27.57.043 1.071 1.27-.57-.043-1.071m-24.218 55.24c.794 0 1.121-1.223-.051-1.25-.775.006-1.184 1.25.051 1.25M58.684 170.63c.03-1.909-2.469-.51-2.453 1.101.032 3.214 2.4 1.746 2.453-1.101m-6.165-47.746c-.804 0-1.134 1.236.05 1.266.785-.006 1.198-1.266-.05-1.266m-19.132 62.51c-.078-1.941-1.7.043-1.61.046.288.007 1.67 1.417 1.61-.046M37.6 84.063c-2.368 0-2.025 5.754-.514 6.123 2.52.616 2.865-6.123.514-6.123m12.613 124.263c-2.286 0-2.44 7.814-.863 8.3 2.451.754 3.243-8.3.863-8.3m-18.756 5.606q-1.308.587.042 1.103 1.309-.585-.042-1.103m169.999 3.35c-2.32 0-2.23 9.554-.805 10.2 1.99.902 3.488-10.2.805-10.2m-23.51 8.88c-2.411-.482-3.674 7.405-2.55 8.29 1.852 1.459 5.025-7.796 2.55-8.29m-20.48 7.29c-1.998 0-1.508 3.574-.355 4.106 1.994.92 2.583-4.107.354-4.107ZM86.48 19.508c-1.672 0-12.16 4.744-8.24 6.15 2.396.859 12.497-6.15 8.24-6.15" mask="url('#LongHairDreads-mask1')" opacity=".3"></path></g></g></g></g>',1),V9=[B9];function M9(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...V9])}const N9={render:M9},A9=e.createStaticVNode('<g id="Top"><defs><path id="ShortHairDreads02-path1" d="M0 0h264v280H0z"></path><path id="ShortHairDreads02-path2" d="M65.18 77.737c2.183-1.632 15.227-2.258 17.578-3.648.734-.434 1.303-.873 1.742-1.309.439.436 1.009.875 1.742 1.31 2.351 1.389 15.395 2.015 17.578 3.647 2.21 1.654 3.824 5.448 3.647 8.414-.212 3.56-4.106 12.052-13.795 13.03-2.114-2.353-5.435-3.87-9.172-3.87s-7.058 1.517-9.172 3.87c-9.69-.978-13.583-9.47-13.795-13.03-.176-2.966 1.437-6.76 3.647-8.414m.665 17.164.017.007zm79.018-38.916c-.389-5.955-1.585-11.833-2.629-17.699-.281-1.579-1.81-12.286-2.5-12.286-.232 9.11-1.032 18.08-2.064 27.14-.309 2.708-.632 5.416-.845 8.134-.171 2.196.135 4.848-.397 6.972-.679 2.706-4.08 5.232-6.725 6.165-6.6 2.326-12.105-7.303-17.742-10.12-7.318-3.656-19.897-4.527-27.38.239-7.645-4.766-20.224-3.895-27.542-.239-5.637 2.817-11.142 12.446-17.742 10.12-2.645-.933-6.047-3.459-6.725-6.165-.532-2.124-.226-4.776-.397-6.972-.213-2.718-.536-5.426-.845-8.135C30.298 44.08 29.497 35.11 29.265 26c-.689 0-2.218 10.707-2.5 12.286-1.043 5.866-2.24 11.744-2.627 17.7-.4 6.119.077 12.181 1.332 18.177a165 165 0 0 0 2.049 8.541c.834 3.143-.32 9.262.053 12.488.707 6.104 3.582 18.008 6.811 23.259 1.561 2.538 3.39 4.123 5.433 6.168 1.967 1.97 2.788 5.021 4.91 7.118 3.956 3.908 9.72 6.234 15.64 6.806C65.677 143.05 74.506 146 84.5 146s18.823-2.95 24.135-7.457c5.919-.572 11.683-2.898 15.64-6.806 2.121-2.097 2.942-5.149 4.909-7.118 2.042-2.045 3.872-3.63 5.433-6.168 3.229-5.251 6.104-17.155 6.81-23.259.374-3.226-.78-9.345.054-12.488.75-2.828 1.45-5.676 2.05-8.54 1.254-5.997 1.73-12.06 1.332-18.179"></path><path id="ShortHairDreads02-path3" d="M153.503 98.874C157.9 100.654 161 104.965 161 110v13c0 5.288-3.42 9.776-8.168 11.375a55.7 55.7 0 0 1-11.076 29.29c.209.807.41 1.625.556 2.503.55 3.327-.12 6.093 1.645 9.093.457.78 1.183 1.247 1.522 2.144.533 1.415-.232 4.594 1.95 4.595 3.106 0 1.374-5.966.596-7.384-1.525-2.772-2.462-3.45-2.383-7.044 1.745 1.16 7.53 3.376 9.448 2.316 4.432-2.448-6.662-4.936-7.438-5.453 1.704-1.666 3.656-2.55 5.197-4.746 1.26-1.793 2.406-4.397 4.55-4.501 1.186-.058 4.657 2.884 5.71.866.964-1.85-1.115-2.122-1.928-2.777-1.502-1.21-1.84-.006-1.474-2.134 1.085 1.165 2.789.429 3.244-1.015.49-1.559-1.127-2.024-1.097-3.014-.012.387.834-5.115.7-4.938.86-1.135 3.908-.784 5.413-.62 2.296.248 2.164.317 3.255 2.436.882 1.715 3.198 5.178 3.707.641.121-1.085-.869-3.404-1.45-4.338-.627-1.007-2.517-1.643-2.912-2.427-.944-1.87 2.165-6.034 1.639-8.854 1.093.418 3.857 6.927 5.198 1.599.707-2.8-6.505-8.945-3.514-9.894 2.289-.726 4.612 2.225 5.25 4.044.473 1.348.26 4.238 1.068 5.353 3.036 4.203 3.41-2.74 3.157-4.572-.559-4.026-1.984-6.988-5.623-8.51 1.295-1.607-.345-2.887-1.275-3.893 1.528-1.657 11.437.104 9.208-4.327-.538-1.072-2.481-1.262-3.467-1.655-2.49-.992-4.985-3.01-6.257-5.562 1.841-.46 7.28.798 6.565-2.996-.563-2.982-5.403-2.067-7.278-1.61 1.692-1.016 4.973-.174 5.434-2.941.531-3.183-3.288-3.076-5.08-2.402-.422-3.358 5.53-5.83 7.213-8.4.568-.867 1.47-1.164.746-2.633-1.306-2.643-4.68 1.086-5.792 2.09.876-1.628 3.32-8.403 2.95-10.122-.546-2.526-2.353-2.615-3.79-.568-.93 1.33-1.19 4.703-1.68 6.427-2.04-1.537-2.143.246-2.248-2.191-.068-1.58 2.002-4.701 2.532-6.248.456-1.329 1.668-3.76.943-5.046-1.776-3.143-3.473 1.172-3.94 2.652-.789-3.411 2.214-6.057 3.103-9.431.541-2.048 1.976-7.578-.51-8.561-3.394-1.341-2.2 4.956-2.678 7-.365 1.559-.922 4.077-2.139 4.845-.176.111-2.82.343-2.948.193-1.734-2.021 3.038-6.447 3.284-8.351.223-1.73-.44-2.825-2.061-2.929-.81-.051-2.12 1.2-2.495 1.119-1.48-.322.447-7.089.587-8.967.15-2.003-.094-7.172-3.483-4.785.227-2.697.364-5.236.734-7.891.195-1.4 1.398-2.645-.374-3.767-2.156-1.365-3.35 1.492-3.842 3.168-.846 2.885.9 7.375-3.158 7.466-4.665.106-1.444-4.73-1.215-7.868.128-1.74-1.012-6.421-3.262-3.263-.896 1.259-.587 5.694-1.084 7.183-1.106-.493.733-4.515-.23-5.564-2.06-2.247-3.788 1.026-5.099 1.692-.086-1.445-.187-2.891-.248-4.338-.093-2.2 1.255-6.83-.113-8.347-2.337-2.59-3.823.431-4.506 2.523-.613 1.884-.697 3.744-3.233 4 .208-2.717-2.258-8.436-1.035-10.727.553-1.035 1.679-.301 2.179-1.46.821-1.902-.524-2.71-1.986-2.771-6.792-.286-1.562 9.134-3.969 11.491-1.099-1.04.072-2.113-1.065-3.596-1.223-1.595-3.173-1.46-4.918-.738-.056-1.613 2.364-12.92-3.08-7.817-1.352 1.271-.974 3.393-1.693 4.886-.696 1.445-2.39 3.598-3.341 4.771-.51-2.067.272-4.63.82-6.666.38-1.415 2.931-5.805 2.387-7.244-1.58-4.167-6.323 2.72-7.572 3.832-1.582 1.41-7.88 6.045-9.901 4.64-.701-.487-.07-2.29-1.027-3.128-.47-.41-2.477-.6-3.05-.548.358-1.494-.346-3.427-2.055-2.91-2.149.65-1.219 3.838-2.58 5.002-2.53 2.164-5.535-2.112-8.245-1.992.414-1.755 3.485-8.062-1.399-6.144-1.246.49-2.13 3.351-2.44 4.54-.792 3.036-.222 3.593-3.509 4.45.257-1.76-.2-3.948.649-5.521.696-1.289 4.305-4.645.462-5.063-4.74-.516-4.274 7.672-4.855 10.44-4.206-2.549-6.974 1.098-9.48 4.252.447-1.419 1.553-15.557-2.965-11.237-1.292 1.237.138 3.066.05 4.478-.078 1.28-.5 2.422-.995 3.618-.796 1.921-1.72 3.887-2.974 5.524-1.573 2.059-1.015 2.22-2.82.823-2.425-1.873-3.577-6.624-3.457-9.525.09-2.16 1.196-6.548-2.384-5.531-3.507.996-1.649 7.974-1.296 10.453.381 2.687.635 5.436.183 8.173-2.984-3.05-3.42 3.302-4.017 4.385-.98 1.777-2.868 2.647-4.335 3.86-.8-2.794 2.405-5.157 1.77-7.38-1.194-4.165-4.571 1.716-5.313 2.87-.619.963-2.635 6.442-3.365 6.933-1.023.69-7.605-2.527-8.27-3.14-1.223-1.125-.778-4.272-2.316-4.99-4.72-2.197-1.932 5.735-1.005 7.375 2.419 4.284 3.516 9.456 2.949 14.504-.858-.302-1.915-1.312-2.468-2.077-1.076-1.49-.685-3.865-1.808-4.987-3.288-3.28-3.673 2.878-3.406 4.791.5 3.588 2.291 4.75 3.778 7.734 1.368 2.75-.445 6.069-.828 9.125-3.429-3.3-18.195-.543-14.396 4.502 1.978 2.633 4.318-2.377 6.598-2.25 4.083.225 6.235 5.295 5.967 8.846-.497-1.898-2.422-3.761-3.746-1.444-.897 1.573.635 4.26 1.374 5.823-.906-.444-5.372-2.52-6.246-2.161-3.44 1.414 1.3 4.151 2.537 4.698 4.224 1.868 6.887 3.92 8.2 8.992-2.367-.757-1.955-1.878-3.552-3.043-1.466-1.07-1.74-.518-3.09-.868-2.362-.611-5.441-1.427-8.11-.318-1.97.819-5.287 3.31-5.906 5.65-.757 2.874.844 3.606 2.904 2.143 2.45-1.739 2.897-5.105 6.583-4.96 1.769.068 3.52.995 4.64 2.325.835.993 1.323 2.43 2.12 3.495.703.94 2.564 2.259 2.957 3.254 1.418 3.595-1.276 6.795-3.083 9.314-.419-.554-3.477-1.758-4.11-1.878-2.94-.561-4.037.798-2.199 3.512.58.856 1.798 1.216 2.436 1.994.711.87 1.112 2.2 1.818 3.144 1.393 1.863 3.115 2.822 4.778 4.322-.613.41-.546-.624-1.102-.41-.404.156-1.107-.155-1.617.014-.828.275-.718 1.717-1.248 1.929-3.299 1.314-6.627-3.615-9.586-3.775-1.614-.088-2.975.994-2.2 3.022.538 1.412 2.87 2.178 4.036 2.767 3.246 1.644 6.478 2.868 9.948 1.607 2.797 2.438 6.159 3.64 9.674 3.675-2.011.998-4 2.235-4.702 4.721-1.189-1.23-4.108-6.952-5.633-2.462-1.045 3.087 3.723 6.871 5.92 8.262-2.555.755-4.677.907-7.277.607-1.357-.156-4.337-1.974-3.238 1.748 1.182 4.016 8.24 2.21 10.48 1.516.083-1.198-10.77 12.108-3.158 9.489 2.176-.748 2.385-5 5.418-5.373 3.503-.43 3.855 3.077 5.882 5.646 1.01 1.282 5.67 4.165 5.449 5.265-.191.952-2.75 1.496-3.293 2.828-.633 1.55-.347 2.746.532 4.078 1.538 2.333 4.36 2.691 6.592 3.604 3.164 1.295 4.31 2.867 5.73 6.217-2.502.12-9.62 7.36-5.258 8.648 1.625.48 1.372-.966 2.049-1.765l.821-1.545q.687-1.797 1.52-.22c.123-.031 1.61.388 1.947.409 1.708.105 2.85-1.192 4.266-1.893 1.023-.506 2.024-.418 2.795-1.586-.089.135.554-2.51.565-2.536.276-.637.985-.547 1.31-1.234-8.749-9.085-14.457-21.119-15.489-34.464C36.42 132.776 33 128.288 33 123v-13c0-5.035 3.1-9.345 7.497-11.126.531.374 1.27 0 1.503-.842-.463-1.506 3.296-27.854 13-34.876 3.618-2.438 23.008-2.619 42.313-2.606 19.096.014 38.108.195 41.687 2.606 9.704 7.022 13.463 33.37 13 34.876.233.843.972 1.216 1.503.842"></path></defs><mask id="ShortHairDreads02-mask2" fill="#fff"><use href="#ShortHairDreads02-path1"></use></mask><g id="Top/Short-Hair/Dreads-02" mask="url('#ShortHairDreads02-mask2')"><g transform="translate(-1)"><use id="Hair" fill="var(--avataaar-hair-color)" class="CustomColor" href="#ShortHairDreads02-path3" transform="translate(36)"></use></g></g></g>',1),T9=[A9];function D9(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...T9])}const L9={render:D9},F9=e.createStaticVNode('<g id="Top"><defs><path id="WinterHat1-path3" d="M0 0h264v280H0z"></path><path id="WinterHat1-path1" d="M120 54H20v101c0 5.523-4.477 10-10 10s-10-4.477-10-10V44C0 19.7 19.7 0 44 0h52c24.3 0 44 19.7 44 44v111c0 5.523-4.477 10-10 10s-10-4.477-10-10z"></path><rect id="WinterHat1-path2" width="118" height="36" x="74" y="50" rx="8"></rect></defs><g id="Top/Accessories/Winter-Hat-1" transform="translate(-1)"><g id="hat" transform="translate(63 20)"><path id="inside" fill="#F4F4F4" d="M1 48h22.671v105.664c0 6.26-5.075 11.336-11.335 11.336S1 159.925 1 153.664zm115.329 0H139v105.664c0 6.26-5.075 11.336-11.336 11.336-6.26 0-11.335-5.075-11.335-11.336z"></path><use fill="var(--avataaar-top-color)" class="CustomColor" href="#WinterHat1-path1"></use></g><g id="hat-front"><use filter="url('#WinterHat1-path2')" href="#WinterHat1-path2"></use><use fill="#F4F4F4" href="#WinterHat1-path2"></use></g></g></g>',1),$9=[F9];function _9(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...$9])}const P9={render:_9},O9=e.createStaticVNode('<g id="Top"><defs><filter id="filter5" width="107.7%" height="126.7%" x="-3.8%" y="-6.7%" filterUnits="objectBoundingBox"><feOffset dy="2" in="SourceAlpha" result="shadowOffsetOuter1"></feOffset><feColorMatrix in="shadowOffsetOuter1" result="shadowMatrixOuter1" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0"></feColorMatrix><feMerge><feMergeNode in="shadowMatrixOuter1"></feMergeNode><feMergeNode in="SourceGraphic"></feMergeNode></feMerge></filter><filter id="filter6" width="113.3%" height="113.8%" x="-6.7%" y="-3.4%" filterUnits="objectBoundingBox"><feOffset dy="2" in="SourceAlpha" result="shadowOffsetOuter1"></feOffset><feColorMatrix in="shadowOffsetOuter1" result="shadowMatrixOuter1" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0"></feColorMatrix><feMerge><feMergeNode in="shadowMatrixOuter1"></feMergeNode><feMergeNode in="SourceGraphic"></feMergeNode></feMerge></filter><filter id="filter7" width="113.3%" height="113.8%" x="-6.7%" y="-3.4%" filterUnits="objectBoundingBox"><feOffset dy="2" in="SourceAlpha" result="shadowOffsetOuter1"></feOffset><feColorMatrix in="shadowOffsetOuter1" result="shadowMatrixOuter1" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0"></feColorMatrix><feMerge><feMergeNode in="shadowMatrixOuter1"></feMergeNode><feMergeNode in="SourceGraphic"></feMergeNode></feMerge></filter><filter id="filter1" width="107.7%" height="115.4%" x="-3.8%" y="-3.8%" filterUnits="objectBoundingBox"><feOffset dy="2" in="SourceAlpha" result="shadowOffsetOuter1"></feOffset><feColorMatrix in="shadowOffsetOuter1" result="shadowMatrixOuter1" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0"></feColorMatrix><feMerge><feMergeNode in="shadowMatrixOuter1"></feMergeNode><feMergeNode in="SourceGraphic"></feMergeNode></feMerge></filter><filter id="filter2" width="105%" height="110%" x="-2.5%" y="-2.5%" filterUnits="objectBoundingBox"><feOffset dy="2" in="SourceAlpha" result="shadowOffsetOuter1"></feOffset><feColorMatrix in="shadowOffsetOuter1" result="shadowMatrixOuter1" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0"></feColorMatrix><feMerge><feMergeNode in="shadowMatrixOuter1"></feMergeNode><feMergeNode in="SourceGraphic"></feMergeNode></feMerge></filter><filter id="filter3" width="105.4%" height="110.8%" x="-2.7%" y="-2.7%" filterUnits="objectBoundingBox"><feOffset dy="2" in="SourceAlpha" result="shadowOffsetOuter1"></feOffset><feColorMatrix in="shadowOffsetOuter1" result="shadowMatrixOuter1" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0"></feColorMatrix><feMerge><feMergeNode in="shadowMatrixOuter1"></feMergeNode><feMergeNode in="SourceGraphic"></feMergeNode></feMerge></filter><filter id="filter4" width="103.6%" height="107.4%" x="-1.8%" y="-1.9%" filterUnits="objectBoundingBox"><feOffset dy="2" in="SourceAlpha" result="shadowOffsetOuter1"></feOffset><feColorMatrix in="shadowOffsetOuter1" result="shadowMatrixOuter1" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0"></feColorMatrix><feMerge><feMergeNode in="shadowMatrixOuter1"></feMergeNode><feMergeNode in="SourceGraphic"></feMergeNode></feMerge></filter><path id="LongHairFrida-path2" d="M0 0h264v280H0z"></path><path id="LongHairFrida-path1" d="M65.18 77.737c2.183-1.632 15.227-2.258 17.578-3.648.734-.434 1.303-.873 1.742-1.309.439.436 1.009.875 1.742 1.31 2.351 1.389 15.395 2.015 17.578 3.647 2.21 1.654 3.824 5.448 3.647 8.414-.212 3.56-4.106 12.052-13.795 13.03-2.114-2.353-5.435-3.87-9.172-3.87s-7.058 1.517-9.172 3.87c-9.69-.978-13.583-9.47-13.795-13.03-.176-2.966 1.437-6.76 3.647-8.414m.665 17.164.017.007zm79.018-38.916c-.389-5.955-1.585-11.833-2.629-17.699-.281-1.579-1.81-12.286-2.5-12.286-.232 9.11-1.032 18.08-2.064 27.14-.309 2.708-.632 5.416-.845 8.134-.171 2.196.135 4.848-.397 6.972-.679 2.706-4.08 5.232-6.725 6.165-6.6 2.326-12.105-7.303-17.742-10.12-7.318-3.656-19.897-4.527-27.38.239-7.645-4.766-20.224-3.895-27.542-.239-5.637 2.817-11.142 12.446-17.742 10.12-2.645-.933-6.047-3.459-6.725-6.165-.532-2.124-.226-4.776-.397-6.972-.213-2.718-.536-5.426-.845-8.135C30.298 44.08 29.497 35.11 29.265 26c-.689 0-2.218 10.707-2.5 12.286-1.043 5.866-2.24 11.744-2.627 17.7-.4 6.119.077 12.181 1.332 18.177a165 165 0 0 0 2.049 8.541c.834 3.143-.32 9.262.053 12.488.707 6.104 3.582 18.008 6.811 23.259 1.561 2.538 3.39 4.123 5.433 6.168 1.967 1.97 2.788 5.021 4.91 7.118 3.956 3.908 9.72 6.234 15.64 6.806C65.677 143.05 74.506 146 84.5 146s18.823-2.95 24.135-7.457c5.919-.572 11.683-2.898 15.64-6.806 2.121-2.097 2.942-5.149 4.909-7.118 2.042-2.045 3.872-3.63 5.433-6.168 3.229-5.251 6.104-17.155 6.81-23.259.374-3.226-.78-9.345.054-12.488.75-2.828 1.45-5.676 2.05-8.54 1.254-5.997 1.73-12.06 1.332-18.179"></path></defs><mask id="LongHairFrida-mask1" fill="#fff"><use href="#LongHairFrida-path2"></use></mask><g id="Top/Long-Hair/Frida" mask="url('#LongHairFrida-mask1')"><g transform="translate(-1)"><path fill="var(--avataaar-hair-color)" d="M189 97.937v.229a12.01 12.01 0 0 1 9.893 10.227A16.44 16.44 0 0 0 203 97.5c0-2.13-.404-4.166-1.138-6.035A16.45 16.45 0 0 0 207 79.5c0-5.836-3.03-10.964-7.602-13.898A16.4 16.4 0 0 0 201 58.5c0-7.635-5.185-14.058-12.227-15.941q.226-1.499.227-3.059c0-11.322-9.178-20.5-20.5-20.5-2.63 0-5.143.495-7.453 1.397C157.317 15.306 151.295 12 144.5 12c-4.262 0-8.22 1.3-11.5 3.527A20.4 20.4 0 0 0 121.5 12c-6.795 0-12.817 3.306-16.547 8.397A20.5 20.5 0 0 0 97.5 19C86.178 19 77 28.178 77 39.5q.001 1.56.227 3.059C70.185 44.442 65 50.865 65 58.5c0 2.192.427 4.284 1.203 6.197C60.75 67.39 57 73.007 57 79.5c0 5.438 2.63 10.261 6.689 13.267A16.5 16.5 0 0 0 63 97.5c0 4.175 1.55 7.987 4.107 10.893A12.01 12.01 0 0 1 77 98.166v-.23l.083.064c2.903-47.147 48.47-30.258 55.917-56.664 7.447 26.406 53.014 9.517 55.917 56.664zm-80 82.674v4.2a16.6 16.6 0 0 1-2.5.189c-6.82 0-12.675-4.139-15.188-10.042C82.754 174.348 76 167.213 76 158.5c0-1.471.192-2.897.554-4.254C69.858 152.144 65 145.889 65 138.5c0-3.744 1.247-7.198 3.35-9.967a12.01 12.01 0 0 0 8.859 6.334c1.743 20.248 14.26 37.416 31.791 45.744m48 0v4.2q1.224.188 2.5.189c6.82 0 12.675-4.139 15.188-10.042 8.558-.61 15.312-7.745 15.312-16.458 0-1.471-.192-2.897-.554-4.254C196.142 152.144 201 145.889 201 138.5c0-3.744-1.247-7.198-3.35-9.967a12.01 12.01 0 0 1-8.859 6.334c-1.743 20.248-14.26 37.416-31.791 45.744" class="CustomColor"></path><g id="Ornamentos" transform="translate(67)"><g id="hoja" filter="url('#filter5')" opacity=".9" transform="scale(1 -1)rotate(-20 -137.666 -331.914)"><path id="leaf" fill="#5DD362" d="M3.611 10S1.95 0 13 0c7.222 0 12.278 5.714 12.278 5.714s-5.417 8.572-13.722 8.572C5.056 14.286 3.61 10 3.61 10Z"></path><path id="leaf" fill="#42BC53" d="M25.278 5.714s-5.417 8.572-13.722 8.572c-4.334 0-6.428-1.929-7.367-3.215-2.095 1.786-2.817 3.429-2.817 3.5-.072.286-.36.429-.65.429-.072 0-.216 0-.289-.071-.36-.143-.505-.572-.36-.929.071-.214 1.877-4.143 7.366-6.714 7.944-4.143 17.839-1.572 17.839-1.572"></path></g><g id="hoja" filter="url('#filter6')" transform="rotate(60 44.13 92.434)"><path id="leaf" fill="#5DD362" d="M15 12C15 5.9 9 0 9 0S1.7 4.3 1 13s5.8 10.7 5.8 10.7S15 20.8 15 12"></path><path id="leaf" fill="#42BC53" d="M8 29c.1 0 .2 0 .3-.1.5-.2.8-.8.6-1.3-.5-1.5-.9-2.9-1.1-4.4C10 22.2 15 18.9 15 12 15 5.9 9 0 9 0s-.4 1.1-1 3c-.2.5-5.2 13.6-.9 25.3.1.4.5.7.9.7"></path></g><g id="hoja" filter="url('#filter7')" transform="rotate(-120 31.465 30.827)"><path id="leaf" fill="#5DD362" d="M15 12C15 5.9 9 0 9 0S1.7 4.3 1 13s5.8 10.7 5.8 10.7S15 20.8 15 12"></path><path id="leaf" fill="#42BC53" d="M8 29c.1 0 .2 0 .3-.1.5-.2.8-.8.6-1.3-.5-1.5-.9-2.9-1.1-4.4C10 22.2 15 18.9 15 12 15 5.9 9 0 9 0s-.4 1.1-1 3c-.2.5-5.2 13.6-.9 25.3.1.4.5.7.9.7"></path></g><g id="Flor" filter="url('#filter1')" transform="matrix(-1 0 0 1 26 29)"><path fill="#4ACAD3" d="M24.424 20.956a5.17 5.17 0 0 0 .997-3.853 5.17 5.17 0 0 0-2.02-3.43c-.299-.225-.693-.41-1.141-.567.453-.141.854-.313 1.16-.527a5.206 5.206 0 0 0 1.277-7.243 5.206 5.206 0 0 0-7.242-1.277c-.306.215-.604.533-.893.911.006-.475-.033-.909-.143-1.267a5.16 5.16 0 0 0-2.532-3.07A5.17 5.17 0 0 0 9.926.25a5.207 5.207 0 0 0-3.453 6.493c.11.356.314.735.582 1.124-.448-.151-.869-.243-1.241-.25a5.206 5.206 0 0 0-5.29 5.11 5.18 5.18 0 0 0 .937 3.066 5.2 5.2 0 0 0 4.171 2.223c.373.006.796-.071 1.25-.206-.283.38-.5.75-.621 1.103a5.2 5.2 0 0 0 .662 4.68 5.17 5.17 0 0 0 2.561 1.93 5.206 5.206 0 0 0 6.61-3.225c.12-.352.178-.779.19-1.252.273.386.56.708.857.932a5.17 5.17 0 0 0 3.853.997 5.16 5.16 0 0 0 3.43-2.02Z"></path><path fill="#FFF" d="M11.178 8.64a1.444 1.444 0 1 1 2.763-.845c.233.763-.232 4.182-.232 4.182s-2.298-2.574-2.53-3.337Zm-2.242 5.797a1.444 1.444 0 1 1 .05-2.888c.798.014 3.905 1.513 3.905 1.513s-3.158 1.389-3.955 1.375m6.057-2.018s1.738-2.98 2.392-3.438a1.444 1.444 0 1 1 1.657 2.366c-.654.458-4.049 1.072-4.049 1.072m-3.073 6.838a1.444 1.444 0 0 1-.895-1.836c.26-.755 2.646-3.246 2.646-3.246s.345 3.432.086 4.187a1.445 1.445 0 0 1-1.837.895m5.32-1.96c-.638-.48-2.27-3.52-2.27-3.52s3.37.732 4.008 1.212a1.444 1.444 0 1 1-1.738 2.307Z"></path></g><g id="Flor" filter="url('#filter2')" transform="translate(20 16)"><path fill="#FDB599" d="m30.526 33.098.258-2.314 2.314-.26c2.847-.319 5.11-2.116 6.054-4.81 1.066-3.042.065-6.359-2.547-8.281l-1.874-1.38.932-2.134c1.229-2.806.645-5.895-1.52-8.061-2.167-2.166-5.256-2.75-8.063-1.522l-2.133.933-1.38-1.875C20.644.786 17.327-.218 14.284.848c-2.692.943-4.49 3.207-4.809 6.054l-.26 2.313-2.313.26c-2.847.319-5.11 2.117-6.054 4.81-.938 2.676-.298 5.56 1.669 7.528a8 8 0 0 0 .877.753l1.875 1.38-.934 2.134c-1.226 2.807-.643 5.896 1.523 8.062s5.255 2.749 8.062 1.523l2.134-.934 1.38 1.875c1.917 2.61 5.24 3.612 8.283 2.547 2.693-.945 4.49-3.208 4.809-6.055"></path><path fill="#FFF" d="M22.882 25.19a1.44 1.44 0 0 1-2.782.746C19.894 25.17 20 20 20 20s-2.492 4.529-3.055 5.091a1.44 1.44 0 0 1-2.036-2.036C15.47 22.492 20 20 20 20s-5.168.106-5.936-.1a1.44 1.44 0 0 1 .745-2.782C15.577 17.324 20 20 20 20s-2.676-4.423-2.882-5.19a1.44 1.44 0 0 1 2.782-.746c.206.768.1 5.936.1 5.936s2.492-4.529 3.055-5.091a1.44 1.44 0 0 1 2.036 2.036C24.53 17.508 20 20 20 20s5.169-.106 5.936.1a1.44 1.44 0 0 1-.745 2.782C24.423 22.676 20 20 20 20s2.675 4.422 2.882 5.19"></path></g><g id="Flor" filter="url('#filter3')" transform="translate(89 26)"><path fill="#F7D30C" d="M34.758 29.822a7.36 7.36 0 0 0 1.418-5.483 7.35 7.35 0 0 0-2.874-4.88c-.426-.321-.987-.584-1.625-.808.645-.201 1.216-.445 1.652-.75 3.342-2.34 4.158-6.964 1.817-10.307-2.34-3.342-6.964-4.157-10.306-1.817-.436.306-.86.758-1.27 1.296.008-.676-.048-1.294-.204-1.803A7.35 7.35 0 0 0 19.763.9a7.36 7.36 0 0 0-5.638-.543C10.223 1.55 8.019 5.695 9.21 9.597c.156.507.447 1.046.83 1.6-.638-.216-1.237-.346-1.768-.355-4.08-.071-7.456 3.19-7.528 7.27a7.37 7.37 0 0 0 1.334 4.363 7.4 7.4 0 0 0 5.936 3.164c.53.01 1.133-.1 1.777-.293-.4.54-.71 1.069-.883 1.57a7.4 7.4 0 0 0 .943 6.66 7.36 7.36 0 0 0 3.645 2.746c3.858 1.329 8.077-.73 9.405-4.588.173-.502.255-1.109.271-1.782.39.549.797 1.007 1.22 1.326a7.35 7.35 0 0 0 5.484 1.418 7.35 7.35 0 0 0 4.88-2.874Z"></path><path fill="#FFF" d="M15.908 12.295a2.055 2.055 0 1 1 3.93-1.202c.332 1.086-.33 5.95-.33 5.95s-3.269-3.662-3.6-4.748m-3.192 8.25a2.055 2.055 0 1 1 .072-4.11c1.135.02 5.558 2.153 5.558 2.153s-4.495 1.977-5.63 1.957m8.62-2.872s2.474-4.241 3.404-4.892a2.055 2.055 0 1 1 2.358 3.367c-.93.651-5.762 1.525-5.762 1.525m-4.373 9.731a2.055 2.055 0 0 1-1.274-2.613c.37-1.073 3.765-4.62 3.765-4.62s.492 4.886.123 5.96a2.056 2.056 0 0 1-2.614 1.273m7.57-2.79c-.907-.683-3.23-5.008-3.23-5.008s4.797 1.042 5.704 1.725a2.055 2.055 0 1 1-2.474 3.283"></path></g><g id="Flor" filter="url('#filter4')" transform="translate(48)"><path fill="#FF7398" d="M54.138 31.546c1.825-6.983-5.994-12.414-8.953-14.184.514-2.934 1.672-12.561-4.468-16.116C34.612-2.288 26.924 3.45 24.6 5.394q-.3-.189-.703-.423C20.83 3.196 13.13-.381 7.85 4.736 2.205 10.204 5.537 18.74 6.805 21.434c-2.16 2.01-8.384 8.592-5.818 15.59.706 1.929 2.011 3.456 3.882 4.538 4.03 2.334 9.607 1.958 11.723 1.707.993 1.88 3.83 6.712 7.888 9.061 1.67.967 3.375 1.413 5.07 1.325 6.905-.358 9.916-9.995 10.67-12.912 2.861-.396 12.086-2.199 13.918-9.197"></path><path fill="#FFF" d="M27.764 25.603s3.685 8.188.354 8.71c-3.334.521-1.46-8.591-1.46-8.591s-7.112 6.007-8.15 3.028c-1.04-2.979 7.7-4.048 7.7-4.048s-7.987-4.692-5.393-6.836 6.216 6.092 6.216 6.092 1.945-8.92 4.82-7.254c2.876 1.664-3.857 7.811-3.857 7.811s8.877-.99 8.37 2.352c-.505 3.342-8.6-1.264-8.6-1.264"></path></g></g><g id="Arete" transform="translate(182 129)"><rect id="Cadenita" width="2" height="39" x="9" y="0" fill="#E6E6E6" rx="1"></rect><path id="Rayo" fill="#9177FF" d="M20 37h-9.43L17 20H6L0 41h8.636L4 60z"></path></g></g></g></g>',1),R9=[O9];function H9(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...R9])}const z9={render:H9},j9=e.createStaticVNode('<g id="Top"><defs><path id="ShortHairFrizzle-path2" d="M0 0h264v280H0z"></path><path id="ShortHairFrizzle-path1" d="M90.91 55.361h84.176c18.247-10.527 21.673-29.21 8.764-45.435-3.214-4.04-8.764 11.75-25.821 12.724s-15.42-6.3-33.571-3.576c-18.152 2.724-16.146 17.304-27.99 20.803q-11.846 3.499-5.558 15.484"></path></defs><mask id="ShortHairFrizzle-mask2" fill="#fff"><use href="#ShortHairFrizzle-path2"></use></mask><g id="Top/Short-Hair/Frizzle" mask="url('#ShortHairFrizzle-mask2')"><use fill="var(--avataaar-hair-color)" class="CustomColor" href="#ShortHairFrizzle-path1" transform="translate(-1)"></use></g></g>',1),G9=[j9];function q9(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...G9])}const I9={render:q9},W9=e.createStaticVNode('<g id="Top"><defs><path id="WinterHat2-path3" d="M0 0h264v280H0z"></path><path id="WinterHat2-path1" d="M72 21c54.773 0 72 47.803 72 82.045v73.865c0 19.495-22.633 19.537-22.633-10.921V86.535c0-6.075-3.732-9-9.816-9H32.45c-6.084 0-9.816 2.925-9.816 9v79.454C22.633 196.447 0 196.405 0 176.91v-73.865C0 68.803 17.227 21 72 21"></path><path id="WinterHat2-path2" d="M101.428 98.169c-2.513 2.294-5.19 3.325-8.575 2.604-.582-.124-2.957-4.538-8.853-4.538-5.897 0-8.27 4.414-8.853 4.538-3.385.721-6.062-.31-8.576-2.604-4.725-4.313-8.654-10.26-6.293-16.75 1.23-3.382 3.232-7.095 6.873-8.173 3.887-1.15 9.346-.002 13.264-.788 1.27-.254 2.656-.707 3.585-1.458.929.75 2.316 1.204 3.585 1.458 3.918.786 9.376-.362 13.264.788 3.64 1.078 5.642 4.79 6.873 8.173 2.361 6.49-1.568 12.437-6.294 16.75M140.081 26c-3.41 8.4-2.093 18.858-2.724 27.676-.513 7.167-2.02 17.91-8.384 22.539-3.255 2.367-9.179 6.345-13.431 5.235-2.927-.764-3.24-9.16-7.087-12.303-4.363-3.565-9.812-5.131-15.306-4.89-2.37.105-7.165.08-9.15 1.903-1.983-1.823-6.777-1.798-9.148-1.902-5.494-.242-10.943 1.324-15.306 4.889-3.847 3.143-4.16 11.54-7.087 12.303-4.252 1.11-10.176-2.868-13.431-5.235-6.365-4.63-7.87-15.372-8.384-22.54-.63-8.817.686-19.275-2.724-27.675-1.66 0-.565 16.129-.565 16.129v20.356c.032 15.288 9.581 38.17 30.754 46.908C63.286 111.53 75.015 115 84 115s20.714-3.14 25.892-5.277c21.173-8.737 30.722-31.95 30.754-47.238V42.13S141.74 26 140.081 26"></path></defs><g id="Top/Accessories/Winter-Hat-2" transform="translate(-1)"><g id="hat" transform="translate(61)"><g id="string" fill="#F4F4F4" transform="translate(0 176)"><circle id="puff" cx="9" cy="65" r="9"></circle><path d="M8 0h2v58H8z"></path></g><g id="string" fill="#F4F4F4" transform="translate(126 168)"><circle id="puff" cx="9" cy="65" r="9"></circle><path d="M8 0h2v58H8z"></path></g><circle id="puff" cx="72" cy="20" r="20" fill="#F4F4F4"></circle><mask id="WinterHat2-mask2" fill="#fff"><use href="#WinterHat2-path1"></use></mask><use fill="var(--avataaar-top-color)" class="CustomColor" href="#WinterHat2-path1"></use><path id="color-dark" fill="#000" d="M-1 21h146v46H-1z" mask="url('#WinterHat2-mask2')" opacity=".2"></path><g id="light-triangles" fill="#FFF" opacity=".5" transform="translate(29 32)"><path id="Triangle" d="M12.5 0 25 18H0z" transform="rotate(180 12.5 9)"></path><path id="Triangle" d="M43.5 0 56 18H31z" transform="rotate(180 43.5 9)"></path><path id="Triangle" d="M74.5 0 87 18H62z" transform="rotate(180 74.5 9)"></path></g><g id="dark-triangles" fill="#000" opacity=".5" transform="translate(13 41)"><path id="Triangle" d="M12.5 0 25 18H0zm31 0L56 18H31zm31 0L87 18H62zm31 0L118 18H93z"></path></g></g></g></g>',1),U9=[W9];function Z9(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...U9])}const Y9={render:Z9},X9=e.createStaticVNode('<g id="Top"><defs><path id="LongHairFro-path1" d="M0 0h264v280H0z"></path><path id="LongHairFro-path2" d="M180.666 104.495A11.95 11.95 0 0 1 182 110v13c0 6.019-4.43 11.002-10.209 11.867-1.743 20.248-14.26 37.416-31.791 45.744v9.443c3.832 1.896 8.059 2.946 12.5 2.946 7.621 0 14.61-3.093 20.059-8.242q2.193.241 4.441.242c18.39 0 34.26-12.316 41.622-30.116C224.9 149.814 229 141.454 229 132a32 32 0 0 0-.426-5.223C230.786 120.339 232 113.33 232 106c0-12.866-3.739-24.736-10.046-34.275Q222 70.869 222 70c0-10.957-5.507-20.443-13.53-25.043-7.31-17.588-22.73-29.966-40.773-30.9C163.274 9.075 157.201 6 150.5 6q-1.427.001-2.812.182C137.91 2.196 127.211 0 116 0S94.09 2.196 84.312 6.182A22 22 0 0 0 81.5 6c-6.701 0-12.774 3.075-17.197 8.057-18.044.934-33.463 13.312-40.774 30.9C15.507 49.557 10 59.043 10 70q0 .87.046 1.725C3.739 81.265 0 93.135 0 106c0 7.331 1.214 14.34 3.426 20.777A32 32 0 0 0 3 132c0 9.454 4.1 17.814 10.378 22.884C20.74 172.684 36.61 185 55 185q2.248-.001 4.441-.242C64.889 189.907 71.879 193 79.5 193c4.441 0 8.668-1.05 12.5-2.946v-9.443c-17.53-8.328-30.048-25.496-31.791-45.744C54.43 134.002 50 129.02 50 123v-13c0-1.983.481-3.854 1.333-5.502 2.702-.802 5.677-3.053 8.658-6.33l.009-.002v-.009c6.866-7.556 13.755-20.555 17.37-33.822 11.116 1.737 24.535 2.752 38.984 2.752 14.159 0 27.33-.975 38.314-2.649 3.62 13.226 10.486 26.172 17.332 33.71v.018l.02.003c2.976 3.272 5.947 5.522 8.646 6.326"></path><path id="LongHairFro-path3" d="M65.18 77.737c2.183-1.632 15.227-2.258 17.578-3.648.734-.434 1.303-.873 1.742-1.309.439.436 1.009.875 1.742 1.31 2.351 1.389 15.395 2.015 17.578 3.647 2.21 1.654 3.824 5.448 3.647 8.414-.212 3.56-4.106 12.052-13.795 13.03-2.114-2.353-5.435-3.87-9.172-3.87s-7.058 1.517-9.172 3.87c-9.69-.978-13.583-9.47-13.795-13.03-.176-2.966 1.437-6.76 3.647-8.414m.665 17.164.017.007zm79.018-38.916c-.389-5.955-1.585-11.833-2.629-17.699-.281-1.579-1.81-12.286-2.5-12.286-.232 9.11-1.032 18.08-2.064 27.14-.309 2.708-.632 5.416-.845 8.134-.171 2.196.135 4.848-.397 6.972-.679 2.706-4.08 5.232-6.725 6.165-6.6 2.326-12.105-7.303-17.742-10.12-7.318-3.656-19.897-4.527-27.38.239-7.645-4.766-20.224-3.895-27.542-.239-5.637 2.817-11.142 12.446-17.742 10.12-2.645-.933-6.047-3.459-6.725-6.165-.532-2.124-.226-4.776-.397-6.972-.213-2.718-.536-5.426-.845-8.135C30.298 44.08 29.497 35.11 29.265 26c-.689 0-2.218 10.707-2.5 12.286-1.043 5.866-2.24 11.744-2.627 17.7-.4 6.119.077 12.181 1.332 18.177a165 165 0 0 0 2.049 8.541c.834 3.143-.32 9.262.053 12.488.707 6.104 3.582 18.008 6.811 23.259 1.561 2.538 3.39 4.123 5.433 6.168 1.967 1.97 2.788 5.021 4.91 7.118 3.956 3.908 9.72 6.234 15.64 6.806C65.677 143.05 74.506 146 84.5 146s18.823-2.95 24.135-7.457c5.919-.572 11.683-2.898 15.64-6.806 2.121-2.097 2.942-5.149 4.909-7.118 2.042-2.045 3.872-3.63 5.433-6.168 3.229-5.251 6.104-17.155 6.81-23.259.374-3.226-.78-9.345.054-12.488.75-2.828 1.45-5.676 2.05-8.54 1.254-5.997 1.73-12.06 1.332-18.179"></path></defs><mask id="LongHairFro-mask1" fill="#fff"><use href="#LongHairFro-path1"></use></mask><g id="Top/Long-Hair/Fro" mask="url('#LongHairFro-mask1')"><g transform="translate(-1)"><path id="Shadow" fill="#000" d="M67 109.778c9.038-1.06 21.922-20.447 27.37-40.443 11.116 1.737 24.535 2.752 38.984 2.752 14.159 0 27.33-.975 38.314-2.649 5.462 19.953 18.31 39.269 27.332 40.339V89c0-22.884-11.647-43.048-29.336-54.887-.528 2.482-.88 5.222-1.04 8.184-10.34-1.404-22.396-2.21-35.27-2.21-13.164 0-25.472.842-35.964 2.306-.158-3-.512-5.775-1.047-8.286C78.65 45.947 67 66.113 67 89z" opacity=".16"></path><use id="Hair" fill="var(--avataaar-hair-color)" class="CustomColor" href="#LongHairFro-path2" transform="translate(17)"></use></g></g></g>',1),K9=[X9];function Q9(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...K9])}const J9={render:Q9},eu=e.createStaticVNode('<g id="Top"><defs><path id="ShortHairShaggy-path2" d="M0 0h264v280H0z"></path><path id="ShortHairShaggy-path1" d="M198.747 37.856c-5.14-3.832-11.219-7.116-17.56-8.378-6.446-1.282-10.358-1.593-16.704-.073-1.633.392-2.184.78-3.62-.148-1.212-.783-9.663-9.49-35.421-4.657-26.035 4.885-33.77 44.075-43.427 45.566-3.48.537-7.781-.384-7.916-2.527-3.963 6.034-5.008 14.007-3.327 21.074 1.447 6.086 4.497 11.804 9.989 15.137 4.726 2.867 11.26 4.116 16.72 3.587 2.486-.24 4.746-.763 7.033-1.766 2.759-1.21 4.957-3.39 7.664-4.543a54 54 0 0 1-9.176 6.418c-1.64.907-3.304 1.532-5.113 2.024-1.236.336-3.761 1.481-4.956 1.182 7.807 1.396 15.16.18 22.32-3.163 3.23-1.508 6.338-3.332 9.19-5.476 2.833-2.13 6.095-4.307 8.31-7.11-.93 1.204.698-.586.913-.805a67 67 0 0 0 1.787-1.895c1.002-1.104 1.998-2.228 2.93-3.391 1.995-2.486 3.852-5.082 5.508-7.803 1.678-2.756 8.359-13.873 10.375-16.49-1.905 5.708-3.98 11.418-6.407 16.925 4.713-1.47 9.284-5.544 12.295-9.34 3.392-4.276 5.4-9.268 6.108-14.666 3.826 10.416 12.785 18.63 22.032 24.295-2.003-3.73-5.055-6.885-7.052-10.678 9.191 9.329 24.568 13.893 28.595 27.574 1.033-4.758 4.353-8.58 5.348-13.433 1.104-5.389 1.896-11.11 1.72-16.616-.396-12.242-8.631-23.723-18.158-30.824"></path></defs><mask id="ShortHairShaggy-mask2" fill="#fff"><use href="#ShortHairShaggy-path2"></use></mask><g id="Top/Short-Hair/Shaggy" mask="url('#ShortHairShaggy-mask2')"><use fill="var(--avataaar-hair-color)" class="CustomColor" href="#ShortHairShaggy-path1" transform="matrix(-1 0 0 1 285.93 0)"></use></g></g>',1),tu=[eu];function nu(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...tu])}const au={render:nu},ou=e.createStaticVNode('<g id="Top"><defs><path id="WinterHat3-path3" d="M0 0h264v280H0z"></path><path id="WinterHat3-path1" d="M66 0c36.45 0 66 29.55 66 66v5H0v-5C0 29.55 29.55 0 66 0"></path><path id="WinterHat3-path2" d="M67.285 61.451Q91.202 44 133.073 44q41.869 0 65.659 17.45A8 8 0 0 1 202 67.9v30.47a4 4 0 0 1-6.135 3.383Q170.902 85.999 133.805 86q-37.383 0-63.73 15.994A4 4 0 0 1 64 98.575V67.914a8 8 0 0 1 3.285-6.463"></path></defs><g id="Top/Accessories/Winter-Hat-3" transform="translate(-1)"><g id="hat" transform="translate(67 12)"><circle id="puff" cx="66" cy="8" r="20" fill="#F4F4F4"></circle><use fill="var(--avataaar-top-color)" class="CustomColor" href="#WinterHat3-path1"></use></g><g id="hat-front"><use filter="url('#WinterHat3-path2')" href="#WinterHat3-path2"></use><use fill="#F4F4F4" href="#WinterHat3-path2"></use></g></g></g>',1),ru=[ou];function iu(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...ru])}const su={render:iu},lu=e.createStaticVNode('<g id="Top"><defs><path id="LongHairFroBand-path1" d="M0 0h264v280H0z"></path><path id="LongHairFroBand-path2" d="M80.02 73.81A55.9 55.9 0 0 0 77 92v6.166c-5.675.952-10 5.888-10 11.834v13c0 6.019 4.43 11.002 10.209 11.867 1.743 20.248 14.26 37.416 31.791 45.744v10.944A36.4 36.4 0 0 1 93.5 195a36.35 36.35 0 0 1-23.19-8.312 54 54 0 0 1-5.81.312c-21.094 0-39.337-12.208-48.049-29.945C8.934 151.924 4 143.288 4 133.5c0-2.115.23-4.175.667-6.159A57.9 57.9 0 0 1 1 107c0-12.756 4.118-24.55 11.097-34.127A29 29 0 0 1 12 70.5c0-11.297 6.573-21.06 16.104-25.67 8.433-18.128 26.454-30.894 47.546-31.78A28.4 28.4 0 0 1 95.5 5c2.327 0 4.589.279 6.754.805C111.776 2.058 122.148 0 133 0c10.346 0 20.255 1.87 29.408 5.292A29 29 0 0 1 166.5 5a28.4 28.4 0 0 1 19.85 8.05c21.092.886 39.113 13.652 47.546 31.78C243.426 49.44 250 59.203 250 70.5q0 1.2-.097 2.373C256.882 82.45 261 94.243 261 107a57.9 57.9 0 0 1-3.667 20.341A28.6 28.6 0 0 1 258 133.5c0 9.788-4.934 18.424-12.451 23.555C236.837 174.792 218.594 187 197.5 187a54 54 0 0 1-5.81-.312A36.35 36.35 0 0 1 168.5 195c-4.018 0-7.884-.65-11.5-1.849v-12.54c17.53-8.328 30.048-25.496 31.791-45.744C194.57 134.002 199 129.02 199 123v-13c0-5.946-4.325-10.882-10-11.834V92c0-5.441-.776-10.702-2.224-15.676l1.377 12.87-11.34-24-45.136-19.523-30.114 10.557L80.065 76.42l-.045-2.609Z"></path></defs><mask id="LongHairFroBand-mask1" fill="#fff"><use href="#LongHairFroBand-path1"></use></mask><g id="Top/Long-Hair/Fro-+-Band" mask="url('#LongHairFroBand-mask1')"><g transform="translate(-1)"><use fill="var(--avataaar-hair-color)" class="CustomColor" href="#LongHairFroBand-path2"></use><path id="Band" fill="#92D9FF" stroke="none" d="M76.631 98.975A48.6 48.6 0 0 1 76 91.152C76 62.35 101.296 39 132.5 39S189 62.35 189 91.152c0 2.659-.216 5.271-.631 7.823-4.09-25.092-27.545-44.33-55.869-44.33s-51.78 19.238-55.869 44.33"></path></g></g></g>',1),cu=[lu];function du(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...cu])}const uu={render:du},mu=e.createStaticVNode('<g id="Top"><defs><path id="ShortHairShaggyMullet-path1" d="M0 0h264v280H0z"></path><path id="ShortHairShaggyMullet-path2" d="M175.126 166.898c.715 2.24 1.749 4.333 3.43 5.788 1.62 1.404 4.512 1.06 6.543 1.117 1.672.048 3.346.053 5.016-.02.839-.036 1.213 1.015.534 1.499q-.195.139-.39.262a39 39 0 0 1-3.25 1.812c-2.524 1.258-5.188 2.244-7.982 2.734-1.916.337-3.816.4-5.654.177a9.8 9.8 0 0 0 1.699 1.94c1.73 1.501 4.816 1.133 6.983 1.194 1.784.052 3.57.057 5.353-.02.895-.039 1.295 1.084.57 1.601a8 8 0 0 1-.416.28 42 42 0 0 1-3.469 1.937c-2.693 1.345-5.536 2.398-8.518 2.922-5.5.966-10.87-.177-15.194-3.708a25 25 0 0 1-3.381-3.36v-2.442a56.2 56.2 0 0 0 18.126-13.713m-93.81-15.304a140 140 0 0 1-2.31 4.597c-4.795 9.11-10.764 20.602-22.507 21.405-1.088.075-1.519 1.347-.67 1.992 11.12 8.453 36.432 13.6 45.445 11.982a54 54 0 0 0 7.726-1.96v-8.999a56.2 56.2 0 0 1-27.685-29.017Zm114.59-82.914c.175 5.507-.617 11.227-1.721 16.616-.995 4.852-4.315 8.675-5.348 13.433-4.027-13.68-19.404-18.245-28.595-27.574 1.997 3.793 5.049 6.948 7.052 10.678-9.247-5.665-18.206-13.88-22.032-24.295-.707 5.398-2.716 10.39-6.108 14.666-3.011 3.796-7.582 7.87-12.295 9.34 2.428-5.507 4.502-11.217 6.407-16.925-2.016 2.617-8.697 13.734-10.375 16.49-1.656 2.72-3.513 5.317-5.507 7.803-.933 1.163-1.929 2.287-2.93 3.391a67 67 0 0 1-1.788 1.895c-.215.219-1.842 2.01-.912.806-2.216 2.802-5.478 4.979-8.31 7.109-2.853 2.144-5.96 3.968-9.192 5.476-7.159 3.343-14.512 4.56-22.32 3.163 1.196.299 3.721-.846 4.957-1.182 1.809-.492 3.474-1.117 5.113-2.024a54 54 0 0 0 9.176-6.418c-2.707 1.152-4.905 3.334-7.664 4.543-2.287 1.003-4.547 1.526-7.032 1.766-5.462.529-11.995-.72-16.721-3.587-5.492-3.333-8.542-9.051-9.99-15.137-1.68-7.067-.635-15.04 3.328-21.074.135 2.143 4.436 3.064 7.916 2.527 9.658-1.49 15.403-38.048 40.427-44.566 19.961-5.2 34.21 3.874 35.42 4.657 1.437.928 1.988.54 3.621.148 6.346-1.52 13.258-2.209 19.705-.927 6.34 1.262 12.418 4.546 17.559 8.378 9.527 7.101 17.762 18.582 18.159 30.824"></path><path id="ShortHairShaggyMullet-path3" d="M65.18 77.737c2.183-1.632 15.227-2.258 17.578-3.648.734-.434 1.303-.873 1.742-1.309.439.436 1.009.875 1.742 1.31 2.351 1.389 15.395 2.015 17.578 3.647 2.21 1.654 3.824 5.448 3.647 8.414-.212 3.56-4.106 12.052-13.795 13.03-2.114-2.353-5.435-3.87-9.172-3.87s-7.058 1.517-9.172 3.87c-9.69-.978-13.583-9.47-13.795-13.03-.176-2.966 1.437-6.76 3.647-8.414m.665 17.164.017.007zm79.018-38.916c-.389-5.955-1.585-11.833-2.629-17.699-.281-1.579-1.81-12.286-2.5-12.286-.232 9.11-1.032 18.08-2.064 27.14-.309 2.708-.632 5.416-.845 8.134-.171 2.196.135 4.848-.397 6.972-.679 2.706-4.08 5.232-6.725 6.165-6.6 2.326-12.105-7.303-17.742-10.12-7.318-3.656-19.897-4.527-27.38.239-7.645-4.766-20.224-3.895-27.542-.239-5.637 2.817-11.142 12.446-17.742 10.12-2.645-.933-6.047-3.459-6.725-6.165-.532-2.124-.226-4.776-.397-6.972-.213-2.718-.536-5.426-.845-8.135C30.298 44.08 29.497 35.11 29.265 26c-.689 0-2.218 10.707-2.5 12.286-1.043 5.866-2.24 11.744-2.627 17.7-.4 6.119.077 12.181 1.332 18.177a165 165 0 0 0 2.049 8.541c.834 3.143-.32 9.262.053 12.488.707 6.104 3.582 18.008 6.811 23.259 1.561 2.538 3.39 4.123 5.433 6.168 1.967 1.97 2.788 5.021 4.91 7.118 3.956 3.908 9.72 6.234 15.64 6.806C65.677 143.05 74.506 146 84.5 146s18.823-2.95 24.135-7.457c5.919-.572 11.683-2.898 15.64-6.806 2.121-2.097 2.942-5.149 4.909-7.118 2.042-2.045 3.872-3.63 5.433-6.168 3.229-5.251 6.104-17.155 6.81-23.259.374-3.226-.78-9.345.054-12.488.75-2.828 1.45-5.676 2.05-8.54 1.254-5.997 1.73-12.06 1.332-18.179"></path></defs><mask id="ShortHairShaggyMullet-mask1" fill="#fff"><use href="#ShortHairShaggyMullet-path1"></use></mask><g id="Top/Short-Hair/Shaggy-Mullet" mask="url('#ShortHairShaggyMullet-mask1')"><g transform="translate(-1)"><use fill="var(--avataaar-hair-color)" class="CustomColor" href="#ShortHairShaggyMullet-path2"></use><path id="Shadow" fill="#000" stroke="none" d="M175.126 166.898c.715 2.24 1.749 4.333 3.43 5.788 1.62 1.404 4.512 1.06 6.543 1.117 1.672.048 3.346.053 5.016-.02.839-.036 1.213 1.015.534 1.499q-.195.139-.39.262a39 39 0 0 1-3.25 1.812c-2.524 1.258-5.188 2.244-7.982 2.734-1.916.337-3.816.4-5.654.177a9.8 9.8 0 0 0 1.699 1.94c1.73 1.501 4.816 1.133 6.983 1.194 1.784.052 3.57.057 5.353-.02.895-.039 1.295 1.084.57 1.601a8 8 0 0 1-.416.28 42 42 0 0 1-3.469 1.937c-2.693 1.345-5.536 2.398-8.518 2.922-5.5.966-10.87-.177-15.194-3.708a25 25 0 0 1-3.381-3.36v-2.442a56.2 56.2 0 0 0 18.126-13.713m-93.81-15.304a140 140 0 0 1-2.31 4.597c-4.795 9.11-10.764 20.602-22.507 21.405-1.088.075-1.519 1.347-.67 1.992 11.12 8.453 36.432 13.6 45.445 11.982a54 54 0 0 0 7.726-1.96v-8.999a56.2 56.2 0 0 1-27.685-29.017Z" opacity=".16"></path></g></g></g>',1),fu=[mu];function hu(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...fu])}const pu={render:hu},gu=e.createStaticVNode('<g id="Top"><defs><path id="WinterHat4-path5" d="M0 0h264v280H0z"></path><path id="WinterHat4-path1" d="M129.66 38.357A60.8 60.8 0 0 1 134 61v8H2v-8c0-8.025 1.55-15.688 4.366-22.707Q-3.238 18.099 2.636 5.12q11.257-3.414 26.08 5.419C38.486 3.888 50.289 0 63 0h10c12.722 0 24.535 3.895 34.31 10.557q14.84-8.856 26.11-5.437 5.883 12.999-3.76 33.237"></path><path id="WinterHat4-path2" d="M28.716 10.539c-9.957 6.778-17.804 16.426-22.35 27.754Q-3.238 18.099 2.636 5.12q11.257-3.414 26.08 5.419m100.943 27.818c-4.538-11.346-12.386-21.01-22.349-27.8q14.84-8.856 26.11-5.437 5.883 12.999-3.76 33.237Z"></path><path id="WinterHat4-path3" d="M21.862 15.96a61.3 61.3 0 0 0-11.433 14.08Q6.041 17.878 8.927 13.208q3.977-1.72 12.935 2.751Zm103.49 13.714a61.3 61.3 0 0 0-11.274-13.77q8.704-4.278 12.608-2.59 2.83 4.58-1.333 16.36Z"></path><path id="WinterHat4-path4" d="M67.285 61.451Q91.202 44 133.073 44q41.869 0 65.659 17.45A8 8 0 0 1 202 67.9v30.47a4 4 0 0 1-6.135 3.383Q170.902 85.999 133.805 86q-37.383 0-63.73 15.994A4 4 0 0 1 64 98.575V67.914a8 8 0 0 1 3.285-6.463"></path></defs><g id="Top/Accessories/Winter-Hat-4" transform="translate(-1)"><g id="hat" transform="translate(65 4)"><use fill="var(--avataaar-top-color)" class="CustomColor" href="#WinterHat4-path1"></use><use id="shadow" fill="#000" href="#WinterHat4-path2" opacity=".24"></use><use id="light" fill="#FFF" href="#WinterHat4-path3" opacity=".3"></use></g><g id="hat-front"><use filter="url('#WinterHat4-path4')" href="#WinterHat4-path4"></use><use fill="#F4F4F4" href="#WinterHat4-path4"></use></g></g></g>',1),yu=[gu];function ku(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...yu])}const xu={render:ku},bu={Eyepatch:G7,Hat:t8,Hijab:f8,LongHairBigHair:S8,LongHairBob:P8,LongHairBun:Y8,LongHairCurly:s9,LongHairCurvy:y9,LongHairDreads:N9,LongHairFrida:z9,LongHairFro:J9,LongHairFroBand:uu,LongHairMiaWallace:U7,LongHairNotTooLong:r8,LongHairShavedSides:y8,LongHairStraight:N8,LongHairStraight2:z8,LongHairStraightStrand:J8,NoHair:c9,ShortHairDreads01:w9,ShortHairDreads02:L9,ShortHairFrizzle:I9,ShortHairShaggy:au,ShortHairShaggyMullet:pu,ShortHairShortCurly:K7,ShortHairShortFlat:c8,ShortHairShortRound:w8,ShortHairShortWaved:L8,ShortHairSides:I8,ShortHairTheCaesar:a9,ShortHairTheCaesarSidePart:f9,Turban:S9,WinterHat1:P9,WinterHat2:Y9,WinterHat3:su,WinterHat4:xu},wu=e.createElementVNode("g",{id:"Facial-Hair/Beard-Light",transform:"translate(49 72)"},[e.createElementVNode("defs",null,[e.createElementVNode("path",{id:"BeardLight-path1",d:"M101.428 98.169c-2.513 2.294-5.19 3.325-8.575 2.604-.582-.124-2.957-4.538-8.853-4.538-5.897 0-8.27 4.414-8.853 4.538-3.385.721-6.062-.31-8.576-2.604-4.725-4.313-8.654-10.26-6.293-16.75 1.23-3.382 3.232-7.095 6.873-8.173 3.887-1.15 9.346-.002 13.264-.788 1.27-.254 2.656-.707 3.585-1.458.929.75 2.316 1.204 3.585 1.458 3.918.786 9.376-.362 13.264.788 3.64 1.078 5.642 4.79 6.873 8.173 2.361 6.49-1.568 12.437-6.294 16.75M140.081 26c-3.41 8.4-2.093 18.858-2.724 27.676-.513 7.167-2.02 17.91-8.384 22.539-3.255 2.367-9.179 6.345-13.431 5.235-2.927-.764-3.24-9.16-7.087-12.303-4.363-3.565-9.812-5.131-15.306-4.89-2.37.105-7.165.08-9.15 1.903-1.983-1.823-6.777-1.798-9.148-1.902-5.494-.242-10.943 1.324-15.306 4.889-3.847 3.143-4.16 11.54-7.087 12.303-4.252 1.11-10.176-2.868-13.431-5.235-6.365-4.63-7.87-15.372-8.384-22.54-.63-8.817.686-19.275-2.724-27.675-1.66 0-.565 16.129-.565 16.129v20.356c.032 15.288 9.581 38.17 30.754 46.908C63.286 111.53 75.015 115 84 115s20.714-3.14 25.892-5.277c21.173-8.737 30.722-31.95 30.754-47.238V42.13S141.74 26 140.081 26"})]),e.createElementVNode("use",{fill:"var(--avataaar-facial-hair-color)",class:"CustomColor",href:"#BeardLight-path1"})],-1),Eu=[wu];function vu(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...Eu])}const Cu={render:vu},Su=e.createElementVNode("g",{id:"Facial-Hair/Beard-Majestic",transform:"translate(49 72)"},[e.createElementVNode("defs",null,[e.createElementVNode("path",{id:"BeardMajestic-path1",d:"M65.18 77.737c2.183-1.632 15.227-2.258 17.578-3.648.734-.434 1.303-.873 1.742-1.309.439.436 1.009.875 1.742 1.31 2.351 1.389 15.395 2.015 17.578 3.647 2.21 1.654 3.824 5.448 3.647 8.414-.212 3.56-4.106 12.052-13.795 13.03-2.114-2.353-5.435-3.87-9.172-3.87s-7.058 1.517-9.172 3.87c-9.69-.978-13.583-9.47-13.795-13.03-.176-2.966 1.437-6.76 3.647-8.414m.665 17.164.017.007zm79.018-38.916c-.389-5.955-1.585-11.833-2.629-17.699-.281-1.579-1.81-12.286-2.5-12.286-.232 9.11-1.032 18.08-2.064 27.14-.309 2.708-.632 5.416-.845 8.134-.171 2.196.135 4.848-.397 6.972-.679 2.706-4.08 5.232-6.725 6.165-6.6 2.326-12.105-7.303-17.742-10.12-7.318-3.656-19.897-4.527-27.38.239-7.645-4.766-20.224-3.895-27.542-.239-5.637 2.817-11.142 12.446-17.742 10.12-2.645-.933-6.047-3.459-6.725-6.165-.532-2.124-.226-4.776-.397-6.972-.213-2.718-.536-5.426-.845-8.135C30.298 44.08 29.497 35.11 29.265 26c-.689 0-2.218 10.707-2.5 12.286-1.043 5.866-2.24 11.744-2.627 17.7-.4 6.119.077 12.181 1.332 18.177a165 165 0 0 0 2.049 8.541c.834 3.143-.32 9.262.053 12.488.707 6.104 3.582 18.008 6.811 23.259 1.561 2.538 3.39 4.123 5.433 6.168 1.967 1.97 2.788 5.021 4.91 7.118 3.956 3.908 9.72 6.234 15.64 6.806C65.677 143.05 74.506 146 84.5 146s18.823-2.95 24.135-7.457c5.919-.572 11.683-2.898 15.64-6.806 2.121-2.097 2.942-5.149 4.909-7.118 2.042-2.045 3.872-3.63 5.433-6.168 3.229-5.251 6.104-17.155 6.81-23.259.374-3.226-.78-9.345.054-12.488.75-2.828 1.45-5.676 2.05-8.54 1.254-5.997 1.73-12.06 1.332-18.179"})]),e.createElementVNode("use",{fill:"var(--avataaar-facial-hair-color)",class:"CustomColor",href:"#BeardMajestic-path1"})],-1),Bu=[Su];function Vu(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...Bu])}const Mu={render:Vu},Nu=e.createElementVNode("g",{id:"Facial-Hair/Moustache-Fancy",transform:"translate(49 72)"},[e.createElementVNode("defs",null,[e.createElementVNode("path",{id:"MoustacheFancy-path1",d:"M84 69.297c-6.792-3.586-16.422-4.148-21.611-2.165-5.775 2.205-10.884 8.451-19.75 5.696-.37-.114-.73.217-.619.58 1.374 4.51 9.008 7.599 11.602 7.7 11.34.442 20.473-8.278 30.378-8.947 9.906.67 19.04 9.389 30.379 8.947 2.594-.101 10.228-3.19 11.601-7.7.111-.363-.25-.694-.618-.58-8.867 2.755-13.976-3.49-19.75-5.696-5.19-1.983-14.82-1.42-21.612 2.165"})]),e.createElementVNode("use",{fill:"var(--avataaar-facial-hair-color)",class:"CustomColor",href:"#MoustacheFancy-path1"})],-1),Au=[Nu];function Tu(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...Au])}const Du={render:Tu},Lu=e.createElementVNode("g",{id:"Facial-Hair/Beard-Medium",transform:"translate(49 72)"},[e.createElementVNode("defs",null,[e.createElementVNode("path",{id:"BeardMedium-path1",d:"M105.018 94.13c-3.868 5.591-6.76 1.817-10.88-1.254-2.481-1.849-6.177-4.148-9.634-4.035-3.456-.113-7.152 2.186-9.633 4.035-4.12 3.07-7.013 6.845-10.88 1.254-2.903-4.198-1.688-11.256 1.024-15.227 3.859-5.652 9.094-2.918 14.947-3.563 1.592-.175 3.19-.617 4.542-1.34 1.352.723 2.95 1.165 4.542 1.34 5.854.645 11.089-2.089 14.948 3.563 2.712 3.97 3.926 11.03 1.024 15.227M140.39 26c-3.424 14.075-4.998 28.434-7.481 42.671a319 319 0 0 1-1.685 8.879c-.127.62-.251 2.923-.862 3.214-1.851.884-5.624-3.817-6.633-4.879-2.533-2.666-5.045-5.356-8.13-7.448-6.235-4.227-13.535-6.726-21.13-7.32-3.178-.248-7.475.186-10.47 1.993-2.995-1.807-7.292-2.24-10.47-1.992-7.596.593-14.895 3.092-21.13 7.32-3.085 2.091-5.597 4.781-8.13 7.447-1.01 1.062-4.782 5.763-6.633 4.88-.61-.292-.735-2.595-.862-3.215a319 319 0 0 1-1.685-8.879C32.607 54.434 31.034 40.075 27.61 26c-.997 0-1.871 18.748-1.983 20.495-.452 7.094-.98 14.03-.305 21.131 1.164 12.249 2.377 27.608 11.71 36.962 8.434 8.451 20.678 10.218 31.24 15.553 1.36.687 3.163 1.535 5.108 2.23 2.049 1.563 6.113 2.629 10.794 2.629 4.91 0 9.142-1.173 11.08-2.862a47 47 0 0 0 4.475-1.997c10.56-5.336 22.805-7.102 31.238-15.553 9.334-9.354 10.547-24.713 11.712-36.962.674-7.1.146-14.037-.306-21.131C142.26 44.748 141.387 26 140.39 26"})]),e.createElementVNode("use",{fill:"var(--avataaar-facial-hair-color)",class:"CustomColor",href:"#BeardMedium-path1"})],-1),Fu=[Lu];function $u(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...Fu])}const _u={render:$u};function Pu(t,n){return e.openBlock(),e.createElementBlock("svg")}const Ou={render:Pu},Ru=e.createElementVNode("g",{id:"Facial-Hair/Moustache-Magnum",transform:"translate(49 72)"},[e.createElementVNode("defs",null,[e.createElementVNode("path",{id:"MoustacheMagnum-path1",d:"M83.998 74.84a6.04 6.04 0 0 1-2.048 1.85c-8.902 4.82-18.073.642-23.074.94-2.416.144-5.535 1.785-6.66.05-1.24-1.913 2.852-12.46 12.505-14.216 7.01-1.275 16.776.138 19.277 3.474 2.5-3.336 12.267-4.749 19.276-3.474 9.654 1.757 13.745 12.303 12.506 14.215-1.125 1.736-4.244.095-6.66-.05-5.001-.297-14.172 3.881-23.074-.94a6.04 6.04 0 0 1-2.048-1.85Z"})]),e.createElementVNode("use",{fill:"var(--avataaar-facial-hair-color)",class:"CustomColor",href:"#MoustacheMagnum-path1"})],-1),Hu=[Ru];function zu(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...Hu])}const ju={render:zu},Gu={BeardMajestic:Mu,BeardLight:Cu,MoustacheFancy:Du,BeardMedium:_u,Blank:Ou,MoustacheMagnum:ju},qu=e.createStaticVNode('<g id="Clothing/Graphic-Shirt" transform="translate(0 170)"><defs><path id="react-path-1153" d="M165.624 29.268C202.76 32.138 232 63.18 232 101.052V110H32v-8.948c0-38.217 29.775-69.48 67.393-71.855A14 14 0 0 0 99 32.5C99 44.374 113.998 54 132.5 54S166 44.374 166 32.5c0-1.098-.128-2.178-.376-3.232"></path></defs><mask id="react-mask-1154" fill="#fff"><use href="#react-path-1153"></use></mask><use id="Clothes" fill="#E6E6E6" fill-rule="evenodd" href="#react-path-1153"></use><g id="Color/Palette/" fill="var(--avataaar-shirt-color)" fill-rule="evenodd" mask="url(#react-mask-1154)"><path id="Color" d="M0 0h264v110H0z"></path></g><g id="Clothing/Graphic/Bat" fill="#FFF" fill-rule="evenodd"><path id="Batman!" d="M87.685 13.403c-1.393-6.431-6.21-10.15-12.5-11.586-2.526-.577-10.913-2.387-9.607 2.408.593 2.172.263 3.964-1.553 5.766-1.77 1.755-5.231 2.2-6.952-.011-1.474-1.895.427-4.721-.721-6.567-.446-.717-1.216-1.083-2.028-.732-1.141.494-.534 1.555-1.073 2.318-.849 1.203-1.245.826-2.01-.373-.48-.754-.008-1.575-1.246-1.897-1.433-.372-1.903.828-2.032 1.923-.082.687.322 1.792.336 2.488.027 1.364-.09 3.323-.725 4.529-1.125 2.137-2.704 1.453-4.383.096-1.98-1.602-2.561-3.385-2.178-5.817.459-2.917.292-5.709-3.28-3.884-5.02 2.564-9.68 7.135-12.588 11.919-2.445 4.02-4.37 8.893-2.203 13.473 2.21 4.675 5.862 8.69 10.966 9.883 1.321.31 5.092 1.811 6.345.552 1.947-1.957-2.548-3.783-3.435-4.975-1.258-1.69-2.337-4.915-.957-6.822 1.76-2.427 3.6-1.074 5.045.644 1.136 1.348 2.75 4.826 4.506 2.022 1.21-1.931 1.101-5.102 4.4-3.717 4.715 1.978 4.86 11.112 5.7 15.291.367 1.83 2.035 4.064 3.47 1.525.79-1.396.364-4.421.22-5.863-.296-2.985-1.08-5.92-.11-8.877.562-1.71 2.001-4.16 4.13-2.844 1.725 1.066 1.006 5.816 3.353 5.807 2.066-.007 1.502-3.791 2.603-5.039 1.68-1.904 4.916-.999 5.91 1.249 1.336 3.025-2.203 5.126-2.044 7.785.154 2.591 3.494 1.58 4.89.923 2.872-1.35 5.119-3.853 6.676-6.571 2.407-4.204 4.125-10.222 3.075-15.026" transform="translate(77 58)"></path></g></g>',1),Iu=[qu];function Wu(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...Iu])}const Uu={render:Wu},Zu=e.createStaticVNode('<g id="Clothing/Graphic-Shirt" transform="translate(0 170)"><defs><path id="react-path-1153" d="M165.624 29.268C202.76 32.138 232 63.18 232 101.052V110H32v-8.948c0-38.217 29.775-69.48 67.393-71.855A14 14 0 0 0 99 32.5C99 44.374 113.998 54 132.5 54S166 44.374 166 32.5c0-1.098-.128-2.178-.376-3.232"></path></defs><mask id="react-mask-1154" fill="#fff"><use href="#react-path-1153"></use></mask><use id="Clothes" fill="#E6E6E6" fill-rule="evenodd" href="#react-path-1153"></use><g id="Color/Palette/" fill="var(--avataaar-shirt-color)" fill-rule="evenodd" mask="url(#react-mask-1154)"><path id="Color" d="M0 0h264v110H0z"></path></g><g id="Clothing/Graphic/Cumbia" fill-rule="evenodd" stroke-width="1"><g id="Group" fill="#FFF" transform="translate(77 64)"><path id="Fill-1" d="M10.272 24.132c3.273-.559 5.73-3.554 5.18-6.788-.464-2.724-1.745-.343-2.976.853-1.335 1.298-2.45 2.574-4.536 2.054-3.607-.9-4.858-5.4-3.84-8.48a5.94 5.94 0 0 1 3.478-3.696c1.852-.746 3.204.09 4.748 1.094.289.187 1.73 1.37 1.994 1.25.462-.211.115-2.43.045-2.725-.338-1.421-1.266-2.575-2.617-3.238-3.333-1.635-7.514.489-9.64 3.055-4.884 5.897-.92 18.164 8.164 16.62"></path><path id="Fill-5" d="M20.283 5.038q0 .003 0 0m-1.594 12.865c.503 3.474 2.977 6.5 6.952 6.357 4.278-.155 6.056-4.098 7.008-7.486.957-3.399 2.052-7.683.664-11.093-.42-1.032-.685-2.38-1.716-1.53-1.252 1.033-1.409 4.039-1.515 5.442-.2 2.647-.781 9.97-4.108 10.944-4.179 1.222-4.048-5.847-4-7.977.04-1.896.246-3.734-.342-5.584-.313-.985-.59-2.44-1.528-1.634-1.29 1.108-1.453 3.828-1.544 5.327-.144 2.405-.214 4.842.129 7.234"></path><path id="Fill-7" d="M37.783 20.746c.188.412.624 1.402 1.02 1.679.944.66-.055.708.8-.059.813-.729 1.13-2.717 1.254-3.67.385-2.96-.12-6.108-.087-9.093 1.024 2.218 1.584 4.584 2.386 6.874.554 1.582 1.396 4.804 3.654 4.753 2.443-.055 2.57-3.145 2.894-4.819.461-2.37.97-4.721 1.676-7.037.092 3.91-1.427 10.995 2.108 13.92.014.013 1.432-4.15 1.467-4.406.223-1.691.083-3.444.107-5.148.051-3.597.718-8.003-.3-11.506C54.435 1.1 53.788-.03 52.354.001c-1.825.04-2.233 1.985-2.698 3.298-1.28 3.614-2.445 7.224-3.357 10.94-.548-1.68-5.339-16.421-8.789-10.901-.555.888-.315 2.218-.338 3.196-.044 1.879-.155 3.756-.196 5.635-.061 2.843-.41 5.907.808 8.577"></path><path id="Fill-9" d="M62.02 7.71c.72-.135 5.735-1.727 5.523-.136-.223 1.675-4.633 3.309-5.816 3.876a10.6 10.6 0 0 0-.643-3.567zm5.717-.64s-.027-.035 0 0m.122 8.341c2.272 1.22 1.287 3.417-.426 4.608-.649.45-6.53 1.802-6.513 1.663q.001.005-.004.005c.18-1.694-.257-5.018 1-6.02 1.304-1.04 4.5-.808 5.943-.256m.062-7.995c.009.022.001.002 0 0M57.944 24.26c.224.551.86 1.912 1.566 1.945.86.04.794-1.043.929-1.71 3.441 1.721 8.498-.047 10.907-3.03 2.787-3.45 1.348-8.27-2.579-9.745 2.113-1.688 4.026-5.399 1.255-7.49-2.196-1.655-5.828-1.747-8.123-.302-2.735 1.723-3.85 5.833-4.09 9.006-.255 3.382-1.158 8.125.135 11.326"></path><path id="Fill-11" d="M76.05 15.871c.074 2.07-.15 4.287.332 6.306.171.717.433 1.511.76 2.162.611 1.215.31 1.05 1.032.36 2.172-2.083 1.209-8.575 1.157-11.249-.041-2.078.064-4.28-.513-6.283-.162-.562-1.123-3.348-1.655-3.284-.816.098-1.376 3.93-1.423 4.693-.148 2.396.226 4.895.31 7.295"></path><path id="Fill-13" d="M94.748 16.43c-1.582-.137-3.622.075-5.117.557.697-1.916 1.475-4.054 2.238-5.79q.711-1.635 1.494-3.24c1.278 2.686 1.992 5.828 2.832 8.666q-.72-.13-1.447-.193m5.44.725c-.727-2.78-1.579-5.532-2.426-8.28-.538-1.743-1.13-3.911-2.6-5.168C91 .146 88.635 9.557 87.614 11.94c-.985 2.296-2.216 4.634-2.85 7.049a9.5 9.5 0 0 0-.244 3.652c.205 1.519-.004 1.741 1.294.914 1-.636 1.414-1.792 2.227-2.562.144-.136.218-.668.39-.755.188-.096 1.504.253 1.815.274 2.17.151 4.712-.218 6.715-1.054.205.842 1.627 5.962 2.977 5.773.597-.083.965-3.064.992-3.537.087-1.553-.352-3.049-.742-4.538"></path><path id="Fill-15" d="M109.302 3.432c-.264-1.203-.814-3.292-1.842-2.112-1.39 1.596-1.09 5.173-1.111 7.177-.015 1.451-1.552 12.062.556 11.883-.09 0 .845-1.668.98-1.922.815-1.524 1.131-2.97 1.329-4.722.365-3.237.783-7.111.088-10.304"></path><path id="Fill-17" d="M108.164 24.301c-2.24-2.728-6.311.658-5.041 3.374 1.729 3.7 7.331-.56 5.041-3.374"></path><path id="Fill-19" d="M94.898 28.545c-2.891-.738-6.297-.24-9.249-.152-3.081.092-6.16.264-9.24.357-6.568.198-13.124.092-19.692.038-12.454-.103-24.935.69-37.383.168-2.672-.112-5.545-.713-8.198-.209-.727.139-3.009.543-3.329 1.266-.336.76 1.402 1.555 2.331 1.955 2.422 1.044 5.329.858 7.9.964 2.93.12 5.887.058 8.819-.014 12.075-.297 24.089-1.343 36.18-1.165 6.976.103 13.937.038 20.912.001 3.32-.017 7 .526 10.273-.062.552-.1 3.763-.854 3.807-1.836.02-.453-2.806-1.228-3.13-1.311"></path></g></g></g>',1),Yu=[Zu];function Xu(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...Yu])}const Ku={render:Xu},Qu=e.createStaticVNode('<g id="Clothing/Graphic-Shirt" transform="translate(0 170)"><defs><path id="react-path-1153" d="M165.624 29.268C202.76 32.138 232 63.18 232 101.052V110H32v-8.948c0-38.217 29.775-69.48 67.393-71.855A14 14 0 0 0 99 32.5C99 44.374 113.998 54 132.5 54S166 44.374 166 32.5c0-1.098-.128-2.178-.376-3.232"></path></defs><mask id="react-mask-1154" fill="#fff"><use href="#react-path-1153"></use></mask><use id="Clothes" fill="#E6E6E6" fill-rule="evenodd" href="#react-path-1153"></use><g id="Color/Palette/" fill="var(--avataaar-shirt-color)" fill-rule="evenodd" mask="url(#react-mask-1154)"><path id="Color" d="M0 0h264v110H0z"></path></g><g id="Clothing/Graphic/Diamond" fill-rule="evenodd" stroke-width="1"><g id="Diamond" fill="#FFF" transform="translate(106 60)"><path id="Fill-21" d="M34.78 27.737c-2.389 2.656-4.857 5.243-7.335 7.82.985-3.553 1.74-7.578 3.204-10.958.417-.962.1-1.084.927-1.493.609-.301 2.078.043 2.807.062 1.557.039 3.15.192 4.696-.05a222 222 0 0 0-4.299 4.619m-15.264 4.061c-2.699-3.282-5.384-6.568-8.658-9.317 1.289.137 2.696-.043 3.958.206 1.944.384 1.837.99 2.82 2.959 1.45 2.906 2.889 5.789 4.05 8.823-.711-.9-1.441-1.785-2.17-2.67m-9.098-12.532c.963-1.575 1.144-2.972 2.92-3.78 2.06-.939 5.3-.742 7.488-.916-1.37 1.523-3.037 3.103-3.604 5.122-.874-1.718-1.962-3.174-3.67-4.17-.215-.107 1.158 4.55 1.338 4.87-1.716-.096-3.522-.408-5.225-.092zm16.406-5.008c1.591.036 3.17.16 4.74.42-1.267 1.674-1.649 3.631-2.099 5.63-.478-2.258-2.209-4.362-3.734-6.048zm-3.498 1.074c.234-.158 4.457 5.086 5.066 5.556-3.312-.008-6.618-.17-9.926-.315 1.907-1.487 3.023-3.688 4.86-5.24m2.686 17.095c-.401 1.349-.777 2.708-1.214 4.047-1.555-4.732-3.862-9.188-6.008-13.674 3.34.088 6.676.209 10.016.256-.82 3.158-1.862 6.245-2.794 9.37m7.23-17.462c1.277 1.128 3.097 3.44 3.686 4.217a10 10 0 0 0 .179.23c.21.261.966 1.255 1.263 1.644-2.227-.226-4.545-.13-6.78-.15.498-2.054 1.104-4.012.584-6.128q.536.086 1.068.187m7.648 5.617c-2.158-2.676-4.37-7.258-7.864-8.077-3.472-.814-7.548-.454-11.074-.23-3.075.194-8.083-.204-10.795 1.593-1.393.923-2.425 3.005-2.908 4.551-.434 1.393.266 2.285-1.246 2.285-.096 0 2.504 3.673 2.81 3.962 2.272 2.14 4.444 4.202 6.457 6.597 2.835 3.374 5.405 8.338 9.145 9.736-.686-.339 2.792-2.967 3.21-3.419 2.11-2.288 4.246-4.554 6.372-6.83 1.938-2.073 4.05-4.03 5.93-6.15 1.435-1.619 1.439-2.175-.037-4.018"></path><path id="Fill-23" d="M6.999 12c.043.014-.909-2.045-.825-1.919-.475-.719-1.046-1.24-1.738-1.727C3.708 7.843.127 7.254 0 7c1.494 2.652 4.167 4.128 6.999 5"></path><path id="Fill-25" d="M22.355 7.196A6.2 6.2 0 0 0 23.15 9c.07.078.859-4.184.85-4.547C23.988 3.832 23.613 0 22.815 0c-1.337 0-.674 6.47-.459 7.196"></path><path id="Fill-27" d="M48.97 5c-2.992 0-9.68 5.854-8.908 9 .005.01.447-.35.35-.283l.057-.043c1.272-1.025 2.718-2.02 3.992-3.206.911-.85 1.987-1.612 2.816-2.54C47.362 7.832 49.263 5 48.97 5"></path></g></g></g>',1),Ju=[Qu];function em(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...Ju])}const tm={render:em},nm=e.createStaticVNode('<g id="Clothing/Graphic-Shirt" transform="translate(0 170)"><defs><path id="react-path-1153" d="M165.624 29.268C202.76 32.138 232 63.18 232 101.052V110H32v-8.948c0-38.217 29.775-69.48 67.393-71.855A14 14 0 0 0 99 32.5C99 44.374 113.998 54 132.5 54S166 44.374 166 32.5c0-1.098-.128-2.178-.376-3.232"></path></defs><mask id="react-mask-1154" fill="#fff"><use href="#react-path-1153"></use></mask><use id="Clothes" fill="#E6E6E6" fill-rule="evenodd" href="#react-path-1153"></use><g id="Color/Palette/" fill="var(--avataaar-shirt-color)" fill-rule="evenodd" mask="url(#react-mask-1154)"><path id="Color" d="M0 0h264v110H0z"></path></g><g id="Clothing/Graphic/Pizza" fill-rule="evenodd" stroke-width="1"><g id="Group-2" fill="#FFF" transform="translate(112 59)"><path id="Fill-29" d="M30.933 24.391c-4.082 1.38-8.55 3.324-10.905 7.074-1.847 2.942-1.971-.455-4.55.593-2.508 1.019-1.822 5.223-2.733 7.301-.708-1.191-1.043-2.516-1.935-3.604a6.6 6.6 0 0 0 1.814-1.724c.156-.32-4.792.348-5.076.43-1.411.401-2.74.77-4.088 1.429a79 79 0 0 0 1.965-2.989q.31-1.02 1.108-.006c.748.036 1.178.357 1.962.177 2.915-.667 3.843-6.223.25-5.987a93 93 0 0 0 4.253-8.802c.502 4.291 6.08 2.813 7.719.525 2.14-2.989-.604-8.662-4.484-8.112.581-1.375 1.17-2.762 1.65-4.178 1.092 1.61 3.001 2.39 4.538 3.457a18.2 18.2 0 0 1 4.163 4.006c2.386 3.14 3.793 7.007 6.215 10.052a7 7 0 0 0-1.866.358m9.006-4.388c-.632-5.757-5.15-11.601-9.44-15.176-2.55-2.125-10.24-7.385-13.306-3.34 2.472 1.071 5.2 1.33 7.65 2.489 3.32 1.572 5.922 4.16 8.168 7.055 3.137 4.045 7.97 12.283.474 14.386.518-.338.819-.709 1.228-1.308-1.007-.233-.6-1.878-.954-2.952-.412-1.25-1.21-2.467-1.884-3.582a57 57 0 0 0-3.504-5.171c-1.678-2.186-3.686-3.907-5.977-5.396-.907-.589-1.775-1.11-2.817-1.415-1.349-.394-.907.086-1.276-1.146-.232-.773-.024-1.763-.246-2.592-1.973 1.658-2.615 4.055-3.5 6.381-1.02 2.684-2.122 5.335-3.196 7.997-2.635 6.535-6.034 12.395-9.891 18.247-.672 1.02-2.165 2.95-1.09 4.174.96 1.095 2.33.306 3.386-.139 1.436-.604 3.385-2.164 4.935-1.347 1.998 1.054 1.054 4.984 4.214 4.827 3.114-.154 2.527-5.28 3.527-7.317 2.311 1.685 4.175.64 5.579-1.611 1.626-2.61 3.775-3.657 6.513-4.938 1.12-.524 3.034-1.94 4.2-2.115.966-.145 1.893.883 3.184.837 3.098-.113 4.392-4.253 4.023-6.848"></path><path id="Fill-31" d="M18.537 22.834c-2.425-.445-5.807-.074-6.029 3.153-.136 1.978 1.41 3.848 3.082 4.664 5.122 2.5 9.109-6.688 2.947-7.817"></path><path id="Fill-33" d="M28.336 19.158c-.65-.706-1.703-1.24-2.675-.993.31-.214.568-.6.864-.839-3.156-2.286-5.14 3.479-3.346 5.748 2.717 3.44 8.037-.766 5.157-3.916"></path></g></g></g>',1),am=[nm];function om(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...am])}const rm={render:om},im=e.createStaticVNode('<g id="Clothing/Graphic-Shirt" transform="translate(0 170)"><defs><path id="react-path-1153" d="M165.624 29.268C202.76 32.138 232 63.18 232 101.052V110H32v-8.948c0-38.217 29.775-69.48 67.393-71.855A14 14 0 0 0 99 32.5C99 44.374 113.998 54 132.5 54S166 44.374 166 32.5c0-1.098-.128-2.178-.376-3.232"></path></defs><mask id="react-mask-1154" fill="#fff"><use href="#react-path-1153"></use></mask><use id="Clothes" fill="#E6E6E6" fill-rule="evenodd" href="#react-path-1153"></use><g id="Color/Palette/" fill="var(--avataaar-shirt-color)" fill-rule="evenodd" mask="url(#react-mask-1154)"><path id="Color" d="M0 0h264v110H0z"></path></g><g id="Clothing/Graphic/Selena" fill-rule="evenodd" stroke-width="1"><g id="Selena" fill="#FFF" transform="translate(94 58)"><path id="Bom-Bom" d="M65.303 7.568c-.156.93-1.922 5.089-3.229 2.95-.509-.832.402-3.46.685-4.209.558-1.472.974-1.638 2.263-2.33.109 1.188.411 2.398.281 3.589m-2.984 3.319c.03.012.158.132 0 0m-.008-.007c-.006-.004 0 0 0 0M55.03 6.205c.01.008.053.042 0 0M42.555 11.16c-.207 1.22-.475 2.439-.904 3.6-.17-1.732.103-3.456 1-4.95q-.015.676-.096 1.35m-.01-2.502c-.004-.016-.159-.24 0 0M25.908 18.803c.153-1.533.768-3.017 1.906-4.044-.277 1.625-1.072 2.67-1.906 4.044m49.93-13.506c0 .637-2.06 2.335-2.574 2.803-.879.799-1.815 1.44-3.077 1.254-3.462-.51-2.09-4.206-2.641-6.481-.434-1.788-.879-1.114-2.082-1.227-1.118-.104-1.518-.656-2.682.187-2.096 1.519-3.766 3.496-4.659 5.98-.324-1.695-1.245-4.503-3.452-4.093-1.632.303-2.984 2.926-3.663 4.243-.052-1.198-.668-3.076-2.175-2.218-1.036.589-.991 3.381-1.218 4.41-.465 2.111-1.379 7.617-4.644 6.901 1.029-1.918 3.28-7.97 1.35-9.937-2.712-2.762-4.775 4.156-4.886 5.84-.08 1.205.806 3.944.329 4.692-.585.918-2.428 1.313-3.303.641-1.405-1.078-.85-2.83-.53-4.199.422-1.794.62-3.597.734-5.437.085-1.38 1.286-7.548-1.028-7.632-2.095-.075-2.309 5.138-2.458 6.563-.185 1.751-.296 3.525-.235 5.288.062 1.782.394 2.97-.297 4.643-.74 1.793-4.264 7.17-6.373 3.6 2.24-.983 4.911-5.518 3.71-8.067-1.667-3.534-5.416 1.85-5.96 3.656-.877 2.915-.491 6.722 2.864 7.671 3.493.989 6.19-2.286 7.421-5.18 1.002 1.588 2.845 1.986 4.55 1.505a5.8 5.8 0 0 0 1.89-.947c1.07-.81.444-.509 1.58-.542 3.297-.094 5.096-1.153 6.332-4.545-.015.934.343 2.36 1.598 1.849.974-.397.968-2.01 1.148-2.87.57-2.713 1.466-5.541 3.599-7.422 1.84 2.002.48 5.427 1.69 7.56 1.868 3.288 2.808-2.532 3.1-3.654.057 4.882 5.861 3.084 7.118-.157 3.3 3.515 10.234.349 8.923-4.678"></path><path id="Bidi" d="M69.434 15.349c-3.63 0-7.605 1.026-11.127 1.817a98 98 0 0 0-10.502 2.97c-3.871 1.339-7.812 2.554-11.59 4.122-3.276 1.36-7.508 2.353-9.512 5.416-.004.008 2.102-.088 2.272-.117 1.05-.174 1.952-.543 2.917-.956 1.747-.746 3.482-1.519 5.224-2.276 3.904-1.698 7.98-3.095 11.988-4.554 3.996-1.453 8.095-2.685 12.255-3.625 3.39-.767 7.182-.914 10.303-2.273q-.176.066.23-.091c-.079.038-2.221-.433-2.458-.433m-47.317 5.476c-2.27-.998-5.477-.558-7.835-.239-2.143.29-5.496.935-6.833 1.108-1.106.14-4.406 1.04-5.01-.197-.649-1.331 2.72-5.403 3.456-6.363 3.315-4.32 7.3-9.12 12.08-11.923-.44 1.95-.825 3.918-1.227 5.876-.166.808-.95 5.164.486 5.508.59.14 1.772-2.783 1.87-3.044.823-2.19 1.012-4.71 1.391-7.002.217-1.311 1.2-4.05-.694-4.502-1.629-.389-3.836 1.727-4.923 2.619-3.282 2.692-6.127 5.947-8.787 9.22-1.31 1.613-2.615 3.234-3.714 4.997-.904 1.45-3.09 4.49-2.145 6.282 1.698 3.221 9.84.398 12.432-.032 2.045-.339 4.152-.66 6.227-.376 2.162.295 2.057 1.27 1.339 3.196-1.478 3.96-4.776 7.36-7.724 10.32-1.299 1.303-6.38 7.419-7.66 4.091-.87-2.26-.1-5.035.9-7.114.468-.973 1.089-1.861 1.577-2.824.133-.263.802-2.425.947-2.473-3.87 1.35-6.117 6.585-6.332 10.287-.102 1.741.136 4.324 1.8 5.368s3.226-.227 4.549-1.185c3.642-2.64 6.891-5.998 9.865-9.335 1.626-1.824 8.453-10.287 3.965-12.263"></path></g></g></g>',1),sm=[im];function lm(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...sm])}const cm={render:lm},dm=e.createStaticVNode('<g id="Clothing/Graphic-Shirt" transform="translate(0 170)"><defs><path id="react-path-1153" d="M165.624 29.268C202.76 32.138 232 63.18 232 101.052V110H32v-8.948c0-38.217 29.775-69.48 67.393-71.855A14 14 0 0 0 99 32.5C99 44.374 113.998 54 132.5 54S166 44.374 166 32.5c0-1.098-.128-2.178-.376-3.232"></path></defs><mask id="react-mask-1154" fill="#fff"><use href="#react-path-1153"></use></mask><use id="Clothes" fill="#E6E6E6" fill-rule="evenodd" href="#react-path-1153"></use><g id="Color/Palette/" fill="var(--avataaar-shirt-color)" fill-rule="evenodd" mask="url(#react-mask-1154)"><path id="Color" d="M0 0h264v110H0z"></path></g><g id="Clothing/Graphic/Skull-Outline" fill-rule="evenodd" stroke-width="1"><g id="Skull" fill="#FFF" transform="translate(113 59)"><path id="Boo!" d="M36.335 17.04c-.18 1.038-.442 2.069-.988 2.989-.72 1.211-2.026 1.707-2.783 2.818-1.193 1.752.392 4.276-.786 5.837-1.266 1.68-4.142.663-5.262 2.892-1.18 2.35.538 5.492-.943 7.83-1.47-.37-1.922-5.886-4.189-2.367-1.452 2.254-.471 3.475-2.649.235-.756-1.125-1.61-2.136-3.096-1.393-1.043.521-1.258 2.837-2.21 3.086-2.333.612-2.418-5.617-3.212-6.796-.436-.648-.842-1.032-1.617-1.277-.672-.213-1.869.215-2.425-.1-1.045-.592-1.186-2.556-1.225-3.598-.074-1.939.575-3.919.04-5.838-.451-1.612-1.887-2.603-2.357-4.183C.1 8.64 11.683 3.895 18.3 3.63c7.74-.31 19.037 4.222 18.036 13.41m1.838-5.316c-1.456-3.441-4.655-6.177-7.915-8.013a18.5 18.5 0 0 0-5.085-1.94c-1.641-.36-3.558-.123-5.125-.576C18.728.812 17.91-.048 16.356.002c-2.118.068-4.319 1.172-6.168 2.086-3.66 1.807-6.771 4.148-8.726 7.743-2.098 3.859-1.9 7.356.349 10.952 2.145 3.434-.974 8.262 2.167 11.526C5.3 33.68 6.6 32.68 7.85 33.34c.962.508.921 3.462 1.188 4.328 1.2 3.893 5.514 5.4 7.506 1.191.94 2.353 4.655 4.764 6.385 1.686 1.082 1.4 2.954 1.995 4.383.795 1.344-1.128 1.492-3.755 1.56-5.343.054-1.238-.497-2.764.454-3.658 1.047-.984 3.194-.57 4.37-1.839 1.34-1.45.789-3.146.892-4.872.104-1.746.416-1.301 1.71-2.562 2.885-2.81 3.374-7.807 1.875-11.343"></path><path id="Boo!" d="M14.42 28.121c2.02-1.822 1.591-7.397 1.424-9.959-.316-4.86-3.355-3.408-5.206-.38-1.4 2.29-4.766 5.994-3.257 8.876 1.202 2.296 5.18 3.136 7.039 1.463m13.37-8.847c-1.034-1.92-1.42-2.212-2.65-3.785-.791-1.011-1.9-2.802-3.404-2.442-2.582.62-1.528 6.612-1.498 8.402.024 1.358-.277 2.765.851 3.728 1.155.986 3.053.897 4.44.69 4.259-.633 4.062-3.253 2.262-6.593M19.24 31.83c-.284-.036.077-.362.12-.587.187.614.326.643-.12.587m1.045-4.31c-2.617-2.77-7.574 6.397-4.08 7.425.805.237 1.4-.363 2.155-.468 1.1-.153 2.024.487 2.973-.522 1.491-1.584.187-5.098-1.048-6.436"></path></g></g></g>',1),um=[dm];function mm(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...um])}const fm={render:mm},hm=e.createStaticVNode('<g id="Clothing/Graphic-Shirt" transform="translate(0 170)"><defs><path id="react-path-1153" d="M165.624 29.268C202.76 32.138 232 63.18 232 101.052V110H32v-8.948c0-38.217 29.775-69.48 67.393-71.855A14 14 0 0 0 99 32.5C99 44.374 113.998 54 132.5 54S166 44.374 166 32.5c0-1.098-.128-2.178-.376-3.232"></path></defs><mask id="react-mask-1154" fill="#fff"><use href="#react-path-1153"></use></mask><use id="Clothes" fill="#E6E6E6" fill-rule="evenodd" href="#react-path-1153"></use><g id="Color/Palette/" fill="var(--avataaar-shirt-color)" fill-rule="evenodd" mask="url(#react-mask-1154)"><path id="Color" d="M0 0h264v110H0z"></path></g><g id="Clothing/Graphic/Bear" fill-rule="evenodd" stroke-width="1"><defs><path id="poly-1" d="M47.892.43v41.49H.453V.43z"></path></defs><g id="Group-76" transform="translate(108 59)"><path id="Fill-74" fill="#FFF" d="M34.447 31.586c-.479 2.816-4.08 7.345-7.147 4.384-3.467-3.344 4.225-4.81 1.481-7.594-1.184-1.2-4.412-.537-6.002-.41-1.49.117-3.866.454-3.296 2.624.433 1.65 1.71.944 2.389 1.892.535.748.308 3.507-.49 4.267-1.002.956-2.189.663-3.584.05-3.192-1.4-4.677-5.312-2.575-8.216 4.155-5.741 20.067-7.059 19.224 3.003M14.985 14.724c.985-.443 2.148-.203 2.732.787.802 1.356-.357 3.173-1.975 2.956-1.707-.23-2.57-2.919-.757-3.743m17.962 1.655c-.856 3.006-5.636-.378-2.936-2.29 1.552-1.099 3.447.491 2.936 2.29m14.88 6.79c-.236-2.38-.9-4.646-2.088-6.73-.623-1.093-1.393-2.111-2.19-3.081-.3-.365-.906-1.008-1.023-1.213-.709-1.24-.638-.362-.247-1.785.616-2.243 1.947-4.08.884-6.49-.99-2.24-3.655-3.293-5.984-3.426a8.2 8.2 0 0 0-3.207.449c-1.035.368-2.001 1.64-2.9 1.9-.698.204-2.685-.46-3.441-.508-1.395-.089-2.798-.05-4.192.034-1.63.096-5.376 1.263-6.913.877-1.015-.255-2.209-1.781-3.381-2.164C11.853.61 10.467.468 9.178.954c-2.285.864-4 3.552-4.053 5.942-.028 1.255.655 2.115.79 3.25.203 1.716.437.357-.487 1.726-.47.697-1.295 1.31-1.824 1.982C.779 17.44-.28 22.732.974 27.074c3.159 10.94 13.668 15.394 24.44 14.793 9.25-.516 23.564-7.718 22.413-18.698"></path></g></g></g>',1),pm=[hm];function gm(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...pm])}const ym={render:gm},km=e.createStaticVNode('<g id="Clothing/Graphic-Shirt" transform="translate(0 170)"><defs><path id="react-path-1153" d="M165.624 29.268C202.76 32.138 232 63.18 232 101.052V110H32v-8.948c0-38.217 29.775-69.48 67.393-71.855A14 14 0 0 0 99 32.5C99 44.374 113.998 54 132.5 54S166 44.374 166 32.5c0-1.098-.128-2.178-.376-3.232"></path></defs><mask id="react-mask-1154" fill="#fff"><use href="#react-path-1153"></use></mask><use id="Clothes" fill="#E6E6E6" fill-rule="evenodd" href="#react-path-1153"></use><g id="Color/Palette/" fill="var(--avataaar-shirt-color)" fill-rule="evenodd" mask="url(#react-mask-1154)"><path id="Color" d="M0 0h264v110H0z"></path></g><g id="Clothing/Graphic/Deer" fill="#FFF" fill-rule="evenodd"><path id="oh,-deer!" d="M76.96 16.235c.395 1.425-2.228 2.67-3.106 3.419-1.507 1.283-3.065 2.634-4.825 3.547-.748.388-1.553.703-2.362.935-1.247.357-1.104.107-1.58 1.165-.838 1.86-1.055 4.334-1.812 6.312-1.704 4.454-5.767 14.8-12.267 10.259-2.068-1.445-3.197-4.247-4.36-6.436-1.335-2.512-2.613-5.508-3.381-8.25-.375-1.336-.137-1.79-1.13-2.415-.622-.392-1.679-.493-2.383-.78-1.5-.61-2.813-1.436-4.088-2.43-1.238-.966-6.11-4.951-2.132-5.691 1.825-.34 4.217-.214 6.067-.12 2.027.102 4.073.57 5.876 1.535 1.841.987 1.301.701 3.21.15-3.322-1.126-6.649-2.998-8.884-5.781-1.207-1.503-4-7.654-1.9-9.065 2.52-1.696 2.73 5.346 3.439 6.567 1.592 2.744 4.508 3.78 7.042 5.299-1.74-1.668-3.04-3.505-3.673-5.868-.275-1.025-1.026-3.489-.519-4.486.529-1.04 1.772-1.106 2.458-.22.618.797.462 2.63.674 3.591.35 1.589.921 2.81 1.982 4.04 1.505 1.747 3.417 3.175 5.669 3.728 5.127 1.258 6.92-4.108 7.608-8.245.168-1.013-.08-2.693 1.05-3.18 1.367-.588 1.896.747 1.936 1.782.087 2.314-1.056 5.857-2.166 7.845 2.79-1.732 5.003-4.478 5.899-7.688.33-1.188.062-3.836 1.174-4.503 1.54-.924 2.029.917 1.975 2.022-.319 6.515-5.298 12.44-11.488 14.069 1.518.759 1.318.93 2.848.023.885-.525 1.845-.93 2.827-1.23 1.47-.452 3.055-.682 4.58-.817 1.22-.107 5.274-.817 5.742.917m-18.1 8.386c.86-2.138-2.496-2.216-2.822.095-.416 2.945 2.755 3.176 2.822-.095m-1.93 9.016c.659-2.196-3.526-2.112-3.896-.17-.436 2.291 3.406 1.73 3.896.17M51.702 27c2.324 0 3.272-3.065.997-3.861-2.89-1.013-3.815 3.861-.997 3.861" transform="translate(77 58)"></path></g></g>',1),xm=[km];function bm(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...xm])}const wm={render:bm},Em=e.createStaticVNode('<g id="Clothing/Graphic-Shirt" transform="translate(0 170)"><defs><path id="react-path-1153" d="M165.624 29.268C202.76 32.138 232 63.18 232 101.052V110H32v-8.948c0-38.217 29.775-69.48 67.393-71.855A14 14 0 0 0 99 32.5C99 44.374 113.998 54 132.5 54S166 44.374 166 32.5c0-1.098-.128-2.178-.376-3.232"></path></defs><mask id="react-mask-1154" fill="#fff"><use href="#react-path-1153"></use></mask><use id="Clothes" fill="#E6E6E6" fill-rule="evenodd" href="#react-path-1153"></use><g id="Color/Palette/" fill="var(--avataaar-shirt-color)" fill-rule="evenodd" mask="url(#react-mask-1154)"><path id="Color" d="M0 0h264v110H0z"></path></g><g id="Clothing/Graphic/Hola" fill="#FFF" fill-rule="evenodd"><path id="Hola" d="M74.637 16.948c1.28 5.762-.904 11.244-5.33 15.004-2.08 1.768-4.434 3.074-7.056 3.835a25 25 0 0 1-4.497.87c-1.136.111-2.784-.4-3.79-.111-1.12.321-2.559 1.865-3.757 2.362a20 20 0 0 1-2.068.727c-1.506.438-3.065.734-4.613.977-1.602.25-8.283 1.302-7.455-1.637.284-1.01 3.11-2.504 3.724-3.184.454-.502 3.145-3.364 3.019-4.295-.04-.294-1.747-1.63-2.148-2.08-.909-1.019-1.762-2.058-2.245-3.351-.829-2.216-.786-4.998-.51-7.32.688-5.804 3.566-9.659 8.602-12.55 2.855-1.637 5.96-2.538 9.205-2.934 3.956-.483 7.11-.498 10.467 1.75 4.42 2.96 7.275 6.668 8.452 11.937m-5.131 6.988c1.086-.3-.308-3.053-1.079-1.72-.277.48.463 1.889 1.079 1.72m-1.821-5.322c.088.36.434.47.748.427.75-.104.28-.981.301-1.373.04-.749.107-2.639-.172-3.32-.513-1.254-.975-1.014-1.274.214-.267 1.1.123 2.947.397 4.052m-1.048 4.279c.843-.498-1.38-6.176-1.868-6.988-1.892-3.145-2.504 2.431-2.794 3.81-.125.596-1.518 6.781.339 4.787.99-1.064-.558-4.602 2.243-3.78.984.29.272.207.874 1.11.22.33.458 1.5 1.206 1.06Zm-6.342-1.294c.786-1.35-2.665-.721-3.062-.697.094-1.8.445-3.623.44-5.422 0-.475.165-2.191-.958-1.381-.454.327-.298 1.83-.336 2.28-.09 1.057-.948 4.707-.108 5.56.595.603 3.693.22 4.024-.34m-4.799-2.44c.338-1.344-.084-4.253-1.845-4.28-.613-.008-.335.831-.487.92-1.065.621-1.528.542-2.16 1.646-2.486 4.35 3.067 7.445 4.492 1.714m-6.027 3.83c.761-.21.546-9.977-.331-9.983-1.51-.008-.063 4.84-.635 5.49-.17.196-1.026.015-1.25.056-1.14.212-1.89.092-2.24-.606-.312-.62.36-4.88-1.258-2.79q.023 1.107.035 2.213.504 1.072-.376 1.306c-.03.47.392.864.397 1.017.025.771-.484 4.231.9 4.064.885-.107.32-3.481.317-4.03 1.143.027 2.34.155 3.475.008.006.427-.288 3.603.966 3.256ZM63.837 17A19 19 0 0 1 65 18.842q-.999.086-2 .158c.272-.668.544-1.335.837-2m-9.914 0c.145.423.256 3.288-1.355 2.976-.92-.177-.507-1.764-.246-2.091.55-.69.873-.448 1.601-.885" transform="translate(77 58)"></path></g></g>',1),vm=[Em];function Cm(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...vm])}const Sm={render:Cm},Bm=e.createStaticVNode('<g id="Clothing/Graphic-Shirt" transform="translate(0 170)"><defs><path id="react-path-1153" d="M165.624 29.268C202.76 32.138 232 63.18 232 101.052V110H32v-8.948c0-38.217 29.775-69.48 67.393-71.855A14 14 0 0 0 99 32.5C99 44.374 113.998 54 132.5 54S166 44.374 166 32.5c0-1.098-.128-2.178-.376-3.232"></path></defs><mask id="react-mask-1154" fill="#fff"><use href="#react-path-1153"></use></mask><use id="Clothes" fill="#E6E6E6" fill-rule="evenodd" href="#react-path-1153"></use><g id="Color/Palette/" fill="var(--avataaar-shirt-color)" fill-rule="evenodd" mask="url(#react-mask-1154)"><path id="Color" d="M0 0h264v110H0z"></path></g><g id="Clothing/Graphic/Resist" fill-rule="evenodd" stroke-width="1"><g id="Resist" fill="#FFF" transform="translate(80 67)"><path id="!" d="M102.565 21.071c-3.082-.666-5.192 3.535-1.912 4.784 2.815 1.072 4.845-4.145 1.912-4.784"></path><path id="H" d="M101.191 18c3.657 0 2.308-5.981 2.321-7.965.014-2.137 1.545-8.596-.89-9.734-4.216-1.971-3.06 6.325-3.034 7.968.028 1.816.167 3.72-.229 5.508-.35 1.58-1.129 4.223 1.832 4.223"></path><path id="C" d="M96.058 1.974c-1.082-.622-2.801-.32-3.987-.374-1.349-.06-2.69-.195-4.035-.293-2.177-.16-4.956-.563-7.118-.068-1.226.28-2.338 1.225-1.761 2.608.62 1.49 2.303 1.105 3.58 1.03.585-.035 2.033-.29 2.605-.089.997.35.573-.108.801 1.067.349 1.807.14 4 .125 5.838-.026 3.174-.036 6.364-.103 9.536-.026 1.236-.44 2.632.757 3.448.998.68 2.216.225 2.733-.793.514-1.013.026-3.067-.029-4.196-.066-1.347-.136-2.676-.097-4.025.104-3.585.282-7.167.368-10.754.943.046 1.922.018 2.856.15.683.095 1.665.535 2.322.5 1.9-.1 2.694-2.587.983-3.585"></path><path id="A" d="M67.722 8.813c-.012-.053-.082-.644 0 0m-.037-.276c.004.025 0 .008 0 0m1.432-3.11c3.416-3.981 4.583 4.347 7.246 3.995 4.26-.564-.941-6.953-2.669-7.776-3.515-1.675-6.605.08-8.277 3.267-2.098 4-.77 6.708 3.258 8.444 1.471.635 7.04 2.528 5.53 4.959-.76 1.224-3.526 1.329-4.7 1.086-2.356-.486-1.989-2.086-3.135-3.573-1.033-1.34-3.03-.947-3.342.781-.245 1.358 1.17 3.425 2.115 4.38 2.233 2.256 6.04 2.437 8.887 1.41 4.386-1.583 4.917-5.71 1.806-8.905-1.749-1.795-3.933-2.34-6.113-3.418-2.645-1.306-2.15-2.39-.606-4.65"></path><path id="E" d="M58.75 20.568c-.564-4.825-.696-9.717-.78-14.563-.027-1.554.706-5.206-1.453-5.865-2.915-.89-2.528 2.692-2.467 4.164.205 4.913.842 9.789 1.071 14.696.073 1.557-.429 4.574 1.831 4.946 2.75.454 2.008-2.081 1.798-3.378"></path><path id="P" d="M49.472 4.68c-2.36-3.159-7.154-3.669-10.09-.758-2.072 2.054-3.377 6.92-1.416 9.403 2.124 2.691 7.355.332 8.725 3.383 1.682 3.743-2.73 5.148-5.074 2.663-.843-.894-.659-2.454-1.9-3.007-1.763-.785-2.864.928-2.517 2.359.848 3.5 4.652 5.39 8.101 5.272 3.768-.13 5.402-2.977 5.163-6.4-.33-4.735-3.985-5.476-7.99-5.998-1.698-.22-1.92-.2-1.816-1.952.128-2.118 1.37-4.567 3.991-4.063 2.106.405 2.294 3.571 4.455 3.718 3.496.239 1.256-3.433.368-4.62"></path><path id="M" d="M31.721 20.438c-1.337.32-2.963.098-4.327.073-1.053-.019-4.574.427-5.261-.296-.76-.8-.513-3.247-.545-4.286-.046-1.454-.404-1.67.872-2 .749-.193 1.907-.096 2.682-.131 1.515-.07 3.465.21 4.93-.088 1.37-.28 2.502-1.751 1.25-3.004-.886-.888-2.542-.411-3.631-.386-2.034.046-4.069.036-6.103.072.008-1.568-.043-3.147.079-4.71 2.847.14 5.812.881 8.659.745 1.44-.07 3.04-.992 2.31-2.73-.624-1.49-2.521-1.287-3.843-1.346-1.653-.075-3.308-.113-4.962-.17-1.224-.042-3.005-.445-4.159.107-2.362 1.13-1.55 5.01-1.485 7.112.084 2.666.085 5.268.177 7.956.084 2.433-.037 5.641 2.852 6.325 2.89.684 6.245.033 9.192.176 1.209.058 2.861.41 3.455-.996.569-1.349-.73-2.774-2.142-2.423"></path><path id="I" d="M8.41 5.88c2.321.5 2.942 3.014 3.02 5.149.054 1.46.183 1.373-1.003 1.74-1.19.368-2.92.169-4.139.116-2.543-.11-2.235-.278-2.284-2.945-.012-.625-.475-3.504-.108-3.91.476-.528 3.839-.203 4.514-.15m5.077 14.838c-1.29-1.504-2.586-2.94-4.034-4.286 2.158-.06 4.503-.473 5.27-2.819.648-1.982.085-5-.668-6.872-.994-2.47-3.062-4.119-5.635-4.478-1.796-.251-6.278-.673-7.62.71C-.665 4.482.352 8.623.442 10.47c.16 3.271.044 6.518-.157 9.785-.064 1.055-.582 2.787-.041 3.737.6 1.054 2.059 1.317 2.969.537.984-.844.529-1.878.468-2.961-.093-1.676.075-3.404.174-5.074 1.608 1.312 3.25 2.591 4.762 4.022 1.493 1.414 2.564 3.202 3.99 4.627 1.011 1.01 2.82 1.425 3.331-.448.44-1.608-1.571-2.951-2.451-3.977"></path></g></g></g>',1),Vm=[Bm];function Mm(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...Vm])}const Nm={render:Mm},Am=e.createStaticVNode('<g id="Clothing/Graphic-Shirt" transform="translate(0 170)"><defs><path id="react-path-1153" d="M165.624 29.268C202.76 32.138 232 63.18 232 101.052V110H32v-8.948c0-38.217 29.775-69.48 67.393-71.855A14 14 0 0 0 99 32.5C99 44.374 113.998 54 132.5 54S166 44.374 166 32.5c0-1.098-.128-2.178-.376-3.232"></path></defs><mask id="react-mask-1154" fill="#fff"><use href="#react-path-1153"></use></mask><use id="Clothes" fill="#E6E6E6" fill-rule="evenodd" href="#react-path-1153"></use><g id="Color/Palette/" fill="var(--avataaar-shirt-color)" fill-rule="evenodd" mask="url(#react-mask-1154)"><path id="Color" d="M0 0h264v110H0z"></path></g><g id="Clothing/Graphic/Skull" fill="#FFF" fill-rule="evenodd" mask="url(#react-mask-1154)"><path id="Fill-49" d="M65.282 19.929c-.298 2.777-5.693 4.274-7.672 2.448-.912-.842-.927-2.574-1.128-3.702-.38-2.133-.656-4.258-.751-6.423-.058-1.325-.406-2.385 1.044-2.582.883-.12 1.793.468 2.515.933 2.447 1.573 6.33 6.138 5.992 9.326m-12.4-5.853c.284 2.825 1.32 7.739-.936 10.105-2.016 2.115-6.16.018-6.783-2.473-.773-3.09 2.275-6.78 4.145-8.87.574-.641 1.844-2.412 2.836-1.82.382.228.693 2.612.737 3.058m1.44 11.03c.647-1.523 6.913 3.019 3.953 5.18-.482.352-4.16 1.465-4.864.941-1.485-1.103.43-4.964.911-6.12m19.004-7.58c-.443-15.476-20.26-19.84-30.85-11.023-4.048 3.372-6.362 7.5-6.468 12.779-.09 4.471.619 8.689 4.034 11.764 1.481 1.333 2.46 2.149 3.245 3.97.824 1.906 1.2 4.335 2.742 5.833.85.825 2.09 1.492 3.266.96 2.162-.98 1.47-3.978 2.125-5.65 2.037 4.97 7.211 6.554 8.15.25 1.031 1.819 3.726 4.2 5.7 2.21.812-.82.934-2.15 1.072-3.227.245-1.912-.18-2.664 1.355-3.975 4.039-3.45 5.773-8.672 5.63-13.891" transform="translate(77 58)"></path></g></g>',1),Tm=[Am];function Dm(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...Tm])}const Lm={render:Dm},Fm={Bat:Uu,Cumbia:Ku,Diamond:tm,Pizza:rm,Selena:cm,SkullOutline:fm,Bear:ym,Deer:wm,Hola:Sm,Resist:Nm,Skull:Lm},$m=e.createElementVNode("g",{transform:"translate(76 82)"},[e.createElementVNode("g",{id:"Eyes/Closed",opacity:".6",transform:"translate(0 8)"},[e.createElementVNode("path",{id:"Closed-Eye",d:"M16.16 32.447C18.007 28.65 22.164 26 26.998 26c4.816 0 8.961 2.63 10.817 6.407.552 1.122-.233 2.04-1.024 1.36-2.451-2.107-5.932-3.423-9.793-3.423-3.74 0-7.124 1.235-9.56 3.228-.891.728-1.818-.014-1.278-1.125m58 0C76.007 28.65 80.164 26 84.998 26c4.816 0 8.961 2.63 10.817 6.407.552 1.122-.233 2.04-1.024 1.36-2.451-2.107-5.932-3.423-9.793-3.423-3.74 0-7.124 1.235-9.56 3.228-.891.728-1.818-.014-1.278-1.125",transform:"matrix(1 0 0 -1 0 60)"})])],-1),_m=[$m];function Pm(t,n){return e.openBlock(),e.createElementBlock("svg",null,[..._m])}const Om={render:Pm},Rm=e.createElementVNode("g",{class:"CustomColor",opacity:".6",transform:"translate(76 90)"},[e.createElementVNode("circle",{id:"Eye",cx:"30",cy:"22",r:"6"}),e.createElementVNode("circle",{id:"Eye",cx:"82",cy:"22",r:"6"})],-1),Hm=[Rm];function zm(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...Hm])}const jm={render:zm},Gm=e.createStaticVNode('<g transform="translate(76 82)"><g id="Eyes/Eye-Roll" transform="translate(0 8)"><circle id="Eyeball" cx="30" cy="22" r="14" fill="#FFF"></circle><circle id="The-white-stuff" cx="82" cy="22" r="14" fill="#FFF"></circle><circle cx="30" cy="14" r="6" class="CustomColor" opacity=".7"></circle><circle cx="82" cy="14" r="6" class="CustomColor" opacity=".7"></circle></g></g>',1),qm=[Gm];function Im(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...qm])}const Wm={render:Im},Um=e.createElementVNode("g",{fill:"#FF5353",class:"CustomColor",opacity:".8",transform:"translate(76 90)"},[e.createElementVNode("path",{id:"Heart",d:"M35.958 10c-2.55 0-5.074 1.98-6.458 3.82-1.39-1.84-3.907-3.82-6.458-3.82C17.552 10 14 13.334 14 17.641c0 5.73 4.412 9.13 9.042 12.736 1.653 1.236 4.78 4.4 5.166 5.094.386.693 2.106.718 2.584 0 .477-.718 3.51-3.858 5.166-5.094C40.585 26.77 45 23.37 45 17.64c0-4.306-3.552-7.64-9.042-7.64m53 0c-2.55 0-5.074 1.98-6.458 3.82-1.39-1.84-3.907-3.82-6.458-3.82C70.552 10 67 13.334 67 17.641c0 5.73 4.412 9.13 9.042 12.736 1.653 1.236 4.78 4.4 5.166 5.094.386.693 2.106.718 2.584 0 .477-.718 3.51-3.858 5.166-5.094C93.585 26.77 98 23.37 98 17.64c0-4.306-3.552-7.64-9.042-7.64"})],-1),Zm=[Um];function Ym(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...Zm])}const Xm={render:Ym},Km=e.createStaticVNode('<g transform="translate(76 82)"><g id="Eyes/Squint" transform="translate(0 8)"><defs><path id="Eye1" d="M14 14.048c9.61 0 14 4.451 14-2.486C28 4.624 21.732 0 14 0S0 4.624 0 11.562s4.39 2.486 14 2.486"></path><path id="Eye2" d="M14 14.048c9.61 0 14 4.451 14-2.486C28 4.624 21.732 0 14 0S0 4.624 0 11.562s4.39 2.486 14 2.486"></path></defs><g id="Eye" transform="translate(16 13)"><mask id="EyeMask1" fill="#fff"><use href="#Eye1"></use></mask><use id="The-white-stuff" fill="#FFF" href="#Eye1"></use><circle cx="14" cy="10" r="6" class="CustomColor" mask="url('#EyeMask1')" opacity=".7"></circle></g><g id="Eye" transform="translate(68 13)"><mask id="EyeMask2" fill="#fff"><use href="#Eye2"></use></mask><use id="Eyeball-Mask" fill="#FFF" href="#Eye2"></use><circle cx="14" cy="10" r="6" class="CustomColor" mask="url('#EyeMask2')" opacity=".7"></circle></g></g></g>',1),Qm=[Km];function Jm(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...Qm])}const ef={render:Jm},tf=e.createElementVNode("g",{transform:"translate(76 82)"},[e.createElementVNode("g",{id:"Eyes/Wink",opacity:".6",transform:"translate(0 8)"},[e.createElementVNode("circle",{id:"Eye",cx:"30",cy:"22",r:"6"}),e.createElementVNode("path",{id:"Winky-Wink",d:"M70.412 24.205c1.847-3.799 6.005-6.447 10.838-6.447 4.816 0 8.961 2.63 10.818 6.407.551 1.122-.234 2.04-1.025 1.36-2.451-2.108-5.932-3.424-9.793-3.424-3.74 0-7.124 1.235-9.56 3.228-.891.729-1.818-.013-1.278-1.124",transform:"rotate(-4 81.252 21.758)"})])],-1),nf=[tf];function af(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...nf])}const of={render:af},rf=e.createStaticVNode('<g transform="translate(76 82)"><g id="Eyes/Cry" transform="translate(0 8)"><circle cx="30" cy="22" r="6" class="CustomColor" opacity=".6"></circle><path id="Drop" fill="#92D9FF" d="M25 27s-6 7.27-6 11.27a6 6 0 1 0 12 0c0-4-6-11.27-6-11.27"></path><circle cx="82" cy="22" r="6" class="CustomColor" opacity=".6"></circle></g></g>',1),sf=[rf];function lf(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...sf])}const cf={render:lf},df=e.createElementVNode("g",{class:"CustomColor",opacity:".6",transform:"translate(76 90)"},[e.createElementVNode("path",{id:"Eye",d:"m29 25.2 5.5 5.5c.5.4 1.2.4 1.6 0l1.6-1.6c.4-.5.4-1.2 0-1.6L32.2 22l5.5-5.5c.4-.5.4-1.2 0-1.6l-1.6-1.6c-.5-.4-1.2-.4-1.6 0L29 18.8l-5.5-5.5c-.5-.4-1.2-.4-1.6 0l-1.6 1.6c-.4.4-.4 1.1 0 1.6l5.5 5.5-5.5 5.5c-.4.5-.4 1.2 0 1.6l1.6 1.6c.5.4 1.2.4 1.6 0zm54 0 5.5 5.5c.5.4 1.2.4 1.6 0l1.6-1.6c.4-.5.4-1.2 0-1.6L86.2 22l5.5-5.5c.4-.5.4-1.2 0-1.6l-1.6-1.6c-.5-.4-1.2-.4-1.6 0L83 18.8l-5.5-5.5c-.5-.4-1.2-.4-1.6 0l-1.6 1.6c-.4.4-.4 1.1 0 1.6l5.5 5.5-5.5 5.5c-.4.5-.4 1.2 0 1.6l1.6 1.6c.5.4 1.2.4 1.6 0z"})],-1),uf=[df];function mf(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...uf])}const ff={render:mf},hf=e.createElementVNode("g",{transform:"translate(76 82)"},[e.createElementVNode("g",{id:"Eyes/Happy",opacity:".6",transform:"translate(0 8)"},[e.createElementVNode("path",{id:"Squint",d:"M16.16 22.447C18.007 18.65 22.164 16 26.998 16c4.816 0 8.961 2.63 10.817 6.407.552 1.122-.233 2.04-1.024 1.36-2.451-2.107-5.932-3.423-9.793-3.423-3.74 0-7.124 1.235-9.56 3.228-.891.728-1.818-.014-1.278-1.125m58 0C76.007 18.65 80.164 16 84.998 16c4.816 0 8.961 2.63 10.817 6.407.552 1.122-.233 2.04-1.024 1.36-2.451-2.107-5.932-3.423-9.793-3.423-3.74 0-7.124 1.235-9.56 3.228-.891.728-1.818-.014-1.278-1.125"})])],-1),pf=[hf];function gf(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...pf])}const yf={render:gf},kf=e.createElementVNode("g",{transform:"translate(76 82)"},[e.createElementVNode("g",{id:"Eyes/Side",opacity:".6",transform:"translate(0 8)"},[e.createElementVNode("path",{id:"Eye",d:"M27.241 20.346a6 6 0 1 0 10.699 2.8 2 2 0 0 0-.125-.739 8 8 0 0 0-.144-.372 6 6 0 0 0-1.646-2.484C33.9 17.317 30.506 16 26.998 16c-4.834 0-8.991 2.649-10.838 6.447-.54 1.111.387 1.853 1.278 1.125 2.436-1.993 5.82-3.228 9.56-3.228zm58 0a6 6 0 1 0 10.699 2.8 2 2 0 0 0-.125-.739 8 8 0 0 0-.144-.372 6 6 0 0 0-1.646-2.484C91.9 17.317 88.506 16 84.998 16c-4.834 0-8.991 2.649-10.838 6.447-.54 1.111.387 1.853 1.278 1.125 2.436-1.993 5.82-3.228 9.56-3.228z"})])],-1),xf=[kf];function bf(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...xf])}const wf={render:bf},Ef=e.createStaticVNode('<g transform="translate(76 82)"><g id="Eyes/Surprised" transform="translate(0 8)"><circle id="The-White-Stuff" cx="30" cy="22" r="14" fill="#FFF"></circle><circle id="Eye-Ball" cx="82" cy="22" r="14" fill="#FFF"></circle><circle cx="30" cy="22" r="6" class="CustomColor" opacity=".7"></circle><circle cx="82" cy="22" r="6" class="CustomColor" opacity=".7"></circle></g></g>',1),vf=[Ef];function Cf(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...vf])}const Sf={render:Cf},Bf=e.createStaticVNode('<g transform="translate(76 82)"><g id="Eyes/Wink-Wacky" transform="translate(0 8)"><circle id="cornea" cx="82" cy="22" r="12" fill="#FFF"></circle><circle cx="82" cy="22" r="6" class="CustomColor" opacity=".7"></circle><path id="Winky-Doodle" fill="#000" d="M16.16 25.447C18.007 21.65 22.164 19 26.998 19c4.816 0 8.961 2.63 10.817 6.407.552 1.122-.233 2.04-1.024 1.36-2.451-2.107-5.932-3.423-9.793-3.423-3.74 0-7.124 1.235-9.56 3.228-.891.728-1.818-.014-1.278-1.125" opacity=".6"></path></g></g>',1),Vf=[Bf];function Mf(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...Vf])}const Nf={render:Mf},Af={Close:Om,Default:jm,EyeRoll:Wm,Hearts:Xm,Squint:ef,Wink:of,Cry:cf,Dizzy:ff,Happy:yf,Side:wf,Surprised:Sf,WinkWacky:Nf},Tf=e.createElementVNode("g",{transform:"translate(76 82)"},[e.createElementVNode("path",{id:"Eyebrow/Outline/Angry",d:"M15.611 15.185c4.24-5.769 6.878-5.484 13.313-.629l.67.508C34.422 18.726 36.708 20 40 20a2 2 0 1 0 0-4c-2.066 0-3.901-1.022-7.989-4.123-.375-.285-.492-.373-.678-.513-3.76-2.837-5.959-4.077-8.695-4.372-3.684-.398-7.058 1.482-10.25 5.823a2 2 0 0 0 3.223 2.37m80.777 0c-4.24-5.769-6.877-5.484-13.312-.629l-.67.508C77.578 18.726 75.292 20 72 20a2 2 0 1 1 0-4c2.066 0 3.901-1.022 7.989-4.123.375-.285.492-.373.678-.513 3.76-2.837 5.959-4.077 8.695-4.372 3.684-.398 7.058 1.482 10.25 5.823a2 2 0 0 1-3.224 2.37",class:"CustomColor",opacity:".6"})],-1),Df=[Tf];function Lf(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...Df])}const Ff={render:Lf},$f=e.createElementVNode("g",{transform:"translate(76 82)"},[e.createElementVNode("path",{id:"Eyebrow/Natural/Flat-Natural",d:"M38.66 11.09c-4.998.362-9.923.086-14.918-.122-3.83-.158-7.717-.681-11.374 1.012-.7.324-4.53 2.28-4.44 3.349.07.855 3.935 2.191 4.63 2.436 3.67 1.29 7.181.896 10.954.67 4.628-.278 9.236-.074 13.861-.214 3.116-.093 7.917-.62 9.457-4.398.464-1.137.105-3.413-.36-4.657-.185-.496-.72-.683-1.125-.397-1.45 1.023-4.261 2.146-6.685 2.321m34.68 0c4.998.362 9.923.086 14.918-.122 3.83-.158 7.717-.681 11.374 1.012.7.324 4.53 2.28 4.44 3.349-.07.855-3.935 2.191-4.63 2.436-3.67 1.29-7.181.896-10.954.67-4.628-.278-9.236-.074-13.861-.214-3.116-.093-7.917-.62-9.457-4.398-.464-1.137-.105-3.413.36-4.657.185-.496.72-.683 1.125-.397 1.45 1.023 4.261 2.146 6.685 2.321",class:"CustomColor",opacity:".6"})],-1),_f=[$f];function Pf(t,n){return e.openBlock(),e.createElementBlock("svg",null,[..._f])}const Of={render:Pf},Rf=e.createElementVNode("g",{transform:"translate(76 82)"},[e.createElementVNode("path",{id:"Eyebrow/Outline/Sad-Concerned",d:"M38.028 5.591c-1.48 8.389-14.09 14.18-23.238 10.432-1.015-.416-2.19.031-2.627.999s.033 2.09 1.048 2.505c11.444 4.69 26.835-2.38 28.762-13.303.183-1.039-.551-2.023-1.64-2.197-1.09-.175-2.122.525-2.305 1.564m35.945 0c1.48 8.389 14.09 14.18 23.238 10.432 1.014-.416 2.19.031 2.627.999s-.033 2.09-1.048 2.505c-11.444 4.69-26.835-2.38-28.762-13.303-.183-1.039.551-2.023 1.64-2.197 1.09-.175 2.121.525 2.305 1.564",class:"CustomColor",opacity:".6"})],-1),Hf=[Rf];function zf(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...Hf])}const jf={render:zf},Gf=e.createElementVNode("g",{transform:"translate(76 82)"},[e.createElementVNode("path",{id:"Eyebrow/Natural/Up-Down-Natural",d:"m22.766 1.578.911-.402C28.92-.905 36.865-.033 41.723 2.299c.567.272.18 1.153-.402 1.108-14.919-1.151-24.963 8.146-28.375 14.44-.101.187-.407.208-.482.034-2.308-5.319 4.45-13.985 10.302-16.303M86.993 12.07c5.761.773 14.746 5.795 13.994 11.607-.024.19-.312.25-.436.091-2.487-3.188-21.712-7.872-28.714-6.894-.64.09-1.063-.571-.626-.984 3.744-3.535 10.62-4.518 15.782-3.82",class:"CustomColor",opacity:".6"})],-1),qf=[Gf];function If(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...qf])}const Wf={render:If},Uf=e.createElementVNode("g",{transform:"translate(76 82)"},[e.createElementVNode("path",{id:"Eyebrow/Natural/Angry-Natural",d:"M44.095 17.125q.006-.014 0 0M19.284 5.005c-2.368-.266-4.858.497-6.427 2.434-.59.728-1.553 2.48-1.509 3.417.017.356.225.375 1.124.59 1.646.392 4.5-1.114 6.355-.972 2.582.198 5.047 1.395 7.283 2.679 3.838 2.202 8.354 6.84 13.093 6.598.353-.018 5.42-1.739 4.41-2.723-.316-.484-3.034-1.128-3.501-1.361-2.172-1.084-4.367-2.448-6.443-3.718-4.528-2.772-8.944-6.338-14.385-6.944m48.746 12.12q-.006-.014 0 0m24.876-12.12c2.368-.266 4.857.497 6.426 2.434.59.728 1.554 2.48 1.509 3.417-.017.356-.225.375-1.124.59-1.645.392-4.5-1.114-6.355-.972-2.582.198-5.046 1.395-7.282 2.679-3.839 2.202-8.355 6.84-13.093 6.598-.353-.018-5.42-1.739-4.411-2.723.317-.484 3.034-1.128 3.502-1.361 2.171-1.084 4.367-2.448 6.442-3.718 4.528-2.772 8.945-6.338 14.386-6.944",class:"CustomColor",opacity:".6"})],-1),Zf=[Uf];function Yf(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...Zf])}const Xf={render:Yf},Kf=e.createElementVNode("g",{transform:"translate(76 82)"},[e.createElementVNode("path",{id:"Eyebrow/Natural/Frown-Natural",d:"M36.37 6.876c-1.97 2.905-5.546 4.64-8.738 5.684-3.943 1.29-18.552 3.38-15.112 11.348a.147.147 0 0 0 .272.002c1.153-2.645 17.465-5.123 18.973-5.704 4.445-1.709 8.393-5.49 9.162-10.543.352-2.317-.637-6.049-1.548-7.55-.11-.18-.374-.136-.43.069-.36 1.331-1.41 4.971-2.58 6.694m39.261 0c1.97 2.905 5.546 4.64 8.738 5.684 3.943 1.29 18.551 3.379 15.112 11.348a.147.147 0 0 1-.272.002c-1.153-2.645-17.465-5.123-18.973-5.704-4.445-1.709-8.393-5.49-9.162-10.543-.352-2.317.637-6.049 1.548-7.55.11-.18.374-.136.43.069.36 1.331 1.41 4.971 2.58 6.694",class:"CustomColor",opacity:".6"})],-1),Qf=[Kf];function Jf(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...Qf])}const eh={render:Jf},th=e.createElementVNode("g",{transform:"translate(76 82)"},[e.createElementVNode("path",{id:"Eyebrow/Natural/Sad-Concerned-Natural",d:"m31.234 20.422-.911.402c-5.242 2.081-13.188 1.209-18.046-1.123-.567-.272-.18-1.153.402-1.108 14.919 1.151 24.963-8.146 28.375-14.44.101-.187.407-.208.482-.034 2.308 5.319-4.45 13.985-10.302 16.303m49.532 0 .911.402c5.242 2.081 13.188 1.209 18.046-1.123.567-.272.18-1.153-.402-1.108-14.919 1.151-24.963-8.146-28.375-14.44-.101-.187-.407-.208-.482-.034-2.308 5.319 4.45 13.985 10.302 16.303",class:"CustomColor",opacity:".6"})],-1),nh=[th];function ah(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...nh])}const oh={render:ah},rh=e.createElementVNode("g",{transform:"translate(76 82)"},[e.createElementVNode("g",{id:"Eyebrow/Outline/Default",opacity:".6"},[e.createElementVNode("path",{id:"I-Browse",d:"M15.63 17.159c3.915-5.51 14.648-8.598 23.893-6.328a2 2 0 0 0 .954-3.884C29.74 4.31 17.312 7.887 12.37 14.84a2 2 0 0 0 3.26 2.318Zm80.74 0c-3.915-5.51-14.648-8.598-23.893-6.328a2 2 0 0 1-.954-3.884c10.737-2.637 23.165.94 28.108 7.894a2 2 0 0 1-3.26 2.318Z",class:"CustomColor"})])],-1),ih=[rh];function sh(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...ih])}const lh={render:sh},ch=e.createElementVNode("g",{transform:"translate(76 82)"},[e.createElementVNode("g",{id:"Eyebrow/Outline/Raised-Excited",opacity:".6"},[e.createElementVNode("path",{id:"I-Browse",d:"M15.976 17.128C17.47 7.605 30.059 1.108 39.164 5.3a2 2 0 0 0 1.672-3.633c-11.487-5.29-26.9 2.664-28.812 14.84a2 2 0 1 0 3.952.62Zm80.048 0C94.53 7.605 81.942 1.108 72.837 5.3a2 2 0 0 1-1.673-3.633c11.487-5.29 26.9 2.664 28.812 14.84a2 2 0 0 1-3.952.62Z",class:"CustomColor"})])],-1),dh=[ch];function uh(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...dh])}const mh={render:uh},fh=e.createElementVNode("g",{transform:"translate(76 82)"},[e.createElementVNode("g",{id:"Eyebrow/Natural/Unibrow-Natural",opacity:".6"},[e.createElementVNode("path",{d:"M56.997 12.82q0-.005 0 0m2.559 2.805c1.892 1.101 4.717 1.734 6.315 1.94 6.277.807 12.266-1.535 18.386-2.68 5.432-1.015 11.625-1.925 16.73.91.13.072 1.162.667 1.707 1.184a.81.81 0 0 0 1.291-.224c1.325-2.726-6.402-8.594-7.865-9.153-6.627-2.528-15.176.704-21.796 2.001-3.717.728-7.462 1.252-11.115 2.29-1.31.373-2.58 1.007-3.862 1.218-.162-.224-.362-.36-.588-.352-1.17.04-2.796 3.557-.56 3.676.7.038 1.13-.312 1.357-.81",class:"CustomColor"}),e.createElementVNode("path",{d:"M55.003 12.79q.002-.005 0 0M15.881 7.573c6.626-2.528 15.176.705 21.796 2.001 3.716.729 7.461 1.253 11.114 2.291 1.47.418 2.887 1.165 4.33 1.274.7.053 1.106.903.635 1.435-1.545 1.74-5.586 2.7-7.626 2.962-6.278.807-12.267-1.534-18.387-2.679-5.432-1.016-11.624-1.925-16.73.91-.13.071-1.161.666-1.707 1.184a.81.81 0 0 1-1.29-.224C6.69 14 14.417 8.133 15.881 7.573m39.092 4.217c1.17.041 2.762 4.5.525 4.674-2.237.173-1.696-4.715-.525-4.674",class:"CustomColor"})])],-1),hh=[fh];function ph(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...hh])}const gh={render:ph},yh=e.createElementVNode("g",{transform:"translate(76 82)"},[e.createElementVNode("path",{id:"Eyebrow/Natural/Default-Natural",d:"M26.547 6.148c-5.807.269-15.195 4.488-14.953 10.344.008.192.29.276.427.129 2.755-2.96 22.316-5.95 29.205-4.365.63.145 1.11-.477.71-.927-3.422-3.848-10.186-5.426-15.389-5.18m59.906-.001c5.807.269 15.195 4.488 14.953 10.344-.008.192-.29.276-.427.129-2.755-2.96-22.316-5.95-29.205-4.365-.63.145-1.11-.477-.71-.927 3.422-3.848 10.186-5.426 15.389-5.18",class:"CustomColor",opacity:".6"})],-1),kh=[yh];function xh(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...kh])}const bh={render:xh},wh=e.createElementVNode("g",{transform:"translate(76 82)"},[e.createElementVNode("path",{id:"Eyebrow/Natural/Raised-Excited-Natural",d:"m22.766 1.578.911-.402C28.92-.905 36.865-.033 41.723 2.299c.567.272.18 1.153-.402 1.108-14.919-1.151-24.963 8.146-28.375 14.44-.101.187-.407.208-.482.034-2.308-5.319 4.45-13.985 10.302-16.303m66.468 0-.911-.402C83.08-.905 75.135-.033 70.277 2.299c-.567.272-.18 1.153.402 1.108 14.919-1.151 24.963 8.146 28.375 14.44.101.187.407.208.482.034 2.308-5.319-4.45-13.985-10.302-16.303",class:"CustomColor",opacity:".6"})],-1),Eh=[wh];function vh(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...Eh])}const Ch={render:vh},Sh=e.createElementVNode("g",{transform:"translate(76 82)"},[e.createElementVNode("path",{id:"Eyebrow/Outline/Up-Down",d:"M15.591 14.162c4.496-6.326 14.012-9.508 23.756-6.366a2 2 0 1 0 1.228-3.807c-11.408-3.68-22.74.11-28.244 7.856a2 2 0 1 0 3.26 2.317m80.786 6.996c-3.914-5.509-14.647-8.598-23.892-6.328a2 2 0 0 1-.954-3.884c10.736-2.637 23.165.94 28.107 7.895a2 2 0 1 1-3.26 2.317Z",class:"CustomColor",opacity:".6"})],-1),Bh=[Sh];function Vh(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...Bh])}const Mh={render:Vh},Nh={Angry:Ff,FlatNatural:Of,SadConcerned:jf,UpDownNatural:Wf,AngryNatural:Xf,FrownNatural:eh,SadConcernedNatural:oh,Default:lh,RaisedExcited:mh,UnibrowNatural:gh,DefaultNatural:bh,RaisedExcitedNatural:Ch,UpDown:Mh},Ah=e.createStaticVNode('<g transform="translate(76 82)"><g id="Mouth/Concerned" transform="translate(2 52)"><defs><path id="Mouth1" d="M35.118 15.128C36.176 24.62 44.226 32 54 32c9.804 0 17.874-7.426 18.892-16.96.082-.767-.775-2.04-1.85-2.04H37.088c-1.08 0-2.075 1.178-1.97 2.128"></path></defs><mask id="MouthMask1" fill="#fff"><use href="#Mouth1" transform="matrix(1 0 0 -1 0 45)"></use></mask><use id="Mouth" fill="#000" href="#Mouth1" opacity=".7" transform="matrix(1 0 0 -1 0 45)"></use><rect id="Teeth" width="31" height="16" x="39" y="2" fill="#FFF" mask="url('#MouthMask1')" rx="5"></rect><g id="Tongue" fill="#FF4F6D" mask="url('#MouthMask1')"><g transform="translate(38 24)"><circle id="friend?" cx="11" cy="11" r="11"></circle><circle id="How-you-doing" cx="21" cy="11" r="11"></circle></g></g></g></g>',1),Th=[Ah];function Dh(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...Th])}const Lh={render:Dh},Fh=e.createElementVNode("g",{transform:"translate(76 82)"},[e.createElementVNode("g",{id:"Mouth/Disbelief",fill:"#000",opacity:".7",transform:"translate(2 52)"},[e.createElementVNode("path",{id:"Mouth",d:"M40 15c0 7.732 6.268 14 14 14s14-6.268 14-14",transform:"matrix(1 0 0 -1 0 44)"})])],-1),$h=[Fh];function _h(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...$h])}const Ph={render:_h},Oh=e.createStaticVNode('<g transform="translate(76 82)"><g id="Mouth/Grimace" transform="translate(2 52)"><defs><rect id="Grimace-path1" width="60" height="22" x="24" y="9" rx="11"></rect></defs><rect id="Mouth" width="64" height="26" x="22" y="7" fill="#000" opacity=".6" rx="13"></rect><mask id="Grimace-mask1" fill="#fff"><use href="#Grimace-path1"></use></mask><use id="Mouth" fill="#FFF" href="#Grimace-path1"></use><path id="Grimace-Teeth" fill="#E6E6E6" d="M71 22h-9v12h-4V22h-9v12h-4V22h-9v12h-4V22h-8v-4h8V6h4v12h9V6h4v12h9V6h4v12h9V6h4v12h8.867v4H75v12h-4z" mask="url('#Grimace-mask1')"></path></g></g>',1),Rh=[Oh];function Hh(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...Rh])}const zh={render:Hh},jh=e.createStaticVNode('<g transform="translate(76 82)"><g id="Mouth/Scream-Open" transform="translate(2 52)"><defs><path id="ScreamOpen-path1" d="M34.008 15.136C35.128 29.124 38.235 40.993 53.996 41c15.762.007 18.92-11.943 19.998-25.994.087-1.13-.82-2.006-1.957-2.006-6.686 0-9.367 1.994-18.048 2s-13.232-2-17.897-2c-1.143 0-2.196.737-2.084 2.136"></path></defs><mask id="ScreamOpen-mask1" fill="#fff"><use href="#ScreamOpen-path1" transform="matrix(1 0 0 -1 0 54)"></use></mask><use id="Mouth" fill="#000" href="#ScreamOpen-path1" opacity=".7" transform="matrix(1 0 0 -1 0 54)"></use><rect id="Teeth" width="31" height="16" x="39" y="2" fill="#FFF" mask="url('#ScreamOpen-mask1')" rx="5"></rect><g id="Tongue" fill="#FF4F6D" mask="url('#ScreamOpen-mask1')"><g id="Say-ahhhh" transform="translate(38 32)"><circle cx="11" cy="11" r="11"></circle><circle cx="21" cy="11" r="11"></circle></g></g></g></g>',1),Gh=[jh];function qh(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...Gh])}const Ih={render:qh},Wh=e.createStaticVNode('<g transform="translate(76 82)"><g id="Mouth/Smile" transform="translate(2 52)"><defs><path id="Smile-path1" d="M35.118 15.128C36.176 24.62 44.226 32 54 32c9.804 0 17.874-7.426 18.892-16.96.082-.767-.775-2.04-1.85-2.04H37.088c-1.08 0-2.075 1.178-1.97 2.128"></path></defs><mask id="Smile-mask1" fill="#fff"><use href="#Smile-path1"></use></mask><use id="Mouth" fill="#000" href="#Smile-path1" opacity=".7"></use><rect id="Teeth" width="31" height="16" x="39" y="2" fill="#FFF" mask="url('#Smile-mask1')" rx="5"></rect><g id="Tongue" fill="#FF4F6D" mask="url('#Smile-mask1')"><g transform="translate(38 24)"><circle cx="11" cy="11" r="11"></circle><circle cx="21" cy="11" r="11"></circle></g></g></g></g>',1),Uh=[Wh];function Zh(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...Uh])}const Yh={render:Zh},Xh=e.createElementVNode("g",{transform:"translate(76 82)"},[e.createElementVNode("g",{id:"Mouth/Twinkle",fill:"#000",opacity:".6",transform:"translate(2 52)"},[e.createElementVNode("path",{id:"Mouth",d:"M40 16c0 5.372 6.158 9 14 9s14-3.628 14-9c0-1.105-.95-2-2-2-1.293 0-1.87.905-2 2-1.242 2.938-4.317 4.716-10 5-5.683-.284-8.758-2.062-10-5-.13-1.095-.707-2-2-2-1.05 0-2 .895-2 2"})])],-1),Kh=[Xh];function Qh(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...Kh])}const Jh={render:Qh},ep=e.createElementVNode("g",{transform:"translate(76 82)"},[e.createElementVNode("g",{id:"Mouth/Default",opacity:".7",transform:"translate(2 52)"},[e.createElementVNode("path",{id:"Mouth",d:"M40 15c0 7.732 6.268 14 14 14s14-6.268 14-14"})])],-1),tp=[ep];function np(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...tp])}const ap={render:np},op=e.createStaticVNode('<g transform="translate(76 82)"><g id="Mouth/Eating" transform="translate(2 52)"><g id="Om-Nom-Nom" fill="#000" opacity=".6" transform="translate(28 6)"><path id="Delicious" d="M16.19 10.106C16.019 4.996 11.793.797 6.295 0 9.66 1.959 11.98 5.495 11.98 9.677c0 5.668-5.473 10.568-11.803 10.568H0A13 13 0 0 0 4.392 21c5.322 0 9.821-3.153 11.294-7.486 2.475 2.156 6.177 3.525 10.314 3.525s7.84-1.37 10.314-3.525C37.787 17.847 42.286 21 47.608 21c1.552 0 3.034-.268 4.392-.756l-.177.001c-6.33 0-11.803-4.9-11.803-10.568 0-4.182 2.32-7.718 5.686-9.677-5.498.797-9.724 4.996-9.897 10.106-2.564 1.736-6.014 2.8-9.809 2.8s-7.245-1.064-9.81-2.8"></path></g><circle id="Redish" cx="17" cy="15" r="9" fill="#FF4646" opacity=".2"></circle><circle id="Redish" cx="91" cy="15" r="9" fill="#FF4646" opacity=".2"></circle></g></g>',1),rp=[op];function ip(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...rp])}const sp={render:ip},lp=e.createElementVNode("g",{transform:"translate(76 82)"},[e.createElementVNode("g",{id:"Mouth/Sad",fill:"#000",opacity:".7",transform:"translate(2 52)"},[e.createElementVNode("path",{id:"Mouth",d:"M40.058 16.654c.65 7.03 6.644 11.723 13.942 11.723 7.342 0 13.363-4.75 13.953-11.848.031-.378-.876-.676-1.324-.452q-8.308 4.16-12.629 4.16-4.266 0-12.446-4.069c-.507-.252-1.534.068-1.496.486",transform:"matrix(1 0 0 -1 0 44.377)"})])],-1),cp=[lp];function dp(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...cp])}const up={render:dp},mp=e.createElementVNode("g",{transform:"translate(76 82)"},[e.createElementVNode("g",{id:"Mouth/Serious",fill:"#000",opacity:".7",transform:"translate(2 52)"},[e.createElementVNode("rect",{id:"Why-so-serious?",width:"24",height:"6",x:"42",y:"18",rx:"3"})])],-1),fp=[mp];function hp(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...fp])}const pp={render:hp},gp=e.createStaticVNode('<g transform="translate(76 82)"><g id="Mouth/Tongue" transform="translate(2 52)"><defs><path id="Tongue-path1" d="M29 15.609C30.41 25.23 41.062 33 54 33c12.968 0 23.646-7.817 25-18.26.101-.4-.225-1.74-2.174-1.74H31.174c-1.79 0-2.304 1.24-2.174 2.609"></path></defs><mask id="Tongue-mask1" fill="#fff"><use href="#Tongue-path1"></use></mask><use id="Mouth" fill="#000" href="#Tongue-path1" opacity=".7"></use><rect id="Teeth" width="31" height="16" x="39" y="2" fill="#FFF" mask="url('#Tongue-mask1')" rx="5"></rect><path id="Tongue" fill="#FF4F6D" d="M65.984 23.747Q66 23.871 66 24v9c0 6.075-4.925 11-11 11h-1c-6.075 0-11-4.925-11-11v-9q0-.129.016-.253A2 2 0 0 1 43 23.5c0-1.933 2.91-3.5 6.5-3.5 2.01 0 3.808.491 5 1.263 1.192-.772 2.99-1.263 5-1.263 3.59 0 6.5 1.567 6.5 3.5q0 .124-.016.247"></path></g></g>',1),yp=[gp];function kp(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...yp])}const xp={render:kp},bp=e.createStaticVNode('<g transform="translate(76 82)"><g id="Mouth/Vomit" transform="translate(2 52)"><defs><path id="Vomit-path1" d="M34.008 12.602c1.12 10.49 4.227 19.392 19.988 19.398 15.762.006 18.92-8.958 19.998-19.495.087-.848-.82-1.505-1.957-1.505-6.686 0-9.367 1.495-18.048 1.5S40.757 11 36.092 11c-1.143 0-2.196.552-2.084 1.602"></path><path id="Vomit-path2" d="M59.917 36H60a6 6 0 1 0 12 0v-5a6 6 0 0 0-6-6H42a6 6 0 0 0-6 6v7a6 6 0 1 0 12 0v-2h.083a6.002 6.002 0 0 1 11.834 0"></path><filter id="filter1" width="102.8%" height="105.3%" x="-1.4%" y="-2.6%" filterUnits="objectBoundingBox"><feOffset dy="-1" in="SourceAlpha" result="shadowOffsetInner1"></feOffset><feComposite in="shadowOffsetInner1" in2="SourceAlpha" k2="-1" k3="1" operator="arithmetic" result="shadowInnerInner1"></feComposite><feColorMatrix in="shadowInnerInner1" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.1 0"></feColorMatrix></filter></defs><mask id="Vomit-mask1" fill="#fff"><use href="#Vomit-path1" transform="matrix(1 0 0 -1 0 43)"></use></mask><use id="Mouth" fill="#000" href="#Vomit-path1" opacity=".7" transform="matrix(1 0 0 -1 0 43)"></use><rect id="Teeth" width="31" height="16" x="39" y="0" fill="#FFF" mask="url('#Vomit-mask1')" rx="5"></rect><g id="Vomit-Stuff"><use fill="#88C553" href="#Vomit-path2"></use><use filter="url('#filter1')" href="#Vomit-path2"></use></g></g></g>',1),wp=[bp];function Ep(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...wp])}const vp={render:Ep},Cp={Concerned:Lh,Disbelief:Ph,Grimace:zh,ScreamOpen:Ih,Smile:Yh,Twinkle:Jh,Default:ap,Eating:sp,Sad:up,Serious:pp,Tongue:xp,Vomit:vp},Sp=(t="#6fb8e0")=>[e.h("g",{id:"Circle","stroke-width":"1","fill-rule":"evenodd",transform:"translate(12.000000, 40.000000)"},[e.h("mask",{id:"mask-1",fill:"white"},[e.h("use",{href:"#path-1"})]),e.h("use",{id:"Circle-Background",fill:"#E6E6E6",href:"#path-1"}),e.h("g",{id:"Color/Palette/Blue-01",mask:"url(#mask-1)",fill:t},[e.h("rect",{id:"Color",x:"0",y:"0",width:"240",height:"240"})])]),e.h("mask",{id:"mask-2",fill:"white"},[e.h("use",{href:"#path-2"})])],Bp=t=>{const n={"--avataaar-hair-color":t.hairColor,"--avataaar-facial-hair-color":t.facialHairColor,"--avataaar-top-color":t.topColor,"--avataaar-shirt-color":t.clothesColor};return e.h("svg",{viewBox:"0 0 264 280",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},[e.h("desc","vue3-avataaars"),e.h("defs",[e.h("circle",{id:"path-1",cx:"120",cy:"120",r:"120"}),e.h("path",{id:"path-2",d:"M12,160 C12,226.27417 65.72583,280 132,280 C198.27417,280 252,226.27417 252,160 L264,160 L264,-1.42108547e-14 L-3.19744231e-14,-1.42108547e-14 L-3.19744231e-14,160 L12,160 Z"}),e.h("path",{id:"path-silhouette",d:"M124,144.610951 L124,163 L128,163 L128,163 C167.764502,163 200,195.235498 200,235 L200,244 L0,244 L0,235 C-4.86974701e-15,195.235498 32.235498,163 72,163 L72,163 L76,163 L76,144.610951 C58.7626345,136.422372 46.3722246,119.687011 44.3051388,99.8812385 C38.4803105,99.0577866 34,94.0521096 34,88 L34,74 C34,68.0540074 38.3245733,63.1180731 44,62.1659169 L44,56 L44,56 C44,25.072054 69.072054,5.68137151e-15 100,0 L100,0 L100,0 C130.927946,-5.68137151e-15 156,25.072054 156,56 L156,62.1659169 C161.675427,63.1180731 166,68.0540074 166,74 L166,88 C166,94.0521096 161.51969,99.0577866 155.694861,99.8812385 C153.627775,119.687011 141.237365,136.422372 124,144.610951 Z"})]),e.h("g",{id:"Avataaar",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[e.h("g",{id:"Avataaar/Circle",transform:"translate(-825.000000, -1100.000000)"},[e.h("g",{transform:"translate(825.000000, 1100.000000)"},[t.isCircle?Sp(t.circleColor):null,e.h("g",{id:"Mask"}),e.h("g",{id:"Avataaar","stroke-width":"1","fill-rule":"evenodd",fill:"black",mask:"url(#mask-2)",style:n},[e.h("g",{id:"Body",transform:"translate(32.000000, 36.000000)"},[e.h("mask",{id:"mask-silhouette",fill:"white"},[e.h("use",{href:"#path-silhouette"})]),e.h("use",{fill:t.skinColor,href:"#path-silhouette"}),e.h("path",{id:"Neck-Shadow",d:"M156,79 L156,102 C156,132.927946 130.927946,158 100,158 C69.072054,158 44,132.927946 44,102 L44,79 L44,94 C44,124.927946 69.072054,150 100,150 C130.927946,150 156,124.927946 156,94 L156,79 Z","fill-opacity":"0.100000001",fill:"#000000",mask:"url(#mask-silhouette)"})]),e.h(R7[t.clothes]),t.clothes==="GraphicShirt"?e.h(Fm[t.graphicShirt]):null,e.h(Af[t.eyes]),e.h(Nh[t.eyebrows]),e.h(Cp[t.mouth]),e.h("svg",[e.h("g",{fill:"black",transform:"translate(76.000000, 82.000000)"},[e.h("g",{id:"Nose/Default",transform:"translate(28.000000, 40.000000)",opacity:"0.16"},[e.h("path",{id:"Nose",d:"M16,8 C16,12.418278 21.372583,16 28,16 L28,16 C34.627417,16 40,12.418278 40,8"})])])]),e.h(bu[t.top]),e.h(Gu[t.facialHair]),e.h(n7[t.accessories])])])])])])};function pt(t){return t[Math.floor(Math.random()*t.length)]}function Vp(t){return pt(Object.keys(t))}function ln(t){return t[Vp(t)]}const $1={Black:"#262E33",Blue01:"#65C9FF",Blue02:"#5199E4",Blue03:"#25557C",Gray01:"#E6E6E6",Gray02:"#929598",Heather:"#3C4F5C",PastelBlue:"#B1E2FF",PastelGreen:"#A7FFC4",PastelOrange:"#FFBC69",PastelRed:"#FFAFB9",PastelYellow:"#FFFFB1",Pink:"#FF488E",Red:"#FF5C5C",White:"#FFFFFF"},_1={Auburn:"#A55728",Black:"#2C1B18",Blonde:"#B58143",BlondeGolden:"#D6B370",Brown:"#724133",BrownDark:"#4A312C",PastelPink:"#F59797",Platinum:"#ECDCBF",Red:"#C93305",SilverGray:"#E8E1E1"},Mp={Tanned:"#FD9841",Yellow:"#F8D25C",Pale:"#FFDBB4",Light:"#EDB98A",Brown:"#D08B5B",DarkBrown:"#AE5D29",Black:"#614335"},Np=["Blank","Prescription01","Round","Wayfarers","Kurt","Prescription02","Sunglasses"],Ap=["Close","Default","EyeRoll","Hearts","Squint","Wink","Cry","Dizzy","Happy","Side","Surprised","WinkWacky"],Tp=["Angry","FlatNatural","SadConcerned","UpDownNatural","AngryNatural","FrownNatural","SadConcernedNatural","Default","RaisedExcited","UnibrowNatural","DefaultNatural","RaisedExcitedNatural","UpDown"],Dp=["BeardMajestic","BeardLight","MoustacheFancy","BeardMedium","Blank","MoustacheMagnum"],Lp=["Concerned","Disbelief","Grimace","ScreamOpen","Smile","Twinkle","Default","Eating","Sad","Serious","Tongue","Vomit"],Fp=["Eyepatch","Hat","Hijab","LongHairBigHair","LongHairBob","LongHairBun","LongHairCurly","LongHairCurvy","LongHairDreads","LongHairFrida","LongHairFro","LongHairFroBand","LongHairMiaWallace","LongHairNotTooLong","LongHairShavedSides","LongHairStraight","LongHairStraight2","LongHairStraightStrand","NoHair","ShortHairDreads01","ShortHairDreads02","ShortHairFrizzle","ShortHairShaggy","ShortHairShaggyMullet","ShortHairShortCurly","ShortHairShortFlat","ShortHairShortRound","ShortHairShortWaved","ShortHairSides","ShortHairTheCaesar","ShortHairTheCaesarSidePart","Turban","WinterHat1","WinterHat2","WinterHat3","WinterHat4"],$p=["BlazerShirt","CollarSweater","BlazerSweater","Hoodie","GraphicShirt","Overall","ShirtCrewNeck","ShirtVNeck","ShirtScoopNeck"],_p=["Bat","Cumbia","Diamond","Pizza","Selena","SkullOutline","Bear","Deer","Hola","Resist","Skull"],Un=(t={})=>{var n,a,o,r,i,s,l,d,f,u,h,m,p,c;return{isCircle:t.isCircle===void 0?!1:t.isCircle,circleColor:(n=t.circleColor)!=null?n:void 0,skinColor:(a=t.skinColor)!=null?a:ln(Mp),hairColor:(o=t.hairColor)!=null?o:ln(_1),topColor:(r=t.topColor)!=null?r:ln($1),clothesColor:(i=t.clothesColor)!=null?i:ln($1),facialHairColor:(s=t.facialHairColor)!=null?s:ln(_1),accessories:(l=t.accessories)!=null?l:pt(Np),eyes:(d=t.eyes)!=null?d:pt(Ap),eyebrows:(f=t.eyebrows)!=null?f:pt(Tp),mouth:(u=t.mouth)!=null?u:pt(Lp),top:(h=t.top)!=null?h:pt(Fp),clothes:(m=t.clothes)!=null?m:pt($p),graphicShirt:(p=t.graphicShirt)!=null?p:pt(_p),facialHair:(c=t.facialHair)!=null?c:pt(Dp)}},P1={isCircle:!0,circleColor:"#22c55e",skinColor:"#D08B5B",hairColor:"#E8E1E1",topColor:"#E6E6E6",clothesColor:"blue",facialHairColor:"#E8E1E1",accessories:"Blank",eyes:"Default",eyebrows:"DefaultNatural",mouth:"Default",top:"NoHair",clothes:"GraphicShirt",graphicShirt:"Pizza",facialHair:"Blank"},Pp={class:"main-container"},Op=["src"],Rp={key:1,class:"avatar-section flex flex-col"},Hp={id:"avatar-container",class:"avatar-container"},zp={class:"controls"},jp={class:"checkbox-label checkbox-wrapper-2",for:"avatarLabel"},O1=Ce({__name:"randomAvatar",props:{content:{type:String,default:null}},emits:["base64","random"],setup(t,{emit:n}){const a=e.ref(P1),o=e.ref(P1),r=e.ref(!1);e.onMounted(async()=>{a.value=Un(a.value),await e.nextTick(),f()});const i=n,s=t,l=async()=>{if(r.value)a.value=Un(o.value);else{const u={...o.value,facialHair:"Blank"};a.value=Un(u)}await e.nextTick(),f()},d=async()=>{a.value=Un({isCircle:!0,circleColor:"#22c55e",facialHair:r.value?"Blank":null});const u=a.value;o.value=u,await e.nextTick(),f()},f=()=>{const u=document.querySelector("#avatar-container svg");if(!u){console.error("Avatar não encontrado!");return}let m=new XMLSerializer().serializeToString(u);const c=`data:image/svg+xml;base64,${window.btoa(unescape(encodeURIComponent(m)))}`;i("base64",c)};return(u,h)=>(e.openBlock(),e.createElementBlock("main",Pp,[s.content?(e.openBlock(),e.createElementBlock("img",{key:0,class:"max-w-[45%] max-h-[45%] flex items-center justify-center mx-auto",src:s.content},null,8,Op)):(e.openBlock(),e.createElementBlock("section",Rp,[e.createElementVNode("div",Hp,[e.createVNode(e.unref(Bp),e.normalizeProps(e.guardReactiveProps(a.value)),null,16)]),e.createElementVNode("div",zp,[e.createElementVNode("label",jp,[e.withDirectives(e.createElementVNode("input",{id:"avatarLabel","onUpdate:modelValue":h[0]||(h[0]=m=>r.value=m),type:"checkbox",onInput:l,class:"sc-gJwTLC ikxBAC"},null,544),[[e.vModelCheckbox,r.value]]),h[1]||(h[1]=e.createTextVNode(" Remover barba "))]),e.createElementVNode("button",{onClick:d,class:"generate-button"}," Gerar Avatar ")])]))]))}},[["__scopeId","data-v-25c1ac70"]]),Gp={class:"modal_container"},qp={class:"modal_box"},Ip={class:"modal_header"},R1=Ce({__name:"min_modal",props:{defineWidth:{type:String,default:"max-width-md"}},emits:["close"],setup(t,{emit:n}){const a=n,o=()=>{a("close")};return(r,i)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{class:"min_modal"},[e.createElementVNode("div",{class:"modal_overlay",onClick:o})]),e.createElementVNode("div",Gp,[e.createElementVNode("div",{class:e.normalizeClass(["modal_content ",t.defineWidth])},[e.createElementVNode("div",qp,[e.createElementVNode("div",Ip,[e.renderSlot(r.$slots,"header",{},void 0,!0),e.createElementVNode("button",{class:"modal_close",onClick:i[0]||(i[0]=s=>o())},i[1]||(i[1]=[e.createElementVNode("svg",{class:"modal_close_icon","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 14 14"},[e.createElementVNode("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m1 1 6 6m0 0 6 6M7 7l6-6M7 7l-6 6"})],-1)]))]),e.createElementVNode("div",null,[e.renderSlot(r.$slots,"body",{},void 0,!0)])])],2)])],64))}},[["__scopeId","data-v-efcc01f4"]]),Wp={v:"5.4.4",fr:30,ip:0,op:110,w:800,h:600,nm:"Comp 1",ddd:0,assets:[{id:"comp_0",layers:[{ddd:0,ind:1,ty:4,nm:"Sub Rocket 01",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:1,k:[{i:{x:.833,y:.833},o:{x:.167,y:.167},t:0,s:[219.02,362.805,0],e:[358.52,362.805,0],to:[23.25,0,0],ti:[0,0,0]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:15,s:[358.52,362.805,0],e:[219.02,362.805,0],to:[0,0,0],ti:[23.25,0,0]},{t:30}],ix:2,x:`var $bm_rt;
|
|
97
|
+
*/const H1=["viewport","carousel"],aa={"bottom-to-top":"btt","left-to-right":"ltr","right-to-left":"rtl","top-to-bottom":"ttb"},z1=["ltr","left-to-right","rtl","right-to-left","ttb","top-to-bottom","btt","bottom-to-top"],U5={ariaGallery:"Gallery",ariaNavigateToPage:"Navigate to page {slideNumber}",ariaNavigateToSlide:"Navigate to slide {slideNumber}",ariaNextSlide:"Navigate to next slide",ariaPreviousSlide:"Navigate to previous slide",iconArrowDown:"Arrow pointing downwards",iconArrowLeft:"Arrow pointing to the left",iconArrowRight:"Arrow pointing to the right",iconArrowUp:"Arrow pointing upwards",itemXofY:"Item {currentSlide} of {slidesCount}"},j1=["slide","fade"],G1=["center","start","end","center-even","center-odd"],I1=10,oa=.08,He={autoplay:0,breakpointMode:H1[0],breakpoints:void 0,dir:z1[0],enabled:!0,gap:0,height:"auto",i18n:U5,ignoreAnimations:!1,itemsToScroll:1,itemsToShow:1,modelValue:0,mouseDrag:!0,mouseWheel:!1,pauseAutoplayOnHover:!1,preventExcessiveDragging:!1,slideEffect:j1[0],snapAlign:G1[0],touchDrag:!0,transition:300,wrapAround:!1},Gt=Symbol("carousel"),Z5=t=>{const n=e.shallowReactive([]),a=o=>{o!==void 0?n.slice(o).forEach((r,i)=>{var s;(s=r.exposed)===null||s===void 0||s.setIndex(o+i)}):n.forEach((r,i)=>{var s;(s=r.exposed)===null||s===void 0||s.setIndex(i)})};return{cleanup:()=>{n.splice(0,n.length)},getSlides:()=>n,registerSlide:(o,r)=>{if(!o||o.props.isClone)return;const i=r??n.length;n.splice(i,0,o),a(i),t("slide-registered",{slide:o,index:i})},unregisterSlide:o=>{const r=n.indexOf(o);r!==-1&&(t("slide-unregistered",{slide:o,index:r}),n.splice(r,1),a(r))}}};function Y5(t){return t.length===0?0:t.reduce((a,o)=>a+o,0)/t.length}function q1({slides:t,position:n,toShow:a}){const o=[],r=n==="before",i=r?-a:0,s=r?0:a;if(t.length<=0)return o;for(let l=i;l<s;l++){const u={index:r?l:l+t.length,isClone:!0,id:void 0,key:`clone-${n}-${l}`},c=t[(l%t.length+t.length)%t.length].vnode,h=e.cloneVNode(c,u);h.el=null,o.push(h)}return o}const X5='a[href], button, input, textarea, select, details, [tabindex]:not([tabindex="-1"])';function W1(t){if(!t.el||!(t.el instanceof Element))return;const n=t.el.querySelectorAll(X5);for(const a of n)a instanceof HTMLElement&&!a.hasAttribute("disabled")&&a.getAttribute("aria-hidden")!=="true"&&a.setAttribute("tabindex","-1")}function K5(t,n){return Object.keys(t).filter(a=>!n.includes(a)).reduce((a,o)=>(a[o]=t[o],a),{})}function Q5(t){const{isVertical:n,isReversed:a,dragged:o,effectiveSlideSize:r,threshold:i}=t,s=n?o.y:o.x;if(s===0)return 0;const l=s/r,d=Math.abs(l);if(d<i)return 0;const u=d<1?Math.sign(l):Math.round(l);return a?u:-u}function vt({val:t,max:n,min:a}){return n<a?t:Math.min(Math.max(t,isNaN(a)?t:a),isNaN(n)?t:n)}function J5(t){const{transform:n}=window.getComputedStyle(t);return n.split(/[(,)]/).slice(1,-1).map(a=>parseFloat(a))}function e6(t){let n=1,a=1;return t.forEach(o=>{const r=J5(o);r.length===6&&(n/=r[0],a/=r[3])}),{widthMultiplier:n,heightMultiplier:a}}function t6(t,n){switch(t){case"start":return 0;case"center":case"center-odd":return(n-1)/2;case"center-even":return(n-2)/2;case"end":return n-1;default:return 0}}function n6(t,n,a){switch(t){case"start":return 0;case"center":case"center-odd":return(a-n)/2;case"center-even":return a/2-n;case"end":return a-n;default:return 0}}function Ka({slideSize:t,viewportSize:n,align:a,itemsToShow:o}){return o!==void 0?t6(a,o):t!==void 0&&n!==void 0?n6(a,t,n):0}function U1(t="",n={}){return Object.entries(n).reduce((a,[o,r])=>a.replace(`{${o}}`,String(r)),t)}function Z1({val:t,max:n,min:a=0}){const o=n-a+1;return((t-a)%o+o)%o+a}function Qa(t,n=0){let a=!1,o=0,r=null;function i(...s){if(a)return;a=!0;const l=()=>{r=requestAnimationFrame(d=>{d-o>n?(o=d,t(...s),a=!1):l()})};l()}return i.cancel=()=>{r&&(cancelAnimationFrame(r),r=null,a=!1)},i}function ra(t,n="px"){if(!(t==null||t===""))return typeof t=="number"||parseFloat(t).toString()===t?`${t}${n}`:t}const a6=e.defineComponent({name:"CarouselAria",setup(){const t=e.inject(Gt);return t?()=>e.h("div",{class:["carousel__liveregion","carousel__sr-only"],"aria-live":"polite","aria-atomic":"true"},U1(t.config.i18n.itemXofY,{currentSlide:t.currentSlide+1,slidesCount:t.slidesCount})):()=>""}});function o6(t){let n=!1;const a={x:0,y:0},o=e.reactive({x:0,y:0}),r=e.ref(!1),{isSliding:i}=t,s=e.computed(()=>typeof i=="boolean"?i:i.value),l=c=>{var h;const m=c.target.tagName;if(["INPUT","TEXTAREA","SELECT"].includes(m)||s.value||(n=c.type==="touchstart",n&&c.touches.length>1))return;if(!n&&(c.preventDefault(),c.button!==0))return;a.x=n?c.touches[0].clientX:c.clientX,a.y=n?c.touches[0].clientY:c.clientY;const p=n?"touchmove":"mousemove",f=n?"touchend":"mouseup";document.addEventListener(p,d,{passive:!1}),document.addEventListener(f,u,{passive:!0}),(h=t.onDragStart)===null||h===void 0||h.call(t)},d=Qa(c=>{var h;if(n&&c.touches.length>1)return;r.value=!0;const m=n?c.touches[0].clientX:c.clientX,p=n?c.touches[0].clientY:c.clientY;o.x=m-a.x,o.y=p-a.y,(h=t.onDrag)===null||h===void 0||h.call(t,{deltaX:o.x,deltaY:o.y,isTouch:n})}),u=()=>{var c;d.cancel();const h=Math.abs(o.x)+Math.abs(o.y);!n&&h>10&&window.addEventListener("click",f=>{f.preventDefault(),f.stopPropagation()},{once:!0,capture:!0}),(c=t.onDragEnd)===null||c===void 0||c.call(t),o.x=0,o.y=0,r.value=!1;const m=n?"touchmove":"mousemove",p=n?"touchend":"mouseup";document.removeEventListener(m,d),document.removeEventListener(p,u)};return{dragged:o,isDragging:r,handleDragStart:l}}function r6(){const t=e.ref(!1);return{isHover:t,handleMouseEnter:()=>{t.value=!0},handleMouseLeave:()=>{t.value=!1}}}function i6(t){const{isVertical:n,isSliding:a,config:o}=t,r=e.computed(()=>typeof n=="boolean"?n:n.value),i=e.computed(()=>typeof a=="boolean"?a:a.value);return{handleScroll:l=>{var d,u;if(l.preventDefault(),!o.mouseWheel||i.value)return;const c=typeof o.mouseWheel=="object"&&(d=o.mouseWheel.threshold)!==null&&d!==void 0?d:I1,h=Math.abs(l.deltaY)>c?l.deltaY:0,m=Math.abs(l.deltaX)>c?l.deltaX:0;if(h===0&&m===0)return;const p=r.value?h:m,g=(p!==0?p:r.value?m:h)>0;(u=t.onWheel)===null||u===void 0||u.call(t,{deltaX:m,deltaY:h,isScrollingForward:g})}}}const s6={autoplay:{default:He.autoplay,type:Number},breakpoints:{default:He.breakpoints,type:Object},breakpointMode:{default:He.breakpointMode,validator(t){return H1.includes(t)}},clamp:{type:Boolean},dir:{type:String,default:He.dir,validator(t,n){if(!z1.includes(t))return!1;const a=t in aa?aa[t]:t;return["ttb","btt"].includes(a)&&(!n.height||n.height==="auto")&&console.warn(`[vue3-carousel]: The dir "${t}" is not supported with height "auto".`),!0}},enabled:{default:He.enabled,type:Boolean},gap:{default:He.gap,type:Number},height:{default:He.height,type:[Number,String]},i18n:{default:He.i18n,type:Object},ignoreAnimations:{default:!1,type:[Array,Boolean,String]},itemsToScroll:{default:He.itemsToScroll,type:Number},itemsToShow:{default:He.itemsToShow,type:[Number,String]},modelValue:{default:void 0,type:Number},mouseDrag:{default:He.mouseDrag,type:[Boolean,Object]},mouseWheel:{default:He.mouseWheel,type:[Boolean,Object]},mouseScrollThreshold:{default:He.mouseScrollThreshold,type:Number},pauseAutoplayOnHover:{default:He.pauseAutoplayOnHover,type:Boolean},preventExcessiveDragging:{default:!1,type:Boolean,validator(t,n){return t&&n.wrapAround&&console.warn('[vue3-carousel]: "preventExcessiveDragging" cannot be used with wrapAround. The setting will be ignored.'),!0}},slideEffect:{type:String,default:He.slideEffect,validator(t){return j1.includes(t)}},snapAlign:{default:He.snapAlign,validator(t){return G1.includes(t)}},touchDrag:{default:He.touchDrag,type:[Boolean,Object]},transition:{default:He.transition,type:Number},wrapAround:{default:He.wrapAround,type:Boolean}},l6=e.defineComponent({name:"VueCarousel",props:s6,emits:["before-init","drag","init","loop","slide-end","slide-registered","slide-start","slide-unregistered","update:modelValue","wheel"],setup(t,{slots:n,emit:a,expose:o}){var r;const i=Z5(a),s=i.getSlides(),l=e.computed(()=>s.length),d=e.ref(null),u=e.ref(null),c=e.ref(0),h=e.computed(()=>Object.assign(Object.assign(Object.assign({},He),K5(t,["breakpoints","modelValue"])),{i18n:Object.assign(Object.assign({},He.i18n),t.i18n)})),m=e.shallowReactive(Object.assign({},h.value)),p=e.ref((r=t.modelValue)!==null&&r!==void 0?r:0),f=e.ref(p.value);e.watch(p,F=>f.value=F);const g=e.ref(0),y=e.computed(()=>Math.ceil((l.value-1)/2)),k=e.computed(()=>l.value-1),E=e.computed(()=>0);let C=null,b=null,N=null;const D=e.computed(()=>c.value+m.gap),z=e.computed(()=>{const F=m.dir||"ltr";return F in aa?aa[F]:F}),M=e.computed(()=>["rtl","btt"].includes(z.value)),x=e.computed(()=>["ttb","btt"].includes(z.value)),T=e.computed(()=>m.itemsToShow==="auto"),B=e.computed(()=>x.value?"height":"width");function V(){var F;if(!ye.value)return;const G=(h.value.breakpointMode==="carousel"?(F=d.value)===null||F===void 0?void 0:F.getBoundingClientRect().width:typeof window<"u"?window.innerWidth:0)||0,W=Object.keys(t.breakpoints||{}).map(ie=>Number(ie)).sort((ie,ue)=>+ue-+ie),ee={};W.some(ie=>G>=ie?(Object.assign(ee,t.breakpoints[ie]),ee.i18n&&Object.assign(ee.i18n,h.value.i18n,t.breakpoints[ie].i18n),!0):!1),Object.assign(m,h.value,ee),T.value||(m.itemsToShow=vt({val:Number(m.itemsToShow),max:t.clamp?l.value:1/0,min:1}))}const S=Qa(()=>{V(),R(),_()}),v=e.shallowReactive(new Set),P=e.ref([]);function Z({widthMultiplier:F,heightMultiplier:G}){P.value=s.map(W=>{var ee;const ie=(ee=W.exposed)===null||ee===void 0?void 0:ee.getBoundingRect();return{width:ie.width*F,height:ie.height*G}})}const Q=e.ref({width:0,height:0});function J({widthMultiplier:F,heightMultiplier:G}){var W;const ee=((W=u.value)===null||W===void 0?void 0:W.getBoundingClientRect())||{width:0,height:0};Q.value={width:ee.width*F,height:ee.height*G}}function _(){if(!u.value)return;const F=e6(v);if(J(F),Z(F),T.value)c.value=Y5(P.value.map(G=>G[B.value]));else{const G=Number(m.itemsToShow),W=(G-1)*m.gap;c.value=(Q.value[B.value]-W)/G}}function R(){!m.wrapAround&&l.value>0&&(p.value=vt({val:p.value,max:k.value,min:E.value}))}const O=e.computed(()=>typeof t.ignoreAnimations=="string"?t.ignoreAnimations.split(","):Array.isArray(t.ignoreAnimations)?t.ignoreAnimations:t.ignoreAnimations?!1:[]);e.watchEffect(()=>R()),e.watchEffect(()=>{_()});let oe;const de=F=>{const G=F.target;if(!(!(G!=null&&G.contains(d.value))||Array.isArray(O.value)&&O.value.includes(F.animationName))&&(v.add(G),!oe)){const W=()=>{oe=requestAnimationFrame(()=>{_(),W()})};W()}},pe=F=>{const G=F.target;G&&v.delete(G),oe&&v.size===0&&(cancelAnimationFrame(oe),_())},ye=e.ref(!1);typeof document<"u"&&e.watchEffect(()=>{ye.value&&O.value!==!1?(document.addEventListener("animationstart",de),document.addEventListener("animationend",pe)):(document.removeEventListener("animationstart",de),document.removeEventListener("animationend",pe))}),e.onMounted(()=>{ye.value=!0,V(),_e(),d.value&&(N=new ResizeObserver(S),N.observe(d.value)),a("init")}),e.onBeforeUnmount(()=>{ye.value=!1,i.cleanup(),b&&clearTimeout(b),oe&&cancelAnimationFrame(oe),C&&clearInterval(C),N&&(N.disconnect(),N=null),typeof document<"u"&&Oe(),d.value&&(d.value.removeEventListener("transitionend",_),d.value.removeEventListener("animationiteration",_))});const{isHover:Ve,handleMouseEnter:Fe,handleMouseLeave:Ae}=r6(),qe=Qa(F=>{if(!F.ctrlKey)switch(F.key){case"ArrowLeft":case"ArrowUp":x.value===F.key.endsWith("Up")&&(M.value?Y(!0):w(!0));break;case"ArrowRight":case"ArrowDown":x.value===F.key.endsWith("Down")&&(M.value?w(!0):Y(!0));break}},200),Oe=()=>{document.removeEventListener("keydown",qe)},$e=()=>{document.addEventListener("keydown",qe)};function _e(){!m.autoplay||m.autoplay<=0||(C=setInterval(()=>{m.pauseAutoplayOnHover&&Ve.value||Y()},m.autoplay))}function ze(){q(),_e()}function q(){C&&(clearInterval(C),C=null)}const re=e.ref(!1),he=({deltaX:F,deltaY:G,isTouch:W})=>{var ee,ie,ue,le;a("drag",{deltaX:F,deltaY:G});const ke=W?typeof m.touchDrag=="object"&&(ie=(ee=m.touchDrag)===null||ee===void 0?void 0:ee.threshold)!==null&&ie!==void 0?ie:oa:typeof m.mouseDrag=="object"&&(le=(ue=m.mouseDrag)===null||ue===void 0?void 0:ue.threshold)!==null&&le!==void 0?le:oa,ve=Q5({isVertical:x.value,isReversed:M.value,dragged:{x:F,y:G},effectiveSlideSize:D.value,threshold:ke});ve!==0&&(f.value=m.wrapAround?p.value+ve:vt({val:p.value+ve,max:k.value,min:E.value}))},ae=()=>L(f.value),{dragged:K,isDragging:ce,handleDragStart:$}=o6({isSliding:re,onDrag:he,onDragEnd:ae}),I=({deltaX:F,deltaY:G,isScrollingForward:W})=>{a("wheel",{deltaX:F,deltaY:G}),W?M.value?w():Y():M.value?Y():w()},{handleScroll:te}=i6({isVertical:x,isSliding:re,config:m,onWheel:I});function Y(F=!1){L(p.value+m.itemsToScroll,F)}function w(F=!1){L(p.value-m.itemsToScroll,F)}function L(F,G=!1){if(!G&&re.value)return;const W=(m.wrapAround?Z1:vt)({val:F,max:k.value,min:E.value});if(p.value===W)return;g.value=p.value,a("slide-start",{slidingToIndex:F,currentSlideIndex:p.value,prevSlideIndex:g.value,slidesCount:l.value}),q(),re.value=!0,p.value=F,W!==F&&ne.pause(),a("update:modelValue",W),b=setTimeout(()=>{m.wrapAround&&W!==F&&(ne.resume(),p.value=W,a("loop",{currentSlideIndex:p.value,slidingToIndex:F})),a("slide-end",{currentSlideIndex:p.value,prevSlideIndex:g.value,slidesCount:l.value}),re.value=!1,ze()},m.transition)}function X(){V(),R(),_(),ze()}e.watch(()=>[h.value,t.breakpoints],()=>V(),{deep:!0}),e.watch(()=>t.autoplay,()=>ze());const ne=e.watch(()=>t.modelValue,F=>{F!==p.value&&L(Number(F),!0)});a("before-init");const se=e.computed(()=>{if(!m.wrapAround)return{before:0,after:0};if(T.value)return{before:s.length,after:s.length};const F=Number(m.itemsToShow),G=Math.ceil(F+(m.itemsToScroll-1)),W=G-f.value,ee=G-(l.value-(f.value+1));return{before:Math.max(0,W),after:Math.max(0,ee)}}),fe=e.computed(()=>se.value.before?T.value?P.value.slice(-1*se.value.before).reduce((F,G)=>F+G[B.value]+m.gap,0)*-1:se.value.before*D.value*-1:0),me=e.computed(()=>{var F;if(T.value){const G=(p.value%s.length+s.length)%s.length;return Ka({slideSize:(F=P.value[G])===null||F===void 0?void 0:F[B.value],viewportSize:Q.value[B.value],align:m.snapAlign})}return Ka({align:m.snapAlign,itemsToShow:+m.itemsToShow})}),be=e.computed(()=>{let F=0;if(T.value){if(p.value<0?F=P.value.slice(p.value).reduce((G,W)=>G+W[B.value]+m.gap,0)*-1:F=P.value.slice(0,p.value).reduce((G,W)=>G+W[B.value]+m.gap,0),F-=me.value,!m.wrapAround){const G=P.value.reduce((W,ee)=>W+ee[B.value]+m.gap,0)-Q.value[B.value]-m.gap;F=vt({val:F,max:G,min:0})}}else{let G=p.value-me.value;m.wrapAround||(G=vt({val:G,max:l.value-+m.itemsToShow,min:0})),F=G*D.value}return F*(M.value?1:-1)}),Ce=e.computed(()=>{var F,G;if(!T.value){const ie=p.value-me.value;return m.wrapAround?{min:Math.floor(ie),max:Math.ceil(ie+Number(m.itemsToShow)-1)}:{min:Math.floor(vt({val:ie,max:l.value-Number(m.itemsToShow),min:0})),max:Math.ceil(vt({val:ie+Number(m.itemsToShow)-1,max:l.value-1,min:0}))}}let W=0;{let ie=0,ue=0-se.value.before;const le=Math.abs(be.value+fe.value);for(;ie<=le;){const ke=(ue%s.length+s.length)%s.length;ie+=((F=P.value[ke])===null||F===void 0?void 0:F[B.value])+m.gap,ue++}W=ue-1}let ee=0;{let ie=W,ue=0;for(ie<0?ue=P.value.slice(0,ie).reduce((le,ke)=>le+ke[B.value]+m.gap,0)-Math.abs(be.value+fe.value):ue=P.value.slice(0,ie).reduce((le,ke)=>le+ke[B.value]+m.gap,0)-Math.abs(be.value);ue<Q.value[B.value];){const le=(ie%s.length+s.length)%s.length;ue+=((G=P.value[le])===null||G===void 0?void 0:G[B.value])+m.gap,ie++}ee=ie-1}return{min:Math.floor(W),max:Math.ceil(ee)}}),Le=e.computed(()=>{if(m.slideEffect==="fade")return;const F=x.value?"Y":"X",G=x.value?K.y:K.x;let W=be.value+G;if(!m.wrapAround&&m.preventExcessiveDragging){let ee=0;T.value?ee=P.value.reduce((le,ke)=>le+ke[B.value],0):ee=(l.value-Number(m.itemsToShow))*D.value;const ie=M.value?0:-1*ee,ue=M.value?ee:0;W=vt({val:W,min:ie,max:ue})}return`translate${F}(${W}px)`}),xe=e.computed(()=>({"--vc-carousel-height":ra(m.height),"--vc-cloned-offset":ra(fe.value),"--vc-slide-gap":ra(m.gap),"--vc-transition-duration":re.value?ra(m.transition,"ms"):void 0})),A={slideTo:L,next:Y,prev:w},H=e.reactive({activeSlide:f,config:m,currentSlide:p,isSliding:re,isVertical:x,maxSlide:k,minSlide:E,nav:A,normalizedDir:z,slideRegistry:i,slideSize:c,slides:s,slidesCount:l,viewport:u,visibleRange:Ce});e.provide(Gt,H);const j=e.reactive({config:m,currentSlide:p,maxSlide:k,middleSlide:y,minSlide:E,slideSize:c,slidesCount:l});return o(e.reactive(Object.assign({data:j,next:Y,prev:w,restartCarousel:X,slideTo:L,updateBreakpointsConfig:V,updateSlideSize:_,updateSlidesData:R},e.toRefs(H)))),()=>{var F;const G=n.default||n.slides,W=(G==null?void 0:G(j))||[],{before:ee,after:ie}=se.value,ue=q1({slides:s,position:"before",toShow:ee}),le=q1({slides:s,position:"after",toShow:ie}),ke=[...ue,...W,...le];if(!m.enabled||!ke.length)return e.h("section",{ref:d,class:["carousel","is-disabled"]},ke);const ve=((F=n.addons)===null||F===void 0?void 0:F.call(n,j))||[],Me=e.h("ol",{class:"carousel__track",onMousedownCapture:m.mouseDrag?$:null,onTouchstartPassiveCapture:m.touchDrag?$:null,onWheel:m.mouseWheel?te:null,style:{transform:Le.value}},ke),Ne=e.h("div",{class:"carousel__viewport",ref:u},Me);return e.h("section",{ref:d,class:["carousel",`is-${z.value}`,`is-effect-${m.slideEffect}`,{"is-dragging":ce.value,"is-hover":Ve.value,"is-sliding":re.value,"is-vertical":x.value}],dir:z.value,style:xe.value,"aria-label":m.i18n.ariaGallery,tabindex:"0",onBlur:Oe,onFocus:$e,onMouseenter:Fe,onMouseleave:Ae},[Ne,ve,e.h(a6)])}}});var Ja;(function(t){t.arrowDown="arrowDown",t.arrowLeft="arrowLeft",t.arrowRight="arrowRight",t.arrowUp="arrowUp"})(Ja||(Ja={}));const Y1=t=>`icon${t.charAt(0).toUpperCase()+t.slice(1)}`,c6={arrowDown:"M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z",arrowLeft:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z",arrowRight:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z",arrowUp:"M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6-6 6z"};function d6(t){return t in Ja}const X1=t=>t&&d6(t),K1=e.defineComponent({props:{name:{type:String,required:!0,validator:X1},title:{type:String,default:t=>t.name?He.i18n[Y1(t.name)]:""}},setup(t){const n=e.inject(Gt,null);return()=>{const a=t.name;if(!a||!X1(a))return;const o=c6[a],r=e.h("path",{d:o}),i=(n==null?void 0:n.config.i18n[Y1(a)])||t.title,s=e.h("title",i);return e.h("svg",{class:"carousel__icon",viewBox:"0 0 24 24",role:"img","aria-label":i},[s,r])}}}),u6=e.defineComponent({name:"CarouselNavigation",inheritAttrs:!1,props:{carousel:{type:Object}},setup(t,{slots:n,attrs:a}){let o=e.inject(Gt,null);const{next:r,prev:i}=n,s=()=>({btt:"arrowDown",ltr:"arrowLeft",rtl:"arrowRight",ttb:"arrowUp"})[o.normalizedDir],l=()=>({btt:"arrowUp",ltr:"arrowRight",rtl:"arrowLeft",ttb:"arrowDown"})[o.normalizedDir],d=e.computed(()=>!o.config.wrapAround&&o.currentSlide<=o.minSlide),u=e.computed(()=>!o.config.wrapAround&&o.currentSlide>=o.maxSlide);return()=>{if(t.carousel&&(o=t.carousel),!o)return console.warn("[vue3-carousel]: A carousel component must be provided for the navigation component to display"),"";const{i18n:c}=o.config,h=e.h("button",Object.assign(Object.assign({type:"button",disabled:d.value,"aria-label":c.ariaPreviousSlide,title:c.ariaPreviousSlide,onClick:o.nav.prev},a),{class:["carousel__prev",{"carousel__prev--disabled":d.value},a.class]}),(i==null?void 0:i())||e.h(K1,{name:s()})),m=e.h("button",Object.assign(Object.assign({type:"button",disabled:u.value,"aria-label":c.ariaNextSlide,title:c.ariaNextSlide,onClick:o.nav.next},a),{class:["carousel__next",{"carousel__next--disabled":u.value},a.class]}),(r==null?void 0:r())||e.h(K1,{name:l()}));return[h,m]}}});e.defineComponent({name:"CarouselPagination",props:{disableOnClick:{type:Boolean},paginateByItemsToShow:{type:Boolean},carousel:{type:Object}},setup(t){let n=e.inject(Gt,null);const a=e.computed(()=>n.config.itemsToShow),o=e.computed(()=>Ka({align:n.config.snapAlign,itemsToShow:a.value})),r=e.computed(()=>t.paginateByItemsToShow&&a.value>1),i=e.computed(()=>Math.ceil((n.activeSlide-o.value)/a.value)),s=e.computed(()=>Math.ceil(n.slidesCount/a.value)),l=d=>Z1(r.value?{val:i.value,max:s.value-1,min:0}:{val:n.activeSlide,max:n.maxSlide,min:n.minSlide})===d;return()=>{var d,u;if(t.carousel&&(n=t.carousel),!n)return console.warn("[vue3-carousel]: A carousel component must be provided for the pagination component to display"),"";const c=[];for(let h=r.value?0:n.minSlide;h<=(r.value?s.value-1:n.maxSlide);h++){const m=U1(n.config.i18n[r.value?"ariaNavigateToPage":"ariaNavigateToSlide"],{slideNumber:h+1}),p=l(h),f=e.h("button",{type:"button",class:{"carousel__pagination-button":!0,"carousel__pagination-button--active":p},"aria-label":m,"aria-pressed":p,"aria-controls":(u=(d=n.slides[h])===null||d===void 0?void 0:d.exposed)===null||u===void 0?void 0:u.id,title:m,disabled:t.disableOnClick,onClick:()=>n.nav.slideTo(r.value?Math.floor(h*+n.config.itemsToShow+o.value):h)}),g=e.h("li",{class:"carousel__pagination-item",key:h},f);c.push(g)}return e.h("ol",{class:"carousel__pagination"},c)}}});const f6=e.defineComponent({name:"CarouselSlide",props:{id:{type:String,default:t=>t.isClone?void 0:e.useId()},index:{type:Number,default:void 0},isClone:{type:Boolean,default:!1}},setup(t,{attrs:n,slots:a,expose:o}){const r=e.inject(Gt);if(e.provide(Gt,void 0),!r)return()=>"";const i=e.ref(t.index),s=f=>{i.value=f},l=e.getCurrentInstance(),d=()=>{const f=l.vnode.el;return f?f.getBoundingClientRect():{width:0,height:0}};o({id:t.id,setIndex:s,getBoundingRect:d});const u=e.computed(()=>i.value===r.activeSlide),c=e.computed(()=>i.value===r.activeSlide-1),h=e.computed(()=>i.value===r.activeSlide+1),m=e.computed(()=>i.value>=r.visibleRange.min&&i.value<=r.visibleRange.max),p=e.computed(()=>{if(r.config.itemsToShow==="auto")return;const f=r.config.itemsToShow,g=r.config.gap>0&&f>1?`calc(${100/f}% - ${r.config.gap*(f-1)/f}px)`:`${100/f}%`;return r.isVertical?{height:g}:{width:g}});return r.slideRegistry.registerSlide(l,t.index),e.onUnmounted(()=>{r.slideRegistry.unregisterSlide(l)}),t.isClone&&(e.onMounted(()=>{W1(l.vnode)}),e.onUpdated(()=>{W1(l.vnode)})),()=>{var f,g;return r.config.enabled?e.h("li",{style:[n.style,Object.assign({},p.value)],class:{carousel__slide:!0,"carousel__slide--clone":t.isClone,"carousel__slide--visible":m.value,"carousel__slide--active":u.value,"carousel__slide--prev":c.value,"carousel__slide--next":h.value,"carousel__slide--sliding":r.isSliding},onFocusin:()=>{r.viewport&&(r.viewport.scrollLeft=0),r.nav.slideTo(i.value)},id:t.isClone?void 0:t.id,"aria-hidden":t.isClone||void 0},(g=a.default)===null||g===void 0?void 0:g.call(a,{currentIndex:i.value,isActive:u.value,isClone:t.isClone,isPrev:c.value,isNext:h.value,isSliding:r.isSliding,isVisible:m.value})):(f=a.default)===null||f===void 0?void 0:f.call(a)}}}),m6={key:0,class:"preview-overlay bg-base-300"},h6={class:"preview-info"},p6={class:"text-black"},g6={class:"queue-info"},y6={class:"carousel-container bg-base-200"},k6={class:"carousel-item"},x6=["onClick"],b6=["onClick"],w6={class:"send-footer"},E6={key:1,class:"toast-loader-files"},Q1=we({__name:"dropFilesArea",props:{sendFilesToAttendant:{type:Function,required:!0},selectedAttendant:{type:Object,required:!0},attendant:{required:!0},isMobile:{type:Boolean,default:!1}},setup(t,{expose:n}){const a=t,o={itemsToShow:6,wrapAround:!1,gap:8,mouseDrag:!0,touchDrag:!0,mouseWheel:!0,snapAlign:"start",breakpoints:{1024:{itemsToShow:4},768:{itemsToShow:4},480:{itemsToShow:4},320:{itemsToShow:2},0:{itemsToShow:1}}},r=e.ref(!1),i=e.ref(""),s=e.ref(null),l=e.ref([]),d=e.ref([]),u=e.ref(null),c=e.ref(0),h=e.ref(!1),m=e.ref(0),p=e.ref(0),f=V=>new Promise((S,v)=>{const P=new FileReader;P.readAsDataURL(V),P.onload=()=>{S(P.result)},P.onerror=Z=>{v(Z)}}),g=()=>{r.value=!0},y=()=>{r.value=!1},k=()=>{d.value=[],l.value=[],i.value="",u.value=null,c.value=0},E=V=>{if(!(V<0||V>=d.value.length)){if(d.value.splice(V,1),l.value.splice(V,1),d.value.length===0){u.value=null,c.value=0;return}if(V===c.value){const S=V>0?V-1:0;u.value=d.value[S],c.value=S}else V<c.value&&(c.value-=1)}},C=()=>{s.value.click()},b=async V=>{const S=Array.from(V.target.files);l.value=S,d.value=await Promise.all(S.map(async v=>({name:v.name,base64:await f(v)}))),u.value=d.value[0],e.nextTick(()=>{x()})},N=async V=>{r.value=!1;const S=Array.from(V.dataTransfer.files);l.value.push(...S);const v=await Promise.all(S.map(async P=>({name:P.name,base64:await f(P)})));d.value.push(...v),u.value||(u.value=d.value[0],c.value=0),e.nextTick(()=>{x()})},D=V=>V?V.split(";")[0].split(":")[1]:null,z=async()=>{try{h.value=!0,m.value=l.value.length,p.value=0;for(let V=0;V<l.value.length;V++){const S=V===l.value.length-1,v={type:"file",media:{name:d.value[V].name,mimetype:D(d.value[V].base64),data:d.value[V].base64}};S&&(v.content=i.value),await a.sendFilesToAttendant(a.selectedAttendant.id,v,a.attendant,!0),p.value++}await e.nextTick()}catch(V){console.error(V)}finally{h.value=!1,k(),y()}},M=e.ref(null),x=()=>{M.value&&M.value.focus()},T=(V,S)=>{u.value=V,c.value=S},B=async V=>{var P;const S=(P=V.clipboardData)==null?void 0:P.items;if(!S)return;const v=[];for(const Z of S)if(Z.kind==="file"){const Q=Z.getAsFile();Q&&v.push(Q)}if(v.length>0){const Z=new Set(l.value.map(_=>_.name));if(v.filter(_=>!Z.has(_.name)).length===0)return;l.value.push(...v);const J=await Promise.all(v.map(async _=>({name:_.name,base64:await f(_)})));d.value.push(...J),u.value||(u.value=J[0],c.value=0)}e.nextTick(()=>{x()})};return e.watch(c,(V,S)=>{u.value=d.value[V]}),e.onMounted(()=>{window.addEventListener("paste",B)}),e.onUnmounted(()=>{window.removeEventListener("paste",B)}),n({chooseFiles:C}),(V,S)=>{var v,P,Z;return e.openBlock(),e.createElementBlock("main",{onDragover:e.withModifiers(g,["prevent"]),onDragleave:y,onDrop:e.withModifiers(N,["prevent"])},[e.createElementVNode("section",{class:e.normalizeClass(["dropzone-container ",{"dropzone-active":r.value}])},[!h.value&&d.value.length>0&&!r.value?(e.openBlock(),e.createElementBlock("div",m6,[e.createElementVNode("button",{onClick:S[0]||(S[0]=Q=>k()),class:"close-button"},[...S[6]||(S[6]=[e.createElementVNode("svg",{"aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 14 14"},[e.createElementVNode("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m1 1 6 6m0 0 6 6M7 7l6-6M7 7l-6 6"})],-1)])]),e.createElementVNode("section",h6,[e.createElementVNode("p",p6,e.toDisplayString((v=u.value)==null?void 0:v.name),1),e.createVNode(Ya,{isMobile:t.isMobile,avatar:null,mode:"preview",base64:(P=u.value)==null?void 0:P.base64,mimetype:D((Z=u.value)==null?void 0:Z.base64)},null,8,["isMobile","base64","mimetype"]),e.withDirectives(e.createElementVNode("input",{ref_key:"textInput",ref:M,onKeydown:S[1]||(S[1]=e.withKeys(Q=>z(),["enter"])),placeholder:"Digite uma mensagem para acompanhar o arquivo",class:"input-drop-files-area bg-base-200 text-text-base","onUpdate:modelValue":S[2]||(S[2]=Q=>i.value=Q),type:"text"},null,544),[[e.vModelText,i.value]])]),e.createElementVNode("div",g6,[S[8]||(S[8]=e.createElementVNode("p",null,"fila de envio",-1)),e.createElementVNode("section",y6,[e.createVNode(e.unref(l6),e.mergeProps({modelValue:c.value,"onUpdate:modelValue":S[4]||(S[4]=Q=>c.value=Q)},o),e.createSlots({default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,(Q,J)=>(e.openBlock(),e.createBlock(e.unref(f6),{key:J},{default:e.withCtx(()=>[e.createElementVNode("section",k6,[c.value===J?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:_=>E(J),class:"remove-file-btn"},[...S[7]||(S[7]=[e.createElementVNode("svg",{"aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"currentColor",viewBox:"0 0 24 24"},[e.createElementVNode("path",{"fill-rule":"evenodd",d:"M8.586 2.586A2 2 0 0 1 10 2h4a2 2 0 0 1 2 2v2h3a1 1 0 1 1 0 2v12a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V8a1 1 0 0 1 0-2h3V4a2 2 0 0 1 .586-1.414ZM10 6h4V4h-4v2Zm1 4a1 1 0 1 0-2 0v8a1 1 0 1 0 2 0v-8Zm4 0a1 1 0 1 0-2 0v8a1 1 0 1 0 2 0v-8Z","clip-rule":"evenodd"})],-1)])],8,x6)):e.createCommentVNode("",!0),e.createElementVNode("button",{class:e.normalizeClass(["bg-base-100",["carousel-preview",{active:c.value===J}]]),onDragstart:S[3]||(S[3]=e.withModifiers(()=>{},["prevent"])),onClick:_=>T(Q,J)},[e.createVNode(Ya,{isMobile:t.isMobile,avatar:null,mode:"miniature",base64:Q.base64,mimetype:D(Q.base64)},null,8,["isMobile","base64","mimetype"])],42,b6)])]),_:2},1024))),128))]),_:2},[t.isMobile?{name:"addons",fn:e.withCtx(()=>[e.createVNode(e.unref(u6))]),key:"0"}:void 0]),1040,["modelValue"])])]),e.createElementVNode("footer",w6,[e.createElementVNode("button",{class:"send-button",onClick:S[5]||(S[5]=Q=>z())},[...S[9]||(S[9]=[e.createElementVNode("svg",{"aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"currentColor",viewBox:"0 0 24 24"},[e.createElementVNode("path",{"fill-rule":"evenodd",d:"M12 2a1 1 0 0 1 .932.638l7 18a1 1 0 0 1-1.326 1.281L13 19.517V13a1 1 0 1 0-2 0v6.517l-5.606 2.402a1 1 0 0 1-1.326-1.281l7-18A1 1 0 0 1 12 2Z","clip-rule":"evenodd"})],-1)])])])])):e.createCommentVNode("",!0),h.value?(e.openBlock(),e.createElementBlock("section",E6," Enviando Arquivos... ("+e.toDisplayString(p.value)+" / "+e.toDisplayString(m.value)+") ",1)):e.createCommentVNode("",!0),e.renderSlot(V.$slots,"default",{},void 0,!0)],2),e.createElementVNode("input",{onChange:b,multiple:"",ref_key:"manualFile",ref:s,type:"file",hidden:""},null,544)],32)}}},[["__scopeId","data-v-97bfb675"]]),v6={key:0,class:"chat-icon"},C6={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 640 512"},S6={key:0,class:"unread-count"},B6={key:0,class:"chat-content"},V6={key:1,class:"h-full"},J1=we({__name:"chatWindow",props:{attendant:{default:{id:"dea5c13f-4464-4cc6-8653-8c8524acdd3b",name:"Joao Pedro Souto Santos",photo:"https://sm-click.s3.us-east-1.amazonaws.com/clients/624dfe23-92d0-43f1-8061-a2321f2b5ebb/attendants/dea5c13f-4464-4cc6-8653-8c8524acdd3b.png"}},socketMessage:{default:{id:"6170e5cd-a06f-4184-83a4-debd4bfaab35",channel_id:"e10b7177-3400-4457-bb43-b6c9d4a6faa1",sender:{id:"dea5c13f-4464-4cc6-8653-8c8524acdd3b",name:"Joao Pedro Souto Santos",photo:"https://sm-click.s3.us-east-1.amazonaws.com/clients/624dfe23-92d0-43f1-8061-a2321f2b5ebb/attendants/dea5c13f-4464-4cc6-8653-8c8524acdd3b.png"},content:{type:"text",content:"teste sockdet 3"},created_at:"2024-09-17T09:45:19.286087Z"}},countMessages:{type:Number,default:null},mode:{type:String,default:"dark"}},emits:["unreadMessagesEmit"],setup(t,{emit:n}){const a=t,{attendants:o,loadingMessages:r,fetchMessagesForAtendente:i,addMessageToAtendente:s,hasNextPageForAtendente:l,sendMessageToAtendente:d,loadMessagesForAtendente:u,resetUnreadMessages:c,loadingAttendants:h}=Er(),m=e.ref(!1),p=e.ref(!1),f=e.ref(null),g=e.ref(null),y=n,k=e.ref(null),E=()=>{var B;(B=k.value)==null||B.chooseFiles()},C=e.computed(()=>{if(f.value){const B=o.value.find(V=>V.id===f.value.id);return B?B.internal_chat.unread:0}return 0}),b=B=>{var v;const V=(v=g.value)==null?void 0:v.contains(B.target),S=B.target.closest(".fancybox__container");!V&&!S&&m.value&&M()};e.onMounted(()=>{document.addEventListener("click",b)}),e.onBeforeUnmount(()=>{document.removeEventListener("click",b)});const N=e.ref(!1),D=e.ref(!1),z=e.computed(()=>D.value?{position:"absolute",width:"42px",height:"42px",transition:"width 0.2s ease-in, height 0.2s ease-out"}:N.value||m.value?{position:"absolute",width:"400px",height:"65vh",transition:"width 0.2s ease-in, height 0.2s ease-out"}:{position:"relative",width:"42px",height:"42px",transition:"none"}),M=()=>{m.value?(D.value=!0,setTimeout(()=>{m.value=!1,D.value=!1},200)):(m.value=!0,N.value=!0,setTimeout(()=>{N.value=!1},200))},x=()=>{m.value||M()},T=async B=>{const V=o.value.find(v=>v.id===B.id),S=V?V.internal_chat.unread:0;y("unreadMessagesEmit",S),f.value=B,c(B.id),B.hasNextPage||await i(B.id)};return e.watch(()=>a.socketMessage,(B,V)=>{var S;B!==V&&s(B,m.value,(S=f.value)==null?void 0:S.id)}),e.watch(m,B=>{B&&setTimeout(()=>{p.value=!0},400)}),(B,V)=>(e.openBlock(),e.createElementBlock("div",{class:"chat-container",ref_key:"chatContainer",ref:g},[m.value?(e.openBlock(),e.createElementBlock("div",{key:0,onClick:e.withModifiers(M,["stop"]),style:{width:"42px",height:"42px","border-radius":"50%","background-color":"#02a9db",display:"flex","justify-content":"center"}},[...V[1]||(V[1]=[e.createElementVNode("span",{style:{"margin-top":"auto","margin-bottom":"auto"},class:"chat-icon my-auto"},[e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 640 512"},[e.createElementVNode("path",{fill:"currentColor",d:"M208 352c114.9 0 208-78.8 208-176S322.9 0 208 0S0 78.8 0 176c0 38.6 14.7 74.3 39.6 103.4c-3.5 9.4-8.7 17.7-14.2 24.7c-4.8 6.2-9.7 11-13.3 14.3c-1.8 1.6-3.3 2.9-4.3 3.7c-.5 .4-.9 .7-1.1 .8l-.2 .2s0 0 0 0s0 0 0 0C1 327.2-1.4 334.4 .8 340.9S9.1 352 16 352c21.8 0 43.8-5.6 62.1-12.5c9.2-3.5 17.8-7.4 25.2-11.4C134.1 343.3 169.8 352 208 352zM448 176c0 112.3-99.1 196.9-216.5 207C255.8 457.4 336.4 512 432 512c38.2 0 73.9-8.7 104.7-23.9c7.5 4 16 7.9 25.2 11.4c18.3 6.9 40.3 12.5 62.1 12.5c6.9 0 13.1-4.5 15.2-11.1c2.1-6.6-.2-13.8-5.8-17.9c0 0 0 0 0 0s0 0 0 0l-.2-.2c-.2-.2-.6-.4-1.1-.8c-1-.8-2.5-2-4.3-3.7c-3.6-3.3-8.5-8.1-13.3-14.3c-5.5-7-10.7-15.4-14.2-24.7c24.9-29 39.6-64.7 39.6-103.4c0-92.8-84.9-168.9-192.6-175.5c.4 5.1 .6 10.3 .6 15.5z"})])],-1)])])):e.createCommentVNode("",!0),!m.value&&t.countMessages>0?(e.openBlock(),e.createElementBlock("section",{key:1,style:e.normalizeStyle(t.countMessages>10?"padding: 0.2rem 0.500rem;":"padding: 0.2rem 0.625rem;"),class:"chat-count"},e.toDisplayString(t.countMessages),5)):e.createCommentVNode("",!0),e.createElementVNode("div",{onClick:e.withModifiers(x,["stop"]),class:e.normalizeClass(["group relative",m.value?"chat-box border-base-200 open bg-base-200":"chat-box closed"]),style:e.normalizeStyle(z.value)},[m.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("span",v6,[(e.openBlock(),e.createElementBlock("svg",C6,[e.createElementVNode("path",{class:e.normalizeClass(t.mode==="dark"?"dark-chat-window-icon":"chat-window-icon"),fill:"currentColor",d:"M208 352c114.9 0 208-78.8 208-176S322.9 0 208 0S0 78.8 0 176c0 38.6 14.7 74.3 39.6 103.4c-3.5 9.4-8.7 17.7-14.2 24.7c-4.8 6.2-9.7 11-13.3 14.3c-1.8 1.6-3.3 2.9-4.3 3.7c-.5 .4-.9 .7-1.1 .8l-.2 .2s0 0 0 0s0 0 0 0C1 327.2-1.4 334.4 .8 340.9S9.1 352 16 352c21.8 0 43.8-5.6 62.1-12.5c9.2-3.5 17.8-7.4 25.2-11.4C134.1 343.3 169.8 352 208 352zM448 176c0 112.3-99.1 196.9-216.5 207C255.8 457.4 336.4 512 432 512c38.2 0 73.9-8.7 104.7-23.9c7.5 4 16 7.9 25.2 11.4c18.3 6.9 40.3 12.5 62.1 12.5c6.9 0 13.1-4.5 15.2-11.1c2.1-6.6-.2-13.8-5.8-17.9c0 0 0 0 0 0s0 0 0 0l-.2-.2c-.2-.2-.6-.4-1.1-.8c-1-.8-2.5-2-4.3-3.7c-3.6-3.3-8.5-8.1-13.3-14.3c-5.5-7-10.7-15.4-14.2-24.7c24.9-29 39.6-64.7 39.6-103.4c0-92.8-84.9-168.9-192.6-175.5c.4 5.1 .6 10.3 .6 15.5z"},null,2)])),C.value>0?(e.openBlock(),e.createElementBlock("span",S6,e.toDisplayString(C.value),1)):e.createCommentVNode("",!0),V[2]||(V[2]=e.createElementVNode("div",{class:"chat-tooltip"},[e.createElementVNode("div",{class:"text-sm my-auto text-center"},"Chat interno")],-1))])),e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>[m.value&&!D.value?(e.openBlock(),e.createElementBlock("div",B6,[e.createElementVNode("button",{onClick:e.withModifiers(M,["stop"]),class:"close-button"},[...V[3]||(V[3]=[e.createElementVNode("svg",{class:"w-5 h-5",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},[e.createElementVNode("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M6 18L17.94 6M18 18L6.06 6"})],-1)])]),e.unref(r)||e.unref(h)?(e.openBlock(),e.createBlock(R1,{key:0})):f.value&&!e.unref(r)?(e.openBlock(),e.createElementBlock("div",V6,[e.createVNode(Q1,{ref_key:"dropFilesRef",ref:k,attendant:t.attendant,selectedAttendant:f.value,sendFilesToAttendant:e.unref(d)},{default:e.withCtx(()=>[e.createVNode(O1,{isMobile:!1,onSendFiles:E,attendant:t.attendant,selectedAtendente:f.value,onVoltar:V[0]||(V[0]=S=>f.value=null),loadMessagesForAtendente:e.unref(u),sendMessageToAtendente:e.unref(d),hasNextPageForAtendente:e.unref(l)},null,8,["attendant","selectedAtendente","loadMessagesForAtendente","sendMessageToAtendente","hasNextPageForAtendente"])]),_:1},8,["attendant","selectedAttendant","sendFilesToAttendant"])])):e.createCommentVNode("",!0),!f.value&&!e.unref(h)?(e.openBlock(),e.createBlock(vr,{key:2,attendant:t.attendant,atendentes:e.unref(o),onAtendenteSelecionado:T},null,8,["attendant","atendentes"])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)]),_:1})],6)],512))}},[["__scopeId","data-v-8e31c50d"]]),M6={class:"chat-content"},N6={key:1,class:"h-full"},ei=we({__name:"mobileChatWindow",props:{attendant:{default:{id:"dea5c13f-4464-4cc6-8653-8c8524acdd3b",name:"Joao Pedro Souto Santos",photo:"https://sm-click.s3.us-east-1.amazonaws.com/clients/624dfe23-92d0-43f1-8061-a2321f2b5ebb/attendants/dea5c13f-4464-4cc6-8653-8c8524acdd3b.png"}},socketMessage:{default:{id:"6170e5cd-a06f-4184-83a4-debd4bfaab35",channel_id:"e10b7177-3400-4457-bb43-b6c9d4a6faa1",sender:{id:"dea5c13f-4464-4cc6-8653-8c8524acdd3b",name:"Joao Pedro Souto Santos",photo:"https://sm-click.s3.us-east-1.amazonaws.com/clients/624dfe23-92d0-43f1-8061-a2321f2b5ebb/attendants/dea5c13f-4464-4cc6-8653-8c8524acdd3b.png"},content:{type:"text",content:"teste sockdet 3"},created_at:"2024-09-17T09:45:19.286087Z"}},countMessages:{type:Number,default:null},downloadFilesMobile:{type:Function,required:!0},openMobilePdf:{type:Function}},emits:["unreadMessagesEmit"],setup(t,{emit:n}){const a=t,{attendants:o,loadingMessages:r,fetchMessagesForAtendente:i,addMessageToAtendente:s,hasNextPageForAtendente:l,sendMessageToAtendente:d,loadMessagesForAtendente:u,resetUnreadMessages:c,loadingAttendants:h}=Er(),m=e.ref(!1),p=e.ref(!1),f=e.ref(null),g=e.ref(null),y=n,k=e.ref(null),E=()=>{var M;(M=k.value)==null||M.chooseFiles()};e.computed(()=>{if(f.value){const M=o.value.find(x=>x.id===f.value.id);return M?M.internal_chat.unread:0}return 0});const C=M=>{g.value&&!g.value.contains(M.target)&&m.value&&D()};e.onMounted(()=>{document.addEventListener("click",C)}),e.onBeforeUnmount(()=>{document.removeEventListener("click",C)});const b=e.ref(!1),N=e.ref(!1),D=()=>{m.value?(N.value=!0,setTimeout(()=>{m.value=!1,N.value=!1},200)):(m.value=!0,b.value=!0,setTimeout(()=>{b.value=!1},200))},z=async M=>{const x=o.value.find(B=>B.id===M.id),T=x?x.internal_chat.unread:0;y("unreadMessagesEmit",T),f.value=M,c(M.id),M.hasNextPage||await i(M.id)};return e.watch(()=>a.socketMessage,(M,x)=>{var T;M!==x&&s(M,m.value,(T=f.value)==null?void 0:T.id)}),e.watch(m,M=>{M&&setTimeout(()=>{p.value=!0},400)}),(M,x)=>(e.openBlock(),e.createElementBlock("div",M6,[e.unref(r)||e.unref(h)?(e.openBlock(),e.createBlock(R1,{key:0})):f.value&&!e.unref(r)?(e.openBlock(),e.createElementBlock("div",N6,[e.createVNode(Q1,{ref_key:"dropFilesRef",ref:k,isMobile:"",attendant:t.attendant,selectedAttendant:f.value,sendFilesToAttendant:e.unref(d)},{default:e.withCtx(()=>[e.createVNode(O1,{isMobile:"",attendant:t.attendant,selectedAtendente:f.value,loadMessagesForAtendente:e.unref(u),sendMessageToAtendente:e.unref(d),hasNextPageForAtendente:e.unref(l),downloadFilesMobile:t.downloadFilesMobile,openMobilePdf:t.openMobilePdf,onVoltar:x[0]||(x[0]=T=>f.value=null),onSendFiles:E},null,8,["attendant","selectedAtendente","loadMessagesForAtendente","sendMessageToAtendente","hasNextPageForAtendente","downloadFilesMobile","openMobilePdf"])]),_:1},8,["attendant","selectedAttendant","sendFilesToAttendant"])])):e.createCommentVNode("",!0),!f.value&&!e.unref(h)?(e.openBlock(),e.createBlock(vr,{key:2,mobile:!0,attendant:t.attendant,atendentes:e.unref(o),onAtendenteSelecionado:z},null,8,["attendant","atendentes"])):e.createCommentVNode("",!0)]))}},[["__scopeId","data-v-aacec6d2"]]),eo=Dt.defineStore("department",{state:()=>({departments:[],count:null,loaded:!1}),actions:{async fetchDepartments(t=""){try{let n=`${L0}`;const a=await Xe.get(n);this.departments=a.data,this.count=this.departments.length}catch(n){console.log("Erro ao buscar departamentos:",n)}},removeDepartments(t){this.departments=this.departments.filter(n=>n.id!==t)},addDepartments(t){const n=this.departments.findIndex(a=>a.id===t.id);n!==-1?this.departments[n]=t:this.departments.push(t)}}}),A6={class:"depart-select-container"},T6={class:"search-container relative shadow shadow-gray-900 dark:shadow-gray-500"},D6=["placeholder"],L6={key:0,class:"selection-container bg-base-300 border-b border-base-200"},F6=["onClick"],$6={class:"department-list"},P6=["onClick"],_6={key:0,style:{width:"150px"}},O6=["onUpdate:modelValue","onChange"],R6={key:0,class:"no-departments bg-base-300"},H6={key:0},z6={key:1,class:"library-loading-spinner"},ti=we({__name:"departSelect",props:{department:{type:[Array,String],default:null},modal_filter:{type:String,default:null},multiSelect:{type:Boolean,default:!0},permissions:{type:Boolean,default:!1},externalDepartments:{type:Array,default:null},attDel:{type:String,default:null},hiddenDepartment:{type:String,default:null}},emits:["depart","component-mounted"],setup(t,{emit:n}){e.useSlots();const a=t,o=n,r=eo(),i=e.ref(""),s=e.ref([]),l=e.ref(!1),d=e.ref(!1),u=e.computed(()=>(a.externalDepartments||r.departments).filter(C=>!(a.hiddenDepartment&&C.id===a.hiddenDepartment)).filter(C=>!i.value||C.name.toLowerCase().includes(i.value.toLowerCase())));e.onMounted(async()=>{await m(),await h(),o("component-mounted")}),e.watch(()=>r.departments.length,async()=>{await m(),await e.nextTick(),await h()},{immediate:!0}),e.watch(()=>a.attDel,E=>E&&c(E),{immediate:!0});function c(E){const b=(a.externalDepartments||r.departments).findIndex(N=>N.id===E);b!==-1&&(s.value=s.value.filter(N=>N.id!==E),a.externalDepartments?a.externalDepartments.splice(b,1):r.removeDepartments(E),o("depart",s.value))}async function h(){d.value=!0;const E=a.externalDepartments||r.departments;a.permissions&&E.forEach(C=>{C.permission||(C.permission="normal")}),await p(),d.value=!1}async function m(){(a.externalDepartments||r.departments).forEach(C=>C.selected=!1),s.value=[]}async function p(){const E=a.externalDepartments||r.departments;if(!(E!=null&&E.length))return;(Array.isArray(a.department)?a.department:a.department?[a.department]:[]).forEach(b=>{const N=typeof b=="object"?b.id:b,D=typeof b=="object"?b.permission:void 0,z=E.find(M=>M.id===N);z&&(z.selected=!0,D&&(z.permission=D),s.value.some(M=>M.id===N)||s.value.push(z))}),o("depart",s.value)}function f(E){const C=s.value.findIndex(b=>b.id===E.id);C!==-1?(E.selected=!1,s.value.splice(C,1)):(a.multiSelect||m(),E.selected=!0,s.value.push(E)),o("depart",s.value)}function g(){o("depart",s.value)}function y(E,C){E.selected=!1,s.value.splice(C,1),o("depart",s.value)}const k=e.computed(()=>i.value.trim().length>0);return e.watch(k,E=>{o("searching",E)}),(E,C)=>(e.openBlock(),e.createElementBlock("div",A6,[e.createElementVNode("div",T6,[e.createElementVNode("div",{class:e.normalizeClass(["input-wrapper bg-base-300 border-b border-base-200",{expanded:l.value||s.value.length>0}]),onClick:C[1]||(C[1]=b=>l.value=!l.value)},[e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":C[0]||(C[0]=b=>i.value=b),placeholder:s.value.length>0?t.multiSelect?`Selecionados: ${s.value.length}`:`Selecionado: ${s.value[0].name}`:"Pesquise por nome.",class:"select-depart-input"},null,8,D6),[[e.vModelText,i.value]]),C[2]||(C[2]=e.createElementVNode("div",{class:"icon-container"},[e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"search-icon"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M21 21l-5.197-5.197m0 0A7.5 7.5 0 105.196 5.196a7.5 7.5 0 0010.607 10.607z"})])],-1))],2),s.value.length>0&&t.multiSelect&&e.unref(r).loaded?(e.openBlock(),e.createElementBlock("main",L6,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value,(b,N)=>(e.openBlock(),e.createElementBlock("div",{key:b.id,class:"selection-item"},[e.createTextVNode(e.toDisplayString(b.name)+" ",1),e.createElementVNode("button",{onClick:D=>y(b,N),class:"close-btn"},[...C[3]||(C[3]=[e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"close-icon"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6 18L18 6M6 6l12 12"})],-1)])],8,F6)]))),128))])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass([s.value.length>0&&t.multiSelect?"dropdown-depart-expanded":"dropdown-depart","dropdown-depart bg-base-300"])},[e.createElementVNode("div",$6,[e.createElementVNode("div",{class:e.normalizeClass([{"two-columns":u.value.length>4},"grid-container"])},[e.unref(r).loaded?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(u.value,b=>(e.openBlock(),e.createElementBlock("div",{key:b.id,class:e.normalizeClass([{selected:b.selected},"department-item line-clamp-1 bg-slate-500/20 hover:bg-teal-600"])},[e.createElementVNode("span",{onClick:N=>f(b),class:"department-name h-full w-full"},e.toDisplayString(b.name),9,P6),t.multiSelect&&t.permissions?(e.openBlock(),e.createElementBlock("div",_6,[e.withDirectives(e.createElementVNode("select",{"onUpdate:modelValue":N=>b.permission=N,onChange:N=>g(),class:"select-dropdown-depart bg-base-300"},[...C[4]||(C[4]=[e.createElementVNode("option",{value:"normal"},"normal",-1),e.createElementVNode("option",{value:"supervisor"},"supervisor",-1)])],40,O6),[[e.vModelSelect,b.permission]])])):e.createCommentVNode("",!0)],2))),128)):e.createCommentVNode("",!0)],2)]),e.unref(r).loaded&&u.value.length===0?(e.openBlock(),e.createElementBlock("div",R6,[E.$slots.default?e.renderSlot(E.$slots,"default",{key:1},void 0,!0):(e.openBlock(),e.createElementBlock("p",H6,"Nenhum departamento disponível."))])):e.createCommentVNode("",!0),e.unref(r).loaded?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",z6,[...C[5]||(C[5]=[e.createTextVNode(" Inicializando departamentos ",-1),e.createElementVNode("div",{class:"library-loader"},null,-1)])]))],2)])]))}},[["__scopeId","data-v-ef1f33c7"]]),j6={class:"depart-select-container"},G6={class:"search-container relative shadow shadow-gray-900 dark:shadow-gray-500"},I6=["placeholder"],q6={key:0,class:"selection-container bg-base-300 border-b border-base-200"},W6=["onClick"],U6={class:"department-list"},Z6={style:{"padding-left":"5px"}},Y6=["src"],X6={key:1,style:{"pointer-events":"none","border-radius":"100%",width:"24px",height:"24px"},class:"bg-base-300","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",fill:"currentColor",viewBox:"0 0 24 24"},K6=["onClick"],Q6={key:0,class:"no-departments bg-base-300"},J6={key:1,class:"library-loading-spinner"},ni=we({__name:"attendantSelect",props:{attendance:{type:[Array,String],default:null},multiSelect:{type:Boolean,default:!0},department:{type:Array,default:[]},modal_filter:{type:String,default:null},attDel:{type:Object,default:{id:null}},method:{type:String,default:null},preselect:{type:Boolean,default:!0}},emits:["attend","component-mounted"],setup(t,{emit:n}){const a=t,o=n,r=Yt(),i=e.ref(""),s=e.ref(!1),l=e.ref([]);function d(){const k=Array.isArray(a.attendance)?a.attendance:a.attendance?[a.attendance]:[];return new Set(k.filter(Boolean).map(E=>typeof E=="object"?E.id:E))}const u=e.computed(()=>{const k=r.attendants.filter(C=>C.status===!0),E=i.value?k.filter(C=>C.name.toLowerCase().includes(i.value.toLowerCase())):k;return h(c(E))});function c(k){var E;if(a.method==="remove")return(Array.isArray(a.attendance)?a.attendance:a.attendance?[a.attendance]:k).filter(b=>{var D;return(typeof b=="object"?b.id:b)!==((D=a==null?void 0:a.attDel)==null?void 0:D.id)});if(a.method==="addParticipant"){const C=d();return(E=a==null?void 0:a.attDel)!=null&&E.id&&C.add(a.attDel.id),k.filter(b=>!C.has(b.id))}return k}function h(k){return Array.isArray(a.department)&&a.department.length>0?k.filter(E=>E.department.some(C=>a.department.some(b=>b.id===C.id))):k}e.onMounted(()=>{m(),o("component-mounted")}),e.watch(()=>r.attendants.length,async()=>{await e.nextTick(),m()},{immediate:!0}),e.watch(()=>a.modal_filter,()=>{!a.modal_filter&&a.multiSelect&&p()},{immediate:!0}),e.watch(()=>a.department,()=>m(),{deep:!0});function m(){p(),f()}function p(){r.attendants.forEach(k=>k.selected=!1),l.value=[]}function f(){if(!a.preselect)return;const k=r.attendants;if(!(k!=null&&k.length))return;(Array.isArray(a.attendance)?a.attendance:a.attendance?[a.attendance]:[]).forEach(C=>{const b=typeof C=="object"?C.id:C,N=k.find(D=>D.id===b);N&&!l.value.some(D=>D.id===b)&&(N.selected=!0,l.value.push(N))}),o("attend",l.value)}function g(k){const E=l.value.findIndex(C=>C.id===k.id);E!==-1?(k.selected=!1,l.value.splice(E,1)):(a.multiSelect||p(),k.selected=!0,l.value.push(k)),o("attend",l.value)}function y(k,E){k.selected=!1,l.value.splice(E,1),o("attend",l.value)}return(k,E)=>(e.openBlock(),e.createElementBlock("div",j6,[e.createElementVNode("div",G6,[e.createElementVNode("div",{class:e.normalizeClass(["input-wrapper bg-base-300 border-b border-base-200",{expanded:s.value||l.value.length>0}]),onClick:E[1]||(E[1]=C=>s.value=!s.value)},[e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":E[0]||(E[0]=C=>i.value=C),placeholder:l.value.length>0?t.multiSelect?`Selecionados: ${l.value.length}`:`Selecionado: ${l.value[0].name}`:"Pesquise por nome.",class:"select-depart-input"},null,8,I6),[[e.vModelText,i.value]]),E[2]||(E[2]=e.createElementVNode("div",{class:"icon-container"},[e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"search-icon"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M21 21l-5.197-5.197m0 0A7.5 7.5 0 105.196 5.196a7.5 7.5 0 0010.607 10.607z"})])],-1))],2),l.value.length>0&&t.multiSelect&&e.unref(r).loaded?(e.openBlock(),e.createElementBlock("main",q6,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.value,(C,b)=>(e.openBlock(),e.createElementBlock("div",{key:C,class:"selection-item"},[e.createTextVNode(e.toDisplayString(C.name)+" ",1),e.createElementVNode("button",{onClick:N=>y(C,b),class:"close-btn"},[...E[3]||(E[3]=[e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"close-icon"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6 18L18 6M6 6l12 12"})],-1)])],8,W6)]))),128))])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass([l.value.length>0&&t.multiSelect?"dropdown-attendance-expanded":"dropdown-attendance","dropdown-attendance bg-base-300"])},[e.createElementVNode("div",U6,[e.createElementVNode("div",{class:e.normalizeClass([{"two-columns":u.value.length>4},"grid-container"])},[e.unref(r).loaded?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(u.value,C=>(e.openBlock(),e.createElementBlock("div",{key:C,class:e.normalizeClass([{selected:C.selected},"department-item line-clamp-1 bg-slate-500/20 hover:bg-teal-600"])},[e.createElementVNode("div",Z6,[C.photo?(e.openBlock(),e.createElementBlock("img",{key:0,src:C.photo,style:{"pointer-events":"none","border-radius":"100%",width:"24px",height:"24px"}},null,8,Y6)):(e.openBlock(),e.createElementBlock("svg",X6,[...E[4]||(E[4]=[e.createElementVNode("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"},null,-1)])]))]),e.createElementVNode("span",{onClick:b=>g(C),class:"department-name h-full w-full"},e.toDisplayString(C.name),9,K6)],2))),128)):e.createCommentVNode("",!0)],2)]),e.unref(r).loaded&&u.value.length===0?(e.openBlock(),e.createElementBlock("div",Q6," Nenhum atendente disponível. ")):e.createCommentVNode("",!0),e.unref(r).loaded?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",J6,[...E[5]||(E[5]=[e.createTextVNode(" Inicializando atendentes ",-1),e.createElementVNode("div",{class:"library-loader"},null,-1)])]))],2)])]))}},[["__scopeId","data-v-5774a910"]]),e7={class:""},t7={class:"flex justify-between mb-3"},n7={class:""},ai=we({__name:"filterSelect",props:{title:{type:String,default:"Filtros"},modelValue:{default:null}},setup(t){const n=e.ref(!0);return(a,o)=>{const r=e.resolveComponent("Popper");return e.openBlock(),e.createBlock(r,{placement:"bottom",arrow:!1,class:"dark:popper-light popper-dark"},{content:e.withCtx(({close:i})=>[e.createElementVNode("section",e7,[e.createElementVNode("div",null,[e.createElementVNode("div",t7,[e.createElementVNode("p",null,e.toDisplayString(t.title),1),o[1]||(o[1]=e.createElementVNode("svg",{class:"w-4 h-4 text-white","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24"},[e.createElementVNode("path",{d:"M5 3a2 2 0 0 0-1.5 3.3l5.4 6v5c0 .4.3.9.6 1.1l3.1 2.3c1 .7 2.5 0 2.5-1.2v-7.1l5.4-6C21.6 5 20.7 3 19 3H5Z"})],-1))]),e.createElementVNode("div",n7,[e.renderSlot(a.$slots,"default",{},void 0,!0)])])])]),default:e.withCtx(()=>[e.createElementVNode("button",{onClick:o[0]||(o[0]=i=>n.value=!n.value),class:"group max-w-max relative flex p-0.5 flex-col items-center justify-center cursor-pointer rounded-md text-xs font-semibold"},[...o[2]||(o[2]=[e.createElementVNode("svg",{class:"w-3 h-3","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24"},[e.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"})],-1)])])]),_:3})}}},[["__scopeId","data-v-1dfa2696"]]);function a7(t,n){return e.openBlock(),e.createElementBlock("svg")}const o7={render:a7},r7=e.createStaticVNode('<g id="Top/_Resources/Prescription-01" fill="none" transform="translate(62 85)"><defs><filter id="filter1" width="101.5%" height="109.8%" x="-.8%" y="-2.4%" filterUnits="objectBoundingBox"><feOffset dy="2" in="SourceAlpha" result="shadowOffsetOuter1"></feOffset><feColorMatrix in="shadowOffsetOuter1" result="shadowMatrixOuter1" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0"></feColorMatrix><feMerge><feMergeNode in="shadowMatrixOuter1"></feMergeNode><feMergeNode in="SourceGraphic"></feMergeNode></feMerge></filter></defs><g id="Glasses" fill="#D6EAF2" filter="url('#filter1')" transform="translate(8 8)"><path id="Frame-Stuff" d="M46.25 7.275c2.37.022 3.492.417 3.896 2.89.41 2.506.011 5.322-.46 7.79-.721 3.768-1.92 7.46-4.708 10.214-1.47 1.45-3.261 2.606-5.167 3.395-1.012.42-2.081.722-3.15.952-.312.067-2.979.434-1.343.248-3.817.435-7.958.418-11.146-2.012-3.532-2.692-5.952-6.952-7.015-11.196-.623-2.483-1.93-8.422.459-10.407 2.737-2.274 28.633-1.874 28.633-1.874M22.217.491c-5.44.187-9.071 1.143-11.755 6.578-4.917 9.961 3.5 24.9 12.89 28.97 10.976 4.76 23.24-.507 29.043-10.033 3.073-5.044 4.626-12.683 4.526-18.502C56.795.077 51.607-.13 45.51.034zM79.68 7.273c-2.371.022-3.492.416-3.896 2.89-.41 2.505-.012 5.322.46 7.79.72 3.767 1.919 7.459 4.708 10.213 1.47 1.45 3.261 2.606 5.167 3.396 1.012.419 2.08.722 3.15.951.312.067 2.978.435 1.343.248 3.817.436 7.958.418 11.145-2.011 3.533-2.692 5.952-6.952 7.016-11.196.623-2.483 1.93-8.422-.46-10.407-2.737-2.275-28.632-1.874-28.632-1.874M103.713.488c5.44.187 9.071 1.144 11.754 6.579 4.918 9.96-3.5 24.9-12.889 28.97-10.977 4.76-23.24-.508-29.043-10.033C70.46 20.96 68.907 13.32 69.007 7.5 69.135.074 74.323-.132 80.42.031z"></path><path id="Frame-Stuff" d="M13.197 4.927c-3.412.191-7.31.237-10.507 1.712-3.385 1.562-3.908 5.1.36 5.587 1.92.22 3.845-.143 5.737-.481 1.55-.277 3.655-.187 5.12-.78 2.729-1.103 2.553-6.225-.71-6.038m99.538 0c3.412.191 7.31.237 10.507 1.712 3.384 1.562 3.907 5.1-.36 5.587-1.921.22-3.845-.143-5.738-.481-1.55-.277-3.654-.187-5.119-.78-2.73-1.103-2.554-6.225.71-6.038M73.11 7.013c-1.947-2.3-7.019-3.628-10.219-3.628s-8.123 1.328-10.069 3.628c-.981 1.16-1.015 2.711.686 3.438 2.118.906 4.01-.737 5.705-1.596 2.168-1.098 5.499-.978 7.506 0 1.708.833 3.586 2.502 5.704 1.596 1.701-.727 1.668-2.279.686-3.438"></path></g></g>',1),i7=[r7];function s7(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...i7])}const l7={render:s7},c7=e.createStaticVNode('<g id="Top/_Resources/Round" fill="none" transform="translate(62 85)"><defs><filter id="filter1" width="101.6%" height="108.3%" x="-.8%" y="-2.1%" filterUnits="objectBoundingBox"><feOffset dy="2" in="SourceAlpha" result="shadowOffsetOuter1"></feOffset><feColorMatrix in="shadowOffsetOuter1" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.1 0"></feColorMatrix></filter><path id="Round-path1" d="M80.465 16.394C84.38 8.46 92.553 3 102 3c8.92 0 16.703 4.866 20.84 12.088q.316-.087.66-.088h8a2.5 2.5 0 1 1 0 5h-6.537A24 24 0 0 1 126 27c0 13.255-10.745 24-24 24S78 40.255 78 27c0-1.422.124-2.815.36-4.169C78.277 18.455 74.915 15 70.863 15c-3.736 0-6.887 2.94-7.42 6.83.365 1.665.558 3.395.558 5.17 0 13.255-10.745 24-24 24S16 40.255 16 27c0-2.435.363-4.785 1.037-7H10.5a2.5 2.5 0 1 1 0-5h8q.343 0 .66.088C23.297 7.866 31.08 3 40 3c9.352 0 17.455 5.35 21.416 13.155C63.493 13.039 66.949 11 70.862 11c4.013 0 7.545 2.144 9.603 5.394M40 47c11.046 0 20-8.954 20-20S51.046 7 40 7s-20 8.954-20 20 8.954 20 20 20m62 0c11.046 0 20-8.954 20-20s-8.954-20-20-20-20 8.954-20 20 8.954 20 20 20"></path></defs><g id="Lennon-Glasses"><use fill="#000" filter="url('#filter1')" href="#Round-path1"></use><use fill="#252C2F" href="#Round-path1"></use></g></g>',1),d7=[c7];function u7(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...d7])}const f7={render:u7},m7=e.createStaticVNode('<g id="Top/_Resources/Wayfarers" fill="none" stroke-width="1" transform="translate(62 85)"><defs><path id="react-path-1157" d="M44.918 17.571c0 9.703-8.25 17.572-21.998 17.572h-2.75C6.423 35.143.923 27.27.923 17.57.923 7.866 2.207 0 21.455 0h2.931c19.248 0 20.532 7.866 20.532 17.571"></path><path id="react-path-1158" d="M106.486 17.571c0 9.703-8.247 17.572-21.997 17.572h-2.75c-13.748 0-19.248-7.872-19.248-17.572C62.491 7.866 63.775 0 83.023 0h2.932c19.244 0 20.531 7.866 20.531 17.571"></path><linearGradient id="react-linear-gradient-1160" x1="50%" x2="50%" y1="0%" y2="100%"><stop offset="0%" stop-color="#FFF" stop-opacity=".5"></stop><stop offset="70.506%" stop-opacity=".5"></stop></linearGradient><filter id="react-filter-1159" width="101.6%" height="109.8%" x="-.8%" y="-2.4%" filterUnits="objectBoundingBox"><feOffset dy="2" in="SourceAlpha" result="shadowOffsetOuter1"></feOffset><feColorMatrix in="shadowOffsetOuter1" result="shadowMatrixOuter1" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0"></feColorMatrix><feMerge><feMergeNode in="shadowMatrixOuter1"></feMergeNode><feMergeNode in="SourceGraphic"></feMergeNode></feMerge></filter></defs><g id="Wayfarers" filter="url(#react-filter-1159)" transform="translate(7 7)"><g id="Shades" fill-rule="evenodd" transform="translate(10.795 2.929)"><g id="Shade"><use fill="#000" fill-opacity=".7" href="#react-path-1157"></use><use fill="url(#react-linear-gradient-1160)" href="#react-path-1157" style="mix-blend-mode:screen;"></use></g><g id="Shade"><use fill="#000" fill-opacity=".7" href="#react-path-1158"></use><use fill="url(#react-linear-gradient-1160)" href="#react-path-1158" style="mix-blend-mode:screen;"></use></g></g><path id="Left" fill="#252C2F" fill-rule="nonzero" d="M33.716 41h-2.75c-13.888 0-22.18-7.664-22.18-20.5C8.787 10.127 10.6 0 32.25 0h2.932c21.651 0 23.463 10.127 23.463 20.5 0 12.069-10.25 20.5-24.93 20.5M32.25 5.854c-17.6 0-17.6 6.464-17.6 14.646 0 6.68 2.83 14.643 16.316 14.643h2.75c11.226 0 19.066-6.021 19.066-14.643 0-8.182 0-14.646-17.6-14.646z"></path><path id="Right" fill="#252C2F" fill-rule="nonzero" d="M95.284 41h-2.75c-13.888 0-22.18-7.664-22.18-20.5 0-10.373 1.813-20.5 23.464-20.5h2.932c21.651 0 23.463 10.127 23.463 20.5 0 12.069-10.25 20.5-24.929 20.5M93.818 5.854c-17.6 0-17.6 6.464-17.6 14.646 0 6.68 2.833 14.643 16.316 14.643h2.75c11.226 0 19.066-6.021 19.066-14.643 0-8.182 0-14.646-17.6-14.646z"></path><path id="Stuff" fill="#252C2F" fill-rule="nonzero" d="M2.932 5.857C3.618 5.172 11.123 0 32.25 0c17.714 0 21.464 1.88 27.14 4.72l.415.21c.395.143 2.413.844 4.773.921a16.5 16.5 0 0 0 4.528-.881C75.584 1.748 81.926 0 96.75 0c21.127 0 28.632 5.172 29.318 5.857A2.93 2.93 0 0 1 129 8.786v2.928c0 1.62-1.31 2.929-2.932 2.929 0 0-5.863 0-5.863 2.928s-2.932-4.237-2.932-5.857V8.862c-3.576-1.4-9.976-3.005-20.523-3.005-11.75 0-17.602 1.131-22.622 3.247l.056.139-2.496 1.007 2.493 1.008-2.2 5.43-2.717-1.1a13 13 0 0 0-1.493-.457c-2.024-.51-4.106-.666-5.946-.28a7.7 7.7 0 0 0-1.877.642l-2.622 1.31-2.623-5.238 2.622-1.31.006-.003-2.512-1.015.08-.198C50.57 6.976 46.58 5.857 32.25 5.857c-10.546 0-16.947 1.604-20.523 3.004v2.853c0 1.62-2.932 8.786-2.932 5.857s-5.863-2.928-5.863-2.928A2.93 2.93 0 0 1 0 11.714V8.786a2.93 2.93 0 0 1 2.932-2.929"></path></g></g>',1),h7=[m7];function p7(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...h7])}const g7={render:p7},y7=e.createStaticVNode('<g id="Top/_Resources/Kurt" fill="none" transform="translate(62 85)"><defs><filter id="filter1" width="101.5%" height="108%" x="-.8%" y="-2%" filterUnits="objectBoundingBox"><feOffset dy="2" in="SourceAlpha" result="shadowOffsetOuter1"></feOffset><feColorMatrix in="shadowOffsetOuter1" result="shadowMatrixOuter1" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"></feColorMatrix><feMerge><feMergeNode in="shadowMatrixOuter1"></feMergeNode><feMergeNode in="SourceGraphic"></feMergeNode></feMerge></filter></defs><g id="Kurts" filter="url('#filter1')" transform="translate(5 2)"><path id="It!" fill="#F4F4F4" d="M66 11.111c-11.037 0-12.63-9.084-35.33-10.37C7.987-.283.816 6.449.777 11.11c.037 4.293-1.128 15.45 13.589 28.519 14.772 15.512 29.905 10.252 35.33 5.185C55.134 42.473 61.34 21.46 66 21.48s10.865 20.992 16.306 23.334c5.424 5.067 20.557 10.327 35.33-5.185 14.716-13.069 13.55-24.226 13.588-28.519-.04-4.662-7.21-11.394-29.895-10.37C78.63 2.027 77.037 11.11 66 11.11"></path><path id="Did" fill="#2F383B" d="M55.13 21.481c.38-7.658-12.914-15.839-27.177-15.555-14.256.299-16.111 9.453-16.306 12.963-.349 8.133 8.367 26.415 24.459 25.926 16.091-.51 18.803-18.28 19.023-23.334"></path><path id="Courtney" fill="#2F383B" d="M120.353 21.481c.38-7.658-12.914-15.839-27.177-15.555-14.255.299-16.11 9.453-16.305 12.963-.35 8.133 8.367 26.415 24.458 25.926 16.092-.51 18.804-18.28 19.024-23.334" transform="matrix(-1 0 0 1 197.224 0)"></path></g></g>',1),k7=[y7];function x7(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...k7])}const b7={render:x7},w7=e.createStaticVNode('<g id="Top/_Resources/Prescription-02" fill="none" stroke-width="1" transform="translate(62 85)"><defs><filter id="react-filter-1166" width="101.5%" height="109.8%" x="-.8%" y="-2.4%" filterUnits="objectBoundingBox"><feOffset dy="2" in="SourceAlpha" result="shadowOffsetOuter1"></feOffset><feColorMatrix in="shadowOffsetOuter1" result="shadowMatrixOuter1" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0"></feColorMatrix><feMerge><feMergeNode in="shadowMatrixOuter1"></feMergeNode><feMergeNode in="SourceGraphic"></feMergeNode></feMerge></filter></defs><g id="Wayfarers" fill="#252C2F" fill-rule="nonzero" filter="url(#react-filter-1166)" transform="translate(6 7)"><path id="Left" d="M34 41h-2.758C17.315 41 9 33.336 9 20.5 9 10.127 10.817 0 32.53 0h2.94C57.183 0 59 10.127 59 20.5 59 32.569 48.721 41 34 41M32.385 6C13 6 13 12.841 13 21.502 13 28.572 16.116 37 30.97 37H34c12.365 0 21-6.373 21-15.498C55 12.84 55 6 35.615 6z"></path><path id="Right" d="M96 41h-2.758C79.315 41 71 33.336 71 20.5 71 10.127 72.817 0 94.53 0h2.94C119.183 0 121 10.127 121 20.5 121 32.569 110.721 41 96 41M94.385 6C75 6 75 12.841 75 21.502 75 28.572 78.12 37 92.97 37H96c12.365 0 21-6.373 21-15.498C117 12.84 117 6 97.615 6z"></path><path id="Stuff" d="M2.955 5.772C3.645 5.096 11.21 0 32.5 0c17.851 0 21.63 1.853 27.35 4.652l.419.207c.398.14 2.431.83 4.81.907a17 17 0 0 0 4.563-.869C76.17 1.722 82.562 0 97.5 0c21.29 0 28.854 5.096 29.545 5.772 1.634 0 2.955 1.29 2.955 2.885v2.886c0 1.596-1.32 2.886-2.955 2.886 0 0-6.901 0-6.901 2.886 0 2.885-1.962-4.176-1.962-5.772v-2.81c-3.603-1.38-10.054-3.947-20.682-3.947-11.842 0-17.739 2.1-22.798 4.185l.057.137-.003 1.986-2.217 5.35L69.8 15.36c-.244-.097-.772-.27-1.504-.451-2.04-.503-4.137-.656-5.992-.276q-1.021.21-1.891.633l-2.643 1.29-2.643-5.16.117-2.295.08-.195c-4.362-2.033-8.385-4.12-22.824-4.12-10.628 0-17.078 2.565-20.682 3.944v2.812c0 1.596-2.954 8.657-2.954 5.772 0-2.886-5.91-2.886-5.91-2.886-1.63 0-2.954-1.29-2.954-2.886V8.657c0-1.595 1.324-2.885 2.955-2.885"></path></g></g>',1),E7=[w7];function v7(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...E7])}const C7={render:v7},S7=e.createStaticVNode('<g id="Top/_Resources/Sunglasses" fill="none" stroke-width="1" transform="translate(62 85)"><defs><linearGradient id="react-linear-gradient-1164" x1="50%" x2="50%" y1="0%" y2="70.506%"><stop offset="0%" stop-color="#FFF" stop-opacity=".5"></stop><stop offset="100%" stop-opacity=".5"></stop></linearGradient><linearGradient id="react-linear-gradient-1165" x1="50%" x2="50%" y1="0%" y2="100%"><stop offset="0%" stop-color="#FFF" stop-opacity=".5"></stop><stop offset="70.506%" stop-opacity=".5"></stop></linearGradient><path id="react-path-1161" d="M47.01 6.277c2.511.024 3.698.45 4.126 3.115.433 2.7.012 5.736-.488 8.395-.762 4.06-2.031 8.04-4.984 11.007-1.555 1.564-3.452 2.81-5.47 3.66-1.071.452-2.203.778-3.334 1.026-.33.072-3.154.468-1.422.267-4.041.47-8.425.45-11.8-2.168-3.74-2.901-6.301-7.493-7.427-12.066-.66-2.676-2.044-9.076.486-11.216 2.898-2.452 30.313-2.02 30.313-2.02"></path><path id="react-path-1162" d="M78.92 6.275c-2.512.024-3.699.449-4.126 3.114-.434 2.7-.012 5.736.487 8.395.763 4.061 2.032 8.04 4.984 11.008 1.556 1.563 3.453 2.809 5.47 3.66 1.072.451 2.204.778 3.335 1.025.33.072 3.153.469 1.422.267 4.04.47 8.425.45 11.8-2.167 3.74-2.902 6.3-7.493 7.427-12.066.66-2.677 2.043-9.077-.486-11.217-2.898-2.451-30.314-2.02-30.314-2.02"></path><filter id="react-filter-1163" width="101.6%" height="110.5%" x="-.8%" y="-2.6%" filterUnits="objectBoundingBox"><feOffset dy="2" in="SourceAlpha" result="shadowOffsetOuter1"></feOffset><feColorMatrix in="shadowOffsetOuter1" result="shadowMatrixOuter1" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.1 0"></feColorMatrix><feMerge><feMergeNode in="shadowMatrixOuter1"></feMergeNode><feMergeNode in="SourceGraphic"></feMergeNode></feMerge></filter></defs><g id="Sunglasses" filter="url(#react-filter-1163)" transform="translate(8 8)"><g id="shades"><use fill="#000" fill-opacity=".7" href="#react-path-1161"></use><use fill="url(#react-linear-gradient-1164)" href="#react-path-1161" style="mix-blend-mode:screen;"></use></g><g id="shades"><use fill="#000" fill-opacity=".7" href="#react-path-1162"></use><use fill="url(#react-linear-gradient-1165)" href="#react-path-1162" style="mix-blend-mode:screen;"></use></g><g id="Glasses" fill="#252C2F"><path id="Frame" d="M46.25 7.275c2.37.022 3.492.417 3.896 2.89.41 2.506.011 5.322-.46 7.79-.721 3.768-1.92 7.46-4.708 10.214-1.47 1.45-3.261 2.606-5.167 3.395-1.012.42-2.081.722-3.15.952-.312.067-2.979.434-1.343.248-3.817.435-7.958.418-11.146-2.012-3.532-2.692-5.952-6.952-7.015-11.196-.623-2.483-1.93-8.422.459-10.407 2.737-2.274 28.633-1.874 28.633-1.874M22.217.491c-5.44.187-9.071 1.143-11.755 6.578-4.917 9.961 3.5 24.9 12.89 28.97 10.976 4.76 23.24-.507 29.043-10.033 3.073-5.044 4.626-12.683 4.526-18.502C56.795.077 51.607-.13 45.51.034zM79.68 7.273c-2.371.022-3.492.416-3.896 2.89-.41 2.505-.012 5.322.46 7.79.72 3.767 1.919 7.459 4.708 10.213 1.47 1.45 3.261 2.606 5.167 3.396 1.012.419 2.08.722 3.15.951.312.067 2.978.435 1.343.248 3.817.436 7.958.418 11.145-2.011 3.533-2.692 5.952-6.952 7.016-11.196.623-2.483 1.93-8.422-.46-10.407-2.737-2.275-28.632-1.874-28.632-1.874M103.713.488c5.44.187 9.071 1.144 11.754 6.579 4.918 9.96-3.5 24.9-12.889 28.97-10.977 4.76-23.24-.508-29.043-10.033C70.46 20.96 68.907 13.32 69.007 7.5 69.135.074 74.323-.132 80.42.031z"></path><path id="Frame" d="M13.197 4.927c-3.412.191-7.31.237-10.507 1.712-3.385 1.562-3.908 5.1.36 5.587 1.92.22 3.845-.143 5.737-.481 1.55-.277 3.655-.187 5.12-.78 2.729-1.103 2.553-6.225-.71-6.038m99.538 0c3.412.191 7.31.237 10.507 1.712 3.384 1.562 3.907 5.1-.36 5.587-1.921.22-3.845-.143-5.738-.481-1.55-.277-3.654-.187-5.119-.78-2.73-1.103-2.554-6.225.71-6.038M73.11 7.013c-1.947-2.3-7.019-3.628-10.219-3.628s-8.123 1.328-10.069 3.628c-.981 1.16-1.015 2.711.686 3.438 2.118.906 4.01-.737 5.705-1.596 2.168-1.098 5.499-.978 7.506 0 1.708.833 3.586 2.502 5.704 1.596 1.701-.727 1.668-2.279.686-3.438"></path></g></g></g>',1),B7=[S7];function V7(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...B7])}const M7={render:V7},N7={Blank:o7,Prescription01:l7,Round:f7,Wayfarers:g7,Kurt:b7,Prescription02:C7,Sunglasses:M7},A7=e.createStaticVNode('<g id="Clothing/Blazer-+-Shirt" transform="translate(0 170)"><defs><path id="BlazerShirt-path1" d="M133.96.295c36.976 3.03 66.04 34 66.04 71.757V81H0v-8.948C0 33.952 29.592 2.765 67.045.22Q67 .78 67 1.348c0 11.863 14.998 21.48 33.5 21.48S134 13.211 134 1.348q0-.53-.04-1.053"></path></defs><g id="Shirt" transform="translate(32 29)"><mask id="BlazerShirt-mask1" fill="#fff"><use href="#BlazerShirt-path1"></use></mask><use fill="#E6E6E6" class="CustomColor" href="#BlazerShirt-path1"></use><g id="Color/Palette/Black" fill="#262E33" mask="url('#BlazerShirt-mask1')"><path id="Color" d="M0 0h264v110H0z" transform="translate(-32 -29)"></path></g><g id="Shadowy" fill="#000" mask="url('#BlazerShirt-mask1')" opacity=".16"><ellipse id="Hola" cx="40.5" cy="27.848" rx="39.635" ry="26.914" transform="translate(60 -25)"></ellipse></g></g><g id="Blazer" transform="translate(32 28)"><path id="Saco" fill="#3A4C5A" d="M68.785 1.122C30.512 2.804 0 34.365 0 73.052V82h69.362C65.96 69.92 64 55.709 64 40.5c0-14.327 1.74-27.769 4.785-39.378M131.638 82H200v-8.948c0-38.345-29.975-69.69-67.771-71.878C135.265 12.77 137 26.194 137 40.5c0 15.209-1.96 29.42-5.362 41.5"></path><path id="Pocket-hanky" fill="#E6E6E6" d="m149 58 9.556-7.167a4 4 0 0 1 4.856.043L170 56z"></path><path id="Wing" fill="#2F4351" d="M69 0q-6 29 5 82H58L44 46l6-9-6-6L63 1q3.042-.945 6-1"></path><path id="Wing" fill="#2F4351" d="M151 0q-6 29 5 82h-16l-14-36 6-9-6-6 19-30q3.042-.945 6-1" transform="matrix(-1 0 0 1 282 0)"></path></g></g>',1),T7=[A7];function D7(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...T7])}const L7={render:D7},F7=e.createStaticVNode('<g id="Clothing/Blazer-+-Sweater" transform="translate(0 170)"><defs><path id="BlazerSweater-path1" d="M105.192 29.052H104c-39.765 0-72 32.235-72 72V110h200v-8.948c0-39.765-32.235-72-72-72h-1.192q.191 1.475.192 3c0 13.807-12.088 25-27 25s-27-11.193-27-25q0-1.525.192-3"></path></defs><mask id="BlazerSweater-mask1" fill="#fff"><use href="#BlazerSweater-path1"></use></mask><use fill="#E6E6E6" class="CustomColor" href="#BlazerSweater-path1"></use><g id="Color/Palette/Black" fill="#262E33" mask="url('#BlazerSweater-mask1')"><path id="Color" d="M0 0h264v110H0z"></path></g><g id="Blazer" transform="translate(32 28)"><path id="Saco" fill="#3A4C5A" d="M68.785 1.122C30.512 2.804 0 34.365 0 73.052V82h69.362C65.96 69.92 64 55.709 64 40.5c0-14.327 1.74-27.769 4.785-39.378M131.638 82H200v-8.948c0-38.345-29.975-69.69-67.771-71.878C135.265 12.77 137 26.194 137 40.5c0 15.209-1.96 29.42-5.362 41.5"></path><path id="Pocket-hanky" fill="#E6E6E6" d="m149 58 9.556-7.167a4 4 0 0 1 4.856.043L170 56z"></path><path id="Wing" fill="#2F4351" d="M69 0q-6 29 5 82H58L44 46l6-9-6-6L63 1q3.042-.945 6-1"></path><path id="Wing" fill="#2F4351" d="M151 0q-6 29 5 82h-16l-14-36 6-9-6-6 19-30q3.042-.945 6-1" transform="matrix(-1 0 0 1 282 0)"></path></g><path id="Collar" fill="#F2F2F2" d="M156 21.539c6.772 4.597 11 11.117 11 18.349 0 7.4-4.428 14.057-11.48 18.668l-5.94-4.68-4.58.332 1-3.151-.078-.061C152.022 47.853 156 42.7 156 36.876zm-48 0c-6.772 4.597-11 11.117-11 18.349 0 7.4 4.428 14.057 11.48 18.668l5.94-4.68 4.58.332-1-3.151.078-.061C111.978 47.853 108 42.7 108 36.876z"></path></g>',1),$7=[F7];function P7(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...$7])}const _7={render:P7},O7=e.createElementVNode("g",{id:"Clothing/Collar-+-Sweater",transform:"translate(0 170)"},[e.createElementVNode("defs",null,[e.createElementVNode("path",{id:"CollarSweater-path1",d:"M105.192 29.052H104c-39.765 0-72 32.235-72 72V110h200v-8.948c0-39.765-32.235-72-72-72h-1.192q.191 1.475.192 3c0 13.807-12.088 25-27 25s-27-11.193-27-25q0-1.525.192-3"})]),e.createElementVNode("use",{fill:"var(--avataaar-shirt-color)",class:"CustomColor",href:"#CollarSweater-path1"}),e.createElementVNode("path",{id:"Collar",fill:"#F2F2F2",d:"M156 22.28c6.182 4.555 10 10.826 10 17.748 0 7.205-4.137 13.705-10.771 18.3l-5.65-4.452-4.579.332 1-3.151-.078-.061C152.022 47.853 156 42.7 156 36.876zm-48-.709c-6.767 4.603-11 11.169-11 18.457 0 7.398 4.362 14.052 11.308 18.664l6.113-4.816 4.579.332-1-3.151.078-.061C111.978 47.853 108 42.7 108 36.876z"})],-1),R7=[O7];function H7(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...R7])}const z7={render:H7},j7=e.createStaticVNode('<g id="Clothing/Hoodie" transform="translate(0 170)"><defs><path id="Hoodie-path1" d="M108 13.07c-17.919 2.006-31.72 7.482-31.996 21.575C50.146 45.568 32 71.165 32 100.999V110h200v-9c0-29.835-18.146-55.432-44.004-66.355-.276-14.093-14.077-19.57-31.996-21.574V32c0 13.255-10.745 24-24 24s-24-10.745-24-24z"></path></defs><mask id="Hoodie-mask1" fill="#fff"><use href="#Hoodie-path1"></use></mask><use fill="var(--avataaar-shirt-color)" class="CustomColor" href="#Hoodie-path1"></use><path id="Straps" fill="#F4F4F4" d="M102 61.74V110h-7V58.15a65 65 0 0 0 7 3.59m67-3.59V98.5a3.5 3.5 0 1 1-7 0V61.74a65 65 0 0 0 7-3.59" mask="url('#Hoodie-mask1')"></path><path id="Shadow" fill="#000" d="M90.96 12.724C75.91 15.571 65.5 21.243 65.5 32.308 65.5 52.02 98.538 68 132 68s66.5-15.98 66.5-35.692c0-11.065-10.41-16.737-25.46-19.584 9.085 3.35 14.96 8.982 14.96 18.353C188 51.469 160.179 68 132 68S76 51.469 76 31.077c0-9.37 5.875-15.003 14.96-18.353" mask="url('#Hoodie-mask1')" opacity=".16"></path></g>',1),G7=[j7];function I7(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...G7])}const q7={render:I7},W7=e.createElementVNode("g",{id:"Clothing/Graphic-Shirt",transform:"translate(0 170)"},[e.createElementVNode("defs",null,[e.createElementVNode("path",{id:"GraphicShirt-path1",d:"M165.624 29.268C202.76 32.138 232 63.18 232 101.052V110H32v-8.948c0-38.217 29.775-69.48 67.393-71.855A14 14 0 0 0 99 32.5C99 44.374 113.998 54 132.5 54S166 44.374 166 32.5c0-1.098-.128-2.178-.376-3.232"})]),e.createElementVNode("use",{fill:"#E6E6E6",class:"CustomColor",href:"#GraphicShirt-path1"})],-1),U7=[W7];function Z7(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...U7])}const Y7={render:Z7},X7=e.createStaticVNode('<g id="Clothing/Overall" transform="translate(0 170)"><defs><path id="Overall-path1" d="M94 29.688V74h76V29.688a71.5 71.5 0 0 1 26 8.944V110H68V38.632a71.5 71.5 0 0 1 26-8.944"></path></defs><use fill="var(--avataaar-shirt-color)" class="CustomColor" href="#Overall-path1"></use><circle id="Button" cx="81" cy="83" r="5" fill="#F4F4F4"></circle><circle id="Button" cx="183" cy="83" r="5" fill="#F4F4F4"></circle></g>',1),K7=[X7];function Q7(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...K7])}const J7={render:Q7},e8=e.createStaticVNode('<g id="Clothing/Shirt-Crew-Neck" transform="translate(0 170)"><defs><path id="ShirtCrewNeck-path1" d="M165.96 29.295c36.976 3.03 66.04 34 66.04 71.757V110H32v-8.948c0-38.1 29.592-69.287 67.045-71.832Q99 29.78 99 30.348c0 11.863 14.998 21.48 33.5 21.48s33.5-9.617 33.5-21.48q0-.53-.04-1.053"></path></defs><mask id="ShirtCrewNeck-mask1" fill="#fff"><use href="#ShirtCrewNeck-path1"></use></mask><use fill="var(--avataaar-shirt-color)" class="CustomColor" href="#ShirtCrewNeck-path1"></use><g id="Shadowy" fill="#000" mask="url('#ShirtCrewNeck-mask1')" opacity=".16"><ellipse id="Hola" cx="40.5" cy="27.848" rx="39.635" ry="26.914" transform="translate(92 4)"></ellipse></g></g>',1),t8=[e8];function n8(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...t8])}const a8={render:n8},o8=e.createElementVNode("g",{id:"Clothing/Shirt-V-Neck",transform:"translate(0 170)"},[e.createElementVNode("defs",null,[e.createElementVNode("path",{id:"ShirtVNeck-path1",d:"M171.32 29.936C205.706 35.366 232 65.14 232 101.052V110H32v-8.948c0-35.914 26.294-65.686 60.682-71.116a23.9 23.9 0 0 0 7.554 13.603l29.085 26.229a4 4 0 0 0 5.358 0l29.085-26.229a24 24 0 0 0 1.234-1.196 23.9 23.9 0 0 0 6.322-12.407"})]),e.createElementVNode("use",{fill:"var(--avataaar-shirt-color)",class:"CustomColor",href:"#ShirtVNeck-path1"})],-1),r8=[o8];function i8(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...r8])}const s8={render:i8},l8=e.createElementVNode("g",{id:"Clothing/Shirt-Scoop-Neck",transform:"translate(0 170)"},[e.createElementVNode("defs",null,[e.createElementVNode("path",{id:"ShirtScoopNeck-path1",d:"M181.544 32.33C210.784 41.488 232 68.792 232 101.052V110H32v-8.948c0-32.655 21.739-60.232 51.534-69.05A18 18 0 0 0 83 36.348c0 16.281 22.162 29.48 49.5 29.48S182 52.629 182 36.348c0-1.363-.155-2.704-.456-4.018"})]),e.createElementVNode("use",{fill:"var(--avataaar-shirt-color)",class:"CustomColor",href:"#ShirtScoopNeck-path1"})],-1),c8=[l8];function d8(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...c8])}const u8={render:d8},f8={BlazerShirt:L7,CollarSweater:z7,BlazerSweater:_7,Hoodie:q7,GraphicShirt:Y7,Overall:J7,ShirtCrewNeck:a8,ShirtVNeck:s8,ShirtScoopNeck:u8},m8=e.createStaticVNode('<g id="Top"><defs><path id="Eyepatch-path1" d="M0 0h264v280H0z"></path></defs><mask id="Eyepatch-mask1" fill="#fff"><use href="#Eyepatch-path1"></use></mask><g id="Top/Accesories/Eyepatch" mask="url('#Eyepatch-mask1')"><path fill="#28354B" d="M159.395 39.781c-3.077-3.088-6.276 3.858-7.772 5.647-3.61 4.32-7.083 8.755-10.755 13.024-7.252 8.43-14.429 16.922-21.634 25.388-1.094 1.286-.961 1.425-2.397 1.549-.951.082-2.274-.409-3.263-.463-2.75-.151-5.462.309-8.138.897-5.345 1.173-11.01 3.106-15.647 6.075-1.217.78-2.002 1.7-3.322 1.943-1.149.212-2.673-.211-3.845-.322-2.08-.195-5.084-1.046-7.127-.605-2.592.56-3.578 3.697-.935 5.086 2.01 1.056 6.01.476 8.264.645 2.573.192 1.788.06 1.423 2.52-.523 3.533.352 7.481 1.842 10.713 3.46 7.505 13.034 15.457 21.766 14.725 7.287-.61 13.672-7.19 16.664-13.503 1.532-3.231 2.436-6.908 2.731-10.472.189-2.266.084-4.67-.566-6.865-.321-1.085-.83-2.208-1.376-3.193-.442-.799-2.4-2.65-2.52-3.453-.232-1.557 4.185-5.73 5.028-6.773 3.973-4.916 7.964-9.812 11.906-14.755 3.881-4.869 7.784-9.725 11.768-14.51 1.804-2.17 10.828-10.364 7.905-13.298" class="CustomColor"></path></g></g>',1),h8=[m8];function p8(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...h8])}const g8={render:p8},y8=e.createStaticVNode('<g id="Top"><defs><path id="LongHairMiaWallace-path1" d="M0 0h264v280H0z"></path><path id="LongHairMiaWallace-path2" d="M148.86 69q.14 1.982.14 4v38c0 22.34-13.08 41.623-32 50.611v8.706c18.146 1.499 35.721 4.018 46 6.683 9.953-13.56 22.885-26.2 23-51 .085-18.985-27.676-95.572-40-111-8.138-10.188-28.695-13.55-53-14S48.923 6.509 41 16C30.319 28.795-.085 107.015 0 126c.116 24.8 13.048 37.44 23 51 10.279-2.665 27.854-5.184 46-6.683v-8.706C50.08 152.623 37 133.339 37 111V73q0-2.018.14-4h28.234l3.879-21.444L72.058 69h76.801Z"></path></defs><mask id="LongHairMiaWallace-mask1" fill="#fff"><use href="#LongHairMiaWallace-path1"></use></mask><g id="Top/Long-Hair/Mia-Wallace" mask="url('#LongHairMiaWallace-mask1')"><g transform="translate(-1)"><path id="Shadow" fill="#000" d="M69.033 76.213q19.407-49.626 41.025-49.626c.539 0 29.253-.238 48.055-.36C178.767 35.585 193 55.304 193 78.115V93h-82.942l-2.805-23.18-3.88 23.18H69V78.115q0-.955.033-1.902" opacity=".16"></path><use id="Hair" fill="var(--avataaar-hair-color)" class="CustomColor" href="#LongHairMiaWallace-path2" transform="translate(40 19)"></use></g></g></g>',1),k8=[y8];function x8(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...k8])}const b8={render:x8},w8=e.createStaticVNode('<g id="Top"><defs><path id="ShortHairShortCurly-path2" d="M0 0h264v280H0z"></path><path id="ShortHairShortCurly-path1" d="M94.252 52.022q.185-.081-.916-.062 1.338-.003.916.062m-8.135-15.72c-.002-.02.017.15 0 0m107.648 34.464c-.264-3.317-.732-6.614-1.518-9.855-.625-2.576-1.478-5.033-2.487-7.491-.61-1.485-2.032-3.524-2.2-5.126-.165-1.577 1.067-3.325 1.33-5.162a16 16 0 0 0-.156-5.438c-.833-4.023-3.594-7.764-7.857-8.813-.952-.234-2.964.055-3.636-.5-.771-.635-1.308-2.8-2.006-3.669-1.99-2.476-5.095-4.07-8.37-3.514-2.41.409-1.026.907-2.833-.512-1.005-.788-1.756-1.993-2.732-2.847-1.467-1.283-3.15-2.38-4.892-3.282-4.557-2.358-9.754-4.072-14.844-4.908-9.285-1.524-19.195-.195-28.195 2.22-4.479 1.201-8.987 2.726-13.147 4.743-1.783.864-2.813 1.582-4.673 1.808-2.928.357-5.409.339-8.183 1.581-8.536 3.822-12.381 12.689-9.06 21.174a14.6 14.6 0 0 0 2.82 4.584c1.521 1.68 2.072 1.35.762 3.282a53 53 0 0 0-4.955 9.172c-3.529 8.402-4.12 17.864-3.89 26.824.081 3.137.216 6.313.71 9.42.214 1.344.274 3.872 1.282 4.87.512.506 1.241.788 1.969.587 1.71-.474 1.121-1.735 1.161-2.906.2-5.884-.07-11.089 1.33-16.902 1.033-4.294 2.755-8.195 4.988-12.035 2.838-4.884 5.903-9.173 9.807-13.355.917-.984 1.118-1.4 2.349-1.472.932-.054 2.295.584 3.2.805 1.999.487 4 .968 6.034 1.296 3.74.603 7.444.644 11.217.525 7.426-.232 14.885-.753 22.085-2.623 4.782-1.242 9.022-3.47 13.602-5.105.082-.029 1.23-.847 1.43-.814.282.047 1.978 1.826 2.264 2.05 2.226 1.746 4.667 2.479 7.07 3.83 2.964 1.667.094-.718 1.728 1.359.477.605.72 1.726 1.103 2.411a18.1 18.1 0 0 0 4.93 5.624c1.956 1.47 4.894 2.18 5.891 4.095.769 1.477 1.028 3.484 1.648 5.06 1.628 4.136 3.777 7.992 5.926 11.887 1.732 3.14 3.625 5.881 3.818 9.468.067 1.248-1.121 8.737 1.773 6.46.429-.338 1.353-4.156 1.543-4.804.772-2.633 1.046-5.381 1.395-8.086.694-5.38.923-10.498.47-15.916"></path></defs><mask id="ShortHairShortCurly-mask2" fill="#fff"><use href="#ShortHairShortCurly-path2"></use></mask><g id="Top/Short-Hair/Short-Curly" mask="url('#ShortHairShortCurly-mask2')"><use fill="var(--avataaar-hair-color)" class="CustomColor" href="#ShortHairShortCurly-path1" transform="translate(-1)"></use></g></g>',1),E8=[w8];function v8(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...E8])}const C8={render:v8},S8=e.createStaticVNode('<g id="Top"><defs><path id="Hat-path2" d="M0 0h264v280H0z"></path><path id="Hat-path1" d="M156 180.611c17.53-8.328 30.048-25.496 31.791-45.744C193.57 134.002 198 129.02 198 123v-13c0-5.946-4.325-10.882-10-11.834V92a55.8 55.8 0 0 0-4.638-22.35C173.435 53 89.312 53.802 80.71 69.484A55.8 55.8 0 0 0 76 92v6.166c-5.675.952-10 5.888-10 11.834v13c0 6.019 4.43 11.002 10.209 11.867 1.743 20.248 14.26 37.416 31.791 45.744V199h-4c-39.765 0-72 32.235-72 72v9h200v-9c0-39.765-32.235-72-72-72h-4zM0 0h264v280H0z"></path></defs><mask id="Hat-mask1" fill="#fff"><use href="#Hat-path2"></use></mask><g id="Top/Accesories/Hat" mask="url('#Hat-mask1')"><g transform="translate(-1)"><g id="Hat" transform="translate(1)"><mask id="Hat-mask2" fill="#fff"><use href="#Hat-path1"></use></mask><path fill="var(--avataaar-top-color)" d="M123.182 2h18.636c18.791 0 35.049 13.08 39.072 31.436L190 75H75l9.11-41.564C88.133 15.08 104.39 2 123.182 2" mask="url('#Hat-mask2')" style="fill-opacity:.6;"></path><ellipse id="Hipster" cx="132" cy="87.5" fill="var(--avataaar-top-color)" mask="url('#Hat-mask2')" rx="122" ry="57.5"></ellipse><ellipse id="Hipster" cx="132" cy="87.5" fill="#2e2e2e" mask="url('#Hat-mask2')" rx="122" ry="57.5" style="fill-opacity:.1;"></ellipse><ellipse id="Very" cx="132" cy="82" fill="var(--avataaar-top-color)" mask="url('#Hat-mask2')" rx="62" ry="25"></ellipse><ellipse id="Very" cx="132" cy="82" fill="#2e2e2e" mask="url('#Hat-mask2')" rx="62" ry="25" style="fill-opacity:.5;"></ellipse></g></g></g></g>',1),B8=[S8];function V8(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...B8])}const M8={render:V8},N8=e.createStaticVNode('<g id="Top"><defs><path id="LongHairNotTooLong-path1" d="M0 0h264v280H0z"></path><path id="LongHairNotTooLong-path2" d="M59 102.34V182a8 8 0 0 0 8 8h42v-9.389c-17.53-8.328-30.048-25.496-31.791-45.744C71.43 134.002 67 129.02 67 123v-13c0-3.49 1.49-6.633 3.87-8.826 11.539-2.619 24.1-7.536 36.472-14.679 12.131-7.004 22.502-15.237 30.479-23.743q-5.14 11.862-12.449 20.783 19.013-8.285 25.892-26.639.565 1.383 1.18 2.762c10.256 23.035 27.874 39.36 45.762 44.745.513 2.11.794 4.08.794 5.597v13c0 6.019-4.43 11.002-10.209 11.867-1.743 20.248-14.26 37.416-31.791 45.744V190h18c17.673 0 32-14.327 32-32v-54.125q0-.1-.028-.26-.216-18.391-.612-21.39C201.577 45.977 170.556 18 133 18c-36.085 0-66.137 25.828-73 60-5.523 0-10 5.596-10 12.5 0 4.55 1.695 8.643 4.853 10.773.905.61 2.47.925 4.147 1.067"></path></defs><mask id="LongHairNotTooLong-mask1" fill="#fff"><use href="#LongHairNotTooLong-path1"></use></mask><g id="Top/Long-Hair/Long-but-not-too-long" mask="url('#LongHairNotTooLong-mask1')"><g transform="translate(-1)"><use id="Behind" fill="var(--avataaar-hair-color)" class="CustomColor" href="#LongHairNotTooLong-path2"></use><g id="Top" opacity=".16" transform="translate(50 18)"><path id="Combined-Shape" fill="#FFF" d="M11.899 84.775c13.812-1.76 29.78-7.237 45.443-16.28 12.131-7.004 22.502-15.237 30.479-23.743q-5.14 11.862-12.449 20.783 19.013-8.285 25.892-26.639.565 1.383 1.18 2.762C114.382 68.471 136.296 86.194 157 88.151V74c0-40.87-33.13-74-74-74-36.085 0-66.137 25.828-72.679 60.006A8 8 0 0 0 10 60C4.477 60 0 65.596 0 72.5c0 6.482 3.947 11.811 9 12.438v.155q.474-.044.953-.093a8.2 8.2 0 0 0 1.946-.225"></path></g></g></g></g>',1),A8=[N8];function T8(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...A8])}const D8={render:T8},L8=e.createStaticVNode('<g id="Top"><defs><path id="ShortHairShortFlat-path2" d="M0 0h264v280H0z"></path><path id="ShortHairShortFlat-path1" d="M180.15 39.92c-2.76-2.82-5.964-5.213-9.08-7.613-.688-.53-1.387-1.046-2.06-1.595-.152-.125-1.718-1.246-1.905-1.659-.451-.993-.19-.22-.128-1.404.079-1.498 3.134-5.73.854-6.7-1.003-.427-2.791.709-3.753 1.084a60 60 0 0 1-5.731 1.9c.932-1.857 2.708-5.574-.631-4.579-2.602.775-5.026 2.768-7.64 3.705.865-1.417 4.324-5.811 1.198-6.057-.972-.076-3.803 1.748-4.85 2.138-3.137 1.165-6.34 1.92-9.634 2.513-11.198 2.018-24.293 1.442-34.653 6.54-7.988 3.93-15.874 10.029-20.489 17.795-4.447 7.485-6.11 15.676-7.041 24.253-.683 6.295-.739 12.802-.42 19.119.105 2.07.338 11.61 3.345 8.721 1.498-1.44 1.487-7.253 1.864-9.22.751-3.916 1.474-7.848 2.726-11.638 2.206-6.68 4.809-13.793 10.305-18.393 3.527-2.952 6.004-6.941 9.379-9.919 1.516-1.337.36-1.198 2.797-1.022 1.638.117 3.282.162 4.923.205 3.796.099 7.598.074 11.395.087 7.647.028 15.258.136 22.898-.265 3.395-.177 6.799-.274 10.185-.588 1.891-.175 5.247-1.387 6.804-.461 1.425.847 2.905 3.615 3.928 4.748 2.418 2.679 5.3 4.724 8.126 6.92 5.895 4.58 8.87 10.332 10.66 17.488 1.784 7.13 1.284 13.745 3.491 20.762.389 1.233 1.416 3.36 2.682 1.454.235-.354.175-2.3.175-3.42 0-4.52 1.144-7.91 1.13-12.46-.056-13.832-.504-31.868-10.85-42.439"></path></defs><mask id="ShortHairShortFlat-mask2" fill="#fff"><use href="#ShortHairShortFlat-path2"></use></mask><g id="Top/Short-Hair/Short-Flat" mask="url('#ShortHairShortFlat-mask2')"><use fill="var(--avataaar-hair-color)" class="CustomColor" href="#ShortHairShortFlat-path1" transform="translate(-1)"></use></g></g>',1),F8=[L8];function $8(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...F8])}const P8={render:$8},_8=e.createStaticVNode('<g id="Top"><defs><path id="Hijab-path1" d="M0 0h264v280H0z"></path><path id="Hijab-path2" d="M66.042 77.075C71.68 45.205 99.513 21 133 21c37.555 0 68 30.445 68 68v30.751q1.313 14.705 2.456 20.603c1.377 7.104 5.694 4.761 5.694 14.866s-4.328 13.5-4.347 22.485c-.019 8.986 15.397 16.131 15.397 27.538s-7.074 65.233-77.622 65.233q-22.605 0-38.51-12.862Q105.091 267.349 106 280H59c.932-23.771-7.284-37.064-7.284-63.554S65.353 151.428 65 142q.03-.873.062-2.068A69 69 0 0 1 65 137V89c0-3.976.341-7.872.996-11.661L66 77zM132.5 53C102.4 53 78 77.4 78 107.5v23c0 30.1 24.4 54.5 54.5 54.5h1c30.1 0 54.5-24.4 54.5-54.5v-23c0-30.1-24.4-54.5-54.5-54.5z"></path></defs><mask id="Hijab-mask1" fill="#fff"><use href="#Hijab-path1"></use></mask><g id="Top/Accesories/Hijab" mask="url('#Hijab-mask1')"><g transform="translate(-1)"><mask id="Hijab-mask2" fill="#fff"><use href="#Hijab-path2"></use></mask><use fill="var(--avataaar-top-color)" class="CustomColor" href="#Hijab-path2"></use><path id="Band" fill="#FFF" stroke="none" d="M72.074 104.96A61.4 61.4 0 0 1 71 93.5C71 59.534 98.758 32 133 32s62 27.534 62 61.5c0 3.916-.369 7.747-1.074 11.46C192.34 72.683 165.67 47 133 47s-59.341 25.683-60.926 57.96" mask="url('#Hijab-mask2')" opacity=".5"></path><path id="Shadows" fill="#000" stroke="none" d="M187.93 104.695A55 55 0 0 1 189 115.5v23c0 30.1-24.4 54.5-54.5 54.5h-3c-30.1 0-54.5-24.4-54.5-54.5v-23c0-3.7.369-7.312 1.07-10.805Q78 106.089 78 107.5v23c0 30.1 24.4 54.5 54.5 54.5h1c30.1 0 54.5-24.4 54.5-54.5v-23q0-1.41-.07-2.805m-73.763 102.3c6.484 4.986 21.496 6.713 38.238 3.761 16.74-2.951 30.257-9.71 34.645-16.612q.102.379.171.767c1.71 9.695-13.236 20.434-33.38 23.987-20.146 3.552-37.863-1.428-39.573-11.123a9 9 0 0 1-.101-.78m11.868 28.926c8.192 5.654 24.387 5.923 41.069-.149s28.915-16.687 31.556-26.284q.215.48.396.98c4.527 12.436-8.077 28.441-28.151 35.748s-40.017 3.147-44.544-9.29q-.181-.498-.326-1.005" mask="url('#Hijab-mask2')" opacity=".16"></path></g></g></g>',1),O8=[_8];function R8(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...O8])}const H8={render:R8},z8=e.createStaticVNode('<g id="Top"><defs><path id="LongHairShavedSides-path2" d="M0 0h264v280H0z"></path><path id="LongHairShavedSides-path3" d="M156 180.611c17.53-8.328 30.048-25.496 31.791-45.744C193.57 134.002 198 129.02 198 123v-13c0-5.946-4.325-10.882-10-11.834V92c0-30.928-25.072-56-56-56S76 61.072 76 92v6.166c-5.675.952-10 5.888-10 11.834v13c0 6.019 4.43 11.002 10.209 11.867 1.743 20.248 14.26 37.416 31.791 45.744V199h-4c-39.765 0-72 32.235-72 72v9h200v-9c0-39.765-32.235-72-72-72h-4zM0 0h264v280H0z"></path><path id="LongHairShavedSides-path1" d="M65.18 77.737c2.183-1.632 15.227-2.258 17.578-3.648.734-.434 1.303-.873 1.742-1.309.439.436 1.009.875 1.742 1.31 2.351 1.389 15.395 2.015 17.578 3.647 2.21 1.654 3.824 5.448 3.647 8.414-.212 3.56-4.106 12.052-13.795 13.03-2.114-2.353-5.435-3.87-9.172-3.87s-7.058 1.517-9.172 3.87c-9.69-.978-13.583-9.47-13.795-13.03-.176-2.966 1.437-6.76 3.647-8.414m.665 17.164.017.007zm79.018-38.916c-.389-5.955-1.585-11.833-2.629-17.699-.281-1.579-1.81-12.286-2.5-12.286-.232 9.11-1.032 18.08-2.064 27.14-.309 2.708-.632 5.416-.845 8.134-.171 2.196.135 4.848-.397 6.972-.679 2.706-4.08 5.232-6.725 6.165-6.6 2.326-12.105-7.303-17.742-10.12-7.318-3.656-19.897-4.527-27.38.239-7.645-4.766-20.224-3.895-27.542-.239-5.637 2.817-11.142 12.446-17.742 10.12-2.645-.933-6.047-3.459-6.725-6.165-.532-2.124-.226-4.776-.397-6.972-.213-2.718-.536-5.426-.845-8.135C30.298 44.08 29.497 35.11 29.265 26c-.689 0-2.218 10.707-2.5 12.286-1.043 5.866-2.24 11.744-2.627 17.7-.4 6.119.077 12.181 1.332 18.177a165 165 0 0 0 2.049 8.541c.834 3.143-.32 9.262.053 12.488.707 6.104 3.582 18.008 6.811 23.259 1.561 2.538 3.39 4.123 5.433 6.168 1.967 1.97 2.788 5.021 4.91 7.118 3.956 3.908 9.72 6.234 15.64 6.806C65.677 143.05 74.506 146 84.5 146s18.823-2.95 24.135-7.457c5.919-.572 11.683-2.898 15.64-6.806 2.121-2.097 2.942-5.149 4.909-7.118 2.042-2.045 3.872-3.63 5.433-6.168 3.229-5.251 6.104-17.155 6.81-23.259.374-3.226-.78-9.345.054-12.488.75-2.828 1.45-5.676 2.05-8.54 1.254-5.997 1.73-12.06 1.332-18.179"></path><rect id="LongHairShavedSides-path4" width="112" height="150" x="0" y="0" rx="56"></rect></defs><mask id="LongHairShavedSides-mask2" fill="#fff"><use href="#LongHairShavedSides-path2"></use></mask><g id="Top/Long-Hair/Shaved-Sides" mask="url('#LongHairShavedSides-mask2')"><g transform="translate(-1)"><g id="Behind" fill="none" transform="translate(1)"><mask id="LongHairShavedSides-mask3" fill="#fff"><use href="#LongHairShavedSides-path3"></use></mask><path fill="var(--avataaar-hair-color)" d="M116.18 40H146c25.405 0 46 20.595 46 46v68.109c0 26.541 18.759 50.24 30.61 71.943s-7.355 42.19-26.84 50.717A38.5 38.5 0 0 1 180.332 280h-45.068c-56.352 0-65.046-63.69-67.566-133.496l2.52-62.36C71.213 59.48 91.497 40 116.179 40Z" class="CustomColor" mask="url('#LongHairShavedSides-mask3')"></path></g><g id="Top" fill="none" transform="translate(77 36)"><mask id="LongHairShavedSides-mask1" fill="#fff"><use href="#LongHairShavedSides-path4"></use></mask><path id="Shadow" fill="#000" d="M98.801 19.94C107.027 29.484 112 41.91 112 55.5v10-4c0-15.74-6.672-29.92-17.342-39.87q-46.107 16.57-77.717.378C6.505 31.937 0 45.958 0 61.5v4-10c0-13.607 4.987-26.05 13.233-35.6-3.834-3.04-4.974-11.713 6.234-15.023 11.845-3.499 9.84-18.079 27.99-20.803C65.61-18.65 63.972-11.375 81.03-12.35c17.057-.974 22.607-16.763 25.82-12.724 12.74 16.01 9.572 34.414-8.048 45.014Z" mask="url('#LongHairShavedSides-mask1')" opacity=".16"></path></g><path fill="#E0C863" d="M90.878 52.361q33.225 19.299 83.366 0c14.53-7.772 25.087-23.319 8.707-43.398-2.169-2.658-10.707 6.713-27.6 7.687s-13.271-3.3-31.248-.576-15.991 17.304-27.722 20.803c-11.73 3.498-9.803 12.987-5.503 15.484" class="CustomColor"></path></g></g></g>',1),j8=[z8];function G8(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...j8])}const I8={render:G8},q8=e.createStaticVNode('<g id="Top"><defs><path id="ShortHairShortRound-path2" d="M0 0h264v280H0z"></path><path id="ShortHairShortRound-path1" d="M167.309 35.006c-20.188-11.7-40.18-9.784-55.272-5.976s-24.02 14.621-31.68 30.618c-3.761 7.855-5.991 17.143-6.334 25.833-.135 3.412.325 6.934 1.245 10.22.337 1.205 2.155 5.386 2.654 2.008.167-1.125-.442-2.676-.5-3.871-.078-1.569.005-3.157.112-4.723.2-2.928.722-5.8 1.65-8.59 1.328-3.988 3.017-8.312 5.603-11.677 6.401-8.327 17.482-8.802 26.28-13.384-.764 1.405-3.707 3.68-2.688 5.263.705 1.094 3.37.762 4.643.727 3.349-.092 6.713-.674 10.02-1.147 5.214-.745 10.099-2.255 15.005-4.089 4.016-1.502 8.603-2.892 11.622-6.078 4.87 5.048 11.14 9.795 17.401 13.003 5.618 2.88 14.679 4.318 18.113 10.158 4.065 6.914 2.195 15.406 3.436 22.9.472 2.85 1.545 2.786 2.132.237.997-4.33 1.468-8.828 1.151-13.279-.718-10.048-4.405-36.453-24.593-48.153"></path></defs><mask id="ShortHairShortRound-mask2" fill="#fff"><use href="#ShortHairShortRound-path2"></use></mask><g id="Top/Short-Hair/Short-Round" mask="url('#ShortHairShortRound-mask2')"><use fill="var(--avataaar-hair-color)" class="CustomColor" href="#ShortHairShortRound-path1" transform="translate(-1)"></use></g></g>',1),W8=[q8];function U8(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...W8])}const Z8={render:U8},Y8=e.createStaticVNode('<g id="Top"><defs><path id="LongHairBigHair-path1" d="M0 0h264v280H0z"></path><path id="LongHairBigHair-path2" d="M222.385 182.806c-5.374 5.712-10.737 9.322-10.554 15.194.317 11.889 43.608 47.051 5.169 69H16.005c-38.439-21.949 4.852-57.111 5.17-69 .182-5.872-5.18-9.482-10.555-15.194C5.247 177.094-.137 169.28.003 155c.941-29.028 31.369-26.412 31.2-46 .169-19-11.39-26.84 0-63C42.84 9.54 72.917.768 116.003.016V0l.5.008.5-.008v.016c43.086.752 73.163 9.523 84.8 45.984 11.388 36.16-.17 44 0 63-.17 19.588 30.258 16.972 31.2 46 .14 14.28-5.245 22.094-10.618 27.806m-39.501-87.481c-21.52-11.588-39.994-28.18-52.038-47.023C112.764 73.924 76.53 78.535 51.224 94.68A12 12 0 0 0 51 97v13c0 6.019 4.43 11.002 10.209 11.867 1.743 20.248 14.26 37.416 31.791 45.744V186h-4c-39.765 0-72 32.235-72 72v9h200v-9c0-39.765-32.235-72-72-72h-4v-18.389c17.53-8.328 30.048-25.496 31.791-45.744C178.57 121.002 183 116.02 183 110V97q-.001-.853-.116-1.675"></path><path id="LongHairBigHair-path3" d="M222.385 182.806c-5.374 5.712-10.737 9.322-10.554 15.194.317 11.889 43.608 47.051 5.169 69H16.005c-38.439-21.949 4.852-57.111 5.17-69 .182-5.872-5.18-9.482-10.555-15.194C5.247 177.094-.137 169.28.003 155c.941-29.028 31.369-26.412 31.2-46 .169-19-11.39-26.84 0-63C42.84 9.54 72.917.768 116.003.016V0l.5.008.5-.008v.016c43.086.752 73.163 9.523 84.8 45.984 11.388 36.16-.17 44 0 63-.17 19.588 30.258 16.972 31.2 46 .14 14.28-5.245 22.094-10.618 27.806M93 186h-4c-39.765 0-72 32.235-72 72v9h200v-9c0-39.765-32.235-72-72-72h-4v-46H93z"></path></defs><mask id="LongHairBigHair-mask2" fill="#fff"><use href="#LongHairBigHair-path1"></use></mask><g id="Top/Long-Hair/Big-Hair" mask="url('#LongHairBigHair-mask2')"><g transform="translate(-1)"><use id="Hair" fill="var(--avataaar-hair-color)" class="CustomColor" href="#LongHairBigHair-path2" transform="translate(16 13)"></use><g id="Shadow" fill="none" transform="translate(16 13)"><mask id="LongHairBigHair-mask1" fill="#fff"><use href="#LongHairBigHair-path3"></use></mask><path id="Shadow-Mask" fill="#000" d="M30.099 115.057c-2.374 3.026-5.57 7.471-5.737 7.137 1.873-2.383 3.013-5.182 2.979-8.758.177-18.101-11.904-25.569 0-60.017.669-1.91 1.766-3.715 3.245-5.414-10.343 34.454.783 42.35.617 60.995.02 2.295-.38 4.285-1.104 6.057m172.32-67.052c1.48 1.7 2.577 3.504 3.245 5.414 10.158 29.394 2.852 39.144.6 52.617-.3.805-.069 1.754-.384 2.567-30.673-10.458-58.29-30.043-74.385-52.991-22.784 29.424-73.14 29.761-97.821 55.324.387-.544.754-1.051 1.084-1.49 22.536-29.919 73.489-29.122 96.088-61.144 15.398 24.088 41.818 44.648 71.163 55.625.301-.854.08-1.85.367-2.694 2.108-13.833 8.84-23.926.043-53.228" mask="url('#LongHairBigHair-mask1')" opacity=".16"></path></g><path id="Light" fill="#FFF" d="M50.758 122.446c22.536-29.919 73.489-29.122 96.088-61.144 15.398 24.088 41.818 44.648 71.163 55.625.301-.854.08-1.85.367-2.694 2.155-14.144 9.144-24.378-.573-55.233-11.637-36.46-41.714-45.232-84.8-45.984l-1-.016c-43.086.768-73.163 9.54-84.8 46-11.39 36.16.169 44 0 63 .032 3.753-1.059 6.691-2.85 9.193.183.402 4.153-5.756 6.405-8.747" opacity=".1"></path></g></g></g>',1),X8=[Y8];function K8(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...X8])}const Q8={render:K8},J8=e.createStaticVNode('<g id="Top"><defs><path id="LongHairStraight-path1" d="M0 0h264v280H0z"></path><path id="LongHairStraight-path2" d="M133.506 81.335A12 12 0 0 1 140 92v13c0 6.019-4.43 11.002-10.209 11.867-1.743 20.248-14.26 37.416-31.791 45.744V181h4c17.49 0 33.525 6.237 46 16.608V74c0-20.435-8.283-38.935-21.674-52.326S94.435 0 74 0C33.13 0 0 33.13 0 74v183.716c13.57-1.94 24-13.61 24-27.716v-45.577A72 72 0 0 1 46 181h4v-18.389a56.23 56.23 0 0 1-26-25.365v-61.98c9.147-2.975 18.778-7.249 28.342-12.77 15.403-8.894 28.09-19.555 36.724-30.099a87 87 0 0 0 7.044 15.488c8.768 15.186 21.114 26.349 33.89 32.032v.249q.6.1 1.18.26 1.162.484 2.326.91Z"></path></defs><mask id="LongHairStraight-mask1" fill="#fff"><use href="#LongHairStraight-path1"></use></mask><g id="Top/Long-Hair/Straight" mask="url('#LongHairStraight-mask1')"><g transform="translate(-1)"><use id="Hair" fill="var(--avataaar-hair-color)" class="CustomColor" href="#LongHairStraight-path2" transform="translate(59 18)"></use><path id="Shadow" fill="#000" d="M192.506 99.335c4.869 1.773 9.757 2.737 14.494 2.813V92c0-20.435-8.283-38.935-21.674-52.326C198.717 53.065 207 71.565 207 92v123.608C194.525 205.237 178.49 199 161 199h-4v-18.389c17.53-8.328 30.048-25.496 31.791-45.744C194.57 134.002 199 129.02 199 123v-13a12 12 0 0 0-6.494-10.665m-2.326-.91a12 12 0 0 0-1.18-.26v-.248q.59.262 1.18.509ZM83 155.246a56.23 56.23 0 0 0 26 25.366V199h-4c-7.673 0-15.065 1.2-22 3.423z" opacity=".24"></path></g></g></g>',1),eu=[J8];function tu(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...eu])}const nu={render:tu},au=e.createStaticVNode('<g id="Top"><defs><path id="ShortHairShortWaved-path2" d="M0 0h264v280H0z"></path><path id="ShortHairShortWaved-path1" d="M183.68 38.949c5.406-4.95 6.707-14.987 3.638-21.5-3.769-7.995-11.417-8.997-18.746-5.48-6.908 3.315-13.057 4.419-20.622 2.813-7.258-1.541-14.144-4.26-21.647-4.706-12.325-.733-24.3 3.839-32.7 13.053-1.603 1.758-2.894 3.768-4.115 5.805-.976 1.63-2.077 3.38-2.493 5.258-.198.894.17 3.098-.275 3.83-.48.79-2.296 1.515-3.069 2.102-1.567 1.189-2.924 2.53-4.18 4.047-2.666 3.222-4.133 6.587-5.368 10.572-4.102 13.245-4.45 28.998.854 42.004.707 1.734 2.898 5.352 4.186 1.638.255-.734-.334-3.194-.333-3.935.005-2.72 1.506-20.729 8.047-30.817 2.13-3.284 11.973-15.58 13.984-15.68 1.065 1.693 11.88 12.51 39.942 11.242 12.662-.572 22.4-6.26 24.738-8.727 1.028 5.533 12.992 13.816 14.815 17.224 5.267 9.846 6.435 30.304 8.445 30.265s3.453-5.237 3.867-6.23c3.072-7.375 3.595-16.632 3.267-24.559-.427-10.202-4.638-21.226-12.235-28.22Z"></path></defs><mask id="ShortHairShortWaved-mask2" fill="#fff"><use href="#ShortHairShortWaved-path2"></use></mask><g id="Top/Short-Hair/Short-Waved" mask="url('#ShortHairShortWaved-mask2')"><use fill="var(--avataaar-hair-color)" class="CustomColor" href="#ShortHairShortWaved-path1" transform="translate(-1)"></use></g></g>',1),ou=[au];function ru(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...ou])}const iu={render:ru},su=e.createStaticVNode('<g id="Top"><defs><path id="LongHairBob-path1" d="M0 0h264v280H0z"></path><path id="LongHairBob-path2" d="M38 79.36V111c0 22.34 13.08 41.623 32 50.611v13.135c-19.637 2.688-35.359 7.418-46.615 6.254C9.162 179.53 1.496 150.796 1 126 .383 95.164 29.319 30.795 40 18 47.923 8.509 69.695.55 94 1s46.862 5.812 55 16c12.324 15.428 37.869 74.079 38 109 .094 24.8-9.537 49.66-23 51-11.08 1.103-26.524-1.489-46-3.003v-12.386c18.92-8.988 32-28.272 32-50.611V82.988q-14.282-7.286-25.846-17.647 4.812 7.944 10.46 13.532-40.526-11.37-64.473-38.528Q58.169 65.042 38 79.36"></path></defs><mask id="LongHairBob-mask1" fill="#fff"><use href="#LongHairBob-path1"></use></mask><g id="Top/Long-Hair/Bob" mask="url('#LongHairBob-mask1')"><g transform="translate(-1)"><use id="Hair" fill="var(--avataaar-hair-color)" class="CustomColor" href="#LongHairBob-path2" transform="translate(39 19)"></use></g></g></g>',1),lu=[su];function cu(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...lu])}const du={render:cu},uu=e.createStaticVNode('<g id="Top"><defs><path id="LongHairStraight2-path1" d="M0 0h264v280H0z"></path><path id="LongHairStraight2-path2" d="M21 157.54V69.047c0-3.532.398-6.971 1.152-10.275C25.205 38.731 36.775 22.811 50 13c19.905-14.76 53.442-19.018 65.047-1.478C123.698 7.681 136.52 11.182 146 20c9.565 9.415 17.2 30.197 12.657 47.204q.158 1.898.158 3.837v21.851A12.01 12.01 0 0 0 149 83.166V83c-6.036-21.536-23.77-31.42-34.57-41.223C97.535 60.673 44.823 60.74 27 98v10c0 6.019 4.43 11.002 10.209 11.867 1.743 20.248 14.26 37.416 31.791 45.744V166c2.93 43.855-6.642 98.797-69 82 13.606-7.962 20.808-58.944 21-90.46m96 8.071c17.53-8.328 30.048-25.496 31.791-45.744a12.01 12.01 0 0 0 10.024-9.76v1.363a100 100 0 0 0 10.963 45.524l26.949 52.707c6.963 13.619 4.919 29.473-3.936 40.768C189.966 213.289 158.903 184 121 184h-4z"></path><path id="LongHairStraight2-path3" d="M65.18 77.737c2.183-1.632 15.227-2.258 17.578-3.648.734-.434 1.303-.873 1.742-1.309.439.436 1.009.875 1.742 1.31 2.351 1.389 15.395 2.015 17.578 3.647 2.21 1.654 3.824 5.448 3.647 8.414-.212 3.56-4.106 12.052-13.795 13.03-2.114-2.353-5.435-3.87-9.172-3.87s-7.058 1.517-9.172 3.87c-9.69-.978-13.583-9.47-13.795-13.03-.176-2.966 1.437-6.76 3.647-8.414m.665 17.164.017.007zm79.018-38.916c-.389-5.955-1.585-11.833-2.629-17.699-.281-1.579-1.81-12.286-2.5-12.286-.232 9.11-1.032 18.08-2.064 27.14-.309 2.708-.632 5.416-.845 8.134-.171 2.196.135 4.848-.397 6.972-.679 2.706-4.08 5.232-6.725 6.165-6.6 2.326-12.105-7.303-17.742-10.12-7.318-3.656-19.897-4.527-27.38.239-7.645-4.766-20.224-3.895-27.542-.239-5.637 2.817-11.142 12.446-17.742 10.12-2.645-.933-6.047-3.459-6.725-6.165-.532-2.124-.226-4.776-.397-6.972-.213-2.718-.536-5.426-.845-8.135C30.298 44.08 29.497 35.11 29.265 26c-.689 0-2.218 10.707-2.5 12.286-1.043 5.866-2.24 11.744-2.627 17.7-.4 6.119.077 12.181 1.332 18.177a165 165 0 0 0 2.049 8.541c.834 3.143-.32 9.262.053 12.488.707 6.104 3.582 18.008 6.811 23.259 1.561 2.538 3.39 4.123 5.433 6.168 1.967 1.97 2.788 5.021 4.91 7.118 3.956 3.908 9.72 6.234 15.64 6.806C65.677 143.05 74.506 146 84.5 146s18.823-2.95 24.135-7.457c5.919-.572 11.683-2.898 15.64-6.806 2.121-2.097 2.942-5.149 4.909-7.118 2.042-2.045 3.872-3.63 5.433-6.168 3.229-5.251 6.104-17.155 6.81-23.259.374-3.226-.78-9.345.054-12.488.75-2.828 1.45-5.676 2.05-8.54 1.254-5.997 1.73-12.06 1.332-18.179"></path></defs><mask id="LongHairStraight2-mask1" fill="#fff"><use href="#LongHairStraight2-path1"></use></mask><g id="Top/Long-Hair/Straight" mask="url('#LongHairStraight2-mask1')"><g transform="translate(-1)"><use id="Hair" fill="var(--avataaar-hair-color)" class="CustomColor" href="#LongHairStraight2-path2" transform="translate(40 15)"></use><path id="Shadow" fill="#000" d="M67 113c17.823-32.335 70.535-32.393 87.43-48.792 10.778 8.49 28.462 15.059 34.533 33.66-6.071-21.444-23.755-31.308-34.533-41.09C137.535 75.672 84.823 75.74 67 113" opacity=".16"></path></g></g></g>',1),fu=[uu];function mu(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...fu])}const hu={render:mu},pu=e.createStaticVNode('<g id="Top"><defs><path id="ShortHairSides-path1" d="M0 0h264v280H0z"></path><path id="ShortHairSides-path2" d="M65.18 77.737c2.183-1.632 15.227-2.258 17.578-3.648.734-.434 1.303-.873 1.742-1.309.439.436 1.009.875 1.742 1.31 2.351 1.389 15.395 2.015 17.578 3.647 2.21 1.654 3.824 5.448 3.647 8.414-.212 3.56-4.106 12.052-13.795 13.03-2.114-2.353-5.435-3.87-9.172-3.87s-7.058 1.517-9.172 3.87c-9.69-.978-13.583-9.47-13.795-13.03-.176-2.966 1.437-6.76 3.647-8.414m.665 17.164.017.007zm79.018-38.916c-.389-5.955-1.585-11.833-2.629-17.699-.281-1.579-1.81-12.286-2.5-12.286-.232 9.11-1.032 18.08-2.064 27.14-.309 2.708-.632 5.416-.845 8.134-.171 2.196.135 4.848-.397 6.972-.679 2.706-4.08 5.232-6.725 6.165-6.6 2.326-12.105-7.303-17.742-10.12-7.318-3.656-19.897-4.527-27.38.239-7.645-4.766-20.224-3.895-27.542-.239-5.637 2.817-11.142 12.446-17.742 10.12-2.645-.933-6.047-3.459-6.725-6.165-.532-2.124-.226-4.776-.397-6.972-.213-2.718-.536-5.426-.845-8.135C30.298 44.08 29.497 35.11 29.265 26c-.689 0-2.218 10.707-2.5 12.286-1.043 5.866-2.24 11.744-2.627 17.7-.4 6.119.077 12.181 1.332 18.177a165 165 0 0 0 2.049 8.541c.834 3.143-.32 9.262.053 12.488.707 6.104 3.582 18.008 6.811 23.259 1.561 2.538 3.39 4.123 5.433 6.168 1.967 1.97 2.788 5.021 4.91 7.118 3.956 3.908 9.72 6.234 15.64 6.806C65.677 143.05 74.506 146 84.5 146s18.823-2.95 24.135-7.457c5.919-.572 11.683-2.898 15.64-6.806 2.121-2.097 2.942-5.149 4.909-7.118 2.042-2.045 3.872-3.63 5.433-6.168 3.229-5.251 6.104-17.155 6.81-23.259.374-3.226-.78-9.345.054-12.488.75-2.828 1.45-5.676 2.05-8.54 1.254-5.997 1.73-12.06 1.332-18.179"></path><path id="ShortHairSides-path3" d="M6 28c-5.076.071-6-1.006-6-5C0 17.344 4.04 6.778 8 2c1.176-2.17 3.619-3.432 3 1-2.66 8.477.417 24.914-5 25m114 0c-5.417-.086-2.34-16.523-5-25-.619-4.432 1.824-3.17 3-1 3.96 4.778 8 15.344 8 21 0 3.994-.924 5.071-6 5"></path></defs><mask id="ShortHairSides-mask2" fill="#fff"><use href="#ShortHairSides-path1"></use></mask><g id="Top/Short-Hair/Sides" mask="url('#ShortHairSides-mask2')"><g transform="translate(-1)"><use id="Hair" fill="var(--avataaar-hair-color)" class="CustomColor" href="#ShortHairSides-path3" transform="translate(70 74)"></use></g></g></g>',1),gu=[pu];function yu(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...gu])}const ku={render:yu},xu=e.createStaticVNode('<g id="Top"><defs><path id="LongHairBun-path2" d="M0 0h264v280H0z"></path><path id="LongHairBun-path1" d="M114.94 28.337q-1.48.334-2.903.693c-15.092 3.808-24.02 14.621-31.68 30.618-3.761 7.855-5.991 17.143-6.334 25.833-.135 3.412.325 6.934 1.245 10.22.337 1.205 2.155 5.386 2.654 2.008.167-1.125-.442-2.676-.5-3.871-.078-1.569.005-3.157.112-4.723.2-2.928.722-5.8 1.65-8.59 1.328-3.988 3.017-8.312 5.603-11.677C91.188 60.521 95.765 43.206 133 41.671s48.749 25.79 52.183 31.63c4.065 6.914 2.195 15.406 3.436 22.9.472 2.85 1.545 2.786 2.132.237.997-4.33 1.468-8.828 1.151-13.279-.718-10.048-4.405-36.453-24.593-48.153-5.443-3.154-10.87-5.319-16.192-6.723C154.177 25.31 156 21.568 156 17.5 156 7.835 145.703 0 133 0s-23 7.835-23 17.5c0 4.092 1.846 7.857 4.94 10.837"></path></defs><mask id="LongHairBun-mask2" fill="#fff"><use href="#LongHairBun-path2"></use></mask><g id="Top/Long-Hair/Bun" mask="url('#LongHairBun-mask2')"><use fill="var(--avataaar-hair-color)" class="CustomColor" href="#LongHairBun-path1" transform="translate(-1)"></use></g></g>',1),bu=[xu];function wu(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...bu])}const Eu={render:wu},vu=e.createStaticVNode('<g id="Top"><defs><path id="LongHairStraightStrand-path1" d="M0 0h264v280H0z"></path><path id="LongHairStraightStrand-path2" d="M8.461 88.694C8.161 89.744 8 90.854 8 92v13c0 6.019 4.43 11.002 10.209 11.867 1.743 20.248 14.26 37.416 31.791 45.744V181h-4c-15.619 0-30.076 4.973-41.875 13.423A73.9 73.9 0 0 1 0 170V74C0 33.13 33.13 0 74 0s74 33.13 74 74v96a73.9 73.9 0 0 1-4.125 24.423C132.076 185.973 117.619 181 102 181h-4v-18.389c17.53-8.328 30.048-25.496 31.791-45.744C135.57 116.002 140 111.02 140 105V92c0-1.69-.349-3.297-.979-4.755-12.956-2.188-27.542-7.476-41.872-15.75-12.132-7.004-22.503-15.237-30.48-23.743q5.14 11.862 12.45 20.783-19.013-8.285-25.892-26.639a100 100 0 0 1-1.18 2.762c-9.84 22.1-26.456 38.024-43.586 44.036"></path><path id="LongHairStraightStrand-path3" d="M65.18 77.737c2.183-1.632 15.227-2.258 17.578-3.648.734-.434 1.303-.873 1.742-1.309.439.436 1.009.875 1.742 1.31 2.351 1.389 15.395 2.015 17.578 3.647 2.21 1.654 3.824 5.448 3.647 8.414-.212 3.56-4.106 12.052-13.795 13.03-2.114-2.353-5.435-3.87-9.172-3.87s-7.058 1.517-9.172 3.87c-9.69-.978-13.583-9.47-13.795-13.03-.176-2.966 1.437-6.76 3.647-8.414m.665 17.164.017.007zm79.018-38.916c-.389-5.955-1.585-11.833-2.629-17.699-.281-1.579-1.81-12.286-2.5-12.286-.232 9.11-1.032 18.08-2.064 27.14-.309 2.708-.632 5.416-.845 8.134-.171 2.196.135 4.848-.397 6.972-.679 2.706-4.08 5.232-6.725 6.165-6.6 2.326-12.105-7.303-17.742-10.12-7.318-3.656-19.897-4.527-27.38.239-7.645-4.766-20.224-3.895-27.542-.239-5.637 2.817-11.142 12.446-17.742 10.12-2.645-.933-6.047-3.459-6.725-6.165-.532-2.124-.226-4.776-.397-6.972-.213-2.718-.536-5.426-.845-8.135C30.298 44.08 29.497 35.11 29.265 26c-.689 0-2.218 10.707-2.5 12.286-1.043 5.866-2.24 11.744-2.627 17.7-.4 6.119.077 12.181 1.332 18.177a165 165 0 0 0 2.049 8.541c.834 3.143-.32 9.262.053 12.488.707 6.104 3.582 18.008 6.811 23.259 1.561 2.538 3.39 4.123 5.433 6.168 1.967 1.97 2.788 5.021 4.91 7.118 3.956 3.908 9.72 6.234 15.64 6.806C65.677 143.05 74.506 146 84.5 146s18.823-2.95 24.135-7.457c5.919-.572 11.683-2.898 15.64-6.806 2.121-2.097 2.942-5.149 4.909-7.118 2.042-2.045 3.872-3.63 5.433-6.168 3.229-5.251 6.104-17.155 6.81-23.259.374-3.226-.78-9.345.054-12.488.75-2.828 1.45-5.676 2.05-8.54 1.254-5.997 1.73-12.06 1.332-18.179"></path></defs><mask id="LongHairStraightStrand-mask1" fill="#fff"><use href="#LongHairStraightStrand-path1"></use></mask><g id="Top/Long-Hair/Straight-+-Strand" mask="url('#LongHairStraightStrand-mask1')"><g transform="translate(-1)"><use id="Hair" fill="var(--avataaar-hair-color)" class="CustomColor" href="#LongHairStraightStrand-path2" transform="translate(59 18)"></use><path id="Shadow" fill="#000" d="M59 102.419v6.419c19.945-3.088 40.59-20.448 52.046-46.18q.615-1.38 1.18-2.762 6.008 16.029 21.27 24.378a78 78 0 0 0 4.622 6.261q-19.012-8.285-25.891-26.639a101 101 0 0 1-1.18 2.762C99.59 92.39 78.944 109.75 59 112.838zm148-1.279v9.14c-14.953-.867-33.099-6.535-50.851-16.785-10.273-5.93-19.283-12.743-26.646-19.855a99 99 0 0 1-3.833-7.888c7.976 8.506 18.347 16.74 30.479 23.743 17.752 10.25 35.898 15.918 50.851 16.786z" opacity=".16"></path></g></g></g>',1),Cu=[vu];function Su(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...Cu])}const Bu={render:Su},Vu=e.createStaticVNode('<g id="Top"><defs><path id="ShortHairTheCaesar-path1" d="M0 0h264v280H0z"></path><path id="ShortHairTheCaesar-path2" d="M1 64c.347 1.488 1.673 1.223 2 0-.463-1.554 3.296-28.752 13-36 3.618-2.517 23.008-4.768 42.313-4.754C77.409 23.259 96.42 25.51 100 28c9.704 7.248 13.463 34.446 13 36 .327 1.223 1.653 1.488 2 0 .72-10.298 0-63.726-57-63S.28 53.702 1 64"></path></defs><mask id="ShortHairTheCaesar-mask1" fill="#fff"><use href="#ShortHairTheCaesar-path1"></use></mask><g id="Top/Short-Hair/The-Caesar" mask="url('#ShortHairTheCaesar-mask1')"><g transform="translate(-1)"><use id="Hair" fill="var(--avataaar-hair-color)" class="CustomColor" href="#ShortHairTheCaesar-path2" transform="translate(75 34)"></use></g></g></g>',1),Mu=[Vu];function Nu(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...Mu])}const Au={render:Nu},Tu=e.createStaticVNode('<g id="Top"><defs><path id="LongHairCurly-path1" d="M0 0h264v280H0z"></path><path id="LongHairCurly-path2" d="M48.725 89.219A12 12 0 0 0 42 100v13c0 6.019 4.43 11.002 10.209 11.867 1.743 20.248 14.26 37.416 31.791 45.744V189h-4q-2.38 0-4.721.152a72 72 0 0 1-13.689-9.103A48 48 0 0 1 48 182c-26.51 0-48-21.49-48-48 0-14.41 6.349-27.335 16.402-36.134A43.8 43.8 0 0 1 8 72c0-21.84 15.911-39.962 36.774-43.41C51.019 11.89 67.12 0 86 0a43.8 43.8 0 0 1 22 5.886A43.8 43.8 0 0 1 130 0c18.88 0 34.981 11.89 41.226 28.59C192.09 32.039 208 50.16 208 72a43.8 43.8 0 0 1-8.402 25.866C209.65 106.665 216 119.591 216 134c0 26.51-21.49 48-48 48-4.72 0-9.281-.681-13.59-1.951a72 72 0 0 1-13.689 9.103A73 73 0 0 0 136 189h-4v-18.389c17.53-8.328 30.048-25.496 31.791-45.744C169.57 124.002 174 119.02 174 113v-13a11.99 11.99 0 0 0-5.476-10.073 24 24 0 0 1-3.235-1.47q-.63-.18-1.289-.291v-.453c-8.68-5.303-17.235-16.538-22.55-30.914C131.312 58.835 119.547 60 107 60c-11.961 0-23.212-1.059-33.02-2.921C68.756 71.064 60.465 82.043 52 87.423v.743a12 12 0 0 0-3.275 1.053"></path></defs><mask id="LongHairCurly-mask1" fill="#fff"><use href="#LongHairCurly-path1"></use></mask><g id="Top/Long-Hair/Curly" mask="url('#LongHairCurly-mask1')"><g transform="translate(-1)"><path id="Shadow" fill="#000" d="M105.985 27.764C114.013 26.627 122.796 26 132 26c10.358 0 20.183.794 29 2.216C183.451 38.75 199 61.56 199 88v17.044c-11.538-.371-25.169-14.28-32.55-34.245C156.312 72.835 144.547 74 132 74c-11.961 0-23.212-1.059-33.02-2.921-7.304 19.548-20.597 33.223-31.98 33.943V88c0-26.825 16.004-49.913 38.985-60.236" opacity=".16"></path><use id="Hair" fill="var(--avataaar-hair-color)" class="CustomColor" href="#LongHairCurly-path2" transform="translate(25 10)"></use></g></g></g>',1),Du=[Tu];function Lu(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...Du])}const Fu={render:Lu};function $u(t,n){return e.openBlock(),e.createElementBlock("svg")}const Pu={render:$u},_u=e.createStaticVNode('<g id="Top"><defs><path id="ShortHairTheCaesarSidePart-path1" d="M0 0h264v280H0z"></path><path id="ShortHairTheCaesarSidePart-path2" d="M82.018 24.378c-7.032-.693-15.36-1.127-23.705-1.132C39.008 23.232 19.618 25.483 16 28 6.296 35.248 2.537 62.446 3 64c-.327 1.223-1.653 1.488-2 0C.28 53.702 1 1.726 58 1s57.72 52.702 57 63c-.347 1.488-1.673 1.223-2 0 .463-1.554-3.296-28.752-13-36-1.76-1.224-7.247-2.39-14.641-3.261L89 16z"></path></defs><mask id="ShortHairTheCaesarSidePart-mask1" fill="#fff"><use href="#ShortHairTheCaesarSidePart-path1"></use></mask><g id="Top/Short-Hair/The-Caesar-+-Side-Part" mask="url('#ShortHairTheCaesarSidePart-mask1')"><g transform="translate(-1)"><use id="Hair" fill="var(--avataaar-hair-color)" class="CustomColor" href="#ShortHairTheCaesarSidePart-path2" transform="translate(75 34)"></use></g></g></g>',1),Ou=[_u];function Ru(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...Ou])}const Hu={render:Ru},zu=e.createStaticVNode('<g id="Top"><defs><path id="LongHairCurvy-path1" d="M0 0h264v280H0z"></path><path id="LongHairCurvy-path2" d="M162.831 71.618A57 57 0 0 1 163 76v38c0 22.34-13.08 41.623-32 50.611V183h4c1.524 0 2.038.047 3.539.14-14.913 27.356-18.715 50.434-1.067 64.403 1.698 1.203 2.924 1.786 3.135 1.885 2.373 1.118 4.837 2.34 7.467 2.955 4.623 1.08 9.933-.373 14.557-.953 2.112-.266 4.217-.43 6.346-.436 2.565-.009 5.211.084 7.142 1.697 1.884 1.574 1.644 7.198-3.875 9.833 4.1 1.855 9.012-2.453 10.688-5.177 1.466-2.385 2.594-4.968 3.214-7.605.772-3.283.822-6.725.218-10.014-1.258-6.848-4.176-13.432-6.163-20.122-.732-2.466-1.686-5.165-2.102-7.69-.113-.684-.247-3.215-.141-3.744.078-.393.059-.797 1.415-1.176 3.916-1.096 8.007-2.933 10.852-5.52 3.365-3.058 5.119-7.03 6.533-10.979 2.24-6.252 3.523-12.947 4.113-19.44.122-1.349.191-2.695.215-4.047.015-.817-.085-1.747.008-2.565.153-1.34-.054-.987 1.248-1.874 4.257-2.9 7.58-7.122 9.71-11.37 3.346-6.672 3.782-13.708 1.066-20.467-2.253-5.607-5.827-11.235-11.392-14.846-2.137-1.386-4.392-2.643-6.61-3.93-1.21-.7-4.048-1.615-4.906-2.517-.6-.63.355-3.792.476-4.858.528-4.648-.08-9.157-1.165-13.696-2.394-10.008-12.033-26.149-15.903-35.662-3.325-8.172-8.136-55.3-65.031-55.026C51.69.473 41.419 50.438 33.716 59.774c-8.365 10.138-16.809 29.402-11.113 47.262-5.504 6.922-18.058 17.008-21.218 27.09-1.982 6.325-1.897 13.37.644 19.507 1.437 3.471 3.496 6.618 5.911 9.64 2.117 2.646 4.468 5.15 6.518 7.837 1.237 1.622 1.568 2.02 1.102 4.018-.92 3.94-2.819 7.725-4.466 11.475-2.552 5.81-4.697 11.22-5.014 17.413-.302 5.896 1.324 22.673 18.261 32.56a63 63 0 0 0 6.042 3.11c-1.09-3.396.146-15.524 2.343-20.032.56 1.55 1.511 3.043 2.536 4.398 1.6 2.115 5.374 7.409 10.147 7.655-1.937-2.984-4.02-4.998-4.624-8.598 3.977 1.96 9.634 3.747 14.262 3.582 3.404-.12 8.424-1.82 10.953-3.943-8.372 1.327-16.321-1.433-19.518-7.329-.667-1.23-1.174-2.52-1.468-3.86-.417-1.9-1.076-4.944-.191-6.697.215-.426.566-.86.984-1.29l-.197-.235c5.694-4.787 12.84-12.404 16.665-17.97q.106-.183.21-.367h.04l.085-.126A72.2 72.2 0 0 1 79 183h4v-18.389C64.08 155.623 51 136.339 51 114V76c0-2.463.159-4.888.467-7.267 3.942-1.263 7.898-2.455 11.932-3.528 4.456-1.186 14.399-3.114 18.29-4.01l2.736-2.98 1.063 1.955c2.158-.166 14.078-1.957 14.078-1.957l1.33-3.223c1.717 1.763 2.939 2.679 2.939 2.679 2.556-.209 13.653-.458 16.285-.426 0 0 7.34.258 9.12.328l1.668-.638.548 1.077c1.454.591 10.243 3.59 11.978 4.128l2.547-.906c1.12 2.694 3.94 2.354 6.276 4.481 2.503 2.279 7.226 4.024 10.574 5.905"></path></defs><mask id="LongHairCurvy-mask1" fill="#fff"><use href="#LongHairCurvy-path1"></use></mask><g id="Top/Long-Hair/Curvy" mask="url('#LongHairCurvy-mask1')"><g transform="translate(-1)"><path id="Top-Shadow" fill="#000" d="M100.9 42.465c-9.798 6.007-18.514 13.862-24.313 22.895-2.762 4.303-5.034 8.84-7.15 13.398a136 136 0 0 0-2.961 6.931c-.587 1.47-1.487 3.056-.64 4.599.517-.302.713-.194.388.347 2.692.734 6.434-1.335 8.767-2.099 4.763-1.56 9.53-3.033 14.408-4.331 4.456-1.186 14.399-3.114 18.29-4.01l2.736-2.98 1.063 1.955c2.158-.166 14.078-1.957 14.078-1.957l1.33-3.223c1.717 1.763 2.939 2.679 2.939 2.679 2.556-.209 13.653-.458 16.285-.426 0 0 7.34.258 9.12.328l1.668-.638.548 1.077c1.454.591 10.243 3.59 11.978 4.128l2.547-.906c1.12 2.694 3.94 2.354 6.276 4.481 3.092 2.814 9.569 4.816 12.66 7.263 1.108.876 2.143 1.792 3.183 2.726 1.156 1.037.985 1.188 1.36 2.378.113.356 1.256 2.199 1.743 2.35 1.733.536-10.154-30.486-13.417-34.453-3.368-4.094-25.211-31.654-54.174-30.752" opacity=".16"></path><g id="Hair" fill="none" transform="translate(26 16)"><mask id="LongHairCurvy-mask2" fill="#fff"><use href="#LongHairCurvy-path2"></use></mask><use fill="var(--avataaar-hair-color)" class="CustomColor" href="#LongHairCurvy-path2"></use><path id="Shadow" fill="#000" d="M62.68 184.462c7.075-9.707-.531-36.675-6.552-46.661q25.256-11.495 99.746 4.247-7.192 13.279-5.868 23.71-6.806 8.363-11.246 17.383l-34.871 8.606q-33.054 3.98-41.21-7.285Z" mask="url('#LongHairCurvy-mask2')" opacity=".24"></path></g><path id="Lights" fill="#FFF" d="M79.04 170.094c-.059-.201-.205-.427-.405-.665q.205.331.405.665m-22.63-49.719a88.6 88.6 0 0 0 4.456 18.002c2.062 5.721 4.42 11.46 7.813 16.69 3.161 4.876 6.924 9.425 9.956 14.362-.797-.948-2.472-2.1-3.114-2.778a50 50 0 0 1-2.984-3.458c-1.923-2.443-3.637-5-5.294-7.583-3.252-5.073-5.69-10.576-7.803-16.08-4.15-10.807-8.313-23.913-4.666-35.33-.282.735.459 2.488.575 3.297.204 1.414.386 2.837.478 4.26.185 2.883.184 5.749.583 8.618m12.445 44.666c-1.358-1.731-3.881-3.097-5.442-4.762-1.415-1.51-2.511-3.2-3.506-4.94-2.255-3.94-3.737-7.964-4.217-12.37.11.523.918 1.427 1.173 1.856a85 85 0 0 1 1.788 3.124c1.097 2.04 2.013 4.15 3.122 6.187 2.038 3.74 4.63 7.36 7.082 10.905m4.677 18.458c1.115 1.962 2.04 3.966 2.625 6.102a42 42 0 0 1 .77 3.413c.07.369.082 1.696.258 2.27-2.215-4.291-3.905-8.835-6.543-12.942-2.604-4.054-5.947-7.781-9.446-11.281-3.695-3.695-7.41-7.182-9.392-11.847-1.725-4.06-2.391-8.218-1.99-12.556.002 1.911 1.757 4.622 2.363 6.469.83 2.527 1.489 5.105 2.737 7.507 2.126 4.089 5.959 7.243 9.165 10.688 3.553 3.816 6.946 7.762 9.453 12.177m-14.303-9.32a22 22 0 0 1 2.806 3.275c.898 1.285 1.556 2.636 2.145 4.05.507 1.217.73 3.482 1.527 4.498-2.578-3.146-5.233-6.117-7.011-9.69-.607-1.222-1.548-3.023-2.243-4.495.231.593 2.253 1.86 2.776 2.362m-10.326 6.349c2.838 4.25 6.548 8.081 8.974 12.528 2.83 5.187 4.075 10.807 4.326 16.54.119 2.711.112 5.465-.253 8.168-.196 1.448-.51 2.886-.869 4.312-.136.54-.84 1.926-.977 2.77-.29-10.54 1.454-21.082-4.027-30.903-2.596-4.65-6.586-8.616-9.679-13.018-2.782-3.959-5.498-7.841-7.713-12.074 1.356 1.716 3.8 3.065 5.316 4.769 1.899 2.134 3.348 4.58 4.902 6.908m11.2 44.319c-.032.204-.033.377.014.5l-.013-.5Zm-9.543-22.353c.001.496.816 1.518 1.04 2.035.52 1.209.946 2.478 1.157 3.76.418 2.529-.13 5.14-1.067 7.561-1.9 4.907-4.874 9.253-8.613 13.3 1.335-1.748 1.867-4.589 2.806-6.538.965-2 2-3.97 2.85-6.011 1.92-4.605 1.75-9.311 1.827-14.107M41.917 221.2c.401-.548.193-3.183.405-3.872.392-1.273 1.07-2.502 1.849-3.635-.416.699.198 2.466-.005 3.373-.332 1.489-1.17 2.932-2.249 4.134m57.69-178.453a.9.9 0 0 0-.239.297zm-14.76 21.584c1.42-1.246 2.177-4.19 3.156-5.78 1.125-1.825 2.418-3.579 3.645-5.356 2.432-3.524 4.726-6.984 7.72-10.19-.622.934-1.173 3.768-1.514 4.513a34.6 34.6 0 0 1-3.221 5.605c-2.86 4.044-5.93 7.803-9.786 11.208m-.535-10.21c.75-1.327 1.894-2.448 3.18-3.414-.573.503-.831 2.575-1.225 3.275-.795 1.412-1.953 2.63-3.196 3.772.664-.582.772-2.803 1.24-3.633Zm119.194 98.006-.041.31c-.002-1.525-.68-3.2-.76-4.769-.113-2.19.202-4.315 1.082-6.392 1.74-4.101 5.003-7.207 9.164-9.638-1.145.674-2.267 3.213-3.001 4.268-1.103 1.586-2.282 3.187-3.214 4.85-1.943 3.469-2.506 7.618-3.23 11.371m-1.508-21.646a23 23 0 0 1-.989 3.626c-.474 1.279-1.093 2.523-1.783 3.728-.43.75-1.98 2.327-1.978 3.157-.083-4.898 1.728-9.335 5.172-13.257-.378.657-.283 2.03-.422 2.746m-.801 35.238c3.656-.517 7.105 1.261 9.421 3.551 1.238 1.224 2.338 2.63 3.065 4.133.547 1.13.546 2.983 1.28 3.92-1.797-2.419-4.076-4.373-6.324-6.464-1.564-1.455-4.688-5.181-7.442-5.14m-.778 10.377c-.192-.065-1.934-.558-2.337-.32.597-.267 1.33-.592 1.987-.679 4.284-.569 9.492 3.141 10.067 6.721-.478-1.226-3.025-2.24-4.176-2.85-1.823-.967-3.564-2.137-5.541-2.872m1.809 7.811c.742.182 2.32 1.176 3.047 1.165-2.929.07-5.572-.255-8.391-.914.152.041 1.759-.456 1.811-.463 1.215-.172 2.357-.076 3.533.212m-11.345 13.857c4.288-.242 9.336.384 13.431 1.417a22.3 22.3 0 0 1 5.692 2.295c1.414.814 3.93 1.932 4.876 3.137-3.74-6.452-11.85-9.803-20.16-8.14-1.107.222-2.808 1.276-3.84 1.291Zm-.96 12.433c2.688-.965 5.661-1.894 8.583-2.029 2.771-.127 5.845.29 8.41 1.173-.883-.24-2.993.332-3.92.437-1.297.147-2.596.299-3.896.418a52 52 0 0 1-4.801.222c-1.14-.002-3.32-.54-4.376-.221M179.46 227.41c.253 3.972 2.552 7.434 5.931 10.08 3.583 2.805 8.379 4.082 10.98 7.829 1.267 1.825 1.943 3.95 1.834 6.098-.056 1.106-.334 2.218-.635 3.294-.197.708-.902 1.868-.901 2.559.031-3.887.084-8.412-2.636-11.673-2.731-3.274-7.493-4.427-10.829-7.115-3.278-2.642-5.765-6.094-6.325-9.985-.452-3.144-.23-8.626 3.03-10.76-.662.39-.53 2.374-.547 2.931a74 74 0 0 0 .098 6.742m-2.453 15.262c.396.52 2.57 1.151 3.208 1.51 1.456.817 2.865 1.746 4.02 2.877 2.317 2.266 3.81 5.445 3.918 8.494 0-.72-1.646-2.457-2.109-3.073-.768-1.022-1.635-1.969-2.518-2.917-2.154-2.31-4.39-4.564-6.52-6.891Zm52.162-88.882c1.204 1.05 2.01 2.357 2.675 3.709 1.53 3.12 1.815 6.717.589 10 .203-.704-.401-2.184-.571-2.898-.373-1.563-.955-3.04-1.563-4.542-1.18-2.916-2.134-5.648-4.184-8.202.53.668 2.328 1.3 3.054 1.933M171.51 41.983c0 .332.917 1.293 1.123 1.654.517.902.924 1.849 1.064 2.855.158 1.142-.035 2.259-.381 3.369-.206.66-1.184 1.934-1.184 2.528-.16-3.498-.933-6.86-.622-10.406m7.637 6.822c.165 1.243-.24 2.644-.964 3.742.132-.31-.454-2.383-.473-2.762-.059-1.173.07-2.38.146-3.552.001.64 1.183 1.763 1.291 2.572m-60.77 1.568a35 35 0 0 1-4.15 4.243c-1.023.89-2.984 1.89-3.764 2.91 3.501-5.711 7.546-10.638 12.302-15.63-.716.92-.903 2.916-1.428 3.993-.774 1.587-1.81 3.076-2.96 4.484m5.898 2.479c.57-.336 1.104-1.993 1.538-2.55a17 17 0 0 1 2.578-2.63c-.205.22-.602 2.044-.825 2.402-.723 1.16-2 2.107-3.29 2.778Z" opacity=".6"></path></g></g></g>',1),ju=[zu];function Gu(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...ju])}const Iu={render:Gu},qu=e.createStaticVNode('<g id="Top"><defs><path id="ShortHairDreads01-path1" d="M0 0h264v280H0z"></path><path id="ShortHairDreads01-path2" d="M65.18 77.737c2.183-1.632 15.227-2.258 17.578-3.648.734-.434 1.303-.873 1.742-1.309.439.436 1.009.875 1.742 1.31 2.351 1.389 15.395 2.015 17.578 3.647 2.21 1.654 3.824 5.448 3.647 8.414-.212 3.56-4.106 12.052-13.795 13.03-2.114-2.353-5.435-3.87-9.172-3.87s-7.058 1.517-9.172 3.87c-9.69-.978-13.583-9.47-13.795-13.03-.176-2.966 1.437-6.76 3.647-8.414m.665 17.164.017.007zm79.018-38.916c-.389-5.955-1.585-11.833-2.629-17.699-.281-1.579-1.81-12.286-2.5-12.286-.232 9.11-1.032 18.08-2.064 27.14-.309 2.708-.632 5.416-.845 8.134-.171 2.196.135 4.848-.397 6.972-.679 2.706-4.08 5.232-6.725 6.165-6.6 2.326-12.105-7.303-17.742-10.12-7.318-3.656-19.897-4.527-27.38.239-7.645-4.766-20.224-3.895-27.542-.239-5.637 2.817-11.142 12.446-17.742 10.12-2.645-.933-6.047-3.459-6.725-6.165-.532-2.124-.226-4.776-.397-6.972-.213-2.718-.536-5.426-.845-8.135C30.298 44.08 29.497 35.11 29.265 26c-.689 0-2.218 10.707-2.5 12.286-1.043 5.866-2.24 11.744-2.627 17.7-.4 6.119.077 12.181 1.332 18.177a165 165 0 0 0 2.049 8.541c.834 3.143-.32 9.262.053 12.488.707 6.104 3.582 18.008 6.811 23.259 1.561 2.538 3.39 4.123 5.433 6.168 1.967 1.97 2.788 5.021 4.91 7.118 3.956 3.908 9.72 6.234 15.64 6.806C65.677 143.05 74.506 146 84.5 146s18.823-2.95 24.135-7.457c5.919-.572 11.683-2.898 15.64-6.806 2.121-2.097 2.942-5.149 4.909-7.118 2.042-2.045 3.872-3.63 5.433-6.168 3.229-5.251 6.104-17.155 6.81-23.259.374-3.226-.78-9.345.054-12.488.75-2.828 1.45-5.676 2.05-8.54 1.254-5.997 1.73-12.06 1.332-18.179"></path><path id="ShortHairDreads01-path3" d="M185.832 73.929c1.757.988 3.148 10.899 3.216 14.689.042 2.338.08 11.256-2.394 10.485-.753-.235-1.902-4.956-2.066-7.719s-1.733-12.164-4.141-16.49c-.55-.988-2.126-2.723-1.445-3.56.844-1.036 1.664-.434 2.695-.02 1.115.45 3.937 2.504 4.135 2.615m.805-2.972c-.746.962-5.841-1.74-7.966-2.913-17.845-9.86-21.31-12.995-49.425-12.586-28.116.409-47.379 13.582-48.462 14.93-.754.937-1.716 3.44-2.508 10.413-.791 6.972.22 19.477-2.646 19.462-2.438-.013-2.97-23.786-1.916-33.217.161-1.448.784-4.038.333-5.34-.394-1.138-2.322-1.135-2.014-3.03.35-2.159 2.525-1.087 3.473-2.119 1.795-1.954-.974-2.417-1.433-4.126-.682-2.542 1.29-3.197 3.067-4 1.966-.887 1.71-.108 3.306-1.846-2.131-1.563-2.902-3.691.016-4.833 1.24-.485 4.465.157 5.436-.572.253-.19.353-1.28.51-1.502 1.55-2.219 1.168-3.825 1.01-6.316-.129-2.038-.112-3.909 2.329-4.112 1.628-.136 2.952 1.194 4.411 1.586 1.619.435 1.01.752 2.279-.121 2.226-1.533.711-4.52 2.476-6.303 2.423-2.446 4.01 1.14 5.956 1.41 4.222.588 2.867-3.7 5.367-5.272 2.988-1.876 3.277 2.251 5.143 2.398 1.617.127 4.529-2.993 5.938-3.575 4.183-1.726 6.255 3.13 10.237 2.511 2.89-.45 3.67-.816 6.277.828 2.53 1.595 3.132.454 5.998.432 2.025-.016 3.265 1.676 4.959 1.853.844.088 1.653-.792 2.56-.737 3.237.197 3.442 4.383 6.014 5.536 2.35 1.053 5.112-.427 7.445-.7 5.69-.668 1.793 4.647 1.954 7.819 2.233.52 4.5-1.564 6.724-1.18 3.502.604 2.18 4.233 1.368 6.68 2.427-.044 8.76-2.737 10.332.707.81 1.776-1.078 4.147-1.047 5.952.043 2.542 1.91 4.645 2.571 7.05.892 3.247 2.163 11.95-.072 14.833"></path></defs><mask id="ShortHairDreads01-mask2" fill="#fff"><use href="#ShortHairDreads01-path1"></use></mask><g id="Top/Short-Hair/Dreads-01" mask="url('#ShortHairDreads01-mask2')"><g transform="translate(-1)"><use id="Hair" fill="var(--avataaar-hair-color)" class="CustomColor" href="#ShortHairDreads01-path3" transform="translate(1)"></use></g></g></g>',1),Wu=[qu];function Uu(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...Wu])}const Zu={render:Uu},Yu=e.createStaticVNode('<g id="Top"><defs><path id="Turban-path1" d="M0 0h264v280H0z"></path><path id="Turban-path2" d="M156 180.611c17.53-8.328 30.048-25.496 31.791-45.744C193.57 134.002 198 129.02 198 123v-13c0-5.946-4.325-10.882-10-11.834V92c0-30.928-25.072-56-56-56S76 61.072 76 92v6.166c-5.675.952-10 5.888-10 11.834v13c0 6.019 4.43 11.002 10.209 11.867 1.743 20.248 14.26 37.416 31.791 45.744V199h-4c-39.765 0-72 32.235-72 72v9h200v-9c0-39.765-32.235-72-72-72h-4zM0 0h264v280H0z"></path><path id="Turban-path3" d="M83.972 55.817C107.404 69.414 145.115 82.111 139 138q29.066-8.46 29-46.676C167.918 44.148 115.85 0 86 0q-1.012 0-2.008.088A23 23 0 0 0 82 0C52.074 0 .08 44.148 0 91.324Q-.067 130.498 29 138c-6.138-55.889 31.51-68.586 54.972-82.183"></path></defs><mask id="Turban-mask1" fill="#fff"><use href="#Turban-path1"></use></mask><g id="Top/Accesories/Turban" mask="url('#Turban-mask1')"><g id="Turban"><path id="Band" fill="#EDECE3" d="M74.53 97.5c-1-2.41-1.53-4.92-1.53-7.5 0-18.225 26.415-33 59-33s59 14.775 59 33c0 2.58-.53 5.09-1.53 7.5C183.398 82.888 159.972 72 132 72S80.602 82.888 74.53 97.5"></path><use fill="var(--avataaar-top-color)" class="CustomColor" href="#Turban-path3" transform="translate(48 3)"></use><path id="Shadow" fill="#000" d="M48.011 96.012q.555 37.65 28.99 44.988-29.068-7.066-29-43.97 0-.51.01-1.018m104.635-65.544c.744 5.727-.52 12.421-4.646 19.668-11.153 21.43-71.439 21.868-71.666 79.544-.229-61.919 60.471-62.3 71.666-85.136 2.67-4.977 4.141-9.709 4.646-14.076" opacity=".16"></path></g></g></g>',1),Xu=[Yu];function Ku(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...Xu])}const Qu={render:Ku},Ju=e.createStaticVNode('<g id="Top"><defs><path id="LongHairDreads-path1" d="M0 0h264v280H0z"></path><path id="LongHairDreads-path2" d="M85.718 185.073A73 73 0 0 1 89 185h4v-18.389a56.22 56.22 0 0 1-26.789-26.99c-2.764-8.607-2.6-17.934-3.21-26.795-.805-11.68-.112-23.078 2.536-34.578 2.39-10.376 5.824-15.941 13.626-24.255 4.36-4.646 10.905-4.915 17.42-6.564 6.593-1.67 12.611-4.21 16.735-8.99 9.083 10.41 33.354 6.664 42.236 18.01 10.802 13.798 10.923 22.7 12.193 38.643.953 11.951-.528 33.564-.943 46.538A56.24 56.24 0 0 1 141 166.611V185h4c6.636 0 13.062.898 19.163 2.578-2.05 3.174-4.494 6.18-7.051 8.973-3.831 4.188-7.681 8.52-12 12.367-4.941 4.401-9.668 7.597-12.668 13.082-1.358 2.483-3.737 5.094-1.22 7.817 2.3 2.487 5.925 1.975 8.386.175 3.637-2.66 6.338-6.858 9.69-9.915-3.238 5.815-7.742 14.484-5.43 21.005.787 2.217 1.586 2.173 2.802 3.65q2.88.066 2.276 2.606l.54 1.451c1.456 2.594 4.243 4.41 7.78 3.188 11.56-3.994-1.775-21.961 10.953-27.302 2.278 2.83-1.086 10.779-1.177 14.256-.111 4.287.122 14.013 6.642 15.179 8.496 1.52 5.22-6.597 5.555-10.05.39-4.016 2.86-9.312 4.87-12.869-1.222 3.78-3.508 12.154 2.817 13.87 7.317 1.986 6.481-6.586 7.592-10.15.229 5.275 7.045 17.749 13.205 7.896 3.173-5.076 1.009-13.441.66-18.854 4.414 4.56 7.94-1.35 7.84-4.63 1.677 4.752 7.982 18.002 13.57 7.485 3.398-6.395-.226-14.985-2.483-21.16 5.944.52 4.75-5.236 3.864-8.095-1.307-4.222-.61-4.841-.34-9.206 8.25 4.805 7.997-8.234 7.542-11.432-1.146-8.051-7.409-15.261-12.243-22.052-3.466-4.871-9.935-13.352-8.038-19.226 1.957 2.468 6.507 2.442 8.316-.142 1.532-2.188-.091-5.796-.83-7.982-2.021-5.98-6.06-9.844-9.711-14.981-7.108-10.001-6.086-23.133-6.743-34.313-.82-13.949-3.814-27.68-16.48-37.827-6.787-5.437-15.058-9.914-21.37-15.682-1.722-1.573-2.45-3.521-4.066-5.038-1.813-1.701-2.66-1.298-4.158-3.72-2.668-4.315-5.802-8.355-12.25-8.558-4.22-.132-9.556 3.43-13.359 2.909-3.122-.427-5.094-4.879-7.656-6.373-3.966-2.312-6.734-1.414-10.972-.075-6.31 1.994-10.33 2.689-16.755.306C97.69 2.539 93.565-.846 88.402.357c-4.05.945-5.858 4.213-8.244 6.718-2.46 2.586-1.271 1.73-4.87 2.305-3.68.588-6.586 1.122-9.378 3.532-4.512 3.895-1.386 9.955-4.953 13.389-1.925 1.854-5.935 2.737-8.165 4.654-2.434 2.092-4.424 4.635-6.248 7.11-3.551 4.823-5.976 10.079-8.58 15.281-4.843 9.681-9.161 19.671-11.002 30.072-.945 5.347-2.538 10.577-3.512 15.912-.75 4.115-.43 8.622-1.896 12.617-1.74 4.74-5.899 9.096-8.152 13.757-2.988 6.183-4.994 12.115-5.63 18.771-.624 6.544 1.113 12.311 1.879 18.727.443 3.717-.324 4.139-2.88 7.647-1.967 2.7-3.96 5.373-5.225 8.378-2.361 5.615-2.23 11.077 1.879 16.013 2.82 3.388 12.299 6.933 11.523-.618-.36-3.508-4.772-5.095-3.93-9.12.584-2.787 3.425-4.715 6.874-5.577 2.436-.608 3.636-.582 4.735 2.09.996 2.42-.325 7.706-.63 10.25-.123 1.023-.305 1.92-.428 2.867-.868 6.674-1.028 12.815-4.682 18.944-2.244 3.766-6.636 9.073-1.628 12.703 3.959 2.87 10.79 1.121 13.877-1.882 3.256 4.027 2.532 8.423 1.314 12.869-.756 2.76-2.824 6.802.431 9.033 4.408 3.021 11.603-1.738 14.908-4.14 1.91 4.268 3.703 19.827 11.235 10.552 2.198-2.705 5.858-5.344 6.555-8.534 1.156-5.29.326-10.858.804-16.202 2.404 6.997 4.038 9.787 5.51 16.97.884 4.321 1.231 18.82 10.174 16.91 6.88-1.47 2.48-10.524 1.601-14.215-1.683-7.07-2.496-10.063-4.122-17.14 2.533 4.626 4.746 9.371 7.18 14.034 2.39 4.58 13.078 14.027 16.205 10.05 3.127-3.978-4.496-9.645-6.23-14.46-3.609-10.024-7.98-20.006-9.017-30.508-.499-5.049.436-9.712.846-14.703.28-3.41-.141-6.902-.812-10.34"></path></defs><mask id="LongHairDreads-mask2" fill="#fff"><use href="#LongHairDreads-path1"></use></mask><g id="Top/Long-Hair/Dreads" mask="url('#LongHairDreads-mask2')"><g transform="translate(-1)"><g id="Hair" transform="translate(16 14)"><mask id="LongHairDreads-mask1" fill="#fff"><use href="#LongHairDreads-path2"></use></mask><use fill="var(--avataaar-hair-color)" class="CustomColor" href="#LongHairDreads-path2"></use><path id="Shadows" fill="#000" d="M85.718 185.073A73 73 0 0 1 89 185h4v-18.389a56.22 56.22 0 0 1-26.789-26.99 37 37 0 0 0 1.95 4.888c5.756 11.833 13.257 22.412 16.327 35.08.435 1.798.869 3.633 1.23 5.484m78.445 2.505A72 72 0 0 0 145 185h-4v-18.389a56.24 56.24 0 0 0 25.502-24.404c-.077 2.994-.01 5.972.373 8.849 1.07 8.044 4.001 15.31 2.64 23.58-.744 4.532-2.725 8.875-5.352 12.942" mask="url('#LongHairDreads-mask1')" opacity=".24"></path><path id="Highlights" fill="#FFF" d="M49.36 108.248c-.124-2.422-1.98-10.537.329-11.939 2.53-1.537 2.002 7.707 2.028 8.654.044 1.537 1.211 13.135-.927 13.084-2.132-.051-1.347-8.219-1.43-9.799m8.435 57.75c-.009 1.014-1.072.953-1.832.688-.937-.328-.363-2.484-.413-3.191-.13-1.86-1.023-7.338.34-8.873 2.726-3.069 1.916 9.948 1.905 11.376m-25.674 13.163c1.93-.054.144-37.832-2.821-37.79-2.083.03 1.361 37.827 2.821 37.79m2.232 19.355c-2.397 0-1.957 8.462-.545 9.139 2.14 1.025 3.227-9.139.545-9.139m15.237 3.539c.021 1.058-1.179 1.074-1.98.744-.908-.376-.528-3.506-.563-4.2-.114-2.188-2.017-10.672-.286-12.231 1.974-1.778 2.017.173 2.548 1.498 1.564 3.903.197 10.032.28 14.189Zm140.652-79.722c.11 1.463 1.069 11.018-.524 11.746-2.742 1.254-1.561-4.65-1.55-5.413.107-7.437-.969-14.812-1.787-22.21-.155-1.404-2.625-12.224-.816-13.12 2.707-1.342 2.303 2.245 2.458 3.41 1.129 8.468 1.628 17.078 2.22 25.587Zm-3.219 33.254c-2.532-.502-3.858 8.094-2.702 9.016 1.917 1.53 5.35-8.49 2.702-9.016m-.268 37.798c-1.139-.226-9.433 15.733-8.75 16.635 1.299 1.719 12.829-15.82 8.75-16.635m-20.422 7.374c-1.782-.803-9.334 10.75-7.406 11.619 1.748.786 9.561-10.652 7.406-11.62Zm42.092-43.312c-2.15 0-2.055 11.822-.4 12.568 1.711.77 2.942-12.568.4-12.568M178.14 48.844c-.609-.87-7.175-8.62-2.472-7.513 2.291.539 5.448 7.352 6.481 9.41.594 1.183 3.985 6.46.392 6.086-.977-.101-3.59-6.82-4.401-7.983m-23.092-15.488q-1.27.572.042 1.072 1.27-.57-.042-1.072m-84.43 8.13c-2.004 1.844-9.542 12.519-12.125 12.626-4.707.195 4.278-9.025 5.297-10.198.455-.527 2.486-3.092 3.722-3.723 1.261-.643 5.444-.859 3.107 1.295ZM43.255 69.981c-2.183-.43-5.835 10.264-4.56 11.555 1.923 1.95 7.007-11.07 4.56-11.555m24.939 119.011c.412 1.341 4.631 11.08 3.571 12.361-1.621 1.958-2.087-.817-2.617-1.967-1.178-2.555-4.238-8.846-3.746-11.536.477-2.608 2.375-.201 2.792 1.142m-8.207 22.824c-2.295 0-2.03 9.802-.663 10.385 2.116.902 3.478-10.385.663-10.385m161.805-8.37c.137.604 2.054 5.563-.663 4.845-1.562-.413-1.802-4.785-2.201-6.11-1.23-4.086-5.28-9.163-5.632-13.194-.34-3.897 1.84-2.412 3.515.889 2.236 4.407 3.913 8.87 4.981 13.57m-19.702-.495c-2.132-.01-2.235 10.773-.902 11.402 1.864.878 3.621-11.402.902-11.402m6.16-88.297c1.582-.412-3.41-13.325-5.177-13.183-2.695.217 2.776 13.803 5.178 13.183Zm-26.815 56.093q-1.27.57.043 1.071 1.27-.57-.043-1.071m-24.218 55.24c.794 0 1.121-1.223-.051-1.25-.775.006-1.184 1.25.051 1.25M58.684 170.63c.03-1.909-2.469-.51-2.453 1.101.032 3.214 2.4 1.746 2.453-1.101m-6.165-47.746c-.804 0-1.134 1.236.05 1.266.785-.006 1.198-1.266-.05-1.266m-19.132 62.51c-.078-1.941-1.7.043-1.61.046.288.007 1.67 1.417 1.61-.046M37.6 84.063c-2.368 0-2.025 5.754-.514 6.123 2.52.616 2.865-6.123.514-6.123m12.613 124.263c-2.286 0-2.44 7.814-.863 8.3 2.451.754 3.243-8.3.863-8.3m-18.756 5.606q-1.308.587.042 1.103 1.309-.585-.042-1.103m169.999 3.35c-2.32 0-2.23 9.554-.805 10.2 1.99.902 3.488-10.2.805-10.2m-23.51 8.88c-2.411-.482-3.674 7.405-2.55 8.29 1.852 1.459 5.025-7.796 2.55-8.29m-20.48 7.29c-1.998 0-1.508 3.574-.355 4.106 1.994.92 2.583-4.107.354-4.107ZM86.48 19.508c-1.672 0-12.16 4.744-8.24 6.15 2.396.859 12.497-6.15 8.24-6.15" mask="url('#LongHairDreads-mask1')" opacity=".3"></path></g></g></g></g>',1),e9=[Ju];function t9(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...e9])}const n9={render:t9},a9=e.createStaticVNode('<g id="Top"><defs><path id="ShortHairDreads02-path1" d="M0 0h264v280H0z"></path><path id="ShortHairDreads02-path2" d="M65.18 77.737c2.183-1.632 15.227-2.258 17.578-3.648.734-.434 1.303-.873 1.742-1.309.439.436 1.009.875 1.742 1.31 2.351 1.389 15.395 2.015 17.578 3.647 2.21 1.654 3.824 5.448 3.647 8.414-.212 3.56-4.106 12.052-13.795 13.03-2.114-2.353-5.435-3.87-9.172-3.87s-7.058 1.517-9.172 3.87c-9.69-.978-13.583-9.47-13.795-13.03-.176-2.966 1.437-6.76 3.647-8.414m.665 17.164.017.007zm79.018-38.916c-.389-5.955-1.585-11.833-2.629-17.699-.281-1.579-1.81-12.286-2.5-12.286-.232 9.11-1.032 18.08-2.064 27.14-.309 2.708-.632 5.416-.845 8.134-.171 2.196.135 4.848-.397 6.972-.679 2.706-4.08 5.232-6.725 6.165-6.6 2.326-12.105-7.303-17.742-10.12-7.318-3.656-19.897-4.527-27.38.239-7.645-4.766-20.224-3.895-27.542-.239-5.637 2.817-11.142 12.446-17.742 10.12-2.645-.933-6.047-3.459-6.725-6.165-.532-2.124-.226-4.776-.397-6.972-.213-2.718-.536-5.426-.845-8.135C30.298 44.08 29.497 35.11 29.265 26c-.689 0-2.218 10.707-2.5 12.286-1.043 5.866-2.24 11.744-2.627 17.7-.4 6.119.077 12.181 1.332 18.177a165 165 0 0 0 2.049 8.541c.834 3.143-.32 9.262.053 12.488.707 6.104 3.582 18.008 6.811 23.259 1.561 2.538 3.39 4.123 5.433 6.168 1.967 1.97 2.788 5.021 4.91 7.118 3.956 3.908 9.72 6.234 15.64 6.806C65.677 143.05 74.506 146 84.5 146s18.823-2.95 24.135-7.457c5.919-.572 11.683-2.898 15.64-6.806 2.121-2.097 2.942-5.149 4.909-7.118 2.042-2.045 3.872-3.63 5.433-6.168 3.229-5.251 6.104-17.155 6.81-23.259.374-3.226-.78-9.345.054-12.488.75-2.828 1.45-5.676 2.05-8.54 1.254-5.997 1.73-12.06 1.332-18.179"></path><path id="ShortHairDreads02-path3" d="M153.503 98.874C157.9 100.654 161 104.965 161 110v13c0 5.288-3.42 9.776-8.168 11.375a55.7 55.7 0 0 1-11.076 29.29c.209.807.41 1.625.556 2.503.55 3.327-.12 6.093 1.645 9.093.457.78 1.183 1.247 1.522 2.144.533 1.415-.232 4.594 1.95 4.595 3.106 0 1.374-5.966.596-7.384-1.525-2.772-2.462-3.45-2.383-7.044 1.745 1.16 7.53 3.376 9.448 2.316 4.432-2.448-6.662-4.936-7.438-5.453 1.704-1.666 3.656-2.55 5.197-4.746 1.26-1.793 2.406-4.397 4.55-4.501 1.186-.058 4.657 2.884 5.71.866.964-1.85-1.115-2.122-1.928-2.777-1.502-1.21-1.84-.006-1.474-2.134 1.085 1.165 2.789.429 3.244-1.015.49-1.559-1.127-2.024-1.097-3.014-.012.387.834-5.115.7-4.938.86-1.135 3.908-.784 5.413-.62 2.296.248 2.164.317 3.255 2.436.882 1.715 3.198 5.178 3.707.641.121-1.085-.869-3.404-1.45-4.338-.627-1.007-2.517-1.643-2.912-2.427-.944-1.87 2.165-6.034 1.639-8.854 1.093.418 3.857 6.927 5.198 1.599.707-2.8-6.505-8.945-3.514-9.894 2.289-.726 4.612 2.225 5.25 4.044.473 1.348.26 4.238 1.068 5.353 3.036 4.203 3.41-2.74 3.157-4.572-.559-4.026-1.984-6.988-5.623-8.51 1.295-1.607-.345-2.887-1.275-3.893 1.528-1.657 11.437.104 9.208-4.327-.538-1.072-2.481-1.262-3.467-1.655-2.49-.992-4.985-3.01-6.257-5.562 1.841-.46 7.28.798 6.565-2.996-.563-2.982-5.403-2.067-7.278-1.61 1.692-1.016 4.973-.174 5.434-2.941.531-3.183-3.288-3.076-5.08-2.402-.422-3.358 5.53-5.83 7.213-8.4.568-.867 1.47-1.164.746-2.633-1.306-2.643-4.68 1.086-5.792 2.09.876-1.628 3.32-8.403 2.95-10.122-.546-2.526-2.353-2.615-3.79-.568-.93 1.33-1.19 4.703-1.68 6.427-2.04-1.537-2.143.246-2.248-2.191-.068-1.58 2.002-4.701 2.532-6.248.456-1.329 1.668-3.76.943-5.046-1.776-3.143-3.473 1.172-3.94 2.652-.789-3.411 2.214-6.057 3.103-9.431.541-2.048 1.976-7.578-.51-8.561-3.394-1.341-2.2 4.956-2.678 7-.365 1.559-.922 4.077-2.139 4.845-.176.111-2.82.343-2.948.193-1.734-2.021 3.038-6.447 3.284-8.351.223-1.73-.44-2.825-2.061-2.929-.81-.051-2.12 1.2-2.495 1.119-1.48-.322.447-7.089.587-8.967.15-2.003-.094-7.172-3.483-4.785.227-2.697.364-5.236.734-7.891.195-1.4 1.398-2.645-.374-3.767-2.156-1.365-3.35 1.492-3.842 3.168-.846 2.885.9 7.375-3.158 7.466-4.665.106-1.444-4.73-1.215-7.868.128-1.74-1.012-6.421-3.262-3.263-.896 1.259-.587 5.694-1.084 7.183-1.106-.493.733-4.515-.23-5.564-2.06-2.247-3.788 1.026-5.099 1.692-.086-1.445-.187-2.891-.248-4.338-.093-2.2 1.255-6.83-.113-8.347-2.337-2.59-3.823.431-4.506 2.523-.613 1.884-.697 3.744-3.233 4 .208-2.717-2.258-8.436-1.035-10.727.553-1.035 1.679-.301 2.179-1.46.821-1.902-.524-2.71-1.986-2.771-6.792-.286-1.562 9.134-3.969 11.491-1.099-1.04.072-2.113-1.065-3.596-1.223-1.595-3.173-1.46-4.918-.738-.056-1.613 2.364-12.92-3.08-7.817-1.352 1.271-.974 3.393-1.693 4.886-.696 1.445-2.39 3.598-3.341 4.771-.51-2.067.272-4.63.82-6.666.38-1.415 2.931-5.805 2.387-7.244-1.58-4.167-6.323 2.72-7.572 3.832-1.582 1.41-7.88 6.045-9.901 4.64-.701-.487-.07-2.29-1.027-3.128-.47-.41-2.477-.6-3.05-.548.358-1.494-.346-3.427-2.055-2.91-2.149.65-1.219 3.838-2.58 5.002-2.53 2.164-5.535-2.112-8.245-1.992.414-1.755 3.485-8.062-1.399-6.144-1.246.49-2.13 3.351-2.44 4.54-.792 3.036-.222 3.593-3.509 4.45.257-1.76-.2-3.948.649-5.521.696-1.289 4.305-4.645.462-5.063-4.74-.516-4.274 7.672-4.855 10.44-4.206-2.549-6.974 1.098-9.48 4.252.447-1.419 1.553-15.557-2.965-11.237-1.292 1.237.138 3.066.05 4.478-.078 1.28-.5 2.422-.995 3.618-.796 1.921-1.72 3.887-2.974 5.524-1.573 2.059-1.015 2.22-2.82.823-2.425-1.873-3.577-6.624-3.457-9.525.09-2.16 1.196-6.548-2.384-5.531-3.507.996-1.649 7.974-1.296 10.453.381 2.687.635 5.436.183 8.173-2.984-3.05-3.42 3.302-4.017 4.385-.98 1.777-2.868 2.647-4.335 3.86-.8-2.794 2.405-5.157 1.77-7.38-1.194-4.165-4.571 1.716-5.313 2.87-.619.963-2.635 6.442-3.365 6.933-1.023.69-7.605-2.527-8.27-3.14-1.223-1.125-.778-4.272-2.316-4.99-4.72-2.197-1.932 5.735-1.005 7.375 2.419 4.284 3.516 9.456 2.949 14.504-.858-.302-1.915-1.312-2.468-2.077-1.076-1.49-.685-3.865-1.808-4.987-3.288-3.28-3.673 2.878-3.406 4.791.5 3.588 2.291 4.75 3.778 7.734 1.368 2.75-.445 6.069-.828 9.125-3.429-3.3-18.195-.543-14.396 4.502 1.978 2.633 4.318-2.377 6.598-2.25 4.083.225 6.235 5.295 5.967 8.846-.497-1.898-2.422-3.761-3.746-1.444-.897 1.573.635 4.26 1.374 5.823-.906-.444-5.372-2.52-6.246-2.161-3.44 1.414 1.3 4.151 2.537 4.698 4.224 1.868 6.887 3.92 8.2 8.992-2.367-.757-1.955-1.878-3.552-3.043-1.466-1.07-1.74-.518-3.09-.868-2.362-.611-5.441-1.427-8.11-.318-1.97.819-5.287 3.31-5.906 5.65-.757 2.874.844 3.606 2.904 2.143 2.45-1.739 2.897-5.105 6.583-4.96 1.769.068 3.52.995 4.64 2.325.835.993 1.323 2.43 2.12 3.495.703.94 2.564 2.259 2.957 3.254 1.418 3.595-1.276 6.795-3.083 9.314-.419-.554-3.477-1.758-4.11-1.878-2.94-.561-4.037.798-2.199 3.512.58.856 1.798 1.216 2.436 1.994.711.87 1.112 2.2 1.818 3.144 1.393 1.863 3.115 2.822 4.778 4.322-.613.41-.546-.624-1.102-.41-.404.156-1.107-.155-1.617.014-.828.275-.718 1.717-1.248 1.929-3.299 1.314-6.627-3.615-9.586-3.775-1.614-.088-2.975.994-2.2 3.022.538 1.412 2.87 2.178 4.036 2.767 3.246 1.644 6.478 2.868 9.948 1.607 2.797 2.438 6.159 3.64 9.674 3.675-2.011.998-4 2.235-4.702 4.721-1.189-1.23-4.108-6.952-5.633-2.462-1.045 3.087 3.723 6.871 5.92 8.262-2.555.755-4.677.907-7.277.607-1.357-.156-4.337-1.974-3.238 1.748 1.182 4.016 8.24 2.21 10.48 1.516.083-1.198-10.77 12.108-3.158 9.489 2.176-.748 2.385-5 5.418-5.373 3.503-.43 3.855 3.077 5.882 5.646 1.01 1.282 5.67 4.165 5.449 5.265-.191.952-2.75 1.496-3.293 2.828-.633 1.55-.347 2.746.532 4.078 1.538 2.333 4.36 2.691 6.592 3.604 3.164 1.295 4.31 2.867 5.73 6.217-2.502.12-9.62 7.36-5.258 8.648 1.625.48 1.372-.966 2.049-1.765l.821-1.545q.687-1.797 1.52-.22c.123-.031 1.61.388 1.947.409 1.708.105 2.85-1.192 4.266-1.893 1.023-.506 2.024-.418 2.795-1.586-.089.135.554-2.51.565-2.536.276-.637.985-.547 1.31-1.234-8.749-9.085-14.457-21.119-15.489-34.464C36.42 132.776 33 128.288 33 123v-13c0-5.035 3.1-9.345 7.497-11.126.531.374 1.27 0 1.503-.842-.463-1.506 3.296-27.854 13-34.876 3.618-2.438 23.008-2.619 42.313-2.606 19.096.014 38.108.195 41.687 2.606 9.704 7.022 13.463 33.37 13 34.876.233.843.972 1.216 1.503.842"></path></defs><mask id="ShortHairDreads02-mask2" fill="#fff"><use href="#ShortHairDreads02-path1"></use></mask><g id="Top/Short-Hair/Dreads-02" mask="url('#ShortHairDreads02-mask2')"><g transform="translate(-1)"><use id="Hair" fill="var(--avataaar-hair-color)" class="CustomColor" href="#ShortHairDreads02-path3" transform="translate(36)"></use></g></g></g>',1),o9=[a9];function r9(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...o9])}const i9={render:r9},s9=e.createStaticVNode('<g id="Top"><defs><path id="WinterHat1-path3" d="M0 0h264v280H0z"></path><path id="WinterHat1-path1" d="M120 54H20v101c0 5.523-4.477 10-10 10s-10-4.477-10-10V44C0 19.7 19.7 0 44 0h52c24.3 0 44 19.7 44 44v111c0 5.523-4.477 10-10 10s-10-4.477-10-10z"></path><rect id="WinterHat1-path2" width="118" height="36" x="74" y="50" rx="8"></rect></defs><g id="Top/Accessories/Winter-Hat-1" transform="translate(-1)"><g id="hat" transform="translate(63 20)"><path id="inside" fill="#F4F4F4" d="M1 48h22.671v105.664c0 6.26-5.075 11.336-11.335 11.336S1 159.925 1 153.664zm115.329 0H139v105.664c0 6.26-5.075 11.336-11.336 11.336-6.26 0-11.335-5.075-11.335-11.336z"></path><use fill="var(--avataaar-top-color)" class="CustomColor" href="#WinterHat1-path1"></use></g><g id="hat-front"><use filter="url('#WinterHat1-path2')" href="#WinterHat1-path2"></use><use fill="#F4F4F4" href="#WinterHat1-path2"></use></g></g></g>',1),l9=[s9];function c9(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...l9])}const d9={render:c9},u9=e.createStaticVNode('<g id="Top"><defs><filter id="filter5" width="107.7%" height="126.7%" x="-3.8%" y="-6.7%" filterUnits="objectBoundingBox"><feOffset dy="2" in="SourceAlpha" result="shadowOffsetOuter1"></feOffset><feColorMatrix in="shadowOffsetOuter1" result="shadowMatrixOuter1" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0"></feColorMatrix><feMerge><feMergeNode in="shadowMatrixOuter1"></feMergeNode><feMergeNode in="SourceGraphic"></feMergeNode></feMerge></filter><filter id="filter6" width="113.3%" height="113.8%" x="-6.7%" y="-3.4%" filterUnits="objectBoundingBox"><feOffset dy="2" in="SourceAlpha" result="shadowOffsetOuter1"></feOffset><feColorMatrix in="shadowOffsetOuter1" result="shadowMatrixOuter1" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0"></feColorMatrix><feMerge><feMergeNode in="shadowMatrixOuter1"></feMergeNode><feMergeNode in="SourceGraphic"></feMergeNode></feMerge></filter><filter id="filter7" width="113.3%" height="113.8%" x="-6.7%" y="-3.4%" filterUnits="objectBoundingBox"><feOffset dy="2" in="SourceAlpha" result="shadowOffsetOuter1"></feOffset><feColorMatrix in="shadowOffsetOuter1" result="shadowMatrixOuter1" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0"></feColorMatrix><feMerge><feMergeNode in="shadowMatrixOuter1"></feMergeNode><feMergeNode in="SourceGraphic"></feMergeNode></feMerge></filter><filter id="filter1" width="107.7%" height="115.4%" x="-3.8%" y="-3.8%" filterUnits="objectBoundingBox"><feOffset dy="2" in="SourceAlpha" result="shadowOffsetOuter1"></feOffset><feColorMatrix in="shadowOffsetOuter1" result="shadowMatrixOuter1" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0"></feColorMatrix><feMerge><feMergeNode in="shadowMatrixOuter1"></feMergeNode><feMergeNode in="SourceGraphic"></feMergeNode></feMerge></filter><filter id="filter2" width="105%" height="110%" x="-2.5%" y="-2.5%" filterUnits="objectBoundingBox"><feOffset dy="2" in="SourceAlpha" result="shadowOffsetOuter1"></feOffset><feColorMatrix in="shadowOffsetOuter1" result="shadowMatrixOuter1" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0"></feColorMatrix><feMerge><feMergeNode in="shadowMatrixOuter1"></feMergeNode><feMergeNode in="SourceGraphic"></feMergeNode></feMerge></filter><filter id="filter3" width="105.4%" height="110.8%" x="-2.7%" y="-2.7%" filterUnits="objectBoundingBox"><feOffset dy="2" in="SourceAlpha" result="shadowOffsetOuter1"></feOffset><feColorMatrix in="shadowOffsetOuter1" result="shadowMatrixOuter1" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0"></feColorMatrix><feMerge><feMergeNode in="shadowMatrixOuter1"></feMergeNode><feMergeNode in="SourceGraphic"></feMergeNode></feMerge></filter><filter id="filter4" width="103.6%" height="107.4%" x="-1.8%" y="-1.9%" filterUnits="objectBoundingBox"><feOffset dy="2" in="SourceAlpha" result="shadowOffsetOuter1"></feOffset><feColorMatrix in="shadowOffsetOuter1" result="shadowMatrixOuter1" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0"></feColorMatrix><feMerge><feMergeNode in="shadowMatrixOuter1"></feMergeNode><feMergeNode in="SourceGraphic"></feMergeNode></feMerge></filter><path id="LongHairFrida-path2" d="M0 0h264v280H0z"></path><path id="LongHairFrida-path1" d="M65.18 77.737c2.183-1.632 15.227-2.258 17.578-3.648.734-.434 1.303-.873 1.742-1.309.439.436 1.009.875 1.742 1.31 2.351 1.389 15.395 2.015 17.578 3.647 2.21 1.654 3.824 5.448 3.647 8.414-.212 3.56-4.106 12.052-13.795 13.03-2.114-2.353-5.435-3.87-9.172-3.87s-7.058 1.517-9.172 3.87c-9.69-.978-13.583-9.47-13.795-13.03-.176-2.966 1.437-6.76 3.647-8.414m.665 17.164.017.007zm79.018-38.916c-.389-5.955-1.585-11.833-2.629-17.699-.281-1.579-1.81-12.286-2.5-12.286-.232 9.11-1.032 18.08-2.064 27.14-.309 2.708-.632 5.416-.845 8.134-.171 2.196.135 4.848-.397 6.972-.679 2.706-4.08 5.232-6.725 6.165-6.6 2.326-12.105-7.303-17.742-10.12-7.318-3.656-19.897-4.527-27.38.239-7.645-4.766-20.224-3.895-27.542-.239-5.637 2.817-11.142 12.446-17.742 10.12-2.645-.933-6.047-3.459-6.725-6.165-.532-2.124-.226-4.776-.397-6.972-.213-2.718-.536-5.426-.845-8.135C30.298 44.08 29.497 35.11 29.265 26c-.689 0-2.218 10.707-2.5 12.286-1.043 5.866-2.24 11.744-2.627 17.7-.4 6.119.077 12.181 1.332 18.177a165 165 0 0 0 2.049 8.541c.834 3.143-.32 9.262.053 12.488.707 6.104 3.582 18.008 6.811 23.259 1.561 2.538 3.39 4.123 5.433 6.168 1.967 1.97 2.788 5.021 4.91 7.118 3.956 3.908 9.72 6.234 15.64 6.806C65.677 143.05 74.506 146 84.5 146s18.823-2.95 24.135-7.457c5.919-.572 11.683-2.898 15.64-6.806 2.121-2.097 2.942-5.149 4.909-7.118 2.042-2.045 3.872-3.63 5.433-6.168 3.229-5.251 6.104-17.155 6.81-23.259.374-3.226-.78-9.345.054-12.488.75-2.828 1.45-5.676 2.05-8.54 1.254-5.997 1.73-12.06 1.332-18.179"></path></defs><mask id="LongHairFrida-mask1" fill="#fff"><use href="#LongHairFrida-path2"></use></mask><g id="Top/Long-Hair/Frida" mask="url('#LongHairFrida-mask1')"><g transform="translate(-1)"><path fill="var(--avataaar-hair-color)" d="M189 97.937v.229a12.01 12.01 0 0 1 9.893 10.227A16.44 16.44 0 0 0 203 97.5c0-2.13-.404-4.166-1.138-6.035A16.45 16.45 0 0 0 207 79.5c0-5.836-3.03-10.964-7.602-13.898A16.4 16.4 0 0 0 201 58.5c0-7.635-5.185-14.058-12.227-15.941q.226-1.499.227-3.059c0-11.322-9.178-20.5-20.5-20.5-2.63 0-5.143.495-7.453 1.397C157.317 15.306 151.295 12 144.5 12c-4.262 0-8.22 1.3-11.5 3.527A20.4 20.4 0 0 0 121.5 12c-6.795 0-12.817 3.306-16.547 8.397A20.5 20.5 0 0 0 97.5 19C86.178 19 77 28.178 77 39.5q.001 1.56.227 3.059C70.185 44.442 65 50.865 65 58.5c0 2.192.427 4.284 1.203 6.197C60.75 67.39 57 73.007 57 79.5c0 5.438 2.63 10.261 6.689 13.267A16.5 16.5 0 0 0 63 97.5c0 4.175 1.55 7.987 4.107 10.893A12.01 12.01 0 0 1 77 98.166v-.23l.083.064c2.903-47.147 48.47-30.258 55.917-56.664 7.447 26.406 53.014 9.517 55.917 56.664zm-80 82.674v4.2a16.6 16.6 0 0 1-2.5.189c-6.82 0-12.675-4.139-15.188-10.042C82.754 174.348 76 167.213 76 158.5c0-1.471.192-2.897.554-4.254C69.858 152.144 65 145.889 65 138.5c0-3.744 1.247-7.198 3.35-9.967a12.01 12.01 0 0 0 8.859 6.334c1.743 20.248 14.26 37.416 31.791 45.744m48 0v4.2q1.224.188 2.5.189c6.82 0 12.675-4.139 15.188-10.042 8.558-.61 15.312-7.745 15.312-16.458 0-1.471-.192-2.897-.554-4.254C196.142 152.144 201 145.889 201 138.5c0-3.744-1.247-7.198-3.35-9.967a12.01 12.01 0 0 1-8.859 6.334c-1.743 20.248-14.26 37.416-31.791 45.744" class="CustomColor"></path><g id="Ornamentos" transform="translate(67)"><g id="hoja" filter="url('#filter5')" opacity=".9" transform="scale(1 -1)rotate(-20 -137.666 -331.914)"><path id="leaf" fill="#5DD362" d="M3.611 10S1.95 0 13 0c7.222 0 12.278 5.714 12.278 5.714s-5.417 8.572-13.722 8.572C5.056 14.286 3.61 10 3.61 10Z"></path><path id="leaf" fill="#42BC53" d="M25.278 5.714s-5.417 8.572-13.722 8.572c-4.334 0-6.428-1.929-7.367-3.215-2.095 1.786-2.817 3.429-2.817 3.5-.072.286-.36.429-.65.429-.072 0-.216 0-.289-.071-.36-.143-.505-.572-.36-.929.071-.214 1.877-4.143 7.366-6.714 7.944-4.143 17.839-1.572 17.839-1.572"></path></g><g id="hoja" filter="url('#filter6')" transform="rotate(60 44.13 92.434)"><path id="leaf" fill="#5DD362" d="M15 12C15 5.9 9 0 9 0S1.7 4.3 1 13s5.8 10.7 5.8 10.7S15 20.8 15 12"></path><path id="leaf" fill="#42BC53" d="M8 29c.1 0 .2 0 .3-.1.5-.2.8-.8.6-1.3-.5-1.5-.9-2.9-1.1-4.4C10 22.2 15 18.9 15 12 15 5.9 9 0 9 0s-.4 1.1-1 3c-.2.5-5.2 13.6-.9 25.3.1.4.5.7.9.7"></path></g><g id="hoja" filter="url('#filter7')" transform="rotate(-120 31.465 30.827)"><path id="leaf" fill="#5DD362" d="M15 12C15 5.9 9 0 9 0S1.7 4.3 1 13s5.8 10.7 5.8 10.7S15 20.8 15 12"></path><path id="leaf" fill="#42BC53" d="M8 29c.1 0 .2 0 .3-.1.5-.2.8-.8.6-1.3-.5-1.5-.9-2.9-1.1-4.4C10 22.2 15 18.9 15 12 15 5.9 9 0 9 0s-.4 1.1-1 3c-.2.5-5.2 13.6-.9 25.3.1.4.5.7.9.7"></path></g><g id="Flor" filter="url('#filter1')" transform="matrix(-1 0 0 1 26 29)"><path fill="#4ACAD3" d="M24.424 20.956a5.17 5.17 0 0 0 .997-3.853 5.17 5.17 0 0 0-2.02-3.43c-.299-.225-.693-.41-1.141-.567.453-.141.854-.313 1.16-.527a5.206 5.206 0 0 0 1.277-7.243 5.206 5.206 0 0 0-7.242-1.277c-.306.215-.604.533-.893.911.006-.475-.033-.909-.143-1.267a5.16 5.16 0 0 0-2.532-3.07A5.17 5.17 0 0 0 9.926.25a5.207 5.207 0 0 0-3.453 6.493c.11.356.314.735.582 1.124-.448-.151-.869-.243-1.241-.25a5.206 5.206 0 0 0-5.29 5.11 5.18 5.18 0 0 0 .937 3.066 5.2 5.2 0 0 0 4.171 2.223c.373.006.796-.071 1.25-.206-.283.38-.5.75-.621 1.103a5.2 5.2 0 0 0 .662 4.68 5.17 5.17 0 0 0 2.561 1.93 5.206 5.206 0 0 0 6.61-3.225c.12-.352.178-.779.19-1.252.273.386.56.708.857.932a5.17 5.17 0 0 0 3.853.997 5.16 5.16 0 0 0 3.43-2.02Z"></path><path fill="#FFF" d="M11.178 8.64a1.444 1.444 0 1 1 2.763-.845c.233.763-.232 4.182-.232 4.182s-2.298-2.574-2.53-3.337Zm-2.242 5.797a1.444 1.444 0 1 1 .05-2.888c.798.014 3.905 1.513 3.905 1.513s-3.158 1.389-3.955 1.375m6.057-2.018s1.738-2.98 2.392-3.438a1.444 1.444 0 1 1 1.657 2.366c-.654.458-4.049 1.072-4.049 1.072m-3.073 6.838a1.444 1.444 0 0 1-.895-1.836c.26-.755 2.646-3.246 2.646-3.246s.345 3.432.086 4.187a1.445 1.445 0 0 1-1.837.895m5.32-1.96c-.638-.48-2.27-3.52-2.27-3.52s3.37.732 4.008 1.212a1.444 1.444 0 1 1-1.738 2.307Z"></path></g><g id="Flor" filter="url('#filter2')" transform="translate(20 16)"><path fill="#FDB599" d="m30.526 33.098.258-2.314 2.314-.26c2.847-.319 5.11-2.116 6.054-4.81 1.066-3.042.065-6.359-2.547-8.281l-1.874-1.38.932-2.134c1.229-2.806.645-5.895-1.52-8.061-2.167-2.166-5.256-2.75-8.063-1.522l-2.133.933-1.38-1.875C20.644.786 17.327-.218 14.284.848c-2.692.943-4.49 3.207-4.809 6.054l-.26 2.313-2.313.26c-2.847.319-5.11 2.117-6.054 4.81-.938 2.676-.298 5.56 1.669 7.528a8 8 0 0 0 .877.753l1.875 1.38-.934 2.134c-1.226 2.807-.643 5.896 1.523 8.062s5.255 2.749 8.062 1.523l2.134-.934 1.38 1.875c1.917 2.61 5.24 3.612 8.283 2.547 2.693-.945 4.49-3.208 4.809-6.055"></path><path fill="#FFF" d="M22.882 25.19a1.44 1.44 0 0 1-2.782.746C19.894 25.17 20 20 20 20s-2.492 4.529-3.055 5.091a1.44 1.44 0 0 1-2.036-2.036C15.47 22.492 20 20 20 20s-5.168.106-5.936-.1a1.44 1.44 0 0 1 .745-2.782C15.577 17.324 20 20 20 20s-2.676-4.423-2.882-5.19a1.44 1.44 0 0 1 2.782-.746c.206.768.1 5.936.1 5.936s2.492-4.529 3.055-5.091a1.44 1.44 0 0 1 2.036 2.036C24.53 17.508 20 20 20 20s5.169-.106 5.936.1a1.44 1.44 0 0 1-.745 2.782C24.423 22.676 20 20 20 20s2.675 4.422 2.882 5.19"></path></g><g id="Flor" filter="url('#filter3')" transform="translate(89 26)"><path fill="#F7D30C" d="M34.758 29.822a7.36 7.36 0 0 0 1.418-5.483 7.35 7.35 0 0 0-2.874-4.88c-.426-.321-.987-.584-1.625-.808.645-.201 1.216-.445 1.652-.75 3.342-2.34 4.158-6.964 1.817-10.307-2.34-3.342-6.964-4.157-10.306-1.817-.436.306-.86.758-1.27 1.296.008-.676-.048-1.294-.204-1.803A7.35 7.35 0 0 0 19.763.9a7.36 7.36 0 0 0-5.638-.543C10.223 1.55 8.019 5.695 9.21 9.597c.156.507.447 1.046.83 1.6-.638-.216-1.237-.346-1.768-.355-4.08-.071-7.456 3.19-7.528 7.27a7.37 7.37 0 0 0 1.334 4.363 7.4 7.4 0 0 0 5.936 3.164c.53.01 1.133-.1 1.777-.293-.4.54-.71 1.069-.883 1.57a7.4 7.4 0 0 0 .943 6.66 7.36 7.36 0 0 0 3.645 2.746c3.858 1.329 8.077-.73 9.405-4.588.173-.502.255-1.109.271-1.782.39.549.797 1.007 1.22 1.326a7.35 7.35 0 0 0 5.484 1.418 7.35 7.35 0 0 0 4.88-2.874Z"></path><path fill="#FFF" d="M15.908 12.295a2.055 2.055 0 1 1 3.93-1.202c.332 1.086-.33 5.95-.33 5.95s-3.269-3.662-3.6-4.748m-3.192 8.25a2.055 2.055 0 1 1 .072-4.11c1.135.02 5.558 2.153 5.558 2.153s-4.495 1.977-5.63 1.957m8.62-2.872s2.474-4.241 3.404-4.892a2.055 2.055 0 1 1 2.358 3.367c-.93.651-5.762 1.525-5.762 1.525m-4.373 9.731a2.055 2.055 0 0 1-1.274-2.613c.37-1.073 3.765-4.62 3.765-4.62s.492 4.886.123 5.96a2.056 2.056 0 0 1-2.614 1.273m7.57-2.79c-.907-.683-3.23-5.008-3.23-5.008s4.797 1.042 5.704 1.725a2.055 2.055 0 1 1-2.474 3.283"></path></g><g id="Flor" filter="url('#filter4')" transform="translate(48)"><path fill="#FF7398" d="M54.138 31.546c1.825-6.983-5.994-12.414-8.953-14.184.514-2.934 1.672-12.561-4.468-16.116C34.612-2.288 26.924 3.45 24.6 5.394q-.3-.189-.703-.423C20.83 3.196 13.13-.381 7.85 4.736 2.205 10.204 5.537 18.74 6.805 21.434c-2.16 2.01-8.384 8.592-5.818 15.59.706 1.929 2.011 3.456 3.882 4.538 4.03 2.334 9.607 1.958 11.723 1.707.993 1.88 3.83 6.712 7.888 9.061 1.67.967 3.375 1.413 5.07 1.325 6.905-.358 9.916-9.995 10.67-12.912 2.861-.396 12.086-2.199 13.918-9.197"></path><path fill="#FFF" d="M27.764 25.603s3.685 8.188.354 8.71c-3.334.521-1.46-8.591-1.46-8.591s-7.112 6.007-8.15 3.028c-1.04-2.979 7.7-4.048 7.7-4.048s-7.987-4.692-5.393-6.836 6.216 6.092 6.216 6.092 1.945-8.92 4.82-7.254c2.876 1.664-3.857 7.811-3.857 7.811s8.877-.99 8.37 2.352c-.505 3.342-8.6-1.264-8.6-1.264"></path></g></g><g id="Arete" transform="translate(182 129)"><rect id="Cadenita" width="2" height="39" x="9" y="0" fill="#E6E6E6" rx="1"></rect><path id="Rayo" fill="#9177FF" d="M20 37h-9.43L17 20H6L0 41h8.636L4 60z"></path></g></g></g></g>',1),f9=[u9];function m9(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...f9])}const h9={render:m9},p9=e.createStaticVNode('<g id="Top"><defs><path id="ShortHairFrizzle-path2" d="M0 0h264v280H0z"></path><path id="ShortHairFrizzle-path1" d="M90.91 55.361h84.176c18.247-10.527 21.673-29.21 8.764-45.435-3.214-4.04-8.764 11.75-25.821 12.724s-15.42-6.3-33.571-3.576c-18.152 2.724-16.146 17.304-27.99 20.803q-11.846 3.499-5.558 15.484"></path></defs><mask id="ShortHairFrizzle-mask2" fill="#fff"><use href="#ShortHairFrizzle-path2"></use></mask><g id="Top/Short-Hair/Frizzle" mask="url('#ShortHairFrizzle-mask2')"><use fill="var(--avataaar-hair-color)" class="CustomColor" href="#ShortHairFrizzle-path1" transform="translate(-1)"></use></g></g>',1),g9=[p9];function y9(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...g9])}const k9={render:y9},x9=e.createStaticVNode('<g id="Top"><defs><path id="WinterHat2-path3" d="M0 0h264v280H0z"></path><path id="WinterHat2-path1" d="M72 21c54.773 0 72 47.803 72 82.045v73.865c0 19.495-22.633 19.537-22.633-10.921V86.535c0-6.075-3.732-9-9.816-9H32.45c-6.084 0-9.816 2.925-9.816 9v79.454C22.633 196.447 0 196.405 0 176.91v-73.865C0 68.803 17.227 21 72 21"></path><path id="WinterHat2-path2" d="M101.428 98.169c-2.513 2.294-5.19 3.325-8.575 2.604-.582-.124-2.957-4.538-8.853-4.538-5.897 0-8.27 4.414-8.853 4.538-3.385.721-6.062-.31-8.576-2.604-4.725-4.313-8.654-10.26-6.293-16.75 1.23-3.382 3.232-7.095 6.873-8.173 3.887-1.15 9.346-.002 13.264-.788 1.27-.254 2.656-.707 3.585-1.458.929.75 2.316 1.204 3.585 1.458 3.918.786 9.376-.362 13.264.788 3.64 1.078 5.642 4.79 6.873 8.173 2.361 6.49-1.568 12.437-6.294 16.75M140.081 26c-3.41 8.4-2.093 18.858-2.724 27.676-.513 7.167-2.02 17.91-8.384 22.539-3.255 2.367-9.179 6.345-13.431 5.235-2.927-.764-3.24-9.16-7.087-12.303-4.363-3.565-9.812-5.131-15.306-4.89-2.37.105-7.165.08-9.15 1.903-1.983-1.823-6.777-1.798-9.148-1.902-5.494-.242-10.943 1.324-15.306 4.889-3.847 3.143-4.16 11.54-7.087 12.303-4.252 1.11-10.176-2.868-13.431-5.235-6.365-4.63-7.87-15.372-8.384-22.54-.63-8.817.686-19.275-2.724-27.675-1.66 0-.565 16.129-.565 16.129v20.356c.032 15.288 9.581 38.17 30.754 46.908C63.286 111.53 75.015 115 84 115s20.714-3.14 25.892-5.277c21.173-8.737 30.722-31.95 30.754-47.238V42.13S141.74 26 140.081 26"></path></defs><g id="Top/Accessories/Winter-Hat-2" transform="translate(-1)"><g id="hat" transform="translate(61)"><g id="string" fill="#F4F4F4" transform="translate(0 176)"><circle id="puff" cx="9" cy="65" r="9"></circle><path d="M8 0h2v58H8z"></path></g><g id="string" fill="#F4F4F4" transform="translate(126 168)"><circle id="puff" cx="9" cy="65" r="9"></circle><path d="M8 0h2v58H8z"></path></g><circle id="puff" cx="72" cy="20" r="20" fill="#F4F4F4"></circle><mask id="WinterHat2-mask2" fill="#fff"><use href="#WinterHat2-path1"></use></mask><use fill="var(--avataaar-top-color)" class="CustomColor" href="#WinterHat2-path1"></use><path id="color-dark" fill="#000" d="M-1 21h146v46H-1z" mask="url('#WinterHat2-mask2')" opacity=".2"></path><g id="light-triangles" fill="#FFF" opacity=".5" transform="translate(29 32)"><path id="Triangle" d="M12.5 0 25 18H0z" transform="rotate(180 12.5 9)"></path><path id="Triangle" d="M43.5 0 56 18H31z" transform="rotate(180 43.5 9)"></path><path id="Triangle" d="M74.5 0 87 18H62z" transform="rotate(180 74.5 9)"></path></g><g id="dark-triangles" fill="#000" opacity=".5" transform="translate(13 41)"><path id="Triangle" d="M12.5 0 25 18H0zm31 0L56 18H31zm31 0L87 18H62zm31 0L118 18H93z"></path></g></g></g></g>',1),b9=[x9];function w9(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...b9])}const E9={render:w9},v9=e.createStaticVNode('<g id="Top"><defs><path id="LongHairFro-path1" d="M0 0h264v280H0z"></path><path id="LongHairFro-path2" d="M180.666 104.495A11.95 11.95 0 0 1 182 110v13c0 6.019-4.43 11.002-10.209 11.867-1.743 20.248-14.26 37.416-31.791 45.744v9.443c3.832 1.896 8.059 2.946 12.5 2.946 7.621 0 14.61-3.093 20.059-8.242q2.193.241 4.441.242c18.39 0 34.26-12.316 41.622-30.116C224.9 149.814 229 141.454 229 132a32 32 0 0 0-.426-5.223C230.786 120.339 232 113.33 232 106c0-12.866-3.739-24.736-10.046-34.275Q222 70.869 222 70c0-10.957-5.507-20.443-13.53-25.043-7.31-17.588-22.73-29.966-40.773-30.9C163.274 9.075 157.201 6 150.5 6q-1.427.001-2.812.182C137.91 2.196 127.211 0 116 0S94.09 2.196 84.312 6.182A22 22 0 0 0 81.5 6c-6.701 0-12.774 3.075-17.197 8.057-18.044.934-33.463 13.312-40.774 30.9C15.507 49.557 10 59.043 10 70q0 .87.046 1.725C3.739 81.265 0 93.135 0 106c0 7.331 1.214 14.34 3.426 20.777A32 32 0 0 0 3 132c0 9.454 4.1 17.814 10.378 22.884C20.74 172.684 36.61 185 55 185q2.248-.001 4.441-.242C64.889 189.907 71.879 193 79.5 193c4.441 0 8.668-1.05 12.5-2.946v-9.443c-17.53-8.328-30.048-25.496-31.791-45.744C54.43 134.002 50 129.02 50 123v-13c0-1.983.481-3.854 1.333-5.502 2.702-.802 5.677-3.053 8.658-6.33l.009-.002v-.009c6.866-7.556 13.755-20.555 17.37-33.822 11.116 1.737 24.535 2.752 38.984 2.752 14.159 0 27.33-.975 38.314-2.649 3.62 13.226 10.486 26.172 17.332 33.71v.018l.02.003c2.976 3.272 5.947 5.522 8.646 6.326"></path><path id="LongHairFro-path3" d="M65.18 77.737c2.183-1.632 15.227-2.258 17.578-3.648.734-.434 1.303-.873 1.742-1.309.439.436 1.009.875 1.742 1.31 2.351 1.389 15.395 2.015 17.578 3.647 2.21 1.654 3.824 5.448 3.647 8.414-.212 3.56-4.106 12.052-13.795 13.03-2.114-2.353-5.435-3.87-9.172-3.87s-7.058 1.517-9.172 3.87c-9.69-.978-13.583-9.47-13.795-13.03-.176-2.966 1.437-6.76 3.647-8.414m.665 17.164.017.007zm79.018-38.916c-.389-5.955-1.585-11.833-2.629-17.699-.281-1.579-1.81-12.286-2.5-12.286-.232 9.11-1.032 18.08-2.064 27.14-.309 2.708-.632 5.416-.845 8.134-.171 2.196.135 4.848-.397 6.972-.679 2.706-4.08 5.232-6.725 6.165-6.6 2.326-12.105-7.303-17.742-10.12-7.318-3.656-19.897-4.527-27.38.239-7.645-4.766-20.224-3.895-27.542-.239-5.637 2.817-11.142 12.446-17.742 10.12-2.645-.933-6.047-3.459-6.725-6.165-.532-2.124-.226-4.776-.397-6.972-.213-2.718-.536-5.426-.845-8.135C30.298 44.08 29.497 35.11 29.265 26c-.689 0-2.218 10.707-2.5 12.286-1.043 5.866-2.24 11.744-2.627 17.7-.4 6.119.077 12.181 1.332 18.177a165 165 0 0 0 2.049 8.541c.834 3.143-.32 9.262.053 12.488.707 6.104 3.582 18.008 6.811 23.259 1.561 2.538 3.39 4.123 5.433 6.168 1.967 1.97 2.788 5.021 4.91 7.118 3.956 3.908 9.72 6.234 15.64 6.806C65.677 143.05 74.506 146 84.5 146s18.823-2.95 24.135-7.457c5.919-.572 11.683-2.898 15.64-6.806 2.121-2.097 2.942-5.149 4.909-7.118 2.042-2.045 3.872-3.63 5.433-6.168 3.229-5.251 6.104-17.155 6.81-23.259.374-3.226-.78-9.345.054-12.488.75-2.828 1.45-5.676 2.05-8.54 1.254-5.997 1.73-12.06 1.332-18.179"></path></defs><mask id="LongHairFro-mask1" fill="#fff"><use href="#LongHairFro-path1"></use></mask><g id="Top/Long-Hair/Fro" mask="url('#LongHairFro-mask1')"><g transform="translate(-1)"><path id="Shadow" fill="#000" d="M67 109.778c9.038-1.06 21.922-20.447 27.37-40.443 11.116 1.737 24.535 2.752 38.984 2.752 14.159 0 27.33-.975 38.314-2.649 5.462 19.953 18.31 39.269 27.332 40.339V89c0-22.884-11.647-43.048-29.336-54.887-.528 2.482-.88 5.222-1.04 8.184-10.34-1.404-22.396-2.21-35.27-2.21-13.164 0-25.472.842-35.964 2.306-.158-3-.512-5.775-1.047-8.286C78.65 45.947 67 66.113 67 89z" opacity=".16"></path><use id="Hair" fill="var(--avataaar-hair-color)" class="CustomColor" href="#LongHairFro-path2" transform="translate(17)"></use></g></g></g>',1),C9=[v9];function S9(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...C9])}const B9={render:S9},V9=e.createStaticVNode('<g id="Top"><defs><path id="ShortHairShaggy-path2" d="M0 0h264v280H0z"></path><path id="ShortHairShaggy-path1" d="M198.747 37.856c-5.14-3.832-11.219-7.116-17.56-8.378-6.446-1.282-10.358-1.593-16.704-.073-1.633.392-2.184.78-3.62-.148-1.212-.783-9.663-9.49-35.421-4.657-26.035 4.885-33.77 44.075-43.427 45.566-3.48.537-7.781-.384-7.916-2.527-3.963 6.034-5.008 14.007-3.327 21.074 1.447 6.086 4.497 11.804 9.989 15.137 4.726 2.867 11.26 4.116 16.72 3.587 2.486-.24 4.746-.763 7.033-1.766 2.759-1.21 4.957-3.39 7.664-4.543a54 54 0 0 1-9.176 6.418c-1.64.907-3.304 1.532-5.113 2.024-1.236.336-3.761 1.481-4.956 1.182 7.807 1.396 15.16.18 22.32-3.163 3.23-1.508 6.338-3.332 9.19-5.476 2.833-2.13 6.095-4.307 8.31-7.11-.93 1.204.698-.586.913-.805a67 67 0 0 0 1.787-1.895c1.002-1.104 1.998-2.228 2.93-3.391 1.995-2.486 3.852-5.082 5.508-7.803 1.678-2.756 8.359-13.873 10.375-16.49-1.905 5.708-3.98 11.418-6.407 16.925 4.713-1.47 9.284-5.544 12.295-9.34 3.392-4.276 5.4-9.268 6.108-14.666 3.826 10.416 12.785 18.63 22.032 24.295-2.003-3.73-5.055-6.885-7.052-10.678 9.191 9.329 24.568 13.893 28.595 27.574 1.033-4.758 4.353-8.58 5.348-13.433 1.104-5.389 1.896-11.11 1.72-16.616-.396-12.242-8.631-23.723-18.158-30.824"></path></defs><mask id="ShortHairShaggy-mask2" fill="#fff"><use href="#ShortHairShaggy-path2"></use></mask><g id="Top/Short-Hair/Shaggy" mask="url('#ShortHairShaggy-mask2')"><use fill="var(--avataaar-hair-color)" class="CustomColor" href="#ShortHairShaggy-path1" transform="matrix(-1 0 0 1 285.93 0)"></use></g></g>',1),M9=[V9];function N9(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...M9])}const A9={render:N9},T9=e.createStaticVNode('<g id="Top"><defs><path id="WinterHat3-path3" d="M0 0h264v280H0z"></path><path id="WinterHat3-path1" d="M66 0c36.45 0 66 29.55 66 66v5H0v-5C0 29.55 29.55 0 66 0"></path><path id="WinterHat3-path2" d="M67.285 61.451Q91.202 44 133.073 44q41.869 0 65.659 17.45A8 8 0 0 1 202 67.9v30.47a4 4 0 0 1-6.135 3.383Q170.902 85.999 133.805 86q-37.383 0-63.73 15.994A4 4 0 0 1 64 98.575V67.914a8 8 0 0 1 3.285-6.463"></path></defs><g id="Top/Accessories/Winter-Hat-3" transform="translate(-1)"><g id="hat" transform="translate(67 12)"><circle id="puff" cx="66" cy="8" r="20" fill="#F4F4F4"></circle><use fill="var(--avataaar-top-color)" class="CustomColor" href="#WinterHat3-path1"></use></g><g id="hat-front"><use filter="url('#WinterHat3-path2')" href="#WinterHat3-path2"></use><use fill="#F4F4F4" href="#WinterHat3-path2"></use></g></g></g>',1),D9=[T9];function L9(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...D9])}const F9={render:L9},$9=e.createStaticVNode('<g id="Top"><defs><path id="LongHairFroBand-path1" d="M0 0h264v280H0z"></path><path id="LongHairFroBand-path2" d="M80.02 73.81A55.9 55.9 0 0 0 77 92v6.166c-5.675.952-10 5.888-10 11.834v13c0 6.019 4.43 11.002 10.209 11.867 1.743 20.248 14.26 37.416 31.791 45.744v10.944A36.4 36.4 0 0 1 93.5 195a36.35 36.35 0 0 1-23.19-8.312 54 54 0 0 1-5.81.312c-21.094 0-39.337-12.208-48.049-29.945C8.934 151.924 4 143.288 4 133.5c0-2.115.23-4.175.667-6.159A57.9 57.9 0 0 1 1 107c0-12.756 4.118-24.55 11.097-34.127A29 29 0 0 1 12 70.5c0-11.297 6.573-21.06 16.104-25.67 8.433-18.128 26.454-30.894 47.546-31.78A28.4 28.4 0 0 1 95.5 5c2.327 0 4.589.279 6.754.805C111.776 2.058 122.148 0 133 0c10.346 0 20.255 1.87 29.408 5.292A29 29 0 0 1 166.5 5a28.4 28.4 0 0 1 19.85 8.05c21.092.886 39.113 13.652 47.546 31.78C243.426 49.44 250 59.203 250 70.5q0 1.2-.097 2.373C256.882 82.45 261 94.243 261 107a57.9 57.9 0 0 1-3.667 20.341A28.6 28.6 0 0 1 258 133.5c0 9.788-4.934 18.424-12.451 23.555C236.837 174.792 218.594 187 197.5 187a54 54 0 0 1-5.81-.312A36.35 36.35 0 0 1 168.5 195c-4.018 0-7.884-.65-11.5-1.849v-12.54c17.53-8.328 30.048-25.496 31.791-45.744C194.57 134.002 199 129.02 199 123v-13c0-5.946-4.325-10.882-10-11.834V92c0-5.441-.776-10.702-2.224-15.676l1.377 12.87-11.34-24-45.136-19.523-30.114 10.557L80.065 76.42l-.045-2.609Z"></path></defs><mask id="LongHairFroBand-mask1" fill="#fff"><use href="#LongHairFroBand-path1"></use></mask><g id="Top/Long-Hair/Fro-+-Band" mask="url('#LongHairFroBand-mask1')"><g transform="translate(-1)"><use fill="var(--avataaar-hair-color)" class="CustomColor" href="#LongHairFroBand-path2"></use><path id="Band" fill="#92D9FF" stroke="none" d="M76.631 98.975A48.6 48.6 0 0 1 76 91.152C76 62.35 101.296 39 132.5 39S189 62.35 189 91.152c0 2.659-.216 5.271-.631 7.823-4.09-25.092-27.545-44.33-55.869-44.33s-51.78 19.238-55.869 44.33"></path></g></g></g>',1),P9=[$9];function _9(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...P9])}const O9={render:_9},R9=e.createStaticVNode('<g id="Top"><defs><path id="ShortHairShaggyMullet-path1" d="M0 0h264v280H0z"></path><path id="ShortHairShaggyMullet-path2" d="M175.126 166.898c.715 2.24 1.749 4.333 3.43 5.788 1.62 1.404 4.512 1.06 6.543 1.117 1.672.048 3.346.053 5.016-.02.839-.036 1.213 1.015.534 1.499q-.195.139-.39.262a39 39 0 0 1-3.25 1.812c-2.524 1.258-5.188 2.244-7.982 2.734-1.916.337-3.816.4-5.654.177a9.8 9.8 0 0 0 1.699 1.94c1.73 1.501 4.816 1.133 6.983 1.194 1.784.052 3.57.057 5.353-.02.895-.039 1.295 1.084.57 1.601a8 8 0 0 1-.416.28 42 42 0 0 1-3.469 1.937c-2.693 1.345-5.536 2.398-8.518 2.922-5.5.966-10.87-.177-15.194-3.708a25 25 0 0 1-3.381-3.36v-2.442a56.2 56.2 0 0 0 18.126-13.713m-93.81-15.304a140 140 0 0 1-2.31 4.597c-4.795 9.11-10.764 20.602-22.507 21.405-1.088.075-1.519 1.347-.67 1.992 11.12 8.453 36.432 13.6 45.445 11.982a54 54 0 0 0 7.726-1.96v-8.999a56.2 56.2 0 0 1-27.685-29.017Zm114.59-82.914c.175 5.507-.617 11.227-1.721 16.616-.995 4.852-4.315 8.675-5.348 13.433-4.027-13.68-19.404-18.245-28.595-27.574 1.997 3.793 5.049 6.948 7.052 10.678-9.247-5.665-18.206-13.88-22.032-24.295-.707 5.398-2.716 10.39-6.108 14.666-3.011 3.796-7.582 7.87-12.295 9.34 2.428-5.507 4.502-11.217 6.407-16.925-2.016 2.617-8.697 13.734-10.375 16.49-1.656 2.72-3.513 5.317-5.507 7.803-.933 1.163-1.929 2.287-2.93 3.391a67 67 0 0 1-1.788 1.895c-.215.219-1.842 2.01-.912.806-2.216 2.802-5.478 4.979-8.31 7.109-2.853 2.144-5.96 3.968-9.192 5.476-7.159 3.343-14.512 4.56-22.32 3.163 1.196.299 3.721-.846 4.957-1.182 1.809-.492 3.474-1.117 5.113-2.024a54 54 0 0 0 9.176-6.418c-2.707 1.152-4.905 3.334-7.664 4.543-2.287 1.003-4.547 1.526-7.032 1.766-5.462.529-11.995-.72-16.721-3.587-5.492-3.333-8.542-9.051-9.99-15.137-1.68-7.067-.635-15.04 3.328-21.074.135 2.143 4.436 3.064 7.916 2.527 9.658-1.49 15.403-38.048 40.427-44.566 19.961-5.2 34.21 3.874 35.42 4.657 1.437.928 1.988.54 3.621.148 6.346-1.52 13.258-2.209 19.705-.927 6.34 1.262 12.418 4.546 17.559 8.378 9.527 7.101 17.762 18.582 18.159 30.824"></path><path id="ShortHairShaggyMullet-path3" d="M65.18 77.737c2.183-1.632 15.227-2.258 17.578-3.648.734-.434 1.303-.873 1.742-1.309.439.436 1.009.875 1.742 1.31 2.351 1.389 15.395 2.015 17.578 3.647 2.21 1.654 3.824 5.448 3.647 8.414-.212 3.56-4.106 12.052-13.795 13.03-2.114-2.353-5.435-3.87-9.172-3.87s-7.058 1.517-9.172 3.87c-9.69-.978-13.583-9.47-13.795-13.03-.176-2.966 1.437-6.76 3.647-8.414m.665 17.164.017.007zm79.018-38.916c-.389-5.955-1.585-11.833-2.629-17.699-.281-1.579-1.81-12.286-2.5-12.286-.232 9.11-1.032 18.08-2.064 27.14-.309 2.708-.632 5.416-.845 8.134-.171 2.196.135 4.848-.397 6.972-.679 2.706-4.08 5.232-6.725 6.165-6.6 2.326-12.105-7.303-17.742-10.12-7.318-3.656-19.897-4.527-27.38.239-7.645-4.766-20.224-3.895-27.542-.239-5.637 2.817-11.142 12.446-17.742 10.12-2.645-.933-6.047-3.459-6.725-6.165-.532-2.124-.226-4.776-.397-6.972-.213-2.718-.536-5.426-.845-8.135C30.298 44.08 29.497 35.11 29.265 26c-.689 0-2.218 10.707-2.5 12.286-1.043 5.866-2.24 11.744-2.627 17.7-.4 6.119.077 12.181 1.332 18.177a165 165 0 0 0 2.049 8.541c.834 3.143-.32 9.262.053 12.488.707 6.104 3.582 18.008 6.811 23.259 1.561 2.538 3.39 4.123 5.433 6.168 1.967 1.97 2.788 5.021 4.91 7.118 3.956 3.908 9.72 6.234 15.64 6.806C65.677 143.05 74.506 146 84.5 146s18.823-2.95 24.135-7.457c5.919-.572 11.683-2.898 15.64-6.806 2.121-2.097 2.942-5.149 4.909-7.118 2.042-2.045 3.872-3.63 5.433-6.168 3.229-5.251 6.104-17.155 6.81-23.259.374-3.226-.78-9.345.054-12.488.75-2.828 1.45-5.676 2.05-8.54 1.254-5.997 1.73-12.06 1.332-18.179"></path></defs><mask id="ShortHairShaggyMullet-mask1" fill="#fff"><use href="#ShortHairShaggyMullet-path1"></use></mask><g id="Top/Short-Hair/Shaggy-Mullet" mask="url('#ShortHairShaggyMullet-mask1')"><g transform="translate(-1)"><use fill="var(--avataaar-hair-color)" class="CustomColor" href="#ShortHairShaggyMullet-path2"></use><path id="Shadow" fill="#000" stroke="none" d="M175.126 166.898c.715 2.24 1.749 4.333 3.43 5.788 1.62 1.404 4.512 1.06 6.543 1.117 1.672.048 3.346.053 5.016-.02.839-.036 1.213 1.015.534 1.499q-.195.139-.39.262a39 39 0 0 1-3.25 1.812c-2.524 1.258-5.188 2.244-7.982 2.734-1.916.337-3.816.4-5.654.177a9.8 9.8 0 0 0 1.699 1.94c1.73 1.501 4.816 1.133 6.983 1.194 1.784.052 3.57.057 5.353-.02.895-.039 1.295 1.084.57 1.601a8 8 0 0 1-.416.28 42 42 0 0 1-3.469 1.937c-2.693 1.345-5.536 2.398-8.518 2.922-5.5.966-10.87-.177-15.194-3.708a25 25 0 0 1-3.381-3.36v-2.442a56.2 56.2 0 0 0 18.126-13.713m-93.81-15.304a140 140 0 0 1-2.31 4.597c-4.795 9.11-10.764 20.602-22.507 21.405-1.088.075-1.519 1.347-.67 1.992 11.12 8.453 36.432 13.6 45.445 11.982a54 54 0 0 0 7.726-1.96v-8.999a56.2 56.2 0 0 1-27.685-29.017Z" opacity=".16"></path></g></g></g>',1),H9=[R9];function z9(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...H9])}const j9={render:z9},G9=e.createStaticVNode('<g id="Top"><defs><path id="WinterHat4-path5" d="M0 0h264v280H0z"></path><path id="WinterHat4-path1" d="M129.66 38.357A60.8 60.8 0 0 1 134 61v8H2v-8c0-8.025 1.55-15.688 4.366-22.707Q-3.238 18.099 2.636 5.12q11.257-3.414 26.08 5.419C38.486 3.888 50.289 0 63 0h10c12.722 0 24.535 3.895 34.31 10.557q14.84-8.856 26.11-5.437 5.883 12.999-3.76 33.237"></path><path id="WinterHat4-path2" d="M28.716 10.539c-9.957 6.778-17.804 16.426-22.35 27.754Q-3.238 18.099 2.636 5.12q11.257-3.414 26.08 5.419m100.943 27.818c-4.538-11.346-12.386-21.01-22.349-27.8q14.84-8.856 26.11-5.437 5.883 12.999-3.76 33.237Z"></path><path id="WinterHat4-path3" d="M21.862 15.96a61.3 61.3 0 0 0-11.433 14.08Q6.041 17.878 8.927 13.208q3.977-1.72 12.935 2.751Zm103.49 13.714a61.3 61.3 0 0 0-11.274-13.77q8.704-4.278 12.608-2.59 2.83 4.58-1.333 16.36Z"></path><path id="WinterHat4-path4" d="M67.285 61.451Q91.202 44 133.073 44q41.869 0 65.659 17.45A8 8 0 0 1 202 67.9v30.47a4 4 0 0 1-6.135 3.383Q170.902 85.999 133.805 86q-37.383 0-63.73 15.994A4 4 0 0 1 64 98.575V67.914a8 8 0 0 1 3.285-6.463"></path></defs><g id="Top/Accessories/Winter-Hat-4" transform="translate(-1)"><g id="hat" transform="translate(65 4)"><use fill="var(--avataaar-top-color)" class="CustomColor" href="#WinterHat4-path1"></use><use id="shadow" fill="#000" href="#WinterHat4-path2" opacity=".24"></use><use id="light" fill="#FFF" href="#WinterHat4-path3" opacity=".3"></use></g><g id="hat-front"><use filter="url('#WinterHat4-path4')" href="#WinterHat4-path4"></use><use fill="#F4F4F4" href="#WinterHat4-path4"></use></g></g></g>',1),I9=[G9];function q9(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...I9])}const W9={render:q9},U9={Eyepatch:g8,Hat:M8,Hijab:H8,LongHairBigHair:Q8,LongHairBob:du,LongHairBun:Eu,LongHairCurly:Fu,LongHairCurvy:Iu,LongHairDreads:n9,LongHairFrida:h9,LongHairFro:B9,LongHairFroBand:O9,LongHairMiaWallace:b8,LongHairNotTooLong:D8,LongHairShavedSides:I8,LongHairStraight:nu,LongHairStraight2:hu,LongHairStraightStrand:Bu,NoHair:Pu,ShortHairDreads01:Zu,ShortHairDreads02:i9,ShortHairFrizzle:k9,ShortHairShaggy:A9,ShortHairShaggyMullet:j9,ShortHairShortCurly:C8,ShortHairShortFlat:P8,ShortHairShortRound:Z8,ShortHairShortWaved:iu,ShortHairSides:ku,ShortHairTheCaesar:Au,ShortHairTheCaesarSidePart:Hu,Turban:Qu,WinterHat1:d9,WinterHat2:E9,WinterHat3:F9,WinterHat4:W9},Z9=e.createElementVNode("g",{id:"Facial-Hair/Beard-Light",transform:"translate(49 72)"},[e.createElementVNode("defs",null,[e.createElementVNode("path",{id:"BeardLight-path1",d:"M101.428 98.169c-2.513 2.294-5.19 3.325-8.575 2.604-.582-.124-2.957-4.538-8.853-4.538-5.897 0-8.27 4.414-8.853 4.538-3.385.721-6.062-.31-8.576-2.604-4.725-4.313-8.654-10.26-6.293-16.75 1.23-3.382 3.232-7.095 6.873-8.173 3.887-1.15 9.346-.002 13.264-.788 1.27-.254 2.656-.707 3.585-1.458.929.75 2.316 1.204 3.585 1.458 3.918.786 9.376-.362 13.264.788 3.64 1.078 5.642 4.79 6.873 8.173 2.361 6.49-1.568 12.437-6.294 16.75M140.081 26c-3.41 8.4-2.093 18.858-2.724 27.676-.513 7.167-2.02 17.91-8.384 22.539-3.255 2.367-9.179 6.345-13.431 5.235-2.927-.764-3.24-9.16-7.087-12.303-4.363-3.565-9.812-5.131-15.306-4.89-2.37.105-7.165.08-9.15 1.903-1.983-1.823-6.777-1.798-9.148-1.902-5.494-.242-10.943 1.324-15.306 4.889-3.847 3.143-4.16 11.54-7.087 12.303-4.252 1.11-10.176-2.868-13.431-5.235-6.365-4.63-7.87-15.372-8.384-22.54-.63-8.817.686-19.275-2.724-27.675-1.66 0-.565 16.129-.565 16.129v20.356c.032 15.288 9.581 38.17 30.754 46.908C63.286 111.53 75.015 115 84 115s20.714-3.14 25.892-5.277c21.173-8.737 30.722-31.95 30.754-47.238V42.13S141.74 26 140.081 26"})]),e.createElementVNode("use",{fill:"var(--avataaar-facial-hair-color)",class:"CustomColor",href:"#BeardLight-path1"})],-1),Y9=[Z9];function X9(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...Y9])}const K9={render:X9},Q9=e.createElementVNode("g",{id:"Facial-Hair/Beard-Majestic",transform:"translate(49 72)"},[e.createElementVNode("defs",null,[e.createElementVNode("path",{id:"BeardMajestic-path1",d:"M65.18 77.737c2.183-1.632 15.227-2.258 17.578-3.648.734-.434 1.303-.873 1.742-1.309.439.436 1.009.875 1.742 1.31 2.351 1.389 15.395 2.015 17.578 3.647 2.21 1.654 3.824 5.448 3.647 8.414-.212 3.56-4.106 12.052-13.795 13.03-2.114-2.353-5.435-3.87-9.172-3.87s-7.058 1.517-9.172 3.87c-9.69-.978-13.583-9.47-13.795-13.03-.176-2.966 1.437-6.76 3.647-8.414m.665 17.164.017.007zm79.018-38.916c-.389-5.955-1.585-11.833-2.629-17.699-.281-1.579-1.81-12.286-2.5-12.286-.232 9.11-1.032 18.08-2.064 27.14-.309 2.708-.632 5.416-.845 8.134-.171 2.196.135 4.848-.397 6.972-.679 2.706-4.08 5.232-6.725 6.165-6.6 2.326-12.105-7.303-17.742-10.12-7.318-3.656-19.897-4.527-27.38.239-7.645-4.766-20.224-3.895-27.542-.239-5.637 2.817-11.142 12.446-17.742 10.12-2.645-.933-6.047-3.459-6.725-6.165-.532-2.124-.226-4.776-.397-6.972-.213-2.718-.536-5.426-.845-8.135C30.298 44.08 29.497 35.11 29.265 26c-.689 0-2.218 10.707-2.5 12.286-1.043 5.866-2.24 11.744-2.627 17.7-.4 6.119.077 12.181 1.332 18.177a165 165 0 0 0 2.049 8.541c.834 3.143-.32 9.262.053 12.488.707 6.104 3.582 18.008 6.811 23.259 1.561 2.538 3.39 4.123 5.433 6.168 1.967 1.97 2.788 5.021 4.91 7.118 3.956 3.908 9.72 6.234 15.64 6.806C65.677 143.05 74.506 146 84.5 146s18.823-2.95 24.135-7.457c5.919-.572 11.683-2.898 15.64-6.806 2.121-2.097 2.942-5.149 4.909-7.118 2.042-2.045 3.872-3.63 5.433-6.168 3.229-5.251 6.104-17.155 6.81-23.259.374-3.226-.78-9.345.054-12.488.75-2.828 1.45-5.676 2.05-8.54 1.254-5.997 1.73-12.06 1.332-18.179"})]),e.createElementVNode("use",{fill:"var(--avataaar-facial-hair-color)",class:"CustomColor",href:"#BeardMajestic-path1"})],-1),J9=[Q9];function ef(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...J9])}const tf={render:ef},nf=e.createElementVNode("g",{id:"Facial-Hair/Moustache-Fancy",transform:"translate(49 72)"},[e.createElementVNode("defs",null,[e.createElementVNode("path",{id:"MoustacheFancy-path1",d:"M84 69.297c-6.792-3.586-16.422-4.148-21.611-2.165-5.775 2.205-10.884 8.451-19.75 5.696-.37-.114-.73.217-.619.58 1.374 4.51 9.008 7.599 11.602 7.7 11.34.442 20.473-8.278 30.378-8.947 9.906.67 19.04 9.389 30.379 8.947 2.594-.101 10.228-3.19 11.601-7.7.111-.363-.25-.694-.618-.58-8.867 2.755-13.976-3.49-19.75-5.696-5.19-1.983-14.82-1.42-21.612 2.165"})]),e.createElementVNode("use",{fill:"var(--avataaar-facial-hair-color)",class:"CustomColor",href:"#MoustacheFancy-path1"})],-1),af=[nf];function of(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...af])}const rf={render:of},sf=e.createElementVNode("g",{id:"Facial-Hair/Beard-Medium",transform:"translate(49 72)"},[e.createElementVNode("defs",null,[e.createElementVNode("path",{id:"BeardMedium-path1",d:"M105.018 94.13c-3.868 5.591-6.76 1.817-10.88-1.254-2.481-1.849-6.177-4.148-9.634-4.035-3.456-.113-7.152 2.186-9.633 4.035-4.12 3.07-7.013 6.845-10.88 1.254-2.903-4.198-1.688-11.256 1.024-15.227 3.859-5.652 9.094-2.918 14.947-3.563 1.592-.175 3.19-.617 4.542-1.34 1.352.723 2.95 1.165 4.542 1.34 5.854.645 11.089-2.089 14.948 3.563 2.712 3.97 3.926 11.03 1.024 15.227M140.39 26c-3.424 14.075-4.998 28.434-7.481 42.671a319 319 0 0 1-1.685 8.879c-.127.62-.251 2.923-.862 3.214-1.851.884-5.624-3.817-6.633-4.879-2.533-2.666-5.045-5.356-8.13-7.448-6.235-4.227-13.535-6.726-21.13-7.32-3.178-.248-7.475.186-10.47 1.993-2.995-1.807-7.292-2.24-10.47-1.992-7.596.593-14.895 3.092-21.13 7.32-3.085 2.091-5.597 4.781-8.13 7.447-1.01 1.062-4.782 5.763-6.633 4.88-.61-.292-.735-2.595-.862-3.215a319 319 0 0 1-1.685-8.879C32.607 54.434 31.034 40.075 27.61 26c-.997 0-1.871 18.748-1.983 20.495-.452 7.094-.98 14.03-.305 21.131 1.164 12.249 2.377 27.608 11.71 36.962 8.434 8.451 20.678 10.218 31.24 15.553 1.36.687 3.163 1.535 5.108 2.23 2.049 1.563 6.113 2.629 10.794 2.629 4.91 0 9.142-1.173 11.08-2.862a47 47 0 0 0 4.475-1.997c10.56-5.336 22.805-7.102 31.238-15.553 9.334-9.354 10.547-24.713 11.712-36.962.674-7.1.146-14.037-.306-21.131C142.26 44.748 141.387 26 140.39 26"})]),e.createElementVNode("use",{fill:"var(--avataaar-facial-hair-color)",class:"CustomColor",href:"#BeardMedium-path1"})],-1),lf=[sf];function cf(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...lf])}const df={render:cf};function uf(t,n){return e.openBlock(),e.createElementBlock("svg")}const ff={render:uf},mf=e.createElementVNode("g",{id:"Facial-Hair/Moustache-Magnum",transform:"translate(49 72)"},[e.createElementVNode("defs",null,[e.createElementVNode("path",{id:"MoustacheMagnum-path1",d:"M83.998 74.84a6.04 6.04 0 0 1-2.048 1.85c-8.902 4.82-18.073.642-23.074.94-2.416.144-5.535 1.785-6.66.05-1.24-1.913 2.852-12.46 12.505-14.216 7.01-1.275 16.776.138 19.277 3.474 2.5-3.336 12.267-4.749 19.276-3.474 9.654 1.757 13.745 12.303 12.506 14.215-1.125 1.736-4.244.095-6.66-.05-5.001-.297-14.172 3.881-23.074-.94a6.04 6.04 0 0 1-2.048-1.85Z"})]),e.createElementVNode("use",{fill:"var(--avataaar-facial-hair-color)",class:"CustomColor",href:"#MoustacheMagnum-path1"})],-1),hf=[mf];function pf(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...hf])}const gf={render:pf},yf={BeardMajestic:tf,BeardLight:K9,MoustacheFancy:rf,BeardMedium:df,Blank:ff,MoustacheMagnum:gf},kf=e.createStaticVNode('<g id="Clothing/Graphic-Shirt" transform="translate(0 170)"><defs><path id="react-path-1153" d="M165.624 29.268C202.76 32.138 232 63.18 232 101.052V110H32v-8.948c0-38.217 29.775-69.48 67.393-71.855A14 14 0 0 0 99 32.5C99 44.374 113.998 54 132.5 54S166 44.374 166 32.5c0-1.098-.128-2.178-.376-3.232"></path></defs><mask id="react-mask-1154" fill="#fff"><use href="#react-path-1153"></use></mask><use id="Clothes" fill="#E6E6E6" fill-rule="evenodd" href="#react-path-1153"></use><g id="Color/Palette/" fill="var(--avataaar-shirt-color)" fill-rule="evenodd" mask="url(#react-mask-1154)"><path id="Color" d="M0 0h264v110H0z"></path></g><g id="Clothing/Graphic/Bat" fill="#FFF" fill-rule="evenodd"><path id="Batman!" d="M87.685 13.403c-1.393-6.431-6.21-10.15-12.5-11.586-2.526-.577-10.913-2.387-9.607 2.408.593 2.172.263 3.964-1.553 5.766-1.77 1.755-5.231 2.2-6.952-.011-1.474-1.895.427-4.721-.721-6.567-.446-.717-1.216-1.083-2.028-.732-1.141.494-.534 1.555-1.073 2.318-.849 1.203-1.245.826-2.01-.373-.48-.754-.008-1.575-1.246-1.897-1.433-.372-1.903.828-2.032 1.923-.082.687.322 1.792.336 2.488.027 1.364-.09 3.323-.725 4.529-1.125 2.137-2.704 1.453-4.383.096-1.98-1.602-2.561-3.385-2.178-5.817.459-2.917.292-5.709-3.28-3.884-5.02 2.564-9.68 7.135-12.588 11.919-2.445 4.02-4.37 8.893-2.203 13.473 2.21 4.675 5.862 8.69 10.966 9.883 1.321.31 5.092 1.811 6.345.552 1.947-1.957-2.548-3.783-3.435-4.975-1.258-1.69-2.337-4.915-.957-6.822 1.76-2.427 3.6-1.074 5.045.644 1.136 1.348 2.75 4.826 4.506 2.022 1.21-1.931 1.101-5.102 4.4-3.717 4.715 1.978 4.86 11.112 5.7 15.291.367 1.83 2.035 4.064 3.47 1.525.79-1.396.364-4.421.22-5.863-.296-2.985-1.08-5.92-.11-8.877.562-1.71 2.001-4.16 4.13-2.844 1.725 1.066 1.006 5.816 3.353 5.807 2.066-.007 1.502-3.791 2.603-5.039 1.68-1.904 4.916-.999 5.91 1.249 1.336 3.025-2.203 5.126-2.044 7.785.154 2.591 3.494 1.58 4.89.923 2.872-1.35 5.119-3.853 6.676-6.571 2.407-4.204 4.125-10.222 3.075-15.026" transform="translate(77 58)"></path></g></g>',1),xf=[kf];function bf(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...xf])}const wf={render:bf},Ef=e.createStaticVNode('<g id="Clothing/Graphic-Shirt" transform="translate(0 170)"><defs><path id="react-path-1153" d="M165.624 29.268C202.76 32.138 232 63.18 232 101.052V110H32v-8.948c0-38.217 29.775-69.48 67.393-71.855A14 14 0 0 0 99 32.5C99 44.374 113.998 54 132.5 54S166 44.374 166 32.5c0-1.098-.128-2.178-.376-3.232"></path></defs><mask id="react-mask-1154" fill="#fff"><use href="#react-path-1153"></use></mask><use id="Clothes" fill="#E6E6E6" fill-rule="evenodd" href="#react-path-1153"></use><g id="Color/Palette/" fill="var(--avataaar-shirt-color)" fill-rule="evenodd" mask="url(#react-mask-1154)"><path id="Color" d="M0 0h264v110H0z"></path></g><g id="Clothing/Graphic/Cumbia" fill-rule="evenodd" stroke-width="1"><g id="Group" fill="#FFF" transform="translate(77 64)"><path id="Fill-1" d="M10.272 24.132c3.273-.559 5.73-3.554 5.18-6.788-.464-2.724-1.745-.343-2.976.853-1.335 1.298-2.45 2.574-4.536 2.054-3.607-.9-4.858-5.4-3.84-8.48a5.94 5.94 0 0 1 3.478-3.696c1.852-.746 3.204.09 4.748 1.094.289.187 1.73 1.37 1.994 1.25.462-.211.115-2.43.045-2.725-.338-1.421-1.266-2.575-2.617-3.238-3.333-1.635-7.514.489-9.64 3.055-4.884 5.897-.92 18.164 8.164 16.62"></path><path id="Fill-5" d="M20.283 5.038q0 .003 0 0m-1.594 12.865c.503 3.474 2.977 6.5 6.952 6.357 4.278-.155 6.056-4.098 7.008-7.486.957-3.399 2.052-7.683.664-11.093-.42-1.032-.685-2.38-1.716-1.53-1.252 1.033-1.409 4.039-1.515 5.442-.2 2.647-.781 9.97-4.108 10.944-4.179 1.222-4.048-5.847-4-7.977.04-1.896.246-3.734-.342-5.584-.313-.985-.59-2.44-1.528-1.634-1.29 1.108-1.453 3.828-1.544 5.327-.144 2.405-.214 4.842.129 7.234"></path><path id="Fill-7" d="M37.783 20.746c.188.412.624 1.402 1.02 1.679.944.66-.055.708.8-.059.813-.729 1.13-2.717 1.254-3.67.385-2.96-.12-6.108-.087-9.093 1.024 2.218 1.584 4.584 2.386 6.874.554 1.582 1.396 4.804 3.654 4.753 2.443-.055 2.57-3.145 2.894-4.819.461-2.37.97-4.721 1.676-7.037.092 3.91-1.427 10.995 2.108 13.92.014.013 1.432-4.15 1.467-4.406.223-1.691.083-3.444.107-5.148.051-3.597.718-8.003-.3-11.506C54.435 1.1 53.788-.03 52.354.001c-1.825.04-2.233 1.985-2.698 3.298-1.28 3.614-2.445 7.224-3.357 10.94-.548-1.68-5.339-16.421-8.789-10.901-.555.888-.315 2.218-.338 3.196-.044 1.879-.155 3.756-.196 5.635-.061 2.843-.41 5.907.808 8.577"></path><path id="Fill-9" d="M62.02 7.71c.72-.135 5.735-1.727 5.523-.136-.223 1.675-4.633 3.309-5.816 3.876a10.6 10.6 0 0 0-.643-3.567zm5.717-.64s-.027-.035 0 0m.122 8.341c2.272 1.22 1.287 3.417-.426 4.608-.649.45-6.53 1.802-6.513 1.663q.001.005-.004.005c.18-1.694-.257-5.018 1-6.02 1.304-1.04 4.5-.808 5.943-.256m.062-7.995c.009.022.001.002 0 0M57.944 24.26c.224.551.86 1.912 1.566 1.945.86.04.794-1.043.929-1.71 3.441 1.721 8.498-.047 10.907-3.03 2.787-3.45 1.348-8.27-2.579-9.745 2.113-1.688 4.026-5.399 1.255-7.49-2.196-1.655-5.828-1.747-8.123-.302-2.735 1.723-3.85 5.833-4.09 9.006-.255 3.382-1.158 8.125.135 11.326"></path><path id="Fill-11" d="M76.05 15.871c.074 2.07-.15 4.287.332 6.306.171.717.433 1.511.76 2.162.611 1.215.31 1.05 1.032.36 2.172-2.083 1.209-8.575 1.157-11.249-.041-2.078.064-4.28-.513-6.283-.162-.562-1.123-3.348-1.655-3.284-.816.098-1.376 3.93-1.423 4.693-.148 2.396.226 4.895.31 7.295"></path><path id="Fill-13" d="M94.748 16.43c-1.582-.137-3.622.075-5.117.557.697-1.916 1.475-4.054 2.238-5.79q.711-1.635 1.494-3.24c1.278 2.686 1.992 5.828 2.832 8.666q-.72-.13-1.447-.193m5.44.725c-.727-2.78-1.579-5.532-2.426-8.28-.538-1.743-1.13-3.911-2.6-5.168C91 .146 88.635 9.557 87.614 11.94c-.985 2.296-2.216 4.634-2.85 7.049a9.5 9.5 0 0 0-.244 3.652c.205 1.519-.004 1.741 1.294.914 1-.636 1.414-1.792 2.227-2.562.144-.136.218-.668.39-.755.188-.096 1.504.253 1.815.274 2.17.151 4.712-.218 6.715-1.054.205.842 1.627 5.962 2.977 5.773.597-.083.965-3.064.992-3.537.087-1.553-.352-3.049-.742-4.538"></path><path id="Fill-15" d="M109.302 3.432c-.264-1.203-.814-3.292-1.842-2.112-1.39 1.596-1.09 5.173-1.111 7.177-.015 1.451-1.552 12.062.556 11.883-.09 0 .845-1.668.98-1.922.815-1.524 1.131-2.97 1.329-4.722.365-3.237.783-7.111.088-10.304"></path><path id="Fill-17" d="M108.164 24.301c-2.24-2.728-6.311.658-5.041 3.374 1.729 3.7 7.331-.56 5.041-3.374"></path><path id="Fill-19" d="M94.898 28.545c-2.891-.738-6.297-.24-9.249-.152-3.081.092-6.16.264-9.24.357-6.568.198-13.124.092-19.692.038-12.454-.103-24.935.69-37.383.168-2.672-.112-5.545-.713-8.198-.209-.727.139-3.009.543-3.329 1.266-.336.76 1.402 1.555 2.331 1.955 2.422 1.044 5.329.858 7.9.964 2.93.12 5.887.058 8.819-.014 12.075-.297 24.089-1.343 36.18-1.165 6.976.103 13.937.038 20.912.001 3.32-.017 7 .526 10.273-.062.552-.1 3.763-.854 3.807-1.836.02-.453-2.806-1.228-3.13-1.311"></path></g></g></g>',1),vf=[Ef];function Cf(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...vf])}const Sf={render:Cf},Bf=e.createStaticVNode('<g id="Clothing/Graphic-Shirt" transform="translate(0 170)"><defs><path id="react-path-1153" d="M165.624 29.268C202.76 32.138 232 63.18 232 101.052V110H32v-8.948c0-38.217 29.775-69.48 67.393-71.855A14 14 0 0 0 99 32.5C99 44.374 113.998 54 132.5 54S166 44.374 166 32.5c0-1.098-.128-2.178-.376-3.232"></path></defs><mask id="react-mask-1154" fill="#fff"><use href="#react-path-1153"></use></mask><use id="Clothes" fill="#E6E6E6" fill-rule="evenodd" href="#react-path-1153"></use><g id="Color/Palette/" fill="var(--avataaar-shirt-color)" fill-rule="evenodd" mask="url(#react-mask-1154)"><path id="Color" d="M0 0h264v110H0z"></path></g><g id="Clothing/Graphic/Diamond" fill-rule="evenodd" stroke-width="1"><g id="Diamond" fill="#FFF" transform="translate(106 60)"><path id="Fill-21" d="M34.78 27.737c-2.389 2.656-4.857 5.243-7.335 7.82.985-3.553 1.74-7.578 3.204-10.958.417-.962.1-1.084.927-1.493.609-.301 2.078.043 2.807.062 1.557.039 3.15.192 4.696-.05a222 222 0 0 0-4.299 4.619m-15.264 4.061c-2.699-3.282-5.384-6.568-8.658-9.317 1.289.137 2.696-.043 3.958.206 1.944.384 1.837.99 2.82 2.959 1.45 2.906 2.889 5.789 4.05 8.823-.711-.9-1.441-1.785-2.17-2.67m-9.098-12.532c.963-1.575 1.144-2.972 2.92-3.78 2.06-.939 5.3-.742 7.488-.916-1.37 1.523-3.037 3.103-3.604 5.122-.874-1.718-1.962-3.174-3.67-4.17-.215-.107 1.158 4.55 1.338 4.87-1.716-.096-3.522-.408-5.225-.092zm16.406-5.008c1.591.036 3.17.16 4.74.42-1.267 1.674-1.649 3.631-2.099 5.63-.478-2.258-2.209-4.362-3.734-6.048zm-3.498 1.074c.234-.158 4.457 5.086 5.066 5.556-3.312-.008-6.618-.17-9.926-.315 1.907-1.487 3.023-3.688 4.86-5.24m2.686 17.095c-.401 1.349-.777 2.708-1.214 4.047-1.555-4.732-3.862-9.188-6.008-13.674 3.34.088 6.676.209 10.016.256-.82 3.158-1.862 6.245-2.794 9.37m7.23-17.462c1.277 1.128 3.097 3.44 3.686 4.217a10 10 0 0 0 .179.23c.21.261.966 1.255 1.263 1.644-2.227-.226-4.545-.13-6.78-.15.498-2.054 1.104-4.012.584-6.128q.536.086 1.068.187m7.648 5.617c-2.158-2.676-4.37-7.258-7.864-8.077-3.472-.814-7.548-.454-11.074-.23-3.075.194-8.083-.204-10.795 1.593-1.393.923-2.425 3.005-2.908 4.551-.434 1.393.266 2.285-1.246 2.285-.096 0 2.504 3.673 2.81 3.962 2.272 2.14 4.444 4.202 6.457 6.597 2.835 3.374 5.405 8.338 9.145 9.736-.686-.339 2.792-2.967 3.21-3.419 2.11-2.288 4.246-4.554 6.372-6.83 1.938-2.073 4.05-4.03 5.93-6.15 1.435-1.619 1.439-2.175-.037-4.018"></path><path id="Fill-23" d="M6.999 12c.043.014-.909-2.045-.825-1.919-.475-.719-1.046-1.24-1.738-1.727C3.708 7.843.127 7.254 0 7c1.494 2.652 4.167 4.128 6.999 5"></path><path id="Fill-25" d="M22.355 7.196A6.2 6.2 0 0 0 23.15 9c.07.078.859-4.184.85-4.547C23.988 3.832 23.613 0 22.815 0c-1.337 0-.674 6.47-.459 7.196"></path><path id="Fill-27" d="M48.97 5c-2.992 0-9.68 5.854-8.908 9 .005.01.447-.35.35-.283l.057-.043c1.272-1.025 2.718-2.02 3.992-3.206.911-.85 1.987-1.612 2.816-2.54C47.362 7.832 49.263 5 48.97 5"></path></g></g></g>',1),Vf=[Bf];function Mf(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...Vf])}const Nf={render:Mf},Af=e.createStaticVNode('<g id="Clothing/Graphic-Shirt" transform="translate(0 170)"><defs><path id="react-path-1153" d="M165.624 29.268C202.76 32.138 232 63.18 232 101.052V110H32v-8.948c0-38.217 29.775-69.48 67.393-71.855A14 14 0 0 0 99 32.5C99 44.374 113.998 54 132.5 54S166 44.374 166 32.5c0-1.098-.128-2.178-.376-3.232"></path></defs><mask id="react-mask-1154" fill="#fff"><use href="#react-path-1153"></use></mask><use id="Clothes" fill="#E6E6E6" fill-rule="evenodd" href="#react-path-1153"></use><g id="Color/Palette/" fill="var(--avataaar-shirt-color)" fill-rule="evenodd" mask="url(#react-mask-1154)"><path id="Color" d="M0 0h264v110H0z"></path></g><g id="Clothing/Graphic/Pizza" fill-rule="evenodd" stroke-width="1"><g id="Group-2" fill="#FFF" transform="translate(112 59)"><path id="Fill-29" d="M30.933 24.391c-4.082 1.38-8.55 3.324-10.905 7.074-1.847 2.942-1.971-.455-4.55.593-2.508 1.019-1.822 5.223-2.733 7.301-.708-1.191-1.043-2.516-1.935-3.604a6.6 6.6 0 0 0 1.814-1.724c.156-.32-4.792.348-5.076.43-1.411.401-2.74.77-4.088 1.429a79 79 0 0 0 1.965-2.989q.31-1.02 1.108-.006c.748.036 1.178.357 1.962.177 2.915-.667 3.843-6.223.25-5.987a93 93 0 0 0 4.253-8.802c.502 4.291 6.08 2.813 7.719.525 2.14-2.989-.604-8.662-4.484-8.112.581-1.375 1.17-2.762 1.65-4.178 1.092 1.61 3.001 2.39 4.538 3.457a18.2 18.2 0 0 1 4.163 4.006c2.386 3.14 3.793 7.007 6.215 10.052a7 7 0 0 0-1.866.358m9.006-4.388c-.632-5.757-5.15-11.601-9.44-15.176-2.55-2.125-10.24-7.385-13.306-3.34 2.472 1.071 5.2 1.33 7.65 2.489 3.32 1.572 5.922 4.16 8.168 7.055 3.137 4.045 7.97 12.283.474 14.386.518-.338.819-.709 1.228-1.308-1.007-.233-.6-1.878-.954-2.952-.412-1.25-1.21-2.467-1.884-3.582a57 57 0 0 0-3.504-5.171c-1.678-2.186-3.686-3.907-5.977-5.396-.907-.589-1.775-1.11-2.817-1.415-1.349-.394-.907.086-1.276-1.146-.232-.773-.024-1.763-.246-2.592-1.973 1.658-2.615 4.055-3.5 6.381-1.02 2.684-2.122 5.335-3.196 7.997-2.635 6.535-6.034 12.395-9.891 18.247-.672 1.02-2.165 2.95-1.09 4.174.96 1.095 2.33.306 3.386-.139 1.436-.604 3.385-2.164 4.935-1.347 1.998 1.054 1.054 4.984 4.214 4.827 3.114-.154 2.527-5.28 3.527-7.317 2.311 1.685 4.175.64 5.579-1.611 1.626-2.61 3.775-3.657 6.513-4.938 1.12-.524 3.034-1.94 4.2-2.115.966-.145 1.893.883 3.184.837 3.098-.113 4.392-4.253 4.023-6.848"></path><path id="Fill-31" d="M18.537 22.834c-2.425-.445-5.807-.074-6.029 3.153-.136 1.978 1.41 3.848 3.082 4.664 5.122 2.5 9.109-6.688 2.947-7.817"></path><path id="Fill-33" d="M28.336 19.158c-.65-.706-1.703-1.24-2.675-.993.31-.214.568-.6.864-.839-3.156-2.286-5.14 3.479-3.346 5.748 2.717 3.44 8.037-.766 5.157-3.916"></path></g></g></g>',1),Tf=[Af];function Df(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...Tf])}const Lf={render:Df},Ff=e.createStaticVNode('<g id="Clothing/Graphic-Shirt" transform="translate(0 170)"><defs><path id="react-path-1153" d="M165.624 29.268C202.76 32.138 232 63.18 232 101.052V110H32v-8.948c0-38.217 29.775-69.48 67.393-71.855A14 14 0 0 0 99 32.5C99 44.374 113.998 54 132.5 54S166 44.374 166 32.5c0-1.098-.128-2.178-.376-3.232"></path></defs><mask id="react-mask-1154" fill="#fff"><use href="#react-path-1153"></use></mask><use id="Clothes" fill="#E6E6E6" fill-rule="evenodd" href="#react-path-1153"></use><g id="Color/Palette/" fill="var(--avataaar-shirt-color)" fill-rule="evenodd" mask="url(#react-mask-1154)"><path id="Color" d="M0 0h264v110H0z"></path></g><g id="Clothing/Graphic/Selena" fill-rule="evenodd" stroke-width="1"><g id="Selena" fill="#FFF" transform="translate(94 58)"><path id="Bom-Bom" d="M65.303 7.568c-.156.93-1.922 5.089-3.229 2.95-.509-.832.402-3.46.685-4.209.558-1.472.974-1.638 2.263-2.33.109 1.188.411 2.398.281 3.589m-2.984 3.319c.03.012.158.132 0 0m-.008-.007c-.006-.004 0 0 0 0M55.03 6.205c.01.008.053.042 0 0M42.555 11.16c-.207 1.22-.475 2.439-.904 3.6-.17-1.732.103-3.456 1-4.95q-.015.676-.096 1.35m-.01-2.502c-.004-.016-.159-.24 0 0M25.908 18.803c.153-1.533.768-3.017 1.906-4.044-.277 1.625-1.072 2.67-1.906 4.044m49.93-13.506c0 .637-2.06 2.335-2.574 2.803-.879.799-1.815 1.44-3.077 1.254-3.462-.51-2.09-4.206-2.641-6.481-.434-1.788-.879-1.114-2.082-1.227-1.118-.104-1.518-.656-2.682.187-2.096 1.519-3.766 3.496-4.659 5.98-.324-1.695-1.245-4.503-3.452-4.093-1.632.303-2.984 2.926-3.663 4.243-.052-1.198-.668-3.076-2.175-2.218-1.036.589-.991 3.381-1.218 4.41-.465 2.111-1.379 7.617-4.644 6.901 1.029-1.918 3.28-7.97 1.35-9.937-2.712-2.762-4.775 4.156-4.886 5.84-.08 1.205.806 3.944.329 4.692-.585.918-2.428 1.313-3.303.641-1.405-1.078-.85-2.83-.53-4.199.422-1.794.62-3.597.734-5.437.085-1.38 1.286-7.548-1.028-7.632-2.095-.075-2.309 5.138-2.458 6.563-.185 1.751-.296 3.525-.235 5.288.062 1.782.394 2.97-.297 4.643-.74 1.793-4.264 7.17-6.373 3.6 2.24-.983 4.911-5.518 3.71-8.067-1.667-3.534-5.416 1.85-5.96 3.656-.877 2.915-.491 6.722 2.864 7.671 3.493.989 6.19-2.286 7.421-5.18 1.002 1.588 2.845 1.986 4.55 1.505a5.8 5.8 0 0 0 1.89-.947c1.07-.81.444-.509 1.58-.542 3.297-.094 5.096-1.153 6.332-4.545-.015.934.343 2.36 1.598 1.849.974-.397.968-2.01 1.148-2.87.57-2.713 1.466-5.541 3.599-7.422 1.84 2.002.48 5.427 1.69 7.56 1.868 3.288 2.808-2.532 3.1-3.654.057 4.882 5.861 3.084 7.118-.157 3.3 3.515 10.234.349 8.923-4.678"></path><path id="Bidi" d="M69.434 15.349c-3.63 0-7.605 1.026-11.127 1.817a98 98 0 0 0-10.502 2.97c-3.871 1.339-7.812 2.554-11.59 4.122-3.276 1.36-7.508 2.353-9.512 5.416-.004.008 2.102-.088 2.272-.117 1.05-.174 1.952-.543 2.917-.956 1.747-.746 3.482-1.519 5.224-2.276 3.904-1.698 7.98-3.095 11.988-4.554 3.996-1.453 8.095-2.685 12.255-3.625 3.39-.767 7.182-.914 10.303-2.273q-.176.066.23-.091c-.079.038-2.221-.433-2.458-.433m-47.317 5.476c-2.27-.998-5.477-.558-7.835-.239-2.143.29-5.496.935-6.833 1.108-1.106.14-4.406 1.04-5.01-.197-.649-1.331 2.72-5.403 3.456-6.363 3.315-4.32 7.3-9.12 12.08-11.923-.44 1.95-.825 3.918-1.227 5.876-.166.808-.95 5.164.486 5.508.59.14 1.772-2.783 1.87-3.044.823-2.19 1.012-4.71 1.391-7.002.217-1.311 1.2-4.05-.694-4.502-1.629-.389-3.836 1.727-4.923 2.619-3.282 2.692-6.127 5.947-8.787 9.22-1.31 1.613-2.615 3.234-3.714 4.997-.904 1.45-3.09 4.49-2.145 6.282 1.698 3.221 9.84.398 12.432-.032 2.045-.339 4.152-.66 6.227-.376 2.162.295 2.057 1.27 1.339 3.196-1.478 3.96-4.776 7.36-7.724 10.32-1.299 1.303-6.38 7.419-7.66 4.091-.87-2.26-.1-5.035.9-7.114.468-.973 1.089-1.861 1.577-2.824.133-.263.802-2.425.947-2.473-3.87 1.35-6.117 6.585-6.332 10.287-.102 1.741.136 4.324 1.8 5.368s3.226-.227 4.549-1.185c3.642-2.64 6.891-5.998 9.865-9.335 1.626-1.824 8.453-10.287 3.965-12.263"></path></g></g></g>',1),$f=[Ff];function Pf(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...$f])}const _f={render:Pf},Of=e.createStaticVNode('<g id="Clothing/Graphic-Shirt" transform="translate(0 170)"><defs><path id="react-path-1153" d="M165.624 29.268C202.76 32.138 232 63.18 232 101.052V110H32v-8.948c0-38.217 29.775-69.48 67.393-71.855A14 14 0 0 0 99 32.5C99 44.374 113.998 54 132.5 54S166 44.374 166 32.5c0-1.098-.128-2.178-.376-3.232"></path></defs><mask id="react-mask-1154" fill="#fff"><use href="#react-path-1153"></use></mask><use id="Clothes" fill="#E6E6E6" fill-rule="evenodd" href="#react-path-1153"></use><g id="Color/Palette/" fill="var(--avataaar-shirt-color)" fill-rule="evenodd" mask="url(#react-mask-1154)"><path id="Color" d="M0 0h264v110H0z"></path></g><g id="Clothing/Graphic/Skull-Outline" fill-rule="evenodd" stroke-width="1"><g id="Skull" fill="#FFF" transform="translate(113 59)"><path id="Boo!" d="M36.335 17.04c-.18 1.038-.442 2.069-.988 2.989-.72 1.211-2.026 1.707-2.783 2.818-1.193 1.752.392 4.276-.786 5.837-1.266 1.68-4.142.663-5.262 2.892-1.18 2.35.538 5.492-.943 7.83-1.47-.37-1.922-5.886-4.189-2.367-1.452 2.254-.471 3.475-2.649.235-.756-1.125-1.61-2.136-3.096-1.393-1.043.521-1.258 2.837-2.21 3.086-2.333.612-2.418-5.617-3.212-6.796-.436-.648-.842-1.032-1.617-1.277-.672-.213-1.869.215-2.425-.1-1.045-.592-1.186-2.556-1.225-3.598-.074-1.939.575-3.919.04-5.838-.451-1.612-1.887-2.603-2.357-4.183C.1 8.64 11.683 3.895 18.3 3.63c7.74-.31 19.037 4.222 18.036 13.41m1.838-5.316c-1.456-3.441-4.655-6.177-7.915-8.013a18.5 18.5 0 0 0-5.085-1.94c-1.641-.36-3.558-.123-5.125-.576C18.728.812 17.91-.048 16.356.002c-2.118.068-4.319 1.172-6.168 2.086-3.66 1.807-6.771 4.148-8.726 7.743-2.098 3.859-1.9 7.356.349 10.952 2.145 3.434-.974 8.262 2.167 11.526C5.3 33.68 6.6 32.68 7.85 33.34c.962.508.921 3.462 1.188 4.328 1.2 3.893 5.514 5.4 7.506 1.191.94 2.353 4.655 4.764 6.385 1.686 1.082 1.4 2.954 1.995 4.383.795 1.344-1.128 1.492-3.755 1.56-5.343.054-1.238-.497-2.764.454-3.658 1.047-.984 3.194-.57 4.37-1.839 1.34-1.45.789-3.146.892-4.872.104-1.746.416-1.301 1.71-2.562 2.885-2.81 3.374-7.807 1.875-11.343"></path><path id="Boo!" d="M14.42 28.121c2.02-1.822 1.591-7.397 1.424-9.959-.316-4.86-3.355-3.408-5.206-.38-1.4 2.29-4.766 5.994-3.257 8.876 1.202 2.296 5.18 3.136 7.039 1.463m13.37-8.847c-1.034-1.92-1.42-2.212-2.65-3.785-.791-1.011-1.9-2.802-3.404-2.442-2.582.62-1.528 6.612-1.498 8.402.024 1.358-.277 2.765.851 3.728 1.155.986 3.053.897 4.44.69 4.259-.633 4.062-3.253 2.262-6.593M19.24 31.83c-.284-.036.077-.362.12-.587.187.614.326.643-.12.587m1.045-4.31c-2.617-2.77-7.574 6.397-4.08 7.425.805.237 1.4-.363 2.155-.468 1.1-.153 2.024.487 2.973-.522 1.491-1.584.187-5.098-1.048-6.436"></path></g></g></g>',1),Rf=[Of];function Hf(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...Rf])}const zf={render:Hf},jf=e.createStaticVNode('<g id="Clothing/Graphic-Shirt" transform="translate(0 170)"><defs><path id="react-path-1153" d="M165.624 29.268C202.76 32.138 232 63.18 232 101.052V110H32v-8.948c0-38.217 29.775-69.48 67.393-71.855A14 14 0 0 0 99 32.5C99 44.374 113.998 54 132.5 54S166 44.374 166 32.5c0-1.098-.128-2.178-.376-3.232"></path></defs><mask id="react-mask-1154" fill="#fff"><use href="#react-path-1153"></use></mask><use id="Clothes" fill="#E6E6E6" fill-rule="evenodd" href="#react-path-1153"></use><g id="Color/Palette/" fill="var(--avataaar-shirt-color)" fill-rule="evenodd" mask="url(#react-mask-1154)"><path id="Color" d="M0 0h264v110H0z"></path></g><g id="Clothing/Graphic/Bear" fill-rule="evenodd" stroke-width="1"><defs><path id="poly-1" d="M47.892.43v41.49H.453V.43z"></path></defs><g id="Group-76" transform="translate(108 59)"><path id="Fill-74" fill="#FFF" d="M34.447 31.586c-.479 2.816-4.08 7.345-7.147 4.384-3.467-3.344 4.225-4.81 1.481-7.594-1.184-1.2-4.412-.537-6.002-.41-1.49.117-3.866.454-3.296 2.624.433 1.65 1.71.944 2.389 1.892.535.748.308 3.507-.49 4.267-1.002.956-2.189.663-3.584.05-3.192-1.4-4.677-5.312-2.575-8.216 4.155-5.741 20.067-7.059 19.224 3.003M14.985 14.724c.985-.443 2.148-.203 2.732.787.802 1.356-.357 3.173-1.975 2.956-1.707-.23-2.57-2.919-.757-3.743m17.962 1.655c-.856 3.006-5.636-.378-2.936-2.29 1.552-1.099 3.447.491 2.936 2.29m14.88 6.79c-.236-2.38-.9-4.646-2.088-6.73-.623-1.093-1.393-2.111-2.19-3.081-.3-.365-.906-1.008-1.023-1.213-.709-1.24-.638-.362-.247-1.785.616-2.243 1.947-4.08.884-6.49-.99-2.24-3.655-3.293-5.984-3.426a8.2 8.2 0 0 0-3.207.449c-1.035.368-2.001 1.64-2.9 1.9-.698.204-2.685-.46-3.441-.508-1.395-.089-2.798-.05-4.192.034-1.63.096-5.376 1.263-6.913.877-1.015-.255-2.209-1.781-3.381-2.164C11.853.61 10.467.468 9.178.954c-2.285.864-4 3.552-4.053 5.942-.028 1.255.655 2.115.79 3.25.203 1.716.437.357-.487 1.726-.47.697-1.295 1.31-1.824 1.982C.779 17.44-.28 22.732.974 27.074c3.159 10.94 13.668 15.394 24.44 14.793 9.25-.516 23.564-7.718 22.413-18.698"></path></g></g></g>',1),Gf=[jf];function If(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...Gf])}const qf={render:If},Wf=e.createStaticVNode('<g id="Clothing/Graphic-Shirt" transform="translate(0 170)"><defs><path id="react-path-1153" d="M165.624 29.268C202.76 32.138 232 63.18 232 101.052V110H32v-8.948c0-38.217 29.775-69.48 67.393-71.855A14 14 0 0 0 99 32.5C99 44.374 113.998 54 132.5 54S166 44.374 166 32.5c0-1.098-.128-2.178-.376-3.232"></path></defs><mask id="react-mask-1154" fill="#fff"><use href="#react-path-1153"></use></mask><use id="Clothes" fill="#E6E6E6" fill-rule="evenodd" href="#react-path-1153"></use><g id="Color/Palette/" fill="var(--avataaar-shirt-color)" fill-rule="evenodd" mask="url(#react-mask-1154)"><path id="Color" d="M0 0h264v110H0z"></path></g><g id="Clothing/Graphic/Deer" fill="#FFF" fill-rule="evenodd"><path id="oh,-deer!" d="M76.96 16.235c.395 1.425-2.228 2.67-3.106 3.419-1.507 1.283-3.065 2.634-4.825 3.547-.748.388-1.553.703-2.362.935-1.247.357-1.104.107-1.58 1.165-.838 1.86-1.055 4.334-1.812 6.312-1.704 4.454-5.767 14.8-12.267 10.259-2.068-1.445-3.197-4.247-4.36-6.436-1.335-2.512-2.613-5.508-3.381-8.25-.375-1.336-.137-1.79-1.13-2.415-.622-.392-1.679-.493-2.383-.78-1.5-.61-2.813-1.436-4.088-2.43-1.238-.966-6.11-4.951-2.132-5.691 1.825-.34 4.217-.214 6.067-.12 2.027.102 4.073.57 5.876 1.535 1.841.987 1.301.701 3.21.15-3.322-1.126-6.649-2.998-8.884-5.781-1.207-1.503-4-7.654-1.9-9.065 2.52-1.696 2.73 5.346 3.439 6.567 1.592 2.744 4.508 3.78 7.042 5.299-1.74-1.668-3.04-3.505-3.673-5.868-.275-1.025-1.026-3.489-.519-4.486.529-1.04 1.772-1.106 2.458-.22.618.797.462 2.63.674 3.591.35 1.589.921 2.81 1.982 4.04 1.505 1.747 3.417 3.175 5.669 3.728 5.127 1.258 6.92-4.108 7.608-8.245.168-1.013-.08-2.693 1.05-3.18 1.367-.588 1.896.747 1.936 1.782.087 2.314-1.056 5.857-2.166 7.845 2.79-1.732 5.003-4.478 5.899-7.688.33-1.188.062-3.836 1.174-4.503 1.54-.924 2.029.917 1.975 2.022-.319 6.515-5.298 12.44-11.488 14.069 1.518.759 1.318.93 2.848.023.885-.525 1.845-.93 2.827-1.23 1.47-.452 3.055-.682 4.58-.817 1.22-.107 5.274-.817 5.742.917m-18.1 8.386c.86-2.138-2.496-2.216-2.822.095-.416 2.945 2.755 3.176 2.822-.095m-1.93 9.016c.659-2.196-3.526-2.112-3.896-.17-.436 2.291 3.406 1.73 3.896.17M51.702 27c2.324 0 3.272-3.065.997-3.861-2.89-1.013-3.815 3.861-.997 3.861" transform="translate(77 58)"></path></g></g>',1),Uf=[Wf];function Zf(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...Uf])}const Yf={render:Zf},Xf=e.createStaticVNode('<g id="Clothing/Graphic-Shirt" transform="translate(0 170)"><defs><path id="react-path-1153" d="M165.624 29.268C202.76 32.138 232 63.18 232 101.052V110H32v-8.948c0-38.217 29.775-69.48 67.393-71.855A14 14 0 0 0 99 32.5C99 44.374 113.998 54 132.5 54S166 44.374 166 32.5c0-1.098-.128-2.178-.376-3.232"></path></defs><mask id="react-mask-1154" fill="#fff"><use href="#react-path-1153"></use></mask><use id="Clothes" fill="#E6E6E6" fill-rule="evenodd" href="#react-path-1153"></use><g id="Color/Palette/" fill="var(--avataaar-shirt-color)" fill-rule="evenodd" mask="url(#react-mask-1154)"><path id="Color" d="M0 0h264v110H0z"></path></g><g id="Clothing/Graphic/Hola" fill="#FFF" fill-rule="evenodd"><path id="Hola" d="M74.637 16.948c1.28 5.762-.904 11.244-5.33 15.004-2.08 1.768-4.434 3.074-7.056 3.835a25 25 0 0 1-4.497.87c-1.136.111-2.784-.4-3.79-.111-1.12.321-2.559 1.865-3.757 2.362a20 20 0 0 1-2.068.727c-1.506.438-3.065.734-4.613.977-1.602.25-8.283 1.302-7.455-1.637.284-1.01 3.11-2.504 3.724-3.184.454-.502 3.145-3.364 3.019-4.295-.04-.294-1.747-1.63-2.148-2.08-.909-1.019-1.762-2.058-2.245-3.351-.829-2.216-.786-4.998-.51-7.32.688-5.804 3.566-9.659 8.602-12.55 2.855-1.637 5.96-2.538 9.205-2.934 3.956-.483 7.11-.498 10.467 1.75 4.42 2.96 7.275 6.668 8.452 11.937m-5.131 6.988c1.086-.3-.308-3.053-1.079-1.72-.277.48.463 1.889 1.079 1.72m-1.821-5.322c.088.36.434.47.748.427.75-.104.28-.981.301-1.373.04-.749.107-2.639-.172-3.32-.513-1.254-.975-1.014-1.274.214-.267 1.1.123 2.947.397 4.052m-1.048 4.279c.843-.498-1.38-6.176-1.868-6.988-1.892-3.145-2.504 2.431-2.794 3.81-.125.596-1.518 6.781.339 4.787.99-1.064-.558-4.602 2.243-3.78.984.29.272.207.874 1.11.22.33.458 1.5 1.206 1.06Zm-6.342-1.294c.786-1.35-2.665-.721-3.062-.697.094-1.8.445-3.623.44-5.422 0-.475.165-2.191-.958-1.381-.454.327-.298 1.83-.336 2.28-.09 1.057-.948 4.707-.108 5.56.595.603 3.693.22 4.024-.34m-4.799-2.44c.338-1.344-.084-4.253-1.845-4.28-.613-.008-.335.831-.487.92-1.065.621-1.528.542-2.16 1.646-2.486 4.35 3.067 7.445 4.492 1.714m-6.027 3.83c.761-.21.546-9.977-.331-9.983-1.51-.008-.063 4.84-.635 5.49-.17.196-1.026.015-1.25.056-1.14.212-1.89.092-2.24-.606-.312-.62.36-4.88-1.258-2.79q.023 1.107.035 2.213.504 1.072-.376 1.306c-.03.47.392.864.397 1.017.025.771-.484 4.231.9 4.064.885-.107.32-3.481.317-4.03 1.143.027 2.34.155 3.475.008.006.427-.288 3.603.966 3.256ZM63.837 17A19 19 0 0 1 65 18.842q-.999.086-2 .158c.272-.668.544-1.335.837-2m-9.914 0c.145.423.256 3.288-1.355 2.976-.92-.177-.507-1.764-.246-2.091.55-.69.873-.448 1.601-.885" transform="translate(77 58)"></path></g></g>',1),Kf=[Xf];function Qf(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...Kf])}const Jf={render:Qf},em=e.createStaticVNode('<g id="Clothing/Graphic-Shirt" transform="translate(0 170)"><defs><path id="react-path-1153" d="M165.624 29.268C202.76 32.138 232 63.18 232 101.052V110H32v-8.948c0-38.217 29.775-69.48 67.393-71.855A14 14 0 0 0 99 32.5C99 44.374 113.998 54 132.5 54S166 44.374 166 32.5c0-1.098-.128-2.178-.376-3.232"></path></defs><mask id="react-mask-1154" fill="#fff"><use href="#react-path-1153"></use></mask><use id="Clothes" fill="#E6E6E6" fill-rule="evenodd" href="#react-path-1153"></use><g id="Color/Palette/" fill="var(--avataaar-shirt-color)" fill-rule="evenodd" mask="url(#react-mask-1154)"><path id="Color" d="M0 0h264v110H0z"></path></g><g id="Clothing/Graphic/Resist" fill-rule="evenodd" stroke-width="1"><g id="Resist" fill="#FFF" transform="translate(80 67)"><path id="!" d="M102.565 21.071c-3.082-.666-5.192 3.535-1.912 4.784 2.815 1.072 4.845-4.145 1.912-4.784"></path><path id="H" d="M101.191 18c3.657 0 2.308-5.981 2.321-7.965.014-2.137 1.545-8.596-.89-9.734-4.216-1.971-3.06 6.325-3.034 7.968.028 1.816.167 3.72-.229 5.508-.35 1.58-1.129 4.223 1.832 4.223"></path><path id="C" d="M96.058 1.974c-1.082-.622-2.801-.32-3.987-.374-1.349-.06-2.69-.195-4.035-.293-2.177-.16-4.956-.563-7.118-.068-1.226.28-2.338 1.225-1.761 2.608.62 1.49 2.303 1.105 3.58 1.03.585-.035 2.033-.29 2.605-.089.997.35.573-.108.801 1.067.349 1.807.14 4 .125 5.838-.026 3.174-.036 6.364-.103 9.536-.026 1.236-.44 2.632.757 3.448.998.68 2.216.225 2.733-.793.514-1.013.026-3.067-.029-4.196-.066-1.347-.136-2.676-.097-4.025.104-3.585.282-7.167.368-10.754.943.046 1.922.018 2.856.15.683.095 1.665.535 2.322.5 1.9-.1 2.694-2.587.983-3.585"></path><path id="A" d="M67.722 8.813c-.012-.053-.082-.644 0 0m-.037-.276c.004.025 0 .008 0 0m1.432-3.11c3.416-3.981 4.583 4.347 7.246 3.995 4.26-.564-.941-6.953-2.669-7.776-3.515-1.675-6.605.08-8.277 3.267-2.098 4-.77 6.708 3.258 8.444 1.471.635 7.04 2.528 5.53 4.959-.76 1.224-3.526 1.329-4.7 1.086-2.356-.486-1.989-2.086-3.135-3.573-1.033-1.34-3.03-.947-3.342.781-.245 1.358 1.17 3.425 2.115 4.38 2.233 2.256 6.04 2.437 8.887 1.41 4.386-1.583 4.917-5.71 1.806-8.905-1.749-1.795-3.933-2.34-6.113-3.418-2.645-1.306-2.15-2.39-.606-4.65"></path><path id="E" d="M58.75 20.568c-.564-4.825-.696-9.717-.78-14.563-.027-1.554.706-5.206-1.453-5.865-2.915-.89-2.528 2.692-2.467 4.164.205 4.913.842 9.789 1.071 14.696.073 1.557-.429 4.574 1.831 4.946 2.75.454 2.008-2.081 1.798-3.378"></path><path id="P" d="M49.472 4.68c-2.36-3.159-7.154-3.669-10.09-.758-2.072 2.054-3.377 6.92-1.416 9.403 2.124 2.691 7.355.332 8.725 3.383 1.682 3.743-2.73 5.148-5.074 2.663-.843-.894-.659-2.454-1.9-3.007-1.763-.785-2.864.928-2.517 2.359.848 3.5 4.652 5.39 8.101 5.272 3.768-.13 5.402-2.977 5.163-6.4-.33-4.735-3.985-5.476-7.99-5.998-1.698-.22-1.92-.2-1.816-1.952.128-2.118 1.37-4.567 3.991-4.063 2.106.405 2.294 3.571 4.455 3.718 3.496.239 1.256-3.433.368-4.62"></path><path id="M" d="M31.721 20.438c-1.337.32-2.963.098-4.327.073-1.053-.019-4.574.427-5.261-.296-.76-.8-.513-3.247-.545-4.286-.046-1.454-.404-1.67.872-2 .749-.193 1.907-.096 2.682-.131 1.515-.07 3.465.21 4.93-.088 1.37-.28 2.502-1.751 1.25-3.004-.886-.888-2.542-.411-3.631-.386-2.034.046-4.069.036-6.103.072.008-1.568-.043-3.147.079-4.71 2.847.14 5.812.881 8.659.745 1.44-.07 3.04-.992 2.31-2.73-.624-1.49-2.521-1.287-3.843-1.346-1.653-.075-3.308-.113-4.962-.17-1.224-.042-3.005-.445-4.159.107-2.362 1.13-1.55 5.01-1.485 7.112.084 2.666.085 5.268.177 7.956.084 2.433-.037 5.641 2.852 6.325 2.89.684 6.245.033 9.192.176 1.209.058 2.861.41 3.455-.996.569-1.349-.73-2.774-2.142-2.423"></path><path id="I" d="M8.41 5.88c2.321.5 2.942 3.014 3.02 5.149.054 1.46.183 1.373-1.003 1.74-1.19.368-2.92.169-4.139.116-2.543-.11-2.235-.278-2.284-2.945-.012-.625-.475-3.504-.108-3.91.476-.528 3.839-.203 4.514-.15m5.077 14.838c-1.29-1.504-2.586-2.94-4.034-4.286 2.158-.06 4.503-.473 5.27-2.819.648-1.982.085-5-.668-6.872-.994-2.47-3.062-4.119-5.635-4.478-1.796-.251-6.278-.673-7.62.71C-.665 4.482.352 8.623.442 10.47c.16 3.271.044 6.518-.157 9.785-.064 1.055-.582 2.787-.041 3.737.6 1.054 2.059 1.317 2.969.537.984-.844.529-1.878.468-2.961-.093-1.676.075-3.404.174-5.074 1.608 1.312 3.25 2.591 4.762 4.022 1.493 1.414 2.564 3.202 3.99 4.627 1.011 1.01 2.82 1.425 3.331-.448.44-1.608-1.571-2.951-2.451-3.977"></path></g></g></g>',1),tm=[em];function nm(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...tm])}const am={render:nm},om=e.createStaticVNode('<g id="Clothing/Graphic-Shirt" transform="translate(0 170)"><defs><path id="react-path-1153" d="M165.624 29.268C202.76 32.138 232 63.18 232 101.052V110H32v-8.948c0-38.217 29.775-69.48 67.393-71.855A14 14 0 0 0 99 32.5C99 44.374 113.998 54 132.5 54S166 44.374 166 32.5c0-1.098-.128-2.178-.376-3.232"></path></defs><mask id="react-mask-1154" fill="#fff"><use href="#react-path-1153"></use></mask><use id="Clothes" fill="#E6E6E6" fill-rule="evenodd" href="#react-path-1153"></use><g id="Color/Palette/" fill="var(--avataaar-shirt-color)" fill-rule="evenodd" mask="url(#react-mask-1154)"><path id="Color" d="M0 0h264v110H0z"></path></g><g id="Clothing/Graphic/Skull" fill="#FFF" fill-rule="evenodd" mask="url(#react-mask-1154)"><path id="Fill-49" d="M65.282 19.929c-.298 2.777-5.693 4.274-7.672 2.448-.912-.842-.927-2.574-1.128-3.702-.38-2.133-.656-4.258-.751-6.423-.058-1.325-.406-2.385 1.044-2.582.883-.12 1.793.468 2.515.933 2.447 1.573 6.33 6.138 5.992 9.326m-12.4-5.853c.284 2.825 1.32 7.739-.936 10.105-2.016 2.115-6.16.018-6.783-2.473-.773-3.09 2.275-6.78 4.145-8.87.574-.641 1.844-2.412 2.836-1.82.382.228.693 2.612.737 3.058m1.44 11.03c.647-1.523 6.913 3.019 3.953 5.18-.482.352-4.16 1.465-4.864.941-1.485-1.103.43-4.964.911-6.12m19.004-7.58c-.443-15.476-20.26-19.84-30.85-11.023-4.048 3.372-6.362 7.5-6.468 12.779-.09 4.471.619 8.689 4.034 11.764 1.481 1.333 2.46 2.149 3.245 3.97.824 1.906 1.2 4.335 2.742 5.833.85.825 2.09 1.492 3.266.96 2.162-.98 1.47-3.978 2.125-5.65 2.037 4.97 7.211 6.554 8.15.25 1.031 1.819 3.726 4.2 5.7 2.21.812-.82.934-2.15 1.072-3.227.245-1.912-.18-2.664 1.355-3.975 4.039-3.45 5.773-8.672 5.63-13.891" transform="translate(77 58)"></path></g></g>',1),rm=[om];function im(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...rm])}const sm={render:im},lm={Bat:wf,Cumbia:Sf,Diamond:Nf,Pizza:Lf,Selena:_f,SkullOutline:zf,Bear:qf,Deer:Yf,Hola:Jf,Resist:am,Skull:sm},cm=e.createElementVNode("g",{transform:"translate(76 82)"},[e.createElementVNode("g",{id:"Eyes/Closed",opacity:".6",transform:"translate(0 8)"},[e.createElementVNode("path",{id:"Closed-Eye",d:"M16.16 32.447C18.007 28.65 22.164 26 26.998 26c4.816 0 8.961 2.63 10.817 6.407.552 1.122-.233 2.04-1.024 1.36-2.451-2.107-5.932-3.423-9.793-3.423-3.74 0-7.124 1.235-9.56 3.228-.891.728-1.818-.014-1.278-1.125m58 0C76.007 28.65 80.164 26 84.998 26c4.816 0 8.961 2.63 10.817 6.407.552 1.122-.233 2.04-1.024 1.36-2.451-2.107-5.932-3.423-9.793-3.423-3.74 0-7.124 1.235-9.56 3.228-.891.728-1.818-.014-1.278-1.125",transform:"matrix(1 0 0 -1 0 60)"})])],-1),dm=[cm];function um(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...dm])}const fm={render:um},mm=e.createElementVNode("g",{class:"CustomColor",opacity:".6",transform:"translate(76 90)"},[e.createElementVNode("circle",{id:"Eye",cx:"30",cy:"22",r:"6"}),e.createElementVNode("circle",{id:"Eye",cx:"82",cy:"22",r:"6"})],-1),hm=[mm];function pm(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...hm])}const gm={render:pm},ym=e.createStaticVNode('<g transform="translate(76 82)"><g id="Eyes/Eye-Roll" transform="translate(0 8)"><circle id="Eyeball" cx="30" cy="22" r="14" fill="#FFF"></circle><circle id="The-white-stuff" cx="82" cy="22" r="14" fill="#FFF"></circle><circle cx="30" cy="14" r="6" class="CustomColor" opacity=".7"></circle><circle cx="82" cy="14" r="6" class="CustomColor" opacity=".7"></circle></g></g>',1),km=[ym];function xm(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...km])}const bm={render:xm},wm=e.createElementVNode("g",{fill:"#FF5353",class:"CustomColor",opacity:".8",transform:"translate(76 90)"},[e.createElementVNode("path",{id:"Heart",d:"M35.958 10c-2.55 0-5.074 1.98-6.458 3.82-1.39-1.84-3.907-3.82-6.458-3.82C17.552 10 14 13.334 14 17.641c0 5.73 4.412 9.13 9.042 12.736 1.653 1.236 4.78 4.4 5.166 5.094.386.693 2.106.718 2.584 0 .477-.718 3.51-3.858 5.166-5.094C40.585 26.77 45 23.37 45 17.64c0-4.306-3.552-7.64-9.042-7.64m53 0c-2.55 0-5.074 1.98-6.458 3.82-1.39-1.84-3.907-3.82-6.458-3.82C70.552 10 67 13.334 67 17.641c0 5.73 4.412 9.13 9.042 12.736 1.653 1.236 4.78 4.4 5.166 5.094.386.693 2.106.718 2.584 0 .477-.718 3.51-3.858 5.166-5.094C93.585 26.77 98 23.37 98 17.64c0-4.306-3.552-7.64-9.042-7.64"})],-1),Em=[wm];function vm(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...Em])}const Cm={render:vm},Sm=e.createStaticVNode('<g transform="translate(76 82)"><g id="Eyes/Squint" transform="translate(0 8)"><defs><path id="Eye1" d="M14 14.048c9.61 0 14 4.451 14-2.486C28 4.624 21.732 0 14 0S0 4.624 0 11.562s4.39 2.486 14 2.486"></path><path id="Eye2" d="M14 14.048c9.61 0 14 4.451 14-2.486C28 4.624 21.732 0 14 0S0 4.624 0 11.562s4.39 2.486 14 2.486"></path></defs><g id="Eye" transform="translate(16 13)"><mask id="EyeMask1" fill="#fff"><use href="#Eye1"></use></mask><use id="The-white-stuff" fill="#FFF" href="#Eye1"></use><circle cx="14" cy="10" r="6" class="CustomColor" mask="url('#EyeMask1')" opacity=".7"></circle></g><g id="Eye" transform="translate(68 13)"><mask id="EyeMask2" fill="#fff"><use href="#Eye2"></use></mask><use id="Eyeball-Mask" fill="#FFF" href="#Eye2"></use><circle cx="14" cy="10" r="6" class="CustomColor" mask="url('#EyeMask2')" opacity=".7"></circle></g></g></g>',1),Bm=[Sm];function Vm(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...Bm])}const Mm={render:Vm},Nm=e.createElementVNode("g",{transform:"translate(76 82)"},[e.createElementVNode("g",{id:"Eyes/Wink",opacity:".6",transform:"translate(0 8)"},[e.createElementVNode("circle",{id:"Eye",cx:"30",cy:"22",r:"6"}),e.createElementVNode("path",{id:"Winky-Wink",d:"M70.412 24.205c1.847-3.799 6.005-6.447 10.838-6.447 4.816 0 8.961 2.63 10.818 6.407.551 1.122-.234 2.04-1.025 1.36-2.451-2.108-5.932-3.424-9.793-3.424-3.74 0-7.124 1.235-9.56 3.228-.891.729-1.818-.013-1.278-1.124",transform:"rotate(-4 81.252 21.758)"})])],-1),Am=[Nm];function Tm(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...Am])}const Dm={render:Tm},Lm=e.createStaticVNode('<g transform="translate(76 82)"><g id="Eyes/Cry" transform="translate(0 8)"><circle cx="30" cy="22" r="6" class="CustomColor" opacity=".6"></circle><path id="Drop" fill="#92D9FF" d="M25 27s-6 7.27-6 11.27a6 6 0 1 0 12 0c0-4-6-11.27-6-11.27"></path><circle cx="82" cy="22" r="6" class="CustomColor" opacity=".6"></circle></g></g>',1),Fm=[Lm];function $m(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...Fm])}const Pm={render:$m},_m=e.createElementVNode("g",{class:"CustomColor",opacity:".6",transform:"translate(76 90)"},[e.createElementVNode("path",{id:"Eye",d:"m29 25.2 5.5 5.5c.5.4 1.2.4 1.6 0l1.6-1.6c.4-.5.4-1.2 0-1.6L32.2 22l5.5-5.5c.4-.5.4-1.2 0-1.6l-1.6-1.6c-.5-.4-1.2-.4-1.6 0L29 18.8l-5.5-5.5c-.5-.4-1.2-.4-1.6 0l-1.6 1.6c-.4.4-.4 1.1 0 1.6l5.5 5.5-5.5 5.5c-.4.5-.4 1.2 0 1.6l1.6 1.6c.5.4 1.2.4 1.6 0zm54 0 5.5 5.5c.5.4 1.2.4 1.6 0l1.6-1.6c.4-.5.4-1.2 0-1.6L86.2 22l5.5-5.5c.4-.5.4-1.2 0-1.6l-1.6-1.6c-.5-.4-1.2-.4-1.6 0L83 18.8l-5.5-5.5c-.5-.4-1.2-.4-1.6 0l-1.6 1.6c-.4.4-.4 1.1 0 1.6l5.5 5.5-5.5 5.5c-.4.5-.4 1.2 0 1.6l1.6 1.6c.5.4 1.2.4 1.6 0z"})],-1),Om=[_m];function Rm(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...Om])}const Hm={render:Rm},zm=e.createElementVNode("g",{transform:"translate(76 82)"},[e.createElementVNode("g",{id:"Eyes/Happy",opacity:".6",transform:"translate(0 8)"},[e.createElementVNode("path",{id:"Squint",d:"M16.16 22.447C18.007 18.65 22.164 16 26.998 16c4.816 0 8.961 2.63 10.817 6.407.552 1.122-.233 2.04-1.024 1.36-2.451-2.107-5.932-3.423-9.793-3.423-3.74 0-7.124 1.235-9.56 3.228-.891.728-1.818-.014-1.278-1.125m58 0C76.007 18.65 80.164 16 84.998 16c4.816 0 8.961 2.63 10.817 6.407.552 1.122-.233 2.04-1.024 1.36-2.451-2.107-5.932-3.423-9.793-3.423-3.74 0-7.124 1.235-9.56 3.228-.891.728-1.818-.014-1.278-1.125"})])],-1),jm=[zm];function Gm(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...jm])}const Im={render:Gm},qm=e.createElementVNode("g",{transform:"translate(76 82)"},[e.createElementVNode("g",{id:"Eyes/Side",opacity:".6",transform:"translate(0 8)"},[e.createElementVNode("path",{id:"Eye",d:"M27.241 20.346a6 6 0 1 0 10.699 2.8 2 2 0 0 0-.125-.739 8 8 0 0 0-.144-.372 6 6 0 0 0-1.646-2.484C33.9 17.317 30.506 16 26.998 16c-4.834 0-8.991 2.649-10.838 6.447-.54 1.111.387 1.853 1.278 1.125 2.436-1.993 5.82-3.228 9.56-3.228zm58 0a6 6 0 1 0 10.699 2.8 2 2 0 0 0-.125-.739 8 8 0 0 0-.144-.372 6 6 0 0 0-1.646-2.484C91.9 17.317 88.506 16 84.998 16c-4.834 0-8.991 2.649-10.838 6.447-.54 1.111.387 1.853 1.278 1.125 2.436-1.993 5.82-3.228 9.56-3.228z"})])],-1),Wm=[qm];function Um(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...Wm])}const Zm={render:Um},Ym=e.createStaticVNode('<g transform="translate(76 82)"><g id="Eyes/Surprised" transform="translate(0 8)"><circle id="The-White-Stuff" cx="30" cy="22" r="14" fill="#FFF"></circle><circle id="Eye-Ball" cx="82" cy="22" r="14" fill="#FFF"></circle><circle cx="30" cy="22" r="6" class="CustomColor" opacity=".7"></circle><circle cx="82" cy="22" r="6" class="CustomColor" opacity=".7"></circle></g></g>',1),Xm=[Ym];function Km(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...Xm])}const Qm={render:Km},Jm=e.createStaticVNode('<g transform="translate(76 82)"><g id="Eyes/Wink-Wacky" transform="translate(0 8)"><circle id="cornea" cx="82" cy="22" r="12" fill="#FFF"></circle><circle cx="82" cy="22" r="6" class="CustomColor" opacity=".7"></circle><path id="Winky-Doodle" fill="#000" d="M16.16 25.447C18.007 21.65 22.164 19 26.998 19c4.816 0 8.961 2.63 10.817 6.407.552 1.122-.233 2.04-1.024 1.36-2.451-2.107-5.932-3.423-9.793-3.423-3.74 0-7.124 1.235-9.56 3.228-.891.728-1.818-.014-1.278-1.125" opacity=".6"></path></g></g>',1),eh=[Jm];function th(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...eh])}const nh={render:th},ah={Close:fm,Default:gm,EyeRoll:bm,Hearts:Cm,Squint:Mm,Wink:Dm,Cry:Pm,Dizzy:Hm,Happy:Im,Side:Zm,Surprised:Qm,WinkWacky:nh},oh=e.createElementVNode("g",{transform:"translate(76 82)"},[e.createElementVNode("path",{id:"Eyebrow/Outline/Angry",d:"M15.611 15.185c4.24-5.769 6.878-5.484 13.313-.629l.67.508C34.422 18.726 36.708 20 40 20a2 2 0 1 0 0-4c-2.066 0-3.901-1.022-7.989-4.123-.375-.285-.492-.373-.678-.513-3.76-2.837-5.959-4.077-8.695-4.372-3.684-.398-7.058 1.482-10.25 5.823a2 2 0 0 0 3.223 2.37m80.777 0c-4.24-5.769-6.877-5.484-13.312-.629l-.67.508C77.578 18.726 75.292 20 72 20a2 2 0 1 1 0-4c2.066 0 3.901-1.022 7.989-4.123.375-.285.492-.373.678-.513 3.76-2.837 5.959-4.077 8.695-4.372 3.684-.398 7.058 1.482 10.25 5.823a2 2 0 0 1-3.224 2.37",class:"CustomColor",opacity:".6"})],-1),rh=[oh];function ih(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...rh])}const sh={render:ih},lh=e.createElementVNode("g",{transform:"translate(76 82)"},[e.createElementVNode("path",{id:"Eyebrow/Natural/Flat-Natural",d:"M38.66 11.09c-4.998.362-9.923.086-14.918-.122-3.83-.158-7.717-.681-11.374 1.012-.7.324-4.53 2.28-4.44 3.349.07.855 3.935 2.191 4.63 2.436 3.67 1.29 7.181.896 10.954.67 4.628-.278 9.236-.074 13.861-.214 3.116-.093 7.917-.62 9.457-4.398.464-1.137.105-3.413-.36-4.657-.185-.496-.72-.683-1.125-.397-1.45 1.023-4.261 2.146-6.685 2.321m34.68 0c4.998.362 9.923.086 14.918-.122 3.83-.158 7.717-.681 11.374 1.012.7.324 4.53 2.28 4.44 3.349-.07.855-3.935 2.191-4.63 2.436-3.67 1.29-7.181.896-10.954.67-4.628-.278-9.236-.074-13.861-.214-3.116-.093-7.917-.62-9.457-4.398-.464-1.137-.105-3.413.36-4.657.185-.496.72-.683 1.125-.397 1.45 1.023 4.261 2.146 6.685 2.321",class:"CustomColor",opacity:".6"})],-1),ch=[lh];function dh(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...ch])}const uh={render:dh},fh=e.createElementVNode("g",{transform:"translate(76 82)"},[e.createElementVNode("path",{id:"Eyebrow/Outline/Sad-Concerned",d:"M38.028 5.591c-1.48 8.389-14.09 14.18-23.238 10.432-1.015-.416-2.19.031-2.627.999s.033 2.09 1.048 2.505c11.444 4.69 26.835-2.38 28.762-13.303.183-1.039-.551-2.023-1.64-2.197-1.09-.175-2.122.525-2.305 1.564m35.945 0c1.48 8.389 14.09 14.18 23.238 10.432 1.014-.416 2.19.031 2.627.999s-.033 2.09-1.048 2.505c-11.444 4.69-26.835-2.38-28.762-13.303-.183-1.039.551-2.023 1.64-2.197 1.09-.175 2.121.525 2.305 1.564",class:"CustomColor",opacity:".6"})],-1),mh=[fh];function hh(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...mh])}const ph={render:hh},gh=e.createElementVNode("g",{transform:"translate(76 82)"},[e.createElementVNode("path",{id:"Eyebrow/Natural/Up-Down-Natural",d:"m22.766 1.578.911-.402C28.92-.905 36.865-.033 41.723 2.299c.567.272.18 1.153-.402 1.108-14.919-1.151-24.963 8.146-28.375 14.44-.101.187-.407.208-.482.034-2.308-5.319 4.45-13.985 10.302-16.303M86.993 12.07c5.761.773 14.746 5.795 13.994 11.607-.024.19-.312.25-.436.091-2.487-3.188-21.712-7.872-28.714-6.894-.64.09-1.063-.571-.626-.984 3.744-3.535 10.62-4.518 15.782-3.82",class:"CustomColor",opacity:".6"})],-1),yh=[gh];function kh(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...yh])}const xh={render:kh},bh=e.createElementVNode("g",{transform:"translate(76 82)"},[e.createElementVNode("path",{id:"Eyebrow/Natural/Angry-Natural",d:"M44.095 17.125q.006-.014 0 0M19.284 5.005c-2.368-.266-4.858.497-6.427 2.434-.59.728-1.553 2.48-1.509 3.417.017.356.225.375 1.124.59 1.646.392 4.5-1.114 6.355-.972 2.582.198 5.047 1.395 7.283 2.679 3.838 2.202 8.354 6.84 13.093 6.598.353-.018 5.42-1.739 4.41-2.723-.316-.484-3.034-1.128-3.501-1.361-2.172-1.084-4.367-2.448-6.443-3.718-4.528-2.772-8.944-6.338-14.385-6.944m48.746 12.12q-.006-.014 0 0m24.876-12.12c2.368-.266 4.857.497 6.426 2.434.59.728 1.554 2.48 1.509 3.417-.017.356-.225.375-1.124.59-1.645.392-4.5-1.114-6.355-.972-2.582.198-5.046 1.395-7.282 2.679-3.839 2.202-8.355 6.84-13.093 6.598-.353-.018-5.42-1.739-4.411-2.723.317-.484 3.034-1.128 3.502-1.361 2.171-1.084 4.367-2.448 6.442-3.718 4.528-2.772 8.945-6.338 14.386-6.944",class:"CustomColor",opacity:".6"})],-1),wh=[bh];function Eh(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...wh])}const vh={render:Eh},Ch=e.createElementVNode("g",{transform:"translate(76 82)"},[e.createElementVNode("path",{id:"Eyebrow/Natural/Frown-Natural",d:"M36.37 6.876c-1.97 2.905-5.546 4.64-8.738 5.684-3.943 1.29-18.552 3.38-15.112 11.348a.147.147 0 0 0 .272.002c1.153-2.645 17.465-5.123 18.973-5.704 4.445-1.709 8.393-5.49 9.162-10.543.352-2.317-.637-6.049-1.548-7.55-.11-.18-.374-.136-.43.069-.36 1.331-1.41 4.971-2.58 6.694m39.261 0c1.97 2.905 5.546 4.64 8.738 5.684 3.943 1.29 18.551 3.379 15.112 11.348a.147.147 0 0 1-.272.002c-1.153-2.645-17.465-5.123-18.973-5.704-4.445-1.709-8.393-5.49-9.162-10.543-.352-2.317.637-6.049 1.548-7.55.11-.18.374-.136.43.069.36 1.331 1.41 4.971 2.58 6.694",class:"CustomColor",opacity:".6"})],-1),Sh=[Ch];function Bh(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...Sh])}const Vh={render:Bh},Mh=e.createElementVNode("g",{transform:"translate(76 82)"},[e.createElementVNode("path",{id:"Eyebrow/Natural/Sad-Concerned-Natural",d:"m31.234 20.422-.911.402c-5.242 2.081-13.188 1.209-18.046-1.123-.567-.272-.18-1.153.402-1.108 14.919 1.151 24.963-8.146 28.375-14.44.101-.187.407-.208.482-.034 2.308 5.319-4.45 13.985-10.302 16.303m49.532 0 .911.402c5.242 2.081 13.188 1.209 18.046-1.123.567-.272.18-1.153-.402-1.108-14.919 1.151-24.963-8.146-28.375-14.44-.101-.187-.407-.208-.482-.034-2.308 5.319 4.45 13.985 10.302 16.303",class:"CustomColor",opacity:".6"})],-1),Nh=[Mh];function Ah(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...Nh])}const Th={render:Ah},Dh=e.createElementVNode("g",{transform:"translate(76 82)"},[e.createElementVNode("g",{id:"Eyebrow/Outline/Default",opacity:".6"},[e.createElementVNode("path",{id:"I-Browse",d:"M15.63 17.159c3.915-5.51 14.648-8.598 23.893-6.328a2 2 0 0 0 .954-3.884C29.74 4.31 17.312 7.887 12.37 14.84a2 2 0 0 0 3.26 2.318Zm80.74 0c-3.915-5.51-14.648-8.598-23.893-6.328a2 2 0 0 1-.954-3.884c10.737-2.637 23.165.94 28.108 7.894a2 2 0 0 1-3.26 2.318Z",class:"CustomColor"})])],-1),Lh=[Dh];function Fh(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...Lh])}const $h={render:Fh},Ph=e.createElementVNode("g",{transform:"translate(76 82)"},[e.createElementVNode("g",{id:"Eyebrow/Outline/Raised-Excited",opacity:".6"},[e.createElementVNode("path",{id:"I-Browse",d:"M15.976 17.128C17.47 7.605 30.059 1.108 39.164 5.3a2 2 0 0 0 1.672-3.633c-11.487-5.29-26.9 2.664-28.812 14.84a2 2 0 1 0 3.952.62Zm80.048 0C94.53 7.605 81.942 1.108 72.837 5.3a2 2 0 0 1-1.673-3.633c11.487-5.29 26.9 2.664 28.812 14.84a2 2 0 0 1-3.952.62Z",class:"CustomColor"})])],-1),_h=[Ph];function Oh(t,n){return e.openBlock(),e.createElementBlock("svg",null,[..._h])}const Rh={render:Oh},Hh=e.createElementVNode("g",{transform:"translate(76 82)"},[e.createElementVNode("g",{id:"Eyebrow/Natural/Unibrow-Natural",opacity:".6"},[e.createElementVNode("path",{d:"M56.997 12.82q0-.005 0 0m2.559 2.805c1.892 1.101 4.717 1.734 6.315 1.94 6.277.807 12.266-1.535 18.386-2.68 5.432-1.015 11.625-1.925 16.73.91.13.072 1.162.667 1.707 1.184a.81.81 0 0 0 1.291-.224c1.325-2.726-6.402-8.594-7.865-9.153-6.627-2.528-15.176.704-21.796 2.001-3.717.728-7.462 1.252-11.115 2.29-1.31.373-2.58 1.007-3.862 1.218-.162-.224-.362-.36-.588-.352-1.17.04-2.796 3.557-.56 3.676.7.038 1.13-.312 1.357-.81",class:"CustomColor"}),e.createElementVNode("path",{d:"M55.003 12.79q.002-.005 0 0M15.881 7.573c6.626-2.528 15.176.705 21.796 2.001 3.716.729 7.461 1.253 11.114 2.291 1.47.418 2.887 1.165 4.33 1.274.7.053 1.106.903.635 1.435-1.545 1.74-5.586 2.7-7.626 2.962-6.278.807-12.267-1.534-18.387-2.679-5.432-1.016-11.624-1.925-16.73.91-.13.071-1.161.666-1.707 1.184a.81.81 0 0 1-1.29-.224C6.69 14 14.417 8.133 15.881 7.573m39.092 4.217c1.17.041 2.762 4.5.525 4.674-2.237.173-1.696-4.715-.525-4.674",class:"CustomColor"})])],-1),zh=[Hh];function jh(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...zh])}const Gh={render:jh},Ih=e.createElementVNode("g",{transform:"translate(76 82)"},[e.createElementVNode("path",{id:"Eyebrow/Natural/Default-Natural",d:"M26.547 6.148c-5.807.269-15.195 4.488-14.953 10.344.008.192.29.276.427.129 2.755-2.96 22.316-5.95 29.205-4.365.63.145 1.11-.477.71-.927-3.422-3.848-10.186-5.426-15.389-5.18m59.906-.001c5.807.269 15.195 4.488 14.953 10.344-.008.192-.29.276-.427.129-2.755-2.96-22.316-5.95-29.205-4.365-.63.145-1.11-.477-.71-.927 3.422-3.848 10.186-5.426 15.389-5.18",class:"CustomColor",opacity:".6"})],-1),qh=[Ih];function Wh(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...qh])}const Uh={render:Wh},Zh=e.createElementVNode("g",{transform:"translate(76 82)"},[e.createElementVNode("path",{id:"Eyebrow/Natural/Raised-Excited-Natural",d:"m22.766 1.578.911-.402C28.92-.905 36.865-.033 41.723 2.299c.567.272.18 1.153-.402 1.108-14.919-1.151-24.963 8.146-28.375 14.44-.101.187-.407.208-.482.034-2.308-5.319 4.45-13.985 10.302-16.303m66.468 0-.911-.402C83.08-.905 75.135-.033 70.277 2.299c-.567.272-.18 1.153.402 1.108 14.919-1.151 24.963 8.146 28.375 14.44.101.187.407.208.482.034 2.308-5.319-4.45-13.985-10.302-16.303",class:"CustomColor",opacity:".6"})],-1),Yh=[Zh];function Xh(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...Yh])}const Kh={render:Xh},Qh=e.createElementVNode("g",{transform:"translate(76 82)"},[e.createElementVNode("path",{id:"Eyebrow/Outline/Up-Down",d:"M15.591 14.162c4.496-6.326 14.012-9.508 23.756-6.366a2 2 0 1 0 1.228-3.807c-11.408-3.68-22.74.11-28.244 7.856a2 2 0 1 0 3.26 2.317m80.786 6.996c-3.914-5.509-14.647-8.598-23.892-6.328a2 2 0 0 1-.954-3.884c10.736-2.637 23.165.94 28.107 7.895a2 2 0 1 1-3.26 2.317Z",class:"CustomColor",opacity:".6"})],-1),Jh=[Qh];function ep(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...Jh])}const tp={render:ep},np={Angry:sh,FlatNatural:uh,SadConcerned:ph,UpDownNatural:xh,AngryNatural:vh,FrownNatural:Vh,SadConcernedNatural:Th,Default:$h,RaisedExcited:Rh,UnibrowNatural:Gh,DefaultNatural:Uh,RaisedExcitedNatural:Kh,UpDown:tp},ap=e.createStaticVNode('<g transform="translate(76 82)"><g id="Mouth/Concerned" transform="translate(2 52)"><defs><path id="Mouth1" d="M35.118 15.128C36.176 24.62 44.226 32 54 32c9.804 0 17.874-7.426 18.892-16.96.082-.767-.775-2.04-1.85-2.04H37.088c-1.08 0-2.075 1.178-1.97 2.128"></path></defs><mask id="MouthMask1" fill="#fff"><use href="#Mouth1" transform="matrix(1 0 0 -1 0 45)"></use></mask><use id="Mouth" fill="#000" href="#Mouth1" opacity=".7" transform="matrix(1 0 0 -1 0 45)"></use><rect id="Teeth" width="31" height="16" x="39" y="2" fill="#FFF" mask="url('#MouthMask1')" rx="5"></rect><g id="Tongue" fill="#FF4F6D" mask="url('#MouthMask1')"><g transform="translate(38 24)"><circle id="friend?" cx="11" cy="11" r="11"></circle><circle id="How-you-doing" cx="21" cy="11" r="11"></circle></g></g></g></g>',1),op=[ap];function rp(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...op])}const ip={render:rp},sp=e.createElementVNode("g",{transform:"translate(76 82)"},[e.createElementVNode("g",{id:"Mouth/Disbelief",fill:"#000",opacity:".7",transform:"translate(2 52)"},[e.createElementVNode("path",{id:"Mouth",d:"M40 15c0 7.732 6.268 14 14 14s14-6.268 14-14",transform:"matrix(1 0 0 -1 0 44)"})])],-1),lp=[sp];function cp(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...lp])}const dp={render:cp},up=e.createStaticVNode('<g transform="translate(76 82)"><g id="Mouth/Grimace" transform="translate(2 52)"><defs><rect id="Grimace-path1" width="60" height="22" x="24" y="9" rx="11"></rect></defs><rect id="Mouth" width="64" height="26" x="22" y="7" fill="#000" opacity=".6" rx="13"></rect><mask id="Grimace-mask1" fill="#fff"><use href="#Grimace-path1"></use></mask><use id="Mouth" fill="#FFF" href="#Grimace-path1"></use><path id="Grimace-Teeth" fill="#E6E6E6" d="M71 22h-9v12h-4V22h-9v12h-4V22h-9v12h-4V22h-8v-4h8V6h4v12h9V6h4v12h9V6h4v12h9V6h4v12h8.867v4H75v12h-4z" mask="url('#Grimace-mask1')"></path></g></g>',1),fp=[up];function mp(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...fp])}const hp={render:mp},pp=e.createStaticVNode('<g transform="translate(76 82)"><g id="Mouth/Scream-Open" transform="translate(2 52)"><defs><path id="ScreamOpen-path1" d="M34.008 15.136C35.128 29.124 38.235 40.993 53.996 41c15.762.007 18.92-11.943 19.998-25.994.087-1.13-.82-2.006-1.957-2.006-6.686 0-9.367 1.994-18.048 2s-13.232-2-17.897-2c-1.143 0-2.196.737-2.084 2.136"></path></defs><mask id="ScreamOpen-mask1" fill="#fff"><use href="#ScreamOpen-path1" transform="matrix(1 0 0 -1 0 54)"></use></mask><use id="Mouth" fill="#000" href="#ScreamOpen-path1" opacity=".7" transform="matrix(1 0 0 -1 0 54)"></use><rect id="Teeth" width="31" height="16" x="39" y="2" fill="#FFF" mask="url('#ScreamOpen-mask1')" rx="5"></rect><g id="Tongue" fill="#FF4F6D" mask="url('#ScreamOpen-mask1')"><g id="Say-ahhhh" transform="translate(38 32)"><circle cx="11" cy="11" r="11"></circle><circle cx="21" cy="11" r="11"></circle></g></g></g></g>',1),gp=[pp];function yp(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...gp])}const kp={render:yp},xp=e.createStaticVNode('<g transform="translate(76 82)"><g id="Mouth/Smile" transform="translate(2 52)"><defs><path id="Smile-path1" d="M35.118 15.128C36.176 24.62 44.226 32 54 32c9.804 0 17.874-7.426 18.892-16.96.082-.767-.775-2.04-1.85-2.04H37.088c-1.08 0-2.075 1.178-1.97 2.128"></path></defs><mask id="Smile-mask1" fill="#fff"><use href="#Smile-path1"></use></mask><use id="Mouth" fill="#000" href="#Smile-path1" opacity=".7"></use><rect id="Teeth" width="31" height="16" x="39" y="2" fill="#FFF" mask="url('#Smile-mask1')" rx="5"></rect><g id="Tongue" fill="#FF4F6D" mask="url('#Smile-mask1')"><g transform="translate(38 24)"><circle cx="11" cy="11" r="11"></circle><circle cx="21" cy="11" r="11"></circle></g></g></g></g>',1),bp=[xp];function wp(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...bp])}const Ep={render:wp},vp=e.createElementVNode("g",{transform:"translate(76 82)"},[e.createElementVNode("g",{id:"Mouth/Twinkle",fill:"#000",opacity:".6",transform:"translate(2 52)"},[e.createElementVNode("path",{id:"Mouth",d:"M40 16c0 5.372 6.158 9 14 9s14-3.628 14-9c0-1.105-.95-2-2-2-1.293 0-1.87.905-2 2-1.242 2.938-4.317 4.716-10 5-5.683-.284-8.758-2.062-10-5-.13-1.095-.707-2-2-2-1.05 0-2 .895-2 2"})])],-1),Cp=[vp];function Sp(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...Cp])}const Bp={render:Sp},Vp=e.createElementVNode("g",{transform:"translate(76 82)"},[e.createElementVNode("g",{id:"Mouth/Default",opacity:".7",transform:"translate(2 52)"},[e.createElementVNode("path",{id:"Mouth",d:"M40 15c0 7.732 6.268 14 14 14s14-6.268 14-14"})])],-1),Mp=[Vp];function Np(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...Mp])}const Ap={render:Np},Tp=e.createStaticVNode('<g transform="translate(76 82)"><g id="Mouth/Eating" transform="translate(2 52)"><g id="Om-Nom-Nom" fill="#000" opacity=".6" transform="translate(28 6)"><path id="Delicious" d="M16.19 10.106C16.019 4.996 11.793.797 6.295 0 9.66 1.959 11.98 5.495 11.98 9.677c0 5.668-5.473 10.568-11.803 10.568H0A13 13 0 0 0 4.392 21c5.322 0 9.821-3.153 11.294-7.486 2.475 2.156 6.177 3.525 10.314 3.525s7.84-1.37 10.314-3.525C37.787 17.847 42.286 21 47.608 21c1.552 0 3.034-.268 4.392-.756l-.177.001c-6.33 0-11.803-4.9-11.803-10.568 0-4.182 2.32-7.718 5.686-9.677-5.498.797-9.724 4.996-9.897 10.106-2.564 1.736-6.014 2.8-9.809 2.8s-7.245-1.064-9.81-2.8"></path></g><circle id="Redish" cx="17" cy="15" r="9" fill="#FF4646" opacity=".2"></circle><circle id="Redish" cx="91" cy="15" r="9" fill="#FF4646" opacity=".2"></circle></g></g>',1),Dp=[Tp];function Lp(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...Dp])}const Fp={render:Lp},$p=e.createElementVNode("g",{transform:"translate(76 82)"},[e.createElementVNode("g",{id:"Mouth/Sad",fill:"#000",opacity:".7",transform:"translate(2 52)"},[e.createElementVNode("path",{id:"Mouth",d:"M40.058 16.654c.65 7.03 6.644 11.723 13.942 11.723 7.342 0 13.363-4.75 13.953-11.848.031-.378-.876-.676-1.324-.452q-8.308 4.16-12.629 4.16-4.266 0-12.446-4.069c-.507-.252-1.534.068-1.496.486",transform:"matrix(1 0 0 -1 0 44.377)"})])],-1),Pp=[$p];function _p(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...Pp])}const Op={render:_p},Rp=e.createElementVNode("g",{transform:"translate(76 82)"},[e.createElementVNode("g",{id:"Mouth/Serious",fill:"#000",opacity:".7",transform:"translate(2 52)"},[e.createElementVNode("rect",{id:"Why-so-serious?",width:"24",height:"6",x:"42",y:"18",rx:"3"})])],-1),Hp=[Rp];function zp(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...Hp])}const jp={render:zp},Gp=e.createStaticVNode('<g transform="translate(76 82)"><g id="Mouth/Tongue" transform="translate(2 52)"><defs><path id="Tongue-path1" d="M29 15.609C30.41 25.23 41.062 33 54 33c12.968 0 23.646-7.817 25-18.26.101-.4-.225-1.74-2.174-1.74H31.174c-1.79 0-2.304 1.24-2.174 2.609"></path></defs><mask id="Tongue-mask1" fill="#fff"><use href="#Tongue-path1"></use></mask><use id="Mouth" fill="#000" href="#Tongue-path1" opacity=".7"></use><rect id="Teeth" width="31" height="16" x="39" y="2" fill="#FFF" mask="url('#Tongue-mask1')" rx="5"></rect><path id="Tongue" fill="#FF4F6D" d="M65.984 23.747Q66 23.871 66 24v9c0 6.075-4.925 11-11 11h-1c-6.075 0-11-4.925-11-11v-9q0-.129.016-.253A2 2 0 0 1 43 23.5c0-1.933 2.91-3.5 6.5-3.5 2.01 0 3.808.491 5 1.263 1.192-.772 2.99-1.263 5-1.263 3.59 0 6.5 1.567 6.5 3.5q0 .124-.016.247"></path></g></g>',1),Ip=[Gp];function qp(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...Ip])}const Wp={render:qp},Up=e.createStaticVNode('<g transform="translate(76 82)"><g id="Mouth/Vomit" transform="translate(2 52)"><defs><path id="Vomit-path1" d="M34.008 12.602c1.12 10.49 4.227 19.392 19.988 19.398 15.762.006 18.92-8.958 19.998-19.495.087-.848-.82-1.505-1.957-1.505-6.686 0-9.367 1.495-18.048 1.5S40.757 11 36.092 11c-1.143 0-2.196.552-2.084 1.602"></path><path id="Vomit-path2" d="M59.917 36H60a6 6 0 1 0 12 0v-5a6 6 0 0 0-6-6H42a6 6 0 0 0-6 6v7a6 6 0 1 0 12 0v-2h.083a6.002 6.002 0 0 1 11.834 0"></path><filter id="filter1" width="102.8%" height="105.3%" x="-1.4%" y="-2.6%" filterUnits="objectBoundingBox"><feOffset dy="-1" in="SourceAlpha" result="shadowOffsetInner1"></feOffset><feComposite in="shadowOffsetInner1" in2="SourceAlpha" k2="-1" k3="1" operator="arithmetic" result="shadowInnerInner1"></feComposite><feColorMatrix in="shadowInnerInner1" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.1 0"></feColorMatrix></filter></defs><mask id="Vomit-mask1" fill="#fff"><use href="#Vomit-path1" transform="matrix(1 0 0 -1 0 43)"></use></mask><use id="Mouth" fill="#000" href="#Vomit-path1" opacity=".7" transform="matrix(1 0 0 -1 0 43)"></use><rect id="Teeth" width="31" height="16" x="39" y="0" fill="#FFF" mask="url('#Vomit-mask1')" rx="5"></rect><g id="Vomit-Stuff"><use fill="#88C553" href="#Vomit-path2"></use><use filter="url('#filter1')" href="#Vomit-path2"></use></g></g></g>',1),Zp=[Up];function Yp(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...Zp])}const Xp={render:Yp},Kp={Concerned:ip,Disbelief:dp,Grimace:hp,ScreamOpen:kp,Smile:Ep,Twinkle:Bp,Default:Ap,Eating:Fp,Sad:Op,Serious:jp,Tongue:Wp,Vomit:Xp},Qp=(t="#6fb8e0")=>[e.h("g",{id:"Circle","stroke-width":"1","fill-rule":"evenodd",transform:"translate(12.000000, 40.000000)"},[e.h("mask",{id:"mask-1",fill:"white"},[e.h("use",{href:"#path-1"})]),e.h("use",{id:"Circle-Background",fill:"#E6E6E6",href:"#path-1"}),e.h("g",{id:"Color/Palette/Blue-01",mask:"url(#mask-1)",fill:t},[e.h("rect",{id:"Color",x:"0",y:"0",width:"240",height:"240"})])]),e.h("mask",{id:"mask-2",fill:"white"},[e.h("use",{href:"#path-2"})])],Jp=t=>{const n={"--avataaar-hair-color":t.hairColor,"--avataaar-facial-hair-color":t.facialHairColor,"--avataaar-top-color":t.topColor,"--avataaar-shirt-color":t.clothesColor};return e.h("svg",{viewBox:"0 0 264 280",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},[e.h("desc","vue3-avataaars"),e.h("defs",[e.h("circle",{id:"path-1",cx:"120",cy:"120",r:"120"}),e.h("path",{id:"path-2",d:"M12,160 C12,226.27417 65.72583,280 132,280 C198.27417,280 252,226.27417 252,160 L264,160 L264,-1.42108547e-14 L-3.19744231e-14,-1.42108547e-14 L-3.19744231e-14,160 L12,160 Z"}),e.h("path",{id:"path-silhouette",d:"M124,144.610951 L124,163 L128,163 L128,163 C167.764502,163 200,195.235498 200,235 L200,244 L0,244 L0,235 C-4.86974701e-15,195.235498 32.235498,163 72,163 L72,163 L76,163 L76,144.610951 C58.7626345,136.422372 46.3722246,119.687011 44.3051388,99.8812385 C38.4803105,99.0577866 34,94.0521096 34,88 L34,74 C34,68.0540074 38.3245733,63.1180731 44,62.1659169 L44,56 L44,56 C44,25.072054 69.072054,5.68137151e-15 100,0 L100,0 L100,0 C130.927946,-5.68137151e-15 156,25.072054 156,56 L156,62.1659169 C161.675427,63.1180731 166,68.0540074 166,74 L166,88 C166,94.0521096 161.51969,99.0577866 155.694861,99.8812385 C153.627775,119.687011 141.237365,136.422372 124,144.610951 Z"})]),e.h("g",{id:"Avataaar",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[e.h("g",{id:"Avataaar/Circle",transform:"translate(-825.000000, -1100.000000)"},[e.h("g",{transform:"translate(825.000000, 1100.000000)"},[t.isCircle?Qp(t.circleColor):null,e.h("g",{id:"Mask"}),e.h("g",{id:"Avataaar","stroke-width":"1","fill-rule":"evenodd",fill:"black",mask:"url(#mask-2)",style:n},[e.h("g",{id:"Body",transform:"translate(32.000000, 36.000000)"},[e.h("mask",{id:"mask-silhouette",fill:"white"},[e.h("use",{href:"#path-silhouette"})]),e.h("use",{fill:t.skinColor,href:"#path-silhouette"}),e.h("path",{id:"Neck-Shadow",d:"M156,79 L156,102 C156,132.927946 130.927946,158 100,158 C69.072054,158 44,132.927946 44,102 L44,79 L44,94 C44,124.927946 69.072054,150 100,150 C130.927946,150 156,124.927946 156,94 L156,79 Z","fill-opacity":"0.100000001",fill:"#000000",mask:"url(#mask-silhouette)"})]),e.h(f8[t.clothes]),t.clothes==="GraphicShirt"?e.h(lm[t.graphicShirt]):null,e.h(ah[t.eyes]),e.h(np[t.eyebrows]),e.h(Kp[t.mouth]),e.h("svg",[e.h("g",{fill:"black",transform:"translate(76.000000, 82.000000)"},[e.h("g",{id:"Nose/Default",transform:"translate(28.000000, 40.000000)",opacity:"0.16"},[e.h("path",{id:"Nose",d:"M16,8 C16,12.418278 21.372583,16 28,16 L28,16 C34.627417,16 40,12.418278 40,8"})])])]),e.h(U9[t.top]),e.h(yf[t.facialHair]),e.h(N7[t.accessories])])])])])])};function Ct(t){return t[Math.floor(Math.random()*t.length)]}function eg(t){return Ct(Object.keys(t))}function En(t){return t[eg(t)]}const oi={Black:"#262E33",Blue01:"#65C9FF",Blue02:"#5199E4",Blue03:"#25557C",Gray01:"#E6E6E6",Gray02:"#929598",Heather:"#3C4F5C",PastelBlue:"#B1E2FF",PastelGreen:"#A7FFC4",PastelOrange:"#FFBC69",PastelRed:"#FFAFB9",PastelYellow:"#FFFFB1",Pink:"#FF488E",Red:"#FF5C5C",White:"#FFFFFF"},ri={Auburn:"#A55728",Black:"#2C1B18",Blonde:"#B58143",BlondeGolden:"#D6B370",Brown:"#724133",BrownDark:"#4A312C",PastelPink:"#F59797",Platinum:"#ECDCBF",Red:"#C93305",SilverGray:"#E8E1E1"},tg={Tanned:"#FD9841",Yellow:"#F8D25C",Pale:"#FFDBB4",Light:"#EDB98A",Brown:"#D08B5B",DarkBrown:"#AE5D29",Black:"#614335"},ng=["Blank","Prescription01","Round","Wayfarers","Kurt","Prescription02","Sunglasses"],ag=["Close","Default","EyeRoll","Hearts","Squint","Wink","Cry","Dizzy","Happy","Side","Surprised","WinkWacky"],og=["Angry","FlatNatural","SadConcerned","UpDownNatural","AngryNatural","FrownNatural","SadConcernedNatural","Default","RaisedExcited","UnibrowNatural","DefaultNatural","RaisedExcitedNatural","UpDown"],rg=["BeardMajestic","BeardLight","MoustacheFancy","BeardMedium","Blank","MoustacheMagnum"],ig=["Concerned","Disbelief","Grimace","ScreamOpen","Smile","Twinkle","Default","Eating","Sad","Serious","Tongue","Vomit"],sg=["Eyepatch","Hat","Hijab","LongHairBigHair","LongHairBob","LongHairBun","LongHairCurly","LongHairCurvy","LongHairDreads","LongHairFrida","LongHairFro","LongHairFroBand","LongHairMiaWallace","LongHairNotTooLong","LongHairShavedSides","LongHairStraight","LongHairStraight2","LongHairStraightStrand","NoHair","ShortHairDreads01","ShortHairDreads02","ShortHairFrizzle","ShortHairShaggy","ShortHairShaggyMullet","ShortHairShortCurly","ShortHairShortFlat","ShortHairShortRound","ShortHairShortWaved","ShortHairSides","ShortHairTheCaesar","ShortHairTheCaesarSidePart","Turban","WinterHat1","WinterHat2","WinterHat3","WinterHat4"],lg=["BlazerShirt","CollarSweater","BlazerSweater","Hoodie","GraphicShirt","Overall","ShirtCrewNeck","ShirtVNeck","ShirtScoopNeck"],cg=["Bat","Cumbia","Diamond","Pizza","Selena","SkullOutline","Bear","Deer","Hola","Resist","Skull"],ia=(t={})=>{var n,a,o,r,i,s,l,d,u,c,h,m,p,f;return{isCircle:t.isCircle===void 0?!1:t.isCircle,circleColor:(n=t.circleColor)!=null?n:void 0,skinColor:(a=t.skinColor)!=null?a:En(tg),hairColor:(o=t.hairColor)!=null?o:En(ri),topColor:(r=t.topColor)!=null?r:En(oi),clothesColor:(i=t.clothesColor)!=null?i:En(oi),facialHairColor:(s=t.facialHairColor)!=null?s:En(ri),accessories:(l=t.accessories)!=null?l:Ct(ng),eyes:(d=t.eyes)!=null?d:Ct(ag),eyebrows:(u=t.eyebrows)!=null?u:Ct(og),mouth:(c=t.mouth)!=null?c:Ct(ig),top:(h=t.top)!=null?h:Ct(sg),clothes:(m=t.clothes)!=null?m:Ct(lg),graphicShirt:(p=t.graphicShirt)!=null?p:Ct(cg),facialHair:(f=t.facialHair)!=null?f:Ct(rg)}},ii={isCircle:!0,circleColor:"#22c55e",skinColor:"#D08B5B",hairColor:"#E8E1E1",topColor:"#E6E6E6",clothesColor:"blue",facialHairColor:"#E8E1E1",accessories:"Blank",eyes:"Default",eyebrows:"DefaultNatural",mouth:"Default",top:"NoHair",clothes:"GraphicShirt",graphicShirt:"Pizza",facialHair:"Blank"},dg={class:"main-container"},ug=["src"],fg={key:1,class:"avatar-section flex flex-col"},mg={id:"avatar-container",class:"avatar-container"},hg={class:"controls"},pg={class:"checkbox-label checkbox-wrapper-2",for:"avatarLabel"},si=we({__name:"randomAvatar",props:{content:{type:String,default:null}},emits:["base64","random"],setup(t,{emit:n}){const a=e.ref(ii),o=e.ref(ii),r=e.ref(!1);e.onMounted(async()=>{a.value=ia(a.value),await e.nextTick(),u()});const i=n,s=t,l=async()=>{if(r.value)a.value=ia(o.value);else{const c={...o.value,facialHair:"Blank"};a.value=ia(c)}await e.nextTick(),u()},d=async()=>{a.value=ia({isCircle:!0,circleColor:"#22c55e",facialHair:r.value?"Blank":null});const c=a.value;o.value=c,await e.nextTick(),u()},u=()=>{const c=document.querySelector("#avatar-container svg");if(!c){console.error("Avatar não encontrado!");return}let m=new XMLSerializer().serializeToString(c);const f=`data:image/svg+xml;base64,${window.btoa(unescape(encodeURIComponent(m)))}`;i("base64",f)};return(c,h)=>(e.openBlock(),e.createElementBlock("main",dg,[s.content?(e.openBlock(),e.createElementBlock("img",{key:0,class:"max-w-[45%] max-h-[45%] flex items-center justify-center mx-auto",src:s.content},null,8,ug)):(e.openBlock(),e.createElementBlock("section",fg,[e.createElementVNode("div",mg,[e.createVNode(e.unref(Jp),e.normalizeProps(e.guardReactiveProps(a.value)),null,16)]),e.createElementVNode("div",hg,[e.createElementVNode("label",pg,[e.withDirectives(e.createElementVNode("input",{id:"avatarLabel","onUpdate:modelValue":h[0]||(h[0]=m=>r.value=m),type:"checkbox",onInput:l,class:"sc-gJwTLC ikxBAC"},null,544),[[e.vModelCheckbox,r.value]]),h[1]||(h[1]=e.createTextVNode(" Remover barba ",-1))]),e.createElementVNode("button",{onClick:d,class:"generate-button"}," Gerar Avatar ")])]))]))}},[["__scopeId","data-v-4b079369"]]),gg={class:"modal_container"},yg={class:"modal_box"},kg={class:"modal_header"},li=we({__name:"min_modal",props:{defineWidth:{type:String,default:"max-width-md"}},emits:["close"],setup(t,{emit:n}){const a=n,o=()=>{a("close")};return(r,i)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{class:"min_modal"},[e.createElementVNode("div",{class:"modal_overlay",onClick:o})]),e.createElementVNode("div",gg,[e.createElementVNode("div",{class:e.normalizeClass(["modal_content ",t.defineWidth])},[e.createElementVNode("div",yg,[e.createElementVNode("div",kg,[e.renderSlot(r.$slots,"header",{},void 0,!0),e.createElementVNode("button",{class:"modal_close",onClick:i[0]||(i[0]=s=>o())},[...i[1]||(i[1]=[e.createElementVNode("svg",{class:"modal_close_icon","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 14 14"},[e.createElementVNode("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m1 1 6 6m0 0 6 6M7 7l6-6M7 7l-6 6"})],-1)])])]),e.createElementVNode("div",null,[e.renderSlot(r.$slots,"body",{},void 0,!0)])])],2)])],64))}},[["__scopeId","data-v-172c0a39"]]),xg={v:"5.4.4",fr:30,ip:0,op:110,w:800,h:600,nm:"Comp 1",ddd:0,assets:[{id:"comp_0",layers:[{ddd:0,ind:1,ty:4,nm:"Sub Rocket 01",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:1,k:[{i:{x:.833,y:.833},o:{x:.167,y:.167},t:0,s:[219.02,362.805,0],e:[358.52,362.805,0],to:[23.25,0,0],ti:[0,0,0]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:15,s:[358.52,362.805,0],e:[219.02,362.805,0],to:[0,0,0],ti:[23.25,0,0]},{t:30}],ix:2,x:`var $bm_rt;
|
|
97
98
|
$bm_rt = loopOut('cycle', 0);`},a:{a:0,k:[250,400,0],ix:1},s:{a:0,k:[12.773,12.773,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[10.363,-.002],[6.523,-9.638],[0,0],[0,0],[0,0]],o:[[-6.525,-9.644],[-10.359,.002],[0,0],[0,0],[0,0],[0,0]],v:[[27.251,-647.527],[-.003,-661.989],[-27.243,-647.53],[-49.314,-614.918],[-.003,-614.918],[49.314,-614.918]],c:!0},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:0,k:[.328999986836,.430999995213,.477999997606,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[307.689,67.302],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Group 6",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1},{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[17.804,26.312],[0,0],[0,0],[0,0],[0,-31.776],[0,0],[-9.442,0],[0,0],[0,0],[0,9.441],[0,0]],o:[[0,0],[0,0],[0,0],[-17.81,26.316],[0,0],[0,9.441],[0,0],[0,0],[9.442,0],[0,0],[0,-31.769]],v:[[49.321,-774.672],[49.318,-774.677],[0,-774.677],[-49.31,-774.677],[-76.639,-685.538],[-76.639,118.392],[-59.543,135.488],[0,135.488],[59.543,135.488],[76.639,118.392],[76.639,-685.549]],c:!0},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:0,k:[.560553696576,.605397961186,.635294117647,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[307.685,226.327],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Group 7",np:2,cix:2,bm:0,ix:2,mn:"ADBE Vector Group",hd:!1},{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[2.731,0],[0,0],[0,2.731],[-2.731,0],[0,0],[0,-2.731]],o:[[0,0],[-2.731,0],[0,-2.731],[0,0],[2.731,0],[0,2.731]],v:[[74.921,16.932],[-74.92,16.932],[-79.885,11.967],[-74.92,7.002],[74.921,7.002],[79.885,11.967]],c:!0},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:0,k:[.270999983245,.352999997606,.39199999641,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[307.698,377.35],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Group 9",np:2,cix:2,bm:0,ix:3,mn:"ADBE Vector Group",hd:!1},{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0],[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0],[0,0],[0,0]],v:[[58.922,-4.853],[55.933,-16.807],[-54.757,-16.807],[-58.068,-4.853],[-66.808,26.697],[66.809,26.697]],c:!0},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:0,k:[.328999986836,.430999995213,.477999997606,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[307.699,357.655],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Group 10",np:2,cix:2,bm:0,ix:4,mn:"ADBE Vector Group",hd:!1}],ip:0,op:15,st:0,bm:0},{ddd:0,ind:2,ty:4,nm:"Sub Rocket 09",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:1,k:[{i:{x:.833,y:.833},o:{x:.167,y:.167},t:0,s:[219.02,362.805,0],e:[358.52,362.805,0],to:[23.25,0,0],ti:[0,0,0]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:15,s:[358.52,362.805,0],e:[219.02,362.805,0],to:[0,0,0],ti:[23.25,0,0]},{t:30}],ix:2,x:`var $bm_rt;
|
|
98
99
|
$bm_rt = loopOut('cycle', 0);`},a:{a:0,k:[250,400,0],ix:1},s:{a:0,k:[12.773,12.773,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[10.363,-.002],[6.523,-9.638],[0,0],[0,0],[0,0]],o:[[-6.525,-9.644],[-10.359,.002],[0,0],[0,0],[0,0],[0,0]],v:[[27.251,-647.527],[-.003,-661.989],[-27.243,-647.53],[-49.314,-614.918],[-.003,-614.918],[49.314,-614.918]],c:!0},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:0,k:[.328999986836,.430999995213,.477999997606,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[307.689,67.302],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Group 6",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1},{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[17.804,26.312],[0,0],[0,0],[0,0],[0,-31.776],[0,0],[-9.442,0],[0,0],[0,0],[0,9.441],[0,0]],o:[[0,0],[0,0],[0,0],[-17.81,26.316],[0,0],[0,9.441],[0,0],[0,0],[9.442,0],[0,0],[0,-31.769]],v:[[49.321,-774.672],[49.318,-774.677],[0,-774.677],[-49.31,-774.677],[-76.639,-685.538],[-76.639,118.392],[-59.543,135.488],[0,135.488],[59.543,135.488],[76.639,118.392],[76.639,-685.549]],c:!0},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:0,k:[.560553696576,.605397961186,.635294117647,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[307.685,226.327],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Group 7",np:2,cix:2,bm:0,ix:2,mn:"ADBE Vector Group",hd:!1},{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[2.731,0],[0,0],[0,2.731],[-2.731,0],[0,0],[0,-2.731]],o:[[0,0],[-2.731,0],[0,-2.731],[0,0],[2.731,0],[0,2.731]],v:[[74.921,16.932],[-74.92,16.932],[-79.885,11.967],[-74.92,7.002],[74.921,7.002],[79.885,11.967]],c:!0},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:0,k:[.270999983245,.352999997606,.39199999641,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[307.698,377.35],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Group 9",np:2,cix:2,bm:0,ix:3,mn:"ADBE Vector Group",hd:!1},{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0],[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0],[0,0],[0,0]],v:[[58.922,-4.853],[55.933,-16.807],[-54.757,-16.807],[-58.068,-4.853],[-66.808,26.697],[66.809,26.697]],c:!0},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:0,k:[.328999986836,.430999995213,.477999997606,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[307.699,357.655],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Group 10",np:2,cix:2,bm:0,ix:4,mn:"ADBE Vector Group",hd:!1}],ip:90,op:105,st:0,bm:0},{ddd:0,ind:3,ty:4,nm:"Sub Rocket 07",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:1,k:[{i:{x:.833,y:.833},o:{x:.167,y:.167},t:0,s:[219.02,362.805,0],e:[358.52,362.805,0],to:[23.25,0,0],ti:[0,0,0]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:15,s:[358.52,362.805,0],e:[219.02,362.805,0],to:[0,0,0],ti:[23.25,0,0]},{t:30}],ix:2,x:`var $bm_rt;
|
|
99
100
|
$bm_rt = loopOut('cycle', 0);`},a:{a:0,k:[250,400,0],ix:1},s:{a:0,k:[12.773,12.773,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[10.363,-.002],[6.523,-9.638],[0,0],[0,0],[0,0]],o:[[-6.525,-9.644],[-10.359,.002],[0,0],[0,0],[0,0],[0,0]],v:[[27.251,-647.527],[-.003,-661.989],[-27.243,-647.53],[-49.314,-614.918],[-.003,-614.918],[49.314,-614.918]],c:!0},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:0,k:[.328999986836,.430999995213,.477999997606,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[307.689,67.302],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Group 6",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1},{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[17.804,26.312],[0,0],[0,0],[0,0],[0,-31.776],[0,0],[-9.442,0],[0,0],[0,0],[0,9.441],[0,0]],o:[[0,0],[0,0],[0,0],[-17.81,26.316],[0,0],[0,9.441],[0,0],[0,0],[9.442,0],[0,0],[0,-31.769]],v:[[49.321,-774.672],[49.318,-774.677],[0,-774.677],[-49.31,-774.677],[-76.639,-685.538],[-76.639,118.392],[-59.543,135.488],[0,135.488],[59.543,135.488],[76.639,118.392],[76.639,-685.549]],c:!0},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:0,k:[.560553696576,.605397961186,.635294117647,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[307.685,226.327],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Group 7",np:2,cix:2,bm:0,ix:2,mn:"ADBE Vector Group",hd:!1},{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[2.731,0],[0,0],[0,2.731],[-2.731,0],[0,0],[0,-2.731]],o:[[0,0],[-2.731,0],[0,-2.731],[0,0],[2.731,0],[0,2.731]],v:[[74.921,16.932],[-74.92,16.932],[-79.885,11.967],[-74.92,7.002],[74.921,7.002],[79.885,11.967]],c:!0},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:0,k:[.270999983245,.352999997606,.39199999641,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[307.698,377.35],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Group 9",np:2,cix:2,bm:0,ix:3,mn:"ADBE Vector Group",hd:!1},{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0],[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0],[0,0],[0,0]],v:[[58.922,-4.853],[55.933,-16.807],[-54.757,-16.807],[-58.068,-4.853],[-66.808,26.697],[66.809,26.697]],c:!0},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:0,k:[.328999986836,.430999995213,.477999997606,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[307.699,357.655],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Group 10",np:2,cix:2,bm:0,ix:4,mn:"ADBE Vector Group",hd:!1}],ip:60,op:75,st:0,bm:0},{ddd:0,ind:4,ty:4,nm:"Sub Rocket 05",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:1,k:[{i:{x:.833,y:.833},o:{x:.167,y:.167},t:0,s:[219.02,362.805,0],e:[358.52,362.805,0],to:[23.25,0,0],ti:[0,0,0]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:15,s:[358.52,362.805,0],e:[219.02,362.805,0],to:[0,0,0],ti:[23.25,0,0]},{t:30}],ix:2,x:`var $bm_rt;
|
|
@@ -117,7 +118,7 @@ $bm_rt = loopOut('cycle', 0);`},a:{a:0,k:[0,0],ix:1},s:{a:1,k:[{i:{x:[.833,.833]
|
|
|
117
118
|
$bm_rt = loopOut('cycle', 0);`},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Group 11",np:3,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:132,st:0,bm:0},{ddd:0,ind:36,ty:4,nm:"Sub Rocket 01 Joint",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:1,k:[{i:{x:.833,y:.833},o:{x:.167,y:.167},t:0,s:[219.02,362.805,0],e:[358.52,362.805,0],to:[23.25,0,0],ti:[0,0,0]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:15,s:[358.52,362.805,0],e:[219.02,362.805,0],to:[0,0,0],ti:[23.25,0,0]},{t:30}],ix:2,x:`var $bm_rt;
|
|
118
119
|
$bm_rt = loopOut('cycle', 0);`},a:{a:0,k:[250,400,0],ix:1},s:{a:0,k:[12.773,12.773,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[520.1,-144.585],[290.744,84.771],[288.864,289.211],[520.1,57.975]],c:!0},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"st",c:{a:0,k:[1,1,1,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:0,ix:5},lc:1,lj:1,ml:4,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"fl",c:{a:0,k:[.270588235294,.352941176471,.392156862745,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:1,k:[{i:{x:.833,y:.833},o:{x:.167,y:.167},t:0,s:[57.36,0],e:[556.36,0],to:[83.167,0],ti:[0,0]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:15,s:[556.36,0],e:[57.36,0],to:[0,0],ti:[83.167,0]},{t:30}],ix:2,x:`var $bm_rt;
|
|
119
120
|
$bm_rt = loopOut('cycle', 0);`},a:{a:0,k:[0,0],ix:1},s:{a:1,k:[{i:{x:[.833,.833],y:[.833,.833]},o:{x:[.167,.167],y:[.167,.167]},t:0,s:[100,100],e:[-100,100]},{i:{x:[.833,.833],y:[.833,.833]},o:{x:[.167,.167],y:[.167,.167]},t:15,s:[-100,100],e:[100,100]},{t:30}],ix:3,x:`var $bm_rt;
|
|
120
|
-
$bm_rt = loopOut('cycle', 0);`},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Group 11",np:3,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:132,st:0,bm:0}]}],layers:[{ddd:0,ind:1,ty:3,nm:"Position Control",sr:1,ks:{o:{a:0,k:0,ix:11},r:{a:0,k:0,ix:10},p:{s:!0,x:{a:0,k:400,ix:3},y:{a:1,k:[{i:{x:[.349],y:[1]},o:{x:[.039],y:[.602]},t:0,s:[840],e:[300]},{i:{x:[.65],y:[1]},o:{x:[.333],y:[0]},t:30,s:[300],e:[460]},{i:{x:[.818],y:[.968]},o:{x:[.023],y:[.564]},t:80,s:[460],e:[-420]},{t:96}],ix:4}},a:{a:0,k:[0,0,0],ix:1},s:{a:1,k:[{i:{x:[.49,.49,.49],y:[1,1,1]},o:{x:[.49,.49,.49],y:[0,0,0]},t:15,s:[70,70,100],e:[40,40,100]},{t:80}],ix:6}},ao:0,ef:[{ty:5,nm:"Wiggle Rate",np:3,mn:"ADBE Slider Control",ix:1,en:1,ef:[{ty:0,nm:"Slider",mn:"ADBE Slider Control-0001",ix:1,v:{a:0,k:0,ix:1}}]}],ip:0,op:100,st:0,bm:0},{ddd:0,ind:2,ty:0,nm:"Rocket",parent:1,refId:"comp_0",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[5.833,0,0],ix:2},a:{a:0,k:[300,300,0],ix:1},s:{a:0,k:[148.754,148.754,100],ix:6}},ao:0,tm:{a:1,k:[{i:{x:[.21],y:[.928]},o:{x:[.04],y:[.361]},t:0,s:[.667],e:[2]},{i:{x:[.38],y:[1]},o:{x:[.49],y:[0]},t:30.062,s:[2],e:[3.2]},{i:{x:[.82],y:[.986]},o:{x:[.49],y:[0]},t:80,s:[3.2],e:[4.333]},{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:96,s:[4.333],e:[4.333]},{t:130}],ix:2},w:600,h:600,ip:0,op:110,st:0,bm:0},{ddd:0,ind:3,ty:4,nm:"Fire 1",parent:1,sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[-.118,101.791,0],ix:2},a:{a:0,k:[250,380.848,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:1,k:[{i:{x:.35,y:1},o:{x:.04,y:.6},t:9,s:[{i:[[7.185,19.04],[0,0],[0,0],[-4.257,-5.66],[0,0],[-10.521,-10.232],[0,11.755],[0,0]],o:[[0,0],[0,0],[-7.186,19.04],[0,0],[0,11.755],[10.52,-10.232],[0,0],[4.257,-5.66]],v:[[32.583,-41.739],[.001,-41.739],[-32.581,-41.739],[-28.786,191.098],[-24.746,185.22],[0,227.453],[24.746,185.22],[28.785,191.098]],c:!0}],e:[{i:[[7.185,19.04],[0,0],[0,0],[-4.257,-5.66],[0,0],[-10.521,-10.232],[0,11.755],[0,0]],o:[[0,0],[0,0],[-7.186,19.04],[0,0],[0,11.755],[10.52,-10.232],[0,0],[4.257,-5.66]],v:[[32.583,-41.739],[.001,-41.739],[-32.581,-41.739],[-28.786,5.384],[-24.745,-.494],[.001,41.739],[24.746,-.494],[28.785,5.384]],c:!0}]},{t:30}],ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:0,k:[.995999983245,.788000009574,.156999999402,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[250.338,422.749],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Group 11",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:30,st:0,bm:0},{ddd:0,ind:4,ty:4,nm:"Fire 2",parent:1,sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[-.118,103.916,0],ix:2},a:{a:0,k:[250,385.497,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:1,k:[{i:{x:.35,y:1},o:{x:.04,y:.6},t:9,s:[{i:[[11.317,29.988],[0,0],[0,0],[-6.705,-8.915],[0,0],[-16.571,-16.115],[0,18.516],[0,0]],o:[[0,0],[0,0],[-11.316,29.988],[0,0],[0,18.516],[16.57,-16.115],[0,0],[6.706,-8.915]],v:[[51.318,-65.74],[.001,-65.74],[-51.318,-65.74],[-45.338,329.554],[-38.976,320.296],[.001,386.814],[38.976,320.296],[45.339,329.554]],c:!0}],e:[{i:[[11.317,29.988],[0,0],[0,0],[-6.705,-8.915],[0,0],[-16.571,-16.115],[0,18.516],[0,0]],o:[[0,0],[0,0],[-11.316,29.988],[0,0],[0,18.516],[16.57,-16.115],[0,0],[6.706,-8.915]],v:[[51.318,-65.74],[.001,-65.74],[-51.318,-65.74],[-45.339,8.48],[-38.977,-.778],[.001,65.74],[38.975,-.778],[45.339,8.48]],c:!0}]},{t:30}],ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:0,k:[.995999983245,.340999977261,.13300000359,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[250.339,446.75],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Group 12",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:30,st:0,bm:0},{ddd:0,ind:5,ty:4,nm:"Fire 1 Wiggle",parent:1,sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[-.118,101.791,0],ix:2},a:{a:0,k:[250,380.848,0],ix:1},s:{a:1,k:[{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},t:30,s:[100,100,100],e:[100,136.488,100]},{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},t:50,s:[100,136.488,100],e:[100,101,100]},{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},t:71,s:[100,101,100],e:[100,124,100]},{t:80}],ix:6}},ao:0,ef:[{ty:5,nm:"Scale Wiggle",np:3,mn:"ADBE Slider Control",ix:1,en:1,ef:[{ty:0,nm:"Slider",mn:"ADBE Slider Control-0001",ix:1,v:{a:1,k:[{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:29,s:[0],e:[1]},{t:30}],ix:1}}]}],shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:1,k:[{i:{x:.35,y:1},o:{x:.04,y:.6},t:9,s:[{i:[[7.185,19.04],[0,0],[0,0],[-4.257,-5.66],[0,0],[-10.521,-10.232],[0,11.755],[0,0]],o:[[0,0],[0,0],[-7.186,19.04],[0,0],[0,11.755],[10.52,-10.232],[0,0],[4.257,-5.66]],v:[[32.583,-41.739],[.001,-41.739],[-32.581,-41.739],[-28.786,191.098],[-24.746,185.22],[0,227.453],[24.746,185.22],[28.785,191.098]],c:!0}],e:[{i:[[7.185,19.04],[0,0],[0,0],[-4.257,-5.66],[0,0],[-10.521,-10.232],[0,11.755],[0,0]],o:[[0,0],[0,0],[-7.186,19.04],[0,0],[0,11.755],[10.52,-10.232],[0,0],[4.257,-5.66]],v:[[32.583,-41.739],[.001,-41.739],[-32.581,-41.739],[-28.786,5.384],[-24.745,-.494],[.001,41.739],[24.746,-.494],[28.785,5.384]],c:!0}]},{i:{x:.833,y:1},o:{x:.04,y:0},t:30,s:[{i:[[7.185,19.04],[0,0],[0,0],[-4.257,-5.66],[0,0],[-10.521,-10.232],[0,11.755],[0,0]],o:[[0,0],[0,0],[-7.186,19.04],[0,0],[0,11.755],[10.52,-10.232],[0,0],[4.257,-5.66]],v:[[32.583,-41.739],[.001,-41.739],[-32.581,-41.739],[-28.786,5.384],[-24.745,-.494],[.001,41.739],[24.746,-.494],[28.785,5.384]],c:!0}],e:[{i:[[7.185,19.04],[0,0],[0,0],[-4.257,-5.66],[0,0],[-10.521,-10.232],[0,11.755],[0,0]],o:[[0,0],[0,0],[-7.186,19.04],[0,0],[0,11.755],[10.52,-10.232],[0,0],[4.257,-5.66]],v:[[32.583,-41.739],[.001,-41.739],[-32.581,-41.739],[-28.786,5.384],[-24.745,-.494],[.001,41.739],[24.746,-.494],[28.785,5.384]],c:!0}]},{i:{x:.833,y:1},o:{x:.167,y:0},t:80,s:[{i:[[7.185,19.04],[0,0],[0,0],[-4.257,-5.66],[0,0],[-10.521,-10.232],[0,11.755],[0,0]],o:[[0,0],[0,0],[-7.186,19.04],[0,0],[0,11.755],[10.52,-10.232],[0,0],[4.257,-5.66]],v:[[32.583,-41.739],[.001,-41.739],[-32.581,-41.739],[-28.786,5.384],[-24.745,-.494],[.001,41.739],[24.746,-.494],[28.785,5.384]],c:!0}],e:[{i:[[7.185,19.04],[0,0],[0,0],[-4.257,-5.66],[0,0],[-10.521,-10.232],[0,11.755],[0,0]],o:[[0,0],[0,0],[-7.186,19.04],[0,0],[0,11.755],[10.52,-10.232],[0,0],[4.257,-5.66]],v:[[32.583,-41.739],[.001,-41.739],[-32.581,-41.739],[-28.785,534.199],[-24.745,528.322],[.001,570.555],[24.746,528.322],[28.785,534.199]],c:!0}]},{i:{x:.833,y:1},o:{x:.167,y:0},t:81,s:[{i:[[7.185,19.04],[0,0],[0,0],[-4.257,-5.66],[0,0],[-10.521,-10.232],[0,11.755],[0,0]],o:[[0,0],[0,0],[-7.186,19.04],[0,0],[0,11.755],[10.52,-10.232],[0,0],[4.257,-5.66]],v:[[32.583,-41.739],[.001,-41.739],[-32.581,-41.739],[-28.785,534.199],[-24.745,528.322],[.001,570.555],[24.746,528.322],[28.785,534.199]],c:!0}],e:[{i:[[7.185,19.04],[0,0],[0,0],[-4.257,-5.66],[0,0],[-10.521,-10.232],[0,11.755],[0,0]],o:[[0,0],[0,0],[-7.186,19.04],[0,0],[0,11.755],[10.52,-10.232],[0,0],[4.257,-5.66]],v:[[32.583,-41.739],[.001,-41.739],[-32.581,-41.739],[-28.786,534.199],[-24.745,528.322],[.001,570.555],[24.746,528.322],[28.785,534.199]],c:!0}]},{i:{x:.833,y:1},o:{x:.167,y:0},t:82,s:[{i:[[7.185,19.04],[0,0],[0,0],[-4.257,-5.66],[0,0],[-10.521,-10.232],[0,11.755],[0,0]],o:[[0,0],[0,0],[-7.186,19.04],[0,0],[0,11.755],[10.52,-10.232],[0,0],[4.257,-5.66]],v:[[32.583,-41.739],[.001,-41.739],[-32.581,-41.739],[-28.786,534.199],[-24.745,528.322],[.001,570.555],[24.746,528.322],[28.785,534.199]],c:!0}],e:[{i:[[7.185,19.04],[0,0],[0,0],[-4.257,-5.66],[0,0],[-10.521,-10.232],[0,11.755],[0,0]],o:[[0,0],[0,0],[-7.186,19.04],[0,0],[0,11.755],[10.52,-10.232],[0,0],[4.257,-5.66]],v:[[32.583,-41.739],[.001,-41.739],[-32.581,-41.739],[-28.786,107.501],[-24.746,101.624],[0,143.856],[24.746,101.624],[28.785,107.501]],c:!0}]},{t:83}],ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:0,k:[.995999983245,.788000009574,.156999999402,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[250.338,422.749],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Group 11",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:30,op:110,st:0,bm:0},{ddd:0,ind:6,ty:4,nm:"Fire 2 Wiggle",parent:1,sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[-.118,103.916,0],ix:2},a:{a:0,k:[250,385.497,0],ix:1},s:{a:1,k:[{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},t:30,s:[100,100,100],e:[100,144.049,100]},{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},t:50,s:[100,144.049,100],e:[100,96,100]},{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},t:71,s:[100,96,100],e:[100,124,100]},{t:80}],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:1,k:[{i:{x:.35,y:1},o:{x:.04,y:.6},t:9,s:[{i:[[11.317,29.988],[0,0],[0,0],[-6.705,-8.915],[0,0],[-16.571,-16.115],[0,18.516],[0,0]],o:[[0,0],[0,0],[-11.316,29.988],[0,0],[0,18.516],[16.57,-16.115],[0,0],[6.706,-8.915]],v:[[51.318,-65.74],[.001,-65.74],[-51.318,-65.74],[-45.338,169.194],[-38.976,159.936],[.001,226.454],[38.976,159.936],[45.339,169.194]],c:!0}],e:[{i:[[11.317,29.988],[0,0],[0,0],[-6.705,-8.915],[0,0],[-16.571,-16.115],[0,18.516],[0,0]],o:[[0,0],[0,0],[-11.316,29.988],[0,0],[0,18.516],[16.57,-16.115],[0,0],[6.706,-8.915]],v:[[51.318,-65.74],[.001,-65.74],[-51.318,-65.74],[-45.339,8.48],[-38.977,-.778],[.001,65.74],[38.975,-.778],[45.339,8.48]],c:!0}]},{i:{x:.833,y:1},o:{x:.04,y:0},t:30,s:[{i:[[11.317,29.988],[0,0],[0,0],[-6.705,-8.915],[0,0],[-16.571,-16.115],[0,18.516],[0,0]],o:[[0,0],[0,0],[-11.316,29.988],[0,0],[0,18.516],[16.57,-16.115],[0,0],[6.706,-8.915]],v:[[51.318,-65.74],[.001,-65.74],[-51.318,-65.74],[-45.339,8.48],[-38.977,-.778],[.001,65.74],[38.975,-.778],[45.339,8.48]],c:!0}],e:[{i:[[11.317,29.988],[0,0],[0,0],[-6.705,-8.915],[0,0],[-16.571,-16.115],[0,18.516],[0,0]],o:[[0,0],[0,0],[-11.316,29.988],[0,0],[0,18.516],[16.57,-16.115],[0,0],[6.706,-8.915]],v:[[51.318,-65.74],[.001,-65.74],[-51.318,-65.74],[-45.339,8.48],[-38.977,-.778],[.001,65.74],[38.975,-.778],[45.339,8.48]],c:!0}]},{i:{x:.833,y:1},o:{x:.167,y:0},t:80,s:[{i:[[11.317,29.988],[0,0],[0,0],[-6.705,-8.915],[0,0],[-16.571,-16.115],[0,18.516],[0,0]],o:[[0,0],[0,0],[-11.316,29.988],[0,0],[0,18.516],[16.57,-16.115],[0,0],[6.706,-8.915]],v:[[51.318,-65.74],[.001,-65.74],[-51.318,-65.74],[-45.339,8.48],[-38.977,-.778],[.001,65.74],[38.975,-.778],[45.339,8.48]],c:!0}],e:[{i:[[11.317,29.988],[0,0],[0,0],[-6.705,-8.915],[0,0],[-16.571,-16.115],[0,18.516],[0,0]],o:[[0,0],[0,0],[-11.316,29.988],[0,0],[0,18.516],[16.57,-16.115],[0,0],[6.706,-8.915]],v:[[51.318,-65.74],[.001,-65.74],[-51.318,-65.74],[-45.339,514.557],[-38.977,505.299],[0,571.817],[38.975,505.299],[45.338,514.557]],c:!0}]},{i:{x:.833,y:1},o:{x:.167,y:0},t:81,s:[{i:[[11.317,29.988],[0,0],[0,0],[-6.705,-8.915],[0,0],[-16.571,-16.115],[0,18.516],[0,0]],o:[[0,0],[0,0],[-11.316,29.988],[0,0],[0,18.516],[16.57,-16.115],[0,0],[6.706,-8.915]],v:[[51.318,-65.74],[.001,-65.74],[-51.318,-65.74],[-45.339,514.557],[-38.977,505.299],[0,571.817],[38.975,505.299],[45.338,514.557]],c:!0}],e:[{i:[[11.317,29.988],[0,0],[0,0],[-6.705,-8.915],[0,0],[-16.571,-16.115],[0,18.516],[0,0]],o:[[0,0],[0,0],[-11.316,29.988],[0,0],[0,18.516],[16.57,-16.115],[0,0],[6.706,-8.915]],v:[[51.318,-65.74],[.001,-65.74],[-51.318,-65.74],[-45.338,514.557],[-38.976,505.299],[.001,571.817],[38.976,505.299],[45.339,514.557]],c:!0}]},{i:{x:.833,y:1},o:{x:.167,y:0},t:82,s:[{i:[[11.317,29.988],[0,0],[0,0],[-6.705,-8.915],[0,0],[-16.571,-16.115],[0,18.516],[0,0]],o:[[0,0],[0,0],[-11.316,29.988],[0,0],[0,18.516],[16.57,-16.115],[0,0],[6.706,-8.915]],v:[[51.318,-65.74],[.001,-65.74],[-51.318,-65.74],[-45.338,514.557],[-38.976,505.299],[.001,571.817],[38.976,505.299],[45.339,514.557]],c:!0}],e:[{i:[[11.317,29.988],[0,0],[0,0],[-6.705,-8.915],[0,0],[-16.571,-16.115],[0,18.516],[0,0]],o:[[0,0],[0,0],[-11.316,29.988],[0,0],[0,18.516],[16.57,-16.115],[0,0],[6.706,-8.915]],v:[[51.318,-65.74],[.001,-65.74],[-51.318,-65.74],[-45.338,168.845],[-38.976,159.587],[.001,226.105],[38.976,159.587],[45.339,168.845]],c:!0}]},{t:83}],ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:0,k:[.995999983245,.340999977261,.13300000359,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[250.339,446.75],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Group 12",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:30,op:110,st:0,bm:0},{ddd:0,ind:7,ty:4,nm:"Line 11",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:-142,ix:10},p:{a:0,k:[401.5,412,0],ix:2},a:{a:0,k:[-2.5,200,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0]],o:[[0,0],[0,0]],v:[[390.439,-149.673],[-1.75,200.25]],c:!1},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"tm",s:{a:1,k:[{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:74,s:[0],e:[100]},{t:78}],ix:1},e:{a:1,k:[{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:71,s:[6],e:[100]},{t:75}],ix:2},o:{a:0,k:0,ix:3},m:1,ix:2,nm:"Trim Paths 1",mn:"ADBE Vector Filter - Trim",hd:!1},{ty:"st",c:{a:0,k:[1,1,1,1],ix:3},o:{a:0,k:100,ix:4},w:{a:1,k:[{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:71,s:[5],e:[0]},{t:78}],ix:5},lc:1,lj:1,ml:4,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"fl",c:{a:0,k:[.270588235294,.352941176471,.392156862745,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Shape 1",np:4,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:71,op:110,st:71,bm:0},{ddd:0,ind:8,ty:4,nm:"Line 10",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:-7,ix:10},p:{a:0,k:[405.5,406,0],ix:2},a:{a:0,k:[-2.5,200,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0]],o:[[0,0],[0,0]],v:[[390.439,-149.673],[-1.75,200.25]],c:!1},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"tm",s:{a:1,k:[{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:71,s:[0],e:[100]},{t:75}],ix:1},e:{a:1,k:[{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:68,s:[6],e:[100]},{t:72}],ix:2},o:{a:0,k:0,ix:3},m:1,ix:2,nm:"Trim Paths 1",mn:"ADBE Vector Filter - Trim",hd:!1},{ty:"st",c:{a:0,k:[1,1,1,1],ix:3},o:{a:0,k:100,ix:4},w:{a:1,k:[{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:68,s:[5],e:[0]},{t:75}],ix:5},lc:1,lj:1,ml:4,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"fl",c:{a:0,k:[.270588235294,.352941176471,.392156862745,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Shape 1",np:4,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:68,op:110,st:68,bm:0},{ddd:0,ind:9,ty:4,nm:"Line 9",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:-88,ix:10},p:{a:0,k:[399.5,400,0],ix:2},a:{a:0,k:[-2.5,200,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0]],o:[[0,0],[0,0]],v:[[390.439,-149.673],[-1.75,200.25]],c:!1},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"tm",s:{a:1,k:[{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:69,s:[0],e:[100]},{t:73}],ix:1},e:{a:1,k:[{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:66,s:[6],e:[100]},{t:70}],ix:2},o:{a:0,k:0,ix:3},m:1,ix:2,nm:"Trim Paths 1",mn:"ADBE Vector Filter - Trim",hd:!1},{ty:"st",c:{a:0,k:[1,1,1,1],ix:3},o:{a:0,k:100,ix:4},w:{a:1,k:[{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:66,s:[5],e:[0]},{t:73}],ix:5},lc:1,lj:1,ml:4,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"fl",c:{a:0,k:[.270588235294,.352941176471,.392156862745,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Shape 1",np:4,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:66,op:110,st:66,bm:0},{ddd:0,ind:10,ty:4,nm:"Line 4",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:-197,ix:10},p:{a:0,k:[395.5,400,0],ix:2},a:{a:0,k:[-2.5,200,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0]],o:[[0,0],[0,0]],v:[[344,-100],[-1.75,200.25]],c:!1},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"tm",s:{a:1,k:[{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:66,s:[0],e:[100]},{t:70}],ix:1},e:{a:1,k:[{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:63,s:[6],e:[100]},{t:67}],ix:2},o:{a:0,k:0,ix:3},m:1,ix:2,nm:"Trim Paths 1",mn:"ADBE Vector Filter - Trim",hd:!1},{ty:"st",c:{a:0,k:[1,1,1,1],ix:3},o:{a:0,k:100,ix:4},w:{a:1,k:[{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:63,s:[5],e:[0]},{t:70}],ix:5},lc:1,lj:1,ml:4,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"fl",c:{a:0,k:[.270588235294,.352941176471,.392156862745,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Shape 1",np:4,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:63,op:110,st:63,bm:0},{ddd:0,ind:11,ty:4,nm:"Line 6",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:98,ix:10},p:{a:0,k:[393.5,418,0],ix:2},a:{a:0,k:[-2.5,200,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0]],o:[[0,0],[0,0]],v:[[344,-100],[-1.75,200.25]],c:!1},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"tm",s:{a:1,k:[{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:55,s:[0],e:[100]},{t:59}],ix:1},e:{a:1,k:[{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:52,s:[6],e:[100]},{t:56}],ix:2},o:{a:0,k:0,ix:3},m:1,ix:2,nm:"Trim Paths 1",mn:"ADBE Vector Filter - Trim",hd:!1},{ty:"st",c:{a:0,k:[1,1,1,1],ix:3},o:{a:0,k:100,ix:4},w:{a:1,k:[{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:52,s:[5],e:[0]},{t:59}],ix:5},lc:1,lj:1,ml:4,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"fl",c:{a:0,k:[.270588235294,.352941176471,.392156862745,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Shape 1",np:4,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:52,op:110,st:52,bm:0},{ddd:0,ind:12,ty:4,nm:"Line 12",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:68,ix:10},p:{a:0,k:[411.5,320,0],ix:2},a:{a:0,k:[-2.5,200,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0]],o:[[0,0],[0,0]],v:[[344,-100],[-1.75,200.25]],c:!1},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"tm",s:{a:1,k:[{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:37,s:[0],e:[100]},{t:41}],ix:1},e:{a:1,k:[{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:34,s:[6],e:[100]},{t:38}],ix:2},o:{a:0,k:0,ix:3},m:1,ix:2,nm:"Trim Paths 1",mn:"ADBE Vector Filter - Trim",hd:!1},{ty:"st",c:{a:0,k:[1,1,1,1],ix:3},o:{a:0,k:100,ix:4},w:{a:1,k:[{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:34,s:[5],e:[0]},{t:41}],ix:5},lc:1,lj:1,ml:4,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"fl",c:{a:0,k:[.270588235294,.352941176471,.392156862745,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Shape 1",np:4,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:34,op:110,st:34,bm:0},{ddd:0,ind:13,ty:4,nm:"Blasting Circle 4",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[400.5,855,0],ix:2},a:{a:0,k:[0,0,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{d:1,ty:"el",s:{a:1,k:[{i:{x:[.37,.37],y:[1,1]},o:{x:[.42,.42],y:[0,0]},t:78,s:[0,0],e:[1127,1127]},{t:94}],ix:2},p:{a:0,k:[0,0],ix:3},nm:"Ellipse Path 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"st",c:{a:0,k:[1,1,1,1],ix:3},o:{a:0,k:100,ix:4},w:{a:1,k:[{i:{x:[.37],y:[1]},o:{x:[.42],y:[0]},t:78,s:[5],e:[0]},{t:94}],ix:5},lc:1,lj:1,ml:4,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1}],ip:78,op:110,st:78,bm:0},{ddd:0,ind:14,ty:4,nm:"Blasting Circle 3",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[400.5,615,0],ix:2},a:{a:0,k:[0,0,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{d:1,ty:"el",s:{a:1,k:[{i:{x:[.37,.37],y:[1,1]},o:{x:[.42,.42],y:[0,0]},t:78,s:[0,0],e:[1127,1127]},{t:94}],ix:2},p:{a:0,k:[0,0],ix:3},nm:"Ellipse Path 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"st",c:{a:0,k:[1,1,1,1],ix:3},o:{a:0,k:100,ix:4},w:{a:1,k:[{i:{x:[.37],y:[1]},o:{x:[.42],y:[0]},t:78,s:[5],e:[0]},{t:94}],ix:5},lc:1,lj:1,ml:4,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1}],ip:78,op:110,st:78,bm:0},{ddd:0,ind:15,ty:4,nm:"Blasting Circle 2",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[400.5,415,0],ix:2},a:{a:0,k:[0,0,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{d:1,ty:"el",s:{a:1,k:[{i:{x:[.667,.667],y:[1,1]},o:{x:[.333,.333],y:[0,0]},t:61,s:[1007,1007],e:[0,0]},{t:71}],ix:2},p:{a:0,k:[0,0],ix:3},nm:"Ellipse Path 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"st",c:{a:0,k:[1,1,1,1],ix:3},o:{a:0,k:100,ix:4},w:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:61,s:[5],e:[0]},{t:71}],ix:5},lc:1,lj:1,ml:4,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1}],ip:61,op:110,st:61,bm:0},{ddd:0,ind:16,ty:4,nm:"Blasting Circle ",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[399,320,0],ix:2},a:{a:0,k:[0,0,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{d:1,ty:"el",s:{a:1,k:[{i:{x:[.667,.667],y:[1,1]},o:{x:[.333,.333],y:[0,0]},t:40,s:[1007,1007],e:[0,0]},{t:50}],ix:2},p:{a:0,k:[0,0],ix:3},nm:"Ellipse Path 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"st",c:{a:0,k:[1,1,1,1],ix:3},o:{a:0,k:100,ix:4},w:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:40,s:[5],e:[0]},{t:50}],ix:5},lc:1,lj:1,ml:4,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1}],ip:40,op:110,st:40,bm:0},{ddd:0,ind:17,ty:4,nm:"BG",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[400,300,0],ix:2},a:{a:0,k:[0,0,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"rc",d:1,s:{a:0,k:[800,600],ix:2},p:{a:0,k:[0,0],ix:3},r:{a:0,k:0,ix:4},nm:"Rectangle Path 1",mn:"ADBE Vector Shape - Rect",hd:!1},{ty:"fl",c:{a:0,k:[.03137254902,.101960784314,.149019607843,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1}],ip:110,op:110,st:0,bm:0,hidden:0}],markers:[]},Up={class:"main-send-suggestion"},Zp={key:0,class:"sent-suggestion-section"},Yp={class:"sent-suggestion-content"},Xp={class:"container-send-suggestion"},Kp={key:0,class:"tool_tip_suggestion_error"},Qp={key:0,class:"loader-suggestion"},Jp={key:1},eg=Ce({__name:"sendSuggestion",props:{loader:{type:Boolean,default:!1},sentSuccess:{type:Boolean,default:!1}},emits:["postSuccess"],setup(t,{emit:n}){const a=n,o=e.ref(""),r=e.ref(!1),i=()=>{if(r.value=!1,!o.value){r.value=!0;return}a("postSuccess",o.value)};return(s,l)=>{const d=e.resolveComponent("Vue3Lottie");return e.openBlock(),e.createElementBlock("main",Up,[t.sentSuccess?(e.openBlock(),e.createElementBlock("section",Zp,[e.createElementVNode("div",Yp,[l[2]||(l[2]=e.createElementVNode("p",{class:"text-lg font-semibold uppercase"}," Sua sugestão foi recebida com sucesso ",-1)),e.createVNode(d,{"animation-data":e.unref(Wp),height:200,width:200,"auto-play":!0,loop:!0},null,8,["animation-data"]),l[3]||(l[3]=e.createElementVNode("span",{class:"flex flex-col gap-3 lg:text-justify"},[e.createElementVNode("p",{class:"font-semibold"}," Nossa equipe irá avaliá-la com atenção e considerar sua implementação. "),e.createElementVNode("p",{class:"text-[12px]"}," Você irá receber um e-mail com as informações da solicitação e nossa equipe irá responder em até 30 dias ")],-1)),l[4]||(l[4]=e.createElementVNode("p",{class:"font-bold"},"Agradecemos sua colaboração",-1))])])):e.createCommentVNode("",!0),e.createElementVNode("section",Xp,[l[5]||(l[5]=e.createElementVNode("h1",{class:"header_send_suggestion"},"Envie sua sugestão para nós",-1)),e.withDirectives(e.createElementVNode("textarea",{"onUpdate:modelValue":l[0]||(l[0]=f=>o.value=f),class:"input_send_suggestion textarea-send-suggestion",placeholder:"Gostaria que vocês adicionassem...",type:"text"},null,512),[[e.vModelText,o.value]]),r.value?(e.openBlock(),e.createElementBlock("span",Kp," Por favor, preencha o campo antes de continuar ")):e.createCommentVNode("",!0),e.createElementVNode("button",{onClick:l[1]||(l[1]=f=>i()),class:"submit-button-send-suggestion"},[t.loader?(e.openBlock(),e.createElementBlock("div",Qp)):(e.openBlock(),e.createElementBlock("p",Jp,"Enviar"))])])])}}},[["__scopeId","data-v-b6717495"]]),tg=t=>`<svg class="${t}" aria-hidden="true" fill="none" viewBox="0 0 24 24" > <path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M18 14v4.833A1.166 1.166 0 0 1 16.833 20H5.167A1.167 1.167 0 0 1 4 18.833V7.167A1.166 1.166 0 0 1 5.167 6h4.618m4.447-2H20v5.768m-7.889 2.121 7.778-7.778" /> </svg>`,ng=t=>`<svg class="${t}" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24" > <path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 10h16m-8-3V4M7 7V4m10 3V4M5 20h14a1 1 0 0 0 1-1V7a1 1 0 0 0-1-1H5a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1Zm3-7h.01v.01H8V13Zm4 0h.01v.01H12V13Zm4 0h.01v.01H16V13Zm-8 4h.01v.01H8V17Zm4 0h.01v.01H12V17Zm4 0h.01v.01H16V17Z" /> </svg>`,ag=["innerHTML"],H1={__name:"svg",props:{svgContent:{type:String,required:!0}},setup(t){return(n,a)=>(e.openBlock(),e.createElementBlock("div",{innerHTML:t.svgContent},null,8,ag))}},og={class:"feature-card__header"},rg={class:"feature-card__title"},ig={class:"flex items-center gap-2"},sg={key:0,class:"sparkle-badge"},lg={key:0},cg={class:"feature-card__content"},dg={class:"feature-card__description scroll_area_feature_card"},ug=["innerHTML"],mg=["href"],fg={class:"feature-card__footer"},hg={class:"feature-card__footer-section"},z1=Ce({__name:"feature_card",props:{state:{type:String,required:!0,default:"updated"},title:{type:String,required:!0},description:{type:String,required:!0},date:{type:[String,null],required:!0},tutorial:{type:String,default:null},flag:{type:String,required:!0},sparkles:{type:Boolean,default:!1}},setup(t){const n=e.ref(!1),a=e.ref(null),o=t;mn(a,()=>{n.value=!1});const i=e.computed(()=>({"arrow-icon-patch-notes":!0,rotate:!n.value})),s=e.computed(()=>({"feature-card":!0,"feature-card--updated":o.state==="updated","feature-card--future":o.state==="future-update","feature-card--other":o.state!=="updated"&&o.state!=="future-update"})),l=e.computed(()=>({"pill-flag":!0,"pill-flag--new-feature":o.flag==="new-feature","pill-flag--improvement":o.flag==="improvement","pill-flag--bug-fix":o.flag==="bug-fix"})),d=e.computed(()=>o.flag==="improvement"?"Melhorias":o.flag==="new-feature"?"Novo Recurso":"correção de erros"),f=e.computed(()=>({"pill-date":!0,"pill-date--updated":o.state==="updated","pill-date--future":o.state!=="updated"}));return(u,h)=>{const m=e.resolveComponent("Popper");return e.openBlock(),e.createElementBlock("main",{class:e.normalizeClass(["feature_style relative",s.value]),ref_key:"targetFeatureCard",ref:a,onClick:h[0]||(h[0]=p=>n.value=!n.value)},[e.createElementVNode("header",og,[e.createElementVNode("h1",rg,e.toDisplayString(t.title),1),e.createElementVNode("section",ig,[(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass(i.value),viewBox:"0 0 24 24",fill:"none"},h[1]||(h[1]=[e.createElementVNode("g",null,[e.createElementVNode("path",{d:"M15 11L12 8M12 8L9 11M12 8V16M21 12C21 7.02944 16.9706 3 12 3C7.02944 3 3 7.02944 3 12C3 16.9706 7.02944 21 12 21C16.9706 21 21 16.9706 21 12Z",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})],-1)]),2)),t.sparkles?(e.openBlock(),e.createElementBlock("div",sg,h[2]||(h[2]=[e.createStaticVNode('<svg class="size-4" viewBox="0 0 128 128" data-v-548200ae><path d="M121.59 60.83l-13.93-4.49c-8.91-2.94-14.13-10.15-16.58-19.21L84.95 7.27c-.16-.59-.55-1.38-1.75-1.38c-1.01 0-1.59.79-1.75 1.38l-6.13 29.87c-2.46 9.06-7.67 16.27-16.58 19.21l-13.93 4.49c-1.97.64-2 3.42-.04 4.09l14.03 4.83c8.88 2.95 14.06 10.15 16.52 19.17l6.14 29.53c.16.59.49 1.65 1.75 1.65c1.33 0 1.59-1.06 1.75-1.65l6.14-29.53c2.46-9.03 7.64-16.23 16.52-19.17l14.03-4.83c1.94-.68 1.91-3.46-.06-4.1z" fill="#fdd835" data-v-548200ae></path><path d="M122.91 62.08c-.22-.55-.65-1.03-1.32-1.25l-13.93-4.49c-8.91-2.94-14.13-10.15-16.58-19.21L84.95 7.27c-.09-.34-.41-.96-.78-1.14l1.98 29.97c1.47 13.68 2.73 20.12 13.65 22c9.38 1.62 20.23 3.48 23.11 3.98z" fill="#ffee58" data-v-548200ae></path><path d="M122.94 63.64l-24.16 5.54c-8.51 2.16-13.2 7.09-13.2 19.99l-2.37 30.94c.81-.08 1.47-.52 1.75-1.65l6.14-29.53c2.46-9.03 7.64-16.23 16.52-19.17l14.03-4.83c.66-.24 1.08-.73 1.29-1.29z" fill="#f4b400" data-v-548200ae></path><g data-v-548200ae><path d="M41.81 86.81c-8.33-2.75-9.09-5.85-10.49-11.08l-3.49-12.24c-.21-.79-2.27-.79-2.49 0L22.97 74.8c-1.41 5.21-4.41 9.35-9.53 11.04l-8.16 3.54c-1.13.37-1.15 1.97-.02 2.35l8.22 2.91c5.1 1.69 8.08 5.83 9.5 11.02l2.37 10.82c.22.79 2.27.79 2.48 0l2.78-10.77c1.41-5.22 3.57-9.37 10.5-11.07l7.72-2.91c1.13-.39 1.12-1.99-.02-2.36l-7-2.56z" fill="#fdd835" data-v-548200ae></path><path d="M28.49 75.55c.85 7.86 1.28 10.04 7.65 11.67l13.27 2.59c-.14-.19-.34-.35-.61-.43l-7-2.57c-7.31-2.5-9.33-5.68-10.7-12.04c-1.37-6.36-2.83-10.51-2.83-10.51c-.51-1.37-1.24-1.3-1.24-1.3l1.46 12.59z" fill="#ffee58" data-v-548200ae></path><path d="M28.73 102.99c0-7.41 4.05-11.08 10.49-11.08l10.02-.41s-.58.77-1.59 1.01l-6.54 2.13c-5.55 2.23-8.08 3.35-9.8 10.94c0 0-2.22 8.83-2.64 9.76c-.58 1.3-1.27 1.57-1.27 1.57l1.33-13.92z" fill="#f4b400" data-v-548200ae></path></g><path d="M59.74 28.14c.56-.19.54-.99-.03-1.15l-7.72-2.08a4.77 4.77 0 0 1-3.34-3.3L45.61 9.06c-.15-.61-1.02-.61-1.17.01l-2.86 12.5a4.734 4.734 0 0 1-3.4 3.37l-7.67 1.99c-.57.15-.61.95-.05 1.15l8.09 2.8c1.45.5 2.57 1.68 3.01 3.15l2.89 11.59c.15.6 1.01.61 1.16 0l2.99-11.63a4.773 4.773 0 0 1 3.04-3.13l8.1-2.72z" fill="#f4b400" stroke="#f4b400" stroke-miterlimit="10" data-v-548200ae></path></svg>',1)]))):e.createCommentVNode("",!0)])]),e.createVNode(e.Transition,{name:"fade-slide"},{default:e.withCtx(()=>[n.value?(e.openBlock(),e.createElementBlock("div",lg,[h[4]||(h[4]=e.createElementVNode("hr",{class:"feature-card__divider"},null,-1)),e.createElementVNode("section",cg,[e.createElementVNode("span",dg,[e.createElementVNode("p",{class:"feature-card__paragraph",innerHTML:t.description.replace(/\n/g,"<br>")},null,8,ug)]),t.tutorial?(e.openBlock(),e.createElementBlock("a",{key:0,class:"feature-card__tutorial-button",href:t.tutorial,target:"__blank"},[h[3]||(h[3]=e.createTextVNode(" Veja o tutorial ")),e.createVNode(H1,{svgContent:e.unref(tg)("size-4 text-blue-900")},null,8,["svgContent"])],8,mg)):e.createCommentVNode("",!0)])])):e.createCommentVNode("",!0)]),_:1}),e.createElementVNode("footer",fg,[e.createElementVNode("section",hg,[e.createElementVNode("span",{class:e.normalizeClass(l.value)},e.toDisplayString(d.value),3),e.createVNode(m,{class:"pill_date_popper",hover:"",disabled:t.state==="updated",arrow:!0,content:"Essa é uma data prevista para o lançamento deste recurso, a mesma está sujeita a mudanças a qualquer momento"},{default:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass(f.value)},[e.createVNode(H1,{svgContent:e.unref(ng)("size-4 text-white")},null,8,["svgContent"]),e.createElementVNode("p",null,e.toDisplayString(new Intl.DateTimeFormat("pt-BR",{day:"2-digit",month:"short",year:"numeric"}).format(new Date(t.date+"T12:00:00")).replace(/ de /g," ")),1)],2)]),_:1},8,["disabled"])])])],2)}}},[["__scopeId","data-v-548200ae"]]),pg={class:"modal-container-patch-notes"},gg={class:"modal-content-patch-notes scroll_area_patch_notes_latest_update"},yg={class:"modal-header-patch-notes"},kg={class:"modal-body-patch-notes"},xg={class:"modal-body-control"},bg={class:"modal-section-patch-notes updates-section-patch-notes"},wg={key:0,class:"sections-skeleton-loader"},Eg={class:"skeleton-loader skeleton-color-latest_update"},vg={key:1,class:"text-not-patchs"},Cg={class:"modal-section-patch-notes future-section-patch-notes"},Sg={key:0,class:"sections-skeleton-loader"},Bg={class:"skeleton-loader skeleton-color-latest_update"},Vg={key:1,class:"text-not-patchs"},j1=Ce({__name:"patchNotes",props:{future_updates:{type:[Object,null],required:!0},latest_update:{type:[Object,null],required:!0},loader:{type:Boolean,default:!1},sentSuccess:{type:Boolean,default:!1}},emits:["close","postSuggestion","loadMoreFutureUpdates","loadMoreLatestUpdates"],setup(t,{emit:n}){const a=e.ref(1),o=e.ref(1),r=e.ref(null),i=e.ref(null),s=n,l=m=>{s("postSuggestion",m)},d=()=>{s("close"),a.value=1,o.value=1},f=({loaded:m,complete:p})=>{s("loadMoreFutureUpdates",{loaded:m,complete:p,page:a.value}),a.value++},u=({loaded:m,complete:p})=>{s("loadMoreLatestUpdates",{loaded:m,complete:p,page:o.value}),o.value++},h=m=>{if(!m)return!1;const p=new Date,c=new Date(m+"T12:00:00");return Math.abs(p-c)/(1e3*60*60*24)<=3};return(m,p)=>(e.openBlock(),e.createElementBlock("main",null,[p[8]||(p[8]=e.createElementVNode("div",{class:"modal-overlay-patch-notes"},[e.createElementVNode("div",{class:"modal-backdrop-patch-notes"})],-1)),e.createElementVNode("div",pg,[e.createElementVNode("div",gg,[e.createElementVNode("div",yg,[e.createElementVNode("button",{onClick:p[0]||(p[0]=c=>d()),class:"modal-close-btn-patch-notes"},p[1]||(p[1]=[e.createElementVNode("svg",{class:"modal-close-icon-patch-notes","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 14 14"},[e.createElementVNode("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m1 1 6 6m0 0 6 6M7 7l6-6M7 7l-6 6"})],-1)]))]),e.createElementVNode("div",kg,[e.createElementVNode("div",xg,[e.createElementVNode("section",bg,[p[4]||(p[4]=e.createElementVNode("h1",{class:"header_latest_update"},"Ultimas Atualizações",-1)),e.createElementVNode("div",{ref_key:"scrollLasContainer",ref:i,class:"features-list scrollable-section scroll_area_patch_notes_latest_update"},[t.latest_update?t.latest_update<=0?(e.openBlock(),e.createElementBlock("span",vg," Nenhuma atualização programada ")):e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("section",wg,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(15,c=>e.createElementVNode("div",Eg)),64))])),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.latest_update,(c,g)=>(e.openBlock(),e.createBlock(z1,{key:g,state:"updated",title:c.title,description:c.description,date:c.launched_at,tutorial:c.tutorial,flag:c.flag,sparkles:h(c.launched_at)},null,8,["title","description","date","tutorial","flag","sparkles"]))),128)),e.createVNode(e.unref(Ht),{distance:20,target:i.value,onInfinite:u},{complete:e.withCtx(()=>p[2]||(p[2]=[e.createElementVNode("span",{class:""},null,-1)])),spinner:e.withCtx(()=>p[3]||(p[3]=[e.createElementVNode("section",{class:"sections-skeleton-loader"},[e.createElementVNode("div",{class:"skeleton-loader skeleton-color-latest_update"},[e.createElementVNode("div",{class:"infinite-loader-spin"})])],-1)])),_:1},8,["target"])],512)]),e.createElementVNode("section",Cg,[p[7]||(p[7]=e.createElementVNode("h1",{class:"header_future_updates"},"Futuras Atualizações",-1)),e.createElementVNode("div",{ref_key:"scrollFutContainer",ref:r,class:"features-list scrollable-section scroll_area_patch_notes_future_updates"},[t.future_updates?t.future_updates<=0?(e.openBlock(),e.createElementBlock("span",Vg," Nenhuma atualização programada ")):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:2},e.renderList(t.future_updates,(c,g)=>(e.openBlock(),e.createBlock(z1,{key:g,state:"future-update",title:c.title,description:c.description,date:c.launched_at,tutorial:c.tutorial,flag:c.flag},null,8,["title","description","date","tutorial","flag"]))),128)):(e.openBlock(),e.createElementBlock("section",Sg,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(15,c=>e.createElementVNode("div",Bg)),64))])),e.createVNode(e.unref(Ht),{distance:20,target:r.value,onInfinite:f},{complete:e.withCtx(()=>p[5]||(p[5]=[e.createElementVNode("span",{class:""},null,-1)])),spinner:e.withCtx(()=>p[6]||(p[6]=[e.createElementVNode("section",{class:"sections-skeleton-loader"},[e.createElementVNode("div",{class:"skeleton-loader skeleton-color-future_updates"},[e.createElementVNode("div",{class:"infinite-loader-spin"})])],-1)])),_:1},8,["target"])],512)])]),e.createVNode(eg,{loader:t.loader,sentSuccess:t.sentSuccess,onPostSuccess:l},null,8,["loader","sentSuccess"])])])])]))}},[["__scopeId","data-v-a451d2d0"]]),Mg={key:0,class:"sparkle-badge"},Ng={key:0,class:"text-white text-center flex-1"},Ag={key:1,class:"sparkle-badge"},G1=Ce({__name:"btnNewUpdates",props:{type:{type:String,default:"attendant",required:!0},mode:{type:String,default:"dark"},sparkles:{type:Boolean,default:!1}},emits:["openNewUpdates"],setup(t,{emit:n}){const a=n,o=t,r=(l,d)=>{const f={attendant:{container:"main-container-new-update",button:"update-button",tooltip:"tooltip-new-update",iconSize:"size-4",usePopper:!1,text:null},managerSideBarClose:{container:"main-container-new-update-manager-close",button:"new_update-button ",tooltip:null,iconSize:"size-6",usePopper:!0,text:null},managerSideBarOpen:{container:"main-container-new-update-manager-open",button:"new_update-button-open-side open-width",tooltip:null,iconSize:"size-6",usePopper:!1,text:"Notas de atualização"}};return f[l]||f.attendant},i=e.computed(()=>r(o.type,o.sparkles)),s=()=>{a("openNewUpdates")};return(l,d)=>(e.openBlock(),e.createElementBlock("main",{class:e.normalizeClass(["relative",i.value.container]),onClick:s},[i.value.usePopper?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("button",{class:e.normalizeClass(i.value.button)},d[0]||(d[0]=[e.createElementVNode("svg",{class:"new_update-icon",fill:"currentColor",viewBox:"0 0 420.827 420.827"},[e.createElementVNode("g",null,[e.createElementVNode("g",null,[e.createElementVNode("path",{d:"M210.29,0C156,0,104.43,20.693,65.077,58.269C25.859,95.715,2.794,146.022,0.134,199.921 c-0.135,2.734,0.857,5.404,2.744,7.388c1.889,1.983,4.507,3.105,7.244,3.105h45.211c5.275,0,9.644-4.098,9.979-9.362 c4.871-76.214,68.553-135.914,144.979-135.914c80.105,0,145.275,65.171,145.275,145.276c0,80.105-65.17,145.276-145.275,145.276 c-18.109,0-35.772-3.287-52.501-9.771l17.366-15.425c2.686-2.354,3.912-5.964,3.217-9.468c-0.696-3.506-3.209-6.371-6.592-7.521 l-113-32.552c-3.387-1.149-7.122-0.407-9.81,1.948c-2.686,2.354-3.913,5.963-3.218,9.467L69.71,403.157 c0.696,3.505,3.209,6.372,6.591,7.521c3.383,1.147,7.122,0.408,9.81-1.946l18.599-16.298 c31.946,18.574,68.456,28.394,105.581,28.394c116.021,0,210.414-94.392,210.414-210.414C420.705,94.391,326.312,0,210.29,0z"}),e.createElementVNode("path",{d:"M195.112,237.9h118.5c2.757,0,5-2.242,5-5v-30c0-2.757-2.243-5-5-5h-83.5v-91c0-2.757-2.243-5-5-5h-30 c-2.757,0-5,2.243-5,5v126C190.112,235.658,192.355,237.9,195.112,237.9z"})])])],-1)]),2),t.sparkles?(e.openBlock(),e.createElementBlock("div",Mg,[(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass(i.value.iconSize),viewBox:"0 0 128 128"},d[1]||(d[1]=[e.createStaticVNode('<path d="M121.59 60.83l-13.93-4.49c-8.91-2.94-14.13-10.15-16.58-19.21L84.95 7.27c-.16-.59-.55-1.38-1.75-1.38c-1.01 0-1.59.79-1.75 1.38l-6.13 29.87c-2.46 9.06-7.67 16.27-16.58 19.21l-13.93 4.49c-1.97.64-2 3.42-.04 4.09l14.03 4.83c8.88 2.95 14.06 10.15 16.52 19.17l6.14 29.53c.16.59.49 1.65 1.75 1.65c1.33 0 1.59-1.06 1.75-1.65l6.14-29.53c2.46-9.03 7.64-16.23 16.52-19.17l14.03-4.83c1.94-.68 1.91-3.46-.06-4.1z" fill="#fdd835" data-v-200168a7></path><path d="M122.91 62.08c-.22-.55-.65-1.03-1.32-1.25l-13.93-4.49c-8.91-2.94-14.13-10.15-16.58-19.21L84.95 7.27c-.09-.34-.41-.96-.78-1.14l1.98 29.97c1.47 13.68 2.73 20.12 13.65 22c9.38 1.62 20.23 3.48 23.11 3.98z" fill="#ffee58" data-v-200168a7></path><path d="M122.94 63.64l-24.16 5.54c-8.51 2.16-13.2 7.09-13.2 19.99l-2.37 30.94c.81-.08 1.47-.52 1.75-1.65l6.14-29.53c2.46-9.03 7.64-16.23 16.52-19.17l14.03-4.83c.66-.24 1.08-.73 1.29-1.29z" fill="#f4b400" data-v-200168a7></path><g data-v-200168a7><path d="M41.81 86.81c-8.33-2.75-9.09-5.85-10.49-11.08l-3.49-12.24c-.21-.79-2.27-.79-2.49 0L22.97 74.8c-1.41 5.21-4.41 9.35-9.53 11.04l-8.16 3.54c-1.13.37-1.15 1.97-.02 2.35l8.22 2.91c5.1 1.69 8.08 5.83 9.5 11.02l2.37 10.82c.22.79 2.27.79 2.48 0l2.78-10.77c1.41-5.22 3.57-9.37 10.5-11.07l7.72-2.91c1.13-.39 1.12-1.99-.02-2.36l-7-2.56z" fill="#fdd835" data-v-200168a7></path><path d="M28.49 75.55c.85 7.86 1.28 10.04 7.65 11.67l13.27 2.59c-.14-.19-.34-.35-.61-.43l-7-2.57c-7.31-2.5-9.33-5.68-10.7-12.04c-1.37-6.36-2.83-10.51-2.83-10.51c-.51-1.37-1.24-1.3-1.24-1.3l1.46 12.59z" fill="#ffee58" data-v-200168a7></path><path d="M28.73 102.99c0-7.41 4.05-11.08 10.49-11.08l10.02-.41s-.58.77-1.59 1.01l-6.54 2.13c-5.55 2.23-8.08 3.35-9.8 10.94c0 0-2.22 8.83-2.64 9.76c-.58 1.3-1.27 1.57-1.27 1.57l1.33-13.92z" fill="#f4b400" data-v-200168a7></path></g><path d="M59.74 28.14c.56-.19.54-.99-.03-1.15l-7.72-2.08a4.77 4.77 0 0 1-3.34-3.3L45.61 9.06c-.15-.61-1.02-.61-1.17.01l-2.86 12.5a4.734 4.734 0 0 1-3.4 3.37l-7.67 1.99c-.57.15-.61.95-.05 1.15l8.09 2.8c1.45.5 2.57 1.68 3.01 3.15l2.89 11.59c.15.6 1.01.61 1.16 0l2.99-11.63a4.773 4.773 0 0 1 3.04-3.13l8.1-2.72z" fill="#f4b400" stroke="#f4b400" stroke-miterlimit="10" data-v-200168a7></path>',5)]),2))])):e.createCommentVNode("",!0)],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("button",{class:e.normalizeClass(["relative",i.value.button])},[(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass(o.mode==="dark"?"dark_new_update-icon":"new_update-icon"),fill:"currentColor",viewBox:"0 0 420.827 420.827"},d[2]||(d[2]=[e.createElementVNode("g",null,[e.createElementVNode("g",null,[e.createElementVNode("path",{d:"M210.29,0C156,0,104.43,20.693,65.077,58.269C25.859,95.715,2.794,146.022,0.134,199.921 c-0.135,2.734,0.857,5.404,2.744,7.388c1.889,1.983,4.507,3.105,7.244,3.105h45.211c5.275,0,9.644-4.098,9.979-9.362 c4.871-76.214,68.553-135.914,144.979-135.914c80.105,0,145.275,65.171,145.275,145.276c0,80.105-65.17,145.276-145.275,145.276 c-18.109,0-35.772-3.287-52.501-9.771l17.366-15.425c2.686-2.354,3.912-5.964,3.217-9.468c-0.696-3.506-3.209-6.371-6.592-7.521 l-113-32.552c-3.387-1.149-7.122-0.407-9.81,1.948c-2.686,2.354-3.913,5.963-3.218,9.467L69.71,403.157 c0.696,3.505,3.209,6.372,6.591,7.521c3.383,1.147,7.122,0.408,9.81-1.946l18.599-16.298 c31.946,18.574,68.456,28.394,105.581,28.394c116.021,0,210.414-94.392,210.414-210.414C420.705,94.391,326.312,0,210.29,0z"}),e.createElementVNode("path",{d:"M195.112,237.9h118.5c2.757,0,5-2.242,5-5v-30c0-2.757-2.243-5-5-5h-83.5v-91c0-2.757-2.243-5-5-5h-30 c-2.757,0-5,2.243-5,5v126C190.112,235.658,192.355,237.9,195.112,237.9z"})])],-1)]),2)),i.value.text?(e.openBlock(),e.createElementBlock("span",Ng,e.toDisplayString(i.value.text),1)):e.createCommentVNode("",!0),t.sparkles?(e.openBlock(),e.createElementBlock("div",Ag,[(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass(i.value.iconSize),viewBox:"0 0 128 128"},d[3]||(d[3]=[e.createStaticVNode('<path d="M121.59 60.83l-13.93-4.49c-8.91-2.94-14.13-10.15-16.58-19.21L84.95 7.27c-.16-.59-.55-1.38-1.75-1.38c-1.01 0-1.59.79-1.75 1.38l-6.13 29.87c-2.46 9.06-7.67 16.27-16.58 19.21l-13.93 4.49c-1.97.64-2 3.42-.04 4.09l14.03 4.83c8.88 2.95 14.06 10.15 16.52 19.17l6.14 29.53c.16.59.49 1.65 1.75 1.65c1.33 0 1.59-1.06 1.75-1.65l6.14-29.53c2.46-9.03 7.64-16.23 16.52-19.17l14.03-4.83c1.94-.68 1.91-3.46-.06-4.1z" fill="#fdd835" data-v-200168a7></path><path d="M122.91 62.08c-.22-.55-.65-1.03-1.32-1.25l-13.93-4.49c-8.91-2.94-14.13-10.15-16.58-19.21L84.95 7.27c-.09-.34-.41-.96-.78-1.14l1.98 29.97c1.47 13.68 2.73 20.12 13.65 22c9.38 1.62 20.23 3.48 23.11 3.98z" fill="#ffee58" data-v-200168a7></path><path d="M122.94 63.64l-24.16 5.54c-8.51 2.16-13.2 7.09-13.2 19.99l-2.37 30.94c.81-.08 1.47-.52 1.75-1.65l6.14-29.53c2.46-9.03 7.64-16.23 16.52-19.17l14.03-4.83c.66-.24 1.08-.73 1.29-1.29z" fill="#f4b400" data-v-200168a7></path><g data-v-200168a7><path d="M41.81 86.81c-8.33-2.75-9.09-5.85-10.49-11.08l-3.49-12.24c-.21-.79-2.27-.79-2.49 0L22.97 74.8c-1.41 5.21-4.41 9.35-9.53 11.04l-8.16 3.54c-1.13.37-1.15 1.97-.02 2.35l8.22 2.91c5.1 1.69 8.08 5.83 9.5 11.02l2.37 10.82c.22.79 2.27.79 2.48 0l2.78-10.77c1.41-5.22 3.57-9.37 10.5-11.07l7.72-2.91c1.13-.39 1.12-1.99-.02-2.36l-7-2.56z" fill="#fdd835" data-v-200168a7></path><path d="M28.49 75.55c.85 7.86 1.28 10.04 7.65 11.67l13.27 2.59c-.14-.19-.34-.35-.61-.43l-7-2.57c-7.31-2.5-9.33-5.68-10.7-12.04c-1.37-6.36-2.83-10.51-2.83-10.51c-.51-1.37-1.24-1.3-1.24-1.3l1.46 12.59z" fill="#ffee58" data-v-200168a7></path><path d="M28.73 102.99c0-7.41 4.05-11.08 10.49-11.08l10.02-.41s-.58.77-1.59 1.01l-6.54 2.13c-5.55 2.23-8.08 3.35-9.8 10.94c0 0-2.22 8.83-2.64 9.76c-.58 1.3-1.27 1.57-1.27 1.57l1.33-13.92z" fill="#f4b400" data-v-200168a7></path></g><path d="M59.74 28.14c.56-.19.54-.99-.03-1.15l-7.72-2.08a4.77 4.77 0 0 1-3.34-3.3L45.61 9.06c-.15-.61-1.02-.61-1.17.01l-2.86 12.5a4.734 4.734 0 0 1-3.4 3.37l-7.67 1.99c-.57.15-.61.95-.05 1.15l8.09 2.8c1.45.5 2.57 1.68 3.01 3.15l2.89 11.59c.15.6 1.01.61 1.16 0l2.99-11.63a4.773 4.773 0 0 1 3.04-3.13l8.1-2.72z" fill="#f4b400" stroke="#f4b400" stroke-miterlimit="10" data-v-200168a7></path>',5)]),2))])):e.createCommentVNode("",!0)],2),e.withDirectives(e.createElementVNode("p",{class:e.normalizeClass(i.value.tooltip)}," Notas de atualização ",2),[[e.vShow,i.value.tooltip]])],64))],2))}},[["__scopeId","data-v-200168a7"]]),Tg=["innerHTML"],Dg=["src"],q1={__name:"libPhotoPicker",props:{modelValue:{type:[String,null],default:null},sizeClass:{type:String,default:"size-22"},baseClass:{type:String,default:"shadow shadow-black rounded-xl relative border-2 border-gray-500 bg-base-300 hover:bg-base-300/70 transition-all"},emptyPlaceholder:{type:String,default:'<svg class="size-32 text-white" 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="M7.5 4.586A2 2 0 0 1 8.914 4h6.172a2 2 0 0 1 1.414.586L17.914 6H19a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h1.086L7.5 4.586ZM10 12a2 2 0 1 1 4 0 2 2 0 0 1-4 0Zm2-4a4 4 0 1 0 0 8 4 4 0 0 0 0-8Z" clip-rule="evenodd"/> </svg>'}},emits:["update:modelValue"],setup(t,{emit:n}){const a=n,o=async()=>{const i=document.createElement("input");i.type="file",i.accept="image/*",i.onchange=async s=>{const l=s.target.files[0];if(!l)return;const d=new FileReader;d.onload=()=>{a("update:modelValue",d.result)},d.readAsDataURL(l)},i.click()},r=async()=>{a("update:modelValue",null)};return(i,s)=>(e.openBlock(),e.createElementBlock("button",{class:e.normalizeClass(t.baseClass)},[t.modelValue?(e.openBlock(),e.createElementBlock("img",{key:1,src:typeof t.modelValue=="string"&&t.modelValue.startsWith("data:image/")?t.modelValue:`${t.modelValue}?t=${Date.now()}`,onClick:o,class:e.normalizeClass(`${t.sizeClass} rounded-xl z-10 object-center bg-base-300 object-scale-down hover:bg-base-300/70`)},null,10,Dg)):(e.openBlock(),e.createElementBlock("section",{key:0,class:e.normalizeClass(`flex items-center justify-center ${t.sizeClass}`),onClick:o},[e.createElementVNode("span",{class:e.normalizeClass("p-3 rounded-xl text-gray-400 hover:scale-105 hover:text-primary hover:border-primary"),innerHTML:t.emptyPlaceholder},null,8,Tg)],2)),t.modelValue?(e.openBlock(),e.createElementBlock("button",{key:2,onClick:e.withModifiers(r,["stop"]),class:"absolute top-1 right-1 rounded-lg bg-red-600 hover:bg-red-500 z-50 py-1 px-1"},s[0]||(s[0]=[e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"w-5"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6 18L18 6M6 6l12 12"})],-1)]))):e.createCommentVNode("",!0)],2))}},Lg={key:0,class:"text-gray-500 text-xs"},Fg={key:1,class:"text-gray-300 text-xs"},$g={class:"text-green-500"},_g={key:0,class:"absolute z-10 mt-1.5 w-full bg-base-300 shadow-sm shadow-base-100 border border-base-300 rounded-md max-h-64 overflow-y-auto hide-scrollbar"},Pg={class:"p-2 sticky top-0 bg-base-300"},Og=["onClick"],Rg={class:"text-xs truncate max-w-32"},Hg={key:0,class:"size-4 text-green-500","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},zg={key:0,class:"text-center text-gray-400 py-2"},I1=Ce({__name:"selectMultipleDepartments",props:{modelValue:{type:Array,default:()=>[]},departments:{type:Array,default:()=>[],required:!0},placeholder:{type:String,default:"Selecione departamentos..."}},emits:["update:modelValue"],setup(t,{emit:n}){const a=t,o=n,r=e.ref(!1),i=e.ref(""),s=e.ref(null);mn(s,()=>r.value=!1);const l=e.computed(()=>a.departments.filter(f=>f.name.toLowerCase().includes(i.value.toLowerCase()))),d=f=>{const u=[...a.modelValue],h=u.findIndex(m=>m.id===f.id);h===-1?u.push({id:f.id,name:f.name}):u.splice(h,1),o("update:modelValue",u)};return(f,u)=>(e.openBlock(),e.createElementBlock("div",{class:"relative w-full",ref_key:"dropdownRef",ref:s},[e.createElementVNode("div",{onClick:u[0]||(u[0]=h=>r.value=!r.value),class:"flex flex-wrap items-center justify-between gap-2 bg-base-300 p-3 rounded-md border border-base-300 cursor-pointer"},[t.modelValue.length?(e.openBlock(),e.createElementBlock("span",Fg,[u[2]||(u[2]=e.createTextVNode(" Selecionados: ")),e.createElementVNode("a",$g,e.toDisplayString(t.modelValue.length),1)])):(e.openBlock(),e.createElementBlock("span",Lg,e.toDisplayString(t.placeholder),1)),(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass(["size-3.5 text-white transition duration-300",r.value?"rotate-180":""]),"aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},u[3]||(u[3]=[e.createElementVNode("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m19 9-7 7-7-7"},null,-1)]),2))]),r.value?(e.openBlock(),e.createElementBlock("div",_g,[e.createElementVNode("div",Pg,[e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":u[1]||(u[1]=h=>i.value=h),type:"text",placeholder:"Buscar...",class:"w-full text-[10px] bg-base-200 rounded-md p-2 outline-none border-none focus:outline-none focus:ring-0 focus:shadow-none placeholder:text-gray-500"},null,512),[[e.vModelText,i.value]])]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.value,h=>(e.openBlock(),e.createElementBlock("button",{key:h.id,class:e.normalizeClass([t.modelValue.some(m=>m.id===h.id)?"bg-green-500/30 hover:bg-green-500/50":"hover:bg-base-200","flex items-center justify-between gap-2 px-3 py-2 cursor-pointer transition w-full"]),onClick:m=>d(h)},[e.createElementVNode("span",Rg,e.toDisplayString(h.name),1),t.modelValue.some(m=>m.id===h.id)?(e.openBlock(),e.createElementBlock("svg",Hg,u[4]||(u[4]=[e.createElementVNode("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M5 11.917 9.724 16.5 19 7.5"},null,-1)]))):e.createCommentVNode("",!0)],10,Og))),128)),l.value.length?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",zg,u[5]||(u[5]=[e.createElementVNode("span",{class:"text-xs"},"Nenhum resultado encontrado",-1)])))])):e.createCommentVNode("",!0)],512))}},[["__scopeId","data-v-c83e0000"]]);function cn(t){if(!t)return"black";const n=t.replace("#",""),a=parseInt(n,16),o=a>>16&255,r=a>>8&255,i=a&255;return(o*299+r*587+i*114)/1e3>=128?"text-black":"text-white"}const jg={key:0,class:"text-gray-500 text-xs"},Gg={key:1,class:"text-gray-300 text-xs"},qg={class:"text-green-500"},Ig={key:0,class:"text-gray-500 text-xs"},Wg={key:1,class:"inline-flex items-center gap-1"},Ug={class:"text-xs truncate max-w-32 rounded-r-md"},Zg={class:"p-2 sticky top-0 bg-base-300"},Yg=["onClick"],Xg={class:"inline-flex"},Kg={key:0,class:"size-4 text-green-500","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},Qg={key:0,class:"text-center text-gray-400 py-2"},Jg={class:"p-2 sticky top-0 bg-base-300"},ey=["onClick"],ty={class:"inline-flex"},ny={key:0,class:"size-4 text-green-500","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},ay={key:0,class:"text-center text-gray-400 py-2"},Ga=Ce({__name:"selectMultipleTags",props:{modelValue:{type:Array,default:()=>[]},multiple:{type:Boolean,default:!0},closeOnSelectSingle:{type:Boolean,default:!0},teleportTo:{type:String,default:null},maxHeight:{type:String,default:"10rem"},allTags:{type:Object,default:()=>{}}},emits:["update:modelValue"],setup(t,{emit:n}){const a=t,o=n,r=e.ref(!1),i=e.ref(""),s=e.ref(null),l=e.ref(null),d=e.ref(null),f=e.ref({}),u=e.ref([]),h=e.ref(1),m=e.ref(null),p=e.ref(null),c=e.ref(!1),g=e.ref({name:""});e.ref(!1);const y=e.computed(()=>a.modelValue[0]||null),b=k=>{var S,B,A;if(!r.value)return;const N=k.target;(S=d.value)!=null&&S.contains(N)||(B=s.value)!=null&&B.contains(N)||(A=l.value)!=null&&A.contains(N)||(r.value=!1)},w=()=>{if(!a.teleportTo||!d.value)return;const k=d.value.getBoundingClientRect();f.value={position:"fixed",top:`${k.bottom+3}px`,left:`${k.left}px`,width:`${k.width}px`,zIndex:9999}};e.watch(r,k=>{k&&w()});const E=e.computed(()=>u.value.filter(k=>k.name.toLowerCase().includes(i.value.toLowerCase()))),x=k=>{var B;if(!a.multiple){if(((B=y.value)==null?void 0:B.id)===k.id){o("update:modelValue",[]);return}o("update:modelValue",[{id:k.id,name:k.name,color:k.color}]),a.closeOnSelectSingle&&(r.value=!1);return}const N=[...a.modelValue],S=N.findIndex(A=>A.id===k.id);S===-1?N.push({id:k.id,name:k.name,color:k.color}):N.splice(S,1),o("update:modelValue",N)},v=(k,N)=>{const S=new URLSearchParams,B=k;return Object.keys(N).forEach(A=>S.append(A,N[A])),`${B}?${S.toString()}`},D=async k=>{try{const N=await Ue.get(v(ps,{page:h.value,...k})),{results:S,next:B,previous:A}=N.data;m.value=B,p.value=A,h.value===1?u.value=S:u.value=[...u.value,...S]}catch(N){console.error(N)}},_=async k=>{if(!c.value){c.value=!0;try{await D(),m.value?(h.value++,k.loaded()):k.complete()}catch(N){console.error("Erro ao carregar tags:",N),k.complete()}finally{c.value=!1}}};let C;return e.watch(g,()=>{clearTimeout(C),C=setTimeout(async()=>{const{name:k}=g.value;h.value=1,await D({name:k.toString()})},800)},{deep:!0}),e.onMounted(async()=>{var k;if(a.allTags&&((k=a.allTags.results)==null?void 0:k.length)>0?(u.value=a.allTags.results,m.value=a.allTags.next||null,p.value=a.allTags.previous||null,h.value=2):await D(),a.teleportTo){const N=()=>{r.value&&w()};window.addEventListener("scroll",N,!0),window.addEventListener("resize",N)}document.addEventListener("mousedown",b)}),e.onBeforeUnmount(()=>{document.removeEventListener("mousedown",b)}),(k,N)=>{var S;return e.openBlock(),e.createElementBlock("div",{class:"relative w-full z-[9999]",ref_key:"dropdownRef",ref:s},[e.createElementVNode("div",{onClick:N[0]||(N[0]=B=>r.value=!r.value),ref_key:"triggerRef",ref:d,class:"flex flex-wrap items-center justify-between gap-2 bg-base-300 p-3 rounded-md border border-base-300 cursor-pointer"},[t.multiple?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[t.modelValue.length?(e.openBlock(),e.createElementBlock("span",Gg,[N[3]||(N[3]=e.createTextVNode(" Selecionados: ")),e.createElementVNode("a",qg,e.toDisplayString(t.modelValue.length),1)])):(e.openBlock(),e.createElementBlock("span",jg," Selecione suas etiquetas "))],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[t.modelValue.length?(e.openBlock(),e.createElementBlock("section",Wg,[e.createElementVNode("span",Ug,e.toDisplayString((S=t.modelValue[0])==null?void 0:S.name),1)])):(e.openBlock(),e.createElementBlock("span",Ig," Selecione a etiqueta "))],64)),(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass(["size-3.5 text-white transition duration-300",r.value?"rotate-180":""]),"aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},N[4]||(N[4]=[e.createElementVNode("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m19 9-7 7-7-7"},null,-1)]),2))],512),r.value&&!t.teleportTo?(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle({maxHeight:a.maxHeight}),class:"absolute z-10 mt-1.5 w-full bg-base-300 shadow-sm shadow-base-100 border border-base-300 rounded-md overflow-y-auto hide-scrollbar"},[e.createElementVNode("div",Zg,[e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":N[1]||(N[1]=B=>g.value.name=B),type:"text",placeholder:"Buscar...",class:"w-full text-[10px] bg-base-200 rounded-md p-2 outline-none border-none focus:outline-none focus:ring-0 focus:shadow-none placeholder:text-gray-500"},null,512),[[e.vModelText,g.value.name]])]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(E.value,B=>(e.openBlock(),e.createElementBlock("button",{key:B.id,class:e.normalizeClass([t.modelValue.some(A=>A.id===B.id)?"bg-green-500/30 hover:bg-green-500/50":"hover:bg-base-200","flex items-center justify-between gap-2 px-3 py-2 cursor-pointer transition w-full"]),onClick:A=>x(B)},[e.createElementVNode("section",Xg,[(e.openBlock(),e.createElementBlock("svg",{class:"size-6","aria-hidden":"true",viewBox:"0 0 3 97",style:e.normalizeStyle({color:B.color||"#ffff"})},N[5]||(N[5]=[e.createElementVNode("path",{d:"M49.9,0a17.1,17.1,0,0,0-12,5L5,37.9A17,17,0,0,0,5,62L37.9,94.9a17.1,17.1,0,0,0,12,5ZM25.4,59.4a9.5,9.5,0,1,1,9.5-9.5A9.5,9.5,0,0,1,25.4,59.4Z",fill:"currentColor"},null,-1)]),4)),e.createElementVNode("span",{style:e.normalizeStyle({backgroundColor:B.color||"#ffff"}),class:e.normalizeClass(["text-xs truncate max-w-32 p-1 rounded-r-md",e.unref(cn)(B.color||"#ffff")])},e.toDisplayString(B.name),7)]),t.modelValue.some(A=>A.id===B.id)?(e.openBlock(),e.createElementBlock("svg",Kg,N[6]||(N[6]=[e.createElementVNode("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M5 11.917 9.724 16.5 19 7.5"},null,-1)]))):e.createCommentVNode("",!0)],10,Yg))),128)),E.value.length?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",Qg,N[7]||(N[7]=[e.createElementVNode("span",{class:"text-xs"},"Nenhum resultado encontrado",-1)]))),m.value?(e.openBlock(),e.createBlock(e.unref(Ht),{key:1,onInfinite:_,class:"p-3 bg-slate-800"},{spinner:e.withCtx(()=>N[8]||(N[8]=[e.createElementVNode("section",{class:"w-full justify-center items-center flex"},[e.createElementVNode("div",{class:"size-4 animate-spin rounded-full border-4 border-solid border-white border-t-transparent"})],-1)])),_:1})):e.createCommentVNode("",!0)],4)):e.createCommentVNode("",!0),r.value&&t.teleportTo?(e.openBlock(),e.createBlock(e.Teleport,{key:1,to:t.teleportTo},[e.createElementVNode("div",{ref_key:"teleportedRef",ref:l,style:e.normalizeStyle({...f.value,maxHeight:a.maxHeight}),class:"absolute z-10 mt-1.5 w-full bg-base-300 shadow-sm shadow-base-100 border border-base-300 rounded-md overflow-y-auto hide-scrollbar"},[e.createElementVNode("div",Jg,[e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":N[2]||(N[2]=B=>g.value.name=B),type:"text",placeholder:"Buscar...",class:"w-full text-[10px] bg-base-200 rounded-md p-2 outline-none border-none focus:outline-none focus:ring-0 focus:shadow-none placeholder:text-gray-500"},null,512),[[e.vModelText,g.value.name]])]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(E.value,B=>(e.openBlock(),e.createElementBlock("button",{key:B.id,class:e.normalizeClass(["select-tag-btn",{selected:t.modelValue.some(A=>A.id===B.id)}]),onClick:A=>x(B)},[e.createElementVNode("section",ty,[(e.openBlock(),e.createElementBlock("svg",{class:"size-6","aria-hidden":"true",viewBox:"0 0 3 97",style:e.normalizeStyle({color:B.color||"#ffff"})},N[9]||(N[9]=[e.createElementVNode("path",{d:"M49.9,0a17.1,17.1,0,0,0-12,5L5,37.9A17,17,0,0,0,5,62L37.9,94.9a17.1,17.1,0,0,0,12,5ZM25.4,59.4a9.5,9.5,0,1,1,9.5-9.5A9.5,9.5,0,0,1,25.4,59.4Z",fill:"currentColor"},null,-1)]),4)),e.createElementVNode("span",{style:e.normalizeStyle({backgroundColor:B.color||"#ffff"}),class:e.normalizeClass(["viewTag",e.unref(cn)(B.color||"#ffff")])},e.toDisplayString(B.name),7)]),t.modelValue.some(A=>A.id===B.id)?(e.openBlock(),e.createElementBlock("svg",ny,N[10]||(N[10]=[e.createElementVNode("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M5 11.917 9.724 16.5 19 7.5"},null,-1)]))):e.createCommentVNode("",!0)],10,ey))),128)),E.value.length?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",ay,N[11]||(N[11]=[e.createElementVNode("span",{class:"text-xs"},"Nenhum resultado encontrado",-1)]))),m.value?(e.openBlock(),e.createBlock(e.unref(Ht),{key:1,onInfinite:_,class:"p-3 bg-slate-800"},{spinner:e.withCtx(()=>N[12]||(N[12]=[e.createElementVNode("section",{class:"w-full justify-center items-center flex"},[e.createElementVNode("div",{class:"size-4 animate-spin rounded-full border-4 border-solid border-white border-t-transparent"})],-1)])),_:1})):e.createCommentVNode("",!0)],4)],8,["to"])):e.createCommentVNode("",!0)],512)}}},[["__scopeId","data-v-14ed93ba"]]),oy={class:"flex flex-col gap-2 w-full h-full"},ry={class:"flex items-center justify-between px-1"},iy={class:"text-xs font-medium text-left"},sy=["innerHTML"],ly=["type","placeholder"],cy=["placeholder"],dy={key:3,class:"input__error"},qa=Ce({__name:"primaryInput",props:{content:{type:Object,default:()=>({})}},emits:["update:content"],setup(t,{emit:n}){const a=t,o=n,r=e.reactive({title:a.content.title??"Nome do produto",svg:a.content.svg??`<svg class="size-4 flex items-center text-base-100" fill="currentColor" viewBox="0 0 495.554 495.554">
|
|
121
|
+
$bm_rt = loopOut('cycle', 0);`},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Group 11",np:3,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:132,st:0,bm:0}]}],layers:[{ddd:0,ind:1,ty:3,nm:"Position Control",sr:1,ks:{o:{a:0,k:0,ix:11},r:{a:0,k:0,ix:10},p:{s:!0,x:{a:0,k:400,ix:3},y:{a:1,k:[{i:{x:[.349],y:[1]},o:{x:[.039],y:[.602]},t:0,s:[840],e:[300]},{i:{x:[.65],y:[1]},o:{x:[.333],y:[0]},t:30,s:[300],e:[460]},{i:{x:[.818],y:[.968]},o:{x:[.023],y:[.564]},t:80,s:[460],e:[-420]},{t:96}],ix:4}},a:{a:0,k:[0,0,0],ix:1},s:{a:1,k:[{i:{x:[.49,.49,.49],y:[1,1,1]},o:{x:[.49,.49,.49],y:[0,0,0]},t:15,s:[70,70,100],e:[40,40,100]},{t:80}],ix:6}},ao:0,ef:[{ty:5,nm:"Wiggle Rate",np:3,mn:"ADBE Slider Control",ix:1,en:1,ef:[{ty:0,nm:"Slider",mn:"ADBE Slider Control-0001",ix:1,v:{a:0,k:0,ix:1}}]}],ip:0,op:100,st:0,bm:0},{ddd:0,ind:2,ty:0,nm:"Rocket",parent:1,refId:"comp_0",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[5.833,0,0],ix:2},a:{a:0,k:[300,300,0],ix:1},s:{a:0,k:[148.754,148.754,100],ix:6}},ao:0,tm:{a:1,k:[{i:{x:[.21],y:[.928]},o:{x:[.04],y:[.361]},t:0,s:[.667],e:[2]},{i:{x:[.38],y:[1]},o:{x:[.49],y:[0]},t:30.062,s:[2],e:[3.2]},{i:{x:[.82],y:[.986]},o:{x:[.49],y:[0]},t:80,s:[3.2],e:[4.333]},{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:96,s:[4.333],e:[4.333]},{t:130}],ix:2},w:600,h:600,ip:0,op:110,st:0,bm:0},{ddd:0,ind:3,ty:4,nm:"Fire 1",parent:1,sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[-.118,101.791,0],ix:2},a:{a:0,k:[250,380.848,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:1,k:[{i:{x:.35,y:1},o:{x:.04,y:.6},t:9,s:[{i:[[7.185,19.04],[0,0],[0,0],[-4.257,-5.66],[0,0],[-10.521,-10.232],[0,11.755],[0,0]],o:[[0,0],[0,0],[-7.186,19.04],[0,0],[0,11.755],[10.52,-10.232],[0,0],[4.257,-5.66]],v:[[32.583,-41.739],[.001,-41.739],[-32.581,-41.739],[-28.786,191.098],[-24.746,185.22],[0,227.453],[24.746,185.22],[28.785,191.098]],c:!0}],e:[{i:[[7.185,19.04],[0,0],[0,0],[-4.257,-5.66],[0,0],[-10.521,-10.232],[0,11.755],[0,0]],o:[[0,0],[0,0],[-7.186,19.04],[0,0],[0,11.755],[10.52,-10.232],[0,0],[4.257,-5.66]],v:[[32.583,-41.739],[.001,-41.739],[-32.581,-41.739],[-28.786,5.384],[-24.745,-.494],[.001,41.739],[24.746,-.494],[28.785,5.384]],c:!0}]},{t:30}],ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:0,k:[.995999983245,.788000009574,.156999999402,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[250.338,422.749],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Group 11",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:30,st:0,bm:0},{ddd:0,ind:4,ty:4,nm:"Fire 2",parent:1,sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[-.118,103.916,0],ix:2},a:{a:0,k:[250,385.497,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:1,k:[{i:{x:.35,y:1},o:{x:.04,y:.6},t:9,s:[{i:[[11.317,29.988],[0,0],[0,0],[-6.705,-8.915],[0,0],[-16.571,-16.115],[0,18.516],[0,0]],o:[[0,0],[0,0],[-11.316,29.988],[0,0],[0,18.516],[16.57,-16.115],[0,0],[6.706,-8.915]],v:[[51.318,-65.74],[.001,-65.74],[-51.318,-65.74],[-45.338,329.554],[-38.976,320.296],[.001,386.814],[38.976,320.296],[45.339,329.554]],c:!0}],e:[{i:[[11.317,29.988],[0,0],[0,0],[-6.705,-8.915],[0,0],[-16.571,-16.115],[0,18.516],[0,0]],o:[[0,0],[0,0],[-11.316,29.988],[0,0],[0,18.516],[16.57,-16.115],[0,0],[6.706,-8.915]],v:[[51.318,-65.74],[.001,-65.74],[-51.318,-65.74],[-45.339,8.48],[-38.977,-.778],[.001,65.74],[38.975,-.778],[45.339,8.48]],c:!0}]},{t:30}],ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:0,k:[.995999983245,.340999977261,.13300000359,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[250.339,446.75],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Group 12",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:30,st:0,bm:0},{ddd:0,ind:5,ty:4,nm:"Fire 1 Wiggle",parent:1,sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[-.118,101.791,0],ix:2},a:{a:0,k:[250,380.848,0],ix:1},s:{a:1,k:[{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},t:30,s:[100,100,100],e:[100,136.488,100]},{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},t:50,s:[100,136.488,100],e:[100,101,100]},{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},t:71,s:[100,101,100],e:[100,124,100]},{t:80}],ix:6}},ao:0,ef:[{ty:5,nm:"Scale Wiggle",np:3,mn:"ADBE Slider Control",ix:1,en:1,ef:[{ty:0,nm:"Slider",mn:"ADBE Slider Control-0001",ix:1,v:{a:1,k:[{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:29,s:[0],e:[1]},{t:30}],ix:1}}]}],shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:1,k:[{i:{x:.35,y:1},o:{x:.04,y:.6},t:9,s:[{i:[[7.185,19.04],[0,0],[0,0],[-4.257,-5.66],[0,0],[-10.521,-10.232],[0,11.755],[0,0]],o:[[0,0],[0,0],[-7.186,19.04],[0,0],[0,11.755],[10.52,-10.232],[0,0],[4.257,-5.66]],v:[[32.583,-41.739],[.001,-41.739],[-32.581,-41.739],[-28.786,191.098],[-24.746,185.22],[0,227.453],[24.746,185.22],[28.785,191.098]],c:!0}],e:[{i:[[7.185,19.04],[0,0],[0,0],[-4.257,-5.66],[0,0],[-10.521,-10.232],[0,11.755],[0,0]],o:[[0,0],[0,0],[-7.186,19.04],[0,0],[0,11.755],[10.52,-10.232],[0,0],[4.257,-5.66]],v:[[32.583,-41.739],[.001,-41.739],[-32.581,-41.739],[-28.786,5.384],[-24.745,-.494],[.001,41.739],[24.746,-.494],[28.785,5.384]],c:!0}]},{i:{x:.833,y:1},o:{x:.04,y:0},t:30,s:[{i:[[7.185,19.04],[0,0],[0,0],[-4.257,-5.66],[0,0],[-10.521,-10.232],[0,11.755],[0,0]],o:[[0,0],[0,0],[-7.186,19.04],[0,0],[0,11.755],[10.52,-10.232],[0,0],[4.257,-5.66]],v:[[32.583,-41.739],[.001,-41.739],[-32.581,-41.739],[-28.786,5.384],[-24.745,-.494],[.001,41.739],[24.746,-.494],[28.785,5.384]],c:!0}],e:[{i:[[7.185,19.04],[0,0],[0,0],[-4.257,-5.66],[0,0],[-10.521,-10.232],[0,11.755],[0,0]],o:[[0,0],[0,0],[-7.186,19.04],[0,0],[0,11.755],[10.52,-10.232],[0,0],[4.257,-5.66]],v:[[32.583,-41.739],[.001,-41.739],[-32.581,-41.739],[-28.786,5.384],[-24.745,-.494],[.001,41.739],[24.746,-.494],[28.785,5.384]],c:!0}]},{i:{x:.833,y:1},o:{x:.167,y:0},t:80,s:[{i:[[7.185,19.04],[0,0],[0,0],[-4.257,-5.66],[0,0],[-10.521,-10.232],[0,11.755],[0,0]],o:[[0,0],[0,0],[-7.186,19.04],[0,0],[0,11.755],[10.52,-10.232],[0,0],[4.257,-5.66]],v:[[32.583,-41.739],[.001,-41.739],[-32.581,-41.739],[-28.786,5.384],[-24.745,-.494],[.001,41.739],[24.746,-.494],[28.785,5.384]],c:!0}],e:[{i:[[7.185,19.04],[0,0],[0,0],[-4.257,-5.66],[0,0],[-10.521,-10.232],[0,11.755],[0,0]],o:[[0,0],[0,0],[-7.186,19.04],[0,0],[0,11.755],[10.52,-10.232],[0,0],[4.257,-5.66]],v:[[32.583,-41.739],[.001,-41.739],[-32.581,-41.739],[-28.785,534.199],[-24.745,528.322],[.001,570.555],[24.746,528.322],[28.785,534.199]],c:!0}]},{i:{x:.833,y:1},o:{x:.167,y:0},t:81,s:[{i:[[7.185,19.04],[0,0],[0,0],[-4.257,-5.66],[0,0],[-10.521,-10.232],[0,11.755],[0,0]],o:[[0,0],[0,0],[-7.186,19.04],[0,0],[0,11.755],[10.52,-10.232],[0,0],[4.257,-5.66]],v:[[32.583,-41.739],[.001,-41.739],[-32.581,-41.739],[-28.785,534.199],[-24.745,528.322],[.001,570.555],[24.746,528.322],[28.785,534.199]],c:!0}],e:[{i:[[7.185,19.04],[0,0],[0,0],[-4.257,-5.66],[0,0],[-10.521,-10.232],[0,11.755],[0,0]],o:[[0,0],[0,0],[-7.186,19.04],[0,0],[0,11.755],[10.52,-10.232],[0,0],[4.257,-5.66]],v:[[32.583,-41.739],[.001,-41.739],[-32.581,-41.739],[-28.786,534.199],[-24.745,528.322],[.001,570.555],[24.746,528.322],[28.785,534.199]],c:!0}]},{i:{x:.833,y:1},o:{x:.167,y:0},t:82,s:[{i:[[7.185,19.04],[0,0],[0,0],[-4.257,-5.66],[0,0],[-10.521,-10.232],[0,11.755],[0,0]],o:[[0,0],[0,0],[-7.186,19.04],[0,0],[0,11.755],[10.52,-10.232],[0,0],[4.257,-5.66]],v:[[32.583,-41.739],[.001,-41.739],[-32.581,-41.739],[-28.786,534.199],[-24.745,528.322],[.001,570.555],[24.746,528.322],[28.785,534.199]],c:!0}],e:[{i:[[7.185,19.04],[0,0],[0,0],[-4.257,-5.66],[0,0],[-10.521,-10.232],[0,11.755],[0,0]],o:[[0,0],[0,0],[-7.186,19.04],[0,0],[0,11.755],[10.52,-10.232],[0,0],[4.257,-5.66]],v:[[32.583,-41.739],[.001,-41.739],[-32.581,-41.739],[-28.786,107.501],[-24.746,101.624],[0,143.856],[24.746,101.624],[28.785,107.501]],c:!0}]},{t:83}],ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:0,k:[.995999983245,.788000009574,.156999999402,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[250.338,422.749],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Group 11",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:30,op:110,st:0,bm:0},{ddd:0,ind:6,ty:4,nm:"Fire 2 Wiggle",parent:1,sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[-.118,103.916,0],ix:2},a:{a:0,k:[250,385.497,0],ix:1},s:{a:1,k:[{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},t:30,s:[100,100,100],e:[100,144.049,100]},{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},t:50,s:[100,144.049,100],e:[100,96,100]},{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},t:71,s:[100,96,100],e:[100,124,100]},{t:80}],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:1,k:[{i:{x:.35,y:1},o:{x:.04,y:.6},t:9,s:[{i:[[11.317,29.988],[0,0],[0,0],[-6.705,-8.915],[0,0],[-16.571,-16.115],[0,18.516],[0,0]],o:[[0,0],[0,0],[-11.316,29.988],[0,0],[0,18.516],[16.57,-16.115],[0,0],[6.706,-8.915]],v:[[51.318,-65.74],[.001,-65.74],[-51.318,-65.74],[-45.338,169.194],[-38.976,159.936],[.001,226.454],[38.976,159.936],[45.339,169.194]],c:!0}],e:[{i:[[11.317,29.988],[0,0],[0,0],[-6.705,-8.915],[0,0],[-16.571,-16.115],[0,18.516],[0,0]],o:[[0,0],[0,0],[-11.316,29.988],[0,0],[0,18.516],[16.57,-16.115],[0,0],[6.706,-8.915]],v:[[51.318,-65.74],[.001,-65.74],[-51.318,-65.74],[-45.339,8.48],[-38.977,-.778],[.001,65.74],[38.975,-.778],[45.339,8.48]],c:!0}]},{i:{x:.833,y:1},o:{x:.04,y:0},t:30,s:[{i:[[11.317,29.988],[0,0],[0,0],[-6.705,-8.915],[0,0],[-16.571,-16.115],[0,18.516],[0,0]],o:[[0,0],[0,0],[-11.316,29.988],[0,0],[0,18.516],[16.57,-16.115],[0,0],[6.706,-8.915]],v:[[51.318,-65.74],[.001,-65.74],[-51.318,-65.74],[-45.339,8.48],[-38.977,-.778],[.001,65.74],[38.975,-.778],[45.339,8.48]],c:!0}],e:[{i:[[11.317,29.988],[0,0],[0,0],[-6.705,-8.915],[0,0],[-16.571,-16.115],[0,18.516],[0,0]],o:[[0,0],[0,0],[-11.316,29.988],[0,0],[0,18.516],[16.57,-16.115],[0,0],[6.706,-8.915]],v:[[51.318,-65.74],[.001,-65.74],[-51.318,-65.74],[-45.339,8.48],[-38.977,-.778],[.001,65.74],[38.975,-.778],[45.339,8.48]],c:!0}]},{i:{x:.833,y:1},o:{x:.167,y:0},t:80,s:[{i:[[11.317,29.988],[0,0],[0,0],[-6.705,-8.915],[0,0],[-16.571,-16.115],[0,18.516],[0,0]],o:[[0,0],[0,0],[-11.316,29.988],[0,0],[0,18.516],[16.57,-16.115],[0,0],[6.706,-8.915]],v:[[51.318,-65.74],[.001,-65.74],[-51.318,-65.74],[-45.339,8.48],[-38.977,-.778],[.001,65.74],[38.975,-.778],[45.339,8.48]],c:!0}],e:[{i:[[11.317,29.988],[0,0],[0,0],[-6.705,-8.915],[0,0],[-16.571,-16.115],[0,18.516],[0,0]],o:[[0,0],[0,0],[-11.316,29.988],[0,0],[0,18.516],[16.57,-16.115],[0,0],[6.706,-8.915]],v:[[51.318,-65.74],[.001,-65.74],[-51.318,-65.74],[-45.339,514.557],[-38.977,505.299],[0,571.817],[38.975,505.299],[45.338,514.557]],c:!0}]},{i:{x:.833,y:1},o:{x:.167,y:0},t:81,s:[{i:[[11.317,29.988],[0,0],[0,0],[-6.705,-8.915],[0,0],[-16.571,-16.115],[0,18.516],[0,0]],o:[[0,0],[0,0],[-11.316,29.988],[0,0],[0,18.516],[16.57,-16.115],[0,0],[6.706,-8.915]],v:[[51.318,-65.74],[.001,-65.74],[-51.318,-65.74],[-45.339,514.557],[-38.977,505.299],[0,571.817],[38.975,505.299],[45.338,514.557]],c:!0}],e:[{i:[[11.317,29.988],[0,0],[0,0],[-6.705,-8.915],[0,0],[-16.571,-16.115],[0,18.516],[0,0]],o:[[0,0],[0,0],[-11.316,29.988],[0,0],[0,18.516],[16.57,-16.115],[0,0],[6.706,-8.915]],v:[[51.318,-65.74],[.001,-65.74],[-51.318,-65.74],[-45.338,514.557],[-38.976,505.299],[.001,571.817],[38.976,505.299],[45.339,514.557]],c:!0}]},{i:{x:.833,y:1},o:{x:.167,y:0},t:82,s:[{i:[[11.317,29.988],[0,0],[0,0],[-6.705,-8.915],[0,0],[-16.571,-16.115],[0,18.516],[0,0]],o:[[0,0],[0,0],[-11.316,29.988],[0,0],[0,18.516],[16.57,-16.115],[0,0],[6.706,-8.915]],v:[[51.318,-65.74],[.001,-65.74],[-51.318,-65.74],[-45.338,514.557],[-38.976,505.299],[.001,571.817],[38.976,505.299],[45.339,514.557]],c:!0}],e:[{i:[[11.317,29.988],[0,0],[0,0],[-6.705,-8.915],[0,0],[-16.571,-16.115],[0,18.516],[0,0]],o:[[0,0],[0,0],[-11.316,29.988],[0,0],[0,18.516],[16.57,-16.115],[0,0],[6.706,-8.915]],v:[[51.318,-65.74],[.001,-65.74],[-51.318,-65.74],[-45.338,168.845],[-38.976,159.587],[.001,226.105],[38.976,159.587],[45.339,168.845]],c:!0}]},{t:83}],ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:0,k:[.995999983245,.340999977261,.13300000359,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[250.339,446.75],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Group 12",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:30,op:110,st:0,bm:0},{ddd:0,ind:7,ty:4,nm:"Line 11",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:-142,ix:10},p:{a:0,k:[401.5,412,0],ix:2},a:{a:0,k:[-2.5,200,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0]],o:[[0,0],[0,0]],v:[[390.439,-149.673],[-1.75,200.25]],c:!1},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"tm",s:{a:1,k:[{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:74,s:[0],e:[100]},{t:78}],ix:1},e:{a:1,k:[{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:71,s:[6],e:[100]},{t:75}],ix:2},o:{a:0,k:0,ix:3},m:1,ix:2,nm:"Trim Paths 1",mn:"ADBE Vector Filter - Trim",hd:!1},{ty:"st",c:{a:0,k:[1,1,1,1],ix:3},o:{a:0,k:100,ix:4},w:{a:1,k:[{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:71,s:[5],e:[0]},{t:78}],ix:5},lc:1,lj:1,ml:4,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"fl",c:{a:0,k:[.270588235294,.352941176471,.392156862745,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Shape 1",np:4,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:71,op:110,st:71,bm:0},{ddd:0,ind:8,ty:4,nm:"Line 10",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:-7,ix:10},p:{a:0,k:[405.5,406,0],ix:2},a:{a:0,k:[-2.5,200,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0]],o:[[0,0],[0,0]],v:[[390.439,-149.673],[-1.75,200.25]],c:!1},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"tm",s:{a:1,k:[{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:71,s:[0],e:[100]},{t:75}],ix:1},e:{a:1,k:[{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:68,s:[6],e:[100]},{t:72}],ix:2},o:{a:0,k:0,ix:3},m:1,ix:2,nm:"Trim Paths 1",mn:"ADBE Vector Filter - Trim",hd:!1},{ty:"st",c:{a:0,k:[1,1,1,1],ix:3},o:{a:0,k:100,ix:4},w:{a:1,k:[{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:68,s:[5],e:[0]},{t:75}],ix:5},lc:1,lj:1,ml:4,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"fl",c:{a:0,k:[.270588235294,.352941176471,.392156862745,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Shape 1",np:4,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:68,op:110,st:68,bm:0},{ddd:0,ind:9,ty:4,nm:"Line 9",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:-88,ix:10},p:{a:0,k:[399.5,400,0],ix:2},a:{a:0,k:[-2.5,200,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0]],o:[[0,0],[0,0]],v:[[390.439,-149.673],[-1.75,200.25]],c:!1},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"tm",s:{a:1,k:[{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:69,s:[0],e:[100]},{t:73}],ix:1},e:{a:1,k:[{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:66,s:[6],e:[100]},{t:70}],ix:2},o:{a:0,k:0,ix:3},m:1,ix:2,nm:"Trim Paths 1",mn:"ADBE Vector Filter - Trim",hd:!1},{ty:"st",c:{a:0,k:[1,1,1,1],ix:3},o:{a:0,k:100,ix:4},w:{a:1,k:[{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:66,s:[5],e:[0]},{t:73}],ix:5},lc:1,lj:1,ml:4,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"fl",c:{a:0,k:[.270588235294,.352941176471,.392156862745,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Shape 1",np:4,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:66,op:110,st:66,bm:0},{ddd:0,ind:10,ty:4,nm:"Line 4",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:-197,ix:10},p:{a:0,k:[395.5,400,0],ix:2},a:{a:0,k:[-2.5,200,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0]],o:[[0,0],[0,0]],v:[[344,-100],[-1.75,200.25]],c:!1},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"tm",s:{a:1,k:[{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:66,s:[0],e:[100]},{t:70}],ix:1},e:{a:1,k:[{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:63,s:[6],e:[100]},{t:67}],ix:2},o:{a:0,k:0,ix:3},m:1,ix:2,nm:"Trim Paths 1",mn:"ADBE Vector Filter - Trim",hd:!1},{ty:"st",c:{a:0,k:[1,1,1,1],ix:3},o:{a:0,k:100,ix:4},w:{a:1,k:[{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:63,s:[5],e:[0]},{t:70}],ix:5},lc:1,lj:1,ml:4,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"fl",c:{a:0,k:[.270588235294,.352941176471,.392156862745,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Shape 1",np:4,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:63,op:110,st:63,bm:0},{ddd:0,ind:11,ty:4,nm:"Line 6",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:98,ix:10},p:{a:0,k:[393.5,418,0],ix:2},a:{a:0,k:[-2.5,200,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0]],o:[[0,0],[0,0]],v:[[344,-100],[-1.75,200.25]],c:!1},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"tm",s:{a:1,k:[{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:55,s:[0],e:[100]},{t:59}],ix:1},e:{a:1,k:[{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:52,s:[6],e:[100]},{t:56}],ix:2},o:{a:0,k:0,ix:3},m:1,ix:2,nm:"Trim Paths 1",mn:"ADBE Vector Filter - Trim",hd:!1},{ty:"st",c:{a:0,k:[1,1,1,1],ix:3},o:{a:0,k:100,ix:4},w:{a:1,k:[{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:52,s:[5],e:[0]},{t:59}],ix:5},lc:1,lj:1,ml:4,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"fl",c:{a:0,k:[.270588235294,.352941176471,.392156862745,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Shape 1",np:4,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:52,op:110,st:52,bm:0},{ddd:0,ind:12,ty:4,nm:"Line 12",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:68,ix:10},p:{a:0,k:[411.5,320,0],ix:2},a:{a:0,k:[-2.5,200,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0]],o:[[0,0],[0,0]],v:[[344,-100],[-1.75,200.25]],c:!1},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"tm",s:{a:1,k:[{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:37,s:[0],e:[100]},{t:41}],ix:1},e:{a:1,k:[{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:34,s:[6],e:[100]},{t:38}],ix:2},o:{a:0,k:0,ix:3},m:1,ix:2,nm:"Trim Paths 1",mn:"ADBE Vector Filter - Trim",hd:!1},{ty:"st",c:{a:0,k:[1,1,1,1],ix:3},o:{a:0,k:100,ix:4},w:{a:1,k:[{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:34,s:[5],e:[0]},{t:41}],ix:5},lc:1,lj:1,ml:4,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"fl",c:{a:0,k:[.270588235294,.352941176471,.392156862745,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Shape 1",np:4,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:34,op:110,st:34,bm:0},{ddd:0,ind:13,ty:4,nm:"Blasting Circle 4",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[400.5,855,0],ix:2},a:{a:0,k:[0,0,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{d:1,ty:"el",s:{a:1,k:[{i:{x:[.37,.37],y:[1,1]},o:{x:[.42,.42],y:[0,0]},t:78,s:[0,0],e:[1127,1127]},{t:94}],ix:2},p:{a:0,k:[0,0],ix:3},nm:"Ellipse Path 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"st",c:{a:0,k:[1,1,1,1],ix:3},o:{a:0,k:100,ix:4},w:{a:1,k:[{i:{x:[.37],y:[1]},o:{x:[.42],y:[0]},t:78,s:[5],e:[0]},{t:94}],ix:5},lc:1,lj:1,ml:4,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1}],ip:78,op:110,st:78,bm:0},{ddd:0,ind:14,ty:4,nm:"Blasting Circle 3",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[400.5,615,0],ix:2},a:{a:0,k:[0,0,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{d:1,ty:"el",s:{a:1,k:[{i:{x:[.37,.37],y:[1,1]},o:{x:[.42,.42],y:[0,0]},t:78,s:[0,0],e:[1127,1127]},{t:94}],ix:2},p:{a:0,k:[0,0],ix:3},nm:"Ellipse Path 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"st",c:{a:0,k:[1,1,1,1],ix:3},o:{a:0,k:100,ix:4},w:{a:1,k:[{i:{x:[.37],y:[1]},o:{x:[.42],y:[0]},t:78,s:[5],e:[0]},{t:94}],ix:5},lc:1,lj:1,ml:4,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1}],ip:78,op:110,st:78,bm:0},{ddd:0,ind:15,ty:4,nm:"Blasting Circle 2",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[400.5,415,0],ix:2},a:{a:0,k:[0,0,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{d:1,ty:"el",s:{a:1,k:[{i:{x:[.667,.667],y:[1,1]},o:{x:[.333,.333],y:[0,0]},t:61,s:[1007,1007],e:[0,0]},{t:71}],ix:2},p:{a:0,k:[0,0],ix:3},nm:"Ellipse Path 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"st",c:{a:0,k:[1,1,1,1],ix:3},o:{a:0,k:100,ix:4},w:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:61,s:[5],e:[0]},{t:71}],ix:5},lc:1,lj:1,ml:4,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1}],ip:61,op:110,st:61,bm:0},{ddd:0,ind:16,ty:4,nm:"Blasting Circle ",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[399,320,0],ix:2},a:{a:0,k:[0,0,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{d:1,ty:"el",s:{a:1,k:[{i:{x:[.667,.667],y:[1,1]},o:{x:[.333,.333],y:[0,0]},t:40,s:[1007,1007],e:[0,0]},{t:50}],ix:2},p:{a:0,k:[0,0],ix:3},nm:"Ellipse Path 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"st",c:{a:0,k:[1,1,1,1],ix:3},o:{a:0,k:100,ix:4},w:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:40,s:[5],e:[0]},{t:50}],ix:5},lc:1,lj:1,ml:4,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1}],ip:40,op:110,st:40,bm:0},{ddd:0,ind:17,ty:4,nm:"BG",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[400,300,0],ix:2},a:{a:0,k:[0,0,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"rc",d:1,s:{a:0,k:[800,600],ix:2},p:{a:0,k:[0,0],ix:3},r:{a:0,k:0,ix:4},nm:"Rectangle Path 1",mn:"ADBE Vector Shape - Rect",hd:!1},{ty:"fl",c:{a:0,k:[.03137254902,.101960784314,.149019607843,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1}],ip:110,op:110,st:0,bm:0,hidden:0}],markers:[]},bg={class:"main-send-suggestion"},wg={key:0,class:"sent-suggestion-section"},Eg={class:"sent-suggestion-content"},vg={class:"container-send-suggestion"},Cg={key:0,class:"tool_tip_suggestion_error"},Sg={key:0,class:"loader-suggestion"},Bg={key:1},Vg=we({__name:"sendSuggestion",props:{loader:{type:Boolean,default:!1},sentSuccess:{type:Boolean,default:!1}},emits:["postSuccess"],setup(t,{emit:n}){const a=n,o=e.ref(""),r=e.ref(!1),i=()=>{if(r.value=!1,!o.value){r.value=!0;return}a("postSuccess",o.value)};return(s,l)=>{const d=e.resolveComponent("Vue3Lottie");return e.openBlock(),e.createElementBlock("main",bg,[t.sentSuccess?(e.openBlock(),e.createElementBlock("section",wg,[e.createElementVNode("div",Eg,[l[2]||(l[2]=e.createElementVNode("p",{class:"text-lg font-semibold uppercase"}," Sua sugestão foi recebida com sucesso ",-1)),e.createVNode(d,{"animation-data":e.unref(xg),height:200,width:200,"auto-play":!0,loop:!0},null,8,["animation-data"]),l[3]||(l[3]=e.createElementVNode("span",{class:"flex flex-col gap-3 lg:text-justify"},[e.createElementVNode("p",{class:"font-semibold"}," Nossa equipe irá avaliá-la com atenção e considerar sua implementação. "),e.createElementVNode("p",{class:"text-[12px]"}," Você irá receber um e-mail com as informações da solicitação e nossa equipe irá responder em até 30 dias ")],-1)),l[4]||(l[4]=e.createElementVNode("p",{class:"font-bold"},"Agradecemos sua colaboração",-1))])])):e.createCommentVNode("",!0),e.createElementVNode("section",vg,[l[5]||(l[5]=e.createElementVNode("h1",{class:"header_send_suggestion"},"Envie sua sugestão para nós",-1)),e.withDirectives(e.createElementVNode("textarea",{"onUpdate:modelValue":l[0]||(l[0]=u=>o.value=u),class:"input_send_suggestion textarea-send-suggestion",placeholder:"Gostaria que vocês adicionassem...",type:"text"},null,512),[[e.vModelText,o.value]]),r.value?(e.openBlock(),e.createElementBlock("span",Cg," Por favor, preencha o campo antes de continuar ")):e.createCommentVNode("",!0),e.createElementVNode("button",{onClick:l[1]||(l[1]=u=>i()),class:"submit-button-send-suggestion"},[t.loader?(e.openBlock(),e.createElementBlock("div",Sg)):(e.openBlock(),e.createElementBlock("p",Bg,"Enviar"))])])])}}},[["__scopeId","data-v-09bb51fe"]]),Mg=t=>`<svg class="${t}" aria-hidden="true" fill="none" viewBox="0 0 24 24" > <path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M18 14v4.833A1.166 1.166 0 0 1 16.833 20H5.167A1.167 1.167 0 0 1 4 18.833V7.167A1.166 1.166 0 0 1 5.167 6h4.618m4.447-2H20v5.768m-7.889 2.121 7.778-7.778" /> </svg>`,Ng=t=>`<svg class="${t}" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24" > <path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 10h16m-8-3V4M7 7V4m10 3V4M5 20h14a1 1 0 0 0 1-1V7a1 1 0 0 0-1-1H5a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1Zm3-7h.01v.01H8V13Zm4 0h.01v.01H12V13Zm4 0h.01v.01H16V13Zm-8 4h.01v.01H8V17Zm4 0h.01v.01H12V17Zm4 0h.01v.01H16V17Z" /> </svg>`,Ag=["innerHTML"],ci={__name:"svg",props:{svgContent:{type:String,required:!0}},setup(t){return(n,a)=>(e.openBlock(),e.createElementBlock("div",{innerHTML:t.svgContent},null,8,Ag))}},Tg={class:"feature-card__header"},Dg={class:"feature-card__title"},Lg={class:"flex items-center gap-2"},Fg={key:0,class:"sparkle-badge"},$g={key:0},Pg={class:"feature-card__content"},_g={class:"feature-card__description scroll_area_feature_card"},Og=["innerHTML"],Rg=["href"],Hg={class:"feature-card__footer"},zg={class:"feature-card__footer-section"},di=we({__name:"feature_card",props:{state:{type:String,required:!0,default:"updated"},title:{type:String,required:!0},description:{type:String,required:!0},date:{type:[String,null],required:!0},tutorial:{type:String,default:null},flag:{type:String,required:!0},sparkles:{type:Boolean,default:!1}},setup(t){const n=e.ref(!1),a=e.ref(null),o=t;Bn(a,()=>{n.value=!1});const i=e.computed(()=>({"arrow-icon-patch-notes":!0,rotate:!n.value})),s=e.computed(()=>({"feature-card":!0,"feature-card--updated":o.state==="updated","feature-card--future":o.state==="future-update","feature-card--other":o.state!=="updated"&&o.state!=="future-update"})),l=e.computed(()=>({"pill-flag":!0,"pill-flag--new-feature":o.flag==="new-feature","pill-flag--improvement":o.flag==="improvement","pill-flag--bug-fix":o.flag==="bug-fix"})),d=e.computed(()=>o.flag==="improvement"?"Melhorias":o.flag==="new-feature"?"Novo Recurso":"correção de erros"),u=e.computed(()=>({"pill-date":!0,"pill-date--updated":o.state==="updated","pill-date--future":o.state!=="updated"}));return(c,h)=>{const m=e.resolveComponent("Popper");return e.openBlock(),e.createElementBlock("main",{class:e.normalizeClass(["feature_style relative",s.value]),ref_key:"targetFeatureCard",ref:a,onClick:h[0]||(h[0]=p=>n.value=!n.value)},[e.createElementVNode("header",Tg,[e.createElementVNode("h1",Dg,e.toDisplayString(t.title),1),e.createElementVNode("section",Lg,[(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass(i.value),viewBox:"0 0 24 24",fill:"none"},[...h[1]||(h[1]=[e.createElementVNode("g",null,[e.createElementVNode("path",{d:"M15 11L12 8M12 8L9 11M12 8V16M21 12C21 7.02944 16.9706 3 12 3C7.02944 3 3 7.02944 3 12C3 16.9706 7.02944 21 12 21C16.9706 21 21 16.9706 21 12Z",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})],-1)])],2)),t.sparkles?(e.openBlock(),e.createElementBlock("div",Fg,[...h[2]||(h[2]=[e.createStaticVNode('<svg class="size-4" viewBox="0 0 128 128" data-v-7969ce9a><path d="M121.59 60.83l-13.93-4.49c-8.91-2.94-14.13-10.15-16.58-19.21L84.95 7.27c-.16-.59-.55-1.38-1.75-1.38c-1.01 0-1.59.79-1.75 1.38l-6.13 29.87c-2.46 9.06-7.67 16.27-16.58 19.21l-13.93 4.49c-1.97.64-2 3.42-.04 4.09l14.03 4.83c8.88 2.95 14.06 10.15 16.52 19.17l6.14 29.53c.16.59.49 1.65 1.75 1.65c1.33 0 1.59-1.06 1.75-1.65l6.14-29.53c2.46-9.03 7.64-16.23 16.52-19.17l14.03-4.83c1.94-.68 1.91-3.46-.06-4.1z" fill="#fdd835" data-v-7969ce9a></path><path d="M122.91 62.08c-.22-.55-.65-1.03-1.32-1.25l-13.93-4.49c-8.91-2.94-14.13-10.15-16.58-19.21L84.95 7.27c-.09-.34-.41-.96-.78-1.14l1.98 29.97c1.47 13.68 2.73 20.12 13.65 22c9.38 1.62 20.23 3.48 23.11 3.98z" fill="#ffee58" data-v-7969ce9a></path><path d="M122.94 63.64l-24.16 5.54c-8.51 2.16-13.2 7.09-13.2 19.99l-2.37 30.94c.81-.08 1.47-.52 1.75-1.65l6.14-29.53c2.46-9.03 7.64-16.23 16.52-19.17l14.03-4.83c.66-.24 1.08-.73 1.29-1.29z" fill="#f4b400" data-v-7969ce9a></path><g data-v-7969ce9a><path d="M41.81 86.81c-8.33-2.75-9.09-5.85-10.49-11.08l-3.49-12.24c-.21-.79-2.27-.79-2.49 0L22.97 74.8c-1.41 5.21-4.41 9.35-9.53 11.04l-8.16 3.54c-1.13.37-1.15 1.97-.02 2.35l8.22 2.91c5.1 1.69 8.08 5.83 9.5 11.02l2.37 10.82c.22.79 2.27.79 2.48 0l2.78-10.77c1.41-5.22 3.57-9.37 10.5-11.07l7.72-2.91c1.13-.39 1.12-1.99-.02-2.36l-7-2.56z" fill="#fdd835" data-v-7969ce9a></path><path d="M28.49 75.55c.85 7.86 1.28 10.04 7.65 11.67l13.27 2.59c-.14-.19-.34-.35-.61-.43l-7-2.57c-7.31-2.5-9.33-5.68-10.7-12.04c-1.37-6.36-2.83-10.51-2.83-10.51c-.51-1.37-1.24-1.3-1.24-1.3l1.46 12.59z" fill="#ffee58" data-v-7969ce9a></path><path d="M28.73 102.99c0-7.41 4.05-11.08 10.49-11.08l10.02-.41s-.58.77-1.59 1.01l-6.54 2.13c-5.55 2.23-8.08 3.35-9.8 10.94c0 0-2.22 8.83-2.64 9.76c-.58 1.3-1.27 1.57-1.27 1.57l1.33-13.92z" fill="#f4b400" data-v-7969ce9a></path></g><path d="M59.74 28.14c.56-.19.54-.99-.03-1.15l-7.72-2.08a4.77 4.77 0 0 1-3.34-3.3L45.61 9.06c-.15-.61-1.02-.61-1.17.01l-2.86 12.5a4.734 4.734 0 0 1-3.4 3.37l-7.67 1.99c-.57.15-.61.95-.05 1.15l8.09 2.8c1.45.5 2.57 1.68 3.01 3.15l2.89 11.59c.15.6 1.01.61 1.16 0l2.99-11.63a4.773 4.773 0 0 1 3.04-3.13l8.1-2.72z" fill="#f4b400" stroke="#f4b400" stroke-miterlimit="10" data-v-7969ce9a></path></svg>',1)])])):e.createCommentVNode("",!0)])]),e.createVNode(e.Transition,{name:"fade-slide"},{default:e.withCtx(()=>[n.value?(e.openBlock(),e.createElementBlock("div",$g,[h[4]||(h[4]=e.createElementVNode("hr",{class:"feature-card__divider"},null,-1)),e.createElementVNode("section",Pg,[e.createElementVNode("span",_g,[e.createElementVNode("p",{class:"feature-card__paragraph",innerHTML:t.description.replace(/\n/g,"<br>")},null,8,Og)]),t.tutorial?(e.openBlock(),e.createElementBlock("a",{key:0,class:"feature-card__tutorial-button",href:t.tutorial,target:"__blank"},[h[3]||(h[3]=e.createTextVNode(" Veja o tutorial ",-1)),e.createVNode(ci,{svgContent:e.unref(Mg)("size-4 text-blue-900")},null,8,["svgContent"])],8,Rg)):e.createCommentVNode("",!0)])])):e.createCommentVNode("",!0)]),_:1}),e.createElementVNode("footer",Hg,[e.createElementVNode("section",zg,[e.createElementVNode("span",{class:e.normalizeClass(l.value)},e.toDisplayString(d.value),3),e.createVNode(m,{class:"pill_date_popper",hover:"",disabled:t.state==="updated",arrow:!0,content:"Essa é uma data prevista para o lançamento deste recurso, a mesma está sujeita a mudanças a qualquer momento"},{default:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass(u.value)},[e.createVNode(ci,{svgContent:e.unref(Ng)("size-4 text-white")},null,8,["svgContent"]),e.createElementVNode("p",null,e.toDisplayString(new Intl.DateTimeFormat("pt-BR",{day:"2-digit",month:"short",year:"numeric"}).format(new Date(t.date+"T12:00:00")).replace(/ de /g," ")),1)],2)]),_:1},8,["disabled"])])])],2)}}},[["__scopeId","data-v-7969ce9a"]]),jg={class:"modal-container-patch-notes"},Gg={class:"modal-content-patch-notes scroll_area_patch_notes_latest_update"},Ig={class:"modal-header-patch-notes"},qg={class:"modal-body-patch-notes"},Wg={class:"modal-body-control"},Ug={class:"modal-section-patch-notes updates-section-patch-notes"},Zg={key:0,class:"sections-skeleton-loader"},Yg={class:"skeleton-loader skeleton-color-latest_update"},Xg={key:1,class:"text-not-patchs"},Kg={class:"modal-section-patch-notes future-section-patch-notes"},Qg={key:0,class:"sections-skeleton-loader"},Jg={class:"skeleton-loader skeleton-color-latest_update"},ey={key:1,class:"text-not-patchs"},ui=we({__name:"patchNotes",props:{future_updates:{type:[Object,null],required:!0},latest_update:{type:[Object,null],required:!0},loader:{type:Boolean,default:!1},sentSuccess:{type:Boolean,default:!1}},emits:["close","postSuggestion","loadMoreFutureUpdates","loadMoreLatestUpdates"],setup(t,{emit:n}){const a=e.ref(1),o=e.ref(1),r=e.ref(null),i=e.ref(null),s=n,l=m=>{s("postSuggestion",m)},d=()=>{s("close"),a.value=1,o.value=1},u=({loaded:m,complete:p})=>{s("loadMoreFutureUpdates",{loaded:m,complete:p,page:a.value}),a.value++},c=({loaded:m,complete:p})=>{s("loadMoreLatestUpdates",{loaded:m,complete:p,page:o.value}),o.value++},h=m=>{if(!m)return!1;const p=new Date,f=new Date(m+"T12:00:00");return Math.abs(p-f)/(1e3*60*60*24)<=3};return(m,p)=>(e.openBlock(),e.createElementBlock("main",null,[p[8]||(p[8]=e.createElementVNode("div",{class:"modal-overlay-patch-notes"},[e.createElementVNode("div",{class:"modal-backdrop-patch-notes"})],-1)),e.createElementVNode("div",jg,[e.createElementVNode("div",Gg,[e.createElementVNode("div",Ig,[e.createElementVNode("button",{onClick:p[0]||(p[0]=f=>d()),class:"modal-close-btn-patch-notes"},[...p[1]||(p[1]=[e.createElementVNode("svg",{class:"modal-close-icon-patch-notes","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 14 14"},[e.createElementVNode("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m1 1 6 6m0 0 6 6M7 7l6-6M7 7l-6 6"})],-1)])])]),e.createElementVNode("div",qg,[e.createElementVNode("div",Wg,[e.createElementVNode("section",Ug,[p[4]||(p[4]=e.createElementVNode("h1",{class:"header_latest_update"},"Ultimas Atualizações",-1)),e.createElementVNode("div",{ref_key:"scrollLasContainer",ref:i,class:"features-list scrollable-section scroll_area_patch_notes_latest_update"},[t.latest_update?t.latest_update<=0?(e.openBlock(),e.createElementBlock("span",Xg," Nenhuma atualização programada ")):e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("section",Zg,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(15,f=>e.createElementVNode("div",Yg)),64))])),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.latest_update,(f,g)=>(e.openBlock(),e.createBlock(di,{key:g,state:"updated",title:f.title,description:f.description,date:f.launched_at,tutorial:f.tutorial,flag:f.flag,sparkles:h(f.launched_at)},null,8,["title","description","date","tutorial","flag","sparkles"]))),128)),e.createVNode(e.unref(Xt),{distance:20,target:i.value,onInfinite:c},{complete:e.withCtx(()=>[...p[2]||(p[2]=[e.createElementVNode("span",{class:""},null,-1)])]),spinner:e.withCtx(()=>[...p[3]||(p[3]=[e.createElementVNode("section",{class:"sections-skeleton-loader"},[e.createElementVNode("div",{class:"skeleton-loader skeleton-color-latest_update"},[e.createElementVNode("div",{class:"infinite-loader-spin"})])],-1)])]),_:1},8,["target"])],512)]),e.createElementVNode("section",Kg,[p[7]||(p[7]=e.createElementVNode("h1",{class:"header_future_updates"},"Futuras Atualizações",-1)),e.createElementVNode("div",{ref_key:"scrollFutContainer",ref:r,class:"features-list scrollable-section scroll_area_patch_notes_future_updates"},[t.future_updates?t.future_updates<=0?(e.openBlock(),e.createElementBlock("span",ey," Nenhuma atualização programada ")):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:2},e.renderList(t.future_updates,(f,g)=>(e.openBlock(),e.createBlock(di,{key:g,state:"future-update",title:f.title,description:f.description,date:f.launched_at,tutorial:f.tutorial,flag:f.flag},null,8,["title","description","date","tutorial","flag"]))),128)):(e.openBlock(),e.createElementBlock("section",Qg,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(15,f=>e.createElementVNode("div",Jg)),64))])),e.createVNode(e.unref(Xt),{distance:20,target:r.value,onInfinite:u},{complete:e.withCtx(()=>[...p[5]||(p[5]=[e.createElementVNode("span",{class:""},null,-1)])]),spinner:e.withCtx(()=>[...p[6]||(p[6]=[e.createElementVNode("section",{class:"sections-skeleton-loader"},[e.createElementVNode("div",{class:"skeleton-loader skeleton-color-future_updates"},[e.createElementVNode("div",{class:"infinite-loader-spin"})])],-1)])]),_:1},8,["target"])],512)])]),e.createVNode(Vg,{loader:t.loader,sentSuccess:t.sentSuccess,onPostSuccess:l},null,8,["loader","sentSuccess"])])])])]))}},[["__scopeId","data-v-9921047f"]]),ty={key:0,class:"sparkle-badge"},ny={key:0,class:"text-white text-center flex-1"},ay={key:1,class:"sparkle-badge"},fi=we({__name:"btnNewUpdates",props:{type:{type:String,default:"attendant",required:!0},mode:{type:String,default:"dark"},sparkles:{type:Boolean,default:!1}},emits:["openNewUpdates"],setup(t,{emit:n}){const a=n,o=t,r=(l,d)=>{const u={attendant:{container:"main-container-new-update",button:"update-button",tooltip:"tooltip-new-update",iconSize:"size-4",usePopper:!1,text:null},managerSideBarClose:{container:"main-container-new-update-manager-close",button:"new_update-button ",tooltip:null,iconSize:"size-6",usePopper:!0,text:null},managerSideBarOpen:{container:"main-container-new-update-manager-open",button:"new_update-button-open-side open-width",tooltip:null,iconSize:"size-6",usePopper:!1,text:"Notas de atualização"}};return u[l]||u.attendant},i=e.computed(()=>r(o.type,o.sparkles)),s=()=>{a("openNewUpdates")};return(l,d)=>(e.openBlock(),e.createElementBlock("main",{class:e.normalizeClass(["relative",i.value.container]),onClick:s},[i.value.usePopper?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("button",{class:e.normalizeClass(i.value.button)},[...d[0]||(d[0]=[e.createElementVNode("svg",{class:"new_update-icon",fill:"currentColor",viewBox:"0 0 420.827 420.827"},[e.createElementVNode("g",null,[e.createElementVNode("g",null,[e.createElementVNode("path",{d:"M210.29,0C156,0,104.43,20.693,65.077,58.269C25.859,95.715,2.794,146.022,0.134,199.921 c-0.135,2.734,0.857,5.404,2.744,7.388c1.889,1.983,4.507,3.105,7.244,3.105h45.211c5.275,0,9.644-4.098,9.979-9.362 c4.871-76.214,68.553-135.914,144.979-135.914c80.105,0,145.275,65.171,145.275,145.276c0,80.105-65.17,145.276-145.275,145.276 c-18.109,0-35.772-3.287-52.501-9.771l17.366-15.425c2.686-2.354,3.912-5.964,3.217-9.468c-0.696-3.506-3.209-6.371-6.592-7.521 l-113-32.552c-3.387-1.149-7.122-0.407-9.81,1.948c-2.686,2.354-3.913,5.963-3.218,9.467L69.71,403.157 c0.696,3.505,3.209,6.372,6.591,7.521c3.383,1.147,7.122,0.408,9.81-1.946l18.599-16.298 c31.946,18.574,68.456,28.394,105.581,28.394c116.021,0,210.414-94.392,210.414-210.414C420.705,94.391,326.312,0,210.29,0z"}),e.createElementVNode("path",{d:"M195.112,237.9h118.5c2.757,0,5-2.242,5-5v-30c0-2.757-2.243-5-5-5h-83.5v-91c0-2.757-2.243-5-5-5h-30 c-2.757,0-5,2.243-5,5v126C190.112,235.658,192.355,237.9,195.112,237.9z"})])])],-1)])],2),t.sparkles?(e.openBlock(),e.createElementBlock("div",ty,[(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass(i.value.iconSize),viewBox:"0 0 128 128"},[...d[1]||(d[1]=[e.createStaticVNode('<path d="M121.59 60.83l-13.93-4.49c-8.91-2.94-14.13-10.15-16.58-19.21L84.95 7.27c-.16-.59-.55-1.38-1.75-1.38c-1.01 0-1.59.79-1.75 1.38l-6.13 29.87c-2.46 9.06-7.67 16.27-16.58 19.21l-13.93 4.49c-1.97.64-2 3.42-.04 4.09l14.03 4.83c8.88 2.95 14.06 10.15 16.52 19.17l6.14 29.53c.16.59.49 1.65 1.75 1.65c1.33 0 1.59-1.06 1.75-1.65l6.14-29.53c2.46-9.03 7.64-16.23 16.52-19.17l14.03-4.83c1.94-.68 1.91-3.46-.06-4.1z" fill="#fdd835" data-v-b6196bab></path><path d="M122.91 62.08c-.22-.55-.65-1.03-1.32-1.25l-13.93-4.49c-8.91-2.94-14.13-10.15-16.58-19.21L84.95 7.27c-.09-.34-.41-.96-.78-1.14l1.98 29.97c1.47 13.68 2.73 20.12 13.65 22c9.38 1.62 20.23 3.48 23.11 3.98z" fill="#ffee58" data-v-b6196bab></path><path d="M122.94 63.64l-24.16 5.54c-8.51 2.16-13.2 7.09-13.2 19.99l-2.37 30.94c.81-.08 1.47-.52 1.75-1.65l6.14-29.53c2.46-9.03 7.64-16.23 16.52-19.17l14.03-4.83c.66-.24 1.08-.73 1.29-1.29z" fill="#f4b400" data-v-b6196bab></path><g data-v-b6196bab><path d="M41.81 86.81c-8.33-2.75-9.09-5.85-10.49-11.08l-3.49-12.24c-.21-.79-2.27-.79-2.49 0L22.97 74.8c-1.41 5.21-4.41 9.35-9.53 11.04l-8.16 3.54c-1.13.37-1.15 1.97-.02 2.35l8.22 2.91c5.1 1.69 8.08 5.83 9.5 11.02l2.37 10.82c.22.79 2.27.79 2.48 0l2.78-10.77c1.41-5.22 3.57-9.37 10.5-11.07l7.72-2.91c1.13-.39 1.12-1.99-.02-2.36l-7-2.56z" fill="#fdd835" data-v-b6196bab></path><path d="M28.49 75.55c.85 7.86 1.28 10.04 7.65 11.67l13.27 2.59c-.14-.19-.34-.35-.61-.43l-7-2.57c-7.31-2.5-9.33-5.68-10.7-12.04c-1.37-6.36-2.83-10.51-2.83-10.51c-.51-1.37-1.24-1.3-1.24-1.3l1.46 12.59z" fill="#ffee58" data-v-b6196bab></path><path d="M28.73 102.99c0-7.41 4.05-11.08 10.49-11.08l10.02-.41s-.58.77-1.59 1.01l-6.54 2.13c-5.55 2.23-8.08 3.35-9.8 10.94c0 0-2.22 8.83-2.64 9.76c-.58 1.3-1.27 1.57-1.27 1.57l1.33-13.92z" fill="#f4b400" data-v-b6196bab></path></g><path d="M59.74 28.14c.56-.19.54-.99-.03-1.15l-7.72-2.08a4.77 4.77 0 0 1-3.34-3.3L45.61 9.06c-.15-.61-1.02-.61-1.17.01l-2.86 12.5a4.734 4.734 0 0 1-3.4 3.37l-7.67 1.99c-.57.15-.61.95-.05 1.15l8.09 2.8c1.45.5 2.57 1.68 3.01 3.15l2.89 11.59c.15.6 1.01.61 1.16 0l2.99-11.63a4.773 4.773 0 0 1 3.04-3.13l8.1-2.72z" fill="#f4b400" stroke="#f4b400" stroke-miterlimit="10" data-v-b6196bab></path>',5)])],2))])):e.createCommentVNode("",!0)],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("button",{class:e.normalizeClass(["relative",i.value.button])},[(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass(o.mode==="dark"?"dark_new_update-icon":"new_update-icon"),fill:"currentColor",viewBox:"0 0 420.827 420.827"},[...d[2]||(d[2]=[e.createElementVNode("g",null,[e.createElementVNode("g",null,[e.createElementVNode("path",{d:"M210.29,0C156,0,104.43,20.693,65.077,58.269C25.859,95.715,2.794,146.022,0.134,199.921 c-0.135,2.734,0.857,5.404,2.744,7.388c1.889,1.983,4.507,3.105,7.244,3.105h45.211c5.275,0,9.644-4.098,9.979-9.362 c4.871-76.214,68.553-135.914,144.979-135.914c80.105,0,145.275,65.171,145.275,145.276c0,80.105-65.17,145.276-145.275,145.276 c-18.109,0-35.772-3.287-52.501-9.771l17.366-15.425c2.686-2.354,3.912-5.964,3.217-9.468c-0.696-3.506-3.209-6.371-6.592-7.521 l-113-32.552c-3.387-1.149-7.122-0.407-9.81,1.948c-2.686,2.354-3.913,5.963-3.218,9.467L69.71,403.157 c0.696,3.505,3.209,6.372,6.591,7.521c3.383,1.147,7.122,0.408,9.81-1.946l18.599-16.298 c31.946,18.574,68.456,28.394,105.581,28.394c116.021,0,210.414-94.392,210.414-210.414C420.705,94.391,326.312,0,210.29,0z"}),e.createElementVNode("path",{d:"M195.112,237.9h118.5c2.757,0,5-2.242,5-5v-30c0-2.757-2.243-5-5-5h-83.5v-91c0-2.757-2.243-5-5-5h-30 c-2.757,0-5,2.243-5,5v126C190.112,235.658,192.355,237.9,195.112,237.9z"})])],-1)])],2)),i.value.text?(e.openBlock(),e.createElementBlock("span",ny,e.toDisplayString(i.value.text),1)):e.createCommentVNode("",!0),t.sparkles?(e.openBlock(),e.createElementBlock("div",ay,[(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass(i.value.iconSize),viewBox:"0 0 128 128"},[...d[3]||(d[3]=[e.createStaticVNode('<path d="M121.59 60.83l-13.93-4.49c-8.91-2.94-14.13-10.15-16.58-19.21L84.95 7.27c-.16-.59-.55-1.38-1.75-1.38c-1.01 0-1.59.79-1.75 1.38l-6.13 29.87c-2.46 9.06-7.67 16.27-16.58 19.21l-13.93 4.49c-1.97.64-2 3.42-.04 4.09l14.03 4.83c8.88 2.95 14.06 10.15 16.52 19.17l6.14 29.53c.16.59.49 1.65 1.75 1.65c1.33 0 1.59-1.06 1.75-1.65l6.14-29.53c2.46-9.03 7.64-16.23 16.52-19.17l14.03-4.83c1.94-.68 1.91-3.46-.06-4.1z" fill="#fdd835" data-v-b6196bab></path><path d="M122.91 62.08c-.22-.55-.65-1.03-1.32-1.25l-13.93-4.49c-8.91-2.94-14.13-10.15-16.58-19.21L84.95 7.27c-.09-.34-.41-.96-.78-1.14l1.98 29.97c1.47 13.68 2.73 20.12 13.65 22c9.38 1.62 20.23 3.48 23.11 3.98z" fill="#ffee58" data-v-b6196bab></path><path d="M122.94 63.64l-24.16 5.54c-8.51 2.16-13.2 7.09-13.2 19.99l-2.37 30.94c.81-.08 1.47-.52 1.75-1.65l6.14-29.53c2.46-9.03 7.64-16.23 16.52-19.17l14.03-4.83c.66-.24 1.08-.73 1.29-1.29z" fill="#f4b400" data-v-b6196bab></path><g data-v-b6196bab><path d="M41.81 86.81c-8.33-2.75-9.09-5.85-10.49-11.08l-3.49-12.24c-.21-.79-2.27-.79-2.49 0L22.97 74.8c-1.41 5.21-4.41 9.35-9.53 11.04l-8.16 3.54c-1.13.37-1.15 1.97-.02 2.35l8.22 2.91c5.1 1.69 8.08 5.83 9.5 11.02l2.37 10.82c.22.79 2.27.79 2.48 0l2.78-10.77c1.41-5.22 3.57-9.37 10.5-11.07l7.72-2.91c1.13-.39 1.12-1.99-.02-2.36l-7-2.56z" fill="#fdd835" data-v-b6196bab></path><path d="M28.49 75.55c.85 7.86 1.28 10.04 7.65 11.67l13.27 2.59c-.14-.19-.34-.35-.61-.43l-7-2.57c-7.31-2.5-9.33-5.68-10.7-12.04c-1.37-6.36-2.83-10.51-2.83-10.51c-.51-1.37-1.24-1.3-1.24-1.3l1.46 12.59z" fill="#ffee58" data-v-b6196bab></path><path d="M28.73 102.99c0-7.41 4.05-11.08 10.49-11.08l10.02-.41s-.58.77-1.59 1.01l-6.54 2.13c-5.55 2.23-8.08 3.35-9.8 10.94c0 0-2.22 8.83-2.64 9.76c-.58 1.3-1.27 1.57-1.27 1.57l1.33-13.92z" fill="#f4b400" data-v-b6196bab></path></g><path d="M59.74 28.14c.56-.19.54-.99-.03-1.15l-7.72-2.08a4.77 4.77 0 0 1-3.34-3.3L45.61 9.06c-.15-.61-1.02-.61-1.17.01l-2.86 12.5a4.734 4.734 0 0 1-3.4 3.37l-7.67 1.99c-.57.15-.61.95-.05 1.15l8.09 2.8c1.45.5 2.57 1.68 3.01 3.15l2.89 11.59c.15.6 1.01.61 1.16 0l2.99-11.63a4.773 4.773 0 0 1 3.04-3.13l8.1-2.72z" fill="#f4b400" stroke="#f4b400" stroke-miterlimit="10" data-v-b6196bab></path>',5)])],2))])):e.createCommentVNode("",!0)],2),e.withDirectives(e.createElementVNode("p",{class:e.normalizeClass(i.value.tooltip)}," Notas de atualização ",2),[[e.vShow,i.value.tooltip]])],64))],2))}},[["__scopeId","data-v-b6196bab"]]),oy=["innerHTML"],ry=["src"],mi={__name:"libPhotoPicker",props:{modelValue:{type:[String,null],default:null},sizeClass:{type:String,default:"size-22"},baseClass:{type:String,default:"shadow shadow-black rounded-xl relative border-2 border-gray-500 bg-base-300 hover:bg-base-300/70 transition-all"},emptyPlaceholder:{type:String,default:'<svg class="size-32 text-white" 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="M7.5 4.586A2 2 0 0 1 8.914 4h6.172a2 2 0 0 1 1.414.586L17.914 6H19a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h1.086L7.5 4.586ZM10 12a2 2 0 1 1 4 0 2 2 0 0 1-4 0Zm2-4a4 4 0 1 0 0 8 4 4 0 0 0 0-8Z" clip-rule="evenodd"/> </svg>'}},emits:["update:modelValue"],setup(t,{emit:n}){const a=n,o=async()=>{const i=document.createElement("input");i.type="file",i.accept="image/*",i.onchange=async s=>{const l=s.target.files[0];if(!l)return;const d=new FileReader;d.onload=()=>{a("update:modelValue",d.result)},d.readAsDataURL(l)},i.click()},r=async()=>{a("update:modelValue",null)};return(i,s)=>(e.openBlock(),e.createElementBlock("button",{class:e.normalizeClass(t.baseClass)},[t.modelValue?(e.openBlock(),e.createElementBlock("img",{key:1,src:typeof t.modelValue=="string"&&t.modelValue.startsWith("data:image/")?t.modelValue:`${t.modelValue}?t=${Date.now()}`,onClick:o,class:e.normalizeClass(`${t.sizeClass} rounded-xl z-10 object-center bg-base-300 object-scale-down hover:bg-base-300/70`)},null,10,ry)):(e.openBlock(),e.createElementBlock("section",{key:0,class:e.normalizeClass(`flex items-center justify-center ${t.sizeClass}`),onClick:o},[e.createElementVNode("span",{class:e.normalizeClass("p-3 rounded-xl text-gray-400 hover:scale-105 hover:text-primary hover:border-primary"),innerHTML:t.emptyPlaceholder},null,8,oy)],2)),t.modelValue?(e.openBlock(),e.createElementBlock("button",{key:2,onClick:e.withModifiers(r,["stop"]),class:"absolute top-1 right-1 rounded-lg bg-red-600 hover:bg-red-500 z-50 py-1 px-1"},[...s[0]||(s[0]=[e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"w-5"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6 18L18 6M6 6l12 12"})],-1)])])):e.createCommentVNode("",!0)],2))}},iy={key:0,class:"text-gray-500 text-xs"},sy={key:1,class:"text-gray-300 text-xs"},ly={class:"text-green-500"},cy={key:0,class:"absolute z-10 mt-1.5 w-full bg-base-300 shadow-sm shadow-base-100 border border-base-300 rounded-md max-h-64 overflow-y-auto hide-scrollbar"},dy={class:"p-2 sticky top-0 bg-base-300"},uy=["onClick"],fy={class:"text-xs truncate max-w-32"},my={key:0,class:"size-4 text-green-500","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},hy={key:0,class:"text-center text-gray-400 py-2"},hi=we({__name:"selectMultipleDepartments",props:{modelValue:{type:Array,default:()=>[]},departments:{type:Array,default:()=>[],required:!0},placeholder:{type:String,default:"Selecione departamentos..."}},emits:["update:modelValue"],setup(t,{emit:n}){const a=t,o=n,r=e.ref(!1),i=e.ref(""),s=e.ref(null);Bn(s,()=>r.value=!1);const l=e.computed(()=>a.departments.filter(u=>u.name.toLowerCase().includes(i.value.toLowerCase()))),d=u=>{const c=[...a.modelValue],h=c.findIndex(m=>m.id===u.id);h===-1?c.push({id:u.id,name:u.name}):c.splice(h,1),o("update:modelValue",c)};return(u,c)=>(e.openBlock(),e.createElementBlock("div",{class:"relative w-full",ref_key:"dropdownRef",ref:s},[e.createElementVNode("div",{onClick:c[0]||(c[0]=h=>r.value=!r.value),class:"flex flex-wrap items-center justify-between gap-2 bg-base-300 p-3 rounded-md border border-base-300 cursor-pointer"},[t.modelValue.length?(e.openBlock(),e.createElementBlock("span",sy,[c[2]||(c[2]=e.createTextVNode(" Selecionados: ",-1)),e.createElementVNode("a",ly,e.toDisplayString(t.modelValue.length),1)])):(e.openBlock(),e.createElementBlock("span",iy,e.toDisplayString(t.placeholder),1)),(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass(["size-3.5 text-white transition duration-300",r.value?"rotate-180":""]),"aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},[...c[3]||(c[3]=[e.createElementVNode("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m19 9-7 7-7-7"},null,-1)])],2))]),r.value?(e.openBlock(),e.createElementBlock("div",cy,[e.createElementVNode("div",dy,[e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":c[1]||(c[1]=h=>i.value=h),type:"text",placeholder:"Buscar...",class:"w-full text-[10px] bg-base-200 rounded-md p-2 outline-none border-none focus:outline-none focus:ring-0 focus:shadow-none placeholder:text-gray-500"},null,512),[[e.vModelText,i.value]])]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.value,h=>(e.openBlock(),e.createElementBlock("button",{key:h.id,class:e.normalizeClass([t.modelValue.some(m=>m.id===h.id)?"bg-green-500/30 hover:bg-green-500/50":"hover:bg-base-200","flex items-center justify-between gap-2 px-3 py-2 cursor-pointer transition w-full"]),onClick:m=>d(h)},[e.createElementVNode("span",fy,e.toDisplayString(h.name),1),t.modelValue.some(m=>m.id===h.id)?(e.openBlock(),e.createElementBlock("svg",my,[...c[4]||(c[4]=[e.createElementVNode("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M5 11.917 9.724 16.5 19 7.5"},null,-1)])])):e.createCommentVNode("",!0)],10,uy))),128)),l.value.length?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",hy,[...c[5]||(c[5]=[e.createElementVNode("span",{class:"text-xs"},"Nenhum resultado encontrado",-1)])]))])):e.createCommentVNode("",!0)],512))}},[["__scopeId","data-v-691a1197"]]);function vn(t){if(!t)return"black";const n=t.replace("#",""),a=parseInt(n,16),o=a>>16&255,r=a>>8&255,i=a&255;return(o*299+r*587+i*114)/1e3>=128?"text-black":"text-white"}const py={key:0,class:"text-gray-500 text-xs"},gy={key:1,class:"text-gray-300 text-xs"},yy={class:"text-green-500"},ky={key:0,class:"text-gray-500 text-xs"},xy={key:1,class:"inline-flex items-center gap-1"},by={class:"text-xs truncate max-w-32 rounded-r-md"},wy={class:"p-2 sticky top-0 bg-base-300"},Ey=["onClick"],vy={class:"inline-flex"},Cy={key:0,class:"size-4 text-green-500","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},Sy={key:0,class:"text-center text-gray-400 py-2"},By={class:"p-2 sticky top-0 bg-base-300"},Vy=["onClick"],My={class:"inline-flex"},Ny={key:0,class:"size-4 text-green-500","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},Ay={key:0,class:"text-center text-gray-400 py-2"},to=we({__name:"selectMultipleTags",props:{modelValue:{type:Array,default:()=>[]},multiple:{type:Boolean,default:!0},closeOnSelectSingle:{type:Boolean,default:!0},teleportTo:{type:String,default:null},maxHeight:{type:String,default:"10rem"},allTags:{type:Object,default:()=>{}}},emits:["update:modelValue"],setup(t,{emit:n}){const a=t,o=n,r=e.ref(!1),i=e.ref(""),s=e.ref(null),l=e.ref(null),d=e.ref(null),u=e.ref({}),c=e.ref([]),h=e.ref(1),m=e.ref(null),p=e.ref(null),f=e.ref(!1),g=e.ref({name:""});e.ref(!1);const y=e.computed(()=>a.modelValue[0]||null),k=x=>{var B,V,S;if(!r.value)return;const T=x.target;(B=d.value)!=null&&B.contains(T)||(V=s.value)!=null&&V.contains(T)||(S=l.value)!=null&&S.contains(T)||(r.value=!1)},E=()=>{if(!a.teleportTo||!d.value)return;const x=d.value.getBoundingClientRect();u.value={position:"fixed",top:`${x.bottom+3}px`,left:`${x.left}px`,width:`${x.width}px`,zIndex:9999}};e.watch(r,x=>{x&&E()});const C=e.computed(()=>c.value.filter(x=>x.name.toLowerCase().includes(i.value.toLowerCase()))),b=x=>{var V;if(!a.multiple){if(((V=y.value)==null?void 0:V.id)===x.id){o("update:modelValue",[]);return}o("update:modelValue",[{id:x.id,name:x.name,color:x.color}]),a.closeOnSelectSingle&&(r.value=!1);return}const T=[...a.modelValue],B=T.findIndex(S=>S.id===x.id);B===-1?T.push({id:x.id,name:x.name,color:x.color}):T.splice(B,1),o("update:modelValue",T)},N=(x,T)=>{const B=new URLSearchParams,V=x;return Object.keys(T).forEach(S=>B.append(S,T[S])),`${V}?${B.toString()}`},D=async x=>{try{const T=await Xe.get(N(O0,{page:h.value,...x})),{results:B,next:V,previous:S}=T.data;m.value=V,p.value=S,h.value===1?c.value=B:c.value=[...c.value,...B]}catch(T){console.error(T)}},z=async x=>{if(!f.value){f.value=!0;try{await D(),m.value?(h.value++,x.loaded()):x.complete()}catch(T){console.error("Erro ao carregar tags:",T),x.complete()}finally{f.value=!1}}};let M;return e.watch(g,()=>{clearTimeout(M),M=setTimeout(async()=>{const{name:x}=g.value;h.value=1,await D({name:x.toString()})},800)},{deep:!0}),e.onMounted(async()=>{var x;if(a.allTags&&((x=a.allTags.results)==null?void 0:x.length)>0?(c.value=a.allTags.results,m.value=a.allTags.next||null,p.value=a.allTags.previous||null,h.value=2):await D(),a.teleportTo){const T=()=>{r.value&&E()};window.addEventListener("scroll",T,!0),window.addEventListener("resize",T)}document.addEventListener("mousedown",k)}),e.onBeforeUnmount(()=>{document.removeEventListener("mousedown",k)}),(x,T)=>{var B;return e.openBlock(),e.createElementBlock("div",{class:"relative w-full z-[9999]",ref_key:"dropdownRef",ref:s},[e.createElementVNode("div",{onClick:T[0]||(T[0]=V=>r.value=!r.value),ref_key:"triggerRef",ref:d,class:"flex flex-wrap items-center justify-between gap-2 bg-base-300 p-3 rounded-md border border-base-300 cursor-pointer"},[t.multiple?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[t.modelValue.length?(e.openBlock(),e.createElementBlock("span",gy,[T[3]||(T[3]=e.createTextVNode(" Selecionados: ",-1)),e.createElementVNode("a",yy,e.toDisplayString(t.modelValue.length),1)])):(e.openBlock(),e.createElementBlock("span",py," Selecione suas etiquetas "))],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[t.modelValue.length?(e.openBlock(),e.createElementBlock("section",xy,[e.createElementVNode("span",by,e.toDisplayString((B=t.modelValue[0])==null?void 0:B.name),1)])):(e.openBlock(),e.createElementBlock("span",ky," Selecione a etiqueta "))],64)),(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass(["size-3.5 text-white transition duration-300",r.value?"rotate-180":""]),"aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},[...T[4]||(T[4]=[e.createElementVNode("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m19 9-7 7-7-7"},null,-1)])],2))],512),r.value&&!t.teleportTo?(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle({maxHeight:a.maxHeight}),class:"absolute z-10 mt-1.5 w-full bg-base-300 shadow-sm shadow-base-100 border border-base-300 rounded-md overflow-y-auto hide-scrollbar"},[e.createElementVNode("div",wy,[e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":T[1]||(T[1]=V=>g.value.name=V),type:"text",placeholder:"Buscar...",class:"w-full text-[10px] bg-base-200 rounded-md p-2 outline-none border-none focus:outline-none focus:ring-0 focus:shadow-none placeholder:text-gray-500"},null,512),[[e.vModelText,g.value.name]])]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(C.value,V=>(e.openBlock(),e.createElementBlock("button",{key:V.id,class:e.normalizeClass([t.modelValue.some(S=>S.id===V.id)?"bg-green-500/30 hover:bg-green-500/50":"hover:bg-base-200","flex items-center justify-between gap-2 px-3 py-2 cursor-pointer transition w-full"]),onClick:S=>b(V)},[e.createElementVNode("section",vy,[(e.openBlock(),e.createElementBlock("svg",{class:"size-6","aria-hidden":"true",viewBox:"0 0 3 97",style:e.normalizeStyle({color:V.color||"#ffff"})},[...T[5]||(T[5]=[e.createElementVNode("path",{d:"M49.9,0a17.1,17.1,0,0,0-12,5L5,37.9A17,17,0,0,0,5,62L37.9,94.9a17.1,17.1,0,0,0,12,5ZM25.4,59.4a9.5,9.5,0,1,1,9.5-9.5A9.5,9.5,0,0,1,25.4,59.4Z",fill:"currentColor"},null,-1)])],4)),e.createElementVNode("span",{style:e.normalizeStyle({backgroundColor:V.color||"#ffff"}),class:e.normalizeClass(["text-xs truncate max-w-32 p-1 rounded-r-md",e.unref(vn)(V.color||"#ffff")])},e.toDisplayString(V.name),7)]),t.modelValue.some(S=>S.id===V.id)?(e.openBlock(),e.createElementBlock("svg",Cy,[...T[6]||(T[6]=[e.createElementVNode("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M5 11.917 9.724 16.5 19 7.5"},null,-1)])])):e.createCommentVNode("",!0)],10,Ey))),128)),C.value.length?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",Sy,[...T[7]||(T[7]=[e.createElementVNode("span",{class:"text-xs"},"Nenhum resultado encontrado",-1)])])),m.value?(e.openBlock(),e.createBlock(e.unref(Xt),{key:1,onInfinite:z,class:"p-3 bg-slate-800"},{spinner:e.withCtx(()=>[...T[8]||(T[8]=[e.createElementVNode("section",{class:"w-full justify-center items-center flex"},[e.createElementVNode("div",{class:"size-4 animate-spin rounded-full border-4 border-solid border-white border-t-transparent"})],-1)])]),_:1})):e.createCommentVNode("",!0)],4)):e.createCommentVNode("",!0),r.value&&t.teleportTo?(e.openBlock(),e.createBlock(e.Teleport,{key:1,to:t.teleportTo},[e.createElementVNode("div",{ref_key:"teleportedRef",ref:l,style:e.normalizeStyle({...u.value,maxHeight:a.maxHeight}),class:"absolute z-10 mt-1.5 w-full bg-base-300 shadow-sm shadow-base-100 border border-base-300 rounded-md overflow-y-auto hide-scrollbar"},[e.createElementVNode("div",By,[e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":T[2]||(T[2]=V=>g.value.name=V),type:"text",placeholder:"Buscar...",class:"w-full text-[10px] bg-base-200 rounded-md p-2 outline-none border-none focus:outline-none focus:ring-0 focus:shadow-none placeholder:text-gray-500"},null,512),[[e.vModelText,g.value.name]])]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(C.value,V=>(e.openBlock(),e.createElementBlock("button",{key:V.id,class:e.normalizeClass(["select-tag-btn",{selected:t.modelValue.some(S=>S.id===V.id)}]),onClick:S=>b(V)},[e.createElementVNode("section",My,[(e.openBlock(),e.createElementBlock("svg",{class:"size-6","aria-hidden":"true",viewBox:"0 0 3 97",style:e.normalizeStyle({color:V.color||"#ffff"})},[...T[9]||(T[9]=[e.createElementVNode("path",{d:"M49.9,0a17.1,17.1,0,0,0-12,5L5,37.9A17,17,0,0,0,5,62L37.9,94.9a17.1,17.1,0,0,0,12,5ZM25.4,59.4a9.5,9.5,0,1,1,9.5-9.5A9.5,9.5,0,0,1,25.4,59.4Z",fill:"currentColor"},null,-1)])],4)),e.createElementVNode("span",{style:e.normalizeStyle({backgroundColor:V.color||"#ffff"}),class:e.normalizeClass(["viewTag",e.unref(vn)(V.color||"#ffff")])},e.toDisplayString(V.name),7)]),t.modelValue.some(S=>S.id===V.id)?(e.openBlock(),e.createElementBlock("svg",Ny,[...T[10]||(T[10]=[e.createElementVNode("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M5 11.917 9.724 16.5 19 7.5"},null,-1)])])):e.createCommentVNode("",!0)],10,Vy))),128)),C.value.length?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",Ay,[...T[11]||(T[11]=[e.createElementVNode("span",{class:"text-xs"},"Nenhum resultado encontrado",-1)])])),m.value?(e.openBlock(),e.createBlock(e.unref(Xt),{key:1,onInfinite:z,class:"p-3 bg-slate-800"},{spinner:e.withCtx(()=>[...T[12]||(T[12]=[e.createElementVNode("section",{class:"w-full justify-center items-center flex"},[e.createElementVNode("div",{class:"size-4 animate-spin rounded-full border-4 border-solid border-white border-t-transparent"})],-1)])]),_:1})):e.createCommentVNode("",!0)],4)],8,["to"])):e.createCommentVNode("",!0)],512)}}},[["__scopeId","data-v-14ed93ba"]]),Ty={class:"flex flex-col gap-2 w-full h-full"},Dy={class:"flex items-center justify-between px-1"},Ly={class:"text-xs font-medium text-left"},Fy=["innerHTML"],$y=["type","placeholder"],Py=["placeholder"],_y={key:3,class:"input__error"},no=we({__name:"primaryInput",props:{content:{type:Object,default:()=>({})}},emits:["update:content"],setup(t,{emit:n}){const a=t,o=n,r=e.reactive({title:a.content.title??"Nome do produto",svg:a.content.svg??`<svg class="size-4 flex items-center text-base-100" fill="currentColor" viewBox="0 0 495.554 495.554">
|
|
121
122
|
<path d="M353.732,451.163c3.388,10.912-2.324,22.536-13.024,26.545c-35.256,13.208-68.455,17.846-111.453,17.846
|
|
122
123
|
c-118.188,0-222.136-84.711-222.136-224.283C7.118,126.042,112.492,0,273.4,0c125.316,0,215.036,86.156,215.036,205.784
|
|
123
124
|
c0,103.949-58.388,169.434-135.282,169.434c-33.456,0-57.69-17.076-61.225-54.813h-1.423
|
|
@@ -128,4 +129,4 @@ $bm_rt = loopOut('cycle', 0);`},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,
|
|
|
128
129
|
c5.426-1.969,11.42-1.629,16.591,0.935c5.171,2.565,9.08,7.133,10.792,12.646L353.732,451.163z M296.189,175.873
|
|
129
130
|
c-5.686-1.423-12.815-2.847-22.064-2.847c-47.017,0-84.035,46.27-84.035,101.11c0,27.053,12.117,44.117,35.594,44.117
|
|
130
131
|
c26.346,0,54.125-33.443,60.527-74.754L296.189,175.873z"/>
|
|
131
|
-
</svg>`,info:a.content.info??"Nome que será atribuído no Produto",type:a.content.type??"text",placeholder:a.content.placeholder??"Integração de sistemas",empty:a.content.empty??!1,data:a.content.data??""}),i=e.ref(r.data);e.watch(i,l=>{o("update:content",{...r,data:l})},{immediate:!0,deep:!0}),e.watch(()=>a.content,l=>{l.data!==i.value&&(i.value=l.data),l.empty!==r.empty&&(r.empty=l.empty)},{deep:!0});const s=e.computed(()=>r.empty&&!i.value);return(l,d)=>{const f=e.resolveComponent("Popper");return e.openBlock(),e.createElementBlock("section",oy,[e.createElementVNode("header",ry,[e.createElementVNode("p",iy,e.toDisplayString(r.title),1),r.info?(e.openBlock(),e.createBlock(f,{key:0,hover:"",content:r.info,placement:"top",arrow:""},{default:e.withCtx(()=>d[2]||(d[2]=[e.createElementVNode("svg",{class:"size-4 text-white",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24"},[e.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M2 12C2 6.477 6.477 2 12 2s10 4.477 10 10-4.477 10-10 10S2 17.523 2 12Zm9.408-5.5a1 1 0 1 0 0 2h.01a1 1 0 1 0 0-2h-.01ZM10 10a1 1 0 1 0 0 2h1v3h-1a1 1 0 1 0 0 2h4a1 1 0 1 0 0-2h-1v-4a1 1 0 0 0-1-1h-2Z"})],-1)])),_:1,__:[2]},8,["content"])):e.createCommentVNode("",!0)]),e.createElementVNode("div",{class:e.normalizeClass(["input__container",s.value?"input__container--error":"",r.type==="textArea"?"textArea":""])},[r.type!=="textArea"?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(s.value?"text-red-500":"text-base-100"),innerHTML:r.svg},null,10,sy)):e.createCommentVNode("",!0),r.type!=="textArea"?e.withDirectives((e.openBlock(),e.createElementBlock("input",{type:r.type,key:r.type,placeholder:r.placeholder,"onUpdate:modelValue":d[0]||(d[0]=u=>i.value=u),class:e.normalizeClass([s.value?"empty":null,"input__field"])},null,10,ly)),[[e.vModelDynamic,i.value]]):e.withDirectives((e.openBlock(),e.createElementBlock("textarea",{key:2,class:e.normalizeClass([s.value?"empty":null,"input__field h-full resize-y"]),"onUpdate:modelValue":d[1]||(d[1]=u=>i.value=u),placeholder:r.placeholder},null,10,cy)),[[e.vModelText,i.value]]),s.value?(e.openBlock(),e.createElementBlock("span",dy," Campo obrigatório ")):e.createCommentVNode("",!0)],2)])}}},[["__scopeId","data-v-2bd136c0"]]),uy=["onClick"],my={key:0,xmlns:"http://www.w3.org/2000/svg",class:"size-4 text-green-400",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},fy=["onClick"],hy={key:0,xmlns:"http://www.w3.org/2000/svg",class:"size-4 text-green-400",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},W1=Ce({__name:"simpleSelect",props:{modelValue:{type:[Array,String,Number,Object],default:()=>[]},options:{type:Array,required:!0,default:()=>[]},placeholder:{type:String,default:"Selecione uma opção..."},multiple:{type:Boolean,default:!1},theme:{type:String,default:"bg-base-300 border-base-300"},teleportTo:{type:String,default:null}},emits:["update:modelValue"],setup(t,{emit:n}){const a=t,o=n,r=e.ref(!1),i=e.ref(null),s=e.ref(null),l=e.ref({});mn(i,()=>r.value=!1);const d=()=>{if(!a.teleportTo||!s.value)return;const p=s.value.getBoundingClientRect();l.value={position:"fixed",top:`${p.bottom+6}px`,left:`${p.left}px`,width:`${p.width}px`,zIndex:9999}};e.watch(r,p=>{p&&d()});const f=[];e.onMounted(()=>{if(a.teleportTo){const p=()=>{r.value&&d()};window.addEventListener("scroll",p,!0),window.addEventListener("resize",p),f.push(["scroll",p],["resize",p])}}),e.onUnmounted(()=>{f.forEach(([p,c])=>window.removeEventListener(p,c,p==="scroll"?!0:void 0))});const u=p=>a.multiple&&Array.isArray(a.modelValue)?a.modelValue.includes(p):a.modelValue===p,h=p=>{if(a.multiple){const c=Array.isArray(a.modelValue)?[...a.modelValue]:[],g=c.indexOf(p);g===-1?c.push(p):c.splice(g,1),o("update:modelValue",c)}else o("update:modelValue",p),r.value=!1},m=e.computed(()=>{if(a.multiple&&Array.isArray(a.modelValue))return a.modelValue.length===0?a.placeholder:a.options.filter(g=>a.modelValue.includes(g.value)).map(g=>g.name).join(", ");const p=a.options.find(c=>c.value===a.modelValue);return(p==null?void 0:p.name)||a.placeholder});return(p,c)=>(e.openBlock(),e.createElementBlock("div",{class:"relative w-full",ref_key:"dropdownRef",ref:i},[e.createElementVNode("div",{onClick:c[0]||(c[0]=g=>r.value=!r.value),class:e.normalizeClass(["flex flex-wrap items-center justify-between p-3 gap-2 rounded-md cursor-pointer transition",t.theme]),ref_key:"triggerRef",ref:s},[e.createElementVNode("span",{class:e.normalizeClass(["text-xs truncate max-w-full",m.value===t.placeholder?"text-gray-400":"text-white"])},e.toDisplayString(m.value),3),(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass(["size-3 text-white transition-transform duration-300",r.value?"rotate-180":""]),xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},c[1]||(c[1]=[e.createElementVNode("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m19 9-7 7-7-7"},null,-1)]),2))],2),r.value&&!t.teleportTo?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["absolute flex flex-col z-10 mt-1.5 w-full shadow-sm border rounded-md max-h-64 overflow-y-auto hide-scrollbar",t.theme])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.options,g=>(e.openBlock(),e.createElementBlock("button",{key:g.value,class:e.normalizeClass([u(g.value)?"bg-green-500/30 hover:bg-green-500/50":"hover:bg-base-200","flex items-center justify-between gap-2 px-3 py-2 text-left text-sm cursor-pointer transition w-full"]),onClick:y=>h(g.value)},[e.createElementVNode("span",null,e.toDisplayString(g.name),1),u(g.value)?(e.openBlock(),e.createElementBlock("svg",my,c[2]||(c[2]=[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M5 13l4 4L19 7"},null,-1)]))):e.createCommentVNode("",!0)],10,uy))),128))],2)):e.createCommentVNode("",!0),r.value&&t.teleportTo?(e.openBlock(),e.createBlock(e.Teleport,{key:1,to:t.teleportTo},[e.createElementVNode("div",{style:e.normalizeStyle(l.value),class:e.normalizeClass(["flex flex-col shadow-sm border rounded-md max-h-64 overflow-y-auto hide-scrollbar",t.theme])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.options,g=>(e.openBlock(),e.createElementBlock("button",{key:g.value,class:e.normalizeClass([u(g.value)?"bg-green-500/30 hover:bg-green-500/50":"hover:bg-base-200","flex items-center justify-between gap-2 px-3 py-2 text-left text-sm cursor-pointer transition w-full"]),onClick:y=>h(g.value)},[e.createElementVNode("span",null,e.toDisplayString(g.name),1),u(g.value)?(e.openBlock(),e.createElementBlock("svg",hy,c[3]||(c[3]=[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M5 13l4 4L19 7"},null,-1)]))):e.createCommentVNode("",!0)],10,fy))),128))],6)],8,["to"])):e.createCommentVNode("",!0)],512))}},[["__scopeId","data-v-68d165f3"]]),py={class:"flex gap-2"},Ia=Ce({__name:"outcomeButton",props:{outcome:{type:String,default:null}},emits:["update:outcome","change"],setup(t,{emit:n}){const a=t,o=n;async function r(l){const d=a.outcome===l?null:l;o("update:outcome",d),o("change",d)}const i=e.computed(()=>a.outcome==="won"),s=e.computed(()=>a.outcome==="lost");return(l,d)=>(e.openBlock(),e.createElementBlock("div",py,[e.createElementVNode("button",{onClick:d[0]||(d[0]=f=>r("won")),class:e.normalizeClass(["button_outcome-base",{"button_outcome-active-won":i.value}])},[d[3]||(d[3]=e.createElementVNode("p",null,"Ganho",-1)),(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass([{"svg_outcome-active-won":i.value},"text-white size-4"]),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"none"},d[2]||(d[2]=[e.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.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)]),2))],2),e.createElementVNode("button",{onClick:d[1]||(d[1]=f=>r("lost")),class:e.normalizeClass(["button_outcome-base",{"button_outcome-active-lost":s.value}])},[(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass([{"svg_outcome-active-lost":s.value},"text-white size-4 mt-0.8"]),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 19",fill:"none"},d[4]||(d[4]=[e.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.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)]),2)),d[5]||(d[5]=e.createElementVNode("p",null,"Perdido",-1))],2)]))}},[["__scopeId","data-v-bc25f023"]]),gy=["disabled"],yy=["onMousemove","onClick"],Wa=Ce({__name:"ratingInput",props:{modelValue:{type:Number,default:0},size:{type:Number,default:24},gap:{type:Number,default:4},onRate:{type:Function,default:null},readonly:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(t,{emit:n}){const a=t,o=n,r=e.ref(a.modelValue),i=e.ref(0);e.watch(()=>a.modelValue,u=>{r.value=u});const s=e.computed(()=>i.value||r.value);function l(u){const h=s.value-u+1;return h>=1?"100%":h>=.5?"50%":h>0?`${h*100}%`:"0%"}function d(u,h){const m=u.currentTarget.getBoundingClientRect(),p=u.offsetX<m.width/2;i.value=h-(p?.5:0)}function f(u,h){const m=u.currentTarget.getBoundingClientRect(),p=u.offsetX<m.width/2,c=h-(p?.5:0);r.value=r.value===c?0:c,o("update:modelValue",r.value),typeof a.onRate=="function"&&a.onRate(r.value)}return(u,h)=>(e.openBlock(),e.createElementBlock("main",{disabled:a.readonly,class:"flex select-none",style:e.normalizeStyle({gap:`${t.gap}px`})},[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(5,m=>e.createElementVNode("div",{key:m,class:e.normalizeClass(["relative",{"cursor-pointer":!a.readonly,"cursor-default":a.readonly}]),style:e.normalizeStyle({width:`${t.size}px`,height:`${t.size}px`}),onMousemove:p=>!a.readonly&&d(p,m),onMouseleave:h[0]||(h[0]=p=>!a.readonly&&(i.value=0)),onClick:p=>!a.readonly&&f(p,m)},[(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",class:"absolute top-0 left-0 color-disabled",style:e.normalizeStyle({width:`${t.size}px`,height:`${t.size}px`})},h[1]||(h[1]=[e.createElementVNode("path",{d:"M13.849 4.22c-.684-1.626-3.014-1.626-3.698 0L8.397 8.387l-4.552.361c-1.775.14-2.495 2.331-1.142 3.477l3.468 2.937-1.06 4.392c-.413 1.713 1.472 3.067 2.992 2.149L12 19.35l3.897 2.354c1.52.918 3.405-.436 2.992-2.15l-1.06-4.39 3.468-2.938c1.353-1.146.633-3.336-1.142-3.477l-4.552-.36-1.754-4.17Z"},null,-1)]),4)),e.createElementVNode("div",{class:e.normalizeClass(["absolute top-0 left-0 h-full overflow-hidden transition-all duration-150",{"text-primary":!i.value,"text-hover":i.value>0}]),style:e.normalizeStyle({width:l(m),height:`${t.size}px`})},[(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",style:e.normalizeStyle({width:`${t.size}px`,height:`${t.size}px`})},h[2]||(h[2]=[e.createElementVNode("path",{d:"M13.849 4.22c-.684-1.626-3.014-1.626-3.698 0L8.397 8.387l-4.552.361c-1.775.14-2.495 2.331-1.142 3.477l3.468 2.937-1.06 4.392c-.413 1.713 1.472 3.067 2.992 2.149L12 19.35l3.897 2.354c1.52.918 3.405-.436 2.992-2.15l-1.06-4.39 3.468-2.938c1.353-1.146.633-3.336-1.142-3.477l-4.552-.36-1.754-4.17Z"},null,-1)]),4))],6)],46,yy)),64))],12,gy))}},[["__scopeId","data-v-45e099b7"]]),ky={key:0,class:"header-products-list"},xy={class:"total-price-badge"},by={key:1,class:"flex items-center justify-center overflow-hidden h-full"},wy={key:2,class:"list-products-list"},Ey={key:0},vy={class:"w-full text-gray-500 list-none list-inside dark:text-gray-400 divide-y divide-base-200"},Cy={key:0,class:"department-blocked"},Sy={class:"flex gap-2 items-center pl-2"},By=["src"],Vy={key:1,class:"empty-product-photo"},My={class:"flex flex-col items-start"},Ny=["title"],Ay={class:"text-[10px] flex gap-1 items-center"},Ty={class:"text-xs font-semibold font-sans"},Dy={key:0,class:"font-sans text-primary text-white font-semibold"},Ly={class:"text-green-400 font-semibold"},Fy={class:"flex flex-col gap-1 pr-2"},$y={class:"flex gap-1"},_y=["disabled","onClick"],Py=["disabled","onClick"],Oy={key:1,class:"flex flex-col flex-1 gap-2 items-center justify-center"},Ry={key:0,class:"text-gray-200 text-[10px] md:text-xs font-sans"},Ua=Ce({__name:"listProducts",props:{modelValue:{type:Array,default:()=>[]},allProducts:{type:Object,default:()=>{}},onMouseLeave:{type:Function,required:!1},departmentBypass:{type:String,default:""}},emits:["update:modelValue"],setup(t,{emit:n}){const a=t,o=n,r=e.ref(!1),i=e.ref([]),s=e.computed(()=>[...i.value].sort((S,B)=>{const A=_(S),M=_(B);return A===M?0:A-M}));function l(S){return Array.isArray(S)?S.map(B=>B&&B.product?{product:{...B.product},quantity:B.quantity??0}:{product:{...B},quantity:B.quantity??0}):[]}const d=e.ref(l(a.modelValue)),f=e.ref(1),u=e.ref(null),h=e.ref(null),m=e.computed(()=>d.value.reduce((S,B)=>{var H;const A=((H=B.product)==null?void 0:H.price)||B.price||0,M=B.quantity||0;return S+A*M},0));function p(S){var B;return((B=S==null?void 0:S.product)==null?void 0:B.id)??(S==null?void 0:S.id)}const c=e.computed(()=>{const S={};return d.value.forEach(B=>{const A=p(B);A!=null&&(S[A]=B.quantity)}),S}),g=S=>c.value[S.id]||0,y=S=>{if(_(S))return;const B=d.value.find(A=>p(A)===S.id);B?B.quantity++:d.value.push({product:{...S},quantity:1})},b=S=>{if(_(S))return;const B=d.value.find(A=>p(A)===S.id);B&&(B.quantity>0?B.quantity--:B.quantity=0)},w=(S,B)=>{const A=new URLSearchParams,M=S;return Object.keys(B).forEach(H=>A.append(H,B[H])),`${M}?${A.toString()}`},E=async S=>{try{const{data:B}=await Ue.get(w(hs,{page:f.value,...S})),{results:A,next:M,previous:H}=B;if(u.value=M,h.value=H,f.value===1)i.value=A;else{const ie=new Set(i.value.map(fe=>fe.id)),Q=A.filter(fe=>!ie.has(fe.id));i.value=[...i.value,...Q]}u.value&&(f.value+=1)}catch(B){console.error("Erro ao buscar produtos:",B)}};e.onMounted(async()=>{var S;a.allProducts&&((S=a.allProducts.results)==null?void 0:S.length)>0?(i.value=a.allProducts.results,u.value=a.allProducts.next||null,h.value=a.allProducts.previous||null,f.value=2):(r.value=!0,await E(),r.value=!1)}),e.watch(d,S=>{o("update:modelValue",S.map(B=>({product:B.product,quantity:B.quantity})))},{deep:!0}),e.watch(()=>a.modelValue,S=>{d.value=l(S)},{deep:!0});const x=e.ref(!1),v=async S=>{if(!x.value){x.value=!0;try{if(!u.value){S.complete();return}await E(),u.value?S.loaded():S.complete()}catch(B){console.error("Erro ao carregar produtos:",B),S.complete()}finally{x.value=!1}}};function D(){typeof a.onMouseLeave=="function"&&a.onMouseLeave()}const _=S=>{const B=a.departmentBypass;if(!B)return!1;const A=Array.isArray(S==null?void 0:S.department)?S.department:[];return A.length===0?!1:!A.some(H=>H&&H.id===B)},C=e.ref({query:""}),k=e.ref(!1);let N;return e.watch(C,()=>{clearTimeout(N),N=setTimeout(async()=>{const{query:S}=C.value;f.value=1,k.value=S!=null,console.log("Buscando por:",k.value),r.value=!0,await E({query:S}),r.value=!1},500)},{deep:!0}),(S,B)=>{const A=e.resolveComponent("SimpleLoader");return e.openBlock(),e.createElementBlock("div",{class:"list-products-wrapper",onMouseleave:D},[i.value.length>0&&!k.value||k.value?(e.openBlock(),e.createElementBlock("header",ky,[e.withDirectives(e.createElementVNode("input",{class:"search-products-input",type:"text",placeholder:"Buscar...","onUpdate:modelValue":B[0]||(B[0]=M=>C.value.query=M)},null,512),[[e.vModelText,C.value.query]]),e.createElementVNode("section",xy," Valor total: "+e.toDisplayString(m.value.toLocaleString("pt-BR",{style:"currency",currency:"BRL"})),1)])):e.createCommentVNode("",!0),r.value?(e.openBlock(),e.createElementBlock("div",by,[e.createVNode(A)])):(e.openBlock(),e.createElementBlock("main",wy,[i.value.length>0?(e.openBlock(),e.createElementBlock("div",Ey,[e.createElementVNode("ul",vy,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value,(M,H)=>(e.openBlock(),e.createElementBlock("li",{class:"flex w-full justify-between items-center py-1.5 relative",key:M.id},[_(M)?(e.openBlock(),e.createElementBlock("span",Cy,B[1]||(B[1]=[e.createElementVNode("svg",{class:"size-5 text-white","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"currentColor",viewBox:"0 0 24 24"},[e.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.createElementVNode("p",{class:"text-xs text-white/80"}," Este produto não faz parte do seu departamento ",-1)]))):e.createCommentVNode("",!0),e.createElementVNode("div",Sy,[e.createElementVNode("section",null,[M.photo?(e.openBlock(),e.createElementBlock("img",{key:0,class:"size-8 rounded-md",src:M.photo},null,8,By)):(e.openBlock(),e.createElementBlock("div",Vy,B[2]||(B[2]=[e.createElementVNode("svg",{class:"size-4","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},[e.createElementVNode("path",{fill:"currentColor",d:"M4 19v2c0 .5523.44772 1 1 1h14c.5523 0 1-.4477 1-1v-2H4Z"}),e.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-1V3Zm1.01 8H8.00002v2.01H10.01V11Zm.99 0h2.01v2.01H11V11Zm5.01 0H14v2.01h2.01V11Zm-8.00998 3H10.01v2.01H8.00002V14ZM13.01 14H11v2.01h2.01V14Zm.99 0h2.01v2.01H14V14ZM11 4h6v1h-6V4Z","clip-rule":"evenodd"})],-1)])))]),e.createElementVNode("section",My,[e.createElementVNode("p",{title:M.name,class:e.normalizeClass(["label-product-name",g(M)>0?"text-white":""])},e.toDisplayString(M.name),11,Ny),e.createElementVNode("span",Ay,[e.createElementVNode("p",Ty," R$ "+e.toDisplayString(M.price.toLocaleString("pt-BR",{style:"currency",currency:"BRL"})),1),g(M)>0?(e.openBlock(),e.createElementBlock("p",Dy,[e.createTextVNode(" - x "+e.toDisplayString(g(M))+" = ",1),e.createElementVNode("a",Ly,e.toDisplayString((M.price*g(M)).toLocaleString("pt-BR",{style:"currency",currency:"BRL"})),1)])):e.createCommentVNode("",!0)])])]),e.createElementVNode("section",Fy,[e.createElementVNode("p",{class:e.normalizeClass(["text-xs font-semibold font-sans products-and-services_badge",M.recurrence])},e.toDisplayString(M.recurrence==="monthly"?"Mensal":"Único"),3),e.createElementVNode("div",$y,[e.createElementVNode("button",{disabled:_(M),class:"action-list-button",onClick:ie=>b(M)}," - ",8,_y),e.createElementVNode("p",{class:e.normalizeClass(["w-5 text-xs flex items-center justify-center font-semibold font-sans",g(M)>0?"text-white":""])},e.toDisplayString(g(M)),3),e.createElementVNode("button",{disabled:_(M),class:"action-list-button",onClick:ie=>y(M)}," + ",8,Py)])])]))),128))]),u.value?(e.openBlock(),e.createBlock(e.unref(Ht),{key:0,onInfinite:v,class:"p-3 bg-base-300"},{spinner:e.withCtx(()=>B[3]||(B[3]=[e.createElementVNode("section",{class:"w-full justify-center items-center flex"},[e.createElementVNode("div",{class:"size-4 animate-spin rounded-full border-4 border-solid border-white border-t-transparent"})],-1)])),_:1})):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),!r.value&&i.value.length<=0?(e.openBlock(),e.createElementBlock("section",Oy,[B[5]||(B[5]=e.createElementVNode("p",{class:"text-gray-200 text-xs md:text-base font-sans"}," Nenhum item encontrado ",-1)),k.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("p",Ry,B[4]||(B[4]=[e.createTextVNode(" Comece criando seu primeiro na aba "),e.createElementVNode("strong",null,"Produtos",-1)])))])):e.createCommentVNode("",!0)]))],32)}}},[["__scopeId","data-v-5833829e"]]),Hy={},zy={class:"flex items-center justify-center h-full"};function jy(t,n){return e.openBlock(),e.createElementBlock("div",zy,n[0]||(n[0]=[e.createElementVNode("span",{class:"products-and-services_bar"},null,-1),e.createElementVNode("span",{class:"products-and-services_bar"},null,-1),e.createElementVNode("span",{class:"products-and-services_bar"},null,-1)]))}const Za=Ce(Hy,[["render",jy],["__scopeId","data-v-7f621883"]]),Gy={key:0,class:"flex items-center justify-center overflow-hidden h-full"},qy={key:1},Iy={class:"flex flex-col gap-2 p-2"},Wy=["id","onUpdate:modelValue"],Uy=["for","title"],Zy=["id","onUpdate:modelValue"],Yy=["id","onUpdate:modelValue"],Xy={key:2,class:"flex-1 justify-center items-center flex flex-col gap-2 h-full"},Ky=Ce({__name:"listSegmentationsFields",props:{modelValue:{type:Array,default:()=>[]}},emits:["update:modelValue"],setup(t,{emit:n}){const a=t,o=n,r=e.ref(s(a.modelValue)),i=e.ref(!1);function s(d){return JSON.parse(JSON.stringify(d))}const l=async()=>{try{i.value=!0;const d=await Ue.get(gs);r.value=d.data}catch(d){console.error("Error fetching segmentation fields:",d)}finally{i.value=!1}};return e.onMounted(()=>{a.modelValue.length===0&&l(),r.value.forEach(d=>{d.type==="bool"&&(d.content=d.content==="True")})}),e.watch(r,d=>{JSON.stringify(d)!==JSON.stringify(a.modelValue)&&o("update:modelValue",s(d))},{deep:!0}),(d,f)=>{const u=e.resolveComponent("SimpleSelect");return i.value?(e.openBlock(),e.createElementBlock("div",Gy,[e.createVNode(Za)])):r.value.length>0?(e.openBlock(),e.createElementBlock("div",qy,[f[0]||(f[0]=e.createElementVNode("header",{style:{"z-index":"9999"},class:"header-segmentation-fields"},[e.createElementVNode("p",{class:"text-xs font-semibold"},"Campos Personalizados")],-1)),e.createElementVNode("div",Iy,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.value,h=>(e.openBlock(),e.createElementBlock("section",{key:h.id},[e.createElementVNode("div",{class:e.normalizeClass(["flex w-full gap-1.5 rounded-md",h.type==="bool"?"flex-row items-center":"flex-col items-start"])},[h.type==="bool"?e.withDirectives((e.openBlock(),e.createElementBlock("input",{key:0,id:"seg-label-"+h.id,class:"checkbox size-4 rounded-sm",type:"checkbox","onUpdate:modelValue":m=>h.content=m},null,8,Wy)),[[e.vModelCheckbox,h.content]]):e.createCommentVNode("",!0),e.createElementVNode("label",{for:"seg-label-"+h.id,class:"text-xs text-[12px] font-sans font-semibold",title:h.type==="string"?"texto":h.type==="bool"?"verdadeiro/falso":h.type==="float"?"número":h.type==="list"?"lista":"Desconhecido"},e.toDisplayString(h.name),9,Uy),h.type==="string"?e.withDirectives((e.openBlock(),e.createElementBlock("textarea",{key:1,id:"seg-label-"+h.id,placeholder:"campo do tipo texto",class:"input_field",type:"text","onUpdate:modelValue":m=>h.content=m},null,8,Zy)),[[e.vModelText,h.content]]):e.createCommentVNode("",!0),h.type==="float"?e.withDirectives((e.openBlock(),e.createElementBlock("input",{key:2,id:"seg-label-"+h.id,placeholder:"campo do tipo número",class:"input_field",type:"number","onUpdate:modelValue":m=>h.content=m},null,8,Yy)),[[e.vModelText,h.content]]):e.createCommentVNode("",!0),h.type==="list"?(e.openBlock(),e.createBlock(u,{key:3,modelValue:h.content,"onUpdate:modelValue":m=>h.content=m,options:h.additional_info.list.options.map(m=>({value:m,name:m})),placeholder:"Selecione uma opção",theme:"bg-base-300 border-base-100 text-white","teleport-to":"body"},null,8,["modelValue","onUpdate:modelValue","options"])):e.createCommentVNode("",!0)],2)]))),128))])])):(e.openBlock(),e.createElementBlock("section",Xy,f[1]||(f[1]=[e.createElementVNode("p",{class:"text-gray-200 text-xs md:text-base font-sans"}," Nenhum item encontrado ",-1),e.createElementVNode("p",{class:"text-gray-200 text-[10px] md:text-xs font-sans"},[e.createTextVNode(" Comece criando seu primeiro na aba "),e.createElementVNode("strong",null,"Campos Personalizados")],-1)])))}}},[["__scopeId","data-v-411033e7"]]),Qy={class:"modal-form-head"},Jy={class:"modal_responsive"},ek={style:{"min-height":"100%"},class:"flex min-h-full items-center justify-center text-center"},tk={class:"modal-form-container"},nk={class:"flex justify-between p-2.5 rounded-t-2xl bg-base-300 items-center text-current"},ak={class:"flex items-center gap-2"},ok={class:"flex flex-col items-start"},rk={class:"text-lg font-semibold"},ik={key:0,class:"text-xs text-gray-400"},sk={class:"flex gap-2 items-center"},lk={class:"grid grid-cols-2 h-full min-h-0"},ck={class:"flex flex-col h-full min-h-0 px-1 py-2"},dk={title:"Não é possível alterar a foto do cliente neste momento",class:"flex items-center justify-center w-full"},uk=["src"],mk={key:1,class:"bg-base-300 p-2 rounded-xl size-24 flex items-center justify-center border border-base-100 cursor-not-allowed"},fk={class:"flex flex-col gap-1.5 w-full h-full overflow-y-auto overflow-x-hidden"},hk={class:"w-full"},pk={class:"flex flex-col gap-2 w-full"},gk={class:"flex items-center justify-between px-1"},yk={key:0,class:"flex flex-1 min-h-0 flex-col gap-2"},kk={class:"flex items-center justify-between px-1"},xk={class:"w-full h-full bg-base-300 rounded-lg flex flex-col min-h-0"},bk={class:"bg-base-300 rounded-l-md px-0.5 py-1 flex flex-col h-full min-h-0 overflow-hidden"},wk={key:0,class:"flex gap-1 px-1.5"},Ek=["disabled"],vk={class:"flex w-full relative"},Ck={key:0,class:"text-xs absolute z-50 -bottom-2 left-1 bg-base-300 px-2 py-0.5 rounded-lg text-red-500 select-none shadow-sm shadow-base-100"},Sk={class:"flex-1 min-h-0 overflow-y-auto bg-base-200 rounded-md border border-white/10 shadow-sm transition-shadow duration-200 hover:shadow-md"},Bk={class:"flex-1 min-h-0 overflow-y-auto"},Vk={class:"modal_end_button"},Mk=["disabled"],Nk={key:0,class:"size-4 animate-spin rounded-full border-4 border-solid text-white border-t-transparent"},Ak={key:1,class:"text-xs font-semibold"},U1=Ce({__name:"clientsForm",props:{form:{type:Object,default:()=>({tags:[],country:"BR",name:"",photo:null,raw_telephone:"",telephone:"",whatsapp_id:"",whatsapp_jid:"",whatsapp_lid:null,rating:null,outcome:null,created_at:"",updated_at:"",client:"",products:[],notes:""})},save:{type:Function,default:()=>{}},hasCrmPlus:{type:Boolean,default:!1},allProducts:{type:Object,default:()=>{}},allTags:{type:Object,default:()=>{}}},emits:["close","save"],setup(t,{emit:n}){const a=n,o=e.ref("data"),r=t,i=e.reactive({...r.form}),s=e.ref(!1),l=e.ref(!1),d=e.ref([{title:"Nome",info:!1,type:"text",placeholder:"Digite o nome do contato",empty:e.computed(()=>l.value?l.value.some(p=>p.startsWith("name")):!1),data:e.computed({get:()=>i.name,set:p=>i.name=p})},{title:"Descrição",info:"Descreva o produto para facilitar a identificação",type:"textArea",placeholder:"Automatize fluxos de trabalho com integração rápida e segura entre sistemas.",empty:!1,data:e.computed({get:()=>i.notes,set:p=>i.notes=p})}]),f=e.computed(()=>r.form.mode==="edit"?"Editar cliente":"Adicionar Novo Cliente"),u=p=>{var g,y;const c=[];return(g=p.name)!=null&&g.trim()||c.push("name"),(y=p.telephone)!=null&&y.trim()||c.push("telephone"),c},h=e.computed(()=>l.value?l.value.some(p=>p.startsWith("telephone")):!1),m=async()=>{try{if(s.value=!0,l.value=u(i),l.value.length>0)return;await r.save(i)}catch(p){console.error(p)}finally{s.value=!1}};return e.watch(()=>r.form,p=>{Object.assign(i,e.toRaw(p))},{deep:!0,immediate:!0}),(p,c)=>{var b,w,E;const g=e.resolveComponent("Popper"),y=e.resolveComponent("vue-tel-input");return e.openBlock(),e.createElementBlock("div",Qy,[c[24]||(c[24]=e.createElementVNode("div",{class:"modal-form-background"},null,-1)),e.createElementVNode("div",Jy,[e.createElementVNode("div",ek,[e.createElementVNode("div",tk,[e.createElementVNode("div",{class:e.normalizeClass([{noCrmPlus:!t.hasCrmPlus},"clients-form-background relative rounded-2xl bg-base-200 backdrop-blur-lg"])},[e.createElementVNode("div",nk,[e.createElementVNode("span",ak,[c[14]||(c[14]=e.createElementVNode("svg",{class:"size-6 text-green-500","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"currentColor",viewBox:"0 0 24 24"},[e.createElementVNode("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"})],-1)),e.createElementVNode("span",ok,[e.createElementVNode("p",rk,e.toDisplayString(f.value),1),i.id?(e.openBlock(),e.createElementBlock("p",ik," ID: "+e.toDisplayString(i.id),1)):e.createCommentVNode("",!0)])]),e.createElementVNode("section",sk,[e.createElementVNode("button",{class:"bg-base-200 p-1.5 rounded-md hover:bg-base-200/70 transition",onClick:c[0]||(c[0]=x=>a("close"))},c[15]||(c[15]=[e.createElementVNode("svg",{class:"size-4 text-white","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},[e.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.createElementVNode("div",lk,[e.createElementVNode("section",ck,[e.createElementVNode("div",{class:e.normalizeClass([t.hasCrmPlus?"justify-between":"justify-center","flex flex-col gap-2 items-center"])},[t.hasCrmPlus?(e.openBlock(),e.createBlock(Ia,{key:0,outcome:i.outcome,"onUpdate:outcome":c[1]||(c[1]=x=>i.outcome=x)},null,8,["outcome"])):e.createCommentVNode("",!0),e.createElementVNode("div",dk,[i.photo?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:c[2]||(c[2]=x=>p.viewSingleImage(i.photo))},[e.createElementVNode("img",{src:i.photo,alt:"",class:"size-24 object-cover rounded-md cursor-not-allowed"},null,8,uk)])):(e.openBlock(),e.createElementBlock("span",mk,c[16]||(c[16]=[e.createElementVNode("svg",{class:"size-14","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"currentColor",viewBox:"0 0 24 24"},[e.createElementVNode("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"})],-1)])))]),t.hasCrmPlus?(e.openBlock(),e.createBlock(Wa,{key:1,modelValue:i.rating,"onUpdate:modelValue":c[3]||(c[3]=x=>i.rating=x)},null,8,["modelValue"])):e.createCommentVNode("",!0)],2),e.createElementVNode("div",fk,[e.createElementVNode("div",hk,[e.createVNode(qa,{"onUpdate:content":c[4]||(c[4]=x=>d.value[0].data=x.data),content:d.value[0]},null,8,["content"])]),e.createElementVNode("div",pk,[e.createElementVNode("header",gk,[c[18]||(c[18]=e.createElementVNode("p",{class:"text-xs font-medium text-left"}," Escolha suas etiquetas ",-1)),e.createVNode(g,{hover:"",content:"Etiquetas que estão atribuídas ao cliente",placement:"top",arrow:""},{default:e.withCtx(()=>c[17]||(c[17]=[e.createElementVNode("svg",{class:"size-4 text-white",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24"},[e.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M2 12C2 6.477 6.477 2 12 2s10 4.477 10 10-4.477 10-10 10S2 17.523 2 12Zm9.408-5.5a1 1 0 1 0 0 2h.01a1 1 0 1 0 0-2h-.01ZM10 10a1 1 0 1 0 0 2h1v3h-1a1 1 0 1 0 0 2h4a1 1 0 1 0 0-2h-1v-4a1 1 0 0 0-1-1h-2Z"})],-1)])),_:1,__:[17]})]),e.createVNode(Ga,{teleportTo:"body",maxHeight:"10rem",allTags:t.allTags,modelValue:i.tags,"onUpdate:modelValue":c[5]||(c[5]=x=>i.tags=x)},null,8,["allTags","modelValue"])]),t.hasCrmPlus?(e.openBlock(),e.createElementBlock("div",yk,[e.createElementVNode("header",kk,[c[20]||(c[20]=e.createElementVNode("p",{class:"text-xs font-medium text-left"}," Anotações sobre o cliente ",-1)),e.createVNode(g,{hover:"",content:"Anotações adicionais sobre o cliente",placement:"top",arrow:""},{default:e.withCtx(()=>c[19]||(c[19]=[e.createElementVNode("svg",{class:"size-4 text-white",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24"},[e.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M2 12C2 6.477 6.477 2 12 2s10 4.477 10 10-4.477 10-10 10S2 17.523 2 12Zm9.408-5.5a1 1 0 1 0 0 2h.01a1 1 0 1 0 0-2h-.01ZM10 10a1 1 0 1 0 0 2h1v3h-1a1 1 0 1 0 0 2h4a1 1 0 1 0 0-2h-1v-4a1 1 0 0 0-1-1h-2Z"})],-1)])),_:1,__:[19]})]),e.createElementVNode("div",xk,[e.withDirectives(e.createElementVNode("textarea",{class:"form-text-area flex-1 h-full min-h-0","onUpdate:modelValue":c[6]||(c[6]=x=>i.notes=x),maxlength:"1000","aria-label":"Anotações do cliente"},null,512),[[e.vModelText,i.notes]]),e.createElementVNode("div",{class:e.normalizeClass(["text-[10px] bg-base-300 px-1 rounded-md text-right mb-1 mr-1",((b=i.notes)==null?void 0:b.length)>900?"text-red-500":((w=i.notes)==null?void 0:w.length)>700?"text-yellow-500":"text-gray-400"])},e.toDisplayString(((E=i.notes)==null?void 0:E.length)||0)+"/1000 ",3)])])):e.createCommentVNode("",!0)])]),e.createElementVNode("section",bk,[t.hasCrmPlus?(e.openBlock(),e.createElementBlock("div",wk,[e.createElementVNode("button",{class:e.normalizeClass(["toggle-page-button",{selected:o.value==="data"}]),onClick:c[7]||(c[7]=x=>o.value="data")}," Informações ",2),e.createElementVNode("button",{class:e.normalizeClass(["toggle-page-button",{selected:o.value==="products"}]),disabled:!t.hasCrmPlus,onClick:c[8]||(c[8]=x=>o.value="products")},c[21]||(c[21]=[e.createElementVNode("p",null,"Produtos",-1)]),10,Ek)])):e.createCommentVNode("",!0),e.withDirectives(e.createElementVNode("div",{class:e.normalizeClass([t.hasCrmPlus?"pt-1.5":"pt-0","flex flex-col gap-2 flex-1 min-h-0 px-1.5 overflow-hidden"])},[e.createElementVNode("div",{class:e.normalizeClass([h.value&&!i.telephone?"border-red-500":"border-white/10","rounded-md bg-base-200 border shadow-sm transition-shadow duration-200 hover:shadow-md"])},[c[23]||(c[23]=e.createElementVNode("h1",{class:"text-start w-full items-center justify-between flex p-2"},[e.createElementVNode("p",{class:"text-xs font-semibold"},"Contatos")],-1)),e.createElementVNode("div",vk,[c[22]||(c[22]=e.createElementVNode("span",{style:{"border-bottom-left-radius":"0.4rem"},class:"bg-base-300 rounded-bl-lg rounded-t-none flex justify-center items-center w-8"},[e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",class:"size-4 text-gray-500 ml-1.5",viewBox:"0 0 17 17"},[e.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)),e.createVNode(y,{class:"z-40 w-full",onCountryChanged:c[9]||(c[9]=x=>i.country=x.iso2),mode:"national",validCharactersOnly:!0,defaultCountry:i.country,inputOptions:{placeholder:"Coloque seu telefone",showDialCode:!1,required:!0,searchBoxPlaceholder:"Brazil"},dropdownOptions:{showSearchBox:!0,showFlags:!0,searchBoxPlaceholder:"Brazil"},modelValue:i.telephone,"onUpdate:modelValue":c[10]||(c[10]=x=>i.telephone=x)},null,8,["defaultCountry","modelValue"]),h.value&&!i.telephone?(e.openBlock(),e.createElementBlock("span",Ck," Campo obrigatorio ")):e.createCommentVNode("",!0)])],2),e.createElementVNode("div",Sk,[e.createVNode(Ky,{modelValue:i.segmentation_fields,"onUpdate:modelValue":c[11]||(c[11]=x=>i.segmentation_fields=x)},null,8,["modelValue"])])],2),[[e.vShow,o.value==="data"]]),e.withDirectives(e.createElementVNode("div",Bk,[e.createVNode(Ua,{allProducts:t.allProducts,modelValue:i.products,"onUpdate:modelValue":c[12]||(c[12]=x=>i.products=x)},null,8,["allProducts","modelValue"])],512),[[e.vShow,o.value==="products"]])])]),e.createElementVNode("div",Vk,[e.createElementVNode("button",{disabled:s.value,class:"bg-green-500 py-2 px-4 rounded-lg text-sm font-medium hover:bg-green-500/80 transition-colors flex gap-2 items-center justify-center min-w-32",onClick:c[13]||(c[13]=x=>m())},[s.value?(e.openBlock(),e.createElementBlock("div",Nk)):(e.openBlock(),e.createElementBlock("p",Ak,"Salvar"))],8,Mk)])],2)])])])])}}},[["__scopeId","data-v-ec9b7264"]]),Tk={class:"flex justify-center items-center"},Dk={class:"text-[8px] font-bold"},Lk={class:"tag-view-popper-content-text"},Fk={class:"flex"},$k={class:"svg-list-tag","aria-hidden":"true",viewBox:"0 0 25 100",style:{color:"#d1d5db"}},_k={style:{backgroundColor:"#d1d5db"},class:"w-full ml-[-0.5rem] rounded-r-md inline-flex items-center justify-center p-0.5 border-b-2 border-gray-900"},Pk={class:"text-[8px] text-black font-bold"},Ok={class:"max-h-64 overflow-y-auto hide-scrollbar"},Rk={class:"flex flex-col gap-2"},Hk={class:"tag-view-popper-content-text"},zk={key:1},Z1=Ce({__name:"tagView",props:{clients:{type:Object,required:!0}},setup(t){const n=t;return e.computed(()=>{var a,o;return((o=(a=n.clients)==null?void 0:a.tags)==null?void 0:o.slice(0,4))||[]}),(a,o)=>{const r=e.resolveComponent("Popper");return e.openBlock(),e.createElementBlock("section",Tk,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.clients.tags.slice(0,4),(i,s)=>(e.openBlock(),e.createBlock(r,{class:"tag-view-theme",arrow:"",hover:"",key:s},{content:e.withCtx(()=>[e.createElementVNode("p",Lk,e.toDisplayString(i.name),1)]),default:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass(["flex",e.unref(cn)(i.color)])},[(e.openBlock(),e.createElementBlock("svg",{class:"svg-list-tag","aria-hidden":"true",viewBox:"0 0 30 100",style:e.normalizeStyle({color:i.color||"#fff"})},o[0]||(o[0]=[e.createElementVNode("path",{d:"M49.9,0a17.1,17.1,0,0,0-12,5L5,37.9A17,17,0,0,0,5,62L37.9,94.9a17.1,17.1,0,0,0,12,5ZM25.4,59.4a9.5,9.5,0,1,1,9.5-9.5A9.5,9.5,0,0,1,25.4,59.4Z",fill:"currentColor"},null,-1)]),4)),e.createElementVNode("span",{style:e.normalizeStyle({backgroundColor:i.color||"#fff"}),class:"w-full ml-[-0.10rem] rounded-r-md inline-flex items-center justify-center px-1 py-0.5 border-b-2 border-gray-900"},[e.createElementVNode("p",Dk,e.toDisplayString(i.name.charAt(0).toUpperCase()),1)],4)],2)]),_:2},1024))),128)),t.clients.tags.length>4?(e.openBlock(),e.createBlock(r,{key:0,arrow:"",hover:"",class:"tag-view-theme"},{content:e.withCtx(()=>[e.createElementVNode("section",Ok,[e.createElementVNode("div",Rk,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.clients.tags,i=>(e.openBlock(),e.createElementBlock("div",{key:i.id||i.name,class:"relative inline-flex items-center rounded-md overflow-hidden"},[(e.openBlock(),e.createElementBlock("svg",{class:"size-6","aria-hidden":"true",viewBox:"0 0 75 100",style:e.normalizeStyle({color:i.color||"#fff"})},o[2]||(o[2]=[e.createElementVNode("path",{d:"M49.9,0a17.1,17.1,0,0,0-12,5L5,37.9A17,17,0,0,0,5,62L37.9,94.9a17.1,17.1,0,0,0,12,5ZM25.4,59.4a9.5,9.5,0,1,1,9.5-9.5A9.5,9.5,0,0,1,25.4,59.4Z",fill:"currentColor"},null,-1)]),4)),e.createElementVNode("span",{class:e.normalizeClass(["p-0.5 w-full text-sm font-semibold truncate text-start -ml-2",e.unref(cn)(i.color)]),style:e.normalizeStyle(["max-width: 12rem",{background:i.color||"#fff"}])},[e.createElementVNode("p",Hk,e.toDisplayString(i.name),1)],6)]))),128))])])]),default:e.withCtx(()=>[e.createElementVNode("div",Fk,[(e.openBlock(),e.createElementBlock("svg",$k,o[1]||(o[1]=[e.createElementVNode("path",{d:"M49.9,0a17.1,17.1,0,0,0-12,5L5,37.9A17,17,0,0,0,5,62L37.9,94.9a17.1,17.1,0,0,0,12,5ZM25.4,59.4a9.5,9.5,0,1,1,9.5-9.5A9.5,9.5,0,0,1,25.4,59.4Z",fill:"currentColor"},null,-1)]))),e.createElementVNode("span",_k,[e.createElementVNode("p",Pk," +"+e.toDisplayString(t.clients.tags.length-4),1)])])]),_:1})):e.createCommentVNode("",!0),!t.clients.tags||t.clients.tags.length===0?(e.openBlock(),e.createElementBlock("span",zk,"-")):e.createCommentVNode("",!0)])}}},[["__scopeId","data-v-8b61820e"]]),Y1=Ce({__name:"floating-dev",setup(t){const n=e.ref(!1),a=e.ref({x:30,y:30}),o=e.ref({x:0,y:0}),r=e.ref(!1),i=e.ref(null),s=e.ref(null),l=e.ref({vertical:"bottom",horizontal:"right"}),d=e.computed(()=>({position:"fixed",left:`${a.value.x}px`,top:`${a.value.y}px`,zIndex:1e3,cursor:r.value?"grabbing":"grab"})),f=e.computed(()=>{const g={position:"absolute",background:"#fff",borderRadius:"10px",boxShadow:"0 4px 15px rgba(0, 0, 0, 0.2)",width:"280px",maxWidth:"90vw",zIndex:1001};return l.value.vertical==="top"?g.bottom="60px":g.top="60px",l.value.horizontal==="left"?g.right="0":g.left="0",g});async function u(){if(n.value){n.value=!1;return}n.value=!0,await e.nextTick(),h()}function h(){if(!i.value||!s.value)return;const g=i.value.getBoundingClientRect(),y=s.value.offsetWidth,b=s.value.offsetHeight,w={top:g.top,bottom:window.innerHeight-(g.top+g.height),left:g.left,right:window.innerWidth-(g.left+g.width)};l.value.vertical=w.bottom<b&&w.top>b?"top":"bottom",l.value.horizontal=w.right<y&&w.left>y?"left":"right"}function m(g){r.value=!0;const y=g.type.includes("touch")?g.touches[0]:g;o.value={x:y.clientX-a.value.x,y:y.clientY-a.value.y},document.addEventListener("mousemove",p),document.addEventListener("mouseup",c),document.addEventListener("touchmove",p),document.addEventListener("touchend",c)}function p(g){if(!r.value)return;const y=g.type.includes("touch")?g.touches[0]:g,b=y.clientX-o.value.x,w=y.clientY-o.value.y,E=window.innerWidth-i.value.offsetWidth,x=window.innerHeight-i.value.offsetHeight;a.value.x=Math.min(Math.max(0,b),E),a.value.y=Math.min(Math.max(0,w),x)}function c(){r.value=!1,document.removeEventListener("mousemove",p),document.removeEventListener("mouseup",c),document.removeEventListener("touchmove",p),document.removeEventListener("touchend",c)}return e.onBeforeUnmount(c),(g,y)=>(e.openBlock(),e.createElementBlock("div",{class:"floating-widget",style:e.normalizeStyle(d.value),ref_key:"widgetRef",ref:i,onMousedown:m,onTouchstart:m},[e.createElementVNode("button",{class:"floating-button",onClick:e.withModifiers(u,["stop"]),"aria-label":"Abrir painel flutuante"},y[0]||(y[0]=[e.createElementVNode("svg",{class:"floating-button-svg",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},[e.createElementVNode("path",{d:"M370 378c28.89 23.52 46 46.07 46 86M142 378c-28.89 23.52-46 46.06-46 86M384 208c28.89-23.52 32-56.07 32-96M128 206c-28.89-23.52-32-54.06-32-94M464 288.13h-80M128 288.13H48M256 192v256",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"}),e.createElementVNode("path",{d:"M256 448h0c-70.4 0-128-57.6-128-128v-96.07c0-65.07 57.6-96 128-96h0c70.4 0 128 25.6 128 96V320c0 70.4-57.6 128-128 128z",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"}),e.createElementVNode("path",{d:"M179.43 143.52a49.08 49.08 0 01-3.43-15.73A80 80 0 01255.79 48h.42A80 80 0 01336 127.79a41.91 41.91 0 01-3.12 14.3",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"})],-1)])),e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>[n.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"floating-panel",ref_key:"panelRef",ref:s,style:e.normalizeStyle(f.value)},[e.renderSlot(g.$slots,"default",{},()=>[y[1]||(y[1]=e.createElementVNode("p",{style:{"text-align":"center","font-size":"0.9rem"}}," Adicione seu conteúdo aqui 👇 ",-1))],!0)],4)):e.createCommentVNode("",!0)]),_:3})],36))}},[["__scopeId","data-v-9a761c09"]]);Vt.defineStore("debug",{state:()=>({message:"Debug store initialized"}),actions:{logMessage(){console.log(this.message)}}});const jk={class:"audio-player hover:bg-base-100"},Gk=["disabled"],qk={class:"audio-player-info"},Ik={class:"audio-progress-container"},Wk=["max","value","disabled"],Uk={class:"audio-duration"},Zk={key:0,class:"align-middle"},Yk=["src"],Xk=Ce({__name:"AudioPlayer",props:{src:{type:String,required:!0},label:{type:String,required:!0},type:{type:String,required:!0,validator:t=>["client","attendant","general"].includes(t)},activeSrc:{type:String,required:!1}},emits:["play-start","play-pause"],setup(t,{emit:n}){const a=n,o=t,r=e.ref(null),i=e.ref(!1),s=e.ref(0),l=e.ref(0),d=e.ref(!1),f=e.ref(!1);function u(){if(r.value)if(i.value)r.value.pause(),i.value=!1,k();else{if(C(),!r.value)return;f.value=!0;const N=r.value.play();N&&typeof N.then=="function"?N.then(()=>{f.value=!1,i.value=!0}).catch(S=>{console.error("Audio play failed:",S),f.value=!1,i.value=!1}):(f.value=!1,i.value=!0)}}function h(N){r.value&&(r.value.currentTime=N.target.value)}function m(){r.value&&(l.value=r.value.duration||0)}function p(){d.value=!0}function c(){d.value=!1}function g(){f.value=!1,i.value=!0}function y(){f.value=!0}function b(N){console.error("Audio error:",N),d.value=!1,f.value=!1,i.value=!1}function w(){r.value&&(s.value=r.value.currentTime)}function E(){i.value=!1,s.value=0,k()}function x(){window.open(o.src,"_blank")}function v(N){if(!N||isNaN(N))return"0:00";const S=Math.floor(N/60),B=Math.floor(N%60);return`${S}:${B.toString().padStart(2,"0")}`}function D(){switch(o.type){case"client":return"#22d3ee";case"attendant":return"#14b8a6";case"general":return"#0ea5e9";default:return"#9ca3af"}}function _(){return{backgroundColor:`${D()}20`,color:D()}}function C(){a("play-start",o.src)}function k(){a("play-pause",o.src)}return e.watch(()=>o.activeSrc,N=>{N&&N!==o.src&&i.value&&r.value&&(r.value.pause(),i.value=!1)}),e.onUnmounted(()=>{r.value&&(r.value.pause(),r.value.src="")}),(N,S)=>(e.openBlock(),e.createElementBlock("div",jk,[e.createElementVNode("button",{onClick:e.withModifiers(u,["stop"]),class:"audio-play-btn hover:bg-base-100",title:"Reproduzir",disabled:d.value||f.value,style:e.normalizeStyle(_())},[d.value||f.value?(e.openBlock(),e.createElementBlock("svg",{key:0,class:"audio-play-spinner",style:e.normalizeStyle({color:D()}),xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},S[0]||(S[0]=[e.createElementVNode("circle",{cx:"12",cy:"12",r:"10","stroke-width":"4","stroke-opacity":"0.2"},null,-1),e.createElementVNode("path",{d:"M4 12a8 8 0 018-8","stroke-width":"4","stroke-linecap":"round"},null,-1)]),4)):i.value?(e.openBlock(),e.createElementBlock("svg",{key:2,style:e.normalizeStyle({color:D()}),xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24"},S[2]||(S[2]=[e.createElementVNode("path",{d:"M6 4h4v16H6V4zm8 0h4v16h-4V4z"},null,-1)]),4)):(e.openBlock(),e.createElementBlock("svg",{key:1,style:e.normalizeStyle({color:D()}),xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24"},S[1]||(S[1]=[e.createElementVNode("path",{d:"M8 5v14l11-7z"},null,-1)]),4))],12,Gk),e.createElementVNode("div",qk,[e.createElementVNode("div",{class:"audio-player-title",style:e.normalizeStyle({color:D()})},e.toDisplayString(t.label),5),e.createElementVNode("div",Ik,[e.createElementVNode("div",{class:"audio-progress-track",style:e.normalizeStyle({backgroundColor:`${D()}20`})},[e.createElementVNode("div",{class:"audio-progress-fill",style:e.normalizeStyle({width:l.value>0?`${s.value/l.value*100}%`:"0%",backgroundColor:D()})},null,4),e.createElementVNode("input",{type:"range",class:"audio-progress-input",min:"0",max:l.value,value:s.value,onInput:e.withModifiers(h,["stop"]),disabled:d.value||f.value},null,40,Wk)],4)])]),e.createElementVNode("span",Uk,[d.value||f.value?(e.openBlock(),e.createElementBlock("span",Zk,"-- : --")):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(v(s.value))+" : "+e.toDisplayString(v(l.value)),1)],64))]),e.createElementVNode("button",{onClick:e.withModifiers(x,["stop"]),class:"audio-download-btn hover:bg-primary_alt",title:"Baixar"},[(e.openBlock(),e.createElementBlock("svg",{style:e.normalizeStyle({color:D()}),xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2"},S[3]||(S[3]=[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4"},null,-1)]),4))]),e.createElementVNode("audio",{ref_key:"audioElement",ref:r,src:t.src,onLoadstart:p,onLoadedmetadata:m,onCanplay:c,onPlaying:g,onWaiting:y,onTimeupdate:w,onEnded:E,onError:b,preload:"metadata"},null,40,Yk)]))}},[["__scopeId","data-v-58b0ee0a"]]),Kk=Ce({__name:"CallRecordPlayer",props:{recordMetadata:{type:Object,required:!0}},emits:["close"],setup(t){const n=e.ref(null);function a(r){n.value=r}function o(r){n.value===r&&(n.value=null)}return(r,i)=>{var s,l;return e.openBlock(),e.createElementBlock("div",{onClick:e.withModifiers(d=>null,["stop"]),class:"call-record-player bg-base-200"},[(l=(s=t.recordMetadata)==null?void 0:s.urls)!=null&&l.general?(e.openBlock(),e.createBlock(Xk,{key:0,src:t.recordMetadata.urls.general,label:"Conversa",type:"general","active-src":n.value,onPlayStart:a,onPlayPause:o},null,8,["src","active-src"])):e.createCommentVNode("",!0)])}}},[["__scopeId","data-v-b2bf056b"]]),Qk={class:"call-history-container"},Jk={key:0,class:"call-history-loading"},ex={key:1,class:"call-history-error"},tx={key:2,class:"call-history-empty"},nx={key:3,class:"call-history-list"},ax=["onClick"],ox={class:"call-card-header"},rx={class:"call-card-header-left"},ix={class:"call-card-content"},sx={class:"call-card-title"},lx={class:"opacity-70"},cx={class:"call-card-actions"},dx=["onClick"],ux=["onClick"],mx=["onClick"],fx={key:0,class:"call-card-expanded"},hx={class:"call-events"},px={class:"call-event-left"},gx={class:"call-event-time"},X1=Ce({__name:"CallHistory",props:{chatId:{type:[String,Number],required:!0},callsApiUrl:{type:String,required:!1,default:ys},onMessageClick:{type:Function,required:!1,default:null}},setup(t){const n=t,a=e.ref(!1),o=e.ref(null),r=e.ref([]),i=e.ref({}),s=e.ref([]);e.onMounted(()=>{l()}),e.watch(()=>n.chatId,()=>{l()});async function l(){var x,v;if(n.chatId){a.value=!0,o.value=null;try{const D=await Ue.get(`${n.callsApiUrl}?chat_id=${n.chatId}`);s.value=D.data.results||D.data||[]}catch(D){console.error("Erro ao buscar ligações:",D),o.value=((v=(x=D.response)==null?void 0:x.data)==null?void 0:v.message)||"Erro ao carregar o histórico de ligações"}finally{a.value=!1}}}function d(x){const v=r.value.indexOf(x);v>-1?r.value.splice(v,1):r.value.push(x)}function f(x){i.value[x]=!i.value[x]}function u(x){r.value.includes(x)||r.value.push(x),f(x)}function h(x){n.onMessageClick&&n.onMessageClick(x)}function m(x){return!x.events||x.events.length===0?"":x.events[0].event_type}function p(x){switch(x){case"offer":return"text-blue-400";case"answer":return"text-blue-400";case"accepted":return"text-green-400";case"ringing":return"text-orange-300/80";case"rejected":case"error":return"text-red-400";case"terminated":return"text-gray-300 dark:bg-text-gray-500";case"update":return"text-blue-400";default:return"text-gray-400"}}function c(x){switch(x){case"offer":return"bg-blue-500";case"answer":return"bg-blue-400";case"accepted":return"bg-green-500";case"ringing":return"bg-blue-500";case"rejected":case"error":return"bg-red-500";case"terminated":return"bg-gray-500";case"update":return"bg-blue-500";default:return"bg-gray-500"}}function g(x){switch(x){case"offer":return"bg-blue-400";case"answer":return"bg-blue-400";case"accepted":return"bg-green-400";case"ringing":return"bg-orange-300/80";case"rejected":case"error":return"bg-red-400";case"terminated":return"bg-gray-400";case"update":return"bg-blue-400";default:return"bg-gray-400"}}function y(x){switch(x){case"offer":return"Chamada recebida";case"answer":return"Chamada iniciada";case"ringing":return"Tocando...";case"accepted":return"Chamada atendida";case"rejected":return"Chamada rejeitada";case"terminated":return"Chamada terminada";case"error":return"Erro na chamada";case"update":return"Chamada atualizada";default:return"Evento desconhecido"}}function b(x){if(!x)return"";const v=new Date(x),_=new Date-v,C=Math.floor(_/(1e3*60*60*24));return C===0?"Hoje":C===1?"Ontem":C<7?`${C}d atrás`:v.toLocaleDateString("pt-BR",{day:"2-digit",month:"2-digit"})}function w(x){return x?new Date(x).toLocaleTimeString("pt-BR",{hour:"2-digit",minute:"2-digit"}):""}function E(x){var v,D,_,C,k,N;return((D=(v=x.record_metadata)==null?void 0:v.urls)==null?void 0:D.client)||((C=(_=x.record_metadata)==null?void 0:_.urls)==null?void 0:C.attendant)||((N=(k=x.record_metadata)==null?void 0:k.urls)==null?void 0:N.general)}return(x,v)=>(e.openBlock(),e.createElementBlock("div",Qk,[a.value?(e.openBlock(),e.createElementBlock("div",Jk,v[0]||(v[0]=[e.createElementVNode("svg",{class:"call-history-loading-spinner",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},[e.createElementVNode("circle",{class:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"}),e.createElementVNode("path",{class:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8v8z"})],-1),e.createElementVNode("span",{class:"call-history-loading-text"},"Carregando ligações...",-1)]))):o.value?(e.openBlock(),e.createElementBlock("div",ex,e.toDisplayString(o.value),1)):s.value.length===0?(e.openBlock(),e.createElementBlock("div",tx," Nenhuma ligação registrada nesta conversa ")):(e.openBlock(),e.createElementBlock("div",nx,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value,D=>(e.openBlock(),e.createElementBlock("div",{key:D.id,"data-test":"call-card",onClick:e.withModifiers(_=>d(D.id),["stop"]),class:"call-card bg-base-300 border hover:bg-base-300 border-base-300"},[e.createElementVNode("div",ox,[e.createElementVNode("div",rx,[e.createElementVNode("div",{class:e.normalizeClass(["call-icon bg-primary",c(m(D))])},v[1]||(v[1]=[e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24"},[e.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)]),2),e.createElementVNode("div",ix,[e.createElementVNode("div",sx,[e.createTextVNode(e.toDisplayString(D.direction==="outbound"?"Efetuada":"Recebida")+" ",1),e.createElementVNode("span",lx,"• "+e.toDisplayString(b(D.started_at)),1)]),D.events&&D.events.length>0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["call-card-status",p(m(D))])},e.toDisplayString(y(m(D))),3)):e.createCommentVNode("",!0)])]),e.createElementVNode("div",cx,[D.external_id&&t.onMessageClick?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:e.withModifiers(_=>h(D),["stop"]),title:"Ver mensagem",class:"hover:bg-base-100"},v[2]||(v[2]=[e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M13 7l5 5m0 0l-5 5m5-5H6"})],-1)]),8,dx)):e.createCommentVNode("",!0),E(D)?(e.openBlock(),e.createElementBlock("button",{key:1,class:e.normalizeClass({"bg-base-100":i.value[D.id],"hover:bg-base-100":!0}),onClick:e.withModifiers(_=>u(D.id),["stop"]),title:"Ver gravações"},[(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass(i.value[D.id]?"text-primary":"opacity-70"),"aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"currentColor",viewBox:"0 0 24 24"},v[3]||(v[3]=[e.createElementVNode("path",{"fill-rule":"evenodd",d:"M17.316 4.052a.99.99 0 0 0-.9.14c-.262.19-.416.495-.416.82v8.566a4.573 4.573 0 0 0-2-.464c-1.99 0-4 1.342-4 3.443 0 2.1 2.01 3.443 4 3.443 1.99 0 4-1.342 4-3.443V6.801c.538.5 1 1.219 1 2.262 0 .56.448 1.013 1 1.013s1-.453 1-1.013c0-1.905-.956-3.18-1.86-3.942a6.391 6.391 0 0 0-1.636-.998 4 4 0 0 0-.166-.063l-.013-.005-.005-.002h-.002l-.002-.001ZM4 5.012c-.552 0-1 .454-1 1.013 0 .56.448 1.013 1 1.013h9c.552 0 1-.453 1-1.013 0-.559-.448-1.012-1-1.012H4Zm0 4.051c-.552 0-1 .454-1 1.013 0 .56.448 1.013 1 1.013h9c.552 0 1-.454 1-1.013 0-.56-.448-1.013-1-1.013H4Zm0 4.05c-.552 0-1 .454-1 1.014 0 .559.448 1.012 1 1.012h4c.552 0 1-.453 1-1.012 0-.56-.448-1.013-1-1.013H4Z","clip-rule":"evenodd"},null,-1)]),2))],10,ux)):e.createCommentVNode("",!0),e.createElementVNode("button",{onClick:e.withModifiers(_=>d(D.id),["stop"]),class:e.normalizeClass(["call-expand-btn hover:bg-base-100",{rotated:r.value.includes(D.id)}])},v[4]||(v[4]=[e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M19 9l-7 7-7-7"})],-1)]),10,mx)])]),e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>[r.value.includes(D.id)?(e.openBlock(),e.createElementBlock("div",fx,[i.value[D.id]&&E(D)?(e.openBlock(),e.createBlock(Kk,{key:0,"record-metadata":D.record_metadata,onClose:_=>f(D.id)},null,8,["record-metadata","onClose"])):e.createCommentVNode("",!0),e.createElementVNode("div",hx,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(D.events,(_,C)=>(e.openBlock(),e.createElementBlock("div",{key:C,class:"call-event-item"},[e.createElementVNode("div",px,[e.createElementVNode("div",{class:e.normalizeClass(["call-event-dot",g(_.event_type)])},null,2),e.createElementVNode("span",{class:e.normalizeClass(["call-event-text",p(_.event_type)])},e.toDisplayString(y(_.event_type)),3)]),e.createElementVNode("span",gx,e.toDisplayString(w(_.created_at)),1)]))),128))])])):e.createCommentVNode("",!0)]),_:2},1024)],8,ax))),128))]))]))}},[["__scopeId","data-v-8b0869d4"]]);function yx(t){t.component("primarySelect",io),t.component("departSelect",D1),t.component("attendantSelect",L1),t.component("SimpleModal",so),t.component("simpleCard",lo),t.component("instanceSelect",Zo),t.component("calendarEvents",ir),t.component("MFA",sr),t.component("MfaQrCode",ud),t.component("chatWindow",A1),t.component("FilterSelectLib",F1),t.component("MobileInternalChat",T1),t.component("RandomAvatar",O1),t.component("MinModal",R1),t.component("LibPatchNotes",j1),t.component("BtnNewUpdates",G1),t.component("LibPhotoPicker",q1),t.component("SelectMultipleDepartments",I1),t.component("PrimaryInput",qa),t.component("SimpleSelect",W1),t.component("FloatingDev",Y1),t.component("RatingInput",Wa),t.component("TagView",Z1),t.component("ClientsForm",U1),t.component("SelectMultipleTags",Ga),t.component("SimpleLoader",Za),t.component("OutcomeButton",Ia),t.component("CallHistory",X1),t.component("ListProducts",Ua)}function K1(t,n="add"){const a=ja();n==="add"?a.addDepartments(t):n==="delete"?a.removeDepartments(t):n==="update"?(a.departments=t,a.loaded=!0):console.error(`Ação "${n}" não suportada em attLibDeparts.`)}function Q1(t,n="add"){const a=Rt();n==="add"?a.addAttendants(t):n==="delete"?a.removeAttendants(t):n==="update"?(a.attendants=t,a.loaded=!0):console.error(`Ação "${n}" não suportada em attLibAttendants.`)}function J1(t,n="add"){const a=ua();n==="add"?a.addInstance(t):n==="delete"?a.removeInstance(t):n==="update"?(a.instances=t,a.loaded=!0):console.error(`Ação "${n}" não suportada em attLibInstances.`)}async function ei(t,n,a,o=[],r=[],i=[]){try{const s=await Uo(t);n&&await s.setToken(n),a&&(Ue.defaults.baseURL=a);const l=ja(t);r.length>0&&(l.departments=r,l.count=r.length);const d=Rt(t);o.length>0&&(d.attendants=o,d.count=o.length),await ua(t).fetchInstances()}catch(s){console.error("Erro no setupLibrary:",s)}}function ti(t){return cn(t)}const kx={install:yx,setupLibrary:ei,attLibDeparts:K1,attLibAttendants:Q1,attLibInstances:J1,primarySelect:io,simpleModal:so,simpleCard:lo,instanceSelect:Zo,SimpleSelect:W1,FloatingDev:Y1,calendar:ir,SimpleLoader:Za,MFA:sr,chatWindow:A1,departSelect:D1,attendantSelect:L1,FilterSelectLib:F1,MobileInternalChat:T1,RandomAvatar:O1,MinModal:R1,libPatchNotes:j1,btnNewUpdates:G1,LibPhotoPicker:q1,SelectMultipleDepartments:I1,SelectMultipleTags:Ga,PrimaryInput:qa,getWithContrastColor:ti,RatingInput:Wa,TagView:Z1,ClientsForm:U1,OutcomeButton:Ia,CallHistory:X1,ListProducts:Ua};function xx(t){t.CapacitorUtils.Synapse=new Proxy({},{get(n,a){return new Proxy({},{get(o,r){return(i,s,l)=>{const d=t.Capacitor.Plugins[a];if(d===void 0){l(new Error(`Capacitor plugin ${a} not found`));return}if(typeof d[r]!="function"){l(new Error(`Method ${r} not found in Capacitor plugin ${a}`));return}(async()=>{try{const f=await d[r](i);s(f)}catch(f){l(f)}})()}}})}})}function bx(t){t.CapacitorUtils.Synapse=new Proxy({},{get(n,a){return t.cordova.plugins[a]}})}function wx(t=!1){typeof window>"u"||(window.CapacitorUtils=window.CapacitorUtils||{},window.Capacitor!==void 0&&!t?xx(window):window.cordova!==void 0&&bx(window))}var ni;(function(t){t.Documents="DOCUMENTS",t.Data="DATA",t.Library="LIBRARY",t.Cache="CACHE",t.External="EXTERNAL",t.ExternalStorage="EXTERNAL_STORAGE",t.ExternalCache="EXTERNAL_CACHE",t.LibraryNoCloud="LIBRARY_NO_CLOUD",t.Temporary="TEMPORARY"})(ni||(ni={}));var Ya;(function(t){t.UTF8="utf8",t.ASCII="ascii",t.UTF16="utf16"})(Ya||(Ya={}));const Zn=sn("Filesystem",{web:()=>Promise.resolve().then(()=>zx).then(t=>new t.FilesystemWeb)});wx();const Ex=sn("BlobWriter");function vx(t){return window.btoa(Array.from(new Uint8Array(t)).map(function(n){return String.fromCharCode(n)}).join(""))}function Cx({path:t,directory:n,blob:a,recursive:o}){return Zn.writeFile({directory:n,path:t,recursive:o,data:""}).then(function(){return new Promise(function(r,i){function s(d){i(d.target.error)}const l=window.indexedDB.open("Disc");l.onerror=s,l.onsuccess=function(){const f=l.result.transaction("FileStorage","readwrite");f.onerror=s;const u=f.objectStore("FileStorage"),h=`/${n}/${t.replace(/^\//,"")}`,m=u.get(h);m.onsuccess=function(){m.result.size=a.size,m.result.content=a;const p=u.put(m.result);p.onsuccess=function(){r(void 0)}}}})})}function ai({path:t,directory:n,blob:a,recursive:o}){return Zn.writeFile({directory:n,path:t,recursive:o,data:""}).then(function r(){if(a.size===0)return Promise.resolve();const i=3*128*1024,s=a.slice(0,i);return a=a.slice(i),new Response(s).arrayBuffer().then(function(d){return Zn.appendFile({directory:n,path:t,data:vx(d)})}).then(r)})}function Sx(t){const{path:n,directory:a,blob:o,fast_mode:r=!1,recursive:i,on_fallback:s}=t;return!o||!Number.isSafeInteger(o.size)||typeof o.type!="string"?Promise.reject(new Error("Not a Blob.")):zn.getPlatform()==="web"?r?Cx(t):ai(t):Promise.all([Ex.get_config(),Zn.getUri({path:n,directory:a})]).then(function([l,d]){const f=d.uri.replace("file://","");return(window.CapacitorWebFetch||window.fetch)(l.base_url+f+(i?"?recursive=true":""),{headers:{authorization:l.auth_token},method:"put",body:o}).then(function(h){if(h.status!==204)throw new Error("Bad HTTP status: "+h.status);return d.uri})}).catch(function(d){return s!==void 0&&s(d),ai(t)})}const Bx=Object.freeze(Sx);function Vx(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var oi={};function Mx(t){return t&&t.__esModule?t:{default:t}}var Nx=Mx,Xa={exports:{}},ri;function Ax(){return ri||(ri=1,function(t){var n=function(a){var o=Object.prototype,r=o.hasOwnProperty,i=Object.defineProperty||function(F,L,j){F[L]=j.value},s,l=typeof Symbol=="function"?Symbol:{},d=l.iterator||"@@iterator",f=l.asyncIterator||"@@asyncIterator",u=l.toStringTag||"@@toStringTag";function h(F,L,j){return Object.defineProperty(F,L,{value:j,enumerable:!0,configurable:!0,writable:!0}),F[L]}try{h({},"")}catch{h=function(L,j,re){return L[j]=re}}function m(F,L,j,re){var se=L&&L.prototype instanceof E?L:E,be=Object.create(se.prototype),Se=new ie(re||[]);return i(be,"_invoke",{value:B(F,j,Se)}),be}a.wrap=m;function p(F,L,j){try{return{type:"normal",arg:F.call(L,j)}}catch(re){return{type:"throw",arg:re}}}var c="suspendedStart",g="suspendedYield",y="executing",b="completed",w={};function E(){}function x(){}function v(){}var D={};h(D,d,function(){return this});var _=Object.getPrototypeOf,C=_&&_(_(Q([])));C&&C!==o&&r.call(C,d)&&(D=C);var k=v.prototype=E.prototype=Object.create(D);x.prototype=v,i(k,"constructor",{value:v,configurable:!0}),i(v,"constructor",{value:x,configurable:!0}),x.displayName=h(v,u,"GeneratorFunction");function N(F){["next","throw","return"].forEach(function(L){h(F,L,function(j){return this._invoke(L,j)})})}a.isGeneratorFunction=function(F){var L=typeof F=="function"&&F.constructor;return L?L===x||(L.displayName||L.name)==="GeneratorFunction":!1},a.mark=function(F){return Object.setPrototypeOf?Object.setPrototypeOf(F,v):(F.__proto__=v,h(F,u,"GeneratorFunction")),F.prototype=Object.create(k),F},a.awrap=function(F){return{__await:F}};function S(F,L){function j(be,Se,Fe,$e){var Ve=p(F[be],F,Se);if(Ve.type==="throw")$e(Ve.arg);else{var G=Ve.arg,ne=G.value;return ne&&typeof ne=="object"&&r.call(ne,"__await")?L.resolve(ne.__await).then(function(J){j("next",J,Fe,$e)},function(J){j("throw",J,Fe,$e)}):L.resolve(ne).then(function(J){G.value=J,Fe(G)},function(J){return j("throw",J,Fe,$e)})}}var re;function se(be,Se){function Fe(){return new L(function($e,Ve){j(be,Se,$e,Ve)})}return re=re?re.then(Fe,Fe):Fe()}i(this,"_invoke",{value:se})}N(S.prototype),h(S.prototype,f,function(){return this}),a.AsyncIterator=S,a.async=function(F,L,j,re,se){se===void 0&&(se=Promise);var be=new S(m(F,L,j,re),se);return a.isGeneratorFunction(L)?be:be.next().then(function(Se){return Se.done?Se.value:be.next()})};function B(F,L,j){var re=c;return function(be,Se){if(re===y)throw new Error("Generator is already running");if(re===b){if(be==="throw")throw Se;return fe()}for(j.method=be,j.arg=Se;;){var Fe=j.delegate;if(Fe){var $e=A(Fe,j);if($e){if($e===w)continue;return $e}}if(j.method==="next")j.sent=j._sent=j.arg;else if(j.method==="throw"){if(re===c)throw re=b,j.arg;j.dispatchException(j.arg)}else j.method==="return"&&j.abrupt("return",j.arg);re=y;var Ve=p(F,L,j);if(Ve.type==="normal"){if(re=j.done?b:g,Ve.arg===w)continue;return{value:Ve.arg,done:j.done}}else Ve.type==="throw"&&(re=b,j.method="throw",j.arg=Ve.arg)}}}function A(F,L){var j=L.method,re=F.iterator[j];if(re===s)return L.delegate=null,j==="throw"&&F.iterator.return&&(L.method="return",L.arg=s,A(F,L),L.method==="throw")||j!=="return"&&(L.method="throw",L.arg=new TypeError("The iterator does not provide a '"+j+"' method")),w;var se=p(re,F.iterator,L.arg);if(se.type==="throw")return L.method="throw",L.arg=se.arg,L.delegate=null,w;var be=se.arg;if(!be)return L.method="throw",L.arg=new TypeError("iterator result is not an object"),L.delegate=null,w;if(be.done)L[F.resultName]=be.value,L.next=F.nextLoc,L.method!=="return"&&(L.method="next",L.arg=s);else return be;return L.delegate=null,w}N(k),h(k,u,"Generator"),h(k,d,function(){return this}),h(k,"toString",function(){return"[object Generator]"});function M(F){var L={tryLoc:F[0]};1 in F&&(L.catchLoc=F[1]),2 in F&&(L.finallyLoc=F[2],L.afterLoc=F[3]),this.tryEntries.push(L)}function H(F){var L=F.completion||{};L.type="normal",delete L.arg,F.completion=L}function ie(F){this.tryEntries=[{tryLoc:"root"}],F.forEach(M,this),this.reset(!0)}a.keys=function(F){var L=Object(F),j=[];for(var re in L)j.push(re);return j.reverse(),function se(){for(;j.length;){var be=j.pop();if(be in L)return se.value=be,se.done=!1,se}return se.done=!0,se}};function Q(F){if(F){var L=F[d];if(L)return L.call(F);if(typeof F.next=="function")return F;if(!isNaN(F.length)){var j=-1,re=function se(){for(;++j<F.length;)if(r.call(F,j))return se.value=F[j],se.done=!1,se;return se.value=s,se.done=!0,se};return re.next=re}}return{next:fe}}a.values=Q;function fe(){return{value:s,done:!0}}return ie.prototype={constructor:ie,reset:function(F){if(this.prev=0,this.next=0,this.sent=this._sent=s,this.done=!1,this.delegate=null,this.method="next",this.arg=s,this.tryEntries.forEach(H),!F)for(var L in this)L.charAt(0)==="t"&&r.call(this,L)&&!isNaN(+L.slice(1))&&(this[L]=s)},stop:function(){this.done=!0;var F=this.tryEntries[0],L=F.completion;if(L.type==="throw")throw L.arg;return this.rval},dispatchException:function(F){if(this.done)throw F;var L=this;function j($e,Ve){return be.type="throw",be.arg=F,L.next=$e,Ve&&(L.method="next",L.arg=s),!!Ve}for(var re=this.tryEntries.length-1;re>=0;--re){var se=this.tryEntries[re],be=se.completion;if(se.tryLoc==="root")return j("end");if(se.tryLoc<=this.prev){var Se=r.call(se,"catchLoc"),Fe=r.call(se,"finallyLoc");if(Se&&Fe){if(this.prev<se.catchLoc)return j(se.catchLoc,!0);if(this.prev<se.finallyLoc)return j(se.finallyLoc)}else if(Se){if(this.prev<se.catchLoc)return j(se.catchLoc,!0)}else if(Fe){if(this.prev<se.finallyLoc)return j(se.finallyLoc)}else throw new Error("try statement without catch or finally")}}},abrupt:function(F,L){for(var j=this.tryEntries.length-1;j>=0;--j){var re=this.tryEntries[j];if(re.tryLoc<=this.prev&&r.call(re,"finallyLoc")&&this.prev<re.finallyLoc){var se=re;break}}se&&(F==="break"||F==="continue")&&se.tryLoc<=L&&L<=se.finallyLoc&&(se=null);var be=se?se.completion:{};return be.type=F,be.arg=L,se?(this.method="next",this.next=se.finallyLoc,w):this.complete(be)},complete:function(F,L){if(F.type==="throw")throw F.arg;return F.type==="break"||F.type==="continue"?this.next=F.arg:F.type==="return"?(this.rval=this.arg=F.arg,this.method="return",this.next="end"):F.type==="normal"&&L&&(this.next=L),w},finish:function(F){for(var L=this.tryEntries.length-1;L>=0;--L){var j=this.tryEntries[L];if(j.finallyLoc===F)return this.complete(j.completion,j.afterLoc),H(j),w}},catch:function(F){for(var L=this.tryEntries.length-1;L>=0;--L){var j=this.tryEntries[L];if(j.tryLoc===F){var re=j.completion;if(re.type==="throw"){var se=re.arg;H(j)}return se}}throw new Error("illegal catch attempt")},delegateYield:function(F,L,j){return this.delegate={iterator:Q(F),resultName:L,nextLoc:j},this.method==="next"&&(this.arg=s),w}},a}(t.exports);try{regeneratorRuntime=n}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=n:Function("r","regeneratorRuntime = r")(n)}}(Xa)),Xa.exports}var Ka,ii;function Tx(){return ii||(ii=1,Ka=Ax()),Ka}var Qa,si;function Dx(){if(si)return Qa;si=1;function t(a,o,r,i,s,l,d){try{var f=a[l](d),u=f.value}catch(h){r(h);return}f.done?o(u):Promise.resolve(u).then(i,s)}function n(a){return function(){var o=this,r=arguments;return new Promise(function(i,s){var l=a.apply(o,r);function d(u){t(l,i,s,d,f,"next",u)}function f(u){t(l,i,s,d,f,"throw",u)}d(void 0)})}}return Qa=n,Qa}(function(t){var n=Nx;Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var a=n(Tx()),o=n(Dx());function r(s){return i.apply(this,arguments)}function i(){return(i=(0,o.default)(a.default.mark(function s(l){var d,f;return a.default.wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return d=document.createElement("video"),f=new Promise(function(h,m){d.addEventListener("loadedmetadata",function(){d.duration===1/0?(d.currentTime=Number.MAX_SAFE_INTEGER,d.ontimeupdate=function(){d.ontimeupdate=null,h(d.duration),d.currentTime=0}):h(d.duration)}),d.onerror=function(p){return m(p.target.error)}}),d.src=typeof l=="string"||l instanceof String?l:window.URL.createObjectURL(l),u.abrupt("return",f);case 4:case"end":return u.stop()}},s)}))).apply(this,arguments)}})(oi);const Lx=Vx(oi),St=()=>({value:!0}),dn=()=>({value:!1}),Fx=()=>new Error("MISSING_PERMISSION"),$x=()=>new Error("ALREADY_RECORDING"),_x=()=>new Error("DEVICE_CANNOT_VOICE_RECORD"),li=()=>new Error("FAILED_TO_RECORD"),Px=()=>new Error("EMPTY_RECORDING"),Ja=()=>new Error("RECORDING_HAS_NOT_STARTED"),ci=()=>new Error("FAILED_TO_FETCH_RECORDING"),eo=()=>new Error("COULD_NOT_QUERY_PERMISSION_STATUS"),di={"audio/aac":".aac","audio/mp4":".mp3","audio/webm;codecs=opus":".ogg","audio/webm":".ogg","audio/ogg;codecs=opus":".ogg"},ui=()=>new Promise(()=>{});class st{constructor(){this.mediaRecorder=null,this.chunks=[],this.pendingResult=ui()}static async canDeviceVoiceRecord(){var n;return((n=navigator==null?void 0:navigator.mediaDevices)===null||n===void 0?void 0:n.getUserMedia)==null||st.getSupportedMimeType()==null?dn():St()}async startRecording(n){if(this.mediaRecorder!=null)throw $x();if(!(await st.canDeviceVoiceRecord()).value)throw _x();if(!(await st.hasAudioRecordingPermission().catch(()=>St())).value)throw Fx();return navigator.mediaDevices.getUserMedia({audio:!0}).then(r=>this.onSuccessfullyStartedRecording(r,n)).catch(this.onFailedToStartRecording.bind(this))}async stopRecording(){if(this.mediaRecorder==null)throw Ja();try{return this.mediaRecorder.stop(),this.mediaRecorder.stream.getTracks().forEach(n=>n.stop()),this.pendingResult}catch{throw ci()}finally{this.prepareInstanceForNextOperation()}}static async hasAudioRecordingPermission(){return navigator.permissions.query==null?navigator.mediaDevices==null?Promise.reject(eo()):navigator.mediaDevices.getUserMedia({audio:!0}).then(()=>St()).catch(()=>{throw eo()}):navigator.permissions.query({name:"microphone"}).then(n=>({value:n.state==="granted"})).catch(()=>{throw eo()})}static async requestAudioRecordingPermission(){return(await st.hasAudioRecordingPermission().catch(()=>dn())).value?St():navigator.mediaDevices.getUserMedia({audio:!0}).then(()=>St()).catch(()=>dn())}pauseRecording(){if(this.mediaRecorder==null)throw Ja();return this.mediaRecorder.state==="recording"?(this.mediaRecorder.pause(),Promise.resolve(St())):Promise.resolve(dn())}resumeRecording(){if(this.mediaRecorder==null)throw Ja();return this.mediaRecorder.state==="paused"?(this.mediaRecorder.resume(),Promise.resolve(St())):Promise.resolve(dn())}getCurrentStatus(){return this.mediaRecorder==null?Promise.resolve({status:Gn.NONE}):this.mediaRecorder.state==="recording"?Promise.resolve({status:Gn.RECORDING}):this.mediaRecorder.state==="paused"?Promise.resolve({status:Gn.PAUSED}):Promise.resolve({status:Gn.NONE})}static getSupportedMimeType(){if((MediaRecorder==null?void 0:MediaRecorder.isTypeSupported)==null)return null;const n=Object.keys(di).find(a=>MediaRecorder.isTypeSupported(a));return n??null}onSuccessfullyStartedRecording(n,a){return this.pendingResult=new Promise((o,r)=>{this.mediaRecorder=new MediaRecorder(n),this.mediaRecorder.onerror=()=>{this.prepareInstanceForNextOperation(),r(li())},this.mediaRecorder.onstop=async()=>{var i,s,l;const d=st.getSupportedMimeType();if(d==null){this.prepareInstanceForNextOperation(),r(ci());return}const f=new Blob(this.chunks,{type:d});if(f.size<=0){this.prepareInstanceForNextOperation(),r(Px());return}let u,h;a!=null?(u=`${(l=(s=(i=a.subDirectory)===null||i===void 0?void 0:i.match(/^\/?(.+[^/])\/?$/))===null||s===void 0?void 0:s[1])!==null&&l!==void 0?l:""}/recording-${new Date().getTime()}${di[d]}`,await Bx({blob:f,directory:a.directory,fast_mode:!0,path:u,recursive:!0})):h=await st.blobToBase64(f);const m=await Lx(f);this.prepareInstanceForNextOperation(),o({value:{recordDataBase64:h,mimeType:d,msDuration:m*1e3,path:u}})},this.mediaRecorder.ondataavailable=i=>this.chunks.push(i.data),this.mediaRecorder.start()}),St()}onFailedToStartRecording(){throw this.prepareInstanceForNextOperation(),li()}static blobToBase64(n){return new Promise(a=>{const o=new FileReader;o.onloadend=()=>{const r=String(o.result),i=r.split("base64,"),s=i.length>1?i[1]:r;a(s.trim())},o.readAsDataURL(n)})}prepareInstanceForNextOperation(){if(this.mediaRecorder!=null&&this.mediaRecorder.state==="recording")try{this.mediaRecorder.stop()}catch(n){console.warn("While trying to stop a media recorder, an error was thrown",n)}this.pendingResult=ui(),this.mediaRecorder=null,this.chunks=[]}}class Ox extends jn{constructor(){super(...arguments),this.voiceRecorderInstance=new st}canDeviceVoiceRecord(){return st.canDeviceVoiceRecord()}hasAudioRecordingPermission(){return st.hasAudioRecordingPermission()}requestAudioRecordingPermission(){return st.requestAudioRecordingPermission()}startRecording(n){return this.voiceRecorderInstance.startRecording(n)}stopRecording(){return this.voiceRecorderInstance.stopRecording()}pauseRecording(){return this.voiceRecorderInstance.pauseRecording()}resumeRecording(){return this.voiceRecorderInstance.resumeRecording()}getCurrentStatus(){return this.voiceRecorderInstance.getCurrentStatus()}}const Rx=Object.freeze(Object.defineProperty({__proto__:null,VoiceRecorderWeb:Ox},Symbol.toStringTag,{value:"Module"}));function mi(t){const n=t.split("/").filter(o=>o!=="."),a=[];return n.forEach(o=>{o===".."&&a.length>0&&a[a.length-1]!==".."?a.pop():a.push(o)}),a.join("/")}function Hx(t,n){t=mi(t),n=mi(n);const a=t.split("/"),o=n.split("/");return t!==n&&a.every((r,i)=>r===o[i])}class Yn extends jn{constructor(){super(...arguments),this.DB_VERSION=1,this.DB_NAME="Disc",this._writeCmds=["add","put","delete"],this.downloadFile=async n=>{var a,o;const r=m1(n,n.webFetchExtra),i=await fetch(n.url,r);let s;if(!n.progress)s=await i.blob();else if(!(i!=null&&i.body))s=new Blob;else{const d=i.body.getReader();let f=0;const u=[],h=i.headers.get("content-type"),m=parseInt(i.headers.get("content-length")||"0",10);for(;;){const{done:g,value:y}=await d.read();if(g)break;u.push(y),f+=(y==null?void 0:y.length)||0;const b={url:n.url,bytes:f,contentLength:m};this.notifyListeners("progress",b)}const p=new Uint8Array(f);let c=0;for(const g of u)typeof g>"u"||(p.set(g,c),c+=g.length);s=new Blob([p.buffer],{type:h||void 0})}return{path:(await this.writeFile({path:n.path,directory:(a=n.directory)!==null&&a!==void 0?a:void 0,recursive:(o=n.recursive)!==null&&o!==void 0?o:!1,data:s})).uri,blob:s}}}readFileInChunks(n,a){throw this.unavailable("Method not implemented.")}async initDb(){if(this._db!==void 0)return this._db;if(!("indexedDB"in window))throw this.unavailable("This browser doesn't support IndexedDB");return new Promise((n,a)=>{const o=indexedDB.open(this.DB_NAME,this.DB_VERSION);o.onupgradeneeded=Yn.doUpgrade,o.onsuccess=()=>{this._db=o.result,n(o.result)},o.onerror=()=>a(o.error),o.onblocked=()=>{console.warn("db blocked")}})}static doUpgrade(n){const o=n.target.result;switch(n.oldVersion){case 0:case 1:default:o.objectStoreNames.contains("FileStorage")&&o.deleteObjectStore("FileStorage"),o.createObjectStore("FileStorage",{keyPath:"path"}).createIndex("by_folder","folder")}}async dbRequest(n,a){const o=this._writeCmds.indexOf(n)!==-1?"readwrite":"readonly";return this.initDb().then(r=>new Promise((i,s)=>{const f=r.transaction(["FileStorage"],o).objectStore("FileStorage")[n](...a);f.onsuccess=()=>i(f.result),f.onerror=()=>s(f.error)}))}async dbIndexRequest(n,a,o){const r=this._writeCmds.indexOf(a)!==-1?"readwrite":"readonly";return this.initDb().then(i=>new Promise((s,l)=>{const h=i.transaction(["FileStorage"],r).objectStore("FileStorage").index(n)[a](...o);h.onsuccess=()=>s(h.result),h.onerror=()=>l(h.error)}))}getPath(n,a){const o=a!==void 0?a.replace(/^[/]+|[/]+$/g,""):"";let r="";return n!==void 0&&(r+="/"+n),a!==""&&(r+="/"+o),r}async clear(){(await this.initDb()).transaction(["FileStorage"],"readwrite").objectStore("FileStorage").clear()}async readFile(n){const a=this.getPath(n.directory,n.path),o=await this.dbRequest("get",[a]);if(o===void 0)throw Error("File does not exist.");return{data:o.content?o.content:""}}async writeFile(n){const a=this.getPath(n.directory,n.path);let o=n.data;const r=n.encoding,i=n.recursive,s=await this.dbRequest("get",[a]);if(s&&s.type==="directory")throw Error("The supplied path is a directory.");const l=a.substr(0,a.lastIndexOf("/"));if(await this.dbRequest("get",[l])===void 0){const h=l.indexOf("/",1);if(h!==-1){const m=l.substr(h);await this.mkdir({path:m,directory:n.directory,recursive:i})}}if(!r&&!(o instanceof Blob)&&(o=o.indexOf(",")>=0?o.split(",")[1]:o,!this.isBase64String(o)))throw Error("The supplied data is not valid base64 content.");const f=Date.now(),u={path:a,folder:l,type:"file",size:o instanceof Blob?o.size:o.length,ctime:f,mtime:f,content:o};return await this.dbRequest("put",[u]),{uri:u.path}}async appendFile(n){const a=this.getPath(n.directory,n.path);let o=n.data;const r=n.encoding,i=a.substr(0,a.lastIndexOf("/")),s=Date.now();let l=s;const d=await this.dbRequest("get",[a]);if(d&&d.type==="directory")throw Error("The supplied path is a directory.");if(await this.dbRequest("get",[i])===void 0){const h=i.indexOf("/",1);if(h!==-1){const m=i.substr(h);await this.mkdir({path:m,directory:n.directory,recursive:!0})}}if(!r&&!this.isBase64String(o))throw Error("The supplied data is not valid base64 content.");if(d!==void 0){if(d.content instanceof Blob)throw Error("The occupied entry contains a Blob object which cannot be appended to.");d.content!==void 0&&!r?o=btoa(atob(d.content)+atob(o)):o=d.content+o,l=d.ctime}const u={path:a,folder:i,type:"file",size:o.length,ctime:l,mtime:s,content:o};await this.dbRequest("put",[u])}async deleteFile(n){const a=this.getPath(n.directory,n.path);if(await this.dbRequest("get",[a])===void 0)throw Error("File does not exist.");if((await this.dbIndexRequest("by_folder","getAllKeys",[IDBKeyRange.only(a)])).length!==0)throw Error("Folder is not empty.");await this.dbRequest("delete",[a])}async mkdir(n){const a=this.getPath(n.directory,n.path),o=n.recursive,r=a.substr(0,a.lastIndexOf("/")),i=(a.match(/\//g)||[]).length,s=await this.dbRequest("get",[r]),l=await this.dbRequest("get",[a]);if(i===1)throw Error("Cannot create Root directory");if(l!==void 0)throw Error("Current directory does already exist.");if(!o&&i!==2&&s===void 0)throw Error("Parent directory must exist");if(o&&i!==2&&s===void 0){const u=r.substr(r.indexOf("/",1));await this.mkdir({path:u,directory:n.directory,recursive:o})}const d=Date.now(),f={path:a,folder:r,type:"directory",size:0,ctime:d,mtime:d};await this.dbRequest("put",[f])}async rmdir(n){const{path:a,directory:o,recursive:r}=n,i=this.getPath(o,a),s=await this.dbRequest("get",[i]);if(s===void 0)throw Error("Folder does not exist.");if(s.type!=="directory")throw Error("Requested path is not a directory");const l=await this.readdir({path:a,directory:o});if(l.files.length!==0&&!r)throw Error("Folder is not empty");for(const d of l.files){const f=`${a}/${d.name}`;(await this.stat({path:f,directory:o})).type==="file"?await this.deleteFile({path:f,directory:o}):await this.rmdir({path:f,directory:o,recursive:r})}await this.dbRequest("delete",[i])}async readdir(n){const a=this.getPath(n.directory,n.path),o=await this.dbRequest("get",[a]);if(n.path!==""&&o===void 0)throw Error("Folder does not exist.");const r=await this.dbIndexRequest("by_folder","getAllKeys",[IDBKeyRange.only(a)]);return{files:await Promise.all(r.map(async s=>{let l=await this.dbRequest("get",[s]);return l===void 0&&(l=await this.dbRequest("get",[s+"/"])),{name:s.substring(a.length+1),type:l.type,size:l.size,ctime:l.ctime,mtime:l.mtime,uri:l.path}}))}}async getUri(n){const a=this.getPath(n.directory,n.path);let o=await this.dbRequest("get",[a]);return o===void 0&&(o=await this.dbRequest("get",[a+"/"])),{uri:(o==null?void 0:o.path)||a}}async stat(n){const a=this.getPath(n.directory,n.path);let o=await this.dbRequest("get",[a]);if(o===void 0&&(o=await this.dbRequest("get",[a+"/"])),o===void 0)throw Error("Entry does not exist.");return{name:o.path.substring(a.length+1),type:o.type,size:o.size,ctime:o.ctime,mtime:o.mtime,uri:o.path}}async rename(n){await this._copy(n,!0)}async copy(n){return this._copy(n,!1)}async requestPermissions(){return{publicStorage:"granted"}}async checkPermissions(){return{publicStorage:"granted"}}async _copy(n,a=!1){let{toDirectory:o}=n;const{to:r,from:i,directory:s}=n;if(!r||!i)throw Error("Both to and from must be provided");o||(o=s);const l=this.getPath(s,i),d=this.getPath(o,r);if(l===d)return{uri:d};if(Hx(l,d))throw Error("To path cannot contain the from path");let f;try{f=await this.stat({path:r,directory:o})}catch{const c=r.split("/");c.pop();const g=c.join("/");if(c.length>0&&(await this.stat({path:g,directory:o})).type!=="directory")throw new Error("Parent directory of the to path is a file")}if(f&&f.type==="directory")throw new Error("Cannot overwrite a directory with a file");const u=await this.stat({path:i,directory:s}),h=async(p,c,g)=>{const y=this.getPath(o,p),b=await this.dbRequest("get",[y]);b.ctime=c,b.mtime=g,await this.dbRequest("put",[b])},m=u.ctime?u.ctime:Date.now();switch(u.type){case"file":{const p=await this.readFile({path:i,directory:s});a&&await this.deleteFile({path:i,directory:s});let c;!(p.data instanceof Blob)&&!this.isBase64String(p.data)&&(c=Ya.UTF8);const g=await this.writeFile({path:r,directory:o,data:p.data,encoding:c});return a&&await h(r,m,u.mtime),g}case"directory":{if(f)throw Error("Cannot move a directory over an existing object");try{await this.mkdir({path:r,directory:o,recursive:!1}),a&&await h(r,m,u.mtime)}catch{}const p=(await this.readdir({path:i,directory:s})).files;for(const c of p)await this._copy({from:`${i}/${c.name}`,to:`${r}/${c.name}`,directory:s,toDirectory:o},a);a&&await this.rmdir({path:i,directory:s})}}return{uri:d}}isBase64String(n){try{return btoa(atob(n))==n}catch{return!1}}}Yn._debug=!0;const zx=Object.freeze(Object.defineProperty({__proto__:null,FilesystemWeb:Yn},Symbol.toStringTag,{value:"Module"}));Ke.attLibAttendants=Q1,Ke.attLibDeparts=K1,Ke.attLibInstances=J1,Ke.default=kx,Ke.getWithContrastColor=ti,Ke.setupLibrary=ei,Ke.useScheduledStore=nr,Object.defineProperties(Ke,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
132
|
+
</svg>`,info:a.content.info??"Nome que será atribuído no Produto",type:a.content.type??"text",placeholder:a.content.placeholder??"Integração de sistemas",empty:a.content.empty??!1,data:a.content.data??""}),i=e.ref(r.data);e.watch(i,l=>{o("update:content",{...r,data:l})},{immediate:!0,deep:!0}),e.watch(()=>a.content,l=>{l.data!==i.value&&(i.value=l.data),l.empty!==r.empty&&(r.empty=l.empty)},{deep:!0});const s=e.computed(()=>r.empty&&!i.value);return(l,d)=>{const u=e.resolveComponent("Popper");return e.openBlock(),e.createElementBlock("section",Ty,[e.createElementVNode("header",Dy,[e.createElementVNode("p",Ly,e.toDisplayString(r.title),1),r.info?(e.openBlock(),e.createBlock(u,{key:0,hover:"",content:r.info,placement:"top",arrow:""},{default:e.withCtx(()=>[...d[2]||(d[2]=[e.createElementVNode("svg",{class:"size-4 text-white",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24"},[e.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M2 12C2 6.477 6.477 2 12 2s10 4.477 10 10-4.477 10-10 10S2 17.523 2 12Zm9.408-5.5a1 1 0 1 0 0 2h.01a1 1 0 1 0 0-2h-.01ZM10 10a1 1 0 1 0 0 2h1v3h-1a1 1 0 1 0 0 2h4a1 1 0 1 0 0-2h-1v-4a1 1 0 0 0-1-1h-2Z"})],-1)])]),_:1},8,["content"])):e.createCommentVNode("",!0)]),e.createElementVNode("div",{class:e.normalizeClass(["input__container",s.value?"input__container--error":"",r.type==="textArea"?"textArea":""])},[r.type!=="textArea"?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(s.value?"text-red-500":"text-base-100"),innerHTML:r.svg},null,10,Fy)):e.createCommentVNode("",!0),r.type!=="textArea"?e.withDirectives((e.openBlock(),e.createElementBlock("input",{type:r.type,key:r.type,placeholder:r.placeholder,"onUpdate:modelValue":d[0]||(d[0]=c=>i.value=c),class:e.normalizeClass([s.value?"empty":null,"input__field"])},null,10,$y)),[[e.vModelDynamic,i.value]]):e.withDirectives((e.openBlock(),e.createElementBlock("textarea",{key:2,class:e.normalizeClass([s.value?"empty":null,"input__field h-full resize-y"]),"onUpdate:modelValue":d[1]||(d[1]=c=>i.value=c),placeholder:r.placeholder},null,10,Py)),[[e.vModelText,i.value]]),s.value?(e.openBlock(),e.createElementBlock("span",_y," Campo obrigatório ")):e.createCommentVNode("",!0)],2)])}}},[["__scopeId","data-v-5a75ba77"]]),Oy=["onClick"],Ry={key:0,xmlns:"http://www.w3.org/2000/svg",class:"size-4 text-green-400",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},Hy=["onClick"],zy={key:0,xmlns:"http://www.w3.org/2000/svg",class:"size-4 text-green-400",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},pi=we({__name:"simpleSelect",props:{modelValue:{type:[Array,String,Number,Object],default:()=>[]},options:{type:Array,required:!0,default:()=>[]},placeholder:{type:String,default:"Selecione uma opção..."},multiple:{type:Boolean,default:!1},theme:{type:String,default:"bg-base-300 border-base-300"},teleportTo:{type:String,default:null}},emits:["update:modelValue"],setup(t,{emit:n}){const a=t,o=n,r=e.ref(!1),i=e.ref(null),s=e.ref(null),l=e.ref({});Bn(i,()=>r.value=!1);const d=()=>{if(!a.teleportTo||!s.value)return;const p=s.value.getBoundingClientRect();l.value={position:"fixed",top:`${p.bottom+6}px`,left:`${p.left}px`,width:`${p.width}px`,zIndex:9999}};e.watch(r,p=>{p&&d()});const u=[];e.onMounted(()=>{if(a.teleportTo){const p=()=>{r.value&&d()};window.addEventListener("scroll",p,!0),window.addEventListener("resize",p),u.push(["scroll",p],["resize",p])}}),e.onUnmounted(()=>{u.forEach(([p,f])=>window.removeEventListener(p,f,p==="scroll"?!0:void 0))});const c=p=>a.multiple&&Array.isArray(a.modelValue)?a.modelValue.includes(p):a.modelValue===p,h=p=>{if(a.multiple){const f=Array.isArray(a.modelValue)?[...a.modelValue]:[],g=f.indexOf(p);g===-1?f.push(p):f.splice(g,1),o("update:modelValue",f)}else o("update:modelValue",p),r.value=!1},m=e.computed(()=>{if(a.multiple&&Array.isArray(a.modelValue))return a.modelValue.length===0?a.placeholder:a.options.filter(g=>a.modelValue.includes(g.value)).map(g=>g.name).join(", ");const p=a.options.find(f=>f.value===a.modelValue);return(p==null?void 0:p.name)||a.placeholder});return(p,f)=>(e.openBlock(),e.createElementBlock("div",{class:"relative w-full",ref_key:"dropdownRef",ref:i},[e.createElementVNode("div",{onClick:f[0]||(f[0]=g=>r.value=!r.value),class:e.normalizeClass(["flex flex-wrap items-center justify-between p-3 gap-2 rounded-md cursor-pointer transition",t.theme]),ref_key:"triggerRef",ref:s},[e.createElementVNode("span",{class:e.normalizeClass(["text-xs truncate max-w-full",m.value===t.placeholder?"text-gray-400":"text-white"])},e.toDisplayString(m.value),3),(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass(["size-3 text-white transition-transform duration-300",r.value?"rotate-180":""]),xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},[...f[1]||(f[1]=[e.createElementVNode("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m19 9-7 7-7-7"},null,-1)])],2))],2),r.value&&!t.teleportTo?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["absolute flex flex-col z-10 mt-1.5 w-full shadow-sm border rounded-md max-h-64 overflow-y-auto hide-scrollbar",t.theme])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.options,g=>(e.openBlock(),e.createElementBlock("button",{key:g.value,class:e.normalizeClass([c(g.value)?"bg-green-500/30 hover:bg-green-500/50":"hover:bg-base-200","flex items-center justify-between gap-2 px-3 py-2 text-left text-sm cursor-pointer transition w-full"]),onClick:y=>h(g.value)},[e.createElementVNode("span",null,e.toDisplayString(g.name),1),c(g.value)?(e.openBlock(),e.createElementBlock("svg",Ry,[...f[2]||(f[2]=[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M5 13l4 4L19 7"},null,-1)])])):e.createCommentVNode("",!0)],10,Oy))),128))],2)):e.createCommentVNode("",!0),r.value&&t.teleportTo?(e.openBlock(),e.createBlock(e.Teleport,{key:1,to:t.teleportTo},[e.createElementVNode("div",{style:e.normalizeStyle(l.value),class:e.normalizeClass(["flex flex-col shadow-sm border rounded-md max-h-64 overflow-y-auto hide-scrollbar",t.theme])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.options,g=>(e.openBlock(),e.createElementBlock("button",{key:g.value,class:e.normalizeClass([c(g.value)?"bg-green-500/30 hover:bg-green-500/50":"hover:bg-base-200","flex items-center justify-between gap-2 px-3 py-2 text-left text-sm cursor-pointer transition w-full"]),onClick:y=>h(g.value)},[e.createElementVNode("span",null,e.toDisplayString(g.name),1),c(g.value)?(e.openBlock(),e.createElementBlock("svg",zy,[...f[3]||(f[3]=[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M5 13l4 4L19 7"},null,-1)])])):e.createCommentVNode("",!0)],10,Hy))),128))],6)],8,["to"])):e.createCommentVNode("",!0)],512))}},[["__scopeId","data-v-bc68049e"]]),jy={class:"flex gap-2"},ao=we({__name:"outcomeButton",props:{outcome:{type:String,default:null}},emits:["update:outcome","change"],setup(t,{emit:n}){const a=t,o=n;async function r(l){const d=a.outcome===l?null:l;o("update:outcome",d),o("change",d)}const i=e.computed(()=>a.outcome==="won"),s=e.computed(()=>a.outcome==="lost");return(l,d)=>(e.openBlock(),e.createElementBlock("div",jy,[e.createElementVNode("button",{onClick:d[0]||(d[0]=u=>r("won")),class:e.normalizeClass(["button_outcome-base",{"button_outcome-active-won":i.value}])},[d[3]||(d[3]=e.createElementVNode("p",null,"Ganho",-1)),(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass([{"svg_outcome-active-won":i.value},"text-white size-4"]),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"none"},[...d[2]||(d[2]=[e.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.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)])],2))],2),e.createElementVNode("button",{onClick:d[1]||(d[1]=u=>r("lost")),class:e.normalizeClass(["button_outcome-base",{"button_outcome-active-lost":s.value}])},[(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass([{"svg_outcome-active-lost":s.value},"text-white size-4 mt-0.8"]),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 19",fill:"none"},[...d[4]||(d[4]=[e.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.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)])],2)),d[5]||(d[5]=e.createElementVNode("p",null,"Perdido",-1))],2)]))}},[["__scopeId","data-v-cde71744"]]),Gy=["disabled"],Iy=["onMousemove","onClick"],oo=we({__name:"ratingInput",props:{modelValue:{type:Number,default:0},size:{type:Number,default:24},gap:{type:Number,default:4},onRate:{type:Function,default:null},readonly:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(t,{emit:n}){const a=t,o=n,r=e.ref(a.modelValue),i=e.ref(0);e.watch(()=>a.modelValue,c=>{r.value=c});const s=e.computed(()=>i.value||r.value);function l(c){const h=s.value-c+1;return h>=1?"100%":h>=.5?"50%":h>0?`${h*100}%`:"0%"}function d(c,h){const m=c.currentTarget.getBoundingClientRect(),p=c.offsetX<m.width/2;i.value=h-(p?.5:0)}function u(c,h){const m=c.currentTarget.getBoundingClientRect(),p=c.offsetX<m.width/2,f=h-(p?.5:0);r.value=r.value===f?0:f,o("update:modelValue",r.value),typeof a.onRate=="function"&&a.onRate(r.value)}return(c,h)=>(e.openBlock(),e.createElementBlock("main",{disabled:a.readonly,class:"flex select-none",style:e.normalizeStyle({gap:`${t.gap}px`})},[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(5,m=>e.createElementVNode("div",{key:m,class:e.normalizeClass(["relative",{"cursor-pointer":!a.readonly,"cursor-default":a.readonly}]),style:e.normalizeStyle({width:`${t.size}px`,height:`${t.size}px`}),onMousemove:p=>!a.readonly&&d(p,m),onMouseleave:h[0]||(h[0]=p=>!a.readonly&&(i.value=0)),onClick:p=>!a.readonly&&u(p,m)},[(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",class:"absolute top-0 left-0 color-disabled",style:e.normalizeStyle({width:`${t.size}px`,height:`${t.size}px`})},[...h[1]||(h[1]=[e.createElementVNode("path",{d:"M13.849 4.22c-.684-1.626-3.014-1.626-3.698 0L8.397 8.387l-4.552.361c-1.775.14-2.495 2.331-1.142 3.477l3.468 2.937-1.06 4.392c-.413 1.713 1.472 3.067 2.992 2.149L12 19.35l3.897 2.354c1.52.918 3.405-.436 2.992-2.15l-1.06-4.39 3.468-2.938c1.353-1.146.633-3.336-1.142-3.477l-4.552-.36-1.754-4.17Z"},null,-1)])],4)),e.createElementVNode("div",{class:e.normalizeClass(["absolute top-0 left-0 h-full overflow-hidden transition-all duration-150",{"text-primary":!i.value,"text-hover":i.value>0}]),style:e.normalizeStyle({width:l(m),height:`${t.size}px`})},[(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",style:e.normalizeStyle({width:`${t.size}px`,height:`${t.size}px`})},[...h[2]||(h[2]=[e.createElementVNode("path",{d:"M13.849 4.22c-.684-1.626-3.014-1.626-3.698 0L8.397 8.387l-4.552.361c-1.775.14-2.495 2.331-1.142 3.477l3.468 2.937-1.06 4.392c-.413 1.713 1.472 3.067 2.992 2.149L12 19.35l3.897 2.354c1.52.918 3.405-.436 2.992-2.15l-1.06-4.39 3.468-2.938c1.353-1.146.633-3.336-1.142-3.477l-4.552-.36-1.754-4.17Z"},null,-1)])],4))],6)],46,Iy)),64))],12,Gy))}},[["__scopeId","data-v-bc0c138b"]]),qy={key:0,class:"header-products-list"},Wy={class:"total-price-badge"},Uy={key:1,class:"flex items-center justify-center overflow-hidden h-full"},Zy={key:2,class:"list-products-list"},Yy={key:0},Xy={class:"w-full text-gray-500 list-none list-inside dark:text-gray-400 divide-y divide-base-200"},Ky={key:0,class:"department-blocked"},Qy={class:"flex gap-2 items-center pl-2"},Jy=["src"],ek={key:1,class:"empty-product-photo"},tk={class:"flex flex-col items-start"},nk=["title"],ak={class:"text-[10px] flex gap-1 items-center"},ok={class:"text-xs font-semibold font-sans"},rk={key:0,class:"font-sans text-primary text-white font-semibold"},ik={class:"text-green-400 font-semibold"},sk={class:"flex flex-col gap-1 pr-2"},lk={class:"flex gap-1"},ck=["disabled","onClick"],dk=["disabled","onClick"],uk={key:1,class:"flex flex-col flex-1 gap-2 items-center justify-center"},fk={key:0,class:"text-gray-200 text-[10px] md:text-xs font-sans"},ro=we({__name:"listProducts",props:{modelValue:{type:Array,default:()=>[]},allProducts:{type:Object,default:()=>{}},onMouseLeave:{type:Function,required:!1},departmentBypass:{type:String,default:""}},emits:["update:modelValue"],setup(t,{emit:n}){const a=t,o=n,r=e.ref(!1),i=e.ref([]),s=e.computed(()=>[...i.value].sort((B,V)=>{const S=z(B),v=z(V);return S===v?0:S-v}));function l(B){return Array.isArray(B)?B.map(V=>V&&V.product?{product:{...V.product},quantity:V.quantity??0}:{product:{...V},quantity:V.quantity??0}):[]}const d=e.ref(l(a.modelValue)),u=e.ref(1),c=e.ref(null),h=e.ref(null),m=e.computed(()=>d.value.reduce((B,V)=>{var P;const S=((P=V.product)==null?void 0:P.price)||V.price||0,v=V.quantity||0;return B+S*v},0));function p(B){var V;return((V=B==null?void 0:B.product)==null?void 0:V.id)??(B==null?void 0:B.id)}const f=e.computed(()=>{const B={};return d.value.forEach(V=>{const S=p(V);S!=null&&(B[S]=V.quantity)}),B}),g=B=>f.value[B.id]||0,y=B=>{if(z(B))return;const V=d.value.find(S=>p(S)===B.id);V?V.quantity++:d.value.push({product:{...B},quantity:1})},k=B=>{if(z(B))return;const V=d.value.find(S=>p(S)===B.id);V&&(V.quantity>0?V.quantity--:V.quantity=0)},E=(B,V)=>{const S=new URLSearchParams,v=B;return Object.keys(V).forEach(P=>S.append(P,V[P])),`${v}?${S.toString()}`},C=async B=>{try{const{data:V}=await Xe.get(E(_0,{page:u.value,...B})),{results:S,next:v,previous:P}=V;if(c.value=v,h.value=P,u.value===1)i.value=S;else{const Z=new Set(i.value.map(J=>J.id)),Q=S.filter(J=>!Z.has(J.id));i.value=[...i.value,...Q]}c.value&&(u.value+=1)}catch(V){console.error("Erro ao buscar produtos:",V)}};e.onMounted(async()=>{var B;a.allProducts&&((B=a.allProducts.results)==null?void 0:B.length)>0?(i.value=a.allProducts.results,c.value=a.allProducts.next||null,h.value=a.allProducts.previous||null,u.value=2):(r.value=!0,await C(),r.value=!1)}),e.watch(d,B=>{o("update:modelValue",B.map(V=>({product:V.product,quantity:V.quantity})))},{deep:!0}),e.watch(()=>a.modelValue,B=>{const V=l(B);JSON.stringify(V)!==JSON.stringify(d.value)&&(d.value=V)},{deep:!0});const b=e.ref(!1),N=async B=>{if(!b.value){b.value=!0;try{if(!c.value){B.complete();return}await C(),c.value?B.loaded():B.complete()}catch(V){console.error("Erro ao carregar produtos:",V),B.complete()}finally{b.value=!1}}};function D(){typeof a.onMouseLeave=="function"&&a.onMouseLeave()}const z=B=>{const V=a.departmentBypass;if(!V)return!1;const S=Array.isArray(B==null?void 0:B.department)?B.department:[];return S.length===0?!1:!S.some(P=>P&&P.id===V)},M=e.ref({query:""}),x=e.ref(!1);let T;return e.watch(M,()=>{clearTimeout(T),T=setTimeout(async()=>{const{query:B}=M.value;u.value=1,x.value=B!=null,console.log("Buscando por:",x.value),r.value=!0,await C({query:B}),r.value=!1},500)},{deep:!0}),(B,V)=>{const S=e.resolveComponent("SimpleLoader");return e.openBlock(),e.createElementBlock("div",{class:"list-products-wrapper",onMouseleave:D},[i.value.length>0&&!x.value||x.value?(e.openBlock(),e.createElementBlock("header",qy,[e.withDirectives(e.createElementVNode("input",{class:"search-products-input",type:"text",placeholder:"Buscar...","onUpdate:modelValue":V[0]||(V[0]=v=>M.value.query=v)},null,512),[[e.vModelText,M.value.query]]),e.createElementVNode("section",Wy," Valor total: "+e.toDisplayString(m.value.toLocaleString("pt-BR",{style:"currency",currency:"BRL"})),1)])):e.createCommentVNode("",!0),r.value?(e.openBlock(),e.createElementBlock("div",Uy,[e.createVNode(S)])):(e.openBlock(),e.createElementBlock("main",Zy,[i.value.length>0?(e.openBlock(),e.createElementBlock("div",Yy,[e.createElementVNode("ul",Xy,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value,(v,P)=>(e.openBlock(),e.createElementBlock("li",{class:"flex w-full justify-between items-center py-1.5 relative",key:v.id},[z(v)?(e.openBlock(),e.createElementBlock("span",Ky,[...V[1]||(V[1]=[e.createElementVNode("svg",{class:"size-5 text-white","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"currentColor",viewBox:"0 0 24 24"},[e.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.createElementVNode("p",{class:"text-xs text-white/80"}," Este produto não faz parte do seu departamento ",-1)])])):e.createCommentVNode("",!0),e.createElementVNode("div",Qy,[e.createElementVNode("section",null,[v.photo?(e.openBlock(),e.createElementBlock("img",{key:0,class:"size-8 rounded-md",src:v.photo},null,8,Jy)):(e.openBlock(),e.createElementBlock("div",ek,[...V[2]||(V[2]=[e.createElementVNode("svg",{class:"size-4","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},[e.createElementVNode("path",{fill:"currentColor",d:"M4 19v2c0 .5523.44772 1 1 1h14c.5523 0 1-.4477 1-1v-2H4Z"}),e.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-1V3Zm1.01 8H8.00002v2.01H10.01V11Zm.99 0h2.01v2.01H11V11Zm5.01 0H14v2.01h2.01V11Zm-8.00998 3H10.01v2.01H8.00002V14ZM13.01 14H11v2.01h2.01V14Zm.99 0h2.01v2.01H14V14ZM11 4h6v1h-6V4Z","clip-rule":"evenodd"})],-1)])]))]),e.createElementVNode("section",tk,[e.createElementVNode("p",{title:v.name,class:e.normalizeClass(["label-product-name",g(v)>0?"text-white":""])},e.toDisplayString(v.name),11,nk),e.createElementVNode("span",ak,[e.createElementVNode("p",ok," R$ "+e.toDisplayString(v.price.toLocaleString("pt-BR",{style:"currency",currency:"BRL"})),1),g(v)>0?(e.openBlock(),e.createElementBlock("p",rk,[e.createTextVNode(" - x "+e.toDisplayString(g(v))+" = ",1),e.createElementVNode("a",ik,e.toDisplayString((v.price*g(v)).toLocaleString("pt-BR",{style:"currency",currency:"BRL"})),1)])):e.createCommentVNode("",!0)])])]),e.createElementVNode("section",sk,[e.createElementVNode("p",{class:e.normalizeClass(["text-xs font-semibold font-sans products-and-services_badge",v.recurrence])},e.toDisplayString(v.recurrence==="monthly"?"Mensal":"Único"),3),e.createElementVNode("div",lk,[e.createElementVNode("button",{disabled:z(v),class:"action-list-button",onClick:Z=>k(v)}," - ",8,ck),e.createElementVNode("p",{class:e.normalizeClass(["w-5 text-xs flex items-center justify-center font-semibold font-sans",g(v)>0?"text-white":""])},e.toDisplayString(g(v)),3),e.createElementVNode("button",{disabled:z(v),class:"action-list-button",onClick:Z=>y(v)}," + ",8,dk)])])]))),128))]),c.value?(e.openBlock(),e.createBlock(e.unref(Xt),{key:0,onInfinite:N,class:"p-3 bg-base-300"},{spinner:e.withCtx(()=>[...V[3]||(V[3]=[e.createElementVNode("section",{class:"w-full justify-center items-center flex"},[e.createElementVNode("div",{class:"size-4 animate-spin rounded-full border-4 border-solid border-white border-t-transparent"})],-1)])]),_:1})):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),!r.value&&i.value.length<=0?(e.openBlock(),e.createElementBlock("section",uk,[V[5]||(V[5]=e.createElementVNode("p",{class:"text-gray-200 text-xs md:text-base font-sans"}," Nenhum item encontrado ",-1)),x.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("p",fk,[...V[4]||(V[4]=[e.createTextVNode(" Comece criando seu primeiro na aba ",-1),e.createElementVNode("strong",null,"Produtos",-1)])]))])):e.createCommentVNode("",!0)]))],32)}}},[["__scopeId","data-v-5448a2c7"]]),mk={},hk={class:"flex items-center justify-center h-full"};function pk(t,n){return e.openBlock(),e.createElementBlock("div",hk,[...n[0]||(n[0]=[e.createElementVNode("span",{class:"products-and-services_bar"},null,-1),e.createElementVNode("span",{class:"products-and-services_bar"},null,-1),e.createElementVNode("span",{class:"products-and-services_bar"},null,-1)])])}const io=we(mk,[["render",pk],["__scopeId","data-v-974c9099"]]),gk={key:0,class:"flex items-center justify-center overflow-hidden h-full"},yk={key:1},kk={class:"flex flex-col gap-2 p-2"},xk=["id","onUpdate:modelValue"],bk=["for","title"],wk=["id","onUpdate:modelValue"],Ek=["id","onUpdate:modelValue"],vk={key:2,class:"flex-1 justify-center items-center flex flex-col gap-2 h-full"},Ck=we({__name:"listSegmentationsFields",props:{modelValue:{type:Array,default:()=>[]}},emits:["update:modelValue"],setup(t,{emit:n}){const a=t,o=n,r=e.ref(s(a.modelValue)),i=e.ref(!1);function s(d){return JSON.parse(JSON.stringify(d))}const l=async()=>{try{i.value=!0;const d=await Xe.get(R0);r.value=d.data}catch(d){console.error("Error fetching segmentation fields:",d)}finally{i.value=!1}};return e.onMounted(()=>{a.modelValue.length===0&&l(),r.value.forEach(d=>{d.type==="bool"&&(d.content=d.content==="True")})}),e.watch(r,d=>{JSON.stringify(d)!==JSON.stringify(a.modelValue)&&o("update:modelValue",s(d))},{deep:!0}),(d,u)=>{const c=e.resolveComponent("SimpleSelect");return i.value?(e.openBlock(),e.createElementBlock("div",gk,[e.createVNode(io)])):r.value.length>0?(e.openBlock(),e.createElementBlock("div",yk,[u[0]||(u[0]=e.createElementVNode("header",{style:{"z-index":"9999"},class:"header-segmentation-fields"},[e.createElementVNode("p",{class:"text-xs font-semibold"},"Campos Personalizados")],-1)),e.createElementVNode("div",kk,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.value,h=>(e.openBlock(),e.createElementBlock("section",{key:h.id},[e.createElementVNode("div",{class:e.normalizeClass(["flex w-full gap-1.5 rounded-md",h.type==="bool"?"flex-row items-center":"flex-col items-start"])},[h.type==="bool"?e.withDirectives((e.openBlock(),e.createElementBlock("input",{key:0,id:"seg-label-"+h.id,class:"checkbox size-4 rounded-sm",type:"checkbox","onUpdate:modelValue":m=>h.content=m},null,8,xk)),[[e.vModelCheckbox,h.content]]):e.createCommentVNode("",!0),e.createElementVNode("label",{for:"seg-label-"+h.id,class:"text-xs text-[12px] font-sans font-semibold",title:h.type==="string"?"texto":h.type==="bool"?"verdadeiro/falso":h.type==="float"?"número":h.type==="list"?"lista":"Desconhecido"},e.toDisplayString(h.name),9,bk),h.type==="string"?e.withDirectives((e.openBlock(),e.createElementBlock("textarea",{key:1,id:"seg-label-"+h.id,placeholder:"campo do tipo texto",class:"input_field",type:"text","onUpdate:modelValue":m=>h.content=m},null,8,wk)),[[e.vModelText,h.content]]):e.createCommentVNode("",!0),h.type==="float"?e.withDirectives((e.openBlock(),e.createElementBlock("input",{key:2,id:"seg-label-"+h.id,placeholder:"campo do tipo número",class:"input_field",type:"number","onUpdate:modelValue":m=>h.content=m},null,8,Ek)),[[e.vModelText,h.content]]):e.createCommentVNode("",!0),h.type==="list"?(e.openBlock(),e.createBlock(c,{key:3,modelValue:h.content,"onUpdate:modelValue":m=>h.content=m,options:h.additional_info.list.options.map(m=>({value:m,name:m})),placeholder:"Selecione uma opção",theme:"bg-base-300 border-base-100 text-white","teleport-to":"body"},null,8,["modelValue","onUpdate:modelValue","options"])):e.createCommentVNode("",!0)],2)]))),128))])])):(e.openBlock(),e.createElementBlock("section",vk,[...u[1]||(u[1]=[e.createElementVNode("p",{class:"text-gray-200 text-xs md:text-base font-sans"}," Nenhum item encontrado ",-1),e.createElementVNode("p",{class:"text-gray-200 text-[10px] md:text-xs font-sans"},[e.createTextVNode(" Comece criando seu primeiro na aba "),e.createElementVNode("strong",null,"Campos Personalizados")],-1)])]))}}},[["__scopeId","data-v-411033e7"]]),Sk={class:"modal-form-container-wrapper"},Bk={class:"modal_responsive"},Vk={style:{"min-height":"100%"},class:"flex min-h-full items-center justify-center text-center"},Mk={class:"modal-form-container"},Nk={class:"modal-form-header"},Ak={class:"flex items-center gap-2"},Tk={class:"flex flex-col items-start"},Dk={class:"text-lg"},Lk={key:0,class:"text-xs text-gray-400"},Fk={class:"flex gap-2 items-center"},$k={class:"modal-form-body"},Pk={class:"left-column"},_k={title:"Não é possível alterar a foto do cliente neste momento",class:"flex items-center justify-center w-full"},Ok=["src"],Rk={key:1,class:"bg-base-300 p-2 rounded-xl size-24 flex items-center justify-center border border-base-100 cursor-not-allowed"},Hk={class:"modal-form-left-column-body"},zk={class:"w-full"},jk={class:"flex flex-col gap-2 w-full"},Gk={class:"flex items-center justify-between px-1"},Ik={key:0,class:"flex flex-1 min-h-0 flex-col gap-2"},qk={class:"flex items-center justify-between px-1"},Wk={class:"w-full h-full bg-base-300 rounded-lg flex flex-col min-h-0"},Uk={class:"right-column"},Zk={key:0,class:"flex gap-1 px-1.5"},Yk=["disabled"],Xk={class:"flex w-full relative"},Kk={key:0,class:"text-xs absolute z-50 -bottom-2 left-1 bg-base-300 px-2 py-0.5 rounded-lg text-red-500 select-none shadow-sm shadow-base-100"},Qk={class:"segmentation-fields-container"},Jk={class:"list-products-container"},ex={class:"modal-form-end-button"},tx=["disabled"],nx={key:0,class:"size-4 animate-spin rounded-full border-4 border-solid text-white border-t-transparent"},ax={key:1,class:"text-xs font-semibold"},gi=we({__name:"clientsForm",props:{form:{type:Object,default:()=>({tags:[],country:"BR",name:"",photo:null,raw_telephone:"",telephone:"",whatsapp_id:"",whatsapp_jid:"",whatsapp_lid:null,rating:null,outcome:null,created_at:"",updated_at:"",client:"",segmentation_fields:[],products:[],notes:""})},save:{type:Function,default:()=>{}},hasCrmPlus:{type:Boolean,default:!1},allProducts:{type:Object,default:()=>{}},allTags:{type:Object,default:()=>{}},departmentBypass:{type:String,default:""}},emits:["close","save"],setup(t,{emit:n}){const a=n,o=e.ref("data"),r=t,i=e.reactive({...r.form}),s=e.ref(!1),l=e.ref(!1),d=e.ref([{title:"Nome",info:!1,type:"text",placeholder:"Digite o nome do contato",empty:e.computed(()=>l.value?l.value.some(p=>p.startsWith("name")):!1),data:e.computed({get:()=>i.name,set:p=>i.name=p})},{title:"Descrição",info:"Descreva o produto para facilitar a identificação",type:"textArea",placeholder:"Automatize fluxos de trabalho com integração rápida e segura entre sistemas.",empty:!1,data:e.computed({get:()=>i.notes,set:p=>i.notes=p})}]),u=e.computed(()=>r.form.mode==="edit"?"Editar cliente":"Adicionar Novo Cliente"),c=p=>{var g,y;const f=[];return(g=p.name)!=null&&g.trim()||f.push("name"),(y=p.telephone)!=null&&y.trim()||f.push("telephone"),f},h=e.computed(()=>l.value?l.value.some(p=>p.startsWith("telephone")):!1),m=async()=>{try{if(s.value=!0,l.value=c(i),l.value.length>0)return;await r.save(i)}catch(p){console.error(p)}finally{s.value=!1}};return e.watch(()=>r.form,p=>{Object.assign(i,e.toRaw(p))},{immediate:!0}),(p,f)=>{var k,E,C;const g=e.resolveComponent("Popper"),y=e.resolveComponent("vue-tel-input");return e.openBlock(),e.createElementBlock("div",Sk,[f[24]||(f[24]=e.createElementVNode("div",{class:"modal-form-background"},null,-1)),e.createElementVNode("div",Bk,[e.createElementVNode("div",Vk,[e.createElementVNode("div",Mk,[e.createElementVNode("div",{class:e.normalizeClass([{noCrmPlus:!t.hasCrmPlus},"clients-form-background relative rounded-2xl bg-base-200 backdrop-blur-lg"])},[e.createElementVNode("div",Nk,[e.createElementVNode("span",Ak,[f[14]||(f[14]=e.createElementVNode("svg",{class:"size-6 text-green-500","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"currentColor",viewBox:"0 0 24 24"},[e.createElementVNode("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"})],-1)),e.createElementVNode("span",Tk,[e.createElementVNode("p",Dk,e.toDisplayString(u.value),1),i.id?(e.openBlock(),e.createElementBlock("p",Lk," ID: "+e.toDisplayString(i.id),1)):e.createCommentVNode("",!0)])]),e.createElementVNode("section",Fk,[e.createElementVNode("button",{class:"bg-base-200 p-1.5 rounded-md hover:bg-base-200/70 transition",onClick:f[0]||(f[0]=b=>a("close"))},[...f[15]||(f[15]=[e.createElementVNode("svg",{class:"size-4 text-white","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},[e.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.createElementVNode("div",$k,[e.createElementVNode("section",Pk,[e.createElementVNode("div",{class:e.normalizeClass([t.hasCrmPlus?"justify-between":"justify-center","flex flex-col gap-2 items-center"])},[t.hasCrmPlus?(e.openBlock(),e.createBlock(ao,{key:0,outcome:i.outcome,"onUpdate:outcome":f[1]||(f[1]=b=>i.outcome=b)},null,8,["outcome"])):e.createCommentVNode("",!0),e.createElementVNode("div",_k,[i.photo?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:f[2]||(f[2]=b=>p.viewSingleImage(i.photo))},[e.createElementVNode("img",{src:i.photo,alt:"",class:"size-24 object-cover rounded-md cursor-not-allowed"},null,8,Ok)])):(e.openBlock(),e.createElementBlock("span",Rk,[...f[16]||(f[16]=[e.createElementVNode("svg",{class:"size-14","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"currentColor",viewBox:"0 0 24 24"},[e.createElementVNode("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"})],-1)])]))]),t.hasCrmPlus?(e.openBlock(),e.createBlock(oo,{key:1,modelValue:i.rating,"onUpdate:modelValue":f[3]||(f[3]=b=>i.rating=b)},null,8,["modelValue"])):e.createCommentVNode("",!0)],2),e.createElementVNode("div",Hk,[e.createElementVNode("div",zk,[e.createVNode(no,{"onUpdate:content":f[4]||(f[4]=b=>d.value[0].data=b.data),content:d.value[0]},null,8,["content"])]),e.createElementVNode("div",jk,[e.createElementVNode("header",Gk,[f[18]||(f[18]=e.createElementVNode("p",{class:"text-xs font-medium text-left"}," Escolha suas etiquetas ",-1)),e.createVNode(g,{hover:"",content:"Etiquetas que estão atribuídas ao cliente",placement:"top",arrow:""},{default:e.withCtx(()=>[...f[17]||(f[17]=[e.createElementVNode("svg",{class:"size-4 text-white",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24"},[e.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M2 12C2 6.477 6.477 2 12 2s10 4.477 10 10-4.477 10-10 10S2 17.523 2 12Zm9.408-5.5a1 1 0 1 0 0 2h.01a1 1 0 1 0 0-2h-.01ZM10 10a1 1 0 1 0 0 2h1v3h-1a1 1 0 1 0 0 2h4a1 1 0 1 0 0-2h-1v-4a1 1 0 0 0-1-1h-2Z"})],-1)])]),_:1})]),e.createVNode(to,{teleportTo:"body",maxHeight:"10rem",allTags:t.allTags,modelValue:i.tags,"onUpdate:modelValue":f[5]||(f[5]=b=>i.tags=b)},null,8,["allTags","modelValue"])]),t.hasCrmPlus?(e.openBlock(),e.createElementBlock("div",Ik,[e.createElementVNode("header",qk,[f[20]||(f[20]=e.createElementVNode("p",{class:"text-xs font-medium text-left"}," Anotações sobre o cliente ",-1)),e.createVNode(g,{hover:"",content:"Anotações adicionais sobre o cliente",placement:"top",arrow:""},{default:e.withCtx(()=>[...f[19]||(f[19]=[e.createElementVNode("svg",{class:"size-4 text-white",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24"},[e.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M2 12C2 6.477 6.477 2 12 2s10 4.477 10 10-4.477 10-10 10S2 17.523 2 12Zm9.408-5.5a1 1 0 1 0 0 2h.01a1 1 0 1 0 0-2h-.01ZM10 10a1 1 0 1 0 0 2h1v3h-1a1 1 0 1 0 0 2h4a1 1 0 1 0 0-2h-1v-4a1 1 0 0 0-1-1h-2Z"})],-1)])]),_:1})]),e.createElementVNode("div",Wk,[e.withDirectives(e.createElementVNode("textarea",{class:"form-text-area flex-1 h-full min-h-0","onUpdate:modelValue":f[6]||(f[6]=b=>i.notes=b),maxlength:"1000","aria-label":"Anotações do cliente"},null,512),[[e.vModelText,i.notes]]),e.createElementVNode("div",{class:e.normalizeClass(["text-[10px] bg-base-300 px-1 rounded-md text-right mb-1 mr-1",((k=i.notes)==null?void 0:k.length)>900?"text-red-500":((E=i.notes)==null?void 0:E.length)>700?"text-yellow-500":"text-gray-400"])},e.toDisplayString(((C=i.notes)==null?void 0:C.length)||0)+"/1000 ",3)])])):e.createCommentVNode("",!0)])]),e.createElementVNode("section",Uk,[t.hasCrmPlus?(e.openBlock(),e.createElementBlock("div",Zk,[e.createElementVNode("button",{class:e.normalizeClass(["toggle-page-button",{selected:o.value==="data"}]),onClick:f[7]||(f[7]=b=>o.value="data")}," Informações ",2),e.createElementVNode("button",{class:e.normalizeClass(["toggle-page-button",{selected:o.value==="products"}]),disabled:!t.hasCrmPlus,onClick:f[8]||(f[8]=b=>o.value="products")},[...f[21]||(f[21]=[e.createElementVNode("p",null,"Produtos",-1)])],10,Yk)])):e.createCommentVNode("",!0),e.withDirectives(e.createElementVNode("div",{class:e.normalizeClass([t.hasCrmPlus?"pt-1.5":"pt-0","flex flex-col gap-2 flex-1 min-h-0 px-1.5 overflow-hidden"])},[e.createElementVNode("div",{class:e.normalizeClass([h.value&&!i.telephone?"border-red-500":"border-white/10","rounded-md bg-base-200 border shadow-sm transition-shadow duration-200 hover:shadow-md"])},[f[23]||(f[23]=e.createElementVNode("h1",{class:"text-start w-full items-center justify-between flex p-2"},[e.createElementVNode("p",{class:"text-xs font-semibold"},"Contatos")],-1)),e.createElementVNode("div",Xk,[f[22]||(f[22]=e.createElementVNode("span",{style:{"border-bottom-left-radius":"0.4rem"},class:"bg-base-300 rounded-bl-lg rounded-t-none flex justify-center items-center w-8"},[e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",class:"size-4 text-gray-500 ml-1.5",viewBox:"0 0 17 17"},[e.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)),e.createVNode(y,{class:"z-40 w-full",onCountryChanged:f[9]||(f[9]=b=>i.country=b.iso2),mode:"national",validCharactersOnly:!0,defaultCountry:i.country,inputOptions:{placeholder:"Coloque seu telefone",showDialCode:!1,required:!0,searchBoxPlaceholder:"Brazil"},dropdownOptions:{showSearchBox:!0,showFlags:!0,searchBoxPlaceholder:"Brazil"},modelValue:i.telephone,"onUpdate:modelValue":f[10]||(f[10]=b=>i.telephone=b)},null,8,["defaultCountry","modelValue"]),h.value&&!i.telephone?(e.openBlock(),e.createElementBlock("span",Kk," Campo obrigatorio ")):e.createCommentVNode("",!0)])],2),e.createElementVNode("div",Qk,[e.createVNode(Ck,{modelValue:i.segmentation_fields,"onUpdate:modelValue":f[11]||(f[11]=b=>i.segmentation_fields=b)},null,8,["modelValue"])])],2),[[e.vShow,o.value==="data"]]),e.withDirectives(e.createElementVNode("div",Jk,[e.createVNode(ro,{modelValue:i.products,"onUpdate:modelValue":f[12]||(f[12]=b=>i.products=b),allProducts:t.allProducts,departmentBypass:t.departmentBypass},null,8,["modelValue","allProducts","departmentBypass"])],512),[[e.vShow,o.value==="products"]])])]),e.createElementVNode("div",ex,[e.createElementVNode("button",{disabled:s.value,class:"button-save-clients",onClick:f[13]||(f[13]=b=>m())},[s.value?(e.openBlock(),e.createElementBlock("div",nx)):(e.openBlock(),e.createElementBlock("p",ax,"Salvar"))],8,tx)])],2)])])])])}}},[["__scopeId","data-v-842ad482"]]),ox={class:"flex justify-center items-center"},rx={class:"text-[8px] font-bold"},ix={class:"tag-view-popper-content-text"},sx={class:"flex"},lx={class:"svg-list-tag","aria-hidden":"true",viewBox:"0 0 25 100",style:{color:"#d1d5db"}},cx={style:{backgroundColor:"#d1d5db"},class:"w-full ml-[-0.5rem] rounded-r-md inline-flex items-center justify-center p-0.5 border-b-2 border-gray-900"},dx={class:"text-[8px] text-black font-bold"},ux={class:"max-h-64 overflow-y-auto hide-scrollbar"},fx={class:"flex flex-col gap-2"},mx={class:"tag-view-popper-content-text"},hx={key:1},yi=we({__name:"tagView",props:{clients:{type:Object,required:!0}},setup(t){const n=t;return e.computed(()=>{var a,o;return((o=(a=n.clients)==null?void 0:a.tags)==null?void 0:o.slice(0,4))||[]}),(a,o)=>{const r=e.resolveComponent("Popper");return e.openBlock(),e.createElementBlock("section",ox,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.clients.tags.slice(0,4),(i,s)=>(e.openBlock(),e.createBlock(r,{class:"tag-view-theme",arrow:"",hover:"",key:s},{content:e.withCtx(()=>[e.createElementVNode("p",ix,e.toDisplayString(i.name),1)]),default:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass(["flex",e.unref(vn)(i.color)])},[(e.openBlock(),e.createElementBlock("svg",{class:"svg-list-tag","aria-hidden":"true",viewBox:"0 0 30 100",style:e.normalizeStyle({color:i.color||"#fff"})},[...o[0]||(o[0]=[e.createElementVNode("path",{d:"M49.9,0a17.1,17.1,0,0,0-12,5L5,37.9A17,17,0,0,0,5,62L37.9,94.9a17.1,17.1,0,0,0,12,5ZM25.4,59.4a9.5,9.5,0,1,1,9.5-9.5A9.5,9.5,0,0,1,25.4,59.4Z",fill:"currentColor"},null,-1)])],4)),e.createElementVNode("span",{style:e.normalizeStyle({backgroundColor:i.color||"#fff"}),class:"w-full ml-[-0.10rem] rounded-r-md inline-flex items-center justify-center px-1 py-0.5 border-b-2 border-gray-900"},[e.createElementVNode("p",rx,e.toDisplayString(i.name.charAt(0).toUpperCase()),1)],4)],2)]),_:2},1024))),128)),t.clients.tags.length>4?(e.openBlock(),e.createBlock(r,{key:0,arrow:"",hover:"",class:"tag-view-theme"},{content:e.withCtx(()=>[e.createElementVNode("section",ux,[e.createElementVNode("div",fx,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.clients.tags,i=>(e.openBlock(),e.createElementBlock("div",{key:i.id||i.name,class:"relative inline-flex items-center rounded-md overflow-hidden"},[(e.openBlock(),e.createElementBlock("svg",{class:"size-6","aria-hidden":"true",viewBox:"0 0 75 100",style:e.normalizeStyle({color:i.color||"#fff"})},[...o[2]||(o[2]=[e.createElementVNode("path",{d:"M49.9,0a17.1,17.1,0,0,0-12,5L5,37.9A17,17,0,0,0,5,62L37.9,94.9a17.1,17.1,0,0,0,12,5ZM25.4,59.4a9.5,9.5,0,1,1,9.5-9.5A9.5,9.5,0,0,1,25.4,59.4Z",fill:"currentColor"},null,-1)])],4)),e.createElementVNode("span",{class:e.normalizeClass(["p-0.5 w-full text-sm font-semibold truncate text-start -ml-2",e.unref(vn)(i.color)]),style:e.normalizeStyle(["max-width: 12rem",{background:i.color||"#fff"}])},[e.createElementVNode("p",mx,e.toDisplayString(i.name),1)],6)]))),128))])])]),default:e.withCtx(()=>[e.createElementVNode("div",sx,[(e.openBlock(),e.createElementBlock("svg",lx,[...o[1]||(o[1]=[e.createElementVNode("path",{d:"M49.9,0a17.1,17.1,0,0,0-12,5L5,37.9A17,17,0,0,0,5,62L37.9,94.9a17.1,17.1,0,0,0,12,5ZM25.4,59.4a9.5,9.5,0,1,1,9.5-9.5A9.5,9.5,0,0,1,25.4,59.4Z",fill:"currentColor"},null,-1)])])),e.createElementVNode("span",cx,[e.createElementVNode("p",dx," +"+e.toDisplayString(t.clients.tags.length-4),1)])])]),_:1})):e.createCommentVNode("",!0),!t.clients.tags||t.clients.tags.length===0?(e.openBlock(),e.createElementBlock("span",hx,"-")):e.createCommentVNode("",!0)])}}},[["__scopeId","data-v-e2356f0a"]]),ki=we({__name:"floating-dev",setup(t){const n=e.ref(!1),a=e.ref({x:30,y:30}),o=e.ref({x:0,y:0}),r=e.ref(!1),i=e.ref(null),s=e.ref(null),l=e.ref({vertical:"bottom",horizontal:"right"}),d=e.computed(()=>({position:"fixed",left:`${a.value.x}px`,top:`${a.value.y}px`,zIndex:1e3,cursor:r.value?"grabbing":"grab"})),u=e.computed(()=>{const g={position:"absolute",background:"#fff",borderRadius:"10px",boxShadow:"0 4px 15px rgba(0, 0, 0, 0.2)",width:"280px",maxWidth:"90vw",zIndex:1001};return l.value.vertical==="top"?g.bottom="60px":g.top="60px",l.value.horizontal==="left"?g.right="0":g.left="0",g});async function c(){if(n.value){n.value=!1;return}n.value=!0,await e.nextTick(),h()}function h(){if(!i.value||!s.value)return;const g=i.value.getBoundingClientRect(),y=s.value.offsetWidth,k=s.value.offsetHeight,E={top:g.top,bottom:window.innerHeight-(g.top+g.height),left:g.left,right:window.innerWidth-(g.left+g.width)};l.value.vertical=E.bottom<k&&E.top>k?"top":"bottom",l.value.horizontal=E.right<y&&E.left>y?"left":"right"}function m(g){r.value=!0;const y=g.type.includes("touch")?g.touches[0]:g;o.value={x:y.clientX-a.value.x,y:y.clientY-a.value.y},document.addEventListener("mousemove",p),document.addEventListener("mouseup",f),document.addEventListener("touchmove",p),document.addEventListener("touchend",f)}function p(g){if(!r.value)return;const y=g.type.includes("touch")?g.touches[0]:g,k=y.clientX-o.value.x,E=y.clientY-o.value.y,C=window.innerWidth-i.value.offsetWidth,b=window.innerHeight-i.value.offsetHeight;a.value.x=Math.min(Math.max(0,k),C),a.value.y=Math.min(Math.max(0,E),b)}function f(){r.value=!1,document.removeEventListener("mousemove",p),document.removeEventListener("mouseup",f),document.removeEventListener("touchmove",p),document.removeEventListener("touchend",f)}return e.onBeforeUnmount(f),(g,y)=>(e.openBlock(),e.createElementBlock("div",{class:"floating-widget",style:e.normalizeStyle(d.value),ref_key:"widgetRef",ref:i,onMousedown:m,onTouchstart:m},[e.createElementVNode("button",{class:"floating-button",onClick:e.withModifiers(c,["stop"]),"aria-label":"Abrir painel flutuante"},[...y[0]||(y[0]=[e.createElementVNode("svg",{class:"floating-button-svg",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},[e.createElementVNode("path",{d:"M370 378c28.89 23.52 46 46.07 46 86M142 378c-28.89 23.52-46 46.06-46 86M384 208c28.89-23.52 32-56.07 32-96M128 206c-28.89-23.52-32-54.06-32-94M464 288.13h-80M128 288.13H48M256 192v256",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"}),e.createElementVNode("path",{d:"M256 448h0c-70.4 0-128-57.6-128-128v-96.07c0-65.07 57.6-96 128-96h0c70.4 0 128 25.6 128 96V320c0 70.4-57.6 128-128 128z",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"}),e.createElementVNode("path",{d:"M179.43 143.52a49.08 49.08 0 01-3.43-15.73A80 80 0 01255.79 48h.42A80 80 0 01336 127.79a41.91 41.91 0 01-3.12 14.3",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"})],-1)])]),e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>[n.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"floating-panel",ref_key:"panelRef",ref:s,style:e.normalizeStyle(u.value)},[e.renderSlot(g.$slots,"default",{},()=>[y[1]||(y[1]=e.createElementVNode("p",{style:{"text-align":"center","font-size":"0.9rem"}}," Adicione seu conteúdo aqui 👇 ",-1))],!0)],4)):e.createCommentVNode("",!0)]),_:3})],36))}},[["__scopeId","data-v-4837ceaf"]]);Dt.defineStore("debug",{state:()=>({message:"Debug store initialized"}),actions:{logMessage(){console.log(this.message)}}});const px={class:"audio-player hover:bg-base-100"},gx=["disabled"],yx={class:"audio-player-info"},kx={class:"audio-progress-container"},xx=["max","value","disabled"],bx={class:"audio-duration"},wx={key:0,class:"align-middle"},Ex=["src"],vx=we({__name:"AudioPlayer",props:{src:{type:String,required:!0},label:{type:String,required:!0},type:{type:String,required:!0,validator:t=>["client","attendant","general"].includes(t)},activeSrc:{type:String,required:!1}},emits:["play-start","play-pause"],setup(t,{emit:n}){const a=n,o=t,r=e.ref(null),i=e.ref(!1),s=e.ref(0),l=e.ref(0),d=e.ref(!1),u=e.ref(!1);function c(){if(r.value)if(i.value)r.value.pause(),i.value=!1,x();else{if(M(),!r.value)return;u.value=!0;const T=r.value.play();T&&typeof T.then=="function"?T.then(()=>{u.value=!1,i.value=!0}).catch(B=>{console.error("Audio play failed:",B),u.value=!1,i.value=!1}):(u.value=!1,i.value=!0)}}function h(T){r.value&&(r.value.currentTime=T.target.value)}function m(){r.value&&(l.value=r.value.duration||0)}function p(){d.value=!0}function f(){d.value=!1}function g(){u.value=!1,i.value=!0}function y(){u.value=!0}function k(T){console.error("Audio error:",T),d.value=!1,u.value=!1,i.value=!1}function E(){r.value&&(s.value=r.value.currentTime)}function C(){i.value=!1,s.value=0,x()}function b(){window.open(o.src,"_blank")}function N(T){if(!T||isNaN(T))return"0:00";const B=Math.floor(T/60),V=Math.floor(T%60);return`${B}:${V.toString().padStart(2,"0")}`}function D(){switch(o.type){case"client":return"#22d3ee";case"attendant":return"#14b8a6";case"general":return"#0ea5e9";default:return"#9ca3af"}}function z(){return{backgroundColor:`${D()}20`,color:D()}}function M(){a("play-start",o.src)}function x(){a("play-pause",o.src)}return e.watch(()=>o.activeSrc,T=>{T&&T!==o.src&&i.value&&r.value&&(r.value.pause(),i.value=!1)}),e.onUnmounted(()=>{r.value&&(r.value.pause(),r.value.src="")}),(T,B)=>(e.openBlock(),e.createElementBlock("div",px,[e.createElementVNode("button",{onClick:e.withModifiers(c,["stop"]),class:"audio-play-btn hover:bg-base-100",title:"Reproduzir",disabled:d.value||u.value,style:e.normalizeStyle(z())},[d.value||u.value?(e.openBlock(),e.createElementBlock("svg",{key:0,class:"audio-play-spinner",style:e.normalizeStyle({color:D()}),xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[...B[0]||(B[0]=[e.createElementVNode("circle",{cx:"12",cy:"12",r:"10","stroke-width":"4","stroke-opacity":"0.2"},null,-1),e.createElementVNode("path",{d:"M4 12a8 8 0 018-8","stroke-width":"4","stroke-linecap":"round"},null,-1)])],4)):i.value?(e.openBlock(),e.createElementBlock("svg",{key:2,style:e.normalizeStyle({color:D()}),xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24"},[...B[2]||(B[2]=[e.createElementVNode("path",{d:"M6 4h4v16H6V4zm8 0h4v16h-4V4z"},null,-1)])],4)):(e.openBlock(),e.createElementBlock("svg",{key:1,style:e.normalizeStyle({color:D()}),xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24"},[...B[1]||(B[1]=[e.createElementVNode("path",{d:"M8 5v14l11-7z"},null,-1)])],4))],12,gx),e.createElementVNode("div",yx,[e.createElementVNode("div",{class:"audio-player-title",style:e.normalizeStyle({color:D()})},e.toDisplayString(t.label),5),e.createElementVNode("div",kx,[e.createElementVNode("div",{class:"audio-progress-track",style:e.normalizeStyle({backgroundColor:`${D()}20`})},[e.createElementVNode("div",{class:"audio-progress-fill",style:e.normalizeStyle({width:l.value>0?`${s.value/l.value*100}%`:"0%",backgroundColor:D()})},null,4),e.createElementVNode("input",{type:"range",class:"audio-progress-input",min:"0",max:l.value,value:s.value,onInput:e.withModifiers(h,["stop"]),disabled:d.value||u.value},null,40,xx)],4)])]),e.createElementVNode("span",bx,[d.value||u.value?(e.openBlock(),e.createElementBlock("span",wx,"-- : --")):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(N(s.value))+" : "+e.toDisplayString(N(l.value)),1)],64))]),e.createElementVNode("button",{onClick:e.withModifiers(b,["stop"]),class:"audio-download-btn hover:bg-primary_alt",title:"Baixar"},[(e.openBlock(),e.createElementBlock("svg",{style:e.normalizeStyle({color:D()}),xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2"},[...B[3]||(B[3]=[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4"},null,-1)])],4))]),e.createElementVNode("audio",{ref_key:"audioElement",ref:r,src:t.src,onLoadstart:p,onLoadedmetadata:m,onCanplay:f,onPlaying:g,onWaiting:y,onTimeupdate:E,onEnded:C,onError:k,preload:"metadata"},null,40,Ex)]))}},[["__scopeId","data-v-0f61b546"]]),Cx=we({__name:"CallRecordPlayer",props:{recordMetadata:{type:Object,required:!0}},emits:["close"],setup(t){const n=e.ref(null);function a(r){n.value=r}function o(r){n.value===r&&(n.value=null)}return(r,i)=>{var s,l;return e.openBlock(),e.createElementBlock("div",{onClick:e.withModifiers(d=>null,["stop"]),class:"call-record-player bg-base-200"},[(l=(s=t.recordMetadata)==null?void 0:s.urls)!=null&&l.general?(e.openBlock(),e.createBlock(vx,{key:0,src:t.recordMetadata.urls.general,label:"Conversa",type:"general","active-src":n.value,onPlayStart:a,onPlayPause:o},null,8,["src","active-src"])):e.createCommentVNode("",!0)])}}},[["__scopeId","data-v-67140951"]]),Sx={class:"call-history-container"},Bx={key:0,class:"call-history-loading"},Vx={key:1,class:"call-history-error"},Mx={key:2,class:"call-history-empty"},Nx={key:3,class:"call-history-list"},Ax=["onClick"],Tx={class:"call-card-header"},Dx={class:"call-card-header-left"},Lx={class:"call-card-content"},Fx={class:"call-card-title"},$x={class:"opacity-70"},Px={class:"call-card-actions"},_x=["onClick"],Ox=["onClick"],Rx=["onClick"],Hx={key:0,class:"call-card-expanded"},zx={class:"call-events"},jx={class:"call-event-left"},Gx={class:"call-event-time"},xi=we({__name:"CallHistory",props:{chatId:{type:[String,Number],required:!0},callsApiUrl:{type:String,required:!1,default:H0},onMessageClick:{type:Function,required:!1,default:null}},setup(t){const n=t,a=e.ref(!1),o=e.ref(null),r=e.ref([]),i=e.ref({}),s=e.ref([]);e.onMounted(()=>{l()}),e.watch(()=>n.chatId,()=>{l()});async function l(){var b,N;if(n.chatId){a.value=!0,o.value=null;try{const D=await Xe.get(`${n.callsApiUrl}?chat_id=${n.chatId}`);s.value=D.data.results||D.data||[]}catch(D){console.error("Erro ao buscar ligações:",D),o.value=((N=(b=D.response)==null?void 0:b.data)==null?void 0:N.message)||"Erro ao carregar o histórico de ligações"}finally{a.value=!1}}}function d(b){const N=r.value.indexOf(b);N>-1?r.value.splice(N,1):r.value.push(b)}function u(b){i.value[b]=!i.value[b]}function c(b){r.value.includes(b)||r.value.push(b),u(b)}function h(b){n.onMessageClick&&n.onMessageClick(b)}function m(b){return!b.events||b.events.length===0?"":b.events[0].event_type}function p(b){switch(b){case"offer":return"text-blue-400";case"answer":return"text-blue-400";case"accepted":return"text-green-400";case"ringing":return"text-orange-300/80";case"rejected":case"error":return"text-red-400";case"terminated":return"text-gray-300 dark:bg-text-gray-500";case"update":return"text-blue-400";default:return"text-gray-400"}}function f(b){switch(b){case"offer":return"bg-blue-500";case"answer":return"bg-blue-400";case"accepted":return"bg-green-500";case"ringing":return"bg-blue-500";case"rejected":case"error":return"bg-red-500";case"terminated":return"bg-gray-500";case"update":return"bg-blue-500";default:return"bg-gray-500"}}function g(b){switch(b){case"offer":return"bg-blue-400";case"answer":return"bg-blue-400";case"accepted":return"bg-green-400";case"ringing":return"bg-orange-300/80";case"rejected":case"error":return"bg-red-400";case"terminated":return"bg-gray-400";case"update":return"bg-blue-400";default:return"bg-gray-400"}}function y(b){switch(b){case"offer":return"Chamada recebida";case"answer":return"Chamada iniciada";case"ringing":return"Tocando...";case"accepted":return"Chamada atendida";case"rejected":return"Chamada rejeitada";case"terminated":return"Chamada terminada";case"error":return"Erro na chamada";case"update":return"Chamada atualizada";default:return"Evento desconhecido"}}function k(b){if(!b)return"";const N=new Date(b),z=new Date-N,M=Math.floor(z/(1e3*60*60*24));return M===0?"Hoje":M===1?"Ontem":M<7?`${M}d atrás`:N.toLocaleDateString("pt-BR",{day:"2-digit",month:"2-digit"})}function E(b){return b?new Date(b).toLocaleTimeString("pt-BR",{hour:"2-digit",minute:"2-digit"}):""}function C(b){var N,D,z,M,x,T;return((D=(N=b.record_metadata)==null?void 0:N.urls)==null?void 0:D.client)||((M=(z=b.record_metadata)==null?void 0:z.urls)==null?void 0:M.attendant)||((T=(x=b.record_metadata)==null?void 0:x.urls)==null?void 0:T.general)}return(b,N)=>(e.openBlock(),e.createElementBlock("div",Sx,[a.value?(e.openBlock(),e.createElementBlock("div",Bx,[...N[0]||(N[0]=[e.createElementVNode("svg",{class:"call-history-loading-spinner",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},[e.createElementVNode("circle",{class:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"}),e.createElementVNode("path",{class:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8v8z"})],-1),e.createElementVNode("span",{class:"call-history-loading-text"},"Carregando ligações...",-1)])])):o.value?(e.openBlock(),e.createElementBlock("div",Vx,e.toDisplayString(o.value),1)):s.value.length===0?(e.openBlock(),e.createElementBlock("div",Mx," Nenhuma ligação registrada nesta conversa ")):(e.openBlock(),e.createElementBlock("div",Nx,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value,D=>(e.openBlock(),e.createElementBlock("div",{key:D.id,"data-test":"call-card",onClick:e.withModifiers(z=>d(D.id),["stop"]),class:"call-card bg-base-300 border hover:bg-base-300 border-base-300"},[e.createElementVNode("div",Tx,[e.createElementVNode("div",Dx,[e.createElementVNode("div",{class:e.normalizeClass(["call-icon bg-primary",f(m(D))])},[...N[1]||(N[1]=[e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24"},[e.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)])],2),e.createElementVNode("div",Lx,[e.createElementVNode("div",Fx,[e.createTextVNode(e.toDisplayString(D.direction==="outbound"?"Efetuada":"Recebida")+" ",1),e.createElementVNode("span",$x,"• "+e.toDisplayString(k(D.started_at)),1)]),D.events&&D.events.length>0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["call-card-status",p(m(D))])},e.toDisplayString(y(m(D))),3)):e.createCommentVNode("",!0)])]),e.createElementVNode("div",Px,[D.external_id&&t.onMessageClick?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:e.withModifiers(z=>h(D),["stop"]),title:"Ver mensagem",class:"hover:bg-base-100"},[...N[2]||(N[2]=[e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M13 7l5 5m0 0l-5 5m5-5H6"})],-1)])],8,_x)):e.createCommentVNode("",!0),C(D)?(e.openBlock(),e.createElementBlock("button",{key:1,class:e.normalizeClass({"bg-base-100":i.value[D.id],"hover:bg-base-100":!0}),onClick:e.withModifiers(z=>c(D.id),["stop"]),title:"Ver gravações"},[(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass(i.value[D.id]?"text-primary":"opacity-70"),"aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"currentColor",viewBox:"0 0 24 24"},[...N[3]||(N[3]=[e.createElementVNode("path",{"fill-rule":"evenodd",d:"M17.316 4.052a.99.99 0 0 0-.9.14c-.262.19-.416.495-.416.82v8.566a4.573 4.573 0 0 0-2-.464c-1.99 0-4 1.342-4 3.443 0 2.1 2.01 3.443 4 3.443 1.99 0 4-1.342 4-3.443V6.801c.538.5 1 1.219 1 2.262 0 .56.448 1.013 1 1.013s1-.453 1-1.013c0-1.905-.956-3.18-1.86-3.942a6.391 6.391 0 0 0-1.636-.998 4 4 0 0 0-.166-.063l-.013-.005-.005-.002h-.002l-.002-.001ZM4 5.012c-.552 0-1 .454-1 1.013 0 .56.448 1.013 1 1.013h9c.552 0 1-.453 1-1.013 0-.559-.448-1.012-1-1.012H4Zm0 4.051c-.552 0-1 .454-1 1.013 0 .56.448 1.013 1 1.013h9c.552 0 1-.454 1-1.013 0-.56-.448-1.013-1-1.013H4Zm0 4.05c-.552 0-1 .454-1 1.014 0 .559.448 1.012 1 1.012h4c.552 0 1-.453 1-1.012 0-.56-.448-1.013-1-1.013H4Z","clip-rule":"evenodd"},null,-1)])],2))],10,Ox)):e.createCommentVNode("",!0),e.createElementVNode("button",{onClick:e.withModifiers(z=>d(D.id),["stop"]),class:e.normalizeClass(["call-expand-btn hover:bg-base-100",{rotated:r.value.includes(D.id)}])},[...N[4]||(N[4]=[e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M19 9l-7 7-7-7"})],-1)])],10,Rx)])]),e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>[r.value.includes(D.id)?(e.openBlock(),e.createElementBlock("div",Hx,[i.value[D.id]&&C(D)?(e.openBlock(),e.createBlock(Cx,{key:0,"record-metadata":D.record_metadata,onClose:z=>u(D.id)},null,8,["record-metadata","onClose"])):e.createCommentVNode("",!0),e.createElementVNode("div",zx,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(D.events,(z,M)=>(e.openBlock(),e.createElementBlock("div",{key:M,class:"call-event-item"},[e.createElementVNode("div",jx,[e.createElementVNode("div",{class:e.normalizeClass(["call-event-dot",g(z.event_type)])},null,2),e.createElementVNode("span",{class:e.normalizeClass(["call-event-text",p(z.event_type)])},e.toDisplayString(y(z.event_type)),3)]),e.createElementVNode("span",Gx,e.toDisplayString(E(z.created_at)),1)]))),128))])])):e.createCommentVNode("",!0)]),_:2},1024)],8,Ax))),128))]))]))}},[["__scopeId","data-v-ae9ae4a3"]]);function Ix(t){t.component("primarySelect",ko),t.component("departSelect",ti),t.component("attendantSelect",ni),t.component("SimpleModal",xo),t.component("simpleCard",bo),t.component("instanceSelect",sr),t.component("calendarEvents",xr),t.component("MFA",br),t.component("MfaQrCode",Fd),t.component("chatWindow",J1),t.component("FilterSelectLib",ai),t.component("MobileInternalChat",ei),t.component("RandomAvatar",si),t.component("MinModal",li),t.component("LibPatchNotes",ui),t.component("BtnNewUpdates",fi),t.component("LibPhotoPicker",mi),t.component("SelectMultipleDepartments",hi),t.component("PrimaryInput",no),t.component("SimpleSelect",pi),t.component("FloatingDev",ki),t.component("RatingInput",oo),t.component("TagView",yi),t.component("ClientsForm",gi),t.component("SelectMultipleTags",to),t.component("SimpleLoader",io),t.component("OutcomeButton",ao),t.component("CallHistory",xi),t.component("ListProducts",ro)}function bi(t,n="add"){const a=eo();n==="add"?a.addDepartments(t):n==="delete"?a.removeDepartments(t):n==="update"?(a.departments=t,a.loaded=!0):console.error(`Ação "${n}" não suportada em attLibDeparts.`)}function wi(t,n="add"){const a=Yt();n==="add"?a.addAttendants(t):n==="delete"?a.removeAttendants(t):n==="update"?(a.attendants=t,a.loaded=!0):console.error(`Ação "${n}" não suportada em attLibAttendants.`)}function Ei(t,n="add"){const a=va();n==="add"?a.addInstance(t):n==="delete"?a.removeInstance(t):n==="update"?(a.instances=t,a.loaded=!0):console.error(`Ação "${n}" não suportada em attLibInstances.`)}async function vi(t,n,a,o=[],r=[],i=[]){try{const s=await ir(t);n&&await s.setToken(n),a&&(Xe.defaults.baseURL=a);const l=eo(t);r.length>0&&(l.departments=r,l.count=r.length);const d=Yt(t);o.length>0&&(d.attendants=o,d.count=o.length),await va(t).fetchInstances()}catch(s){console.error("Erro no setupLibrary:",s)}}function Ci(t){return vn(t)}const qx={install:Ix,setupLibrary:vi,attLibDeparts:bi,attLibAttendants:wi,attLibInstances:Ei,primarySelect:ko,simpleModal:xo,simpleCard:bo,instanceSelect:sr,SimpleSelect:pi,FloatingDev:ki,calendar:xr,SimpleLoader:io,MFA:br,chatWindow:J1,departSelect:ti,attendantSelect:ni,FilterSelectLib:ai,MobileInternalChat:ei,RandomAvatar:si,MinModal:li,libPatchNotes:ui,btnNewUpdates:fi,LibPhotoPicker:mi,SelectMultipleDepartments:hi,SelectMultipleTags:to,PrimaryInput:no,getWithContrastColor:Ci,RatingInput:oo,TagView:yi,ClientsForm:gi,OutcomeButton:ao,CallHistory:xi,ListProducts:ro};function Wx(t){t.CapacitorUtils.Synapse=new Proxy({},{get(n,a){return new Proxy({},{get(o,r){return(i,s,l)=>{const d=t.Capacitor.Plugins[a];if(d===void 0){l(new Error(`Capacitor plugin ${a} not found`));return}if(typeof d[r]!="function"){l(new Error(`Method ${r} not found in Capacitor plugin ${a}`));return}(async()=>{try{const u=await d[r](i);s(u)}catch(u){l(u)}})()}}})}})}function Ux(t){t.CapacitorUtils.Synapse=new Proxy({},{get(n,a){return t.cordova.plugins[a]}})}function Zx(t=!1){typeof window>"u"||(window.CapacitorUtils=window.CapacitorUtils||{},window.Capacitor!==void 0&&!t?Wx(window):window.cordova!==void 0&&Ux(window))}var Si;(function(t){t.Documents="DOCUMENTS",t.Data="DATA",t.Library="LIBRARY",t.Cache="CACHE",t.External="EXTERNAL",t.ExternalStorage="EXTERNAL_STORAGE",t.ExternalCache="EXTERNAL_CACHE",t.LibraryNoCloud="LIBRARY_NO_CLOUD",t.Temporary="TEMPORARY"})(Si||(Si={}));var so;(function(t){t.UTF8="utf8",t.ASCII="ascii",t.UTF16="utf16"})(so||(so={}));const sa=wn("Filesystem",{web:()=>Promise.resolve().then(()=>hb).then(t=>new t.FilesystemWeb)});Zx();const Yx=wn("BlobWriter");function Xx(t){return window.btoa(Array.from(new Uint8Array(t)).map(function(n){return String.fromCharCode(n)}).join(""))}function Kx({path:t,directory:n,blob:a,recursive:o}){return sa.writeFile({directory:n,path:t,recursive:o,data:""}).then(function(){return new Promise(function(r,i){function s(d){i(d.target.error)}const l=window.indexedDB.open("Disc");l.onerror=s,l.onsuccess=function(){const u=l.result.transaction("FileStorage","readwrite");u.onerror=s;const c=u.objectStore("FileStorage"),h=`/${n}/${t.replace(/^\//,"")}`,m=c.get(h);m.onsuccess=function(){m.result.size=a.size,m.result.content=a;const p=c.put(m.result);p.onsuccess=function(){r(void 0)}}}})})}function Bi({path:t,directory:n,blob:a,recursive:o}){return sa.writeFile({directory:n,path:t,recursive:o,data:""}).then(function r(){if(a.size===0)return Promise.resolve();const i=3*128*1024,s=a.slice(0,i);return a=a.slice(i),new Response(s).arrayBuffer().then(function(d){return sa.appendFile({directory:n,path:t,data:Xx(d)})}).then(r)})}function Qx(t){const{path:n,directory:a,blob:o,fast_mode:r=!1,recursive:i,on_fallback:s}=t;return!o||!Number.isSafeInteger(o.size)||typeof o.type!="string"?Promise.reject(new Error("Not a Blob.")):ea.getPlatform()==="web"?r?Kx(t):Bi(t):Promise.all([Yx.get_config(),sa.getUri({path:n,directory:a})]).then(function([l,d]){const u=d.uri.replace("file://","");return(window.CapacitorWebFetch||window.fetch)(l.base_url+u+(i?"?recursive=true":""),{headers:{authorization:l.auth_token},method:"put",body:o}).then(function(h){if(h.status!==204)throw new Error("Bad HTTP status: "+h.status);return d.uri})}).catch(function(d){return s!==void 0&&s(d),Bi(t)})}const Jx=Object.freeze(Qx);function eb(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Vi={};function tb(t){return t&&t.__esModule?t:{default:t}}var nb=tb,lo={exports:{}},Mi;function ab(){return Mi||(Mi=1,function(t){var n=function(a){var o=Object.prototype,r=o.hasOwnProperty,i=Object.defineProperty||function(_,R,O){_[R]=O.value},s,l=typeof Symbol=="function"?Symbol:{},d=l.iterator||"@@iterator",u=l.asyncIterator||"@@asyncIterator",c=l.toStringTag||"@@toStringTag";function h(_,R,O){return Object.defineProperty(_,R,{value:O,enumerable:!0,configurable:!0,writable:!0}),_[R]}try{h({},"")}catch{h=function(R,O,oe){return R[O]=oe}}function m(_,R,O,oe){var de=R&&R.prototype instanceof C?R:C,pe=Object.create(de.prototype),ye=new Z(oe||[]);return i(pe,"_invoke",{value:V(_,O,ye)}),pe}a.wrap=m;function p(_,R,O){try{return{type:"normal",arg:_.call(R,O)}}catch(oe){return{type:"throw",arg:oe}}}var f="suspendedStart",g="suspendedYield",y="executing",k="completed",E={};function C(){}function b(){}function N(){}var D={};h(D,d,function(){return this});var z=Object.getPrototypeOf,M=z&&z(z(Q([])));M&&M!==o&&r.call(M,d)&&(D=M);var x=N.prototype=C.prototype=Object.create(D);b.prototype=N,i(x,"constructor",{value:N,configurable:!0}),i(N,"constructor",{value:b,configurable:!0}),b.displayName=h(N,c,"GeneratorFunction");function T(_){["next","throw","return"].forEach(function(R){h(_,R,function(O){return this._invoke(R,O)})})}a.isGeneratorFunction=function(_){var R=typeof _=="function"&&_.constructor;return R?R===b||(R.displayName||R.name)==="GeneratorFunction":!1},a.mark=function(_){return Object.setPrototypeOf?Object.setPrototypeOf(_,N):(_.__proto__=N,h(_,c,"GeneratorFunction")),_.prototype=Object.create(x),_},a.awrap=function(_){return{__await:_}};function B(_,R){function O(pe,ye,Ve,Fe){var Ae=p(_[pe],_,ye);if(Ae.type==="throw")Fe(Ae.arg);else{var qe=Ae.arg,Oe=qe.value;return Oe&&typeof Oe=="object"&&r.call(Oe,"__await")?R.resolve(Oe.__await).then(function($e){O("next",$e,Ve,Fe)},function($e){O("throw",$e,Ve,Fe)}):R.resolve(Oe).then(function($e){qe.value=$e,Ve(qe)},function($e){return O("throw",$e,Ve,Fe)})}}var oe;function de(pe,ye){function Ve(){return new R(function(Fe,Ae){O(pe,ye,Fe,Ae)})}return oe=oe?oe.then(Ve,Ve):Ve()}i(this,"_invoke",{value:de})}T(B.prototype),h(B.prototype,u,function(){return this}),a.AsyncIterator=B,a.async=function(_,R,O,oe,de){de===void 0&&(de=Promise);var pe=new B(m(_,R,O,oe),de);return a.isGeneratorFunction(R)?pe:pe.next().then(function(ye){return ye.done?ye.value:pe.next()})};function V(_,R,O){var oe=f;return function(pe,ye){if(oe===y)throw new Error("Generator is already running");if(oe===k){if(pe==="throw")throw ye;return J()}for(O.method=pe,O.arg=ye;;){var Ve=O.delegate;if(Ve){var Fe=S(Ve,O);if(Fe){if(Fe===E)continue;return Fe}}if(O.method==="next")O.sent=O._sent=O.arg;else if(O.method==="throw"){if(oe===f)throw oe=k,O.arg;O.dispatchException(O.arg)}else O.method==="return"&&O.abrupt("return",O.arg);oe=y;var Ae=p(_,R,O);if(Ae.type==="normal"){if(oe=O.done?k:g,Ae.arg===E)continue;return{value:Ae.arg,done:O.done}}else Ae.type==="throw"&&(oe=k,O.method="throw",O.arg=Ae.arg)}}}function S(_,R){var O=R.method,oe=_.iterator[O];if(oe===s)return R.delegate=null,O==="throw"&&_.iterator.return&&(R.method="return",R.arg=s,S(_,R),R.method==="throw")||O!=="return"&&(R.method="throw",R.arg=new TypeError("The iterator does not provide a '"+O+"' method")),E;var de=p(oe,_.iterator,R.arg);if(de.type==="throw")return R.method="throw",R.arg=de.arg,R.delegate=null,E;var pe=de.arg;if(!pe)return R.method="throw",R.arg=new TypeError("iterator result is not an object"),R.delegate=null,E;if(pe.done)R[_.resultName]=pe.value,R.next=_.nextLoc,R.method!=="return"&&(R.method="next",R.arg=s);else return pe;return R.delegate=null,E}T(x),h(x,c,"Generator"),h(x,d,function(){return this}),h(x,"toString",function(){return"[object Generator]"});function v(_){var R={tryLoc:_[0]};1 in _&&(R.catchLoc=_[1]),2 in _&&(R.finallyLoc=_[2],R.afterLoc=_[3]),this.tryEntries.push(R)}function P(_){var R=_.completion||{};R.type="normal",delete R.arg,_.completion=R}function Z(_){this.tryEntries=[{tryLoc:"root"}],_.forEach(v,this),this.reset(!0)}a.keys=function(_){var R=Object(_),O=[];for(var oe in R)O.push(oe);return O.reverse(),function de(){for(;O.length;){var pe=O.pop();if(pe in R)return de.value=pe,de.done=!1,de}return de.done=!0,de}};function Q(_){if(_){var R=_[d];if(R)return R.call(_);if(typeof _.next=="function")return _;if(!isNaN(_.length)){var O=-1,oe=function de(){for(;++O<_.length;)if(r.call(_,O))return de.value=_[O],de.done=!1,de;return de.value=s,de.done=!0,de};return oe.next=oe}}return{next:J}}a.values=Q;function J(){return{value:s,done:!0}}return Z.prototype={constructor:Z,reset:function(_){if(this.prev=0,this.next=0,this.sent=this._sent=s,this.done=!1,this.delegate=null,this.method="next",this.arg=s,this.tryEntries.forEach(P),!_)for(var R in this)R.charAt(0)==="t"&&r.call(this,R)&&!isNaN(+R.slice(1))&&(this[R]=s)},stop:function(){this.done=!0;var _=this.tryEntries[0],R=_.completion;if(R.type==="throw")throw R.arg;return this.rval},dispatchException:function(_){if(this.done)throw _;var R=this;function O(Fe,Ae){return pe.type="throw",pe.arg=_,R.next=Fe,Ae&&(R.method="next",R.arg=s),!!Ae}for(var oe=this.tryEntries.length-1;oe>=0;--oe){var de=this.tryEntries[oe],pe=de.completion;if(de.tryLoc==="root")return O("end");if(de.tryLoc<=this.prev){var ye=r.call(de,"catchLoc"),Ve=r.call(de,"finallyLoc");if(ye&&Ve){if(this.prev<de.catchLoc)return O(de.catchLoc,!0);if(this.prev<de.finallyLoc)return O(de.finallyLoc)}else if(ye){if(this.prev<de.catchLoc)return O(de.catchLoc,!0)}else if(Ve){if(this.prev<de.finallyLoc)return O(de.finallyLoc)}else throw new Error("try statement without catch or finally")}}},abrupt:function(_,R){for(var O=this.tryEntries.length-1;O>=0;--O){var oe=this.tryEntries[O];if(oe.tryLoc<=this.prev&&r.call(oe,"finallyLoc")&&this.prev<oe.finallyLoc){var de=oe;break}}de&&(_==="break"||_==="continue")&&de.tryLoc<=R&&R<=de.finallyLoc&&(de=null);var pe=de?de.completion:{};return pe.type=_,pe.arg=R,de?(this.method="next",this.next=de.finallyLoc,E):this.complete(pe)},complete:function(_,R){if(_.type==="throw")throw _.arg;return _.type==="break"||_.type==="continue"?this.next=_.arg:_.type==="return"?(this.rval=this.arg=_.arg,this.method="return",this.next="end"):_.type==="normal"&&R&&(this.next=R),E},finish:function(_){for(var R=this.tryEntries.length-1;R>=0;--R){var O=this.tryEntries[R];if(O.finallyLoc===_)return this.complete(O.completion,O.afterLoc),P(O),E}},catch:function(_){for(var R=this.tryEntries.length-1;R>=0;--R){var O=this.tryEntries[R];if(O.tryLoc===_){var oe=O.completion;if(oe.type==="throw"){var de=oe.arg;P(O)}return de}}throw new Error("illegal catch attempt")},delegateYield:function(_,R,O){return this.delegate={iterator:Q(_),resultName:R,nextLoc:O},this.method==="next"&&(this.arg=s),E}},a}(t.exports);try{regeneratorRuntime=n}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=n:Function("r","regeneratorRuntime = r")(n)}}(lo)),lo.exports}var co,Ni;function ob(){return Ni||(Ni=1,co=ab()),co}var uo,Ai;function rb(){if(Ai)return uo;Ai=1;function t(a,o,r,i,s,l,d){try{var u=a[l](d),c=u.value}catch(h){r(h);return}u.done?o(c):Promise.resolve(c).then(i,s)}function n(a){return function(){var o=this,r=arguments;return new Promise(function(i,s){var l=a.apply(o,r);function d(c){t(l,i,s,d,u,"next",c)}function u(c){t(l,i,s,d,u,"throw",c)}d(void 0)})}}return uo=n,uo}(function(t){var n=nb;Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var a=n(ob()),o=n(rb());function r(s){return i.apply(this,arguments)}function i(){return(i=(0,o.default)(a.default.mark(function s(l){var d,u;return a.default.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return d=document.createElement("video"),u=new Promise(function(h,m){d.addEventListener("loadedmetadata",function(){d.duration===1/0?(d.currentTime=Number.MAX_SAFE_INTEGER,d.ontimeupdate=function(){d.ontimeupdate=null,h(d.duration),d.currentTime=0}):h(d.duration)}),d.onerror=function(p){return m(p.target.error)}}),d.src=typeof l=="string"||l instanceof String?l:window.URL.createObjectURL(l),c.abrupt("return",u);case 4:case"end":return c.stop()}},s)}))).apply(this,arguments)}})(Vi);const ib=eb(Vi),Tt=()=>({value:!0}),Cn=()=>({value:!1}),sb=()=>new Error("MISSING_PERMISSION"),lb=()=>new Error("ALREADY_RECORDING"),cb=()=>new Error("DEVICE_CANNOT_VOICE_RECORD"),Ti=()=>new Error("FAILED_TO_RECORD"),db=()=>new Error("EMPTY_RECORDING"),fo=()=>new Error("RECORDING_HAS_NOT_STARTED"),Di=()=>new Error("FAILED_TO_FETCH_RECORDING"),mo=()=>new Error("COULD_NOT_QUERY_PERMISSION_STATUS"),Li={"audio/aac":".aac","audio/mp4":".mp3","audio/webm;codecs=opus":".ogg","audio/webm":".ogg","audio/ogg;codecs=opus":".ogg"},Fi=()=>new Promise(()=>{});class ht{constructor(){this.mediaRecorder=null,this.chunks=[],this.pendingResult=Fi()}static async canDeviceVoiceRecord(){var n;return((n=navigator==null?void 0:navigator.mediaDevices)===null||n===void 0?void 0:n.getUserMedia)==null||ht.getSupportedMimeType()==null?Cn():Tt()}async startRecording(n){if(this.mediaRecorder!=null)throw lb();if(!(await ht.canDeviceVoiceRecord()).value)throw cb();if(!(await ht.hasAudioRecordingPermission().catch(()=>Tt())).value)throw sb();return navigator.mediaDevices.getUserMedia({audio:!0}).then(r=>this.onSuccessfullyStartedRecording(r,n)).catch(this.onFailedToStartRecording.bind(this))}async stopRecording(){if(this.mediaRecorder==null)throw fo();try{return this.mediaRecorder.stop(),this.mediaRecorder.stream.getTracks().forEach(n=>n.stop()),this.pendingResult}catch{throw Di()}finally{this.prepareInstanceForNextOperation()}}static async hasAudioRecordingPermission(){return navigator.permissions.query==null?navigator.mediaDevices==null?Promise.reject(mo()):navigator.mediaDevices.getUserMedia({audio:!0}).then(()=>Tt()).catch(()=>{throw mo()}):navigator.permissions.query({name:"microphone"}).then(n=>({value:n.state==="granted"})).catch(()=>{throw mo()})}static async requestAudioRecordingPermission(){return(await ht.hasAudioRecordingPermission().catch(()=>Cn())).value?Tt():navigator.mediaDevices.getUserMedia({audio:!0}).then(()=>Tt()).catch(()=>Cn())}pauseRecording(){if(this.mediaRecorder==null)throw fo();return this.mediaRecorder.state==="recording"?(this.mediaRecorder.pause(),Promise.resolve(Tt())):Promise.resolve(Cn())}resumeRecording(){if(this.mediaRecorder==null)throw fo();return this.mediaRecorder.state==="paused"?(this.mediaRecorder.resume(),Promise.resolve(Tt())):Promise.resolve(Cn())}getCurrentStatus(){return this.mediaRecorder==null?Promise.resolve({status:na.NONE}):this.mediaRecorder.state==="recording"?Promise.resolve({status:na.RECORDING}):this.mediaRecorder.state==="paused"?Promise.resolve({status:na.PAUSED}):Promise.resolve({status:na.NONE})}static getSupportedMimeType(){if((MediaRecorder==null?void 0:MediaRecorder.isTypeSupported)==null)return null;const n=Object.keys(Li).find(a=>MediaRecorder.isTypeSupported(a));return n??null}onSuccessfullyStartedRecording(n,a){return this.pendingResult=new Promise((o,r)=>{this.mediaRecorder=new MediaRecorder(n),this.mediaRecorder.onerror=()=>{this.prepareInstanceForNextOperation(),r(Ti())},this.mediaRecorder.onstop=async()=>{var i,s,l;const d=ht.getSupportedMimeType();if(d==null){this.prepareInstanceForNextOperation(),r(Di());return}const u=new Blob(this.chunks,{type:d});if(u.size<=0){this.prepareInstanceForNextOperation(),r(db());return}let c,h;a!=null?(c=`${(l=(s=(i=a.subDirectory)===null||i===void 0?void 0:i.match(/^\/?(.+[^/])\/?$/))===null||s===void 0?void 0:s[1])!==null&&l!==void 0?l:""}/recording-${new Date().getTime()}${Li[d]}`,await Jx({blob:u,directory:a.directory,fast_mode:!0,path:c,recursive:!0})):h=await ht.blobToBase64(u);const m=await ib(u);this.prepareInstanceForNextOperation(),o({value:{recordDataBase64:h,mimeType:d,msDuration:m*1e3,path:c}})},this.mediaRecorder.ondataavailable=i=>this.chunks.push(i.data),this.mediaRecorder.start()}),Tt()}onFailedToStartRecording(){throw this.prepareInstanceForNextOperation(),Ti()}static blobToBase64(n){return new Promise(a=>{const o=new FileReader;o.onloadend=()=>{const r=String(o.result),i=r.split("base64,"),s=i.length>1?i[1]:r;a(s.trim())},o.readAsDataURL(n)})}prepareInstanceForNextOperation(){if(this.mediaRecorder!=null&&this.mediaRecorder.state==="recording")try{this.mediaRecorder.stop()}catch(n){console.warn("While trying to stop a media recorder, an error was thrown",n)}this.pendingResult=Fi(),this.mediaRecorder=null,this.chunks=[]}}class ub extends ta{constructor(){super(...arguments),this.voiceRecorderInstance=new ht}canDeviceVoiceRecord(){return ht.canDeviceVoiceRecord()}hasAudioRecordingPermission(){return ht.hasAudioRecordingPermission()}requestAudioRecordingPermission(){return ht.requestAudioRecordingPermission()}startRecording(n){return this.voiceRecorderInstance.startRecording(n)}stopRecording(){return this.voiceRecorderInstance.stopRecording()}pauseRecording(){return this.voiceRecorderInstance.pauseRecording()}resumeRecording(){return this.voiceRecorderInstance.resumeRecording()}getCurrentStatus(){return this.voiceRecorderInstance.getCurrentStatus()}}const fb=Object.freeze(Object.defineProperty({__proto__:null,VoiceRecorderWeb:ub},Symbol.toStringTag,{value:"Module"}));function $i(t){const n=t.split("/").filter(o=>o!=="."),a=[];return n.forEach(o=>{o===".."&&a.length>0&&a[a.length-1]!==".."?a.pop():a.push(o)}),a.join("/")}function mb(t,n){t=$i(t),n=$i(n);const a=t.split("/"),o=n.split("/");return t!==n&&a.every((r,i)=>r===o[i])}class la extends ta{constructor(){super(...arguments),this.DB_VERSION=1,this.DB_NAME="Disc",this._writeCmds=["add","put","delete"],this.downloadFile=async n=>{var a,o;const r=$1(n,n.webFetchExtra),i=await fetch(n.url,r);let s;if(!n.progress)s=await i.blob();else if(!(i!=null&&i.body))s=new Blob;else{const d=i.body.getReader();let u=0;const c=[],h=i.headers.get("content-type"),m=parseInt(i.headers.get("content-length")||"0",10);for(;;){const{done:g,value:y}=await d.read();if(g)break;c.push(y),u+=(y==null?void 0:y.length)||0;const k={url:n.url,bytes:u,contentLength:m};this.notifyListeners("progress",k)}const p=new Uint8Array(u);let f=0;for(const g of c)typeof g>"u"||(p.set(g,f),f+=g.length);s=new Blob([p.buffer],{type:h||void 0})}return{path:(await this.writeFile({path:n.path,directory:(a=n.directory)!==null&&a!==void 0?a:void 0,recursive:(o=n.recursive)!==null&&o!==void 0?o:!1,data:s})).uri,blob:s}}}readFileInChunks(n,a){throw this.unavailable("Method not implemented.")}async initDb(){if(this._db!==void 0)return this._db;if(!("indexedDB"in window))throw this.unavailable("This browser doesn't support IndexedDB");return new Promise((n,a)=>{const o=indexedDB.open(this.DB_NAME,this.DB_VERSION);o.onupgradeneeded=la.doUpgrade,o.onsuccess=()=>{this._db=o.result,n(o.result)},o.onerror=()=>a(o.error),o.onblocked=()=>{console.warn("db blocked")}})}static doUpgrade(n){const o=n.target.result;switch(n.oldVersion){case 0:case 1:default:o.objectStoreNames.contains("FileStorage")&&o.deleteObjectStore("FileStorage"),o.createObjectStore("FileStorage",{keyPath:"path"}).createIndex("by_folder","folder")}}async dbRequest(n,a){const o=this._writeCmds.indexOf(n)!==-1?"readwrite":"readonly";return this.initDb().then(r=>new Promise((i,s)=>{const u=r.transaction(["FileStorage"],o).objectStore("FileStorage")[n](...a);u.onsuccess=()=>i(u.result),u.onerror=()=>s(u.error)}))}async dbIndexRequest(n,a,o){const r=this._writeCmds.indexOf(a)!==-1?"readwrite":"readonly";return this.initDb().then(i=>new Promise((s,l)=>{const h=i.transaction(["FileStorage"],r).objectStore("FileStorage").index(n)[a](...o);h.onsuccess=()=>s(h.result),h.onerror=()=>l(h.error)}))}getPath(n,a){const o=a!==void 0?a.replace(/^[/]+|[/]+$/g,""):"";let r="";return n!==void 0&&(r+="/"+n),a!==""&&(r+="/"+o),r}async clear(){(await this.initDb()).transaction(["FileStorage"],"readwrite").objectStore("FileStorage").clear()}async readFile(n){const a=this.getPath(n.directory,n.path),o=await this.dbRequest("get",[a]);if(o===void 0)throw Error("File does not exist.");return{data:o.content?o.content:""}}async writeFile(n){const a=this.getPath(n.directory,n.path);let o=n.data;const r=n.encoding,i=n.recursive,s=await this.dbRequest("get",[a]);if(s&&s.type==="directory")throw Error("The supplied path is a directory.");const l=a.substr(0,a.lastIndexOf("/"));if(await this.dbRequest("get",[l])===void 0){const h=l.indexOf("/",1);if(h!==-1){const m=l.substr(h);await this.mkdir({path:m,directory:n.directory,recursive:i})}}if(!r&&!(o instanceof Blob)&&(o=o.indexOf(",")>=0?o.split(",")[1]:o,!this.isBase64String(o)))throw Error("The supplied data is not valid base64 content.");const u=Date.now(),c={path:a,folder:l,type:"file",size:o instanceof Blob?o.size:o.length,ctime:u,mtime:u,content:o};return await this.dbRequest("put",[c]),{uri:c.path}}async appendFile(n){const a=this.getPath(n.directory,n.path);let o=n.data;const r=n.encoding,i=a.substr(0,a.lastIndexOf("/")),s=Date.now();let l=s;const d=await this.dbRequest("get",[a]);if(d&&d.type==="directory")throw Error("The supplied path is a directory.");if(await this.dbRequest("get",[i])===void 0){const h=i.indexOf("/",1);if(h!==-1){const m=i.substr(h);await this.mkdir({path:m,directory:n.directory,recursive:!0})}}if(!r&&!this.isBase64String(o))throw Error("The supplied data is not valid base64 content.");if(d!==void 0){if(d.content instanceof Blob)throw Error("The occupied entry contains a Blob object which cannot be appended to.");d.content!==void 0&&!r?o=btoa(atob(d.content)+atob(o)):o=d.content+o,l=d.ctime}const c={path:a,folder:i,type:"file",size:o.length,ctime:l,mtime:s,content:o};await this.dbRequest("put",[c])}async deleteFile(n){const a=this.getPath(n.directory,n.path);if(await this.dbRequest("get",[a])===void 0)throw Error("File does not exist.");if((await this.dbIndexRequest("by_folder","getAllKeys",[IDBKeyRange.only(a)])).length!==0)throw Error("Folder is not empty.");await this.dbRequest("delete",[a])}async mkdir(n){const a=this.getPath(n.directory,n.path),o=n.recursive,r=a.substr(0,a.lastIndexOf("/")),i=(a.match(/\//g)||[]).length,s=await this.dbRequest("get",[r]),l=await this.dbRequest("get",[a]);if(i===1)throw Error("Cannot create Root directory");if(l!==void 0)throw Error("Current directory does already exist.");if(!o&&i!==2&&s===void 0)throw Error("Parent directory must exist");if(o&&i!==2&&s===void 0){const c=r.substr(r.indexOf("/",1));await this.mkdir({path:c,directory:n.directory,recursive:o})}const d=Date.now(),u={path:a,folder:r,type:"directory",size:0,ctime:d,mtime:d};await this.dbRequest("put",[u])}async rmdir(n){const{path:a,directory:o,recursive:r}=n,i=this.getPath(o,a),s=await this.dbRequest("get",[i]);if(s===void 0)throw Error("Folder does not exist.");if(s.type!=="directory")throw Error("Requested path is not a directory");const l=await this.readdir({path:a,directory:o});if(l.files.length!==0&&!r)throw Error("Folder is not empty");for(const d of l.files){const u=`${a}/${d.name}`;(await this.stat({path:u,directory:o})).type==="file"?await this.deleteFile({path:u,directory:o}):await this.rmdir({path:u,directory:o,recursive:r})}await this.dbRequest("delete",[i])}async readdir(n){const a=this.getPath(n.directory,n.path),o=await this.dbRequest("get",[a]);if(n.path!==""&&o===void 0)throw Error("Folder does not exist.");const r=await this.dbIndexRequest("by_folder","getAllKeys",[IDBKeyRange.only(a)]);return{files:await Promise.all(r.map(async s=>{let l=await this.dbRequest("get",[s]);return l===void 0&&(l=await this.dbRequest("get",[s+"/"])),{name:s.substring(a.length+1),type:l.type,size:l.size,ctime:l.ctime,mtime:l.mtime,uri:l.path}}))}}async getUri(n){const a=this.getPath(n.directory,n.path);let o=await this.dbRequest("get",[a]);return o===void 0&&(o=await this.dbRequest("get",[a+"/"])),{uri:(o==null?void 0:o.path)||a}}async stat(n){const a=this.getPath(n.directory,n.path);let o=await this.dbRequest("get",[a]);if(o===void 0&&(o=await this.dbRequest("get",[a+"/"])),o===void 0)throw Error("Entry does not exist.");return{name:o.path.substring(a.length+1),type:o.type,size:o.size,ctime:o.ctime,mtime:o.mtime,uri:o.path}}async rename(n){await this._copy(n,!0)}async copy(n){return this._copy(n,!1)}async requestPermissions(){return{publicStorage:"granted"}}async checkPermissions(){return{publicStorage:"granted"}}async _copy(n,a=!1){let{toDirectory:o}=n;const{to:r,from:i,directory:s}=n;if(!r||!i)throw Error("Both to and from must be provided");o||(o=s);const l=this.getPath(s,i),d=this.getPath(o,r);if(l===d)return{uri:d};if(mb(l,d))throw Error("To path cannot contain the from path");let u;try{u=await this.stat({path:r,directory:o})}catch{const f=r.split("/");f.pop();const g=f.join("/");if(f.length>0&&(await this.stat({path:g,directory:o})).type!=="directory")throw new Error("Parent directory of the to path is a file")}if(u&&u.type==="directory")throw new Error("Cannot overwrite a directory with a file");const c=await this.stat({path:i,directory:s}),h=async(p,f,g)=>{const y=this.getPath(o,p),k=await this.dbRequest("get",[y]);k.ctime=f,k.mtime=g,await this.dbRequest("put",[k])},m=c.ctime?c.ctime:Date.now();switch(c.type){case"file":{const p=await this.readFile({path:i,directory:s});a&&await this.deleteFile({path:i,directory:s});let f;!(p.data instanceof Blob)&&!this.isBase64String(p.data)&&(f=so.UTF8);const g=await this.writeFile({path:r,directory:o,data:p.data,encoding:f});return a&&await h(r,m,c.mtime),g}case"directory":{if(u)throw Error("Cannot move a directory over an existing object");try{await this.mkdir({path:r,directory:o,recursive:!1}),a&&await h(r,m,c.mtime)}catch{}const p=(await this.readdir({path:i,directory:s})).files;for(const f of p)await this._copy({from:`${i}/${f.name}`,to:`${r}/${f.name}`,directory:s,toDirectory:o},a);a&&await this.rmdir({path:i,directory:s})}}return{uri:d}}isBase64String(n){try{return btoa(atob(n))==n}catch{return!1}}}la._debug=!0;const hb=Object.freeze(Object.defineProperty({__proto__:null,FilesystemWeb:la},Symbol.toStringTag,{value:"Module"}));tt.attLibAttendants=wi,tt.attLibDeparts=bi,tt.attLibInstances=Ei,tt.default=qx,tt.getWithContrastColor=Ci,tt.setupLibrary=vi,tt.useScheduledStore=pr,Object.defineProperties(tt,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|