buzzcasting-utils 1.12.1 → 1.12.3

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.
@@ -1,3 +1,5 @@
1
+ export declare const abbr: (num: any, digits?: number, abbreviate?: boolean, locale?: string) => string;
2
+
1
3
  export declare function anonymize(name: string): string;
2
4
 
3
5
  export declare enum API {
@@ -14,6 +16,7 @@ export declare enum API {
14
16
  SERIES = "series",
15
17
  SLIDE = "slide",
16
18
  SLIDES = "slides",
19
+ TEMPLATES = "templates",
17
20
  TOPICS = "topics",
18
21
  WIDGET = "widget",
19
22
  WIDGETS = "widgets"
@@ -137,6 +140,8 @@ export declare interface Data {
137
140
  widget: string;
138
141
  }
139
142
 
143
+ export declare const debounce: (func: Function, timeout?: number) => (...args: any[]) => void;
144
+
140
145
  export declare function deepMerge(objs: any): void;
141
146
 
142
147
  export declare const dir: (message: IMessage) => "rtl" | "ltr";
@@ -374,6 +379,12 @@ export declare interface ICardAttributes {
374
379
  speed?: string;
375
380
  }
376
381
 
382
+ declare interface ICardImage {
383
+ width: string;
384
+ height: string;
385
+ show: boolean;
386
+ }
387
+
377
388
  export declare interface ICardOptions {
378
389
  animation?: IAnimation;
379
390
  brand?: IBrand;
@@ -387,6 +398,11 @@ export declare interface ICardOptions {
387
398
  show?: IShowCard;
388
399
  }
389
400
 
401
+ declare interface ICardsGrid {
402
+ rows: number;
403
+ cols: number;
404
+ }
405
+
390
406
  export declare interface ICategory {
391
407
  type: string;
392
408
  data: string[];
@@ -396,6 +412,7 @@ export declare interface ICategory {
396
412
  * Cloud
397
413
  */
398
414
  export declare interface ICloud {
415
+ items?: IItemData;
399
416
  labels: ILabel[];
400
417
  current: any[];
401
418
  previous: any[];
@@ -459,7 +476,9 @@ export declare interface ICloudOptions {
459
476
  debug?: boolean;
460
477
  dimensions?: IDimensions;
461
478
  globe?: IGlobe;
479
+ grid: ICardsGrid;
462
480
  highlight?: IHighlight;
481
+ image: ICardImage;
463
482
  kpi?: Kpi;
464
483
  legend?: ILegend;
465
484
  pie?: IPie;
@@ -505,6 +524,8 @@ export declare interface ICssCard {
505
524
  brand?: string;
506
525
  canvas?: string;
507
526
  card?: string;
527
+ cardbackdrop: string;
528
+ cardimage: string;
508
529
  container?: string;
509
530
  dark?: boolean;
510
531
  date?: string;
@@ -538,6 +559,7 @@ export declare interface ICssCloud {
538
559
  brand: string;
539
560
  count: string;
540
561
  change: string;
562
+ date: string;
541
563
  highlight: string;
542
564
  highlighted: string;
543
565
  key: string;
@@ -754,6 +776,31 @@ declare interface IGlobeSphere {
754
776
  fill: string;
755
777
  }
756
778
 
779
+ declare interface IGraph {
780
+ graph: {
781
+ type: string;
782
+ smooth: boolean;
783
+ area: {
784
+ fill: string;
785
+ colors: string[];
786
+ opacity: number;
787
+ };
788
+ line: {
789
+ color: string;
790
+ width: number;
791
+ };
792
+ mark: {
793
+ show: boolean;
794
+ symbol: string;
795
+ };
796
+ split: {
797
+ line: string;
798
+ x: boolean;
799
+ y: boolean;
800
+ };
801
+ };
802
+ }
803
+
757
804
  declare interface IGridLayout {
758
805
  rows?: number;
759
806
  cols?: number;
@@ -781,6 +828,10 @@ export declare interface IIndicators {
781
828
  value: number;
782
829
  }
783
830
 
831
+ declare interface IItemData {
832
+ data: Item[];
833
+ }
834
+
784
835
  export declare interface IJsonWidget {
785
836
  node: string;
786
837
  child: any[] | JsonChild[];
@@ -943,6 +994,7 @@ export declare interface ILegend {
943
994
  width: string;
944
995
  position: string;
945
996
  show: IShowLegend;
997
+ title?: string;
946
998
  gap: ILegendGap;
947
999
  }
948
1000
 
@@ -1035,7 +1087,7 @@ export declare const intToString: (num: any, digits?: number, abbreviate?: boole
1035
1087
  export declare interface IPie {
1036
1088
  radius: IPieRadius;
1037
1089
  animation: IPieAnimation;
1038
- boder: IPieBorder;
1090
+ border: IPieBorder;
1039
1091
  }
1040
1092
 
1041
1093
  /**
@@ -1160,6 +1212,7 @@ export declare interface ISender {
1160
1212
  export declare interface ISeries {
1161
1213
  topic: string;
1162
1214
  title: string;
1215
+ items?: IItemData;
1163
1216
  series: ISeriesData[];
1164
1217
  category: ICategory;
1165
1218
  metrics?: IMetrics;
@@ -1180,12 +1233,15 @@ export declare interface ISeriesData {
1180
1233
 
1181
1234
  export declare interface ISeriesOptions {
1182
1235
  colors?: string;
1236
+ config?: IConfig;
1183
1237
  css?: ICssSeries;
1184
1238
  time?: ITime;
1185
1239
  date?: IDate;
1186
1240
  dimensions?: IDimensions;
1241
+ graph: IGraph;
1242
+ legend: ILegend;
1243
+ pie?: IPie;
1187
1244
  show?: IShowSeries;
1188
- config?: IConfig;
1189
1245
  }
1190
1246
 
1191
1247
  export declare interface IShowCard {
@@ -1196,9 +1252,11 @@ export declare interface IShowCard {
1196
1252
  date?: boolean;
1197
1253
  dynamics?: boolean;
1198
1254
  handle?: boolean;
1255
+ heading?: boolean;
1199
1256
  kpi?: boolean;
1200
1257
  name?: boolean;
1201
1258
  play?: boolean;
1259
+ role: boolean;
1202
1260
  sender?: boolean;
1203
1261
  star?: boolean;
1204
1262
  visible?: boolean;
@@ -1211,9 +1269,14 @@ export declare interface IShowCloud {
1211
1269
  date: boolean;
1212
1270
  gradient: boolean;
1213
1271
  hashtags: boolean;
1214
- labels: true;
1215
- legend: true;
1216
- title: true;
1272
+ labels: boolean;
1273
+ legend: boolean;
1274
+ other: boolean;
1275
+ parenthesized: boolean;
1276
+ percentage: {
1277
+ count: boolean;
1278
+ };
1279
+ title: boolean;
1217
1280
  trend: boolean;
1218
1281
  debug?: boolean;
1219
1282
  }
@@ -1223,13 +1286,17 @@ export declare interface IShowContents {
1223
1286
  }
1224
1287
 
1225
1288
  export declare interface IShowLegend {
1289
+ parenthesized: boolean;
1226
1290
  percentage: boolean;
1227
1291
  debug?: boolean;
1228
1292
  }
1229
1293
 
1230
1294
  export declare interface IShowSeries {
1231
1295
  brand: boolean;
1232
- percentage: boolean;
1296
+ percentage: {
1297
+ change: boolean;
1298
+ count: boolean;
1299
+ };
1233
1300
  date: boolean;
1234
1301
  kpi: boolean;
1235
1302
  debug?: boolean;
@@ -1285,6 +1352,11 @@ export declare interface IStorageOptions {
1285
1352
  workers?: boolean;
1286
1353
  }
1287
1354
 
1355
+ declare interface Item {
1356
+ label: string;
1357
+ count?: number;
1358
+ }
1359
+
1288
1360
  declare interface ITime {
1289
1361
  format: string;
1290
1362
  }
@@ -1517,6 +1589,8 @@ export declare function showModal(e: MouseEvent, widget: any, message: IMessage,
1517
1589
 
1518
1590
  export declare function shuffleMessages(messages: IMessage[]): IMessage[];
1519
1591
 
1592
+ export declare const stall: (func: Function, timeout?: number) => (...args: any[]) => void;
1593
+
1520
1594
  export declare enum STORAGE {
1521
1595
  KEYVAL = "keyval",
1522
1596
  LOCAL = "local",
@@ -1,678 +1,6 @@
1
- var D = /* @__PURE__ */ ((e) => (e.CARDS = "cards", e.CLOUD = "cloud", e.DASHBOARD = "dashboard", e.DASHBOARDS = "dashboards", e.IMAGES = "images", e.MESSAGES = "messages", e.PREFERENCE = "preference", e.PREFERENCES = "preferences", e.PRESENTATION = "presentation", e.PRESENTATIONS = "presentations", e.SERIES = "series", e.SLIDE = "slide", e.SLIDES = "slides", e.TOPICS = "topics", e.WIDGET = "widget", e.WIDGETS = "widgets", e))(D || {}), g = /* @__PURE__ */ ((e) => (e.API = "color:white;background-color:grey;padding:0 4px 0 4px;border-radius:5px;", e.APP = "color:white;background-color:navy;padding:0 4px 0 4px;border-radius:5px;", e.BROADCAST = "color:navy;background-color:orange;padding:0 4px 0 4px;border-radius:5px;", e.CLOUD = "color:purple;background-color:mistyrose;padding:0 4px 0 4px;border-radius:5px;", e.DATA = "color:grey;background-color:lightskyblue;padding:0 4px 0 4px;border-radius:5px;", e.ERROR = "color:white;background-color:red;padding:0 4px 0 4px;border-radius:5px;", e.GET_DATA = "color:black;background-color:lime;padding:0 4px 0 4px;border-radius:5px;", e.HIDE = "color:white;background-color:red;padding:0 4px 0 4px;border-radius:5px;", e.KO = "color:white;background-color:red;padding:0 4px 0 4px;border-radius:5px;", e.MESSAGES = "color:white;background-color:darkslateblue;padding:0 4px 0 4px;border-radius:5px;", e.NO_UPDATES = "color:grey;border:1px solid grey;padding:0 4px 0 4px;border-radius:5px;", e.NONE = "color:transparent;background-color:transparent;", e.OK = "color:black;background-color:lime;padding:0 4px 0 4px;border-radius:5px;", e.PRESENTATION = "color:white;background-color:darkred;padding:0 4px 0 4px;border-radius:5px;", e.SERIES = "color:purple;background-color:thistle;padding:0 4px 0 4px;border-radius:5px;", e.SLIDE = "color:black;background-color:yellow;padding:0 4px 0 4px;border-radius:5px;", e.STORAGE = "color:black;background-color:cyan;padding:0 4px 0 4px;border-radius:5px;", e.SUBSCRIBE = "color:white;background-color:dodgerblue;padding:0 4px 0 4px;border-radius:5px;", e.WIDGET = "color:black;background-color:lemonchiffon;padding:0 4px 0 4px;border-radius:5px;", e.WS = "color:white;background-color:green;padding:0 4px 0 4px;border-radius:5px;", e))(g || {}), L = /* @__PURE__ */ ((e) => (e.ADD_SLIDE = "addSlide", e.APP_READY = "appReady", e.API_UPDATE = "apiUpdate", e.BACKGROUND_UPDATE = "backgroundUpdate", e.BUILDER_PREVIEW = "builderPreview", e.COMPONENT_UPDATE = "componentUpdate", e.APPROVE_MESSAGE = "approveMessage", e.CHANNEL = "channel", e.CLEAN_MESSAGES = "cleanMessages", e.CLOSE_BUILDER_DIALOG = "closeBuilderDialog", e.CLOSE_BUILDER_MODAL = "closeBuilderModal", e.CLOSE_MODAL = "closeModal", e.COLOR_UPDATE = "colorUpdate", e.COMPONENT_INDEX = "componentIndex", e.CSS_SET = "setCss", e.CSS_STORE = "storeCss", e.DASHBOARD_LOAD = "loadDashboard", e.DASHBOARD_STORE = "storeDashboard", e.DASHBOARD_UPDATED = "dashboardUpdated", e.ERROR = "error", e.HIDE_MESSAGE = "hideMessage", e.HIDE_LABELS = "hideLabels", e.IMAGE_GET = "getImage", e.IMAGE_SET = "setImage", e.IMAGE_STORED = "imageStored", e.LAUPPUT_UPDATE = "layoutUpdate", e.PREV_SLIDE = "prevSlide", e.RELOAD_PRESENTATION = "reloadPresentation", e.STAR_MESSAGE = "starMessage", e.GOTO_SLIDE = "gotoSlide", e.NEXT_SLIDE = "nextSlide", e.PREFERENCE_LOAD = "loadPreference", e.PREFERENCE_STORE = "storePreference", e.PREFERENCE_UPDATED = "preferenceUpdated", e.PAUSE_PRESENTATION = "pausePresentation", e.PRESENTATION_READY = "presentationReady", e.PRESENTATION_LOAD = "loadPresentation", e.PRESENTATION_STORE = "storePresentation", e.PRESENTATION_UPDATED = "presentationUpdated", e.ROW_COL_UPDATE = "rowcolupdate", e.SCREENSHOT_TAKE = "takeScreenshot", e.SCREENSHOT_STORE = "storeScreenshot", e.SECTION_UPDATE = "sectionUpdate", e.SHOW_BUILDER_DIALOG = "showBuilderDialog", e.SHOW_BUILDER_MODAL = "showBuilderModal", e.SHOW_MODAL = "showModal", e.SLIDE_DID_LOAD = "slideDidLoad", e.SLIDE_GET = "getSlide", e.SLIDE_GOTO = "slideGoto", e.SLIDE_LOAD = "loadSlide", e.SLIDE_READY = "slideReady", e.SLIDE_SAVED = "slideSaved", e.SLIDE_SET = "setSlide", e.SLIDE_STORE = "storeSlide", e.SLIDE_STORED = "slideStored", e.SLIDE_TRANSITIONER = "slideTransitioner", e.SLIDE_UPDATED = "slideUpdated", e.START_TRANSITIONER = "startTransitioner", e.STORAGE_INIT = "storageInit", e.STREAM = "stream", e.SUBSCRIBE = "subscribe", e.SUSPEND_ACCOUNT = "suspendAccount", e.SWITCH_PRESENTATION = "switchPresentation", e.REMOVE_CLOUD = "removeCloud", e.UPDATE = "update", e.UPLOAD_COMPLETED = "uploadCompleted", e.VERSION = "version", e.WIDGETS_CLEAR = "widgetsClear", e.WIDGET_DID_LOAD = "widgetDidLoad", e.WIDGET_DID_UPDATE = "widgetDidUpdate", e.WIDGET_LOAD = "widgetLoad", e.WIDGET_STORE = "widgetStore", e.WIDGET_UPDATE = "widgetUpdate", e.WS_API_REQUEST = "wsApiRequest", e.WS_API_RESPONSE = "wsApiResponse", e.WS_API_UPDATE = "wsApiRUpdate", e))(L || {}), A = /* @__PURE__ */ ((e) => (e.APPROVED = "approved", e.BEFORE = "before", e.DELAYED = "delayed", e.NONE = "none", e.REALTIME = "realtime", e))(A || {}), I = /* @__PURE__ */ ((e) => (e.KEYVAL = "keyval", e.LOCAL = "local", e.SESSION = "session", e.DEXIE = "dexie", e.WINDOW = "window", e))(I || {});
2
- function q(e) {
3
- const t = e.toUpperCase().split(/[\s_-]+/);
4
- return t.length > 0 ? (t.forEach((r, n) => {
5
- t[n] = `${r.charAt(0)}.`;
6
- }), t.join(" ")) : "";
7
- }
8
- function N(e) {
9
- let t = "", r = "", n = {
10
- backgroundImage: ""
11
- };
12
- return typeof e.media < "u" && e.media.forEach((a) => {
13
- (a.type === "photo" || a.type === "image") && (n = {
14
- backgroundImage: `url(${a.url})`
15
- }, r = a.url), a.type === "video" && (t = a.url);
16
- }), {
17
- image: r,
18
- background: n || null,
19
- video: t
20
- };
21
- }
22
- function V(e) {
23
- const t = {};
24
- for (let r = 0; r < e.length; r++) {
25
- const n = e.item(r);
26
- n?.name && (t[n.name] = n.value);
27
- }
28
- return t;
29
- }
30
- function ee(e) {
31
- const t = {};
32
- for (let r = 0; r < e.length; r++) {
33
- const n = e[r];
34
- n.name !== "class" && !n.name.includes("data") && (t[n.name] = n.value);
35
- }
36
- return t;
37
- }
38
- function te(e) {
39
- const t = {};
40
- for (let r = 0; r < e.length; r++) {
41
- const n = e[r];
42
- n.name !== "class" && (t[n.name] = y(n.value));
43
- }
44
- return t;
45
- }
46
- const re = (e) => new Promise((t) => {
47
- if (document.querySelector(e))
48
- return t(document.querySelector(e));
49
- const r = new MutationObserver((n) => {
50
- document.querySelector(e) && (r.disconnect(), t(document.querySelector(e)));
51
- });
52
- r.observe(document.body, { childList: !0, subtree: !0 });
53
- });
54
- function ne(e, t) {
55
- switch (e) {
56
- case "ax":
57
- return '<div class="axa-switch-small bg-center bg-cover w-6 h-6"></div>';
58
- case "bl":
59
- return `<li class="text-blue fa-solid fa-rss fa-${t}"/>`;
60
- case "co":
61
- return `<li class="fa-solid fa-comment fa-${t}"/>`;
62
- case "da":
63
- return `<li class="fa-brands fa-dailymotion fa-${t}"/>`;
64
- case "fb":
65
- return `<li class="text-blue-900 fa-brands fa-facebook fa-${t}"/>`;
66
- case "fo":
67
- return `<li class="fa-solid fa-messages fa-${t}"/>`;
68
- case "ig":
69
- return `<li class="fa-brands fa-instagram fa-${t}"/>`;
70
- case "lb":
71
- return `<li class="fa-solid fa-comment fa-${t}"/>`;
72
- case "li":
73
- return `<li class="fa-brands fa-linkedin fa-${t}"/>`;
74
- case "me":
75
- return `<li class="fa-solid fa-rss fa-${t}"/>`;
76
- case "pi":
77
- return `<li class="fa-brands fa-pinterest fa-${t}"/>`;
78
- case "qq":
79
- return `<li class="fa-brands fa-weibo fa-${t}"/>`;
80
- case "rd":
81
- return `<li class="fa-brands fa-reddit fa-${t}"/>`;
82
- case "re":
83
- return `<li class="fa-solid fa-star-sharp-half-stroke fa-${t}"/>`;
84
- case "ti":
85
- return `<li class="fa-brands fa-tiktok fa-${t}"/>`;
86
- case "tw":
87
- return `<li class="fa-brands fa-x-twitter fa-${t}"/>`;
88
- case "vk":
89
- return `<li class="fa-brands fa-vk fa-${t}"/>`;
90
- case "ws":
91
- return `<li class="fa-solid fa-rss fa-${t}"/>`;
92
- case "yt":
93
- return `<li class="text-red fa-brands fa-youtube fa-${t}"/>`;
94
- default:
95
- return "";
96
- }
97
- }
98
- function ae(e) {
99
- return e.replace(/^\w|[A-Z]|\b\w/g, (t, r) => r === 0 ? t.toLowerCase() : t.toUpperCase()).replace(/\s+/g, "");
100
- }
101
- function y(e) {
102
- return e.toLowerCase().split("-").reduce((t, r) => t + (r.charAt(0).toUpperCase() + r.slice(1)));
103
- }
104
- const oe = (e) => e.replace(/([A-Z])/g, "-$1").toLowerCase(), ie = (e) => e.charAt(0).toUpperCase() + e.slice(1);
105
- function se(e) {
106
- const t = document.createRange();
107
- t.selectNodeContents(e), t.deleteContents();
108
- }
109
- const le = () => Math.floor(Math.random() * 16777215).toString(16), ce = () => {
110
- var e = Math.round, t = Math.random, r = 255;
111
- return "rgba(" + e(t() * r) + "," + e(t() * r) + "," + e(t() * r) + "," + t().toFixed(1) + ")";
112
- }, de = () => {
113
- var e = Math.round, t = Math.random, r = 255;
114
- return "rgba(" + e(t() * r) + "," + e(t() * r) + "," + e(t() * r) + ", 0)";
115
- }, ue = () => {
116
- var e = Math.round, t = Math.random, r = 255;
117
- return "rgba(" + e(t() * r) + "," + e(t() * r) + "," + e(t() * r) + ")";
118
- }, pe = (e, t) => {
119
- e = e.substring(e.indexOf("(") + 1, e.indexOf(")"));
120
- let r = e.split(",");
121
- return r = r.map((n) => parseFloat(n.trim()).toString()), e = "background-color: rgba(" + parseInt(r[0]) + "," + parseInt(r[1]) + "," + parseInt(r[2]) + "," + t + ");", e;
122
- };
123
- function E(e) {
124
- e.reduce(
125
- (t, r) => Object.keys(r).reduce(
126
- (n, a) => ({
127
- ...n,
128
- [a]: a in t && typeof t[a] == "object" && t[a] !== null && typeof r[a] == "object" && r[a] !== null ? E([t[a], r[a]]) : r[a]
129
- }),
130
- t
131
- ),
132
- {}
133
- );
134
- }
135
- const fe = (e) => [...new Set(e)], ge = (e) => e.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&#39;");
136
- function be(e, t = "font-bold") {
137
- return `${e?.title !== null ? `<div title="heading" class="${t}">${e.title}</div>` : ""}${e?.content ? e.content.replace(/\n\n/g, `
138
- `).replace(/\n/g, "<br/>") : ""}`;
139
- }
140
- const M = (e, t = {}, r = "") => {
141
- for (let n in e) {
142
- let a = r ? `${r}-${n}` : n;
143
- typeof e[n] == "object" && !Array.isArray(e[n]) ? M(e[n], t, a) : e[n] !== "" && (t[a] = e[n]);
144
- }
145
- return t;
146
- }, me = () => [m(2), m(1), m(1), m(1), m(3)].join("-"), m = (e) => {
147
- let t = "";
148
- for (let r = 0; r < e; r++)
149
- t += ((1 + Math.random()) * 65536 | 0).toString(16).substring(1);
150
- return t;
151
- };
152
- function k(e, t) {
153
- for (; e.length < t; )
154
- e = `0${e}`;
155
- return e;
156
- }
157
- function p(e, t) {
158
- let r, n, a;
159
- if (t.length === 0)
160
- return e;
161
- for (r = 0, a = t.length; r < a; r++)
162
- n = t.charCodeAt(r), e = (e << 5) - e + n, e |= 0;
163
- return e < 0 ? e * -2 : e;
164
- }
165
- function $(e, t, r) {
166
- return Object.keys(t).sort().reduce(n, e);
167
- function n(a, o) {
168
- return v(a, t[o], o, r);
169
- }
170
- }
171
- function v(e, t, r, n) {
172
- const a = p(p(p(e, r), C(t)), typeof t);
173
- if (t === null)
174
- return p(a, "null");
175
- if (t === void 0)
176
- return p(a, "undefined");
177
- if (typeof t == "object" || typeof t == "function") {
178
- if (n.includes(t))
179
- return p(a, `[Circular]${r}`);
180
- n.push(t);
181
- const o = $(a, t, n);
182
- if (!("valueOf" in t) || typeof t.valueOf != "function")
183
- return o;
184
- try {
185
- return p(o, String(t.valueOf()));
186
- } catch (l) {
187
- return p(o, `[valueOf exception]${l.stack || l.message}`);
188
- }
189
- }
190
- return p(a, t.toString());
191
- }
192
- function C(e) {
193
- return Object.prototype.toString.call(e);
194
- }
195
- function he(e) {
196
- return k(v(0, e, "", []).toString(16), 8);
197
- }
198
- const De = (e) => {
199
- let t = "";
200
- return O(e, {
201
- start: function(r, n, a) {
202
- t += "<" + r;
203
- for (let o = 0; o < n.length; o++)
204
- t += ` ${n[o].name}="${n[o].escaped}"`;
205
- t += ">";
206
- },
207
- end: function(r) {
208
- t += `</${r}>`;
209
- },
210
- chars: function(r) {
211
- t += r;
212
- },
213
- comment: function(r) {
214
- t += `<!-- ${r} -->`;
215
- }
216
- }), t;
217
- }, Ae = (e, t) => {
218
- const r = b("html,head,body,title"), n = { link: "head", base: "head" };
219
- t ? t = t.ownerDocument || t.getOwnerDocument && t.getOwnerDocument() || t : typeof t < "u" ? t = new Document() : typeof document < "u" && document.implementation && document.implementation.createDocument && (t = document.implementation.createDocument("", "", null));
220
- const a = [];
221
- if (!(t.documentElement || t.getDocumentElement && t.getDocumentElement()) && t.createElement && (function() {
222
- const i = t.createElement("html"), u = t.createElement("head");
223
- u.appendChild(t.createElement("title")), i.appendChild(u), i.appendChild(t.createElement("body")), t.appendChild(i);
224
- })(), t.getElementsByTagName)
225
- for (let i in r) r[i] = t.getElementsByTagName(i)[0];
226
- let l = r.body;
227
- return O(e, {
228
- start: function(i, u, c) {
229
- if (r[i]) {
230
- l = r[i], c || a.push(l);
231
- return;
232
- }
233
- const s = t.createElement(i);
234
- for (let d in u)
235
- s.setAttribute(u[d].name, u[d].value);
236
- n[i] && typeof r[n[i]] != "boolean" ? r[n[i]].appendChild(s) : l && l.appendChild && l.appendChild(s), c || (a.push(s), l = s);
237
- },
238
- end: function(i) {
239
- a.length -= 1, l = a[a.length - 1];
240
- },
241
- chars: function(i) {
242
- l.appendChild(t.createTextNode(i));
243
- },
244
- comment: function(i) {
245
- }
246
- }), t;
247
- }, b = (e) => {
248
- let t = {}, r = e.split(",");
249
- for (let n = 0; n < r.length; n++) t[r[n]] = !0;
250
- return t;
251
- }, R = /^<([-A-Za-z0-9_]+)((?:\s+[a-zA-Z_:][-a-zA-Z0-9_:.]*(?:\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|[^>\s]+))?)*)\s*(\/?)>/, P = /^<\/([-A-Za-z0-9_]+)[^>]*>/, U = /([a-zA-Z_:][-a-zA-Z0-9_:.]*)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|([^>\s]+)))?/g, S = b(
252
- "area,base,basefont,br,col,frame,hr,img,input,link,meta,param,embed,command,keygen,source,track,wbr"
253
- ), G = b(
254
- "a,address,article,applet,aside,audio,blockquote,button,canvas,center,dd,del,dir,div,dl,dt,fieldset,figcaption,figure,footer,form,frameset,h1,h2,h3,h4,h5,h6,header,hgroup,hr,iframe,ins,isindex,li,map,menu,noframes,noscript,object,ol,output,p,pre,section,script,table,tbody,td,tfoot,th,thead,tr,ul,video"
255
- ), B = b(
256
- "abbr,acronym,applet,b,basefont,bdo,big,br,button,cite,code,del,dfn,em,font,i,iframe,img,input,ins,kbd,label,map,object,q,s,samp,script,select,small,span,strike,strong,sub,sup,textarea,tt,u,var"
257
- ), T = b("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr"), H = b(
258
- "checked,compact,declare,defer,disabled,ismap,multiple,nohref,noresize,noshade,nowrap,readonly,selected"
259
- ), W = b("script,style"), O = (e, t) => {
260
- let r, n, a, o = [], l = e;
261
- const i = (c, s) => {
262
- let d;
263
- if (!s) d = 0;
264
- else
265
- for (d = o.length - 1; d >= 0 && o[d] != s; d--)
266
- ;
267
- if (d >= 0) {
268
- for (let f = o.length - 1; f >= d; f--)
269
- t.end && t.end(o[f]);
270
- o.length = d;
271
- }
272
- };
273
- for (; e; ) {
274
- if (n = !0, !o.at(-1) || !W[o.at(-1)]) {
275
- if (e.indexOf("<!--") == 0 ? (r = e.indexOf("-->"), r >= 0 && (t.comment && t.comment(e.substring(4, r)), e = e.substring(r + 3), n = !1)) : e.indexOf("</") == 0 ? (a = e.match(P), a && (e = e.substring(a[0].length), a[0].replace(P, i), n = !1)) : e.indexOf("<") == 0 && (a = e.match(R), a && (e = e.substring(a[0].length), a[0].replace(R, u), n = !1)), n) {
276
- r = e.indexOf("<");
277
- let c = r < 0 ? e : e.substring(0, r);
278
- e = r < 0 ? "" : e.substring(r), t.chars && t.chars(c);
279
- }
280
- } else
281
- e = e.replace(
282
- //@ts-ignore
283
- new RegExp("([\\s\\S]*?)</" + o.at(-1) + "[^>]*>"),
284
- function(c, s) {
285
- return s = s.replace(
286
- /<!--([\s\S]*?)-->|<!\[CDATA\[([\s\S]*?)]]>/g,
287
- "$1$2"
288
- ), t.chars && t.chars(s), "";
289
- }
290
- ), i("", o.at(-1));
291
- if (e == l) throw "Parse Error: " + e;
292
- l = e;
293
- }
294
- i();
295
- function u(c, s, d, f) {
296
- if (s = s.toLowerCase(), G[s])
297
- for (; o.at(-1) && B[o.at(-1)]; )
298
- i("", o.at(-1));
299
- if (T[s] && o.at(-1) == s && i("", s), f = S[s] || !!f, f || o.push(s), t.start) {
300
- const _ = [];
301
- d.replace(U, function(z, x) {
302
- let w = arguments[2] ? arguments[2] : arguments[3] ? arguments[3] : arguments[4] ? arguments[4] : H[x] ? x : "";
303
- _.push({
304
- name: x,
305
- value: w,
306
- escaped: w.replace(/(^|[^\\])"/g, '$1\\"')
307
- //"
308
- });
309
- }), t.start && t.start(s, _, f);
310
- }
311
- }
312
- };
313
- function F(e) {
314
- return `"${e}"`;
315
- }
316
- function Y(e) {
317
- return e.replace(/<\?xml.*\?>\n/, "").replace(/<!doctype.*\>\n/, "").replace(/<!DOCTYPE.*\>\n/, "");
318
- }
319
- const xe = (e) => {
320
- e = Y(e);
321
- const t = [], r = {
322
- node: "root",
323
- child: []
324
- };
325
- return O(e, {
326
- start: function(n, a, o) {
327
- let l = {
328
- node: "element",
329
- tag: n
330
- };
331
- if (a.length !== 0 && (l.attr = a.reduce(function(i, u) {
332
- let c = u.name, s = u.value;
333
- return s.match(/ /) && (["title", "transform", "viewBox", "widget"].includes(u.name) || (s = s.split(" "))), i[c] ? Array.isArray(i[c]) ? i[c].push(s) : i[c] = [i[c], s] : i[c] = s, i;
334
- }, {})), o) {
335
- const i = t[0] || r;
336
- i.child === void 0 && (i.child = []), i.child.push(l);
337
- } else
338
- t.unshift(l);
339
- },
340
- end: function(n) {
341
- const a = t.shift();
342
- if (a.tag !== n && console.error("invalid state: mismatch end tag"), t.length === 0)
343
- r.child.push(a);
344
- else {
345
- const o = t[0];
346
- o.child === void 0 && (o.child = []), o.child.push(a);
347
- }
348
- },
349
- //@ts-ignore
350
- chars: function(n) {
351
- let a = {
352
- node: "text",
353
- text: n
354
- };
355
- if (t.length === 0)
356
- r.child.push(a);
357
- else {
358
- const o = t[0];
359
- o.child === void 0 && (o.child = []), o.child.push(a);
360
- }
361
- },
362
- //@ts-ignore
363
- comment: function(n) {
364
- const a = {
365
- node: "comment",
366
- text: n
367
- }, o = t[0];
368
- o.child === void 0 && (o.child = []), o.child.push(a);
369
- }
370
- }), r;
371
- }, Z = (e) => {
372
- const t = [
373
- "area",
374
- "base",
375
- "basefont",
376
- "br",
377
- "col",
378
- "frame",
379
- "hr",
380
- "img",
381
- "input",
382
- "isindex",
383
- "link",
384
- "meta",
385
- "param",
386
- "embed"
387
- ];
388
- let r = "";
389
- e.child && (r = e.child.map(function(a) {
390
- return Z(a);
391
- }).join(""));
392
- let n = "";
393
- if (e.attr && (n = Object.keys(e.attr).map(function(a) {
394
- let o = e.attr[a];
395
- return Array.isArray(o) && (o = o.join(" ")), `${a}=${F(o)}`;
396
- }).join(" "), n !== "" && (n = ` ${n}`)), e.node === "element") {
397
- let a = e.tag;
398
- if (t.indexOf(a) > -1)
399
- return `<${e.tag}${n}/>`;
400
- const o = `<${e.tag}${n}>`, l = `</${e.tag}>`;
401
- return `${o}${r}${l}`;
402
- }
403
- if (e.node === "text")
404
- return e.text;
405
- if (e.node === "comment")
406
- return `<!-- ${e.text} -->`;
407
- if (e.node === "root")
408
- return r;
409
- }, Oe = () => {
410
- const e = (t = !1) => {
411
- const n = document.createElement("canvas").getContext("2d", { willReadFrequently: t });
412
- return n !== null ? (n.moveTo(0, 0), n.lineTo(120, 121), n.stroke(), n.getImageData(0, 0, 200, 200).data.join()) : null;
413
- };
414
- return e(!0) !== e(!1);
415
- }, _e = (e, t = 0, r = !0, n = "en") => {
416
- if (e === void 0) return "";
417
- if (e = typeof e == "string" || e instanceof String ? parseFloat(e.replace(/[^0-9.]/g, "")) : e, r === !1)
418
- return e.toLocaleString(n);
419
- if (e < 1e3)
420
- return e;
421
- e = e.toString().replace(/[^0-9.]/g, "");
422
- let a = [
423
- { v: 1e3, s: "k" },
424
- { v: 1e6, s: "M" },
425
- { v: 1e9, s: "G" },
426
- { v: 1e12, s: "T" },
427
- { v: 1e15, s: "P" },
428
- { v: 1e18, s: "E" },
429
- { v: 1e21, s: "Z" },
430
- { v: 1e24, s: "Y" }
431
- ], o;
432
- for (o = a.length - 1; o > 0 && !(e >= a[o].v); o--)
433
- ;
434
- return (e / a[o].v).toFixed(t).replace(/\.0+$|(\.[0-9]*[1-9])0+$/, "$1") + a[o].s;
435
- }, we = (e) => Object.keys(e).length === 0, h = new BroadcastChannel("logging"), Re = async (e = 0, t) => {
436
- h.postMessage({ action: "log", level: e, message: t });
437
- }, Pe = {
438
- add: (e) => h.postMessage({ action: "add", level: e }),
439
- clear: () => h.postMessage({ action: "delete" }),
440
- delete: (e) => h.postMessage({ action: "delete", level: e }),
441
- list: () => h.postMessage({
442
- action: "list",
443
- message: ["%capp%c %clogging", g.APP, g.NONE, g.OK]
444
- })
445
- }, ve = (e) => e.replace(/\<\!--\s*?[^\s?\[][\s\S]*?--\>/g, "").replace(/\>\s*\</g, "><").replace(/\t/g, ""), Le = (e) => e.replace(/\>\</g, `>
446
- <`), Ie = (e) => e.replace(/\/\*.*\*\/|\/\*[\s\S]*?\*\/|\n|\t|\v|\s{2,}/g, "").replace(/\s*\{\s*/g, "{").replace(/\s*\}\s*/g, "}").replace(/\s*\:\s*/g, ":").replace(/\s*\;\s*/g, ";").replace(/\s*\,\s*/g, ",").replace(/\s*\~\s*/g, "~").replace(/\s*\>\s*/g, ">").replace(/\s*\+\s*/g, "+").replace(/\s*\!\s*/g, "!"), ye = (e) => e.replace(/\,/g, ", ").replace(/\{/g, ` {
447
- `).replace(/\}/g, `}
448
- `).replace(/\;/g, `;
449
- `);
450
- function Ee(e, t) {
451
- const r = [
452
- { value: 1, symbol: "" },
453
- { value: 1e3, symbol: "k" },
454
- { value: 1e6, symbol: "M" },
455
- { value: 1e9, symbol: "G" },
456
- { value: 1e12, symbol: "T" },
457
- { value: 1e15, symbol: "P" },
458
- { value: 1e18, symbol: "E" },
459
- { value: 1e21, symbol: "Z" },
460
- { value: 1e24, symbol: "Y" }
461
- ], n = /\.0+$|(\.\d*[1-9])0+$/;
462
- let a;
463
- for (a = r.length - 1; a > 0 && !(e >= r[a].value); a--)
464
- ;
465
- return (e / r[a].value).toFixed(t).replace(n, "$1") + r[a].symbol;
466
- }
467
- function Me(e) {
468
- const t = RegExp(`[?&]${e}=([^&]*)`).exec(window.location.search);
469
- return t && decodeURIComponent(t[1].replace(/\+/g, " ")) || null;
470
- }
471
- const ke = (e) => new Proxy(new URLSearchParams(window.location.search), {
472
- // @ts-ignore
473
- get: (r, n) => r.get(n)
474
- })[e];
475
- function $e(e) {
476
- return e[Math.floor(Math.random() * e.length)];
477
- }
478
- function Ce(e) {
479
- return e.language === "ar" ? {
480
- direction: "rtl",
481
- textAlign: "right"
482
- } : {
483
- direction: "ltr",
484
- textAlign: "left"
485
- };
486
- }
487
- const Ue = (e) => {
488
- switch (e.language) {
489
- case "ar":
490
- case "ml":
491
- return "rtl";
492
- default:
493
- return "ltr";
494
- }
495
- };
496
- function Se(e) {
497
- const t = e.filter(
498
- (r) => r !== void 0
499
- );
500
- return t.forEach((r) => {
501
- if (window.__bc.opts.suspended === !0 ? r.content = "License suspended, please contact your Sales Representative to restore service" : r.content = r.content?.replace(
502
- /(https?:\/\/)?([\da-z.-]+)\.([a-z.]{2,6})([/\w .-]*)((\?.*)?)/g,
503
- ""
504
- ) || "", r.sender !== null)
505
- switch (!0) {
506
- case r.sender.title === "Unknown author":
507
- r.sender.title = "", r.sender.name = "";
508
- break;
509
- case r.sender.title === r.sender.name:
510
- r.sender.name = "";
511
- break;
512
- case r.channel === "tw":
513
- r.sender.name = `@${r.sender.name}`;
514
- break;
515
- }
516
- else
517
- r.sender = {
518
- title: "",
519
- name: "",
520
- id: "",
521
- avatar: "default",
522
- bio: "",
523
- location: "",
524
- following: 0,
525
- verified: 0,
526
- listed: 0,
527
- followers: 0,
528
- favourites: 0,
529
- messages: 0,
530
- influence: 0
531
- };
532
- if (r.sender.title === "" && r.link !== "") {
533
- const n = new URL(r.link);
534
- r.sender.title = n.hostname.replace("www.", "");
535
- }
536
- }), t;
537
- }
538
- function Ge(e, t, r, n) {
539
- e.stopPropagation(), t.showModal({
540
- showComponent: "card-modal",
541
- props: { data: r, options: n }
542
- });
543
- }
544
- function Be(e) {
545
- const t = [...e];
546
- for (let r = t.length - 1; r > 0; r--) {
547
- const n = Math.floor(Math.random() * (r + 1));
548
- [t[r], t[n]] = [t[n], t[r]];
549
- }
550
- return t;
551
- }
552
- function Te() {
553
- let e = "";
554
- const t = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
555
- for (let r = 0; r < 7; r++) e += t.charAt(Math.floor(Math.random() * t.length));
556
- return e;
557
- }
558
- const He = (e) => {
559
- switch (e?.type) {
560
- case D.MESSAGES:
561
- return g.MESSAGES;
562
- case D.SERIES:
563
- return g.SERIES;
564
- case D.CLOUD:
565
- return g.CLOUD;
566
- default:
567
- return g.NO_UPDATES;
568
- }
569
- }, K = (e = 6) => Math.random().toString(36).substring(2, e + 2), X = (e, t = []) => !t.find(function(n) {
570
- return n === e;
571
- }), We = (e, t = []) => {
572
- let n = 0, a = "";
573
- for (; a == "" && n < 100; )
574
- a = K(e), X(a, t) || (a = "", n++);
575
- return a;
576
- }, Fe = (e) => {
577
- switch (!0) {
578
- case e < 0:
579
- return "text-down text-xs";
580
- case e > 0:
581
- return "text-up text-xs";
582
- default:
583
- return "text-white text-xs";
584
- }
585
- }, Ye = (e, t, r) => Promise.race([e, Q(t, r)]), Q = (e, t) => new Promise((r, n) => setTimeout(() => t === void 0 ? r("ok") : n(t), e));
586
- function Ze(e) {
587
- let t = `${e.type}.${e.topics}`;
588
- return e.order && (t += `.${e.order}`), e.period && (t += `.${e.period}`), t;
589
- }
590
- function Ke(e) {
591
- if (e.widget === void 0) {
592
- const t = e.topics?.split("-");
593
- t && t.length > 1 ? (e.dashboard = t ? t[0] : "", e.widget = t ? t[1] : "") : (e.widget = e.topics, e.dashboard = e.slide);
594
- }
595
- return e;
596
- }
597
- function Xe(e, t) {
598
- let r, n, a, o, l;
599
- switch (e.moderation) {
600
- case A.BEFORE:
601
- r = /* @__PURE__ */ new Date(), n = e.beforeTime?.split(":"), a = Number.parseInt(n ? n[0] : "00"), o = Number.parseInt(n ? n[1] : "00"), l = Number.parseInt(n ? n[2] : "00"), t.before = r.setHours(a, o, l, 0) / 1e3, t.period || (t.period = r.getDay() === 1 ? 72 : 24);
602
- break;
603
- case A.DELAYED:
604
- e.delay && e.delay > 0 && (t.delay = `${e.delay}`);
605
- break;
606
- case A.APPROVED:
607
- t.approved = "1";
608
- break;
609
- default:
610
- e.period !== 0 && (t.period = e.period);
611
- }
612
- return t;
613
- }
614
- var J = /* @__PURE__ */ ((e) => (e.MultiPolygon = "MultiPolygon", e.Polygon = "Polygon", e))(J || {}), j = /* @__PURE__ */ ((e) => (e.MultiPolygon = "MultiPolygon", e.Polygon = "Polygon", e))(j || {});
615
- export {
616
- D as API,
617
- g as CSS,
618
- L as EVENTS,
619
- J as GeoType,
620
- O as HTMLParser,
621
- Ae as HTMLtoDOM,
622
- De as HTMLtoXML,
623
- A as MODERATION,
624
- pe as RGBAchangeA,
625
- I as STORAGE,
626
- j as ShapeType,
627
- q as anonymize,
628
- N as attachedMedia,
629
- V as attrs,
630
- re as awaitElement,
631
- ne as brandLogo,
632
- y as camelCase,
633
- te as camelCasedProps,
634
- oe as camelToHyphen,
635
- ae as camelize,
636
- ie as capitalizeFirstLetter,
637
- se as clearContents,
638
- E as deepMerge,
639
- Ue as dir,
640
- ge as escape,
641
- ee as filterAttributes,
642
- M as flatten,
643
- be as formatContent,
644
- me as getGuid,
645
- Ze as getKey,
646
- Me as getParameterByName,
647
- ke as getQueryParam,
648
- Oe as hasHWA,
649
- he as hashSum,
650
- xe as html2json,
651
- _e as intToString,
652
- we as isEmpty,
653
- Z as json2html,
654
- Re as log,
655
- Pe as logging,
656
- ye as maxifyCss,
657
- Le as maxifyHtml,
658
- Ie as minifyCss,
659
- ve as minifyHtml,
660
- Xe as moderation,
661
- Ee as numberFormatter,
662
- le as randomColor,
663
- ue as randomRGB,
664
- de as randomRGBA,
665
- ce as randomRGBAfull,
666
- $e as randomValue,
667
- Ce as rtl,
668
- Se as sanitize,
669
- Ge as showModal,
670
- Be as shuffleMessages,
671
- Te as stringGen,
672
- He as typeCss,
673
- We as uniq,
674
- fe as unique,
675
- Fe as upDownColor,
676
- Ke as widgetParams,
677
- Ye as wrapPromise
678
- };
1
+ var e=function(e){return e.CARDS=`cards`,e.CLOUD=`cloud`,e.DASHBOARD=`dashboard`,e.DASHBOARDS=`dashboards`,e.IMAGES=`images`,e.MESSAGES=`messages`,e.PREFERENCE=`preference`,e.PREFERENCES=`preferences`,e.PRESENTATION=`presentation`,e.PRESENTATIONS=`presentations`,e.SERIES=`series`,e.SLIDE=`slide`,e.SLIDES=`slides`,e.TEMPLATES=`templates`,e.TOPICS=`topics`,e.WIDGET=`widget`,e.WIDGETS=`widgets`,e}({}),t=function(e){return e.API=`color:white;background-color:grey;padding:0 4px 0 4px;border-radius:5px;`,e.APP=`color:white;background-color:navy;padding:0 4px 0 4px;border-radius:5px;`,e.BROADCAST=`color:navy;background-color:orange;padding:0 4px 0 4px;border-radius:5px;`,e.CLOUD=`color:purple;background-color:mistyrose;padding:0 4px 0 4px;border-radius:5px;`,e.DATA=`color:grey;background-color:lightskyblue;padding:0 4px 0 4px;border-radius:5px;`,e.ERROR=`color:white;background-color:red;padding:0 4px 0 4px;border-radius:5px;`,e.GET_DATA=`color:black;background-color:lime;padding:0 4px 0 4px;border-radius:5px;`,e.HIDE=`color:white;background-color:red;padding:0 4px 0 4px;border-radius:5px;`,e.KO=`color:white;background-color:red;padding:0 4px 0 4px;border-radius:5px;`,e.MESSAGES=`color:white;background-color:darkslateblue;padding:0 4px 0 4px;border-radius:5px;`,e.NO_UPDATES=`color:grey;border:1px solid grey;padding:0 4px 0 4px;border-radius:5px;`,e.NONE=`color:transparent;background-color:transparent;`,e.OK=`color:black;background-color:lime;padding:0 4px 0 4px;border-radius:5px;`,e.PRESENTATION=`color:white;background-color:darkred;padding:0 4px 0 4px;border-radius:5px;`,e.SERIES=`color:purple;background-color:thistle;padding:0 4px 0 4px;border-radius:5px;`,e.SLIDE=`color:black;background-color:yellow;padding:0 4px 0 4px;border-radius:5px;`,e.STORAGE=`color:black;background-color:cyan;padding:0 4px 0 4px;border-radius:5px;`,e.SUBSCRIBE=`color:white;background-color:dodgerblue;padding:0 4px 0 4px;border-radius:5px;`,e.WIDGET=`color:black;background-color:lemonchiffon;padding:0 4px 0 4px;border-radius:5px;`,e.WS=`color:white;background-color:green;padding:0 4px 0 4px;border-radius:5px;`,e}({}),n=function(e){return e.ADD_SLIDE=`addSlide`,e.APP_READY=`appReady`,e.API_UPDATE=`apiUpdate`,e.BACKGROUND_UPDATE=`backgroundUpdate`,e.BUILDER_PREVIEW=`builderPreview`,e.COMPONENT_UPDATE=`componentUpdate`,e.APPROVE_MESSAGE=`approveMessage`,e.CHANNEL=`channel`,e.CLEAN_MESSAGES=`cleanMessages`,e.CLOSE_BUILDER_DIALOG=`closeBuilderDialog`,e.CLOSE_BUILDER_MODAL=`closeBuilderModal`,e.CLOSE_MODAL=`closeModal`,e.COLOR_UPDATE=`colorUpdate`,e.COMPONENT_INDEX=`componentIndex`,e.CSS_SET=`setCss`,e.CSS_STORE=`storeCss`,e.DASHBOARD_LOAD=`loadDashboard`,e.DASHBOARD_STORE=`storeDashboard`,e.DASHBOARD_UPDATED=`dashboardUpdated`,e.ERROR=`error`,e.HIDE_MESSAGE=`hideMessage`,e.HIDE_LABELS=`hideLabels`,e.IMAGE_GET=`getImage`,e.IMAGE_SET=`setImage`,e.IMAGE_STORED=`imageStored`,e.LAUPPUT_UPDATE=`layoutUpdate`,e.PREV_SLIDE=`prevSlide`,e.RELOAD_PRESENTATION=`reloadPresentation`,e.STAR_MESSAGE=`starMessage`,e.GOTO_SLIDE=`gotoSlide`,e.NEXT_SLIDE=`nextSlide`,e.PREFERENCE_LOAD=`loadPreference`,e.PREFERENCE_STORE=`storePreference`,e.PREFERENCE_UPDATED=`preferenceUpdated`,e.PAUSE_PRESENTATION=`pausePresentation`,e.PRESENTATION_READY=`presentationReady`,e.PRESENTATION_LOAD=`loadPresentation`,e.PRESENTATION_STORE=`storePresentation`,e.PRESENTATION_UPDATED=`presentationUpdated`,e.ROW_COL_UPDATE=`rowcolupdate`,e.SCREENSHOT_TAKE=`takeScreenshot`,e.SCREENSHOT_STORE=`storeScreenshot`,e.SECTION_UPDATE=`sectionUpdate`,e.SHOW_BUILDER_DIALOG=`showBuilderDialog`,e.SHOW_BUILDER_MODAL=`showBuilderModal`,e.SHOW_MODAL=`showModal`,e.SLIDE_DID_LOAD=`slideDidLoad`,e.SLIDE_GET=`getSlide`,e.SLIDE_GOTO=`slideGoto`,e.SLIDE_LOAD=`loadSlide`,e.SLIDE_READY=`slideReady`,e.SLIDE_SAVED=`slideSaved`,e.SLIDE_SET=`setSlide`,e.SLIDE_STORE=`storeSlide`,e.SLIDE_STORED=`slideStored`,e.SLIDE_TRANSITIONER=`slideTransitioner`,e.SLIDE_UPDATED=`slideUpdated`,e.START_TRANSITIONER=`startTransitioner`,e.STORAGE_INIT=`storageInit`,e.STREAM=`stream`,e.SUBSCRIBE=`subscribe`,e.SUSPEND_ACCOUNT=`suspendAccount`,e.SWITCH_PRESENTATION=`switchPresentation`,e.REMOVE_CLOUD=`removeCloud`,e.UPDATE=`update`,e.UPLOAD_COMPLETED=`uploadCompleted`,e.VERSION=`version`,e.WIDGETS_CLEAR=`widgetsClear`,e.WIDGET_DID_LOAD=`widgetDidLoad`,e.WIDGET_DID_UPDATE=`widgetDidUpdate`,e.WIDGET_LOAD=`widgetLoad`,e.WIDGET_STORE=`widgetStore`,e.WIDGET_UPDATE=`widgetUpdate`,e.WS_API_REQUEST=`wsApiRequest`,e.WS_API_RESPONSE=`wsApiResponse`,e.WS_API_UPDATE=`wsApiRUpdate`,e}({}),r=function(e){return e.APPROVED=`approved`,e.BEFORE=`before`,e.DELAYED=`delayed`,e.NONE=`none`,e.REALTIME=`realtime`,e}({}),i=function(e){return e.KEYVAL=`keyval`,e.LOCAL=`local`,e.SESSION=`session`,e.DEXIE=`dexie`,e.WINDOW=`window`,e}({});function a(e){let t=e.toUpperCase().split(/[\s_-]+/);return t.length>0?(t.forEach((e,n)=>{t[n]=`${e.charAt(0)}.`}),t.join(` `)):``}function o(e){let t=``,n=``,r={backgroundImage:``};return e.media!==void 0&&e.media.forEach(e=>{(e.type===`photo`||e.type===`image`)&&(r={backgroundImage:`url(${e.url})`},n=e.url),e.type===`video`&&(t=e.url)}),{image:n,background:r||null,video:t}}function s(e){let t={};for(let n=0;n<e.length;n++){let r=e.item(n);r?.name&&(t[r.name]=r.value)}return t}function c(e){let t={};for(let n=0;n<e.length;n++){let r=e[n];r.name!==`class`&&!r.name.includes(`data`)&&(t[r.name]=r.value)}return t}function l(e){let t={};for(let n=0;n<e.length;n++){let r=e[n];r.name!==`class`&&(t[r.name]=p(r.value))}return t}var u=e=>new Promise(t=>{if(document.querySelector(e))return t(document.querySelector(e));let n=new MutationObserver(r=>{document.querySelector(e)&&(n.disconnect(),t(document.querySelector(e)))});n.observe(document.body,{childList:!0,subtree:!0})});function d(e,t){switch(e){case`ax`:return`<div class="axa-switch-small bg-center bg-cover w-6 h-6"></div>`;case`bl`:return`<li class="text-blue fa-solid fa-rss fa-${t}"/>`;case`co`:return`<li class="fa-solid fa-comment fa-${t}"/>`;case`da`:return`<li class="fa-brands fa-dailymotion fa-${t}"/>`;case`fb`:return`<li class="text-blue-900 fa-brands fa-facebook fa-${t}"/>`;case`fo`:return`<li class="fa-solid fa-messages fa-${t}"/>`;case`ig`:return`<li class="fa-brands fa-instagram fa-${t}"/>`;case`lb`:return`<li class="fa-solid fa-comment fa-${t}"/>`;case`li`:return`<li class="fa-brands fa-linkedin fa-${t}"/>`;case`me`:return`<li class="fa-solid fa-rss fa-${t}"/>`;case`pi`:return`<li class="fa-brands fa-pinterest fa-${t}"/>`;case`qq`:return`<li class="fa-brands fa-weibo fa-${t}"/>`;case`rd`:return`<li class="fa-brands fa-reddit fa-${t}"/>`;case`re`:return`<li class="fa-solid fa-star-sharp-half-stroke fa-${t}"/>`;case`ti`:return`<li class="fa-brands fa-tiktok fa-${t}"/>`;case`tw`:return`<li class="fa-brands fa-x-twitter fa-${t}"/>`;case`vk`:return`<li class="fa-brands fa-vk fa-${t}"/>`;case`ws`:return`<li class="fa-solid fa-rss fa-${t}"/>`;case`yt`:return`<li class="text-red fa-brands fa-youtube fa-${t}"/>`;default:return``}}function f(e){return e.replace(/^\w|[A-Z]|\b\w/g,(e,t)=>t===0?e.toLowerCase():e.toUpperCase()).replace(/\s+/g,``)}function p(e){return e.toLowerCase().split(`-`).reduce((e,t)=>e+(t.charAt(0).toUpperCase()+t.slice(1)))}var m=e=>e.replace(/([A-Z])/g,`-$1`).toLowerCase(),h=e=>e.charAt(0).toUpperCase()+e.slice(1);function g(e){let t=document.createRange();t.selectNodeContents(e),t.deleteContents()}var _=()=>Math.floor(Math.random()*16777215).toString(16),v=()=>{var e=Math.round,t=Math.random,n=255;return`rgba(`+e(t()*n)+`,`+e(t()*n)+`,`+e(t()*n)+`,`+t().toFixed(1)+`)`},y=()=>{var e=Math.round,t=Math.random,n=255;return`rgba(`+e(t()*n)+`,`+e(t()*n)+`,`+e(t()*n)+`, 0)`},ee=()=>{var e=Math.round,t=Math.random,n=255;return`rgba(`+e(t()*n)+`,`+e(t()*n)+`,`+e(t()*n)+`)`},te=(e,t)=>{e=e.substring(e.indexOf(`(`)+1,e.indexOf(`)`));let n=e.split(`,`);return n=n.map(e=>parseFloat(e.trim()).toString()),e=`background-color: rgba(`+parseInt(n[0])+`,`+parseInt(n[1])+`,`+parseInt(n[2])+`,`+t+`);`,e},ne=(e,t=300)=>{let n;return(...r)=>{clearTimeout(n),n=setTimeout(()=>{e.apply(void 0,r)},t)}},b=(e,t=300)=>{let n;return(...r)=>{n||e.apply(void 0,r),clearTimeout(n),n=setTimeout(()=>{n=void 0},t)}};function x(e){e.reduce((e,t)=>Object.keys(t).reduce((n,r)=>({...n,[r]:r in e&&typeof e[r]==`object`&&e[r]!==null&&typeof t[r]==`object`&&t[r]!==null?x([e[r],t[r]]):t[r]}),e),{})}var S=e=>[...new Set(e)],C=e=>e.replace(/&/g,`&amp;`).replace(/</g,`&lt;`).replace(/>/g,`&gt;`).replace(/"/g,`&quot;`).replace(/'/g,`&#39;`);function w(e,t=`font-bold`){return`${e?.title===null?``:`<div title="heading" class="${t}">${e.title}</div>`}${e?.content?e.content.replace(/\n\n/g,`
2
+ `).replace(/\n/g,`<br/>`):``}`}var T=(e,t={},n=``)=>{for(let r in e){let i=n?`${n}-${r}`:r;typeof e[r]==`object`&&!Array.isArray(e[r])?T(e[r],t,i):e[r]!==``&&(t[i]=e[r])}return t},E=()=>[D(2),D(1),D(1),D(1),D(3)].join(`-`),D=e=>{let t=``;for(let n=0;n<e;n++)t+=((1+Math.random())*65536|0).toString(16).substring(1);return t};function O(e,t){for(;e.length<t;)e=`0${e}`;return e}function k(e,t){let n,r,i;if(t.length===0)return e;for(n=0,i=t.length;n<i;n++)r=t.charCodeAt(n),e=(e<<5)-e+r,e|=0;return e<0?e*-2:e}function A(e,t,n){return Object.keys(t).sort().reduce(r,e);function r(e,r){return j(e,t[r],r,n)}}function j(e,t,n,r){let i=k(k(k(e,n),M(t)),typeof t);if(t===null)return k(i,`null`);if(t===void 0)return k(i,`undefined`);if(typeof t==`object`||typeof t==`function`){if(r.includes(t))return k(i,`[Circular]${n}`);r.push(t);let e=A(i,t,r);if(!(`valueOf`in t)||typeof t.valueOf!=`function`)return e;try{return k(e,String(t.valueOf()))}catch(t){return k(e,`[valueOf exception]${t.stack||t.message}`)}}return k(i,t.toString())}function M(e){return Object.prototype.toString.call(e)}function N(e){return O(j(0,e,``,[]).toString(16),8)}var P=e=>{let t=``;return K(e,{start:function(e,n,r){t+=`<`+e;for(let e=0;e<n.length;e++)t+=` ${n[e].name}="${n[e].escaped}"`;t+=`>`},end:function(e){t+=`</${e}>`},chars:function(e){t+=e},comment:function(e){t+=`<!-- ${e} -->`}}),t},F=(e,t)=>{let n=I(`html,head,body,title`),r={link:`head`,base:`head`};t?t=t.ownerDocument||t.getOwnerDocument&&t.getOwnerDocument()||t:t===void 0?typeof document<`u`&&document.implementation&&document.implementation.createDocument&&(t=document.implementation.createDocument(``,``,null)):t=new Document;let i=[];if(!(t.documentElement||t.getDocumentElement&&t.getDocumentElement())&&t.createElement&&(function(){let e=t.createElement(`html`),n=t.createElement(`head`);n.appendChild(t.createElement(`title`)),e.appendChild(n),e.appendChild(t.createElement(`body`)),t.appendChild(e)})(),t.getElementsByTagName)for(let e in n)n[e]=t.getElementsByTagName(e)[0];let a=n.body;return K(e,{start:function(e,o,s){if(n[e]){a=n[e],s||i.push(a);return}let c=t.createElement(e);for(let e in o)c.setAttribute(o[e].name,o[e].value);r[e]&&typeof n[r[e]]!=`boolean`?n[r[e]].appendChild(c):a&&a.appendChild&&a.appendChild(c),s||(i.push(c),a=c)},end:function(e){--i.length,a=i[i.length-1]},chars:function(e){a.appendChild(t.createTextNode(e))},comment:function(e){}}),t},I=e=>{let t={},n=e.split(`,`);for(let e=0;e<n.length;e++)t[n[e]]=!0;return t},L=/^<([-A-Za-z0-9_]+)((?:\s+[a-zA-Z_:][-a-zA-Z0-9_:.]*(?:\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|[^>\s]+))?)*)\s*(\/?)>/,R=/^<\/([-A-Za-z0-9_]+)[^>]*>/,z=/([a-zA-Z_:][-a-zA-Z0-9_:.]*)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|([^>\s]+)))?/g,B=I(`area,base,basefont,br,col,frame,hr,img,input,link,meta,param,embed,command,keygen,source,track,wbr`),V=I(`a,address,article,applet,aside,audio,blockquote,button,canvas,center,dd,del,dir,div,dl,dt,fieldset,figcaption,figure,footer,form,frameset,h1,h2,h3,h4,h5,h6,header,hgroup,hr,iframe,ins,isindex,li,map,menu,noframes,noscript,object,ol,output,p,pre,section,script,table,tbody,td,tfoot,th,thead,tr,ul,video`),H=I(`abbr,acronym,applet,b,basefont,bdo,big,br,button,cite,code,del,dfn,em,font,i,iframe,img,input,ins,kbd,label,map,object,q,s,samp,script,select,small,span,strike,strong,sub,sup,textarea,tt,u,var`),U=I(`colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr`),W=I(`checked,compact,declare,defer,disabled,ismap,multiple,nohref,noresize,noshade,nowrap,readonly,selected`),G=I(`script,style`),K=(e,t)=>{let n,r,i,a=[],o=e,s=(e,n)=>{let r;if(!n)r=0;else for(r=a.length-1;r>=0&&a[r]!=n;r--);if(r>=0){for(let e=a.length-1;e>=r;e--)t.end&&t.end(a[e]);a.length=r}};for(;e;){if(r=!0,!a.at(-1)||!G[a.at(-1)]){if(e.indexOf(`<!--`)==0?(n=e.indexOf(`-->`),n>=0&&(t.comment&&t.comment(e.substring(4,n)),e=e.substring(n+3),r=!1)):e.indexOf(`</`)==0?(i=e.match(R),i&&(e=e.substring(i[0].length),i[0].replace(R,s),r=!1)):e.indexOf(`<`)==0&&(i=e.match(L),i&&(e=e.substring(i[0].length),i[0].replace(L,c),r=!1)),r){n=e.indexOf(`<`);let r=n<0?e:e.substring(0,n);e=n<0?``:e.substring(n),t.chars&&t.chars(r)}}else e=e.replace(RegExp(`([\\s\\S]*?)</`+a.at(-1)+`[^>]*>`),function(e,n){return n=n.replace(/<!--([\s\S]*?)-->|<!\[CDATA\[([\s\S]*?)]]>/g,`$1$2`),t.chars&&t.chars(n),``}),s(``,a.at(-1));if(e==o)throw`Parse Error: `+e;o=e}s();function c(e,n,r,i){if(n=n.toLowerCase(),V[n])for(;a.at(-1)&&H[a.at(-1)];)s(``,a.at(-1));if(U[n]&&a.at(-1)==n&&s(``,n),i=B[n]||!!i,i||a.push(n),t.start){let e=[];r.replace(z,function(t,n){let r=arguments[2]?arguments[2]:arguments[3]?arguments[3]:arguments[4]?arguments[4]:W[n]?n:``;e.push({name:n,value:r,escaped:r.replace(/(^|[^\\])"/g,`$1\\"`)})}),t.start&&t.start(n,e,i)}}};function q(e){return`"${e}"`}function J(e){return e.replace(/<\?xml.*\?>\n/,``).replace(/<!doctype.*\>\n/,``).replace(/<!DOCTYPE.*\>\n/,``)}var Y=e=>{e=J(e);let t=[],n={node:`root`,child:[]};return K(e,{start:function(e,r,i){let a={node:`element`,tag:e};if(r.length!==0&&(a.attr=r.reduce(function(e,t){let n=t.name,r=t.value;return r.match(/ /)&&([`title`,`transform`,`viewBox`,`widget`].includes(t.name)||(r=r.split(` `))),e[n]?Array.isArray(e[n])?e[n].push(r):e[n]=[e[n],r]:e[n]=r,e},{})),i){let e=t[0]||n;e.child===void 0&&(e.child=[]),e.child.push(a)}else t.unshift(a)},end:function(e){let r=t.shift();if(r.tag!==e&&console.error(`invalid state: mismatch end tag`),t.length===0)n.child.push(r);else{let e=t[0];e.child===void 0&&(e.child=[]),e.child.push(r)}},chars:function(e){let r={node:`text`,text:e};if(t.length===0)n.child.push(r);else{let e=t[0];e.child===void 0&&(e.child=[]),e.child.push(r)}},comment:function(e){let n={node:`comment`,text:e},r=t[0];r.child===void 0&&(r.child=[]),r.child.push(n)}}),n},X=e=>{let t=[`area`,`base`,`basefont`,`br`,`col`,`frame`,`hr`,`img`,`input`,`isindex`,`link`,`meta`,`param`,`embed`],n=``;e.child&&(n=e.child.map(function(e){return X(e)}).join(``));let r=``;if(e.attr&&(r=Object.keys(e.attr).map(function(t){let n=e.attr[t];return Array.isArray(n)&&(n=n.join(` `)),`${t}=${q(n)}`}).join(` `),r!==``&&(r=` ${r}`)),e.node===`element`){let i=e.tag;if(t.indexOf(i)>-1)return`<${e.tag}${r}/>`;let a=`<${e.tag}${r}>`,o=`</${e.tag}>`;return`${a}${n}${o}`}if(e.node===`text`)return e.text;if(e.node===`comment`)return`<!-- ${e.text} -->`;if(e.node===`root`)return n},Z=()=>{let e=(e=!1)=>{let t=document.createElement(`canvas`).getContext(`2d`,{willReadFrequently:e});return t===null?null:(t.moveTo(0,0),t.lineTo(120,121),t.stroke(),t.getImageData(0,0,200,200).data.join())};return e(!0)!==e(!1)},re=(e,t=0,n=!0,r=`en`)=>{if(e===void 0)return``;if(e=typeof e==`string`||e instanceof String?parseFloat(e.replace(/[^0-9.]/g,``)):e,n===!1)return e.toLocaleString(r);if(e<1e3)return Math.round(e)===e?e:e.toFixed(t);e=e.toString().replace(/[^0-9.]/g,``);let i=[{v:1e3,s:`k`},{v:1e6,s:`M`},{v:1e9,s:`G`},{v:0xe8d4a51000,s:`T`},{v:0x38d7ea4c68000,s:`P`},{v:0xde0b6b3a7640000,s:`E`},{v:1e21,s:`Z`},{v:1e24,s:`Y`}],a;for(a=i.length-1;a>0&&!(e>=i[a].v);a--);return(e/i[a].v).toFixed(t).replace(/\.0+$|(\.[0-9]*[1-9])0+$/,`$1`)+i[a].s},ie=(e,t=0,n=!0,r=`en`)=>{if(e===void 0)return``;if(e=typeof e==`string`||e instanceof String?parseFloat(e.replace(/[^0-9.]/g,``)):e,n===!1)return e.toLocaleString(r);if(e<1e3)return Math.round(e)===e?e:e.toFixed(t);e=e.toString().replace(/[^0-9.]/g,``);let i=[{v:1e3,s:`k`},{v:1e6,s:`M`},{v:1e9,s:`B`},{v:0xe8d4a51000,s:`T`},{v:0x38d7ea4c68000,s:`P`},{v:0xde0b6b3a7640000,s:`E`},{v:1e21,s:`Z`},{v:1e24,s:`Y`}],a;for(a=i.length-1;a>0&&!(e>=i[a].v);a--);return(e/i[a].v).toFixed(t).replace(/\.0+$|(\.[0-9]*[1-9])0+$/,`$1`)+i[a].s},ae=e=>Object.keys(e).length===0,Q=new BroadcastChannel(`logging`),oe=async(e=0,t)=>{Q.postMessage({action:`log`,level:e,message:t})},se={add:e=>Q.postMessage({action:`add`,level:e}),clear:()=>Q.postMessage({action:`delete`}),delete:e=>Q.postMessage({action:`delete`,level:e}),list:()=>Q.postMessage({action:`list`,message:[`%capp%c %clogging`,t.APP,t.NONE,t.OK]})},ce=e=>e.replace(/\<\!--\s*?[^\s?\[][\s\S]*?--\>/g,``).replace(/\>\s*\</g,`><`).replace(/\t/g,``),le=e=>e.replace(/\>\</g,`>
3
+ <`),ue=e=>e.replace(/\/\*.*\*\/|\/\*[\s\S]*?\*\/|\n|\t|\v|\s{2,}/g,``).replace(/\s*\{\s*/g,`{`).replace(/\s*\}\s*/g,`}`).replace(/\s*\:\s*/g,`:`).replace(/\s*\;\s*/g,`;`).replace(/\s*\,\s*/g,`,`).replace(/\s*\~\s*/g,`~`).replace(/\s*\>\s*/g,`>`).replace(/\s*\+\s*/g,`+`).replace(/\s*\!\s*/g,`!`),de=e=>e.replace(/\,/g,`, `).replace(/\{/g,` {
4
+ `).replace(/\}/g,`}
5
+ `).replace(/\;/g,`;
6
+ `);function fe(e,t){let n=[{value:1,symbol:``},{value:1e3,symbol:`k`},{value:1e6,symbol:`M`},{value:1e9,symbol:`G`},{value:0xe8d4a51000,symbol:`T`},{value:0x38d7ea4c68000,symbol:`P`},{value:0xde0b6b3a7640000,symbol:`E`},{value:1e21,symbol:`Z`},{value:1e24,symbol:`Y`}],r=/\.0+$|(\.\d*[1-9])0+$/,i;for(i=n.length-1;i>0&&!(e>=n[i].value);i--);return(e/n[i].value).toFixed(t).replace(r,`$1`)+n[i].symbol}function pe(e){let t=RegExp(`[?&]${e}=([^&]*)`).exec(window.location.search);return t&&decodeURIComponent(t[1].replace(/\+/g,` `))||null}var me=e=>new Proxy(new URLSearchParams(window.location.search),{get:(e,t)=>e.get(t)})[e];function he(e){return e[Math.floor(Math.random()*e.length)]}function ge(e){switch(e.language){case`ar`:return{direction:`rtl`,textAlign:`right`};default:return{direction:`ltr`,textAlign:`left`}}}var _e=e=>{switch(e.language){case`ar`:case`ml`:return`rtl`;default:return`ltr`}};function ve(e){let t=e.filter(e=>e!==void 0);return t.forEach(e=>{if(window.__bc.opts.suspended===!0?e.content=`License suspended, please contact your Sales Representative to restore service`:e.content=e.content?.replace(/(https?:\/\/)?([\da-z.-]+)\.([a-z.]{2,6})([/\w .-]*)((\?.*)?)/g,``)||``,e.sender!==null)switch(!0){case e.sender.title===`Unknown author`:e.sender.title=``,e.sender.name=``;break;case e.sender.title===e.sender.name:e.sender.name=``;break;case e.channel===`tw`:e.sender.name=`@${e.sender.name}`;break}else e.sender={title:``,name:``,id:``,avatar:`default`,bio:``,location:``,following:0,verified:0,listed:0,followers:0,favourites:0,messages:0,influence:0};if(e.sender.title===``&&e.link!==``){let t=new URL(e.link);e.sender.title=t.hostname.replace(`www.`,``)}}),t}function ye(e,t,n,r){e.stopPropagation(),t.showModal({showComponent:`card-modal`,props:{data:n,options:r}})}function be(e){let t=[...e];for(let e=t.length-1;e>0;e--){let n=Math.floor(Math.random()*(e+1));[t[e],t[n]]=[t[n],t[e]]}return t}function $(){let e=``;for(let t=0;t<7;t++)e+=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789`.charAt(Math.floor(Math.random()*62));return e}var xe=n=>{switch(n?.type){case e.MESSAGES:return t.MESSAGES;case e.SERIES:return t.SERIES;case e.CLOUD:return t.CLOUD;default:return t.NO_UPDATES}},Se=(e=6)=>Math.random().toString(36).substring(2,e+2),Ce=(e,t=[])=>!t.find(function(t){return t===e}),we=(e,t=[])=>{let n=0,r=``;for(;r==``&&n<100;)r=Se(e),Ce(r,t)||(r=``,n++);return r},Te=e=>{switch(!0){case e<0:return`text-down text-xs`;case e>0:return`text-up text-xs`;default:return`text-white text-xs`}},Ee=(e,t,n)=>Promise.race([e,De(t,n)]),De=(e,t)=>new Promise((n,r)=>setTimeout(()=>t===void 0?n(`ok`):r(t),e));function Oe(e){let t=`${e.type}.${e.topics}`;return e.order&&(t+=`.${e.order}`),e.period&&(t+=`.${e.period}`),t}function ke(e){if(e.widget===void 0){let t=e.topics?.split(`-`);t&&t.length>1?(e.dashboard=t?t[0]:``,e.widget=t?t[1]:``):(e.widget=e.topics,e.dashboard=e.slide)}return e}function Ae(e,t){let n,i,a,o,s;switch(e.moderation){case r.BEFORE:n=new Date,i=e.beforeTime?.split(`:`),a=Number.parseInt(i?i[0]:`00`),o=Number.parseInt(i?i[1]:`00`),s=Number.parseInt(i?i[2]:`00`),t.before=n.setHours(a,o,s,0)/1e3,t.period||=n.getDay()===1?72:24;break;case r.DELAYED:e.delay&&e.delay>0&&(t.delay=`${e.delay}`);break;case r.APPROVED:t.approved=`1`;break;default:e.period!==0&&(t.period=e.period)}return t}var je=function(e){return e.MultiPolygon=`MultiPolygon`,e.Polygon=`Polygon`,e}({}),Me=function(e){return e.MultiPolygon=`MultiPolygon`,e.Polygon=`Polygon`,e}({});export{e as API,t as CSS,n as EVENTS,je as GeoType,K as HTMLParser,F as HTMLtoDOM,P as HTMLtoXML,r as MODERATION,te as RGBAchangeA,i as STORAGE,Me as ShapeType,ie as abbr,a as anonymize,o as attachedMedia,s as attrs,u as awaitElement,d as brandLogo,p as camelCase,l as camelCasedProps,m as camelToHyphen,f as camelize,h as capitalizeFirstLetter,g as clearContents,ne as debounce,x as deepMerge,_e as dir,C as escape,c as filterAttributes,T as flatten,w as formatContent,E as getGuid,Oe as getKey,pe as getParameterByName,me as getQueryParam,Z as hasHWA,N as hashSum,Y as html2json,re as intToString,ae as isEmpty,X as json2html,oe as log,se as logging,de as maxifyCss,le as maxifyHtml,ue as minifyCss,ce as minifyHtml,Ae as moderation,fe as numberFormatter,_ as randomColor,ee as randomRGB,y as randomRGBA,v as randomRGBAfull,he as randomValue,ge as rtl,ve as sanitize,ye as showModal,be as shuffleMessages,b as stall,$ as stringGen,xe as typeCss,we as uniq,S as unique,Te as upDownColor,ke as widgetParams,Ee as wrapPromise};
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "buzzcasting-utils",
3
3
  "type": "module",
4
- "version": "1.12.1",
4
+ "version": "1.12.3",
5
5
  "private": false,
6
6
  "author": {
7
7
  "name": "Mark Tamis, TouchFlows SAS",
@@ -21,6 +21,7 @@
21
21
  ],
22
22
  "scripts": {
23
23
  "dev": "vite",
24
+ "docs": "npx typedoc src ",
24
25
  "build": "tsc && vite build",
25
26
  "changelog": "changelogen --release",
26
27
  "release": "npm test && npm run build && changelogen --release && npm publish && git push --follow-tags",
@@ -29,23 +30,23 @@
29
30
  "test:watch": "vitest",
30
31
  "test:coverage": "vitest --coverage"
31
32
  },
32
- "dependencies": {},
33
33
  "devDependencies": {
34
- "@antfu/eslint-config": "^7.2.0",
35
- "@commitlint/cli": "^20.4.1",
36
- "@commitlint/config-conventional": "^20.4.1",
37
- "@types/node": "^24.10.10",
38
- "@typescript-eslint/eslint-plugin": "^8.54.0",
39
- "@typescript-eslint/parser": "^8.54.0",
40
- "@vitest/coverage-v8": "^4.0.1",
34
+ "@antfu/eslint-config": "^7.7.3",
35
+ "@commitlint/cli": "^20.5.0",
36
+ "@commitlint/config-conventional": "^20.5.0",
37
+ "@types/node": "^24.12.0",
38
+ "@typescript-eslint/eslint-plugin": "^8.57.1",
39
+ "@typescript-eslint/parser": "^8.57.1",
40
+ "@vitest/coverage-v8": "^4.1.0",
41
41
  "camelcase": "^9.0.0",
42
42
  "changelogen": "^0.6.2",
43
43
  "eslint": "^9.39.2",
44
44
  "lint-staged": "^16.2.7",
45
+ "typedoc": "^0.28.17",
45
46
  "typescript": "^5.9.3",
46
- "vite": "^7.3.1",
47
+ "vite": "^8.0.1",
47
48
  "vite-plugin-dts": "^4.5.4",
48
- "vitest": "^4.0.1"
49
+ "vitest": "^4.1.0"
49
50
  },
50
51
  "lint-staged": {
51
52
  "*.ts": "npm run lint"