@telia-ace/widget-components-area-flamingo 1.0.12 → 1.0.14

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index-40a90aa7.js","sources":["../../../packages/runtime/dist/index-bd7f8b31.js","../src/area-component.ts"],"sourcesContent":["var _s = Object.defineProperty, Cs = Object.defineProperties;\nvar Es = Object.getOwnPropertyDescriptors;\nvar _e = Object.getOwnPropertySymbols, As = Object.getPrototypeOf, Os = Object.prototype.hasOwnProperty, xs = Object.prototype.propertyIsEnumerable, Ss = Reflect.get;\nvar Ce = (s, t, e) => t in s ? _s(s, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : s[t] = e, S = (s, t) => {\n for (var e in t || (t = {}))\n Os.call(t, e) && Ce(s, e, t[e]);\n if (_e)\n for (var e of _e(t))\n xs.call(t, e) && Ce(s, e, t[e]);\n return s;\n}, st = (s, t) => Cs(s, Es(t));\nvar Ee = (s, t, e) => Ss(As(s), e, t);\nvar y = (s, t, e) => new Promise((n, i) => {\n var r = (c) => {\n try {\n a(e.next(c));\n } catch (h) {\n i(h);\n }\n }, o = (c) => {\n try {\n a(e.throw(c));\n } catch (h) {\n i(h);\n }\n }, a = (c) => c.done ? n(c.value) : Promise.resolve(c.value).then(r, o);\n a((e = e.apply(s, t)).next());\n});\nvar Ps = Object.defineProperty, ks = Object.defineProperties, Ns = Object.getOwnPropertyDescriptors, Ae = Object.getOwnPropertySymbols, Ds = Object.prototype.hasOwnProperty, Ms = Object.prototype.propertyIsEnumerable, Oe = (s, t, e) => t in s ? Ps(s, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : s[t] = e, Ls = (s, t) => {\n for (var e in t || (t = {}))\n Ds.call(t, e) && Oe(s, e, t[e]);\n if (Ae)\n for (var e of Ae(t))\n Ms.call(t, e) && Oe(s, e, t[e]);\n return s;\n}, Is = (s, t) => ks(s, Ns(t));\nclass Rs {\n constructor(t) {\n const { events: e } = t.get(\"$widget\");\n this.events = e.createChild(this);\n }\n action(t, e, n) {\n this.events.dispatch(\n \"data:action\",\n { action: e, value: n, target: t },\n { bubbles: !0 }\n );\n }\n subscribe(t, e) {\n return this.events.subscribe(\n \"data:action\",\n (n, { action: i, value: r, target: o }) => t === o && e(t, i, r)\n );\n }\n}\nconst Wt = (s, t, e, ...n) => {\n const i = `[${s.get(\"$environment\").name || \"webprovisions\"}] ${e}`;\n switch (t) {\n case \"info\":\n console.info(i, ...n);\n break;\n case \"warning\":\n console.warn(i, ...n);\n break;\n case \"error\":\n console.error(i, ...n);\n break;\n }\n}, Ts = (s) => {\n const t = s.container || s;\n return {\n info: (e, ...n) => Wt(t, \"info\", e, ...n),\n warn: (e, ...n) => Wt(t, \"warning\", e, ...n),\n error: (e, ...n) => Wt(t, \"error\", e, ...n)\n };\n};\nvar ct = /* @__PURE__ */ ((s) => (s.Implementation = \"implementation\", s.Widget = \"widget\", s))(ct || {}), R = /* @__PURE__ */ ((s) => (s.Pre = \"pre\", s.Post = \"post\", s))(R || {});\nconst js = (s, t, e, n) => {\n try {\n const i = new t(e, n);\n return {\n name: s,\n invoke: (r, o) => {\n let a;\n return i[r] && (a = i[r].call(i, o)), Promise.resolve(a);\n },\n getInstance: () => i\n };\n } catch (i) {\n if (i.message && i.message.indexOf(\"is not a constructor\") >= 0)\n return {\n name: s,\n invoke: (r) => {\n let o;\n return r === \"initialize\" && (o = t(e, n)), Promise.resolve(o);\n },\n getInstance: () => t\n };\n throw i;\n }\n};\nfunction xe(s, t) {\n return typeof s == \"undefined\" ? t : s;\n}\nlet Vs = class {\n constructor(s = {}) {\n this.part = s;\n }\n createCommand(s, t, e) {\n let n;\n typeof t == \"function\" ? n = {\n scope: ct.Widget,\n stage: R.Post,\n defaultArgs: void 0,\n handlerResolver: t\n } : n = {\n scope: xe(t.scope, ct.Widget),\n stage: xe(t.stage, R.Post),\n defaultArgs: t.defaultArgs,\n handlerResolver: e\n };\n let i = this.part;\n const r = s.split(\".\");\n return r.forEach((o, a) => {\n a === r.length - 1 ? i[o] || (i[o] = () => n) : i = this.part[o] = this.part[o] || {};\n }), this;\n }\n get() {\n return this.part;\n }\n};\nconst Qe = (s) => {\n const t = new Vs({});\n return s(t), t.get();\n};\nQe((s) => {\n s.createCommand(\n \"types.register\",\n { scope: ct.Implementation, stage: R.Pre },\n (t) => (e, n) => {\n t.container.get(\"$types\")[e] = n;\n }\n ).createCommand(\n \"type\",\n { stage: R.Pre },\n (t) => (e) => {\n t.container.register(\"$type\", e);\n }\n ).createCommand(\n \"settings\",\n { stage: R.Pre, defaultArgs: [null] },\n (t) => (e) => {\n t.events.dispatch(\n \"settings:change\",\n e,\n { bubbles: !0 }\n ), t.container.register(\"$settings\", e);\n }\n ).createCommand(\n \"plugin\",\n { stage: R.Pre },\n (t) => (e, n, i) => {\n const { container: r } = t;\n let o = null, a = e, c = n;\n typeof e == \"string\" && (o = e, a = n, c = i);\n const h = (l) => {\n const { transformPluginSettings: d } = t.container.get(\"$environmentOptions\"), u = d ? d(\n c || {},\n o,\n t.container,\n a\n ) : n;\n try {\n const p = js(\n o,\n a,\n r,\n u\n );\n r.get(\"$plugins\").push(p), l && p.invoke(\"initialize\", null);\n } catch (p) {\n Ts(t).warn(\"Error when initializing plugin\", p);\n }\n };\n t.container.get(\"$instance\") ? h(!0) : t.events.subscribeOnce(\"widget:instance-created\", () => h(!1));\n }\n ).createCommand(\n \"container.register\",\n (t) => (e, n) => {\n t.container.register(e, n);\n }\n ).createCommand(\n \"container.registerAsync\",\n (t) => (e, n) => {\n t.container.registerAsync(e, n);\n }\n ).createCommand(\n \"container.registerFactory\",\n (t) => (e, n) => {\n t.container.registerFactory(e, n);\n }\n ).createCommand(\n \"container.touch\",\n (t) => (e, n) => {\n t.container.touch(e, n);\n }\n ).createCommand(\n \"csp\",\n {},\n (t) => (e) => {\n t.container.register(\"csp\", e);\n }\n );\n});\nQe((s) => {\n s.createCommand(\n \"ready\",\n { scope: ct.Implementation, stage: R.Pre },\n (t) => (e) => {\n const { container: n } = t, i = n.owner;\n n.get(\"bootstrapping\").ready ? e(i) : i.events.subscribeOnce(\"bootstrap:ready\", () => {\n e(i);\n });\n }\n );\n});\nconst Bt = (s, t, e, ...n) => {\n const i = `[${s.get(\"$environment\").name || \"webprovisions\"}] ${e}`;\n switch (t) {\n case \"info\":\n console.info(i, ...n);\n break;\n case \"warning\":\n console.warn(i, ...n);\n break;\n case \"error\":\n console.error(i, ...n);\n break;\n }\n}, Us = (s) => {\n const t = s.container || s;\n return {\n info: (e, ...n) => Bt(t, \"info\", e, ...n),\n warn: (e, ...n) => Bt(t, \"warning\", e, ...n),\n error: (e, ...n) => Bt(t, \"error\", e, ...n)\n };\n};\nvar Et = /* @__PURE__ */ ((s) => (s.Implementation = \"implementation\", s.Widget = \"widget\", s))(Et || {}), z = /* @__PURE__ */ ((s) => (s.Pre = \"pre\", s.Post = \"post\", s))(z || {});\nconst zs = (s, t, e, n) => {\n try {\n const i = new t(e, n);\n return {\n name: s,\n invoke: (r, o) => {\n let a;\n return i[r] && (a = i[r].call(i, o)), Promise.resolve(a);\n },\n getInstance: () => i\n };\n } catch (i) {\n if (i.message && i.message.indexOf(\"is not a constructor\") >= 0)\n return {\n name: s,\n invoke: (r) => {\n let o;\n return r === \"initialize\" && (o = t(e, n)), Promise.resolve(o);\n },\n getInstance: () => t\n };\n throw i;\n }\n};\nfunction Se(s, t) {\n return typeof s == \"undefined\" ? t : s;\n}\nclass Hs {\n constructor(t = {}) {\n this.part = t;\n }\n createCommand(t, e, n) {\n let i;\n typeof e == \"function\" ? i = {\n scope: Et.Widget,\n stage: z.Post,\n defaultArgs: void 0,\n handlerResolver: e\n } : i = {\n scope: Se(e.scope, Et.Widget),\n stage: Se(e.stage, z.Post),\n defaultArgs: e.defaultArgs,\n handlerResolver: n\n };\n let r = this.part;\n const o = t.split(\".\");\n return o.forEach((a, c) => {\n c === o.length - 1 ? r[a] || (r[a] = () => i) : r = this.part[a] = this.part[a] || {};\n }), this;\n }\n get() {\n return this.part;\n }\n}\nconst Xe = (s) => {\n const t = new Hs({});\n return s(t), t.get();\n};\nXe((s) => {\n s.createCommand(\n \"types.register\",\n { scope: Et.Implementation, stage: z.Pre },\n (t) => (e, n) => {\n t.container.get(\"$types\")[e] = n;\n }\n ).createCommand(\n \"type\",\n { stage: z.Pre },\n (t) => (e) => {\n t.container.register(\"$type\", e);\n }\n ).createCommand(\n \"settings\",\n { stage: z.Pre, defaultArgs: [null] },\n (t) => (e) => {\n t.events.dispatch(\n \"settings:change\",\n e,\n { bubbles: !0 }\n ), t.container.register(\"$settings\", e);\n }\n ).createCommand(\n \"plugin\",\n { stage: z.Pre },\n (t) => (e, n, i) => {\n const { container: r } = t;\n let o = null, a = e, c = n;\n typeof e == \"string\" && (o = e, a = n, c = i);\n const h = (l) => {\n const { transformPluginSettings: d } = t.container.get(\"$environmentOptions\"), u = d ? d(\n c || {},\n o,\n t.container,\n a\n ) : n;\n try {\n const p = zs(\n o,\n a,\n r,\n u\n );\n r.get(\"$plugins\").push(p), l && p.invoke(\"initialize\", null);\n } catch (p) {\n Us(t).warn(\"Error when initializing plugin\", p);\n }\n };\n t.container.get(\"$instance\") ? h(!0) : t.events.subscribeOnce(\"widget:instance-created\", () => h(!1));\n }\n ).createCommand(\n \"container.register\",\n (t) => (e, n) => {\n t.container.register(e, n);\n }\n ).createCommand(\n \"container.registerAsync\",\n (t) => (e, n) => {\n t.container.registerAsync(e, n);\n }\n ).createCommand(\n \"container.registerFactory\",\n (t) => (e, n) => {\n t.container.registerFactory(e, n);\n }\n ).createCommand(\n \"container.touch\",\n (t) => (e, n) => {\n t.container.touch(e, n);\n }\n ).createCommand(\n \"csp\",\n {},\n (t) => (e) => {\n t.container.register(\"csp\", e);\n }\n );\n});\nconst ts = (s) => {\n const t = [];\n return [\n (e, n) => {\n t.push(s.subscribe(e, n));\n },\n () => {\n t.forEach((e) => {\n e();\n });\n }\n ];\n};\nlet tt = class {\n constructor(t, e = []) {\n this.platform = t, this.rules = e;\n }\n match(t) {\n return this.rules.every((e) => !(e.id && e.id !== t.id || e.type && e.type !== t.type));\n }\n ofType(t) {\n return this.rules.push({ type: t }), this;\n }\n withId(t) {\n return this.rules.push({ id: t }), this;\n }\n select() {\n return new Ws(this.platform, this);\n }\n};\nclass pe {\n constructor(t, e, n) {\n this.platform = t, this.node = e, this.actions = new Mt(\n t,\n new tt(t).withId(e.id),\n n\n );\n const [i, r] = ts(\n this.platform.events\n );\n this.subscribe = i, this.unsubscribe = r;\n }\n properties(t) {\n return t && this.node.touchProperties((e) => t(e)), this.node.attributes.properties;\n }\n context(t) {\n return t && this.subscribe(\"components:context-changed\", (e, { node: n }) => {\n n === this.node && t(this.node.attributes.context);\n }), this.node.attributes.context;\n }\n layout(t) {\n return t && this.subscribe(\"components:layout-changed\", (e, { node: n }) => {\n n === this.node && t(this.node.attributes.layout);\n }), this.node.attributes.layout;\n }\n writeProperties(t, e) {\n this.node.writeProperties(t, e);\n }\n writeContext(t, e) {\n this.node.writeProperties(t, e);\n }\n writeLayout(t, e) {\n this.node.writeLayout(t, e);\n }\n dispose() {\n this.unsubscribe(), this.actions.dispose();\n }\n}\nclass Ws {\n constructor(t, e, n = !0) {\n this.platform = t, this.target = e, this.clearOnDispose = n, this.removes = [], this.actions = new Mt(this.platform, this.target);\n }\n writeProperties(t, e) {\n this.removes.push(\n this.platform.write({\n options: e,\n attributes: { properties: t },\n target: this.target,\n removable: this.clearOnDispose\n })\n );\n }\n writeContext(t, e) {\n this.removes.push(\n this.platform.write({\n options: e,\n attributes: { context: t },\n target: this.target,\n removable: this.clearOnDispose\n })\n );\n }\n writeLayout(t, e) {\n this.removes.push(\n this.platform.write({\n options: e,\n attributes: { layout: t },\n target: this.target,\n removable: this.clearOnDispose\n })\n );\n }\n dispose() {\n this.removes.forEach((t) => {\n t();\n }), this.actions.dispose();\n }\n}\nconst Bs = (s, t, e) => {\n const n = s.concat(), i = (r, o, a) => {\n let c = !0;\n if (n.length) {\n const h = n.shift(), l = (d, u) => (c = !1, i(d, Object.assign({}, o, u), a));\n return Promise.resolve(h(r, l, a)).then((d) => Is(Ls({}, d), {\n cancelled: c\n }));\n }\n return Promise.resolve({ data: r, cancelled: !1, options: o });\n };\n return i(t, {}, e);\n};\nclass Mt {\n constructor(t, e, n) {\n this.platform = t, this.target = e, this.ns = n, this.subscriptions = [], this.create = this.create.bind(this);\n }\n create(t, e = () => {\n }) {\n const n = {\n key: t,\n fn: e,\n target: this.target,\n ns: this.ns\n };\n this.platform.actionsState.handlers.push(n);\n const i = () => {\n const r = this.platform.actionsState.handlers.indexOf(n);\n r > -1 && this.platform.actionsState.handlers.splice(r, 1);\n };\n return this.subscriptions.push(i), i;\n }\n dispatch(t, e) {\n const n = this.platform.nodes.all.concat(\n this.platform.nodes.detached\n ), i = {}, r = this.platform.actionsState.handlers.filter(\n (o) => o.key === t && (!o.ns || !this.ns || o.ns === this.ns)\n );\n return Promise.all(\n r.map((o) => {\n const a = n.filter(\n (h) => o.target.match(h) && this.target.match(h)\n ), c = this.platform.actionsState.watchers.filter((h) => h.key === t && (!h.ns || !this.ns || h.ns === this.ns) && a.some((l) => h.target.match(l))).map((h) => h.fn);\n return Promise.all(\n a.map((h) => {\n const l = new pe(\n this.platform,\n h,\n this.ns\n );\n return Bs(c, e, l).then((d) => {\n const { data: u = {}, options: p, cancelled: _ } = d;\n return Promise.resolve(\n _ ? {} : o.fn(u, p, l)\n ).then((f) => {\n i[h.id] = f;\n });\n });\n })\n );\n })\n ).then(() => i);\n }\n watch(t, e) {\n let n = t, i = this.ns;\n const r = t.split(\".\");\n r.length > 1 && (i = r[0], n = r.splice(1).join(\".\"));\n const o = {\n fn: e,\n target: this.target,\n key: n,\n ns: i\n };\n this.platform.actionsState.watchers.push(o);\n const a = () => {\n const c = this.platform.actionsState.watchers.indexOf(o);\n c > -1 && this.platform.actionsState.watchers.splice(c, 1);\n };\n return this.subscriptions.push(a), a;\n }\n dispose() {\n this.subscriptions.forEach((t) => t());\n }\n}\nXe((s) => {\n s.createCommand(\"components\", (t) => (e) => {\n t.events.subscribeOnce(\n \"components:platform-created\",\n (n, { platform: i }) => {\n e.handlers && e.handlers.forEach(([r, o]) => {\n i.addComponentHandler(r, o);\n });\n }\n );\n });\n});\nconst Lt = (s, t, ...e) => typeof t == \"string\" ? s(`[humany] ${t}`, ...e) : s(t, ...e), rt = class {\n constructor() {\n this.keys = [], this.log = (t, ...e) => this.lookup(t, () => rt.log(...e)), this.warn = (t, ...e) => this.lookup(t, () => rt.warn(...e)), this.error = (t, ...e) => this.lookup(t, () => rt.error(...e)), this.info = (t, ...e) => this.lookup(t, () => rt.info(...e));\n }\n lookup(t, e) {\n this.keys.indexOf(t) === -1 && (this.keys.push(t), e());\n }\n};\nlet K = rt;\nK.log = (...s) => Lt(console.log, ...s);\nK.warn = (...s) => Lt(console.warn, ...s);\nK.error = (...s) => Lt(console.error, ...s);\nK.info = (...s) => Lt(console.info, ...s);\nconst N = () => Math.floor((1 + Math.random()) * 65536).toString(16).substring(1);\nfunction ge() {\n return N() + N() + \"-\" + N() + \"-\" + N() + \"-\" + N() + \"-\" + N() + N() + N();\n}\nclass ae {\n constructor(t, e) {\n this.events = t, this.tags = [], this.children = {}, this.changesets = [], this.mountCount = 0, this.id = ge(), this.type = e, this.attributes = {\n context: {},\n properties: {},\n layout: {},\n tags: []\n }, this.writeLayout({ size: \"full\", indent: 0 });\n }\n mount(t, e) {\n let n = t.get(\"mounted-nodes\");\n return n || (n = /* @__PURE__ */ new Map(), t.register(\"mounted-nodes\", n)), n.has(this) ? (process.env.NODE_ENV !== \"production\" && K.error(\n \"Trying to mount an already mounted component node.\",\n this\n ), () => {\n }) : (this.events.dispatch(\"components:node-mounted\", { node: this }), this.mountCount === 0 && (this.mountCount = this.mountCount + 1, this.events.dispatch(\"components:node-enter\", { node: this })), () => {\n n.delete(this), this.events.dispatch(\"components:node-unmounted\", { node: this }), this.mountCount = this.mountCount - 1, this.mountCount === 0 && this.events.dispatch(\"components:node-exit\", { node: this });\n });\n }\n appendChild(t, e = \"default\") {\n if (t.parent) {\n if (t.parent === this)\n return;\n t.parent.removeChild(t);\n }\n t.parent = this, this.children[e] || (this.children[e] = []), this.children[e].push(t), this.events.dispatch(\"components:node-appended\", { node: t });\n }\n prependChild(t, e = \"default\") {\n if (t.parent) {\n if (t.parent === this)\n return;\n t.parent.removeChild(t);\n }\n t.parent = this, this.children[e] || (this.children[e] = []), this.children[e].unshift(t), this.events.dispatch(\"components:node-appended\", { node: t });\n }\n touchProperties(t, e = {}, n) {\n const i = [{ properties: t }, e];\n return this.changesets.push(i), this.events.dispatch(\"components:set-properties\", { node: this }), () => {\n if (n) {\n const r = this.changesets.indexOf(i);\n r > -1 && (this.changesets.splice(r, 1), this.events.dispatch(\"components:set-properties\", { node: this }));\n }\n };\n }\n writeProperties(t, e = {}, n) {\n const i = [{ properties: t }, e];\n return this.changesets.push(i), this.events.dispatch(\"components:set-properties\", { node: this }), () => {\n if (n) {\n const r = this.changesets.indexOf(i);\n r > -1 && (this.changesets.splice(r, 1), this.events.dispatch(\"components:set-properties\", { node: this }));\n }\n };\n }\n writeLayout(t, e = {}, n) {\n const i = [{ layout: t }, e];\n return this.changesets.push(i), this.events.dispatch(\"components:set-layout\", { node: this }), () => {\n if (!n)\n return;\n const r = this.changesets.indexOf(i);\n r > -1 && (this.changesets.splice(r, 1), this.events.dispatch(\"components:set-layout\", { node: this }));\n };\n }\n writeContext(t, e = {}, n) {\n const i = [{ context: t }, e];\n return this.changesets.push(i), this.events.dispatch(\"components:set-context\", { node: this }), () => {\n if (!n)\n return;\n const r = this.changesets.indexOf(i);\n r > -1 && (this.changesets.splice(r, 1), this.events.dispatch(\"components:set-context\", { node: this }));\n };\n }\n getChildren(t = \"default\") {\n const e = this.children[t] || [];\n return e.reduce((n, i, r) => {\n const { order: o = r } = i.attributes.layout;\n return n[o] ? n.splice(o, 0, i) : n[o] = i, n;\n }, Array(e.length));\n }\n remove() {\n this.parent && this.parent.removeChild(this);\n }\n removeChild(t) {\n Object.keys(this.children).forEach((e) => {\n const n = this.children[e], i = n.indexOf(t);\n i > -1 && (n.splice(i, 1), this.events.dispatch(\"components:node-removed\", {\n node: t,\n parentNode: this\n }));\n }), delete t.parent;\n }\n}\nconst es = (s, t, e) => {\n for (let n = 0, i = s.length; n < i && e(s[n]) !== !0; n++) {\n const r = t[s[n].id] || \"default\", o = s[n].getChildren(r);\n es(o, t, e);\n }\n}, It = (s, t, e) => {\n if (e(s) !== !0) {\n const n = t[s.id] || \"default\", i = s.children[n];\n es(i, t, e);\n }\n}, wt = (s, t) => {\n const e = [];\n return It(s, t, (n) => {\n e.push(n);\n }), e;\n}, ss = (s, t, e) => {\n let n;\n return It(s, t, (i) => {\n if (e(i))\n return n = i, !0;\n }), n;\n};\nclass qs {\n constructor(t, e, n) {\n this.root = t, this.switches = e, this.all = [], this.visible = [], this.detached = [], n.subscribe(\n \"components:node-appended\",\n (i, r) => {\n this.all.push(r.node), this.visible = wt(t, e);\n }\n ), n.subscribe(\n \"components:node-removed\",\n (i, r) => {\n let o = this.all.indexOf(r.node);\n o > -1 && this.all.splice(o, 1), o = this.visible.indexOf(r.node), o > -1 && this.visible.splice(o, 1), this.visible = wt(t, e);\n }\n ), n.subscribe(\n \"components:node-switched\",\n (i, r) => {\n this.visible = wt(t, e);\n }\n );\n }\n query(t = {}) {\n const e = [];\n return It(this.root, this.switches, (n) => {\n Object.keys(t).every((i) => t[i] === n[i]) && e.push(n);\n }), e;\n }\n get(t) {\n return ss(this.root, this.switches, (e) => e.id === t) || this.detached.find((e) => e.id === t);\n }\n}\nclass Js {\n constructor() {\n this.handlers = /* @__PURE__ */ new Map();\n }\n add(t, e) {\n this.handlers.set(t, e);\n }\n get(t) {\n return this.handlers.get(t);\n }\n}\nconst Fs = (s) => {\n let t = s, e = 0;\n for (; t.parent; )\n e = e + 1, t = t.parent;\n return e;\n}, Ks = (s) => s.map(([t, e]) => [Fs(t), t, e]).sort(([t], [e]) => t - e).map(([, t, e]) => [t, e]), qt = (s) => s instanceof Date ? !1 : s && typeof s == \"object\" && !Array.isArray(s), P = (s, ...t) => {\n if (!t.length)\n return s;\n const e = t.shift();\n if (qt(s) && qt(e))\n for (const n in e)\n qt(e[n]) ? (s[n] || Object.assign(s, { [n]: {} }), P(s[n], e[n])) : Object.assign(s, { [n]: e[n] });\n return P(s, ...t);\n}, Gs = (s, t) => !s || s === \"all\" ? !0 : s.some((e) => t.indexOf(e) > -1), Ys = (s, t) => {\n let e = [], n = [], i;\n const r = () => {\n process.env.NODE_ENV !== \"production\" && console.time(\"state-processor.flush\");\n const a = /* @__PURE__ */ new Map(), c = Ks(e.map((l, d) => [l, n[d]])), h = (l, d) => {\n var u;\n const p = a.get(l) || {}, _ = d.context && !p.context, f = d.properties && !p.properties, C = d.layout && !p.layout;\n a.set(l, {\n context: p.context || _,\n properties: p.properties || f,\n layout: p.layout || C\n }), f && (l.attributes.properties = {}), C && (l.attributes.layout = {}), _ && (l.attributes.context = P({}, (u = l.parent) == null ? void 0 : u.attributes.context));\n const x = [], mt = [], zt = [];\n if (l.changesets.forEach((A) => {\n const [$, Ht] = A;\n Gs(Ht.breakpoints, s.breakpoints) && (f && (typeof $.properties == \"function\" ? x.push(\n $.properties\n ) : P(l.attributes.properties, $.properties)), C && (typeof $.layout == \"function\" ? mt.push($.layout) : P(l.attributes.layout, $.layout)), _ && (typeof $.context == \"function\" ? zt.push($.context) : P(l.attributes.context, $.context)));\n }), x.forEach((A) => {\n P(l.attributes.properties, A(l.attributes.properties));\n }), mt.forEach((A) => {\n P(l.attributes.layout, A(l.attributes.layout));\n }), zt.forEach((A) => {\n P(l.attributes.context, A(l.attributes.context));\n }), _ || d.recursive) {\n const A = s.getBranch(l), $ = d.recursive ? d : {\n context: !!_\n };\n l.getChildren(A).forEach((Ht) => {\n h(Ht, $);\n });\n }\n };\n process.env.NODE_ENV !== \"production\" && console.timeEnd(\"state-processor.flush\"), c.forEach(([l, d]) => {\n h(l, d);\n }), e = [], n = [], t(a);\n }, o = () => {\n clearTimeout(i), i = setTimeout(r, 0);\n };\n return (a, c) => {\n const h = e.indexOf(a);\n if (h > -1) {\n const l = n[h];\n return c.context && (l.context = !0), c.properties && (l.properties = !0), c.layout && (l.layout = !0), c.recursive && (l.recursive = !0), o();\n }\n return e.push(a), n.push(c), o();\n };\n};\nclass pt {\n constructor(t, e = {}) {\n this.providers = e, this.breakpoints = [], this.actionsState = { handlers: [], watchers: [] }, this.switches = {}, this.changesets = [], this.subscriptions = [], this.customComponentHandler = new Js(), this.events = t.events.createChild(this);\n const n = new ae(this.events, \"root\");\n n.name = `root-${t.name}`, this.nodes = new qs(n, this.switches, this.events);\n const i = this.processNode = Ys(\n this,\n (r) => {\n const o = Array.from(r.keys());\n process.env.NODE_ENV !== \"production\" && console.info(`STATE PROCESSOR: ${o.length} node(s) processed:\n${o.map(\n (a) => `${a.name || \"<no name>\"} (${a.id})\n`\n )}`), o.forEach((a) => {\n const c = r.get(a);\n a.parent && a.parent.type === \"root\" && this.events.dispatch(\"components:root-children-changed\", { node: a }), c != null && c.context && this.events.dispatch(\"components:context-changed\", { node: a }), c != null && c.properties && this.events.dispatch(\"components:properties-changed\", { node: a }), c != null && c.layout && this.events.dispatch(\"components:layout-changed\", { node: a });\n }), this.events.dispatch(\n \"components:component-model-initialized\",\n {},\n { bubbles: !0 }\n );\n }\n );\n Promise.all(\n Object.keys(e).map((r) => e[r].load(this))\n ), this.subscriptions.push(\n this.events.subscribe(\n \"components:node-appended\",\n (r, o) => {\n const { node: a } = o;\n this.changesets.forEach((c) => {\n const { changeset: h, target: l, removes: d } = c, [u, p] = h;\n l.match(o.node) && (u.properties && d.push(a.writeProperties(u.properties, p)), u.context && d.push(a.writeContext(u.context, p)), u.layout && d.push(a.writeLayout(u.layout, p)));\n });\n }\n )\n ), this.subscriptions.push(\n this.events.subscribe(\n \"components:node-appended\",\n (r, o) => {\n i(o.node, { properties: !0, context: !0 });\n }\n )\n ), this.subscriptions.push(\n this.events.subscribe(\n \"components:set-properties\",\n (r, o) => {\n i(o.node, { properties: !0 });\n }\n )\n ), this.subscriptions.push(\n this.events.subscribe(\n \"components:set-context\",\n (r, o) => {\n i(o.node, { properties: !0, context: !0 });\n }\n )\n ), this.subscriptions.push(\n this.events.subscribe(\n \"components:set-indent\",\n (r, o) => {\n i(o.node, { layout: !0 });\n }\n )\n ), this.subscriptions.push(\n this.events.subscribe(\n \"components:set-layout\",\n (r, o) => {\n i(o.node, { layout: !0 });\n }\n )\n ), this.subscriptions.push(\n this.events.subscribe(\n \"components:node-switched\",\n (r, { node: o, branch: a }) => {\n i(o, {\n layout: !0,\n recursive: !0,\n properties: !0,\n context: !0\n });\n }\n )\n ), this.subscriptions.push(\n this.events.subscribe(\n \"components:node-removed\",\n (r, { parentNode: o }) => {\n i(o, { properties: !0 });\n }\n )\n ), this.events.parent && this.events.parent.dispatch(\"components:platform-created\", {\n platform: this\n });\n }\n static getInstance(t) {\n return t.getAsync(\"components\");\n }\n addBreakpoint(t) {\n this.breakpoints.indexOf(t) === -1 && (this.breakpoints.push(t), this.processNode(this.nodes.root, {\n context: !0,\n properties: !0,\n layout: !0,\n recursive: !0\n }));\n }\n removeBreakpoint(t) {\n const e = this.breakpoints.indexOf(t);\n e > -1 && (this.breakpoints.splice(e, 1), this.processNode(this.nodes.root, {\n context: !0,\n properties: !0,\n layout: !0,\n recursive: !0\n }));\n }\n setSwitch(t, e) {\n this.switches[t.id] = e, this.events.dispatch(\"components:node-switched\", { node: t, branch: e });\n }\n getBranch(t) {\n return this.switches[t.id];\n }\n /**\n * Creates a `ComponentNode` of the specified type.\n * @param type Type of node.\n */\n createNode(t, e = {}) {\n const n = new ae(this.events, t);\n return e.detached && this.nodes.detached.push(n), n;\n }\n components() {\n return new tt(this);\n }\n actions(t, e) {\n return new Mt(this, t, e);\n }\n write(t) {\n const {\n provider: e,\n target: n,\n attributes: i,\n options: r = {},\n removable: o\n } = t, a = t.key || ge(), c = { changeset: [i, r], target: n, removes: [] };\n if (e) {\n const h = this.providers[e];\n h.write(a, n, i, r), c.removes.push(() => {\n h.remove(a);\n });\n }\n return this.changesets.push(c), this.nodes.all.forEach((h) => {\n if (n.match(h)) {\n let l = () => {\n };\n i.properties && (l = h.writeProperties(\n i.properties,\n r,\n o\n )), i.context && (l = h.writeContext(i.context, r, o)), i.layout && (l = h.writeContext(i.layout, r, o)), c.removes.push(l);\n }\n }), () => {\n if (o) {\n c.removes.forEach((l) => l());\n const h = this.changesets.indexOf(c);\n h > -1 && this.changesets.splice(h, 1);\n }\n };\n }\n addComponentHandler(t, e) {\n this.customComponentHandler.add(t, e);\n }\n getComponentHandler(t) {\n return this.customComponentHandler.get(t);\n }\n dispose() {\n this.subscriptions.forEach((t) => t());\n }\n}\nconst Zs = (s) => {\n if (Array.isArray(s)) {\n const [t, ...e] = s;\n return {\n definitionId: t,\n overrides: e\n };\n }\n return {\n definitionId: s,\n overrides: []\n };\n}, At = (s, t, e, n, i, r) => {\n e.forEach((o) => {\n const a = Zs(o), c = n[a.definitionId];\n if (a.definitionId === \"view\") {\n const h = s.createNode(\"view\");\n h.name = \"view\", Object.keys(i).forEach((l) => {\n const d = i[l];\n At(s, h, [d.entry], n, i, l);\n }), t.appendChild(h), a.overrides.forEach((l) => {\n l.properties && h.writeProperties(l.properties, {\n breakpoints: l.breakpoints\n }), l.context && h.writeContext(l.context, { breakpoints: l.breakpoints }), l.layout && h.writeLayout(l.layout, { breakpoints: l.breakpoints });\n });\n } else if (s.getComponentHandler(c.type)) {\n const h = s.getComponentHandler(c.type);\n h && h(a, {\n platform: s,\n node: t,\n references: e,\n definitions: n,\n views: i,\n branch: r\n });\n } else {\n const h = n[a.definitionId];\n if (process.env.NODE_ENV !== \"production\" && !h) {\n K.error(\n `No definition found for component type '${a.definitionId}'.`\n );\n return;\n }\n const l = s.createNode(h.type);\n l.name = a.definitionId, l.tags = h.tags || [], h.properties && l.writeProperties(h.properties), h.context && l.writeContext(h.context), h.layout && l.writeLayout(h.layout), t.appendChild(l, r), a.overrides.forEach((d) => {\n const u = { breakpoints: d.breakpoints };\n d.properties && l.writeProperties(d.properties, u), d.context && l.writeContext(d.context, u), d.layout && l.writeLayout(d.layout, u);\n }), h.children && At(s, l, h.children, n, i);\n }\n });\n}, ns = (s, t) => {\n const { entry: e, components: n, breakpoints: i, views: r } = t, o = [];\n return Object.keys(i).forEach((a) => {\n const c = i[a], h = window.matchMedia(c);\n h.matches && s.breakpoints.push(a);\n const l = (d) => {\n d.matches ? s.addBreakpoint(a) : s.removeBreakpoint(a);\n };\n h.addListener(l), o.push(() => h.removeListener(l));\n }), At(s, s.nodes.root, [e], n, r), () => o.forEach((a) => {\n a();\n });\n}, ce = (s, t) => ({\n id: s.id,\n type: s.type,\n name: s.name,\n branch: t || \"default\"\n}), is = (s, t, e, n = ge(), i = {}) => s.getAsync(\"components\").then((r) => {\n let o;\n if (typeof t == \"string\") {\n const h = new tt(r);\n h.ofType(t), o = h;\n } else\n o = t;\n const a = {}, c = (h) => {\n const l = a[h.id];\n return l ? Promise.resolve(l.controller) : pt.getInstance(s).then((d) => new pe(d, h, n));\n };\n r.events.subscribe(\n \"components:node-enter\",\n (h, { node: l }) => {\n o.match(l) && c(l).then((d) => {\n Promise.resolve(e(d)).then((u) => {\n a[l.id] = {\n dispose: u,\n controller: d\n };\n });\n });\n }\n ), r.events.subscribe(\n \"components:node-exit\",\n (h, { node: l }) => {\n const d = a[l.id];\n d && (d.dispose && d.dispose(), i.reuseController || (d.controller.dispose(), delete a[l.id]));\n }\n );\n});\nclass Qs {\n constructor(t) {\n this.aliases = /* @__PURE__ */ new Map(), this.components = /* @__PURE__ */ new Map(), this.logger = new K();\n const { events: e } = t.get(\"$widget\");\n this.events = e;\n }\n getComponent(t) {\n const e = this.aliases.get(t), n = this.components.get(e || t) || null;\n return process.env.NODE_ENV !== \"production\" && (n || this.logger.warn(\n e || t,\n `Unable to resolve component: \"${e || t}\". You most likely forgot to register the required plugin for: ${e || t}.`\n )), n;\n }\n registerComponent(t, e) {\n return this.components.set(t, e), this.events.dispatch(\"component-resolver:resolve\", t), () => {\n this.components.delete(t);\n };\n }\n registerResolver(t, e) {\n return this.events.subscribe(\n \"component-resolver:resolve\",\n (n, i) => {\n if (i === t) {\n const r = this.getComponent(t);\n e(r);\n }\n }\n );\n }\n registerAlias(t, e) {\n return this.aliases.set(t, e), this.events.dispatch(\"component-resolver:resolve\", t), () => {\n this.aliases.delete(t);\n };\n }\n}\nvar E = /* @__PURE__ */ ((s) => (s.open = \"open\", s.closed = \"closed\", s.hidden = \"hidden\", s))(E || {});\nconst me = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({\n __proto__: null,\n ActionResolver: Rs,\n ActionsController: Mt,\n ComponentNode: ae,\n ComponentNodeController: pe,\n ComponentPlatform: pt,\n ComponentQuery: tt,\n ComponentResolver: Qs,\n WidgetRenderState: E,\n asDescriptor: ce,\n createChildren: At,\n createComponentModel: ns,\n createEventSubscriber: ts,\n extendComponent: is,\n findComponent: ss,\n findVisibleComponents: wt,\n traverseComponents: It\n}, Symbol.toStringTag, { value: \"Module\" })), Rt = (s, t, ...e) => typeof t == \"string\" ? s(`[humany] ${t}`, ...e) : s(t, ...e), ot = class {\n constructor() {\n this.keys = [], this.log = (t, ...e) => this.lookup(t, () => ot.log(...e)), this.warn = (t, ...e) => this.lookup(t, () => ot.warn(...e)), this.error = (t, ...e) => this.lookup(t, () => ot.error(...e)), this.info = (t, ...e) => this.lookup(t, () => ot.info(...e));\n }\n lookup(t, e) {\n this.keys.indexOf(t) === -1 && (this.keys.push(t), e());\n }\n};\nlet w = ot;\nw.log = (...s) => Rt(console.log, ...s);\nw.warn = (...s) => Rt(console.warn, ...s);\nw.error = (...s) => Rt(console.error, ...s);\nw.info = (...s) => Rt(console.info, ...s);\nconst rs = (s) => {\n let t = {}, e, n;\n if (typeof s != \"object\" || s === null)\n return s;\n t = Array.isArray(s) ? [] : {};\n for (n in s)\n e = s[n], t[n] = typeof e == \"object\" && e !== null ? rs(e) : e;\n return t;\n}, Xs = rs;\nfunction Pe(s) {\n let t = 0;\n if (s.length === 0)\n return t.toString();\n for (let e = 0; e < s.length; e++) {\n const n = s.charCodeAt(e);\n t = (t << 5) - t + n, t = t & t;\n }\n return t.toString();\n}\nlet tn = class {\n constructor(t, e) {\n this.lockWarningTime = t, this.lockErrorTime = e, this.tasks = [], this.current = Promise.resolve(), this.next = this.next.bind(this);\n }\n add(t, e, n, i) {\n this.tasks.push({ task: t, resolve: e, reject: n, done: i }), this.next();\n }\n next() {\n this.current = this.current.then(() => {\n const t = this.tasks.shift();\n if (t) {\n let e;\n const n = setTimeout(() => {\n process.env.NODE_ENV !== \"production\" && w.warn(\n `A lock has exceeded ${this.lockWarningTime} ms. Waiting additional ${this.lockErrorTime} ms before rejecting the task.`,\n t\n ), e = setTimeout(() => {\n t.reject(\"lock timeout exceeded\");\n }, this.lockErrorTime);\n }, this.lockWarningTime), i = Promise.resolve(t.task()).then((r) => (clearTimeout(n), clearTimeout(e), r));\n return Promise.resolve(i).then(this.next).then(\n () => i.then((r) => {\n t.done(), t.resolve(r);\n })\n ).catch((r) => (t.done(), t.reject(r), this.next()));\n }\n return Promise.resolve();\n });\n }\n};\nconst ft = /* @__PURE__ */ new WeakMap();\nfunction O(s, t = 5e3, e = 1e3) {\n return ft.has(s) || ft.set(s, new tn(t, e)), (n) => new Promise((i, r) => {\n const o = ft.get(s);\n o.add(n, i, r, () => {\n o.tasks.length || ft.delete(s);\n });\n });\n}\nconst en = (s, t) => {\n const e = () => t.querySelectorAll(\"[data-loading=true]\").length > 0, n = (() => {\n let i = !1;\n return () => {\n i || (s.get(\"$widget\").events.dispatch(\"widget:data-loaded\", {\n element: t\n }), i = !0);\n };\n })();\n if (!e())\n return n();\n new MutationObserver((i, r) => {\n i.find(\n (o) => o.type === \"attributes\" && o.attributeName === \"data-loading\"\n ) && !e() && (r.disconnect(), n());\n }).observe(t, {\n attributes: !0,\n childList: !0,\n subtree: !0\n });\n}, sn = (s, t) => {\n s.get(\"$widget\").container.getAsync(\"components\").then((e) => {\n e.events.subscribeOnce(\"components:component-model-initialized\", () => {\n let n = e.nodes.visible.reduce(\n (r, o) => (!o.name || !o.type || o.type === \"view\" || o.type === \"root\" || o.attributes.layout.size === \"none\" || t.querySelector(`[data-name=\"${o.name}\"]`) || r.push(o.name), r),\n []\n ), i = !1;\n new MutationObserver((r, o) => {\n r.forEach((a) => {\n if (a.addedNodes) {\n const c = Array.from(\n a.addedNodes\n ).reduce((h, l) => {\n const d = l.getAttribute && l.getAttribute(\"data-name\");\n return d && n.indexOf(d) > -1 && h.push(d), h;\n }, []);\n n = n.filter((h) => c.indexOf(h) === -1), !i && n.length === 0 && (i = !0, en(s, t), o.disconnect());\n }\n });\n }).observe(t, {\n attributes: !1,\n characterData: !1,\n childList: !0,\n subtree: !0,\n attributeOldValue: !1,\n characterDataOldValue: !1\n });\n });\n });\n}, nn = sn, D = () => Math.floor((1 + Math.random()) * 65536).toString(16).substring(1);\nfunction os() {\n return D() + D() + \"-\" + D() + \"-\" + D() + \"-\" + D() + \"-\" + D() + D() + D();\n}\nvar rn = Object.defineProperty, ke = Object.getOwnPropertySymbols, on = Object.prototype.hasOwnProperty, an = Object.prototype.propertyIsEnumerable, Ne = (s, t, e) => t in s ? rn(s, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : s[t] = e, G = (s, t) => {\n for (var e in t || (t = {}))\n on.call(t, e) && Ne(s, e, t[e]);\n if (ke)\n for (var e of ke(t))\n an.call(t, e) && Ne(s, e, t[e]);\n return s;\n}, vt = (s, t, e) => new Promise((n, i) => {\n var r = (c) => {\n try {\n a(e.next(c));\n } catch (h) {\n i(h);\n }\n }, o = (c) => {\n try {\n a(e.throw(c));\n } catch (h) {\n i(h);\n }\n }, a = (c) => c.done ? n(c.value) : Promise.resolve(c.value).then(r, o);\n a((e = e.apply(s, t)).next());\n}), m = /* @__PURE__ */ ((s) => (s.Cookie = \"cookie\", s.Local = \"local\", s.Session = \"session\", s))(m || {}), et = /* @__PURE__ */ ((s) => (s.Tenant = \"tenant\", s.Implementation = \"implementation\", s.Widget = \"widget\", s))(et || {}), g = /* @__PURE__ */ ((s) => (s.Necessary = \"necessary\", s.Functional = \"functional\", s.Analytical = \"analytical\", s.Marketing = \"marketing\", s))(g || {});\nconst M = (s, t, e, n = {}) => De(s, e).then((i) => (process.env.NODE_ENV !== \"production\" && i && w.warn(\n `createStorageWriter: Attempted to create storage writer using unallowed category.\n Key: ${t}\n Category: ${JSON.stringify(e)}\n Options: ${JSON.stringify(n)}`\n), (r) => (ye(s), De(s, e).then((o) => {\n if (o) {\n process.env.NODE_ENV !== \"production\" && w.warn(\n `storageWriter: Attempted to write to storage using unallowed category.\n Key: ${t}\n Category: ${JSON.stringify(e)}\n Value: ${JSON.stringify(r)}\n Options: ${JSON.stringify(n)}`\n );\n return;\n }\n const {\n scope: a = et.Widget,\n medium: c = m.Session,\n duration: h\n } = n, l = hn();\n return l[a][t] = ve(r, e, h), c === m.Cookie ? pn(s, l) : mn(s, c, l);\n})))), k = (s, t, e = m.Session) => (ye(s), typeof t == \"undefined\" ? (process.env.NODE_ENV !== \"production\" && w.warn(\"readStorage: Undefined key passed when reading storage. \", t, e), Promise.resolve(void 0)) : e === m.Cookie ? un(s).then((n) => xt(n, t)) : gn(s, e).then((n) => xt(n, t))), Z = (s) => !!Object.entries(s).filter(([t, e]) => typeof e != \"undefined\").length, Jt = (s) => Object.entries(s).filter(([t, e]) => typeof e != \"undefined\").forEach(([t, { value: e }]) => {\n typeof e == \"undefined\" && delete s[t];\n}), as = (s, t) => {\n const e = {\n tenant: G(G({}, s.tenant), t.tenant),\n implementation: G(G({}, s.implementation), t.implementation),\n widget: G(G({}, s.widget), t.widget)\n };\n return Jt(e.tenant), Jt(e.implementation), Jt(e.widget), e;\n}, cn = (s) => Object.entries(s).reduce((t, e) => {\n const [n, i] = e;\n return Object.entries(i).forEach((r) => {\n const [o, { expiration: a }] = r;\n a && t.push(a);\n }), t;\n}, []).slice().sort((t, e) => new Date(e).valueOf() - new Date(t).valueOf()).shift() || jt(), Tt = (s) => {\n const {\n name: t,\n implementation: { name: e, tenant: n }\n } = s.get(\"$widget\");\n return [\n `humany_${n}`,\n `humany_${Pe(n + e)}`,\n `humany_${Pe(n + e + t)}`\n ];\n}, Ft = (s) => {\n const t = new RegExp(`(?:^|;)\\\\s?${s}=(.*?)(?:;|$)`, \"i\"), e = document.cookie.match(t);\n return e && e[1] && JSON.parse(e[1]) || void 0;\n}, Kt = (s, t, e) => {\n const n = `${s}=${JSON.stringify(t).trim()}`, i = `expires=${new Date(e).toUTCString()}`, r = \"path=/\", o = \"SameSite=None;Secure\";\n return document.cookie = `${n}; ${i}; ${r}; ${o}`;\n}, fe = (s) => {\n const [t, e, n] = Tt(s), i = Ft(t) || {}, r = Ft(e) || {}, o = Ft(n) || {};\n return {\n tenant: i,\n implementation: r,\n widget: o\n };\n}, cs = (s, t) => {\n const e = fe(s), n = as(e, t), [i, r, o] = Tt(s), { tenant: a, implementation: c, widget: h } = n, l = cn(t), d = jt({ days: -1 });\n Kt(i, a, Z(a) ? l : d), Kt(\n r,\n c,\n Z(c) ? l : d\n ), Kt(o, h, Z(h) ? l : d);\n}, Ot = (s, t) => {\n const [e, n, i] = Tt(s), r = t.getItem(e) || \"{}\", o = t.getItem(n) || \"{}\", a = t.getItem(i) || \"{}\";\n return {\n tenant: JSON.parse(r),\n implementation: JSON.parse(o),\n widget: JSON.parse(a)\n };\n}, he = (s, t, e) => {\n const n = Ot(s, t), i = as(n, e), [r, o, a] = Tt(s), { tenant: c, implementation: h, widget: l } = i;\n Z(c) ? t.setItem(r, JSON.stringify(c)) : t.removeItem(r), Z(h) ? t.setItem(o, JSON.stringify(h)) : t.removeItem(o), Z(l) ? t.setItem(a, JSON.stringify(l)) : t.removeItem(a);\n}, hn = () => ({ tenant: {}, implementation: {}, widget: {} }), ln = (s) => s ? !!s && /* @__PURE__ */ new Date() > new Date(s) : !1, xt = (s, t) => {\n const e = s.widget[t] || s.implementation[t] || s.tenant[t];\n return e == null ? void 0 : e.value;\n}, ve = (s, t, e) => e ? {\n value: s,\n category: t,\n expiration: typeof e == \"object\" ? jt(e) : e\n} : {\n value: s,\n category: t\n}, $t = (s, t) => {\n const e = Xs(s);\n return Object.entries(e).forEach(([n, i]) => {\n Object.entries(i).forEach(([r, o]) => {\n const { expiration: a, category: c } = o;\n (ln(a) || dn(t, c)) && (i[r] = ve(void 0, c, a));\n });\n }), e;\n}, De = (s, t) => k(s, \"storagePolicy\", m.Cookie).then(\n (e = [g.Necessary]) => !!t && e.indexOf(t) === -1\n), dn = (s = [g.Necessary], t) => !!t && s.indexOf(t) === -1, ye = (s) => {\n const t = fe(s), e = Ot(s, window.localStorage), n = Ot(s, sessionStorage), i = xt(t, \"storagePolicy\"), [r, o, a] = [\n t,\n e,\n n\n ].map((c) => $t(c, i));\n cs(s, r), he(s, window.localStorage, o), he(s, window.sessionStorage, a);\n}, jt = (s = { days: 30 }) => {\n const { days: t = 0, hours: e = 0, minutes: n = 0, seconds: i = 0 } = s, r = /* @__PURE__ */ new Date();\n return r.setTime(r.getTime() + e * 60 * 60 * 1e3), r.setTime(r.getTime() + t * 24 * 60 * 60 * 1e3), r.setTime(r.getTime() + n * 60 * 1e3), r.setTime(r.getTime() + i * 1e3), r.toISOString();\n}, un = (s) => O(document)(() => fe(s)), pn = (s, t) => O(document)(() => cs(s, t)), gn = (s, t) => {\n const e = t === m.Local ? window.localStorage : window.sessionStorage;\n return O(e)(() => Ot(s, e));\n}, mn = (s, t, e) => {\n const n = t === m.Local ? window.localStorage : window.sessionStorage;\n return O(n)(() => he(s, n, e));\n};\nlet _t = class {\n constructor() {\n this.memory = {\n tenant: {},\n implementation: {},\n widget: {}\n };\n }\n setItem(t, e) {\n return vt(this, arguments, function* (n, i, r = {}) {\n return O(this)(() => {\n const o = $t(this.memory, [g.Necessary]), { scope: a = et.Tenant, expiration: c } = r;\n o[a][n] = ve(\n i,\n g.Necessary,\n (c == null ? void 0 : c.toISOString()) || jt()\n ), this.memory = o, process.env.NODE_ENV !== \"production\" && w.warn(\n `StorageProvider: StorageProvider is deprecated, use createStorageWriter and readStorage instead, value stored temporarily in memory.\n Key: ${n}\n Value: ${JSON.stringify(i)}\n Options: ${JSON.stringify(r)}\n Memory: ${JSON.stringify(o)}`\n );\n });\n });\n }\n getItem(t) {\n return vt(this, null, function* () {\n return O(this)(() => {\n const e = $t(this.memory, [g.Necessary]);\n process.env.NODE_ENV !== \"production\" && w.warn(\n `StorageProvider: StorageProvider is deprecated, use createStorageWriter and readStorage instead, value fetched from legacy memory storage.\n Key: ${t}\n Memory: ${JSON.stringify(e)}`\n );\n const n = xt(e, t);\n return this.memory = e, n;\n });\n });\n }\n removeItem(t) {\n return vt(this, null, function* () {\n return O(this)(() => {\n const e = $t(this.memory, [g.Necessary]);\n delete e.tenant[t], delete e.implementation[t], delete e.widget[t], this.memory = e, process.env.NODE_ENV !== \"production\" && w.warn(\n `StorageProvider: StorageProvider is deprecated, use createStorageWriter and readStorage instead, value removed from memory.\n Key: ${t}\n Memory: ${JSON.stringify(e)}`\n );\n });\n });\n }\n clear() {\n return vt(this, null, function* () {\n return Promise.resolve();\n });\n }\n};\nclass fn {\n constructor() {\n this.cookies = new _t(), this.session = new _t(), this.local = new _t();\n }\n}\nconst Gt = (s, t, e, ...n) => {\n const i = `[${s.get(\"$environment\").name || \"webprovisions\"}] ${e}`;\n switch (t) {\n case \"info\":\n console.info(i, ...n);\n break;\n case \"warning\":\n console.warn(i, ...n);\n break;\n case \"error\":\n console.error(i, ...n);\n break;\n }\n}, vn = (s) => {\n const t = s.container || s;\n return {\n info: (e, ...n) => Gt(t, \"info\", e, ...n),\n warn: (e, ...n) => Gt(t, \"warning\", e, ...n),\n error: (e, ...n) => Gt(t, \"error\", e, ...n)\n };\n};\nvar St = /* @__PURE__ */ ((s) => (s.Implementation = \"implementation\", s.Widget = \"widget\", s))(St || {}), H = /* @__PURE__ */ ((s) => (s.Pre = \"pre\", s.Post = \"post\", s))(H || {});\nconst yn = (s, t, e, n) => {\n try {\n const i = new t(e, n);\n return {\n name: s,\n invoke: (r, o) => {\n let a;\n return i[r] && (a = i[r].call(i, o)), Promise.resolve(a);\n },\n getInstance: () => i\n };\n } catch (i) {\n if (i.message && i.message.indexOf(\"is not a constructor\") >= 0)\n return {\n name: s,\n invoke: (r) => {\n let o;\n return r === \"initialize\" && (o = t(e, n)), Promise.resolve(o);\n },\n getInstance: () => t\n };\n throw i;\n }\n};\nfunction Me(s, t) {\n return typeof s == \"undefined\" ? t : s;\n}\nclass bn {\n constructor(t = {}) {\n this.part = t;\n }\n createCommand(t, e, n) {\n let i;\n typeof e == \"function\" ? i = {\n scope: St.Widget,\n stage: H.Post,\n defaultArgs: void 0,\n handlerResolver: e\n } : i = {\n scope: Me(e.scope, St.Widget),\n stage: Me(e.stage, H.Post),\n defaultArgs: e.defaultArgs,\n handlerResolver: n\n };\n let r = this.part;\n const o = t.split(\".\");\n return o.forEach((a, c) => {\n c === o.length - 1 ? r[a] || (r[a] = () => i) : r = this.part[a] = this.part[a] || {};\n }), this;\n }\n get() {\n return this.part;\n }\n}\nconst hs = (s) => {\n const t = new bn({});\n return s(t), t.get();\n};\nhs((s) => {\n s.createCommand(\n \"types.register\",\n { scope: St.Implementation, stage: H.Pre },\n (t) => (e, n) => {\n t.container.get(\"$types\")[e] = n;\n }\n ).createCommand(\n \"type\",\n { stage: H.Pre },\n (t) => (e) => {\n t.container.register(\"$type\", e);\n }\n ).createCommand(\n \"settings\",\n { stage: H.Pre, defaultArgs: [null] },\n (t) => (e) => {\n t.events.dispatch(\n \"settings:change\",\n e,\n { bubbles: !0 }\n ), t.container.register(\"$settings\", e);\n }\n ).createCommand(\n \"plugin\",\n { stage: H.Pre },\n (t) => (e, n, i) => {\n const { container: r } = t;\n let o = null, a = e, c = n;\n typeof e == \"string\" && (o = e, a = n, c = i);\n const h = (l) => {\n const { transformPluginSettings: d } = t.container.get(\"$environmentOptions\"), u = d ? d(\n c || {},\n o,\n t.container,\n a\n ) : n;\n try {\n const p = yn(\n o,\n a,\n r,\n u\n );\n r.get(\"$plugins\").push(p), l && p.invoke(\"initialize\", null);\n } catch (p) {\n vn(t).warn(\"Error when initializing plugin\", p);\n }\n };\n t.container.get(\"$instance\") ? h(!0) : t.events.subscribeOnce(\"widget:instance-created\", () => h(!1));\n }\n ).createCommand(\n \"container.register\",\n (t) => (e, n) => {\n t.container.register(e, n);\n }\n ).createCommand(\n \"container.registerAsync\",\n (t) => (e, n) => {\n t.container.registerAsync(e, n);\n }\n ).createCommand(\n \"container.registerFactory\",\n (t) => (e, n) => {\n t.container.registerFactory(e, n);\n }\n ).createCommand(\n \"container.touch\",\n (t) => (e, n) => {\n t.container.touch(e, n);\n }\n ).createCommand(\n \"csp\",\n {},\n (t) => (e) => {\n t.container.register(\"csp\", e);\n }\n );\n});\nhs((s) => {\n s.createCommand(\"storage\", (t) => (e = {}) => {\n const { consent: n } = e;\n if (typeof n != \"undefined\") {\n if (typeof n != \"number\" && typeof n != \"string\" && !Array.isArray(n)) {\n process.env.NODE_ENV !== \"production\" && w.warn(\n `storagePolicyConfigurationApi: passed consent is not valid. Consent either has to be a number, a string, an array of strings or an array of numbers.\n Passed consent: ${JSON.stringify(n)}`\n );\n return;\n }\n if (Array.isArray(n) && !n.every(\n (r) => typeof r == \"number\" || typeof r == \"string\"\n )) {\n process.env.NODE_ENV !== \"production\" && w.warn(\n `storagePolicyConfigurationApi: passed consent is not valid. Consent either has to be a number, a string, an array of strings or an array of numbers.\n Passed consent: ${JSON.stringify(n)}`\n );\n return;\n }\n const i = [\n g.Necessary,\n g.Functional,\n g.Analytical,\n g.Marketing\n ].filter((r, o, a) => typeof n == \"number\" ? n > o : typeof n == \"string\" ? a.indexOf(n) + 1 > o : Array.isArray(n) ? n.findIndex((c) => c === o + 1 || c === r) > -1 : !0);\n return i.indexOf(g.Necessary) === -1 && (process.env.NODE_ENV !== \"production\" && w.warn(\n `storagePolicyConfigurationApi: passed consent does not include category: '${g.Necessary}'. Consent has to atleast include the '${g.Necessary}' category.\n Passed consent: ${JSON.stringify(n)}`\n ), i.unshift(g.Necessary)), M(\n t.container,\n \"storagePolicy\",\n g.Necessary,\n {\n medium: m.Cookie,\n scope: et.Tenant,\n duration: { days: 365 }\n }\n ).then((r) => r(i)).then(() => {\n ye(t.container), t.events.dispatch(\"storage:policy-changed\", i);\n });\n }\n });\n});\nconst wn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({\n __proto__: null,\n StorageCategory: g,\n StorageMedium: m,\n StorageProvider: fn,\n StorageScope: et,\n StorageService: _t,\n createStorageWriter: M,\n readStorage: k\n}, Symbol.toStringTag, { value: \"Module\" })), Yt = (s, t, e, ...n) => {\n const i = `[${s.get(\"$environment\").name || \"webprovisions\"}] ${e}`;\n switch (t) {\n case \"info\":\n console.info(i, ...n);\n break;\n case \"warning\":\n console.warn(i, ...n);\n break;\n case \"error\":\n console.error(i, ...n);\n break;\n }\n}, $n = (s) => {\n const t = s.container || s;\n return {\n info: (e, ...n) => Yt(t, \"info\", e, ...n),\n warn: (e, ...n) => Yt(t, \"warning\", e, ...n),\n error: (e, ...n) => Yt(t, \"error\", e, ...n)\n };\n};\nvar ht = /* @__PURE__ */ ((s) => (s.Implementation = \"implementation\", s.Widget = \"widget\", s))(ht || {}), T = /* @__PURE__ */ ((s) => (s.Pre = \"pre\", s.Post = \"post\", s))(T || {});\nconst _n = (s, t, e, n) => {\n try {\n const i = new t(e, n);\n return {\n name: s,\n invoke: (r, o) => {\n let a;\n return i[r] && (a = i[r].call(i, o)), Promise.resolve(a);\n },\n getInstance: () => i\n };\n } catch (i) {\n if (i.message && i.message.indexOf(\"is not a constructor\") >= 0)\n return {\n name: s,\n invoke: (r) => {\n let o;\n return r === \"initialize\" && (o = t(e, n)), Promise.resolve(o);\n },\n getInstance: () => t\n };\n throw i;\n }\n};\nfunction Le(s, t) {\n return typeof s == \"undefined\" ? t : s;\n}\nclass Cn {\n constructor(t = {}) {\n this.part = t;\n }\n createCommand(t, e, n) {\n let i;\n typeof e == \"function\" ? i = {\n scope: ht.Widget,\n stage: T.Post,\n defaultArgs: void 0,\n handlerResolver: e\n } : i = {\n scope: Le(e.scope, ht.Widget),\n stage: Le(e.stage, T.Post),\n defaultArgs: e.defaultArgs,\n handlerResolver: n\n };\n let r = this.part;\n const o = t.split(\".\");\n return o.forEach((a, c) => {\n c === o.length - 1 ? r[a] || (r[a] = () => i) : r = this.part[a] = this.part[a] || {};\n }), this;\n }\n get() {\n return this.part;\n }\n}\nconst ls = (s) => {\n const t = new Cn({});\n return s(t), t.get();\n};\nls((s) => {\n s.createCommand(\n \"types.register\",\n { scope: ht.Implementation, stage: T.Pre },\n (t) => (e, n) => {\n t.container.get(\"$types\")[e] = n;\n }\n ).createCommand(\n \"type\",\n { stage: T.Pre },\n (t) => (e) => {\n t.container.register(\"$type\", e);\n }\n ).createCommand(\n \"settings\",\n { stage: T.Pre, defaultArgs: [null] },\n (t) => (e) => {\n t.events.dispatch(\n \"settings:change\",\n e,\n { bubbles: !0 }\n ), t.container.register(\"$settings\", e);\n }\n ).createCommand(\n \"plugin\",\n { stage: T.Pre },\n (t) => (e, n, i) => {\n const { container: r } = t;\n let o = null, a = e, c = n;\n typeof e == \"string\" && (o = e, a = n, c = i);\n const h = (l) => {\n const { transformPluginSettings: d } = t.container.get(\"$environmentOptions\"), u = d ? d(\n c || {},\n o,\n t.container,\n a\n ) : n;\n try {\n const p = _n(\n o,\n a,\n r,\n u\n );\n r.get(\"$plugins\").push(p), l && p.invoke(\"initialize\", null);\n } catch (p) {\n $n(t).warn(\"Error when initializing plugin\", p);\n }\n };\n t.container.get(\"$instance\") ? h(!0) : t.events.subscribeOnce(\"widget:instance-created\", () => h(!1));\n }\n ).createCommand(\n \"container.register\",\n (t) => (e, n) => {\n t.container.register(e, n);\n }\n ).createCommand(\n \"container.registerAsync\",\n (t) => (e, n) => {\n t.container.registerAsync(e, n);\n }\n ).createCommand(\n \"container.registerFactory\",\n (t) => (e, n) => {\n t.container.registerFactory(e, n);\n }\n ).createCommand(\n \"container.touch\",\n (t) => (e, n) => {\n t.container.touch(e, n);\n }\n ).createCommand(\n \"csp\",\n {},\n (t) => (e) => {\n t.container.register(\"csp\", e);\n }\n );\n});\nfunction En(s) {\n const t = {};\n return [].filter.call(s.attributes, (e) => /^data-/.test(e.name)).map((e) => e.name).forEach((e) => t[e.substr(5)] = s.getAttribute(e)), t;\n}\nconst Ie = (s, t, e) => {\n const n = En(s);\n e({\n sourceDOMElement: s,\n eventType: t,\n data: n\n });\n};\nfunction Re(s, t, e) {\n s.forEach((n) => {\n n.dataset.attached !== \"true\" && (t === \"load\" ? Ie(n, t, e) : n.addEventListener(t, (i) => {\n i.preventDefault(), Ie(n, t, e);\n }), n.dataset.monitored = \"true\");\n });\n}\nfunction An(s, t, e) {\n const n = s.container.get(\"bootstrapping.monitor\");\n n && n.events.subscribe(\"bootstrap:trigger-elements-updated\", (r, o) => {\n Re(\n o.triggerElements,\n t,\n e\n );\n });\n const i = s.container.get(\"triggerElements\");\n i && Re(\n i,\n t,\n e\n );\n}\nls((s) => {\n s.createCommand(\n \"ready\",\n { scope: ht.Implementation, stage: T.Pre },\n (t) => (e) => {\n const { container: n } = t, i = n.owner;\n n.get(\"bootstrapping\").ready ? e(i) : i.events.subscribeOnce(\"bootstrap:ready\", () => {\n e(i);\n });\n }\n );\n});\nconst Zt = (s, t, e, ...n) => {\n const i = `[${s.get(\"$environment\").name || \"webprovisions\"}] ${e}`;\n switch (t) {\n case \"info\":\n console.info(i, ...n);\n break;\n case \"warning\":\n console.warn(i, ...n);\n break;\n case \"error\":\n console.error(i, ...n);\n break;\n }\n}, On = (s) => {\n const t = s.container || s;\n return {\n info: (e, ...n) => Zt(t, \"info\", e, ...n),\n warn: (e, ...n) => Zt(t, \"warning\", e, ...n),\n error: (e, ...n) => Zt(t, \"error\", e, ...n)\n };\n};\nvar Pt = /* @__PURE__ */ ((s) => (s.Implementation = \"implementation\", s.Widget = \"widget\", s))(Pt || {}), W = /* @__PURE__ */ ((s) => (s.Pre = \"pre\", s.Post = \"post\", s))(W || {});\nconst xn = (s, t, e, n) => {\n try {\n const i = new t(e, n);\n return {\n name: s,\n invoke: (r, o) => {\n let a;\n return i[r] && (a = i[r].call(i, o)), Promise.resolve(a);\n },\n getInstance: () => i\n };\n } catch (i) {\n if (i.message && i.message.indexOf(\"is not a constructor\") >= 0)\n return {\n name: s,\n invoke: (r) => {\n let o;\n return r === \"initialize\" && (o = t(e, n)), Promise.resolve(o);\n },\n getInstance: () => t\n };\n throw i;\n }\n};\nfunction Te(s, t) {\n return typeof s == \"undefined\" ? t : s;\n}\nclass Sn {\n constructor(t = {}) {\n this.part = t;\n }\n createCommand(t, e, n) {\n let i;\n typeof e == \"function\" ? i = {\n scope: Pt.Widget,\n stage: W.Post,\n defaultArgs: void 0,\n handlerResolver: e\n } : i = {\n scope: Te(e.scope, Pt.Widget),\n stage: Te(e.stage, W.Post),\n defaultArgs: e.defaultArgs,\n handlerResolver: n\n };\n let r = this.part;\n const o = t.split(\".\");\n return o.forEach((a, c) => {\n c === o.length - 1 ? r[a] || (r[a] = () => i) : r = this.part[a] = this.part[a] || {};\n }), this;\n }\n get() {\n return this.part;\n }\n}\nconst Pn = (s) => {\n const t = new Sn({});\n return s(t), t.get();\n};\nPn((s) => {\n s.createCommand(\n \"types.register\",\n { scope: Pt.Implementation, stage: W.Pre },\n (t) => (e, n) => {\n t.container.get(\"$types\")[e] = n;\n }\n ).createCommand(\n \"type\",\n { stage: W.Pre },\n (t) => (e) => {\n t.container.register(\"$type\", e);\n }\n ).createCommand(\n \"settings\",\n { stage: W.Pre, defaultArgs: [null] },\n (t) => (e) => {\n t.events.dispatch(\n \"settings:change\",\n e,\n { bubbles: !0 }\n ), t.container.register(\"$settings\", e);\n }\n ).createCommand(\n \"plugin\",\n { stage: W.Pre },\n (t) => (e, n, i) => {\n const { container: r } = t;\n let o = null, a = e, c = n;\n typeof e == \"string\" && (o = e, a = n, c = i);\n const h = (l) => {\n const { transformPluginSettings: d } = t.container.get(\"$environmentOptions\"), u = d ? d(\n c || {},\n o,\n t.container,\n a\n ) : n;\n try {\n const p = xn(\n o,\n a,\n r,\n u\n );\n r.get(\"$plugins\").push(p), l && p.invoke(\"initialize\", null);\n } catch (p) {\n On(t).warn(\"Error when initializing plugin\", p);\n }\n };\n t.container.get(\"$instance\") ? h(!0) : t.events.subscribeOnce(\"widget:instance-created\", () => h(!1));\n }\n ).createCommand(\n \"container.register\",\n (t) => (e, n) => {\n t.container.register(e, n);\n }\n ).createCommand(\n \"container.registerAsync\",\n (t) => (e, n) => {\n t.container.registerAsync(e, n);\n }\n ).createCommand(\n \"container.registerFactory\",\n (t) => (e, n) => {\n t.container.registerFactory(e, n);\n }\n ).createCommand(\n \"container.touch\",\n (t) => (e, n) => {\n t.container.touch(e, n);\n }\n ).createCommand(\n \"csp\",\n {},\n (t) => (e) => {\n t.container.register(\"csp\", e);\n }\n );\n});\nvar ds = /* @__PURE__ */ ((s) => (s.Activating = \"activating\", s.Loading = \"loading\", s.Activated = \"activated\", s.Deactivating = \"deactivating\", s.Deactivated = \"deactivated\", s))(ds || {});\nclass kn {\n /**\n * Creates a new `Widget` instance.\n * @param container The `Container` instance to base the widget upon.\n */\n constructor(t) {\n this.container = t, this.widget = t.get(\"$widget\"), this.settings = t.get(\"$settings\"), this.events = this.widget.events, this.widget.events.subscribe(\"settings:change\", (e, n) => {\n this.settings = n;\n });\n }\n}\nconst Nn = (s) => {\n const t = (i, r) => {\n i && (r ? i.classList.add(\"ace-tabbing\") : i.classList.remove(\"ace-tabbing\"));\n }, e = (i) => {\n i.key === \"Tab\" ? t(s, !0) : i.key === \"Enter\" && document.activeElement && document.activeElement.classList.contains(\"ace-widget-trigger\") || t(s, !1);\n }, n = (i) => {\n document.activeElement && document.activeElement.classList.contains(\"ace-widget-trigger\") && document.activeElement.classList.contains(\"ace-tabbing\") || t(s, !1);\n };\n return document.addEventListener(\"keydown\", e), document.addEventListener(\"click\", n), () => {\n document.removeEventListener(\"keydown\", e), document.removeEventListener(\"click\", n);\n };\n};\nfunction Dn(s, t) {\n const {\n // symbol,\n widgetName: e,\n label: n = \"\",\n ariaLabel: i = \"\",\n tooltip: r = \"\"\n } = t;\n return s.classList.add(\"ace-widget-trigger\"), s.classList.add(`ace-widget_${e}`), n.length && s.classList.add(\"trigger-has-text\"), i.length && !s.getAttribute(\"aria-label\") && s.setAttribute(\"aria-label\", i), i.length && !s.getAttribute(\"tabindex\") && s.setAttribute(\"tabindex\", \"0\"), r.length && !s.getAttribute(\"title\") && s.setAttribute(\"title\", r), Nn(s);\n}\nfunction Mn(s, t) {\n s instanceof HTMLElement ? (t && s.setAttribute(\"title\", t), s.classList.remove(\"ace-trigger-active\"), s.classList.remove(\"ace-trigger-loading\")) : s instanceof Array && s.forEach((e) => {\n t && e.setAttribute(\"title\", t), e.classList.remove(\"ace-trigger-active\"), e.classList.remove(\"ace-trigger-loading\");\n });\n}\nfunction Ln(s) {\n s instanceof HTMLElement ? (s.classList.remove(\"ace-trigger-active\"), s.classList.add(\"ace-trigger-loading\")) : s instanceof Array && s.forEach((t) => {\n t.classList.remove(\"ace-trigger-active\"), t.classList.add(\"ace-trigger-loading\");\n });\n}\nfunction us(s, t) {\n s instanceof HTMLElement ? (t && s.setAttribute(\"title\", t), s.classList.add(\"ace-trigger-active\"), s.classList.remove(\"ace-trigger-loading\")) : s instanceof Array && s.forEach((e) => {\n t && e.setAttribute(\"title\", t), e.classList.add(\"ace-trigger-active\"), e.classList.remove(\"ace-trigger-loading\");\n });\n}\n/**\n * @license\n * Copyright 2019 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\nconst Ct = window, be = Ct.ShadowRoot && (Ct.ShadyCSS === void 0 || Ct.ShadyCSS.nativeShadow) && \"adoptedStyleSheets\" in Document.prototype && \"replace\" in CSSStyleSheet.prototype, we = Symbol(), je = /* @__PURE__ */ new WeakMap();\nlet ps = class {\n constructor(t, e, n) {\n if (this._$cssResult$ = !0, n !== we)\n throw Error(\"CSSResult is not constructable. Use `unsafeCSS` or `css` instead.\");\n this.cssText = t, this.t = e;\n }\n get styleSheet() {\n let t = this.o;\n const e = this.t;\n if (be && t === void 0) {\n const n = e !== void 0 && e.length === 1;\n n && (t = je.get(e)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), n && je.set(e, t));\n }\n return t;\n }\n toString() {\n return this.cssText;\n }\n};\nconst In = (s) => new ps(typeof s == \"string\" ? s : s + \"\", void 0, we), gs = (s, ...t) => {\n const e = s.length === 1 ? s[0] : t.reduce((n, i, r) => n + ((o) => {\n if (o._$cssResult$ === !0)\n return o.cssText;\n if (typeof o == \"number\")\n return o;\n throw Error(\"Value passed to 'css' function must be a 'css' function result: \" + o + \". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.\");\n })(i) + s[r + 1], s[0]);\n return new ps(e, s, we);\n}, Rn = (s, t) => {\n be ? s.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet) : t.forEach((e) => {\n const n = document.createElement(\"style\"), i = Ct.litNonce;\n i !== void 0 && n.setAttribute(\"nonce\", i), n.textContent = e.cssText, s.appendChild(n);\n });\n}, Ve = be ? (s) => s : (s) => s instanceof CSSStyleSheet ? ((t) => {\n let e = \"\";\n for (const n of t.cssRules)\n e += n.cssText;\n return In(e);\n})(s) : s;\n/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\nvar Qt;\nconst kt = window, Ue = kt.trustedTypes, Tn = Ue ? Ue.emptyScript : \"\", ze = kt.reactiveElementPolyfillSupport, le = { toAttribute(s, t) {\n switch (t) {\n case Boolean:\n s = s ? Tn : null;\n break;\n case Object:\n case Array:\n s = s == null ? s : JSON.stringify(s);\n }\n return s;\n}, fromAttribute(s, t) {\n let e = s;\n switch (t) {\n case Boolean:\n e = s !== null;\n break;\n case Number:\n e = s === null ? null : Number(s);\n break;\n case Object:\n case Array:\n try {\n e = JSON.parse(s);\n } catch (n) {\n e = null;\n }\n }\n return e;\n} }, ms = (s, t) => t !== s && (t == t || s == s), Xt = { attribute: !0, type: String, converter: le, reflect: !1, hasChanged: ms }, de = \"finalized\";\nlet Y = class extends HTMLElement {\n constructor() {\n super(), this._$Ei = /* @__PURE__ */ new Map(), this.isUpdatePending = !1, this.hasUpdated = !1, this._$El = null, this._$Eu();\n }\n static addInitializer(t) {\n var e;\n this.finalize(), ((e = this.h) !== null && e !== void 0 ? e : this.h = []).push(t);\n }\n static get observedAttributes() {\n this.finalize();\n const t = [];\n return this.elementProperties.forEach((e, n) => {\n const i = this._$Ep(n, e);\n i !== void 0 && (this._$Ev.set(i, n), t.push(i));\n }), t;\n }\n static createProperty(t, e = Xt) {\n if (e.state && (e.attribute = !1), this.finalize(), this.elementProperties.set(t, e), !e.noAccessor && !this.prototype.hasOwnProperty(t)) {\n const n = typeof t == \"symbol\" ? Symbol() : \"__\" + t, i = this.getPropertyDescriptor(t, n, e);\n i !== void 0 && Object.defineProperty(this.prototype, t, i);\n }\n }\n static getPropertyDescriptor(t, e, n) {\n return { get() {\n return this[e];\n }, set(i) {\n const r = this[t];\n this[e] = i, this.requestUpdate(t, r, n);\n }, configurable: !0, enumerable: !0 };\n }\n static getPropertyOptions(t) {\n return this.elementProperties.get(t) || Xt;\n }\n static finalize() {\n if (this.hasOwnProperty(de))\n return !1;\n this[de] = !0;\n const t = Object.getPrototypeOf(this);\n if (t.finalize(), t.h !== void 0 && (this.h = [...t.h]), this.elementProperties = new Map(t.elementProperties), this._$Ev = /* @__PURE__ */ new Map(), this.hasOwnProperty(\"properties\")) {\n const e = this.properties, n = [...Object.getOwnPropertyNames(e), ...Object.getOwnPropertySymbols(e)];\n for (const i of n)\n this.createProperty(i, e[i]);\n }\n return this.elementStyles = this.finalizeStyles(this.styles), !0;\n }\n static finalizeStyles(t) {\n const e = [];\n if (Array.isArray(t)) {\n const n = new Set(t.flat(1 / 0).reverse());\n for (const i of n)\n e.unshift(Ve(i));\n } else\n t !== void 0 && e.push(Ve(t));\n return e;\n }\n static _$Ep(t, e) {\n const n = e.attribute;\n return n === !1 ? void 0 : typeof n == \"string\" ? n : typeof t == \"string\" ? t.toLowerCase() : void 0;\n }\n _$Eu() {\n var t;\n this._$E_ = new Promise((e) => this.enableUpdating = e), this._$AL = /* @__PURE__ */ new Map(), this._$Eg(), this.requestUpdate(), (t = this.constructor.h) === null || t === void 0 || t.forEach((e) => e(this));\n }\n addController(t) {\n var e, n;\n ((e = this._$ES) !== null && e !== void 0 ? e : this._$ES = []).push(t), this.renderRoot !== void 0 && this.isConnected && ((n = t.hostConnected) === null || n === void 0 || n.call(t));\n }\n removeController(t) {\n var e;\n (e = this._$ES) === null || e === void 0 || e.splice(this._$ES.indexOf(t) >>> 0, 1);\n }\n _$Eg() {\n this.constructor.elementProperties.forEach((t, e) => {\n this.hasOwnProperty(e) && (this._$Ei.set(e, this[e]), delete this[e]);\n });\n }\n createRenderRoot() {\n var t;\n const e = (t = this.shadowRoot) !== null && t !== void 0 ? t : this.attachShadow(this.constructor.shadowRootOptions);\n return Rn(e, this.constructor.elementStyles), e;\n }\n connectedCallback() {\n var t;\n this.renderRoot === void 0 && (this.renderRoot = this.createRenderRoot()), this.enableUpdating(!0), (t = this._$ES) === null || t === void 0 || t.forEach((e) => {\n var n;\n return (n = e.hostConnected) === null || n === void 0 ? void 0 : n.call(e);\n });\n }\n enableUpdating(t) {\n }\n disconnectedCallback() {\n var t;\n (t = this._$ES) === null || t === void 0 || t.forEach((e) => {\n var n;\n return (n = e.hostDisconnected) === null || n === void 0 ? void 0 : n.call(e);\n });\n }\n attributeChangedCallback(t, e, n) {\n this._$AK(t, n);\n }\n _$EO(t, e, n = Xt) {\n var i;\n const r = this.constructor._$Ep(t, n);\n if (r !== void 0 && n.reflect === !0) {\n const o = (((i = n.converter) === null || i === void 0 ? void 0 : i.toAttribute) !== void 0 ? n.converter : le).toAttribute(e, n.type);\n this._$El = t, o == null ? this.removeAttribute(r) : this.setAttribute(r, o), this._$El = null;\n }\n }\n _$AK(t, e) {\n var n;\n const i = this.constructor, r = i._$Ev.get(t);\n if (r !== void 0 && this._$El !== r) {\n const o = i.getPropertyOptions(r), a = typeof o.converter == \"function\" ? { fromAttribute: o.converter } : ((n = o.converter) === null || n === void 0 ? void 0 : n.fromAttribute) !== void 0 ? o.converter : le;\n this._$El = r, this[r] = a.fromAttribute(e, o.type), this._$El = null;\n }\n }\n requestUpdate(t, e, n) {\n let i = !0;\n t !== void 0 && (((n = n || this.constructor.getPropertyOptions(t)).hasChanged || ms)(this[t], e) ? (this._$AL.has(t) || this._$AL.set(t, e), n.reflect === !0 && this._$El !== t && (this._$EC === void 0 && (this._$EC = /* @__PURE__ */ new Map()), this._$EC.set(t, n))) : i = !1), !this.isUpdatePending && i && (this._$E_ = this._$Ej());\n }\n _$Ej() {\n return y(this, null, function* () {\n this.isUpdatePending = !0;\n try {\n yield this._$E_;\n } catch (e) {\n Promise.reject(e);\n }\n const t = this.scheduleUpdate();\n return t != null && (yield t), !this.isUpdatePending;\n });\n }\n scheduleUpdate() {\n return this.performUpdate();\n }\n performUpdate() {\n var t;\n if (!this.isUpdatePending)\n return;\n this.hasUpdated, this._$Ei && (this._$Ei.forEach((i, r) => this[r] = i), this._$Ei = void 0);\n let e = !1;\n const n = this._$AL;\n try {\n e = this.shouldUpdate(n), e ? (this.willUpdate(n), (t = this._$ES) === null || t === void 0 || t.forEach((i) => {\n var r;\n return (r = i.hostUpdate) === null || r === void 0 ? void 0 : r.call(i);\n }), this.update(n)) : this._$Ek();\n } catch (i) {\n throw e = !1, this._$Ek(), i;\n }\n e && this._$AE(n);\n }\n willUpdate(t) {\n }\n _$AE(t) {\n var e;\n (e = this._$ES) === null || e === void 0 || e.forEach((n) => {\n var i;\n return (i = n.hostUpdated) === null || i === void 0 ? void 0 : i.call(n);\n }), this.hasUpdated || (this.hasUpdated = !0, this.firstUpdated(t)), this.updated(t);\n }\n _$Ek() {\n this._$AL = /* @__PURE__ */ new Map(), this.isUpdatePending = !1;\n }\n get updateComplete() {\n return this.getUpdateComplete();\n }\n getUpdateComplete() {\n return this._$E_;\n }\n shouldUpdate(t) {\n return !0;\n }\n update(t) {\n this._$EC !== void 0 && (this._$EC.forEach((e, n) => this._$EO(n, this[n], e)), this._$EC = void 0), this._$Ek();\n }\n updated(t) {\n }\n firstUpdated(t) {\n }\n};\nY[de] = !0, Y.elementProperties = /* @__PURE__ */ new Map(), Y.elementStyles = [], Y.shadowRootOptions = { mode: \"open\" }, ze == null || ze({ ReactiveElement: Y }), ((Qt = kt.reactiveElementVersions) !== null && Qt !== void 0 ? Qt : kt.reactiveElementVersions = []).push(\"1.6.3\");\n/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\nvar te;\nconst Nt = window, Q = Nt.trustedTypes, He = Q ? Q.createPolicy(\"lit-html\", { createHTML: (s) => s }) : void 0, ue = \"$lit$\", L = `lit$${(Math.random() + \"\").slice(9)}$`, fs = \"?\" + L, jn = `<${fs}>`, J = document, lt = () => J.createComment(\"\"), dt = (s) => s === null || typeof s != \"object\" && typeof s != \"function\", vs = Array.isArray, Vn = (s) => vs(s) || typeof (s == null ? void 0 : s[Symbol.iterator]) == \"function\", ee = `[ \t\n\\f\\r]`, nt = /<(?:(!--|\\/[^a-zA-Z])|(\\/?[a-zA-Z][^>\\s]*)|(\\/?$))/g, We = /-->/g, Be = />/g, V = RegExp(`>|${ee}(?:([^\\\\s\"'>=/]+)(${ee}*=${ee}*(?:[^ \t\n\\f\\r\"'\\`<>=]|(\"|')|))|$)`, \"g\"), qe = /'/g, Je = /\"/g, ys = /^(?:script|style|textarea|title)$/i, Un = (s) => (t, ...e) => ({ _$litType$: s, strings: t, values: e }), yt = Un(1), F = Symbol.for(\"lit-noChange\"), v = Symbol.for(\"lit-nothing\"), Fe = /* @__PURE__ */ new WeakMap(), B = J.createTreeWalker(J, 129, null, !1);\nfunction bs(s, t) {\n if (!Array.isArray(s) || !s.hasOwnProperty(\"raw\"))\n throw Error(\"invalid template strings array\");\n return He !== void 0 ? He.createHTML(t) : t;\n}\nconst zn = (s, t) => {\n const e = s.length - 1, n = [];\n let i, r = t === 2 ? \"<svg>\" : \"\", o = nt;\n for (let a = 0; a < e; a++) {\n const c = s[a];\n let h, l, d = -1, u = 0;\n for (; u < c.length && (o.lastIndex = u, l = o.exec(c), l !== null); )\n u = o.lastIndex, o === nt ? l[1] === \"!--\" ? o = We : l[1] !== void 0 ? o = Be : l[2] !== void 0 ? (ys.test(l[2]) && (i = RegExp(\"</\" + l[2], \"g\")), o = V) : l[3] !== void 0 && (o = V) : o === V ? l[0] === \">\" ? (o = i != null ? i : nt, d = -1) : l[1] === void 0 ? d = -2 : (d = o.lastIndex - l[2].length, h = l[1], o = l[3] === void 0 ? V : l[3] === '\"' ? Je : qe) : o === Je || o === qe ? o = V : o === We || o === Be ? o = nt : (o = V, i = void 0);\n const p = o === V && s[a + 1].startsWith(\"/>\") ? \" \" : \"\";\n r += o === nt ? c + jn : d >= 0 ? (n.push(h), c.slice(0, d) + ue + c.slice(d) + L + p) : c + L + (d === -2 ? (n.push(void 0), a) : p);\n }\n return [bs(s, r + (s[e] || \"<?>\") + (t === 2 ? \"</svg>\" : \"\")), n];\n};\nclass ut {\n constructor({ strings: t, _$litType$: e }, n) {\n let i;\n this.parts = [];\n let r = 0, o = 0;\n const a = t.length - 1, c = this.parts, [h, l] = zn(t, e);\n if (this.el = ut.createElement(h, n), B.currentNode = this.el.content, e === 2) {\n const d = this.el.content, u = d.firstChild;\n u.remove(), d.append(...u.childNodes);\n }\n for (; (i = B.nextNode()) !== null && c.length < a; ) {\n if (i.nodeType === 1) {\n if (i.hasAttributes()) {\n const d = [];\n for (const u of i.getAttributeNames())\n if (u.endsWith(ue) || u.startsWith(L)) {\n const p = l[o++];\n if (d.push(u), p !== void 0) {\n const _ = i.getAttribute(p.toLowerCase() + ue).split(L), f = /([.?@])?(.*)/.exec(p);\n c.push({ type: 1, index: r, name: f[2], strings: _, ctor: f[1] === \".\" ? Wn : f[1] === \"?\" ? qn : f[1] === \"@\" ? Jn : Vt });\n } else\n c.push({ type: 6, index: r });\n }\n for (const u of d)\n i.removeAttribute(u);\n }\n if (ys.test(i.tagName)) {\n const d = i.textContent.split(L), u = d.length - 1;\n if (u > 0) {\n i.textContent = Q ? Q.emptyScript : \"\";\n for (let p = 0; p < u; p++)\n i.append(d[p], lt()), B.nextNode(), c.push({ type: 2, index: ++r });\n i.append(d[u], lt());\n }\n }\n } else if (i.nodeType === 8)\n if (i.data === fs)\n c.push({ type: 2, index: r });\n else {\n let d = -1;\n for (; (d = i.data.indexOf(L, d + 1)) !== -1; )\n c.push({ type: 7, index: r }), d += L.length - 1;\n }\n r++;\n }\n }\n static createElement(t, e) {\n const n = J.createElement(\"template\");\n return n.innerHTML = t, n;\n }\n}\nfunction X(s, t, e = s, n) {\n var i, r, o, a;\n if (t === F)\n return t;\n let c = n !== void 0 ? (i = e._$Co) === null || i === void 0 ? void 0 : i[n] : e._$Cl;\n const h = dt(t) ? void 0 : t._$litDirective$;\n return (c == null ? void 0 : c.constructor) !== h && ((r = c == null ? void 0 : c._$AO) === null || r === void 0 || r.call(c, !1), h === void 0 ? c = void 0 : (c = new h(s), c._$AT(s, e, n)), n !== void 0 ? ((o = (a = e)._$Co) !== null && o !== void 0 ? o : a._$Co = [])[n] = c : e._$Cl = c), c !== void 0 && (t = X(s, c._$AS(s, t.values), c, n)), t;\n}\nclass Hn {\n constructor(t, e) {\n this._$AV = [], this._$AN = void 0, this._$AD = t, this._$AM = e;\n }\n get parentNode() {\n return this._$AM.parentNode;\n }\n get _$AU() {\n return this._$AM._$AU;\n }\n u(t) {\n var e;\n const { el: { content: n }, parts: i } = this._$AD, r = ((e = t == null ? void 0 : t.creationScope) !== null && e !== void 0 ? e : J).importNode(n, !0);\n B.currentNode = r;\n let o = B.nextNode(), a = 0, c = 0, h = i[0];\n for (; h !== void 0; ) {\n if (a === h.index) {\n let l;\n h.type === 2 ? l = new gt(o, o.nextSibling, this, t) : h.type === 1 ? l = new h.ctor(o, h.name, h.strings, this, t) : h.type === 6 && (l = new Fn(o, this, t)), this._$AV.push(l), h = i[++c];\n }\n a !== (h == null ? void 0 : h.index) && (o = B.nextNode(), a++);\n }\n return B.currentNode = J, r;\n }\n v(t) {\n let e = 0;\n for (const n of this._$AV)\n n !== void 0 && (n.strings !== void 0 ? (n._$AI(t, n, e), e += n.strings.length - 2) : n._$AI(t[e])), e++;\n }\n}\nclass gt {\n constructor(t, e, n, i) {\n var r;\n this.type = 2, this._$AH = v, this._$AN = void 0, this._$AA = t, this._$AB = e, this._$AM = n, this.options = i, this._$Cp = (r = i == null ? void 0 : i.isConnected) === null || r === void 0 || r;\n }\n get _$AU() {\n var t, e;\n return (e = (t = this._$AM) === null || t === void 0 ? void 0 : t._$AU) !== null && e !== void 0 ? e : this._$Cp;\n }\n get parentNode() {\n let t = this._$AA.parentNode;\n const e = this._$AM;\n return e !== void 0 && (t == null ? void 0 : t.nodeType) === 11 && (t = e.parentNode), t;\n }\n get startNode() {\n return this._$AA;\n }\n get endNode() {\n return this._$AB;\n }\n _$AI(t, e = this) {\n t = X(this, t, e), dt(t) ? t === v || t == null || t === \"\" ? (this._$AH !== v && this._$AR(), this._$AH = v) : t !== this._$AH && t !== F && this._(t) : t._$litType$ !== void 0 ? this.g(t) : t.nodeType !== void 0 ? this.$(t) : Vn(t) ? this.T(t) : this._(t);\n }\n k(t) {\n return this._$AA.parentNode.insertBefore(t, this._$AB);\n }\n $(t) {\n this._$AH !== t && (this._$AR(), this._$AH = this.k(t));\n }\n _(t) {\n this._$AH !== v && dt(this._$AH) ? this._$AA.nextSibling.data = t : this.$(J.createTextNode(t)), this._$AH = t;\n }\n g(t) {\n var e;\n const { values: n, _$litType$: i } = t, r = typeof i == \"number\" ? this._$AC(t) : (i.el === void 0 && (i.el = ut.createElement(bs(i.h, i.h[0]), this.options)), i);\n if (((e = this._$AH) === null || e === void 0 ? void 0 : e._$AD) === r)\n this._$AH.v(n);\n else {\n const o = new Hn(r, this), a = o.u(this.options);\n o.v(n), this.$(a), this._$AH = o;\n }\n }\n _$AC(t) {\n let e = Fe.get(t.strings);\n return e === void 0 && Fe.set(t.strings, e = new ut(t)), e;\n }\n T(t) {\n vs(this._$AH) || (this._$AH = [], this._$AR());\n const e = this._$AH;\n let n, i = 0;\n for (const r of t)\n i === e.length ? e.push(n = new gt(this.k(lt()), this.k(lt()), this, this.options)) : n = e[i], n._$AI(r), i++;\n i < e.length && (this._$AR(n && n._$AB.nextSibling, i), e.length = i);\n }\n _$AR(t = this._$AA.nextSibling, e) {\n var n;\n for ((n = this._$AP) === null || n === void 0 || n.call(this, !1, !0, e); t && t !== this._$AB; ) {\n const i = t.nextSibling;\n t.remove(), t = i;\n }\n }\n setConnected(t) {\n var e;\n this._$AM === void 0 && (this._$Cp = t, (e = this._$AP) === null || e === void 0 || e.call(this, t));\n }\n}\nclass Vt {\n constructor(t, e, n, i, r) {\n this.type = 1, this._$AH = v, this._$AN = void 0, this.element = t, this.name = e, this._$AM = i, this.options = r, n.length > 2 || n[0] !== \"\" || n[1] !== \"\" ? (this._$AH = Array(n.length - 1).fill(new String()), this.strings = n) : this._$AH = v;\n }\n get tagName() {\n return this.element.tagName;\n }\n get _$AU() {\n return this._$AM._$AU;\n }\n _$AI(t, e = this, n, i) {\n const r = this.strings;\n let o = !1;\n if (r === void 0)\n t = X(this, t, e, 0), o = !dt(t) || t !== this._$AH && t !== F, o && (this._$AH = t);\n else {\n const a = t;\n let c, h;\n for (t = r[0], c = 0; c < r.length - 1; c++)\n h = X(this, a[n + c], e, c), h === F && (h = this._$AH[c]), o || (o = !dt(h) || h !== this._$AH[c]), h === v ? t = v : t !== v && (t += (h != null ? h : \"\") + r[c + 1]), this._$AH[c] = h;\n }\n o && !i && this.j(t);\n }\n j(t) {\n t === v ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t != null ? t : \"\");\n }\n}\nclass Wn extends Vt {\n constructor() {\n super(...arguments), this.type = 3;\n }\n j(t) {\n this.element[this.name] = t === v ? void 0 : t;\n }\n}\nconst Bn = Q ? Q.emptyScript : \"\";\nclass qn extends Vt {\n constructor() {\n super(...arguments), this.type = 4;\n }\n j(t) {\n t && t !== v ? this.element.setAttribute(this.name, Bn) : this.element.removeAttribute(this.name);\n }\n}\nclass Jn extends Vt {\n constructor(t, e, n, i, r) {\n super(t, e, n, i, r), this.type = 5;\n }\n _$AI(t, e = this) {\n var n;\n if ((t = (n = X(this, t, e, 0)) !== null && n !== void 0 ? n : v) === F)\n return;\n const i = this._$AH, r = t === v && i !== v || t.capture !== i.capture || t.once !== i.once || t.passive !== i.passive, o = t !== v && (i === v || r);\n r && this.element.removeEventListener(this.name, this, i), o && this.element.addEventListener(this.name, this, t), this._$AH = t;\n }\n handleEvent(t) {\n var e, n;\n typeof this._$AH == \"function\" ? this._$AH.call((n = (e = this.options) === null || e === void 0 ? void 0 : e.host) !== null && n !== void 0 ? n : this.element, t) : this._$AH.handleEvent(t);\n }\n}\nclass Fn {\n constructor(t, e, n) {\n this.element = t, this.type = 6, this._$AN = void 0, this._$AM = e, this.options = n;\n }\n get _$AU() {\n return this._$AM._$AU;\n }\n _$AI(t) {\n X(this, t);\n }\n}\nconst Ke = Nt.litHtmlPolyfillSupport;\nKe == null || Ke(ut, gt), ((te = Nt.litHtmlVersions) !== null && te !== void 0 ? te : Nt.litHtmlVersions = []).push(\"2.8.0\");\nconst Kn = (s, t, e) => {\n var n, i;\n const r = (n = e == null ? void 0 : e.renderBefore) !== null && n !== void 0 ? n : t;\n let o = r._$litPart$;\n if (o === void 0) {\n const a = (i = e == null ? void 0 : e.renderBefore) !== null && i !== void 0 ? i : null;\n r._$litPart$ = o = new gt(t.insertBefore(lt(), a), a, void 0, e != null ? e : {});\n }\n return o._$AI(s), o;\n};\n/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\nvar se, ne;\nlet at = class extends Y {\n constructor() {\n super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;\n }\n createRenderRoot() {\n var t, e;\n const n = super.createRenderRoot();\n return (t = (e = this.renderOptions).renderBefore) !== null && t !== void 0 || (e.renderBefore = n.firstChild), n;\n }\n update(t) {\n const e = this.render();\n this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do = Kn(e, this.renderRoot, this.renderOptions);\n }\n connectedCallback() {\n var t;\n super.connectedCallback(), (t = this._$Do) === null || t === void 0 || t.setConnected(!0);\n }\n disconnectedCallback() {\n var t;\n super.disconnectedCallback(), (t = this._$Do) === null || t === void 0 || t.setConnected(!1);\n }\n render() {\n return F;\n }\n};\nat.finalized = !0, at._$litElement$ = !0, (se = globalThis.litElementHydrateSupport) === null || se === void 0 || se.call(globalThis, { LitElement: at });\nconst Ge = globalThis.litElementPolyfillSupport;\nGe == null || Ge({ LitElement: at });\n((ne = globalThis.litElementVersions) !== null && ne !== void 0 ? ne : globalThis.litElementVersions = []).push(\"3.3.3\");\n/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\nconst Gn = (s, t) => t.kind === \"method\" && t.descriptor && !(\"value\" in t.descriptor) ? st(S({}, t), { finisher(e) {\n e.createProperty(t.key, s);\n} }) : { kind: \"field\", key: Symbol(), placement: \"own\", descriptor: {}, originalKey: t.key, initializer() {\n typeof t.initializer == \"function\" && (this[t.key] = t.initializer.call(this));\n}, finisher(e) {\n e.createProperty(t.key, s);\n} }, Yn = (s, t, e) => {\n t.constructor.createProperty(e, s);\n};\nfunction Dt(s) {\n return (t, e) => e !== void 0 ? Yn(s, t, e) : Gn(s, t);\n}\n/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\nfunction I(s) {\n return Dt(st(S({}, s), { state: !0 }));\n}\n/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\nconst Zn = ({ finisher: s, descriptor: t }) => (e, n) => {\n var i;\n if (n === void 0) {\n const r = (i = e.originalKey) !== null && i !== void 0 ? i : e.key, o = t != null ? { kind: \"method\", placement: \"prototype\", key: r, descriptor: t(e.key) } : st(S({}, e), { key: r });\n return s != null && (o.finisher = function(a) {\n s(a, r);\n }), o;\n }\n {\n const r = e.constructor;\n t !== void 0 && Object.defineProperty(e, n, t(n)), s == null || s(r, n);\n }\n};\n/**\n * @license\n * Copyright 2021 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\nvar ie;\n((ie = window.HTMLSlotElement) === null || ie === void 0 ? void 0 : ie.prototype.assignedElements) != null;\n/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\nconst Qn = { ATTRIBUTE: 1, CHILD: 2, PROPERTY: 3, BOOLEAN_ATTRIBUTE: 4, EVENT: 5, ELEMENT: 6 }, Xn = (s) => (...t) => ({ _$litDirective$: s, values: t });\nlet ti = class {\n constructor(t) {\n }\n get _$AU() {\n return this._$AM._$AU;\n }\n _$AT(t, e, n) {\n this._$Ct = t, this._$AM = e, this._$Ci = n;\n }\n _$AS(t, e) {\n return this.update(t, e);\n }\n update(t, e) {\n return this.render(...e);\n }\n};\n/**\n * @license\n * Copyright 2018 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\nconst ei = Xn(class extends ti {\n constructor(s) {\n var t;\n if (super(s), s.type !== Qn.ATTRIBUTE || s.name !== \"class\" || ((t = s.strings) === null || t === void 0 ? void 0 : t.length) > 2)\n throw Error(\"`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.\");\n }\n render(s) {\n return \" \" + Object.keys(s).filter((t) => s[t]).join(\" \") + \" \";\n }\n update(s, [t]) {\n var e, n;\n if (this.it === void 0) {\n this.it = /* @__PURE__ */ new Set(), s.strings !== void 0 && (this.nt = new Set(s.strings.join(\" \").split(/\\s/).filter((r) => r !== \"\")));\n for (const r in t)\n t[r] && !(!((e = this.nt) === null || e === void 0) && e.has(r)) && this.it.add(r);\n return this.render(t);\n }\n const i = s.element.classList;\n this.it.forEach((r) => {\n r in t || (i.remove(r), this.it.delete(r));\n });\n for (const r in t) {\n const o = !!t[r];\n o === this.it.has(r) || !((n = this.nt) === null || n === void 0) && n.has(r) || (o ? (i.add(r), this.it.add(r)) : (i.remove(r), this.it.delete(r)));\n }\n return F;\n }\n});\nvar si = Object.defineProperty, ni = Object.getOwnPropertyDescriptor, Ut = (s, t, e, n) => {\n for (var i = n > 1 ? void 0 : n ? ni(t, e) : t, r = s.length - 1, o; r >= 0; r--)\n (o = s[r]) && (i = (n ? o(t, e, i) : o(i)) || i);\n return n && i && si(t, e, i), i;\n};\nclass j extends at {\n constructor() {\n super(...arguments), this.active = !1, this.loaded = !1;\n }\n connectedCallback() {\n return y(this, null, function* () {\n Ee(j.prototype, this, \"connectedCallback\").call(this), this.icon = yield this._renderSymbol(this.symbol), this.loaded = !0;\n });\n }\n _toggleActive() {\n this.active = !this.active;\n }\n _renderSymbol(t) {\n return y(this, null, function* () {\n const e = (n) => y(this, null, function* () {\n return yield import(\"./index-9688347a.js\").then((r) => r[n]);\n });\n if (t) {\n const { type: n, content: i } = t;\n switch (n) {\n case \"Telia\": {\n const r = yield e(i);\n return r ? yt`<telia-icon\n class=\"trigger-icon\"\n svg=${r.svg}\n size=\"lg\"\n ></telia-icon>` : v;\n }\n case \"FontAwesome\":\n return yt`<i class=\"trigger-fa-icon fa fa-${i}\"></i>`;\n case \"Uri\":\n return yt`<i\n class=\"trigger-custom-icon\"\n style=\"background: url(${i}) no-repeat center center;background-size: contain;\"\n ></i>`;\n default:\n return v;\n }\n }\n });\n }\n render() {\n return yt`<button\n class=${ei({\n trigger: !0,\n active: this.active,\n rendered: this.loaded\n })}\n @click=${this._toggleActive}\n >\n ${this.icon}\n <span class=\"trigger-close\">\n <svg\n width=\"18\"\n height=\"9\"\n viewBox=\"0 0 18 9\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M9 9C8.81794 9.00045 8.63759 8.96634 8.46939 8.89965C8.3012 8.83295 8.14851 8.735 8.02015 8.61145L0.194523 1.12367C0.068294 0.99862 -0.00155266 0.831133 2.61958e-05 0.657285C0.00160506 0.483436 0.0744832 0.317136 0.202964 0.194202C0.331445 0.0712675 0.505249 0.00153576 0.686941 2.50649e-05C0.868634 -0.00148563 1.04368 0.0653456 1.17437 0.186125L9 7.6739L16.8256 0.186125C16.9563 0.0653456 17.1314 -0.00148563 17.3131 2.50649e-05C17.4948 0.00153576 17.6686 0.0712675 17.797 0.194202C17.9255 0.317136 17.9984 0.483436 18 0.657285C18.0016 0.831133 17.9317 0.99862 17.8055 1.12367L9.97985 8.61145C9.85149 8.735 9.6988 8.83295 9.53061 8.89965C9.36241 8.96634 9.18206 9.00045 9 9Z\"\n fill=\"white\"\n />\n </svg>\n </span>\n <span class=\"trigger-loader\">\n <svg viewBox=\"25 25 50 50\">\n <circle\n cx=\"50\"\n cy=\"50\"\n r=\"20\"\n fill=\"none\"\n stroke=\"#000\"\n stroke-width=\"2\"\n stroke-miterlimit=\"10\"\n />\n </svg>\n </span>\n </button>`;\n }\n}\nj.styles = [\n gs`\n :host {\n --voca-rem-multiplier: 0.625;\n display: block;\n box-sizing: border-box;\n }\n\n .trigger {\n position: fixed;\n transform: scale(0);\n box-shadow: rgba(0, 0, 0, 0.16) 0px 5px 40px;\n bottom: 20px;\n right: 20px;\n z-index: 5;\n display: flex;\n align-items: center;\n justify-content: center;\n border: none;\n line-height: 55px;\n height: 55px;\n width: 55px;\n border-radius: 55px;\n cursor: pointer;\n background-color: #990ae3;\n font-family: Lato;\n text-decoration: none;\n border: 3px dashed transparent;\n box-sizing: border-box;\n transition: transform 200ms ease-out;\n }\n .trigger:hover {\n transform: scale(1.1) !important;\n }\n .trigger.rendered {\n transform: scale(1);\n }\n .trigger.active .trigger-icon {\n opacity: 0;\n transform: rotate(-180deg) scale(0);\n }\n .trigger.active .trigger-close {\n opacity: 1;\n transform: rotate(0deg) scale(1);\n }\n\n .trigger-icon {\n display: inline-block;\n line-height: inherit;\n text-align: center;\n opacity: 1;\n transform: rotate(0deg) scale(1);\n transition:\n opacity 200ms ease-out,\n transform 200ms ease-out;\n color: #ffffff;\n }\n .trigger-close {\n opacity: 0;\n transition: transform 200ms ease-out;\n transform: rotate(180deg) scale(0);\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n display: flex;\n justify-content: center;\n align-items: center;\n fill: #ffffff;\n }\n `\n];\nUt([\n Dt({ attribute: !1 })\n], j.prototype, \"symbol\", 2);\nUt([\n I()\n], j.prototype, \"active\", 2);\nUt([\n I()\n], j.prototype, \"loaded\", 2);\nUt([\n I()\n], j.prototype, \"icon\", 2);\nvar q = /* @__PURE__ */ ((s) => (s.Inline = \"inline\", s.Link = \"link\", s.Badge = \"badge\", s.Unsupported = \"unsupported\", s))(q || {});\nconst ii = (s, t) => s && t ? \"both\" : s ? \"widgetDOM\" : t ? \"triggerDOM\" : \"none\", ws = (s) => s ? typeof s == \"boolean\" && s ? \"link\" : typeof s == \"object\" && !Array.isArray(s) ? \"badge\" : \"unsupported\" : \"inline\", ri = (s, t, e, n, i = !1) => y(void 0, null, function* () {\n var h, l;\n const r = ii(\n t,\n e\n ), o = ws(n), a = {\n widgetDOMElement: t ? t.cloneNode(!0) : void 0,\n triggerDOMElement: e ? e.cloneNode(!0) : void 0\n }, c = {\n triggerType: o,\n cachedOriginals: a,\n widgetDOMElement: document.createElement(\"div\")\n };\n switch (r) {\n case \"both\": {\n c.widgetDOMElement = t || document.createElement(\"div\"), o !== \"inline\" && (c.triggerDOMElement = e);\n break;\n }\n case \"widgetDOM\": {\n if (c.widgetDOMElement = t || document.createElement(\"div\"), o !== \"inline\") {\n const d = document.body.appendChild(\n document.createElement(\"a\")\n );\n o === \"link\" && (d.innerText = s), c.triggerDOMElement = d;\n }\n break;\n }\n case \"triggerDOM\": {\n const d = document.createElement(\"div\");\n c.widgetDOMElement = d, o === \"inline\" ? (d.id = (e == null ? void 0 : e.id) || \"\", i ? (d.style.display = \"none\", (h = e == null ? void 0 : e.parentNode) == null || h.appendChild(d), c.callback = () => {\n var u;\n (u = e == null ? void 0 : e.parentNode) == null || u.replaceChild(\n d,\n e\n ), d.style.display = (e == null ? void 0 : e.style.display) || \"block\";\n }) : (l = e == null ? void 0 : e.parentNode) == null || l.replaceChild(\n d,\n e\n ), c.cachedOriginals.widgetDOMElement = e, c.cachedOriginals.triggerDOMElement = void 0) : (c.widgetDOMElement = document.body.appendChild(d), c.triggerDOMElement = e);\n break;\n }\n case \"none\": {\n const d = document.body.appendChild(\n document.createElement(\"div\")\n );\n if (c.widgetDOMElement = d, o !== \"inline\") {\n customElements.get(\"ace-widget-trigger\") || customElements.define(\"ace-widget-trigger\", j);\n const u = document.createElement(\"ace-widget-trigger\");\n u.symbol = n.symbol, document.body.appendChild(u), console.log(\"Created trigger\"), c.triggerDOMElement = u;\n }\n break;\n }\n }\n return c;\n}), oi = \"modals\";\nclass ai {\n constructor(t, e) {\n this.options = e, this.unsubscribe = [], this.container = t.createChild(this), this.container.register(\"widgetDOMElement\", this.options.widgetDOMElement), this.container.register(\n \"triggerDOMElement\",\n this.options.triggerDOMElement\n );\n const n = this.container.get(\"$widget\");\n this.options.widgetDOMElement.classList.add(\"ace-widget\"), this.options.widgetDOMElement.classList.add(`ace-widget_${n.name}`);\n const i = t.get(\"widgetDOMElements\") || [];\n t.register(\"widgetDOMElements\", [\n ...i,\n this.options.widgetDOMElement\n ]);\n }\n /**\n * Renders the view outlet to the DOM.\n */\n render() {\n const { widgetDOMElement: t, triggerDOMElement: e } = this.options, n = this.container.get(\"$widget\");\n return t.getAttribute(\"data-rendered\") === \"true\" ? Promise.resolve() : (e && this.options.triggerType === q.Badge && Ln(e), import(\"./render-369a79dd.js\").then((i) => i.default(this.container, t)).then(() => {\n if (t.setAttribute(\"data-rendered\", \"true\"), e && this.options.triggerType === q.Badge) {\n const r = this.options.triggerOptions.openTooltip;\n us(e, r);\n }\n nn(this.container, t);\n const i = this.container.get(\"$environment\").widgets.all();\n k(\n this.container,\n oi,\n m.Session\n ).then((r) => {\n r && r.forEach((o) => {\n i.find(\n (a) => a.name === o.name && a.state === \"activated\"\n ) && n.events.dispatch(\"widget:modal-opened\", o);\n });\n });\n }));\n }\n renderBadge(t) {\n const { triggerDOMElement: e } = this.options;\n if (!e)\n return;\n e.getAttribute(\"role\") || e.setAttribute(\"role\", \"button\");\n const { name: n } = this.container.get(\"$widget\"), { label: i, symbol: r, ariaLabel: o, closedTooltip: a, openTooltip: c } = t, h = { closedTooltip: a, openTooltip: c };\n this.options.triggerOptions = h;\n const l = Dn(e, {\n label: i,\n symbol: r,\n ariaLabel: o,\n widgetName: n,\n tooltip: a\n });\n this.unsubscribe.push(l);\n }\n dispose() {\n return y(this, null, function* () {\n var n, i, r, o;\n const { triggerDOMElement: t, widgetDOMElement: e } = this.options;\n this.options.cachedOriginals.widgetDOMElement && e && ((n = e.parentNode) == null || n.replaceChild(\n this.options.cachedOriginals.widgetDOMElement,\n e\n )), this.options.cachedOriginals.triggerDOMElement && t && ((i = t.parentNode) == null || i.replaceChild(\n this.options.cachedOriginals.triggerDOMElement,\n t\n )), this.unsubscribe.forEach((a) => {\n a();\n }), (r = e.parentNode) == null || r.removeChild(e), (o = t == null ? void 0 : t.parentNode) == null || o.removeChild(t);\n });\n }\n}\nconst bt = \"changesets\", ci = (s) => {\n const t = { tags: s.tags };\n return s.context && typeof s.context != \"function\" && (t.context = s.context), s.properties && typeof s.properties != \"function\" && (t.properties = s.properties), s.layout && typeof s.layout != \"function\" && (t.layout = s.layout), t;\n};\nclass $e {\n constructor(t, e) {\n this.container = t, this.storageWriter = e;\n }\n static create(t) {\n return M(\n t,\n bt,\n g.Necessary,\n {\n medium: m.Local\n }\n ).then(\n (e) => new $e(t, e)\n );\n }\n write(t, e, n, i) {\n return O(this)(() => k(\n this.container,\n bt,\n m.Local\n ).then((r = {}) => {\n const { keys: o = [], items: a = {} } = r, c = o.indexOf(t);\n return c > -1 && o.splice(c, 1), o.push(t), a[t] = {\n options: i,\n attributes: ci(n),\n rules: e.rules\n }, this.storageWriter({ keys: o, items: a });\n }));\n }\n remove(t) {\n return O(this)(() => k(\n this.container,\n bt,\n m.Local\n ).then((e = {}) => {\n const { keys: n = [], items: i = {} } = e, r = n.indexOf(t);\n if (r > -1)\n return n.splice(r, 1), delete i[t], this.storageWriter(e);\n }));\n }\n load(t) {\n return O(this)(() => k(\n this.container,\n bt,\n m.Local\n ).then((e = {}) => {\n const { keys: n = [], items: i = {} } = e;\n n.forEach((r) => {\n const o = i[r];\n if (o) {\n const { rules: a, attributes: c, options: h } = o;\n t.write({\n attributes: c,\n options: h,\n target: new tt(t, a)\n });\n }\n });\n }));\n }\n}\nconst hi = (s) => {\n const { container: t } = s;\n return $e.create(t).then(\n (e) => {\n const n = t.get(\"$settings\"), i = { localStorage: e }, r = new pt(s, i), o = ns(r, n);\n return s.events.subscribe(\n \"widget:state-change\",\n (a, c) => {\n c.state === ds.Deactivating && o();\n }\n ), r;\n }\n );\n}, li = (s) => Promise.resolve().then(() => wn).then(({ StorageProvider: t }) => new t()), di = (s) => Promise.resolve().then(() => me).then(\n ({ ActionResolver: t }) => new t(s)\n), ui = (s) => Promise.resolve().then(() => me).then(\n ({ ComponentResolver: t }) => new t(s)\n), pi = (s) => Promise.resolve().then(() => me).then(() => hi(s.get(\"$widget\"))), re = \"$settings\", oe = \"open\", Ye = \"activeStickyWidget\";\nclass Wi extends kn {\n constructor(t) {\n super(t), this.outlets = /* @__PURE__ */ new Map(), this.activated = void 0, this.subs = [], this.handleBootstrapping = (e) => {\n const n = {\n triggerDOMElement: e.sourceDOMElement,\n withRenderState: \"storage\"\n /* Storage */\n };\n this.container.get(\"settings\").then((i) => {\n const { activate: r } = i;\n (typeof r == \"undefined\" || r === null || r === !0) && (this.activated = (this.activated || this.widget.activate()).then(\n () => this.attach(n)\n ));\n });\n }, this.container.registerAsync(\n \"storage\",\n () => li(this.container)\n ), this.container.registerFactory(\"settings\", () => k(\n this.container,\n re,\n m.Local\n ).then((e = {}) => S(S({}, this.container.get(\"$settings\")), e))), An(this, \"load\", this.handleBootstrapping), this.container.registerAsync(\n \"componentResolver\",\n () => ui(this.container)\n ), this.container.registerAsync(\n \"actionResolver\",\n () => di(this.container)\n ), this.container.register(\"matchMedia\", window.matchMedia), this.container.registerAsync(\n \"components\",\n () => pi(this.container)\n );\n }\n initialize() {\n const t = this.container.getManyAsync(\n \"actionResolver\",\n \"components\"\n ), e = this.container.get(\"csp\");\n return e && (window.webprovisionsEnvironmentVariables || (window.webprovisionsEnvironmentVariables = {}), window.webprovisionsEnvironmentVariables.cspNonce = e.nonce), Promise.all([t, this.container.get(\"settings\")]).then(\n ([{ actionResolver: n, components: i }, r]) => (n.subscribe(\n this.widget.name,\n (c, h, l) => this.onAction(h, l)\n ), ((c) => {\n i.nodes.query({ type: \"view\" }).forEach((h) => {\n i.setSwitch(h, c);\n });\n })(\"index\"), this.events.subscribe(\"widget:data-loaded\", (c, { element: h }) => {\n this.widget.container.get(\"seoConfiguration\") && this.events.dispatch(\"widget:preloaded-replaced\", {\n element: h\n });\n }), Promise.resolve())\n );\n }\n attach(t = {}) {\n return this.container.get(\"settings\").then((n) => y(this, [n], function* ({ trigger: e }) {\n var p, _;\n const {\n widgetDOMElement: i,\n key: r = os(),\n triggerDOMElement: o,\n withRenderState: a\n } = t, h = ws(e) === q.Inline && ((o == null ? void 0 : o.childElementCount) || 0) > 0, l = yield ri(\n this.widget.name,\n i,\n o,\n e,\n h\n );\n this.outlets.size < 1 && !a && this.setRenderState(\"unset\");\n const d = () => {\n const f = () => C.querySelectorAll(\"[data-loading=true]\").length === 0, [C] = this.widget.container.get(\"widgetDOMElements\"), x = (A, $) => {\n f() && (l.callback && l.callback(), $.disconnect());\n }, mt = {\n attributes: !0,\n subtree: !0,\n childList: !0\n };\n f() && l.callback && l.callback(), new MutationObserver(x).observe(C, mt);\n };\n h && this.widget.container.getAsync(\"dataClient\").then(({ events: f }) => {\n f.subscribe(\n \"data-client:fetched\",\n (C, x) => {\n x.unresolvedQueries === 0 && d();\n }\n );\n });\n const u = this.getOrCreateViewOutlet(r, l);\n if (this.outlets.set(r, u), this.widget.events.dispatch(\"widget:attached\", {}, { bubbles: !0 }), l.triggerType === q.Badge && e && ((p = l.triggerDOMElement) == null || p.setAttribute(\n \"aria-expanded\",\n \"false\"\n ), u == null || u.renderBadge(e)), l.triggerType !== q.Inline && ((_ = l.triggerDOMElement) == null || _.addEventListener(\n \"click\",\n (f) => {\n f.preventDefault(), this.container.get(\"settings\").then(({ trigger: C }) => {\n u.render().then(() => this.renderState()).then((x) => C && C.action && C.action === \"hide\" ? x === E.open ? this.hide() : this.open() : x === E.open ? this.close() : this.open());\n });\n }\n )), this.outlets.size > 1)\n return this.renderState().then((f) => {\n this.triggerStateIfApplicable(f);\n });\n if (a)\n return a === \"storage\" ? this.renderState().then((f) => {\n if (l.triggerType === q.Inline) {\n this.triggerStateIfApplicable(\"open\");\n return;\n }\n this.triggerStateIfApplicable(f);\n }) : this.triggerStateIfApplicable(a);\n }));\n }\n detach(t) {\n if (t) {\n if (this.outlets.has(t)) {\n const e = this.outlets.get(t);\n e == null || e.dispose(), this.outlets.delete(t);\n return;\n }\n process.env.NODE_ENV !== \"production\" && console.warn(`detach(): Could not find View Outlet with key ${t}`);\n return;\n }\n this.outlets.forEach((e) => {\n e.dispose();\n }), this.outlets.clear();\n }\n triggerStateIfApplicable(t) {\n switch (t) {\n case \"closed\":\n this.close();\n break;\n case \"open\":\n this.open();\n break;\n case \"hidden\":\n this.hide();\n break;\n default:\n return;\n }\n }\n getOrCreateViewOutlet(t, e) {\n return this.outlets.has(t) ? this.outlets.get(t) : new ai(this.container, e);\n }\n render(t = {}) {\n if (process.env.NODE_ENV !== \"production\" && console.warn(\n \"widget.render() is deprecated. Use widget.attach() instead.\"\n ), t.open) {\n const e = st(S({}, t), {\n withRenderState: \"open\"\n /* Open */\n });\n return this.attach(e);\n }\n return this.attach(t);\n }\n activate(t) {\n t != null && t.override && this.setSettings(() => t.override), t != null && t.apiNotificationPriorityBy && this.container.register(\n \"apiNotificationPriorityBy\",\n t.apiNotificationPriorityBy\n );\n }\n setSettings(t) {\n return Promise.all([\n this.container.get(\"settings\"),\n M(\n this.container,\n re,\n g.Necessary,\n {\n medium: m.Local\n }\n )\n ]).then(([e, n]) => Promise.resolve(t(e)).then((i) => n(i).then(() => {\n const r = S(S({}, e), i);\n return this.widget.events.dispatch(\"widget:settings-updated\", r), r;\n })));\n }\n clearSettings() {\n return M(\n this.container,\n re,\n g.Necessary,\n { medium: m.Local }\n ).then((t) => t()).then(() => this.container.get(\"settings\")).then((t) => {\n this.widget.events.dispatch(\"widget:settings-updated\", t);\n });\n }\n action({ action: t, value: e }) {\n return this.container.getAsync(\"actionResolver\").then((n) => {\n n.action(this.widget.name, t, e);\n });\n }\n renderState() {\n return (() => k(\n this.container,\n oe,\n m.Session\n ).then((e = E.closed) => e))();\n }\n hide() {\n return this.outlets.size < 1 ? (process.env.NODE_ENV !== \"production\" && console.warn(\n \"hide(): No-op as no view outlets are registered. Invoke the attach() command first.\"\n ), Promise.resolve()) : (this.outlets.forEach((t) => t.render()), this.action({ action: \"hide\" }).then(() => {\n this.setTriggerState(!1);\n }));\n }\n open() {\n return this.outlets.size < 1 ? (process.env.NODE_ENV !== \"production\" && console.warn(\n \"open(): No-op as no view outlets are registered. Invoke the attach() command first.\"\n ), Promise.resolve()) : (this.outlets.forEach((t) => t.render()), this.action({ action: \"open\" }).then(() => (this.widget.events.dispatch(\"tracking:widget-rendered\", {}), this.onOpen())));\n }\n close() {\n return this.outlets.size < 1 ? (process.env.NODE_ENV !== \"production\" && console.warn(\n \"close(): No-op as no view outlets are registered. Invoke the attach() command first.\"\n ), Promise.resolve()) : this.action({ action: \"close\" }).then(() => this.onClose());\n }\n show() {\n return process.env.NODE_ENV !== \"production\" && console.warn(\n \"show(): Command is deprecated and will be removed in the future. Use open() instead.\"\n ), this.open();\n }\n onAction(t, e) {\n switch (t) {\n case \"close\":\n case \"open\":\n case \"hide\":\n const n = t === \"open\" ? E.open : t === \"close\" ? E.closed : E.hidden;\n return this.setRenderState(n).then(() => {\n this.setTriggerState(n === E.open), n !== E.hidden ? n === E.open ? this.onOpen() : this.onClose() : this.outlets.forEach(\n (i) => {\n var r;\n return (r = i.options.triggerDOMElement) == null ? void 0 : r.setAttribute(\n \"aria-expanded\",\n \"false\"\n );\n }\n );\n });\n }\n }\n setRenderState(t) {\n const { invoke: e, events: n } = this.container.get(\"$widget\");\n return Promise.all([\n M(\n this.container,\n oe,\n g.Necessary,\n {\n medium: m.Session\n }\n ),\n M(\n this.container,\n oe,\n g.Necessary,\n {\n medium: m.Local,\n duration: { minutes: 5 }\n }\n ),\n e(\"renderState\")\n ]).then(([i, r, o]) => {\n t === \"unset\" || !t ? (r(), i()) : i(t), n.dispatch(\"widget:render-state-changed\", {\n previous: o,\n next: t\n });\n });\n }\n onOpen() {\n return this.outlets.forEach(\n (t) => {\n var e;\n return (e = t.options.triggerDOMElement) == null ? void 0 : e.setAttribute(\"aria-expanded\", \"true\");\n }\n ), Promise.resolve();\n }\n onClose() {\n const t = this.container.getManyAsync(\"components\");\n return (() => this.container.get(\"settings\").then((n) => {\n const { activate: i } = this.container.get(\"$settings\");\n return n.activate !== i ? this.setSettings(() => Promise.resolve({ activate: i })) : Promise.resolve();\n }))().then(() => t).then(\n ({ components: n }) => {\n this.outlets.forEach(\n (i) => {\n var r;\n return (r = i.options.triggerDOMElement) == null ? void 0 : r.setAttribute(\n \"aria-expanded\",\n \"false\"\n );\n }\n );\n }\n );\n }\n setTriggerState(t) {\n this.outlets.forEach((e) => {\n const {\n options: { triggerDOMElement: n, triggerOptions: i }\n } = e, { openTooltip: r, closedTooltip: o } = i || {};\n n && (t ? us(n, r) : Mn(n, o));\n });\n }\n deactivate() {\n this.subs.forEach((e) => e());\n const t = [];\n return this.outlets.forEach((e) => t.push(e.dispose())), k(\n this.container,\n Ye,\n m.Local\n ).then((e) => e === this.widget.name ? M(\n this.container,\n Ye,\n g.Necessary,\n {\n medium: m.Local,\n scope: et.Implementation\n }\n ).then((n) => n()).then(() => Promise.all(t)) : Promise.all(t));\n }\n}\n/**\n * @license\n * Copyright 2021 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\nlet $s = class extends Event {\n constructor(t, e, n) {\n super(\"context-request\", { bubbles: !0, composed: !0 }), this.context = t, this.callback = e, this.subscribe = n != null && n;\n }\n};\n/**\n * @license\n * Copyright 2021 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\n/**\n * @license\n * Copyright 2021 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\nlet gi = class {\n constructor(t, e, n, i) {\n var r;\n if (this.subscribe = !1, this.provided = !1, this.value = void 0, this.t = (o, a) => {\n this.unsubscribe && (this.unsubscribe !== a && (this.provided = !1, this.unsubscribe()), this.subscribe || this.unsubscribe()), this.value = o, this.host.requestUpdate(), this.provided && !this.subscribe || (this.provided = !0, this.callback && this.callback(o, a)), this.unsubscribe = a;\n }, this.host = t, e.context !== void 0) {\n const o = e;\n this.context = o.context, this.callback = o.callback, this.subscribe = (r = o.subscribe) !== null && r !== void 0 && r;\n } else\n this.context = e, this.callback = n, this.subscribe = i != null && i;\n this.host.addController(this);\n }\n hostConnected() {\n this.dispatchRequest();\n }\n hostDisconnected() {\n this.unsubscribe && (this.unsubscribe(), this.unsubscribe = void 0);\n }\n dispatchRequest() {\n this.host.dispatchEvent(new $s(this.context, this.t, this.subscribe));\n }\n};\n/**\n * @license\n * Copyright 2021 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\nclass mi {\n constructor(t) {\n this.subscriptions = /* @__PURE__ */ new Map(), this.updateObservers = () => {\n for (const [e, { disposer: n }] of this.subscriptions)\n e(this.o, n);\n }, t !== void 0 && (this.value = t);\n }\n get value() {\n return this.o;\n }\n set value(t) {\n this.setValue(t);\n }\n setValue(t, e = !1) {\n const n = e || !Object.is(t, this.o);\n this.o = t, n && this.updateObservers();\n }\n addCallback(t, e, n) {\n if (!n)\n return void t(this.value);\n this.subscriptions.has(t) || this.subscriptions.set(t, { disposer: () => {\n this.subscriptions.delete(t);\n }, consumerHost: e });\n const { disposer: i } = this.subscriptions.get(t);\n t(this.value, i);\n }\n clearCallbacks() {\n this.subscriptions.clear();\n }\n}\n/**\n * @license\n * Copyright 2021 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\nclass fi extends Event {\n constructor(t) {\n super(\"context-provider\", { bubbles: !0, composed: !0 }), this.context = t;\n }\n}\nclass it extends mi {\n constructor(t, e, n) {\n super(e.context !== void 0 ? e.initialValue : n), this.onContextRequest = (i) => {\n const r = i.composedPath()[0];\n i.context === this.context && r !== this.host && (i.stopPropagation(), this.addCallback(i.callback, r, i.subscribe));\n }, this.onProviderRequest = (i) => {\n const r = i.composedPath()[0];\n if (i.context === this.context && r !== this.host) {\n for (const [o, { consumerHost: a }] of this.subscriptions)\n a.dispatchEvent(new $s(this.context, o, !0));\n i.stopPropagation();\n }\n }, this.host = t, e.context !== void 0 ? this.context = e.context : this.context = e, this.attachListeners(), this.host.addController(this);\n }\n attachListeners() {\n this.host.addEventListener(\"context-request\", this.onContextRequest), this.host.addEventListener(\"context-provider\", this.onProviderRequest);\n }\n hostConnected() {\n this.host.dispatchEvent(new fi(this.context));\n }\n}\n/**\n * @license\n * Copyright 2022 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\nfunction vi({ context: s, subscribe: t }) {\n return Zn({ finisher: (e, n) => {\n e.addInitializer((i) => {\n new gi(i, { context: s, callback: (r) => {\n i[n] = r;\n }, subscribe: t });\n });\n } });\n}\nconst yi = \"children\", bi = \"descriptor\", wi = \"container\", $i = \"context\", _i = \"layout\", Ci = \"properties\";\nclass Ei {\n constructor(t) {\n (this.host = t).addController(this);\n }\n hostConnected() {\n }\n hostDisconnected() {\n }\n setDescriptor(t) {\n this._descriptor = t;\n }\n setContainer(t) {\n this._container = t;\n }\n dispatch(t, e) {\n return y(this, null, function* () {\n if (!this._container || !this._descriptor)\n return;\n const n = yield pt.getInstance(\n this._container\n ), i = new tt(n).withId(\n this._descriptor.id\n );\n yield n.actions(\n i,\n this._descriptor.type || os()\n ).dispatch(t, e);\n });\n }\n}\nconst Ai = (s, t) => y(void 0, null, function* () {\n const e = s.properties().provider;\n let n = {}, i = \"\";\n Array.isArray(e) ? (i = e[0], n = e[1]) : i = e || \"\";\n const r = yield t.getAsync(i);\n if (!r)\n throw new Error(\"No provider defined in ListComponent\");\n return r.applyComponentNodeSettings(s.node.id, n), { provider: r, settings: n };\n}), Ji = (s, t) => y(void 0, null, function* () {\n const { provider: e, settings: n = {} } = yield Ai(s, t);\n return {\n addResource: (i, r) => e.addResource(i, r),\n getData: (i, r) => e.getData(i, r, n)\n };\n});\nclass Oi {\n constructor(t) {\n this.container = t, this.resources = /* @__PURE__ */ new Map(), this.nodeConfiguration = /* @__PURE__ */ new Map();\n }\n getData(t, e, n) {\n return y(this, null, function* () {\n const i = this.resources.get(t);\n if (!i)\n throw new Error(`Unable to get EntityProvider for \"${t}\"`);\n return yield i.query(e, n);\n });\n }\n addResource(t, e) {\n this.resources.set(t, e);\n }\n applyComponentNodeSettings(t, e) {\n this.nodeConfiguration.set(t, e);\n }\n}\nconst Ze = (s) => ({\n title: s.Title,\n id: s.Id.toString()\n});\nclass xi extends Oi {\n constructor(t) {\n super(t), this.addResource(\"item\", {\n query: (e, n) => y(this, null, function* () {\n const i = e.itemId, r = \"78aacc09-ae6f-5485-5ca3-9dacebb95825\", o = t.get(\"$widget\").name, a = n.projection || \"\", h = yield (yield fetch(\n `${a}/guides/${i}?client=${r}&funnel=${o}&site=%2F%2Fdemo.humany.cc%2Fadmin%2Finterfaces&phrase=&connectionId=&p.LastGuideId=2857`\n )).json();\n return h ? Ze(h) : null;\n })\n }), this.addResource(\"items\", {\n query: (e, n) => y(this, null, function* () {\n const i = \"\", r = t.get(\"$widget\").name, o = n.projection || \"\", d = yield (yield fetch(\n `${o}/guides?client=${i}&funnel=${r}&site=&phrase=&skip=0&take=10&sorting.type=popularity&sorting.direction=descending`\n )).json();\n return {\n items: (d.Matches || []).map((u) => Ze(u)),\n totalItems: (d == null ? void 0 : d.TotalMatches) || 0\n };\n })\n });\n }\n}\nconst Fi = (s) => y(void 0, null, function* () {\n s.registerAsync(\"guideProvider\", () => new xi(s));\n}), Ki = (s, t, e, n, i) => s.getAsync(\"componentResolver\").then((r) => (r.registerComponent(t, e), is(s, t, n || (() => {\n}), t, i))), b = (s, t, e) => {\n s && e.style.setProperty(t, s);\n}, Si = (s, t) => {\n var e, n, i, r, o, a, c, h, l, d, u;\n b((e = s.colors) == null ? void 0 : e.primary, \"--primary-color\", t), b((n = s.colors) == null ? void 0 : n.secondary, \"--secondary-color\", t), b((i = s.colors) == null ? void 0 : i.text, \"--text-color\", t), b((r = s.colors) == null ? void 0 : r.link, \"--link-color\", t), b((o = s.colors) == null ? void 0 : o.gray, \"--gray-color\", t), b((a = s.colors) == null ? void 0 : a.grayDark, \"--gray-dark-color\", t), b((c = s.spacing) == null ? void 0 : c.xs, \"--spacing-xs\", t), b((h = s.spacing) == null ? void 0 : h.sm, \"--spacing-sm\", t), b((l = s.spacing) == null ? void 0 : l.md, \"--spacing-md\", t), b((d = s.spacing) == null ? void 0 : d.lg, \"--spacing-lg\", t), b((u = s.spacing) == null ? void 0 : u.xl, \"--spacing-xl\", t), b(s.boxShadow, \"--box-shadow\", t), b(s.borderRadius, \"--border-radius\", t), b(s.borderRadiusSm, \"--border-radius-sm\", t), b(s.fontFamily, \"--font-family\", t);\n}, Pi = (s) => {\n const t = {};\n return Object.keys(s).forEach((e) => {\n e.indexOf(\"css-\") > -1 && (t[e] = s[e]);\n }), t;\n}, ki = (s, t) => {\n const e = Pi(t);\n Object.entries(e).forEach(([n, i]) => {\n s.style.setProperty(n.replace(\"css-\", \"\"), i);\n });\n};\nvar Ni = Object.defineProperty, Di = Object.getOwnPropertyDescriptor, U = (s, t, e, n) => {\n for (var i = n > 1 ? void 0 : n ? Di(t, e) : t, r = s.length - 1, o; r >= 0; r--)\n (o = s[r]) && (i = (n ? o(t, e, i) : o(i)) || i);\n return n && i && Ni(t, e, i), i;\n};\nconst Gi = (s) => {\n var e;\n class t extends s {\n constructor() {\n super(...arguments), this.entry = \"\", this._descriptorProvider = new it(\n this,\n bi,\n void 0\n ), this._childrenProvider = new it(this, yi, []), this._propertiesProvider = new it(this, Ci, {}), this._contextProvider = new it(this, $i, {}), this._layoutProvider = new it(this, _i, {}), this.actions = new Ei(this), this.context = {}, this.layout = {}, this.properties = {};\n }\n connectedCallback() {\n super.connectedCallback(), this.container && (this.actions.setContainer(this.container), pt.getInstance(this.container).then(\n (i) => y(this, null, function* () {\n var o;\n const r = i.nodes.get(this.entry);\n if (r) {\n this._propertyChangeListener = i.events.subscribe(\n \"components:properties-changed\",\n (d, u) => {\n r.id === u.node.id && this._setProperties(u.node.attributes.properties);\n }\n ), this._contextChangeListener = i.events.subscribe(\n \"components:context-changed\",\n (d, u) => {\n r.id === u.node.id && this._setContext(u.node.attributes.context);\n }\n ), this._layoutChangeListener = i.events.subscribe(\n \"components:layout-changed\",\n (d, u) => {\n r.id === u.node.id && this._setLayout(u.node.attributes.layout);\n }\n );\n const a = \"default\";\n this._unmountNode = r.mount(this.container), this._setDescriptor(ce(r, a)), this._setProperties(r.attributes.properties), this._setContext(r.attributes.context), this._setLayout(this.layout);\n const c = r.getChildren(a).map((d) => ce(d));\n this._childrenProvider.setValue(c);\n const l = (yield this.container.getAsync(\"componentResolver\")).getComponent(\n ((o = this.descriptor) == null ? void 0 : o.type) || \"\"\n );\n l.then && l.then((d) => {\n this.component = d.default;\n });\n }\n })\n ));\n }\n disconnectedCallback() {\n super.disconnectedCallback(), this._propertyChangeListener && this._propertyChangeListener(), this._contextChangeListener && this._contextChangeListener(), this._layoutChangeListener && this._layoutChangeListener(), this._unmountNode && this._unmountNode();\n }\n updated() {\n this.container && this.actions.setContainer(this.container), Si(this.context, this.renderRoot.host), this.renderRoot.host.style.setProperty(\n \"--width\",\n this.layout.size === \"full\" ? \"var(--columns, 1)\" : `min(${this.layout.size || \"var(--columns)\"}, var(--columns))`\n ), ki(this.renderRoot.host, this.properties);\n }\n _setProperties(i) {\n this._propertiesProvider.setValue(i), this.properties = i;\n }\n _setContext(i) {\n this._contextProvider.setValue(i), this.context = i;\n }\n _setLayout(i) {\n this._layoutProvider.setValue(i), this.layout = i;\n }\n _setDescriptor(i) {\n this.descriptor = i, this._descriptorProvider.setValue(i), this.actions.setDescriptor(i);\n }\n }\n return t.styles = [\n (e = s.styles) != null ? e : [],\n gs`\n :host {\n font-family: var(--font-family);\n grid-column: span var(--width);\n max-width: 100%;\n overflow: hidden;\n box-sizing: border-box;\n display: block;\n }\n * {\n box-sizing: border-box;\n }\n `\n ], U([\n vi({ context: wi }),\n Dt({ attribute: !1 })\n ], t.prototype, \"container\", 2), U([\n Dt()\n ], t.prototype, \"entry\", 2), U([\n I()\n ], t.prototype, \"descriptor\", 2), U([\n I()\n ], t.prototype, \"component\", 2), U([\n I()\n ], t.prototype, \"context\", 2), U([\n I()\n ], t.prototype, \"layout\", 2), U([\n I()\n ], t.prototype, \"properties\", 2), t;\n};\nexport {\n v as A,\n Oi as D,\n Fi as G,\n pt as T,\n Gi as W,\n it as a,\n gs as b,\n wi as c,\n I as d,\n Xn as e,\n F as f,\n ki as g,\n Wi as h,\n ti as i,\n yi as j,\n bi as k,\n $i as l,\n Si as m,\n Dt as n,\n _i as o,\n Ci as p,\n E as q,\n Ei as r,\n at as s,\n Qn as t,\n Ji as u,\n Ki as v,\n yt as x\n};\n//# sourceMappingURL=index-bd7f8b31.js.map\n","import { Container } from '@webprovisions/platform';\r\nimport { createWebComponent } from '@telia-ace/widget-runtime-flamingo';\r\n\r\ntype Symbol = {\r\n type: 'Uri' | 'Svg' | 'FontAwesome' | 'Text' | string;\r\n content: string;\r\n};\r\n\r\nexport enum AreaMode {\r\n Static = 'static',\r\n Drawer = 'drawer',\r\n Dropdown = 'dropdown',\r\n Modal = 'modal',\r\n}\r\n\r\nexport type AreaComponentProps = {\r\n mode: AreaMode;\r\n animation?: string;\r\n fullScreen?: boolean;\r\n columns?: number;\r\n scrollable?: boolean;\r\n header?: string;\r\n trigger?: {\r\n symbol?: Symbol;\r\n label?: string;\r\n size?: number;\r\n ariaLabel?: string;\r\n };\r\n};\r\n\r\nexport const AreaComponent = (container: Container) => {\r\n return createWebComponent(\r\n container,\r\n 'area',\r\n import('./area'),\r\n (_component) => {}\r\n );\r\n};\r\n\r\nexport default AreaComponent;\r\n"],"names":["_s","Cs","Es","_e","As","Os","xs","Ss","Ce","s","t","e","S","st","Ee","y","n","i","r","h","Ps","ks","Ns","Ae","Ds","Ms","Oe","Ls","Is","Wt","Ts","ct","R","js","xe","Vs","Qe","l","d","p","Bt","Us","Et","z","zs","Se","Hs","Xe","ts","tt","Ws","pe","Mt","Bs","_","f","Lt","rt","K","N","ge","ae","es","It","wt","ss","qs","Js","Fs","Ks","qt","P","Gs","Ys","C","x","mt","zt","A","$","Ht","pt","is","Rt","ot","w","rs","Xs","Pe","tn","ft","O","rn","ke","on","an","Ne","G","m","et","g","M","De","ye","hn","ve","pn","mn","k","un","xt","gn","Z","Jt","as","cn","jt","Tt","Ft","Kt","fe","cs","Ot","he","ln","$t","dn","Gt","vn","St","H","yn","Me","bn","hs","Yt","$n","ht","T","_n","Le","Cn","ls","Zt","On","Pt","W","xn","Te","Sn","Pn","Ct","be","we","je","ps","In","gs","Rn","Ve","Qt","kt","Ue","Tn","ze","le","ms","Xt","de","Y","o","a","te","Nt","Q","He","ue","L","fs","jn","J","lt","dt","vs","Vn","ee","nt","We","Be","V","qe","Je","ys","Un","yt","F","v","Fe","B","bs","zn","ut","Wn","qn","Jn","Vt","X","Hn","gt","Fn","Bn","Ke","Kn","se","ne","at","Ge","Gn","Yn","Dt","I","ie","Qn","Xn","ti","ei","si","ni","Ut","j","yi","Ci","Ki","AreaComponent","container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GAAGS,EAAE,WAAW,UAAU,CAAC;AAC3BD,GAAG;AAAA,EACDR,GAAG;AACL,GAAGS,EAAE,WAAW,UAAU,CAAC;AAC3BD,GAAG;AAAA,EACDR,GAAG;AACL,GAAGS,EAAE,WAAW,QAAQ,CAAC;AA+oBpB,MAACC,KAAK,YAAgFC,KAAK,cA6F5FC,KAAK,CAAC/N,GAAGC,GAAGC,GAAGK,GAAGC,MAAMR,EAAE,SAAS,mBAAmB,EAAE,KAAK,CAACS,OAAOA,EAAE,kBAAkBR,GAAGC,CAAC,GAAGuE,GAAGzE,GAAGC,GAAGM,MAAM,MAAM;AACzH,IAAIN,GAAGO,CAAC,EAAE,GCvkHGwN,KAAgB,CAACC,MACrBC;AAAAA,EACLD;AAAA,EACA;AAAA,EACA,OAAO,oBAAQ;AAAA,EACf,CAACE,MAAe;AAAA,EAAC;AAAA;"}
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { A as f } from "./index-dccce6e5.js";
1
+ import { A as f } from "./index-40a90aa7.js";
2
2
  export {
3
3
  f as default
4
4
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@telia-ace/widget-components-area-flamingo",
3
- "version": "1.0.12",
3
+ "version": "1.0.14",
4
4
  "description": "Type definition for Grid widget.",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "author": "Telia Company AB",
@@ -22,14 +22,14 @@
22
22
  "sideEffects": true,
23
23
  "dependencies": {
24
24
  "@lit-labs/context": "^0.4.0",
25
- "@telia-ace/widget-core": "^1.0.27",
26
25
  "@teliads/components": "^22.1.1",
27
26
  "@teliads/icons": "^8.4.0",
28
27
  "@webprovisions/platform": "^1.1.3",
29
28
  "lit": "^2.8.0",
30
29
  "lit-html": "^2.8.0",
31
30
  "sass": "^1.66.1",
32
- "@telia-ace/widget-runtime-flamingo": "1.0.14"
31
+ "@telia-ace/widget-core-flamingo": "1.0.14",
32
+ "@telia-ace/widget-runtime-flamingo": "1.0.16"
33
33
  },
34
34
  "devDependencies": {
35
35
  "@types/node": "^20.5.4",