@evercam/ui 1.0.0-preview-missing-types-3126c36fd → 1.0.0-preview-missing-types-cf2d2fa52
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -0
- package/dist/index.mjs +7 -7
- package/dist/index.mjs.map +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/index.umd.js.map +1 -1
- package/dist/utils.d.ts +1 -5
- package/dist/web-types.json +1 -1
- package/package.json +1 -1
package/dist/index.umd.js
CHANGED
|
@@ -229,7 +229,7 @@ m367 -176 c192 -56 348 -207 420 -405 34 -93 34 -285 0 -378 -72 -198 -228
|
|
|
229
229
|
510 154 506 4 -4 72 -236 152 -517z m361 -1029 c13 -13 27 -35 30 -48 27 -116
|
|
230
230
|
285 -1327 285 -1339 0 -25 -152 -89 -316 -134 -139 -38 -243 -55 -414 -65
|
|
231
231
|
-174 -10 -311 -1 -476 31 -186 35 -454 134 -454 167 0 26 280 1325 292 1355
|
|
232
|
-
23 59 9 57 541 57 l488 0 24 -24z`}})])])},e5=[],t5=R(K2,J2,e5,!1,null,null,null,null);const r5=t5.exports,n5=O.extend({name:"ZohoCrm",components:{BaseIcon:ce},props:{color:{type:String,default:"grey"}}});var i5=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"}})])},s5=[],a5=R(n5,i5,s5,!1,null,null,null,null);const o5=a5.exports,l5=O.extend({name:"Tag",components:{BaseIcon:ce},props:{color:{type:String,default:"#000"},backgroundColor:{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:"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"}})])},u5=[],d5=R(l5,c5,u5,!1,null,null,null,null);const h5=d5.exports,p5=O.extend({name:"Tag",components:{BaseIcon:ce},props:{color:{type:String,default:"#000"},backgroundColor:{type:String,default:"white"}}});var f5=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"}})])},m5=[],g5=R(p5,f5,m5,!1,null,null,null,null);const v5=g5.exports,y5=O.extend({name:"Nerves",components:{BaseIcon:ce},props:{color:{type:String,default:"white"}}});var _5=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("BaseIcon",e._g(e._b({attrs:{small:!0,width:"39px",height:"32px",viewBox:"0 0 39 32"}},"BaseIcon",e.$attrs,!1),e.$listeners),[r("g",{attrs:{transform:"translate(-150.000000, -24.000000)",fill:"#FFFFFF","fill-rule":"nonzero"}},[r("g",{attrs:{transform:"translate(150.000000, 24.000000)"}},[r("path",{style:`fill: ${e.color}`,attrs:{d:"M36.8961538,0.0347826087 C37.9157565,0.0347826087 38.7423077,0.875708644 38.7423077,1.91304348 L38.7423077,1.91304348 L38.7423077,30.0947826 C38.7423077,31.1321174 37.9157565,31.9730435 36.8961538,31.9730435 L36.8961538,31.9730435 L29.4846154,31.9730435 L29.4884615,31.9886957 C29.0885173,31.9836286 28.7010575,31.8462773 28.3846154,31.5973913 L28.3846154,31.5973913 L10.4,17.9565217 C9.92639703,17.5948183 9.6506735,17.0250601 9.65756147,16.4226087 L9.65756147,16.4226087 L9.65756147,15.64 C9.65686375,14.933417 10.0458734,14.2861439 10.6644383,13.9648756 C11.2830032,13.6436073 12.0264516,13.7027078 12.5884615,14.1178261 L12.5884615,14.1178261 L29.7038462,26.7373913 C30.0199016,26.968534 30.3992227,27.0930678 30.7884615,27.0934783 L30.7884615,27.0934783 L32.0923077,27.0934783 C32.5822513,27.09452 33.0524229,26.8969669 33.3988661,26.5444986 C33.7453093,26.1920303 33.9394855,25.7136818 33.9384615,25.2152174 L33.9384615,25.2152174 L33.9384615,6.79652174 C33.9394855,6.29805736 33.7453093,5.81970886 33.3988661,5.46724054 C33.0524229,5.11477223 32.5822513,4.91721914 32.0923077,4.91826087 L32.0923077,4.91826087 L30.7153846,4.91826087 C30.225441,4.9193026 29.7552694,4.72174951 29.4088262,4.36928119 C29.062383,4.01681288 28.8682069,3.53846438 28.8692308,3.04 L28.8692308,3.04 L28.8692308,1.91304348 C28.8692308,0.875708644 29.695782,0.0347826087 30.7153846,0.0347826087 L30.7153846,0.0347826087 Z M9.29615385,0.00739130435 C9.69614711,0.0121740752 10.0836931,0.149555936 10.4,0.398695652 L10.4,0.398695652 L28.3846154,14.0434783 C28.8571972,14.4035114 29.1305978,14.972929 29.1192308,15.5734783 L29.1192308,15.5734783 L29.1192308,16.356087 C29.1190118,17.0612911 28.7305478,17.7069474 28.1133582,18.0279227 C27.4961685,18.348898 26.7542665,18.2910992 26.1923077,17.8782609 L26.1923077,17.8782609 L9.08461538,5.27043478 C8.76974759,5.03645424 8.389914,4.91038181 8,4.91043478 L8,4.91043478 L6.68461538,4.91043478 C6.19431782,4.9104337 5.72415756,5.10885839 5.37782578,5.4619474 C5.031494,5.81503642 4.83744009,6.2937853 4.83846154,6.7926087 L4.83846154,6.7926087 L4.83846154,25.1995652 C4.83846154,26.2369001 5.66501277,27.0778261 6.68461538,27.0778261 L6.68461538,27.0778261 L8.07692308,27.0778261 C8.5668667,27.0767844 9.0370383,27.2743374 9.38348152,27.6268058 C9.72992473,27.9792741 9.92410084,28.4576226 9.92307692,28.956087 L9.92307692,28.956087 L9.92307692,30.0869565 C9.92413223,30.588151 9.72784822,31.0688985 9.37806512,31.4218238 C9.02828202,31.774749 8.55413977,31.9704502 8.06153846,31.9653197 L8.06153846,31.9653197 L1.88461538,31.9653197 C0.86501277,31.9653197 0.03844549,31.1242914 0.03844549,30.0869565 L0.03844549,30.0869565 L0.03844549,1.91304348 C0.0364158462,1.41354313 0.230017315,0.933787137 0.576460295,0.579850445 C0.922903275,0.225913753 1.39364925,0.0269521857 1.88461538,0.0269565217 L1.88461538,0.0269565217 L9.29615385,0.0269565217 Z"}})])])])},C5=[],b5=R(y5,_5,C5,!1,null,null,null,null);const x5=b5.exports,w5=O.extend({name:"Procore",components:{BaseIcon:ce},props:{color:{type:String,default:"white"}}});var S5=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("BaseIcon",e._b({attrs:{small:!0,width:"1608px",height:"204px",viewBox:"0 0 1608 204",color:e.color}},"BaseIcon",e.$attrs,!1),[r("path",{staticClass:"s0",attrs:{id:"_Compound_Path_","fill-rule":"evenodd",d:"m1407.6 1h200.4v37.6h-147.4v44.6h94.4v37.5h-94.4v44.6h147.4v37.8h-200.4zm-732.4 41.6v118.8c0.2 5.5-0.7 10.9-2.7 16-2.1 5.1-5.1 9.7-9 13.5-3.8 3.9-8.4 6.9-13.5 8.9-5.1 2-10.6 3-16 2.8h-130.5c-5.5 0.2-11-0.6-16.2-2.6-5.1-2-9.8-5-13.8-8.8-3.9-3.9-7-8.5-9.1-13.7-2-5.1-3-10.6-2.8-16.1v-118.8c-0.2-5.5 0.7-10.9 2.8-16 2-5.1 5-9.7 8.9-13.6 3.9-3.8 8.5-6.8 13.6-8.8 5.1-2 10.6-3 16-2.8h130.5c5.5-0.3 11 0.6 16.2 2.6 5.1 1.9 9.8 4.9 13.7 8.8 4 3.9 7.1 8.5 9.1 13.6 2 5.2 3 10.7 2.8 16.2zm-32.7 59.4l-37-63.5h-74.4l-36 63.5 36.7 63.4h74.5zm704.7 26.9l43 74.3h-57.2l-42.9-74.3h-61.9v74.3h-53v-202.2h168.1c5.5-0.2 11 0.7 16.2 2.7 5.1 2.1 9.8 5.1 13.6 9 3.9 3.9 7 8.6 9 13.8 1.9 5.1 2.8 10.6 2.6 16.1v45.8c0.1 5.1-0.8 10.1-2.6 14.9-1.8 4.8-4.5 9.2-7.9 12.9-3.5 3.8-7.7 6.8-12.3 9-4.6 2.2-9.6 3.4-14.7 3.7zm-14.9-77.8c0-1.7-0.4-3.3-1-4.8-0.6-1.5-1.6-2.9-2.7-4-1.2-1.2-2.6-2.1-4.1-2.7-1.5-0.7-3.1-1-4.7-1h-90.9v52.9h90.9c1.6 0 3.2-0.4 4.7-1 1.5-0.6 2.9-1.6 4.1-2.7 1.1-1.2 2.1-2.5 2.7-4 0.6-1.6 1-3.2 1-4.8zm-181.5-8.5v118.9c0.1 5.4-0.8 10.9-2.8 16-2.1 5-5.1 9.7-9 13.5-3.9 3.9-8.5 6.9-13.6 8.9-5.1 2-10.5 2.9-16 2.7h-130.4c-5.5 0.2-10.9-0.8-15.9-2.8-5.1-2-9.7-5.1-13.5-8.9-3.9-3.9-6.9-8.5-8.8-13.5-2-5.1-3-10.5-2.8-15.9v-118.9c-0.2-5.4 0.8-10.9 2.8-15.9 2-5.1 5-9.7 8.9-13.6 3.9-3.8 8.5-6.9 13.6-8.9 5-2 10.5-2.9 16-2.7h130.4c5.4-0.2 10.9 0.8 15.9 2.8 5.1 2 9.7 5.1 13.5 8.9 3.9 3.9 6.9 8.5 8.9 13.5 2 5.1 2.9 10.5 2.8 15.9zm-32.9 59.5l-36.8-63.5h-74.4l-36.2 63.5 36.9 63.4h74.4zm-229-98.5c5.2 2 10 5.1 13.9 9 4 3.9 7.1 8.6 9.1 13.8 2 5.2 2.9 10.7 2.7 16.3v32.4h-48.6l-21.1-36.4h-74.5l-36.7 63.4 36 63.4h74.4l21.2-36.4h48.5v32.4c0.2 5.5-0.7 10.9-2.7 16-2 5.1-5.1 9.7-8.9 13.5-3.9 3.9-8.5 6.9-13.6 8.9-5.1 2-10.6 3-16 2.8h-130.4c-5.5 0.2-11-0.8-16.1-2.8-5.1-2-9.7-5-13.6-8.9-3.9-3.8-6.9-8.4-8.9-13.5-2-5.1-3-10.5-2.8-16v-118.8c-0.3-5.5 0.6-11 2.6-16.1 2-5.2 5.1-9.8 9-13.7 3.8-4 8.5-7 13.6-9 5.1-2.1 10.6-3 16.2-2.8h130.4c5.5-0.3 11.1 0.5 16.3 2.5zm-486.8 125.4l43 74.3h-56.7l-43-74.3h-62.4v74.3h-52.4v-202.2h167.9c5.5-0.2 11 0.7 16.1 2.8 5.2 2 9.8 5 13.7 9 3.9 3.9 6.9 8.5 8.9 13.7 2 5.1 2.9 10.6 2.7 16.1v45.7c0.1 5.2-0.7 10.3-2.6 15-1.8 4.8-4.5 9.2-8 13-3.5 3.7-7.7 6.8-12.4 8.9-4.6 2.2-9.7 3.4-14.8 3.7zm-14.9-77.9c0-1.6-0.4-3.2-1-4.7-0.7-1.6-1.6-2.9-2.8-4.1-1.1-1.2-2.5-2.1-4-2.7-1.6-0.6-3.2-0.9-4.9-0.9h-91.5v52.8h90.7c1.6 0 3.2-0.3 4.8-0.9 1.5-0.6 2.9-1.5 4-2.7 1.2-1.2 2.2-2.5 2.8-4 0.6-1.6 1-3.2 1-4.8zm-177.8-8.5v45.8c0.2 5.4-0.7 10.8-2.7 15.9-2 5.1-5.1 9.7-8.9 13.6-3.9 3.8-8.5 6.9-13.6 8.9-5.1 2-10.5 2.9-16 2.7h-115.1v74.3h-53v-202.8h168.1c5.5-0.2 11 0.8 16.1 2.8 5.1 2 9.8 5.1 13.6 9 3.9 3.9 6.9 8.6 8.9 13.7 2 5.1 2.9 10.6 2.6 16.1zm-53 8.9c0-1.6-0.3-3.3-1-4.8-0.6-1.5-1.6-2.9-2.7-4-1.2-1.2-2.6-2.1-4.1-2.7-1.5-0.6-3.2-1-4.8-1h-90.7v52.9h90.7c1.6 0 3.3-0.3 4.8-0.9 1.5-0.6 2.9-1.6 4.1-2.7 1.1-1.2 2.1-2.6 2.7-4.1 0.7-1.5 1-3.1 1-4.8z"}}),r("path",{staticStyle:{fill:"#ff5200"},attrs:{d:"m787.8 68.7h38.7l19.3 33.3-19.3 33.3h-38.7l-19.4-33.3 19.4-33.3z"}})])},T5=[],k5=R(w5,S5,T5,!1,null,null,null,null);const $5=k5.exports,M5=O.extend({name:"ProcoreSmall",components:{BaseIcon:ce},props:{color:{type:String,default:"white"}}});var E5=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("BaseIcon",e._b({attrs:{viewBox:"0 0 1491 1408",small:!0,width:"1491px",height:"1408px",color:e.color}},"BaseIcon",e.$attrs,!1),[r("path",{style:`fill: ${e.color}`,attrs:{d:"M1311.3 18.5c36.3 13.8 69.3 35.1 96.8 62.4 27.5 27.4 49 60.2 63.1 96.4 14.1 36.1 20.5 74.9 18.7 113.6v226h-338l-147.2-254H486.4L230.3 705.6l250.9 442.7h518.3l147.2-254h338v226c1.3 38-5.2 75.9-19.2 111.4-14 35.4-35.1 67.6-62 94.5-27 26.9-59.1 48-94.6 62-35.4 14-73.3 20.5-111.4 19.2H289.4c-38.1 1.3-76.1-5.2-111.5-19.2-35.5-13.9-67.8-35-94.8-61.9-27-27-48.2-59.1-62.3-94.5-14.1-35.5-20.7-73.4-19.6-111.5V290.9C-.4 252.6 6 214.3 19.9 178.5s35-68.4 62.1-95.6c27-27.3 59.4-48.6 95.1-62.8C212.8 6 251-.7 289.4.7h908.1c38.8-2.1 77.6 4 113.8 17.8"}}),r("path",{attrs:{fill:"#ff5200",d:"M607.7 473.4h269.5L1012 705.6 877.2 937.8H607.7L472.9 705.6z"}})])},L5=[],D5=R(M5,E5,L5,!1,null,null,null,null);const P5=D5.exports,z5=O.extend({name:"Aconex",components:{BaseIcon:ce},props:{color:{type:String,default:"white"}}});var O5=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("BaseIcon",e._b({attrs:{viewBox:"0 0 655 101",small:!0,width:"655px",height:"101px",color:e.color}},"BaseIcon",e.$attrs,!1),[r("path",{attrs:{fill:e.color,d:"M37.06 0h14.5C73.84 2.53 89.8 10.9 89.97 35.77q.09 12.18.01 59.51 0 .52-.5.66-12.12 3.44-24.54 5.06H30.19C15.22 98.86 1.82 92.45 0 75.69v-8q2.73-19.08 21.98-23.42c14.83-3.34 25.3-2.59 43.9-2.5q.49.01.53-.48c.95-11.25-1.99-21.4-14.77-23.07-14.54-1.9-28.92.74-42.68 5.25q-.66.21-.79-.46L5.15 6.85q-.1-.53.41-.69Q21.01 1.3 37.06 0ZM24.35 74.69c4.27 15.92 30.28 13.01 41.47 9.94q.68-.19.68-.89V55.5q0-.52-.52-.51c-9.13.02-33.04-2.87-40.14 8.54q-3.13 5.04-1.49 11.16ZM154.81 0h12.25q11.13 1.2 21.36 5.76a.83.83 0 0 1 .48.92l-3 15.83a.52.52 0 0 1-.75.36c-27.94-14.29-61.26-.09-54.36 35.65 5.27 27.29 35.25 30.97 56.27 21.02q.49-.23.6.31l3.06 15.94q.11.59-.44.82-7.43 3.11-15.34 4.39h-26.25q-15.21-2.62-26.13-11.53c-16.7-13.62-20.16-39.21-13.57-58.74C115.54 11.28 135.33 1.3 154.81 0ZM248.06 0h11.75c32.22 3.27 50.15 24.01 47.51 57.05-1.99 24.86-17.32 39.3-41.13 43.95h-25c-32.74-5.35-47.18-33.29-39.87-64.54C206.8 12.99 225.42 1.94 248.06 0Zm-13.87 77.81q9.04 7.19 19.94 6.86c24.28-.73 31.99-22.11 28.35-42.89q-2.6-14.88-14.73-21.05c-11.98-6.1-29.11-3.64-37.41 7.36-9.48 12.56-9.31 39.26 3.85 49.72ZM362.06 0h15.25c24.46 1.67 41.07 14.59 41.19 40.25q.14 30.38-.19 60.75h-23.37q.3-47.86-.06-62.79-.28-12.04-9.02-17.06c-8.64-4.96-28.52-4.3-37.92.78q-.47.26-.47.8l-.12 78.27h-23.41l.04-92.38a1.27 1.25 79.6 0 1 .8-1.18C336.61 2.83 349.45.82 362.06 0ZM478.31 0h12.5q10.95 1.05 19.44 5.01c19.43 9.09 24.7 32.45 21.32 51.95a.35.34-85 0 1-.34.29H460.5q-.84 0-.81.84c1 33.28 42.06 28.48 62.32 21.97.88-.28 1.87-1.01 2.95-1.25q.58-.13.74.45l4.34 15.68q.14.51-.36.7-10.43 3.75-21.24 5.36h-31.25c-21-3.64-36.42-13.77-41.03-35.42q-3.17-14.86-.04-30.6c4.43-22.3 20.94-32.9 42.19-34.98Zm16.13 18.09c-18.4-6.52-36.52 5.09-34.51 25.65q.05.51.56.51h46.53a.45.45 0 0 0 .45-.44c.18-9.71-2.8-22.09-13.03-25.72Z"}}),r("path",{attrs:{fill:"#e86c17",d:"M542.06 0h30.25l22.64 27.91q.3.37.3.85v18.49q0 .5-.5.5h-13.76q-.53 0-.86-.41L541.89.39q-.06-.08.01-.16.09-.09.16-.23Z"}}),r("path",{attrs:{fill:e.color,d:"M624.06 0h30.25q-.05.16.06.26.06.07 0 .14l-38.23 46.94q-.33.41-.86.41H602q-.75 0-.75-.75V28.7q0-.6.38-1.07L624.06 0ZM572.19 101h-29.75l-.08-.31q-.04-.17.07-.31l37.7-46.31q.25-.32.66-.32h13.71q.75 0 .75.75v17.97q0 .45-.28.79L572.19 101Z"}}),r("path",{attrs:{fill:"#e86c17",d:"M653.94 101h-30.25l-22.11-27.25q-.33-.42-.33-.95V54.25q0-.5.5-.5h13.72q.47 0 .76.36c3.44 4.23 38 46.23 37.71 46.89Z"}})])},B5=[],I5=R(z5,O5,B5,!1,null,null,null,null);const F5=I5.exports,R5=O.extend({name:"AconexSmall",components:{BaseIcon:ce},props:{color:{type:String,default:"white"}}});var A5=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("BaseIcon",e._b({attrs:{viewBox:"0 0 580 520",small:!0,width:"580px",height:"520px",color:e.color}},"BaseIcon",e.$attrs,!1),[r("g",{attrs:{transform:"translate(-490, -270)"}},[r("path",{attrs:{fill:"#e86c17",d:"M494.66 271h150.1a.35.35 0 0 1 .28.13l115.38 141.98a.35.35 0 0 1 .08.22v95.82a.35.35 0 0 1-.35.35h-72.24a.35.35 0 0 1-.28-.13l-193.25-237.8a.35.35 0 0 1 .28-.57Z"}}),r("path",{style:`fill: ${e.color}`,attrs:{d:"M906.72 271h150.14a.32.32 0 0 1 .25.52L863.96 509.38a.32.32 0 0 1-.25.12h-72.14a.32.32 0 0 1-.32-.32v-96.06a.32.32 0 0 1 .07-.2l115.15-141.8a.32.32 0 0 1 .25-.12ZM688.14 540.25h71.94a.42.42 0 0 1 .42.42v95.97a.42.42 0 0 1-.09.27l-117.7 144.93a.42.42 0 0 1-.33.16H492.51a.42.42 0 0 1-.32-.68l195.62-240.91a.42.42 0 0 1 .33-.16Z"}}),r("path",{attrs:{fill:"#e86c17",d:"M1059.1 781.2a.83.83 0 0 1-.83.8H909.73a1.11 1.1-19.3 0 1-.86-.41L791.56 637.23a1.38 1.38 0 0 1-.31-.87v-95.61a.5.5 0 0 1 .5-.5h71.52a1.1 1.1 0 0 1 .85.4q97.41 119.9 194.78 239.94.21.26.2.61Z"}})])])},H5=[],N5=R(R5,A5,H5,!1,null,null,null,null);const j5=N5.exports,q5=O.extend({name:"Autodesk",components:{BaseIcon:ce},props:{color:{type:String,default:"white"}}});var W5=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("BaseIcon",e._b({attrs:{viewBox:"0 0 1619.27 166.13",small:!0,width:"1619.27px",height:"166.13px",color:e.color}},"BaseIcon",e.$attrs,!1),[r("path",{style:`fill: ${e.color}`,attrs:{d:"M1619.27 4.34h-47.94l-57.42 64.12V4.34h-40.25l.2 157.84h40.05V102.2l54.46 59.98h50.9l-73.39-77.93 73.39-79.91zm-210.51 64.91l-36.7-4.14c-21.51-2.37-26.83-7.7-26.83-15 0-8.09 11.05-15.39 32.55-15.39 20.72 0 31.57 7.7 33.54 19.34h39.46c-2-33.35-30-54.06-70.83-54.06-48.53 0-73 19.33-73 53.46 0 27.82 16.18 40.85 49.72 44.4l37.29 3.94c14.21 1.58 20.72 7.11 20.72 14.21 0 8.09-9.47 15.39-32.36 15.39-26.44 0-37.09-6.71-38.87-20.13h-38.67c1.78 36.31 25.45 54.85 76.16 54.85 46.36 0 72.21-20.32 72.21-50.9 0-26.64-15.39-42.62-44.39-45.97zm-248.8 92.93h127.06v-34.13h-86.81V99.44h69.84V65.11h-69.84V38.47h86.81V4.34h-127.06v157.84zm-94.7-157.84h-73.79v157.84h73.79c56.63 0 72.21-21.11 72.21-80.11 0-55.44-14.99-77.73-72.21-77.73zm-1.62 123.72h-32V38.47h32c25.26 0 32.75 6.91 32.75 43.6.04 33.54-8.44 45.99-32.75 45.99zM882.17 0c-57.42 0-87.21 35.31-87.21 82.86 0 47.75 29.79 83.26 87.21 83.26 57.61 0 87.4-35.51 87.4-83.26 0-47.55-29.79-82.86-87.4-82.86zm0 130.61c-29.79 0-46.17-18.15-46.17-47.75 0-29 16.38-47.35 46.17-47.35 30 0 46.17 18.35 46.17 47.35 0 29.6-16.18 47.75-46.17 47.75zM646.59 38.47h50.9v123.71h40.25V38.47h50.71V4.34H646.59v34.13zM588 101.8c0 20.52-12.63 28.81-34.14 28.81-20.91 0-34.52-8.68-34.52-28.81V4.34h-40.25v102c0 45.58 40.64 59.78 74.77 59.78 33.94 0 74.38-14.2 74.38-59.78v-102H588zM361.3 4.34l-60.57 157.84h41.63l10.57-29.6h67.62l10.4 29.6h43L412.64 4.34zm3.61 94.7l22.11-61.87 21.74 61.89zM1.24 162.19l141.34-87.92h73.32a4.28 4.28 0 014.28 4.29 3.72 3.72 0 01-2 3.6l-69.42 41.62c-4.51 2.7-6.09 8.12-6.09 12.18l-.07 26.23h88.22V9.75a5.41 5.41 0 00-5.64-5.42H141L0 91.87v70.32z"}})])},G5=[],U5=R(q5,W5,G5,!1,null,null,null,null);const Z5=U5.exports,X5=O.extend({name:"AutodeskSmall",components:{BaseIcon:ce},props:{color:{type:String,default:"black"}}});var Y5=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("BaseIcon",e._b({attrs:{viewBox:"0 0 24 24",small:!0,height:"24px",width:"24px",color:e.color}},"BaseIcon",e.$attrs,!1),[r("path",{style:`fill: ${e.color}`,attrs:{d:"m15 11.5 -14 8v-7l13.5 -8H22a1 1 0 0 1 1 1v14h-9v-2.485a1 1 0 0 1 0.419 -0.814l5.946 -4.248a0.25 0.25 0 0 0 -0.145 -0.453H15Z","stroke-width":"1"}})])},V5=[],Q5=R(X5,Y5,V5,!1,null,null,null,null);const K5=Q5.exports,J5=O.extend({name:"ProcoreObservations",components:{BaseIcon:ce},props:{color:{type:String,default:"white"}}});var e3=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("BaseIcon",e._b({attrs:{viewBox:"0 0 24 24",small:!0,width:"100%",height:"100%",fill:"none",color:e.color}},"BaseIcon",e.$attrs,!1),[r("path",{attrs:{d:"M16 4C16.93 4 17.395 4 17.7765 4.10222C18.8117 4.37962 19.6204 5.18827 19.8978 6.22354C20 6.60504 20 7.07003 20 8V17.2C20 18.8802 20 19.7202 19.673 20.362C19.3854 20.9265 18.9265 21.3854 18.362 21.673C17.7202 22 16.8802 22 15.2 22H8.8C7.11984 22 6.27976 22 5.63803 21.673C5.07354 21.3854 4.6146 20.9265 4.32698 20.362C4 19.7202 4 18.8802 4 17.2V8C4 7.07003 4 6.60504 4.10222 6.22354C4.37962 5.18827 5.18827 4.37962 6.22354 4.10222C6.60504 4 7.07003 4 8 4M9 15L11 17L15.5 12.5M9.6 6H14.4C14.9601 6 15.2401 6 15.454 5.89101C15.6422 5.79513 15.7951 5.64215 15.891 5.45399C16 5.24008 16 4.96005 16 4.4V3.6C16 3.03995 16 2.75992 15.891 2.54601C15.7951 2.35785 15.6422 2.20487 15.454 2.10899C15.2401 2 14.9601 2 14.4 2H9.6C9.03995 2 8.75992 2 8.54601 2.10899C8.35785 2.20487 8.20487 2.35785 8.10899 2.54601C8 2.75992 8 3.03995 8 3.6V4.4C8 4.96005 8 5.24008 8.10899 5.45399C8.20487 5.64215 8.35785 5.79513 8.54601 5.89101C8.75992 6 9.03995 6 9.6 6Z",stroke:e.color,"stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}})])},t3=[],r3=R(J5,e3,t3,!1,null,null,null,null);const n3=r3.exports,i3={Back10:b0,Forward10:g0,Bim:d0,Brightness:k0,Blur:D0,Compare:I0,ConcretePump:N0,CompactExcavator:Bi,DroneView:U0,Dumper:Q0,Evercam:rl,EvercamLogo:ol,Excavator:Bi,FlatbedSemiTrailer:gl,FreeDrawing:bl,IModel:kl,Inspection:Dl,Loader:Il,MiniModel:Nl,MarkUp:r5,Nerves:x5,OtherTruck:Ii,RoadVehicle:Vl,Roller:t2,Robot:a2,SemiTrailer:d2,SkidSteerLoader:g2,SmallTruck:b2,TankTruck:k2,The360:D2,TippingTruck:I2,TruckHead:N2,TruckMixer:U2,Unknown:Ii,Worker:Q2,ZohoCrm:o5,Tag:h5,TagPlus:v5,Procore:$5,ProcoreSmall:P5,Aconex:F5,AconexSmall:j5,Autodesk:Z5,AutodeskSmall:K5,ProcoreObservations:n3},s3=t=>t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),Fi=Object.fromEntries(Object.entries(i3).map(([t,e])=>[s3(t),e])),a3=O.extend({name:"EIcon",components:{...Fi},props:{icon:{type:String,default:void 0},colorClass:{type:String,default:se.Default}},computed:{isSvgIcon(){return this.icon.startsWith("eui-")},svgIconName(){return this.icon.replace(/^eui-/,"")},svgIconComponent(){return Fi[this.svgIconName]},svgSizes(){return{[G.Xs]:16,[G.Sm]:18,[G.Base]:20,[G.Lg]:24,[G.Xl]:30,[G.TwoXl]:36,[G.ThreeXl]:42,[G.FourXl]:48,[G.FiveXl]:54,[G.SixXl]:60,[G.SevenXl]:66,[G.EightXl]:70,[G.NineXl]:74}},faSizes(){return Oi.reduce((t,e)=>({...t,[e]:`e-text-${e}`}),{})},iconSize(){const t=this.$attrs.size;if(this.isSvgIcon&&!t)return;if(this.isSvgIcon&&!isNaN(Number(t)))return Number(t);const e=t||G.Base;return this.isSvgIcon?this.svgSizes[e]:this.faSizes[e]},faIconStyle(){return{color:this.$attrs.color,"caret-color":this.$attrs.color}},faIconClass(){const t=this.iconSize,e=this.icon.includes(" ")?this.icon:`fa ${this.icon}`;return["e-inline-flex e-items-center e-justify-center e-rounded-full",this.colorClass,this.icon,e,t]}}});var o3=function(){var e=this,r=e._self._c;return e.isSvgIcon?r(e.svgIconComponent,e._g(e._b({tag:"component",staticClass:"e-svg-icon",attrs:{size:e.iconSize}},"component",e.$attrs,!1),e.$listeners)):r("i",e._g(e._b({staticClass:"e-icon",class:e.faIconClass,style:e.faIconStyle},"i",e.$attrs,!1),e.$listeners))},l3=[],c3=R(a3,o3,l3,!1,null,null,null,null);const Be=c3.exports,u3=O.extend({name:"ESpinner",props:{dark:{type:Boolean,default:!1},color:{type:Boolean,default:!0},animationDuration:{type:[Number,String],default:1e3},size:{type:String,default:G.Base},opacity:{type:[String,Number],default:1}},data(){return{sizes:Pi,colors:zi}},computed:{computedSize(){return this.sizes[G[this.size]]||this.size||this.sizes[G.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"]}`}}}}),Ud="";var d3=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"}})])},h3=[],p3=R(u3,d3,h3,!1,null,"9a1333ac",null,null);const Gr=p3.exports,f3=O.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}}}}),Zd="";var m3=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)},g3=[],v3=R(f3,m3,g3,!1,null,null,null,null);const Ur=v3.exports,y3=O.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}}}),Xd="";var _3=function(){var e=this,r=e._self._c;return r("div",{staticClass:"e-col",class:e.colClasses},[e._t("default")],2)},C3=[],b3=R(y3,_3,C3,!1,null,null,null,null);const Zr=b3.exports;function Xr(){const t=document;return!!(t.fullscreenElement||t.mozFullScreenElement||t.webkitFullscreenElement||t.msFullscreenElement)}function Yr(t){if(Xr())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 Vr(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){var e=Math.random()*16|0,r=t==="x"?e:e&3|8;return r.toString(16)})}function Qr(){if(!Xr())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 x3(t,e){let r=null;return function(...n){const i=this;r!==null&&clearTimeout(r),r=setTimeout(()=>{r=null,t.apply(i,n)},e||1e3)}}function w3(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 S3(t,e=0,r=0,n=t.naturalWidth,i=t.naturalHeight){const s=document.createElement("canvas"),a=s.getContext("2d");s.width=n,s.height=i,a==null||a.drawImage(t,e,r,n,i,0,0,n,i);const c=s.toDataURL();return s.remove(),c}function T3(t){return!!(t!=null&&t.length&&!isNaN(new Date(t).getTime()))}function Ri(t,e=1){let r=0,n=0,i=0;return t.length===4?(r=parseInt(t[1]+t[1],16),n=parseInt(t[2]+t[2],16),i=parseInt(t[3]+t[3],16)):t.length===7&&(r=parseInt(t[1]+t[2],16),n=parseInt(t[3]+t[4],16),i=parseInt(t[5]+t[6],16)),`rgba(${r}, ${n}, ${i}, ${e})`}function Ai(t,e=1){const r=t.match(/\d+/g);return r&&r.length===3?`rgba(${r[0]}, ${r[1]}, ${r[2]}, ${e})`:null}function Hi(t){return t.startsWith("rgba")}function pt(t,e=1){return Hi(t)?t:t.startsWith("#")?Ri(t,e):t.startsWith("rgb")?Ai(t,e):t}function k3(t){const e=JSON.stringify(t);return Ni(e).toString()}function Ni(t){let 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}function Kr(t,e,r){const n=M.scaleLinear().domain([0,r-1]).range([0,1]);return Array.from({length:r},(i,s)=>M.interpolate(t,e)(n(s)))}const ji={continuous:{monday:["00:00-23:59"],tuesday:["00:00-23:59"],wednesday:["00:00-23:59"],thursday:["00:00-23:59"],friday:["00:00-23:59"],saturday:["00:00-23:59"],sunday:["00:00-23:59"]},custom:{monday:["00:00-23:59"],tuesday:["00:00-23:59"],wednesday:["00:00-23:59"],thursday:["00:00-23:59"],friday:["00:00-23:59"],saturday:["00:00-23:59"],sunday:["00:00-23:59"]},workingHours:{monday:["08:00-18:00"],tuesday:["08:00-18:00"],wednesday:["08:00-18:00"],thursday:["08:00-18:00"],friday:["08:00-18:00"],saturday:[],sunday:[]},empty:{monday:[],tuesday:[],wednesday:[],thursday:[],friday:[],saturday:[],sunday:[]}},qi=24*60-1,Wi=t=>{const[e,r]=t.split(":");return parseInt(e)*60+parseInt(r)},Jr=t=>{const e=Math.floor(t/60).toString().padStart(2,"0"),r=(t%60).toString().padStart(2,"0");return`${e}:${r}`};function en(t){return["monday","tuesday","wednesday","thursday","friday","saturday","sunday"].reduce((r,n)=>{const i=t[n];return{...r,[n]:i.length?i[0].split("-").map(s=>Wi(s)):[0,qi]}},{})}function $3(t){return Object.fromEntries(Object.entries(t).map(([e,r])=>[e,r.map(n=>{const[i,s]=n.split("-");let[a,c]=s.split(":");return a=parseInt(a),a=Math.max(0,a-1),`${i}-${a.toString().padStart(2,"0")}:${c}`})]))}const M3=O.extend({name:"EZoomable",props:{ignorePointerEvents:{type:Boolean,default:!1},withZoomButtons:{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("on-frame-props-change",{imgStyle:t})},immediate:!0,deep:!0}},methods:{zoom(t){const e=this.$refs.container;if(this.disabled)return;const r=e.getBoundingClientRect(),n={x:r.width/2,y:r.height/2},i=this.scale;t<0?this.scale*=1.2:this.scale*=.8,this.updateZoomScale(),this.left=(this.left-n.x)*(this.scale/i)+n.x,this.top=(this.top-n.y)*(this.scale/i)+n.y;const s=0-r.width*(this.scale-1),a=0-r.height*(this.scale-1);this.left=Math.min(0,Math.max(s,this.left)),this.top=Math.min(0,Math.max(a,this.top)),this.updateTransform()},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(),i=r.getBoundingClientRect();if(!n||!i)return;const s=t.clientX,a=t.clientY,c=Math.max(-1,Math.min(1,t.wheelDelta||-t.detail)),o=this.scale;this.scale+=c/10,this.updateZoomScale();const l=((s-i.left)/i.width).toFixed(2),d=((a-i.top)/i.height).toFixed(2);this.left=Math.round(s-n.left-Number(l)*(i.width*this.scale/o)),this.top=Math.round(a-n.top-Number(d)*(i.height*this.scale/o));const h=0,m=0-n.width*(this.scale-1),C=0-n.height*(this.scale-1),b=0;this.left<m?this.left=m:this.left>h&&(this.left=h),this.top<C?this.top=C: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[i,s,a,c]=[r.top-n.top,n.right-r.right,n.bottom-r.bottom,r.left-n.left].map(o=>o<0?o:0);this.left+=c-s,this.top+=i-a},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)}}}),Yd="";var E3=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(),r("div",{staticClass:"zoom-slider e-absolute e-bottom-12 e-left-0"},[e.withZoomButtons?r("EZoomSlider",{attrs:{vertical:""},on:{"zoom-in":function(n){return e.zoom(-1)},"zoom-out":function(n){return e.zoom(1)}},model:{value:e.scale,callback:function(n){e.scale=n},expression:"scale"}}):e._e()],1)])])},L3=[],D3=R(M3,E3,L3,!1,null,"11da8a2c",null,null);const tn=D3.exports,rn=new Intl.NumberFormat(void 0,{minimumIntegerDigits:2}),Gi=["play","pause","ended","loadeddata","waiting","playing","timeupdate","canplay","canplaythrough","statechanged","error"],nn=t=>{const e=Math.floor(t%60),r=Math.floor(t/60)%60,n=Math.floor(t/3600);return n===0?`${r}:${rn.format(e)}`:`${n}:${rn.format(r)}:${rn.format(e)}`},P3=O.extend({name:"EVideoPlayer",components:{ESpinner:Gr,EZoomable:tn},props:{withZoomButtons:{type:Boolean,default:!1},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},isEdgeVideo:{type:Boolean,default:!1},edgeStreamingToken:{type:String,default:""},authToken:{type:String,default:""},pauseOnClick:{type:Boolean,default:!0},isHlsLoading:{type:Boolean,default:!1},isPlaying:{type:Boolean,default:!1},showLoadingAnimation:{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:"SevenXl"},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 ot,playbackRetries:0,preloadedSeconds:0,preloadedInterval:{}}},computed:{posterUrl(){const t=this.videoOptions;return(t==null?void 0:t.poster)||(t==null?void 0:t.backgroundUrl)},sourceItems(){return Array.isArray(this.sources)?this.sources:[{src:this.sources}]},withControls(){const t=this.videoOptions;return(t==null?void 0:t.controls)===!1?"hide":""},streamingToken(){return this.isEdgeVideo?this.edgeStreamingToken:this.authToken}},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 s,a;if(!this.isHls)return;const e=this.$refs.player,r=(s=this.preloadedInterval)==null?void 0:s.start,n=(a=this.preloadedInterval)==null?void 0:a.end;if(!(r&&n))return;const i=Se(t).isBetween(Se(r),Se(n),void 0,"[]");e.currentTime=0,i||this.initHls()}}},mounted(){this.isHls&&this.initHls(),this.bindEvents(),this.initializePlayer(),this.initializeFullscreenListeners()},beforeDestroy(){this.unbindEvents(),this.destroyPlayer(),this.removeFullscreenListeners()},methods:{initHls(t="",e=!1){var i,s,a,c,o;const r=this.$refs.player,n=this.sources[0];(i=this.player)!=null&&i.stopLoad&&this.player.stopLoad(),ot.isSupported()&&(this.isLoading=!0,this.player=new ot({startPosition:0,debug:e,xhrSetup:l=>{this.streamingToken&&l.setRequestHeader("Authorization",`Bearer ${this.streamingToken}`)},...this.hlsOptions}),this.player.enableDebug=()=>{this.player.destroy(),this.initHls(t,!0)},r._hls=this.player,(s=this.player)==null||s.loadSource(t||n.src),(a=this.player)==null||a.attachMedia(r),(c=this.player)==null||c.on(ot.Events.MANIFEST_PARSED,(l,d)=>{var C;const h=(C=d.levels[d.firstLevel])==null?void 0:C.details,m=h==null?void 0:h.startTimeOffset;r.currentTime=m||0,this.playing&&r.play()}),(o=this.player)==null||o.on(ot.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 l;if(!e.fatal)return;this.$emit("error",e);const r=e.type===ot.ErrorTypes.NETWORK_ERROR,n=e.type===ot.ErrorTypes.MEDIA_ERROR,i=r&&((l=e.networkDetails)==null?void 0:l.status)===404,s=this.$refs.player,a=()=>this.fallbackSrc&&(s==null?void 0:s.currentSrc)!==this.fallbackSrc,c=()=>this.initHls(this.fallbackSrc),o=()=>{if(a()){c();return}this.player.destroy(),this.videoListeners.error?this.videoListeners.error():this.handle404Error()};if(i){o();return}if(r){console.error("A network error occurred:",e),a()?c():this.player.startLoad();return}n&&(console.error("A media error occurred:",e),a()?c():this.player.recoverMediaError()),o()},bindEvents(){const t=this.$refs.player;Gi.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;Gi.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=nn(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&&(Qr().then(()=>{this.isFullscreen=!1}),this.isFullscreen=!1)},openFullscreenMode(){const t=this.$refs.videoContainer;t&&(Yr(t).then(()=>{this.isFullscreen=!0}),this.isFullscreen=!0)},toggleFullscreenMode(){this.isFullscreen?this.closeFullscreenMode():this.openFullscreenMode()},getDuration(){const t=this.$refs.player;this.videoLength=nn(t.duration),this.videoDuration=t.duration},handleTimeUpdate(){const t=this.$refs.player,e=this.$refs.timelineContainer;if(!t||!e)return;this.currentTime=nn(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(),i=Math.min(Math.max(0,t.x-n.x),n.width)/n.width;r.style.setProperty("--preview-position",i.toString()),this.isScrubbing&&(t.preventDefault(),r.style.setProperty("--progress-position",i.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 i=e.getBoundingClientRect(),s=Math.min(Math.max(0,t.x-i.x),i.width)/i.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=s*this.videoDuration,n.currentTime=s*this.videoDuration,this.wasPaused)return;const a=n.play();a!==void 0&&a.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}}}}),Vd="";var z3=function(){var e=this,r=e._self._c;return r("div",{ref:"videoContainer",staticClass:"e-video-player video-container paused"},[r("EZoomable",{ref:"zoomable",attrs:{"ignore-pointer-events":e.zoomableIgnorePointerEvents,disabled:!e.isZoomable,"with-overlay":e.withOverlayOnBackground,"with-zoom-buttons":e.withZoomButtons},on:{"on-frame-props-change":function(n){return e.$emit("on-frame-props-change",n)}},scopedSlots:e._u([{key:"overlay",fn:function(){return[e._t("player-container-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("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,seeking:function(n){e.isLoading=!0},seeked:function(n){e.isLoading=!1},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||e.showLoadingAnimation?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"},[e._t("error",function(){return[r("i",{staticClass:"fa-solid fa-video-slash fa-2xl e-align-middle"}),r("span",[e._v("This video file cannot be played.")])]})],2):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)},O3=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"timeline"},[e("div",{staticClass:"thumb-indicator"})])}],B3=R(P3,z3,O3,!1,null,"dc19e0e8",null,null);const Ui=B3.exports,Ue={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(i=>{i[0]&&r(i[0])});n.observe(t),t.__resizeObserver__=n},unbind(t){t.__resizeObserver__&&(t.__resizeObserver__.disconnect(),delete t.__resizeObserver__)}},I3=(t,e)=>t===e||t.contains(e),F3=(t,e)=>r=>{I3(t,r.target)||e(r)},Zi=["mousedown","touchstart","click"],sn={bind(t,e){const r=t,n=e.value;if(typeof n!="function"){console.warn("v-click-outside requires a function value");return}r.clickOutsideHandler={events:Zi,handler:F3(r,n),callback:n},queueMicrotask(()=>{Zi.forEach(i=>{document.addEventListener(i,r.clickOutsideHandler.handler)})})},unbind(t){const e=t;e.clickOutsideHandler&&(e.clickOutsideHandler.events.forEach(r=>{document.removeEventListener(r,e.clickOutsideHandler.handler)}),delete e.clickOutsideHandler)}},Xi=[{name:"resize-observer",definition:Ue},{name:"click-outside",definition:sn}],et={transparencyGradient:"transparency-gradient",transparencyGradientLight:"transparency-gradient-light",transparencyGradientHover:"transparency-gradient-hover",loadingGradient:"loading-gradient",stripedPattern:"stripedPattern",clipPath:"clip-path"},me={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",eventGroupContent:"event-group-content",eventRect:"event-rect",eventRectContainer:"event-rect-container",eventBarContainer:"event-bar-container",eventBarContainerHovered:"event-bar-container--hovered",eventBarContainerSelected:"event-bar-container--selected",eventBar:"event-bar",eventBarHoverZone:"event-bar-hover-zone",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",_legacyLabelGroup:"legacy-label-g",_legacyLabelBg:"legacy-label-bg",_legacyLabelBgFill:"legacy-label-bg-fill",_legacyLabelText:"legacy-label-text",_legacyLoadingIndicator:"legacy-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",areaGraphPath:"area-graph-path",lineGraphPath:"line-graph-path",lineGraphHoverZone:"line-graph-hover-zone",lineGraphDot:"line-graph-dot",forbiddenInterval:"forbidden-interval"};function Ke({timestamp:t,timezone:e}){const r=Yi(t,e);return Se(t).add(r,"minutes").toDate()}function Rt({date:t,timezone:e}){const r=new Date(t).getTimezoneOffset(),n=Yi(t,e);return Se(t).add(r,"minutes").utcOffset(n,!0).format()}function Yi(t,e){return e?Se.tz(t,e).utcOffset():R3(t)}function R3(t){return Se.parseZone(t).utcOffset()}const A3=O.extend({name:"ETimelineMilestone",directives:{resizeObserver:Ue},props:{timeScale:{type:Function,required:!0},milestone:{type:Object,required:!0},y:{type:Number,required:!0},height:{type:Number,default:18},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},timezone:{type:[String,void 0],default:void 0}},data(){return{classNames:me,timeouts:[],isInitialRender:!0,isMouseOver:!1,containerWidth:"",containerHeight:""}},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.isMouseOver?this.containerWidth:this.size}px`,height:`${this.isMouseOver?this.containerHeight:this.size}px`}},positionStyles(){return{left:`${this.timeScale(this.tzStringToDate(this.milestone.timestamp))}px`,top:`${this.linePosition}px`,transform:this.dot&&this.isMouseOver?`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}},linePosition(){const t=this.height/2;return this.y+t-1},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.$emit("hovered-milestone",this.milestone),this.dot)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 i=n.getBoundingClientRect(),s=e.dataset.timeoutId;s&&(clearTimeout(Number(s)),e.dataset.timeoutId=""),e.dataset.initialWidth||(e.dataset.initialWidth=e.style.width),e.dataset.initialHeight||(e.dataset.initialHeight=e.style.height),this.containerWidth||(this.containerWidth=e.dataset.initialContentWidth=String(i.width)),this.containerHeight||(this.containerHeight=e.dataset.initialContentHeight=String(i.height)),e.dataset.transitionStart=String(Date.now()),e.style.borderRadius="0.5em",e.classList.add(me.milestoneHovered),r.style.opacity="1",r.style.width=this.containerWidth+"px",r.style.height=this.containerHeight+"px"},onMilestoneMouseMove(){this.timeouts.forEach(t=>clearTimeout(t)),this.isMouseOver=!0},onMilestoneMouseLeave(t){if(this.$emit("hovered-milestone",null),this.dot){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),i=n>this.transitionDuration?this.transitionDuration:n,s=setTimeout(()=>{e.classList.remove(me.milestoneHovered),e.dataset.timeoutId=""},i);e.dataset.timeoutId=String(s),this.timeouts.push(s),this.isMouseOver=!1},onMilestoneClick(t,e){this.$emit("milestone-click",e)},tzStringToDate(t){return Ke({timestamp:t,timezone:this.timezone})}}}),Qd="";var H3=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)])},N3=[],j3=R(A3,H3,N3,!1,null,null,null,null);const q3=j3.exports,W3=O.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`}}}}),Kd="";var G3=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)})])},U3=[],Z3=R(W3,G3,U3,!1,null,"614947ed",null,null);const X3=Z3.exports,Y3=O.extend({name:"ETimelineMarkers",components:{ETimelineMarker:X3},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=M.drag().on("start",function(e,r){t.handleMarkerDrag({marker:r,markerElement:M.select(this),dragEvent:e})}).on("drag",function(e,r){t.handleMarkerDrag({marker:r,markerElement:M.select(this),dragEvent:e})}).on("end",function(e,r){t.handleMarkerDrag({marker:r,markerElement:M.select(this),dragEvent:e})}),M.selectAll(`.${me.marker}`).data(this.markers).call(this.markersDragBehavior)},removeMarkersDragBehavior(){this.markersDragBehavior&&(this.markersDragBehavior.on("start",null).on("drag",null).on("end",null),M.selectAll(`.${me.marker}`).call(this.markersDragBehavior))},handleMarkerDrag({marker:t,markerElement:e,dragEvent:r}){var c;if(!t.isDraggable)return;(c=r.sourceEvent)==null||c.preventDefault(),r.type==="start"&&(this.initialMarkerDragMouseOffset=r.x-e.node().querySelector(`.${me.markerLine}`).getBoundingClientRect().left,e.classed(me.markerDragged,!0));const n=r.x-this.initialMarkerDragMouseOffset,i=this.timeScale.invert(n-this.svgLeft);let s=this.timeScale(i);const a=this.isTimestampAllowedForMarker(i,t);if(r.type==="drag"&&a&&e.attr("style",`left: ${s}px`),r.type==="end"){const o=t.id||t.timestamp;s=a?s:this.timeScale(this.tzStringToDate(t.timestamp)),this.markersPositions={...this.markersPositions,[o]:{...this.markersPositions[o],position:s}},e.classed(me.markerDragged,!1)}r.type!=="start"&&this.$emit(`marker-drag-${r.type}`,{marker:t,newTimestamp:a?this.dateToTzString(i):t.timestamp})},updateMarkers(){if(!this.markers.length)return;const t=12,e=200;this.markers.forEach((r,n,i)=>{const s=typeof r.timestamp=="string"?this.tzStringToDate(r.timestamp):r.timestamp,a=this.timeScale(s);let c=!1;const o=this.stickyMarkers?Math.max(a,n*t):a;if(n<i.length-1){const l=i[n+1],d=typeof l.timestamp=="string"?this.tzStringToDate(l.timestamp):l.timestamp,h=this.timeScale(d);c=(this.stickyMarkers?Math.max(h,(n+1)*t):a)-o<e+t}this.markersPositions={...this.markersPositions,[r.id]:{isHidden:c,position:o}}}),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 Ke({timestamp:t,timezone:this.timeZone})},dateToTzString(t){return Rt({date:t,timezone:this.timeZone})}}});var V3=function(){var e=this,r=e._self._c;return r("div",{staticClass:"e-tl-markers"},e._l(e.markers,function(n){var i,s;return r("ETimelineMarker",{key:n.id,attrs:{marker:n,height:e.height,position:(i=e.markersPositions[n.id])==null?void 0:i.position,hidden:(s=e.markersPositions[n.id])==null?void 0:s.isHidden,"data-id":n.id},on:{"marker-clicked":function(a){return e.$emit("marker-clicked",a)}},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)},Q3=[],K3=R(Y3,V3,Q3,!1,null,null,null,null);const J3=K3.exports,ec=O.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,Number],default:""}},data(){return{timeScale:null,initialTimeScale:null,zoomBehavior:null,selection:null,isTransitioning:!1,container:null,transformDiff:{translation:0,scale:1},lastTransform:{x:0,y:0,k:1},isLeftBoundaryReached:!1,isRightBoundaryReached:!1,isZooming:!1,resetBoundariesTimeout:0}},computed:{minDate(){const[t]=this.domain;return this.toD3Date(t)},maxDate(){const[,t]=this.domain;return this.toD3Date(t)},focusedStartDate(){const[t]=this.focusedDomain||this.domain;return this.toD3Date(t)},focusedEndDate(){const[,t]=this.focusedDomain||this.domain;return this.toD3Date(t)}},watch:{timeScale(){this.emitFocusedDomainChange(_t.Zoom),this.emitTimeScaleChange()},focusedDomain(t){t&&this.zoomToFocusedDomain(t)},focusedTimestamp(t){t&&this.panToTimestamp(t)},width:{handler(t,e){!t||t===e||(this.timeScale=M.scaleTime().domain([this.focusedStartDate,this.focusedEndDate]).range([0,t]))}}},mounted(){this.initRefs(),this.initTimeScale(),this.initZoomBehavior(),this.emitTimeScaleChange(),this.emitFocusedDomainChange(_t.Initial)},methods:{initRefs(){this.container=this.$refs.container},initTimeScale(){this.timeScale=M.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(),s=[(this.focusedEndDate.getTime()-this.focusedStartDate.getTime())/r,1/0],a=this.initialTimeScale.copy();a.domain(t);const c=a(this.minDate),o=-(e-a(this.maxDate));return{scaleExtent:s,translateExtent:[[c||-1/0,0],[o||1/0,0]]}},initZoomBehavior(){const{scaleExtent:t,translateExtent:e}=this.calculateZoomExtents();this.zoomBehavior=M.zoom().scaleExtent(t).translateExtent(e).on("zoom",r=>{if(!(this.isZooming||this.disabled)){this.isZooming=!0;try{this.handleZoom(r)}catch(n){console.error(n)}finally{this.isZooming=!1}}}),this.selection=M.select(this.container),this.selection.call(this.zoomBehavior)},handleZoom(t){const e=t.transform.rescaleX(this.initialTimeScale.copy()),[r,n]=e.domain(),i=r<=this.minDate,s=n>=this.maxDate;if(i||s){const c=M.zoomIdentity.translate(this.lastTransform.x,this.lastTransform.y).scale(this.lastTransform.k);this.selection.call(this.zoomBehavior.transform,c),this.updateBoundaries(i,s);return}const a=t.transform.k/this.lastTransform.k;this.transformDiff={scale:a,translation:t.transform.x-this.lastTransform.x},this.lastTransform={...t.transform},this.timeScale=t.transform.rescaleX(this.timeScale).domain([r,n])},toD3Date(t){return Ke({timestamp:t,timezone:this.timezone})},toDateString(t){return Rt({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,r]=t,n=this.toD3Date(e!=null?e:this.focusedStartDate),i=this.toD3Date(r!=null?r:this.focusedEndDate);if(!this.timeScale)return;const[s,a]=this.timeScale.domain();if(n.getTime()===s.getTime()&&i.getTime()===a.getTime())return;const c=this.initialTimeScale.domain().map(C=>C.getTime()),o=c[1]-c[0],l=i.getTime()-n.getTime();let d=o/l;const h=this.zoomBehavior.scaleExtent();d=Math.min(Math.max(d,h[0]),h[1]);const m=this.initialTimeScale.copy().domain([n,i]);this.selection.transition().duration(this.scalingDuration/2).call(this.zoomBehavior.scaleTo,d).on("end",()=>this.translateIntervalIntoView(n,i,d)),this.timeScale=m},translateIntervalIntoView(t,e,r){const n=this.timeScale(t),i=this.timeScale(e),s=(n+i)/2,c=this.getWidth()/2-s,o=M.zoomTransform(this.selection.node());this.selection.transition().on("start",()=>{this.isTransitioning=!0,this.$emit("animation-start")}).on("end",()=>{this.isTransitioning=!1,this.$emit("animation-end")}).duration(this.translationDuration/2).call(this.zoomBehavior.transform,M.zoomIdentity.translate(o.x+c,o.y).scale(r))},emitTimeScaleChange(){this.$emit("time-scale-change",this.timeScale)},emitFocusedDomainChange(t){if(!this.selection.node()||this.isTransitioning||!this.timeScale)return;const[r,n]=this.timeScale.domain(),i=this.toDateString(r),s=this.toDateString(n);this.$emit("visible-interval-change",{fromDate:i,toDate:s,trigger:t,transform:this.transformDiff})},panToTimestamp(t){const e=new Date(t),r=this.timeScale(e),n=M.zoomTransform(this.selection.node()),i=n.x-r+this.getWidth()/2;this.selection.transition().duration(this.translationDuration).call(this.zoomBehavior.transform,M.zoomIdentity.translate(i,0).scale(n.k)).on("end",()=>{this.emitFocusedDomainChange(_t.Zoom)})},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}}}),Jd="";var tc=function(){var e=this,r=e._self._c;return r("div",{ref:"container",staticClass:"e-zoom-behavior",class:{"e-pointer-events-none":e.disabled}},[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)},rc=[],nc=R(ec,tc,rc,!1,null,null,null,null);const ic=nc.exports,sc=O.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:me}},computed:{classes(){return{[me.xAxis]:!0,[me.xAxisDark]:this.dark}},axis(){return M.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):M.utcFormat(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;M.select(t).call(this.axis),this.translateTicksText()},translateTicksText(){const t=this.$refs.container;M.select(t).selectAll(".tick text").each(function(){M.select(this).attr("x",5).attr("y",0).style("text-anchor","start")})},updateTicksSize(){this.axis.tickSizeOuter(0).tickSizeInner(this.height),this.update()}}}),eh="";var ac=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})`}})},oc=[],lc=R(sc,ac,oc,!1,null,null,null,null);const an=lc.exports,At=t=>{const e=M.utcFormat("%_d")(t),r=cc(parseInt(e));return`${e}${r}`},Vi=t=>new Date(Date.UTC(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()+1)).getUTCDate()===1?"":M.utcFormat("%-d")(t),xt=t=>["0"," 0","00"].includes(M.utcFormat("%H")(t))?"":`${M.utcFormat("%H")(t)}h`,at=t=>{const e=M.utcFormat("%H:%M")(t);return e==="00:00"?"":e},on=t=>M.utcFormat("%M:%S")(t),Qi=t=>`${M.utcFormat("%Hh%Mm")(t)}`,ln=t=>{const e=at(t),r=At(t),n=M.utcFormat("%B")(t);return e||`${n} ${r}`},cn=t=>{const e=at(t),r=Number.parseInt(M.utcFormat("%H")(t)),n=At(t),i=M.utcFormat("%B")(t);return e&&r%6===0?`${i} ${n} ${e}`:ln(t)},cc=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"}},wt=t=>e=>{const r=M.utcFormat("%H")(e);return!(M.utcFormat("%M")(e)==="00"&&Number.parseInt(r)%t===0)},un=t=>e=>{const r=M.utcFormat("%M")(e);return Number.parseInt(r)%t!==0},Ki=t=>e=>{const r=M.utcFormat("%M")(e),n=M.utcFormat("%S")(e);return Number.parseInt(r)%t!==0&&Number.parseInt(n)===0},J={_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},dn={[nt.Overview]:[{precision:J._30_seconds,interval:M.utcMinute.every(2),format:Qi},{precision:J._1_minute,interval:M.utcMinute.every(5),format:Qi},{precision:J._2_minutes,interval:M.utcMinute.every(10),format:ln},{precision:J._5_minutes,interval:M.utcMinute.every(20),format:cn},{precision:J._15_minutes,interval:M.utcHour,format:cn},{precision:J._30_minutes,interval:M.utcHour.every(2),format:cn},{precision:J._2_hours,interval:M.utcHour.every(6),format:t=>{const e=at(t),r=At(t),n=M.utcFormat("%B")(t);return e||`${n} ${r}`}},{precision:J._3_hours,interval:M.utcHour.every(12),format:ln},{precision:J._6_hours,interval:M.utcHour.every(24),format:t=>{const e=At(t),r=M.utcFormat("%b")(t),n=M.utcFormat("%Y")(t);return`${r} ${e} ${n}`}},{precision:J._2_days,interval:M.utcMonth,format:"%Y – %B"},{precision:J._2_year,interval:M.utcMonth.every(3),format:"%Y Q%q"},{precision:J._5_years,interval:M.utcYear.every(5),format:"%Y"},{precision:J._20_years,interval:M.utcYear.every(20),format:"%Y"},{precision:J._75_years,interval:M.utcYear.every(75),format:"%Y"},{precision:J._300_years,interval:M.utcYear.every(300),format:"%Y"},{precision:J.infinity,interval:M.utcMonth.every(12),format:"%Y"}],[nt.Detailed]:[{precision:J._10_seconds,interval:M.utcSecond.every(10),format:on},{precision:J._20_seconds,interval:(Ss=M.utcSecond.every(20))==null?void 0:Ss.filter(Ki(2)),format:on},{precision:J._30_seconds,interval:(Ts=M.utcSecond.every(30))==null?void 0:Ts.filter(Ki(2)),format:on},{precision:J._1_minute,interval:M.utcMinute.filter(un(5)),format:at},{precision:J._2_minutes,interval:(ks=M.utcMinute.every(2))==null?void 0:ks.filter(un(10)),format:at},{precision:J._5_minutes,interval:($s=M.utcMinute.every(5))==null?void 0:$s.filter(un(20)),format:at},{precision:J._15_minutes,interval:(Ms=M.utcMinute.every(15))==null?void 0:Ms.filter(wt(1)),format:at},{precision:J._30_minutes,interval:(Es=M.utcMinute.every(30))==null?void 0:Es.filter(wt(2)),format:at},{precision:J._1_hour,interval:M.utcHour.filter(wt(6)),format:xt},{precision:J._2_hours,interval:(Ls=M.utcHour.every(2))==null?void 0:Ls.filter(wt(6)),format:xt},{precision:J._3_hours,interval:(Ds=M.utcHour.every(3))==null?void 0:Ds.filter(wt(12)),format:xt},{precision:J._4_hours,interval:M.utcHour.every(4),format:xt},{precision:J._6_hours,interval:M.utcHour.every(6),format:xt},{precision:J._1_day,interval:M.utcDay,format:Vi},{precision:J._2_days,interval:M.utcDay.every(2),format:Vi},{precision:J._1_month,interval:M.utcMonth,format:"%B"},{precision:J._1_month_abbr,interval:M.utcMonth,format:"%b"},{precision:J._1_month_letter,interval:M.utcMonth,format:t=>M.utcFormat("%B")(t).charAt(0)},{precision:J._3_months,interval:M.utcMonth.every(3),format:"Q%q"},{precision:J._2_year,interval:M.utcMonth.every(6),format:"Q%q"},{precision:J._5_years,interval:M.utcYear.every(2),format:"%Y"},{precision:J._20_years,interval:M.utcYear.every(4),format:"%Y"},{precision:J._75_years,interval:M.utcYear.every(25),format:"%Y"},{precision:J._300_years,interval:M.utcYear.every(100),format:"%Y"},{precision:J.infinity,interval:M.utcYear.every(500),format:""}],[nt.DetailedBackground]:[{precision:J._10_seconds,interval:M.utcSecond,format:""},{precision:J._20_seconds,interval:M.utcSecond.every(5),format:""},{precision:J._30_seconds,interval:M.utcSecond.every(10),format:""},{precision:J._1_minute,interval:M.utcSecond.every(20),format:""},{precision:J._2_minutes,interval:M.utcSecond.every(30),format:""},{precision:J._5_minutes,interval:M.utcMinute,format:""},{precision:J._15_minutes,interval:M.utcMinute.every(3),format:""},{precision:J._30_minutes,interval:M.utcMinute.every(6),format:""},{precision:J._1_hour,interval:M.utcMinute.every(15),format:""},{precision:J._2_hours,interval:M.utcMinute.every(30),format:""},{precision:J._3_hours,interval:M.utcHour,format:""},{precision:J._4_hours,interval:M.utcHour,format:""},{precision:J._6_hours,interval:M.utcMinute.every(120),format:""},{precision:J._1_day,interval:M.utcHour.every(8),format:""},{precision:J._2_days,interval:M.utcHour.every(12),format:""},{precision:J._1_month,interval:M.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:J._1_month_abbr,interval:M.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:J._1_month_letter,interval:M.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:J._3_months,interval:M.utcMonth,format:""},{precision:J._3_months,interval:M.utcMonth,format:""},{precision:J._2_year,interval:M.utcYear,format:""},{precision:J._5_years,interval:M.utcYear.every(2),format:""},{precision:J._20_years,interval:M.utcYear.every(5),format:""},{precision:J._75_years,interval:M.utcYear.every(20),format:""},{precision:J._300_years,interval:M.utcYear.every(100),format:""},{precision:J.infinity,interval:M.utcYear.every(500),format:""}]},uc=O.extend({name:"EXAxisOverview",components:{EXAxis:an},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:me,ticksConfigs:dn[nt.Overview]}}}),th="";var dc=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}})},hc=[],pc=R(uc,dc,hc,!1,null,null,null,null);const fc=pc.exports,mc=O.extend({name:"EXAxisDetailed",components:{EXAxis:an},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:me,ticksConfigs:dn[nt.Detailed]}}}),rh="";var gc=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}})},vc=[],yc=R(mc,gc,vc,!1,null,null,null,null);const _c=yc.exports,Cc=O.extend({name:"EXAxisBackground",components:{EXAxis:an},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:me,ticksConfigs:dn[nt.DetailedBackground]}}}),nh="";var bc=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}})},xc=[],wc=R(Cc,bc,xc,!1,null,null,null,null);const Sc=wc.exports,Tc=O.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:et,TimelineChartType:qe,transparencyGradients:[{id:"transparency-gradient-light",stop:100,opacity:.4},{id:"transparency-gradient",stop:130,opacity:.4},{id:"transparency-gradient-hover",stop:130,opacity:.6}]}}});var kc=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,i){return[r("linearGradient",{key:`${e.defs.loadingGradient}-${i}`,attrs:{id:`${e.defs.loadingGradient}-${i}`,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),n.chartType===e.TimelineChartType.LineGraph?[e._l(e.transparencyGradients,function({id:s,stop:a,opacity:c}){return r("linearGradient",{key:`${s}-${i}-${n.chartType}`,attrs:{id:`${s}-${i}-${n.chartType}`,x1:"0%",x2:"0%",y1:"0%",y2:"100%"}},[r("stop",{attrs:{offset:"0%","stop-color":n.color,"stop-opacity":c}}),r("stop",{attrs:{offset:`${a}%`,"stop-color":n.color,"stop-opacity":"0"}})],1)}),r("clipPath",{key:`${e.defs.clipPath}-${i}`,attrs:{id:`${e.defs.clipPath}-${i}`}},[r("rect",{attrs:{width:e.width,height:e.height}})])]:e._e(),n.chartType===e.TimelineChartType.BarChart?[e._l(e.transparencyGradients,function({id:s,opacity:a}){return r("linearGradient",{key:`${s}-${i}-${n.chartType}`,attrs:{id:`${s}-${i}-${n.chartType}`,width:"100%",height:"100%"}},[r("stop",{attrs:{"stop-color":n.color,"stop-opacity":a}})],1)}),r("clipPath",{key:`${e.defs.clipPath}-${i}`,attrs:{id:`${e.defs.clipPath}-${i}`}},[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:"2",height:"7",fill:e.forbiddenIntervalColor}})])],2)},$c=[],Mc=R(Tc,kc,$c,!1,null,null,null,null);const Ec=Mc.exports,Lc=O.extend({name:"ETimelineForbiddenInterval",props:{timeScale:{type:Function,required:!0},interval:{type:Object,required:!0},index:{type:Number,required:!0},height:{type:Number,required:!0},timezone:{type:String,default:"UTC"}},data(){return{classNames:me,defs:et}},computed:{visibleDomain(){return this.timeScale.domain()},startX(){const t=this.interval.startDate===-1/0?this.visibleDomain[0]:this.tzStringToDate(this.interval.startDate);return this.timeScale(t)},endX(){const t=this.interval.endDate===1/0?this.visibleDomain[1]:this.tzStringToDate(this.interval.endDate);return this.timeScale(t)},width(){return Math.max(this.endX-this.startX,0)}},methods:{tzStringToDate(t){return Ke({timestamp:t,timezone:this.timezone})}}});var Dc=function(){var e=this,r=e._self._c;return r("rect",{class:`${e.classNames.forbiddenInterval} ${e.classNames.forbiddenInterval}-${e.index}`,attrs:{x:e.startX,y:"0",width:e.width,height:e.height,fill:`url(#${e.defs.stripedPattern})`}})},Pc=[],zc=R(Lc,Dc,Pc,!1,null,null,null,null);const Oc=zc.exports,Bc=O.extend({name:"ECursor",props:{timeScale:{type:Function,required:!0},timestamp:{type:String,required:!0},timezone:{type:String,required:!0},height:{type:Number,required:!0},color:{type:String,default:"red"},width:{type:Number,default:1},opacity:{type:Number,default:1}},data(){return{classNames:me}},watch:{timestamp(){this.repositionCursor()},timeScale(){this.repositionCursor()},height(){this.repositionCursor()}},methods:{repositionCursor(){const t=this.$refs.cursor,e=M.select(t);if(!e)return;if(!this.timestamp){e.style("opacity",0);return}const r=this.tzStringToDate(this.timestamp),n=this.timeScale(r);isNaN(n)?e.style("opacity",0):e.attr("x1",n).attr("x2",n).style("opacity",this.opacity),e.attr("y2",this.height)},tzStringToDate(t){return Ke({timestamp:t,timezone:this.timezone})}}});var Ic=function(){var e=this,r=e._self._c;return r("line",{ref:"cursor",class:e.classNames.selectedTimestampCursor,attrs:{x1:"0",y1:"0",x2:"0",opacity:"0",stroke:e.color,"stroke-width":`${e.width}px`}})},Fc=[],Rc=R(Bc,Ic,Fc,!1,null,null,null,null);const Ji=Rc.exports,Ac=O.extend({name:"ETimelineCursor",components:{ECursor:Ji},props:{timeScale:{type:Function,required:!0},selectedTimestamp:{type:String,required:!0},timezone:{type:String,default:"UTC"},height:{type:Number,required:!0}}});var Hc=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("ECursor",{attrs:{"time-scale":e.timeScale,timestamp:e.selectedTimestamp,timezone:e.timezone,color:"green",height:e.height}})},Nc=[],jc=R(Ac,Hc,Nc,!1,null,null,null,null);const qc=jc.exports,Wc=O.extend({name:"ETimelineSelectedTimestampCursor",components:{ECursor:Ji},props:{timeScale:{type:Function,required:!0},selectedTimestamp:{type:String,required:!0},timezone:{type:String,default:"UTC"},height:{type:Number,required:!0}}});var Gc=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("ECursor",{attrs:{"time-scale":e.timeScale,timestamp:e.selectedTimestamp,timezone:e.timezone,height:e.height,width:2}})},Uc=[],Zc=R(Wc,Gc,Uc,!1,null,null,null,null);const Xc=Zc.exports,Yc=O.extend({name:"ECursorBehavior",props:{timeScale:{type:Function,required:!0},timezone:{type:String,default:"UTC"},minHoverZone:{type:Number,default:0},isHoveringMilestone:{type:Boolean,default:!1}},data(){return{cursor:null,hoveredTimestamp:null,isHoveringTimeline:!1}},mounted(){this.registerEventsListeners()},methods:{registerEventsListeners(){const t=this.$refs.cursor;this.cursor=M.select(t),this.cursor.on("mousemove",this.handleMouseMove),this.cursor.on("click",this.handleClick),this.cursor.on("mouseleave",this.handleMouseLeave)},handleMouseLeave(){this.isHoveringTimeline=!1,this.hoveredTimestamp=void 0,this.$emit("mouse-leave")},handleMouseMove(t){if(this.isHoveringMilestone)return;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("mouse-move",e,this.hoveredTimestamp)},handleClick(t){if(this.isHoveringMilestone)return;const e=t.offsetX;if(e<=this.minHoverZone)return;const r=this.timeScale.invert(e),n=this.dateToTzString(r);this.$emit("timestamp-clicked",n,t.target)},tzStringToDate(t){return Ke({timestamp:t,timezone:this.timezone})},dateToTzString(t){return Rt({date:t,timezone:this.timezone})}}});var Vc=function(){var e=this,r=e._self._c;return r("div",{ref:"cursor",staticClass:"e-timeline__cursor e-relative"},[e._t("default",null,{hoveredTimestamp:e.hoveredTimestamp,isHoveringTimeline:e.isHoveringTimeline})],2)},Qc=[],Kc=R(Yc,Vc,Qc,!1,null,null,null,null);const Jc=Kc.exports,e6=O.extend({name:"ETimelineGroupContainer",props:{groupId:{type:String,required:!0},label:{type:String,default:""},color:{type:String,default:""},backgroundColor:{type:String,default:""},preserveColors:{type:Boolean,default:!1},x:{type:Number,default:0},y:{type:Number,required:!0},height:{type:Number,default:18},width:{type:Number,required:!0},showLabel:{type:Boolean,default:!0},labelWidth:{type:[Number,void 0],default:void 0},labelRadius:{type:[Number,void 0],default:3},xPadding:{type:Number,default:5},loading:{type:Boolean,default:!1},dark:{type:Boolean,default:!1},hidden:{type:Boolean,default:!1},showBackground:{type:Boolean,default:!0}},data(){return{classNames:me,characterWidth:6.5,isHighlighted:!1}},computed:{computedClasses(){return{label:{[`${me.labelGroup} ${me.labelGroup}-${this.groupId}`]:!0},container:{[`${me.eventGroup} ${me.eventGroup}-${this.groupId}`]:!0,[`${me.eventGroup}--highlighted`]:this.isHighlighted}}},computedLabelWidth(){var e;return(this.labelWidth||((e=this.label)==null?void 0:e.length)*this.characterWidth)+this.xPadding*2},textY(){return this.y+this.height/2},contentX(){return this.showLabel?this.x+this.computedLabelWidth:this.x},labelBackgroundColor(){let t=M.color(this.color);return this.preserveColors||(t.opacity=this.dark?.2:.5),t.toString()},textFillColor(){var t,e;return(this.dark?(t=M.color(this.color))==null?void 0:t.brighter(1.5):(e=M.color(this.color))==null?void 0:e.darker(2)).toString()},loadingIndicatorFill(){return`url(#${et.loadingGradient}-${this.groupId})`}}}),ih="";var t6=function(){var e=this,r=e._self._c;return r("g",{class:e.computedClasses.container},[!e.hidden&&e.showBackground?r("rect",{class:e.classNames.eventGroupBg,attrs:{x:e.x,y:e.y,width:e.width,height:e.height,fill:e.backgroundColor||e.color}}):e._e(),r("g",{class:e.classNames.eventGroupContent,attrs:{cursor:"pointer"}},[e._t("default",null,{y:e.y,x:e.contentX}),e.loading?r("rect",{class:e.classNames.loadingIndicator,attrs:{x:e.x,y:e.y,width:400,height:e.height,fill:e.loadingIndicatorFill}}):e._e()],2),e.showLabel?r("g",{class:e.computedClasses.label,on:{mouseover:function(n){e.isHighlighted=!0},mouseleave:function(n){e.isHighlighted=!1},click:function(n){return n.stopPropagation(),e.$emit("group-label-clicked",e.groupId)}}},[r("rect",{class:e.classNames.labelBg,attrs:{x:e.x,y:e.y,width:e.computedLabelWidth,height:e.height,rx:e.labelRadius,ry:e.labelRadius,fill:e.dark?"black":"white"}}),r("rect",{class:e.classNames.labelBgFill,attrs:{x:e.x,y:e.y,width:e.computedLabelWidth,height:e.height,rx:e.labelRadius,ry:e.labelRadius,fill:e.labelBackgroundColor,stroke:e.textFillColor}}),r("text",{staticClass:"label-text",attrs:{x:e.x+e.xPadding,y:e.textY,dy:"0.35rem",fill:e.textFillColor}},[e._v(" "+e._s(e.label)+" ")])]):e._e()])},r6=[],n6=R(e6,t6,r6,!1,null,null,null,null);const hn=n6.exports,i6=O.extend({name:"ETimelineRectsChartGroupedDots",props:{event:{type:Object,required:!0},rectStroke:{type:String,required:!0},rectStrokeWidth:{type:Number,required:!0},rectRx:{type:Number,required:!0},rectRy:{type:Number,required:!0},groupId:{type:String,required:!0}},data(){return{classNames:me}},computed:{numberOfBackgroundDots(){return this.event.groupedEvents?Math.min(3,this.event.groupedEvents.length-1):0}},methods:{getBackgroundX(t){return this.event.x-this.event.width/2-(this.numberOfBackgroundDots-(t-1))*4.5},getBackgroundY(t){return this.event.y+(this.numberOfBackgroundDots-(t-1))/2},getBackgroundSize(t){return this.event.width-(this.numberOfBackgroundDots-(t-1))},getBackgroundOpacity(t){return 1-(this.numberOfBackgroundDots-(t-1))/5}}});var s6=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("g",{class:e.classNames.eventRectContainer},[e._l(e.numberOfBackgroundDots,function(n){return r("rect",{key:`bg-${e.numberOfBackgroundDots-n}`,class:[e.classNames.eventRect,`${e.classNames.eventRect}--dot`,`bg-${n}`],attrs:{x:e.getBackgroundX(n),y:e.getBackgroundY(n),width:e.getBackgroundSize(n),height:e.getBackgroundSize(n),fill:e.event.color,stroke:e.rectStroke,opacity:e.getBackgroundOpacity(n),"stroke-width":e.rectStrokeWidth,ry:e.rectRx,rx:e.rectRy}})}),r("rect",{class:[e.classNames.eventRect,`${e.classNames.eventRect}--dot`],attrs:{x:e.event.x-e.event.width/2,y:e.event.y-e.event.width*.025,width:e.event.width*1.05,height:e.event.height*1.05,fill:e.event.color,stroke:e.rectStroke,cursor:"pointer","stroke-width":e.rectStrokeWidth,ry:e.rectRx,rx:e.rectRy}})],2)},a6=[],o6=R(i6,s6,a6,!1,null,null,null,null);const l6=o6.exports,c6=O.extend({name:"ETimelineRectsChart",directives:{},components:{ETimelineGroupContainer:hn,ETimelineRectsChartGroupedDots:l6},props:{timeScale:{type:Function,required:!0},eventsGroup:{type:Object,required:!0},groupId:{type:String,required:!0},x:{type:Number,default:0},y:{type:Number,required:!0},height:{type:Number,default:18},width:{type:Number,required:!0},rectMinWidth:{type:Number,default:1},rectYPadding:{type:Number,default:0},dark:{type:Boolean,default:!1},showLabel:{type:Boolean,default:!0},labelWidth:{type:[Number,void 0],default:void 0},timezone:{type:[String,void 0],default:void 0},dots:{type:Boolean,default:!1},dotsSize:{type:Number,default:3},barBorderRadius:{type:Number,default:1.5},groupOverlappingDots:{type:Boolean,default:!1},groupingThreshold:{type:Number,default:0}},data(){return{classNames:me,characterWidth:7.5,textPadding:5}},computed:{rectStrokeWidth(){return this.dots&&this.dotsSize?this.dotsSize/10:5},rectRx(){return this.dots&&this.dotsSize?this.dotsSize:this.eventsGroup.barBorderRadius||0},rectRy(){return this.dots&&this.dotsSize?this.dotsSize:this.eventsGroup.barBorderRadius||0},computedHeight(){return this.eventsGroup.height||this.height},yPosition(){const t=this.dots?(this.computedHeight-this.dotsSize+this.rectYPadding)/2:this.rectYPadding/2;return this.y+t},rectStroke(){if(!this.dots)return"#0000";const t=M.color(this.eventsGroup.color);return(t==null?void 0:t.brighter(1).toString())||"#0000"},rectHeight(){return this.dots?this.dotsSize:Math.max(this.height,1)},preprocessedEvents(){return[...this.eventsGroup.events].sort((e,r)=>{const n=new Date(e.startDate||e.timestamp).getTime(),i=new Date(r.startDate||r.timestamp).getTime();return n-i}).map(this.convertEventTzStringToDate)},computedEvents(){return(this.dots&&this.groupOverlappingDots?this.groupedEvents:this.preprocessedEvents.map(e=>[e])).map(e=>{let r={textContent:this.getEventText(e[0],this.textPadding,this.characterWidth),textX:this.getEventRectX(e[0],this.timeScale)+this.textPadding,textY:this.yPosition+this.rectHeight/2,textColor:e[0].textColor||this.getFillColor(e[0].color||this.eventsGroup.color,.75,this.dark)};if(!this.dots)return{...e[0],x:this.getEventRectX(e[0],this.timeScale),y:this.yPosition,width:this.getEventRectWidth(e[0],this.timeScale,this.rectMinWidth),height:this.rectHeight,color:e[0].color||this.eventsGroup.color,groupedEvents:e,...r};const n=this.getEventRectX(e[0],this.timeScale),i=this.getEventRectX(e[e.length-1],this.timeScale),s=n+(i-n)/2,a=e.length>1,c=s;return a?r={...r,textContent:`${e.length}`,textX:s-this.dotsSize/2-`${e.length}`.length*2,textY:this.yPosition-this.dotsSize/2}:r={...r,textX:r.textX-this.textPadding},{...e[0],x:c,y:this.yPosition,width:this.dotsSize,height:this.rectHeight,color:e[0].color||this.eventsGroup.color,groupedEvents:e,...r}})},timeScaleDensity(){const t=this.timeScale.invert(0).getTime(),e=this.timeScale.invert(1).getTime(),r=36e5,n=(e-t)/r;return isNaN(n)?1:n},groupedEvents(){const t=this.preprocessedEvents,e=[];let r=[];return t.forEach((n,i)=>{if(i===0){r.push(n);return}const s=t[i-1],a=this.getEventRectX(n,this.timeScale),c=this.getEventRectX(s,this.timeScale),o=this.getEventRectWidth(s,this.timeScale,this.rectMinWidth);c+o+this.groupingThreshold>=a?r.push(n):(r.length>0&&e.push([...r]),r=[n])}),r.length>0&&e.push(r),e}},methods:{onMouseOver(t,e,r){t.target.classList.add(me.eventRectHovered);const i=this.convertEventDateToTzString(e);this.$emit("event-mouseover",t,i,r)},onMouseLeave(t){const e=t.target;e.classList.remove(me.eventRectHovered),Array.from(e.children).forEach(r=>{r.classList.remove(me.eventRectHovered)}),this.$emit("event-mouseout")},onGroupedEventsMouseOver(t,e,r){t.target.classList.add(me.eventRectHovered);const i=e.map(this.convertEventDateToTzString);this.$emit("grouped-events-mouseover",t,i,r)},getEventText(t,e,r){if(!t.text)return"";const n=`${t.text}`;if(n.length===1)return n;const s=(this.getEventRectWidth(t,this.timeScale,this.rectMinWidth)-e)/r;return s<Math.min(n==null?void 0:n.length,4)?"":(n==null?void 0:n.length)<=s?n:`${n.slice(0,s-3)}...`},getEventRectWidth(t,e,r){if(!t)return 0;if(this.dots)return this.dotsSize;if(t.startDate&&t.endDate){const n=new Date(t.startDate),i=new Date(t.endDate),s=e(i)-e(n);return Math.max(s,r)}else{const n=1/(this.timeScaleDensity*3600);return Math.max(n,r)}},getEventRectX(t,e){const r=e(t.startDate||t.timestamp);return isNaN(r)?0:r},tzStringToDate(t){return Ke({timestamp:t,timezone:this.timezone})},dateToTzString(t){return Rt({date:t,timezone:this.timezone})},convertEventTzStringToDate(t){return this.patchTimestampField(t,this.tzStringToDate)},convertEventDateToTzString(t){return this.patchTimestampField(t,this.dateToTzString)},patchTimestampField(t,e){let r={...t};return r.timestamp&&(r.timestamp=e(r.timestamp)),r.startDate&&(r.startDate=e(r.startDate)),r.endDate&&(r.endDate=e(r.endDate)),r},getFillColor(t,e=0,r=!1){var n,i;return(r?(n=M.color(t))==null?void 0:n.brighter(1.5+e):(i=M.color(t))==null?void 0:i.darker(2+e)).toString()}}}),sh="";var u6=function(){var e=this,r=e._self._c;return r("ETimelineGroupContainer",{attrs:{"group-id":e.groupId,color:e.eventsGroup.color,label:e.eventsGroup.label,"background-color":e.eventsGroup.bgColor,"preserve-colors":e.eventsGroup.preserveColors,loading:e.eventsGroup.isLoading,x:e.x,y:e.y,dark:e.dark,width:e.width,height:e.computedHeight+e.rectYPadding,"show-label":e.showLabel,"label-width":e.labelWidth,hidden:e.eventsGroup.isHidden},on:{"group-label-clicked":function(n){return e.$emit("group-label-clicked",e.groupId)}}},[e.dots?r("line",{class:e.classNames.milestoneLine,attrs:{x1:0,x2:e.width,y1:e.yPosition+e.dotsSize/2,y2:e.yPosition+e.dotsSize/2,stroke:e.eventsGroup.color,"stroke-width":1}}):e._e(),e._l(e.computedEvents,function(n,i){return r("g",{key:i,class:e.classNames.eventRectContainer},[!n.groupedEvents||!e.dots||n.groupedEvents.length===1?[r("rect",{class:[e.classNames.eventRect,e.dots?`${e.classNames.eventRect}--dot`:""],attrs:{x:n.x-(e.dots?n.width/2:0),y:n.y,"data-timestamp":n.timestamp,width:n.width,height:n.height,fill:n.color,stroke:e.rectStroke,cursor:"pointer","stroke-width":e.rectStrokeWidth,ry:e.rectRx,rx:e.rectRy},on:{mouseover:function(s){return e.onMouseOver(s,n,e.groupId)},mouseleave:e.onMouseLeave}})]:e.dots&&n.groupedEvents.length>1?r("ETimelineRectsChartGroupedDots",{key:i,attrs:{event:n,"rect-stroke":e.rectStroke,"rect-stroke-width":e.rectStrokeWidth,"rect-rx":e.rectRx,"rect-ry":e.rectRy,"group-id":e.groupId},nativeOn:{mouseover:function(s){return e.onGroupedEventsMouseOver(s,n.groupedEvents,e.groupId)},mouseleave:function(s){return e.onMouseLeave.apply(null,arguments)}}}):e._e(),n.textContent?r("text",{class:e.classNames.eventRectText,attrs:{fill:n.textColor,x:n.textX,y:n.textY,dy:"0.35em","text-anchor":e.dots?"middle":"start","font-size":"12","font-weight":600,"stroke-linejoin":"round","paint-order":"stroke","pointer-events":"none"}},[e._v(" "+e._s(n.textContent)+" ")]):e._e()],2)})],2)},d6=[],h6=R(c6,u6,d6,!1,null,null,null,null);const p6=h6.exports,f6=O.extend({name:"ETimelineLinesChart",directives:{},components:{ETimelineGroupContainer:hn},props:{timeScale:{type:Function,required:!0},eventsGroup:{type:Object,required:!0},groupId:{type:String,required:!0},x:{type:Number,default:0},y:{type:Number,required:!0},height:{type:Number,default:18},width:{type:Number,required:!0},dark:{type:Boolean,default:!1},showLabel:{type:Boolean,default:!0},maxVisibleCount:{type:Number,required:!0},labelWidth:{type:[Number,void 0],default:void 0},labelHeight:{type:[Number,void 0],default:void 0},timezone:{type:[String,void 0],default:void 0},hoveredTimestamp:{type:String,default:""},yOffset:{type:Number,default:20}},data(){return{classNames:me,defs:et,characterWidth:7.5}},computed:{lineGradient(){return`${et.transparencyGradientLight}-${this.groupId}-${qe.LineGraph}`},lineDots(){const[t,e]=this.timeScale.domain();return this.eventsGroup.events.filter((n,i)=>{var o,l;const s=i===0?1:i,a=new Date((o=this.eventsGroup.events[s+1])==null?void 0:o.timestamp),c=new Date((l=this.eventsGroup.events[s-1])==null?void 0:l.timestamp);return a>=t&&a<=e||c>=t&&c<=e})},hoverZones(){return this.lineDots.map(t=>{const e=this.timeScale(this.tzStringToDate(t.timestamp)),r=this.yScale(t.count),n=this.timeScale.invert(e-2),i=this.timeScale.invert(e+2);return{x:e,y:r,height:this.height-22,color:t.color||this.eventsGroup.color,timestamp:t.timestamp,count:t.count,isHovering:this.tzStringToDate(this.hoveredTimestamp)>=n&&this.tzStringToDate(this.hoveredTimestamp)<i}})},yScale(){let t=M.scaleLinear().range([this.height,0]);return t=t.domain([0,this.maxVisibleCount||1]),t}},watch:{hoverZones:{handler(){this.updateLine()},deep:!0,immediate:!0}},mounted(){this.updateLine()},methods:{updateLine(){const t=M.area().x(r=>r.x).y0(this.height).y1(r=>r.y).curve(M.curveMonotoneX),e=M.line().x(r=>r.x).y(r=>r.y).curve(M.curveMonotoneX);M.select(`.${me.areaGraphPath}-${this.groupId}`).datum(this.hoverZones).attr("d",r=>t(r)),M.select(`.${me.lineGraphPath}-${this.groupId}`).datum(this.hoverZones).attr("d",r=>e(r))},getEventRectX(t,e){const r=e(this.tzStringToDate(t.startDate||t.timestamp));return isNaN(r)?0:r},tzStringToDate(t){return Ke({timestamp:t,timezone:this.timezone})}}}),ah="";var m6=function(){var e=this,r=e._self._c;return r("ETimelineGroupContainer",{attrs:{"group-id":e.groupId,color:e.eventsGroup.color,label:e.eventsGroup.label,"background-color":e.eventsGroup.bgColor,loading:e.eventsGroup.isLoading,x:e.x,y:e.y,dark:e.dark,width:e.width,height:e.labelHeight,"show-label":e.showLabel,"label-width":e.labelWidth,hidden:e.eventsGroup.isHidden,"show-background":!1},on:{"group-label-clicked":function(n){return e.$emit("group-label-clicked",e.groupId)}}},[r("g",{class:`${e.classNames.lineGraphGroup} ${e.classNames.lineGraphGroup}-${e.groupId}`,style:{transform:`translate(0, ${e.yOffset}px) `}},[r("path",{class:`${e.classNames.areaGraphPath}-${e.groupId}`,attrs:{fill:`url(#${e.lineGradient})`,stroke:"none","stroke-linecap":"round","stroke-linejoin":"round"}}),r("path",{class:`${e.classNames.lineGraphPath}-${e.groupId}`,attrs:{fill:"none",stroke:e.eventsGroup.color,"stroke-width":1.5}}),e._l(e.hoverZones,function(n,i){return r("g",{key:i},[r("circle",{ref:`${e.classNames.lineGraphDot}-${e.groupId}-${i}`,refInFor:!0,class:[e.classNames.lineGraphDot,`${e.classNames.lineGraphDot}-${e.groupId}`,`${e.classNames.lineGraphDot}-${e.groupId}-${i}`,{[`${e.classNames.lineGraphDot}--active`]:n.isHovering}],attrs:{cx:n.x,cy:n.y,r:"1.5",fill:n.color,"stroke-width":0}}),r("rect",{class:`${e.classNames.lineGraphHoverZone} ${e.classNames.lineGraphHoverZone}-${e.groupId}`,attrs:{x:n.x-2,y:0,width:4,height:e.height,fill:"transparent"},on:{mouseover:function(s){return e.$emit("event-mouseover",s,n,e.groupId)},mouseleave:function(s){return e.$emit("event-mouseout")}}})])})],2)])},g6=[],v6=R(f6,m6,g6,!1,null,null,null,null);const y6=v6.exports,_6=O.extend({name:"ETimelineBarsChart",components:{ETimelineGroupContainer:hn},props:{timeScale:{type:Function,required:!0},eventsGroup:{type:Object,required:!0},groupId:{type:String,required:!0},x:{type:Number,default:0},y:{type:Number,required:!0},height:{type:Number,default:18},width:{type:Number,required:!0},dark:{type:Boolean,default:!1},showLabel:{type:Boolean,default:!0},labelWidth:{type:[Number,void 0],default:void 0},labelHeight:{type:[Number,void 0],default:void 0},timezone:{type:[String,void 0],default:void 0},hoveredTimestamp:{type:String,default:""},yOffset:{type:Number,default:20},rectMinWidth:{type:Number,default:1},currentTimeScaleDensity:{type:Number,default:null},maxVisibleCount:{type:Number,default:1},previousCountsByTimestamp:{type:Object,default:null}},data(){return{classNames:me,defs:et,characterWidth:7.5}},computed:{bars(){const[t,e]=this.timeScale.domain();return this.eventsGroup.events.filter(r=>{const n=new Date(r.startDate);return new Date(r.endDate)>=t&&n<=e})},hoverZones(){return this.bars.map(t=>{const e=this.getEventRectWidth(t),r=this.yScale.range()[0]-this.yScale(t.count),n=this.getEventRectX(t,this.timeScale),i=this.previousCountsByTimestamp[t.startDate]||0,s=this.yScale(i+t.count);return{x:n,y:s,height:r,width:e,color:t.color||this.eventsGroup.color,startDate:t.startDate,endDate:t.endDate,count:t.count,className:t.className,isHovering:this.hoveredTimestamp>=t.startDate&&this.hoveredTimestamp<t.endDate}})},yScale(){let t=M.scaleLinear().range([this.height,0]);return t=t.domain([0,this.maxVisibleCount||1]),t}},methods:{getBarOpacity(t){let e;return this.hoveredTimestamp||(e=et.transparencyGradient),e=t.isHovering?et.transparencyGradientHover:et.transparencyGradientLight,`${e}-${this.groupId}-${qe.BarChart}`},getEventRectX(t,e){return isNaN(e(this.tzStringToDate(t.startDate||t.timestamp)))?0:e(this.tzStringToDate(t.startDate||t.timestamp))},tzStringToDate(t){return Ke({timestamp:t,timezone:this.timezone})},onEventClick(){this.$emit("event-clicked")},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)}}}}),oh="";var C6=function(){var e=this,r=e._self._c;return r("ETimelineGroupContainer",{attrs:{"group-id":e.groupId,color:e.eventsGroup.color,label:e.eventsGroup.label,"background-color":e.eventsGroup.bgColor,loading:e.eventsGroup.isLoading,x:e.x,y:e.y,dark:e.dark,width:e.width,height:e.labelHeight,"show-label":e.showLabel,"label-width":e.labelWidth,hidden:e.eventsGroup.isHidden,"show-background":!1},on:{"group-label-clicked":function(n){return e.$emit("group-label-clicked",e.groupId)}}},[r("g",{class:`${e.classNames.barChartGroup} ${e.classNames.barChartGroup}-${e.groupId}`,style:{transform:`translate(0, ${e.yOffset}px) `}},e._l(e.hoverZones,function(n,i){return r("g",{key:i,class:`${e.classNames.eventBarContainer} ${e.classNames.eventBarContainer}-${e.groupId}`,on:{mouseleave:function(s){return e.$emit("event-mouseout")},mouseover:function(s){return e.$emit("event-mouseover",s,n,e.groupId)},click:function(s){return e.onEventClick()}}},[r("rect",{class:[n.className?n.className:"",e.classNames.eventBarHoverZone],attrs:{x:n.x,y:-e.yOffset,width:n.width,height:e.yScale.range()[0]+e.yOffset,fill:n.color,"fill-opacity":0}}),r("rect",{class:[n.className?n.className:"",e.classNames.eventBar],attrs:{x:n.x,y:n.y,width:n.width,height:n.height,"stroke-width":5,cursor:"pointer",stroke:"#0000",fill:`url(#${e.getBarOpacity(n)})`}})])}),0)])},b6=[],x6=R(_6,C6,b6,!1,null,null,null,null);const w6=x6.exports,S6=O.extend({name:"ETimeline",directives:{resizeObserver:Ue},components:{ETimelineSVGDefs:Ec,EXAxisBackground:Sc,EXAxisDetailed:_c,EXAxisOverview:fc,ETimelineMilestone:q3,ETimelineMarkers:J3,ETimelineCursor:qc,ETimelineSelectedTimestampCursor:Xc,EZoomBehavior:ic,ECursorBehavior:Jc,ETimelineRectsChart:p6,ETimelineForbiddenInterval:Oc,ETimelineLinesChart:y6,ETimelineBarsChart:w6},props:{eventsGroups:{type:Object,default:null},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},insertZerosAtInterval:{type:String,default:void 0},flattenLineGraphEnds:{type:Boolean,default:!0},showLabels:{type:Boolean,default:!0},labelWidth:{type:[Number,void 0],default:void 0},barHeight:{type:Number,default:18},barYPadding:{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},panOnDateClick:{type:Boolean,default:!1},selectedDate:{type:String,default:""},markers:{type:Array,default:()=>[]},stickyMarkers:{type:Boolean,default:!0},fitMarkersOnChange:{type:Boolean,default:!1},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},showCursor:{type:Boolean,default:!0},transitionDuration:{type:Number,default:400},scalingDuration:{type:Number,default:400},highlightMilestoneOnMatchTimestamp:{type:Boolean,default:!1},axisHeight:{type:Number,default:22}},data(){return{mainContainer:null,tooltip:null,timeline:null,svgElement:null,svg:null,isHoveringEvent:!1,isHoveringGroupedEvents:!1,isAnimating:!1,hoveredEvent:null,eventTooltipStyle:{},hoveredEventType:null,hoveredCounts:[],visibleFrom:null,visibleTo:null,characterWidth:7.5,textPadding:5,timeouts:[],groupsVisibility:{},selectedMilestoneId:null,isInitialized:!1,hoveredMilestone:null,focusedDomain:null,focusedTimestamp:null,hoveredGroupedEvents:null,TimelineChartType:qe,width:0}},computed:{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)},barGroups(){return this.getGroupByType(this.filteredEventsGroups,[qe.Bars,qe.Dots])},lineGraphGroups(){return this.getGroupByType(this.filteredEventsGroups,[qe.LineGraph])},barChartGroups(){return this.getGroupByType(this.filteredEventsGroups,[qe.BarChart])},milestonesGroups(){return this.getGroupByType(this.filteredEventsGroups,[qe.Milestones])},combinedBarsHeight(){return Object.values(this.barGroups).reduce((t,e)=>t+(this.getBarGroupHeight(e)||this.barHeight+this.barYPadding),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.barHeight),0)},milestonesYOffset(){return this.milestonesFirst?0:this.combinedBarsHeight-this.combinedBottomBarsHeight+(this.hasChart?this.chartHeight:0)},chartsYOffset(){return this.combinedXAxesHeight+(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},computedClasses(){return{wrapper:{"e-border-gray-700 e-timeline--dark":this.dark,"e-border-gray-300":!this.dark},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"}},chartHeight(){if(!this.showLabels)return this.chartMinHeight;const e=(Object.keys(this.lineGraphGroups).length+Object.keys(this.barChartGroups).length)*this.barHeight;return Math.max(this.chartMinHeight,e)},chartLabelHeight(){return Math.max(this.chartMinLabelHeight,this.barHeight)},hasChart(){return Object.keys(this.lineGraphGroups).length+Object.keys(this.barChartGroups).length>0},labelRectWidth(){return Object.values(this.eventsGroups).reduce((r,n)=>{var i;return Math.max(r,(i=n.label)==null?void 0:i.length)},0)*this.characterWidth+2*this.textPadding},combinedXAxesHeight(){return this.axisHeight*1.75},timelineHeight(){return(this.hasChart?this.chartHeight:0)+this.combinedXAxesHeight+this.combinedBarsHeight+this.combinedMilestonesHeight},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)}}),{})},flattenedLinesCounts(){return Object.values(this.lineGraphGroups).map(t=>t.events).flat()},flattenedBarsCounts(){return Object.values(this.barChartGroups).map(t=>t.events).flat()},hiddenGroupsLabels(){return Object.entries(this.groupsVisibility).reduce((t,[e,r])=>r?t:[...t,e],[])},minHoverZone(){var t;return this.showLabels?(t=this.labelWidth)!=null?t: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=new Date(this.visibleFrom),e=new Date(this.visibleTo),r=c=>{const o=new Date(c.startDate||c.timestamp),l=new Date(c.endDate||c.timestamp);return o<=e&&l>=t},n=this.flattenedBarsCounts.filter(r),i=this.flattenedLinesCounts.filter(r).map(c=>c.count),s={};n.forEach(c=>{const o=c.startDate||c.timestamp;s[o]=(s[o]||0)+c.count});const a=Object.values(s).concat(i);return M.max(a)||1},defaultMaxDomain(){const t=new Date(this.oldestEvent.timestamp||this.oldestEvent.startDate).getTime(),e=new Date(this.latestEvent.timestamp||this.latestEvent.endDate).getTime(),n=(e-t)*.75,i=new Date(t-n),s=new Date(e+n);return[i.toISOString(),s.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),{})},isHoveringMilestone(){return!!this.hoveredMilestone},milestonesGroupsPlaceholder(){return Object.entries(this.milestonesGroups).reduce((t,[e,r])=>({...t,[e]:{...r,events:[],isLoading:!1}}),{})},countsByTimestamp(){const t={...this.lineGraphGroups,...this.barChartGroups};return Object.entries(t).reduce((e,[r,n])=>(n.events.forEach(i=>{const s=i.timestamp||i.startDate;e[s]={...e[s]||{},[r]:i.count}}),e),{})}},watch:{markers(t,e){t===e||!this.fitMarkersOnChange||e.length===0||this.zoomToFitMarkers()},startDate(){this.zoomToStartAndEndDates()},endDate(){this.zoomToStartAndEndDates()},selectedDate(t){t&&!this.locked&&(this.focusedTimestamp=this.tzStringToDate(t).toISOString())},focusedInterval(t){t&&(t!=null&&t.startDate)&&(t!=null&&t.endDate)&&(this.focusedDomain=[t.startDate,t.endDate])}},mounted(){this.validateProps(),this.initTimeline()},beforeDestroy(){this.clearTimeline()},methods:{handleVisibleIntervalChange({fromDate:t,toDate:e,trigger:r,transform:n}){this.visibleFrom=t,this.visibleTo=e,this.$emit("visible-interval-change",{fromDate:t,toDate:e,trigger:r,transform:n})},getGroupByType(t,e){return Object.entries(t).reduce((r,[n,i])=>!i.chartType&&e.includes(qe.Bars)||e.includes(i.chartType)?{...r,[n]:i}:r,{})},getPreviousCountsByTimestamp(t){if(t===0)return{};const e=Object.fromEntries(Object.entries(this.barChartGroups).slice(0,t)),r=[...Object.values(e)].map(i=>i.events).flat(),n={};return r.forEach(i=>{const s=i.startDate||i.timestamp;n[s]=(n[s]||0)+i.count}),n},getChartsYPosition(t){const e=Object.keys(this.lineGraphGroups).concat(Object.keys(this.barChartGroups));return this.timelineHeight-this.chartLabelHeight*(e.indexOf(t)+1)-(this.milestonesFirst?0:this.combinedMilestonesHeight)-this.combinedBarsHeight},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])},initTimeline(){if(this.initRefs(),this.zoomToStartAndEndDates(),!this.timeline||this.timeline.offsetWidth===0||!this.domain){this.timeouts.push(setTimeout(this.initTimeline,500));return}this.selectedDate&&this.panOnDateClick&&(this.focusedTimestamp=this.tzStringToDate(this.selectedDate)),this.isInitialized=!0},initRefs(){this.tooltip=this.$refs.tooltip,this.mainContainer=this.$refs.mainContainer,this.timeline=this.$refs.timelineContainer,this.svgElement=this.$refs.timelineSvg,this.svg=M.select(this.svgElement)},zoomToFitMarkers(){const t=this.markers.map(s=>new Date(s.timestamp).getTime());if(t.length<2)return;const e=Math.min(...t),r=Math.max(...t),n=new Date(e),i=new Date(r);this.focusedDomain=[n,i]},clearTimeline(){this.svg&&this.svg.remove()},handleMouseLeave(){this.$emit("hovered-timestamp",void 0)},handleMouseMove(t,e){var o;this.$emit("hovered-timestamp",e);const n=this.isHoveringEvent&&this.showEventTooltip?this.$refs.eventTooltip||this.$refs.tooltip:this.$refs.tooltip;if(!n)return;const s=(this.timeline||this.$refs.timelineContainer).getBoundingClientRect(),a=((o=n==null?void 0:n.getBoundingClientRect())==null?void 0:o.width)||180;let c=t-a/2;c<0&&(c=t),c+a>s.width&&(c=t-a),this.eventTooltipStyle={left:`${c}px`,zIndex:100,[this.tooltipPosition==="top"?"bottom":"top"]:`${s.height}px`}},isForbiddenInterval(t){const e=new Date(t).getTime(),r=this.forbiddenIntervals.some(s=>{const a=isNaN(new Date(s.startDate).getTime())?-1/0:new Date(s.startDate).getTime(),c=isNaN(new Date(s.endDate).getTime())?1/0:new Date(s.endDate).getTime();return e>=a&&e<=c});let n=!1;this.startDate&&(n=e<new Date(this.startDate).getTime());let i=!1;return this.endDate&&(i=e>new Date(this.endDate).getTime()),r||n||i},handleClick(t){if(this.isForbiddenInterval(t)){this.$emit("forbidden-timestamp-clicked",t);return}if(this.isHoveringGroupedEvents){if(this.isHoveringGroupedEvents=!1,this.$emit("grouped-events-clicked",{events:this.hoveredGroupedEvents,type:this.hoveredEventType}),this.stopClickPropagation)return}else if(this.isHoveringEvent&&(this.isHoveringEvent=!1,this.$emit("event-clicked",{event:this.hoveredEvent,type:this.hoveredEventType}),this.stopClickPropagation))return;this.$emit("date-clicked",t),this.panOnDateClick&&(this.focusedTimestamp=t)},handleMarkerClick(t){this.$emit("marker-clicked",t),this.panOnDateClick&&(this.focusedTimestamp=t.timestamp)},handleChartMouseOver(t,e,r){this.isAnimating||!this.countsByTimestamp[`${e.timestamp||e.startDate}`]||(this.hoveredCounts=Object.entries(this.countsByTimestamp[`${e.timestamp||e.startDate}`]).reduce((n,i)=>{var c;const[s,a]=i;return(c=this.hiddenGroupsLabels)!=null&&c.includes(s)?n:[...n,{type:s,count:a,label:this.getExternalLabelText(s)}]},[]),this.hoveredEvent=e,this.isHoveringEvent=!0,this.$emit("event-mouseover",{eventData:e,eventType:r,hoveredCounts:this.hoveredCounts}))},handleChartMouseOut(){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.isHoveringGroupedEvents=!1,this.$emit("event-mouseover",{eventData:e,eventType:r}))},handleBarGroupedEventsMouseOver(t,e,r){t.offsetX<=this.minHoverZone||(this.hoveredGroupedEvents=e,this.hoveredEventType=r,this.isHoveringEvent=!1,this.isHoveringGroupedEvents=!0,this.$emit("grouped-events-mouseover",{events:e,eventType:r}))},handleBarMouseOut(){this.isHoveringEvent=!1,this.isHoveringGroupedEvents=!1,this.hoveredEvent=null,this.hoveredGroupedEvents=null,this.$emit("event-mouseout")},handleTimeScaleChange(t){this.$emit("time-scale-change",t)},zoomToStartAndEndDates(){var r,n;const t=this.startDate||((r=this.focusedInterval)==null?void 0:r.startDate)||this.defaultFocusedDomain[0],e=this.endDate||((n=this.focusedInterval)==null?void 0:n.endDate)||this.defaultFocusedDomain[1];this.focusedDomain=[this.tzStringToDate(t),this.tzStringToDate(e)]},onAnimationStart(){this.isAnimating=!0,this.$emit("animation-start")},onAnimationEnd(){this.isAnimating=!1,this.$emit("animation-end")},getMilestoneClass(t){return{[me.milestoneSelected]:[t.id,t.timestamp].includes(this.selectedMilestoneId)||this.highlightMilestoneOnMatchTimestamp&&Se(this.selectedTimestamp).isSame(t.timestamp)}},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.barHeight}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,i]of Object.entries(this.barGroups)){if(n===t)break;!e&&i.bottom||(r+=this.getBarGroupHeight(i))}return r},getBarGroupHeight(t){return t.height?Math.max(t.height+this.barYPadding,1):this.barHeight+this.barYPadding},getTextFillColor(t,e=0){var r,n;return(this.dark?(r=M.color(t))==null?void 0:r.brighter(1.5+e):(n=M.color(t))==null?void 0:n.darker(2+e)).toString()},getLabelBackgroundColor(t){let e=M.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)}},getExternalLabelText(t){var e;return(e=this.eventsGroups[t])==null?void 0:e.label},getExternalLabelWrapperStyles(t){const e=this.eventsGroups[t].color;return{borderColor:this.getTextFillColor(e)}},tzStringToDate(t){return Ke({timestamp: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=s=>s.clone().add(1,e),n=s=>s.clone().subtract(1,e);let i=[];for(let s=0;s<t.length;s++){const a=t[s];if(i.push(a),s===t.length-1)break;const c=t[s+1],o=Se(a.timestamp),l=Se(c.timestamp);if(l.diff(o,e)>1){const d=r(o).toISOString(),h=n(l).toISOString();i.push({timestamp:d,count:0}),d!==h&&i.push({timestamp:h,count:0})}}if(this.flattenLineGraphEnds){const s=Se(t[0].timestamp),a=Se(t[t.length-1].timestamp),c=n(s).toISOString(),o=r(a).toISOString();i=[{timestamp:c,count:0},...i,{timestamp:o,count:0}]}return i},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},onResizeContainer({contentRect:t}){this.width===t.width||t.width===0||(this.width=t.width,this.$emit("timeline-resize",{contentRect:t}))}}}),lh="";var T6=function(){var e=this,r=e._self._c;return r("div",{directives:[{name:"resize-observer",rawName:"v-resize-observer",value:e.onResizeContainer,expression:"onResizeContainer"}],ref:"mainContainer",staticClass:"e-timeline"},[r("EZoomBehavior",{attrs:{domain:e.domain,"focused-domain":e.focusedDomain,"translation-duration":e.transitionDuration,"scaling-duration":e.scalingDuration,"focused-timestamp":e.focusedTimestamp,timezone:e.timezone,width:e.width,disabled:e.locked},on:{"visible-interval-change":e.handleVisibleIntervalChange,"time-scale-change":e.handleTimeScaleChange,"animation-start":e.onAnimationStart,"animation-end":e.onAnimationEnd},scopedSlots:e._u([{key:"default",fn:function({timeScale:n}){return[n?r("div",{staticClass:"e-relative e-timeline e-border e-rounded",class:e.computedClasses.wrapper},[r("ECursorBehavior",{attrs:{"time-scale":n,timezone:e.timezone,"min-hover-zone":e.minHoverZone,"is-hovering-milestone":e.isHoveringMilestone},on:{"mouse-move":e.handleMouseMove,"mouse-leave":e.handleMouseLeave,"timestamp-clicked":e.handleClick},scopedSlots:e._u([{key:"default",fn:function({hoveredTimestamp:i,isHoveringTimeline:s}){var a;return[r("ETimelineMarkers",{attrs:{markers:e.sortedMarkers,"sticky-markers":e.stickyMarkers,"time-scale":n,"time-zone":e.timezone,height:e.timelineHeight,"svg-left":e.svgLeft},on:{"marker-clicked":e.handleMarkerClick,"marker-drag-end":function(c){return e.$emit("marker-drag-end",c)},"marker-drag-start":function(c){return e.$emit("marker-drag-start",c)},"marker-drag-drag":function(c){return e.$emit("marker-drag-drag",c)}},scopedSlots:e._u([e._l(e.markersScopedSlots,function(c,o){return{key:o,fn:function(l){return[e._t(o,null,null,l)]}}})],null,!0)}),r("div",{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.width,height:e.timelineHeight}},[r("ETimelineSVGDefs",{attrs:{"events-groups":e.eventsGroups,width:e.width,height:e.chartHeight,"forbidden-interval-color":e.forbiddenIntervalColor}}),r("g",{staticClass:"e-timeline-axes"},[n?r("EXAxisOverview",{attrs:{"time-scale":n,height:e.timelineHeight,dark:e.dark}}):e._e(),n?r("EXAxisDetailed",{attrs:{"time-scale":n,height:e.timelineHeight-e.axisHeight,y:e.axisHeight,dark:e.dark}}):e._e(),n?r("EXAxisBackground",{attrs:{"time-scale":n,height:e.timelineHeight-e.combinedXAxesHeight,y:e.combinedXAxesHeight,dark:e.dark}}):e._e()],1),e.selectedTimestamp?r("ETimelineSelectedTimestampCursor",{attrs:{"time-scale":n,"selected-timestamp":e.selectedTimestamp,timezone:e.timezone,height:e.timelineHeight}}):e._e(),i&&s&&!e.isHoveringMilestone&&e.showCursor?r("ETimelineCursor",{attrs:{"time-scale":n,"selected-timestamp":i,timezone:e.timezone,height:e.timelineHeight}}):e._e(),e._l(e.forbiddenIntervals,function(c,o){return r("ETimelineForbiddenInterval",{key:o,attrs:{"time-scale":n,interval:c,index:o,height:e.timelineHeight,timezone:e.timezone}})}),e._l(e.barGroups,function(c,o){return r("ETimelineRectsChart",{key:o,attrs:{"time-scale":n,"events-group":c,"group-id":o,y:e.getBarGroupYPosition(o,c.bottom),height:e.barHeight,width:e.width,"rect-y-padding":e.barYPadding,dark:e.dark,"show-label":e.showLabels,"label-width":e.labelWidth,timezone:e.timezone,dots:c.chartType===e.TimelineChartType.Dots,"dots-size":c.dotsSize,"bar-border-radius":c.barBorderRadius,"group-overlapping-dots":c.groupOverlappingDots},on:{"event-mouseover":e.handleBarMouseOver,"grouped-events-mouseover":e.handleBarGroupedEventsMouseOver,"event-mouseout":e.handleBarMouseOut,"group-label-clicked":e.toggleGroupVisibility}})}),e._l(e.milestonesGroupsPlaceholder,function(c,o){return r("ETimelineRectsChart",{key:o,attrs:{width:e.width,y:e.getMilestoneGroupYPosition(o),height:c.height,"group-id":o,"events-group":c,"time-scale":n,dark:e.dark,dots:!0,"show-label":!1}})}),e._l(e.insertZerosAtInterval?e.filledGapsLineGraphGroups:e.lineGraphGroups,function(c,o){return r("ETimelineLinesChart",{key:o,attrs:{"group-id":o,"time-scale":n,"events-group":c,y:e.getChartsYPosition(o),height:e.chartHeight,width:e.width,dark:e.dark,timezone:e.timezone,"show-label":e.showLabels,"label-height":e.chartLabelHeight,"label-width":e.labelWidth,"max-visible-count":e.maxVisibleCount,"y-offset":e.chartsYOffset,"hovered-timestamp":i},on:{"event-mouseover":e.handleChartMouseOver,"event-mouseout":e.handleChartMouseOut,"group-label-clicked":e.toggleGroupVisibility}})}),e._l(e.barChartGroups,function(c,o,l){return r("ETimelineBarsChart",{key:o,attrs:{"group-id":o,width:e.width,y:e.getChartsYPosition(o),height:e.chartHeight,"events-group":c,"time-scale":n,dark:e.dark,"y-offset":e.chartsYOffset,"label-height":e.chartLabelHeight,"label-width":e.labelWidth,"max-visible-count":e.maxVisibleCount,"show-label":e.showLabels,"hovered-timestamp":i,"previous-counts-by-timestamp":e.getPreviousCountsByTimestamp(l)},on:{"event-mouseover":e.handleChartMouseOver,"event-mouseout":e.handleChartMouseOut,"group-label-clicked":e.toggleGroupVisibility}})})],2)]),e._l(e.milestonesGroups,function(c,o){return r("div",{key:`${o}`,staticClass:"e-timeline-milestones",attrs:{"data-test-id":"timeline-milestones"}},[r("div",{class:`e-tl-milestones e-tl-milestones-${o}`},e._l(e.getSortedEvents(c.events),function(l,d){return r("ETimelineMilestone",{key:`${l.milestoneType}-${d}`,class:e.getMilestoneClass(l),attrs:{"time-scale":n,y:e.getMilestoneGroupYPosition(o),height:c.height||e.barHeight,"data-timestamp":l.timestamp,milestone:l,dot:c.dots,size:l.size||e.milestoneBulletSize,"transition-duration":c.milestonesTransitionDuration,"line-height":c.milestonesLineHeight,"dot-size":c.milestonesDotSize,"data-test-id":`milestone-${l.milestoneType}-${d}`,"background-color":e.getMilestoneColors(l.color,c.color).background,"border-color":e.getMilestoneColors(l.color,c.color).border,timezone:e.timezone},on:{"hovered-milestone":e.onHoverMilestone,"milestone-click":function(h){return e.onMilestoneClick(l,o)}},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:d,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",{staticClass:"external-labels-container e-flex"},e._l(e.hiddenGroupsLabels,function(c){return r("div",{key:c,staticClass:"external-label",class:e.computedClasses.background,style:e.getExternalLabelWrapperStyles(c),on:{click:function(o){return o.stopPropagation(),e.toggleGroupVisibility(c)}}},[r("div",{staticClass:"external-label__content",style:e.getExternalLabelStyles(c)},[e._v(" "+e._s(e.getExternalLabelText(c))+" ")])])}),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:s&&!e.isHoveringEvent&&!e.isHoveringMilestone,expression:`
|
|
232
|
+
23 59 9 57 541 57 l488 0 24 -24z`}})])])},e5=[],t5=R(K2,J2,e5,!1,null,null,null,null);const r5=t5.exports,n5=O.extend({name:"ZohoCrm",components:{BaseIcon:ce},props:{color:{type:String,default:"grey"}}});var i5=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"}})])},s5=[],a5=R(n5,i5,s5,!1,null,null,null,null);const o5=a5.exports,l5=O.extend({name:"Tag",components:{BaseIcon:ce},props:{color:{type:String,default:"#000"},backgroundColor:{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:"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"}})])},u5=[],d5=R(l5,c5,u5,!1,null,null,null,null);const h5=d5.exports,p5=O.extend({name:"Tag",components:{BaseIcon:ce},props:{color:{type:String,default:"#000"},backgroundColor:{type:String,default:"white"}}});var f5=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"}})])},m5=[],g5=R(p5,f5,m5,!1,null,null,null,null);const v5=g5.exports,y5=O.extend({name:"Nerves",components:{BaseIcon:ce},props:{color:{type:String,default:"white"}}});var _5=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("BaseIcon",e._g(e._b({attrs:{small:!0,width:"39px",height:"32px",viewBox:"0 0 39 32"}},"BaseIcon",e.$attrs,!1),e.$listeners),[r("g",{attrs:{transform:"translate(-150.000000, -24.000000)",fill:"#FFFFFF","fill-rule":"nonzero"}},[r("g",{attrs:{transform:"translate(150.000000, 24.000000)"}},[r("path",{style:`fill: ${e.color}`,attrs:{d:"M36.8961538,0.0347826087 C37.9157565,0.0347826087 38.7423077,0.875708644 38.7423077,1.91304348 L38.7423077,1.91304348 L38.7423077,30.0947826 C38.7423077,31.1321174 37.9157565,31.9730435 36.8961538,31.9730435 L36.8961538,31.9730435 L29.4846154,31.9730435 L29.4884615,31.9886957 C29.0885173,31.9836286 28.7010575,31.8462773 28.3846154,31.5973913 L28.3846154,31.5973913 L10.4,17.9565217 C9.92639703,17.5948183 9.6506735,17.0250601 9.65756147,16.4226087 L9.65756147,16.4226087 L9.65756147,15.64 C9.65686375,14.933417 10.0458734,14.2861439 10.6644383,13.9648756 C11.2830032,13.6436073 12.0264516,13.7027078 12.5884615,14.1178261 L12.5884615,14.1178261 L29.7038462,26.7373913 C30.0199016,26.968534 30.3992227,27.0930678 30.7884615,27.0934783 L30.7884615,27.0934783 L32.0923077,27.0934783 C32.5822513,27.09452 33.0524229,26.8969669 33.3988661,26.5444986 C33.7453093,26.1920303 33.9394855,25.7136818 33.9384615,25.2152174 L33.9384615,25.2152174 L33.9384615,6.79652174 C33.9394855,6.29805736 33.7453093,5.81970886 33.3988661,5.46724054 C33.0524229,5.11477223 32.5822513,4.91721914 32.0923077,4.91826087 L32.0923077,4.91826087 L30.7153846,4.91826087 C30.225441,4.9193026 29.7552694,4.72174951 29.4088262,4.36928119 C29.062383,4.01681288 28.8682069,3.53846438 28.8692308,3.04 L28.8692308,3.04 L28.8692308,1.91304348 C28.8692308,0.875708644 29.695782,0.0347826087 30.7153846,0.0347826087 L30.7153846,0.0347826087 Z M9.29615385,0.00739130435 C9.69614711,0.0121740752 10.0836931,0.149555936 10.4,0.398695652 L10.4,0.398695652 L28.3846154,14.0434783 C28.8571972,14.4035114 29.1305978,14.972929 29.1192308,15.5734783 L29.1192308,15.5734783 L29.1192308,16.356087 C29.1190118,17.0612911 28.7305478,17.7069474 28.1133582,18.0279227 C27.4961685,18.348898 26.7542665,18.2910992 26.1923077,17.8782609 L26.1923077,17.8782609 L9.08461538,5.27043478 C8.76974759,5.03645424 8.389914,4.91038181 8,4.91043478 L8,4.91043478 L6.68461538,4.91043478 C6.19431782,4.9104337 5.72415756,5.10885839 5.37782578,5.4619474 C5.031494,5.81503642 4.83744009,6.2937853 4.83846154,6.7926087 L4.83846154,6.7926087 L4.83846154,25.1995652 C4.83846154,26.2369001 5.66501277,27.0778261 6.68461538,27.0778261 L6.68461538,27.0778261 L8.07692308,27.0778261 C8.5668667,27.0767844 9.0370383,27.2743374 9.38348152,27.6268058 C9.72992473,27.9792741 9.92410084,28.4576226 9.92307692,28.956087 L9.92307692,28.956087 L9.92307692,30.0869565 C9.92413223,30.588151 9.72784822,31.0688985 9.37806512,31.4218238 C9.02828202,31.774749 8.55413977,31.9704502 8.06153846,31.9653197 L8.06153846,31.9653197 L1.88461538,31.9653197 C0.86501277,31.9653197 0.03844549,31.1242914 0.03844549,30.0869565 L0.03844549,30.0869565 L0.03844549,1.91304348 C0.0364158462,1.41354313 0.230017315,0.933787137 0.576460295,0.579850445 C0.922903275,0.225913753 1.39364925,0.0269521857 1.88461538,0.0269565217 L1.88461538,0.0269565217 L9.29615385,0.0269565217 Z"}})])])])},C5=[],b5=R(y5,_5,C5,!1,null,null,null,null);const x5=b5.exports,w5=O.extend({name:"Procore",components:{BaseIcon:ce},props:{color:{type:String,default:"white"}}});var S5=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("BaseIcon",e._b({attrs:{small:!0,width:"1608px",height:"204px",viewBox:"0 0 1608 204",color:e.color}},"BaseIcon",e.$attrs,!1),[r("path",{staticClass:"s0",attrs:{id:"_Compound_Path_","fill-rule":"evenodd",d:"m1407.6 1h200.4v37.6h-147.4v44.6h94.4v37.5h-94.4v44.6h147.4v37.8h-200.4zm-732.4 41.6v118.8c0.2 5.5-0.7 10.9-2.7 16-2.1 5.1-5.1 9.7-9 13.5-3.8 3.9-8.4 6.9-13.5 8.9-5.1 2-10.6 3-16 2.8h-130.5c-5.5 0.2-11-0.6-16.2-2.6-5.1-2-9.8-5-13.8-8.8-3.9-3.9-7-8.5-9.1-13.7-2-5.1-3-10.6-2.8-16.1v-118.8c-0.2-5.5 0.7-10.9 2.8-16 2-5.1 5-9.7 8.9-13.6 3.9-3.8 8.5-6.8 13.6-8.8 5.1-2 10.6-3 16-2.8h130.5c5.5-0.3 11 0.6 16.2 2.6 5.1 1.9 9.8 4.9 13.7 8.8 4 3.9 7.1 8.5 9.1 13.6 2 5.2 3 10.7 2.8 16.2zm-32.7 59.4l-37-63.5h-74.4l-36 63.5 36.7 63.4h74.5zm704.7 26.9l43 74.3h-57.2l-42.9-74.3h-61.9v74.3h-53v-202.2h168.1c5.5-0.2 11 0.7 16.2 2.7 5.1 2.1 9.8 5.1 13.6 9 3.9 3.9 7 8.6 9 13.8 1.9 5.1 2.8 10.6 2.6 16.1v45.8c0.1 5.1-0.8 10.1-2.6 14.9-1.8 4.8-4.5 9.2-7.9 12.9-3.5 3.8-7.7 6.8-12.3 9-4.6 2.2-9.6 3.4-14.7 3.7zm-14.9-77.8c0-1.7-0.4-3.3-1-4.8-0.6-1.5-1.6-2.9-2.7-4-1.2-1.2-2.6-2.1-4.1-2.7-1.5-0.7-3.1-1-4.7-1h-90.9v52.9h90.9c1.6 0 3.2-0.4 4.7-1 1.5-0.6 2.9-1.6 4.1-2.7 1.1-1.2 2.1-2.5 2.7-4 0.6-1.6 1-3.2 1-4.8zm-181.5-8.5v118.9c0.1 5.4-0.8 10.9-2.8 16-2.1 5-5.1 9.7-9 13.5-3.9 3.9-8.5 6.9-13.6 8.9-5.1 2-10.5 2.9-16 2.7h-130.4c-5.5 0.2-10.9-0.8-15.9-2.8-5.1-2-9.7-5.1-13.5-8.9-3.9-3.9-6.9-8.5-8.8-13.5-2-5.1-3-10.5-2.8-15.9v-118.9c-0.2-5.4 0.8-10.9 2.8-15.9 2-5.1 5-9.7 8.9-13.6 3.9-3.8 8.5-6.9 13.6-8.9 5-2 10.5-2.9 16-2.7h130.4c5.4-0.2 10.9 0.8 15.9 2.8 5.1 2 9.7 5.1 13.5 8.9 3.9 3.9 6.9 8.5 8.9 13.5 2 5.1 2.9 10.5 2.8 15.9zm-32.9 59.5l-36.8-63.5h-74.4l-36.2 63.5 36.9 63.4h74.4zm-229-98.5c5.2 2 10 5.1 13.9 9 4 3.9 7.1 8.6 9.1 13.8 2 5.2 2.9 10.7 2.7 16.3v32.4h-48.6l-21.1-36.4h-74.5l-36.7 63.4 36 63.4h74.4l21.2-36.4h48.5v32.4c0.2 5.5-0.7 10.9-2.7 16-2 5.1-5.1 9.7-8.9 13.5-3.9 3.9-8.5 6.9-13.6 8.9-5.1 2-10.6 3-16 2.8h-130.4c-5.5 0.2-11-0.8-16.1-2.8-5.1-2-9.7-5-13.6-8.9-3.9-3.8-6.9-8.4-8.9-13.5-2-5.1-3-10.5-2.8-16v-118.8c-0.3-5.5 0.6-11 2.6-16.1 2-5.2 5.1-9.8 9-13.7 3.8-4 8.5-7 13.6-9 5.1-2.1 10.6-3 16.2-2.8h130.4c5.5-0.3 11.1 0.5 16.3 2.5zm-486.8 125.4l43 74.3h-56.7l-43-74.3h-62.4v74.3h-52.4v-202.2h167.9c5.5-0.2 11 0.7 16.1 2.8 5.2 2 9.8 5 13.7 9 3.9 3.9 6.9 8.5 8.9 13.7 2 5.1 2.9 10.6 2.7 16.1v45.7c0.1 5.2-0.7 10.3-2.6 15-1.8 4.8-4.5 9.2-8 13-3.5 3.7-7.7 6.8-12.4 8.9-4.6 2.2-9.7 3.4-14.8 3.7zm-14.9-77.9c0-1.6-0.4-3.2-1-4.7-0.7-1.6-1.6-2.9-2.8-4.1-1.1-1.2-2.5-2.1-4-2.7-1.6-0.6-3.2-0.9-4.9-0.9h-91.5v52.8h90.7c1.6 0 3.2-0.3 4.8-0.9 1.5-0.6 2.9-1.5 4-2.7 1.2-1.2 2.2-2.5 2.8-4 0.6-1.6 1-3.2 1-4.8zm-177.8-8.5v45.8c0.2 5.4-0.7 10.8-2.7 15.9-2 5.1-5.1 9.7-8.9 13.6-3.9 3.8-8.5 6.9-13.6 8.9-5.1 2-10.5 2.9-16 2.7h-115.1v74.3h-53v-202.8h168.1c5.5-0.2 11 0.8 16.1 2.8 5.1 2 9.8 5.1 13.6 9 3.9 3.9 6.9 8.6 8.9 13.7 2 5.1 2.9 10.6 2.6 16.1zm-53 8.9c0-1.6-0.3-3.3-1-4.8-0.6-1.5-1.6-2.9-2.7-4-1.2-1.2-2.6-2.1-4.1-2.7-1.5-0.6-3.2-1-4.8-1h-90.7v52.9h90.7c1.6 0 3.3-0.3 4.8-0.9 1.5-0.6 2.9-1.6 4.1-2.7 1.1-1.2 2.1-2.6 2.7-4.1 0.7-1.5 1-3.1 1-4.8z"}}),r("path",{staticStyle:{fill:"#ff5200"},attrs:{d:"m787.8 68.7h38.7l19.3 33.3-19.3 33.3h-38.7l-19.4-33.3 19.4-33.3z"}})])},T5=[],k5=R(w5,S5,T5,!1,null,null,null,null);const $5=k5.exports,M5=O.extend({name:"ProcoreSmall",components:{BaseIcon:ce},props:{color:{type:String,default:"white"}}});var E5=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("BaseIcon",e._b({attrs:{viewBox:"0 0 1491 1408",small:!0,width:"1491px",height:"1408px",color:e.color}},"BaseIcon",e.$attrs,!1),[r("path",{style:`fill: ${e.color}`,attrs:{d:"M1311.3 18.5c36.3 13.8 69.3 35.1 96.8 62.4 27.5 27.4 49 60.2 63.1 96.4 14.1 36.1 20.5 74.9 18.7 113.6v226h-338l-147.2-254H486.4L230.3 705.6l250.9 442.7h518.3l147.2-254h338v226c1.3 38-5.2 75.9-19.2 111.4-14 35.4-35.1 67.6-62 94.5-27 26.9-59.1 48-94.6 62-35.4 14-73.3 20.5-111.4 19.2H289.4c-38.1 1.3-76.1-5.2-111.5-19.2-35.5-13.9-67.8-35-94.8-61.9-27-27-48.2-59.1-62.3-94.5-14.1-35.5-20.7-73.4-19.6-111.5V290.9C-.4 252.6 6 214.3 19.9 178.5s35-68.4 62.1-95.6c27-27.3 59.4-48.6 95.1-62.8C212.8 6 251-.7 289.4.7h908.1c38.8-2.1 77.6 4 113.8 17.8"}}),r("path",{attrs:{fill:"#ff5200",d:"M607.7 473.4h269.5L1012 705.6 877.2 937.8H607.7L472.9 705.6z"}})])},L5=[],D5=R(M5,E5,L5,!1,null,null,null,null);const P5=D5.exports,z5=O.extend({name:"Aconex",components:{BaseIcon:ce},props:{color:{type:String,default:"white"}}});var O5=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("BaseIcon",e._b({attrs:{viewBox:"0 0 655 101",small:!0,width:"655px",height:"101px",color:e.color}},"BaseIcon",e.$attrs,!1),[r("path",{attrs:{fill:e.color,d:"M37.06 0h14.5C73.84 2.53 89.8 10.9 89.97 35.77q.09 12.18.01 59.51 0 .52-.5.66-12.12 3.44-24.54 5.06H30.19C15.22 98.86 1.82 92.45 0 75.69v-8q2.73-19.08 21.98-23.42c14.83-3.34 25.3-2.59 43.9-2.5q.49.01.53-.48c.95-11.25-1.99-21.4-14.77-23.07-14.54-1.9-28.92.74-42.68 5.25q-.66.21-.79-.46L5.15 6.85q-.1-.53.41-.69Q21.01 1.3 37.06 0ZM24.35 74.69c4.27 15.92 30.28 13.01 41.47 9.94q.68-.19.68-.89V55.5q0-.52-.52-.51c-9.13.02-33.04-2.87-40.14 8.54q-3.13 5.04-1.49 11.16ZM154.81 0h12.25q11.13 1.2 21.36 5.76a.83.83 0 0 1 .48.92l-3 15.83a.52.52 0 0 1-.75.36c-27.94-14.29-61.26-.09-54.36 35.65 5.27 27.29 35.25 30.97 56.27 21.02q.49-.23.6.31l3.06 15.94q.11.59-.44.82-7.43 3.11-15.34 4.39h-26.25q-15.21-2.62-26.13-11.53c-16.7-13.62-20.16-39.21-13.57-58.74C115.54 11.28 135.33 1.3 154.81 0ZM248.06 0h11.75c32.22 3.27 50.15 24.01 47.51 57.05-1.99 24.86-17.32 39.3-41.13 43.95h-25c-32.74-5.35-47.18-33.29-39.87-64.54C206.8 12.99 225.42 1.94 248.06 0Zm-13.87 77.81q9.04 7.19 19.94 6.86c24.28-.73 31.99-22.11 28.35-42.89q-2.6-14.88-14.73-21.05c-11.98-6.1-29.11-3.64-37.41 7.36-9.48 12.56-9.31 39.26 3.85 49.72ZM362.06 0h15.25c24.46 1.67 41.07 14.59 41.19 40.25q.14 30.38-.19 60.75h-23.37q.3-47.86-.06-62.79-.28-12.04-9.02-17.06c-8.64-4.96-28.52-4.3-37.92.78q-.47.26-.47.8l-.12 78.27h-23.41l.04-92.38a1.27 1.25 79.6 0 1 .8-1.18C336.61 2.83 349.45.82 362.06 0ZM478.31 0h12.5q10.95 1.05 19.44 5.01c19.43 9.09 24.7 32.45 21.32 51.95a.35.34-85 0 1-.34.29H460.5q-.84 0-.81.84c1 33.28 42.06 28.48 62.32 21.97.88-.28 1.87-1.01 2.95-1.25q.58-.13.74.45l4.34 15.68q.14.51-.36.7-10.43 3.75-21.24 5.36h-31.25c-21-3.64-36.42-13.77-41.03-35.42q-3.17-14.86-.04-30.6c4.43-22.3 20.94-32.9 42.19-34.98Zm16.13 18.09c-18.4-6.52-36.52 5.09-34.51 25.65q.05.51.56.51h46.53a.45.45 0 0 0 .45-.44c.18-9.71-2.8-22.09-13.03-25.72Z"}}),r("path",{attrs:{fill:"#e86c17",d:"M542.06 0h30.25l22.64 27.91q.3.37.3.85v18.49q0 .5-.5.5h-13.76q-.53 0-.86-.41L541.89.39q-.06-.08.01-.16.09-.09.16-.23Z"}}),r("path",{attrs:{fill:e.color,d:"M624.06 0h30.25q-.05.16.06.26.06.07 0 .14l-38.23 46.94q-.33.41-.86.41H602q-.75 0-.75-.75V28.7q0-.6.38-1.07L624.06 0ZM572.19 101h-29.75l-.08-.31q-.04-.17.07-.31l37.7-46.31q.25-.32.66-.32h13.71q.75 0 .75.75v17.97q0 .45-.28.79L572.19 101Z"}}),r("path",{attrs:{fill:"#e86c17",d:"M653.94 101h-30.25l-22.11-27.25q-.33-.42-.33-.95V54.25q0-.5.5-.5h13.72q.47 0 .76.36c3.44 4.23 38 46.23 37.71 46.89Z"}})])},B5=[],I5=R(z5,O5,B5,!1,null,null,null,null);const F5=I5.exports,R5=O.extend({name:"AconexSmall",components:{BaseIcon:ce},props:{color:{type:String,default:"white"}}});var A5=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("BaseIcon",e._b({attrs:{viewBox:"0 0 580 520",small:!0,width:"580px",height:"520px",color:e.color}},"BaseIcon",e.$attrs,!1),[r("g",{attrs:{transform:"translate(-490, -270)"}},[r("path",{attrs:{fill:"#e86c17",d:"M494.66 271h150.1a.35.35 0 0 1 .28.13l115.38 141.98a.35.35 0 0 1 .08.22v95.82a.35.35 0 0 1-.35.35h-72.24a.35.35 0 0 1-.28-.13l-193.25-237.8a.35.35 0 0 1 .28-.57Z"}}),r("path",{style:`fill: ${e.color}`,attrs:{d:"M906.72 271h150.14a.32.32 0 0 1 .25.52L863.96 509.38a.32.32 0 0 1-.25.12h-72.14a.32.32 0 0 1-.32-.32v-96.06a.32.32 0 0 1 .07-.2l115.15-141.8a.32.32 0 0 1 .25-.12ZM688.14 540.25h71.94a.42.42 0 0 1 .42.42v95.97a.42.42 0 0 1-.09.27l-117.7 144.93a.42.42 0 0 1-.33.16H492.51a.42.42 0 0 1-.32-.68l195.62-240.91a.42.42 0 0 1 .33-.16Z"}}),r("path",{attrs:{fill:"#e86c17",d:"M1059.1 781.2a.83.83 0 0 1-.83.8H909.73a1.11 1.1-19.3 0 1-.86-.41L791.56 637.23a1.38 1.38 0 0 1-.31-.87v-95.61a.5.5 0 0 1 .5-.5h71.52a1.1 1.1 0 0 1 .85.4q97.41 119.9 194.78 239.94.21.26.2.61Z"}})])])},H5=[],N5=R(R5,A5,H5,!1,null,null,null,null);const j5=N5.exports,q5=O.extend({name:"Autodesk",components:{BaseIcon:ce},props:{color:{type:String,default:"white"}}});var W5=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("BaseIcon",e._b({attrs:{viewBox:"0 0 1619.27 166.13",small:!0,width:"1619.27px",height:"166.13px",color:e.color}},"BaseIcon",e.$attrs,!1),[r("path",{style:`fill: ${e.color}`,attrs:{d:"M1619.27 4.34h-47.94l-57.42 64.12V4.34h-40.25l.2 157.84h40.05V102.2l54.46 59.98h50.9l-73.39-77.93 73.39-79.91zm-210.51 64.91l-36.7-4.14c-21.51-2.37-26.83-7.7-26.83-15 0-8.09 11.05-15.39 32.55-15.39 20.72 0 31.57 7.7 33.54 19.34h39.46c-2-33.35-30-54.06-70.83-54.06-48.53 0-73 19.33-73 53.46 0 27.82 16.18 40.85 49.72 44.4l37.29 3.94c14.21 1.58 20.72 7.11 20.72 14.21 0 8.09-9.47 15.39-32.36 15.39-26.44 0-37.09-6.71-38.87-20.13h-38.67c1.78 36.31 25.45 54.85 76.16 54.85 46.36 0 72.21-20.32 72.21-50.9 0-26.64-15.39-42.62-44.39-45.97zm-248.8 92.93h127.06v-34.13h-86.81V99.44h69.84V65.11h-69.84V38.47h86.81V4.34h-127.06v157.84zm-94.7-157.84h-73.79v157.84h73.79c56.63 0 72.21-21.11 72.21-80.11 0-55.44-14.99-77.73-72.21-77.73zm-1.62 123.72h-32V38.47h32c25.26 0 32.75 6.91 32.75 43.6.04 33.54-8.44 45.99-32.75 45.99zM882.17 0c-57.42 0-87.21 35.31-87.21 82.86 0 47.75 29.79 83.26 87.21 83.26 57.61 0 87.4-35.51 87.4-83.26 0-47.55-29.79-82.86-87.4-82.86zm0 130.61c-29.79 0-46.17-18.15-46.17-47.75 0-29 16.38-47.35 46.17-47.35 30 0 46.17 18.35 46.17 47.35 0 29.6-16.18 47.75-46.17 47.75zM646.59 38.47h50.9v123.71h40.25V38.47h50.71V4.34H646.59v34.13zM588 101.8c0 20.52-12.63 28.81-34.14 28.81-20.91 0-34.52-8.68-34.52-28.81V4.34h-40.25v102c0 45.58 40.64 59.78 74.77 59.78 33.94 0 74.38-14.2 74.38-59.78v-102H588zM361.3 4.34l-60.57 157.84h41.63l10.57-29.6h67.62l10.4 29.6h43L412.64 4.34zm3.61 94.7l22.11-61.87 21.74 61.89zM1.24 162.19l141.34-87.92h73.32a4.28 4.28 0 014.28 4.29 3.72 3.72 0 01-2 3.6l-69.42 41.62c-4.51 2.7-6.09 8.12-6.09 12.18l-.07 26.23h88.22V9.75a5.41 5.41 0 00-5.64-5.42H141L0 91.87v70.32z"}})])},G5=[],U5=R(q5,W5,G5,!1,null,null,null,null);const Z5=U5.exports,X5=O.extend({name:"AutodeskSmall",components:{BaseIcon:ce},props:{color:{type:String,default:"black"}}});var Y5=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("BaseIcon",e._b({attrs:{viewBox:"0 0 24 24",small:!0,height:"24px",width:"24px",color:e.color}},"BaseIcon",e.$attrs,!1),[r("path",{style:`fill: ${e.color}`,attrs:{d:"m15 11.5 -14 8v-7l13.5 -8H22a1 1 0 0 1 1 1v14h-9v-2.485a1 1 0 0 1 0.419 -0.814l5.946 -4.248a0.25 0.25 0 0 0 -0.145 -0.453H15Z","stroke-width":"1"}})])},V5=[],Q5=R(X5,Y5,V5,!1,null,null,null,null);const K5=Q5.exports,J5=O.extend({name:"ProcoreObservations",components:{BaseIcon:ce},props:{color:{type:String,default:"white"}}});var e3=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("BaseIcon",e._b({attrs:{viewBox:"0 0 24 24",small:!0,width:"100%",height:"100%",fill:"none",color:e.color}},"BaseIcon",e.$attrs,!1),[r("path",{attrs:{d:"M16 4C16.93 4 17.395 4 17.7765 4.10222C18.8117 4.37962 19.6204 5.18827 19.8978 6.22354C20 6.60504 20 7.07003 20 8V17.2C20 18.8802 20 19.7202 19.673 20.362C19.3854 20.9265 18.9265 21.3854 18.362 21.673C17.7202 22 16.8802 22 15.2 22H8.8C7.11984 22 6.27976 22 5.63803 21.673C5.07354 21.3854 4.6146 20.9265 4.32698 20.362C4 19.7202 4 18.8802 4 17.2V8C4 7.07003 4 6.60504 4.10222 6.22354C4.37962 5.18827 5.18827 4.37962 6.22354 4.10222C6.60504 4 7.07003 4 8 4M9 15L11 17L15.5 12.5M9.6 6H14.4C14.9601 6 15.2401 6 15.454 5.89101C15.6422 5.79513 15.7951 5.64215 15.891 5.45399C16 5.24008 16 4.96005 16 4.4V3.6C16 3.03995 16 2.75992 15.891 2.54601C15.7951 2.35785 15.6422 2.20487 15.454 2.10899C15.2401 2 14.9601 2 14.4 2H9.6C9.03995 2 8.75992 2 8.54601 2.10899C8.35785 2.20487 8.20487 2.35785 8.10899 2.54601C8 2.75992 8 3.03995 8 3.6V4.4C8 4.96005 8 5.24008 8.10899 5.45399C8.20487 5.64215 8.35785 5.79513 8.54601 5.89101C8.75992 6 9.03995 6 9.6 6Z",stroke:e.color,"stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}})])},t3=[],r3=R(J5,e3,t3,!1,null,null,null,null);const n3=r3.exports,i3={Back10:b0,Forward10:g0,Bim:d0,Brightness:k0,Blur:D0,Compare:I0,ConcretePump:N0,CompactExcavator:Bi,DroneView:U0,Dumper:Q0,Evercam:rl,EvercamLogo:ol,Excavator:Bi,FlatbedSemiTrailer:gl,FreeDrawing:bl,IModel:kl,Inspection:Dl,Loader:Il,MiniModel:Nl,MarkUp:r5,Nerves:x5,OtherTruck:Ii,RoadVehicle:Vl,Roller:t2,Robot:a2,SemiTrailer:d2,SkidSteerLoader:g2,SmallTruck:b2,TankTruck:k2,The360:D2,TippingTruck:I2,TruckHead:N2,TruckMixer:U2,Unknown:Ii,Worker:Q2,ZohoCrm:o5,Tag:h5,TagPlus:v5,Procore:$5,ProcoreSmall:P5,Aconex:F5,AconexSmall:j5,Autodesk:Z5,AutodeskSmall:K5,ProcoreObservations:n3},s3=t=>t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),Fi=Object.fromEntries(Object.entries(i3).map(([t,e])=>[s3(t),e])),a3=O.extend({name:"EIcon",components:{...Fi},props:{icon:{type:String,default:void 0},colorClass:{type:String,default:se.Default}},computed:{isSvgIcon(){return this.icon.startsWith("eui-")},svgIconName(){return this.icon.replace(/^eui-/,"")},svgIconComponent(){return Fi[this.svgIconName]},svgSizes(){return{[G.Xs]:16,[G.Sm]:18,[G.Base]:20,[G.Lg]:24,[G.Xl]:30,[G.TwoXl]:36,[G.ThreeXl]:42,[G.FourXl]:48,[G.FiveXl]:54,[G.SixXl]:60,[G.SevenXl]:66,[G.EightXl]:70,[G.NineXl]:74}},faSizes(){return Oi.reduce((t,e)=>({...t,[e]:`e-text-${e}`}),{})},iconSize(){const t=this.$attrs.size;if(this.isSvgIcon&&!t)return;if(this.isSvgIcon&&!isNaN(Number(t)))return Number(t);const e=t||G.Base;return this.isSvgIcon?this.svgSizes[e]:this.faSizes[e]},faIconStyle(){return{color:this.$attrs.color,"caret-color":this.$attrs.color}},faIconClass(){const t=this.iconSize,e=this.icon.includes(" ")?this.icon:`fa ${this.icon}`;return["e-inline-flex e-items-center e-justify-center e-rounded-full",this.colorClass,this.icon,e,t]}}});var o3=function(){var e=this,r=e._self._c;return e.isSvgIcon?r(e.svgIconComponent,e._g(e._b({tag:"component",staticClass:"e-svg-icon",attrs:{size:e.iconSize}},"component",e.$attrs,!1),e.$listeners)):r("i",e._g(e._b({staticClass:"e-icon",class:e.faIconClass,style:e.faIconStyle},"i",e.$attrs,!1),e.$listeners))},l3=[],c3=R(a3,o3,l3,!1,null,null,null,null);const Be=c3.exports,u3=O.extend({name:"ESpinner",props:{dark:{type:Boolean,default:!1},color:{type:Boolean,default:!0},animationDuration:{type:[Number,String],default:1e3},size:{type:String,default:G.Base},opacity:{type:[String,Number],default:1}},data(){return{sizes:Pi,colors:zi}},computed:{computedSize(){return this.sizes[G[this.size]]||this.size||this.sizes[G.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"]}`}}}}),Ud="";var d3=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"}})])},h3=[],p3=R(u3,d3,h3,!1,null,"9a1333ac",null,null);const Gr=p3.exports,f3=O.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}}}}),Zd="";var m3=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)},g3=[],v3=R(f3,m3,g3,!1,null,null,null,null);const Ur=v3.exports,y3=O.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}}}),Xd="";var _3=function(){var e=this,r=e._self._c;return r("div",{staticClass:"e-col",class:e.colClasses},[e._t("default")],2)},C3=[],b3=R(y3,_3,C3,!1,null,null,null,null);const Zr=b3.exports;function Xr(){const t=document;return!!(t.fullscreenElement||t.mozFullScreenElement||t.webkitFullscreenElement||t.msFullscreenElement)}function Yr(t){if(Xr())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 Vr(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){var e=Math.random()*16|0,r=t==="x"?e:e&3|8;return r.toString(16)})}function Qr(){if(!Xr())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 x3(t,e=1e3,r=!1){let n=null;return function(...i){const s=this,a=r&&!n;n&&clearTimeout(n),n=setTimeout(function(){n=null,r||t.apply(s,i)},e),a&&t.apply(s,i)}}function w3(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 S3(t,e=0,r=0,n=t.naturalWidth,i=t.naturalHeight){const s=document.createElement("canvas"),a=s.getContext("2d");s.width=n,s.height=i,a==null||a.drawImage(t,e,r,n,i,0,0,n,i);const c=s.toDataURL();return s.remove(),c}function T3(t){return!!(t!=null&&t.length&&!isNaN(new Date(t).getTime()))}function Ri(t,e=1){let r=0,n=0,i=0;return t.length===4?(r=parseInt(t[1]+t[1],16),n=parseInt(t[2]+t[2],16),i=parseInt(t[3]+t[3],16)):t.length===7&&(r=parseInt(t[1]+t[2],16),n=parseInt(t[3]+t[4],16),i=parseInt(t[5]+t[6],16)),`rgba(${r}, ${n}, ${i}, ${e})`}function Ai(t,e=1){const r=t.match(/\d+/g);return r&&r.length===3?`rgba(${r[0]}, ${r[1]}, ${r[2]}, ${e})`:null}function Hi(t){return t.startsWith("rgba")}function pt(t,e=1){return Hi(t)?t:t.startsWith("#")?Ri(t,e):t.startsWith("rgb")?Ai(t,e):t}function k3(t){const e=JSON.stringify(t);return Ni(e).toString()}function Ni(t){let 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}function Kr(t,e,r){const n=M.scaleLinear().domain([0,r-1]).range([0,1]);return Array.from({length:r},(i,s)=>M.interpolate(t,e)(n(s)))}const ji={continuous:{monday:["00:00-23:59"],tuesday:["00:00-23:59"],wednesday:["00:00-23:59"],thursday:["00:00-23:59"],friday:["00:00-23:59"],saturday:["00:00-23:59"],sunday:["00:00-23:59"]},custom:{monday:["00:00-23:59"],tuesday:["00:00-23:59"],wednesday:["00:00-23:59"],thursday:["00:00-23:59"],friday:["00:00-23:59"],saturday:["00:00-23:59"],sunday:["00:00-23:59"]},workingHours:{monday:["08:00-18:00"],tuesday:["08:00-18:00"],wednesday:["08:00-18:00"],thursday:["08:00-18:00"],friday:["08:00-18:00"],saturday:[],sunday:[]},empty:{monday:[],tuesday:[],wednesday:[],thursday:[],friday:[],saturday:[],sunday:[]}},qi=24*60-1,Wi=t=>{const[e,r]=t.split(":");return parseInt(e)*60+parseInt(r)},Jr=t=>{const e=Math.floor(t/60).toString().padStart(2,"0"),r=(t%60).toString().padStart(2,"0");return`${e}:${r}`};function en(t){return["monday","tuesday","wednesday","thursday","friday","saturday","sunday"].reduce((r,n)=>{const i=t[n];return{...r,[n]:i.length?i[0].split("-").map(s=>Wi(s)):[0,qi]}},{})}function $3(t){return Object.fromEntries(Object.entries(t).map(([e,r])=>[e,r.map(n=>{const[i,s]=n.split("-");let[a,c]=s.split(":");return a=parseInt(a),a=Math.max(0,a-1),`${i}-${a.toString().padStart(2,"0")}:${c}`})]))}const M3=O.extend({name:"EZoomable",props:{ignorePointerEvents:{type:Boolean,default:!1},withZoomButtons:{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("on-frame-props-change",{imgStyle:t})},immediate:!0,deep:!0}},methods:{zoom(t){const e=this.$refs.container;if(this.disabled)return;const r=e.getBoundingClientRect(),n={x:r.width/2,y:r.height/2},i=this.scale;t<0?this.scale*=1.2:this.scale*=.8,this.updateZoomScale(),this.left=(this.left-n.x)*(this.scale/i)+n.x,this.top=(this.top-n.y)*(this.scale/i)+n.y;const s=0-r.width*(this.scale-1),a=0-r.height*(this.scale-1);this.left=Math.min(0,Math.max(s,this.left)),this.top=Math.min(0,Math.max(a,this.top)),this.updateTransform()},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(),i=r.getBoundingClientRect();if(!n||!i)return;const s=t.clientX,a=t.clientY,c=Math.max(-1,Math.min(1,t.wheelDelta||-t.detail)),o=this.scale;this.scale+=c/10,this.updateZoomScale();const l=((s-i.left)/i.width).toFixed(2),d=((a-i.top)/i.height).toFixed(2);this.left=Math.round(s-n.left-Number(l)*(i.width*this.scale/o)),this.top=Math.round(a-n.top-Number(d)*(i.height*this.scale/o));const h=0,m=0-n.width*(this.scale-1),C=0-n.height*(this.scale-1),b=0;this.left<m?this.left=m:this.left>h&&(this.left=h),this.top<C?this.top=C: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[i,s,a,c]=[r.top-n.top,n.right-r.right,n.bottom-r.bottom,r.left-n.left].map(o=>o<0?o:0);this.left+=c-s,this.top+=i-a},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)}}}),Yd="";var E3=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(),r("div",{staticClass:"zoom-slider e-absolute e-bottom-12 e-left-0"},[e.withZoomButtons?r("EZoomSlider",{attrs:{vertical:""},on:{"zoom-in":function(n){return e.zoom(-1)},"zoom-out":function(n){return e.zoom(1)}},model:{value:e.scale,callback:function(n){e.scale=n},expression:"scale"}}):e._e()],1)])])},L3=[],D3=R(M3,E3,L3,!1,null,"11da8a2c",null,null);const tn=D3.exports,rn=new Intl.NumberFormat(void 0,{minimumIntegerDigits:2}),Gi=["play","pause","ended","loadeddata","waiting","playing","timeupdate","canplay","canplaythrough","statechanged","error"],nn=t=>{const e=Math.floor(t%60),r=Math.floor(t/60)%60,n=Math.floor(t/3600);return n===0?`${r}:${rn.format(e)}`:`${n}:${rn.format(r)}:${rn.format(e)}`},P3=O.extend({name:"EVideoPlayer",components:{ESpinner:Gr,EZoomable:tn},props:{withZoomButtons:{type:Boolean,default:!1},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},isEdgeVideo:{type:Boolean,default:!1},edgeStreamingToken:{type:String,default:""},authToken:{type:String,default:""},pauseOnClick:{type:Boolean,default:!0},isHlsLoading:{type:Boolean,default:!1},isPlaying:{type:Boolean,default:!1},showLoadingAnimation:{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:"SevenXl"},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 ot,playbackRetries:0,preloadedSeconds:0,preloadedInterval:{}}},computed:{posterUrl(){const t=this.videoOptions;return(t==null?void 0:t.poster)||(t==null?void 0:t.backgroundUrl)},sourceItems(){return Array.isArray(this.sources)?this.sources:[{src:this.sources}]},withControls(){const t=this.videoOptions;return(t==null?void 0:t.controls)===!1?"hide":""},streamingToken(){return this.isEdgeVideo?this.edgeStreamingToken:this.authToken}},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 s,a;if(!this.isHls)return;const e=this.$refs.player,r=(s=this.preloadedInterval)==null?void 0:s.start,n=(a=this.preloadedInterval)==null?void 0:a.end;if(!(r&&n))return;const i=Se(t).isBetween(Se(r),Se(n),void 0,"[]");e.currentTime=0,i||this.initHls()}}},mounted(){this.isHls&&this.initHls(),this.bindEvents(),this.initializePlayer(),this.initializeFullscreenListeners()},beforeDestroy(){this.unbindEvents(),this.destroyPlayer(),this.removeFullscreenListeners()},methods:{initHls(t="",e=!1){var i,s,a,c,o;const r=this.$refs.player,n=this.sources[0];(i=this.player)!=null&&i.stopLoad&&this.player.stopLoad(),ot.isSupported()&&(this.isLoading=!0,this.player=new ot({startPosition:0,debug:e,xhrSetup:l=>{this.streamingToken&&l.setRequestHeader("Authorization",`Bearer ${this.streamingToken}`)},...this.hlsOptions}),this.player.enableDebug=()=>{this.player.destroy(),this.initHls(t,!0)},r._hls=this.player,(s=this.player)==null||s.loadSource(t||n.src),(a=this.player)==null||a.attachMedia(r),(c=this.player)==null||c.on(ot.Events.MANIFEST_PARSED,(l,d)=>{var C;const h=(C=d.levels[d.firstLevel])==null?void 0:C.details,m=h==null?void 0:h.startTimeOffset;r.currentTime=m||0,this.playing&&r.play()}),(o=this.player)==null||o.on(ot.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 l;if(!e.fatal)return;this.$emit("error",e);const r=e.type===ot.ErrorTypes.NETWORK_ERROR,n=e.type===ot.ErrorTypes.MEDIA_ERROR,i=r&&((l=e.networkDetails)==null?void 0:l.status)===404,s=this.$refs.player,a=()=>this.fallbackSrc&&(s==null?void 0:s.currentSrc)!==this.fallbackSrc,c=()=>this.initHls(this.fallbackSrc),o=()=>{if(a()){c();return}this.player.destroy(),this.videoListeners.error?this.videoListeners.error():this.handle404Error()};if(i){o();return}if(r){console.error("A network error occurred:",e),a()?c():this.player.startLoad();return}n&&(console.error("A media error occurred:",e),a()?c():this.player.recoverMediaError()),o()},bindEvents(){const t=this.$refs.player;Gi.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;Gi.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=nn(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&&(Qr().then(()=>{this.isFullscreen=!1}),this.isFullscreen=!1)},openFullscreenMode(){const t=this.$refs.videoContainer;t&&(Yr(t).then(()=>{this.isFullscreen=!0}),this.isFullscreen=!0)},toggleFullscreenMode(){this.isFullscreen?this.closeFullscreenMode():this.openFullscreenMode()},getDuration(){const t=this.$refs.player;this.videoLength=nn(t.duration),this.videoDuration=t.duration},handleTimeUpdate(){const t=this.$refs.player,e=this.$refs.timelineContainer;if(!t||!e)return;this.currentTime=nn(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(),i=Math.min(Math.max(0,t.x-n.x),n.width)/n.width;r.style.setProperty("--preview-position",i.toString()),this.isScrubbing&&(t.preventDefault(),r.style.setProperty("--progress-position",i.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 i=e.getBoundingClientRect(),s=Math.min(Math.max(0,t.x-i.x),i.width)/i.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=s*this.videoDuration,n.currentTime=s*this.videoDuration,this.wasPaused)return;const a=n.play();a!==void 0&&a.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}}}}),Vd="";var z3=function(){var e=this,r=e._self._c;return r("div",{ref:"videoContainer",staticClass:"e-video-player video-container paused"},[r("EZoomable",{ref:"zoomable",attrs:{"ignore-pointer-events":e.zoomableIgnorePointerEvents,disabled:!e.isZoomable,"with-overlay":e.withOverlayOnBackground,"with-zoom-buttons":e.withZoomButtons},on:{"on-frame-props-change":function(n){return e.$emit("on-frame-props-change",n)}},scopedSlots:e._u([{key:"overlay",fn:function(){return[e._t("player-container-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("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,seeking:function(n){e.isLoading=!0},seeked:function(n){e.isLoading=!1},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||e.showLoadingAnimation?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"},[e._t("error",function(){return[r("i",{staticClass:"fa-solid fa-video-slash fa-2xl e-align-middle"}),r("span",[e._v("This video file cannot be played.")])]})],2):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)},O3=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"timeline"},[e("div",{staticClass:"thumb-indicator"})])}],B3=R(P3,z3,O3,!1,null,"dc19e0e8",null,null);const Ui=B3.exports,Ue={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(i=>{i[0]&&r(i[0])});n.observe(t),t.__resizeObserver__=n},unbind(t){t.__resizeObserver__&&(t.__resizeObserver__.disconnect(),delete t.__resizeObserver__)}},I3=(t,e)=>t===e||t.contains(e),F3=(t,e)=>r=>{I3(t,r.target)||e(r)},Zi=["mousedown","touchstart","click"],sn={bind(t,e){const r=t,n=e.value;if(typeof n!="function"){console.warn("v-click-outside requires a function value");return}r.clickOutsideHandler={events:Zi,handler:F3(r,n),callback:n},queueMicrotask(()=>{Zi.forEach(i=>{document.addEventListener(i,r.clickOutsideHandler.handler)})})},unbind(t){const e=t;e.clickOutsideHandler&&(e.clickOutsideHandler.events.forEach(r=>{document.removeEventListener(r,e.clickOutsideHandler.handler)}),delete e.clickOutsideHandler)}},Xi=[{name:"resize-observer",definition:Ue},{name:"click-outside",definition:sn}],et={transparencyGradient:"transparency-gradient",transparencyGradientLight:"transparency-gradient-light",transparencyGradientHover:"transparency-gradient-hover",loadingGradient:"loading-gradient",stripedPattern:"stripedPattern",clipPath:"clip-path"},me={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",eventGroupContent:"event-group-content",eventRect:"event-rect",eventRectContainer:"event-rect-container",eventBarContainer:"event-bar-container",eventBarContainerHovered:"event-bar-container--hovered",eventBarContainerSelected:"event-bar-container--selected",eventBar:"event-bar",eventBarHoverZone:"event-bar-hover-zone",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",_legacyLabelGroup:"legacy-label-g",_legacyLabelBg:"legacy-label-bg",_legacyLabelBgFill:"legacy-label-bg-fill",_legacyLabelText:"legacy-label-text",_legacyLoadingIndicator:"legacy-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",areaGraphPath:"area-graph-path",lineGraphPath:"line-graph-path",lineGraphHoverZone:"line-graph-hover-zone",lineGraphDot:"line-graph-dot",forbiddenInterval:"forbidden-interval"};function Ke({timestamp:t,timezone:e}){const r=Yi(t,e);return Se(t).add(r,"minutes").toDate()}function Rt({date:t,timezone:e}){const r=new Date(t).getTimezoneOffset(),n=Yi(t,e);return Se(t).add(r,"minutes").utcOffset(n,!0).format()}function Yi(t,e){return e?Se.tz(t,e).utcOffset():R3(t)}function R3(t){return Se.parseZone(t).utcOffset()}const A3=O.extend({name:"ETimelineMilestone",directives:{resizeObserver:Ue},props:{timeScale:{type:Function,required:!0},milestone:{type:Object,required:!0},y:{type:Number,required:!0},height:{type:Number,default:18},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},timezone:{type:[String,void 0],default:void 0}},data(){return{classNames:me,timeouts:[],isInitialRender:!0,isMouseOver:!1,containerWidth:"",containerHeight:""}},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.isMouseOver?this.containerWidth:this.size}px`,height:`${this.isMouseOver?this.containerHeight:this.size}px`}},positionStyles(){return{left:`${this.timeScale(this.tzStringToDate(this.milestone.timestamp))}px`,top:`${this.linePosition}px`,transform:this.dot&&this.isMouseOver?`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}},linePosition(){const t=this.height/2;return this.y+t-1},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.$emit("hovered-milestone",this.milestone),this.dot)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 i=n.getBoundingClientRect(),s=e.dataset.timeoutId;s&&(clearTimeout(Number(s)),e.dataset.timeoutId=""),e.dataset.initialWidth||(e.dataset.initialWidth=e.style.width),e.dataset.initialHeight||(e.dataset.initialHeight=e.style.height),this.containerWidth||(this.containerWidth=e.dataset.initialContentWidth=String(i.width)),this.containerHeight||(this.containerHeight=e.dataset.initialContentHeight=String(i.height)),e.dataset.transitionStart=String(Date.now()),e.style.borderRadius="0.5em",e.classList.add(me.milestoneHovered),r.style.opacity="1",r.style.width=this.containerWidth+"px",r.style.height=this.containerHeight+"px"},onMilestoneMouseMove(){this.timeouts.forEach(t=>clearTimeout(t)),this.isMouseOver=!0},onMilestoneMouseLeave(t){if(this.$emit("hovered-milestone",null),this.dot){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),i=n>this.transitionDuration?this.transitionDuration:n,s=setTimeout(()=>{e.classList.remove(me.milestoneHovered),e.dataset.timeoutId=""},i);e.dataset.timeoutId=String(s),this.timeouts.push(s),this.isMouseOver=!1},onMilestoneClick(t,e){this.$emit("milestone-click",e)},tzStringToDate(t){return Ke({timestamp:t,timezone:this.timezone})}}}),Qd="";var H3=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)])},N3=[],j3=R(A3,H3,N3,!1,null,null,null,null);const q3=j3.exports,W3=O.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`}}}}),Kd="";var G3=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)})])},U3=[],Z3=R(W3,G3,U3,!1,null,"614947ed",null,null);const X3=Z3.exports,Y3=O.extend({name:"ETimelineMarkers",components:{ETimelineMarker:X3},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=M.drag().on("start",function(e,r){t.handleMarkerDrag({marker:r,markerElement:M.select(this),dragEvent:e})}).on("drag",function(e,r){t.handleMarkerDrag({marker:r,markerElement:M.select(this),dragEvent:e})}).on("end",function(e,r){t.handleMarkerDrag({marker:r,markerElement:M.select(this),dragEvent:e})}),M.selectAll(`.${me.marker}`).data(this.markers).call(this.markersDragBehavior)},removeMarkersDragBehavior(){this.markersDragBehavior&&(this.markersDragBehavior.on("start",null).on("drag",null).on("end",null),M.selectAll(`.${me.marker}`).call(this.markersDragBehavior))},handleMarkerDrag({marker:t,markerElement:e,dragEvent:r}){var c;if(!t.isDraggable)return;(c=r.sourceEvent)==null||c.preventDefault(),r.type==="start"&&(this.initialMarkerDragMouseOffset=r.x-e.node().querySelector(`.${me.markerLine}`).getBoundingClientRect().left,e.classed(me.markerDragged,!0));const n=r.x-this.initialMarkerDragMouseOffset,i=this.timeScale.invert(n-this.svgLeft);let s=this.timeScale(i);const a=this.isTimestampAllowedForMarker(i,t);if(r.type==="drag"&&a&&e.attr("style",`left: ${s}px`),r.type==="end"){const o=t.id||t.timestamp;s=a?s:this.timeScale(this.tzStringToDate(t.timestamp)),this.markersPositions={...this.markersPositions,[o]:{...this.markersPositions[o],position:s}},e.classed(me.markerDragged,!1)}r.type!=="start"&&this.$emit(`marker-drag-${r.type}`,{marker:t,newTimestamp:a?this.dateToTzString(i):t.timestamp})},updateMarkers(){if(!this.markers.length)return;const t=12,e=200;this.markers.forEach((r,n,i)=>{const s=typeof r.timestamp=="string"?this.tzStringToDate(r.timestamp):r.timestamp,a=this.timeScale(s);let c=!1;const o=this.stickyMarkers?Math.max(a,n*t):a;if(n<i.length-1){const l=i[n+1],d=typeof l.timestamp=="string"?this.tzStringToDate(l.timestamp):l.timestamp,h=this.timeScale(d);c=(this.stickyMarkers?Math.max(h,(n+1)*t):a)-o<e+t}this.markersPositions={...this.markersPositions,[r.id]:{isHidden:c,position:o}}}),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 Ke({timestamp:t,timezone:this.timeZone})},dateToTzString(t){return Rt({date:t,timezone:this.timeZone})}}});var V3=function(){var e=this,r=e._self._c;return r("div",{staticClass:"e-tl-markers"},e._l(e.markers,function(n){var i,s;return r("ETimelineMarker",{key:n.id,attrs:{marker:n,height:e.height,position:(i=e.markersPositions[n.id])==null?void 0:i.position,hidden:(s=e.markersPositions[n.id])==null?void 0:s.isHidden,"data-id":n.id},on:{"marker-clicked":function(a){return e.$emit("marker-clicked",a)}},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)},Q3=[],K3=R(Y3,V3,Q3,!1,null,null,null,null);const J3=K3.exports,ec=O.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,Number],default:""}},data(){return{timeScale:null,initialTimeScale:null,zoomBehavior:null,selection:null,isTransitioning:!1,container:null,transformDiff:{translation:0,scale:1},lastTransform:{x:0,y:0,k:1},isLeftBoundaryReached:!1,isRightBoundaryReached:!1,isZooming:!1,resetBoundariesTimeout:0}},computed:{minDate(){const[t]=this.domain;return this.toD3Date(t)},maxDate(){const[,t]=this.domain;return this.toD3Date(t)},focusedStartDate(){const[t]=this.focusedDomain||this.domain;return this.toD3Date(t)},focusedEndDate(){const[,t]=this.focusedDomain||this.domain;return this.toD3Date(t)}},watch:{timeScale(){this.emitFocusedDomainChange(_t.Zoom),this.emitTimeScaleChange()},focusedDomain(t){t&&this.zoomToFocusedDomain(t)},focusedTimestamp(t){t&&this.panToTimestamp(t)},width:{handler(t,e){!t||t===e||(this.timeScale=M.scaleTime().domain([this.focusedStartDate,this.focusedEndDate]).range([0,t]))}}},mounted(){this.initRefs(),this.initTimeScale(),this.initZoomBehavior(),this.emitTimeScaleChange(),this.emitFocusedDomainChange(_t.Initial)},methods:{initRefs(){this.container=this.$refs.container},initTimeScale(){this.timeScale=M.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(),s=[(this.focusedEndDate.getTime()-this.focusedStartDate.getTime())/r,1/0],a=this.initialTimeScale.copy();a.domain(t);const c=a(this.minDate),o=-(e-a(this.maxDate));return{scaleExtent:s,translateExtent:[[c||-1/0,0],[o||1/0,0]]}},initZoomBehavior(){const{scaleExtent:t,translateExtent:e}=this.calculateZoomExtents();this.zoomBehavior=M.zoom().scaleExtent(t).translateExtent(e).on("zoom",r=>{if(!(this.isZooming||this.disabled)){this.isZooming=!0;try{this.handleZoom(r)}catch(n){console.error(n)}finally{this.isZooming=!1}}}),this.selection=M.select(this.container),this.selection.call(this.zoomBehavior)},handleZoom(t){const e=t.transform.rescaleX(this.initialTimeScale.copy()),[r,n]=e.domain(),i=r<=this.minDate,s=n>=this.maxDate;if(i||s){const c=M.zoomIdentity.translate(this.lastTransform.x,this.lastTransform.y).scale(this.lastTransform.k);this.selection.call(this.zoomBehavior.transform,c),this.updateBoundaries(i,s);return}const a=t.transform.k/this.lastTransform.k;this.transformDiff={scale:a,translation:t.transform.x-this.lastTransform.x},this.lastTransform={...t.transform},this.timeScale=t.transform.rescaleX(this.timeScale).domain([r,n])},toD3Date(t){return Ke({timestamp:t,timezone:this.timezone})},toDateString(t){return Rt({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,r]=t,n=this.toD3Date(e!=null?e:this.focusedStartDate),i=this.toD3Date(r!=null?r:this.focusedEndDate);if(!this.timeScale)return;const[s,a]=this.timeScale.domain();if(n.getTime()===s.getTime()&&i.getTime()===a.getTime())return;const c=this.initialTimeScale.domain().map(C=>C.getTime()),o=c[1]-c[0],l=i.getTime()-n.getTime();let d=o/l;const h=this.zoomBehavior.scaleExtent();d=Math.min(Math.max(d,h[0]),h[1]);const m=this.initialTimeScale.copy().domain([n,i]);this.selection.transition().duration(this.scalingDuration/2).call(this.zoomBehavior.scaleTo,d).on("end",()=>this.translateIntervalIntoView(n,i,d)),this.timeScale=m},translateIntervalIntoView(t,e,r){const n=this.timeScale(t),i=this.timeScale(e),s=(n+i)/2,c=this.getWidth()/2-s,o=M.zoomTransform(this.selection.node());this.selection.transition().on("start",()=>{this.isTransitioning=!0,this.$emit("animation-start")}).on("end",()=>{this.isTransitioning=!1,this.$emit("animation-end")}).duration(this.translationDuration/2).call(this.zoomBehavior.transform,M.zoomIdentity.translate(o.x+c,o.y).scale(r))},emitTimeScaleChange(){this.$emit("time-scale-change",this.timeScale)},emitFocusedDomainChange(t){if(!this.selection.node()||this.isTransitioning||!this.timeScale)return;const[r,n]=this.timeScale.domain(),i=this.toDateString(r),s=this.toDateString(n);this.$emit("visible-interval-change",{fromDate:i,toDate:s,trigger:t,transform:this.transformDiff})},panToTimestamp(t){const e=new Date(t),r=this.timeScale(e),n=M.zoomTransform(this.selection.node()),i=n.x-r+this.getWidth()/2;this.selection.transition().duration(this.translationDuration).call(this.zoomBehavior.transform,M.zoomIdentity.translate(i,0).scale(n.k)).on("end",()=>{this.emitFocusedDomainChange(_t.Zoom)})},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}}}),Jd="";var tc=function(){var e=this,r=e._self._c;return r("div",{ref:"container",staticClass:"e-zoom-behavior",class:{"e-pointer-events-none":e.disabled}},[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)},rc=[],nc=R(ec,tc,rc,!1,null,null,null,null);const ic=nc.exports,sc=O.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:me}},computed:{classes(){return{[me.xAxis]:!0,[me.xAxisDark]:this.dark}},axis(){return M.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):M.utcFormat(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;M.select(t).call(this.axis),this.translateTicksText()},translateTicksText(){const t=this.$refs.container;M.select(t).selectAll(".tick text").each(function(){M.select(this).attr("x",5).attr("y",0).style("text-anchor","start")})},updateTicksSize(){this.axis.tickSizeOuter(0).tickSizeInner(this.height),this.update()}}}),eh="";var ac=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})`}})},oc=[],lc=R(sc,ac,oc,!1,null,null,null,null);const an=lc.exports,At=t=>{const e=M.utcFormat("%_d")(t),r=cc(parseInt(e));return`${e}${r}`},Vi=t=>new Date(Date.UTC(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()+1)).getUTCDate()===1?"":M.utcFormat("%-d")(t),xt=t=>["0"," 0","00"].includes(M.utcFormat("%H")(t))?"":`${M.utcFormat("%H")(t)}h`,at=t=>{const e=M.utcFormat("%H:%M")(t);return e==="00:00"?"":e},on=t=>M.utcFormat("%M:%S")(t),Qi=t=>`${M.utcFormat("%Hh%Mm")(t)}`,ln=t=>{const e=at(t),r=At(t),n=M.utcFormat("%B")(t);return e||`${n} ${r}`},cn=t=>{const e=at(t),r=Number.parseInt(M.utcFormat("%H")(t)),n=At(t),i=M.utcFormat("%B")(t);return e&&r%6===0?`${i} ${n} ${e}`:ln(t)},cc=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"}},wt=t=>e=>{const r=M.utcFormat("%H")(e);return!(M.utcFormat("%M")(e)==="00"&&Number.parseInt(r)%t===0)},un=t=>e=>{const r=M.utcFormat("%M")(e);return Number.parseInt(r)%t!==0},Ki=t=>e=>{const r=M.utcFormat("%M")(e),n=M.utcFormat("%S")(e);return Number.parseInt(r)%t!==0&&Number.parseInt(n)===0},J={_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},dn={[nt.Overview]:[{precision:J._30_seconds,interval:M.utcMinute.every(2),format:Qi},{precision:J._1_minute,interval:M.utcMinute.every(5),format:Qi},{precision:J._2_minutes,interval:M.utcMinute.every(10),format:ln},{precision:J._5_minutes,interval:M.utcMinute.every(20),format:cn},{precision:J._15_minutes,interval:M.utcHour,format:cn},{precision:J._30_minutes,interval:M.utcHour.every(2),format:cn},{precision:J._2_hours,interval:M.utcHour.every(6),format:t=>{const e=at(t),r=At(t),n=M.utcFormat("%B")(t);return e||`${n} ${r}`}},{precision:J._3_hours,interval:M.utcHour.every(12),format:ln},{precision:J._6_hours,interval:M.utcHour.every(24),format:t=>{const e=At(t),r=M.utcFormat("%b")(t),n=M.utcFormat("%Y")(t);return`${r} ${e} ${n}`}},{precision:J._2_days,interval:M.utcMonth,format:"%Y – %B"},{precision:J._2_year,interval:M.utcMonth.every(3),format:"%Y Q%q"},{precision:J._5_years,interval:M.utcYear.every(5),format:"%Y"},{precision:J._20_years,interval:M.utcYear.every(20),format:"%Y"},{precision:J._75_years,interval:M.utcYear.every(75),format:"%Y"},{precision:J._300_years,interval:M.utcYear.every(300),format:"%Y"},{precision:J.infinity,interval:M.utcMonth.every(12),format:"%Y"}],[nt.Detailed]:[{precision:J._10_seconds,interval:M.utcSecond.every(10),format:on},{precision:J._20_seconds,interval:(Ss=M.utcSecond.every(20))==null?void 0:Ss.filter(Ki(2)),format:on},{precision:J._30_seconds,interval:(Ts=M.utcSecond.every(30))==null?void 0:Ts.filter(Ki(2)),format:on},{precision:J._1_minute,interval:M.utcMinute.filter(un(5)),format:at},{precision:J._2_minutes,interval:(ks=M.utcMinute.every(2))==null?void 0:ks.filter(un(10)),format:at},{precision:J._5_minutes,interval:($s=M.utcMinute.every(5))==null?void 0:$s.filter(un(20)),format:at},{precision:J._15_minutes,interval:(Ms=M.utcMinute.every(15))==null?void 0:Ms.filter(wt(1)),format:at},{precision:J._30_minutes,interval:(Es=M.utcMinute.every(30))==null?void 0:Es.filter(wt(2)),format:at},{precision:J._1_hour,interval:M.utcHour.filter(wt(6)),format:xt},{precision:J._2_hours,interval:(Ls=M.utcHour.every(2))==null?void 0:Ls.filter(wt(6)),format:xt},{precision:J._3_hours,interval:(Ds=M.utcHour.every(3))==null?void 0:Ds.filter(wt(12)),format:xt},{precision:J._4_hours,interval:M.utcHour.every(4),format:xt},{precision:J._6_hours,interval:M.utcHour.every(6),format:xt},{precision:J._1_day,interval:M.utcDay,format:Vi},{precision:J._2_days,interval:M.utcDay.every(2),format:Vi},{precision:J._1_month,interval:M.utcMonth,format:"%B"},{precision:J._1_month_abbr,interval:M.utcMonth,format:"%b"},{precision:J._1_month_letter,interval:M.utcMonth,format:t=>M.utcFormat("%B")(t).charAt(0)},{precision:J._3_months,interval:M.utcMonth.every(3),format:"Q%q"},{precision:J._2_year,interval:M.utcMonth.every(6),format:"Q%q"},{precision:J._5_years,interval:M.utcYear.every(2),format:"%Y"},{precision:J._20_years,interval:M.utcYear.every(4),format:"%Y"},{precision:J._75_years,interval:M.utcYear.every(25),format:"%Y"},{precision:J._300_years,interval:M.utcYear.every(100),format:"%Y"},{precision:J.infinity,interval:M.utcYear.every(500),format:""}],[nt.DetailedBackground]:[{precision:J._10_seconds,interval:M.utcSecond,format:""},{precision:J._20_seconds,interval:M.utcSecond.every(5),format:""},{precision:J._30_seconds,interval:M.utcSecond.every(10),format:""},{precision:J._1_minute,interval:M.utcSecond.every(20),format:""},{precision:J._2_minutes,interval:M.utcSecond.every(30),format:""},{precision:J._5_minutes,interval:M.utcMinute,format:""},{precision:J._15_minutes,interval:M.utcMinute.every(3),format:""},{precision:J._30_minutes,interval:M.utcMinute.every(6),format:""},{precision:J._1_hour,interval:M.utcMinute.every(15),format:""},{precision:J._2_hours,interval:M.utcMinute.every(30),format:""},{precision:J._3_hours,interval:M.utcHour,format:""},{precision:J._4_hours,interval:M.utcHour,format:""},{precision:J._6_hours,interval:M.utcMinute.every(120),format:""},{precision:J._1_day,interval:M.utcHour.every(8),format:""},{precision:J._2_days,interval:M.utcHour.every(12),format:""},{precision:J._1_month,interval:M.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:J._1_month_abbr,interval:M.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:J._1_month_letter,interval:M.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:J._3_months,interval:M.utcMonth,format:""},{precision:J._3_months,interval:M.utcMonth,format:""},{precision:J._2_year,interval:M.utcYear,format:""},{precision:J._5_years,interval:M.utcYear.every(2),format:""},{precision:J._20_years,interval:M.utcYear.every(5),format:""},{precision:J._75_years,interval:M.utcYear.every(20),format:""},{precision:J._300_years,interval:M.utcYear.every(100),format:""},{precision:J.infinity,interval:M.utcYear.every(500),format:""}]},uc=O.extend({name:"EXAxisOverview",components:{EXAxis:an},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:me,ticksConfigs:dn[nt.Overview]}}}),th="";var dc=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}})},hc=[],pc=R(uc,dc,hc,!1,null,null,null,null);const fc=pc.exports,mc=O.extend({name:"EXAxisDetailed",components:{EXAxis:an},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:me,ticksConfigs:dn[nt.Detailed]}}}),rh="";var gc=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}})},vc=[],yc=R(mc,gc,vc,!1,null,null,null,null);const _c=yc.exports,Cc=O.extend({name:"EXAxisBackground",components:{EXAxis:an},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:me,ticksConfigs:dn[nt.DetailedBackground]}}}),nh="";var bc=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}})},xc=[],wc=R(Cc,bc,xc,!1,null,null,null,null);const Sc=wc.exports,Tc=O.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:et,TimelineChartType:qe,transparencyGradients:[{id:"transparency-gradient-light",stop:100,opacity:.4},{id:"transparency-gradient",stop:130,opacity:.4},{id:"transparency-gradient-hover",stop:130,opacity:.6}]}}});var kc=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,i){return[r("linearGradient",{key:`${e.defs.loadingGradient}-${i}`,attrs:{id:`${e.defs.loadingGradient}-${i}`,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),n.chartType===e.TimelineChartType.LineGraph?[e._l(e.transparencyGradients,function({id:s,stop:a,opacity:c}){return r("linearGradient",{key:`${s}-${i}-${n.chartType}`,attrs:{id:`${s}-${i}-${n.chartType}`,x1:"0%",x2:"0%",y1:"0%",y2:"100%"}},[r("stop",{attrs:{offset:"0%","stop-color":n.color,"stop-opacity":c}}),r("stop",{attrs:{offset:`${a}%`,"stop-color":n.color,"stop-opacity":"0"}})],1)}),r("clipPath",{key:`${e.defs.clipPath}-${i}`,attrs:{id:`${e.defs.clipPath}-${i}`}},[r("rect",{attrs:{width:e.width,height:e.height}})])]:e._e(),n.chartType===e.TimelineChartType.BarChart?[e._l(e.transparencyGradients,function({id:s,opacity:a}){return r("linearGradient",{key:`${s}-${i}-${n.chartType}`,attrs:{id:`${s}-${i}-${n.chartType}`,width:"100%",height:"100%"}},[r("stop",{attrs:{"stop-color":n.color,"stop-opacity":a}})],1)}),r("clipPath",{key:`${e.defs.clipPath}-${i}`,attrs:{id:`${e.defs.clipPath}-${i}`}},[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:"2",height:"7",fill:e.forbiddenIntervalColor}})])],2)},$c=[],Mc=R(Tc,kc,$c,!1,null,null,null,null);const Ec=Mc.exports,Lc=O.extend({name:"ETimelineForbiddenInterval",props:{timeScale:{type:Function,required:!0},interval:{type:Object,required:!0},index:{type:Number,required:!0},height:{type:Number,required:!0},timezone:{type:String,default:"UTC"}},data(){return{classNames:me,defs:et}},computed:{visibleDomain(){return this.timeScale.domain()},startX(){const t=this.interval.startDate===-1/0?this.visibleDomain[0]:this.tzStringToDate(this.interval.startDate);return this.timeScale(t)},endX(){const t=this.interval.endDate===1/0?this.visibleDomain[1]:this.tzStringToDate(this.interval.endDate);return this.timeScale(t)},width(){return Math.max(this.endX-this.startX,0)}},methods:{tzStringToDate(t){return Ke({timestamp:t,timezone:this.timezone})}}});var Dc=function(){var e=this,r=e._self._c;return r("rect",{class:`${e.classNames.forbiddenInterval} ${e.classNames.forbiddenInterval}-${e.index}`,attrs:{x:e.startX,y:"0",width:e.width,height:e.height,fill:`url(#${e.defs.stripedPattern})`}})},Pc=[],zc=R(Lc,Dc,Pc,!1,null,null,null,null);const Oc=zc.exports,Bc=O.extend({name:"ECursor",props:{timeScale:{type:Function,required:!0},timestamp:{type:String,required:!0},timezone:{type:String,required:!0},height:{type:Number,required:!0},color:{type:String,default:"red"},width:{type:Number,default:1},opacity:{type:Number,default:1}},data(){return{classNames:me}},watch:{timestamp(){this.repositionCursor()},timeScale(){this.repositionCursor()},height(){this.repositionCursor()}},methods:{repositionCursor(){const t=this.$refs.cursor,e=M.select(t);if(!e)return;if(!this.timestamp){e.style("opacity",0);return}const r=this.tzStringToDate(this.timestamp),n=this.timeScale(r);isNaN(n)?e.style("opacity",0):e.attr("x1",n).attr("x2",n).style("opacity",this.opacity),e.attr("y2",this.height)},tzStringToDate(t){return Ke({timestamp:t,timezone:this.timezone})}}});var Ic=function(){var e=this,r=e._self._c;return r("line",{ref:"cursor",class:e.classNames.selectedTimestampCursor,attrs:{x1:"0",y1:"0",x2:"0",opacity:"0",stroke:e.color,"stroke-width":`${e.width}px`}})},Fc=[],Rc=R(Bc,Ic,Fc,!1,null,null,null,null);const Ji=Rc.exports,Ac=O.extend({name:"ETimelineCursor",components:{ECursor:Ji},props:{timeScale:{type:Function,required:!0},selectedTimestamp:{type:String,required:!0},timezone:{type:String,default:"UTC"},height:{type:Number,required:!0}}});var Hc=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("ECursor",{attrs:{"time-scale":e.timeScale,timestamp:e.selectedTimestamp,timezone:e.timezone,color:"green",height:e.height}})},Nc=[],jc=R(Ac,Hc,Nc,!1,null,null,null,null);const qc=jc.exports,Wc=O.extend({name:"ETimelineSelectedTimestampCursor",components:{ECursor:Ji},props:{timeScale:{type:Function,required:!0},selectedTimestamp:{type:String,required:!0},timezone:{type:String,default:"UTC"},height:{type:Number,required:!0}}});var Gc=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("ECursor",{attrs:{"time-scale":e.timeScale,timestamp:e.selectedTimestamp,timezone:e.timezone,height:e.height,width:2}})},Uc=[],Zc=R(Wc,Gc,Uc,!1,null,null,null,null);const Xc=Zc.exports,Yc=O.extend({name:"ECursorBehavior",props:{timeScale:{type:Function,required:!0},timezone:{type:String,default:"UTC"},minHoverZone:{type:Number,default:0},isHoveringMilestone:{type:Boolean,default:!1}},data(){return{cursor:null,hoveredTimestamp:null,isHoveringTimeline:!1}},mounted(){this.registerEventsListeners()},methods:{registerEventsListeners(){const t=this.$refs.cursor;this.cursor=M.select(t),this.cursor.on("mousemove",this.handleMouseMove),this.cursor.on("click",this.handleClick),this.cursor.on("mouseleave",this.handleMouseLeave)},handleMouseLeave(){this.isHoveringTimeline=!1,this.hoveredTimestamp=void 0,this.$emit("mouse-leave")},handleMouseMove(t){if(this.isHoveringMilestone)return;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("mouse-move",e,this.hoveredTimestamp)},handleClick(t){if(this.isHoveringMilestone)return;const e=t.offsetX;if(e<=this.minHoverZone)return;const r=this.timeScale.invert(e),n=this.dateToTzString(r);this.$emit("timestamp-clicked",n,t.target)},tzStringToDate(t){return Ke({timestamp:t,timezone:this.timezone})},dateToTzString(t){return Rt({date:t,timezone:this.timezone})}}});var Vc=function(){var e=this,r=e._self._c;return r("div",{ref:"cursor",staticClass:"e-timeline__cursor e-relative"},[e._t("default",null,{hoveredTimestamp:e.hoveredTimestamp,isHoveringTimeline:e.isHoveringTimeline})],2)},Qc=[],Kc=R(Yc,Vc,Qc,!1,null,null,null,null);const Jc=Kc.exports,e6=O.extend({name:"ETimelineGroupContainer",props:{groupId:{type:String,required:!0},label:{type:String,default:""},color:{type:String,default:""},backgroundColor:{type:String,default:""},preserveColors:{type:Boolean,default:!1},x:{type:Number,default:0},y:{type:Number,required:!0},height:{type:Number,default:18},width:{type:Number,required:!0},showLabel:{type:Boolean,default:!0},labelWidth:{type:[Number,void 0],default:void 0},labelRadius:{type:[Number,void 0],default:3},xPadding:{type:Number,default:5},loading:{type:Boolean,default:!1},dark:{type:Boolean,default:!1},hidden:{type:Boolean,default:!1},showBackground:{type:Boolean,default:!0}},data(){return{classNames:me,characterWidth:6.5,isHighlighted:!1}},computed:{computedClasses(){return{label:{[`${me.labelGroup} ${me.labelGroup}-${this.groupId}`]:!0},container:{[`${me.eventGroup} ${me.eventGroup}-${this.groupId}`]:!0,[`${me.eventGroup}--highlighted`]:this.isHighlighted}}},computedLabelWidth(){var e;return(this.labelWidth||((e=this.label)==null?void 0:e.length)*this.characterWidth)+this.xPadding*2},textY(){return this.y+this.height/2},contentX(){return this.showLabel?this.x+this.computedLabelWidth:this.x},labelBackgroundColor(){let t=M.color(this.color);return this.preserveColors||(t.opacity=this.dark?.2:.5),t.toString()},textFillColor(){var t,e;return(this.dark?(t=M.color(this.color))==null?void 0:t.brighter(1.5):(e=M.color(this.color))==null?void 0:e.darker(2)).toString()},loadingIndicatorFill(){return`url(#${et.loadingGradient}-${this.groupId})`}}}),ih="";var t6=function(){var e=this,r=e._self._c;return r("g",{class:e.computedClasses.container},[!e.hidden&&e.showBackground?r("rect",{class:e.classNames.eventGroupBg,attrs:{x:e.x,y:e.y,width:e.width,height:e.height,fill:e.backgroundColor||e.color}}):e._e(),r("g",{class:e.classNames.eventGroupContent,attrs:{cursor:"pointer"}},[e._t("default",null,{y:e.y,x:e.contentX}),e.loading?r("rect",{class:e.classNames.loadingIndicator,attrs:{x:e.x,y:e.y,width:400,height:e.height,fill:e.loadingIndicatorFill}}):e._e()],2),e.showLabel?r("g",{class:e.computedClasses.label,on:{mouseover:function(n){e.isHighlighted=!0},mouseleave:function(n){e.isHighlighted=!1},click:function(n){return n.stopPropagation(),e.$emit("group-label-clicked",e.groupId)}}},[r("rect",{class:e.classNames.labelBg,attrs:{x:e.x,y:e.y,width:e.computedLabelWidth,height:e.height,rx:e.labelRadius,ry:e.labelRadius,fill:e.dark?"black":"white"}}),r("rect",{class:e.classNames.labelBgFill,attrs:{x:e.x,y:e.y,width:e.computedLabelWidth,height:e.height,rx:e.labelRadius,ry:e.labelRadius,fill:e.labelBackgroundColor,stroke:e.textFillColor}}),r("text",{staticClass:"label-text",attrs:{x:e.x+e.xPadding,y:e.textY,dy:"0.35rem",fill:e.textFillColor}},[e._v(" "+e._s(e.label)+" ")])]):e._e()])},r6=[],n6=R(e6,t6,r6,!1,null,null,null,null);const hn=n6.exports,i6=O.extend({name:"ETimelineRectsChartGroupedDots",props:{event:{type:Object,required:!0},rectStroke:{type:String,required:!0},rectStrokeWidth:{type:Number,required:!0},rectRx:{type:Number,required:!0},rectRy:{type:Number,required:!0},groupId:{type:String,required:!0}},data(){return{classNames:me}},computed:{numberOfBackgroundDots(){return this.event.groupedEvents?Math.min(3,this.event.groupedEvents.length-1):0}},methods:{getBackgroundX(t){return this.event.x-this.event.width/2-(this.numberOfBackgroundDots-(t-1))*4.5},getBackgroundY(t){return this.event.y+(this.numberOfBackgroundDots-(t-1))/2},getBackgroundSize(t){return this.event.width-(this.numberOfBackgroundDots-(t-1))},getBackgroundOpacity(t){return 1-(this.numberOfBackgroundDots-(t-1))/5}}});var s6=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("g",{class:e.classNames.eventRectContainer},[e._l(e.numberOfBackgroundDots,function(n){return r("rect",{key:`bg-${e.numberOfBackgroundDots-n}`,class:[e.classNames.eventRect,`${e.classNames.eventRect}--dot`,`bg-${n}`],attrs:{x:e.getBackgroundX(n),y:e.getBackgroundY(n),width:e.getBackgroundSize(n),height:e.getBackgroundSize(n),fill:e.event.color,stroke:e.rectStroke,opacity:e.getBackgroundOpacity(n),"stroke-width":e.rectStrokeWidth,ry:e.rectRx,rx:e.rectRy}})}),r("rect",{class:[e.classNames.eventRect,`${e.classNames.eventRect}--dot`],attrs:{x:e.event.x-e.event.width/2,y:e.event.y-e.event.width*.025,width:e.event.width*1.05,height:e.event.height*1.05,fill:e.event.color,stroke:e.rectStroke,cursor:"pointer","stroke-width":e.rectStrokeWidth,ry:e.rectRx,rx:e.rectRy}})],2)},a6=[],o6=R(i6,s6,a6,!1,null,null,null,null);const l6=o6.exports,c6=O.extend({name:"ETimelineRectsChart",directives:{},components:{ETimelineGroupContainer:hn,ETimelineRectsChartGroupedDots:l6},props:{timeScale:{type:Function,required:!0},eventsGroup:{type:Object,required:!0},groupId:{type:String,required:!0},x:{type:Number,default:0},y:{type:Number,required:!0},height:{type:Number,default:18},width:{type:Number,required:!0},rectMinWidth:{type:Number,default:1},rectYPadding:{type:Number,default:0},dark:{type:Boolean,default:!1},showLabel:{type:Boolean,default:!0},labelWidth:{type:[Number,void 0],default:void 0},timezone:{type:[String,void 0],default:void 0},dots:{type:Boolean,default:!1},dotsSize:{type:Number,default:3},barBorderRadius:{type:Number,default:1.5},groupOverlappingDots:{type:Boolean,default:!1},groupingThreshold:{type:Number,default:0}},data(){return{classNames:me,characterWidth:7.5,textPadding:5}},computed:{rectStrokeWidth(){return this.dots&&this.dotsSize?this.dotsSize/10:5},rectRx(){return this.dots&&this.dotsSize?this.dotsSize:this.eventsGroup.barBorderRadius||0},rectRy(){return this.dots&&this.dotsSize?this.dotsSize:this.eventsGroup.barBorderRadius||0},computedHeight(){return this.eventsGroup.height||this.height},yPosition(){const t=this.dots?(this.computedHeight-this.dotsSize+this.rectYPadding)/2:this.rectYPadding/2;return this.y+t},rectStroke(){if(!this.dots)return"#0000";const t=M.color(this.eventsGroup.color);return(t==null?void 0:t.brighter(1).toString())||"#0000"},rectHeight(){return this.dots?this.dotsSize:Math.max(this.height,1)},preprocessedEvents(){return[...this.eventsGroup.events].sort((e,r)=>{const n=new Date(e.startDate||e.timestamp).getTime(),i=new Date(r.startDate||r.timestamp).getTime();return n-i}).map(this.convertEventTzStringToDate)},computedEvents(){return(this.dots&&this.groupOverlappingDots?this.groupedEvents:this.preprocessedEvents.map(e=>[e])).map(e=>{let r={textContent:this.getEventText(e[0],this.textPadding,this.characterWidth),textX:this.getEventRectX(e[0],this.timeScale)+this.textPadding,textY:this.yPosition+this.rectHeight/2,textColor:e[0].textColor||this.getFillColor(e[0].color||this.eventsGroup.color,.75,this.dark)};if(!this.dots)return{...e[0],x:this.getEventRectX(e[0],this.timeScale),y:this.yPosition,width:this.getEventRectWidth(e[0],this.timeScale,this.rectMinWidth),height:this.rectHeight,color:e[0].color||this.eventsGroup.color,groupedEvents:e,...r};const n=this.getEventRectX(e[0],this.timeScale),i=this.getEventRectX(e[e.length-1],this.timeScale),s=n+(i-n)/2,a=e.length>1,c=s;return a?r={...r,textContent:`${e.length}`,textX:s-this.dotsSize/2-`${e.length}`.length*2,textY:this.yPosition-this.dotsSize/2}:r={...r,textX:r.textX-this.textPadding},{...e[0],x:c,y:this.yPosition,width:this.dotsSize,height:this.rectHeight,color:e[0].color||this.eventsGroup.color,groupedEvents:e,...r}})},timeScaleDensity(){const t=this.timeScale.invert(0).getTime(),e=this.timeScale.invert(1).getTime(),r=36e5,n=(e-t)/r;return isNaN(n)?1:n},groupedEvents(){const t=this.preprocessedEvents,e=[];let r=[];return t.forEach((n,i)=>{if(i===0){r.push(n);return}const s=t[i-1],a=this.getEventRectX(n,this.timeScale),c=this.getEventRectX(s,this.timeScale),o=this.getEventRectWidth(s,this.timeScale,this.rectMinWidth);c+o+this.groupingThreshold>=a?r.push(n):(r.length>0&&e.push([...r]),r=[n])}),r.length>0&&e.push(r),e}},methods:{onMouseOver(t,e,r){t.target.classList.add(me.eventRectHovered);const i=this.convertEventDateToTzString(e);this.$emit("event-mouseover",t,i,r)},onMouseLeave(t){const e=t.target;e.classList.remove(me.eventRectHovered),Array.from(e.children).forEach(r=>{r.classList.remove(me.eventRectHovered)}),this.$emit("event-mouseout")},onGroupedEventsMouseOver(t,e,r){t.target.classList.add(me.eventRectHovered);const i=e.map(this.convertEventDateToTzString);this.$emit("grouped-events-mouseover",t,i,r)},getEventText(t,e,r){if(!t.text)return"";const n=`${t.text}`;if(n.length===1)return n;const s=(this.getEventRectWidth(t,this.timeScale,this.rectMinWidth)-e)/r;return s<Math.min(n==null?void 0:n.length,4)?"":(n==null?void 0:n.length)<=s?n:`${n.slice(0,s-3)}...`},getEventRectWidth(t,e,r){if(!t)return 0;if(this.dots)return this.dotsSize;if(t.startDate&&t.endDate){const n=new Date(t.startDate),i=new Date(t.endDate),s=e(i)-e(n);return Math.max(s,r)}else{const n=1/(this.timeScaleDensity*3600);return Math.max(n,r)}},getEventRectX(t,e){const r=e(t.startDate||t.timestamp);return isNaN(r)?0:r},tzStringToDate(t){return Ke({timestamp:t,timezone:this.timezone})},dateToTzString(t){return Rt({date:t,timezone:this.timezone})},convertEventTzStringToDate(t){return this.patchTimestampField(t,this.tzStringToDate)},convertEventDateToTzString(t){return this.patchTimestampField(t,this.dateToTzString)},patchTimestampField(t,e){let r={...t};return r.timestamp&&(r.timestamp=e(r.timestamp)),r.startDate&&(r.startDate=e(r.startDate)),r.endDate&&(r.endDate=e(r.endDate)),r},getFillColor(t,e=0,r=!1){var n,i;return(r?(n=M.color(t))==null?void 0:n.brighter(1.5+e):(i=M.color(t))==null?void 0:i.darker(2+e)).toString()}}}),sh="";var u6=function(){var e=this,r=e._self._c;return r("ETimelineGroupContainer",{attrs:{"group-id":e.groupId,color:e.eventsGroup.color,label:e.eventsGroup.label,"background-color":e.eventsGroup.bgColor,"preserve-colors":e.eventsGroup.preserveColors,loading:e.eventsGroup.isLoading,x:e.x,y:e.y,dark:e.dark,width:e.width,height:e.computedHeight+e.rectYPadding,"show-label":e.showLabel,"label-width":e.labelWidth,hidden:e.eventsGroup.isHidden},on:{"group-label-clicked":function(n){return e.$emit("group-label-clicked",e.groupId)}}},[e.dots?r("line",{class:e.classNames.milestoneLine,attrs:{x1:0,x2:e.width,y1:e.yPosition+e.dotsSize/2,y2:e.yPosition+e.dotsSize/2,stroke:e.eventsGroup.color,"stroke-width":1}}):e._e(),e._l(e.computedEvents,function(n,i){return r("g",{key:i,class:e.classNames.eventRectContainer},[!n.groupedEvents||!e.dots||n.groupedEvents.length===1?[r("rect",{class:[e.classNames.eventRect,e.dots?`${e.classNames.eventRect}--dot`:""],attrs:{x:n.x-(e.dots?n.width/2:0),y:n.y,"data-timestamp":n.timestamp,width:n.width,height:n.height,fill:n.color,stroke:e.rectStroke,cursor:"pointer","stroke-width":e.rectStrokeWidth,ry:e.rectRx,rx:e.rectRy},on:{mouseover:function(s){return e.onMouseOver(s,n,e.groupId)},mouseleave:e.onMouseLeave}})]:e.dots&&n.groupedEvents.length>1?r("ETimelineRectsChartGroupedDots",{key:i,attrs:{event:n,"rect-stroke":e.rectStroke,"rect-stroke-width":e.rectStrokeWidth,"rect-rx":e.rectRx,"rect-ry":e.rectRy,"group-id":e.groupId},nativeOn:{mouseover:function(s){return e.onGroupedEventsMouseOver(s,n.groupedEvents,e.groupId)},mouseleave:function(s){return e.onMouseLeave.apply(null,arguments)}}}):e._e(),n.textContent?r("text",{class:e.classNames.eventRectText,attrs:{fill:n.textColor,x:n.textX,y:n.textY,dy:"0.35em","text-anchor":e.dots?"middle":"start","font-size":"12","font-weight":600,"stroke-linejoin":"round","paint-order":"stroke","pointer-events":"none"}},[e._v(" "+e._s(n.textContent)+" ")]):e._e()],2)})],2)},d6=[],h6=R(c6,u6,d6,!1,null,null,null,null);const p6=h6.exports,f6=O.extend({name:"ETimelineLinesChart",directives:{},components:{ETimelineGroupContainer:hn},props:{timeScale:{type:Function,required:!0},eventsGroup:{type:Object,required:!0},groupId:{type:String,required:!0},x:{type:Number,default:0},y:{type:Number,required:!0},height:{type:Number,default:18},width:{type:Number,required:!0},dark:{type:Boolean,default:!1},showLabel:{type:Boolean,default:!0},maxVisibleCount:{type:Number,required:!0},labelWidth:{type:[Number,void 0],default:void 0},labelHeight:{type:[Number,void 0],default:void 0},timezone:{type:[String,void 0],default:void 0},hoveredTimestamp:{type:String,default:""},yOffset:{type:Number,default:20}},data(){return{classNames:me,defs:et,characterWidth:7.5}},computed:{lineGradient(){return`${et.transparencyGradientLight}-${this.groupId}-${qe.LineGraph}`},lineDots(){const[t,e]=this.timeScale.domain();return this.eventsGroup.events.filter((n,i)=>{var o,l;const s=i===0?1:i,a=new Date((o=this.eventsGroup.events[s+1])==null?void 0:o.timestamp),c=new Date((l=this.eventsGroup.events[s-1])==null?void 0:l.timestamp);return a>=t&&a<=e||c>=t&&c<=e})},hoverZones(){return this.lineDots.map(t=>{const e=this.timeScale(this.tzStringToDate(t.timestamp)),r=this.yScale(t.count),n=this.timeScale.invert(e-2),i=this.timeScale.invert(e+2);return{x:e,y:r,height:this.height-22,color:t.color||this.eventsGroup.color,timestamp:t.timestamp,count:t.count,isHovering:this.tzStringToDate(this.hoveredTimestamp)>=n&&this.tzStringToDate(this.hoveredTimestamp)<i}})},yScale(){let t=M.scaleLinear().range([this.height,0]);return t=t.domain([0,this.maxVisibleCount||1]),t}},watch:{hoverZones:{handler(){this.updateLine()},deep:!0,immediate:!0}},mounted(){this.updateLine()},methods:{updateLine(){const t=M.area().x(r=>r.x).y0(this.height).y1(r=>r.y).curve(M.curveMonotoneX),e=M.line().x(r=>r.x).y(r=>r.y).curve(M.curveMonotoneX);M.select(`.${me.areaGraphPath}-${this.groupId}`).datum(this.hoverZones).attr("d",r=>t(r)),M.select(`.${me.lineGraphPath}-${this.groupId}`).datum(this.hoverZones).attr("d",r=>e(r))},getEventRectX(t,e){const r=e(this.tzStringToDate(t.startDate||t.timestamp));return isNaN(r)?0:r},tzStringToDate(t){return Ke({timestamp:t,timezone:this.timezone})}}}),ah="";var m6=function(){var e=this,r=e._self._c;return r("ETimelineGroupContainer",{attrs:{"group-id":e.groupId,color:e.eventsGroup.color,label:e.eventsGroup.label,"background-color":e.eventsGroup.bgColor,loading:e.eventsGroup.isLoading,x:e.x,y:e.y,dark:e.dark,width:e.width,height:e.labelHeight,"show-label":e.showLabel,"label-width":e.labelWidth,hidden:e.eventsGroup.isHidden,"show-background":!1},on:{"group-label-clicked":function(n){return e.$emit("group-label-clicked",e.groupId)}}},[r("g",{class:`${e.classNames.lineGraphGroup} ${e.classNames.lineGraphGroup}-${e.groupId}`,style:{transform:`translate(0, ${e.yOffset}px) `}},[r("path",{class:`${e.classNames.areaGraphPath}-${e.groupId}`,attrs:{fill:`url(#${e.lineGradient})`,stroke:"none","stroke-linecap":"round","stroke-linejoin":"round"}}),r("path",{class:`${e.classNames.lineGraphPath}-${e.groupId}`,attrs:{fill:"none",stroke:e.eventsGroup.color,"stroke-width":1.5}}),e._l(e.hoverZones,function(n,i){return r("g",{key:i},[r("circle",{ref:`${e.classNames.lineGraphDot}-${e.groupId}-${i}`,refInFor:!0,class:[e.classNames.lineGraphDot,`${e.classNames.lineGraphDot}-${e.groupId}`,`${e.classNames.lineGraphDot}-${e.groupId}-${i}`,{[`${e.classNames.lineGraphDot}--active`]:n.isHovering}],attrs:{cx:n.x,cy:n.y,r:"1.5",fill:n.color,"stroke-width":0}}),r("rect",{class:`${e.classNames.lineGraphHoverZone} ${e.classNames.lineGraphHoverZone}-${e.groupId}`,attrs:{x:n.x-2,y:0,width:4,height:e.height,fill:"transparent"},on:{mouseover:function(s){return e.$emit("event-mouseover",s,n,e.groupId)},mouseleave:function(s){return e.$emit("event-mouseout")}}})])})],2)])},g6=[],v6=R(f6,m6,g6,!1,null,null,null,null);const y6=v6.exports,_6=O.extend({name:"ETimelineBarsChart",components:{ETimelineGroupContainer:hn},props:{timeScale:{type:Function,required:!0},eventsGroup:{type:Object,required:!0},groupId:{type:String,required:!0},x:{type:Number,default:0},y:{type:Number,required:!0},height:{type:Number,default:18},width:{type:Number,required:!0},dark:{type:Boolean,default:!1},showLabel:{type:Boolean,default:!0},labelWidth:{type:[Number,void 0],default:void 0},labelHeight:{type:[Number,void 0],default:void 0},timezone:{type:[String,void 0],default:void 0},hoveredTimestamp:{type:String,default:""},yOffset:{type:Number,default:20},rectMinWidth:{type:Number,default:1},currentTimeScaleDensity:{type:Number,default:null},maxVisibleCount:{type:Number,default:1},previousCountsByTimestamp:{type:Object,default:null}},data(){return{classNames:me,defs:et,characterWidth:7.5}},computed:{bars(){const[t,e]=this.timeScale.domain();return this.eventsGroup.events.filter(r=>{const n=new Date(r.startDate);return new Date(r.endDate)>=t&&n<=e})},hoverZones(){return this.bars.map(t=>{const e=this.getEventRectWidth(t),r=this.yScale.range()[0]-this.yScale(t.count),n=this.getEventRectX(t,this.timeScale),i=this.previousCountsByTimestamp[t.startDate]||0,s=this.yScale(i+t.count);return{x:n,y:s,height:r,width:e,color:t.color||this.eventsGroup.color,startDate:t.startDate,endDate:t.endDate,count:t.count,className:t.className,isHovering:this.hoveredTimestamp>=t.startDate&&this.hoveredTimestamp<t.endDate}})},yScale(){let t=M.scaleLinear().range([this.height,0]);return t=t.domain([0,this.maxVisibleCount||1]),t}},methods:{getBarOpacity(t){let e;return this.hoveredTimestamp||(e=et.transparencyGradient),e=t.isHovering?et.transparencyGradientHover:et.transparencyGradientLight,`${e}-${this.groupId}-${qe.BarChart}`},getEventRectX(t,e){return isNaN(e(this.tzStringToDate(t.startDate||t.timestamp)))?0:e(this.tzStringToDate(t.startDate||t.timestamp))},tzStringToDate(t){return Ke({timestamp:t,timezone:this.timezone})},onEventClick(){this.$emit("event-clicked")},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)}}}}),oh="";var C6=function(){var e=this,r=e._self._c;return r("ETimelineGroupContainer",{attrs:{"group-id":e.groupId,color:e.eventsGroup.color,label:e.eventsGroup.label,"background-color":e.eventsGroup.bgColor,loading:e.eventsGroup.isLoading,x:e.x,y:e.y,dark:e.dark,width:e.width,height:e.labelHeight,"show-label":e.showLabel,"label-width":e.labelWidth,hidden:e.eventsGroup.isHidden,"show-background":!1},on:{"group-label-clicked":function(n){return e.$emit("group-label-clicked",e.groupId)}}},[r("g",{class:`${e.classNames.barChartGroup} ${e.classNames.barChartGroup}-${e.groupId}`,style:{transform:`translate(0, ${e.yOffset}px) `}},e._l(e.hoverZones,function(n,i){return r("g",{key:i,class:`${e.classNames.eventBarContainer} ${e.classNames.eventBarContainer}-${e.groupId}`,on:{mouseleave:function(s){return e.$emit("event-mouseout")},mouseover:function(s){return e.$emit("event-mouseover",s,n,e.groupId)},click:function(s){return e.onEventClick()}}},[r("rect",{class:[n.className?n.className:"",e.classNames.eventBarHoverZone],attrs:{x:n.x,y:-e.yOffset,width:n.width,height:e.yScale.range()[0]+e.yOffset,fill:n.color,"fill-opacity":0}}),r("rect",{class:[n.className?n.className:"",e.classNames.eventBar],attrs:{x:n.x,y:n.y,width:n.width,height:n.height,"stroke-width":5,cursor:"pointer",stroke:"#0000",fill:`url(#${e.getBarOpacity(n)})`}})])}),0)])},b6=[],x6=R(_6,C6,b6,!1,null,null,null,null);const w6=x6.exports,S6=O.extend({name:"ETimeline",directives:{resizeObserver:Ue},components:{ETimelineSVGDefs:Ec,EXAxisBackground:Sc,EXAxisDetailed:_c,EXAxisOverview:fc,ETimelineMilestone:q3,ETimelineMarkers:J3,ETimelineCursor:qc,ETimelineSelectedTimestampCursor:Xc,EZoomBehavior:ic,ECursorBehavior:Jc,ETimelineRectsChart:p6,ETimelineForbiddenInterval:Oc,ETimelineLinesChart:y6,ETimelineBarsChart:w6},props:{eventsGroups:{type:Object,default:null},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},insertZerosAtInterval:{type:String,default:void 0},flattenLineGraphEnds:{type:Boolean,default:!0},showLabels:{type:Boolean,default:!0},labelWidth:{type:[Number,void 0],default:void 0},barHeight:{type:Number,default:18},barYPadding:{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},panOnDateClick:{type:Boolean,default:!1},selectedDate:{type:String,default:""},markers:{type:Array,default:()=>[]},stickyMarkers:{type:Boolean,default:!0},fitMarkersOnChange:{type:Boolean,default:!1},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},showCursor:{type:Boolean,default:!0},transitionDuration:{type:Number,default:400},scalingDuration:{type:Number,default:400},highlightMilestoneOnMatchTimestamp:{type:Boolean,default:!1},axisHeight:{type:Number,default:22}},data(){return{mainContainer:null,tooltip:null,timeline:null,svgElement:null,svg:null,isHoveringEvent:!1,isHoveringGroupedEvents:!1,isAnimating:!1,hoveredEvent:null,eventTooltipStyle:{},hoveredEventType:null,hoveredCounts:[],visibleFrom:null,visibleTo:null,characterWidth:7.5,textPadding:5,timeouts:[],groupsVisibility:{},selectedMilestoneId:null,isInitialized:!1,hoveredMilestone:null,focusedDomain:null,focusedTimestamp:null,hoveredGroupedEvents:null,TimelineChartType:qe,width:0}},computed:{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)},barGroups(){return this.getGroupByType(this.filteredEventsGroups,[qe.Bars,qe.Dots])},lineGraphGroups(){return this.getGroupByType(this.filteredEventsGroups,[qe.LineGraph])},barChartGroups(){return this.getGroupByType(this.filteredEventsGroups,[qe.BarChart])},milestonesGroups(){return this.getGroupByType(this.filteredEventsGroups,[qe.Milestones])},combinedBarsHeight(){return Object.values(this.barGroups).reduce((t,e)=>t+(this.getBarGroupHeight(e)||this.barHeight+this.barYPadding),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.barHeight),0)},milestonesYOffset(){return this.milestonesFirst?0:this.combinedBarsHeight-this.combinedBottomBarsHeight+(this.hasChart?this.chartHeight:0)},chartsYOffset(){return this.combinedXAxesHeight+(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},computedClasses(){return{wrapper:{"e-border-gray-700 e-timeline--dark":this.dark,"e-border-gray-300":!this.dark},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"}},chartHeight(){if(!this.showLabels)return this.chartMinHeight;const e=(Object.keys(this.lineGraphGroups).length+Object.keys(this.barChartGroups).length)*this.barHeight;return Math.max(this.chartMinHeight,e)},chartLabelHeight(){return Math.max(this.chartMinLabelHeight,this.barHeight)},hasChart(){return Object.keys(this.lineGraphGroups).length+Object.keys(this.barChartGroups).length>0},labelRectWidth(){return Object.values(this.eventsGroups).reduce((r,n)=>{var i;return Math.max(r,(i=n.label)==null?void 0:i.length)},0)*this.characterWidth+2*this.textPadding},combinedXAxesHeight(){return this.axisHeight*1.75},timelineHeight(){return(this.hasChart?this.chartHeight:0)+this.combinedXAxesHeight+this.combinedBarsHeight+this.combinedMilestonesHeight},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)}}),{})},flattenedLinesCounts(){return Object.values(this.lineGraphGroups).map(t=>t.events).flat()},flattenedBarsCounts(){return Object.values(this.barChartGroups).map(t=>t.events).flat()},hiddenGroupsLabels(){return Object.entries(this.groupsVisibility).reduce((t,[e,r])=>r?t:[...t,e],[])},minHoverZone(){var t;return this.showLabels?(t=this.labelWidth)!=null?t: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=new Date(this.visibleFrom),e=new Date(this.visibleTo),r=c=>{const o=new Date(c.startDate||c.timestamp),l=new Date(c.endDate||c.timestamp);return o<=e&&l>=t},n=this.flattenedBarsCounts.filter(r),i=this.flattenedLinesCounts.filter(r).map(c=>c.count),s={};n.forEach(c=>{const o=c.startDate||c.timestamp;s[o]=(s[o]||0)+c.count});const a=Object.values(s).concat(i);return M.max(a)||1},defaultMaxDomain(){const t=new Date(this.oldestEvent.timestamp||this.oldestEvent.startDate).getTime(),e=new Date(this.latestEvent.timestamp||this.latestEvent.endDate).getTime(),n=(e-t)*.75,i=new Date(t-n),s=new Date(e+n);return[i.toISOString(),s.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),{})},isHoveringMilestone(){return!!this.hoveredMilestone},milestonesGroupsPlaceholder(){return Object.entries(this.milestonesGroups).reduce((t,[e,r])=>({...t,[e]:{...r,events:[],isLoading:!1}}),{})},countsByTimestamp(){const t={...this.lineGraphGroups,...this.barChartGroups};return Object.entries(t).reduce((e,[r,n])=>(n.events.forEach(i=>{const s=i.timestamp||i.startDate;e[s]={...e[s]||{},[r]:i.count}}),e),{})}},watch:{markers(t,e){t===e||!this.fitMarkersOnChange||e.length===0||this.zoomToFitMarkers()},startDate(){this.zoomToStartAndEndDates()},endDate(){this.zoomToStartAndEndDates()},selectedDate(t){t&&!this.locked&&(this.focusedTimestamp=this.tzStringToDate(t).toISOString())},focusedInterval(t){t&&(t!=null&&t.startDate)&&(t!=null&&t.endDate)&&(this.focusedDomain=[t.startDate,t.endDate])}},mounted(){this.validateProps(),this.initTimeline()},beforeDestroy(){this.clearTimeline()},methods:{handleVisibleIntervalChange({fromDate:t,toDate:e,trigger:r,transform:n}){this.visibleFrom=t,this.visibleTo=e,this.$emit("visible-interval-change",{fromDate:t,toDate:e,trigger:r,transform:n})},getGroupByType(t,e){return Object.entries(t).reduce((r,[n,i])=>!i.chartType&&e.includes(qe.Bars)||e.includes(i.chartType)?{...r,[n]:i}:r,{})},getPreviousCountsByTimestamp(t){if(t===0)return{};const e=Object.fromEntries(Object.entries(this.barChartGroups).slice(0,t)),r=[...Object.values(e)].map(i=>i.events).flat(),n={};return r.forEach(i=>{const s=i.startDate||i.timestamp;n[s]=(n[s]||0)+i.count}),n},getChartsYPosition(t){const e=Object.keys(this.lineGraphGroups).concat(Object.keys(this.barChartGroups));return this.timelineHeight-this.chartLabelHeight*(e.indexOf(t)+1)-(this.milestonesFirst?0:this.combinedMilestonesHeight)-this.combinedBarsHeight},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])},initTimeline(){if(this.initRefs(),this.zoomToStartAndEndDates(),!this.timeline||this.timeline.offsetWidth===0||!this.domain){this.timeouts.push(setTimeout(this.initTimeline,500));return}this.selectedDate&&this.panOnDateClick&&(this.focusedTimestamp=this.tzStringToDate(this.selectedDate)),this.isInitialized=!0},initRefs(){this.tooltip=this.$refs.tooltip,this.mainContainer=this.$refs.mainContainer,this.timeline=this.$refs.timelineContainer,this.svgElement=this.$refs.timelineSvg,this.svg=M.select(this.svgElement)},zoomToFitMarkers(){const t=this.markers.map(s=>new Date(s.timestamp).getTime());if(t.length<2)return;const e=Math.min(...t),r=Math.max(...t),n=new Date(e),i=new Date(r);this.focusedDomain=[n,i]},clearTimeline(){this.svg&&this.svg.remove()},handleMouseLeave(){this.$emit("hovered-timestamp",void 0)},handleMouseMove(t,e){var o;this.$emit("hovered-timestamp",e);const n=this.isHoveringEvent&&this.showEventTooltip?this.$refs.eventTooltip||this.$refs.tooltip:this.$refs.tooltip;if(!n)return;const s=(this.timeline||this.$refs.timelineContainer).getBoundingClientRect(),a=((o=n==null?void 0:n.getBoundingClientRect())==null?void 0:o.width)||180;let c=t-a/2;c<0&&(c=t),c+a>s.width&&(c=t-a),this.eventTooltipStyle={left:`${c}px`,zIndex:100,[this.tooltipPosition==="top"?"bottom":"top"]:`${s.height}px`}},isForbiddenInterval(t){const e=new Date(t).getTime(),r=this.forbiddenIntervals.some(s=>{const a=isNaN(new Date(s.startDate).getTime())?-1/0:new Date(s.startDate).getTime(),c=isNaN(new Date(s.endDate).getTime())?1/0:new Date(s.endDate).getTime();return e>=a&&e<=c});let n=!1;this.startDate&&(n=e<new Date(this.startDate).getTime());let i=!1;return this.endDate&&(i=e>new Date(this.endDate).getTime()),r||n||i},handleClick(t){if(this.isForbiddenInterval(t)){this.$emit("forbidden-timestamp-clicked",t);return}if(this.isHoveringGroupedEvents){if(this.isHoveringGroupedEvents=!1,this.$emit("grouped-events-clicked",{events:this.hoveredGroupedEvents,type:this.hoveredEventType}),this.stopClickPropagation)return}else if(this.isHoveringEvent&&(this.isHoveringEvent=!1,this.$emit("event-clicked",{event:this.hoveredEvent,type:this.hoveredEventType}),this.stopClickPropagation))return;this.$emit("date-clicked",t),this.panOnDateClick&&(this.focusedTimestamp=t)},handleMarkerClick(t){this.$emit("marker-clicked",t),this.panOnDateClick&&(this.focusedTimestamp=t.timestamp)},handleChartMouseOver(t,e,r){this.isAnimating||!this.countsByTimestamp[`${e.timestamp||e.startDate}`]||(this.hoveredCounts=Object.entries(this.countsByTimestamp[`${e.timestamp||e.startDate}`]).reduce((n,i)=>{var c;const[s,a]=i;return(c=this.hiddenGroupsLabels)!=null&&c.includes(s)?n:[...n,{type:s,count:a,label:this.getExternalLabelText(s)}]},[]),this.hoveredEvent=e,this.isHoveringEvent=!0,this.$emit("event-mouseover",{eventData:e,eventType:r,hoveredCounts:this.hoveredCounts}))},handleChartMouseOut(){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.isHoveringGroupedEvents=!1,this.$emit("event-mouseover",{eventData:e,eventType:r}))},handleBarGroupedEventsMouseOver(t,e,r){t.offsetX<=this.minHoverZone||(this.hoveredGroupedEvents=e,this.hoveredEventType=r,this.isHoveringEvent=!1,this.isHoveringGroupedEvents=!0,this.$emit("grouped-events-mouseover",{events:e,eventType:r}))},handleBarMouseOut(){this.isHoveringEvent=!1,this.isHoveringGroupedEvents=!1,this.hoveredEvent=null,this.hoveredGroupedEvents=null,this.$emit("event-mouseout")},handleTimeScaleChange(t){this.$emit("time-scale-change",t)},zoomToStartAndEndDates(){var r,n;const t=this.startDate||((r=this.focusedInterval)==null?void 0:r.startDate)||this.defaultFocusedDomain[0],e=this.endDate||((n=this.focusedInterval)==null?void 0:n.endDate)||this.defaultFocusedDomain[1];this.focusedDomain=[this.tzStringToDate(t),this.tzStringToDate(e)]},onAnimationStart(){this.isAnimating=!0,this.$emit("animation-start")},onAnimationEnd(){this.isAnimating=!1,this.$emit("animation-end")},getMilestoneClass(t){return{[me.milestoneSelected]:[t.id,t.timestamp].includes(this.selectedMilestoneId)||this.highlightMilestoneOnMatchTimestamp&&Se(this.selectedTimestamp).isSame(t.timestamp)}},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.barHeight}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,i]of Object.entries(this.barGroups)){if(n===t)break;!e&&i.bottom||(r+=this.getBarGroupHeight(i))}return r},getBarGroupHeight(t){return t.height?Math.max(t.height+this.barYPadding,1):this.barHeight+this.barYPadding},getTextFillColor(t,e=0){var r,n;return(this.dark?(r=M.color(t))==null?void 0:r.brighter(1.5+e):(n=M.color(t))==null?void 0:n.darker(2+e)).toString()},getLabelBackgroundColor(t){let e=M.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)}},getExternalLabelText(t){var e;return(e=this.eventsGroups[t])==null?void 0:e.label},getExternalLabelWrapperStyles(t){const e=this.eventsGroups[t].color;return{borderColor:this.getTextFillColor(e)}},tzStringToDate(t){return Ke({timestamp: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=s=>s.clone().add(1,e),n=s=>s.clone().subtract(1,e);let i=[];for(let s=0;s<t.length;s++){const a=t[s];if(i.push(a),s===t.length-1)break;const c=t[s+1],o=Se(a.timestamp),l=Se(c.timestamp);if(l.diff(o,e)>1){const d=r(o).toISOString(),h=n(l).toISOString();i.push({timestamp:d,count:0}),d!==h&&i.push({timestamp:h,count:0})}}if(this.flattenLineGraphEnds){const s=Se(t[0].timestamp),a=Se(t[t.length-1].timestamp),c=n(s).toISOString(),o=r(a).toISOString();i=[{timestamp:c,count:0},...i,{timestamp:o,count:0}]}return i},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},onResizeContainer({contentRect:t}){this.width===t.width||t.width===0||(this.width=t.width,this.$emit("timeline-resize",{contentRect:t}))}}}),lh="";var T6=function(){var e=this,r=e._self._c;return r("div",{directives:[{name:"resize-observer",rawName:"v-resize-observer",value:e.onResizeContainer,expression:"onResizeContainer"}],ref:"mainContainer",staticClass:"e-timeline"},[r("EZoomBehavior",{attrs:{domain:e.domain,"focused-domain":e.focusedDomain,"translation-duration":e.transitionDuration,"scaling-duration":e.scalingDuration,"focused-timestamp":e.focusedTimestamp,timezone:e.timezone,width:e.width,disabled:e.locked},on:{"visible-interval-change":e.handleVisibleIntervalChange,"time-scale-change":e.handleTimeScaleChange,"animation-start":e.onAnimationStart,"animation-end":e.onAnimationEnd},scopedSlots:e._u([{key:"default",fn:function({timeScale:n}){return[n?r("div",{staticClass:"e-relative e-timeline e-border e-rounded",class:e.computedClasses.wrapper},[r("ECursorBehavior",{attrs:{"time-scale":n,timezone:e.timezone,"min-hover-zone":e.minHoverZone,"is-hovering-milestone":e.isHoveringMilestone},on:{"mouse-move":e.handleMouseMove,"mouse-leave":e.handleMouseLeave,"timestamp-clicked":e.handleClick},scopedSlots:e._u([{key:"default",fn:function({hoveredTimestamp:i,isHoveringTimeline:s}){var a;return[r("ETimelineMarkers",{attrs:{markers:e.sortedMarkers,"sticky-markers":e.stickyMarkers,"time-scale":n,"time-zone":e.timezone,height:e.timelineHeight,"svg-left":e.svgLeft},on:{"marker-clicked":e.handleMarkerClick,"marker-drag-end":function(c){return e.$emit("marker-drag-end",c)},"marker-drag-start":function(c){return e.$emit("marker-drag-start",c)},"marker-drag-drag":function(c){return e.$emit("marker-drag-drag",c)}},scopedSlots:e._u([e._l(e.markersScopedSlots,function(c,o){return{key:o,fn:function(l){return[e._t(o,null,null,l)]}}})],null,!0)}),r("div",{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.width,height:e.timelineHeight}},[r("ETimelineSVGDefs",{attrs:{"events-groups":e.eventsGroups,width:e.width,height:e.chartHeight,"forbidden-interval-color":e.forbiddenIntervalColor}}),r("g",{staticClass:"e-timeline-axes"},[n?r("EXAxisOverview",{attrs:{"time-scale":n,height:e.timelineHeight,dark:e.dark}}):e._e(),n?r("EXAxisDetailed",{attrs:{"time-scale":n,height:e.timelineHeight-e.axisHeight,y:e.axisHeight,dark:e.dark}}):e._e(),n?r("EXAxisBackground",{attrs:{"time-scale":n,height:e.timelineHeight-e.combinedXAxesHeight,y:e.combinedXAxesHeight,dark:e.dark}}):e._e()],1),e.selectedTimestamp?r("ETimelineSelectedTimestampCursor",{attrs:{"time-scale":n,"selected-timestamp":e.selectedTimestamp,timezone:e.timezone,height:e.timelineHeight}}):e._e(),i&&s&&!e.isHoveringMilestone&&e.showCursor?r("ETimelineCursor",{attrs:{"time-scale":n,"selected-timestamp":i,timezone:e.timezone,height:e.timelineHeight}}):e._e(),e._l(e.forbiddenIntervals,function(c,o){return r("ETimelineForbiddenInterval",{key:o,attrs:{"time-scale":n,interval:c,index:o,height:e.timelineHeight,timezone:e.timezone}})}),e._l(e.barGroups,function(c,o){return r("ETimelineRectsChart",{key:o,attrs:{"time-scale":n,"events-group":c,"group-id":o,y:e.getBarGroupYPosition(o,c.bottom),height:e.barHeight,width:e.width,"rect-y-padding":e.barYPadding,dark:e.dark,"show-label":e.showLabels,"label-width":e.labelWidth,timezone:e.timezone,dots:c.chartType===e.TimelineChartType.Dots,"dots-size":c.dotsSize,"bar-border-radius":c.barBorderRadius,"group-overlapping-dots":c.groupOverlappingDots},on:{"event-mouseover":e.handleBarMouseOver,"grouped-events-mouseover":e.handleBarGroupedEventsMouseOver,"event-mouseout":e.handleBarMouseOut,"group-label-clicked":e.toggleGroupVisibility}})}),e._l(e.milestonesGroupsPlaceholder,function(c,o){return r("ETimelineRectsChart",{key:o,attrs:{width:e.width,y:e.getMilestoneGroupYPosition(o),height:c.height,"group-id":o,"events-group":c,"time-scale":n,dark:e.dark,dots:!0,"show-label":!1}})}),e._l(e.insertZerosAtInterval?e.filledGapsLineGraphGroups:e.lineGraphGroups,function(c,o){return r("ETimelineLinesChart",{key:o,attrs:{"group-id":o,"time-scale":n,"events-group":c,y:e.getChartsYPosition(o),height:e.chartHeight,width:e.width,dark:e.dark,timezone:e.timezone,"show-label":e.showLabels,"label-height":e.chartLabelHeight,"label-width":e.labelWidth,"max-visible-count":e.maxVisibleCount,"y-offset":e.chartsYOffset,"hovered-timestamp":i},on:{"event-mouseover":e.handleChartMouseOver,"event-mouseout":e.handleChartMouseOut,"group-label-clicked":e.toggleGroupVisibility}})}),e._l(e.barChartGroups,function(c,o,l){return r("ETimelineBarsChart",{key:o,attrs:{"group-id":o,width:e.width,y:e.getChartsYPosition(o),height:e.chartHeight,"events-group":c,"time-scale":n,dark:e.dark,"y-offset":e.chartsYOffset,"label-height":e.chartLabelHeight,"label-width":e.labelWidth,"max-visible-count":e.maxVisibleCount,"show-label":e.showLabels,"hovered-timestamp":i,"previous-counts-by-timestamp":e.getPreviousCountsByTimestamp(l)},on:{"event-mouseover":e.handleChartMouseOver,"event-mouseout":e.handleChartMouseOut,"group-label-clicked":e.toggleGroupVisibility}})})],2)]),e._l(e.milestonesGroups,function(c,o){return r("div",{key:`${o}`,staticClass:"e-timeline-milestones",attrs:{"data-test-id":"timeline-milestones"}},[r("div",{class:`e-tl-milestones e-tl-milestones-${o}`},e._l(e.getSortedEvents(c.events),function(l,d){return r("ETimelineMilestone",{key:`${l.milestoneType}-${d}`,class:e.getMilestoneClass(l),attrs:{"time-scale":n,y:e.getMilestoneGroupYPosition(o),height:c.height||e.barHeight,"data-timestamp":l.timestamp,milestone:l,dot:c.dots,size:l.size||e.milestoneBulletSize,"transition-duration":c.milestonesTransitionDuration,"line-height":c.milestonesLineHeight,"dot-size":c.milestonesDotSize,"data-test-id":`milestone-${l.milestoneType}-${d}`,"background-color":e.getMilestoneColors(l.color,c.color).background,"border-color":e.getMilestoneColors(l.color,c.color).border,timezone:e.timezone},on:{"hovered-milestone":e.onHoverMilestone,"milestone-click":function(h){return e.onMilestoneClick(l,o)}},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:d,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",{staticClass:"external-labels-container e-flex"},e._l(e.hiddenGroupsLabels,function(c){return r("div",{key:c,staticClass:"external-label",class:e.computedClasses.background,style:e.getExternalLabelWrapperStyles(c),on:{click:function(o){return o.stopPropagation(),e.toggleGroupVisibility(c)}}},[r("div",{staticClass:"external-label__content",style:e.getExternalLabelStyles(c)},[e._v(" "+e._s(e.getExternalLabelText(c))+" ")])])}),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:s&&!e.isHoveringEvent&&!e.isHoveringMilestone,expression:`
|
|
233
233
|
isHoveringTimeline &&
|
|
234
234
|
!isHoveringEvent &&
|
|
235
235
|
!isHoveringMilestone
|