@telia-ace/widget-components-area-flamingo 1.0.9 → 1.0.10

Sign up to get free protection for your applications and to get access to all the features.
@@ -1 +1 @@
1
- {"version":3,"file":"index-dccce6e5.js","sources":["../../../packages/runtime/dist/index-212dab55.js","../src/area-component.ts"],"sourcesContent":["var qr = Object.defineProperty, Jr = Object.defineProperties;\nvar Kr = Object.getOwnPropertyDescriptors;\nvar un = Object.getOwnPropertySymbols, Gr = Object.getPrototypeOf, Yr = Object.prototype.hasOwnProperty, Zr = Object.prototype.propertyIsEnumerable, Qr = Reflect.get;\nvar dn = (n, t, e) => t in n ? qr(n, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[t] = e, tt = (n, t) => {\n for (var e in t || (t = {}))\n Yr.call(t, e) && dn(n, e, t[e]);\n if (un)\n for (var e of un(t))\n Zr.call(t, e) && dn(n, e, t[e]);\n return n;\n}, Mt = (n, t) => Jr(n, Kr(t));\nvar pn = (n, t, e) => Qr(Gr(n), e, t);\nvar B = (n, t, e) => new Promise((r, s) => {\n var i = (c) => {\n try {\n a(e.next(c));\n } catch (h) {\n s(h);\n }\n }, o = (c) => {\n try {\n a(e.throw(c));\n } catch (h) {\n s(h);\n }\n }, a = (c) => c.done ? r(c.value) : Promise.resolve(c.value).then(i, o);\n a((e = e.apply(n, t)).next());\n});\nconst Pe = (n, t, e, ...r) => {\n const s = `[${n.get(\"$environment\").name || \"webprovisions\"}] ${e}`;\n switch (t) {\n case \"info\":\n console.info(s, ...r);\n break;\n case \"warning\":\n console.warn(s, ...r);\n break;\n case \"error\":\n console.error(s, ...r);\n break;\n }\n}, Xr = (n) => {\n const t = n.container || n;\n return {\n info: (e, ...r) => Pe(t, \"info\", e, ...r),\n warn: (e, ...r) => Pe(t, \"warning\", e, ...r),\n error: (e, ...r) => Pe(t, \"error\", e, ...r)\n };\n};\nvar he = /* @__PURE__ */ ((n) => (n.Implementation = \"implementation\", n.Widget = \"widget\", n))(he || {}), mt = /* @__PURE__ */ ((n) => (n.Pre = \"pre\", n.Post = \"post\", n))(mt || {});\nconst ts = (n, t, e, r) => {\n try {\n const s = new t(e, r);\n return {\n name: n,\n invoke: (i, o) => {\n let a;\n return s[i] && (a = s[i].call(s, o)), Promise.resolve(a);\n },\n getInstance: () => s\n };\n } catch (s) {\n if (s.message && s.message.indexOf(\"is not a constructor\") >= 0)\n return {\n name: n,\n invoke: (i) => {\n let o;\n return i === \"initialize\" && (o = t(e, r)), Promise.resolve(o);\n },\n getInstance: () => t\n };\n throw s;\n }\n};\nfunction gn(n, t) {\n return typeof n == \"undefined\" ? t : n;\n}\nlet es = class {\n constructor(t = {}) {\n this.part = t;\n }\n createCommand(t, e, r) {\n let s;\n typeof e == \"function\" ? s = {\n scope: he.Widget,\n stage: mt.Post,\n defaultArgs: void 0,\n handlerResolver: e\n } : s = {\n scope: gn(e.scope, he.Widget),\n stage: gn(e.stage, mt.Post),\n defaultArgs: e.defaultArgs,\n handlerResolver: r\n };\n let i = this.part;\n const o = t.split(\".\");\n return o.forEach((a, c) => {\n c === o.length - 1 ? i[a] || (i[a] = () => s) : i = this.part[a] = this.part[a] || {};\n }), this;\n }\n get() {\n return this.part;\n }\n};\nconst Xe = (n) => {\n const t = new es({});\n return n(t), t.get();\n};\nXe((n) => {\n n.createCommand(\n \"types.register\",\n { scope: he.Implementation, stage: mt.Pre },\n (t) => (e, r) => {\n t.container.get(\"$types\")[e] = r;\n }\n ).createCommand(\n \"type\",\n { stage: mt.Pre },\n (t) => (e) => {\n t.container.register(\"$type\", e);\n }\n ).createCommand(\n \"settings\",\n { stage: mt.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: mt.Pre },\n (t) => (e, r, s) => {\n const { container: i } = t;\n let o = null, a = e, c = r;\n typeof e == \"string\" && (o = e, a = r, c = s);\n const h = (l) => {\n const { transformPluginSettings: u } = t.container.get(\"$environmentOptions\"), d = u ? u(\n c || {},\n o,\n t.container,\n a\n ) : r;\n try {\n const p = ts(\n o,\n a,\n i,\n d\n );\n i.get(\"$plugins\").push(p), l && p.invoke(\"initialize\", null);\n } catch (p) {\n Xr(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, r) => {\n t.container.register(e, r);\n }\n ).createCommand(\n \"container.registerAsync\",\n (t) => (e, r) => {\n t.container.registerAsync(e, r);\n }\n ).createCommand(\n \"container.registerFactory\",\n (t) => (e, r) => {\n t.container.registerFactory(e, r);\n }\n ).createCommand(\n \"container.touch\",\n (t) => (e, r) => {\n t.container.touch(e, r);\n }\n ).createCommand(\n \"csp\",\n {},\n (t) => (e) => {\n t.container.register(\"csp\", e);\n }\n );\n});\nvar nr = /* @__PURE__ */ ((n) => (n.Activating = \"activating\", n.Loading = \"loading\", n.Activated = \"activated\", n.Deactivating = \"deactivating\", n.Deactivated = \"deactivated\", n))(nr || {});\nlet ns = class {\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, r) => {\n this.settings = r;\n });\n }\n};\nvar fn = Object.getOwnPropertySymbols, rs = Object.prototype.hasOwnProperty, ss = Object.prototype.propertyIsEnumerable, is = (n, t) => {\n var e = {};\n for (var r in n)\n rs.call(n, r) && t.indexOf(r) < 0 && (e[r] = n[r]);\n if (n != null && fn)\n for (var r of fn(n))\n t.indexOf(r) < 0 && ss.call(n, r) && (e[r] = n[r]);\n return e;\n};\nfunction os(n = {}) {\n const t = n, {\n phrase: e = \"\",\n category: r,\n guideCategory: s,\n contactCategory: i,\n take: o,\n connectionKey: a,\n accordion: c,\n id: h,\n uriName: l,\n sorting: u,\n tag: d,\n tagId: p,\n tagTitle: b\n } = t, v = is(t, [\n \"phrase\",\n \"category\",\n \"guideCategory\",\n \"contactCategory\",\n \"take\",\n \"connectionKey\",\n \"accordion\",\n \"id\",\n \"uriName\",\n \"sorting\",\n \"tag\",\n \"tagId\",\n \"tagTitle\"\n ]), g = {};\n return Object.keys(v).forEach((E) => {\n typeof n[E] == \"string\" && (g[E] = n[E]);\n }), typeof e == \"string\" && e.length && (g.phrase = e), e === null && (g.phrase = e), typeof s == \"string\" && s !== \"0\" && (g.guideCategory = s), typeof s == \"number\" && s !== 0 && (g.guideCategory = s), typeof s == \"object\" && s !== null && (typeof s.id == \"string\" && s.id !== \"0\" && (g.guideCategory = s.id), typeof s.id == \"number\" && s.id !== 0 && (g.guideCategory = s.id)), typeof i == \"string\" && i !== \"0\" && (g.contactCategory = i), typeof i == \"number\" && i !== 0 && (g.contactCategory = i), typeof i == \"object\" && i !== null && (typeof i.id == \"string\" && i.id !== \"0\" && (g.contactCategory = i.id), typeof i.id == \"number\" && i.id !== 0 && (g.contactCategory = i.id)), typeof r == \"string\" && r !== \"0\" && (g.category = r), typeof r == \"number\" && r !== 0 && (g.category = r), typeof r == \"object\" && r !== null && (typeof r.id == \"string\" && r.id !== \"0\" && (g.category = r.id), typeof r.id == \"number\" && r.id !== 0 && (g.category = r.id)), h && (g.id = h), l && (+g.category || +g.guideCategory || +g.guide || +g.contactCategory || +g.contactMethod) && (g.uriName = l), a && (g.connectionKey = a), o && (g.take = o), u && (g.sorting = u), typeof c == \"string\" && c.length > 0 && (g.accordion = c), typeof d == \"string\" && d !== \"0\" && (g.tag = d), typeof d == \"number\" && d !== 0 && (g.tag = d), Array.isArray(d) && d.length && (g.tag = d), (typeof p == \"string\" || typeof p == \"number\") && (g.tagId = p), typeof b == \"string\" && (g.tagTitle = b), typeof g.tag == \"string\" && (g.tag = g.tag.split(\",\")), g;\n}\nconst be = (n, t, ...e) => typeof t == \"string\" ? n(`[humany] ${t}`, ...e) : n(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 I = Rt;\nI.log = (...n) => be(console.log, ...n);\nI.warn = (...n) => be(console.warn, ...n);\nI.error = (...n) => be(console.error, ...n);\nI.info = (...n) => be(console.info, ...n);\nconst rr = (n) => {\n let t = {}, e, r;\n if (typeof n != \"object\" || n === null)\n return n;\n t = Array.isArray(n) ? [] : {};\n for (r in n)\n e = n[r], t[r] = typeof e == \"object\" && e !== null ? rr(e) : e;\n return t;\n}, as = rr;\nfunction mn(n) {\n let t = 0;\n if (n.length === 0)\n return t.toString();\n for (let e = 0; e < n.length; e++) {\n const r = n.charCodeAt(e);\n t = (t << 5) - t + r, t = t & t;\n }\n return t.toString();\n}\nlet cs = 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, r, s) {\n this.tasks.push({ task: t, resolve: e, reject: r, done: s }), 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 r = setTimeout(() => {\n process.env.NODE_ENV !== \"production\" && I.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), s = Promise.resolve(t.task()).then((i) => (clearTimeout(r), clearTimeout(e), i));\n return Promise.resolve(s).then(this.next).then(\n () => s.then((i) => {\n t.done(), t.resolve(i);\n })\n ).catch((i) => (t.done(), t.reject(i), this.next()));\n }\n return Promise.resolve();\n });\n }\n};\nconst Gt = /* @__PURE__ */ new WeakMap();\nfunction X(n, t = 5e3, e = 1e3) {\n return Gt.has(n) || Gt.set(n, new cs(t, e)), (r) => new Promise((s, i) => {\n const o = Gt.get(n);\n o.add(r, s, i, () => {\n o.tasks.length || Gt.delete(n);\n });\n });\n}\nconst hs = (n, t) => {\n const e = () => t.querySelectorAll(\"[data-loading=true]\").length > 0, r = (() => {\n let s = !1;\n return () => {\n s || (n.get(\"$widget\").events.dispatch(\"widget:data-loaded\", {\n element: t\n }), s = !0);\n };\n })();\n if (!e())\n return r();\n new MutationObserver((s, i) => {\n s.find(\n (o) => o.type === \"attributes\" && o.attributeName === \"data-loading\"\n ) && !e() && (i.disconnect(), r());\n }).observe(t, {\n attributes: !0,\n childList: !0,\n subtree: !0\n });\n}, ls = (n, t) => {\n n.get(\"$widget\").container.getAsync(\"components\").then((e) => {\n e.events.subscribeOnce(\"components:component-model-initialized\", () => {\n let r = e.nodes.visible.reduce(\n (i, o) => (!o.name || !o.type || o.type === \"view\" || o.type === \"root\" || o.attributes.layout.size === \"none\" || t.querySelector(`[data-name=\"${o.name}\"]`) || i.push(o.name), i),\n []\n ), s = !1;\n new MutationObserver((i, o) => {\n i.forEach((a) => {\n if (a.addedNodes) {\n const c = Array.from(\n a.addedNodes\n ).reduce((h, l) => {\n const u = l.getAttribute && l.getAttribute(\"data-name\");\n return u && r.indexOf(u) > -1 && h.push(u), h;\n }, []);\n r = r.filter((h) => c.indexOf(h) === -1), !s && r.length === 0 && (s = !0, hs(n, 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}, us = ls, ds = (n = {}) => (Object.keys(n).forEach((t) => {\n (n[t] === null || typeof n[t] == \"undefined\") && delete n[t];\n}), n), $t = ds, vn = (n, t) => {\n let e = !0;\n return Object.keys(n).length !== Object.keys(t).length || Object.keys(n).some((r) => !Object.keys(t).some((s) => r === s)) ? !1 : (Object.keys(n).forEach((r) => {\n if (e) {\n const s = typeof n[r] == \"undefined\" ? \"\" : n[r], i = typeof t[r] == \"undefined\" ? \"\" : t[r];\n e = s.toString() === i.toString();\n }\n }), e);\n}, ot = () => Math.floor((1 + Math.random()) * 65536).toString(16).substring(1);\nfunction qt() {\n return ot() + ot() + \"-\" + ot() + \"-\" + ot() + \"-\" + ot() + \"-\" + ot() + ot() + ot();\n}\nvar ps = Object.defineProperty, gs = Object.defineProperties, fs = Object.getOwnPropertyDescriptors, yn = Object.getOwnPropertySymbols, ms = Object.prototype.hasOwnProperty, vs = Object.prototype.propertyIsEnumerable, bn = (n, t, e) => t in n ? ps(n, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[t] = e, ys = (n, t) => {\n for (var e in t || (t = {}))\n ms.call(t, e) && bn(n, e, t[e]);\n if (yn)\n for (var e of yn(t))\n vs.call(t, e) && bn(n, e, t[e]);\n return n;\n}, bs = (n, t) => gs(n, fs(t));\nclass ws {\n constructor(t) {\n const { events: e } = t.get(\"$widget\");\n this.events = e.createChild(this);\n }\n action(t, e, r) {\n this.events.dispatch(\"data:action\", { action: e, value: r, target: t }, { bubbles: !0 });\n }\n subscribe(t, e) {\n return this.events.subscribe(\n \"data:action\",\n (r, { action: s, value: i, target: o }) => t === o && e(t, s, i)\n );\n }\n}\nconst sr = (n) => {\n const t = [];\n return [\n (e, r) => {\n t.push(n.subscribe(e, r));\n },\n () => {\n t.forEach((e) => {\n e();\n });\n }\n ];\n};\nlet Nt = 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 $s(this.platform, this);\n }\n}, tn = class {\n constructor(t, e, r) {\n this.platform = t, this.node = e, this.actions = new we(\n t,\n new Nt(t).withId(e.id),\n r\n );\n const [s, i] = sr(this.platform.events);\n this.subscribe = s, this.unsubscribe = i;\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: r }) => {\n r === 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: r }) => {\n r === 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 $s {\n constructor(t, e, r = !0) {\n this.platform = t, this.target = e, this.clearOnDispose = r, this.removes = [], this.actions = new we(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 Os = (n, t, e) => {\n const r = n.concat(), s = (i, o, a) => {\n let c = !0;\n if (r.length) {\n const h = r.shift(), l = (u, d) => (c = !1, s(u, Object.assign({}, o, d), a));\n return Promise.resolve(h(i, l, a)).then((u) => bs(ys({}, u), {\n cancelled: c\n }));\n }\n return Promise.resolve({ data: i, cancelled: !1, options: o });\n };\n return s(t, {}, e);\n};\nlet we = class {\n constructor(t, e, r) {\n this.platform = t, this.target = e, this.ns = r, this.subscriptions = [], this.create = this.create.bind(this);\n }\n create(t, e = () => {\n }) {\n const r = {\n key: t,\n fn: e,\n target: this.target,\n ns: this.ns\n };\n this.platform.actionsState.handlers.push(r);\n const s = () => {\n const i = this.platform.actionsState.handlers.indexOf(r);\n i > -1 && this.platform.actionsState.handlers.splice(i, 1);\n };\n return this.subscriptions.push(s), s;\n }\n dispatch(t, e) {\n const r = this.platform.nodes.all.concat(\n this.platform.nodes.detached\n ), s = {}, i = this.platform.actionsState.handlers.filter(\n (o) => o.key === t && (!o.ns || !this.ns || o.ns === this.ns)\n );\n return Promise.all(\n i.map((o) => {\n const a = r.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 tn(\n this.platform,\n h,\n this.ns\n );\n return Os(c, e, l).then((u) => {\n const { data: d = {}, options: p, cancelled: b } = u;\n return Promise.resolve(\n b ? {} : o.fn(d, p, l)\n ).then((v) => {\n s[h.id] = v;\n });\n });\n })\n );\n })\n ).then(() => s);\n }\n watch(t, e) {\n let r = t, s = this.ns;\n const i = t.split(\".\");\n i.length > 1 && (s = i[0], r = i.splice(1).join(\".\"));\n const o = {\n fn: e,\n target: this.target,\n key: r,\n ns: s\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((n) => {\n n.createCommand(\"components\", (t) => (e) => {\n t.events.subscribeOnce(\"components:platform-created\", (r, { platform: s }) => {\n e.handlers && e.handlers.forEach(([i, o]) => {\n s.addComponentHandler(i, o);\n });\n });\n });\n});\nlet qe = class {\n constructor(t, e) {\n this.events = t, this.tags = [], this.children = {}, this.changesets = [], this.mountCount = 0, this.id = qt(), 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 r = t.get(\"mounted-nodes\");\n return r || (r = /* @__PURE__ */ new Map(), t.register(\"mounted-nodes\", r)), r.has(this) ? (process.env.NODE_ENV !== \"production\" && I.error(\"Trying to mount an already mounted component node.\", this), () => {\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 r.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 = {}, r) {\n const s = [{ properties: t }, e];\n return this.changesets.push(s), this.events.dispatch(\"components:set-properties\", { node: this }), () => {\n if (r) {\n const i = this.changesets.indexOf(s);\n i > -1 && (this.changesets.splice(i, 1), this.events.dispatch(\"components:set-properties\", { node: this }));\n }\n };\n }\n writeProperties(t, e = {}, r) {\n const s = [{ properties: t }, e];\n return this.changesets.push(s), this.events.dispatch(\"components:set-properties\", { node: this }), () => {\n if (r) {\n const i = this.changesets.indexOf(s);\n i > -1 && (this.changesets.splice(i, 1), this.events.dispatch(\"components:set-properties\", { node: this }));\n }\n };\n }\n writeLayout(t, e = {}, r) {\n const s = [{ layout: t }, e];\n return this.changesets.push(s), this.events.dispatch(\"components:set-layout\", { node: this }), () => {\n if (!r)\n return;\n const i = this.changesets.indexOf(s);\n i > -1 && (this.changesets.splice(i, 1), this.events.dispatch(\"components:set-layout\", { node: this }));\n };\n }\n writeContext(t, e = {}, r) {\n const s = [{ context: t }, e];\n return this.changesets.push(s), this.events.dispatch(\"components:set-context\", { node: this }), () => {\n if (!r)\n return;\n const i = this.changesets.indexOf(s);\n i > -1 && (this.changesets.splice(i, 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((r, s, i) => {\n const { order: o = i } = s.attributes.layout;\n return r[o] ? r.splice(o, 0, s) : r[o] = s, r;\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 r = this.children[e], s = r.indexOf(t);\n s > -1 && (r.splice(s, 1), this.events.dispatch(\"components:node-removed\", { node: t, parentNode: this }));\n }), delete t.parent;\n }\n};\nconst ir = (n, t, e) => {\n for (let r = 0, s = n.length; r < s && e(n[r]) !== !0; r++) {\n const i = t[n[r].id] || \"default\", o = n[r].getChildren(i);\n ir(o, t, e);\n }\n}, $e = (n, t, e) => {\n if (e(n) !== !0) {\n const r = t[n.id] || \"default\", s = n.children[r];\n ir(s, t, e);\n }\n}, ne = (n, t) => {\n const e = [];\n return $e(n, t, (r) => {\n e.push(r);\n }), e;\n}, or = (n, t, e) => {\n let r;\n return $e(n, t, (s) => {\n if (e(s))\n return r = s, !0;\n }), r;\n};\nlet Es = class {\n constructor(t, e, r) {\n this.root = t, this.switches = e, this.all = [], this.visible = [], this.detached = [], r.subscribe(\"components:node-appended\", (s, i) => {\n this.all.push(i.node), this.visible = ne(t, e);\n }), r.subscribe(\"components:node-removed\", (s, i) => {\n let o = this.all.indexOf(i.node);\n o > -1 && this.all.splice(o, 1), o = this.visible.indexOf(i.node), o > -1 && this.visible.splice(o, 1), this.visible = ne(t, e);\n }), r.subscribe(\"components:node-switched\", (s, i) => {\n this.visible = ne(t, e);\n });\n }\n query(t = {}) {\n const e = [];\n return $e(this.root, this.switches, (r) => {\n Object.keys(t).every((s) => t[s] === r[s]) && e.push(r);\n }), e;\n }\n get(t) {\n return or(this.root, this.switches, (e) => e.id === t) || this.detached.find((e) => e.id === t);\n }\n}, xs = class {\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 _s = (n) => {\n let t = n, e = 0;\n for (; t.parent; )\n e = e + 1, t = t.parent;\n return e;\n}, As = (n) => n.map(([t, e]) => [_s(t), t, e]).sort(([t], [e]) => t - e).map(([, t, e]) => [t, e]), Ce = (n) => n instanceof Date ? !1 : n && typeof n == \"object\" && !Array.isArray(n), et = (n, ...t) => {\n if (!t.length)\n return n;\n const e = t.shift();\n if (Ce(n) && Ce(e))\n for (const r in e)\n Ce(e[r]) ? (n[r] || Object.assign(n, { [r]: {} }), et(n[r], e[r])) : Object.assign(n, { [r]: e[r] });\n return et(n, ...t);\n}, Ps = (n, t) => !n || n === \"all\" ? !0 : n.some((e) => t.indexOf(e) > -1), Cs = (n, t) => {\n let e = [], r = [], s;\n const i = () => {\n process.env.NODE_ENV !== \"production\" && console.time(\"state-processor.flush\");\n const a = /* @__PURE__ */ new Map(), c = As(e.map((l, u) => [l, r[u]])), h = (l, u) => {\n var d;\n const p = a.get(l) || {}, b = u.context && !p.context, v = u.properties && !p.properties, g = u.layout && !p.layout;\n a.set(l, {\n context: p.context || b,\n properties: p.properties || v,\n layout: p.layout || g\n }), v && (l.attributes.properties = {}), g && (l.attributes.layout = {}), b && (l.attributes.context = et({}, (d = l.parent) == null ? void 0 : d.attributes.context));\n const E = [], R = [], F = [];\n if (l.changesets.forEach((H) => {\n const [k, U] = H;\n Ps(U.breakpoints, n.breakpoints) && (v && (typeof k.properties == \"function\" ? E.push(\n k.properties\n ) : et(l.attributes.properties, k.properties)), g && (typeof k.layout == \"function\" ? R.push(k.layout) : et(l.attributes.layout, k.layout)), b && (typeof k.context == \"function\" ? F.push(k.context) : et(l.attributes.context, k.context)));\n }), E.forEach((H) => {\n et(l.attributes.properties, H(l.attributes.properties));\n }), R.forEach((H) => {\n et(l.attributes.layout, H(l.attributes.layout));\n }), F.forEach((H) => {\n et(l.attributes.context, H(l.attributes.context));\n }), b || u.recursive) {\n const H = n.getBranch(l), k = u.recursive ? u : {\n context: !!b\n };\n l.getChildren(H).forEach((U) => {\n h(U, k);\n });\n }\n };\n process.env.NODE_ENV !== \"production\" && console.timeEnd(\"state-processor.flush\"), c.forEach(([l, u]) => {\n h(l, u);\n }), e = [], r = [], t(a);\n }, o = () => {\n clearTimeout(s), s = setTimeout(i, 0);\n };\n return (a, c) => {\n const h = e.indexOf(a);\n if (h > -1) {\n const l = r[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), r.push(c), o();\n };\n};\nlet Jt = class {\n constructor(t, e = {}) {\n this.providers = e, this.breakpoints = [], this.actionsState = { handlers: [], watchers: [] }, this.switches = {}, this.changesets = [], this.subscriptions = [], this.customComponentHandler = new xs(), this.events = t.events.createChild(this);\n const r = new qe(this.events, \"root\");\n r.name = `root-${t.name}`, this.nodes = new Es(r, this.switches, this.events);\n const s = this.processNode = Cs(this, (i) => {\n const o = Array.from(i.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 = i.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(\"components:component-model-initialized\", {}, { bubbles: !0 });\n });\n Promise.all(\n Object.keys(e).map((i) => e[i].load(this))\n ), this.subscriptions.push(\n this.events.subscribe(\n \"components:node-appended\",\n (i, o) => {\n const { node: a } = o;\n this.changesets.forEach((c) => {\n const { changeset: h, target: l, removes: u } = c, [d, p] = h;\n l.match(o.node) && (d.properties && u.push(a.writeProperties(d.properties, p)), d.context && u.push(a.writeContext(d.context, p)), d.layout && u.push(a.writeLayout(d.layout, p)));\n });\n }\n )\n ), this.subscriptions.push(\n this.events.subscribe(\n \"components:node-appended\",\n (i, o) => {\n s(o.node, { properties: !0, context: !0 });\n }\n )\n ), this.subscriptions.push(\n this.events.subscribe(\n \"components:set-properties\",\n (i, o) => {\n s(o.node, { properties: !0 });\n }\n )\n ), this.subscriptions.push(\n this.events.subscribe(\n \"components:set-context\",\n (i, o) => {\n s(o.node, { properties: !0, context: !0 });\n }\n )\n ), this.subscriptions.push(\n this.events.subscribe(\n \"components:set-indent\",\n (i, o) => {\n s(o.node, { layout: !0 });\n }\n )\n ), this.subscriptions.push(\n this.events.subscribe(\n \"components:set-layout\",\n (i, o) => {\n s(o.node, { layout: !0 });\n }\n )\n ), this.subscriptions.push(\n this.events.subscribe(\"components:node-switched\", (i, { node: o, branch: a }) => {\n s(o, {\n layout: !0,\n recursive: !0,\n properties: !0,\n context: !0\n });\n })\n ), this.subscriptions.push(\n this.events.subscribe(\"components:node-removed\", (i, { parentNode: o }) => {\n s(o, { properties: !0 });\n })\n ), this.events.parent && this.events.parent.dispatch(\"components:platform-created\", { platform: this });\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 r = new qe(this.events, t);\n return e.detached && this.nodes.detached.push(r), r;\n }\n components() {\n return new Nt(this);\n }\n actions(t, e) {\n return new we(this, t, e);\n }\n write(t) {\n const { provider: e, target: r, attributes: s, options: i = {}, removable: o } = t, a = t.key || qt(), c = { changeset: [s, i], target: r, removes: [] };\n if (e) {\n const h = this.providers[e];\n h.write(a, r, s, i), c.removes.push(() => {\n h.remove(a);\n });\n }\n return this.changesets.push(c), this.nodes.all.forEach((h) => {\n if (r.match(h)) {\n let l = () => {\n };\n s.properties && (l = h.writeProperties(s.properties, i, o)), s.context && (l = h.writeContext(s.context, i, o)), s.layout && (l = h.writeContext(s.layout, i, 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 Ss = (n) => {\n if (Array.isArray(n)) {\n const [t, ...e] = n;\n return {\n definitionId: t,\n overrides: e\n };\n }\n return {\n definitionId: n,\n overrides: []\n };\n}, le = (n, t, e, r, s, i) => {\n e.forEach((o) => {\n const a = Ss(o), c = r[a.definitionId];\n if (a.definitionId === \"view\") {\n const h = n.createNode(\"view\");\n h.name = \"view\", Object.keys(s).forEach((l) => {\n const u = s[l];\n le(n, h, [u.entry], r, s, 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 (n.getComponentHandler(c.type)) {\n const h = n.getComponentHandler(c.type);\n h && h(a, {\n platform: n,\n node: t,\n references: e,\n definitions: r,\n views: s,\n branch: i\n });\n } else {\n const h = r[a.definitionId];\n if (process.env.NODE_ENV !== \"production\" && !h) {\n I.error(\n `No definition found for component type '${a.definitionId}'.`\n );\n return;\n }\n const l = n.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, i), a.overrides.forEach((u) => {\n const d = { breakpoints: u.breakpoints };\n u.properties && l.writeProperties(u.properties, d), u.context && l.writeContext(u.context, d), u.layout && l.writeLayout(u.layout, d);\n }), h.children && le(n, l, h.children, r, s);\n }\n });\n}, ar = (n, t) => {\n const { entry: e, components: r, breakpoints: s, views: i } = t, o = [];\n return Object.keys(s).forEach((a) => {\n const c = s[a], h = window.matchMedia(c);\n h.matches && n.breakpoints.push(a);\n const l = (u) => {\n u.matches ? n.addBreakpoint(a) : n.removeBreakpoint(a);\n };\n h.addListener(l), o.push(() => h.removeListener(l));\n }), le(n, n.nodes.root, [e], r, i), () => o.forEach((a) => {\n a();\n });\n}, Je = (n, t) => ({\n id: n.id,\n type: n.type,\n name: n.name,\n branch: t || \"default\"\n}), cr = (n, t, e, r = qt(), s = {}) => n.getAsync(\"components\").then((i) => {\n let o;\n if (typeof t == \"string\") {\n const h = new Nt(i);\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) : Jt.getInstance(n).then((u) => new tn(u, h, r));\n };\n i.events.subscribe(\n \"components:node-enter\",\n (h, { node: l }) => {\n o.match(l) && c(l).then((u) => {\n Promise.resolve(e(u)).then((d) => {\n a[l.id] = {\n dispose: d,\n controller: u\n };\n });\n });\n }\n ), i.events.subscribe(\n \"components:node-exit\",\n (h, { node: l }) => {\n const u = a[l.id];\n u && (u.dispose && u.dispose(), s.reuseController || (u.controller.dispose(), delete a[l.id]));\n }\n );\n});\nclass ks {\n constructor(t) {\n this.aliases = /* @__PURE__ */ new Map(), this.components = /* @__PURE__ */ new Map(), this.logger = new I();\n const { events: e } = t.get(\"$widget\");\n this.events = e;\n }\n getComponent(t) {\n const e = this.aliases.get(t), r = this.components.get(e || t) || null;\n return process.env.NODE_ENV !== \"production\" && (r || 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 )), r;\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(\"component-resolver:resolve\", (r, s) => {\n if (s === t) {\n const i = this.getComponent(t);\n e(i);\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 J = /* @__PURE__ */ ((n) => (n.open = \"open\", n.closed = \"closed\", n.hidden = \"hidden\", n))(J || {});\nconst en = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({\n __proto__: null,\n ActionResolver: ws,\n ActionsController: we,\n ComponentNode: qe,\n ComponentNodeController: tn,\n ComponentPlatform: Jt,\n ComponentQuery: Nt,\n ComponentResolver: ks,\n WidgetRenderState: J,\n asDescriptor: Je,\n createChildren: le,\n createComponentModel: ar,\n createEventSubscriber: sr,\n extendComponent: cr,\n findComponent: or,\n findVisibleComponents: ne,\n traverseComponents: $e\n}, Symbol.toStringTag, { value: \"Module\" }));\nfunction hr(n) {\n return n && n.__esModule && Object.prototype.hasOwnProperty.call(n, \"default\") ? n.default : n;\n}\nvar lr = function() {\n};\nprocess.env.NODE_ENV !== \"production\" && (lr = function(n, t, e) {\n var r = arguments.length;\n e = new Array(r > 2 ? r - 2 : 0);\n for (var s = 2; s < r; s++)\n e[s - 2] = arguments[s];\n if (t === void 0)\n throw new Error(\n \"`warning(condition, format, ...args)` requires a warning message argument\"\n );\n if (t.length < 10 || /^[s\\W]*$/.test(t))\n throw new Error(\n \"The warning format should be able to uniquely identify this warning. Please, use a more descriptive format than: \" + t\n );\n if (!n) {\n var i = 0, o = \"Warning: \" + t.replace(/%s/g, function() {\n return e[i++];\n });\n typeof console != \"undefined\" && console.error(o);\n try {\n throw new Error(o);\n } catch (a) {\n }\n }\n});\nvar Ns = lr;\nconst nt = /* @__PURE__ */ hr(Ns);\nvar Ls = function(n, t, e, r, s, i, o, a) {\n if (process.env.NODE_ENV !== \"production\" && t === void 0)\n throw new Error(\"invariant requires an error message argument\");\n if (!n) {\n var c;\n if (t === void 0)\n c = new Error(\n \"Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.\"\n );\n else {\n var h = [e, r, s, i, o, a], l = 0;\n c = new Error(\n t.replace(/%s/g, function() {\n return h[l++];\n })\n ), c.name = \"Invariant Violation\";\n }\n throw c.framesToPop = 1, c;\n }\n}, Ms = Ls;\nconst Ds = /* @__PURE__ */ hr(Ms);\nfunction Yt(n) {\n return n.charAt(0) === \"/\";\n}\nfunction Se(n, t) {\n for (var e = t, r = e + 1, s = n.length; r < s; e += 1, r += 1)\n n[e] = n[r];\n n.pop();\n}\nfunction js(n) {\n var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : \"\", e = n && n.split(\"/\") || [], r = t && t.split(\"/\") || [], s = n && Yt(n), i = t && Yt(t), o = s || i;\n if (n && Yt(n) ? r = e : e.length && (r.pop(), r = r.concat(e)), !r.length)\n return \"/\";\n var a = void 0;\n if (r.length) {\n var c = r[r.length - 1];\n a = c === \".\" || c === \"..\" || c === \"\";\n } else\n a = !1;\n for (var h = 0, l = r.length; l >= 0; l--) {\n var u = r[l];\n u === \".\" ? Se(r, l) : u === \"..\" ? (Se(r, l), h++) : h && (Se(r, l), h--);\n }\n if (!o)\n for (; h--; h)\n r.unshift(\"..\");\n o && r[0] !== \"\" && (!r[0] || !Yt(r[0])) && r.unshift(\"\");\n var d = r.join(\"/\");\n return a && d.substr(-1) !== \"/\" && (d += \"/\"), d;\n}\nvar Rs = function(t) {\n return t.charAt(0) === \"/\" ? t : \"/\" + t;\n}, ur = function(t, e) {\n return new RegExp(\"^\" + e + \"(\\\\/|\\\\?|#|$)\", \"i\").test(t);\n}, Ts = function(t, e) {\n return ur(t, e) ? t.substr(e.length) : t;\n}, Is = function(t) {\n return t.charAt(t.length - 1) === \"/\" ? t.slice(0, -1) : t;\n}, Hs = function(t) {\n var e = t || \"/\", r = \"\", s = \"\", i = e.indexOf(\"#\");\n i !== -1 && (s = e.substr(i), e = e.substr(0, i));\n var o = e.indexOf(\"?\");\n return o !== -1 && (r = e.substr(o), e = e.substr(0, o)), {\n pathname: e,\n search: r === \"?\" ? \"\" : r,\n hash: s === \"#\" ? \"\" : s\n };\n}, dr = function(t) {\n var e = t.pathname, r = t.search, s = t.hash, i = e || \"/\";\n return r && r !== \"?\" && (i += r.charAt(0) === \"?\" ? r : \"?\" + r), s && s !== \"#\" && (i += s.charAt(0) === \"#\" ? s : \"#\" + s), i;\n}, Us = Object.assign || function(n) {\n for (var t = 1; t < arguments.length; t++) {\n var e = arguments[t];\n for (var r in e)\n Object.prototype.hasOwnProperty.call(e, r) && (n[r] = e[r]);\n }\n return n;\n}, vt = function(t, e, r, s) {\n var i = void 0;\n typeof t == \"string\" ? (i = Hs(t), i.state = e) : (i = Us({}, t), i.pathname === void 0 && (i.pathname = \"\"), i.search ? i.search.charAt(0) !== \"?\" && (i.search = \"?\" + i.search) : i.search = \"\", i.hash ? i.hash.charAt(0) !== \"#\" && (i.hash = \"#\" + i.hash) : i.hash = \"\", e !== void 0 && i.state === void 0 && (i.state = e));\n try {\n i.pathname = decodeURI(i.pathname);\n } catch (o) {\n throw o instanceof URIError ? new URIError('Pathname \"' + i.pathname + '\" could not be decoded. This is likely caused by an invalid percent-encoding.') : o;\n }\n return r && (i.key = r), s ? i.pathname ? i.pathname.charAt(0) !== \"/\" && (i.pathname = js(i.pathname, s.pathname)) : i.pathname = s.pathname : i.pathname || (i.pathname = \"/\"), i;\n}, pr = function() {\n var t = null, e = function(c) {\n return nt(t == null, \"A history supports only one prompt at a time\"), t = c, function() {\n t === c && (t = null);\n };\n }, r = function(c, h, l, u) {\n if (t != null) {\n var d = typeof t == \"function\" ? t(c, h) : t;\n typeof d == \"string\" ? typeof l == \"function\" ? l(d, u) : (nt(!1, \"A history needs a getUserConfirmation function in order to use a prompt message\"), u(!0)) : u(d !== !1);\n } else\n u(!0);\n }, s = [], i = function(c) {\n var h = !0, l = function() {\n h && c.apply(void 0, arguments);\n };\n return s.push(l), function() {\n h = !1, s = s.filter(function(u) {\n return u !== l;\n });\n };\n }, o = function() {\n for (var c = arguments.length, h = Array(c), l = 0; l < c; l++)\n h[l] = arguments[l];\n s.forEach(function(u) {\n return u.apply(void 0, h);\n });\n };\n return {\n setPrompt: e,\n confirmTransitionTo: r,\n appendListener: i,\n notifyListeners: o\n };\n}, Vs = !!(typeof window != \"undefined\" && window.document && window.document.createElement), wn = function(t, e, r) {\n return t.addEventListener ? t.addEventListener(e, r, !1) : t.attachEvent(\"on\" + e, r);\n}, $n = function(t, e, r) {\n return t.removeEventListener ? t.removeEventListener(e, r, !1) : t.detachEvent(\"on\" + e, r);\n}, Bs = function(t, e) {\n return e(window.confirm(t));\n}, zs = function() {\n var t = window.navigator.userAgent;\n return (t.indexOf(\"Android 2.\") !== -1 || t.indexOf(\"Android 4.0\") !== -1) && t.indexOf(\"Mobile Safari\") !== -1 && t.indexOf(\"Chrome\") === -1 && t.indexOf(\"Windows Phone\") === -1 ? !1 : window.history && \"pushState\" in window.history;\n}, Ws = function() {\n return window.navigator.userAgent.indexOf(\"Trident\") === -1;\n}, Fs = function(t) {\n return t.state === void 0 && navigator.userAgent.indexOf(\"CriOS\") === -1;\n}, On = typeof Symbol == \"function\" && typeof Symbol.iterator == \"symbol\" ? function(n) {\n return typeof n;\n} : function(n) {\n return n && typeof Symbol == \"function\" && n.constructor === Symbol && n !== Symbol.prototype ? \"symbol\" : typeof n;\n}, qs = Object.assign || function(n) {\n for (var t = 1; t < arguments.length; t++) {\n var e = arguments[t];\n for (var r in e)\n Object.prototype.hasOwnProperty.call(e, r) && (n[r] = e[r]);\n }\n return n;\n}, En = \"popstate\", xn = \"hashchange\", _n = function() {\n try {\n return window.history.state || {};\n } catch (t) {\n return {};\n }\n}, Js = function() {\n var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};\n Ds(Vs, \"Browser history needs a DOM\");\n var e = window.history, r = zs(), s = !Ws(), i = t.forceRefresh, o = i === void 0 ? !1 : i, a = t.getUserConfirmation, c = a === void 0 ? Bs : a, h = t.keyLength, l = h === void 0 ? 6 : h, u = t.basename ? Is(Rs(t.basename)) : \"\", d = function(m) {\n var O = m || {}, L = O.key, M = O.state, K = window.location, G = K.pathname, it = K.search, Q = K.hash, q = G + it + Q;\n return nt(!u || ur(q, u), 'You are attempting to use a basename on a page whose URL path does not begin with the basename. Expected path \"' + q + '\" to begin with \"' + u + '\".'), u && (q = Ts(q, u)), vt(q, M, L);\n }, p = function() {\n return Math.random().toString(36).substr(2, l);\n }, b = pr(), v = function(m) {\n qs(A, m), A.length = e.length, b.notifyListeners(A.location, A.action);\n }, g = function(m) {\n Fs(m) || F(d(m.state));\n }, E = function() {\n F(d(_n()));\n }, R = !1, F = function(m) {\n if (R)\n R = !1, v();\n else {\n var O = \"POP\";\n b.confirmTransitionTo(m, O, c, function(L) {\n L ? v({ action: O, location: m }) : H(m);\n });\n }\n }, H = function(m) {\n var O = A.location, L = U.indexOf(O.key);\n L === -1 && (L = 0);\n var M = U.indexOf(m.key);\n M === -1 && (M = 0);\n var K = L - M;\n K && (R = !0, D(K));\n }, k = d(_n()), U = [k.key], x = function(m) {\n return u + dr(m);\n }, N = function(m, O) {\n nt(!((typeof m == \"undefined\" ? \"undefined\" : On(m)) === \"object\" && m.state !== void 0 && O !== void 0), \"You should avoid providing a 2nd state argument to push when the 1st argument is a location-like object that already has state; it is ignored\");\n var L = \"PUSH\", M = vt(m, O, p(), A.location);\n b.confirmTransitionTo(M, L, c, function(K) {\n if (K) {\n var G = x(M), it = M.key, Q = M.state;\n if (r)\n if (e.pushState({ key: it, state: Q }, null, G), o)\n window.location.href = G;\n else {\n var q = U.indexOf(A.location.key), ln = U.slice(0, q === -1 ? 0 : q + 1);\n ln.push(M.key), U = ln, v({ action: L, location: M });\n }\n else\n nt(Q === void 0, \"Browser history cannot push state in browsers that do not support HTML5 history\"), window.location.href = G;\n }\n });\n }, S = function(m, O) {\n nt(!((typeof m == \"undefined\" ? \"undefined\" : On(m)) === \"object\" && m.state !== void 0 && O !== void 0), \"You should avoid providing a 2nd state argument to replace when the 1st argument is a location-like object that already has state; it is ignored\");\n var L = \"REPLACE\", M = vt(m, O, p(), A.location);\n b.confirmTransitionTo(M, L, c, function(K) {\n if (K) {\n var G = x(M), it = M.key, Q = M.state;\n if (r)\n if (e.replaceState({ key: it, state: Q }, null, G), o)\n window.location.replace(G);\n else {\n var q = U.indexOf(A.location.key);\n q !== -1 && (U[q] = M.key), v({ action: L, location: M });\n }\n else\n nt(Q === void 0, \"Browser history cannot replace state in browsers that do not support HTML5 history\"), window.location.replace(G);\n }\n });\n }, D = function(m) {\n e.go(m);\n }, z = function() {\n return D(-1);\n }, V = function() {\n return D(1);\n }, T = 0, f = function(m) {\n T += m, T === 1 ? (wn(window, En, g), s && wn(window, xn, E)) : T === 0 && ($n(window, En, g), s && $n(window, xn, E));\n }, w = !1, y = function() {\n var m = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1, O = b.setPrompt(m);\n return w || (f(1), w = !0), function() {\n return w && (w = !1, f(-1)), O();\n };\n }, $ = function(m) {\n var O = b.appendListener(m);\n return f(1), function() {\n f(-1), O();\n };\n }, A = {\n length: e.length,\n action: \"POP\",\n location: k,\n createHref: x,\n push: N,\n replace: S,\n go: D,\n goBack: z,\n goForward: V,\n block: y,\n listen: $\n };\n return A;\n}, An = typeof Symbol == \"function\" && typeof Symbol.iterator == \"symbol\" ? function(n) {\n return typeof n;\n} : function(n) {\n return n && typeof Symbol == \"function\" && n.constructor === Symbol && n !== Symbol.prototype ? \"symbol\" : typeof n;\n}, Ks = Object.assign || function(n) {\n for (var t = 1; t < arguments.length; t++) {\n var e = arguments[t];\n for (var r in e)\n Object.prototype.hasOwnProperty.call(e, r) && (n[r] = e[r]);\n }\n return n;\n}, Pn = function(t, e, r) {\n return Math.min(Math.max(t, e), r);\n}, Gs = function() {\n var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, e = t.getUserConfirmation, r = t.initialEntries, s = r === void 0 ? [\"/\"] : r, i = t.initialIndex, o = i === void 0 ? 0 : i, a = t.keyLength, c = a === void 0 ? 6 : a, h = pr(), l = function(S) {\n Ks(x, S), x.length = x.entries.length, h.notifyListeners(x.location, x.action);\n }, u = function() {\n return Math.random().toString(36).substr(2, c);\n }, d = Pn(o, 0, s.length - 1), p = s.map(function(N) {\n return typeof N == \"string\" ? vt(N, void 0, u()) : vt(N, void 0, N.key || u());\n }), b = dr, v = function(S, D) {\n nt(!((typeof S == \"undefined\" ? \"undefined\" : An(S)) === \"object\" && S.state !== void 0 && D !== void 0), \"You should avoid providing a 2nd state argument to push when the 1st argument is a location-like object that already has state; it is ignored\");\n var z = \"PUSH\", V = vt(S, D, u(), x.location);\n h.confirmTransitionTo(V, z, e, function(T) {\n if (T) {\n var f = x.index, w = f + 1, y = x.entries.slice(0);\n y.length > w ? y.splice(w, y.length - w, V) : y.push(V), l({\n action: z,\n location: V,\n index: w,\n entries: y\n });\n }\n });\n }, g = function(S, D) {\n nt(!((typeof S == \"undefined\" ? \"undefined\" : An(S)) === \"object\" && S.state !== void 0 && D !== void 0), \"You should avoid providing a 2nd state argument to replace when the 1st argument is a location-like object that already has state; it is ignored\");\n var z = \"REPLACE\", V = vt(S, D, u(), x.location);\n h.confirmTransitionTo(V, z, e, function(T) {\n T && (x.entries[x.index] = V, l({ action: z, location: V }));\n });\n }, E = function(S) {\n var D = Pn(x.index + S, 0, x.entries.length - 1), z = \"POP\", V = x.entries[D];\n h.confirmTransitionTo(V, z, e, function(T) {\n T ? l({\n action: z,\n location: V,\n index: D\n }) : l();\n });\n }, R = function() {\n return E(-1);\n }, F = function() {\n return E(1);\n }, H = function(S) {\n var D = x.index + S;\n return D >= 0 && D < x.entries.length;\n }, k = function() {\n var S = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1;\n return h.setPrompt(S);\n }, U = function(S) {\n return h.appendListener(S);\n }, x = {\n length: p.length,\n action: \"POP\",\n location: p[d],\n index: d,\n entries: p,\n createHref: b,\n push: v,\n replace: g,\n go: E,\n goBack: R,\n goForward: F,\n canGo: H,\n block: k,\n listen: U\n };\n return x;\n}, Ys = Object.defineProperty, Cn = Object.getOwnPropertySymbols, Zs = Object.prototype.hasOwnProperty, Qs = Object.prototype.propertyIsEnumerable, Sn = (n, t, e) => t in n ? Ys(n, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[t] = e, xt = (n, t) => {\n for (var e in t || (t = {}))\n Zs.call(t, e) && Sn(n, e, t[e]);\n if (Cn)\n for (var e of Cn(t))\n Qs.call(t, e) && Sn(n, e, t[e]);\n return n;\n}, Zt = (n, t, e) => new Promise((r, s) => {\n var i = (c) => {\n try {\n a(e.next(c));\n } catch (h) {\n s(h);\n }\n }, o = (c) => {\n try {\n a(e.throw(c));\n } catch (h) {\n s(h);\n }\n }, a = (c) => c.done ? r(c.value) : Promise.resolve(c.value).then(i, o);\n a((e = e.apply(n, t)).next());\n}), P = /* @__PURE__ */ ((n) => (n.Cookie = \"cookie\", n.Local = \"local\", n.Session = \"session\", n))(P || {}), Lt = /* @__PURE__ */ ((n) => (n.Tenant = \"tenant\", n.Implementation = \"implementation\", n.Widget = \"widget\", n))(Lt || {}), C = /* @__PURE__ */ ((n) => (n.Necessary = \"necessary\", n.Functional = \"functional\", n.Analytical = \"analytical\", n.Marketing = \"marketing\", n))(C || {});\nconst rt = (n, t, e, r = {}) => kn(n, e).then((s) => (process.env.NODE_ENV !== \"production\" && s && I.warn(\n `createStorageWriter: Attempted to create storage writer using unallowed category.\n Key: ${t}\n Category: ${JSON.stringify(e)}\n Options: ${JSON.stringify(r)}`\n), (i) => (sn(n), kn(n, e).then((o) => {\n if (o) {\n process.env.NODE_ENV !== \"production\" && I.warn(\n `storageWriter: Attempted to write to storage using unallowed category.\n Key: ${t}\n Category: ${JSON.stringify(e)}\n Value: ${JSON.stringify(i)}\n Options: ${JSON.stringify(r)}`\n );\n return;\n }\n const {\n scope: a = Lt.Widget,\n medium: c = P.Session,\n duration: h\n } = r, l = ti();\n return l[a][t] = rn(i, e, h), c === P.Cookie ? si(n, l) : oi(n, c, l);\n})))), Z = (n, t, e = P.Session) => (sn(n), typeof t == \"undefined\" ? (process.env.NODE_ENV !== \"production\" && I.warn(\"readStorage: Undefined key passed when reading storage. \", t, e), Promise.resolve(void 0)) : e === P.Cookie ? ri(n).then((r) => de(r, t)) : ii(n, e).then((r) => de(r, t))), Ct = (n) => !!Object.entries(n).filter(([t, e]) => typeof e != \"undefined\").length, ke = (n) => Object.entries(n).filter(([t, e]) => typeof e != \"undefined\").forEach(([t, { value: e }]) => {\n typeof e == \"undefined\" && delete n[t];\n}), gr = (n, t) => {\n const e = {\n tenant: xt(xt({}, n.tenant), t.tenant),\n implementation: xt(xt({}, n.implementation), t.implementation),\n widget: xt(xt({}, n.widget), t.widget)\n };\n return ke(e.tenant), ke(e.implementation), ke(e.widget), e;\n}, Xs = (n) => Object.entries(n).reduce((t, e) => {\n const [r, s] = e;\n return Object.entries(s).forEach((i) => {\n const [o, { expiration: a }] = i;\n a && t.push(a);\n }), t;\n}, []).slice().sort((t, e) => new Date(e).valueOf() - new Date(t).valueOf()).shift() || Ee(), Oe = (n) => {\n const {\n name: t,\n implementation: { name: e, tenant: r }\n } = n.get(\"$widget\");\n return [\n `humany_${r}`,\n `humany_${mn(r + e)}`,\n `humany_${mn(r + e + t)}`\n ];\n}, Ne = (n) => {\n const t = new RegExp(`(?:^|;)\\\\s?${n}=(.*?)(?:;|$)`, \"i\"), e = document.cookie.match(t);\n return e && e[1] && JSON.parse(e[1]) || void 0;\n}, Le = (n, t, e) => {\n const r = `${n}=${JSON.stringify(t).trim()}`, s = `expires=${new Date(e).toUTCString()}`, i = \"path=/\", o = \"SameSite=None;Secure\";\n return document.cookie = `${r}; ${s}; ${i}; ${o}`;\n}, nn = (n) => {\n const [t, e, r] = Oe(n), s = Ne(t) || {}, i = Ne(e) || {}, o = Ne(r) || {};\n return {\n tenant: s,\n implementation: i,\n widget: o\n };\n}, fr = (n, t) => {\n const e = nn(n), r = gr(e, t), [s, i, o] = Oe(n), { tenant: a, implementation: c, widget: h } = r, l = Xs(t), u = Ee({ days: -1 });\n Le(s, a, Ct(a) ? l : u), Le(\n i,\n c,\n Ct(c) ? l : u\n ), Le(o, h, Ct(h) ? l : u);\n}, ue = (n, t) => {\n const [e, r, s] = Oe(n), i = t.getItem(e) || \"{}\", o = t.getItem(r) || \"{}\", a = t.getItem(s) || \"{}\";\n return {\n tenant: JSON.parse(i),\n implementation: JSON.parse(o),\n widget: JSON.parse(a)\n };\n}, Ke = (n, t, e) => {\n const r = ue(n, t), s = gr(r, e), [i, o, a] = Oe(n), { tenant: c, implementation: h, widget: l } = s;\n Ct(c) ? t.setItem(i, JSON.stringify(c)) : t.removeItem(i), Ct(h) ? t.setItem(o, JSON.stringify(h)) : t.removeItem(o), Ct(l) ? t.setItem(a, JSON.stringify(l)) : t.removeItem(a);\n}, ti = () => ({ tenant: {}, implementation: {}, widget: {} }), ei = (n) => n ? !!n && /* @__PURE__ */ new Date() > new Date(n) : !1, de = (n, t) => {\n const e = n.widget[t] || n.implementation[t] || n.tenant[t];\n return e == null ? void 0 : e.value;\n}, rn = (n, t, e) => e ? {\n value: n,\n category: t,\n expiration: typeof e == \"object\" ? Ee(e) : e\n} : {\n value: n,\n category: t\n}, re = (n, t) => {\n const e = as(n);\n return Object.entries(e).forEach(([r, s]) => {\n Object.entries(s).forEach(([i, o]) => {\n const { expiration: a, category: c } = o;\n (ei(a) || ni(t, c)) && (s[i] = rn(void 0, c, a));\n });\n }), e;\n}, kn = (n, t) => Z(n, \"storagePolicy\", P.Cookie).then(\n (e = [C.Necessary]) => !!t && e.indexOf(t) === -1\n), ni = (n = [C.Necessary], t) => !!t && n.indexOf(t) === -1, sn = (n) => {\n const t = nn(n), e = ue(n, window.localStorage), r = ue(n, sessionStorage), s = de(t, \"storagePolicy\"), [i, o, a] = [\n t,\n e,\n r\n ].map((c) => re(c, s));\n fr(n, i), Ke(n, window.localStorage, o), Ke(n, window.sessionStorage, a);\n}, Ee = (n = { days: 30 }) => {\n const { days: t = 0, hours: e = 0, minutes: r = 0, seconds: s = 0 } = n, i = /* @__PURE__ */ new Date();\n return i.setTime(i.getTime() + e * 60 * 60 * 1e3), i.setTime(i.getTime() + t * 24 * 60 * 60 * 1e3), i.setTime(i.getTime() + r * 60 * 1e3), i.setTime(i.getTime() + s * 1e3), i.toISOString();\n}, ri = (n) => X(document)(() => nn(n)), si = (n, t) => X(document)(() => fr(n, t)), ii = (n, t) => {\n const e = t === P.Local ? window.localStorage : window.sessionStorage;\n return X(e)(() => ue(n, e));\n}, oi = (n, t, e) => {\n const r = t === P.Local ? window.localStorage : window.sessionStorage;\n return X(r)(() => Ke(n, r, e));\n};\nlet se = class {\n constructor() {\n this.memory = {\n tenant: {},\n implementation: {},\n widget: {}\n };\n }\n setItem(t, e) {\n return Zt(this, arguments, function* (r, s, i = {}) {\n return X(this)(() => {\n const o = re(this.memory, [C.Necessary]), { scope: a = Lt.Tenant, expiration: c } = i;\n o[a][r] = rn(\n s,\n C.Necessary,\n (c == null ? void 0 : c.toISOString()) || Ee()\n ), this.memory = o, process.env.NODE_ENV !== \"production\" && I.warn(\n `StorageProvider: StorageProvider is deprecated, use createStorageWriter and readStorage instead, value stored temporarily in memory.\n Key: ${r}\n Value: ${JSON.stringify(s)}\n Options: ${JSON.stringify(i)}\n Memory: ${JSON.stringify(o)}`\n );\n });\n });\n }\n getItem(t) {\n return Zt(this, null, function* () {\n return X(this)(() => {\n const e = re(this.memory, [C.Necessary]);\n process.env.NODE_ENV !== \"production\" && I.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 r = de(e, t);\n return this.memory = e, r;\n });\n });\n }\n removeItem(t) {\n return Zt(this, null, function* () {\n return X(this)(() => {\n const e = re(this.memory, [C.Necessary]);\n delete e.tenant[t], delete e.implementation[t], delete e.widget[t], this.memory = e, process.env.NODE_ENV !== \"production\" && I.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 Zt(this, null, function* () {\n return Promise.resolve();\n });\n }\n}, ai = class {\n constructor() {\n this.cookies = new se(), this.session = new se(), this.local = new se();\n }\n};\nconst Me = (n, t, e, ...r) => {\n const s = `[${n.get(\"$environment\").name || \"webprovisions\"}] ${e}`;\n switch (t) {\n case \"info\":\n console.info(s, ...r);\n break;\n case \"warning\":\n console.warn(s, ...r);\n break;\n case \"error\":\n console.error(s, ...r);\n break;\n }\n}, ci = (n) => {\n const t = n.container || n;\n return {\n info: (e, ...r) => Me(t, \"info\", e, ...r),\n warn: (e, ...r) => Me(t, \"warning\", e, ...r),\n error: (e, ...r) => Me(t, \"error\", e, ...r)\n };\n};\nvar pe = /* @__PURE__ */ ((n) => (n.Implementation = \"implementation\", n.Widget = \"widget\", n))(pe || {}), yt = /* @__PURE__ */ ((n) => (n.Pre = \"pre\", n.Post = \"post\", n))(yt || {});\nconst hi = (n, t, e, r) => {\n try {\n const s = new t(e, r);\n return {\n name: n,\n invoke: (i, o) => {\n let a;\n return s[i] && (a = s[i].call(s, o)), Promise.resolve(a);\n },\n getInstance: () => s\n };\n } catch (s) {\n if (s.message && s.message.indexOf(\"is not a constructor\") >= 0)\n return {\n name: n,\n invoke: (i) => {\n let o;\n return i === \"initialize\" && (o = t(e, r)), Promise.resolve(o);\n },\n getInstance: () => t\n };\n throw s;\n }\n};\nfunction Nn(n, t) {\n return typeof n == \"undefined\" ? t : n;\n}\nlet li = class {\n constructor(t = {}) {\n this.part = t;\n }\n createCommand(t, e, r) {\n let s;\n typeof e == \"function\" ? s = {\n scope: pe.Widget,\n stage: yt.Post,\n defaultArgs: void 0,\n handlerResolver: e\n } : s = {\n scope: Nn(e.scope, pe.Widget),\n stage: Nn(e.stage, yt.Post),\n defaultArgs: e.defaultArgs,\n handlerResolver: r\n };\n let i = this.part;\n const o = t.split(\".\");\n return o.forEach((a, c) => {\n c === o.length - 1 ? i[a] || (i[a] = () => s) : i = this.part[a] = this.part[a] || {};\n }), this;\n }\n get() {\n return this.part;\n }\n};\nconst mr = (n) => {\n const t = new li({});\n return n(t), t.get();\n};\nmr((n) => {\n n.createCommand(\n \"types.register\",\n { scope: pe.Implementation, stage: yt.Pre },\n (t) => (e, r) => {\n t.container.get(\"$types\")[e] = r;\n }\n ).createCommand(\n \"type\",\n { stage: yt.Pre },\n (t) => (e) => {\n t.container.register(\"$type\", e);\n }\n ).createCommand(\n \"settings\",\n { stage: yt.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: yt.Pre },\n (t) => (e, r, s) => {\n const { container: i } = t;\n let o = null, a = e, c = r;\n typeof e == \"string\" && (o = e, a = r, c = s);\n const h = (l) => {\n const { transformPluginSettings: u } = t.container.get(\"$environmentOptions\"), d = u ? u(\n c || {},\n o,\n t.container,\n a\n ) : r;\n try {\n const p = hi(\n o,\n a,\n i,\n d\n );\n i.get(\"$plugins\").push(p), l && p.invoke(\"initialize\", null);\n } catch (p) {\n ci(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, r) => {\n t.container.register(e, r);\n }\n ).createCommand(\n \"container.registerAsync\",\n (t) => (e, r) => {\n t.container.registerAsync(e, r);\n }\n ).createCommand(\n \"container.registerFactory\",\n (t) => (e, r) => {\n t.container.registerFactory(e, r);\n }\n ).createCommand(\n \"container.touch\",\n (t) => (e, r) => {\n t.container.touch(e, r);\n }\n ).createCommand(\n \"csp\",\n {},\n (t) => (e) => {\n t.container.register(\"csp\", e);\n }\n );\n});\nmr((n) => {\n n.createCommand(\"storage\", (t) => (e = {}) => {\n const { consent: r } = e;\n if (typeof r != \"undefined\") {\n if (typeof r != \"number\" && typeof r != \"string\" && !Array.isArray(r)) {\n process.env.NODE_ENV !== \"production\" && I.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(r)}`\n );\n return;\n }\n if (Array.isArray(r) && !r.every(\n (i) => typeof i == \"number\" || typeof i == \"string\"\n )) {\n process.env.NODE_ENV !== \"production\" && I.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(r)}`\n );\n return;\n }\n const s = [\n C.Necessary,\n C.Functional,\n C.Analytical,\n C.Marketing\n ].filter((i, o, a) => typeof r == \"number\" ? r > o : typeof r == \"string\" ? a.indexOf(r) + 1 > o : Array.isArray(r) ? r.findIndex((c) => c === o + 1 || c === i) > -1 : !0);\n return s.indexOf(C.Necessary) === -1 && (process.env.NODE_ENV !== \"production\" && I.warn(\n `storagePolicyConfigurationApi: passed consent does not include category: '${C.Necessary}'. Consent has to atleast include the '${C.Necessary}' category.\n Passed consent: ${JSON.stringify(r)}`\n ), s.unshift(C.Necessary)), rt(\n t.container,\n \"storagePolicy\",\n C.Necessary,\n {\n medium: P.Cookie,\n scope: Lt.Tenant,\n duration: { days: 365 }\n }\n ).then((i) => i(s)).then(() => {\n sn(t.container), t.events.dispatch(\"storage:policy-changed\", s);\n });\n }\n });\n});\nconst ui = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({\n __proto__: null,\n StorageCategory: C,\n StorageMedium: P,\n StorageProvider: ai,\n StorageScope: Lt,\n StorageService: se,\n createStorageWriter: rt,\n readStorage: Z\n}, Symbol.toStringTag, { value: \"Module\" }));\nvar di = Object.defineProperty, pi = Object.defineProperties, gi = Object.getOwnPropertyDescriptors, ge = Object.getOwnPropertySymbols, vr = Object.prototype.hasOwnProperty, yr = Object.prototype.propertyIsEnumerable, Ln = (n, t, e) => t in n ? di(n, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[t] = e, At = (n, t) => {\n for (var e in t || (t = {}))\n vr.call(t, e) && Ln(n, e, t[e]);\n if (ge)\n for (var e of ge(t))\n yr.call(t, e) && Ln(n, e, t[e]);\n return n;\n}, br = (n, t) => pi(n, gi(t)), fi = (n, t) => {\n var e = {};\n for (var r in n)\n vr.call(n, r) && t.indexOf(r) < 0 && (e[r] = n[r]);\n if (n != null && ge)\n for (var r of ge(n))\n t.indexOf(r) < 0 && yr.call(n, r) && (e[r] = n[r]);\n return e;\n};\nfunction wr(n) {\n if (n.__esModule)\n return n;\n var t = n.default;\n if (typeof t == \"function\") {\n var e = function r() {\n if (this instanceof r) {\n var s = [null];\n s.push.apply(s, arguments);\n var i = Function.bind.apply(t, s);\n return new i();\n }\n return t.apply(this, arguments);\n };\n e.prototype = t.prototype;\n } else\n e = {};\n return Object.defineProperty(e, \"__esModule\", { value: !0 }), Object.keys(n).forEach(function(r) {\n var s = Object.getOwnPropertyDescriptor(n, r);\n Object.defineProperty(e, r, s.get ? s : {\n enumerable: !0,\n get: function() {\n return n[r];\n }\n });\n }), e;\n}\nvar $r = function() {\n};\nprocess.env.NODE_ENV !== \"production\" && ($r = function(n, t, e) {\n var r = arguments.length;\n e = new Array(r > 2 ? r - 2 : 0);\n for (var s = 2; s < r; s++)\n e[s - 2] = arguments[s];\n if (t === void 0)\n throw new Error(\n \"`warning(condition, format, ...args)` requires a warning message argument\"\n );\n if (t.length < 10 || /^[s\\W]*$/.test(t))\n throw new Error(\n \"The warning format should be able to uniquely identify this warning. Please, use a more descriptive format than: \" + t\n );\n if (!n) {\n var i = 0, o = \"Warning: \" + t.replace(/%s/g, function() {\n return e[i++];\n });\n typeof console != \"undefined\" && console.error(o);\n try {\n throw new Error(o);\n } catch (a) {\n }\n }\n});\nvar mi = $r, vi = mi, Mn = yi(vi);\nfunction yi(n) {\n return n && n.__esModule ? n : { default: n };\n}\nvar bi = function() {\n var n = null, t = function(o) {\n return (0, Mn.default)(n == null, \"A history supports only one prompt at a time\"), n = o, function() {\n n === o && (n = null);\n };\n }, e = function(o, a, c, h) {\n if (n != null) {\n var l = typeof n == \"function\" ? n(o, a) : n;\n typeof l == \"string\" ? typeof c == \"function\" ? c(l, h) : ((0, Mn.default)(!1, \"A history needs a getUserConfirmation function in order to use a prompt message\"), h(!0)) : h(l !== !1);\n } else\n h(!0);\n }, r = [], s = function(o) {\n var a = !0, c = function() {\n a && o.apply(void 0, arguments);\n };\n return r.push(c), function() {\n a = !1, r = r.filter(function(h) {\n return h !== c;\n });\n };\n }, i = function() {\n for (var o = arguments.length, a = Array(o), c = 0; c < o; c++)\n a[c] = arguments[c];\n r.forEach(function(h) {\n return h.apply(void 0, a);\n });\n };\n return {\n setPrompt: t,\n confirmTransitionTo: e,\n appendListener: s,\n notifyListeners: i\n };\n}, Or = bi, Er;\nEr = function(n, t) {\n return t(window.confirm(n));\n};\nfunction Qt(n) {\n return n.charAt(0) === \"/\";\n}\nfunction De(n, t) {\n for (var e = t, r = e + 1, s = n.length; r < s; e += 1, r += 1)\n n[e] = n[r];\n n.pop();\n}\nfunction wi(n) {\n var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : \"\", e = n && n.split(\"/\") || [], r = t && t.split(\"/\") || [], s = n && Qt(n), i = t && Qt(t), o = s || i;\n if (n && Qt(n) ? r = e : e.length && (r.pop(), r = r.concat(e)), !r.length)\n return \"/\";\n var a = void 0;\n if (r.length) {\n var c = r[r.length - 1];\n a = c === \".\" || c === \"..\" || c === \"\";\n } else\n a = !1;\n for (var h = 0, l = r.length; l >= 0; l--) {\n var u = r[l];\n u === \".\" ? De(r, l) : u === \"..\" ? (De(r, l), h++) : h && (De(r, l), h--);\n }\n if (!o)\n for (; h--; h)\n r.unshift(\"..\");\n o && r[0] !== \"\" && (!r[0] || !Qt(r[0])) && r.unshift(\"\");\n var d = r.join(\"/\");\n return a && d.substr(-1) !== \"/\" && (d += \"/\"), d;\n}\nconst $i = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({\n __proto__: null,\n default: wi\n}, Symbol.toStringTag, { value: \"Module\" })), Oi = /* @__PURE__ */ wr($i);\nvar Dn = typeof Symbol == \"function\" && typeof Symbol.iterator == \"symbol\" ? function(n) {\n return typeof n;\n} : function(n) {\n return n && typeof Symbol == \"function\" && n.constructor === Symbol && n !== Symbol.prototype ? \"symbol\" : typeof n;\n};\nfunction ie(n, t) {\n if (n === t)\n return !0;\n if (n == null || t == null)\n return !1;\n if (Array.isArray(n))\n return Array.isArray(t) && n.length === t.length && n.every(function(c, h) {\n return ie(c, t[h]);\n });\n var e = typeof n == \"undefined\" ? \"undefined\" : Dn(n), r = typeof t == \"undefined\" ? \"undefined\" : Dn(t);\n if (e !== r)\n return !1;\n if (e === \"object\") {\n var s = n.valueOf(), i = t.valueOf();\n if (s !== n || i !== t)\n return ie(s, i);\n var o = Object.keys(n), a = Object.keys(t);\n return o.length !== a.length ? !1 : o.every(function(c) {\n return ie(n[c], t[c]);\n });\n }\n return !1;\n}\nconst Ei = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({\n __proto__: null,\n default: ie\n}, Symbol.toStringTag, { value: \"Module\" })), xi = /* @__PURE__ */ wr(Ei);\nvar st = {}, at, xr, Ge, Ut;\nst.__esModule = !0;\nUt = st.addLeadingSlash = function(n) {\n return n.charAt(0) === \"/\" ? n : \"/\" + n;\n};\nGe = st.stripLeadingSlash = function(n) {\n return n.charAt(0) === \"/\" ? n.substr(1) : n;\n};\nvar _i = st.hasBasename = function(n, t) {\n return new RegExp(\"^\" + t + \"(\\\\/|\\\\?|#|$)\", \"i\").test(n);\n};\nst.stripBasename = function(n, t) {\n return _i(n, t) ? n.substr(t.length) : n;\n};\nxr = st.stripTrailingSlash = function(n) {\n return n.charAt(n.length - 1) === \"/\" ? n.slice(0, -1) : n;\n};\nst.parsePath = function(n) {\n var t = n || \"/\", e = \"\", r = \"\", s = t.indexOf(\"#\");\n s !== -1 && (r = t.substr(s), t = t.substr(0, s));\n var i = t.indexOf(\"?\");\n return i !== -1 && (e = t.substr(i), t = t.substr(0, i)), {\n pathname: t,\n search: e === \"?\" ? \"\" : e,\n hash: r === \"#\" ? \"\" : r\n };\n};\nat = st.createPath = function(n) {\n var t = n.pathname, e = n.search, r = n.hash, s = t || \"/\";\n return e && e !== \"?\" && (s += e.charAt(0) === \"?\" ? e : \"?\" + e), r && r !== \"#\" && (s += r.charAt(0) === \"#\" ? r : \"#\" + r), s;\n};\nvar xe, _r = xe = void 0, Ai = Object.assign || function(n) {\n for (var t = 1; t < arguments.length; t++) {\n var e = arguments[t];\n for (var r in e)\n Object.prototype.hasOwnProperty.call(e, r) && (n[r] = e[r]);\n }\n return n;\n}, Pi = Oi, Ci = Ar(Pi), Si = xi, ki = Ar(Si), Ni = st;\nfunction Ar(n) {\n return n && n.__esModule ? n : { default: n };\n}\nxe = function(n, t, e, r) {\n var s = void 0;\n typeof n == \"string\" ? (s = (0, Ni.parsePath)(n), s.state = t) : (s = Ai({}, n), s.pathname === void 0 && (s.pathname = \"\"), s.search ? s.search.charAt(0) !== \"?\" && (s.search = \"?\" + s.search) : s.search = \"\", s.hash ? s.hash.charAt(0) !== \"#\" && (s.hash = \"#\" + s.hash) : s.hash = \"\", t !== void 0 && s.state === void 0 && (s.state = t));\n try {\n s.pathname = decodeURI(s.pathname);\n } catch (i) {\n throw i instanceof URIError ? new URIError('Pathname \"' + s.pathname + '\" could not be decoded. This is likely caused by an invalid percent-encoding.') : i;\n }\n return e && (s.key = e), r ? s.pathname ? s.pathname.charAt(0) !== \"/\" && (s.pathname = (0, Ci.default)(s.pathname, r.pathname)) : s.pathname = r.pathname : s.pathname || (s.pathname = \"/\"), s;\n};\n_r = function(n, t) {\n return n.pathname === t.pathname && n.search === t.search && n.hash === t.hash && n.key === t.key && (0, ki.default)(n.state, t.state);\n};\nconst Pr = \"/\", Cr = \"./\", Li = new RegExp(\n [\n // Match escaped characters that would otherwise appear in future matches.\n // This allows the user to escape special characters that won't transform.\n \"(\\\\\\\\.)\",\n // Match Express-style parameters and un-named parameters with a prefix\n // and optional suffixes. Matches appear as:\n //\n // \"/:test(\\\\d+)?\" => [\"/\", \"test\", \"\\d+\", undefined, \"?\"]\n // \"/route(\\\\d+)\" => [undefined, undefined, undefined, \"\\d+\", undefined]\n \"(?:\\\\:(\\\\w+)(?:\\\\(((?:\\\\\\\\.|[^\\\\\\\\()])+)\\\\))?|\\\\(((?:\\\\\\\\.|[^\\\\\\\\()])+)\\\\))([+*?])?\"\n ].join(\"|\"),\n \"g\"\n), Sr = (n, t) => {\n const e = [];\n let r = 0, s = 0, i = \"\";\n const o = t && t.delimiter || Pr, a = t && t.delimiters || Cr;\n let c = !1, h;\n for (; (h = Li.exec(n)) !== null; ) {\n const l = h[0], u = h[1], d = h.index;\n if (i += n.slice(s, d), s = d + l.length, u) {\n i += u[1], c = !0;\n continue;\n }\n let p = \"\";\n const b = n[s], v = h[2], g = h[3], E = h[4], R = h[5];\n if (!c && i.length) {\n const N = i.length - 1;\n a.indexOf(i[N]) > -1 && (p = i[N], i = i.slice(0, N));\n }\n i && (e.push(i), i = \"\", c = !1);\n const F = p !== \"\" && b !== void 0 && b !== p, H = R === \"+\" || R === \"*\", k = R === \"?\" || R === \"*\", U = p || o, x = g || E;\n e.push({\n delimiter: U,\n optional: k,\n repeat: H,\n partial: F,\n name: v || r++,\n // tslint:disable-line:no-increment-decrement\n prefix: p,\n pattern: x ? ji(x) : \"[^\" + Tt(U) + \"]+?\"\n });\n }\n return (i || s < n.length) && e.push(i + n.substr(s)), e;\n}, Mi = (n, t) => Di(Sr(n, t)), Di = (n) => {\n const t = new Array(n.length);\n for (let e = 0; e < n.length; e++)\n typeof n[e] == \"object\" && (t[e] = new RegExp(\"^(?:\" + n[e].pattern + \")$\"));\n return function(e, r) {\n let s = \"\";\n const i = r && r.encode || encodeURIComponent;\n for (let o = 0; o < n.length; o++) {\n const a = n[o];\n if (typeof a == \"string\") {\n s += a;\n continue;\n }\n const c = e ? e[a.name] : void 0;\n let h;\n if (Array.isArray(c)) {\n if (!a.repeat)\n throw new TypeError(\n 'Expected \"' + a.name + '\" to not repeat, but got array'\n );\n if (c.length === 0) {\n if (a.optional)\n continue;\n throw new TypeError('Expected \"' + a.name + '\" to not be empty');\n }\n for (let l = 0; l < c.length; l++) {\n if (h = i(c[l], a), !t[o].test(h))\n throw new TypeError(\n 'Expected all \"' + a.name + '\" to match \"' + a.pattern + '\"'\n );\n s += (l === 0 ? a.prefix : a.delimiter) + h;\n }\n continue;\n }\n if (typeof c == \"string\" || typeof c == \"number\" || typeof c == \"boolean\") {\n if (h = i(String(c), a), !t[o].test(h))\n throw new TypeError(\n 'Expected \"' + a.name + '\" to match \"' + a.pattern + '\", but got \"' + h + '\"'\n );\n s += a.prefix + h;\n continue;\n }\n if (a.optional) {\n a.partial && (s += a.prefix);\n continue;\n }\n throw new TypeError(\n 'Expected \"' + a.name + '\" to be ' + (a.repeat ? \"an array\" : \"a string\")\n );\n }\n return s;\n };\n}, Tt = (n) => n.replace(/([.+*?=^!:${}()[\\]|/\\\\])/g, \"\\\\$1\"), ji = (n) => n.replace(/([=!:$/()])/g, \"\\\\$1\"), kr = (n) => n && n.sensitive ? \"\" : \"i\", Ri = (n, t) => {\n if (!t)\n return n;\n const e = n.source.match(/\\((?!\\?)/g);\n if (e)\n for (let r = 0; r < e.length; r++)\n t.push({\n name: r,\n prefix: \"\",\n delimiter: \"\",\n optional: !1,\n repeat: !1,\n partial: !1,\n pattern: \"\"\n });\n return n;\n}, Ti = (n, t, e) => {\n const r = [];\n for (let s = 0; s < n.length; s++)\n r.push(Nr(n[s], t, e).source);\n return new RegExp(\"(?:\" + r.join(\"|\") + \")\", kr(e));\n}, Ii = (n, t, e) => Hi(Sr(n, e), t, e), Hi = (n, t, e) => {\n e = e || {};\n const r = e.strict, s = e.end !== !1, i = Tt(e.delimiter || Pr), o = e.delimiters || Cr, a = [].concat(e.endsWith || []).map(Tt).concat(\"$\").join(\"|\");\n let c = \"\", h = !1;\n for (let l = 0; l < n.length; l++) {\n const u = n[l];\n if (typeof u == \"string\")\n c += Tt(u), h = l === n.length - 1 && o.indexOf(u[u.length - 1]) > -1;\n else {\n const d = Tt(u.prefix), p = u.repeat ? \"(?:\" + u.pattern + \")(?:\" + d + \"(?:\" + u.pattern + \"))*\" : u.pattern;\n t && t.push(u), u.optional ? u.partial ? c += d + \"(\" + p + \")?\" : c += \"(?:\" + d + \"(\" + p + \"))?\" : c += d + \"(\" + p + \")\";\n }\n }\n return s ? (r || (c += \"(?:\" + i + \")?\"), c += a === \"$\" ? \"$\" : \"(?=\" + a + \")\") : (r || (c += \"(?:\" + i + \"(?=\" + a + \"))?\"), h || (c += \"(?=\" + i + \"|\" + a + \")\")), new RegExp(\"^\" + c, kr(e));\n}, Nr = (n, t, e) => n instanceof RegExp ? Ri(n, t || []) : Array.isArray(n) ? Ti(n, t, e) : Ii(n, t, e), fe = Nr;\nvar Y = /* @__PURE__ */ ((n) => (n.scopedHash = \"scopedHash\", n.hash = \"hash\", n.browser = \"browser\", n.memory = \"memory\", n))(Y || {}), ft = /* @__PURE__ */ ((n) => (n.storage = \"storage\", n.path = \"path\", n.initialPath = \"initial\", n))(ft || {});\nconst It = (n, t) => {\n const e = [], r = fe(t, e).exec(n);\n if (!r)\n return {};\n const [s, ...i] = r;\n return e.reduce((o, a, c) => (o[a.name] = i[c], o), {});\n}, Ui = (n) => Object.keys(n).reduce((t, e) => {\n const r = typeof n[e] == \"string\" ? n[e].replace(\"&\", \"%20\") : n[e];\n let s = `${e}=${r}`;\n return t.length > 1 && (s = \"&\".concat(s)), t.concat(s);\n}, \"?\"), je = (n, t) => {\n const e = t.find((r) => r.name === n);\n if (!e) {\n process.env.NODE_ENV !== \"production\" && I.warn(`Unable to find route with specified name: ${n}`);\n return;\n }\n return e;\n}, Lr = (n) => n.length ? n.slice(1).split(\"&\").map((t) => t.split(\"=\")).reduce((t, e) => {\n const [r, s] = e.map(encodeURI).map(decodeURIComponent);\n return br(At({}, t), { [r]: decodeURIComponent(s).replace(\"%20\", \"&\") });\n}, {}) : {}, Vi = (n, t) => {\n const e = t.map((r) => oe(n, r)).reduce(\n (r, s) => {\n if (s === null)\n return r;\n const i = s.split(\"?\")[1];\n let o = 0;\n if (i) {\n const a = Lr(`?${i}`);\n o = Object.keys(a).length;\n }\n return !r.path || r.count && o < r.count ? {\n count: o,\n path: s\n } : r;\n },\n { count: void 0, path: void 0 }\n );\n return e ? e.path : t[0];\n}, oe = (n, t) => {\n const e = $t(n);\n if (Array.isArray(t)) {\n const c = Vi(e, t);\n if (!c)\n throw new Error(\"Unable to match path.\");\n return c;\n }\n const r = Mi(t);\n let s = t;\n try {\n s = r(e);\n } catch (c) {\n return null;\n }\n const i = [];\n fe(t, i);\n const o = Object.keys(e).reduce((c, h) => (i.find((l) => l.name === h) || c.push(h), c), []), a = {};\n return o.forEach((c) => a[c] = e[c]), Object.keys(a).forEach((c) => a[c] === null && delete a[c]), Object.keys(a).length > 0 ? `${s}${Ui(a)}` : s;\n}, _t = (n, t) => {\n let e = n;\n return e.indexOf(\"?\") > -1 && (e = e.substring(0, e.indexOf(\"?\"))), e.indexOf(\";\") > -1 && (e = e.substring(0, e.indexOf(\";\"))), e === \"\" && (e = \"/\"), t.reduce((r, s) => {\n if (Array.isArray(s.path))\n return s.path.reduce((o, a) => fe(a, []).exec(e || \"\") && !o ? e : o, void 0) && !r ? s : r;\n if (!s.path)\n return r;\n const i = [];\n return fe(s.path, i).exec(e || \"\") && !r ? s : r;\n }, void 0);\n}, Bi = (n) => {\n let t = n.get(\"historyTransitionManager\");\n return t || (t = Or(), n.parent && n.parent.register(\"historyTransitionManager\", t)), t;\n}, Ht = (n, t = null) => n ? xe(t ? t(n) : n) : {\n pathname: \"\",\n search: \"\",\n hash: \"\"\n}, zi = (n, t) => {\n if ($t(n), $t(t), Object.keys(n).length !== Object.keys(t).length)\n return !1;\n if (Object.keys(n).length === 0 && Object.keys(t).length === 0)\n return !0;\n let e = !0;\n return Object.keys(t).forEach((r) => {\n t[r] !== n[r] && (e = !1);\n }), e;\n}, Wi = (n) => {\n if (typeof n.mode == \"string\") {\n if (n.mode === Y.memory)\n return !0;\n } else if (n.mode[1]) {\n const [t, { sticky: e }] = n.mode;\n if (t === Y.memory)\n return typeof e == \"undefined\" ? !0 : e;\n }\n return !1;\n}, Re = (n) => {\n const { views: t } = n.get(\"$settings\"), e = Object.keys(t).reduce((r, s) => typeof t[s].path == \"undefined\" ? s : r, void 0);\n return e ? {\n name: e,\n params: {}\n } : null;\n}, jn = \"hashchange\", Fi = {\n hashbang: {\n encodePath: (n) => n.charAt(0) === \"!\" ? n : \"!/\" + Ge(n),\n decodePath: (n) => n.charAt(0) === \"!\" ? n.substr(1) : n\n },\n noslash: {\n encodePath: Ge,\n decodePath: Ut\n },\n slash: {\n encodePath: Ut,\n decodePath: Ut\n }\n}, ct = () => {\n const n = window.location.href, t = n.indexOf(\"#\");\n return t === -1 ? \"\" : n.substring(t + 1);\n}, Rn = (n) => window.location.hash = n, Tn = (n) => {\n const t = window.location.href.indexOf(\"#\");\n window.location.replace(\n window.location.href.slice(0, t >= 0 ? t : 0) + \"#\" + n\n );\n}, ae = (n = \"\") => {\n const t = n.replace(\";\", \"?\"), e = [\n { from: /\\;+/gi, to: \"&\" },\n { from: /:+/gi, to: \"=\" }\n ];\n let r = t;\n return e.forEach(({ to: s, from: i }) => {\n r = r.replace(i, s);\n }), r;\n}, qi = (n = {}) => {\n const t = window.history, { getUserConfirmation: e = Er, hashType: r = \"slash\" } = n, s = n.basename ? xr(Ut(n.basename)) : \"\", { encodePath: i } = Fi[r], o = () => {\n const f = ct(), w = l(f);\n return Ht(w, ae);\n }, a = n.transitionManager || Or(), c = (f) => {\n Object.assign(T, f), T.length = t.length, a.notifyListeners(T.location, T.action, n.widgetName);\n };\n let h = !1;\n const l = (f) => {\n const w = ($) => {\n function A(_, m) {\n const O = {};\n let L;\n for (; L = m.exec(_); )\n O[L[1]] = L[2];\n return O;\n }\n return A($, /([^#?&=]+)=([^&#]*)(?!.*?\\#)/gi) || null;\n }, y = \"humany-\" + n.widgetName;\n return w(f)[y];\n }, u = () => {\n const f = o(), w = T.location;\n !h && _r(w, f) || d(f);\n }, d = (f) => {\n if (h)\n h = !1, c();\n else {\n const w = \"POP\";\n a.confirmTransitionTo(\n f,\n w,\n e,\n (y) => {\n y ? c({ action: w, location: f }) : p(f);\n }\n );\n }\n }, p = (f) => {\n const w = T.location;\n let y = g.lastIndexOf(at(w));\n y === -1 && (y = 0);\n let $ = g.lastIndexOf(at(f));\n $ === -1 && ($ = 0);\n const A = y - $;\n A && (h = !0, x(A));\n }, b = ct(), v = i(b);\n b !== v && Tn(v);\n let g = [];\n const E = o();\n E.pathname !== null && g.push(at(E));\n const R = (f = \"\") => {\n const w = [\n { from: /\\?+/gi, to: \";\" },\n { from: /\\&amp;+/gi, to: \";\" },\n { from: /\\&+/gi, to: \";\" },\n { from: /=+/gi, to: \":\" }\n ];\n let y = f;\n return w.forEach(({ to: $, from: A }) => {\n y = y.replace(A, $);\n }), y;\n }, F = (f, w, y) => {\n let $ = \"\", A = !1;\n return f.split(\"&\").forEach((_) => {\n const m = _.split(\"=\"), O = m[0], L = m[1];\n if (O === w) {\n if (A = !0, y === null)\n return;\n $.length > 0 && ($ += \"&\"), typeof y != \"undefined\" ? $ += O + \"=\" + y : $ += O;\n } else\n O && ($.length > 0 && ($ += \"&\"), $ += O + \"=\" + L);\n }), !A && y !== null && ($.length > 0 && ($ += \"&\"), typeof y != \"undefined\" ? $ += w + \"=\" + y : $ += w), $;\n }, H = (f) => {\n const w = f.pathname, y = R(f.search), $ = w + (y ? `;${y}` : \"\"), A = `humany-${n.widgetName}`, _ = ct();\n return `#${F(_, A, $).replace(\";;\", \";\")}`;\n }, k = (f, w) => {\n const y = \"PUSH\", $ = Ht(f, ae), A = $.pathname, _ = R($.search), m = A + (_ ? `${_}` : \"\"), O = `humany-${n.widgetName}`, L = ct(), M = F(L, O, m);\n a.confirmTransitionTo($, y, e, (K) => {\n if (!K)\n return;\n const G = at($), it = i(M);\n if (ct() !== it) {\n Rn(it);\n const Q = g.lastIndexOf(at(T.location)), q = g.slice(0, Q === -1 ? 0 : Q + 1);\n q.push(G), g = q, c({ action: y, location: $ });\n } else\n c();\n });\n }, U = (f, w) => {\n const y = \"REPLACE\", $ = Ht(f, ae);\n a.confirmTransitionTo($, y, e, (A) => {\n if (!A)\n return;\n const _ = at($), m = i(s + _);\n ct() !== m && Tn(m);\n const O = g.indexOf(at(T.location));\n O !== -1 && (g[O] = _), c({ action: y, location: $ });\n });\n }, x = (f) => {\n t.go(f);\n }, N = () => x(-1), S = () => x(1);\n let D = 0;\n const z = (f) => {\n D += f, D === 1 ? window.addEventListener(jn, u) : D === 0 && window.removeEventListener(jn, u);\n };\n let V = !1;\n const T = {\n createHref: H,\n createLocation: Ht,\n push: k,\n replace: U,\n go: x,\n goBack: N,\n goForward: S,\n block: (f = !1) => {\n const w = a.setPrompt(f);\n return V || (z(1), V = !0), () => (V && (V = !1, z(-1)), w());\n },\n listen: (f) => {\n const w = a.appendListener(f);\n return z(1), () => {\n z(-1), w();\n };\n },\n stop: () => {\n const f = ct(), w = F(f, `humany-${n.widgetName}`, null), y = i(w);\n Rn(y);\n },\n length: t.length,\n action: \"POP\",\n location: E\n };\n return T;\n}, Mr = qi, Ji = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({\n __proto__: null,\n decodeSearch: ae,\n default: Mr,\n getHashPath: ct\n}, Symbol.toStringTag, { value: \"Module\" })), Ki = (n, t) => {\n const e = (s) => {\n function i(o, a) {\n const c = {};\n let h;\n for (; h = a.exec(o); )\n c[h[1]] = h[2];\n return c;\n }\n return i(s, /([^#?&=]+)=([^&#]*)(?!.*?\\#)/gi) || null;\n }, r = `humany-${t}`;\n return e(n)[r];\n}, Gi = () => {\n const n = window.location.href, t = n.indexOf(\"#\");\n return t === -1 ? \"\" : n.substring(t + 1);\n}, Yi = (n = \"\") => {\n const t = n.replace(\";\", \"?\"), e = [\n { from: /\\;+/gi, to: \"&\" },\n { from: /:+/gi, to: \"=\" }\n ];\n let r = t;\n return e.forEach(({ to: s, from: i }) => {\n r = r.replace(i, s);\n }), r;\n}, Zi = (n, t = null) => n ? xe(t ? t(n) : n) : {\n pathname: \"\",\n search: \"\",\n hash: \"\"\n}, Dr = (n) => {\n const t = Gi(), e = Ki(t, n);\n return Zi(e, Yi);\n}, on = (n) => {\n const { name: t } = n.get(\"$widget\");\n return !!Dr(t).pathname;\n};\nXe((n) => {\n n.createCommand(\"routing\", (t) => (e) => {\n const r = {\n mode: e.mode\n };\n e.basePath && (r.basePath = e.basePath), t.container.register(\"routingSettings\", r);\n });\n});\nconst In = \"routeData\";\nclass Qi {\n constructor(t, e) {\n this.container = t, this.steps = [], this.historyListenSubscription = () => {\n }, this.sticky = !1, this.storageWriter = null, this.widget = t.get(\"$widget\");\n const r = e, { routes: s } = r, i = fi(r, [\"routes\"]);\n this.settings = At(At({}, i), t.get(\"routingSettings\")), this.sticky = Wi(this.settings), this.storageMedium = this.sticky ? P.Local : P.Session, rt(t, In, C.Necessary, {\n medium: this.storageMedium\n }).then((o) => this.storageWriter = o), this.routes = s;\n }\n initialize() {\n return this.initialized = this.initialized || this.createHistory().then((t) => {\n this.history = t, this.location = t.location, this.historyListenSubscription = t.listen(\n (e, r, s) => this.handleLocationChange(e, s)\n );\n });\n }\n setMatch(t) {\n if (this.match = t, this.location) {\n const e = this.getRouteData(), r = {\n routeData: e,\n location: this.location\n }, s = this.steps[0], i = e.name === (s == null ? void 0 : s.routeData.name), o = vn(\n e.params,\n (s == null ? void 0 : s.routeData.params) || {}\n );\n (!i || !o) && (this.widget.events.dispatch(\"router:change\", { next: r, previous: s }), this.steps.unshift(r), this.storageWriter && this.storageWriter(r.routeData), this.widget.events.dispatch(\"router:changed\", { previous: s, current: r }));\n }\n }\n onRouteChange(t) {\n return this.widget.events.subscribe(\"router:change\", t);\n }\n isSticky() {\n return this.sticky;\n }\n /**\n * Generate a formatted path from string\n * @param routeName Name of route to generate path for\n * @param params Optional: route params\n */\n generate(t, e = {}) {\n const r = je(t, this.routes);\n if (!r || !this.history)\n throw `No route found for ${t}`;\n const s = oe(e, r.path);\n if (!s)\n throw `Unable to generate path for \"${t}\".`;\n const i = Ht(s, this.settings.decodeSearch);\n let o = this.history.createHref(i);\n const { mode: a, basePath: c } = this.settings;\n return a === \"browser\" && c && (o = o.replace(c, \"\")), o.charAt(0) !== \"/\" && (o = `/${o}`), o;\n }\n /**\n * Navigate to path\n * @param routeName Route to navigate to\n * @param params Optional: route params\n */\n navigate(t, e = {}) {\n const r = je(t, this.routes);\n if (!r || !this.history)\n return;\n const s = oe(e, r.path);\n if (!s)\n return;\n const i = this.getRouteData(), o = i && i.name === t && zi(i.params, e);\n if (this.steps[0] && o)\n return;\n const { decodeSearch: a } = this.settings, c = a ? a(s) : s;\n this.widget.events.dispatch(\"router:navigate\", {\n decodedPath: c\n }), c.charAt(0) !== \"/\" ? this.history.push(`/${c}`) : this.history.push(c);\n }\n /**\n * Return true or false depending\n * on whether it is possible to navigate backwards\n */\n hasBack() {\n if (this.steps.length > 1)\n return !0;\n const t = this.getRouteData(this.settings.initialPath), e = this.getRouteData(), r = e.name === t.name, s = vn(e.params, t.params);\n return !r || !s;\n }\n /**\n * Navigate to previous route\n */\n goBack(t = 1) {\n if (this.steps.length < 2) {\n const e = this.getRouteData(this.settings.initialPath);\n e && e.name && (this.navigate(e.name, e.params), this.steps = []);\n } else {\n const e = t >= this.steps.length ? this.steps.length - 1 : t, { routeData: r } = this.steps[e];\n this.steps = [...this.steps.slice(e + 1)], this.navigate(r.name, os(r.params));\n }\n }\n /**\n * Navigate to next route\n */\n goForward() {\n this.history && this.history.goForward();\n }\n /**\n * Get the current location\n */\n current() {\n return this.location;\n }\n /**\n * Get the initial route. If the defined initial route does not exist,\n * return the first defined route\n */\n getInitialRoute() {\n const { name: t } = this.getRouteData(this.settings.initialPath);\n return this.routes.find((r) => r.name === t) || (this.routes.length > 0 ? this.routes[0] : (process.env.NODE_ENV !== \"production\" && I.warn(\"Unable to get initial route as no routes are defined.\"), null));\n }\n getRouteData(t) {\n const e = Re(this.container);\n if (t) {\n const r = _t(t, this.routes);\n return r ? {\n params: $t(It(t, r.path)),\n name: r.name\n } : e || {\n name: \"\",\n params: {}\n };\n }\n if (this.location) {\n const { pathname: r, search: s } = this.location;\n if (this.currentRoute = this.currentRoute || _t(r, this.routes), this.currentRoute) {\n const { path: i, name: o } = this.currentRoute;\n this.match || (this.match = {\n params: It(r, i),\n isExact: !0,\n path: i,\n url: r\n });\n const a = $t(At(At({}, this.match.params), s.length > 0 && Lr(s)));\n return {\n name: o,\n params: a\n };\n }\n }\n return e || {\n name: \"\",\n params: {}\n };\n }\n dispose() {\n return this.historyListenSubscription(), this.stop();\n }\n /**\n * Setup and load the initial route based on router configuration\n */\n setupInitialRoute() {\n return Z(this.container, In, this.storageMedium).then(\n (t) => {\n if (!this.location || !this.history)\n return;\n const { initialPath: e, mode: r } = this.settings;\n switch ((() => {\n const s = on(this.container);\n return r === Y.browser || s ? ft.path : r === Y.memory && t ? ft.storage : ft.initialPath;\n })()) {\n case ft.initialPath: {\n const s = this.getRouteData(e);\n return s && s.name ? this.navigate(s.name, s.params) : void 0;\n }\n case ft.path: {\n const { pathname: s } = this.location;\n if (this.currentRoute = _t(s, this.routes), this.currentRoute) {\n const { path: o } = this.currentRoute;\n return this.setMatch({\n params: It(s, o),\n isExact: !0,\n path: o,\n url: s\n });\n }\n const i = Re(this.container);\n return i ? this.setMatch({\n params: {},\n isExact: !0,\n path: i.name,\n url: s\n }) : void 0;\n }\n case ft.storage: {\n const { pathname: s } = this.location;\n this.currentRoute = _t(s, this.routes);\n const { name: i = \"\", params: o = {} } = t || {}, a = je(i, this.routes);\n if (a) {\n const c = oe(o, a.path);\n if (c)\n return this.history.push(c), this.location = br(At({}, this.location), { pathname: c }), this.currentRoute = _t(c, this.routes), this.setMatch({\n params: o,\n isExact: !0,\n path: a.path,\n url: c\n });\n }\n return;\n }\n }\n }\n );\n }\n start() {\n return this.setupInitialRoute();\n }\n stop() {\n return this.history && (this.settings.mode === Y.scopedHash && this.history.stop(), this.steps = [], this.storageWriter) ? this.storageWriter() : Promise.resolve();\n }\n handleLocationChange(t, e) {\n const { pathname: r } = t, { mode: s } = this.settings;\n if (r.indexOf(\"?\") > -1 || r.indexOf(\";\") > -1 || s === Y.scopedHash && e !== this.widget.name)\n return;\n this.location = t, this.currentRoute = _t(r, this.routes);\n const i = Re(this.container);\n if (this.currentRoute) {\n const { path: o } = this.currentRoute;\n this.setMatch({\n params: It(r, o),\n isExact: !0,\n path: o,\n url: r\n });\n } else\n i && this.setMatch({\n params: {},\n isExact: !0,\n path: i.name,\n url: r\n });\n }\n createHistory() {\n return new Promise((t) => {\n const { mode: e, basePath: r } = this.settings;\n if (e === Y.scopedHash) {\n const s = this.widget.name, i = Bi(this.container);\n return Promise.resolve().then(() => Ji).then((o) => {\n const a = o.default({\n widgetName: s,\n transitionManager: i,\n hashType: \"noslash\"\n });\n return t(a);\n });\n }\n if (e === Y.memory)\n return t(Gs());\n if (e === Y.browser)\n return t(Js({ basename: r }));\n throw \"RoutingService: History could not be created.\";\n });\n }\n}\nconst Xi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({\n __proto__: null,\n HistoryMode: Y,\n RoutingService: Qi,\n createHashHistory: Mr,\n getScopedHashDOMLocation: Dr,\n matchParams: It,\n onWidgetUrl: on\n}, Symbol.toStringTag, { value: \"Module\" })), Te = (n, t, e, ...r) => {\n const s = `[${n.get(\"$environment\").name || \"webprovisions\"}] ${e}`;\n switch (t) {\n case \"info\":\n console.info(s, ...r);\n break;\n case \"warning\":\n console.warn(s, ...r);\n break;\n case \"error\":\n console.error(s, ...r);\n break;\n }\n}, to = (n) => {\n const t = n.container || n;\n return {\n info: (e, ...r) => Te(t, \"info\", e, ...r),\n warn: (e, ...r) => Te(t, \"warning\", e, ...r),\n error: (e, ...r) => Te(t, \"error\", e, ...r)\n };\n};\nvar Bt = /* @__PURE__ */ ((n) => (n.Implementation = \"implementation\", n.Widget = \"widget\", n))(Bt || {}), ut = /* @__PURE__ */ ((n) => (n.Pre = \"pre\", n.Post = \"post\", n))(ut || {});\nconst eo = (n, t, e, r) => {\n try {\n const s = new t(e, r);\n return {\n name: n,\n invoke: (i, o) => {\n let a;\n return s[i] && (a = s[i].call(s, o)), Promise.resolve(a);\n },\n getInstance: () => s\n };\n } catch (s) {\n if (s.message && s.message.indexOf(\"is not a constructor\") >= 0)\n return {\n name: n,\n invoke: (i) => {\n let o;\n return i === \"initialize\" && (o = t(e, r)), Promise.resolve(o);\n },\n getInstance: () => t\n };\n throw s;\n }\n};\nfunction Hn(n, t) {\n return typeof n == \"undefined\" ? t : n;\n}\nclass no {\n constructor(t = {}) {\n this.part = t;\n }\n createCommand(t, e, r) {\n let s;\n typeof e == \"function\" ? s = {\n scope: Bt.Widget,\n stage: ut.Post,\n defaultArgs: void 0,\n handlerResolver: e\n } : s = {\n scope: Hn(e.scope, Bt.Widget),\n stage: Hn(e.stage, ut.Post),\n defaultArgs: e.defaultArgs,\n handlerResolver: r\n };\n let i = this.part;\n const o = t.split(\".\");\n return o.forEach((a, c) => {\n c === o.length - 1 ? i[a] || (i[a] = () => s) : i = this.part[a] = this.part[a] || {};\n }), this;\n }\n get() {\n return this.part;\n }\n}\nconst jr = (n) => {\n const t = new no({});\n return n(t), t.get();\n};\njr((n) => {\n n.createCommand(\n \"types.register\",\n { scope: Bt.Implementation, stage: ut.Pre },\n (t) => (e, r) => {\n t.container.get(\"$types\")[e] = r;\n }\n ).createCommand(\n \"type\",\n { stage: ut.Pre },\n (t) => (e) => {\n t.container.register(\"$type\", e);\n }\n ).createCommand(\n \"settings\",\n { stage: ut.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: ut.Pre },\n (t) => (e, r, s) => {\n const { container: i } = t;\n let o = null, a = e, c = r;\n typeof e == \"string\" && (o = e, a = r, c = s);\n const h = (l) => {\n const { transformPluginSettings: u } = t.container.get(\"$environmentOptions\"), d = u ? u(\n c || {},\n o,\n t.container,\n a\n ) : r;\n try {\n const p = eo(\n o,\n a,\n i,\n d\n );\n i.get(\"$plugins\").push(p), l && p.invoke(\"initialize\", null);\n } catch (p) {\n to(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, r) => {\n t.container.register(e, r);\n }\n ).createCommand(\n \"container.registerAsync\",\n (t) => (e, r) => {\n t.container.registerAsync(e, r);\n }\n ).createCommand(\n \"container.registerFactory\",\n (t) => (e, r) => {\n t.container.registerFactory(e, r);\n }\n ).createCommand(\n \"container.touch\",\n (t) => (e, r) => {\n t.container.touch(e, r);\n }\n ).createCommand(\n \"csp\",\n {},\n (t) => (e) => {\n t.container.register(\"csp\", e);\n }\n );\n});\nfunction ro(n) {\n const t = {};\n return [].filter.call(n.attributes, (e) => /^data-/.test(e.name)).map((e) => e.name).forEach((e) => t[e.substr(5)] = n.getAttribute(e)), t;\n}\nconst Un = (n, t, e) => {\n const r = ro(n);\n e({\n sourceDOMElement: n,\n eventType: t,\n data: r\n });\n};\nfunction Vn(n, t, e) {\n n.forEach((r) => {\n r.dataset.attached !== \"true\" && (t === \"load\" ? Un(r, t, e) : r.addEventListener(t, (s) => {\n s.preventDefault(), Un(r, t, e);\n }), r.dataset.monitored = \"true\");\n });\n}\nfunction so(n, t, e) {\n const r = n.container.get(\"bootstrapping.monitor\");\n r && r.events.subscribe(\"bootstrap:trigger-elements-updated\", (i, o) => {\n Vn(\n o.triggerElements,\n t,\n e\n );\n });\n const s = n.container.get(\"triggerElements\");\n s && Vn(\n s,\n t,\n e\n );\n}\njr((n) => {\n n.createCommand(\n \"ready\",\n { scope: Bt.Implementation, stage: ut.Pre },\n (t) => (e) => {\n const { container: r } = t, s = r.owner;\n r.get(\"bootstrapping\").ready ? e(s) : s.events.subscribeOnce(\"bootstrap:ready\", () => {\n e(s);\n });\n }\n );\n});\nconst io = (n) => {\n const t = (s, i) => {\n s && (i ? s.classList.add(\"ace-tabbing\") : s.classList.remove(\"ace-tabbing\"));\n }, e = (s) => {\n s.key === \"Tab\" ? t(n, !0) : s.key === \"Enter\" && document.activeElement && document.activeElement.classList.contains(\"ace-widget-trigger\") || t(n, !1);\n }, r = (s) => {\n document.activeElement && document.activeElement.classList.contains(\"ace-widget-trigger\") && document.activeElement.classList.contains(\"ace-tabbing\") || t(n, !1);\n };\n return document.addEventListener(\"keydown\", e), document.addEventListener(\"click\", r), () => {\n document.removeEventListener(\"keydown\", e), document.removeEventListener(\"click\", r);\n };\n};\nfunction oo(n, t) {\n const {\n // symbol,\n widgetName: e,\n label: r = \"\",\n ariaLabel: s = \"\",\n tooltip: i = \"\"\n } = t;\n return n.classList.add(\"ace-widget-trigger\"), n.classList.add(`ace-widget_${e}`), r.length && n.classList.add(\"trigger-has-text\"), s.length && !n.getAttribute(\"aria-label\") && n.setAttribute(\"aria-label\", s), s.length && !n.getAttribute(\"tabindex\") && n.setAttribute(\"tabindex\", \"0\"), i.length && !n.getAttribute(\"title\") && n.setAttribute(\"title\", i), io(n);\n}\nfunction ao(n, t) {\n n instanceof HTMLElement ? (t && n.setAttribute(\"title\", t), n.classList.remove(\"ace-trigger-active\"), n.classList.remove(\"ace-trigger-loading\")) : n instanceof Array && n.forEach((e) => {\n t && e.setAttribute(\"title\", t), e.classList.remove(\"ace-trigger-active\"), e.classList.remove(\"ace-trigger-loading\");\n });\n}\nfunction co(n) {\n n instanceof HTMLElement ? (n.classList.remove(\"ace-trigger-active\"), n.classList.add(\"ace-trigger-loading\")) : n instanceof Array && n.forEach((t) => {\n t.classList.remove(\"ace-trigger-active\"), t.classList.add(\"ace-trigger-loading\");\n });\n}\nfunction Rr(n, t) {\n n instanceof HTMLElement ? (t && n.setAttribute(\"title\", t), n.classList.add(\"ace-trigger-active\"), n.classList.remove(\"ace-trigger-loading\")) : n instanceof Array && n.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 ce = window, an = ce.ShadowRoot && (ce.ShadyCSS === void 0 || ce.ShadyCSS.nativeShadow) && \"adoptedStyleSheets\" in Document.prototype && \"replace\" in CSSStyleSheet.prototype, cn = Symbol(), Bn = /* @__PURE__ */ new WeakMap();\nlet Tr = class {\n constructor(t, e, r) {\n if (this._$cssResult$ = !0, r !== cn)\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 (an && t === void 0) {\n const r = e !== void 0 && e.length === 1;\n r && (t = Bn.get(e)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), r && Bn.set(e, t));\n }\n return t;\n }\n toString() {\n return this.cssText;\n }\n};\nconst ho = (n) => new Tr(typeof n == \"string\" ? n : n + \"\", void 0, cn), Ir = (n, ...t) => {\n const e = n.length === 1 ? n[0] : t.reduce((r, s, i) => r + ((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 })(s) + n[i + 1], n[0]);\n return new Tr(e, n, cn);\n}, lo = (n, t) => {\n an ? n.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet) : t.forEach((e) => {\n const r = document.createElement(\"style\"), s = ce.litNonce;\n s !== void 0 && r.setAttribute(\"nonce\", s), r.textContent = e.cssText, n.appendChild(r);\n });\n}, zn = an ? (n) => n : (n) => n instanceof CSSStyleSheet ? ((t) => {\n let e = \"\";\n for (const r of t.cssRules)\n e += r.cssText;\n return ho(e);\n})(n) : n;\n/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\nvar Ie;\nconst me = window, Wn = me.trustedTypes, uo = Wn ? Wn.emptyScript : \"\", Fn = me.reactiveElementPolyfillSupport, Ye = { toAttribute(n, t) {\n switch (t) {\n case Boolean:\n n = n ? uo : null;\n break;\n case Object:\n case Array:\n n = n == null ? n : JSON.stringify(n);\n }\n return n;\n}, fromAttribute(n, t) {\n let e = n;\n switch (t) {\n case Boolean:\n e = n !== null;\n break;\n case Number:\n e = n === null ? null : Number(n);\n break;\n case Object:\n case Array:\n try {\n e = JSON.parse(n);\n } catch (r) {\n e = null;\n }\n }\n return e;\n} }, Hr = (n, t) => t !== n && (t == t || n == n), He = { attribute: !0, type: String, converter: Ye, reflect: !1, hasChanged: Hr }, Ze = \"finalized\";\nlet Pt = 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, r) => {\n const s = this._$Ep(r, e);\n s !== void 0 && (this._$Ev.set(s, r), t.push(s));\n }), t;\n }\n static createProperty(t, e = He) {\n if (e.state && (e.attribute = !1), this.finalize(), this.elementProperties.set(t, e), !e.noAccessor && !this.prototype.hasOwnProperty(t)) {\n const r = typeof t == \"symbol\" ? Symbol() : \"__\" + t, s = this.getPropertyDescriptor(t, r, e);\n s !== void 0 && Object.defineProperty(this.prototype, t, s);\n }\n }\n static getPropertyDescriptor(t, e, r) {\n return { get() {\n return this[e];\n }, set(s) {\n const i = this[t];\n this[e] = s, this.requestUpdate(t, i, r);\n }, configurable: !0, enumerable: !0 };\n }\n static getPropertyOptions(t) {\n return this.elementProperties.get(t) || He;\n }\n static finalize() {\n if (this.hasOwnProperty(Ze))\n return !1;\n this[Ze] = !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, r = [...Object.getOwnPropertyNames(e), ...Object.getOwnPropertySymbols(e)];\n for (const s of r)\n this.createProperty(s, e[s]);\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 r = new Set(t.flat(1 / 0).reverse());\n for (const s of r)\n e.unshift(zn(s));\n } else\n t !== void 0 && e.push(zn(t));\n return e;\n }\n static _$Ep(t, e) {\n const r = e.attribute;\n return r === !1 ? void 0 : typeof r == \"string\" ? r : 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, r;\n ((e = this._$ES) !== null && e !== void 0 ? e : this._$ES = []).push(t), this.renderRoot !== void 0 && this.isConnected && ((r = t.hostConnected) === null || r === void 0 || r.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 lo(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 r;\n return (r = e.hostConnected) === null || r === void 0 ? void 0 : r.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 r;\n return (r = e.hostDisconnected) === null || r === void 0 ? void 0 : r.call(e);\n });\n }\n attributeChangedCallback(t, e, r) {\n this._$AK(t, r);\n }\n _$EO(t, e, r = He) {\n var s;\n const i = this.constructor._$Ep(t, r);\n if (i !== void 0 && r.reflect === !0) {\n const o = (((s = r.converter) === null || s === void 0 ? void 0 : s.toAttribute) !== void 0 ? r.converter : Ye).toAttribute(e, r.type);\n this._$El = t, o == null ? this.removeAttribute(i) : this.setAttribute(i, o), this._$El = null;\n }\n }\n _$AK(t, e) {\n var r;\n const s = this.constructor, i = s._$Ev.get(t);\n if (i !== void 0 && this._$El !== i) {\n const o = s.getPropertyOptions(i), a = typeof o.converter == \"function\" ? { fromAttribute: o.converter } : ((r = o.converter) === null || r === void 0 ? void 0 : r.fromAttribute) !== void 0 ? o.converter : Ye;\n this._$El = i, this[i] = a.fromAttribute(e, o.type), this._$El = null;\n }\n }\n requestUpdate(t, e, r) {\n let s = !0;\n t !== void 0 && (((r = r || this.constructor.getPropertyOptions(t)).hasChanged || Hr)(this[t], e) ? (this._$AL.has(t) || this._$AL.set(t, e), r.reflect === !0 && this._$El !== t && (this._$EC === void 0 && (this._$EC = /* @__PURE__ */ new Map()), this._$EC.set(t, r))) : s = !1), !this.isUpdatePending && s && (this._$E_ = this._$Ej());\n }\n _$Ej() {\n return B(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((s, i) => this[i] = s), this._$Ei = void 0);\n let e = !1;\n const r = this._$AL;\n try {\n e = this.shouldUpdate(r), e ? (this.willUpdate(r), (t = this._$ES) === null || t === void 0 || t.forEach((s) => {\n var i;\n return (i = s.hostUpdate) === null || i === void 0 ? void 0 : i.call(s);\n }), this.update(r)) : this._$Ek();\n } catch (s) {\n throw e = !1, this._$Ek(), s;\n }\n e && this._$AE(r);\n }\n willUpdate(t) {\n }\n _$AE(t) {\n var e;\n (e = this._$ES) === null || e === void 0 || e.forEach((r) => {\n var s;\n return (s = r.hostUpdated) === null || s === void 0 ? void 0 : s.call(r);\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, r) => this._$EO(r, this[r], e)), this._$EC = void 0), this._$Ek();\n }\n updated(t) {\n }\n firstUpdated(t) {\n }\n};\nPt[Ze] = !0, Pt.elementProperties = /* @__PURE__ */ new Map(), Pt.elementStyles = [], Pt.shadowRootOptions = { mode: \"open\" }, Fn == null || Fn({ ReactiveElement: Pt }), ((Ie = me.reactiveElementVersions) !== null && Ie !== void 0 ? Ie : me.reactiveElementVersions = []).push(\"1.6.3\");\n/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\nvar Ue;\nconst ve = window, St = ve.trustedTypes, qn = St ? St.createPolicy(\"lit-html\", { createHTML: (n) => n }) : void 0, Qe = \"$lit$\", ht = `lit$${(Math.random() + \"\").slice(9)}$`, Ur = \"?\" + ht, po = `<${Ur}>`, Ot = document, zt = () => Ot.createComment(\"\"), Wt = (n) => n === null || typeof n != \"object\" && typeof n != \"function\", Vr = Array.isArray, go = (n) => Vr(n) || typeof (n == null ? void 0 : n[Symbol.iterator]) == \"function\", Ve = `[ \t\n\\f\\r]`, Dt = /<(?:(!--|\\/[^a-zA-Z])|(\\/?[a-zA-Z][^>\\s]*)|(\\/?$))/g, Jn = /-->/g, Kn = />/g, pt = RegExp(`>|${Ve}(?:([^\\\\s\"'>=/]+)(${Ve}*=${Ve}*(?:[^ \t\n\\f\\r\"'\\`<>=]|(\"|')|))|$)`, \"g\"), Gn = /'/g, Yn = /\"/g, Br = /^(?:script|style|textarea|title)$/i, fo = (n) => (t, ...e) => ({ _$litType$: n, strings: t, values: e }), Xt = fo(1), Et = Symbol.for(\"lit-noChange\"), j = Symbol.for(\"lit-nothing\"), Zn = /* @__PURE__ */ new WeakMap(), bt = Ot.createTreeWalker(Ot, 129, null, !1);\nfunction zr(n, t) {\n if (!Array.isArray(n) || !n.hasOwnProperty(\"raw\"))\n throw Error(\"invalid template strings array\");\n return qn !== void 0 ? qn.createHTML(t) : t;\n}\nconst mo = (n, t) => {\n const e = n.length - 1, r = [];\n let s, i = t === 2 ? \"<svg>\" : \"\", o = Dt;\n for (let a = 0; a < e; a++) {\n const c = n[a];\n let h, l, u = -1, d = 0;\n for (; d < c.length && (o.lastIndex = d, l = o.exec(c), l !== null); )\n d = o.lastIndex, o === Dt ? l[1] === \"!--\" ? o = Jn : l[1] !== void 0 ? o = Kn : l[2] !== void 0 ? (Br.test(l[2]) && (s = RegExp(\"</\" + l[2], \"g\")), o = pt) : l[3] !== void 0 && (o = pt) : o === pt ? l[0] === \">\" ? (o = s != null ? s : Dt, u = -1) : l[1] === void 0 ? u = -2 : (u = o.lastIndex - l[2].length, h = l[1], o = l[3] === void 0 ? pt : l[3] === '\"' ? Yn : Gn) : o === Yn || o === Gn ? o = pt : o === Jn || o === Kn ? o = Dt : (o = pt, s = void 0);\n const p = o === pt && n[a + 1].startsWith(\"/>\") ? \" \" : \"\";\n i += o === Dt ? c + po : u >= 0 ? (r.push(h), c.slice(0, u) + Qe + c.slice(u) + ht + p) : c + ht + (u === -2 ? (r.push(void 0), a) : p);\n }\n return [zr(n, i + (n[e] || \"<?>\") + (t === 2 ? \"</svg>\" : \"\")), r];\n};\nclass Ft {\n constructor({ strings: t, _$litType$: e }, r) {\n let s;\n this.parts = [];\n let i = 0, o = 0;\n const a = t.length - 1, c = this.parts, [h, l] = mo(t, e);\n if (this.el = Ft.createElement(h, r), bt.currentNode = this.el.content, e === 2) {\n const u = this.el.content, d = u.firstChild;\n d.remove(), u.append(...d.childNodes);\n }\n for (; (s = bt.nextNode()) !== null && c.length < a; ) {\n if (s.nodeType === 1) {\n if (s.hasAttributes()) {\n const u = [];\n for (const d of s.getAttributeNames())\n if (d.endsWith(Qe) || d.startsWith(ht)) {\n const p = l[o++];\n if (u.push(d), p !== void 0) {\n const b = s.getAttribute(p.toLowerCase() + Qe).split(ht), v = /([.?@])?(.*)/.exec(p);\n c.push({ type: 1, index: i, name: v[2], strings: b, ctor: v[1] === \".\" ? yo : v[1] === \"?\" ? wo : v[1] === \"@\" ? $o : _e });\n } else\n c.push({ type: 6, index: i });\n }\n for (const d of u)\n s.removeAttribute(d);\n }\n if (Br.test(s.tagName)) {\n const u = s.textContent.split(ht), d = u.length - 1;\n if (d > 0) {\n s.textContent = St ? St.emptyScript : \"\";\n for (let p = 0; p < d; p++)\n s.append(u[p], zt()), bt.nextNode(), c.push({ type: 2, index: ++i });\n s.append(u[d], zt());\n }\n }\n } else if (s.nodeType === 8)\n if (s.data === Ur)\n c.push({ type: 2, index: i });\n else {\n let u = -1;\n for (; (u = s.data.indexOf(ht, u + 1)) !== -1; )\n c.push({ type: 7, index: i }), u += ht.length - 1;\n }\n i++;\n }\n }\n static createElement(t, e) {\n const r = Ot.createElement(\"template\");\n return r.innerHTML = t, r;\n }\n}\nfunction kt(n, t, e = n, r) {\n var s, i, o, a;\n if (t === Et)\n return t;\n let c = r !== void 0 ? (s = e._$Co) === null || s === void 0 ? void 0 : s[r] : e._$Cl;\n const h = Wt(t) ? void 0 : t._$litDirective$;\n return (c == null ? void 0 : c.constructor) !== h && ((i = c == null ? void 0 : c._$AO) === null || i === void 0 || i.call(c, !1), h === void 0 ? c = void 0 : (c = new h(n), c._$AT(n, e, r)), r !== void 0 ? ((o = (a = e)._$Co) !== null && o !== void 0 ? o : a._$Co = [])[r] = c : e._$Cl = c), c !== void 0 && (t = kt(n, c._$AS(n, t.values), c, r)), t;\n}\nclass vo {\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: r }, parts: s } = this._$AD, i = ((e = t == null ? void 0 : t.creationScope) !== null && e !== void 0 ? e : Ot).importNode(r, !0);\n bt.currentNode = i;\n let o = bt.nextNode(), a = 0, c = 0, h = s[0];\n for (; h !== void 0; ) {\n if (a === h.index) {\n let l;\n h.type === 2 ? l = new Kt(o, o.nextSibling, this, t) : h.type === 1 ? l = new h.ctor(o, h.name, h.strings, this, t) : h.type === 6 && (l = new Oo(o, this, t)), this._$AV.push(l), h = s[++c];\n }\n a !== (h == null ? void 0 : h.index) && (o = bt.nextNode(), a++);\n }\n return bt.currentNode = Ot, i;\n }\n v(t) {\n let e = 0;\n for (const r of this._$AV)\n r !== void 0 && (r.strings !== void 0 ? (r._$AI(t, r, e), e += r.strings.length - 2) : r._$AI(t[e])), e++;\n }\n}\nclass Kt {\n constructor(t, e, r, s) {\n var i;\n this.type = 2, this._$AH = j, this._$AN = void 0, this._$AA = t, this._$AB = e, this._$AM = r, this.options = s, this._$Cp = (i = s == null ? void 0 : s.isConnected) === null || i === void 0 || i;\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 = kt(this, t, e), Wt(t) ? t === j || t == null || t === \"\" ? (this._$AH !== j && this._$AR(), this._$AH = j) : t !== this._$AH && t !== Et && this._(t) : t._$litType$ !== void 0 ? this.g(t) : t.nodeType !== void 0 ? this.$(t) : go(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 !== j && Wt(this._$AH) ? this._$AA.nextSibling.data = t : this.$(Ot.createTextNode(t)), this._$AH = t;\n }\n g(t) {\n var e;\n const { values: r, _$litType$: s } = t, i = typeof s == \"number\" ? this._$AC(t) : (s.el === void 0 && (s.el = Ft.createElement(zr(s.h, s.h[0]), this.options)), s);\n if (((e = this._$AH) === null || e === void 0 ? void 0 : e._$AD) === i)\n this._$AH.v(r);\n else {\n const o = new vo(i, this), a = o.u(this.options);\n o.v(r), this.$(a), this._$AH = o;\n }\n }\n _$AC(t) {\n let e = Zn.get(t.strings);\n return e === void 0 && Zn.set(t.strings, e = new Ft(t)), e;\n }\n T(t) {\n Vr(this._$AH) || (this._$AH = [], this._$AR());\n const e = this._$AH;\n let r, s = 0;\n for (const i of t)\n s === e.length ? e.push(r = new Kt(this.k(zt()), this.k(zt()), this, this.options)) : r = e[s], r._$AI(i), s++;\n s < e.length && (this._$AR(r && r._$AB.nextSibling, s), e.length = s);\n }\n _$AR(t = this._$AA.nextSibling, e) {\n var r;\n for ((r = this._$AP) === null || r === void 0 || r.call(this, !1, !0, e); t && t !== this._$AB; ) {\n const s = t.nextSibling;\n t.remove(), t = s;\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 _e {\n constructor(t, e, r, s, i) {\n this.type = 1, this._$AH = j, this._$AN = void 0, this.element = t, this.name = e, this._$AM = s, this.options = i, r.length > 2 || r[0] !== \"\" || r[1] !== \"\" ? (this._$AH = Array(r.length - 1).fill(new String()), this.strings = r) : this._$AH = j;\n }\n get tagName() {\n return this.element.tagName;\n }\n get _$AU() {\n return this._$AM._$AU;\n }\n _$AI(t, e = this, r, s) {\n const i = this.strings;\n let o = !1;\n if (i === void 0)\n t = kt(this, t, e, 0), o = !Wt(t) || t !== this._$AH && t !== Et, o && (this._$AH = t);\n else {\n const a = t;\n let c, h;\n for (t = i[0], c = 0; c < i.length - 1; c++)\n h = kt(this, a[r + c], e, c), h === Et && (h = this._$AH[c]), o || (o = !Wt(h) || h !== this._$AH[c]), h === j ? t = j : t !== j && (t += (h != null ? h : \"\") + i[c + 1]), this._$AH[c] = h;\n }\n o && !s && this.j(t);\n }\n j(t) {\n t === j ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t != null ? t : \"\");\n }\n}\nclass yo extends _e {\n constructor() {\n super(...arguments), this.type = 3;\n }\n j(t) {\n this.element[this.name] = t === j ? void 0 : t;\n }\n}\nconst bo = St ? St.emptyScript : \"\";\nclass wo extends _e {\n constructor() {\n super(...arguments), this.type = 4;\n }\n j(t) {\n t && t !== j ? this.element.setAttribute(this.name, bo) : this.element.removeAttribute(this.name);\n }\n}\nclass $o extends _e {\n constructor(t, e, r, s, i) {\n super(t, e, r, s, i), this.type = 5;\n }\n _$AI(t, e = this) {\n var r;\n if ((t = (r = kt(this, t, e, 0)) !== null && r !== void 0 ? r : j) === Et)\n return;\n const s = this._$AH, i = t === j && s !== j || t.capture !== s.capture || t.once !== s.once || t.passive !== s.passive, o = t !== j && (s === j || i);\n i && this.element.removeEventListener(this.name, this, s), o && this.element.addEventListener(this.name, this, t), this._$AH = t;\n }\n handleEvent(t) {\n var e, r;\n typeof this._$AH == \"function\" ? this._$AH.call((r = (e = this.options) === null || e === void 0 ? void 0 : e.host) !== null && r !== void 0 ? r : this.element, t) : this._$AH.handleEvent(t);\n }\n}\nclass Oo {\n constructor(t, e, r) {\n this.element = t, this.type = 6, this._$AN = void 0, this._$AM = e, this.options = r;\n }\n get _$AU() {\n return this._$AM._$AU;\n }\n _$AI(t) {\n kt(this, t);\n }\n}\nconst Qn = ve.litHtmlPolyfillSupport;\nQn == null || Qn(Ft, Kt), ((Ue = ve.litHtmlVersions) !== null && Ue !== void 0 ? Ue : ve.litHtmlVersions = []).push(\"2.8.0\");\nconst Eo = (n, t, e) => {\n var r, s;\n const i = (r = e == null ? void 0 : e.renderBefore) !== null && r !== void 0 ? r : t;\n let o = i._$litPart$;\n if (o === void 0) {\n const a = (s = e == null ? void 0 : e.renderBefore) !== null && s !== void 0 ? s : null;\n i._$litPart$ = o = new Kt(t.insertBefore(zt(), a), a, void 0, e != null ? e : {});\n }\n return o._$AI(n), o;\n};\n/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\nvar Be, ze;\nlet Vt = class extends Pt {\n constructor() {\n super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;\n }\n createRenderRoot() {\n var t, e;\n const r = super.createRenderRoot();\n return (t = (e = this.renderOptions).renderBefore) !== null && t !== void 0 || (e.renderBefore = r.firstChild), r;\n }\n update(t) {\n const e = this.render();\n this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do = Eo(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 Et;\n }\n};\nVt.finalized = !0, Vt._$litElement$ = !0, (Be = globalThis.litElementHydrateSupport) === null || Be === void 0 || Be.call(globalThis, { LitElement: Vt });\nconst Xn = globalThis.litElementPolyfillSupport;\nXn == null || Xn({ LitElement: Vt });\n((ze = globalThis.litElementVersions) !== null && ze !== void 0 ? ze : globalThis.litElementVersions = []).push(\"3.3.3\");\n/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\nconst xo = (n, t) => t.kind === \"method\" && t.descriptor && !(\"value\" in t.descriptor) ? Mt(tt({}, t), { finisher(e) {\n e.createProperty(t.key, n);\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, n);\n} }, _o = (n, t, e) => {\n t.constructor.createProperty(e, n);\n};\nfunction ye(n) {\n return (t, e) => e !== void 0 ? _o(n, t, e) : xo(n, t);\n}\n/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\nfunction lt(n) {\n return ye(Mt(tt({}, n), { state: !0 }));\n}\n/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\nconst Ao = ({ finisher: n, descriptor: t }) => (e, r) => {\n var s;\n if (r === void 0) {\n const i = (s = e.originalKey) !== null && s !== void 0 ? s : e.key, o = t != null ? { kind: \"method\", placement: \"prototype\", key: i, descriptor: t(e.key) } : Mt(tt({}, e), { key: i });\n return n != null && (o.finisher = function(a) {\n n(a, i);\n }), o;\n }\n {\n const i = e.constructor;\n t !== void 0 && Object.defineProperty(e, r, t(r)), n == null || n(i, r);\n }\n};\n/**\n * @license\n * Copyright 2021 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\nvar We;\n((We = window.HTMLSlotElement) === null || We === void 0 ? void 0 : We.prototype.assignedElements) != null;\n/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\nconst Po = { ATTRIBUTE: 1, CHILD: 2, PROPERTY: 3, BOOLEAN_ATTRIBUTE: 4, EVENT: 5, ELEMENT: 6 }, Co = (n) => (...t) => ({ _$litDirective$: n, values: t });\nlet So = class {\n constructor(t) {\n }\n get _$AU() {\n return this._$AM._$AU;\n }\n _$AT(t, e, r) {\n this._$Ct = t, this._$AM = e, this._$Ci = r;\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 ko = Co(class extends So {\n constructor(n) {\n var t;\n if (super(n), n.type !== Po.ATTRIBUTE || n.name !== \"class\" || ((t = n.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(n) {\n return \" \" + Object.keys(n).filter((t) => n[t]).join(\" \") + \" \";\n }\n update(n, [t]) {\n var e, r;\n if (this.it === void 0) {\n this.it = /* @__PURE__ */ new Set(), n.strings !== void 0 && (this.nt = new Set(n.strings.join(\" \").split(/\\s/).filter((i) => i !== \"\")));\n for (const i in t)\n t[i] && !(!((e = this.nt) === null || e === void 0) && e.has(i)) && this.it.add(i);\n return this.render(t);\n }\n const s = n.element.classList;\n this.it.forEach((i) => {\n i in t || (s.remove(i), this.it.delete(i));\n });\n for (const i in t) {\n const o = !!t[i];\n o === this.it.has(i) || !((r = this.nt) === null || r === void 0) && r.has(i) || (o ? (s.add(i), this.it.add(i)) : (s.remove(i), this.it.delete(i)));\n }\n return Et;\n }\n});\nvar No = Object.defineProperty, Lo = Object.getOwnPropertyDescriptor, Ae = (n, t, e, r) => {\n for (var s = r > 1 ? void 0 : r ? Lo(t, e) : t, i = n.length - 1, o; i >= 0; i--)\n (o = n[i]) && (s = (r ? o(t, e, s) : o(s)) || s);\n return r && s && No(t, e, s), s;\n};\nclass dt extends Vt {\n constructor() {\n super(...arguments), this.active = !1, this.loaded = !1;\n }\n connectedCallback() {\n return B(this, null, function* () {\n pn(dt.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 B(this, null, function* () {\n const e = (r) => B(this, null, function* () {\n return yield import(\"./index-9688347a.js\").then((i) => i[r]);\n });\n if (t) {\n const { type: r, content: s } = t;\n switch (r) {\n case \"Telia\": {\n const i = yield e(s);\n return i ? Xt`<telia-icon\n class=\"trigger-icon\"\n svg=${i.svg}\n size=\"lg\"\n ></telia-icon>` : j;\n }\n case \"FontAwesome\":\n return Xt`<i class=\"trigger-fa-icon fa fa-${s}\"></i>`;\n case \"Uri\":\n return Xt`<i\n class=\"trigger-custom-icon\"\n style=\"background: url(${s}) no-repeat center center;background-size: contain;\"\n ></i>`;\n default:\n return j;\n }\n }\n });\n }\n render() {\n return Xt`<button\n class=${ko({\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}\ndt.styles = [\n Ir`\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];\nAe([\n ye({ attribute: !1 })\n], dt.prototype, \"symbol\", 2);\nAe([\n lt()\n], dt.prototype, \"active\", 2);\nAe([\n lt()\n], dt.prototype, \"loaded\", 2);\nAe([\n lt()\n], dt.prototype, \"icon\", 2);\nvar wt = /* @__PURE__ */ ((n) => (n.Inline = \"inline\", n.Link = \"link\", n.Badge = \"badge\", n.Unsupported = \"unsupported\", n))(wt || {});\nconst Mo = (n, t) => n && t ? \"both\" : n ? \"widgetDOM\" : t ? \"triggerDOM\" : \"none\", Wr = (n) => n ? typeof n == \"boolean\" && n ? \"link\" : typeof n == \"object\" && !Array.isArray(n) ? \"badge\" : \"unsupported\" : \"inline\", Do = (n, t, e, r, s = !1) => B(void 0, null, function* () {\n var h, l;\n const i = Mo(\n t,\n e\n ), o = Wr(r), 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 (i) {\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 u = document.body.appendChild(\n document.createElement(\"a\")\n );\n o === \"link\" && (u.innerText = n), c.triggerDOMElement = u;\n }\n break;\n }\n case \"triggerDOM\": {\n const u = document.createElement(\"div\");\n c.widgetDOMElement = u, o === \"inline\" ? (u.id = (e == null ? void 0 : e.id) || \"\", s ? (u.style.display = \"none\", (h = e == null ? void 0 : e.parentNode) == null || h.appendChild(u), c.callback = () => {\n var d;\n (d = e == null ? void 0 : e.parentNode) == null || d.replaceChild(\n u,\n e\n ), u.style.display = (e == null ? void 0 : e.style.display) || \"block\";\n }) : (l = e == null ? void 0 : e.parentNode) == null || l.replaceChild(\n u,\n e\n ), c.cachedOriginals.widgetDOMElement = e, c.cachedOriginals.triggerDOMElement = void 0) : (c.widgetDOMElement = document.body.appendChild(u), c.triggerDOMElement = e);\n break;\n }\n case \"none\": {\n const u = document.body.appendChild(\n document.createElement(\"div\")\n );\n if (c.widgetDOMElement = u, o !== \"inline\") {\n customElements.get(\"ace-widget-trigger\") || customElements.define(\"ace-widget-trigger\", dt);\n const d = document.createElement(\"ace-widget-trigger\");\n d.symbol = r.symbol, document.body.appendChild(d), console.log(\"Created trigger\"), c.triggerDOMElement = d;\n }\n break;\n }\n }\n return c;\n}), jo = \"modals\";\nclass Ro {\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 r = this.container.get(\"$widget\");\n this.options.widgetDOMElement.classList.add(\"ace-widget\"), this.options.widgetDOMElement.classList.add(`ace-widget_${r.name}`);\n const s = t.get(\"widgetDOMElements\") || [];\n t.register(\"widgetDOMElements\", [\n ...s,\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, r = this.container.get(\"$widget\");\n return t.getAttribute(\"data-rendered\") === \"true\" ? Promise.resolve() : (e && this.options.triggerType === wt.Badge && co(e), import(\"./render-2f9819b1.js\").then((s) => s.default(this.container, t)).then(() => {\n if (t.setAttribute(\"data-rendered\", \"true\"), e && this.options.triggerType === wt.Badge) {\n const i = this.options.triggerOptions.openTooltip;\n Rr(e, i);\n }\n us(this.container, t);\n const s = this.container.get(\"$environment\").widgets.all();\n Z(\n this.container,\n jo,\n P.Session\n ).then((i) => {\n i && i.forEach((o) => {\n s.find(\n (a) => a.name === o.name && a.state === \"activated\"\n ) && r.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: r } = this.container.get(\"$widget\"), { label: s, symbol: i, ariaLabel: o, closedTooltip: a, openTooltip: c } = t, h = { closedTooltip: a, openTooltip: c };\n this.options.triggerOptions = h;\n const l = oo(e, {\n label: s,\n symbol: i,\n ariaLabel: o,\n widgetName: r,\n tooltip: a\n });\n this.unsubscribe.push(l);\n }\n dispose() {\n return B(this, null, function* () {\n var r, s, i, o;\n const { triggerDOMElement: t, widgetDOMElement: e } = this.options;\n this.options.cachedOriginals.widgetDOMElement && e && ((r = e.parentNode) == null || r.replaceChild(\n this.options.cachedOriginals.widgetDOMElement,\n e\n )), this.options.cachedOriginals.triggerDOMElement && t && ((s = t.parentNode) == null || s.replaceChild(\n this.options.cachedOriginals.triggerDOMElement,\n t\n )), this.unsubscribe.forEach((a) => {\n a();\n }), (i = e.parentNode) == null || i.removeChild(e), (o = t == null ? void 0 : t.parentNode) == null || o.removeChild(t);\n });\n }\n}\nconst te = \"changesets\", To = (n) => {\n const t = { tags: n.tags };\n return n.context && typeof n.context != \"function\" && (t.context = n.context), n.properties && typeof n.properties != \"function\" && (t.properties = n.properties), n.layout && typeof n.layout != \"function\" && (t.layout = n.layout), t;\n};\nclass hn {\n constructor(t, e) {\n this.container = t, this.storageWriter = e;\n }\n static create(t) {\n return rt(\n t,\n te,\n C.Necessary,\n {\n medium: P.Local\n }\n ).then(\n (e) => new hn(t, e)\n );\n }\n write(t, e, r, s) {\n return X(this)(() => Z(\n this.container,\n te,\n P.Local\n ).then((i = {}) => {\n const { keys: o = [], items: a = {} } = i, c = o.indexOf(t);\n return c > -1 && o.splice(c, 1), o.push(t), a[t] = {\n options: s,\n attributes: To(r),\n rules: e.rules\n }, this.storageWriter({ keys: o, items: a });\n }));\n }\n remove(t) {\n return X(this)(() => Z(\n this.container,\n te,\n P.Local\n ).then((e = {}) => {\n const { keys: r = [], items: s = {} } = e, i = r.indexOf(t);\n if (i > -1)\n return r.splice(i, 1), delete s[t], this.storageWriter(e);\n }));\n }\n load(t) {\n return X(this)(() => Z(\n this.container,\n te,\n P.Local\n ).then((e = {}) => {\n const { keys: r = [], items: s = {} } = e;\n r.forEach((i) => {\n const o = s[i];\n if (o) {\n const { rules: a, attributes: c, options: h } = o;\n t.write({\n attributes: c,\n options: h,\n target: new Nt(t, a)\n });\n }\n });\n }));\n }\n}\nconst Io = (n) => {\n const { container: t } = n;\n return hn.create(t).then(\n (e) => {\n const r = t.get(\"$settings\"), s = { localStorage: e }, i = new Jt(n, s), o = ar(i, r);\n return n.events.subscribe(\n \"widget:state-change\",\n (a, c) => {\n c.state === nr.Deactivating && o();\n }\n ), i;\n }\n );\n}, Ho = (n) => Promise.resolve().then(() => Xi).then(\n ({ RoutingService: t, HistoryMode: e }) => n.get(\"settings\").then((r) => {\n const {\n routing: {\n initialPath: s = \"/\",\n mode: i = e.scopedHash,\n basePath: o\n },\n views: a\n } = r;\n return new t(n, {\n initialPath: s,\n mode: i,\n routes: Object.keys(a).map((h) => ({\n name: h,\n path: a[h].path\n })),\n basePath: o\n });\n })\n), Uo = (n) => Promise.resolve().then(() => ui).then(({ StorageProvider: t }) => new t()), Vo = (n) => Promise.resolve().then(() => en).then(({ ActionResolver: t }) => new t(n)), Bo = (n) => Promise.resolve().then(() => en).then(({ ComponentResolver: t }) => new t(n)), zo = (n) => Promise.resolve().then(() => en).then(() => Io(n.get(\"$widget\"))), Fe = \"$settings\", ee = \"open\", tr = \"activeStickyWidget\";\nclass Ca extends ns {\n constructor(t) {\n super(t), this.outlets = /* @__PURE__ */ new Map(), this.activated = void 0, this.subs = [], this.handleBootstrapping = (e) => {\n const r = {\n triggerDOMElement: e.sourceDOMElement,\n withRenderState: \"storage\"\n /* Storage */\n };\n this.container.get(\"settings\").then((s) => {\n const { activate: i } = s;\n (typeof i == \"undefined\" || i === null || i === !0) && (this.activated = (this.activated || this.widget.activate()).then(\n () => this.attach(r)\n ));\n });\n }, this.container.registerAsync(\n \"storage\",\n () => Uo(this.container)\n ), this.container.registerFactory(\"settings\", () => Z(\n this.container,\n Fe,\n P.Local\n ).then((e = {}) => tt(tt({}, this.container.get(\"$settings\")), e))), so(this, \"load\", this.handleBootstrapping), this.container.registerAsync(\n \"componentResolver\",\n () => Bo(this.container)\n ), this.container.registerAsync(\n \"router\",\n () => Ho(this.container)\n ), this.container.registerAsync(\n \"actionResolver\",\n () => Vo(this.container)\n ), this.container.register(\"matchMedia\", window.matchMedia), this.container.registerAsync(\n \"components\",\n () => zo(this.container)\n );\n }\n initialize() {\n const t = this.container.getManyAsync(\n \"actionResolver\",\n \"router\",\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: r, router: s, components: i }, o]) => {\n var h;\n r.subscribe(\n this.widget.name,\n (l, u, d) => this.onAction(u, d)\n );\n const a = (l) => {\n i.nodes.query({ type: \"view\" }).forEach((u) => {\n i.setSwitch(u, l);\n });\n }, c = ((h = s.getInitialRoute()) == null ? void 0 : h.name) || \"index\";\n return a(c), this.events.subscribe(\"widget:data-loaded\", (l, { element: u }) => {\n this.widget.container.get(\"seoConfiguration\") && this.events.dispatch(\"widget:preloaded-replaced\", {\n element: u\n });\n }), this.events.subscribe(\n \"router:change\",\n (l, { previous: u = { routeData: {} }, next: d = { routeData: {} } }) => {\n const { routeData: p } = u, { routeData: b } = d, v = Object.keys(o.views).reduce(\n (g, E) => typeof o.views[E].path == \"undefined\" ? E : g,\n \"\"\n );\n !b.name && v ? a(v) : a(b.name), $t(p && p.params), $t(b && b.params), this.container.getAsync(\"actionResolver\").then((g) => {\n g.action(this.widget.name, \"routeChange\", {\n next: b,\n previous: p\n });\n });\n }\n ), s.initialize();\n }\n );\n }\n attach(t = {}) {\n return this.container.get(\"settings\").then((r) => B(this, [r], function* ({ trigger: e }) {\n var p, b;\n const {\n widgetDOMElement: s,\n key: i = qt(),\n triggerDOMElement: o,\n withRenderState: a\n } = t, h = Wr(e) === wt.Inline && ((o == null ? void 0 : o.childElementCount) || 0) > 0, l = yield Do(\n this.widget.name,\n s,\n o,\n e,\n h\n );\n this.outlets.size < 1 && !a && this.setRenderState(\"unset\");\n const u = () => {\n const v = () => g.querySelectorAll(\"[data-loading=true]\").length === 0, [g] = this.widget.container.get(\"widgetDOMElements\"), E = (H, k) => {\n v() && (l.callback && l.callback(), k.disconnect());\n }, R = {\n attributes: !0,\n subtree: !0,\n childList: !0\n };\n v() && l.callback && l.callback(), new MutationObserver(E).observe(g, R);\n };\n h && this.widget.container.getAsync(\"dataClient\").then(({ events: v }) => {\n v.subscribe(\n \"data-client:fetched\",\n (g, E) => {\n E.unresolvedQueries === 0 && u();\n }\n );\n });\n const d = this.getOrCreateViewOutlet(i, l);\n if (this.outlets.set(i, d), this.widget.events.dispatch(\"widget:attached\", {}, { bubbles: !0 }), l.triggerType === wt.Badge && e && ((p = l.triggerDOMElement) == null || p.setAttribute(\n \"aria-expanded\",\n \"false\"\n ), d == null || d.renderBadge(e)), l.triggerType !== wt.Inline && ((b = l.triggerDOMElement) == null || b.addEventListener(\n \"click\",\n (v) => {\n v.preventDefault(), this.container.get(\"settings\").then(({ trigger: g }) => {\n d.render().then(() => this.renderState()).then((E) => g && g.action && g.action === \"hide\" ? E === J.open ? this.hide() : this.open() : E === J.open ? this.close() : this.open());\n });\n }\n )), this.outlets.size > 1)\n return this.renderState().then((v) => {\n this.triggerStateIfApplicable(v);\n });\n if (a)\n return a === \"storage\" ? this.renderState().then((v) => {\n if (l.triggerType === wt.Inline) {\n this.triggerStateIfApplicable(\"open\");\n return;\n }\n this.triggerStateIfApplicable(v);\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 return this.container.getAsync(\"router\").then((e) => {\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(), e.start();\n break;\n default:\n return;\n }\n });\n }\n getOrCreateViewOutlet(t, e) {\n return this.outlets.has(t) ? this.outlets.get(t) : new Ro(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 = Mt(tt({}, 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 rt(\n this.container,\n Fe,\n C.Necessary,\n {\n medium: P.Local\n }\n )\n ]).then(([e, r]) => Promise.resolve(t(e)).then((s) => r(s).then(() => {\n const i = tt(tt({}, e), s);\n return this.widget.events.dispatch(\"widget:settings-updated\", i), i;\n })));\n }\n clearSettings() {\n return rt(\n this.container,\n Fe,\n C.Necessary,\n { medium: P.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((r) => {\n r.action(this.widget.name, t, e);\n });\n }\n renderState() {\n if (on(this.container))\n return Promise.resolve(J.open);\n const t = () => Z(\n this.container,\n ee,\n P.Session\n ).then((r = J.closed) => r), e = () => Z(\n this.container,\n ee,\n P.Session\n ).then((r = J.closed) => r);\n return this.container.getAsync(\"router\").then((r) => r.isSticky() ? e().then((s) => s === J.open ? s : t()) : t());\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 r = t === \"open\" ? J.open : t === \"close\" ? J.closed : J.hidden;\n return this.setRenderState(r).then(() => {\n this.setTriggerState(r === J.open), r !== J.hidden ? r === J.open ? this.onOpen() : this.onClose() : this.outlets.forEach(\n (s) => {\n var i;\n return (i = s.options.triggerDOMElement) == null ? void 0 : i.setAttribute(\n \"aria-expanded\",\n \"false\"\n );\n }\n );\n });\n }\n }\n setRenderState(t) {\n const { invoke: e, events: r } = this.container.get(\"$widget\");\n return Promise.all([\n rt(\n this.container,\n ee,\n C.Necessary,\n {\n medium: P.Session\n }\n ),\n rt(\n this.container,\n ee,\n C.Necessary,\n {\n medium: P.Local,\n duration: { minutes: 5 }\n }\n ),\n this.container.getAsync(\"router\"),\n e(\"renderState\")\n ]).then(\n ([s, i, o, a]) => {\n t === \"unset\" || !t ? (i(), s()) : (o.isSticky() && i(t), s(t)), r.dispatch(\"widget:render-state-changed\", {\n previous: a,\n next: t\n });\n }\n );\n }\n onOpen() {\n return this.container.getAsync(\"router\").then((t) => (this.outlets.forEach(\n (e) => {\n var r;\n return (r = e.options.triggerDOMElement) == null ? void 0 : r.setAttribute(\n \"aria-expanded\",\n \"true\"\n );\n }\n ), t.start()));\n }\n onClose() {\n const t = this.container.getManyAsync(\n \"router\",\n \"components\"\n );\n return (() => this.container.get(\"settings\").then((r) => {\n const { activate: s } = this.container.get(\"$settings\");\n return r.activate !== s ? this.setSettings(() => Promise.resolve({ activate: s })) : Promise.resolve();\n }))().then(() => t).then(\n ({\n router: r,\n components: s\n }) => {\n const i = s.nodes.visible;\n return this.outlets.forEach(\n (o) => {\n var a;\n return (a = o.options.triggerDOMElement) == null ? void 0 : a.setAttribute(\n \"aria-expanded\",\n \"false\"\n );\n }\n ), i.filter(\n (o) => o.attributes.properties.animation && o.attributes.properties.animation !== \"none\"\n ).length ? new Promise((o) => {\n setTimeout(() => {\n o(r);\n }, 200);\n }) : Promise.resolve(r);\n }\n ).then((r) => r.stop());\n }\n setTriggerState(t) {\n this.outlets.forEach((e) => {\n const {\n options: { triggerDOMElement: r, triggerOptions: s }\n } = e, { openTooltip: i, closedTooltip: o } = s || {};\n r && (t ? Rr(r, i) : ao(r, o));\n });\n }\n deactivate() {\n this.subs.forEach((e) => e());\n const t = [];\n return this.outlets.forEach((e) => t.push(e.dispose())), Z(\n this.container,\n tr,\n P.Local\n ).then((e) => e === this.widget.name ? rt(\n this.container,\n tr,\n C.Necessary,\n {\n medium: P.Local,\n scope: Lt.Implementation\n }\n ).then((r) => r()).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 Fr = class extends Event {\n constructor(t, e, r) {\n super(\"context-request\", { bubbles: !0, composed: !0 }), this.context = t, this.callback = e, this.subscribe = r != null && r;\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 Wo = class {\n constructor(t, e, r, s) {\n var i;\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 = (i = o.subscribe) !== null && i !== void 0 && i;\n } else\n this.context = e, this.callback = r, this.subscribe = s != null && s;\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 Fr(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 Fo {\n constructor(t) {\n this.subscriptions = /* @__PURE__ */ new Map(), this.updateObservers = () => {\n for (const [e, { disposer: r }] of this.subscriptions)\n e(this.o, r);\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 r = e || !Object.is(t, this.o);\n this.o = t, r && this.updateObservers();\n }\n addCallback(t, e, r) {\n if (!r)\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: s } = this.subscriptions.get(t);\n t(this.value, s);\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 qo extends Event {\n constructor(t) {\n super(\"context-provider\", { bubbles: !0, composed: !0 }), this.context = t;\n }\n}\nclass jt extends Fo {\n constructor(t, e, r) {\n super(e.context !== void 0 ? e.initialValue : r), this.onContextRequest = (s) => {\n const i = s.composedPath()[0];\n s.context === this.context && i !== this.host && (s.stopPropagation(), this.addCallback(s.callback, i, s.subscribe));\n }, this.onProviderRequest = (s) => {\n const i = s.composedPath()[0];\n if (s.context === this.context && i !== this.host) {\n for (const [o, { consumerHost: a }] of this.subscriptions)\n a.dispatchEvent(new Fr(this.context, o, !0));\n s.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 qo(this.context));\n }\n}\n/**\n * @license\n * Copyright 2022 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\nfunction Jo({ context: n, subscribe: t }) {\n return Ao({ finisher: (e, r) => {\n e.addInitializer((s) => {\n new Wo(s, { context: n, callback: (i) => {\n s[r] = i;\n }, subscribe: t });\n });\n } });\n}\nconst Ko = \"children\", Go = \"descriptor\", Yo = \"container\", Zo = \"context\", Qo = \"layout\", Xo = \"properties\";\nclass ta {\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 B(this, null, function* () {\n if (!this._container || !this._descriptor)\n return;\n const r = yield Jt.getInstance(\n this._container\n ), s = new Nt(r).withId(\n this._descriptor.id\n );\n yield r.actions(\n s,\n this._descriptor.type || qt()\n ).dispatch(t, e);\n });\n }\n}\nconst ea = (n, t) => B(void 0, null, function* () {\n const e = n.properties().provider;\n let r = {}, s = \"\";\n Array.isArray(e) ? (s = e[0], r = e[1]) : s = e || \"\";\n const i = yield t.getAsync(s);\n if (!i)\n throw new Error(\"No provider defined in ListComponent\");\n return i.applyComponentNodeSettings(n.node.id, r), { provider: i, settings: r };\n}), Na = (n, t) => B(void 0, null, function* () {\n const { provider: e, settings: r = {} } = yield ea(n, t);\n return {\n addResource: (s, i) => e.addResource(s, i),\n getData: (s, i) => e.getData(s, i, r)\n };\n});\nclass na {\n constructor(t) {\n this.container = t, this.resources = /* @__PURE__ */ new Map(), this.nodeConfiguration = /* @__PURE__ */ new Map();\n }\n getData(t, e, r) {\n return B(this, null, function* () {\n const s = this.resources.get(t);\n if (!s)\n throw new Error(`Unable to get EntityProvider for \"${t}\"`);\n return yield s.query(e, r);\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 er = (n) => ({\n title: n.Title,\n id: n.Id.toString()\n});\nclass ra extends na {\n constructor(t) {\n super(t), this.addResource(\"item\", {\n query: (e, r) => B(this, null, function* () {\n const s = e.itemId, i = \"78aacc09-ae6f-5485-5ca3-9dacebb95825\", o = t.get(\"$widget\").name, a = r.projection || \"\", h = yield (yield fetch(\n `${a}/guides/${s}?client=${i}&funnel=${o}&site=%2F%2Fdemo.humany.cc%2Fadmin%2Finterfaces&phrase=&connectionId=&p.LastGuideId=2857`\n )).json();\n return h ? er(h) : null;\n })\n }), this.addResource(\"items\", {\n query: (e, r) => B(this, null, function* () {\n const s = \"\", i = t.get(\"$widget\").name, o = r.projection || \"\", u = yield (yield fetch(\n `${o}/guides?client=${s}&funnel=${i}&site=&phrase=&skip=0&take=10&sorting.type=popularity&sorting.direction=descending`\n )).json();\n return {\n items: (u.Matches || []).map((d) => er(d)),\n totalItems: (u == null ? void 0 : u.TotalMatches) || 0\n };\n })\n });\n }\n}\nconst La = (n) => B(void 0, null, function* () {\n n.registerAsync(\"guideProvider\", () => new ra(n));\n}), Ma = (n, t, e, r, s) => n.getAsync(\"componentResolver\").then((i) => (i.registerComponent(t, e), cr(n, t, r || (() => {\n}), t, s))), W = (n, t, e) => {\n n && e.style.setProperty(t, n);\n}, sa = (n, t) => {\n var e, r, s, i, o, a, c, h, l, u, d;\n W((e = n.colors) == null ? void 0 : e.primary, \"--primary-color\", t), W((r = n.colors) == null ? void 0 : r.secondary, \"--secondary-color\", t), W((s = n.colors) == null ? void 0 : s.text, \"--text-color\", t), W((i = n.colors) == null ? void 0 : i.link, \"--link-color\", t), W((o = n.colors) == null ? void 0 : o.gray, \"--gray-color\", t), W((a = n.colors) == null ? void 0 : a.grayDark, \"--gray-dark-color\", t), W((c = n.spacing) == null ? void 0 : c.xs, \"--spacing-xs\", t), W((h = n.spacing) == null ? void 0 : h.sm, \"--spacing-sm\", t), W((l = n.spacing) == null ? void 0 : l.md, \"--spacing-md\", t), W((u = n.spacing) == null ? void 0 : u.lg, \"--spacing-lg\", t), W((d = n.spacing) == null ? void 0 : d.xl, \"--spacing-xl\", t), W(n.boxShadow, \"--box-shadow\", t), W(n.borderRadius, \"--border-radius\", t), W(n.borderRadiusSm, \"--border-radius-sm\", t), W(n.fontFamily, \"--font-family\", t);\n}, ia = (n) => {\n const t = {};\n return Object.keys(n).forEach((e) => {\n e.indexOf(\"css-\") > -1 && (t[e] = n[e]);\n }), t;\n}, oa = (n, t) => {\n const e = ia(t);\n Object.entries(e).forEach(([r, s]) => {\n n.style.setProperty(r.replace(\"css-\", \"\"), s);\n });\n};\nvar aa = Object.defineProperty, ca = Object.getOwnPropertyDescriptor, gt = (n, t, e, r) => {\n for (var s = r > 1 ? void 0 : r ? ca(t, e) : t, i = n.length - 1, o; i >= 0; i--)\n (o = n[i]) && (s = (r ? o(t, e, s) : o(s)) || s);\n return r && s && aa(t, e, s), s;\n};\nconst Da = (n) => {\n var e;\n class t extends n {\n constructor() {\n super(...arguments), this.entry = \"\", this._descriptorProvider = new jt(\n this,\n Go,\n void 0\n ), this._childrenProvider = new jt(this, Ko, []), this._propertiesProvider = new jt(this, Xo, {}), this._contextProvider = new jt(this, Zo, {}), this._layoutProvider = new jt(this, Qo, {}), this.actions = new ta(this), this.context = {}, this.layout = {}, this.properties = {};\n }\n connectedCallback() {\n super.connectedCallback(), this.container && (this.actions.setContainer(this.container), Jt.getInstance(this.container).then(\n (s) => B(this, null, function* () {\n var o;\n const i = s.nodes.get(this.entry);\n if (i) {\n this._propertyChangeListener = s.events.subscribe(\n \"components:properties-changed\",\n (u, d) => {\n i.id === d.node.id && this._setProperties(d.node.attributes.properties);\n }\n ), this._contextChangeListener = s.events.subscribe(\n \"components:context-changed\",\n (u, d) => {\n i.id === d.node.id && this._setContext(d.node.attributes.context);\n }\n ), this._layoutChangeListener = s.events.subscribe(\n \"components:layout-changed\",\n (u, d) => {\n i.id === d.node.id && this._setLayout(d.node.attributes.layout);\n }\n );\n const a = \"default\";\n this._unmountNode = i.mount(this.container), this._setDescriptor(Je(i, a)), this._setProperties(i.attributes.properties), this._setContext(i.attributes.context), this._setLayout(this.layout);\n const c = i.getChildren(a).map((u) => Je(u));\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((u) => {\n this.component = u.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 sa(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 ), oa(this.renderRoot.host, this.properties);\n }\n _setProperties(s) {\n this._propertiesProvider.setValue(s), this.properties = s;\n }\n _setContext(s) {\n this._contextProvider.setValue(s), this.context = s;\n }\n _setLayout(s) {\n this._layoutProvider.setValue(s), this.layout = s;\n }\n _setDescriptor(s) {\n this.descriptor = s, this._descriptorProvider.setValue(s), this.actions.setDescriptor(s);\n }\n }\n return t.styles = [\n (e = n.styles) != null ? e : [],\n Ir`\n :host {\n --font-family: TeliaSans, Helvetica, Arial, Lucida Grande, sans-serif;\n --spacing-xs: 0.2rem;\n --spacing-sm: 0.5rem;\n --spacing-md: 1rem;\n --spacing-lg: 1.2rem;\n --spacing-xl: 1.8rem;\n\n --primary-color: #29003e;\n --secondary-color: #00558f;\n --text-color: #222222;\n --link-color: #990ae3;\n --gray-color: #efefef;\n --gray-dark-color: #a6a6a6;\n\n --box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;\n --border-radius: 1rem;\n --border-radius-sm: 0.3rem;\n\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 ], gt([\n Jo({ context: Yo }),\n ye({ attribute: !1 })\n ], t.prototype, \"container\", 2), gt([\n ye()\n ], t.prototype, \"entry\", 2), gt([\n lt()\n ], t.prototype, \"descriptor\", 2), gt([\n lt()\n ], t.prototype, \"component\", 2), gt([\n lt()\n ], t.prototype, \"context\", 2), gt([\n lt()\n ], t.prototype, \"layout\", 2), gt([\n lt()\n ], t.prototype, \"properties\", 2), t;\n};\nexport {\n j as A,\n na as D,\n La as G,\n Et as T,\n Da as W,\n jt as a,\n Ir as b,\n Yo as c,\n lt as d,\n Co as e,\n sa as f,\n oa as g,\n Ca as h,\n So as i,\n Ko as j,\n Go as k,\n Zo as l,\n J as m,\n ye as n,\n Qo as o,\n Jt as p,\n Xo as q,\n ta as r,\n Vt as s,\n Po as t,\n Na as u,\n Ma as v,\n Xt as x\n};\n//# sourceMappingURL=index-212dab55.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":["qr","Jr","Kr","un","Gr","Yr","Zr","Qr","dn","n","t","e","tt","Mt","pn","B","s","c","a","Pe","Xr","he","mt","ts","gn","es","r","i","o","Xe","u","p","be","Rt","I","rr","as","mn","cs","Gt","X","ot","qt","ps","gs","fs","yn","ms","vs","bn","ys","bs","sr","Nt","$s","tn","we","Os","h","l","d","b","v","qe","ir","$e","ne","or","Es","xs","_s","As","Ce","et","Ps","Cs","g","E","R","F","H","k","U","Jt","cr","Ys","Cn","Zs","Qs","Sn","xt","P","Lt","C","rt","kn","sn","ti","rn","si","oi","Z","ri","de","ii","Ct","ke","gr","Xs","Ee","Oe","Ne","Le","nn","fr","ue","Ke","ei","re","ni","Me","ci","pe","yt","hi","Nn","li","mr","wr","$r","mi","vi","yi","Qt","De","wi","$i","Oi","Dn","ie","Ei","xi","Pi","Ar","Si","Te","to","Bt","ut","eo","Hn","no","jr","ce","an","cn","Bn","Tr","ho","Ir","lo","zn","Ie","me","Wn","uo","Fn","Ye","Hr","He","Ze","Pt","Ue","ve","St","qn","Qe","ht","Ur","po","Ot","zt","Wt","Vr","go","Ve","Dt","Jn","Kn","pt","Gn","Yn","Br","fo","Xt","Et","j","Zn","bt","zr","mo","Ft","yo","wo","$o","_e","kt","vo","Kt","Oo","bo","Qn","Eo","Be","ze","Vt","Xn","xo","_o","ye","lt","We","Po","Co","So","ko","No","Lo","Ae","dt","Ko","Xo","Ma","AreaComponent","container","createWebComponent","_component"],"mappings":"AAAA,IAAIA,KAAK,OAAO,gBAAgBC,KAAK,OAAO,kBACxCC,KAAK,OAAO,2BACZC,KAAK,OAAO,uBAAuBC,KAAK,OAAO,gBAAgBC,KAAK,OAAO,UAAU,gBAAgBC,KAAK,OAAO,UAAU,sBAAsBC,KAAK,QAAQ,KAC9JC,KAAK,CAACC,GAAGC,GAAGC,MAAMD,KAAKD,IAAIT,GAAGS,GAAGC,GAAG,EAAE,YAAY,IAAI,cAAc,IAAI,UAAU,IAAI,OAAOC,EAAC,CAAE,IAAIF,EAAEC,CAAC,IAAIC,GAAGC,KAAK,CAACH,GAAGC,MAAM;AAC/H,WAASC,KAAKD,MAAMA,IAAI,CAAA;AACtB,IAAAL,GAAG,KAAKK,GAAGC,CAAC,KAAKH,GAAGC,GAAGE,GAAGD,EAAEC,CAAC,CAAC;AAChC,MAAIR;AACF,aAASQ,KAAKR,GAAGO,CAAC;AAChB,MAAAJ,GAAG,KAAKI,GAAGC,CAAC,KAAKH,GAAGC,GAAGE,GAAGD,EAAEC,CAAC,CAAC;AAClC,SAAOF;AACT,GAAGI,KAAK,CAACJ,GAAGC,MAAMT,GAAGQ,GAAGP,GAAGQ,CAAC,CAAC,GACzBI,KAAK,CAACL,GAAGC,GAAGC,MAAMJ,GAAGH,GAAGK,CAAC,GAAGE,GAAGD,CAAC,GAChCK,IAAI,CAACN,GAAGC,GAAGC,MAAM,IAAI,QAAQ,CAAC,GAAGK,MAAM;AACzC,MAAI,IAAI,CAACC,MAAM;AACb,QAAI;AACF,MAAAC,EAAEP,EAAE,KAAKM,CAAC,CAAC;AAAA,IACZ,SAAQ,GAAG;AACV,MAAAD,EAAE,CAAC;AAAA,IACJ;AAAA,EACL,GAAK,IAAI,CAACC,MAAM;AACZ,QAAI;AACF,MAAAC,EAAEP,EAAE,M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AAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAuEF;AACAqE,GAAG;AAAA,EACDT,GAAG,EAAE,WAAW,IAAI;AACtB,GAAGU,EAAG,WAAW,UAAU,CAAC;AAC5BD,GAAG;AAAA,EACDR,GAAI;AACN,GAAGS,EAAG,WAAW,UAAU,CAAC;AAC5BD,GAAG;AAAA,EACDR,GAAI;AACN,GAAGS,EAAG,WAAW,UAAU,CAAC;AAC5BD,GAAG;AAAA,EACDR,GAAI;AACN,GAAGS,EAAG,WAAW,QAAQ,CAAC;AAktBrB,MAACC,KAAK,YAAgFC,KAAK,cA6F5FC,KAAK,CAAC/N,GAAGC,GAAGC,GAAG,GAAGK,MAAMP,EAAE,SAAS,mBAAmB,EAAE,KAAK,CAAC,OAAO,EAAE,kBAAkBC,GAAGC,CAAC,GAAGyE,GAAG3E,GAAGC,GAAG,MAAM,MAAM;AACzH,IAAIA,GAAGM,CAAC,EAAE,GC9jJGyN,KAAgB,CAACC,MACrBC;AAAAA,EACLD;AAAA,EACA;AAAA,EACA,OAAO,oBAAQ;AAAA,EACf,CAACE,MAAe;AAAA,EAAC;AAAA;"}
1
+ {"version":3,"file":"index-dccce6e5.js","sources":["../../../packages/runtime/dist/index-11b86daf.js","../src/area-component.ts"],"sourcesContent":["var qr = Object.defineProperty, Jr = Object.defineProperties;\nvar Kr = Object.getOwnPropertyDescriptors;\nvar un = Object.getOwnPropertySymbols, Gr = Object.getPrototypeOf, Yr = Object.prototype.hasOwnProperty, Zr = Object.prototype.propertyIsEnumerable, Qr = Reflect.get;\nvar dn = (n, t, e) => t in n ? qr(n, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[t] = e, tt = (n, t) => {\n for (var e in t || (t = {}))\n Yr.call(t, e) && dn(n, e, t[e]);\n if (un)\n for (var e of un(t))\n Zr.call(t, e) && dn(n, e, t[e]);\n return n;\n}, Mt = (n, t) => Jr(n, Kr(t));\nvar pn = (n, t, e) => Qr(Gr(n), e, t);\nvar B = (n, t, e) => new Promise((r, s) => {\n var i = (c) => {\n try {\n a(e.next(c));\n } catch (h) {\n s(h);\n }\n }, o = (c) => {\n try {\n a(e.throw(c));\n } catch (h) {\n s(h);\n }\n }, a = (c) => c.done ? r(c.value) : Promise.resolve(c.value).then(i, o);\n a((e = e.apply(n, t)).next());\n});\nconst Pe = (n, t, e, ...r) => {\n const s = `[${n.get(\"$environment\").name || \"webprovisions\"}] ${e}`;\n switch (t) {\n case \"info\":\n console.info(s, ...r);\n break;\n case \"warning\":\n console.warn(s, ...r);\n break;\n case \"error\":\n console.error(s, ...r);\n break;\n }\n}, Xr = (n) => {\n const t = n.container || n;\n return {\n info: (e, ...r) => Pe(t, \"info\", e, ...r),\n warn: (e, ...r) => Pe(t, \"warning\", e, ...r),\n error: (e, ...r) => Pe(t, \"error\", e, ...r)\n };\n};\nvar he = /* @__PURE__ */ ((n) => (n.Implementation = \"implementation\", n.Widget = \"widget\", n))(he || {}), mt = /* @__PURE__ */ ((n) => (n.Pre = \"pre\", n.Post = \"post\", n))(mt || {});\nconst ts = (n, t, e, r) => {\n try {\n const s = new t(e, r);\n return {\n name: n,\n invoke: (i, o) => {\n let a;\n return s[i] && (a = s[i].call(s, o)), Promise.resolve(a);\n },\n getInstance: () => s\n };\n } catch (s) {\n if (s.message && s.message.indexOf(\"is not a constructor\") >= 0)\n return {\n name: n,\n invoke: (i) => {\n let o;\n return i === \"initialize\" && (o = t(e, r)), Promise.resolve(o);\n },\n getInstance: () => t\n };\n throw s;\n }\n};\nfunction gn(n, t) {\n return typeof n == \"undefined\" ? t : n;\n}\nlet es = class {\n constructor(t = {}) {\n this.part = t;\n }\n createCommand(t, e, r) {\n let s;\n typeof e == \"function\" ? s = {\n scope: he.Widget,\n stage: mt.Post,\n defaultArgs: void 0,\n handlerResolver: e\n } : s = {\n scope: gn(e.scope, he.Widget),\n stage: gn(e.stage, mt.Post),\n defaultArgs: e.defaultArgs,\n handlerResolver: r\n };\n let i = this.part;\n const o = t.split(\".\");\n return o.forEach((a, c) => {\n c === o.length - 1 ? i[a] || (i[a] = () => s) : i = this.part[a] = this.part[a] || {};\n }), this;\n }\n get() {\n return this.part;\n }\n};\nconst Xe = (n) => {\n const t = new es({});\n return n(t), t.get();\n};\nXe((n) => {\n n.createCommand(\n \"types.register\",\n { scope: he.Implementation, stage: mt.Pre },\n (t) => (e, r) => {\n t.container.get(\"$types\")[e] = r;\n }\n ).createCommand(\n \"type\",\n { stage: mt.Pre },\n (t) => (e) => {\n t.container.register(\"$type\", e);\n }\n ).createCommand(\n \"settings\",\n { stage: mt.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: mt.Pre },\n (t) => (e, r, s) => {\n const { container: i } = t;\n let o = null, a = e, c = r;\n typeof e == \"string\" && (o = e, a = r, c = s);\n const h = (l) => {\n const { transformPluginSettings: u } = t.container.get(\"$environmentOptions\"), d = u ? u(\n c || {},\n o,\n t.container,\n a\n ) : r;\n try {\n const p = ts(\n o,\n a,\n i,\n d\n );\n i.get(\"$plugins\").push(p), l && p.invoke(\"initialize\", null);\n } catch (p) {\n Xr(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, r) => {\n t.container.register(e, r);\n }\n ).createCommand(\n \"container.registerAsync\",\n (t) => (e, r) => {\n t.container.registerAsync(e, r);\n }\n ).createCommand(\n \"container.registerFactory\",\n (t) => (e, r) => {\n t.container.registerFactory(e, r);\n }\n ).createCommand(\n \"container.touch\",\n (t) => (e, r) => {\n t.container.touch(e, r);\n }\n ).createCommand(\n \"csp\",\n {},\n (t) => (e) => {\n t.container.register(\"csp\", e);\n }\n );\n});\nvar nr = /* @__PURE__ */ ((n) => (n.Activating = \"activating\", n.Loading = \"loading\", n.Activated = \"activated\", n.Deactivating = \"deactivating\", n.Deactivated = \"deactivated\", n))(nr || {});\nlet ns = class {\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, r) => {\n this.settings = r;\n });\n }\n};\nvar fn = Object.getOwnPropertySymbols, rs = Object.prototype.hasOwnProperty, ss = Object.prototype.propertyIsEnumerable, is = (n, t) => {\n var e = {};\n for (var r in n)\n rs.call(n, r) && t.indexOf(r) < 0 && (e[r] = n[r]);\n if (n != null && fn)\n for (var r of fn(n))\n t.indexOf(r) < 0 && ss.call(n, r) && (e[r] = n[r]);\n return e;\n};\nfunction os(n = {}) {\n const t = n, {\n phrase: e = \"\",\n category: r,\n guideCategory: s,\n contactCategory: i,\n take: o,\n connectionKey: a,\n accordion: c,\n id: h,\n uriName: l,\n sorting: u,\n tag: d,\n tagId: p,\n tagTitle: b\n } = t, v = is(t, [\n \"phrase\",\n \"category\",\n \"guideCategory\",\n \"contactCategory\",\n \"take\",\n \"connectionKey\",\n \"accordion\",\n \"id\",\n \"uriName\",\n \"sorting\",\n \"tag\",\n \"tagId\",\n \"tagTitle\"\n ]), g = {};\n return Object.keys(v).forEach((E) => {\n typeof n[E] == \"string\" && (g[E] = n[E]);\n }), typeof e == \"string\" && e.length && (g.phrase = e), e === null && (g.phrase = e), typeof s == \"string\" && s !== \"0\" && (g.guideCategory = s), typeof s == \"number\" && s !== 0 && (g.guideCategory = s), typeof s == \"object\" && s !== null && (typeof s.id == \"string\" && s.id !== \"0\" && (g.guideCategory = s.id), typeof s.id == \"number\" && s.id !== 0 && (g.guideCategory = s.id)), typeof i == \"string\" && i !== \"0\" && (g.contactCategory = i), typeof i == \"number\" && i !== 0 && (g.contactCategory = i), typeof i == \"object\" && i !== null && (typeof i.id == \"string\" && i.id !== \"0\" && (g.contactCategory = i.id), typeof i.id == \"number\" && i.id !== 0 && (g.contactCategory = i.id)), typeof r == \"string\" && r !== \"0\" && (g.category = r), typeof r == \"number\" && r !== 0 && (g.category = r), typeof r == \"object\" && r !== null && (typeof r.id == \"string\" && r.id !== \"0\" && (g.category = r.id), typeof r.id == \"number\" && r.id !== 0 && (g.category = r.id)), h && (g.id = h), l && (+g.category || +g.guideCategory || +g.guide || +g.contactCategory || +g.contactMethod) && (g.uriName = l), a && (g.connectionKey = a), o && (g.take = o), u && (g.sorting = u), typeof c == \"string\" && c.length > 0 && (g.accordion = c), typeof d == \"string\" && d !== \"0\" && (g.tag = d), typeof d == \"number\" && d !== 0 && (g.tag = d), Array.isArray(d) && d.length && (g.tag = d), (typeof p == \"string\" || typeof p == \"number\") && (g.tagId = p), typeof b == \"string\" && (g.tagTitle = b), typeof g.tag == \"string\" && (g.tag = g.tag.split(\",\")), g;\n}\nconst be = (n, t, ...e) => typeof t == \"string\" ? n(`[humany] ${t}`, ...e) : n(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 I = Rt;\nI.log = (...n) => be(console.log, ...n);\nI.warn = (...n) => be(console.warn, ...n);\nI.error = (...n) => be(console.error, ...n);\nI.info = (...n) => be(console.info, ...n);\nconst rr = (n) => {\n let t = {}, e, r;\n if (typeof n != \"object\" || n === null)\n return n;\n t = Array.isArray(n) ? [] : {};\n for (r in n)\n e = n[r], t[r] = typeof e == \"object\" && e !== null ? rr(e) : e;\n return t;\n}, as = rr;\nfunction mn(n) {\n let t = 0;\n if (n.length === 0)\n return t.toString();\n for (let e = 0; e < n.length; e++) {\n const r = n.charCodeAt(e);\n t = (t << 5) - t + r, t = t & t;\n }\n return t.toString();\n}\nlet cs = 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, r, s) {\n this.tasks.push({ task: t, resolve: e, reject: r, done: s }), 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 r = setTimeout(() => {\n process.env.NODE_ENV !== \"production\" && I.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), s = Promise.resolve(t.task()).then((i) => (clearTimeout(r), clearTimeout(e), i));\n return Promise.resolve(s).then(this.next).then(\n () => s.then((i) => {\n t.done(), t.resolve(i);\n })\n ).catch((i) => (t.done(), t.reject(i), this.next()));\n }\n return Promise.resolve();\n });\n }\n};\nconst Gt = /* @__PURE__ */ new WeakMap();\nfunction X(n, t = 5e3, e = 1e3) {\n return Gt.has(n) || Gt.set(n, new cs(t, e)), (r) => new Promise((s, i) => {\n const o = Gt.get(n);\n o.add(r, s, i, () => {\n o.tasks.length || Gt.delete(n);\n });\n });\n}\nconst hs = (n, t) => {\n const e = () => t.querySelectorAll(\"[data-loading=true]\").length > 0, r = (() => {\n let s = !1;\n return () => {\n s || (n.get(\"$widget\").events.dispatch(\"widget:data-loaded\", {\n element: t\n }), s = !0);\n };\n })();\n if (!e())\n return r();\n new MutationObserver((s, i) => {\n s.find(\n (o) => o.type === \"attributes\" && o.attributeName === \"data-loading\"\n ) && !e() && (i.disconnect(), r());\n }).observe(t, {\n attributes: !0,\n childList: !0,\n subtree: !0\n });\n}, ls = (n, t) => {\n n.get(\"$widget\").container.getAsync(\"components\").then((e) => {\n e.events.subscribeOnce(\"components:component-model-initialized\", () => {\n let r = e.nodes.visible.reduce(\n (i, o) => (!o.name || !o.type || o.type === \"view\" || o.type === \"root\" || o.attributes.layout.size === \"none\" || t.querySelector(`[data-name=\"${o.name}\"]`) || i.push(o.name), i),\n []\n ), s = !1;\n new MutationObserver((i, o) => {\n i.forEach((a) => {\n if (a.addedNodes) {\n const c = Array.from(\n a.addedNodes\n ).reduce((h, l) => {\n const u = l.getAttribute && l.getAttribute(\"data-name\");\n return u && r.indexOf(u) > -1 && h.push(u), h;\n }, []);\n r = r.filter((h) => c.indexOf(h) === -1), !s && r.length === 0 && (s = !0, hs(n, 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}, us = ls, ds = (n = {}) => (Object.keys(n).forEach((t) => {\n (n[t] === null || typeof n[t] == \"undefined\") && delete n[t];\n}), n), $t = ds, vn = (n, t) => {\n let e = !0;\n return Object.keys(n).length !== Object.keys(t).length || Object.keys(n).some((r) => !Object.keys(t).some((s) => r === s)) ? !1 : (Object.keys(n).forEach((r) => {\n if (e) {\n const s = typeof n[r] == \"undefined\" ? \"\" : n[r], i = typeof t[r] == \"undefined\" ? \"\" : t[r];\n e = s.toString() === i.toString();\n }\n }), e);\n}, ot = () => Math.floor((1 + Math.random()) * 65536).toString(16).substring(1);\nfunction qt() {\n return ot() + ot() + \"-\" + ot() + \"-\" + ot() + \"-\" + ot() + \"-\" + ot() + ot() + ot();\n}\nvar ps = Object.defineProperty, gs = Object.defineProperties, fs = Object.getOwnPropertyDescriptors, yn = Object.getOwnPropertySymbols, ms = Object.prototype.hasOwnProperty, vs = Object.prototype.propertyIsEnumerable, bn = (n, t, e) => t in n ? ps(n, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[t] = e, ys = (n, t) => {\n for (var e in t || (t = {}))\n ms.call(t, e) && bn(n, e, t[e]);\n if (yn)\n for (var e of yn(t))\n vs.call(t, e) && bn(n, e, t[e]);\n return n;\n}, bs = (n, t) => gs(n, fs(t));\nclass ws {\n constructor(t) {\n const { events: e } = t.get(\"$widget\");\n this.events = e.createChild(this);\n }\n action(t, e, r) {\n this.events.dispatch(\"data:action\", { action: e, value: r, target: t }, { bubbles: !0 });\n }\n subscribe(t, e) {\n return this.events.subscribe(\n \"data:action\",\n (r, { action: s, value: i, target: o }) => t === o && e(t, s, i)\n );\n }\n}\nconst sr = (n) => {\n const t = [];\n return [\n (e, r) => {\n t.push(n.subscribe(e, r));\n },\n () => {\n t.forEach((e) => {\n e();\n });\n }\n ];\n};\nlet Nt = 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 $s(this.platform, this);\n }\n}, tn = class {\n constructor(t, e, r) {\n this.platform = t, this.node = e, this.actions = new we(\n t,\n new Nt(t).withId(e.id),\n r\n );\n const [s, i] = sr(this.platform.events);\n this.subscribe = s, this.unsubscribe = i;\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: r }) => {\n r === 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: r }) => {\n r === 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 $s {\n constructor(t, e, r = !0) {\n this.platform = t, this.target = e, this.clearOnDispose = r, this.removes = [], this.actions = new we(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 Os = (n, t, e) => {\n const r = n.concat(), s = (i, o, a) => {\n let c = !0;\n if (r.length) {\n const h = r.shift(), l = (u, d) => (c = !1, s(u, Object.assign({}, o, d), a));\n return Promise.resolve(h(i, l, a)).then((u) => bs(ys({}, u), {\n cancelled: c\n }));\n }\n return Promise.resolve({ data: i, cancelled: !1, options: o });\n };\n return s(t, {}, e);\n};\nlet we = class {\n constructor(t, e, r) {\n this.platform = t, this.target = e, this.ns = r, this.subscriptions = [], this.create = this.create.bind(this);\n }\n create(t, e = () => {\n }) {\n const r = {\n key: t,\n fn: e,\n target: this.target,\n ns: this.ns\n };\n this.platform.actionsState.handlers.push(r);\n const s = () => {\n const i = this.platform.actionsState.handlers.indexOf(r);\n i > -1 && this.platform.actionsState.handlers.splice(i, 1);\n };\n return this.subscriptions.push(s), s;\n }\n dispatch(t, e) {\n const r = this.platform.nodes.all.concat(\n this.platform.nodes.detached\n ), s = {}, i = this.platform.actionsState.handlers.filter(\n (o) => o.key === t && (!o.ns || !this.ns || o.ns === this.ns)\n );\n return Promise.all(\n i.map((o) => {\n const a = r.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 tn(\n this.platform,\n h,\n this.ns\n );\n return Os(c, e, l).then((u) => {\n const { data: d = {}, options: p, cancelled: b } = u;\n return Promise.resolve(\n b ? {} : o.fn(d, p, l)\n ).then((v) => {\n s[h.id] = v;\n });\n });\n })\n );\n })\n ).then(() => s);\n }\n watch(t, e) {\n let r = t, s = this.ns;\n const i = t.split(\".\");\n i.length > 1 && (s = i[0], r = i.splice(1).join(\".\"));\n const o = {\n fn: e,\n target: this.target,\n key: r,\n ns: s\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((n) => {\n n.createCommand(\"components\", (t) => (e) => {\n t.events.subscribeOnce(\"components:platform-created\", (r, { platform: s }) => {\n e.handlers && e.handlers.forEach(([i, o]) => {\n s.addComponentHandler(i, o);\n });\n });\n });\n});\nlet qe = class {\n constructor(t, e) {\n this.events = t, this.tags = [], this.children = {}, this.changesets = [], this.mountCount = 0, this.id = qt(), 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 r = t.get(\"mounted-nodes\");\n return r || (r = /* @__PURE__ */ new Map(), t.register(\"mounted-nodes\", r)), r.has(this) ? (process.env.NODE_ENV !== \"production\" && I.error(\"Trying to mount an already mounted component node.\", this), () => {\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 r.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 = {}, r) {\n const s = [{ properties: t }, e];\n return this.changesets.push(s), this.events.dispatch(\"components:set-properties\", { node: this }), () => {\n if (r) {\n const i = this.changesets.indexOf(s);\n i > -1 && (this.changesets.splice(i, 1), this.events.dispatch(\"components:set-properties\", { node: this }));\n }\n };\n }\n writeProperties(t, e = {}, r) {\n const s = [{ properties: t }, e];\n return this.changesets.push(s), this.events.dispatch(\"components:set-properties\", { node: this }), () => {\n if (r) {\n const i = this.changesets.indexOf(s);\n i > -1 && (this.changesets.splice(i, 1), this.events.dispatch(\"components:set-properties\", { node: this }));\n }\n };\n }\n writeLayout(t, e = {}, r) {\n const s = [{ layout: t }, e];\n return this.changesets.push(s), this.events.dispatch(\"components:set-layout\", { node: this }), () => {\n if (!r)\n return;\n const i = this.changesets.indexOf(s);\n i > -1 && (this.changesets.splice(i, 1), this.events.dispatch(\"components:set-layout\", { node: this }));\n };\n }\n writeContext(t, e = {}, r) {\n const s = [{ context: t }, e];\n return this.changesets.push(s), this.events.dispatch(\"components:set-context\", { node: this }), () => {\n if (!r)\n return;\n const i = this.changesets.indexOf(s);\n i > -1 && (this.changesets.splice(i, 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((r, s, i) => {\n const { order: o = i } = s.attributes.layout;\n return r[o] ? r.splice(o, 0, s) : r[o] = s, r;\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 r = this.children[e], s = r.indexOf(t);\n s > -1 && (r.splice(s, 1), this.events.dispatch(\"components:node-removed\", { node: t, parentNode: this }));\n }), delete t.parent;\n }\n};\nconst ir = (n, t, e) => {\n for (let r = 0, s = n.length; r < s && e(n[r]) !== !0; r++) {\n const i = t[n[r].id] || \"default\", o = n[r].getChildren(i);\n ir(o, t, e);\n }\n}, $e = (n, t, e) => {\n if (e(n) !== !0) {\n const r = t[n.id] || \"default\", s = n.children[r];\n ir(s, t, e);\n }\n}, ne = (n, t) => {\n const e = [];\n return $e(n, t, (r) => {\n e.push(r);\n }), e;\n}, or = (n, t, e) => {\n let r;\n return $e(n, t, (s) => {\n if (e(s))\n return r = s, !0;\n }), r;\n};\nlet Es = class {\n constructor(t, e, r) {\n this.root = t, this.switches = e, this.all = [], this.visible = [], this.detached = [], r.subscribe(\"components:node-appended\", (s, i) => {\n this.all.push(i.node), this.visible = ne(t, e);\n }), r.subscribe(\"components:node-removed\", (s, i) => {\n let o = this.all.indexOf(i.node);\n o > -1 && this.all.splice(o, 1), o = this.visible.indexOf(i.node), o > -1 && this.visible.splice(o, 1), this.visible = ne(t, e);\n }), r.subscribe(\"components:node-switched\", (s, i) => {\n this.visible = ne(t, e);\n });\n }\n query(t = {}) {\n const e = [];\n return $e(this.root, this.switches, (r) => {\n Object.keys(t).every((s) => t[s] === r[s]) && e.push(r);\n }), e;\n }\n get(t) {\n return or(this.root, this.switches, (e) => e.id === t) || this.detached.find((e) => e.id === t);\n }\n}, xs = class {\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 _s = (n) => {\n let t = n, e = 0;\n for (; t.parent; )\n e = e + 1, t = t.parent;\n return e;\n}, As = (n) => n.map(([t, e]) => [_s(t), t, e]).sort(([t], [e]) => t - e).map(([, t, e]) => [t, e]), Ce = (n) => n instanceof Date ? !1 : n && typeof n == \"object\" && !Array.isArray(n), et = (n, ...t) => {\n if (!t.length)\n return n;\n const e = t.shift();\n if (Ce(n) && Ce(e))\n for (const r in e)\n Ce(e[r]) ? (n[r] || Object.assign(n, { [r]: {} }), et(n[r], e[r])) : Object.assign(n, { [r]: e[r] });\n return et(n, ...t);\n}, Ps = (n, t) => !n || n === \"all\" ? !0 : n.some((e) => t.indexOf(e) > -1), Cs = (n, t) => {\n let e = [], r = [], s;\n const i = () => {\n process.env.NODE_ENV !== \"production\" && console.time(\"state-processor.flush\");\n const a = /* @__PURE__ */ new Map(), c = As(e.map((l, u) => [l, r[u]])), h = (l, u) => {\n var d;\n const p = a.get(l) || {}, b = u.context && !p.context, v = u.properties && !p.properties, g = u.layout && !p.layout;\n a.set(l, {\n context: p.context || b,\n properties: p.properties || v,\n layout: p.layout || g\n }), v && (l.attributes.properties = {}), g && (l.attributes.layout = {}), b && (l.attributes.context = et({}, (d = l.parent) == null ? void 0 : d.attributes.context));\n const E = [], R = [], F = [];\n if (l.changesets.forEach((H) => {\n const [k, U] = H;\n Ps(U.breakpoints, n.breakpoints) && (v && (typeof k.properties == \"function\" ? E.push(\n k.properties\n ) : et(l.attributes.properties, k.properties)), g && (typeof k.layout == \"function\" ? R.push(k.layout) : et(l.attributes.layout, k.layout)), b && (typeof k.context == \"function\" ? F.push(k.context) : et(l.attributes.context, k.context)));\n }), E.forEach((H) => {\n et(l.attributes.properties, H(l.attributes.properties));\n }), R.forEach((H) => {\n et(l.attributes.layout, H(l.attributes.layout));\n }), F.forEach((H) => {\n et(l.attributes.context, H(l.attributes.context));\n }), b || u.recursive) {\n const H = n.getBranch(l), k = u.recursive ? u : {\n context: !!b\n };\n l.getChildren(H).forEach((U) => {\n h(U, k);\n });\n }\n };\n process.env.NODE_ENV !== \"production\" && console.timeEnd(\"state-processor.flush\"), c.forEach(([l, u]) => {\n h(l, u);\n }), e = [], r = [], t(a);\n }, o = () => {\n clearTimeout(s), s = setTimeout(i, 0);\n };\n return (a, c) => {\n const h = e.indexOf(a);\n if (h > -1) {\n const l = r[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), r.push(c), o();\n };\n};\nlet Jt = class {\n constructor(t, e = {}) {\n this.providers = e, this.breakpoints = [], this.actionsState = { handlers: [], watchers: [] }, this.switches = {}, this.changesets = [], this.subscriptions = [], this.customComponentHandler = new xs(), this.events = t.events.createChild(this);\n const r = new qe(this.events, \"root\");\n r.name = `root-${t.name}`, this.nodes = new Es(r, this.switches, this.events);\n const s = this.processNode = Cs(this, (i) => {\n const o = Array.from(i.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 = i.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(\"components:component-model-initialized\", {}, { bubbles: !0 });\n });\n Promise.all(\n Object.keys(e).map((i) => e[i].load(this))\n ), this.subscriptions.push(\n this.events.subscribe(\n \"components:node-appended\",\n (i, o) => {\n const { node: a } = o;\n this.changesets.forEach((c) => {\n const { changeset: h, target: l, removes: u } = c, [d, p] = h;\n l.match(o.node) && (d.properties && u.push(a.writeProperties(d.properties, p)), d.context && u.push(a.writeContext(d.context, p)), d.layout && u.push(a.writeLayout(d.layout, p)));\n });\n }\n )\n ), this.subscriptions.push(\n this.events.subscribe(\n \"components:node-appended\",\n (i, o) => {\n s(o.node, { properties: !0, context: !0 });\n }\n )\n ), this.subscriptions.push(\n this.events.subscribe(\n \"components:set-properties\",\n (i, o) => {\n s(o.node, { properties: !0 });\n }\n )\n ), this.subscriptions.push(\n this.events.subscribe(\n \"components:set-context\",\n (i, o) => {\n s(o.node, { properties: !0, context: !0 });\n }\n )\n ), this.subscriptions.push(\n this.events.subscribe(\n \"components:set-indent\",\n (i, o) => {\n s(o.node, { layout: !0 });\n }\n )\n ), this.subscriptions.push(\n this.events.subscribe(\n \"components:set-layout\",\n (i, o) => {\n s(o.node, { layout: !0 });\n }\n )\n ), this.subscriptions.push(\n this.events.subscribe(\"components:node-switched\", (i, { node: o, branch: a }) => {\n s(o, {\n layout: !0,\n recursive: !0,\n properties: !0,\n context: !0\n });\n })\n ), this.subscriptions.push(\n this.events.subscribe(\"components:node-removed\", (i, { parentNode: o }) => {\n s(o, { properties: !0 });\n })\n ), this.events.parent && this.events.parent.dispatch(\"components:platform-created\", { platform: this });\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 r = new qe(this.events, t);\n return e.detached && this.nodes.detached.push(r), r;\n }\n components() {\n return new Nt(this);\n }\n actions(t, e) {\n return new we(this, t, e);\n }\n write(t) {\n const { provider: e, target: r, attributes: s, options: i = {}, removable: o } = t, a = t.key || qt(), c = { changeset: [s, i], target: r, removes: [] };\n if (e) {\n const h = this.providers[e];\n h.write(a, r, s, i), c.removes.push(() => {\n h.remove(a);\n });\n }\n return this.changesets.push(c), this.nodes.all.forEach((h) => {\n if (r.match(h)) {\n let l = () => {\n };\n s.properties && (l = h.writeProperties(s.properties, i, o)), s.context && (l = h.writeContext(s.context, i, o)), s.layout && (l = h.writeContext(s.layout, i, 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 Ss = (n) => {\n if (Array.isArray(n)) {\n const [t, ...e] = n;\n return {\n definitionId: t,\n overrides: e\n };\n }\n return {\n definitionId: n,\n overrides: []\n };\n}, le = (n, t, e, r, s, i) => {\n e.forEach((o) => {\n const a = Ss(o), c = r[a.definitionId];\n if (a.definitionId === \"view\") {\n const h = n.createNode(\"view\");\n h.name = \"view\", Object.keys(s).forEach((l) => {\n const u = s[l];\n le(n, h, [u.entry], r, s, 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 (n.getComponentHandler(c.type)) {\n const h = n.getComponentHandler(c.type);\n h && h(a, {\n platform: n,\n node: t,\n references: e,\n definitions: r,\n views: s,\n branch: i\n });\n } else {\n const h = r[a.definitionId];\n if (process.env.NODE_ENV !== \"production\" && !h) {\n I.error(\n `No definition found for component type '${a.definitionId}'.`\n );\n return;\n }\n const l = n.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, i), a.overrides.forEach((u) => {\n const d = { breakpoints: u.breakpoints };\n u.properties && l.writeProperties(u.properties, d), u.context && l.writeContext(u.context, d), u.layout && l.writeLayout(u.layout, d);\n }), h.children && le(n, l, h.children, r, s);\n }\n });\n}, ar = (n, t) => {\n const { entry: e, components: r, breakpoints: s, views: i } = t, o = [];\n return Object.keys(s).forEach((a) => {\n const c = s[a], h = window.matchMedia(c);\n h.matches && n.breakpoints.push(a);\n const l = (u) => {\n u.matches ? n.addBreakpoint(a) : n.removeBreakpoint(a);\n };\n h.addListener(l), o.push(() => h.removeListener(l));\n }), le(n, n.nodes.root, [e], r, i), () => o.forEach((a) => {\n a();\n });\n}, Je = (n, t) => ({\n id: n.id,\n type: n.type,\n name: n.name,\n branch: t || \"default\"\n}), cr = (n, t, e, r = qt(), s = {}) => n.getAsync(\"components\").then((i) => {\n let o;\n if (typeof t == \"string\") {\n const h = new Nt(i);\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) : Jt.getInstance(n).then((u) => new tn(u, h, r));\n };\n i.events.subscribe(\n \"components:node-enter\",\n (h, { node: l }) => {\n o.match(l) && c(l).then((u) => {\n Promise.resolve(e(u)).then((d) => {\n a[l.id] = {\n dispose: d,\n controller: u\n };\n });\n });\n }\n ), i.events.subscribe(\n \"components:node-exit\",\n (h, { node: l }) => {\n const u = a[l.id];\n u && (u.dispose && u.dispose(), s.reuseController || (u.controller.dispose(), delete a[l.id]));\n }\n );\n});\nclass ks {\n constructor(t) {\n this.aliases = /* @__PURE__ */ new Map(), this.components = /* @__PURE__ */ new Map(), this.logger = new I();\n const { events: e } = t.get(\"$widget\");\n this.events = e;\n }\n getComponent(t) {\n const e = this.aliases.get(t), r = this.components.get(e || t) || null;\n return process.env.NODE_ENV !== \"production\" && (r || 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 )), r;\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(\"component-resolver:resolve\", (r, s) => {\n if (s === t) {\n const i = this.getComponent(t);\n e(i);\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 J = /* @__PURE__ */ ((n) => (n.open = \"open\", n.closed = \"closed\", n.hidden = \"hidden\", n))(J || {});\nconst en = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({\n __proto__: null,\n ActionResolver: ws,\n ActionsController: we,\n ComponentNode: qe,\n ComponentNodeController: tn,\n ComponentPlatform: Jt,\n ComponentQuery: Nt,\n ComponentResolver: ks,\n WidgetRenderState: J,\n asDescriptor: Je,\n createChildren: le,\n createComponentModel: ar,\n createEventSubscriber: sr,\n extendComponent: cr,\n findComponent: or,\n findVisibleComponents: ne,\n traverseComponents: $e\n}, Symbol.toStringTag, { value: \"Module\" }));\nfunction hr(n) {\n return n && n.__esModule && Object.prototype.hasOwnProperty.call(n, \"default\") ? n.default : n;\n}\nvar lr = function() {\n};\nprocess.env.NODE_ENV !== \"production\" && (lr = function(n, t, e) {\n var r = arguments.length;\n e = new Array(r > 2 ? r - 2 : 0);\n for (var s = 2; s < r; s++)\n e[s - 2] = arguments[s];\n if (t === void 0)\n throw new Error(\n \"`warning(condition, format, ...args)` requires a warning message argument\"\n );\n if (t.length < 10 || /^[s\\W]*$/.test(t))\n throw new Error(\n \"The warning format should be able to uniquely identify this warning. Please, use a more descriptive format than: \" + t\n );\n if (!n) {\n var i = 0, o = \"Warning: \" + t.replace(/%s/g, function() {\n return e[i++];\n });\n typeof console != \"undefined\" && console.error(o);\n try {\n throw new Error(o);\n } catch (a) {\n }\n }\n});\nvar Ns = lr;\nconst nt = /* @__PURE__ */ hr(Ns);\nvar Ls = function(n, t, e, r, s, i, o, a) {\n if (process.env.NODE_ENV !== \"production\" && t === void 0)\n throw new Error(\"invariant requires an error message argument\");\n if (!n) {\n var c;\n if (t === void 0)\n c = new Error(\n \"Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.\"\n );\n else {\n var h = [e, r, s, i, o, a], l = 0;\n c = new Error(\n t.replace(/%s/g, function() {\n return h[l++];\n })\n ), c.name = \"Invariant Violation\";\n }\n throw c.framesToPop = 1, c;\n }\n}, Ms = Ls;\nconst Ds = /* @__PURE__ */ hr(Ms);\nfunction Yt(n) {\n return n.charAt(0) === \"/\";\n}\nfunction Se(n, t) {\n for (var e = t, r = e + 1, s = n.length; r < s; e += 1, r += 1)\n n[e] = n[r];\n n.pop();\n}\nfunction js(n) {\n var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : \"\", e = n && n.split(\"/\") || [], r = t && t.split(\"/\") || [], s = n && Yt(n), i = t && Yt(t), o = s || i;\n if (n && Yt(n) ? r = e : e.length && (r.pop(), r = r.concat(e)), !r.length)\n return \"/\";\n var a = void 0;\n if (r.length) {\n var c = r[r.length - 1];\n a = c === \".\" || c === \"..\" || c === \"\";\n } else\n a = !1;\n for (var h = 0, l = r.length; l >= 0; l--) {\n var u = r[l];\n u === \".\" ? Se(r, l) : u === \"..\" ? (Se(r, l), h++) : h && (Se(r, l), h--);\n }\n if (!o)\n for (; h--; h)\n r.unshift(\"..\");\n o && r[0] !== \"\" && (!r[0] || !Yt(r[0])) && r.unshift(\"\");\n var d = r.join(\"/\");\n return a && d.substr(-1) !== \"/\" && (d += \"/\"), d;\n}\nvar Rs = function(t) {\n return t.charAt(0) === \"/\" ? t : \"/\" + t;\n}, ur = function(t, e) {\n return new RegExp(\"^\" + e + \"(\\\\/|\\\\?|#|$)\", \"i\").test(t);\n}, Ts = function(t, e) {\n return ur(t, e) ? t.substr(e.length) : t;\n}, Is = function(t) {\n return t.charAt(t.length - 1) === \"/\" ? t.slice(0, -1) : t;\n}, Hs = function(t) {\n var e = t || \"/\", r = \"\", s = \"\", i = e.indexOf(\"#\");\n i !== -1 && (s = e.substr(i), e = e.substr(0, i));\n var o = e.indexOf(\"?\");\n return o !== -1 && (r = e.substr(o), e = e.substr(0, o)), {\n pathname: e,\n search: r === \"?\" ? \"\" : r,\n hash: s === \"#\" ? \"\" : s\n };\n}, dr = function(t) {\n var e = t.pathname, r = t.search, s = t.hash, i = e || \"/\";\n return r && r !== \"?\" && (i += r.charAt(0) === \"?\" ? r : \"?\" + r), s && s !== \"#\" && (i += s.charAt(0) === \"#\" ? s : \"#\" + s), i;\n}, Us = Object.assign || function(n) {\n for (var t = 1; t < arguments.length; t++) {\n var e = arguments[t];\n for (var r in e)\n Object.prototype.hasOwnProperty.call(e, r) && (n[r] = e[r]);\n }\n return n;\n}, vt = function(t, e, r, s) {\n var i = void 0;\n typeof t == \"string\" ? (i = Hs(t), i.state = e) : (i = Us({}, t), i.pathname === void 0 && (i.pathname = \"\"), i.search ? i.search.charAt(0) !== \"?\" && (i.search = \"?\" + i.search) : i.search = \"\", i.hash ? i.hash.charAt(0) !== \"#\" && (i.hash = \"#\" + i.hash) : i.hash = \"\", e !== void 0 && i.state === void 0 && (i.state = e));\n try {\n i.pathname = decodeURI(i.pathname);\n } catch (o) {\n throw o instanceof URIError ? new URIError('Pathname \"' + i.pathname + '\" could not be decoded. This is likely caused by an invalid percent-encoding.') : o;\n }\n return r && (i.key = r), s ? i.pathname ? i.pathname.charAt(0) !== \"/\" && (i.pathname = js(i.pathname, s.pathname)) : i.pathname = s.pathname : i.pathname || (i.pathname = \"/\"), i;\n}, pr = function() {\n var t = null, e = function(c) {\n return nt(t == null, \"A history supports only one prompt at a time\"), t = c, function() {\n t === c && (t = null);\n };\n }, r = function(c, h, l, u) {\n if (t != null) {\n var d = typeof t == \"function\" ? t(c, h) : t;\n typeof d == \"string\" ? typeof l == \"function\" ? l(d, u) : (nt(!1, \"A history needs a getUserConfirmation function in order to use a prompt message\"), u(!0)) : u(d !== !1);\n } else\n u(!0);\n }, s = [], i = function(c) {\n var h = !0, l = function() {\n h && c.apply(void 0, arguments);\n };\n return s.push(l), function() {\n h = !1, s = s.filter(function(u) {\n return u !== l;\n });\n };\n }, o = function() {\n for (var c = arguments.length, h = Array(c), l = 0; l < c; l++)\n h[l] = arguments[l];\n s.forEach(function(u) {\n return u.apply(void 0, h);\n });\n };\n return {\n setPrompt: e,\n confirmTransitionTo: r,\n appendListener: i,\n notifyListeners: o\n };\n}, Vs = !!(typeof window != \"undefined\" && window.document && window.document.createElement), wn = function(t, e, r) {\n return t.addEventListener ? t.addEventListener(e, r, !1) : t.attachEvent(\"on\" + e, r);\n}, $n = function(t, e, r) {\n return t.removeEventListener ? t.removeEventListener(e, r, !1) : t.detachEvent(\"on\" + e, r);\n}, Bs = function(t, e) {\n return e(window.confirm(t));\n}, zs = function() {\n var t = window.navigator.userAgent;\n return (t.indexOf(\"Android 2.\") !== -1 || t.indexOf(\"Android 4.0\") !== -1) && t.indexOf(\"Mobile Safari\") !== -1 && t.indexOf(\"Chrome\") === -1 && t.indexOf(\"Windows Phone\") === -1 ? !1 : window.history && \"pushState\" in window.history;\n}, Ws = function() {\n return window.navigator.userAgent.indexOf(\"Trident\") === -1;\n}, Fs = function(t) {\n return t.state === void 0 && navigator.userAgent.indexOf(\"CriOS\") === -1;\n}, On = typeof Symbol == \"function\" && typeof Symbol.iterator == \"symbol\" ? function(n) {\n return typeof n;\n} : function(n) {\n return n && typeof Symbol == \"function\" && n.constructor === Symbol && n !== Symbol.prototype ? \"symbol\" : typeof n;\n}, qs = Object.assign || function(n) {\n for (var t = 1; t < arguments.length; t++) {\n var e = arguments[t];\n for (var r in e)\n Object.prototype.hasOwnProperty.call(e, r) && (n[r] = e[r]);\n }\n return n;\n}, En = \"popstate\", xn = \"hashchange\", _n = function() {\n try {\n return window.history.state || {};\n } catch (t) {\n return {};\n }\n}, Js = function() {\n var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};\n Ds(Vs, \"Browser history needs a DOM\");\n var e = window.history, r = zs(), s = !Ws(), i = t.forceRefresh, o = i === void 0 ? !1 : i, a = t.getUserConfirmation, c = a === void 0 ? Bs : a, h = t.keyLength, l = h === void 0 ? 6 : h, u = t.basename ? Is(Rs(t.basename)) : \"\", d = function(m) {\n var O = m || {}, L = O.key, M = O.state, K = window.location, G = K.pathname, it = K.search, Q = K.hash, q = G + it + Q;\n return nt(!u || ur(q, u), 'You are attempting to use a basename on a page whose URL path does not begin with the basename. Expected path \"' + q + '\" to begin with \"' + u + '\".'), u && (q = Ts(q, u)), vt(q, M, L);\n }, p = function() {\n return Math.random().toString(36).substr(2, l);\n }, b = pr(), v = function(m) {\n qs(A, m), A.length = e.length, b.notifyListeners(A.location, A.action);\n }, g = function(m) {\n Fs(m) || F(d(m.state));\n }, E = function() {\n F(d(_n()));\n }, R = !1, F = function(m) {\n if (R)\n R = !1, v();\n else {\n var O = \"POP\";\n b.confirmTransitionTo(m, O, c, function(L) {\n L ? v({ action: O, location: m }) : H(m);\n });\n }\n }, H = function(m) {\n var O = A.location, L = U.indexOf(O.key);\n L === -1 && (L = 0);\n var M = U.indexOf(m.key);\n M === -1 && (M = 0);\n var K = L - M;\n K && (R = !0, D(K));\n }, k = d(_n()), U = [k.key], x = function(m) {\n return u + dr(m);\n }, N = function(m, O) {\n nt(!((typeof m == \"undefined\" ? \"undefined\" : On(m)) === \"object\" && m.state !== void 0 && O !== void 0), \"You should avoid providing a 2nd state argument to push when the 1st argument is a location-like object that already has state; it is ignored\");\n var L = \"PUSH\", M = vt(m, O, p(), A.location);\n b.confirmTransitionTo(M, L, c, function(K) {\n if (K) {\n var G = x(M), it = M.key, Q = M.state;\n if (r)\n if (e.pushState({ key: it, state: Q }, null, G), o)\n window.location.href = G;\n else {\n var q = U.indexOf(A.location.key), ln = U.slice(0, q === -1 ? 0 : q + 1);\n ln.push(M.key), U = ln, v({ action: L, location: M });\n }\n else\n nt(Q === void 0, \"Browser history cannot push state in browsers that do not support HTML5 history\"), window.location.href = G;\n }\n });\n }, S = function(m, O) {\n nt(!((typeof m == \"undefined\" ? \"undefined\" : On(m)) === \"object\" && m.state !== void 0 && O !== void 0), \"You should avoid providing a 2nd state argument to replace when the 1st argument is a location-like object that already has state; it is ignored\");\n var L = \"REPLACE\", M = vt(m, O, p(), A.location);\n b.confirmTransitionTo(M, L, c, function(K) {\n if (K) {\n var G = x(M), it = M.key, Q = M.state;\n if (r)\n if (e.replaceState({ key: it, state: Q }, null, G), o)\n window.location.replace(G);\n else {\n var q = U.indexOf(A.location.key);\n q !== -1 && (U[q] = M.key), v({ action: L, location: M });\n }\n else\n nt(Q === void 0, \"Browser history cannot replace state in browsers that do not support HTML5 history\"), window.location.replace(G);\n }\n });\n }, D = function(m) {\n e.go(m);\n }, z = function() {\n return D(-1);\n }, V = function() {\n return D(1);\n }, T = 0, f = function(m) {\n T += m, T === 1 ? (wn(window, En, g), s && wn(window, xn, E)) : T === 0 && ($n(window, En, g), s && $n(window, xn, E));\n }, w = !1, y = function() {\n var m = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1, O = b.setPrompt(m);\n return w || (f(1), w = !0), function() {\n return w && (w = !1, f(-1)), O();\n };\n }, $ = function(m) {\n var O = b.appendListener(m);\n return f(1), function() {\n f(-1), O();\n };\n }, A = {\n length: e.length,\n action: \"POP\",\n location: k,\n createHref: x,\n push: N,\n replace: S,\n go: D,\n goBack: z,\n goForward: V,\n block: y,\n listen: $\n };\n return A;\n}, An = typeof Symbol == \"function\" && typeof Symbol.iterator == \"symbol\" ? function(n) {\n return typeof n;\n} : function(n) {\n return n && typeof Symbol == \"function\" && n.constructor === Symbol && n !== Symbol.prototype ? \"symbol\" : typeof n;\n}, Ks = Object.assign || function(n) {\n for (var t = 1; t < arguments.length; t++) {\n var e = arguments[t];\n for (var r in e)\n Object.prototype.hasOwnProperty.call(e, r) && (n[r] = e[r]);\n }\n return n;\n}, Pn = function(t, e, r) {\n return Math.min(Math.max(t, e), r);\n}, Gs = function() {\n var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, e = t.getUserConfirmation, r = t.initialEntries, s = r === void 0 ? [\"/\"] : r, i = t.initialIndex, o = i === void 0 ? 0 : i, a = t.keyLength, c = a === void 0 ? 6 : a, h = pr(), l = function(S) {\n Ks(x, S), x.length = x.entries.length, h.notifyListeners(x.location, x.action);\n }, u = function() {\n return Math.random().toString(36).substr(2, c);\n }, d = Pn(o, 0, s.length - 1), p = s.map(function(N) {\n return typeof N == \"string\" ? vt(N, void 0, u()) : vt(N, void 0, N.key || u());\n }), b = dr, v = function(S, D) {\n nt(!((typeof S == \"undefined\" ? \"undefined\" : An(S)) === \"object\" && S.state !== void 0 && D !== void 0), \"You should avoid providing a 2nd state argument to push when the 1st argument is a location-like object that already has state; it is ignored\");\n var z = \"PUSH\", V = vt(S, D, u(), x.location);\n h.confirmTransitionTo(V, z, e, function(T) {\n if (T) {\n var f = x.index, w = f + 1, y = x.entries.slice(0);\n y.length > w ? y.splice(w, y.length - w, V) : y.push(V), l({\n action: z,\n location: V,\n index: w,\n entries: y\n });\n }\n });\n }, g = function(S, D) {\n nt(!((typeof S == \"undefined\" ? \"undefined\" : An(S)) === \"object\" && S.state !== void 0 && D !== void 0), \"You should avoid providing a 2nd state argument to replace when the 1st argument is a location-like object that already has state; it is ignored\");\n var z = \"REPLACE\", V = vt(S, D, u(), x.location);\n h.confirmTransitionTo(V, z, e, function(T) {\n T && (x.entries[x.index] = V, l({ action: z, location: V }));\n });\n }, E = function(S) {\n var D = Pn(x.index + S, 0, x.entries.length - 1), z = \"POP\", V = x.entries[D];\n h.confirmTransitionTo(V, z, e, function(T) {\n T ? l({\n action: z,\n location: V,\n index: D\n }) : l();\n });\n }, R = function() {\n return E(-1);\n }, F = function() {\n return E(1);\n }, H = function(S) {\n var D = x.index + S;\n return D >= 0 && D < x.entries.length;\n }, k = function() {\n var S = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1;\n return h.setPrompt(S);\n }, U = function(S) {\n return h.appendListener(S);\n }, x = {\n length: p.length,\n action: \"POP\",\n location: p[d],\n index: d,\n entries: p,\n createHref: b,\n push: v,\n replace: g,\n go: E,\n goBack: R,\n goForward: F,\n canGo: H,\n block: k,\n listen: U\n };\n return x;\n}, Ys = Object.defineProperty, Cn = Object.getOwnPropertySymbols, Zs = Object.prototype.hasOwnProperty, Qs = Object.prototype.propertyIsEnumerable, Sn = (n, t, e) => t in n ? Ys(n, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[t] = e, xt = (n, t) => {\n for (var e in t || (t = {}))\n Zs.call(t, e) && Sn(n, e, t[e]);\n if (Cn)\n for (var e of Cn(t))\n Qs.call(t, e) && Sn(n, e, t[e]);\n return n;\n}, Zt = (n, t, e) => new Promise((r, s) => {\n var i = (c) => {\n try {\n a(e.next(c));\n } catch (h) {\n s(h);\n }\n }, o = (c) => {\n try {\n a(e.throw(c));\n } catch (h) {\n s(h);\n }\n }, a = (c) => c.done ? r(c.value) : Promise.resolve(c.value).then(i, o);\n a((e = e.apply(n, t)).next());\n}), P = /* @__PURE__ */ ((n) => (n.Cookie = \"cookie\", n.Local = \"local\", n.Session = \"session\", n))(P || {}), Lt = /* @__PURE__ */ ((n) => (n.Tenant = \"tenant\", n.Implementation = \"implementation\", n.Widget = \"widget\", n))(Lt || {}), C = /* @__PURE__ */ ((n) => (n.Necessary = \"necessary\", n.Functional = \"functional\", n.Analytical = \"analytical\", n.Marketing = \"marketing\", n))(C || {});\nconst rt = (n, t, e, r = {}) => kn(n, e).then((s) => (process.env.NODE_ENV !== \"production\" && s && I.warn(\n `createStorageWriter: Attempted to create storage writer using unallowed category.\n Key: ${t}\n Category: ${JSON.stringify(e)}\n Options: ${JSON.stringify(r)}`\n), (i) => (sn(n), kn(n, e).then((o) => {\n if (o) {\n process.env.NODE_ENV !== \"production\" && I.warn(\n `storageWriter: Attempted to write to storage using unallowed category.\n Key: ${t}\n Category: ${JSON.stringify(e)}\n Value: ${JSON.stringify(i)}\n Options: ${JSON.stringify(r)}`\n );\n return;\n }\n const {\n scope: a = Lt.Widget,\n medium: c = P.Session,\n duration: h\n } = r, l = ti();\n return l[a][t] = rn(i, e, h), c === P.Cookie ? si(n, l) : oi(n, c, l);\n})))), Z = (n, t, e = P.Session) => (sn(n), typeof t == \"undefined\" ? (process.env.NODE_ENV !== \"production\" && I.warn(\"readStorage: Undefined key passed when reading storage. \", t, e), Promise.resolve(void 0)) : e === P.Cookie ? ri(n).then((r) => de(r, t)) : ii(n, e).then((r) => de(r, t))), Ct = (n) => !!Object.entries(n).filter(([t, e]) => typeof e != \"undefined\").length, ke = (n) => Object.entries(n).filter(([t, e]) => typeof e != \"undefined\").forEach(([t, { value: e }]) => {\n typeof e == \"undefined\" && delete n[t];\n}), gr = (n, t) => {\n const e = {\n tenant: xt(xt({}, n.tenant), t.tenant),\n implementation: xt(xt({}, n.implementation), t.implementation),\n widget: xt(xt({}, n.widget), t.widget)\n };\n return ke(e.tenant), ke(e.implementation), ke(e.widget), e;\n}, Xs = (n) => Object.entries(n).reduce((t, e) => {\n const [r, s] = e;\n return Object.entries(s).forEach((i) => {\n const [o, { expiration: a }] = i;\n a && t.push(a);\n }), t;\n}, []).slice().sort((t, e) => new Date(e).valueOf() - new Date(t).valueOf()).shift() || Ee(), Oe = (n) => {\n const {\n name: t,\n implementation: { name: e, tenant: r }\n } = n.get(\"$widget\");\n return [\n `humany_${r}`,\n `humany_${mn(r + e)}`,\n `humany_${mn(r + e + t)}`\n ];\n}, Ne = (n) => {\n const t = new RegExp(`(?:^|;)\\\\s?${n}=(.*?)(?:;|$)`, \"i\"), e = document.cookie.match(t);\n return e && e[1] && JSON.parse(e[1]) || void 0;\n}, Le = (n, t, e) => {\n const r = `${n}=${JSON.stringify(t).trim()}`, s = `expires=${new Date(e).toUTCString()}`, i = \"path=/\", o = \"SameSite=None;Secure\";\n return document.cookie = `${r}; ${s}; ${i}; ${o}`;\n}, nn = (n) => {\n const [t, e, r] = Oe(n), s = Ne(t) || {}, i = Ne(e) || {}, o = Ne(r) || {};\n return {\n tenant: s,\n implementation: i,\n widget: o\n };\n}, fr = (n, t) => {\n const e = nn(n), r = gr(e, t), [s, i, o] = Oe(n), { tenant: a, implementation: c, widget: h } = r, l = Xs(t), u = Ee({ days: -1 });\n Le(s, a, Ct(a) ? l : u), Le(\n i,\n c,\n Ct(c) ? l : u\n ), Le(o, h, Ct(h) ? l : u);\n}, ue = (n, t) => {\n const [e, r, s] = Oe(n), i = t.getItem(e) || \"{}\", o = t.getItem(r) || \"{}\", a = t.getItem(s) || \"{}\";\n return {\n tenant: JSON.parse(i),\n implementation: JSON.parse(o),\n widget: JSON.parse(a)\n };\n}, Ke = (n, t, e) => {\n const r = ue(n, t), s = gr(r, e), [i, o, a] = Oe(n), { tenant: c, implementation: h, widget: l } = s;\n Ct(c) ? t.setItem(i, JSON.stringify(c)) : t.removeItem(i), Ct(h) ? t.setItem(o, JSON.stringify(h)) : t.removeItem(o), Ct(l) ? t.setItem(a, JSON.stringify(l)) : t.removeItem(a);\n}, ti = () => ({ tenant: {}, implementation: {}, widget: {} }), ei = (n) => n ? !!n && /* @__PURE__ */ new Date() > new Date(n) : !1, de = (n, t) => {\n const e = n.widget[t] || n.implementation[t] || n.tenant[t];\n return e == null ? void 0 : e.value;\n}, rn = (n, t, e) => e ? {\n value: n,\n category: t,\n expiration: typeof e == \"object\" ? Ee(e) : e\n} : {\n value: n,\n category: t\n}, re = (n, t) => {\n const e = as(n);\n return Object.entries(e).forEach(([r, s]) => {\n Object.entries(s).forEach(([i, o]) => {\n const { expiration: a, category: c } = o;\n (ei(a) || ni(t, c)) && (s[i] = rn(void 0, c, a));\n });\n }), e;\n}, kn = (n, t) => Z(n, \"storagePolicy\", P.Cookie).then(\n (e = [C.Necessary]) => !!t && e.indexOf(t) === -1\n), ni = (n = [C.Necessary], t) => !!t && n.indexOf(t) === -1, sn = (n) => {\n const t = nn(n), e = ue(n, window.localStorage), r = ue(n, sessionStorage), s = de(t, \"storagePolicy\"), [i, o, a] = [\n t,\n e,\n r\n ].map((c) => re(c, s));\n fr(n, i), Ke(n, window.localStorage, o), Ke(n, window.sessionStorage, a);\n}, Ee = (n = { days: 30 }) => {\n const { days: t = 0, hours: e = 0, minutes: r = 0, seconds: s = 0 } = n, i = /* @__PURE__ */ new Date();\n return i.setTime(i.getTime() + e * 60 * 60 * 1e3), i.setTime(i.getTime() + t * 24 * 60 * 60 * 1e3), i.setTime(i.getTime() + r * 60 * 1e3), i.setTime(i.getTime() + s * 1e3), i.toISOString();\n}, ri = (n) => X(document)(() => nn(n)), si = (n, t) => X(document)(() => fr(n, t)), ii = (n, t) => {\n const e = t === P.Local ? window.localStorage : window.sessionStorage;\n return X(e)(() => ue(n, e));\n}, oi = (n, t, e) => {\n const r = t === P.Local ? window.localStorage : window.sessionStorage;\n return X(r)(() => Ke(n, r, e));\n};\nlet se = class {\n constructor() {\n this.memory = {\n tenant: {},\n implementation: {},\n widget: {}\n };\n }\n setItem(t, e) {\n return Zt(this, arguments, function* (r, s, i = {}) {\n return X(this)(() => {\n const o = re(this.memory, [C.Necessary]), { scope: a = Lt.Tenant, expiration: c } = i;\n o[a][r] = rn(\n s,\n C.Necessary,\n (c == null ? void 0 : c.toISOString()) || Ee()\n ), this.memory = o, process.env.NODE_ENV !== \"production\" && I.warn(\n `StorageProvider: StorageProvider is deprecated, use createStorageWriter and readStorage instead, value stored temporarily in memory.\n Key: ${r}\n Value: ${JSON.stringify(s)}\n Options: ${JSON.stringify(i)}\n Memory: ${JSON.stringify(o)}`\n );\n });\n });\n }\n getItem(t) {\n return Zt(this, null, function* () {\n return X(this)(() => {\n const e = re(this.memory, [C.Necessary]);\n process.env.NODE_ENV !== \"production\" && I.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 r = de(e, t);\n return this.memory = e, r;\n });\n });\n }\n removeItem(t) {\n return Zt(this, null, function* () {\n return X(this)(() => {\n const e = re(this.memory, [C.Necessary]);\n delete e.tenant[t], delete e.implementation[t], delete e.widget[t], this.memory = e, process.env.NODE_ENV !== \"production\" && I.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 Zt(this, null, function* () {\n return Promise.resolve();\n });\n }\n}, ai = class {\n constructor() {\n this.cookies = new se(), this.session = new se(), this.local = new se();\n }\n};\nconst Me = (n, t, e, ...r) => {\n const s = `[${n.get(\"$environment\").name || \"webprovisions\"}] ${e}`;\n switch (t) {\n case \"info\":\n console.info(s, ...r);\n break;\n case \"warning\":\n console.warn(s, ...r);\n break;\n case \"error\":\n console.error(s, ...r);\n break;\n }\n}, ci = (n) => {\n const t = n.container || n;\n return {\n info: (e, ...r) => Me(t, \"info\", e, ...r),\n warn: (e, ...r) => Me(t, \"warning\", e, ...r),\n error: (e, ...r) => Me(t, \"error\", e, ...r)\n };\n};\nvar pe = /* @__PURE__ */ ((n) => (n.Implementation = \"implementation\", n.Widget = \"widget\", n))(pe || {}), yt = /* @__PURE__ */ ((n) => (n.Pre = \"pre\", n.Post = \"post\", n))(yt || {});\nconst hi = (n, t, e, r) => {\n try {\n const s = new t(e, r);\n return {\n name: n,\n invoke: (i, o) => {\n let a;\n return s[i] && (a = s[i].call(s, o)), Promise.resolve(a);\n },\n getInstance: () => s\n };\n } catch (s) {\n if (s.message && s.message.indexOf(\"is not a constructor\") >= 0)\n return {\n name: n,\n invoke: (i) => {\n let o;\n return i === \"initialize\" && (o = t(e, r)), Promise.resolve(o);\n },\n getInstance: () => t\n };\n throw s;\n }\n};\nfunction Nn(n, t) {\n return typeof n == \"undefined\" ? t : n;\n}\nlet li = class {\n constructor(t = {}) {\n this.part = t;\n }\n createCommand(t, e, r) {\n let s;\n typeof e == \"function\" ? s = {\n scope: pe.Widget,\n stage: yt.Post,\n defaultArgs: void 0,\n handlerResolver: e\n } : s = {\n scope: Nn(e.scope, pe.Widget),\n stage: Nn(e.stage, yt.Post),\n defaultArgs: e.defaultArgs,\n handlerResolver: r\n };\n let i = this.part;\n const o = t.split(\".\");\n return o.forEach((a, c) => {\n c === o.length - 1 ? i[a] || (i[a] = () => s) : i = this.part[a] = this.part[a] || {};\n }), this;\n }\n get() {\n return this.part;\n }\n};\nconst mr = (n) => {\n const t = new li({});\n return n(t), t.get();\n};\nmr((n) => {\n n.createCommand(\n \"types.register\",\n { scope: pe.Implementation, stage: yt.Pre },\n (t) => (e, r) => {\n t.container.get(\"$types\")[e] = r;\n }\n ).createCommand(\n \"type\",\n { stage: yt.Pre },\n (t) => (e) => {\n t.container.register(\"$type\", e);\n }\n ).createCommand(\n \"settings\",\n { stage: yt.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: yt.Pre },\n (t) => (e, r, s) => {\n const { container: i } = t;\n let o = null, a = e, c = r;\n typeof e == \"string\" && (o = e, a = r, c = s);\n const h = (l) => {\n const { transformPluginSettings: u } = t.container.get(\"$environmentOptions\"), d = u ? u(\n c || {},\n o,\n t.container,\n a\n ) : r;\n try {\n const p = hi(\n o,\n a,\n i,\n d\n );\n i.get(\"$plugins\").push(p), l && p.invoke(\"initialize\", null);\n } catch (p) {\n ci(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, r) => {\n t.container.register(e, r);\n }\n ).createCommand(\n \"container.registerAsync\",\n (t) => (e, r) => {\n t.container.registerAsync(e, r);\n }\n ).createCommand(\n \"container.registerFactory\",\n (t) => (e, r) => {\n t.container.registerFactory(e, r);\n }\n ).createCommand(\n \"container.touch\",\n (t) => (e, r) => {\n t.container.touch(e, r);\n }\n ).createCommand(\n \"csp\",\n {},\n (t) => (e) => {\n t.container.register(\"csp\", e);\n }\n );\n});\nmr((n) => {\n n.createCommand(\"storage\", (t) => (e = {}) => {\n const { consent: r } = e;\n if (typeof r != \"undefined\") {\n if (typeof r != \"number\" && typeof r != \"string\" && !Array.isArray(r)) {\n process.env.NODE_ENV !== \"production\" && I.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(r)}`\n );\n return;\n }\n if (Array.isArray(r) && !r.every(\n (i) => typeof i == \"number\" || typeof i == \"string\"\n )) {\n process.env.NODE_ENV !== \"production\" && I.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(r)}`\n );\n return;\n }\n const s = [\n C.Necessary,\n C.Functional,\n C.Analytical,\n C.Marketing\n ].filter((i, o, a) => typeof r == \"number\" ? r > o : typeof r == \"string\" ? a.indexOf(r) + 1 > o : Array.isArray(r) ? r.findIndex((c) => c === o + 1 || c === i) > -1 : !0);\n return s.indexOf(C.Necessary) === -1 && (process.env.NODE_ENV !== \"production\" && I.warn(\n `storagePolicyConfigurationApi: passed consent does not include category: '${C.Necessary}'. Consent has to atleast include the '${C.Necessary}' category.\n Passed consent: ${JSON.stringify(r)}`\n ), s.unshift(C.Necessary)), rt(\n t.container,\n \"storagePolicy\",\n C.Necessary,\n {\n medium: P.Cookie,\n scope: Lt.Tenant,\n duration: { days: 365 }\n }\n ).then((i) => i(s)).then(() => {\n sn(t.container), t.events.dispatch(\"storage:policy-changed\", s);\n });\n }\n });\n});\nconst ui = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({\n __proto__: null,\n StorageCategory: C,\n StorageMedium: P,\n StorageProvider: ai,\n StorageScope: Lt,\n StorageService: se,\n createStorageWriter: rt,\n readStorage: Z\n}, Symbol.toStringTag, { value: \"Module\" }));\nvar di = Object.defineProperty, pi = Object.defineProperties, gi = Object.getOwnPropertyDescriptors, ge = Object.getOwnPropertySymbols, vr = Object.prototype.hasOwnProperty, yr = Object.prototype.propertyIsEnumerable, Ln = (n, t, e) => t in n ? di(n, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[t] = e, At = (n, t) => {\n for (var e in t || (t = {}))\n vr.call(t, e) && Ln(n, e, t[e]);\n if (ge)\n for (var e of ge(t))\n yr.call(t, e) && Ln(n, e, t[e]);\n return n;\n}, br = (n, t) => pi(n, gi(t)), fi = (n, t) => {\n var e = {};\n for (var r in n)\n vr.call(n, r) && t.indexOf(r) < 0 && (e[r] = n[r]);\n if (n != null && ge)\n for (var r of ge(n))\n t.indexOf(r) < 0 && yr.call(n, r) && (e[r] = n[r]);\n return e;\n};\nfunction wr(n) {\n if (n.__esModule)\n return n;\n var t = n.default;\n if (typeof t == \"function\") {\n var e = function r() {\n if (this instanceof r) {\n var s = [null];\n s.push.apply(s, arguments);\n var i = Function.bind.apply(t, s);\n return new i();\n }\n return t.apply(this, arguments);\n };\n e.prototype = t.prototype;\n } else\n e = {};\n return Object.defineProperty(e, \"__esModule\", { value: !0 }), Object.keys(n).forEach(function(r) {\n var s = Object.getOwnPropertyDescriptor(n, r);\n Object.defineProperty(e, r, s.get ? s : {\n enumerable: !0,\n get: function() {\n return n[r];\n }\n });\n }), e;\n}\nvar $r = function() {\n};\nprocess.env.NODE_ENV !== \"production\" && ($r = function(n, t, e) {\n var r = arguments.length;\n e = new Array(r > 2 ? r - 2 : 0);\n for (var s = 2; s < r; s++)\n e[s - 2] = arguments[s];\n if (t === void 0)\n throw new Error(\n \"`warning(condition, format, ...args)` requires a warning message argument\"\n );\n if (t.length < 10 || /^[s\\W]*$/.test(t))\n throw new Error(\n \"The warning format should be able to uniquely identify this warning. Please, use a more descriptive format than: \" + t\n );\n if (!n) {\n var i = 0, o = \"Warning: \" + t.replace(/%s/g, function() {\n return e[i++];\n });\n typeof console != \"undefined\" && console.error(o);\n try {\n throw new Error(o);\n } catch (a) {\n }\n }\n});\nvar mi = $r, vi = mi, Mn = yi(vi);\nfunction yi(n) {\n return n && n.__esModule ? n : { default: n };\n}\nvar bi = function() {\n var n = null, t = function(o) {\n return (0, Mn.default)(n == null, \"A history supports only one prompt at a time\"), n = o, function() {\n n === o && (n = null);\n };\n }, e = function(o, a, c, h) {\n if (n != null) {\n var l = typeof n == \"function\" ? n(o, a) : n;\n typeof l == \"string\" ? typeof c == \"function\" ? c(l, h) : ((0, Mn.default)(!1, \"A history needs a getUserConfirmation function in order to use a prompt message\"), h(!0)) : h(l !== !1);\n } else\n h(!0);\n }, r = [], s = function(o) {\n var a = !0, c = function() {\n a && o.apply(void 0, arguments);\n };\n return r.push(c), function() {\n a = !1, r = r.filter(function(h) {\n return h !== c;\n });\n };\n }, i = function() {\n for (var o = arguments.length, a = Array(o), c = 0; c < o; c++)\n a[c] = arguments[c];\n r.forEach(function(h) {\n return h.apply(void 0, a);\n });\n };\n return {\n setPrompt: t,\n confirmTransitionTo: e,\n appendListener: s,\n notifyListeners: i\n };\n}, Or = bi, Er;\nEr = function(n, t) {\n return t(window.confirm(n));\n};\nfunction Qt(n) {\n return n.charAt(0) === \"/\";\n}\nfunction De(n, t) {\n for (var e = t, r = e + 1, s = n.length; r < s; e += 1, r += 1)\n n[e] = n[r];\n n.pop();\n}\nfunction wi(n) {\n var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : \"\", e = n && n.split(\"/\") || [], r = t && t.split(\"/\") || [], s = n && Qt(n), i = t && Qt(t), o = s || i;\n if (n && Qt(n) ? r = e : e.length && (r.pop(), r = r.concat(e)), !r.length)\n return \"/\";\n var a = void 0;\n if (r.length) {\n var c = r[r.length - 1];\n a = c === \".\" || c === \"..\" || c === \"\";\n } else\n a = !1;\n for (var h = 0, l = r.length; l >= 0; l--) {\n var u = r[l];\n u === \".\" ? De(r, l) : u === \"..\" ? (De(r, l), h++) : h && (De(r, l), h--);\n }\n if (!o)\n for (; h--; h)\n r.unshift(\"..\");\n o && r[0] !== \"\" && (!r[0] || !Qt(r[0])) && r.unshift(\"\");\n var d = r.join(\"/\");\n return a && d.substr(-1) !== \"/\" && (d += \"/\"), d;\n}\nconst $i = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({\n __proto__: null,\n default: wi\n}, Symbol.toStringTag, { value: \"Module\" })), Oi = /* @__PURE__ */ wr($i);\nvar Dn = typeof Symbol == \"function\" && typeof Symbol.iterator == \"symbol\" ? function(n) {\n return typeof n;\n} : function(n) {\n return n && typeof Symbol == \"function\" && n.constructor === Symbol && n !== Symbol.prototype ? \"symbol\" : typeof n;\n};\nfunction ie(n, t) {\n if (n === t)\n return !0;\n if (n == null || t == null)\n return !1;\n if (Array.isArray(n))\n return Array.isArray(t) && n.length === t.length && n.every(function(c, h) {\n return ie(c, t[h]);\n });\n var e = typeof n == \"undefined\" ? \"undefined\" : Dn(n), r = typeof t == \"undefined\" ? \"undefined\" : Dn(t);\n if (e !== r)\n return !1;\n if (e === \"object\") {\n var s = n.valueOf(), i = t.valueOf();\n if (s !== n || i !== t)\n return ie(s, i);\n var o = Object.keys(n), a = Object.keys(t);\n return o.length !== a.length ? !1 : o.every(function(c) {\n return ie(n[c], t[c]);\n });\n }\n return !1;\n}\nconst Ei = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({\n __proto__: null,\n default: ie\n}, Symbol.toStringTag, { value: \"Module\" })), xi = /* @__PURE__ */ wr(Ei);\nvar st = {}, at, xr, Ge, Ut;\nst.__esModule = !0;\nUt = st.addLeadingSlash = function(n) {\n return n.charAt(0) === \"/\" ? n : \"/\" + n;\n};\nGe = st.stripLeadingSlash = function(n) {\n return n.charAt(0) === \"/\" ? n.substr(1) : n;\n};\nvar _i = st.hasBasename = function(n, t) {\n return new RegExp(\"^\" + t + \"(\\\\/|\\\\?|#|$)\", \"i\").test(n);\n};\nst.stripBasename = function(n, t) {\n return _i(n, t) ? n.substr(t.length) : n;\n};\nxr = st.stripTrailingSlash = function(n) {\n return n.charAt(n.length - 1) === \"/\" ? n.slice(0, -1) : n;\n};\nst.parsePath = function(n) {\n var t = n || \"/\", e = \"\", r = \"\", s = t.indexOf(\"#\");\n s !== -1 && (r = t.substr(s), t = t.substr(0, s));\n var i = t.indexOf(\"?\");\n return i !== -1 && (e = t.substr(i), t = t.substr(0, i)), {\n pathname: t,\n search: e === \"?\" ? \"\" : e,\n hash: r === \"#\" ? \"\" : r\n };\n};\nat = st.createPath = function(n) {\n var t = n.pathname, e = n.search, r = n.hash, s = t || \"/\";\n return e && e !== \"?\" && (s += e.charAt(0) === \"?\" ? e : \"?\" + e), r && r !== \"#\" && (s += r.charAt(0) === \"#\" ? r : \"#\" + r), s;\n};\nvar xe, _r = xe = void 0, Ai = Object.assign || function(n) {\n for (var t = 1; t < arguments.length; t++) {\n var e = arguments[t];\n for (var r in e)\n Object.prototype.hasOwnProperty.call(e, r) && (n[r] = e[r]);\n }\n return n;\n}, Pi = Oi, Ci = Ar(Pi), Si = xi, ki = Ar(Si), Ni = st;\nfunction Ar(n) {\n return n && n.__esModule ? n : { default: n };\n}\nxe = function(n, t, e, r) {\n var s = void 0;\n typeof n == \"string\" ? (s = (0, Ni.parsePath)(n), s.state = t) : (s = Ai({}, n), s.pathname === void 0 && (s.pathname = \"\"), s.search ? s.search.charAt(0) !== \"?\" && (s.search = \"?\" + s.search) : s.search = \"\", s.hash ? s.hash.charAt(0) !== \"#\" && (s.hash = \"#\" + s.hash) : s.hash = \"\", t !== void 0 && s.state === void 0 && (s.state = t));\n try {\n s.pathname = decodeURI(s.pathname);\n } catch (i) {\n throw i instanceof URIError ? new URIError('Pathname \"' + s.pathname + '\" could not be decoded. This is likely caused by an invalid percent-encoding.') : i;\n }\n return e && (s.key = e), r ? s.pathname ? s.pathname.charAt(0) !== \"/\" && (s.pathname = (0, Ci.default)(s.pathname, r.pathname)) : s.pathname = r.pathname : s.pathname || (s.pathname = \"/\"), s;\n};\n_r = function(n, t) {\n return n.pathname === t.pathname && n.search === t.search && n.hash === t.hash && n.key === t.key && (0, ki.default)(n.state, t.state);\n};\nconst Pr = \"/\", Cr = \"./\", Li = new RegExp(\n [\n // Match escaped characters that would otherwise appear in future matches.\n // This allows the user to escape special characters that won't transform.\n \"(\\\\\\\\.)\",\n // Match Express-style parameters and un-named parameters with a prefix\n // and optional suffixes. Matches appear as:\n //\n // \"/:test(\\\\d+)?\" => [\"/\", \"test\", \"\\d+\", undefined, \"?\"]\n // \"/route(\\\\d+)\" => [undefined, undefined, undefined, \"\\d+\", undefined]\n \"(?:\\\\:(\\\\w+)(?:\\\\(((?:\\\\\\\\.|[^\\\\\\\\()])+)\\\\))?|\\\\(((?:\\\\\\\\.|[^\\\\\\\\()])+)\\\\))([+*?])?\"\n ].join(\"|\"),\n \"g\"\n), Sr = (n, t) => {\n const e = [];\n let r = 0, s = 0, i = \"\";\n const o = t && t.delimiter || Pr, a = t && t.delimiters || Cr;\n let c = !1, h;\n for (; (h = Li.exec(n)) !== null; ) {\n const l = h[0], u = h[1], d = h.index;\n if (i += n.slice(s, d), s = d + l.length, u) {\n i += u[1], c = !0;\n continue;\n }\n let p = \"\";\n const b = n[s], v = h[2], g = h[3], E = h[4], R = h[5];\n if (!c && i.length) {\n const N = i.length - 1;\n a.indexOf(i[N]) > -1 && (p = i[N], i = i.slice(0, N));\n }\n i && (e.push(i), i = \"\", c = !1);\n const F = p !== \"\" && b !== void 0 && b !== p, H = R === \"+\" || R === \"*\", k = R === \"?\" || R === \"*\", U = p || o, x = g || E;\n e.push({\n delimiter: U,\n optional: k,\n repeat: H,\n partial: F,\n name: v || r++,\n // tslint:disable-line:no-increment-decrement\n prefix: p,\n pattern: x ? ji(x) : \"[^\" + Tt(U) + \"]+?\"\n });\n }\n return (i || s < n.length) && e.push(i + n.substr(s)), e;\n}, Mi = (n, t) => Di(Sr(n, t)), Di = (n) => {\n const t = new Array(n.length);\n for (let e = 0; e < n.length; e++)\n typeof n[e] == \"object\" && (t[e] = new RegExp(\"^(?:\" + n[e].pattern + \")$\"));\n return function(e, r) {\n let s = \"\";\n const i = r && r.encode || encodeURIComponent;\n for (let o = 0; o < n.length; o++) {\n const a = n[o];\n if (typeof a == \"string\") {\n s += a;\n continue;\n }\n const c = e ? e[a.name] : void 0;\n let h;\n if (Array.isArray(c)) {\n if (!a.repeat)\n throw new TypeError(\n 'Expected \"' + a.name + '\" to not repeat, but got array'\n );\n if (c.length === 0) {\n if (a.optional)\n continue;\n throw new TypeError('Expected \"' + a.name + '\" to not be empty');\n }\n for (let l = 0; l < c.length; l++) {\n if (h = i(c[l], a), !t[o].test(h))\n throw new TypeError(\n 'Expected all \"' + a.name + '\" to match \"' + a.pattern + '\"'\n );\n s += (l === 0 ? a.prefix : a.delimiter) + h;\n }\n continue;\n }\n if (typeof c == \"string\" || typeof c == \"number\" || typeof c == \"boolean\") {\n if (h = i(String(c), a), !t[o].test(h))\n throw new TypeError(\n 'Expected \"' + a.name + '\" to match \"' + a.pattern + '\", but got \"' + h + '\"'\n );\n s += a.prefix + h;\n continue;\n }\n if (a.optional) {\n a.partial && (s += a.prefix);\n continue;\n }\n throw new TypeError(\n 'Expected \"' + a.name + '\" to be ' + (a.repeat ? \"an array\" : \"a string\")\n );\n }\n return s;\n };\n}, Tt = (n) => n.replace(/([.+*?=^!:${}()[\\]|/\\\\])/g, \"\\\\$1\"), ji = (n) => n.replace(/([=!:$/()])/g, \"\\\\$1\"), kr = (n) => n && n.sensitive ? \"\" : \"i\", Ri = (n, t) => {\n if (!t)\n return n;\n const e = n.source.match(/\\((?!\\?)/g);\n if (e)\n for (let r = 0; r < e.length; r++)\n t.push({\n name: r,\n prefix: \"\",\n delimiter: \"\",\n optional: !1,\n repeat: !1,\n partial: !1,\n pattern: \"\"\n });\n return n;\n}, Ti = (n, t, e) => {\n const r = [];\n for (let s = 0; s < n.length; s++)\n r.push(Nr(n[s], t, e).source);\n return new RegExp(\"(?:\" + r.join(\"|\") + \")\", kr(e));\n}, Ii = (n, t, e) => Hi(Sr(n, e), t, e), Hi = (n, t, e) => {\n e = e || {};\n const r = e.strict, s = e.end !== !1, i = Tt(e.delimiter || Pr), o = e.delimiters || Cr, a = [].concat(e.endsWith || []).map(Tt).concat(\"$\").join(\"|\");\n let c = \"\", h = !1;\n for (let l = 0; l < n.length; l++) {\n const u = n[l];\n if (typeof u == \"string\")\n c += Tt(u), h = l === n.length - 1 && o.indexOf(u[u.length - 1]) > -1;\n else {\n const d = Tt(u.prefix), p = u.repeat ? \"(?:\" + u.pattern + \")(?:\" + d + \"(?:\" + u.pattern + \"))*\" : u.pattern;\n t && t.push(u), u.optional ? u.partial ? c += d + \"(\" + p + \")?\" : c += \"(?:\" + d + \"(\" + p + \"))?\" : c += d + \"(\" + p + \")\";\n }\n }\n return s ? (r || (c += \"(?:\" + i + \")?\"), c += a === \"$\" ? \"$\" : \"(?=\" + a + \")\") : (r || (c += \"(?:\" + i + \"(?=\" + a + \"))?\"), h || (c += \"(?=\" + i + \"|\" + a + \")\")), new RegExp(\"^\" + c, kr(e));\n}, Nr = (n, t, e) => n instanceof RegExp ? Ri(n, t || []) : Array.isArray(n) ? Ti(n, t, e) : Ii(n, t, e), fe = Nr;\nvar Y = /* @__PURE__ */ ((n) => (n.scopedHash = \"scopedHash\", n.hash = \"hash\", n.browser = \"browser\", n.memory = \"memory\", n))(Y || {}), ft = /* @__PURE__ */ ((n) => (n.storage = \"storage\", n.path = \"path\", n.initialPath = \"initial\", n))(ft || {});\nconst It = (n, t) => {\n const e = [], r = fe(t, e).exec(n);\n if (!r)\n return {};\n const [s, ...i] = r;\n return e.reduce((o, a, c) => (o[a.name] = i[c], o), {});\n}, Ui = (n) => Object.keys(n).reduce((t, e) => {\n const r = typeof n[e] == \"string\" ? n[e].replace(\"&\", \"%20\") : n[e];\n let s = `${e}=${r}`;\n return t.length > 1 && (s = \"&\".concat(s)), t.concat(s);\n}, \"?\"), je = (n, t) => {\n const e = t.find((r) => r.name === n);\n if (!e) {\n process.env.NODE_ENV !== \"production\" && I.warn(`Unable to find route with specified name: ${n}`);\n return;\n }\n return e;\n}, Lr = (n) => n.length ? n.slice(1).split(\"&\").map((t) => t.split(\"=\")).reduce((t, e) => {\n const [r, s] = e.map(encodeURI).map(decodeURIComponent);\n return br(At({}, t), { [r]: decodeURIComponent(s).replace(\"%20\", \"&\") });\n}, {}) : {}, Vi = (n, t) => {\n const e = t.map((r) => oe(n, r)).reduce(\n (r, s) => {\n if (s === null)\n return r;\n const i = s.split(\"?\")[1];\n let o = 0;\n if (i) {\n const a = Lr(`?${i}`);\n o = Object.keys(a).length;\n }\n return !r.path || r.count && o < r.count ? {\n count: o,\n path: s\n } : r;\n },\n { count: void 0, path: void 0 }\n );\n return e ? e.path : t[0];\n}, oe = (n, t) => {\n const e = $t(n);\n if (Array.isArray(t)) {\n const c = Vi(e, t);\n if (!c)\n throw new Error(\"Unable to match path.\");\n return c;\n }\n const r = Mi(t);\n let s = t;\n try {\n s = r(e);\n } catch (c) {\n return null;\n }\n const i = [];\n fe(t, i);\n const o = Object.keys(e).reduce((c, h) => (i.find((l) => l.name === h) || c.push(h), c), []), a = {};\n return o.forEach((c) => a[c] = e[c]), Object.keys(a).forEach((c) => a[c] === null && delete a[c]), Object.keys(a).length > 0 ? `${s}${Ui(a)}` : s;\n}, _t = (n, t) => {\n let e = n;\n return e.indexOf(\"?\") > -1 && (e = e.substring(0, e.indexOf(\"?\"))), e.indexOf(\";\") > -1 && (e = e.substring(0, e.indexOf(\";\"))), e === \"\" && (e = \"/\"), t.reduce((r, s) => {\n if (Array.isArray(s.path))\n return s.path.reduce((o, a) => fe(a, []).exec(e || \"\") && !o ? e : o, void 0) && !r ? s : r;\n if (!s.path)\n return r;\n const i = [];\n return fe(s.path, i).exec(e || \"\") && !r ? s : r;\n }, void 0);\n}, Bi = (n) => {\n let t = n.get(\"historyTransitionManager\");\n return t || (t = Or(), n.parent && n.parent.register(\"historyTransitionManager\", t)), t;\n}, Ht = (n, t = null) => n ? xe(t ? t(n) : n) : {\n pathname: \"\",\n search: \"\",\n hash: \"\"\n}, zi = (n, t) => {\n if ($t(n), $t(t), Object.keys(n).length !== Object.keys(t).length)\n return !1;\n if (Object.keys(n).length === 0 && Object.keys(t).length === 0)\n return !0;\n let e = !0;\n return Object.keys(t).forEach((r) => {\n t[r] !== n[r] && (e = !1);\n }), e;\n}, Wi = (n) => {\n if (typeof n.mode == \"string\") {\n if (n.mode === Y.memory)\n return !0;\n } else if (n.mode[1]) {\n const [t, { sticky: e }] = n.mode;\n if (t === Y.memory)\n return typeof e == \"undefined\" ? !0 : e;\n }\n return !1;\n}, Re = (n) => {\n const { views: t } = n.get(\"$settings\"), e = Object.keys(t).reduce((r, s) => typeof t[s].path == \"undefined\" ? s : r, void 0);\n return e ? {\n name: e,\n params: {}\n } : null;\n}, jn = \"hashchange\", Fi = {\n hashbang: {\n encodePath: (n) => n.charAt(0) === \"!\" ? n : \"!/\" + Ge(n),\n decodePath: (n) => n.charAt(0) === \"!\" ? n.substr(1) : n\n },\n noslash: {\n encodePath: Ge,\n decodePath: Ut\n },\n slash: {\n encodePath: Ut,\n decodePath: Ut\n }\n}, ct = () => {\n const n = window.location.href, t = n.indexOf(\"#\");\n return t === -1 ? \"\" : n.substring(t + 1);\n}, Rn = (n) => window.location.hash = n, Tn = (n) => {\n const t = window.location.href.indexOf(\"#\");\n window.location.replace(\n window.location.href.slice(0, t >= 0 ? t : 0) + \"#\" + n\n );\n}, ae = (n = \"\") => {\n const t = n.replace(\";\", \"?\"), e = [\n { from: /\\;+/gi, to: \"&\" },\n { from: /:+/gi, to: \"=\" }\n ];\n let r = t;\n return e.forEach(({ to: s, from: i }) => {\n r = r.replace(i, s);\n }), r;\n}, qi = (n = {}) => {\n const t = window.history, { getUserConfirmation: e = Er, hashType: r = \"slash\" } = n, s = n.basename ? xr(Ut(n.basename)) : \"\", { encodePath: i } = Fi[r], o = () => {\n const f = ct(), w = l(f);\n return Ht(w, ae);\n }, a = n.transitionManager || Or(), c = (f) => {\n Object.assign(T, f), T.length = t.length, a.notifyListeners(T.location, T.action, n.widgetName);\n };\n let h = !1;\n const l = (f) => {\n const w = ($) => {\n function A(_, m) {\n const O = {};\n let L;\n for (; L = m.exec(_); )\n O[L[1]] = L[2];\n return O;\n }\n return A($, /([^#?&=]+)=([^&#]*)(?!.*?\\#)/gi) || null;\n }, y = \"humany-\" + n.widgetName;\n return w(f)[y];\n }, u = () => {\n const f = o(), w = T.location;\n !h && _r(w, f) || d(f);\n }, d = (f) => {\n if (h)\n h = !1, c();\n else {\n const w = \"POP\";\n a.confirmTransitionTo(\n f,\n w,\n e,\n (y) => {\n y ? c({ action: w, location: f }) : p(f);\n }\n );\n }\n }, p = (f) => {\n const w = T.location;\n let y = g.lastIndexOf(at(w));\n y === -1 && (y = 0);\n let $ = g.lastIndexOf(at(f));\n $ === -1 && ($ = 0);\n const A = y - $;\n A && (h = !0, x(A));\n }, b = ct(), v = i(b);\n b !== v && Tn(v);\n let g = [];\n const E = o();\n E.pathname !== null && g.push(at(E));\n const R = (f = \"\") => {\n const w = [\n { from: /\\?+/gi, to: \";\" },\n { from: /\\&amp;+/gi, to: \";\" },\n { from: /\\&+/gi, to: \";\" },\n { from: /=+/gi, to: \":\" }\n ];\n let y = f;\n return w.forEach(({ to: $, from: A }) => {\n y = y.replace(A, $);\n }), y;\n }, F = (f, w, y) => {\n let $ = \"\", A = !1;\n return f.split(\"&\").forEach((_) => {\n const m = _.split(\"=\"), O = m[0], L = m[1];\n if (O === w) {\n if (A = !0, y === null)\n return;\n $.length > 0 && ($ += \"&\"), typeof y != \"undefined\" ? $ += O + \"=\" + y : $ += O;\n } else\n O && ($.length > 0 && ($ += \"&\"), $ += O + \"=\" + L);\n }), !A && y !== null && ($.length > 0 && ($ += \"&\"), typeof y != \"undefined\" ? $ += w + \"=\" + y : $ += w), $;\n }, H = (f) => {\n const w = f.pathname, y = R(f.search), $ = w + (y ? `;${y}` : \"\"), A = `humany-${n.widgetName}`, _ = ct();\n return `#${F(_, A, $).replace(\";;\", \";\")}`;\n }, k = (f, w) => {\n const y = \"PUSH\", $ = Ht(f, ae), A = $.pathname, _ = R($.search), m = A + (_ ? `${_}` : \"\"), O = `humany-${n.widgetName}`, L = ct(), M = F(L, O, m);\n a.confirmTransitionTo($, y, e, (K) => {\n if (!K)\n return;\n const G = at($), it = i(M);\n if (ct() !== it) {\n Rn(it);\n const Q = g.lastIndexOf(at(T.location)), q = g.slice(0, Q === -1 ? 0 : Q + 1);\n q.push(G), g = q, c({ action: y, location: $ });\n } else\n c();\n });\n }, U = (f, w) => {\n const y = \"REPLACE\", $ = Ht(f, ae);\n a.confirmTransitionTo($, y, e, (A) => {\n if (!A)\n return;\n const _ = at($), m = i(s + _);\n ct() !== m && Tn(m);\n const O = g.indexOf(at(T.location));\n O !== -1 && (g[O] = _), c({ action: y, location: $ });\n });\n }, x = (f) => {\n t.go(f);\n }, N = () => x(-1), S = () => x(1);\n let D = 0;\n const z = (f) => {\n D += f, D === 1 ? window.addEventListener(jn, u) : D === 0 && window.removeEventListener(jn, u);\n };\n let V = !1;\n const T = {\n createHref: H,\n createLocation: Ht,\n push: k,\n replace: U,\n go: x,\n goBack: N,\n goForward: S,\n block: (f = !1) => {\n const w = a.setPrompt(f);\n return V || (z(1), V = !0), () => (V && (V = !1, z(-1)), w());\n },\n listen: (f) => {\n const w = a.appendListener(f);\n return z(1), () => {\n z(-1), w();\n };\n },\n stop: () => {\n const f = ct(), w = F(f, `humany-${n.widgetName}`, null), y = i(w);\n Rn(y);\n },\n length: t.length,\n action: \"POP\",\n location: E\n };\n return T;\n}, Mr = qi, Ji = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({\n __proto__: null,\n decodeSearch: ae,\n default: Mr,\n getHashPath: ct\n}, Symbol.toStringTag, { value: \"Module\" })), Ki = (n, t) => {\n const e = (s) => {\n function i(o, a) {\n const c = {};\n let h;\n for (; h = a.exec(o); )\n c[h[1]] = h[2];\n return c;\n }\n return i(s, /([^#?&=]+)=([^&#]*)(?!.*?\\#)/gi) || null;\n }, r = `humany-${t}`;\n return e(n)[r];\n}, Gi = () => {\n const n = window.location.href, t = n.indexOf(\"#\");\n return t === -1 ? \"\" : n.substring(t + 1);\n}, Yi = (n = \"\") => {\n const t = n.replace(\";\", \"?\"), e = [\n { from: /\\;+/gi, to: \"&\" },\n { from: /:+/gi, to: \"=\" }\n ];\n let r = t;\n return e.forEach(({ to: s, from: i }) => {\n r = r.replace(i, s);\n }), r;\n}, Zi = (n, t = null) => n ? xe(t ? t(n) : n) : {\n pathname: \"\",\n search: \"\",\n hash: \"\"\n}, Dr = (n) => {\n const t = Gi(), e = Ki(t, n);\n return Zi(e, Yi);\n}, on = (n) => {\n const { name: t } = n.get(\"$widget\");\n return !!Dr(t).pathname;\n};\nXe((n) => {\n n.createCommand(\"routing\", (t) => (e) => {\n const r = {\n mode: e.mode\n };\n e.basePath && (r.basePath = e.basePath), t.container.register(\"routingSettings\", r);\n });\n});\nconst In = \"routeData\";\nclass Qi {\n constructor(t, e) {\n this.container = t, this.steps = [], this.historyListenSubscription = () => {\n }, this.sticky = !1, this.storageWriter = null, this.widget = t.get(\"$widget\");\n const r = e, { routes: s } = r, i = fi(r, [\"routes\"]);\n this.settings = At(At({}, i), t.get(\"routingSettings\")), this.sticky = Wi(this.settings), this.storageMedium = this.sticky ? P.Local : P.Session, rt(t, In, C.Necessary, {\n medium: this.storageMedium\n }).then((o) => this.storageWriter = o), this.routes = s;\n }\n initialize() {\n return this.initialized = this.initialized || this.createHistory().then((t) => {\n this.history = t, this.location = t.location, this.historyListenSubscription = t.listen(\n (e, r, s) => this.handleLocationChange(e, s)\n );\n });\n }\n setMatch(t) {\n if (this.match = t, this.location) {\n const e = this.getRouteData(), r = {\n routeData: e,\n location: this.location\n }, s = this.steps[0], i = e.name === (s == null ? void 0 : s.routeData.name), o = vn(\n e.params,\n (s == null ? void 0 : s.routeData.params) || {}\n );\n (!i || !o) && (this.widget.events.dispatch(\"router:change\", { next: r, previous: s }), this.steps.unshift(r), this.storageWriter && this.storageWriter(r.routeData), this.widget.events.dispatch(\"router:changed\", { previous: s, current: r }));\n }\n }\n onRouteChange(t) {\n return this.widget.events.subscribe(\"router:change\", t);\n }\n isSticky() {\n return this.sticky;\n }\n /**\n * Generate a formatted path from string\n * @param routeName Name of route to generate path for\n * @param params Optional: route params\n */\n generate(t, e = {}) {\n const r = je(t, this.routes);\n if (!r || !this.history)\n throw `No route found for ${t}`;\n const s = oe(e, r.path);\n if (!s)\n throw `Unable to generate path for \"${t}\".`;\n const i = Ht(s, this.settings.decodeSearch);\n let o = this.history.createHref(i);\n const { mode: a, basePath: c } = this.settings;\n return a === \"browser\" && c && (o = o.replace(c, \"\")), o.charAt(0) !== \"/\" && (o = `/${o}`), o;\n }\n /**\n * Navigate to path\n * @param routeName Route to navigate to\n * @param params Optional: route params\n */\n navigate(t, e = {}) {\n const r = je(t, this.routes);\n if (!r || !this.history)\n return;\n const s = oe(e, r.path);\n if (!s)\n return;\n const i = this.getRouteData(), o = i && i.name === t && zi(i.params, e);\n if (this.steps[0] && o)\n return;\n const { decodeSearch: a } = this.settings, c = a ? a(s) : s;\n this.widget.events.dispatch(\"router:navigate\", {\n decodedPath: c\n }), c.charAt(0) !== \"/\" ? this.history.push(`/${c}`) : this.history.push(c);\n }\n /**\n * Return true or false depending\n * on whether it is possible to navigate backwards\n */\n hasBack() {\n if (this.steps.length > 1)\n return !0;\n const t = this.getRouteData(this.settings.initialPath), e = this.getRouteData(), r = e.name === t.name, s = vn(e.params, t.params);\n return !r || !s;\n }\n /**\n * Navigate to previous route\n */\n goBack(t = 1) {\n if (this.steps.length < 2) {\n const e = this.getRouteData(this.settings.initialPath);\n e && e.name && (this.navigate(e.name, e.params), this.steps = []);\n } else {\n const e = t >= this.steps.length ? this.steps.length - 1 : t, { routeData: r } = this.steps[e];\n this.steps = [...this.steps.slice(e + 1)], this.navigate(r.name, os(r.params));\n }\n }\n /**\n * Navigate to next route\n */\n goForward() {\n this.history && this.history.goForward();\n }\n /**\n * Get the current location\n */\n current() {\n return this.location;\n }\n /**\n * Get the initial route. If the defined initial route does not exist,\n * return the first defined route\n */\n getInitialRoute() {\n const { name: t } = this.getRouteData(this.settings.initialPath);\n return this.routes.find((r) => r.name === t) || (this.routes.length > 0 ? this.routes[0] : (process.env.NODE_ENV !== \"production\" && I.warn(\"Unable to get initial route as no routes are defined.\"), null));\n }\n getRouteData(t) {\n const e = Re(this.container);\n if (t) {\n const r = _t(t, this.routes);\n return r ? {\n params: $t(It(t, r.path)),\n name: r.name\n } : e || {\n name: \"\",\n params: {}\n };\n }\n if (this.location) {\n const { pathname: r, search: s } = this.location;\n if (this.currentRoute = this.currentRoute || _t(r, this.routes), this.currentRoute) {\n const { path: i, name: o } = this.currentRoute;\n this.match || (this.match = {\n params: It(r, i),\n isExact: !0,\n path: i,\n url: r\n });\n const a = $t(At(At({}, this.match.params), s.length > 0 && Lr(s)));\n return {\n name: o,\n params: a\n };\n }\n }\n return e || {\n name: \"\",\n params: {}\n };\n }\n dispose() {\n return this.historyListenSubscription(), this.stop();\n }\n /**\n * Setup and load the initial route based on router configuration\n */\n setupInitialRoute() {\n return Z(this.container, In, this.storageMedium).then(\n (t) => {\n if (!this.location || !this.history)\n return;\n const { initialPath: e, mode: r } = this.settings;\n switch ((() => {\n const s = on(this.container);\n return r === Y.browser || s ? ft.path : r === Y.memory && t ? ft.storage : ft.initialPath;\n })()) {\n case ft.initialPath: {\n const s = this.getRouteData(e);\n return s && s.name ? this.navigate(s.name, s.params) : void 0;\n }\n case ft.path: {\n const { pathname: s } = this.location;\n if (this.currentRoute = _t(s, this.routes), this.currentRoute) {\n const { path: o } = this.currentRoute;\n return this.setMatch({\n params: It(s, o),\n isExact: !0,\n path: o,\n url: s\n });\n }\n const i = Re(this.container);\n return i ? this.setMatch({\n params: {},\n isExact: !0,\n path: i.name,\n url: s\n }) : void 0;\n }\n case ft.storage: {\n const { pathname: s } = this.location;\n this.currentRoute = _t(s, this.routes);\n const { name: i = \"\", params: o = {} } = t || {}, a = je(i, this.routes);\n if (a) {\n const c = oe(o, a.path);\n if (c)\n return this.history.push(c), this.location = br(At({}, this.location), { pathname: c }), this.currentRoute = _t(c, this.routes), this.setMatch({\n params: o,\n isExact: !0,\n path: a.path,\n url: c\n });\n }\n return;\n }\n }\n }\n );\n }\n start() {\n return this.setupInitialRoute();\n }\n stop() {\n return this.history && (this.settings.mode === Y.scopedHash && this.history.stop(), this.steps = [], this.storageWriter) ? this.storageWriter() : Promise.resolve();\n }\n handleLocationChange(t, e) {\n const { pathname: r } = t, { mode: s } = this.settings;\n if (r.indexOf(\"?\") > -1 || r.indexOf(\";\") > -1 || s === Y.scopedHash && e !== this.widget.name)\n return;\n this.location = t, this.currentRoute = _t(r, this.routes);\n const i = Re(this.container);\n if (this.currentRoute) {\n const { path: o } = this.currentRoute;\n this.setMatch({\n params: It(r, o),\n isExact: !0,\n path: o,\n url: r\n });\n } else\n i && this.setMatch({\n params: {},\n isExact: !0,\n path: i.name,\n url: r\n });\n }\n createHistory() {\n return new Promise((t) => {\n const { mode: e, basePath: r } = this.settings;\n if (e === Y.scopedHash) {\n const s = this.widget.name, i = Bi(this.container);\n return Promise.resolve().then(() => Ji).then((o) => {\n const a = o.default({\n widgetName: s,\n transitionManager: i,\n hashType: \"noslash\"\n });\n return t(a);\n });\n }\n if (e === Y.memory)\n return t(Gs());\n if (e === Y.browser)\n return t(Js({ basename: r }));\n throw \"RoutingService: History could not be created.\";\n });\n }\n}\nconst Xi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({\n __proto__: null,\n HistoryMode: Y,\n RoutingService: Qi,\n createHashHistory: Mr,\n getScopedHashDOMLocation: Dr,\n matchParams: It,\n onWidgetUrl: on\n}, Symbol.toStringTag, { value: \"Module\" })), Te = (n, t, e, ...r) => {\n const s = `[${n.get(\"$environment\").name || \"webprovisions\"}] ${e}`;\n switch (t) {\n case \"info\":\n console.info(s, ...r);\n break;\n case \"warning\":\n console.warn(s, ...r);\n break;\n case \"error\":\n console.error(s, ...r);\n break;\n }\n}, to = (n) => {\n const t = n.container || n;\n return {\n info: (e, ...r) => Te(t, \"info\", e, ...r),\n warn: (e, ...r) => Te(t, \"warning\", e, ...r),\n error: (e, ...r) => Te(t, \"error\", e, ...r)\n };\n};\nvar Bt = /* @__PURE__ */ ((n) => (n.Implementation = \"implementation\", n.Widget = \"widget\", n))(Bt || {}), ut = /* @__PURE__ */ ((n) => (n.Pre = \"pre\", n.Post = \"post\", n))(ut || {});\nconst eo = (n, t, e, r) => {\n try {\n const s = new t(e, r);\n return {\n name: n,\n invoke: (i, o) => {\n let a;\n return s[i] && (a = s[i].call(s, o)), Promise.resolve(a);\n },\n getInstance: () => s\n };\n } catch (s) {\n if (s.message && s.message.indexOf(\"is not a constructor\") >= 0)\n return {\n name: n,\n invoke: (i) => {\n let o;\n return i === \"initialize\" && (o = t(e, r)), Promise.resolve(o);\n },\n getInstance: () => t\n };\n throw s;\n }\n};\nfunction Hn(n, t) {\n return typeof n == \"undefined\" ? t : n;\n}\nclass no {\n constructor(t = {}) {\n this.part = t;\n }\n createCommand(t, e, r) {\n let s;\n typeof e == \"function\" ? s = {\n scope: Bt.Widget,\n stage: ut.Post,\n defaultArgs: void 0,\n handlerResolver: e\n } : s = {\n scope: Hn(e.scope, Bt.Widget),\n stage: Hn(e.stage, ut.Post),\n defaultArgs: e.defaultArgs,\n handlerResolver: r\n };\n let i = this.part;\n const o = t.split(\".\");\n return o.forEach((a, c) => {\n c === o.length - 1 ? i[a] || (i[a] = () => s) : i = this.part[a] = this.part[a] || {};\n }), this;\n }\n get() {\n return this.part;\n }\n}\nconst jr = (n) => {\n const t = new no({});\n return n(t), t.get();\n};\njr((n) => {\n n.createCommand(\n \"types.register\",\n { scope: Bt.Implementation, stage: ut.Pre },\n (t) => (e, r) => {\n t.container.get(\"$types\")[e] = r;\n }\n ).createCommand(\n \"type\",\n { stage: ut.Pre },\n (t) => (e) => {\n t.container.register(\"$type\", e);\n }\n ).createCommand(\n \"settings\",\n { stage: ut.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: ut.Pre },\n (t) => (e, r, s) => {\n const { container: i } = t;\n let o = null, a = e, c = r;\n typeof e == \"string\" && (o = e, a = r, c = s);\n const h = (l) => {\n const { transformPluginSettings: u } = t.container.get(\"$environmentOptions\"), d = u ? u(\n c || {},\n o,\n t.container,\n a\n ) : r;\n try {\n const p = eo(\n o,\n a,\n i,\n d\n );\n i.get(\"$plugins\").push(p), l && p.invoke(\"initialize\", null);\n } catch (p) {\n to(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, r) => {\n t.container.register(e, r);\n }\n ).createCommand(\n \"container.registerAsync\",\n (t) => (e, r) => {\n t.container.registerAsync(e, r);\n }\n ).createCommand(\n \"container.registerFactory\",\n (t) => (e, r) => {\n t.container.registerFactory(e, r);\n }\n ).createCommand(\n \"container.touch\",\n (t) => (e, r) => {\n t.container.touch(e, r);\n }\n ).createCommand(\n \"csp\",\n {},\n (t) => (e) => {\n t.container.register(\"csp\", e);\n }\n );\n});\nfunction ro(n) {\n const t = {};\n return [].filter.call(n.attributes, (e) => /^data-/.test(e.name)).map((e) => e.name).forEach((e) => t[e.substr(5)] = n.getAttribute(e)), t;\n}\nconst Un = (n, t, e) => {\n const r = ro(n);\n e({\n sourceDOMElement: n,\n eventType: t,\n data: r\n });\n};\nfunction Vn(n, t, e) {\n n.forEach((r) => {\n r.dataset.attached !== \"true\" && (t === \"load\" ? Un(r, t, e) : r.addEventListener(t, (s) => {\n s.preventDefault(), Un(r, t, e);\n }), r.dataset.monitored = \"true\");\n });\n}\nfunction so(n, t, e) {\n const r = n.container.get(\"bootstrapping.monitor\");\n r && r.events.subscribe(\"bootstrap:trigger-elements-updated\", (i, o) => {\n Vn(\n o.triggerElements,\n t,\n e\n );\n });\n const s = n.container.get(\"triggerElements\");\n s && Vn(\n s,\n t,\n e\n );\n}\njr((n) => {\n n.createCommand(\n \"ready\",\n { scope: Bt.Implementation, stage: ut.Pre },\n (t) => (e) => {\n const { container: r } = t, s = r.owner;\n r.get(\"bootstrapping\").ready ? e(s) : s.events.subscribeOnce(\"bootstrap:ready\", () => {\n e(s);\n });\n }\n );\n});\nconst io = (n) => {\n const t = (s, i) => {\n s && (i ? s.classList.add(\"ace-tabbing\") : s.classList.remove(\"ace-tabbing\"));\n }, e = (s) => {\n s.key === \"Tab\" ? t(n, !0) : s.key === \"Enter\" && document.activeElement && document.activeElement.classList.contains(\"ace-widget-trigger\") || t(n, !1);\n }, r = (s) => {\n document.activeElement && document.activeElement.classList.contains(\"ace-widget-trigger\") && document.activeElement.classList.contains(\"ace-tabbing\") || t(n, !1);\n };\n return document.addEventListener(\"keydown\", e), document.addEventListener(\"click\", r), () => {\n document.removeEventListener(\"keydown\", e), document.removeEventListener(\"click\", r);\n };\n};\nfunction oo(n, t) {\n const {\n // symbol,\n widgetName: e,\n label: r = \"\",\n ariaLabel: s = \"\",\n tooltip: i = \"\"\n } = t;\n return n.classList.add(\"ace-widget-trigger\"), n.classList.add(`ace-widget_${e}`), r.length && n.classList.add(\"trigger-has-text\"), s.length && !n.getAttribute(\"aria-label\") && n.setAttribute(\"aria-label\", s), s.length && !n.getAttribute(\"tabindex\") && n.setAttribute(\"tabindex\", \"0\"), i.length && !n.getAttribute(\"title\") && n.setAttribute(\"title\", i), io(n);\n}\nfunction ao(n, t) {\n n instanceof HTMLElement ? (t && n.setAttribute(\"title\", t), n.classList.remove(\"ace-trigger-active\"), n.classList.remove(\"ace-trigger-loading\")) : n instanceof Array && n.forEach((e) => {\n t && e.setAttribute(\"title\", t), e.classList.remove(\"ace-trigger-active\"), e.classList.remove(\"ace-trigger-loading\");\n });\n}\nfunction co(n) {\n n instanceof HTMLElement ? (n.classList.remove(\"ace-trigger-active\"), n.classList.add(\"ace-trigger-loading\")) : n instanceof Array && n.forEach((t) => {\n t.classList.remove(\"ace-trigger-active\"), t.classList.add(\"ace-trigger-loading\");\n });\n}\nfunction Rr(n, t) {\n n instanceof HTMLElement ? (t && n.setAttribute(\"title\", t), n.classList.add(\"ace-trigger-active\"), n.classList.remove(\"ace-trigger-loading\")) : n instanceof Array && n.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 ce = window, an = ce.ShadowRoot && (ce.ShadyCSS === void 0 || ce.ShadyCSS.nativeShadow) && \"adoptedStyleSheets\" in Document.prototype && \"replace\" in CSSStyleSheet.prototype, cn = Symbol(), Bn = /* @__PURE__ */ new WeakMap();\nlet Tr = class {\n constructor(t, e, r) {\n if (this._$cssResult$ = !0, r !== cn)\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 (an && t === void 0) {\n const r = e !== void 0 && e.length === 1;\n r && (t = Bn.get(e)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), r && Bn.set(e, t));\n }\n return t;\n }\n toString() {\n return this.cssText;\n }\n};\nconst ho = (n) => new Tr(typeof n == \"string\" ? n : n + \"\", void 0, cn), Ir = (n, ...t) => {\n const e = n.length === 1 ? n[0] : t.reduce((r, s, i) => r + ((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 })(s) + n[i + 1], n[0]);\n return new Tr(e, n, cn);\n}, lo = (n, t) => {\n an ? n.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet) : t.forEach((e) => {\n const r = document.createElement(\"style\"), s = ce.litNonce;\n s !== void 0 && r.setAttribute(\"nonce\", s), r.textContent = e.cssText, n.appendChild(r);\n });\n}, zn = an ? (n) => n : (n) => n instanceof CSSStyleSheet ? ((t) => {\n let e = \"\";\n for (const r of t.cssRules)\n e += r.cssText;\n return ho(e);\n})(n) : n;\n/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\nvar Ie;\nconst me = window, Wn = me.trustedTypes, uo = Wn ? Wn.emptyScript : \"\", Fn = me.reactiveElementPolyfillSupport, Ye = { toAttribute(n, t) {\n switch (t) {\n case Boolean:\n n = n ? uo : null;\n break;\n case Object:\n case Array:\n n = n == null ? n : JSON.stringify(n);\n }\n return n;\n}, fromAttribute(n, t) {\n let e = n;\n switch (t) {\n case Boolean:\n e = n !== null;\n break;\n case Number:\n e = n === null ? null : Number(n);\n break;\n case Object:\n case Array:\n try {\n e = JSON.parse(n);\n } catch (r) {\n e = null;\n }\n }\n return e;\n} }, Hr = (n, t) => t !== n && (t == t || n == n), He = { attribute: !0, type: String, converter: Ye, reflect: !1, hasChanged: Hr }, Ze = \"finalized\";\nlet Pt = 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, r) => {\n const s = this._$Ep(r, e);\n s !== void 0 && (this._$Ev.set(s, r), t.push(s));\n }), t;\n }\n static createProperty(t, e = He) {\n if (e.state && (e.attribute = !1), this.finalize(), this.elementProperties.set(t, e), !e.noAccessor && !this.prototype.hasOwnProperty(t)) {\n const r = typeof t == \"symbol\" ? Symbol() : \"__\" + t, s = this.getPropertyDescriptor(t, r, e);\n s !== void 0 && Object.defineProperty(this.prototype, t, s);\n }\n }\n static getPropertyDescriptor(t, e, r) {\n return { get() {\n return this[e];\n }, set(s) {\n const i = this[t];\n this[e] = s, this.requestUpdate(t, i, r);\n }, configurable: !0, enumerable: !0 };\n }\n static getPropertyOptions(t) {\n return this.elementProperties.get(t) || He;\n }\n static finalize() {\n if (this.hasOwnProperty(Ze))\n return !1;\n this[Ze] = !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, r = [...Object.getOwnPropertyNames(e), ...Object.getOwnPropertySymbols(e)];\n for (const s of r)\n this.createProperty(s, e[s]);\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 r = new Set(t.flat(1 / 0).reverse());\n for (const s of r)\n e.unshift(zn(s));\n } else\n t !== void 0 && e.push(zn(t));\n return e;\n }\n static _$Ep(t, e) {\n const r = e.attribute;\n return r === !1 ? void 0 : typeof r == \"string\" ? r : 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, r;\n ((e = this._$ES) !== null && e !== void 0 ? e : this._$ES = []).push(t), this.renderRoot !== void 0 && this.isConnected && ((r = t.hostConnected) === null || r === void 0 || r.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 lo(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 r;\n return (r = e.hostConnected) === null || r === void 0 ? void 0 : r.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 r;\n return (r = e.hostDisconnected) === null || r === void 0 ? void 0 : r.call(e);\n });\n }\n attributeChangedCallback(t, e, r) {\n this._$AK(t, r);\n }\n _$EO(t, e, r = He) {\n var s;\n const i = this.constructor._$Ep(t, r);\n if (i !== void 0 && r.reflect === !0) {\n const o = (((s = r.converter) === null || s === void 0 ? void 0 : s.toAttribute) !== void 0 ? r.converter : Ye).toAttribute(e, r.type);\n this._$El = t, o == null ? this.removeAttribute(i) : this.setAttribute(i, o), this._$El = null;\n }\n }\n _$AK(t, e) {\n var r;\n const s = this.constructor, i = s._$Ev.get(t);\n if (i !== void 0 && this._$El !== i) {\n const o = s.getPropertyOptions(i), a = typeof o.converter == \"function\" ? { fromAttribute: o.converter } : ((r = o.converter) === null || r === void 0 ? void 0 : r.fromAttribute) !== void 0 ? o.converter : Ye;\n this._$El = i, this[i] = a.fromAttribute(e, o.type), this._$El = null;\n }\n }\n requestUpdate(t, e, r) {\n let s = !0;\n t !== void 0 && (((r = r || this.constructor.getPropertyOptions(t)).hasChanged || Hr)(this[t], e) ? (this._$AL.has(t) || this._$AL.set(t, e), r.reflect === !0 && this._$El !== t && (this._$EC === void 0 && (this._$EC = /* @__PURE__ */ new Map()), this._$EC.set(t, r))) : s = !1), !this.isUpdatePending && s && (this._$E_ = this._$Ej());\n }\n _$Ej() {\n return B(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((s, i) => this[i] = s), this._$Ei = void 0);\n let e = !1;\n const r = this._$AL;\n try {\n e = this.shouldUpdate(r), e ? (this.willUpdate(r), (t = this._$ES) === null || t === void 0 || t.forEach((s) => {\n var i;\n return (i = s.hostUpdate) === null || i === void 0 ? void 0 : i.call(s);\n }), this.update(r)) : this._$Ek();\n } catch (s) {\n throw e = !1, this._$Ek(), s;\n }\n e && this._$AE(r);\n }\n willUpdate(t) {\n }\n _$AE(t) {\n var e;\n (e = this._$ES) === null || e === void 0 || e.forEach((r) => {\n var s;\n return (s = r.hostUpdated) === null || s === void 0 ? void 0 : s.call(r);\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, r) => this._$EO(r, this[r], e)), this._$EC = void 0), this._$Ek();\n }\n updated(t) {\n }\n firstUpdated(t) {\n }\n};\nPt[Ze] = !0, Pt.elementProperties = /* @__PURE__ */ new Map(), Pt.elementStyles = [], Pt.shadowRootOptions = { mode: \"open\" }, Fn == null || Fn({ ReactiveElement: Pt }), ((Ie = me.reactiveElementVersions) !== null && Ie !== void 0 ? Ie : me.reactiveElementVersions = []).push(\"1.6.3\");\n/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\nvar Ue;\nconst ve = window, St = ve.trustedTypes, qn = St ? St.createPolicy(\"lit-html\", { createHTML: (n) => n }) : void 0, Qe = \"$lit$\", ht = `lit$${(Math.random() + \"\").slice(9)}$`, Ur = \"?\" + ht, po = `<${Ur}>`, Ot = document, zt = () => Ot.createComment(\"\"), Wt = (n) => n === null || typeof n != \"object\" && typeof n != \"function\", Vr = Array.isArray, go = (n) => Vr(n) || typeof (n == null ? void 0 : n[Symbol.iterator]) == \"function\", Ve = `[ \t\n\\f\\r]`, Dt = /<(?:(!--|\\/[^a-zA-Z])|(\\/?[a-zA-Z][^>\\s]*)|(\\/?$))/g, Jn = /-->/g, Kn = />/g, pt = RegExp(`>|${Ve}(?:([^\\\\s\"'>=/]+)(${Ve}*=${Ve}*(?:[^ \t\n\\f\\r\"'\\`<>=]|(\"|')|))|$)`, \"g\"), Gn = /'/g, Yn = /\"/g, Br = /^(?:script|style|textarea|title)$/i, fo = (n) => (t, ...e) => ({ _$litType$: n, strings: t, values: e }), Xt = fo(1), Et = Symbol.for(\"lit-noChange\"), j = Symbol.for(\"lit-nothing\"), Zn = /* @__PURE__ */ new WeakMap(), bt = Ot.createTreeWalker(Ot, 129, null, !1);\nfunction zr(n, t) {\n if (!Array.isArray(n) || !n.hasOwnProperty(\"raw\"))\n throw Error(\"invalid template strings array\");\n return qn !== void 0 ? qn.createHTML(t) : t;\n}\nconst mo = (n, t) => {\n const e = n.length - 1, r = [];\n let s, i = t === 2 ? \"<svg>\" : \"\", o = Dt;\n for (let a = 0; a < e; a++) {\n const c = n[a];\n let h, l, u = -1, d = 0;\n for (; d < c.length && (o.lastIndex = d, l = o.exec(c), l !== null); )\n d = o.lastIndex, o === Dt ? l[1] === \"!--\" ? o = Jn : l[1] !== void 0 ? o = Kn : l[2] !== void 0 ? (Br.test(l[2]) && (s = RegExp(\"</\" + l[2], \"g\")), o = pt) : l[3] !== void 0 && (o = pt) : o === pt ? l[0] === \">\" ? (o = s != null ? s : Dt, u = -1) : l[1] === void 0 ? u = -2 : (u = o.lastIndex - l[2].length, h = l[1], o = l[3] === void 0 ? pt : l[3] === '\"' ? Yn : Gn) : o === Yn || o === Gn ? o = pt : o === Jn || o === Kn ? o = Dt : (o = pt, s = void 0);\n const p = o === pt && n[a + 1].startsWith(\"/>\") ? \" \" : \"\";\n i += o === Dt ? c + po : u >= 0 ? (r.push(h), c.slice(0, u) + Qe + c.slice(u) + ht + p) : c + ht + (u === -2 ? (r.push(void 0), a) : p);\n }\n return [zr(n, i + (n[e] || \"<?>\") + (t === 2 ? \"</svg>\" : \"\")), r];\n};\nclass Ft {\n constructor({ strings: t, _$litType$: e }, r) {\n let s;\n this.parts = [];\n let i = 0, o = 0;\n const a = t.length - 1, c = this.parts, [h, l] = mo(t, e);\n if (this.el = Ft.createElement(h, r), bt.currentNode = this.el.content, e === 2) {\n const u = this.el.content, d = u.firstChild;\n d.remove(), u.append(...d.childNodes);\n }\n for (; (s = bt.nextNode()) !== null && c.length < a; ) {\n if (s.nodeType === 1) {\n if (s.hasAttributes()) {\n const u = [];\n for (const d of s.getAttributeNames())\n if (d.endsWith(Qe) || d.startsWith(ht)) {\n const p = l[o++];\n if (u.push(d), p !== void 0) {\n const b = s.getAttribute(p.toLowerCase() + Qe).split(ht), v = /([.?@])?(.*)/.exec(p);\n c.push({ type: 1, index: i, name: v[2], strings: b, ctor: v[1] === \".\" ? yo : v[1] === \"?\" ? wo : v[1] === \"@\" ? $o : _e });\n } else\n c.push({ type: 6, index: i });\n }\n for (const d of u)\n s.removeAttribute(d);\n }\n if (Br.test(s.tagName)) {\n const u = s.textContent.split(ht), d = u.length - 1;\n if (d > 0) {\n s.textContent = St ? St.emptyScript : \"\";\n for (let p = 0; p < d; p++)\n s.append(u[p], zt()), bt.nextNode(), c.push({ type: 2, index: ++i });\n s.append(u[d], zt());\n }\n }\n } else if (s.nodeType === 8)\n if (s.data === Ur)\n c.push({ type: 2, index: i });\n else {\n let u = -1;\n for (; (u = s.data.indexOf(ht, u + 1)) !== -1; )\n c.push({ type: 7, index: i }), u += ht.length - 1;\n }\n i++;\n }\n }\n static createElement(t, e) {\n const r = Ot.createElement(\"template\");\n return r.innerHTML = t, r;\n }\n}\nfunction kt(n, t, e = n, r) {\n var s, i, o, a;\n if (t === Et)\n return t;\n let c = r !== void 0 ? (s = e._$Co) === null || s === void 0 ? void 0 : s[r] : e._$Cl;\n const h = Wt(t) ? void 0 : t._$litDirective$;\n return (c == null ? void 0 : c.constructor) !== h && ((i = c == null ? void 0 : c._$AO) === null || i === void 0 || i.call(c, !1), h === void 0 ? c = void 0 : (c = new h(n), c._$AT(n, e, r)), r !== void 0 ? ((o = (a = e)._$Co) !== null && o !== void 0 ? o : a._$Co = [])[r] = c : e._$Cl = c), c !== void 0 && (t = kt(n, c._$AS(n, t.values), c, r)), t;\n}\nclass vo {\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: r }, parts: s } = this._$AD, i = ((e = t == null ? void 0 : t.creationScope) !== null && e !== void 0 ? e : Ot).importNode(r, !0);\n bt.currentNode = i;\n let o = bt.nextNode(), a = 0, c = 0, h = s[0];\n for (; h !== void 0; ) {\n if (a === h.index) {\n let l;\n h.type === 2 ? l = new Kt(o, o.nextSibling, this, t) : h.type === 1 ? l = new h.ctor(o, h.name, h.strings, this, t) : h.type === 6 && (l = new Oo(o, this, t)), this._$AV.push(l), h = s[++c];\n }\n a !== (h == null ? void 0 : h.index) && (o = bt.nextNode(), a++);\n }\n return bt.currentNode = Ot, i;\n }\n v(t) {\n let e = 0;\n for (const r of this._$AV)\n r !== void 0 && (r.strings !== void 0 ? (r._$AI(t, r, e), e += r.strings.length - 2) : r._$AI(t[e])), e++;\n }\n}\nclass Kt {\n constructor(t, e, r, s) {\n var i;\n this.type = 2, this._$AH = j, this._$AN = void 0, this._$AA = t, this._$AB = e, this._$AM = r, this.options = s, this._$Cp = (i = s == null ? void 0 : s.isConnected) === null || i === void 0 || i;\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 = kt(this, t, e), Wt(t) ? t === j || t == null || t === \"\" ? (this._$AH !== j && this._$AR(), this._$AH = j) : t !== this._$AH && t !== Et && this._(t) : t._$litType$ !== void 0 ? this.g(t) : t.nodeType !== void 0 ? this.$(t) : go(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 !== j && Wt(this._$AH) ? this._$AA.nextSibling.data = t : this.$(Ot.createTextNode(t)), this._$AH = t;\n }\n g(t) {\n var e;\n const { values: r, _$litType$: s } = t, i = typeof s == \"number\" ? this._$AC(t) : (s.el === void 0 && (s.el = Ft.createElement(zr(s.h, s.h[0]), this.options)), s);\n if (((e = this._$AH) === null || e === void 0 ? void 0 : e._$AD) === i)\n this._$AH.v(r);\n else {\n const o = new vo(i, this), a = o.u(this.options);\n o.v(r), this.$(a), this._$AH = o;\n }\n }\n _$AC(t) {\n let e = Zn.get(t.strings);\n return e === void 0 && Zn.set(t.strings, e = new Ft(t)), e;\n }\n T(t) {\n Vr(this._$AH) || (this._$AH = [], this._$AR());\n const e = this._$AH;\n let r, s = 0;\n for (const i of t)\n s === e.length ? e.push(r = new Kt(this.k(zt()), this.k(zt()), this, this.options)) : r = e[s], r._$AI(i), s++;\n s < e.length && (this._$AR(r && r._$AB.nextSibling, s), e.length = s);\n }\n _$AR(t = this._$AA.nextSibling, e) {\n var r;\n for ((r = this._$AP) === null || r === void 0 || r.call(this, !1, !0, e); t && t !== this._$AB; ) {\n const s = t.nextSibling;\n t.remove(), t = s;\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 _e {\n constructor(t, e, r, s, i) {\n this.type = 1, this._$AH = j, this._$AN = void 0, this.element = t, this.name = e, this._$AM = s, this.options = i, r.length > 2 || r[0] !== \"\" || r[1] !== \"\" ? (this._$AH = Array(r.length - 1).fill(new String()), this.strings = r) : this._$AH = j;\n }\n get tagName() {\n return this.element.tagName;\n }\n get _$AU() {\n return this._$AM._$AU;\n }\n _$AI(t, e = this, r, s) {\n const i = this.strings;\n let o = !1;\n if (i === void 0)\n t = kt(this, t, e, 0), o = !Wt(t) || t !== this._$AH && t !== Et, o && (this._$AH = t);\n else {\n const a = t;\n let c, h;\n for (t = i[0], c = 0; c < i.length - 1; c++)\n h = kt(this, a[r + c], e, c), h === Et && (h = this._$AH[c]), o || (o = !Wt(h) || h !== this._$AH[c]), h === j ? t = j : t !== j && (t += (h != null ? h : \"\") + i[c + 1]), this._$AH[c] = h;\n }\n o && !s && this.j(t);\n }\n j(t) {\n t === j ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t != null ? t : \"\");\n }\n}\nclass yo extends _e {\n constructor() {\n super(...arguments), this.type = 3;\n }\n j(t) {\n this.element[this.name] = t === j ? void 0 : t;\n }\n}\nconst bo = St ? St.emptyScript : \"\";\nclass wo extends _e {\n constructor() {\n super(...arguments), this.type = 4;\n }\n j(t) {\n t && t !== j ? this.element.setAttribute(this.name, bo) : this.element.removeAttribute(this.name);\n }\n}\nclass $o extends _e {\n constructor(t, e, r, s, i) {\n super(t, e, r, s, i), this.type = 5;\n }\n _$AI(t, e = this) {\n var r;\n if ((t = (r = kt(this, t, e, 0)) !== null && r !== void 0 ? r : j) === Et)\n return;\n const s = this._$AH, i = t === j && s !== j || t.capture !== s.capture || t.once !== s.once || t.passive !== s.passive, o = t !== j && (s === j || i);\n i && this.element.removeEventListener(this.name, this, s), o && this.element.addEventListener(this.name, this, t), this._$AH = t;\n }\n handleEvent(t) {\n var e, r;\n typeof this._$AH == \"function\" ? this._$AH.call((r = (e = this.options) === null || e === void 0 ? void 0 : e.host) !== null && r !== void 0 ? r : this.element, t) : this._$AH.handleEvent(t);\n }\n}\nclass Oo {\n constructor(t, e, r) {\n this.element = t, this.type = 6, this._$AN = void 0, this._$AM = e, this.options = r;\n }\n get _$AU() {\n return this._$AM._$AU;\n }\n _$AI(t) {\n kt(this, t);\n }\n}\nconst Qn = ve.litHtmlPolyfillSupport;\nQn == null || Qn(Ft, Kt), ((Ue = ve.litHtmlVersions) !== null && Ue !== void 0 ? Ue : ve.litHtmlVersions = []).push(\"2.8.0\");\nconst Eo = (n, t, e) => {\n var r, s;\n const i = (r = e == null ? void 0 : e.renderBefore) !== null && r !== void 0 ? r : t;\n let o = i._$litPart$;\n if (o === void 0) {\n const a = (s = e == null ? void 0 : e.renderBefore) !== null && s !== void 0 ? s : null;\n i._$litPart$ = o = new Kt(t.insertBefore(zt(), a), a, void 0, e != null ? e : {});\n }\n return o._$AI(n), o;\n};\n/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\nvar Be, ze;\nlet Vt = class extends Pt {\n constructor() {\n super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;\n }\n createRenderRoot() {\n var t, e;\n const r = super.createRenderRoot();\n return (t = (e = this.renderOptions).renderBefore) !== null && t !== void 0 || (e.renderBefore = r.firstChild), r;\n }\n update(t) {\n const e = this.render();\n this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do = Eo(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 Et;\n }\n};\nVt.finalized = !0, Vt._$litElement$ = !0, (Be = globalThis.litElementHydrateSupport) === null || Be === void 0 || Be.call(globalThis, { LitElement: Vt });\nconst Xn = globalThis.litElementPolyfillSupport;\nXn == null || Xn({ LitElement: Vt });\n((ze = globalThis.litElementVersions) !== null && ze !== void 0 ? ze : globalThis.litElementVersions = []).push(\"3.3.3\");\n/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\nconst xo = (n, t) => t.kind === \"method\" && t.descriptor && !(\"value\" in t.descriptor) ? Mt(tt({}, t), { finisher(e) {\n e.createProperty(t.key, n);\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, n);\n} }, _o = (n, t, e) => {\n t.constructor.createProperty(e, n);\n};\nfunction ye(n) {\n return (t, e) => e !== void 0 ? _o(n, t, e) : xo(n, t);\n}\n/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\nfunction lt(n) {\n return ye(Mt(tt({}, n), { state: !0 }));\n}\n/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\nconst Ao = ({ finisher: n, descriptor: t }) => (e, r) => {\n var s;\n if (r === void 0) {\n const i = (s = e.originalKey) !== null && s !== void 0 ? s : e.key, o = t != null ? { kind: \"method\", placement: \"prototype\", key: i, descriptor: t(e.key) } : Mt(tt({}, e), { key: i });\n return n != null && (o.finisher = function(a) {\n n(a, i);\n }), o;\n }\n {\n const i = e.constructor;\n t !== void 0 && Object.defineProperty(e, r, t(r)), n == null || n(i, r);\n }\n};\n/**\n * @license\n * Copyright 2021 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\nvar We;\n((We = window.HTMLSlotElement) === null || We === void 0 ? void 0 : We.prototype.assignedElements) != null;\n/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\nconst Po = { ATTRIBUTE: 1, CHILD: 2, PROPERTY: 3, BOOLEAN_ATTRIBUTE: 4, EVENT: 5, ELEMENT: 6 }, Co = (n) => (...t) => ({ _$litDirective$: n, values: t });\nlet So = class {\n constructor(t) {\n }\n get _$AU() {\n return this._$AM._$AU;\n }\n _$AT(t, e, r) {\n this._$Ct = t, this._$AM = e, this._$Ci = r;\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 ko = Co(class extends So {\n constructor(n) {\n var t;\n if (super(n), n.type !== Po.ATTRIBUTE || n.name !== \"class\" || ((t = n.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(n) {\n return \" \" + Object.keys(n).filter((t) => n[t]).join(\" \") + \" \";\n }\n update(n, [t]) {\n var e, r;\n if (this.it === void 0) {\n this.it = /* @__PURE__ */ new Set(), n.strings !== void 0 && (this.nt = new Set(n.strings.join(\" \").split(/\\s/).filter((i) => i !== \"\")));\n for (const i in t)\n t[i] && !(!((e = this.nt) === null || e === void 0) && e.has(i)) && this.it.add(i);\n return this.render(t);\n }\n const s = n.element.classList;\n this.it.forEach((i) => {\n i in t || (s.remove(i), this.it.delete(i));\n });\n for (const i in t) {\n const o = !!t[i];\n o === this.it.has(i) || !((r = this.nt) === null || r === void 0) && r.has(i) || (o ? (s.add(i), this.it.add(i)) : (s.remove(i), this.it.delete(i)));\n }\n return Et;\n }\n});\nvar No = Object.defineProperty, Lo = Object.getOwnPropertyDescriptor, Ae = (n, t, e, r) => {\n for (var s = r > 1 ? void 0 : r ? Lo(t, e) : t, i = n.length - 1, o; i >= 0; i--)\n (o = n[i]) && (s = (r ? o(t, e, s) : o(s)) || s);\n return r && s && No(t, e, s), s;\n};\nclass dt extends Vt {\n constructor() {\n super(...arguments), this.active = !1, this.loaded = !1;\n }\n connectedCallback() {\n return B(this, null, function* () {\n pn(dt.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 B(this, null, function* () {\n const e = (r) => B(this, null, function* () {\n return yield import(\"./index-9688347a.js\").then((i) => i[r]);\n });\n if (t) {\n const { type: r, content: s } = t;\n switch (r) {\n case \"Telia\": {\n const i = yield e(s);\n return i ? Xt`<telia-icon\n class=\"trigger-icon\"\n svg=${i.svg}\n size=\"lg\"\n ></telia-icon>` : j;\n }\n case \"FontAwesome\":\n return Xt`<i class=\"trigger-fa-icon fa fa-${s}\"></i>`;\n case \"Uri\":\n return Xt`<i\n class=\"trigger-custom-icon\"\n style=\"background: url(${s}) no-repeat center center;background-size: contain;\"\n ></i>`;\n default:\n return j;\n }\n }\n });\n }\n render() {\n return Xt`<button\n class=${ko({\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}\ndt.styles = [\n Ir`\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];\nAe([\n ye({ attribute: !1 })\n], dt.prototype, \"symbol\", 2);\nAe([\n lt()\n], dt.prototype, \"active\", 2);\nAe([\n lt()\n], dt.prototype, \"loaded\", 2);\nAe([\n lt()\n], dt.prototype, \"icon\", 2);\nvar wt = /* @__PURE__ */ ((n) => (n.Inline = \"inline\", n.Link = \"link\", n.Badge = \"badge\", n.Unsupported = \"unsupported\", n))(wt || {});\nconst Mo = (n, t) => n && t ? \"both\" : n ? \"widgetDOM\" : t ? \"triggerDOM\" : \"none\", Wr = (n) => n ? typeof n == \"boolean\" && n ? \"link\" : typeof n == \"object\" && !Array.isArray(n) ? \"badge\" : \"unsupported\" : \"inline\", Do = (n, t, e, r, s = !1) => B(void 0, null, function* () {\n var h, l;\n const i = Mo(\n t,\n e\n ), o = Wr(r), 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 (i) {\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 u = document.body.appendChild(\n document.createElement(\"a\")\n );\n o === \"link\" && (u.innerText = n), c.triggerDOMElement = u;\n }\n break;\n }\n case \"triggerDOM\": {\n const u = document.createElement(\"div\");\n c.widgetDOMElement = u, o === \"inline\" ? (u.id = (e == null ? void 0 : e.id) || \"\", s ? (u.style.display = \"none\", (h = e == null ? void 0 : e.parentNode) == null || h.appendChild(u), c.callback = () => {\n var d;\n (d = e == null ? void 0 : e.parentNode) == null || d.replaceChild(\n u,\n e\n ), u.style.display = (e == null ? void 0 : e.style.display) || \"block\";\n }) : (l = e == null ? void 0 : e.parentNode) == null || l.replaceChild(\n u,\n e\n ), c.cachedOriginals.widgetDOMElement = e, c.cachedOriginals.triggerDOMElement = void 0) : (c.widgetDOMElement = document.body.appendChild(u), c.triggerDOMElement = e);\n break;\n }\n case \"none\": {\n const u = document.body.appendChild(\n document.createElement(\"div\")\n );\n if (c.widgetDOMElement = u, o !== \"inline\") {\n customElements.get(\"ace-widget-trigger\") || customElements.define(\"ace-widget-trigger\", dt);\n const d = document.createElement(\"ace-widget-trigger\");\n d.symbol = r.symbol, document.body.appendChild(d), console.log(\"Created trigger\"), c.triggerDOMElement = d;\n }\n break;\n }\n }\n return c;\n}), jo = \"modals\";\nclass Ro {\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 r = this.container.get(\"$widget\");\n this.options.widgetDOMElement.classList.add(\"ace-widget\"), this.options.widgetDOMElement.classList.add(`ace-widget_${r.name}`);\n const s = t.get(\"widgetDOMElements\") || [];\n t.register(\"widgetDOMElements\", [\n ...s,\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, r = this.container.get(\"$widget\");\n return t.getAttribute(\"data-rendered\") === \"true\" ? Promise.resolve() : (e && this.options.triggerType === wt.Badge && co(e), import(\"./render-abdea903.js\").then((s) => s.default(this.container, t)).then(() => {\n if (t.setAttribute(\"data-rendered\", \"true\"), e && this.options.triggerType === wt.Badge) {\n const i = this.options.triggerOptions.openTooltip;\n Rr(e, i);\n }\n us(this.container, t);\n const s = this.container.get(\"$environment\").widgets.all();\n Z(\n this.container,\n jo,\n P.Session\n ).then((i) => {\n i && i.forEach((o) => {\n s.find(\n (a) => a.name === o.name && a.state === \"activated\"\n ) && r.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: r } = this.container.get(\"$widget\"), { label: s, symbol: i, ariaLabel: o, closedTooltip: a, openTooltip: c } = t, h = { closedTooltip: a, openTooltip: c };\n this.options.triggerOptions = h;\n const l = oo(e, {\n label: s,\n symbol: i,\n ariaLabel: o,\n widgetName: r,\n tooltip: a\n });\n this.unsubscribe.push(l);\n }\n dispose() {\n return B(this, null, function* () {\n var r, s, i, o;\n const { triggerDOMElement: t, widgetDOMElement: e } = this.options;\n this.options.cachedOriginals.widgetDOMElement && e && ((r = e.parentNode) == null || r.replaceChild(\n this.options.cachedOriginals.widgetDOMElement,\n e\n )), this.options.cachedOriginals.triggerDOMElement && t && ((s = t.parentNode) == null || s.replaceChild(\n this.options.cachedOriginals.triggerDOMElement,\n t\n )), this.unsubscribe.forEach((a) => {\n a();\n }), (i = e.parentNode) == null || i.removeChild(e), (o = t == null ? void 0 : t.parentNode) == null || o.removeChild(t);\n });\n }\n}\nconst te = \"changesets\", To = (n) => {\n const t = { tags: n.tags };\n return n.context && typeof n.context != \"function\" && (t.context = n.context), n.properties && typeof n.properties != \"function\" && (t.properties = n.properties), n.layout && typeof n.layout != \"function\" && (t.layout = n.layout), t;\n};\nclass hn {\n constructor(t, e) {\n this.container = t, this.storageWriter = e;\n }\n static create(t) {\n return rt(\n t,\n te,\n C.Necessary,\n {\n medium: P.Local\n }\n ).then(\n (e) => new hn(t, e)\n );\n }\n write(t, e, r, s) {\n return X(this)(() => Z(\n this.container,\n te,\n P.Local\n ).then((i = {}) => {\n const { keys: o = [], items: a = {} } = i, c = o.indexOf(t);\n return c > -1 && o.splice(c, 1), o.push(t), a[t] = {\n options: s,\n attributes: To(r),\n rules: e.rules\n }, this.storageWriter({ keys: o, items: a });\n }));\n }\n remove(t) {\n return X(this)(() => Z(\n this.container,\n te,\n P.Local\n ).then((e = {}) => {\n const { keys: r = [], items: s = {} } = e, i = r.indexOf(t);\n if (i > -1)\n return r.splice(i, 1), delete s[t], this.storageWriter(e);\n }));\n }\n load(t) {\n return X(this)(() => Z(\n this.container,\n te,\n P.Local\n ).then((e = {}) => {\n const { keys: r = [], items: s = {} } = e;\n r.forEach((i) => {\n const o = s[i];\n if (o) {\n const { rules: a, attributes: c, options: h } = o;\n t.write({\n attributes: c,\n options: h,\n target: new Nt(t, a)\n });\n }\n });\n }));\n }\n}\nconst Io = (n) => {\n const { container: t } = n;\n return hn.create(t).then(\n (e) => {\n const r = t.get(\"$settings\"), s = { localStorage: e }, i = new Jt(n, s), o = ar(i, r);\n return n.events.subscribe(\n \"widget:state-change\",\n (a, c) => {\n c.state === nr.Deactivating && o();\n }\n ), i;\n }\n );\n}, Ho = (n) => Promise.resolve().then(() => Xi).then(\n ({ RoutingService: t, HistoryMode: e }) => n.get(\"settings\").then((r) => {\n const {\n routing: {\n initialPath: s = \"/\",\n mode: i = e.scopedHash,\n basePath: o\n },\n views: a\n } = r;\n return new t(n, {\n initialPath: s,\n mode: i,\n routes: Object.keys(a).map((h) => ({\n name: h,\n path: a[h].path\n })),\n basePath: o\n });\n })\n), Uo = (n) => Promise.resolve().then(() => ui).then(({ StorageProvider: t }) => new t()), Vo = (n) => Promise.resolve().then(() => en).then(({ ActionResolver: t }) => new t(n)), Bo = (n) => Promise.resolve().then(() => en).then(({ ComponentResolver: t }) => new t(n)), zo = (n) => Promise.resolve().then(() => en).then(() => Io(n.get(\"$widget\"))), Fe = \"$settings\", ee = \"open\", tr = \"activeStickyWidget\";\nclass Ca extends ns {\n constructor(t) {\n super(t), this.outlets = /* @__PURE__ */ new Map(), this.activated = void 0, this.subs = [], this.handleBootstrapping = (e) => {\n const r = {\n triggerDOMElement: e.sourceDOMElement,\n withRenderState: \"storage\"\n /* Storage */\n };\n this.container.get(\"settings\").then((s) => {\n const { activate: i } = s;\n (typeof i == \"undefined\" || i === null || i === !0) && (this.activated = (this.activated || this.widget.activate()).then(\n () => this.attach(r)\n ));\n });\n }, this.container.registerAsync(\n \"storage\",\n () => Uo(this.container)\n ), this.container.registerFactory(\"settings\", () => Z(\n this.container,\n Fe,\n P.Local\n ).then((e = {}) => tt(tt({}, this.container.get(\"$settings\")), e))), so(this, \"load\", this.handleBootstrapping), this.container.registerAsync(\n \"componentResolver\",\n () => Bo(this.container)\n ), this.container.registerAsync(\n \"router\",\n () => Ho(this.container)\n ), this.container.registerAsync(\n \"actionResolver\",\n () => Vo(this.container)\n ), this.container.register(\"matchMedia\", window.matchMedia), this.container.registerAsync(\n \"components\",\n () => zo(this.container)\n );\n }\n initialize() {\n const t = this.container.getManyAsync(\n \"actionResolver\",\n \"router\",\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: r, router: s, components: i }, o]) => {\n var h;\n r.subscribe(\n this.widget.name,\n (l, u, d) => this.onAction(u, d)\n );\n const a = (l) => {\n i.nodes.query({ type: \"view\" }).forEach((u) => {\n i.setSwitch(u, l);\n });\n }, c = ((h = s.getInitialRoute()) == null ? void 0 : h.name) || \"index\";\n return a(c), this.events.subscribe(\"widget:data-loaded\", (l, { element: u }) => {\n this.widget.container.get(\"seoConfiguration\") && this.events.dispatch(\"widget:preloaded-replaced\", {\n element: u\n });\n }), this.events.subscribe(\n \"router:change\",\n (l, { previous: u = { routeData: {} }, next: d = { routeData: {} } }) => {\n const { routeData: p } = u, { routeData: b } = d, v = Object.keys(o.views).reduce(\n (g, E) => typeof o.views[E].path == \"undefined\" ? E : g,\n \"\"\n );\n !b.name && v ? a(v) : a(b.name), $t(p && p.params), $t(b && b.params), this.container.getAsync(\"actionResolver\").then((g) => {\n g.action(this.widget.name, \"routeChange\", {\n next: b,\n previous: p\n });\n });\n }\n ), s.initialize();\n }\n );\n }\n attach(t = {}) {\n return this.container.get(\"settings\").then((r) => B(this, [r], function* ({ trigger: e }) {\n var p, b;\n const {\n widgetDOMElement: s,\n key: i = qt(),\n triggerDOMElement: o,\n withRenderState: a\n } = t, h = Wr(e) === wt.Inline && ((o == null ? void 0 : o.childElementCount) || 0) > 0, l = yield Do(\n this.widget.name,\n s,\n o,\n e,\n h\n );\n this.outlets.size < 1 && !a && this.setRenderState(\"unset\");\n const u = () => {\n const v = () => g.querySelectorAll(\"[data-loading=true]\").length === 0, [g] = this.widget.container.get(\"widgetDOMElements\"), E = (H, k) => {\n v() && (l.callback && l.callback(), k.disconnect());\n }, R = {\n attributes: !0,\n subtree: !0,\n childList: !0\n };\n v() && l.callback && l.callback(), new MutationObserver(E).observe(g, R);\n };\n h && this.widget.container.getAsync(\"dataClient\").then(({ events: v }) => {\n v.subscribe(\n \"data-client:fetched\",\n (g, E) => {\n E.unresolvedQueries === 0 && u();\n }\n );\n });\n const d = this.getOrCreateViewOutlet(i, l);\n if (this.outlets.set(i, d), this.widget.events.dispatch(\"widget:attached\", {}, { bubbles: !0 }), l.triggerType === wt.Badge && e && ((p = l.triggerDOMElement) == null || p.setAttribute(\n \"aria-expanded\",\n \"false\"\n ), d == null || d.renderBadge(e)), l.triggerType !== wt.Inline && ((b = l.triggerDOMElement) == null || b.addEventListener(\n \"click\",\n (v) => {\n v.preventDefault(), this.container.get(\"settings\").then(({ trigger: g }) => {\n d.render().then(() => this.renderState()).then((E) => g && g.action && g.action === \"hide\" ? E === J.open ? this.hide() : this.open() : E === J.open ? this.close() : this.open());\n });\n }\n )), this.outlets.size > 1)\n return this.renderState().then((v) => {\n this.triggerStateIfApplicable(v);\n });\n if (a)\n return a === \"storage\" ? this.renderState().then((v) => {\n if (l.triggerType === wt.Inline) {\n this.triggerStateIfApplicable(\"open\");\n return;\n }\n this.triggerStateIfApplicable(v);\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 return this.container.getAsync(\"router\").then((e) => {\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(), e.start();\n break;\n default:\n return;\n }\n });\n }\n getOrCreateViewOutlet(t, e) {\n return this.outlets.has(t) ? this.outlets.get(t) : new Ro(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 = Mt(tt({}, 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 rt(\n this.container,\n Fe,\n C.Necessary,\n {\n medium: P.Local\n }\n )\n ]).then(([e, r]) => Promise.resolve(t(e)).then((s) => r(s).then(() => {\n const i = tt(tt({}, e), s);\n return this.widget.events.dispatch(\"widget:settings-updated\", i), i;\n })));\n }\n clearSettings() {\n return rt(\n this.container,\n Fe,\n C.Necessary,\n { medium: P.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((r) => {\n r.action(this.widget.name, t, e);\n });\n }\n renderState() {\n if (on(this.container))\n return Promise.resolve(J.open);\n const t = () => Z(\n this.container,\n ee,\n P.Session\n ).then((r = J.closed) => r), e = () => Z(\n this.container,\n ee,\n P.Session\n ).then((r = J.closed) => r);\n return this.container.getAsync(\"router\").then((r) => r.isSticky() ? e().then((s) => s === J.open ? s : t()) : t());\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 r = t === \"open\" ? J.open : t === \"close\" ? J.closed : J.hidden;\n return this.setRenderState(r).then(() => {\n this.setTriggerState(r === J.open), r !== J.hidden ? r === J.open ? this.onOpen() : this.onClose() : this.outlets.forEach(\n (s) => {\n var i;\n return (i = s.options.triggerDOMElement) == null ? void 0 : i.setAttribute(\n \"aria-expanded\",\n \"false\"\n );\n }\n );\n });\n }\n }\n setRenderState(t) {\n const { invoke: e, events: r } = this.container.get(\"$widget\");\n return Promise.all([\n rt(\n this.container,\n ee,\n C.Necessary,\n {\n medium: P.Session\n }\n ),\n rt(\n this.container,\n ee,\n C.Necessary,\n {\n medium: P.Local,\n duration: { minutes: 5 }\n }\n ),\n this.container.getAsync(\"router\"),\n e(\"renderState\")\n ]).then(\n ([s, i, o, a]) => {\n t === \"unset\" || !t ? (i(), s()) : (o.isSticky() && i(t), s(t)), r.dispatch(\"widget:render-state-changed\", {\n previous: a,\n next: t\n });\n }\n );\n }\n onOpen() {\n return this.container.getAsync(\"router\").then((t) => (this.outlets.forEach(\n (e) => {\n var r;\n return (r = e.options.triggerDOMElement) == null ? void 0 : r.setAttribute(\n \"aria-expanded\",\n \"true\"\n );\n }\n ), t.start()));\n }\n onClose() {\n const t = this.container.getManyAsync(\n \"router\",\n \"components\"\n );\n return (() => this.container.get(\"settings\").then((r) => {\n const { activate: s } = this.container.get(\"$settings\");\n return r.activate !== s ? this.setSettings(() => Promise.resolve({ activate: s })) : Promise.resolve();\n }))().then(() => t).then(\n ({\n router: r,\n components: s\n }) => {\n const i = s.nodes.visible;\n return this.outlets.forEach(\n (o) => {\n var a;\n return (a = o.options.triggerDOMElement) == null ? void 0 : a.setAttribute(\n \"aria-expanded\",\n \"false\"\n );\n }\n ), i.filter(\n (o) => o.attributes.properties.animation && o.attributes.properties.animation !== \"none\"\n ).length ? new Promise((o) => {\n setTimeout(() => {\n o(r);\n }, 200);\n }) : Promise.resolve(r);\n }\n ).then((r) => r.stop());\n }\n setTriggerState(t) {\n this.outlets.forEach((e) => {\n const {\n options: { triggerDOMElement: r, triggerOptions: s }\n } = e, { openTooltip: i, closedTooltip: o } = s || {};\n r && (t ? Rr(r, i) : ao(r, o));\n });\n }\n deactivate() {\n this.subs.forEach((e) => e());\n const t = [];\n return this.outlets.forEach((e) => t.push(e.dispose())), Z(\n this.container,\n tr,\n P.Local\n ).then((e) => e === this.widget.name ? rt(\n this.container,\n tr,\n C.Necessary,\n {\n medium: P.Local,\n scope: Lt.Implementation\n }\n ).then((r) => r()).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 Fr = class extends Event {\n constructor(t, e, r) {\n super(\"context-request\", { bubbles: !0, composed: !0 }), this.context = t, this.callback = e, this.subscribe = r != null && r;\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 Wo = class {\n constructor(t, e, r, s) {\n var i;\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 = (i = o.subscribe) !== null && i !== void 0 && i;\n } else\n this.context = e, this.callback = r, this.subscribe = s != null && s;\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 Fr(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 Fo {\n constructor(t) {\n this.subscriptions = /* @__PURE__ */ new Map(), this.updateObservers = () => {\n for (const [e, { disposer: r }] of this.subscriptions)\n e(this.o, r);\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 r = e || !Object.is(t, this.o);\n this.o = t, r && this.updateObservers();\n }\n addCallback(t, e, r) {\n if (!r)\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: s } = this.subscriptions.get(t);\n t(this.value, s);\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 qo extends Event {\n constructor(t) {\n super(\"context-provider\", { bubbles: !0, composed: !0 }), this.context = t;\n }\n}\nclass jt extends Fo {\n constructor(t, e, r) {\n super(e.context !== void 0 ? e.initialValue : r), this.onContextRequest = (s) => {\n const i = s.composedPath()[0];\n s.context === this.context && i !== this.host && (s.stopPropagation(), this.addCallback(s.callback, i, s.subscribe));\n }, this.onProviderRequest = (s) => {\n const i = s.composedPath()[0];\n if (s.context === this.context && i !== this.host) {\n for (const [o, { consumerHost: a }] of this.subscriptions)\n a.dispatchEvent(new Fr(this.context, o, !0));\n s.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 qo(this.context));\n }\n}\n/**\n * @license\n * Copyright 2022 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\nfunction Jo({ context: n, subscribe: t }) {\n return Ao({ finisher: (e, r) => {\n e.addInitializer((s) => {\n new Wo(s, { context: n, callback: (i) => {\n s[r] = i;\n }, subscribe: t });\n });\n } });\n}\nconst Ko = \"children\", Go = \"descriptor\", Yo = \"container\", Zo = \"context\", Qo = \"layout\", Xo = \"properties\";\nclass ta {\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 B(this, null, function* () {\n if (!this._container || !this._descriptor)\n return;\n const r = yield Jt.getInstance(\n this._container\n ), s = new Nt(r).withId(\n this._descriptor.id\n );\n yield r.actions(\n s,\n this._descriptor.type || qt()\n ).dispatch(t, e);\n });\n }\n}\nconst ea = (n, t) => B(void 0, null, function* () {\n const e = n.properties().provider;\n let r = {}, s = \"\";\n Array.isArray(e) ? (s = e[0], r = e[1]) : s = e || \"\";\n const i = yield t.getAsync(s);\n if (!i)\n throw new Error(\"No provider defined in ListComponent\");\n return i.applyComponentNodeSettings(n.node.id, r), { provider: i, settings: r };\n}), Na = (n, t) => B(void 0, null, function* () {\n const { provider: e, settings: r = {} } = yield ea(n, t);\n return {\n addResource: (s, i) => e.addResource(s, i),\n getData: (s, i) => e.getData(s, i, r)\n };\n});\nclass na {\n constructor(t) {\n this.container = t, this.resources = /* @__PURE__ */ new Map(), this.nodeConfiguration = /* @__PURE__ */ new Map();\n }\n getData(t, e, r) {\n return B(this, null, function* () {\n const s = this.resources.get(t);\n if (!s)\n throw new Error(`Unable to get EntityProvider for \"${t}\"`);\n return yield s.query(e, r);\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 er = (n) => ({\n title: n.Title,\n id: n.Id.toString()\n});\nclass ra extends na {\n constructor(t) {\n super(t), this.addResource(\"item\", {\n query: (e, r) => B(this, null, function* () {\n const s = e.itemId, i = \"78aacc09-ae6f-5485-5ca3-9dacebb95825\", o = t.get(\"$widget\").name, a = r.projection || \"\", h = yield (yield fetch(\n `${a}/guides/${s}?client=${i}&funnel=${o}&site=%2F%2Fdemo.humany.cc%2Fadmin%2Finterfaces&phrase=&connectionId=&p.LastGuideId=2857`\n )).json();\n return h ? er(h) : null;\n })\n }), this.addResource(\"items\", {\n query: (e, r) => B(this, null, function* () {\n const s = \"\", i = t.get(\"$widget\").name, o = r.projection || \"\", u = yield (yield fetch(\n `${o}/guides?client=${s}&funnel=${i}&site=&phrase=&skip=0&take=10&sorting.type=popularity&sorting.direction=descending`\n )).json();\n return {\n items: (u.Matches || []).map((d) => er(d)),\n totalItems: (u == null ? void 0 : u.TotalMatches) || 0\n };\n })\n });\n }\n}\nconst La = (n) => B(void 0, null, function* () {\n n.registerAsync(\"guideProvider\", () => new ra(n));\n}), Ma = (n, t, e, r, s) => n.getAsync(\"componentResolver\").then((i) => (i.registerComponent(t, e), cr(n, t, r || (() => {\n}), t, s))), W = (n, t, e) => {\n n && e.style.setProperty(t, n);\n}, sa = (n, t) => {\n var e, r, s, i, o, a, c, h, l, u, d;\n W((e = n.colors) == null ? void 0 : e.primary, \"--primary-color\", t), W((r = n.colors) == null ? void 0 : r.secondary, \"--secondary-color\", t), W((s = n.colors) == null ? void 0 : s.text, \"--text-color\", t), W((i = n.colors) == null ? void 0 : i.link, \"--link-color\", t), W((o = n.colors) == null ? void 0 : o.gray, \"--gray-color\", t), W((a = n.colors) == null ? void 0 : a.grayDark, \"--gray-dark-color\", t), W((c = n.spacing) == null ? void 0 : c.xs, \"--spacing-xs\", t), W((h = n.spacing) == null ? void 0 : h.sm, \"--spacing-sm\", t), W((l = n.spacing) == null ? void 0 : l.md, \"--spacing-md\", t), W((u = n.spacing) == null ? void 0 : u.lg, \"--spacing-lg\", t), W((d = n.spacing) == null ? void 0 : d.xl, \"--spacing-xl\", t), W(n.boxShadow, \"--box-shadow\", t), W(n.borderRadius, \"--border-radius\", t), W(n.borderRadiusSm, \"--border-radius-sm\", t), W(n.fontFamily, \"--font-family\", t);\n}, ia = (n) => {\n const t = {};\n return Object.keys(n).forEach((e) => {\n e.indexOf(\"css-\") > -1 && (t[e] = n[e]);\n }), t;\n}, oa = (n, t) => {\n const e = ia(t);\n Object.entries(e).forEach(([r, s]) => {\n n.style.setProperty(r.replace(\"css-\", \"\"), s);\n });\n};\nvar aa = Object.defineProperty, ca = Object.getOwnPropertyDescriptor, gt = (n, t, e, r) => {\n for (var s = r > 1 ? void 0 : r ? ca(t, e) : t, i = n.length - 1, o; i >= 0; i--)\n (o = n[i]) && (s = (r ? o(t, e, s) : o(s)) || s);\n return r && s && aa(t, e, s), s;\n};\nconst Da = (n) => {\n var e;\n class t extends n {\n constructor() {\n super(...arguments), this.entry = \"\", this._descriptorProvider = new jt(\n this,\n Go,\n void 0\n ), this._childrenProvider = new jt(this, Ko, []), this._propertiesProvider = new jt(this, Xo, {}), this._contextProvider = new jt(this, Zo, {}), this._layoutProvider = new jt(this, Qo, {}), this.actions = new ta(this), this.context = {}, this.layout = {}, this.properties = {};\n }\n connectedCallback() {\n super.connectedCallback(), this.container && (this.actions.setContainer(this.container), Jt.getInstance(this.container).then(\n (s) => B(this, null, function* () {\n var o;\n const i = s.nodes.get(this.entry);\n if (i) {\n this._propertyChangeListener = s.events.subscribe(\n \"components:properties-changed\",\n (u, d) => {\n i.id === d.node.id && this._setProperties(d.node.attributes.properties);\n }\n ), this._contextChangeListener = s.events.subscribe(\n \"components:context-changed\",\n (u, d) => {\n i.id === d.node.id && this._setContext(d.node.attributes.context);\n }\n ), this._layoutChangeListener = s.events.subscribe(\n \"components:layout-changed\",\n (u, d) => {\n i.id === d.node.id && this._setLayout(d.node.attributes.layout);\n }\n );\n const a = \"default\";\n this._unmountNode = i.mount(this.container), this._setDescriptor(Je(i, a)), this._setProperties(i.attributes.properties), this._setContext(i.attributes.context), this._setLayout(this.layout);\n const c = i.getChildren(a).map((u) => Je(u));\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((u) => {\n this.component = u.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 sa(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 ), oa(this.renderRoot.host, this.properties);\n }\n _setProperties(s) {\n this._propertiesProvider.setValue(s), this.properties = s;\n }\n _setContext(s) {\n this._contextProvider.setValue(s), this.context = s;\n }\n _setLayout(s) {\n this._layoutProvider.setValue(s), this.layout = s;\n }\n _setDescriptor(s) {\n this.descriptor = s, this._descriptorProvider.setValue(s), this.actions.setDescriptor(s);\n }\n }\n return t.styles = [\n (e = n.styles) != null ? e : [],\n Ir`\n :host {\n --font-family: TeliaSans, Helvetica, Arial, Lucida Grande, sans-serif;\n --spacing-xs: 0.2rem;\n --spacing-sm: 0.5rem;\n --spacing-md: 1rem;\n --spacing-lg: 1.2rem;\n --spacing-xl: 1.8rem;\n\n --primary-color: #29003e;\n --secondary-color: #00558f;\n --text-color: #222222;\n --link-color: #990ae3;\n --gray-color: #efefef;\n --gray-dark-color: #a6a6a6;\n\n --box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;\n --border-radius: 1rem;\n --border-radius-sm: 0.3rem;\n\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 ], gt([\n Jo({ context: Yo }),\n ye({ attribute: !1 })\n ], t.prototype, \"container\", 2), gt([\n ye()\n ], t.prototype, \"entry\", 2), gt([\n lt()\n ], t.prototype, \"descriptor\", 2), gt([\n lt()\n ], t.prototype, \"component\", 2), gt([\n lt()\n ], t.prototype, \"context\", 2), gt([\n lt()\n ], t.prototype, \"layout\", 2), gt([\n lt()\n ], t.prototype, \"properties\", 2), t;\n};\nexport {\n j as A,\n na as D,\n La as G,\n Et as T,\n Da as W,\n jt as a,\n Ir as b,\n Yo as c,\n lt as d,\n Co as e,\n sa as f,\n oa as g,\n Ca as h,\n So as i,\n Ko as j,\n Go as k,\n Zo as l,\n J as m,\n ye as n,\n Qo as o,\n Jt as p,\n Xo as q,\n ta as r,\n Vt as s,\n Po as t,\n Na as u,\n Ma as v,\n Xt as x\n};\n//# sourceMappingURL=index-11b86daf.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":["qr","Jr","Kr","un","Gr","Yr","Zr","Qr","dn","n","t","e","tt","Mt","pn","B","s","c","a","Pe","Xr","he","mt","ts","gn","es","r","i","o","Xe","u","p","be","Rt","I","rr","as","mn","cs","Gt","X","ot","qt","ps","gs","fs","yn","ms","vs","bn","ys","bs","sr","Nt","$s","tn","we","Os","h","l","d","b","v","qe","ir","$e","ne","or","Es","xs","_s","As","Ce","et","Ps","Cs","g","E","R","F","H","k","U","Jt","cr","Ys","Cn","Zs","Qs","Sn","xt","P","Lt","C","rt","kn","sn","ti","rn","si","oi","Z","ri","de","ii","Ct","ke","gr","Xs","Ee","Oe","Ne","Le","nn","fr","ue","Ke","ei","re","ni","Me","ci","pe","yt","hi","Nn","li","mr","wr","$r","mi","vi","yi","Qt","De","wi","$i","Oi","Dn","ie","Ei","xi","Pi","Ar","Si","Te","to","Bt","ut","eo","Hn","no","jr","ce","an","cn","Bn","Tr","ho","Ir","lo","zn","Ie","me","Wn","uo","Fn","Ye","Hr","He","Ze","Pt","Ue","ve","St","qn","Qe","ht","Ur","po","Ot","zt","Wt","Vr","go","Ve","Dt","Jn","Kn","pt","Gn","Yn","Br","fo","Xt","Et","j","Zn","bt","zr","mo","Ft","yo","wo","$o","_e","kt","vo","Kt","Oo","bo","Qn","Eo","Be","ze","Vt","Xn","xo","_o","ye","lt","We","Po","Co","So","ko","No","Lo","Ae","dt","Ko","Xo","Ma","AreaComponent","container","createWebComponent","_component"],"mappings":"AAAA,IAAIA,KAAK,OAAO,gBAAgBC,KAAK,OAAO,kBACxCC,KAAK,OAAO,2BACZC,KAAK,OAAO,uBAAuBC,KAAK,OAAO,gBAAgBC,KAAK,OAAO,UAAU,gBAAgBC,KAAK,OAAO,UAAU,sBAAsBC,KAAK,QAA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