@telia-ace/widget-components-area-flamingo 1.0.6 → 1.0.7
Sign up to get free protection for your applications and to get access to all the features.
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index-c6979627.js","sources":["../../../packages/runtime/dist/index-bdbdefc7.js","../src/area-component.ts"],"sourcesContent":["var Br = Object.defineProperty, Vr = Object.defineProperties;\nvar zr = Object.getOwnPropertyDescriptors;\nvar on = Object.getOwnPropertySymbols, Wr = Object.getPrototypeOf, Fr = Object.prototype.hasOwnProperty, qr = Object.prototype.propertyIsEnumerable, Jr = Reflect.get;\nvar an = (n, t, e) => t in n ? Br(n, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[t] = e, st = (n, t) => {\n for (var e in t || (t = {}))\n Fr.call(t, e) && an(n, e, t[e]);\n if (on)\n for (var e of on(t))\n qr.call(t, e) && an(n, e, t[e]);\n return n;\n}, zt = (n, t) => Vr(n, zr(t));\nvar cn = (n, t, e) => Jr(Wr(n), e, t);\nvar z = (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 Ee = (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}, Kr = (n) => {\n const t = n.container || n;\n return {\n info: (e, ...r) => Ee(t, \"info\", e, ...r),\n warn: (e, ...r) => Ee(t, \"warning\", e, ...r),\n error: (e, ...r) => Ee(t, \"error\", e, ...r)\n };\n};\nvar se = /* @__PURE__ */ ((n) => (n.Implementation = \"implementation\", n.Widget = \"widget\", n))(se || {}), pt = /* @__PURE__ */ ((n) => (n.Pre = \"pre\", n.Post = \"post\", n))(pt || {});\nconst Gr = (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}\nlet Yr = class {\n constructor(t = {}) {\n this.part = t;\n }\n createCommand(t, e, r) {\n let s;\n typeof e == \"function\" ? s = {\n scope: se.Widget,\n stage: pt.Post,\n defaultArgs: void 0,\n handlerResolver: e\n } : s = {\n scope: hn(e.scope, se.Widget),\n stage: hn(e.stage, pt.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 Je = (n) => {\n const t = new Yr({});\n return n(t), t.get();\n};\nJe((n) => {\n n.createCommand(\n \"types.register\",\n { scope: se.Implementation, stage: pt.Pre },\n (t) => (e, r) => {\n t.container.get(\"$types\")[e] = r;\n }\n ).createCommand(\n \"type\",\n { stage: pt.Pre },\n (t) => (e) => {\n t.container.register(\"$type\", e);\n }\n ).createCommand(\n \"settings\",\n { stage: pt.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: pt.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 = Gr(\n o,\n a,\n i,\n d\n );\n i.get(\"$plugins\").push(p), l && p.invoke(\"initialize\", null);\n } catch (p) {\n Kr(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 Qn = /* @__PURE__ */ ((n) => (n.Activating = \"activating\", n.Loading = \"loading\", n.Activated = \"activated\", n.Deactivating = \"deactivating\", n.Deactivated = \"deactivated\", n))(Qn || {});\nlet Zr = 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 ln = Object.getOwnPropertySymbols, Qr = Object.prototype.hasOwnProperty, Xr = Object.prototype.propertyIsEnumerable, ts = (n, t) => {\n var e = {};\n for (var r in n)\n Qr.call(n, r) && t.indexOf(r) < 0 && (e[r] = n[r]);\n if (n != null && ln)\n for (var r of ln(n))\n t.indexOf(r) < 0 && Xr.call(n, r) && (e[r] = n[r]);\n return e;\n};\nfunction es(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 = ts(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((O) => {\n typeof n[O] == \"string\" && (g[O] = n[O]);\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 pe = (n, t, ...e) => typeof t == \"string\" ? n(`[humany] ${t}`, ...e) : n(t, ...e), Nt = class {\n constructor() {\n this.keys = [], this.log = (t, ...e) => this.lookup(t, () => Nt.log(...e)), this.warn = (t, ...e) => this.lookup(t, () => Nt.warn(...e)), this.error = (t, ...e) => this.lookup(t, () => Nt.error(...e)), this.info = (t, ...e) => this.lookup(t, () => Nt.info(...e));\n }\n lookup(t, e) {\n this.keys.indexOf(t) === -1 && (this.keys.push(t), e());\n }\n};\nlet I = Nt;\nI.log = (...n) => pe(console.log, ...n);\nI.warn = (...n) => pe(console.warn, ...n);\nI.error = (...n) => pe(console.error, ...n);\nI.info = (...n) => pe(console.info, ...n);\nconst Xn = (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 ? Xn(e) : e;\n return t;\n}, ns = Xn;\nfunction un(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 rs = 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 Wt = /* @__PURE__ */ new WeakMap();\nfunction Q(n, t = 5e3, e = 1e3) {\n return Wt.has(n) || Wt.set(n, new rs(t, e)), (r) => new Promise((s, i) => {\n const o = Wt.get(n);\n o.add(r, s, i, () => {\n o.tasks.length || Wt.delete(n);\n });\n });\n}\nconst ss = (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}, is = (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, ss(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}, os = is, as = (n = {}) => (Object.keys(n).forEach((t) => {\n (n[t] === null || typeof n[t] == \"undefined\") && delete n[t];\n}), n), yt = as, dn = (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}, it = () => Math.floor((1 + Math.random()) * 65536).toString(16).substring(1);\nfunction Bt() {\n return it() + it() + \"-\" + it() + \"-\" + it() + \"-\" + it() + \"-\" + it() + it() + it();\n}\nvar cs = Object.defineProperty, hs = Object.defineProperties, ls = Object.getOwnPropertyDescriptors, pn = Object.getOwnPropertySymbols, us = Object.prototype.hasOwnProperty, ds = Object.prototype.propertyIsEnumerable, gn = (n, t, e) => t in n ? cs(n, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[t] = e, ps = (n, t) => {\n for (var e in t || (t = {}))\n us.call(t, e) && gn(n, e, t[e]);\n if (pn)\n for (var e of pn(t))\n ds.call(t, e) && gn(n, e, t[e]);\n return n;\n}, gs = (n, t) => hs(n, ls(t));\nclass fs {\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 tr = (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 Pt = 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 ms(this.platform, this);\n }\n}, Ke = class {\n constructor(t, e, r) {\n this.platform = t, this.node = e, this.actions = new ge(\n t,\n new Pt(t).withId(e.id),\n r\n );\n const [s, i] = tr(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 ms {\n constructor(t, e, r = !0) {\n this.platform = t, this.target = e, this.clearOnDispose = r, this.removes = [], this.actions = new ge(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 vs = (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) => gs(ps({}, u), {\n cancelled: c\n }));\n }\n return Promise.resolve({ data: i, cancelled: !1, options: o });\n };\n return s(t, {}, e);\n};\nlet ge = 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 Ke(\n this.platform,\n h,\n this.ns\n );\n return vs(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};\nJe((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 Be = class {\n constructor(t, e) {\n this.events = t, this.tags = [], this.children = {}, this.changesets = [], this.mountCount = 0, this.id = Bt(), 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 er = (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 er(o, t, e);\n }\n}, fe = (n, t, e) => {\n if (e(n) !== !0) {\n const r = t[n.id] || \"default\", s = n.children[r];\n er(s, t, e);\n }\n}, Zt = (n, t) => {\n const e = [];\n return fe(n, t, (r) => {\n e.push(r);\n }), e;\n}, nr = (n, t, e) => {\n let r;\n return fe(n, t, (s) => {\n if (e(s))\n return r = s, !0;\n }), r;\n};\nlet ys = 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 = Zt(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 = Zt(t, e);\n }), r.subscribe(\"components:node-switched\", (s, i) => {\n this.visible = Zt(t, e);\n });\n }\n query(t = {}) {\n const e = [];\n return fe(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 nr(this.root, this.switches, (e) => e.id === t) || this.detached.find((e) => e.id === t);\n }\n}, bs = 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 ws = (n) => {\n let t = n, e = 0;\n for (; t.parent; )\n e = e + 1, t = t.parent;\n return e;\n}, $s = (n) => n.map(([t, e]) => [ws(t), t, e]).sort(([t], [e]) => t - e).map(([, t, e]) => [t, e]), Oe = (n) => n instanceof Date ? !1 : n && typeof n == \"object\" && !Array.isArray(n), X = (n, ...t) => {\n if (!t.length)\n return n;\n const e = t.shift();\n if (Oe(n) && Oe(e))\n for (const r in e)\n Oe(e[r]) ? (n[r] || Object.assign(n, { [r]: {} }), X(n[r], e[r])) : Object.assign(n, { [r]: e[r] });\n return X(n, ...t);\n}, Es = (n, t) => !n || n === \"all\" ? !0 : n.some((e) => t.indexOf(e) > -1), Os = (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 = $s(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 = X({}, (d = l.parent) == null ? void 0 : d.attributes.context));\n const O = [], j = [], W = [];\n if (l.changesets.forEach((H) => {\n const [k, U] = H;\n Es(U.breakpoints, n.breakpoints) && (v && (typeof k.properties == \"function\" ? O.push(\n k.properties\n ) : X(l.attributes.properties, k.properties)), g && (typeof k.layout == \"function\" ? j.push(k.layout) : X(l.attributes.layout, k.layout)), b && (typeof k.context == \"function\" ? W.push(k.context) : X(l.attributes.context, k.context)));\n }), O.forEach((H) => {\n X(l.attributes.properties, H(l.attributes.properties));\n }), j.forEach((H) => {\n X(l.attributes.layout, H(l.attributes.layout));\n }), W.forEach((H) => {\n X(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 me = class {\n constructor(t, e = {}) {\n this.providers = e, this.breakpoints = [], this.actionsState = { handlers: [], watchers: [] }, this.switches = {}, this.changesets = [], this.subscriptions = [], this.customComponentHandler = new bs(), this.events = t.events.createChild(this);\n const r = new Be(this.events, \"root\");\n r.name = `root-${t.name}`, this.nodes = new ys(r, this.switches, this.events);\n const s = this.processNode = Os(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 Be(this.events, t);\n return e.detached && this.nodes.detached.push(r), r;\n }\n components() {\n return new Pt(this);\n }\n actions(t, e) {\n return new ge(this, t, e);\n }\n write(t) {\n const { provider: e, target: r, attributes: s, options: i = {}, removable: o } = t, a = t.key || Bt(), 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 As = (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}, ie = (n, t, e, r, s, i) => {\n e.forEach((o) => {\n const a = As(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 ie(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 && ie(n, l, h.children, r, s);\n }\n });\n}, rr = (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 }), ie(n, n.nodes.root, [e], r, i), () => o.forEach((a) => {\n a();\n });\n}, xs = (n, t) => ({\n id: n.id,\n type: n.type,\n name: n.name,\n branch: t || \"default\"\n}), sr = (n, t, e, r = Bt(), s = {}) => n.getAsync(\"components\").then((i) => {\n let o;\n if (typeof t == \"string\") {\n const h = new Pt(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) : me.getInstance(n).then((u) => new Ke(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 _s {\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 q = /* @__PURE__ */ ((n) => (n.open = \"open\", n.closed = \"closed\", n.hidden = \"hidden\", n))(q || {});\nconst Ge = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({\n __proto__: null,\n ActionResolver: fs,\n ActionsController: ge,\n ComponentNode: Be,\n ComponentNodeController: Ke,\n ComponentPlatform: me,\n ComponentQuery: Pt,\n ComponentResolver: _s,\n WidgetRenderState: q,\n asDescriptor: xs,\n createChildren: ie,\n createComponentModel: rr,\n createEventSubscriber: tr,\n extendComponent: sr,\n findComponent: nr,\n findVisibleComponents: Zt,\n traverseComponents: fe\n}, Symbol.toStringTag, { value: \"Module\" }));\nfunction ir(n) {\n return n && n.__esModule && Object.prototype.hasOwnProperty.call(n, \"default\") ? n.default : n;\n}\nvar or = function() {\n};\nprocess.env.NODE_ENV !== \"production\" && (or = 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 Ss = or;\nconst tt = /* @__PURE__ */ ir(Ss);\nvar Ps = 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}, Cs = Ps;\nconst ks = /* @__PURE__ */ ir(Cs);\nfunction Ft(n) {\n return n.charAt(0) === \"/\";\n}\nfunction Ae(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 Ns(n) {\n var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : \"\", e = n && n.split(\"/\") || [], r = t && t.split(\"/\") || [], s = n && Ft(n), i = t && Ft(t), o = s || i;\n if (n && Ft(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 === \".\" ? Ae(r, l) : u === \"..\" ? (Ae(r, l), h++) : h && (Ae(r, l), h--);\n }\n if (!o)\n for (; h--; h)\n r.unshift(\"..\");\n o && r[0] !== \"\" && (!r[0] || !Ft(r[0])) && r.unshift(\"\");\n var d = r.join(\"/\");\n return a && d.substr(-1) !== \"/\" && (d += \"/\"), d;\n}\nvar Ms = function(t) {\n return t.charAt(0) === \"/\" ? t : \"/\" + t;\n}, ar = function(t, e) {\n return new RegExp(\"^\" + e + \"(\\\\/|\\\\?|#|$)\", \"i\").test(t);\n}, Ls = function(t, e) {\n return ar(t, e) ? t.substr(e.length) : t;\n}, Ds = function(t) {\n return t.charAt(t.length - 1) === \"/\" ? t.slice(0, -1) : t;\n}, Ts = 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}, cr = 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}, js = 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}, gt = function(t, e, r, s) {\n var i = void 0;\n typeof t == \"string\" ? (i = Ts(t), i.state = e) : (i = js({}, 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 = Ns(i.pathname, s.pathname)) : i.pathname = s.pathname : i.pathname || (i.pathname = \"/\"), i;\n}, hr = function() {\n var t = null, e = function(c) {\n return tt(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) : (tt(!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}, Rs = !!(typeof window != \"undefined\" && window.document && window.document.createElement), fn = function(t, e, r) {\n return t.addEventListener ? t.addEventListener(e, r, !1) : t.attachEvent(\"on\" + e, r);\n}, mn = function(t, e, r) {\n return t.removeEventListener ? t.removeEventListener(e, r, !1) : t.detachEvent(\"on\" + e, r);\n}, Is = function(t, e) {\n return e(window.confirm(t));\n}, Hs = 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}, Us = function() {\n return window.navigator.userAgent.indexOf(\"Trident\") === -1;\n}, Bs = function(t) {\n return t.state === void 0 && navigator.userAgent.indexOf(\"CriOS\") === -1;\n}, vn = 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}, Vs = 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}, yn = \"popstate\", bn = \"hashchange\", wn = function() {\n try {\n return window.history.state || {};\n } catch (t) {\n return {};\n }\n}, zs = function() {\n var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};\n ks(Rs, \"Browser history needs a DOM\");\n var e = window.history, r = Hs(), s = !Us(), i = t.forceRefresh, o = i === void 0 ? !1 : i, a = t.getUserConfirmation, c = a === void 0 ? Is : a, h = t.keyLength, l = h === void 0 ? 6 : h, u = t.basename ? Ds(Ms(t.basename)) : \"\", d = function(m) {\n var E = m || {}, M = E.key, L = E.state, J = window.location, K = J.pathname, rt = J.search, Z = J.hash, F = K + rt + Z;\n return tt(!u || ar(F, u), 'You are attempting to use a basename on a page whose URL path does not begin with the basename. Expected path \"' + F + '\" to begin with \"' + u + '\".'), u && (F = Ls(F, u)), gt(F, L, M);\n }, p = function() {\n return Math.random().toString(36).substr(2, l);\n }, b = hr(), v = function(m) {\n Vs(_, m), _.length = e.length, b.notifyListeners(_.location, _.action);\n }, g = function(m) {\n Bs(m) || W(d(m.state));\n }, O = function() {\n W(d(wn()));\n }, j = !1, W = function(m) {\n if (j)\n j = !1, v();\n else {\n var E = \"POP\";\n b.confirmTransitionTo(m, E, c, function(M) {\n M ? v({ action: E, location: m }) : H(m);\n });\n }\n }, H = function(m) {\n var E = _.location, M = U.indexOf(E.key);\n M === -1 && (M = 0);\n var L = U.indexOf(m.key);\n L === -1 && (L = 0);\n var J = M - L;\n J && (j = !0, D(J));\n }, k = d(wn()), U = [k.key], A = function(m) {\n return u + cr(m);\n }, N = function(m, E) {\n tt(!((typeof m == \"undefined\" ? \"undefined\" : vn(m)) === \"object\" && m.state !== void 0 && E !== 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 M = \"PUSH\", L = gt(m, E, p(), _.location);\n b.confirmTransitionTo(L, M, c, function(J) {\n if (J) {\n var K = A(L), rt = L.key, Z = L.state;\n if (r)\n if (e.pushState({ key: rt, state: Z }, null, K), o)\n window.location.href = K;\n else {\n var F = U.indexOf(_.location.key), sn = U.slice(0, F === -1 ? 0 : F + 1);\n sn.push(L.key), U = sn, v({ action: M, location: L });\n }\n else\n tt(Z === void 0, \"Browser history cannot push state in browsers that do not support HTML5 history\"), window.location.href = K;\n }\n });\n }, C = function(m, E) {\n tt(!((typeof m == \"undefined\" ? \"undefined\" : vn(m)) === \"object\" && m.state !== void 0 && E !== 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 M = \"REPLACE\", L = gt(m, E, p(), _.location);\n b.confirmTransitionTo(L, M, c, function(J) {\n if (J) {\n var K = A(L), rt = L.key, Z = L.state;\n if (r)\n if (e.replaceState({ key: rt, state: Z }, null, K), o)\n window.location.replace(K);\n else {\n var F = U.indexOf(_.location.key);\n F !== -1 && (U[F] = L.key), v({ action: M, location: L });\n }\n else\n tt(Z === void 0, \"Browser history cannot replace state in browsers that do not support HTML5 history\"), window.location.replace(K);\n }\n });\n }, D = function(m) {\n e.go(m);\n }, V = function() {\n return D(-1);\n }, B = function() {\n return D(1);\n }, R = 0, f = function(m) {\n R += m, R === 1 ? (fn(window, yn, g), s && fn(window, bn, O)) : R === 0 && (mn(window, yn, g), s && mn(window, bn, O));\n }, w = !1, y = function() {\n var m = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1, E = b.setPrompt(m);\n return w || (f(1), w = !0), function() {\n return w && (w = !1, f(-1)), E();\n };\n }, $ = function(m) {\n var E = b.appendListener(m);\n return f(1), function() {\n f(-1), E();\n };\n }, _ = {\n length: e.length,\n action: \"POP\",\n location: k,\n createHref: A,\n push: N,\n replace: C,\n go: D,\n goBack: V,\n goForward: B,\n block: y,\n listen: $\n };\n return _;\n}, $n = 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}, Ws = 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 = function(t, e, r) {\n return Math.min(Math.max(t, e), r);\n}, Fs = 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 = hr(), l = function(C) {\n Ws(A, C), A.length = A.entries.length, h.notifyListeners(A.location, A.action);\n }, u = function() {\n return Math.random().toString(36).substr(2, c);\n }, d = En(o, 0, s.length - 1), p = s.map(function(N) {\n return typeof N == \"string\" ? gt(N, void 0, u()) : gt(N, void 0, N.key || u());\n }), b = cr, v = function(C, D) {\n tt(!((typeof C == \"undefined\" ? \"undefined\" : $n(C)) === \"object\" && C.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 V = \"PUSH\", B = gt(C, D, u(), A.location);\n h.confirmTransitionTo(B, V, e, function(R) {\n if (R) {\n var f = A.index, w = f + 1, y = A.entries.slice(0);\n y.length > w ? y.splice(w, y.length - w, B) : y.push(B), l({\n action: V,\n location: B,\n index: w,\n entries: y\n });\n }\n });\n }, g = function(C, D) {\n tt(!((typeof C == \"undefined\" ? \"undefined\" : $n(C)) === \"object\" && C.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 V = \"REPLACE\", B = gt(C, D, u(), A.location);\n h.confirmTransitionTo(B, V, e, function(R) {\n R && (A.entries[A.index] = B, l({ action: V, location: B }));\n });\n }, O = function(C) {\n var D = En(A.index + C, 0, A.entries.length - 1), V = \"POP\", B = A.entries[D];\n h.confirmTransitionTo(B, V, e, function(R) {\n R ? l({\n action: V,\n location: B,\n index: D\n }) : l();\n });\n }, j = function() {\n return O(-1);\n }, W = function() {\n return O(1);\n }, H = function(C) {\n var D = A.index + C;\n return D >= 0 && D < A.entries.length;\n }, k = function() {\n var C = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1;\n return h.setPrompt(C);\n }, U = function(C) {\n return h.appendListener(C);\n }, A = {\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: O,\n goBack: j,\n goForward: W,\n canGo: H,\n block: k,\n listen: U\n };\n return A;\n}, qs = Object.defineProperty, On = Object.getOwnPropertySymbols, Js = Object.prototype.hasOwnProperty, Ks = Object.prototype.propertyIsEnumerable, An = (n, t, e) => t in n ? qs(n, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[t] = e, $t = (n, t) => {\n for (var e in t || (t = {}))\n Js.call(t, e) && An(n, e, t[e]);\n if (On)\n for (var e of On(t))\n Ks.call(t, e) && An(n, e, t[e]);\n return n;\n}, qt = (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}), S = /* @__PURE__ */ ((n) => (n.Cookie = \"cookie\", n.Local = \"local\", n.Session = \"session\", n))(S || {}), Ct = /* @__PURE__ */ ((n) => (n.Tenant = \"tenant\", n.Implementation = \"implementation\", n.Widget = \"widget\", n))(Ct || {}), P = /* @__PURE__ */ ((n) => (n.Necessary = \"necessary\", n.Functional = \"functional\", n.Analytical = \"analytical\", n.Marketing = \"marketing\", n))(P || {});\nconst et = (n, t, e, r = {}) => xn(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) => (Qe(n), xn(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 = Ct.Widget,\n medium: c = S.Session,\n duration: h\n } = r, l = Ys();\n return l[a][t] = Ze(i, e, h), c === S.Cookie ? ti(n, l) : ni(n, c, l);\n})))), Y = (n, t, e = S.Session) => (Qe(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 === S.Cookie ? Xs(n).then((r) => ae(r, t)) : ei(n, e).then((r) => ae(r, t))), xt = (n) => !!Object.entries(n).filter(([t, e]) => typeof e != \"undefined\").length, xe = (n) => Object.entries(n).filter(([t, e]) => typeof e != \"undefined\").forEach(([t, { value: e }]) => {\n typeof e == \"undefined\" && delete n[t];\n}), lr = (n, t) => {\n const e = {\n tenant: $t($t({}, n.tenant), t.tenant),\n implementation: $t($t({}, n.implementation), t.implementation),\n widget: $t($t({}, n.widget), t.widget)\n };\n return xe(e.tenant), xe(e.implementation), xe(e.widget), e;\n}, Gs = (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() || ye(), ve = (n) => {\n const {\n name: t,\n implementation: { name: e, tenant: r }\n } = n.get(\"$widget\");\n return [\n `humany_${r}`,\n `humany_${un(r + e)}`,\n `humany_${un(r + e + t)}`\n ];\n}, _e = (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}, Se = (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}, Ye = (n) => {\n const [t, e, r] = ve(n), s = _e(t) || {}, i = _e(e) || {}, o = _e(r) || {};\n return {\n tenant: s,\n implementation: i,\n widget: o\n };\n}, ur = (n, t) => {\n const e = Ye(n), r = lr(e, t), [s, i, o] = ve(n), { tenant: a, implementation: c, widget: h } = r, l = Gs(t), u = ye({ days: -1 });\n Se(s, a, xt(a) ? l : u), Se(\n i,\n c,\n xt(c) ? l : u\n ), Se(o, h, xt(h) ? l : u);\n}, oe = (n, t) => {\n const [e, r, s] = ve(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}, Ve = (n, t, e) => {\n const r = oe(n, t), s = lr(r, e), [i, o, a] = ve(n), { tenant: c, implementation: h, widget: l } = s;\n xt(c) ? t.setItem(i, JSON.stringify(c)) : t.removeItem(i), xt(h) ? t.setItem(o, JSON.stringify(h)) : t.removeItem(o), xt(l) ? t.setItem(a, JSON.stringify(l)) : t.removeItem(a);\n}, Ys = () => ({ tenant: {}, implementation: {}, widget: {} }), Zs = (n) => n ? !!n && /* @__PURE__ */ new Date() > new Date(n) : !1, ae = (n, t) => {\n const e = n.widget[t] || n.implementation[t] || n.tenant[t];\n return e == null ? void 0 : e.value;\n}, Ze = (n, t, e) => e ? {\n value: n,\n category: t,\n expiration: typeof e == \"object\" ? ye(e) : e\n} : {\n value: n,\n category: t\n}, Qt = (n, t) => {\n const e = ns(n);\n return Object.entries(e).forEach(([r, s]) => {\n Object.entries(s).forEach(([i, o]) => {\n const { expiration: a, category: c } = o;\n (Zs(a) || Qs(t, c)) && (s[i] = Ze(void 0, c, a));\n });\n }), e;\n}, xn = (n, t) => Y(n, \"storagePolicy\", S.Cookie).then(\n (e = [P.Necessary]) => !!t && e.indexOf(t) === -1\n), Qs = (n = [P.Necessary], t) => !!t && n.indexOf(t) === -1, Qe = (n) => {\n const t = Ye(n), e = oe(n, window.localStorage), r = oe(n, sessionStorage), s = ae(t, \"storagePolicy\"), [i, o, a] = [\n t,\n e,\n r\n ].map((c) => Qt(c, s));\n ur(n, i), Ve(n, window.localStorage, o), Ve(n, window.sessionStorage, a);\n}, ye = (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}, Xs = (n) => Q(document)(() => Ye(n)), ti = (n, t) => Q(document)(() => ur(n, t)), ei = (n, t) => {\n const e = t === S.Local ? window.localStorage : window.sessionStorage;\n return Q(e)(() => oe(n, e));\n}, ni = (n, t, e) => {\n const r = t === S.Local ? window.localStorage : window.sessionStorage;\n return Q(r)(() => Ve(n, r, e));\n};\nlet Xt = class {\n constructor() {\n this.memory = {\n tenant: {},\n implementation: {},\n widget: {}\n };\n }\n setItem(t, e) {\n return qt(this, arguments, function* (r, s, i = {}) {\n return Q(this)(() => {\n const o = Qt(this.memory, [P.Necessary]), { scope: a = Ct.Tenant, expiration: c } = i;\n o[a][r] = Ze(\n s,\n P.Necessary,\n (c == null ? void 0 : c.toISOString()) || ye()\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 qt(this, null, function* () {\n return Q(this)(() => {\n const e = Qt(this.memory, [P.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 = ae(e, t);\n return this.memory = e, r;\n });\n });\n }\n removeItem(t) {\n return qt(this, null, function* () {\n return Q(this)(() => {\n const e = Qt(this.memory, [P.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 qt(this, null, function* () {\n return Promise.resolve();\n });\n }\n}, ri = class {\n constructor() {\n this.cookies = new Xt(), this.session = new Xt(), this.local = new Xt();\n }\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}, si = (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 ce = /* @__PURE__ */ ((n) => (n.Implementation = \"implementation\", n.Widget = \"widget\", n))(ce || {}), ft = /* @__PURE__ */ ((n) => (n.Pre = \"pre\", n.Post = \"post\", n))(ft || {});\nconst ii = (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 _n(n, t) {\n return typeof n == \"undefined\" ? t : n;\n}\nlet oi = class {\n constructor(t = {}) {\n this.part = t;\n }\n createCommand(t, e, r) {\n let s;\n typeof e == \"function\" ? s = {\n scope: ce.Widget,\n stage: ft.Post,\n defaultArgs: void 0,\n handlerResolver: e\n } : s = {\n scope: _n(e.scope, ce.Widget),\n stage: _n(e.stage, ft.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 dr = (n) => {\n const t = new oi({});\n return n(t), t.get();\n};\ndr((n) => {\n n.createCommand(\n \"types.register\",\n { scope: ce.Implementation, stage: ft.Pre },\n (t) => (e, r) => {\n t.container.get(\"$types\")[e] = r;\n }\n ).createCommand(\n \"type\",\n { stage: ft.Pre },\n (t) => (e) => {\n t.container.register(\"$type\", e);\n }\n ).createCommand(\n \"settings\",\n { stage: ft.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: ft.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 = ii(\n o,\n a,\n i,\n d\n );\n i.get(\"$plugins\").push(p), l && p.invoke(\"initialize\", null);\n } catch (p) {\n si(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});\ndr((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 P.Necessary,\n P.Functional,\n P.Analytical,\n P.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(P.Necessary) === -1 && (process.env.NODE_ENV !== \"production\" && I.warn(\n `storagePolicyConfigurationApi: passed consent does not include category: '${P.Necessary}'. Consent has to atleast include the '${P.Necessary}' category.\n Passed consent: ${JSON.stringify(r)}`\n ), s.unshift(P.Necessary)), et(\n t.container,\n \"storagePolicy\",\n P.Necessary,\n {\n medium: S.Cookie,\n scope: Ct.Tenant,\n duration: { days: 365 }\n }\n ).then((i) => i(s)).then(() => {\n Qe(t.container), t.events.dispatch(\"storage:policy-changed\", s);\n });\n }\n });\n});\nconst ai = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({\n __proto__: null,\n StorageCategory: P,\n StorageMedium: S,\n StorageProvider: ri,\n StorageScope: Ct,\n StorageService: Xt,\n createStorageWriter: et,\n readStorage: Y\n}, Symbol.toStringTag, { value: \"Module\" }));\nvar ci = Object.defineProperty, hi = Object.defineProperties, li = Object.getOwnPropertyDescriptors, he = Object.getOwnPropertySymbols, pr = Object.prototype.hasOwnProperty, gr = Object.prototype.propertyIsEnumerable, Sn = (n, t, e) => t in n ? ci(n, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[t] = e, Ot = (n, t) => {\n for (var e in t || (t = {}))\n pr.call(t, e) && Sn(n, e, t[e]);\n if (he)\n for (var e of he(t))\n gr.call(t, e) && Sn(n, e, t[e]);\n return n;\n}, fr = (n, t) => hi(n, li(t)), ui = (n, t) => {\n var e = {};\n for (var r in n)\n pr.call(n, r) && t.indexOf(r) < 0 && (e[r] = n[r]);\n if (n != null && he)\n for (var r of he(n))\n t.indexOf(r) < 0 && gr.call(n, r) && (e[r] = n[r]);\n return e;\n};\nfunction mr(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 vr = function() {\n};\nprocess.env.NODE_ENV !== \"production\" && (vr = 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 di = vr, pi = di, Pn = gi(pi);\nfunction gi(n) {\n return n && n.__esModule ? n : { default: n };\n}\nvar fi = function() {\n var n = null, t = function(o) {\n return (0, Pn.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, Pn.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}, yr = fi, br;\nbr = function(n, t) {\n return t(window.confirm(n));\n};\nfunction Jt(n) {\n return n.charAt(0) === \"/\";\n}\nfunction Ce(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 mi(n) {\n var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : \"\", e = n && n.split(\"/\") || [], r = t && t.split(\"/\") || [], s = n && Jt(n), i = t && Jt(t), o = s || i;\n if (n && Jt(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 === \".\" ? Ce(r, l) : u === \"..\" ? (Ce(r, l), h++) : h && (Ce(r, l), h--);\n }\n if (!o)\n for (; h--; h)\n r.unshift(\"..\");\n o && r[0] !== \"\" && (!r[0] || !Jt(r[0])) && r.unshift(\"\");\n var d = r.join(\"/\");\n return a && d.substr(-1) !== \"/\" && (d += \"/\"), d;\n}\nconst vi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({\n __proto__: null,\n default: mi\n}, Symbol.toStringTag, { value: \"Module\" })), yi = /* @__PURE__ */ mr(vi);\nvar Cn = 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 te(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 te(c, t[h]);\n });\n var e = typeof n == \"undefined\" ? \"undefined\" : Cn(n), r = typeof t == \"undefined\" ? \"undefined\" : Cn(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 te(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 te(n[c], t[c]);\n });\n }\n return !1;\n}\nconst bi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({\n __proto__: null,\n default: te\n}, Symbol.toStringTag, { value: \"Module\" })), wi = /* @__PURE__ */ mr(bi);\nvar nt = {}, ot, wr, ze, Tt;\nnt.__esModule = !0;\nTt = nt.addLeadingSlash = function(n) {\n return n.charAt(0) === \"/\" ? n : \"/\" + n;\n};\nze = nt.stripLeadingSlash = function(n) {\n return n.charAt(0) === \"/\" ? n.substr(1) : n;\n};\nvar $i = nt.hasBasename = function(n, t) {\n return new RegExp(\"^\" + t + \"(\\\\/|\\\\?|#|$)\", \"i\").test(n);\n};\nnt.stripBasename = function(n, t) {\n return $i(n, t) ? n.substr(t.length) : n;\n};\nwr = nt.stripTrailingSlash = function(n) {\n return n.charAt(n.length - 1) === \"/\" ? n.slice(0, -1) : n;\n};\nnt.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};\not = nt.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 be, $r = be = void 0, Ei = 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}, Oi = yi, Ai = Er(Oi), xi = wi, _i = Er(xi), Si = nt;\nfunction Er(n) {\n return n && n.__esModule ? n : { default: n };\n}\nbe = function(n, t, e, r) {\n var s = void 0;\n typeof n == \"string\" ? (s = (0, Si.parsePath)(n), s.state = t) : (s = Ei({}, 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, Ai.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, _i.default)(n.state, t.state);\n};\nconst Or = \"/\", Ar = \"./\", Pi = 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), xr = (n, t) => {\n const e = [];\n let r = 0, s = 0, i = \"\";\n const o = t && t.delimiter || Or, a = t && t.delimiters || Ar;\n let c = !1, h;\n for (; (h = Pi.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], O = h[4], j = 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 W = p !== \"\" && b !== void 0 && b !== p, H = j === \"+\" || j === \"*\", k = j === \"?\" || j === \"*\", U = p || o, A = g || O;\n e.push({\n delimiter: U,\n optional: k,\n repeat: H,\n partial: W,\n name: v || r++,\n // tslint:disable-line:no-increment-decrement\n prefix: p,\n pattern: A ? Ni(A) : \"[^\" + Mt(U) + \"]+?\"\n });\n }\n return (i || s < n.length) && e.push(i + n.substr(s)), e;\n}, Ci = (n, t) => ki(xr(n, t)), ki = (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}, Mt = (n) => n.replace(/([.+*?=^!:${}()[\\]|/\\\\])/g, \"\\\\$1\"), Ni = (n) => n.replace(/([=!:$/()])/g, \"\\\\$1\"), _r = (n) => n && n.sensitive ? \"\" : \"i\", Mi = (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}, Li = (n, t, e) => {\n const r = [];\n for (let s = 0; s < n.length; s++)\n r.push(Sr(n[s], t, e).source);\n return new RegExp(\"(?:\" + r.join(\"|\") + \")\", _r(e));\n}, Di = (n, t, e) => Ti(xr(n, e), t, e), Ti = (n, t, e) => {\n e = e || {};\n const r = e.strict, s = e.end !== !1, i = Mt(e.delimiter || Or), o = e.delimiters || Ar, a = [].concat(e.endsWith || []).map(Mt).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 += Mt(u), h = l === n.length - 1 && o.indexOf(u[u.length - 1]) > -1;\n else {\n const d = Mt(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, _r(e));\n}, Sr = (n, t, e) => n instanceof RegExp ? Mi(n, t || []) : Array.isArray(n) ? Li(n, t, e) : Di(n, t, e), le = Sr;\nvar G = /* @__PURE__ */ ((n) => (n.scopedHash = \"scopedHash\", n.hash = \"hash\", n.browser = \"browser\", n.memory = \"memory\", n))(G || {}), dt = /* @__PURE__ */ ((n) => (n.storage = \"storage\", n.path = \"path\", n.initialPath = \"initial\", n))(dt || {});\nconst Lt = (n, t) => {\n const e = [], r = le(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}, ji = (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}, \"?\"), ke = (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}, Pr = (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 fr(Ot({}, t), { [r]: decodeURIComponent(s).replace(\"%20\", \"&\") });\n}, {}) : {}, Ri = (n, t) => {\n const e = t.map((r) => ee(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 = Pr(`?${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}, ee = (n, t) => {\n const e = yt(n);\n if (Array.isArray(t)) {\n const c = Ri(e, t);\n if (!c)\n throw new Error(\"Unable to match path.\");\n return c;\n }\n const r = Ci(t);\n let s = t;\n try {\n s = r(e);\n } catch (c) {\n return null;\n }\n const i = [];\n le(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}${ji(a)}` : s;\n}, Et = (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) => le(a, []).exec(e || \"\") && !o ? e : o, void 0) && !r ? s : r;\n if (!s.path)\n return r;\n const i = [];\n return le(s.path, i).exec(e || \"\") && !r ? s : r;\n }, void 0);\n}, Ii = (n) => {\n let t = n.get(\"historyTransitionManager\");\n return t || (t = yr(), n.parent && n.parent.register(\"historyTransitionManager\", t)), t;\n}, Dt = (n, t = null) => n ? be(t ? t(n) : n) : {\n pathname: \"\",\n search: \"\",\n hash: \"\"\n}, Hi = (n, t) => {\n if (yt(n), yt(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}, Ui = (n) => {\n if (typeof n.mode == \"string\") {\n if (n.mode === G.memory)\n return !0;\n } else if (n.mode[1]) {\n const [t, { sticky: e }] = n.mode;\n if (t === G.memory)\n return typeof e == \"undefined\" ? !0 : e;\n }\n return !1;\n}, Ne = (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}, kn = \"hashchange\", Bi = {\n hashbang: {\n encodePath: (n) => n.charAt(0) === \"!\" ? n : \"!/\" + ze(n),\n decodePath: (n) => n.charAt(0) === \"!\" ? n.substr(1) : n\n },\n noslash: {\n encodePath: ze,\n decodePath: Tt\n },\n slash: {\n encodePath: Tt,\n decodePath: Tt\n }\n}, at = () => {\n const n = window.location.href, t = n.indexOf(\"#\");\n return t === -1 ? \"\" : n.substring(t + 1);\n}, Nn = (n) => window.location.hash = n, Mn = (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}, ne = (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}, Vi = (n = {}) => {\n const t = window.history, { getUserConfirmation: e = br, hashType: r = \"slash\" } = n, s = n.basename ? wr(Tt(n.basename)) : \"\", { encodePath: i } = Bi[r], o = () => {\n const f = at(), w = l(f);\n return Dt(w, ne);\n }, a = n.transitionManager || yr(), c = (f) => {\n Object.assign(R, f), R.length = t.length, a.notifyListeners(R.location, R.action, n.widgetName);\n };\n let h = !1;\n const l = (f) => {\n const w = ($) => {\n function _(x, m) {\n const E = {};\n let M;\n for (; M = m.exec(x); )\n E[M[1]] = M[2];\n return E;\n }\n return _($, /([^#?&=]+)=([^&#]*)(?!.*?\\#)/gi) || null;\n }, y = \"humany-\" + n.widgetName;\n return w(f)[y];\n }, u = () => {\n const f = o(), w = R.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 = R.location;\n let y = g.lastIndexOf(ot(w));\n y === -1 && (y = 0);\n let $ = g.lastIndexOf(ot(f));\n $ === -1 && ($ = 0);\n const _ = y - $;\n _ && (h = !0, A(_));\n }, b = at(), v = i(b);\n b !== v && Mn(v);\n let g = [];\n const O = o();\n O.pathname !== null && g.push(ot(O));\n const j = (f = \"\") => {\n const w = [\n { from: /\\?+/gi, to: \";\" },\n { from: /\\&+/gi, to: \";\" },\n { from: /\\&+/gi, to: \";\" },\n { from: /=+/gi, to: \":\" }\n ];\n let y = f;\n return w.forEach(({ to: $, from: _ }) => {\n y = y.replace(_, $);\n }), y;\n }, W = (f, w, y) => {\n let $ = \"\", _ = !1;\n return f.split(\"&\").forEach((x) => {\n const m = x.split(\"=\"), E = m[0], M = m[1];\n if (E === w) {\n if (_ = !0, y === null)\n return;\n $.length > 0 && ($ += \"&\"), typeof y != \"undefined\" ? $ += E + \"=\" + y : $ += E;\n } else\n E && ($.length > 0 && ($ += \"&\"), $ += E + \"=\" + M);\n }), !_ && y !== null && ($.length > 0 && ($ += \"&\"), typeof y != \"undefined\" ? $ += w + \"=\" + y : $ += w), $;\n }, H = (f) => {\n const w = f.pathname, y = j(f.search), $ = w + (y ? `;${y}` : \"\"), _ = `humany-${n.widgetName}`, x = at();\n return `#${W(x, _, $).replace(\";;\", \";\")}`;\n }, k = (f, w) => {\n const y = \"PUSH\", $ = Dt(f, ne), _ = $.pathname, x = j($.search), m = _ + (x ? `${x}` : \"\"), E = `humany-${n.widgetName}`, M = at(), L = W(M, E, m);\n a.confirmTransitionTo($, y, e, (J) => {\n if (!J)\n return;\n const K = ot($), rt = i(L);\n if (at() !== rt) {\n Nn(rt);\n const Z = g.lastIndexOf(ot(R.location)), F = g.slice(0, Z === -1 ? 0 : Z + 1);\n F.push(K), g = F, c({ action: y, location: $ });\n } else\n c();\n });\n }, U = (f, w) => {\n const y = \"REPLACE\", $ = Dt(f, ne);\n a.confirmTransitionTo($, y, e, (_) => {\n if (!_)\n return;\n const x = ot($), m = i(s + x);\n at() !== m && Mn(m);\n const E = g.indexOf(ot(R.location));\n E !== -1 && (g[E] = x), c({ action: y, location: $ });\n });\n }, A = (f) => {\n t.go(f);\n }, N = () => A(-1), C = () => A(1);\n let D = 0;\n const V = (f) => {\n D += f, D === 1 ? window.addEventListener(kn, u) : D === 0 && window.removeEventListener(kn, u);\n };\n let B = !1;\n const R = {\n createHref: H,\n createLocation: Dt,\n push: k,\n replace: U,\n go: A,\n goBack: N,\n goForward: C,\n block: (f = !1) => {\n const w = a.setPrompt(f);\n return B || (V(1), B = !0), () => (B && (B = !1, V(-1)), w());\n },\n listen: (f) => {\n const w = a.appendListener(f);\n return V(1), () => {\n V(-1), w();\n };\n },\n stop: () => {\n const f = at(), w = W(f, `humany-${n.widgetName}`, null), y = i(w);\n Nn(y);\n },\n length: t.length,\n action: \"POP\",\n location: O\n };\n return R;\n}, Cr = Vi, zi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({\n __proto__: null,\n decodeSearch: ne,\n default: Cr,\n getHashPath: at\n}, Symbol.toStringTag, { value: \"Module\" })), Wi = (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}, Fi = () => {\n const n = window.location.href, t = n.indexOf(\"#\");\n return t === -1 ? \"\" : n.substring(t + 1);\n}, qi = (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}, Ji = (n, t = null) => n ? be(t ? t(n) : n) : {\n pathname: \"\",\n search: \"\",\n hash: \"\"\n}, kr = (n) => {\n const t = Fi(), e = Wi(t, n);\n return Ji(e, qi);\n}, Xe = (n) => {\n const { name: t } = n.get(\"$widget\");\n return !!kr(t).pathname;\n};\nJe((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 Ln = \"routeData\";\nclass Ki {\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 = ui(r, [\"routes\"]);\n this.settings = Ot(Ot({}, i), t.get(\"routingSettings\")), this.sticky = Ui(this.settings), this.storageMedium = this.sticky ? S.Local : S.Session, et(t, Ln, P.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 = dn(\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 = ke(t, this.routes);\n if (!r || !this.history)\n throw `No route found for ${t}`;\n const s = ee(e, r.path);\n if (!s)\n throw `Unable to generate path for \"${t}\".`;\n const i = Dt(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 = ke(t, this.routes);\n if (!r || !this.history)\n return;\n const s = ee(e, r.path);\n if (!s)\n return;\n const i = this.getRouteData(), o = i && i.name === t && Hi(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 = dn(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, es(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 = Ne(this.container);\n if (t) {\n const r = Et(t, this.routes);\n return r ? {\n params: yt(Lt(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 || Et(r, this.routes), this.currentRoute) {\n const { path: i, name: o } = this.currentRoute;\n this.match || (this.match = {\n params: Lt(r, i),\n isExact: !0,\n path: i,\n url: r\n });\n const a = yt(Ot(Ot({}, this.match.params), s.length > 0 && Pr(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 Y(this.container, Ln, 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 = Xe(this.container);\n return r === G.browser || s ? dt.path : r === G.memory && t ? dt.storage : dt.initialPath;\n })()) {\n case dt.initialPath: {\n const s = this.getRouteData(e);\n return s && s.name ? this.navigate(s.name, s.params) : void 0;\n }\n case dt.path: {\n const { pathname: s } = this.location;\n if (this.currentRoute = Et(s, this.routes), this.currentRoute) {\n const { path: o } = this.currentRoute;\n return this.setMatch({\n params: Lt(s, o),\n isExact: !0,\n path: o,\n url: s\n });\n }\n const i = Ne(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 dt.storage: {\n const { pathname: s } = this.location;\n this.currentRoute = Et(s, this.routes);\n const { name: i = \"\", params: o = {} } = t || {}, a = ke(i, this.routes);\n if (a) {\n const c = ee(o, a.path);\n if (c)\n return this.history.push(c), this.location = fr(Ot({}, this.location), { pathname: c }), this.currentRoute = Et(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 === G.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 === G.scopedHash && e !== this.widget.name)\n return;\n this.location = t, this.currentRoute = Et(r, this.routes);\n const i = Ne(this.container);\n if (this.currentRoute) {\n const { path: o } = this.currentRoute;\n this.setMatch({\n params: Lt(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 === G.scopedHash) {\n const s = this.widget.name, i = Ii(this.container);\n return Promise.resolve().then(() => zi).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 === G.memory)\n return t(Fs());\n if (e === G.browser)\n return t(zs({ basename: r }));\n throw \"RoutingService: History could not be created.\";\n });\n }\n}\nconst Gi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({\n __proto__: null,\n HistoryMode: G,\n RoutingService: Ki,\n createHashHistory: Cr,\n getScopedHashDOMLocation: kr,\n matchParams: Lt,\n onWidgetUrl: Xe\n}, Symbol.toStringTag, { value: \"Module\" })), 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}, Yi = (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 Rt = /* @__PURE__ */ ((n) => (n.Implementation = \"implementation\", n.Widget = \"widget\", n))(Rt || {}), ht = /* @__PURE__ */ ((n) => (n.Pre = \"pre\", n.Post = \"post\", n))(ht || {});\nconst Zi = (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 Dn(n, t) {\n return typeof n == \"undefined\" ? t : n;\n}\nclass Qi {\n constructor(t = {}) {\n this.part = t;\n }\n createCommand(t, e, r) {\n let s;\n typeof e == \"function\" ? s = {\n scope: Rt.Widget,\n stage: ht.Post,\n defaultArgs: void 0,\n handlerResolver: e\n } : s = {\n scope: Dn(e.scope, Rt.Widget),\n stage: Dn(e.stage, ht.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 Nr = (n) => {\n const t = new Qi({});\n return n(t), t.get();\n};\nNr((n) => {\n n.createCommand(\n \"types.register\",\n { scope: Rt.Implementation, stage: ht.Pre },\n (t) => (e, r) => {\n t.container.get(\"$types\")[e] = r;\n }\n ).createCommand(\n \"type\",\n { stage: ht.Pre },\n (t) => (e) => {\n t.container.register(\"$type\", e);\n }\n ).createCommand(\n \"settings\",\n { stage: ht.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: ht.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 = Zi(\n o,\n a,\n i,\n d\n );\n i.get(\"$plugins\").push(p), l && p.invoke(\"initialize\", null);\n } catch (p) {\n Yi(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 Xi(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 Tn = (n, t, e) => {\n const r = Xi(n);\n e({\n sourceDOMElement: n,\n eventType: t,\n data: r\n });\n};\nfunction jn(n, t, e) {\n n.forEach((r) => {\n r.dataset.attached !== \"true\" && (t === \"load\" ? Tn(r, t, e) : r.addEventListener(t, (s) => {\n s.preventDefault(), Tn(r, t, e);\n }), r.dataset.monitored = \"true\");\n });\n}\nfunction to(n, t, e) {\n const r = n.container.get(\"bootstrapping.monitor\");\n r && r.events.subscribe(\"bootstrap:trigger-elements-updated\", (i, o) => {\n jn(\n o.triggerElements,\n t,\n e\n );\n });\n const s = n.container.get(\"triggerElements\");\n s && jn(\n s,\n t,\n e\n );\n}\nNr((n) => {\n n.createCommand(\n \"ready\",\n { scope: Rt.Implementation, stage: ht.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 eo = (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 no(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), eo(n);\n}\nfunction ro(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 so(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 Mr(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 re = window, tn = re.ShadowRoot && (re.ShadyCSS === void 0 || re.ShadyCSS.nativeShadow) && \"adoptedStyleSheets\" in Document.prototype && \"replace\" in CSSStyleSheet.prototype, en = Symbol(), Rn = /* @__PURE__ */ new WeakMap();\nlet Lr = class {\n constructor(t, e, r) {\n if (this._$cssResult$ = !0, r !== en)\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 (tn && t === void 0) {\n const r = e !== void 0 && e.length === 1;\n r && (t = Rn.get(e)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), r && Rn.set(e, t));\n }\n return t;\n }\n toString() {\n return this.cssText;\n }\n};\nconst io = (n) => new Lr(typeof n == \"string\" ? n : n + \"\", void 0, en), oo = (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 Lr(e, n, en);\n}, ao = (n, t) => {\n tn ? n.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet) : t.forEach((e) => {\n const r = document.createElement(\"style\"), s = re.litNonce;\n s !== void 0 && r.setAttribute(\"nonce\", s), r.textContent = e.cssText, n.appendChild(r);\n });\n}, In = tn ? (n) => n : (n) => n instanceof CSSStyleSheet ? ((t) => {\n let e = \"\";\n for (const r of t.cssRules)\n e += r.cssText;\n return io(e);\n})(n) : n;\n/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\nvar Le;\nconst ue = window, Hn = ue.trustedTypes, co = Hn ? Hn.emptyScript : \"\", Un = ue.reactiveElementPolyfillSupport, We = { toAttribute(n, t) {\n switch (t) {\n case Boolean:\n n = n ? co : 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} }, Dr = (n, t) => t !== n && (t == t || n == n), De = { attribute: !0, type: String, converter: We, reflect: !1, hasChanged: Dr }, Fe = \"finalized\";\nlet At = 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 = De) {\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) || De;\n }\n static finalize() {\n if (this.hasOwnProperty(Fe))\n return !1;\n this[Fe] = !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(In(s));\n } else\n t !== void 0 && e.push(In(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 ao(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 = De) {\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 : We).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 : We;\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 || Dr)(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 z(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};\nAt[Fe] = !0, At.elementProperties = /* @__PURE__ */ new Map(), At.elementStyles = [], At.shadowRootOptions = { mode: \"open\" }, Un == null || Un({ ReactiveElement: At }), ((Le = ue.reactiveElementVersions) !== null && Le !== void 0 ? Le : ue.reactiveElementVersions = []).push(\"1.6.3\");\n/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\nvar Te;\nconst de = window, _t = de.trustedTypes, Bn = _t ? _t.createPolicy(\"lit-html\", { createHTML: (n) => n }) : void 0, qe = \"$lit$\", ct = `lit$${(Math.random() + \"\").slice(9)}$`, Tr = \"?\" + ct, ho = `<${Tr}>`, bt = document, It = () => bt.createComment(\"\"), Ht = (n) => n === null || typeof n != \"object\" && typeof n != \"function\", jr = Array.isArray, lo = (n) => jr(n) || typeof (n == null ? void 0 : n[Symbol.iterator]) == \"function\", je = `[ \t\n\\f\\r]`, kt = /<(?:(!--|\\/[^a-zA-Z])|(\\/?[a-zA-Z][^>\\s]*)|(\\/?$))/g, Vn = /-->/g, zn = />/g, ut = RegExp(`>|${je}(?:([^\\\\s\"'>=/]+)(${je}*=${je}*(?:[^ \t\n\\f\\r\"'\\`<>=]|(\"|')|))|$)`, \"g\"), Wn = /'/g, Fn = /\"/g, Rr = /^(?:script|style|textarea|title)$/i, uo = (n) => (t, ...e) => ({ _$litType$: n, strings: t, values: e }), Kt = uo(1), wt = Symbol.for(\"lit-noChange\"), T = Symbol.for(\"lit-nothing\"), qn = /* @__PURE__ */ new WeakMap(), mt = bt.createTreeWalker(bt, 129, null, !1);\nfunction Ir(n, t) {\n if (!Array.isArray(n) || !n.hasOwnProperty(\"raw\"))\n throw Error(\"invalid template strings array\");\n return Bn !== void 0 ? Bn.createHTML(t) : t;\n}\nconst po = (n, t) => {\n const e = n.length - 1, r = [];\n let s, i = t === 2 ? \"<svg>\" : \"\", o = kt;\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 === kt ? l[1] === \"!--\" ? o = Vn : l[1] !== void 0 ? o = zn : l[2] !== void 0 ? (Rr.test(l[2]) && (s = RegExp(\"</\" + l[2], \"g\")), o = ut) : l[3] !== void 0 && (o = ut) : o === ut ? l[0] === \">\" ? (o = s != null ? s : kt, u = -1) : l[1] === void 0 ? u = -2 : (u = o.lastIndex - l[2].length, h = l[1], o = l[3] === void 0 ? ut : l[3] === '\"' ? Fn : Wn) : o === Fn || o === Wn ? o = ut : o === Vn || o === zn ? o = kt : (o = ut, s = void 0);\n const p = o === ut && n[a + 1].startsWith(\"/>\") ? \" \" : \"\";\n i += o === kt ? c + ho : u >= 0 ? (r.push(h), c.slice(0, u) + qe + c.slice(u) + ct + p) : c + ct + (u === -2 ? (r.push(void 0), a) : p);\n }\n return [Ir(n, i + (n[e] || \"<?>\") + (t === 2 ? \"</svg>\" : \"\")), r];\n};\nclass Ut {\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] = po(t, e);\n if (this.el = Ut.createElement(h, r), mt.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 = mt.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(ct)) {\n const p = l[o++];\n if (u.push(d), p !== void 0) {\n const b = s.getAttribute(p.toLowerCase() + qe).split(ct), v = /([.?@])?(.*)/.exec(p);\n c.push({ type: 1, index: i, name: v[2], strings: b, ctor: v[1] === \".\" ? fo : v[1] === \"?\" ? vo : v[1] === \"@\" ? yo : we });\n } else\n c.push({ type: 6, index: i });\n }\n for (const d of u)\n s.removeAttribute(d);\n }\n if (Rr.test(s.tagName)) {\n const u = s.textContent.split(ct), d = u.length - 1;\n if (d > 0) {\n s.textContent = _t ? _t.emptyScript : \"\";\n for (let p = 0; p < d; p++)\n s.append(u[p], It()), mt.nextNode(), c.push({ type: 2, index: ++i });\n s.append(u[d], It());\n }\n }\n } else if (s.nodeType === 8)\n if (s.data === Tr)\n c.push({ type: 2, index: i });\n else {\n let u = -1;\n for (; (u = s.data.indexOf(ct, u + 1)) !== -1; )\n c.push({ type: 7, index: i }), u += ct.length - 1;\n }\n i++;\n }\n }\n static createElement(t, e) {\n const r = bt.createElement(\"template\");\n return r.innerHTML = t, r;\n }\n}\nfunction St(n, t, e = n, r) {\n var s, i, o, a;\n if (t === wt)\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 = Ht(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 = St(n, c._$AS(n, t.values), c, r)), t;\n}\nclass go {\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 : bt).importNode(r, !0);\n mt.currentNode = i;\n let o = mt.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 Vt(o, o.nextSibling, this, t) : h.type === 1 ? l = new h.ctor(o, h.name, h.strings, this, t) : h.type === 6 && (l = new bo(o, this, t)), this._$AV.push(l), h = s[++c];\n }\n a !== (h == null ? void 0 : h.index) && (o = mt.nextNode(), a++);\n }\n return mt.currentNode = bt, 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 Vt {\n constructor(t, e, r, s) {\n var i;\n this.type = 2, this._$AH = T, 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 = St(this, t, e), Ht(t) ? t === T || t == null || t === \"\" ? (this._$AH !== T && this._$AR(), this._$AH = T) : t !== this._$AH && t !== wt && this._(t) : t._$litType$ !== void 0 ? this.g(t) : t.nodeType !== void 0 ? this.$(t) : lo(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 !== T && Ht(this._$AH) ? this._$AA.nextSibling.data = t : this.$(bt.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 = Ut.createElement(Ir(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 go(i, this), a = o.u(this.options);\n o.v(r), this.$(a), this._$AH = o;\n }\n }\n _$AC(t) {\n let e = qn.get(t.strings);\n return e === void 0 && qn.set(t.strings, e = new Ut(t)), e;\n }\n T(t) {\n jr(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 Vt(this.k(It()), this.k(It()), 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 we {\n constructor(t, e, r, s, i) {\n this.type = 1, this._$AH = T, 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 = T;\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 = St(this, t, e, 0), o = !Ht(t) || t !== this._$AH && t !== wt, 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 = St(this, a[r + c], e, c), h === wt && (h = this._$AH[c]), o || (o = !Ht(h) || h !== this._$AH[c]), h === T ? t = T : t !== T && (t += (h != null ? h : \"\") + i[c + 1]), this._$AH[c] = h;\n }\n o && !s && this.j(t);\n }\n j(t) {\n t === T ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t != null ? t : \"\");\n }\n}\nclass fo extends we {\n constructor() {\n super(...arguments), this.type = 3;\n }\n j(t) {\n this.element[this.name] = t === T ? void 0 : t;\n }\n}\nconst mo = _t ? _t.emptyScript : \"\";\nclass vo extends we {\n constructor() {\n super(...arguments), this.type = 4;\n }\n j(t) {\n t && t !== T ? this.element.setAttribute(this.name, mo) : this.element.removeAttribute(this.name);\n }\n}\nclass yo extends we {\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 = St(this, t, e, 0)) !== null && r !== void 0 ? r : T) === wt)\n return;\n const s = this._$AH, i = t === T && s !== T || t.capture !== s.capture || t.once !== s.once || t.passive !== s.passive, o = t !== T && (s === T || 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 bo {\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 St(this, t);\n }\n}\nconst Jn = de.litHtmlPolyfillSupport;\nJn == null || Jn(Ut, Vt), ((Te = de.litHtmlVersions) !== null && Te !== void 0 ? Te : de.litHtmlVersions = []).push(\"2.8.0\");\nconst wo = (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 Vt(t.insertBefore(It(), 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 Re, Ie;\nlet jt = class extends At {\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 = wo(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 wt;\n }\n};\njt.finalized = !0, jt._$litElement$ = !0, (Re = globalThis.litElementHydrateSupport) === null || Re === void 0 || Re.call(globalThis, { LitElement: jt });\nconst Kn = globalThis.litElementPolyfillSupport;\nKn == null || Kn({ LitElement: jt });\n((Ie = globalThis.litElementVersions) !== null && Ie !== void 0 ? Ie : globalThis.litElementVersions = []).push(\"3.3.3\");\n/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\nconst $o = (n, t) => t.kind === \"method\" && t.descriptor && !(\"value\" in t.descriptor) ? zt(st({}, 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} }, Eo = (n, t, e) => {\n t.constructor.createProperty(e, n);\n};\nfunction Hr(n) {\n return (t, e) => e !== void 0 ? Eo(n, t, e) : $o(n, t);\n}\n/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\nfunction nn(n) {\n return Hr(zt(st({}, n), { state: !0 }));\n}\n/**\n * @license\n * Copyright 2021 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\nvar He;\n((He = window.HTMLSlotElement) === null || He === void 0 ? void 0 : He.prototype.assignedElements) != null;\n/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\nconst Oo = { ATTRIBUTE: 1, CHILD: 2, PROPERTY: 3, BOOLEAN_ATTRIBUTE: 4, EVENT: 5, ELEMENT: 6 }, Ao = (n) => (...t) => ({ _$litDirective$: n, values: t });\nclass xo {\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 _o = Ao(class extends xo {\n constructor(n) {\n var t;\n if (super(n), n.type !== Oo.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 wt;\n }\n});\nvar So = Object.defineProperty, Po = Object.getOwnPropertyDescriptor, $e = (n, t, e, r) => {\n for (var s = r > 1 ? void 0 : r ? Po(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 && So(t, e, s), s;\n};\nclass lt extends jt {\n constructor() {\n super(...arguments), this.active = !1, this.loaded = !1;\n }\n connectedCallback() {\n return z(this, null, function* () {\n cn(lt.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 z(this, null, function* () {\n const e = (r) => z(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 ? Kt`<telia-icon\n class=\"trigger-icon\"\n svg=${i.svg}\n size=\"lg\"\n ></telia-icon>` : T;\n }\n case \"FontAwesome\":\n return Kt`<i class=\"trigger-fa-icon fa fa-${s}\"></i>`;\n case \"Uri\":\n return Kt`<i\n class=\"trigger-custom-icon\"\n style=\"background: url(${s}) no-repeat center center;background-size: contain;\"\n ></i>`;\n default:\n return T;\n }\n }\n });\n }\n render() {\n return Kt`<button\n class=${_o({\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}\nlt.styles = [\n oo`\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];\n$e([\n Hr({ attribute: !1 })\n], lt.prototype, \"symbol\", 2);\n$e([\n nn()\n], lt.prototype, \"active\", 2);\n$e([\n nn()\n], lt.prototype, \"loaded\", 2);\n$e([\n nn()\n], lt.prototype, \"icon\", 2);\nvar vt = /* @__PURE__ */ ((n) => (n.Inline = \"inline\", n.Link = \"link\", n.Badge = \"badge\", n.Unsupported = \"unsupported\", n))(vt || {});\nconst Co = (n, t) => n && t ? \"both\" : n ? \"widgetDOM\" : t ? \"triggerDOM\" : \"none\", Ur = (n) => n ? typeof n == \"boolean\" && n ? \"link\" : typeof n == \"object\" && !Array.isArray(n) ? \"badge\" : \"unsupported\" : \"inline\", ko = (n, t, e, r, s = !1) => z(void 0, null, function* () {\n var h, l;\n const i = Co(\n t,\n e\n ), o = Ur(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\", lt);\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}), No = \"modals\";\nclass Mo {\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 === vt.Badge && so(e), import(\"./render-2ead7806.js\").then((s) => s.default(this.container, t)).then(() => {\n if (t.setAttribute(\"data-rendered\", \"true\"), e && this.options.triggerType === vt.Badge) {\n const i = this.options.triggerOptions.openTooltip;\n Mr(e, i);\n }\n os(this.container, t);\n const s = this.container.get(\"$environment\").widgets.all();\n Y(\n this.container,\n No,\n S.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 = no(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 z(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 Gt = \"changesets\", Lo = (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 rn {\n constructor(t, e) {\n this.container = t, this.storageWriter = e;\n }\n static create(t) {\n return et(\n t,\n Gt,\n P.Necessary,\n {\n medium: S.Local\n }\n ).then(\n (e) => new rn(t, e)\n );\n }\n write(t, e, r, s) {\n return Q(this)(() => Y(\n this.container,\n Gt,\n S.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: Lo(r),\n rules: e.rules\n }, this.storageWriter({ keys: o, items: a });\n }));\n }\n remove(t) {\n return Q(this)(() => Y(\n this.container,\n Gt,\n S.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 Q(this)(() => Y(\n this.container,\n Gt,\n S.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 Pt(t, a)\n });\n }\n });\n }));\n }\n}\nconst Do = (n) => {\n const { container: t } = n;\n return rn.create(t).then(\n (e) => {\n const r = t.get(\"$settings\"), s = { localStorage: e }, i = new me(n, s), o = rr(i, r);\n return n.events.subscribe(\n \"widget:state-change\",\n (a, c) => {\n c.state === Qn.Deactivating && o();\n }\n ), i;\n }\n );\n}, To = (n) => Promise.resolve().then(() => Gi).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), jo = (n) => Promise.resolve().then(() => ai).then(({ StorageProvider: t }) => new t()), Ro = (n) => Promise.resolve().then(() => Ge).then(({ ActionResolver: t }) => new t(n)), Io = (n) => Promise.resolve().then(() => Ge).then(({ ComponentResolver: t }) => new t(n)), Ho = (n) => Promise.resolve().then(() => Ge).then(() => Do(n.get(\"$widget\"))), Ue = \"$settings\", Yt = \"open\", Gn = \"activeStickyWidget\";\nclass la extends Zr {\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 () => jo(this.container)\n ), this.container.registerFactory(\"settings\", () => Y(\n this.container,\n Ue,\n S.Local\n ).then((e = {}) => st(st({}, this.container.get(\"$settings\")), e))), to(this, \"load\", this.handleBootstrapping), this.container.registerAsync(\n \"componentResolver\",\n () => Io(this.container)\n ), this.container.registerAsync(\n \"router\",\n () => To(this.container)\n ), this.container.registerAsync(\n \"actionResolver\",\n () => Ro(this.container)\n ), this.container.register(\"matchMedia\", window.matchMedia), this.container.registerAsync(\n \"components\",\n () => Ho(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, O) => typeof o.views[O].path == \"undefined\" ? O : g,\n \"\"\n );\n !b.name && v ? a(v) : a(b.name), yt(p && p.params), yt(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) => z(this, [r], function* ({ trigger: e }) {\n var p, b;\n const {\n widgetDOMElement: s,\n key: i = Bt(),\n triggerDOMElement: o,\n withRenderState: a\n } = t, h = Ur(e) === vt.Inline && ((o == null ? void 0 : o.childElementCount) || 0) > 0, l = yield ko(\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\"), O = (H, k) => {\n v() && (l.callback && l.callback(), k.disconnect());\n }, j = {\n attributes: !0,\n subtree: !0,\n childList: !0\n };\n v() && l.callback && l.callback(), new MutationObserver(O).observe(g, j);\n };\n h && this.widget.container.getAsync(\"dataClient\").then(({ events: v }) => {\n v.subscribe(\n \"data-client:fetched\",\n (g, O) => {\n O.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 === vt.Badge && e && ((p = l.triggerDOMElement) == null || p.setAttribute(\n \"aria-expanded\",\n \"false\"\n ), d == null || d.renderBadge(e)), l.triggerType !== vt.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((O) => g && g.action && g.action === \"hide\" ? O === q.open ? this.hide() : this.open() : O === q.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 === vt.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 Mo(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 = zt(st({}, 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 et(\n this.container,\n Ue,\n P.Necessary,\n {\n medium: S.Local\n }\n )\n ]).then(([e, r]) => Promise.resolve(t(e)).then((s) => r(s).then(() => {\n const i = st(st({}, e), s);\n return this.widget.events.dispatch(\"widget:settings-updated\", i), i;\n })));\n }\n clearSettings() {\n return et(\n this.container,\n Ue,\n P.Necessary,\n { medium: S.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 (Xe(this.container))\n return Promise.resolve(q.open);\n const t = () => Y(\n this.container,\n Yt,\n S.Session\n ).then((r = q.closed) => r), e = () => Y(\n this.container,\n Yt,\n S.Session\n ).then((r = q.closed) => r);\n return this.container.getAsync(\"router\").then((r) => r.isSticky() ? e().then((s) => s === q.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\" ? q.open : t === \"close\" ? q.closed : q.hidden;\n return this.setRenderState(r).then(() => {\n this.setTriggerState(r === q.open), r !== q.hidden ? r === q.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 et(\n this.container,\n Yt,\n P.Necessary,\n {\n medium: S.Session\n }\n ),\n et(\n this.container,\n Yt,\n P.Necessary,\n {\n medium: S.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 ? Mr(r, i) : ro(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())), Y(\n this.container,\n Gn,\n S.Local\n ).then((e) => e === this.widget.name ? et(\n this.container,\n Gn,\n P.Necessary,\n {\n medium: S.Local,\n scope: Ct.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 Uo = 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 */\nclass Yn {\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 Uo(this.context, this.t, this.subscribe));\n }\n}\nconst da = \"children\", Bo = \"descriptor\", Vo = \"container\", pa = \"context\", ga = \"layout\", fa = \"properties\";\nclass ma {\n constructor(t) {\n (this.host = t).addController(this), new Yn(\n t,\n Vo,\n (e) => {\n this._container = e, this.host.requestUpdate();\n },\n !0\n ), new Yn(\n t,\n Bo,\n (e) => {\n this._descriptor = e, this.host.requestUpdate();\n },\n !0\n );\n }\n hostConnected() {\n }\n hostDisconnected() {\n }\n dispatch(t, e) {\n return z(this, null, function* () {\n if (!this._container || !this._descriptor)\n return;\n const r = yield me.getInstance(\n this._container\n ), s = new Pt(r).withId(\n this._descriptor.id\n );\n yield r.actions(\n s,\n this._descriptor.type || Bt()\n ).dispatch(t, e);\n });\n }\n}\nconst zo = (n, t) => z(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}), va = (n, t) => z(void 0, null, function* () {\n const { provider: e, settings: r = {} } = yield zo(n, t);\n return {\n addResource: (s, i) => e.addResource(s, i),\n getData: (s, i) => e.getData(s, i, r)\n };\n});\nclass Wo {\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 z(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 Zn = (n) => ({\n title: n.Title,\n id: n.Id.toString()\n});\nclass Fo extends Wo {\n constructor(t) {\n super(t), this.addResource(\"item\", {\n query: (e, r) => z(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 ? Zn(h) : null;\n })\n }), this.addResource(\"items\", {\n query: (e, r) => z(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) => Zn(d)),\n totalItems: (u == null ? void 0 : u.TotalMatches) || 0\n };\n })\n });\n }\n}\nconst ya = (n) => z(void 0, null, function* () {\n n.registerAsync(\"guideProvider\", () => new Fo(n));\n}), ba = (n, t, e, r, s) => n.getAsync(\"componentResolver\").then((i) => (i.registerComponent(t, e), sr(n, t, r || (() => {\n}), t, s)));\nexport {\n T as A,\n Wo as D,\n xs as E,\n ya as G,\n la as W,\n Yn as a,\n jt as b,\n Vo as c,\n oo as d,\n Ao as e,\n nn as f,\n Bo as g,\n da as h,\n xo as i,\n fa as j,\n pa as k,\n ga as l,\n q as m,\n Hr as n,\n ma as o,\n me as p,\n va as q,\n ba as r,\n Uo as s,\n Oo as t,\n Kt as x\n};\n//# sourceMappingURL=index-bdbdefc7.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":["Br","Vr","zr","on","Wr","Fr","qr","Jr","an","n","t","e","st","zt","cn","z","s","c","a","Ee","Kr","se","pt","Gr","hn","Yr","r","i","o","Je","u","p","pe","Nt","I","Xn","ns","un","rs","Wt","Q","it","Bt","cs","hs","ls","pn","us","ds","gn","ps","gs","tr","Pt","ms","Ke","ge","vs","h","l","d","b","v","Be","er","fe","Zt","nr","ys","bs","ws","$s","Oe","X","Es","Os","g","O","j","W","H","k","U","me","sr","qs","On","Js","Ks","An","$t","S","Ct","P","et","xn","Qe","Ys","Ze","ti","ni","Y","Xs","ae","ei","xt","xe","lr","Gs","ye","ve","_e","Se","Ye","ur","oe","Ve","Zs","Qt","Qs","Pe","si","ce","ft","ii","_n","oi","dr","mr","vr","di","pi","gi","Jt","Ce","mi","vi","yi","Cn","te","bi","wi","Oi","Er","xi","Me","Yi","Rt","ht","Zi","Dn","Qi","Nr","re","tn","en","Rn","Lr","io","oo","ao","In","Le","ue","Hn","co","Un","We","Dr","De","Fe","At","Te","de","_t","Bn","qe","ct","Tr","ho","bt","It","Ht","jr","lo","je","kt","Vn","zn","ut","Wn","Fn","Rr","uo","Kt","wt","T","qn","mt","Ir","po","Ut","fo","vo","yo","we","St","go","Vt","bo","mo","Jn","wo","Re","Ie","jt","Kn","$o","Eo","Hr","nn","He","Oo","Ao","xo","_o","So","Po","$e","lt","da","fa","ba","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,GAA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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;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;AAkoBrB,MAACC,KAAK,YAAgFC,KAAK,cAqG5FC,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,GCp+IGyN,KAAgB,CAACC,MACrBC;AAAAA,EACLD;AAAA,EACA;AAAA,EACA,OAAO,oBAAQ;AAAA,EACf,CAACE,MAAe;AAAA,EAAC;AAAA;"}
|
1
|
+
{"version":3,"file":"index-c6979627.js","sources":["../../../packages/runtime/dist/index-7657bfd2.js","../src/area-component.ts"],"sourcesContent":["var Br = Object.defineProperty, Vr = Object.defineProperties;\nvar zr = Object.getOwnPropertyDescriptors;\nvar on = Object.getOwnPropertySymbols, Wr = Object.getPrototypeOf, Fr = Object.prototype.hasOwnProperty, qr = Object.prototype.propertyIsEnumerable, Jr = Reflect.get;\nvar an = (n, t, e) => t in n ? Br(n, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[t] = e, st = (n, t) => {\n for (var e in t || (t = {}))\n Fr.call(t, e) && an(n, e, t[e]);\n if (on)\n for (var e of on(t))\n qr.call(t, e) && an(n, e, t[e]);\n return n;\n}, zt = (n, t) => Vr(n, zr(t));\nvar cn = (n, t, e) => Jr(Wr(n), e, t);\nvar z = (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 Ee = (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}, Kr = (n) => {\n const t = n.container || n;\n return {\n info: (e, ...r) => Ee(t, \"info\", e, ...r),\n warn: (e, ...r) => Ee(t, \"warning\", e, ...r),\n error: (e, ...r) => Ee(t, \"error\", e, ...r)\n };\n};\nvar se = /* @__PURE__ */ ((n) => (n.Implementation = \"implementation\", n.Widget = \"widget\", n))(se || {}), pt = /* @__PURE__ */ ((n) => (n.Pre = \"pre\", n.Post = \"post\", n))(pt || {});\nconst Gr = (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}\nlet Yr = class {\n constructor(t = {}) {\n this.part = t;\n }\n createCommand(t, e, r) {\n let s;\n typeof e == \"function\" ? s = {\n scope: se.Widget,\n stage: pt.Post,\n defaultArgs: void 0,\n handlerResolver: e\n } : s = {\n scope: hn(e.scope, se.Widget),\n stage: hn(e.stage, pt.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 Je = (n) => {\n const t = new Yr({});\n return n(t), t.get();\n};\nJe((n) => {\n n.createCommand(\n \"types.register\",\n { scope: se.Implementation, stage: pt.Pre },\n (t) => (e, r) => {\n t.container.get(\"$types\")[e] = r;\n }\n ).createCommand(\n \"type\",\n { stage: pt.Pre },\n (t) => (e) => {\n t.container.register(\"$type\", e);\n }\n ).createCommand(\n \"settings\",\n { stage: pt.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: pt.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 = Gr(\n o,\n a,\n i,\n d\n );\n i.get(\"$plugins\").push(p), l && p.invoke(\"initialize\", null);\n } catch (p) {\n Kr(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 Qn = /* @__PURE__ */ ((n) => (n.Activating = \"activating\", n.Loading = \"loading\", n.Activated = \"activated\", n.Deactivating = \"deactivating\", n.Deactivated = \"deactivated\", n))(Qn || {});\nlet Zr = 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 ln = Object.getOwnPropertySymbols, Qr = Object.prototype.hasOwnProperty, Xr = Object.prototype.propertyIsEnumerable, ts = (n, t) => {\n var e = {};\n for (var r in n)\n Qr.call(n, r) && t.indexOf(r) < 0 && (e[r] = n[r]);\n if (n != null && ln)\n for (var r of ln(n))\n t.indexOf(r) < 0 && Xr.call(n, r) && (e[r] = n[r]);\n return e;\n};\nfunction es(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 = ts(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((O) => {\n typeof n[O] == \"string\" && (g[O] = n[O]);\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 pe = (n, t, ...e) => typeof t == \"string\" ? n(`[humany] ${t}`, ...e) : n(t, ...e), Nt = class {\n constructor() {\n this.keys = [], this.log = (t, ...e) => this.lookup(t, () => Nt.log(...e)), this.warn = (t, ...e) => this.lookup(t, () => Nt.warn(...e)), this.error = (t, ...e) => this.lookup(t, () => Nt.error(...e)), this.info = (t, ...e) => this.lookup(t, () => Nt.info(...e));\n }\n lookup(t, e) {\n this.keys.indexOf(t) === -1 && (this.keys.push(t), e());\n }\n};\nlet I = Nt;\nI.log = (...n) => pe(console.log, ...n);\nI.warn = (...n) => pe(console.warn, ...n);\nI.error = (...n) => pe(console.error, ...n);\nI.info = (...n) => pe(console.info, ...n);\nconst Xn = (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 ? Xn(e) : e;\n return t;\n}, ns = Xn;\nfunction un(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 rs = 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 Wt = /* @__PURE__ */ new WeakMap();\nfunction Q(n, t = 5e3, e = 1e3) {\n return Wt.has(n) || Wt.set(n, new rs(t, e)), (r) => new Promise((s, i) => {\n const o = Wt.get(n);\n o.add(r, s, i, () => {\n o.tasks.length || Wt.delete(n);\n });\n });\n}\nconst ss = (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}, is = (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, ss(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}, os = is, as = (n = {}) => (Object.keys(n).forEach((t) => {\n (n[t] === null || typeof n[t] == \"undefined\") && delete n[t];\n}), n), yt = as, dn = (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}, it = () => Math.floor((1 + Math.random()) * 65536).toString(16).substring(1);\nfunction Bt() {\n return it() + it() + \"-\" + it() + \"-\" + it() + \"-\" + it() + \"-\" + it() + it() + it();\n}\nvar cs = Object.defineProperty, hs = Object.defineProperties, ls = Object.getOwnPropertyDescriptors, pn = Object.getOwnPropertySymbols, us = Object.prototype.hasOwnProperty, ds = Object.prototype.propertyIsEnumerable, gn = (n, t, e) => t in n ? cs(n, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[t] = e, ps = (n, t) => {\n for (var e in t || (t = {}))\n us.call(t, e) && gn(n, e, t[e]);\n if (pn)\n for (var e of pn(t))\n ds.call(t, e) && gn(n, e, t[e]);\n return n;\n}, gs = (n, t) => hs(n, ls(t));\nclass fs {\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 tr = (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 Pt = 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 ms(this.platform, this);\n }\n}, Ke = class {\n constructor(t, e, r) {\n this.platform = t, this.node = e, this.actions = new ge(\n t,\n new Pt(t).withId(e.id),\n r\n );\n const [s, i] = tr(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 ms {\n constructor(t, e, r = !0) {\n this.platform = t, this.target = e, this.clearOnDispose = r, this.removes = [], this.actions = new ge(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 vs = (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) => gs(ps({}, u), {\n cancelled: c\n }));\n }\n return Promise.resolve({ data: i, cancelled: !1, options: o });\n };\n return s(t, {}, e);\n};\nlet ge = 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 Ke(\n this.platform,\n h,\n this.ns\n );\n return vs(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};\nJe((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 Be = class {\n constructor(t, e) {\n this.events = t, this.tags = [], this.children = {}, this.changesets = [], this.mountCount = 0, this.id = Bt(), 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 er = (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 er(o, t, e);\n }\n}, fe = (n, t, e) => {\n if (e(n) !== !0) {\n const r = t[n.id] || \"default\", s = n.children[r];\n er(s, t, e);\n }\n}, Zt = (n, t) => {\n const e = [];\n return fe(n, t, (r) => {\n e.push(r);\n }), e;\n}, nr = (n, t, e) => {\n let r;\n return fe(n, t, (s) => {\n if (e(s))\n return r = s, !0;\n }), r;\n};\nlet ys = 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 = Zt(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 = Zt(t, e);\n }), r.subscribe(\"components:node-switched\", (s, i) => {\n this.visible = Zt(t, e);\n });\n }\n query(t = {}) {\n const e = [];\n return fe(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 nr(this.root, this.switches, (e) => e.id === t) || this.detached.find((e) => e.id === t);\n }\n}, bs = 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 ws = (n) => {\n let t = n, e = 0;\n for (; t.parent; )\n e = e + 1, t = t.parent;\n return e;\n}, $s = (n) => n.map(([t, e]) => [ws(t), t, e]).sort(([t], [e]) => t - e).map(([, t, e]) => [t, e]), Oe = (n) => n instanceof Date ? !1 : n && typeof n == \"object\" && !Array.isArray(n), X = (n, ...t) => {\n if (!t.length)\n return n;\n const e = t.shift();\n if (Oe(n) && Oe(e))\n for (const r in e)\n Oe(e[r]) ? (n[r] || Object.assign(n, { [r]: {} }), X(n[r], e[r])) : Object.assign(n, { [r]: e[r] });\n return X(n, ...t);\n}, Es = (n, t) => !n || n === \"all\" ? !0 : n.some((e) => t.indexOf(e) > -1), Os = (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 = $s(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 = X({}, (d = l.parent) == null ? void 0 : d.attributes.context));\n const O = [], j = [], W = [];\n if (l.changesets.forEach((H) => {\n const [k, U] = H;\n Es(U.breakpoints, n.breakpoints) && (v && (typeof k.properties == \"function\" ? O.push(\n k.properties\n ) : X(l.attributes.properties, k.properties)), g && (typeof k.layout == \"function\" ? j.push(k.layout) : X(l.attributes.layout, k.layout)), b && (typeof k.context == \"function\" ? W.push(k.context) : X(l.attributes.context, k.context)));\n }), O.forEach((H) => {\n X(l.attributes.properties, H(l.attributes.properties));\n }), j.forEach((H) => {\n X(l.attributes.layout, H(l.attributes.layout));\n }), W.forEach((H) => {\n X(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 me = class {\n constructor(t, e = {}) {\n this.providers = e, this.breakpoints = [], this.actionsState = { handlers: [], watchers: [] }, this.switches = {}, this.changesets = [], this.subscriptions = [], this.customComponentHandler = new bs(), this.events = t.events.createChild(this);\n const r = new Be(this.events, \"root\");\n r.name = `root-${t.name}`, this.nodes = new ys(r, this.switches, this.events);\n const s = this.processNode = Os(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 Be(this.events, t);\n return e.detached && this.nodes.detached.push(r), r;\n }\n components() {\n return new Pt(this);\n }\n actions(t, e) {\n return new ge(this, t, e);\n }\n write(t) {\n const { provider: e, target: r, attributes: s, options: i = {}, removable: o } = t, a = t.key || Bt(), 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 As = (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}, ie = (n, t, e, r, s, i) => {\n e.forEach((o) => {\n const a = As(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 ie(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 && ie(n, l, h.children, r, s);\n }\n });\n}, rr = (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 }), ie(n, n.nodes.root, [e], r, i), () => o.forEach((a) => {\n a();\n });\n}, xs = (n, t) => ({\n id: n.id,\n type: n.type,\n name: n.name,\n branch: t || \"default\"\n}), sr = (n, t, e, r = Bt(), s = {}) => n.getAsync(\"components\").then((i) => {\n let o;\n if (typeof t == \"string\") {\n const h = new Pt(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) : me.getInstance(n).then((u) => new Ke(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 _s {\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 q = /* @__PURE__ */ ((n) => (n.open = \"open\", n.closed = \"closed\", n.hidden = \"hidden\", n))(q || {});\nconst Ge = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({\n __proto__: null,\n ActionResolver: fs,\n ActionsController: ge,\n ComponentNode: Be,\n ComponentNodeController: Ke,\n ComponentPlatform: me,\n ComponentQuery: Pt,\n ComponentResolver: _s,\n WidgetRenderState: q,\n asDescriptor: xs,\n createChildren: ie,\n createComponentModel: rr,\n createEventSubscriber: tr,\n extendComponent: sr,\n findComponent: nr,\n findVisibleComponents: Zt,\n traverseComponents: fe\n}, Symbol.toStringTag, { value: \"Module\" }));\nfunction ir(n) {\n return n && n.__esModule && Object.prototype.hasOwnProperty.call(n, \"default\") ? n.default : n;\n}\nvar or = function() {\n};\nprocess.env.NODE_ENV !== \"production\" && (or = 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 Ss = or;\nconst tt = /* @__PURE__ */ ir(Ss);\nvar Ps = 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}, Cs = Ps;\nconst ks = /* @__PURE__ */ ir(Cs);\nfunction Ft(n) {\n return n.charAt(0) === \"/\";\n}\nfunction Ae(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 Ns(n) {\n var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : \"\", e = n && n.split(\"/\") || [], r = t && t.split(\"/\") || [], s = n && Ft(n), i = t && Ft(t), o = s || i;\n if (n && Ft(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 === \".\" ? Ae(r, l) : u === \"..\" ? (Ae(r, l), h++) : h && (Ae(r, l), h--);\n }\n if (!o)\n for (; h--; h)\n r.unshift(\"..\");\n o && r[0] !== \"\" && (!r[0] || !Ft(r[0])) && r.unshift(\"\");\n var d = r.join(\"/\");\n return a && d.substr(-1) !== \"/\" && (d += \"/\"), d;\n}\nvar Ms = function(t) {\n return t.charAt(0) === \"/\" ? t : \"/\" + t;\n}, ar = function(t, e) {\n return new RegExp(\"^\" + e + \"(\\\\/|\\\\?|#|$)\", \"i\").test(t);\n}, Ls = function(t, e) {\n return ar(t, e) ? t.substr(e.length) : t;\n}, Ds = function(t) {\n return t.charAt(t.length - 1) === \"/\" ? t.slice(0, -1) : t;\n}, Ts = 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}, cr = 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}, js = 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}, gt = function(t, e, r, s) {\n var i = void 0;\n typeof t == \"string\" ? (i = Ts(t), i.state = e) : (i = js({}, 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 = Ns(i.pathname, s.pathname)) : i.pathname = s.pathname : i.pathname || (i.pathname = \"/\"), i;\n}, hr = function() {\n var t = null, e = function(c) {\n return tt(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) : (tt(!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}, Rs = !!(typeof window != \"undefined\" && window.document && window.document.createElement), fn = function(t, e, r) {\n return t.addEventListener ? t.addEventListener(e, r, !1) : t.attachEvent(\"on\" + e, r);\n}, mn = function(t, e, r) {\n return t.removeEventListener ? t.removeEventListener(e, r, !1) : t.detachEvent(\"on\" + e, r);\n}, Is = function(t, e) {\n return e(window.confirm(t));\n}, Hs = 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}, Us = function() {\n return window.navigator.userAgent.indexOf(\"Trident\") === -1;\n}, Bs = function(t) {\n return t.state === void 0 && navigator.userAgent.indexOf(\"CriOS\") === -1;\n}, vn = 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}, Vs = 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}, yn = \"popstate\", bn = \"hashchange\", wn = function() {\n try {\n return window.history.state || {};\n } catch (t) {\n return {};\n }\n}, zs = function() {\n var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};\n ks(Rs, \"Browser history needs a DOM\");\n var e = window.history, r = Hs(), s = !Us(), i = t.forceRefresh, o = i === void 0 ? !1 : i, a = t.getUserConfirmation, c = a === void 0 ? Is : a, h = t.keyLength, l = h === void 0 ? 6 : h, u = t.basename ? Ds(Ms(t.basename)) : \"\", d = function(m) {\n var E = m || {}, M = E.key, L = E.state, J = window.location, K = J.pathname, rt = J.search, Z = J.hash, F = K + rt + Z;\n return tt(!u || ar(F, u), 'You are attempting to use a basename on a page whose URL path does not begin with the basename. Expected path \"' + F + '\" to begin with \"' + u + '\".'), u && (F = Ls(F, u)), gt(F, L, M);\n }, p = function() {\n return Math.random().toString(36).substr(2, l);\n }, b = hr(), v = function(m) {\n Vs(_, m), _.length = e.length, b.notifyListeners(_.location, _.action);\n }, g = function(m) {\n Bs(m) || W(d(m.state));\n }, O = function() {\n W(d(wn()));\n }, j = !1, W = function(m) {\n if (j)\n j = !1, v();\n else {\n var E = \"POP\";\n b.confirmTransitionTo(m, E, c, function(M) {\n M ? v({ action: E, location: m }) : H(m);\n });\n }\n }, H = function(m) {\n var E = _.location, M = U.indexOf(E.key);\n M === -1 && (M = 0);\n var L = U.indexOf(m.key);\n L === -1 && (L = 0);\n var J = M - L;\n J && (j = !0, D(J));\n }, k = d(wn()), U = [k.key], A = function(m) {\n return u + cr(m);\n }, N = function(m, E) {\n tt(!((typeof m == \"undefined\" ? \"undefined\" : vn(m)) === \"object\" && m.state !== void 0 && E !== 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 M = \"PUSH\", L = gt(m, E, p(), _.location);\n b.confirmTransitionTo(L, M, c, function(J) {\n if (J) {\n var K = A(L), rt = L.key, Z = L.state;\n if (r)\n if (e.pushState({ key: rt, state: Z }, null, K), o)\n window.location.href = K;\n else {\n var F = U.indexOf(_.location.key), sn = U.slice(0, F === -1 ? 0 : F + 1);\n sn.push(L.key), U = sn, v({ action: M, location: L });\n }\n else\n tt(Z === void 0, \"Browser history cannot push state in browsers that do not support HTML5 history\"), window.location.href = K;\n }\n });\n }, C = function(m, E) {\n tt(!((typeof m == \"undefined\" ? \"undefined\" : vn(m)) === \"object\" && m.state !== void 0 && E !== 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 M = \"REPLACE\", L = gt(m, E, p(), _.location);\n b.confirmTransitionTo(L, M, c, function(J) {\n if (J) {\n var K = A(L), rt = L.key, Z = L.state;\n if (r)\n if (e.replaceState({ key: rt, state: Z }, null, K), o)\n window.location.replace(K);\n else {\n var F = U.indexOf(_.location.key);\n F !== -1 && (U[F] = L.key), v({ action: M, location: L });\n }\n else\n tt(Z === void 0, \"Browser history cannot replace state in browsers that do not support HTML5 history\"), window.location.replace(K);\n }\n });\n }, D = function(m) {\n e.go(m);\n }, V = function() {\n return D(-1);\n }, B = function() {\n return D(1);\n }, R = 0, f = function(m) {\n R += m, R === 1 ? (fn(window, yn, g), s && fn(window, bn, O)) : R === 0 && (mn(window, yn, g), s && mn(window, bn, O));\n }, w = !1, y = function() {\n var m = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1, E = b.setPrompt(m);\n return w || (f(1), w = !0), function() {\n return w && (w = !1, f(-1)), E();\n };\n }, $ = function(m) {\n var E = b.appendListener(m);\n return f(1), function() {\n f(-1), E();\n };\n }, _ = {\n length: e.length,\n action: \"POP\",\n location: k,\n createHref: A,\n push: N,\n replace: C,\n go: D,\n goBack: V,\n goForward: B,\n block: y,\n listen: $\n };\n return _;\n}, $n = 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}, Ws = 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 = function(t, e, r) {\n return Math.min(Math.max(t, e), r);\n}, Fs = 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 = hr(), l = function(C) {\n Ws(A, C), A.length = A.entries.length, h.notifyListeners(A.location, A.action);\n }, u = function() {\n return Math.random().toString(36).substr(2, c);\n }, d = En(o, 0, s.length - 1), p = s.map(function(N) {\n return typeof N == \"string\" ? gt(N, void 0, u()) : gt(N, void 0, N.key || u());\n }), b = cr, v = function(C, D) {\n tt(!((typeof C == \"undefined\" ? \"undefined\" : $n(C)) === \"object\" && C.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 V = \"PUSH\", B = gt(C, D, u(), A.location);\n h.confirmTransitionTo(B, V, e, function(R) {\n if (R) {\n var f = A.index, w = f + 1, y = A.entries.slice(0);\n y.length > w ? y.splice(w, y.length - w, B) : y.push(B), l({\n action: V,\n location: B,\n index: w,\n entries: y\n });\n }\n });\n }, g = function(C, D) {\n tt(!((typeof C == \"undefined\" ? \"undefined\" : $n(C)) === \"object\" && C.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 V = \"REPLACE\", B = gt(C, D, u(), A.location);\n h.confirmTransitionTo(B, V, e, function(R) {\n R && (A.entries[A.index] = B, l({ action: V, location: B }));\n });\n }, O = function(C) {\n var D = En(A.index + C, 0, A.entries.length - 1), V = \"POP\", B = A.entries[D];\n h.confirmTransitionTo(B, V, e, function(R) {\n R ? l({\n action: V,\n location: B,\n index: D\n }) : l();\n });\n }, j = function() {\n return O(-1);\n }, W = function() {\n return O(1);\n }, H = function(C) {\n var D = A.index + C;\n return D >= 0 && D < A.entries.length;\n }, k = function() {\n var C = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1;\n return h.setPrompt(C);\n }, U = function(C) {\n return h.appendListener(C);\n }, A = {\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: O,\n goBack: j,\n goForward: W,\n canGo: H,\n block: k,\n listen: U\n };\n return A;\n}, qs = Object.defineProperty, On = Object.getOwnPropertySymbols, Js = Object.prototype.hasOwnProperty, Ks = Object.prototype.propertyIsEnumerable, An = (n, t, e) => t in n ? qs(n, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[t] = e, $t = (n, t) => {\n for (var e in t || (t = {}))\n Js.call(t, e) && An(n, e, t[e]);\n if (On)\n for (var e of On(t))\n Ks.call(t, e) && An(n, e, t[e]);\n return n;\n}, qt = (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}), S = /* @__PURE__ */ ((n) => (n.Cookie = \"cookie\", n.Local = \"local\", n.Session = \"session\", n))(S || {}), Ct = /* @__PURE__ */ ((n) => (n.Tenant = \"tenant\", n.Implementation = \"implementation\", n.Widget = \"widget\", n))(Ct || {}), P = /* @__PURE__ */ ((n) => (n.Necessary = \"necessary\", n.Functional = \"functional\", n.Analytical = \"analytical\", n.Marketing = \"marketing\", n))(P || {});\nconst et = (n, t, e, r = {}) => xn(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) => (Qe(n), xn(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 = Ct.Widget,\n medium: c = S.Session,\n duration: h\n } = r, l = Ys();\n return l[a][t] = Ze(i, e, h), c === S.Cookie ? ti(n, l) : ni(n, c, l);\n})))), Y = (n, t, e = S.Session) => (Qe(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 === S.Cookie ? Xs(n).then((r) => ae(r, t)) : ei(n, e).then((r) => ae(r, t))), xt = (n) => !!Object.entries(n).filter(([t, e]) => typeof e != \"undefined\").length, xe = (n) => Object.entries(n).filter(([t, e]) => typeof e != \"undefined\").forEach(([t, { value: e }]) => {\n typeof e == \"undefined\" && delete n[t];\n}), lr = (n, t) => {\n const e = {\n tenant: $t($t({}, n.tenant), t.tenant),\n implementation: $t($t({}, n.implementation), t.implementation),\n widget: $t($t({}, n.widget), t.widget)\n };\n return xe(e.tenant), xe(e.implementation), xe(e.widget), e;\n}, Gs = (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() || ye(), ve = (n) => {\n const {\n name: t,\n implementation: { name: e, tenant: r }\n } = n.get(\"$widget\");\n return [\n `humany_${r}`,\n `humany_${un(r + e)}`,\n `humany_${un(r + e + t)}`\n ];\n}, _e = (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}, Se = (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}, Ye = (n) => {\n const [t, e, r] = ve(n), s = _e(t) || {}, i = _e(e) || {}, o = _e(r) || {};\n return {\n tenant: s,\n implementation: i,\n widget: o\n };\n}, ur = (n, t) => {\n const e = Ye(n), r = lr(e, t), [s, i, o] = ve(n), { tenant: a, implementation: c, widget: h } = r, l = Gs(t), u = ye({ days: -1 });\n Se(s, a, xt(a) ? l : u), Se(\n i,\n c,\n xt(c) ? l : u\n ), Se(o, h, xt(h) ? l : u);\n}, oe = (n, t) => {\n const [e, r, s] = ve(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}, Ve = (n, t, e) => {\n const r = oe(n, t), s = lr(r, e), [i, o, a] = ve(n), { tenant: c, implementation: h, widget: l } = s;\n xt(c) ? t.setItem(i, JSON.stringify(c)) : t.removeItem(i), xt(h) ? t.setItem(o, JSON.stringify(h)) : t.removeItem(o), xt(l) ? t.setItem(a, JSON.stringify(l)) : t.removeItem(a);\n}, Ys = () => ({ tenant: {}, implementation: {}, widget: {} }), Zs = (n) => n ? !!n && /* @__PURE__ */ new Date() > new Date(n) : !1, ae = (n, t) => {\n const e = n.widget[t] || n.implementation[t] || n.tenant[t];\n return e == null ? void 0 : e.value;\n}, Ze = (n, t, e) => e ? {\n value: n,\n category: t,\n expiration: typeof e == \"object\" ? ye(e) : e\n} : {\n value: n,\n category: t\n}, Qt = (n, t) => {\n const e = ns(n);\n return Object.entries(e).forEach(([r, s]) => {\n Object.entries(s).forEach(([i, o]) => {\n const { expiration: a, category: c } = o;\n (Zs(a) || Qs(t, c)) && (s[i] = Ze(void 0, c, a));\n });\n }), e;\n}, xn = (n, t) => Y(n, \"storagePolicy\", S.Cookie).then(\n (e = [P.Necessary]) => !!t && e.indexOf(t) === -1\n), Qs = (n = [P.Necessary], t) => !!t && n.indexOf(t) === -1, Qe = (n) => {\n const t = Ye(n), e = oe(n, window.localStorage), r = oe(n, sessionStorage), s = ae(t, \"storagePolicy\"), [i, o, a] = [\n t,\n e,\n r\n ].map((c) => Qt(c, s));\n ur(n, i), Ve(n, window.localStorage, o), Ve(n, window.sessionStorage, a);\n}, ye = (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}, Xs = (n) => Q(document)(() => Ye(n)), ti = (n, t) => Q(document)(() => ur(n, t)), ei = (n, t) => {\n const e = t === S.Local ? window.localStorage : window.sessionStorage;\n return Q(e)(() => oe(n, e));\n}, ni = (n, t, e) => {\n const r = t === S.Local ? window.localStorage : window.sessionStorage;\n return Q(r)(() => Ve(n, r, e));\n};\nlet Xt = class {\n constructor() {\n this.memory = {\n tenant: {},\n implementation: {},\n widget: {}\n };\n }\n setItem(t, e) {\n return qt(this, arguments, function* (r, s, i = {}) {\n return Q(this)(() => {\n const o = Qt(this.memory, [P.Necessary]), { scope: a = Ct.Tenant, expiration: c } = i;\n o[a][r] = Ze(\n s,\n P.Necessary,\n (c == null ? void 0 : c.toISOString()) || ye()\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 qt(this, null, function* () {\n return Q(this)(() => {\n const e = Qt(this.memory, [P.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 = ae(e, t);\n return this.memory = e, r;\n });\n });\n }\n removeItem(t) {\n return qt(this, null, function* () {\n return Q(this)(() => {\n const e = Qt(this.memory, [P.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 qt(this, null, function* () {\n return Promise.resolve();\n });\n }\n}, ri = class {\n constructor() {\n this.cookies = new Xt(), this.session = new Xt(), this.local = new Xt();\n }\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}, si = (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 ce = /* @__PURE__ */ ((n) => (n.Implementation = \"implementation\", n.Widget = \"widget\", n))(ce || {}), ft = /* @__PURE__ */ ((n) => (n.Pre = \"pre\", n.Post = \"post\", n))(ft || {});\nconst ii = (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 _n(n, t) {\n return typeof n == \"undefined\" ? t : n;\n}\nlet oi = class {\n constructor(t = {}) {\n this.part = t;\n }\n createCommand(t, e, r) {\n let s;\n typeof e == \"function\" ? s = {\n scope: ce.Widget,\n stage: ft.Post,\n defaultArgs: void 0,\n handlerResolver: e\n } : s = {\n scope: _n(e.scope, ce.Widget),\n stage: _n(e.stage, ft.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 dr = (n) => {\n const t = new oi({});\n return n(t), t.get();\n};\ndr((n) => {\n n.createCommand(\n \"types.register\",\n { scope: ce.Implementation, stage: ft.Pre },\n (t) => (e, r) => {\n t.container.get(\"$types\")[e] = r;\n }\n ).createCommand(\n \"type\",\n { stage: ft.Pre },\n (t) => (e) => {\n t.container.register(\"$type\", e);\n }\n ).createCommand(\n \"settings\",\n { stage: ft.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: ft.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 = ii(\n o,\n a,\n i,\n d\n );\n i.get(\"$plugins\").push(p), l && p.invoke(\"initialize\", null);\n } catch (p) {\n si(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});\ndr((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 P.Necessary,\n P.Functional,\n P.Analytical,\n P.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(P.Necessary) === -1 && (process.env.NODE_ENV !== \"production\" && I.warn(\n `storagePolicyConfigurationApi: passed consent does not include category: '${P.Necessary}'. Consent has to atleast include the '${P.Necessary}' category.\n Passed consent: ${JSON.stringify(r)}`\n ), s.unshift(P.Necessary)), et(\n t.container,\n \"storagePolicy\",\n P.Necessary,\n {\n medium: S.Cookie,\n scope: Ct.Tenant,\n duration: { days: 365 }\n }\n ).then((i) => i(s)).then(() => {\n Qe(t.container), t.events.dispatch(\"storage:policy-changed\", s);\n });\n }\n });\n});\nconst ai = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({\n __proto__: null,\n StorageCategory: P,\n StorageMedium: S,\n StorageProvider: ri,\n StorageScope: Ct,\n StorageService: Xt,\n createStorageWriter: et,\n readStorage: Y\n}, Symbol.toStringTag, { value: \"Module\" }));\nvar ci = Object.defineProperty, hi = Object.defineProperties, li = Object.getOwnPropertyDescriptors, he = Object.getOwnPropertySymbols, pr = Object.prototype.hasOwnProperty, gr = Object.prototype.propertyIsEnumerable, Sn = (n, t, e) => t in n ? ci(n, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[t] = e, Ot = (n, t) => {\n for (var e in t || (t = {}))\n pr.call(t, e) && Sn(n, e, t[e]);\n if (he)\n for (var e of he(t))\n gr.call(t, e) && Sn(n, e, t[e]);\n return n;\n}, fr = (n, t) => hi(n, li(t)), ui = (n, t) => {\n var e = {};\n for (var r in n)\n pr.call(n, r) && t.indexOf(r) < 0 && (e[r] = n[r]);\n if (n != null && he)\n for (var r of he(n))\n t.indexOf(r) < 0 && gr.call(n, r) && (e[r] = n[r]);\n return e;\n};\nfunction mr(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 vr = function() {\n};\nprocess.env.NODE_ENV !== \"production\" && (vr = 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 di = vr, pi = di, Pn = gi(pi);\nfunction gi(n) {\n return n && n.__esModule ? n : { default: n };\n}\nvar fi = function() {\n var n = null, t = function(o) {\n return (0, Pn.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, Pn.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}, yr = fi, br;\nbr = function(n, t) {\n return t(window.confirm(n));\n};\nfunction Jt(n) {\n return n.charAt(0) === \"/\";\n}\nfunction Ce(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 mi(n) {\n var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : \"\", e = n && n.split(\"/\") || [], r = t && t.split(\"/\") || [], s = n && Jt(n), i = t && Jt(t), o = s || i;\n if (n && Jt(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 === \".\" ? Ce(r, l) : u === \"..\" ? (Ce(r, l), h++) : h && (Ce(r, l), h--);\n }\n if (!o)\n for (; h--; h)\n r.unshift(\"..\");\n o && r[0] !== \"\" && (!r[0] || !Jt(r[0])) && r.unshift(\"\");\n var d = r.join(\"/\");\n return a && d.substr(-1) !== \"/\" && (d += \"/\"), d;\n}\nconst vi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({\n __proto__: null,\n default: mi\n}, Symbol.toStringTag, { value: \"Module\" })), yi = /* @__PURE__ */ mr(vi);\nvar Cn = 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 te(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 te(c, t[h]);\n });\n var e = typeof n == \"undefined\" ? \"undefined\" : Cn(n), r = typeof t == \"undefined\" ? \"undefined\" : Cn(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 te(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 te(n[c], t[c]);\n });\n }\n return !1;\n}\nconst bi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({\n __proto__: null,\n default: te\n}, Symbol.toStringTag, { value: \"Module\" })), wi = /* @__PURE__ */ mr(bi);\nvar nt = {}, ot, wr, ze, Tt;\nnt.__esModule = !0;\nTt = nt.addLeadingSlash = function(n) {\n return n.charAt(0) === \"/\" ? n : \"/\" + n;\n};\nze = nt.stripLeadingSlash = function(n) {\n return n.charAt(0) === \"/\" ? n.substr(1) : n;\n};\nvar $i = nt.hasBasename = function(n, t) {\n return new RegExp(\"^\" + t + \"(\\\\/|\\\\?|#|$)\", \"i\").test(n);\n};\nnt.stripBasename = function(n, t) {\n return $i(n, t) ? n.substr(t.length) : n;\n};\nwr = nt.stripTrailingSlash = function(n) {\n return n.charAt(n.length - 1) === \"/\" ? n.slice(0, -1) : n;\n};\nnt.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};\not = nt.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 be, $r = be = void 0, Ei = 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}, Oi = yi, Ai = Er(Oi), xi = wi, _i = Er(xi), Si = nt;\nfunction Er(n) {\n return n && n.__esModule ? n : { default: n };\n}\nbe = function(n, t, e, r) {\n var s = void 0;\n typeof n == \"string\" ? (s = (0, Si.parsePath)(n), s.state = t) : (s = Ei({}, 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, Ai.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, _i.default)(n.state, t.state);\n};\nconst Or = \"/\", Ar = \"./\", Pi = 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), xr = (n, t) => {\n const e = [];\n let r = 0, s = 0, i = \"\";\n const o = t && t.delimiter || Or, a = t && t.delimiters || Ar;\n let c = !1, h;\n for (; (h = Pi.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], O = h[4], j = 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 W = p !== \"\" && b !== void 0 && b !== p, H = j === \"+\" || j === \"*\", k = j === \"?\" || j === \"*\", U = p || o, A = g || O;\n e.push({\n delimiter: U,\n optional: k,\n repeat: H,\n partial: W,\n name: v || r++,\n // tslint:disable-line:no-increment-decrement\n prefix: p,\n pattern: A ? Ni(A) : \"[^\" + Mt(U) + \"]+?\"\n });\n }\n return (i || s < n.length) && e.push(i + n.substr(s)), e;\n}, Ci = (n, t) => ki(xr(n, t)), ki = (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}, Mt = (n) => n.replace(/([.+*?=^!:${}()[\\]|/\\\\])/g, \"\\\\$1\"), Ni = (n) => n.replace(/([=!:$/()])/g, \"\\\\$1\"), _r = (n) => n && n.sensitive ? \"\" : \"i\", Mi = (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}, Li = (n, t, e) => {\n const r = [];\n for (let s = 0; s < n.length; s++)\n r.push(Sr(n[s], t, e).source);\n return new RegExp(\"(?:\" + r.join(\"|\") + \")\", _r(e));\n}, Di = (n, t, e) => Ti(xr(n, e), t, e), Ti = (n, t, e) => {\n e = e || {};\n const r = e.strict, s = e.end !== !1, i = Mt(e.delimiter || Or), o = e.delimiters || Ar, a = [].concat(e.endsWith || []).map(Mt).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 += Mt(u), h = l === n.length - 1 && o.indexOf(u[u.length - 1]) > -1;\n else {\n const d = Mt(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, _r(e));\n}, Sr = (n, t, e) => n instanceof RegExp ? Mi(n, t || []) : Array.isArray(n) ? Li(n, t, e) : Di(n, t, e), le = Sr;\nvar G = /* @__PURE__ */ ((n) => (n.scopedHash = \"scopedHash\", n.hash = \"hash\", n.browser = \"browser\", n.memory = \"memory\", n))(G || {}), dt = /* @__PURE__ */ ((n) => (n.storage = \"storage\", n.path = \"path\", n.initialPath = \"initial\", n))(dt || {});\nconst Lt = (n, t) => {\n const e = [], r = le(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}, ji = (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}, \"?\"), ke = (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}, Pr = (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 fr(Ot({}, t), { [r]: decodeURIComponent(s).replace(\"%20\", \"&\") });\n}, {}) : {}, Ri = (n, t) => {\n const e = t.map((r) => ee(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 = Pr(`?${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}, ee = (n, t) => {\n const e = yt(n);\n if (Array.isArray(t)) {\n const c = Ri(e, t);\n if (!c)\n throw new Error(\"Unable to match path.\");\n return c;\n }\n const r = Ci(t);\n let s = t;\n try {\n s = r(e);\n } catch (c) {\n return null;\n }\n const i = [];\n le(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}${ji(a)}` : s;\n}, Et = (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) => le(a, []).exec(e || \"\") && !o ? e : o, void 0) && !r ? s : r;\n if (!s.path)\n return r;\n const i = [];\n return le(s.path, i).exec(e || \"\") && !r ? s : r;\n }, void 0);\n}, Ii = (n) => {\n let t = n.get(\"historyTransitionManager\");\n return t || (t = yr(), n.parent && n.parent.register(\"historyTransitionManager\", t)), t;\n}, Dt = (n, t = null) => n ? be(t ? t(n) : n) : {\n pathname: \"\",\n search: \"\",\n hash: \"\"\n}, Hi = (n, t) => {\n if (yt(n), yt(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}, Ui = (n) => {\n if (typeof n.mode == \"string\") {\n if (n.mode === G.memory)\n return !0;\n } else if (n.mode[1]) {\n const [t, { sticky: e }] = n.mode;\n if (t === G.memory)\n return typeof e == \"undefined\" ? !0 : e;\n }\n return !1;\n}, Ne = (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}, kn = \"hashchange\", Bi = {\n hashbang: {\n encodePath: (n) => n.charAt(0) === \"!\" ? n : \"!/\" + ze(n),\n decodePath: (n) => n.charAt(0) === \"!\" ? n.substr(1) : n\n },\n noslash: {\n encodePath: ze,\n decodePath: Tt\n },\n slash: {\n encodePath: Tt,\n decodePath: Tt\n }\n}, at = () => {\n const n = window.location.href, t = n.indexOf(\"#\");\n return t === -1 ? \"\" : n.substring(t + 1);\n}, Nn = (n) => window.location.hash = n, Mn = (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}, ne = (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}, Vi = (n = {}) => {\n const t = window.history, { getUserConfirmation: e = br, hashType: r = \"slash\" } = n, s = n.basename ? wr(Tt(n.basename)) : \"\", { encodePath: i } = Bi[r], o = () => {\n const f = at(), w = l(f);\n return Dt(w, ne);\n }, a = n.transitionManager || yr(), c = (f) => {\n Object.assign(R, f), R.length = t.length, a.notifyListeners(R.location, R.action, n.widgetName);\n };\n let h = !1;\n const l = (f) => {\n const w = ($) => {\n function _(x, m) {\n const E = {};\n let M;\n for (; M = m.exec(x); )\n E[M[1]] = M[2];\n return E;\n }\n return _($, /([^#?&=]+)=([^&#]*)(?!.*?\\#)/gi) || null;\n }, y = \"humany-\" + n.widgetName;\n return w(f)[y];\n }, u = () => {\n const f = o(), w = R.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 = R.location;\n let y = g.lastIndexOf(ot(w));\n y === -1 && (y = 0);\n let $ = g.lastIndexOf(ot(f));\n $ === -1 && ($ = 0);\n const _ = y - $;\n _ && (h = !0, A(_));\n }, b = at(), v = i(b);\n b !== v && Mn(v);\n let g = [];\n const O = o();\n O.pathname !== null && g.push(ot(O));\n const j = (f = \"\") => {\n const w = [\n { from: /\\?+/gi, to: \";\" },\n { from: /\\&+/gi, to: \";\" },\n { from: /\\&+/gi, to: \";\" },\n { from: /=+/gi, to: \":\" }\n ];\n let y = f;\n return w.forEach(({ to: $, from: _ }) => {\n y = y.replace(_, $);\n }), y;\n }, W = (f, w, y) => {\n let $ = \"\", _ = !1;\n return f.split(\"&\").forEach((x) => {\n const m = x.split(\"=\"), E = m[0], M = m[1];\n if (E === w) {\n if (_ = !0, y === null)\n return;\n $.length > 0 && ($ += \"&\"), typeof y != \"undefined\" ? $ += E + \"=\" + y : $ += E;\n } else\n E && ($.length > 0 && ($ += \"&\"), $ += E + \"=\" + M);\n }), !_ && y !== null && ($.length > 0 && ($ += \"&\"), typeof y != \"undefined\" ? $ += w + \"=\" + y : $ += w), $;\n }, H = (f) => {\n const w = f.pathname, y = j(f.search), $ = w + (y ? `;${y}` : \"\"), _ = `humany-${n.widgetName}`, x = at();\n return `#${W(x, _, $).replace(\";;\", \";\")}`;\n }, k = (f, w) => {\n const y = \"PUSH\", $ = Dt(f, ne), _ = $.pathname, x = j($.search), m = _ + (x ? `${x}` : \"\"), E = `humany-${n.widgetName}`, M = at(), L = W(M, E, m);\n a.confirmTransitionTo($, y, e, (J) => {\n if (!J)\n return;\n const K = ot($), rt = i(L);\n if (at() !== rt) {\n Nn(rt);\n const Z = g.lastIndexOf(ot(R.location)), F = g.slice(0, Z === -1 ? 0 : Z + 1);\n F.push(K), g = F, c({ action: y, location: $ });\n } else\n c();\n });\n }, U = (f, w) => {\n const y = \"REPLACE\", $ = Dt(f, ne);\n a.confirmTransitionTo($, y, e, (_) => {\n if (!_)\n return;\n const x = ot($), m = i(s + x);\n at() !== m && Mn(m);\n const E = g.indexOf(ot(R.location));\n E !== -1 && (g[E] = x), c({ action: y, location: $ });\n });\n }, A = (f) => {\n t.go(f);\n }, N = () => A(-1), C = () => A(1);\n let D = 0;\n const V = (f) => {\n D += f, D === 1 ? window.addEventListener(kn, u) : D === 0 && window.removeEventListener(kn, u);\n };\n let B = !1;\n const R = {\n createHref: H,\n createLocation: Dt,\n push: k,\n replace: U,\n go: A,\n goBack: N,\n goForward: C,\n block: (f = !1) => {\n const w = a.setPrompt(f);\n return B || (V(1), B = !0), () => (B && (B = !1, V(-1)), w());\n },\n listen: (f) => {\n const w = a.appendListener(f);\n return V(1), () => {\n V(-1), w();\n };\n },\n stop: () => {\n const f = at(), w = W(f, `humany-${n.widgetName}`, null), y = i(w);\n Nn(y);\n },\n length: t.length,\n action: \"POP\",\n location: O\n };\n return R;\n}, Cr = Vi, zi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({\n __proto__: null,\n decodeSearch: ne,\n default: Cr,\n getHashPath: at\n}, Symbol.toStringTag, { value: \"Module\" })), Wi = (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}, Fi = () => {\n const n = window.location.href, t = n.indexOf(\"#\");\n return t === -1 ? \"\" : n.substring(t + 1);\n}, qi = (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}, Ji = (n, t = null) => n ? be(t ? t(n) : n) : {\n pathname: \"\",\n search: \"\",\n hash: \"\"\n}, kr = (n) => {\n const t = Fi(), e = Wi(t, n);\n return Ji(e, qi);\n}, Xe = (n) => {\n const { name: t } = n.get(\"$widget\");\n return !!kr(t).pathname;\n};\nJe((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 Ln = \"routeData\";\nclass Ki {\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 = ui(r, [\"routes\"]);\n this.settings = Ot(Ot({}, i), t.get(\"routingSettings\")), this.sticky = Ui(this.settings), this.storageMedium = this.sticky ? S.Local : S.Session, et(t, Ln, P.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 = dn(\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 = ke(t, this.routes);\n if (!r || !this.history)\n throw `No route found for ${t}`;\n const s = ee(e, r.path);\n if (!s)\n throw `Unable to generate path for \"${t}\".`;\n const i = Dt(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 = ke(t, this.routes);\n if (!r || !this.history)\n return;\n const s = ee(e, r.path);\n if (!s)\n return;\n const i = this.getRouteData(), o = i && i.name === t && Hi(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 = dn(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, es(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 = Ne(this.container);\n if (t) {\n const r = Et(t, this.routes);\n return r ? {\n params: yt(Lt(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 || Et(r, this.routes), this.currentRoute) {\n const { path: i, name: o } = this.currentRoute;\n this.match || (this.match = {\n params: Lt(r, i),\n isExact: !0,\n path: i,\n url: r\n });\n const a = yt(Ot(Ot({}, this.match.params), s.length > 0 && Pr(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 Y(this.container, Ln, 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 = Xe(this.container);\n return r === G.browser || s ? dt.path : r === G.memory && t ? dt.storage : dt.initialPath;\n })()) {\n case dt.initialPath: {\n const s = this.getRouteData(e);\n return s && s.name ? this.navigate(s.name, s.params) : void 0;\n }\n case dt.path: {\n const { pathname: s } = this.location;\n if (this.currentRoute = Et(s, this.routes), this.currentRoute) {\n const { path: o } = this.currentRoute;\n return this.setMatch({\n params: Lt(s, o),\n isExact: !0,\n path: o,\n url: s\n });\n }\n const i = Ne(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 dt.storage: {\n const { pathname: s } = this.location;\n this.currentRoute = Et(s, this.routes);\n const { name: i = \"\", params: o = {} } = t || {}, a = ke(i, this.routes);\n if (a) {\n const c = ee(o, a.path);\n if (c)\n return this.history.push(c), this.location = fr(Ot({}, this.location), { pathname: c }), this.currentRoute = Et(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 === G.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 === G.scopedHash && e !== this.widget.name)\n return;\n this.location = t, this.currentRoute = Et(r, this.routes);\n const i = Ne(this.container);\n if (this.currentRoute) {\n const { path: o } = this.currentRoute;\n this.setMatch({\n params: Lt(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 === G.scopedHash) {\n const s = this.widget.name, i = Ii(this.container);\n return Promise.resolve().then(() => zi).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 === G.memory)\n return t(Fs());\n if (e === G.browser)\n return t(zs({ basename: r }));\n throw \"RoutingService: History could not be created.\";\n });\n }\n}\nconst Gi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({\n __proto__: null,\n HistoryMode: G,\n RoutingService: Ki,\n createHashHistory: Cr,\n getScopedHashDOMLocation: kr,\n matchParams: Lt,\n onWidgetUrl: Xe\n}, Symbol.toStringTag, { value: \"Module\" })), 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}, Yi = (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 Rt = /* @__PURE__ */ ((n) => (n.Implementation = \"implementation\", n.Widget = \"widget\", n))(Rt || {}), ht = /* @__PURE__ */ ((n) => (n.Pre = \"pre\", n.Post = \"post\", n))(ht || {});\nconst Zi = (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 Dn(n, t) {\n return typeof n == \"undefined\" ? t : n;\n}\nclass Qi {\n constructor(t = {}) {\n this.part = t;\n }\n createCommand(t, e, r) {\n let s;\n typeof e == \"function\" ? s = {\n scope: Rt.Widget,\n stage: ht.Post,\n defaultArgs: void 0,\n handlerResolver: e\n } : s = {\n scope: Dn(e.scope, Rt.Widget),\n stage: Dn(e.stage, ht.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 Nr = (n) => {\n const t = new Qi({});\n return n(t), t.get();\n};\nNr((n) => {\n n.createCommand(\n \"types.register\",\n { scope: Rt.Implementation, stage: ht.Pre },\n (t) => (e, r) => {\n t.container.get(\"$types\")[e] = r;\n }\n ).createCommand(\n \"type\",\n { stage: ht.Pre },\n (t) => (e) => {\n t.container.register(\"$type\", e);\n }\n ).createCommand(\n \"settings\",\n { stage: ht.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: ht.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 = Zi(\n o,\n a,\n i,\n d\n );\n i.get(\"$plugins\").push(p), l && p.invoke(\"initialize\", null);\n } catch (p) {\n Yi(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 Xi(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 Tn = (n, t, e) => {\n const r = Xi(n);\n e({\n sourceDOMElement: n,\n eventType: t,\n data: r\n });\n};\nfunction jn(n, t, e) {\n n.forEach((r) => {\n r.dataset.attached !== \"true\" && (t === \"load\" ? Tn(r, t, e) : r.addEventListener(t, (s) => {\n s.preventDefault(), Tn(r, t, e);\n }), r.dataset.monitored = \"true\");\n });\n}\nfunction to(n, t, e) {\n const r = n.container.get(\"bootstrapping.monitor\");\n r && r.events.subscribe(\"bootstrap:trigger-elements-updated\", (i, o) => {\n jn(\n o.triggerElements,\n t,\n e\n );\n });\n const s = n.container.get(\"triggerElements\");\n s && jn(\n s,\n t,\n e\n );\n}\nNr((n) => {\n n.createCommand(\n \"ready\",\n { scope: Rt.Implementation, stage: ht.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 eo = (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 no(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), eo(n);\n}\nfunction ro(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 so(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 Mr(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 re = window, tn = re.ShadowRoot && (re.ShadyCSS === void 0 || re.ShadyCSS.nativeShadow) && \"adoptedStyleSheets\" in Document.prototype && \"replace\" in CSSStyleSheet.prototype, en = Symbol(), Rn = /* @__PURE__ */ new WeakMap();\nlet Lr = class {\n constructor(t, e, r) {\n if (this._$cssResult$ = !0, r !== en)\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 (tn && t === void 0) {\n const r = e !== void 0 && e.length === 1;\n r && (t = Rn.get(e)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), r && Rn.set(e, t));\n }\n return t;\n }\n toString() {\n return this.cssText;\n }\n};\nconst io = (n) => new Lr(typeof n == \"string\" ? n : n + \"\", void 0, en), oo = (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 Lr(e, n, en);\n}, ao = (n, t) => {\n tn ? n.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet) : t.forEach((e) => {\n const r = document.createElement(\"style\"), s = re.litNonce;\n s !== void 0 && r.setAttribute(\"nonce\", s), r.textContent = e.cssText, n.appendChild(r);\n });\n}, In = tn ? (n) => n : (n) => n instanceof CSSStyleSheet ? ((t) => {\n let e = \"\";\n for (const r of t.cssRules)\n e += r.cssText;\n return io(e);\n})(n) : n;\n/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\nvar Le;\nconst ue = window, Hn = ue.trustedTypes, co = Hn ? Hn.emptyScript : \"\", Un = ue.reactiveElementPolyfillSupport, We = { toAttribute(n, t) {\n switch (t) {\n case Boolean:\n n = n ? co : 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} }, Dr = (n, t) => t !== n && (t == t || n == n), De = { attribute: !0, type: String, converter: We, reflect: !1, hasChanged: Dr }, Fe = \"finalized\";\nlet At = 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 = De) {\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) || De;\n }\n static finalize() {\n if (this.hasOwnProperty(Fe))\n return !1;\n this[Fe] = !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(In(s));\n } else\n t !== void 0 && e.push(In(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 ao(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 = De) {\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 : We).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 : We;\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 || Dr)(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 z(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};\nAt[Fe] = !0, At.elementProperties = /* @__PURE__ */ new Map(), At.elementStyles = [], At.shadowRootOptions = { mode: \"open\" }, Un == null || Un({ ReactiveElement: At }), ((Le = ue.reactiveElementVersions) !== null && Le !== void 0 ? Le : ue.reactiveElementVersions = []).push(\"1.6.3\");\n/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\nvar Te;\nconst de = window, _t = de.trustedTypes, Bn = _t ? _t.createPolicy(\"lit-html\", { createHTML: (n) => n }) : void 0, qe = \"$lit$\", ct = `lit$${(Math.random() + \"\").slice(9)}$`, Tr = \"?\" + ct, ho = `<${Tr}>`, bt = document, It = () => bt.createComment(\"\"), Ht = (n) => n === null || typeof n != \"object\" && typeof n != \"function\", jr = Array.isArray, lo = (n) => jr(n) || typeof (n == null ? void 0 : n[Symbol.iterator]) == \"function\", je = `[ \t\n\\f\\r]`, kt = /<(?:(!--|\\/[^a-zA-Z])|(\\/?[a-zA-Z][^>\\s]*)|(\\/?$))/g, Vn = /-->/g, zn = />/g, ut = RegExp(`>|${je}(?:([^\\\\s\"'>=/]+)(${je}*=${je}*(?:[^ \t\n\\f\\r\"'\\`<>=]|(\"|')|))|$)`, \"g\"), Wn = /'/g, Fn = /\"/g, Rr = /^(?:script|style|textarea|title)$/i, uo = (n) => (t, ...e) => ({ _$litType$: n, strings: t, values: e }), Kt = uo(1), wt = Symbol.for(\"lit-noChange\"), T = Symbol.for(\"lit-nothing\"), qn = /* @__PURE__ */ new WeakMap(), mt = bt.createTreeWalker(bt, 129, null, !1);\nfunction Ir(n, t) {\n if (!Array.isArray(n) || !n.hasOwnProperty(\"raw\"))\n throw Error(\"invalid template strings array\");\n return Bn !== void 0 ? Bn.createHTML(t) : t;\n}\nconst po = (n, t) => {\n const e = n.length - 1, r = [];\n let s, i = t === 2 ? \"<svg>\" : \"\", o = kt;\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 === kt ? l[1] === \"!--\" ? o = Vn : l[1] !== void 0 ? o = zn : l[2] !== void 0 ? (Rr.test(l[2]) && (s = RegExp(\"</\" + l[2], \"g\")), o = ut) : l[3] !== void 0 && (o = ut) : o === ut ? l[0] === \">\" ? (o = s != null ? s : kt, u = -1) : l[1] === void 0 ? u = -2 : (u = o.lastIndex - l[2].length, h = l[1], o = l[3] === void 0 ? ut : l[3] === '\"' ? Fn : Wn) : o === Fn || o === Wn ? o = ut : o === Vn || o === zn ? o = kt : (o = ut, s = void 0);\n const p = o === ut && n[a + 1].startsWith(\"/>\") ? \" \" : \"\";\n i += o === kt ? c + ho : u >= 0 ? (r.push(h), c.slice(0, u) + qe + c.slice(u) + ct + p) : c + ct + (u === -2 ? (r.push(void 0), a) : p);\n }\n return [Ir(n, i + (n[e] || \"<?>\") + (t === 2 ? \"</svg>\" : \"\")), r];\n};\nclass Ut {\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] = po(t, e);\n if (this.el = Ut.createElement(h, r), mt.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 = mt.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(ct)) {\n const p = l[o++];\n if (u.push(d), p !== void 0) {\n const b = s.getAttribute(p.toLowerCase() + qe).split(ct), v = /([.?@])?(.*)/.exec(p);\n c.push({ type: 1, index: i, name: v[2], strings: b, ctor: v[1] === \".\" ? fo : v[1] === \"?\" ? vo : v[1] === \"@\" ? yo : we });\n } else\n c.push({ type: 6, index: i });\n }\n for (const d of u)\n s.removeAttribute(d);\n }\n if (Rr.test(s.tagName)) {\n const u = s.textContent.split(ct), d = u.length - 1;\n if (d > 0) {\n s.textContent = _t ? _t.emptyScript : \"\";\n for (let p = 0; p < d; p++)\n s.append(u[p], It()), mt.nextNode(), c.push({ type: 2, index: ++i });\n s.append(u[d], It());\n }\n }\n } else if (s.nodeType === 8)\n if (s.data === Tr)\n c.push({ type: 2, index: i });\n else {\n let u = -1;\n for (; (u = s.data.indexOf(ct, u + 1)) !== -1; )\n c.push({ type: 7, index: i }), u += ct.length - 1;\n }\n i++;\n }\n }\n static createElement(t, e) {\n const r = bt.createElement(\"template\");\n return r.innerHTML = t, r;\n }\n}\nfunction St(n, t, e = n, r) {\n var s, i, o, a;\n if (t === wt)\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 = Ht(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 = St(n, c._$AS(n, t.values), c, r)), t;\n}\nclass go {\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 : bt).importNode(r, !0);\n mt.currentNode = i;\n let o = mt.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 Vt(o, o.nextSibling, this, t) : h.type === 1 ? l = new h.ctor(o, h.name, h.strings, this, t) : h.type === 6 && (l = new bo(o, this, t)), this._$AV.push(l), h = s[++c];\n }\n a !== (h == null ? void 0 : h.index) && (o = mt.nextNode(), a++);\n }\n return mt.currentNode = bt, 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 Vt {\n constructor(t, e, r, s) {\n var i;\n this.type = 2, this._$AH = T, 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 = St(this, t, e), Ht(t) ? t === T || t == null || t === \"\" ? (this._$AH !== T && this._$AR(), this._$AH = T) : t !== this._$AH && t !== wt && this._(t) : t._$litType$ !== void 0 ? this.g(t) : t.nodeType !== void 0 ? this.$(t) : lo(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 !== T && Ht(this._$AH) ? this._$AA.nextSibling.data = t : this.$(bt.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 = Ut.createElement(Ir(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 go(i, this), a = o.u(this.options);\n o.v(r), this.$(a), this._$AH = o;\n }\n }\n _$AC(t) {\n let e = qn.get(t.strings);\n return e === void 0 && qn.set(t.strings, e = new Ut(t)), e;\n }\n T(t) {\n jr(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 Vt(this.k(It()), this.k(It()), 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 we {\n constructor(t, e, r, s, i) {\n this.type = 1, this._$AH = T, 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 = T;\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 = St(this, t, e, 0), o = !Ht(t) || t !== this._$AH && t !== wt, 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 = St(this, a[r + c], e, c), h === wt && (h = this._$AH[c]), o || (o = !Ht(h) || h !== this._$AH[c]), h === T ? t = T : t !== T && (t += (h != null ? h : \"\") + i[c + 1]), this._$AH[c] = h;\n }\n o && !s && this.j(t);\n }\n j(t) {\n t === T ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t != null ? t : \"\");\n }\n}\nclass fo extends we {\n constructor() {\n super(...arguments), this.type = 3;\n }\n j(t) {\n this.element[this.name] = t === T ? void 0 : t;\n }\n}\nconst mo = _t ? _t.emptyScript : \"\";\nclass vo extends we {\n constructor() {\n super(...arguments), this.type = 4;\n }\n j(t) {\n t && t !== T ? this.element.setAttribute(this.name, mo) : this.element.removeAttribute(this.name);\n }\n}\nclass yo extends we {\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 = St(this, t, e, 0)) !== null && r !== void 0 ? r : T) === wt)\n return;\n const s = this._$AH, i = t === T && s !== T || t.capture !== s.capture || t.once !== s.once || t.passive !== s.passive, o = t !== T && (s === T || 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 bo {\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 St(this, t);\n }\n}\nconst Jn = de.litHtmlPolyfillSupport;\nJn == null || Jn(Ut, Vt), ((Te = de.litHtmlVersions) !== null && Te !== void 0 ? Te : de.litHtmlVersions = []).push(\"2.8.0\");\nconst wo = (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 Vt(t.insertBefore(It(), 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 Re, Ie;\nlet jt = class extends At {\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 = wo(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 wt;\n }\n};\njt.finalized = !0, jt._$litElement$ = !0, (Re = globalThis.litElementHydrateSupport) === null || Re === void 0 || Re.call(globalThis, { LitElement: jt });\nconst Kn = globalThis.litElementPolyfillSupport;\nKn == null || Kn({ LitElement: jt });\n((Ie = globalThis.litElementVersions) !== null && Ie !== void 0 ? Ie : globalThis.litElementVersions = []).push(\"3.3.3\");\n/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\nconst $o = (n, t) => t.kind === \"method\" && t.descriptor && !(\"value\" in t.descriptor) ? zt(st({}, 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} }, Eo = (n, t, e) => {\n t.constructor.createProperty(e, n);\n};\nfunction Hr(n) {\n return (t, e) => e !== void 0 ? Eo(n, t, e) : $o(n, t);\n}\n/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\nfunction nn(n) {\n return Hr(zt(st({}, n), { state: !0 }));\n}\n/**\n * @license\n * Copyright 2021 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\nvar He;\n((He = window.HTMLSlotElement) === null || He === void 0 ? void 0 : He.prototype.assignedElements) != null;\n/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\nconst Oo = { ATTRIBUTE: 1, CHILD: 2, PROPERTY: 3, BOOLEAN_ATTRIBUTE: 4, EVENT: 5, ELEMENT: 6 }, Ao = (n) => (...t) => ({ _$litDirective$: n, values: t });\nclass xo {\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 _o = Ao(class extends xo {\n constructor(n) {\n var t;\n if (super(n), n.type !== Oo.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 wt;\n }\n});\nvar So = Object.defineProperty, Po = Object.getOwnPropertyDescriptor, $e = (n, t, e, r) => {\n for (var s = r > 1 ? void 0 : r ? Po(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 && So(t, e, s), s;\n};\nclass lt extends jt {\n constructor() {\n super(...arguments), this.active = !1, this.loaded = !1;\n }\n connectedCallback() {\n return z(this, null, function* () {\n cn(lt.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 z(this, null, function* () {\n const e = (r) => z(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 ? Kt`<telia-icon\n class=\"trigger-icon\"\n svg=${i.svg}\n size=\"lg\"\n ></telia-icon>` : T;\n }\n case \"FontAwesome\":\n return Kt`<i class=\"trigger-fa-icon fa fa-${s}\"></i>`;\n case \"Uri\":\n return Kt`<i\n class=\"trigger-custom-icon\"\n style=\"background: url(${s}) no-repeat center center;background-size: contain;\"\n ></i>`;\n default:\n return T;\n }\n }\n });\n }\n render() {\n return Kt`<button\n class=${_o({\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}\nlt.styles = [\n oo`\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];\n$e([\n Hr({ attribute: !1 })\n], lt.prototype, \"symbol\", 2);\n$e([\n nn()\n], lt.prototype, \"active\", 2);\n$e([\n nn()\n], lt.prototype, \"loaded\", 2);\n$e([\n nn()\n], lt.prototype, \"icon\", 2);\nvar vt = /* @__PURE__ */ ((n) => (n.Inline = \"inline\", n.Link = \"link\", n.Badge = \"badge\", n.Unsupported = \"unsupported\", n))(vt || {});\nconst Co = (n, t) => n && t ? \"both\" : n ? \"widgetDOM\" : t ? \"triggerDOM\" : \"none\", Ur = (n) => n ? typeof n == \"boolean\" && n ? \"link\" : typeof n == \"object\" && !Array.isArray(n) ? \"badge\" : \"unsupported\" : \"inline\", ko = (n, t, e, r, s = !1) => z(void 0, null, function* () {\n var h, l;\n const i = Co(\n t,\n e\n ), o = Ur(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\", lt);\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}), No = \"modals\";\nclass Mo {\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 === vt.Badge && so(e), import(\"./render-500e6f90.js\").then((s) => s.default(this.container, t)).then(() => {\n if (t.setAttribute(\"data-rendered\", \"true\"), e && this.options.triggerType === vt.Badge) {\n const i = this.options.triggerOptions.openTooltip;\n Mr(e, i);\n }\n os(this.container, t);\n const s = this.container.get(\"$environment\").widgets.all();\n Y(\n this.container,\n No,\n S.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 = no(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 z(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 Gt = \"changesets\", Lo = (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 rn {\n constructor(t, e) {\n this.container = t, this.storageWriter = e;\n }\n static create(t) {\n return et(\n t,\n Gt,\n P.Necessary,\n {\n medium: S.Local\n }\n ).then(\n (e) => new rn(t, e)\n );\n }\n write(t, e, r, s) {\n return Q(this)(() => Y(\n this.container,\n Gt,\n S.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: Lo(r),\n rules: e.rules\n }, this.storageWriter({ keys: o, items: a });\n }));\n }\n remove(t) {\n return Q(this)(() => Y(\n this.container,\n Gt,\n S.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 Q(this)(() => Y(\n this.container,\n Gt,\n S.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 Pt(t, a)\n });\n }\n });\n }));\n }\n}\nconst Do = (n) => {\n const { container: t } = n;\n return rn.create(t).then(\n (e) => {\n const r = t.get(\"$settings\"), s = { localStorage: e }, i = new me(n, s), o = rr(i, r);\n return n.events.subscribe(\n \"widget:state-change\",\n (a, c) => {\n c.state === Qn.Deactivating && o();\n }\n ), i;\n }\n );\n}, To = (n) => Promise.resolve().then(() => Gi).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), jo = (n) => Promise.resolve().then(() => ai).then(({ StorageProvider: t }) => new t()), Ro = (n) => Promise.resolve().then(() => Ge).then(({ ActionResolver: t }) => new t(n)), Io = (n) => Promise.resolve().then(() => Ge).then(({ ComponentResolver: t }) => new t(n)), Ho = (n) => Promise.resolve().then(() => Ge).then(() => Do(n.get(\"$widget\"))), Ue = \"$settings\", Yt = \"open\", Gn = \"activeStickyWidget\";\nclass la extends Zr {\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 () => jo(this.container)\n ), this.container.registerFactory(\"settings\", () => Y(\n this.container,\n Ue,\n S.Local\n ).then((e = {}) => st(st({}, this.container.get(\"$settings\")), e))), to(this, \"load\", this.handleBootstrapping), this.container.registerAsync(\n \"componentResolver\",\n () => Io(this.container)\n ), this.container.registerAsync(\n \"router\",\n () => To(this.container)\n ), this.container.registerAsync(\n \"actionResolver\",\n () => Ro(this.container)\n ), this.container.register(\"matchMedia\", window.matchMedia), this.container.registerAsync(\n \"components\",\n () => Ho(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, O) => typeof o.views[O].path == \"undefined\" ? O : g,\n \"\"\n );\n !b.name && v ? a(v) : a(b.name), yt(p && p.params), yt(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) => z(this, [r], function* ({ trigger: e }) {\n var p, b;\n const {\n widgetDOMElement: s,\n key: i = Bt(),\n triggerDOMElement: o,\n withRenderState: a\n } = t, h = Ur(e) === vt.Inline && ((o == null ? void 0 : o.childElementCount) || 0) > 0, l = yield ko(\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\"), O = (H, k) => {\n v() && (l.callback && l.callback(), k.disconnect());\n }, j = {\n attributes: !0,\n subtree: !0,\n childList: !0\n };\n v() && l.callback && l.callback(), new MutationObserver(O).observe(g, j);\n };\n h && this.widget.container.getAsync(\"dataClient\").then(({ events: v }) => {\n v.subscribe(\n \"data-client:fetched\",\n (g, O) => {\n O.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 === vt.Badge && e && ((p = l.triggerDOMElement) == null || p.setAttribute(\n \"aria-expanded\",\n \"false\"\n ), d == null || d.renderBadge(e)), l.triggerType !== vt.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((O) => g && g.action && g.action === \"hide\" ? O === q.open ? this.hide() : this.open() : O === q.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 === vt.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 Mo(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 = zt(st({}, 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 et(\n this.container,\n Ue,\n P.Necessary,\n {\n medium: S.Local\n }\n )\n ]).then(([e, r]) => Promise.resolve(t(e)).then((s) => r(s).then(() => {\n const i = st(st({}, e), s);\n return this.widget.events.dispatch(\"widget:settings-updated\", i), i;\n })));\n }\n clearSettings() {\n return et(\n this.container,\n Ue,\n P.Necessary,\n { medium: S.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 (Xe(this.container))\n return Promise.resolve(q.open);\n const t = () => Y(\n this.container,\n Yt,\n S.Session\n ).then((r = q.closed) => r), e = () => Y(\n this.container,\n Yt,\n S.Session\n ).then((r = q.closed) => r);\n return this.container.getAsync(\"router\").then((r) => r.isSticky() ? e().then((s) => s === q.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\" ? q.open : t === \"close\" ? q.closed : q.hidden;\n return this.setRenderState(r).then(() => {\n this.setTriggerState(r === q.open), r !== q.hidden ? r === q.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 et(\n this.container,\n Yt,\n P.Necessary,\n {\n medium: S.Session\n }\n ),\n et(\n this.container,\n Yt,\n P.Necessary,\n {\n medium: S.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 ? Mr(r, i) : ro(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())), Y(\n this.container,\n Gn,\n S.Local\n ).then((e) => e === this.widget.name ? et(\n this.container,\n Gn,\n P.Necessary,\n {\n medium: S.Local,\n scope: Ct.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 Uo = 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 */\nclass Yn {\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 Uo(this.context, this.t, this.subscribe));\n }\n}\nconst da = \"children\", Bo = \"descriptor\", Vo = \"container\", pa = \"context\", ga = \"layout\", fa = \"properties\";\nclass ma {\n constructor(t) {\n (this.host = t).addController(this), new Yn(\n t,\n Vo,\n (e) => {\n this._container = e, this.host.requestUpdate();\n },\n !0\n ), new Yn(\n t,\n Bo,\n (e) => {\n this._descriptor = e, this.host.requestUpdate();\n },\n !0\n );\n }\n hostConnected() {\n }\n hostDisconnected() {\n }\n dispatch(t, e) {\n return z(this, null, function* () {\n if (!this._container || !this._descriptor)\n return;\n const r = yield me.getInstance(\n this._container\n ), s = new Pt(r).withId(\n this._descriptor.id\n );\n yield r.actions(\n s,\n this._descriptor.type || Bt()\n ).dispatch(t, e);\n });\n }\n}\nconst zo = (n, t) => z(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}), va = (n, t) => z(void 0, null, function* () {\n const { provider: e, settings: r = {} } = yield zo(n, t);\n return {\n addResource: (s, i) => e.addResource(s, i),\n getData: (s, i) => e.getData(s, i, r)\n };\n});\nclass Wo {\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 z(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 Zn = (n) => ({\n title: n.Title,\n id: n.Id.toString()\n});\nclass Fo extends Wo {\n constructor(t) {\n super(t), this.addResource(\"item\", {\n query: (e, r) => z(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 ? Zn(h) : null;\n })\n }), this.addResource(\"items\", {\n query: (e, r) => z(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) => Zn(d)),\n totalItems: (u == null ? void 0 : u.TotalMatches) || 0\n };\n })\n });\n }\n}\nconst ya = (n) => z(void 0, null, function* () {\n n.registerAsync(\"guideProvider\", () => new Fo(n));\n}), ba = (n, t, e, r, s) => n.getAsync(\"componentResolver\").then((i) => (i.registerComponent(t, e), sr(n, t, r || (() => {\n}), t, s)));\nexport {\n T as A,\n Wo as D,\n xs as E,\n ya as G,\n la as W,\n Yn as a,\n jt as b,\n Vo as c,\n oo as d,\n Ao as e,\n nn as f,\n Bo as g,\n da as h,\n xo as i,\n fa as j,\n pa as k,\n ga as l,\n q as m,\n Hr as n,\n ma as o,\n me as p,\n va as q,\n ba as r,\n Uo as s,\n Oo as t,\n Kt as x\n};\n//# sourceMappingURL=index-7657bfd2.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":["Br","Vr","zr","on","Wr","Fr","qr","Jr","an","n","t","e","st","zt","cn","z","s","c","a","Ee","Kr","se","pt","Gr","hn","Yr","r","i","o","Je","u","p","pe","Nt","I","Xn","ns","un","rs","Wt","Q","it","Bt","cs","hs","ls","pn","us","ds","gn","ps","gs","tr","Pt","ms","Ke","ge","vs","h","l","d","b","v","Be","er","fe","Zt","nr","ys","bs","ws","$s","Oe","X","Es","Os","g","O","j","W","H","k","U","me","sr","qs","On","Js","Ks","An","$t","S","Ct","P","et","xn","Qe","Ys","Ze","ti","ni","Y","Xs","ae","ei","xt","xe","lr","Gs","ye","ve","_e","Se","Ye","ur","oe","Ve","Zs","Qt","Qs","Pe","si","ce","ft","ii","_n","oi","dr","mr","vr","di","pi","gi","Jt","Ce","mi","vi","yi","Cn","te","bi","wi","Oi","Er","xi","Me","Yi","Rt","ht","Zi","Dn","Qi","Nr","re","tn","en","Rn","Lr","io","oo","ao","In","Le","ue","Hn","co","Un","We","Dr","De","Fe","At","Te","de","_t","Bn","qe","ct","Tr","ho","bt","It","Ht","jr","lo","je","kt","Vn","zn","ut","Wn","Fn","Rr","uo","Kt","wt","T","qn","mt","Ir","po","Ut","fo","vo","yo","we","St","go","Vt","bo","mo","Jn","wo","Re","Ie","jt","Kn","$o","Eo","Hr","nn","He","Oo","Ao","xo","_o","So","Po","$e","lt","da","fa","ba","AreaComponent","container","createWebComponent","_component"],"mappings":"AAAA,IAAIA,KAAK,OAAO,gBAAgBC,KAAK,OAAO,kBACxCC,KAAK,OAAO,2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