@telia-ace/widget-components-widget-header-flamingo 1.1.40-rc.0 → 1.1.40

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.js CHANGED
@@ -1 +1 @@
1
- "use strict";const r=async e=>{e.registerComponent("widget-header",Promise.resolve().then(()=>require("./widget-header-8270133b.js")))};module.exports=r;
1
+ "use strict";const r=async e=>{e.registerComponent("widget-header",Promise.resolve().then(()=>require("./widget-header-001912e0.js")))};module.exports=r;
package/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  const t = async (e) => {
2
- e.registerComponent("widget-header", import("./widget-header-5913f77d.mjs"));
2
+ e.registerComponent("widget-header", import("./widget-header-486680fc.mjs"));
3
3
  };
4
4
  export {
5
5
  t as default
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@telia-ace/widget-components-widget-header-flamingo",
3
- "version": "1.1.40-rc.0",
3
+ "version": "1.1.40",
4
4
  "dependencies": {
5
5
  "lit": "^3.0.2",
6
- "@telia-ace/widget-core-flamingo": "1.1.40-rc.0",
6
+ "@telia-ace/widget-core-flamingo": "1.1.40",
7
7
  "@teliads/components": "^22.1.1",
8
8
  "@teliads/icons": "^8.4.0",
9
9
  "@lit-labs/motion": "^1.0.6",
@@ -1,32 +1,32 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var zt=function(e,t){return zt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(n[r]=i[r])},zt(e,t)};function rt(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");zt(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}function Kn(e,t,n,i){function r(s){return s instanceof n?s:new n(function(o){o(s)})}return new(n||(n=Promise))(function(s,o){function a(u){try{c(i.next(u))}catch(h){o(h)}}function l(u){try{c(i.throw(u))}catch(h){o(h)}}function c(u){u.done?s(u.value):r(u.value).then(a,l)}c((i=i.apply(e,t||[])).next())})}function qe(e,t){var n={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},i,r,s,o;return o={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function a(c){return function(u){return l([c,u])}}function l(c){if(i)throw new TypeError("Generator is already executing.");for(;o&&(o=0,c[0]&&(n=0)),n;)try{if(i=1,r&&(s=c[0]&2?r.return:c[0]?r.throw||((s=r.return)&&s.call(r),0):r.next)&&!(s=s.call(r,c[1])).done)return s;switch(r=0,s&&(c=[c[0]&2,s.value]),c[0]){case 0:case 1:s=c;break;case 4:return n.label++,{value:c[1],done:!1};case 5:n.label++,r=c[1],c=[0];continue;case 7:c=n.ops.pop(),n.trys.pop();continue;default:if(s=n.trys,!(s=s.length>0&&s[s.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!s||c[1]>s[0]&&c[1]<s[3])){n.label=c[1];break}if(c[0]===6&&n.label<s[1]){n.label=s[1],s=c;break}if(s&&n.label<s[2]){n.label=s[2],n.ops.push(c);break}s[2]&&n.ops.pop(),n.trys.pop();continue}c=t.call(e,n)}catch(u){c=[6,u],r=0}finally{i=s=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}function G(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],i=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function gt(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var i=n.call(e),r,s=[],o;try{for(;(t===void 0||t-- >0)&&!(r=i.next()).done;)s.push(r.value)}catch(a){o={error:a}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s}function $t(e,t,n){if(n||arguments.length===2)for(var i=0,r=t.length,s;i<r;i++)(s||!(i in t))&&(s||(s=Array.prototype.slice.call(t,0,i)),s[i]=t[i]);return e.concat(s||Array.prototype.slice.call(t))}function z(e){return this instanceof z?(this.v=e,this):new z(e)}function Qn(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i=n.apply(e,t||[]),r,s=[];return r={},o("next"),o("throw"),o("return"),r[Symbol.asyncIterator]=function(){return this},r;function o(d){i[d]&&(r[d]=function(f){return new Promise(function($,g){s.push([d,f,$,g])>1||a(d,f)})})}function a(d,f){try{l(i[d](f))}catch($){h(s[0][3],$)}}function l(d){d.value instanceof z?Promise.resolve(d.value.v).then(c,u):h(s[0][2],d)}function c(d){a("next",d)}function u(d){a("throw",d)}function h(d,f){d(f),s.shift(),s.length&&a(s[0][0],s[0][1])}}function Xn(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof G=="function"?G(e):e[Symbol.iterator](),n={},i("next"),i("throw"),i("return"),n[Symbol.asyncIterator]=function(){return this},n);function i(s){n[s]=e[s]&&function(o){return new Promise(function(a,l){o=e[s](o),r(a,l,o.done,o.value)})}}function r(s,o,a,l){Promise.resolve(l).then(function(c){s({value:c,done:a})},o)}}function v(e){return typeof e=="function"}function Ye(e){var t=function(i){Error.call(i),i.stack=new Error().stack},n=e(t);return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var Lt=Ye(function(e){return function(n){e(this),this.message=n?n.length+` errors occurred during unsubscription:
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var Wt=function(e,t){return Wt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(n[r]=i[r])},Wt(e,t)};function rt(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Wt(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}function Kn(e,t,n,i){function r(s){return s instanceof n?s:new n(function(o){o(s)})}return new(n||(n=Promise))(function(s,o){function a(u){try{c(i.next(u))}catch(h){o(h)}}function l(u){try{c(i.throw(u))}catch(h){o(h)}}function c(u){u.done?s(u.value):r(u.value).then(a,l)}c((i=i.apply(e,t||[])).next())})}function Ze(e,t){var n={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},i,r,s,o;return o={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function a(c){return function(u){return l([c,u])}}function l(c){if(i)throw new TypeError("Generator is already executing.");for(;o&&(o=0,c[0]&&(n=0)),n;)try{if(i=1,r&&(s=c[0]&2?r.return:c[0]?r.throw||((s=r.return)&&s.call(r),0):r.next)&&!(s=s.call(r,c[1])).done)return s;switch(r=0,s&&(c=[c[0]&2,s.value]),c[0]){case 0:case 1:s=c;break;case 4:return n.label++,{value:c[1],done:!1};case 5:n.label++,r=c[1],c=[0];continue;case 7:c=n.ops.pop(),n.trys.pop();continue;default:if(s=n.trys,!(s=s.length>0&&s[s.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!s||c[1]>s[0]&&c[1]<s[3])){n.label=c[1];break}if(c[0]===6&&n.label<s[1]){n.label=s[1],s=c;break}if(s&&n.label<s[2]){n.label=s[2],n.ops.push(c);break}s[2]&&n.ops.pop(),n.trys.pop();continue}c=t.call(e,n)}catch(u){c=[6,u],r=0}finally{i=s=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}function G(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],i=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function gt(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var i=n.call(e),r,s=[],o;try{for(;(t===void 0||t-- >0)&&!(r=i.next()).done;)s.push(r.value)}catch(a){o={error:a}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s}function $t(e,t,n){if(n||arguments.length===2)for(var i=0,r=t.length,s;i<r;i++)(s||!(i in t))&&(s||(s=Array.prototype.slice.call(t,0,i)),s[i]=t[i]);return e.concat(s||Array.prototype.slice.call(t))}function z(e){return this instanceof z?(this.v=e,this):new z(e)}function Qn(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i=n.apply(e,t||[]),r,s=[];return r={},o("next"),o("throw"),o("return"),r[Symbol.asyncIterator]=function(){return this},r;function o(d){i[d]&&(r[d]=function(f){return new Promise(function($,g){s.push([d,f,$,g])>1||a(d,f)})})}function a(d,f){try{l(i[d](f))}catch($){h(s[0][3],$)}}function l(d){d.value instanceof z?Promise.resolve(d.value.v).then(c,u):h(s[0][2],d)}function c(d){a("next",d)}function u(d){a("throw",d)}function h(d,f){d(f),s.shift(),s.length&&a(s[0][0],s[0][1])}}function Xn(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof G=="function"?G(e):e[Symbol.iterator](),n={},i("next"),i("throw"),i("return"),n[Symbol.asyncIterator]=function(){return this},n);function i(s){n[s]=e[s]&&function(o){return new Promise(function(a,l){o=e[s](o),r(a,l,o.done,o.value)})}}function r(s,o,a,l){Promise.resolve(l).then(function(c){s({value:c,done:a})},o)}}function v(e){return typeof e=="function"}function Ke(e){var t=function(i){Error.call(i),i.stack=new Error().stack},n=e(t);return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var Rt=Ke(function(e){return function(n){e(this),this.message=n?n.length+` errors occurred during unsubscription:
2
2
  `+n.map(function(i,r){return r+1+") "+i.toString()}).join(`
3
- `):"",this.name="UnsubscriptionError",this.errors=n}});function Ft(e,t){if(e){var n=e.indexOf(t);0<=n&&e.splice(n,1)}}var At=function(){function e(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var t,n,i,r,s;if(!this.closed){this.closed=!0;var o=this._parentage;if(o)if(this._parentage=null,Array.isArray(o))try{for(var a=G(o),l=a.next();!l.done;l=a.next()){var c=l.value;c.remove(this)}}catch(g){t={error:g}}finally{try{l&&!l.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}else o.remove(this);var u=this.initialTeardown;if(v(u))try{u()}catch(g){s=g instanceof Lt?g.errors:[g]}var h=this._finalizers;if(h){this._finalizers=null;try{for(var d=G(h),f=d.next();!f.done;f=d.next()){var $=f.value;try{he($)}catch(g){s=s??[],g instanceof Lt?s=$t($t([],gt(s)),gt(g.errors)):s.push(g)}}}catch(g){i={error:g}}finally{try{f&&!f.done&&(r=d.return)&&r.call(d)}finally{if(i)throw i.error}}}if(s)throw new Lt(s)}},e.prototype.add=function(t){var n;if(t&&t!==this)if(this.closed)he(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(t)}},e.prototype._hasParent=function(t){var n=this._parentage;return n===t||Array.isArray(n)&&n.includes(t)},e.prototype._addParent=function(t){var n=this._parentage;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t},e.prototype._removeParent=function(t){var n=this._parentage;n===t?this._parentage=null:Array.isArray(n)&&Ft(n,t)},e.prototype.remove=function(t){var n=this._finalizers;n&&Ft(n,t),t instanceof e&&t._removeParent(this)},e.EMPTY=function(){var t=new e;return t.closed=!0,t}(),e}(),Ze=At.EMPTY;function Ke(e){return e instanceof At||e&&"closed"in e&&v(e.remove)&&v(e.add)&&v(e.unsubscribe)}function he(e){v(e)?e():e.unsubscribe()}var Qe={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},Wt={setTimeout:function(e,t){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];var r=Wt.delegate;return r!=null&&r.setTimeout?r.setTimeout.apply(r,$t([e,t],gt(n))):setTimeout.apply(void 0,$t([e,t],gt(n)))},clearTimeout:function(e){var t=Wt.delegate;return((t==null?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0};function Xe(e){Wt.setTimeout(function(){throw e})}function de(){}function ft(e){e()}var Kt=function(e){rt(t,e);function t(n){var i=e.call(this)||this;return i.isStopped=!1,n?(i.destination=n,Ke(n)&&n.add(i)):i.destination=ei,i}return t.create=function(n,i,r){return new Gt(n,i,r)},t.prototype.next=function(n){this.isStopped||this._next(n)},t.prototype.error=function(n){this.isStopped||(this.isStopped=!0,this._error(n))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(n){this.destination.next(n)},t.prototype._error=function(n){try{this.destination.error(n)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(At),Jn=Function.prototype.bind;function Ut(e,t){return Jn.call(e,t)}var Vn=function(){function e(t){this.partialObserver=t}return e.prototype.next=function(t){var n=this.partialObserver;if(n.next)try{n.next(t)}catch(i){ct(i)}},e.prototype.error=function(t){var n=this.partialObserver;if(n.error)try{n.error(t)}catch(i){ct(i)}else ct(t)},e.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(n){ct(n)}},e}(),Gt=function(e){rt(t,e);function t(n,i,r){var s=e.call(this)||this,o;if(v(n)||!n)o={next:n??void 0,error:i??void 0,complete:r??void 0};else{var a;s&&Qe.useDeprecatedNextContext?(a=Object.create(n),a.unsubscribe=function(){return s.unsubscribe()},o={next:n.next&&Ut(n.next,a),error:n.error&&Ut(n.error,a),complete:n.complete&&Ut(n.complete,a)}):o=n}return s.destination=new Vn(o),s}return t}(Kt);function ct(e){Xe(e)}function ti(e){throw e}var ei={closed:!0,next:de,error:ti,complete:de},Qt=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function Je(e){return e}function ni(e){return e.length===0?Je:e.length===1?e[0]:function(n){return e.reduce(function(i,r){return r(i)},n)}}var S=function(){function e(t){t&&(this._subscribe=t)}return e.prototype.lift=function(t){var n=new e;return n.source=this,n.operator=t,n},e.prototype.subscribe=function(t,n,i){var r=this,s=ri(t)?t:new Gt(t,n,i);return ft(function(){var o=r,a=o.operator,l=o.source;s.add(a?a.call(s,l):l?r._subscribe(s):r._trySubscribe(s))}),s},e.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(n){t.error(n)}},e.prototype.forEach=function(t,n){var i=this;return n=fe(n),new n(function(r,s){var o=new Gt({next:function(a){try{t(a)}catch(l){s(l),o.unsubscribe()}},error:s,complete:r});i.subscribe(o)})},e.prototype._subscribe=function(t){var n;return(n=this.source)===null||n===void 0?void 0:n.subscribe(t)},e.prototype[Qt]=function(){return this},e.prototype.pipe=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return ni(t)(this)},e.prototype.toPromise=function(t){var n=this;return t=fe(t),new t(function(i,r){var s;n.subscribe(function(o){return s=o},function(o){return r(o)},function(){return i(s)})})},e.create=function(t){return new e(t)},e}();function fe(e){var t;return(t=e??Qe.Promise)!==null&&t!==void 0?t:Promise}function ii(e){return e&&v(e.next)&&v(e.error)&&v(e.complete)}function ri(e){return e&&e instanceof Kt||ii(e)&&Ke(e)}function si(e){return v(e==null?void 0:e.lift)}function Ct(e){return function(t){if(si(t))return t.lift(function(n){try{return e(n,this)}catch(i){this.error(i)}});throw new TypeError("Unable to lift unknown Observable type")}}function vt(e,t,n,i,r){return new oi(e,t,n,i,r)}var oi=function(e){rt(t,e);function t(n,i,r,s,o,a){var l=e.call(this,n)||this;return l.onFinalize=o,l.shouldUnsubscribe=a,l._next=i?function(c){try{i(c)}catch(u){n.error(u)}}:e.prototype._next,l._error=s?function(c){try{s(c)}catch(u){n.error(u)}finally{this.unsubscribe()}}:e.prototype._error,l._complete=r?function(){try{r()}catch(c){n.error(c)}finally{this.unsubscribe()}}:e.prototype._complete,l}return t.prototype.unsubscribe=function(){var n;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var i=this.closed;e.prototype.unsubscribe.call(this),!i&&((n=this.onFinalize)===null||n===void 0||n.call(this))}},t}(Kt),ai=Ye(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Ve=function(e){rt(t,e);function t(){var n=e.call(this)||this;return n.closed=!1,n.currentObservers=null,n.observers=[],n.isStopped=!1,n.hasError=!1,n.thrownError=null,n}return t.prototype.lift=function(n){var i=new pe(this,this);return i.operator=n,i},t.prototype._throwIfClosed=function(){if(this.closed)throw new ai},t.prototype.next=function(n){var i=this;ft(function(){var r,s;if(i._throwIfClosed(),!i.isStopped){i.currentObservers||(i.currentObservers=Array.from(i.observers));try{for(var o=G(i.currentObservers),a=o.next();!a.done;a=o.next()){var l=a.value;l.next(n)}}catch(c){r={error:c}}finally{try{a&&!a.done&&(s=o.return)&&s.call(o)}finally{if(r)throw r.error}}}})},t.prototype.error=function(n){var i=this;ft(function(){if(i._throwIfClosed(),!i.isStopped){i.hasError=i.isStopped=!0,i.thrownError=n;for(var r=i.observers;r.length;)r.shift().error(n)}})},t.prototype.complete=function(){var n=this;ft(function(){if(n._throwIfClosed(),!n.isStopped){n.isStopped=!0;for(var i=n.observers;i.length;)i.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var n;return((n=this.observers)===null||n===void 0?void 0:n.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(n){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,n)},t.prototype._subscribe=function(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)},t.prototype._innerSubscribe=function(n){var i=this,r=this,s=r.hasError,o=r.isStopped,a=r.observers;return s||o?Ze:(this.currentObservers=null,a.push(n),new At(function(){i.currentObservers=null,Ft(a,n)}))},t.prototype._checkFinalizedStatuses=function(n){var i=this,r=i.hasError,s=i.thrownError,o=i.isStopped;r?n.error(s):o&&n.complete()},t.prototype.asObservable=function(){var n=new S;return n.source=this,n},t.create=function(n,i){return new pe(n,i)},t}(S),pe=function(e){rt(t,e);function t(n,i){var r=e.call(this)||this;return r.destination=n,r.source=i,r}return t.prototype.next=function(n){var i,r;(r=(i=this.destination)===null||i===void 0?void 0:i.next)===null||r===void 0||r.call(i,n)},t.prototype.error=function(n){var i,r;(r=(i=this.destination)===null||i===void 0?void 0:i.error)===null||r===void 0||r.call(i,n)},t.prototype.complete=function(){var n,i;(i=(n=this.destination)===null||n===void 0?void 0:n.complete)===null||i===void 0||i.call(n)},t.prototype._subscribe=function(n){var i,r;return(r=(i=this.source)===null||i===void 0?void 0:i.subscribe(n))!==null&&r!==void 0?r:Ze},t}(Ve),li=new S(function(e){return e.complete()});function ci(e){return e&&v(e.schedule)}function tn(e){return e[e.length-1]}function ui(e){return ci(tn(e))?e.pop():void 0}function hi(e,t){return typeof tn(e)=="number"?e.pop():t}var en=function(e){return e&&typeof e.length=="number"&&typeof e!="function"};function nn(e){return v(e==null?void 0:e.then)}function rn(e){return v(e[Qt])}function sn(e){return Symbol.asyncIterator&&v(e==null?void 0:e[Symbol.asyncIterator])}function on(e){return new TypeError("You provided "+(e!==null&&typeof e=="object"?"an invalid object":"'"+e+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}function di(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var an=di();function ln(e){return v(e==null?void 0:e[an])}function cn(e){return Qn(this,arguments,function(){var n,i,r,s;return qe(this,function(o){switch(o.label){case 0:n=e.getReader(),o.label=1;case 1:o.trys.push([1,,9,10]),o.label=2;case 2:return[4,z(n.read())];case 3:return i=o.sent(),r=i.value,s=i.done,s?[4,z(void 0)]:[3,5];case 4:return[2,o.sent()];case 5:return[4,z(r)];case 6:return[4,o.sent()];case 7:return o.sent(),[3,2];case 8:return[3,10];case 9:return n.releaseLock(),[7];case 10:return[2]}})})}function un(e){return v(e==null?void 0:e.getReader)}function Y(e){if(e instanceof S)return e;if(e!=null){if(rn(e))return fi(e);if(en(e))return pi(e);if(nn(e))return gi(e);if(sn(e))return hn(e);if(ln(e))return $i(e);if(un(e))return vi(e)}throw on(e)}function fi(e){return new S(function(t){var n=e[Qt]();if(v(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function pi(e){return new S(function(t){for(var n=0;n<e.length&&!t.closed;n++)t.next(e[n]);t.complete()})}function gi(e){return new S(function(t){e.then(function(n){t.closed||(t.next(n),t.complete())},function(n){return t.error(n)}).then(null,Xe)})}function $i(e){return new S(function(t){var n,i;try{for(var r=G(e),s=r.next();!s.done;s=r.next()){var o=s.value;if(t.next(o),t.closed)return}}catch(a){n={error:a}}finally{try{s&&!s.done&&(i=r.return)&&i.call(r)}finally{if(n)throw n.error}}t.complete()})}function hn(e){return new S(function(t){mi(e,t).catch(function(n){return t.error(n)})})}function vi(e){return hn(cn(e))}function mi(e,t){var n,i,r,s;return Kn(this,void 0,void 0,function(){var o,a;return qe(this,function(l){switch(l.label){case 0:l.trys.push([0,5,6,11]),n=Xn(e),l.label=1;case 1:return[4,n.next()];case 2:if(i=l.sent(),!!i.done)return[3,4];if(o=i.value,t.next(o),t.closed)return[2];l.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return a=l.sent(),r={error:a},[3,11];case 6:return l.trys.push([6,,9,10]),i&&!i.done&&(s=n.return)?[4,s.call(n)]:[3,8];case 7:l.sent(),l.label=8;case 8:return[3,10];case 9:if(r)throw r.error;return[7];case 10:return[7];case 11:return t.complete(),[2]}})})}function k(e,t,n,i,r){i===void 0&&(i=0),r===void 0&&(r=!1);var s=t.schedule(function(){n(),r?e.add(this.schedule(null,i)):this.unsubscribe()},i);if(e.add(s),!r)return s}function dn(e,t){return t===void 0&&(t=0),Ct(function(n,i){n.subscribe(vt(i,function(r){return k(i,e,function(){return i.next(r)},t)},function(){return k(i,e,function(){return i.complete()},t)},function(r){return k(i,e,function(){return i.error(r)},t)}))})}function fn(e,t){return t===void 0&&(t=0),Ct(function(n,i){i.add(e.schedule(function(){return n.subscribe(i)},t))})}function yi(e,t){return Y(e).pipe(fn(t),dn(t))}function bi(e,t){return Y(e).pipe(fn(t),dn(t))}function _i(e,t){return new S(function(n){var i=0;return t.schedule(function(){i===e.length?n.complete():(n.next(e[i++]),n.closed||this.schedule())})})}function wi(e,t){return new S(function(n){var i;return k(n,t,function(){i=e[an](),k(n,t,function(){var r,s,o;try{r=i.next(),s=r.value,o=r.done}catch(a){n.error(a);return}o?n.complete():n.next(s)},0,!0)}),function(){return v(i==null?void 0:i.return)&&i.return()}})}function pn(e,t){if(!e)throw new Error("Iterable cannot be null");return new S(function(n){k(n,t,function(){var i=e[Symbol.asyncIterator]();k(n,t,function(){i.next().then(function(r){r.done?n.complete():n.next(r.value)})},0,!0)})})}function Si(e,t){return pn(cn(e),t)}function xi(e,t){if(e!=null){if(rn(e))return yi(e,t);if(en(e))return _i(e,t);if(nn(e))return bi(e,t);if(sn(e))return pn(e,t);if(ln(e))return wi(e,t);if(un(e))return Si(e,t)}throw on(e)}function Ai(e,t){return t?xi(e,t):Y(e)}function Ci(e,t){return Ct(function(n,i){var r=0;n.subscribe(vt(i,function(s){i.next(e.call(t,s,r++))}))})}function Ei(e,t,n,i,r,s,o,a){var l=[],c=0,u=0,h=!1,d=function(){h&&!l.length&&!c&&t.complete()},f=function(g){return c<i?$(g):l.push(g)},$=function(g){s&&t.next(g),c++;var ue=!1;Y(n(g,u++)).subscribe(vt(t,function(K){r==null||r(K),s?f(K):t.next(K)},function(){ue=!0},void 0,function(){if(ue)try{c--;for(var K=function(){var lt=l.shift();o?k(t,o,function(){return $(lt)}):$(lt)};l.length&&c<i;)K();d()}catch(lt){t.error(lt)}}))};return e.subscribe(vt(t,f,function(){h=!0,d()})),function(){a==null||a()}}function gn(e,t,n){return n===void 0&&(n=1/0),v(t)?gn(function(i,r){return Ci(function(s,o){return t(i,s,r,o)})(Y(e(i,r)))},n):(typeof t=="number"&&(n=t),Ct(function(i,r){return Ei(i,r,e,n)}))}function ki(e){return e===void 0&&(e=1/0),gn(Je,e)}function Oi(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=ui(e),i=hi(e,1/0),r=e;return r.length?r.length===1?Y(r[0]):ki(i)(Ai(r,n)):li}/**
3
+ `):"",this.name="UnsubscriptionError",this.errors=n}});function Gt(e,t){if(e){var n=e.indexOf(t);0<=n&&e.splice(n,1)}}var Et=function(){function e(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var t,n,i,r,s;if(!this.closed){this.closed=!0;var o=this._parentage;if(o)if(this._parentage=null,Array.isArray(o))try{for(var a=G(o),l=a.next();!l.done;l=a.next()){var c=l.value;c.remove(this)}}catch(g){t={error:g}}finally{try{l&&!l.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}else o.remove(this);var u=this.initialTeardown;if(v(u))try{u()}catch(g){s=g instanceof Rt?g.errors:[g]}var h=this._finalizers;if(h){this._finalizers=null;try{for(var d=G(h),f=d.next();!f.done;f=d.next()){var $=f.value;try{fe($)}catch(g){s=s??[],g instanceof Rt?s=$t($t([],gt(s)),gt(g.errors)):s.push(g)}}}catch(g){i={error:g}}finally{try{f&&!f.done&&(r=d.return)&&r.call(d)}finally{if(i)throw i.error}}}if(s)throw new Rt(s)}},e.prototype.add=function(t){var n;if(t&&t!==this)if(this.closed)fe(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(t)}},e.prototype._hasParent=function(t){var n=this._parentage;return n===t||Array.isArray(n)&&n.includes(t)},e.prototype._addParent=function(t){var n=this._parentage;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t},e.prototype._removeParent=function(t){var n=this._parentage;n===t?this._parentage=null:Array.isArray(n)&&Gt(n,t)},e.prototype.remove=function(t){var n=this._finalizers;n&&Gt(n,t),t instanceof e&&t._removeParent(this)},e.EMPTY=function(){var t=new e;return t.closed=!0,t}(),e}(),Qe=Et.EMPTY;function Xe(e){return e instanceof Et||e&&"closed"in e&&v(e.remove)&&v(e.add)&&v(e.unsubscribe)}function fe(e){v(e)?e():e.unsubscribe()}var Je={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},qt={setTimeout:function(e,t){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];var r=qt.delegate;return r!=null&&r.setTimeout?r.setTimeout.apply(r,$t([e,t],gt(n))):setTimeout.apply(void 0,$t([e,t],gt(n)))},clearTimeout:function(e){var t=qt.delegate;return((t==null?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0};function Ve(e){qt.setTimeout(function(){throw e})}function pe(){}function ft(e){e()}var Xt=function(e){rt(t,e);function t(n){var i=e.call(this)||this;return i.isStopped=!1,n?(i.destination=n,Xe(n)&&n.add(i)):i.destination=ei,i}return t.create=function(n,i,r){return new Yt(n,i,r)},t.prototype.next=function(n){this.isStopped||this._next(n)},t.prototype.error=function(n){this.isStopped||(this.isStopped=!0,this._error(n))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(n){this.destination.next(n)},t.prototype._error=function(n){try{this.destination.error(n)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(Et),Jn=Function.prototype.bind;function Mt(e,t){return Jn.call(e,t)}var Vn=function(){function e(t){this.partialObserver=t}return e.prototype.next=function(t){var n=this.partialObserver;if(n.next)try{n.next(t)}catch(i){ct(i)}},e.prototype.error=function(t){var n=this.partialObserver;if(n.error)try{n.error(t)}catch(i){ct(i)}else ct(t)},e.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(n){ct(n)}},e}(),Yt=function(e){rt(t,e);function t(n,i,r){var s=e.call(this)||this,o;if(v(n)||!n)o={next:n??void 0,error:i??void 0,complete:r??void 0};else{var a;s&&Je.useDeprecatedNextContext?(a=Object.create(n),a.unsubscribe=function(){return s.unsubscribe()},o={next:n.next&&Mt(n.next,a),error:n.error&&Mt(n.error,a),complete:n.complete&&Mt(n.complete,a)}):o=n}return s.destination=new Vn(o),s}return t}(Xt);function ct(e){Ve(e)}function ti(e){throw e}var ei={closed:!0,next:pe,error:ti,complete:pe},Jt=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function tn(e){return e}function ni(e){return e.length===0?tn:e.length===1?e[0]:function(n){return e.reduce(function(i,r){return r(i)},n)}}var S=function(){function e(t){t&&(this._subscribe=t)}return e.prototype.lift=function(t){var n=new e;return n.source=this,n.operator=t,n},e.prototype.subscribe=function(t,n,i){var r=this,s=ri(t)?t:new Yt(t,n,i);return ft(function(){var o=r,a=o.operator,l=o.source;s.add(a?a.call(s,l):l?r._subscribe(s):r._trySubscribe(s))}),s},e.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(n){t.error(n)}},e.prototype.forEach=function(t,n){var i=this;return n=ge(n),new n(function(r,s){var o=new Yt({next:function(a){try{t(a)}catch(l){s(l),o.unsubscribe()}},error:s,complete:r});i.subscribe(o)})},e.prototype._subscribe=function(t){var n;return(n=this.source)===null||n===void 0?void 0:n.subscribe(t)},e.prototype[Jt]=function(){return this},e.prototype.pipe=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return ni(t)(this)},e.prototype.toPromise=function(t){var n=this;return t=ge(t),new t(function(i,r){var s;n.subscribe(function(o){return s=o},function(o){return r(o)},function(){return i(s)})})},e.create=function(t){return new e(t)},e}();function ge(e){var t;return(t=e??Je.Promise)!==null&&t!==void 0?t:Promise}function ii(e){return e&&v(e.next)&&v(e.error)&&v(e.complete)}function ri(e){return e&&e instanceof Xt||ii(e)&&Xe(e)}function si(e){return v(e==null?void 0:e.lift)}function kt(e){return function(t){if(si(t))return t.lift(function(n){try{return e(n,this)}catch(i){this.error(i)}});throw new TypeError("Unable to lift unknown Observable type")}}function vt(e,t,n,i,r){return new oi(e,t,n,i,r)}var oi=function(e){rt(t,e);function t(n,i,r,s,o,a){var l=e.call(this,n)||this;return l.onFinalize=o,l.shouldUnsubscribe=a,l._next=i?function(c){try{i(c)}catch(u){n.error(u)}}:e.prototype._next,l._error=s?function(c){try{s(c)}catch(u){n.error(u)}finally{this.unsubscribe()}}:e.prototype._error,l._complete=r?function(){try{r()}catch(c){n.error(c)}finally{this.unsubscribe()}}:e.prototype._complete,l}return t.prototype.unsubscribe=function(){var n;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var i=this.closed;e.prototype.unsubscribe.call(this),!i&&((n=this.onFinalize)===null||n===void 0||n.call(this))}},t}(Xt),ai=Ke(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),en=function(e){rt(t,e);function t(){var n=e.call(this)||this;return n.closed=!1,n.currentObservers=null,n.observers=[],n.isStopped=!1,n.hasError=!1,n.thrownError=null,n}return t.prototype.lift=function(n){var i=new $e(this,this);return i.operator=n,i},t.prototype._throwIfClosed=function(){if(this.closed)throw new ai},t.prototype.next=function(n){var i=this;ft(function(){var r,s;if(i._throwIfClosed(),!i.isStopped){i.currentObservers||(i.currentObservers=Array.from(i.observers));try{for(var o=G(i.currentObservers),a=o.next();!a.done;a=o.next()){var l=a.value;l.next(n)}}catch(c){r={error:c}}finally{try{a&&!a.done&&(s=o.return)&&s.call(o)}finally{if(r)throw r.error}}}})},t.prototype.error=function(n){var i=this;ft(function(){if(i._throwIfClosed(),!i.isStopped){i.hasError=i.isStopped=!0,i.thrownError=n;for(var r=i.observers;r.length;)r.shift().error(n)}})},t.prototype.complete=function(){var n=this;ft(function(){if(n._throwIfClosed(),!n.isStopped){n.isStopped=!0;for(var i=n.observers;i.length;)i.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var n;return((n=this.observers)===null||n===void 0?void 0:n.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(n){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,n)},t.prototype._subscribe=function(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)},t.prototype._innerSubscribe=function(n){var i=this,r=this,s=r.hasError,o=r.isStopped,a=r.observers;return s||o?Qe:(this.currentObservers=null,a.push(n),new Et(function(){i.currentObservers=null,Gt(a,n)}))},t.prototype._checkFinalizedStatuses=function(n){var i=this,r=i.hasError,s=i.thrownError,o=i.isStopped;r?n.error(s):o&&n.complete()},t.prototype.asObservable=function(){var n=new S;return n.source=this,n},t.create=function(n,i){return new $e(n,i)},t}(S),$e=function(e){rt(t,e);function t(n,i){var r=e.call(this)||this;return r.destination=n,r.source=i,r}return t.prototype.next=function(n){var i,r;(r=(i=this.destination)===null||i===void 0?void 0:i.next)===null||r===void 0||r.call(i,n)},t.prototype.error=function(n){var i,r;(r=(i=this.destination)===null||i===void 0?void 0:i.error)===null||r===void 0||r.call(i,n)},t.prototype.complete=function(){var n,i;(i=(n=this.destination)===null||n===void 0?void 0:n.complete)===null||i===void 0||i.call(n)},t.prototype._subscribe=function(n){var i,r;return(r=(i=this.source)===null||i===void 0?void 0:i.subscribe(n))!==null&&r!==void 0?r:Qe},t}(en),li=new S(function(e){return e.complete()});function ci(e){return e&&v(e.schedule)}function nn(e){return e[e.length-1]}function ui(e){return ci(nn(e))?e.pop():void 0}function hi(e,t){return typeof nn(e)=="number"?e.pop():t}var rn=function(e){return e&&typeof e.length=="number"&&typeof e!="function"};function sn(e){return v(e==null?void 0:e.then)}function on(e){return v(e[Jt])}function an(e){return Symbol.asyncIterator&&v(e==null?void 0:e[Symbol.asyncIterator])}function ln(e){return new TypeError("You provided "+(e!==null&&typeof e=="object"?"an invalid object":"'"+e+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}function di(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var cn=di();function un(e){return v(e==null?void 0:e[cn])}function hn(e){return Qn(this,arguments,function(){var n,i,r,s;return Ze(this,function(o){switch(o.label){case 0:n=e.getReader(),o.label=1;case 1:o.trys.push([1,,9,10]),o.label=2;case 2:return[4,z(n.read())];case 3:return i=o.sent(),r=i.value,s=i.done,s?[4,z(void 0)]:[3,5];case 4:return[2,o.sent()];case 5:return[4,z(r)];case 6:return[4,o.sent()];case 7:return o.sent(),[3,2];case 8:return[3,10];case 9:return n.releaseLock(),[7];case 10:return[2]}})})}function dn(e){return v(e==null?void 0:e.getReader)}function Y(e){if(e instanceof S)return e;if(e!=null){if(on(e))return fi(e);if(rn(e))return pi(e);if(sn(e))return gi(e);if(an(e))return fn(e);if(un(e))return $i(e);if(dn(e))return vi(e)}throw ln(e)}function fi(e){return new S(function(t){var n=e[Jt]();if(v(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function pi(e){return new S(function(t){for(var n=0;n<e.length&&!t.closed;n++)t.next(e[n]);t.complete()})}function gi(e){return new S(function(t){e.then(function(n){t.closed||(t.next(n),t.complete())},function(n){return t.error(n)}).then(null,Ve)})}function $i(e){return new S(function(t){var n,i;try{for(var r=G(e),s=r.next();!s.done;s=r.next()){var o=s.value;if(t.next(o),t.closed)return}}catch(a){n={error:a}}finally{try{s&&!s.done&&(i=r.return)&&i.call(r)}finally{if(n)throw n.error}}t.complete()})}function fn(e){return new S(function(t){mi(e,t).catch(function(n){return t.error(n)})})}function vi(e){return fn(hn(e))}function mi(e,t){var n,i,r,s;return Kn(this,void 0,void 0,function(){var o,a;return Ze(this,function(l){switch(l.label){case 0:l.trys.push([0,5,6,11]),n=Xn(e),l.label=1;case 1:return[4,n.next()];case 2:if(i=l.sent(),!!i.done)return[3,4];if(o=i.value,t.next(o),t.closed)return[2];l.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return a=l.sent(),r={error:a},[3,11];case 6:return l.trys.push([6,,9,10]),i&&!i.done&&(s=n.return)?[4,s.call(n)]:[3,8];case 7:l.sent(),l.label=8;case 8:return[3,10];case 9:if(r)throw r.error;return[7];case 10:return[7];case 11:return t.complete(),[2]}})})}function k(e,t,n,i,r){i===void 0&&(i=0),r===void 0&&(r=!1);var s=t.schedule(function(){n(),r?e.add(this.schedule(null,i)):this.unsubscribe()},i);if(e.add(s),!r)return s}function pn(e,t){return t===void 0&&(t=0),kt(function(n,i){n.subscribe(vt(i,function(r){return k(i,e,function(){return i.next(r)},t)},function(){return k(i,e,function(){return i.complete()},t)},function(r){return k(i,e,function(){return i.error(r)},t)}))})}function gn(e,t){return t===void 0&&(t=0),kt(function(n,i){i.add(e.schedule(function(){return n.subscribe(i)},t))})}function yi(e,t){return Y(e).pipe(gn(t),pn(t))}function bi(e,t){return Y(e).pipe(gn(t),pn(t))}function _i(e,t){return new S(function(n){var i=0;return t.schedule(function(){i===e.length?n.complete():(n.next(e[i++]),n.closed||this.schedule())})})}function wi(e,t){return new S(function(n){var i;return k(n,t,function(){i=e[cn](),k(n,t,function(){var r,s,o;try{r=i.next(),s=r.value,o=r.done}catch(a){n.error(a);return}o?n.complete():n.next(s)},0,!0)}),function(){return v(i==null?void 0:i.return)&&i.return()}})}function $n(e,t){if(!e)throw new Error("Iterable cannot be null");return new S(function(n){k(n,t,function(){var i=e[Symbol.asyncIterator]();k(n,t,function(){i.next().then(function(r){r.done?n.complete():n.next(r.value)})},0,!0)})})}function Si(e,t){return $n(hn(e),t)}function xi(e,t){if(e!=null){if(on(e))return yi(e,t);if(rn(e))return _i(e,t);if(sn(e))return bi(e,t);if(an(e))return $n(e,t);if(un(e))return wi(e,t);if(dn(e))return Si(e,t)}throw ln(e)}function Ai(e,t){return t?xi(e,t):Y(e)}function Ci(e,t){return kt(function(n,i){var r=0;n.subscribe(vt(i,function(s){i.next(e.call(t,s,r++))}))})}function Ei(e,t,n,i,r,s,o,a){var l=[],c=0,u=0,h=!1,d=function(){h&&!l.length&&!c&&t.complete()},f=function(g){return c<i?$(g):l.push(g)},$=function(g){s&&t.next(g),c++;var de=!1;Y(n(g,u++)).subscribe(vt(t,function(K){r==null||r(K),s?f(K):t.next(K)},function(){de=!0},void 0,function(){if(de)try{c--;for(var K=function(){var lt=l.shift();o?k(t,o,function(){return $(lt)}):$(lt)};l.length&&c<i;)K();d()}catch(lt){t.error(lt)}}))};return e.subscribe(vt(t,f,function(){h=!0,d()})),function(){a==null||a()}}function vn(e,t,n){return n===void 0&&(n=1/0),v(t)?vn(function(i,r){return Ci(function(s,o){return t(i,s,r,o)})(Y(e(i,r)))},n):(typeof t=="number"&&(n=t),kt(function(i,r){return Ei(i,r,e,n)}))}function ki(e){return e===void 0&&(e=1/0),vn(tn,e)}function Oi(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=ui(e),i=hi(e,1/0),r=e;return r.length?r.length===1?Y(r[0]):ki(i)(Ai(r,n)):li}/**
4
4
  * @license
5
5
  * Copyright 2019 Google LLC
6
6
  * SPDX-License-Identifier: BSD-3-Clause
7
- */const pt=globalThis,Xt=pt.ShadowRoot&&(pt.ShadyCSS===void 0||pt.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Jt=Symbol(),ge=new WeakMap;let $n=class{constructor(t,n,i){if(this._$cssResult$=!0,i!==Jt)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=n}get styleSheet(){let t=this.o;const n=this.t;if(Xt&&t===void 0){const i=n!==void 0&&n.length===1;i&&(t=ge.get(n)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&ge.set(n,t))}return t}toString(){return this.cssText}};const Ti=e=>new $n(typeof e=="string"?e:e+"",void 0,Jt),M=(e,...t)=>{const n=e.length===1?e[0]:t.reduce((i,r,s)=>i+(o=>{if(o._$cssResult$===!0)return o.cssText;if(typeof o=="number")return o;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.")})(r)+e[s+1],e[0]);return new $n(n,e,Jt)},Pi=(e,t)=>{if(Xt)e.adoptedStyleSheets=t.map(n=>n instanceof CSSStyleSheet?n:n.styleSheet);else for(const n of t){const i=document.createElement("style"),r=pt.litNonce;r!==void 0&&i.setAttribute("nonce",r),i.textContent=n.cssText,e.appendChild(i)}},$e=Xt?e=>e:e=>e instanceof CSSStyleSheet?(t=>{let n="";for(const i of t.cssRules)n+=i.cssText;return Ti(n)})(e):e;/**
7
+ */const pt=globalThis,Vt=pt.ShadowRoot&&(pt.ShadyCSS===void 0||pt.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,te=Symbol(),ve=new WeakMap;let mn=class{constructor(t,n,i){if(this._$cssResult$=!0,i!==te)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=n}get styleSheet(){let t=this.o;const n=this.t;if(Vt&&t===void 0){const i=n!==void 0&&n.length===1;i&&(t=ve.get(n)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&ve.set(n,t))}return t}toString(){return this.cssText}};const Ti=e=>new mn(typeof e=="string"?e:e+"",void 0,te),M=(e,...t)=>{const n=e.length===1?e[0]:t.reduce((i,r,s)=>i+(o=>{if(o._$cssResult$===!0)return o.cssText;if(typeof o=="number")return o;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.")})(r)+e[s+1],e[0]);return new mn(n,e,te)},Pi=(e,t)=>{if(Vt)e.adoptedStyleSheets=t.map(n=>n instanceof CSSStyleSheet?n:n.styleSheet);else for(const n of t){const i=document.createElement("style"),r=pt.litNonce;r!==void 0&&i.setAttribute("nonce",r),i.textContent=n.cssText,e.appendChild(i)}},me=Vt?e=>e:e=>e instanceof CSSStyleSheet?(t=>{let n="";for(const i of t.cssRules)n+=i.cssText;return Ti(n)})(e):e;/**
8
8
  * @license
9
9
  * Copyright 2017 Google LLC
10
10
  * SPDX-License-Identifier: BSD-3-Clause
11
- */const{is:Ii,defineProperty:Li,getOwnPropertyDescriptor:Ui,getOwnPropertyNames:Ri,getOwnPropertySymbols:Mi,getPrototypeOf:ji}=Object,O=globalThis,ve=O.trustedTypes,Hi=ve?ve.emptyScript:"",Rt=O.reactiveElementPolyfillSupport,X=(e,t)=>e,mt={toAttribute(e,t){switch(t){case Boolean:e=e?Hi:null;break;case Object:case Array:e=e==null?e:JSON.stringify(e)}return e},fromAttribute(e,t){let n=e;switch(t){case Boolean:n=e!==null;break;case Number:n=e===null?null:Number(e);break;case Object:case Array:try{n=JSON.parse(e)}catch{n=null}}return n}},Vt=(e,t)=>!Ii(e,t),me={attribute:!0,type:String,converter:mt,reflect:!1,hasChanged:Vt};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),O.litPropertyMetadata??(O.litPropertyMetadata=new WeakMap);let H=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??(this.l=[])).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,n=me){if(n.state&&(n.attribute=!1),this._$Ei(),this.elementProperties.set(t,n),!n.noAccessor){const i=Symbol(),r=this.getPropertyDescriptor(t,i,n);r!==void 0&&Li(this.prototype,t,r)}}static getPropertyDescriptor(t,n,i){const{get:r,set:s}=Ui(this.prototype,t)??{get(){return this[n]},set(o){this[n]=o}};return{get(){return r==null?void 0:r.call(this)},set(o){const a=r==null?void 0:r.call(this);s.call(this,o),this.requestUpdate(t,a,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??me}static _$Ei(){if(this.hasOwnProperty(X("elementProperties")))return;const t=ji(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(X("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(X("properties"))){const n=this.properties,i=[...Ri(n),...Mi(n)];for(const r of i)this.createProperty(r,n[r])}const t=this[Symbol.metadata];if(t!==null){const n=litPropertyMetadata.get(t);if(n!==void 0)for(const[i,r]of n)this.elementProperties.set(i,r)}this._$Eh=new Map;for(const[n,i]of this.elementProperties){const r=this._$Eu(n,i);r!==void 0&&this._$Eh.set(r,n)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const n=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const r of i)n.unshift($e(r))}else t!==void 0&&n.push($e(t));return n}static _$Eu(t,n){const i=n.attribute;return i===!1?void 0:typeof i=="string"?i:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var t;this._$Eg=new Promise(n=>this.enableUpdating=n),this._$AL=new Map,this._$E_(),this.requestUpdate(),(t=this.constructor.l)==null||t.forEach(n=>n(this))}addController(t){var n;(this._$ES??(this._$ES=[])).push(t),this.renderRoot!==void 0&&this.isConnected&&((n=t.hostConnected)==null||n.call(t))}removeController(t){var n;(n=this._$ES)==null||n.splice(this._$ES.indexOf(t)>>>0,1)}_$E_(){const t=new Map,n=this.constructor.elementProperties;for(const i of n.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return Pi(t,this.constructor.elementStyles),t}connectedCallback(){var t;this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$ES)==null||t.forEach(n=>{var i;return(i=n.hostConnected)==null?void 0:i.call(n)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$ES)==null||t.forEach(n=>{var i;return(i=n.hostDisconnected)==null?void 0:i.call(n)})}attributeChangedCallback(t,n,i){this._$AK(t,i)}_$EO(t,n){var s;const i=this.constructor.elementProperties.get(t),r=this.constructor._$Eu(t,i);if(r!==void 0&&i.reflect===!0){const o=(((s=i.converter)==null?void 0:s.toAttribute)!==void 0?i.converter:mt).toAttribute(n,i.type);this._$Em=t,o==null?this.removeAttribute(r):this.setAttribute(r,o),this._$Em=null}}_$AK(t,n){var s;const i=this.constructor,r=i._$Eh.get(t);if(r!==void 0&&this._$Em!==r){const o=i.getPropertyOptions(r),a=typeof o.converter=="function"?{fromAttribute:o.converter}:((s=o.converter)==null?void 0:s.fromAttribute)!==void 0?o.converter:mt;this._$Em=r,this[r]=a.fromAttribute(n,o.type),this._$Em=null}}requestUpdate(t,n,i,r=!1,s){if(t!==void 0){if(i??(i=this.constructor.getPropertyOptions(t)),!(i.hasChanged??Vt)(r?s:this[t],n))return;this.C(t,n,i)}this.isUpdatePending===!1&&(this._$Eg=this._$EP())}C(t,n,i){this._$AL.has(t)||this._$AL.set(t,n),i.reflect===!0&&this._$Em!==t&&(this._$Ej??(this._$Ej=new Set)).add(t)}async _$EP(){this.isUpdatePending=!0;try{await this._$Eg}catch(n){Promise.reject(n)}const t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var i;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this._$Ep){for(const[s,o]of this._$Ep)this[s]=o;this._$Ep=void 0}const r=this.constructor.elementProperties;if(r.size>0)for(const[s,o]of r)o.wrapped!==!0||this._$AL.has(s)||this[s]===void 0||this.C(s,this[s],o)}let t=!1;const n=this._$AL;try{t=this.shouldUpdate(n),t?(this.willUpdate(n),(i=this._$ES)==null||i.forEach(r=>{var s;return(s=r.hostUpdate)==null?void 0:s.call(r)}),this.update(n)):this._$ET()}catch(r){throw t=!1,this._$ET(),r}t&&this._$AE(n)}willUpdate(t){}_$AE(t){var n;(n=this._$ES)==null||n.forEach(i=>{var r;return(r=i.hostUpdated)==null?void 0:r.call(i)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$ET(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Eg}shouldUpdate(t){return!0}update(t){this._$Ej&&(this._$Ej=this._$Ej.forEach(n=>this._$EO(n,this[n]))),this._$ET()}updated(t){}firstUpdated(t){}};H.elementStyles=[],H.shadowRootOptions={mode:"open"},H[X("elementProperties")]=new Map,H[X("finalized")]=new Map,Rt==null||Rt({ReactiveElement:H}),(O.reactiveElementVersions??(O.reactiveElementVersions=[])).push("2.0.1");/**
11
+ */const{is:Li,defineProperty:Ii,getOwnPropertyDescriptor:Ui,getOwnPropertyNames:Ri,getOwnPropertySymbols:Mi,getPrototypeOf:ji}=Object,O=globalThis,ye=O.trustedTypes,Hi=ye?ye.emptyScript:"",jt=O.reactiveElementPolyfillSupport,X=(e,t)=>e,mt={toAttribute(e,t){switch(t){case Boolean:e=e?Hi:null;break;case Object:case Array:e=e==null?e:JSON.stringify(e)}return e},fromAttribute(e,t){let n=e;switch(t){case Boolean:n=e!==null;break;case Number:n=e===null?null:Number(e);break;case Object:case Array:try{n=JSON.parse(e)}catch{n=null}}return n}},ee=(e,t)=>!Li(e,t),be={attribute:!0,type:String,converter:mt,reflect:!1,hasChanged:ee};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),O.litPropertyMetadata??(O.litPropertyMetadata=new WeakMap);let H=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??(this.l=[])).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,n=be){if(n.state&&(n.attribute=!1),this._$Ei(),this.elementProperties.set(t,n),!n.noAccessor){const i=Symbol(),r=this.getPropertyDescriptor(t,i,n);r!==void 0&&Ii(this.prototype,t,r)}}static getPropertyDescriptor(t,n,i){const{get:r,set:s}=Ui(this.prototype,t)??{get(){return this[n]},set(o){this[n]=o}};return{get(){return r==null?void 0:r.call(this)},set(o){const a=r==null?void 0:r.call(this);s.call(this,o),this.requestUpdate(t,a,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??be}static _$Ei(){if(this.hasOwnProperty(X("elementProperties")))return;const t=ji(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(X("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(X("properties"))){const n=this.properties,i=[...Ri(n),...Mi(n)];for(const r of i)this.createProperty(r,n[r])}const t=this[Symbol.metadata];if(t!==null){const n=litPropertyMetadata.get(t);if(n!==void 0)for(const[i,r]of n)this.elementProperties.set(i,r)}this._$Eh=new Map;for(const[n,i]of this.elementProperties){const r=this._$Eu(n,i);r!==void 0&&this._$Eh.set(r,n)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const n=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const r of i)n.unshift(me(r))}else t!==void 0&&n.push(me(t));return n}static _$Eu(t,n){const i=n.attribute;return i===!1?void 0:typeof i=="string"?i:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var t;this._$Eg=new Promise(n=>this.enableUpdating=n),this._$AL=new Map,this._$E_(),this.requestUpdate(),(t=this.constructor.l)==null||t.forEach(n=>n(this))}addController(t){var n;(this._$ES??(this._$ES=[])).push(t),this.renderRoot!==void 0&&this.isConnected&&((n=t.hostConnected)==null||n.call(t))}removeController(t){var n;(n=this._$ES)==null||n.splice(this._$ES.indexOf(t)>>>0,1)}_$E_(){const t=new Map,n=this.constructor.elementProperties;for(const i of n.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return Pi(t,this.constructor.elementStyles),t}connectedCallback(){var t;this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$ES)==null||t.forEach(n=>{var i;return(i=n.hostConnected)==null?void 0:i.call(n)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$ES)==null||t.forEach(n=>{var i;return(i=n.hostDisconnected)==null?void 0:i.call(n)})}attributeChangedCallback(t,n,i){this._$AK(t,i)}_$EO(t,n){var s;const i=this.constructor.elementProperties.get(t),r=this.constructor._$Eu(t,i);if(r!==void 0&&i.reflect===!0){const o=(((s=i.converter)==null?void 0:s.toAttribute)!==void 0?i.converter:mt).toAttribute(n,i.type);this._$Em=t,o==null?this.removeAttribute(r):this.setAttribute(r,o),this._$Em=null}}_$AK(t,n){var s;const i=this.constructor,r=i._$Eh.get(t);if(r!==void 0&&this._$Em!==r){const o=i.getPropertyOptions(r),a=typeof o.converter=="function"?{fromAttribute:o.converter}:((s=o.converter)==null?void 0:s.fromAttribute)!==void 0?o.converter:mt;this._$Em=r,this[r]=a.fromAttribute(n,o.type),this._$Em=null}}requestUpdate(t,n,i,r=!1,s){if(t!==void 0){if(i??(i=this.constructor.getPropertyOptions(t)),!(i.hasChanged??ee)(r?s:this[t],n))return;this.C(t,n,i)}this.isUpdatePending===!1&&(this._$Eg=this._$EP())}C(t,n,i){this._$AL.has(t)||this._$AL.set(t,n),i.reflect===!0&&this._$Em!==t&&(this._$Ej??(this._$Ej=new Set)).add(t)}async _$EP(){this.isUpdatePending=!0;try{await this._$Eg}catch(n){Promise.reject(n)}const t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var i;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this._$Ep){for(const[s,o]of this._$Ep)this[s]=o;this._$Ep=void 0}const r=this.constructor.elementProperties;if(r.size>0)for(const[s,o]of r)o.wrapped!==!0||this._$AL.has(s)||this[s]===void 0||this.C(s,this[s],o)}let t=!1;const n=this._$AL;try{t=this.shouldUpdate(n),t?(this.willUpdate(n),(i=this._$ES)==null||i.forEach(r=>{var s;return(s=r.hostUpdate)==null?void 0:s.call(r)}),this.update(n)):this._$ET()}catch(r){throw t=!1,this._$ET(),r}t&&this._$AE(n)}willUpdate(t){}_$AE(t){var n;(n=this._$ES)==null||n.forEach(i=>{var r;return(r=i.hostUpdated)==null?void 0:r.call(i)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$ET(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Eg}shouldUpdate(t){return!0}update(t){this._$Ej&&(this._$Ej=this._$Ej.forEach(n=>this._$EO(n,this[n]))),this._$ET()}updated(t){}firstUpdated(t){}};H.elementStyles=[],H.shadowRootOptions={mode:"open"},H[X("elementProperties")]=new Map,H[X("finalized")]=new Map,jt==null||jt({ReactiveElement:H}),(O.reactiveElementVersions??(O.reactiveElementVersions=[])).push("2.0.1");/**
12
12
  * @license
13
13
  * Copyright 2017 Google LLC
14
14
  * SPDX-License-Identifier: BSD-3-Clause
15
- */const J=globalThis,yt=J.trustedTypes,ye=yt?yt.createPolicy("lit-html",{createHTML:e=>e}):void 0,vn="$lit$",E=`lit$${(Math.random()+"").slice(9)}$`,mn="?"+E,Ni=`<${mn}>`,L=document,tt=()=>L.createComment(""),et=e=>e===null||typeof e!="object"&&typeof e!="function",yn=Array.isArray,Di=e=>yn(e)||typeof(e==null?void 0:e[Symbol.iterator])=="function",Mt=`[
16
- \f\r]`,Q=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,be=/-->/g,_e=/>/g,T=RegExp(`>|${Mt}(?:([^\\s"'>=/]+)(${Mt}*=${Mt}*(?:[^
17
- \f\r"'\`<>=]|("|')|))|$)`,"g"),we=/'/g,Se=/"/g,bn=/^(?:script|style|textarea|title)$/i,Bi=e=>(t,...n)=>({_$litType$:e,strings:t,values:n}),w=Bi(1),U=Symbol.for("lit-noChange"),p=Symbol.for("lit-nothing"),xe=new WeakMap,I=L.createTreeWalker(L,129);function _n(e,t){if(!Array.isArray(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return ye!==void 0?ye.createHTML(t):t}const zi=(e,t)=>{const n=e.length-1,i=[];let r,s=t===2?"<svg>":"",o=Q;for(let a=0;a<n;a++){const l=e[a];let c,u,h=-1,d=0;for(;d<l.length&&(o.lastIndex=d,u=o.exec(l),u!==null);)d=o.lastIndex,o===Q?u[1]==="!--"?o=be:u[1]!==void 0?o=_e:u[2]!==void 0?(bn.test(u[2])&&(r=RegExp("</"+u[2],"g")),o=T):u[3]!==void 0&&(o=T):o===T?u[0]===">"?(o=r??Q,h=-1):u[1]===void 0?h=-2:(h=o.lastIndex-u[2].length,c=u[1],o=u[3]===void 0?T:u[3]==='"'?Se:we):o===Se||o===we?o=T:o===be||o===_e?o=Q:(o=T,r=void 0);const f=o===T&&e[a+1].startsWith("/>")?" ":"";s+=o===Q?l+Ni:h>=0?(i.push(c),l.slice(0,h)+vn+l.slice(h)+E+f):l+E+(h===-2?a:f)}return[_n(e,s+(e[n]||"<?>")+(t===2?"</svg>":"")),i]};class nt{constructor({strings:t,_$litType$:n},i){let r;this.parts=[];let s=0,o=0;const a=t.length-1,l=this.parts,[c,u]=zi(t,n);if(this.el=nt.createElement(c,i),I.currentNode=this.el.content,n===2){const h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(r=I.nextNode())!==null&&l.length<a;){if(r.nodeType===1){if(r.hasAttributes())for(const h of r.getAttributeNames())if(h.endsWith(vn)){const d=u[o++],f=r.getAttribute(h).split(E),$=/([.?@])?(.*)/.exec(d);l.push({type:1,index:s,name:$[2],strings:f,ctor:$[1]==="."?Wi:$[1]==="?"?Gi:$[1]==="@"?qi:Et}),r.removeAttribute(h)}else h.startsWith(E)&&(l.push({type:6,index:s}),r.removeAttribute(h));if(bn.test(r.tagName)){const h=r.textContent.split(E),d=h.length-1;if(d>0){r.textContent=yt?yt.emptyScript:"";for(let f=0;f<d;f++)r.append(h[f],tt()),I.nextNode(),l.push({type:2,index:++s});r.append(h[d],tt())}}}else if(r.nodeType===8)if(r.data===mn)l.push({type:2,index:s});else{let h=-1;for(;(h=r.data.indexOf(E,h+1))!==-1;)l.push({type:7,index:s}),h+=E.length-1}s++}}static createElement(t,n){const i=L.createElement("template");return i.innerHTML=t,i}}function q(e,t,n=e,i){var o,a;if(t===U)return t;let r=i!==void 0?(o=n._$Co)==null?void 0:o[i]:n._$Cl;const s=et(t)?void 0:t._$litDirective$;return(r==null?void 0:r.constructor)!==s&&((a=r==null?void 0:r._$AO)==null||a.call(r,!1),s===void 0?r=void 0:(r=new s(e),r._$AT(e,n,i)),i!==void 0?(n._$Co??(n._$Co=[]))[i]=r:n._$Cl=r),r!==void 0&&(t=q(e,r._$AS(e,t.values),r,i)),t}class Fi{constructor(t,n){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=n}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:n},parts:i}=this._$AD,r=((t==null?void 0:t.creationScope)??L).importNode(n,!0);I.currentNode=r;let s=I.nextNode(),o=0,a=0,l=i[0];for(;l!==void 0;){if(o===l.index){let c;l.type===2?c=new st(s,s.nextSibling,this,t):l.type===1?c=new l.ctor(s,l.name,l.strings,this,t):l.type===6&&(c=new Yi(s,this,t)),this._$AV.push(c),l=i[++a]}o!==(l==null?void 0:l.index)&&(s=I.nextNode(),o++)}return I.currentNode=L,r}p(t){let n=0;for(const i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(t,i,n),n+=i.strings.length-2):i._$AI(t[n])),n++}}class st{get _$AU(){var t;return((t=this._$AM)==null?void 0:t._$AU)??this._$Cv}constructor(t,n,i,r){this.type=2,this._$AH=p,this._$AN=void 0,this._$AA=t,this._$AB=n,this._$AM=i,this.options=r,this._$Cv=(r==null?void 0:r.isConnected)??!0}get parentNode(){let t=this._$AA.parentNode;const n=this._$AM;return n!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=n.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,n=this){t=q(this,t,n),et(t)?t===p||t==null||t===""?(this._$AH!==p&&this._$AR(),this._$AH=p):t!==this._$AH&&t!==U&&this._(t):t._$litType$!==void 0?this.g(t):t.nodeType!==void 0?this.$(t):Di(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==p&&et(this._$AH)?this._$AA.nextSibling.data=t:this.$(L.createTextNode(t)),this._$AH=t}g(t){var s;const{values:n,_$litType$:i}=t,r=typeof i=="number"?this._$AC(t):(i.el===void 0&&(i.el=nt.createElement(_n(i.h,i.h[0]),this.options)),i);if(((s=this._$AH)==null?void 0:s._$AD)===r)this._$AH.p(n);else{const o=new Fi(r,this),a=o.u(this.options);o.p(n),this.$(a),this._$AH=o}}_$AC(t){let n=xe.get(t.strings);return n===void 0&&xe.set(t.strings,n=new nt(t)),n}T(t){yn(this._$AH)||(this._$AH=[],this._$AR());const n=this._$AH;let i,r=0;for(const s of t)r===n.length?n.push(i=new st(this.k(tt()),this.k(tt()),this,this.options)):i=n[r],i._$AI(s),r++;r<n.length&&(this._$AR(i&&i._$AB.nextSibling,r),n.length=r)}_$AR(t=this._$AA.nextSibling,n){var i;for((i=this._$AP)==null?void 0:i.call(this,!1,!0,n);t&&t!==this._$AB;){const r=t.nextSibling;t.remove(),t=r}}setConnected(t){var n;this._$AM===void 0&&(this._$Cv=t,(n=this._$AP)==null||n.call(this,t))}}class Et{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,n,i,r,s){this.type=1,this._$AH=p,this._$AN=void 0,this.element=t,this.name=n,this._$AM=r,this.options=s,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=p}_$AI(t,n=this,i,r){const s=this.strings;let o=!1;if(s===void 0)t=q(this,t,n,0),o=!et(t)||t!==this._$AH&&t!==U,o&&(this._$AH=t);else{const a=t;let l,c;for(t=s[0],l=0;l<s.length-1;l++)c=q(this,a[i+l],n,l),c===U&&(c=this._$AH[l]),o||(o=!et(c)||c!==this._$AH[l]),c===p?t=p:t!==p&&(t+=(c??"")+s[l+1]),this._$AH[l]=c}o&&!r&&this.O(t)}O(t){t===p?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class Wi extends Et{constructor(){super(...arguments),this.type=3}O(t){this.element[this.name]=t===p?void 0:t}}let Gi=class extends Et{constructor(){super(...arguments),this.type=4}O(t){this.element.toggleAttribute(this.name,!!t&&t!==p)}};class qi extends Et{constructor(t,n,i,r,s){super(t,n,i,r,s),this.type=5}_$AI(t,n=this){if((t=q(this,t,n,0)??p)===U)return;const i=this._$AH,r=t===p&&i!==p||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,s=t!==p&&(i===p||r);r&&this.element.removeEventListener(this.name,this,i),s&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var n;typeof this._$AH=="function"?this._$AH.call(((n=this.options)==null?void 0:n.host)??this.element,t):this._$AH.handleEvent(t)}}class Yi{constructor(t,n,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=n,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){q(this,t)}}const jt=J.litHtmlPolyfillSupport;jt==null||jt(nt,st),(J.litHtmlVersions??(J.litHtmlVersions=[])).push("3.0.2");const Zi=(e,t,n)=>{const i=(n==null?void 0:n.renderBefore)??t;let r=i._$litPart$;if(r===void 0){const s=(n==null?void 0:n.renderBefore)??null;i._$litPart$=r=new st(t.insertBefore(tt(),s),s,void 0,n??{})}return r._$AI(e),r};/**
15
+ */const J=globalThis,yt=J.trustedTypes,_e=yt?yt.createPolicy("lit-html",{createHTML:e=>e}):void 0,yn="$lit$",E=`lit$${(Math.random()+"").slice(9)}$`,bn="?"+E,Ni=`<${bn}>`,I=document,tt=()=>I.createComment(""),et=e=>e===null||typeof e!="object"&&typeof e!="function",_n=Array.isArray,Di=e=>_n(e)||typeof(e==null?void 0:e[Symbol.iterator])=="function",Ht=`[
16
+ \f\r]`,Q=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,we=/-->/g,Se=/>/g,T=RegExp(`>|${Ht}(?:([^\\s"'>=/]+)(${Ht}*=${Ht}*(?:[^
17
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),xe=/'/g,Ae=/"/g,wn=/^(?:script|style|textarea|title)$/i,Bi=e=>(t,...n)=>({_$litType$:e,strings:t,values:n}),w=Bi(1),U=Symbol.for("lit-noChange"),p=Symbol.for("lit-nothing"),Ce=new WeakMap,L=I.createTreeWalker(I,129);function Sn(e,t){if(!Array.isArray(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return _e!==void 0?_e.createHTML(t):t}const zi=(e,t)=>{const n=e.length-1,i=[];let r,s=t===2?"<svg>":"",o=Q;for(let a=0;a<n;a++){const l=e[a];let c,u,h=-1,d=0;for(;d<l.length&&(o.lastIndex=d,u=o.exec(l),u!==null);)d=o.lastIndex,o===Q?u[1]==="!--"?o=we:u[1]!==void 0?o=Se:u[2]!==void 0?(wn.test(u[2])&&(r=RegExp("</"+u[2],"g")),o=T):u[3]!==void 0&&(o=T):o===T?u[0]===">"?(o=r??Q,h=-1):u[1]===void 0?h=-2:(h=o.lastIndex-u[2].length,c=u[1],o=u[3]===void 0?T:u[3]==='"'?Ae:xe):o===Ae||o===xe?o=T:o===we||o===Se?o=Q:(o=T,r=void 0);const f=o===T&&e[a+1].startsWith("/>")?" ":"";s+=o===Q?l+Ni:h>=0?(i.push(c),l.slice(0,h)+yn+l.slice(h)+E+f):l+E+(h===-2?a:f)}return[Sn(e,s+(e[n]||"<?>")+(t===2?"</svg>":"")),i]};class nt{constructor({strings:t,_$litType$:n},i){let r;this.parts=[];let s=0,o=0;const a=t.length-1,l=this.parts,[c,u]=zi(t,n);if(this.el=nt.createElement(c,i),L.currentNode=this.el.content,n===2){const h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(r=L.nextNode())!==null&&l.length<a;){if(r.nodeType===1){if(r.hasAttributes())for(const h of r.getAttributeNames())if(h.endsWith(yn)){const d=u[o++],f=r.getAttribute(h).split(E),$=/([.?@])?(.*)/.exec(d);l.push({type:1,index:s,name:$[2],strings:f,ctor:$[1]==="."?Wi:$[1]==="?"?Gi:$[1]==="@"?qi:Ot}),r.removeAttribute(h)}else h.startsWith(E)&&(l.push({type:6,index:s}),r.removeAttribute(h));if(wn.test(r.tagName)){const h=r.textContent.split(E),d=h.length-1;if(d>0){r.textContent=yt?yt.emptyScript:"";for(let f=0;f<d;f++)r.append(h[f],tt()),L.nextNode(),l.push({type:2,index:++s});r.append(h[d],tt())}}}else if(r.nodeType===8)if(r.data===bn)l.push({type:2,index:s});else{let h=-1;for(;(h=r.data.indexOf(E,h+1))!==-1;)l.push({type:7,index:s}),h+=E.length-1}s++}}static createElement(t,n){const i=I.createElement("template");return i.innerHTML=t,i}}function q(e,t,n=e,i){var o,a;if(t===U)return t;let r=i!==void 0?(o=n._$Co)==null?void 0:o[i]:n._$Cl;const s=et(t)?void 0:t._$litDirective$;return(r==null?void 0:r.constructor)!==s&&((a=r==null?void 0:r._$AO)==null||a.call(r,!1),s===void 0?r=void 0:(r=new s(e),r._$AT(e,n,i)),i!==void 0?(n._$Co??(n._$Co=[]))[i]=r:n._$Cl=r),r!==void 0&&(t=q(e,r._$AS(e,t.values),r,i)),t}class Fi{constructor(t,n){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=n}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:n},parts:i}=this._$AD,r=((t==null?void 0:t.creationScope)??I).importNode(n,!0);L.currentNode=r;let s=L.nextNode(),o=0,a=0,l=i[0];for(;l!==void 0;){if(o===l.index){let c;l.type===2?c=new st(s,s.nextSibling,this,t):l.type===1?c=new l.ctor(s,l.name,l.strings,this,t):l.type===6&&(c=new Yi(s,this,t)),this._$AV.push(c),l=i[++a]}o!==(l==null?void 0:l.index)&&(s=L.nextNode(),o++)}return L.currentNode=I,r}p(t){let n=0;for(const i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(t,i,n),n+=i.strings.length-2):i._$AI(t[n])),n++}}class st{get _$AU(){var t;return((t=this._$AM)==null?void 0:t._$AU)??this._$Cv}constructor(t,n,i,r){this.type=2,this._$AH=p,this._$AN=void 0,this._$AA=t,this._$AB=n,this._$AM=i,this.options=r,this._$Cv=(r==null?void 0:r.isConnected)??!0}get parentNode(){let t=this._$AA.parentNode;const n=this._$AM;return n!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=n.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,n=this){t=q(this,t,n),et(t)?t===p||t==null||t===""?(this._$AH!==p&&this._$AR(),this._$AH=p):t!==this._$AH&&t!==U&&this._(t):t._$litType$!==void 0?this.g(t):t.nodeType!==void 0?this.$(t):Di(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==p&&et(this._$AH)?this._$AA.nextSibling.data=t:this.$(I.createTextNode(t)),this._$AH=t}g(t){var s;const{values:n,_$litType$:i}=t,r=typeof i=="number"?this._$AC(t):(i.el===void 0&&(i.el=nt.createElement(Sn(i.h,i.h[0]),this.options)),i);if(((s=this._$AH)==null?void 0:s._$AD)===r)this._$AH.p(n);else{const o=new Fi(r,this),a=o.u(this.options);o.p(n),this.$(a),this._$AH=o}}_$AC(t){let n=Ce.get(t.strings);return n===void 0&&Ce.set(t.strings,n=new nt(t)),n}T(t){_n(this._$AH)||(this._$AH=[],this._$AR());const n=this._$AH;let i,r=0;for(const s of t)r===n.length?n.push(i=new st(this.k(tt()),this.k(tt()),this,this.options)):i=n[r],i._$AI(s),r++;r<n.length&&(this._$AR(i&&i._$AB.nextSibling,r),n.length=r)}_$AR(t=this._$AA.nextSibling,n){var i;for((i=this._$AP)==null?void 0:i.call(this,!1,!0,n);t&&t!==this._$AB;){const r=t.nextSibling;t.remove(),t=r}}setConnected(t){var n;this._$AM===void 0&&(this._$Cv=t,(n=this._$AP)==null||n.call(this,t))}}class Ot{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,n,i,r,s){this.type=1,this._$AH=p,this._$AN=void 0,this.element=t,this.name=n,this._$AM=r,this.options=s,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=p}_$AI(t,n=this,i,r){const s=this.strings;let o=!1;if(s===void 0)t=q(this,t,n,0),o=!et(t)||t!==this._$AH&&t!==U,o&&(this._$AH=t);else{const a=t;let l,c;for(t=s[0],l=0;l<s.length-1;l++)c=q(this,a[i+l],n,l),c===U&&(c=this._$AH[l]),o||(o=!et(c)||c!==this._$AH[l]),c===p?t=p:t!==p&&(t+=(c??"")+s[l+1]),this._$AH[l]=c}o&&!r&&this.O(t)}O(t){t===p?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class Wi extends Ot{constructor(){super(...arguments),this.type=3}O(t){this.element[this.name]=t===p?void 0:t}}let Gi=class extends Ot{constructor(){super(...arguments),this.type=4}O(t){this.element.toggleAttribute(this.name,!!t&&t!==p)}};class qi extends Ot{constructor(t,n,i,r,s){super(t,n,i,r,s),this.type=5}_$AI(t,n=this){if((t=q(this,t,n,0)??p)===U)return;const i=this._$AH,r=t===p&&i!==p||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,s=t!==p&&(i===p||r);r&&this.element.removeEventListener(this.name,this,i),s&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var n;typeof this._$AH=="function"?this._$AH.call(((n=this.options)==null?void 0:n.host)??this.element,t):this._$AH.handleEvent(t)}}class Yi{constructor(t,n,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=n,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){q(this,t)}}const Nt=J.litHtmlPolyfillSupport;Nt==null||Nt(nt,st),(J.litHtmlVersions??(J.litHtmlVersions=[])).push("3.0.2");const Zi=(e,t,n)=>{const i=(n==null?void 0:n.renderBefore)??t;let r=i._$litPart$;if(r===void 0){const s=(n==null?void 0:n.renderBefore)??null;i._$litPart$=r=new st(t.insertBefore(tt(),s),s,void 0,n??{})}return r._$AI(e),r};/**
18
18
  * @license
19
19
  * Copyright 2017 Google LLC
20
20
  * SPDX-License-Identifier: BSD-3-Clause
21
- */let A=class extends H{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var n;const t=super.createRenderRoot();return(n=this.renderOptions).renderBefore??(n.renderBefore=t.firstChild),t}update(t){const n=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=Zi(n,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),(t=this._$Do)==null||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this._$Do)==null||t.setConnected(!1)}render(){return U}};var Ge;A._$litElement$=!0,A.finalized=!0,(Ge=globalThis.litElementHydrateSupport)==null||Ge.call(globalThis,{LitElement:A});const Ht=globalThis.litElementPolyfillSupport;Ht==null||Ht({LitElement:A});(globalThis.litElementVersions??(globalThis.litElementVersions=[])).push("4.0.1");/**
21
+ */let A=class extends H{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var n;const t=super.createRenderRoot();return(n=this.renderOptions).renderBefore??(n.renderBefore=t.firstChild),t}update(t){const n=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=Zi(n,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),(t=this._$Do)==null||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this._$Do)==null||t.setConnected(!1)}render(){return U}};var Ye;A._$litElement$=!0,A.finalized=!0,(Ye=globalThis.litElementHydrateSupport)==null||Ye.call(globalThis,{LitElement:A});const Dt=globalThis.litElementPolyfillSupport;Dt==null||Dt({LitElement:A});(globalThis.litElementVersions??(globalThis.litElementVersions=[])).push("4.0.1");/**
22
22
  * @license
23
23
  * Copyright 2017 Google LLC
24
24
  * SPDX-License-Identifier: BSD-3-Clause
25
- */const Ki={attribute:!0,type:String,converter:mt,reflect:!1,hasChanged:Vt},Qi=(e=Ki,t,n)=>{const{kind:i,metadata:r}=n;let s=globalThis.litPropertyMetadata.get(r);if(s===void 0&&globalThis.litPropertyMetadata.set(r,s=new Map),s.set(n.name,e),i==="accessor"){const{name:o}=n;return{set(a){const l=t.get.call(this);t.set.call(this,a),this.requestUpdate(o,l,e)},init(a){return a!==void 0&&this.C(o,void 0,e),a}}}if(i==="setter"){const{name:o}=n;return function(a){const l=this[o];t.call(this,a),this.requestUpdate(o,l,e)}}throw Error("Unsupported decorator location: "+i)};function _(e){return(t,n)=>typeof n=="object"?Qi(e,t,n):((i,r,s)=>{const o=r.hasOwnProperty(s);return r.constructor.createProperty(s,o?{...i,wrapped:!0}:i),o?Object.getOwnPropertyDescriptor(r,s):void 0})(e,t,n)}/**
25
+ */const Ki={attribute:!0,type:String,converter:mt,reflect:!1,hasChanged:ee},Qi=(e=Ki,t,n)=>{const{kind:i,metadata:r}=n;let s=globalThis.litPropertyMetadata.get(r);if(s===void 0&&globalThis.litPropertyMetadata.set(r,s=new Map),s.set(n.name,e),i==="accessor"){const{name:o}=n;return{set(a){const l=t.get.call(this);t.set.call(this,a),this.requestUpdate(o,l,e)},init(a){return a!==void 0&&this.C(o,void 0,e),a}}}if(i==="setter"){const{name:o}=n;return function(a){const l=this[o];t.call(this,a),this.requestUpdate(o,l,e)}}throw Error("Unsupported decorator location: "+i)};function _(e){return(t,n)=>typeof n=="object"?Qi(e,t,n):((i,r,s)=>{const o=r.hasOwnProperty(s);return r.constructor.createProperty(s,o?{...i,wrapped:!0}:i),o?Object.getOwnPropertyDescriptor(r,s):void 0})(e,t,n)}/**
26
26
  * @license
27
27
  * Copyright 2017 Google LLC
28
28
  * SPDX-License-Identifier: BSD-3-Clause
29
- */function Z(e){return _({...e,state:!0,attribute:!1})}var Xi=Object.defineProperty,Ji=Object.getOwnPropertyDescriptor,Vi=(e,t,n,i)=>{for(var r=i>1?void 0:i?Ji(t,n):t,s=e.length-1,o;s>=0;s--)(o=e[s])&&(r=(i?o(t,n,r):o(r))||r);return i&&r&&Xi(t,n,r),r};class te extends A{constructor(){super(...arguments),this.anchor="BottomRight"}appendChild(t){var n;return(n=this.shadowRoot)==null||n.appendChild(t),t}render(){return this.anchor==="BottomLeft"?this.renderRoot.host.classList.add("bottom-left"):this.anchor==="BottomRight"&&this.renderRoot.host.classList.add("bottom-right"),p}}te.styles=[M`
29
+ */function Z(e){return _({...e,state:!0,attribute:!1})}var Xi=Object.defineProperty,Ji=Object.getOwnPropertyDescriptor,Vi=(e,t,n,i)=>{for(var r=i>1?void 0:i?Ji(t,n):t,s=e.length-1,o;s>=0;s--)(o=e[s])&&(r=(i?o(t,n,r):o(r))||r);return i&&r&&Xi(t,n,r),r};class ne extends A{constructor(){super(...arguments),this.anchor="BottomRight"}appendChild(t){var n;return(n=this.shadowRoot)==null||n.appendChild(t),t}render(){return this.anchor==="BottomLeft"?this.renderRoot.host.classList.add("bottom-left"):this.anchor==="BottomRight"&&this.renderRoot.host.classList.add("bottom-right"),p}}ne.styles=[M`
30
30
  :host {
31
31
  position: fixed;
32
32
  display: flex;
@@ -42,11 +42,11 @@
42
42
  bottom: 20px;
43
43
  left: 20px;
44
44
  }
45
- `];Vi([_({attribute:!0})],te.prototype,"anchor",2);/**
45
+ `];Vi([_({attribute:!0})],ne.prototype,"anchor",2);/**
46
46
  * @license
47
47
  * Copyright 2017 Google LLC
48
48
  * SPDX-License-Identifier: BSD-3-Clause
49
- */const ee={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},ne=e=>(...t)=>({_$litDirective$:e,values:t});let wn=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,n,i){this._$Ct=t,this._$AM=n,this._$Ci=i}_$AS(t,n){return this.update(t,n)}update(t,n){return this.render(...n)}};/**
49
+ */const ie={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},re=e=>(...t)=>({_$litDirective$:e,values:t});let xn=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,n,i){this._$Ct=t,this._$AM=n,this._$Ci=i}_$AS(t,n){return this.update(t,n)}update(t,n){return this.render(...n)}};/**
50
50
  * @license
51
51
  * Copyright 2020 Google LLC
52
52
  * SPDX-License-Identifier: BSD-3-Clause
@@ -54,24 +54,24 @@
54
54
  * @license
55
55
  * Copyright 2017 Google LLC
56
56
  * SPDX-License-Identifier: BSD-3-Clause
57
- */const V=(e,t)=>{var i;const n=e._$AN;if(n===void 0)return!1;for(const r of n)(i=r._$AO)==null||i.call(r,t,!1),V(r,t);return!0},bt=e=>{let t,n;do{if((t=e._$AM)===void 0)break;n=t._$AN,n.delete(e),e=t}while((n==null?void 0:n.size)===0)},Sn=e=>{for(let t;t=e._$AM;e=t){let n=t._$AN;if(n===void 0)t._$AN=n=new Set;else if(n.has(e))break;n.add(e),ir(t)}};function er(e){this._$AN!==void 0?(bt(this),this._$AM=e,Sn(this)):this._$AM=e}function nr(e,t=!1,n=0){const i=this._$AH,r=this._$AN;if(r!==void 0&&r.size!==0)if(t)if(Array.isArray(i))for(let s=n;s<i.length;s++)V(i[s],!1),bt(i[s]);else i!=null&&(V(i,!1),bt(i));else V(this,e)}const ir=e=>{e.type==ee.CHILD&&(e._$AP??(e._$AP=nr),e._$AQ??(e._$AQ=er))};class xn extends wn{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,n,i){super._$AT(t,n,i),Sn(this),this.isConnected=t._$AU}_$AO(t,n=!0){var i,r;t!==this.isConnected&&(this.isConnected=t,t?(i=this.reconnected)==null||i.call(this):(r=this.disconnected)==null||r.call(this)),n&&(V(this,t),bt(this))}setValue(t){if(tr(this._$Ct))this._$Ct._$AI(t,this);else{const n=[...this._$Ct._$AH];n[this._$Ci]=t,this._$Ct._$AI(n,this,0)}}disconnected(){}reconnected(){}}const rr=new WeakMap;let Ae=0;const Nt=new Map,Ce=new WeakSet,Ee=()=>new Promise(e=>requestAnimationFrame(e)),ke=[{transform:"translateY(-100%) scale(0)",opacity:0}],sr=[{transform:"translateX(100%) scale(0)",opacity:0}],Oe=(e,t)=>{const n=e-t;return n===0?void 0:n},Te=(e,t)=>{const n=e/t;return n===1?void 0:n},Dt={left:(e,t)=>{const n=Oe(e,t);return{value:n,transform:n==null||isNaN(n)?void 0:`translateX(${n}px)`}},top:(e,t)=>{const n=Oe(e,t);return{value:n,transform:n==null||isNaN(n)?void 0:`translateY(${n}px)`}},width:(e,t)=>{let n;t===0&&(t=1,n={width:"1px"});const i=Te(e,t);return{value:i,overrideFrom:n,transform:i==null||isNaN(i)?void 0:`scaleX(${i})`}},height:(e,t)=>{let n;t===0&&(t=1,n={height:"1px"});const i=Te(e,t);return{value:i,overrideFrom:n,transform:i==null||isNaN(i)?void 0:`scaleY(${i})`}}},or={duration:333,easing:"ease-in-out"},ar=["left","top","width","height","opacity","color","background"],Pe=new WeakMap;class lr extends xn{constructor(t){if(super(t),this.t=null,this.i=null,this.o=!0,this.shouldLog=!1,t.type===ee.CHILD)throw Error("The `animate` directive must be used in attribute position.");this.createFinished()}createFinished(){var t;(t=this.resolveFinished)==null||t.call(this),this.finished=new Promise(n=>{this.h=n})}async resolveFinished(){var t;(t=this.h)==null||t.call(this),this.h=void 0}render(t){return p}getController(){return rr.get(this.l)}isDisabled(){var t;return this.options.disabled||((t=this.getController())==null?void 0:t.disabled)}update(t,[n]){var r;const i=this.l===void 0;return i&&(this.l=(r=t.options)==null?void 0:r.host,this.l.addController(this),this.element=t.element,Pe.set(this.element,this)),this.optionsOrCallback=n,(i||typeof n!="function")&&this.u(n),this.render(n)}u(t){t=t??{};const n=this.getController();n!==void 0&&((t={...n.defaultOptions,...t}).keyframeOptions={...n.defaultOptions.keyframeOptions,...t.keyframeOptions}),t.properties??(t.properties=ar),this.options=t}p(){const t={},n=this.element.getBoundingClientRect(),i=getComputedStyle(this.element);return this.options.properties.forEach(r=>{const s=n[r]??(Dt[r]?void 0:i[r]),o=Number(s);t[r]=isNaN(o)?s+"":o}),t}m(){let t,n=!0;return this.options.guard&&(t=this.options.guard(),n=((i,r)=>{if(Array.isArray(i)){if(Array.isArray(r)&&r.length===i.length&&i.every((s,o)=>s===r[o]))return!1}else if(r===i)return!1;return!0})(t,this.v)),this.o=this.l.hasUpdated&&!this.isDisabled()&&!this.isAnimating()&&n&&this.element.isConnected,this.o&&(this.v=Array.isArray(t)?Array.from(t):t),this.o}hostUpdate(){typeof this.optionsOrCallback=="function"&&this.u(this.optionsOrCallback()),this.m()&&(this.g=this.p(),this.t=this.t??this.element.parentNode,this.i=this.element.nextSibling)}async hostUpdated(){if(!this.o||!this.element.isConnected||this.options.skipInitial&&!this.isHostRendered)return;let t;this.prepare(),await Ee;const n=this._(),i=this.A(this.options.keyframeOptions,n),r=this.p();if(this.g!==void 0){const{from:s,to:o}=this.O(this.g,r,n);this.log("measured",[this.g,r,s,o]),t=this.calculateKeyframes(s,o)}else{const s=Nt.get(this.options.inId);if(s){Nt.delete(this.options.inId);const{from:o,to:a}=this.O(s,r,n);t=this.calculateKeyframes(o,a),t=this.options.in?[{...this.options.in[0],...t[0]},...this.options.in.slice(1),t[1]]:t,Ae++,t.forEach(l=>l.zIndex=Ae)}else this.options.in&&(t=[...this.options.in,{}])}this.animate(t,i)}resetStyles(){this.j!==void 0&&(this.element.setAttribute("style",this.j??""),this.j=void 0)}commitStyles(){var t,n;this.j=this.element.getAttribute("style"),(t=this.webAnimation)==null||t.commitStyles(),(n=this.webAnimation)==null||n.cancel()}reconnected(){}async disconnected(){var n;if(!this.o||(this.options.id!==void 0&&Nt.set(this.options.id,this.g),this.options.out===void 0))return;if(this.prepare(),await Ee(),(n=this.t)==null?void 0:n.isConnected){const i=this.i&&this.i.parentNode===this.t?this.i:null;if(this.t.insertBefore(this.element,i),this.options.stabilizeOut){const r=this.p();this.log("stabilizing out");const s=this.g.left-r.left,o=this.g.top-r.top;getComputedStyle(this.element).position!=="static"||s===0&&o===0||(this.element.style.position="relative"),s!==0&&(this.element.style.left=s+"px"),o!==0&&(this.element.style.top=o+"px")}}const t=this.A(this.options.keyframeOptions);await this.animate(this.options.out,t),this.element.remove()}prepare(){this.createFinished()}start(){var t,n;(n=(t=this.options).onStart)==null||n.call(t,this)}didFinish(t){var n,i;t&&((i=(n=this.options).onComplete)==null||i.call(n,this)),this.g=void 0,this.animatingProperties=void 0,this.frames=void 0,this.resolveFinished()}_(){const t=[];for(let n=this.element.parentNode;n;n=n==null?void 0:n.parentNode){const i=Pe.get(n);i&&!i.isDisabled()&&i&&t.push(i)}return t}get isHostRendered(){const t=Ce.has(this.l);return t||this.l.updateComplete.then(()=>{Ce.add(this.l)}),t}A(t,n=this._()){const i={...or};return n.forEach(r=>Object.assign(i,r.options.keyframeOptions)),Object.assign(i,t),i}O(t,n,i){t={...t},n={...n};const r=i.map(a=>a.animatingProperties).filter(a=>a!==void 0);let s=1,o=1;return r!==void 0&&(r.forEach(a=>{a.width&&(s/=a.width),a.height&&(o/=a.height)}),t.left!==void 0&&n.left!==void 0&&(t.left=s*t.left,n.left=s*n.left),t.top!==void 0&&n.top!==void 0&&(t.top=o*t.top,n.top=o*n.top)),{from:t,to:n}}calculateKeyframes(t,n,i=!1){const r={},s={};let o=!1;const a={};for(const l in n){const c=t[l],u=n[l];if(l in Dt){const h=Dt[l];if(c===void 0||u===void 0)continue;const d=h(c,u);d.transform!==void 0&&(a[l]=d.value,o=!0,r.transform=`${r.transform??""} ${d.transform}`,d.overrideFrom!==void 0&&Object.assign(r,d.overrideFrom))}else c!==u&&c!==void 0&&u!==void 0&&(o=!0,r[l]=c,s[l]=u)}return r.transformOrigin=s.transformOrigin=i?"center center":"top left",this.animatingProperties=a,o?[r,s]:void 0}async animate(t,n=this.options.keyframeOptions){this.start(),this.frames=t;let i=!1;if(!this.isAnimating()&&!this.isDisabled()&&(this.options.onFrames&&(this.frames=t=this.options.onFrames(this),this.log("modified frames",t)),t!==void 0)){this.log("animate",[t,n]),i=!0,this.webAnimation=this.element.animate(t,n);const r=this.getController();r==null||r.add(this);try{await this.webAnimation.finished}catch{}r==null||r.remove(this)}return this.didFinish(i),i}isAnimating(){var t,n;return((t=this.webAnimation)==null?void 0:t.playState)==="running"||((n=this.webAnimation)==null?void 0:n.pending)}log(t,n){this.shouldLog&&!this.isDisabled()&&console.log(t,this.options.id,n)}}const An=ne(lr),cr={name:"chevron-down",svg:'<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M53.0318 24.8653L33.5318 44.3653C33.1256 44.7717 32.5745 45.0001 31.9999 45.0001C31.4253 45.0001 30.8742 44.7717 30.468 44.3653L10.968 24.8653C10.122 24.0193 10.122 22.6476 10.968 21.8015C11.8141 20.9555 13.1858 20.9555 14.0318 21.8015L31.9999 39.7696L49.968 21.8015C50.8141 20.9555 52.1858 20.9555 53.0318 21.8015C53.8779 22.6476 53.8779 24.0193 53.0318 24.8653Z"/></svg>'},ur={name:"more-horizontal",svg:'<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M18 36C15.7909 36 14 34.2091 14 32C14 29.7909 15.7909 28 18 28C20.2091 28 22 29.7909 22 32C22 34.2091 20.2091 36 18 36ZM28 32C28 34.2091 29.7909 36 32 36C34.2091 36 36 34.2091 36 32C36 29.7909 34.2091 28 32 28C29.7909 28 28 29.7909 28 32ZM46 36C43.7909 36 42 34.2091 42 32C42 29.7909 43.7909 28 46 28C48.2091 28 50 29.7909 50 32C50 34.2091 48.2091 36 46 36Z"/></svg>'},hr={name:"question",svg:'<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M32 4C16.536 4 4 16.536 4 32C4 47.464 16.536 60 32 60C47.464 60 60 47.464 60 32C59.9827 16.5432 47.4568 4.01731 32 4ZM32 55.6923C18.9151 55.6923 8.30769 45.0849 8.30769 32C8.30769 18.9151 18.9151 8.30769 32 8.30769C45.0849 8.30769 55.6923 18.9151 55.6923 32C55.6775 45.0788 45.0788 55.6775 32 55.6923Z"/><path fill-rule="evenodd" clip-rule="evenodd" d="M31.9423 37.5723L36.311 32.9068L36.7354 32.4448C39.7555 29.1161 40.7645 27.0647 40.7645 24.5087C40.7645 23.1091 40.4251 21.7942 39.7041 20.6491C38.3044 18.3587 35.6323 16.9166 32.2816 16.9166C28.7565 16.9166 25.3125 18.7414 23.2581 21.6772L23.1201 21.8791C22.8232 22.3032 22.696 22.6849 22.696 22.9818C22.696 23.7029 23.926 25.9932 25.2833 25.9932C25.5378 25.9932 25.7922 25.9084 26.0467 25.7388C26.2588 25.5691 26.5981 25.2298 27.0647 24.7208C28.8885 22.6849 30.1185 21.9215 31.7726 21.9215C33.6813 21.9215 35.081 23.1939 35.081 24.8905C35.081 26.375 34.2751 27.7746 32.3664 29.8529L28.2523 34.2216C27.9554 34.6033 27.7857 34.9426 27.7857 35.282C27.7857 35.6213 27.9978 36.1726 28.4219 36.8937C29.0581 37.8692 29.7368 38.3782 30.4578 38.3782C30.9244 38.3782 31.3909 38.1237 31.9423 37.5723ZM30.882 47.4972C29.2278 47.4972 27.6585 44.7403 27.6585 43.6799C27.6585 42.1954 30.0761 40.6261 32.4089 40.6261C33.6389 40.6261 34.2751 41.1775 34.2751 42.3227C34.2751 44.0616 33.4692 45.843 32.4513 46.7761C31.9423 47.2427 31.4334 47.4972 30.882 47.4972Z"/></svg>'};/**
57
+ */const V=(e,t)=>{var i;const n=e._$AN;if(n===void 0)return!1;for(const r of n)(i=r._$AO)==null||i.call(r,t,!1),V(r,t);return!0},bt=e=>{let t,n;do{if((t=e._$AM)===void 0)break;n=t._$AN,n.delete(e),e=t}while((n==null?void 0:n.size)===0)},An=e=>{for(let t;t=e._$AM;e=t){let n=t._$AN;if(n===void 0)t._$AN=n=new Set;else if(n.has(e))break;n.add(e),ir(t)}};function er(e){this._$AN!==void 0?(bt(this),this._$AM=e,An(this)):this._$AM=e}function nr(e,t=!1,n=0){const i=this._$AH,r=this._$AN;if(r!==void 0&&r.size!==0)if(t)if(Array.isArray(i))for(let s=n;s<i.length;s++)V(i[s],!1),bt(i[s]);else i!=null&&(V(i,!1),bt(i));else V(this,e)}const ir=e=>{e.type==ie.CHILD&&(e._$AP??(e._$AP=nr),e._$AQ??(e._$AQ=er))};class Cn extends xn{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,n,i){super._$AT(t,n,i),An(this),this.isConnected=t._$AU}_$AO(t,n=!0){var i,r;t!==this.isConnected&&(this.isConnected=t,t?(i=this.reconnected)==null||i.call(this):(r=this.disconnected)==null||r.call(this)),n&&(V(this,t),bt(this))}setValue(t){if(tr(this._$Ct))this._$Ct._$AI(t,this);else{const n=[...this._$Ct._$AH];n[this._$Ci]=t,this._$Ct._$AI(n,this,0)}}disconnected(){}reconnected(){}}const rr=new WeakMap;let Ee=0;const Bt=new Map,ke=new WeakSet,Oe=()=>new Promise(e=>requestAnimationFrame(e)),Te=[{transform:"translateY(-100%) scale(0)",opacity:0}],sr=[{transform:"translateX(100%) scale(0)",opacity:0}],Pe=(e,t)=>{const n=e-t;return n===0?void 0:n},Le=(e,t)=>{const n=e/t;return n===1?void 0:n},zt={left:(e,t)=>{const n=Pe(e,t);return{value:n,transform:n==null||isNaN(n)?void 0:`translateX(${n}px)`}},top:(e,t)=>{const n=Pe(e,t);return{value:n,transform:n==null||isNaN(n)?void 0:`translateY(${n}px)`}},width:(e,t)=>{let n;t===0&&(t=1,n={width:"1px"});const i=Le(e,t);return{value:i,overrideFrom:n,transform:i==null||isNaN(i)?void 0:`scaleX(${i})`}},height:(e,t)=>{let n;t===0&&(t=1,n={height:"1px"});const i=Le(e,t);return{value:i,overrideFrom:n,transform:i==null||isNaN(i)?void 0:`scaleY(${i})`}}},or={duration:333,easing:"ease-in-out"},ar=["left","top","width","height","opacity","color","background"],Ie=new WeakMap;class lr extends Cn{constructor(t){if(super(t),this.t=null,this.i=null,this.o=!0,this.shouldLog=!1,t.type===ie.CHILD)throw Error("The `animate` directive must be used in attribute position.");this.createFinished()}createFinished(){var t;(t=this.resolveFinished)==null||t.call(this),this.finished=new Promise(n=>{this.h=n})}async resolveFinished(){var t;(t=this.h)==null||t.call(this),this.h=void 0}render(t){return p}getController(){return rr.get(this.l)}isDisabled(){var t;return this.options.disabled||((t=this.getController())==null?void 0:t.disabled)}update(t,[n]){var r;const i=this.l===void 0;return i&&(this.l=(r=t.options)==null?void 0:r.host,this.l.addController(this),this.element=t.element,Ie.set(this.element,this)),this.optionsOrCallback=n,(i||typeof n!="function")&&this.u(n),this.render(n)}u(t){t=t??{};const n=this.getController();n!==void 0&&((t={...n.defaultOptions,...t}).keyframeOptions={...n.defaultOptions.keyframeOptions,...t.keyframeOptions}),t.properties??(t.properties=ar),this.options=t}p(){const t={},n=this.element.getBoundingClientRect(),i=getComputedStyle(this.element);return this.options.properties.forEach(r=>{const s=n[r]??(zt[r]?void 0:i[r]),o=Number(s);t[r]=isNaN(o)?s+"":o}),t}m(){let t,n=!0;return this.options.guard&&(t=this.options.guard(),n=((i,r)=>{if(Array.isArray(i)){if(Array.isArray(r)&&r.length===i.length&&i.every((s,o)=>s===r[o]))return!1}else if(r===i)return!1;return!0})(t,this.v)),this.o=this.l.hasUpdated&&!this.isDisabled()&&!this.isAnimating()&&n&&this.element.isConnected,this.o&&(this.v=Array.isArray(t)?Array.from(t):t),this.o}hostUpdate(){typeof this.optionsOrCallback=="function"&&this.u(this.optionsOrCallback()),this.m()&&(this.g=this.p(),this.t=this.t??this.element.parentNode,this.i=this.element.nextSibling)}async hostUpdated(){if(!this.o||!this.element.isConnected||this.options.skipInitial&&!this.isHostRendered)return;let t;this.prepare(),await Oe;const n=this._(),i=this.A(this.options.keyframeOptions,n),r=this.p();if(this.g!==void 0){const{from:s,to:o}=this.O(this.g,r,n);this.log("measured",[this.g,r,s,o]),t=this.calculateKeyframes(s,o)}else{const s=Bt.get(this.options.inId);if(s){Bt.delete(this.options.inId);const{from:o,to:a}=this.O(s,r,n);t=this.calculateKeyframes(o,a),t=this.options.in?[{...this.options.in[0],...t[0]},...this.options.in.slice(1),t[1]]:t,Ee++,t.forEach(l=>l.zIndex=Ee)}else this.options.in&&(t=[...this.options.in,{}])}this.animate(t,i)}resetStyles(){this.j!==void 0&&(this.element.setAttribute("style",this.j??""),this.j=void 0)}commitStyles(){var t,n;this.j=this.element.getAttribute("style"),(t=this.webAnimation)==null||t.commitStyles(),(n=this.webAnimation)==null||n.cancel()}reconnected(){}async disconnected(){var n;if(!this.o||(this.options.id!==void 0&&Bt.set(this.options.id,this.g),this.options.out===void 0))return;if(this.prepare(),await Oe(),(n=this.t)==null?void 0:n.isConnected){const i=this.i&&this.i.parentNode===this.t?this.i:null;if(this.t.insertBefore(this.element,i),this.options.stabilizeOut){const r=this.p();this.log("stabilizing out");const s=this.g.left-r.left,o=this.g.top-r.top;getComputedStyle(this.element).position!=="static"||s===0&&o===0||(this.element.style.position="relative"),s!==0&&(this.element.style.left=s+"px"),o!==0&&(this.element.style.top=o+"px")}}const t=this.A(this.options.keyframeOptions);await this.animate(this.options.out,t),this.element.remove()}prepare(){this.createFinished()}start(){var t,n;(n=(t=this.options).onStart)==null||n.call(t,this)}didFinish(t){var n,i;t&&((i=(n=this.options).onComplete)==null||i.call(n,this)),this.g=void 0,this.animatingProperties=void 0,this.frames=void 0,this.resolveFinished()}_(){const t=[];for(let n=this.element.parentNode;n;n=n==null?void 0:n.parentNode){const i=Ie.get(n);i&&!i.isDisabled()&&i&&t.push(i)}return t}get isHostRendered(){const t=ke.has(this.l);return t||this.l.updateComplete.then(()=>{ke.add(this.l)}),t}A(t,n=this._()){const i={...or};return n.forEach(r=>Object.assign(i,r.options.keyframeOptions)),Object.assign(i,t),i}O(t,n,i){t={...t},n={...n};const r=i.map(a=>a.animatingProperties).filter(a=>a!==void 0);let s=1,o=1;return r!==void 0&&(r.forEach(a=>{a.width&&(s/=a.width),a.height&&(o/=a.height)}),t.left!==void 0&&n.left!==void 0&&(t.left=s*t.left,n.left=s*n.left),t.top!==void 0&&n.top!==void 0&&(t.top=o*t.top,n.top=o*n.top)),{from:t,to:n}}calculateKeyframes(t,n,i=!1){const r={},s={};let o=!1;const a={};for(const l in n){const c=t[l],u=n[l];if(l in zt){const h=zt[l];if(c===void 0||u===void 0)continue;const d=h(c,u);d.transform!==void 0&&(a[l]=d.value,o=!0,r.transform=`${r.transform??""} ${d.transform}`,d.overrideFrom!==void 0&&Object.assign(r,d.overrideFrom))}else c!==u&&c!==void 0&&u!==void 0&&(o=!0,r[l]=c,s[l]=u)}return r.transformOrigin=s.transformOrigin=i?"center center":"top left",this.animatingProperties=a,o?[r,s]:void 0}async animate(t,n=this.options.keyframeOptions){this.start(),this.frames=t;let i=!1;if(!this.isAnimating()&&!this.isDisabled()&&(this.options.onFrames&&(this.frames=t=this.options.onFrames(this),this.log("modified frames",t)),t!==void 0)){this.log("animate",[t,n]),i=!0,this.webAnimation=this.element.animate(t,n);const r=this.getController();r==null||r.add(this);try{await this.webAnimation.finished}catch{}r==null||r.remove(this)}return this.didFinish(i),i}isAnimating(){var t,n;return((t=this.webAnimation)==null?void 0:t.playState)==="running"||((n=this.webAnimation)==null?void 0:n.pending)}log(t,n){this.shouldLog&&!this.isDisabled()&&console.log(t,this.options.id,n)}}const En=re(lr),cr={name:"chevron-down",svg:'<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M53.0318 24.8653L33.5318 44.3653C33.1256 44.7717 32.5745 45.0001 31.9999 45.0001C31.4253 45.0001 30.8742 44.7717 30.468 44.3653L10.968 24.8653C10.122 24.0193 10.122 22.6476 10.968 21.8015C11.8141 20.9555 13.1858 20.9555 14.0318 21.8015L31.9999 39.7696L49.968 21.8015C50.8141 20.9555 52.1858 20.9555 53.0318 21.8015C53.8779 22.6476 53.8779 24.0193 53.0318 24.8653Z"/></svg>'},ur={name:"more-horizontal",svg:'<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M18 36C15.7909 36 14 34.2091 14 32C14 29.7909 15.7909 28 18 28C20.2091 28 22 29.7909 22 32C22 34.2091 20.2091 36 18 36ZM28 32C28 34.2091 29.7909 36 32 36C34.2091 36 36 34.2091 36 32C36 29.7909 34.2091 28 32 28C29.7909 28 28 29.7909 28 32ZM46 36C43.7909 36 42 34.2091 42 32C42 29.7909 43.7909 28 46 28C48.2091 28 50 29.7909 50 32C50 34.2091 48.2091 36 46 36Z"/></svg>'},hr={name:"question",svg:'<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M32 4C16.536 4 4 16.536 4 32C4 47.464 16.536 60 32 60C47.464 60 60 47.464 60 32C59.9827 16.5432 47.4568 4.01731 32 4ZM32 55.6923C18.9151 55.6923 8.30769 45.0849 8.30769 32C8.30769 18.9151 18.9151 8.30769 32 8.30769C45.0849 8.30769 55.6923 18.9151 55.6923 32C55.6775 45.0788 45.0788 55.6775 32 55.6923Z"/><path fill-rule="evenodd" clip-rule="evenodd" d="M31.9423 37.5723L36.311 32.9068L36.7354 32.4448C39.7555 29.1161 40.7645 27.0647 40.7645 24.5087C40.7645 23.1091 40.4251 21.7942 39.7041 20.6491C38.3044 18.3587 35.6323 16.9166 32.2816 16.9166C28.7565 16.9166 25.3125 18.7414 23.2581 21.6772L23.1201 21.8791C22.8232 22.3032 22.696 22.6849 22.696 22.9818C22.696 23.7029 23.926 25.9932 25.2833 25.9932C25.5378 25.9932 25.7922 25.9084 26.0467 25.7388C26.2588 25.5691 26.5981 25.2298 27.0647 24.7208C28.8885 22.6849 30.1185 21.9215 31.7726 21.9215C33.6813 21.9215 35.081 23.1939 35.081 24.8905C35.081 26.375 34.2751 27.7746 32.3664 29.8529L28.2523 34.2216C27.9554 34.6033 27.7857 34.9426 27.7857 35.282C27.7857 35.6213 27.9978 36.1726 28.4219 36.8937C29.0581 37.8692 29.7368 38.3782 30.4578 38.3782C30.9244 38.3782 31.3909 38.1237 31.9423 37.5723ZM30.882 47.4972C29.2278 47.4972 27.6585 44.7403 27.6585 43.6799C27.6585 42.1954 30.0761 40.6261 32.4089 40.6261C33.6389 40.6261 34.2751 41.1775 34.2751 42.3227C34.2751 44.0616 33.4692 45.843 32.4513 46.7761C31.9423 47.2427 31.4334 47.4972 30.882 47.4972Z"/></svg>'};/**
58
58
  * @license
59
59
  * Copyright 2018 Google LLC
60
60
  * SPDX-License-Identifier: BSD-3-Clause
61
- */const dr=ne(class extends wn{constructor(e){var t;if(super(e),e.type!==ee.ATTRIBUTE||e.name!=="class"||((t=e.strings)==null?void 0:t.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(e){return" "+Object.keys(e).filter(t=>e[t]).join(" ")+" "}update(e,[t]){var i,r;if(this.it===void 0){this.it=new Set,e.strings!==void 0&&(this.st=new Set(e.strings.join(" ").split(/\s/).filter(s=>s!=="")));for(const s in t)t[s]&&!((i=this.st)!=null&&i.has(s))&&this.it.add(s);return this.render(t)}const n=e.element.classList;for(const s of this.it)s in t||(n.remove(s),this.it.delete(s));for(const s in t){const o=!!t[s];o===this.it.has(s)||(r=this.st)!=null&&r.has(s)||(o?(n.add(s),this.it.add(s)):(n.remove(s),this.it.delete(s)))}return U}}),ut=(e,t,n)=>{e&&n.style.setProperty(t,e)},Cn=(e,t)=>{var n,i,r,s;ut((n=e.colors)==null?void 0:n.primaryBackground,"--primary-background",t),ut((i=e.colors)==null?void 0:i.textOnPrimaryBackground,"--text-on-primary-background",t),ut((r=e.colors)==null?void 0:r.secondaryBackground,"--secondary-background",t),ut((s=e.colors)==null?void 0:s.textOnSecondaryBackground,"--text-on-secondary-background",t)};/**
61
+ */const dr=re(class extends xn{constructor(e){var t;if(super(e),e.type!==ie.ATTRIBUTE||e.name!=="class"||((t=e.strings)==null?void 0:t.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(e){return" "+Object.keys(e).filter(t=>e[t]).join(" ")+" "}update(e,[t]){var i,r;if(this.it===void 0){this.it=new Set,e.strings!==void 0&&(this.st=new Set(e.strings.join(" ").split(/\s/).filter(s=>s!=="")));for(const s in t)t[s]&&!((i=this.st)!=null&&i.has(s))&&this.it.add(s);return this.render(t)}const n=e.element.classList;for(const s of this.it)s in t||(n.remove(s),this.it.delete(s));for(const s in t){const o=!!t[s];o===this.it.has(s)||(r=this.st)!=null&&r.has(s)||(o?(n.add(s),this.it.add(s)):(n.remove(s),this.it.delete(s)))}return U}}),ut=(e,t,n)=>{e&&n.style.setProperty(t,e)},kn=(e,t)=>{var n,i,r,s;ut((n=e.colors)==null?void 0:n.primaryBackground,"--primary-background",t),ut((i=e.colors)==null?void 0:i.textOnPrimaryBackground,"--text-on-primary-background",t),ut((r=e.colors)==null?void 0:r.secondaryBackground,"--secondary-background",t),ut((s=e.colors)==null?void 0:s.textOnSecondaryBackground,"--text-on-secondary-background",t)};/**
62
62
  * @license
63
63
  * Copyright 2020 Google LLC
64
64
  * SPDX-License-Identifier: BSD-3-Clause
65
- */const En=()=>new fr;let fr=class{};const Bt=new WeakMap,kn=ne(class extends xn{render(e){return p}update(e,[t]){var i;const n=t!==this.G;return n&&this.G!==void 0&&this.ot(void 0),(n||this.rt!==this.lt)&&(this.G=t,this.ct=(i=e.options)==null?void 0:i.host,this.ot(this.lt=e.element)),p}ot(e){if(typeof this.G=="function"){const t=this.ct??globalThis;let n=Bt.get(t);n===void 0&&(n=new WeakMap,Bt.set(t,n)),n.get(this.G)!==void 0&&this.G.call(this.ct,void 0),n.set(this.G,e),e!==void 0&&this.G.call(this.ct,e)}else this.G.value=e}get rt(){var e,t;return typeof this.G=="function"?(e=Bt.get(this.ct??globalThis))==null?void 0:e.get(this.G):(t=this.G)==null?void 0:t.value}disconnected(){this.rt===this.lt&&this.ot(void 0)}reconnected(){this.ot(this.lt)}});var pr=Object.defineProperty,gr=Object.getOwnPropertyDescriptor,kt=(e,t,n,i)=>{for(var r=i>1?void 0:i?gr(t,n):t,s=e.length-1,o;s>=0;s--)(o=e[s])&&(r=(i?o(t,n,r):o(r))||r);return i&&r&&pr(t,n,r),r};class j extends A{constructor(){super(...arguments),this.active=!1,this.loaded=!1,this.containerRef=En()}async connectedCallback(){super.connectedCallback(),this.icon=await this._renderSymbol(),this.loaded=!0,this._applyBranding()}toggleActive(){var t;if(!((t=this.application)!=null&&t.root)){console.warn("Could not activate widget. No root element assigned to widget.");return}this.active=!this.active,this.active?this.application.appendToDOM():this.application.hide()}_applyBranding(){var t;(t=this.application)!=null&&t.settings&&Cn(this.application.settings.branding,this)}async _renderSymbol(){var a,l,c;const t=(a=this.application)==null?void 0:a.branding(),n=(l=t==null?void 0:t.graphics)==null?void 0:l.trigger;if(n)return w` <img src=${n} class="trigger-icon" alt="" /> `;const i=(c=this.application)==null?void 0:c.triggerIcon;if(!i)return p;const r=async u=>hr,{type:s,content:o}=i;switch(s){case"Telia":{const u=await r();return u?w`<telia-icon
65
+ */const _t=()=>new fr;let fr=class{};const Ft=new WeakMap,wt=re(class extends Cn{render(e){return p}update(e,[t]){var i;const n=t!==this.G;return n&&this.G!==void 0&&this.ot(void 0),(n||this.rt!==this.lt)&&(this.G=t,this.ct=(i=e.options)==null?void 0:i.host,this.ot(this.lt=e.element)),p}ot(e){if(typeof this.G=="function"){const t=this.ct??globalThis;let n=Ft.get(t);n===void 0&&(n=new WeakMap,Ft.set(t,n)),n.get(this.G)!==void 0&&this.G.call(this.ct,void 0),n.set(this.G,e),e!==void 0&&this.G.call(this.ct,e)}else this.G.value=e}get rt(){var e,t;return typeof this.G=="function"?(e=Ft.get(this.ct??globalThis))==null?void 0:e.get(this.G):(t=this.G)==null?void 0:t.value}disconnected(){this.rt===this.lt&&this.ot(void 0)}reconnected(){this.ot(this.lt)}});var pr=Object.defineProperty,gr=Object.getOwnPropertyDescriptor,Tt=(e,t,n,i)=>{for(var r=i>1?void 0:i?gr(t,n):t,s=e.length-1,o;s>=0;s--)(o=e[s])&&(r=(i?o(t,n,r):o(r))||r);return i&&r&&pr(t,n,r),r};class j extends A{constructor(){super(...arguments),this.active=!1,this.loaded=!1,this.containerRef=_t()}async connectedCallback(){super.connectedCallback(),this.icon=await this._renderSymbol(),this.loaded=!0,this._applyBranding()}toggleActive(){var t;if(!((t=this.application)!=null&&t.root)){console.warn("Could not activate widget. No root element assigned to widget.");return}this.active=!this.active,this.active?this.application.appendToDOM():this.application.hide()}_applyBranding(){var t;(t=this.application)!=null&&t.settings&&kn(this.application.settings.branding,this)}async _renderSymbol(){var a,l,c;const t=(a=this.application)==null?void 0:a.branding(),n=(l=t==null?void 0:t.graphics)==null?void 0:l.trigger;if(n)return w` <img src=${n} class="trigger-icon" alt="" /> `;const i=(c=this.application)==null?void 0:c.triggerIcon;if(!i)return p;const r=async u=>hr,{type:s,content:o}=i;switch(s){case"Telia":{const u=await r();return u?w`<telia-icon
66
66
  class="trigger-icon"
67
67
  svg=${u.svg}
68
68
  size="lg"
69
- ></telia-icon>`:p}default:return p}}render(){var t,n,i,r;return w`<div class="trigger-container" ${kn(this.containerRef)}>
69
+ ></telia-icon>`:p}default:return p}}render(){var t,n,i,r;return w`<div class="trigger-container" ${wt(this.containerRef)}>
70
70
  ${!this.active&&((r=(i=(n=(t=this.application)==null?void 0:t.settings)==null?void 0:n.branding)==null?void 0:i.other)!=null&&r.showButtonLabel)?w`
71
71
  <button
72
72
  class="trigger-label"
73
73
  @click=${this.toggleActive}
74
- ${An({keyframeOptions:{},in:sr,stabilizeOut:!0,skipInitial:!1})}
74
+ ${En({keyframeOptions:{},in:sr,stabilizeOut:!0,skipInitial:!1})}
75
75
  >
76
76
  ${this.application.settings.branding.other.buttonLabelText}
77
77
  </button>
@@ -214,7 +214,7 @@
214
214
  .trigger-label:hover {
215
215
  opacity: 0.8;
216
216
  }
217
- `];kt([_({attribute:!1})],j.prototype,"application",2);kt([Z()],j.prototype,"active",2);kt([Z()],j.prototype,"loaded",2);kt([Z()],j.prototype,"icon",2);var $r=Object.defineProperty,vr=Object.getOwnPropertyDescriptor,P=(e,t,n,i)=>{for(var r=i>1?void 0:i?vr(t,n):t,s=e.length-1,o;s>=0;s--)(o=e[s])&&(r=(i?o(t,n,r):o(r))||r);return i&&r&&$r(t,n,r),r};const On=e=>{class t extends e{constructor(){super(...arguments),this.properties={},this.context={},this.layout={},this.nodes=[]}writeProperties(i){this.properties=i}writeLayout(i){this.layout=i}writeContext(i){this.context=i}addChild(i){i.parent=this,this.nodes.push(i)}connectedCallback(){super.connectedCallback(),this.renderRoot.host.style.setProperty("--width",this.layout.size==="full"?"var(--columns, 1)":`min(${this.layout.size||"var(--columns)"}, var(--columns))`),this.application.mountComponent(this)}}return t.styles=[M`
217
+ `];Tt([_({attribute:!1})],j.prototype,"application",2);Tt([Z()],j.prototype,"active",2);Tt([Z()],j.prototype,"loaded",2);Tt([Z()],j.prototype,"icon",2);var $r=Object.defineProperty,vr=Object.getOwnPropertyDescriptor,P=(e,t,n,i)=>{for(var r=i>1?void 0:i?vr(t,n):t,s=e.length-1,o;s>=0;s--)(o=e[s])&&(r=(i?o(t,n,r):o(r))||r);return i&&r&&$r(t,n,r),r};const On=e=>{class t extends e{constructor(){super(...arguments),this.properties={},this.context={},this.layout={},this.nodes=[]}writeProperties(i){this.properties=i}writeLayout(i){this.layout=i}writeContext(i){this.context=i}addChild(i){i.parent=this,this.nodes.push(i)}connectedCallback(){super.connectedCallback(),this.renderRoot.host.style.setProperty("--width",this.layout.size==="full"?"var(--columns, 1)":`min(${this.layout.size||"var(--columns)"}, var(--columns))`),this.application.mountComponent(this)}}return t.styles=[M`
218
218
  :host {
219
219
  font-family: var(--font-family);
220
220
  grid-column: span var(--width);
@@ -234,9 +234,9 @@
234
234
  * @license
235
235
  * Copyright 2021 Google LLC
236
236
  * SPDX-License-Identifier: BSD-3-Clause
237
- */function*mr(e,t){if(e!==void 0){let n=0;for(const i of e)yield t(i,n++)}}var ie=(e=>(e.Inline="inline",e.Trigger="trigger",e))(ie||{}),yr=Object.defineProperty,br=Object.getOwnPropertyDescriptor,_r=(e,t,n,i)=>{for(var r=i>1?void 0:i?br(t,n):t,s=e.length-1,o;s>=0;s--)(o=e[s])&&(r=(i?o(t,n,r):o(r))||r);return i&&r&&yr(t,n,r),r};class re extends A{constructor(){super(...arguments),this.nodes=[],this.wrapperRef=En()}addChild(t){t.parent=this,this.nodes.push(t)}applyBranding(){if(!this.wrapperRef.value)return;const t=this.application.settings;t!=null&&t.branding&&Cn(t.branding,this.wrapperRef.value)}applyStyles(){if(!this.wrapperRef.value)return;const t=this.application.styles(),n=this.wrapperRef.value;Object.entries(t).forEach(([i,r])=>{n.style.setProperty(`--${i}`,r)})}firstUpdated(t){this.applyBranding(),this.applyStyles()}render(){return this.application.renderStrategy===ie.Trigger&&(this.renderRoot.host.classList.add("floating"),this.application.anchor==="BottomLeft"?this.renderRoot.host.classList.add("bottom-left"):this.application.anchor==="BottomRight"&&this.renderRoot.host.classList.add("bottom-right")),w`<div class="widget-container" ${kn(this.wrapperRef)}>
237
+ */function*mr(e,t){if(e!==void 0){let n=0;for(const i of e)yield t(i,n++)}}var se=(e=>(e.Inline="inline",e.Trigger="trigger",e))(se||{}),yr=Object.defineProperty,br=Object.getOwnPropertyDescriptor,_r=(e,t,n,i)=>{for(var r=i>1?void 0:i?br(t,n):t,s=e.length-1,o;s>=0;s--)(o=e[s])&&(r=(i?o(t,n,r):o(r))||r);return i&&r&&yr(t,n,r),r};class oe extends A{constructor(){super(...arguments),this.nodes=[],this.wrapperRef=_t()}addChild(t){t.parent=this,this.nodes.push(t)}applyBranding(){if(!this.wrapperRef.value)return;const t=this.application.settings;t!=null&&t.branding&&kn(t.branding,this.wrapperRef.value)}applyStyles(){if(!this.wrapperRef.value)return;const t=this.application.styles(),n=this.wrapperRef.value;Object.entries(t).forEach(([i,r])=>{n.style.setProperty(`--${i}`,r)})}firstUpdated(t){this.applyBranding(),this.applyStyles()}render(){return this.application.renderStrategy===se.Trigger&&(this.renderRoot.host.classList.add("floating"),this.application.anchor==="BottomLeft"?this.renderRoot.host.classList.add("bottom-left"):this.application.anchor==="BottomRight"&&this.renderRoot.host.classList.add("bottom-right")),w`<div class="widget-container" ${wt(this.wrapperRef)}>
238
238
  ${mr(this.nodes,t=>t)}
239
- </div>`}}re.styles=M`
239
+ </div>`}}oe.styles=M`
240
240
  :host {
241
241
  --font-family: TeliaSans, Helvetica, Arial, Lucida Grande, sans-serif;
242
242
  --spacing-xs: 0.2rem;
@@ -333,11 +333,11 @@
333
333
  opacity: 0;
334
334
  animation: slideDown 0.3s linear;
335
335
  }
336
- `;_r([_({attribute:!1})],re.prototype,"application",2);var wr=Object.defineProperty,Sr=Object.getOwnPropertyDescriptor,se=(e,t,n,i)=>{for(var r=i>1?void 0:i?Sr(t,n):t,s=e.length-1,o;s>=0;s--)(o=e[s])&&(r=(i?o(t,n,r):o(r))||r);return i&&r&&wr(t,n,r),r};class ot extends A{constructor(){super(),this.status="deactivated",this.addEventListener("environment-created",this.onEnvironmentCreated)}async connectedCallback(){super.connectedCallback(),await this.getGlobalEnvironment()}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("environment-created",this.onEnvironmentCreated)}async onEnvironmentCreated(t){this.widget=t.detail.widget,await this.activate(),this.requestUpdate()}async activate(){this.widget&&(await this.widget.activate(),this.status="activated")}async getGlobalEnvironment(){const t=globalThis.widgets;t&&(this.widget=t.applications.find(n=>n.name===this.name),await this.activate())}render(){if(!this.widget||this.status!=="activated")return p;if(this.widget.renderStrategy===ie.Trigger){const t=new j;return t.application=this.widget,t}return this.widget.render()}}ot.styles=[M`
336
+ `;_r([_({attribute:!1})],oe.prototype,"application",2);var wr=Object.defineProperty,Sr=Object.getOwnPropertyDescriptor,ae=(e,t,n,i)=>{for(var r=i>1?void 0:i?Sr(t,n):t,s=e.length-1,o;s>=0;s--)(o=e[s])&&(r=(i?o(t,n,r):o(r))||r);return i&&r&&wr(t,n,r),r};class ot extends A{constructor(){super(),this.status="deactivated",this.addEventListener("environment-created",this.onEnvironmentCreated)}async connectedCallback(){super.connectedCallback(),await this.getGlobalEnvironment()}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("environment-created",this.onEnvironmentCreated)}async onEnvironmentCreated(t){this.widget=t.detail.widget,await this.activate(),this.requestUpdate()}async activate(){this.widget&&(await this.widget.activate(),this.status="activated")}async getGlobalEnvironment(){const t=globalThis.widgets;t&&(this.widget=t.applications.find(n=>n.name===this.name),await this.activate())}render(){if(!this.widget||this.status!=="activated")return p;if(this.widget.renderStrategy===se.Trigger){const t=new j;return t.application=this.widget,t}return this.widget.render()}}ot.styles=[M`
337
337
  :host {
338
338
  display: block;
339
339
  }
340
- `];se([_({attribute:!0})],ot.prototype,"name",2);se([Z()],ot.prototype,"widget",2);se([Z()],ot.prototype,"status",2);customElements.get("ace-trigger-slot")||customElements.define("ace-trigger-slot",te);customElements.get("ace-trigger")||customElements.define("ace-trigger",j);customElements.get("ace-unresolved-component")||customElements.define("ace-unresolved-component",Tn);customElements.get("ace-wrapper")||customElements.define("ace-wrapper",re);customElements.get("ace-widget")||customElements.define("ace-widget",ot);let ht;const xr=new Uint8Array(16);function Ar(){if(!ht&&(ht=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!ht))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return ht(xr)}const m=[];for(let e=0;e<256;++e)m.push((e+256).toString(16).slice(1));function Cr(e,t=0){return m[e[t+0]]+m[e[t+1]]+m[e[t+2]]+m[e[t+3]]+"-"+m[e[t+4]]+m[e[t+5]]+"-"+m[e[t+6]]+m[e[t+7]]+"-"+m[e[t+8]]+m[e[t+9]]+"-"+m[e[t+10]]+m[e[t+11]]+m[e[t+12]]+m[e[t+13]]+m[e[t+14]]+m[e[t+15]]}const Er=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),Ie={randomUUID:Er};function kr(e,t,n){if(Ie.randomUUID&&!t&&!e)return Ie.randomUUID();e=e||{};const i=e.random||(e.rng||Ar)();if(i[6]=i[6]&15|64,i[8]=i[8]&63|128,t){n=n||0;for(let r=0;r<16;++r)t[n+r]=i[r];return t}return Cr(i)}class Or{constructor(t,n,i,r,s){this.label=t,this.icon=n,this.onClick=i,this.closeOnClick=r,this.update=new Ve,this.id=kr(),this._controller=s}updateLabel(t){this.label=t,this.update.next()}updateIcon(t){this.icon=t,this.update.next()}remove(){this._controller.removeOption(this)}subscribe(){return this.update.asObservable()}}class Tr{constructor(t){this._options=[],this._subscription=null,this._host=t,t.addController(this)}hostConnected(){}hostDisconnected(){this._subscription&&this._subscription.unsubscribe(),this._options=[]}addOption(t){const n=new Or(t.label,t.icon,t.onClick,t.closeOnClick,this);return this._options.push(n),this.handleUpdate(),n}removeOption(t){this._options=this._options.filter(n=>n.id!==t.id)}handleUpdate(){this._subscription&&this._subscription.unsubscribe();const t=this._options.map(n=>n.subscribe());this._subscription=Oi(t).subscribe(()=>{this._host.requestUpdate()})}set options(t){this._options=t,this._host.requestUpdate()}get options(){return this._options}hasOptions(){return this._options.length>0}}const N={allRenderFn:!1,cmpDidLoad:!0,cmpDidUnload:!1,cmpDidUpdate:!0,cmpDidRender:!0,cmpWillLoad:!0,cmpWillUpdate:!0,cmpWillRender:!0,connectedCallback:!0,disconnectedCallback:!0,element:!0,event:!0,hasRenderFn:!0,lifecycle:!0,hostListener:!0,hostListenerTargetWindow:!0,hostListenerTargetDocument:!0,hostListenerTargetBody:!0,hostListenerTargetParent:!1,hostListenerTarget:!0,member:!0,method:!0,mode:!0,observeAttribute:!0,prop:!0,propMutable:!0,reflect:!0,scoped:!0,shadowDom:!0,slot:!0,cssAnnotations:!0,state:!0,style:!0,svg:!0,updatable:!0,vdomAttribute:!0,vdomXlink:!0,vdomClass:!0,vdomFunctional:!0,vdomKey:!0,vdomListener:!0,vdomRef:!0,vdomPropOrAttr:!0,vdomRender:!0,vdomStyle:!0,vdomText:!0,watchCallback:!0,taskQueue:!0,hotModuleReplacement:!1,isDebug:!1,isDev:!1,isTesting:!1,hydrateServerSide:!1,hydrateClientSide:!1,lifecycleDOMEvents:!1,lazyLoad:!1,profile:!1,slotRelocation:!0,appendChildSlotFix:!1,cloneNodeFix:!1,hydratedAttribute:!1,hydratedClass:!0,safari10:!1,scriptDataOpts:!1,scopedSlotTextContentFix:!1,shadowDomShim:!1,slotChildNodesFix:!1,invisiblePrehydration:!0,propBoolean:!0,propNumber:!0,propString:!0,cssVarShim:!1,constructableCSS:!0,cmpShouldUpdate:!0,devTools:!1,dynamicImportShim:!1,shadowDelegatesFocus:!0,initializeNextTick:!1,asyncLoading:!1,asyncQueue:!1,transformTagName:!1,attachStyles:!0};let D,Pn,Ot,In=!1,_t=!1,oe=!1,b=!1,Le=null,qt=!1;const Tt=typeof window<"u"?window:{},C=Tt.document||{head:{}},Ln=Tt.HTMLElement||class{},y={$flags$:0,$resourcesUrl$:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,i)=>e.addEventListener(t,n,i),rel:(e,t,n,i)=>e.removeEventListener(t,n,i),ce:(e,t)=>new CustomEvent(e,t)},Pr=(()=>{let e=!1;try{C.addEventListener("e",null,Object.defineProperty({},"passive",{get(){e=!0}}))}catch{}return e})(),Ir=e=>Promise.resolve(e),Lr=(()=>{try{return new CSSStyleSheet,typeof new CSSStyleSheet().replace=="function"}catch{}return!1})(),Un=(e,t,n,i)=>{n&&n.map(([r,s,o])=>{const a=Rr(e,r),l=Ur(t,o),c=Mr(r);y.ael(a,s,l,c),(t.$rmListeners$=t.$rmListeners$||[]).push(()=>y.rel(a,s,l,c))})},Ur=(e,t)=>n=>{try{N.lazyLoad||e.$hostElement$[t](n)}catch(i){at(i)}},Rr=(e,t)=>t&4?C:t&8?Tt:t&16?C.body:e,Mr=e=>Pr?{passive:(e&1)!==0,capture:(e&2)!==0}:(e&2)!==0,Ue="http://www.w3.org/1999/xlink",R=(e,t="")=>()=>{},Re=new WeakMap,jr=(e,t,n)=>{let i=xt.get(e);Lr&&n?(i=i||new CSSStyleSheet,i.replace(t)):i=t,xt.set(e,i)},Hr=(e,t,n,i)=>{let r=Rn(t,n),s=xt.get(r);if(e=e.nodeType===11?e:C,s)if(typeof s=="string"){e=e.head||e;let o=Re.get(e),a;o||Re.set(e,o=new Set),o.has(r)||(a=C.createElement("style"),a.innerHTML=s,e.insertBefore(a,e.querySelector("link")),o&&o.add(r))}else e.adoptedStyleSheets.includes(s)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,s]);return r},Nr=e=>{const t=e.$cmpMeta$,n=e.$hostElement$,i=t.$flags$,r=R("attachStyles",t.$tagName$),s=Hr(n.shadowRoot?n.shadowRoot:n.getRootNode(),t,e.$modeName$);i&10&&(n["s-sc"]=s,n.classList.add(s+"-h"),i&2&&n.classList.add(s+"-s")),r()},Rn=(e,t)=>"sc-"+(t&&e.$flags$&32?e.$tagName$+"-"+t:e.$tagName$),Dr=e=>ps.map(t=>t(e)).find(t=>!!t),Me={},Br="http://www.w3.org/2000/svg",zr="http://www.w3.org/1999/xhtml",Fr=e=>e!=null,ae=e=>(e=typeof e,e==="object"||e==="function"),F=(e,t,...n)=>{let i=null,r=null,s=null,o=!1,a=!1,l=[];const c=h=>{for(let d=0;d<h.length;d++)i=h[d],Array.isArray(i)?c(i):i!=null&&typeof i!="boolean"&&((o=typeof e!="function"&&!ae(i))&&(i=String(i)),o&&a?l[l.length-1].$text$+=i:l.push(o?wt(null,i):i),a=o)};if(c(n),t){t.key&&(r=t.key),t.name&&(s=t.name);{const h=t.className||t.class;h&&(t.class=typeof h!="object"?h:Object.keys(h).filter(d=>h[d]).join(" "))}}if(typeof e=="function")return e(t===null?{}:t,l,Gr);const u=wt(e,null);return u.$attrs$=t,l.length>0&&(u.$children$=l),u.$key$=r,u.$name$=s,u},wt=(e,t)=>{const n={$flags$:0,$tag$:e,$text$:t,$elm$:null,$children$:null};return n.$attrs$=null,n.$key$=null,n.$name$=null,n},le={},Wr=e=>e&&e.$tag$===le,Gr={forEach:(e,t)=>e.map(je).forEach(t),map:(e,t)=>e.map(je).map(t).map(qr)},je=e=>({vattrs:e.$attrs$,vchildren:e.$children$,vkey:e.$key$,vname:e.$name$,vtag:e.$tag$,vtext:e.$text$}),qr=e=>{if(typeof e.vtag=="function"){const n=Object.assign({},e.vattrs);return e.vkey&&(n.key=e.vkey),e.vname&&(n.name=e.vname),F(e.vtag,n,...e.vchildren||[])}const t=wt(e.vtag,e.vtext);return t.$attrs$=e.vattrs,t.$children$=e.vchildren,t.$key$=e.vkey,t.$name$=e.vname,t},He=(e,t,n,i,r,s)=>{if(n!==i){let o=ze(e,t),a=t.toLowerCase();if(t==="class"){const l=e.classList,c=Ne(n),u=Ne(i);l.remove(...c.filter(h=>h&&!u.includes(h))),l.add(...u.filter(h=>h&&!c.includes(h)))}else if(t==="style"){for(const l in n)(!i||i[l]==null)&&(l.includes("-")?e.style.removeProperty(l):e.style[l]="");for(const l in i)(!n||i[l]!==n[l])&&(l.includes("-")?e.style.setProperty(l,i[l]):e.style[l]=i[l])}else if(t!=="key")if(t==="ref")i&&i(e);else if(!e.__lookupSetter__(t)&&t[0]==="o"&&t[1]==="n")t[2]==="-"?t=t.slice(3):ze(Tt,a)?t=a.slice(2):t=a[2]+t.slice(3),n&&y.rel(e,t,n,!1),i&&y.ael(e,t,i,!1);else{const l=ae(i);if((o||l&&i!==null)&&!r)try{if(e.tagName.includes("-"))e[t]=i;else{let u=i??"";t==="list"?o=!1:(n==null||e[t]!=u)&&(e[t]=u)}}catch{}let c=!1;a!==(a=a.replace(/^xlink\:?/,""))&&(t=a,c=!0),i==null||i===!1?(i!==!1||e.getAttribute(t)==="")&&(c?e.removeAttributeNS(Ue,t):e.removeAttribute(t)):(!o||s&4||r)&&!l&&(i=i===!0?"":i,c?e.setAttributeNS(Ue,t,i):e.setAttribute(t,i))}}},Yr=/\s/,Ne=e=>e?e.split(Yr):[],Mn=(e,t,n,i)=>{const r=t.$elm$.nodeType===11&&t.$elm$.host?t.$elm$.host:t.$elm$,s=e&&e.$attrs$||Me,o=t.$attrs$||Me;for(i in s)i in o||He(r,i,s[i],void 0,n,t.$flags$);for(i in o)He(r,i,s[i],o[i],n,t.$flags$)},St=(e,t,n,i)=>{let r=t.$children$[n],s=0,o,a,l;if(In||(oe=!0,r.$tag$==="slot"&&(D&&i.classList.add(D+"-s"),r.$flags$|=r.$children$?2:1)),r.$text$!==null)o=r.$elm$=C.createTextNode(r.$text$);else if(r.$flags$&1)o=r.$elm$=C.createTextNode("");else{if(b||(b=r.$tag$==="svg"),o=r.$elm$=C.createElementNS(b?Br:zr,r.$flags$&2?"slot-fb":r.$tag$),b&&r.$tag$==="foreignObject"&&(b=!1),Mn(null,r,b),Fr(D)&&o["s-si"]!==D&&o.classList.add(o["s-si"]=D),r.$children$)for(s=0;s<r.$children$.length;++s)a=St(e,r,s,o),a&&o.appendChild(a);r.$tag$==="svg"?b=!1:o.tagName==="foreignObject"&&(b=!0)}return o["s-hn"]=Ot,r.$flags$&3&&(o["s-sr"]=!0,o["s-cr"]=Pn,o["s-sn"]=r.$name$||"",l=e&&e.$children$&&e.$children$[n],l&&l.$tag$===r.$tag$&&e.$elm$&&it(e.$elm$,!1)),o},it=(e,t)=>{y.$flags$|=1;const n=e.childNodes;for(let i=n.length-1;i>=0;i--){const r=n[i];r["s-hn"]!==Ot&&r["s-ol"]&&(Nn(r).insertBefore(r,ce(r)),r["s-ol"].remove(),r["s-ol"]=void 0,oe=!0),t&&it(r,t)}y.$flags$&=-2},jn=(e,t,n,i,r,s)=>{let o=e["s-cr"]&&e["s-cr"].parentNode||e,a;for(o.shadowRoot&&o.tagName===Ot&&(o=o.shadowRoot);r<=s;++r)i[r]&&(a=St(null,n,r,e),a&&(i[r].$elm$=a,o.insertBefore(a,ce(t))))},Hn=(e,t,n,i,r)=>{for(;t<=n;++t)(i=e[t])&&(r=i.$elm$,zn(i),_t=!0,r["s-ol"]?r["s-ol"].remove():it(r,!0),r.remove())},Zr=(e,t,n,i)=>{let r=0,s=0,o=0,a=0,l=t.length-1,c=t[0],u=t[l],h=i.length-1,d=i[0],f=i[h],$,g;for(;r<=l&&s<=h;)if(c==null)c=t[++r];else if(u==null)u=t[--l];else if(d==null)d=i[++s];else if(f==null)f=i[--h];else if(dt(c,d))B(c,d),c=t[++r],d=i[++s];else if(dt(u,f))B(u,f),u=t[--l],f=i[--h];else if(dt(c,f))(c.$tag$==="slot"||f.$tag$==="slot")&&it(c.$elm$.parentNode,!1),B(c,f),e.insertBefore(c.$elm$,u.$elm$.nextSibling),c=t[++r],f=i[--h];else if(dt(u,d))(c.$tag$==="slot"||f.$tag$==="slot")&&it(u.$elm$.parentNode,!1),B(u,d),e.insertBefore(u.$elm$,c.$elm$),u=t[--l],d=i[++s];else{for(o=-1,a=r;a<=l;++a)if(t[a]&&t[a].$key$!==null&&t[a].$key$===d.$key$){o=a;break}o>=0?(g=t[o],g.$tag$!==d.$tag$?$=St(t&&t[s],n,o,e):(B(g,d),t[o]=void 0,$=g.$elm$),d=i[++s]):($=St(t&&t[s],n,s,e),d=i[++s]),$&&Nn(c.$elm$).insertBefore($,ce(c.$elm$))}r>l?jn(e,i[h+1]==null?null:i[h+1].$elm$,n,i,s,h):s>h&&Hn(t,r,l)},dt=(e,t)=>e.$tag$===t.$tag$?e.$tag$==="slot"?e.$name$===t.$name$:e.$key$===t.$key$:!1,ce=e=>e&&e["s-ol"]||e,Nn=e=>(e["s-ol"]?e["s-ol"]:e).parentNode,B=(e,t)=>{const n=t.$elm$=e.$elm$,i=e.$children$,r=t.$children$,s=t.$tag$,o=t.$text$;let a;o===null?(b=s==="svg"?!0:s==="foreignObject"?!1:b,s==="slot"||Mn(e,t,b),i!==null&&r!==null?Zr(n,i,t,r):r!==null?(e.$text$!==null&&(n.textContent=""),jn(n,null,t,r,0,r.length-1)):i!==null&&Hn(i,0,i.length-1),b&&s==="svg"&&(b=!1)):(a=n["s-cr"])?a.parentNode.textContent=o:e.$text$!==o&&(n.data=o)},Dn=e=>{let t=e.childNodes,n,i,r,s,o,a;for(i=0,r=t.length;i<r;i++)if(n=t[i],n.nodeType===1){if(n["s-sr"]){for(o=n["s-sn"],n.hidden=!1,s=0;s<r;s++)if(a=t[s].nodeType,t[s]["s-hn"]!==n["s-hn"]||o!==""){if(a===1&&o===t[s].getAttribute("slot")){n.hidden=!0;break}}else if(a===1||a===3&&t[s].textContent.trim()!==""){n.hidden=!0;break}}Dn(n)}},x=[],Bn=e=>{let t,n,i,r,s,o,a=0,l=e.childNodes,c=l.length;for(;a<c;a++){if(t=l[a],t["s-sr"]&&(n=t["s-cr"])&&n.parentNode)for(i=n.parentNode.childNodes,r=t["s-sn"],o=i.length-1;o>=0;o--)n=i[o],!n["s-cn"]&&!n["s-nr"]&&n["s-hn"]!==t["s-hn"]&&(De(n,r)?(s=x.find(u=>u.$nodeToRelocate$===n),_t=!0,n["s-sn"]=n["s-sn"]||r,s?s.$slotRefNode$=t:x.push({$slotRefNode$:t,$nodeToRelocate$:n}),n["s-sr"]&&x.map(u=>{De(u.$nodeToRelocate$,n["s-sn"])&&(s=x.find(h=>h.$nodeToRelocate$===n),s&&!u.$slotRefNode$&&(u.$slotRefNode$=s.$slotRefNode$))})):x.some(u=>u.$nodeToRelocate$===n)||x.push({$nodeToRelocate$:n}));t.nodeType===1&&Bn(t)}},De=(e,t)=>e.nodeType===1?e.getAttribute("slot")===null&&t===""||e.getAttribute("slot")===t:e["s-sn"]===t?!0:t==="",zn=e=>{e.$attrs$&&e.$attrs$.ref&&e.$attrs$.ref(null),e.$children$&&e.$children$.map(zn)},Kr=(e,t)=>{const n=e.$hostElement$,i=e.$cmpMeta$,r=e.$vnode$||wt(null,null),s=Wr(t)?t:F(null,null,t);Ot=n.tagName,i.$attrsToReflect$&&(s.$attrs$=s.$attrs$||{},i.$attrsToReflect$.map(([o,a])=>s.$attrs$[a]=n[o])),s.$tag$=null,s.$flags$|=4,e.$vnode$=s,s.$elm$=r.$elm$=n.shadowRoot||n,D=n["s-sc"],Pn=n["s-cr"],In=(i.$flags$&1)!==0,_t=!1,B(r,s);{if(y.$flags$|=1,oe){Bn(s.$elm$);let o,a,l,c,u,h,d=0;for(;d<x.length;d++)o=x[d],a=o.$nodeToRelocate$,a["s-ol"]||(l=C.createTextNode(""),l["s-nr"]=a,a.parentNode.insertBefore(a["s-ol"]=l,a));for(d=0;d<x.length;d++)if(o=x[d],a=o.$nodeToRelocate$,o.$slotRefNode$){for(c=o.$slotRefNode$.parentNode,u=o.$slotRefNode$.nextSibling,l=a["s-ol"];l=l.previousSibling;)if(h=l["s-nr"],h&&h["s-sn"]===a["s-sn"]&&c===h.parentNode&&(h=h.nextSibling,!h||!h["s-nr"])){u=h;break}(!u&&c!==a.parentNode||a.nextSibling!==u)&&a!==u&&(!a["s-hn"]&&a["s-ol"]&&(a["s-hn"]=a["s-ol"].parentNode.nodeName),c.insertBefore(a,u))}else a.nodeType===1&&(a.hidden=!0)}_t&&Dn(s.$elm$),y.$flags$&=-2,x.length=0}},Qr=e=>e,Xr=(e,t,n)=>{const i=Qr(e);return{emit:r=>Jr(i,t,{bubbles:!!(n&4),composed:!!(n&2),cancelable:!!(n&1),detail:r})}},Jr=(e,t,n)=>{const i=y.ce(t,n);return e.dispatchEvent(i),i},Vr=(e,t)=>{},Fn=(e,t)=>(e.$flags$|=16,Vr(e,e.$ancestorComponent$),vs(()=>ts(e,t))),ts=(e,t)=>{const n=e.$hostElement$,i=R("scheduleUpdate",e.$cmpMeta$.$tagName$),r=n;let s;return t?s=W(r,"componentWillLoad"):s=W(r,"componentWillUpdate"),s=Be(s,()=>W(r,"componentWillRender")),i(),Be(s,()=>es(e,r,t))},es=async(e,t,n)=>{const i=e.$hostElement$,r=R("update",e.$cmpMeta$.$tagName$);i["s-rc"],n&&Nr(e);const s=R("render",e.$cmpMeta$.$tagName$);ns(e,t,i),s(),r(),is(e)},ns=(e,t,n)=>{try{Le=t,t=t.render&&t.render(),e.$flags$&=-17,e.$flags$|=2,(N.hasRenderFn||N.reflect)&&(N.vdomRender||N.reflect)&&(N.hydrateServerSide||Kr(e,t))}catch(a){at(a,e.$hostElement$)}return Le=null,null},is=e=>{const t=e.$cmpMeta$.$tagName$,n=e.$hostElement$,i=R("postUpdate",t),r=n;e.$ancestorComponent$,W(r,"componentDidRender"),e.$flags$&64?(W(r,"componentDidUpdate"),i()):(e.$flags$|=64,W(r,"componentDidLoad"),i())},W=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(i){at(i)}},Be=(e,t)=>e&&e.then?e.then(t):t(),rs=(e,t)=>e!=null&&!ae(e)?t&4?e==="false"?!1:e===""||!!e:t&2?parseFloat(e):t&1?String(e):e:e,ss=(e,t)=>Pt(e).$instanceValues$.get(t),os=(e,t,n,i)=>{const r=Pt(e),s=e,o=r.$instanceValues$.get(t),a=r.$flags$,l=s;n=rs(n,i.$members$[t][0]);const c=Number.isNaN(o)&&Number.isNaN(n);if(n!==o&&!c){r.$instanceValues$.set(t,n);{if(i.$watchers$&&a&128){const h=i.$watchers$[t];h&&h.map(d=>{try{l[d](n,o,t)}catch(f){at(f,s)}})}if((a&18)===2){if(l.componentShouldUpdate&&l.componentShouldUpdate(n,o,t)===!1)return;Fn(r,!1)}}}},as=(e,t,n)=>{if(t.$members$){e.watchers&&(t.$watchers$=e.watchers);const i=Object.entries(t.$members$),r=e.prototype;i.map(([s,[o]])=>{(o&31||o&32)&&Object.defineProperty(r,s,{get(){return ss(this,s)},set(a){os(this,s,a,t)},configurable:!0,enumerable:!0})});{const s=new Map;r.attributeChangedCallback=function(o,a,l){y.jmp(()=>{const c=s.get(o);if(this.hasOwnProperty(c))l=this[c],delete this[c];else if(r.hasOwnProperty(c)&&typeof this[c]=="number"&&this[c]==l)return;this[c]=l===null&&typeof this[c]=="boolean"?!1:l})},e.observedAttributes=i.filter(([o,a])=>a[0]&15).map(([o,a])=>{const l=a[1]||o;return s.set(l,o),a[0]&512&&t.$attrsToReflect$.push([o,l]),l})}}return e},ls=async(e,t,n,i,r)=>{if(!(t.$flags$&32)&&(r=e.constructor,t.$flags$|=32,customElements.whenDefined(n.$tagName$).then(()=>t.$flags$|=128),r.style)){let o=r.style;typeof o!="string"&&(o=o[t.$modeName$=Dr(e)]);const a=Rn(n,t.$modeName$);if(!xt.has(a)){const l=R("registerStyles",n.$tagName$);jr(a,o,!!(n.$flags$&1)),l()}}t.$ancestorComponent$,(()=>Fn(t,!0))()},cs=e=>{},us=e=>{if(!(y.$flags$&1)){const t=Pt(e),n=t.$cmpMeta$,i=R("connectedCallback",n.$tagName$);t.$flags$&1?(Un(e,t,n.$listeners$),cs(t.$lazyInstance$)):(t.$flags$|=1,n.$flags$&12&&hs(e),n.$members$&&Object.entries(n.$members$).map(([r,[s]])=>{if(s&31&&e.hasOwnProperty(r)){const o=e[r];delete e[r],e[r]=o}}),ls(e,t,n)),i()}},hs=e=>{const t=e["s-cr"]=C.createComment("");t["s-cn"]=!0,e.insertBefore(t,e.firstChild)},ds=e=>{if(!(y.$flags$&1)){const t=Pt(e);t.$rmListeners$&&(t.$rmListeners$.map(n=>n()),t.$rmListeners$=void 0)}},Wn=(e,t)=>{const n={$flags$:t[0],$tagName$:t[1]};n.$members$=t[2],n.$listeners$=t[3],n.$watchers$=e.$watchers$,n.$attrsToReflect$=[];const i=e.prototype.connectedCallback,r=e.prototype.disconnectedCallback;return Object.assign(e.prototype,{__registerHost(){fs(this,n)},connectedCallback(){us(this),i&&i.call(this)},disconnectedCallback(){ds(this),r&&r.call(this)},__attachShadow(){this.attachShadow({mode:"open",delegatesFocus:!!(n.$flags$&16)})}}),e.is=n.$tagName$,as(e,n)},Gn=new WeakMap,Pt=e=>Gn.get(e),fs=(e,t)=>{const n={$flags$:0,$hostElement$:e,$cmpMeta$:t,$instanceValues$:new Map};return Un(e,n,t.$listeners$),Gn.set(e,n)},ze=(e,t)=>t in e,at=(e,t)=>(0,console.error)(e,t),xt=new Map,ps=[],Fe=[],qn=[],gs=(e,t)=>n=>{e.push(n),qt||(qt=!0,t&&y.$flags$&4?$s(Yt):y.raf(Yt))},We=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(n){at(n)}e.length=0},Yt=()=>{We(Fe),We(qn),(qt=Fe.length>0)&&y.raf(Yt)},$s=e=>Ir().then(e),vs=gs(qn,!0),ms=(e={})=>{const{content:t="",title:n,attributes:i=[]}=e;let r="",s=[{name:"xmlns",value:"http://www.w3.org/2000/svg"},{name:"fill",value:"currentColor"},...i];return n&&(r=`<title>${n}</title>`),`<svg ${s.map(a=>`${a.name}="${a.value}"`).join(" ")}>${r}${t}</svg>`},ys=e=>e.replace(/<(\/?)svg([^>]*)>/g,"").trim();function bs(e){return`${e.getFullYear()}.${e.getMonth()+1}`}class _s{constructor(t){this.voca_component=t,this.voca_added=bs(new Date)}}const ws="telia-vst{display:none}",Ss=Wn(class extends Ln{constructor(){super(),this.__registerHost(),this.vocaInternalUStats=Xr(this,"vocaInternalUStats",7)}connectedCallback(){this.vocaInternalUStats.emit(new _s(this.dataTrackingId))}render(){return F(le,null)}static get style(){return ws}},[0,"telia-vst",{dataTrackingId:[1,"data-tracking-id"]}]);function Yn(){if(typeof customElements>"u")return;["telia-vst"].forEach(t=>{switch(t){case"telia-vst":customElements.get(t)||customElements.define(t,Ss);break}})}Yn();function Zt(){return typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{vocadsIcons:void 0,vocadsIconsRegistered:!1}}function xs(){if(typeof Zt().vocadsIcons!==void 0)return Zt().vocadsIcons}function As(){return Zt().vocadsIconsRegistered}const Cs=".telia-icon{display:inline-block}.telia-icon__container{display:block;height:inherit}.telia-icon svg{display:block}.telia-icon--sm{height:calc(1.6rem * var(--voca-rem-multiplier));min-width:calc(1.6rem * var(--voca-rem-multiplier));width:calc(1.6rem * var(--voca-rem-multiplier))}.telia-icon--md{height:calc(2.4rem * var(--voca-rem-multiplier));min-width:calc(2.4rem * var(--voca-rem-multiplier));width:calc(2.4rem * var(--voca-rem-multiplier))}.telia-icon--lg{height:calc(3.2rem * var(--voca-rem-multiplier));min-width:calc(3.2rem * var(--voca-rem-multiplier));width:calc(3.2rem * var(--voca-rem-multiplier))}",Es=Wn(class extends Ln{constructor(){super(),this.__registerHost(),this.size="md",this.allyTitle=null,this.dataTrackingId="telia-icon"}getSvgString(){if(this.svg)return this.svg;if(As()&&this.name){const e=xs();return e[this.name]?e[this.name].svg:""}return this.name&&console.warn(this.name,"Icons bundle is not registered and will not be rendered. Check if you have registered icons bundle or use svg property"),""}render(){let e=this.getSvgString(),t=[{name:"viewBox",value:"0 0 64 64"}];this.allyTitle?t=[...t,{name:"role",value:"img"}]:t=[...t,{name:"aria-hidden",value:"true"}];const n=ms({content:ys(e),attributes:t,title:this.allyTitle});return F(le,{class:`telia-icon telia-icon--${this.size}`},F("span",{"aria-label":this.allyTitle,class:"telia-icon__container",innerHTML:n}),F("telia-vst",{dataTrackingId:this.dataTrackingId}))}static get style(){return Cs}},[0,"telia-icon",{name:[1],svg:[1],size:[1],allyTitle:[1,"ally-title"],dataTestid:[1,"data-testid"]}]);function ks(){if(typeof customElements>"u")return;["telia-icon","telia-vst"].forEach(t=>{switch(t){case"telia-icon":customElements.get(t)||customElements.define(t,Es);break;case"telia-vst":customElements.get(t)||Yn();break}})}ks();var Os=Object.defineProperty,Ts=Object.getOwnPropertyDescriptor,Ps=(e,t,n,i)=>{for(var r=i>1?void 0:i?Ts(t,n):t,s=e.length-1,o;s>=0;s--)(o=e[s])&&(r=(i?o(t,n,r):o(r))||r);return i&&r&&Os(t,n,r),r};const Zn=On(A);class It extends Zn{constructor(){super(...arguments),this.optionsIsVisible=!1,this.options=new Tr(this)}addOption(t){return this.options.addOption(t)}_onToggleOptionsMenuClick(){this.optionsIsVisible=!this.optionsIsVisible}_onMinimizeClick(){this.application.trigger&&this.application.trigger.toggleActive()}render(){var s;const t=this.application.branding(),n=(s=t==null?void 0:t.graphics)==null?void 0:s.logotype,i=this.application.texts,r=i.get("widget-header.header","ACE Widget");return w` <div class="widget-header">
340
+ `];ae([_({attribute:!0})],ot.prototype,"name",2);ae([Z()],ot.prototype,"widget",2);ae([Z()],ot.prototype,"status",2);customElements.get("ace-trigger-slot")||customElements.define("ace-trigger-slot",ne);customElements.get("ace-trigger")||customElements.define("ace-trigger",j);customElements.get("ace-unresolved-component")||customElements.define("ace-unresolved-component",Tn);customElements.get("ace-wrapper")||customElements.define("ace-wrapper",oe);customElements.get("ace-widget")||customElements.define("ace-widget",ot);let ht;const xr=new Uint8Array(16);function Ar(){if(!ht&&(ht=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!ht))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return ht(xr)}const m=[];for(let e=0;e<256;++e)m.push((e+256).toString(16).slice(1));function Cr(e,t=0){return m[e[t+0]]+m[e[t+1]]+m[e[t+2]]+m[e[t+3]]+"-"+m[e[t+4]]+m[e[t+5]]+"-"+m[e[t+6]]+m[e[t+7]]+"-"+m[e[t+8]]+m[e[t+9]]+"-"+m[e[t+10]]+m[e[t+11]]+m[e[t+12]]+m[e[t+13]]+m[e[t+14]]+m[e[t+15]]}const Er=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),Ue={randomUUID:Er};function kr(e,t,n){if(Ue.randomUUID&&!t&&!e)return Ue.randomUUID();e=e||{};const i=e.random||(e.rng||Ar)();if(i[6]=i[6]&15|64,i[8]=i[8]&63|128,t){n=n||0;for(let r=0;r<16;++r)t[n+r]=i[r];return t}return Cr(i)}class Or{constructor(t,n,i,r,s){this.label=t,this.icon=n,this.onClick=i,this.closeOnClick=r,this.update=new en,this.id=kr(),this._controller=s}updateLabel(t){this.label=t,this.update.next()}updateIcon(t){this.icon=t,this.update.next()}remove(){this._controller.removeOption(this)}subscribe(){return this.update.asObservable()}}class Tr{constructor(t){this._options=[],this._subscription=null,this._host=t,t.addController(this)}hostConnected(){}hostDisconnected(){this._subscription&&this._subscription.unsubscribe(),this._options=[]}addOption(t){const n=new Or(t.label,t.icon,t.onClick,t.closeOnClick,this);return this._options.push(n),this.handleUpdate(),n}removeOption(t){this._options=this._options.filter(n=>n.id!==t.id)}handleUpdate(){this._subscription&&this._subscription.unsubscribe();const t=this._options.map(n=>n.subscribe());this._subscription=Oi(t).subscribe(()=>{this._host.requestUpdate()})}set options(t){this._options=t,this._host.requestUpdate()}get options(){return this._options}hasOptions(){return this._options.length>0}}const N={allRenderFn:!1,cmpDidLoad:!0,cmpDidUnload:!1,cmpDidUpdate:!0,cmpDidRender:!0,cmpWillLoad:!0,cmpWillUpdate:!0,cmpWillRender:!0,connectedCallback:!0,disconnectedCallback:!0,element:!0,event:!0,hasRenderFn:!0,lifecycle:!0,hostListener:!0,hostListenerTargetWindow:!0,hostListenerTargetDocument:!0,hostListenerTargetBody:!0,hostListenerTargetParent:!1,hostListenerTarget:!0,member:!0,method:!0,mode:!0,observeAttribute:!0,prop:!0,propMutable:!0,reflect:!0,scoped:!0,shadowDom:!0,slot:!0,cssAnnotations:!0,state:!0,style:!0,svg:!0,updatable:!0,vdomAttribute:!0,vdomXlink:!0,vdomClass:!0,vdomFunctional:!0,vdomKey:!0,vdomListener:!0,vdomRef:!0,vdomPropOrAttr:!0,vdomRender:!0,vdomStyle:!0,vdomText:!0,watchCallback:!0,taskQueue:!0,hotModuleReplacement:!1,isDebug:!1,isDev:!1,isTesting:!1,hydrateServerSide:!1,hydrateClientSide:!1,lifecycleDOMEvents:!1,lazyLoad:!1,profile:!1,slotRelocation:!0,appendChildSlotFix:!1,cloneNodeFix:!1,hydratedAttribute:!1,hydratedClass:!0,safari10:!1,scriptDataOpts:!1,scopedSlotTextContentFix:!1,shadowDomShim:!1,slotChildNodesFix:!1,invisiblePrehydration:!0,propBoolean:!0,propNumber:!0,propString:!0,cssVarShim:!1,constructableCSS:!0,cmpShouldUpdate:!0,devTools:!1,dynamicImportShim:!1,shadowDelegatesFocus:!0,initializeNextTick:!1,asyncLoading:!1,asyncQueue:!1,transformTagName:!1,attachStyles:!0};let D,Pn,Pt,Ln=!1,St=!1,le=!1,b=!1,Re=null,Zt=!1;const Lt=typeof window<"u"?window:{},C=Lt.document||{head:{}},In=Lt.HTMLElement||class{},y={$flags$:0,$resourcesUrl$:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,i)=>e.addEventListener(t,n,i),rel:(e,t,n,i)=>e.removeEventListener(t,n,i),ce:(e,t)=>new CustomEvent(e,t)},Pr=(()=>{let e=!1;try{C.addEventListener("e",null,Object.defineProperty({},"passive",{get(){e=!0}}))}catch{}return e})(),Lr=e=>Promise.resolve(e),Ir=(()=>{try{return new CSSStyleSheet,typeof new CSSStyleSheet().replace=="function"}catch{}return!1})(),Un=(e,t,n,i)=>{n&&n.map(([r,s,o])=>{const a=Rr(e,r),l=Ur(t,o),c=Mr(r);y.ael(a,s,l,c),(t.$rmListeners$=t.$rmListeners$||[]).push(()=>y.rel(a,s,l,c))})},Ur=(e,t)=>n=>{try{N.lazyLoad||e.$hostElement$[t](n)}catch(i){at(i)}},Rr=(e,t)=>t&4?C:t&8?Lt:t&16?C.body:e,Mr=e=>Pr?{passive:(e&1)!==0,capture:(e&2)!==0}:(e&2)!==0,Me="http://www.w3.org/1999/xlink",R=(e,t="")=>()=>{},je=new WeakMap,jr=(e,t,n)=>{let i=Ct.get(e);Ir&&n?(i=i||new CSSStyleSheet,i.replace(t)):i=t,Ct.set(e,i)},Hr=(e,t,n,i)=>{let r=Rn(t,n),s=Ct.get(r);if(e=e.nodeType===11?e:C,s)if(typeof s=="string"){e=e.head||e;let o=je.get(e),a;o||je.set(e,o=new Set),o.has(r)||(a=C.createElement("style"),a.innerHTML=s,e.insertBefore(a,e.querySelector("link")),o&&o.add(r))}else e.adoptedStyleSheets.includes(s)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,s]);return r},Nr=e=>{const t=e.$cmpMeta$,n=e.$hostElement$,i=t.$flags$,r=R("attachStyles",t.$tagName$),s=Hr(n.shadowRoot?n.shadowRoot:n.getRootNode(),t,e.$modeName$);i&10&&(n["s-sc"]=s,n.classList.add(s+"-h"),i&2&&n.classList.add(s+"-s")),r()},Rn=(e,t)=>"sc-"+(t&&e.$flags$&32?e.$tagName$+"-"+t:e.$tagName$),Dr=e=>ps.map(t=>t(e)).find(t=>!!t),He={},Br="http://www.w3.org/2000/svg",zr="http://www.w3.org/1999/xhtml",Fr=e=>e!=null,ce=e=>(e=typeof e,e==="object"||e==="function"),F=(e,t,...n)=>{let i=null,r=null,s=null,o=!1,a=!1,l=[];const c=h=>{for(let d=0;d<h.length;d++)i=h[d],Array.isArray(i)?c(i):i!=null&&typeof i!="boolean"&&((o=typeof e!="function"&&!ce(i))&&(i=String(i)),o&&a?l[l.length-1].$text$+=i:l.push(o?xt(null,i):i),a=o)};if(c(n),t){t.key&&(r=t.key),t.name&&(s=t.name);{const h=t.className||t.class;h&&(t.class=typeof h!="object"?h:Object.keys(h).filter(d=>h[d]).join(" "))}}if(typeof e=="function")return e(t===null?{}:t,l,Gr);const u=xt(e,null);return u.$attrs$=t,l.length>0&&(u.$children$=l),u.$key$=r,u.$name$=s,u},xt=(e,t)=>{const n={$flags$:0,$tag$:e,$text$:t,$elm$:null,$children$:null};return n.$attrs$=null,n.$key$=null,n.$name$=null,n},ue={},Wr=e=>e&&e.$tag$===ue,Gr={forEach:(e,t)=>e.map(Ne).forEach(t),map:(e,t)=>e.map(Ne).map(t).map(qr)},Ne=e=>({vattrs:e.$attrs$,vchildren:e.$children$,vkey:e.$key$,vname:e.$name$,vtag:e.$tag$,vtext:e.$text$}),qr=e=>{if(typeof e.vtag=="function"){const n=Object.assign({},e.vattrs);return e.vkey&&(n.key=e.vkey),e.vname&&(n.name=e.vname),F(e.vtag,n,...e.vchildren||[])}const t=xt(e.vtag,e.vtext);return t.$attrs$=e.vattrs,t.$children$=e.vchildren,t.$key$=e.vkey,t.$name$=e.vname,t},De=(e,t,n,i,r,s)=>{if(n!==i){let o=We(e,t),a=t.toLowerCase();if(t==="class"){const l=e.classList,c=Be(n),u=Be(i);l.remove(...c.filter(h=>h&&!u.includes(h))),l.add(...u.filter(h=>h&&!c.includes(h)))}else if(t==="style"){for(const l in n)(!i||i[l]==null)&&(l.includes("-")?e.style.removeProperty(l):e.style[l]="");for(const l in i)(!n||i[l]!==n[l])&&(l.includes("-")?e.style.setProperty(l,i[l]):e.style[l]=i[l])}else if(t!=="key")if(t==="ref")i&&i(e);else if(!e.__lookupSetter__(t)&&t[0]==="o"&&t[1]==="n")t[2]==="-"?t=t.slice(3):We(Lt,a)?t=a.slice(2):t=a[2]+t.slice(3),n&&y.rel(e,t,n,!1),i&&y.ael(e,t,i,!1);else{const l=ce(i);if((o||l&&i!==null)&&!r)try{if(e.tagName.includes("-"))e[t]=i;else{let u=i??"";t==="list"?o=!1:(n==null||e[t]!=u)&&(e[t]=u)}}catch{}let c=!1;a!==(a=a.replace(/^xlink\:?/,""))&&(t=a,c=!0),i==null||i===!1?(i!==!1||e.getAttribute(t)==="")&&(c?e.removeAttributeNS(Me,t):e.removeAttribute(t)):(!o||s&4||r)&&!l&&(i=i===!0?"":i,c?e.setAttributeNS(Me,t,i):e.setAttribute(t,i))}}},Yr=/\s/,Be=e=>e?e.split(Yr):[],Mn=(e,t,n,i)=>{const r=t.$elm$.nodeType===11&&t.$elm$.host?t.$elm$.host:t.$elm$,s=e&&e.$attrs$||He,o=t.$attrs$||He;for(i in s)i in o||De(r,i,s[i],void 0,n,t.$flags$);for(i in o)De(r,i,s[i],o[i],n,t.$flags$)},At=(e,t,n,i)=>{let r=t.$children$[n],s=0,o,a,l;if(Ln||(le=!0,r.$tag$==="slot"&&(D&&i.classList.add(D+"-s"),r.$flags$|=r.$children$?2:1)),r.$text$!==null)o=r.$elm$=C.createTextNode(r.$text$);else if(r.$flags$&1)o=r.$elm$=C.createTextNode("");else{if(b||(b=r.$tag$==="svg"),o=r.$elm$=C.createElementNS(b?Br:zr,r.$flags$&2?"slot-fb":r.$tag$),b&&r.$tag$==="foreignObject"&&(b=!1),Mn(null,r,b),Fr(D)&&o["s-si"]!==D&&o.classList.add(o["s-si"]=D),r.$children$)for(s=0;s<r.$children$.length;++s)a=At(e,r,s,o),a&&o.appendChild(a);r.$tag$==="svg"?b=!1:o.tagName==="foreignObject"&&(b=!0)}return o["s-hn"]=Pt,r.$flags$&3&&(o["s-sr"]=!0,o["s-cr"]=Pn,o["s-sn"]=r.$name$||"",l=e&&e.$children$&&e.$children$[n],l&&l.$tag$===r.$tag$&&e.$elm$&&it(e.$elm$,!1)),o},it=(e,t)=>{y.$flags$|=1;const n=e.childNodes;for(let i=n.length-1;i>=0;i--){const r=n[i];r["s-hn"]!==Pt&&r["s-ol"]&&(Nn(r).insertBefore(r,he(r)),r["s-ol"].remove(),r["s-ol"]=void 0,le=!0),t&&it(r,t)}y.$flags$&=-2},jn=(e,t,n,i,r,s)=>{let o=e["s-cr"]&&e["s-cr"].parentNode||e,a;for(o.shadowRoot&&o.tagName===Pt&&(o=o.shadowRoot);r<=s;++r)i[r]&&(a=At(null,n,r,e),a&&(i[r].$elm$=a,o.insertBefore(a,he(t))))},Hn=(e,t,n,i,r)=>{for(;t<=n;++t)(i=e[t])&&(r=i.$elm$,zn(i),St=!0,r["s-ol"]?r["s-ol"].remove():it(r,!0),r.remove())},Zr=(e,t,n,i)=>{let r=0,s=0,o=0,a=0,l=t.length-1,c=t[0],u=t[l],h=i.length-1,d=i[0],f=i[h],$,g;for(;r<=l&&s<=h;)if(c==null)c=t[++r];else if(u==null)u=t[--l];else if(d==null)d=i[++s];else if(f==null)f=i[--h];else if(dt(c,d))B(c,d),c=t[++r],d=i[++s];else if(dt(u,f))B(u,f),u=t[--l],f=i[--h];else if(dt(c,f))(c.$tag$==="slot"||f.$tag$==="slot")&&it(c.$elm$.parentNode,!1),B(c,f),e.insertBefore(c.$elm$,u.$elm$.nextSibling),c=t[++r],f=i[--h];else if(dt(u,d))(c.$tag$==="slot"||f.$tag$==="slot")&&it(u.$elm$.parentNode,!1),B(u,d),e.insertBefore(u.$elm$,c.$elm$),u=t[--l],d=i[++s];else{for(o=-1,a=r;a<=l;++a)if(t[a]&&t[a].$key$!==null&&t[a].$key$===d.$key$){o=a;break}o>=0?(g=t[o],g.$tag$!==d.$tag$?$=At(t&&t[s],n,o,e):(B(g,d),t[o]=void 0,$=g.$elm$),d=i[++s]):($=At(t&&t[s],n,s,e),d=i[++s]),$&&Nn(c.$elm$).insertBefore($,he(c.$elm$))}r>l?jn(e,i[h+1]==null?null:i[h+1].$elm$,n,i,s,h):s>h&&Hn(t,r,l)},dt=(e,t)=>e.$tag$===t.$tag$?e.$tag$==="slot"?e.$name$===t.$name$:e.$key$===t.$key$:!1,he=e=>e&&e["s-ol"]||e,Nn=e=>(e["s-ol"]?e["s-ol"]:e).parentNode,B=(e,t)=>{const n=t.$elm$=e.$elm$,i=e.$children$,r=t.$children$,s=t.$tag$,o=t.$text$;let a;o===null?(b=s==="svg"?!0:s==="foreignObject"?!1:b,s==="slot"||Mn(e,t,b),i!==null&&r!==null?Zr(n,i,t,r):r!==null?(e.$text$!==null&&(n.textContent=""),jn(n,null,t,r,0,r.length-1)):i!==null&&Hn(i,0,i.length-1),b&&s==="svg"&&(b=!1)):(a=n["s-cr"])?a.parentNode.textContent=o:e.$text$!==o&&(n.data=o)},Dn=e=>{let t=e.childNodes,n,i,r,s,o,a;for(i=0,r=t.length;i<r;i++)if(n=t[i],n.nodeType===1){if(n["s-sr"]){for(o=n["s-sn"],n.hidden=!1,s=0;s<r;s++)if(a=t[s].nodeType,t[s]["s-hn"]!==n["s-hn"]||o!==""){if(a===1&&o===t[s].getAttribute("slot")){n.hidden=!0;break}}else if(a===1||a===3&&t[s].textContent.trim()!==""){n.hidden=!0;break}}Dn(n)}},x=[],Bn=e=>{let t,n,i,r,s,o,a=0,l=e.childNodes,c=l.length;for(;a<c;a++){if(t=l[a],t["s-sr"]&&(n=t["s-cr"])&&n.parentNode)for(i=n.parentNode.childNodes,r=t["s-sn"],o=i.length-1;o>=0;o--)n=i[o],!n["s-cn"]&&!n["s-nr"]&&n["s-hn"]!==t["s-hn"]&&(ze(n,r)?(s=x.find(u=>u.$nodeToRelocate$===n),St=!0,n["s-sn"]=n["s-sn"]||r,s?s.$slotRefNode$=t:x.push({$slotRefNode$:t,$nodeToRelocate$:n}),n["s-sr"]&&x.map(u=>{ze(u.$nodeToRelocate$,n["s-sn"])&&(s=x.find(h=>h.$nodeToRelocate$===n),s&&!u.$slotRefNode$&&(u.$slotRefNode$=s.$slotRefNode$))})):x.some(u=>u.$nodeToRelocate$===n)||x.push({$nodeToRelocate$:n}));t.nodeType===1&&Bn(t)}},ze=(e,t)=>e.nodeType===1?e.getAttribute("slot")===null&&t===""||e.getAttribute("slot")===t:e["s-sn"]===t?!0:t==="",zn=e=>{e.$attrs$&&e.$attrs$.ref&&e.$attrs$.ref(null),e.$children$&&e.$children$.map(zn)},Kr=(e,t)=>{const n=e.$hostElement$,i=e.$cmpMeta$,r=e.$vnode$||xt(null,null),s=Wr(t)?t:F(null,null,t);Pt=n.tagName,i.$attrsToReflect$&&(s.$attrs$=s.$attrs$||{},i.$attrsToReflect$.map(([o,a])=>s.$attrs$[a]=n[o])),s.$tag$=null,s.$flags$|=4,e.$vnode$=s,s.$elm$=r.$elm$=n.shadowRoot||n,D=n["s-sc"],Pn=n["s-cr"],Ln=(i.$flags$&1)!==0,St=!1,B(r,s);{if(y.$flags$|=1,le){Bn(s.$elm$);let o,a,l,c,u,h,d=0;for(;d<x.length;d++)o=x[d],a=o.$nodeToRelocate$,a["s-ol"]||(l=C.createTextNode(""),l["s-nr"]=a,a.parentNode.insertBefore(a["s-ol"]=l,a));for(d=0;d<x.length;d++)if(o=x[d],a=o.$nodeToRelocate$,o.$slotRefNode$){for(c=o.$slotRefNode$.parentNode,u=o.$slotRefNode$.nextSibling,l=a["s-ol"];l=l.previousSibling;)if(h=l["s-nr"],h&&h["s-sn"]===a["s-sn"]&&c===h.parentNode&&(h=h.nextSibling,!h||!h["s-nr"])){u=h;break}(!u&&c!==a.parentNode||a.nextSibling!==u)&&a!==u&&(!a["s-hn"]&&a["s-ol"]&&(a["s-hn"]=a["s-ol"].parentNode.nodeName),c.insertBefore(a,u))}else a.nodeType===1&&(a.hidden=!0)}St&&Dn(s.$elm$),y.$flags$&=-2,x.length=0}},Qr=e=>e,Xr=(e,t,n)=>{const i=Qr(e);return{emit:r=>Jr(i,t,{bubbles:!!(n&4),composed:!!(n&2),cancelable:!!(n&1),detail:r})}},Jr=(e,t,n)=>{const i=y.ce(t,n);return e.dispatchEvent(i),i},Vr=(e,t)=>{},Fn=(e,t)=>(e.$flags$|=16,Vr(e,e.$ancestorComponent$),vs(()=>ts(e,t))),ts=(e,t)=>{const n=e.$hostElement$,i=R("scheduleUpdate",e.$cmpMeta$.$tagName$),r=n;let s;return t?s=W(r,"componentWillLoad"):s=W(r,"componentWillUpdate"),s=Fe(s,()=>W(r,"componentWillRender")),i(),Fe(s,()=>es(e,r,t))},es=async(e,t,n)=>{const i=e.$hostElement$,r=R("update",e.$cmpMeta$.$tagName$);i["s-rc"],n&&Nr(e);const s=R("render",e.$cmpMeta$.$tagName$);ns(e,t,i),s(),r(),is(e)},ns=(e,t,n)=>{try{Re=t,t=t.render&&t.render(),e.$flags$&=-17,e.$flags$|=2,(N.hasRenderFn||N.reflect)&&(N.vdomRender||N.reflect)&&(N.hydrateServerSide||Kr(e,t))}catch(a){at(a,e.$hostElement$)}return Re=null,null},is=e=>{const t=e.$cmpMeta$.$tagName$,n=e.$hostElement$,i=R("postUpdate",t),r=n;e.$ancestorComponent$,W(r,"componentDidRender"),e.$flags$&64?(W(r,"componentDidUpdate"),i()):(e.$flags$|=64,W(r,"componentDidLoad"),i())},W=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(i){at(i)}},Fe=(e,t)=>e&&e.then?e.then(t):t(),rs=(e,t)=>e!=null&&!ce(e)?t&4?e==="false"?!1:e===""||!!e:t&2?parseFloat(e):t&1?String(e):e:e,ss=(e,t)=>It(e).$instanceValues$.get(t),os=(e,t,n,i)=>{const r=It(e),s=e,o=r.$instanceValues$.get(t),a=r.$flags$,l=s;n=rs(n,i.$members$[t][0]);const c=Number.isNaN(o)&&Number.isNaN(n);if(n!==o&&!c){r.$instanceValues$.set(t,n);{if(i.$watchers$&&a&128){const h=i.$watchers$[t];h&&h.map(d=>{try{l[d](n,o,t)}catch(f){at(f,s)}})}if((a&18)===2){if(l.componentShouldUpdate&&l.componentShouldUpdate(n,o,t)===!1)return;Fn(r,!1)}}}},as=(e,t,n)=>{if(t.$members$){e.watchers&&(t.$watchers$=e.watchers);const i=Object.entries(t.$members$),r=e.prototype;i.map(([s,[o]])=>{(o&31||o&32)&&Object.defineProperty(r,s,{get(){return ss(this,s)},set(a){os(this,s,a,t)},configurable:!0,enumerable:!0})});{const s=new Map;r.attributeChangedCallback=function(o,a,l){y.jmp(()=>{const c=s.get(o);if(this.hasOwnProperty(c))l=this[c],delete this[c];else if(r.hasOwnProperty(c)&&typeof this[c]=="number"&&this[c]==l)return;this[c]=l===null&&typeof this[c]=="boolean"?!1:l})},e.observedAttributes=i.filter(([o,a])=>a[0]&15).map(([o,a])=>{const l=a[1]||o;return s.set(l,o),a[0]&512&&t.$attrsToReflect$.push([o,l]),l})}}return e},ls=async(e,t,n,i,r)=>{if(!(t.$flags$&32)&&(r=e.constructor,t.$flags$|=32,customElements.whenDefined(n.$tagName$).then(()=>t.$flags$|=128),r.style)){let o=r.style;typeof o!="string"&&(o=o[t.$modeName$=Dr(e)]);const a=Rn(n,t.$modeName$);if(!Ct.has(a)){const l=R("registerStyles",n.$tagName$);jr(a,o,!!(n.$flags$&1)),l()}}t.$ancestorComponent$,(()=>Fn(t,!0))()},cs=e=>{},us=e=>{if(!(y.$flags$&1)){const t=It(e),n=t.$cmpMeta$,i=R("connectedCallback",n.$tagName$);t.$flags$&1?(Un(e,t,n.$listeners$),cs(t.$lazyInstance$)):(t.$flags$|=1,n.$flags$&12&&hs(e),n.$members$&&Object.entries(n.$members$).map(([r,[s]])=>{if(s&31&&e.hasOwnProperty(r)){const o=e[r];delete e[r],e[r]=o}}),ls(e,t,n)),i()}},hs=e=>{const t=e["s-cr"]=C.createComment("");t["s-cn"]=!0,e.insertBefore(t,e.firstChild)},ds=e=>{if(!(y.$flags$&1)){const t=It(e);t.$rmListeners$&&(t.$rmListeners$.map(n=>n()),t.$rmListeners$=void 0)}},Wn=(e,t)=>{const n={$flags$:t[0],$tagName$:t[1]};n.$members$=t[2],n.$listeners$=t[3],n.$watchers$=e.$watchers$,n.$attrsToReflect$=[];const i=e.prototype.connectedCallback,r=e.prototype.disconnectedCallback;return Object.assign(e.prototype,{__registerHost(){fs(this,n)},connectedCallback(){us(this),i&&i.call(this)},disconnectedCallback(){ds(this),r&&r.call(this)},__attachShadow(){this.attachShadow({mode:"open",delegatesFocus:!!(n.$flags$&16)})}}),e.is=n.$tagName$,as(e,n)},Gn=new WeakMap,It=e=>Gn.get(e),fs=(e,t)=>{const n={$flags$:0,$hostElement$:e,$cmpMeta$:t,$instanceValues$:new Map};return Un(e,n,t.$listeners$),Gn.set(e,n)},We=(e,t)=>t in e,at=(e,t)=>(0,console.error)(e,t),Ct=new Map,ps=[],Ge=[],qn=[],gs=(e,t)=>n=>{e.push(n),Zt||(Zt=!0,t&&y.$flags$&4?$s(Kt):y.raf(Kt))},qe=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(n){at(n)}e.length=0},Kt=()=>{qe(Ge),qe(qn),(Zt=Ge.length>0)&&y.raf(Kt)},$s=e=>Lr().then(e),vs=gs(qn,!0),ms=(e={})=>{const{content:t="",title:n,attributes:i=[]}=e;let r="",s=[{name:"xmlns",value:"http://www.w3.org/2000/svg"},{name:"fill",value:"currentColor"},...i];return n&&(r=`<title>${n}</title>`),`<svg ${s.map(a=>`${a.name}="${a.value}"`).join(" ")}>${r}${t}</svg>`},ys=e=>e.replace(/<(\/?)svg([^>]*)>/g,"").trim();function bs(e){return`${e.getFullYear()}.${e.getMonth()+1}`}class _s{constructor(t){this.voca_component=t,this.voca_added=bs(new Date)}}const ws="telia-vst{display:none}",Ss=Wn(class extends In{constructor(){super(),this.__registerHost(),this.vocaInternalUStats=Xr(this,"vocaInternalUStats",7)}connectedCallback(){this.vocaInternalUStats.emit(new _s(this.dataTrackingId))}render(){return F(ue,null)}static get style(){return ws}},[0,"telia-vst",{dataTrackingId:[1,"data-tracking-id"]}]);function Yn(){if(typeof customElements>"u")return;["telia-vst"].forEach(t=>{switch(t){case"telia-vst":customElements.get(t)||customElements.define(t,Ss);break}})}Yn();function Qt(){return typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{vocadsIcons:void 0,vocadsIconsRegistered:!1}}function xs(){if(typeof Qt().vocadsIcons!==void 0)return Qt().vocadsIcons}function As(){return Qt().vocadsIconsRegistered}const Cs=".telia-icon{display:inline-block}.telia-icon__container{display:block;height:inherit}.telia-icon svg{display:block}.telia-icon--sm{height:calc(1.6rem * var(--voca-rem-multiplier));min-width:calc(1.6rem * var(--voca-rem-multiplier));width:calc(1.6rem * var(--voca-rem-multiplier))}.telia-icon--md{height:calc(2.4rem * var(--voca-rem-multiplier));min-width:calc(2.4rem * var(--voca-rem-multiplier));width:calc(2.4rem * var(--voca-rem-multiplier))}.telia-icon--lg{height:calc(3.2rem * var(--voca-rem-multiplier));min-width:calc(3.2rem * var(--voca-rem-multiplier));width:calc(3.2rem * var(--voca-rem-multiplier))}",Es=Wn(class extends In{constructor(){super(),this.__registerHost(),this.size="md",this.allyTitle=null,this.dataTrackingId="telia-icon"}getSvgString(){if(this.svg)return this.svg;if(As()&&this.name){const e=xs();return e[this.name]?e[this.name].svg:""}return this.name&&console.warn(this.name,"Icons bundle is not registered and will not be rendered. Check if you have registered icons bundle or use svg property"),""}render(){let e=this.getSvgString(),t=[{name:"viewBox",value:"0 0 64 64"}];this.allyTitle?t=[...t,{name:"role",value:"img"}]:t=[...t,{name:"aria-hidden",value:"true"}];const n=ms({content:ys(e),attributes:t,title:this.allyTitle});return F(ue,{class:`telia-icon telia-icon--${this.size}`},F("span",{"aria-label":this.allyTitle,class:"telia-icon__container",innerHTML:n}),F("telia-vst",{dataTrackingId:this.dataTrackingId}))}static get style(){return Cs}},[0,"telia-icon",{name:[1],svg:[1],size:[1],allyTitle:[1,"ally-title"],dataTestid:[1,"data-testid"]}]);function ks(){if(typeof customElements>"u")return;["telia-icon","telia-vst"].forEach(t=>{switch(t){case"telia-icon":customElements.get(t)||customElements.define(t,Es);break;case"telia-vst":customElements.get(t)||Yn();break}})}ks();var Os=Object.defineProperty,Ts=Object.getOwnPropertyDescriptor,Ps=(e,t,n,i)=>{for(var r=i>1?void 0:i?Ts(t,n):t,s=e.length-1,o;s>=0;s--)(o=e[s])&&(r=(i?o(t,n,r):o(r))||r);return i&&r&&Os(t,n,r),r};const Zn=On(A);class Ut extends Zn{constructor(){super(...arguments),this.optionsIsVisible=!1,this.options=new Tr(this),this.optionsRef=_t(),this.optionsTriggerRef=_t(),this._onClickOutside=t=>{!this.optionsTriggerRef.value||!this.optionsRef.value||t.composedPath().includes(this.optionsTriggerRef.value)||t.composedPath().includes(this.optionsRef.value)||(this.optionsIsVisible=!1)}}addOption(t){return this.options.addOption(t)}_onToggleOptionsMenuClick(){this.optionsIsVisible=!this.optionsIsVisible}_onMinimizeClick(){this.application.trigger&&this.application.trigger.toggleActive()}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this._onClickOutside)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this._onClickOutside)}render(){var s;const t=this.application.branding(),n=(s=t==null?void 0:t.graphics)==null?void 0:s.logotype,i=this.application.texts,r=i.get("widget-header.header","ACE Widget");return w` <div class="widget-header">
341
341
  ${n?w` <img
342
342
  src=${n}
343
343
  class="logotype"
@@ -353,6 +353,7 @@
353
353
  <button
354
354
  @click=${this._onToggleOptionsMenuClick}
355
355
  class="widget-header__action-button"
356
+ ${wt(this.optionsTriggerRef)}
356
357
  title=${i.getOrFallback("widget-header.ellipses","Options")}
357
358
  >
358
359
  <telia-icon svg=${ur.svg}></telia-icon>
@@ -368,7 +369,8 @@
368
369
 
369
370
  ${this.optionsIsVisible?w` <div
370
371
  class="options-menu"
371
- ${An({keyframeOptions:{},in:ke,out:ke,stabilizeOut:!0,skipInitial:!1})}
372
+ ${wt(this.optionsRef)}
373
+ ${En({keyframeOptions:{},in:Te,out:Te,stabilizeOut:!0,skipInitial:!1})}
372
374
  >
373
375
  ${this.options.options.map(o=>w`<button
374
376
  class="options-menu__item"
@@ -378,7 +380,7 @@
378
380
  ${o.icon?w`<telia-icon svg=${o.icon} size="sm"></telia-icon>`:p}
379
381
  </button>`)}
380
382
  </div>`:p}
381
- </div>`}}It.styles=[Zn.styles||[],M`
383
+ </div>`}}Ut.styles=[Zn.styles||[],M`
382
384
  :host {
383
385
  --header-text-color: var(--text-on-primary-background);
384
386
  }
@@ -470,4 +472,4 @@
470
472
  background-color: var(--secondary-background);
471
473
  color: var(--text-on-secondary-background);
472
474
  }
473
- `];Ps([Z()],It.prototype,"optionsIsVisible",2);exports.WidgetHeader=It;exports.default=It;
475
+ `];Ps([Z()],Ut.prototype,"optionsIsVisible",2);exports.WidgetHeader=Ut;exports.default=Ut;