@evercam/ui 0.0.63-preview-copilot-annotations-77b2c9b6f → 0.0.63-preview-copilot-annotations-595535d84
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/chat/EChat.vue.d.ts +1 -0
- package/dist/components/chat/EChatSuggestionCard.vue.d.ts +2 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.mjs +576 -564
- package/dist/index.mjs.map +1 -1
- package/dist/index.umd.js +6 -6
- package/dist/index.umd.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/types.d.ts +1 -0
- package/dist/web-types.json +1 -1
- package/package.json +1 -1
package/dist/index.umd.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
(function(U,j){typeof exports=="object"&&typeof module!="undefined"?j(exports,require("vue"),require("hls.js"),require("moment-timezone"),require("d3"),require("unified"),require("remark-parse"),require("remark-rehype"),require("rehype-stringify"),require("remark-breaks"),require("remark-gfm")):typeof define=="function"&&define.amd?define(["exports","vue","hls.js","moment-timezone","d3","unified","remark-parse","remark-rehype","rehype-stringify","remark-breaks","remark-gfm"],j):(U=typeof globalThis!="undefined"?globalThis:U||self,j(U.EvercamUI={},U.Vue,U.Hls,U.moment,U.d3,U.unified,U.remarkParse,U.remarkRehype,U.rehypeStringify,U.remarkBreaks,U.remarkGfm))})(this,function(U,j,it,Se,ys,Cs,bs,xs,ws,Ss,Ts){var Vi,Ki,Ji,es,ts,rs,ns,is;"use strict";function ks(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const r in t)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(e,r,n.get?n:{enumerable:!0,get:()=>t[r]})}}return e.default=t,Object.freeze(e)}function mn(t,e){for(var r=0;r<e.length;r++){const n=e[r];if(typeof n!="string"&&!Array.isArray(n)){for(const s in n)if(s!=="default"&&!(s in t)){const l=Object.getOwnPropertyDescriptor(n,s);l&&Object.defineProperty(t,s,l.get?l:{enumerable:!0,get:()=>n[s]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}const P=ks(ys);var J=(t=>(t.dot="dot",t["2xs"]="2xs",t.xs="xs",t.sm="sm",t.md="base",t.base="base",t.lg="lg",t.xl="xl",t["2xl"]="2xl",t["3xl"]="3xl",t["4xl"]="4xl",t["5xl"]="5xl",t["6xl"]="6xl",t["7xl"]="7xl",t["8xl"]="8xl",t["9xl"]="9xl",t))(J||{}),ae=(t=>(t.warning="warning",t.error="error",t.info="info",t.success="success",t.primary="primary",t.brand="brand",t.default="default",t.gray="gray",t))(ae||{}),et=(t=>(t.overview="overview",t.detailed="detailed",t.detailedBackground="detailedBackground",t))(et||{}),je=(t=>(t.bars="bars",t.dots="dots",t.lineGraph="lineGraph",t.barChart="barGraph",t.milestones="milestones",t))(je||{}),xt=(t=>(t.zoom="zoom",t.autoPan="autoPan",t.initial="initial",t))(xt||{}),gn=(t=>(t._360="360",t._480="480",t._720="720",t._1080="1080",t.auto="auto",t))(gn||{}),Oe=(t=>(t.top="top",t.right="right",t.bottom="bottom",t.left="left",t))(Oe||{}),Ze=(t=>(t.SYSTEM="system",t.COPILOT="copilot",t.USER="user",t))(Ze||{}),vn=(t=>(t.TEXT="text",t.PROGRESS="progress",t.STOP="stop",t))(vn||{}),Ht=(t=>(t.positive="positive",t.negative="negative",t))(Ht||{});const Ms=j.extend({name:"EBadge",props:{text:{type:String,default:""},color:{type:String,default:ae.default},size:{type:String,default:J.base}},data(){return{colors:{[ae.error]:"e-bg-rose-500 e-text-white",[ae.info]:"e-bg-cyan-500 e-text-white",[ae.warning]:"e-bg-amber-500 e-text-white",[ae.primary]:"e-bg-sky-500 e-text-white",[ae.default]:"e-bg-slate-300 e-text-white",[ae.success]:"e-bg-lime-500 e-text-white"},sizes:{[J.dot]:"e-w-2 e-h-2",[J.xs]:"e-w-3 e-h-3",[J.sm]:"e-w-4 e-h-4",[J.md]:"e-w-5 e-h-5",[J.lg]:"e-min-w-[2rem] e-max-w-[4rem] e-px-1 e-h-6 e-text-sm e-font-medium",[J.xl]:"e-min-w-[3rem] e-max-w-[5rem] e-px-1 e-h-8 e-text-base e-font-medium"}}},computed:{badgeClasses(){const t=this.colors[this.color]||this.colors[ae.default],e=this.sizes[this.size]||this.sizes[J.md];return["e-flex e-items-center e-justify-center e-rounded-full",t,e]},showText(){return[J.lg,J.xl].includes(this.size)}}});function Y(t,e,r,n,s,l,i,h){var a=typeof t=="function"?t.options:t;e&&(a.render=e,a.staticRenderFns=r,a._compiled=!0),n&&(a.functional=!0),l&&(a._scopeId="data-v-"+l);var o;if(i?(o=function(m){m=m||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,!m&&typeof __VUE_SSR_CONTEXT__!="undefined"&&(m=__VUE_SSR_CONTEXT__),s&&s.call(this,m),m&&m._registeredComponents&&m._registeredComponents.add(i)},a._ssrRegister=o):s&&(o=h?function(){s.call(this,(a.functional?this.parent:this).$root.$options.shadowRoot)}:s),o)if(a.functional){a._injectStyles=o;var u=a.render;a.render=function(v,b){return o.call(b),u(v,b)}}else{var f=a.beforeCreate;a.beforeCreate=f?[].concat(f,o):[o]}return{exports:t,options:a}}var Es=function(){var e=this,r=e._self._c;return r("span",{staticClass:"e-badge",class:e.badgeClasses},[e.showText?r("span",[e._v(e._s(e.text))]):e._e()])},$s=[],Ls=Y(Ms,Es,$s,!1,null,null,null,null);const Nt=Ls.exports,Ds=j.extend({name:"EAvatar",components:{Badge:Nt},props:{size:{type:String,default:J.md},showBadge:{type:Boolean,default:!1},badgeColor:{type:String,default:ae.error},badgeText:{type:String,default:""},badgeSize:{type:String,default:J.md},image:{type:String,default:""},backgroundClasses:{type:String,default:"e-bg-gradient-to-r e-from-purple-500 e-to-indigo-500"}},data(){return{sizes:{[J["2xs"]]:"e-w-6 e-h-6 e-text-xs",[J.xs]:"e-w-8 e-h-8 e-text-xs",[J.sm]:"e-w-10 e-h-10 e-text-sm",[J.md]:"e-w-14 e-h-14 e-text-base",[J.lg]:"e-w-20 e-h-20 e-text-2xl",[J.xl]:"e-w-28 e-h-28 e-text-3xl",[J["2xl"]]:"e-w-36 e-h-36 e-text-5xl"}}},computed:{avatarClasses(){const t=this.sizes[this.size]||this.sizes[J.xs],e=this.image?"e-rounded-full e-overflow-hidden":"";return["e-flex e-items-center e-justify-center e-rounded-full e-text-white e-font-medium",t,e,this.backgroundClasses]}}});var Ps=function(){var e=this,r=e._self._c;return r("div",{staticClass:"e-avatar e-relative",class:e.avatarClasses},[e._t("default",function(){return[e.image?r("img",{staticClass:"e-avatar__image e-w-full e-h-full e-object-cover",attrs:{src:e.image}}):e._e()]}),e.showBadge?r("div",{staticClass:"e-avatar__badge e-absolute e-top-0 e-right-0"},[e._t("badge",function(){return[r("Badge",{attrs:{text:e.badgeText,color:e.badgeColor,size:e.badgeSize}})]})],2):e._e()],2)},Os=[],zs=Y(Ds,Ps,Os,!1,null,null,null,null);const wt=zs.exports;var st=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function St(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var _n={},yn={},Wt={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return e}});function e(r){if(r=`${r}`,r==="0")return"0";if(/^[+-]?(\d+|\d*\.\d+)(e[+-]?\d+)?(%|\w+)?$/.test(r))return r.replace(/^[+-]?/,s=>s==="-"?"":"-");let n=["var","calc","min","max","clamp"];for(const s of n)if(r.includes(`${s}(`))return`calc(${r} * -1)`}})(Wt);var Cn={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return e}});const e=["preflight","container","accessibility","pointerEvents","visibility","position","inset","isolation","zIndex","order","gridColumn","gridColumnStart","gridColumnEnd","gridRow","gridRowStart","gridRowEnd","float","clear","margin","boxSizing","lineClamp","display","aspectRatio","size","height","maxHeight","minHeight","width","minWidth","maxWidth","flex","flexShrink","flexGrow","flexBasis","tableLayout","captionSide","borderCollapse","borderSpacing","transformOrigin","translate","rotate","skew","scale","transform","animation","cursor","touchAction","userSelect","resize","scrollSnapType","scrollSnapAlign","scrollSnapStop","scrollMargin","scrollPadding","listStylePosition","listStyleType","listStyleImage","appearance","columns","breakBefore","breakInside","breakAfter","gridAutoColumns","gridAutoFlow","gridAutoRows","gridTemplateColumns","gridTemplateRows","flexDirection","flexWrap","placeContent","placeItems","alignContent","alignItems","justifyContent","justifyItems","gap","space","divideWidth","divideStyle","divideColor","divideOpacity","placeSelf","alignSelf","justifySelf","overflow","overscrollBehavior","scrollBehavior","textOverflow","hyphens","whitespace","textWrap","wordBreak","borderRadius","borderWidth","borderStyle","borderColor","borderOpacity","backgroundColor","backgroundOpacity","backgroundImage","gradientColorStops","boxDecorationBreak","backgroundSize","backgroundAttachment","backgroundClip","backgroundPosition","backgroundRepeat","backgroundOrigin","fill","stroke","strokeWidth","objectFit","objectPosition","padding","textAlign","textIndent","verticalAlign","fontFamily","fontSize","fontWeight","textTransform","fontStyle","fontVariantNumeric","lineHeight","letterSpacing","textColor","textOpacity","textDecoration","textDecorationColor","textDecorationStyle","textDecorationThickness","textUnderlineOffset","fontSmoothing","placeholderColor","placeholderOpacity","caretColor","accentColor","opacity","backgroundBlendMode","mixBlendMode","boxShadow","boxShadowColor","outlineStyle","outlineWidth","outlineOffset","outlineColor","ringWidth","ringColor","ringOpacity","ringOffsetWidth","ringOffsetColor","blur","brightness","contrast","dropShadow","grayscale","hueRotate","invert","saturate","sepia","filter","backdropBlur","backdropBrightness","backdropContrast","backdropGrayscale","backdropHueRotate","backdropInvert","backdropOpacity","backdropSaturate","backdropSepia","backdropFilter","transitionProperty","transitionDelay","transitionDuration","transitionTimingFunction","willChange","contain","content","forcedColorAdjust"]})(Cn);var bn={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return e}});function e(r,n){return r===void 0?n:Array.isArray(r)?r:[...new Set(n.filter(l=>r!==!1&&r[l]!==!1).concat(Object.keys(r).filter(l=>r[l]!==!1)))]}})(bn);var jt={},Tt={},Gt={exports:{}},Ce=String,xn=function(){return{isColorSupported:!1,reset:Ce,bold:Ce,dim:Ce,italic:Ce,underline:Ce,inverse:Ce,hidden:Ce,strikethrough:Ce,black:Ce,red:Ce,green:Ce,yellow:Ce,blue:Ce,magenta:Ce,cyan:Ce,white:Ce,gray:Ce,bgBlack:Ce,bgRed:Ce,bgGreen:Ce,bgYellow:Ce,bgBlue:Ce,bgMagenta:Ce,bgCyan:Ce,bgWhite:Ce}};Gt.exports=xn(),Gt.exports.createColors=xn;var wn=Gt.exports;(function(t){Object.defineProperty(t,"__esModule",{value:!0});function e(a,o){for(var u in o)Object.defineProperty(a,u,{enumerable:!0,get:o[u]})}e(t,{dim:function(){return i},default:function(){return h}});const r=n(wn);function n(a){return a&&a.__esModule?a:{default:a}}let s=new Set;function l(a,o,u){typeof process!="undefined"&&process.env.JEST_WORKER_ID||u&&s.has(u)||(u&&s.add(u),console.warn(""),o.forEach(f=>console.warn(a,"-",f)))}function i(a){return r.default.dim(a)}const h={info(a,o){l(r.default.bold(r.default.cyan("info")),...Array.isArray(a)?[a]:[o,a])},warn(a,o){l(r.default.bold(r.default.yellow("warn")),...Array.isArray(a)?[a]:[o,a])},risk(a,o){l(r.default.bold(r.default.magenta("risk")),...Array.isArray(a)?[a]:[o,a])}}})(Tt),function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return s}});const e=r(Tt);function r(l){return l&&l.__esModule?l:{default:l}}function n({version:l,from:i,to:h}){e.default.warn(`${i}-color-renamed`,[`As of Tailwind CSS ${l}, \`${i}\` has been renamed to \`${h}\`.`,"Update your configuration file to silence this warning."])}const s={inherit:"inherit",current:"currentColor",transparent:"transparent",black:"#000",white:"#fff",slate:{50:"#f8fafc",100:"#f1f5f9",200:"#e2e8f0",300:"#cbd5e1",400:"#94a3b8",500:"#64748b",600:"#475569",700:"#334155",800:"#1e293b",900:"#0f172a",950:"#020617"},gray:{50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#1f2937",900:"#111827",950:"#030712"},zinc:{50:"#fafafa",100:"#f4f4f5",200:"#e4e4e7",300:"#d4d4d8",400:"#a1a1aa",500:"#71717a",600:"#52525b",700:"#3f3f46",800:"#27272a",900:"#18181b",950:"#09090b"},neutral:{50:"#fafafa",100:"#f5f5f5",200:"#e5e5e5",300:"#d4d4d4",400:"#a3a3a3",500:"#737373",600:"#525252",700:"#404040",800:"#262626",900:"#171717",950:"#0a0a0a"},stone:{50:"#fafaf9",100:"#f5f5f4",200:"#e7e5e4",300:"#d6d3d1",400:"#a8a29e",500:"#78716c",600:"#57534e",700:"#44403c",800:"#292524",900:"#1c1917",950:"#0c0a09"},red:{50:"#fef2f2",100:"#fee2e2",200:"#fecaca",300:"#fca5a5",400:"#f87171",500:"#ef4444",600:"#dc2626",700:"#b91c1c",800:"#991b1b",900:"#7f1d1d",950:"#450a0a"},orange:{50:"#fff7ed",100:"#ffedd5",200:"#fed7aa",300:"#fdba74",400:"#fb923c",500:"#f97316",600:"#ea580c",700:"#c2410c",800:"#9a3412",900:"#7c2d12",950:"#431407"},amber:{50:"#fffbeb",100:"#fef3c7",200:"#fde68a",300:"#fcd34d",400:"#fbbf24",500:"#f59e0b",600:"#d97706",700:"#b45309",800:"#92400e",900:"#78350f",950:"#451a03"},yellow:{50:"#fefce8",100:"#fef9c3",200:"#fef08a",300:"#fde047",400:"#facc15",500:"#eab308",600:"#ca8a04",700:"#a16207",800:"#854d0e",900:"#713f12",950:"#422006"},lime:{50:"#f7fee7",100:"#ecfccb",200:"#d9f99d",300:"#bef264",400:"#a3e635",500:"#84cc16",600:"#65a30d",700:"#4d7c0f",800:"#3f6212",900:"#365314",950:"#1a2e05"},green:{50:"#f0fdf4",100:"#dcfce7",200:"#bbf7d0",300:"#86efac",400:"#4ade80",500:"#22c55e",600:"#16a34a",700:"#15803d",800:"#166534",900:"#14532d",950:"#052e16"},emerald:{50:"#ecfdf5",100:"#d1fae5",200:"#a7f3d0",300:"#6ee7b7",400:"#34d399",500:"#10b981",600:"#059669",700:"#047857",800:"#065f46",900:"#064e3b",950:"#022c22"},teal:{50:"#f0fdfa",100:"#ccfbf1",200:"#99f6e4",300:"#5eead4",400:"#2dd4bf",500:"#14b8a6",600:"#0d9488",700:"#0f766e",800:"#115e59",900:"#134e4a",950:"#042f2e"},cyan:{50:"#ecfeff",100:"#cffafe",200:"#a5f3fc",300:"#67e8f9",400:"#22d3ee",500:"#06b6d4",600:"#0891b2",700:"#0e7490",800:"#155e75",900:"#164e63",950:"#083344"},sky:{50:"#f0f9ff",100:"#e0f2fe",200:"#bae6fd",300:"#7dd3fc",400:"#38bdf8",500:"#0ea5e9",600:"#0284c7",700:"#0369a1",800:"#075985",900:"#0c4a6e",950:"#082f49"},blue:{50:"#eff6ff",100:"#dbeafe",200:"#bfdbfe",300:"#93c5fd",400:"#60a5fa",500:"#3b82f6",600:"#2563eb",700:"#1d4ed8",800:"#1e40af",900:"#1e3a8a",950:"#172554"},indigo:{50:"#eef2ff",100:"#e0e7ff",200:"#c7d2fe",300:"#a5b4fc",400:"#818cf8",500:"#6366f1",600:"#4f46e5",700:"#4338ca",800:"#3730a3",900:"#312e81",950:"#1e1b4b"},violet:{50:"#f5f3ff",100:"#ede9fe",200:"#ddd6fe",300:"#c4b5fd",400:"#a78bfa",500:"#8b5cf6",600:"#7c3aed",700:"#6d28d9",800:"#5b21b6",900:"#4c1d95",950:"#2e1065"},purple:{50:"#faf5ff",100:"#f3e8ff",200:"#e9d5ff",300:"#d8b4fe",400:"#c084fc",500:"#a855f7",600:"#9333ea",700:"#7e22ce",800:"#6b21a8",900:"#581c87",950:"#3b0764"},fuchsia:{50:"#fdf4ff",100:"#fae8ff",200:"#f5d0fe",300:"#f0abfc",400:"#e879f9",500:"#d946ef",600:"#c026d3",700:"#a21caf",800:"#86198f",900:"#701a75",950:"#4a044e"},pink:{50:"#fdf2f8",100:"#fce7f3",200:"#fbcfe8",300:"#f9a8d4",400:"#f472b6",500:"#ec4899",600:"#db2777",700:"#be185d",800:"#9d174d",900:"#831843",950:"#500724"},rose:{50:"#fff1f2",100:"#ffe4e6",200:"#fecdd3",300:"#fda4af",400:"#fb7185",500:"#f43f5e",600:"#e11d48",700:"#be123c",800:"#9f1239",900:"#881337",950:"#4c0519"},get lightBlue(){return n({version:"v2.2",from:"lightBlue",to:"sky"}),this.sky},get warmGray(){return n({version:"v3.0",from:"warmGray",to:"stone"}),this.stone},get trueGray(){return n({version:"v3.0",from:"trueGray",to:"neutral"}),this.neutral},get coolGray(){return n({version:"v3.0",from:"coolGray",to:"gray"}),this.gray},get blueGray(){return n({version:"v3.0",from:"blueGray",to:"slate"}),this.slate}}}(jt);var Sn={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"defaults",{enumerable:!0,get:function(){return e}});function e(r,...n){for(let i of n){for(let h in i){var s;!(r==null||(s=r.hasOwnProperty)===null||s===void 0)&&s.call(r,h)||(r[h]=i[h])}for(let h of Object.getOwnPropertySymbols(i)){var l;!(r==null||(l=r.hasOwnProperty)===null||l===void 0)&&l.call(r,h)||(r[h]=i[h])}}return r}})(Sn);var Tn={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"toPath",{enumerable:!0,get:function(){return e}});function e(r){if(Array.isArray(r))return r;let n=r.split("[").length-1,s=r.split("]").length-1;if(n!==s)throw new Error(`Path is invalid. Has unbalanced brackets: ${r}`);return r.split(/\.(?![^\[]*\])|[\[\]]/g).filter(Boolean)}})(Tn);var kn={},kt={};(function(t){Object.defineProperty(t,"__esModule",{value:!0});function e(f,m){for(var v in m)Object.defineProperty(f,v,{enumerable:!0,get:m[v]})}e(t,{flagEnabled:function(){return h},issueFlagNotices:function(){return o},default:function(){return u}});const r=s(wn),n=s(Tt);function s(f){return f&&f.__esModule?f:{default:f}}let l={optimizeUniversalDefaults:!1,generalizedModifiers:!0,disableColorOpacityUtilitiesByDefault:!1,relativeContentPathsByDefault:!1},i={future:["hoverOnlyWhenSupported","respectDefaultRingColorOpacity","disableColorOpacityUtilitiesByDefault","relativeContentPathsByDefault"],experimental:["optimizeUniversalDefaults","generalizedModifiers"]};function h(f,m){if(i.future.includes(m)){var v,b,d;return f.future==="all"||((d=(b=f==null||(v=f.future)===null||v===void 0?void 0:v[m])!==null&&b!==void 0?b:l[m])!==null&&d!==void 0?d:!1)}if(i.experimental.includes(m)){var y,T,E;return f.experimental==="all"||((E=(T=f==null||(y=f.experimental)===null||y===void 0?void 0:y[m])!==null&&T!==void 0?T:l[m])!==null&&E!==void 0?E:!1)}return!1}function a(f){if(f.experimental==="all")return i.experimental;var m;return Object.keys((m=f==null?void 0:f.experimental)!==null&&m!==void 0?m:{}).filter(v=>i.experimental.includes(v)&&f.experimental[v])}function o(f){if(process.env.JEST_WORKER_ID===void 0&&a(f).length>0){let m=a(f).map(v=>r.default.yellow(v)).join(", ");n.default.warn("experimental-flags-enabled",[`You have enabled experimental features: ${m}`,"Experimental features in Tailwind CSS are not covered by semver, may introduce breaking changes, and can change at any time."])}}const u=i})(kt),function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizeConfig",{enumerable:!0,get:function(){return l}});const e=kt,r=s(Tt);function n(i){if(typeof WeakMap!="function")return null;var h=new WeakMap,a=new WeakMap;return(n=function(o){return o?a:h})(i)}function s(i,h){if(!h&&i&&i.__esModule)return i;if(i===null||typeof i!="object"&&typeof i!="function")return{default:i};var a=n(h);if(a&&a.has(i))return a.get(i);var o={},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in i)if(f!=="default"&&Object.prototype.hasOwnProperty.call(i,f)){var m=u?Object.getOwnPropertyDescriptor(i,f):null;m&&(m.get||m.set)?Object.defineProperty(o,f,m):o[f]=i[f]}return o.default=i,a&&a.set(i,o),o}function l(i){if((()=>{if(i.purge||!i.content||!Array.isArray(i.content)&&!(typeof i.content=="object"&&i.content!==null))return!1;if(Array.isArray(i.content))return i.content.every(o=>typeof o=="string"?!0:!(typeof(o==null?void 0:o.raw)!="string"||o!=null&&o.extension&&typeof(o==null?void 0:o.extension)!="string"));if(typeof i.content=="object"&&i.content!==null){if(Object.keys(i.content).some(o=>!["files","relative","extract","transform"].includes(o)))return!1;if(Array.isArray(i.content.files)){if(!i.content.files.every(o=>typeof o=="string"?!0:!(typeof(o==null?void 0:o.raw)!="string"||o!=null&&o.extension&&typeof(o==null?void 0:o.extension)!="string")))return!1;if(typeof i.content.extract=="object"){for(let o of Object.values(i.content.extract))if(typeof o!="function")return!1}else if(!(i.content.extract===void 0||typeof i.content.extract=="function"))return!1;if(typeof i.content.transform=="object"){for(let o of Object.values(i.content.transform))if(typeof o!="function")return!1}else if(!(i.content.transform===void 0||typeof i.content.transform=="function"))return!1;if(typeof i.content.relative!="boolean"&&typeof i.content.relative!="undefined")return!1}return!0}return!1})()||r.default.warn("purge-deprecation",["The `purge`/`content` options have changed in Tailwind CSS v3.0.","Update your configuration file to eliminate this warning.","https://tailwindcss.com/docs/upgrade-guide#configure-content-sources"]),i.safelist=(()=>{var o;let{content:u,purge:f,safelist:m}=i;return Array.isArray(m)?m:Array.isArray(u==null?void 0:u.safelist)?u.safelist:Array.isArray(f==null?void 0:f.safelist)?f.safelist:Array.isArray(f==null||(o=f.options)===null||o===void 0?void 0:o.safelist)?f.options.safelist:[]})(),i.blocklist=(()=>{let{blocklist:o}=i;if(Array.isArray(o)){if(o.every(u=>typeof u=="string"))return o;r.default.warn("blocklist-invalid",["The `blocklist` option must be an array of strings.","https://tailwindcss.com/docs/content-configuration#discarding-classes"])}return[]})(),typeof i.prefix=="function")r.default.warn("prefix-function",["As of Tailwind CSS v3.0, `prefix` cannot be a function.","Update `prefix` in your configuration to be a string to eliminate this warning.","https://tailwindcss.com/docs/upgrade-guide#prefix-cannot-be-a-function"]),i.prefix="";else{var a;i.prefix=(a=i.prefix)!==null&&a!==void 0?a:""}i.content={relative:(()=>{let{content:o}=i;return o!=null&&o.relative?o.relative:(0,e.flagEnabled)(i,"relativeContentPathsByDefault")})(),files:(()=>{let{content:o,purge:u}=i;return Array.isArray(u)?u:Array.isArray(u==null?void 0:u.content)?u.content:Array.isArray(o)?o:Array.isArray(o==null?void 0:o.content)?o.content:Array.isArray(o==null?void 0:o.files)?o.files:[]})(),extract:(()=>{let o=(()=>{var m,v,b,d,y,T,E,w,F,$;return!((m=i.purge)===null||m===void 0)&&m.extract?i.purge.extract:!((v=i.content)===null||v===void 0)&&v.extract?i.content.extract:!((b=i.purge)===null||b===void 0||(d=b.extract)===null||d===void 0)&&d.DEFAULT?i.purge.extract.DEFAULT:!((y=i.content)===null||y===void 0||(T=y.extract)===null||T===void 0)&&T.DEFAULT?i.content.extract.DEFAULT:!((E=i.purge)===null||E===void 0||(w=E.options)===null||w===void 0)&&w.extractors?i.purge.options.extractors:!((F=i.content)===null||F===void 0||($=F.options)===null||$===void 0)&&$.extractors?i.content.options.extractors:{}})(),u={},f=(()=>{var m,v,b,d;if(!((m=i.purge)===null||m===void 0||(v=m.options)===null||v===void 0)&&v.defaultExtractor)return i.purge.options.defaultExtractor;if(!((b=i.content)===null||b===void 0||(d=b.options)===null||d===void 0)&&d.defaultExtractor)return i.content.options.defaultExtractor})();if(f!==void 0&&(u.DEFAULT=f),typeof o=="function")u.DEFAULT=o;else if(Array.isArray(o))for(let{extensions:m,extractor:v}of o!=null?o:[])for(let b of m)u[b]=v;else typeof o=="object"&&o!==null&&Object.assign(u,o);return u})(),transform:(()=>{let o=(()=>{var f,m,v,b,d,y;return!((f=i.purge)===null||f===void 0)&&f.transform?i.purge.transform:!((m=i.content)===null||m===void 0)&&m.transform?i.content.transform:!((v=i.purge)===null||v===void 0||(b=v.transform)===null||b===void 0)&&b.DEFAULT?i.purge.transform.DEFAULT:!((d=i.content)===null||d===void 0||(y=d.transform)===null||y===void 0)&&y.DEFAULT?i.content.transform.DEFAULT:{}})(),u={};return typeof o=="function"?u.DEFAULT=o:typeof o=="object"&&o!==null&&Object.assign(u,o),u})()};for(let o of i.content.files)if(typeof o=="string"&&/{([^,]*?)}/g.test(o)){r.default.warn("invalid-glob-braces",[`The glob pattern ${(0,r.dim)(o)} in your Tailwind CSS configuration is invalid.`,`Update it to ${(0,r.dim)(o.replace(/{([^,]*?)}/g,"$1"))} to silence this warning.`]);break}return i}}(kn);var Mn={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return e}});function e(r){if(Object.prototype.toString.call(r)!=="[object Object]")return!1;const n=Object.getPrototypeOf(r);return n===null||Object.getPrototypeOf(n)===null}})(Mn);var En={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"cloneDeep",{enumerable:!0,get:function(){return e}});function e(r){return Array.isArray(r)?r.map(n=>e(n)):typeof r=="object"&&r!==null?Object.fromEntries(Object.entries(r).map(([n,s])=>[n,e(s)])):r}})(En);var $n={},Ln={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return e}});function e(r){return r.replace(/\\,/g,"\\2c ")}})(Ln);var qt={},Zt={},Dn={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return e}});const e={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}})(Dn),function(t){Object.defineProperty(t,"__esModule",{value:!0});function e(b,d){for(var y in d)Object.defineProperty(b,y,{enumerable:!0,get:d[y]})}e(t,{parseColor:function(){return m},formatColor:function(){return v}});const r=n(Dn);function n(b){return b&&b.__esModule?b:{default:b}}let s=/^#([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i,l=/^#([a-f\d])([a-f\d])([a-f\d])([a-f\d])?$/i,i=/(?:\d+|\d*\.\d+)%?/,h=/(?:\s*,\s*|\s+)/,a=/\s*[,/]\s*/,o=/var\(--(?:[^ )]*?)(?:,(?:[^ )]*?|var\(--[^ )]*?\)))?\)/,u=new RegExp(`^(rgba?)\\(\\s*(${i.source}|${o.source})(?:${h.source}(${i.source}|${o.source}))?(?:${h.source}(${i.source}|${o.source}))?(?:${a.source}(${i.source}|${o.source}))?\\s*\\)$`),f=new RegExp(`^(hsla?)\\(\\s*((?:${i.source})(?:deg|rad|grad|turn)?|${o.source})(?:${h.source}(${i.source}|${o.source}))?(?:${h.source}(${i.source}|${o.source}))?(?:${a.source}(${i.source}|${o.source}))?\\s*\\)$`);function m(b,{loose:d=!1}={}){var y,T;if(typeof b!="string")return null;if(b=b.trim(),b==="transparent")return{mode:"rgb",color:["0","0","0"],alpha:"0"};if(b in r.default)return{mode:"rgb",color:r.default[b].map(N=>N.toString())};let E=b.replace(l,(N,K,q,x,z)=>["#",K,K,q,q,x,x,z?z+z:""].join("")).match(s);if(E!==null)return{mode:"rgb",color:[parseInt(E[1],16),parseInt(E[2],16),parseInt(E[3],16)].map(N=>N.toString()),alpha:E[4]?(parseInt(E[4],16)/255).toString():void 0};var w;let F=(w=b.match(u))!==null&&w!==void 0?w:b.match(f);if(F===null)return null;let $=[F[2],F[3],F[4]].filter(Boolean).map(N=>N.toString());return $.length===2&&$[0].startsWith("var(")?{mode:F[1],color:[$[0]],alpha:$[1]}:!d&&$.length!==3||$.length<3&&!$.some(N=>/^var\(.*?\)$/.test(N))?null:{mode:F[1],color:$,alpha:(y=F[5])===null||y===void 0||(T=y.toString)===null||T===void 0?void 0:T.call(y)}}function v({mode:b,color:d,alpha:y}){let T=y!==void 0;return b==="rgba"||b==="hsla"?`${b}(${d.join(", ")}${T?`, ${y}`:""})`:`${b}(${d.join(" ")}${T?` / ${y}`:""})`}}(Zt),function(t){Object.defineProperty(t,"__esModule",{value:!0});function e(l,i){for(var h in i)Object.defineProperty(l,h,{enumerable:!0,get:i[h]})}e(t,{withAlphaValue:function(){return n},default:function(){return s}});const r=Zt;function n(l,i,h){if(typeof l=="function")return l({opacityValue:i});let a=(0,r.parseColor)(l,{loose:!0});return a===null?h:(0,r.formatColor)({...a,alpha:i})}function s({color:l,property:i,variable:h}){let a=[].concat(i);if(typeof l=="function")return{[h]:"1",...Object.fromEntries(a.map(u=>[u,l({opacityVariable:h,opacityValue:`var(${h})`})]))};const o=(0,r.parseColor)(l);return o===null?Object.fromEntries(a.map(u=>[u,l])):o.alpha!==void 0?Object.fromEntries(a.map(u=>[u,l])):{[h]:"1",...Object.fromEntries(a.map(u=>[u,(0,r.formatColor)({...o,alpha:`var(${h})`})]))}}}(qt);var Ut={},Pn={},Mt={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"splitAtTopLevelOnly",{enumerable:!0,get:function(){return e}});function e(r,n){let s=[],l=[],i=0,h=!1;for(let a=0;a<r.length;a++){let o=r[a];s.length===0&&o===n[0]&&!h&&(n.length===1||r.slice(a,a+n.length)===n)&&(l.push(r.slice(i,a)),i=a+n.length),h=h?!1:o==="\\",o==="("||o==="["||o==="{"?s.push(o):(o===")"&&s[s.length-1]==="("||o==="]"&&s[s.length-1]==="["||o==="}"&&s[s.length-1]==="{")&&s.pop()}return l.push(r.slice(i)),l}})(Mt),function(t){Object.defineProperty(t,"__esModule",{value:!0});function e(a,o){for(var u in o)Object.defineProperty(a,u,{enumerable:!0,get:o[u]})}e(t,{parseBoxShadowValue:function(){return i},formatBoxShadowValue:function(){return h}});const r=Mt;let n=new Set(["inset","inherit","initial","revert","unset"]),s=/\ +(?![^(]*\))/g,l=/^-?(\d+|\.\d+)(.*?)$/g;function i(a){return(0,r.splitAtTopLevelOnly)(a,",").map(u=>{let f=u.trim(),m={raw:f},v=f.split(s),b=new Set;for(let d of v)l.lastIndex=0,!b.has("KEYWORD")&&n.has(d)?(m.keyword=d,b.add("KEYWORD")):l.test(d)?b.has("X")?b.has("Y")?b.has("BLUR")?b.has("SPREAD")||(m.spread=d,b.add("SPREAD")):(m.blur=d,b.add("BLUR")):(m.y=d,b.add("Y")):(m.x=d,b.add("X")):m.color?(m.unknown||(m.unknown=[]),m.unknown.push(d)):m.color=d;return m.valid=m.x!==void 0&&m.y!==void 0,m})}function h(a){return a.map(o=>o.valid?[o.keyword,o.x,o.y,o.blur,o.spread,o.color].filter(Boolean).join(" "):o.raw).join(", ")}}(Pn),function(t){Object.defineProperty(t,"__esModule",{value:!0});function e(O,R){for(var ie in R)Object.defineProperty(O,ie,{enumerable:!0,get:R[ie]})}e(t,{normalize:function(){return a},normalizeAttributeSelectors:function(){return o},url:function(){return f},number:function(){return m},percentage:function(){return v},length:function(){return y},lineWidth:function(){return E},shadow:function(){return w},color:function(){return F},image:function(){return $},gradient:function(){return K},position:function(){return x},familyName:function(){return z},genericName:function(){return D},absoluteSize:function(){return Q},relativeSize:function(){return k}});const r=Zt,n=Pn,s=Mt;let l=["min","max","clamp","calc"];function i(O){return l.some(R=>new RegExp(`^${R}\\(.*\\)`).test(O))}const h=new Set(["scroll-timeline-name","timeline-scope","view-timeline-name","font-palette","anchor-name","anchor-scope","position-anchor","position-try-options","scroll-timeline","animation-timeline","view-timeline","position-try"]);function a(O,R=null,ie=!0){let C=R&&h.has(R.property);return O.startsWith("--")&&!C?`var(${O})`:O.includes("url(")?O.split(/(url\(.*?\))/g).filter(Boolean).map(Z=>/^url\(.*?\)$/.test(Z)?Z:a(Z,R,!1)).join(""):(O=O.replace(/([^\\])_+/g,(Z,A)=>A+" ".repeat(Z.length-1)).replace(/^_/g," ").replace(/\\_/g,"_"),ie&&(O=O.trim()),O=u(O),O)}function o(O){return O.includes("=")&&(O=O.replace(/(=.*)/g,(R,ie)=>{if(ie[1]==="'"||ie[1]==='"')return ie;if(ie.length>2){let C=ie[ie.length-1];if(ie[ie.length-2]===" "&&(C==="i"||C==="I"||C==="s"||C==="S"))return`="${ie.slice(1,-2)}" ${ie[ie.length-1]}`}return`="${ie.slice(1)}"`})),O}function u(O){let R=["theme"],ie=["min-content","max-content","fit-content","safe-area-inset-top","safe-area-inset-right","safe-area-inset-bottom","safe-area-inset-left","titlebar-area-x","titlebar-area-y","titlebar-area-width","titlebar-area-height","keyboard-inset-top","keyboard-inset-right","keyboard-inset-bottom","keyboard-inset-left","keyboard-inset-width","keyboard-inset-height","radial-gradient","linear-gradient","conic-gradient","repeating-radial-gradient","repeating-linear-gradient","repeating-conic-gradient"];return O.replace(/(calc|min|max|clamp)\(.+\)/g,C=>{let Z="";function A(){let B=Z.trimEnd();return B[B.length-1]}for(let B=0;B<C.length;B++){let S=function(L){return L.split("").every((ne,ue)=>C[B+ue]===ne)},W=function(L){let ne=1/0;for(let ce of L){let se=C.indexOf(ce,B);se!==-1&&se<ne&&(ne=se)}let ue=C.slice(B,ne);return B+=ue.length-1,ue},V=C[B];if(S("var"))Z+=W([")",","]);else if(ie.some(L=>S(L))){let L=ie.find(ne=>S(ne));Z+=L,B+=L.length-1}else R.some(L=>S(L))?Z+=W([")"]):S("[")?Z+=W(["]"]):["+","-","*","/"].includes(V)&&!["(","+","-","*","/",","].includes(A())?Z+=` ${V} `:Z+=V}return Z.replace(/\s+/g," ")})}function f(O){return O.startsWith("url(")}function m(O){return!isNaN(Number(O))||i(O)}function v(O){return O.endsWith("%")&&m(O.slice(0,-1))||i(O)}let d=`(?:${["cm","mm","Q","in","pc","pt","px","em","ex","ch","rem","lh","rlh","vw","vh","vmin","vmax","vb","vi","svw","svh","lvw","lvh","dvw","dvh","cqw","cqh","cqi","cqb","cqmin","cqmax"].join("|")})`;function y(O){return O==="0"||new RegExp(`^[+-]?[0-9]*.?[0-9]+(?:[eE][+-]?[0-9]+)?${d}$`).test(O)||i(O)}let T=new Set(["thin","medium","thick"]);function E(O){return T.has(O)}function w(O){let R=(0,n.parseBoxShadowValue)(a(O));for(let ie of R)if(!ie.valid)return!1;return!0}function F(O){let R=0;return(0,s.splitAtTopLevelOnly)(O,"_").every(C=>(C=a(C),C.startsWith("var(")?!0:(0,r.parseColor)(C,{loose:!0})!==null?(R++,!0):!1))?R>0:!1}function $(O){let R=0;return(0,s.splitAtTopLevelOnly)(O,",").every(C=>(C=a(C),C.startsWith("var(")?!0:f(C)||K(C)||["element(","image(","cross-fade(","image-set("].some(Z=>C.startsWith(Z))?(R++,!0):!1))?R>0:!1}let N=new Set(["conic-gradient","linear-gradient","radial-gradient","repeating-conic-gradient","repeating-linear-gradient","repeating-radial-gradient"]);function K(O){O=a(O);for(let R of N)if(O.startsWith(`${R}(`))return!0;return!1}let q=new Set(["center","top","right","bottom","left"]);function x(O){let R=0;return(0,s.splitAtTopLevelOnly)(O,"_").every(C=>(C=a(C),C.startsWith("var(")?!0:q.has(C)||y(C)||v(C)?(R++,!0):!1))?R>0:!1}function z(O){let R=0;return(0,s.splitAtTopLevelOnly)(O,",").every(C=>(C=a(C),C.startsWith("var(")?!0:C.includes(" ")&&!/(['"])([^"']+)\1/g.test(C)||/^\d/g.test(C)?!1:(R++,!0)))?R>0:!1}let G=new Set(["serif","sans-serif","monospace","cursive","fantasy","system-ui","ui-serif","ui-sans-serif","ui-monospace","ui-rounded","math","emoji","fangsong"]);function D(O){return G.has(O)}let X=new Set(["xx-small","x-small","small","medium","large","x-large","xx-large","xxx-large"]);function Q(O){return X.has(O)}let I=new Set(["larger","smaller"]);function k(O){return I.has(O)}}(Ut);var On={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"backgroundSize",{enumerable:!0,get:function(){return n}});const e=Ut,r=Mt;function n(s){let l=["cover","contain"];return(0,r.splitAtTopLevelOnly)(s,",").every(i=>{let h=(0,r.splitAtTopLevelOnly)(i,"_").filter(Boolean);return h.length===1&&l.includes(h[0])?!0:h.length!==1&&h.length!==2?!1:h.every(a=>(0,e.length)(a)||(0,e.percentage)(a)||a==="auto")})}})(On),function(t){Object.defineProperty(t,"__esModule",{value:!0});function e(x,z){for(var G in z)Object.defineProperty(x,G,{enumerable:!0,get:z[G]})}e(t,{updateAllClasses:function(){return o},asValue:function(){return m},parseColorFormat:function(){return d},asColor:function(){return T},asLookupValue:function(){return E},typeMap:function(){return F},coerceValue:function(){return K},getMatchingTypes:function(){return q}});const r=a(Ln),n=qt,s=Ut,l=a(Wt),i=On,h=kt;function a(x){return x&&x.__esModule?x:{default:x}}function o(x,z){x.walkClasses(G=>{G.value=z(G.value),G.raws&&G.raws.value&&(G.raws.value=(0,r.default)(G.raws.value))})}function u(x,z){if(!v(x))return;let G=x.slice(1,-1);if(z(G))return(0,s.normalize)(G)}function f(x,z={},G){let D=z[x];if(D!==void 0)return(0,l.default)(D);if(v(x)){let X=u(x,G);return X===void 0?void 0:(0,l.default)(X)}}function m(x,z={},{validate:G=()=>!0}={}){var D;let X=(D=z.values)===null||D===void 0?void 0:D[x];return X!==void 0?X:z.supportsNegativeValues&&x.startsWith("-")?f(x.slice(1),z.values,G):u(x,G)}function v(x){return x.startsWith("[")&&x.endsWith("]")}function b(x){let z=x.lastIndexOf("/"),G=x.lastIndexOf("[",z),D=x.indexOf("]",z);return x[z-1]==="]"||x[z+1]==="["||G!==-1&&D!==-1&&G<z&&z<D&&(z=x.lastIndexOf("/",G)),z===-1||z===x.length-1?[x,void 0]:v(x)&&!x.includes("]/[")?[x,void 0]:[x.slice(0,z),x.slice(z+1)]}function d(x){if(typeof x=="string"&&x.includes("<alpha-value>")){let z=x;return({opacityValue:G=1})=>z.replace(/<alpha-value>/g,G)}return x}function y(x){return(0,s.normalize)(x.slice(1,-1))}function T(x,z={},{tailwindConfig:G={}}={}){var D;if(((D=z.values)===null||D===void 0?void 0:D[x])!==void 0){var X;return d((X=z.values)===null||X===void 0?void 0:X[x])}let[Q,I]=b(x);if(I!==void 0){var k,O,R,ie;let C=(ie=(k=z.values)===null||k===void 0?void 0:k[Q])!==null&&ie!==void 0?ie:v(Q)?Q.slice(1,-1):void 0;return C===void 0?void 0:(C=d(C),v(I)?(0,n.withAlphaValue)(C,y(I)):((O=G.theme)===null||O===void 0||(R=O.opacity)===null||R===void 0?void 0:R[I])===void 0?void 0:(0,n.withAlphaValue)(C,G.theme.opacity[I]))}return m(x,z,{validate:s.color})}function E(x,z={}){var G;return(G=z.values)===null||G===void 0?void 0:G[x]}function w(x){return(z,G)=>m(z,G,{validate:x})}let F={any:m,color:T,url:w(s.url),image:w(s.image),length:w(s.length),percentage:w(s.percentage),position:w(s.position),lookup:E,"generic-name":w(s.genericName),"family-name":w(s.familyName),number:w(s.number),"line-width":w(s.lineWidth),"absolute-size":w(s.absoluteSize),"relative-size":w(s.relativeSize),shadow:w(s.shadow),size:w(i.backgroundSize)},$=Object.keys(F);function N(x,z){let G=x.indexOf(z);return G===-1?[void 0,x]:[x.slice(0,G),x.slice(G+1)]}function K(x,z,G,D){if(G.values&&z in G.values)for(let{type:Q}of x!=null?x:[]){let I=F[Q](z,G,{tailwindConfig:D});if(I!==void 0)return[I,Q,null]}if(v(z)){let Q=z.slice(1,-1),[I,k]=N(Q,":");if(!/^[\w-_]+$/g.test(I))k=Q;else if(I!==void 0&&!$.includes(I))return[];if(k.length>0&&$.includes(I))return[m(`[${k}]`,G),I,null]}let X=q(x,z,G,D);for(let Q of X)return Q;return[]}function*q(x,z,G,D){let X=(0,h.flagEnabled)(D,"generalizedModifiers"),[Q,I]=b(z);if(X&&G.modifiers!=null&&(G.modifiers==="any"||typeof G.modifiers=="object"&&(I&&v(I)||I in G.modifiers))||(Q=z,I=void 0),I!==void 0&&Q===""&&(Q="DEFAULT"),I!==void 0&&typeof G.modifiers=="object"){var O,R;let ie=(R=(O=G.modifiers)===null||O===void 0?void 0:O[I])!==null&&R!==void 0?R:null;ie!==null?I=ie:v(I)&&(I=y(I))}for(let{type:ie}of x!=null?x:[]){let C=F[ie](Q,G,{tailwindConfig:D});C!==void 0&&(yield[C,ie,I!=null?I:null])}}}($n);var zn={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return e}});function e(r){return typeof r=="function"?r({}):r}})(zn),function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return G}});const e=v(Wt),r=v(Cn),n=v(bn),s=v(jt),l=Sn,i=Tn,h=kn,a=v(Mn),o=En,u=$n,f=qt,m=v(zn);function v(D){return D&&D.__esModule?D:{default:D}}function b(D){return typeof D=="function"}function d(D,...X){let Q=X.pop();for(let I of X)for(let k in I){let O=Q(D[k],I[k]);O===void 0?(0,a.default)(D[k])&&(0,a.default)(I[k])?D[k]=d({},D[k],I[k],Q):D[k]=I[k]:D[k]=O}return D}const y={colors:s.default,negative(D){return Object.keys(D).filter(X=>D[X]!=="0").reduce((X,Q)=>{let I=(0,e.default)(D[Q]);return I!==void 0&&(X[`-${Q}`]=I),X},{})},breakpoints(D){return Object.keys(D).filter(X=>typeof D[X]=="string").reduce((X,Q)=>({...X,[`screen-${Q}`]:D[Q]}),{})}};function T(D,...X){return b(D)?D(...X):D}function E(D){return D.reduce((X,{extend:Q})=>d(X,Q,(I,k)=>I===void 0?[k]:Array.isArray(I)?[k,...I]:[k,I]),{})}function w(D){return{...D.reduce((X,Q)=>(0,l.defaults)(X,Q),{}),extend:E(D)}}function F(D,X){if(Array.isArray(D)&&(0,a.default)(D[0]))return D.concat(X);if(Array.isArray(X)&&(0,a.default)(X[0])&&(0,a.default)(D))return[D,...X];if(Array.isArray(X))return X}function $({extend:D,...X}){return d(X,D,(Q,I)=>!b(Q)&&!I.some(b)?d({},Q,...I,F):(k,O)=>d({},...[Q,...I].map(R=>T(R,k,O)),F))}function*N(D){let X=(0,i.toPath)(D);if(X.length===0||(yield X,Array.isArray(D)))return;let Q=/^(.*?)\s*\/\s*([^/]+)$/,I=D.match(Q);if(I!==null){let[,k,O]=I,R=(0,i.toPath)(k);R.alpha=O,yield R}}function K(D){const X=(Q,I)=>{for(const k of N(Q)){let O=0,R=D;for(;R!=null&&O<k.length;)R=R[k[O++]],R=b(R)&&(k.alpha===void 0||O<=k.length-1)?R(X,y):R;if(R!==void 0){if(k.alpha!==void 0){let ie=(0,u.parseColorFormat)(R);return(0,f.withAlphaValue)(ie,k.alpha,(0,m.default)(ie))}return(0,a.default)(R)?(0,o.cloneDeep)(R):R}}return I};return Object.assign(X,{theme:X,...y}),Object.keys(D).reduce((Q,I)=>(Q[I]=b(D[I])?D[I](X,y):D[I],Q),{})}function q(D){let X=[];return D.forEach(Q=>{X=[...X,Q];var I;const k=(I=Q==null?void 0:Q.plugins)!==null&&I!==void 0?I:[];k.length!==0&&k.forEach(O=>{O.__isOptionsFunction&&(O=O());var R;X=[...X,...q([(R=O==null?void 0:O.config)!==null&&R!==void 0?R:{}])]})}),X}function x(D){return[...D].reduceRight((Q,I)=>b(I)?I({corePlugins:Q}):(0,n.default)(I,Q),r.default)}function z(D){return[...D].reduceRight((Q,I)=>[...Q,...I],[])}function G(D){let X=[...q(D),{prefix:"",important:!1,separator:":"}];var Q,I;return(0,h.normalizeConfig)((0,l.defaults)({theme:K($(w(X.map(k=>(Q=k==null?void 0:k.theme)!==null&&Q!==void 0?Q:{})))),corePlugins:x(X.map(k=>k.corePlugins)),plugins:z(D.map(k=>(I=k==null?void 0:k.plugins)!==null&&I!==void 0?I:[]))},...X))}}(yn);var Bn={},Bs={content:[],presets:[],darkMode:"media",theme:{accentColor:({theme:t})=>({...t("colors"),auto:"auto"}),animation:{none:"none",spin:"spin 1s linear infinite",ping:"ping 1s cubic-bezier(0, 0, 0.2, 1) infinite",pulse:"pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite",bounce:"bounce 1s infinite"},aria:{busy:'busy="true"',checked:'checked="true"',disabled:'disabled="true"',expanded:'expanded="true"',hidden:'hidden="true"',pressed:'pressed="true"',readonly:'readonly="true"',required:'required="true"',selected:'selected="true"'},aspectRatio:{auto:"auto",square:"1 / 1",video:"16 / 9"},backdropBlur:({theme:t})=>t("blur"),backdropBrightness:({theme:t})=>t("brightness"),backdropContrast:({theme:t})=>t("contrast"),backdropGrayscale:({theme:t})=>t("grayscale"),backdropHueRotate:({theme:t})=>t("hueRotate"),backdropInvert:({theme:t})=>t("invert"),backdropOpacity:({theme:t})=>t("opacity"),backdropSaturate:({theme:t})=>t("saturate"),backdropSepia:({theme:t})=>t("sepia"),backgroundColor:({theme:t})=>t("colors"),backgroundImage:{none:"none","gradient-to-t":"linear-gradient(to top, var(--tw-gradient-stops))","gradient-to-tr":"linear-gradient(to top right, var(--tw-gradient-stops))","gradient-to-r":"linear-gradient(to right, var(--tw-gradient-stops))","gradient-to-br":"linear-gradient(to bottom right, var(--tw-gradient-stops))","gradient-to-b":"linear-gradient(to bottom, var(--tw-gradient-stops))","gradient-to-bl":"linear-gradient(to bottom left, var(--tw-gradient-stops))","gradient-to-l":"linear-gradient(to left, var(--tw-gradient-stops))","gradient-to-tl":"linear-gradient(to top left, var(--tw-gradient-stops))"},backgroundOpacity:({theme:t})=>t("opacity"),backgroundPosition:{bottom:"bottom",center:"center",left:"left","left-bottom":"left bottom","left-top":"left top",right:"right","right-bottom":"right bottom","right-top":"right top",top:"top"},backgroundSize:{auto:"auto",cover:"cover",contain:"contain"},blur:{0:"0",none:"",sm:"4px",DEFAULT:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},borderColor:({theme:t})=>({...t("colors"),DEFAULT:t("colors.gray.200","currentColor")}),borderOpacity:({theme:t})=>t("opacity"),borderRadius:{none:"0px",sm:"0.125rem",DEFAULT:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},borderSpacing:({theme:t})=>({...t("spacing")}),borderWidth:{DEFAULT:"1px",0:"0px",2:"2px",4:"4px",8:"8px"},boxShadow:{sm:"0 1px 2px 0 rgb(0 0 0 / 0.05)",DEFAULT:"0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)",md:"0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)",lg:"0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)",xl:"0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)","2xl":"0 25px 50px -12px rgb(0 0 0 / 0.25)",inner:"inset 0 2px 4px 0 rgb(0 0 0 / 0.05)",none:"none"},boxShadowColor:({theme:t})=>t("colors"),brightness:{0:"0",50:".5",75:".75",90:".9",95:".95",100:"1",105:"1.05",110:"1.1",125:"1.25",150:"1.5",200:"2"},caretColor:({theme:t})=>t("colors"),colors:({colors:t})=>({inherit:t.inherit,current:t.current,transparent:t.transparent,black:t.black,white:t.white,slate:t.slate,gray:t.gray,zinc:t.zinc,neutral:t.neutral,stone:t.stone,red:t.red,orange:t.orange,amber:t.amber,yellow:t.yellow,lime:t.lime,green:t.green,emerald:t.emerald,teal:t.teal,cyan:t.cyan,sky:t.sky,blue:t.blue,indigo:t.indigo,violet:t.violet,purple:t.purple,fuchsia:t.fuchsia,pink:t.pink,rose:t.rose}),columns:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12","3xs":"16rem","2xs":"18rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem"},container:{},content:{none:"none"},contrast:{0:"0",50:".5",75:".75",100:"1",125:"1.25",150:"1.5",200:"2"},cursor:{auto:"auto",default:"default",pointer:"pointer",wait:"wait",text:"text",move:"move",help:"help","not-allowed":"not-allowed",none:"none","context-menu":"context-menu",progress:"progress",cell:"cell",crosshair:"crosshair","vertical-text":"vertical-text",alias:"alias",copy:"copy","no-drop":"no-drop",grab:"grab",grabbing:"grabbing","all-scroll":"all-scroll","col-resize":"col-resize","row-resize":"row-resize","n-resize":"n-resize","e-resize":"e-resize","s-resize":"s-resize","w-resize":"w-resize","ne-resize":"ne-resize","nw-resize":"nw-resize","se-resize":"se-resize","sw-resize":"sw-resize","ew-resize":"ew-resize","ns-resize":"ns-resize","nesw-resize":"nesw-resize","nwse-resize":"nwse-resize","zoom-in":"zoom-in","zoom-out":"zoom-out"},divideColor:({theme:t})=>t("borderColor"),divideOpacity:({theme:t})=>t("borderOpacity"),divideWidth:({theme:t})=>t("borderWidth"),dropShadow:{sm:"0 1px 1px rgb(0 0 0 / 0.05)",DEFAULT:["0 1px 2px rgb(0 0 0 / 0.1)","0 1px 1px rgb(0 0 0 / 0.06)"],md:["0 4px 3px rgb(0 0 0 / 0.07)","0 2px 2px rgb(0 0 0 / 0.06)"],lg:["0 10px 8px rgb(0 0 0 / 0.04)","0 4px 3px rgb(0 0 0 / 0.1)"],xl:["0 20px 13px rgb(0 0 0 / 0.03)","0 8px 5px rgb(0 0 0 / 0.08)"],"2xl":"0 25px 25px rgb(0 0 0 / 0.15)",none:"0 0 #0000"},fill:({theme:t})=>({none:"none",...t("colors")}),flex:{1:"1 1 0%",auto:"1 1 auto",initial:"0 1 auto",none:"none"},flexBasis:({theme:t})=>({auto:"auto",...t("spacing"),"1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.666667%","2/6":"33.333333%","3/6":"50%","4/6":"66.666667%","5/6":"83.333333%","1/12":"8.333333%","2/12":"16.666667%","3/12":"25%","4/12":"33.333333%","5/12":"41.666667%","6/12":"50%","7/12":"58.333333%","8/12":"66.666667%","9/12":"75%","10/12":"83.333333%","11/12":"91.666667%",full:"100%"}),flexGrow:{0:"0",DEFAULT:"1"},flexShrink:{0:"0",DEFAULT:"1"},fontFamily:{sans:["ui-sans-serif","system-ui","sans-serif",'"Apple Color Emoji"','"Segoe UI Emoji"','"Segoe UI Symbol"','"Noto Color Emoji"'],serif:["ui-serif","Georgia","Cambria",'"Times New Roman"',"Times","serif"],mono:["ui-monospace","SFMono-Regular","Menlo","Monaco","Consolas",'"Liberation Mono"','"Courier New"',"monospace"]},fontSize:{xs:["0.75rem",{lineHeight:"1rem"}],sm:["0.875rem",{lineHeight:"1.25rem"}],base:["1rem",{lineHeight:"1.5rem"}],lg:["1.125rem",{lineHeight:"1.75rem"}],xl:["1.25rem",{lineHeight:"1.75rem"}],"2xl":["1.5rem",{lineHeight:"2rem"}],"3xl":["1.875rem",{lineHeight:"2.25rem"}],"4xl":["2.25rem",{lineHeight:"2.5rem"}],"5xl":["3rem",{lineHeight:"1"}],"6xl":["3.75rem",{lineHeight:"1"}],"7xl":["4.5rem",{lineHeight:"1"}],"8xl":["6rem",{lineHeight:"1"}],"9xl":["8rem",{lineHeight:"1"}]},fontWeight:{thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},gap:({theme:t})=>t("spacing"),gradientColorStops:({theme:t})=>t("colors"),gradientColorStopPositions:{"0%":"0%","5%":"5%","10%":"10%","15%":"15%","20%":"20%","25%":"25%","30%":"30%","35%":"35%","40%":"40%","45%":"45%","50%":"50%","55%":"55%","60%":"60%","65%":"65%","70%":"70%","75%":"75%","80%":"80%","85%":"85%","90%":"90%","95%":"95%","100%":"100%"},grayscale:{0:"0",DEFAULT:"100%"},gridAutoColumns:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0, 1fr)"},gridAutoRows:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0, 1fr)"},gridColumn:{auto:"auto","span-1":"span 1 / span 1","span-2":"span 2 / span 2","span-3":"span 3 / span 3","span-4":"span 4 / span 4","span-5":"span 5 / span 5","span-6":"span 6 / span 6","span-7":"span 7 / span 7","span-8":"span 8 / span 8","span-9":"span 9 / span 9","span-10":"span 10 / span 10","span-11":"span 11 / span 11","span-12":"span 12 / span 12","span-full":"1 / -1"},gridColumnEnd:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12",13:"13"},gridColumnStart:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12",13:"13"},gridRow:{auto:"auto","span-1":"span 1 / span 1","span-2":"span 2 / span 2","span-3":"span 3 / span 3","span-4":"span 4 / span 4","span-5":"span 5 / span 5","span-6":"span 6 / span 6","span-7":"span 7 / span 7","span-8":"span 8 / span 8","span-9":"span 9 / span 9","span-10":"span 10 / span 10","span-11":"span 11 / span 11","span-12":"span 12 / span 12","span-full":"1 / -1"},gridRowEnd:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12",13:"13"},gridRowStart:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12",13:"13"},gridTemplateColumns:{none:"none",subgrid:"subgrid",1:"repeat(1, minmax(0, 1fr))",2:"repeat(2, minmax(0, 1fr))",3:"repeat(3, minmax(0, 1fr))",4:"repeat(4, minmax(0, 1fr))",5:"repeat(5, minmax(0, 1fr))",6:"repeat(6, minmax(0, 1fr))",7:"repeat(7, minmax(0, 1fr))",8:"repeat(8, minmax(0, 1fr))",9:"repeat(9, minmax(0, 1fr))",10:"repeat(10, minmax(0, 1fr))",11:"repeat(11, minmax(0, 1fr))",12:"repeat(12, minmax(0, 1fr))"},gridTemplateRows:{none:"none",subgrid:"subgrid",1:"repeat(1, minmax(0, 1fr))",2:"repeat(2, minmax(0, 1fr))",3:"repeat(3, minmax(0, 1fr))",4:"repeat(4, minmax(0, 1fr))",5:"repeat(5, minmax(0, 1fr))",6:"repeat(6, minmax(0, 1fr))",7:"repeat(7, minmax(0, 1fr))",8:"repeat(8, minmax(0, 1fr))",9:"repeat(9, minmax(0, 1fr))",10:"repeat(10, minmax(0, 1fr))",11:"repeat(11, minmax(0, 1fr))",12:"repeat(12, minmax(0, 1fr))"},height:({theme:t})=>({auto:"auto",...t("spacing"),"1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.666667%","2/6":"33.333333%","3/6":"50%","4/6":"66.666667%","5/6":"83.333333%",full:"100%",screen:"100vh",svh:"100svh",lvh:"100lvh",dvh:"100dvh",min:"min-content",max:"max-content",fit:"fit-content"}),hueRotate:{0:"0deg",15:"15deg",30:"30deg",60:"60deg",90:"90deg",180:"180deg"},inset:({theme:t})=>({auto:"auto",...t("spacing"),"1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%",full:"100%"}),invert:{0:"0",DEFAULT:"100%"},keyframes:{spin:{to:{transform:"rotate(360deg)"}},ping:{"75%, 100%":{transform:"scale(2)",opacity:"0"}},pulse:{"50%":{opacity:".5"}},bounce:{"0%, 100%":{transform:"translateY(-25%)",animationTimingFunction:"cubic-bezier(0.8,0,1,1)"},"50%":{transform:"none",animationTimingFunction:"cubic-bezier(0,0,0.2,1)"}}},letterSpacing:{tighter:"-0.05em",tight:"-0.025em",normal:"0em",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeight:{none:"1",tight:"1.25",snug:"1.375",normal:"1.5",relaxed:"1.625",loose:"2",3:".75rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem"},listStyleType:{none:"none",disc:"disc",decimal:"decimal"},listStyleImage:{none:"none"},margin:({theme:t})=>({auto:"auto",...t("spacing")}),lineClamp:{1:"1",2:"2",3:"3",4:"4",5:"5",6:"6"},maxHeight:({theme:t})=>({...t("spacing"),none:"none",full:"100%",screen:"100vh",svh:"100svh",lvh:"100lvh",dvh:"100dvh",min:"min-content",max:"max-content",fit:"fit-content"}),maxWidth:({theme:t,breakpoints:e})=>({...t("spacing"),none:"none",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem",full:"100%",min:"min-content",max:"max-content",fit:"fit-content",prose:"65ch",...e(t("screens"))}),minHeight:({theme:t})=>({...t("spacing"),full:"100%",screen:"100vh",svh:"100svh",lvh:"100lvh",dvh:"100dvh",min:"min-content",max:"max-content",fit:"fit-content"}),minWidth:({theme:t})=>({...t("spacing"),full:"100%",min:"min-content",max:"max-content",fit:"fit-content"}),objectPosition:{bottom:"bottom",center:"center",left:"left","left-bottom":"left bottom","left-top":"left top",right:"right","right-bottom":"right bottom","right-top":"right top",top:"top"},opacity:{0:"0",5:"0.05",10:"0.1",15:"0.15",20:"0.2",25:"0.25",30:"0.3",35:"0.35",40:"0.4",45:"0.45",50:"0.5",55:"0.55",60:"0.6",65:"0.65",70:"0.7",75:"0.75",80:"0.8",85:"0.85",90:"0.9",95:"0.95",100:"1"},order:{first:"-9999",last:"9999",none:"0",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12"},outlineColor:({theme:t})=>t("colors"),outlineOffset:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},outlineWidth:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},padding:({theme:t})=>t("spacing"),placeholderColor:({theme:t})=>t("colors"),placeholderOpacity:({theme:t})=>t("opacity"),ringColor:({theme:t})=>({DEFAULT:t("colors.blue.500","#3b82f6"),...t("colors")}),ringOffsetColor:({theme:t})=>t("colors"),ringOffsetWidth:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},ringOpacity:({theme:t})=>({DEFAULT:"0.5",...t("opacity")}),ringWidth:{DEFAULT:"3px",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},rotate:{0:"0deg",1:"1deg",2:"2deg",3:"3deg",6:"6deg",12:"12deg",45:"45deg",90:"90deg",180:"180deg"},saturate:{0:"0",50:".5",100:"1",150:"1.5",200:"2"},scale:{0:"0",50:".5",75:".75",90:".9",95:".95",100:"1",105:"1.05",110:"1.1",125:"1.25",150:"1.5"},screens:{sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},scrollMargin:({theme:t})=>({...t("spacing")}),scrollPadding:({theme:t})=>t("spacing"),sepia:{0:"0",DEFAULT:"100%"},skew:{0:"0deg",1:"1deg",2:"2deg",3:"3deg",6:"6deg",12:"12deg"},space:({theme:t})=>({...t("spacing")}),spacing:{px:"1px",0:"0px",.5:"0.125rem",1:"0.25rem",1.5:"0.375rem",2:"0.5rem",2.5:"0.625rem",3:"0.75rem",3.5:"0.875rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem",11:"2.75rem",12:"3rem",14:"3.5rem",16:"4rem",20:"5rem",24:"6rem",28:"7rem",32:"8rem",36:"9rem",40:"10rem",44:"11rem",48:"12rem",52:"13rem",56:"14rem",60:"15rem",64:"16rem",72:"18rem",80:"20rem",96:"24rem"},stroke:({theme:t})=>({none:"none",...t("colors")}),strokeWidth:{0:"0",1:"1",2:"2"},supports:{},data:{},textColor:({theme:t})=>t("colors"),textDecorationColor:({theme:t})=>t("colors"),textDecorationThickness:{auto:"auto","from-font":"from-font",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},textIndent:({theme:t})=>({...t("spacing")}),textOpacity:({theme:t})=>t("opacity"),textUnderlineOffset:{auto:"auto",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},transformOrigin:{center:"center",top:"top","top-right":"top right",right:"right","bottom-right":"bottom right",bottom:"bottom","bottom-left":"bottom left",left:"left","top-left":"top left"},transitionDelay:{0:"0s",75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms"},transitionDuration:{DEFAULT:"150ms",0:"0s",75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms"},transitionProperty:{none:"none",all:"all",DEFAULT:"color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter",colors:"color, background-color, border-color, text-decoration-color, fill, stroke",opacity:"opacity",shadow:"box-shadow",transform:"transform"},transitionTimingFunction:{DEFAULT:"cubic-bezier(0.4, 0, 0.2, 1)",linear:"linear",in:"cubic-bezier(0.4, 0, 1, 1)",out:"cubic-bezier(0, 0, 0.2, 1)","in-out":"cubic-bezier(0.4, 0, 0.2, 1)"},translate:({theme:t})=>({...t("spacing"),"1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%",full:"100%"}),size:({theme:t})=>({auto:"auto",...t("spacing"),"1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.666667%","2/6":"33.333333%","3/6":"50%","4/6":"66.666667%","5/6":"83.333333%","1/12":"8.333333%","2/12":"16.666667%","3/12":"25%","4/12":"33.333333%","5/12":"41.666667%","6/12":"50%","7/12":"58.333333%","8/12":"66.666667%","9/12":"75%","10/12":"83.333333%","11/12":"91.666667%",full:"100%",min:"min-content",max:"max-content",fit:"fit-content"}),width:({theme:t})=>({auto:"auto",...t("spacing"),"1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.666667%","2/6":"33.333333%","3/6":"50%","4/6":"66.666667%","5/6":"83.333333%","1/12":"8.333333%","2/12":"16.666667%","3/12":"25%","4/12":"33.333333%","5/12":"41.666667%","6/12":"50%","7/12":"58.333333%","8/12":"66.666667%","9/12":"75%","10/12":"83.333333%","11/12":"91.666667%",full:"100%",screen:"100vw",svw:"100svw",lvw:"100lvw",dvw:"100dvw",min:"min-content",max:"max-content",fit:"fit-content"}),willChange:{auto:"auto",scroll:"scroll-position",contents:"contents",transform:"transform"},zIndex:{auto:"auto",0:"0",10:"10",20:"20",30:"30",40:"40",50:"50"}},plugins:[]};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return s}});const e=n(Bs),r=kt;function n(l){return l&&l.__esModule?l:{default:l}}function s(l){var i;const h=((i=l==null?void 0:l.presets)!==null&&i!==void 0?i:[e.default]).slice().reverse().flatMap(u=>s(u instanceof Function?u():u)),a={respectDefaultRingColorOpacity:{theme:{ringColor:({theme:u})=>({DEFAULT:"#3b82f67f",...u("colors")})}},disableColorOpacityUtilitiesByDefault:{corePlugins:{backgroundOpacity:!1,borderOpacity:!1,divideOpacity:!1,placeholderOpacity:!1,ringOpacity:!1,textOpacity:!1}}},o=Object.keys(a).filter(u=>(0,r.flagEnabled)(l,u)).map(u=>a[u]);return[l,...o,...h]}})(Bn),function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return s}});const e=n(yn),r=n(Bn);function n(l){return l&&l.__esModule?l:{default:l}}function s(...l){let[,...i]=(0,r.default)(l[0]);return(0,e.default)([...l,...i])}}(_n);let Yt=_n;var Is=(Yt.__esModule?Yt:{default:Yt}).default;const As=St(Is);let Xt=jt;var Qt=(Xt.__esModule?Xt:{default:Xt}).default;const In=St(Qt),Fs=mn({__proto__:null,default:In},[Qt]);var An={},Fn={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r}});function e(n,s){return{handler:n,config:s}}e.withOptions=function(n,s=()=>({})){const l=function(i){return{__options:i,handler:n(i),config:s(i)}};return l.__isOptionsFunction=!0,l.__pluginFunction=n,l.__configFunction=s,l};const r=e})(Fn),function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return n}});const e=r(Fn);function r(s){return s&&s.__esModule?s:{default:s}}const n=e.default}(An);let Vt=An;var Rs=(Vt.__esModule?Vt:{default:Vt}).default,Et={exports:{}};Et.exports,function(t,e){var r=200,n="__lodash_hash_undefined__",s=800,l=16,i=9007199254740991,h="[object Arguments]",a="[object Array]",o="[object AsyncFunction]",u="[object Boolean]",f="[object Date]",m="[object Error]",v="[object Function]",b="[object GeneratorFunction]",d="[object Map]",y="[object Number]",T="[object Null]",E="[object Object]",w="[object Proxy]",F="[object RegExp]",$="[object Set]",N="[object String]",K="[object Undefined]",q="[object WeakMap]",x="[object ArrayBuffer]",z="[object DataView]",G="[object Float32Array]",D="[object Float64Array]",X="[object Int8Array]",Q="[object Int16Array]",I="[object Int32Array]",k="[object Uint8Array]",O="[object Uint8ClampedArray]",R="[object Uint16Array]",ie="[object Uint32Array]",C=/[\\^$.*+?()[\]{}|]/g,Z=/^\[object .+?Constructor\]$/,A=/^(?:0|[1-9]\d*)$/,B={};B[G]=B[D]=B[X]=B[Q]=B[I]=B[k]=B[O]=B[R]=B[ie]=!0,B[h]=B[a]=B[x]=B[u]=B[z]=B[f]=B[m]=B[v]=B[d]=B[y]=B[E]=B[F]=B[$]=B[N]=B[q]=!1;var S=typeof st=="object"&&st&&st.Object===Object&&st,W=typeof self=="object"&&self&&self.Object===Object&&self,V=S||W||Function("return this")(),L=e&&!e.nodeType&&e,ne=L&&!0&&t&&!t.nodeType&&t,ue=ne&&ne.exports===L,ce=ue&&S.process,se=function(){try{var p=ne&&ne.require&&ne.require("util").types;return p||ce&&ce.binding&&ce.binding("util")}catch{}}(),he=se&&se.isTypedArray;function Te(p,_,M){switch(M.length){case 0:return p.call(_);case 1:return p.call(_,M[0]);case 2:return p.call(_,M[0],M[1]);case 3:return p.call(_,M[0],M[1],M[2])}return p.apply(_,M)}function le(p,_){for(var M=-1,re=Array(p);++M<p;)re[M]=_(M);return re}function ye(p){return function(_){return p(_)}}function Fe(p,_){return p==null?void 0:p[_]}function Be(p,_){return function(M){return p(_(M))}}var Me=Array.prototype,ke=Function.prototype,$e=Object.prototype,Ee=V["__core-js_shared__"],Le=ke.toString,De=$e.hasOwnProperty,Ke=function(){var p=/[^.]+$/.exec(Ee&&Ee.keys&&Ee.keys.IE_PROTO||"");return p?"Symbol(src)_1."+p:""}(),Xe=$e.toString,ot=Le.call(Object),_t=RegExp("^"+Le.call(De).replace(C,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),qe=ue?V.Buffer:void 0,ht=V.Symbol,Ot=V.Uint8Array,zt=qe?qe.allocUnsafe:void 0,ss=Be(Object.getPrototypeOf,Object),as=Object.create,R4=$e.propertyIsEnumerable,H4=Me.splice,lt=ht?ht.toStringTag:void 0,Bt=function(){try{var p=on(Object,"defineProperty");return p({},"",{}),p}catch{}}(),N4=qe?qe.isBuffer:void 0,os=Math.max,W4=Date.now,ls=on(V,"Map"),yt=on(Object,"create"),j4=function(){function p(){}return function(_){if(!ut(_))return{};if(as)return as(_);p.prototype=_;var M=new p;return p.prototype=void 0,M}}();function ct(p){var _=-1,M=p==null?0:p.length;for(this.clear();++_<M;){var re=p[_];this.set(re[0],re[1])}}function G4(){this.__data__=yt?yt(null):{},this.size=0}function q4(p){var _=this.has(p)&&delete this.__data__[p];return this.size-=_?1:0,_}function Z4(p){var _=this.__data__;if(yt){var M=_[p];return M===n?void 0:M}return De.call(_,p)?_[p]:void 0}function U4(p){var _=this.__data__;return yt?_[p]!==void 0:De.call(_,p)}function Y4(p,_){var M=this.__data__;return this.size+=this.has(p)?0:1,M[p]=yt&&_===void 0?n:_,this}ct.prototype.clear=G4,ct.prototype.delete=q4,ct.prototype.get=Z4,ct.prototype.has=U4,ct.prototype.set=Y4;function Je(p){var _=-1,M=p==null?0:p.length;for(this.clear();++_<M;){var re=p[_];this.set(re[0],re[1])}}function X4(){this.__data__=[],this.size=0}function Q4(p){var _=this.__data__,M=It(_,p);if(M<0)return!1;var re=_.length-1;return M==re?_.pop():H4.call(_,M,1),--this.size,!0}function V4(p){var _=this.__data__,M=It(_,p);return M<0?void 0:_[M][1]}function K4(p){return It(this.__data__,p)>-1}function J4(p,_){var M=this.__data__,re=It(M,p);return re<0?(++this.size,M.push([p,_])):M[re][1]=_,this}Je.prototype.clear=X4,Je.prototype.delete=Q4,Je.prototype.get=V4,Je.prototype.has=K4,Je.prototype.set=J4;function ft(p){var _=-1,M=p==null?0:p.length;for(this.clear();++_<M;){var re=p[_];this.set(re[0],re[1])}}function e8(){this.size=0,this.__data__={hash:new ct,map:new(ls||Je),string:new ct}}function t8(p){var _=Ft(this,p).delete(p);return this.size-=_?1:0,_}function r8(p){return Ft(this,p).get(p)}function n8(p){return Ft(this,p).has(p)}function i8(p,_){var M=Ft(this,p),re=M.size;return M.set(p,_),this.size+=M.size==re?0:1,this}ft.prototype.clear=e8,ft.prototype.delete=t8,ft.prototype.get=r8,ft.prototype.has=n8,ft.prototype.set=i8;function pt(p){var _=this.__data__=new Je(p);this.size=_.size}function s8(){this.__data__=new Je,this.size=0}function a8(p){var _=this.__data__,M=_.delete(p);return this.size=_.size,M}function o8(p){return this.__data__.get(p)}function l8(p){return this.__data__.has(p)}function c8(p,_){var M=this.__data__;if(M instanceof Je){var re=M.__data__;if(!ls||re.length<r-1)return re.push([p,_]),this.size=++M.size,this;M=this.__data__=new ft(re)}return M.set(p,_),this.size=M.size,this}pt.prototype.clear=s8,pt.prototype.delete=a8,pt.prototype.get=o8,pt.prototype.has=l8,pt.prototype.set=c8;function u8(p,_){var M=un(p),re=!M&&cn(p),pe=!M&&!re&&fs(p),ve=!M&&!re&&!pe&&ms(p),xe=M||re||pe||ve,fe=xe?le(p.length,String):[],we=fe.length;for(var We in p)(_||De.call(p,We))&&!(xe&&(We=="length"||pe&&(We=="offset"||We=="parent")||ve&&(We=="buffer"||We=="byteLength"||We=="byteOffset")||ds(We,we)))&&fe.push(We);return fe}function sn(p,_,M){(M!==void 0&&!Rt(p[_],M)||M===void 0&&!(_ in p))&&an(p,_,M)}function d8(p,_,M){var re=p[_];(!(De.call(p,_)&&Rt(re,M))||M===void 0&&!(_ in p))&&an(p,_,M)}function It(p,_){for(var M=p.length;M--;)if(Rt(p[M][0],_))return M;return-1}function an(p,_,M){_=="__proto__"&&Bt?Bt(p,_,{configurable:!0,enumerable:!0,value:M,writable:!0}):p[_]=M}var h8=T8();function At(p){return p==null?p===void 0?K:T:lt&< in Object(p)?k8(p):P8(p)}function cs(p){return Ct(p)&&At(p)==h}function f8(p){if(!ut(p)||L8(p))return!1;var _=hn(p)?_t:Z;return _.test(I8(p))}function p8(p){return Ct(p)&&ps(p.length)&&!!B[At(p)]}function m8(p){if(!ut(p))return D8(p);var _=hs(p),M=[];for(var re in p)re=="constructor"&&(_||!De.call(p,re))||M.push(re);return M}function us(p,_,M,re,pe){p!==_&&h8(_,function(ve,xe){if(pe||(pe=new pt),ut(ve))g8(p,_,xe,M,us,re,pe);else{var fe=re?re(ln(p,xe),ve,xe+"",p,_,pe):void 0;fe===void 0&&(fe=ve),sn(p,xe,fe)}},gs)}function g8(p,_,M,re,pe,ve,xe){var fe=ln(p,M),we=ln(_,M),We=xe.get(we);if(We){sn(p,M,We);return}var Re=ve?ve(fe,we,M+"",p,_,xe):void 0,bt=Re===void 0;if(bt){var fn=un(we),pn=!fn&&fs(we),_s=!fn&&!pn&&ms(we);Re=we,fn||pn||_s?un(fe)?Re=fe:A8(fe)?Re=x8(fe):pn?(bt=!1,Re=y8(we,!0)):_s?(bt=!1,Re=b8(we,!0)):Re=[]:F8(we)||cn(we)?(Re=fe,cn(fe)?Re=R8(fe):(!ut(fe)||hn(fe))&&(Re=M8(we))):bt=!1}bt&&(xe.set(we,Re),pe(Re,we,re,ve,xe),xe.delete(we)),sn(p,M,Re)}function v8(p,_){return z8(O8(p,_,vs),p+"")}var _8=Bt?function(p,_){return Bt(p,"toString",{configurable:!0,enumerable:!1,value:N8(_),writable:!0})}:vs;function y8(p,_){if(_)return p.slice();var M=p.length,re=zt?zt(M):new p.constructor(M);return p.copy(re),re}function C8(p){var _=new p.constructor(p.byteLength);return new Ot(_).set(new Ot(p)),_}function b8(p,_){var M=_?C8(p.buffer):p.buffer;return new p.constructor(M,p.byteOffset,p.length)}function x8(p,_){var M=-1,re=p.length;for(_||(_=Array(re));++M<re;)_[M]=p[M];return _}function w8(p,_,M,re){var pe=!M;M||(M={});for(var ve=-1,xe=_.length;++ve<xe;){var fe=_[ve],we=re?re(M[fe],p[fe],fe,M,p):void 0;we===void 0&&(we=p[fe]),pe?an(M,fe,we):d8(M,fe,we)}return M}function S8(p){return v8(function(_,M){var re=-1,pe=M.length,ve=pe>1?M[pe-1]:void 0,xe=pe>2?M[2]:void 0;for(ve=p.length>3&&typeof ve=="function"?(pe--,ve):void 0,xe&&E8(M[0],M[1],xe)&&(ve=pe<3?void 0:ve,pe=1),_=Object(_);++re<pe;){var fe=M[re];fe&&p(_,fe,re,ve)}return _})}function T8(p){return function(_,M,re){for(var pe=-1,ve=Object(_),xe=re(_),fe=xe.length;fe--;){var we=xe[p?fe:++pe];if(M(ve[we],we,ve)===!1)break}return _}}function Ft(p,_){var M=p.__data__;return $8(_)?M[typeof _=="string"?"string":"hash"]:M.map}function on(p,_){var M=Fe(p,_);return f8(M)?M:void 0}function k8(p){var _=De.call(p,lt),M=p[lt];try{p[lt]=void 0;var re=!0}catch{}var pe=Xe.call(p);return re&&(_?p[lt]=M:delete p[lt]),pe}function M8(p){return typeof p.constructor=="function"&&!hs(p)?j4(ss(p)):{}}function ds(p,_){var M=typeof p;return _=_==null?i:_,!!_&&(M=="number"||M!="symbol"&&A.test(p))&&p>-1&&p%1==0&&p<_}function E8(p,_,M){if(!ut(M))return!1;var re=typeof _;return(re=="number"?dn(M)&&ds(_,M.length):re=="string"&&_ in M)?Rt(M[_],p):!1}function $8(p){var _=typeof p;return _=="string"||_=="number"||_=="symbol"||_=="boolean"?p!=="__proto__":p===null}function L8(p){return!!Ke&&Ke in p}function hs(p){var _=p&&p.constructor,M=typeof _=="function"&&_.prototype||$e;return p===M}function D8(p){var _=[];if(p!=null)for(var M in Object(p))_.push(M);return _}function P8(p){return Xe.call(p)}function O8(p,_,M){return _=os(_===void 0?p.length-1:_,0),function(){for(var re=arguments,pe=-1,ve=os(re.length-_,0),xe=Array(ve);++pe<ve;)xe[pe]=re[_+pe];pe=-1;for(var fe=Array(_+1);++pe<_;)fe[pe]=re[pe];return fe[_]=M(xe),Te(p,this,fe)}}function ln(p,_){if(!(_==="constructor"&&typeof p[_]=="function")&&_!="__proto__")return p[_]}var z8=B8(_8);function B8(p){var _=0,M=0;return function(){var re=W4(),pe=l-(re-M);if(M=re,pe>0){if(++_>=s)return arguments[0]}else _=0;return p.apply(void 0,arguments)}}function I8(p){if(p!=null){try{return Le.call(p)}catch{}try{return p+""}catch{}}return""}function Rt(p,_){return p===_||p!==p&&_!==_}var cn=cs(function(){return arguments}())?cs:function(p){return Ct(p)&&De.call(p,"callee")&&!R4.call(p,"callee")},un=Array.isArray;function dn(p){return p!=null&&ps(p.length)&&!hn(p)}function A8(p){return Ct(p)&&dn(p)}var fs=N4||W8;function hn(p){if(!ut(p))return!1;var _=At(p);return _==v||_==b||_==o||_==w}function ps(p){return typeof p=="number"&&p>-1&&p%1==0&&p<=i}function ut(p){var _=typeof p;return p!=null&&(_=="object"||_=="function")}function Ct(p){return p!=null&&typeof p=="object"}function F8(p){if(!Ct(p)||At(p)!=E)return!1;var _=ss(p);if(_===null)return!0;var M=De.call(_,"constructor")&&_.constructor;return typeof M=="function"&&M instanceof M&&Le.call(M)==ot}var ms=he?ye(he):p8;function R8(p){return w8(p,gs(p))}function gs(p){return dn(p)?u8(p,!0):m8(p)}var H8=S8(function(p,_,M){us(p,_,M)});function N8(p){return function(){return p}}function vs(p){return p}function W8(){return!1}t.exports=H8}(Et,Et.exports);var Hs=Et.exports;function Ns(){if(!arguments.length)return[];var t=arguments[0];return Ws(t)?t:[t]}var Ws=Array.isArray,js=Ns;const g=Qt,oe=t=>t.toFixed(7).replace(/(\.[0-9]+?)0+$/,"$1").replace(/\.0$/,""),ze=t=>`${oe(t/16)}rem`,c=(t,e)=>`${oe(t/e)}em`,Ue=t=>{t=t.replace("#",""),t=t.length===3?t.replace(/./g,"$&$&"):t;const e=parseInt(t.substring(0,2),16),r=parseInt(t.substring(2,4),16),n=parseInt(t.substring(4,6),16);return`${e} ${r} ${n}`};let Kt={sm:{css:[{fontSize:ze(14),lineHeight:oe(24/14),p:{marginTop:c(16,14),marginBottom:c(16,14)},'[class~="lead"]':{fontSize:c(18,14),lineHeight:oe(28/18),marginTop:c(16,18),marginBottom:c(16,18)},blockquote:{marginTop:c(24,18),marginBottom:c(24,18),paddingInlineStart:c(20,18)},h1:{fontSize:c(30,14),marginTop:"0",marginBottom:c(24,30),lineHeight:oe(36/30)},h2:{fontSize:c(20,14),marginTop:c(32,20),marginBottom:c(16,20),lineHeight:oe(28/20)},h3:{fontSize:c(18,14),marginTop:c(28,18),marginBottom:c(8,18),lineHeight:oe(28/18)},h4:{marginTop:c(20,14),marginBottom:c(8,14),lineHeight:oe(20/14)},img:{marginTop:c(24,14),marginBottom:c(24,14)},picture:{marginTop:c(24,14),marginBottom:c(24,14)},"picture > img":{marginTop:"0",marginBottom:"0"},video:{marginTop:c(24,14),marginBottom:c(24,14)},kbd:{fontSize:c(12,14),borderRadius:ze(5),paddingTop:c(2,14),paddingInlineEnd:c(5,14),paddingBottom:c(2,14),paddingInlineStart:c(5,14)},code:{fontSize:c(12,14)},"h2 code":{fontSize:c(18,20)},"h3 code":{fontSize:c(16,18)},pre:{fontSize:c(12,14),lineHeight:oe(20/12),marginTop:c(20,12),marginBottom:c(20,12),borderRadius:ze(4),paddingTop:c(8,12),paddingInlineEnd:c(12,12),paddingBottom:c(8,12),paddingInlineStart:c(12,12)},ol:{marginTop:c(16,14),marginBottom:c(16,14),paddingInlineStart:c(22,14)},ul:{marginTop:c(16,14),marginBottom:c(16,14),paddingInlineStart:c(22,14)},li:{marginTop:c(4,14),marginBottom:c(4,14)},"ol > li":{paddingInlineStart:c(6,14)},"ul > li":{paddingInlineStart:c(6,14)},"> ul > li p":{marginTop:c(8,14),marginBottom:c(8,14)},"> ul > li > p:first-child":{marginTop:c(16,14)},"> ul > li > p:last-child":{marginBottom:c(16,14)},"> ol > li > p:first-child":{marginTop:c(16,14)},"> ol > li > p:last-child":{marginBottom:c(16,14)},"ul ul, ul ol, ol ul, ol ol":{marginTop:c(8,14),marginBottom:c(8,14)},dl:{marginTop:c(16,14),marginBottom:c(16,14)},dt:{marginTop:c(16,14)},dd:{marginTop:c(4,14),paddingInlineStart:c(22,14)},hr:{marginTop:c(40,14),marginBottom:c(40,14)},"hr + *":{marginTop:"0"},"h2 + *":{marginTop:"0"},"h3 + *":{marginTop:"0"},"h4 + *":{marginTop:"0"},table:{fontSize:c(12,14),lineHeight:oe(18/12)},"thead th":{paddingInlineEnd:c(12,12),paddingBottom:c(8,12),paddingInlineStart:c(12,12)},"thead th:first-child":{paddingInlineStart:"0"},"thead th:last-child":{paddingInlineEnd:"0"},"tbody td, tfoot td":{paddingTop:c(8,12),paddingInlineEnd:c(12,12),paddingBottom:c(8,12),paddingInlineStart:c(12,12)},"tbody td:first-child, tfoot td:first-child":{paddingInlineStart:"0"},"tbody td:last-child, tfoot td:last-child":{paddingInlineEnd:"0"},figure:{marginTop:c(24,14),marginBottom:c(24,14)},"figure > *":{marginTop:"0",marginBottom:"0"},figcaption:{fontSize:c(12,14),lineHeight:oe(16/12),marginTop:c(8,12)}},{"> :first-child":{marginTop:"0"},"> :last-child":{marginBottom:"0"}}]},base:{css:[{fontSize:ze(16),lineHeight:oe(28/16),p:{marginTop:c(20,16),marginBottom:c(20,16)},'[class~="lead"]':{fontSize:c(20,16),lineHeight:oe(32/20),marginTop:c(24,20),marginBottom:c(24,20)},blockquote:{marginTop:c(32,20),marginBottom:c(32,20),paddingInlineStart:c(20,20)},h1:{fontSize:c(36,16),marginTop:"0",marginBottom:c(32,36),lineHeight:oe(40/36)},h2:{fontSize:c(24,16),marginTop:c(48,24),marginBottom:c(24,24),lineHeight:oe(32/24)},h3:{fontSize:c(20,16),marginTop:c(32,20),marginBottom:c(12,20),lineHeight:oe(32/20)},h4:{marginTop:c(24,16),marginBottom:c(8,16),lineHeight:oe(24/16)},img:{marginTop:c(32,16),marginBottom:c(32,16)},picture:{marginTop:c(32,16),marginBottom:c(32,16)},"picture > img":{marginTop:"0",marginBottom:"0"},video:{marginTop:c(32,16),marginBottom:c(32,16)},kbd:{fontSize:c(14,16),borderRadius:ze(5),paddingTop:c(3,16),paddingInlineEnd:c(6,16),paddingBottom:c(3,16),paddingInlineStart:c(6,16)},code:{fontSize:c(14,16)},"h2 code":{fontSize:c(21,24)},"h3 code":{fontSize:c(18,20)},pre:{fontSize:c(14,16),lineHeight:oe(24/14),marginTop:c(24,14),marginBottom:c(24,14),borderRadius:ze(6),paddingTop:c(12,14),paddingInlineEnd:c(16,14),paddingBottom:c(12,14),paddingInlineStart:c(16,14)},ol:{marginTop:c(20,16),marginBottom:c(20,16),paddingInlineStart:c(26,16)},ul:{marginTop:c(20,16),marginBottom:c(20,16),paddingInlineStart:c(26,16)},li:{marginTop:c(8,16),marginBottom:c(8,16)},"ol > li":{paddingInlineStart:c(6,16)},"ul > li":{paddingInlineStart:c(6,16)},"> ul > li p":{marginTop:c(12,16),marginBottom:c(12,16)},"> ul > li > p:first-child":{marginTop:c(20,16)},"> ul > li > p:last-child":{marginBottom:c(20,16)},"> ol > li > p:first-child":{marginTop:c(20,16)},"> ol > li > p:last-child":{marginBottom:c(20,16)},"ul ul, ul ol, ol ul, ol ol":{marginTop:c(12,16),marginBottom:c(12,16)},dl:{marginTop:c(20,16),marginBottom:c(20,16)},dt:{marginTop:c(20,16)},dd:{marginTop:c(8,16),paddingInlineStart:c(26,16)},hr:{marginTop:c(48,16),marginBottom:c(48,16)},"hr + *":{marginTop:"0"},"h2 + *":{marginTop:"0"},"h3 + *":{marginTop:"0"},"h4 + *":{marginTop:"0"},table:{fontSize:c(14,16),lineHeight:oe(24/14)},"thead th":{paddingInlineEnd:c(8,14),paddingBottom:c(8,14),paddingInlineStart:c(8,14)},"thead th:first-child":{paddingInlineStart:"0"},"thead th:last-child":{paddingInlineEnd:"0"},"tbody td, tfoot td":{paddingTop:c(8,14),paddingInlineEnd:c(8,14),paddingBottom:c(8,14),paddingInlineStart:c(8,14)},"tbody td:first-child, tfoot td:first-child":{paddingInlineStart:"0"},"tbody td:last-child, tfoot td:last-child":{paddingInlineEnd:"0"},figure:{marginTop:c(32,16),marginBottom:c(32,16)},"figure > *":{marginTop:"0",marginBottom:"0"},figcaption:{fontSize:c(14,16),lineHeight:oe(20/14),marginTop:c(12,14)}},{"> :first-child":{marginTop:"0"},"> :last-child":{marginBottom:"0"}}]},lg:{css:[{fontSize:ze(18),lineHeight:oe(32/18),p:{marginTop:c(24,18),marginBottom:c(24,18)},'[class~="lead"]':{fontSize:c(22,18),lineHeight:oe(32/22),marginTop:c(24,22),marginBottom:c(24,22)},blockquote:{marginTop:c(40,24),marginBottom:c(40,24),paddingInlineStart:c(24,24)},h1:{fontSize:c(48,18),marginTop:"0",marginBottom:c(40,48),lineHeight:oe(48/48)},h2:{fontSize:c(30,18),marginTop:c(56,30),marginBottom:c(32,30),lineHeight:oe(40/30)},h3:{fontSize:c(24,18),marginTop:c(40,24),marginBottom:c(16,24),lineHeight:oe(36/24)},h4:{marginTop:c(32,18),marginBottom:c(8,18),lineHeight:oe(28/18)},img:{marginTop:c(32,18),marginBottom:c(32,18)},picture:{marginTop:c(32,18),marginBottom:c(32,18)},"picture > img":{marginTop:"0",marginBottom:"0"},video:{marginTop:c(32,18),marginBottom:c(32,18)},kbd:{fontSize:c(16,18),borderRadius:ze(5),paddingTop:c(4,18),paddingInlineEnd:c(8,18),paddingBottom:c(4,18),paddingInlineStart:c(8,18)},code:{fontSize:c(16,18)},"h2 code":{fontSize:c(26,30)},"h3 code":{fontSize:c(21,24)},pre:{fontSize:c(16,18),lineHeight:oe(28/16),marginTop:c(32,16),marginBottom:c(32,16),borderRadius:ze(6),paddingTop:c(16,16),paddingInlineEnd:c(24,16),paddingBottom:c(16,16),paddingInlineStart:c(24,16)},ol:{marginTop:c(24,18),marginBottom:c(24,18),paddingInlineStart:c(28,18)},ul:{marginTop:c(24,18),marginBottom:c(24,18),paddingInlineStart:c(28,18)},li:{marginTop:c(12,18),marginBottom:c(12,18)},"ol > li":{paddingInlineStart:c(8,18)},"ul > li":{paddingInlineStart:c(8,18)},"> ul > li p":{marginTop:c(16,18),marginBottom:c(16,18)},"> ul > li > p:first-child":{marginTop:c(24,18)},"> ul > li > p:last-child":{marginBottom:c(24,18)},"> ol > li > p:first-child":{marginTop:c(24,18)},"> ol > li > p:last-child":{marginBottom:c(24,18)},"ul ul, ul ol, ol ul, ol ol":{marginTop:c(16,18),marginBottom:c(16,18)},dl:{marginTop:c(24,18),marginBottom:c(24,18)},dt:{marginTop:c(24,18)},dd:{marginTop:c(12,18),paddingInlineStart:c(28,18)},hr:{marginTop:c(56,18),marginBottom:c(56,18)},"hr + *":{marginTop:"0"},"h2 + *":{marginTop:"0"},"h3 + *":{marginTop:"0"},"h4 + *":{marginTop:"0"},table:{fontSize:c(16,18),lineHeight:oe(24/16)},"thead th":{paddingInlineEnd:c(12,16),paddingBottom:c(12,16),paddingInlineStart:c(12,16)},"thead th:first-child":{paddingInlineStart:"0"},"thead th:last-child":{paddingInlineEnd:"0"},"tbody td, tfoot td":{paddingTop:c(12,16),paddingInlineEnd:c(12,16),paddingBottom:c(12,16),paddingInlineStart:c(12,16)},"tbody td:first-child, tfoot td:first-child":{paddingInlineStart:"0"},"tbody td:last-child, tfoot td:last-child":{paddingInlineEnd:"0"},figure:{marginTop:c(32,18),marginBottom:c(32,18)},"figure > *":{marginTop:"0",marginBottom:"0"},figcaption:{fontSize:c(16,18),lineHeight:oe(24/16),marginTop:c(16,16)}},{"> :first-child":{marginTop:"0"},"> :last-child":{marginBottom:"0"}}]},xl:{css:[{fontSize:ze(20),lineHeight:oe(36/20),p:{marginTop:c(24,20),marginBottom:c(24,20)},'[class~="lead"]':{fontSize:c(24,20),lineHeight:oe(36/24),marginTop:c(24,24),marginBottom:c(24,24)},blockquote:{marginTop:c(48,30),marginBottom:c(48,30),paddingInlineStart:c(32,30)},h1:{fontSize:c(56,20),marginTop:"0",marginBottom:c(48,56),lineHeight:oe(56/56)},h2:{fontSize:c(36,20),marginTop:c(56,36),marginBottom:c(32,36),lineHeight:oe(40/36)},h3:{fontSize:c(30,20),marginTop:c(48,30),marginBottom:c(20,30),lineHeight:oe(40/30)},h4:{marginTop:c(36,20),marginBottom:c(12,20),lineHeight:oe(32/20)},img:{marginTop:c(40,20),marginBottom:c(40,20)},picture:{marginTop:c(40,20),marginBottom:c(40,20)},"picture > img":{marginTop:"0",marginBottom:"0"},video:{marginTop:c(40,20),marginBottom:c(40,20)},kbd:{fontSize:c(18,20),borderRadius:ze(5),paddingTop:c(5,20),paddingInlineEnd:c(8,20),paddingBottom:c(5,20),paddingInlineStart:c(8,20)},code:{fontSize:c(18,20)},"h2 code":{fontSize:c(31,36)},"h3 code":{fontSize:c(27,30)},pre:{fontSize:c(18,20),lineHeight:oe(32/18),marginTop:c(36,18),marginBottom:c(36,18),borderRadius:ze(8),paddingTop:c(20,18),paddingInlineEnd:c(24,18),paddingBottom:c(20,18),paddingInlineStart:c(24,18)},ol:{marginTop:c(24,20),marginBottom:c(24,20),paddingInlineStart:c(32,20)},ul:{marginTop:c(24,20),marginBottom:c(24,20),paddingInlineStart:c(32,20)},li:{marginTop:c(12,20),marginBottom:c(12,20)},"ol > li":{paddingInlineStart:c(8,20)},"ul > li":{paddingInlineStart:c(8,20)},"> ul > li p":{marginTop:c(16,20),marginBottom:c(16,20)},"> ul > li > p:first-child":{marginTop:c(24,20)},"> ul > li > p:last-child":{marginBottom:c(24,20)},"> ol > li > p:first-child":{marginTop:c(24,20)},"> ol > li > p:last-child":{marginBottom:c(24,20)},"ul ul, ul ol, ol ul, ol ol":{marginTop:c(16,20),marginBottom:c(16,20)},dl:{marginTop:c(24,20),marginBottom:c(24,20)},dt:{marginTop:c(24,20)},dd:{marginTop:c(12,20),paddingInlineStart:c(32,20)},hr:{marginTop:c(56,20),marginBottom:c(56,20)},"hr + *":{marginTop:"0"},"h2 + *":{marginTop:"0"},"h3 + *":{marginTop:"0"},"h4 + *":{marginTop:"0"},table:{fontSize:c(18,20),lineHeight:oe(28/18)},"thead th":{paddingInlineEnd:c(12,18),paddingBottom:c(16,18),paddingInlineStart:c(12,18)},"thead th:first-child":{paddingInlineStart:"0"},"thead th:last-child":{paddingInlineEnd:"0"},"tbody td, tfoot td":{paddingTop:c(16,18),paddingInlineEnd:c(12,18),paddingBottom:c(16,18),paddingInlineStart:c(12,18)},"tbody td:first-child, tfoot td:first-child":{paddingInlineStart:"0"},"tbody td:last-child, tfoot td:last-child":{paddingInlineEnd:"0"},figure:{marginTop:c(40,20),marginBottom:c(40,20)},"figure > *":{marginTop:"0",marginBottom:"0"},figcaption:{fontSize:c(18,20),lineHeight:oe(28/18),marginTop:c(18,18)}},{"> :first-child":{marginTop:"0"},"> :last-child":{marginBottom:"0"}}]},"2xl":{css:[{fontSize:ze(24),lineHeight:oe(40/24),p:{marginTop:c(32,24),marginBottom:c(32,24)},'[class~="lead"]':{fontSize:c(30,24),lineHeight:oe(44/30),marginTop:c(32,30),marginBottom:c(32,30)},blockquote:{marginTop:c(64,36),marginBottom:c(64,36),paddingInlineStart:c(40,36)},h1:{fontSize:c(64,24),marginTop:"0",marginBottom:c(56,64),lineHeight:oe(64/64)},h2:{fontSize:c(48,24),marginTop:c(72,48),marginBottom:c(40,48),lineHeight:oe(52/48)},h3:{fontSize:c(36,24),marginTop:c(56,36),marginBottom:c(24,36),lineHeight:oe(44/36)},h4:{marginTop:c(40,24),marginBottom:c(16,24),lineHeight:oe(36/24)},img:{marginTop:c(48,24),marginBottom:c(48,24)},picture:{marginTop:c(48,24),marginBottom:c(48,24)},"picture > img":{marginTop:"0",marginBottom:"0"},video:{marginTop:c(48,24),marginBottom:c(48,24)},kbd:{fontSize:c(20,24),borderRadius:ze(6),paddingTop:c(6,24),paddingInlineEnd:c(8,24),paddingBottom:c(6,24),paddingInlineStart:c(8,24)},code:{fontSize:c(20,24)},"h2 code":{fontSize:c(42,48)},"h3 code":{fontSize:c(32,36)},pre:{fontSize:c(20,24),lineHeight:oe(36/20),marginTop:c(40,20),marginBottom:c(40,20),borderRadius:ze(8),paddingTop:c(24,20),paddingInlineEnd:c(32,20),paddingBottom:c(24,20),paddingInlineStart:c(32,20)},ol:{marginTop:c(32,24),marginBottom:c(32,24),paddingInlineStart:c(38,24)},ul:{marginTop:c(32,24),marginBottom:c(32,24),paddingInlineStart:c(38,24)},li:{marginTop:c(12,24),marginBottom:c(12,24)},"ol > li":{paddingInlineStart:c(10,24)},"ul > li":{paddingInlineStart:c(10,24)},"> ul > li p":{marginTop:c(20,24),marginBottom:c(20,24)},"> ul > li > p:first-child":{marginTop:c(32,24)},"> ul > li > p:last-child":{marginBottom:c(32,24)},"> ol > li > p:first-child":{marginTop:c(32,24)},"> ol > li > p:last-child":{marginBottom:c(32,24)},"ul ul, ul ol, ol ul, ol ol":{marginTop:c(16,24),marginBottom:c(16,24)},dl:{marginTop:c(32,24),marginBottom:c(32,24)},dt:{marginTop:c(32,24)},dd:{marginTop:c(12,24),paddingInlineStart:c(38,24)},hr:{marginTop:c(72,24),marginBottom:c(72,24)},"hr + *":{marginTop:"0"},"h2 + *":{marginTop:"0"},"h3 + *":{marginTop:"0"},"h4 + *":{marginTop:"0"},table:{fontSize:c(20,24),lineHeight:oe(28/20)},"thead th":{paddingInlineEnd:c(12,20),paddingBottom:c(16,20),paddingInlineStart:c(12,20)},"thead th:first-child":{paddingInlineStart:"0"},"thead th:last-child":{paddingInlineEnd:"0"},"tbody td, tfoot td":{paddingTop:c(16,20),paddingInlineEnd:c(12,20),paddingBottom:c(16,20),paddingInlineStart:c(12,20)},"tbody td:first-child, tfoot td:first-child":{paddingInlineStart:"0"},"tbody td:last-child, tfoot td:last-child":{paddingInlineEnd:"0"},figure:{marginTop:c(48,24),marginBottom:c(48,24)},"figure > *":{marginTop:"0",marginBottom:"0"},figcaption:{fontSize:c(20,24),lineHeight:oe(32/20),marginTop:c(20,20)}},{"> :first-child":{marginTop:"0"},"> :last-child":{marginBottom:"0"}}]},slate:{css:{"--tw-prose-body":g.slate[700],"--tw-prose-headings":g.slate[900],"--tw-prose-lead":g.slate[600],"--tw-prose-links":g.slate[900],"--tw-prose-bold":g.slate[900],"--tw-prose-counters":g.slate[500],"--tw-prose-bullets":g.slate[300],"--tw-prose-hr":g.slate[200],"--tw-prose-quotes":g.slate[900],"--tw-prose-quote-borders":g.slate[200],"--tw-prose-captions":g.slate[500],"--tw-prose-kbd":g.slate[900],"--tw-prose-kbd-shadows":Ue(g.slate[900]),"--tw-prose-code":g.slate[900],"--tw-prose-pre-code":g.slate[200],"--tw-prose-pre-bg":g.slate[800],"--tw-prose-th-borders":g.slate[300],"--tw-prose-td-borders":g.slate[200],"--tw-prose-invert-body":g.slate[300],"--tw-prose-invert-headings":g.white,"--tw-prose-invert-lead":g.slate[400],"--tw-prose-invert-links":g.white,"--tw-prose-invert-bold":g.white,"--tw-prose-invert-counters":g.slate[400],"--tw-prose-invert-bullets":g.slate[600],"--tw-prose-invert-hr":g.slate[700],"--tw-prose-invert-quotes":g.slate[100],"--tw-prose-invert-quote-borders":g.slate[700],"--tw-prose-invert-captions":g.slate[400],"--tw-prose-invert-kbd":g.white,"--tw-prose-invert-kbd-shadows":Ue(g.white),"--tw-prose-invert-code":g.white,"--tw-prose-invert-pre-code":g.slate[300],"--tw-prose-invert-pre-bg":"rgb(0 0 0 / 50%)","--tw-prose-invert-th-borders":g.slate[600],"--tw-prose-invert-td-borders":g.slate[700]}},gray:{css:{"--tw-prose-body":g.gray[700],"--tw-prose-headings":g.gray[900],"--tw-prose-lead":g.gray[600],"--tw-prose-links":g.gray[900],"--tw-prose-bold":g.gray[900],"--tw-prose-counters":g.gray[500],"--tw-prose-bullets":g.gray[300],"--tw-prose-hr":g.gray[200],"--tw-prose-quotes":g.gray[900],"--tw-prose-quote-borders":g.gray[200],"--tw-prose-captions":g.gray[500],"--tw-prose-kbd":g.gray[900],"--tw-prose-kbd-shadows":Ue(g.gray[900]),"--tw-prose-code":g.gray[900],"--tw-prose-pre-code":g.gray[200],"--tw-prose-pre-bg":g.gray[800],"--tw-prose-th-borders":g.gray[300],"--tw-prose-td-borders":g.gray[200],"--tw-prose-invert-body":g.gray[300],"--tw-prose-invert-headings":g.white,"--tw-prose-invert-lead":g.gray[400],"--tw-prose-invert-links":g.white,"--tw-prose-invert-bold":g.white,"--tw-prose-invert-counters":g.gray[400],"--tw-prose-invert-bullets":g.gray[600],"--tw-prose-invert-hr":g.gray[700],"--tw-prose-invert-quotes":g.gray[100],"--tw-prose-invert-quote-borders":g.gray[700],"--tw-prose-invert-captions":g.gray[400],"--tw-prose-invert-kbd":g.white,"--tw-prose-invert-kbd-shadows":Ue(g.white),"--tw-prose-invert-code":g.white,"--tw-prose-invert-pre-code":g.gray[300],"--tw-prose-invert-pre-bg":"rgb(0 0 0 / 50%)","--tw-prose-invert-th-borders":g.gray[600],"--tw-prose-invert-td-borders":g.gray[700]}},zinc:{css:{"--tw-prose-body":g.zinc[700],"--tw-prose-headings":g.zinc[900],"--tw-prose-lead":g.zinc[600],"--tw-prose-links":g.zinc[900],"--tw-prose-bold":g.zinc[900],"--tw-prose-counters":g.zinc[500],"--tw-prose-bullets":g.zinc[300],"--tw-prose-hr":g.zinc[200],"--tw-prose-quotes":g.zinc[900],"--tw-prose-quote-borders":g.zinc[200],"--tw-prose-captions":g.zinc[500],"--tw-prose-kbd":g.zinc[900],"--tw-prose-kbd-shadows":Ue(g.zinc[900]),"--tw-prose-code":g.zinc[900],"--tw-prose-pre-code":g.zinc[200],"--tw-prose-pre-bg":g.zinc[800],"--tw-prose-th-borders":g.zinc[300],"--tw-prose-td-borders":g.zinc[200],"--tw-prose-invert-body":g.zinc[300],"--tw-prose-invert-headings":g.white,"--tw-prose-invert-lead":g.zinc[400],"--tw-prose-invert-links":g.white,"--tw-prose-invert-bold":g.white,"--tw-prose-invert-counters":g.zinc[400],"--tw-prose-invert-bullets":g.zinc[600],"--tw-prose-invert-hr":g.zinc[700],"--tw-prose-invert-quotes":g.zinc[100],"--tw-prose-invert-quote-borders":g.zinc[700],"--tw-prose-invert-captions":g.zinc[400],"--tw-prose-invert-kbd":g.white,"--tw-prose-invert-kbd-shadows":Ue(g.white),"--tw-prose-invert-code":g.white,"--tw-prose-invert-pre-code":g.zinc[300],"--tw-prose-invert-pre-bg":"rgb(0 0 0 / 50%)","--tw-prose-invert-th-borders":g.zinc[600],"--tw-prose-invert-td-borders":g.zinc[700]}},neutral:{css:{"--tw-prose-body":g.neutral[700],"--tw-prose-headings":g.neutral[900],"--tw-prose-lead":g.neutral[600],"--tw-prose-links":g.neutral[900],"--tw-prose-bold":g.neutral[900],"--tw-prose-counters":g.neutral[500],"--tw-prose-bullets":g.neutral[300],"--tw-prose-hr":g.neutral[200],"--tw-prose-quotes":g.neutral[900],"--tw-prose-quote-borders":g.neutral[200],"--tw-prose-captions":g.neutral[500],"--tw-prose-kbd":g.neutral[900],"--tw-prose-kbd-shadows":Ue(g.neutral[900]),"--tw-prose-code":g.neutral[900],"--tw-prose-pre-code":g.neutral[200],"--tw-prose-pre-bg":g.neutral[800],"--tw-prose-th-borders":g.neutral[300],"--tw-prose-td-borders":g.neutral[200],"--tw-prose-invert-body":g.neutral[300],"--tw-prose-invert-headings":g.white,"--tw-prose-invert-lead":g.neutral[400],"--tw-prose-invert-links":g.white,"--tw-prose-invert-bold":g.white,"--tw-prose-invert-counters":g.neutral[400],"--tw-prose-invert-bullets":g.neutral[600],"--tw-prose-invert-hr":g.neutral[700],"--tw-prose-invert-quotes":g.neutral[100],"--tw-prose-invert-quote-borders":g.neutral[700],"--tw-prose-invert-captions":g.neutral[400],"--tw-prose-invert-kbd":g.white,"--tw-prose-invert-kbd-shadows":Ue(g.white),"--tw-prose-invert-code":g.white,"--tw-prose-invert-pre-code":g.neutral[300],"--tw-prose-invert-pre-bg":"rgb(0 0 0 / 50%)","--tw-prose-invert-th-borders":g.neutral[600],"--tw-prose-invert-td-borders":g.neutral[700]}},stone:{css:{"--tw-prose-body":g.stone[700],"--tw-prose-headings":g.stone[900],"--tw-prose-lead":g.stone[600],"--tw-prose-links":g.stone[900],"--tw-prose-bold":g.stone[900],"--tw-prose-counters":g.stone[500],"--tw-prose-bullets":g.stone[300],"--tw-prose-hr":g.stone[200],"--tw-prose-quotes":g.stone[900],"--tw-prose-quote-borders":g.stone[200],"--tw-prose-captions":g.stone[500],"--tw-prose-kbd":g.stone[900],"--tw-prose-kbd-shadows":Ue(g.stone[900]),"--tw-prose-code":g.stone[900],"--tw-prose-pre-code":g.stone[200],"--tw-prose-pre-bg":g.stone[800],"--tw-prose-th-borders":g.stone[300],"--tw-prose-td-borders":g.stone[200],"--tw-prose-invert-body":g.stone[300],"--tw-prose-invert-headings":g.white,"--tw-prose-invert-lead":g.stone[400],"--tw-prose-invert-links":g.white,"--tw-prose-invert-bold":g.white,"--tw-prose-invert-counters":g.stone[400],"--tw-prose-invert-bullets":g.stone[600],"--tw-prose-invert-hr":g.stone[700],"--tw-prose-invert-quotes":g.stone[100],"--tw-prose-invert-quote-borders":g.stone[700],"--tw-prose-invert-captions":g.stone[400],"--tw-prose-invert-kbd":g.white,"--tw-prose-invert-kbd-shadows":Ue(g.white),"--tw-prose-invert-code":g.white,"--tw-prose-invert-pre-code":g.stone[300],"--tw-prose-invert-pre-bg":"rgb(0 0 0 / 50%)","--tw-prose-invert-th-borders":g.stone[600],"--tw-prose-invert-td-borders":g.stone[700]}},red:{css:{"--tw-prose-links":g.red[600],"--tw-prose-invert-links":g.red[500]}},orange:{css:{"--tw-prose-links":g.orange[600],"--tw-prose-invert-links":g.orange[500]}},amber:{css:{"--tw-prose-links":g.amber[600],"--tw-prose-invert-links":g.amber[500]}},yellow:{css:{"--tw-prose-links":g.yellow[600],"--tw-prose-invert-links":g.yellow[500]}},lime:{css:{"--tw-prose-links":g.lime[600],"--tw-prose-invert-links":g.lime[500]}},green:{css:{"--tw-prose-links":g.green[600],"--tw-prose-invert-links":g.green[500]}},emerald:{css:{"--tw-prose-links":g.emerald[600],"--tw-prose-invert-links":g.emerald[500]}},teal:{css:{"--tw-prose-links":g.teal[600],"--tw-prose-invert-links":g.teal[500]}},cyan:{css:{"--tw-prose-links":g.cyan[600],"--tw-prose-invert-links":g.cyan[500]}},sky:{css:{"--tw-prose-links":g.sky[600],"--tw-prose-invert-links":g.sky[500]}},blue:{css:{"--tw-prose-links":g.blue[600],"--tw-prose-invert-links":g.blue[500]}},indigo:{css:{"--tw-prose-links":g.indigo[600],"--tw-prose-invert-links":g.indigo[500]}},violet:{css:{"--tw-prose-links":g.violet[600],"--tw-prose-invert-links":g.violet[500]}},purple:{css:{"--tw-prose-links":g.purple[600],"--tw-prose-invert-links":g.purple[500]}},fuchsia:{css:{"--tw-prose-links":g.fuchsia[600],"--tw-prose-invert-links":g.fuchsia[500]}},pink:{css:{"--tw-prose-links":g.pink[600],"--tw-prose-invert-links":g.pink[500]}},rose:{css:{"--tw-prose-links":g.rose[600],"--tw-prose-invert-links":g.rose[500]}},invert:{css:{"--tw-prose-body":"var(--tw-prose-invert-body)","--tw-prose-headings":"var(--tw-prose-invert-headings)","--tw-prose-lead":"var(--tw-prose-invert-lead)","--tw-prose-links":"var(--tw-prose-invert-links)","--tw-prose-bold":"var(--tw-prose-invert-bold)","--tw-prose-counters":"var(--tw-prose-invert-counters)","--tw-prose-bullets":"var(--tw-prose-invert-bullets)","--tw-prose-hr":"var(--tw-prose-invert-hr)","--tw-prose-quotes":"var(--tw-prose-invert-quotes)","--tw-prose-quote-borders":"var(--tw-prose-invert-quote-borders)","--tw-prose-captions":"var(--tw-prose-invert-captions)","--tw-prose-kbd":"var(--tw-prose-invert-kbd)","--tw-prose-kbd-shadows":"var(--tw-prose-invert-kbd-shadows)","--tw-prose-code":"var(--tw-prose-invert-code)","--tw-prose-pre-code":"var(--tw-prose-invert-pre-code)","--tw-prose-pre-bg":"var(--tw-prose-invert-pre-bg)","--tw-prose-th-borders":"var(--tw-prose-invert-th-borders)","--tw-prose-td-borders":"var(--tw-prose-invert-td-borders)"}}};var Gs={DEFAULT:{css:[{color:"var(--tw-prose-body)",maxWidth:"65ch",p:{},'[class~="lead"]':{color:"var(--tw-prose-lead)"},a:{color:"var(--tw-prose-links)",textDecoration:"underline",fontWeight:"500"},strong:{color:"var(--tw-prose-bold)",fontWeight:"600"},"a strong":{color:"inherit"},"blockquote strong":{color:"inherit"},"thead th strong":{color:"inherit"},ol:{listStyleType:"decimal"},'ol[type="A"]':{listStyleType:"upper-alpha"},'ol[type="a"]':{listStyleType:"lower-alpha"},'ol[type="A" s]':{listStyleType:"upper-alpha"},'ol[type="a" s]':{listStyleType:"lower-alpha"},'ol[type="I"]':{listStyleType:"upper-roman"},'ol[type="i"]':{listStyleType:"lower-roman"},'ol[type="I" s]':{listStyleType:"upper-roman"},'ol[type="i" s]':{listStyleType:"lower-roman"},'ol[type="1"]':{listStyleType:"decimal"},ul:{listStyleType:"disc"},"ol > li::marker":{fontWeight:"400",color:"var(--tw-prose-counters)"},"ul > li::marker":{color:"var(--tw-prose-bullets)"},dt:{color:"var(--tw-prose-headings)",fontWeight:"600"},hr:{borderColor:"var(--tw-prose-hr)",borderTopWidth:1},blockquote:{fontWeight:"500",fontStyle:"italic",color:"var(--tw-prose-quotes)",borderInlineStartWidth:"0.25rem",borderInlineStartColor:"var(--tw-prose-quote-borders)",quotes:'"\\201C""\\201D""\\2018""\\2019"'},"blockquote p:first-of-type::before":{content:"open-quote"},"blockquote p:last-of-type::after":{content:"close-quote"},h1:{color:"var(--tw-prose-headings)",fontWeight:"800"},"h1 strong":{fontWeight:"900",color:"inherit"},h2:{color:"var(--tw-prose-headings)",fontWeight:"700"},"h2 strong":{fontWeight:"800",color:"inherit"},h3:{color:"var(--tw-prose-headings)",fontWeight:"600"},"h3 strong":{fontWeight:"700",color:"inherit"},h4:{color:"var(--tw-prose-headings)",fontWeight:"600"},"h4 strong":{fontWeight:"700",color:"inherit"},img:{},picture:{display:"block"},video:{},kbd:{fontWeight:"500",fontFamily:"inherit",color:"var(--tw-prose-kbd)",boxShadow:"0 0 0 1px rgb(var(--tw-prose-kbd-shadows) / 10%), 0 3px 0 rgb(var(--tw-prose-kbd-shadows) / 10%)"},code:{color:"var(--tw-prose-code)",fontWeight:"600"},"code::before":{content:'"`"'},"code::after":{content:'"`"'},"a code":{color:"inherit"},"h1 code":{color:"inherit"},"h2 code":{color:"inherit"},"h3 code":{color:"inherit"},"h4 code":{color:"inherit"},"blockquote code":{color:"inherit"},"thead th code":{color:"inherit"},pre:{color:"var(--tw-prose-pre-code)",backgroundColor:"var(--tw-prose-pre-bg)",overflowX:"auto",fontWeight:"400"},"pre code":{backgroundColor:"transparent",borderWidth:"0",borderRadius:"0",padding:"0",fontWeight:"inherit",color:"inherit",fontSize:"inherit",fontFamily:"inherit",lineHeight:"inherit"},"pre code::before":{content:"none"},"pre code::after":{content:"none"},table:{width:"100%",tableLayout:"auto",marginTop:c(32,16),marginBottom:c(32,16)},thead:{borderBottomWidth:"1px",borderBottomColor:"var(--tw-prose-th-borders)"},"thead th":{color:"var(--tw-prose-headings)",fontWeight:"600",verticalAlign:"bottom"},"tbody tr":{borderBottomWidth:"1px",borderBottomColor:"var(--tw-prose-td-borders)"},"tbody tr:last-child":{borderBottomWidth:"0"},"tbody td":{verticalAlign:"baseline"},tfoot:{borderTopWidth:"1px",borderTopColor:"var(--tw-prose-th-borders)"},"tfoot td":{verticalAlign:"top"},"th, td":{textAlign:"start"},"figure > *":{},figcaption:{color:"var(--tw-prose-captions)"}},Kt.gray.css,...Kt.base.css]},...Kt},qs="[object Object]";function Zs(t){var e=!1;if(t!=null&&typeof t.toString!="function")try{e=!!(t+"")}catch{}return e}function Us(t,e){return function(r){return t(e(r))}}var Ys=Function.prototype,Rn=Object.prototype,Hn=Ys.toString,Xs=Rn.hasOwnProperty,Qs=Hn.call(Object),Vs=Rn.toString,Ks=Us(Object.getPrototypeOf,Object);function Js(t){return!!t&&typeof t=="object"}function ea(t){if(!Js(t)||Vs.call(t)!=qs||Zs(t))return!1;var e=Ks(t);if(e===null)return!0;var r=Xs.call(e,"constructor")&&e.constructor;return typeof r=="function"&&r instanceof r&&Hn.call(r)==Qs}var ta=ea,Jt={exports:{}},er={exports:{}},tr={exports:{}},rr={exports:{}},nr={exports:{}},ir={exports:{}},Ae={},sr={exports:{}};(function(t,e){e.__esModule=!0,e.default=s;function r(l){for(var i=l.toLowerCase(),h="",a=!1,o=0;o<6&&i[o]!==void 0;o++){var u=i.charCodeAt(o),f=u>=97&&u<=102||u>=48&&u<=57;if(a=u===32,!f)break;h+=i[o]}if(h.length!==0){var m=parseInt(h,16),v=m>=55296&&m<=57343;return v||m===0||m>1114111?["�",h.length+(a?1:0)]:[String.fromCodePoint(m),h.length+(a?1:0)]}}var n=/\\/;function s(l){var i=n.test(l);if(!i)return l;for(var h="",a=0;a<l.length;a++){if(l[a]==="\\"){var o=r(l.slice(a+1,a+7));if(o!==void 0){h+=o[0],a+=o[1];continue}if(l[a+1]==="\\"){h+="\\",a++;continue}l.length===a+1&&(h+=l[a]);continue}h+=l[a]}return h}t.exports=e.default})(sr,sr.exports);var Nn=sr.exports,ar={exports:{}};(function(t,e){e.__esModule=!0,e.default=r;function r(n){for(var s=arguments.length,l=new Array(s>1?s-1:0),i=1;i<s;i++)l[i-1]=arguments[i];for(;l.length>0;){var h=l.shift();if(!n[h])return;n=n[h]}return n}t.exports=e.default})(ar,ar.exports);var ra=ar.exports,or={exports:{}};(function(t,e){e.__esModule=!0,e.default=r;function r(n){for(var s=arguments.length,l=new Array(s>1?s-1:0),i=1;i<s;i++)l[i-1]=arguments[i];for(;l.length>0;){var h=l.shift();n[h]||(n[h]={}),n=n[h]}}t.exports=e.default})(or,or.exports);var na=or.exports,lr={exports:{}};(function(t,e){e.__esModule=!0,e.default=r;function r(n){for(var s="",l=n.indexOf("/*"),i=0;l>=0;){s=s+n.slice(i,l);var h=n.indexOf("*/",l+2);if(h<0)return s;i=h+2,l=n.indexOf("/*",i)}return s=s+n.slice(i),s}t.exports=e.default})(lr,lr.exports);var ia=lr.exports;Ae.__esModule=!0,Ae.stripComments=Ae.ensureObject=Ae.getProp=Ae.unesc=void 0;var sa=$t(Nn);Ae.unesc=sa.default;var aa=$t(ra);Ae.getProp=aa.default;var oa=$t(na);Ae.ensureObject=oa.default;var la=$t(ia);Ae.stripComments=la.default;function $t(t){return t&&t.__esModule?t:{default:t}}(function(t,e){e.__esModule=!0,e.default=void 0;var r=Ae;function n(h,a){for(var o=0;o<a.length;o++){var u=a[o];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(h,u.key,u)}}function s(h,a,o){return a&&n(h.prototype,a),o&&n(h,o),h}var l=function h(a,o){if(typeof a!="object"||a===null)return a;var u=new a.constructor;for(var f in a)if(a.hasOwnProperty(f)){var m=a[f],v=typeof m;f==="parent"&&v==="object"?o&&(u[f]=o):m instanceof Array?u[f]=m.map(function(b){return h(b,u)}):u[f]=h(m,u)}return u},i=function(){function h(o){o===void 0&&(o={}),Object.assign(this,o),this.spaces=this.spaces||{},this.spaces.before=this.spaces.before||"",this.spaces.after=this.spaces.after||""}var a=h.prototype;return a.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},a.replaceWith=function(){if(this.parent){for(var u in arguments)this.parent.insertBefore(this,arguments[u]);this.remove()}return this},a.next=function(){return this.parent.at(this.parent.index(this)+1)},a.prev=function(){return this.parent.at(this.parent.index(this)-1)},a.clone=function(u){u===void 0&&(u={});var f=l(this);for(var m in u)f[m]=u[m];return f},a.appendToPropertyAndEscape=function(u,f,m){this.raws||(this.raws={});var v=this[u],b=this.raws[u];this[u]=v+f,b||m!==f?this.raws[u]=(b||v)+m:delete this.raws[u]},a.setPropertyAndEscape=function(u,f,m){this.raws||(this.raws={}),this[u]=f,this.raws[u]=m},a.setPropertyWithoutEscape=function(u,f){this[u]=f,this.raws&&delete this.raws[u]},a.isAtPosition=function(u,f){if(this.source&&this.source.start&&this.source.end)return!(this.source.start.line>u||this.source.end.line<u||this.source.start.line===u&&this.source.start.column>f||this.source.end.line===u&&this.source.end.column<f)},a.stringifyProperty=function(u){return this.raws&&this.raws[u]||this[u]},a.valueToString=function(){return String(this.stringifyProperty("value"))},a.toString=function(){return[this.rawSpaceBefore,this.valueToString(),this.rawSpaceAfter].join("")},s(h,[{key:"rawSpaceBefore",get:function(){var u=this.raws&&this.raws.spaces&&this.raws.spaces.before;return u===void 0&&(u=this.spaces&&this.spaces.before),u||""},set:function(u){(0,r.ensureObject)(this,"raws","spaces"),this.raws.spaces.before=u}},{key:"rawSpaceAfter",get:function(){var u=this.raws&&this.raws.spaces&&this.raws.spaces.after;return u===void 0&&(u=this.spaces.after),u||""},set:function(u){(0,r.ensureObject)(this,"raws","spaces"),this.raws.spaces.after=u}}]),h}();e.default=i,t.exports=e.default})(ir,ir.exports);var tt=ir.exports,de={};de.__esModule=!0,de.UNIVERSAL=de.ATTRIBUTE=de.CLASS=de.COMBINATOR=de.COMMENT=de.ID=de.NESTING=de.PSEUDO=de.ROOT=de.SELECTOR=de.STRING=de.TAG=void 0;var ca="tag";de.TAG=ca;var ua="string";de.STRING=ua;var da="selector";de.SELECTOR=da;var ha="root";de.ROOT=ha;var fa="pseudo";de.PSEUDO=fa;var pa="nesting";de.NESTING=pa;var ma="id";de.ID=ma;var ga="comment";de.COMMENT=ga;var va="combinator";de.COMBINATOR=va;var _a="class";de.CLASS=_a;var ya="attribute";de.ATTRIBUTE=ya;var Ca="universal";de.UNIVERSAL=Ca,function(t,e){e.__esModule=!0,e.default=void 0;var r=i(tt),n=l(de);function s(){if(typeof WeakMap!="function")return null;var d=new WeakMap;return s=function(){return d},d}function l(d){if(d&&d.__esModule)return d;if(d===null||typeof d!="object"&&typeof d!="function")return{default:d};var y=s();if(y&&y.has(d))return y.get(d);var T={},E=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var w in d)if(Object.prototype.hasOwnProperty.call(d,w)){var F=E?Object.getOwnPropertyDescriptor(d,w):null;F&&(F.get||F.set)?Object.defineProperty(T,w,F):T[w]=d[w]}return T.default=d,y&&y.set(d,T),T}function i(d){return d&&d.__esModule?d:{default:d}}function h(d,y){var T;if(typeof Symbol=="undefined"||d[Symbol.iterator]==null){if(Array.isArray(d)||(T=a(d))||y&&d&&typeof d.length=="number"){T&&(d=T);var E=0;return function(){return E>=d.length?{done:!0}:{done:!1,value:d[E++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
2
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}return T=d[Symbol.iterator](),T.next.bind(T)}function a(d,y){if(d){if(typeof d=="string")return o(d,y);var T=Object.prototype.toString.call(d).slice(8,-1);if(T==="Object"&&d.constructor&&(T=d.constructor.name),T==="Map"||T==="Set")return Array.from(d);if(T==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(T))return o(d,y)}}function o(d,y){(y==null||y>d.length)&&(y=d.length);for(var T=0,E=new Array(y);T<y;T++)E[T]=d[T];return E}function u(d,y){for(var T=0;T<y.length;T++){var E=y[T];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(d,E.key,E)}}function f(d,y,T){return y&&u(d.prototype,y),T&&u(d,T),d}function m(d,y){d.prototype=Object.create(y.prototype),d.prototype.constructor=d,v(d,y)}function v(d,y){return v=Object.setPrototypeOf||function(E,w){return E.__proto__=w,E},v(d,y)}var b=function(d){m(y,d);function y(E){var w;return w=d.call(this,E)||this,w.nodes||(w.nodes=[]),w}var T=y.prototype;return T.append=function(w){return w.parent=this,this.nodes.push(w),this},T.prepend=function(w){return w.parent=this,this.nodes.unshift(w),this},T.at=function(w){return this.nodes[w]},T.index=function(w){return typeof w=="number"?w:this.nodes.indexOf(w)},T.removeChild=function(w){w=this.index(w),this.at(w).parent=void 0,this.nodes.splice(w,1);var F;for(var $ in this.indexes)F=this.indexes[$],F>=w&&(this.indexes[$]=F-1);return this},T.removeAll=function(){for(var w=h(this.nodes),F;!(F=w()).done;){var $=F.value;$.parent=void 0}return this.nodes=[],this},T.empty=function(){return this.removeAll()},T.insertAfter=function(w,F){F.parent=this;var $=this.index(w);this.nodes.splice($+1,0,F),F.parent=this;var N;for(var K in this.indexes)N=this.indexes[K],$<=N&&(this.indexes[K]=N+1);return this},T.insertBefore=function(w,F){F.parent=this;var $=this.index(w);this.nodes.splice($,0,F),F.parent=this;var N;for(var K in this.indexes)N=this.indexes[K],N<=$&&(this.indexes[K]=N+1);return this},T._findChildAtPosition=function(w,F){var $=void 0;return this.each(function(N){if(N.atPosition){var K=N.atPosition(w,F);if(K)return $=K,!1}else if(N.isAtPosition(w,F))return $=N,!1}),$},T.atPosition=function(w,F){if(this.isAtPosition(w,F))return this._findChildAtPosition(w,F)||this},T._inferEndPosition=function(){this.last&&this.last.source&&this.last.source.end&&(this.source=this.source||{},this.source.end=this.source.end||{},Object.assign(this.source.end,this.last.source.end))},T.each=function(w){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach++;var F=this.lastEach;if(this.indexes[F]=0,!!this.length){for(var $,N;this.indexes[F]<this.length&&($=this.indexes[F],N=w(this.at($),$),N!==!1);)this.indexes[F]+=1;if(delete this.indexes[F],N===!1)return!1}},T.walk=function(w){return this.each(function(F,$){var N=w(F,$);if(N!==!1&&F.length&&(N=F.walk(w)),N===!1)return!1})},T.walkAttributes=function(w){var F=this;return this.walk(function($){if($.type===n.ATTRIBUTE)return w.call(F,$)})},T.walkClasses=function(w){var F=this;return this.walk(function($){if($.type===n.CLASS)return w.call(F,$)})},T.walkCombinators=function(w){var F=this;return this.walk(function($){if($.type===n.COMBINATOR)return w.call(F,$)})},T.walkComments=function(w){var F=this;return this.walk(function($){if($.type===n.COMMENT)return w.call(F,$)})},T.walkIds=function(w){var F=this;return this.walk(function($){if($.type===n.ID)return w.call(F,$)})},T.walkNesting=function(w){var F=this;return this.walk(function($){if($.type===n.NESTING)return w.call(F,$)})},T.walkPseudos=function(w){var F=this;return this.walk(function($){if($.type===n.PSEUDO)return w.call(F,$)})},T.walkTags=function(w){var F=this;return this.walk(function($){if($.type===n.TAG)return w.call(F,$)})},T.walkUniversals=function(w){var F=this;return this.walk(function($){if($.type===n.UNIVERSAL)return w.call(F,$)})},T.split=function(w){var F=this,$=[];return this.reduce(function(N,K,q){var x=w.call(F,K);return $.push(K),x?(N.push($),$=[]):q===F.length-1&&N.push($),N},[])},T.map=function(w){return this.nodes.map(w)},T.reduce=function(w,F){return this.nodes.reduce(w,F)},T.every=function(w){return this.nodes.every(w)},T.some=function(w){return this.nodes.some(w)},T.filter=function(w){return this.nodes.filter(w)},T.sort=function(w){return this.nodes.sort(w)},T.toString=function(){return this.map(String).join("")},f(y,[{key:"first",get:function(){return this.at(0)}},{key:"last",get:function(){return this.at(this.length-1)}},{key:"length",get:function(){return this.nodes.length}}]),y}(r.default);e.default=b,t.exports=e.default}(nr,nr.exports);var cr=nr.exports;(function(t,e){e.__esModule=!0,e.default=void 0;var r=s(cr),n=de;function s(u){return u&&u.__esModule?u:{default:u}}function l(u,f){for(var m=0;m<f.length;m++){var v=f[m];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(u,v.key,v)}}function i(u,f,m){return f&&l(u.prototype,f),m&&l(u,m),u}function h(u,f){u.prototype=Object.create(f.prototype),u.prototype.constructor=u,a(u,f)}function a(u,f){return a=Object.setPrototypeOf||function(v,b){return v.__proto__=b,v},a(u,f)}var o=function(u){h(f,u);function f(v){var b;return b=u.call(this,v)||this,b.type=n.ROOT,b}var m=f.prototype;return m.toString=function(){var b=this.reduce(function(d,y){return d.push(String(y)),d},[]).join(",");return this.trailingComma?b+",":b},m.error=function(b,d){return this._error?this._error(b,d):new Error(b)},i(f,[{key:"errorGenerator",set:function(b){this._error=b}}]),f}(r.default);e.default=o,t.exports=e.default})(rr,rr.exports);var Wn=rr.exports,ur={exports:{}};(function(t,e){e.__esModule=!0,e.default=void 0;var r=s(cr),n=de;function s(a){return a&&a.__esModule?a:{default:a}}function l(a,o){a.prototype=Object.create(o.prototype),a.prototype.constructor=a,i(a,o)}function i(a,o){return i=Object.setPrototypeOf||function(f,m){return f.__proto__=m,f},i(a,o)}var h=function(a){l(o,a);function o(u){var f;return f=a.call(this,u)||this,f.type=n.SELECTOR,f}return o}(r.default);e.default=h,t.exports=e.default})(ur,ur.exports);var jn=ur.exports,dr={exports:{}};/*! https://mths.be/cssesc v3.0.0 by @mathias */var ba={},xa=ba.hasOwnProperty,wa=function(e,r){if(!e)return r;var n={};for(var s in r)n[s]=xa.call(e,s)?e[s]:r[s];return n},Sa=/[ -,\.\/:-@\[-\^`\{-~]/,Ta=/[ -,\.\/:-@\[\]\^`\{-~]/,ka=/(^|\\+)?(\\[A-F0-9]{1,6})\x20(?![a-fA-F0-9\x20])/g,hr=function t(e,r){r=wa(r,t.options),r.quotes!="single"&&r.quotes!="double"&&(r.quotes="single");for(var n=r.quotes=="double"?'"':"'",s=r.isIdentifier,l=e.charAt(0),i="",h=0,a=e.length;h<a;){var o=e.charAt(h++),u=o.charCodeAt(),f=void 0;if(u<32||u>126){if(u>=55296&&u<=56319&&h<a){var m=e.charCodeAt(h++);(m&64512)==56320?u=((u&1023)<<10)+(m&1023)+65536:h--}f="\\"+u.toString(16).toUpperCase()+" "}else r.escapeEverything?Sa.test(o)?f="\\"+o:f="\\"+u.toString(16).toUpperCase()+" ":/[\t\n\f\r\x0B]/.test(o)?f="\\"+u.toString(16).toUpperCase()+" ":o=="\\"||!s&&(o=='"'&&n==o||o=="'"&&n==o)||s&&Ta.test(o)?f="\\"+o:f=o;i+=f}return s&&(/^-[-\d]/.test(i)?i="\\-"+i.slice(1):/\d/.test(l)&&(i="\\3"+l+" "+i.slice(1))),i=i.replace(ka,function(v,b,d){return b&&b.length%2?v:(b||"")+d}),!s&&r.wrap?n+i+n:i};hr.options={escapeEverything:!1,isIdentifier:!1,quotes:"single",wrap:!1},hr.version="3.0.0";var fr=hr;(function(t,e){e.__esModule=!0,e.default=void 0;var r=i(fr),n=Ae,s=i(tt),l=de;function i(m){return m&&m.__esModule?m:{default:m}}function h(m,v){for(var b=0;b<v.length;b++){var d=v[b];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(m,d.key,d)}}function a(m,v,b){return v&&h(m.prototype,v),b&&h(m,b),m}function o(m,v){m.prototype=Object.create(v.prototype),m.prototype.constructor=m,u(m,v)}function u(m,v){return u=Object.setPrototypeOf||function(d,y){return d.__proto__=y,d},u(m,v)}var f=function(m){o(v,m);function v(d){var y;return y=m.call(this,d)||this,y.type=l.CLASS,y._constructed=!0,y}var b=v.prototype;return b.valueToString=function(){return"."+m.prototype.valueToString.call(this)},a(v,[{key:"value",get:function(){return this._value},set:function(y){if(this._constructed){var T=(0,r.default)(y,{isIdentifier:!0});T!==y?((0,n.ensureObject)(this,"raws"),this.raws.value=T):this.raws&&delete this.raws.value}this._value=y}}]),v}(s.default);e.default=f,t.exports=e.default})(dr,dr.exports);var Gn=dr.exports,pr={exports:{}};(function(t,e){e.__esModule=!0,e.default=void 0;var r=s(tt),n=de;function s(a){return a&&a.__esModule?a:{default:a}}function l(a,o){a.prototype=Object.create(o.prototype),a.prototype.constructor=a,i(a,o)}function i(a,o){return i=Object.setPrototypeOf||function(f,m){return f.__proto__=m,f},i(a,o)}var h=function(a){l(o,a);function o(u){var f;return f=a.call(this,u)||this,f.type=n.COMMENT,f}return o}(r.default);e.default=h,t.exports=e.default})(pr,pr.exports);var qn=pr.exports,mr={exports:{}};(function(t,e){e.__esModule=!0,e.default=void 0;var r=s(tt),n=de;function s(a){return a&&a.__esModule?a:{default:a}}function l(a,o){a.prototype=Object.create(o.prototype),a.prototype.constructor=a,i(a,o)}function i(a,o){return i=Object.setPrototypeOf||function(f,m){return f.__proto__=m,f},i(a,o)}var h=function(a){l(o,a);function o(f){var m;return m=a.call(this,f)||this,m.type=n.ID,m}var u=o.prototype;return u.valueToString=function(){return"#"+a.prototype.valueToString.call(this)},o}(r.default);e.default=h,t.exports=e.default})(mr,mr.exports);var Zn=mr.exports,gr={exports:{}},vr={exports:{}};(function(t,e){e.__esModule=!0,e.default=void 0;var r=l(fr),n=Ae,s=l(tt);function l(f){return f&&f.__esModule?f:{default:f}}function i(f,m){for(var v=0;v<m.length;v++){var b=m[v];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(f,b.key,b)}}function h(f,m,v){return m&&i(f.prototype,m),v&&i(f,v),f}function a(f,m){f.prototype=Object.create(m.prototype),f.prototype.constructor=f,o(f,m)}function o(f,m){return o=Object.setPrototypeOf||function(b,d){return b.__proto__=d,b},o(f,m)}var u=function(f){a(m,f);function m(){return f.apply(this,arguments)||this}var v=m.prototype;return v.qualifiedName=function(d){return this.namespace?this.namespaceString+"|"+d:d},v.valueToString=function(){return this.qualifiedName(f.prototype.valueToString.call(this))},h(m,[{key:"namespace",get:function(){return this._namespace},set:function(d){if(d===!0||d==="*"||d==="&"){this._namespace=d,this.raws&&delete this.raws.namespace;return}var y=(0,r.default)(d,{isIdentifier:!0});this._namespace=d,y!==d?((0,n.ensureObject)(this,"raws"),this.raws.namespace=y):this.raws&&delete this.raws.namespace}},{key:"ns",get:function(){return this._namespace},set:function(d){this.namespace=d}},{key:"namespaceString",get:function(){if(this.namespace){var d=this.stringifyProperty("namespace");return d===!0?"":d}else return""}}]),m}(s.default);e.default=u,t.exports=e.default})(vr,vr.exports);var _r=vr.exports;(function(t,e){e.__esModule=!0,e.default=void 0;var r=s(_r),n=de;function s(a){return a&&a.__esModule?a:{default:a}}function l(a,o){a.prototype=Object.create(o.prototype),a.prototype.constructor=a,i(a,o)}function i(a,o){return i=Object.setPrototypeOf||function(f,m){return f.__proto__=m,f},i(a,o)}var h=function(a){l(o,a);function o(u){var f;return f=a.call(this,u)||this,f.type=n.TAG,f}return o}(r.default);e.default=h,t.exports=e.default})(gr,gr.exports);var Un=gr.exports,yr={exports:{}};(function(t,e){e.__esModule=!0,e.default=void 0;var r=s(tt),n=de;function s(a){return a&&a.__esModule?a:{default:a}}function l(a,o){a.prototype=Object.create(o.prototype),a.prototype.constructor=a,i(a,o)}function i(a,o){return i=Object.setPrototypeOf||function(f,m){return f.__proto__=m,f},i(a,o)}var h=function(a){l(o,a);function o(u){var f;return f=a.call(this,u)||this,f.type=n.STRING,f}return o}(r.default);e.default=h,t.exports=e.default})(yr,yr.exports);var Yn=yr.exports,Cr={exports:{}};(function(t,e){e.__esModule=!0,e.default=void 0;var r=s(cr),n=de;function s(a){return a&&a.__esModule?a:{default:a}}function l(a,o){a.prototype=Object.create(o.prototype),a.prototype.constructor=a,i(a,o)}function i(a,o){return i=Object.setPrototypeOf||function(f,m){return f.__proto__=m,f},i(a,o)}var h=function(a){l(o,a);function o(f){var m;return m=a.call(this,f)||this,m.type=n.PSEUDO,m}var u=o.prototype;return u.toString=function(){var m=this.length?"("+this.map(String).join(",")+")":"";return[this.rawSpaceBefore,this.stringifyProperty("value"),m,this.rawSpaceAfter].join("")},o}(r.default);e.default=h,t.exports=e.default})(Cr,Cr.exports);var Xn=Cr.exports,br={},Ma=Ea;function Ea(t,e){if(xr("noDeprecation"))return t;var r=!1;function n(){if(!r){if(xr("throwDeprecation"))throw new Error(e);xr("traceDeprecation")?console.trace(e):console.warn(e),r=!0}return t.apply(this,arguments)}return n}function xr(t){try{if(!st.localStorage)return!1}catch{return!1}var e=st.localStorage[t];return e==null?!1:String(e).toLowerCase()==="true"}(function(t){t.__esModule=!0,t.unescapeValue=y,t.default=void 0;var e=i(fr),r=i(Nn),n=i(_r),s=de,l;function i($){return $&&$.__esModule?$:{default:$}}function h($,N){for(var K=0;K<N.length;K++){var q=N[K];q.enumerable=q.enumerable||!1,q.configurable=!0,"value"in q&&(q.writable=!0),Object.defineProperty($,q.key,q)}}function a($,N,K){return N&&h($.prototype,N),K&&h($,K),$}function o($,N){$.prototype=Object.create(N.prototype),$.prototype.constructor=$,u($,N)}function u($,N){return u=Object.setPrototypeOf||function(q,x){return q.__proto__=x,q},u($,N)}var f=Ma,m=/^('|")([^]*)\1$/,v=f(function(){},"Assigning an attribute a value containing characters that might need to be escaped is deprecated. Call attribute.setValue() instead."),b=f(function(){},"Assigning attr.quoted is deprecated and has no effect. Assign to attr.quoteMark instead."),d=f(function(){},"Constructing an Attribute selector with a value without specifying quoteMark is deprecated. Note: The value should be unescaped now.");function y($){var N=!1,K=null,q=$,x=q.match(m);return x&&(K=x[1],q=x[2]),q=(0,r.default)(q),q!==$&&(N=!0),{deprecatedUsage:N,unescaped:q,quoteMark:K}}function T($){if($.quoteMark!==void 0||$.value===void 0)return $;d();var N=y($.value),K=N.quoteMark,q=N.unescaped;return $.raws||($.raws={}),$.raws.value===void 0&&($.raws.value=$.value),$.value=q,$.quoteMark=K,$}var E=function($){o(N,$);function N(q){var x;return q===void 0&&(q={}),x=$.call(this,T(q))||this,x.type=s.ATTRIBUTE,x.raws=x.raws||{},Object.defineProperty(x.raws,"unquoted",{get:f(function(){return x.value},"attr.raws.unquoted is deprecated. Call attr.value instead."),set:f(function(){return x.value},"Setting attr.raws.unquoted is deprecated and has no effect. attr.value is unescaped by default now.")}),x._constructed=!0,x}var K=N.prototype;return K.getQuotedValue=function(x){x===void 0&&(x={});var z=this._determineQuoteMark(x),G=w[z],D=(0,e.default)(this._value,G);return D},K._determineQuoteMark=function(x){return x.smart?this.smartQuoteMark(x):this.preferredQuoteMark(x)},K.setValue=function(x,z){z===void 0&&(z={}),this._value=x,this._quoteMark=this._determineQuoteMark(z),this._syncRawValue()},K.smartQuoteMark=function(x){var z=this.value,G=z.replace(/[^']/g,"").length,D=z.replace(/[^"]/g,"").length;if(G+D===0){var X=(0,e.default)(z,{isIdentifier:!0});if(X===z)return N.NO_QUOTE;var Q=this.preferredQuoteMark(x);if(Q===N.NO_QUOTE){var I=this.quoteMark||x.quoteMark||N.DOUBLE_QUOTE,k=w[I],O=(0,e.default)(z,k);if(O.length<X.length)return I}return Q}else return D===G?this.preferredQuoteMark(x):D<G?N.DOUBLE_QUOTE:N.SINGLE_QUOTE},K.preferredQuoteMark=function(x){var z=x.preferCurrentQuoteMark?this.quoteMark:x.quoteMark;return z===void 0&&(z=x.preferCurrentQuoteMark?x.quoteMark:this.quoteMark),z===void 0&&(z=N.DOUBLE_QUOTE),z},K._syncRawValue=function(){var x=(0,e.default)(this._value,w[this.quoteMark]);x===this._value?this.raws&&delete this.raws.value:this.raws.value=x},K._handleEscapes=function(x,z){if(this._constructed){var G=(0,e.default)(z,{isIdentifier:!0});G!==z?this.raws[x]=G:delete this.raws[x]}},K._spacesFor=function(x){var z={before:"",after:""},G=this.spaces[x]||{},D=this.raws.spaces&&this.raws.spaces[x]||{};return Object.assign(z,G,D)},K._stringFor=function(x,z,G){z===void 0&&(z=x),G===void 0&&(G=F);var D=this._spacesFor(z);return G(this.stringifyProperty(x),D)},K.offsetOf=function(x){var z=1,G=this._spacesFor("attribute");if(z+=G.before.length,x==="namespace"||x==="ns")return this.namespace?z:-1;if(x==="attributeNS"||(z+=this.namespaceString.length,this.namespace&&(z+=1),x==="attribute"))return z;z+=this.stringifyProperty("attribute").length,z+=G.after.length;var D=this._spacesFor("operator");z+=D.before.length;var X=this.stringifyProperty("operator");if(x==="operator")return X?z:-1;z+=X.length,z+=D.after.length;var Q=this._spacesFor("value");z+=Q.before.length;var I=this.stringifyProperty("value");if(x==="value")return I?z:-1;z+=I.length,z+=Q.after.length;var k=this._spacesFor("insensitive");return z+=k.before.length,x==="insensitive"&&this.insensitive?z:-1},K.toString=function(){var x=this,z=[this.rawSpaceBefore,"["];return z.push(this._stringFor("qualifiedAttribute","attribute")),this.operator&&(this.value||this.value==="")&&(z.push(this._stringFor("operator")),z.push(this._stringFor("value")),z.push(this._stringFor("insensitiveFlag","insensitive",function(G,D){return G.length>0&&!x.quoted&&D.before.length===0&&!(x.spaces.value&&x.spaces.value.after)&&(D.before=" "),F(G,D)}))),z.push("]"),z.push(this.rawSpaceAfter),z.join("")},a(N,[{key:"quoted",get:function(){var x=this.quoteMark;return x==="'"||x==='"'},set:function(x){b()}},{key:"quoteMark",get:function(){return this._quoteMark},set:function(x){if(!this._constructed){this._quoteMark=x;return}this._quoteMark!==x&&(this._quoteMark=x,this._syncRawValue())}},{key:"qualifiedAttribute",get:function(){return this.qualifiedName(this.raws.attribute||this.attribute)}},{key:"insensitiveFlag",get:function(){return this.insensitive?"i":""}},{key:"value",get:function(){return this._value},set:function(x){if(this._constructed){var z=y(x),G=z.deprecatedUsage,D=z.unescaped,X=z.quoteMark;if(G&&v(),D===this._value&&X===this._quoteMark)return;this._value=D,this._quoteMark=X,this._syncRawValue()}else this._value=x}},{key:"attribute",get:function(){return this._attribute},set:function(x){this._handleEscapes("attribute",x),this._attribute=x}}]),N}(n.default);t.default=E,E.NO_QUOTE=null,E.SINGLE_QUOTE="'",E.DOUBLE_QUOTE='"';var w=(l={"'":{quotes:"single",wrap:!0},'"':{quotes:"double",wrap:!0}},l[null]={isIdentifier:!0},l);function F($,N){return""+N.before+$+N.after}})(br);var wr={exports:{}};(function(t,e){e.__esModule=!0,e.default=void 0;var r=s(_r),n=de;function s(a){return a&&a.__esModule?a:{default:a}}function l(a,o){a.prototype=Object.create(o.prototype),a.prototype.constructor=a,i(a,o)}function i(a,o){return i=Object.setPrototypeOf||function(f,m){return f.__proto__=m,f},i(a,o)}var h=function(a){l(o,a);function o(u){var f;return f=a.call(this,u)||this,f.type=n.UNIVERSAL,f.value="*",f}return o}(r.default);e.default=h,t.exports=e.default})(wr,wr.exports);var Qn=wr.exports,Sr={exports:{}};(function(t,e){e.__esModule=!0,e.default=void 0;var r=s(tt),n=de;function s(a){return a&&a.__esModule?a:{default:a}}function l(a,o){a.prototype=Object.create(o.prototype),a.prototype.constructor=a,i(a,o)}function i(a,o){return i=Object.setPrototypeOf||function(f,m){return f.__proto__=m,f},i(a,o)}var h=function(a){l(o,a);function o(u){var f;return f=a.call(this,u)||this,f.type=n.COMBINATOR,f}return o}(r.default);e.default=h,t.exports=e.default})(Sr,Sr.exports);var Vn=Sr.exports,Tr={exports:{}};(function(t,e){e.__esModule=!0,e.default=void 0;var r=s(tt),n=de;function s(a){return a&&a.__esModule?a:{default:a}}function l(a,o){a.prototype=Object.create(o.prototype),a.prototype.constructor=a,i(a,o)}function i(a,o){return i=Object.setPrototypeOf||function(f,m){return f.__proto__=m,f},i(a,o)}var h=function(a){l(o,a);function o(u){var f;return f=a.call(this,u)||this,f.type=n.NESTING,f.value="&",f}return o}(r.default);e.default=h,t.exports=e.default})(Tr,Tr.exports);var Kn=Tr.exports,kr={exports:{}};(function(t,e){e.__esModule=!0,e.default=r;function r(n){return n.sort(function(s,l){return s-l})}t.exports=e.default})(kr,kr.exports);var $a=kr.exports,Jn={},te={};te.__esModule=!0,te.combinator=te.word=te.comment=te.str=te.tab=te.newline=te.feed=te.cr=te.backslash=te.bang=te.slash=te.doubleQuote=te.singleQuote=te.space=te.greaterThan=te.pipe=te.equals=te.plus=te.caret=te.tilde=te.dollar=te.closeSquare=te.openSquare=te.closeParenthesis=te.openParenthesis=te.semicolon=te.colon=te.comma=te.at=te.asterisk=te.ampersand=void 0;var La=38;te.ampersand=La;var Da=42;te.asterisk=Da;var Pa=64;te.at=Pa;var Oa=44;te.comma=Oa;var za=58;te.colon=za;var Ba=59;te.semicolon=Ba;var Ia=40;te.openParenthesis=Ia;var Aa=41;te.closeParenthesis=Aa;var Fa=91;te.openSquare=Fa;var Ra=93;te.closeSquare=Ra;var Ha=36;te.dollar=Ha;var Na=126;te.tilde=Na;var Wa=94;te.caret=Wa;var ja=43;te.plus=ja;var Ga=61;te.equals=Ga;var qa=124;te.pipe=qa;var Za=62;te.greaterThan=Za;var Ua=32;te.space=Ua;var ei=39;te.singleQuote=ei;var Ya=34;te.doubleQuote=Ya;var Xa=47;te.slash=Xa;var Qa=33;te.bang=Qa;var Va=92;te.backslash=Va;var Ka=13;te.cr=Ka;var Ja=12;te.feed=Ja;var eo=10;te.newline=eo;var to=9;te.tab=to;var ro=ei;te.str=ro;var no=-1;te.comment=no;var io=-2;te.word=io;var so=-3;te.combinator=so,function(t){t.__esModule=!0,t.default=b,t.FIELDS=void 0;var e=l(te),r,n;function s(){if(typeof WeakMap!="function")return null;var d=new WeakMap;return s=function(){return d},d}function l(d){if(d&&d.__esModule)return d;if(d===null||typeof d!="object"&&typeof d!="function")return{default:d};var y=s();if(y&&y.has(d))return y.get(d);var T={},E=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var w in d)if(Object.prototype.hasOwnProperty.call(d,w)){var F=E?Object.getOwnPropertyDescriptor(d,w):null;F&&(F.get||F.set)?Object.defineProperty(T,w,F):T[w]=d[w]}return T.default=d,y&&y.set(d,T),T}for(var i=(r={},r[e.tab]=!0,r[e.newline]=!0,r[e.cr]=!0,r[e.feed]=!0,r),h=(n={},n[e.space]=!0,n[e.tab]=!0,n[e.newline]=!0,n[e.cr]=!0,n[e.feed]=!0,n[e.ampersand]=!0,n[e.asterisk]=!0,n[e.bang]=!0,n[e.comma]=!0,n[e.colon]=!0,n[e.semicolon]=!0,n[e.openParenthesis]=!0,n[e.closeParenthesis]=!0,n[e.openSquare]=!0,n[e.closeSquare]=!0,n[e.singleQuote]=!0,n[e.doubleQuote]=!0,n[e.plus]=!0,n[e.pipe]=!0,n[e.tilde]=!0,n[e.greaterThan]=!0,n[e.equals]=!0,n[e.dollar]=!0,n[e.caret]=!0,n[e.slash]=!0,n),a={},o="0123456789abcdefABCDEF",u=0;u<o.length;u++)a[o.charCodeAt(u)]=!0;function f(d,y){var T=y,E;do{if(E=d.charCodeAt(T),h[E])return T-1;E===e.backslash?T=m(d,T)+1:T++}while(T<d.length);return T-1}function m(d,y){var T=y,E=d.charCodeAt(T+1);if(!i[E])if(a[E]){var w=0;do T++,w++,E=d.charCodeAt(T+1);while(a[E]&&w<6);w<6&&E===e.space&&T++}else T++;return T}var v={TYPE:0,START_LINE:1,START_COL:2,END_LINE:3,END_COL:4,START_POS:5,END_POS:6};t.FIELDS=v;function b(d){var y=[],T=d.css.valueOf(),E=T,w=E.length,F=-1,$=1,N=0,K=0,q,x,z,G,D,X,Q,I,k,O,R,ie,C;function Z(A,B){if(d.safe)T+=B,k=T.length-1;else throw d.error("Unclosed "+A,$,N-F,N)}for(;N<w;){switch(q=T.charCodeAt(N),q===e.newline&&(F=N,$+=1),q){case e.space:case e.tab:case e.newline:case e.cr:case e.feed:k=N;do k+=1,q=T.charCodeAt(k),q===e.newline&&(F=k,$+=1);while(q===e.space||q===e.newline||q===e.tab||q===e.cr||q===e.feed);C=e.space,G=$,z=k-F-1,K=k;break;case e.plus:case e.greaterThan:case e.tilde:case e.pipe:k=N;do k+=1,q=T.charCodeAt(k);while(q===e.plus||q===e.greaterThan||q===e.tilde||q===e.pipe);C=e.combinator,G=$,z=N-F,K=k;break;case e.asterisk:case e.ampersand:case e.bang:case e.comma:case e.equals:case e.dollar:case e.caret:case e.openSquare:case e.closeSquare:case e.colon:case e.semicolon:case e.openParenthesis:case e.closeParenthesis:k=N,C=q,G=$,z=N-F,K=k+1;break;case e.singleQuote:case e.doubleQuote:ie=q===e.singleQuote?"'":'"',k=N;do for(D=!1,k=T.indexOf(ie,k+1),k===-1&&Z("quote",ie),X=k;T.charCodeAt(X-1)===e.backslash;)X-=1,D=!D;while(D);C=e.str,G=$,z=N-F,K=k+1;break;default:q===e.slash&&T.charCodeAt(N+1)===e.asterisk?(k=T.indexOf("*/",N+2)+1,k===0&&Z("comment","*/"),x=T.slice(N,k+1),I=x.split(`
|
|
3
|
-
`),Q=I.length-1,Q>0?(O=$+Q,R=k-I[Q].length):(O=$,R=F),C=e.comment,$=O,G=O,z=k-R):q===e.slash?(k=N,C=q,G=$,z=N-F,K=k+1):(k=f(T,N),C=e.word,G=$,z=k-F),K=k+1;break}y.push([C,$,N-F,G,z,N,K]),R&&(F=R,R=null),N=K}return y}}(Jn),function(t,e){e.__esModule=!0,e.default=void 0;var r=K(Wn),n=K(jn),s=K(Gn),l=K(qn),i=K(Zn),h=K(Un),a=K(Yn),o=K(Xn),u=N(br),f=K(Qn),m=K(Vn),v=K(Kn),b=K($a),d=N(Jn),y=N(te),T=N(de),E=Ae,w,F;function $(){if(typeof WeakMap!="function")return null;var Z=new WeakMap;return $=function(){return Z},Z}function N(Z){if(Z&&Z.__esModule)return Z;if(Z===null||typeof Z!="object"&&typeof Z!="function")return{default:Z};var A=$();if(A&&A.has(Z))return A.get(Z);var B={},S=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var W in Z)if(Object.prototype.hasOwnProperty.call(Z,W)){var V=S?Object.getOwnPropertyDescriptor(Z,W):null;V&&(V.get||V.set)?Object.defineProperty(B,W,V):B[W]=Z[W]}return B.default=Z,A&&A.set(Z,B),B}function K(Z){return Z&&Z.__esModule?Z:{default:Z}}function q(Z,A){for(var B=0;B<A.length;B++){var S=A[B];S.enumerable=S.enumerable||!1,S.configurable=!0,"value"in S&&(S.writable=!0),Object.defineProperty(Z,S.key,S)}}function x(Z,A,B){return A&&q(Z.prototype,A),B&&q(Z,B),Z}var z=(w={},w[y.space]=!0,w[y.cr]=!0,w[y.feed]=!0,w[y.newline]=!0,w[y.tab]=!0,w),G=Object.assign({},z,(F={},F[y.comment]=!0,F));function D(Z){return{line:Z[d.FIELDS.START_LINE],column:Z[d.FIELDS.START_COL]}}function X(Z){return{line:Z[d.FIELDS.END_LINE],column:Z[d.FIELDS.END_COL]}}function Q(Z,A,B,S){return{start:{line:Z,column:A},end:{line:B,column:S}}}function I(Z){return Q(Z[d.FIELDS.START_LINE],Z[d.FIELDS.START_COL],Z[d.FIELDS.END_LINE],Z[d.FIELDS.END_COL])}function k(Z,A){if(Z)return Q(Z[d.FIELDS.START_LINE],Z[d.FIELDS.START_COL],A[d.FIELDS.END_LINE],A[d.FIELDS.END_COL])}function O(Z,A){var B=Z[A];if(typeof B=="string")return B.indexOf("\\")!==-1&&((0,E.ensureObject)(Z,"raws"),Z[A]=(0,E.unesc)(B),Z.raws[A]===void 0&&(Z.raws[A]=B)),Z}function R(Z,A){for(var B=-1,S=[];(B=Z.indexOf(A,B+1))!==-1;)S.push(B);return S}function ie(){var Z=Array.prototype.concat.apply([],arguments);return Z.filter(function(A,B){return B===Z.indexOf(A)})}var C=function(){function Z(B,S){S===void 0&&(S={}),this.rule=B,this.options=Object.assign({lossy:!1,safe:!1},S),this.position=0,this.css=typeof this.rule=="string"?this.rule:this.rule.selector,this.tokens=(0,d.default)({css:this.css,error:this._errorGenerator(),safe:this.options.safe});var W=k(this.tokens[0],this.tokens[this.tokens.length-1]);this.root=new r.default({source:W}),this.root.errorGenerator=this._errorGenerator();var V=new n.default({source:{start:{line:1,column:1}}});this.root.append(V),this.current=V,this.loop()}var A=Z.prototype;return A._errorGenerator=function(){var S=this;return function(W,V){return typeof S.rule=="string"?new Error(W):S.rule.error(W,V)}},A.attribute=function(){var S=[],W=this.currToken;for(this.position++;this.position<this.tokens.length&&this.currToken[d.FIELDS.TYPE]!==y.closeSquare;)S.push(this.currToken),this.position++;if(this.currToken[d.FIELDS.TYPE]!==y.closeSquare)return this.expected("closing square bracket",this.currToken[d.FIELDS.START_POS]);var V=S.length,L={source:Q(W[1],W[2],this.currToken[3],this.currToken[4]),sourceIndex:W[d.FIELDS.START_POS]};if(V===1&&!~[y.word].indexOf(S[0][d.FIELDS.TYPE]))return this.expected("attribute",S[0][d.FIELDS.START_POS]);for(var ne=0,ue="",ce="",se=null,he=!1;ne<V;){var Te=S[ne],le=this.content(Te),ye=S[ne+1];switch(Te[d.FIELDS.TYPE]){case y.space:if(he=!0,this.options.lossy)break;if(se){(0,E.ensureObject)(L,"spaces",se);var Fe=L.spaces[se].after||"";L.spaces[se].after=Fe+le;var Be=(0,E.getProp)(L,"raws","spaces",se,"after")||null;Be&&(L.raws.spaces[se].after=Be+le)}else ue=ue+le,ce=ce+le;break;case y.asterisk:if(ye[d.FIELDS.TYPE]===y.equals)L.operator=le,se="operator";else if((!L.namespace||se==="namespace"&&!he)&&ye){ue&&((0,E.ensureObject)(L,"spaces","attribute"),L.spaces.attribute.before=ue,ue=""),ce&&((0,E.ensureObject)(L,"raws","spaces","attribute"),L.raws.spaces.attribute.before=ue,ce=""),L.namespace=(L.namespace||"")+le;var Me=(0,E.getProp)(L,"raws","namespace")||null;Me&&(L.raws.namespace+=le),se="namespace"}he=!1;break;case y.dollar:if(se==="value"){var ke=(0,E.getProp)(L,"raws","value");L.value+="$",ke&&(L.raws.value=ke+"$");break}case y.caret:ye[d.FIELDS.TYPE]===y.equals&&(L.operator=le,se="operator"),he=!1;break;case y.combinator:if(le==="~"&&ye[d.FIELDS.TYPE]===y.equals&&(L.operator=le,se="operator"),le!=="|"){he=!1;break}ye[d.FIELDS.TYPE]===y.equals?(L.operator=le,se="operator"):!L.namespace&&!L.attribute&&(L.namespace=!0),he=!1;break;case y.word:if(ye&&this.content(ye)==="|"&&S[ne+2]&&S[ne+2][d.FIELDS.TYPE]!==y.equals&&!L.operator&&!L.namespace)L.namespace=le,se="namespace";else if(!L.attribute||se==="attribute"&&!he){ue&&((0,E.ensureObject)(L,"spaces","attribute"),L.spaces.attribute.before=ue,ue=""),ce&&((0,E.ensureObject)(L,"raws","spaces","attribute"),L.raws.spaces.attribute.before=ce,ce=""),L.attribute=(L.attribute||"")+le;var $e=(0,E.getProp)(L,"raws","attribute")||null;$e&&(L.raws.attribute+=le),se="attribute"}else if(!L.value&&L.value!==""||se==="value"&&!he){var Ee=(0,E.unesc)(le),Le=(0,E.getProp)(L,"raws","value")||"",De=L.value||"";L.value=De+Ee,L.quoteMark=null,(Ee!==le||Le)&&((0,E.ensureObject)(L,"raws"),L.raws.value=(Le||De)+le),se="value"}else{var Ke=le==="i"||le==="I";(L.value||L.value==="")&&(L.quoteMark||he)?(L.insensitive=Ke,(!Ke||le==="I")&&((0,E.ensureObject)(L,"raws"),L.raws.insensitiveFlag=le),se="insensitive",ue&&((0,E.ensureObject)(L,"spaces","insensitive"),L.spaces.insensitive.before=ue,ue=""),ce&&((0,E.ensureObject)(L,"raws","spaces","insensitive"),L.raws.spaces.insensitive.before=ce,ce="")):(L.value||L.value==="")&&(se="value",L.value+=le,L.raws.value&&(L.raws.value+=le))}he=!1;break;case y.str:if(!L.attribute||!L.operator)return this.error("Expected an attribute followed by an operator preceding the string.",{index:Te[d.FIELDS.START_POS]});var Xe=(0,u.unescapeValue)(le),ot=Xe.unescaped,_t=Xe.quoteMark;L.value=ot,L.quoteMark=_t,se="value",(0,E.ensureObject)(L,"raws"),L.raws.value=le,he=!1;break;case y.equals:if(!L.attribute)return this.expected("attribute",Te[d.FIELDS.START_POS],le);if(L.value)return this.error('Unexpected "=" found; an operator was already defined.',{index:Te[d.FIELDS.START_POS]});L.operator=L.operator?L.operator+le:le,se="operator",he=!1;break;case y.comment:if(se)if(he||ye&&ye[d.FIELDS.TYPE]===y.space||se==="insensitive"){var qe=(0,E.getProp)(L,"spaces",se,"after")||"",ht=(0,E.getProp)(L,"raws","spaces",se,"after")||qe;(0,E.ensureObject)(L,"raws","spaces",se),L.raws.spaces[se].after=ht+le}else{var Ot=L[se]||"",zt=(0,E.getProp)(L,"raws",se)||Ot;(0,E.ensureObject)(L,"raws"),L.raws[se]=zt+le}else ce=ce+le;break;default:return this.error('Unexpected "'+le+'" found.',{index:Te[d.FIELDS.START_POS]})}ne++}O(L,"attribute"),O(L,"namespace"),this.newNode(new u.default(L)),this.position++},A.parseWhitespaceEquivalentTokens=function(S){S<0&&(S=this.tokens.length);var W=this.position,V=[],L="",ne=void 0;do if(z[this.currToken[d.FIELDS.TYPE]])this.options.lossy||(L+=this.content());else if(this.currToken[d.FIELDS.TYPE]===y.comment){var ue={};L&&(ue.before=L,L=""),ne=new l.default({value:this.content(),source:I(this.currToken),sourceIndex:this.currToken[d.FIELDS.START_POS],spaces:ue}),V.push(ne)}while(++this.position<S);if(L){if(ne)ne.spaces.after=L;else if(!this.options.lossy){var ce=this.tokens[W],se=this.tokens[this.position-1];V.push(new a.default({value:"",source:Q(ce[d.FIELDS.START_LINE],ce[d.FIELDS.START_COL],se[d.FIELDS.END_LINE],se[d.FIELDS.END_COL]),sourceIndex:ce[d.FIELDS.START_POS],spaces:{before:L,after:""}}))}}return V},A.convertWhitespaceNodesToSpace=function(S,W){var V=this;W===void 0&&(W=!1);var L="",ne="";S.forEach(function(ce){var se=V.lossySpace(ce.spaces.before,W),he=V.lossySpace(ce.rawSpaceBefore,W);L+=se+V.lossySpace(ce.spaces.after,W&&se.length===0),ne+=se+ce.value+V.lossySpace(ce.rawSpaceAfter,W&&he.length===0)}),ne===L&&(ne=void 0);var ue={space:L,rawSpace:ne};return ue},A.isNamedCombinator=function(S){return S===void 0&&(S=this.position),this.tokens[S+0]&&this.tokens[S+0][d.FIELDS.TYPE]===y.slash&&this.tokens[S+1]&&this.tokens[S+1][d.FIELDS.TYPE]===y.word&&this.tokens[S+2]&&this.tokens[S+2][d.FIELDS.TYPE]===y.slash},A.namedCombinator=function(){if(this.isNamedCombinator()){var S=this.content(this.tokens[this.position+1]),W=(0,E.unesc)(S).toLowerCase(),V={};W!==S&&(V.value="/"+S+"/");var L=new m.default({value:"/"+W+"/",source:Q(this.currToken[d.FIELDS.START_LINE],this.currToken[d.FIELDS.START_COL],this.tokens[this.position+2][d.FIELDS.END_LINE],this.tokens[this.position+2][d.FIELDS.END_COL]),sourceIndex:this.currToken[d.FIELDS.START_POS],raws:V});return this.position=this.position+3,L}else this.unexpected()},A.combinator=function(){var S=this;if(this.content()==="|")return this.namespace();var W=this.locateNextMeaningfulToken(this.position);if(W<0||this.tokens[W][d.FIELDS.TYPE]===y.comma){var V=this.parseWhitespaceEquivalentTokens(W);if(V.length>0){var L=this.current.last;if(L){var ne=this.convertWhitespaceNodesToSpace(V),ue=ne.space,ce=ne.rawSpace;ce!==void 0&&(L.rawSpaceAfter+=ce),L.spaces.after+=ue}else V.forEach(function(Le){return S.newNode(Le)})}return}var se=this.currToken,he=void 0;W>this.position&&(he=this.parseWhitespaceEquivalentTokens(W));var Te;if(this.isNamedCombinator()?Te=this.namedCombinator():this.currToken[d.FIELDS.TYPE]===y.combinator?(Te=new m.default({value:this.content(),source:I(this.currToken),sourceIndex:this.currToken[d.FIELDS.START_POS]}),this.position++):z[this.currToken[d.FIELDS.TYPE]]||he||this.unexpected(),Te){if(he){var le=this.convertWhitespaceNodesToSpace(he),ye=le.space,Fe=le.rawSpace;Te.spaces.before=ye,Te.rawSpaceBefore=Fe}}else{var Be=this.convertWhitespaceNodesToSpace(he,!0),Me=Be.space,ke=Be.rawSpace;ke||(ke=Me);var $e={},Ee={spaces:{}};Me.endsWith(" ")&&ke.endsWith(" ")?($e.before=Me.slice(0,Me.length-1),Ee.spaces.before=ke.slice(0,ke.length-1)):Me.startsWith(" ")&&ke.startsWith(" ")?($e.after=Me.slice(1),Ee.spaces.after=ke.slice(1)):Ee.value=ke,Te=new m.default({value:" ",source:k(se,this.tokens[this.position-1]),sourceIndex:se[d.FIELDS.START_POS],spaces:$e,raws:Ee})}return this.currToken&&this.currToken[d.FIELDS.TYPE]===y.space&&(Te.spaces.after=this.optionalSpace(this.content()),this.position++),this.newNode(Te)},A.comma=function(){if(this.position===this.tokens.length-1){this.root.trailingComma=!0,this.position++;return}this.current._inferEndPosition();var S=new n.default({source:{start:D(this.tokens[this.position+1])}});this.current.parent.append(S),this.current=S,this.position++},A.comment=function(){var S=this.currToken;this.newNode(new l.default({value:this.content(),source:I(S),sourceIndex:S[d.FIELDS.START_POS]})),this.position++},A.error=function(S,W){throw this.root.error(S,W)},A.missingBackslash=function(){return this.error("Expected a backslash preceding the semicolon.",{index:this.currToken[d.FIELDS.START_POS]})},A.missingParenthesis=function(){return this.expected("opening parenthesis",this.currToken[d.FIELDS.START_POS])},A.missingSquareBracket=function(){return this.expected("opening square bracket",this.currToken[d.FIELDS.START_POS])},A.unexpected=function(){return this.error("Unexpected '"+this.content()+"'. Escaping special characters with \\ may help.",this.currToken[d.FIELDS.START_POS])},A.namespace=function(){var S=this.prevToken&&this.content(this.prevToken)||!0;if(this.nextToken[d.FIELDS.TYPE]===y.word)return this.position++,this.word(S);if(this.nextToken[d.FIELDS.TYPE]===y.asterisk)return this.position++,this.universal(S)},A.nesting=function(){if(this.nextToken){var S=this.content(this.nextToken);if(S==="|"){this.position++;return}}var W=this.currToken;this.newNode(new v.default({value:this.content(),source:I(W),sourceIndex:W[d.FIELDS.START_POS]})),this.position++},A.parentheses=function(){var S=this.current.last,W=1;if(this.position++,S&&S.type===T.PSEUDO){var V=new n.default({source:{start:D(this.tokens[this.position-1])}}),L=this.current;for(S.append(V),this.current=V;this.position<this.tokens.length&&W;)this.currToken[d.FIELDS.TYPE]===y.openParenthesis&&W++,this.currToken[d.FIELDS.TYPE]===y.closeParenthesis&&W--,W?this.parse():(this.current.source.end=X(this.currToken),this.current.parent.source.end=X(this.currToken),this.position++);this.current=L}else{for(var ne=this.currToken,ue="(",ce;this.position<this.tokens.length&&W;)this.currToken[d.FIELDS.TYPE]===y.openParenthesis&&W++,this.currToken[d.FIELDS.TYPE]===y.closeParenthesis&&W--,ce=this.currToken,ue+=this.parseParenthesisToken(this.currToken),this.position++;S?S.appendToPropertyAndEscape("value",ue,ue):this.newNode(new a.default({value:ue,source:Q(ne[d.FIELDS.START_LINE],ne[d.FIELDS.START_COL],ce[d.FIELDS.END_LINE],ce[d.FIELDS.END_COL]),sourceIndex:ne[d.FIELDS.START_POS]}))}if(W)return this.expected("closing parenthesis",this.currToken[d.FIELDS.START_POS])},A.pseudo=function(){for(var S=this,W="",V=this.currToken;this.currToken&&this.currToken[d.FIELDS.TYPE]===y.colon;)W+=this.content(),this.position++;if(!this.currToken)return this.expected(["pseudo-class","pseudo-element"],this.position-1);if(this.currToken[d.FIELDS.TYPE]===y.word)this.splitWord(!1,function(L,ne){W+=L,S.newNode(new o.default({value:W,source:k(V,S.currToken),sourceIndex:V[d.FIELDS.START_POS]})),ne>1&&S.nextToken&&S.nextToken[d.FIELDS.TYPE]===y.openParenthesis&&S.error("Misplaced parenthesis.",{index:S.nextToken[d.FIELDS.START_POS]})});else return this.expected(["pseudo-class","pseudo-element"],this.currToken[d.FIELDS.START_POS])},A.space=function(){var S=this.content();this.position===0||this.prevToken[d.FIELDS.TYPE]===y.comma||this.prevToken[d.FIELDS.TYPE]===y.openParenthesis||this.current.nodes.every(function(W){return W.type==="comment"})?(this.spaces=this.optionalSpace(S),this.position++):this.position===this.tokens.length-1||this.nextToken[d.FIELDS.TYPE]===y.comma||this.nextToken[d.FIELDS.TYPE]===y.closeParenthesis?(this.current.last.spaces.after=this.optionalSpace(S),this.position++):this.combinator()},A.string=function(){var S=this.currToken;this.newNode(new a.default({value:this.content(),source:I(S),sourceIndex:S[d.FIELDS.START_POS]})),this.position++},A.universal=function(S){var W=this.nextToken;if(W&&this.content(W)==="|")return this.position++,this.namespace();var V=this.currToken;this.newNode(new f.default({value:this.content(),source:I(V),sourceIndex:V[d.FIELDS.START_POS]}),S),this.position++},A.splitWord=function(S,W){for(var V=this,L=this.nextToken,ne=this.content();L&&~[y.dollar,y.caret,y.equals,y.word].indexOf(L[d.FIELDS.TYPE]);){this.position++;var ue=this.content();if(ne+=ue,ue.lastIndexOf("\\")===ue.length-1){var ce=this.nextToken;ce&&ce[d.FIELDS.TYPE]===y.space&&(ne+=this.requiredSpace(this.content(ce)),this.position++)}L=this.nextToken}var se=R(ne,".").filter(function(ye){var Fe=ne[ye-1]==="\\",Be=/^\d+\.\d+%$/.test(ne);return!Fe&&!Be}),he=R(ne,"#").filter(function(ye){return ne[ye-1]!=="\\"}),Te=R(ne,"#{");Te.length&&(he=he.filter(function(ye){return!~Te.indexOf(ye)}));var le=(0,b.default)(ie([0].concat(se,he)));le.forEach(function(ye,Fe){var Be=le[Fe+1]||ne.length,Me=ne.slice(ye,Be);if(Fe===0&&W)return W.call(V,Me,le.length);var ke,$e=V.currToken,Ee=$e[d.FIELDS.START_POS]+le[Fe],Le=Q($e[1],$e[2]+ye,$e[3],$e[2]+(Be-1));if(~se.indexOf(ye)){var De={value:Me.slice(1),source:Le,sourceIndex:Ee};ke=new s.default(O(De,"value"))}else if(~he.indexOf(ye)){var Ke={value:Me.slice(1),source:Le,sourceIndex:Ee};ke=new i.default(O(Ke,"value"))}else{var Xe={value:Me,source:Le,sourceIndex:Ee};O(Xe,"value"),ke=new h.default(Xe)}V.newNode(ke,S),S=null}),this.position++},A.word=function(S){var W=this.nextToken;return W&&this.content(W)==="|"?(this.position++,this.namespace()):this.splitWord(S)},A.loop=function(){for(;this.position<this.tokens.length;)this.parse(!0);return this.current._inferEndPosition(),this.root},A.parse=function(S){switch(this.currToken[d.FIELDS.TYPE]){case y.space:this.space();break;case y.comment:this.comment();break;case y.openParenthesis:this.parentheses();break;case y.closeParenthesis:S&&this.missingParenthesis();break;case y.openSquare:this.attribute();break;case y.dollar:case y.caret:case y.equals:case y.word:this.word();break;case y.colon:this.pseudo();break;case y.comma:this.comma();break;case y.asterisk:this.universal();break;case y.ampersand:this.nesting();break;case y.slash:case y.combinator:this.combinator();break;case y.str:this.string();break;case y.closeSquare:this.missingSquareBracket();case y.semicolon:this.missingBackslash();default:this.unexpected()}},A.expected=function(S,W,V){if(Array.isArray(S)){var L=S.pop();S=S.join(", ")+" or "+L}var ne=/^[aeiou]/.test(S[0])?"an":"a";return V?this.error("Expected "+ne+" "+S+', found "'+V+'" instead.',{index:W}):this.error("Expected "+ne+" "+S+".",{index:W})},A.requiredSpace=function(S){return this.options.lossy?" ":S},A.optionalSpace=function(S){return this.options.lossy?"":S},A.lossySpace=function(S,W){return this.options.lossy?W?" ":"":S},A.parseParenthesisToken=function(S){var W=this.content(S);return S[d.FIELDS.TYPE]===y.space?this.requiredSpace(W):W},A.newNode=function(S,W){return W&&(/^ +$/.test(W)&&(this.options.lossy||(this.spaces=(this.spaces||"")+W),W=!0),S.namespace=W,O(S,"namespace")),this.spaces&&(S.spaces.before=this.spaces,this.spaces=""),this.current.append(S)},A.content=function(S){return S===void 0&&(S=this.currToken),this.css.slice(S[d.FIELDS.START_POS],S[d.FIELDS.END_POS])},A.locateNextMeaningfulToken=function(S){S===void 0&&(S=this.position+1);for(var W=S;W<this.tokens.length;)if(G[this.tokens[W][d.FIELDS.TYPE]]){W++;continue}else return W;return-1},x(Z,[{key:"currToken",get:function(){return this.tokens[this.position]}},{key:"nextToken",get:function(){return this.tokens[this.position+1]}},{key:"prevToken",get:function(){return this.tokens[this.position-1]}}]),Z}();e.default=C,t.exports=e.default}(tr,tr.exports);var ao=tr.exports;(function(t,e){e.__esModule=!0,e.default=void 0;var r=n(ao);function n(l){return l&&l.__esModule?l:{default:l}}var s=function(){function l(h,a){this.func=h||function(){},this.funcRes=null,this.options=a}var i=l.prototype;return i._shouldUpdateSelector=function(a,o){o===void 0&&(o={});var u=Object.assign({},this.options,o);return u.updateSelector===!1?!1:typeof a!="string"},i._isLossy=function(a){a===void 0&&(a={});var o=Object.assign({},this.options,a);return o.lossless===!1},i._root=function(a,o){o===void 0&&(o={});var u=new r.default(a,this._parseOptions(o));return u.root},i._parseOptions=function(a){return{lossy:this._isLossy(a)}},i._run=function(a,o){var u=this;return o===void 0&&(o={}),new Promise(function(f,m){try{var v=u._root(a,o);Promise.resolve(u.func(v)).then(function(b){var d=void 0;return u._shouldUpdateSelector(a,o)&&(d=v.toString(),a.selector=d),{transform:b,root:v,string:d}}).then(f,m)}catch(b){m(b);return}})},i._runSync=function(a,o){o===void 0&&(o={});var u=this._root(a,o),f=this.func(u);if(f&&typeof f.then=="function")throw new Error("Selector processor returned a promise to a synchronous call.");var m=void 0;return o.updateSelector&&typeof a!="string"&&(m=u.toString(),a.selector=m),{transform:f,root:u,string:m}},i.ast=function(a,o){return this._run(a,o).then(function(u){return u.root})},i.astSync=function(a,o){return this._runSync(a,o).root},i.transform=function(a,o){return this._run(a,o).then(function(u){return u.transform})},i.transformSync=function(a,o){return this._runSync(a,o).transform},i.process=function(a,o){return this._run(a,o).then(function(u){return u.string||u.root.toString()})},i.processSync=function(a,o){var u=this._runSync(a,o);return u.string||u.root.toString()},l}();e.default=s,t.exports=e.default})(er,er.exports);var oo=er.exports,ti={},_e={};_e.__esModule=!0,_e.universal=_e.tag=_e.string=_e.selector=_e.root=_e.pseudo=_e.nesting=_e.id=_e.comment=_e.combinator=_e.className=_e.attribute=void 0;var lo=He(br),co=He(Gn),uo=He(Vn),ho=He(qn),fo=He(Zn),po=He(Kn),mo=He(Xn),go=He(Wn),vo=He(jn),_o=He(Yn),yo=He(Un),Co=He(Qn);function He(t){return t&&t.__esModule?t:{default:t}}var bo=function(e){return new lo.default(e)};_e.attribute=bo;var xo=function(e){return new co.default(e)};_e.className=xo;var wo=function(e){return new uo.default(e)};_e.combinator=wo;var So=function(e){return new ho.default(e)};_e.comment=So;var To=function(e){return new fo.default(e)};_e.id=To;var ko=function(e){return new po.default(e)};_e.nesting=ko;var Mo=function(e){return new mo.default(e)};_e.pseudo=Mo;var Eo=function(e){return new go.default(e)};_e.root=Eo;var $o=function(e){return new vo.default(e)};_e.selector=$o;var Lo=function(e){return new _o.default(e)};_e.string=Lo;var Do=function(e){return new yo.default(e)};_e.tag=Do;var Po=function(e){return new Co.default(e)};_e.universal=Po;var me={};me.__esModule=!0,me.isNode=Mr,me.isPseudoElement=ii,me.isPseudoClass=jo,me.isContainer=Go,me.isNamespace=qo,me.isUniversal=me.isTag=me.isString=me.isSelector=me.isRoot=me.isPseudo=me.isNesting=me.isIdentifier=me.isComment=me.isCombinator=me.isClassName=me.isAttribute=void 0;var be=de,Ie,Oo=(Ie={},Ie[be.ATTRIBUTE]=!0,Ie[be.CLASS]=!0,Ie[be.COMBINATOR]=!0,Ie[be.COMMENT]=!0,Ie[be.ID]=!0,Ie[be.NESTING]=!0,Ie[be.PSEUDO]=!0,Ie[be.ROOT]=!0,Ie[be.SELECTOR]=!0,Ie[be.STRING]=!0,Ie[be.TAG]=!0,Ie[be.UNIVERSAL]=!0,Ie);function Mr(t){return typeof t=="object"&&Oo[t.type]}function Ne(t,e){return Mr(e)&&e.type===t}var ri=Ne.bind(null,be.ATTRIBUTE);me.isAttribute=ri;var zo=Ne.bind(null,be.CLASS);me.isClassName=zo;var Bo=Ne.bind(null,be.COMBINATOR);me.isCombinator=Bo;var Io=Ne.bind(null,be.COMMENT);me.isComment=Io;var Ao=Ne.bind(null,be.ID);me.isIdentifier=Ao;var Fo=Ne.bind(null,be.NESTING);me.isNesting=Fo;var Er=Ne.bind(null,be.PSEUDO);me.isPseudo=Er;var Ro=Ne.bind(null,be.ROOT);me.isRoot=Ro;var Ho=Ne.bind(null,be.SELECTOR);me.isSelector=Ho;var No=Ne.bind(null,be.STRING);me.isString=No;var ni=Ne.bind(null,be.TAG);me.isTag=ni;var Wo=Ne.bind(null,be.UNIVERSAL);me.isUniversal=Wo;function ii(t){return Er(t)&&t.value&&(t.value.startsWith("::")||t.value.toLowerCase()===":before"||t.value.toLowerCase()===":after"||t.value.toLowerCase()===":first-letter"||t.value.toLowerCase()===":first-line")}function jo(t){return Er(t)&&!ii(t)}function Go(t){return!!(Mr(t)&&t.walk)}function qo(t){return ri(t)||ni(t)}(function(t){t.__esModule=!0;var e=de;Object.keys(e).forEach(function(s){s==="default"||s==="__esModule"||s in t&&t[s]===e[s]||(t[s]=e[s])});var r=_e;Object.keys(r).forEach(function(s){s==="default"||s==="__esModule"||s in t&&t[s]===r[s]||(t[s]=r[s])});var n=me;Object.keys(n).forEach(function(s){s==="default"||s==="__esModule"||s in t&&t[s]===n[s]||(t[s]=n[s])})})(ti),function(t,e){e.__esModule=!0,e.default=void 0;var r=i(oo),n=l(ti);function s(){if(typeof WeakMap!="function")return null;var o=new WeakMap;return s=function(){return o},o}function l(o){if(o&&o.__esModule)return o;if(o===null||typeof o!="object"&&typeof o!="function")return{default:o};var u=s();if(u&&u.has(o))return u.get(o);var f={},m=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var v in o)if(Object.prototype.hasOwnProperty.call(o,v)){var b=m?Object.getOwnPropertyDescriptor(o,v):null;b&&(b.get||b.set)?Object.defineProperty(f,v,b):f[v]=o[v]}return f.default=o,u&&u.set(o,f),f}function i(o){return o&&o.__esModule?o:{default:o}}var h=function(u){return new r.default(u)};Object.assign(h,n),delete h.__esModule;var a=h;e.default=a,t.exports=e.default}(Jt,Jt.exports);var Zo=Jt.exports;const Uo=ta,si=Zo,Yo=si();var Xo={isUsableColor(t,e){return Uo(e)&&t!=="gray"&&e[600]},commonTrailingPseudos(t){let e=Yo.astSync(t),r=[];for(let[s,l]of e.nodes.entries())for(const[i,h]of[...l.nodes].reverse().entries()){if(h.type!=="pseudo"||!h.value.startsWith("::"))break;r[i]=r[i]||[],r[i][s]=h}let n=si.selector();for(const s of r){if(!s)continue;if(new Set([...s.map(i=>i.value)]).size>1)break;s.forEach(i=>i.remove()),n.prepend(s[0])}return n.nodes.length?[n.toString(),e.toString()]:[null,t]}};const Qo=Rs,Vo=Hs,Ko=js,Jo=Gs,{commonTrailingPseudos:e1}=Xo,ai={};function $r(t,{className:e,modifier:r,prefix:n}){let s=n(`.not-${e}`).slice(1),l=t.startsWith(">")?`${r==="DEFAULT"?`.${e}`:`.${e}-${r}`} `:"",[i,h]=e1(t);return i?`:where(${l}${h}):not(:where([class~="${s}"],[class~="${s}"] *))${i}`:`:where(${l}${t}):not(:where([class~="${s}"],[class~="${s}"] *))`}function oi(t){return typeof t=="object"&&t!==null}function t1(t={},{target:e,className:r,modifier:n,prefix:s}){function l(i,h){return e==="legacy"?[i,h]:Array.isArray(h)?[i,h]:oi(h)?Object.values(h).some(oi)?[$r(i,{className:r,modifier:n,prefix:s}),h,Object.fromEntries(Object.entries(h).map(([o,u])=>l(o,u)))]:[$r(i,{className:r,modifier:n,prefix:s}),h]:[i,h]}return Object.fromEntries(Object.entries(Vo({},...Object.keys(t).filter(i=>ai[i]).map(i=>ai[i](t[i])),...Ko(t.css||{}))).map(([i,h])=>l(i,h)))}var li=Qo.withOptions(({className:t="prose",target:e="modern"}={})=>function({addVariant:r,addComponents:n,theme:s,prefix:l}){let i=s("typography"),h={className:t,prefix:l};for(let[a,...o]of[["headings","h1","h2","h3","h4","h5","h6","th"],["h1"],["h2"],["h3"],["h4"],["h5"],["h6"],["p"],["a"],["blockquote"],["figure"],["figcaption"],["strong"],["em"],["kbd"],["code"],["pre"],["ol"],["ul"],["li"],["table"],["thead"],["tr"],["th"],["td"],["img"],["video"],["hr"],["lead",'[class~="lead"]']]){o=o.length===0?[a]:o;let u=e==="legacy"?o.map(f=>`& ${f}`):o.join(", ");r(`${t}-${a}`,e==="legacy"?u:`& :is(${$r(u,h)})`)}n(Object.keys(i).map(a=>({[a==="DEFAULT"?`.${t}`:`.${t}-${a}`]:t1(i[a],{target:e,className:t,modifier:a,prefix:l})})))},()=>({theme:{typography:Jo}}));const ci=St(li),r1=mn({__proto__:null,default:ci},[li]);var Lt={exports:{}};const Ye=In||Fs,n1={50:"#FCE3E4",100:"#F9CDCE",200:"#F39699",300:"#ED6368",400:"#E72C32",500:"#C4161C",600:"#9C1216",700:"#770D11",800:"#4E090B",900:"#290506"},Pe={onprimary:Ye.white,warning:Ye.amber,error:Ye.red,info:Ye.slate,success:Ye.emerald,primary:Ye.blue,brand:n1,"video-player-progress-bar":{"base-bg":"#6c737a","progress-bg":"#0090ff","hover-bg":"#bbb","chunk-bg":"#9bcdff","tootltip-bg":"#333","transition-duration":"0.2s","bar-height":"7px"}},i1={...Pe,warning:Pe.warning[500],"warning-darken":Pe.warning[600],"warning-lighten":Pe.warning[400],success:Pe.success[500],"success-darken":Pe.success[600],"success-lighten":Pe.success[400],error:Pe.error[500],"error-darken":Pe.error[600],"error-lighten":Pe.error[400],info:Pe.info[500],"info-darken":Pe.info[600],"info-lighten":Pe.info[400],primary:Pe.primary[500],"primary-darken":Pe.primary[600],"primary-lighten":Pe.primary[400],onsurface:Ye.slate[500],onbackground:Ye.slate[700],surface:Ye.slate[50],background:Ye.white},s1={prefix:"e-",dark:"class",corePlugins:{preflight:!1},content:["./src/**/*.{html,js,vue,ts}"],theme:{extend:{ringWidth:{1:"1px"},colors:i1,lineHeight:{xs:"1rem",sm:"1.25rem",base:"1.5rem",lg:"1.75rem",xl:"1.75rem","2xl":"2rem","3xl":"2.25rem","4xl":"2.5rem","5xl":"3rem","6xl":"3.75rem","7xl":"4.5rem","8xl":"6rem","9xl":"8rem"},maxWidth:{"1/12":"8.333333333%","2/12":"16.666666666%","3/12":"25%","4/12":"33.333333333%","5/12":"41.666666667%","6/12":"50%","7/12":"58.333333334%","8/12":"66.666666666%","9/12":"75%","10/12":"83.333333334%","11/12":"91.666666666%","12/12":"100%"},blur:{"video-poster":"32px"},transitionProperty:{"opacity-transform":"opacity, transform"},transitionDuration:{600:"600ms"}},fontSize:{xs:"0.75rem",sm:"0.875rem",base:"1rem",lg:"1.125rem",xl:"1.25rem","2xl":"1.5rem","3xl":"1.875rem","4xl":"2.25rem","5xl":"3rem","6xl":"3.75rem","7xl":"4.5rem","8xl":"6rem","9xl":"8rem"}},plugins:[ci||r1],safelist:[{pattern:/e-w-(full|auto)/,variants:["lg","md","sm","xs","xl"]},{pattern:/e-grow/,variants:["lg","md","sm","xs","xl"]},{pattern:/e-basis-(\d{1,2}\/\d{1,2}|full|auto|0)/,variants:["lg","md","sm","xs","xl"]},{pattern:/^!?e-max-w-(\d{1,2}\/\d{1,2})/,variants:["lg","md","sm","xs","xl"]},{pattern:/e-offset-(1[0-2]|[1-9])/,variants:["lg","md","sm","xs","xl"]},{pattern:/e-items-(start|center|end|baseline|stretch)/},{pattern:/e-self-(start|center|end|baseline|stretch)/},{pattern:/e-justify-(around|between|center|end|evenly|normal|start|stretch)/,variants:["lg","md","sm","xs","xl"]},{pattern:/e-content-(around|baseline|between|center|end|evenly|normal|start|stretch)/},{pattern:/e-m[trblxy]?-[\w\-/]+/,variants:["lg","md","sm","xs","xl"]},{pattern:/e-p[trblxy]?-[\w\-/]+/,variants:["lg","md","sm","xs","xl"]},"e-tiny","e-caption","e-body","e-title-2","e-title-1","e-display-3","e-display-2","e-display-1",{pattern:/e-text-(xs|sm|base|lg|xl|2xl|3xl|4xl|5xl|6xl|7xl|8xl|9xl)/},{pattern:/e-text-(warning|error|info|success|primary|brand)-./},{pattern:/e-bg-(warning|error|info|success|primary|brand)-./}]};Lt.exports=s1;const a1=(Lt.exports==null?{}:Lt.exports).default||Lt.exports,Lr=As(a1),ui=Lr.theme.fontSize,di=Lr.theme.colors,o1=[J.dot,J.xs,J.sm,J.md,J.lg,J.xl],l1=[J.xs,J.sm,J.md,J.lg,J.xl,J["2xl"]],hi=[J.xs,J.sm,J.md,J.base,J.lg,J.xl,J["2xl"],J["3xl"],J["4xl"],J["5xl"],J["6xl"],J["7xl"],J["8xl"],J["9xl"]],c1=[J.sm,J.md,J.lg],u1=[ae.warning,ae.error,ae.info,ae.success,ae.primary,ae.default],d1=[ae.warning,ae.error,ae.info,ae.success,ae.primary,ae.default],h1=[Oe.top,Oe.bottom,Oe.right,Oe.left],f1=["play","pause","ended","loadeddata","waiting","playing","timeupdate","canplay","canplaythrough","statechanged"],p1=j.extend({name:"EIcon",props:{icon:{type:String,default:""},color:{type:String,default:ae.default},size:{type:String,default:J.sm}},computed:{sizes(){return hi.reduce((t,e)=>({...t,[e]:`e-text-${e}`}),{})},iconClasses(){var n,s;const t=this.sizes[this.size]||this.sizes[J.sm],e=`${((s=(n=this.icon)==null?void 0:n.split(" "))==null?void 0:s.length)>1?this.icon:`fa fa-${this.icon}`}`;return["e-inline-flex e-items-center e-justify-center e-rounded-full",this.color,e,t]}}});var m1=function(){var e=this,r=e._self._c;return r("div",{staticClass:"e-icon"},[r("i",{class:e.iconClasses})])},g1=[],v1=Y(p1,m1,g1,!1,null,null,null,null);const rt=v1.exports,_1=j.extend({name:"ESpinner",props:{dark:{type:Boolean,default:!1},color:{type:Boolean,default:!0},animationDuration:{type:[Number,String],default:1e3},size:{type:String,default:J.base},opacity:{type:[String,Number],default:1}},data(){return{sizes:ui,colors:di}},computed:{computedSize(){return this.sizes[J[this.size]]||this.size||this.sizes[J.base]},fill(){let t={primary:this.colors.brand[500],secondary:this.colors.neutral[300]};return this.dark&&!this.color&&(t={primary:this.colors.neutral[100],secondary:this.colors.neutral[100]}),!this.dark&&this.color&&(t={primary:this.colors.brand[500],secondary:this.colors.neutral[950]}),!this.dark&&!this.color&&(t={primary:this.colors.neutral[200],secondary:this.colors.neutral[200]}),t}},methods:{getNthPathStyle(t){const e=typeof this.animationDuration=="string"?Number.parseInt(this.animationDuration):this.animationDuration;return{animationDuration:`${this.animationDuration}ms`,animationDelay:`${t/10*e}ms`,fill:`${this.fill[t%2===0?"primary":"secondary"]}`}}}}),j8="";var y1=function(){var e=this,r=e._self._c;return r("svg",{staticClass:"e-spinner e-block",class:{"e-spinner--dark":e.dark,"e-spinner--grey":!e.color},style:{opacity:e.opacity},attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1629.32 1608.86",width:e.computedSize,height:e.computedSize}},[r("path",{staticClass:"e-spinner__primary",style:e.getNthPathStyle(0),attrs:{d:"m1254.12,591.61C992.01,401.11,439.78,0,439.78,0h601.2c14.3,0,48.95,9.02,62.54,38.01,55.27,117.88,111.32,235.46,170.48,351.43,33.16,70.9-8.99,170.35-19.87,202.16"}}),r("path",{staticClass:"e-spinner__secondary",style:e.getNthPathStyle(1),attrs:{d:"m1404.65,131.67c-29.37,89.94-55.8,170.95-82.25,251.93-4.05.87-8.1,1.73-12.15,2.61-40.61-83.95-81.21-167.9-123.12-254.54h217.51Z"}}),r("path",{staticClass:"e-spinner__primary",style:e.getNthPathStyle(2),attrs:{d:"m1129.06,1093.51c100.75-307.98,312.75-956.75,312.75-956.75,0,0,180.36,558.53,184.75,572.14,4.39,13.59,6.45,49.34-16.96,71.19-95.21,88.81-189.88,178.28-282.06,270.2-57.29,53.34-164.86,43.8-198.48,43.21"}}),r("path",{staticClass:"e-spinner__secondary",style:e.getNthPathStyle(3),attrs:{d:"m1342.3,1083.06c66.6-63.43,133.22-126.86,207.93-197.98,21.51,73.55,40.3,137.81,60.64,207.37h-263.35c-1.75-3.13-3.48-6.27-5.22-9.39"}}),r("path",{staticClass:"e-spinner__primary",style:e.getNthPathStyle(4),attrs:{d:"m610.27,1137.17c324.03-.53,1006.55-1.85,1006.55-1.85,0,0-474.19,345.83-485.74,354.25-11.55,8.42-44.87,21.56-72.94,6.14-114.11-62.68-228.69-124.66-344.81-183.5-68.56-37.76-93.12-142.93-103.06-175.04"}}),r("path",{staticClass:"e-spinner__secondary",style:e.getNthPathStyle(5),attrs:{d:"m938.58,1468.29c-62.81,42.58-118.35,80.24-180.28,122.23-28.35-87.22-54.62-168.03-80.89-248.86,2.62-2.92,5.26-5.85,7.9-8.76,81.89,43.78,163.79,87.56,253.26,135.39"}}),r("path",{staticClass:"e-spinner__primary",style:e.getNthPathStyle(6),attrs:{d:"m413.07,652.86c101.35,307.77,314.99,956,314.99,956,0,0-476.23-343.04-487.83-351.39-11.58-8.36-34.44-35.93-28.52-67.4,24.07-127.96,47.3-256.13,67.09-384.8,14.54-76.9,106.84-132.96,134.28-152.42"}}),r("path",{staticClass:"e-spinner__secondary",style:e.getNthPathStyle(7),attrs:{d:"m197.48,1068.8c-62.36-47.73-115.99-88.79-176.78-135.33,75.54-54.91,146.18-106.24,216.83-157.57,3.73,2.24,7.45,4.47,11.19,6.71-16.36,91.3-32.7,182.61-51.25,286.19"}}),r("path",{staticClass:"e-spinner__primary",style:e.getNthPathStyle(8),attrs:{d:"m813.58,314.41C551.63,505.15,0,907.07,0,907.07c0,0,180.68-558.4,185.09-572.01,4.39-13.59,23.65-43.78,55.41-47.8,129.19-16.29,258.32-33.41,386.86-53.99,77.67-9.72,159.3,60.97,186.22,81.13"}}),r("path",{staticClass:"e-spinner__secondary",style:e.getNthPathStyle(9),attrs:{d:"m635.14,199.78c-91.99,12.38-183.97,24.77-288.07,38.76,25.77-73.18,48.3-137.14,73.8-209.53,76.56,55.41,147.27,106.58,217.97,157.75-1.23,4.34-2.46,8.68-3.69,13.02"}})])},C1=[],b1=Y(_1,y1,C1,!1,null,"29711f67",null,null);const Dr=b1.exports,x1=j.extend({props:{align:{type:String,default:void 0},alignContent:{type:String,default:void 0},justify:{type:String,default:void 0},justifyXs:{type:String,default:void 0},justifySm:{type:String,default:void 0},justifyMd:{type:String,default:void 0},justifyLg:{type:String,default:void 0},justifyXl:{type:String,default:void 0},noGutters:{type:Boolean,default:!1}},computed:{justifyClasses(){return{[`e-justify-${this.justify}`]:!!this.justify,[`xs:e-justify-${this.justifySm}`]:!!this.justifySm,[`sm:e-justify-${this.justifySm}`]:!!this.justifySm,[`md:e-justify-${this.justifyMd}`]:!!this.justifyMd,[`lg:e-justify-${this.justifyLg}`]:!!this.justifyLg,[`xl:e-justify-${this.justifyXl}`]:!!this.justifyXl}},rowClasses(){return{...this.align?{[`e-items-${this.align}`]:!0}:{},...this.alignContent?{[`e-content-${this.alignContent}`]:!0}:{},...this.noGutters?{"e-row--no-gutters":!0}:{},...this.justifyClasses}}}}),G8="";var w1=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("div",{staticClass:"e-row e-flex e-flex-wrap",class:e.rowClasses},[e._t("default")],2)},S1=[],T1=Y(x1,w1,S1,!1,null,null,null,null);const Pr=T1.exports,k1=j.extend({props:{alignSelf:{type:String,default:"auto"},cols:{type:[Boolean,String,Number],default:void 0},lg:{type:[Boolean,String,Number],default:void 0},md:{type:[Boolean,String,Number],default:void 0},offset:{type:[String,Number],default:void 0},offsetLg:{type:[String,Number],default:void 0},offsetMd:{type:[String,Number],default:void 0},offsetSm:{type:[String,Number],default:void 0},offsetXs:{type:[String,Number],default:void 0},offsetXl:{type:[String,Number],default:void 0},sm:{type:[Boolean,String,Number],default:void 0},xs:{type:[Boolean,String,Number],default:void 0},xl:{type:[Boolean,String,Number],default:void 0}},computed:{colClasses(){return{...this.alignSelf?{[`e-self-${this.alignSelf}`]:!0}:{},[this.autoClasses("xs:",this.xs)]:this.isSizePropAuto(this.xs),[this.autoClasses("sm:",this.sm)]:this.isSizePropAuto(this.sm),[this.autoClasses("md:",this.md)]:this.isSizePropAuto(this.md),[this.autoClasses("lg:",this.lg)]:this.isSizePropAuto(this.lg),[this.autoClasses("xl:e",this.xl)]:this.isSizePropAuto(this.xl),[this.autoClasses("",this.cols)]:this.isSizePropAuto(this.cols,!0),"xs:e-basis-full xs:!e-max-w-12/12":this.xs===12||this.xs==="12","sm:e-basis-full sm:!e-max-w-12/12":this.sm===12||this.sm==="12","md:e-basis-full md:!e-max-w-12/12":this.md===12||this.md==="12","lg:e-basis-full lg:!e-max-w-12/12":this.lg===12||this.lg==="12","xl:e-basis-full xl:!e-max-w-12/12":this.xl===12||this.xl==="12","e-basis-full e-max-w-12/12":this.cols===12||this.cols==="12",[`xs:e-basis-${this.xs}/12 xs:!e-max-w-${this.xs}/12`]:this.isSizePropertyNumeric(this.xs),[`sm:e-basis-${this.sm}/12 sm:!e-max-w-${this.sm}/12`]:this.isSizePropertyNumeric(this.sm),[`md:e-basis-${this.md}/12 md:!e-max-w-${this.md}/12`]:this.isSizePropertyNumeric(this.md),[`lg:e-basis-${this.lg}/12 lg:!e-max-w-${this.lg}/12`]:this.isSizePropertyNumeric(this.lg),[`xl:e-basis-${this.xl}/12 xl:!e-max-w-${this.xl}/12`]:this.isSizePropertyNumeric(this.xl),[`e-basis-${this.cols}/12 !e-max-w-${this.cols}/12`]:this.isSizePropertyNumeric(this.cols),[`xs:e-offset-${this.offsetXs}`]:this.offsetXs!==void 0,[`sm:e-offset-${this.offsetSm}`]:this.offsetSm!==void 0,[`md:e-offset-${this.offsetMd}`]:this.offsetMd!==void 0,[`lg:e-offset-${this.offsetLg}`]:this.offsetLg!==void 0,[`xl:e-offset-${this.offsetXl}`]:this.offsetXl!==void 0,[`e-offset-${this.offset}`]:this.offset!==void 0}}},methods:{autoClasses(t,e){return`${t}e-basis-${e==="auto"?"auto":"0"} ${t}e-grow${e==="auto"?"-0":""} ${t}e-w-${e==="auto"?"auto":"full"}`},isSizePropAuto(t,e=!1){return t==="auto"||t===0||t==="0"||e&&!t},isSizePropertyNumeric(t){const e=Number.parseInt(t);return t!=="auto"&&!isNaN(e)&&e>=1&&e<12}}}),q8="";var M1=function(){var e=this,r=e._self._c;return r("div",{staticClass:"e-col",class:e.colClasses},[e._t("default")],2)},E1=[],$1=Y(k1,M1,E1,!1,null,null,null,null);const Or=$1.exports;function zr(){const t=document;return!!(t.fullscreenElement||t.mozFullScreenElement||t.webkitFullscreenElement||t.msFullscreenElement)}function Br(t){if(zr())return new Promise(r=>r(null));const e=t;return e.requestFullscreen?e==null?void 0:e.requestFullscreen():e.mozRequestFullScreen?e==null?void 0:e.mozRequestFullScreen():e.webkitRequestFullScreen?e==null?void 0:e.webkitRequestFullScreen():e.msRequestFullscreen?e==null?void 0:e.msRequestFullscreen():new Promise(r=>r(null))}function Ir(){if(!zr())return new Promise(e=>e(null));const t=document;return t.exitFullscreen?t.exitFullscreen():t.mozCancelFullScreen?t.mozCancelFullScreen():t.webkitCancelFullScreen?t.webkitCancelFullScreen():t.msExitFullscreen?t.msExitFullscreen():new Promise(e=>e(null))}function fi(t,e){let r=null;return function(...n){const s=this;r!==null&&clearTimeout(r),r=setTimeout(()=>{r=null,t.apply(s,n)},e||1e3)}}function L1(t=1){const e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";let r="";for(let n=0;n<t;n++)r+=e.charAt(Math.floor(Math.random()*e.length));return r}function D1(t,e=0,r=0,n=t.naturalWidth,s=t.naturalHeight){const l=document.createElement("canvas"),i=l.getContext("2d");l.width=n,l.height=s,i==null||i.drawImage(t,e,r,n,s,0,0,n,s);const h=l.toDataURL();return l.remove(),h}function P1(t){return!!(t!=null&&t.length&&!isNaN(new Date(t).getTime()))}function pi(t,e=1){let r=0,n=0,s=0;return t.length===4?(r=parseInt(t[1]+t[1],16),n=parseInt(t[2]+t[2],16),s=parseInt(t[3]+t[3],16)):t.length===7&&(r=parseInt(t[1]+t[2],16),n=parseInt(t[3]+t[4],16),s=parseInt(t[5]+t[6],16)),`rgba(${r}, ${n}, ${s}, ${e})`}function mi(t,e=1){const r=t.match(/\d+/g);return r&&r.length===3?`rgba(${r[0]}, ${r[1]}, ${r[2]}, ${e})`:null}function gi(t){return t.startsWith("rgba")}function dt(t,e=1){return gi(t)?t:t.startsWith("#")?pi(t,e):t.startsWith("rgb")?mi(t,e):t}function vi(t){const e=JSON.stringify(t);return _i(e).toString()}function _i(t){var e=0,r,n;if(t.length===0)return e;for(r=0;r<t.length;r++)n=t.charCodeAt(r),e=(e<<5)-e+n,e|=0;return e}const O1=j.extend({name:"EZoomable",props:{ignorePointerEvents:{type:Boolean,default:!1},withOverlay:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1}},data(){return{scale:1,minScale:1,maxScale:20,top:0,left:0,isPanning:!1,panStart:{x:0,y:0},isPinching:!1,previousPinchDistance:0,pinchDistance:0,pointers:{},transform:"matrix(1, 0, 0, 1, 0, 0)"}},computed:{contentStyle(){return{transform:this.transform}},isZoomed(){return this.scale>1}},watch:{contentStyle:{handler(t){this.$emit("apply-zoomable-style",{imgStyle:t})},immediate:!0,deep:!0}},methods:{updateZoomScale(){this.scale>this.maxScale?this.scale=this.maxScale:this.scale<this.minScale&&(this.scale=this.minScale)},handleZoom(t){const e=this.$refs.container,r=this.$refs.content;if(t.preventDefault(),this.disabled)return;const n=e.getBoundingClientRect(),s=r.getBoundingClientRect();if(!n||!s)return;const l=t.clientX,i=t.clientY,h=Math.max(-1,Math.min(1,t.wheelDelta||-t.detail)),a=this.scale;this.scale+=h/10,this.updateZoomScale();const o=((l-s.left)/s.width).toFixed(2),u=((i-s.top)/s.height).toFixed(2);this.left=Math.round(l-n.left-Number(o)*(s.width*this.scale/a)),this.top=Math.round(i-n.top-Number(u)*(s.height*this.scale/a));const f=0,m=0-n.width*(this.scale-1),v=0-n.height*(this.scale-1),b=0;this.left<m?this.left=m:this.left>f&&(this.left=f),this.top<v?this.top=v:this.top>b&&(this.top=b),this.updateTransform()},handleMouseDown(t){!this.isZoomed||this.disabled||(this.isPanning=!0,this.panStart={x:t.clientX,y:t.clientY})},handleMouseUp(){this.disabled||(this.isPanning=!1)},handleMouseLeave(){this.disabled||(this.isPanning=!1)},handleMouseMove(t){if(!this.isPanning||!this.isZoomed||this.disabled)return;const e=t.clientX-this.panStart.x,r=t.clientY-this.panStart.y;this.left+=e,this.top+=r,this.applyBoundsCorrection(),this.panStart={x:t.clientX,y:t.clientY},this.updateTransform()},applyBoundsCorrection(){const t=this.$refs.container,e=this.$refs.content,r=t.getBoundingClientRect(),n=e.getBoundingClientRect();if(!r||!n)return;const[s,l,i,h]=[r.top-n.top,n.right-r.right,n.bottom-r.bottom,r.left-n.left].map(a=>a<0?a:0);this.left+=h-l,this.top+=s-i},updateTransform(){this.transform=`matrix(${this.scale}, 0, 0, ${this.scale}, ${this.left}, ${this.top})`},getPointersDistance(t,e){return Math.hypot(e.clientX-t.clientX,e.clientY-t.clientY)},getPointersMidPoint(t,e){return{x:t.clientX+(e.clientX-t.clientX)/2,y:t.clientY+(e.clientY-t.clientY)/2}},updatePointerEvent(t){this.pointers[t.pointerId]=t},clearPointerEvent(t){this.$delete(this.pointers,t.pointerId)},updatePinchDistance(){const t=Object.values(this.pointers);t.length===2&&(this.pinchDistance=this.getPointersDistance(t[0],t[1]))},handlePointerDown(t){this.ignorePointerEvents||this.disabled||(this.updatePointerEvent(t),this.isPinching=Object.values(this.pointers).length===2,this.isPinching?(this.isPanning=!1,this.updatePinchDistance()):this.handleMouseDown(t))},handlePointerMove(t){if(!(this.ignorePointerEvents||this.disabled))if(this.updatePointerEvent(t),this.isPinching){this.previousPinchDistance=this.pinchDistance,this.updatePinchDistance();const e=this.pinchDistance/this.previousPinchDistance;this.scale*=e,this.updateZoomScale();const r=Object.values(this.pointers),n=this.getPointersMidPoint(r[0],r[1]);this.left=n.x-(n.x-this.left)*e,this.top=n.y-(n.y-this.top)*e,this.applyBoundsCorrection(),this.updateTransform()}else this.handleMouseMove(t)},handlePointerUp(t){this.ignorePointerEvents||this.disabled||(this.clearPointerEvent(t),this.previousPinchDistance=0,this.pinchDistance=0,this.isPanning=!1,this.isPinching=!1)}}}),Z8="";var z1=function(){var e=this,r=e._self._c;return r("div",{ref:"container",staticClass:"e-zoomable e-w-full e-h-full"},[r("div",{staticClass:"e-w-full e-h-full",class:{"e-cursor-grab":e.isZoomed&&!e.disabled,"e-cursor-grabbing":e.isPanning&&!e.disabled},on:{mousewheel:e.handleZoom,mousedown:e.handleMouseDown,mouseup:e.handleMouseUp,mouseleave:e.handleMouseLeave,mousemove:e.handleMouseMove,pointerdown:e.handlePointerDown,pointermove:e.handlePointerMove,pointerup:e.handlePointerUp,pointercancel:e.handlePointerUp,pointerout:e.handlePointerUp,pointerleave:e.handlePointerUp}},[r("div",{ref:"content",staticClass:"e-zoomable__content e-w-full e-h-full e-transform-0 e-touch-none e-relative",style:e.contentStyle},[e._t("default")],2),e.withOverlay&&!e.disabled?r("div",{staticClass:"e-zoomable__overlay e-absolute e-w-full e-h-full e-bottom-0 e-left-0 e-overflow-hidden"},[e._t("overlay")],2):e._e()])])},B1=[],I1=Y(O1,z1,B1,!1,null,"270d2bfd",null,null);const Ar=I1.exports,Fr=new Intl.NumberFormat(void 0,{minimumIntegerDigits:2}),yi=["play","pause","ended","loadeddata","waiting","playing","timeupdate","canplay","canplaythrough","statechanged","error"],Rr=t=>{const e=Math.floor(t%60),r=Math.floor(t/60)%60,n=Math.floor(t/3600);return n===0?`${r}:${Fr.format(e)}`:`${n}:${Fr.format(r)}:${Fr.format(e)}`},A1=j.extend({name:"EVideoPlayer",components:{ESpinner:Dr,EZoomable:Ar},props:{targetTimestamp:{type:[String,Date],default:void 0},sources:{type:[Array,String],required:!0},videoListeners:{type:Object,default:()=>({})},videoOptions:{type:Object,default:()=>({})},isHls:{type:Boolean,default:!1},streamingToken:{type:String,default:""},pauseOnClick:{type:Boolean,default:!0},isHlsLoading:{type:Boolean,default:!1},isPlaying:{type:Boolean,default:!1},isZoomable:{type:Boolean,default:!1},zoomableIgnorePointerEvents:{type:Boolean,default:!1},timezone:{type:String,default:"UTC"},playPauseAnimation:{type:Boolean,default:!0},disablePlayPauseAnimation:{type:Boolean,default:!1},isWebRtc:{type:Boolean,default:!1},withColoredLoader:{type:Boolean,default:!1},loaderSize:{type:String,default:"7xl"},withOverlayOnBackground:{type:Boolean,default:!1},fallbackSrc:{type:String,default:""},hlsOptions:{type:Object,default:()=>({})}},data(){return{playing:!1,percentagePlayed:0,videoLength:"0:00",duration:0,videoDuration:0,currentTime:"0:00",realtime:0,isScrubbing:!1,wasPaused:!1,isFullscreen:!1,isFinished:!1,isLoading:!0,isError:!1,player:new it,playbackRetries:0,preloadedSeconds:0,preloadedInterval:{}}},computed:{posterUrl(){var t;return(t=this.videoOptions)==null?void 0:t.poster},sourceItems(){return Array.isArray(this.sources)?this.sources:[{src:this.sources}]},hasStartedOrFinished(){return(this.isFinished||this.realtime<=.1)&&!this.isLoading&&!this.isLooped()},withControls(){const t=this.videoOptions;return(t==null?void 0:t.controls)===!1?"hide":""}},watch:{isPlaying:{immediate:!0,async handler(t){this.playing=t,t?await this.play():this.pause(),this.isHls&&(t?this.$emit("hls-play"):this.$emit("hls-pause"))}},preloadedSeconds(t){this.preloadedInterval={start:Se(this.targetTimestamp).format(),end:Se(this.targetTimestamp).add(t,"seconds").format()},this.$emit("preloaded-interval",this.preloadedInterval)},targetTimestamp:{immediate:!0,handler(t){var l,i;if(!this.isHls)return;const e=this.$refs.player,r=(l=this.preloadedInterval)==null?void 0:l.start,n=(i=this.preloadedInterval)==null?void 0:i.end;if(!(r&&n))return;const s=Se(t).isBetween(Se(r),Se(n),void 0,"[]");e.currentTime=0,s||this.initHls()}}},mounted(){this.isHls&&this.initHls(),this.bindEvents(),this.initializePlayer(),this.initializeFullscreenListeners()},beforeDestroy(){this.unbindEvents(),this.destroyPlayer(),this.removeFullscreenListeners()},methods:{initHls(t=""){var n,s,l,i,h;const e=this.$refs.player,r=this.sources[0];(n=this.player)!=null&&n.stopLoad&&this.player.stopLoad(),it.isSupported()&&(this.isLoading=!0,this.player=new it({startPosition:0,xhrSetup:a=>{this.streamingToken&&a.setRequestHeader("Authorization",`Bearer ${this.streamingToken}`)},...this.hlsOptions}),(s=this.player)==null||s.loadSource(t||r.src),(l=this.player)==null||l.attachMedia(e),(i=this.player)==null||i.on(it.Events.MANIFEST_PARSED,(a,o)=>{var m;const u=(m=o.levels[o.firstLevel])==null?void 0:m.details,f=u==null?void 0:u.startTimeOffset;e.currentTime=f||0,this.playing&&e.play()}),(h=this.player)==null||h.on(it.Events.ERROR,this.handleHlsError))},onContainerClick(){this.pauseOnClick&&this.togglePlay()},handle404Error(){this.isWebRtc||(this.isError=!0,this.isLoading=!1,this.playing=!1)},handleHlsError(t,e){var o;if(!e.fatal)return;this.$emit("hls-error",e);const r=e.type===it.ErrorTypes.NETWORK_ERROR,n=e.type===it.ErrorTypes.MEDIA_ERROR,s=r&&((o=e.networkDetails)==null?void 0:o.status)===404,l=this.$refs.player,i=()=>this.fallbackSrc&&(l==null?void 0:l.currentSrc)!==this.fallbackSrc,h=()=>this.initHls(this.fallbackSrc),a=()=>{if(i()){h();return}this.player.destroy(),this.videoListeners.error?this.videoListeners.error():this.handle404Error()};if(s){a();return}if(r){console.error("A network error occurred:",e),i()?h():this.player.startLoad();return}n&&(console.error("A media error occurred:",e),i()?h():this.player.recoverMediaError()),a()},bindEvents(){const t=this.$refs.player;yi.forEach(e=>{t.addEventListener(e,()=>this.bindVideoEvent(e),!0)})},onProgress(){const t=this.$refs.player;if(t&&t.buffered.length>0)try{this.preloadedSeconds=t.buffered.end(t.buffered.length-1)}catch(e){console.error("Error while fetching buffered end time:",e)}else console.log("No video data has been buffered yet.")},unbindEvents(){const t=this.$refs.player;yi.forEach(e=>{t.removeEventListener(e,()=>this.bindVideoEvent(e),!0)})},bindVideoEvent(t){const e=this.$refs.player;if(!e)return;const r=this.$refs.timelineContainer;t==="loadeddata"&&(this.videoLength=Rr(e.duration)),r&&(t==="timeupdate"&&(this.percentagePlayed=(e==null?void 0:e.currentTime)/(e==null?void 0:e.duration)*100,r==null||r.style.setProperty("--progress-position",this.percentagePlayed.toString())),this.$emit(t,{event,player:e}))},initializePlayer(){const t=this.$refs.player;t&&(t.autoplay&&this.setPlaying(!0),document.addEventListener("mouseup",this.handleScrubbingOnMouseEnd),document.addEventListener("keydown",this.handleKeyDown))},destroyPlayer(){this.player&&(this.player.stopLoad(),this.player.destroy()),window.removeEventListener("keydown",this.handleKeyDown),document.removeEventListener("mouseup",this.handleScrubbingOnMouseEnd)},removeFullscreenListeners(){const t=document;t.fullscreenEnabled||t.webkitFullscreenEnabled||t.mozFullScreenEnabled||t.msFullscreenEnabled?(t.removeEventListener("fullscreenchange",this.handleFullscreenChange),t.removeEventListener("webkitfullscreenchange",this.handleFullscreenChange),t.removeEventListener("mozfullscreenchange",this.handleFullscreenChange),t.removeEventListener("MSFullscreenChange",this.handleFullscreenChange)):console.log("Fullscreen API is not supported in this browser.")},initializeFullscreenListeners(){const t=document;t.fullscreenEnabled||t.webkitFullscreenEnabled||t.mozFullScreenEnabled||t.msFullscreenEnabled?(t.addEventListener("fullscreenchange",this.handleFullscreenChange),t.addEventListener("webkitfullscreenchange",this.handleFullscreenChange),t.addEventListener("mozfullscreenchange",this.handleFullscreenChange),t.addEventListener("MSFullscreenChange",this.handleFullscreenChange)):console.log("Fullscreen API is not supported in this browser.")},handleFullscreenChange(){const t=document;this.isFullscreen=!!t.fullscreenElement||!!t.mozFullScreenElement||!!t.webkitFullscreenElement||!!t.msFullscreenElement||window.innerWidth==screen.width&&window.innerHeight==screen.height},isLooped(){return this.$refs.player.loop},handleScrubbingOnMouseEnd(t){this.isScrubbing&&this.toggleScrubbing(t)},handleEnded(){this.isFinished=!0,this.playing=!1},handleLoading(){this.isLoading=!1},async play(){const t=this.$refs.player;if(t)try{await t.play(),this.setPlaying(!0)}catch(e){console.error(e),this.playbackRetries+=1,this.isHls&&this.playbackRetries<3&&this.initHls()}},pause(){const t=this.$refs.player;t&&(t.pause(),this.setPlaying(!1))},async togglePlay(){this.playing?this.pause():await this.play()},setPlaying(t){this.playing=t},seekToPercentage(t){const e=this.$refs.player;if(!e)return;const r=t/100*e.duration;e.currentTime=r},convertTimeToDuration(t){return[parseInt(t/60%60,10),parseInt(t%60,10)].join(":").replace(/\b(\d)\b/g,"0$1")},closeFullscreenMode(){document.fullscreenElement&&(Ir().then(()=>{this.isFullscreen=!1}),this.isFullscreen=!1)},openFullscreenMode(){const t=this.$refs.videoContainer;t&&(Br(t).then(()=>{this.isFullscreen=!0}),this.isFullscreen=!0)},toggleFullscreenMode(){this.isFullscreen?this.closeFullscreenMode():this.openFullscreenMode()},getDuration(){const t=this.$refs.player;this.videoLength=Rr(t.duration),this.videoDuration=t.duration},handleTimeUpdate(){const t=this.$refs.player,e=this.$refs.timelineContainer;if(!t||!e)return;this.currentTime=Rr(t.currentTime),this.realtime=t.currentTime;const r=Number(this.realtime)/Number(this.videoDuration);e.style.setProperty("--progress-position",r.toString())},handleTimelineUpdate(t){const e=this.$refs.player;if(!document.body.contains(e))return;const r=this.$refs.timelineContainer,n=r.getBoundingClientRect(),s=Math.min(Math.max(0,t.x-n.x),n.width)/n.width;r.style.setProperty("--preview-position",s.toString()),this.isScrubbing&&(t.preventDefault(),r.style.setProperty("--progress-position",s.toString()))},skip(t=5){const e=this.$refs.player;e.currentTime+=t},async toggleScrubbing(t){const e=this.$refs.timelineContainer,r=this.$refs.videoContainer,n=this.$refs.player;if(!n)return;const s=e.getBoundingClientRect(),l=Math.min(Math.max(0,t.x-s.x),s.width)/s.width;if(this.isScrubbing=(t.buttons&1)===1,r.classList.toggle("scrubbing",this.isScrubbing),this.isScrubbing){this.wasPaused=n.paused,await n.pause(),this.handleTimelineUpdate(t);return}if(this.realtime=l*this.videoDuration,n.currentTime=l*this.videoDuration,this.wasPaused)return;const i=n.play();i!==void 0&&i.then(()=>this.handleTimelineUpdate(t)).catch(console.error)},handleKeyDown(t){var r;const e=(r=document.activeElement)==null?void 0:r.tagName.toLowerCase();if(e!=="input")switch(t.key.toLowerCase()){case" ":if(e==="button")return;this.togglePlay();break;case"k":this.togglePlay();break;case"escape":t.preventDefault(),this.closeFullscreenMode(),this.isFullscreen=!1;break;case"f":this.openFullscreenMode(),this.isFullscreen=!0;break}}}}),U8="";var F1=function(){var e=this,r=e._self._c;return r("div",{ref:"videoContainer",staticClass:"video-container paused"},[r("EZoomable",{ref:"zoomable",attrs:{"ignore-pointer-events":e.zoomableIgnorePointerEvents,disabled:!e.isZoomable,"with-overlay":e.withOverlayOnBackground},on:{"apply-zoomable-style":function(n){return e.$emit("apply-zoomable-style",n)}},scopedSlots:e._u([{key:"overlay",fn:function(){return[e._t("zoomable-overlay")]},proxy:!0}],null,!0)},[e._t("background",function(){return[r("div",{staticClass:"e-relative e-overflow-hidden",style:{height:e.$attrs.height,width:e.$attrs.width}},[e.posterUrl?r("img",{staticClass:"e-absolute e-block e-w-full e-scale-150 e-z-[-1] e-inset-0 e-m-auto e-blur-video-poster",style:{height:e.$attrs.height,width:e.$attrs.width},attrs:{src:e.posterUrl,alt:"background-image"},on:{error:function(n){return e.$emit("poster-error",n)}}}):e._e()])]}),r("video",e._g(e._b({ref:"player",class:{"e-w-full e-h-full e-z-[5] e-min-h-[400px]":!0,"e-absolute e-inset-0":e.isZoomable,"e-relative":!e.isZoomable},attrs:{controls:!1,preload:"auto"},on:{ended:e.handleEnded,click:e.onContainerClick,loadedmetadata:e.getDuration,timeupdate:e.handleTimeUpdate,loadeddata:e.handleLoading}},"video",e.videoOptions,!1),e.videoListeners),[e.isWebRtc?e._e():e._l(e.sourceItems,function(n){return r("source",e._g({key:n.src,attrs:{src:n.src,type:n.type},on:{error:e.handle404Error}},e.videoListeners))})],2)],2),e.isLoading?r("div",{staticClass:"spinner-container"},[r("ESpinner",{attrs:{color:e.withColoredLoader,size:e.loaderSize,opacity:"0.6",dark:!0}})],1):e._e(),e._t("default"),e.isError?r("div",{staticClass:"spinner-container e-gap-3"},[r("i",{staticClass:"fa-solid fa-video-slash fa-2xl e-align-middle"}),r("span",[e._v("This video file cannot be played.")])]):e._e(),e._t("controls",function(){return[r("div",{class:["video-controls-container",e.withControls]},[r("div",{staticClass:"controls"},[r("button",{ref:"playPauseBtn",staticClass:"play-pause-btn fa-lg fa-solid fas",class:{"fa-play":!e.playing,"fa-pause":e.playing},attrs:{title:e.playing?"pause":"play"},on:{click:e.togglePlay}}),r("div",{staticClass:"duration-container"},[r("div",{ref:"currentTimeElem",staticClass:"current-time"},[e._v(" "+e._s(e.currentTime)+" ")]),e._v(" / "),r("div",{ref:"totalTimeElem",staticClass:"total-time"},[e._v(e._s(e.videoLength))])]),r("div",{ref:"timelineContainer",staticClass:"timeline-container",on:{mousemove:e.handleTimelineUpdate,mousedown:e.toggleScrubbing}},[e._m(0)]),r("button",{ref:"fullScreenBtn",staticClass:"full-screen-btn fa-solid",class:{"fa-expand":!e.isFullscreen,"fa-compress":e.isFullscreen},on:{click:e.toggleFullscreenMode}})])])]},{play:e.play,pause:e.pause,isPlaying:e.playing,playerInstance:e.player,toggleFullscreen:e.toggleFullscreenMode,currentTime:e.currentTime,videoLength:e.videoLength,isFullscreen:e.isFullscreen})],2)},R1=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"timeline"},[e("div",{staticClass:"thumb-indicator"})])}],H1=Y(A1,F1,R1,!1,null,"3ebc2ce7",null,null);const Ci=H1.exports,Qe={bind(t,e){const{value:r}=e;if(typeof r!="function"){console.error("Invalid callback function provided to v-resize-observer");return}const n=new ResizeObserver(s=>{s[0]&&r(s[0])});n.observe(t),t.__resizeObserver__=n},unbind(t){t.__resizeObserver__&&(t.__resizeObserver__.disconnect(),delete t.__resizeObserver__)}},Hr={bind(t,e){const r=t;r.handleClick=function(n){if(!(r===n.target||r.contains(n.target))){const s=e.value;typeof s=="function"&&s(n)}},setTimeout(()=>{document.addEventListener("click",r.handleClick)})},unbind(t){const e=t;e.handleClick&&(document.removeEventListener("click",e.handleClick),delete e.handleClick)}},bi=[{name:"resize-observer",definition:Qe},{name:"click-outside",definition:Hr}],at={transparencyGradient:"transparency-gradient",transparencyGradientLight:"transparency-gradient-light",loadingGradient:"loading-gradient",stripedPattern:"stripedPattern",clipPath:"clip-path"},H={xAxis:"e-x-axis",xAxisDark:"e-x-axis--dark",xAxisOverview:"e-x-axis-overview",xAxisDetailed:"e-x-axis-detailed",xAxisBackground:"e-x-axis-background",eventGroup:"event-group",eventGroupBg:"event-group-bg",eventRect:"event-rect",eventBarContainer:"event-bar-container",eventBarContainerHovered:"event-bar-container--hovered",eventBarContainerSelected:"event-bar-container--selected",eventBar:"event-bar",eventBarHoverZone:"event-bar-hover-zone",eventBarCap:"event-bar-cap",eventRectText:"event-rect-text",eventRectHovered:"event-rect--hovered",eventRectSelected:"event-rect--selected",labelGroup:"label-g",labelBg:"label-bg",labelBgFill:"label-bg-fill",labelText:"label-text",loadingIndicator:"loading-indicator",selectedTimestampCursor:"selected-timestamp-cursor",marker:"marker",markerLabel:"marker-label",markerLine:"marker-line",markerDragged:"marker--dragged",milestone:"e-tl-milestone",milestoneBullet:"e-tl-milestone--bullet",milestoneDot:"e-tl-milestone--dot",milestoneContent:"e-tl-milestone-content",milestoneLine:"e-tl-milestone-line",milestonesContainer:"e-tl-milestones",milestoneHovered:"e-tl-milestone--hovered",milestoneSelected:"e-tl-milestone--selected",milestoneLabel:"e-tl-milestone-label",milestoneDotContainer:"e-tl-milestone-dot-container",milestoneDotLine:"e-tl-milestone-dot-line",milestoneDotDot:"e-tl-milestone-dot-dot",milestoneDotHovered:"e-tl-milestone-dot--hovered",barChartGroup:"bar-chart-group",lineGraphGroup:"line-graph-group",lineGraphGroupLabel:"line-graph-group-label",lineGraphPath:"line-graph-path",lineGraphHoverZone:"line-graph-hover-zone",lineGraphDot:"line-graph-dot",curtain:"curtain",forbiddenInterval:"forbidden-interval"},N1=j.extend({name:"ETimelineMilestone",directives:{resizeObserver:Qe},props:{milestone:{type:Object,required:!0},size:{type:Number,default:18},borderColor:{type:String,default:"#eee"},backgroundColor:{type:String,default:"#aaa"},borderWidth:{type:Number,default:2},transitionDuration:{type:Number,default:500},dot:{type:Boolean,default:!1},dotSize:{type:Number,default:8},lineWidth:{type:Number,default:2},lineHeight:{type:Number,default:28}},data(){return{classNames:H,timeouts:[],isInitialRender:!0,isMouseOver:!1}},computed:{transitionStyles(){return this.isInitialRender?{}:{transition:`transform ${this.transitionDuration}ms, width ${this.transitionDuration}ms, height ${this.transitionDuration}ms, padding ${this.transitionDuration}ms, border-radius ${this.transitionDuration}ms`}},sizeStyles(){return this.dot?{}:{width:`${this.size}px`,height:`${this.size}px`}},positionStyles(){return this.dot&&this.isMouseOver?{transform:`translateY(calc(-100% - ${this.lineHeight}px))`}:{}},styles(){return{...this.sizeStyles,...this.positionStyles,backgroundColor:this.backgroundColor,borderColor:this.borderColor,borderWidth:`${this.borderWidth}px`,borderStyle:"solid",...this.transitionStyles}},contentStyles(){return this.transitionStyles},computedTransitionDuration(){return this.isInitialRender?0:this.transitionDuration},labelStyles(){return{transition:`opacity ${this.computedTransitionDuration}ms`}},dotContainerStyles(){return{top:this.isMouseOver?`calc(100% - ${this.borderWidth}px)`:`calc(50% + ${this.dotSize/2}px)`,height:`calc(${this.lineHeight}px + ${this.dotSize}px)`,left:`calc(50% - ${this.lineWidth}px / 2)`,transition:`${this.computedTransitionDuration}ms`}},lineStyles(){return{bottom:`${this.dotSize/2}px`,left:`calc(50% - ${this.lineWidth}px / 2)`,width:`${this.lineWidth}px`,height:this.isMouseOver?`${this.lineHeight}px`:"0",backgroundColor:this.borderColor,transition:`${this.computedTransitionDuration}ms`}},dotStyles(){return{top:`${this.lineHeight}px`,left:`calc(50% - ${this.dotSize}px / 2)`,width:`${this.dotSize}px`,height:`${this.dotSize}px`,backgroundColor:this.borderColor,transition:`${this.computedTransitionDuration}ms`}}},mounted(){this.$nextTick(()=>{this.dot||(this.onMilestoneMouseOver(),this.onMilestoneMouseLeave()),this.isInitialRender=!1})},methods:{onMilestoneMouseOver(t){if(this.isMouseOver=!0,this.dot){this.$emit("hovered-milestone",this.milestone);return}const e=(t==null?void 0:t.target)||this.$refs.container;if(!e)return;const r=e.children[0];if(!r)return;const n=r.children[0];if(!n)return;const s=n.getBoundingClientRect(),l=e.dataset.timeoutId;l&&(clearTimeout(Number(l)),e.dataset.timeoutId=""),e.dataset.initialWidth||(e.dataset.initialWidth=e.style.width),e.dataset.initialHeight||(e.dataset.initialHeight=e.style.height),e.dataset.initialContentWidth||(e.dataset.initialContentWidth=String(s.width)),e.dataset.initialContentHeight||(e.dataset.initialContentHeight=String(s.height)),e.dataset.transitionStart=String(Date.now()),e.style.width=e.dataset.initialContentWidth+"px",e.style.height=e.dataset.initialContentHeight+"px",e.style.borderRadius="0.5em",e.classList.add(H.milestoneHovered),r.style.opacity="1",r.style.width=e.dataset.initialContentWidth+"px",r.style.height=e.dataset.initialContentHeight+"px"},onMilestoneMouseMove(){this.timeouts.forEach(t=>clearTimeout(t)),this.isMouseOver=!0},onMilestoneMouseLeave(t){if(this.dot){this.$emit("hovered-milestone",null),this.timeouts.push(setTimeout(()=>{this.isMouseOver=!1},this.transitionDuration+100));return}const e=(t==null?void 0:t.target)||this.$refs.container;if(!e)return;e.style.width=e.dataset.initialWidth||"",e.style.height=e.dataset.initialHeight||"",e.style.borderRadius="10em";const r=e.children[0];if(!r)return;r.style.width="0",r.style.height="0",r.style.opacity="0";const n=Date.now()-Number(e.dataset.transitionStart),s=n>this.transitionDuration?this.transitionDuration:n,l=setTimeout(()=>{e.classList.remove(H.milestoneHovered),e.dataset.timeoutId=""},s);e.dataset.timeoutId=String(l),this.timeouts.push(l)},onMilestoneClick(t,e){this.$emit("milestone-click",e)}}}),Y8="";var W1=function(){var e=this,r=e._self._c;return r("div",{ref:"container",class:{[e.classNames.milestone]:!0,[e.classNames.milestoneBullet]:!e.dot,[e.classNames.milestoneHovered]:e.isMouseOver&&!e.dot,[e.classNames.milestoneDot]:e.dot,[e.classNames.milestoneDotHovered]:e.isMouseOver&&e.dot},style:e.styles,attrs:{tabindex:"0"},on:{mouseover:n=>e.onMilestoneMouseOver(n),mousemove:e.onMilestoneMouseMove,mouseleave:n=>e.onMilestoneMouseLeave(n),click:n=>e.onMilestoneClick(n,e.milestone)}},[r("div",{class:e.classNames.milestoneContent,style:e.contentStyles},[e._t("content",function(){var n;return[r("span",[e._v(" "+e._s((n=e.milestone)==null?void 0:n.text)+" ")])]})],2),e.dot?r("div",{class:e.classNames.milestoneDotContainer,style:e.dotContainerStyles},[r("div",{class:e.classNames.milestoneDotLine,style:e.lineStyles}),r("div",{class:e.classNames.milestoneDotDot,style:e.dotStyles})]):r("div",{class:e.classNames.milestoneLabel,style:e.labelStyles},[e._t("label")],2)])},j1=[],G1=Y(N1,W1,j1,!1,null,null,null,null);const q1=G1.exports;function Nr({timestamp:t,timezone:e}){const r=xi(t,e);return Se(t).add(r,"minutes").toDate()}function Wr({date:t,timezone:e}){const r=new Date(t).getTimezoneOffset(),n=xi(t,e);return Se(t).add(r,"minutes").utcOffset(n,!0).format()}function xi(t,e){return e?Se.tz(t,e).utcOffset():Z1(t)}function Z1(t){return Se.parseZone(t).utcOffset()}const U1=j.extend({name:"ETimelineMarker",props:{marker:{type:Object,required:!0},height:{type:Number,required:!0},hidden:{type:[Boolean,void 0],default:void 0},position:{type:[Number,void 0],default:void 0}},methods:{getMarkerClass(t){return{"marker--hidden":this.hidden,"marker--draggable":t==null?void 0:t.isDraggable,...t.className?{[t==null?void 0:t.className]:!0}:{}}},getMarkerContainerStyle(){return{left:`${this.position}px`}},getMarkerLabelStyle(t){return{background:t.color,color:t.textColor||""}},getMarkerLineStyle(t){return{background:t.color,height:`${this.height+12}px`}}}}),X8="";var Y1=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("div",{staticClass:"marker e-absolute e-h-full e-top-0 e-z-10",class:e.getMarkerClass(e.marker),style:e.getMarkerContainerStyle(),on:{click:function(n){return e.$emit("marker-clicked",e.marker)}}},[r("div",{staticClass:"marker-label e-absolute"},[r("div",{staticClass:"marker-label-text",style:e.getMarkerLabelStyle(e.marker)},[e._t(`marker.${e.marker.id}`,function(){return[e._v(" "+e._s(e.marker.label)+" ")]},{marker:e.marker})],2)]),r("div",{staticClass:"marker-line e-absolute e-pointer-events-none",style:e.getMarkerLineStyle(e.marker)})])},X1=[],Q1=Y(U1,Y1,X1,!1,null,"614947ed",null,null);const V1=Q1.exports,K1=j.extend({name:"ETimelineMarkers",components:{ETimelineMarker:V1},props:{markers:{type:Array,default:()=>[]},timeScale:{type:Function,required:!0},timeZone:{type:[String,void 0],default:void 0},height:{type:Number,required:!0},svgLeft:{type:Number,default:void 0},stickyMarkers:{type:Boolean,default:!1}},data(){return{markersPositions:{},markersDragBehavior:null,initialMarkerDragMouseOffset:0}},watch:{timeScale:{handler(){this.updateMarkers()},deep:!0},markers(){this.updateMarkers()}},methods:{initMarkersDragBehavior(){this.removeMarkersDragBehavior();const t=this;this.markersDragBehavior=P.drag().on("start",function(e,r){t.handleMarkerDrag({marker:r,markerElement:P.select(this),dragEvent:e})}).on("drag",function(e,r){t.handleMarkerDrag({marker:r,markerElement:P.select(this),dragEvent:e})}).on("end",function(e,r){t.handleMarkerDrag({marker:r,markerElement:P.select(this),dragEvent:e})}),P.selectAll(`.${H.marker}`).data(this.markers).call(this.markersDragBehavior)},removeMarkersDragBehavior(){this.markersDragBehavior&&(this.markersDragBehavior.on("start",null).on("drag",null).on("end",null),P.selectAll(`.${H.marker}`).call(this.markersDragBehavior))},handleMarkerDrag({marker:t,markerElement:e,dragEvent:r}){var h;if(!t.isDraggable)return;(h=r.sourceEvent)==null||h.preventDefault(),r.type==="start"&&(this.initialMarkerDragMouseOffset=r.x-e.node().querySelector(`.${H.markerLine}`).getBoundingClientRect().left,e.classed(H.markerDragged,!0));const n=r.x-this.initialMarkerDragMouseOffset,s=this.timeScale.invert(n-this.svgLeft);let l=this.timeScale(s);const i=this.isTimestampAllowedForMarker(s,t);if(r.type==="drag"&&i&&e.attr("style",`left: ${l}px`),r.type==="end"){const a=t.id||t.timestamp;l=i?l:this.timeScale(this.tzStringToDate(t.timestamp)),this.markersPositions={...this.markersPositions,[a]:{...this.markersPositions[a],position:l}},e.classed(H.markerDragged,!1)}r.type!=="start"&&this.$emit(`marker-drag-${r.type}`,{marker:t,newTimestamp:i?this.dateToTzString(s):t.timestamp})},updateMarkers(){if(!this.markers.length)return;const t=12,e=200;this.markers.forEach((r,n,s)=>{const l=typeof r.timestamp=="string"?this.tzStringToDate(r.timestamp):r.timestamp,i=this.timeScale(l);let h=!1;const a=this.stickyMarkers?Math.max(i,n*t):i;if(n<s.length-1){const o=s[n+1],u=typeof o.timestamp=="string"?this.tzStringToDate(o.timestamp):o.timestamp,f=this.timeScale(u);h=(this.stickyMarkers?Math.max(f,(n+1)*t):i)-a<e+t}this.markersPositions={...this.markersPositions,[r.id]:{isHidden:h,position:a}}}),this.initMarkersDragBehavior()},isTimestampAllowedForMarker(t,e){return(e.minDate?t>=this.tzStringToDate(e.minDate):!0)&&(e.maxDate?t<=this.tzStringToDate(e.maxDate):!0)},tzStringToDate(t){return Nr({timestamp:t,timezone:this.timeZone})},dateToTzString(t){return Wr({date:t,timezone:this.timeZone})}}});var J1=function(){var e=this,r=e._self._c;return r("div",{staticClass:"e-tl-markers"},e._l(e.markers,function(n){var s,l;return r("ETimelineMarker",{key:n.id,attrs:{marker:n,height:e.height,position:(s=e.markersPositions[n.id])==null?void 0:s.position,hidden:(l=e.markersPositions[n.id])==null?void 0:l.isHidden,"data-id":n.id},on:{"marker-clicked":function(i){return e.$emit("marker-clicked",i)}},scopedSlots:e._u([{key:`marker.${n.id}`,fn:function(){return[e._t(`marker.${n.id}`,function(){return[e._v(" "+e._s(n.label)+" ")]},{marker:n})]},proxy:!0}],null,!0)})}),1)},e0=[],t0=Y(K1,J1,e0,!1,null,null,null,null);const r0=t0.exports,n0=j.extend({name:"EZoomBehavior",props:{width:{type:[Number,void 0],default:void 0},domain:{type:Array,required:!0},focusedDomain:{type:[Array,void 0],default:void 0},timezone:{type:String,default:"UTC"},disabled:{type:Boolean,default:!1},scalingDuration:{type:Number,default:400},translationDuration:{type:Number,default:400},focusedTimestamp:{type:[String,Date],default:""}},data(){return{timeScale:null,initialTimeScale:null,zoomBehavior:null,selection:null,isTransitioning:!1,container:null,isLocked:!1,transformDiff:{translation:0,scale:1},lastTransform:{x:0,y:0,k:1},isLeftBoundaryReached:!1,isRightBoundaryReached:!1,resetBoundariesTimeout:0}},computed:{minDate(){const t=this.domain[0];return this.toD3Date(t)},maxDate(){const t=this.domain[1];return this.toD3Date(t)},focusedStartDate(){const e=(this.focusedDomain||this.domain)[0];return this.toD3Date(e)},focusedEndDate(){const e=(this.focusedDomain||this.domain)[1];return this.toD3Date(e)}},watch:{timeScale(){this.emitTimeScaleChange(),this.emitFocusedDomainChange()},focusedDomain(t){this.zoomToFocusedDomain(t)},focusedTimestamp(t){t&&this.panToTimestamp(t)},transformDiff(){this.$emit("transform-changed",this.transformDiff)}},mounted(){this.initRefs(),this.initTimeScale(),this.initZoomBehavior(),this.emitTimeScaleChange()},methods:{initRefs(){this.container=this.$refs.container},initTimeScale(){this.timeScale=P.scaleTime().domain([this.focusedStartDate,this.focusedEndDate]).range([0,this.getWidth()]),this.initialTimeScale=this.timeScale.copy()},calculateZoomExtents(){const t=[this.focusedStartDate,this.focusedEndDate],e=this.getWidth(),r=this.maxDate.getTime()-this.minDate.getTime(),l=[(this.focusedEndDate.getTime()-this.focusedStartDate.getTime())/r,1/0],i=this.initialTimeScale.copy();i.domain(t);const h=i(this.minDate),a=-(e-i(this.maxDate));return{scaleExtent:l,translateExtent:[[h||-1/0,0],[a||1/0,0]]}},initZoomBehavior(){const{scaleExtent:t,translateExtent:e}=this.calculateZoomExtents();this.zoomBehavior=P.zoom().scaleExtent(t).translateExtent(e).on("zoom",this.handleZoom),this.selection=P.select(this.container),this.selection.call(this.zoomBehavior)},handleZoom(t){const r=t.transform.rescaleX(this.initialTimeScale.copy()).domain(),n=r[0]<=this.minDate,s=r[1]>=this.maxDate;if(n||s){const i=P.zoomIdentity.translate(this.lastTransform.x,this.lastTransform.y).scale(this.lastTransform.k);this.selection.call(this.zoomBehavior.transform,i),this.updateBoundaries(n,s);return}const l=t.transform.k/this.lastTransform.k;this.transformDiff={scale:l,translation:t.transform.x-this.lastTransform.x},this.lastTransform={...t.transform},this.timeScale=t.transform.rescaleX(this.timeScale).domain(r)},toD3Date(t){return Nr({timestamp:t,timezone:this.timezone})},toDateString(t){return Wr({date:t,timezone:this.timezone})},getWidth(){var t,e;return this.width?this.width:(e=(t=this.container)==null?void 0:t.getBoundingClientRect())==null?void 0:e.width},zoomToFocusedDomain(t){const e=this.toD3Date(t[0]),r=this.toD3Date(t[1]),n=this.timeScale.domain();if(e.getTime()===n[0].getTime()&&r.getTime()===n[1].getTime())return;const s=this.initialTimeScale.domain().map(m=>m.getTime()),l=s[1]-s[0],i=r.getTime()-e.getTime(),h=.1*i,a=i+2*h;let o=l/a;const u=this.zoomBehavior.scaleExtent();o=Math.min(Math.max(o,u[0]),u[1]);const f=this.initialTimeScale.copy().domain([e,r]);this.selection.transition().duration(this.scalingDuration/2).call(this.zoomBehavior.scaleTo,o).on("end",()=>this.translateIntervalIntoView(e.getTime(),r.getTime(),o)),this.timeScale=f},translateIntervalIntoView(t,e,r){const n=this.timeScale(new Date(t)),s=this.timeScale(new Date(e)),l=(n+s)/2,h=this.getWidth()/2-l,a=P.zoomTransform(this.selection.node());this.selection.transition().duration(this.translationDuration/2).call(this.zoomBehavior.transform,P.zoomIdentity.translate(a.x+h,a.y).scale(r))},emitTimeScaleChange(){this.$emit("time-scale-change",this.timeScale)},emitFocusedDomainChange(){if(!this.selection.node())return;const[e,r]=this.timeScale.domain();this.$emit("focused-domain-change",[this.toDateString(e),this.toDateString(r)])},panToTimestamp(t){const e=new Date(t),r=this.timeScale(e),n=P.zoomTransform(this.selection.node()),s=n.x-r+this.getWidth()/2;this.selection.transition().duration(this.translationDuration).call(this.zoomBehavior.transform,P.zoomIdentity.translate(s,0).scale(n.k)).on("end",()=>{this.emitFocusedDomainChange()})},updateBoundaries(t,e){this.isLeftBoundaryReached=t,this.isRightBoundaryReached=e,clearTimeout(this.resetBoundariesTimeout),this.resetBoundariesTimeout=setTimeout(this.resetBoundaries,300)},resetBoundaries(){this.isLeftBoundaryReached=!1,this.isRightBoundaryReached=!1}}}),Q8="";var i0=function(){var e=this,r=e._self._c;return r("div",{ref:"container",staticClass:"e-zoom-behavior"},[r("transition",{attrs:{name:"boundary-fade"}},[e.isLeftBoundaryReached?r("div",{staticClass:"e-zoom-behavior__boundary e-zoom-behavior__boundary__left e-bg-gradient-to-r e-from-red-700 e-to-transparent"}):e._e()]),e._t("default",null,{timeScale:e.timeScale}),r("transition",{attrs:{name:"boundary-fade"}},[e.isRightBoundaryReached?r("div",{staticClass:"e-zoom-behavior__boundary e-zoom-behavior__boundary__right e-bg-gradient-to-l e-from-red-700 e-to-transparent"}):e._e()])],2)},s0=[],a0=Y(n0,i0,s0,!1,null,null,null,null);const o0=a0.exports,l0=j.extend({name:"EXAxis",props:{ticksConfigs:{type:Array,required:!0},timeScale:{type:Function,required:!0},x:{type:Number,default:0},y:{type:Number,default:0},height:{type:Number,default:10},dark:{type:Boolean,default:!1}},data(){return{classNames:H}},computed:{classes(){return{[H.xAxis]:!0,[H.xAxisDark]:this.dark}},axis(){return P.axisBottom(this.timeScale).ticks(this.currentTicksConfig.interval).tickFormat(this.currentTicksConfig.formatFn).tickSizeOuter(0).tickSizeInner(this.height)},density(){const t=this.timeScale.invert(0).getTime(),e=this.timeScale.invert(1).getTime(),r=36e5,n=(e-t)/r;return isNaN(n)?1:n},currentTicksConfig(){const{interval:t,format:e}=this.ticksConfigs.find(n=>n.precision>=this.density&&n.interval);return{formatFn:n=>typeof e=="function"?e(n):P.timeFormat(e)(n),interval:t}}},watch:{timeScale:{handler(){this.update()},deep:!0},currentTicksConfig:{handler(){this.update()},deep:!0},height(){this.updateTicksSize()}},mounted(){this.update()},methods:{update(){const t=this.$refs.container;P.select(t).call(this.axis),this.translateTicksText()},translateTicksText(){const t=this.$refs.container;P.select(t).selectAll(".tick text").each(function(){P.select(this).attr("x",5).attr("y",0).style("text-anchor","start")})},updateTicksSize(){this.axis.tickSizeOuter(0).tickSizeInner(this.height),this.update()}}}),V8="";var c0=function(){var e=this,r=e._self._c;return r("g",{ref:"container",class:e.classes,attrs:{"text-anchor":"middle",transform:`translate(${e.x}, ${e.y})`}})},u0=[],d0=Y(l0,c0,u0,!1,null,null,null,null);const jr=d0.exports,Dt=t=>{const e=P.utcFormat("%_d")(t),r=h0(parseInt(e));return`${e}${r}`},wi=t=>new Date(Date.UTC(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()+1)).getUTCDate()===1?"":P.utcFormat("%-d")(t),mt=t=>["0"," 0","00"].includes(P.utcFormat("%H")(t))?"":`${P.utcFormat("%H")(t)}h`,nt=t=>{const e=P.utcFormat("%H:%M")(t);return e==="00:00"?"":e},Gr=t=>P.utcFormat("%M:%S")(t),Si=t=>`${P.utcFormat("%Hh%Mm")(t)}`,qr=t=>{const e=nt(t),r=Dt(t),n=P.utcFormat("%B")(t);return e||`${n} ${r}`},Zr=t=>{const e=nt(t),r=Number.parseInt(P.utcFormat("%H")(t)),n=Dt(t),s=P.utcFormat("%B")(t);return e&&r%6===0?`${s} ${n} ${e}`:qr(t)},h0=t=>{if(t>3&&t<21)return"th";switch(t%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}},gt=t=>e=>{const r=P.utcFormat("%H")(e);return!(P.utcFormat("%M")(e)==="00"&&Number.parseInt(r)%t===0)},Ur=t=>e=>{const r=P.utcFormat("%M")(e);return Number.parseInt(r)%t!==0},Ti=t=>e=>{const r=P.utcFormat("%M")(e),n=P.utcFormat("%S")(e);return Number.parseInt(r)%t!==0&&Number.parseInt(n)===0},ee={_10_seconds:25e-6,_20_seconds:1e-4,_30_seconds:15e-5,_1_minute:3e-4,_2_minutes:75e-5,_5_minutes:.002,_15_minutes:.005,_30_minutes:.01,_1_hour:.025,_2_hours:.05,_3_hours:.1,_4_hours:.15,_6_hours:.25,_1_day:1,_2_days:2,_1_month:8,_1_month_abbr:13,_1_month_letter:22,_3_months:33,_2_year:48,_5_years:120,_20_years:480,_75_years:1800,_300_years:7200,infinity:1/0},Yr={[et.overview]:[{precision:ee._30_seconds,interval:P.utcMinute.every(2),format:Si},{precision:ee._1_minute,interval:P.utcMinute.every(5),format:Si},{precision:ee._2_minutes,interval:P.utcMinute.every(10),format:qr},{precision:ee._5_minutes,interval:P.utcMinute.every(20),format:Zr},{precision:ee._15_minutes,interval:P.utcHour,format:Zr},{precision:ee._30_minutes,interval:P.utcHour.every(2),format:Zr},{precision:ee._2_hours,interval:P.utcHour.every(6),format:t=>{const e=nt(t),r=Dt(t),n=P.utcFormat("%B")(t);return e||`${n} ${r}`}},{precision:ee._3_hours,interval:P.utcHour.every(12),format:qr},{precision:ee._6_hours,interval:P.utcHour.every(24),format:t=>{const e=Dt(t),r=P.utcFormat("%b")(t),n=P.utcFormat("%Y")(t);return`${r} ${e} ${n}`}},{precision:ee._2_days,interval:P.utcMonth,format:"%Y – %B"},{precision:ee._2_year,interval:P.utcMonth.every(3),format:"%Y Q%q"},{precision:ee._5_years,interval:P.utcYear.every(5),format:"%Y"},{precision:ee._20_years,interval:P.utcYear.every(20),format:"%Y"},{precision:ee._75_years,interval:P.utcYear.every(75),format:"%Y"},{precision:ee._300_years,interval:P.utcYear.every(300),format:"%Y"},{precision:ee.infinity,interval:P.utcMonth.every(12),format:"%Y"}],[et.detailed]:[{precision:ee._10_seconds,interval:P.utcSecond.every(10),format:Gr},{precision:ee._20_seconds,interval:(Vi=P.utcSecond.every(20))==null?void 0:Vi.filter(Ti(2)),format:Gr},{precision:ee._30_seconds,interval:(Ki=P.utcSecond.every(30))==null?void 0:Ki.filter(Ti(2)),format:Gr},{precision:ee._1_minute,interval:P.utcMinute.filter(Ur(5)),format:nt},{precision:ee._2_minutes,interval:(Ji=P.utcMinute.every(2))==null?void 0:Ji.filter(Ur(10)),format:nt},{precision:ee._5_minutes,interval:(es=P.utcMinute.every(5))==null?void 0:es.filter(Ur(20)),format:nt},{precision:ee._15_minutes,interval:(ts=P.utcMinute.every(15))==null?void 0:ts.filter(gt(1)),format:nt},{precision:ee._30_minutes,interval:(rs=P.utcMinute.every(30))==null?void 0:rs.filter(gt(2)),format:nt},{precision:ee._1_hour,interval:P.utcHour.filter(gt(6)),format:mt},{precision:ee._2_hours,interval:(ns=P.utcHour.every(2))==null?void 0:ns.filter(gt(6)),format:mt},{precision:ee._3_hours,interval:(is=P.utcHour.every(3))==null?void 0:is.filter(gt(12)),format:mt},{precision:ee._4_hours,interval:P.utcHour.every(4),format:mt},{precision:ee._6_hours,interval:P.utcHour.every(6),format:mt},{precision:ee._1_day,interval:P.utcDay,format:wi},{precision:ee._2_days,interval:P.utcDay.every(2),format:wi},{precision:ee._1_month,interval:P.utcMonth,format:"%B"},{precision:ee._1_month_abbr,interval:P.utcMonth,format:"%b"},{precision:ee._1_month_letter,interval:P.utcMonth,format:t=>P.utcFormat("%B")(t).charAt(0)},{precision:ee._3_months,interval:P.utcMonth.every(3),format:"Q%q"},{precision:ee._2_year,interval:P.utcMonth.every(6),format:"Q%q"},{precision:ee._5_years,interval:P.utcYear.every(2),format:"%Y"},{precision:ee._20_years,interval:P.utcYear.every(4),format:"%Y"},{precision:ee._75_years,interval:P.utcYear.every(25),format:"%Y"},{precision:ee._300_years,interval:P.utcYear.every(100),format:"%Y"},{precision:ee.infinity,interval:P.utcYear.every(500),format:""}],[et.detailedBackground]:[{precision:ee._10_seconds,interval:P.utcSecond,format:""},{precision:ee._20_seconds,interval:P.utcSecond.every(5),format:""},{precision:ee._30_seconds,interval:P.utcSecond.every(10),format:""},{precision:ee._1_minute,interval:P.utcSecond.every(20),format:""},{precision:ee._2_minutes,interval:P.utcSecond.every(30),format:""},{precision:ee._5_minutes,interval:P.utcMinute,format:""},{precision:ee._15_minutes,interval:P.utcMinute.every(3),format:""},{precision:ee._30_minutes,interval:P.utcMinute.every(6),format:""},{precision:ee._1_hour,interval:P.utcMinute.every(15),format:""},{precision:ee._2_hours,interval:P.utcMinute.every(30),format:""},{precision:ee._3_hours,interval:P.utcHour,format:""},{precision:ee._4_hours,interval:P.utcHour,format:""},{precision:ee._6_hours,interval:P.utcMinute.every(120),format:""},{precision:ee._1_day,interval:P.utcHour.every(8),format:""},{precision:ee._2_days,interval:P.utcHour.every(12),format:""},{precision:ee._1_month,interval:P.utcDay.filter(t=>{const e=t.getUTCDate(),r=new Date(t.getUTCFullYear(),t.getUTCMonth()+1,0).getUTCDate(),n=Math.ceil(r/5);return e===n||e===2*n||e===3*n||e===4*n}),format:""},{precision:ee._1_month_abbr,interval:P.utcDay.filter(t=>{const e=t.getUTCDate(),r=new Date(t.getUTCFullYear(),t.getUTCMonth()+1,0).getUTCDate(),n=Math.ceil(r/4);return e===n||e===2*n||e===3*n}),format:""},{precision:ee._1_month_letter,interval:P.utcDay.filter(t=>{const e=t.getUTCDate(),r=new Date(t.getUTCFullYear(),t.getUTCMonth()+1,0).getUTCDate(),n=Math.ceil(r/2);return e===n}),format:""},{precision:ee._3_months,interval:P.utcMonth,format:""},{precision:ee._3_months,interval:P.utcMonth,format:""},{precision:ee._2_year,interval:P.utcYear,format:""},{precision:ee._5_years,interval:P.utcYear.every(2),format:""},{precision:ee._20_years,interval:P.utcYear.every(5),format:""},{precision:ee._75_years,interval:P.utcYear.every(20),format:""},{precision:ee._300_years,interval:P.utcYear.every(100),format:""},{precision:ee.infinity,interval:P.utcYear.every(500),format:""}]},f0=j.extend({name:"EXAxisOverview",components:{EXAxis:jr},props:{timeScale:{type:Function,required:!0},x:{type:Number,default:0},y:{type:Number,default:0},height:{type:Number,default:10},dark:{type:Boolean,default:!1}},data(){return{classNames:H,ticksConfigs:Yr[et.overview]}}}),K8="";var p0=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("EXAxis",{class:e.classNames.xAxisOverview,attrs:{x:e.x,y:e.y,dark:e.dark,height:e.height,"time-scale":e.timeScale,"ticks-configs":e.ticksConfigs}})},m0=[],g0=Y(f0,p0,m0,!1,null,null,null,null);const v0=g0.exports,_0=j.extend({name:"EXAxisDetailed",components:{EXAxis:jr},props:{timeScale:{type:Function,required:!0},x:{type:Number,default:0},y:{type:Number,default:0},height:{type:Number,default:10},dark:{type:Boolean,default:!1}},data(){return{classNames:H,ticksConfigs:Yr[et.detailed]}}}),J8="";var y0=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("EXAxis",{class:e.classNames.xAxisDetailed,attrs:{x:e.x,y:e.y,dark:e.dark,height:e.height,"time-scale":e.timeScale,"ticks-configs":e.ticksConfigs}})},C0=[],b0=Y(_0,y0,C0,!1,null,null,null,null);const x0=b0.exports,w0=j.extend({name:"EXAxisBackground",components:{EXAxis:jr},props:{timeScale:{type:Function,required:!0},x:{type:Number,default:0},y:{type:Number,default:0},height:{type:Number,default:10},dark:{type:Boolean,default:!1}},data(){return{classNames:H,ticksConfigs:Yr[et.detailedBackground]}}}),e7="";var S0=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("EXAxis",{class:e.classNames.xAxisBackground,attrs:{x:e.x,y:e.y,dark:e.dark,height:e.height,"time-scale":e.timeScale,"ticks-configs":e.ticksConfigs}})},T0=[],k0=Y(w0,S0,T0,!1,null,null,null,null);const M0=k0.exports,E0=j.extend({name:"ETimelineSVGDefs",props:{eventsGroups:{type:Object,default:()=>({})},forbiddenIntervalColor:{type:String,default:"#ddd"},width:{type:Number,required:!0},height:{type:Number,required:!0}},data(){return{defs:at,TimelineChartType:je,transparencyGradients:[{id:"transparency-gradient-light",stop:38,opacity:.3},{id:"transparency-gradient",stop:130,opacity:.4}]}},computed:{filteredEventsGroups(){return this.eventsGroups||{}}}});var $0=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("defs",{ref:"mainContainer",staticClass:"e-timeline"},[e._l(e.eventsGroups,function(n,s){return[r("linearGradient",{key:`${e.defs.loadingGradient}-${s}`,attrs:{id:`${e.defs.loadingGradient}-${s}`,x1:"0%",y1:"0%",x2:"100%",y2:"0%"}},[r("stop",{attrs:{offset:"0%","stop-color":n.color,"stop-opacity":"0"}}),r("stop",{attrs:{offset:"50%","stop-color":n.color,"stop-opacity":"0.6"}}),r("stop",{attrs:{offset:"100%","stop-color":n.color,"stop-opacity":"0"}})],1),[e.TimelineChartType.lineGraph,e.TimelineChartType.barChart].includes(n.chartType)?[e._l(e.transparencyGradients,function({id:l,stop:i,opacity:h}){return r("linearGradient",{key:`${l}-${s}`,attrs:{id:`${l}-${s}`,x1:"0%",x2:"0%",y1:"0%",y2:"100%"}},[r("stop",{attrs:{offset:"0%","stop-color":n.color,"stop-opacity":h}}),r("stop",{attrs:{offset:`${i}%`,"stop-color":n.color,"stop-opacity":"0"}})],1)}),r("clipPath",{key:`${e.defs.clipPath}-${s}`,attrs:{id:`${e.defs.clipPath}-${s}`}},[r("rect",{attrs:{width:e.width,height:e.height}})])]:e._e()]}),r("pattern",{attrs:{id:e.defs.stripedPattern,width:"5",height:"3",patternUnits:"userSpaceOnUse",patternTransform:"rotate(45)"}},[r("rect",{attrs:{width:"1",height:"4",fill:e.forbiddenIntervalColor}})])],2)},L0=[],D0=Y(E0,$0,L0,!1,null,null,null,null);const P0=D0.exports,O0=j.extend({name:"ETimeline",directives:{resizeObserver:Qe},components:{ETimelineSVGDefs:P0,EXAxisBackground:M0,EXAxisDetailed:x0,EXAxisOverview:v0,ETimelineMilestone:q1,ETimelineMarkers:r0,EZoomBehavior:o0},props:{eventsGroups:{type:Object,default:()=>({})},dark:{type:Boolean,default:!1},startDate:{type:String,default:void 0},endDate:{type:String,default:void 0},selectedTimestamp:{type:String,default:void 0},showEventTooltip:{type:Boolean,default:!0},disableZoom:{type:Boolean,default:!1},insertZerosAtInterval:{type:String,default:void 0},flattenLineGraphEnds:{type:Boolean,default:!0},curtains:{type:Boolean,default:!1},showLabels:{type:Boolean,default:!0},rectMinWidth:{type:Number,default:1},barHeight:{type:Number,default:18},barYPadding:{type:Number,default:0},barXPadding:{type:Number,default:0},chartMinHeight:{type:Number,default:60},chartMinLabelHeight:{type:Number,default:18},minDate:{type:String,default:void 0},maxDate:{type:String,default:void 0},cursorTimestamp:{type:[String,void 0],default:void 0},selectedClass:{type:[String,void 0],default:void 0},panOnDateClick:{type:Boolean,default:!1},panTransitionDuration:{type:Number,default:800},selectedDate:{type:String,default:""},autoResize:{type:Boolean,default:!0},markers:{type:Array,default:()=>[]},stickyMarkers:{type:Boolean,default:!0},fitMarkersOnChange:{type:Boolean,default:!1},zoomToIntervalTransitionDuration:{type:Number,default:800},zoomToBoundariesTransitionDuration:{type:Number,default:0},milestoneBulletSize:{type:Number,default:18},milestonesFirst:{type:Boolean,default:!0},forbiddenIntervals:{type:Array,default:()=>[]},forbiddenIntervalColor:{type:String,default:"#ddd"},focusedInterval:{type:[Object,void 0],default:void 0},locked:{type:Boolean,default:!1},timezone:{type:[String,void 0],default:void 0},stopClickPropagation:{type:Boolean,default:!1},tooltipPosition:{type:String,default:"top",validator:t=>["top","bottom"].includes(t)},maxDomainPadding:{type:Number,default:0}},data(){return{mainContainer:null,tooltip:null,cursor:null,timeline:null,wrapperDiv:null,selectedTimestampCursor:null,svgElement:null,svg:null,timeScale:null,currentTimeScaleDensity:null,axisHeight:22,isHoveringEvent:!1,hoveredEvent:null,isHoveringTimeline:!1,hoveredTimestamp:null,eventTooltipStyle:{},hoveredEventType:null,utcOffset:0,yScale:null,hoveredCounts:[],countsByTimestamp:{},dotsByTimestamp:{},visibleFrom:null,visibleTo:null,curtainHandleWidth:5,leftCurtainWidth:50,rightCurtainWidth:50,isHoveringCurtain:!1,isDraggingCurtain:!1,characterWidth:7.5,textPadding:5,debouncedOnResize:()=>{},isFirstPaint:!0,timeouts:[],groupsVisibility:{},selectedMilestoneId:null,isInitialized:!1,transformDiff:{translation:0,scale:1},isZoomingInterval:!1,hoveredMilestone:null,focusedDomain:null,transitionDuration:400,focusedTimestamp:null}},computed:{combinedBarsHeight(){return Object.values(this.barGroups).reduce((t,e)=>t+(this.getBarGroupHeight(e)||this.barChartHeight),0)},combinedBottomBarsHeight(){return Object.values(this.barGroups).reduce((t,e)=>t+(e.bottom?this.getBarGroupHeight(e):0),0)},combinedMilestonesHeight(){return Object.values(this.milestonesGroups).reduce((t,e)=>t+(e.height||this.barChartHeight),0)},milestonesYOffset(){return this.milestonesFirst?0:this.combinedBarsHeight-this.combinedBottomBarsHeight+(this.hasChart?this.chartHeight:0)},chartsYOffset(){return this.hasMilestones&&this.milestonesFirst?this.combinedMilestonesHeight:0},barsYOffset(){return(this.hasChart?this.chartHeight:0)+(this.hasMilestones&&this.milestonesFirst?this.combinedMilestonesHeight:0)},hasMilestones(){return Object.keys(this.milestonesGroups).length>0},barChartHeight(){return this.barHeight+this.barYPadding},computedClasses(){return{wrapper:{"e-border-gray-700 e-timeline--dark":this.dark,"e-border-gray-300":!this.dark,"e-timeline--dragging":this.isInteractingWithCurtain},background:this.dark?"e-bg-gray-900":"e-bg-gray-50",tooltipSlot:this.dark?"e-bg-gray-900 e-text-white e-border-gray-700":"e-bg-gray-100 e-text-gray-700 e-border-gray-300",eventTooltipSlot:this.dark?"e-bg-gray-900 e-text-white e-border-gray-700":"e-bg-gray-100 e-text-gray-700 e-border-gray-300"}},lineGraphGroups(){return Object.entries(this.filteredEventsGroups).reduce((t,[e,r])=>r.chartType===je.lineGraph?{...t,[e]:r}:t,{})},chartHeight(){if(!this.showLabels)return this.chartMinHeight;const e=(Object.keys(this.lineGraphGroups).length+Object.keys(this.barChartGroups).length)*this.barChartHeight;return Math.max(this.chartMinHeight,e)},barGroups(){return Object.entries(this.filteredEventsGroups).reduce((t,[e,r])=>!r.chartType||[je.bars,je.dots].includes(r.chartType)?{...t,[e]:r}:t,{})},barChartGroups(){return Object.entries(this.filteredEventsGroups).reduce((t,[e,r])=>r.chartType===je.barChart?{...t,[e]:r}:t,{})},milestonesGroups(){return Object.entries(this.filteredEventsGroups).reduce((t,[e,r])=>r.chartType===je.milestones?{...t,[e]:r}:t,{})},hasChart(){return Object.keys(this.lineGraphGroups).length+Object.keys(this.barChartGroups).length>0},labelRectWidth(){return Object.values(this.eventsGroups).reduce((r,n)=>{var s;return Math.max(r,(s=n.label)==null?void 0:s.length)},0)*this.characterWidth+2*this.textPadding},combinedXAxesHeight(){return this.axisHeight*2},timelineWidth(){var t,e,r;return((t=this.timeline)==null?void 0:t.offsetWidth)||((r=(e=this.mainContainer)==null?void 0:e.getBoundingClientRect())==null?void 0:r.width)},timelineHeight(){return(this.hasChart?this.chartHeight:0)+this.combinedXAxesHeight+this.combinedBarsHeight+this.combinedMilestonesHeight},filteredEventsGroups(){const t=Object.entries(this.eventsGroups).filter(([e,r])=>this.getCurrentGroupVisibility(e));return Object.fromEntries(t)},allEventsSorted(){const t=Object.values(this.filteredEventsGroups).map(e=>e.events).flat();return this.getSortedEvents(t)},oldestEvent(){let t;return this.allEventsSorted.length>1?t=this.allEventsSorted[0]:t={timestamp:new Date(new Date().getTime()-864e5)},t},latestEvent(){let t;return this.allEventsSorted.length>1?t=this.allEventsSorted[this.allEventsSorted.length-1]:t={timestamp:new Date},t},allLineChartTimestamps(){const t=new Set;return Object.values(this.lineGraphGroups).forEach(e=>{e.events.forEach(r=>{t.add(r.timestamp)})}),Array.from(t).sort()},placeholderLineChartGroup(){return this.fillTimeGaps(this.allLineChartTimestamps.map(t=>({timestamp:t,count:0})))},filledGapsLineGraphGroups(){return Object.entries(this.lineGraphGroups).reduce((t,[e,r])=>({...t,[e]:{...r,events:this.fillEvents(r.events)}}),{})},isInteractingWithCurtain(){return this.isHoveringCurtain||this.isDraggingCurtain},flattenedCounts(){return[...Object.values(this.lineGraphGroups),...Object.values(this.barChartGroups)].map(t=>t.events).flat()},hiddenGroupsLabels(){return Object.entries(this.groupsVisibility).reduce((t,[e,r])=>r?t:[...t,e],[])},minHoverZone(){return this.showLabels?this.labelRectWidth:0},sortedMarkers(){return this.isInitialized?[...this.markers].sort((t,e)=>new Date(t.timestamp).getTime()>new Date(e.timestamp).getTime()?1:-1):[]},maxVisibleCount(){const[t,e]=this.timeScale.domain(),r=this.flattenedCounts.filter(n=>{const s=new Date(n.startDate||n.timestamp),l=new Date(n.endDate||n.timestamp);return l>=t&&l<=e||s>=t&&s<=e});return P.max(r,n=>n.count)},defaultMaxDomain(){const t=new Date(this.oldestEvent.timestamp||this.oldestEvent.startDate).getTime(),e=new Date(this.latestEvent.timestamp||this.latestEvent.startDate).getTime(),n=(e-t)*.75,s=new Date(t-n),l=new Date(e+n);return[s.toISOString(),l.toISOString()]},defaultFocusedDomain(){const t=this.oldestEvent.timestamp||this.oldestEvent.startDate,e=this.latestEvent.timestamp||this.latestEvent.endDate;return[t,e]},domain(){let t=new Date(this.minDate||this.defaultMaxDomain[0]).getTime(),e=new Date(this.maxDate||this.defaultMaxDomain[1]).getTime(),r=0;return this.maxDomainPadding&&(r=(e-t)*this.maxDomainPadding),t=new Date(t-r).toISOString(),e=new Date(e+r).toISOString(),[this.tzStringToDate(t),this.tzStringToDate(e)]},svgLeft(){var t,e,r;return((r=(e=(t=this.svg)==null?void 0:t.node())==null?void 0:e.getBoundingClientRect())==null?void 0:r.left)||0},markersScopedSlots(){return Object.keys(this.$scopedSlots).filter(t=>t.startsWith("marker.")).reduce((t,e)=>(t[e]=this.$scopedSlots[e],t),{})}},watch:{dark(){this.handleDarkModeChange()},selectedTimestamp(){this.repositionSelectedTimestampCursor()},markers(){this.fitMarkersOnChange&&this.zoomToFitMarkers()},startDate(){this.zoomToStartAndEndDates()},endDate(){this.zoomToStartAndEndDates()},eventsGroups:{handler(){this.updateTimeline()},deep:!0},barHeight:"updateTimeline",barYPadding:"updateTimeline",chartMinHeight:"updateTimeline",cursorTimestamp(){if(this.cursorTimestamp){this.hoveredTimestamp=this.cursorTimestamp;const t=this.tzStringToDate(this.hoveredTimestamp),e=this.timeScale(t);this.cursor.style.left=e+"px",this.isHoveringTimeline=!0}else this.isHoveringTimeline=!1},selectedDate(t){t&&!this.locked&&(this.focusedTimestamp=this.tzStringToDate(t).toISOString())},groupsVisibility(){this.updateTimeline()},forbiddenIntervals(){this.updateForbiddenIntervals(!0)},focusedInterval(t){t&&(t!=null&&t.startDate)&&(t!=null&&t.endDate)&&(this.focusedDomain=[t.startDate,t.endDate])}},created(){this.debouncedOnResize=fi(this.handleResize,100)},mounted(){this.validateProps(),this.initTimeline(),this.zoomToStartAndEndDates()},beforeDestroy(){this.clearTimeline()},methods:{validateProps(){this.minDate||console.log("<ETimeline />: didn't receive a 'min-date' prop. Setting default: ",this.defaultMaxDomain[0]),this.maxDate||console.log("<ETimeline />: didn't receive a 'max-date' prop. Setting default: ",this.defaultMaxDomain[1]),this.startDate||console.log("<ETimeline />: didn't receive a 'start-date' prop. Setting default: ",this.defaultFocusedDomain[0]),this.endDate||console.log("<ETimeline />: didn't receive an 'end-date' prop. Setting default: ",this.defaultFocusedDomain[1])},updateTimeline(){this.isInitialized&&(this.initOrUpdateSvg(),this.updateYScale(),this.updateForbiddenIntervals(),this.drawEventsGroups(),this.updateCurtains(),this.repositionSelectedTimestampCursor(),this.registerEventsListeners(),this.isInitialized=!0)},initTimeline(){this.initRefs();const t=this.startDate||this.defaultFocusedDomain[0],e=this.endDate||this.defaultFocusedDomain[1];if(this.focusedDomain=[this.tzStringToDate(t),this.tzStringToDate(e)],!this.timeline||this.timeline.offsetWidth===0||!this.domain||!this.timeScale){this.timeouts.push(setTimeout(this.initTimeline,500));return}this.initOrUpdateSvg(),this.initUtcOffset(),this.initYScale(),this.drawEventsGroups(),this.curtains&&(this.initCurtains(),this.emitCurtainChange()),this.initSelectedTimestampCursor(),this.registerEventsListeners(),this.emitVisibleInterval(xt.initial),this.selectedDate&&this.panOnDateClick&&(this.focusedTimestamp=this.tzStringToDate(this.selectedDate)),this.isInitialized=!0},initRefs(){this.tooltip=this.$refs.tooltip,this.cursor=this.$refs.cursor,this.mainContainer=this.$refs.mainContainer,this.timeline=this.$refs.timelineContainer,this.svgElement=this.$refs.timelineSvg,this.selectedTimestampCursor=this.$refs.selectedTimestamp,this.wrapperDiv=this.$refs.wrapperDiv},initOrUpdateSvg(){this.svg||(this.svg=P.select(this.svgElement))},initUtcOffset(){const t=this.startDate||this.oldestEvent.timestamp||this.oldestEvent.startDate;this.utcOffset=Se.parseZone(t).utcOffset()},initYScale(){this.yScale=P.scaleLinear().range([this.chartHeight,0]),this.updateYScale()},updateYScale(){this.yScale.range([this.chartHeight,0]),this.yScale.domain([0,this.maxVisibleCount])},zoomToFitMarkers(){const t=this.markers.map(l=>new Date(l.timestamp).getTime());if(t.length<2)return;const e=Math.min(...t),r=Math.max(...t),n=new Date(e),s=new Date(r);this.focusedDomain=[n,s]},initSelectedTimestampCursor(){this.svg.append("line").attr("class",H.selectedTimestampCursor).style("stroke","red").style("stroke-width","1px").style("opacity",0).attr("x1",0).attr("x2",0).attr("y1",0),this.repositionSelectedTimestampCursor()},selectOrAppend({parent:t,targetId:e,targetType:r}){let n=t.select(`#${e}`);return n.empty()&&(n=t.append(r).attr("id",e)),n},clearTimeline(){this.svg&&this.svg.remove(),this.countsByTimestamp={}},repositionSelectedTimestampCursor(){var n;const t=(n=this.svg)==null?void 0:n.select(`.${H.selectedTimestampCursor}`);if(!t)return;if(!this.selectedTimestamp){t.style("opacity",0);return}const e=this.tzStringToDate(this.selectedTimestamp),r=this.timeScale(e);isNaN(r)?t.style("opacity",0):t.attr("x1",r).attr("x2",r).style("opacity",.5),t.attr("y2",this.timelineHeight)},updateCurrentTimeScaleDensity(){const t=this.timeScale.invert(0).getTime(),e=this.timeScale.invert(1).getTime(),r=36e5,n=(e-t)/r;isNaN(n)||(this.currentTimeScaleDensity=n)},registerEventsListeners(){this.svg.on("mousemove",this.handleMouseMove),this.svg.on("click",this.handleClick),this.svg.on("mouseleave",this.handleMouseLeave)},emitVisibleInterval(t){const e=this.timeScale.invert(0),r=this.timeScale.invert(this.timeline.offsetWidth);if(this.visibleFrom&&this.visibleFrom.getTime()===e.getTime()&&this.visibleTo&&this.visibleTo.getTime()===r.getTime())return;this.visibleFrom=e,this.visibleTo=r;const n=this.dateToTzString(this.visibleFrom),s=this.dateToTzString(this.visibleTo);this.$emit("visible-interval-change",{fromDate:n,toDate:s,trigger:t,transform:this.transformDiff})},onResize(t){this.autoResize&&(this.isFirstPaint?(this.handleResize(t),this.isFirstPaint=!1):this.debouncedOnResize(t))},handleResize({contentRect:t}){this.svg&&(this.svg.attr("width",t.width),this.updateTimeline())},handleDarkModeChange(){if(!this.showLabels)return;const t=this;this.svg.selectAll(`.${H.labelBg}`).each(function(){P.select(this).style("fill",t.dark?"black":"white")}),this.svg.selectAll(`.${H.labelBgFill}`).each(function(){const e=P.select(this),r=e.node().dataset.color;e.style("fill",t.getLabelBackgroundColor(r)).style("stroke",t.getTextFillColor(r)).style("stroke-width",.25)}),this.svg.selectAll(`.${H.labelText}`).each(function(){const e=P.select(this),r=e.node().dataset.color;e.style("fill",t.getTextFillColor(r))})},handleMouseLeave(){this.isHoveringTimeline=!1,this.$emit("hovered-timestamp",void 0)},handleMouseMove(t){const e=t.offsetX;if(e<=this.minHoverZone){this.isHoveringTimeline=!1;return}const r=this.timeScale.invert(e);this.hoveredTimestamp=this.dateToTzString(r),this.isHoveringTimeline=!0,this.$emit("hovered-timestamp",this.hoveredTimestamp),this.cursor.style.left=e+"px",this.tooltip&&(this.eventTooltipStyle={left:`${e}px`,zIndex:100,[this.tooltipPosition==="top"?"bottom":"top"]:`${this.timeline.getBoundingClientRect().height}px`})},handleClick(t){const e=t.offsetX;if(e<=this.minHoverZone)return;const r=this.timeScale.invert(e),n=this.dateToTzString(r);if(this.isHoveringEvent&&(this.$emit("event-clicked",{event:this.hoveredEvent,type:this.hoveredEventType}),this.stopClickPropagation))return;const s=t.target;if(Array.from(s.classList).includes(H.forbiddenInterval)){this.$emit("forbidden-timestamp-clicked",n);return}this.$emit("date-clicked",n),this.panOnDateClick&&(this.focusedTimestamp=n)},handleMarkerClick(t){this.$emit("marker-clicked",t),this.panOnDateClick&&(this.focusedTimestamp=t.timestamp)},handleLineMouseOver(t,e,r){this.hoveredCounts=Object.entries(this.countsByTimestamp[`${e.timestamp}`]).reduce((n,s)=>{const[l,i]=s;return[...n,{type:l,count:i}]},[]),this.hoveredEvent=e,this.isHoveringEvent=!0,this.$emit("event-mouseover",{eventData:e,eventType:r,hoveredCounts:this.hoveredCounts})},handleLineMouseOut(){this.isHoveringEvent=!1,this.hoveredCounts=[],this.$emit("event-mouseout")},handleBarMouseOver(t,e,r){t.offsetX<=this.minHoverZone||(this.hoveredEvent=e,this.hoveredEventType=r,this.isHoveringEvent=!0,this.$emit("event-mouseover",{eventData:e,eventType:r}))},handleBarMouseOut(){this.isHoveringEvent=!1,this.hoveredEvent=null,this.$emit("event-mouseout")},handleLabelMouseOver(t){P.selectAll(`.${H.lineGraphGroup}-${t}`).classed(`${H.lineGraphGroup}--highlighted`,!0),P.selectAll(`.${H.lineGraphGroupLabel}`).classed(`${H.lineGraphGroupLabel}--highlighted`,!0)},handleLabelMouseLeave(t){P.selectAll(`.${H.lineGraphGroup}-${t}`).classed(`${H.lineGraphGroup}--highlighted`,!1),P.selectAll(`.${H.lineGraphGroupLabel}`).classed(`${H.lineGraphGroupLabel}--highlighted`,!1)},handleTransformChange(t){this.transformDiff=t},handleTimeScaleChange(t){this.timeScale=t,this.updateCurrentTimeScaleDensity(),this.isInitialized&&(this.updateEventsBars(),this.updateLineGraphs(),this.updateBarChart(),this.updateLineGraphHoverZones(),this.updateMilestonesPositions(),this.repositionSelectedTimestampCursor(),this.updateForbiddenIntervals(),this.emitVisibleInterval(xt.zoom),this.curtains&&this.emitCurtainChange(),this.focusedTimestamp=void 0,this.$emit("time-scale-change",t))},emitCurtainChange(){const{startDate:t,endDate:e}=this.calculateDateRangeFromCurtains();this.$emit("curtain-range-change",{startDate:new Date(t).toISOString(),endDate:new Date(e).toISOString()})},calculateDateRangeFromCurtains(){const t=this.timeline.offsetWidth,e=this.timeScale.domain(),r=e[1].getTime()-e[0].getTime(),n=(this.leftCurtainWidth-this.curtainHandleWidth*2)/t*r,s=(this.rightCurtainWidth+this.curtainHandleWidth*2)/t*r,l=new Date(e[0].getTime()+n),i=new Date(e[1].getTime()-s);return{startDate:l,endDate:i}},handleDragStart(){this.isDraggingCurtain=!0},handleDragEnd(){this.isDraggingCurtain=!1},handleLeftDrag(t){t.sourceEvent.stopPropagation();const e=Math.min(t.x,this.timeline.offsetWidth-this.rightCurtainWidth);this.leftCurtainWidth=Math.max(0,e),this.svg.select(`.${H.curtain}--left`).attr("width",this.leftCurtainWidth),this.emitCurtainChange()},handleRightDrag(t){t.sourceEvent.stopPropagation();const e=this.timeline.offsetWidth,r=Math.min(this.timeline.offsetWidth-t.x,this.timeline.offsetWidth-this.leftCurtainWidth),n=e-r;this.rightCurtainWidth=Math.max(0,r),this.svg.select(`.${H.curtain}--right`).attr("width",this.rightCurtainWidth).attr("x",n),this.emitCurtainChange()},zoomToStartAndEndDates(){const t=this.startDate||this.oldestEvent.timestamp||this.oldestEvent.startDate,e=this.endDate||this.latestEvent.timestamp||this.latestEvent.endDate;this.focusedDomain=[this.tzStringToDate(t),this.tzStringToDate(e)]},updateEventsBars(){const t=`.${H.eventGroup} > rect.${H.eventRect}`,e=`${t}:not(.${H.eventRect}--dot)`;this.svg.selectAll(t).attr("x",this.getEventRectX),this.svg.selectAll(e).attr("width",this.getEventRectWidth);const r=`.${H.eventGroup} > text.${H.eventRectText}`;this.svg.selectAll(r).attr("x",n=>this.getEventRectX(n)+this.textPadding).text(this.getEventText)},updateBarChart(){const t=Object.keys(this.barChartGroups).length;Object.keys(this.barChartGroups).forEach((e,r)=>{const n=m=>(this.getEventRectWidth(m)-this.barXPadding*2)/t,s=m=>this.yScale.range()[0]-this.yScale(m.count),l=m=>this.getEventRectX(m)+this.barXPadding+r*n(m),i=m=>this.yScale(m.count),h=`.${H.eventBarContainer}-${e}`,a=this.svg.selectAll(h),o=`.${H.barChartGroup} rect.${H.eventBarHoverZone}`;a.selectAll(o).attr("x",l).attr("width",n);const u=`.${H.barChartGroup} rect.${H.eventBar}`;a.selectAll(u).attr("x",l).attr("width",n).attr("y",i).attr("height",s);const f=`.${H.barChartGroup} rect.${H.eventBarCap}`;a.selectAll(f).attr("x",l).attr("width",n).attr("y",i)})},updateLineGraphs(){Object.entries(this.lineGraphGroups).forEach(([t])=>{const e=P.area().x(r=>this.timeScale(this.tzStringToDate(r.timestamp))).y0(this.timelineHeight).y1(r=>this.yScale(r.count)).curve(P.curveMonotoneX);this.svg.selectAll(`.${H.lineGraphPath}-${t}`).attr("d",r=>e(r))})},updateLineGraphHoverZones(){Object.keys(this.lineGraphGroups).forEach(t=>{const e=this;this.svg.selectAll(`.${H.lineGraphDot}-${t}`).each(function(r){P.select(this).attr("cx",e.timeScale(e.tzStringToDate(r.timestamp))).attr("cy",e.yScale(r.count))}),this.svg.selectAll(`.${H.lineGraphHoverZone}-${t}`).each(function(r){const n=e.timeScale(e.tzStringToDate(r.timestamp).getTime())-15;P.select(this).attr("x",n).attr("y",0).attr("width",30).attr("height",e.chartHeight)})})},getEventRectX(t){return isNaN(this.timeScale(this.tzStringToDate(t.startDate||t.timestamp)))?0:this.timeScale(this.tzStringToDate(t.startDate||t.timestamp))},getEventRectWidth(t){if(!t)return 0;if(t.startDate&&t.endDate){const e=new Date(t.startDate),r=new Date(t.endDate),n=this.timeScale(r)-this.timeScale(e);return Math.max(n,this.rectMinWidth)}else{const e=1/(this.currentTimeScaleDensity*3600);return Math.max(e,this.rectMinWidth)}},getEventText(t){var n;const r=(this.getEventRectWidth(t)-this.textPadding)/this.characterWidth;return r<4?"":((n=t.text)==null?void 0:n.length)<=r?t.text:`${t.text.slice(0,r-3)}...`},getElementLeftPosition(t){if(!t)return 0;const e=window.getComputedStyle(t);return parseInt(e.left)},initCurtains(){this.createCurtains(),this.updateCurtains()},createCurtains(){this.curtains&&(this.svg.append("rect").classed(`${H.curtain} ${H.curtain}--left`,!0).attr("fill","rgba(0, 0, 0, 0.5)").on("mouseenter",()=>this.isHoveringCurtain=!0).on("mouseleave",()=>this.isHoveringCurtain=!1).call(P.drag().on("start",this.handleDragStart).on("drag",this.handleLeftDrag).on("end",this.handleDragEnd)),this.svg.append("rect").classed(`${H.curtain} ${H.curtain}--right`,!0).attr("fill","rgba(0, 0, 0, 0.5)").on("mouseenter",()=>this.isHoveringCurtain=!0).on("mouseleave",()=>this.isHoveringCurtain=!1).call(P.drag().on("start",this.handleDragStart).on("drag",this.handleRightDrag).on("end",this.handleDragEnd)),this.updateCurtains())},updateCurtains(){const t=this.timeline.offsetWidth,e=this.timelineHeight;this.svg.select(`.${H.curtain}--left`).attr("width",this.leftCurtainWidth).attr("height",e+this.curtainHandleWidth*2).attr("y",-this.curtainHandleWidth).attr("x",-this.curtainHandleWidth),this.svg.select(`.${H.curtain}--right`).attr("x",t-this.rightCurtainWidth+this.curtainHandleWidth).attr("y",-this.curtainHandleWidth).attr("width",this.rightCurtainWidth+this.curtainHandleWidth*2).attr("height",e+this.curtainHandleWidth*2)},updateForbiddenIntervals(t=!1){t&&this.svg.selectAll(`.${H.forbiddenInterval}`).remove();const e=this.timeScale.domain();this.forbiddenIntervals.forEach((r,n)=>{const s=r.startDate===-1/0?e[0]:this.tzStringToDate(r.startDate),l=r.endDate===1/0?e[1]:this.tzStringToDate(r.endDate),i=this.timeScale(s),h=this.timeScale(l),a=Math.max(h-i,0);let o=this.svg.select(`.${H.forbiddenInterval}-${n}`);o.empty()&&(o=this.svg.append("rect").attr("class",`${H.forbiddenInterval} ${H.forbiddenInterval}-${n}`).attr("fill",`url(#${at.stripedPattern})`)),o.attr("x",i).attr("y",0).attr("width",a).attr("height",this.timelineHeight)})},drawEventsGroups(){this.svg.selectAll(`g.${H.eventGroup}`).remove(),this.svg.selectAll(`.${H.barChartGroup}`).remove(),this.svg.selectAll(`.${H.lineGraphGroup}`).remove(),this.svg.selectAll(`.${H.lineGraphGroupLabel}`).remove(),this.svg.selectAll(`.${H.loadingIndicator}`).remove(),this.drawLineGraphEventsGroups(),this.drawBarEventsGroups(),this.drawBarChartEventsGroups(),this.drawMilestonesPlaceholder()},drawLineGraphEventsGroups(){const t=this.combinedXAxesHeight+this.chartsYOffset,e=this.insertZerosAtInterval?this.filledGapsLineGraphGroups:this.lineGraphGroups;Object.entries(e).forEach(([r,n])=>{const s=this.svg.append("g").classed(`${H.lineGraphGroup} ${H.lineGraphGroup}-${r}`,!0).attr("transform",`translate(0,${t})`),{color:l,events:i}=n;this.drawLineGraph({events:i,gElement:s,color:l,type:r}),this.drawLineGraphHoverZones({events:i,gElement:s,color:l,type:r})}),Object.entries(this.lineGraphGroups).forEach(([r,n],s)=>{const{color:l,isLoading:i,label:h}=n,a=Math.max(this.chartMinLabelHeight,this.barChartHeight),o=this.chartHeight-a*(s+1),u=t+this.chartHeight-a,f=this.svg.append("g").classed(H.lineGraphGroupLabel,!0).attr("transform",`translate(0,${t})`).on("mouseover",()=>this.handleLabelMouseOver(r)).on("mouseleave",()=>this.handleLabelMouseLeave(r));this.drawProgressIndicator({type:r,color:l,isLoading:i,yPosition:u}),this.drawTextLabel({color:l,label:h,type:r,height:a,yPosition:o,gElement:f})})},drawLineGraph({events:t,gElement:e,color:r,type:n}){const s=P.area().x(i=>this.timeScale(this.tzStringToDate(i.timestamp))).y0(this.timelineHeight).y1(i=>this.yScale(i.count)).curve(P.curveMonotoneX),l=`${at.clipPath}-${n}`;e.append("path").datum(t).classed(`${H.lineGraphPath}-${n}`,!0).attr("fill",`url(#${at.transparencyGradientLight}-${n})`).attr("stroke",r).attr("stroke-linejoin","round").attr("stroke-linecap","round").attr("stroke-width",1).attr("d",i=>s(i)).attr("clip-path",`url(#${l})`)},drawLineGraphHoverZones({events:t,gElement:e,color:r,type:n}){t.forEach(s=>{const l=`${s.timestamp}`;this.countsByTimestamp[l]={...this.countsByTimestamp[l]||{},[n]:s.count};const i=e.append("circle").classed(`${H.lineGraphDot} ${H.lineGraphDot}-${n}`,!0).attr("cx",this.timeScale(this.tzStringToDate(s.timestamp))).attr("cy",this.yScale(s.count)).attr("r",1.5).attr("fill",r).attr("stroke-width",0).datum(s);this.dotsByTimestamp[l]=[...this.dotsByTimestamp[l]||[],i],e.append("rect").classed(`${H.lineGraphHoverZone}-${n}`,!0).attr("x",this.timeScale(this.tzStringToDate(s.timestamp))-15).attr("y",0).attr("width",30).attr("height",this.chartHeight).attr("fill","transparent").datum(s).on("mouseover",h=>{this.handleLineMouseOver(h,s,n),this.dotsByTimestamp[l].forEach(a=>a.classed(`${H.lineGraphDot}--active`,!0))}).on("mouseout",()=>{this.handleLineMouseOut(),this.dotsByTimestamp[l].forEach(h=>h.classed(`${H.lineGraphDot}--active`,!1))})})},drawSingleBarEventsGroup({type:t,eventsGroup:e,milestone:r,dots:n,dotsSize:s,bottom:l}){const{color:i,bgColor:h,label:a,events:o,barBorderRadius:u,isLoading:f,height:m,chartType:v}=e;let b=this.getBarGroupYPosition(t,l);const y=[je.bars,je.dots,void 0].includes(v)?this.getBarGroupHeight(e):m;r&&(b=this.getMilestoneGroupYPosition(t)),this.drawProgressIndicator({yPosition:b,type:t,color:i,isLoading:f});const T=this.svg.append("g").attr("data-color",i).classed(H.eventGroup,!0).classed(`${H.eventGroup}-${t}`,!0);if(this.drawBackground({color:h||i,gElement:T,yPosition:b,height:y}),r||n){const E=n?1:2,w=b+y/2;T.append("line").classed(H.milestoneLine,!0).attr("x1",0).attr("x2",this.timeline.offsetWidth).attr("y1",w).attr("y2",w).style("stroke",i).style("stroke-width",E)}this.drawBars({events:o,color:i,gElement:T,yPosition:b,type:t,dots:n,dotsSize:s,height:m,barBorderRadius:u}),a&&this.drawTextLabel({color:i,label:a,type:t,gElement:T,yPosition:b,height:m})},drawBarEventsGroups(){Object.entries(this.barGroups).forEach(([t,e])=>this.drawSingleBarEventsGroup({type:t,eventsGroup:e,bottom:e.bottom,dots:e.chartType===je.dots,dotsSize:e.dotsSize||3}))},drawMilestonesPlaceholder(){Object.entries(this.milestonesGroups).forEach(([t,e])=>this.drawSingleBarEventsGroup({type:t,eventsGroup:{...e,events:[],isLoading:!1},milestone:!0})),this.updateMilestonesPositions()},getMilestoneClass(t){return{[H.milestoneSelected]:[t.id,t.timestamp].includes(this.selectedMilestoneId)}},getMilestoneColors(t,e){return{background:t||e,border:this.getTextFillColor(t||e,.25)}},getMilestoneGroupYPosition(t){let e=0;for(const[r,n]of Object.entries(this.milestonesGroups)){if(r===t)break;e+=n.height||this.barChartHeight}return this.combinedXAxesHeight+this.milestonesYOffset+e},getBarGroupYPosition(t,e){let r=this.combinedXAxesHeight;e?r+=(this.hasChart?this.chartHeight:0)+(this.hasMilestones?this.combinedMilestonesHeight:0):r+=this.barsYOffset;for(const[n,s]of Object.entries(this.barGroups)){if(n===t)break;!e&&s.bottom||(r+=this.getBarGroupHeight(s))}return r},getBarGroupHeight(t){return t.height?Math.max(t.height+this.barYPadding,1):this.barChartHeight},updateMilestonesPositions(){Object.entries(this.milestonesGroups).forEach(([t,e])=>{const r=this.getMilestoneGroupYPosition(t),n=this.svg.select(`g.${H.eventGroup}-${t}`),s=2,i=(e.height||this.barChartHeight)/2,h=r+i-s/2;n.attr("x1",0).attr("x2",this.timeline.offsetWidth).select(`.${H.milestoneLine}`).attr("y1",h).attr("y2",h);const a=P.select(`.${H.milestonesContainer}-${t}`);a.style("top",`${r}px`).style("height",`${e.height||this.barChartHeight}px`);const o=a.selectAll(`.${H.milestone}`).data(this.getSortedEvents(e.events));o.exit().remove(),o.enter().append("div").merge(o).style("left",u=>`${this.timeScale(this.tzStringToDate(u.timestamp))}px`).style("top",`${h}px`)})},drawBarChartEventsGroups(){const t=this.combinedXAxesHeight,e=this.barChartGroups;Object.entries(e).forEach(([r,n],s)=>{const l=this.svg.append("g").classed(`${H.barChartGroup} ${H.barChartGroup}-${r}`,!0).attr("transform",`translate(0,${t})`),{color:i,events:h}=n;this.drawBarsChart({events:h,color:i,gElement:l,yOffset:t,type:r,index:s})})},drawProgressIndicator({yPosition:t,type:e,isLoading:r}){this.svg.append("rect").classed(`${H.loadingIndicator} ${H.loadingIndicator}-${e}`,!0).attr("x",0).attr("y",t).attr("width",this.timeline.offsetWidth/3).attr("height",this.barChartHeight).attr("fill",`url(#${at.loadingGradient}-${e})`).style("visibility",r?"visible":"hidden")},drawBackground({color:t,yPosition:e,gElement:r,height:n}){r.append("rect").attr("class",H.eventGroupBg).attr("x",0).attr("y",e).attr("width",this.timeline.offsetWidth).attr("height",n||this.barChartHeight).attr("fill",P.color(t).toString()).style("opacity",.1)},drawBars({events:t,gElement:e,yPosition:r,color:n,type:s,dots:l,dotsSize:i,height:h,barBorderRadius:a=1.5}){const o=this,u=r+this.barYPadding/2,f=l?((h||this.barChartHeight)-i)/2:0;let m=Math.max((h!=null?h:this.barChartHeight)-this.barYPadding,1);l&&(m=i),e.selectAll(H.eventRect).data(t).enter().append("rect").attr("class",v=>H.eventRect+(l?` ${H.eventRect}--dot`:"")+(v.className?` ${v.className}`:"")).attr("x",this.getEventRectX).attr("y",u+f).attr("ry",l?i:a).attr("rx",l?i:a).attr("width",l?i:this.getEventRectWidth).attr("height",m).attr("stroke-width",l?i/10:5).attr("cursor","pointer").attr("stroke",v=>l?P.color(v.color||n).brighter(1).toString():"#0000").style("fill",v=>v.color||n).on("mouseover",function(v,b){P.select(this).classed(H.eventRectHovered,!0),o.handleBarMouseOver(v,b,s)}).on("mouseout",function(){P.select(this).classed(H.eventRectHovered,!1),o.handleBarMouseOut()}),e.selectAll(H.eventRectText).data(t.filter(v=>!!v.text)).enter().append("text").attr("class",H.eventRectText).attr("x",v=>this.getEventRectX(v)+this.textPadding).attr("y",r+this.barChartHeight/2).attr("dy","0.35em").style("text-anchor","start").style("font-size","12px").style("font-weight",600).style("stroke-linejoin","round").style("paint-order","stroke").style("pointer-events","none").style("fill",v=>this.getTextFillColor(v.color||n,.75)).text(this.getEventText)},drawBarsChart({events:t,gElement:e,color:r,yOffset:n,type:s,index:l}){const i=this,h=Object.keys(this.barChartGroups).length,a=v=>(this.getEventRectWidth(v)-this.barXPadding*2)/h,o=v=>this.yScale.range()[0]-this.yScale(v.count),u=v=>this.getEventRectX(v)+this.barXPadding+l*a(v),f=v=>this.yScale(v.count),m=e.selectAll(H.eventBarContainer).data(t).enter().append("g").attr("class",`${H.eventBarContainer} ${H.eventBarContainer}-${s}`);m.append("rect").attr("class",v=>H.eventBarHoverZone+(v.className?` ${v.className}`:"")).attr("x",u).attr("y",-n).attr("width",a).attr("height",this.yScale.range()[0]+n).attr("fill",v=>v.color||r).attr("fill-opacity",0),m.append("rect").attr("class",v=>H.eventBar+(v.className?` ${v.className}`:"")).attr("x",u).attr("y",f).attr("width",a).attr("height",o).attr("stroke-width",5).attr("cursor","pointer").attr("stroke","#0000").attr("fill",`url(#${at.transparencyGradient}-${s})`),m.append("rect").attr("class",v=>H.eventBarCap+(v.className?` ${v.className}`:"")).attr("x",u).attr("y",f).attr("width",a).attr("height",2).attr("stroke-width",0).style("fill",v=>v.color||r),m.on("mouseover",function(v,b){const d=P.select(this);i.onBarChartBarMouseOver(d,r),i.handleBarMouseOver(v,b,s)}).on("mouseout",function(){const v=P.select(this);i.onBarChartBarMouseOut(v,s),i.handleBarMouseOut()}).on("click",function(){e.selectAll(`.${H.eventBarContainerSelected}`).classed(H.eventBarContainerSelected,!1),P.select(this).classed(H.eventBarContainerSelected,!0)})},onBarChartBarMouseOver(t,e){t.classed(H.eventBarContainerHovered,!0),t.selectAll(`.${H.eventBarHoverZone}`).attr("fill-opacity",.2);const n=t.selectAll(`.${H.eventBar}`);n.attr("fill",e),n.attr("fill-opacity",.5)},onBarChartBarMouseOut(t,e){t.classed(H.eventBarContainerHovered,!1),t.selectAll(`.${H.eventBarHoverZone}`).attr("fill-opacity",0);const n=t.selectAll(`.${H.eventBar}`);n.attr("fill",`url(#${at.transparencyGradient}-${e})`),n.attr("fill-opacity",1)},drawTextLabel({gElement:t,yPosition:e,color:r,label:n,type:s,height:l}){if(!this.showLabels)return;const i={x:-5,y:e,w:this.labelRectWidth,h:l||this.barChartHeight,radius:3},h=t.append("g").attr("class",`${H.labelGroup} ${H.labelGroup}-${s}`).style("cursor","pointer").on("click",()=>this.toggleGroupVisibility(s));h.append("rect").attr("class",H.labelBg).attr("data-color",r).attr("x",i.x).attr("y",i.y).attr("width",i.w).attr("height",i.h).attr("rx",i.radius).attr("ry",i.radius).style("fill",this.dark?"#131a29":"white"),h.append("rect").attr("class",H.labelBgFill).attr("data-color",r).attr("x",i.x).attr("y",i.y).attr("width",i.w).attr("height",i.h).attr("rx",i.radius).attr("ry",i.radius).style("fill",this.getLabelBackgroundColor(r)).style("stroke",this.getTextFillColor(r)).style("stroke-width",.25),h.append("text").attr("class",H.labelText).attr("data-color",r).attr("x",5).attr("y",e+(l||this.barChartHeight)/2).attr("dy","0.35em").style("text-anchor","start").style("font-size","12px").style("font-weight",500).style("stroke-linejoin","round").style("paint-order","stroke").style("fill",this.getTextFillColor(r)).text(n)},getTextFillColor(t,e=0){var r,n;return(this.dark?(r=P.color(t))==null?void 0:r.brighter(1.5+e):(n=P.color(t))==null?void 0:n.darker(2+e)).toString()},getLabelBackgroundColor(t){let e=P.color(t);return e.opacity=this.dark?.2:.5,e.toString()},getCurrentGroupVisibility(t){var n;const e=this.groupsVisibility[t];if(e!==void 0)return e;const r=(n=this.eventsGroups[t])==null?void 0:n.isHidden;return r!==void 0?!r:!0},toggleGroupVisibility(t){this.groupsVisibility={...this.groupsVisibility,[t]:!this.getCurrentGroupVisibility(t)}},getExternalLabelStyles(t){const e=this.eventsGroups[t].color;return{background:this.getLabelBackgroundColor(e),color:this.getTextFillColor(e)}},getExternalLabelWrapperStyles(t){const e=this.eventsGroups[t].color;return{borderColor:this.getTextFillColor(e)}},tzStringToDate(t){return Nr({timestamp:t,timezone:this.timezone})},dateToTzString(t){return Wr({date:t,timezone:this.timezone})},getFormattedTimestamp(t){return Se.parseZone(t).format("YYYY-MM-DDTHH:mm:ss")},fillTimeGaps(t){if(t.length<=1)return t;const e=this.insertZerosAtInterval,r=l=>l.clone().add(1,e),n=l=>l.clone().subtract(1,e);let s=[];for(let l=0;l<t.length;l++){const i=t[l];if(s.push(i),l===t.length-1)break;const h=t[l+1],a=Se(i.timestamp),o=Se(h.timestamp);if(o.diff(a,e)>1){const u=r(a).toISOString(),f=n(o).toISOString();s.push({timestamp:u,count:0}),u!==f&&s.push({timestamp:f,count:0})}}if(this.flattenLineGraphEnds){const l=Se(t[0].timestamp),i=Se(t[t.length-1].timestamp),h=n(l).toISOString(),a=r(i).toISOString();s=[{timestamp:h,count:0},...s,{timestamp:a,count:0}]}return s},fillEvents(t){return this.placeholderLineChartGroup.map(e=>t.find(n=>n.timestamp===e.timestamp)||e)},onMilestoneClick(t,e){this.panOnDateClick&&(this.focusedTimestamp=t.timestamp),this.selectedMilestoneId=t.id||t.timestamp,this.$emit("milestone-click",{milestone:t,milestoneType:e})},getSortedEvents(t){return[...t].sort((e,r)=>new Date(e.timestamp||e.startDate)>new Date(r.timestamp||r.startDate)?1:-1)},onHoverMilestone(t){this.hoveredMilestone=t}}}),t7="";var z0=function(){var e=this,r=e._self._c;return r("div",{ref:"mainContainer",staticClass:"e-timeline"},[r("EZoomBehavior",{attrs:{domain:e.domain,"focused-domain":e.focusedDomain,"translation-duration":e.transitionDuration,"focused-timestamp":e.focusedTimestamp,timezone:e.timezone},on:{"transform-changed":e.handleTransformChange,"time-scale-change":e.handleTimeScaleChange},scopedSlots:e._u([{key:"default",fn:function(){return[e.timeScale?r("div",{ref:"wrapperDiv",staticClass:"e-relative e-timeline e-border e-rounded",class:e.computedClasses.wrapper},[r("ETimelineMarkers",{attrs:{markers:e.sortedMarkers,"sticky-markers":e.stickyMarkers,"time-scale":e.timeScale,"time-zone":e.timezone,height:e.timelineHeight,"svg-left":e.svgLeft},on:{"marker-clicked":e.handleMarkerClick,"marker-drag-end":function(n){return e.$emit("marker-drag-end",n)},"marker-drag-start":function(n){return e.$emit("marker-drag-start",n)},"marker-drag-drag":function(n){return e.$emit("marker-drag-drag",n)}},scopedSlots:e._u([e._l(e.markersScopedSlots,function(n,s){return{key:s,fn:function(l){return[e._t(s,null,null,l)]}}})],null,!0)}),r("div",{directives:[{name:"resize-observer",rawName:"v-resize-observer",value:e.onResize,expression:"onResize"}],ref:"timelineContainer",staticClass:"e-timeline__svg-container e-relative e-h-13 e-rounded e-select-none e-overflow-x-hidden"},[r("svg",{ref:"timelineSvg",class:e.computedClasses.background,attrs:{width:e.timelineWidth,height:e.timelineHeight}},[r("ETimelineSVGDefs",{attrs:{"events-groups":e.eventsGroups,width:e.timelineWidth,height:e.chartHeight,"forbidden-interval-color":e.forbiddenIntervalColor}}),r("g",{staticClass:"e-timeline-axes"},[e.timeScale?r("EXAxisOverview",{attrs:{"time-scale":e.timeScale,height:e.timelineHeight,dark:e.dark}}):e._e(),e.timeScale?r("EXAxisDetailed",{attrs:{"time-scale":e.timeScale,height:e.timelineHeight-e.axisHeight,y:e.axisHeight,dark:e.dark}}):e._e(),e.timeScale?r("EXAxisBackground",{attrs:{"time-scale":e.timeScale,height:e.timelineHeight-1.75*e.axisHeight,y:e.axisHeight*1.75,dark:e.dark}}):e._e()],1)],1)]),e._l(e.milestonesGroups,function(n,s){return r("div",{key:`${s}`,staticClass:"e-timeline-milestones"},[r("div",{class:`e-tl-milestones e-tl-milestones-${s}`},e._l(e.getSortedEvents(n.events),function(l,i){return r("ETimelineMilestone",{key:`${l.milestoneType}-${i}`,class:e.getMilestoneClass(l),attrs:{"data-timestamp":l.timestamp,milestone:l,dot:n.dots,size:l.size||e.milestoneBulletSize,"transition-duration":n.milestonesTransitionDuration,"line-height":n.milestonesLineHeight,"dot-size":n.milestonesDotSize,"background-color":e.getMilestoneColors(l.color,n.color).background,"border-color":e.getMilestoneColors(l.color,n.color).border},on:{"hovered-milestone":e.onHoverMilestone,"milestone-click":function(h){return e.onMilestoneClick(l,s)}},scopedSlots:e._u([{key:"content",fn:function(){return[e._t(`milestoneContent.${l.milestoneType}`,function(){return[r("span",{staticClass:"e-px-2"},[e._v(" "+e._s(l.text)+" ")])]},{milestone:l,index:i,hover:l===e.hoveredMilestone})]},proxy:!0},{key:"label",fn:function(){return[e._t(`milestoneLabel.${l.milestoneType}`,null,{milestone:l})]},proxy:!0}],null,!0)})}),1)])}),r("div",{directives:[{name:"show",rawName:"v-show",value:e.isHoveringTimeline&&!e.isInteractingWithCurtain,expression:"isHoveringTimeline && !isInteractingWithCurtain"}],ref:"cursor",staticClass:"e-timeline__cursor e-absolute e-bg-green-600 e-w-px e-h-full e-top-0 e-pointer-events-none"}),r("div",{staticClass:"external-labels-container e-flex"},e._l(e.hiddenGroupsLabels,function(n){return r("div",{key:n,staticClass:"external-label",class:e.computedClasses.background,style:e.getExternalLabelWrapperStyles(n),on:{click:function(s){return e.toggleGroupVisibility(n)}}},[r("div",{staticClass:"external-label__content",style:e.getExternalLabelStyles(n)},[e._v(" "+e._s(n)+" ")])])}),0),r("div",{key:"tooltip",ref:"tooltip",staticClass:"e-absolute",style:e.eventTooltipStyle},[e._t("tooltip",function(){return[r("div",{directives:[{name:"show",rawName:"v-show",value:e.isHoveringTimeline&&!e.isHoveringEvent&&!e.isInteractingWithCurtain&&!e.cursorTimestamp,expression:`
|
|
1
|
+
(function(U,j){typeof exports=="object"&&typeof module!="undefined"?j(exports,require("vue"),require("hls.js"),require("moment-timezone"),require("d3"),require("unified"),require("remark-parse"),require("remark-rehype"),require("rehype-stringify"),require("remark-breaks"),require("remark-gfm")):typeof define=="function"&&define.amd?define(["exports","vue","hls.js","moment-timezone","d3","unified","remark-parse","remark-rehype","rehype-stringify","remark-breaks","remark-gfm"],j):(U=typeof globalThis!="undefined"?globalThis:U||self,j(U.EvercamUI={},U.Vue,U.Hls,U.moment,U.d3,U.unified,U.remarkParse,U.remarkRehype,U.rehypeStringify,U.remarkBreaks,U.remarkGfm))})(this,function(U,j,it,Se,ys,Cs,bs,xs,ws,Ss,Ts){var Vi,Ki,Ji,es,ts,rs,ns,is;"use strict";function ks(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const r in t)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(e,r,n.get?n:{enumerable:!0,get:()=>t[r]})}}return e.default=t,Object.freeze(e)}function fn(t,e){for(var r=0;r<e.length;r++){const n=e[r];if(typeof n!="string"&&!Array.isArray(n)){for(const s in n)if(s!=="default"&&!(s in t)){const l=Object.getOwnPropertyDescriptor(n,s);l&&Object.defineProperty(t,s,l.get?l:{enumerable:!0,get:()=>n[s]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}const P=ks(ys);var J=(t=>(t.dot="dot",t["2xs"]="2xs",t.xs="xs",t.sm="sm",t.md="base",t.base="base",t.lg="lg",t.xl="xl",t["2xl"]="2xl",t["3xl"]="3xl",t["4xl"]="4xl",t["5xl"]="5xl",t["6xl"]="6xl",t["7xl"]="7xl",t["8xl"]="8xl",t["9xl"]="9xl",t))(J||{}),ae=(t=>(t.warning="warning",t.error="error",t.info="info",t.success="success",t.primary="primary",t.brand="brand",t.default="default",t.gray="gray",t))(ae||{}),et=(t=>(t.overview="overview",t.detailed="detailed",t.detailedBackground="detailedBackground",t))(et||{}),je=(t=>(t.bars="bars",t.dots="dots",t.lineGraph="lineGraph",t.barChart="barGraph",t.milestones="milestones",t))(je||{}),xt=(t=>(t.zoom="zoom",t.autoPan="autoPan",t.initial="initial",t))(xt||{}),pn=(t=>(t._360="360",t._480="480",t._720="720",t._1080="1080",t.auto="auto",t))(pn||{}),Oe=(t=>(t.top="top",t.right="right",t.bottom="bottom",t.left="left",t))(Oe||{}),Ze=(t=>(t.SYSTEM="system",t.COPILOT="copilot",t.USER="user",t))(Ze||{}),mn=(t=>(t.TEXT="text",t.PROGRESS="progress",t.STOP="stop",t))(mn||{}),Nt=(t=>(t.positive="positive",t.negative="negative",t))(Nt||{});const Ms=j.extend({name:"EBadge",props:{text:{type:String,default:""},color:{type:String,default:ae.default},size:{type:String,default:J.base}},data(){return{colors:{[ae.error]:"e-bg-rose-500 e-text-white",[ae.info]:"e-bg-cyan-500 e-text-white",[ae.warning]:"e-bg-amber-500 e-text-white",[ae.primary]:"e-bg-sky-500 e-text-white",[ae.default]:"e-bg-slate-300 e-text-white",[ae.success]:"e-bg-lime-500 e-text-white"},sizes:{[J.dot]:"e-w-2 e-h-2",[J.xs]:"e-w-3 e-h-3",[J.sm]:"e-w-4 e-h-4",[J.md]:"e-w-5 e-h-5",[J.lg]:"e-min-w-[2rem] e-max-w-[4rem] e-px-1 e-h-6 e-text-sm e-font-medium",[J.xl]:"e-min-w-[3rem] e-max-w-[5rem] e-px-1 e-h-8 e-text-base e-font-medium"}}},computed:{badgeClasses(){const t=this.colors[this.color]||this.colors[ae.default],e=this.sizes[this.size]||this.sizes[J.md];return["e-flex e-items-center e-justify-center e-rounded-full",t,e]},showText(){return[J.lg,J.xl].includes(this.size)}}});function Y(t,e,r,n,s,l,i,h){var a=typeof t=="function"?t.options:t;e&&(a.render=e,a.staticRenderFns=r,a._compiled=!0),n&&(a.functional=!0),l&&(a._scopeId="data-v-"+l);var o;if(i?(o=function(m){m=m||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,!m&&typeof __VUE_SSR_CONTEXT__!="undefined"&&(m=__VUE_SSR_CONTEXT__),s&&s.call(this,m),m&&m._registeredComponents&&m._registeredComponents.add(i)},a._ssrRegister=o):s&&(o=h?function(){s.call(this,(a.functional?this.parent:this).$root.$options.shadowRoot)}:s),o)if(a.functional){a._injectStyles=o;var u=a.render;a.render=function(v,b){return o.call(b),u(v,b)}}else{var f=a.beforeCreate;a.beforeCreate=f?[].concat(f,o):[o]}return{exports:t,options:a}}var Es=function(){var e=this,r=e._self._c;return r("span",{staticClass:"e-badge",class:e.badgeClasses},[e.showText?r("span",[e._v(e._s(e.text))]):e._e()])},$s=[],Ls=Y(Ms,Es,$s,!1,null,null,null,null);const Wt=Ls.exports,Ds=j.extend({name:"EAvatar",components:{Badge:Wt},props:{size:{type:String,default:J.md},showBadge:{type:Boolean,default:!1},badgeColor:{type:String,default:ae.error},badgeText:{type:String,default:""},badgeSize:{type:String,default:J.md},image:{type:String,default:""},backgroundClasses:{type:String,default:"e-bg-gradient-to-r e-from-purple-500 e-to-indigo-500"}},data(){return{sizes:{[J["2xs"]]:"e-w-6 e-h-6 e-text-xs",[J.xs]:"e-w-8 e-h-8 e-text-xs",[J.sm]:"e-w-10 e-h-10 e-text-sm",[J.md]:"e-w-14 e-h-14 e-text-base",[J.lg]:"e-w-20 e-h-20 e-text-2xl",[J.xl]:"e-w-28 e-h-28 e-text-3xl",[J["2xl"]]:"e-w-36 e-h-36 e-text-5xl"}}},computed:{avatarClasses(){const t=this.sizes[this.size]||this.sizes[J.xs],e=this.image?"e-rounded-full e-overflow-hidden":"";return["e-flex e-items-center e-justify-center e-rounded-full e-text-white e-font-medium",t,e,this.backgroundClasses]}}});var Ps=function(){var e=this,r=e._self._c;return r("div",{staticClass:"e-avatar e-relative",class:e.avatarClasses},[e._t("default",function(){return[e.image?r("img",{staticClass:"e-avatar__image e-w-full e-h-full e-object-cover",attrs:{src:e.image}}):e._e()]}),e.showBadge?r("div",{staticClass:"e-avatar__badge e-absolute e-top-0 e-right-0"},[e._t("badge",function(){return[r("Badge",{attrs:{text:e.badgeText,color:e.badgeColor,size:e.badgeSize}})]})],2):e._e()],2)},Os=[],zs=Y(Ds,Ps,Os,!1,null,null,null,null);const wt=zs.exports;var st=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function St(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var gn={},vn={},jt={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return e}});function e(r){if(r=`${r}`,r==="0")return"0";if(/^[+-]?(\d+|\d*\.\d+)(e[+-]?\d+)?(%|\w+)?$/.test(r))return r.replace(/^[+-]?/,s=>s==="-"?"":"-");let n=["var","calc","min","max","clamp"];for(const s of n)if(r.includes(`${s}(`))return`calc(${r} * -1)`}})(jt);var _n={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return e}});const e=["preflight","container","accessibility","pointerEvents","visibility","position","inset","isolation","zIndex","order","gridColumn","gridColumnStart","gridColumnEnd","gridRow","gridRowStart","gridRowEnd","float","clear","margin","boxSizing","lineClamp","display","aspectRatio","size","height","maxHeight","minHeight","width","minWidth","maxWidth","flex","flexShrink","flexGrow","flexBasis","tableLayout","captionSide","borderCollapse","borderSpacing","transformOrigin","translate","rotate","skew","scale","transform","animation","cursor","touchAction","userSelect","resize","scrollSnapType","scrollSnapAlign","scrollSnapStop","scrollMargin","scrollPadding","listStylePosition","listStyleType","listStyleImage","appearance","columns","breakBefore","breakInside","breakAfter","gridAutoColumns","gridAutoFlow","gridAutoRows","gridTemplateColumns","gridTemplateRows","flexDirection","flexWrap","placeContent","placeItems","alignContent","alignItems","justifyContent","justifyItems","gap","space","divideWidth","divideStyle","divideColor","divideOpacity","placeSelf","alignSelf","justifySelf","overflow","overscrollBehavior","scrollBehavior","textOverflow","hyphens","whitespace","textWrap","wordBreak","borderRadius","borderWidth","borderStyle","borderColor","borderOpacity","backgroundColor","backgroundOpacity","backgroundImage","gradientColorStops","boxDecorationBreak","backgroundSize","backgroundAttachment","backgroundClip","backgroundPosition","backgroundRepeat","backgroundOrigin","fill","stroke","strokeWidth","objectFit","objectPosition","padding","textAlign","textIndent","verticalAlign","fontFamily","fontSize","fontWeight","textTransform","fontStyle","fontVariantNumeric","lineHeight","letterSpacing","textColor","textOpacity","textDecoration","textDecorationColor","textDecorationStyle","textDecorationThickness","textUnderlineOffset","fontSmoothing","placeholderColor","placeholderOpacity","caretColor","accentColor","opacity","backgroundBlendMode","mixBlendMode","boxShadow","boxShadowColor","outlineStyle","outlineWidth","outlineOffset","outlineColor","ringWidth","ringColor","ringOpacity","ringOffsetWidth","ringOffsetColor","blur","brightness","contrast","dropShadow","grayscale","hueRotate","invert","saturate","sepia","filter","backdropBlur","backdropBrightness","backdropContrast","backdropGrayscale","backdropHueRotate","backdropInvert","backdropOpacity","backdropSaturate","backdropSepia","backdropFilter","transitionProperty","transitionDelay","transitionDuration","transitionTimingFunction","willChange","contain","content","forcedColorAdjust"]})(_n);var yn={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return e}});function e(r,n){return r===void 0?n:Array.isArray(r)?r:[...new Set(n.filter(l=>r!==!1&&r[l]!==!1).concat(Object.keys(r).filter(l=>r[l]!==!1)))]}})(yn);var Gt={},Tt={},qt={exports:{}},Ce=String,Cn=function(){return{isColorSupported:!1,reset:Ce,bold:Ce,dim:Ce,italic:Ce,underline:Ce,inverse:Ce,hidden:Ce,strikethrough:Ce,black:Ce,red:Ce,green:Ce,yellow:Ce,blue:Ce,magenta:Ce,cyan:Ce,white:Ce,gray:Ce,bgBlack:Ce,bgRed:Ce,bgGreen:Ce,bgYellow:Ce,bgBlue:Ce,bgMagenta:Ce,bgCyan:Ce,bgWhite:Ce}};qt.exports=Cn(),qt.exports.createColors=Cn;var bn=qt.exports;(function(t){Object.defineProperty(t,"__esModule",{value:!0});function e(a,o){for(var u in o)Object.defineProperty(a,u,{enumerable:!0,get:o[u]})}e(t,{dim:function(){return i},default:function(){return h}});const r=n(bn);function n(a){return a&&a.__esModule?a:{default:a}}let s=new Set;function l(a,o,u){typeof process!="undefined"&&process.env.JEST_WORKER_ID||u&&s.has(u)||(u&&s.add(u),console.warn(""),o.forEach(f=>console.warn(a,"-",f)))}function i(a){return r.default.dim(a)}const h={info(a,o){l(r.default.bold(r.default.cyan("info")),...Array.isArray(a)?[a]:[o,a])},warn(a,o){l(r.default.bold(r.default.yellow("warn")),...Array.isArray(a)?[a]:[o,a])},risk(a,o){l(r.default.bold(r.default.magenta("risk")),...Array.isArray(a)?[a]:[o,a])}}})(Tt),function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return s}});const e=r(Tt);function r(l){return l&&l.__esModule?l:{default:l}}function n({version:l,from:i,to:h}){e.default.warn(`${i}-color-renamed`,[`As of Tailwind CSS ${l}, \`${i}\` has been renamed to \`${h}\`.`,"Update your configuration file to silence this warning."])}const s={inherit:"inherit",current:"currentColor",transparent:"transparent",black:"#000",white:"#fff",slate:{50:"#f8fafc",100:"#f1f5f9",200:"#e2e8f0",300:"#cbd5e1",400:"#94a3b8",500:"#64748b",600:"#475569",700:"#334155",800:"#1e293b",900:"#0f172a",950:"#020617"},gray:{50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#1f2937",900:"#111827",950:"#030712"},zinc:{50:"#fafafa",100:"#f4f4f5",200:"#e4e4e7",300:"#d4d4d8",400:"#a1a1aa",500:"#71717a",600:"#52525b",700:"#3f3f46",800:"#27272a",900:"#18181b",950:"#09090b"},neutral:{50:"#fafafa",100:"#f5f5f5",200:"#e5e5e5",300:"#d4d4d4",400:"#a3a3a3",500:"#737373",600:"#525252",700:"#404040",800:"#262626",900:"#171717",950:"#0a0a0a"},stone:{50:"#fafaf9",100:"#f5f5f4",200:"#e7e5e4",300:"#d6d3d1",400:"#a8a29e",500:"#78716c",600:"#57534e",700:"#44403c",800:"#292524",900:"#1c1917",950:"#0c0a09"},red:{50:"#fef2f2",100:"#fee2e2",200:"#fecaca",300:"#fca5a5",400:"#f87171",500:"#ef4444",600:"#dc2626",700:"#b91c1c",800:"#991b1b",900:"#7f1d1d",950:"#450a0a"},orange:{50:"#fff7ed",100:"#ffedd5",200:"#fed7aa",300:"#fdba74",400:"#fb923c",500:"#f97316",600:"#ea580c",700:"#c2410c",800:"#9a3412",900:"#7c2d12",950:"#431407"},amber:{50:"#fffbeb",100:"#fef3c7",200:"#fde68a",300:"#fcd34d",400:"#fbbf24",500:"#f59e0b",600:"#d97706",700:"#b45309",800:"#92400e",900:"#78350f",950:"#451a03"},yellow:{50:"#fefce8",100:"#fef9c3",200:"#fef08a",300:"#fde047",400:"#facc15",500:"#eab308",600:"#ca8a04",700:"#a16207",800:"#854d0e",900:"#713f12",950:"#422006"},lime:{50:"#f7fee7",100:"#ecfccb",200:"#d9f99d",300:"#bef264",400:"#a3e635",500:"#84cc16",600:"#65a30d",700:"#4d7c0f",800:"#3f6212",900:"#365314",950:"#1a2e05"},green:{50:"#f0fdf4",100:"#dcfce7",200:"#bbf7d0",300:"#86efac",400:"#4ade80",500:"#22c55e",600:"#16a34a",700:"#15803d",800:"#166534",900:"#14532d",950:"#052e16"},emerald:{50:"#ecfdf5",100:"#d1fae5",200:"#a7f3d0",300:"#6ee7b7",400:"#34d399",500:"#10b981",600:"#059669",700:"#047857",800:"#065f46",900:"#064e3b",950:"#022c22"},teal:{50:"#f0fdfa",100:"#ccfbf1",200:"#99f6e4",300:"#5eead4",400:"#2dd4bf",500:"#14b8a6",600:"#0d9488",700:"#0f766e",800:"#115e59",900:"#134e4a",950:"#042f2e"},cyan:{50:"#ecfeff",100:"#cffafe",200:"#a5f3fc",300:"#67e8f9",400:"#22d3ee",500:"#06b6d4",600:"#0891b2",700:"#0e7490",800:"#155e75",900:"#164e63",950:"#083344"},sky:{50:"#f0f9ff",100:"#e0f2fe",200:"#bae6fd",300:"#7dd3fc",400:"#38bdf8",500:"#0ea5e9",600:"#0284c7",700:"#0369a1",800:"#075985",900:"#0c4a6e",950:"#082f49"},blue:{50:"#eff6ff",100:"#dbeafe",200:"#bfdbfe",300:"#93c5fd",400:"#60a5fa",500:"#3b82f6",600:"#2563eb",700:"#1d4ed8",800:"#1e40af",900:"#1e3a8a",950:"#172554"},indigo:{50:"#eef2ff",100:"#e0e7ff",200:"#c7d2fe",300:"#a5b4fc",400:"#818cf8",500:"#6366f1",600:"#4f46e5",700:"#4338ca",800:"#3730a3",900:"#312e81",950:"#1e1b4b"},violet:{50:"#f5f3ff",100:"#ede9fe",200:"#ddd6fe",300:"#c4b5fd",400:"#a78bfa",500:"#8b5cf6",600:"#7c3aed",700:"#6d28d9",800:"#5b21b6",900:"#4c1d95",950:"#2e1065"},purple:{50:"#faf5ff",100:"#f3e8ff",200:"#e9d5ff",300:"#d8b4fe",400:"#c084fc",500:"#a855f7",600:"#9333ea",700:"#7e22ce",800:"#6b21a8",900:"#581c87",950:"#3b0764"},fuchsia:{50:"#fdf4ff",100:"#fae8ff",200:"#f5d0fe",300:"#f0abfc",400:"#e879f9",500:"#d946ef",600:"#c026d3",700:"#a21caf",800:"#86198f",900:"#701a75",950:"#4a044e"},pink:{50:"#fdf2f8",100:"#fce7f3",200:"#fbcfe8",300:"#f9a8d4",400:"#f472b6",500:"#ec4899",600:"#db2777",700:"#be185d",800:"#9d174d",900:"#831843",950:"#500724"},rose:{50:"#fff1f2",100:"#ffe4e6",200:"#fecdd3",300:"#fda4af",400:"#fb7185",500:"#f43f5e",600:"#e11d48",700:"#be123c",800:"#9f1239",900:"#881337",950:"#4c0519"},get lightBlue(){return n({version:"v2.2",from:"lightBlue",to:"sky"}),this.sky},get warmGray(){return n({version:"v3.0",from:"warmGray",to:"stone"}),this.stone},get trueGray(){return n({version:"v3.0",from:"trueGray",to:"neutral"}),this.neutral},get coolGray(){return n({version:"v3.0",from:"coolGray",to:"gray"}),this.gray},get blueGray(){return n({version:"v3.0",from:"blueGray",to:"slate"}),this.slate}}}(Gt);var xn={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"defaults",{enumerable:!0,get:function(){return e}});function e(r,...n){for(let i of n){for(let h in i){var s;!(r==null||(s=r.hasOwnProperty)===null||s===void 0)&&s.call(r,h)||(r[h]=i[h])}for(let h of Object.getOwnPropertySymbols(i)){var l;!(r==null||(l=r.hasOwnProperty)===null||l===void 0)&&l.call(r,h)||(r[h]=i[h])}}return r}})(xn);var wn={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"toPath",{enumerable:!0,get:function(){return e}});function e(r){if(Array.isArray(r))return r;let n=r.split("[").length-1,s=r.split("]").length-1;if(n!==s)throw new Error(`Path is invalid. Has unbalanced brackets: ${r}`);return r.split(/\.(?![^\[]*\])|[\[\]]/g).filter(Boolean)}})(wn);var Sn={},kt={};(function(t){Object.defineProperty(t,"__esModule",{value:!0});function e(f,m){for(var v in m)Object.defineProperty(f,v,{enumerable:!0,get:m[v]})}e(t,{flagEnabled:function(){return h},issueFlagNotices:function(){return o},default:function(){return u}});const r=s(bn),n=s(Tt);function s(f){return f&&f.__esModule?f:{default:f}}let l={optimizeUniversalDefaults:!1,generalizedModifiers:!0,disableColorOpacityUtilitiesByDefault:!1,relativeContentPathsByDefault:!1},i={future:["hoverOnlyWhenSupported","respectDefaultRingColorOpacity","disableColorOpacityUtilitiesByDefault","relativeContentPathsByDefault"],experimental:["optimizeUniversalDefaults","generalizedModifiers"]};function h(f,m){if(i.future.includes(m)){var v,b,d;return f.future==="all"||((d=(b=f==null||(v=f.future)===null||v===void 0?void 0:v[m])!==null&&b!==void 0?b:l[m])!==null&&d!==void 0?d:!1)}if(i.experimental.includes(m)){var y,T,E;return f.experimental==="all"||((E=(T=f==null||(y=f.experimental)===null||y===void 0?void 0:y[m])!==null&&T!==void 0?T:l[m])!==null&&E!==void 0?E:!1)}return!1}function a(f){if(f.experimental==="all")return i.experimental;var m;return Object.keys((m=f==null?void 0:f.experimental)!==null&&m!==void 0?m:{}).filter(v=>i.experimental.includes(v)&&f.experimental[v])}function o(f){if(process.env.JEST_WORKER_ID===void 0&&a(f).length>0){let m=a(f).map(v=>r.default.yellow(v)).join(", ");n.default.warn("experimental-flags-enabled",[`You have enabled experimental features: ${m}`,"Experimental features in Tailwind CSS are not covered by semver, may introduce breaking changes, and can change at any time."])}}const u=i})(kt),function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizeConfig",{enumerable:!0,get:function(){return l}});const e=kt,r=s(Tt);function n(i){if(typeof WeakMap!="function")return null;var h=new WeakMap,a=new WeakMap;return(n=function(o){return o?a:h})(i)}function s(i,h){if(!h&&i&&i.__esModule)return i;if(i===null||typeof i!="object"&&typeof i!="function")return{default:i};var a=n(h);if(a&&a.has(i))return a.get(i);var o={},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in i)if(f!=="default"&&Object.prototype.hasOwnProperty.call(i,f)){var m=u?Object.getOwnPropertyDescriptor(i,f):null;m&&(m.get||m.set)?Object.defineProperty(o,f,m):o[f]=i[f]}return o.default=i,a&&a.set(i,o),o}function l(i){if((()=>{if(i.purge||!i.content||!Array.isArray(i.content)&&!(typeof i.content=="object"&&i.content!==null))return!1;if(Array.isArray(i.content))return i.content.every(o=>typeof o=="string"?!0:!(typeof(o==null?void 0:o.raw)!="string"||o!=null&&o.extension&&typeof(o==null?void 0:o.extension)!="string"));if(typeof i.content=="object"&&i.content!==null){if(Object.keys(i.content).some(o=>!["files","relative","extract","transform"].includes(o)))return!1;if(Array.isArray(i.content.files)){if(!i.content.files.every(o=>typeof o=="string"?!0:!(typeof(o==null?void 0:o.raw)!="string"||o!=null&&o.extension&&typeof(o==null?void 0:o.extension)!="string")))return!1;if(typeof i.content.extract=="object"){for(let o of Object.values(i.content.extract))if(typeof o!="function")return!1}else if(!(i.content.extract===void 0||typeof i.content.extract=="function"))return!1;if(typeof i.content.transform=="object"){for(let o of Object.values(i.content.transform))if(typeof o!="function")return!1}else if(!(i.content.transform===void 0||typeof i.content.transform=="function"))return!1;if(typeof i.content.relative!="boolean"&&typeof i.content.relative!="undefined")return!1}return!0}return!1})()||r.default.warn("purge-deprecation",["The `purge`/`content` options have changed in Tailwind CSS v3.0.","Update your configuration file to eliminate this warning.","https://tailwindcss.com/docs/upgrade-guide#configure-content-sources"]),i.safelist=(()=>{var o;let{content:u,purge:f,safelist:m}=i;return Array.isArray(m)?m:Array.isArray(u==null?void 0:u.safelist)?u.safelist:Array.isArray(f==null?void 0:f.safelist)?f.safelist:Array.isArray(f==null||(o=f.options)===null||o===void 0?void 0:o.safelist)?f.options.safelist:[]})(),i.blocklist=(()=>{let{blocklist:o}=i;if(Array.isArray(o)){if(o.every(u=>typeof u=="string"))return o;r.default.warn("blocklist-invalid",["The `blocklist` option must be an array of strings.","https://tailwindcss.com/docs/content-configuration#discarding-classes"])}return[]})(),typeof i.prefix=="function")r.default.warn("prefix-function",["As of Tailwind CSS v3.0, `prefix` cannot be a function.","Update `prefix` in your configuration to be a string to eliminate this warning.","https://tailwindcss.com/docs/upgrade-guide#prefix-cannot-be-a-function"]),i.prefix="";else{var a;i.prefix=(a=i.prefix)!==null&&a!==void 0?a:""}i.content={relative:(()=>{let{content:o}=i;return o!=null&&o.relative?o.relative:(0,e.flagEnabled)(i,"relativeContentPathsByDefault")})(),files:(()=>{let{content:o,purge:u}=i;return Array.isArray(u)?u:Array.isArray(u==null?void 0:u.content)?u.content:Array.isArray(o)?o:Array.isArray(o==null?void 0:o.content)?o.content:Array.isArray(o==null?void 0:o.files)?o.files:[]})(),extract:(()=>{let o=(()=>{var m,v,b,d,y,T,E,w,F,$;return!((m=i.purge)===null||m===void 0)&&m.extract?i.purge.extract:!((v=i.content)===null||v===void 0)&&v.extract?i.content.extract:!((b=i.purge)===null||b===void 0||(d=b.extract)===null||d===void 0)&&d.DEFAULT?i.purge.extract.DEFAULT:!((y=i.content)===null||y===void 0||(T=y.extract)===null||T===void 0)&&T.DEFAULT?i.content.extract.DEFAULT:!((E=i.purge)===null||E===void 0||(w=E.options)===null||w===void 0)&&w.extractors?i.purge.options.extractors:!((F=i.content)===null||F===void 0||($=F.options)===null||$===void 0)&&$.extractors?i.content.options.extractors:{}})(),u={},f=(()=>{var m,v,b,d;if(!((m=i.purge)===null||m===void 0||(v=m.options)===null||v===void 0)&&v.defaultExtractor)return i.purge.options.defaultExtractor;if(!((b=i.content)===null||b===void 0||(d=b.options)===null||d===void 0)&&d.defaultExtractor)return i.content.options.defaultExtractor})();if(f!==void 0&&(u.DEFAULT=f),typeof o=="function")u.DEFAULT=o;else if(Array.isArray(o))for(let{extensions:m,extractor:v}of o!=null?o:[])for(let b of m)u[b]=v;else typeof o=="object"&&o!==null&&Object.assign(u,o);return u})(),transform:(()=>{let o=(()=>{var f,m,v,b,d,y;return!((f=i.purge)===null||f===void 0)&&f.transform?i.purge.transform:!((m=i.content)===null||m===void 0)&&m.transform?i.content.transform:!((v=i.purge)===null||v===void 0||(b=v.transform)===null||b===void 0)&&b.DEFAULT?i.purge.transform.DEFAULT:!((d=i.content)===null||d===void 0||(y=d.transform)===null||y===void 0)&&y.DEFAULT?i.content.transform.DEFAULT:{}})(),u={};return typeof o=="function"?u.DEFAULT=o:typeof o=="object"&&o!==null&&Object.assign(u,o),u})()};for(let o of i.content.files)if(typeof o=="string"&&/{([^,]*?)}/g.test(o)){r.default.warn("invalid-glob-braces",[`The glob pattern ${(0,r.dim)(o)} in your Tailwind CSS configuration is invalid.`,`Update it to ${(0,r.dim)(o.replace(/{([^,]*?)}/g,"$1"))} to silence this warning.`]);break}return i}}(Sn);var Tn={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return e}});function e(r){if(Object.prototype.toString.call(r)!=="[object Object]")return!1;const n=Object.getPrototypeOf(r);return n===null||Object.getPrototypeOf(n)===null}})(Tn);var kn={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"cloneDeep",{enumerable:!0,get:function(){return e}});function e(r){return Array.isArray(r)?r.map(n=>e(n)):typeof r=="object"&&r!==null?Object.fromEntries(Object.entries(r).map(([n,s])=>[n,e(s)])):r}})(kn);var Mn={},En={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return e}});function e(r){return r.replace(/\\,/g,"\\2c ")}})(En);var Zt={},Ut={},$n={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return e}});const e={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}})($n),function(t){Object.defineProperty(t,"__esModule",{value:!0});function e(b,d){for(var y in d)Object.defineProperty(b,y,{enumerable:!0,get:d[y]})}e(t,{parseColor:function(){return m},formatColor:function(){return v}});const r=n($n);function n(b){return b&&b.__esModule?b:{default:b}}let s=/^#([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i,l=/^#([a-f\d])([a-f\d])([a-f\d])([a-f\d])?$/i,i=/(?:\d+|\d*\.\d+)%?/,h=/(?:\s*,\s*|\s+)/,a=/\s*[,/]\s*/,o=/var\(--(?:[^ )]*?)(?:,(?:[^ )]*?|var\(--[^ )]*?\)))?\)/,u=new RegExp(`^(rgba?)\\(\\s*(${i.source}|${o.source})(?:${h.source}(${i.source}|${o.source}))?(?:${h.source}(${i.source}|${o.source}))?(?:${a.source}(${i.source}|${o.source}))?\\s*\\)$`),f=new RegExp(`^(hsla?)\\(\\s*((?:${i.source})(?:deg|rad|grad|turn)?|${o.source})(?:${h.source}(${i.source}|${o.source}))?(?:${h.source}(${i.source}|${o.source}))?(?:${a.source}(${i.source}|${o.source}))?\\s*\\)$`);function m(b,{loose:d=!1}={}){var y,T;if(typeof b!="string")return null;if(b=b.trim(),b==="transparent")return{mode:"rgb",color:["0","0","0"],alpha:"0"};if(b in r.default)return{mode:"rgb",color:r.default[b].map(N=>N.toString())};let E=b.replace(l,(N,K,q,x,z)=>["#",K,K,q,q,x,x,z?z+z:""].join("")).match(s);if(E!==null)return{mode:"rgb",color:[parseInt(E[1],16),parseInt(E[2],16),parseInt(E[3],16)].map(N=>N.toString()),alpha:E[4]?(parseInt(E[4],16)/255).toString():void 0};var w;let F=(w=b.match(u))!==null&&w!==void 0?w:b.match(f);if(F===null)return null;let $=[F[2],F[3],F[4]].filter(Boolean).map(N=>N.toString());return $.length===2&&$[0].startsWith("var(")?{mode:F[1],color:[$[0]],alpha:$[1]}:!d&&$.length!==3||$.length<3&&!$.some(N=>/^var\(.*?\)$/.test(N))?null:{mode:F[1],color:$,alpha:(y=F[5])===null||y===void 0||(T=y.toString)===null||T===void 0?void 0:T.call(y)}}function v({mode:b,color:d,alpha:y}){let T=y!==void 0;return b==="rgba"||b==="hsla"?`${b}(${d.join(", ")}${T?`, ${y}`:""})`:`${b}(${d.join(" ")}${T?` / ${y}`:""})`}}(Ut),function(t){Object.defineProperty(t,"__esModule",{value:!0});function e(l,i){for(var h in i)Object.defineProperty(l,h,{enumerable:!0,get:i[h]})}e(t,{withAlphaValue:function(){return n},default:function(){return s}});const r=Ut;function n(l,i,h){if(typeof l=="function")return l({opacityValue:i});let a=(0,r.parseColor)(l,{loose:!0});return a===null?h:(0,r.formatColor)({...a,alpha:i})}function s({color:l,property:i,variable:h}){let a=[].concat(i);if(typeof l=="function")return{[h]:"1",...Object.fromEntries(a.map(u=>[u,l({opacityVariable:h,opacityValue:`var(${h})`})]))};const o=(0,r.parseColor)(l);return o===null?Object.fromEntries(a.map(u=>[u,l])):o.alpha!==void 0?Object.fromEntries(a.map(u=>[u,l])):{[h]:"1",...Object.fromEntries(a.map(u=>[u,(0,r.formatColor)({...o,alpha:`var(${h})`})]))}}}(Zt);var Yt={},Ln={},Mt={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"splitAtTopLevelOnly",{enumerable:!0,get:function(){return e}});function e(r,n){let s=[],l=[],i=0,h=!1;for(let a=0;a<r.length;a++){let o=r[a];s.length===0&&o===n[0]&&!h&&(n.length===1||r.slice(a,a+n.length)===n)&&(l.push(r.slice(i,a)),i=a+n.length),h=h?!1:o==="\\",o==="("||o==="["||o==="{"?s.push(o):(o===")"&&s[s.length-1]==="("||o==="]"&&s[s.length-1]==="["||o==="}"&&s[s.length-1]==="{")&&s.pop()}return l.push(r.slice(i)),l}})(Mt),function(t){Object.defineProperty(t,"__esModule",{value:!0});function e(a,o){for(var u in o)Object.defineProperty(a,u,{enumerable:!0,get:o[u]})}e(t,{parseBoxShadowValue:function(){return i},formatBoxShadowValue:function(){return h}});const r=Mt;let n=new Set(["inset","inherit","initial","revert","unset"]),s=/\ +(?![^(]*\))/g,l=/^-?(\d+|\.\d+)(.*?)$/g;function i(a){return(0,r.splitAtTopLevelOnly)(a,",").map(u=>{let f=u.trim(),m={raw:f},v=f.split(s),b=new Set;for(let d of v)l.lastIndex=0,!b.has("KEYWORD")&&n.has(d)?(m.keyword=d,b.add("KEYWORD")):l.test(d)?b.has("X")?b.has("Y")?b.has("BLUR")?b.has("SPREAD")||(m.spread=d,b.add("SPREAD")):(m.blur=d,b.add("BLUR")):(m.y=d,b.add("Y")):(m.x=d,b.add("X")):m.color?(m.unknown||(m.unknown=[]),m.unknown.push(d)):m.color=d;return m.valid=m.x!==void 0&&m.y!==void 0,m})}function h(a){return a.map(o=>o.valid?[o.keyword,o.x,o.y,o.blur,o.spread,o.color].filter(Boolean).join(" "):o.raw).join(", ")}}(Ln),function(t){Object.defineProperty(t,"__esModule",{value:!0});function e(O,R){for(var ie in R)Object.defineProperty(O,ie,{enumerable:!0,get:R[ie]})}e(t,{normalize:function(){return a},normalizeAttributeSelectors:function(){return o},url:function(){return f},number:function(){return m},percentage:function(){return v},length:function(){return y},lineWidth:function(){return E},shadow:function(){return w},color:function(){return F},image:function(){return $},gradient:function(){return K},position:function(){return x},familyName:function(){return z},genericName:function(){return D},absoluteSize:function(){return Q},relativeSize:function(){return k}});const r=Ut,n=Ln,s=Mt;let l=["min","max","clamp","calc"];function i(O){return l.some(R=>new RegExp(`^${R}\\(.*\\)`).test(O))}const h=new Set(["scroll-timeline-name","timeline-scope","view-timeline-name","font-palette","anchor-name","anchor-scope","position-anchor","position-try-options","scroll-timeline","animation-timeline","view-timeline","position-try"]);function a(O,R=null,ie=!0){let C=R&&h.has(R.property);return O.startsWith("--")&&!C?`var(${O})`:O.includes("url(")?O.split(/(url\(.*?\))/g).filter(Boolean).map(Z=>/^url\(.*?\)$/.test(Z)?Z:a(Z,R,!1)).join(""):(O=O.replace(/([^\\])_+/g,(Z,A)=>A+" ".repeat(Z.length-1)).replace(/^_/g," ").replace(/\\_/g,"_"),ie&&(O=O.trim()),O=u(O),O)}function o(O){return O.includes("=")&&(O=O.replace(/(=.*)/g,(R,ie)=>{if(ie[1]==="'"||ie[1]==='"')return ie;if(ie.length>2){let C=ie[ie.length-1];if(ie[ie.length-2]===" "&&(C==="i"||C==="I"||C==="s"||C==="S"))return`="${ie.slice(1,-2)}" ${ie[ie.length-1]}`}return`="${ie.slice(1)}"`})),O}function u(O){let R=["theme"],ie=["min-content","max-content","fit-content","safe-area-inset-top","safe-area-inset-right","safe-area-inset-bottom","safe-area-inset-left","titlebar-area-x","titlebar-area-y","titlebar-area-width","titlebar-area-height","keyboard-inset-top","keyboard-inset-right","keyboard-inset-bottom","keyboard-inset-left","keyboard-inset-width","keyboard-inset-height","radial-gradient","linear-gradient","conic-gradient","repeating-radial-gradient","repeating-linear-gradient","repeating-conic-gradient"];return O.replace(/(calc|min|max|clamp)\(.+\)/g,C=>{let Z="";function A(){let B=Z.trimEnd();return B[B.length-1]}for(let B=0;B<C.length;B++){let S=function(L){return L.split("").every((ne,ue)=>C[B+ue]===ne)},W=function(L){let ne=1/0;for(let ce of L){let se=C.indexOf(ce,B);se!==-1&&se<ne&&(ne=se)}let ue=C.slice(B,ne);return B+=ue.length-1,ue},V=C[B];if(S("var"))Z+=W([")",","]);else if(ie.some(L=>S(L))){let L=ie.find(ne=>S(ne));Z+=L,B+=L.length-1}else R.some(L=>S(L))?Z+=W([")"]):S("[")?Z+=W(["]"]):["+","-","*","/"].includes(V)&&!["(","+","-","*","/",","].includes(A())?Z+=` ${V} `:Z+=V}return Z.replace(/\s+/g," ")})}function f(O){return O.startsWith("url(")}function m(O){return!isNaN(Number(O))||i(O)}function v(O){return O.endsWith("%")&&m(O.slice(0,-1))||i(O)}let d=`(?:${["cm","mm","Q","in","pc","pt","px","em","ex","ch","rem","lh","rlh","vw","vh","vmin","vmax","vb","vi","svw","svh","lvw","lvh","dvw","dvh","cqw","cqh","cqi","cqb","cqmin","cqmax"].join("|")})`;function y(O){return O==="0"||new RegExp(`^[+-]?[0-9]*.?[0-9]+(?:[eE][+-]?[0-9]+)?${d}$`).test(O)||i(O)}let T=new Set(["thin","medium","thick"]);function E(O){return T.has(O)}function w(O){let R=(0,n.parseBoxShadowValue)(a(O));for(let ie of R)if(!ie.valid)return!1;return!0}function F(O){let R=0;return(0,s.splitAtTopLevelOnly)(O,"_").every(C=>(C=a(C),C.startsWith("var(")?!0:(0,r.parseColor)(C,{loose:!0})!==null?(R++,!0):!1))?R>0:!1}function $(O){let R=0;return(0,s.splitAtTopLevelOnly)(O,",").every(C=>(C=a(C),C.startsWith("var(")?!0:f(C)||K(C)||["element(","image(","cross-fade(","image-set("].some(Z=>C.startsWith(Z))?(R++,!0):!1))?R>0:!1}let N=new Set(["conic-gradient","linear-gradient","radial-gradient","repeating-conic-gradient","repeating-linear-gradient","repeating-radial-gradient"]);function K(O){O=a(O);for(let R of N)if(O.startsWith(`${R}(`))return!0;return!1}let q=new Set(["center","top","right","bottom","left"]);function x(O){let R=0;return(0,s.splitAtTopLevelOnly)(O,"_").every(C=>(C=a(C),C.startsWith("var(")?!0:q.has(C)||y(C)||v(C)?(R++,!0):!1))?R>0:!1}function z(O){let R=0;return(0,s.splitAtTopLevelOnly)(O,",").every(C=>(C=a(C),C.startsWith("var(")?!0:C.includes(" ")&&!/(['"])([^"']+)\1/g.test(C)||/^\d/g.test(C)?!1:(R++,!0)))?R>0:!1}let G=new Set(["serif","sans-serif","monospace","cursive","fantasy","system-ui","ui-serif","ui-sans-serif","ui-monospace","ui-rounded","math","emoji","fangsong"]);function D(O){return G.has(O)}let X=new Set(["xx-small","x-small","small","medium","large","x-large","xx-large","xxx-large"]);function Q(O){return X.has(O)}let I=new Set(["larger","smaller"]);function k(O){return I.has(O)}}(Yt);var Dn={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"backgroundSize",{enumerable:!0,get:function(){return n}});const e=Yt,r=Mt;function n(s){let l=["cover","contain"];return(0,r.splitAtTopLevelOnly)(s,",").every(i=>{let h=(0,r.splitAtTopLevelOnly)(i,"_").filter(Boolean);return h.length===1&&l.includes(h[0])?!0:h.length!==1&&h.length!==2?!1:h.every(a=>(0,e.length)(a)||(0,e.percentage)(a)||a==="auto")})}})(Dn),function(t){Object.defineProperty(t,"__esModule",{value:!0});function e(x,z){for(var G in z)Object.defineProperty(x,G,{enumerable:!0,get:z[G]})}e(t,{updateAllClasses:function(){return o},asValue:function(){return m},parseColorFormat:function(){return d},asColor:function(){return T},asLookupValue:function(){return E},typeMap:function(){return F},coerceValue:function(){return K},getMatchingTypes:function(){return q}});const r=a(En),n=Zt,s=Yt,l=a(jt),i=Dn,h=kt;function a(x){return x&&x.__esModule?x:{default:x}}function o(x,z){x.walkClasses(G=>{G.value=z(G.value),G.raws&&G.raws.value&&(G.raws.value=(0,r.default)(G.raws.value))})}function u(x,z){if(!v(x))return;let G=x.slice(1,-1);if(z(G))return(0,s.normalize)(G)}function f(x,z={},G){let D=z[x];if(D!==void 0)return(0,l.default)(D);if(v(x)){let X=u(x,G);return X===void 0?void 0:(0,l.default)(X)}}function m(x,z={},{validate:G=()=>!0}={}){var D;let X=(D=z.values)===null||D===void 0?void 0:D[x];return X!==void 0?X:z.supportsNegativeValues&&x.startsWith("-")?f(x.slice(1),z.values,G):u(x,G)}function v(x){return x.startsWith("[")&&x.endsWith("]")}function b(x){let z=x.lastIndexOf("/"),G=x.lastIndexOf("[",z),D=x.indexOf("]",z);return x[z-1]==="]"||x[z+1]==="["||G!==-1&&D!==-1&&G<z&&z<D&&(z=x.lastIndexOf("/",G)),z===-1||z===x.length-1?[x,void 0]:v(x)&&!x.includes("]/[")?[x,void 0]:[x.slice(0,z),x.slice(z+1)]}function d(x){if(typeof x=="string"&&x.includes("<alpha-value>")){let z=x;return({opacityValue:G=1})=>z.replace(/<alpha-value>/g,G)}return x}function y(x){return(0,s.normalize)(x.slice(1,-1))}function T(x,z={},{tailwindConfig:G={}}={}){var D;if(((D=z.values)===null||D===void 0?void 0:D[x])!==void 0){var X;return d((X=z.values)===null||X===void 0?void 0:X[x])}let[Q,I]=b(x);if(I!==void 0){var k,O,R,ie;let C=(ie=(k=z.values)===null||k===void 0?void 0:k[Q])!==null&&ie!==void 0?ie:v(Q)?Q.slice(1,-1):void 0;return C===void 0?void 0:(C=d(C),v(I)?(0,n.withAlphaValue)(C,y(I)):((O=G.theme)===null||O===void 0||(R=O.opacity)===null||R===void 0?void 0:R[I])===void 0?void 0:(0,n.withAlphaValue)(C,G.theme.opacity[I]))}return m(x,z,{validate:s.color})}function E(x,z={}){var G;return(G=z.values)===null||G===void 0?void 0:G[x]}function w(x){return(z,G)=>m(z,G,{validate:x})}let F={any:m,color:T,url:w(s.url),image:w(s.image),length:w(s.length),percentage:w(s.percentage),position:w(s.position),lookup:E,"generic-name":w(s.genericName),"family-name":w(s.familyName),number:w(s.number),"line-width":w(s.lineWidth),"absolute-size":w(s.absoluteSize),"relative-size":w(s.relativeSize),shadow:w(s.shadow),size:w(i.backgroundSize)},$=Object.keys(F);function N(x,z){let G=x.indexOf(z);return G===-1?[void 0,x]:[x.slice(0,G),x.slice(G+1)]}function K(x,z,G,D){if(G.values&&z in G.values)for(let{type:Q}of x!=null?x:[]){let I=F[Q](z,G,{tailwindConfig:D});if(I!==void 0)return[I,Q,null]}if(v(z)){let Q=z.slice(1,-1),[I,k]=N(Q,":");if(!/^[\w-_]+$/g.test(I))k=Q;else if(I!==void 0&&!$.includes(I))return[];if(k.length>0&&$.includes(I))return[m(`[${k}]`,G),I,null]}let X=q(x,z,G,D);for(let Q of X)return Q;return[]}function*q(x,z,G,D){let X=(0,h.flagEnabled)(D,"generalizedModifiers"),[Q,I]=b(z);if(X&&G.modifiers!=null&&(G.modifiers==="any"||typeof G.modifiers=="object"&&(I&&v(I)||I in G.modifiers))||(Q=z,I=void 0),I!==void 0&&Q===""&&(Q="DEFAULT"),I!==void 0&&typeof G.modifiers=="object"){var O,R;let ie=(R=(O=G.modifiers)===null||O===void 0?void 0:O[I])!==null&&R!==void 0?R:null;ie!==null?I=ie:v(I)&&(I=y(I))}for(let{type:ie}of x!=null?x:[]){let C=F[ie](Q,G,{tailwindConfig:D});C!==void 0&&(yield[C,ie,I!=null?I:null])}}}(Mn);var Pn={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return e}});function e(r){return typeof r=="function"?r({}):r}})(Pn),function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return G}});const e=v(jt),r=v(_n),n=v(yn),s=v(Gt),l=xn,i=wn,h=Sn,a=v(Tn),o=kn,u=Mn,f=Zt,m=v(Pn);function v(D){return D&&D.__esModule?D:{default:D}}function b(D){return typeof D=="function"}function d(D,...X){let Q=X.pop();for(let I of X)for(let k in I){let O=Q(D[k],I[k]);O===void 0?(0,a.default)(D[k])&&(0,a.default)(I[k])?D[k]=d({},D[k],I[k],Q):D[k]=I[k]:D[k]=O}return D}const y={colors:s.default,negative(D){return Object.keys(D).filter(X=>D[X]!=="0").reduce((X,Q)=>{let I=(0,e.default)(D[Q]);return I!==void 0&&(X[`-${Q}`]=I),X},{})},breakpoints(D){return Object.keys(D).filter(X=>typeof D[X]=="string").reduce((X,Q)=>({...X,[`screen-${Q}`]:D[Q]}),{})}};function T(D,...X){return b(D)?D(...X):D}function E(D){return D.reduce((X,{extend:Q})=>d(X,Q,(I,k)=>I===void 0?[k]:Array.isArray(I)?[k,...I]:[k,I]),{})}function w(D){return{...D.reduce((X,Q)=>(0,l.defaults)(X,Q),{}),extend:E(D)}}function F(D,X){if(Array.isArray(D)&&(0,a.default)(D[0]))return D.concat(X);if(Array.isArray(X)&&(0,a.default)(X[0])&&(0,a.default)(D))return[D,...X];if(Array.isArray(X))return X}function $({extend:D,...X}){return d(X,D,(Q,I)=>!b(Q)&&!I.some(b)?d({},Q,...I,F):(k,O)=>d({},...[Q,...I].map(R=>T(R,k,O)),F))}function*N(D){let X=(0,i.toPath)(D);if(X.length===0||(yield X,Array.isArray(D)))return;let Q=/^(.*?)\s*\/\s*([^/]+)$/,I=D.match(Q);if(I!==null){let[,k,O]=I,R=(0,i.toPath)(k);R.alpha=O,yield R}}function K(D){const X=(Q,I)=>{for(const k of N(Q)){let O=0,R=D;for(;R!=null&&O<k.length;)R=R[k[O++]],R=b(R)&&(k.alpha===void 0||O<=k.length-1)?R(X,y):R;if(R!==void 0){if(k.alpha!==void 0){let ie=(0,u.parseColorFormat)(R);return(0,f.withAlphaValue)(ie,k.alpha,(0,m.default)(ie))}return(0,a.default)(R)?(0,o.cloneDeep)(R):R}}return I};return Object.assign(X,{theme:X,...y}),Object.keys(D).reduce((Q,I)=>(Q[I]=b(D[I])?D[I](X,y):D[I],Q),{})}function q(D){let X=[];return D.forEach(Q=>{X=[...X,Q];var I;const k=(I=Q==null?void 0:Q.plugins)!==null&&I!==void 0?I:[];k.length!==0&&k.forEach(O=>{O.__isOptionsFunction&&(O=O());var R;X=[...X,...q([(R=O==null?void 0:O.config)!==null&&R!==void 0?R:{}])]})}),X}function x(D){return[...D].reduceRight((Q,I)=>b(I)?I({corePlugins:Q}):(0,n.default)(I,Q),r.default)}function z(D){return[...D].reduceRight((Q,I)=>[...Q,...I],[])}function G(D){let X=[...q(D),{prefix:"",important:!1,separator:":"}];var Q,I;return(0,h.normalizeConfig)((0,l.defaults)({theme:K($(w(X.map(k=>(Q=k==null?void 0:k.theme)!==null&&Q!==void 0?Q:{})))),corePlugins:x(X.map(k=>k.corePlugins)),plugins:z(D.map(k=>(I=k==null?void 0:k.plugins)!==null&&I!==void 0?I:[]))},...X))}}(vn);var On={},Bs={content:[],presets:[],darkMode:"media",theme:{accentColor:({theme:t})=>({...t("colors"),auto:"auto"}),animation:{none:"none",spin:"spin 1s linear infinite",ping:"ping 1s cubic-bezier(0, 0, 0.2, 1) infinite",pulse:"pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite",bounce:"bounce 1s infinite"},aria:{busy:'busy="true"',checked:'checked="true"',disabled:'disabled="true"',expanded:'expanded="true"',hidden:'hidden="true"',pressed:'pressed="true"',readonly:'readonly="true"',required:'required="true"',selected:'selected="true"'},aspectRatio:{auto:"auto",square:"1 / 1",video:"16 / 9"},backdropBlur:({theme:t})=>t("blur"),backdropBrightness:({theme:t})=>t("brightness"),backdropContrast:({theme:t})=>t("contrast"),backdropGrayscale:({theme:t})=>t("grayscale"),backdropHueRotate:({theme:t})=>t("hueRotate"),backdropInvert:({theme:t})=>t("invert"),backdropOpacity:({theme:t})=>t("opacity"),backdropSaturate:({theme:t})=>t("saturate"),backdropSepia:({theme:t})=>t("sepia"),backgroundColor:({theme:t})=>t("colors"),backgroundImage:{none:"none","gradient-to-t":"linear-gradient(to top, var(--tw-gradient-stops))","gradient-to-tr":"linear-gradient(to top right, var(--tw-gradient-stops))","gradient-to-r":"linear-gradient(to right, var(--tw-gradient-stops))","gradient-to-br":"linear-gradient(to bottom right, var(--tw-gradient-stops))","gradient-to-b":"linear-gradient(to bottom, var(--tw-gradient-stops))","gradient-to-bl":"linear-gradient(to bottom left, var(--tw-gradient-stops))","gradient-to-l":"linear-gradient(to left, var(--tw-gradient-stops))","gradient-to-tl":"linear-gradient(to top left, var(--tw-gradient-stops))"},backgroundOpacity:({theme:t})=>t("opacity"),backgroundPosition:{bottom:"bottom",center:"center",left:"left","left-bottom":"left bottom","left-top":"left top",right:"right","right-bottom":"right bottom","right-top":"right top",top:"top"},backgroundSize:{auto:"auto",cover:"cover",contain:"contain"},blur:{0:"0",none:"",sm:"4px",DEFAULT:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},borderColor:({theme:t})=>({...t("colors"),DEFAULT:t("colors.gray.200","currentColor")}),borderOpacity:({theme:t})=>t("opacity"),borderRadius:{none:"0px",sm:"0.125rem",DEFAULT:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},borderSpacing:({theme:t})=>({...t("spacing")}),borderWidth:{DEFAULT:"1px",0:"0px",2:"2px",4:"4px",8:"8px"},boxShadow:{sm:"0 1px 2px 0 rgb(0 0 0 / 0.05)",DEFAULT:"0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)",md:"0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)",lg:"0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)",xl:"0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)","2xl":"0 25px 50px -12px rgb(0 0 0 / 0.25)",inner:"inset 0 2px 4px 0 rgb(0 0 0 / 0.05)",none:"none"},boxShadowColor:({theme:t})=>t("colors"),brightness:{0:"0",50:".5",75:".75",90:".9",95:".95",100:"1",105:"1.05",110:"1.1",125:"1.25",150:"1.5",200:"2"},caretColor:({theme:t})=>t("colors"),colors:({colors:t})=>({inherit:t.inherit,current:t.current,transparent:t.transparent,black:t.black,white:t.white,slate:t.slate,gray:t.gray,zinc:t.zinc,neutral:t.neutral,stone:t.stone,red:t.red,orange:t.orange,amber:t.amber,yellow:t.yellow,lime:t.lime,green:t.green,emerald:t.emerald,teal:t.teal,cyan:t.cyan,sky:t.sky,blue:t.blue,indigo:t.indigo,violet:t.violet,purple:t.purple,fuchsia:t.fuchsia,pink:t.pink,rose:t.rose}),columns:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12","3xs":"16rem","2xs":"18rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem"},container:{},content:{none:"none"},contrast:{0:"0",50:".5",75:".75",100:"1",125:"1.25",150:"1.5",200:"2"},cursor:{auto:"auto",default:"default",pointer:"pointer",wait:"wait",text:"text",move:"move",help:"help","not-allowed":"not-allowed",none:"none","context-menu":"context-menu",progress:"progress",cell:"cell",crosshair:"crosshair","vertical-text":"vertical-text",alias:"alias",copy:"copy","no-drop":"no-drop",grab:"grab",grabbing:"grabbing","all-scroll":"all-scroll","col-resize":"col-resize","row-resize":"row-resize","n-resize":"n-resize","e-resize":"e-resize","s-resize":"s-resize","w-resize":"w-resize","ne-resize":"ne-resize","nw-resize":"nw-resize","se-resize":"se-resize","sw-resize":"sw-resize","ew-resize":"ew-resize","ns-resize":"ns-resize","nesw-resize":"nesw-resize","nwse-resize":"nwse-resize","zoom-in":"zoom-in","zoom-out":"zoom-out"},divideColor:({theme:t})=>t("borderColor"),divideOpacity:({theme:t})=>t("borderOpacity"),divideWidth:({theme:t})=>t("borderWidth"),dropShadow:{sm:"0 1px 1px rgb(0 0 0 / 0.05)",DEFAULT:["0 1px 2px rgb(0 0 0 / 0.1)","0 1px 1px rgb(0 0 0 / 0.06)"],md:["0 4px 3px rgb(0 0 0 / 0.07)","0 2px 2px rgb(0 0 0 / 0.06)"],lg:["0 10px 8px rgb(0 0 0 / 0.04)","0 4px 3px rgb(0 0 0 / 0.1)"],xl:["0 20px 13px rgb(0 0 0 / 0.03)","0 8px 5px rgb(0 0 0 / 0.08)"],"2xl":"0 25px 25px rgb(0 0 0 / 0.15)",none:"0 0 #0000"},fill:({theme:t})=>({none:"none",...t("colors")}),flex:{1:"1 1 0%",auto:"1 1 auto",initial:"0 1 auto",none:"none"},flexBasis:({theme:t})=>({auto:"auto",...t("spacing"),"1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.666667%","2/6":"33.333333%","3/6":"50%","4/6":"66.666667%","5/6":"83.333333%","1/12":"8.333333%","2/12":"16.666667%","3/12":"25%","4/12":"33.333333%","5/12":"41.666667%","6/12":"50%","7/12":"58.333333%","8/12":"66.666667%","9/12":"75%","10/12":"83.333333%","11/12":"91.666667%",full:"100%"}),flexGrow:{0:"0",DEFAULT:"1"},flexShrink:{0:"0",DEFAULT:"1"},fontFamily:{sans:["ui-sans-serif","system-ui","sans-serif",'"Apple Color Emoji"','"Segoe UI Emoji"','"Segoe UI Symbol"','"Noto Color Emoji"'],serif:["ui-serif","Georgia","Cambria",'"Times New Roman"',"Times","serif"],mono:["ui-monospace","SFMono-Regular","Menlo","Monaco","Consolas",'"Liberation Mono"','"Courier New"',"monospace"]},fontSize:{xs:["0.75rem",{lineHeight:"1rem"}],sm:["0.875rem",{lineHeight:"1.25rem"}],base:["1rem",{lineHeight:"1.5rem"}],lg:["1.125rem",{lineHeight:"1.75rem"}],xl:["1.25rem",{lineHeight:"1.75rem"}],"2xl":["1.5rem",{lineHeight:"2rem"}],"3xl":["1.875rem",{lineHeight:"2.25rem"}],"4xl":["2.25rem",{lineHeight:"2.5rem"}],"5xl":["3rem",{lineHeight:"1"}],"6xl":["3.75rem",{lineHeight:"1"}],"7xl":["4.5rem",{lineHeight:"1"}],"8xl":["6rem",{lineHeight:"1"}],"9xl":["8rem",{lineHeight:"1"}]},fontWeight:{thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},gap:({theme:t})=>t("spacing"),gradientColorStops:({theme:t})=>t("colors"),gradientColorStopPositions:{"0%":"0%","5%":"5%","10%":"10%","15%":"15%","20%":"20%","25%":"25%","30%":"30%","35%":"35%","40%":"40%","45%":"45%","50%":"50%","55%":"55%","60%":"60%","65%":"65%","70%":"70%","75%":"75%","80%":"80%","85%":"85%","90%":"90%","95%":"95%","100%":"100%"},grayscale:{0:"0",DEFAULT:"100%"},gridAutoColumns:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0, 1fr)"},gridAutoRows:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0, 1fr)"},gridColumn:{auto:"auto","span-1":"span 1 / span 1","span-2":"span 2 / span 2","span-3":"span 3 / span 3","span-4":"span 4 / span 4","span-5":"span 5 / span 5","span-6":"span 6 / span 6","span-7":"span 7 / span 7","span-8":"span 8 / span 8","span-9":"span 9 / span 9","span-10":"span 10 / span 10","span-11":"span 11 / span 11","span-12":"span 12 / span 12","span-full":"1 / -1"},gridColumnEnd:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12",13:"13"},gridColumnStart:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12",13:"13"},gridRow:{auto:"auto","span-1":"span 1 / span 1","span-2":"span 2 / span 2","span-3":"span 3 / span 3","span-4":"span 4 / span 4","span-5":"span 5 / span 5","span-6":"span 6 / span 6","span-7":"span 7 / span 7","span-8":"span 8 / span 8","span-9":"span 9 / span 9","span-10":"span 10 / span 10","span-11":"span 11 / span 11","span-12":"span 12 / span 12","span-full":"1 / -1"},gridRowEnd:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12",13:"13"},gridRowStart:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12",13:"13"},gridTemplateColumns:{none:"none",subgrid:"subgrid",1:"repeat(1, minmax(0, 1fr))",2:"repeat(2, minmax(0, 1fr))",3:"repeat(3, minmax(0, 1fr))",4:"repeat(4, minmax(0, 1fr))",5:"repeat(5, minmax(0, 1fr))",6:"repeat(6, minmax(0, 1fr))",7:"repeat(7, minmax(0, 1fr))",8:"repeat(8, minmax(0, 1fr))",9:"repeat(9, minmax(0, 1fr))",10:"repeat(10, minmax(0, 1fr))",11:"repeat(11, minmax(0, 1fr))",12:"repeat(12, minmax(0, 1fr))"},gridTemplateRows:{none:"none",subgrid:"subgrid",1:"repeat(1, minmax(0, 1fr))",2:"repeat(2, minmax(0, 1fr))",3:"repeat(3, minmax(0, 1fr))",4:"repeat(4, minmax(0, 1fr))",5:"repeat(5, minmax(0, 1fr))",6:"repeat(6, minmax(0, 1fr))",7:"repeat(7, minmax(0, 1fr))",8:"repeat(8, minmax(0, 1fr))",9:"repeat(9, minmax(0, 1fr))",10:"repeat(10, minmax(0, 1fr))",11:"repeat(11, minmax(0, 1fr))",12:"repeat(12, minmax(0, 1fr))"},height:({theme:t})=>({auto:"auto",...t("spacing"),"1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.666667%","2/6":"33.333333%","3/6":"50%","4/6":"66.666667%","5/6":"83.333333%",full:"100%",screen:"100vh",svh:"100svh",lvh:"100lvh",dvh:"100dvh",min:"min-content",max:"max-content",fit:"fit-content"}),hueRotate:{0:"0deg",15:"15deg",30:"30deg",60:"60deg",90:"90deg",180:"180deg"},inset:({theme:t})=>({auto:"auto",...t("spacing"),"1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%",full:"100%"}),invert:{0:"0",DEFAULT:"100%"},keyframes:{spin:{to:{transform:"rotate(360deg)"}},ping:{"75%, 100%":{transform:"scale(2)",opacity:"0"}},pulse:{"50%":{opacity:".5"}},bounce:{"0%, 100%":{transform:"translateY(-25%)",animationTimingFunction:"cubic-bezier(0.8,0,1,1)"},"50%":{transform:"none",animationTimingFunction:"cubic-bezier(0,0,0.2,1)"}}},letterSpacing:{tighter:"-0.05em",tight:"-0.025em",normal:"0em",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeight:{none:"1",tight:"1.25",snug:"1.375",normal:"1.5",relaxed:"1.625",loose:"2",3:".75rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem"},listStyleType:{none:"none",disc:"disc",decimal:"decimal"},listStyleImage:{none:"none"},margin:({theme:t})=>({auto:"auto",...t("spacing")}),lineClamp:{1:"1",2:"2",3:"3",4:"4",5:"5",6:"6"},maxHeight:({theme:t})=>({...t("spacing"),none:"none",full:"100%",screen:"100vh",svh:"100svh",lvh:"100lvh",dvh:"100dvh",min:"min-content",max:"max-content",fit:"fit-content"}),maxWidth:({theme:t,breakpoints:e})=>({...t("spacing"),none:"none",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem",full:"100%",min:"min-content",max:"max-content",fit:"fit-content",prose:"65ch",...e(t("screens"))}),minHeight:({theme:t})=>({...t("spacing"),full:"100%",screen:"100vh",svh:"100svh",lvh:"100lvh",dvh:"100dvh",min:"min-content",max:"max-content",fit:"fit-content"}),minWidth:({theme:t})=>({...t("spacing"),full:"100%",min:"min-content",max:"max-content",fit:"fit-content"}),objectPosition:{bottom:"bottom",center:"center",left:"left","left-bottom":"left bottom","left-top":"left top",right:"right","right-bottom":"right bottom","right-top":"right top",top:"top"},opacity:{0:"0",5:"0.05",10:"0.1",15:"0.15",20:"0.2",25:"0.25",30:"0.3",35:"0.35",40:"0.4",45:"0.45",50:"0.5",55:"0.55",60:"0.6",65:"0.65",70:"0.7",75:"0.75",80:"0.8",85:"0.85",90:"0.9",95:"0.95",100:"1"},order:{first:"-9999",last:"9999",none:"0",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12"},outlineColor:({theme:t})=>t("colors"),outlineOffset:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},outlineWidth:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},padding:({theme:t})=>t("spacing"),placeholderColor:({theme:t})=>t("colors"),placeholderOpacity:({theme:t})=>t("opacity"),ringColor:({theme:t})=>({DEFAULT:t("colors.blue.500","#3b82f6"),...t("colors")}),ringOffsetColor:({theme:t})=>t("colors"),ringOffsetWidth:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},ringOpacity:({theme:t})=>({DEFAULT:"0.5",...t("opacity")}),ringWidth:{DEFAULT:"3px",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},rotate:{0:"0deg",1:"1deg",2:"2deg",3:"3deg",6:"6deg",12:"12deg",45:"45deg",90:"90deg",180:"180deg"},saturate:{0:"0",50:".5",100:"1",150:"1.5",200:"2"},scale:{0:"0",50:".5",75:".75",90:".9",95:".95",100:"1",105:"1.05",110:"1.1",125:"1.25",150:"1.5"},screens:{sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},scrollMargin:({theme:t})=>({...t("spacing")}),scrollPadding:({theme:t})=>t("spacing"),sepia:{0:"0",DEFAULT:"100%"},skew:{0:"0deg",1:"1deg",2:"2deg",3:"3deg",6:"6deg",12:"12deg"},space:({theme:t})=>({...t("spacing")}),spacing:{px:"1px",0:"0px",.5:"0.125rem",1:"0.25rem",1.5:"0.375rem",2:"0.5rem",2.5:"0.625rem",3:"0.75rem",3.5:"0.875rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem",11:"2.75rem",12:"3rem",14:"3.5rem",16:"4rem",20:"5rem",24:"6rem",28:"7rem",32:"8rem",36:"9rem",40:"10rem",44:"11rem",48:"12rem",52:"13rem",56:"14rem",60:"15rem",64:"16rem",72:"18rem",80:"20rem",96:"24rem"},stroke:({theme:t})=>({none:"none",...t("colors")}),strokeWidth:{0:"0",1:"1",2:"2"},supports:{},data:{},textColor:({theme:t})=>t("colors"),textDecorationColor:({theme:t})=>t("colors"),textDecorationThickness:{auto:"auto","from-font":"from-font",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},textIndent:({theme:t})=>({...t("spacing")}),textOpacity:({theme:t})=>t("opacity"),textUnderlineOffset:{auto:"auto",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},transformOrigin:{center:"center",top:"top","top-right":"top right",right:"right","bottom-right":"bottom right",bottom:"bottom","bottom-left":"bottom left",left:"left","top-left":"top left"},transitionDelay:{0:"0s",75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms"},transitionDuration:{DEFAULT:"150ms",0:"0s",75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms"},transitionProperty:{none:"none",all:"all",DEFAULT:"color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter",colors:"color, background-color, border-color, text-decoration-color, fill, stroke",opacity:"opacity",shadow:"box-shadow",transform:"transform"},transitionTimingFunction:{DEFAULT:"cubic-bezier(0.4, 0, 0.2, 1)",linear:"linear",in:"cubic-bezier(0.4, 0, 1, 1)",out:"cubic-bezier(0, 0, 0.2, 1)","in-out":"cubic-bezier(0.4, 0, 0.2, 1)"},translate:({theme:t})=>({...t("spacing"),"1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%",full:"100%"}),size:({theme:t})=>({auto:"auto",...t("spacing"),"1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.666667%","2/6":"33.333333%","3/6":"50%","4/6":"66.666667%","5/6":"83.333333%","1/12":"8.333333%","2/12":"16.666667%","3/12":"25%","4/12":"33.333333%","5/12":"41.666667%","6/12":"50%","7/12":"58.333333%","8/12":"66.666667%","9/12":"75%","10/12":"83.333333%","11/12":"91.666667%",full:"100%",min:"min-content",max:"max-content",fit:"fit-content"}),width:({theme:t})=>({auto:"auto",...t("spacing"),"1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.666667%","2/6":"33.333333%","3/6":"50%","4/6":"66.666667%","5/6":"83.333333%","1/12":"8.333333%","2/12":"16.666667%","3/12":"25%","4/12":"33.333333%","5/12":"41.666667%","6/12":"50%","7/12":"58.333333%","8/12":"66.666667%","9/12":"75%","10/12":"83.333333%","11/12":"91.666667%",full:"100%",screen:"100vw",svw:"100svw",lvw:"100lvw",dvw:"100dvw",min:"min-content",max:"max-content",fit:"fit-content"}),willChange:{auto:"auto",scroll:"scroll-position",contents:"contents",transform:"transform"},zIndex:{auto:"auto",0:"0",10:"10",20:"20",30:"30",40:"40",50:"50"}},plugins:[]};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return s}});const e=n(Bs),r=kt;function n(l){return l&&l.__esModule?l:{default:l}}function s(l){var i;const h=((i=l==null?void 0:l.presets)!==null&&i!==void 0?i:[e.default]).slice().reverse().flatMap(u=>s(u instanceof Function?u():u)),a={respectDefaultRingColorOpacity:{theme:{ringColor:({theme:u})=>({DEFAULT:"#3b82f67f",...u("colors")})}},disableColorOpacityUtilitiesByDefault:{corePlugins:{backgroundOpacity:!1,borderOpacity:!1,divideOpacity:!1,placeholderOpacity:!1,ringOpacity:!1,textOpacity:!1}}},o=Object.keys(a).filter(u=>(0,r.flagEnabled)(l,u)).map(u=>a[u]);return[l,...o,...h]}})(On),function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return s}});const e=n(vn),r=n(On);function n(l){return l&&l.__esModule?l:{default:l}}function s(...l){let[,...i]=(0,r.default)(l[0]);return(0,e.default)([...l,...i])}}(gn);let Xt=gn;var Is=(Xt.__esModule?Xt:{default:Xt}).default;const As=St(Is);let Qt=Gt;var Vt=(Qt.__esModule?Qt:{default:Qt}).default;const zn=St(Vt),Fs=fn({__proto__:null,default:zn},[Vt]);var Bn={},In={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r}});function e(n,s){return{handler:n,config:s}}e.withOptions=function(n,s=()=>({})){const l=function(i){return{__options:i,handler:n(i),config:s(i)}};return l.__isOptionsFunction=!0,l.__pluginFunction=n,l.__configFunction=s,l};const r=e})(In),function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return n}});const e=r(In);function r(s){return s&&s.__esModule?s:{default:s}}const n=e.default}(Bn);let Kt=Bn;var Rs=(Kt.__esModule?Kt:{default:Kt}).default,Et={exports:{}};Et.exports,function(t,e){var r=200,n="__lodash_hash_undefined__",s=800,l=16,i=9007199254740991,h="[object Arguments]",a="[object Array]",o="[object AsyncFunction]",u="[object Boolean]",f="[object Date]",m="[object Error]",v="[object Function]",b="[object GeneratorFunction]",d="[object Map]",y="[object Number]",T="[object Null]",E="[object Object]",w="[object Proxy]",F="[object RegExp]",$="[object Set]",N="[object String]",K="[object Undefined]",q="[object WeakMap]",x="[object ArrayBuffer]",z="[object DataView]",G="[object Float32Array]",D="[object Float64Array]",X="[object Int8Array]",Q="[object Int16Array]",I="[object Int32Array]",k="[object Uint8Array]",O="[object Uint8ClampedArray]",R="[object Uint16Array]",ie="[object Uint32Array]",C=/[\\^$.*+?()[\]{}|]/g,Z=/^\[object .+?Constructor\]$/,A=/^(?:0|[1-9]\d*)$/,B={};B[G]=B[D]=B[X]=B[Q]=B[I]=B[k]=B[O]=B[R]=B[ie]=!0,B[h]=B[a]=B[x]=B[u]=B[z]=B[f]=B[m]=B[v]=B[d]=B[y]=B[E]=B[F]=B[$]=B[N]=B[q]=!1;var S=typeof st=="object"&&st&&st.Object===Object&&st,W=typeof self=="object"&&self&&self.Object===Object&&self,V=S||W||Function("return this")(),L=e&&!e.nodeType&&e,ne=L&&!0&&t&&!t.nodeType&&t,ue=ne&&ne.exports===L,ce=ue&&S.process,se=function(){try{var p=ne&&ne.require&&ne.require("util").types;return p||ce&&ce.binding&&ce.binding("util")}catch{}}(),he=se&&se.isTypedArray;function Te(p,_,M){switch(M.length){case 0:return p.call(_);case 1:return p.call(_,M[0]);case 2:return p.call(_,M[0],M[1]);case 3:return p.call(_,M[0],M[1],M[2])}return p.apply(_,M)}function le(p,_){for(var M=-1,re=Array(p);++M<p;)re[M]=_(M);return re}function ye(p){return function(_){return p(_)}}function Fe(p,_){return p==null?void 0:p[_]}function Be(p,_){return function(M){return p(_(M))}}var Me=Array.prototype,ke=Function.prototype,$e=Object.prototype,Ee=V["__core-js_shared__"],Le=ke.toString,De=$e.hasOwnProperty,Ke=function(){var p=/[^.]+$/.exec(Ee&&Ee.keys&&Ee.keys.IE_PROTO||"");return p?"Symbol(src)_1."+p:""}(),Xe=$e.toString,ot=Le.call(Object),_t=RegExp("^"+Le.call(De).replace(C,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),qe=ue?V.Buffer:void 0,ht=V.Symbol,zt=V.Uint8Array,Bt=qe?qe.allocUnsafe:void 0,ss=Be(Object.getPrototypeOf,Object),as=Object.create,R4=$e.propertyIsEnumerable,H4=Me.splice,lt=ht?ht.toStringTag:void 0,It=function(){try{var p=sn(Object,"defineProperty");return p({},"",{}),p}catch{}}(),N4=qe?qe.isBuffer:void 0,os=Math.max,W4=Date.now,ls=sn(V,"Map"),yt=sn(Object,"create"),j4=function(){function p(){}return function(_){if(!ut(_))return{};if(as)return as(_);p.prototype=_;var M=new p;return p.prototype=void 0,M}}();function ct(p){var _=-1,M=p==null?0:p.length;for(this.clear();++_<M;){var re=p[_];this.set(re[0],re[1])}}function G4(){this.__data__=yt?yt(null):{},this.size=0}function q4(p){var _=this.has(p)&&delete this.__data__[p];return this.size-=_?1:0,_}function Z4(p){var _=this.__data__;if(yt){var M=_[p];return M===n?void 0:M}return De.call(_,p)?_[p]:void 0}function U4(p){var _=this.__data__;return yt?_[p]!==void 0:De.call(_,p)}function Y4(p,_){var M=this.__data__;return this.size+=this.has(p)?0:1,M[p]=yt&&_===void 0?n:_,this}ct.prototype.clear=G4,ct.prototype.delete=q4,ct.prototype.get=Z4,ct.prototype.has=U4,ct.prototype.set=Y4;function Je(p){var _=-1,M=p==null?0:p.length;for(this.clear();++_<M;){var re=p[_];this.set(re[0],re[1])}}function X4(){this.__data__=[],this.size=0}function Q4(p){var _=this.__data__,M=At(_,p);if(M<0)return!1;var re=_.length-1;return M==re?_.pop():H4.call(_,M,1),--this.size,!0}function V4(p){var _=this.__data__,M=At(_,p);return M<0?void 0:_[M][1]}function K4(p){return At(this.__data__,p)>-1}function J4(p,_){var M=this.__data__,re=At(M,p);return re<0?(++this.size,M.push([p,_])):M[re][1]=_,this}Je.prototype.clear=X4,Je.prototype.delete=Q4,Je.prototype.get=V4,Je.prototype.has=K4,Je.prototype.set=J4;function ft(p){var _=-1,M=p==null?0:p.length;for(this.clear();++_<M;){var re=p[_];this.set(re[0],re[1])}}function e8(){this.size=0,this.__data__={hash:new ct,map:new(ls||Je),string:new ct}}function t8(p){var _=Rt(this,p).delete(p);return this.size-=_?1:0,_}function r8(p){return Rt(this,p).get(p)}function n8(p){return Rt(this,p).has(p)}function i8(p,_){var M=Rt(this,p),re=M.size;return M.set(p,_),this.size+=M.size==re?0:1,this}ft.prototype.clear=e8,ft.prototype.delete=t8,ft.prototype.get=r8,ft.prototype.has=n8,ft.prototype.set=i8;function pt(p){var _=this.__data__=new Je(p);this.size=_.size}function s8(){this.__data__=new Je,this.size=0}function a8(p){var _=this.__data__,M=_.delete(p);return this.size=_.size,M}function o8(p){return this.__data__.get(p)}function l8(p){return this.__data__.has(p)}function c8(p,_){var M=this.__data__;if(M instanceof Je){var re=M.__data__;if(!ls||re.length<r-1)return re.push([p,_]),this.size=++M.size,this;M=this.__data__=new ft(re)}return M.set(p,_),this.size=M.size,this}pt.prototype.clear=s8,pt.prototype.delete=a8,pt.prototype.get=o8,pt.prototype.has=l8,pt.prototype.set=c8;function u8(p,_){var M=ln(p),re=!M&&on(p),pe=!M&&!re&&fs(p),ve=!M&&!re&&!pe&&ms(p),xe=M||re||pe||ve,fe=xe?le(p.length,String):[],we=fe.length;for(var We in p)(_||De.call(p,We))&&!(xe&&(We=="length"||pe&&(We=="offset"||We=="parent")||ve&&(We=="buffer"||We=="byteLength"||We=="byteOffset")||ds(We,we)))&&fe.push(We);return fe}function rn(p,_,M){(M!==void 0&&!Ht(p[_],M)||M===void 0&&!(_ in p))&&nn(p,_,M)}function d8(p,_,M){var re=p[_];(!(De.call(p,_)&&Ht(re,M))||M===void 0&&!(_ in p))&&nn(p,_,M)}function At(p,_){for(var M=p.length;M--;)if(Ht(p[M][0],_))return M;return-1}function nn(p,_,M){_=="__proto__"&&It?It(p,_,{configurable:!0,enumerable:!0,value:M,writable:!0}):p[_]=M}var h8=T8();function Ft(p){return p==null?p===void 0?K:T:lt&< in Object(p)?k8(p):P8(p)}function cs(p){return Ct(p)&&Ft(p)==h}function f8(p){if(!ut(p)||L8(p))return!1;var _=un(p)?_t:Z;return _.test(I8(p))}function p8(p){return Ct(p)&&ps(p.length)&&!!B[Ft(p)]}function m8(p){if(!ut(p))return D8(p);var _=hs(p),M=[];for(var re in p)re=="constructor"&&(_||!De.call(p,re))||M.push(re);return M}function us(p,_,M,re,pe){p!==_&&h8(_,function(ve,xe){if(pe||(pe=new pt),ut(ve))g8(p,_,xe,M,us,re,pe);else{var fe=re?re(an(p,xe),ve,xe+"",p,_,pe):void 0;fe===void 0&&(fe=ve),rn(p,xe,fe)}},gs)}function g8(p,_,M,re,pe,ve,xe){var fe=an(p,M),we=an(_,M),We=xe.get(we);if(We){rn(p,M,We);return}var Re=ve?ve(fe,we,M+"",p,_,xe):void 0,bt=Re===void 0;if(bt){var dn=ln(we),hn=!dn&&fs(we),_s=!dn&&!hn&&ms(we);Re=we,dn||hn||_s?ln(fe)?Re=fe:A8(fe)?Re=x8(fe):hn?(bt=!1,Re=y8(we,!0)):_s?(bt=!1,Re=b8(we,!0)):Re=[]:F8(we)||on(we)?(Re=fe,on(fe)?Re=R8(fe):(!ut(fe)||un(fe))&&(Re=M8(we))):bt=!1}bt&&(xe.set(we,Re),pe(Re,we,re,ve,xe),xe.delete(we)),rn(p,M,Re)}function v8(p,_){return z8(O8(p,_,vs),p+"")}var _8=It?function(p,_){return It(p,"toString",{configurable:!0,enumerable:!1,value:N8(_),writable:!0})}:vs;function y8(p,_){if(_)return p.slice();var M=p.length,re=Bt?Bt(M):new p.constructor(M);return p.copy(re),re}function C8(p){var _=new p.constructor(p.byteLength);return new zt(_).set(new zt(p)),_}function b8(p,_){var M=_?C8(p.buffer):p.buffer;return new p.constructor(M,p.byteOffset,p.length)}function x8(p,_){var M=-1,re=p.length;for(_||(_=Array(re));++M<re;)_[M]=p[M];return _}function w8(p,_,M,re){var pe=!M;M||(M={});for(var ve=-1,xe=_.length;++ve<xe;){var fe=_[ve],we=re?re(M[fe],p[fe],fe,M,p):void 0;we===void 0&&(we=p[fe]),pe?nn(M,fe,we):d8(M,fe,we)}return M}function S8(p){return v8(function(_,M){var re=-1,pe=M.length,ve=pe>1?M[pe-1]:void 0,xe=pe>2?M[2]:void 0;for(ve=p.length>3&&typeof ve=="function"?(pe--,ve):void 0,xe&&E8(M[0],M[1],xe)&&(ve=pe<3?void 0:ve,pe=1),_=Object(_);++re<pe;){var fe=M[re];fe&&p(_,fe,re,ve)}return _})}function T8(p){return function(_,M,re){for(var pe=-1,ve=Object(_),xe=re(_),fe=xe.length;fe--;){var we=xe[p?fe:++pe];if(M(ve[we],we,ve)===!1)break}return _}}function Rt(p,_){var M=p.__data__;return $8(_)?M[typeof _=="string"?"string":"hash"]:M.map}function sn(p,_){var M=Fe(p,_);return f8(M)?M:void 0}function k8(p){var _=De.call(p,lt),M=p[lt];try{p[lt]=void 0;var re=!0}catch{}var pe=Xe.call(p);return re&&(_?p[lt]=M:delete p[lt]),pe}function M8(p){return typeof p.constructor=="function"&&!hs(p)?j4(ss(p)):{}}function ds(p,_){var M=typeof p;return _=_==null?i:_,!!_&&(M=="number"||M!="symbol"&&A.test(p))&&p>-1&&p%1==0&&p<_}function E8(p,_,M){if(!ut(M))return!1;var re=typeof _;return(re=="number"?cn(M)&&ds(_,M.length):re=="string"&&_ in M)?Ht(M[_],p):!1}function $8(p){var _=typeof p;return _=="string"||_=="number"||_=="symbol"||_=="boolean"?p!=="__proto__":p===null}function L8(p){return!!Ke&&Ke in p}function hs(p){var _=p&&p.constructor,M=typeof _=="function"&&_.prototype||$e;return p===M}function D8(p){var _=[];if(p!=null)for(var M in Object(p))_.push(M);return _}function P8(p){return Xe.call(p)}function O8(p,_,M){return _=os(_===void 0?p.length-1:_,0),function(){for(var re=arguments,pe=-1,ve=os(re.length-_,0),xe=Array(ve);++pe<ve;)xe[pe]=re[_+pe];pe=-1;for(var fe=Array(_+1);++pe<_;)fe[pe]=re[pe];return fe[_]=M(xe),Te(p,this,fe)}}function an(p,_){if(!(_==="constructor"&&typeof p[_]=="function")&&_!="__proto__")return p[_]}var z8=B8(_8);function B8(p){var _=0,M=0;return function(){var re=W4(),pe=l-(re-M);if(M=re,pe>0){if(++_>=s)return arguments[0]}else _=0;return p.apply(void 0,arguments)}}function I8(p){if(p!=null){try{return Le.call(p)}catch{}try{return p+""}catch{}}return""}function Ht(p,_){return p===_||p!==p&&_!==_}var on=cs(function(){return arguments}())?cs:function(p){return Ct(p)&&De.call(p,"callee")&&!R4.call(p,"callee")},ln=Array.isArray;function cn(p){return p!=null&&ps(p.length)&&!un(p)}function A8(p){return Ct(p)&&cn(p)}var fs=N4||W8;function un(p){if(!ut(p))return!1;var _=Ft(p);return _==v||_==b||_==o||_==w}function ps(p){return typeof p=="number"&&p>-1&&p%1==0&&p<=i}function ut(p){var _=typeof p;return p!=null&&(_=="object"||_=="function")}function Ct(p){return p!=null&&typeof p=="object"}function F8(p){if(!Ct(p)||Ft(p)!=E)return!1;var _=ss(p);if(_===null)return!0;var M=De.call(_,"constructor")&&_.constructor;return typeof M=="function"&&M instanceof M&&Le.call(M)==ot}var ms=he?ye(he):p8;function R8(p){return w8(p,gs(p))}function gs(p){return cn(p)?u8(p,!0):m8(p)}var H8=S8(function(p,_,M){us(p,_,M)});function N8(p){return function(){return p}}function vs(p){return p}function W8(){return!1}t.exports=H8}(Et,Et.exports);var Hs=Et.exports;function Ns(){if(!arguments.length)return[];var t=arguments[0];return Ws(t)?t:[t]}var Ws=Array.isArray,js=Ns;const g=Vt,oe=t=>t.toFixed(7).replace(/(\.[0-9]+?)0+$/,"$1").replace(/\.0$/,""),ze=t=>`${oe(t/16)}rem`,c=(t,e)=>`${oe(t/e)}em`,Ue=t=>{t=t.replace("#",""),t=t.length===3?t.replace(/./g,"$&$&"):t;const e=parseInt(t.substring(0,2),16),r=parseInt(t.substring(2,4),16),n=parseInt(t.substring(4,6),16);return`${e} ${r} ${n}`};let Jt={sm:{css:[{fontSize:ze(14),lineHeight:oe(24/14),p:{marginTop:c(16,14),marginBottom:c(16,14)},'[class~="lead"]':{fontSize:c(18,14),lineHeight:oe(28/18),marginTop:c(16,18),marginBottom:c(16,18)},blockquote:{marginTop:c(24,18),marginBottom:c(24,18),paddingInlineStart:c(20,18)},h1:{fontSize:c(30,14),marginTop:"0",marginBottom:c(24,30),lineHeight:oe(36/30)},h2:{fontSize:c(20,14),marginTop:c(32,20),marginBottom:c(16,20),lineHeight:oe(28/20)},h3:{fontSize:c(18,14),marginTop:c(28,18),marginBottom:c(8,18),lineHeight:oe(28/18)},h4:{marginTop:c(20,14),marginBottom:c(8,14),lineHeight:oe(20/14)},img:{marginTop:c(24,14),marginBottom:c(24,14)},picture:{marginTop:c(24,14),marginBottom:c(24,14)},"picture > img":{marginTop:"0",marginBottom:"0"},video:{marginTop:c(24,14),marginBottom:c(24,14)},kbd:{fontSize:c(12,14),borderRadius:ze(5),paddingTop:c(2,14),paddingInlineEnd:c(5,14),paddingBottom:c(2,14),paddingInlineStart:c(5,14)},code:{fontSize:c(12,14)},"h2 code":{fontSize:c(18,20)},"h3 code":{fontSize:c(16,18)},pre:{fontSize:c(12,14),lineHeight:oe(20/12),marginTop:c(20,12),marginBottom:c(20,12),borderRadius:ze(4),paddingTop:c(8,12),paddingInlineEnd:c(12,12),paddingBottom:c(8,12),paddingInlineStart:c(12,12)},ol:{marginTop:c(16,14),marginBottom:c(16,14),paddingInlineStart:c(22,14)},ul:{marginTop:c(16,14),marginBottom:c(16,14),paddingInlineStart:c(22,14)},li:{marginTop:c(4,14),marginBottom:c(4,14)},"ol > li":{paddingInlineStart:c(6,14)},"ul > li":{paddingInlineStart:c(6,14)},"> ul > li p":{marginTop:c(8,14),marginBottom:c(8,14)},"> ul > li > p:first-child":{marginTop:c(16,14)},"> ul > li > p:last-child":{marginBottom:c(16,14)},"> ol > li > p:first-child":{marginTop:c(16,14)},"> ol > li > p:last-child":{marginBottom:c(16,14)},"ul ul, ul ol, ol ul, ol ol":{marginTop:c(8,14),marginBottom:c(8,14)},dl:{marginTop:c(16,14),marginBottom:c(16,14)},dt:{marginTop:c(16,14)},dd:{marginTop:c(4,14),paddingInlineStart:c(22,14)},hr:{marginTop:c(40,14),marginBottom:c(40,14)},"hr + *":{marginTop:"0"},"h2 + *":{marginTop:"0"},"h3 + *":{marginTop:"0"},"h4 + *":{marginTop:"0"},table:{fontSize:c(12,14),lineHeight:oe(18/12)},"thead th":{paddingInlineEnd:c(12,12),paddingBottom:c(8,12),paddingInlineStart:c(12,12)},"thead th:first-child":{paddingInlineStart:"0"},"thead th:last-child":{paddingInlineEnd:"0"},"tbody td, tfoot td":{paddingTop:c(8,12),paddingInlineEnd:c(12,12),paddingBottom:c(8,12),paddingInlineStart:c(12,12)},"tbody td:first-child, tfoot td:first-child":{paddingInlineStart:"0"},"tbody td:last-child, tfoot td:last-child":{paddingInlineEnd:"0"},figure:{marginTop:c(24,14),marginBottom:c(24,14)},"figure > *":{marginTop:"0",marginBottom:"0"},figcaption:{fontSize:c(12,14),lineHeight:oe(16/12),marginTop:c(8,12)}},{"> :first-child":{marginTop:"0"},"> :last-child":{marginBottom:"0"}}]},base:{css:[{fontSize:ze(16),lineHeight:oe(28/16),p:{marginTop:c(20,16),marginBottom:c(20,16)},'[class~="lead"]':{fontSize:c(20,16),lineHeight:oe(32/20),marginTop:c(24,20),marginBottom:c(24,20)},blockquote:{marginTop:c(32,20),marginBottom:c(32,20),paddingInlineStart:c(20,20)},h1:{fontSize:c(36,16),marginTop:"0",marginBottom:c(32,36),lineHeight:oe(40/36)},h2:{fontSize:c(24,16),marginTop:c(48,24),marginBottom:c(24,24),lineHeight:oe(32/24)},h3:{fontSize:c(20,16),marginTop:c(32,20),marginBottom:c(12,20),lineHeight:oe(32/20)},h4:{marginTop:c(24,16),marginBottom:c(8,16),lineHeight:oe(24/16)},img:{marginTop:c(32,16),marginBottom:c(32,16)},picture:{marginTop:c(32,16),marginBottom:c(32,16)},"picture > img":{marginTop:"0",marginBottom:"0"},video:{marginTop:c(32,16),marginBottom:c(32,16)},kbd:{fontSize:c(14,16),borderRadius:ze(5),paddingTop:c(3,16),paddingInlineEnd:c(6,16),paddingBottom:c(3,16),paddingInlineStart:c(6,16)},code:{fontSize:c(14,16)},"h2 code":{fontSize:c(21,24)},"h3 code":{fontSize:c(18,20)},pre:{fontSize:c(14,16),lineHeight:oe(24/14),marginTop:c(24,14),marginBottom:c(24,14),borderRadius:ze(6),paddingTop:c(12,14),paddingInlineEnd:c(16,14),paddingBottom:c(12,14),paddingInlineStart:c(16,14)},ol:{marginTop:c(20,16),marginBottom:c(20,16),paddingInlineStart:c(26,16)},ul:{marginTop:c(20,16),marginBottom:c(20,16),paddingInlineStart:c(26,16)},li:{marginTop:c(8,16),marginBottom:c(8,16)},"ol > li":{paddingInlineStart:c(6,16)},"ul > li":{paddingInlineStart:c(6,16)},"> ul > li p":{marginTop:c(12,16),marginBottom:c(12,16)},"> ul > li > p:first-child":{marginTop:c(20,16)},"> ul > li > p:last-child":{marginBottom:c(20,16)},"> ol > li > p:first-child":{marginTop:c(20,16)},"> ol > li > p:last-child":{marginBottom:c(20,16)},"ul ul, ul ol, ol ul, ol ol":{marginTop:c(12,16),marginBottom:c(12,16)},dl:{marginTop:c(20,16),marginBottom:c(20,16)},dt:{marginTop:c(20,16)},dd:{marginTop:c(8,16),paddingInlineStart:c(26,16)},hr:{marginTop:c(48,16),marginBottom:c(48,16)},"hr + *":{marginTop:"0"},"h2 + *":{marginTop:"0"},"h3 + *":{marginTop:"0"},"h4 + *":{marginTop:"0"},table:{fontSize:c(14,16),lineHeight:oe(24/14)},"thead th":{paddingInlineEnd:c(8,14),paddingBottom:c(8,14),paddingInlineStart:c(8,14)},"thead th:first-child":{paddingInlineStart:"0"},"thead th:last-child":{paddingInlineEnd:"0"},"tbody td, tfoot td":{paddingTop:c(8,14),paddingInlineEnd:c(8,14),paddingBottom:c(8,14),paddingInlineStart:c(8,14)},"tbody td:first-child, tfoot td:first-child":{paddingInlineStart:"0"},"tbody td:last-child, tfoot td:last-child":{paddingInlineEnd:"0"},figure:{marginTop:c(32,16),marginBottom:c(32,16)},"figure > *":{marginTop:"0",marginBottom:"0"},figcaption:{fontSize:c(14,16),lineHeight:oe(20/14),marginTop:c(12,14)}},{"> :first-child":{marginTop:"0"},"> :last-child":{marginBottom:"0"}}]},lg:{css:[{fontSize:ze(18),lineHeight:oe(32/18),p:{marginTop:c(24,18),marginBottom:c(24,18)},'[class~="lead"]':{fontSize:c(22,18),lineHeight:oe(32/22),marginTop:c(24,22),marginBottom:c(24,22)},blockquote:{marginTop:c(40,24),marginBottom:c(40,24),paddingInlineStart:c(24,24)},h1:{fontSize:c(48,18),marginTop:"0",marginBottom:c(40,48),lineHeight:oe(48/48)},h2:{fontSize:c(30,18),marginTop:c(56,30),marginBottom:c(32,30),lineHeight:oe(40/30)},h3:{fontSize:c(24,18),marginTop:c(40,24),marginBottom:c(16,24),lineHeight:oe(36/24)},h4:{marginTop:c(32,18),marginBottom:c(8,18),lineHeight:oe(28/18)},img:{marginTop:c(32,18),marginBottom:c(32,18)},picture:{marginTop:c(32,18),marginBottom:c(32,18)},"picture > img":{marginTop:"0",marginBottom:"0"},video:{marginTop:c(32,18),marginBottom:c(32,18)},kbd:{fontSize:c(16,18),borderRadius:ze(5),paddingTop:c(4,18),paddingInlineEnd:c(8,18),paddingBottom:c(4,18),paddingInlineStart:c(8,18)},code:{fontSize:c(16,18)},"h2 code":{fontSize:c(26,30)},"h3 code":{fontSize:c(21,24)},pre:{fontSize:c(16,18),lineHeight:oe(28/16),marginTop:c(32,16),marginBottom:c(32,16),borderRadius:ze(6),paddingTop:c(16,16),paddingInlineEnd:c(24,16),paddingBottom:c(16,16),paddingInlineStart:c(24,16)},ol:{marginTop:c(24,18),marginBottom:c(24,18),paddingInlineStart:c(28,18)},ul:{marginTop:c(24,18),marginBottom:c(24,18),paddingInlineStart:c(28,18)},li:{marginTop:c(12,18),marginBottom:c(12,18)},"ol > li":{paddingInlineStart:c(8,18)},"ul > li":{paddingInlineStart:c(8,18)},"> ul > li p":{marginTop:c(16,18),marginBottom:c(16,18)},"> ul > li > p:first-child":{marginTop:c(24,18)},"> ul > li > p:last-child":{marginBottom:c(24,18)},"> ol > li > p:first-child":{marginTop:c(24,18)},"> ol > li > p:last-child":{marginBottom:c(24,18)},"ul ul, ul ol, ol ul, ol ol":{marginTop:c(16,18),marginBottom:c(16,18)},dl:{marginTop:c(24,18),marginBottom:c(24,18)},dt:{marginTop:c(24,18)},dd:{marginTop:c(12,18),paddingInlineStart:c(28,18)},hr:{marginTop:c(56,18),marginBottom:c(56,18)},"hr + *":{marginTop:"0"},"h2 + *":{marginTop:"0"},"h3 + *":{marginTop:"0"},"h4 + *":{marginTop:"0"},table:{fontSize:c(16,18),lineHeight:oe(24/16)},"thead th":{paddingInlineEnd:c(12,16),paddingBottom:c(12,16),paddingInlineStart:c(12,16)},"thead th:first-child":{paddingInlineStart:"0"},"thead th:last-child":{paddingInlineEnd:"0"},"tbody td, tfoot td":{paddingTop:c(12,16),paddingInlineEnd:c(12,16),paddingBottom:c(12,16),paddingInlineStart:c(12,16)},"tbody td:first-child, tfoot td:first-child":{paddingInlineStart:"0"},"tbody td:last-child, tfoot td:last-child":{paddingInlineEnd:"0"},figure:{marginTop:c(32,18),marginBottom:c(32,18)},"figure > *":{marginTop:"0",marginBottom:"0"},figcaption:{fontSize:c(16,18),lineHeight:oe(24/16),marginTop:c(16,16)}},{"> :first-child":{marginTop:"0"},"> :last-child":{marginBottom:"0"}}]},xl:{css:[{fontSize:ze(20),lineHeight:oe(36/20),p:{marginTop:c(24,20),marginBottom:c(24,20)},'[class~="lead"]':{fontSize:c(24,20),lineHeight:oe(36/24),marginTop:c(24,24),marginBottom:c(24,24)},blockquote:{marginTop:c(48,30),marginBottom:c(48,30),paddingInlineStart:c(32,30)},h1:{fontSize:c(56,20),marginTop:"0",marginBottom:c(48,56),lineHeight:oe(56/56)},h2:{fontSize:c(36,20),marginTop:c(56,36),marginBottom:c(32,36),lineHeight:oe(40/36)},h3:{fontSize:c(30,20),marginTop:c(48,30),marginBottom:c(20,30),lineHeight:oe(40/30)},h4:{marginTop:c(36,20),marginBottom:c(12,20),lineHeight:oe(32/20)},img:{marginTop:c(40,20),marginBottom:c(40,20)},picture:{marginTop:c(40,20),marginBottom:c(40,20)},"picture > img":{marginTop:"0",marginBottom:"0"},video:{marginTop:c(40,20),marginBottom:c(40,20)},kbd:{fontSize:c(18,20),borderRadius:ze(5),paddingTop:c(5,20),paddingInlineEnd:c(8,20),paddingBottom:c(5,20),paddingInlineStart:c(8,20)},code:{fontSize:c(18,20)},"h2 code":{fontSize:c(31,36)},"h3 code":{fontSize:c(27,30)},pre:{fontSize:c(18,20),lineHeight:oe(32/18),marginTop:c(36,18),marginBottom:c(36,18),borderRadius:ze(8),paddingTop:c(20,18),paddingInlineEnd:c(24,18),paddingBottom:c(20,18),paddingInlineStart:c(24,18)},ol:{marginTop:c(24,20),marginBottom:c(24,20),paddingInlineStart:c(32,20)},ul:{marginTop:c(24,20),marginBottom:c(24,20),paddingInlineStart:c(32,20)},li:{marginTop:c(12,20),marginBottom:c(12,20)},"ol > li":{paddingInlineStart:c(8,20)},"ul > li":{paddingInlineStart:c(8,20)},"> ul > li p":{marginTop:c(16,20),marginBottom:c(16,20)},"> ul > li > p:first-child":{marginTop:c(24,20)},"> ul > li > p:last-child":{marginBottom:c(24,20)},"> ol > li > p:first-child":{marginTop:c(24,20)},"> ol > li > p:last-child":{marginBottom:c(24,20)},"ul ul, ul ol, ol ul, ol ol":{marginTop:c(16,20),marginBottom:c(16,20)},dl:{marginTop:c(24,20),marginBottom:c(24,20)},dt:{marginTop:c(24,20)},dd:{marginTop:c(12,20),paddingInlineStart:c(32,20)},hr:{marginTop:c(56,20),marginBottom:c(56,20)},"hr + *":{marginTop:"0"},"h2 + *":{marginTop:"0"},"h3 + *":{marginTop:"0"},"h4 + *":{marginTop:"0"},table:{fontSize:c(18,20),lineHeight:oe(28/18)},"thead th":{paddingInlineEnd:c(12,18),paddingBottom:c(16,18),paddingInlineStart:c(12,18)},"thead th:first-child":{paddingInlineStart:"0"},"thead th:last-child":{paddingInlineEnd:"0"},"tbody td, tfoot td":{paddingTop:c(16,18),paddingInlineEnd:c(12,18),paddingBottom:c(16,18),paddingInlineStart:c(12,18)},"tbody td:first-child, tfoot td:first-child":{paddingInlineStart:"0"},"tbody td:last-child, tfoot td:last-child":{paddingInlineEnd:"0"},figure:{marginTop:c(40,20),marginBottom:c(40,20)},"figure > *":{marginTop:"0",marginBottom:"0"},figcaption:{fontSize:c(18,20),lineHeight:oe(28/18),marginTop:c(18,18)}},{"> :first-child":{marginTop:"0"},"> :last-child":{marginBottom:"0"}}]},"2xl":{css:[{fontSize:ze(24),lineHeight:oe(40/24),p:{marginTop:c(32,24),marginBottom:c(32,24)},'[class~="lead"]':{fontSize:c(30,24),lineHeight:oe(44/30),marginTop:c(32,30),marginBottom:c(32,30)},blockquote:{marginTop:c(64,36),marginBottom:c(64,36),paddingInlineStart:c(40,36)},h1:{fontSize:c(64,24),marginTop:"0",marginBottom:c(56,64),lineHeight:oe(64/64)},h2:{fontSize:c(48,24),marginTop:c(72,48),marginBottom:c(40,48),lineHeight:oe(52/48)},h3:{fontSize:c(36,24),marginTop:c(56,36),marginBottom:c(24,36),lineHeight:oe(44/36)},h4:{marginTop:c(40,24),marginBottom:c(16,24),lineHeight:oe(36/24)},img:{marginTop:c(48,24),marginBottom:c(48,24)},picture:{marginTop:c(48,24),marginBottom:c(48,24)},"picture > img":{marginTop:"0",marginBottom:"0"},video:{marginTop:c(48,24),marginBottom:c(48,24)},kbd:{fontSize:c(20,24),borderRadius:ze(6),paddingTop:c(6,24),paddingInlineEnd:c(8,24),paddingBottom:c(6,24),paddingInlineStart:c(8,24)},code:{fontSize:c(20,24)},"h2 code":{fontSize:c(42,48)},"h3 code":{fontSize:c(32,36)},pre:{fontSize:c(20,24),lineHeight:oe(36/20),marginTop:c(40,20),marginBottom:c(40,20),borderRadius:ze(8),paddingTop:c(24,20),paddingInlineEnd:c(32,20),paddingBottom:c(24,20),paddingInlineStart:c(32,20)},ol:{marginTop:c(32,24),marginBottom:c(32,24),paddingInlineStart:c(38,24)},ul:{marginTop:c(32,24),marginBottom:c(32,24),paddingInlineStart:c(38,24)},li:{marginTop:c(12,24),marginBottom:c(12,24)},"ol > li":{paddingInlineStart:c(10,24)},"ul > li":{paddingInlineStart:c(10,24)},"> ul > li p":{marginTop:c(20,24),marginBottom:c(20,24)},"> ul > li > p:first-child":{marginTop:c(32,24)},"> ul > li > p:last-child":{marginBottom:c(32,24)},"> ol > li > p:first-child":{marginTop:c(32,24)},"> ol > li > p:last-child":{marginBottom:c(32,24)},"ul ul, ul ol, ol ul, ol ol":{marginTop:c(16,24),marginBottom:c(16,24)},dl:{marginTop:c(32,24),marginBottom:c(32,24)},dt:{marginTop:c(32,24)},dd:{marginTop:c(12,24),paddingInlineStart:c(38,24)},hr:{marginTop:c(72,24),marginBottom:c(72,24)},"hr + *":{marginTop:"0"},"h2 + *":{marginTop:"0"},"h3 + *":{marginTop:"0"},"h4 + *":{marginTop:"0"},table:{fontSize:c(20,24),lineHeight:oe(28/20)},"thead th":{paddingInlineEnd:c(12,20),paddingBottom:c(16,20),paddingInlineStart:c(12,20)},"thead th:first-child":{paddingInlineStart:"0"},"thead th:last-child":{paddingInlineEnd:"0"},"tbody td, tfoot td":{paddingTop:c(16,20),paddingInlineEnd:c(12,20),paddingBottom:c(16,20),paddingInlineStart:c(12,20)},"tbody td:first-child, tfoot td:first-child":{paddingInlineStart:"0"},"tbody td:last-child, tfoot td:last-child":{paddingInlineEnd:"0"},figure:{marginTop:c(48,24),marginBottom:c(48,24)},"figure > *":{marginTop:"0",marginBottom:"0"},figcaption:{fontSize:c(20,24),lineHeight:oe(32/20),marginTop:c(20,20)}},{"> :first-child":{marginTop:"0"},"> :last-child":{marginBottom:"0"}}]},slate:{css:{"--tw-prose-body":g.slate[700],"--tw-prose-headings":g.slate[900],"--tw-prose-lead":g.slate[600],"--tw-prose-links":g.slate[900],"--tw-prose-bold":g.slate[900],"--tw-prose-counters":g.slate[500],"--tw-prose-bullets":g.slate[300],"--tw-prose-hr":g.slate[200],"--tw-prose-quotes":g.slate[900],"--tw-prose-quote-borders":g.slate[200],"--tw-prose-captions":g.slate[500],"--tw-prose-kbd":g.slate[900],"--tw-prose-kbd-shadows":Ue(g.slate[900]),"--tw-prose-code":g.slate[900],"--tw-prose-pre-code":g.slate[200],"--tw-prose-pre-bg":g.slate[800],"--tw-prose-th-borders":g.slate[300],"--tw-prose-td-borders":g.slate[200],"--tw-prose-invert-body":g.slate[300],"--tw-prose-invert-headings":g.white,"--tw-prose-invert-lead":g.slate[400],"--tw-prose-invert-links":g.white,"--tw-prose-invert-bold":g.white,"--tw-prose-invert-counters":g.slate[400],"--tw-prose-invert-bullets":g.slate[600],"--tw-prose-invert-hr":g.slate[700],"--tw-prose-invert-quotes":g.slate[100],"--tw-prose-invert-quote-borders":g.slate[700],"--tw-prose-invert-captions":g.slate[400],"--tw-prose-invert-kbd":g.white,"--tw-prose-invert-kbd-shadows":Ue(g.white),"--tw-prose-invert-code":g.white,"--tw-prose-invert-pre-code":g.slate[300],"--tw-prose-invert-pre-bg":"rgb(0 0 0 / 50%)","--tw-prose-invert-th-borders":g.slate[600],"--tw-prose-invert-td-borders":g.slate[700]}},gray:{css:{"--tw-prose-body":g.gray[700],"--tw-prose-headings":g.gray[900],"--tw-prose-lead":g.gray[600],"--tw-prose-links":g.gray[900],"--tw-prose-bold":g.gray[900],"--tw-prose-counters":g.gray[500],"--tw-prose-bullets":g.gray[300],"--tw-prose-hr":g.gray[200],"--tw-prose-quotes":g.gray[900],"--tw-prose-quote-borders":g.gray[200],"--tw-prose-captions":g.gray[500],"--tw-prose-kbd":g.gray[900],"--tw-prose-kbd-shadows":Ue(g.gray[900]),"--tw-prose-code":g.gray[900],"--tw-prose-pre-code":g.gray[200],"--tw-prose-pre-bg":g.gray[800],"--tw-prose-th-borders":g.gray[300],"--tw-prose-td-borders":g.gray[200],"--tw-prose-invert-body":g.gray[300],"--tw-prose-invert-headings":g.white,"--tw-prose-invert-lead":g.gray[400],"--tw-prose-invert-links":g.white,"--tw-prose-invert-bold":g.white,"--tw-prose-invert-counters":g.gray[400],"--tw-prose-invert-bullets":g.gray[600],"--tw-prose-invert-hr":g.gray[700],"--tw-prose-invert-quotes":g.gray[100],"--tw-prose-invert-quote-borders":g.gray[700],"--tw-prose-invert-captions":g.gray[400],"--tw-prose-invert-kbd":g.white,"--tw-prose-invert-kbd-shadows":Ue(g.white),"--tw-prose-invert-code":g.white,"--tw-prose-invert-pre-code":g.gray[300],"--tw-prose-invert-pre-bg":"rgb(0 0 0 / 50%)","--tw-prose-invert-th-borders":g.gray[600],"--tw-prose-invert-td-borders":g.gray[700]}},zinc:{css:{"--tw-prose-body":g.zinc[700],"--tw-prose-headings":g.zinc[900],"--tw-prose-lead":g.zinc[600],"--tw-prose-links":g.zinc[900],"--tw-prose-bold":g.zinc[900],"--tw-prose-counters":g.zinc[500],"--tw-prose-bullets":g.zinc[300],"--tw-prose-hr":g.zinc[200],"--tw-prose-quotes":g.zinc[900],"--tw-prose-quote-borders":g.zinc[200],"--tw-prose-captions":g.zinc[500],"--tw-prose-kbd":g.zinc[900],"--tw-prose-kbd-shadows":Ue(g.zinc[900]),"--tw-prose-code":g.zinc[900],"--tw-prose-pre-code":g.zinc[200],"--tw-prose-pre-bg":g.zinc[800],"--tw-prose-th-borders":g.zinc[300],"--tw-prose-td-borders":g.zinc[200],"--tw-prose-invert-body":g.zinc[300],"--tw-prose-invert-headings":g.white,"--tw-prose-invert-lead":g.zinc[400],"--tw-prose-invert-links":g.white,"--tw-prose-invert-bold":g.white,"--tw-prose-invert-counters":g.zinc[400],"--tw-prose-invert-bullets":g.zinc[600],"--tw-prose-invert-hr":g.zinc[700],"--tw-prose-invert-quotes":g.zinc[100],"--tw-prose-invert-quote-borders":g.zinc[700],"--tw-prose-invert-captions":g.zinc[400],"--tw-prose-invert-kbd":g.white,"--tw-prose-invert-kbd-shadows":Ue(g.white),"--tw-prose-invert-code":g.white,"--tw-prose-invert-pre-code":g.zinc[300],"--tw-prose-invert-pre-bg":"rgb(0 0 0 / 50%)","--tw-prose-invert-th-borders":g.zinc[600],"--tw-prose-invert-td-borders":g.zinc[700]}},neutral:{css:{"--tw-prose-body":g.neutral[700],"--tw-prose-headings":g.neutral[900],"--tw-prose-lead":g.neutral[600],"--tw-prose-links":g.neutral[900],"--tw-prose-bold":g.neutral[900],"--tw-prose-counters":g.neutral[500],"--tw-prose-bullets":g.neutral[300],"--tw-prose-hr":g.neutral[200],"--tw-prose-quotes":g.neutral[900],"--tw-prose-quote-borders":g.neutral[200],"--tw-prose-captions":g.neutral[500],"--tw-prose-kbd":g.neutral[900],"--tw-prose-kbd-shadows":Ue(g.neutral[900]),"--tw-prose-code":g.neutral[900],"--tw-prose-pre-code":g.neutral[200],"--tw-prose-pre-bg":g.neutral[800],"--tw-prose-th-borders":g.neutral[300],"--tw-prose-td-borders":g.neutral[200],"--tw-prose-invert-body":g.neutral[300],"--tw-prose-invert-headings":g.white,"--tw-prose-invert-lead":g.neutral[400],"--tw-prose-invert-links":g.white,"--tw-prose-invert-bold":g.white,"--tw-prose-invert-counters":g.neutral[400],"--tw-prose-invert-bullets":g.neutral[600],"--tw-prose-invert-hr":g.neutral[700],"--tw-prose-invert-quotes":g.neutral[100],"--tw-prose-invert-quote-borders":g.neutral[700],"--tw-prose-invert-captions":g.neutral[400],"--tw-prose-invert-kbd":g.white,"--tw-prose-invert-kbd-shadows":Ue(g.white),"--tw-prose-invert-code":g.white,"--tw-prose-invert-pre-code":g.neutral[300],"--tw-prose-invert-pre-bg":"rgb(0 0 0 / 50%)","--tw-prose-invert-th-borders":g.neutral[600],"--tw-prose-invert-td-borders":g.neutral[700]}},stone:{css:{"--tw-prose-body":g.stone[700],"--tw-prose-headings":g.stone[900],"--tw-prose-lead":g.stone[600],"--tw-prose-links":g.stone[900],"--tw-prose-bold":g.stone[900],"--tw-prose-counters":g.stone[500],"--tw-prose-bullets":g.stone[300],"--tw-prose-hr":g.stone[200],"--tw-prose-quotes":g.stone[900],"--tw-prose-quote-borders":g.stone[200],"--tw-prose-captions":g.stone[500],"--tw-prose-kbd":g.stone[900],"--tw-prose-kbd-shadows":Ue(g.stone[900]),"--tw-prose-code":g.stone[900],"--tw-prose-pre-code":g.stone[200],"--tw-prose-pre-bg":g.stone[800],"--tw-prose-th-borders":g.stone[300],"--tw-prose-td-borders":g.stone[200],"--tw-prose-invert-body":g.stone[300],"--tw-prose-invert-headings":g.white,"--tw-prose-invert-lead":g.stone[400],"--tw-prose-invert-links":g.white,"--tw-prose-invert-bold":g.white,"--tw-prose-invert-counters":g.stone[400],"--tw-prose-invert-bullets":g.stone[600],"--tw-prose-invert-hr":g.stone[700],"--tw-prose-invert-quotes":g.stone[100],"--tw-prose-invert-quote-borders":g.stone[700],"--tw-prose-invert-captions":g.stone[400],"--tw-prose-invert-kbd":g.white,"--tw-prose-invert-kbd-shadows":Ue(g.white),"--tw-prose-invert-code":g.white,"--tw-prose-invert-pre-code":g.stone[300],"--tw-prose-invert-pre-bg":"rgb(0 0 0 / 50%)","--tw-prose-invert-th-borders":g.stone[600],"--tw-prose-invert-td-borders":g.stone[700]}},red:{css:{"--tw-prose-links":g.red[600],"--tw-prose-invert-links":g.red[500]}},orange:{css:{"--tw-prose-links":g.orange[600],"--tw-prose-invert-links":g.orange[500]}},amber:{css:{"--tw-prose-links":g.amber[600],"--tw-prose-invert-links":g.amber[500]}},yellow:{css:{"--tw-prose-links":g.yellow[600],"--tw-prose-invert-links":g.yellow[500]}},lime:{css:{"--tw-prose-links":g.lime[600],"--tw-prose-invert-links":g.lime[500]}},green:{css:{"--tw-prose-links":g.green[600],"--tw-prose-invert-links":g.green[500]}},emerald:{css:{"--tw-prose-links":g.emerald[600],"--tw-prose-invert-links":g.emerald[500]}},teal:{css:{"--tw-prose-links":g.teal[600],"--tw-prose-invert-links":g.teal[500]}},cyan:{css:{"--tw-prose-links":g.cyan[600],"--tw-prose-invert-links":g.cyan[500]}},sky:{css:{"--tw-prose-links":g.sky[600],"--tw-prose-invert-links":g.sky[500]}},blue:{css:{"--tw-prose-links":g.blue[600],"--tw-prose-invert-links":g.blue[500]}},indigo:{css:{"--tw-prose-links":g.indigo[600],"--tw-prose-invert-links":g.indigo[500]}},violet:{css:{"--tw-prose-links":g.violet[600],"--tw-prose-invert-links":g.violet[500]}},purple:{css:{"--tw-prose-links":g.purple[600],"--tw-prose-invert-links":g.purple[500]}},fuchsia:{css:{"--tw-prose-links":g.fuchsia[600],"--tw-prose-invert-links":g.fuchsia[500]}},pink:{css:{"--tw-prose-links":g.pink[600],"--tw-prose-invert-links":g.pink[500]}},rose:{css:{"--tw-prose-links":g.rose[600],"--tw-prose-invert-links":g.rose[500]}},invert:{css:{"--tw-prose-body":"var(--tw-prose-invert-body)","--tw-prose-headings":"var(--tw-prose-invert-headings)","--tw-prose-lead":"var(--tw-prose-invert-lead)","--tw-prose-links":"var(--tw-prose-invert-links)","--tw-prose-bold":"var(--tw-prose-invert-bold)","--tw-prose-counters":"var(--tw-prose-invert-counters)","--tw-prose-bullets":"var(--tw-prose-invert-bullets)","--tw-prose-hr":"var(--tw-prose-invert-hr)","--tw-prose-quotes":"var(--tw-prose-invert-quotes)","--tw-prose-quote-borders":"var(--tw-prose-invert-quote-borders)","--tw-prose-captions":"var(--tw-prose-invert-captions)","--tw-prose-kbd":"var(--tw-prose-invert-kbd)","--tw-prose-kbd-shadows":"var(--tw-prose-invert-kbd-shadows)","--tw-prose-code":"var(--tw-prose-invert-code)","--tw-prose-pre-code":"var(--tw-prose-invert-pre-code)","--tw-prose-pre-bg":"var(--tw-prose-invert-pre-bg)","--tw-prose-th-borders":"var(--tw-prose-invert-th-borders)","--tw-prose-td-borders":"var(--tw-prose-invert-td-borders)"}}};var Gs={DEFAULT:{css:[{color:"var(--tw-prose-body)",maxWidth:"65ch",p:{},'[class~="lead"]':{color:"var(--tw-prose-lead)"},a:{color:"var(--tw-prose-links)",textDecoration:"underline",fontWeight:"500"},strong:{color:"var(--tw-prose-bold)",fontWeight:"600"},"a strong":{color:"inherit"},"blockquote strong":{color:"inherit"},"thead th strong":{color:"inherit"},ol:{listStyleType:"decimal"},'ol[type="A"]':{listStyleType:"upper-alpha"},'ol[type="a"]':{listStyleType:"lower-alpha"},'ol[type="A" s]':{listStyleType:"upper-alpha"},'ol[type="a" s]':{listStyleType:"lower-alpha"},'ol[type="I"]':{listStyleType:"upper-roman"},'ol[type="i"]':{listStyleType:"lower-roman"},'ol[type="I" s]':{listStyleType:"upper-roman"},'ol[type="i" s]':{listStyleType:"lower-roman"},'ol[type="1"]':{listStyleType:"decimal"},ul:{listStyleType:"disc"},"ol > li::marker":{fontWeight:"400",color:"var(--tw-prose-counters)"},"ul > li::marker":{color:"var(--tw-prose-bullets)"},dt:{color:"var(--tw-prose-headings)",fontWeight:"600"},hr:{borderColor:"var(--tw-prose-hr)",borderTopWidth:1},blockquote:{fontWeight:"500",fontStyle:"italic",color:"var(--tw-prose-quotes)",borderInlineStartWidth:"0.25rem",borderInlineStartColor:"var(--tw-prose-quote-borders)",quotes:'"\\201C""\\201D""\\2018""\\2019"'},"blockquote p:first-of-type::before":{content:"open-quote"},"blockquote p:last-of-type::after":{content:"close-quote"},h1:{color:"var(--tw-prose-headings)",fontWeight:"800"},"h1 strong":{fontWeight:"900",color:"inherit"},h2:{color:"var(--tw-prose-headings)",fontWeight:"700"},"h2 strong":{fontWeight:"800",color:"inherit"},h3:{color:"var(--tw-prose-headings)",fontWeight:"600"},"h3 strong":{fontWeight:"700",color:"inherit"},h4:{color:"var(--tw-prose-headings)",fontWeight:"600"},"h4 strong":{fontWeight:"700",color:"inherit"},img:{},picture:{display:"block"},video:{},kbd:{fontWeight:"500",fontFamily:"inherit",color:"var(--tw-prose-kbd)",boxShadow:"0 0 0 1px rgb(var(--tw-prose-kbd-shadows) / 10%), 0 3px 0 rgb(var(--tw-prose-kbd-shadows) / 10%)"},code:{color:"var(--tw-prose-code)",fontWeight:"600"},"code::before":{content:'"`"'},"code::after":{content:'"`"'},"a code":{color:"inherit"},"h1 code":{color:"inherit"},"h2 code":{color:"inherit"},"h3 code":{color:"inherit"},"h4 code":{color:"inherit"},"blockquote code":{color:"inherit"},"thead th code":{color:"inherit"},pre:{color:"var(--tw-prose-pre-code)",backgroundColor:"var(--tw-prose-pre-bg)",overflowX:"auto",fontWeight:"400"},"pre code":{backgroundColor:"transparent",borderWidth:"0",borderRadius:"0",padding:"0",fontWeight:"inherit",color:"inherit",fontSize:"inherit",fontFamily:"inherit",lineHeight:"inherit"},"pre code::before":{content:"none"},"pre code::after":{content:"none"},table:{width:"100%",tableLayout:"auto",marginTop:c(32,16),marginBottom:c(32,16)},thead:{borderBottomWidth:"1px",borderBottomColor:"var(--tw-prose-th-borders)"},"thead th":{color:"var(--tw-prose-headings)",fontWeight:"600",verticalAlign:"bottom"},"tbody tr":{borderBottomWidth:"1px",borderBottomColor:"var(--tw-prose-td-borders)"},"tbody tr:last-child":{borderBottomWidth:"0"},"tbody td":{verticalAlign:"baseline"},tfoot:{borderTopWidth:"1px",borderTopColor:"var(--tw-prose-th-borders)"},"tfoot td":{verticalAlign:"top"},"th, td":{textAlign:"start"},"figure > *":{},figcaption:{color:"var(--tw-prose-captions)"}},Jt.gray.css,...Jt.base.css]},...Jt},qs="[object Object]";function Zs(t){var e=!1;if(t!=null&&typeof t.toString!="function")try{e=!!(t+"")}catch{}return e}function Us(t,e){return function(r){return t(e(r))}}var Ys=Function.prototype,An=Object.prototype,Fn=Ys.toString,Xs=An.hasOwnProperty,Qs=Fn.call(Object),Vs=An.toString,Ks=Us(Object.getPrototypeOf,Object);function Js(t){return!!t&&typeof t=="object"}function ea(t){if(!Js(t)||Vs.call(t)!=qs||Zs(t))return!1;var e=Ks(t);if(e===null)return!0;var r=Xs.call(e,"constructor")&&e.constructor;return typeof r=="function"&&r instanceof r&&Fn.call(r)==Qs}var ta=ea,er={exports:{}},tr={exports:{}},rr={exports:{}},nr={exports:{}},ir={exports:{}},sr={exports:{}},Ae={},ar={exports:{}};(function(t,e){e.__esModule=!0,e.default=s;function r(l){for(var i=l.toLowerCase(),h="",a=!1,o=0;o<6&&i[o]!==void 0;o++){var u=i.charCodeAt(o),f=u>=97&&u<=102||u>=48&&u<=57;if(a=u===32,!f)break;h+=i[o]}if(h.length!==0){var m=parseInt(h,16),v=m>=55296&&m<=57343;return v||m===0||m>1114111?["�",h.length+(a?1:0)]:[String.fromCodePoint(m),h.length+(a?1:0)]}}var n=/\\/;function s(l){var i=n.test(l);if(!i)return l;for(var h="",a=0;a<l.length;a++){if(l[a]==="\\"){var o=r(l.slice(a+1,a+7));if(o!==void 0){h+=o[0],a+=o[1];continue}if(l[a+1]==="\\"){h+="\\",a++;continue}l.length===a+1&&(h+=l[a]);continue}h+=l[a]}return h}t.exports=e.default})(ar,ar.exports);var Rn=ar.exports,or={exports:{}};(function(t,e){e.__esModule=!0,e.default=r;function r(n){for(var s=arguments.length,l=new Array(s>1?s-1:0),i=1;i<s;i++)l[i-1]=arguments[i];for(;l.length>0;){var h=l.shift();if(!n[h])return;n=n[h]}return n}t.exports=e.default})(or,or.exports);var ra=or.exports,lr={exports:{}};(function(t,e){e.__esModule=!0,e.default=r;function r(n){for(var s=arguments.length,l=new Array(s>1?s-1:0),i=1;i<s;i++)l[i-1]=arguments[i];for(;l.length>0;){var h=l.shift();n[h]||(n[h]={}),n=n[h]}}t.exports=e.default})(lr,lr.exports);var na=lr.exports,cr={exports:{}};(function(t,e){e.__esModule=!0,e.default=r;function r(n){for(var s="",l=n.indexOf("/*"),i=0;l>=0;){s=s+n.slice(i,l);var h=n.indexOf("*/",l+2);if(h<0)return s;i=h+2,l=n.indexOf("/*",i)}return s=s+n.slice(i),s}t.exports=e.default})(cr,cr.exports);var ia=cr.exports;Ae.__esModule=!0,Ae.stripComments=Ae.ensureObject=Ae.getProp=Ae.unesc=void 0;var sa=$t(Rn);Ae.unesc=sa.default;var aa=$t(ra);Ae.getProp=aa.default;var oa=$t(na);Ae.ensureObject=oa.default;var la=$t(ia);Ae.stripComments=la.default;function $t(t){return t&&t.__esModule?t:{default:t}}(function(t,e){e.__esModule=!0,e.default=void 0;var r=Ae;function n(h,a){for(var o=0;o<a.length;o++){var u=a[o];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(h,u.key,u)}}function s(h,a,o){return a&&n(h.prototype,a),o&&n(h,o),h}var l=function h(a,o){if(typeof a!="object"||a===null)return a;var u=new a.constructor;for(var f in a)if(a.hasOwnProperty(f)){var m=a[f],v=typeof m;f==="parent"&&v==="object"?o&&(u[f]=o):m instanceof Array?u[f]=m.map(function(b){return h(b,u)}):u[f]=h(m,u)}return u},i=function(){function h(o){o===void 0&&(o={}),Object.assign(this,o),this.spaces=this.spaces||{},this.spaces.before=this.spaces.before||"",this.spaces.after=this.spaces.after||""}var a=h.prototype;return a.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},a.replaceWith=function(){if(this.parent){for(var u in arguments)this.parent.insertBefore(this,arguments[u]);this.remove()}return this},a.next=function(){return this.parent.at(this.parent.index(this)+1)},a.prev=function(){return this.parent.at(this.parent.index(this)-1)},a.clone=function(u){u===void 0&&(u={});var f=l(this);for(var m in u)f[m]=u[m];return f},a.appendToPropertyAndEscape=function(u,f,m){this.raws||(this.raws={});var v=this[u],b=this.raws[u];this[u]=v+f,b||m!==f?this.raws[u]=(b||v)+m:delete this.raws[u]},a.setPropertyAndEscape=function(u,f,m){this.raws||(this.raws={}),this[u]=f,this.raws[u]=m},a.setPropertyWithoutEscape=function(u,f){this[u]=f,this.raws&&delete this.raws[u]},a.isAtPosition=function(u,f){if(this.source&&this.source.start&&this.source.end)return!(this.source.start.line>u||this.source.end.line<u||this.source.start.line===u&&this.source.start.column>f||this.source.end.line===u&&this.source.end.column<f)},a.stringifyProperty=function(u){return this.raws&&this.raws[u]||this[u]},a.valueToString=function(){return String(this.stringifyProperty("value"))},a.toString=function(){return[this.rawSpaceBefore,this.valueToString(),this.rawSpaceAfter].join("")},s(h,[{key:"rawSpaceBefore",get:function(){var u=this.raws&&this.raws.spaces&&this.raws.spaces.before;return u===void 0&&(u=this.spaces&&this.spaces.before),u||""},set:function(u){(0,r.ensureObject)(this,"raws","spaces"),this.raws.spaces.before=u}},{key:"rawSpaceAfter",get:function(){var u=this.raws&&this.raws.spaces&&this.raws.spaces.after;return u===void 0&&(u=this.spaces.after),u||""},set:function(u){(0,r.ensureObject)(this,"raws","spaces"),this.raws.spaces.after=u}}]),h}();e.default=i,t.exports=e.default})(sr,sr.exports);var tt=sr.exports,de={};de.__esModule=!0,de.UNIVERSAL=de.ATTRIBUTE=de.CLASS=de.COMBINATOR=de.COMMENT=de.ID=de.NESTING=de.PSEUDO=de.ROOT=de.SELECTOR=de.STRING=de.TAG=void 0;var ca="tag";de.TAG=ca;var ua="string";de.STRING=ua;var da="selector";de.SELECTOR=da;var ha="root";de.ROOT=ha;var fa="pseudo";de.PSEUDO=fa;var pa="nesting";de.NESTING=pa;var ma="id";de.ID=ma;var ga="comment";de.COMMENT=ga;var va="combinator";de.COMBINATOR=va;var _a="class";de.CLASS=_a;var ya="attribute";de.ATTRIBUTE=ya;var Ca="universal";de.UNIVERSAL=Ca,function(t,e){e.__esModule=!0,e.default=void 0;var r=i(tt),n=l(de);function s(){if(typeof WeakMap!="function")return null;var d=new WeakMap;return s=function(){return d},d}function l(d){if(d&&d.__esModule)return d;if(d===null||typeof d!="object"&&typeof d!="function")return{default:d};var y=s();if(y&&y.has(d))return y.get(d);var T={},E=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var w in d)if(Object.prototype.hasOwnProperty.call(d,w)){var F=E?Object.getOwnPropertyDescriptor(d,w):null;F&&(F.get||F.set)?Object.defineProperty(T,w,F):T[w]=d[w]}return T.default=d,y&&y.set(d,T),T}function i(d){return d&&d.__esModule?d:{default:d}}function h(d,y){var T;if(typeof Symbol=="undefined"||d[Symbol.iterator]==null){if(Array.isArray(d)||(T=a(d))||y&&d&&typeof d.length=="number"){T&&(d=T);var E=0;return function(){return E>=d.length?{done:!0}:{done:!1,value:d[E++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
2
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}return T=d[Symbol.iterator](),T.next.bind(T)}function a(d,y){if(d){if(typeof d=="string")return o(d,y);var T=Object.prototype.toString.call(d).slice(8,-1);if(T==="Object"&&d.constructor&&(T=d.constructor.name),T==="Map"||T==="Set")return Array.from(d);if(T==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(T))return o(d,y)}}function o(d,y){(y==null||y>d.length)&&(y=d.length);for(var T=0,E=new Array(y);T<y;T++)E[T]=d[T];return E}function u(d,y){for(var T=0;T<y.length;T++){var E=y[T];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(d,E.key,E)}}function f(d,y,T){return y&&u(d.prototype,y),T&&u(d,T),d}function m(d,y){d.prototype=Object.create(y.prototype),d.prototype.constructor=d,v(d,y)}function v(d,y){return v=Object.setPrototypeOf||function(E,w){return E.__proto__=w,E},v(d,y)}var b=function(d){m(y,d);function y(E){var w;return w=d.call(this,E)||this,w.nodes||(w.nodes=[]),w}var T=y.prototype;return T.append=function(w){return w.parent=this,this.nodes.push(w),this},T.prepend=function(w){return w.parent=this,this.nodes.unshift(w),this},T.at=function(w){return this.nodes[w]},T.index=function(w){return typeof w=="number"?w:this.nodes.indexOf(w)},T.removeChild=function(w){w=this.index(w),this.at(w).parent=void 0,this.nodes.splice(w,1);var F;for(var $ in this.indexes)F=this.indexes[$],F>=w&&(this.indexes[$]=F-1);return this},T.removeAll=function(){for(var w=h(this.nodes),F;!(F=w()).done;){var $=F.value;$.parent=void 0}return this.nodes=[],this},T.empty=function(){return this.removeAll()},T.insertAfter=function(w,F){F.parent=this;var $=this.index(w);this.nodes.splice($+1,0,F),F.parent=this;var N;for(var K in this.indexes)N=this.indexes[K],$<=N&&(this.indexes[K]=N+1);return this},T.insertBefore=function(w,F){F.parent=this;var $=this.index(w);this.nodes.splice($,0,F),F.parent=this;var N;for(var K in this.indexes)N=this.indexes[K],N<=$&&(this.indexes[K]=N+1);return this},T._findChildAtPosition=function(w,F){var $=void 0;return this.each(function(N){if(N.atPosition){var K=N.atPosition(w,F);if(K)return $=K,!1}else if(N.isAtPosition(w,F))return $=N,!1}),$},T.atPosition=function(w,F){if(this.isAtPosition(w,F))return this._findChildAtPosition(w,F)||this},T._inferEndPosition=function(){this.last&&this.last.source&&this.last.source.end&&(this.source=this.source||{},this.source.end=this.source.end||{},Object.assign(this.source.end,this.last.source.end))},T.each=function(w){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach++;var F=this.lastEach;if(this.indexes[F]=0,!!this.length){for(var $,N;this.indexes[F]<this.length&&($=this.indexes[F],N=w(this.at($),$),N!==!1);)this.indexes[F]+=1;if(delete this.indexes[F],N===!1)return!1}},T.walk=function(w){return this.each(function(F,$){var N=w(F,$);if(N!==!1&&F.length&&(N=F.walk(w)),N===!1)return!1})},T.walkAttributes=function(w){var F=this;return this.walk(function($){if($.type===n.ATTRIBUTE)return w.call(F,$)})},T.walkClasses=function(w){var F=this;return this.walk(function($){if($.type===n.CLASS)return w.call(F,$)})},T.walkCombinators=function(w){var F=this;return this.walk(function($){if($.type===n.COMBINATOR)return w.call(F,$)})},T.walkComments=function(w){var F=this;return this.walk(function($){if($.type===n.COMMENT)return w.call(F,$)})},T.walkIds=function(w){var F=this;return this.walk(function($){if($.type===n.ID)return w.call(F,$)})},T.walkNesting=function(w){var F=this;return this.walk(function($){if($.type===n.NESTING)return w.call(F,$)})},T.walkPseudos=function(w){var F=this;return this.walk(function($){if($.type===n.PSEUDO)return w.call(F,$)})},T.walkTags=function(w){var F=this;return this.walk(function($){if($.type===n.TAG)return w.call(F,$)})},T.walkUniversals=function(w){var F=this;return this.walk(function($){if($.type===n.UNIVERSAL)return w.call(F,$)})},T.split=function(w){var F=this,$=[];return this.reduce(function(N,K,q){var x=w.call(F,K);return $.push(K),x?(N.push($),$=[]):q===F.length-1&&N.push($),N},[])},T.map=function(w){return this.nodes.map(w)},T.reduce=function(w,F){return this.nodes.reduce(w,F)},T.every=function(w){return this.nodes.every(w)},T.some=function(w){return this.nodes.some(w)},T.filter=function(w){return this.nodes.filter(w)},T.sort=function(w){return this.nodes.sort(w)},T.toString=function(){return this.map(String).join("")},f(y,[{key:"first",get:function(){return this.at(0)}},{key:"last",get:function(){return this.at(this.length-1)}},{key:"length",get:function(){return this.nodes.length}}]),y}(r.default);e.default=b,t.exports=e.default}(ir,ir.exports);var ur=ir.exports;(function(t,e){e.__esModule=!0,e.default=void 0;var r=s(ur),n=de;function s(u){return u&&u.__esModule?u:{default:u}}function l(u,f){for(var m=0;m<f.length;m++){var v=f[m];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(u,v.key,v)}}function i(u,f,m){return f&&l(u.prototype,f),m&&l(u,m),u}function h(u,f){u.prototype=Object.create(f.prototype),u.prototype.constructor=u,a(u,f)}function a(u,f){return a=Object.setPrototypeOf||function(v,b){return v.__proto__=b,v},a(u,f)}var o=function(u){h(f,u);function f(v){var b;return b=u.call(this,v)||this,b.type=n.ROOT,b}var m=f.prototype;return m.toString=function(){var b=this.reduce(function(d,y){return d.push(String(y)),d},[]).join(",");return this.trailingComma?b+",":b},m.error=function(b,d){return this._error?this._error(b,d):new Error(b)},i(f,[{key:"errorGenerator",set:function(b){this._error=b}}]),f}(r.default);e.default=o,t.exports=e.default})(nr,nr.exports);var Hn=nr.exports,dr={exports:{}};(function(t,e){e.__esModule=!0,e.default=void 0;var r=s(ur),n=de;function s(a){return a&&a.__esModule?a:{default:a}}function l(a,o){a.prototype=Object.create(o.prototype),a.prototype.constructor=a,i(a,o)}function i(a,o){return i=Object.setPrototypeOf||function(f,m){return f.__proto__=m,f},i(a,o)}var h=function(a){l(o,a);function o(u){var f;return f=a.call(this,u)||this,f.type=n.SELECTOR,f}return o}(r.default);e.default=h,t.exports=e.default})(dr,dr.exports);var Nn=dr.exports,hr={exports:{}};/*! https://mths.be/cssesc v3.0.0 by @mathias */var ba={},xa=ba.hasOwnProperty,wa=function(e,r){if(!e)return r;var n={};for(var s in r)n[s]=xa.call(e,s)?e[s]:r[s];return n},Sa=/[ -,\.\/:-@\[-\^`\{-~]/,Ta=/[ -,\.\/:-@\[\]\^`\{-~]/,ka=/(^|\\+)?(\\[A-F0-9]{1,6})\x20(?![a-fA-F0-9\x20])/g,fr=function t(e,r){r=wa(r,t.options),r.quotes!="single"&&r.quotes!="double"&&(r.quotes="single");for(var n=r.quotes=="double"?'"':"'",s=r.isIdentifier,l=e.charAt(0),i="",h=0,a=e.length;h<a;){var o=e.charAt(h++),u=o.charCodeAt(),f=void 0;if(u<32||u>126){if(u>=55296&&u<=56319&&h<a){var m=e.charCodeAt(h++);(m&64512)==56320?u=((u&1023)<<10)+(m&1023)+65536:h--}f="\\"+u.toString(16).toUpperCase()+" "}else r.escapeEverything?Sa.test(o)?f="\\"+o:f="\\"+u.toString(16).toUpperCase()+" ":/[\t\n\f\r\x0B]/.test(o)?f="\\"+u.toString(16).toUpperCase()+" ":o=="\\"||!s&&(o=='"'&&n==o||o=="'"&&n==o)||s&&Ta.test(o)?f="\\"+o:f=o;i+=f}return s&&(/^-[-\d]/.test(i)?i="\\-"+i.slice(1):/\d/.test(l)&&(i="\\3"+l+" "+i.slice(1))),i=i.replace(ka,function(v,b,d){return b&&b.length%2?v:(b||"")+d}),!s&&r.wrap?n+i+n:i};fr.options={escapeEverything:!1,isIdentifier:!1,quotes:"single",wrap:!1},fr.version="3.0.0";var pr=fr;(function(t,e){e.__esModule=!0,e.default=void 0;var r=i(pr),n=Ae,s=i(tt),l=de;function i(m){return m&&m.__esModule?m:{default:m}}function h(m,v){for(var b=0;b<v.length;b++){var d=v[b];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(m,d.key,d)}}function a(m,v,b){return v&&h(m.prototype,v),b&&h(m,b),m}function o(m,v){m.prototype=Object.create(v.prototype),m.prototype.constructor=m,u(m,v)}function u(m,v){return u=Object.setPrototypeOf||function(d,y){return d.__proto__=y,d},u(m,v)}var f=function(m){o(v,m);function v(d){var y;return y=m.call(this,d)||this,y.type=l.CLASS,y._constructed=!0,y}var b=v.prototype;return b.valueToString=function(){return"."+m.prototype.valueToString.call(this)},a(v,[{key:"value",get:function(){return this._value},set:function(y){if(this._constructed){var T=(0,r.default)(y,{isIdentifier:!0});T!==y?((0,n.ensureObject)(this,"raws"),this.raws.value=T):this.raws&&delete this.raws.value}this._value=y}}]),v}(s.default);e.default=f,t.exports=e.default})(hr,hr.exports);var Wn=hr.exports,mr={exports:{}};(function(t,e){e.__esModule=!0,e.default=void 0;var r=s(tt),n=de;function s(a){return a&&a.__esModule?a:{default:a}}function l(a,o){a.prototype=Object.create(o.prototype),a.prototype.constructor=a,i(a,o)}function i(a,o){return i=Object.setPrototypeOf||function(f,m){return f.__proto__=m,f},i(a,o)}var h=function(a){l(o,a);function o(u){var f;return f=a.call(this,u)||this,f.type=n.COMMENT,f}return o}(r.default);e.default=h,t.exports=e.default})(mr,mr.exports);var jn=mr.exports,gr={exports:{}};(function(t,e){e.__esModule=!0,e.default=void 0;var r=s(tt),n=de;function s(a){return a&&a.__esModule?a:{default:a}}function l(a,o){a.prototype=Object.create(o.prototype),a.prototype.constructor=a,i(a,o)}function i(a,o){return i=Object.setPrototypeOf||function(f,m){return f.__proto__=m,f},i(a,o)}var h=function(a){l(o,a);function o(f){var m;return m=a.call(this,f)||this,m.type=n.ID,m}var u=o.prototype;return u.valueToString=function(){return"#"+a.prototype.valueToString.call(this)},o}(r.default);e.default=h,t.exports=e.default})(gr,gr.exports);var Gn=gr.exports,vr={exports:{}},_r={exports:{}};(function(t,e){e.__esModule=!0,e.default=void 0;var r=l(pr),n=Ae,s=l(tt);function l(f){return f&&f.__esModule?f:{default:f}}function i(f,m){for(var v=0;v<m.length;v++){var b=m[v];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(f,b.key,b)}}function h(f,m,v){return m&&i(f.prototype,m),v&&i(f,v),f}function a(f,m){f.prototype=Object.create(m.prototype),f.prototype.constructor=f,o(f,m)}function o(f,m){return o=Object.setPrototypeOf||function(b,d){return b.__proto__=d,b},o(f,m)}var u=function(f){a(m,f);function m(){return f.apply(this,arguments)||this}var v=m.prototype;return v.qualifiedName=function(d){return this.namespace?this.namespaceString+"|"+d:d},v.valueToString=function(){return this.qualifiedName(f.prototype.valueToString.call(this))},h(m,[{key:"namespace",get:function(){return this._namespace},set:function(d){if(d===!0||d==="*"||d==="&"){this._namespace=d,this.raws&&delete this.raws.namespace;return}var y=(0,r.default)(d,{isIdentifier:!0});this._namespace=d,y!==d?((0,n.ensureObject)(this,"raws"),this.raws.namespace=y):this.raws&&delete this.raws.namespace}},{key:"ns",get:function(){return this._namespace},set:function(d){this.namespace=d}},{key:"namespaceString",get:function(){if(this.namespace){var d=this.stringifyProperty("namespace");return d===!0?"":d}else return""}}]),m}(s.default);e.default=u,t.exports=e.default})(_r,_r.exports);var yr=_r.exports;(function(t,e){e.__esModule=!0,e.default=void 0;var r=s(yr),n=de;function s(a){return a&&a.__esModule?a:{default:a}}function l(a,o){a.prototype=Object.create(o.prototype),a.prototype.constructor=a,i(a,o)}function i(a,o){return i=Object.setPrototypeOf||function(f,m){return f.__proto__=m,f},i(a,o)}var h=function(a){l(o,a);function o(u){var f;return f=a.call(this,u)||this,f.type=n.TAG,f}return o}(r.default);e.default=h,t.exports=e.default})(vr,vr.exports);var qn=vr.exports,Cr={exports:{}};(function(t,e){e.__esModule=!0,e.default=void 0;var r=s(tt),n=de;function s(a){return a&&a.__esModule?a:{default:a}}function l(a,o){a.prototype=Object.create(o.prototype),a.prototype.constructor=a,i(a,o)}function i(a,o){return i=Object.setPrototypeOf||function(f,m){return f.__proto__=m,f},i(a,o)}var h=function(a){l(o,a);function o(u){var f;return f=a.call(this,u)||this,f.type=n.STRING,f}return o}(r.default);e.default=h,t.exports=e.default})(Cr,Cr.exports);var Zn=Cr.exports,br={exports:{}};(function(t,e){e.__esModule=!0,e.default=void 0;var r=s(ur),n=de;function s(a){return a&&a.__esModule?a:{default:a}}function l(a,o){a.prototype=Object.create(o.prototype),a.prototype.constructor=a,i(a,o)}function i(a,o){return i=Object.setPrototypeOf||function(f,m){return f.__proto__=m,f},i(a,o)}var h=function(a){l(o,a);function o(f){var m;return m=a.call(this,f)||this,m.type=n.PSEUDO,m}var u=o.prototype;return u.toString=function(){var m=this.length?"("+this.map(String).join(",")+")":"";return[this.rawSpaceBefore,this.stringifyProperty("value"),m,this.rawSpaceAfter].join("")},o}(r.default);e.default=h,t.exports=e.default})(br,br.exports);var Un=br.exports,xr={},Ma=Ea;function Ea(t,e){if(wr("noDeprecation"))return t;var r=!1;function n(){if(!r){if(wr("throwDeprecation"))throw new Error(e);wr("traceDeprecation")?console.trace(e):console.warn(e),r=!0}return t.apply(this,arguments)}return n}function wr(t){try{if(!st.localStorage)return!1}catch{return!1}var e=st.localStorage[t];return e==null?!1:String(e).toLowerCase()==="true"}(function(t){t.__esModule=!0,t.unescapeValue=y,t.default=void 0;var e=i(pr),r=i(Rn),n=i(yr),s=de,l;function i($){return $&&$.__esModule?$:{default:$}}function h($,N){for(var K=0;K<N.length;K++){var q=N[K];q.enumerable=q.enumerable||!1,q.configurable=!0,"value"in q&&(q.writable=!0),Object.defineProperty($,q.key,q)}}function a($,N,K){return N&&h($.prototype,N),K&&h($,K),$}function o($,N){$.prototype=Object.create(N.prototype),$.prototype.constructor=$,u($,N)}function u($,N){return u=Object.setPrototypeOf||function(q,x){return q.__proto__=x,q},u($,N)}var f=Ma,m=/^('|")([^]*)\1$/,v=f(function(){},"Assigning an attribute a value containing characters that might need to be escaped is deprecated. Call attribute.setValue() instead."),b=f(function(){},"Assigning attr.quoted is deprecated and has no effect. Assign to attr.quoteMark instead."),d=f(function(){},"Constructing an Attribute selector with a value without specifying quoteMark is deprecated. Note: The value should be unescaped now.");function y($){var N=!1,K=null,q=$,x=q.match(m);return x&&(K=x[1],q=x[2]),q=(0,r.default)(q),q!==$&&(N=!0),{deprecatedUsage:N,unescaped:q,quoteMark:K}}function T($){if($.quoteMark!==void 0||$.value===void 0)return $;d();var N=y($.value),K=N.quoteMark,q=N.unescaped;return $.raws||($.raws={}),$.raws.value===void 0&&($.raws.value=$.value),$.value=q,$.quoteMark=K,$}var E=function($){o(N,$);function N(q){var x;return q===void 0&&(q={}),x=$.call(this,T(q))||this,x.type=s.ATTRIBUTE,x.raws=x.raws||{},Object.defineProperty(x.raws,"unquoted",{get:f(function(){return x.value},"attr.raws.unquoted is deprecated. Call attr.value instead."),set:f(function(){return x.value},"Setting attr.raws.unquoted is deprecated and has no effect. attr.value is unescaped by default now.")}),x._constructed=!0,x}var K=N.prototype;return K.getQuotedValue=function(x){x===void 0&&(x={});var z=this._determineQuoteMark(x),G=w[z],D=(0,e.default)(this._value,G);return D},K._determineQuoteMark=function(x){return x.smart?this.smartQuoteMark(x):this.preferredQuoteMark(x)},K.setValue=function(x,z){z===void 0&&(z={}),this._value=x,this._quoteMark=this._determineQuoteMark(z),this._syncRawValue()},K.smartQuoteMark=function(x){var z=this.value,G=z.replace(/[^']/g,"").length,D=z.replace(/[^"]/g,"").length;if(G+D===0){var X=(0,e.default)(z,{isIdentifier:!0});if(X===z)return N.NO_QUOTE;var Q=this.preferredQuoteMark(x);if(Q===N.NO_QUOTE){var I=this.quoteMark||x.quoteMark||N.DOUBLE_QUOTE,k=w[I],O=(0,e.default)(z,k);if(O.length<X.length)return I}return Q}else return D===G?this.preferredQuoteMark(x):D<G?N.DOUBLE_QUOTE:N.SINGLE_QUOTE},K.preferredQuoteMark=function(x){var z=x.preferCurrentQuoteMark?this.quoteMark:x.quoteMark;return z===void 0&&(z=x.preferCurrentQuoteMark?x.quoteMark:this.quoteMark),z===void 0&&(z=N.DOUBLE_QUOTE),z},K._syncRawValue=function(){var x=(0,e.default)(this._value,w[this.quoteMark]);x===this._value?this.raws&&delete this.raws.value:this.raws.value=x},K._handleEscapes=function(x,z){if(this._constructed){var G=(0,e.default)(z,{isIdentifier:!0});G!==z?this.raws[x]=G:delete this.raws[x]}},K._spacesFor=function(x){var z={before:"",after:""},G=this.spaces[x]||{},D=this.raws.spaces&&this.raws.spaces[x]||{};return Object.assign(z,G,D)},K._stringFor=function(x,z,G){z===void 0&&(z=x),G===void 0&&(G=F);var D=this._spacesFor(z);return G(this.stringifyProperty(x),D)},K.offsetOf=function(x){var z=1,G=this._spacesFor("attribute");if(z+=G.before.length,x==="namespace"||x==="ns")return this.namespace?z:-1;if(x==="attributeNS"||(z+=this.namespaceString.length,this.namespace&&(z+=1),x==="attribute"))return z;z+=this.stringifyProperty("attribute").length,z+=G.after.length;var D=this._spacesFor("operator");z+=D.before.length;var X=this.stringifyProperty("operator");if(x==="operator")return X?z:-1;z+=X.length,z+=D.after.length;var Q=this._spacesFor("value");z+=Q.before.length;var I=this.stringifyProperty("value");if(x==="value")return I?z:-1;z+=I.length,z+=Q.after.length;var k=this._spacesFor("insensitive");return z+=k.before.length,x==="insensitive"&&this.insensitive?z:-1},K.toString=function(){var x=this,z=[this.rawSpaceBefore,"["];return z.push(this._stringFor("qualifiedAttribute","attribute")),this.operator&&(this.value||this.value==="")&&(z.push(this._stringFor("operator")),z.push(this._stringFor("value")),z.push(this._stringFor("insensitiveFlag","insensitive",function(G,D){return G.length>0&&!x.quoted&&D.before.length===0&&!(x.spaces.value&&x.spaces.value.after)&&(D.before=" "),F(G,D)}))),z.push("]"),z.push(this.rawSpaceAfter),z.join("")},a(N,[{key:"quoted",get:function(){var x=this.quoteMark;return x==="'"||x==='"'},set:function(x){b()}},{key:"quoteMark",get:function(){return this._quoteMark},set:function(x){if(!this._constructed){this._quoteMark=x;return}this._quoteMark!==x&&(this._quoteMark=x,this._syncRawValue())}},{key:"qualifiedAttribute",get:function(){return this.qualifiedName(this.raws.attribute||this.attribute)}},{key:"insensitiveFlag",get:function(){return this.insensitive?"i":""}},{key:"value",get:function(){return this._value},set:function(x){if(this._constructed){var z=y(x),G=z.deprecatedUsage,D=z.unescaped,X=z.quoteMark;if(G&&v(),D===this._value&&X===this._quoteMark)return;this._value=D,this._quoteMark=X,this._syncRawValue()}else this._value=x}},{key:"attribute",get:function(){return this._attribute},set:function(x){this._handleEscapes("attribute",x),this._attribute=x}}]),N}(n.default);t.default=E,E.NO_QUOTE=null,E.SINGLE_QUOTE="'",E.DOUBLE_QUOTE='"';var w=(l={"'":{quotes:"single",wrap:!0},'"':{quotes:"double",wrap:!0}},l[null]={isIdentifier:!0},l);function F($,N){return""+N.before+$+N.after}})(xr);var Sr={exports:{}};(function(t,e){e.__esModule=!0,e.default=void 0;var r=s(yr),n=de;function s(a){return a&&a.__esModule?a:{default:a}}function l(a,o){a.prototype=Object.create(o.prototype),a.prototype.constructor=a,i(a,o)}function i(a,o){return i=Object.setPrototypeOf||function(f,m){return f.__proto__=m,f},i(a,o)}var h=function(a){l(o,a);function o(u){var f;return f=a.call(this,u)||this,f.type=n.UNIVERSAL,f.value="*",f}return o}(r.default);e.default=h,t.exports=e.default})(Sr,Sr.exports);var Yn=Sr.exports,Tr={exports:{}};(function(t,e){e.__esModule=!0,e.default=void 0;var r=s(tt),n=de;function s(a){return a&&a.__esModule?a:{default:a}}function l(a,o){a.prototype=Object.create(o.prototype),a.prototype.constructor=a,i(a,o)}function i(a,o){return i=Object.setPrototypeOf||function(f,m){return f.__proto__=m,f},i(a,o)}var h=function(a){l(o,a);function o(u){var f;return f=a.call(this,u)||this,f.type=n.COMBINATOR,f}return o}(r.default);e.default=h,t.exports=e.default})(Tr,Tr.exports);var Xn=Tr.exports,kr={exports:{}};(function(t,e){e.__esModule=!0,e.default=void 0;var r=s(tt),n=de;function s(a){return a&&a.__esModule?a:{default:a}}function l(a,o){a.prototype=Object.create(o.prototype),a.prototype.constructor=a,i(a,o)}function i(a,o){return i=Object.setPrototypeOf||function(f,m){return f.__proto__=m,f},i(a,o)}var h=function(a){l(o,a);function o(u){var f;return f=a.call(this,u)||this,f.type=n.NESTING,f.value="&",f}return o}(r.default);e.default=h,t.exports=e.default})(kr,kr.exports);var Qn=kr.exports,Mr={exports:{}};(function(t,e){e.__esModule=!0,e.default=r;function r(n){return n.sort(function(s,l){return s-l})}t.exports=e.default})(Mr,Mr.exports);var $a=Mr.exports,Vn={},te={};te.__esModule=!0,te.combinator=te.word=te.comment=te.str=te.tab=te.newline=te.feed=te.cr=te.backslash=te.bang=te.slash=te.doubleQuote=te.singleQuote=te.space=te.greaterThan=te.pipe=te.equals=te.plus=te.caret=te.tilde=te.dollar=te.closeSquare=te.openSquare=te.closeParenthesis=te.openParenthesis=te.semicolon=te.colon=te.comma=te.at=te.asterisk=te.ampersand=void 0;var La=38;te.ampersand=La;var Da=42;te.asterisk=Da;var Pa=64;te.at=Pa;var Oa=44;te.comma=Oa;var za=58;te.colon=za;var Ba=59;te.semicolon=Ba;var Ia=40;te.openParenthesis=Ia;var Aa=41;te.closeParenthesis=Aa;var Fa=91;te.openSquare=Fa;var Ra=93;te.closeSquare=Ra;var Ha=36;te.dollar=Ha;var Na=126;te.tilde=Na;var Wa=94;te.caret=Wa;var ja=43;te.plus=ja;var Ga=61;te.equals=Ga;var qa=124;te.pipe=qa;var Za=62;te.greaterThan=Za;var Ua=32;te.space=Ua;var Kn=39;te.singleQuote=Kn;var Ya=34;te.doubleQuote=Ya;var Xa=47;te.slash=Xa;var Qa=33;te.bang=Qa;var Va=92;te.backslash=Va;var Ka=13;te.cr=Ka;var Ja=12;te.feed=Ja;var eo=10;te.newline=eo;var to=9;te.tab=to;var ro=Kn;te.str=ro;var no=-1;te.comment=no;var io=-2;te.word=io;var so=-3;te.combinator=so,function(t){t.__esModule=!0,t.default=b,t.FIELDS=void 0;var e=l(te),r,n;function s(){if(typeof WeakMap!="function")return null;var d=new WeakMap;return s=function(){return d},d}function l(d){if(d&&d.__esModule)return d;if(d===null||typeof d!="object"&&typeof d!="function")return{default:d};var y=s();if(y&&y.has(d))return y.get(d);var T={},E=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var w in d)if(Object.prototype.hasOwnProperty.call(d,w)){var F=E?Object.getOwnPropertyDescriptor(d,w):null;F&&(F.get||F.set)?Object.defineProperty(T,w,F):T[w]=d[w]}return T.default=d,y&&y.set(d,T),T}for(var i=(r={},r[e.tab]=!0,r[e.newline]=!0,r[e.cr]=!0,r[e.feed]=!0,r),h=(n={},n[e.space]=!0,n[e.tab]=!0,n[e.newline]=!0,n[e.cr]=!0,n[e.feed]=!0,n[e.ampersand]=!0,n[e.asterisk]=!0,n[e.bang]=!0,n[e.comma]=!0,n[e.colon]=!0,n[e.semicolon]=!0,n[e.openParenthesis]=!0,n[e.closeParenthesis]=!0,n[e.openSquare]=!0,n[e.closeSquare]=!0,n[e.singleQuote]=!0,n[e.doubleQuote]=!0,n[e.plus]=!0,n[e.pipe]=!0,n[e.tilde]=!0,n[e.greaterThan]=!0,n[e.equals]=!0,n[e.dollar]=!0,n[e.caret]=!0,n[e.slash]=!0,n),a={},o="0123456789abcdefABCDEF",u=0;u<o.length;u++)a[o.charCodeAt(u)]=!0;function f(d,y){var T=y,E;do{if(E=d.charCodeAt(T),h[E])return T-1;E===e.backslash?T=m(d,T)+1:T++}while(T<d.length);return T-1}function m(d,y){var T=y,E=d.charCodeAt(T+1);if(!i[E])if(a[E]){var w=0;do T++,w++,E=d.charCodeAt(T+1);while(a[E]&&w<6);w<6&&E===e.space&&T++}else T++;return T}var v={TYPE:0,START_LINE:1,START_COL:2,END_LINE:3,END_COL:4,START_POS:5,END_POS:6};t.FIELDS=v;function b(d){var y=[],T=d.css.valueOf(),E=T,w=E.length,F=-1,$=1,N=0,K=0,q,x,z,G,D,X,Q,I,k,O,R,ie,C;function Z(A,B){if(d.safe)T+=B,k=T.length-1;else throw d.error("Unclosed "+A,$,N-F,N)}for(;N<w;){switch(q=T.charCodeAt(N),q===e.newline&&(F=N,$+=1),q){case e.space:case e.tab:case e.newline:case e.cr:case e.feed:k=N;do k+=1,q=T.charCodeAt(k),q===e.newline&&(F=k,$+=1);while(q===e.space||q===e.newline||q===e.tab||q===e.cr||q===e.feed);C=e.space,G=$,z=k-F-1,K=k;break;case e.plus:case e.greaterThan:case e.tilde:case e.pipe:k=N;do k+=1,q=T.charCodeAt(k);while(q===e.plus||q===e.greaterThan||q===e.tilde||q===e.pipe);C=e.combinator,G=$,z=N-F,K=k;break;case e.asterisk:case e.ampersand:case e.bang:case e.comma:case e.equals:case e.dollar:case e.caret:case e.openSquare:case e.closeSquare:case e.colon:case e.semicolon:case e.openParenthesis:case e.closeParenthesis:k=N,C=q,G=$,z=N-F,K=k+1;break;case e.singleQuote:case e.doubleQuote:ie=q===e.singleQuote?"'":'"',k=N;do for(D=!1,k=T.indexOf(ie,k+1),k===-1&&Z("quote",ie),X=k;T.charCodeAt(X-1)===e.backslash;)X-=1,D=!D;while(D);C=e.str,G=$,z=N-F,K=k+1;break;default:q===e.slash&&T.charCodeAt(N+1)===e.asterisk?(k=T.indexOf("*/",N+2)+1,k===0&&Z("comment","*/"),x=T.slice(N,k+1),I=x.split(`
|
|
3
|
+
`),Q=I.length-1,Q>0?(O=$+Q,R=k-I[Q].length):(O=$,R=F),C=e.comment,$=O,G=O,z=k-R):q===e.slash?(k=N,C=q,G=$,z=N-F,K=k+1):(k=f(T,N),C=e.word,G=$,z=k-F),K=k+1;break}y.push([C,$,N-F,G,z,N,K]),R&&(F=R,R=null),N=K}return y}}(Vn),function(t,e){e.__esModule=!0,e.default=void 0;var r=K(Hn),n=K(Nn),s=K(Wn),l=K(jn),i=K(Gn),h=K(qn),a=K(Zn),o=K(Un),u=N(xr),f=K(Yn),m=K(Xn),v=K(Qn),b=K($a),d=N(Vn),y=N(te),T=N(de),E=Ae,w,F;function $(){if(typeof WeakMap!="function")return null;var Z=new WeakMap;return $=function(){return Z},Z}function N(Z){if(Z&&Z.__esModule)return Z;if(Z===null||typeof Z!="object"&&typeof Z!="function")return{default:Z};var A=$();if(A&&A.has(Z))return A.get(Z);var B={},S=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var W in Z)if(Object.prototype.hasOwnProperty.call(Z,W)){var V=S?Object.getOwnPropertyDescriptor(Z,W):null;V&&(V.get||V.set)?Object.defineProperty(B,W,V):B[W]=Z[W]}return B.default=Z,A&&A.set(Z,B),B}function K(Z){return Z&&Z.__esModule?Z:{default:Z}}function q(Z,A){for(var B=0;B<A.length;B++){var S=A[B];S.enumerable=S.enumerable||!1,S.configurable=!0,"value"in S&&(S.writable=!0),Object.defineProperty(Z,S.key,S)}}function x(Z,A,B){return A&&q(Z.prototype,A),B&&q(Z,B),Z}var z=(w={},w[y.space]=!0,w[y.cr]=!0,w[y.feed]=!0,w[y.newline]=!0,w[y.tab]=!0,w),G=Object.assign({},z,(F={},F[y.comment]=!0,F));function D(Z){return{line:Z[d.FIELDS.START_LINE],column:Z[d.FIELDS.START_COL]}}function X(Z){return{line:Z[d.FIELDS.END_LINE],column:Z[d.FIELDS.END_COL]}}function Q(Z,A,B,S){return{start:{line:Z,column:A},end:{line:B,column:S}}}function I(Z){return Q(Z[d.FIELDS.START_LINE],Z[d.FIELDS.START_COL],Z[d.FIELDS.END_LINE],Z[d.FIELDS.END_COL])}function k(Z,A){if(Z)return Q(Z[d.FIELDS.START_LINE],Z[d.FIELDS.START_COL],A[d.FIELDS.END_LINE],A[d.FIELDS.END_COL])}function O(Z,A){var B=Z[A];if(typeof B=="string")return B.indexOf("\\")!==-1&&((0,E.ensureObject)(Z,"raws"),Z[A]=(0,E.unesc)(B),Z.raws[A]===void 0&&(Z.raws[A]=B)),Z}function R(Z,A){for(var B=-1,S=[];(B=Z.indexOf(A,B+1))!==-1;)S.push(B);return S}function ie(){var Z=Array.prototype.concat.apply([],arguments);return Z.filter(function(A,B){return B===Z.indexOf(A)})}var C=function(){function Z(B,S){S===void 0&&(S={}),this.rule=B,this.options=Object.assign({lossy:!1,safe:!1},S),this.position=0,this.css=typeof this.rule=="string"?this.rule:this.rule.selector,this.tokens=(0,d.default)({css:this.css,error:this._errorGenerator(),safe:this.options.safe});var W=k(this.tokens[0],this.tokens[this.tokens.length-1]);this.root=new r.default({source:W}),this.root.errorGenerator=this._errorGenerator();var V=new n.default({source:{start:{line:1,column:1}}});this.root.append(V),this.current=V,this.loop()}var A=Z.prototype;return A._errorGenerator=function(){var S=this;return function(W,V){return typeof S.rule=="string"?new Error(W):S.rule.error(W,V)}},A.attribute=function(){var S=[],W=this.currToken;for(this.position++;this.position<this.tokens.length&&this.currToken[d.FIELDS.TYPE]!==y.closeSquare;)S.push(this.currToken),this.position++;if(this.currToken[d.FIELDS.TYPE]!==y.closeSquare)return this.expected("closing square bracket",this.currToken[d.FIELDS.START_POS]);var V=S.length,L={source:Q(W[1],W[2],this.currToken[3],this.currToken[4]),sourceIndex:W[d.FIELDS.START_POS]};if(V===1&&!~[y.word].indexOf(S[0][d.FIELDS.TYPE]))return this.expected("attribute",S[0][d.FIELDS.START_POS]);for(var ne=0,ue="",ce="",se=null,he=!1;ne<V;){var Te=S[ne],le=this.content(Te),ye=S[ne+1];switch(Te[d.FIELDS.TYPE]){case y.space:if(he=!0,this.options.lossy)break;if(se){(0,E.ensureObject)(L,"spaces",se);var Fe=L.spaces[se].after||"";L.spaces[se].after=Fe+le;var Be=(0,E.getProp)(L,"raws","spaces",se,"after")||null;Be&&(L.raws.spaces[se].after=Be+le)}else ue=ue+le,ce=ce+le;break;case y.asterisk:if(ye[d.FIELDS.TYPE]===y.equals)L.operator=le,se="operator";else if((!L.namespace||se==="namespace"&&!he)&&ye){ue&&((0,E.ensureObject)(L,"spaces","attribute"),L.spaces.attribute.before=ue,ue=""),ce&&((0,E.ensureObject)(L,"raws","spaces","attribute"),L.raws.spaces.attribute.before=ue,ce=""),L.namespace=(L.namespace||"")+le;var Me=(0,E.getProp)(L,"raws","namespace")||null;Me&&(L.raws.namespace+=le),se="namespace"}he=!1;break;case y.dollar:if(se==="value"){var ke=(0,E.getProp)(L,"raws","value");L.value+="$",ke&&(L.raws.value=ke+"$");break}case y.caret:ye[d.FIELDS.TYPE]===y.equals&&(L.operator=le,se="operator"),he=!1;break;case y.combinator:if(le==="~"&&ye[d.FIELDS.TYPE]===y.equals&&(L.operator=le,se="operator"),le!=="|"){he=!1;break}ye[d.FIELDS.TYPE]===y.equals?(L.operator=le,se="operator"):!L.namespace&&!L.attribute&&(L.namespace=!0),he=!1;break;case y.word:if(ye&&this.content(ye)==="|"&&S[ne+2]&&S[ne+2][d.FIELDS.TYPE]!==y.equals&&!L.operator&&!L.namespace)L.namespace=le,se="namespace";else if(!L.attribute||se==="attribute"&&!he){ue&&((0,E.ensureObject)(L,"spaces","attribute"),L.spaces.attribute.before=ue,ue=""),ce&&((0,E.ensureObject)(L,"raws","spaces","attribute"),L.raws.spaces.attribute.before=ce,ce=""),L.attribute=(L.attribute||"")+le;var $e=(0,E.getProp)(L,"raws","attribute")||null;$e&&(L.raws.attribute+=le),se="attribute"}else if(!L.value&&L.value!==""||se==="value"&&!he){var Ee=(0,E.unesc)(le),Le=(0,E.getProp)(L,"raws","value")||"",De=L.value||"";L.value=De+Ee,L.quoteMark=null,(Ee!==le||Le)&&((0,E.ensureObject)(L,"raws"),L.raws.value=(Le||De)+le),se="value"}else{var Ke=le==="i"||le==="I";(L.value||L.value==="")&&(L.quoteMark||he)?(L.insensitive=Ke,(!Ke||le==="I")&&((0,E.ensureObject)(L,"raws"),L.raws.insensitiveFlag=le),se="insensitive",ue&&((0,E.ensureObject)(L,"spaces","insensitive"),L.spaces.insensitive.before=ue,ue=""),ce&&((0,E.ensureObject)(L,"raws","spaces","insensitive"),L.raws.spaces.insensitive.before=ce,ce="")):(L.value||L.value==="")&&(se="value",L.value+=le,L.raws.value&&(L.raws.value+=le))}he=!1;break;case y.str:if(!L.attribute||!L.operator)return this.error("Expected an attribute followed by an operator preceding the string.",{index:Te[d.FIELDS.START_POS]});var Xe=(0,u.unescapeValue)(le),ot=Xe.unescaped,_t=Xe.quoteMark;L.value=ot,L.quoteMark=_t,se="value",(0,E.ensureObject)(L,"raws"),L.raws.value=le,he=!1;break;case y.equals:if(!L.attribute)return this.expected("attribute",Te[d.FIELDS.START_POS],le);if(L.value)return this.error('Unexpected "=" found; an operator was already defined.',{index:Te[d.FIELDS.START_POS]});L.operator=L.operator?L.operator+le:le,se="operator",he=!1;break;case y.comment:if(se)if(he||ye&&ye[d.FIELDS.TYPE]===y.space||se==="insensitive"){var qe=(0,E.getProp)(L,"spaces",se,"after")||"",ht=(0,E.getProp)(L,"raws","spaces",se,"after")||qe;(0,E.ensureObject)(L,"raws","spaces",se),L.raws.spaces[se].after=ht+le}else{var zt=L[se]||"",Bt=(0,E.getProp)(L,"raws",se)||zt;(0,E.ensureObject)(L,"raws"),L.raws[se]=Bt+le}else ce=ce+le;break;default:return this.error('Unexpected "'+le+'" found.',{index:Te[d.FIELDS.START_POS]})}ne++}O(L,"attribute"),O(L,"namespace"),this.newNode(new u.default(L)),this.position++},A.parseWhitespaceEquivalentTokens=function(S){S<0&&(S=this.tokens.length);var W=this.position,V=[],L="",ne=void 0;do if(z[this.currToken[d.FIELDS.TYPE]])this.options.lossy||(L+=this.content());else if(this.currToken[d.FIELDS.TYPE]===y.comment){var ue={};L&&(ue.before=L,L=""),ne=new l.default({value:this.content(),source:I(this.currToken),sourceIndex:this.currToken[d.FIELDS.START_POS],spaces:ue}),V.push(ne)}while(++this.position<S);if(L){if(ne)ne.spaces.after=L;else if(!this.options.lossy){var ce=this.tokens[W],se=this.tokens[this.position-1];V.push(new a.default({value:"",source:Q(ce[d.FIELDS.START_LINE],ce[d.FIELDS.START_COL],se[d.FIELDS.END_LINE],se[d.FIELDS.END_COL]),sourceIndex:ce[d.FIELDS.START_POS],spaces:{before:L,after:""}}))}}return V},A.convertWhitespaceNodesToSpace=function(S,W){var V=this;W===void 0&&(W=!1);var L="",ne="";S.forEach(function(ce){var se=V.lossySpace(ce.spaces.before,W),he=V.lossySpace(ce.rawSpaceBefore,W);L+=se+V.lossySpace(ce.spaces.after,W&&se.length===0),ne+=se+ce.value+V.lossySpace(ce.rawSpaceAfter,W&&he.length===0)}),ne===L&&(ne=void 0);var ue={space:L,rawSpace:ne};return ue},A.isNamedCombinator=function(S){return S===void 0&&(S=this.position),this.tokens[S+0]&&this.tokens[S+0][d.FIELDS.TYPE]===y.slash&&this.tokens[S+1]&&this.tokens[S+1][d.FIELDS.TYPE]===y.word&&this.tokens[S+2]&&this.tokens[S+2][d.FIELDS.TYPE]===y.slash},A.namedCombinator=function(){if(this.isNamedCombinator()){var S=this.content(this.tokens[this.position+1]),W=(0,E.unesc)(S).toLowerCase(),V={};W!==S&&(V.value="/"+S+"/");var L=new m.default({value:"/"+W+"/",source:Q(this.currToken[d.FIELDS.START_LINE],this.currToken[d.FIELDS.START_COL],this.tokens[this.position+2][d.FIELDS.END_LINE],this.tokens[this.position+2][d.FIELDS.END_COL]),sourceIndex:this.currToken[d.FIELDS.START_POS],raws:V});return this.position=this.position+3,L}else this.unexpected()},A.combinator=function(){var S=this;if(this.content()==="|")return this.namespace();var W=this.locateNextMeaningfulToken(this.position);if(W<0||this.tokens[W][d.FIELDS.TYPE]===y.comma){var V=this.parseWhitespaceEquivalentTokens(W);if(V.length>0){var L=this.current.last;if(L){var ne=this.convertWhitespaceNodesToSpace(V),ue=ne.space,ce=ne.rawSpace;ce!==void 0&&(L.rawSpaceAfter+=ce),L.spaces.after+=ue}else V.forEach(function(Le){return S.newNode(Le)})}return}var se=this.currToken,he=void 0;W>this.position&&(he=this.parseWhitespaceEquivalentTokens(W));var Te;if(this.isNamedCombinator()?Te=this.namedCombinator():this.currToken[d.FIELDS.TYPE]===y.combinator?(Te=new m.default({value:this.content(),source:I(this.currToken),sourceIndex:this.currToken[d.FIELDS.START_POS]}),this.position++):z[this.currToken[d.FIELDS.TYPE]]||he||this.unexpected(),Te){if(he){var le=this.convertWhitespaceNodesToSpace(he),ye=le.space,Fe=le.rawSpace;Te.spaces.before=ye,Te.rawSpaceBefore=Fe}}else{var Be=this.convertWhitespaceNodesToSpace(he,!0),Me=Be.space,ke=Be.rawSpace;ke||(ke=Me);var $e={},Ee={spaces:{}};Me.endsWith(" ")&&ke.endsWith(" ")?($e.before=Me.slice(0,Me.length-1),Ee.spaces.before=ke.slice(0,ke.length-1)):Me.startsWith(" ")&&ke.startsWith(" ")?($e.after=Me.slice(1),Ee.spaces.after=ke.slice(1)):Ee.value=ke,Te=new m.default({value:" ",source:k(se,this.tokens[this.position-1]),sourceIndex:se[d.FIELDS.START_POS],spaces:$e,raws:Ee})}return this.currToken&&this.currToken[d.FIELDS.TYPE]===y.space&&(Te.spaces.after=this.optionalSpace(this.content()),this.position++),this.newNode(Te)},A.comma=function(){if(this.position===this.tokens.length-1){this.root.trailingComma=!0,this.position++;return}this.current._inferEndPosition();var S=new n.default({source:{start:D(this.tokens[this.position+1])}});this.current.parent.append(S),this.current=S,this.position++},A.comment=function(){var S=this.currToken;this.newNode(new l.default({value:this.content(),source:I(S),sourceIndex:S[d.FIELDS.START_POS]})),this.position++},A.error=function(S,W){throw this.root.error(S,W)},A.missingBackslash=function(){return this.error("Expected a backslash preceding the semicolon.",{index:this.currToken[d.FIELDS.START_POS]})},A.missingParenthesis=function(){return this.expected("opening parenthesis",this.currToken[d.FIELDS.START_POS])},A.missingSquareBracket=function(){return this.expected("opening square bracket",this.currToken[d.FIELDS.START_POS])},A.unexpected=function(){return this.error("Unexpected '"+this.content()+"'. Escaping special characters with \\ may help.",this.currToken[d.FIELDS.START_POS])},A.namespace=function(){var S=this.prevToken&&this.content(this.prevToken)||!0;if(this.nextToken[d.FIELDS.TYPE]===y.word)return this.position++,this.word(S);if(this.nextToken[d.FIELDS.TYPE]===y.asterisk)return this.position++,this.universal(S)},A.nesting=function(){if(this.nextToken){var S=this.content(this.nextToken);if(S==="|"){this.position++;return}}var W=this.currToken;this.newNode(new v.default({value:this.content(),source:I(W),sourceIndex:W[d.FIELDS.START_POS]})),this.position++},A.parentheses=function(){var S=this.current.last,W=1;if(this.position++,S&&S.type===T.PSEUDO){var V=new n.default({source:{start:D(this.tokens[this.position-1])}}),L=this.current;for(S.append(V),this.current=V;this.position<this.tokens.length&&W;)this.currToken[d.FIELDS.TYPE]===y.openParenthesis&&W++,this.currToken[d.FIELDS.TYPE]===y.closeParenthesis&&W--,W?this.parse():(this.current.source.end=X(this.currToken),this.current.parent.source.end=X(this.currToken),this.position++);this.current=L}else{for(var ne=this.currToken,ue="(",ce;this.position<this.tokens.length&&W;)this.currToken[d.FIELDS.TYPE]===y.openParenthesis&&W++,this.currToken[d.FIELDS.TYPE]===y.closeParenthesis&&W--,ce=this.currToken,ue+=this.parseParenthesisToken(this.currToken),this.position++;S?S.appendToPropertyAndEscape("value",ue,ue):this.newNode(new a.default({value:ue,source:Q(ne[d.FIELDS.START_LINE],ne[d.FIELDS.START_COL],ce[d.FIELDS.END_LINE],ce[d.FIELDS.END_COL]),sourceIndex:ne[d.FIELDS.START_POS]}))}if(W)return this.expected("closing parenthesis",this.currToken[d.FIELDS.START_POS])},A.pseudo=function(){for(var S=this,W="",V=this.currToken;this.currToken&&this.currToken[d.FIELDS.TYPE]===y.colon;)W+=this.content(),this.position++;if(!this.currToken)return this.expected(["pseudo-class","pseudo-element"],this.position-1);if(this.currToken[d.FIELDS.TYPE]===y.word)this.splitWord(!1,function(L,ne){W+=L,S.newNode(new o.default({value:W,source:k(V,S.currToken),sourceIndex:V[d.FIELDS.START_POS]})),ne>1&&S.nextToken&&S.nextToken[d.FIELDS.TYPE]===y.openParenthesis&&S.error("Misplaced parenthesis.",{index:S.nextToken[d.FIELDS.START_POS]})});else return this.expected(["pseudo-class","pseudo-element"],this.currToken[d.FIELDS.START_POS])},A.space=function(){var S=this.content();this.position===0||this.prevToken[d.FIELDS.TYPE]===y.comma||this.prevToken[d.FIELDS.TYPE]===y.openParenthesis||this.current.nodes.every(function(W){return W.type==="comment"})?(this.spaces=this.optionalSpace(S),this.position++):this.position===this.tokens.length-1||this.nextToken[d.FIELDS.TYPE]===y.comma||this.nextToken[d.FIELDS.TYPE]===y.closeParenthesis?(this.current.last.spaces.after=this.optionalSpace(S),this.position++):this.combinator()},A.string=function(){var S=this.currToken;this.newNode(new a.default({value:this.content(),source:I(S),sourceIndex:S[d.FIELDS.START_POS]})),this.position++},A.universal=function(S){var W=this.nextToken;if(W&&this.content(W)==="|")return this.position++,this.namespace();var V=this.currToken;this.newNode(new f.default({value:this.content(),source:I(V),sourceIndex:V[d.FIELDS.START_POS]}),S),this.position++},A.splitWord=function(S,W){for(var V=this,L=this.nextToken,ne=this.content();L&&~[y.dollar,y.caret,y.equals,y.word].indexOf(L[d.FIELDS.TYPE]);){this.position++;var ue=this.content();if(ne+=ue,ue.lastIndexOf("\\")===ue.length-1){var ce=this.nextToken;ce&&ce[d.FIELDS.TYPE]===y.space&&(ne+=this.requiredSpace(this.content(ce)),this.position++)}L=this.nextToken}var se=R(ne,".").filter(function(ye){var Fe=ne[ye-1]==="\\",Be=/^\d+\.\d+%$/.test(ne);return!Fe&&!Be}),he=R(ne,"#").filter(function(ye){return ne[ye-1]!=="\\"}),Te=R(ne,"#{");Te.length&&(he=he.filter(function(ye){return!~Te.indexOf(ye)}));var le=(0,b.default)(ie([0].concat(se,he)));le.forEach(function(ye,Fe){var Be=le[Fe+1]||ne.length,Me=ne.slice(ye,Be);if(Fe===0&&W)return W.call(V,Me,le.length);var ke,$e=V.currToken,Ee=$e[d.FIELDS.START_POS]+le[Fe],Le=Q($e[1],$e[2]+ye,$e[3],$e[2]+(Be-1));if(~se.indexOf(ye)){var De={value:Me.slice(1),source:Le,sourceIndex:Ee};ke=new s.default(O(De,"value"))}else if(~he.indexOf(ye)){var Ke={value:Me.slice(1),source:Le,sourceIndex:Ee};ke=new i.default(O(Ke,"value"))}else{var Xe={value:Me,source:Le,sourceIndex:Ee};O(Xe,"value"),ke=new h.default(Xe)}V.newNode(ke,S),S=null}),this.position++},A.word=function(S){var W=this.nextToken;return W&&this.content(W)==="|"?(this.position++,this.namespace()):this.splitWord(S)},A.loop=function(){for(;this.position<this.tokens.length;)this.parse(!0);return this.current._inferEndPosition(),this.root},A.parse=function(S){switch(this.currToken[d.FIELDS.TYPE]){case y.space:this.space();break;case y.comment:this.comment();break;case y.openParenthesis:this.parentheses();break;case y.closeParenthesis:S&&this.missingParenthesis();break;case y.openSquare:this.attribute();break;case y.dollar:case y.caret:case y.equals:case y.word:this.word();break;case y.colon:this.pseudo();break;case y.comma:this.comma();break;case y.asterisk:this.universal();break;case y.ampersand:this.nesting();break;case y.slash:case y.combinator:this.combinator();break;case y.str:this.string();break;case y.closeSquare:this.missingSquareBracket();case y.semicolon:this.missingBackslash();default:this.unexpected()}},A.expected=function(S,W,V){if(Array.isArray(S)){var L=S.pop();S=S.join(", ")+" or "+L}var ne=/^[aeiou]/.test(S[0])?"an":"a";return V?this.error("Expected "+ne+" "+S+', found "'+V+'" instead.',{index:W}):this.error("Expected "+ne+" "+S+".",{index:W})},A.requiredSpace=function(S){return this.options.lossy?" ":S},A.optionalSpace=function(S){return this.options.lossy?"":S},A.lossySpace=function(S,W){return this.options.lossy?W?" ":"":S},A.parseParenthesisToken=function(S){var W=this.content(S);return S[d.FIELDS.TYPE]===y.space?this.requiredSpace(W):W},A.newNode=function(S,W){return W&&(/^ +$/.test(W)&&(this.options.lossy||(this.spaces=(this.spaces||"")+W),W=!0),S.namespace=W,O(S,"namespace")),this.spaces&&(S.spaces.before=this.spaces,this.spaces=""),this.current.append(S)},A.content=function(S){return S===void 0&&(S=this.currToken),this.css.slice(S[d.FIELDS.START_POS],S[d.FIELDS.END_POS])},A.locateNextMeaningfulToken=function(S){S===void 0&&(S=this.position+1);for(var W=S;W<this.tokens.length;)if(G[this.tokens[W][d.FIELDS.TYPE]]){W++;continue}else return W;return-1},x(Z,[{key:"currToken",get:function(){return this.tokens[this.position]}},{key:"nextToken",get:function(){return this.tokens[this.position+1]}},{key:"prevToken",get:function(){return this.tokens[this.position-1]}}]),Z}();e.default=C,t.exports=e.default}(rr,rr.exports);var ao=rr.exports;(function(t,e){e.__esModule=!0,e.default=void 0;var r=n(ao);function n(l){return l&&l.__esModule?l:{default:l}}var s=function(){function l(h,a){this.func=h||function(){},this.funcRes=null,this.options=a}var i=l.prototype;return i._shouldUpdateSelector=function(a,o){o===void 0&&(o={});var u=Object.assign({},this.options,o);return u.updateSelector===!1?!1:typeof a!="string"},i._isLossy=function(a){a===void 0&&(a={});var o=Object.assign({},this.options,a);return o.lossless===!1},i._root=function(a,o){o===void 0&&(o={});var u=new r.default(a,this._parseOptions(o));return u.root},i._parseOptions=function(a){return{lossy:this._isLossy(a)}},i._run=function(a,o){var u=this;return o===void 0&&(o={}),new Promise(function(f,m){try{var v=u._root(a,o);Promise.resolve(u.func(v)).then(function(b){var d=void 0;return u._shouldUpdateSelector(a,o)&&(d=v.toString(),a.selector=d),{transform:b,root:v,string:d}}).then(f,m)}catch(b){m(b);return}})},i._runSync=function(a,o){o===void 0&&(o={});var u=this._root(a,o),f=this.func(u);if(f&&typeof f.then=="function")throw new Error("Selector processor returned a promise to a synchronous call.");var m=void 0;return o.updateSelector&&typeof a!="string"&&(m=u.toString(),a.selector=m),{transform:f,root:u,string:m}},i.ast=function(a,o){return this._run(a,o).then(function(u){return u.root})},i.astSync=function(a,o){return this._runSync(a,o).root},i.transform=function(a,o){return this._run(a,o).then(function(u){return u.transform})},i.transformSync=function(a,o){return this._runSync(a,o).transform},i.process=function(a,o){return this._run(a,o).then(function(u){return u.string||u.root.toString()})},i.processSync=function(a,o){var u=this._runSync(a,o);return u.string||u.root.toString()},l}();e.default=s,t.exports=e.default})(tr,tr.exports);var oo=tr.exports,Jn={},_e={};_e.__esModule=!0,_e.universal=_e.tag=_e.string=_e.selector=_e.root=_e.pseudo=_e.nesting=_e.id=_e.comment=_e.combinator=_e.className=_e.attribute=void 0;var lo=He(xr),co=He(Wn),uo=He(Xn),ho=He(jn),fo=He(Gn),po=He(Qn),mo=He(Un),go=He(Hn),vo=He(Nn),_o=He(Zn),yo=He(qn),Co=He(Yn);function He(t){return t&&t.__esModule?t:{default:t}}var bo=function(e){return new lo.default(e)};_e.attribute=bo;var xo=function(e){return new co.default(e)};_e.className=xo;var wo=function(e){return new uo.default(e)};_e.combinator=wo;var So=function(e){return new ho.default(e)};_e.comment=So;var To=function(e){return new fo.default(e)};_e.id=To;var ko=function(e){return new po.default(e)};_e.nesting=ko;var Mo=function(e){return new mo.default(e)};_e.pseudo=Mo;var Eo=function(e){return new go.default(e)};_e.root=Eo;var $o=function(e){return new vo.default(e)};_e.selector=$o;var Lo=function(e){return new _o.default(e)};_e.string=Lo;var Do=function(e){return new yo.default(e)};_e.tag=Do;var Po=function(e){return new Co.default(e)};_e.universal=Po;var me={};me.__esModule=!0,me.isNode=Er,me.isPseudoElement=ri,me.isPseudoClass=jo,me.isContainer=Go,me.isNamespace=qo,me.isUniversal=me.isTag=me.isString=me.isSelector=me.isRoot=me.isPseudo=me.isNesting=me.isIdentifier=me.isComment=me.isCombinator=me.isClassName=me.isAttribute=void 0;var be=de,Ie,Oo=(Ie={},Ie[be.ATTRIBUTE]=!0,Ie[be.CLASS]=!0,Ie[be.COMBINATOR]=!0,Ie[be.COMMENT]=!0,Ie[be.ID]=!0,Ie[be.NESTING]=!0,Ie[be.PSEUDO]=!0,Ie[be.ROOT]=!0,Ie[be.SELECTOR]=!0,Ie[be.STRING]=!0,Ie[be.TAG]=!0,Ie[be.UNIVERSAL]=!0,Ie);function Er(t){return typeof t=="object"&&Oo[t.type]}function Ne(t,e){return Er(e)&&e.type===t}var ei=Ne.bind(null,be.ATTRIBUTE);me.isAttribute=ei;var zo=Ne.bind(null,be.CLASS);me.isClassName=zo;var Bo=Ne.bind(null,be.COMBINATOR);me.isCombinator=Bo;var Io=Ne.bind(null,be.COMMENT);me.isComment=Io;var Ao=Ne.bind(null,be.ID);me.isIdentifier=Ao;var Fo=Ne.bind(null,be.NESTING);me.isNesting=Fo;var $r=Ne.bind(null,be.PSEUDO);me.isPseudo=$r;var Ro=Ne.bind(null,be.ROOT);me.isRoot=Ro;var Ho=Ne.bind(null,be.SELECTOR);me.isSelector=Ho;var No=Ne.bind(null,be.STRING);me.isString=No;var ti=Ne.bind(null,be.TAG);me.isTag=ti;var Wo=Ne.bind(null,be.UNIVERSAL);me.isUniversal=Wo;function ri(t){return $r(t)&&t.value&&(t.value.startsWith("::")||t.value.toLowerCase()===":before"||t.value.toLowerCase()===":after"||t.value.toLowerCase()===":first-letter"||t.value.toLowerCase()===":first-line")}function jo(t){return $r(t)&&!ri(t)}function Go(t){return!!(Er(t)&&t.walk)}function qo(t){return ei(t)||ti(t)}(function(t){t.__esModule=!0;var e=de;Object.keys(e).forEach(function(s){s==="default"||s==="__esModule"||s in t&&t[s]===e[s]||(t[s]=e[s])});var r=_e;Object.keys(r).forEach(function(s){s==="default"||s==="__esModule"||s in t&&t[s]===r[s]||(t[s]=r[s])});var n=me;Object.keys(n).forEach(function(s){s==="default"||s==="__esModule"||s in t&&t[s]===n[s]||(t[s]=n[s])})})(Jn),function(t,e){e.__esModule=!0,e.default=void 0;var r=i(oo),n=l(Jn);function s(){if(typeof WeakMap!="function")return null;var o=new WeakMap;return s=function(){return o},o}function l(o){if(o&&o.__esModule)return o;if(o===null||typeof o!="object"&&typeof o!="function")return{default:o};var u=s();if(u&&u.has(o))return u.get(o);var f={},m=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var v in o)if(Object.prototype.hasOwnProperty.call(o,v)){var b=m?Object.getOwnPropertyDescriptor(o,v):null;b&&(b.get||b.set)?Object.defineProperty(f,v,b):f[v]=o[v]}return f.default=o,u&&u.set(o,f),f}function i(o){return o&&o.__esModule?o:{default:o}}var h=function(u){return new r.default(u)};Object.assign(h,n),delete h.__esModule;var a=h;e.default=a,t.exports=e.default}(er,er.exports);var Zo=er.exports;const Uo=ta,ni=Zo,Yo=ni();var Xo={isUsableColor(t,e){return Uo(e)&&t!=="gray"&&e[600]},commonTrailingPseudos(t){let e=Yo.astSync(t),r=[];for(let[s,l]of e.nodes.entries())for(const[i,h]of[...l.nodes].reverse().entries()){if(h.type!=="pseudo"||!h.value.startsWith("::"))break;r[i]=r[i]||[],r[i][s]=h}let n=ni.selector();for(const s of r){if(!s)continue;if(new Set([...s.map(i=>i.value)]).size>1)break;s.forEach(i=>i.remove()),n.prepend(s[0])}return n.nodes.length?[n.toString(),e.toString()]:[null,t]}};const Qo=Rs,Vo=Hs,Ko=js,Jo=Gs,{commonTrailingPseudos:e1}=Xo,ii={};function Lr(t,{className:e,modifier:r,prefix:n}){let s=n(`.not-${e}`).slice(1),l=t.startsWith(">")?`${r==="DEFAULT"?`.${e}`:`.${e}-${r}`} `:"",[i,h]=e1(t);return i?`:where(${l}${h}):not(:where([class~="${s}"],[class~="${s}"] *))${i}`:`:where(${l}${t}):not(:where([class~="${s}"],[class~="${s}"] *))`}function si(t){return typeof t=="object"&&t!==null}function t1(t={},{target:e,className:r,modifier:n,prefix:s}){function l(i,h){return e==="legacy"?[i,h]:Array.isArray(h)?[i,h]:si(h)?Object.values(h).some(si)?[Lr(i,{className:r,modifier:n,prefix:s}),h,Object.fromEntries(Object.entries(h).map(([o,u])=>l(o,u)))]:[Lr(i,{className:r,modifier:n,prefix:s}),h]:[i,h]}return Object.fromEntries(Object.entries(Vo({},...Object.keys(t).filter(i=>ii[i]).map(i=>ii[i](t[i])),...Ko(t.css||{}))).map(([i,h])=>l(i,h)))}var ai=Qo.withOptions(({className:t="prose",target:e="modern"}={})=>function({addVariant:r,addComponents:n,theme:s,prefix:l}){let i=s("typography"),h={className:t,prefix:l};for(let[a,...o]of[["headings","h1","h2","h3","h4","h5","h6","th"],["h1"],["h2"],["h3"],["h4"],["h5"],["h6"],["p"],["a"],["blockquote"],["figure"],["figcaption"],["strong"],["em"],["kbd"],["code"],["pre"],["ol"],["ul"],["li"],["table"],["thead"],["tr"],["th"],["td"],["img"],["video"],["hr"],["lead",'[class~="lead"]']]){o=o.length===0?[a]:o;let u=e==="legacy"?o.map(f=>`& ${f}`):o.join(", ");r(`${t}-${a}`,e==="legacy"?u:`& :is(${Lr(u,h)})`)}n(Object.keys(i).map(a=>({[a==="DEFAULT"?`.${t}`:`.${t}-${a}`]:t1(i[a],{target:e,className:t,modifier:a,prefix:l})})))},()=>({theme:{typography:Jo}}));const oi=St(ai),r1=fn({__proto__:null,default:oi},[ai]);var Lt={exports:{}};const Ye=zn||Fs,n1={50:"#FCE3E4",100:"#F9CDCE",200:"#F39699",300:"#ED6368",400:"#E72C32",500:"#C4161C",600:"#9C1216",700:"#770D11",800:"#4E090B",900:"#290506"},Pe={onprimary:Ye.white,warning:Ye.amber,error:Ye.red,info:Ye.slate,success:Ye.emerald,primary:Ye.blue,brand:n1,"video-player-progress-bar":{"base-bg":"#6c737a","progress-bg":"#0090ff","hover-bg":"#bbb","chunk-bg":"#9bcdff","tootltip-bg":"#333","transition-duration":"0.2s","bar-height":"7px"}},i1={...Pe,warning:Pe.warning[500],"warning-darken":Pe.warning[600],"warning-lighten":Pe.warning[400],success:Pe.success[500],"success-darken":Pe.success[600],"success-lighten":Pe.success[400],error:Pe.error[500],"error-darken":Pe.error[600],"error-lighten":Pe.error[400],info:Pe.info[500],"info-darken":Pe.info[600],"info-lighten":Pe.info[400],primary:Pe.primary[500],"primary-darken":Pe.primary[600],"primary-lighten":Pe.primary[400],onsurface:Ye.slate[500],onbackground:Ye.slate[700],surface:Ye.slate[50],background:Ye.white},s1={prefix:"e-",dark:"class",corePlugins:{preflight:!1},content:["./src/**/*.{html,js,vue,ts}"],theme:{extend:{ringWidth:{1:"1px"},colors:i1,lineHeight:{xs:"1rem",sm:"1.25rem",base:"1.5rem",lg:"1.75rem",xl:"1.75rem","2xl":"2rem","3xl":"2.25rem","4xl":"2.5rem","5xl":"3rem","6xl":"3.75rem","7xl":"4.5rem","8xl":"6rem","9xl":"8rem"},maxWidth:{"1/12":"8.333333333%","2/12":"16.666666666%","3/12":"25%","4/12":"33.333333333%","5/12":"41.666666667%","6/12":"50%","7/12":"58.333333334%","8/12":"66.666666666%","9/12":"75%","10/12":"83.333333334%","11/12":"91.666666666%","12/12":"100%"},blur:{"video-poster":"32px"},transitionProperty:{"opacity-transform":"opacity, transform"},transitionDuration:{600:"600ms"}},fontSize:{xs:"0.75rem",sm:"0.875rem",base:"1rem",lg:"1.125rem",xl:"1.25rem","2xl":"1.5rem","3xl":"1.875rem","4xl":"2.25rem","5xl":"3rem","6xl":"3.75rem","7xl":"4.5rem","8xl":"6rem","9xl":"8rem"}},plugins:[oi||r1],safelist:[{pattern:/e-w-(full|auto)/,variants:["lg","md","sm","xs","xl"]},{pattern:/e-grow/,variants:["lg","md","sm","xs","xl"]},{pattern:/e-basis-(\d{1,2}\/\d{1,2}|full|auto|0)/,variants:["lg","md","sm","xs","xl"]},{pattern:/^!?e-max-w-(\d{1,2}\/\d{1,2})/,variants:["lg","md","sm","xs","xl"]},{pattern:/e-offset-(1[0-2]|[1-9])/,variants:["lg","md","sm","xs","xl"]},{pattern:/e-items-(start|center|end|baseline|stretch)/},{pattern:/e-self-(start|center|end|baseline|stretch)/},{pattern:/e-justify-(around|between|center|end|evenly|normal|start|stretch)/,variants:["lg","md","sm","xs","xl"]},{pattern:/e-content-(around|baseline|between|center|end|evenly|normal|start|stretch)/},{pattern:/e-m[trblxy]?-[\w\-/]+/,variants:["lg","md","sm","xs","xl"]},{pattern:/e-p[trblxy]?-[\w\-/]+/,variants:["lg","md","sm","xs","xl"]},"e-tiny","e-caption","e-body","e-title-2","e-title-1","e-display-3","e-display-2","e-display-1",{pattern:/e-text-(xs|sm|base|lg|xl|2xl|3xl|4xl|5xl|6xl|7xl|8xl|9xl)/},{pattern:/e-text-(warning|error|info|success|primary|brand)-./},{pattern:/e-bg-(warning|error|info|success|primary|brand)-./}]};Lt.exports=s1;const a1=(Lt.exports==null?{}:Lt.exports).default||Lt.exports,Dr=As(a1),li=Dr.theme.fontSize,ci=Dr.theme.colors,o1=[J.dot,J.xs,J.sm,J.md,J.lg,J.xl],l1=[J.xs,J.sm,J.md,J.lg,J.xl,J["2xl"]],ui=[J.xs,J.sm,J.md,J.base,J.lg,J.xl,J["2xl"],J["3xl"],J["4xl"],J["5xl"],J["6xl"],J["7xl"],J["8xl"],J["9xl"]],c1=[J.sm,J.md,J.lg],u1=[ae.warning,ae.error,ae.info,ae.success,ae.primary,ae.default],d1=[ae.warning,ae.error,ae.info,ae.success,ae.primary,ae.default],h1=[Oe.top,Oe.bottom,Oe.right,Oe.left],f1=["play","pause","ended","loadeddata","waiting","playing","timeupdate","canplay","canplaythrough","statechanged"],p1=j.extend({name:"EIcon",props:{icon:{type:String,default:""},color:{type:String,default:ae.default},size:{type:String,default:J.sm}},computed:{sizes(){return ui.reduce((t,e)=>({...t,[e]:`e-text-${e}`}),{})},iconClasses(){var n,s;const t=this.sizes[this.size]||this.sizes[J.sm],e=`${((s=(n=this.icon)==null?void 0:n.split(" "))==null?void 0:s.length)>1?this.icon:`fa fa-${this.icon}`}`;return["e-inline-flex e-items-center e-justify-center e-rounded-full",this.color,e,t]}}});var m1=function(){var e=this,r=e._self._c;return r("div",{staticClass:"e-icon"},[r("i",{class:e.iconClasses})])},g1=[],v1=Y(p1,m1,g1,!1,null,null,null,null);const rt=v1.exports,_1=j.extend({name:"ESpinner",props:{dark:{type:Boolean,default:!1},color:{type:Boolean,default:!0},animationDuration:{type:[Number,String],default:1e3},size:{type:String,default:J.base},opacity:{type:[String,Number],default:1}},data(){return{sizes:li,colors:ci}},computed:{computedSize(){return this.sizes[J[this.size]]||this.size||this.sizes[J.base]},fill(){let t={primary:this.colors.brand[500],secondary:this.colors.neutral[300]};return this.dark&&!this.color&&(t={primary:this.colors.neutral[100],secondary:this.colors.neutral[100]}),!this.dark&&this.color&&(t={primary:this.colors.brand[500],secondary:this.colors.neutral[950]}),!this.dark&&!this.color&&(t={primary:this.colors.neutral[200],secondary:this.colors.neutral[200]}),t}},methods:{getNthPathStyle(t){const e=typeof this.animationDuration=="string"?Number.parseInt(this.animationDuration):this.animationDuration;return{animationDuration:`${this.animationDuration}ms`,animationDelay:`${t/10*e}ms`,fill:`${this.fill[t%2===0?"primary":"secondary"]}`}}}}),j8="";var y1=function(){var e=this,r=e._self._c;return r("svg",{staticClass:"e-spinner e-block",class:{"e-spinner--dark":e.dark,"e-spinner--grey":!e.color},style:{opacity:e.opacity},attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1629.32 1608.86",width:e.computedSize,height:e.computedSize}},[r("path",{staticClass:"e-spinner__primary",style:e.getNthPathStyle(0),attrs:{d:"m1254.12,591.61C992.01,401.11,439.78,0,439.78,0h601.2c14.3,0,48.95,9.02,62.54,38.01,55.27,117.88,111.32,235.46,170.48,351.43,33.16,70.9-8.99,170.35-19.87,202.16"}}),r("path",{staticClass:"e-spinner__secondary",style:e.getNthPathStyle(1),attrs:{d:"m1404.65,131.67c-29.37,89.94-55.8,170.95-82.25,251.93-4.05.87-8.1,1.73-12.15,2.61-40.61-83.95-81.21-167.9-123.12-254.54h217.51Z"}}),r("path",{staticClass:"e-spinner__primary",style:e.getNthPathStyle(2),attrs:{d:"m1129.06,1093.51c100.75-307.98,312.75-956.75,312.75-956.75,0,0,180.36,558.53,184.75,572.14,4.39,13.59,6.45,49.34-16.96,71.19-95.21,88.81-189.88,178.28-282.06,270.2-57.29,53.34-164.86,43.8-198.48,43.21"}}),r("path",{staticClass:"e-spinner__secondary",style:e.getNthPathStyle(3),attrs:{d:"m1342.3,1083.06c66.6-63.43,133.22-126.86,207.93-197.98,21.51,73.55,40.3,137.81,60.64,207.37h-263.35c-1.75-3.13-3.48-6.27-5.22-9.39"}}),r("path",{staticClass:"e-spinner__primary",style:e.getNthPathStyle(4),attrs:{d:"m610.27,1137.17c324.03-.53,1006.55-1.85,1006.55-1.85,0,0-474.19,345.83-485.74,354.25-11.55,8.42-44.87,21.56-72.94,6.14-114.11-62.68-228.69-124.66-344.81-183.5-68.56-37.76-93.12-142.93-103.06-175.04"}}),r("path",{staticClass:"e-spinner__secondary",style:e.getNthPathStyle(5),attrs:{d:"m938.58,1468.29c-62.81,42.58-118.35,80.24-180.28,122.23-28.35-87.22-54.62-168.03-80.89-248.86,2.62-2.92,5.26-5.85,7.9-8.76,81.89,43.78,163.79,87.56,253.26,135.39"}}),r("path",{staticClass:"e-spinner__primary",style:e.getNthPathStyle(6),attrs:{d:"m413.07,652.86c101.35,307.77,314.99,956,314.99,956,0,0-476.23-343.04-487.83-351.39-11.58-8.36-34.44-35.93-28.52-67.4,24.07-127.96,47.3-256.13,67.09-384.8,14.54-76.9,106.84-132.96,134.28-152.42"}}),r("path",{staticClass:"e-spinner__secondary",style:e.getNthPathStyle(7),attrs:{d:"m197.48,1068.8c-62.36-47.73-115.99-88.79-176.78-135.33,75.54-54.91,146.18-106.24,216.83-157.57,3.73,2.24,7.45,4.47,11.19,6.71-16.36,91.3-32.7,182.61-51.25,286.19"}}),r("path",{staticClass:"e-spinner__primary",style:e.getNthPathStyle(8),attrs:{d:"m813.58,314.41C551.63,505.15,0,907.07,0,907.07c0,0,180.68-558.4,185.09-572.01,4.39-13.59,23.65-43.78,55.41-47.8,129.19-16.29,258.32-33.41,386.86-53.99,77.67-9.72,159.3,60.97,186.22,81.13"}}),r("path",{staticClass:"e-spinner__secondary",style:e.getNthPathStyle(9),attrs:{d:"m635.14,199.78c-91.99,12.38-183.97,24.77-288.07,38.76,25.77-73.18,48.3-137.14,73.8-209.53,76.56,55.41,147.27,106.58,217.97,157.75-1.23,4.34-2.46,8.68-3.69,13.02"}})])},C1=[],b1=Y(_1,y1,C1,!1,null,"29711f67",null,null);const Pr=b1.exports,x1=j.extend({props:{align:{type:String,default:void 0},alignContent:{type:String,default:void 0},justify:{type:String,default:void 0},justifyXs:{type:String,default:void 0},justifySm:{type:String,default:void 0},justifyMd:{type:String,default:void 0},justifyLg:{type:String,default:void 0},justifyXl:{type:String,default:void 0},noGutters:{type:Boolean,default:!1}},computed:{justifyClasses(){return{[`e-justify-${this.justify}`]:!!this.justify,[`xs:e-justify-${this.justifySm}`]:!!this.justifySm,[`sm:e-justify-${this.justifySm}`]:!!this.justifySm,[`md:e-justify-${this.justifyMd}`]:!!this.justifyMd,[`lg:e-justify-${this.justifyLg}`]:!!this.justifyLg,[`xl:e-justify-${this.justifyXl}`]:!!this.justifyXl}},rowClasses(){return{...this.align?{[`e-items-${this.align}`]:!0}:{},...this.alignContent?{[`e-content-${this.alignContent}`]:!0}:{},...this.noGutters?{"e-row--no-gutters":!0}:{},...this.justifyClasses}}}}),G8="";var w1=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("div",{staticClass:"e-row e-flex e-flex-wrap",class:e.rowClasses},[e._t("default")],2)},S1=[],T1=Y(x1,w1,S1,!1,null,null,null,null);const di=T1.exports,k1=j.extend({props:{alignSelf:{type:String,default:"auto"},cols:{type:[Boolean,String,Number],default:void 0},lg:{type:[Boolean,String,Number],default:void 0},md:{type:[Boolean,String,Number],default:void 0},offset:{type:[String,Number],default:void 0},offsetLg:{type:[String,Number],default:void 0},offsetMd:{type:[String,Number],default:void 0},offsetSm:{type:[String,Number],default:void 0},offsetXs:{type:[String,Number],default:void 0},offsetXl:{type:[String,Number],default:void 0},sm:{type:[Boolean,String,Number],default:void 0},xs:{type:[Boolean,String,Number],default:void 0},xl:{type:[Boolean,String,Number],default:void 0}},computed:{colClasses(){return{...this.alignSelf?{[`e-self-${this.alignSelf}`]:!0}:{},[this.autoClasses("xs:",this.xs)]:this.isSizePropAuto(this.xs),[this.autoClasses("sm:",this.sm)]:this.isSizePropAuto(this.sm),[this.autoClasses("md:",this.md)]:this.isSizePropAuto(this.md),[this.autoClasses("lg:",this.lg)]:this.isSizePropAuto(this.lg),[this.autoClasses("xl:e",this.xl)]:this.isSizePropAuto(this.xl),[this.autoClasses("",this.cols)]:this.isSizePropAuto(this.cols,!0),"xs:e-basis-full xs:!e-max-w-12/12":this.xs===12||this.xs==="12","sm:e-basis-full sm:!e-max-w-12/12":this.sm===12||this.sm==="12","md:e-basis-full md:!e-max-w-12/12":this.md===12||this.md==="12","lg:e-basis-full lg:!e-max-w-12/12":this.lg===12||this.lg==="12","xl:e-basis-full xl:!e-max-w-12/12":this.xl===12||this.xl==="12","e-basis-full e-max-w-12/12":this.cols===12||this.cols==="12",[`xs:e-basis-${this.xs}/12 xs:!e-max-w-${this.xs}/12`]:this.isSizePropertyNumeric(this.xs),[`sm:e-basis-${this.sm}/12 sm:!e-max-w-${this.sm}/12`]:this.isSizePropertyNumeric(this.sm),[`md:e-basis-${this.md}/12 md:!e-max-w-${this.md}/12`]:this.isSizePropertyNumeric(this.md),[`lg:e-basis-${this.lg}/12 lg:!e-max-w-${this.lg}/12`]:this.isSizePropertyNumeric(this.lg),[`xl:e-basis-${this.xl}/12 xl:!e-max-w-${this.xl}/12`]:this.isSizePropertyNumeric(this.xl),[`e-basis-${this.cols}/12 !e-max-w-${this.cols}/12`]:this.isSizePropertyNumeric(this.cols),[`xs:e-offset-${this.offsetXs}`]:this.offsetXs!==void 0,[`sm:e-offset-${this.offsetSm}`]:this.offsetSm!==void 0,[`md:e-offset-${this.offsetMd}`]:this.offsetMd!==void 0,[`lg:e-offset-${this.offsetLg}`]:this.offsetLg!==void 0,[`xl:e-offset-${this.offsetXl}`]:this.offsetXl!==void 0,[`e-offset-${this.offset}`]:this.offset!==void 0}}},methods:{autoClasses(t,e){return`${t}e-basis-${e==="auto"?"auto":"0"} ${t}e-grow${e==="auto"?"-0":""} ${t}e-w-${e==="auto"?"auto":"full"}`},isSizePropAuto(t,e=!1){return t==="auto"||t===0||t==="0"||e&&!t},isSizePropertyNumeric(t){const e=Number.parseInt(t);return t!=="auto"&&!isNaN(e)&&e>=1&&e<12}}}),q8="";var M1=function(){var e=this,r=e._self._c;return r("div",{staticClass:"e-col",class:e.colClasses},[e._t("default")],2)},E1=[],$1=Y(k1,M1,E1,!1,null,null,null,null);const hi=$1.exports;function Or(){const t=document;return!!(t.fullscreenElement||t.mozFullScreenElement||t.webkitFullscreenElement||t.msFullscreenElement)}function zr(t){if(Or())return new Promise(r=>r(null));const e=t;return e.requestFullscreen?e==null?void 0:e.requestFullscreen():e.mozRequestFullScreen?e==null?void 0:e.mozRequestFullScreen():e.webkitRequestFullScreen?e==null?void 0:e.webkitRequestFullScreen():e.msRequestFullscreen?e==null?void 0:e.msRequestFullscreen():new Promise(r=>r(null))}function Br(){if(!Or())return new Promise(e=>e(null));const t=document;return t.exitFullscreen?t.exitFullscreen():t.mozCancelFullScreen?t.mozCancelFullScreen():t.webkitCancelFullScreen?t.webkitCancelFullScreen():t.msExitFullscreen?t.msExitFullscreen():new Promise(e=>e(null))}function fi(t,e){let r=null;return function(...n){const s=this;r!==null&&clearTimeout(r),r=setTimeout(()=>{r=null,t.apply(s,n)},e||1e3)}}function L1(t=1){const e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";let r="";for(let n=0;n<t;n++)r+=e.charAt(Math.floor(Math.random()*e.length));return r}function D1(t,e=0,r=0,n=t.naturalWidth,s=t.naturalHeight){const l=document.createElement("canvas"),i=l.getContext("2d");l.width=n,l.height=s,i==null||i.drawImage(t,e,r,n,s,0,0,n,s);const h=l.toDataURL();return l.remove(),h}function P1(t){return!!(t!=null&&t.length&&!isNaN(new Date(t).getTime()))}function pi(t,e=1){let r=0,n=0,s=0;return t.length===4?(r=parseInt(t[1]+t[1],16),n=parseInt(t[2]+t[2],16),s=parseInt(t[3]+t[3],16)):t.length===7&&(r=parseInt(t[1]+t[2],16),n=parseInt(t[3]+t[4],16),s=parseInt(t[5]+t[6],16)),`rgba(${r}, ${n}, ${s}, ${e})`}function mi(t,e=1){const r=t.match(/\d+/g);return r&&r.length===3?`rgba(${r[0]}, ${r[1]}, ${r[2]}, ${e})`:null}function gi(t){return t.startsWith("rgba")}function dt(t,e=1){return gi(t)?t:t.startsWith("#")?pi(t,e):t.startsWith("rgb")?mi(t,e):t}function vi(t){const e=JSON.stringify(t);return _i(e).toString()}function _i(t){var e=0,r,n;if(t.length===0)return e;for(r=0;r<t.length;r++)n=t.charCodeAt(r),e=(e<<5)-e+n,e|=0;return e}const O1=j.extend({name:"EZoomable",props:{ignorePointerEvents:{type:Boolean,default:!1},withOverlay:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1}},data(){return{scale:1,minScale:1,maxScale:20,top:0,left:0,isPanning:!1,panStart:{x:0,y:0},isPinching:!1,previousPinchDistance:0,pinchDistance:0,pointers:{},transform:"matrix(1, 0, 0, 1, 0, 0)"}},computed:{contentStyle(){return{transform:this.transform}},isZoomed(){return this.scale>1}},watch:{contentStyle:{handler(t){this.$emit("apply-zoomable-style",{imgStyle:t})},immediate:!0,deep:!0}},methods:{updateZoomScale(){this.scale>this.maxScale?this.scale=this.maxScale:this.scale<this.minScale&&(this.scale=this.minScale)},handleZoom(t){const e=this.$refs.container,r=this.$refs.content;if(t.preventDefault(),this.disabled)return;const n=e.getBoundingClientRect(),s=r.getBoundingClientRect();if(!n||!s)return;const l=t.clientX,i=t.clientY,h=Math.max(-1,Math.min(1,t.wheelDelta||-t.detail)),a=this.scale;this.scale+=h/10,this.updateZoomScale();const o=((l-s.left)/s.width).toFixed(2),u=((i-s.top)/s.height).toFixed(2);this.left=Math.round(l-n.left-Number(o)*(s.width*this.scale/a)),this.top=Math.round(i-n.top-Number(u)*(s.height*this.scale/a));const f=0,m=0-n.width*(this.scale-1),v=0-n.height*(this.scale-1),b=0;this.left<m?this.left=m:this.left>f&&(this.left=f),this.top<v?this.top=v:this.top>b&&(this.top=b),this.updateTransform()},handleMouseDown(t){!this.isZoomed||this.disabled||(this.isPanning=!0,this.panStart={x:t.clientX,y:t.clientY})},handleMouseUp(){this.disabled||(this.isPanning=!1)},handleMouseLeave(){this.disabled||(this.isPanning=!1)},handleMouseMove(t){if(!this.isPanning||!this.isZoomed||this.disabled)return;const e=t.clientX-this.panStart.x,r=t.clientY-this.panStart.y;this.left+=e,this.top+=r,this.applyBoundsCorrection(),this.panStart={x:t.clientX,y:t.clientY},this.updateTransform()},applyBoundsCorrection(){const t=this.$refs.container,e=this.$refs.content,r=t.getBoundingClientRect(),n=e.getBoundingClientRect();if(!r||!n)return;const[s,l,i,h]=[r.top-n.top,n.right-r.right,n.bottom-r.bottom,r.left-n.left].map(a=>a<0?a:0);this.left+=h-l,this.top+=s-i},updateTransform(){this.transform=`matrix(${this.scale}, 0, 0, ${this.scale}, ${this.left}, ${this.top})`},getPointersDistance(t,e){return Math.hypot(e.clientX-t.clientX,e.clientY-t.clientY)},getPointersMidPoint(t,e){return{x:t.clientX+(e.clientX-t.clientX)/2,y:t.clientY+(e.clientY-t.clientY)/2}},updatePointerEvent(t){this.pointers[t.pointerId]=t},clearPointerEvent(t){this.$delete(this.pointers,t.pointerId)},updatePinchDistance(){const t=Object.values(this.pointers);t.length===2&&(this.pinchDistance=this.getPointersDistance(t[0],t[1]))},handlePointerDown(t){this.ignorePointerEvents||this.disabled||(this.updatePointerEvent(t),this.isPinching=Object.values(this.pointers).length===2,this.isPinching?(this.isPanning=!1,this.updatePinchDistance()):this.handleMouseDown(t))},handlePointerMove(t){if(!(this.ignorePointerEvents||this.disabled))if(this.updatePointerEvent(t),this.isPinching){this.previousPinchDistance=this.pinchDistance,this.updatePinchDistance();const e=this.pinchDistance/this.previousPinchDistance;this.scale*=e,this.updateZoomScale();const r=Object.values(this.pointers),n=this.getPointersMidPoint(r[0],r[1]);this.left=n.x-(n.x-this.left)*e,this.top=n.y-(n.y-this.top)*e,this.applyBoundsCorrection(),this.updateTransform()}else this.handleMouseMove(t)},handlePointerUp(t){this.ignorePointerEvents||this.disabled||(this.clearPointerEvent(t),this.previousPinchDistance=0,this.pinchDistance=0,this.isPanning=!1,this.isPinching=!1)}}}),Z8="";var z1=function(){var e=this,r=e._self._c;return r("div",{ref:"container",staticClass:"e-zoomable e-w-full e-h-full"},[r("div",{staticClass:"e-w-full e-h-full",class:{"e-cursor-grab":e.isZoomed&&!e.disabled,"e-cursor-grabbing":e.isPanning&&!e.disabled},on:{mousewheel:e.handleZoom,mousedown:e.handleMouseDown,mouseup:e.handleMouseUp,mouseleave:e.handleMouseLeave,mousemove:e.handleMouseMove,pointerdown:e.handlePointerDown,pointermove:e.handlePointerMove,pointerup:e.handlePointerUp,pointercancel:e.handlePointerUp,pointerout:e.handlePointerUp,pointerleave:e.handlePointerUp}},[r("div",{ref:"content",staticClass:"e-zoomable__content e-w-full e-h-full e-transform-0 e-touch-none e-relative",style:e.contentStyle},[e._t("default")],2),e.withOverlay&&!e.disabled?r("div",{staticClass:"e-zoomable__overlay e-absolute e-w-full e-h-full e-bottom-0 e-left-0 e-overflow-hidden"},[e._t("overlay")],2):e._e()])])},B1=[],I1=Y(O1,z1,B1,!1,null,"270d2bfd",null,null);const Ir=I1.exports,Ar=new Intl.NumberFormat(void 0,{minimumIntegerDigits:2}),yi=["play","pause","ended","loadeddata","waiting","playing","timeupdate","canplay","canplaythrough","statechanged","error"],Fr=t=>{const e=Math.floor(t%60),r=Math.floor(t/60)%60,n=Math.floor(t/3600);return n===0?`${r}:${Ar.format(e)}`:`${n}:${Ar.format(r)}:${Ar.format(e)}`},A1=j.extend({name:"EVideoPlayer",components:{ESpinner:Pr,EZoomable:Ir},props:{targetTimestamp:{type:[String,Date],default:void 0},sources:{type:[Array,String],required:!0},videoListeners:{type:Object,default:()=>({})},videoOptions:{type:Object,default:()=>({})},isHls:{type:Boolean,default:!1},streamingToken:{type:String,default:""},pauseOnClick:{type:Boolean,default:!0},isHlsLoading:{type:Boolean,default:!1},isPlaying:{type:Boolean,default:!1},isZoomable:{type:Boolean,default:!1},zoomableIgnorePointerEvents:{type:Boolean,default:!1},timezone:{type:String,default:"UTC"},playPauseAnimation:{type:Boolean,default:!0},disablePlayPauseAnimation:{type:Boolean,default:!1},isWebRtc:{type:Boolean,default:!1},withColoredLoader:{type:Boolean,default:!1},loaderSize:{type:String,default:"7xl"},withOverlayOnBackground:{type:Boolean,default:!1},fallbackSrc:{type:String,default:""},hlsOptions:{type:Object,default:()=>({})}},data(){return{playing:!1,percentagePlayed:0,videoLength:"0:00",duration:0,videoDuration:0,currentTime:"0:00",realtime:0,isScrubbing:!1,wasPaused:!1,isFullscreen:!1,isFinished:!1,isLoading:!0,isError:!1,player:new it,playbackRetries:0,preloadedSeconds:0,preloadedInterval:{}}},computed:{posterUrl(){var t;return(t=this.videoOptions)==null?void 0:t.poster},sourceItems(){return Array.isArray(this.sources)?this.sources:[{src:this.sources}]},hasStartedOrFinished(){return(this.isFinished||this.realtime<=.1)&&!this.isLoading&&!this.isLooped()},withControls(){const t=this.videoOptions;return(t==null?void 0:t.controls)===!1?"hide":""}},watch:{isPlaying:{immediate:!0,async handler(t){this.playing=t,t?await this.play():this.pause(),this.isHls&&(t?this.$emit("hls-play"):this.$emit("hls-pause"))}},preloadedSeconds(t){this.preloadedInterval={start:Se(this.targetTimestamp).format(),end:Se(this.targetTimestamp).add(t,"seconds").format()},this.$emit("preloaded-interval",this.preloadedInterval)},targetTimestamp:{immediate:!0,handler(t){var l,i;if(!this.isHls)return;const e=this.$refs.player,r=(l=this.preloadedInterval)==null?void 0:l.start,n=(i=this.preloadedInterval)==null?void 0:i.end;if(!(r&&n))return;const s=Se(t).isBetween(Se(r),Se(n),void 0,"[]");e.currentTime=0,s||this.initHls()}}},mounted(){this.isHls&&this.initHls(),this.bindEvents(),this.initializePlayer(),this.initializeFullscreenListeners()},beforeDestroy(){this.unbindEvents(),this.destroyPlayer(),this.removeFullscreenListeners()},methods:{initHls(t=""){var n,s,l,i,h;const e=this.$refs.player,r=this.sources[0];(n=this.player)!=null&&n.stopLoad&&this.player.stopLoad(),it.isSupported()&&(this.isLoading=!0,this.player=new it({startPosition:0,xhrSetup:a=>{this.streamingToken&&a.setRequestHeader("Authorization",`Bearer ${this.streamingToken}`)},...this.hlsOptions}),(s=this.player)==null||s.loadSource(t||r.src),(l=this.player)==null||l.attachMedia(e),(i=this.player)==null||i.on(it.Events.MANIFEST_PARSED,(a,o)=>{var m;const u=(m=o.levels[o.firstLevel])==null?void 0:m.details,f=u==null?void 0:u.startTimeOffset;e.currentTime=f||0,this.playing&&e.play()}),(h=this.player)==null||h.on(it.Events.ERROR,this.handleHlsError))},onContainerClick(){this.pauseOnClick&&this.togglePlay()},handle404Error(){this.isWebRtc||(this.isError=!0,this.isLoading=!1,this.playing=!1)},handleHlsError(t,e){var o;if(!e.fatal)return;this.$emit("hls-error",e);const r=e.type===it.ErrorTypes.NETWORK_ERROR,n=e.type===it.ErrorTypes.MEDIA_ERROR,s=r&&((o=e.networkDetails)==null?void 0:o.status)===404,l=this.$refs.player,i=()=>this.fallbackSrc&&(l==null?void 0:l.currentSrc)!==this.fallbackSrc,h=()=>this.initHls(this.fallbackSrc),a=()=>{if(i()){h();return}this.player.destroy(),this.videoListeners.error?this.videoListeners.error():this.handle404Error()};if(s){a();return}if(r){console.error("A network error occurred:",e),i()?h():this.player.startLoad();return}n&&(console.error("A media error occurred:",e),i()?h():this.player.recoverMediaError()),a()},bindEvents(){const t=this.$refs.player;yi.forEach(e=>{t.addEventListener(e,()=>this.bindVideoEvent(e),!0)})},onProgress(){const t=this.$refs.player;if(t&&t.buffered.length>0)try{this.preloadedSeconds=t.buffered.end(t.buffered.length-1)}catch(e){console.error("Error while fetching buffered end time:",e)}else console.log("No video data has been buffered yet.")},unbindEvents(){const t=this.$refs.player;yi.forEach(e=>{t.removeEventListener(e,()=>this.bindVideoEvent(e),!0)})},bindVideoEvent(t){const e=this.$refs.player;if(!e)return;const r=this.$refs.timelineContainer;t==="loadeddata"&&(this.videoLength=Fr(e.duration)),r&&(t==="timeupdate"&&(this.percentagePlayed=(e==null?void 0:e.currentTime)/(e==null?void 0:e.duration)*100,r==null||r.style.setProperty("--progress-position",this.percentagePlayed.toString())),this.$emit(t,{event,player:e}))},initializePlayer(){const t=this.$refs.player;t&&(t.autoplay&&this.setPlaying(!0),document.addEventListener("mouseup",this.handleScrubbingOnMouseEnd),document.addEventListener("keydown",this.handleKeyDown))},destroyPlayer(){this.player&&(this.player.stopLoad(),this.player.destroy()),window.removeEventListener("keydown",this.handleKeyDown),document.removeEventListener("mouseup",this.handleScrubbingOnMouseEnd)},removeFullscreenListeners(){const t=document;t.fullscreenEnabled||t.webkitFullscreenEnabled||t.mozFullScreenEnabled||t.msFullscreenEnabled?(t.removeEventListener("fullscreenchange",this.handleFullscreenChange),t.removeEventListener("webkitfullscreenchange",this.handleFullscreenChange),t.removeEventListener("mozfullscreenchange",this.handleFullscreenChange),t.removeEventListener("MSFullscreenChange",this.handleFullscreenChange)):console.log("Fullscreen API is not supported in this browser.")},initializeFullscreenListeners(){const t=document;t.fullscreenEnabled||t.webkitFullscreenEnabled||t.mozFullScreenEnabled||t.msFullscreenEnabled?(t.addEventListener("fullscreenchange",this.handleFullscreenChange),t.addEventListener("webkitfullscreenchange",this.handleFullscreenChange),t.addEventListener("mozfullscreenchange",this.handleFullscreenChange),t.addEventListener("MSFullscreenChange",this.handleFullscreenChange)):console.log("Fullscreen API is not supported in this browser.")},handleFullscreenChange(){const t=document;this.isFullscreen=!!t.fullscreenElement||!!t.mozFullScreenElement||!!t.webkitFullscreenElement||!!t.msFullscreenElement||window.innerWidth==screen.width&&window.innerHeight==screen.height},isLooped(){return this.$refs.player.loop},handleScrubbingOnMouseEnd(t){this.isScrubbing&&this.toggleScrubbing(t)},handleEnded(){this.isFinished=!0,this.playing=!1},handleLoading(){this.isLoading=!1},async play(){const t=this.$refs.player;if(t)try{await t.play(),this.setPlaying(!0)}catch(e){console.error(e),this.playbackRetries+=1,this.isHls&&this.playbackRetries<3&&this.initHls()}},pause(){const t=this.$refs.player;t&&(t.pause(),this.setPlaying(!1))},async togglePlay(){this.playing?this.pause():await this.play()},setPlaying(t){this.playing=t},seekToPercentage(t){const e=this.$refs.player;if(!e)return;const r=t/100*e.duration;e.currentTime=r},convertTimeToDuration(t){return[parseInt(t/60%60,10),parseInt(t%60,10)].join(":").replace(/\b(\d)\b/g,"0$1")},closeFullscreenMode(){document.fullscreenElement&&(Br().then(()=>{this.isFullscreen=!1}),this.isFullscreen=!1)},openFullscreenMode(){const t=this.$refs.videoContainer;t&&(zr(t).then(()=>{this.isFullscreen=!0}),this.isFullscreen=!0)},toggleFullscreenMode(){this.isFullscreen?this.closeFullscreenMode():this.openFullscreenMode()},getDuration(){const t=this.$refs.player;this.videoLength=Fr(t.duration),this.videoDuration=t.duration},handleTimeUpdate(){const t=this.$refs.player,e=this.$refs.timelineContainer;if(!t||!e)return;this.currentTime=Fr(t.currentTime),this.realtime=t.currentTime;const r=Number(this.realtime)/Number(this.videoDuration);e.style.setProperty("--progress-position",r.toString())},handleTimelineUpdate(t){const e=this.$refs.player;if(!document.body.contains(e))return;const r=this.$refs.timelineContainer,n=r.getBoundingClientRect(),s=Math.min(Math.max(0,t.x-n.x),n.width)/n.width;r.style.setProperty("--preview-position",s.toString()),this.isScrubbing&&(t.preventDefault(),r.style.setProperty("--progress-position",s.toString()))},skip(t=5){const e=this.$refs.player;e.currentTime+=t},async toggleScrubbing(t){const e=this.$refs.timelineContainer,r=this.$refs.videoContainer,n=this.$refs.player;if(!n)return;const s=e.getBoundingClientRect(),l=Math.min(Math.max(0,t.x-s.x),s.width)/s.width;if(this.isScrubbing=(t.buttons&1)===1,r.classList.toggle("scrubbing",this.isScrubbing),this.isScrubbing){this.wasPaused=n.paused,await n.pause(),this.handleTimelineUpdate(t);return}if(this.realtime=l*this.videoDuration,n.currentTime=l*this.videoDuration,this.wasPaused)return;const i=n.play();i!==void 0&&i.then(()=>this.handleTimelineUpdate(t)).catch(console.error)},handleKeyDown(t){var r;const e=(r=document.activeElement)==null?void 0:r.tagName.toLowerCase();if(e!=="input")switch(t.key.toLowerCase()){case" ":if(e==="button")return;this.togglePlay();break;case"k":this.togglePlay();break;case"escape":t.preventDefault(),this.closeFullscreenMode(),this.isFullscreen=!1;break;case"f":this.openFullscreenMode(),this.isFullscreen=!0;break}}}}),U8="";var F1=function(){var e=this,r=e._self._c;return r("div",{ref:"videoContainer",staticClass:"video-container paused"},[r("EZoomable",{ref:"zoomable",attrs:{"ignore-pointer-events":e.zoomableIgnorePointerEvents,disabled:!e.isZoomable,"with-overlay":e.withOverlayOnBackground},on:{"apply-zoomable-style":function(n){return e.$emit("apply-zoomable-style",n)}},scopedSlots:e._u([{key:"overlay",fn:function(){return[e._t("zoomable-overlay")]},proxy:!0}],null,!0)},[e._t("background",function(){return[r("div",{staticClass:"e-relative e-overflow-hidden",style:{height:e.$attrs.height,width:e.$attrs.width}},[e.posterUrl?r("img",{staticClass:"e-absolute e-block e-w-full e-scale-150 e-z-[-1] e-inset-0 e-m-auto e-blur-video-poster",style:{height:e.$attrs.height,width:e.$attrs.width},attrs:{src:e.posterUrl,alt:"background-image"},on:{error:function(n){return e.$emit("poster-error",n)}}}):e._e()])]}),r("video",e._g(e._b({ref:"player",class:{"e-w-full e-h-full e-z-[5] e-min-h-[400px]":!0,"e-absolute e-inset-0":e.isZoomable,"e-relative":!e.isZoomable},attrs:{controls:!1,preload:"auto"},on:{ended:e.handleEnded,click:e.onContainerClick,loadedmetadata:e.getDuration,timeupdate:e.handleTimeUpdate,loadeddata:e.handleLoading}},"video",e.videoOptions,!1),e.videoListeners),[e.isWebRtc?e._e():e._l(e.sourceItems,function(n){return r("source",e._g({key:n.src,attrs:{src:n.src,type:n.type},on:{error:e.handle404Error}},e.videoListeners))})],2)],2),e.isLoading?r("div",{staticClass:"spinner-container"},[r("ESpinner",{attrs:{color:e.withColoredLoader,size:e.loaderSize,opacity:"0.6",dark:!0}})],1):e._e(),e._t("default"),e.isError?r("div",{staticClass:"spinner-container e-gap-3"},[r("i",{staticClass:"fa-solid fa-video-slash fa-2xl e-align-middle"}),r("span",[e._v("This video file cannot be played.")])]):e._e(),e._t("controls",function(){return[r("div",{class:["video-controls-container",e.withControls]},[r("div",{staticClass:"controls"},[r("button",{ref:"playPauseBtn",staticClass:"play-pause-btn fa-lg fa-solid fas",class:{"fa-play":!e.playing,"fa-pause":e.playing},attrs:{title:e.playing?"pause":"play"},on:{click:e.togglePlay}}),r("div",{staticClass:"duration-container"},[r("div",{ref:"currentTimeElem",staticClass:"current-time"},[e._v(" "+e._s(e.currentTime)+" ")]),e._v(" / "),r("div",{ref:"totalTimeElem",staticClass:"total-time"},[e._v(e._s(e.videoLength))])]),r("div",{ref:"timelineContainer",staticClass:"timeline-container",on:{mousemove:e.handleTimelineUpdate,mousedown:e.toggleScrubbing}},[e._m(0)]),r("button",{ref:"fullScreenBtn",staticClass:"full-screen-btn fa-solid",class:{"fa-expand":!e.isFullscreen,"fa-compress":e.isFullscreen},on:{click:e.toggleFullscreenMode}})])])]},{play:e.play,pause:e.pause,isPlaying:e.playing,playerInstance:e.player,toggleFullscreen:e.toggleFullscreenMode,currentTime:e.currentTime,videoLength:e.videoLength,isFullscreen:e.isFullscreen})],2)},R1=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"timeline"},[e("div",{staticClass:"thumb-indicator"})])}],H1=Y(A1,F1,R1,!1,null,"3ebc2ce7",null,null);const Ci=H1.exports,Qe={bind(t,e){const{value:r}=e;if(typeof r!="function"){console.error("Invalid callback function provided to v-resize-observer");return}const n=new ResizeObserver(s=>{s[0]&&r(s[0])});n.observe(t),t.__resizeObserver__=n},unbind(t){t.__resizeObserver__&&(t.__resizeObserver__.disconnect(),delete t.__resizeObserver__)}},Rr={bind(t,e){const r=t;r.handleClick=function(n){if(!(r===n.target||r.contains(n.target))){const s=e.value;typeof s=="function"&&s(n)}},setTimeout(()=>{document.addEventListener("click",r.handleClick)})},unbind(t){const e=t;e.handleClick&&(document.removeEventListener("click",e.handleClick),delete e.handleClick)}},bi=[{name:"resize-observer",definition:Qe},{name:"click-outside",definition:Rr}],at={transparencyGradient:"transparency-gradient",transparencyGradientLight:"transparency-gradient-light",loadingGradient:"loading-gradient",stripedPattern:"stripedPattern",clipPath:"clip-path"},H={xAxis:"e-x-axis",xAxisDark:"e-x-axis--dark",xAxisOverview:"e-x-axis-overview",xAxisDetailed:"e-x-axis-detailed",xAxisBackground:"e-x-axis-background",eventGroup:"event-group",eventGroupBg:"event-group-bg",eventRect:"event-rect",eventBarContainer:"event-bar-container",eventBarContainerHovered:"event-bar-container--hovered",eventBarContainerSelected:"event-bar-container--selected",eventBar:"event-bar",eventBarHoverZone:"event-bar-hover-zone",eventBarCap:"event-bar-cap",eventRectText:"event-rect-text",eventRectHovered:"event-rect--hovered",eventRectSelected:"event-rect--selected",labelGroup:"label-g",labelBg:"label-bg",labelBgFill:"label-bg-fill",labelText:"label-text",loadingIndicator:"loading-indicator",selectedTimestampCursor:"selected-timestamp-cursor",marker:"marker",markerLabel:"marker-label",markerLine:"marker-line",markerDragged:"marker--dragged",milestone:"e-tl-milestone",milestoneBullet:"e-tl-milestone--bullet",milestoneDot:"e-tl-milestone--dot",milestoneContent:"e-tl-milestone-content",milestoneLine:"e-tl-milestone-line",milestonesContainer:"e-tl-milestones",milestoneHovered:"e-tl-milestone--hovered",milestoneSelected:"e-tl-milestone--selected",milestoneLabel:"e-tl-milestone-label",milestoneDotContainer:"e-tl-milestone-dot-container",milestoneDotLine:"e-tl-milestone-dot-line",milestoneDotDot:"e-tl-milestone-dot-dot",milestoneDotHovered:"e-tl-milestone-dot--hovered",barChartGroup:"bar-chart-group",lineGraphGroup:"line-graph-group",lineGraphGroupLabel:"line-graph-group-label",lineGraphPath:"line-graph-path",lineGraphHoverZone:"line-graph-hover-zone",lineGraphDot:"line-graph-dot",curtain:"curtain",forbiddenInterval:"forbidden-interval"},N1=j.extend({name:"ETimelineMilestone",directives:{resizeObserver:Qe},props:{milestone:{type:Object,required:!0},size:{type:Number,default:18},borderColor:{type:String,default:"#eee"},backgroundColor:{type:String,default:"#aaa"},borderWidth:{type:Number,default:2},transitionDuration:{type:Number,default:500},dot:{type:Boolean,default:!1},dotSize:{type:Number,default:8},lineWidth:{type:Number,default:2},lineHeight:{type:Number,default:28}},data(){return{classNames:H,timeouts:[],isInitialRender:!0,isMouseOver:!1}},computed:{transitionStyles(){return this.isInitialRender?{}:{transition:`transform ${this.transitionDuration}ms, width ${this.transitionDuration}ms, height ${this.transitionDuration}ms, padding ${this.transitionDuration}ms, border-radius ${this.transitionDuration}ms`}},sizeStyles(){return this.dot?{}:{width:`${this.size}px`,height:`${this.size}px`}},positionStyles(){return this.dot&&this.isMouseOver?{transform:`translateY(calc(-100% - ${this.lineHeight}px))`}:{}},styles(){return{...this.sizeStyles,...this.positionStyles,backgroundColor:this.backgroundColor,borderColor:this.borderColor,borderWidth:`${this.borderWidth}px`,borderStyle:"solid",...this.transitionStyles}},contentStyles(){return this.transitionStyles},computedTransitionDuration(){return this.isInitialRender?0:this.transitionDuration},labelStyles(){return{transition:`opacity ${this.computedTransitionDuration}ms`}},dotContainerStyles(){return{top:this.isMouseOver?`calc(100% - ${this.borderWidth}px)`:`calc(50% + ${this.dotSize/2}px)`,height:`calc(${this.lineHeight}px + ${this.dotSize}px)`,left:`calc(50% - ${this.lineWidth}px / 2)`,transition:`${this.computedTransitionDuration}ms`}},lineStyles(){return{bottom:`${this.dotSize/2}px`,left:`calc(50% - ${this.lineWidth}px / 2)`,width:`${this.lineWidth}px`,height:this.isMouseOver?`${this.lineHeight}px`:"0",backgroundColor:this.borderColor,transition:`${this.computedTransitionDuration}ms`}},dotStyles(){return{top:`${this.lineHeight}px`,left:`calc(50% - ${this.dotSize}px / 2)`,width:`${this.dotSize}px`,height:`${this.dotSize}px`,backgroundColor:this.borderColor,transition:`${this.computedTransitionDuration}ms`}}},mounted(){this.$nextTick(()=>{this.dot||(this.onMilestoneMouseOver(),this.onMilestoneMouseLeave()),this.isInitialRender=!1})},methods:{onMilestoneMouseOver(t){if(this.isMouseOver=!0,this.dot){this.$emit("hovered-milestone",this.milestone);return}const e=(t==null?void 0:t.target)||this.$refs.container;if(!e)return;const r=e.children[0];if(!r)return;const n=r.children[0];if(!n)return;const s=n.getBoundingClientRect(),l=e.dataset.timeoutId;l&&(clearTimeout(Number(l)),e.dataset.timeoutId=""),e.dataset.initialWidth||(e.dataset.initialWidth=e.style.width),e.dataset.initialHeight||(e.dataset.initialHeight=e.style.height),e.dataset.initialContentWidth||(e.dataset.initialContentWidth=String(s.width)),e.dataset.initialContentHeight||(e.dataset.initialContentHeight=String(s.height)),e.dataset.transitionStart=String(Date.now()),e.style.width=e.dataset.initialContentWidth+"px",e.style.height=e.dataset.initialContentHeight+"px",e.style.borderRadius="0.5em",e.classList.add(H.milestoneHovered),r.style.opacity="1",r.style.width=e.dataset.initialContentWidth+"px",r.style.height=e.dataset.initialContentHeight+"px"},onMilestoneMouseMove(){this.timeouts.forEach(t=>clearTimeout(t)),this.isMouseOver=!0},onMilestoneMouseLeave(t){if(this.dot){this.$emit("hovered-milestone",null),this.timeouts.push(setTimeout(()=>{this.isMouseOver=!1},this.transitionDuration+100));return}const e=(t==null?void 0:t.target)||this.$refs.container;if(!e)return;e.style.width=e.dataset.initialWidth||"",e.style.height=e.dataset.initialHeight||"",e.style.borderRadius="10em";const r=e.children[0];if(!r)return;r.style.width="0",r.style.height="0",r.style.opacity="0";const n=Date.now()-Number(e.dataset.transitionStart),s=n>this.transitionDuration?this.transitionDuration:n,l=setTimeout(()=>{e.classList.remove(H.milestoneHovered),e.dataset.timeoutId=""},s);e.dataset.timeoutId=String(l),this.timeouts.push(l)},onMilestoneClick(t,e){this.$emit("milestone-click",e)}}}),Y8="";var W1=function(){var e=this,r=e._self._c;return r("div",{ref:"container",class:{[e.classNames.milestone]:!0,[e.classNames.milestoneBullet]:!e.dot,[e.classNames.milestoneHovered]:e.isMouseOver&&!e.dot,[e.classNames.milestoneDot]:e.dot,[e.classNames.milestoneDotHovered]:e.isMouseOver&&e.dot},style:e.styles,attrs:{tabindex:"0"},on:{mouseover:n=>e.onMilestoneMouseOver(n),mousemove:e.onMilestoneMouseMove,mouseleave:n=>e.onMilestoneMouseLeave(n),click:n=>e.onMilestoneClick(n,e.milestone)}},[r("div",{class:e.classNames.milestoneContent,style:e.contentStyles},[e._t("content",function(){var n;return[r("span",[e._v(" "+e._s((n=e.milestone)==null?void 0:n.text)+" ")])]})],2),e.dot?r("div",{class:e.classNames.milestoneDotContainer,style:e.dotContainerStyles},[r("div",{class:e.classNames.milestoneDotLine,style:e.lineStyles}),r("div",{class:e.classNames.milestoneDotDot,style:e.dotStyles})]):r("div",{class:e.classNames.milestoneLabel,style:e.labelStyles},[e._t("label")],2)])},j1=[],G1=Y(N1,W1,j1,!1,null,null,null,null);const q1=G1.exports;function Hr({timestamp:t,timezone:e}){const r=xi(t,e);return Se(t).add(r,"minutes").toDate()}function Nr({date:t,timezone:e}){const r=new Date(t).getTimezoneOffset(),n=xi(t,e);return Se(t).add(r,"minutes").utcOffset(n,!0).format()}function xi(t,e){return e?Se.tz(t,e).utcOffset():Z1(t)}function Z1(t){return Se.parseZone(t).utcOffset()}const U1=j.extend({name:"ETimelineMarker",props:{marker:{type:Object,required:!0},height:{type:Number,required:!0},hidden:{type:[Boolean,void 0],default:void 0},position:{type:[Number,void 0],default:void 0}},methods:{getMarkerClass(t){return{"marker--hidden":this.hidden,"marker--draggable":t==null?void 0:t.isDraggable,...t.className?{[t==null?void 0:t.className]:!0}:{}}},getMarkerContainerStyle(){return{left:`${this.position}px`}},getMarkerLabelStyle(t){return{background:t.color,color:t.textColor||""}},getMarkerLineStyle(t){return{background:t.color,height:`${this.height+12}px`}}}}),X8="";var Y1=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("div",{staticClass:"marker e-absolute e-h-full e-top-0 e-z-10",class:e.getMarkerClass(e.marker),style:e.getMarkerContainerStyle(),on:{click:function(n){return e.$emit("marker-clicked",e.marker)}}},[r("div",{staticClass:"marker-label e-absolute"},[r("div",{staticClass:"marker-label-text",style:e.getMarkerLabelStyle(e.marker)},[e._t(`marker.${e.marker.id}`,function(){return[e._v(" "+e._s(e.marker.label)+" ")]},{marker:e.marker})],2)]),r("div",{staticClass:"marker-line e-absolute e-pointer-events-none",style:e.getMarkerLineStyle(e.marker)})])},X1=[],Q1=Y(U1,Y1,X1,!1,null,"614947ed",null,null);const V1=Q1.exports,K1=j.extend({name:"ETimelineMarkers",components:{ETimelineMarker:V1},props:{markers:{type:Array,default:()=>[]},timeScale:{type:Function,required:!0},timeZone:{type:[String,void 0],default:void 0},height:{type:Number,required:!0},svgLeft:{type:Number,default:void 0},stickyMarkers:{type:Boolean,default:!1}},data(){return{markersPositions:{},markersDragBehavior:null,initialMarkerDragMouseOffset:0}},watch:{timeScale:{handler(){this.updateMarkers()},deep:!0},markers(){this.updateMarkers()}},methods:{initMarkersDragBehavior(){this.removeMarkersDragBehavior();const t=this;this.markersDragBehavior=P.drag().on("start",function(e,r){t.handleMarkerDrag({marker:r,markerElement:P.select(this),dragEvent:e})}).on("drag",function(e,r){t.handleMarkerDrag({marker:r,markerElement:P.select(this),dragEvent:e})}).on("end",function(e,r){t.handleMarkerDrag({marker:r,markerElement:P.select(this),dragEvent:e})}),P.selectAll(`.${H.marker}`).data(this.markers).call(this.markersDragBehavior)},removeMarkersDragBehavior(){this.markersDragBehavior&&(this.markersDragBehavior.on("start",null).on("drag",null).on("end",null),P.selectAll(`.${H.marker}`).call(this.markersDragBehavior))},handleMarkerDrag({marker:t,markerElement:e,dragEvent:r}){var h;if(!t.isDraggable)return;(h=r.sourceEvent)==null||h.preventDefault(),r.type==="start"&&(this.initialMarkerDragMouseOffset=r.x-e.node().querySelector(`.${H.markerLine}`).getBoundingClientRect().left,e.classed(H.markerDragged,!0));const n=r.x-this.initialMarkerDragMouseOffset,s=this.timeScale.invert(n-this.svgLeft);let l=this.timeScale(s);const i=this.isTimestampAllowedForMarker(s,t);if(r.type==="drag"&&i&&e.attr("style",`left: ${l}px`),r.type==="end"){const a=t.id||t.timestamp;l=i?l:this.timeScale(this.tzStringToDate(t.timestamp)),this.markersPositions={...this.markersPositions,[a]:{...this.markersPositions[a],position:l}},e.classed(H.markerDragged,!1)}r.type!=="start"&&this.$emit(`marker-drag-${r.type}`,{marker:t,newTimestamp:i?this.dateToTzString(s):t.timestamp})},updateMarkers(){if(!this.markers.length)return;const t=12,e=200;this.markers.forEach((r,n,s)=>{const l=typeof r.timestamp=="string"?this.tzStringToDate(r.timestamp):r.timestamp,i=this.timeScale(l);let h=!1;const a=this.stickyMarkers?Math.max(i,n*t):i;if(n<s.length-1){const o=s[n+1],u=typeof o.timestamp=="string"?this.tzStringToDate(o.timestamp):o.timestamp,f=this.timeScale(u);h=(this.stickyMarkers?Math.max(f,(n+1)*t):i)-a<e+t}this.markersPositions={...this.markersPositions,[r.id]:{isHidden:h,position:a}}}),this.initMarkersDragBehavior()},isTimestampAllowedForMarker(t,e){return(e.minDate?t>=this.tzStringToDate(e.minDate):!0)&&(e.maxDate?t<=this.tzStringToDate(e.maxDate):!0)},tzStringToDate(t){return Hr({timestamp:t,timezone:this.timeZone})},dateToTzString(t){return Nr({date:t,timezone:this.timeZone})}}});var J1=function(){var e=this,r=e._self._c;return r("div",{staticClass:"e-tl-markers"},e._l(e.markers,function(n){var s,l;return r("ETimelineMarker",{key:n.id,attrs:{marker:n,height:e.height,position:(s=e.markersPositions[n.id])==null?void 0:s.position,hidden:(l=e.markersPositions[n.id])==null?void 0:l.isHidden,"data-id":n.id},on:{"marker-clicked":function(i){return e.$emit("marker-clicked",i)}},scopedSlots:e._u([{key:`marker.${n.id}`,fn:function(){return[e._t(`marker.${n.id}`,function(){return[e._v(" "+e._s(n.label)+" ")]},{marker:n})]},proxy:!0}],null,!0)})}),1)},e0=[],t0=Y(K1,J1,e0,!1,null,null,null,null);const r0=t0.exports,n0=j.extend({name:"EZoomBehavior",props:{width:{type:[Number,void 0],default:void 0},domain:{type:Array,required:!0},focusedDomain:{type:[Array,void 0],default:void 0},timezone:{type:String,default:"UTC"},disabled:{type:Boolean,default:!1},scalingDuration:{type:Number,default:400},translationDuration:{type:Number,default:400},focusedTimestamp:{type:[String,Date],default:""}},data(){return{timeScale:null,initialTimeScale:null,zoomBehavior:null,selection:null,isTransitioning:!1,container:null,isLocked:!1,transformDiff:{translation:0,scale:1},lastTransform:{x:0,y:0,k:1},isLeftBoundaryReached:!1,isRightBoundaryReached:!1,resetBoundariesTimeout:0}},computed:{minDate(){const t=this.domain[0];return this.toD3Date(t)},maxDate(){const t=this.domain[1];return this.toD3Date(t)},focusedStartDate(){const e=(this.focusedDomain||this.domain)[0];return this.toD3Date(e)},focusedEndDate(){const e=(this.focusedDomain||this.domain)[1];return this.toD3Date(e)}},watch:{timeScale(){this.emitTimeScaleChange(),this.emitFocusedDomainChange()},focusedDomain(t){this.zoomToFocusedDomain(t)},focusedTimestamp(t){t&&this.panToTimestamp(t)},transformDiff(){this.$emit("transform-changed",this.transformDiff)}},mounted(){this.initRefs(),this.initTimeScale(),this.initZoomBehavior(),this.emitTimeScaleChange()},methods:{initRefs(){this.container=this.$refs.container},initTimeScale(){this.timeScale=P.scaleTime().domain([this.focusedStartDate,this.focusedEndDate]).range([0,this.getWidth()]),this.initialTimeScale=this.timeScale.copy()},calculateZoomExtents(){const t=[this.focusedStartDate,this.focusedEndDate],e=this.getWidth(),r=this.maxDate.getTime()-this.minDate.getTime(),l=[(this.focusedEndDate.getTime()-this.focusedStartDate.getTime())/r,1/0],i=this.initialTimeScale.copy();i.domain(t);const h=i(this.minDate),a=-(e-i(this.maxDate));return{scaleExtent:l,translateExtent:[[h||-1/0,0],[a||1/0,0]]}},initZoomBehavior(){const{scaleExtent:t,translateExtent:e}=this.calculateZoomExtents();this.zoomBehavior=P.zoom().scaleExtent(t).translateExtent(e).on("zoom",this.handleZoom),this.selection=P.select(this.container),this.selection.call(this.zoomBehavior)},handleZoom(t){const r=t.transform.rescaleX(this.initialTimeScale.copy()).domain(),n=r[0]<=this.minDate,s=r[1]>=this.maxDate;if(n||s){const i=P.zoomIdentity.translate(this.lastTransform.x,this.lastTransform.y).scale(this.lastTransform.k);this.selection.call(this.zoomBehavior.transform,i),this.updateBoundaries(n,s);return}const l=t.transform.k/this.lastTransform.k;this.transformDiff={scale:l,translation:t.transform.x-this.lastTransform.x},this.lastTransform={...t.transform},this.timeScale=t.transform.rescaleX(this.timeScale).domain(r)},toD3Date(t){return Hr({timestamp:t,timezone:this.timezone})},toDateString(t){return Nr({date:t,timezone:this.timezone})},getWidth(){var t,e;return this.width?this.width:(e=(t=this.container)==null?void 0:t.getBoundingClientRect())==null?void 0:e.width},zoomToFocusedDomain(t){const e=this.toD3Date(t[0]),r=this.toD3Date(t[1]),n=this.timeScale.domain();if(e.getTime()===n[0].getTime()&&r.getTime()===n[1].getTime())return;const s=this.initialTimeScale.domain().map(m=>m.getTime()),l=s[1]-s[0],i=r.getTime()-e.getTime(),h=.1*i,a=i+2*h;let o=l/a;const u=this.zoomBehavior.scaleExtent();o=Math.min(Math.max(o,u[0]),u[1]);const f=this.initialTimeScale.copy().domain([e,r]);this.selection.transition().duration(this.scalingDuration/2).call(this.zoomBehavior.scaleTo,o).on("end",()=>this.translateIntervalIntoView(e.getTime(),r.getTime(),o)),this.timeScale=f},translateIntervalIntoView(t,e,r){const n=this.timeScale(new Date(t)),s=this.timeScale(new Date(e)),l=(n+s)/2,h=this.getWidth()/2-l,a=P.zoomTransform(this.selection.node());this.selection.transition().duration(this.translationDuration/2).call(this.zoomBehavior.transform,P.zoomIdentity.translate(a.x+h,a.y).scale(r))},emitTimeScaleChange(){this.$emit("time-scale-change",this.timeScale)},emitFocusedDomainChange(){if(!this.selection.node())return;const[e,r]=this.timeScale.domain();this.$emit("focused-domain-change",[this.toDateString(e),this.toDateString(r)])},panToTimestamp(t){const e=new Date(t),r=this.timeScale(e),n=P.zoomTransform(this.selection.node()),s=n.x-r+this.getWidth()/2;this.selection.transition().duration(this.translationDuration).call(this.zoomBehavior.transform,P.zoomIdentity.translate(s,0).scale(n.k)).on("end",()=>{this.emitFocusedDomainChange()})},updateBoundaries(t,e){this.isLeftBoundaryReached=t,this.isRightBoundaryReached=e,clearTimeout(this.resetBoundariesTimeout),this.resetBoundariesTimeout=setTimeout(this.resetBoundaries,300)},resetBoundaries(){this.isLeftBoundaryReached=!1,this.isRightBoundaryReached=!1}}}),Q8="";var i0=function(){var e=this,r=e._self._c;return r("div",{ref:"container",staticClass:"e-zoom-behavior"},[r("transition",{attrs:{name:"boundary-fade"}},[e.isLeftBoundaryReached?r("div",{staticClass:"e-zoom-behavior__boundary e-zoom-behavior__boundary__left e-bg-gradient-to-r e-from-red-700 e-to-transparent"}):e._e()]),e._t("default",null,{timeScale:e.timeScale}),r("transition",{attrs:{name:"boundary-fade"}},[e.isRightBoundaryReached?r("div",{staticClass:"e-zoom-behavior__boundary e-zoom-behavior__boundary__right e-bg-gradient-to-l e-from-red-700 e-to-transparent"}):e._e()])],2)},s0=[],a0=Y(n0,i0,s0,!1,null,null,null,null);const o0=a0.exports,l0=j.extend({name:"EXAxis",props:{ticksConfigs:{type:Array,required:!0},timeScale:{type:Function,required:!0},x:{type:Number,default:0},y:{type:Number,default:0},height:{type:Number,default:10},dark:{type:Boolean,default:!1}},data(){return{classNames:H}},computed:{classes(){return{[H.xAxis]:!0,[H.xAxisDark]:this.dark}},axis(){return P.axisBottom(this.timeScale).ticks(this.currentTicksConfig.interval).tickFormat(this.currentTicksConfig.formatFn).tickSizeOuter(0).tickSizeInner(this.height)},density(){const t=this.timeScale.invert(0).getTime(),e=this.timeScale.invert(1).getTime(),r=36e5,n=(e-t)/r;return isNaN(n)?1:n},currentTicksConfig(){const{interval:t,format:e}=this.ticksConfigs.find(n=>n.precision>=this.density&&n.interval);return{formatFn:n=>typeof e=="function"?e(n):P.timeFormat(e)(n),interval:t}}},watch:{timeScale:{handler(){this.update()},deep:!0},currentTicksConfig:{handler(){this.update()},deep:!0},height(){this.updateTicksSize()}},mounted(){this.update()},methods:{update(){const t=this.$refs.container;P.select(t).call(this.axis),this.translateTicksText()},translateTicksText(){const t=this.$refs.container;P.select(t).selectAll(".tick text").each(function(){P.select(this).attr("x",5).attr("y",0).style("text-anchor","start")})},updateTicksSize(){this.axis.tickSizeOuter(0).tickSizeInner(this.height),this.update()}}}),V8="";var c0=function(){var e=this,r=e._self._c;return r("g",{ref:"container",class:e.classes,attrs:{"text-anchor":"middle",transform:`translate(${e.x}, ${e.y})`}})},u0=[],d0=Y(l0,c0,u0,!1,null,null,null,null);const Wr=d0.exports,Dt=t=>{const e=P.utcFormat("%_d")(t),r=h0(parseInt(e));return`${e}${r}`},wi=t=>new Date(Date.UTC(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()+1)).getUTCDate()===1?"":P.utcFormat("%-d")(t),mt=t=>["0"," 0","00"].includes(P.utcFormat("%H")(t))?"":`${P.utcFormat("%H")(t)}h`,nt=t=>{const e=P.utcFormat("%H:%M")(t);return e==="00:00"?"":e},jr=t=>P.utcFormat("%M:%S")(t),Si=t=>`${P.utcFormat("%Hh%Mm")(t)}`,Gr=t=>{const e=nt(t),r=Dt(t),n=P.utcFormat("%B")(t);return e||`${n} ${r}`},qr=t=>{const e=nt(t),r=Number.parseInt(P.utcFormat("%H")(t)),n=Dt(t),s=P.utcFormat("%B")(t);return e&&r%6===0?`${s} ${n} ${e}`:Gr(t)},h0=t=>{if(t>3&&t<21)return"th";switch(t%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}},gt=t=>e=>{const r=P.utcFormat("%H")(e);return!(P.utcFormat("%M")(e)==="00"&&Number.parseInt(r)%t===0)},Zr=t=>e=>{const r=P.utcFormat("%M")(e);return Number.parseInt(r)%t!==0},Ti=t=>e=>{const r=P.utcFormat("%M")(e),n=P.utcFormat("%S")(e);return Number.parseInt(r)%t!==0&&Number.parseInt(n)===0},ee={_10_seconds:25e-6,_20_seconds:1e-4,_30_seconds:15e-5,_1_minute:3e-4,_2_minutes:75e-5,_5_minutes:.002,_15_minutes:.005,_30_minutes:.01,_1_hour:.025,_2_hours:.05,_3_hours:.1,_4_hours:.15,_6_hours:.25,_1_day:1,_2_days:2,_1_month:8,_1_month_abbr:13,_1_month_letter:22,_3_months:33,_2_year:48,_5_years:120,_20_years:480,_75_years:1800,_300_years:7200,infinity:1/0},Ur={[et.overview]:[{precision:ee._30_seconds,interval:P.utcMinute.every(2),format:Si},{precision:ee._1_minute,interval:P.utcMinute.every(5),format:Si},{precision:ee._2_minutes,interval:P.utcMinute.every(10),format:Gr},{precision:ee._5_minutes,interval:P.utcMinute.every(20),format:qr},{precision:ee._15_minutes,interval:P.utcHour,format:qr},{precision:ee._30_minutes,interval:P.utcHour.every(2),format:qr},{precision:ee._2_hours,interval:P.utcHour.every(6),format:t=>{const e=nt(t),r=Dt(t),n=P.utcFormat("%B")(t);return e||`${n} ${r}`}},{precision:ee._3_hours,interval:P.utcHour.every(12),format:Gr},{precision:ee._6_hours,interval:P.utcHour.every(24),format:t=>{const e=Dt(t),r=P.utcFormat("%b")(t),n=P.utcFormat("%Y")(t);return`${r} ${e} ${n}`}},{precision:ee._2_days,interval:P.utcMonth,format:"%Y – %B"},{precision:ee._2_year,interval:P.utcMonth.every(3),format:"%Y Q%q"},{precision:ee._5_years,interval:P.utcYear.every(5),format:"%Y"},{precision:ee._20_years,interval:P.utcYear.every(20),format:"%Y"},{precision:ee._75_years,interval:P.utcYear.every(75),format:"%Y"},{precision:ee._300_years,interval:P.utcYear.every(300),format:"%Y"},{precision:ee.infinity,interval:P.utcMonth.every(12),format:"%Y"}],[et.detailed]:[{precision:ee._10_seconds,interval:P.utcSecond.every(10),format:jr},{precision:ee._20_seconds,interval:(Vi=P.utcSecond.every(20))==null?void 0:Vi.filter(Ti(2)),format:jr},{precision:ee._30_seconds,interval:(Ki=P.utcSecond.every(30))==null?void 0:Ki.filter(Ti(2)),format:jr},{precision:ee._1_minute,interval:P.utcMinute.filter(Zr(5)),format:nt},{precision:ee._2_minutes,interval:(Ji=P.utcMinute.every(2))==null?void 0:Ji.filter(Zr(10)),format:nt},{precision:ee._5_minutes,interval:(es=P.utcMinute.every(5))==null?void 0:es.filter(Zr(20)),format:nt},{precision:ee._15_minutes,interval:(ts=P.utcMinute.every(15))==null?void 0:ts.filter(gt(1)),format:nt},{precision:ee._30_minutes,interval:(rs=P.utcMinute.every(30))==null?void 0:rs.filter(gt(2)),format:nt},{precision:ee._1_hour,interval:P.utcHour.filter(gt(6)),format:mt},{precision:ee._2_hours,interval:(ns=P.utcHour.every(2))==null?void 0:ns.filter(gt(6)),format:mt},{precision:ee._3_hours,interval:(is=P.utcHour.every(3))==null?void 0:is.filter(gt(12)),format:mt},{precision:ee._4_hours,interval:P.utcHour.every(4),format:mt},{precision:ee._6_hours,interval:P.utcHour.every(6),format:mt},{precision:ee._1_day,interval:P.utcDay,format:wi},{precision:ee._2_days,interval:P.utcDay.every(2),format:wi},{precision:ee._1_month,interval:P.utcMonth,format:"%B"},{precision:ee._1_month_abbr,interval:P.utcMonth,format:"%b"},{precision:ee._1_month_letter,interval:P.utcMonth,format:t=>P.utcFormat("%B")(t).charAt(0)},{precision:ee._3_months,interval:P.utcMonth.every(3),format:"Q%q"},{precision:ee._2_year,interval:P.utcMonth.every(6),format:"Q%q"},{precision:ee._5_years,interval:P.utcYear.every(2),format:"%Y"},{precision:ee._20_years,interval:P.utcYear.every(4),format:"%Y"},{precision:ee._75_years,interval:P.utcYear.every(25),format:"%Y"},{precision:ee._300_years,interval:P.utcYear.every(100),format:"%Y"},{precision:ee.infinity,interval:P.utcYear.every(500),format:""}],[et.detailedBackground]:[{precision:ee._10_seconds,interval:P.utcSecond,format:""},{precision:ee._20_seconds,interval:P.utcSecond.every(5),format:""},{precision:ee._30_seconds,interval:P.utcSecond.every(10),format:""},{precision:ee._1_minute,interval:P.utcSecond.every(20),format:""},{precision:ee._2_minutes,interval:P.utcSecond.every(30),format:""},{precision:ee._5_minutes,interval:P.utcMinute,format:""},{precision:ee._15_minutes,interval:P.utcMinute.every(3),format:""},{precision:ee._30_minutes,interval:P.utcMinute.every(6),format:""},{precision:ee._1_hour,interval:P.utcMinute.every(15),format:""},{precision:ee._2_hours,interval:P.utcMinute.every(30),format:""},{precision:ee._3_hours,interval:P.utcHour,format:""},{precision:ee._4_hours,interval:P.utcHour,format:""},{precision:ee._6_hours,interval:P.utcMinute.every(120),format:""},{precision:ee._1_day,interval:P.utcHour.every(8),format:""},{precision:ee._2_days,interval:P.utcHour.every(12),format:""},{precision:ee._1_month,interval:P.utcDay.filter(t=>{const e=t.getUTCDate(),r=new Date(t.getUTCFullYear(),t.getUTCMonth()+1,0).getUTCDate(),n=Math.ceil(r/5);return e===n||e===2*n||e===3*n||e===4*n}),format:""},{precision:ee._1_month_abbr,interval:P.utcDay.filter(t=>{const e=t.getUTCDate(),r=new Date(t.getUTCFullYear(),t.getUTCMonth()+1,0).getUTCDate(),n=Math.ceil(r/4);return e===n||e===2*n||e===3*n}),format:""},{precision:ee._1_month_letter,interval:P.utcDay.filter(t=>{const e=t.getUTCDate(),r=new Date(t.getUTCFullYear(),t.getUTCMonth()+1,0).getUTCDate(),n=Math.ceil(r/2);return e===n}),format:""},{precision:ee._3_months,interval:P.utcMonth,format:""},{precision:ee._3_months,interval:P.utcMonth,format:""},{precision:ee._2_year,interval:P.utcYear,format:""},{precision:ee._5_years,interval:P.utcYear.every(2),format:""},{precision:ee._20_years,interval:P.utcYear.every(5),format:""},{precision:ee._75_years,interval:P.utcYear.every(20),format:""},{precision:ee._300_years,interval:P.utcYear.every(100),format:""},{precision:ee.infinity,interval:P.utcYear.every(500),format:""}]},f0=j.extend({name:"EXAxisOverview",components:{EXAxis:Wr},props:{timeScale:{type:Function,required:!0},x:{type:Number,default:0},y:{type:Number,default:0},height:{type:Number,default:10},dark:{type:Boolean,default:!1}},data(){return{classNames:H,ticksConfigs:Ur[et.overview]}}}),K8="";var p0=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("EXAxis",{class:e.classNames.xAxisOverview,attrs:{x:e.x,y:e.y,dark:e.dark,height:e.height,"time-scale":e.timeScale,"ticks-configs":e.ticksConfigs}})},m0=[],g0=Y(f0,p0,m0,!1,null,null,null,null);const v0=g0.exports,_0=j.extend({name:"EXAxisDetailed",components:{EXAxis:Wr},props:{timeScale:{type:Function,required:!0},x:{type:Number,default:0},y:{type:Number,default:0},height:{type:Number,default:10},dark:{type:Boolean,default:!1}},data(){return{classNames:H,ticksConfigs:Ur[et.detailed]}}}),J8="";var y0=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("EXAxis",{class:e.classNames.xAxisDetailed,attrs:{x:e.x,y:e.y,dark:e.dark,height:e.height,"time-scale":e.timeScale,"ticks-configs":e.ticksConfigs}})},C0=[],b0=Y(_0,y0,C0,!1,null,null,null,null);const x0=b0.exports,w0=j.extend({name:"EXAxisBackground",components:{EXAxis:Wr},props:{timeScale:{type:Function,required:!0},x:{type:Number,default:0},y:{type:Number,default:0},height:{type:Number,default:10},dark:{type:Boolean,default:!1}},data(){return{classNames:H,ticksConfigs:Ur[et.detailedBackground]}}}),e7="";var S0=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("EXAxis",{class:e.classNames.xAxisBackground,attrs:{x:e.x,y:e.y,dark:e.dark,height:e.height,"time-scale":e.timeScale,"ticks-configs":e.ticksConfigs}})},T0=[],k0=Y(w0,S0,T0,!1,null,null,null,null);const M0=k0.exports,E0=j.extend({name:"ETimelineSVGDefs",props:{eventsGroups:{type:Object,default:()=>({})},forbiddenIntervalColor:{type:String,default:"#ddd"},width:{type:Number,required:!0},height:{type:Number,required:!0}},data(){return{defs:at,TimelineChartType:je,transparencyGradients:[{id:"transparency-gradient-light",stop:38,opacity:.3},{id:"transparency-gradient",stop:130,opacity:.4}]}},computed:{filteredEventsGroups(){return this.eventsGroups||{}}}});var $0=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("defs",{ref:"mainContainer",staticClass:"e-timeline"},[e._l(e.eventsGroups,function(n,s){return[r("linearGradient",{key:`${e.defs.loadingGradient}-${s}`,attrs:{id:`${e.defs.loadingGradient}-${s}`,x1:"0%",y1:"0%",x2:"100%",y2:"0%"}},[r("stop",{attrs:{offset:"0%","stop-color":n.color,"stop-opacity":"0"}}),r("stop",{attrs:{offset:"50%","stop-color":n.color,"stop-opacity":"0.6"}}),r("stop",{attrs:{offset:"100%","stop-color":n.color,"stop-opacity":"0"}})],1),[e.TimelineChartType.lineGraph,e.TimelineChartType.barChart].includes(n.chartType)?[e._l(e.transparencyGradients,function({id:l,stop:i,opacity:h}){return r("linearGradient",{key:`${l}-${s}`,attrs:{id:`${l}-${s}`,x1:"0%",x2:"0%",y1:"0%",y2:"100%"}},[r("stop",{attrs:{offset:"0%","stop-color":n.color,"stop-opacity":h}}),r("stop",{attrs:{offset:`${i}%`,"stop-color":n.color,"stop-opacity":"0"}})],1)}),r("clipPath",{key:`${e.defs.clipPath}-${s}`,attrs:{id:`${e.defs.clipPath}-${s}`}},[r("rect",{attrs:{width:e.width,height:e.height}})])]:e._e()]}),r("pattern",{attrs:{id:e.defs.stripedPattern,width:"5",height:"3",patternUnits:"userSpaceOnUse",patternTransform:"rotate(45)"}},[r("rect",{attrs:{width:"1",height:"4",fill:e.forbiddenIntervalColor}})])],2)},L0=[],D0=Y(E0,$0,L0,!1,null,null,null,null);const P0=D0.exports,O0=j.extend({name:"ETimeline",directives:{resizeObserver:Qe},components:{ETimelineSVGDefs:P0,EXAxisBackground:M0,EXAxisDetailed:x0,EXAxisOverview:v0,ETimelineMilestone:q1,ETimelineMarkers:r0,EZoomBehavior:o0},props:{eventsGroups:{type:Object,default:()=>({})},dark:{type:Boolean,default:!1},startDate:{type:String,default:void 0},endDate:{type:String,default:void 0},selectedTimestamp:{type:String,default:void 0},showEventTooltip:{type:Boolean,default:!0},disableZoom:{type:Boolean,default:!1},insertZerosAtInterval:{type:String,default:void 0},flattenLineGraphEnds:{type:Boolean,default:!0},curtains:{type:Boolean,default:!1},showLabels:{type:Boolean,default:!0},rectMinWidth:{type:Number,default:1},barHeight:{type:Number,default:18},barYPadding:{type:Number,default:0},barXPadding:{type:Number,default:0},chartMinHeight:{type:Number,default:60},chartMinLabelHeight:{type:Number,default:18},minDate:{type:String,default:void 0},maxDate:{type:String,default:void 0},cursorTimestamp:{type:[String,void 0],default:void 0},selectedClass:{type:[String,void 0],default:void 0},panOnDateClick:{type:Boolean,default:!1},panTransitionDuration:{type:Number,default:800},selectedDate:{type:String,default:""},autoResize:{type:Boolean,default:!0},markers:{type:Array,default:()=>[]},stickyMarkers:{type:Boolean,default:!0},fitMarkersOnChange:{type:Boolean,default:!1},zoomToIntervalTransitionDuration:{type:Number,default:800},zoomToBoundariesTransitionDuration:{type:Number,default:0},milestoneBulletSize:{type:Number,default:18},milestonesFirst:{type:Boolean,default:!0},forbiddenIntervals:{type:Array,default:()=>[]},forbiddenIntervalColor:{type:String,default:"#ddd"},focusedInterval:{type:[Object,void 0],default:void 0},locked:{type:Boolean,default:!1},timezone:{type:[String,void 0],default:void 0},stopClickPropagation:{type:Boolean,default:!1},tooltipPosition:{type:String,default:"top",validator:t=>["top","bottom"].includes(t)},maxDomainPadding:{type:Number,default:0}},data(){return{mainContainer:null,tooltip:null,cursor:null,timeline:null,wrapperDiv:null,selectedTimestampCursor:null,svgElement:null,svg:null,timeScale:null,currentTimeScaleDensity:null,axisHeight:22,isHoveringEvent:!1,hoveredEvent:null,isHoveringTimeline:!1,hoveredTimestamp:null,eventTooltipStyle:{},hoveredEventType:null,utcOffset:0,yScale:null,hoveredCounts:[],countsByTimestamp:{},dotsByTimestamp:{},visibleFrom:null,visibleTo:null,curtainHandleWidth:5,leftCurtainWidth:50,rightCurtainWidth:50,isHoveringCurtain:!1,isDraggingCurtain:!1,characterWidth:7.5,textPadding:5,debouncedOnResize:()=>{},isFirstPaint:!0,timeouts:[],groupsVisibility:{},selectedMilestoneId:null,isInitialized:!1,transformDiff:{translation:0,scale:1},isZoomingInterval:!1,hoveredMilestone:null,focusedDomain:null,transitionDuration:400,focusedTimestamp:null}},computed:{combinedBarsHeight(){return Object.values(this.barGroups).reduce((t,e)=>t+(this.getBarGroupHeight(e)||this.barChartHeight),0)},combinedBottomBarsHeight(){return Object.values(this.barGroups).reduce((t,e)=>t+(e.bottom?this.getBarGroupHeight(e):0),0)},combinedMilestonesHeight(){return Object.values(this.milestonesGroups).reduce((t,e)=>t+(e.height||this.barChartHeight),0)},milestonesYOffset(){return this.milestonesFirst?0:this.combinedBarsHeight-this.combinedBottomBarsHeight+(this.hasChart?this.chartHeight:0)},chartsYOffset(){return this.hasMilestones&&this.milestonesFirst?this.combinedMilestonesHeight:0},barsYOffset(){return(this.hasChart?this.chartHeight:0)+(this.hasMilestones&&this.milestonesFirst?this.combinedMilestonesHeight:0)},hasMilestones(){return Object.keys(this.milestonesGroups).length>0},barChartHeight(){return this.barHeight+this.barYPadding},computedClasses(){return{wrapper:{"e-border-gray-700 e-timeline--dark":this.dark,"e-border-gray-300":!this.dark,"e-timeline--dragging":this.isInteractingWithCurtain},background:this.dark?"e-bg-gray-900":"e-bg-gray-50",tooltipSlot:this.dark?"e-bg-gray-900 e-text-white e-border-gray-700":"e-bg-gray-100 e-text-gray-700 e-border-gray-300",eventTooltipSlot:this.dark?"e-bg-gray-900 e-text-white e-border-gray-700":"e-bg-gray-100 e-text-gray-700 e-border-gray-300"}},lineGraphGroups(){return Object.entries(this.filteredEventsGroups).reduce((t,[e,r])=>r.chartType===je.lineGraph?{...t,[e]:r}:t,{})},chartHeight(){if(!this.showLabels)return this.chartMinHeight;const e=(Object.keys(this.lineGraphGroups).length+Object.keys(this.barChartGroups).length)*this.barChartHeight;return Math.max(this.chartMinHeight,e)},barGroups(){return Object.entries(this.filteredEventsGroups).reduce((t,[e,r])=>!r.chartType||[je.bars,je.dots].includes(r.chartType)?{...t,[e]:r}:t,{})},barChartGroups(){return Object.entries(this.filteredEventsGroups).reduce((t,[e,r])=>r.chartType===je.barChart?{...t,[e]:r}:t,{})},milestonesGroups(){return Object.entries(this.filteredEventsGroups).reduce((t,[e,r])=>r.chartType===je.milestones?{...t,[e]:r}:t,{})},hasChart(){return Object.keys(this.lineGraphGroups).length+Object.keys(this.barChartGroups).length>0},labelRectWidth(){return Object.values(this.eventsGroups).reduce((r,n)=>{var s;return Math.max(r,(s=n.label)==null?void 0:s.length)},0)*this.characterWidth+2*this.textPadding},combinedXAxesHeight(){return this.axisHeight*2},timelineWidth(){var t,e,r;return((t=this.timeline)==null?void 0:t.offsetWidth)||((r=(e=this.mainContainer)==null?void 0:e.getBoundingClientRect())==null?void 0:r.width)},timelineHeight(){return(this.hasChart?this.chartHeight:0)+this.combinedXAxesHeight+this.combinedBarsHeight+this.combinedMilestonesHeight},filteredEventsGroups(){const t=Object.entries(this.eventsGroups).filter(([e,r])=>this.getCurrentGroupVisibility(e));return Object.fromEntries(t)},allEventsSorted(){const t=Object.values(this.filteredEventsGroups).map(e=>e.events).flat();return this.getSortedEvents(t)},oldestEvent(){let t;return this.allEventsSorted.length>1?t=this.allEventsSorted[0]:t={timestamp:new Date(new Date().getTime()-864e5)},t},latestEvent(){let t;return this.allEventsSorted.length>1?t=this.allEventsSorted[this.allEventsSorted.length-1]:t={timestamp:new Date},t},allLineChartTimestamps(){const t=new Set;return Object.values(this.lineGraphGroups).forEach(e=>{e.events.forEach(r=>{t.add(r.timestamp)})}),Array.from(t).sort()},placeholderLineChartGroup(){return this.fillTimeGaps(this.allLineChartTimestamps.map(t=>({timestamp:t,count:0})))},filledGapsLineGraphGroups(){return Object.entries(this.lineGraphGroups).reduce((t,[e,r])=>({...t,[e]:{...r,events:this.fillEvents(r.events)}}),{})},isInteractingWithCurtain(){return this.isHoveringCurtain||this.isDraggingCurtain},flattenedCounts(){return[...Object.values(this.lineGraphGroups),...Object.values(this.barChartGroups)].map(t=>t.events).flat()},hiddenGroupsLabels(){return Object.entries(this.groupsVisibility).reduce((t,[e,r])=>r?t:[...t,e],[])},minHoverZone(){return this.showLabels?this.labelRectWidth:0},sortedMarkers(){return this.isInitialized?[...this.markers].sort((t,e)=>new Date(t.timestamp).getTime()>new Date(e.timestamp).getTime()?1:-1):[]},maxVisibleCount(){const[t,e]=this.timeScale.domain(),r=this.flattenedCounts.filter(n=>{const s=new Date(n.startDate||n.timestamp),l=new Date(n.endDate||n.timestamp);return l>=t&&l<=e||s>=t&&s<=e});return P.max(r,n=>n.count)},defaultMaxDomain(){const t=new Date(this.oldestEvent.timestamp||this.oldestEvent.startDate).getTime(),e=new Date(this.latestEvent.timestamp||this.latestEvent.startDate).getTime(),n=(e-t)*.75,s=new Date(t-n),l=new Date(e+n);return[s.toISOString(),l.toISOString()]},defaultFocusedDomain(){const t=this.oldestEvent.timestamp||this.oldestEvent.startDate,e=this.latestEvent.timestamp||this.latestEvent.endDate;return[t,e]},domain(){let t=new Date(this.minDate||this.defaultMaxDomain[0]).getTime(),e=new Date(this.maxDate||this.defaultMaxDomain[1]).getTime(),r=0;return this.maxDomainPadding&&(r=(e-t)*this.maxDomainPadding),t=new Date(t-r).toISOString(),e=new Date(e+r).toISOString(),[this.tzStringToDate(t),this.tzStringToDate(e)]},svgLeft(){var t,e,r;return((r=(e=(t=this.svg)==null?void 0:t.node())==null?void 0:e.getBoundingClientRect())==null?void 0:r.left)||0},markersScopedSlots(){return Object.keys(this.$scopedSlots).filter(t=>t.startsWith("marker.")).reduce((t,e)=>(t[e]=this.$scopedSlots[e],t),{})}},watch:{dark(){this.handleDarkModeChange()},selectedTimestamp(){this.repositionSelectedTimestampCursor()},markers(){this.fitMarkersOnChange&&this.zoomToFitMarkers()},startDate(){this.zoomToStartAndEndDates()},endDate(){this.zoomToStartAndEndDates()},eventsGroups:{handler(){this.updateTimeline()},deep:!0},barHeight:"updateTimeline",barYPadding:"updateTimeline",chartMinHeight:"updateTimeline",cursorTimestamp(){if(this.cursorTimestamp){this.hoveredTimestamp=this.cursorTimestamp;const t=this.tzStringToDate(this.hoveredTimestamp),e=this.timeScale(t);this.cursor.style.left=e+"px",this.isHoveringTimeline=!0}else this.isHoveringTimeline=!1},selectedDate(t){t&&!this.locked&&(this.focusedTimestamp=this.tzStringToDate(t).toISOString())},groupsVisibility(){this.updateTimeline()},forbiddenIntervals(){this.updateForbiddenIntervals(!0)},focusedInterval(t){t&&(t!=null&&t.startDate)&&(t!=null&&t.endDate)&&(this.focusedDomain=[t.startDate,t.endDate])}},created(){this.debouncedOnResize=fi(this.handleResize,100)},mounted(){this.validateProps(),this.initTimeline(),this.zoomToStartAndEndDates()},beforeDestroy(){this.clearTimeline()},methods:{validateProps(){this.minDate||console.log("<ETimeline />: didn't receive a 'min-date' prop. Setting default: ",this.defaultMaxDomain[0]),this.maxDate||console.log("<ETimeline />: didn't receive a 'max-date' prop. Setting default: ",this.defaultMaxDomain[1]),this.startDate||console.log("<ETimeline />: didn't receive a 'start-date' prop. Setting default: ",this.defaultFocusedDomain[0]),this.endDate||console.log("<ETimeline />: didn't receive an 'end-date' prop. Setting default: ",this.defaultFocusedDomain[1])},updateTimeline(){this.isInitialized&&(this.initOrUpdateSvg(),this.updateYScale(),this.updateForbiddenIntervals(),this.drawEventsGroups(),this.updateCurtains(),this.repositionSelectedTimestampCursor(),this.registerEventsListeners(),this.isInitialized=!0)},initTimeline(){this.initRefs();const t=this.startDate||this.defaultFocusedDomain[0],e=this.endDate||this.defaultFocusedDomain[1];if(this.focusedDomain=[this.tzStringToDate(t),this.tzStringToDate(e)],!this.timeline||this.timeline.offsetWidth===0||!this.domain||!this.timeScale){this.timeouts.push(setTimeout(this.initTimeline,500));return}this.initOrUpdateSvg(),this.initUtcOffset(),this.initYScale(),this.drawEventsGroups(),this.curtains&&(this.initCurtains(),this.emitCurtainChange()),this.initSelectedTimestampCursor(),this.registerEventsListeners(),this.emitVisibleInterval(xt.initial),this.selectedDate&&this.panOnDateClick&&(this.focusedTimestamp=this.tzStringToDate(this.selectedDate)),this.isInitialized=!0},initRefs(){this.tooltip=this.$refs.tooltip,this.cursor=this.$refs.cursor,this.mainContainer=this.$refs.mainContainer,this.timeline=this.$refs.timelineContainer,this.svgElement=this.$refs.timelineSvg,this.selectedTimestampCursor=this.$refs.selectedTimestamp,this.wrapperDiv=this.$refs.wrapperDiv},initOrUpdateSvg(){this.svg||(this.svg=P.select(this.svgElement))},initUtcOffset(){const t=this.startDate||this.oldestEvent.timestamp||this.oldestEvent.startDate;this.utcOffset=Se.parseZone(t).utcOffset()},initYScale(){this.yScale=P.scaleLinear().range([this.chartHeight,0]),this.updateYScale()},updateYScale(){this.yScale.range([this.chartHeight,0]),this.yScale.domain([0,this.maxVisibleCount])},zoomToFitMarkers(){const t=this.markers.map(l=>new Date(l.timestamp).getTime());if(t.length<2)return;const e=Math.min(...t),r=Math.max(...t),n=new Date(e),s=new Date(r);this.focusedDomain=[n,s]},initSelectedTimestampCursor(){this.svg.append("line").attr("class",H.selectedTimestampCursor).style("stroke","red").style("stroke-width","1px").style("opacity",0).attr("x1",0).attr("x2",0).attr("y1",0),this.repositionSelectedTimestampCursor()},selectOrAppend({parent:t,targetId:e,targetType:r}){let n=t.select(`#${e}`);return n.empty()&&(n=t.append(r).attr("id",e)),n},clearTimeline(){this.svg&&this.svg.remove(),this.countsByTimestamp={}},repositionSelectedTimestampCursor(){var n;const t=(n=this.svg)==null?void 0:n.select(`.${H.selectedTimestampCursor}`);if(!t)return;if(!this.selectedTimestamp){t.style("opacity",0);return}const e=this.tzStringToDate(this.selectedTimestamp),r=this.timeScale(e);isNaN(r)?t.style("opacity",0):t.attr("x1",r).attr("x2",r).style("opacity",.5),t.attr("y2",this.timelineHeight)},updateCurrentTimeScaleDensity(){const t=this.timeScale.invert(0).getTime(),e=this.timeScale.invert(1).getTime(),r=36e5,n=(e-t)/r;isNaN(n)||(this.currentTimeScaleDensity=n)},registerEventsListeners(){this.svg.on("mousemove",this.handleMouseMove),this.svg.on("click",this.handleClick),this.svg.on("mouseleave",this.handleMouseLeave)},emitVisibleInterval(t){const e=this.timeScale.invert(0),r=this.timeScale.invert(this.timeline.offsetWidth);if(this.visibleFrom&&this.visibleFrom.getTime()===e.getTime()&&this.visibleTo&&this.visibleTo.getTime()===r.getTime())return;this.visibleFrom=e,this.visibleTo=r;const n=this.dateToTzString(this.visibleFrom),s=this.dateToTzString(this.visibleTo);this.$emit("visible-interval-change",{fromDate:n,toDate:s,trigger:t,transform:this.transformDiff})},onResize(t){this.autoResize&&(this.isFirstPaint?(this.handleResize(t),this.isFirstPaint=!1):this.debouncedOnResize(t))},handleResize({contentRect:t}){this.svg&&(this.svg.attr("width",t.width),this.updateTimeline())},handleDarkModeChange(){if(!this.showLabels)return;const t=this;this.svg.selectAll(`.${H.labelBg}`).each(function(){P.select(this).style("fill",t.dark?"black":"white")}),this.svg.selectAll(`.${H.labelBgFill}`).each(function(){const e=P.select(this),r=e.node().dataset.color;e.style("fill",t.getLabelBackgroundColor(r)).style("stroke",t.getTextFillColor(r)).style("stroke-width",.25)}),this.svg.selectAll(`.${H.labelText}`).each(function(){const e=P.select(this),r=e.node().dataset.color;e.style("fill",t.getTextFillColor(r))})},handleMouseLeave(){this.isHoveringTimeline=!1,this.$emit("hovered-timestamp",void 0)},handleMouseMove(t){const e=t.offsetX;if(e<=this.minHoverZone){this.isHoveringTimeline=!1;return}const r=this.timeScale.invert(e);this.hoveredTimestamp=this.dateToTzString(r),this.isHoveringTimeline=!0,this.$emit("hovered-timestamp",this.hoveredTimestamp),this.cursor.style.left=e+"px",this.tooltip&&(this.eventTooltipStyle={left:`${e}px`,zIndex:100,[this.tooltipPosition==="top"?"bottom":"top"]:`${this.timeline.getBoundingClientRect().height}px`})},handleClick(t){const e=t.offsetX;if(e<=this.minHoverZone)return;const r=this.timeScale.invert(e),n=this.dateToTzString(r);if(this.isHoveringEvent&&(this.$emit("event-clicked",{event:this.hoveredEvent,type:this.hoveredEventType}),this.stopClickPropagation))return;const s=t.target;if(Array.from(s.classList).includes(H.forbiddenInterval)){this.$emit("forbidden-timestamp-clicked",n);return}this.$emit("date-clicked",n),this.panOnDateClick&&(this.focusedTimestamp=n)},handleMarkerClick(t){this.$emit("marker-clicked",t),this.panOnDateClick&&(this.focusedTimestamp=t.timestamp)},handleLineMouseOver(t,e,r){this.hoveredCounts=Object.entries(this.countsByTimestamp[`${e.timestamp}`]).reduce((n,s)=>{const[l,i]=s;return[...n,{type:l,count:i}]},[]),this.hoveredEvent=e,this.isHoveringEvent=!0,this.$emit("event-mouseover",{eventData:e,eventType:r,hoveredCounts:this.hoveredCounts})},handleLineMouseOut(){this.isHoveringEvent=!1,this.hoveredCounts=[],this.$emit("event-mouseout")},handleBarMouseOver(t,e,r){t.offsetX<=this.minHoverZone||(this.hoveredEvent=e,this.hoveredEventType=r,this.isHoveringEvent=!0,this.$emit("event-mouseover",{eventData:e,eventType:r}))},handleBarMouseOut(){this.isHoveringEvent=!1,this.hoveredEvent=null,this.$emit("event-mouseout")},handleLabelMouseOver(t){P.selectAll(`.${H.lineGraphGroup}-${t}`).classed(`${H.lineGraphGroup}--highlighted`,!0),P.selectAll(`.${H.lineGraphGroupLabel}`).classed(`${H.lineGraphGroupLabel}--highlighted`,!0)},handleLabelMouseLeave(t){P.selectAll(`.${H.lineGraphGroup}-${t}`).classed(`${H.lineGraphGroup}--highlighted`,!1),P.selectAll(`.${H.lineGraphGroupLabel}`).classed(`${H.lineGraphGroupLabel}--highlighted`,!1)},handleTransformChange(t){this.transformDiff=t},handleTimeScaleChange(t){this.timeScale=t,this.updateCurrentTimeScaleDensity(),this.isInitialized&&(this.updateEventsBars(),this.updateLineGraphs(),this.updateBarChart(),this.updateLineGraphHoverZones(),this.updateMilestonesPositions(),this.repositionSelectedTimestampCursor(),this.updateForbiddenIntervals(),this.emitVisibleInterval(xt.zoom),this.curtains&&this.emitCurtainChange(),this.focusedTimestamp=void 0,this.$emit("time-scale-change",t))},emitCurtainChange(){const{startDate:t,endDate:e}=this.calculateDateRangeFromCurtains();this.$emit("curtain-range-change",{startDate:new Date(t).toISOString(),endDate:new Date(e).toISOString()})},calculateDateRangeFromCurtains(){const t=this.timeline.offsetWidth,e=this.timeScale.domain(),r=e[1].getTime()-e[0].getTime(),n=(this.leftCurtainWidth-this.curtainHandleWidth*2)/t*r,s=(this.rightCurtainWidth+this.curtainHandleWidth*2)/t*r,l=new Date(e[0].getTime()+n),i=new Date(e[1].getTime()-s);return{startDate:l,endDate:i}},handleDragStart(){this.isDraggingCurtain=!0},handleDragEnd(){this.isDraggingCurtain=!1},handleLeftDrag(t){t.sourceEvent.stopPropagation();const e=Math.min(t.x,this.timeline.offsetWidth-this.rightCurtainWidth);this.leftCurtainWidth=Math.max(0,e),this.svg.select(`.${H.curtain}--left`).attr("width",this.leftCurtainWidth),this.emitCurtainChange()},handleRightDrag(t){t.sourceEvent.stopPropagation();const e=this.timeline.offsetWidth,r=Math.min(this.timeline.offsetWidth-t.x,this.timeline.offsetWidth-this.leftCurtainWidth),n=e-r;this.rightCurtainWidth=Math.max(0,r),this.svg.select(`.${H.curtain}--right`).attr("width",this.rightCurtainWidth).attr("x",n),this.emitCurtainChange()},zoomToStartAndEndDates(){const t=this.startDate||this.oldestEvent.timestamp||this.oldestEvent.startDate,e=this.endDate||this.latestEvent.timestamp||this.latestEvent.endDate;this.focusedDomain=[this.tzStringToDate(t),this.tzStringToDate(e)]},updateEventsBars(){const t=`.${H.eventGroup} > rect.${H.eventRect}`,e=`${t}:not(.${H.eventRect}--dot)`;this.svg.selectAll(t).attr("x",this.getEventRectX),this.svg.selectAll(e).attr("width",this.getEventRectWidth);const r=`.${H.eventGroup} > text.${H.eventRectText}`;this.svg.selectAll(r).attr("x",n=>this.getEventRectX(n)+this.textPadding).text(this.getEventText)},updateBarChart(){const t=Object.keys(this.barChartGroups).length;Object.keys(this.barChartGroups).forEach((e,r)=>{const n=m=>(this.getEventRectWidth(m)-this.barXPadding*2)/t,s=m=>this.yScale.range()[0]-this.yScale(m.count),l=m=>this.getEventRectX(m)+this.barXPadding+r*n(m),i=m=>this.yScale(m.count),h=`.${H.eventBarContainer}-${e}`,a=this.svg.selectAll(h),o=`.${H.barChartGroup} rect.${H.eventBarHoverZone}`;a.selectAll(o).attr("x",l).attr("width",n);const u=`.${H.barChartGroup} rect.${H.eventBar}`;a.selectAll(u).attr("x",l).attr("width",n).attr("y",i).attr("height",s);const f=`.${H.barChartGroup} rect.${H.eventBarCap}`;a.selectAll(f).attr("x",l).attr("width",n).attr("y",i)})},updateLineGraphs(){Object.entries(this.lineGraphGroups).forEach(([t])=>{const e=P.area().x(r=>this.timeScale(this.tzStringToDate(r.timestamp))).y0(this.timelineHeight).y1(r=>this.yScale(r.count)).curve(P.curveMonotoneX);this.svg.selectAll(`.${H.lineGraphPath}-${t}`).attr("d",r=>e(r))})},updateLineGraphHoverZones(){Object.keys(this.lineGraphGroups).forEach(t=>{const e=this;this.svg.selectAll(`.${H.lineGraphDot}-${t}`).each(function(r){P.select(this).attr("cx",e.timeScale(e.tzStringToDate(r.timestamp))).attr("cy",e.yScale(r.count))}),this.svg.selectAll(`.${H.lineGraphHoverZone}-${t}`).each(function(r){const n=e.timeScale(e.tzStringToDate(r.timestamp).getTime())-15;P.select(this).attr("x",n).attr("y",0).attr("width",30).attr("height",e.chartHeight)})})},getEventRectX(t){return isNaN(this.timeScale(this.tzStringToDate(t.startDate||t.timestamp)))?0:this.timeScale(this.tzStringToDate(t.startDate||t.timestamp))},getEventRectWidth(t){if(!t)return 0;if(t.startDate&&t.endDate){const e=new Date(t.startDate),r=new Date(t.endDate),n=this.timeScale(r)-this.timeScale(e);return Math.max(n,this.rectMinWidth)}else{const e=1/(this.currentTimeScaleDensity*3600);return Math.max(e,this.rectMinWidth)}},getEventText(t){var n;const r=(this.getEventRectWidth(t)-this.textPadding)/this.characterWidth;return r<4?"":((n=t.text)==null?void 0:n.length)<=r?t.text:`${t.text.slice(0,r-3)}...`},getElementLeftPosition(t){if(!t)return 0;const e=window.getComputedStyle(t);return parseInt(e.left)},initCurtains(){this.createCurtains(),this.updateCurtains()},createCurtains(){this.curtains&&(this.svg.append("rect").classed(`${H.curtain} ${H.curtain}--left`,!0).attr("fill","rgba(0, 0, 0, 0.5)").on("mouseenter",()=>this.isHoveringCurtain=!0).on("mouseleave",()=>this.isHoveringCurtain=!1).call(P.drag().on("start",this.handleDragStart).on("drag",this.handleLeftDrag).on("end",this.handleDragEnd)),this.svg.append("rect").classed(`${H.curtain} ${H.curtain}--right`,!0).attr("fill","rgba(0, 0, 0, 0.5)").on("mouseenter",()=>this.isHoveringCurtain=!0).on("mouseleave",()=>this.isHoveringCurtain=!1).call(P.drag().on("start",this.handleDragStart).on("drag",this.handleRightDrag).on("end",this.handleDragEnd)),this.updateCurtains())},updateCurtains(){const t=this.timeline.offsetWidth,e=this.timelineHeight;this.svg.select(`.${H.curtain}--left`).attr("width",this.leftCurtainWidth).attr("height",e+this.curtainHandleWidth*2).attr("y",-this.curtainHandleWidth).attr("x",-this.curtainHandleWidth),this.svg.select(`.${H.curtain}--right`).attr("x",t-this.rightCurtainWidth+this.curtainHandleWidth).attr("y",-this.curtainHandleWidth).attr("width",this.rightCurtainWidth+this.curtainHandleWidth*2).attr("height",e+this.curtainHandleWidth*2)},updateForbiddenIntervals(t=!1){t&&this.svg.selectAll(`.${H.forbiddenInterval}`).remove();const e=this.timeScale.domain();this.forbiddenIntervals.forEach((r,n)=>{const s=r.startDate===-1/0?e[0]:this.tzStringToDate(r.startDate),l=r.endDate===1/0?e[1]:this.tzStringToDate(r.endDate),i=this.timeScale(s),h=this.timeScale(l),a=Math.max(h-i,0);let o=this.svg.select(`.${H.forbiddenInterval}-${n}`);o.empty()&&(o=this.svg.append("rect").attr("class",`${H.forbiddenInterval} ${H.forbiddenInterval}-${n}`).attr("fill",`url(#${at.stripedPattern})`)),o.attr("x",i).attr("y",0).attr("width",a).attr("height",this.timelineHeight)})},drawEventsGroups(){this.svg.selectAll(`g.${H.eventGroup}`).remove(),this.svg.selectAll(`.${H.barChartGroup}`).remove(),this.svg.selectAll(`.${H.lineGraphGroup}`).remove(),this.svg.selectAll(`.${H.lineGraphGroupLabel}`).remove(),this.svg.selectAll(`.${H.loadingIndicator}`).remove(),this.drawLineGraphEventsGroups(),this.drawBarEventsGroups(),this.drawBarChartEventsGroups(),this.drawMilestonesPlaceholder()},drawLineGraphEventsGroups(){const t=this.combinedXAxesHeight+this.chartsYOffset,e=this.insertZerosAtInterval?this.filledGapsLineGraphGroups:this.lineGraphGroups;Object.entries(e).forEach(([r,n])=>{const s=this.svg.append("g").classed(`${H.lineGraphGroup} ${H.lineGraphGroup}-${r}`,!0).attr("transform",`translate(0,${t})`),{color:l,events:i}=n;this.drawLineGraph({events:i,gElement:s,color:l,type:r}),this.drawLineGraphHoverZones({events:i,gElement:s,color:l,type:r})}),Object.entries(this.lineGraphGroups).forEach(([r,n],s)=>{const{color:l,isLoading:i,label:h}=n,a=Math.max(this.chartMinLabelHeight,this.barChartHeight),o=this.chartHeight-a*(s+1),u=t+this.chartHeight-a,f=this.svg.append("g").classed(H.lineGraphGroupLabel,!0).attr("transform",`translate(0,${t})`).on("mouseover",()=>this.handleLabelMouseOver(r)).on("mouseleave",()=>this.handleLabelMouseLeave(r));this.drawProgressIndicator({type:r,color:l,isLoading:i,yPosition:u}),this.drawTextLabel({color:l,label:h,type:r,height:a,yPosition:o,gElement:f})})},drawLineGraph({events:t,gElement:e,color:r,type:n}){const s=P.area().x(i=>this.timeScale(this.tzStringToDate(i.timestamp))).y0(this.timelineHeight).y1(i=>this.yScale(i.count)).curve(P.curveMonotoneX),l=`${at.clipPath}-${n}`;e.append("path").datum(t).classed(`${H.lineGraphPath}-${n}`,!0).attr("fill",`url(#${at.transparencyGradientLight}-${n})`).attr("stroke",r).attr("stroke-linejoin","round").attr("stroke-linecap","round").attr("stroke-width",1).attr("d",i=>s(i)).attr("clip-path",`url(#${l})`)},drawLineGraphHoverZones({events:t,gElement:e,color:r,type:n}){t.forEach(s=>{const l=`${s.timestamp}`;this.countsByTimestamp[l]={...this.countsByTimestamp[l]||{},[n]:s.count};const i=e.append("circle").classed(`${H.lineGraphDot} ${H.lineGraphDot}-${n}`,!0).attr("cx",this.timeScale(this.tzStringToDate(s.timestamp))).attr("cy",this.yScale(s.count)).attr("r",1.5).attr("fill",r).attr("stroke-width",0).datum(s);this.dotsByTimestamp[l]=[...this.dotsByTimestamp[l]||[],i],e.append("rect").classed(`${H.lineGraphHoverZone}-${n}`,!0).attr("x",this.timeScale(this.tzStringToDate(s.timestamp))-15).attr("y",0).attr("width",30).attr("height",this.chartHeight).attr("fill","transparent").datum(s).on("mouseover",h=>{this.handleLineMouseOver(h,s,n),this.dotsByTimestamp[l].forEach(a=>a.classed(`${H.lineGraphDot}--active`,!0))}).on("mouseout",()=>{this.handleLineMouseOut(),this.dotsByTimestamp[l].forEach(h=>h.classed(`${H.lineGraphDot}--active`,!1))})})},drawSingleBarEventsGroup({type:t,eventsGroup:e,milestone:r,dots:n,dotsSize:s,bottom:l}){const{color:i,bgColor:h,label:a,events:o,barBorderRadius:u,isLoading:f,height:m,chartType:v}=e;let b=this.getBarGroupYPosition(t,l);const y=[je.bars,je.dots,void 0].includes(v)?this.getBarGroupHeight(e):m;r&&(b=this.getMilestoneGroupYPosition(t)),this.drawProgressIndicator({yPosition:b,type:t,color:i,isLoading:f});const T=this.svg.append("g").attr("data-color",i).classed(H.eventGroup,!0).classed(`${H.eventGroup}-${t}`,!0);if(this.drawBackground({color:h||i,gElement:T,yPosition:b,height:y}),r||n){const E=n?1:2,w=b+y/2;T.append("line").classed(H.milestoneLine,!0).attr("x1",0).attr("x2",this.timeline.offsetWidth).attr("y1",w).attr("y2",w).style("stroke",i).style("stroke-width",E)}this.drawBars({events:o,color:i,gElement:T,yPosition:b,type:t,dots:n,dotsSize:s,height:m,barBorderRadius:u}),a&&this.drawTextLabel({color:i,label:a,type:t,gElement:T,yPosition:b,height:m})},drawBarEventsGroups(){Object.entries(this.barGroups).forEach(([t,e])=>this.drawSingleBarEventsGroup({type:t,eventsGroup:e,bottom:e.bottom,dots:e.chartType===je.dots,dotsSize:e.dotsSize||3}))},drawMilestonesPlaceholder(){Object.entries(this.milestonesGroups).forEach(([t,e])=>this.drawSingleBarEventsGroup({type:t,eventsGroup:{...e,events:[],isLoading:!1},milestone:!0})),this.updateMilestonesPositions()},getMilestoneClass(t){return{[H.milestoneSelected]:[t.id,t.timestamp].includes(this.selectedMilestoneId)}},getMilestoneColors(t,e){return{background:t||e,border:this.getTextFillColor(t||e,.25)}},getMilestoneGroupYPosition(t){let e=0;for(const[r,n]of Object.entries(this.milestonesGroups)){if(r===t)break;e+=n.height||this.barChartHeight}return this.combinedXAxesHeight+this.milestonesYOffset+e},getBarGroupYPosition(t,e){let r=this.combinedXAxesHeight;e?r+=(this.hasChart?this.chartHeight:0)+(this.hasMilestones?this.combinedMilestonesHeight:0):r+=this.barsYOffset;for(const[n,s]of Object.entries(this.barGroups)){if(n===t)break;!e&&s.bottom||(r+=this.getBarGroupHeight(s))}return r},getBarGroupHeight(t){return t.height?Math.max(t.height+this.barYPadding,1):this.barChartHeight},updateMilestonesPositions(){Object.entries(this.milestonesGroups).forEach(([t,e])=>{const r=this.getMilestoneGroupYPosition(t),n=this.svg.select(`g.${H.eventGroup}-${t}`),s=2,i=(e.height||this.barChartHeight)/2,h=r+i-s/2;n.attr("x1",0).attr("x2",this.timeline.offsetWidth).select(`.${H.milestoneLine}`).attr("y1",h).attr("y2",h);const a=P.select(`.${H.milestonesContainer}-${t}`);a.style("top",`${r}px`).style("height",`${e.height||this.barChartHeight}px`);const o=a.selectAll(`.${H.milestone}`).data(this.getSortedEvents(e.events));o.exit().remove(),o.enter().append("div").merge(o).style("left",u=>`${this.timeScale(this.tzStringToDate(u.timestamp))}px`).style("top",`${h}px`)})},drawBarChartEventsGroups(){const t=this.combinedXAxesHeight,e=this.barChartGroups;Object.entries(e).forEach(([r,n],s)=>{const l=this.svg.append("g").classed(`${H.barChartGroup} ${H.barChartGroup}-${r}`,!0).attr("transform",`translate(0,${t})`),{color:i,events:h}=n;this.drawBarsChart({events:h,color:i,gElement:l,yOffset:t,type:r,index:s})})},drawProgressIndicator({yPosition:t,type:e,isLoading:r}){this.svg.append("rect").classed(`${H.loadingIndicator} ${H.loadingIndicator}-${e}`,!0).attr("x",0).attr("y",t).attr("width",this.timeline.offsetWidth/3).attr("height",this.barChartHeight).attr("fill",`url(#${at.loadingGradient}-${e})`).style("visibility",r?"visible":"hidden")},drawBackground({color:t,yPosition:e,gElement:r,height:n}){r.append("rect").attr("class",H.eventGroupBg).attr("x",0).attr("y",e).attr("width",this.timeline.offsetWidth).attr("height",n||this.barChartHeight).attr("fill",P.color(t).toString()).style("opacity",.1)},drawBars({events:t,gElement:e,yPosition:r,color:n,type:s,dots:l,dotsSize:i,height:h,barBorderRadius:a=1.5}){const o=this,u=r+this.barYPadding/2,f=l?((h||this.barChartHeight)-i)/2:0;let m=Math.max((h!=null?h:this.barChartHeight)-this.barYPadding,1);l&&(m=i),e.selectAll(H.eventRect).data(t).enter().append("rect").attr("class",v=>H.eventRect+(l?` ${H.eventRect}--dot`:"")+(v.className?` ${v.className}`:"")).attr("x",this.getEventRectX).attr("y",u+f).attr("ry",l?i:a).attr("rx",l?i:a).attr("width",l?i:this.getEventRectWidth).attr("height",m).attr("stroke-width",l?i/10:5).attr("cursor","pointer").attr("stroke",v=>l?P.color(v.color||n).brighter(1).toString():"#0000").style("fill",v=>v.color||n).on("mouseover",function(v,b){P.select(this).classed(H.eventRectHovered,!0),o.handleBarMouseOver(v,b,s)}).on("mouseout",function(){P.select(this).classed(H.eventRectHovered,!1),o.handleBarMouseOut()}),e.selectAll(H.eventRectText).data(t.filter(v=>!!v.text)).enter().append("text").attr("class",H.eventRectText).attr("x",v=>this.getEventRectX(v)+this.textPadding).attr("y",r+this.barChartHeight/2).attr("dy","0.35em").style("text-anchor","start").style("font-size","12px").style("font-weight",600).style("stroke-linejoin","round").style("paint-order","stroke").style("pointer-events","none").style("fill",v=>this.getTextFillColor(v.color||n,.75)).text(this.getEventText)},drawBarsChart({events:t,gElement:e,color:r,yOffset:n,type:s,index:l}){const i=this,h=Object.keys(this.barChartGroups).length,a=v=>(this.getEventRectWidth(v)-this.barXPadding*2)/h,o=v=>this.yScale.range()[0]-this.yScale(v.count),u=v=>this.getEventRectX(v)+this.barXPadding+l*a(v),f=v=>this.yScale(v.count),m=e.selectAll(H.eventBarContainer).data(t).enter().append("g").attr("class",`${H.eventBarContainer} ${H.eventBarContainer}-${s}`);m.append("rect").attr("class",v=>H.eventBarHoverZone+(v.className?` ${v.className}`:"")).attr("x",u).attr("y",-n).attr("width",a).attr("height",this.yScale.range()[0]+n).attr("fill",v=>v.color||r).attr("fill-opacity",0),m.append("rect").attr("class",v=>H.eventBar+(v.className?` ${v.className}`:"")).attr("x",u).attr("y",f).attr("width",a).attr("height",o).attr("stroke-width",5).attr("cursor","pointer").attr("stroke","#0000").attr("fill",`url(#${at.transparencyGradient}-${s})`),m.append("rect").attr("class",v=>H.eventBarCap+(v.className?` ${v.className}`:"")).attr("x",u).attr("y",f).attr("width",a).attr("height",2).attr("stroke-width",0).style("fill",v=>v.color||r),m.on("mouseover",function(v,b){const d=P.select(this);i.onBarChartBarMouseOver(d,r),i.handleBarMouseOver(v,b,s)}).on("mouseout",function(){const v=P.select(this);i.onBarChartBarMouseOut(v,s),i.handleBarMouseOut()}).on("click",function(){e.selectAll(`.${H.eventBarContainerSelected}`).classed(H.eventBarContainerSelected,!1),P.select(this).classed(H.eventBarContainerSelected,!0)})},onBarChartBarMouseOver(t,e){t.classed(H.eventBarContainerHovered,!0),t.selectAll(`.${H.eventBarHoverZone}`).attr("fill-opacity",.2);const n=t.selectAll(`.${H.eventBar}`);n.attr("fill",e),n.attr("fill-opacity",.5)},onBarChartBarMouseOut(t,e){t.classed(H.eventBarContainerHovered,!1),t.selectAll(`.${H.eventBarHoverZone}`).attr("fill-opacity",0);const n=t.selectAll(`.${H.eventBar}`);n.attr("fill",`url(#${at.transparencyGradient}-${e})`),n.attr("fill-opacity",1)},drawTextLabel({gElement:t,yPosition:e,color:r,label:n,type:s,height:l}){if(!this.showLabels)return;const i={x:-5,y:e,w:this.labelRectWidth,h:l||this.barChartHeight,radius:3},h=t.append("g").attr("class",`${H.labelGroup} ${H.labelGroup}-${s}`).style("cursor","pointer").on("click",()=>this.toggleGroupVisibility(s));h.append("rect").attr("class",H.labelBg).attr("data-color",r).attr("x",i.x).attr("y",i.y).attr("width",i.w).attr("height",i.h).attr("rx",i.radius).attr("ry",i.radius).style("fill",this.dark?"#131a29":"white"),h.append("rect").attr("class",H.labelBgFill).attr("data-color",r).attr("x",i.x).attr("y",i.y).attr("width",i.w).attr("height",i.h).attr("rx",i.radius).attr("ry",i.radius).style("fill",this.getLabelBackgroundColor(r)).style("stroke",this.getTextFillColor(r)).style("stroke-width",.25),h.append("text").attr("class",H.labelText).attr("data-color",r).attr("x",5).attr("y",e+(l||this.barChartHeight)/2).attr("dy","0.35em").style("text-anchor","start").style("font-size","12px").style("font-weight",500).style("stroke-linejoin","round").style("paint-order","stroke").style("fill",this.getTextFillColor(r)).text(n)},getTextFillColor(t,e=0){var r,n;return(this.dark?(r=P.color(t))==null?void 0:r.brighter(1.5+e):(n=P.color(t))==null?void 0:n.darker(2+e)).toString()},getLabelBackgroundColor(t){let e=P.color(t);return e.opacity=this.dark?.2:.5,e.toString()},getCurrentGroupVisibility(t){var n;const e=this.groupsVisibility[t];if(e!==void 0)return e;const r=(n=this.eventsGroups[t])==null?void 0:n.isHidden;return r!==void 0?!r:!0},toggleGroupVisibility(t){this.groupsVisibility={...this.groupsVisibility,[t]:!this.getCurrentGroupVisibility(t)}},getExternalLabelStyles(t){const e=this.eventsGroups[t].color;return{background:this.getLabelBackgroundColor(e),color:this.getTextFillColor(e)}},getExternalLabelWrapperStyles(t){const e=this.eventsGroups[t].color;return{borderColor:this.getTextFillColor(e)}},tzStringToDate(t){return Hr({timestamp:t,timezone:this.timezone})},dateToTzString(t){return Nr({date:t,timezone:this.timezone})},getFormattedTimestamp(t){return Se.parseZone(t).format("YYYY-MM-DDTHH:mm:ss")},fillTimeGaps(t){if(t.length<=1)return t;const e=this.insertZerosAtInterval,r=l=>l.clone().add(1,e),n=l=>l.clone().subtract(1,e);let s=[];for(let l=0;l<t.length;l++){const i=t[l];if(s.push(i),l===t.length-1)break;const h=t[l+1],a=Se(i.timestamp),o=Se(h.timestamp);if(o.diff(a,e)>1){const u=r(a).toISOString(),f=n(o).toISOString();s.push({timestamp:u,count:0}),u!==f&&s.push({timestamp:f,count:0})}}if(this.flattenLineGraphEnds){const l=Se(t[0].timestamp),i=Se(t[t.length-1].timestamp),h=n(l).toISOString(),a=r(i).toISOString();s=[{timestamp:h,count:0},...s,{timestamp:a,count:0}]}return s},fillEvents(t){return this.placeholderLineChartGroup.map(e=>t.find(n=>n.timestamp===e.timestamp)||e)},onMilestoneClick(t,e){this.panOnDateClick&&(this.focusedTimestamp=t.timestamp),this.selectedMilestoneId=t.id||t.timestamp,this.$emit("milestone-click",{milestone:t,milestoneType:e})},getSortedEvents(t){return[...t].sort((e,r)=>new Date(e.timestamp||e.startDate)>new Date(r.timestamp||r.startDate)?1:-1)},onHoverMilestone(t){this.hoveredMilestone=t}}}),t7="";var z0=function(){var e=this,r=e._self._c;return r("div",{ref:"mainContainer",staticClass:"e-timeline"},[r("EZoomBehavior",{attrs:{domain:e.domain,"focused-domain":e.focusedDomain,"translation-duration":e.transitionDuration,"focused-timestamp":e.focusedTimestamp,timezone:e.timezone},on:{"transform-changed":e.handleTransformChange,"time-scale-change":e.handleTimeScaleChange},scopedSlots:e._u([{key:"default",fn:function(){return[e.timeScale?r("div",{ref:"wrapperDiv",staticClass:"e-relative e-timeline e-border e-rounded",class:e.computedClasses.wrapper},[r("ETimelineMarkers",{attrs:{markers:e.sortedMarkers,"sticky-markers":e.stickyMarkers,"time-scale":e.timeScale,"time-zone":e.timezone,height:e.timelineHeight,"svg-left":e.svgLeft},on:{"marker-clicked":e.handleMarkerClick,"marker-drag-end":function(n){return e.$emit("marker-drag-end",n)},"marker-drag-start":function(n){return e.$emit("marker-drag-start",n)},"marker-drag-drag":function(n){return e.$emit("marker-drag-drag",n)}},scopedSlots:e._u([e._l(e.markersScopedSlots,function(n,s){return{key:s,fn:function(l){return[e._t(s,null,null,l)]}}})],null,!0)}),r("div",{directives:[{name:"resize-observer",rawName:"v-resize-observer",value:e.onResize,expression:"onResize"}],ref:"timelineContainer",staticClass:"e-timeline__svg-container e-relative e-h-13 e-rounded e-select-none e-overflow-x-hidden"},[r("svg",{ref:"timelineSvg",class:e.computedClasses.background,attrs:{width:e.timelineWidth,height:e.timelineHeight}},[r("ETimelineSVGDefs",{attrs:{"events-groups":e.eventsGroups,width:e.timelineWidth,height:e.chartHeight,"forbidden-interval-color":e.forbiddenIntervalColor}}),r("g",{staticClass:"e-timeline-axes"},[e.timeScale?r("EXAxisOverview",{attrs:{"time-scale":e.timeScale,height:e.timelineHeight,dark:e.dark}}):e._e(),e.timeScale?r("EXAxisDetailed",{attrs:{"time-scale":e.timeScale,height:e.timelineHeight-e.axisHeight,y:e.axisHeight,dark:e.dark}}):e._e(),e.timeScale?r("EXAxisBackground",{attrs:{"time-scale":e.timeScale,height:e.timelineHeight-1.75*e.axisHeight,y:e.axisHeight*1.75,dark:e.dark}}):e._e()],1)],1)]),e._l(e.milestonesGroups,function(n,s){return r("div",{key:`${s}`,staticClass:"e-timeline-milestones"},[r("div",{class:`e-tl-milestones e-tl-milestones-${s}`},e._l(e.getSortedEvents(n.events),function(l,i){return r("ETimelineMilestone",{key:`${l.milestoneType}-${i}`,class:e.getMilestoneClass(l),attrs:{"data-timestamp":l.timestamp,milestone:l,dot:n.dots,size:l.size||e.milestoneBulletSize,"transition-duration":n.milestonesTransitionDuration,"line-height":n.milestonesLineHeight,"dot-size":n.milestonesDotSize,"background-color":e.getMilestoneColors(l.color,n.color).background,"border-color":e.getMilestoneColors(l.color,n.color).border},on:{"hovered-milestone":e.onHoverMilestone,"milestone-click":function(h){return e.onMilestoneClick(l,s)}},scopedSlots:e._u([{key:"content",fn:function(){return[e._t(`milestoneContent.${l.milestoneType}`,function(){return[r("span",{staticClass:"e-px-2"},[e._v(" "+e._s(l.text)+" ")])]},{milestone:l,index:i,hover:l===e.hoveredMilestone})]},proxy:!0},{key:"label",fn:function(){return[e._t(`milestoneLabel.${l.milestoneType}`,null,{milestone:l})]},proxy:!0}],null,!0)})}),1)])}),r("div",{directives:[{name:"show",rawName:"v-show",value:e.isHoveringTimeline&&!e.isInteractingWithCurtain,expression:"isHoveringTimeline && !isInteractingWithCurtain"}],ref:"cursor",staticClass:"e-timeline__cursor e-absolute e-bg-green-600 e-w-px e-h-full e-top-0 e-pointer-events-none"}),r("div",{staticClass:"external-labels-container e-flex"},e._l(e.hiddenGroupsLabels,function(n){return r("div",{key:n,staticClass:"external-label",class:e.computedClasses.background,style:e.getExternalLabelWrapperStyles(n),on:{click:function(s){return e.toggleGroupVisibility(n)}}},[r("div",{staticClass:"external-label__content",style:e.getExternalLabelStyles(n)},[e._v(" "+e._s(n)+" ")])])}),0),r("div",{key:"tooltip",ref:"tooltip",staticClass:"e-absolute",style:e.eventTooltipStyle},[e._t("tooltip",function(){return[r("div",{directives:[{name:"show",rawName:"v-show",value:e.isHoveringTimeline&&!e.isHoveringEvent&&!e.isInteractingWithCurtain&&!e.cursorTimestamp,expression:`
|
|
4
4
|
isHoveringTimeline &&
|
|
5
5
|
!isHoveringEvent &&
|
|
6
6
|
!isInteractingWithCurtain &&
|
|
7
7
|
!cursorTimestamp
|
|
8
|
-
`}],staticClass:"e-timeline__tooltip e-border e-rounded e-px-2 -e-left-2/4 e-relative",class:e.computedClasses.tooltipSlot},[e._v(" "+e._s(e.hoveredTimestamp)+" ")])]},{timestamp:e.hoveredTimestamp,active:e.isHoveringTimeline&&!e.isInteractingWithCurtain&&!e.cursorTimestamp})],2),r("div",{key:"eventTooltip",staticClass:"e-absolute e-z-50",style:e.eventTooltipStyle},[e._t("eventTooltip",function(){return[e.showEventTooltip&&(e.hoveredEvent||e.hoveredCounts.length)?r("div",{directives:[{name:"show",rawName:"v-show",value:e.isHoveringEvent&&!e.isInteractingWithCurtain,expression:"isHoveringEvent && !isInteractingWithCurtain"}],staticClass:"e-timeline__event-tooltip e-border e-rounded e-px-2 -e-left-2/4 e-relative",class:e.computedClasses.eventTooltipSlot},[e.hoveredCounts.length?r("div",[r("strong",[e._v("Timestamp")]),e._v(": "+e._s(e.hoveredEvent.timestamp)+" "),e._l(e.hoveredCounts,function(n,s){return r("div",{key:s},[r("strong",[e._v(e._s(n.type)+" Count")]),e._v(": "+e._s(n.count)+" ")])})],2):e.hoveredEvent?r("div",[e.hoveredEvent.timestamp?r("div",[r("strong",[e._v("Event time")]),e._v(": "+e._s(e.hoveredEvent.timestamp)+" ")]):e._e(),e.hoveredEvent.startDate?r("div",[r("strong",[e._v("From")]),e._v(":"+e._s(e.hoveredEvent.startDate)+" ")]):e._e(),e.hoveredEvent.endDate?r("div",[r("strong",[e._v("To")]),e._v(":"+e._s(e.hoveredEvent.endDate)+" ")]):e._e()]):e._e()]):e._e()]},{event:e.hoveredEvent,counts:e.hoveredCounts,active:e.isHoveringEvent&&!e.isInteractingWithCurtain,type:e.hoveredEventType})],2)],2):e._e()]},proxy:!0}],null,!0)})],1)},B0=[],I0=Y(O0,z0,B0,!1,null,null,null,null);const ki=I0.exports,A0=j.extend({name:"EVideoEmbed",props:{videoUrl:{type:String,required:!0},platform:{type:String,required:!0,validator:t=>["youtube","vimeo"].includes(t)},iframeListeners:{type:Object,default:()=>({})},iframeOptions:{type:Object,default:()=>({})}},computed:{videoId(){if(this.platform==="youtube"){const t=/^.*(?:youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|&v=)([^#\&\?]*).*/,e=this.videoUrl.match(t);return e&&e[1].length===11?e[1]:void 0}else if(this.platform==="vimeo"){const t=this.videoUrl.match(/vimeo\.com\/(\d+)/);return t?t[1]:void 0}},embedUrl(){var t;if(this.platform==="youtube"){const e=new URLSearchParams({quality:"1080p",...this.iframeOptions});return`https://www.youtube.com/embed/${this.videoId}?${e.toString()}`}else if(this.platform==="vimeo"&&this.videoId){const e=(t=this.videoUrl.split("/").pop())==null?void 0:t.split("?")[0],r=new URLSearchParams({h:e||"",quality:"1080p",...this.iframeOptions});return`https://player.vimeo.com/video/${this.videoId}?${r.toString()}`}return""}}}),r7="";var F0=function(){var e=this,r=e._self._c;return r("div",{staticClass:"video-embed"},[r("iframe",e._g(e._b({attrs:{src:e.embedUrl,frameborder:"0",allowfullscreen:"",width:"100%",height:"100%",allow:"autoplay; fullscreen; picture-in-picture"}},"iframe",e.iframeOptions,!1),e.iframeListeners))])},R0=[],H0=Y(A0,F0,R0,!1,null,"7e66cb69",null,null);const Mi=H0.exports,N0=j.extend({name:"EHeatmapBar",props:{items:{type:Array,default:()=>[]},selectedValue:{type:[String,Number],default:""},showCounts:{type:Boolean,default:!0},showNames:{type:Boolean,default:!0},colors:{type:Array,default:()=>["#ebedf0","#c0ddf9","#73b3f3","#3886e1","#17459e"]},label:{type:String,default:""},dense:{type:Boolean,default:!1}},computed:{heatMapBarItems(){return this.items},maxCount(){return this.items.reduce((t,e)=>Math.max(t,e.count),0)}},methods:{getColorIndex(t){return Math.ceil(t/this.maxCount*(this.colors.length-1))},getColor(t){const e=this.getColorIndex(t);return this.colors[e]||this.colors[0]},getItemStyle(t){return{background:this.getColor(t)}}}}),n7="";var W0=function(){var e=this,r=e._self._c;return r("div",{staticClass:"e-flex e-heatmap-bar",class:{"e-heatmap-bar--dense":e.dense}},[e._t("label",function(){return[e.label?r("div",{staticClass:"e-heatmap-bar__label e-text-black"},[e._v(" "+e._s(e.label)+" ")]):e._e()]}),e._l(e.heatMapBarItems,function({name:n,value:s,count:l}){return r("div",{key:s,staticClass:"e-flex e-w-full e-justify-center e-items-center e-heatmap-bar__item",class:{"e-heatmap-bar__item--selected":e.selectedValue===s},style:e.getItemStyle(l),on:{click:function(i){return e.$emit("change",s)}}},[e.showCounts?r("span",{staticClass:"e-heatmap-bar__item__count",class:{"e-heatmap-bar__item__count--light":e.getColorIndex(l)<=2}},[e._v(" "+e._s(l>0?l:"")+" ")]):e._e(),e.showNames?r("span",{staticClass:"e-heatmap-bar__item__name e-text-xs e-text-black e-truncate"},[e._v(" "+e._s(n)+" ")]):e._e()])})],2)},j0=[],G0=Y(N0,W0,j0,!1,null,null,null,null);const Xr=G0.exports,q0=j.extend({name:"EHoursHeatmap",components:{EHeatmapBar:Xr},props:{items:{type:Array,default:()=>[]},selectedHour:{type:[String,Number],default:""},showHours:{type:Boolean,default:!0},colors:{type:Array,default:()=>["#ebedf0","#c0ddf9","#73b3f3","#3886e1","#17459e"]},label:{type:String,default:""},dense:{type:Boolean,default:!1}},computed:{itemsByHour(){return this.items.reduce((t,e)=>({...t,[Se(e.timestamp).format("H")]:e}),{})},heatmapBarItems(){return new Array(24).fill(void 0).reduce((t,e,r)=>{var n;return[...t,{name:this.getFormattedHour(r),value:r,count:((n=this.itemsByHour[r])==null?void 0:n.count)||0}]},[])}},methods:{getFormattedHour(t){const e=t.toString();return(e.length>1?e:`0${e}`)+(this.dense?"h":":00")}}});var Z0=function(){var e=this,r=e._self._c;return r("EHeatmapBar",e._g({attrs:{items:e.heatmapBarItems,"selected-value":e.selectedHour,"show-names":e.showHours,colors:e.colors,label:e.label,dense:e.dense},scopedSlots:e._u([{key:"label",fn:function(){return[e._t("label")]},proxy:!0}],null,!0)},e.$listeners))},U0=[],Y0=Y(q0,Z0,U0,!1,null,null,null,null);const Ei=Y0.exports,X0=j.extend({name:"EReadMore",props:{content:{type:[Array,String],default:()=>null},maxLength:{type:Number,default:()=>2},showAll:{type:Boolean,default:!1},expandText:{type:String,default:"see more..."},collapseText:{type:String,default:"less"},moreTextWithPlaceholder:{type:String,default:"and {count} more..."}},data(){return{showAllContent:!1}},computed:{hiddenContentLength(){var t,e;return Math.max(((e=(t=this.content)==null?void 0:t.length)!=null?e:0)-this.maxLength,0)},isArrayContent(){return Array.isArray(this.content)},isHiddenTextContent(){return this.hiddenContentLength>0&&!this.showAllContent&&!this.isArrayContent},isHiddenArrayContent(){return this.hiddenContentLength>0&&!this.showAllContent&&this.isArrayContent},isContentExpanded(){var t;return this.showAllContent&&((t=this.content)==null?void 0:t.length)>0},computedMoreText(){return this.moreTextWithPlaceholder.replace("{count}",this.hiddenContentLength.toString())}},mounted(){this.showAllContent=this.showAll},methods:{displayContent(){return this.isArrayContent?this.displayArrayContent():this.displayTextContent()},displayArrayContent(){var t,e;return((t=this.content)==null?void 0:t.length)>this.maxLength&&this.showAllContent===!1?this.content.slice(0,this.maxLength).join(", "):((e=this.content)==null?void 0:e.length)>-1?this.content.join(", "):""},displayTextContent(){var t,e;return((t=this.content)==null?void 0:t.length)>this.maxLength&&this.showAllContent===!1?this.content.substr(0,this.maxLength):((e=this.content)==null?void 0:e.length)>-1?this.content:""},toggleContentExpansion(){this.showAllContent=!this.showAllContent}}});var Q0=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("span",{staticClass:"e-read-more"},[r("span",{staticClass:"e-read-more__content mr-1",style:{"white-space":e.showAllContent?"initial":"nowrap"}},[e._v(" "+e._s(e.displayContent())+" ")]),e.isHiddenArrayContent?r("span",{staticClass:"e-cursor-pointer e-text-primary",on:{click:e.toggleContentExpansion}},[e._v(" "+e._s(e.computedMoreText)+" ")]):e.isHiddenTextContent?r("span",{staticClass:"e-cursor-pointer e-text-primary",on:{click:e.toggleContentExpansion}},[e._v(" "+e._s(e.expandText)+" ")]):e._e(),e.isContentExpanded?r("span",{staticClass:"e-cursor-pointer e-text-primary",on:{click:e.toggleContentExpansion}},[e._v(" "+e._s(e.collapseText)+" ")]):e._e()])},V0=[],K0=Y(X0,Q0,V0,!1,null,null,null,null);const $i=K0.exports,J0=j.extend({name:"ETruncatedDiv",props:{width:{type:[String,Number],required:!0},fixedWidth:{type:Boolean,default:!1}},computed:{containerStyle(){let t=this.width;return typeof t=="number"&&(t=`${this.width}px`),{maxWidth:t,...this.fixedWidth?{width:t}:{}}}}});var e5=function(){var e=this,r=e._self._c;return r("div",e._g(e._b({staticClass:"e-truncated-div e-truncate",style:e.containerStyle},"div",e.$attrs,!1),e.$listeners),[e._t("default")],2)},t5=[],r5=Y(J0,e5,t5,!1,null,null,null,null);const Li=r5.exports,n5=j.extend({name:"ECompareSeparator",components:{EIcon:rt},props:{xOffset:{type:[Number,String],default:50}},computed:{separatorStyle(){return{left:`${this.xOffset}%`}}}}),i7="";var i5=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("div",{staticClass:"e-compare-separator",on:{mousedown:function(n){return n.preventDefault(),(s=>e.$emit("mousedown",s)).apply(null,arguments)},touchstart:function(n){return n.preventDefault(),(s=>e.$emit("touchstart",s)).apply(null,arguments)}}},[r("div",{staticClass:"e-compare-separator__line",style:e.separatorStyle}),r("div",{staticClass:"e-compare-separator__icon e-flex e-justify-around e-items-center",style:e.separatorStyle},[r("EIcon",{attrs:{icon:"caret-left",color:"e-text-white",size:"xl"}}),r("EIcon",{attrs:{icon:"caret-right",color:"e-text-white",size:"xl"}})],1)])},s5=[],a5=Y(n5,i5,s5,!1,null,null,null,null);const Qr=a5.exports,Di={width:0,height:0,left:0,top:0},o5=j.extend({name:"EImagesComparator",directives:{resizeObserver:Qe},components:{ECompareSeparator:Qr},props:{beforeImageSrc:{type:String,default:null},afterImageSrc:{type:String,default:null},isLoading:{type:Boolean,default:!1}},data(){return{separatorPositionX:50,startSeparatorPositionX:50,computedImageDimension:Di,isSeparatorDragging:!1,watermarkDimension:Di,touchIdentifier:null,startTouchX:0,containerRect:{},container:{},afterImage:{}}},computed:{clipStyle(){return{clip:`rect(auto, ${this.computedImageDimension.width*this.separatorPositionX/100+this.computedImageDimension.left}px, auto, auto)`}},contentStyle(){return{width:`${this.computedImageDimension.width}px`,height:this.computedImageDimension.height?`${this.computedImageDimension.height}px`:"100%",top:`${this.computedImageDimension.top}px`,left:`${this.computedImageDimension.left}px`}},imageSizeClasses(){return!this.isLoading||this.computedImageDimension.width&&this.computedImageDimension.height?"e-w-full e-h-full":"e-w-0 e-h-0"}},methods:{handleResize(){this.container=this.$refs.container,this.containerRect=this.container.getBoundingClientRect();const{clientHeight:t,clientWidth:e}=this.container;this.afterImage=this.$refs.afterImage;const{naturalHeight:r,naturalWidth:n}=this.afterImage,s=e/t,l=n/r;if(s>l){const i=t*l;this.computedImageDimension={width:i,height:t,top:0,left:(e-i)/2}}else{const i=e/l;this.computedImageDimension={width:e,height:i,top:(t-i)/2,left:0}}this.handleWatermarkResize()},handleWatermarkResize(){const{naturalWidth:t}=this.afterImage,e=i=>i*this.computedImageDimension.width/t,r=t/100*4,n=t/100*2,s=e(r),l=e(n);this.watermarkDimension={right:`${l}px`,bottom:`${l}px`,width:`${s}px`,height:`${s}px`}},handleMouseMove(t){if(!this.isSeparatorDragging)return;const r=(t.clientX-this.containerRect.left-this.computedImageDimension.left)/this.computedImageDimension.width*100;this.separatorPositionX=Math.max(0,Math.min(100,r))},handleMouseDown(){this.isSeparatorDragging=!0,this.container.addEventListener("mousemove",this.handleMouseMove),this.container.addEventListener("mouseup",this.handleMouseUp)},handleMouseUp(){this.isSeparatorDragging&&(this.container.removeEventListener("mousemove",this.handleMouseMove),this.container.removeEventListener("mouseup",this.handleMouseUp),this.isSeparatorDragging=!1)},handleTouchStart(t){const e=t.touches[0];e&&t.touches.length===1&&(this.container.addEventListener("touchmove",this.handleTouchMove),this.container.addEventListener("touchend",this.handleTouchEnd),this.touchIdentifier=e.identifier,this.startTouchX=e.clientX,this.startSeparatorPositionX=this.separatorPositionX)},handleTouchMove(t){const e=Array.from(t.touches).find(r=>r.identifier===this.touchIdentifier);if(e){const r=e.clientX-this.startTouchX;this.separatorPositionX=Math.max(0,Math.min(100,r/this.computedImageDimension.width*100+this.startSeparatorPositionX))}},handleTouchEnd(t){Array.from(t.touches).find(r=>r.identifier===this.touchIdentifier)||(this.container.removeEventListener("touchmove",this.handleTouchMove),this.container.removeEventListener("touchend",this.handleTouchEnd),this.touchIdentifier=null)}}}),s7="";var l5=function(){var e=this,r=e._self._c;return r("div",{directives:[{name:"resize-observer",rawName:"v-resize-observer",value:e.handleResize,expression:"handleResize"}],ref:"container",staticClass:"e-images-comparator e-h-full e-w-full e-relative e-bg-black e-border-black"},[r("img",{staticClass:"e-images-comparator__image e-absolute e-top-0",class:e.imageSizeClasses,style:e.clipStyle,attrs:{src:e.beforeImageSrc}}),r("img",{ref:"afterImage",staticClass:"e-images-comparator__image",class:e.imageSizeClasses,attrs:{src:e.afterImageSrc},on:{load:e.handleResize}}),e.isLoading?r("div",{staticClass:"e-images-comparator__overlay"},[e._t("overlay")],2):e._e(),r("div",{staticClass:"e-absolute",style:e.contentStyle},[r("ECompareSeparator",e._g({attrs:{"x-offset":e.separatorPositionX},on:{mousedown:e.handleMouseDown,touchstart:e.handleTouchStart}},e.$listeners)),r("div",{staticClass:"e-images-comparator__watermark e-absolute",style:e.watermarkDimension},[e._t("watermark",null,null,e.watermarkDimension)],2)],1)])},c5=[],u5=Y(o5,l5,c5,!1,null,null,null,null);const Pi=u5.exports,Ge=j.extend({data(){return{timeouts:[]}},beforeDestroy(){this.$clearTimeouts()},methods:{$setTimeout(t,e=0){const r=setTimeout(t,e);return this.timeouts=[...this.timeouts,r],r},$clearTimeouts(){this.timeouts.forEach(t=>clearTimeout(t)),this.timeouts=[]}}}),Ve=j.extend({data(){return{eventListeners:[]}},beforeDestroy(){this.$removeEventListeners()},methods:{$addEventListener(t,e,r=window){if(!(r instanceof HTMLElement||r instanceof Window)){console.error("$addEventListener: The target element is not an HTMLElement."),console.log("$addEventListener: got: ",r);return}r.addEventListener(t,e),this.eventListeners=[...this.eventListeners,{element:r,event:t,cb:e}]},$removeEventListener(t,e,r=window){var s;const n=this.eventListeners.find(l=>l.event===t&&l.element===r&&l.cb===e);n&&((s=n.element)==null||s.removeEventListener(t,e),this.eventListeners=this.eventListeners.filter(l=>l.event===t&&l.cb===e&&l.element===r))},$removeEventListeners(){this.eventListeners.forEach(({element:t,event:e,cb:r})=>{t==null||t.removeEventListener(e,r)}),this.eventListeners=[]}}}),d5=j.extend({name:"EExpandableMenu",mixins:[Ge,Ve],props:{padding:{type:Number,default:4},direction:{type:String,default:"top",validator:t=>["top","right","bottom","left"].includes(t)},isMobile:{type:Boolean,default:!1}},data(){return{menu:!1,touched:!1,baseSize:{}}},computed:{row(){return["right","left"].includes(this.direction)},reverse(){return["top","left"].includes(this.direction)}},watch:{isMobile(){this.setButtonsPositions(this.menu)},direction(){this.setButtonsPositions(this.menu)},padding(){this.setButtonsPositions(this.menu)}},mounted(){const t=this.$refs.activator,e=(t==null?void 0:t.getBoundingClientRect())||{};this.baseSize={width:`${e.width}px`,height:`${e.height}px`},this.isMobile||this.$setTimeout(this.toggleMenu,100),this.$addEventListener("resize",this.setButtonsPositions)},methods:{toggleMenu(){this.menu=!this.menu,this.setButtonsPositions(this.menu)},setButtonsPositions(t){const e=this.$refs.menu,r=Array.from(e==null?void 0:e.children).filter(f=>!f.classList.contains("v-tooltip"));if(!r||!r.length)return;const n=this.isMobile?30:40,s=Array.from(r),l=this.$refs.activator,i=l==null?void 0:l.getBoundingClientRect(),h=Math.min(i[this.row?"width":"height"],n),a=t?h+this.padding:0,o=this.row?"X":"Y";e.style.transform=`translate${o}(${(this.reverse?-1:1)*a}px)`;let u=0;s.forEach((f,m)=>{f.getBoundingClientRect()[this.row?"width":"height"]>n?u=Math.max(f.getBoundingClientRect()[this.row?"width":"height"],n)+this.padding:u=Math.min(f.getBoundingClientRect()[this.row?"width":"height"],n)+this.padding;const v=t?u*m:0;f.style.transform=`translate${o}(${(this.reverse?-1:1)*v}px)`})}}}),a7="";var h5=function(){var e=this,r=e._self._c;return r("div",{staticClass:"expandable-menu",class:{"expandable-menu--row":e.row,"expandable-menu--column":!e.row,"expandable-menu--reverse":e.reverse,"expandable-menu--open":e.menu,"expandable-menu--closed":!e.menu},style:e.baseSize,on:{click:function(n){e.touched=!0},mouseenter:function(n){e.touched=!0}}},[r("div",{staticClass:"expandable-menu__container",style:e.baseSize},[r("div",{ref:"activator",staticClass:"v-btn--no-active e-cursor-pointer expandable-menu__activator",on:{click:e.toggleMenu}},[e._t("activator")],2),r("div",{ref:"menu",staticClass:"e-flex e-flex-col expandable-menu__menu",class:{"expandable-menu__menu--closed":!e.menu,"expandable-menu__menu--open":e.menu,"e-py-2":!e.row,"e-py-0":e.row},attrs:{"data-test-id":"action-buttons-menu"}},[e._t("default")],2)])])},f5=[],p5=Y(d5,h5,f5,!1,null,null,null,null);const Oi=p5.exports,m5=j.extend({name:"BaseIcon",props:{name:{type:String,default:"box"},color:{type:String,default:"#3c3c3c"},viewBox:{type:String,default:"0 0 128 128"},width:{type:[Number,String],default:60},height:{type:[Number,String],default:60},size:{type:[Number,String,null],default:null}}});var g5=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("svg",e._g({staticClass:"svg-icon",attrs:{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:e.viewBox,width:e.size||e.width,height:e.size||e.height,"aria-labelledby":e.name,role:"presentation"}},e.$listeners),[r("g",{ref:"group",attrs:{fill:e.color}},[e._t("default",null,{color:e.color})],2)])},v5=[],_5=Y(m5,g5,v5,!1,null,null,null,null);const ge=_5.exports,y5=j.extend({name:"Bim",components:{BaseIcon:ge},props:{color:{type:String,default:"white"}}});var C5=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("BaseIcon",e._b({attrs:{small:!0,width:"22px",height:"22px",viewBox:"0 0 22 22",color:e.color}},"BaseIcon",e.$attrs,!1),[r("g",{attrs:{transform:"translate(0.000000,512.000000) scale(0.100000,-0.100000)"}},[r("path",{style:`fill: ${e.color}`,attrs:{d:`M3.7,5016.4v-43.8l20.9,0.2c19.5,0.2,21.1,0.3,24.7,1.3c5.8,1.6,9.9,3.9,13.3,7.2c3.4,3.5,5.3,6.7,6.4,11
|
|
8
|
+
`}],staticClass:"e-timeline__tooltip e-border e-rounded e-px-2 -e-left-2/4 e-relative",class:e.computedClasses.tooltipSlot},[e._v(" "+e._s(e.hoveredTimestamp)+" ")])]},{timestamp:e.hoveredTimestamp,active:e.isHoveringTimeline&&!e.isInteractingWithCurtain&&!e.cursorTimestamp})],2),r("div",{key:"eventTooltip",staticClass:"e-absolute e-z-50",style:e.eventTooltipStyle},[e._t("eventTooltip",function(){return[e.showEventTooltip&&(e.hoveredEvent||e.hoveredCounts.length)?r("div",{directives:[{name:"show",rawName:"v-show",value:e.isHoveringEvent&&!e.isInteractingWithCurtain,expression:"isHoveringEvent && !isInteractingWithCurtain"}],staticClass:"e-timeline__event-tooltip e-border e-rounded e-px-2 -e-left-2/4 e-relative",class:e.computedClasses.eventTooltipSlot},[e.hoveredCounts.length?r("div",[r("strong",[e._v("Timestamp")]),e._v(": "+e._s(e.hoveredEvent.timestamp)+" "),e._l(e.hoveredCounts,function(n,s){return r("div",{key:s},[r("strong",[e._v(e._s(n.type)+" Count")]),e._v(": "+e._s(n.count)+" ")])})],2):e.hoveredEvent?r("div",[e.hoveredEvent.timestamp?r("div",[r("strong",[e._v("Event time")]),e._v(": "+e._s(e.hoveredEvent.timestamp)+" ")]):e._e(),e.hoveredEvent.startDate?r("div",[r("strong",[e._v("From")]),e._v(":"+e._s(e.hoveredEvent.startDate)+" ")]):e._e(),e.hoveredEvent.endDate?r("div",[r("strong",[e._v("To")]),e._v(":"+e._s(e.hoveredEvent.endDate)+" ")]):e._e()]):e._e()]):e._e()]},{event:e.hoveredEvent,counts:e.hoveredCounts,active:e.isHoveringEvent&&!e.isInteractingWithCurtain,type:e.hoveredEventType})],2)],2):e._e()]},proxy:!0}],null,!0)})],1)},B0=[],I0=Y(O0,z0,B0,!1,null,null,null,null);const ki=I0.exports,A0=j.extend({name:"EVideoEmbed",props:{videoUrl:{type:String,required:!0},platform:{type:String,required:!0,validator:t=>["youtube","vimeo"].includes(t)},iframeListeners:{type:Object,default:()=>({})},iframeOptions:{type:Object,default:()=>({})}},computed:{videoId(){if(this.platform==="youtube"){const t=/^.*(?:youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|&v=)([^#\&\?]*).*/,e=this.videoUrl.match(t);return e&&e[1].length===11?e[1]:void 0}else if(this.platform==="vimeo"){const t=this.videoUrl.match(/vimeo\.com\/(\d+)/);return t?t[1]:void 0}},embedUrl(){var t;if(this.platform==="youtube"){const e=new URLSearchParams({quality:"1080p",...this.iframeOptions});return`https://www.youtube.com/embed/${this.videoId}?${e.toString()}`}else if(this.platform==="vimeo"&&this.videoId){const e=(t=this.videoUrl.split("/").pop())==null?void 0:t.split("?")[0],r=new URLSearchParams({h:e||"",quality:"1080p",...this.iframeOptions});return`https://player.vimeo.com/video/${this.videoId}?${r.toString()}`}return""}}}),r7="";var F0=function(){var e=this,r=e._self._c;return r("div",{staticClass:"video-embed"},[r("iframe",e._g(e._b({attrs:{src:e.embedUrl,frameborder:"0",allowfullscreen:"",width:"100%",height:"100%",allow:"autoplay; fullscreen; picture-in-picture"}},"iframe",e.iframeOptions,!1),e.iframeListeners))])},R0=[],H0=Y(A0,F0,R0,!1,null,"7e66cb69",null,null);const Mi=H0.exports,N0=j.extend({name:"EHeatmapBar",props:{items:{type:Array,default:()=>[]},selectedValue:{type:[String,Number],default:""},showCounts:{type:Boolean,default:!0},showNames:{type:Boolean,default:!0},colors:{type:Array,default:()=>["#ebedf0","#c0ddf9","#73b3f3","#3886e1","#17459e"]},label:{type:String,default:""},dense:{type:Boolean,default:!1}},computed:{heatMapBarItems(){return this.items},maxCount(){return this.items.reduce((t,e)=>Math.max(t,e.count),0)}},methods:{getColorIndex(t){return Math.ceil(t/this.maxCount*(this.colors.length-1))},getColor(t){const e=this.getColorIndex(t);return this.colors[e]||this.colors[0]},getItemStyle(t){return{background:this.getColor(t)}}}}),n7="";var W0=function(){var e=this,r=e._self._c;return r("div",{staticClass:"e-flex e-heatmap-bar",class:{"e-heatmap-bar--dense":e.dense}},[e._t("label",function(){return[e.label?r("div",{staticClass:"e-heatmap-bar__label e-text-black"},[e._v(" "+e._s(e.label)+" ")]):e._e()]}),e._l(e.heatMapBarItems,function({name:n,value:s,count:l}){return r("div",{key:s,staticClass:"e-flex e-w-full e-justify-center e-items-center e-heatmap-bar__item",class:{"e-heatmap-bar__item--selected":e.selectedValue===s},style:e.getItemStyle(l),on:{click:function(i){return e.$emit("change",s)}}},[e.showCounts?r("span",{staticClass:"e-heatmap-bar__item__count",class:{"e-heatmap-bar__item__count--light":e.getColorIndex(l)<=2}},[e._v(" "+e._s(l>0?l:"")+" ")]):e._e(),e.showNames?r("span",{staticClass:"e-heatmap-bar__item__name e-text-xs e-text-black e-truncate"},[e._v(" "+e._s(n)+" ")]):e._e()])})],2)},j0=[],G0=Y(N0,W0,j0,!1,null,null,null,null);const Yr=G0.exports,q0=j.extend({name:"EHoursHeatmap",components:{EHeatmapBar:Yr},props:{items:{type:Array,default:()=>[]},selectedHour:{type:[String,Number],default:""},showHours:{type:Boolean,default:!0},colors:{type:Array,default:()=>["#ebedf0","#c0ddf9","#73b3f3","#3886e1","#17459e"]},label:{type:String,default:""},dense:{type:Boolean,default:!1}},computed:{itemsByHour(){return this.items.reduce((t,e)=>({...t,[Se(e.timestamp).format("H")]:e}),{})},heatmapBarItems(){return new Array(24).fill(void 0).reduce((t,e,r)=>{var n;return[...t,{name:this.getFormattedHour(r),value:r,count:((n=this.itemsByHour[r])==null?void 0:n.count)||0}]},[])}},methods:{getFormattedHour(t){const e=t.toString();return(e.length>1?e:`0${e}`)+(this.dense?"h":":00")}}});var Z0=function(){var e=this,r=e._self._c;return r("EHeatmapBar",e._g({attrs:{items:e.heatmapBarItems,"selected-value":e.selectedHour,"show-names":e.showHours,colors:e.colors,label:e.label,dense:e.dense},scopedSlots:e._u([{key:"label",fn:function(){return[e._t("label")]},proxy:!0}],null,!0)},e.$listeners))},U0=[],Y0=Y(q0,Z0,U0,!1,null,null,null,null);const Ei=Y0.exports,X0=j.extend({name:"EReadMore",props:{content:{type:[Array,String],default:()=>null},maxLength:{type:Number,default:()=>2},showAll:{type:Boolean,default:!1},expandText:{type:String,default:"see more..."},collapseText:{type:String,default:"less"},moreTextWithPlaceholder:{type:String,default:"and {count} more..."}},data(){return{showAllContent:!1}},computed:{hiddenContentLength(){var t,e;return Math.max(((e=(t=this.content)==null?void 0:t.length)!=null?e:0)-this.maxLength,0)},isArrayContent(){return Array.isArray(this.content)},isHiddenTextContent(){return this.hiddenContentLength>0&&!this.showAllContent&&!this.isArrayContent},isHiddenArrayContent(){return this.hiddenContentLength>0&&!this.showAllContent&&this.isArrayContent},isContentExpanded(){var t;return this.showAllContent&&((t=this.content)==null?void 0:t.length)>0},computedMoreText(){return this.moreTextWithPlaceholder.replace("{count}",this.hiddenContentLength.toString())}},mounted(){this.showAllContent=this.showAll},methods:{displayContent(){return this.isArrayContent?this.displayArrayContent():this.displayTextContent()},displayArrayContent(){var t,e;return((t=this.content)==null?void 0:t.length)>this.maxLength&&this.showAllContent===!1?this.content.slice(0,this.maxLength).join(", "):((e=this.content)==null?void 0:e.length)>-1?this.content.join(", "):""},displayTextContent(){var t,e;return((t=this.content)==null?void 0:t.length)>this.maxLength&&this.showAllContent===!1?this.content.substr(0,this.maxLength):((e=this.content)==null?void 0:e.length)>-1?this.content:""},toggleContentExpansion(){this.showAllContent=!this.showAllContent}}});var Q0=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("span",{staticClass:"e-read-more"},[r("span",{staticClass:"e-read-more__content mr-1",style:{"white-space":e.showAllContent?"initial":"nowrap"}},[e._v(" "+e._s(e.displayContent())+" ")]),e.isHiddenArrayContent?r("span",{staticClass:"e-cursor-pointer e-text-primary",on:{click:e.toggleContentExpansion}},[e._v(" "+e._s(e.computedMoreText)+" ")]):e.isHiddenTextContent?r("span",{staticClass:"e-cursor-pointer e-text-primary",on:{click:e.toggleContentExpansion}},[e._v(" "+e._s(e.expandText)+" ")]):e._e(),e.isContentExpanded?r("span",{staticClass:"e-cursor-pointer e-text-primary",on:{click:e.toggleContentExpansion}},[e._v(" "+e._s(e.collapseText)+" ")]):e._e()])},V0=[],K0=Y(X0,Q0,V0,!1,null,null,null,null);const $i=K0.exports,J0=j.extend({name:"ETruncatedDiv",props:{width:{type:[String,Number],required:!0},fixedWidth:{type:Boolean,default:!1}},computed:{containerStyle(){let t=this.width;return typeof t=="number"&&(t=`${this.width}px`),{maxWidth:t,...this.fixedWidth?{width:t}:{}}}}});var e5=function(){var e=this,r=e._self._c;return r("div",e._g(e._b({staticClass:"e-truncated-div e-truncate",style:e.containerStyle},"div",e.$attrs,!1),e.$listeners),[e._t("default")],2)},t5=[],r5=Y(J0,e5,t5,!1,null,null,null,null);const Li=r5.exports,n5=j.extend({name:"ECompareSeparator",components:{EIcon:rt},props:{xOffset:{type:[Number,String],default:50}},computed:{separatorStyle(){return{left:`${this.xOffset}%`}}}}),i7="";var i5=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("div",{staticClass:"e-compare-separator",on:{mousedown:function(n){return n.preventDefault(),(s=>e.$emit("mousedown",s)).apply(null,arguments)},touchstart:function(n){return n.preventDefault(),(s=>e.$emit("touchstart",s)).apply(null,arguments)}}},[r("div",{staticClass:"e-compare-separator__line",style:e.separatorStyle}),r("div",{staticClass:"e-compare-separator__icon e-flex e-justify-around e-items-center",style:e.separatorStyle},[r("EIcon",{attrs:{icon:"caret-left",color:"e-text-white",size:"xl"}}),r("EIcon",{attrs:{icon:"caret-right",color:"e-text-white",size:"xl"}})],1)])},s5=[],a5=Y(n5,i5,s5,!1,null,null,null,null);const Xr=a5.exports,Di={width:0,height:0,left:0,top:0},o5=j.extend({name:"EImagesComparator",directives:{resizeObserver:Qe},components:{ECompareSeparator:Xr},props:{beforeImageSrc:{type:String,default:null},afterImageSrc:{type:String,default:null},isLoading:{type:Boolean,default:!1}},data(){return{separatorPositionX:50,startSeparatorPositionX:50,computedImageDimension:Di,isSeparatorDragging:!1,watermarkDimension:Di,touchIdentifier:null,startTouchX:0,containerRect:{},container:{},afterImage:{}}},computed:{clipStyle(){return{clip:`rect(auto, ${this.computedImageDimension.width*this.separatorPositionX/100+this.computedImageDimension.left}px, auto, auto)`}},contentStyle(){return{width:`${this.computedImageDimension.width}px`,height:this.computedImageDimension.height?`${this.computedImageDimension.height}px`:"100%",top:`${this.computedImageDimension.top}px`,left:`${this.computedImageDimension.left}px`}},imageSizeClasses(){return!this.isLoading||this.computedImageDimension.width&&this.computedImageDimension.height?"e-w-full e-h-full":"e-w-0 e-h-0"}},methods:{handleResize(){this.container=this.$refs.container,this.containerRect=this.container.getBoundingClientRect();const{clientHeight:t,clientWidth:e}=this.container;this.afterImage=this.$refs.afterImage;const{naturalHeight:r,naturalWidth:n}=this.afterImage,s=e/t,l=n/r;if(s>l){const i=t*l;this.computedImageDimension={width:i,height:t,top:0,left:(e-i)/2}}else{const i=e/l;this.computedImageDimension={width:e,height:i,top:(t-i)/2,left:0}}this.handleWatermarkResize()},handleWatermarkResize(){const{naturalWidth:t}=this.afterImage,e=i=>i*this.computedImageDimension.width/t,r=t/100*4,n=t/100*2,s=e(r),l=e(n);this.watermarkDimension={right:`${l}px`,bottom:`${l}px`,width:`${s}px`,height:`${s}px`}},handleMouseMove(t){if(!this.isSeparatorDragging)return;const r=(t.clientX-this.containerRect.left-this.computedImageDimension.left)/this.computedImageDimension.width*100;this.separatorPositionX=Math.max(0,Math.min(100,r))},handleMouseDown(){this.isSeparatorDragging=!0,this.container.addEventListener("mousemove",this.handleMouseMove),this.container.addEventListener("mouseup",this.handleMouseUp)},handleMouseUp(){this.isSeparatorDragging&&(this.container.removeEventListener("mousemove",this.handleMouseMove),this.container.removeEventListener("mouseup",this.handleMouseUp),this.isSeparatorDragging=!1)},handleTouchStart(t){const e=t.touches[0];e&&t.touches.length===1&&(this.container.addEventListener("touchmove",this.handleTouchMove),this.container.addEventListener("touchend",this.handleTouchEnd),this.touchIdentifier=e.identifier,this.startTouchX=e.clientX,this.startSeparatorPositionX=this.separatorPositionX)},handleTouchMove(t){const e=Array.from(t.touches).find(r=>r.identifier===this.touchIdentifier);if(e){const r=e.clientX-this.startTouchX;this.separatorPositionX=Math.max(0,Math.min(100,r/this.computedImageDimension.width*100+this.startSeparatorPositionX))}},handleTouchEnd(t){Array.from(t.touches).find(r=>r.identifier===this.touchIdentifier)||(this.container.removeEventListener("touchmove",this.handleTouchMove),this.container.removeEventListener("touchend",this.handleTouchEnd),this.touchIdentifier=null)}}}),s7="";var l5=function(){var e=this,r=e._self._c;return r("div",{directives:[{name:"resize-observer",rawName:"v-resize-observer",value:e.handleResize,expression:"handleResize"}],ref:"container",staticClass:"e-images-comparator e-h-full e-w-full e-relative e-bg-black e-border-black"},[r("img",{staticClass:"e-images-comparator__image e-absolute e-top-0",class:e.imageSizeClasses,style:e.clipStyle,attrs:{src:e.beforeImageSrc}}),r("img",{ref:"afterImage",staticClass:"e-images-comparator__image",class:e.imageSizeClasses,attrs:{src:e.afterImageSrc},on:{load:e.handleResize}}),e.isLoading?r("div",{staticClass:"e-images-comparator__overlay"},[e._t("overlay")],2):e._e(),r("div",{staticClass:"e-absolute",style:e.contentStyle},[r("ECompareSeparator",e._g({attrs:{"x-offset":e.separatorPositionX},on:{mousedown:e.handleMouseDown,touchstart:e.handleTouchStart}},e.$listeners)),r("div",{staticClass:"e-images-comparator__watermark e-absolute",style:e.watermarkDimension},[e._t("watermark",null,null,e.watermarkDimension)],2)],1)])},c5=[],u5=Y(o5,l5,c5,!1,null,null,null,null);const Pi=u5.exports,Ge=j.extend({data(){return{timeouts:[]}},beforeDestroy(){this.$clearTimeouts()},methods:{$setTimeout(t,e=0){const r=setTimeout(t,e);return this.timeouts=[...this.timeouts,r],r},$clearTimeouts(){this.timeouts.forEach(t=>clearTimeout(t)),this.timeouts=[]}}}),Ve=j.extend({data(){return{eventListeners:[]}},beforeDestroy(){this.$removeEventListeners()},methods:{$addEventListener(t,e,r=window){if(!(r instanceof HTMLElement||r instanceof Window)){console.error("$addEventListener: The target element is not an HTMLElement."),console.log("$addEventListener: got: ",r);return}r.addEventListener(t,e),this.eventListeners=[...this.eventListeners,{element:r,event:t,cb:e}]},$removeEventListener(t,e,r=window){var s;const n=this.eventListeners.find(l=>l.event===t&&l.element===r&&l.cb===e);n&&((s=n.element)==null||s.removeEventListener(t,e),this.eventListeners=this.eventListeners.filter(l=>l.event===t&&l.cb===e&&l.element===r))},$removeEventListeners(){this.eventListeners.forEach(({element:t,event:e,cb:r})=>{t==null||t.removeEventListener(e,r)}),this.eventListeners=[]}}}),d5=j.extend({name:"EExpandableMenu",mixins:[Ge,Ve],props:{padding:{type:Number,default:4},direction:{type:String,default:"top",validator:t=>["top","right","bottom","left"].includes(t)},isMobile:{type:Boolean,default:!1}},data(){return{menu:!1,touched:!1,baseSize:{}}},computed:{row(){return["right","left"].includes(this.direction)},reverse(){return["top","left"].includes(this.direction)}},watch:{isMobile(){this.setButtonsPositions(this.menu)},direction(){this.setButtonsPositions(this.menu)},padding(){this.setButtonsPositions(this.menu)}},mounted(){const t=this.$refs.activator,e=(t==null?void 0:t.getBoundingClientRect())||{};this.baseSize={width:`${e.width}px`,height:`${e.height}px`},this.isMobile||this.$setTimeout(this.toggleMenu,100),this.$addEventListener("resize",this.setButtonsPositions)},methods:{toggleMenu(){this.menu=!this.menu,this.setButtonsPositions(this.menu)},setButtonsPositions(t){const e=this.$refs.menu,r=Array.from(e==null?void 0:e.children).filter(f=>!f.classList.contains("v-tooltip"));if(!r||!r.length)return;const n=this.isMobile?30:40,s=Array.from(r),l=this.$refs.activator,i=l==null?void 0:l.getBoundingClientRect(),h=Math.min(i[this.row?"width":"height"],n),a=t?h+this.padding:0,o=this.row?"X":"Y";e.style.transform=`translate${o}(${(this.reverse?-1:1)*a}px)`;let u=0;s.forEach((f,m)=>{f.getBoundingClientRect()[this.row?"width":"height"]>n?u=Math.max(f.getBoundingClientRect()[this.row?"width":"height"],n)+this.padding:u=Math.min(f.getBoundingClientRect()[this.row?"width":"height"],n)+this.padding;const v=t?u*m:0;f.style.transform=`translate${o}(${(this.reverse?-1:1)*v}px)`})}}}),a7="";var h5=function(){var e=this,r=e._self._c;return r("div",{staticClass:"expandable-menu",class:{"expandable-menu--row":e.row,"expandable-menu--column":!e.row,"expandable-menu--reverse":e.reverse,"expandable-menu--open":e.menu,"expandable-menu--closed":!e.menu},style:e.baseSize,on:{click:function(n){e.touched=!0},mouseenter:function(n){e.touched=!0}}},[r("div",{staticClass:"expandable-menu__container",style:e.baseSize},[r("div",{ref:"activator",staticClass:"v-btn--no-active e-cursor-pointer expandable-menu__activator",on:{click:e.toggleMenu}},[e._t("activator")],2),r("div",{ref:"menu",staticClass:"e-flex e-flex-col expandable-menu__menu",class:{"expandable-menu__menu--closed":!e.menu,"expandable-menu__menu--open":e.menu,"e-py-2":!e.row,"e-py-0":e.row},attrs:{"data-test-id":"action-buttons-menu"}},[e._t("default")],2)])])},f5=[],p5=Y(d5,h5,f5,!1,null,null,null,null);const Oi=p5.exports,m5=j.extend({name:"BaseIcon",props:{name:{type:String,default:"box"},color:{type:String,default:"#3c3c3c"},viewBox:{type:String,default:"0 0 128 128"},width:{type:[Number,String],default:60},height:{type:[Number,String],default:60},size:{type:[Number,String,null],default:null}}});var g5=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("svg",e._g({staticClass:"svg-icon",attrs:{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:e.viewBox,width:e.size||e.width,height:e.size||e.height,"aria-labelledby":e.name,role:"presentation"}},e.$listeners),[r("g",{ref:"group",attrs:{fill:e.color}},[e._t("default",null,{color:e.color})],2)])},v5=[],_5=Y(m5,g5,v5,!1,null,null,null,null);const ge=_5.exports,y5=j.extend({name:"Bim",components:{BaseIcon:ge},props:{color:{type:String,default:"white"}}});var C5=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("BaseIcon",e._b({attrs:{small:!0,width:"22px",height:"22px",viewBox:"0 0 22 22",color:e.color}},"BaseIcon",e.$attrs,!1),[r("g",{attrs:{transform:"translate(0.000000,512.000000) scale(0.100000,-0.100000)"}},[r("path",{style:`fill: ${e.color}`,attrs:{d:`M3.7,5016.4v-43.8l20.9,0.2c19.5,0.2,21.1,0.3,24.7,1.3c5.8,1.6,9.9,3.9,13.3,7.2c3.4,3.5,5.3,6.7,6.4,11
|
|
9
9
|
c3,13-3.4,23.6-16.5,26.8l-3.5,0.9l2.6,0.8c3.5,1.2,8,4.3,10.3,7c7,8.6,5.5,21-3.4,26.9c-7.1,4.8-11.4,5.4-35.7,5.4h-19V5016.4z
|
|
10
10
|
M40.6,5043.9c3.8-2,4.7-3.7,4.5-8.4c-0.2-4.4-1.8-7-5.5-8.9c-2.2-1.1-3.2-1.3-9.1-1.4l-6.7-0.2v10.4v10.4l7-0.2
|
|
11
11
|
C37.4,5045.3,37.9,5045.3,40.6,5043.9z M41.5,5009.4c2.4-0.9,5.4-3.5,6.5-5.7c1.1-2.2,1.1-6.7,0-9.2c-1.1-2.6-2.8-4.4-5.8-5.7
|
|
@@ -199,6 +199,6 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
199
199
|
l-10.356-91.456l-33.469-1.377l-5.881-16.18c22.424-4.581,39.302-23.906,40.545-47.373l-100.75-13.359
|
|
200
200
|
c-0.736,3.442-1.157,7.009-1.157,10.672c0,17.681,8.989,33.258,22.644,42.429l-0.889-0.096l-20.167,16.954l-25.838-2.17L0,221.497
|
|
201
201
|
v75.477l45.059,11.131L38.384,420.339z M28.688,269.558v-22.539l19.125-17.471v44.313L28.688,269.558z`}}),r("path",{attrs:{d:`M182.443,107.77l15.31,2.027c2.037-45.508-17.738-75.286-53.541-80.029c-2.936-0.392-5.843-0.583-8.721-0.583
|
|
202
|
-
c-31.709,0-54.784,23.208-63.82,63.896l13.34,1.769L182.443,107.77z`}})])])},Zl=[],Ul=Y(Gl,ql,Zl,!1,null,null,null,null);const Yl=Ul.exports,Xl=j.extend({name:"ZohoCrm",components:{BaseIcon:ge},props:{color:{type:String,default:"grey"}}});var Ql=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("BaseIcon",e._b({attrs:{height:"20",width:"20",viewBox:"16 -9 5 40",small:!0,color:e.color}},"BaseIcon",e.$attrs,!1),[r("path",{attrs:{stroke:e.color,"stroke-width":"1",d:"M26.2 24c-3.2 0-6.2-1.2-8.4-3.5l-6.6-6.6c-.8-.8-1.2-1.8-1.2-2.9s.4-2.1 1.2-2.9C11.9 7.4 12.9 7 14 7c1.1 0 2.1.4 2.9 1.2l6.1 6.1c.7.7 1.9.7 2.6 0 .3-.3.5-.8.5-1.3s-.2-1-.5-1.3L19 5.1c-2-1.9-4.4-2.9-7-2.9-2.7 0-5.1 1-7 2.9-1.8 1.9-2.8 4.4-2.8 7 .1 2.6 1.1 5 2.9 6.8 1.8 1.8 4.3 2.8 6.8 2.8.9 0 1.9-.1 2.8-.4.6-.2 1.2.2 1.4.8.2.6-.2 1.2-.8 1.4-1 .4-2.1.5-3.3.5-3.2 0-6.2-1.2-8.4-3.4C1.3 18.4.1 15.4 0 12.3c0-1.7.3-3.3.9-4.8s1.4-2.8 2.5-3.9 2.4-2 3.8-2.6c1.5-.6 3.1-1 4.7-1 3.2 0 6.2 1.2 8.4 3.5l6.6 6.6c.8.8 1.2 1.8 1.2 2.9s-.4 2.1-1.2 2.9c-1.6 1.6-4.2 1.6-5.7 0l-6.1-6.1c-.7-.7-1.9-.7-2.6 0-.3.3-.5.8-.5 1.3s.2 1 .5 1.3l6.6 6.6c1.8 1.8 4.3 2.8 6.9 2.8s5.1-1 6.9-2.9c1.8-1.8 2.9-4.3 2.9-6.9s-1-5.1-2.9-6.9c-1.8-1.8-4.3-2.9-6.9-2.9-.8 0-1.7.1-2.5.3-.1 0-.2.1-.3.1-.6.2-1.2-.2-1.4-.8-.2-.6.2-1.2.8-1.4.1 0 .3-.1.4-.1 1-.3 2-.4 3-.4 1.6 0 3.2.3 4.7.9 1.4.6 2.7 1.5 3.8 2.6s2 2.4 2.6 3.8c.6 1.5.9 3.1.9 4.7 0 3.2-1.3 6.2-3.5 8.5-2.1 2.4-5.1 3.6-8.3 3.6z"}})])},Vl=[],Kl=Y(Xl,Ql,Vl,!1,null,null,null,null);const Jl=Kl.exports,e3=j.extend({name:"Tag",components:{BaseIcon:ge},props:{color:{type:String,default:"#000"},backgroundColor:{type:String,default:"white"}}});var t3=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("BaseIcon",e._b({attrs:{small:!0,width:"24",height:"24",viewBox:"0 0 24 24"}},"BaseIcon",e.$attrs,!1),[r("path",{attrs:{fill:e.color,d:"M22,4C22,2.89 21.1,2 20,2H4A2,2 0 0,0 2,4V16A2,2 0 0,0 4,18H18L22,22V4Z"}}),r("line",{attrs:{x1:"6",y1:"7",x2:"18",y2:"7",stroke:e.backgroundColor,"stroke-width":"2"}}),r("line",{attrs:{x1:"6",y1:"10",x2:"18",y2:"10",stroke:e.backgroundColor,"stroke-width":"2"}}),r("line",{attrs:{x1:"6",y1:"13",x2:"18",y2:"13",stroke:e.backgroundColor,"stroke-width":"2"}})])},r3=[],n3=Y(e3,t3,r3,!1,null,null,null,null);const i3=n3.exports,s3=j.extend({name:"Tag",components:{BaseIcon:ge},props:{color:{type:String,default:"#000"},backgroundColor:{type:String,default:"white"}}});var a3=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("BaseIcon",e._b({attrs:{small:!0,width:"24",height:"24",viewBox:"0 0 24 24"}},"BaseIcon",e.$attrs,!1),[r("path",{attrs:{fill:e.color,d:"M22,4C22,2.89 21.1,2 20,2H4A2,2 0 0,0 2,4V16A2,2 0 0,0 4,18H18L22,22V4Z"}}),r("line",{attrs:{x1:"12",y1:"6",x2:"12",y2:"14",stroke:e.backgroundColor,"stroke-width":"2"}}),r("line",{attrs:{x1:"8",y1:"10",x2:"16",y2:"10",stroke:e.backgroundColor,"stroke-width":"2"}})])},o3=[],l3=Y(s3,a3,o3,!1,null,null,null,null);const c3=l3.exports,u3={Bim:w5,Blur:E5,Compare:O5,ConcretePump:F5,CompactExcavator:zi,DroneView:j5,Dumper:Y5,Evercam:J5,EvercamLogo:i2,Excavator:zi,FlatbedSemiTrailer:f2,FreeDrawing:_2,IModel:w2,Inspection:E2,Loader:O2,MiniModel:F2,OtherTruck:Bi,RoadVehicle:U2,Roller:K2,Robot:nl,SemiTrailer:ll,SkidSteerLoader:fl,SmallTruck:_l,TankTruck:wl,The360:El,TippingTruck:Ol,TruckHead:Fl,TruckMixer:jl,Unknown:Bi,Worker:Yl,ZohoCrm:Jl,Tag:i3,TagPlus:c3},d3=t=>t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),Ii=Object.fromEntries(Object.entries(u3).map(([t,e])=>[d3(t),e])),h3=j.extend({name:"ESvgIcon",components:{...Ii},props:{icon:{type:String,default:""}},computed:{svgIconComponent(){return Ii[this.icon]}}});var f3=function(){var e=this,r=e._self._c;return e._self._setupProxy,r(e.svgIconComponent,e._g(e._b({tag:"component",staticClass:"e-svg-icon"},"component",e.$attrs,!1),e.$listeners))},p3=[],m3=Y(h3,f3,p3,!1,null,null,null,null);const Ai=m3.exports,l7="",g3={name:"ECalendarHeatmap",components:{EIcon:rt},mixins:[Ge],props:{items:{type:Array,default:()=>[]},startDate:{type:String,default:""},endDate:{type:String,default:""},dayRectSize:{type:Number,default:11},dayGutterSize:{type:Number,default:2},monthGutterSize:{type:Number,default:12},textSize:{type:Number,default:11},borderRadius:{type:Number,default:1},disableMissing:{type:Boolean,default:!1},selectedDate:{type:[String],default:""},labelFn:{type:Function,default:({date:t,count:e})=>`${t}, ${e}`},isDisabledFn:{type:Function,default:()=>!1},highlightColorFn:{type:[Function,null],default:null},colors:{type:Array,default:()=>["#ebedf0","#c0ddf9","#73b3f3","#3886e1","#17459e"]},visibleWeekDays:{type:Array,default:()=>[1,3,5]},controls:{type:Boolean,default:!0},legend:{type:Boolean,default:!0},fullWidth:{type:Boolean,default:!1},isDark:{type:Boolean,default:!1},disabledColor:{type:String,default:"#bababa"}},data(){return{tooltipVisibility:!1,tooltipPositionX:0,tooltipPositionY:0,tooltipContent:"",hoveredDayDate:"",smallTextRatio:.9,daysOffset:0}},computed:{_startDate(){return this._moment(this.startDate).add({days:this.daysOffset}).format("YYYY-MM-DD")},_endDate(){return this._moment(this.endDate).add({days:this.daysOffset}).format("YYYY-MM-DD")},svgWidth(){const t=this._moment(this._endDate).format("YYYY-MM");return this.fullWidth?"calc(100% - 30px)":this.monthsHorizontalTranslations[t]+this.getMonthWidth(this._endDate)},svgHeight(){return this.monthOffsetTop+this.monthHeight+(this.legend?2*this.dayRectSize:0)},maxCount(){return this.items.reduce((t,e)=>Math.max(e.count,t),0)},itemsMap(){return this.items.reduce((t,e)=>({...t,[e.day]:{...e,count:e.count,label:this.labelFn(e),disabled:e.disabled}}),{})},datesTree(){let t={},e=this._moment(this._startDate);const r=new Date(this._endDate).getTime();for(;e<=r;){const n=e.format("YYYY"),s=e.format("MM"),l=e.format("YYYY-MM-DD");let i={...this.itemsMap[l],date:l,selected:l===this.selectedDate};this.itemsMap[l]||(i={...i,count:0,date:l,disabled:this.isDisabledFn(l)},i={...i,label:this.labelFn(i)}),t={...t,[`${n}-${s}`]:{...t[`${n}-${s}`],[l]:{...i,weekDay:e.day(),weekNumber:this.getWeekOfMonth(e)}}},e.add({days:1})}return t},monthsHorizontalTranslations(){const t=this._moment(this._startDate),e=this._moment(this._startDate).startOf("month"),r=this.dayFullSize*(this.getWeekOfMonth(t)-this.getWeekOfMonth(e)),n=this._moment(this._startDate).startOf("month"),s=this._moment(this._endDate).startOf("month"),l=this._moment(n);let i={},h=-r,a;for(;l<=s;){let o=a?this.getMonthWidth(a):0;const u=l.startOf("month").day()===0;let f=0;u&&l>n&&(f=this.monthGutterSize);let m=this.dayFullSize;h+=o+this.monthGutterSize-m+f,i[l.format("YYYY-MM")]=h,a=l.clone(),l.add({months:1})}return i},dayFullSize(){return this.dayRectSize+this.dayGutterSize},monthOffsetTop(){return this.textSize*2},monthOffsetLeft(){return 2.5*this.textSize},monthHeight(){return this.dayFullSize*7},textStyle(){return{fontSize:`${this.textSize}px`}},legendStyle(){const t=this.dayRectSize/2;return{transform:`translate(${t+this.monthOffsetLeft}px, ${this.monthHeight+this.monthOffsetTop+t}px)`}},legendPrefixTextStyle(){return{fontSize:this.textSize*this.smallTextRatio,transform:`translate(${this.dayGutterSize*2}px, ${this.dayRectSize*this.smallTextRatio}px)`,fill:this.fillTextColor}},legendPrefixTextWidth(){return 4*this.textSize*this.smallTextRatio-2*this.dayGutterSize},legendSuffixTextStyle(){const t=(this.dayRectSize+this.dayGutterSize*2)*this.colors.length+this.legendPrefixTextWidth,e=this.dayGutterSize;return{fontSize:this.textSize*this.smallTextRatio,transform:`translate(${e+t}px, ${this.dayRectSize*this.smallTextRatio}px)`,fill:this.fillTextColor}},fillTextColor(){return this.isDark?"white":"black"}},methods:{_moment(...t){return Se(...t).locale("en")},getWeekOfMonth(t){let e=t.week();return t.year()!==t.weekYear()&&(e=t.clone().subtract(1,"week").week()+1),e-this._moment(t).startOf("month").week()+1},getWeekDayTextStyle(t){return this.visibleWeekDays.includes(t)?{...this.textStyle,transform:`translate(${this.dayRectSize}px, ${t*this.dayFullSize+3*this.textSize/4+this.monthOffsetTop}px)`,fill:this.fillTextColor}:{display:"none"}},getMonthTextStyle(t,e){const r=Se.duration(this._moment(this._endDate).diff(this._moment(e))).asDays(),n=Se.duration(this._moment(e).endOf("month").diff(this._moment(this._startDate))).asDays();if(r<15||n<15)return{display:"none"};const s=this.isStartOfYear(e)?this.textSize:0;return{...this.textStyle,transform:`translate(${this.getMonthWidth(e)/2+this.textSize/3-s}px, -${this.textSize*2/3}px)`,fill:this.fillTextColor}},getMonthStyle(t,e){return{transform:`translate(${this.monthsHorizontalTranslations[e]+this.monthOffsetLeft}px, ${this.monthOffsetTop}px)`}},getMonthWidth(t){const e=this._moment(t).endOf("month");return this.dayFullSize*this.getWeekOfMonth(e)},getHighlightStyle(t,e){if(!this.highlightColorFn||typeof this.highlightColorFn!="function")return{};const r=this.highlightColorFn(e);return r?{strokeWidth:t.selected?2:1,stroke:r}:{}},getDayStyle(t,e){let r={};return t.selected&&(r={stroke:this.fillTextColor}),{transform:`translate(${t.weekNumber*this.dayFullSize}px, ${t.weekDay*this.dayFullSize}px)`,fill:`${this.getDayColor(t.count)}`,...this.getHighlightStyle(t,e),...r}},getDisabledDayPath(t){const e=t.weekNumber*this.dayFullSize,r=t.weekDay*this.dayFullSize,n=e+this.dayRectSize,s=r+this.dayRectSize,l=e+this.dayRectSize/2,i=r+this.dayRectSize/2;return[`M ${e} ${r}`,`L ${l} ${i}`,`L ${e} ${s}`,`M ${n} ${r}`,`L ${l} ${i}`,`L ${n} ${s}`].join(" ")},getDayColor(t){const e=Math.ceil(t/this.maxCount*(this.colors.length-1));return this.colors[e]},getLegendRectStyle(t){return{transform:`translateX(${(this.dayRectSize+this.dayGutterSize*2)*t+this.legendPrefixTextWidth}px)`}},isStartOfYear(t){return Se(t).get("month")===0},getMonthText(t){return this._moment(t).format(this.isStartOfYear(t)?"MMM YYYY":"MMM")},onDayRectMouseEnter(t,e){this.tooltipContent=e.label,this.tooltipVisibility=!0,this.hoveredDayDate=e.date,this.$nextTick(()=>{this.calculateTooltipPosition(t)})},calculateTooltipPosition(t){var u;const e=this.$el.getBoundingClientRect(),r=((u=t.target)==null?void 0:u.getBoundingClientRect())||{x:0,y:0},n=r.left-e.left,s=r.top-e.top,l=r.bottom-e.top,i=this.$refs.tooltip.clientWidth,h=this.$refs.tooltip.clientHeight;let a=n+r.width/2-i/2;a+e.left<e.left?a=0:a+e.left+i>=e.right&&(a=e.width-i);let o=s-h-this.dayFullSize/2;o+e.top<=e.top&&(o=l+this.dayFullSize/2),this.tooltipPositionX=a,this.tooltipPositionY=o},onDayRectMouseLeave(){this.tooltipVisibility=!1,this.hoveredDayDate=""}}};var v3=function(){var e=this,r=e._self._c;return r("div",{staticClass:"e-heatmap-calendar overflow-x-hidden",class:{"e-text-white":e.isDark}},[e.controls?r("div",{staticClass:"e-heatmap-calendar__control-left",on:{click:function(n){e.daysOffset-=30}}},[r("EIcon",{attrs:{icon:"angle-left",size:"xs"}})],1):e._e(),r("svg",{attrs:{width:e.svgWidth,height:e.svgHeight}},[r("g",[r("g",e._l(Array(7),function(n,s){return r("text",{key:s,style:e.getWeekDayTextStyle(s)},[e._v(" "+e._s(e._moment().day(s).format("ddd"))+" ")])}),0),e._l(e.datesTree,function(n,s,l){return r("g",{key:s,staticClass:"e-heatmap-calendar__month",style:e.getMonthStyle(l,s)},[r("text",{style:e.getMonthTextStyle(l,s)},[e._v(" "+e._s(e.getMonthText(s))+" ")]),e._l(n,function(i,h){return r("g",{key:`${h}`,staticClass:"e-heatmap-calendar__day",class:{"e-heatmap-calendar__day--hovered":e.hoveredDayDate===h,"e-heatmap-calendar__day--disabled":i.disabled,"e-heatmap-calendar__day--selected":i.selected}},[r("rect",{style:e.getDayStyle(i,h),attrs:{rx:e.borderRadius,height:e.dayRectSize,width:e.dayRectSize},on:{mouseenter:a=>e.onDayRectMouseEnter(a,i),mouseleave:e.onDayRectMouseLeave,mouseup:function(a){return e.$emit("item-selected",i)}}}),i.disabled?r("path",{style:`stroke: ${e.disabledColor};`,attrs:{d:e.getDisabledDayPath(i)}}):e._e()])})],2)}),e.legend&&!e.$slots.customLegend?r("g",{style:e.legendStyle},[r("text",{style:e.legendPrefixTextStyle},[e._v("less")]),e._l(e.colors,function(n,s){return r("rect",{key:s,style:e.getLegendRectStyle(s),attrs:{height:e.dayRectSize,width:e.dayRectSize,fill:n,rx:e.borderRadius}})}),r("text",{style:e.legendSuffixTextStyle},[e._v("more")])],2):e._e(),r("foreignObject",{attrs:{height:e.svgHeight,width:e.svgWidth,"pointer-events":"none"}},[r("div",{staticClass:"e-heatmap-calendar__custom-legend"},[e._t("customLegend")],2)])],2)]),r("div",{ref:"tooltip",staticClass:"e-heatmap-calendar__tooltip",class:{"e-heatmap-calendar__tooltip--visible":e.tooltipVisibility},style:{top:e.tooltipPositionY+"px",left:e.tooltipPositionX+"px"}},[e._v(" "+e._s(e.tooltipContent)+" ")]),e.controls?r("div",{staticClass:"e-heatmap-calendar__control-right",on:{click:function(n){e.daysOffset+=30}}},[r("EIcon",{attrs:{icon:"angle-right",size:"sm"}})],1):e._e()])},_3=[],y3=Y(g3,v3,_3,!1,null,"9a68e6f6",null,null);const Fi=y3.exports,C3=j.extend({name:"EFlagIcon",props:{code:{type:String,required:!0}},computed:{flagCountryIcon(){var t;return`fi fi-${(t=this.code)==null?void 0:t.toLowerCase()}`}}}),c7="";var b3=function(){var e=this,r=e._self._c;return e._self._setupProxy,e.code?r("span",{class:e.flagCountryIcon}):e._e()},x3=[],w3=Y(C3,b3,x3,!1,null,null,null,null);const Ri=w3.exports,S3=j.extend({name:"EToggleSwitch",model:{prop:"value",event:"switch-value-change"},props:{options:{type:Array,required:!0},color:{type:String,default:"brand"},size:{type:String,default:J.sm},defaultValue:{type:[String,Number,Boolean],default:null},value:{type:[String,Number,Boolean],default:null}},computed:{sizeClasses(){return{container:{"e-p-1 e-leading-3":this.size===J.sm,"e-p-1.5":this.size===J.md,"e-p-2":this.size===J.lg},button:{"e-py-[.2rem] e-p-1 e-rounded-md":this.size===J.sm,"e-p-1":this.size===J.md,"e-p-1.5":this.size===J.lg},text:{"e-text-xs":this.size===J.sm,"e-text-sm":this.size===J.md,"e-text-base":this.size===J.lg}}},containerClasses(){return{...this.sizeClasses.container,"e-flex e-items-center e-justify-center e-w-fit e-h-min e-bg-gray-900 e-rounded-md e-e-shadow-md e-transition-colors e-duration-200 e-ease-in-out":!0}},textClasses(){return{...this.sizeClasses.text,"e-font-medium":!0}},buttonBaseClasses(){return{"e-cursor-pointer":!0,"e-text-gray-100 e-rounded-md e-shadow e-transition e-duration-200 e-ease-in-out":!0}}},methods:{onValueChange(t){const e=t.target;this.$emit("switch-value-change",e.checked)},getButtonClasses(t){const e={"e-border-none":!0,"e-bg-inherit":this.value!==t,"e-bg-brand-600":this.color==="brand"&&this.value===t,"e-bg-gray-600":!["primary","brand"].includes(this.color)&&this.value===t,"e-bg-[#629efc] e-text-gray-900 e-font-normal":this.color==="primary"&&this.value===t};return{...this.buttonBaseClasses,...this.sizeClasses.button,...e}},handleClick(t){this.$emit("switch-value-change",t)}}});var T3=function(){var e=this,r=e._self._c;return r("div",{class:e.containerClasses},[r("input",{staticClass:"e-hidden",attrs:{id:"toggle",type:"checkbox"},on:{change:e.onValueChange}}),e._l(e.options,function(n){return r("button",{key:n.value,class:e.getButtonClasses(n.value),on:{click:function(s){return e.handleClick(n.value)}}},[r("span",{class:e.textClasses},[e._v(e._s(n.title))])])})],2)},k3=[],M3=Y(S3,T3,k3,!1,null,null,null,null);const Hi=M3.exports,Ni=j.extend({mixins:[Ve,Ge],data(){return{inactivityListeners:[],isInactivityListenerActive:!1}},beforeDestroy(){this.$removeInactivityListeners()},methods:{resetInactivityListenerTimer(t=()=>{},e=0,r=[]){this.isInactivityListenerActive&&(this.$clearTimeouts(),this.setInactivityListenerTimer(t,e,r))},setInactivityListenerTimer(t=()=>{},e=0,r=[]){t&&e&&this.$setTimeout(()=>{t(),r.length>0&&this.setInactivityListenerReminderTimers(t,r)},e*1e3)},setInactivityListenerReminderTimers(t=()=>{},e=[],r=0){const n=e[r];r<e.length?this.$setTimeout(()=>{t(),this.setInactivityListenerReminderTimers(t,e,r+1)},n*1e3):this.isInactivityListenerActive&&this.$removeInactivityListeners()},$registerInactivityListener({callback:t=()=>{},duration:e=0,reminders:r=[]}){this.isInactivityListenerActive=!0,this.resetInactivityListenerTimer(t,e,r);const n=()=>this.resetInactivityListenerTimer(t,e,r);this.$addEventListener("mousemove",n),this.inactivityListeners.push(n)},$removeInactivityListeners(){this.isInactivityListenerActive&&(this.isInactivityListenerActive=!1,this.inactivityListeners.forEach(t=>{this.$removeEventListener("mousemove",t)}),this.$clearTimeouts())}}}),Wi=Object.freeze(Object.defineProperty({__proto__:null,eventListeners:Ve,inactivityListener:Ni,timeouts:Ge},Symbol.toStringTag,{value:"Module"})),E3=j.extend({name:"EGlobalSearch",components:{EIcon:rt},mixins:[Ve],props:{dark:{type:Boolean,default:!1},items:{type:Array,default:()=>[]},timezone:{type:String,default:"Europe/Dublin"},convertedDateFormat:{type:String,default:"YYYY-MM-DDTHH:mm:ss"},currentDateFormat:{type:String,default:"YYYY-MM-DDTHH:mm:ssZ"},isFixedPosition:{type:Boolean,default:!0},isHidden:{type:Boolean,default:!0},deep:{type:Boolean,default:!0}},data(){return{search:"",isSearching:!1}},computed:{inputClasses(){return{"e-bg-gray-900 e-text-white e-ring-gray-700 focus:e-ring-2 focus:e-ring-blue-500 e-placeholder-gray-500":this.dark,"e-bg-white e-text-[#000057] e-ring-gray-300 hover:e-ring-gray-100 focus:e-ring-blue-500 e-placeholder-gray-400":!this.dark}}},watch:{search(t){t?t.length>=3&&this.$emit("search-results",this.searchObjectsByQuery(this.items,t)):this.$emit("reset")}},mounted(){!this.isHidden&&this.search.length>0?this.isSearching=!0:(this.$addEventListener("keydown",this.onKeyHandler),this.$addEventListener("keyup",this.onKeyHandler))},methods:{onInput(t){this.search=t.target.value},searchObjectsByQuery(t,e){return t.reduce((r,n,s)=>{const l=this.findMatchesInObject(n,e,[]);return l.length>0&&r.push({index:s,matches:l}),r},[])},findMatchesInObject(t,e,r){return Object.entries(t).reduce((n,[s,l])=>{const i=[...r,s],h=this.matchesQuery(l,e)?[{path:i,value:l}]:[];let a=[];this.deep&&Array.isArray(l)&&(a=l.flatMap((u,f)=>this.findMatchesInObject(u,e,[...i,`${f}`])));const o=this.deep&&typeof l=="object"&&l!==null?this.findMatchesInObject(l,e,i):[];return[...n,...h,...a,...o]},[])},matchesQuery(t,e){return`${this.isValidDate(t)?this.formattedTimestamp(t):t}`.toLowerCase().indexOf(e.toLowerCase())!==-1},isValidDate(t){return Se(t,this.currentDateFormat,!0).isValid()},formattedTimestamp(t){return Se.tz(t,this.timezone).format(this.convertedDateFormat)},onKeyHandler(t){const e=t,r=e.ctrlKey&&e.type==="keydown",n=e.shiftKey&&e.type==="keydown",s=["f","F"].includes(e.key)&&e.type==="keydown",l=e.key==="Escape"&&e.type==="keydown";s&&r&&n&&(this.isSearching=!0,this.$nextTick(()=>{const i=this.$refs.searchField;i&&i.focus()})),l&&(this.isSearching=!1,this.search="")}}}),u7="";var $3=function(){var e=this,r=e._self._c;return r("div",{directives:[{name:"show",rawName:"v-show",value:!e.isFixedPosition||e.isSearching,expression:"!isFixedPosition || isSearching"}],staticClass:"global-search e-relative",class:{"global-search--fixed e-p-4 e-bg-white e-m-3":e.isFixedPosition}},[r("div",{staticClass:"e-relative"},[r("input",e._g({directives:[{name:"model",rawName:"v-model",value:e.search,expression:"search"}],ref:"searchField",class:["global-search__field e-shadow-sm e-ring-1 e-ring-inset e-relative e-block e-w-full e-h-full disabled:e-cursor-not-allowed disabled:e-opacity-75 focus:e-outline-none e-border-0 e-text-sm e-placeholder-gray-400 e-px-4 e-py-3 e-gap-x-1.5 e-rounded-md",e.inputClasses],attrs:{id:"global-search-input",placeholder:"Search",autocomplete:"off",type:"text"},domProps:{value:e.search},on:{input:function(n){n.target.composing||(e.search=n.target.value)}}},e.$listeners)),r("span",{staticClass:"e-absolute e-inset-y-0 e-end-0 e-flex e-items-center e-justify-center e-pointer-events-none e-px-2.5"},[r("EIcon",{attrs:{icon:"search",size:"sm"}})],1)])])},L3=[],D3=Y(E3,$3,L3,!1,null,null,null,null);const ji=D3.exports,P3=j.extend({name:"ETooltip",props:{text:{type:String,required:!0},position:{type:String,default:Oe.top},color:{type:String,default:ae.default},dark:{type:Boolean,default:!1}},computed:{tooltipClasses(){const t=this.position,e=this.color,r={"e-bg-gray-800 e-text-white":!this.dark,"e-bg-slate-300 e-text-slate-800":this.dark};return{"tooltip e-w-max e-text-sm e-text-center e-px-3 e-py-2 e-absolute e-rounded-md e-shadow-md e-opacity-0 group-hover:e-opacity-100 e-transition-opacity e-duration-300":!0,"tooltip-left":t===Oe.left,"tooltip-right":t===Oe.right,"tooltip-top":t===Oe.top,"tooltip-bottom":t===Oe.bottom,"e-bg-orange-700 e-text-white":e===ae.warning,"e-bg-red-700 e-text-white":e===ae.error,"e-bg-green-900 e-text-white":e===ae.success,"e-bg-blue-700 e-text-white":e===ae.primary,"e-bg-sky-500 e-text-white":e===ae.info,"e-bg-brand-900 e-text-white":e===ae.brand,"e-bg-gray-200 e-text-gray-700":e===ae.gray,...r}},triangleClasses(){const t=this.position,e=this.color;return{"triangle e-absolute e-border-transparent":!0,"triangle-left":t===Oe.left,"triangle-right":t===Oe.right,"triangle-top":t===Oe.top,"triangle-bottom":t===Oe.bottom,"e-border-b-gray-800":e===ae.default,"e-border-b-orange-700":e===ae.warning,"e-border-b-red-700":e===ae.error,"e-border-b-green-900":e===ae.success,"e-border-b-blue-700":e===ae.primary,"e-border-b-sky-500":e===ae.info,"e-border-b-brand-900":e===ae.brand,"e-border-b-gray-900":e===ae.gray}}}}),d7="";var O3=function(){var e=this,r=e._self._c;return r("div",{staticClass:"tooltip-box e-w-max e-relative e-group"},[e._t("default"),r("div",{class:e.tooltipClasses},[r("span",{class:e.triangleClasses}),e._v(" "+e._s(e.text)+" ")])],2)},z3=[],B3=Y(P3,O3,z3,!1,null,"27d33b1f",null,null);const Vr=B3.exports,I3=j.extend({name:"EActionButton",components:{ETooltip:Vr,EIcon:rt},props:{tooltipText:{type:String,default:null},tooltipColor:{type:String,default:"default"},tooltipPosition:{type:String,default:"top"},buttonClasses:{type:[String,Object,Array],default:null},icon:{type:String,default:null},iconSize:{type:String,default:J.sm},iconColor:{type:String,default:ae.default},dark:{type:Boolean,default:!0}},computed:{withTooltip(){return!!this.tooltipText},buttonClassesContainsBg(){return this.buttonClasses?typeof this.buttonClasses=="string"&&this.buttonClasses.split("e-bg-").length>1||typeof this.buttonClasses=="object"&&Object.keys(this.buttonClasses).some(t=>t.split("e-bg-").length>1):!1},buttonStyle(){const t=this.dark?"e-bg-gray-900 e-text-white hover:e-bg-gray-700":"e-bg-white text-e-text-gray-900 hover:e-bg-gray-100";return this.buttonClassesContainsBg?this.buttonClasses:[this.buttonClasses,t]}}});var A3=function(){var e=this,r=e._self._c;return e.withTooltip?r("ETooltip",{attrs:{text:e.tooltipText,position:e.tooltipPosition,color:e.tooltipColor,dark:e.dark}},[r("button",e._g(e._b({staticClass:"e-w-max e-px-3 e-py-2 e-flex e-border-none e-justify-center e-align-middle e-items-center e-cursor-pointer",class:e.buttonStyle},"button",e.$attrs,!1),e.$listeners),[r("EIcon",{attrs:{icon:e.icon,size:e.iconSize,color:e.iconColor}}),e._t("default")],2)]):r("button",e._g(e._b({staticClass:"e-w-max e-px-3 e-py-2 e-flex e-border-none e-justify-center e-align-middle e-items-center e-cursor-pointer",class:e.buttonStyle},"button",e.$attrs,!1),e.$listeners),[r("EIcon",{attrs:{icon:e.icon,size:e.iconSize}}),e._t("default")],2)},F3=[],R3=Y(I3,A3,F3,!1,null,null,null,null);const vt=R3.exports,H3=j.extend({name:"EZoomSlider",components:{EActionButton:vt},props:{dark:{type:Boolean,default:!0}}});var N3=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("div",{staticClass:"e-flex e-flex-col e-p-5"},[r("EActionButton",{attrs:{"tooltip-text":"Zoom in","tooltip-position":"right",icon:"fas fa-plus",dark:e.dark,"icon-size":"base","button-classes":"action-btn__first-vertical e-border-none e-rounded-none e-rounded-t-md e-shadow-xl","data-test-id":"zoomable-img-zoom-in"},on:{click:function(n){return e.$emit("zoom-in")}}}),r("EActionButton",{attrs:{"tooltip-text":"Zoom out","tooltip-position":"right",icon:"fas fa-minus",dark:e.dark,"icon-size":"base","button-classes":"action-btn__last-vertical e-border-none e-rounded-none e-rounded-b-md","data-test-id":"zoomable-img-zoom-out"},on:{click:function(n){return e.$emit("zoom-out")}}})],1)},W3=[],j3=Y(H3,N3,W3,!1,null,null,null,null);const Kr=j3.exports,G3=j.extend({name:"EFadeTransition",props:{duration:{type:Number,default:300}},computed:{durationClass(){return{100:"e-duration-100",200:"e-duration-200",300:"e-duration-300",400:"e-duration-400",500:"e-duration-500",600:"e-duration-600",700:"e-duration-700",800:"e-duration-800",900:"e-duration-900",1e3:"e-duration-1000"}[this.duration]}}});var q3=function(){var e=this,r=e._self._c;return r("transition",{attrs:{"enter-active-class":`e-transition e-ease-out ${e.durationClass}`,"leave-active-class":`e-transition e-ease-in ${e.durationClass}`,"enter-class":"e-opacity-0","enter-to-class":"e-opacity-100","leave-class":"e-opacity-100","leave-to-class":"e-opacity-0"}},[e._t("default")],2)},Z3=[],U3=Y(G3,q3,Z3,!1,null,null,null,null);const Jr=U3.exports,Y3=j.extend({name:"EZoomableImg",components:{EZoomSlider:Kr,EFadeTransition:Jr},directives:{ResizeObserver:Qe},mixins:[Ge,Ve],props:{src:{type:String,default:""},alt:{type:String,default:""},allowZoom:{type:Boolean,default:!0},imgProps:{type:Object,default:()=>({})},slider:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},hideContentOnBlur:{type:Boolean,default:!0},initialParams:{type:Object,default:()=>({})},embedded:{type:Boolean,default:!1},overlayStyle:{type:Object,default:()=>({})},foregroundStyle:{type:Object,default:()=>({})},pan:{type:Boolean,default:!0},slotTransition:{type:Boolean,default:!0},height:{type:[String,Number],default:void 0},isCalendarActive:{type:Boolean,default:!1},blurBackground:{type:Boolean,default:!1},cover:{type:Boolean,default:!1},isWidget:{type:Boolean,default:!1},isAnnotationActive:{type:Boolean,default:!1},isMobile:{type:Boolean,default:!1},placeholderImage:{type:String,default:""},showMiniature:{type:Boolean,default:!1},miniatureWidth:{type:Number,default:150}},data(){const t={x:0,y:0};return{image:null,frame:null,imageLoaded:!1,zoomLevel:1,previousZoomLevel:1,imageMouse:t,zoomOrigin:t,frameMouse:t,frameMousePanStart:t,frameMousePreviousPan:t,translation:t,isPanning:!1,isPinching:!1,zoomStarted:!1,firstLoad:!0,isSliderActive:!1,imgStyle:{},contentStyle:{},isFocused:!0,forceHideContent:!1,imageAspectRatio:1,frameAspectRatio:1,wrapperExtraStyle:{},preventDefaultScroll:!0,mouseLeft:!1,pointers:{},pinchDistance:0,lastTapTime:0,minZoomLevel:1,maxZoomLevel:20,backgroundSnapshotSrc:null,miniatureOverlayStyle:{}}},computed:{frameStyle(){return this.height?{height:`${this.height}px`}:{}},wrapperStyle(){if(!this.imageLoaded)return{display:"none"};let t,e;return this.isPanning&&!this.isAnnotationActive?(t=this.frameMouse.x-this.frameMousePanStart.x+this.frameMousePreviousPan.x,e=this.frameMouse.y-this.frameMousePanStart.y+this.frameMousePreviousPan.y):(t=this.frameMousePreviousPan.x,e=this.frameMousePreviousPan.y),{transform:Math.abs(t)<.5&&Math.abs(e)<.5?"none":`translate(${t}px,${e}px)`}},imageCenter(){var e;const t=(e=this.image)==null?void 0:e.getBoundingClientRect();return{x:((t==null?void 0:t.width)||0)/2,y:((t==null?void 0:t.height)||0)/2}},sliderModel:{get(){return this.zoomLevel*100},set(t){this.previousZoomLevel=this.zoomLevel,this.zoomLevel=t/100,this.updateImageStyle(),this.savePreviousPan()}},showContent(){return this.hideContentOnBlur?this.forceHideContent?!1:this.isFocused&&this.touches<2:!0},miniatureContainerStyle(){if(!this.image)return{};const t=this.image.naturalWidth/this.image.naturalHeight,e=this.miniatureWidth/t;return{width:`${this.miniatureWidth}px`,height:`${e}px`}},miniatureOverlayComputedStyle(){return{...this.miniatureOverlayStyle,...this.miniatureOverlayBaseStyle}},miniatureOverlayBaseStyle(){return{boxShadow:`0 0 0 ${this.miniatureWidth}px #0006`}},currentState(){var t,e;return{image:this.image,zoomLevel:this.zoomLevel,translation:this.translation,previousZoomLevel:this.previousZoomLevel,imageMouse:this.imageMouse,zoomOrigin:this.zoomOrigin,frameMouse:this.frameMouse,frameMousePanStart:this.frameMousePanStart,frameMousePreviousPan:this.frameMousePreviousPan,isPanning:this.isPanning,zoomStarted:this.zoomStarted,firstLoad:this.firstLoad,isSliderActive:this.isSliderActive,imgStyle:this.imgStyle,contentStyle:this.contentStyle,isFocused:this.isFocused,forceHideContent:this.forceHideContent,imageAspectRatio:this.imageAspectRatio,frameAspectRatio:this.frameAspectRatio,wrapperExtraStyle:this.wrapperExtraStyle,offsetWidth:(t=this.image)==null?void 0:t.offsetWidth,offsetHeight:(e=this.image)==null?void 0:e.offsetHeight}}},watch:{isCalendarActive(){this.$setTimeout(this.onResize,100)},initialParams:{immediate:!0,handler(t){if(typeof t=="object")for(let e in t)this[e]=t[e]}},image:{immediate:!0,deep:!0,handler(){var t;(t=this.image)!=null&&t.offsetWidth&&this.emitChange()}},wrapperStyle(){this.$nextTick(this.updateMiniatureOverlayStyle)},imageStyle(){this.$nextTick(this.updateMiniatureOverlayStyle)}},mounted(){this.$addEventListener("orientationchange",this.handleOrientationChange),this.$root.$on("resize-snapshot-player",()=>{this.$setTimeout(this.setAspectRatio,200)})},methods:{onResize(){this.updateContentStyle(),this.$setTimeout(this.setAspectRatio,500)},handleOrientationChange(){this.$setTimeout(this.setAspectRatio,1e3)},setAspectRatio(){var r,n;this.frame=this.$refs.frame,this.image=this.$refs.image;const t=(r=this.frame)==null?void 0:r.getBoundingClientRect(),e=(n=this.image)==null?void 0:n.getBoundingClientRect();if(this.$setTimeout(this.emitChange,50),!t||this.isMobile&&!this.isWidget&&(!e||(e==null?void 0:e.width)<=1||(e==null?void 0:e.height)<=1)){this.$setTimeout(this.setAspectRatio,50);return}this.frameAspectRatio=t.width/t.height,this.imageAspectRatio=e.width/e.height},updateImageStyle(){this.translation={x:this.zoomOrigin.x*(this.zoomLevel-this.previousZoomLevel)+this.translation.x,y:this.zoomOrigin.y*(this.zoomLevel-this.previousZoomLevel)+this.translation.y},this.imgStyle={...this.imgStyle,transform:`translate(${-this.translation.x}px, ${-this.translation.y}px) scale(${this.zoomLevel})`},this.emitChange()},updateMiniatureOverlayStyle(){if(!this.showMiniature||!this.image||!this.frame||!this.$refs.miniatureImage||this.zoomLevel===1){this.miniatureOverlayStyle={};return}const t=this.image.getBoundingClientRect(),e=this.frame.getBoundingClientRect(),r=(e.left-t.left)/t.width*100,n=(e.top-t.top)/t.height*100,s=e.width/t.width*100,l=e.height/t.height*100;this.miniatureOverlayStyle={left:`${r}%`,top:`${n}%`,width:`${s}%`,height:`${l}%`}},onImageLoaded(t){var n,s;if(this.imageLoaded=!0,this.wrapperExtraStyle={...this.wrapperExtraStyle,alignContent:"flex-start !important"},this.$setTimeout(()=>{this.wrapperExtraStyle={justifyContent:"center",alignContent:"center !important"}}),this.blurBackground&&(this.backgroundSnapshotSrc=this.getSnapshotSrc()),!this.firstLoad)return;this.updateContentStyle(),this.imageMouse=this.imageCenter,this.zoomOrigin=this.imageCenter;const e=(n=this.image)==null?void 0:n.getBoundingClientRect(),r=(s=this.frame)==null?void 0:s.getBoundingClientRect();!e||!r||(this.isMobile&&!this.isWidget?this.setAspectRatio():this.$nextTick(()=>{this.setAspectRatio(),this.firstLoad=!1}),this.updateImageStyle(),this.$emit("load",t))},onError(t){this.$emit("error",t)},onMouseEnter(){this.mouseLeft=!1,this.isFocused=!0},onMouseLeave(){this.isSliderActive||(this.isFocused=!1),this.mouseLeft=!0;const t={which:1,preventDefault:()=>{}};this.onMouseUp(t)},onMouseMove(t){var e;if(!(this.disabled||!this.imageLoaded||this.mouseLeft)&&this.frame){const r=this.frame.getBoundingClientRect(),n=(e=this.image)==null?void 0:e.getBoundingClientRect();this.frameMouse={x:(t==null?void 0:t.clientX)-r.left,y:(t==null?void 0:t.clientY)-r.top},this.imageMouse={x:((t==null?void 0:t.clientX)-(n==null?void 0:n.left))/this.zoomLevel,y:((t==null?void 0:t.clientY)-(n==null?void 0:n.top))/this.zoomLevel},this.zoomStarted&&(this.zoomStarted=!1),this.$nextTick(this.emitChange)}},onMousedown(t){if(!(!this.pan||this.disabled||!this.imageLoaded||(t==null?void 0:t.which)!==1||this.isSliderActive)){if(this.isAnnotationActive){this.frameMousePanStart={x:this.frameMouse.x,y:this.frameMouse.y},this.isPanning=!0,this.$nextTick(this.emitChange);return}t.preventDefault(),this.frameMousePanStart=this.frameMouse,this.isPanning=!0}},onMouseUp(t){if(!(!this.pan||this.disabled||!this.imageLoaded||!this.isPanning||(t==null?void 0:t.which)!==1||this.isSliderActive)){if(this.isAnnotationActive){this.isPanning=!1,this.$nextTick(this.emitChange);return}t.preventDefault(),this.savePreviousPan({x:this.frameMousePreviousPan.x+this.frameMouse.x-this.frameMousePanStart.x,y:this.frameMousePreviousPan.y+this.frameMouse.y-this.frameMousePanStart.y}),this.isPanning=!1,this.isPinching=!1,this.$nextTick(this.emitChange)}},onMouseWheel(t){this.disabled||!this.imageLoaded||!this.allowZoom||(this.zoom(t.deltaY),this.preventDefaultScroll&&t.preventDefault())},updateZoomLevel(t){let e=1;this.isMobile?e=this.zoomLevel*t:t<0?e=this.zoomLevel*1.2:this.zoomLevel>=1.25&&(e=this.zoomLevel*.8),e<this.minZoomLevel?this.zoomLevel=this.minZoomLevel:e>this.maxZoomLevel?this.zoomLevel=this.maxZoomLevel:this.zoomLevel=e},zoom(t){this.isPanning=!1,this.previousZoomLevel=this.zoomLevel,this.updateZoomLevel(t),this.preventDefaultScroll=this.previousZoomLevel!==this.zoomLevel,this.zoomStarted||(this.zoomOrigin=this.imageMouse,this.zoomStarted=!0),this.updateImageStyle(),this.$nextTick(()=>{this.savePreviousPan(),this.emitChange()})},getBounds(){var a,o;const t=(a=this.frame)==null?void 0:a.getBoundingClientRect(),e=(o=this.image)==null?void 0:o.getBoundingClientRect(),r=t.width/this.imageAspectRatio,n=t.height*this.imageAspectRatio;let{top:s,right:l,bottom:i,left:h}=t;return e.width<t.width?(h=t.left+(t.width-n)/2,l=h+n):e.height<t.height&&(s=t.top+(t.height-r)/2,i=s+r),{top:s,right:l,bottom:i,left:h}},savePreviousPan({x:t,y:e}={}){var r;if(this.image){const n=(r=this.image)==null?void 0:r.getBoundingClientRect(),s=this.getBounds(),[l,i,h,a]=[n.right-s.right,s.top-n.top,n.bottom-s.bottom,s.left-n.left].map(o=>o<0?o:0);this.frameMousePreviousPan={x:(t||this.frameMousePreviousPan.x)+a-l,y:(e||this.frameMousePreviousPan.y)+i-h}}},onSliderMouseDown(){var r,n;const t=(r=this.frame)==null?void 0:r.getBoundingClientRect(),e=(n=this.image)==null?void 0:n.getBoundingClientRect();this.zoomOrigin={x:((t==null?void 0:t.left)+(t==null?void 0:t.width)/2-(e==null?void 0:e.left))/this.zoomLevel,y:((t==null?void 0:t.top)+(t==null?void 0:t.height)/2-(e==null?void 0:e.top))/this.zoomLevel},this.isSliderActive=!0},onSliderMouseUp(){this.isSliderActive=!1},updateContentStyle(){var t,e,r;this.contentStyle={maxWidth:`${window.innerWidth-(((r=(e=(t=this.$refs)==null?void 0:t.frame)==null?void 0:e.getBoundingClientRect())==null?void 0:r.left)||0)}px`}},emitChange(){this.$emit("change",this.currentState)},getPointersMidPoint(t,e){return{x:t.clientX+(e.clientX-t.clientX)/2,y:t.clientY+(e.clientY-t.clientY)/2}},getPointersDistance(t,e){return Math.hypot(e.clientX-t.clientX,e.clientY-t.clientY)},updatePointerEvent(t){this.pointers[t.pointerId]=t},clearPointerEvent(t){this.$delete(this.pointers,t.pointerId)},updatePinchZoomOrigin(){const t=Object.values(this.pointers);if(t.length!==2)return;const e=this.getPointersMidPoint(...t);this.zoomOrigin={x:e.x/this.zoomLevel,y:e.y/this.zoomLevel}},updatePinchDistance(){const t=Object.values(this.pointers);t.length===2&&(this.pinchDistance=this.getPointersDistance(...t))},onPointerDown(t){if(!(!this.isMobile||this.foregroundStyle.zIndex==2)){if(this.updatePointerEvent(t),this.isPinching=Object.values(this.pointers).length===2,this.isPinching){this.isPanning=!1,this.updatePinchZoomOrigin(),this.updatePinchDistance();return}this.onMouseMove(t),this.onMousedown(t)}},onPointerMove(t){if(!(!this.isMobile||this.foregroundStyle.zIndex==2)){if(this.updatePointerEvent(t),this.isPinching){const e=this.pinchDistance;this.updatePinchDistance();const r=this.pinchDistance/e;r%1>.008&&this.zoom(r);return}this.onMouseMove(t)}},onPointerUp(t){if(!this.isMobile||this.foregroundStyle.zIndex==2)return;this.clearPointerEvent(t),this.onMouseUp(t);const e=new Date().getTime(),r=e-this.lastTapTime;r>100&&r<200&&this.zoom(this.zoomLevel>1?0:3),this.lastTapTime=e},getSnapshotSrc(){const t=this.$refs.image;return t==null?void 0:t.src}}}),h7="";var X3=function(){var n;var e=this,r=e._self._c;return r("div",e._b({directives:[{name:"resize-observer",rawName:"v-resize-observer",value:e.onResize,expression:"onResize"}],ref:"frame",staticClass:"zoomable-img e-flex e-justify-center e-items-center e-relative",class:{"zoomable-img--loading":!e.imageLoaded,"zoomable-img--zoomed":e.zoomLevel>1,"zoomable-img--panning":e.isPanning,"zoomable-img--disabled":e.disabled,"zoomable-img--portrait-frame":e.frameAspectRatio<e.imageAspectRatio,"zoomable-img--landscape-frame":e.frameAspectRatio>=e.imageAspectRatio,"zoomable-img--embedded":e.embedded,"zoomable-img--cover":e.cover},style:e.frameStyle,attrs:{"data-test-id":"zoomable-img-frame"},on:{wheel:e.onMouseWheel,mouseup:e.onMouseUp,mousedown:e.onMousedown,mousemove:e.onMouseMove,mouseenter:e.onMouseEnter,mouseleave:e.onMouseLeave,pointerdown:e.onPointerDown,pointermove:e.onPointerMove,pointerup:e.onPointerUp,pointercancel:e.onPointerUp,pointerout:e.onPointerUp,pointerleave:e.onPointerUp}},"div",e.$attrs,!1),[r("div",{staticClass:"zoomable-img__wrapper e-flex e-justify-center e-items-center",style:{...e.wrapperStyle,...e.wrapperExtraStyle},attrs:{"data-test-id":"zoomable-img-wrapper"}},[e.blurBackground&&e.imageLoaded&&e.backgroundSnapshotSrc?r("img",{class:e.isMobile?"zoomable-img__img-background-mobile":"zoomable-img__img-background",attrs:{src:e.backgroundSnapshotSrc,alt:e.alt}}):e._e(),r("img",e._g(e._b({directives:[{name:"show",rawName:"v-show",value:e.imageLoaded||!!e.placeholderImage,expression:"imageLoaded || !!placeholderImage"}],ref:"image",staticClass:"zoomable-img__img e-absolute",style:e.imgStyle,attrs:{src:(n=e.src)!=null?n:e.placeholderImage,alt:e.alt,crossorigin:"anonymous","data-test-id":"zoomable-img-image"},on:{load:e.onImageLoaded,error:e.onError}},"img",e.$props.imgProps,!1),e.$listeners))]),r("div",{staticClass:"zoomable-img__wrapper zoomable-img__wrapper--overlay e-flex e-justify-center e-items-center",style:{...e.wrapperStyle,...e.wrapperExtraStyle,...e.overlayStyle}},[r("div",{staticClass:"zoomable-img__img e-relative",style:{width:`${e.image?e.image.offsetWidth:0}px`,height:`${e.image?e.image.offsetHeight:0}px`,...e.imgStyle}},[e._t("imageOverlay",null,{state:e.currentState})],2)]),r("div",{ref:"foreground",staticClass:"zoomable-img__content e-flex e-justify-center e-items-center e-p-0",class:{"e-h-full":!e.embedded,"e-w-full":!e.embedded},style:{...e.contentStyle,...e.foregroundStyle},attrs:{id:"img-foreground","data-test-id":"zoomable-img-foreground"}},[e.imageLoaded?e._e():e._t("placeholder",null,{dataTestId:"zoomable-img-placeholder"}),e.showContent&&e.slotTransition?r("EFadeTransition",[e.showContent?e._t("default",null,{dataTestId:"zoomable-img-content"}):e._e()],2):e.showContent?e._t("default",null,{dataTestId:"zoomable-img-content"}):e._e(),r("EFadeTransition",[e.showContent&&e.slider&&e.allowZoom?r("div",{staticClass:"zoomable-img__slider-container",attrs:{"data-test-id":"zoomable-img-zoom-slider"}},[e._t("extraWidgets"),r("EZoomSlider",{attrs:{vertical:""},on:{mouseup:e.onSliderMouseUp,mousedown:e.onSliderMouseDown,"zoom-in":function(s){return e.zoom(-1)},"zoom-out":function(s){return e.zoom(1)}},model:{value:e.sliderModel,callback:function(s){e.sliderModel=s},expression:"sliderModel"}})],2):e._e()]),r("EFadeTransition",[e.showMiniature&&e.imageLoaded&&e.zoomLevel>1?r("div",{staticClass:"zoomable-img__miniature-container e-shadow",style:e.miniatureContainerStyle},[r("img",{ref:"miniatureImage",staticClass:"zoomable-img__miniature",attrs:{src:e.src,alt:e.alt}}),r("div",{staticClass:"zoomable-img__miniature-overlay",style:e.miniatureOverlayComputedStyle})]):e._e()])],2)])},Q3=[],V3=Y(Y3,X3,Q3,!1,null,null,null,null);const en=V3.exports,K3=j.extend({name:"EImagePlayer",components:{EZoomableImg:en},directives:{ResizeObserver:Qe},mixins:[Ge,Ve],model:{prop:"frameIndex",event:"frame-index-change"},props:{frames:{type:Array,required:!0},timePerFrame:{type:Number,default:500},isPlaying:{type:Boolean,default:!1},frameIndex:{type:Number,default:0},height:{type:[String,Number],default:0},initialQuality:{type:[String,Number],default:"auto"},preload:{type:Boolean,default:!0},preloadSize:{type:Number,default:10},resetIndexOnFramesChange:{type:Boolean,default:!1},preloadWhilePlaying:{type:Boolean,default:!0},withControls:{type:Boolean,default:!0},playOnClick:{type:Boolean,default:!0},disablePlayPauseAnimation:{type:Boolean,default:!1},disablePlayButton:{type:Boolean,default:!1},isLive:{type:Boolean,default:!1},selectedSnapshotQuality:{type:[String,Number],default:"auto"},placeholderImage:{type:String,default:""},isMobile:{type:Boolean,default:!1},isZoomable:{type:Boolean,default:!0},isAnnotationActive:{type:Boolean,default:!1},aspectRatio:{type:Number,default:null}},data(){return{src:this.placeholderImage,imageLoaded:!1,playing:!1,playerStyle:{},image:null,previousSrc:"",resolveImageLoadingPromise:()=>({}),preloadingQueueId:0,preloadedFrames:[],preloadingFramesImgs:[],frameError:!1,animationId:-1,imgStyle:{},previousFrameIndex:0,isFullscreen:!1,mouseDownTime:0,playPauseAnimation:!1,latestValidSnapshotTimestamp:"",progressBar:null,isDraggingCursor:!1,hovered:!1,timePerFrameValue:this.timePerFrame,mousePosition:{x:0,y:0},screenHeight:screen.height}},computed:{imgProps(){return{id:"zoomable-img__img",ref:"image",crossorigin:"anonymous",class:"zoomable-img__img e-absolute e-w-full e-h-full e-object-contain e-z-10 d-block",dataTestId:"zoomable-img-image"}},playerDimensions(){return{width:"100%",height:this.height}},isLastFrame(){return this.frameIndex===this.frames.length-1},altText(){var t,e;return`${((t=this.frames[this.frameIndex])==null?void 0:t.label)||""} ${((e=this.frames[this.frameIndex])==null?void 0:e.timestamp)||""}`},playedPercentage(){return this.isLastFrame?100:Math.abs(this.frameIndex/this.frames.length*100)},mouseToWidthRatio(){var t,e,r;return this.mousePosition.x/((r=(e=(t=this.progressBar)==null?void 0:t.getBoundingClientRect())==null?void 0:e.width)!=null?r:1)},hoverBarStyle(){return{width:`${100*this.mouseToWidthRatio}%`}},hoveredFrameIndex(){return Math.round(this.mouseToWidthRatio*(this.frames.length-1))},progressStyle(){return{width:`${100*((this.isDraggingCursor?this.hoveredFrameIndex:this.frameIndex)/(this.frames.length-1))}%`}},preloadedChunks(){const t=[...this.preloadedFrames];return t.sort((e,r)=>e>r?1:-1),t.reduce((e,r)=>{if(!e.length)return[[r,r]];const[n,s]=e.slice(-1)[0]||[0,0];return r-s>1?[...e,[r,r]]:[...e.slice(0,-1),[n,r]]},[])}},watch:{frames:{handler(){var t;this.src=((t=this.frames[this.frameIndex])==null?void 0:t.src)||"",this.resetIndexOnFramesChange&&this.$emit("frame-index-change",0),this.imageLoaded=!0,this.preloadedFrames=[],this.flushPreloadingQueue(),this.$setTimeout(async()=>{this.updateRefs(),await this.loadTargetFrame(),this.handleBuffering()})},immediate:!0,deep:!0},isLastFrame(t){t&&this.$emit("frames-ended")},timePerFrame:{immediate:!0,handler(t){this.timePerFrameValue=t}},frameIndex:{immediate:!0,async handler(){this.frameIndex!==this.previousFrameIndex&&(Number.isNaN(this.frameIndex)&&this.$emit("frame-index-change",0),this.frameIndex===0&&(this.previousFrameIndex=this.frameIndex),this.isLastFrame&&!this.isLive&&(this.playing=!1),this.playing||(this.cancelDelay(),await this.loadTargetFrame(),this.handleBuffering()))}},playing:{immediate:!0,async handler(t){t?this.play():this.pause(),this.animatePlayPauseOverlay()}},preloadedFrames:{handler(t,e){this.$emit("preloaded-frames-change",t)}},isPlaying:{immediate:!0,async handler(){this.playing=this.isPlaying}},selectedSnapshotQuality(){var t;this.src=(t=this.getFrameSrc(this.frames[this.frameIndex]))!=null?t:this.frames[this.frameIndex].src},isLive:{immediate:!0,handler(t){var e;t||(this.src=(e=this.frames[this.frameIndex])==null?void 0:e.src)}},imageLoaded(t){this.$emit("loading",!t)}},mounted(){this.$setTimeout(()=>{this.initializeFullscreenListeners(),this.progressBar=this.$refs.progressBar,this.$addEventListener("keydown",this.handleKeyDown)})},beforeDestroy(){this.cancelDelay(),this.flushPreloadingQueue(),this.removeFullscreenListeners()},methods:{getProgressBarMousePosition(t){var r;if(!this.progressBar)return{x:0,y:0};const e=(r=this.progressBar)==null?void 0:r.getBoundingClientRect();return{x:t.clientX-e.x,y:t.clientY-e.y}},onProgressBarMouseEnter(){this.hovered=!0},onProgressBarMouseMove(t){this.mousePosition=this.getProgressBarMousePosition(t)},onProgressBarMouseLeave(){this.hovered=!1,this.isDraggingCursor=!1},onProgressBarClick(){this.$emit("frame-index-change",this.hoveredFrameIndex),this.$emit("seek",this.hoveredFrameIndex)},getProgressBarChunkStyle(t,e){const[r,n]=[100*t/(this.frames.length-1),100*e/(this.frames.length-1)];return{left:`${r}%`,width:`${n-r}%`}},animatePlayPauseOverlay(){this.disablePlayPauseAnimation||(this.playPauseAnimation=!0,this.$setTimeout(()=>this.playPauseAnimation=!1,500))},isImageClick(t){const e=t==null?void 0:t.target;return e?e&&(e.id==="img-foreground"||typeof e.className=="string"&&e.className.indexOf("zoomable-img__img")!==-1):!1},onFrameMouseDown(t){!this.isImageClick(t)||!this.playOnClick||(this.mouseDownTime=new Date().getTime())},onFrameMouseUp(t){this.isLastFrame||this.disablePlayButton||!this.playOnClick||this.isAnnotationActive||!this.isImageClick(t)||new Date().getTime()-this.mouseDownTime>200||(this.playing=!this.playing)},removeFullscreenListeners(){const t=document;t.fullscreenEnabled||t.webkitFullscreenEnabled||t.mozFullScreenEnabled||t.msFullscreenEnabled?(t.removeEventListener("fullscreenchange",this.handleFullscreenChange),t.removeEventListener("webkitfullscreenchange",this.handleFullscreenChange),t.removeEventListener("mozfullscreenchange",this.handleFullscreenChange),t.removeEventListener("MSFullscreenChange",this.handleFullscreenChange)):console.log("Fullscreen API is not supported in this browser.")},initializeFullscreenListeners(){const t=document;t.fullscreenEnabled||t.webkitFullscreenEnabled||t.mozFullScreenEnabled||t.msFullscreenEnabled?(t.addEventListener("fullscreenchange",this.handleFullscreenChange),t.addEventListener("webkitfullscreenchange",this.handleFullscreenChange),t.addEventListener("mozfullscreenchange",this.handleFullscreenChange),t.addEventListener("MSFullscreenChange",this.handleFullscreenChange)):console.log("Fullscreen API is not supported in this browser.")},handleFullscreenChange(){const t=document;this.isFullscreen=!!t.fullscreenElement||!!t.mozFullScreenElement||!!t.webkitFullscreenElement||!!t.msFullscreenElement||window.innerWidth==screen.width&&window.innerHeight==screen.height},closeFullscreenMode(){document.fullscreenElement&&(Ir().then(()=>{this.isFullscreen=!1}),this.isFullscreen=!1)},openFullscreenMode(){const t=document.querySelector("#imagePlayer");t&&(Br(t).then(()=>{this.isFullscreen=!0}),this.isFullscreen=!0)},toggleFullscreenMode(){this.isFullscreen?this.closeFullscreenMode():this.openFullscreenMode()},updateRefs(){var t,e,r;this.image=(r=(e=(t=this.$refs)==null?void 0:t.zoomableImage)==null?void 0:e.$refs)==null?void 0:r.image},incrementCurrentFrameIndex(){this.frames[this.frameIndex+1]&&(this.$emit("frame-index-change",this.frameIndex+1),this.$emit("timestamp-change",this.frames[this.frameIndex].timestamp))},getFrameSrc(t){if(t)return t.srcSet?t.srcSet[this.selectedSnapshotQuality]:t.src},loadTargetFrame(){if(this.frameIndex!==this.previousFrameIndex)return new Promise(t=>{this.updateRefs(),this.previousSrc=this.src,this.previousFrameIndex=this.frameIndex,this.resolveImageLoadingPromise=t,this.src=this.getFrameSrc(this.frames[this.frameIndex])})},async handleBuffering(){this.preload&&await this.buffer()},async buffer(){let t=this.frameIndex+this.preloadSize;this.preloadSize===1/0&&(t=this.frames.length-1),await this.preloadFrames({start:this.frameIndex,end:t})},async preloadFrames({start:t,end:e}){const[r,n]=[Math.min(this.frames.length-1,t),Math.min(this.frames.length-1,e)],s=new Array(n-r+1).fill(0).map((i,h)=>i+r+h),l=this.preloadingQueueId;for(const i of s){if(l!==this.preloadingQueueId||this.playing&&!this.preloadWhilePlaying)return;this.preloadedFrames.includes(i)||await new Promise(a=>{const o=new Image;o.onload=()=>{this.preloadedFrames=[...this.preloadedFrames,i],a()},o.onerror=()=>{a()},this.preloadingFramesImgs=[...this.preloadingFramesImgs,o];const u=this.getFrameSrc(this.frames[i]);i||a(),o.src=u})}},async delay(){return this.frameError?(this.frameError=!1,Promise.resolve()):new Promise(t=>{const e=performance.now(),r=n=>{n-e<this.timePerFrameValue?this.animationId=window.requestAnimationFrame(r):t()};this.animationId=window.requestAnimationFrame(r)})},cancelDelay(){window.cancelAnimationFrame(this.animationId)},async play(){var r,n;const t=performance.now();if(this.isLastFrame&&!this.isLive){this.$emit("frame-index-change",0);return}this.$emit("play"),this.playing=!0,this.cancelDelay(),this.incrementCurrentFrameIndex(),await this.loadTargetFrame(),this.handleBuffering(),await this.delay(),this.playing&&this.play();const e=performance.now();this.$emit("performance-intervals-changed",{id:(r=this.frames[this.frameIndex])==null?void 0:r.timestamp,frame:(n=this.frames[this.frameIndex])==null?void 0:n.label,duration:e-t})},flushPreloadingQueue(){this.preloadingQueueId+=1,this.preloadingFramesImgs.forEach(t=>{t.src=""}),this.preloadingFramesImgs=[]},async pause(){this.playing=!1,this.imageLoaded=!0,this.src=this.previousSrc,this.cancelDelay(),this.handleBuffering(),this.$emit("pause")},onLoad(){var t,e;this.$emit("on-image-load",this.image),this.$emit("snapshot-changed",{data:(t=this.frames[this.frameIndex])==null?void 0:t.src,createdAt:(e=this.frames[this.frameIndex])==null?void 0:e.timestamp}),this.imageLoaded=!0,this.previousSrc=this.src,this.resolveImageLoadingPromise()},onError(t){if(this.frameIndex>1)return this.$emit("frame-index-change",this.frameIndex-1);this.frameError=!0,this.src=this.previousSrc,this.resolveImageLoadingPromise(),this.$emit("error",t)},onChange(t){this.$emit("change",t)},onBeforeUpdate(t){this.$emit("hook:beforeUpdate",t)},onBeforeDestroy(t){this.$emit("hook:beforeDestroy",t)},togglePlay(){this.playing=!this.playing},handleKeyDown(t){var r;const e=(r=document.activeElement)==null?void 0:r.tagName.toLowerCase();if(!(e==="input"||this.isAnnotationActive))switch(t.key.toLowerCase()){case" ":if(e==="button")return;this.disablePlayButton||this.togglePlay();break;case"escape":t.preventDefault(),this.closeFullscreenMode(),this.isFullscreen=!1;break}}}}),f7="";var J3=function(){var n,s;var e=this,r=e._self._c;return r("div",{staticClass:"player e-h-full e-w-full",style:e.playerDimensions,attrs:{id:"imagePlayer"}},[r("div",{staticClass:"player__frames player-container",style:e.playerDimensions,attrs:{id:"img-container"},on:{pointerdown:e.onFrameMouseDown,pointerup:e.onFrameMouseUp}},[r("div",{staticClass:"e-h-full e-w-full e-shrink-0 e-relative"},[r("img",{staticClass:"e-absolute e-block e-w-full e-h-full background-fade",attrs:{src:e.src||((n=e.frames[e.frameIndex])==null?void 0:n.src)||"",alt:"background-image"}}),r("EZoomableImg",e._g({directives:[{name:"show",rawName:"v-show",value:e.imageLoaded&&e.src||e.placeholderImage,expression:"(imageLoaded && src) || placeholderImage"}],ref:"zoomableImage",attrs:{"img-props":{imgProps:e.imgProps},"overlay-style":{zIndex:1},src:e.src||((s=e.frames[e.frameIndex])==null?void 0:s.src)||e.placeholderImage||"",alt:e.altText,"hide-content-on-blur":!1,height:e.height.split("px")[0],"placeholder-image":e.placeholderImage,slider:!1,"is-mobile":e.isMobile,disabled:!e.isZoomable,"is-annotation-active":e.isAnnotationActive,"blur-background":""},on:{load:e.onLoad,error:e.onError,change:e.onChange,"hook:beforeUpdate":e.onBeforeUpdate,"hook:beforeDestroy":e.onBeforeDestroy},scopedSlots:e._u([{key:"imageOverlay",fn:function(){return[e.playPauseAnimation?r("div",{staticClass:"image-player-overlay e-flex e-items-center e-justify-center"},[r("div",{staticClass:"image-player-overlay__wrapper"},[e.playing?r("svg",{attrs:{height:"100%",viewBox:"-1 0 36 36",width:"100%"}},[r("path",{attrs:{d:"M 12,26 18.5,22 18.5,14 12,10 z M 18.5,22 25,18 25,18 18.5,14 z"}})]):r("svg",{attrs:{height:"100%",viewBox:"0.5 0 36 36",width:"100%"}},[r("path",{attrs:{d:"M 12,26 16,26 16,10 12,10 z M 21,26 25,26 25,10 21,10 z"}})])])]):e._e(),e._t("default"),e._t("imageOverlay")]},proxy:!0}],null,!0)},e.$listeners),[e._t("playerContainerOverlay")],2),e._t("imagePlayerOverlay")],2)]),e._t("controls",function(){return[e.withControls?r("div",{staticClass:"e-absolute e-bottom-0 e-w-[97%] e-p-4 e-pt-8 e-z-50 e-space-y-4 e-bg-gradient-to-t e-from-[#363434] e-to-transparent"},[r("div",{staticClass:"e-font-semibold e-text-white"},[e._v(" "+e._s(e.frames[e.frameIndex].label)+" - "+e._s(e.frameIndex)+" / "+e._s(e.frames.length-1)+" ")]),r("div",{staticClass:"e-flex e-justify-start e-gap-2 e-items-center"},[r("button",{staticClass:"e-text-white e-bg-transparent e-border-none e-cursor-pointer action-btn__first-vertical e-rounded-md",on:{click:e.togglePlay}},[r("i",{staticClass:"fas fa-2x",class:{"fa-play":!e.playing,"fa-pause":e.playing}})]),r("div",{ref:"progressBar",staticClass:"e-w-full e-h-3 e-relative e-bg-gray-200 e-rounded-md",on:{click:e.onProgressBarClick,mouseenter:e.onProgressBarMouseEnter,mousemove:e.onProgressBarMouseMove,mouseleave:e.onProgressBarMouseLeave}},[r("div",{staticClass:"e-bg-blue-500 e-w-full e-h-full e-absolute e-rounded-md e-z-[1]",style:{width:`${e.playedPercentage}%`}}),e._l(e.preloadedChunks,function([l,i]){return r("div",{key:i,staticClass:"e-bg-blue-300 e-h-full e-absolute e-rounded-md",style:e.getProgressBarChunkStyle(l,i)})})],2),r("button",{ref:"fullScreenBtn",staticClass:"e-text-white e-bg-transparent e-border-none e-cursor-pointer action-btn__second-vertical e-rounded-md",on:{click:e.toggleFullscreenMode}},[r("i",{staticClass:"fas fa-2x",class:{"fa-expand":!e.isFullscreen,"fa-compress":e.isFullscreen}})])])]):e._e()]},{playing:e.playing,togglePlay:e.togglePlay,play:e.play,pause:e.pause,toggleFullscreen:e.toggleFullscreenMode,preloadedFrames:e.preloadedFrames,isLastFrame:e.isLastFrame})],2)},e6=[],t6=Y(K3,J3,e6,!1,null,null,null,null);const Gi=t6.exports,r6=j.extend({name:"ELayout",directives:{ResizeObserver:Qe},mixins:[Ge],props:{height:{type:[String,Number],default:null},withOverlay:{type:Boolean,default:!1}},data(){return{footerHeight:0,overlayFooterHeight:0,wrapperStyle:{width:"100%",height:"100%"},mainStyle:{width:"100%",height:"100%"},mainHeight:"100%"}},computed:{bottomStyle(){return{bottom:`${this.overlayFooterHeight}px`}}},watch:{mainHeight(){this.onResize()}},mounted(){this.setOverlayFooterHeight(),this.setFooterHeight()},methods:{onResize(){this.setFooterHeight(),this.setOverlayFooterHeight()},onOverlayClick(t){this.$emit("overlay-click",t)},setOverlayFooterHeight(){const t=this.$refs.overlayFooter;t||this.$setTimeout(()=>{this.setOverlayFooterHeight()}),this.overlayFooterHeight=t==null?void 0:t.clientHeight},setFooterHeight(){const t=this.$refs.footer;t||this.$setTimeout(()=>{this.setFooterHeight()}),this.footerHeight=t==null?void 0:t.clientHeight,this.$attrs.isFullscreen?this.mainHeight=`${screen.height}px`:this.mainHeight=`${this.height?this.height.split("px")[0]-this.footerHeight:"100"}px`,this.mainStyle={width:"100%",height:this.mainHeight}}}});var n6=function(){var e=this,r=e._self._c;return r("div",e._b({directives:[{name:"resize-observer",rawName:"v-resize-observer",value:e.onResize,expression:"onResize"}],ref:"globalLayout",staticClass:"e-layout e-w-full e-h-full e-relative",style:{width:"100%",height:e.mainHeight},attrs:{id:"globalLayout"}},"div",e.$attrs,!1),[r("div",{staticClass:"e-layout__container e-relative",style:e.mainStyle},[r("div",{staticClass:"e-layout__main e-w-full e-h-full e-absolute e-inset-0 e-z-0",style:e.mainStyle},[e._t("main",null,{size:{...e.mainStyle}})],2),e.withOverlay?r("div",{staticClass:"e-layout__overlay e-w-full e-h-full e-absolute e-inset-0 e-z-[1]",style:e.mainStyle,on:{click:e.onOverlayClick}},[e._t("overlay",null,{size:{...e.mainStyle}})],2):e._e(),r("div",{staticClass:"e-layout__top-left e-absolute e-left-0 e-top-0 e-z-[2]"},[e._t("top-left")],2),r("div",{staticClass:"e-absolute e-right-0 e-top-0 e-layout__top-right e-z-[2]"},[e._t("top-right")],2),r("div",{staticClass:"e-absolute e-right-0 e-bottom-10 e-layout__bottom-right e-z-[2]",style:e.bottomStyle},[e._t("bottom-right")],2),r("div",{staticClass:"e-absolute e-left-0 e-bottom-10 e-layout__bottom-left e-z-[2]",style:e.bottomStyle},[e._t("bottom-left")],2),r("div",{directives:[{name:"resize-observer",rawName:"v-resize-observer",value:e.setOverlayFooterHeight,expression:"setOverlayFooterHeight"}],ref:"overlayFooter",staticClass:"e-absolute e-bottom-0 e-left-0 e-right-0 e-layout__overlay-footer e-z-[2]"},[e._t("overlay-footer")],2)]),r("div",{directives:[{name:"resize-observer",rawName:"v-resize-observer",value:e.setFooterHeight,expression:"setFooterHeight"}],ref:"footer",staticClass:"e-layout__footer e-relative e-z-[2]"},[e._t("footer")],2)])},i6=[],s6=Y(r6,n6,i6,!1,null,null,null,null);const qi=s6.exports;var a6=Y({name:"EContextProvider",provide(){return{...this.$props.context}},props:{context:{type:Object,required:!0}},render(){return this.$scopedSlots.default()}},null,null,!1,null,null,null,null);const o6=a6.exports,l6=j.extend({name:"EChatWrapper",props:{dark:{type:Boolean,default:!1},embedded:{type:Boolean,default:!1}},computed:{borderClasses(){return this.embedded?{}:{"e-border-[1px] e-border-solid e-rounded-lg e-overflow-hidden":!0,"e-border-gray-300":!this.dark,"e-border-gray-600":this.dark}},wrapperClasses(){return{"e-bg-gray-800 e-text-white":this.dark,"e-bg-white e-text-gray-800":!this.dark,...this.borderClasses}}}}),v7="";var c6=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("div",{staticClass:"e-chat-wrapper e-h-full",class:e.wrapperClasses},[e._t("default")],2)},u6=[],d6=Y(l6,c6,u6,!1,null,null,null,null);const h6=d6.exports,f6=j.extend({name:"EChatHeader",components:{EAvatar:wt},props:{size:{type:String,default:"xs"},backgroundClasses:{type:String,default:""}}}),_7="";var p6=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("EAvatar",{staticClass:"e-evercam-logo",attrs:{image:"https://dash.evercam.io/evercam-logo.svg",size:e.size,"background-classes":e.backgroundClasses}})},m6=[],g6=Y(f6,p6,m6,!1,null,null,null,null);const tn=g6.exports,v6=j.extend({name:"EChatHeader",components:{EEvercamLogo:tn},props:{title:{type:String,default:"Evercam Copilot"},hidden:{type:Boolean,default:!1},dark:{type:Boolean,default:!1}},computed:{backgroundClasses(){return{"e-bg-gray-700":this.dark,"e-bg-gray-50":!this.dark}},headerClasses(){return{"e-hidden":this.hidden,...this.backgroundClasses}},logoClasses(){return{"e-bg-white e-p-[2px] e-rounded-full":this.dark}}}});var _6=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("div",{staticClass:"e-chat-header e-flex e-items-center e-justify-between",class:e.headerClasses},[r("div",{staticClass:"e-chat-logo e-flex e-w-full e-items-center e-justify-start e-gap-2 e-px-5 e-py-4"},[e._t("logo",function(){return[r("div",{class:e.logoClasses},[r("EEvercamLogo",{attrs:{size:e.dark?"2xs":"xs"}})],1)]}),r("div",{staticClass:"e-font-semibold e-h-min e-text-base"},[e._v(e._s(e.title))]),e._t("chip")],2)])},y6=[],C6=Y(v6,_6,y6,!1,null,null,null,null);const b6=C6.exports,x6=j.extend({name:"EChatBody",directives:{ResizeObserver:Qe},props:{dark:{type:Boolean,default:!1}},data(){return{autoScroll:!0,previousChildCount:0,showGoToBottomButton:!1}},computed:{bodyClasses(){return{"e-custom-scrollbar--light":!this.dark,"e-custom-scrollbar--dark":this.dark}},goToBottomButtonClasses(){return{"e-text-gray-500":!this.dark,"e-text-gray-300":this.dark,"e-bg-gray-600":this.dark,"e-bg-gray-200":!this.dark}}},watch:{autoScroll(t){t&&this.scrollToBottom()}},mounted(){this.scrollToBottom()},methods:{onContentResized(){const e=this.$refs.contentWrapper.childElementCount;e!==this.previousChildCount&&(this.autoScroll=!0),this.autoScroll&&this.scrollToBottom(),this.previousChildCount=e},scrollToBottom(){const t=this.$refs.anchor;this.$nextTick(()=>{t.scrollIntoView({behavior:"smooth"})})},disableAutoScroll(){this.autoScroll=!1},onScroll(){const t=this.$refs.chatBody;t.scrollHeight-t.scrollTop<=t.clientHeight+1&&(this.autoScroll=!0),this.showGoToBottomButton=t.scrollHeight-t.scrollTop>t.clientHeight+100},onWheel(t){t.deltaY<0&&this.disableAutoScroll()},onKeyUp(t){["ArrowUp","ArrowDown","PageUp","PageDown","Home","End"].includes(t.key)&&this.disableAutoScroll()},onTouch(){this.disableAutoScroll()},onTouchMove(){this.disableAutoScroll()}}}),y7="";var w6=function(){var e=this,r=e._self._c;return r("div",e._b({ref:"chatBody",staticClass:"e-chat-body e-space-y-2 e-py-3 e-px-5 e-leading-6",class:e.bodyClasses,attrs:{tabindex:"0"},on:{scroll:e.onScroll,wheel:e.onWheel,keyup:function(n){return n.stopPropagation(),e.onKeyUp.apply(null,arguments)},touchstart:e.onTouch,touchmove:e.onTouchMove}},"div",e.$attrs,!1),[r("div",{directives:[{name:"resize-observer",rawName:"v-resize-observer",value:e.onContentResized,expression:"onContentResized"}],ref:"contentWrapper"},[e._t("default")],2),r("div",{ref:"anchor",staticClass:"e-chat-body__anchor"}),e.showGoToBottomButton?r("div",{staticClass:"e-chat-body__go-to-bottom e-sticky e-bottom-1 e-flex e-justify-center"},[r("button",{staticClass:"e-animate-bounce e-inline-flex e-items-center e-justify-center e-cursor-pointer e-h-8 e-w-8 e-border-none focus:e-outline-none e-rounded-full",class:e.goToBottomButtonClasses,on:{click:e.scrollToBottom}},[r("EIcon",{attrs:{icon:"arrow-down",size:"base"}})],1)]):e._e()])},S6=[],T6=Y(x6,w6,S6,!1,null,null,null,null);const k6=T6.exports,M6=j.extend({props:{size:{type:Number,default:12},color:{type:String,default:"#c5393d"}},computed:{computedSize(){return`${this.size}px`},computedMargin(){return`${this.size/2}px`},computedShadowSize(){return`${this.size*2}px`},computedSecondaryColor(){return dt(this.color,0)||"#fff"},dotContainerStyle(){return{margin:`${this.computedMargin} auto`,width:this.computedSize,height:this.computedSize,position:"relative"}},shadowStyle(){return{width:this.computedSize,height:this.computedSize,"--boxShadowColor":dt(this.color,.7),"--backgroundColor":dt(this.color,.7),"--secondaryColor":this.computedSecondaryColor,"--shadowSize":this.computedShadowSize}},secondShadowStyle(){return{...this.shadowStyle,animationDelay:".33s",animationDuration:"2.3s"}},dotStyle(){return{width:this.computedSize,height:this.computedSize,backgroundColor:dt(this.color,1)}}},methods:{toRgba:dt}}),C7="";var E6=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("div",{staticClass:"e-pulsating-dot",style:e.dotContainerStyle},[r("span",{staticClass:"e-pulsating-dot__shadow",style:e.shadowStyle}),r("span",{staticClass:"e-pulsating-dot__shadow",style:e.secondShadowStyle}),r("div",{staticClass:"e-pulsating-dot__dot",style:e.dotStyle})])},$6=[],L6=Y(M6,E6,$6,!1,null,"e042b2c3",null,null);const D6=L6.exports;var Zi={exports:{}};(function(t,e){(function(r,n){t.exports=n()})(typeof self!="undefined"?self:st,()=>(()=>{var r={75:function(i){(function(){var h,a,o,u,f,m;typeof performance!="undefined"&&performance!==null&&performance.now?i.exports=function(){return performance.now()}:typeof process!="undefined"&&process!==null&&process.hrtime?(i.exports=function(){return(h()-f)/1e6},a=process.hrtime,u=(h=function(){var v;return 1e9*(v=a())[0]+v[1]})(),m=1e9*process.uptime(),f=u-m):Date.now?(i.exports=function(){return Date.now()-o},o=Date.now()):(i.exports=function(){return new Date().getTime()-o},o=new Date().getTime())}).call(this)},4087:(i,h,a)=>{for(var o=a(75),u=typeof window=="undefined"?a.g:window,f=["moz","webkit"],m="AnimationFrame",v=u["request"+m],b=u["cancel"+m]||u["cancelRequest"+m],d=0;!v&&d<f.length;d++)v=u[f[d]+"Request"+m],b=u[f[d]+"Cancel"+m]||u[f[d]+"CancelRequest"+m];if(!v||!b){var y=0,T=0,E=[];v=function(w){if(E.length===0){var F=o(),$=Math.max(0,16.666666666666668-(F-y));y=$+F,setTimeout(function(){var N=E.slice(0);E.length=0;for(var K=0;K<N.length;K++)if(!N[K].cancelled)try{N[K].callback(y)}catch(q){setTimeout(function(){throw q},0)}},Math.round($))}return E.push({handle:++T,callback:w,cancelled:!1}),T},b=function(w){for(var F=0;F<E.length;F++)E[F].handle===w&&(E[F].cancelled=!0)}}i.exports=function(w){return v.call(u,w)},i.exports.cancel=function(){b.apply(u,arguments)},i.exports.polyfill=function(w){w||(w=u),w.requestAnimationFrame=v,w.cancelAnimationFrame=b}}},n={};function s(i){var h=n[i];if(h!==void 0)return h.exports;var a=n[i]={exports:{}};return r[i].call(a.exports,a,a.exports,s),a.exports}s.n=i=>{var h=i&&i.__esModule?()=>i.default:()=>i;return s.d(h,{a:h}),h},s.d=(i,h)=>{for(var a in h)s.o(h,a)&&!s.o(i,a)&&Object.defineProperty(i,a,{enumerable:!0,get:h[a]})},s.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}}(),s.o=(i,h)=>Object.prototype.hasOwnProperty.call(i,h);var l={};return(()=>{s.d(l,{default:()=>Q});var i=s(4087),h=s.n(i);const a=function(I){return new RegExp(/<[a-z][\s\S]*>/i).test(I)},o=function(I,k){return Math.floor(Math.random()*(k-I+1))+I};var u="TYPE_CHARACTER",f="REMOVE_CHARACTER",m="REMOVE_ALL",v="REMOVE_LAST_VISIBLE_NODE",b="PAUSE_FOR",d="CALL_FUNCTION",y="ADD_HTML_TAG_ELEMENT",T="CHANGE_DELETE_SPEED",E="CHANGE_DELAY",w="CHANGE_CURSOR",F="PASTE_STRING",$="HTML_TAG";function N(I){return N=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(k){return typeof k}:function(k){return k&&typeof Symbol=="function"&&k.constructor===Symbol&&k!==Symbol.prototype?"symbol":typeof k},N(I)}function K(I,k){var O=Object.keys(I);if(Object.getOwnPropertySymbols){var R=Object.getOwnPropertySymbols(I);k&&(R=R.filter(function(ie){return Object.getOwnPropertyDescriptor(I,ie).enumerable})),O.push.apply(O,R)}return O}function q(I){for(var k=1;k<arguments.length;k++){var O=arguments[k]!=null?arguments[k]:{};k%2?K(Object(O),!0).forEach(function(R){D(I,R,O[R])}):Object.getOwnPropertyDescriptors?Object.defineProperties(I,Object.getOwnPropertyDescriptors(O)):K(Object(O)).forEach(function(R){Object.defineProperty(I,R,Object.getOwnPropertyDescriptor(O,R))})}return I}function x(I){return function(k){if(Array.isArray(k))return z(k)}(I)||function(k){if(typeof Symbol!="undefined"&&k[Symbol.iterator]!=null||k["@@iterator"]!=null)return Array.from(k)}(I)||function(k,O){if(k){if(typeof k=="string")return z(k,O);var R=Object.prototype.toString.call(k).slice(8,-1);return R==="Object"&&k.constructor&&(R=k.constructor.name),R==="Map"||R==="Set"?Array.from(k):R==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(R)?z(k,O):void 0}}(I)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
203
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function z(I,k){(k==null||k>I.length)&&(k=I.length);for(var O=0,R=new Array(k);O<k;O++)R[O]=I[O];return R}function G(I,k){for(var O=0;O<k.length;O++){var R=k[O];R.enumerable=R.enumerable||!1,R.configurable=!0,"value"in R&&(R.writable=!0),Object.defineProperty(I,X(R.key),R)}}function D(I,k,O){return(k=X(k))in I?Object.defineProperty(I,k,{value:O,enumerable:!0,configurable:!0,writable:!0}):I[k]=O,I}function X(I){var k=function(O,R){if(N(O)!=="object"||O===null)return O;var ie=O[Symbol.toPrimitive];if(ie!==void 0){var C=ie.call(O,"string");if(N(C)!=="object")return C;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(O)}(I);return N(k)==="symbol"?k:String(k)}const Q=function(){function I(R,ie){var C=this;if(function(A,B){if(!(A instanceof B))throw new TypeError("Cannot call a class as a function")}(this,I),D(this,"state",{cursorAnimation:null,lastFrameTime:null,pauseUntil:null,eventQueue:[],eventLoop:null,eventLoopPaused:!1,reverseCalledEvents:[],calledEvents:[],visibleNodes:[],initialOptions:null,elements:{container:null,wrapper:document.createElement("span"),cursor:document.createElement("span")}}),D(this,"options",{strings:null,cursor:"|",delay:"natural",pauseFor:1500,deleteSpeed:"natural",loop:!1,autoStart:!1,devMode:!1,skipAddStyles:!1,wrapperClassName:"Typewriter__wrapper",cursorClassName:"Typewriter__cursor",stringSplitter:null,onCreateTextNode:null,onRemoveNode:null}),D(this,"setupWrapperElement",function(){C.state.elements.container&&(C.state.elements.wrapper.className=C.options.wrapperClassName,C.state.elements.cursor.className=C.options.cursorClassName,C.state.elements.cursor.innerHTML=C.options.cursor,C.state.elements.container.innerHTML="",C.state.elements.container.appendChild(C.state.elements.wrapper),C.state.elements.container.appendChild(C.state.elements.cursor))}),D(this,"start",function(){return C.state.eventLoopPaused=!1,C.runEventLoop(),C}),D(this,"pause",function(){return C.state.eventLoopPaused=!0,C}),D(this,"stop",function(){return C.state.eventLoop&&((0,i.cancel)(C.state.eventLoop),C.state.eventLoop=null),C}),D(this,"pauseFor",function(A){return C.addEventToQueue(b,{ms:A}),C}),D(this,"typeOutAllStrings",function(){return typeof C.options.strings=="string"?(C.typeString(C.options.strings).pauseFor(C.options.pauseFor),C):(C.options.strings.forEach(function(A){C.typeString(A).pauseFor(C.options.pauseFor).deleteAll(C.options.deleteSpeed)}),C)}),D(this,"typeString",function(A){var B=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(a(A))return C.typeOutHTMLString(A,B);if(A){var S=(C.options||{}).stringSplitter,W=typeof S=="function"?S(A):A.split("");C.typeCharacters(W,B)}return C}),D(this,"pasteString",function(A){var B=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return a(A)?C.typeOutHTMLString(A,B,!0):(A&&C.addEventToQueue(F,{character:A,node:B}),C)}),D(this,"typeOutHTMLString",function(A){var B=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,S=arguments.length>2?arguments[2]:void 0,W=function(ue){var ce=document.createElement("div");return ce.innerHTML=ue,ce.childNodes}(A);if(W.length>0)for(var V=0;V<W.length;V++){var L=W[V],ne=L.innerHTML;L&&L.nodeType!==3?(L.innerHTML="",C.addEventToQueue(y,{node:L,parentNode:B}),S?C.pasteString(ne,L):C.typeString(ne,L)):L.textContent&&(S?C.pasteString(L.textContent,B):C.typeString(L.textContent,B))}return C}),D(this,"deleteAll",function(){var A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"natural";return C.addEventToQueue(m,{speed:A}),C}),D(this,"changeDeleteSpeed",function(A){if(!A)throw new Error("Must provide new delete speed");return C.addEventToQueue(T,{speed:A}),C}),D(this,"changeDelay",function(A){if(!A)throw new Error("Must provide new delay");return C.addEventToQueue(E,{delay:A}),C}),D(this,"changeCursor",function(A){if(!A)throw new Error("Must provide new cursor");return C.addEventToQueue(w,{cursor:A}),C}),D(this,"deleteChars",function(A){if(!A)throw new Error("Must provide amount of characters to delete");for(var B=0;B<A;B++)C.addEventToQueue(f);return C}),D(this,"callFunction",function(A,B){if(!A||typeof A!="function")throw new Error("Callback must be a function");return C.addEventToQueue(d,{cb:A,thisArg:B}),C}),D(this,"typeCharacters",function(A){var B=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!A||!Array.isArray(A))throw new Error("Characters must be an array");return A.forEach(function(S){C.addEventToQueue(u,{character:S,node:B})}),C}),D(this,"removeCharacters",function(A){if(!A||!Array.isArray(A))throw new Error("Characters must be an array");return A.forEach(function(){C.addEventToQueue(f)}),C}),D(this,"addEventToQueue",function(A,B){var S=arguments.length>2&&arguments[2]!==void 0&&arguments[2];return C.addEventToStateProperty(A,B,S,"eventQueue")}),D(this,"addReverseCalledEvent",function(A,B){var S=arguments.length>2&&arguments[2]!==void 0&&arguments[2];return C.options.loop?C.addEventToStateProperty(A,B,S,"reverseCalledEvents"):C}),D(this,"addEventToStateProperty",function(A,B){var S=arguments.length>2&&arguments[2]!==void 0&&arguments[2],W=arguments.length>3?arguments[3]:void 0,V={eventName:A,eventArgs:B||{}};return C.state[W]=S?[V].concat(x(C.state[W])):[].concat(x(C.state[W]),[V]),C}),D(this,"runEventLoop",function(){C.state.lastFrameTime||(C.state.lastFrameTime=Date.now());var A=Date.now(),B=A-C.state.lastFrameTime;if(!C.state.eventQueue.length){if(!C.options.loop)return;C.state.eventQueue=x(C.state.calledEvents),C.state.calledEvents=[],C.options=q({},C.state.initialOptions)}if(C.state.eventLoop=h()(C.runEventLoop),!C.state.eventLoopPaused){if(C.state.pauseUntil){if(A<C.state.pauseUntil)return;C.state.pauseUntil=null}var S,W=x(C.state.eventQueue),V=W.shift();if(!(B<=(S=V.eventName===v||V.eventName===f?C.options.deleteSpeed==="natural"?o(40,80):C.options.deleteSpeed:C.options.delay==="natural"?o(120,160):C.options.delay))){var L=V.eventName,ne=V.eventArgs;switch(C.logInDevMode({currentEvent:V,state:C.state,delay:S}),L){case F:case u:var ue=ne.character,ce=ne.node,se=document.createTextNode(ue),he=se;C.options.onCreateTextNode&&typeof C.options.onCreateTextNode=="function"&&(he=C.options.onCreateTextNode(ue,se)),he&&(ce?ce.appendChild(he):C.state.elements.wrapper.appendChild(he)),C.state.visibleNodes=[].concat(x(C.state.visibleNodes),[{type:"TEXT_NODE",character:ue,node:he}]);break;case f:W.unshift({eventName:v,eventArgs:{removingCharacterNode:!0}});break;case b:var Te=V.eventArgs.ms;C.state.pauseUntil=Date.now()+parseInt(Te);break;case d:var le=V.eventArgs,ye=le.cb,Fe=le.thisArg;ye.call(Fe,{elements:C.state.elements});break;case y:var Be=V.eventArgs,Me=Be.node,ke=Be.parentNode;ke?ke.appendChild(Me):C.state.elements.wrapper.appendChild(Me),C.state.visibleNodes=[].concat(x(C.state.visibleNodes),[{type:$,node:Me,parentNode:ke||C.state.elements.wrapper}]);break;case m:var $e=C.state.visibleNodes,Ee=ne.speed,Le=[];Ee&&Le.push({eventName:T,eventArgs:{speed:Ee,temp:!0}});for(var De=0,Ke=$e.length;De<Ke;De++)Le.push({eventName:v,eventArgs:{removingCharacterNode:!1}});Ee&&Le.push({eventName:T,eventArgs:{speed:C.options.deleteSpeed,temp:!0}}),W.unshift.apply(W,Le);break;case v:var Xe=V.eventArgs.removingCharacterNode;if(C.state.visibleNodes.length){var ot=C.state.visibleNodes.pop(),_t=ot.type,qe=ot.node,ht=ot.character;C.options.onRemoveNode&&typeof C.options.onRemoveNode=="function"&&C.options.onRemoveNode({node:qe,character:ht}),qe&&qe.parentNode.removeChild(qe),_t===$&&Xe&&W.unshift({eventName:v,eventArgs:{}})}break;case T:C.options.deleteSpeed=V.eventArgs.speed;break;case E:C.options.delay=V.eventArgs.delay;break;case w:C.options.cursor=V.eventArgs.cursor,C.state.elements.cursor.innerHTML=V.eventArgs.cursor}C.options.loop&&(V.eventName===v||V.eventArgs&&V.eventArgs.temp||(C.state.calledEvents=[].concat(x(C.state.calledEvents),[V]))),C.state.eventQueue=W,C.state.lastFrameTime=A}}}),R)if(typeof R=="string"){var Z=document.querySelector(R);if(!Z)throw new Error("Could not find container element");this.state.elements.container=Z}else this.state.elements.container=R;ie&&(this.options=q(q({},this.options),ie)),this.state.initialOptions=q({},this.options),this.init()}var k,O;return k=I,(O=[{key:"init",value:function(){var R,ie;this.setupWrapperElement(),this.addEventToQueue(w,{cursor:this.options.cursor},!0),this.addEventToQueue(m,null,!0),!window||window.___TYPEWRITER_JS_STYLES_ADDED___||this.options.skipAddStyles||(R=".Typewriter__cursor{-webkit-animation:Typewriter-cursor 1s infinite;animation:Typewriter-cursor 1s infinite;margin-left:1px}@-webkit-keyframes Typewriter-cursor{0%{opacity:0}50%{opacity:1}100%{opacity:0}}@keyframes Typewriter-cursor{0%{opacity:0}50%{opacity:1}100%{opacity:0}}",(ie=document.createElement("style")).appendChild(document.createTextNode(R)),document.head.appendChild(ie),window.___TYPEWRITER_JS_STYLES_ADDED___=!0),this.options.autoStart===!0&&this.options.strings&&this.typeOutAllStrings().start()}},{key:"logInDevMode",value:function(R){this.options.devMode&&console.log(R)}}])&&G(k.prototype,O),Object.defineProperty(k,"prototype",{writable:!1}),I}()})(),l.default})())})(Zi);var P6=Zi.exports;const O6=St(P6),Ui=function(t){if(t==null)return A6;if(typeof t=="function")return Pt(t);if(typeof t=="object")return Array.isArray(t)?z6(t):B6(t);if(typeof t=="string")return I6(t);throw new Error("Expected function, string, or object as test")};function z6(t){const e=[];let r=-1;for(;++r<t.length;)e[r]=Ui(t[r]);return Pt(n);function n(...s){let l=-1;for(;++l<e.length;)if(e[l].apply(this,s))return!0;return!1}}function B6(t){const e=t;return Pt(r);function r(n){const s=n;let l;for(l in t)if(s[l]!==e[l])return!1;return!0}}function I6(t){return Pt(e);function e(r){return r&&r.type===t}}function Pt(t){return e;function e(r,n,s){return!!(F6(r)&&t.call(this,r,typeof n=="number"?n:void 0,s||void 0))}}function A6(){return!0}function F6(t){return t!==null&&typeof t=="object"&&"type"in t}function b7(t){return t}const Yi=[],R6=!0,Xi=!1,H6="skip";function N6(t,e,r,n){let s;typeof e=="function"&&typeof r!="function"?(n=r,r=e):s=e;const l=Ui(s),i=n?-1:1;h(t,void 0,[])();function h(a,o,u){const f=a&&typeof a=="object"?a:{};if(typeof f.type=="string"){const v=typeof f.tagName=="string"?f.tagName:typeof f.name=="string"?f.name:void 0;Object.defineProperty(m,"name",{value:"node ("+(a.type+(v?"<"+v+">":""))+")"})}return m;function m(){let v=Yi,b,d,y;if((!e||l(a,o,u[u.length-1]||void 0))&&(v=W6(r(a,u)),v[0]===Xi))return v;if("children"in a&&a.children){const T=a;if(T.children&&v[0]!==H6)for(d=(n?T.children.length:-1)+i,y=u.concat(T);d>-1&&d<T.children.length;){const E=T.children[d];if(b=h(E,d,y)(),b[0]===Xi)return b;d=typeof b[1]=="number"?b[1]:d+i}}return v}}}function W6(t){return Array.isArray(t)?t:typeof t=="number"?[R6,t]:t==null?Yi:[t]}function Qi(t,e,r,n){let s,l,i;typeof e=="function"&&typeof r!="function"?(l=void 0,i=e,s=r):(l=e,i=r,s=n),N6(t,l,h,s);function h(a,o){const u=o[o.length-1],f=u?u.children.indexOf(a):void 0;return i(a,f,u)}}const j6=j.extend({name:"EMarkdown",props:{chunks:{type:[Array,String],default:()=>[]},exposedRegexes:{type:Array,default:()=>[]},animated:{type:Boolean,default:!1},dark:{type:Boolean,default:!1}},data(){return{accumulatedMarkdown:"",processedLength:0,currentChunkIndex:0,chunkQueue:[],isProcessing:!1,typewriter:null,renderTargets:{}}},watch:{chunks:{async handler(t,e){const r=t.slice(e.length);for(const n of r)await this.handleNewChunks(n)},deep:!0}},mounted(){this.typewriter=new O6(this.$refs.content,{loop:!1,delay:0,delaySpeed:0,cursor:""}),this.processChunks()},methods:{async processMarkdown(t){const r=await Cs.unified().use(bs).use(this.remarkCustomRegex,this.exposedRegexes).use(Ss).use(Ts).use(xs,{allowDangerousHtml:!0}).use(ws,{allowDangerousHtml:!0}).process(t);return String(r)},remarkCustomRegex(t){return e=>{Qi(e,"text",(r,n,s)=>{t.forEach(({regex:l,type:i})=>{const h=r.value.split(l);if(h.length>1){const a=[];return h.forEach((o,u)=>{const f=`render-target-${i}-${vi({node:r,nodeIndex:n,partIndex:u})}`;l.test(o)?(a.push({type:"html",value:`<span id="${f}">${o}</span>`}),this.renderTargets[f]={match:o,type:i}):o&&a.push({type:"text",value:o})}),s.children.splice(n,1,...a),[Qi.SKIP,n+a.length]}})})}},async processChunk(t){if(!t)return;if(this.accumulatedMarkdown+=t,this.animated){const r=await this.processMarkdown(t);await new Promise(n=>{this.$emit("animation-start"),this.typewriter.typeString(r).callFunction(()=>{this.$emit("animation-end"),n()}).start()})}const e=this.$refs.content.querySelector(".Typewriter__wrapper");e.innerHTML=await this.processMarkdown(this.accumulatedMarkdown),this.renderRegexesScopedSlots(),this.processedLength=this.accumulatedMarkdown.length,this.currentChunkIndex++},async handleNewChunks(t){if(t&&(this.chunkQueue.push(t),!this.isProcessing)){for(this.isProcessing=!0;this.chunkQueue.length>0;){const e=this.chunkQueue.shift();await this.processChunk(e)}this.isProcessing=!1}},async processChunks(){const t=Array.isArray(this.chunks)?this.chunks:[this.chunks];for(let e of t)await this.handleNewChunks(e)},renderRegexesScopedSlots(){Object.entries(this.renderTargets).forEach(([t,{match:e,type:r}])=>{this.renderScopedSlot({id:t,type:r,propsData:{match:e}})}),this.renderTargets={}},renderScopedSlot({id:t,type:e,propsData:r}){const n=this.$scopedSlots[`markdown.regex.${e}`];if(!n)return;const s=j.extend({props:["scopedSlot","propsData"],render(h){return this.scopedSlot(this.propsData)}}),l=document.getElementById(t);if(!l)return;const i=new j({render:h=>h(s,{props:{scopedSlot:n,propsData:r}})}).$mount();return l.innerHTML="",l.appendChild(i.$el),i}}}),x7="";var G6=function(){var e=this,r=e._self._c;return r("div",{staticClass:"e-markdown"},[r("article",{staticClass:"e-mx-auto prose-h1:!e-text-2xl prose-h2:!e-text-xl prose-h2:!e-mt-0 prose-h3:!e-text-lg e-prose e-prose-slate",class:{"e-prose-invert":e.dark}},[r("div",{ref:"content",staticClass:"e-markdown__content e-mt-[13px]"}),e._l(e.renderTargets,function({id:n,type:s,match:l}){return r("div",{key:n,staticStyle:{display:"none"}},[e._t(`markdown.regex.${s}`,function(){return[e._v(" "+e._s(l)+" ")]},{match:l})],2)})],2)])},q6=[],Z6=Y(j6,G6,q6,!1,null,null,null,null);const U6=Z6.exports,Y6=j.extend({name:"ECopyToClipboardBtn",components:{EActionButton:vt},mixins:[Ve,Ge],props:{text:{type:[Function,String,Number],required:!0},buttonText:{type:String,default:""},buttonClasses:{type:[String,Object,Array],default:null},description:{type:String,default:"Copy"},iconType:{type:String,default:"far fa-copy"},textOnlyButton:{type:Boolean,default:!1},dark:{type:Boolean,default:!0}},data(){return{loading:!1,tooltipText:this.description||"Copy to clipboard"}},computed:{copyButtonClasses(){return{"e-text-gray-500":!this.dark,"e-text-gray-300":this.dark,"e-bg-gray-600":this.dark,"e-bg-gray-200":!this.dark,"e-rounded-md e-border-none copy-button":!0}}},watch:{tooltipText(t){t!==this.description&&this.$setTimeout(()=>{this.tooltipText=this.description},1e3)}},mounted(){this.$addEventListener("focusin",this.handleFocusin,this.$refs.copyToClipboard)},methods:{handleFocusin(t){t.stopPropagation()},getProp(t,e){return Object.prototype.hasOwnProperty.call(this.$attrs,t)?this.$attrs[t]:e},copyTextToClipboard(){try{this.loading=!0;let t;typeof this.text=="function"?t=this.text():t=this.text;const e=this.$refs.copyToClipboard;e.value=t,e.focus(),e.select(),document.execCommand("copy"),this.tooltipText="Copied!",this.$emit("copied")}catch(t){console.error("Failed to copy text to clipboard",t)}finally{this.loading=!1}}}}),w7="";var X6=function(){var e=this,r=e._self._c;return r("EActionButton",{attrs:{"tooltip-text":e.tooltipText,"tooltip-position":"top",icon:e.iconType,"icon-size":"lg",dark:e.dark,"button-classes":e.copyButtonClasses},on:{click:e.copyTextToClipboard}},[e._v(" "+e._s(e.buttonText)+" "),r("textarea",{ref:"copyToClipboard",staticClass:"copy-to-clipboard",attrs:{readonly:""}})])},Q6=[],V6=Y(Y6,X6,Q6,!1,null,"54e17d6a",null,null);const rn=V6.exports,K6=j.extend({name:"EDialog",components:{EFadeTransition:Jr},directives:{clickOutside:Hr},props:{value:{type:Boolean,default:!1},dark:{type:Boolean,default:!1},actions:{type:Array,default:()=>[]},title:{type:String,default:""},persistent:{type:Boolean,default:!1},width:{type:[Number,String],default:500},height:{type:[Number,String,void 0],default:void 0}},computed:{visible:{get(){return this.value},set(t){this.$emit("input",t)}},panelClasses(){return["e-relative e-transform e-overflow-hidden e-rounded-lg e-text-left e-shadow-xl e-transition-all e-w-full e-flex e-flex-col",this.dark?"e-bg-gray-800":"e-bg-white"]},headerContainerClasses(){return["e-dialog__header",this.dark?"e-bg-gray-800 e-text-gray-50":"e-bg-white e-text-slate-900","e-px-6 e-pt-6 e-pb-4 "]},bodyContainerClasses(){return["e-dialog__body e-px-6",this.dark?"e-bg-gray-800 e-text-gray-50":"e-bg-white e-text-slate-900"]},footerContainerClasses(){return["e-dialog__footer",this.dark?"e-bg-gray-700":"e-bg-gray-50","e-flex e-py-3 e-flex e-px-4 e-justify-end e-mt-auto e-items-end"]},panelStyles(){const t=typeof this.width=="number"?`${this.width}px`:this.width,e=typeof this.height=="number"?`${this.height}px`:this.height;return{minWidth:t,minHeight:e,width:t,height:e}}},methods:{getButtonClasses(t){const e=this.dark?"e-bg-gray-700 e-text-gray-50 e-border-solid e-border-[1px] e-border-gray-500 hover:e-bg-gray-600":"e-bg-white e-text-gray-900 e-border-solid e-border-[1px] e-border-gray-300 hover:e-bg-gray-50",r={[ae.warning]:"e-bg-warning e-text-white e-border-none",[ae.error]:"e-bg-error e-text-white e-border-none",[ae.info]:"e-bg-info e-text-white e-border-none",[ae.success]:"e-bg-success e-text-white e-border-none",[ae.primary]:"e-bg-primary e-text-white e-border-none",[ae.brand]:"e-bg-brand-500 e-text-white e-border-none",[ae.default]:e,[ae.gray]:"e-bg-gray-600 e-text-white hover:e-bg-gray-light e-border-none"};return["e-inline-flex e-w-full e-justify-center e-rounded-md e-px-3 e-py-2 e-text-sm e-font-semibold e-shadow-sm sm:e-ml-3 sm:e-w-auto e-cursor-pointer hover:e-opacity-90",r[t]||r[ae.default]]},onActionClick(t){t.closeOnClick&&(this.visible=!1),this.$emit("action-clicked",t.id||t.label)},onClickOutside(){this.persistent||(this.visible=!1)}}});var J6=function(){var e=this,r=e._self._c;return r("EFadeTransition",{attrs:{duration:100}},[e.visible?r("div",{staticClass:"e-dialog e-absolute e-z-10",attrs:{"aria-labelledby":"modal-title",role:"dialog","aria-modal":"true"}},[r("div",{staticClass:"e-dialog__backdrop e-fixed e-inset-0 e-bg-gray-500 e-bg-opacity-75 e-transition-opacity",attrs:{"aria-hidden":"true"}}),r("div",{staticClass:"e-dialog__wrapper e-fixed e-inset-0 e-z-10 e-w-screen e-overflow-y-auto"},[r("div",{staticClass:"e-dialog__wrapper e-cursor-default e-flex e-min-h-full e-items-end e-justify-center e-p-4 e-text-center sm:e-items-center sm:e-p-0"},[r("div",{directives:[{name:"click-outside",rawName:"v-click-outside",value:e.onClickOutside,expression:"onClickOutside"}],class:e.panelClasses,style:e.panelStyles},[r("div",{class:e.headerContainerClasses},[e._t("header",function(){return[e.title?r("div",{staticClass:"e-text-lg e-font-bold"},[e._v(" "+e._s(e.title)+" ")]):e._e()]},{dark:e.dark})],2),r("div",{class:e.bodyContainerClasses},[e._t("default",null,{dark:e.dark})],2),r("div",{class:e.footerContainerClasses},[e._t("footer",function(){return e._l(e.actions,function(n,s){return r("button",{key:s,class:e.getButtonClasses(n.color),on:{click:function(l){return l.stopPropagation(),e.onActionClick(n)}}},[e._v(" "+e._s(n.label)+" ")])})},{actions:e.actions,dark:e.dark})],2)])])])]):e._e()])},e4=[],t4=Y(K6,J6,e4,!1,null,null,null,null);const r4=t4.exports,n4=j.extend({name:"EFeedbackButton",components:{EDialog:r4,EActionButton:vt},mixins:[Ve,Ge],props:{buttonText:{type:String,default:""},buttonClasses:{type:[String,Object,Array],default:null},description:{type:String,default:"Submit feedback"},iconType:{type:String,default:"far fa-thumbs-up"},withText:{type:Boolean,default:!1},dark:{type:Boolean,default:!1},dialogActions:{type:Array,default:()=>[{label:"Submit",color:"primary"}]},dialogWidth:{type:[Number,String],default:"27rem"}},data(){return{tooltipText:this.description||"Submit feedback",showDialog:!1,feedbackText:""}},computed:{eButtonClasses(){return{"e-text-gray-500":!this.dark,"e-text-gray-300":this.dark,"e-bg-gray-600":this.dark,"e-bg-gray-200":!this.dark,"e-rounded-md e-border-none":!0}},textAreaClasses(){return{"e-bg-gray-800":this.dark,"e-bg-white":!this.dark,"e-text-gray-600":!this.dark,"e-text-gray-300":this.dark,"e-custom-scrollbar--light":!this.dark,"e-custom-scrollbar--dark":this.dark}},textAreaContainerClasses(){return{"e-border-gray-600":this.dark,"e-border-gray-300":!this.dark}}},watch:{tooltipText(t){t!==this.description&&this.$setTimeout(()=>{this.tooltipText=this.description},1e3)}},mounted(){},methods:{onClick(){this.withText?this.showDialog=!0:this.submitFeedback()},submitFeedback(){this.showDialog=!1,this.$emit("submit",this.feedbackText),this.tooltipText="Thank you!"}}}),S7="";var i4=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("EActionButton",{attrs:{"tooltip-text":e.tooltipText,"tooltip-position":"top",icon:e.iconType,"icon-size":"lg",dark:e.dark,"button-classes":e.eButtonClasses},on:{click:e.onClick}},[e._v(" "+e._s(e.buttonText)+" "),e.withText?r("EDialog",{attrs:{value:e.showDialog,title:"Feedback",dark:e.dark,width:e.dialogWidth,persistent:"",actions:e.dialogActions},on:{"action-clicked":e.submitFeedback}},[r("div",{staticClass:"e-feedback__form"},[r("div",{staticClass:"e-feedback__form-description e-mb-3 e-leading-relaxed"},[e._v(" Thanks for your input! "),r("br"),e._v("Please share your thoughts and experience to help us improve ")]),r("div",{staticClass:"e-rounded-md e-w-full e-overflow-hidden e-border e-border-solid e-py-2 e-mb-6",class:e.textAreaContainerClasses},[r("textarea",{directives:[{name:"model",rawName:"v-model",value:e.feedbackText,expression:"feedbackText"}],staticClass:"e-feedback__textarea focus:e-outline-none e-mr-6 e-border-none e-placeholder-gray-400 e-py-3 e-pl-3 e-w-full",class:e.textAreaClasses,attrs:{autofocus:"",tabindex:"0",rows:"4",placeholder:"Enter your text here..."},domProps:{value:e.feedbackText},on:{input:function(n){n.target.composing||(e.feedbackText=n.target.value)}}})])])]):e._e()],1)},s4=[],a4=Y(n4,i4,s4,!1,null,null,null,null);const o4=a4.exports,l4=j.extend({name:"EChatMessageActions",components:{EFeedbackButton:o4,ECopyToClipboardBtn:rn},props:{message:{type:[String,Array],default:""},dark:{type:Boolean,default:!1},showCopyButton:{type:Boolean,default:!1},showFeedbackButtons:{type:Boolean,default:!1}},data(){return{FeedbackType:Ht,showFeedbackDialog:!1}},computed:{messageText(){return(Array.isArray(this.message)?this.message:[this.message]).join("")}},methods:{handleFeedback(t,e){this.$emit("feedback",{type:t,text:e})},openFeedbackDialog(){this.showFeedbackDialog=!0}}}),T7="";var c4=function(){var e=this,r=e._self._c;return r("div",{staticClass:"e-message__actions e-relative e-h-0"},[r("div",{staticClass:"e-message__actions-container e-flex e-gap-1 e-pt-2"},[e.showCopyButton?r("ECopyToClipboardBtn",{attrs:{text:e.messageText,dark:e.dark,"button-size":"base","button-classes":"e-bg-transparent e-border-none",description:"Copy"}}):e._e(),e.showFeedbackButtons?r("EFeedbackButton",{attrs:{dark:e.dark,"with-text":"","button-size":"base","button-classes":"e-bg-transparent e-border-none"},on:{submit:function(n){return e.handleFeedback(e.FeedbackType.positive,n)}},nativeOn:{click:function(n){return e.openFeedbackDialog.apply(null,arguments)}}}):e._e(),e.showFeedbackButtons?r("EFeedbackButton",{attrs:{dark:e.dark,"with-text":"","button-size":"base","button-classes":"e-bg-transparent e-border-none","icon-type":"far fa-thumbs-down"},on:{submit:function(n){return e.handleFeedback(e.FeedbackType.negative,n)}},nativeOn:{click:function(n){return e.openFeedbackDialog.apply(null,arguments)}}}):e._e()],1)])},u4=[],d4=Y(l4,c4,u4,!1,null,null,null,null);const h4=d4.exports,f4=j.extend({name:"EChatMessage",components:{EFadeTransition:Jr,EAvatar:wt,EChatMessageActions:h4,EEvercamLogo:tn,EPulsatingDot:D6,EMarkdown:U6},mixins:[Ge],props:{role:{type:String,default:Ze.USER},initials:{type:String,default:null},message:{type:[String,Array],default:""},isLoading:{type:Boolean,default:!1},avatarSrc:{type:String,default:null},showAvatar:{type:Boolean,default:!0},dark:{type:Boolean,default:!1},withActions:{type:Boolean,default:!1},showCopyButton:{type:Boolean,default:!1},showFeedbackButtons:{type:Boolean,default:!1},loadingMessage:{type:String,default:""},exposedRegexes:{type:Array,default:()=>[]},animated:{type:Boolean,default:!1}},data(){return{showActions:!1}},computed:{isBotRole(){return this.role===Ze.COPILOT||this.role===Ze.SYSTEM},isStream(){return Array.isArray(this.message)},userMessageClasses(){return{"e-bg-gray-100 e-text-gray-800":!this.dark,"e-bg-gray-600 e-text-white":this.dark}},logoClasses(){return{"e-bg-white e-p-[2px] e-rounded-full":this.dark}},dotColor(){return this.dark?"#ff2525":"#c5393d"},markdownScopedSlots(){return Object.keys(this.$scopedSlots).filter(t=>t.startsWith("markdown.")).reduce((t,e)=>(t[e]=this.$scopedSlots[e],t),{})}},methods:{onMouseOver(){this.showActions=!0},onMouseLeave(t){[null,document.documentElement].includes(t.relatedTarget)||(this.showActions=!1)},onFeedback(t){this.$emit("feedback",t),this.$setTimeout(()=>{this.showActions=!1},1e3)}}}),k7="";var p4=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("div",{staticClass:"e-chat-message",on:{mouseenter:e.onMouseOver,mouseleave:e.onMouseLeave}},[r("div",{staticClass:"e-chat-message__wrapper e-flex e-items-start e-justify-start e-gap-3",class:{"e-chat-message__rtl":!e.isBotRole}},[e.showAvatar?r("div",{staticClass:"e-chat-message__avatar e-mt-3"},[e.isBotRole?e._t("message-avatar",function(){return[r("div",{class:e.logoClasses},[r("EEvercamLogo",{attrs:{size:e.dark?"2xs":"xs"}})],1)]},{role:e.role}):r("EAvatar",{attrs:{image:e.avatarSrc,size:"xs"}},[e._v(e._s(e.initials))])],2):e._e(),r("div",{staticClass:"e-chat-message__content e-flex"},[e.isLoading&&e.isBotRole?e._t("loadingPlaceholder",function(){return[r("div",[e.loadingMessage?r("EMarkdown",{staticClass:"e-chat-message__markdown e-italic",attrs:{chunks:[e.loadingMessage],animated:"",dark:e.dark,copyable:!1}}):e._e(),r("div",{staticClass:"e-inline-block e-mt-5 e-ml-2"},[r("EPulsatingDot",{attrs:{size:8,color:e.dotColor}})],1)],1)]}):e.isBotRole?r("EMarkdown",{staticClass:"e-chat-message__markdown",attrs:{chunks:e.message,animated:e.animated,dark:e.dark,"exposed-regexes":e.exposedRegexes},on:{"animation-end":function(n){return e.$emit("animation-end")},"animation-start":function(n){return e.$emit("animation-start")}},scopedSlots:e._u([e._l(e.markdownScopedSlots,function(n,s){return{key:s,fn:function(l){return[e._t(s,null,null,l)]}}})],null,!0)}):r("p",{staticClass:"e-chat-message__content e-font-medium e-text-wrap e-mb-1 e-mt-[12px] e-rounded-lg e-p-2 e-px-4",class:e.userMessageClasses},[e._v(" "+e._s(e.message)+" ")]),e._t("extraContent")],2)]),r("EFadeTransition",[e.withActions&&e.showActions?r("EChatMessageActions",{staticClass:"e-left-11",attrs:{dark:e.dark,"show-copy-button":e.showCopyButton,"show-feedback-buttons":e.showFeedbackButtons,message:e.message},on:{feedback:e.onFeedback}}):e._e()],1)],1)},m4=[],g4=Y(f4,p4,m4,!1,null,null,null,null);const v4=g4.exports,_4=j.extend({name:"EChatFooter",props:{dark:{type:Boolean,default:!1},inline:{type:Boolean,default:!1}},computed:{backgroundClasses(){return this.inline?{}:{"e-bg-gray-700":this.dark,"e-bg-gray-50":!this.dark}},footerClasses(){return{...this.backgroundClasses}}}});var y4=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("div",{staticClass:"e-chat-footer e-px-3 e-pt-4 e-pb-3",class:e.footerClasses},[e._t("default")],2)},C4=[],b4=Y(_4,y4,C4,!1,null,null,null,null);const x4=b4.exports,w4=j.extend({name:"EChatInput",components:{EIcon:rt},model:{prop:"value",event:"prompt-changed"},props:{dark:{type:Boolean,default:!1},placeholder:{type:String,default:"Message Copilot"},disabled:{type:Boolean,default:!1}},data(){return{content:"",maxHeight:175,textAreaHeight:0,isShiftKeyPressed:!1}},computed:{textAreaContainerClasses(){return{"e-border-gray-600":this.dark&&!this.disabled,"e-border-gray-300":!this.dark&&!this.disabled,"e-border-gray-800":this.dark&&this.disabled,"e-border-gray-500":!this.dark&&this.disabled,"e-cursor-not-allowed":this.disabled}},textAreaClasses(){return{"e-bg-gray-800":this.dark,"e-bg-white":!this.dark,"e-text-gray-600":!this.dark,"e-text-gray-300":this.dark,"e-custom-scrollbar--light":!this.dark,"e-custom-scrollbar--dark":this.dark}},buttonClasses(){return{"e-bg-gray-800":this.dark,"e-bg-white":!this.dark,"e-text-gray-500":!this.dark,"e-text-gray-300":this.dark}},textareaStyle(){return this.textAreaHeight?{height:`${Math.min(this.textAreaHeight,this.maxHeight)}px`,overflowY:this.isOverflowing?"scroll":"hidden"}:{}},isOverflowing(){return!!this.textAreaHeight&&this.textAreaHeight>this.maxHeight}},mounted(){this.focus()},methods:{focus(){this.$refs.chatTextarea.focus()},submitMessage(){this.$emit("submit",this.content),this.content="",this.$nextTick(this.updateTextAreaHeight)},onInput(t){const e=t.target,r=this.content===e.value;this.content=e.value,r||(this.updateTextAreaHeight(),this.$emit("prompt-changed",e.value))},onKeyDown(t){if(!this.disabled){if(!this.isShiftKeyPressed&&t.key==="Enter"){t.preventDefault();return}if(t.key==="Shift"||t.code==="ShiftLeft"){this.isShiftKeyPressed=!0;return}}},onKeyUp(t){if(!this.disabled){if(t.key==="Shift"||t.code==="ShiftLeft"){this.isShiftKeyPressed=!1;return}t.key==="Enter"&&!this.isShiftKeyPressed&&(t.preventDefault(),this.submitMessage())}},updateTextAreaHeight(){const t=this.$refs.chatTextarea;t.style.height="auto",this.textAreaHeight=t.scrollHeight}}}),M7="";var S4=function(){var e=this,r=e._self._c;return r("div",{staticClass:"e-chat-input e-relative e-flex e-w-auto e-p-2",class:{"e-opacity-50":e.disabled}},[r("div",{staticClass:"e-rounded-lg e-w-full e-overflow-hidden e-border e-border-solid",class:e.textAreaContainerClasses},[r("textarea",e._b({ref:"chatTextarea",staticClass:"e-chat-input__textarea focus:e-outline-none e-mr-6 e-border-none e-placeholder-gray-400 e-py-3 e-pl-3 e-w-full",class:e.textAreaClasses,style:e.textareaStyle,attrs:{rows:"1",tabindex:"0",autofocus:"",placeholder:e.placeholder,disabled:e.disabled},on:{keydown:function(n){return n.stopPropagation(),e.onKeyDown.apply(null,arguments)},keyup:e.onKeyUp,input:e.onInput}},"textarea",e.$attrs,!1))]),r("div",{staticClass:"e-absolute e-bottom-3 e-items-center e-flex e-h-min",class:e.isOverflowing?"e-right-6":"e-right-4"},[r("button",{staticClass:"e-chat-input__submit-btn e-inline-flex e-items-center e-justify-center e-cursor-pointer disabled:e-cursor-not-allowed e-h-8 e-w-8 e-border-none focus:e-outline-none",class:e.buttonClasses,attrs:{type:"button",disabled:e.disabled},on:{click:function(n){return n.preventDefault(),e.submitMessage.apply(null,arguments)}}},[r("EIcon",{attrs:{icon:"arrow-up",size:"base"}})],1)])])},T4=[],k4=Y(w4,S4,T4,!1,null,null,null,null);const M4=k4.exports,E4=j.extend({name:"EChatSuggestionCard",components:{EIcon:rt},props:{text:{type:String,required:!0},icon:{type:String,default:null},color:{type:String,default:"e-text-gray-500"},dark:{type:Boolean,default:!1}},computed:{classes(){return{"hover:e-bg-gray-100 e-border-gray-200":!this.dark,"e-bg-gray-800 e-border-gray-600 hover:e-bg-gray-900":this.dark}}}});var $4=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("div",e._g(e._b({staticClass:"e-chat-suggestion e-w-full e-h-full e-p-3 e-border-solid e-border-[1.67px] e-rounded-xl e-cursor-pointer",class:e.classes},"div",e.$attrs,!1),e.$listeners),[r("div",{staticClass:"e-chat-suggestion__icon e-h-6 e-w-6 e-mb-2"},[e.icon?r("EIcon",{attrs:{icon:e.icon,size:"lg",color:e.color}}):e._t("svg-icon")],2),r("p",{staticClass:"e-chat-suggestion__text e-font-medium e-antialiased e-text-wrap",class:{"e-text-gray-200":e.dark,"e-text-gray-600":!e.dark}},[e._v(" "+e._s(e.text)+" ")])])},L4=[],D4=Y(E4,$4,L4,!1,null,null,null,null);const P4=D4.exports,O4=j.extend({components:{EChatWrapper:h6,EChatHeader:b6,EChatBody:k6,EChatMessage:v4,EChatFooter:x4,EChatInput:M4,EChatSuggestionCard:P4,ERow:Pr,ECol:Or,EEvercamLogo:tn},props:{dark:{type:Boolean,default:!1},messages:{type:Array,default:()=>[]},user:{type:String,default:"You"},embedded:{type:Boolean,default:!1},showHeader:{type:Boolean,default:!0},inlineFooter:{type:Boolean,default:!1},height:{type:String,default:void 0},width:{type:String,default:void 0},showUserAvatar:{type:Boolean,default:!0},showCopilotAvatar:{type:Boolean,default:!0},readonly:{type:Boolean,default:!1},isLoading:{type:Boolean,default:!1},isDisabled:{type:Boolean,default:!1},headerText:{type:String,default:"Evercam Copilot"},inputPlaceholder:{type:String,default:"Message Copilot"},loadingMessage:{type:String,default:""},suggestions:{type:Array,default:()=>[]},exposedRegexes:{type:Array,default:()=>[]}},data(){return{prompt:"",containerHeight:0,headerHeight:0,bodyHeight:0,footerHeight:0}},computed:{ChatMessageRole(){return Ze},userInitials(){var t,e,r;return((r=(e=(t=this.user.trim())==null?void 0:t.split(/\s+/))==null?void 0:e.map(n=>{var s;return((s=n==null?void 0:n.charAt(0))==null?void 0:s.toUpperCase())||""}))==null?void 0:r.join(""))||this.user[0]||""},chatBodyStyle(){return this.bodyHeight?{maxHeight:`${this.bodyHeight}px`,height:`${this.bodyHeight}px`}:{}},wrapperStyle(){return{height:this.height||"100%",width:this.width||"100%"}},bodyBorderClasses(){let t={};this.showHeader&&(t={"e-border-t-[1px] e-border-t-solid":!0,"e-border-t-gray-300":!this.dark,"e-border-t-gray-600":this.dark});let e={};return this.inlineFooter||(e={"e-border-b-[1px] e-border-b-solid":!0,"e-border-b-gray-300":!this.dark,"e-border-b-gray-600":this.dark}),{...t,...e}},markdownScopedSlots(){return Object.keys(this.$scopedSlots).filter(t=>t.startsWith("markdown.")).reduce((t,e)=>(t[e]=this.$scopedSlots[e],t),{})}},watch:{height(){this.updateChatBodyHeight()},showHeader(){this.updateChatBodyHeight()}},mounted(){this.updateChatBodyHeight()},methods:{sendMessage(){!this.isDisabled&&this.prompt.length>0&&(this.$emit("user-message",this.prompt),this.prompt="")},isUserMessage(t){return t.role===Ze.USER},hasActions(t){return this.isLoading||this.isDisabled?!1:t.role===Ze.COPILOT},getMessageContent(t){return t.content},getMessageInitials(t){return this.isUserMessage(t)?this.userInitials:null},getMessageClasses(t,e){return{"e-mb-11":e===this.messages.length-1&&this.hasActions(t)}},updateChatBodyHeight(){this.$nextTick(()=>{var n,s,l;const t=(n=this.$refs.chatContainer)==null?void 0:n.$el,e=(s=this.$refs.chatHeader)==null?void 0:s.$el,r=(l=this.$refs.chatFooter)==null?void 0:l.$el;!t||!e||!r||(this.headerHeight=e.clientHeight,this.footerHeight=r.clientHeight,this.containerHeight=t.clientHeight,this.height?this.bodyHeight=parseInt(this.height)-this.headerHeight-this.footerHeight:this.bodyHeight=Math.max(500,this.containerHeight-this.headerHeight-this.footerHeight))})},isAvatarVisible(t){return t.role===Ze.USER?this.showUserAvatar:t.role===Ze.COPILOT?this.showCopilotAvatar:!0},onMessageFeedback(t,e){this.$emit("message-feedback",{...t,messageId:e})}}}),E7="";var z4=function(){var e=this,r=e._self._c;return r("EChatWrapper",{ref:"chatContainer",staticClass:"e-chat-wrapper",style:e.wrapperStyle,attrs:{dark:e.dark,embedded:e.embedded}},[r("div",{staticClass:"e-w-full e-h-full e-chat-container"},[r("EChatHeader",{ref:"chatHeader",attrs:{hidden:!e.showHeader,dark:e.dark,title:e.headerText},scopedSlots:e._u([{key:"chip",fn:function(){return[e._t("chip")]},proxy:!0}],null,!0)}),r("EChatBody",{ref:"chatBody",class:e.bodyBorderClasses,style:e.chatBodyStyle,attrs:{dark:e.dark}},[e.messages.length===0&&e.suggestions.length>0?r("div",{staticClass:"e-w-full e-flex e-flex-col e-items-center e-justify-center e-mt-8"},[r("div",{staticClass:"e-mb-8"},[r("EEvercamLogo",{attrs:{size:"lg"}})],1),r("ERow",{staticClass:"e-w-full e-flex e-justify-center e-items-stretch e-gap-4",attrs:{"no-gutters":""}},e._l(e.suggestions,function(n){return r("ECol",{key:n.text,attrs:{cols:"12",sm:"12",md:"4"}},[r("EChatSuggestionCard",{attrs:{text:n.text,icon:n.icon,color:n.color,dark:e.dark},on:{click:function(s){return e.$emit("suggestion-clicked",n)}}})],1)}),1)],1):r("div",e._l(e.messages,function(n,s){return r("EChatMessage",{key:`${n.id}-${s}`,class:e.getMessageClasses(n,s),attrs:{dark:e.dark,role:n.role,"is-loading":n.isLoading,"data-message-id":n.id,"show-feedback-buttons":!e.readonly,"exposed-regexes":e.exposedRegexes,"show-copy-button":"",message:e.getMessageContent(n),initials:e.getMessageInitials(n),"show-avatar":e.isAvatarVisible(n),"with-actions":e.hasActions(n)&&s>0},on:{feedback:function(l){return e.onMessageFeedback(l,n.id)},"animation-end":function(l){return e.$emit("animation-end",l)}},scopedSlots:e._u([e._l(e.markdownScopedSlots,function(l,i){return{key:i,fn:function(h){return[e._t(i,null,null,h)]}}}),{key:"extraContent",fn:function(){return[e._t("message.extraContent",null,{message:n})]},proxy:!0}],null,!0)})}),1),e.isLoading?r("EChatMessage",{attrs:{"is-loading":"","loading-message":e.loadingMessage,"data-message-id":-1,"show-avatar":e.showCopilotAvatar,role:e.ChatMessageRole.COPILOT,dark:e.dark}}):e._e()],1),r("EChatFooter",{directives:[{name:"show",rawName:"v-show",value:!e.readonly,expression:"!readonly"}],ref:"chatFooter",attrs:{dark:e.dark,inline:e.inlineFooter}},[r("EChatInput",{attrs:{dark:e.dark,disabled:e.isDisabled,placeholder:e.inputPlaceholder},on:{"prompt-changed":function(n){return e.$emit("prompt-changed",n)},submit:e.sendMessage},model:{value:e.prompt,callback:function(n){e.prompt=n},expression:"prompt"}})],1)],1)])},B4=[],I4=Y(O4,z4,B4,!1,null,"da6acaab",null,null);const A4=I4.exports,nn={EAvatar:wt,EBadge:Nt,EIcon:rt,ESpinner:Dr,ERow:Pr,ECol:Or,EVideoPlayer:Ci,ETimeline:ki,EVideoEmbed:Mi,EHeatmapBar:Xr,EHoursHeatmap:Ei,EReadMore:$i,ETruncatedDiv:Li,ECompareSeparator:Qr,EImagesComparator:Pi,EToggleSwitch:Hi,EExpandableMenu:Oi,EZoomable:Ar,EGlobalSearch:ji,ESvgIcon:Ai,ECalendarHeatmap:Fi,EFlagIcon:Ri,EImagePlayer:Gi,EZoomableImg:en,EZoomSlider:Kr,EActionButton:vt,ETooltip:Vr,ELayout:qi,EChat:A4,EContextProvider:o6,ECopyToClipboardBtn:rn},F4={install(t){Object.keys(nn).forEach(e=>{t.component(e,nn[e])}),Object.keys(Wi).forEach(e=>{t.mixin(e,Wi[e])}),bi.forEach(({name:e,definition:r})=>{t.directive(e,r)})}};U.AvatarSizes=l1,U.BadgeColors=u1,U.BadgeSizes=o1,U.BaseColor=ae,U.ChatMessageRole=Ze,U.ChatMessageType=vn,U.ClickOutsideDirective=Hr,U.Colors=di,U.DirectivesMap=bi,U.EActionButton=vt,U.EAvatar=wt,U.EBadge=Nt,U.ECalendarHeatmap=Fi,U.ECol=Or,U.ECompareSeparator=Qr,U.ECopyToClipboardBtn=rn,U.EExpandableMenu=Oi,U.EFlagIcon=Ri,U.EGlobalSearch=ji,U.EHeatmapBar=Xr,U.EHoursHeatmap=Ei,U.EIcon=rt,U.EImagePlayer=Gi,U.EImagesComparator=Pi,U.ELayout=qi,U.EReadMore=$i,U.ERow=Pr,U.ESpinner=Dr,U.ESvgIcon=Ai,U.ETimeline=ki,U.EToggleSwitch=Hi,U.ETooltip=Vr,U.ETruncatedDiv=Li,U.EVENTS=f1,U.EVideoEmbed=Mi,U.EVideoPlayer=Ci,U.EZoomSlider=Kr,U.EZoomable=Ar,U.EZoomableImg=en,U.FeedbackType=Ht,U.IconSizes=hi,U.ImageQuality=gn,U.Position=Oe,U.ResizeObserverDirective=Qe,U.Size=J,U.TextSizes=ui,U.TimelineAxis=et,U.TimelineChartType=je,U.TimelineIntervalChangeTrigger=xt,U.ToggleSwitchSizes=c1,U.TooltipColors=d1,U.TooltipPositions=h1,U.components=nn,U.debounce=fi,U.default=F4,U.eventListeners=Ve,U.exitFullScreen=Ir,U.fullConfig=Lr,U.generateUniqueId=vi,U.getImageData=D1,U.getRandomChars=L1,U.hashCode=_i,U.hexToRgba=pi,U.inactivityListener=Ni,U.isFullScreen=zr,U.isRgba=gi,U.isValidDate=P1,U.makeFullScreen=Br,U.rgbToRgba=mi,U.timeouts=Ge,U.toRgba=dt,Object.defineProperties(U,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
202
|
+
c-31.709,0-54.784,23.208-63.82,63.896l13.34,1.769L182.443,107.77z`}})])])},Zl=[],Ul=Y(Gl,ql,Zl,!1,null,null,null,null);const Yl=Ul.exports,Xl=j.extend({name:"ZohoCrm",components:{BaseIcon:ge},props:{color:{type:String,default:"grey"}}});var Ql=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("BaseIcon",e._b({attrs:{height:"20",width:"20",viewBox:"16 -9 5 40",small:!0,color:e.color}},"BaseIcon",e.$attrs,!1),[r("path",{attrs:{stroke:e.color,"stroke-width":"1",d:"M26.2 24c-3.2 0-6.2-1.2-8.4-3.5l-6.6-6.6c-.8-.8-1.2-1.8-1.2-2.9s.4-2.1 1.2-2.9C11.9 7.4 12.9 7 14 7c1.1 0 2.1.4 2.9 1.2l6.1 6.1c.7.7 1.9.7 2.6 0 .3-.3.5-.8.5-1.3s-.2-1-.5-1.3L19 5.1c-2-1.9-4.4-2.9-7-2.9-2.7 0-5.1 1-7 2.9-1.8 1.9-2.8 4.4-2.8 7 .1 2.6 1.1 5 2.9 6.8 1.8 1.8 4.3 2.8 6.8 2.8.9 0 1.9-.1 2.8-.4.6-.2 1.2.2 1.4.8.2.6-.2 1.2-.8 1.4-1 .4-2.1.5-3.3.5-3.2 0-6.2-1.2-8.4-3.4C1.3 18.4.1 15.4 0 12.3c0-1.7.3-3.3.9-4.8s1.4-2.8 2.5-3.9 2.4-2 3.8-2.6c1.5-.6 3.1-1 4.7-1 3.2 0 6.2 1.2 8.4 3.5l6.6 6.6c.8.8 1.2 1.8 1.2 2.9s-.4 2.1-1.2 2.9c-1.6 1.6-4.2 1.6-5.7 0l-6.1-6.1c-.7-.7-1.9-.7-2.6 0-.3.3-.5.8-.5 1.3s.2 1 .5 1.3l6.6 6.6c1.8 1.8 4.3 2.8 6.9 2.8s5.1-1 6.9-2.9c1.8-1.8 2.9-4.3 2.9-6.9s-1-5.1-2.9-6.9c-1.8-1.8-4.3-2.9-6.9-2.9-.8 0-1.7.1-2.5.3-.1 0-.2.1-.3.1-.6.2-1.2-.2-1.4-.8-.2-.6.2-1.2.8-1.4.1 0 .3-.1.4-.1 1-.3 2-.4 3-.4 1.6 0 3.2.3 4.7.9 1.4.6 2.7 1.5 3.8 2.6s2 2.4 2.6 3.8c.6 1.5.9 3.1.9 4.7 0 3.2-1.3 6.2-3.5 8.5-2.1 2.4-5.1 3.6-8.3 3.6z"}})])},Vl=[],Kl=Y(Xl,Ql,Vl,!1,null,null,null,null);const Jl=Kl.exports,e3=j.extend({name:"Tag",components:{BaseIcon:ge},props:{color:{type:String,default:"#000"},backgroundColor:{type:String,default:"white"}}});var t3=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("BaseIcon",e._b({attrs:{small:!0,width:"24",height:"24",viewBox:"0 0 24 24"}},"BaseIcon",e.$attrs,!1),[r("path",{attrs:{fill:e.color,d:"M22,4C22,2.89 21.1,2 20,2H4A2,2 0 0,0 2,4V16A2,2 0 0,0 4,18H18L22,22V4Z"}}),r("line",{attrs:{x1:"6",y1:"7",x2:"18",y2:"7",stroke:e.backgroundColor,"stroke-width":"2"}}),r("line",{attrs:{x1:"6",y1:"10",x2:"18",y2:"10",stroke:e.backgroundColor,"stroke-width":"2"}}),r("line",{attrs:{x1:"6",y1:"13",x2:"18",y2:"13",stroke:e.backgroundColor,"stroke-width":"2"}})])},r3=[],n3=Y(e3,t3,r3,!1,null,null,null,null);const i3=n3.exports,s3=j.extend({name:"Tag",components:{BaseIcon:ge},props:{color:{type:String,default:"#000"},backgroundColor:{type:String,default:"white"}}});var a3=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("BaseIcon",e._b({attrs:{small:!0,width:"24",height:"24",viewBox:"0 0 24 24"}},"BaseIcon",e.$attrs,!1),[r("path",{attrs:{fill:e.color,d:"M22,4C22,2.89 21.1,2 20,2H4A2,2 0 0,0 2,4V16A2,2 0 0,0 4,18H18L22,22V4Z"}}),r("line",{attrs:{x1:"12",y1:"6",x2:"12",y2:"14",stroke:e.backgroundColor,"stroke-width":"2"}}),r("line",{attrs:{x1:"8",y1:"10",x2:"16",y2:"10",stroke:e.backgroundColor,"stroke-width":"2"}})])},o3=[],l3=Y(s3,a3,o3,!1,null,null,null,null);const c3=l3.exports,u3={Bim:w5,Blur:E5,Compare:O5,ConcretePump:F5,CompactExcavator:zi,DroneView:j5,Dumper:Y5,Evercam:J5,EvercamLogo:i2,Excavator:zi,FlatbedSemiTrailer:f2,FreeDrawing:_2,IModel:w2,Inspection:E2,Loader:O2,MiniModel:F2,OtherTruck:Bi,RoadVehicle:U2,Roller:K2,Robot:nl,SemiTrailer:ll,SkidSteerLoader:fl,SmallTruck:_l,TankTruck:wl,The360:El,TippingTruck:Ol,TruckHead:Fl,TruckMixer:jl,Unknown:Bi,Worker:Yl,ZohoCrm:Jl,Tag:i3,TagPlus:c3},d3=t=>t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),Ii=Object.fromEntries(Object.entries(u3).map(([t,e])=>[d3(t),e])),h3=j.extend({name:"ESvgIcon",components:{...Ii},props:{icon:{type:String,default:""}},computed:{svgIconComponent(){return Ii[this.icon]}}});var f3=function(){var e=this,r=e._self._c;return e._self._setupProxy,r(e.svgIconComponent,e._g(e._b({tag:"component",staticClass:"e-svg-icon"},"component",e.$attrs,!1),e.$listeners))},p3=[],m3=Y(h3,f3,p3,!1,null,null,null,null);const Ai=m3.exports,l7="",g3={name:"ECalendarHeatmap",components:{EIcon:rt},mixins:[Ge],props:{items:{type:Array,default:()=>[]},startDate:{type:String,default:""},endDate:{type:String,default:""},dayRectSize:{type:Number,default:11},dayGutterSize:{type:Number,default:2},monthGutterSize:{type:Number,default:12},textSize:{type:Number,default:11},borderRadius:{type:Number,default:1},disableMissing:{type:Boolean,default:!1},selectedDate:{type:[String],default:""},labelFn:{type:Function,default:({date:t,count:e})=>`${t}, ${e}`},isDisabledFn:{type:Function,default:()=>!1},highlightColorFn:{type:[Function,null],default:null},colors:{type:Array,default:()=>["#ebedf0","#c0ddf9","#73b3f3","#3886e1","#17459e"]},visibleWeekDays:{type:Array,default:()=>[1,3,5]},controls:{type:Boolean,default:!0},legend:{type:Boolean,default:!0},fullWidth:{type:Boolean,default:!1},isDark:{type:Boolean,default:!1},disabledColor:{type:String,default:"#bababa"}},data(){return{tooltipVisibility:!1,tooltipPositionX:0,tooltipPositionY:0,tooltipContent:"",hoveredDayDate:"",smallTextRatio:.9,daysOffset:0}},computed:{_startDate(){return this._moment(this.startDate).add({days:this.daysOffset}).format("YYYY-MM-DD")},_endDate(){return this._moment(this.endDate).add({days:this.daysOffset}).format("YYYY-MM-DD")},svgWidth(){const t=this._moment(this._endDate).format("YYYY-MM");return this.fullWidth?"calc(100% - 30px)":this.monthsHorizontalTranslations[t]+this.getMonthWidth(this._endDate)},svgHeight(){return this.monthOffsetTop+this.monthHeight+(this.legend?2*this.dayRectSize:0)},maxCount(){return this.items.reduce((t,e)=>Math.max(e.count,t),0)},itemsMap(){return this.items.reduce((t,e)=>({...t,[e.day]:{...e,count:e.count,label:this.labelFn(e),disabled:e.disabled}}),{})},datesTree(){let t={},e=this._moment(this._startDate);const r=new Date(this._endDate).getTime();for(;e<=r;){const n=e.format("YYYY"),s=e.format("MM"),l=e.format("YYYY-MM-DD");let i={...this.itemsMap[l],date:l,selected:l===this.selectedDate};this.itemsMap[l]||(i={...i,count:0,date:l,disabled:this.isDisabledFn(l)},i={...i,label:this.labelFn(i)}),t={...t,[`${n}-${s}`]:{...t[`${n}-${s}`],[l]:{...i,weekDay:e.day(),weekNumber:this.getWeekOfMonth(e)}}},e.add({days:1})}return t},monthsHorizontalTranslations(){const t=this._moment(this._startDate),e=this._moment(this._startDate).startOf("month"),r=this.dayFullSize*(this.getWeekOfMonth(t)-this.getWeekOfMonth(e)),n=this._moment(this._startDate).startOf("month"),s=this._moment(this._endDate).startOf("month"),l=this._moment(n);let i={},h=-r,a;for(;l<=s;){let o=a?this.getMonthWidth(a):0;const u=l.startOf("month").day()===0;let f=0;u&&l>n&&(f=this.monthGutterSize);let m=this.dayFullSize;h+=o+this.monthGutterSize-m+f,i[l.format("YYYY-MM")]=h,a=l.clone(),l.add({months:1})}return i},dayFullSize(){return this.dayRectSize+this.dayGutterSize},monthOffsetTop(){return this.textSize*2},monthOffsetLeft(){return 2.5*this.textSize},monthHeight(){return this.dayFullSize*7},textStyle(){return{fontSize:`${this.textSize}px`}},legendStyle(){const t=this.dayRectSize/2;return{transform:`translate(${t+this.monthOffsetLeft}px, ${this.monthHeight+this.monthOffsetTop+t}px)`}},legendPrefixTextStyle(){return{fontSize:this.textSize*this.smallTextRatio,transform:`translate(${this.dayGutterSize*2}px, ${this.dayRectSize*this.smallTextRatio}px)`,fill:this.fillTextColor}},legendPrefixTextWidth(){return 4*this.textSize*this.smallTextRatio-2*this.dayGutterSize},legendSuffixTextStyle(){const t=(this.dayRectSize+this.dayGutterSize*2)*this.colors.length+this.legendPrefixTextWidth,e=this.dayGutterSize;return{fontSize:this.textSize*this.smallTextRatio,transform:`translate(${e+t}px, ${this.dayRectSize*this.smallTextRatio}px)`,fill:this.fillTextColor}},fillTextColor(){return this.isDark?"white":"black"}},methods:{_moment(...t){return Se(...t).locale("en")},getWeekOfMonth(t){let e=t.week();return t.year()!==t.weekYear()&&(e=t.clone().subtract(1,"week").week()+1),e-this._moment(t).startOf("month").week()+1},getWeekDayTextStyle(t){return this.visibleWeekDays.includes(t)?{...this.textStyle,transform:`translate(${this.dayRectSize}px, ${t*this.dayFullSize+3*this.textSize/4+this.monthOffsetTop}px)`,fill:this.fillTextColor}:{display:"none"}},getMonthTextStyle(t,e){const r=Se.duration(this._moment(this._endDate).diff(this._moment(e))).asDays(),n=Se.duration(this._moment(e).endOf("month").diff(this._moment(this._startDate))).asDays();if(r<15||n<15)return{display:"none"};const s=this.isStartOfYear(e)?this.textSize:0;return{...this.textStyle,transform:`translate(${this.getMonthWidth(e)/2+this.textSize/3-s}px, -${this.textSize*2/3}px)`,fill:this.fillTextColor}},getMonthStyle(t,e){return{transform:`translate(${this.monthsHorizontalTranslations[e]+this.monthOffsetLeft}px, ${this.monthOffsetTop}px)`}},getMonthWidth(t){const e=this._moment(t).endOf("month");return this.dayFullSize*this.getWeekOfMonth(e)},getHighlightStyle(t,e){if(!this.highlightColorFn||typeof this.highlightColorFn!="function")return{};const r=this.highlightColorFn(e);return r?{strokeWidth:t.selected?2:1,stroke:r}:{}},getDayStyle(t,e){let r={};return t.selected&&(r={stroke:this.fillTextColor}),{transform:`translate(${t.weekNumber*this.dayFullSize}px, ${t.weekDay*this.dayFullSize}px)`,fill:`${this.getDayColor(t.count)}`,...this.getHighlightStyle(t,e),...r}},getDisabledDayPath(t){const e=t.weekNumber*this.dayFullSize,r=t.weekDay*this.dayFullSize,n=e+this.dayRectSize,s=r+this.dayRectSize,l=e+this.dayRectSize/2,i=r+this.dayRectSize/2;return[`M ${e} ${r}`,`L ${l} ${i}`,`L ${e} ${s}`,`M ${n} ${r}`,`L ${l} ${i}`,`L ${n} ${s}`].join(" ")},getDayColor(t){const e=Math.ceil(t/this.maxCount*(this.colors.length-1));return this.colors[e]},getLegendRectStyle(t){return{transform:`translateX(${(this.dayRectSize+this.dayGutterSize*2)*t+this.legendPrefixTextWidth}px)`}},isStartOfYear(t){return Se(t).get("month")===0},getMonthText(t){return this._moment(t).format(this.isStartOfYear(t)?"MMM YYYY":"MMM")},onDayRectMouseEnter(t,e){this.tooltipContent=e.label,this.tooltipVisibility=!0,this.hoveredDayDate=e.date,this.$nextTick(()=>{this.calculateTooltipPosition(t)})},calculateTooltipPosition(t){var u;const e=this.$el.getBoundingClientRect(),r=((u=t.target)==null?void 0:u.getBoundingClientRect())||{x:0,y:0},n=r.left-e.left,s=r.top-e.top,l=r.bottom-e.top,i=this.$refs.tooltip.clientWidth,h=this.$refs.tooltip.clientHeight;let a=n+r.width/2-i/2;a+e.left<e.left?a=0:a+e.left+i>=e.right&&(a=e.width-i);let o=s-h-this.dayFullSize/2;o+e.top<=e.top&&(o=l+this.dayFullSize/2),this.tooltipPositionX=a,this.tooltipPositionY=o},onDayRectMouseLeave(){this.tooltipVisibility=!1,this.hoveredDayDate=""}}};var v3=function(){var e=this,r=e._self._c;return r("div",{staticClass:"e-heatmap-calendar overflow-x-hidden",class:{"e-text-white":e.isDark}},[e.controls?r("div",{staticClass:"e-heatmap-calendar__control-left",on:{click:function(n){e.daysOffset-=30}}},[r("EIcon",{attrs:{icon:"angle-left",size:"xs"}})],1):e._e(),r("svg",{attrs:{width:e.svgWidth,height:e.svgHeight}},[r("g",[r("g",e._l(Array(7),function(n,s){return r("text",{key:s,style:e.getWeekDayTextStyle(s)},[e._v(" "+e._s(e._moment().day(s).format("ddd"))+" ")])}),0),e._l(e.datesTree,function(n,s,l){return r("g",{key:s,staticClass:"e-heatmap-calendar__month",style:e.getMonthStyle(l,s)},[r("text",{style:e.getMonthTextStyle(l,s)},[e._v(" "+e._s(e.getMonthText(s))+" ")]),e._l(n,function(i,h){return r("g",{key:`${h}`,staticClass:"e-heatmap-calendar__day",class:{"e-heatmap-calendar__day--hovered":e.hoveredDayDate===h,"e-heatmap-calendar__day--disabled":i.disabled,"e-heatmap-calendar__day--selected":i.selected}},[r("rect",{style:e.getDayStyle(i,h),attrs:{rx:e.borderRadius,height:e.dayRectSize,width:e.dayRectSize},on:{mouseenter:a=>e.onDayRectMouseEnter(a,i),mouseleave:e.onDayRectMouseLeave,mouseup:function(a){return e.$emit("item-selected",i)}}}),i.disabled?r("path",{style:`stroke: ${e.disabledColor};`,attrs:{d:e.getDisabledDayPath(i)}}):e._e()])})],2)}),e.legend&&!e.$slots.customLegend?r("g",{style:e.legendStyle},[r("text",{style:e.legendPrefixTextStyle},[e._v("less")]),e._l(e.colors,function(n,s){return r("rect",{key:s,style:e.getLegendRectStyle(s),attrs:{height:e.dayRectSize,width:e.dayRectSize,fill:n,rx:e.borderRadius}})}),r("text",{style:e.legendSuffixTextStyle},[e._v("more")])],2):e._e(),r("foreignObject",{attrs:{height:e.svgHeight,width:e.svgWidth,"pointer-events":"none"}},[r("div",{staticClass:"e-heatmap-calendar__custom-legend"},[e._t("customLegend")],2)])],2)]),r("div",{ref:"tooltip",staticClass:"e-heatmap-calendar__tooltip",class:{"e-heatmap-calendar__tooltip--visible":e.tooltipVisibility},style:{top:e.tooltipPositionY+"px",left:e.tooltipPositionX+"px"}},[e._v(" "+e._s(e.tooltipContent)+" ")]),e.controls?r("div",{staticClass:"e-heatmap-calendar__control-right",on:{click:function(n){e.daysOffset+=30}}},[r("EIcon",{attrs:{icon:"angle-right",size:"sm"}})],1):e._e()])},_3=[],y3=Y(g3,v3,_3,!1,null,"9a68e6f6",null,null);const Fi=y3.exports,C3=j.extend({name:"EFlagIcon",props:{code:{type:String,required:!0}},computed:{flagCountryIcon(){var t;return`fi fi-${(t=this.code)==null?void 0:t.toLowerCase()}`}}}),c7="";var b3=function(){var e=this,r=e._self._c;return e._self._setupProxy,e.code?r("span",{class:e.flagCountryIcon}):e._e()},x3=[],w3=Y(C3,b3,x3,!1,null,null,null,null);const Ri=w3.exports,S3=j.extend({name:"EToggleSwitch",model:{prop:"value",event:"switch-value-change"},props:{options:{type:Array,required:!0},color:{type:String,default:"brand"},size:{type:String,default:J.sm},defaultValue:{type:[String,Number,Boolean],default:null},value:{type:[String,Number,Boolean],default:null}},computed:{sizeClasses(){return{container:{"e-p-1 e-leading-3":this.size===J.sm,"e-p-1.5":this.size===J.md,"e-p-2":this.size===J.lg},button:{"e-py-[.2rem] e-p-1 e-rounded-md":this.size===J.sm,"e-p-1":this.size===J.md,"e-p-1.5":this.size===J.lg},text:{"e-text-xs":this.size===J.sm,"e-text-sm":this.size===J.md,"e-text-base":this.size===J.lg}}},containerClasses(){return{...this.sizeClasses.container,"e-flex e-items-center e-justify-center e-w-fit e-h-min e-bg-gray-900 e-rounded-md e-e-shadow-md e-transition-colors e-duration-200 e-ease-in-out":!0}},textClasses(){return{...this.sizeClasses.text,"e-font-medium":!0}},buttonBaseClasses(){return{"e-cursor-pointer":!0,"e-text-gray-100 e-rounded-md e-shadow e-transition e-duration-200 e-ease-in-out":!0}}},methods:{onValueChange(t){const e=t.target;this.$emit("switch-value-change",e.checked)},getButtonClasses(t){const e={"e-border-none":!0,"e-bg-inherit":this.value!==t,"e-bg-brand-600":this.color==="brand"&&this.value===t,"e-bg-gray-600":!["primary","brand"].includes(this.color)&&this.value===t,"e-bg-[#629efc] e-text-gray-900 e-font-normal":this.color==="primary"&&this.value===t};return{...this.buttonBaseClasses,...this.sizeClasses.button,...e}},handleClick(t){this.$emit("switch-value-change",t)}}});var T3=function(){var e=this,r=e._self._c;return r("div",{class:e.containerClasses},[r("input",{staticClass:"e-hidden",attrs:{id:"toggle",type:"checkbox"},on:{change:e.onValueChange}}),e._l(e.options,function(n){return r("button",{key:n.value,class:e.getButtonClasses(n.value),on:{click:function(s){return e.handleClick(n.value)}}},[r("span",{class:e.textClasses},[e._v(e._s(n.title))])])})],2)},k3=[],M3=Y(S3,T3,k3,!1,null,null,null,null);const Hi=M3.exports,Ni=j.extend({mixins:[Ve,Ge],data(){return{inactivityListeners:[],isInactivityListenerActive:!1}},beforeDestroy(){this.$removeInactivityListeners()},methods:{resetInactivityListenerTimer(t=()=>{},e=0,r=[]){this.isInactivityListenerActive&&(this.$clearTimeouts(),this.setInactivityListenerTimer(t,e,r))},setInactivityListenerTimer(t=()=>{},e=0,r=[]){t&&e&&this.$setTimeout(()=>{t(),r.length>0&&this.setInactivityListenerReminderTimers(t,r)},e*1e3)},setInactivityListenerReminderTimers(t=()=>{},e=[],r=0){const n=e[r];r<e.length?this.$setTimeout(()=>{t(),this.setInactivityListenerReminderTimers(t,e,r+1)},n*1e3):this.isInactivityListenerActive&&this.$removeInactivityListeners()},$registerInactivityListener({callback:t=()=>{},duration:e=0,reminders:r=[]}){this.isInactivityListenerActive=!0,this.resetInactivityListenerTimer(t,e,r);const n=()=>this.resetInactivityListenerTimer(t,e,r);this.$addEventListener("mousemove",n),this.inactivityListeners.push(n)},$removeInactivityListeners(){this.isInactivityListenerActive&&(this.isInactivityListenerActive=!1,this.inactivityListeners.forEach(t=>{this.$removeEventListener("mousemove",t)}),this.$clearTimeouts())}}}),Wi=Object.freeze(Object.defineProperty({__proto__:null,eventListeners:Ve,inactivityListener:Ni,timeouts:Ge},Symbol.toStringTag,{value:"Module"})),E3=j.extend({name:"EGlobalSearch",components:{EIcon:rt},mixins:[Ve],props:{dark:{type:Boolean,default:!1},items:{type:Array,default:()=>[]},timezone:{type:String,default:"Europe/Dublin"},convertedDateFormat:{type:String,default:"YYYY-MM-DDTHH:mm:ss"},currentDateFormat:{type:String,default:"YYYY-MM-DDTHH:mm:ssZ"},isFixedPosition:{type:Boolean,default:!0},isHidden:{type:Boolean,default:!0},deep:{type:Boolean,default:!0}},data(){return{search:"",isSearching:!1}},computed:{inputClasses(){return{"e-bg-gray-900 e-text-white e-ring-gray-700 focus:e-ring-2 focus:e-ring-blue-500 e-placeholder-gray-500":this.dark,"e-bg-white e-text-[#000057] e-ring-gray-300 hover:e-ring-gray-100 focus:e-ring-blue-500 e-placeholder-gray-400":!this.dark}}},watch:{search(t){t?t.length>=3&&this.$emit("search-results",this.searchObjectsByQuery(this.items,t)):this.$emit("reset")}},mounted(){!this.isHidden&&this.search.length>0?this.isSearching=!0:(this.$addEventListener("keydown",this.onKeyHandler),this.$addEventListener("keyup",this.onKeyHandler))},methods:{onInput(t){this.search=t.target.value},searchObjectsByQuery(t,e){return t.reduce((r,n,s)=>{const l=this.findMatchesInObject(n,e,[]);return l.length>0&&r.push({index:s,matches:l}),r},[])},findMatchesInObject(t,e,r){return Object.entries(t).reduce((n,[s,l])=>{const i=[...r,s],h=this.matchesQuery(l,e)?[{path:i,value:l}]:[];let a=[];this.deep&&Array.isArray(l)&&(a=l.flatMap((u,f)=>this.findMatchesInObject(u,e,[...i,`${f}`])));const o=this.deep&&typeof l=="object"&&l!==null?this.findMatchesInObject(l,e,i):[];return[...n,...h,...a,...o]},[])},matchesQuery(t,e){return`${this.isValidDate(t)?this.formattedTimestamp(t):t}`.toLowerCase().indexOf(e.toLowerCase())!==-1},isValidDate(t){return Se(t,this.currentDateFormat,!0).isValid()},formattedTimestamp(t){return Se.tz(t,this.timezone).format(this.convertedDateFormat)},onKeyHandler(t){const e=t,r=e.ctrlKey&&e.type==="keydown",n=e.shiftKey&&e.type==="keydown",s=["f","F"].includes(e.key)&&e.type==="keydown",l=e.key==="Escape"&&e.type==="keydown";s&&r&&n&&(this.isSearching=!0,this.$nextTick(()=>{const i=this.$refs.searchField;i&&i.focus()})),l&&(this.isSearching=!1,this.search="")}}}),u7="";var $3=function(){var e=this,r=e._self._c;return r("div",{directives:[{name:"show",rawName:"v-show",value:!e.isFixedPosition||e.isSearching,expression:"!isFixedPosition || isSearching"}],staticClass:"global-search e-relative",class:{"global-search--fixed e-p-4 e-bg-white e-m-3":e.isFixedPosition}},[r("div",{staticClass:"e-relative"},[r("input",e._g({directives:[{name:"model",rawName:"v-model",value:e.search,expression:"search"}],ref:"searchField",class:["global-search__field e-shadow-sm e-ring-1 e-ring-inset e-relative e-block e-w-full e-h-full disabled:e-cursor-not-allowed disabled:e-opacity-75 focus:e-outline-none e-border-0 e-text-sm e-placeholder-gray-400 e-px-4 e-py-3 e-gap-x-1.5 e-rounded-md",e.inputClasses],attrs:{id:"global-search-input",placeholder:"Search",autocomplete:"off",type:"text"},domProps:{value:e.search},on:{input:function(n){n.target.composing||(e.search=n.target.value)}}},e.$listeners)),r("span",{staticClass:"e-absolute e-inset-y-0 e-end-0 e-flex e-items-center e-justify-center e-pointer-events-none e-px-2.5"},[r("EIcon",{attrs:{icon:"search",size:"sm"}})],1)])])},L3=[],D3=Y(E3,$3,L3,!1,null,null,null,null);const ji=D3.exports,P3=j.extend({name:"ETooltip",props:{text:{type:String,required:!0},position:{type:String,default:Oe.top},color:{type:String,default:ae.default},dark:{type:Boolean,default:!1}},computed:{tooltipClasses(){const t=this.position,e=this.color,r={"e-bg-gray-800 e-text-white":!this.dark,"e-bg-slate-300 e-text-slate-800":this.dark};return{"tooltip e-w-max e-text-sm e-text-center e-px-3 e-py-2 e-absolute e-rounded-md e-shadow-md e-opacity-0 group-hover:e-opacity-100 e-transition-opacity e-duration-300":!0,"tooltip-left":t===Oe.left,"tooltip-right":t===Oe.right,"tooltip-top":t===Oe.top,"tooltip-bottom":t===Oe.bottom,"e-bg-orange-700 e-text-white":e===ae.warning,"e-bg-red-700 e-text-white":e===ae.error,"e-bg-green-900 e-text-white":e===ae.success,"e-bg-blue-700 e-text-white":e===ae.primary,"e-bg-sky-500 e-text-white":e===ae.info,"e-bg-brand-900 e-text-white":e===ae.brand,"e-bg-gray-200 e-text-gray-700":e===ae.gray,...r}},triangleClasses(){const t=this.position,e=this.color;return{"triangle e-absolute e-border-transparent":!0,"triangle-left":t===Oe.left,"triangle-right":t===Oe.right,"triangle-top":t===Oe.top,"triangle-bottom":t===Oe.bottom,"e-border-b-gray-800":e===ae.default,"e-border-b-orange-700":e===ae.warning,"e-border-b-red-700":e===ae.error,"e-border-b-green-900":e===ae.success,"e-border-b-blue-700":e===ae.primary,"e-border-b-sky-500":e===ae.info,"e-border-b-brand-900":e===ae.brand,"e-border-b-gray-900":e===ae.gray}}}}),d7="";var O3=function(){var e=this,r=e._self._c;return r("div",{staticClass:"tooltip-box e-w-max e-relative e-group"},[e._t("default"),r("div",{class:e.tooltipClasses},[r("span",{class:e.triangleClasses}),e._v(" "+e._s(e.text)+" ")])],2)},z3=[],B3=Y(P3,O3,z3,!1,null,"27d33b1f",null,null);const Qr=B3.exports,I3=j.extend({name:"EActionButton",components:{ETooltip:Qr,EIcon:rt},props:{tooltipText:{type:String,default:null},tooltipColor:{type:String,default:"default"},tooltipPosition:{type:String,default:"top"},buttonClasses:{type:[String,Object,Array],default:null},icon:{type:String,default:null},iconSize:{type:String,default:J.sm},iconColor:{type:String,default:ae.default},dark:{type:Boolean,default:!0}},computed:{withTooltip(){return!!this.tooltipText},buttonClassesContainsBg(){return this.buttonClasses?typeof this.buttonClasses=="string"&&this.buttonClasses.split("e-bg-").length>1||typeof this.buttonClasses=="object"&&Object.keys(this.buttonClasses).some(t=>t.split("e-bg-").length>1):!1},buttonStyle(){const t=this.dark?"e-bg-gray-900 e-text-white hover:e-bg-gray-700":"e-bg-white text-e-text-gray-900 hover:e-bg-gray-100";return this.buttonClassesContainsBg?this.buttonClasses:[this.buttonClasses,t]}}});var A3=function(){var e=this,r=e._self._c;return e.withTooltip?r("ETooltip",{attrs:{text:e.tooltipText,position:e.tooltipPosition,color:e.tooltipColor,dark:e.dark}},[r("button",e._g(e._b({staticClass:"e-w-max e-px-3 e-py-2 e-flex e-border-none e-justify-center e-align-middle e-items-center e-cursor-pointer",class:e.buttonStyle},"button",e.$attrs,!1),e.$listeners),[r("EIcon",{attrs:{icon:e.icon,size:e.iconSize,color:e.iconColor}}),e._t("default")],2)]):r("button",e._g(e._b({staticClass:"e-w-max e-px-3 e-py-2 e-flex e-border-none e-justify-center e-align-middle e-items-center e-cursor-pointer",class:e.buttonStyle},"button",e.$attrs,!1),e.$listeners),[r("EIcon",{attrs:{icon:e.icon,size:e.iconSize}}),e._t("default")],2)},F3=[],R3=Y(I3,A3,F3,!1,null,null,null,null);const vt=R3.exports,H3=j.extend({name:"EZoomSlider",components:{EActionButton:vt},props:{dark:{type:Boolean,default:!0}}});var N3=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("div",{staticClass:"e-flex e-flex-col e-p-5"},[r("EActionButton",{attrs:{"tooltip-text":"Zoom in","tooltip-position":"right",icon:"fas fa-plus",dark:e.dark,"icon-size":"base","button-classes":"action-btn__first-vertical e-border-none e-rounded-none e-rounded-t-md e-shadow-xl","data-test-id":"zoomable-img-zoom-in"},on:{click:function(n){return e.$emit("zoom-in")}}}),r("EActionButton",{attrs:{"tooltip-text":"Zoom out","tooltip-position":"right",icon:"fas fa-minus",dark:e.dark,"icon-size":"base","button-classes":"action-btn__last-vertical e-border-none e-rounded-none e-rounded-b-md","data-test-id":"zoomable-img-zoom-out"},on:{click:function(n){return e.$emit("zoom-out")}}})],1)},W3=[],j3=Y(H3,N3,W3,!1,null,null,null,null);const Vr=j3.exports,G3=j.extend({name:"EFadeTransition",props:{duration:{type:Number,default:300}},computed:{durationClass(){return{100:"e-duration-100",200:"e-duration-200",300:"e-duration-300",400:"e-duration-400",500:"e-duration-500",600:"e-duration-600",700:"e-duration-700",800:"e-duration-800",900:"e-duration-900",1e3:"e-duration-1000"}[this.duration]}}});var q3=function(){var e=this,r=e._self._c;return r("transition",{attrs:{"enter-active-class":`e-transition e-ease-out ${e.durationClass}`,"leave-active-class":`e-transition e-ease-in ${e.durationClass}`,"enter-class":"e-opacity-0","enter-to-class":"e-opacity-100","leave-class":"e-opacity-100","leave-to-class":"e-opacity-0"}},[e._t("default")],2)},Z3=[],U3=Y(G3,q3,Z3,!1,null,null,null,null);const Pt=U3.exports,Y3=j.extend({name:"EZoomableImg",components:{EZoomSlider:Vr,EFadeTransition:Pt},directives:{ResizeObserver:Qe},mixins:[Ge,Ve],props:{src:{type:String,default:""},alt:{type:String,default:""},allowZoom:{type:Boolean,default:!0},imgProps:{type:Object,default:()=>({})},slider:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},hideContentOnBlur:{type:Boolean,default:!0},initialParams:{type:Object,default:()=>({})},embedded:{type:Boolean,default:!1},overlayStyle:{type:Object,default:()=>({})},foregroundStyle:{type:Object,default:()=>({})},pan:{type:Boolean,default:!0},slotTransition:{type:Boolean,default:!0},height:{type:[String,Number],default:void 0},isCalendarActive:{type:Boolean,default:!1},blurBackground:{type:Boolean,default:!1},cover:{type:Boolean,default:!1},isWidget:{type:Boolean,default:!1},isAnnotationActive:{type:Boolean,default:!1},isMobile:{type:Boolean,default:!1},placeholderImage:{type:String,default:""},showMiniature:{type:Boolean,default:!1},miniatureWidth:{type:Number,default:150}},data(){const t={x:0,y:0};return{image:null,frame:null,imageLoaded:!1,zoomLevel:1,previousZoomLevel:1,imageMouse:t,zoomOrigin:t,frameMouse:t,frameMousePanStart:t,frameMousePreviousPan:t,translation:t,isPanning:!1,isPinching:!1,zoomStarted:!1,firstLoad:!0,isSliderActive:!1,imgStyle:{},contentStyle:{},isFocused:!0,forceHideContent:!1,imageAspectRatio:1,frameAspectRatio:1,wrapperExtraStyle:{},preventDefaultScroll:!0,mouseLeft:!1,pointers:{},pinchDistance:0,lastTapTime:0,minZoomLevel:1,maxZoomLevel:20,backgroundSnapshotSrc:null,miniatureOverlayStyle:{}}},computed:{frameStyle(){return this.height?{height:`${this.height}px`}:{}},wrapperStyle(){if(!this.imageLoaded)return{display:"none"};let t,e;return this.isPanning&&!this.isAnnotationActive?(t=this.frameMouse.x-this.frameMousePanStart.x+this.frameMousePreviousPan.x,e=this.frameMouse.y-this.frameMousePanStart.y+this.frameMousePreviousPan.y):(t=this.frameMousePreviousPan.x,e=this.frameMousePreviousPan.y),{transform:Math.abs(t)<.5&&Math.abs(e)<.5?"none":`translate(${t}px,${e}px)`}},imageCenter(){var e;const t=(e=this.image)==null?void 0:e.getBoundingClientRect();return{x:((t==null?void 0:t.width)||0)/2,y:((t==null?void 0:t.height)||0)/2}},sliderModel:{get(){return this.zoomLevel*100},set(t){this.previousZoomLevel=this.zoomLevel,this.zoomLevel=t/100,this.updateImageStyle(),this.savePreviousPan()}},showContent(){return this.hideContentOnBlur?this.forceHideContent?!1:this.isFocused&&this.touches<2:!0},miniatureContainerStyle(){if(!this.image)return{};const t=this.image.naturalWidth/this.image.naturalHeight,e=this.miniatureWidth/t;return{width:`${this.miniatureWidth}px`,height:`${e}px`}},miniatureOverlayComputedStyle(){return{...this.miniatureOverlayStyle,...this.miniatureOverlayBaseStyle}},miniatureOverlayBaseStyle(){return{boxShadow:`0 0 0 ${this.miniatureWidth}px #0006`}},currentState(){var t,e;return{image:this.image,zoomLevel:this.zoomLevel,translation:this.translation,previousZoomLevel:this.previousZoomLevel,imageMouse:this.imageMouse,zoomOrigin:this.zoomOrigin,frameMouse:this.frameMouse,frameMousePanStart:this.frameMousePanStart,frameMousePreviousPan:this.frameMousePreviousPan,isPanning:this.isPanning,zoomStarted:this.zoomStarted,firstLoad:this.firstLoad,isSliderActive:this.isSliderActive,imgStyle:this.imgStyle,contentStyle:this.contentStyle,isFocused:this.isFocused,forceHideContent:this.forceHideContent,imageAspectRatio:this.imageAspectRatio,frameAspectRatio:this.frameAspectRatio,wrapperExtraStyle:this.wrapperExtraStyle,offsetWidth:(t=this.image)==null?void 0:t.offsetWidth,offsetHeight:(e=this.image)==null?void 0:e.offsetHeight}}},watch:{isCalendarActive(){this.$setTimeout(this.onResize,100)},initialParams:{immediate:!0,handler(t){if(typeof t=="object")for(let e in t)this[e]=t[e]}},image:{immediate:!0,deep:!0,handler(){var t;(t=this.image)!=null&&t.offsetWidth&&this.emitChange()}},wrapperStyle(){this.$nextTick(this.updateMiniatureOverlayStyle)},imageStyle(){this.$nextTick(this.updateMiniatureOverlayStyle)}},mounted(){this.$addEventListener("orientationchange",this.handleOrientationChange),this.$root.$on("resize-snapshot-player",()=>{this.$setTimeout(this.setAspectRatio,200)})},methods:{onResize(){this.updateContentStyle(),this.$setTimeout(this.setAspectRatio,500)},handleOrientationChange(){this.$setTimeout(this.setAspectRatio,1e3)},setAspectRatio(){var r,n;this.frame=this.$refs.frame,this.image=this.$refs.image;const t=(r=this.frame)==null?void 0:r.getBoundingClientRect(),e=(n=this.image)==null?void 0:n.getBoundingClientRect();if(this.$setTimeout(this.emitChange,50),!t||this.isMobile&&!this.isWidget&&(!e||(e==null?void 0:e.width)<=1||(e==null?void 0:e.height)<=1)){this.$setTimeout(this.setAspectRatio,50);return}this.frameAspectRatio=t.width/t.height,this.imageAspectRatio=e.width/e.height},updateImageStyle(){this.translation={x:this.zoomOrigin.x*(this.zoomLevel-this.previousZoomLevel)+this.translation.x,y:this.zoomOrigin.y*(this.zoomLevel-this.previousZoomLevel)+this.translation.y},this.imgStyle={...this.imgStyle,transform:`translate(${-this.translation.x}px, ${-this.translation.y}px) scale(${this.zoomLevel})`},this.emitChange()},updateMiniatureOverlayStyle(){if(!this.showMiniature||!this.image||!this.frame||!this.$refs.miniatureImage||this.zoomLevel===1){this.miniatureOverlayStyle={};return}const t=this.image.getBoundingClientRect(),e=this.frame.getBoundingClientRect(),r=(e.left-t.left)/t.width*100,n=(e.top-t.top)/t.height*100,s=e.width/t.width*100,l=e.height/t.height*100;this.miniatureOverlayStyle={left:`${r}%`,top:`${n}%`,width:`${s}%`,height:`${l}%`}},onImageLoaded(t){var n,s;if(this.imageLoaded=!0,this.wrapperExtraStyle={...this.wrapperExtraStyle,alignContent:"flex-start !important"},this.$setTimeout(()=>{this.wrapperExtraStyle={justifyContent:"center",alignContent:"center !important"}}),this.blurBackground&&(this.backgroundSnapshotSrc=this.getSnapshotSrc()),!this.firstLoad)return;this.updateContentStyle(),this.imageMouse=this.imageCenter,this.zoomOrigin=this.imageCenter;const e=(n=this.image)==null?void 0:n.getBoundingClientRect(),r=(s=this.frame)==null?void 0:s.getBoundingClientRect();!e||!r||(this.isMobile&&!this.isWidget?this.setAspectRatio():this.$nextTick(()=>{this.setAspectRatio(),this.firstLoad=!1}),this.updateImageStyle(),this.$emit("load",t))},onError(t){this.$emit("error",t)},onMouseEnter(){this.mouseLeft=!1,this.isFocused=!0},onMouseLeave(){this.isSliderActive||(this.isFocused=!1),this.mouseLeft=!0;const t={which:1,preventDefault:()=>{}};this.onMouseUp(t)},onMouseMove(t){var e;if(!(this.disabled||!this.imageLoaded||this.mouseLeft)&&this.frame){const r=this.frame.getBoundingClientRect(),n=(e=this.image)==null?void 0:e.getBoundingClientRect();this.frameMouse={x:(t==null?void 0:t.clientX)-r.left,y:(t==null?void 0:t.clientY)-r.top},this.imageMouse={x:((t==null?void 0:t.clientX)-(n==null?void 0:n.left))/this.zoomLevel,y:((t==null?void 0:t.clientY)-(n==null?void 0:n.top))/this.zoomLevel},this.zoomStarted&&(this.zoomStarted=!1),this.$nextTick(this.emitChange)}},onMousedown(t){if(!(!this.pan||this.disabled||!this.imageLoaded||(t==null?void 0:t.which)!==1||this.isSliderActive)){if(this.isAnnotationActive){this.frameMousePanStart={x:this.frameMouse.x,y:this.frameMouse.y},this.isPanning=!0,this.$nextTick(this.emitChange);return}t.preventDefault(),this.frameMousePanStart=this.frameMouse,this.isPanning=!0}},onMouseUp(t){if(!(!this.pan||this.disabled||!this.imageLoaded||!this.isPanning||(t==null?void 0:t.which)!==1||this.isSliderActive)){if(this.isAnnotationActive){this.isPanning=!1,this.$nextTick(this.emitChange);return}t.preventDefault(),this.savePreviousPan({x:this.frameMousePreviousPan.x+this.frameMouse.x-this.frameMousePanStart.x,y:this.frameMousePreviousPan.y+this.frameMouse.y-this.frameMousePanStart.y}),this.isPanning=!1,this.isPinching=!1,this.$nextTick(this.emitChange)}},onMouseWheel(t){this.disabled||!this.imageLoaded||!this.allowZoom||(this.zoom(t.deltaY),this.preventDefaultScroll&&t.preventDefault())},updateZoomLevel(t){let e=1;this.isMobile?e=this.zoomLevel*t:t<0?e=this.zoomLevel*1.2:this.zoomLevel>=1.25&&(e=this.zoomLevel*.8),e<this.minZoomLevel?this.zoomLevel=this.minZoomLevel:e>this.maxZoomLevel?this.zoomLevel=this.maxZoomLevel:this.zoomLevel=e},zoom(t){this.isPanning=!1,this.previousZoomLevel=this.zoomLevel,this.updateZoomLevel(t),this.preventDefaultScroll=this.previousZoomLevel!==this.zoomLevel,this.zoomStarted||(this.zoomOrigin=this.imageMouse,this.zoomStarted=!0),this.updateImageStyle(),this.$nextTick(()=>{this.savePreviousPan(),this.emitChange()})},getBounds(){var a,o;const t=(a=this.frame)==null?void 0:a.getBoundingClientRect(),e=(o=this.image)==null?void 0:o.getBoundingClientRect(),r=t.width/this.imageAspectRatio,n=t.height*this.imageAspectRatio;let{top:s,right:l,bottom:i,left:h}=t;return e.width<t.width?(h=t.left+(t.width-n)/2,l=h+n):e.height<t.height&&(s=t.top+(t.height-r)/2,i=s+r),{top:s,right:l,bottom:i,left:h}},savePreviousPan({x:t,y:e}={}){var r;if(this.image){const n=(r=this.image)==null?void 0:r.getBoundingClientRect(),s=this.getBounds(),[l,i,h,a]=[n.right-s.right,s.top-n.top,n.bottom-s.bottom,s.left-n.left].map(o=>o<0?o:0);this.frameMousePreviousPan={x:(t||this.frameMousePreviousPan.x)+a-l,y:(e||this.frameMousePreviousPan.y)+i-h}}},onSliderMouseDown(){var r,n;const t=(r=this.frame)==null?void 0:r.getBoundingClientRect(),e=(n=this.image)==null?void 0:n.getBoundingClientRect();this.zoomOrigin={x:((t==null?void 0:t.left)+(t==null?void 0:t.width)/2-(e==null?void 0:e.left))/this.zoomLevel,y:((t==null?void 0:t.top)+(t==null?void 0:t.height)/2-(e==null?void 0:e.top))/this.zoomLevel},this.isSliderActive=!0},onSliderMouseUp(){this.isSliderActive=!1},updateContentStyle(){var t,e,r;this.contentStyle={maxWidth:`${window.innerWidth-(((r=(e=(t=this.$refs)==null?void 0:t.frame)==null?void 0:e.getBoundingClientRect())==null?void 0:r.left)||0)}px`}},emitChange(){this.$emit("change",this.currentState)},getPointersMidPoint(t,e){return{x:t.clientX+(e.clientX-t.clientX)/2,y:t.clientY+(e.clientY-t.clientY)/2}},getPointersDistance(t,e){return Math.hypot(e.clientX-t.clientX,e.clientY-t.clientY)},updatePointerEvent(t){this.pointers[t.pointerId]=t},clearPointerEvent(t){this.$delete(this.pointers,t.pointerId)},updatePinchZoomOrigin(){const t=Object.values(this.pointers);if(t.length!==2)return;const e=this.getPointersMidPoint(...t);this.zoomOrigin={x:e.x/this.zoomLevel,y:e.y/this.zoomLevel}},updatePinchDistance(){const t=Object.values(this.pointers);t.length===2&&(this.pinchDistance=this.getPointersDistance(...t))},onPointerDown(t){if(!(!this.isMobile||this.foregroundStyle.zIndex==2)){if(this.updatePointerEvent(t),this.isPinching=Object.values(this.pointers).length===2,this.isPinching){this.isPanning=!1,this.updatePinchZoomOrigin(),this.updatePinchDistance();return}this.onMouseMove(t),this.onMousedown(t)}},onPointerMove(t){if(!(!this.isMobile||this.foregroundStyle.zIndex==2)){if(this.updatePointerEvent(t),this.isPinching){const e=this.pinchDistance;this.updatePinchDistance();const r=this.pinchDistance/e;r%1>.008&&this.zoom(r);return}this.onMouseMove(t)}},onPointerUp(t){if(!this.isMobile||this.foregroundStyle.zIndex==2)return;this.clearPointerEvent(t),this.onMouseUp(t);const e=new Date().getTime(),r=e-this.lastTapTime;r>100&&r<200&&this.zoom(this.zoomLevel>1?0:3),this.lastTapTime=e},getSnapshotSrc(){const t=this.$refs.image;return t==null?void 0:t.src}}}),h7="";var X3=function(){var n;var e=this,r=e._self._c;return r("div",e._b({directives:[{name:"resize-observer",rawName:"v-resize-observer",value:e.onResize,expression:"onResize"}],ref:"frame",staticClass:"zoomable-img e-flex e-justify-center e-items-center e-relative",class:{"zoomable-img--loading":!e.imageLoaded,"zoomable-img--zoomed":e.zoomLevel>1,"zoomable-img--panning":e.isPanning,"zoomable-img--disabled":e.disabled,"zoomable-img--portrait-frame":e.frameAspectRatio<e.imageAspectRatio,"zoomable-img--landscape-frame":e.frameAspectRatio>=e.imageAspectRatio,"zoomable-img--embedded":e.embedded,"zoomable-img--cover":e.cover},style:e.frameStyle,attrs:{"data-test-id":"zoomable-img-frame"},on:{wheel:e.onMouseWheel,mouseup:e.onMouseUp,mousedown:e.onMousedown,mousemove:e.onMouseMove,mouseenter:e.onMouseEnter,mouseleave:e.onMouseLeave,pointerdown:e.onPointerDown,pointermove:e.onPointerMove,pointerup:e.onPointerUp,pointercancel:e.onPointerUp,pointerout:e.onPointerUp,pointerleave:e.onPointerUp}},"div",e.$attrs,!1),[r("div",{staticClass:"zoomable-img__wrapper e-flex e-justify-center e-items-center",style:{...e.wrapperStyle,...e.wrapperExtraStyle},attrs:{"data-test-id":"zoomable-img-wrapper"}},[e.blurBackground&&e.imageLoaded&&e.backgroundSnapshotSrc?r("img",{class:e.isMobile?"zoomable-img__img-background-mobile":"zoomable-img__img-background",attrs:{src:e.backgroundSnapshotSrc,alt:e.alt}}):e._e(),r("img",e._g(e._b({directives:[{name:"show",rawName:"v-show",value:e.imageLoaded||!!e.placeholderImage,expression:"imageLoaded || !!placeholderImage"}],ref:"image",staticClass:"zoomable-img__img e-absolute",style:e.imgStyle,attrs:{src:(n=e.src)!=null?n:e.placeholderImage,alt:e.alt,crossorigin:"anonymous","data-test-id":"zoomable-img-image"},on:{load:e.onImageLoaded,error:e.onError}},"img",e.$props.imgProps,!1),e.$listeners))]),r("div",{staticClass:"zoomable-img__wrapper zoomable-img__wrapper--overlay e-flex e-justify-center e-items-center",style:{...e.wrapperStyle,...e.wrapperExtraStyle,...e.overlayStyle}},[r("div",{staticClass:"zoomable-img__img e-relative",style:{width:`${e.image?e.image.offsetWidth:0}px`,height:`${e.image?e.image.offsetHeight:0}px`,...e.imgStyle}},[e._t("imageOverlay",null,{state:e.currentState})],2)]),r("div",{ref:"foreground",staticClass:"zoomable-img__content e-flex e-justify-center e-items-center e-p-0",class:{"e-h-full":!e.embedded,"e-w-full":!e.embedded},style:{...e.contentStyle,...e.foregroundStyle},attrs:{id:"img-foreground","data-test-id":"zoomable-img-foreground"}},[e.imageLoaded?e._e():e._t("placeholder",null,{dataTestId:"zoomable-img-placeholder"}),e.showContent&&e.slotTransition?r("EFadeTransition",[e.showContent?e._t("default",null,{dataTestId:"zoomable-img-content"}):e._e()],2):e.showContent?e._t("default",null,{dataTestId:"zoomable-img-content"}):e._e(),r("EFadeTransition",[e.showContent&&e.slider&&e.allowZoom?r("div",{staticClass:"zoomable-img__slider-container",attrs:{"data-test-id":"zoomable-img-zoom-slider"}},[e._t("extraWidgets"),r("EZoomSlider",{attrs:{vertical:""},on:{mouseup:e.onSliderMouseUp,mousedown:e.onSliderMouseDown,"zoom-in":function(s){return e.zoom(-1)},"zoom-out":function(s){return e.zoom(1)}},model:{value:e.sliderModel,callback:function(s){e.sliderModel=s},expression:"sliderModel"}})],2):e._e()]),r("EFadeTransition",[e.showMiniature&&e.imageLoaded&&e.zoomLevel>1?r("div",{staticClass:"zoomable-img__miniature-container e-shadow",style:e.miniatureContainerStyle},[r("img",{ref:"miniatureImage",staticClass:"zoomable-img__miniature",attrs:{src:e.src,alt:e.alt}}),r("div",{staticClass:"zoomable-img__miniature-overlay",style:e.miniatureOverlayComputedStyle})]):e._e()])],2)])},Q3=[],V3=Y(Y3,X3,Q3,!1,null,null,null,null);const Kr=V3.exports,K3=j.extend({name:"EImagePlayer",components:{EZoomableImg:Kr},directives:{ResizeObserver:Qe},mixins:[Ge,Ve],model:{prop:"frameIndex",event:"frame-index-change"},props:{frames:{type:Array,required:!0},timePerFrame:{type:Number,default:500},isPlaying:{type:Boolean,default:!1},frameIndex:{type:Number,default:0},height:{type:[String,Number],default:0},initialQuality:{type:[String,Number],default:"auto"},preload:{type:Boolean,default:!0},preloadSize:{type:Number,default:10},resetIndexOnFramesChange:{type:Boolean,default:!1},preloadWhilePlaying:{type:Boolean,default:!0},withControls:{type:Boolean,default:!0},playOnClick:{type:Boolean,default:!0},disablePlayPauseAnimation:{type:Boolean,default:!1},disablePlayButton:{type:Boolean,default:!1},isLive:{type:Boolean,default:!1},selectedSnapshotQuality:{type:[String,Number],default:"auto"},placeholderImage:{type:String,default:""},isMobile:{type:Boolean,default:!1},isZoomable:{type:Boolean,default:!0},isAnnotationActive:{type:Boolean,default:!1},aspectRatio:{type:Number,default:null}},data(){return{src:this.placeholderImage,imageLoaded:!1,playing:!1,playerStyle:{},image:null,previousSrc:"",resolveImageLoadingPromise:()=>({}),preloadingQueueId:0,preloadedFrames:[],preloadingFramesImgs:[],frameError:!1,animationId:-1,imgStyle:{},previousFrameIndex:0,isFullscreen:!1,mouseDownTime:0,playPauseAnimation:!1,latestValidSnapshotTimestamp:"",progressBar:null,isDraggingCursor:!1,hovered:!1,timePerFrameValue:this.timePerFrame,mousePosition:{x:0,y:0},screenHeight:screen.height}},computed:{imgProps(){return{id:"zoomable-img__img",ref:"image",crossorigin:"anonymous",class:"zoomable-img__img e-absolute e-w-full e-h-full e-object-contain e-z-10 d-block",dataTestId:"zoomable-img-image"}},playerDimensions(){return{width:"100%",height:this.height}},isLastFrame(){return this.frameIndex===this.frames.length-1},altText(){var t,e;return`${((t=this.frames[this.frameIndex])==null?void 0:t.label)||""} ${((e=this.frames[this.frameIndex])==null?void 0:e.timestamp)||""}`},playedPercentage(){return this.isLastFrame?100:Math.abs(this.frameIndex/this.frames.length*100)},mouseToWidthRatio(){var t,e,r;return this.mousePosition.x/((r=(e=(t=this.progressBar)==null?void 0:t.getBoundingClientRect())==null?void 0:e.width)!=null?r:1)},hoverBarStyle(){return{width:`${100*this.mouseToWidthRatio}%`}},hoveredFrameIndex(){return Math.round(this.mouseToWidthRatio*(this.frames.length-1))},progressStyle(){return{width:`${100*((this.isDraggingCursor?this.hoveredFrameIndex:this.frameIndex)/(this.frames.length-1))}%`}},preloadedChunks(){const t=[...this.preloadedFrames];return t.sort((e,r)=>e>r?1:-1),t.reduce((e,r)=>{if(!e.length)return[[r,r]];const[n,s]=e.slice(-1)[0]||[0,0];return r-s>1?[...e,[r,r]]:[...e.slice(0,-1),[n,r]]},[])}},watch:{frames:{handler(){var t;this.src=((t=this.frames[this.frameIndex])==null?void 0:t.src)||"",this.resetIndexOnFramesChange&&this.$emit("frame-index-change",0),this.imageLoaded=!0,this.preloadedFrames=[],this.flushPreloadingQueue(),this.$setTimeout(async()=>{this.updateRefs(),await this.loadTargetFrame(),this.handleBuffering()})},immediate:!0,deep:!0},isLastFrame(t){t&&this.$emit("frames-ended")},timePerFrame:{immediate:!0,handler(t){this.timePerFrameValue=t}},frameIndex:{immediate:!0,async handler(){this.frameIndex!==this.previousFrameIndex&&(Number.isNaN(this.frameIndex)&&this.$emit("frame-index-change",0),this.frameIndex===0&&(this.previousFrameIndex=this.frameIndex),this.isLastFrame&&!this.isLive&&(this.playing=!1),this.playing||(this.cancelDelay(),await this.loadTargetFrame(),this.handleBuffering()))}},playing:{immediate:!0,async handler(t){t?this.play():this.pause(),this.animatePlayPauseOverlay()}},preloadedFrames:{handler(t,e){this.$emit("preloaded-frames-change",t)}},isPlaying:{immediate:!0,async handler(){this.playing=this.isPlaying}},selectedSnapshotQuality(){var t;this.src=(t=this.getFrameSrc(this.frames[this.frameIndex]))!=null?t:this.frames[this.frameIndex].src},isLive:{immediate:!0,handler(t){var e;t||(this.src=(e=this.frames[this.frameIndex])==null?void 0:e.src)}},imageLoaded(t){this.$emit("loading",!t)}},mounted(){this.$setTimeout(()=>{this.initializeFullscreenListeners(),this.progressBar=this.$refs.progressBar,this.$addEventListener("keydown",this.handleKeyDown)})},beforeDestroy(){this.cancelDelay(),this.flushPreloadingQueue(),this.removeFullscreenListeners()},methods:{getProgressBarMousePosition(t){var r;if(!this.progressBar)return{x:0,y:0};const e=(r=this.progressBar)==null?void 0:r.getBoundingClientRect();return{x:t.clientX-e.x,y:t.clientY-e.y}},onProgressBarMouseEnter(){this.hovered=!0},onProgressBarMouseMove(t){this.mousePosition=this.getProgressBarMousePosition(t)},onProgressBarMouseLeave(){this.hovered=!1,this.isDraggingCursor=!1},onProgressBarClick(){this.$emit("frame-index-change",this.hoveredFrameIndex),this.$emit("seek",this.hoveredFrameIndex)},getProgressBarChunkStyle(t,e){const[r,n]=[100*t/(this.frames.length-1),100*e/(this.frames.length-1)];return{left:`${r}%`,width:`${n-r}%`}},animatePlayPauseOverlay(){this.disablePlayPauseAnimation||(this.playPauseAnimation=!0,this.$setTimeout(()=>this.playPauseAnimation=!1,500))},isImageClick(t){const e=t==null?void 0:t.target;return e?e&&(e.id==="img-foreground"||typeof e.className=="string"&&e.className.indexOf("zoomable-img__img")!==-1):!1},onFrameMouseDown(t){!this.isImageClick(t)||!this.playOnClick||(this.mouseDownTime=new Date().getTime())},onFrameMouseUp(t){this.isLastFrame||this.disablePlayButton||!this.playOnClick||this.isAnnotationActive||!this.isImageClick(t)||new Date().getTime()-this.mouseDownTime>200||(this.playing=!this.playing)},removeFullscreenListeners(){const t=document;t.fullscreenEnabled||t.webkitFullscreenEnabled||t.mozFullScreenEnabled||t.msFullscreenEnabled?(t.removeEventListener("fullscreenchange",this.handleFullscreenChange),t.removeEventListener("webkitfullscreenchange",this.handleFullscreenChange),t.removeEventListener("mozfullscreenchange",this.handleFullscreenChange),t.removeEventListener("MSFullscreenChange",this.handleFullscreenChange)):console.log("Fullscreen API is not supported in this browser.")},initializeFullscreenListeners(){const t=document;t.fullscreenEnabled||t.webkitFullscreenEnabled||t.mozFullScreenEnabled||t.msFullscreenEnabled?(t.addEventListener("fullscreenchange",this.handleFullscreenChange),t.addEventListener("webkitfullscreenchange",this.handleFullscreenChange),t.addEventListener("mozfullscreenchange",this.handleFullscreenChange),t.addEventListener("MSFullscreenChange",this.handleFullscreenChange)):console.log("Fullscreen API is not supported in this browser.")},handleFullscreenChange(){const t=document;this.isFullscreen=!!t.fullscreenElement||!!t.mozFullScreenElement||!!t.webkitFullscreenElement||!!t.msFullscreenElement||window.innerWidth==screen.width&&window.innerHeight==screen.height},closeFullscreenMode(){document.fullscreenElement&&(Br().then(()=>{this.isFullscreen=!1}),this.isFullscreen=!1)},openFullscreenMode(){const t=document.querySelector("#imagePlayer");t&&(zr(t).then(()=>{this.isFullscreen=!0}),this.isFullscreen=!0)},toggleFullscreenMode(){this.isFullscreen?this.closeFullscreenMode():this.openFullscreenMode()},updateRefs(){var t,e,r;this.image=(r=(e=(t=this.$refs)==null?void 0:t.zoomableImage)==null?void 0:e.$refs)==null?void 0:r.image},incrementCurrentFrameIndex(){this.frames[this.frameIndex+1]&&(this.$emit("frame-index-change",this.frameIndex+1),this.$emit("timestamp-change",this.frames[this.frameIndex].timestamp))},getFrameSrc(t){if(t)return t.srcSet?t.srcSet[this.selectedSnapshotQuality]:t.src},loadTargetFrame(){if(this.frameIndex!==this.previousFrameIndex)return new Promise(t=>{this.updateRefs(),this.previousSrc=this.src,this.previousFrameIndex=this.frameIndex,this.resolveImageLoadingPromise=t,this.src=this.getFrameSrc(this.frames[this.frameIndex])})},async handleBuffering(){this.preload&&await this.buffer()},async buffer(){let t=this.frameIndex+this.preloadSize;this.preloadSize===1/0&&(t=this.frames.length-1),await this.preloadFrames({start:this.frameIndex,end:t})},async preloadFrames({start:t,end:e}){const[r,n]=[Math.min(this.frames.length-1,t),Math.min(this.frames.length-1,e)],s=new Array(n-r+1).fill(0).map((i,h)=>i+r+h),l=this.preloadingQueueId;for(const i of s){if(l!==this.preloadingQueueId||this.playing&&!this.preloadWhilePlaying)return;this.preloadedFrames.includes(i)||await new Promise(a=>{const o=new Image;o.onload=()=>{this.preloadedFrames=[...this.preloadedFrames,i],a()},o.onerror=()=>{a()},this.preloadingFramesImgs=[...this.preloadingFramesImgs,o];const u=this.getFrameSrc(this.frames[i]);i||a(),o.src=u})}},async delay(){return this.frameError?(this.frameError=!1,Promise.resolve()):new Promise(t=>{const e=performance.now(),r=n=>{n-e<this.timePerFrameValue?this.animationId=window.requestAnimationFrame(r):t()};this.animationId=window.requestAnimationFrame(r)})},cancelDelay(){window.cancelAnimationFrame(this.animationId)},async play(){var r,n;const t=performance.now();if(this.isLastFrame&&!this.isLive){this.$emit("frame-index-change",0);return}this.$emit("play"),this.playing=!0,this.cancelDelay(),this.incrementCurrentFrameIndex(),await this.loadTargetFrame(),this.handleBuffering(),await this.delay(),this.playing&&this.play();const e=performance.now();this.$emit("performance-intervals-changed",{id:(r=this.frames[this.frameIndex])==null?void 0:r.timestamp,frame:(n=this.frames[this.frameIndex])==null?void 0:n.label,duration:e-t})},flushPreloadingQueue(){this.preloadingQueueId+=1,this.preloadingFramesImgs.forEach(t=>{t.src=""}),this.preloadingFramesImgs=[]},async pause(){this.playing=!1,this.imageLoaded=!0,this.src=this.previousSrc,this.cancelDelay(),this.handleBuffering(),this.$emit("pause")},onLoad(){var t,e;this.$emit("on-image-load",this.image),this.$emit("snapshot-changed",{data:(t=this.frames[this.frameIndex])==null?void 0:t.src,createdAt:(e=this.frames[this.frameIndex])==null?void 0:e.timestamp}),this.imageLoaded=!0,this.previousSrc=this.src,this.resolveImageLoadingPromise()},onError(t){if(this.frameIndex>1)return this.$emit("frame-index-change",this.frameIndex-1);this.frameError=!0,this.src=this.previousSrc,this.resolveImageLoadingPromise(),this.$emit("error",t)},onChange(t){this.$emit("change",t)},onBeforeUpdate(t){this.$emit("hook:beforeUpdate",t)},onBeforeDestroy(t){this.$emit("hook:beforeDestroy",t)},togglePlay(){this.playing=!this.playing},handleKeyDown(t){var r;const e=(r=document.activeElement)==null?void 0:r.tagName.toLowerCase();if(!(e==="input"||this.isAnnotationActive))switch(t.key.toLowerCase()){case" ":if(e==="button")return;this.disablePlayButton||this.togglePlay();break;case"escape":t.preventDefault(),this.closeFullscreenMode(),this.isFullscreen=!1;break}}}}),f7="";var J3=function(){var n,s;var e=this,r=e._self._c;return r("div",{staticClass:"player e-h-full e-w-full",style:e.playerDimensions,attrs:{id:"imagePlayer"}},[r("div",{staticClass:"player__frames player-container",style:e.playerDimensions,attrs:{id:"img-container"},on:{pointerdown:e.onFrameMouseDown,pointerup:e.onFrameMouseUp}},[r("div",{staticClass:"e-h-full e-w-full e-shrink-0 e-relative"},[r("img",{staticClass:"e-absolute e-block e-w-full e-h-full background-fade",attrs:{src:e.src||((n=e.frames[e.frameIndex])==null?void 0:n.src)||"",alt:"background-image"}}),r("EZoomableImg",e._g({directives:[{name:"show",rawName:"v-show",value:e.imageLoaded&&e.src||e.placeholderImage,expression:"(imageLoaded && src) || placeholderImage"}],ref:"zoomableImage",attrs:{"img-props":{imgProps:e.imgProps},"overlay-style":{zIndex:1},src:e.src||((s=e.frames[e.frameIndex])==null?void 0:s.src)||e.placeholderImage||"",alt:e.altText,"hide-content-on-blur":!1,height:e.height.split("px")[0],"placeholder-image":e.placeholderImage,slider:!1,"is-mobile":e.isMobile,disabled:!e.isZoomable,"is-annotation-active":e.isAnnotationActive,"blur-background":""},on:{load:e.onLoad,error:e.onError,change:e.onChange,"hook:beforeUpdate":e.onBeforeUpdate,"hook:beforeDestroy":e.onBeforeDestroy},scopedSlots:e._u([{key:"imageOverlay",fn:function(){return[e.playPauseAnimation?r("div",{staticClass:"image-player-overlay e-flex e-items-center e-justify-center"},[r("div",{staticClass:"image-player-overlay__wrapper"},[e.playing?r("svg",{attrs:{height:"100%",viewBox:"-1 0 36 36",width:"100%"}},[r("path",{attrs:{d:"M 12,26 18.5,22 18.5,14 12,10 z M 18.5,22 25,18 25,18 18.5,14 z"}})]):r("svg",{attrs:{height:"100%",viewBox:"0.5 0 36 36",width:"100%"}},[r("path",{attrs:{d:"M 12,26 16,26 16,10 12,10 z M 21,26 25,26 25,10 21,10 z"}})])])]):e._e(),e._t("default"),e._t("imageOverlay")]},proxy:!0}],null,!0)},e.$listeners),[e._t("playerContainerOverlay")],2),e._t("imagePlayerOverlay")],2)]),e._t("controls",function(){return[e.withControls?r("div",{staticClass:"e-absolute e-bottom-0 e-w-[97%] e-p-4 e-pt-8 e-z-50 e-space-y-4 e-bg-gradient-to-t e-from-[#363434] e-to-transparent"},[r("div",{staticClass:"e-font-semibold e-text-white"},[e._v(" "+e._s(e.frames[e.frameIndex].label)+" - "+e._s(e.frameIndex)+" / "+e._s(e.frames.length-1)+" ")]),r("div",{staticClass:"e-flex e-justify-start e-gap-2 e-items-center"},[r("button",{staticClass:"e-text-white e-bg-transparent e-border-none e-cursor-pointer action-btn__first-vertical e-rounded-md",on:{click:e.togglePlay}},[r("i",{staticClass:"fas fa-2x",class:{"fa-play":!e.playing,"fa-pause":e.playing}})]),r("div",{ref:"progressBar",staticClass:"e-w-full e-h-3 e-relative e-bg-gray-200 e-rounded-md",on:{click:e.onProgressBarClick,mouseenter:e.onProgressBarMouseEnter,mousemove:e.onProgressBarMouseMove,mouseleave:e.onProgressBarMouseLeave}},[r("div",{staticClass:"e-bg-blue-500 e-w-full e-h-full e-absolute e-rounded-md e-z-[1]",style:{width:`${e.playedPercentage}%`}}),e._l(e.preloadedChunks,function([l,i]){return r("div",{key:i,staticClass:"e-bg-blue-300 e-h-full e-absolute e-rounded-md",style:e.getProgressBarChunkStyle(l,i)})})],2),r("button",{ref:"fullScreenBtn",staticClass:"e-text-white e-bg-transparent e-border-none e-cursor-pointer action-btn__second-vertical e-rounded-md",on:{click:e.toggleFullscreenMode}},[r("i",{staticClass:"fas fa-2x",class:{"fa-expand":!e.isFullscreen,"fa-compress":e.isFullscreen}})])])]):e._e()]},{playing:e.playing,togglePlay:e.togglePlay,play:e.play,pause:e.pause,toggleFullscreen:e.toggleFullscreenMode,preloadedFrames:e.preloadedFrames,isLastFrame:e.isLastFrame})],2)},e6=[],t6=Y(K3,J3,e6,!1,null,null,null,null);const Gi=t6.exports,r6=j.extend({name:"ELayout",directives:{ResizeObserver:Qe},mixins:[Ge],props:{height:{type:[String,Number],default:null},withOverlay:{type:Boolean,default:!1}},data(){return{footerHeight:0,overlayFooterHeight:0,wrapperStyle:{width:"100%",height:"100%"},mainStyle:{width:"100%",height:"100%"},mainHeight:"100%"}},computed:{bottomStyle(){return{bottom:`${this.overlayFooterHeight}px`}}},watch:{mainHeight(){this.onResize()}},mounted(){this.setOverlayFooterHeight(),this.setFooterHeight()},methods:{onResize(){this.setFooterHeight(),this.setOverlayFooterHeight()},onOverlayClick(t){this.$emit("overlay-click",t)},setOverlayFooterHeight(){const t=this.$refs.overlayFooter;t||this.$setTimeout(()=>{this.setOverlayFooterHeight()}),this.overlayFooterHeight=t==null?void 0:t.clientHeight},setFooterHeight(){const t=this.$refs.footer;t||this.$setTimeout(()=>{this.setFooterHeight()}),this.footerHeight=t==null?void 0:t.clientHeight,this.$attrs.isFullscreen?this.mainHeight=`${screen.height}px`:this.mainHeight=`${this.height?this.height.split("px")[0]-this.footerHeight:"100"}px`,this.mainStyle={width:"100%",height:this.mainHeight}}}});var n6=function(){var e=this,r=e._self._c;return r("div",e._b({directives:[{name:"resize-observer",rawName:"v-resize-observer",value:e.onResize,expression:"onResize"}],ref:"globalLayout",staticClass:"e-layout e-w-full e-h-full e-relative",style:{width:"100%",height:e.mainHeight},attrs:{id:"globalLayout"}},"div",e.$attrs,!1),[r("div",{staticClass:"e-layout__container e-relative",style:e.mainStyle},[r("div",{staticClass:"e-layout__main e-w-full e-h-full e-absolute e-inset-0 e-z-0",style:e.mainStyle},[e._t("main",null,{size:{...e.mainStyle}})],2),e.withOverlay?r("div",{staticClass:"e-layout__overlay e-w-full e-h-full e-absolute e-inset-0 e-z-[1]",style:e.mainStyle,on:{click:e.onOverlayClick}},[e._t("overlay",null,{size:{...e.mainStyle}})],2):e._e(),r("div",{staticClass:"e-layout__top-left e-absolute e-left-0 e-top-0 e-z-[2]"},[e._t("top-left")],2),r("div",{staticClass:"e-absolute e-right-0 e-top-0 e-layout__top-right e-z-[2]"},[e._t("top-right")],2),r("div",{staticClass:"e-absolute e-right-0 e-bottom-10 e-layout__bottom-right e-z-[2]",style:e.bottomStyle},[e._t("bottom-right")],2),r("div",{staticClass:"e-absolute e-left-0 e-bottom-10 e-layout__bottom-left e-z-[2]",style:e.bottomStyle},[e._t("bottom-left")],2),r("div",{directives:[{name:"resize-observer",rawName:"v-resize-observer",value:e.setOverlayFooterHeight,expression:"setOverlayFooterHeight"}],ref:"overlayFooter",staticClass:"e-absolute e-bottom-0 e-left-0 e-right-0 e-layout__overlay-footer e-z-[2]"},[e._t("overlay-footer")],2)]),r("div",{directives:[{name:"resize-observer",rawName:"v-resize-observer",value:e.setFooterHeight,expression:"setFooterHeight"}],ref:"footer",staticClass:"e-layout__footer e-relative e-z-[2]"},[e._t("footer")],2)])},i6=[],s6=Y(r6,n6,i6,!1,null,null,null,null);const qi=s6.exports;var a6=Y({name:"EContextProvider",provide(){return{...this.$props.context}},props:{context:{type:Object,required:!0}},render(){return this.$scopedSlots.default()}},null,null,!1,null,null,null,null);const o6=a6.exports,l6=j.extend({name:"EChatWrapper",props:{dark:{type:Boolean,default:!1},embedded:{type:Boolean,default:!1}},computed:{borderClasses(){return this.embedded?{}:{"e-border-[1px] e-border-solid e-rounded-lg e-overflow-hidden":!0,"e-border-gray-300":!this.dark,"e-border-gray-600":this.dark}},wrapperClasses(){return{"e-bg-gray-800 e-text-white":this.dark,"e-bg-white e-text-gray-800":!this.dark,...this.borderClasses}}}}),v7="";var c6=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("div",{staticClass:"e-chat-wrapper e-h-full",class:e.wrapperClasses},[e._t("default")],2)},u6=[],d6=Y(l6,c6,u6,!1,null,null,null,null);const h6=d6.exports,f6=j.extend({name:"EChatHeader",components:{EAvatar:wt},props:{size:{type:String,default:"xs"},backgroundClasses:{type:String,default:""}}}),_7="";var p6=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("EAvatar",{staticClass:"e-evercam-logo",attrs:{image:"https://dash.evercam.io/evercam-logo.svg",size:e.size,"background-classes":e.backgroundClasses}})},m6=[],g6=Y(f6,p6,m6,!1,null,null,null,null);const Jr=g6.exports,v6=j.extend({name:"EChatHeader",components:{EEvercamLogo:Jr},props:{title:{type:String,default:"Evercam Copilot"},hidden:{type:Boolean,default:!1},dark:{type:Boolean,default:!1}},computed:{backgroundClasses(){return{"e-bg-gray-700":this.dark,"e-bg-gray-50":!this.dark}},headerClasses(){return{"e-hidden":this.hidden,...this.backgroundClasses}},logoClasses(){return{"e-bg-white e-p-[2px] e-rounded-full":this.dark}}}});var _6=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("div",{staticClass:"e-chat-header e-flex e-items-center e-justify-between",class:e.headerClasses},[r("div",{staticClass:"e-chat-logo e-flex e-w-full e-items-center e-justify-start e-gap-2 e-px-5 e-py-4"},[e._t("logo",function(){return[r("div",{class:e.logoClasses},[r("EEvercamLogo",{attrs:{size:e.dark?"2xs":"xs"}})],1)]}),r("div",{staticClass:"e-font-semibold e-h-min e-text-base"},[e._v(e._s(e.title))]),e._t("chip")],2)])},y6=[],C6=Y(v6,_6,y6,!1,null,null,null,null);const b6=C6.exports,x6=j.extend({name:"EChatBody",directives:{ResizeObserver:Qe},props:{dark:{type:Boolean,default:!1}},data(){return{autoScroll:!0,previousChildCount:0,showGoToBottomButton:!1}},computed:{bodyClasses(){return{"e-custom-scrollbar--light":!this.dark,"e-custom-scrollbar--dark":this.dark}},goToBottomButtonClasses(){return{"e-text-gray-500":!this.dark,"e-text-gray-300":this.dark,"e-bg-gray-600":this.dark,"e-bg-gray-200":!this.dark}}},watch:{autoScroll(t){t&&this.scrollToBottom()}},mounted(){this.scrollToBottom()},methods:{onContentResized(){const e=this.$refs.contentWrapper.childElementCount;e!==this.previousChildCount&&(this.autoScroll=!0),this.autoScroll&&this.scrollToBottom(),this.previousChildCount=e},scrollToBottom(){const t=this.$refs.anchor;this.$nextTick(()=>{t.scrollIntoView({behavior:"smooth"})})},disableAutoScroll(){this.autoScroll=!1},onScroll(){const t=this.$refs.chatBody;t.scrollHeight-t.scrollTop<=t.clientHeight+1&&(this.autoScroll=!0),this.showGoToBottomButton=t.scrollHeight-t.scrollTop>t.clientHeight+100},onWheel(t){t.deltaY<0&&this.disableAutoScroll()},onKeyUp(t){["ArrowUp","ArrowDown","PageUp","PageDown","Home","End"].includes(t.key)&&this.disableAutoScroll()},onTouch(){this.disableAutoScroll()},onTouchMove(){this.disableAutoScroll()}}}),y7="";var w6=function(){var e=this,r=e._self._c;return r("div",e._b({ref:"chatBody",staticClass:"e-chat-body e-space-y-2 e-py-3 e-px-5 e-leading-6",class:e.bodyClasses,attrs:{tabindex:"0"},on:{scroll:e.onScroll,wheel:e.onWheel,keyup:function(n){return n.stopPropagation(),e.onKeyUp.apply(null,arguments)},touchstart:e.onTouch,touchmove:e.onTouchMove}},"div",e.$attrs,!1),[r("div",{directives:[{name:"resize-observer",rawName:"v-resize-observer",value:e.onContentResized,expression:"onContentResized"}],ref:"contentWrapper"},[e._t("default")],2),r("div",{ref:"anchor",staticClass:"e-chat-body__anchor"}),e.showGoToBottomButton?r("div",{staticClass:"e-chat-body__go-to-bottom e-sticky e-bottom-1 e-flex e-justify-center"},[r("button",{staticClass:"e-animate-bounce e-inline-flex e-items-center e-justify-center e-cursor-pointer e-h-8 e-w-8 e-border-none focus:e-outline-none e-rounded-full",class:e.goToBottomButtonClasses,on:{click:e.scrollToBottom}},[r("EIcon",{attrs:{icon:"arrow-down",size:"base"}})],1)]):e._e()])},S6=[],T6=Y(x6,w6,S6,!1,null,null,null,null);const k6=T6.exports,M6=j.extend({props:{size:{type:Number,default:12},color:{type:String,default:"#c5393d"}},computed:{computedSize(){return`${this.size}px`},computedMargin(){return`${this.size/2}px`},computedShadowSize(){return`${this.size*2}px`},computedSecondaryColor(){return dt(this.color,0)||"#fff"},dotContainerStyle(){return{margin:`${this.computedMargin} auto`,width:this.computedSize,height:this.computedSize,position:"relative"}},shadowStyle(){return{width:this.computedSize,height:this.computedSize,"--boxShadowColor":dt(this.color,.7),"--backgroundColor":dt(this.color,.7),"--secondaryColor":this.computedSecondaryColor,"--shadowSize":this.computedShadowSize}},secondShadowStyle(){return{...this.shadowStyle,animationDelay:".33s",animationDuration:"2.3s"}},dotStyle(){return{width:this.computedSize,height:this.computedSize,backgroundColor:dt(this.color,1)}}},methods:{toRgba:dt}}),C7="";var E6=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("div",{staticClass:"e-pulsating-dot",style:e.dotContainerStyle},[r("span",{staticClass:"e-pulsating-dot__shadow",style:e.shadowStyle}),r("span",{staticClass:"e-pulsating-dot__shadow",style:e.secondShadowStyle}),r("div",{staticClass:"e-pulsating-dot__dot",style:e.dotStyle})])},$6=[],L6=Y(M6,E6,$6,!1,null,"e042b2c3",null,null);const D6=L6.exports;var Zi={exports:{}};(function(t,e){(function(r,n){t.exports=n()})(typeof self!="undefined"?self:st,()=>(()=>{var r={75:function(i){(function(){var h,a,o,u,f,m;typeof performance!="undefined"&&performance!==null&&performance.now?i.exports=function(){return performance.now()}:typeof process!="undefined"&&process!==null&&process.hrtime?(i.exports=function(){return(h()-f)/1e6},a=process.hrtime,u=(h=function(){var v;return 1e9*(v=a())[0]+v[1]})(),m=1e9*process.uptime(),f=u-m):Date.now?(i.exports=function(){return Date.now()-o},o=Date.now()):(i.exports=function(){return new Date().getTime()-o},o=new Date().getTime())}).call(this)},4087:(i,h,a)=>{for(var o=a(75),u=typeof window=="undefined"?a.g:window,f=["moz","webkit"],m="AnimationFrame",v=u["request"+m],b=u["cancel"+m]||u["cancelRequest"+m],d=0;!v&&d<f.length;d++)v=u[f[d]+"Request"+m],b=u[f[d]+"Cancel"+m]||u[f[d]+"CancelRequest"+m];if(!v||!b){var y=0,T=0,E=[];v=function(w){if(E.length===0){var F=o(),$=Math.max(0,16.666666666666668-(F-y));y=$+F,setTimeout(function(){var N=E.slice(0);E.length=0;for(var K=0;K<N.length;K++)if(!N[K].cancelled)try{N[K].callback(y)}catch(q){setTimeout(function(){throw q},0)}},Math.round($))}return E.push({handle:++T,callback:w,cancelled:!1}),T},b=function(w){for(var F=0;F<E.length;F++)E[F].handle===w&&(E[F].cancelled=!0)}}i.exports=function(w){return v.call(u,w)},i.exports.cancel=function(){b.apply(u,arguments)},i.exports.polyfill=function(w){w||(w=u),w.requestAnimationFrame=v,w.cancelAnimationFrame=b}}},n={};function s(i){var h=n[i];if(h!==void 0)return h.exports;var a=n[i]={exports:{}};return r[i].call(a.exports,a,a.exports,s),a.exports}s.n=i=>{var h=i&&i.__esModule?()=>i.default:()=>i;return s.d(h,{a:h}),h},s.d=(i,h)=>{for(var a in h)s.o(h,a)&&!s.o(i,a)&&Object.defineProperty(i,a,{enumerable:!0,get:h[a]})},s.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}}(),s.o=(i,h)=>Object.prototype.hasOwnProperty.call(i,h);var l={};return(()=>{s.d(l,{default:()=>Q});var i=s(4087),h=s.n(i);const a=function(I){return new RegExp(/<[a-z][\s\S]*>/i).test(I)},o=function(I,k){return Math.floor(Math.random()*(k-I+1))+I};var u="TYPE_CHARACTER",f="REMOVE_CHARACTER",m="REMOVE_ALL",v="REMOVE_LAST_VISIBLE_NODE",b="PAUSE_FOR",d="CALL_FUNCTION",y="ADD_HTML_TAG_ELEMENT",T="CHANGE_DELETE_SPEED",E="CHANGE_DELAY",w="CHANGE_CURSOR",F="PASTE_STRING",$="HTML_TAG";function N(I){return N=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(k){return typeof k}:function(k){return k&&typeof Symbol=="function"&&k.constructor===Symbol&&k!==Symbol.prototype?"symbol":typeof k},N(I)}function K(I,k){var O=Object.keys(I);if(Object.getOwnPropertySymbols){var R=Object.getOwnPropertySymbols(I);k&&(R=R.filter(function(ie){return Object.getOwnPropertyDescriptor(I,ie).enumerable})),O.push.apply(O,R)}return O}function q(I){for(var k=1;k<arguments.length;k++){var O=arguments[k]!=null?arguments[k]:{};k%2?K(Object(O),!0).forEach(function(R){D(I,R,O[R])}):Object.getOwnPropertyDescriptors?Object.defineProperties(I,Object.getOwnPropertyDescriptors(O)):K(Object(O)).forEach(function(R){Object.defineProperty(I,R,Object.getOwnPropertyDescriptor(O,R))})}return I}function x(I){return function(k){if(Array.isArray(k))return z(k)}(I)||function(k){if(typeof Symbol!="undefined"&&k[Symbol.iterator]!=null||k["@@iterator"]!=null)return Array.from(k)}(I)||function(k,O){if(k){if(typeof k=="string")return z(k,O);var R=Object.prototype.toString.call(k).slice(8,-1);return R==="Object"&&k.constructor&&(R=k.constructor.name),R==="Map"||R==="Set"?Array.from(k):R==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(R)?z(k,O):void 0}}(I)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
203
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function z(I,k){(k==null||k>I.length)&&(k=I.length);for(var O=0,R=new Array(k);O<k;O++)R[O]=I[O];return R}function G(I,k){for(var O=0;O<k.length;O++){var R=k[O];R.enumerable=R.enumerable||!1,R.configurable=!0,"value"in R&&(R.writable=!0),Object.defineProperty(I,X(R.key),R)}}function D(I,k,O){return(k=X(k))in I?Object.defineProperty(I,k,{value:O,enumerable:!0,configurable:!0,writable:!0}):I[k]=O,I}function X(I){var k=function(O,R){if(N(O)!=="object"||O===null)return O;var ie=O[Symbol.toPrimitive];if(ie!==void 0){var C=ie.call(O,"string");if(N(C)!=="object")return C;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(O)}(I);return N(k)==="symbol"?k:String(k)}const Q=function(){function I(R,ie){var C=this;if(function(A,B){if(!(A instanceof B))throw new TypeError("Cannot call a class as a function")}(this,I),D(this,"state",{cursorAnimation:null,lastFrameTime:null,pauseUntil:null,eventQueue:[],eventLoop:null,eventLoopPaused:!1,reverseCalledEvents:[],calledEvents:[],visibleNodes:[],initialOptions:null,elements:{container:null,wrapper:document.createElement("span"),cursor:document.createElement("span")}}),D(this,"options",{strings:null,cursor:"|",delay:"natural",pauseFor:1500,deleteSpeed:"natural",loop:!1,autoStart:!1,devMode:!1,skipAddStyles:!1,wrapperClassName:"Typewriter__wrapper",cursorClassName:"Typewriter__cursor",stringSplitter:null,onCreateTextNode:null,onRemoveNode:null}),D(this,"setupWrapperElement",function(){C.state.elements.container&&(C.state.elements.wrapper.className=C.options.wrapperClassName,C.state.elements.cursor.className=C.options.cursorClassName,C.state.elements.cursor.innerHTML=C.options.cursor,C.state.elements.container.innerHTML="",C.state.elements.container.appendChild(C.state.elements.wrapper),C.state.elements.container.appendChild(C.state.elements.cursor))}),D(this,"start",function(){return C.state.eventLoopPaused=!1,C.runEventLoop(),C}),D(this,"pause",function(){return C.state.eventLoopPaused=!0,C}),D(this,"stop",function(){return C.state.eventLoop&&((0,i.cancel)(C.state.eventLoop),C.state.eventLoop=null),C}),D(this,"pauseFor",function(A){return C.addEventToQueue(b,{ms:A}),C}),D(this,"typeOutAllStrings",function(){return typeof C.options.strings=="string"?(C.typeString(C.options.strings).pauseFor(C.options.pauseFor),C):(C.options.strings.forEach(function(A){C.typeString(A).pauseFor(C.options.pauseFor).deleteAll(C.options.deleteSpeed)}),C)}),D(this,"typeString",function(A){var B=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(a(A))return C.typeOutHTMLString(A,B);if(A){var S=(C.options||{}).stringSplitter,W=typeof S=="function"?S(A):A.split("");C.typeCharacters(W,B)}return C}),D(this,"pasteString",function(A){var B=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return a(A)?C.typeOutHTMLString(A,B,!0):(A&&C.addEventToQueue(F,{character:A,node:B}),C)}),D(this,"typeOutHTMLString",function(A){var B=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,S=arguments.length>2?arguments[2]:void 0,W=function(ue){var ce=document.createElement("div");return ce.innerHTML=ue,ce.childNodes}(A);if(W.length>0)for(var V=0;V<W.length;V++){var L=W[V],ne=L.innerHTML;L&&L.nodeType!==3?(L.innerHTML="",C.addEventToQueue(y,{node:L,parentNode:B}),S?C.pasteString(ne,L):C.typeString(ne,L)):L.textContent&&(S?C.pasteString(L.textContent,B):C.typeString(L.textContent,B))}return C}),D(this,"deleteAll",function(){var A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"natural";return C.addEventToQueue(m,{speed:A}),C}),D(this,"changeDeleteSpeed",function(A){if(!A)throw new Error("Must provide new delete speed");return C.addEventToQueue(T,{speed:A}),C}),D(this,"changeDelay",function(A){if(!A)throw new Error("Must provide new delay");return C.addEventToQueue(E,{delay:A}),C}),D(this,"changeCursor",function(A){if(!A)throw new Error("Must provide new cursor");return C.addEventToQueue(w,{cursor:A}),C}),D(this,"deleteChars",function(A){if(!A)throw new Error("Must provide amount of characters to delete");for(var B=0;B<A;B++)C.addEventToQueue(f);return C}),D(this,"callFunction",function(A,B){if(!A||typeof A!="function")throw new Error("Callback must be a function");return C.addEventToQueue(d,{cb:A,thisArg:B}),C}),D(this,"typeCharacters",function(A){var B=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!A||!Array.isArray(A))throw new Error("Characters must be an array");return A.forEach(function(S){C.addEventToQueue(u,{character:S,node:B})}),C}),D(this,"removeCharacters",function(A){if(!A||!Array.isArray(A))throw new Error("Characters must be an array");return A.forEach(function(){C.addEventToQueue(f)}),C}),D(this,"addEventToQueue",function(A,B){var S=arguments.length>2&&arguments[2]!==void 0&&arguments[2];return C.addEventToStateProperty(A,B,S,"eventQueue")}),D(this,"addReverseCalledEvent",function(A,B){var S=arguments.length>2&&arguments[2]!==void 0&&arguments[2];return C.options.loop?C.addEventToStateProperty(A,B,S,"reverseCalledEvents"):C}),D(this,"addEventToStateProperty",function(A,B){var S=arguments.length>2&&arguments[2]!==void 0&&arguments[2],W=arguments.length>3?arguments[3]:void 0,V={eventName:A,eventArgs:B||{}};return C.state[W]=S?[V].concat(x(C.state[W])):[].concat(x(C.state[W]),[V]),C}),D(this,"runEventLoop",function(){C.state.lastFrameTime||(C.state.lastFrameTime=Date.now());var A=Date.now(),B=A-C.state.lastFrameTime;if(!C.state.eventQueue.length){if(!C.options.loop)return;C.state.eventQueue=x(C.state.calledEvents),C.state.calledEvents=[],C.options=q({},C.state.initialOptions)}if(C.state.eventLoop=h()(C.runEventLoop),!C.state.eventLoopPaused){if(C.state.pauseUntil){if(A<C.state.pauseUntil)return;C.state.pauseUntil=null}var S,W=x(C.state.eventQueue),V=W.shift();if(!(B<=(S=V.eventName===v||V.eventName===f?C.options.deleteSpeed==="natural"?o(40,80):C.options.deleteSpeed:C.options.delay==="natural"?o(120,160):C.options.delay))){var L=V.eventName,ne=V.eventArgs;switch(C.logInDevMode({currentEvent:V,state:C.state,delay:S}),L){case F:case u:var ue=ne.character,ce=ne.node,se=document.createTextNode(ue),he=se;C.options.onCreateTextNode&&typeof C.options.onCreateTextNode=="function"&&(he=C.options.onCreateTextNode(ue,se)),he&&(ce?ce.appendChild(he):C.state.elements.wrapper.appendChild(he)),C.state.visibleNodes=[].concat(x(C.state.visibleNodes),[{type:"TEXT_NODE",character:ue,node:he}]);break;case f:W.unshift({eventName:v,eventArgs:{removingCharacterNode:!0}});break;case b:var Te=V.eventArgs.ms;C.state.pauseUntil=Date.now()+parseInt(Te);break;case d:var le=V.eventArgs,ye=le.cb,Fe=le.thisArg;ye.call(Fe,{elements:C.state.elements});break;case y:var Be=V.eventArgs,Me=Be.node,ke=Be.parentNode;ke?ke.appendChild(Me):C.state.elements.wrapper.appendChild(Me),C.state.visibleNodes=[].concat(x(C.state.visibleNodes),[{type:$,node:Me,parentNode:ke||C.state.elements.wrapper}]);break;case m:var $e=C.state.visibleNodes,Ee=ne.speed,Le=[];Ee&&Le.push({eventName:T,eventArgs:{speed:Ee,temp:!0}});for(var De=0,Ke=$e.length;De<Ke;De++)Le.push({eventName:v,eventArgs:{removingCharacterNode:!1}});Ee&&Le.push({eventName:T,eventArgs:{speed:C.options.deleteSpeed,temp:!0}}),W.unshift.apply(W,Le);break;case v:var Xe=V.eventArgs.removingCharacterNode;if(C.state.visibleNodes.length){var ot=C.state.visibleNodes.pop(),_t=ot.type,qe=ot.node,ht=ot.character;C.options.onRemoveNode&&typeof C.options.onRemoveNode=="function"&&C.options.onRemoveNode({node:qe,character:ht}),qe&&qe.parentNode.removeChild(qe),_t===$&&Xe&&W.unshift({eventName:v,eventArgs:{}})}break;case T:C.options.deleteSpeed=V.eventArgs.speed;break;case E:C.options.delay=V.eventArgs.delay;break;case w:C.options.cursor=V.eventArgs.cursor,C.state.elements.cursor.innerHTML=V.eventArgs.cursor}C.options.loop&&(V.eventName===v||V.eventArgs&&V.eventArgs.temp||(C.state.calledEvents=[].concat(x(C.state.calledEvents),[V]))),C.state.eventQueue=W,C.state.lastFrameTime=A}}}),R)if(typeof R=="string"){var Z=document.querySelector(R);if(!Z)throw new Error("Could not find container element");this.state.elements.container=Z}else this.state.elements.container=R;ie&&(this.options=q(q({},this.options),ie)),this.state.initialOptions=q({},this.options),this.init()}var k,O;return k=I,(O=[{key:"init",value:function(){var R,ie;this.setupWrapperElement(),this.addEventToQueue(w,{cursor:this.options.cursor},!0),this.addEventToQueue(m,null,!0),!window||window.___TYPEWRITER_JS_STYLES_ADDED___||this.options.skipAddStyles||(R=".Typewriter__cursor{-webkit-animation:Typewriter-cursor 1s infinite;animation:Typewriter-cursor 1s infinite;margin-left:1px}@-webkit-keyframes Typewriter-cursor{0%{opacity:0}50%{opacity:1}100%{opacity:0}}@keyframes Typewriter-cursor{0%{opacity:0}50%{opacity:1}100%{opacity:0}}",(ie=document.createElement("style")).appendChild(document.createTextNode(R)),document.head.appendChild(ie),window.___TYPEWRITER_JS_STYLES_ADDED___=!0),this.options.autoStart===!0&&this.options.strings&&this.typeOutAllStrings().start()}},{key:"logInDevMode",value:function(R){this.options.devMode&&console.log(R)}}])&&G(k.prototype,O),Object.defineProperty(k,"prototype",{writable:!1}),I}()})(),l.default})())})(Zi);var P6=Zi.exports;const O6=St(P6),Ui=function(t){if(t==null)return A6;if(typeof t=="function")return Ot(t);if(typeof t=="object")return Array.isArray(t)?z6(t):B6(t);if(typeof t=="string")return I6(t);throw new Error("Expected function, string, or object as test")};function z6(t){const e=[];let r=-1;for(;++r<t.length;)e[r]=Ui(t[r]);return Ot(n);function n(...s){let l=-1;for(;++l<e.length;)if(e[l].apply(this,s))return!0;return!1}}function B6(t){const e=t;return Ot(r);function r(n){const s=n;let l;for(l in t)if(s[l]!==e[l])return!1;return!0}}function I6(t){return Ot(e);function e(r){return r&&r.type===t}}function Ot(t){return e;function e(r,n,s){return!!(F6(r)&&t.call(this,r,typeof n=="number"?n:void 0,s||void 0))}}function A6(){return!0}function F6(t){return t!==null&&typeof t=="object"&&"type"in t}function b7(t){return t}const Yi=[],R6=!0,Xi=!1,H6="skip";function N6(t,e,r,n){let s;typeof e=="function"&&typeof r!="function"?(n=r,r=e):s=e;const l=Ui(s),i=n?-1:1;h(t,void 0,[])();function h(a,o,u){const f=a&&typeof a=="object"?a:{};if(typeof f.type=="string"){const v=typeof f.tagName=="string"?f.tagName:typeof f.name=="string"?f.name:void 0;Object.defineProperty(m,"name",{value:"node ("+(a.type+(v?"<"+v+">":""))+")"})}return m;function m(){let v=Yi,b,d,y;if((!e||l(a,o,u[u.length-1]||void 0))&&(v=W6(r(a,u)),v[0]===Xi))return v;if("children"in a&&a.children){const T=a;if(T.children&&v[0]!==H6)for(d=(n?T.children.length:-1)+i,y=u.concat(T);d>-1&&d<T.children.length;){const E=T.children[d];if(b=h(E,d,y)(),b[0]===Xi)return b;d=typeof b[1]=="number"?b[1]:d+i}}return v}}}function W6(t){return Array.isArray(t)?t:typeof t=="number"?[R6,t]:t==null?Yi:[t]}function Qi(t,e,r,n){let s,l,i;typeof e=="function"&&typeof r!="function"?(l=void 0,i=e,s=r):(l=e,i=r,s=n),N6(t,l,h,s);function h(a,o){const u=o[o.length-1],f=u?u.children.indexOf(a):void 0;return i(a,f,u)}}const j6=j.extend({name:"EMarkdown",props:{chunks:{type:[Array,String],default:()=>[]},exposedRegexes:{type:Array,default:()=>[]},animated:{type:Boolean,default:!1},dark:{type:Boolean,default:!1}},data(){return{accumulatedMarkdown:"",processedLength:0,currentChunkIndex:0,chunkQueue:[],isProcessing:!1,typewriter:null,renderTargets:{}}},watch:{chunks:{async handler(t,e){const r=t.slice(e.length);for(const n of r)await this.handleNewChunks(n)},deep:!0}},mounted(){this.typewriter=new O6(this.$refs.content,{loop:!1,delay:0,delaySpeed:0,cursor:""}),this.processChunks()},methods:{async processMarkdown(t){const r=await Cs.unified().use(bs).use(this.remarkCustomRegex,this.exposedRegexes).use(Ss).use(Ts).use(xs,{allowDangerousHtml:!0}).use(ws,{allowDangerousHtml:!0}).process(t);return String(r)},remarkCustomRegex(t){return e=>{Qi(e,"text",(r,n,s)=>{t.forEach(({regex:l,type:i})=>{const h=r.value.split(l);if(h.length>1){const a=[];return h.forEach((o,u)=>{const f=`render-target-${i}-${vi({node:r,nodeIndex:n,partIndex:u})}`;l.test(o)?(a.push({type:"html",value:`<span id="${f}">${o}</span>`}),this.renderTargets[f]={match:o,type:i}):o&&a.push({type:"text",value:o})}),s.children.splice(n,1,...a),[Qi.SKIP,n+a.length]}})})}},async processChunk(t){if(!t)return;if(this.accumulatedMarkdown+=t,this.animated){const r=await this.processMarkdown(t);await new Promise(n=>{this.$emit("animation-start"),this.typewriter.typeString(r).callFunction(()=>{this.$emit("animation-end"),n()}).start()})}const e=this.$refs.content.querySelector(".Typewriter__wrapper");e.innerHTML=await this.processMarkdown(this.accumulatedMarkdown),this.renderRegexesScopedSlots(),this.processedLength=this.accumulatedMarkdown.length,this.currentChunkIndex++},async handleNewChunks(t){if(t&&(this.chunkQueue.push(t),!this.isProcessing)){for(this.isProcessing=!0;this.chunkQueue.length>0;){const e=this.chunkQueue.shift();await this.processChunk(e)}this.isProcessing=!1}},async processChunks(){const t=Array.isArray(this.chunks)?this.chunks:[this.chunks];for(let e of t)await this.handleNewChunks(e)},renderRegexesScopedSlots(){Object.entries(this.renderTargets).forEach(([t,{match:e,type:r}])=>{this.renderScopedSlot({id:t,type:r,propsData:{match:e}})}),this.renderTargets={}},renderScopedSlot({id:t,type:e,propsData:r}){const n=this.$scopedSlots[`markdown.regex.${e}`];if(!n)return;const s=j.extend({props:["scopedSlot","propsData"],render(h){return this.scopedSlot(this.propsData)}}),l=document.getElementById(t);if(!l)return;const i=new j({render:h=>h(s,{props:{scopedSlot:n,propsData:r}})}).$mount();return l.innerHTML="",l.appendChild(i.$el),i}}}),x7="";var G6=function(){var e=this,r=e._self._c;return r("div",{staticClass:"e-markdown"},[r("article",{staticClass:"e-mx-auto prose-h1:!e-text-2xl prose-h2:!e-text-xl prose-h2:!e-mt-0 prose-h3:!e-text-lg e-prose e-prose-slate",class:{"e-prose-invert":e.dark}},[r("div",{ref:"content",staticClass:"e-markdown__content e-mt-[13px]"}),e._l(e.renderTargets,function({id:n,type:s,match:l}){return r("div",{key:n,staticStyle:{display:"none"}},[e._t(`markdown.regex.${s}`,function(){return[e._v(" "+e._s(l)+" ")]},{match:l})],2)})],2)])},q6=[],Z6=Y(j6,G6,q6,!1,null,null,null,null);const U6=Z6.exports,Y6=j.extend({name:"ECopyToClipboardBtn",components:{EActionButton:vt},mixins:[Ve,Ge],props:{text:{type:[Function,String,Number],required:!0},buttonText:{type:String,default:""},buttonClasses:{type:[String,Object,Array],default:null},description:{type:String,default:"Copy"},iconType:{type:String,default:"far fa-copy"},textOnlyButton:{type:Boolean,default:!1},dark:{type:Boolean,default:!0}},data(){return{loading:!1,tooltipText:this.description||"Copy to clipboard"}},computed:{copyButtonClasses(){return{"e-text-gray-500":!this.dark,"e-text-gray-300":this.dark,"e-bg-gray-600":this.dark,"e-bg-gray-200":!this.dark,"e-rounded-md e-border-none copy-button":!0}}},watch:{tooltipText(t){t!==this.description&&this.$setTimeout(()=>{this.tooltipText=this.description},1e3)}},mounted(){this.$addEventListener("focusin",this.handleFocusin,this.$refs.copyToClipboard)},methods:{handleFocusin(t){t.stopPropagation()},getProp(t,e){return Object.prototype.hasOwnProperty.call(this.$attrs,t)?this.$attrs[t]:e},copyTextToClipboard(){try{this.loading=!0;let t;typeof this.text=="function"?t=this.text():t=this.text;const e=this.$refs.copyToClipboard;e.value=t,e.focus(),e.select(),document.execCommand("copy"),this.tooltipText="Copied!",this.$emit("copied")}catch(t){console.error("Failed to copy text to clipboard",t)}finally{this.loading=!1}}}}),w7="";var X6=function(){var e=this,r=e._self._c;return r("EActionButton",{attrs:{"tooltip-text":e.tooltipText,"tooltip-position":"top",icon:e.iconType,"icon-size":"lg",dark:e.dark,"button-classes":e.copyButtonClasses},on:{click:e.copyTextToClipboard}},[e._v(" "+e._s(e.buttonText)+" "),r("textarea",{ref:"copyToClipboard",staticClass:"copy-to-clipboard",attrs:{readonly:""}})])},Q6=[],V6=Y(Y6,X6,Q6,!1,null,"54e17d6a",null,null);const en=V6.exports,K6=j.extend({name:"EDialog",components:{EFadeTransition:Pt},directives:{clickOutside:Rr},props:{value:{type:Boolean,default:!1},dark:{type:Boolean,default:!1},actions:{type:Array,default:()=>[]},title:{type:String,default:""},persistent:{type:Boolean,default:!1},width:{type:[Number,String],default:500},height:{type:[Number,String,void 0],default:void 0}},computed:{visible:{get(){return this.value},set(t){this.$emit("input",t)}},panelClasses(){return["e-relative e-transform e-overflow-hidden e-rounded-lg e-text-left e-shadow-xl e-transition-all e-w-full e-flex e-flex-col",this.dark?"e-bg-gray-800":"e-bg-white"]},headerContainerClasses(){return["e-dialog__header",this.dark?"e-bg-gray-800 e-text-gray-50":"e-bg-white e-text-slate-900","e-px-6 e-pt-6 e-pb-4 "]},bodyContainerClasses(){return["e-dialog__body e-px-6",this.dark?"e-bg-gray-800 e-text-gray-50":"e-bg-white e-text-slate-900"]},footerContainerClasses(){return["e-dialog__footer",this.dark?"e-bg-gray-700":"e-bg-gray-50","e-flex e-py-3 e-flex e-px-4 e-justify-end e-mt-auto e-items-end"]},panelStyles(){const t=typeof this.width=="number"?`${this.width}px`:this.width,e=typeof this.height=="number"?`${this.height}px`:this.height;return{minWidth:t,minHeight:e,width:t,height:e}}},methods:{getButtonClasses(t){const e=this.dark?"e-bg-gray-700 e-text-gray-50 e-border-solid e-border-[1px] e-border-gray-500 hover:e-bg-gray-600":"e-bg-white e-text-gray-900 e-border-solid e-border-[1px] e-border-gray-300 hover:e-bg-gray-50",r={[ae.warning]:"e-bg-warning e-text-white e-border-none",[ae.error]:"e-bg-error e-text-white e-border-none",[ae.info]:"e-bg-info e-text-white e-border-none",[ae.success]:"e-bg-success e-text-white e-border-none",[ae.primary]:"e-bg-primary e-text-white e-border-none",[ae.brand]:"e-bg-brand-500 e-text-white e-border-none",[ae.default]:e,[ae.gray]:"e-bg-gray-600 e-text-white hover:e-bg-gray-light e-border-none"};return["e-inline-flex e-w-full e-justify-center e-rounded-md e-px-3 e-py-2 e-text-sm e-font-semibold e-shadow-sm sm:e-ml-3 sm:e-w-auto e-cursor-pointer hover:e-opacity-90",r[t]||r[ae.default]]},onActionClick(t){t.closeOnClick&&(this.visible=!1),this.$emit("action-clicked",t.id||t.label)},onClickOutside(){this.persistent||(this.visible=!1)}}});var J6=function(){var e=this,r=e._self._c;return r("EFadeTransition",{attrs:{duration:100}},[e.visible?r("div",{staticClass:"e-dialog e-absolute e-z-10",attrs:{"aria-labelledby":"modal-title",role:"dialog","aria-modal":"true"}},[r("div",{staticClass:"e-dialog__backdrop e-fixed e-inset-0 e-bg-gray-500 e-bg-opacity-75 e-transition-opacity",attrs:{"aria-hidden":"true"}}),r("div",{staticClass:"e-dialog__wrapper e-fixed e-inset-0 e-z-10 e-w-screen e-overflow-y-auto"},[r("div",{staticClass:"e-dialog__wrapper e-cursor-default e-flex e-min-h-full e-items-end e-justify-center e-p-4 e-text-center sm:e-items-center sm:e-p-0"},[r("div",{directives:[{name:"click-outside",rawName:"v-click-outside",value:e.onClickOutside,expression:"onClickOutside"}],class:e.panelClasses,style:e.panelStyles},[r("div",{class:e.headerContainerClasses},[e._t("header",function(){return[e.title?r("div",{staticClass:"e-text-lg e-font-bold"},[e._v(" "+e._s(e.title)+" ")]):e._e()]},{dark:e.dark})],2),r("div",{class:e.bodyContainerClasses},[e._t("default",null,{dark:e.dark})],2),r("div",{class:e.footerContainerClasses},[e._t("footer",function(){return e._l(e.actions,function(n,s){return r("button",{key:s,class:e.getButtonClasses(n.color),on:{click:function(l){return l.stopPropagation(),e.onActionClick(n)}}},[e._v(" "+e._s(n.label)+" ")])})},{actions:e.actions,dark:e.dark})],2)])])])]):e._e()])},e4=[],t4=Y(K6,J6,e4,!1,null,null,null,null);const r4=t4.exports,n4=j.extend({name:"EFeedbackButton",components:{EDialog:r4,EActionButton:vt},mixins:[Ve,Ge],props:{buttonText:{type:String,default:""},buttonClasses:{type:[String,Object,Array],default:null},description:{type:String,default:"Submit feedback"},iconType:{type:String,default:"far fa-thumbs-up"},withText:{type:Boolean,default:!1},dark:{type:Boolean,default:!1},dialogActions:{type:Array,default:()=>[{label:"Submit",color:"primary"}]},dialogWidth:{type:[Number,String],default:"27rem"}},data(){return{tooltipText:this.description||"Submit feedback",showDialog:!1,feedbackText:""}},computed:{eButtonClasses(){return{"e-text-gray-500":!this.dark,"e-text-gray-300":this.dark,"e-bg-gray-600":this.dark,"e-bg-gray-200":!this.dark,"e-rounded-md e-border-none":!0}},textAreaClasses(){return{"e-bg-gray-800":this.dark,"e-bg-white":!this.dark,"e-text-gray-600":!this.dark,"e-text-gray-300":this.dark,"e-custom-scrollbar--light":!this.dark,"e-custom-scrollbar--dark":this.dark}},textAreaContainerClasses(){return{"e-border-gray-600":this.dark,"e-border-gray-300":!this.dark}}},watch:{tooltipText(t){t!==this.description&&this.$setTimeout(()=>{this.tooltipText=this.description},1e3)}},mounted(){},methods:{onClick(){this.withText?this.showDialog=!0:this.submitFeedback()},submitFeedback(){this.showDialog=!1,this.$emit("submit",this.feedbackText),this.tooltipText="Thank you!"}}}),S7="";var i4=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("EActionButton",{attrs:{"tooltip-text":e.tooltipText,"tooltip-position":"top",icon:e.iconType,"icon-size":"lg",dark:e.dark,"button-classes":e.eButtonClasses},on:{click:e.onClick}},[e._v(" "+e._s(e.buttonText)+" "),e.withText?r("EDialog",{attrs:{value:e.showDialog,title:"Feedback",dark:e.dark,width:e.dialogWidth,persistent:"",actions:e.dialogActions},on:{"action-clicked":e.submitFeedback}},[r("div",{staticClass:"e-feedback__form"},[r("div",{staticClass:"e-feedback__form-description e-mb-3 e-leading-relaxed"},[e._v(" Thanks for your input! "),r("br"),e._v("Please share your thoughts and experience to help us improve ")]),r("div",{staticClass:"e-rounded-md e-w-full e-overflow-hidden e-border e-border-solid e-py-2 e-mb-6",class:e.textAreaContainerClasses},[r("textarea",{directives:[{name:"model",rawName:"v-model",value:e.feedbackText,expression:"feedbackText"}],staticClass:"e-feedback__textarea focus:e-outline-none e-mr-6 e-border-none e-placeholder-gray-400 e-py-3 e-pl-3 e-w-full",class:e.textAreaClasses,attrs:{autofocus:"",tabindex:"0",rows:"4",placeholder:"Enter your text here..."},domProps:{value:e.feedbackText},on:{input:function(n){n.target.composing||(e.feedbackText=n.target.value)}}})])])]):e._e()],1)},s4=[],a4=Y(n4,i4,s4,!1,null,null,null,null);const o4=a4.exports,l4=j.extend({name:"EChatMessageActions",components:{EFeedbackButton:o4,ECopyToClipboardBtn:en},props:{message:{type:[String,Array],default:""},dark:{type:Boolean,default:!1},showCopyButton:{type:Boolean,default:!1},showFeedbackButtons:{type:Boolean,default:!1}},data(){return{FeedbackType:Nt,showFeedbackDialog:!1}},computed:{messageText(){return(Array.isArray(this.message)?this.message:[this.message]).join("")}},methods:{handleFeedback(t,e){this.$emit("feedback",{type:t,text:e})},openFeedbackDialog(){this.showFeedbackDialog=!0}}}),T7="";var c4=function(){var e=this,r=e._self._c;return r("div",{staticClass:"e-message__actions e-relative e-h-0"},[r("div",{staticClass:"e-message__actions-container e-flex e-gap-1 e-pt-2"},[e.showCopyButton?r("ECopyToClipboardBtn",{attrs:{text:e.messageText,dark:e.dark,"button-size":"base","button-classes":"e-bg-transparent e-border-none",description:"Copy"}}):e._e(),e.showFeedbackButtons?r("EFeedbackButton",{attrs:{dark:e.dark,"with-text":"","button-size":"base","button-classes":"e-bg-transparent e-border-none"},on:{submit:function(n){return e.handleFeedback(e.FeedbackType.positive,n)}},nativeOn:{click:function(n){return e.openFeedbackDialog.apply(null,arguments)}}}):e._e(),e.showFeedbackButtons?r("EFeedbackButton",{attrs:{dark:e.dark,"with-text":"","button-size":"base","button-classes":"e-bg-transparent e-border-none","icon-type":"far fa-thumbs-down"},on:{submit:function(n){return e.handleFeedback(e.FeedbackType.negative,n)}},nativeOn:{click:function(n){return e.openFeedbackDialog.apply(null,arguments)}}}):e._e()],1)])},u4=[],d4=Y(l4,c4,u4,!1,null,null,null,null);const h4=d4.exports,f4=j.extend({name:"EChatMessage",components:{EFadeTransition:Pt,EAvatar:wt,EChatMessageActions:h4,EEvercamLogo:Jr,EPulsatingDot:D6,EMarkdown:U6},mixins:[Ge],props:{role:{type:String,default:Ze.USER},initials:{type:String,default:null},message:{type:[String,Array],default:""},isLoading:{type:Boolean,default:!1},avatarSrc:{type:String,default:null},showAvatar:{type:Boolean,default:!0},dark:{type:Boolean,default:!1},withActions:{type:Boolean,default:!1},showCopyButton:{type:Boolean,default:!1},showFeedbackButtons:{type:Boolean,default:!1},loadingMessage:{type:String,default:""},exposedRegexes:{type:Array,default:()=>[]},animated:{type:Boolean,default:!1}},data(){return{showActions:!1}},computed:{isBotRole(){return this.role===Ze.COPILOT||this.role===Ze.SYSTEM},isStream(){return Array.isArray(this.message)},userMessageClasses(){return{"e-bg-gray-100 e-text-gray-800":!this.dark,"e-bg-gray-600 e-text-white":this.dark}},logoClasses(){return{"e-bg-white e-p-[2px] e-rounded-full":this.dark}},dotColor(){return this.dark?"#ff2525":"#c5393d"},markdownScopedSlots(){return Object.keys(this.$scopedSlots).filter(t=>t.startsWith("markdown.")).reduce((t,e)=>(t[e]=this.$scopedSlots[e],t),{})}},methods:{onMouseOver(){this.showActions=!0},onMouseLeave(t){[null,document.documentElement].includes(t.relatedTarget)||(this.showActions=!1)},onFeedback(t){this.$emit("feedback",t),this.$setTimeout(()=>{this.showActions=!1},1e3)}}}),k7="";var p4=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("div",{staticClass:"e-chat-message",on:{mouseenter:e.onMouseOver,mouseleave:e.onMouseLeave}},[r("div",{staticClass:"e-chat-message__wrapper e-flex e-items-start e-justify-start e-gap-3",class:{"e-chat-message__rtl":!e.isBotRole}},[e.showAvatar?r("div",{staticClass:"e-chat-message__avatar e-mt-3"},[e.isBotRole?e._t("message-avatar",function(){return[r("div",{class:e.logoClasses},[r("EEvercamLogo",{attrs:{size:e.dark?"2xs":"xs"}})],1)]},{role:e.role}):r("EAvatar",{attrs:{image:e.avatarSrc,size:"xs"}},[e._v(e._s(e.initials))])],2):e._e(),r("div",{staticClass:"e-chat-message__content e-flex"},[e.isLoading&&e.isBotRole?e._t("loadingPlaceholder",function(){return[r("div",[e.loadingMessage?r("EMarkdown",{staticClass:"e-chat-message__markdown e-italic",attrs:{chunks:[e.loadingMessage],animated:"",dark:e.dark,copyable:!1}}):e._e(),r("div",{staticClass:"e-inline-block e-mt-5 e-ml-2"},[r("EPulsatingDot",{attrs:{size:8,color:e.dotColor}})],1)],1)]}):e.isBotRole?r("EMarkdown",{staticClass:"e-chat-message__markdown",attrs:{chunks:e.message,animated:e.animated,dark:e.dark,"exposed-regexes":e.exposedRegexes},on:{"animation-end":function(n){return e.$emit("animation-end")},"animation-start":function(n){return e.$emit("animation-start")}},scopedSlots:e._u([e._l(e.markdownScopedSlots,function(n,s){return{key:s,fn:function(l){return[e._t(s,null,null,l)]}}})],null,!0)}):r("p",{staticClass:"e-chat-message__content e-font-medium e-text-wrap e-mb-1 e-mt-[12px] e-rounded-lg e-p-2 e-px-4",class:e.userMessageClasses},[e._v(" "+e._s(e.message)+" ")]),e._t("extraContent")],2)]),r("EFadeTransition",[e.withActions&&e.showActions?r("EChatMessageActions",{staticClass:"e-left-11",attrs:{dark:e.dark,"show-copy-button":e.showCopyButton,"show-feedback-buttons":e.showFeedbackButtons,message:e.message},on:{feedback:e.onFeedback}}):e._e()],1)],1)},m4=[],g4=Y(f4,p4,m4,!1,null,null,null,null);const v4=g4.exports,_4=j.extend({name:"EChatFooter",props:{dark:{type:Boolean,default:!1},inline:{type:Boolean,default:!1}},computed:{backgroundClasses(){return this.inline?{}:{"e-bg-gray-700":this.dark,"e-bg-gray-50":!this.dark}},footerClasses(){return{...this.backgroundClasses}}}});var y4=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("div",{staticClass:"e-chat-footer e-px-3 e-pt-4 e-pb-3",class:e.footerClasses},[e._t("default")],2)},C4=[],b4=Y(_4,y4,C4,!1,null,null,null,null);const x4=b4.exports,w4=j.extend({name:"EChatInput",components:{EIcon:rt},model:{prop:"value",event:"prompt-changed"},props:{dark:{type:Boolean,default:!1},placeholder:{type:String,default:"Message Copilot"},disabled:{type:Boolean,default:!1}},data(){return{content:"",maxHeight:175,textAreaHeight:0,isShiftKeyPressed:!1}},computed:{textAreaContainerClasses(){return{"e-border-gray-600":this.dark&&!this.disabled,"e-border-gray-300":!this.dark&&!this.disabled,"e-border-gray-800":this.dark&&this.disabled,"e-border-gray-500":!this.dark&&this.disabled,"e-cursor-not-allowed":this.disabled}},textAreaClasses(){return{"e-bg-gray-800":this.dark,"e-bg-white":!this.dark,"e-text-gray-600":!this.dark,"e-text-gray-300":this.dark,"e-custom-scrollbar--light":!this.dark,"e-custom-scrollbar--dark":this.dark}},buttonClasses(){return{"e-bg-gray-800":this.dark,"e-bg-white":!this.dark,"e-text-gray-500":!this.dark,"e-text-gray-300":this.dark}},textareaStyle(){return this.textAreaHeight?{height:`${Math.min(this.textAreaHeight,this.maxHeight)}px`,overflowY:this.isOverflowing?"scroll":"hidden"}:{}},isOverflowing(){return!!this.textAreaHeight&&this.textAreaHeight>this.maxHeight}},mounted(){this.focus()},methods:{focus(){this.$refs.chatTextarea.focus()},submitMessage(){this.$emit("submit",this.content),this.content="",this.$nextTick(this.updateTextAreaHeight)},onInput(t){const e=t.target,r=this.content===e.value;this.content=e.value,r||(this.updateTextAreaHeight(),this.$emit("prompt-changed",e.value))},onKeyDown(t){if(!this.disabled){if(!this.isShiftKeyPressed&&t.key==="Enter"){t.preventDefault();return}if(t.key==="Shift"||t.code==="ShiftLeft"){this.isShiftKeyPressed=!0;return}}},onKeyUp(t){if(!this.disabled){if(t.key==="Shift"||t.code==="ShiftLeft"){this.isShiftKeyPressed=!1;return}t.key==="Enter"&&!this.isShiftKeyPressed&&(t.preventDefault(),this.submitMessage())}},updateTextAreaHeight(){const t=this.$refs.chatTextarea;t.style.height="auto",this.textAreaHeight=t.scrollHeight}}}),M7="";var S4=function(){var e=this,r=e._self._c;return r("div",{staticClass:"e-chat-input e-relative e-flex e-w-auto e-p-2",class:{"e-opacity-50":e.disabled}},[r("div",{staticClass:"e-rounded-lg e-w-full e-overflow-hidden e-border e-border-solid",class:e.textAreaContainerClasses},[r("textarea",e._b({ref:"chatTextarea",staticClass:"e-chat-input__textarea focus:e-outline-none e-mr-6 e-border-none e-placeholder-gray-400 e-py-3 e-pl-3 e-w-full",class:e.textAreaClasses,style:e.textareaStyle,attrs:{rows:"1",tabindex:"0",autofocus:"",placeholder:e.placeholder,disabled:e.disabled},on:{keydown:function(n){return n.stopPropagation(),e.onKeyDown.apply(null,arguments)},keyup:e.onKeyUp,input:e.onInput}},"textarea",e.$attrs,!1))]),r("div",{staticClass:"e-absolute e-bottom-3 e-items-center e-flex e-h-min",class:e.isOverflowing?"e-right-6":"e-right-4"},[r("button",{staticClass:"e-chat-input__submit-btn e-inline-flex e-items-center e-justify-center e-cursor-pointer disabled:e-cursor-not-allowed e-h-8 e-w-8 e-border-none focus:e-outline-none",class:e.buttonClasses,attrs:{type:"button",disabled:e.disabled},on:{click:function(n){return n.preventDefault(),e.submitMessage.apply(null,arguments)}}},[r("EIcon",{attrs:{icon:"arrow-up",size:"base"}})],1)])])},T4=[],k4=Y(w4,S4,T4,!1,null,null,null,null);const M4=k4.exports,E4=j.extend({name:"EChatSuggestionCard",components:{EIcon:rt},props:{text:{type:String,required:!0},icon:{type:String,default:null},color:{type:String,default:"e-text-gray-500"},dark:{type:Boolean,default:!1},width:{type:Number,default:200}},computed:{classes(){return{"hover:e-bg-gray-100 e-border-gray-200":!this.dark,"e-bg-gray-800 e-border-gray-600 hover:e-bg-gray-900":this.dark}},styles(){return{width:`${this.width}px`}}}});var $4=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("div",e._g(e._b({staticClass:"e-chat-suggestion e-p-3 e-inline-block e-border-solid e-border-[1.67px] e-rounded-xl e-cursor-pointer",class:e.classes,style:e.styles},"div",e.$attrs,!1),e.$listeners),[r("div",{staticClass:"e-chat-suggestion__icon e-h-6 e-w-6 e-mb-2"},[e.icon?r("EIcon",{attrs:{icon:e.icon,size:"lg",color:e.color}}):e._t("svg-icon")],2),r("p",{staticClass:"e-chat-suggestion__text e-font-medium e-antialiased e-text-wrap",class:{"e-text-gray-200":e.dark,"e-text-gray-600":!e.dark}},[e._v(" "+e._s(e.text)+" ")])])},L4=[],D4=Y(E4,$4,L4,!1,null,null,null,null);const P4=D4.exports,O4=j.extend({components:{EFadeTransition:Pt,EChatWrapper:h6,EChatHeader:b6,EChatBody:k6,EChatMessage:v4,EChatFooter:x4,EChatInput:M4,EChatSuggestionCard:P4,EEvercamLogo:Jr},props:{dark:{type:Boolean,default:!1},messages:{type:Array,default:()=>[]},user:{type:String,default:"You"},embedded:{type:Boolean,default:!1},showHeader:{type:Boolean,default:!0},inlineFooter:{type:Boolean,default:!1},height:{type:String,default:void 0},width:{type:String,default:void 0},showUserAvatar:{type:Boolean,default:!0},showCopilotAvatar:{type:Boolean,default:!0},readonly:{type:Boolean,default:!1},isLoading:{type:Boolean,default:!1},isDisabled:{type:Boolean,default:!1},headerText:{type:String,default:"Evercam Copilot"},inputPlaceholder:{type:String,default:"Message Copilot"},loadingMessage:{type:String,default:""},suggestions:{type:Array,default:()=>[]},exposedRegexes:{type:Array,default:()=>[]}},data(){return{prompt:"",containerHeight:0,headerHeight:0,bodyHeight:0,footerHeight:0}},computed:{ChatMessageRole(){return Ze},userInitials(){var t,e,r;return((r=(e=(t=this.user.trim())==null?void 0:t.split(/\s+/))==null?void 0:e.map(n=>{var s;return((s=n==null?void 0:n.charAt(0))==null?void 0:s.toUpperCase())||""}))==null?void 0:r.join(""))||this.user[0]||""},chatBodyStyle(){return this.bodyHeight?{maxHeight:`${this.bodyHeight}px`,height:`${this.bodyHeight}px`}:{}},wrapperStyle(){return{height:this.height||"100%",width:this.width||"100%"}},bodyBorderClasses(){let t={};this.showHeader&&(t={"e-border-t-[1px] e-border-t-solid":!0,"e-border-t-gray-300":!this.dark,"e-border-t-gray-600":this.dark});let e={};return this.inlineFooter||(e={"e-border-b-[1px] e-border-b-solid":!0,"e-border-b-gray-300":!this.dark,"e-border-b-gray-600":this.dark}),{...t,...e}},markdownScopedSlots(){return Object.keys(this.$scopedSlots).filter(t=>t.startsWith("markdown.")).reduce((t,e)=>(t[e]=this.$scopedSlots[e],t),{})},showSuggestions(){return this.messages.length===0&&this.suggestions.length>0}},watch:{height(){this.updateChatBodyHeight()},showHeader(){this.updateChatBodyHeight()}},mounted(){this.updateChatBodyHeight()},methods:{sendMessage(){!this.isDisabled&&this.prompt.length>0&&(this.$emit("user-message",this.prompt),this.prompt="")},isUserMessage(t){return t.role===Ze.USER},hasActions(t){return this.isLoading||this.isDisabled?!1:t.role===Ze.COPILOT},getMessageContent(t){return t.content},getMessageInitials(t){return this.isUserMessage(t)?this.userInitials:null},getMessageClasses(t,e){return{"e-mb-11":e===this.messages.length-1&&this.hasActions(t)}},updateChatBodyHeight(){this.$nextTick(()=>{var n,s,l;const t=(n=this.$refs.chatContainer)==null?void 0:n.$el,e=(s=this.$refs.chatHeader)==null?void 0:s.$el,r=(l=this.$refs.chatFooter)==null?void 0:l.$el;!t||!e||!r||(this.headerHeight=e.clientHeight,this.footerHeight=r.clientHeight,this.containerHeight=t.clientHeight,this.height?this.bodyHeight=parseInt(this.height)-this.headerHeight-this.footerHeight:this.bodyHeight=Math.max(500,this.containerHeight-this.headerHeight-this.footerHeight))})},isAvatarVisible(t){return t.role===Ze.USER?this.showUserAvatar:t.role===Ze.COPILOT?this.showCopilotAvatar:!0},onMessageFeedback(t,e){this.$emit("message-feedback",{...t,messageId:e})}}}),E7="";var z4=function(){var e=this,r=e._self._c;return r("EChatWrapper",{ref:"chatContainer",staticClass:"e-chat-wrapper",style:e.wrapperStyle,attrs:{dark:e.dark,embedded:e.embedded}},[r("div",{staticClass:"e-w-full e-h-full e-chat-container"},[r("EChatHeader",{ref:"chatHeader",attrs:{hidden:!e.showHeader,dark:e.dark,title:e.headerText},scopedSlots:e._u([{key:"chip",fn:function(){return[e._t("chip")]},proxy:!0}],null,!0)}),r("EChatBody",{ref:"chatBody",class:e.bodyBorderClasses,style:e.chatBodyStyle,attrs:{dark:e.dark}},[r("EFadeTransition",[e.showSuggestions?r("div",{staticClass:"e-w-full e-flex e-flex-col e-items-center e-justify-center e-mt-8"},[r("div",{staticClass:"e-mb-8"},[r("EEvercamLogo",{attrs:{size:"lg"}})],1),r("div",{staticClass:"e-inline-flex e-flex-wrap e-justify-center e-gap-4"},e._l(e.suggestions,function(n){var s;return r("EChatSuggestionCard",{key:n.text,attrs:{text:n.text,icon:n.icon,color:n.color,dark:e.dark,width:(s=n.width)!=null?s:150},on:{click:function(l){return e.$emit("suggestion-clicked",n)}}})}),1)]):e._e()]),e.showSuggestions?e._e():r("div",e._l(e.messages,function(n,s){return r("EChatMessage",{key:`${n.id}-${s}`,class:e.getMessageClasses(n,s),attrs:{dark:e.dark,role:n.role,"is-loading":n.isLoading,"data-message-id":n.id,"show-feedback-buttons":!e.readonly,"exposed-regexes":e.exposedRegexes,"show-copy-button":"",message:e.getMessageContent(n),initials:e.getMessageInitials(n),"show-avatar":e.isAvatarVisible(n),"with-actions":e.hasActions(n)&&s>0},on:{feedback:function(l){return e.onMessageFeedback(l,n.id)},"animation-end":function(l){return e.$emit("animation-end",l)}},scopedSlots:e._u([e._l(e.markdownScopedSlots,function(l,i){return{key:i,fn:function(h){return[e._t(i,null,null,h)]}}}),{key:"extraContent",fn:function(){return[e._t("message.extraContent",null,{message:n})]},proxy:!0}],null,!0)})}),1),e.isLoading?r("EChatMessage",{attrs:{"is-loading":"","loading-message":e.loadingMessage,"data-message-id":-1,"show-avatar":e.showCopilotAvatar,role:e.ChatMessageRole.COPILOT,dark:e.dark}}):e._e()],1),r("EChatFooter",{directives:[{name:"show",rawName:"v-show",value:!e.readonly,expression:"!readonly"}],ref:"chatFooter",attrs:{dark:e.dark,inline:e.inlineFooter}},[r("EChatInput",{attrs:{dark:e.dark,disabled:e.isDisabled,placeholder:e.inputPlaceholder},on:{"prompt-changed":function(n){return e.$emit("prompt-changed",n)},submit:e.sendMessage},model:{value:e.prompt,callback:function(n){e.prompt=n},expression:"prompt"}})],1)],1)])},B4=[],I4=Y(O4,z4,B4,!1,null,"5cba8b84",null,null);const A4=I4.exports,tn={EAvatar:wt,EBadge:Wt,EIcon:rt,ESpinner:Pr,ERow:di,ECol:hi,EVideoPlayer:Ci,ETimeline:ki,EVideoEmbed:Mi,EHeatmapBar:Yr,EHoursHeatmap:Ei,EReadMore:$i,ETruncatedDiv:Li,ECompareSeparator:Xr,EImagesComparator:Pi,EToggleSwitch:Hi,EExpandableMenu:Oi,EZoomable:Ir,EGlobalSearch:ji,ESvgIcon:Ai,ECalendarHeatmap:Fi,EFlagIcon:Ri,EImagePlayer:Gi,EZoomableImg:Kr,EZoomSlider:Vr,EActionButton:vt,ETooltip:Qr,ELayout:qi,EChat:A4,EContextProvider:o6,ECopyToClipboardBtn:en},F4={install(t){Object.keys(tn).forEach(e=>{t.component(e,tn[e])}),Object.keys(Wi).forEach(e=>{t.mixin(e,Wi[e])}),bi.forEach(({name:e,definition:r})=>{t.directive(e,r)})}};U.AvatarSizes=l1,U.BadgeColors=u1,U.BadgeSizes=o1,U.BaseColor=ae,U.ChatMessageRole=Ze,U.ChatMessageType=mn,U.ClickOutsideDirective=Rr,U.Colors=ci,U.DirectivesMap=bi,U.EActionButton=vt,U.EAvatar=wt,U.EBadge=Wt,U.ECalendarHeatmap=Fi,U.ECol=hi,U.ECompareSeparator=Xr,U.ECopyToClipboardBtn=en,U.EExpandableMenu=Oi,U.EFlagIcon=Ri,U.EGlobalSearch=ji,U.EHeatmapBar=Yr,U.EHoursHeatmap=Ei,U.EIcon=rt,U.EImagePlayer=Gi,U.EImagesComparator=Pi,U.ELayout=qi,U.EReadMore=$i,U.ERow=di,U.ESpinner=Pr,U.ESvgIcon=Ai,U.ETimeline=ki,U.EToggleSwitch=Hi,U.ETooltip=Qr,U.ETruncatedDiv=Li,U.EVENTS=f1,U.EVideoEmbed=Mi,U.EVideoPlayer=Ci,U.EZoomSlider=Vr,U.EZoomable=Ir,U.EZoomableImg=Kr,U.FeedbackType=Nt,U.IconSizes=ui,U.ImageQuality=pn,U.Position=Oe,U.ResizeObserverDirective=Qe,U.Size=J,U.TextSizes=li,U.TimelineAxis=et,U.TimelineChartType=je,U.TimelineIntervalChangeTrigger=xt,U.ToggleSwitchSizes=c1,U.TooltipColors=d1,U.TooltipPositions=h1,U.components=tn,U.debounce=fi,U.default=F4,U.eventListeners=Ve,U.exitFullScreen=Br,U.fullConfig=Dr,U.generateUniqueId=vi,U.getImageData=D1,U.getRandomChars=L1,U.hashCode=_i,U.hexToRgba=pi,U.inactivityListener=Ni,U.isFullScreen=Or,U.isRgba=gi,U.isValidDate=P1,U.makeFullScreen=zr,U.rgbToRgba=mi,U.timeouts=Ge,U.toRgba=dt,Object.defineProperties(U,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
204
204
|
//# sourceMappingURL=index.umd.js.map
|