@everymatrix/general-player-forgot-password-form 1.86.27 → 1.86.28
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/components/{GeneralPlayerForgotPasswordForm-3hSUGacB.cjs → GeneralPlayerForgotPasswordForm-Cg0KsHoj.cjs} +140 -140
- package/components/{GeneralPlayerForgotPasswordForm-BCRv_FLj.js → GeneralPlayerForgotPasswordForm-DGAy1b3U.js} +954 -954
- package/components/{GeneralPlayerForgotPasswordForm-C9eek7fw.js → GeneralPlayerForgotPasswordForm-DKNVb5xy.js} +941 -941
- package/es2015/general-player-forgot-password-form.cjs +1 -1
- package/es2015/general-player-forgot-password-form.js +1 -1
- package/esnext/general-player-forgot-password-form.js +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var
|
|
1
|
+
"use strict";var tl=Object.defineProperty,rl=Object.defineProperties;var il=Object.getOwnPropertyDescriptors;var gs=Object.getOwnPropertySymbols;var sl=Object.prototype.hasOwnProperty,ol=Object.prototype.propertyIsEnumerable;var Rr=(r,t,e)=>t in r?tl(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e,Ge=(r,t)=>{for(var e in t||(t={}))sl.call(t,e)&&Rr(r,e,t[e]);if(gs)for(var e of gs(t))ol.call(t,e)&&Rr(r,e,t[e]);return r},qt=(r,t)=>rl(r,il(t));var z=(r,t,e)=>(Rr(r,typeof t!="symbol"?t+"":t,e),e);var _t=(r,t,e)=>new Promise((i,s)=>{var o=l=>{try{a(e.next(l))}catch(d){s(d)}},n=l=>{try{a(e.throw(l))}catch(d){s(d)}},a=l=>l.done?i(l.value):Promise.resolve(l.value).then(o,n);a((e=e.apply(r,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function Ee(){}function $o(r){return r()}function bs(){return Object.create(null)}function $e(r){r.forEach($o)}function It(r){return typeof r=="function"}function Uo(r,t){return r!=r?t==t:r!==t||r&&typeof r=="object"||typeof r=="function"}function nl(r){return Object.keys(r).length===0}function jo(r,...t){if(r==null){for(const i of t)i(void 0);return Ee}const e=r.subscribe(...t);return e.unsubscribe?()=>e.unsubscribe():e}function al(r,t,e){r.$$.on_destroy.push(jo(t,e))}function p(r,t){r.appendChild(t)}function ll(r,t,e){const i=dl(r);if(!i.getElementById(t)){const s=P("style");s.id=t,s.textContent=e,hl(i,s)}}function dl(r){if(!r)return document;const t=r.getRootNode?r.getRootNode():r.ownerDocument;return t&&t.host?t:r.ownerDocument}function hl(r,t){return p(r.head||r,t),t.sheet}function D(r,t,e){r.insertBefore(t,e||null)}function B(r){r.parentNode&&r.parentNode.removeChild(r)}function ul(r,t){for(let e=0;e<r.length;e+=1)r[e]&&r[e].d(t)}function P(r){return document.createElement(r)}function x(r){return document.createElementNS("http://www.w3.org/2000/svg",r)}function N(r){return document.createTextNode(r)}function V(){return N(" ")}function Go(){return N("")}function ne(r,t,e,i){return r.addEventListener(t,e,i),()=>r.removeEventListener(t,e,i)}function c(r,t,e){e==null?r.removeAttribute(t):r.getAttribute(t)!==e&&r.setAttribute(t,e)}function ee(r,t,e){const i=t.toLowerCase();i in r?r[i]=typeof r[i]=="boolean"&&e===""?!0:e:t in r?r[t]=typeof r[t]=="boolean"&&e===""?!0:e:c(r,t,e)}function cl(r){return Array.from(r.childNodes)}function J(r,t){t=""+t,r.data!==t&&(r.data=t)}function Je(r,t){r.value=t==null?"":t}function fl(r){const t={};return r.childNodes.forEach(e=>{t[e.slot||"default"]=!0}),t}let Ot;function Et(r){Ot=r}function pl(){if(!Ot)throw new Error("Function called outside component initialization");return Ot}function ml(r){pl().$$.on_mount.push(r)}const Ze=[],Ct=[];let Ke=[];const vs=[],_l=Promise.resolve();let li=!1;function gl(){li||(li=!0,_l.then(oe))}function di(r){Ke.push(r)}const Dr=new Set;let We=0;function oe(){if(We!==0)return;const r=Ot;do{try{for(;We<Ze.length;){const t=Ze[We];We++,Et(t),bl(t.$$)}}catch(t){throw Ze.length=0,We=0,t}for(Et(null),Ze.length=0,We=0;Ct.length;)Ct.pop()();for(let t=0;t<Ke.length;t+=1){const e=Ke[t];Dr.has(e)||(Dr.add(e),e())}Ke.length=0}while(Ze.length);for(;vs.length;)vs.pop()();li=!1,Dr.clear(),Et(r)}function bl(r){if(r.fragment!==null){r.update(),$e(r.before_update);const t=r.dirty;r.dirty=[-1],r.fragment&&r.fragment.p(r.ctx,t),r.after_update.forEach(di)}}function vl(r){const t=[],e=[];Ke.forEach(i=>r.indexOf(i)===-1?t.push(i):e.push(i)),e.forEach(i=>i()),Ke=t}const yl=new Set;function wl(r,t){r&&r.i&&(yl.delete(r),r.i(t))}function ys(r){return(r==null?void 0:r.length)!==void 0?r:Array.from(r)}function xl(r,t,e){const{fragment:i,after_update:s}=r.$$;i&&i.m(t,e),di(()=>{const o=r.$$.on_mount.map($o).filter(It);r.$$.on_destroy?r.$$.on_destroy.push(...o):$e(o),r.$$.on_mount=[]}),s.forEach(di)}function Pl(r,t){const e=r.$$;e.fragment!==null&&(vl(e.after_update),$e(e.on_destroy),e.fragment&&e.fragment.d(t),e.on_destroy=e.fragment=null,e.ctx=[])}function El(r,t){r.$$.dirty[0]===-1&&(Ze.push(r),gl(),r.$$.dirty.fill(0)),r.$$.dirty[t/31|0]|=1<<t%31}function Cl(r,t,e,i,s,o,n=null,a=[-1]){const l=Ot;Et(r);const d=r.$$={fragment:null,ctx:[],props:o,update:Ee,not_equal:s,bound:bs(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(l?l.$$.context:[])),callbacks:bs(),dirty:a,skip_bound:!1,root:t.target||l.$$.root};n&&n(d.root);let h=!1;if(d.ctx=e?e(r,t.props||{},(u,f,...m)=>{const _=m.length?m[0]:f;return d.ctx&&s(d.ctx[u],d.ctx[u]=_)&&(!d.skip_bound&&d.bound[u]&&d.bound[u](_),h&&El(r,u)),f}):[],d.update(),h=!0,$e(d.before_update),d.fragment=i?i(d.ctx):!1,t.target){if(t.hydrate){const u=cl(t.target);d.fragment&&d.fragment.l(u),u.forEach(B)}else d.fragment&&d.fragment.c();t.intro&&wl(r.$$.fragment),xl(r,t.target,t.anchor),oe()}Et(l)}let Wo;typeof HTMLElement=="function"&&(Wo=class extends HTMLElement{constructor(t,e,i){super();z(this,"$$ctor");z(this,"$$s");z(this,"$$c");z(this,"$$cn",!1);z(this,"$$d",{});z(this,"$$r",!1);z(this,"$$p_d",{});z(this,"$$l",{});z(this,"$$l_u",new Map);this.$$ctor=t,this.$$s=e,i&&this.attachShadow({mode:"open"})}addEventListener(t,e,i){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(e),this.$$c){const s=this.$$c.$on(t,e);this.$$l_u.set(e,s)}super.addEventListener(t,e,i)}removeEventListener(t,e,i){if(super.removeEventListener(t,e,i),this.$$c){const s=this.$$l_u.get(e);s&&(s(),this.$$l_u.delete(e))}}connectedCallback(){return _t(this,null,function*(){if(this.$$cn=!0,!this.$$c){let t=function(o){return()=>{let n;return{c:function(){n=P("slot"),o!=="default"&&c(n,"name",o)},m:function(d,h){D(d,n,h)},d:function(d){d&&B(n)}}}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const e={},i=fl(this);for(const o of this.$$s)o in i&&(e[o]=[t(o)]);for(const o of this.attributes){const n=this.$$g_p(o.name);n in this.$$d||(this.$$d[n]=tr(n,o.value,this.$$p_d,"toProp"))}for(const o in this.$$p_d)!(o in this.$$d)&&this[o]!==void 0&&(this.$$d[o]=this[o],delete this[o]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:qt(Ge({},this.$$d),{$$slots:e,$$scope:{ctx:[]}})});const s=()=>{this.$$r=!0;for(const o in this.$$p_d)if(this.$$d[o]=this.$$c.$$.ctx[this.$$c.$$.props[o]],this.$$p_d[o].reflect){const n=tr(o,this.$$d[o],this.$$p_d,"toAttribute");n==null?this.removeAttribute(this.$$p_d[o].attribute||o):this.setAttribute(this.$$p_d[o].attribute||o,n)}this.$$r=!1};this.$$c.$$.after_update.push(s),s();for(const o in this.$$l)for(const n of this.$$l[o]){const a=this.$$c.$on(o,n);this.$$l_u.set(n,a)}this.$$l={}}})}attributeChangedCallback(t,e,i){var s;this.$$r||(t=this.$$g_p(t),this.$$d[t]=tr(t,i,this.$$p_d,"toProp"),(s=this.$$c)==null||s.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(t){return Object.keys(this.$$p_d).find(e=>this.$$p_d[e].attribute===t||!this.$$p_d[e].attribute&&e.toLowerCase()===t)||t}});function tr(r,t,e,i){var o;const s=(o=e[r])==null?void 0:o.type;if(t=s==="Boolean"&&typeof t!="boolean"?t!=null:t,!i||!e[r])return t;if(i==="toAttribute")switch(s){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t==null?null:t;default:return t}else switch(s){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function Sl(r,t,e,i,s,o){let n=class extends Wo{constructor(){super(r,e,s),this.$$p_d=t}static get observedAttributes(){return Object.keys(t).map(a=>(t[a].attribute||a).toLowerCase())}};return Object.keys(t).forEach(a=>{Object.defineProperty(n.prototype,a,{get(){return this.$$c&&a in this.$$c?this.$$c[a]:this.$$d[a]},set(l){var d;l=tr(a,l,t),this.$$d[a]=l,(d=this.$$c)==null||d.$set({[a]:l})}})}),i.forEach(a=>{Object.defineProperty(n.prototype,a,{get(){var l;return(l=this.$$c)==null?void 0:l[a]}})}),r.element=n,n}class Al{constructor(){z(this,"$$");z(this,"$$set")}$destroy(){Pl(this,1),this.$destroy=Ee}$on(t,e){if(!It(e))return Ee;const i=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return i.push(e),()=>{const s=i.indexOf(e);s!==-1&&i.splice(s,1)}}$set(t){this.$$set&&!nl(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const Tl="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Tl);/*! *****************************************************************************
|
|
2
2
|
Copyright (c) Microsoft Corporation.
|
|
3
3
|
|
|
4
4
|
Permission to use, copy, modify, and/or distribute this software for any
|
|
@@ -11,11 +11,11 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
|
11
11
|
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
12
12
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
13
13
|
PERFORMANCE OF THIS SOFTWARE.
|
|
14
|
-
***************************************************************************** */var hi=function(r,t){return hi=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,i){e.__proto__=i}||function(e,i){for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(e[s]=i[s])},hi(r,t)};function Vt(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");hi(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}function ui(r){var t=typeof Symbol=="function"&&Symbol.iterator,e=t&&r[t],i=0;if(e)return e.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&i>=r.length&&(r=void 0),{value:r&&r[i++],done:!r}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function ci(r,t){var e=typeof Symbol=="function"&&r[Symbol.iterator];if(!e)return r;var i=e.call(r),s,o=[],n;try{for(;(t===void 0||t-- >0)&&!(s=i.next()).done;)o.push(s.value)}catch(a){n={error:a}}finally{try{s&&!s.done&&(e=i.return)&&e.call(i)}finally{if(n)throw n.error}}return o}function fi(r,t,e){if(arguments.length===2)for(var i=0,s=t.length,o;i<s;i++)(o||!(i in t))&&(o||(o=Array.prototype.slice.call(t,0,i)),o[i]=t[i]);return r.concat(o||t)}function Oe(r){return typeof r=="function"}function
|
|
14
|
+
***************************************************************************** */var hi=function(r,t){return hi=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,i){e.__proto__=i}||function(e,i){for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(e[s]=i[s])},hi(r,t)};function Vt(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");hi(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}function ui(r){var t=typeof Symbol=="function"&&Symbol.iterator,e=t&&r[t],i=0;if(e)return e.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&i>=r.length&&(r=void 0),{value:r&&r[i++],done:!r}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function ci(r,t){var e=typeof Symbol=="function"&&r[Symbol.iterator];if(!e)return r;var i=e.call(r),s,o=[],n;try{for(;(t===void 0||t-- >0)&&!(s=i.next()).done;)o.push(s.value)}catch(a){n={error:a}}finally{try{s&&!s.done&&(e=i.return)&&e.call(i)}finally{if(n)throw n.error}}return o}function fi(r,t,e){if(arguments.length===2)for(var i=0,s=t.length,o;i<s;i++)(o||!(i in t))&&(o||(o=Array.prototype.slice.call(t,0,i)),o[i]=t[i]);return r.concat(o||t)}function Oe(r){return typeof r=="function"}function qo(r){var t=function(i){Error.call(i),i.stack=new Error().stack},e=r(t);return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}var Hr=qo(function(r){return function(e){r(this),this.message=e?e.length+` errors occurred during unsubscription:
|
|
15
15
|
`+e.map(function(i,s){return s+1+") "+i.toString()}).join(`
|
|
16
|
-
`):"",this.name="UnsubscriptionError",this.errors=e}});function pi(r,t){if(r){var e=r.indexOf(t);0<=e&&r.splice(e,1)}}var vr=function(){function r(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return r.prototype.unsubscribe=function(){var t,e,i,s,o;if(!this.closed){this.closed=!0;var n=this._parentage;if(n)if(this._parentage=null,Array.isArray(n))try{for(var a=ui(n),l=a.next();!l.done;l=a.next()){var d=l.value;d.remove(this)}}catch(b){t={error:b}}finally{try{l&&!l.done&&(e=a.return)&&e.call(a)}finally{if(t)throw t.error}}else n.remove(this);var h=this.initialTeardown;if(Oe(h))try{h()}catch(b){o=b instanceof Hr?b.errors:[b]}var u=this._finalizers;if(u){this._finalizers=null;try{for(var f=ui(u),m=f.next();!m.done;m=f.next()){var _=m.value;try{ws(_)}catch(b){o=o!=null?o:[],b instanceof Hr?o=fi(fi([],ci(o)),ci(b.errors)):o.push(b)}}}catch(b){i={error:b}}finally{try{m&&!m.done&&(s=f.return)&&s.call(f)}finally{if(i)throw i.error}}}if(o)throw new Hr(o)}},r.prototype.add=function(t){var e;if(t&&t!==this)if(this.closed)ws(t);else{if(t instanceof r){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(e=this._finalizers)!==null&&e!==void 0?e:[]).push(t)}},r.prototype._hasParent=function(t){var e=this._parentage;return e===t||Array.isArray(e)&&e.includes(t)},r.prototype._addParent=function(t){var e=this._parentage;this._parentage=Array.isArray(e)?(e.push(t),e):e?[e,t]:t},r.prototype._removeParent=function(t){var e=this._parentage;e===t?this._parentage=null:Array.isArray(e)&&pi(e,t)},r.prototype.remove=function(t){var e=this._finalizers;e&&pi(e,t),t instanceof r&&t._removeParent(this)},r.EMPTY=function(){var t=new r;return t.closed=!0,t}(),r}(),qo=vr.EMPTY;function Yo(r){return r instanceof vr||r&&"closed"in r&&Oe(r.remove)&&Oe(r.add)&&Oe(r.unsubscribe)}function ws(r){Oe(r)?r():r.unsubscribe()}var Tl={Promise:void 0},Il={setTimeout:function(r,t){for(var e=[],i=2;i<arguments.length;i++)e[i-2]=arguments[i];return setTimeout.apply(void 0,fi([r,t],ci(e)))},clearTimeout:function(r){return clearTimeout(r)},delegate:void 0};function Ol(r){Il.setTimeout(function(){throw r})}function xs(){}function rr(r){r()}var Zo=function(r){Vt(t,r);function t(e){var i=r.call(this)||this;return i.isStopped=!1,e?(i.destination=e,Yo(e)&&e.add(i)):i.destination=Ml,i}return t.create=function(e,i,s){return new mi(e,i,s)},t.prototype.next=function(e){this.isStopped||this._next(e)},t.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,r.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(vr),Nl=function(){function r(t){this.partialObserver=t}return r.prototype.next=function(t){var e=this.partialObserver;if(e.next)try{e.next(t)}catch(i){Yt(i)}},r.prototype.error=function(t){var e=this.partialObserver;if(e.error)try{e.error(t)}catch(i){Yt(i)}else Yt(t)},r.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(e){Yt(e)}},r}(),mi=function(r){Vt(t,r);function t(e,i,s){var o=r.call(this)||this,n;return Oe(e)||!e?n={next:e!=null?e:void 0,error:i!=null?i:void 0,complete:s!=null?s:void 0}:n=e,o.destination=new Nl(n),o}return t}(Zo);function Yt(r){Ol(r)}function kl(r){throw r}var Ml={closed:!0,next:xs,error:kl,complete:xs},Ll=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function Bl(r){return r}function Rl(r){return r.length===0?Bl:r.length===1?r[0]:function(e){return r.reduce(function(i,s){return s(i)},e)}}var Ps=function(){function r(t){t&&(this._subscribe=t)}return r.prototype.lift=function(t){var e=new r;return e.source=this,e.operator=t,e},r.prototype.subscribe=function(t,e,i){var s=this,o=Hl(t)?t:new mi(t,e,i);return rr(function(){var n=s,a=n.operator,l=n.source;o.add(a?a.call(o,l):l?s._subscribe(o):s._trySubscribe(o))}),o},r.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.error(e)}},r.prototype.forEach=function(t,e){var i=this;return e=Es(e),new e(function(s,o){var n=new mi({next:function(a){try{t(a)}catch(l){o(l),n.unsubscribe()}},error:o,complete:s});i.subscribe(n)})},r.prototype._subscribe=function(t){var e;return(e=this.source)===null||e===void 0?void 0:e.subscribe(t)},r.prototype[Ll]=function(){return this},r.prototype.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return Rl(t)(this)},r.prototype.toPromise=function(t){var e=this;return t=Es(t),new t(function(i,s){var o;e.subscribe(function(n){return o=n},function(n){return s(n)},function(){return i(o)})})},r.create=function(t){return new r(t)},r}();function Es(r){var t;return(t=r!=null?r:Tl.Promise)!==null&&t!==void 0?t:Promise}function Dl(r){return r&&Oe(r.next)&&Oe(r.error)&&Oe(r.complete)}function Hl(r){return r&&r instanceof Zo||Dl(r)&&Yo(r)}var zl=Wo(function(r){return function(){r(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Xo=function(r){Vt(t,r);function t(){var e=r.call(this)||this;return e.closed=!1,e.currentObservers=null,e.observers=[],e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return t.prototype.lift=function(e){var i=new Cs(this,this);return i.operator=e,i},t.prototype._throwIfClosed=function(){if(this.closed)throw new zl},t.prototype.next=function(e){var i=this;rr(function(){var s,o;if(i._throwIfClosed(),!i.isStopped){i.currentObservers||(i.currentObservers=Array.from(i.observers));try{for(var n=ui(i.currentObservers),a=n.next();!a.done;a=n.next()){var l=a.value;l.next(e)}}catch(d){s={error:d}}finally{try{a&&!a.done&&(o=n.return)&&o.call(n)}finally{if(s)throw s.error}}}})},t.prototype.error=function(e){var i=this;rr(function(){if(i._throwIfClosed(),!i.isStopped){i.hasError=i.isStopped=!0,i.thrownError=e;for(var s=i.observers;s.length;)s.shift().error(e)}})},t.prototype.complete=function(){var e=this;rr(function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var i=e.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 e;return((e=this.observers)===null||e===void 0?void 0:e.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(e){return this._throwIfClosed(),r.prototype._trySubscribe.call(this,e)},t.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},t.prototype._innerSubscribe=function(e){var i=this,s=this,o=s.hasError,n=s.isStopped,a=s.observers;return o||n?qo:(this.currentObservers=null,a.push(e),new vr(function(){i.currentObservers=null,pi(a,e)}))},t.prototype._checkFinalizedStatuses=function(e){var i=this,s=i.hasError,o=i.thrownError,n=i.isStopped;s?e.error(o):n&&e.complete()},t.prototype.asObservable=function(){var e=new Ps;return e.source=this,e},t.create=function(e,i){return new Cs(e,i)},t}(Ps),Cs=function(r){Vt(t,r);function t(e,i){var s=r.call(this)||this;return s.destination=e,s.source=i,s}return t.prototype.next=function(e){var i,s;(s=(i=this.destination)===null||i===void 0?void 0:i.next)===null||s===void 0||s.call(i,e)},t.prototype.error=function(e){var i,s;(s=(i=this.destination)===null||i===void 0?void 0:i.error)===null||s===void 0||s.call(i,e)},t.prototype.complete=function(){var e,i;(i=(e=this.destination)===null||e===void 0?void 0:e.complete)===null||i===void 0||i.call(e)},t.prototype._subscribe=function(e){var i,s;return(s=(i=this.source)===null||i===void 0?void 0:i.subscribe(e))!==null&&s!==void 0?s:qo},t}(Xo),Jo={now:function(){return(Jo.delegate||Date).now()},delegate:void 0},Fl=function(r){Vt(t,r);function t(e,i,s){e===void 0&&(e=1/0),i===void 0&&(i=1/0),s===void 0&&(s=Jo);var o=r.call(this)||this;return o._bufferSize=e,o._windowTime=i,o._timestampProvider=s,o._buffer=[],o._infiniteTimeWindow=!0,o._infiniteTimeWindow=i===1/0,o._bufferSize=Math.max(1,e),o._windowTime=Math.max(1,i),o}return t.prototype.next=function(e){var i=this,s=i.isStopped,o=i._buffer,n=i._infiniteTimeWindow,a=i._timestampProvider,l=i._windowTime;s||(o.push(e),!n&&o.push(a.now()+l)),this._trimBuffer(),r.prototype.next.call(this,e)},t.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var i=this._innerSubscribe(e),s=this,o=s._infiniteTimeWindow,n=s._buffer,a=n.slice(),l=0;l<a.length&&!e.closed;l+=o?1:2)e.next(a[l]);return this._checkFinalizedStatuses(e),i},t.prototype._trimBuffer=function(){var e=this,i=e._bufferSize,s=e._timestampProvider,o=e._buffer,n=e._infiniteTimeWindow,a=(n?1:2)*i;if(i<1/0&&a<o.length&&o.splice(0,o.length-a),!n){for(var l=s.now(),d=0,h=1;h<o.length&&o[h]<=l;h+=2)d=h;d&&o.splice(0,d+1)}},t}(Xo);const Ss=[],As={},Vl=(r,t=0)=>{if(Ss.indexOf(r)==-1){const e=new Fl(t);As[r]=e,Ss.push(r)}return As[r]},qe=[];function $l(r,t){return{subscribe:yr(r,t).subscribe}}function yr(r,t=Ee){let e;const i=new Set;function s(a){if($o(r,a)&&(r=a,e)){const l=!qe.length;for(const d of i)d[1](),qe.push(d,r);if(l){for(let d=0;d<qe.length;d+=2)qe[d][0](qe[d+1]);qe.length=0}}}function o(a){s(a(r))}function n(a,l=Ee){const d=[a,l];return i.add(d),i.size===1&&(e=t(s,o)||Ee),a(r),()=>{i.delete(d),i.size===0&&e&&(e(),e=null)}}return{set:s,update:o,subscribe:n}}function dt(r,t,e){const i=!Array.isArray(r),s=i?[r]:r;if(!s.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const o=t.length<2;return $l(e,(n,a)=>{let l=!1;const d=[];let h=0,u=Ee;const f=()=>{if(h)return;u();const _=t(i?d[0]:d,n,a);o?n(_):u=It(_)?_:Ee},m=s.map((_,b)=>Uo(_,w=>{d[b]=w,h&=~(1<<b),l&&f()},()=>{h|=1<<b}));return l=!0,f(),function(){$e(m),u(),l=!1}})}function Ul(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var jl=function(t){return Gl(t)&&!Wl(t)};function Gl(r){return!!r&&typeof r=="object"}function Wl(r){var t=Object.prototype.toString.call(r);return t==="[object RegExp]"||t==="[object Date]"||Zl(r)}var ql=typeof Symbol=="function"&&Symbol.for,Yl=ql?Symbol.for("react.element"):60103;function Zl(r){return r.$$typeof===Yl}function Xl(r){return Array.isArray(r)?[]:{}}function Nt(r,t){return t.clone!==!1&&t.isMergeableObject(r)?rt(Xl(r),r,t):r}function Jl(r,t,e){return r.concat(t).map(function(i){return Nt(i,e)})}function Kl(r,t){if(!t.customMerge)return rt;var e=t.customMerge(r);return typeof e=="function"?e:rt}function Ql(r){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(r).filter(function(t){return Object.propertyIsEnumerable.call(r,t)}):[]}function Ts(r){return Object.keys(r).concat(Ql(r))}function Ko(r,t){try{return t in r}catch(e){return!1}}function ed(r,t){return Ko(r,t)&&!(Object.hasOwnProperty.call(r,t)&&Object.propertyIsEnumerable.call(r,t))}function td(r,t,e){var i={};return e.isMergeableObject(r)&&Ts(r).forEach(function(s){i[s]=Nt(r[s],e)}),Ts(t).forEach(function(s){ed(r,s)||(Ko(r,s)&&e.isMergeableObject(t[s])?i[s]=Kl(s,e)(r[s],t[s],e):i[s]=Nt(t[s],e))}),i}function rt(r,t,e){e=e||{},e.arrayMerge=e.arrayMerge||Jl,e.isMergeableObject=e.isMergeableObject||jl,e.cloneUnlessOtherwiseSpecified=Nt;var i=Array.isArray(t),s=Array.isArray(r),o=i===s;return o?i?e.arrayMerge(r,t,e):td(r,t,e):Nt(t,e)}rt.all=function(t,e){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(i,s){return rt(i,s,e)},{})};var rd=rt,id=rd;const sd=Ul(id);var _i=function(r,t){return _i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,i){e.__proto__=i}||function(e,i){for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(e[s]=i[s])},_i(r,t)};function wr(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");_i(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}var Te=function(){return Te=Object.assign||function(t){for(var e,i=1,s=arguments.length;i<s;i++){e=arguments[i];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])}return t},Te.apply(this,arguments)};function od(r,t){var e={};for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&t.indexOf(i)<0&&(e[i]=r[i]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,i=Object.getOwnPropertySymbols(r);s<i.length;s++)t.indexOf(i[s])<0&&Object.prototype.propertyIsEnumerable.call(r,i[s])&&(e[i[s]]=r[i[s]]);return e}function zr(r,t,e){if(e||arguments.length===2)for(var i=0,s=t.length,o;i<s;i++)(o||!(i in t))&&(o||(o=Array.prototype.slice.call(t,0,i)),o[i]=t[i]);return r.concat(o||Array.prototype.slice.call(t))}function Fr(r,t){var e=t&&t.cache?t.cache:cd,i=t&&t.serializer?t.serializer:hd,s=t&&t.strategy?t.strategy:ld;return s(r,{cache:e,serializer:i})}function nd(r){return r==null||typeof r=="number"||typeof r=="boolean"}function ad(r,t,e,i){var s=nd(i)?i:e(i),o=t.get(s);return typeof o=="undefined"&&(o=r.call(this,i),t.set(s,o)),o}function Qo(r,t,e){var i=Array.prototype.slice.call(arguments,3),s=e(i),o=t.get(s);return typeof o=="undefined"&&(o=r.apply(this,i),t.set(s,o)),o}function en(r,t,e,i,s){return e.bind(t,r,i,s)}function ld(r,t){var e=r.length===1?ad:Qo;return en(r,this,e,t.cache.create(),t.serializer)}function dd(r,t){return en(r,this,Qo,t.cache.create(),t.serializer)}var hd=function(){return JSON.stringify(arguments)},ud=function(){function r(){this.cache=Object.create(null)}return r.prototype.get=function(t){return this.cache[t]},r.prototype.set=function(t,e){this.cache[t]=e},r}(),cd={create:function(){return new ud}},Vr={variadic:dd},lr=function(){return lr=Object.assign||function(t){for(var e,i=1,s=arguments.length;i<s;i++){e=arguments[i];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])}return t},lr.apply(this,arguments)};var T;(function(r){r[r.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",r[r.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",r[r.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",r[r.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",r[r.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",r[r.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",r[r.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",r[r.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",r[r.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",r[r.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",r[r.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",r[r.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",r[r.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",r[r.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",r[r.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",r[r.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",r[r.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",r[r.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",r[r.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",r[r.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",r[r.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",r[r.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",r[r.INVALID_TAG=23]="INVALID_TAG",r[r.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",r[r.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",r[r.UNCLOSED_TAG=27]="UNCLOSED_TAG"})(T||(T={}));var j;(function(r){r[r.literal=0]="literal",r[r.argument=1]="argument",r[r.number=2]="number",r[r.date=3]="date",r[r.time=4]="time",r[r.select=5]="select",r[r.plural=6]="plural",r[r.pound=7]="pound",r[r.tag=8]="tag"})(j||(j={}));var it;(function(r){r[r.number=0]="number",r[r.dateTime=1]="dateTime"})(it||(it={}));function Is(r){return r.type===j.literal}function fd(r){return r.type===j.argument}function tn(r){return r.type===j.number}function rn(r){return r.type===j.date}function sn(r){return r.type===j.time}function on(r){return r.type===j.select}function nn(r){return r.type===j.plural}function pd(r){return r.type===j.pound}function an(r){return r.type===j.tag}function ln(r){return!!(r&&typeof r=="object"&&r.type===it.number)}function gi(r){return!!(r&&typeof r=="object"&&r.type===it.dateTime)}var dn=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,md=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function _d(r){var t={};return r.replace(md,function(e){var i=e.length;switch(e[0]){case"G":t.era=i===4?"long":i===5?"narrow":"short";break;case"y":t.year=i===2?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][i-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][i-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=i===4?"long":i===5?"narrow":"short";break;case"e":if(i<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][i-4];break;case"c":if(i<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][i-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][i-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][i-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][i-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][i-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][i-1];break;case"s":t.second=["numeric","2-digit"][i-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=i<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),t}var X=function(){return X=Object.assign||function(t){for(var e,i=1,s=arguments.length;i<s;i++){e=arguments[i];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])}return t},X.apply(this,arguments)};var gd=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function bd(r){if(r.length===0)throw new Error("Number skeleton cannot be empty");for(var t=r.split(gd).filter(function(f){return f.length>0}),e=[],i=0,s=t;i<s.length;i++){var o=s[i],n=o.split("/");if(n.length===0)throw new Error("Invalid number skeleton");for(var a=n[0],l=n.slice(1),d=0,h=l;d<h.length;d++){var u=h[d];if(u.length===0)throw new Error("Invalid number skeleton")}e.push({stem:a,options:l})}return e}function vd(r){return r.replace(/^(.*?)-/,"")}var Os=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,hn=/^(@+)?(\+|#+)?[rs]?$/g,yd=/(\*)(0+)|(#+)(0+)|(0+)/g,un=/^(0+)$/;function Ns(r){var t={};return r[r.length-1]==="r"?t.roundingPriority="morePrecision":r[r.length-1]==="s"&&(t.roundingPriority="lessPrecision"),r.replace(hn,function(e,i,s){return typeof s!="string"?(t.minimumSignificantDigits=i.length,t.maximumSignificantDigits=i.length):s==="+"?t.minimumSignificantDigits=i.length:i[0]==="#"?t.maximumSignificantDigits=i.length:(t.minimumSignificantDigits=i.length,t.maximumSignificantDigits=i.length+(typeof s=="string"?s.length:0)),""}),t}function cn(r){switch(r){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function wd(r){var t;if(r[0]==="E"&&r[1]==="E"?(t={notation:"engineering"},r=r.slice(2)):r[0]==="E"&&(t={notation:"scientific"},r=r.slice(1)),t){var e=r.slice(0,2);if(e==="+!"?(t.signDisplay="always",r=r.slice(2)):e==="+?"&&(t.signDisplay="exceptZero",r=r.slice(2)),!un.test(r))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=r.length}return t}function ks(r){var t={},e=cn(r);return e||t}function xd(r){for(var t={},e=0,i=r;e<i.length;e++){var s=i[e];switch(s.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=s.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=vd(s.options[0]);continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=X(X(X({},t),{notation:"scientific"}),s.options.reduce(function(l,d){return X(X({},l),ks(d))},{}));continue;case"engineering":t=X(X(X({},t),{notation:"engineering"}),s.options.reduce(function(l,d){return X(X({},l),ks(d))},{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(s.options[0]);continue;case"rounding-mode-floor":t.roundingMode="floor";continue;case"rounding-mode-ceiling":t.roundingMode="ceil";continue;case"rounding-mode-down":t.roundingMode="trunc";continue;case"rounding-mode-up":t.roundingMode="expand";continue;case"rounding-mode-half-even":t.roundingMode="halfEven";continue;case"rounding-mode-half-down":t.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":t.roundingMode="halfExpand";continue;case"integer-width":if(s.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");s.options[0].replace(yd,function(l,d,h,u,f,m){if(d)t.minimumIntegerDigits=h.length;else{if(u&&f)throw new Error("We currently do not support maximum integer digits");if(m)throw new Error("We currently do not support exact integer digits")}return""});continue}if(un.test(s.stem)){t.minimumIntegerDigits=s.stem.length;continue}if(Os.test(s.stem)){if(s.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");s.stem.replace(Os,function(l,d,h,u,f,m){return h==="*"?t.minimumFractionDigits=d.length:u&&u[0]==="#"?t.maximumFractionDigits=u.length:f&&m?(t.minimumFractionDigits=f.length,t.maximumFractionDigits=f.length+m.length):(t.minimumFractionDigits=d.length,t.maximumFractionDigits=d.length),""});var o=s.options[0];o==="w"?t=X(X({},t),{trailingZeroDisplay:"stripIfInteger"}):o&&(t=X(X({},t),Ns(o)));continue}if(hn.test(s.stem)){t=X(X({},t),Ns(s.stem));continue}var n=cn(s.stem);n&&(t=X(X({},t),n));var a=wd(s.stem);a&&(t=X(X({},t),a))}return t}var Zt={"001":["H","h"],419:["h","H","hB","hb"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["h","H","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["h","H","hB","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["h","H","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["h","H","hB","hb"],CU:["h","H","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["h","H","hB","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["h","H","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["h","H","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["h","H","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["h","H","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["h","H","hB","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["h","H","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["h","H","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["h","H","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"en-HK":["h","hb","H","hB"],"en-IL":["H","h","hb","hB"],"en-MY":["h","hb","H","hB"],"es-BR":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function Pd(r,t){for(var e="",i=0;i<r.length;i++){var s=r.charAt(i);if(s==="j"){for(var o=0;i+1<r.length&&r.charAt(i+1)===s;)o++,i++;var n=1+(o&1),a=o<2?1:3+(o>>1),l="a",d=Ed(t);for((d=="H"||d=="k")&&(a=0);a-- >0;)e+=l;for(;n-- >0;)e=d+e}else s==="J"?e+="H":e+=s}return e}function Ed(r){var t=r.hourCycle;if(t===void 0&&r.hourCycles&&r.hourCycles.length&&(t=r.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var e=r.language,i;e!=="root"&&(i=r.maximize().region);var s=Zt[i||""]||Zt[e||""]||Zt["".concat(e,"-001")]||Zt["001"];return s[0]}var $r,Cd=new RegExp("^".concat(dn.source,"*")),Sd=new RegExp("".concat(dn.source,"*$"));function O(r,t){return{start:r,end:t}}var Ad=!!String.prototype.startsWith&&"_a".startsWith("a",1),Td=!!String.fromCodePoint,Id=!!Object.fromEntries,Od=!!String.prototype.codePointAt,Nd=!!String.prototype.trimStart,kd=!!String.prototype.trimEnd,Md=!!Number.isSafeInteger,Ld=Md?Number.isSafeInteger:function(r){return typeof r=="number"&&isFinite(r)&&Math.floor(r)===r&&Math.abs(r)<=9007199254740991},bi=!0;try{var Bd=pn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");bi=(($r=Bd.exec("a"))===null||$r===void 0?void 0:$r[0])==="a"}catch(r){bi=!1}var Ms=Ad?function(t,e,i){return t.startsWith(e,i)}:function(t,e,i){return t.slice(i,i+e.length)===e},vi=Td?String.fromCodePoint:function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var i="",s=t.length,o=0,n;s>o;){if(n=t[o++],n>1114111)throw RangeError(n+" is not a valid code point");i+=n<65536?String.fromCharCode(n):String.fromCharCode(((n-=65536)>>10)+55296,n%1024+56320)}return i},Ls=Id?Object.fromEntries:function(t){for(var e={},i=0,s=t;i<s.length;i++){var o=s[i],n=o[0],a=o[1];e[n]=a}return e},fn=Od?function(t,e){return t.codePointAt(e)}:function(t,e){var i=t.length;if(!(e<0||e>=i)){var s=t.charCodeAt(e),o;return s<55296||s>56319||e+1===i||(o=t.charCodeAt(e+1))<56320||o>57343?s:(s-55296<<10)+(o-56320)+65536}},Rd=Nd?function(t){return t.trimStart()}:function(t){return t.replace(Cd,"")},Dd=kd?function(t){return t.trimEnd()}:function(t){return t.replace(Sd,"")};function pn(r,t){return new RegExp(r,t)}var yi;if(bi){var Bs=pn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");yi=function(t,e){var i;Bs.lastIndex=e;var s=Bs.exec(t);return(i=s[1])!==null&&i!==void 0?i:""}}else yi=function(t,e){for(var i=[];;){var s=fn(t,e);if(s===void 0||mn(s)||Vd(s))break;i.push(s),e+=s>=65536?2:1}return vi.apply(void 0,i)};var Hd=function(){function r(t,e){e===void 0&&(e={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!e.ignoreTag,this.locale=e.locale,this.requiresOtherClause=!!e.requiresOtherClause,this.shouldParseSkeletons=!!e.shouldParseSkeletons}return r.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},r.prototype.parseMessage=function(t,e,i){for(var s=[];!this.isEOF();){var o=this.char();if(o===123){var n=this.parseArgument(t,i);if(n.err)return n;s.push(n.val)}else{if(o===125&&t>0)break;if(o===35&&(e==="plural"||e==="selectordinal")){var a=this.clonePosition();this.bump(),s.push({type:j.pound,location:O(a,this.clonePosition())})}else if(o===60&&!this.ignoreTag&&this.peek()===47){if(i)break;return this.error(T.UNMATCHED_CLOSING_TAG,O(this.clonePosition(),this.clonePosition()))}else if(o===60&&!this.ignoreTag&&wi(this.peek()||0)){var n=this.parseTag(t,e);if(n.err)return n;s.push(n.val)}else{var n=this.parseLiteral(t,e);if(n.err)return n;s.push(n.val)}}}return{val:s,err:null}},r.prototype.parseTag=function(t,e){var i=this.clonePosition();this.bump();var s=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:j.literal,value:"<".concat(s,"/>"),location:O(i,this.clonePosition())},err:null};if(this.bumpIf(">")){var o=this.parseMessage(t+1,e,!0);if(o.err)return o;var n=o.val,a=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!wi(this.char()))return this.error(T.INVALID_TAG,O(a,this.clonePosition()));var l=this.clonePosition(),d=this.parseTagName();return s!==d?this.error(T.UNMATCHED_CLOSING_TAG,O(l,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:j.tag,value:s,children:n,location:O(i,this.clonePosition())},err:null}:this.error(T.INVALID_TAG,O(a,this.clonePosition())))}else return this.error(T.UNCLOSED_TAG,O(i,this.clonePosition()))}else return this.error(T.INVALID_TAG,O(i,this.clonePosition()))},r.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&Fd(this.char());)this.bump();return this.message.slice(t,this.offset())},r.prototype.parseLiteral=function(t,e){for(var i=this.clonePosition(),s="";;){var o=this.tryParseQuote(e);if(o){s+=o;continue}var n=this.tryParseUnquoted(t,e);if(n){s+=n;continue}var a=this.tryParseLeftAngleBracket();if(a){s+=a;continue}break}var l=O(i,this.clonePosition());return{val:{type:j.literal,value:s,location:l},err:null}},r.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!zd(this.peek()||0))?(this.bump(),"<"):null},r.prototype.tryParseQuote=function(t){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(t==="plural"||t==="selectordinal")break;return null;default:return null}this.bump();var e=[this.char()];for(this.bump();!this.isEOF();){var i=this.char();if(i===39)if(this.peek()===39)e.push(39),this.bump();else{this.bump();break}else e.push(i);this.bump()}return vi.apply(void 0,e)},r.prototype.tryParseUnquoted=function(t,e){if(this.isEOF())return null;var i=this.char();return i===60||i===123||i===35&&(e==="plural"||e==="selectordinal")||i===125&&t>0?null:(this.bump(),vi(i))},r.prototype.parseArgument=function(t,e){var i=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(T.EXPECT_ARGUMENT_CLOSING_BRACE,O(i,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(T.EMPTY_ARGUMENT,O(i,this.clonePosition()));var s=this.parseIdentifierIfPossible().value;if(!s)return this.error(T.MALFORMED_ARGUMENT,O(i,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(T.EXPECT_ARGUMENT_CLOSING_BRACE,O(i,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:j.argument,value:s,location:O(i,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(T.EXPECT_ARGUMENT_CLOSING_BRACE,O(i,this.clonePosition())):this.parseArgumentOptions(t,e,s,i);default:return this.error(T.MALFORMED_ARGUMENT,O(i,this.clonePosition()))}},r.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),e=this.offset(),i=yi(this.message,e),s=e+i.length;this.bumpTo(s);var o=this.clonePosition(),n=O(t,o);return{value:i,location:n}},r.prototype.parseArgumentOptions=function(t,e,i,s){var o,n=this.clonePosition(),a=this.parseIdentifierIfPossible().value,l=this.clonePosition();switch(a){case"":return this.error(T.EXPECT_ARGUMENT_TYPE,O(n,l));case"number":case"date":case"time":{this.bumpSpace();var d=null;if(this.bumpIf(",")){this.bumpSpace();var h=this.clonePosition(),u=this.parseSimpleArgStyleIfPossible();if(u.err)return u;var f=Dd(u.val);if(f.length===0)return this.error(T.EXPECT_ARGUMENT_STYLE,O(this.clonePosition(),this.clonePosition()));var m=O(h,this.clonePosition());d={style:f,styleLocation:m}}var _=this.tryParseArgumentClose(s);if(_.err)return _;var b=O(s,this.clonePosition());if(d&&Ms(d==null?void 0:d.style,"::",0)){var w=Rd(d.style.slice(2));if(a==="number"){var u=this.parseNumberSkeletonFromString(w,d.styleLocation);return u.err?u:{val:{type:j.number,value:i,location:b,style:u.val},err:null}}else{if(w.length===0)return this.error(T.EXPECT_DATE_TIME_SKELETON,b);var y=w;this.locale&&(y=Pd(w,this.locale));var f={type:it.dateTime,pattern:y,location:d.styleLocation,parsedOptions:this.shouldParseSkeletons?_d(y):{}},v=a==="date"?j.date:j.time;return{val:{type:v,value:i,location:b,style:f},err:null}}}return{val:{type:a==="number"?j.number:a==="date"?j.date:j.time,value:i,location:b,style:(o=d==null?void 0:d.style)!==null&&o!==void 0?o:null},err:null}}case"plural":case"selectordinal":case"select":{var C=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(T.EXPECT_SELECT_ARGUMENT_OPTIONS,O(C,lr({},C)));this.bumpSpace();var E=this.parseIdentifierIfPossible(),S=0;if(a!=="select"&&E.value==="offset"){if(!this.bumpIf(":"))return this.error(T.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,O(this.clonePosition(),this.clonePosition()));this.bumpSpace();var u=this.tryParseDecimalInteger(T.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,T.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(u.err)return u;this.bumpSpace(),E=this.parseIdentifierIfPossible(),S=u.val}var $=this.tryParsePluralOrSelectOptions(t,a,e,E);if($.err)return $;var _=this.tryParseArgumentClose(s);if(_.err)return _;var L=O(s,this.clonePosition());return a==="select"?{val:{type:j.select,value:i,options:Ls($.val),location:L},err:null}:{val:{type:j.plural,value:i,options:Ls($.val),offset:S,pluralType:a==="plural"?"cardinal":"ordinal",location:L},err:null}}default:return this.error(T.INVALID_ARGUMENT_TYPE,O(n,l))}},r.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(T.EXPECT_ARGUMENT_CLOSING_BRACE,O(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},r.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,e=this.clonePosition();!this.isEOF();){var i=this.char();switch(i){case 39:{this.bump();var s=this.clonePosition();if(!this.bumpUntil("'"))return this.error(T.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,O(s,this.clonePosition()));this.bump();break}case 123:{t+=1,this.bump();break}case 125:{if(t>0)t-=1;else return{val:this.message.slice(e.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(e.offset,this.offset()),err:null}},r.prototype.parseNumberSkeletonFromString=function(t,e){var i=[];try{i=bd(t)}catch(s){return this.error(T.INVALID_NUMBER_SKELETON,e)}return{val:{type:it.number,tokens:i,location:e,parsedOptions:this.shouldParseSkeletons?xd(i):{}},err:null}},r.prototype.tryParsePluralOrSelectOptions=function(t,e,i,s){for(var o,n=!1,a=[],l=new Set,d=s.value,h=s.location;;){if(d.length===0){var u=this.clonePosition();if(e!=="select"&&this.bumpIf("=")){var f=this.tryParseDecimalInteger(T.EXPECT_PLURAL_ARGUMENT_SELECTOR,T.INVALID_PLURAL_ARGUMENT_SELECTOR);if(f.err)return f;h=O(u,this.clonePosition()),d=this.message.slice(u.offset,this.offset())}else break}if(l.has(d))return this.error(e==="select"?T.DUPLICATE_SELECT_ARGUMENT_SELECTOR:T.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,h);d==="other"&&(n=!0),this.bumpSpace();var m=this.clonePosition();if(!this.bumpIf("{"))return this.error(e==="select"?T.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:T.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,O(this.clonePosition(),this.clonePosition()));var _=this.parseMessage(t+1,e,i);if(_.err)return _;var b=this.tryParseArgumentClose(m);if(b.err)return b;a.push([d,{value:_.val,location:O(m,this.clonePosition())}]),l.add(d),this.bumpSpace(),o=this.parseIdentifierIfPossible(),d=o.value,h=o.location}return a.length===0?this.error(e==="select"?T.EXPECT_SELECT_ARGUMENT_SELECTOR:T.EXPECT_PLURAL_ARGUMENT_SELECTOR,O(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!n?this.error(T.MISSING_OTHER_CLAUSE,O(this.clonePosition(),this.clonePosition())):{val:a,err:null}},r.prototype.tryParseDecimalInteger=function(t,e){var i=1,s=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(i=-1);for(var o=!1,n=0;!this.isEOF();){var a=this.char();if(a>=48&&a<=57)o=!0,n=n*10+(a-48),this.bump();else break}var l=O(s,this.clonePosition());return o?(n*=i,Ld(n)?{val:n,err:null}:this.error(e,l)):this.error(t,l)},r.prototype.offset=function(){return this.position.offset},r.prototype.isEOF=function(){return this.offset()===this.message.length},r.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},r.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var e=fn(this.message,t);if(e===void 0)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return e},r.prototype.error=function(t,e){return{val:null,err:{kind:t,message:this.message,location:e}}},r.prototype.bump=function(){if(!this.isEOF()){var t=this.char();t===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2)}},r.prototype.bumpIf=function(t){if(Ms(this.message,t,this.offset())){for(var e=0;e<t.length;e++)this.bump();return!0}return!1},r.prototype.bumpUntil=function(t){var e=this.offset(),i=this.message.indexOf(t,e);return i>=0?(this.bumpTo(i),!0):(this.bumpTo(this.message.length),!1)},r.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset ".concat(t," must be greater than or equal to the current offset ").concat(this.offset()));for(t=Math.min(t,this.message.length);;){var e=this.offset();if(e===t)break;if(e>t)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},r.prototype.bumpSpace=function(){for(;!this.isEOF()&&mn(this.char());)this.bump()},r.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),e=this.offset(),i=this.message.charCodeAt(e+(t>=65536?2:1));return i!=null?i:null},r}();function wi(r){return r>=97&&r<=122||r>=65&&r<=90}function zd(r){return wi(r)||r===47}function Fd(r){return r===45||r===46||r>=48&&r<=57||r===95||r>=97&&r<=122||r>=65&&r<=90||r==183||r>=192&&r<=214||r>=216&&r<=246||r>=248&&r<=893||r>=895&&r<=8191||r>=8204&&r<=8205||r>=8255&&r<=8256||r>=8304&&r<=8591||r>=11264&&r<=12271||r>=12289&&r<=55295||r>=63744&&r<=64975||r>=65008&&r<=65533||r>=65536&&r<=983039}function mn(r){return r>=9&&r<=13||r===32||r===133||r>=8206&&r<=8207||r===8232||r===8233}function Vd(r){return r>=33&&r<=35||r===36||r>=37&&r<=39||r===40||r===41||r===42||r===43||r===44||r===45||r>=46&&r<=47||r>=58&&r<=59||r>=60&&r<=62||r>=63&&r<=64||r===91||r===92||r===93||r===94||r===96||r===123||r===124||r===125||r===126||r===161||r>=162&&r<=165||r===166||r===167||r===169||r===171||r===172||r===174||r===176||r===177||r===182||r===187||r===191||r===215||r===247||r>=8208&&r<=8213||r>=8214&&r<=8215||r===8216||r===8217||r===8218||r>=8219&&r<=8220||r===8221||r===8222||r===8223||r>=8224&&r<=8231||r>=8240&&r<=8248||r===8249||r===8250||r>=8251&&r<=8254||r>=8257&&r<=8259||r===8260||r===8261||r===8262||r>=8263&&r<=8273||r===8274||r===8275||r>=8277&&r<=8286||r>=8592&&r<=8596||r>=8597&&r<=8601||r>=8602&&r<=8603||r>=8604&&r<=8607||r===8608||r>=8609&&r<=8610||r===8611||r>=8612&&r<=8613||r===8614||r>=8615&&r<=8621||r===8622||r>=8623&&r<=8653||r>=8654&&r<=8655||r>=8656&&r<=8657||r===8658||r===8659||r===8660||r>=8661&&r<=8691||r>=8692&&r<=8959||r>=8960&&r<=8967||r===8968||r===8969||r===8970||r===8971||r>=8972&&r<=8991||r>=8992&&r<=8993||r>=8994&&r<=9e3||r===9001||r===9002||r>=9003&&r<=9083||r===9084||r>=9085&&r<=9114||r>=9115&&r<=9139||r>=9140&&r<=9179||r>=9180&&r<=9185||r>=9186&&r<=9254||r>=9255&&r<=9279||r>=9280&&r<=9290||r>=9291&&r<=9311||r>=9472&&r<=9654||r===9655||r>=9656&&r<=9664||r===9665||r>=9666&&r<=9719||r>=9720&&r<=9727||r>=9728&&r<=9838||r===9839||r>=9840&&r<=10087||r===10088||r===10089||r===10090||r===10091||r===10092||r===10093||r===10094||r===10095||r===10096||r===10097||r===10098||r===10099||r===10100||r===10101||r>=10132&&r<=10175||r>=10176&&r<=10180||r===10181||r===10182||r>=10183&&r<=10213||r===10214||r===10215||r===10216||r===10217||r===10218||r===10219||r===10220||r===10221||r===10222||r===10223||r>=10224&&r<=10239||r>=10240&&r<=10495||r>=10496&&r<=10626||r===10627||r===10628||r===10629||r===10630||r===10631||r===10632||r===10633||r===10634||r===10635||r===10636||r===10637||r===10638||r===10639||r===10640||r===10641||r===10642||r===10643||r===10644||r===10645||r===10646||r===10647||r===10648||r>=10649&&r<=10711||r===10712||r===10713||r===10714||r===10715||r>=10716&&r<=10747||r===10748||r===10749||r>=10750&&r<=11007||r>=11008&&r<=11055||r>=11056&&r<=11076||r>=11077&&r<=11078||r>=11079&&r<=11084||r>=11085&&r<=11123||r>=11124&&r<=11125||r>=11126&&r<=11157||r===11158||r>=11159&&r<=11263||r>=11776&&r<=11777||r===11778||r===11779||r===11780||r===11781||r>=11782&&r<=11784||r===11785||r===11786||r===11787||r===11788||r===11789||r>=11790&&r<=11798||r===11799||r>=11800&&r<=11801||r===11802||r===11803||r===11804||r===11805||r>=11806&&r<=11807||r===11808||r===11809||r===11810||r===11811||r===11812||r===11813||r===11814||r===11815||r===11816||r===11817||r>=11818&&r<=11822||r===11823||r>=11824&&r<=11833||r>=11834&&r<=11835||r>=11836&&r<=11839||r===11840||r===11841||r===11842||r>=11843&&r<=11855||r>=11856&&r<=11857||r===11858||r>=11859&&r<=11903||r>=12289&&r<=12291||r===12296||r===12297||r===12298||r===12299||r===12300||r===12301||r===12302||r===12303||r===12304||r===12305||r>=12306&&r<=12307||r===12308||r===12309||r===12310||r===12311||r===12312||r===12313||r===12314||r===12315||r===12316||r===12317||r>=12318&&r<=12319||r===12320||r===12336||r===64830||r===64831||r>=65093&&r<=65094}function xi(r){r.forEach(function(t){if(delete t.location,on(t)||nn(t))for(var e in t.options)delete t.options[e].location,xi(t.options[e].value);else tn(t)&&ln(t.style)||(rn(t)||sn(t))&&gi(t.style)?delete t.style.location:an(t)&&xi(t.children)})}function $d(r,t){t===void 0&&(t={}),t=lr({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var e=new Hd(r,t).parse();if(e.err){var i=SyntaxError(T[e.err.kind]);throw i.location=e.err.location,i.originalMessage=e.err.message,i}return t!=null&&t.captureLocation||xi(e.val),e.val}var st;(function(r){r.MISSING_VALUE="MISSING_VALUE",r.INVALID_VALUE="INVALID_VALUE",r.MISSING_INTL_API="MISSING_INTL_API"})(st||(st={}));var xr=function(r){wr(t,r);function t(e,i,s){var o=r.call(this,e)||this;return o.code=i,o.originalMessage=s,o}return t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),Rs=function(r){wr(t,r);function t(e,i,s,o){return r.call(this,'Invalid values for "'.concat(e,'": "').concat(i,'". Options are "').concat(Object.keys(s).join('", "'),'"'),st.INVALID_VALUE,o)||this}return t}(xr),Ud=function(r){wr(t,r);function t(e,i,s){return r.call(this,'Value for "'.concat(e,'" must be of type ').concat(i),st.INVALID_VALUE,s)||this}return t}(xr),jd=function(r){wr(t,r);function t(e,i){return r.call(this,'The intl string context variable "'.concat(e,'" was not provided to the string "').concat(i,'"'),st.MISSING_VALUE,i)||this}return t}(xr),fe;(function(r){r[r.literal=0]="literal",r[r.object=1]="object"})(fe||(fe={}));function Gd(r){return r.length<2?r:r.reduce(function(t,e){var i=t[t.length-1];return!i||i.type!==fe.literal||e.type!==fe.literal?t.push(e):i.value+=e.value,t},[])}function Wd(r){return typeof r=="function"}function ir(r,t,e,i,s,o,n){if(r.length===1&&Is(r[0]))return[{type:fe.literal,value:r[0].value}];for(var a=[],l=0,d=r;l<d.length;l++){var h=d[l];if(Is(h)){a.push({type:fe.literal,value:h.value});continue}if(pd(h)){typeof o=="number"&&a.push({type:fe.literal,value:e.getNumberFormat(t).format(o)});continue}var u=h.value;if(!(s&&u in s))throw new jd(u,n);var f=s[u];if(fd(h)){(!f||typeof f=="string"||typeof f=="number")&&(f=typeof f=="string"||typeof f=="number"?String(f):""),a.push({type:typeof f=="string"?fe.literal:fe.object,value:f});continue}if(rn(h)){var m=typeof h.style=="string"?i.date[h.style]:gi(h.style)?h.style.parsedOptions:void 0;a.push({type:fe.literal,value:e.getDateTimeFormat(t,m).format(f)});continue}if(sn(h)){var m=typeof h.style=="string"?i.time[h.style]:gi(h.style)?h.style.parsedOptions:i.time.medium;a.push({type:fe.literal,value:e.getDateTimeFormat(t,m).format(f)});continue}if(tn(h)){var m=typeof h.style=="string"?i.number[h.style]:ln(h.style)?h.style.parsedOptions:void 0;m&&m.scale&&(f=f*(m.scale||1)),a.push({type:fe.literal,value:e.getNumberFormat(t,m).format(f)});continue}if(an(h)){var _=h.children,b=h.value,w=s[b];if(!Wd(w))throw new Ud(b,"function",n);var y=ir(_,t,e,i,s,o),v=w(y.map(function(S){return S.value}));Array.isArray(v)||(v=[v]),a.push.apply(a,v.map(function(S){return{type:typeof S=="string"?fe.literal:fe.object,value:S}}))}if(on(h)){var C=h.options[f]||h.options.other;if(!C)throw new Rs(h.value,f,Object.keys(h.options),n);a.push.apply(a,ir(C.value,t,e,i,s));continue}if(nn(h)){var C=h.options["=".concat(f)];if(!C){if(!Intl.PluralRules)throw new xr(`Intl.PluralRules is not available in this environment.
|
|
16
|
+
`):"",this.name="UnsubscriptionError",this.errors=e}});function pi(r,t){if(r){var e=r.indexOf(t);0<=e&&r.splice(e,1)}}var vr=function(){function r(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return r.prototype.unsubscribe=function(){var t,e,i,s,o;if(!this.closed){this.closed=!0;var n=this._parentage;if(n)if(this._parentage=null,Array.isArray(n))try{for(var a=ui(n),l=a.next();!l.done;l=a.next()){var d=l.value;d.remove(this)}}catch(b){t={error:b}}finally{try{l&&!l.done&&(e=a.return)&&e.call(a)}finally{if(t)throw t.error}}else n.remove(this);var h=this.initialTeardown;if(Oe(h))try{h()}catch(b){o=b instanceof Hr?b.errors:[b]}var u=this._finalizers;if(u){this._finalizers=null;try{for(var f=ui(u),m=f.next();!m.done;m=f.next()){var _=m.value;try{ws(_)}catch(b){o=o!=null?o:[],b instanceof Hr?o=fi(fi([],ci(o)),ci(b.errors)):o.push(b)}}}catch(b){i={error:b}}finally{try{m&&!m.done&&(s=f.return)&&s.call(f)}finally{if(i)throw i.error}}}if(o)throw new Hr(o)}},r.prototype.add=function(t){var e;if(t&&t!==this)if(this.closed)ws(t);else{if(t instanceof r){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(e=this._finalizers)!==null&&e!==void 0?e:[]).push(t)}},r.prototype._hasParent=function(t){var e=this._parentage;return e===t||Array.isArray(e)&&e.includes(t)},r.prototype._addParent=function(t){var e=this._parentage;this._parentage=Array.isArray(e)?(e.push(t),e):e?[e,t]:t},r.prototype._removeParent=function(t){var e=this._parentage;e===t?this._parentage=null:Array.isArray(e)&&pi(e,t)},r.prototype.remove=function(t){var e=this._finalizers;e&&pi(e,t),t instanceof r&&t._removeParent(this)},r.EMPTY=function(){var t=new r;return t.closed=!0,t}(),r}(),Yo=vr.EMPTY;function Zo(r){return r instanceof vr||r&&"closed"in r&&Oe(r.remove)&&Oe(r.add)&&Oe(r.unsubscribe)}function ws(r){Oe(r)?r():r.unsubscribe()}var Il={Promise:void 0},Ol={setTimeout:function(r,t){for(var e=[],i=2;i<arguments.length;i++)e[i-2]=arguments[i];return setTimeout.apply(void 0,fi([r,t],ci(e)))},clearTimeout:function(r){return clearTimeout(r)},delegate:void 0};function Nl(r){Ol.setTimeout(function(){throw r})}function xs(){}function rr(r){r()}var Xo=function(r){Vt(t,r);function t(e){var i=r.call(this)||this;return i.isStopped=!1,e?(i.destination=e,Zo(e)&&e.add(i)):i.destination=Ll,i}return t.create=function(e,i,s){return new mi(e,i,s)},t.prototype.next=function(e){this.isStopped||this._next(e)},t.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,r.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(vr),kl=function(){function r(t){this.partialObserver=t}return r.prototype.next=function(t){var e=this.partialObserver;if(e.next)try{e.next(t)}catch(i){Yt(i)}},r.prototype.error=function(t){var e=this.partialObserver;if(e.error)try{e.error(t)}catch(i){Yt(i)}else Yt(t)},r.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(e){Yt(e)}},r}(),mi=function(r){Vt(t,r);function t(e,i,s){var o=r.call(this)||this,n;return Oe(e)||!e?n={next:e!=null?e:void 0,error:i!=null?i:void 0,complete:s!=null?s:void 0}:n=e,o.destination=new kl(n),o}return t}(Xo);function Yt(r){Nl(r)}function Ml(r){throw r}var Ll={closed:!0,next:xs,error:Ml,complete:xs},Bl=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function Rl(r){return r}function Dl(r){return r.length===0?Rl:r.length===1?r[0]:function(e){return r.reduce(function(i,s){return s(i)},e)}}var Ps=function(){function r(t){t&&(this._subscribe=t)}return r.prototype.lift=function(t){var e=new r;return e.source=this,e.operator=t,e},r.prototype.subscribe=function(t,e,i){var s=this,o=zl(t)?t:new mi(t,e,i);return rr(function(){var n=s,a=n.operator,l=n.source;o.add(a?a.call(o,l):l?s._subscribe(o):s._trySubscribe(o))}),o},r.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.error(e)}},r.prototype.forEach=function(t,e){var i=this;return e=Es(e),new e(function(s,o){var n=new mi({next:function(a){try{t(a)}catch(l){o(l),n.unsubscribe()}},error:o,complete:s});i.subscribe(n)})},r.prototype._subscribe=function(t){var e;return(e=this.source)===null||e===void 0?void 0:e.subscribe(t)},r.prototype[Bl]=function(){return this},r.prototype.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return Dl(t)(this)},r.prototype.toPromise=function(t){var e=this;return t=Es(t),new t(function(i,s){var o;e.subscribe(function(n){return o=n},function(n){return s(n)},function(){return i(o)})})},r.create=function(t){return new r(t)},r}();function Es(r){var t;return(t=r!=null?r:Il.Promise)!==null&&t!==void 0?t:Promise}function Hl(r){return r&&Oe(r.next)&&Oe(r.error)&&Oe(r.complete)}function zl(r){return r&&r instanceof Xo||Hl(r)&&Zo(r)}var Fl=qo(function(r){return function(){r(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Jo=function(r){Vt(t,r);function t(){var e=r.call(this)||this;return e.closed=!1,e.currentObservers=null,e.observers=[],e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return t.prototype.lift=function(e){var i=new Cs(this,this);return i.operator=e,i},t.prototype._throwIfClosed=function(){if(this.closed)throw new Fl},t.prototype.next=function(e){var i=this;rr(function(){var s,o;if(i._throwIfClosed(),!i.isStopped){i.currentObservers||(i.currentObservers=Array.from(i.observers));try{for(var n=ui(i.currentObservers),a=n.next();!a.done;a=n.next()){var l=a.value;l.next(e)}}catch(d){s={error:d}}finally{try{a&&!a.done&&(o=n.return)&&o.call(n)}finally{if(s)throw s.error}}}})},t.prototype.error=function(e){var i=this;rr(function(){if(i._throwIfClosed(),!i.isStopped){i.hasError=i.isStopped=!0,i.thrownError=e;for(var s=i.observers;s.length;)s.shift().error(e)}})},t.prototype.complete=function(){var e=this;rr(function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var i=e.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 e;return((e=this.observers)===null||e===void 0?void 0:e.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(e){return this._throwIfClosed(),r.prototype._trySubscribe.call(this,e)},t.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},t.prototype._innerSubscribe=function(e){var i=this,s=this,o=s.hasError,n=s.isStopped,a=s.observers;return o||n?Yo:(this.currentObservers=null,a.push(e),new vr(function(){i.currentObservers=null,pi(a,e)}))},t.prototype._checkFinalizedStatuses=function(e){var i=this,s=i.hasError,o=i.thrownError,n=i.isStopped;s?e.error(o):n&&e.complete()},t.prototype.asObservable=function(){var e=new Ps;return e.source=this,e},t.create=function(e,i){return new Cs(e,i)},t}(Ps),Cs=function(r){Vt(t,r);function t(e,i){var s=r.call(this)||this;return s.destination=e,s.source=i,s}return t.prototype.next=function(e){var i,s;(s=(i=this.destination)===null||i===void 0?void 0:i.next)===null||s===void 0||s.call(i,e)},t.prototype.error=function(e){var i,s;(s=(i=this.destination)===null||i===void 0?void 0:i.error)===null||s===void 0||s.call(i,e)},t.prototype.complete=function(){var e,i;(i=(e=this.destination)===null||e===void 0?void 0:e.complete)===null||i===void 0||i.call(e)},t.prototype._subscribe=function(e){var i,s;return(s=(i=this.source)===null||i===void 0?void 0:i.subscribe(e))!==null&&s!==void 0?s:Yo},t}(Jo),Ko={now:function(){return(Ko.delegate||Date).now()},delegate:void 0},Vl=function(r){Vt(t,r);function t(e,i,s){e===void 0&&(e=1/0),i===void 0&&(i=1/0),s===void 0&&(s=Ko);var o=r.call(this)||this;return o._bufferSize=e,o._windowTime=i,o._timestampProvider=s,o._buffer=[],o._infiniteTimeWindow=!0,o._infiniteTimeWindow=i===1/0,o._bufferSize=Math.max(1,e),o._windowTime=Math.max(1,i),o}return t.prototype.next=function(e){var i=this,s=i.isStopped,o=i._buffer,n=i._infiniteTimeWindow,a=i._timestampProvider,l=i._windowTime;s||(o.push(e),!n&&o.push(a.now()+l)),this._trimBuffer(),r.prototype.next.call(this,e)},t.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var i=this._innerSubscribe(e),s=this,o=s._infiniteTimeWindow,n=s._buffer,a=n.slice(),l=0;l<a.length&&!e.closed;l+=o?1:2)e.next(a[l]);return this._checkFinalizedStatuses(e),i},t.prototype._trimBuffer=function(){var e=this,i=e._bufferSize,s=e._timestampProvider,o=e._buffer,n=e._infiniteTimeWindow,a=(n?1:2)*i;if(i<1/0&&a<o.length&&o.splice(0,o.length-a),!n){for(var l=s.now(),d=0,h=1;h<o.length&&o[h]<=l;h+=2)d=h;d&&o.splice(0,d+1)}},t}(Jo);const Ss=[],As={},$l=(r,t=0)=>{if(Ss.indexOf(r)==-1){const e=new Vl(t);As[r]=e,Ss.push(r)}return As[r]},qe=[];function Ul(r,t){return{subscribe:yr(r,t).subscribe}}function yr(r,t=Ee){let e;const i=new Set;function s(a){if(Uo(r,a)&&(r=a,e)){const l=!qe.length;for(const d of i)d[1](),qe.push(d,r);if(l){for(let d=0;d<qe.length;d+=2)qe[d][0](qe[d+1]);qe.length=0}}}function o(a){s(a(r))}function n(a,l=Ee){const d=[a,l];return i.add(d),i.size===1&&(e=t(s,o)||Ee),a(r),()=>{i.delete(d),i.size===0&&e&&(e(),e=null)}}return{set:s,update:o,subscribe:n}}function dt(r,t,e){const i=!Array.isArray(r),s=i?[r]:r;if(!s.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const o=t.length<2;return Ul(e,(n,a)=>{let l=!1;const d=[];let h=0,u=Ee;const f=()=>{if(h)return;u();const _=t(i?d[0]:d,n,a);o?n(_):u=It(_)?_:Ee},m=s.map((_,b)=>jo(_,w=>{d[b]=w,h&=~(1<<b),l&&f()},()=>{h|=1<<b}));return l=!0,f(),function(){$e(m),u(),l=!1}})}function jl(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var Gl=function(t){return Wl(t)&&!ql(t)};function Wl(r){return!!r&&typeof r=="object"}function ql(r){var t=Object.prototype.toString.call(r);return t==="[object RegExp]"||t==="[object Date]"||Xl(r)}var Yl=typeof Symbol=="function"&&Symbol.for,Zl=Yl?Symbol.for("react.element"):60103;function Xl(r){return r.$$typeof===Zl}function Jl(r){return Array.isArray(r)?[]:{}}function Nt(r,t){return t.clone!==!1&&t.isMergeableObject(r)?rt(Jl(r),r,t):r}function Kl(r,t,e){return r.concat(t).map(function(i){return Nt(i,e)})}function Ql(r,t){if(!t.customMerge)return rt;var e=t.customMerge(r);return typeof e=="function"?e:rt}function ed(r){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(r).filter(function(t){return Object.propertyIsEnumerable.call(r,t)}):[]}function Ts(r){return Object.keys(r).concat(ed(r))}function Qo(r,t){try{return t in r}catch(e){return!1}}function td(r,t){return Qo(r,t)&&!(Object.hasOwnProperty.call(r,t)&&Object.propertyIsEnumerable.call(r,t))}function rd(r,t,e){var i={};return e.isMergeableObject(r)&&Ts(r).forEach(function(s){i[s]=Nt(r[s],e)}),Ts(t).forEach(function(s){td(r,s)||(Qo(r,s)&&e.isMergeableObject(t[s])?i[s]=Ql(s,e)(r[s],t[s],e):i[s]=Nt(t[s],e))}),i}function rt(r,t,e){e=e||{},e.arrayMerge=e.arrayMerge||Kl,e.isMergeableObject=e.isMergeableObject||Gl,e.cloneUnlessOtherwiseSpecified=Nt;var i=Array.isArray(t),s=Array.isArray(r),o=i===s;return o?i?e.arrayMerge(r,t,e):rd(r,t,e):Nt(t,e)}rt.all=function(t,e){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(i,s){return rt(i,s,e)},{})};var id=rt,sd=id;const od=jl(sd);var _i=function(r,t){return _i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,i){e.__proto__=i}||function(e,i){for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(e[s]=i[s])},_i(r,t)};function wr(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");_i(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}var Te=function(){return Te=Object.assign||function(t){for(var e,i=1,s=arguments.length;i<s;i++){e=arguments[i];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])}return t},Te.apply(this,arguments)};function nd(r,t){var e={};for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&t.indexOf(i)<0&&(e[i]=r[i]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,i=Object.getOwnPropertySymbols(r);s<i.length;s++)t.indexOf(i[s])<0&&Object.prototype.propertyIsEnumerable.call(r,i[s])&&(e[i[s]]=r[i[s]]);return e}function zr(r,t,e){if(e||arguments.length===2)for(var i=0,s=t.length,o;i<s;i++)(o||!(i in t))&&(o||(o=Array.prototype.slice.call(t,0,i)),o[i]=t[i]);return r.concat(o||Array.prototype.slice.call(t))}function Fr(r,t){var e=t&&t.cache?t.cache:fd,i=t&&t.serializer?t.serializer:ud,s=t&&t.strategy?t.strategy:dd;return s(r,{cache:e,serializer:i})}function ad(r){return r==null||typeof r=="number"||typeof r=="boolean"}function ld(r,t,e,i){var s=ad(i)?i:e(i),o=t.get(s);return typeof o=="undefined"&&(o=r.call(this,i),t.set(s,o)),o}function en(r,t,e){var i=Array.prototype.slice.call(arguments,3),s=e(i),o=t.get(s);return typeof o=="undefined"&&(o=r.apply(this,i),t.set(s,o)),o}function tn(r,t,e,i,s){return e.bind(t,r,i,s)}function dd(r,t){var e=r.length===1?ld:en;return tn(r,this,e,t.cache.create(),t.serializer)}function hd(r,t){return tn(r,this,en,t.cache.create(),t.serializer)}var ud=function(){return JSON.stringify(arguments)},cd=function(){function r(){this.cache=Object.create(null)}return r.prototype.get=function(t){return this.cache[t]},r.prototype.set=function(t,e){this.cache[t]=e},r}(),fd={create:function(){return new cd}},Vr={variadic:hd},lr=function(){return lr=Object.assign||function(t){for(var e,i=1,s=arguments.length;i<s;i++){e=arguments[i];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])}return t},lr.apply(this,arguments)};var T;(function(r){r[r.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",r[r.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",r[r.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",r[r.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",r[r.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",r[r.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",r[r.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",r[r.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",r[r.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",r[r.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",r[r.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",r[r.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",r[r.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",r[r.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",r[r.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",r[r.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",r[r.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",r[r.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",r[r.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",r[r.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",r[r.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",r[r.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",r[r.INVALID_TAG=23]="INVALID_TAG",r[r.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",r[r.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",r[r.UNCLOSED_TAG=27]="UNCLOSED_TAG"})(T||(T={}));var j;(function(r){r[r.literal=0]="literal",r[r.argument=1]="argument",r[r.number=2]="number",r[r.date=3]="date",r[r.time=4]="time",r[r.select=5]="select",r[r.plural=6]="plural",r[r.pound=7]="pound",r[r.tag=8]="tag"})(j||(j={}));var it;(function(r){r[r.number=0]="number",r[r.dateTime=1]="dateTime"})(it||(it={}));function Is(r){return r.type===j.literal}function pd(r){return r.type===j.argument}function rn(r){return r.type===j.number}function sn(r){return r.type===j.date}function on(r){return r.type===j.time}function nn(r){return r.type===j.select}function an(r){return r.type===j.plural}function md(r){return r.type===j.pound}function ln(r){return r.type===j.tag}function dn(r){return!!(r&&typeof r=="object"&&r.type===it.number)}function gi(r){return!!(r&&typeof r=="object"&&r.type===it.dateTime)}var hn=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,_d=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function gd(r){var t={};return r.replace(_d,function(e){var i=e.length;switch(e[0]){case"G":t.era=i===4?"long":i===5?"narrow":"short";break;case"y":t.year=i===2?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][i-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][i-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=i===4?"long":i===5?"narrow":"short";break;case"e":if(i<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][i-4];break;case"c":if(i<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][i-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][i-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][i-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][i-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][i-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][i-1];break;case"s":t.second=["numeric","2-digit"][i-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=i<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),t}var X=function(){return X=Object.assign||function(t){for(var e,i=1,s=arguments.length;i<s;i++){e=arguments[i];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])}return t},X.apply(this,arguments)};var bd=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function vd(r){if(r.length===0)throw new Error("Number skeleton cannot be empty");for(var t=r.split(bd).filter(function(f){return f.length>0}),e=[],i=0,s=t;i<s.length;i++){var o=s[i],n=o.split("/");if(n.length===0)throw new Error("Invalid number skeleton");for(var a=n[0],l=n.slice(1),d=0,h=l;d<h.length;d++){var u=h[d];if(u.length===0)throw new Error("Invalid number skeleton")}e.push({stem:a,options:l})}return e}function yd(r){return r.replace(/^(.*?)-/,"")}var Os=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,un=/^(@+)?(\+|#+)?[rs]?$/g,wd=/(\*)(0+)|(#+)(0+)|(0+)/g,cn=/^(0+)$/;function Ns(r){var t={};return r[r.length-1]==="r"?t.roundingPriority="morePrecision":r[r.length-1]==="s"&&(t.roundingPriority="lessPrecision"),r.replace(un,function(e,i,s){return typeof s!="string"?(t.minimumSignificantDigits=i.length,t.maximumSignificantDigits=i.length):s==="+"?t.minimumSignificantDigits=i.length:i[0]==="#"?t.maximumSignificantDigits=i.length:(t.minimumSignificantDigits=i.length,t.maximumSignificantDigits=i.length+(typeof s=="string"?s.length:0)),""}),t}function fn(r){switch(r){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function xd(r){var t;if(r[0]==="E"&&r[1]==="E"?(t={notation:"engineering"},r=r.slice(2)):r[0]==="E"&&(t={notation:"scientific"},r=r.slice(1)),t){var e=r.slice(0,2);if(e==="+!"?(t.signDisplay="always",r=r.slice(2)):e==="+?"&&(t.signDisplay="exceptZero",r=r.slice(2)),!cn.test(r))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=r.length}return t}function ks(r){var t={},e=fn(r);return e||t}function Pd(r){for(var t={},e=0,i=r;e<i.length;e++){var s=i[e];switch(s.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=s.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=yd(s.options[0]);continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=X(X(X({},t),{notation:"scientific"}),s.options.reduce(function(l,d){return X(X({},l),ks(d))},{}));continue;case"engineering":t=X(X(X({},t),{notation:"engineering"}),s.options.reduce(function(l,d){return X(X({},l),ks(d))},{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(s.options[0]);continue;case"rounding-mode-floor":t.roundingMode="floor";continue;case"rounding-mode-ceiling":t.roundingMode="ceil";continue;case"rounding-mode-down":t.roundingMode="trunc";continue;case"rounding-mode-up":t.roundingMode="expand";continue;case"rounding-mode-half-even":t.roundingMode="halfEven";continue;case"rounding-mode-half-down":t.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":t.roundingMode="halfExpand";continue;case"integer-width":if(s.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");s.options[0].replace(wd,function(l,d,h,u,f,m){if(d)t.minimumIntegerDigits=h.length;else{if(u&&f)throw new Error("We currently do not support maximum integer digits");if(m)throw new Error("We currently do not support exact integer digits")}return""});continue}if(cn.test(s.stem)){t.minimumIntegerDigits=s.stem.length;continue}if(Os.test(s.stem)){if(s.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");s.stem.replace(Os,function(l,d,h,u,f,m){return h==="*"?t.minimumFractionDigits=d.length:u&&u[0]==="#"?t.maximumFractionDigits=u.length:f&&m?(t.minimumFractionDigits=f.length,t.maximumFractionDigits=f.length+m.length):(t.minimumFractionDigits=d.length,t.maximumFractionDigits=d.length),""});var o=s.options[0];o==="w"?t=X(X({},t),{trailingZeroDisplay:"stripIfInteger"}):o&&(t=X(X({},t),Ns(o)));continue}if(un.test(s.stem)){t=X(X({},t),Ns(s.stem));continue}var n=fn(s.stem);n&&(t=X(X({},t),n));var a=xd(s.stem);a&&(t=X(X({},t),a))}return t}var Zt={"001":["H","h"],419:["h","H","hB","hb"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["h","H","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["h","H","hB","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["h","H","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["h","H","hB","hb"],CU:["h","H","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["h","H","hB","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["h","H","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["h","H","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["h","H","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["h","H","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["h","H","hB","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["h","H","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["h","H","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["h","H","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"en-HK":["h","hb","H","hB"],"en-IL":["H","h","hb","hB"],"en-MY":["h","hb","H","hB"],"es-BR":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function Ed(r,t){for(var e="",i=0;i<r.length;i++){var s=r.charAt(i);if(s==="j"){for(var o=0;i+1<r.length&&r.charAt(i+1)===s;)o++,i++;var n=1+(o&1),a=o<2?1:3+(o>>1),l="a",d=Cd(t);for((d=="H"||d=="k")&&(a=0);a-- >0;)e+=l;for(;n-- >0;)e=d+e}else s==="J"?e+="H":e+=s}return e}function Cd(r){var t=r.hourCycle;if(t===void 0&&r.hourCycles&&r.hourCycles.length&&(t=r.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var e=r.language,i;e!=="root"&&(i=r.maximize().region);var s=Zt[i||""]||Zt[e||""]||Zt["".concat(e,"-001")]||Zt["001"];return s[0]}var $r,Sd=new RegExp("^".concat(hn.source,"*")),Ad=new RegExp("".concat(hn.source,"*$"));function O(r,t){return{start:r,end:t}}var Td=!!String.prototype.startsWith&&"_a".startsWith("a",1),Id=!!String.fromCodePoint,Od=!!Object.fromEntries,Nd=!!String.prototype.codePointAt,kd=!!String.prototype.trimStart,Md=!!String.prototype.trimEnd,Ld=!!Number.isSafeInteger,Bd=Ld?Number.isSafeInteger:function(r){return typeof r=="number"&&isFinite(r)&&Math.floor(r)===r&&Math.abs(r)<=9007199254740991},bi=!0;try{var Rd=mn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");bi=(($r=Rd.exec("a"))===null||$r===void 0?void 0:$r[0])==="a"}catch(r){bi=!1}var Ms=Td?function(t,e,i){return t.startsWith(e,i)}:function(t,e,i){return t.slice(i,i+e.length)===e},vi=Id?String.fromCodePoint:function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var i="",s=t.length,o=0,n;s>o;){if(n=t[o++],n>1114111)throw RangeError(n+" is not a valid code point");i+=n<65536?String.fromCharCode(n):String.fromCharCode(((n-=65536)>>10)+55296,n%1024+56320)}return i},Ls=Od?Object.fromEntries:function(t){for(var e={},i=0,s=t;i<s.length;i++){var o=s[i],n=o[0],a=o[1];e[n]=a}return e},pn=Nd?function(t,e){return t.codePointAt(e)}:function(t,e){var i=t.length;if(!(e<0||e>=i)){var s=t.charCodeAt(e),o;return s<55296||s>56319||e+1===i||(o=t.charCodeAt(e+1))<56320||o>57343?s:(s-55296<<10)+(o-56320)+65536}},Dd=kd?function(t){return t.trimStart()}:function(t){return t.replace(Sd,"")},Hd=Md?function(t){return t.trimEnd()}:function(t){return t.replace(Ad,"")};function mn(r,t){return new RegExp(r,t)}var yi;if(bi){var Bs=mn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");yi=function(t,e){var i;Bs.lastIndex=e;var s=Bs.exec(t);return(i=s[1])!==null&&i!==void 0?i:""}}else yi=function(t,e){for(var i=[];;){var s=pn(t,e);if(s===void 0||_n(s)||$d(s))break;i.push(s),e+=s>=65536?2:1}return vi.apply(void 0,i)};var zd=function(){function r(t,e){e===void 0&&(e={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!e.ignoreTag,this.locale=e.locale,this.requiresOtherClause=!!e.requiresOtherClause,this.shouldParseSkeletons=!!e.shouldParseSkeletons}return r.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},r.prototype.parseMessage=function(t,e,i){for(var s=[];!this.isEOF();){var o=this.char();if(o===123){var n=this.parseArgument(t,i);if(n.err)return n;s.push(n.val)}else{if(o===125&&t>0)break;if(o===35&&(e==="plural"||e==="selectordinal")){var a=this.clonePosition();this.bump(),s.push({type:j.pound,location:O(a,this.clonePosition())})}else if(o===60&&!this.ignoreTag&&this.peek()===47){if(i)break;return this.error(T.UNMATCHED_CLOSING_TAG,O(this.clonePosition(),this.clonePosition()))}else if(o===60&&!this.ignoreTag&&wi(this.peek()||0)){var n=this.parseTag(t,e);if(n.err)return n;s.push(n.val)}else{var n=this.parseLiteral(t,e);if(n.err)return n;s.push(n.val)}}}return{val:s,err:null}},r.prototype.parseTag=function(t,e){var i=this.clonePosition();this.bump();var s=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:j.literal,value:"<".concat(s,"/>"),location:O(i,this.clonePosition())},err:null};if(this.bumpIf(">")){var o=this.parseMessage(t+1,e,!0);if(o.err)return o;var n=o.val,a=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!wi(this.char()))return this.error(T.INVALID_TAG,O(a,this.clonePosition()));var l=this.clonePosition(),d=this.parseTagName();return s!==d?this.error(T.UNMATCHED_CLOSING_TAG,O(l,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:j.tag,value:s,children:n,location:O(i,this.clonePosition())},err:null}:this.error(T.INVALID_TAG,O(a,this.clonePosition())))}else return this.error(T.UNCLOSED_TAG,O(i,this.clonePosition()))}else return this.error(T.INVALID_TAG,O(i,this.clonePosition()))},r.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&Vd(this.char());)this.bump();return this.message.slice(t,this.offset())},r.prototype.parseLiteral=function(t,e){for(var i=this.clonePosition(),s="";;){var o=this.tryParseQuote(e);if(o){s+=o;continue}var n=this.tryParseUnquoted(t,e);if(n){s+=n;continue}var a=this.tryParseLeftAngleBracket();if(a){s+=a;continue}break}var l=O(i,this.clonePosition());return{val:{type:j.literal,value:s,location:l},err:null}},r.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!Fd(this.peek()||0))?(this.bump(),"<"):null},r.prototype.tryParseQuote=function(t){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(t==="plural"||t==="selectordinal")break;return null;default:return null}this.bump();var e=[this.char()];for(this.bump();!this.isEOF();){var i=this.char();if(i===39)if(this.peek()===39)e.push(39),this.bump();else{this.bump();break}else e.push(i);this.bump()}return vi.apply(void 0,e)},r.prototype.tryParseUnquoted=function(t,e){if(this.isEOF())return null;var i=this.char();return i===60||i===123||i===35&&(e==="plural"||e==="selectordinal")||i===125&&t>0?null:(this.bump(),vi(i))},r.prototype.parseArgument=function(t,e){var i=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(T.EXPECT_ARGUMENT_CLOSING_BRACE,O(i,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(T.EMPTY_ARGUMENT,O(i,this.clonePosition()));var s=this.parseIdentifierIfPossible().value;if(!s)return this.error(T.MALFORMED_ARGUMENT,O(i,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(T.EXPECT_ARGUMENT_CLOSING_BRACE,O(i,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:j.argument,value:s,location:O(i,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(T.EXPECT_ARGUMENT_CLOSING_BRACE,O(i,this.clonePosition())):this.parseArgumentOptions(t,e,s,i);default:return this.error(T.MALFORMED_ARGUMENT,O(i,this.clonePosition()))}},r.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),e=this.offset(),i=yi(this.message,e),s=e+i.length;this.bumpTo(s);var o=this.clonePosition(),n=O(t,o);return{value:i,location:n}},r.prototype.parseArgumentOptions=function(t,e,i,s){var o,n=this.clonePosition(),a=this.parseIdentifierIfPossible().value,l=this.clonePosition();switch(a){case"":return this.error(T.EXPECT_ARGUMENT_TYPE,O(n,l));case"number":case"date":case"time":{this.bumpSpace();var d=null;if(this.bumpIf(",")){this.bumpSpace();var h=this.clonePosition(),u=this.parseSimpleArgStyleIfPossible();if(u.err)return u;var f=Hd(u.val);if(f.length===0)return this.error(T.EXPECT_ARGUMENT_STYLE,O(this.clonePosition(),this.clonePosition()));var m=O(h,this.clonePosition());d={style:f,styleLocation:m}}var _=this.tryParseArgumentClose(s);if(_.err)return _;var b=O(s,this.clonePosition());if(d&&Ms(d==null?void 0:d.style,"::",0)){var w=Dd(d.style.slice(2));if(a==="number"){var u=this.parseNumberSkeletonFromString(w,d.styleLocation);return u.err?u:{val:{type:j.number,value:i,location:b,style:u.val},err:null}}else{if(w.length===0)return this.error(T.EXPECT_DATE_TIME_SKELETON,b);var y=w;this.locale&&(y=Ed(w,this.locale));var f={type:it.dateTime,pattern:y,location:d.styleLocation,parsedOptions:this.shouldParseSkeletons?gd(y):{}},v=a==="date"?j.date:j.time;return{val:{type:v,value:i,location:b,style:f},err:null}}}return{val:{type:a==="number"?j.number:a==="date"?j.date:j.time,value:i,location:b,style:(o=d==null?void 0:d.style)!==null&&o!==void 0?o:null},err:null}}case"plural":case"selectordinal":case"select":{var C=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(T.EXPECT_SELECT_ARGUMENT_OPTIONS,O(C,lr({},C)));this.bumpSpace();var E=this.parseIdentifierIfPossible(),S=0;if(a!=="select"&&E.value==="offset"){if(!this.bumpIf(":"))return this.error(T.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,O(this.clonePosition(),this.clonePosition()));this.bumpSpace();var u=this.tryParseDecimalInteger(T.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,T.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(u.err)return u;this.bumpSpace(),E=this.parseIdentifierIfPossible(),S=u.val}var $=this.tryParsePluralOrSelectOptions(t,a,e,E);if($.err)return $;var _=this.tryParseArgumentClose(s);if(_.err)return _;var L=O(s,this.clonePosition());return a==="select"?{val:{type:j.select,value:i,options:Ls($.val),location:L},err:null}:{val:{type:j.plural,value:i,options:Ls($.val),offset:S,pluralType:a==="plural"?"cardinal":"ordinal",location:L},err:null}}default:return this.error(T.INVALID_ARGUMENT_TYPE,O(n,l))}},r.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(T.EXPECT_ARGUMENT_CLOSING_BRACE,O(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},r.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,e=this.clonePosition();!this.isEOF();){var i=this.char();switch(i){case 39:{this.bump();var s=this.clonePosition();if(!this.bumpUntil("'"))return this.error(T.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,O(s,this.clonePosition()));this.bump();break}case 123:{t+=1,this.bump();break}case 125:{if(t>0)t-=1;else return{val:this.message.slice(e.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(e.offset,this.offset()),err:null}},r.prototype.parseNumberSkeletonFromString=function(t,e){var i=[];try{i=vd(t)}catch(s){return this.error(T.INVALID_NUMBER_SKELETON,e)}return{val:{type:it.number,tokens:i,location:e,parsedOptions:this.shouldParseSkeletons?Pd(i):{}},err:null}},r.prototype.tryParsePluralOrSelectOptions=function(t,e,i,s){for(var o,n=!1,a=[],l=new Set,d=s.value,h=s.location;;){if(d.length===0){var u=this.clonePosition();if(e!=="select"&&this.bumpIf("=")){var f=this.tryParseDecimalInteger(T.EXPECT_PLURAL_ARGUMENT_SELECTOR,T.INVALID_PLURAL_ARGUMENT_SELECTOR);if(f.err)return f;h=O(u,this.clonePosition()),d=this.message.slice(u.offset,this.offset())}else break}if(l.has(d))return this.error(e==="select"?T.DUPLICATE_SELECT_ARGUMENT_SELECTOR:T.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,h);d==="other"&&(n=!0),this.bumpSpace();var m=this.clonePosition();if(!this.bumpIf("{"))return this.error(e==="select"?T.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:T.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,O(this.clonePosition(),this.clonePosition()));var _=this.parseMessage(t+1,e,i);if(_.err)return _;var b=this.tryParseArgumentClose(m);if(b.err)return b;a.push([d,{value:_.val,location:O(m,this.clonePosition())}]),l.add(d),this.bumpSpace(),o=this.parseIdentifierIfPossible(),d=o.value,h=o.location}return a.length===0?this.error(e==="select"?T.EXPECT_SELECT_ARGUMENT_SELECTOR:T.EXPECT_PLURAL_ARGUMENT_SELECTOR,O(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!n?this.error(T.MISSING_OTHER_CLAUSE,O(this.clonePosition(),this.clonePosition())):{val:a,err:null}},r.prototype.tryParseDecimalInteger=function(t,e){var i=1,s=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(i=-1);for(var o=!1,n=0;!this.isEOF();){var a=this.char();if(a>=48&&a<=57)o=!0,n=n*10+(a-48),this.bump();else break}var l=O(s,this.clonePosition());return o?(n*=i,Bd(n)?{val:n,err:null}:this.error(e,l)):this.error(t,l)},r.prototype.offset=function(){return this.position.offset},r.prototype.isEOF=function(){return this.offset()===this.message.length},r.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},r.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var e=pn(this.message,t);if(e===void 0)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return e},r.prototype.error=function(t,e){return{val:null,err:{kind:t,message:this.message,location:e}}},r.prototype.bump=function(){if(!this.isEOF()){var t=this.char();t===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2)}},r.prototype.bumpIf=function(t){if(Ms(this.message,t,this.offset())){for(var e=0;e<t.length;e++)this.bump();return!0}return!1},r.prototype.bumpUntil=function(t){var e=this.offset(),i=this.message.indexOf(t,e);return i>=0?(this.bumpTo(i),!0):(this.bumpTo(this.message.length),!1)},r.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset ".concat(t," must be greater than or equal to the current offset ").concat(this.offset()));for(t=Math.min(t,this.message.length);;){var e=this.offset();if(e===t)break;if(e>t)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},r.prototype.bumpSpace=function(){for(;!this.isEOF()&&_n(this.char());)this.bump()},r.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),e=this.offset(),i=this.message.charCodeAt(e+(t>=65536?2:1));return i!=null?i:null},r}();function wi(r){return r>=97&&r<=122||r>=65&&r<=90}function Fd(r){return wi(r)||r===47}function Vd(r){return r===45||r===46||r>=48&&r<=57||r===95||r>=97&&r<=122||r>=65&&r<=90||r==183||r>=192&&r<=214||r>=216&&r<=246||r>=248&&r<=893||r>=895&&r<=8191||r>=8204&&r<=8205||r>=8255&&r<=8256||r>=8304&&r<=8591||r>=11264&&r<=12271||r>=12289&&r<=55295||r>=63744&&r<=64975||r>=65008&&r<=65533||r>=65536&&r<=983039}function _n(r){return r>=9&&r<=13||r===32||r===133||r>=8206&&r<=8207||r===8232||r===8233}function $d(r){return r>=33&&r<=35||r===36||r>=37&&r<=39||r===40||r===41||r===42||r===43||r===44||r===45||r>=46&&r<=47||r>=58&&r<=59||r>=60&&r<=62||r>=63&&r<=64||r===91||r===92||r===93||r===94||r===96||r===123||r===124||r===125||r===126||r===161||r>=162&&r<=165||r===166||r===167||r===169||r===171||r===172||r===174||r===176||r===177||r===182||r===187||r===191||r===215||r===247||r>=8208&&r<=8213||r>=8214&&r<=8215||r===8216||r===8217||r===8218||r>=8219&&r<=8220||r===8221||r===8222||r===8223||r>=8224&&r<=8231||r>=8240&&r<=8248||r===8249||r===8250||r>=8251&&r<=8254||r>=8257&&r<=8259||r===8260||r===8261||r===8262||r>=8263&&r<=8273||r===8274||r===8275||r>=8277&&r<=8286||r>=8592&&r<=8596||r>=8597&&r<=8601||r>=8602&&r<=8603||r>=8604&&r<=8607||r===8608||r>=8609&&r<=8610||r===8611||r>=8612&&r<=8613||r===8614||r>=8615&&r<=8621||r===8622||r>=8623&&r<=8653||r>=8654&&r<=8655||r>=8656&&r<=8657||r===8658||r===8659||r===8660||r>=8661&&r<=8691||r>=8692&&r<=8959||r>=8960&&r<=8967||r===8968||r===8969||r===8970||r===8971||r>=8972&&r<=8991||r>=8992&&r<=8993||r>=8994&&r<=9e3||r===9001||r===9002||r>=9003&&r<=9083||r===9084||r>=9085&&r<=9114||r>=9115&&r<=9139||r>=9140&&r<=9179||r>=9180&&r<=9185||r>=9186&&r<=9254||r>=9255&&r<=9279||r>=9280&&r<=9290||r>=9291&&r<=9311||r>=9472&&r<=9654||r===9655||r>=9656&&r<=9664||r===9665||r>=9666&&r<=9719||r>=9720&&r<=9727||r>=9728&&r<=9838||r===9839||r>=9840&&r<=10087||r===10088||r===10089||r===10090||r===10091||r===10092||r===10093||r===10094||r===10095||r===10096||r===10097||r===10098||r===10099||r===10100||r===10101||r>=10132&&r<=10175||r>=10176&&r<=10180||r===10181||r===10182||r>=10183&&r<=10213||r===10214||r===10215||r===10216||r===10217||r===10218||r===10219||r===10220||r===10221||r===10222||r===10223||r>=10224&&r<=10239||r>=10240&&r<=10495||r>=10496&&r<=10626||r===10627||r===10628||r===10629||r===10630||r===10631||r===10632||r===10633||r===10634||r===10635||r===10636||r===10637||r===10638||r===10639||r===10640||r===10641||r===10642||r===10643||r===10644||r===10645||r===10646||r===10647||r===10648||r>=10649&&r<=10711||r===10712||r===10713||r===10714||r===10715||r>=10716&&r<=10747||r===10748||r===10749||r>=10750&&r<=11007||r>=11008&&r<=11055||r>=11056&&r<=11076||r>=11077&&r<=11078||r>=11079&&r<=11084||r>=11085&&r<=11123||r>=11124&&r<=11125||r>=11126&&r<=11157||r===11158||r>=11159&&r<=11263||r>=11776&&r<=11777||r===11778||r===11779||r===11780||r===11781||r>=11782&&r<=11784||r===11785||r===11786||r===11787||r===11788||r===11789||r>=11790&&r<=11798||r===11799||r>=11800&&r<=11801||r===11802||r===11803||r===11804||r===11805||r>=11806&&r<=11807||r===11808||r===11809||r===11810||r===11811||r===11812||r===11813||r===11814||r===11815||r===11816||r===11817||r>=11818&&r<=11822||r===11823||r>=11824&&r<=11833||r>=11834&&r<=11835||r>=11836&&r<=11839||r===11840||r===11841||r===11842||r>=11843&&r<=11855||r>=11856&&r<=11857||r===11858||r>=11859&&r<=11903||r>=12289&&r<=12291||r===12296||r===12297||r===12298||r===12299||r===12300||r===12301||r===12302||r===12303||r===12304||r===12305||r>=12306&&r<=12307||r===12308||r===12309||r===12310||r===12311||r===12312||r===12313||r===12314||r===12315||r===12316||r===12317||r>=12318&&r<=12319||r===12320||r===12336||r===64830||r===64831||r>=65093&&r<=65094}function xi(r){r.forEach(function(t){if(delete t.location,nn(t)||an(t))for(var e in t.options)delete t.options[e].location,xi(t.options[e].value);else rn(t)&&dn(t.style)||(sn(t)||on(t))&&gi(t.style)?delete t.style.location:ln(t)&&xi(t.children)})}function Ud(r,t){t===void 0&&(t={}),t=lr({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var e=new zd(r,t).parse();if(e.err){var i=SyntaxError(T[e.err.kind]);throw i.location=e.err.location,i.originalMessage=e.err.message,i}return t!=null&&t.captureLocation||xi(e.val),e.val}var st;(function(r){r.MISSING_VALUE="MISSING_VALUE",r.INVALID_VALUE="INVALID_VALUE",r.MISSING_INTL_API="MISSING_INTL_API"})(st||(st={}));var xr=function(r){wr(t,r);function t(e,i,s){var o=r.call(this,e)||this;return o.code=i,o.originalMessage=s,o}return t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),Rs=function(r){wr(t,r);function t(e,i,s,o){return r.call(this,'Invalid values for "'.concat(e,'": "').concat(i,'". Options are "').concat(Object.keys(s).join('", "'),'"'),st.INVALID_VALUE,o)||this}return t}(xr),jd=function(r){wr(t,r);function t(e,i,s){return r.call(this,'Value for "'.concat(e,'" must be of type ').concat(i),st.INVALID_VALUE,s)||this}return t}(xr),Gd=function(r){wr(t,r);function t(e,i){return r.call(this,'The intl string context variable "'.concat(e,'" was not provided to the string "').concat(i,'"'),st.MISSING_VALUE,i)||this}return t}(xr),fe;(function(r){r[r.literal=0]="literal",r[r.object=1]="object"})(fe||(fe={}));function Wd(r){return r.length<2?r:r.reduce(function(t,e){var i=t[t.length-1];return!i||i.type!==fe.literal||e.type!==fe.literal?t.push(e):i.value+=e.value,t},[])}function qd(r){return typeof r=="function"}function ir(r,t,e,i,s,o,n){if(r.length===1&&Is(r[0]))return[{type:fe.literal,value:r[0].value}];for(var a=[],l=0,d=r;l<d.length;l++){var h=d[l];if(Is(h)){a.push({type:fe.literal,value:h.value});continue}if(md(h)){typeof o=="number"&&a.push({type:fe.literal,value:e.getNumberFormat(t).format(o)});continue}var u=h.value;if(!(s&&u in s))throw new Gd(u,n);var f=s[u];if(pd(h)){(!f||typeof f=="string"||typeof f=="number")&&(f=typeof f=="string"||typeof f=="number"?String(f):""),a.push({type:typeof f=="string"?fe.literal:fe.object,value:f});continue}if(sn(h)){var m=typeof h.style=="string"?i.date[h.style]:gi(h.style)?h.style.parsedOptions:void 0;a.push({type:fe.literal,value:e.getDateTimeFormat(t,m).format(f)});continue}if(on(h)){var m=typeof h.style=="string"?i.time[h.style]:gi(h.style)?h.style.parsedOptions:i.time.medium;a.push({type:fe.literal,value:e.getDateTimeFormat(t,m).format(f)});continue}if(rn(h)){var m=typeof h.style=="string"?i.number[h.style]:dn(h.style)?h.style.parsedOptions:void 0;m&&m.scale&&(f=f*(m.scale||1)),a.push({type:fe.literal,value:e.getNumberFormat(t,m).format(f)});continue}if(ln(h)){var _=h.children,b=h.value,w=s[b];if(!qd(w))throw new jd(b,"function",n);var y=ir(_,t,e,i,s,o),v=w(y.map(function(S){return S.value}));Array.isArray(v)||(v=[v]),a.push.apply(a,v.map(function(S){return{type:typeof S=="string"?fe.literal:fe.object,value:S}}))}if(nn(h)){var C=h.options[f]||h.options.other;if(!C)throw new Rs(h.value,f,Object.keys(h.options),n);a.push.apply(a,ir(C.value,t,e,i,s));continue}if(an(h)){var C=h.options["=".concat(f)];if(!C){if(!Intl.PluralRules)throw new xr(`Intl.PluralRules is not available in this environment.
|
|
17
17
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
18
|
-
`,st.MISSING_INTL_API,n);var E=e.getPluralRules(t,{type:h.pluralType}).select(f-(h.offset||0));C=h.options[E]||h.options.other}if(!C)throw new Rs(h.value,f,Object.keys(h.options),n);a.push.apply(a,ir(C.value,t,e,i,s,f-(h.offset||0)));continue}}return Gd(a)}function qd(r,t){return t?Te(Te(Te({},r||{}),t||{}),Object.keys(r).reduce(function(e,i){return e[i]=Te(Te({},r[i]),t[i]||{}),e},{})):r}function Yd(r,t){return t?Object.keys(r).reduce(function(e,i){return e[i]=qd(r[i],t[i]),e},Te({},r)):r}function Ur(r){return{create:function(){return{get:function(t){return r[t]},set:function(t,e){r[t]=e}}}}}function Zd(r){return r===void 0&&(r={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:Fr(function(){for(var t,e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return new((t=Intl.NumberFormat).bind.apply(t,zr([void 0],e,!1)))},{cache:Ur(r.number),strategy:Vr.variadic}),getDateTimeFormat:Fr(function(){for(var t,e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return new((t=Intl.DateTimeFormat).bind.apply(t,zr([void 0],e,!1)))},{cache:Ur(r.dateTime),strategy:Vr.variadic}),getPluralRules:Fr(function(){for(var t,e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return new((t=Intl.PluralRules).bind.apply(t,zr([void 0],e,!1)))},{cache:Ur(r.pluralRules),strategy:Vr.variadic})}}var Xd=function(){function r(t,e,i,s){e===void 0&&(e=r.defaultLocale);var o=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(l){var d=o.formatToParts(l);if(d.length===1)return d[0].value;var h=d.reduce(function(u,f){return!u.length||f.type!==fe.literal||typeof u[u.length-1]!="string"?u.push(f.value):u[u.length-1]+=f.value,u},[]);return h.length<=1?h[0]||"":h},this.formatToParts=function(l){return ir(o.ast,o.locales,o.formatters,o.formats,l,void 0,o.message)},this.resolvedOptions=function(){var l;return{locale:((l=o.resolvedLocale)===null||l===void 0?void 0:l.toString())||Intl.NumberFormat.supportedLocalesOf(o.locales)[0]}},this.getAst=function(){return o.ast},this.locales=e,this.resolvedLocale=r.resolveLocale(e),typeof t=="string"){if(this.message=t,!r.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var n=s||{};n.formatters;var a=od(n,["formatters"]);this.ast=r.__parse(t,Te(Te({},a),{locale:this.resolvedLocale}))}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=Yd(r.formats,i),this.formatters=s&&s.formatters||Zd(this.formatterCache)}return Object.defineProperty(r,"defaultLocale",{get:function(){return r.memoizedDefaultLocale||(r.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),r.memoizedDefaultLocale},enumerable:!1,configurable:!0}),r.memoizedDefaultLocale=null,r.resolveLocale=function(t){if(typeof Intl.Locale!="undefined"){var e=Intl.NumberFormat.supportedLocalesOf(t);return e.length>0?new Intl.Locale(e[0]):new Intl.Locale(typeof t=="string"?t:t[0])}},r.__parse=$d,r.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},r}();function Jd(r,t){if(t==null)return;if(t in r)return r[t];const e=t.split(".");let i=r;for(let s=0;s<e.length;s++)if(typeof i=="object"){if(s>0){const o=e.slice(s,e.length).join(".");if(o in i){i=i[o];break}}i=i[e[s]]}else i=void 0;return i}const Me={},Kd=(r,t,e)=>e&&(t in Me||(Me[t]={}),r in Me[t]||(Me[t][r]=e),e),_n=(r,t)=>{if(t==null)return;if(t in Me&&r in Me[t])return Me[t][r];const e=Pr(t);for(let i=0;i<e.length;i++){const s=e[i],o=eh(s,r);if(o)return Kd(r,t,o)}};let Ui;const ht=yr({});function Qd(r){return Ui[r]||null}function gn(r){return r in Ui}function eh(r,t){if(!gn(r))return null;const e=Qd(r);return Jd(e,t)}function th(r){if(r==null)return;const t=Pr(r);for(let e=0;e<t.length;e++){const i=t[e];if(gn(i))return i}}function bn(r,...t){delete Me[r],ht.update(e=>(e[r]=sd.all([e[r]||{},...t]),e))}dt([ht],([r])=>Object.keys(r));ht.subscribe(r=>Ui=r);const sr={};function rh(r,t){sr[r].delete(t),sr[r].size===0&&delete sr[r]}function vn(r){return sr[r]}function ih(r){return Pr(r).map(t=>{const e=vn(t);return[t,e?[...e]:[]]}).filter(([,t])=>t.length>0)}function Pi(r){return r==null?!1:Pr(r).some(t=>{var e;return(e=vn(t))==null?void 0:e.size})}function sh(r,t){return Promise.all(t.map(i=>(rh(r,i),i().then(s=>s.default||s)))).then(i=>bn(r,...i))}const gt={};function yn(r){if(!Pi(r))return r in gt?gt[r]:Promise.resolve();const t=ih(r);return gt[r]=Promise.all(t.map(([e,i])=>sh(e,i))).then(()=>{if(Pi(r))return yn(r);delete gt[r]}),gt[r]}const oh={number:{scientific:{notation:"scientific"},engineering:{notation:"engineering"},compactLong:{notation:"compact",compactDisplay:"long"},compactShort:{notation:"compact",compactDisplay:"short"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},nh={fallbackLocale:null,loadingDelay:200,formats:oh,warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0},ah=nh;function ot(){return ah}const jr=yr(!1);var lh=Object.defineProperty,dh=Object.defineProperties,hh=Object.getOwnPropertyDescriptors,Ds=Object.getOwnPropertySymbols,uh=Object.prototype.hasOwnProperty,ch=Object.prototype.propertyIsEnumerable,Hs=(r,t,e)=>t in r?lh(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e,fh=(r,t)=>{for(var e in t||(t={}))uh.call(t,e)&&Hs(r,e,t[e]);if(Ds)for(var e of Ds(t))ch.call(t,e)&&Hs(r,e,t[e]);return r},ph=(r,t)=>dh(r,hh(t));let Ei;const dr=yr(null);function zs(r){return r.split("-").map((t,e,i)=>i.slice(0,e+1).join("-")).reverse()}function Pr(r,t=ot().fallbackLocale){const e=zs(r);return t?[...new Set([...e,...zs(t)])]:e}function Ue(){return Ei!=null?Ei:void 0}dr.subscribe(r=>{Ei=r!=null?r:void 0,typeof window!="undefined"&&r!=null&&document.documentElement.setAttribute("lang",r)});const mh=r=>{if(r&&th(r)&&Pi(r)){const{loadingDelay:t}=ot();let e;return typeof window!="undefined"&&Ue()!=null&&t?e=window.setTimeout(()=>jr.set(!0),t):jr.set(!0),yn(r).then(()=>{dr.set(r)}).finally(()=>{clearTimeout(e),jr.set(!1)})}return dr.set(r)},Be=ph(fh({},dr),{set:mh}),Er=r=>{const t=Object.create(null);return i=>{const s=JSON.stringify(i);return s in t?t[s]:t[s]=r(i)}};var _h=Object.defineProperty,hr=Object.getOwnPropertySymbols,wn=Object.prototype.hasOwnProperty,xn=Object.prototype.propertyIsEnumerable,Fs=(r,t,e)=>t in r?_h(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e,ji=(r,t)=>{for(var e in t||(t={}))wn.call(t,e)&&Fs(r,e,t[e]);if(hr)for(var e of hr(t))xn.call(t,e)&&Fs(r,e,t[e]);return r},ut=(r,t)=>{var e={};for(var i in r)wn.call(r,i)&&t.indexOf(i)<0&&(e[i]=r[i]);if(r!=null&&hr)for(var i of hr(r))t.indexOf(i)<0&&xn.call(r,i)&&(e[i]=r[i]);return e};const kt=(r,t)=>{const{formats:e}=ot();if(r in e&&t in e[r])return e[r][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${r} format.`)},gh=Er(r=>{var t=r,{locale:e,format:i}=t,s=ut(t,["locale","format"]);if(e==null)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return i&&(s=kt("number",i)),new Intl.NumberFormat(e,s)}),bh=Er(r=>{var t=r,{locale:e,format:i}=t,s=ut(t,["locale","format"]);if(e==null)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return i?s=kt("date",i):Object.keys(s).length===0&&(s=kt("date","short")),new Intl.DateTimeFormat(e,s)}),vh=Er(r=>{var t=r,{locale:e,format:i}=t,s=ut(t,["locale","format"]);if(e==null)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return i?s=kt("time",i):Object.keys(s).length===0&&(s=kt("time","short")),new Intl.DateTimeFormat(e,s)}),yh=(r={})=>{var t=r,{locale:e=Ue()}=t,i=ut(t,["locale"]);return gh(ji({locale:e},i))},wh=(r={})=>{var t=r,{locale:e=Ue()}=t,i=ut(t,["locale"]);return bh(ji({locale:e},i))},xh=(r={})=>{var t=r,{locale:e=Ue()}=t,i=ut(t,["locale"]);return vh(ji({locale:e},i))},Ph=Er((r,t=Ue())=>new Xd(r,t,ot().formats,{ignoreTag:ot().ignoreTag})),Eh=(r,t={})=>{var e,i,s,o;let n=t;typeof r=="object"&&(n=r,r=n.id);const{values:a,locale:l=Ue(),default:d}=n;if(l==null)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let h=_n(r,l);if(!h)h=(o=(s=(i=(e=ot()).handleMissingMessage)==null?void 0:i.call(e,{locale:l,id:r,defaultValue:d}))!=null?s:d)!=null?o:r;else if(typeof h!="string")return console.warn(`[svelte-i18n] Message with id "${r}" must be of type "string", found: "${typeof h}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),h;if(!a)return h;let u=h;try{u=Ph(h,l).format(a)}catch(f){f instanceof Error&&console.warn(`[svelte-i18n] Message "${r}" has syntax error:`,f.message)}return u},Ch=(r,t)=>xh(t).format(r),Sh=(r,t)=>wh(t).format(r),Ah=(r,t)=>yh(t).format(r),Th=(r,t=Ue())=>_n(r,t),Ih=dt([Be,ht],()=>Eh);dt([Be],()=>Ch);dt([Be],()=>Sh);dt([Be],()=>Ah);dt([Be,ht],()=>Th);window.emWidgets={topic:Vl};const Oh=r=>!!(r.toLowerCase().match(/android/i)||r.toLowerCase().match(/blackberry|bb/i)||r.toLowerCase().match(/iphone|ipad|ipod/i)||r.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i));String(Number.MAX_SAFE_INTEGER).length;function Nh({withLocale:r,translations:t}){Be.subscribe(e=>{e==null&&(ht.set(t),Be.set(r))})}function Vs(r,t){bn(r,t)}function kh(r){Be.set(r)}const $s={en:{day:"Day",month:"Month",year:"Year",goToLogin:"Back to Sign In",forgotPasswordTitle:"Forgot Password",resetPasswordSubtitle:"Please reset your password.",hasToSetPassTitle:"Reset Password",forgotPasswordEmail:"Email",forgotPasswordEmailInputError:"Email should contain '@' and a 2-3 letter long domain.",forgotPasswordEmailError:"This email does not exist.",forgotPasswordReset:"Reset Password",forgotPasswordSuccess:"Success!",forgotPasswordSuccessDescription:"We sent an email with the instructions to reset your password.",forgotNewPasswordTitle:"New Password",forgotNewPasswordPassword:"Password",forgotNewPasswordPasswordError:"The password should be 8-20 characters long, and contain at least 1 uppercase letter, 1 number and 1 special character.",forgotNewPasswordConfirmPassword:"Confirm Password",forgotNewPasswordConfirmPasswordError:"Confirm password must match the new password and must follow the same rules.",forgotNewPasswordButton:"Change Password",forgotChangePasswordTitle:"Success!",forgotChangePasswordDescription:"Your password has been changed successfully.",forgotChangePasswordLogin:"Click here to Login",simplePasswordError:"Password must be 8-20 characters long.",dobFormatError:"The format for the date of birth isn't done according with the widget documentation.",generalError:"There was an error while making your request. Please try again...",1e3:"Invalid, used or expired user key",1164:"Your new password is too similar to a previous one. Please choose a password that you haven’t used recently."},hr:{day:"Dan",month:"Mjesec",year:"Godina",goToLogin:"Natrag na prijavu",forgotPasswordTitle:"Zaboravljena lozinka",resetPasswordSubtitle:"Molimo resetirajte svoju lozinku.",hasToSetPassTitle:"Resetiraj Lozinku",forgotPasswordEmail:"Email",forgotPasswordEmailInputError:"Email treba sadržavati '@' i domenu od 2-3 slova.",forgotPasswordEmailError:"Ovaj email ne postoji.",forgotPasswordReset:"Resetiranje lozinke",forgotPasswordSuccess:"Uspjelo!",forgotPasswordSuccessDescription:"Poslali smo e-mail s uputama za ponovno postavljanje lozinke.",forgotNewPasswordTitle:"Nova Lozinka",forgotNewPasswordPassword:"Lozinka",forgotNewPasswordPasswordError:"Lozinka bi trebala imati 8-20 znakova",forgotNewPasswordConfirmPassword:"Potvrdi lozinku",forgotNewPasswordConfirmPasswordError:"Lozinka za potvrdu mora odgovarati novoj lozinci i mora slijediti ista pravila.",forgotNewPasswordButton:"Promjena lozinke",forgotChangePasswordTitle:"Uspjelo!",forgotChangePasswordDescription:"Vaša lozinka je uspješno promijenjena.",forgotChangePasswordLogin:"Kliknite ovdje za prijavu",simplePasswordError:"Lozinka mora imati 8-20 znakova.","forgotPasswordE-mail":"E-mail","forgotPasswordE-mailInputError":"E-mail treba sadržavati '@' i domenu od 2-3 slova.","forgotPasswordE-mailError":"Ovaj E-mail ne postoji.",dobFormatError:"Format datuma rođenja nije u skladu s dokumentacijom widgeta.",generalError:"Došlo je do pogreške prilikom obrade vašeg zahtjeva. Molimo pokušajte ponovno...",1e3:"Nevažeći, korišten ili istekao korisnički ključ",1164:"Vaša nova lozinka je previše slična prethodnoj. Molimo odaberite lozinku koju nedavno niste koristili."},"zh-hk":{day:"天",month:"月",year:"年",goToLogin:"返回登錄",forgotPasswordTitle:"忘記密碼",resetPasswordSubtitle:"Please reset your password.",hasToSetPassTitle:"Reset Password",forgotPasswordEmail:"電子郵件",forgotPasswordEmailInputError:"电子邮件应包含“@”和 2-3 个字母长的域。",forgotPasswordEmailError:"此電子郵件不存在。",forgotPasswordReset:"重設密碼",forgotPasswordSuccess:"成功!",forgotPasswordSuccessDescription:"我們發送了一封電子郵件,其中包含重置密碼的說明。",forgotNewPasswordTitle:"新密碼",forgotNewPasswordPassword:"密碼",forgotNewPasswordPasswordError:"密碼長度為 8-20 個字符,至少包含 1 個大寫字母、1 個數字和 1 個特殊字符。",forgotNewPasswordConfirmPassword:"確認密碼",forgotNewPasswordConfirmPasswordError:"確認密碼必須與新密碼匹配,並且必須遵循相同的規則。",forgotNewPasswordButton:"更改密碼",forgotChangePasswordTitle:"成功!",forgotChangePasswordDescription:"你已經成功更改密碼。",forgotChangePasswordLogin:"點擊此處登錄",simplePasswordError:"密码长度必须为 8-20 个字符。",dobFormatError:"出生日期的格式不符合小部件文件的規定。",generalError:"您的請求出現錯誤。請再試一次...",1e3:"無效、已使用或過期的用戶密鑰",1164:"您的新密碼與之前使用的密碼過於相似。請選擇一個最近未曾使用過的密碼。"},fr:{day:"Jour",month:"Mois",year:"Année",goToLogin:"Retour à la page d'accueil",forgotPasswordTitle:"Mot de passe oublié",resetPasswordSubtitle:"Please reset your password.",hasToSetPassTitle:"Reset Password",forgotPasswordEmail:"Email",forgotPasswordEmailInputError:"L'e-mail doit contenir '@' et un domaine de 2-3 lettres.",forgotPasswordEmailError:"Cette adresse mail n'existe pas",forgotPasswordReset:"Réinitialiser le mot de passe",forgotPasswordSuccess:"Succès!",forgotPasswordSuccessDescription:"Nous vous avons envoyé un e-mail contenant les instructions pour reinitialiser votre mot de passe.",forgotNewPasswordTitle:"Nouveau mot de passe",forgotNewPasswordPassword:"Mot de passe",forgotNewPasswordPasswordError:"Le mot de passe doit comporter de 8 à 20 charactères et contenir au moins une lettre majuscule, un chiffre et un caractère spécial",forgotNewPasswordConfirmPassword:"Confirmer le mot de passe",forgotNewPasswordConfirmPasswordError:"Le mot de passe de confirmation doit correspondre au nouveau mot de passe et doit suivre les mêmes règles.",forgotNewPasswordButton:"Modifier le mot de passe",forgotChangePasswordTitle:"Succès!",forgotChangePasswordDescription:"Votre mot de passe a été modifié avec succès.",forgotChangePasswordLogin:"Cliquez ici pour vous connecter",simplePasswordError:"Le mot de passe doit comporter entre 8 et 20 caractères.",dobFormatError:"Le format de la date de naissance n'est pas conforme à la documentation du widget.",generalError:"Une erreur s'est produite lors de votre demande. Veuillez réessayer...",1e3:"Clé utilisateur invalide, utilisée ou expirée",1164:"Votre nouveau mot de passe est trop similaire à un ancien. Veuillez en choisir un que vous n’avez pas utilisé récemment."},tr:{day:"Gün",month:"Ay",year:"Yıl",goToLogin:"Oturum Açmaya Geri Dön",forgotPasswordTitle:"Parolanızı mı unuttunuz",resetPasswordSubtitle:"Lütfen şifrenizi sıfırlayın.",hasToSetPassTitle:"Şifreyi yenile",forgotPasswordEmail:"E-posta",forgotPasswordEmailInputError:"E-posta '@' ve 2-3 harf uzunluğunda bir alan adı içermelidir.",forgotPasswordEmailError:"Bu e-posta mevcut değil.",forgotPasswordReset:"Şifreyi yenile",forgotPasswordSuccess:"Başarı!",forgotPasswordSuccessDescription:"Şifrenizi sıfırlama talimatlarını içeren bir e-posta gönderdik.",forgotNewPasswordTitle:"Yeni Şifre",forgotNewPasswordPassword:"Şifre",forgotNewPasswordPasswordError:"Şifre 8-20 karakter uzunluğunda olmalı ve en az 1 büyük harf, 1 rakam ve 1 özel karakter içermelidir.",forgotNewPasswordConfirmPassword:"Şifreyi Onayla",forgotNewPasswordConfirmPasswordError:"Parolayı onayla, yeni parolayla eşleşmeli ve aynı kurallara uymalıdır.",forgotNewPasswordButton:"Şifre değiştir",forgotChangePasswordTitle:"Başarı!",forgotChangePasswordDescription:"Şifreniz başarıyla değiştirildi.",forgotChangePasswordLogin:"Giriş yapmak için buraya tıklayın",simplePasswordError:"Şifre 8-20 karakter uzunluğunda olmalı ve en az 1 büyük harf, 1 rakam ve 1 özel karakter içermelidir.",dobFormatError:"Doğum tarihi formatı widget dokümantasyonuna uygun yapılmamış.",generalError:"İsteğiniz yapılırken bir hata oluştu. Lütfen tekrar deneyin...",1e3:"Geçersiz, kullanılmış veya süresi dolmuş kullanıcı anahtarı",1164:"Yeni şifreniz daha önce kullandığınız bir şifreye çok benziyor. Lütfen son zamanlarda kullanmadığınız farklı bir şifre seçin."},ro:{day:"Zi",month:"Luna",year:"An",goToLogin:"Inapoi la autentificare",forgotPasswordTitle:"Parolă Uitată",resetPasswordSubtitle:"Vă rugăm sa resetați parola.",hasToSetPassTitle:"Resetează parola",forgotPasswordEmail:"Email",forgotPasswordEmailInputError:"Email-ul ar trebui să conțină '@' și 2-3 litere.",forgotPasswordEmailError:"Acest email nu există",forgotPasswordReset:"Resetează parola",forgotPasswordSuccess:"Succes!",forgotPasswordSuccessDescription:"Am trimis un email cu instrucțiunile pentru resetarea parolei.",forgotNewPasswordTitle:"Noua parolă",forgotNewPasswordPassword:"Parola",forgotNewPasswordPasswordError:"Parola trebuie să fie între 8 si 20 de caractere, să contțină o literă mare, o cifră și un caracter special",forgotNewPasswordConfirmPassword:"Confirma parola",forgotNewPasswordConfirmPasswordError:"Parola confirmată trebuie să fie la fel ca parola nouă și să respecte aceleași reguli",forgotNewPasswordButton:"Schimbă parola",forgotChangePasswordTitle:"Succes!",forgotChangePasswordDescription:"Parola a fost schimbată cu succes.",forgotChangePasswordLogin:"Autentificare",simplePasswordError:"Parola trebuie să aibă 8-20 de caractere.",dobFormatError:"Formatul pentru data nașterii nu este realizat conform documentației widget-ului.",generalError:"A apărut o eroare în timpul solicitării dvs. Vă rugăm să încercați din nou...",1e3:"Cheie de utilizator invalidă, utilizată sau expirată",1164:"Noua parolă este prea asemănătoare cu una utilizată anterior. Vă rugăm să alegeți o parolă pe care nu ați folosit-o recent."},es:{day:"Día",month:"Mes",year:"Año",goToLogin:"Volver a iniciar sesión",forgotPasswordTitle:"Olvide mi contraseña",resetPasswordSubtitle:"Please reset your password.",hasToSetPassTitle:"Reset Password",forgotPasswordEmail:"Email",forgotPasswordEmailInputError:"Email debe contener '@' y 2-3 letras de longitud.",forgotPasswordEmailError:"Este Email no existe",forgotPasswordReset:"Reestablecer contraseña",forgotPasswordSuccess:"Éxito!",forgotPasswordSuccessDescription:"Te hemos enviado un Email con las instrucciones para Reestablecer tu contraseña.",forgotNewPasswordTitle:"Nueva contraseña",forgotNewPasswordPassword:"Contraseña",forgotNewPasswordPasswordError:"La contraseña debe tener entre 8 a 20 caracteres y contener al menos 1 letra mayúscula, 1 número y 1 carácter especial.",forgotNewPasswordConfirmPassword:"Confirmar constraseña",forgotNewPasswordConfirmPasswordError:"Confirmar contraseña debe coincidir con la Nueva contraseña y debe seguir las mismas reglas.",forgotNewPasswordButton:"Cambiar Contraseña",forgotChangePasswordTitle:"Éxito!!",forgotChangePasswordDescription:"Tu contraseña se ha cambiado con éxito",forgotChangePasswordLogin:"Click aquí para Iniciar sesión",simplePasswordError:"La contraseña debe tener entre 8 a 20 caracteres",dobFormatError:"El formato de la fecha de nacimiento no se realiza de acuerdo con la documentación del widget.",generalError:"Hubo un error al realizar su solicitud. Por favor, inténtelo de nuevo...",1e3:"Clave de usuario inválida, usada o expirada",1164:"Tu nueva contraseña es demasiado similar a una que usaste anteriormente. Por favor, elige una que no hayas usado recientemente."},pt:{day:"Dia",month:"Mês",year:"Ano",goToLogin:"Voltar a Entrar",forgotPasswordTitle:"Esqueceu sua senha",resetPasswordSubtitle:"Please reset your password.",hasToSetPassTitle:"Reset Password",forgotPasswordEmail:"E-mail",forgotPasswordEmailInputError:"O e-mail deve conter '@' e um domínio de 2 a 3 letras.",forgotPasswordEmailError:"Este e-mail não existe.",forgotPasswordReset:"Redefinir senha",forgotPasswordSuccess:"Sucesso!",forgotPasswordSuccessDescription:"Enviamos um e-mail com as instruções para redefinir sua senha.",forgotNewPasswordTitle:"Senha",forgotNewPasswordPassword:"Password",forgotNewPasswordPasswordError:"A senha deve ter de 8 a 20 caracteres e conter pelo menos 1 letra maiúscula, 1 número e 1 caractere especial.",forgotNewPasswordConfirmPassword:"Confirme sua senha",forgotNewPasswordConfirmPasswordError:"A senha de confirmação deve corresponder à nova senha e deve seguir as mesmas regras.",forgotNewPasswordButton:"Mudar senha",forgotChangePasswordTitle:"Sucesso!",forgotChangePasswordDescription:"Sua senha foi alterada com sucesso.",forgotChangePasswordLogin:"Clique aqui para entrar",simplePasswordError:"A senha deve ter de 8 a 20 caracteres.",dobFormatError:"O formato da data de nascimento não está de acordo com a documentação do widget.",generalError:"Houve um erro ao fazer sua solicitação. Por favor, tente novamente...",1e3:"Chave de usuário inválida, usada ou expirada",1164:"A sua nova palavra-passe é demasiado semelhante a uma que já usou. Por favor, escolha uma que não tenha usado recentemente."},"en-us":{day:"Day",month:"Month",year:"Year",goToLogin:"Back to Sign In",forgotPasswordTitle:"Forgot Password",resetPasswordSubtitle:"Please reset your password.",hasToSetPassTitle:"Reset Password",forgotPasswordEmail:"Email",forgotPasswordEmailInputError:"Email should contain '@' and a 2-3 letter long domain.",forgotPasswordEmailError:"This email does not exist.",forgotPasswordReset:"Reset Password",forgotPasswordSuccess:"Success!",forgotPasswordSuccessDescription:"We sent an email with the instructions to reset your password.",forgotNewPasswordTitle:"New Password",forgotNewPasswordPassword:"Password",forgotNewPasswordPasswordError:"The password should be 8-20 characters long, and contain at least 1 uppercase letter, 1 number and 1 special character.",forgotNewPasswordConfirmPassword:"Confirm Password",forgotNewPasswordConfirmPasswordError:"Confirm password must match the new password and must follow the same rules.",forgotNewPasswordButton:"Change Password",forgotChangePasswordTitle:"Success!",forgotChangePasswordDescription:"Your password has been changed successfully.",forgotChangePasswordLogin:"Click here to Login",simplePasswordError:"Password must be 8-20 characters long.",dobFormatError:"The format for the date of birth isn't done according with the widget documentation.",generalError:"There was an error while making your request. Please try again...",1e3:"Invalid, used or expired user key",1164:"Your new password is too similar to a previous one. Please choose a password that you haven’t used recently."}};function Mh(r,t){if(r){const e=document.createElement("style");e.innerHTML=t,r.appendChild(e)}}function Lh(r,t){if(!r||!t)return;const e=new URL(t);fetch(e.href).then(i=>i.text()).then(i=>{const s=document.createElement("style");s.innerHTML=i,r&&r.appendChild(s)}).catch(i=>{console.error("There was an error while trying to load client styling from URL",i)})}function Bh(r,t,e){if(window.emMessageBus){const i=document.createElement("style");window.emMessageBus.subscribe(t,s=>{i.innerHTML=s,r&&r.appendChild(i)})}}/**
|
|
18
|
+
`,st.MISSING_INTL_API,n);var E=e.getPluralRules(t,{type:h.pluralType}).select(f-(h.offset||0));C=h.options[E]||h.options.other}if(!C)throw new Rs(h.value,f,Object.keys(h.options),n);a.push.apply(a,ir(C.value,t,e,i,s,f-(h.offset||0)));continue}}return Wd(a)}function Yd(r,t){return t?Te(Te(Te({},r||{}),t||{}),Object.keys(r).reduce(function(e,i){return e[i]=Te(Te({},r[i]),t[i]||{}),e},{})):r}function Zd(r,t){return t?Object.keys(r).reduce(function(e,i){return e[i]=Yd(r[i],t[i]),e},Te({},r)):r}function Ur(r){return{create:function(){return{get:function(t){return r[t]},set:function(t,e){r[t]=e}}}}}function Xd(r){return r===void 0&&(r={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:Fr(function(){for(var t,e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return new((t=Intl.NumberFormat).bind.apply(t,zr([void 0],e,!1)))},{cache:Ur(r.number),strategy:Vr.variadic}),getDateTimeFormat:Fr(function(){for(var t,e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return new((t=Intl.DateTimeFormat).bind.apply(t,zr([void 0],e,!1)))},{cache:Ur(r.dateTime),strategy:Vr.variadic}),getPluralRules:Fr(function(){for(var t,e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return new((t=Intl.PluralRules).bind.apply(t,zr([void 0],e,!1)))},{cache:Ur(r.pluralRules),strategy:Vr.variadic})}}var Jd=function(){function r(t,e,i,s){e===void 0&&(e=r.defaultLocale);var o=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(l){var d=o.formatToParts(l);if(d.length===1)return d[0].value;var h=d.reduce(function(u,f){return!u.length||f.type!==fe.literal||typeof u[u.length-1]!="string"?u.push(f.value):u[u.length-1]+=f.value,u},[]);return h.length<=1?h[0]||"":h},this.formatToParts=function(l){return ir(o.ast,o.locales,o.formatters,o.formats,l,void 0,o.message)},this.resolvedOptions=function(){var l;return{locale:((l=o.resolvedLocale)===null||l===void 0?void 0:l.toString())||Intl.NumberFormat.supportedLocalesOf(o.locales)[0]}},this.getAst=function(){return o.ast},this.locales=e,this.resolvedLocale=r.resolveLocale(e),typeof t=="string"){if(this.message=t,!r.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var n=s||{};n.formatters;var a=nd(n,["formatters"]);this.ast=r.__parse(t,Te(Te({},a),{locale:this.resolvedLocale}))}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=Zd(r.formats,i),this.formatters=s&&s.formatters||Xd(this.formatterCache)}return Object.defineProperty(r,"defaultLocale",{get:function(){return r.memoizedDefaultLocale||(r.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),r.memoizedDefaultLocale},enumerable:!1,configurable:!0}),r.memoizedDefaultLocale=null,r.resolveLocale=function(t){if(typeof Intl.Locale!="undefined"){var e=Intl.NumberFormat.supportedLocalesOf(t);return e.length>0?new Intl.Locale(e[0]):new Intl.Locale(typeof t=="string"?t:t[0])}},r.__parse=Ud,r.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},r}();function Kd(r,t){if(t==null)return;if(t in r)return r[t];const e=t.split(".");let i=r;for(let s=0;s<e.length;s++)if(typeof i=="object"){if(s>0){const o=e.slice(s,e.length).join(".");if(o in i){i=i[o];break}}i=i[e[s]]}else i=void 0;return i}const Me={},Qd=(r,t,e)=>e&&(t in Me||(Me[t]={}),r in Me[t]||(Me[t][r]=e),e),gn=(r,t)=>{if(t==null)return;if(t in Me&&r in Me[t])return Me[t][r];const e=Pr(t);for(let i=0;i<e.length;i++){const s=e[i],o=th(s,r);if(o)return Qd(r,t,o)}};let Ui;const ht=yr({});function eh(r){return Ui[r]||null}function bn(r){return r in Ui}function th(r,t){if(!bn(r))return null;const e=eh(r);return Kd(e,t)}function rh(r){if(r==null)return;const t=Pr(r);for(let e=0;e<t.length;e++){const i=t[e];if(bn(i))return i}}function vn(r,...t){delete Me[r],ht.update(e=>(e[r]=od.all([e[r]||{},...t]),e))}dt([ht],([r])=>Object.keys(r));ht.subscribe(r=>Ui=r);const sr={};function ih(r,t){sr[r].delete(t),sr[r].size===0&&delete sr[r]}function yn(r){return sr[r]}function sh(r){return Pr(r).map(t=>{const e=yn(t);return[t,e?[...e]:[]]}).filter(([,t])=>t.length>0)}function Pi(r){return r==null?!1:Pr(r).some(t=>{var e;return(e=yn(t))==null?void 0:e.size})}function oh(r,t){return Promise.all(t.map(i=>(ih(r,i),i().then(s=>s.default||s)))).then(i=>vn(r,...i))}const gt={};function wn(r){if(!Pi(r))return r in gt?gt[r]:Promise.resolve();const t=sh(r);return gt[r]=Promise.all(t.map(([e,i])=>oh(e,i))).then(()=>{if(Pi(r))return wn(r);delete gt[r]}),gt[r]}const nh={number:{scientific:{notation:"scientific"},engineering:{notation:"engineering"},compactLong:{notation:"compact",compactDisplay:"long"},compactShort:{notation:"compact",compactDisplay:"short"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},ah={fallbackLocale:null,loadingDelay:200,formats:nh,warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0},lh=ah;function ot(){return lh}const jr=yr(!1);var dh=Object.defineProperty,hh=Object.defineProperties,uh=Object.getOwnPropertyDescriptors,Ds=Object.getOwnPropertySymbols,ch=Object.prototype.hasOwnProperty,fh=Object.prototype.propertyIsEnumerable,Hs=(r,t,e)=>t in r?dh(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e,ph=(r,t)=>{for(var e in t||(t={}))ch.call(t,e)&&Hs(r,e,t[e]);if(Ds)for(var e of Ds(t))fh.call(t,e)&&Hs(r,e,t[e]);return r},mh=(r,t)=>hh(r,uh(t));let Ei;const dr=yr(null);function zs(r){return r.split("-").map((t,e,i)=>i.slice(0,e+1).join("-")).reverse()}function Pr(r,t=ot().fallbackLocale){const e=zs(r);return t?[...new Set([...e,...zs(t)])]:e}function Ue(){return Ei!=null?Ei:void 0}dr.subscribe(r=>{Ei=r!=null?r:void 0,typeof window!="undefined"&&r!=null&&document.documentElement.setAttribute("lang",r)});const _h=r=>{if(r&&rh(r)&&Pi(r)){const{loadingDelay:t}=ot();let e;return typeof window!="undefined"&&Ue()!=null&&t?e=window.setTimeout(()=>jr.set(!0),t):jr.set(!0),wn(r).then(()=>{dr.set(r)}).finally(()=>{clearTimeout(e),jr.set(!1)})}return dr.set(r)},Be=mh(ph({},dr),{set:_h}),Er=r=>{const t=Object.create(null);return i=>{const s=JSON.stringify(i);return s in t?t[s]:t[s]=r(i)}};var gh=Object.defineProperty,hr=Object.getOwnPropertySymbols,xn=Object.prototype.hasOwnProperty,Pn=Object.prototype.propertyIsEnumerable,Fs=(r,t,e)=>t in r?gh(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e,ji=(r,t)=>{for(var e in t||(t={}))xn.call(t,e)&&Fs(r,e,t[e]);if(hr)for(var e of hr(t))Pn.call(t,e)&&Fs(r,e,t[e]);return r},ut=(r,t)=>{var e={};for(var i in r)xn.call(r,i)&&t.indexOf(i)<0&&(e[i]=r[i]);if(r!=null&&hr)for(var i of hr(r))t.indexOf(i)<0&&Pn.call(r,i)&&(e[i]=r[i]);return e};const kt=(r,t)=>{const{formats:e}=ot();if(r in e&&t in e[r])return e[r][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${r} format.`)},bh=Er(r=>{var t=r,{locale:e,format:i}=t,s=ut(t,["locale","format"]);if(e==null)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return i&&(s=kt("number",i)),new Intl.NumberFormat(e,s)}),vh=Er(r=>{var t=r,{locale:e,format:i}=t,s=ut(t,["locale","format"]);if(e==null)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return i?s=kt("date",i):Object.keys(s).length===0&&(s=kt("date","short")),new Intl.DateTimeFormat(e,s)}),yh=Er(r=>{var t=r,{locale:e,format:i}=t,s=ut(t,["locale","format"]);if(e==null)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return i?s=kt("time",i):Object.keys(s).length===0&&(s=kt("time","short")),new Intl.DateTimeFormat(e,s)}),wh=(r={})=>{var t=r,{locale:e=Ue()}=t,i=ut(t,["locale"]);return bh(ji({locale:e},i))},xh=(r={})=>{var t=r,{locale:e=Ue()}=t,i=ut(t,["locale"]);return vh(ji({locale:e},i))},Ph=(r={})=>{var t=r,{locale:e=Ue()}=t,i=ut(t,["locale"]);return yh(ji({locale:e},i))},Eh=Er((r,t=Ue())=>new Jd(r,t,ot().formats,{ignoreTag:ot().ignoreTag})),Ch=(r,t={})=>{var e,i,s,o;let n=t;typeof r=="object"&&(n=r,r=n.id);const{values:a,locale:l=Ue(),default:d}=n;if(l==null)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let h=gn(r,l);if(!h)h=(o=(s=(i=(e=ot()).handleMissingMessage)==null?void 0:i.call(e,{locale:l,id:r,defaultValue:d}))!=null?s:d)!=null?o:r;else if(typeof h!="string")return console.warn(`[svelte-i18n] Message with id "${r}" must be of type "string", found: "${typeof h}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),h;if(!a)return h;let u=h;try{u=Eh(h,l).format(a)}catch(f){f instanceof Error&&console.warn(`[svelte-i18n] Message "${r}" has syntax error:`,f.message)}return u},Sh=(r,t)=>Ph(t).format(r),Ah=(r,t)=>xh(t).format(r),Th=(r,t)=>wh(t).format(r),Ih=(r,t=Ue())=>gn(r,t),Oh=dt([Be,ht],()=>Ch);dt([Be],()=>Sh);dt([Be],()=>Ah);dt([Be],()=>Th);dt([Be,ht],()=>Ih);window.emWidgets={topic:$l};const Nh=r=>!!(r.toLowerCase().match(/android/i)||r.toLowerCase().match(/blackberry|bb/i)||r.toLowerCase().match(/iphone|ipad|ipod/i)||r.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i));String(Number.MAX_SAFE_INTEGER).length;function kh({withLocale:r,translations:t}){Be.subscribe(e=>{e==null&&(ht.set(t),Be.set(r))})}function Vs(r,t){vn(r,t)}function Mh(r){Be.set(r)}const $s={en:{day:"Day",month:"Month",year:"Year",goToLogin:"Back to Sign In",forgotPasswordTitle:"Forgot Password",resetPasswordSubtitle:"Please reset your password.",hasToSetPassTitle:"Reset Password",forgotPasswordEmail:"Email",forgotPasswordEmailInputError:"Email should contain '@' and a 2-3 letter long domain.",forgotPasswordEmailError:"This email does not exist.",forgotPasswordReset:"Reset Password",forgotPasswordSuccess:"Success!",forgotPasswordSuccessDescription:"We sent an email with the instructions to reset your password.",forgotNewPasswordTitle:"New Password",forgotNewPasswordPassword:"Password",forgotNewPasswordPasswordError:"The password should be 8-20 characters long, and contain at least 1 uppercase letter, 1 number and 1 special character.",forgotNewPasswordConfirmPassword:"Confirm Password",forgotNewPasswordConfirmPasswordError:"Confirm password must match the new password and must follow the same rules.",forgotNewPasswordButton:"Change Password",forgotChangePasswordTitle:"Success!",forgotChangePasswordDescription:"Your password has been changed successfully.",forgotChangePasswordLogin:"Click here to Login",simplePasswordError:"Password must be 8-20 characters long.",dobFormatError:"The format for the date of birth isn't done according with the widget documentation.",generalError:"There was an error while making your request. Please try again...",1e3:"Invalid, used or expired user key",1164:"Your new password is too similar to a previous one. Please choose a password that you haven’t used recently."},hr:{day:"Dan",month:"Mjesec",year:"Godina",goToLogin:"Natrag na prijavu",forgotPasswordTitle:"Zaboravljena lozinka",resetPasswordSubtitle:"Molimo resetirajte svoju lozinku.",hasToSetPassTitle:"Resetiraj Lozinku",forgotPasswordEmail:"Email",forgotPasswordEmailInputError:"Email treba sadržavati '@' i domenu od 2-3 slova.",forgotPasswordEmailError:"Ovaj email ne postoji.",forgotPasswordReset:"Resetiranje lozinke",forgotPasswordSuccess:"Uspjelo!",forgotPasswordSuccessDescription:"Poslali smo e-mail s uputama za ponovno postavljanje lozinke.",forgotNewPasswordTitle:"Nova Lozinka",forgotNewPasswordPassword:"Lozinka",forgotNewPasswordPasswordError:"Lozinka bi trebala imati 8-20 znakova",forgotNewPasswordConfirmPassword:"Potvrdi lozinku",forgotNewPasswordConfirmPasswordError:"Lozinka za potvrdu mora odgovarati novoj lozinci i mora slijediti ista pravila.",forgotNewPasswordButton:"Promjena lozinke",forgotChangePasswordTitle:"Uspjelo!",forgotChangePasswordDescription:"Vaša lozinka je uspješno promijenjena.",forgotChangePasswordLogin:"Kliknite ovdje za prijavu",simplePasswordError:"Lozinka mora imati 8-20 znakova.","forgotPasswordE-mail":"E-mail","forgotPasswordE-mailInputError":"E-mail treba sadržavati '@' i domenu od 2-3 slova.","forgotPasswordE-mailError":"Ovaj E-mail ne postoji.",dobFormatError:"Format datuma rođenja nije u skladu s dokumentacijom widgeta.",generalError:"Došlo je do pogreške prilikom obrade vašeg zahtjeva. Molimo pokušajte ponovno...",1e3:"Nevažeći, korišten ili istekao korisnički ključ",1164:"Vaša nova lozinka je previše slična prethodnoj. Molimo odaberite lozinku koju nedavno niste koristili."},"zh-hk":{day:"天",month:"月",year:"年",goToLogin:"返回登錄",forgotPasswordTitle:"忘記密碼",resetPasswordSubtitle:"Please reset your password.",hasToSetPassTitle:"Reset Password",forgotPasswordEmail:"電子郵件",forgotPasswordEmailInputError:"电子邮件应包含“@”和 2-3 个字母长的域。",forgotPasswordEmailError:"此電子郵件不存在。",forgotPasswordReset:"重設密碼",forgotPasswordSuccess:"成功!",forgotPasswordSuccessDescription:"我們發送了一封電子郵件,其中包含重置密碼的說明。",forgotNewPasswordTitle:"新密碼",forgotNewPasswordPassword:"密碼",forgotNewPasswordPasswordError:"密碼長度為 8-20 個字符,至少包含 1 個大寫字母、1 個數字和 1 個特殊字符。",forgotNewPasswordConfirmPassword:"確認密碼",forgotNewPasswordConfirmPasswordError:"確認密碼必須與新密碼匹配,並且必須遵循相同的規則。",forgotNewPasswordButton:"更改密碼",forgotChangePasswordTitle:"成功!",forgotChangePasswordDescription:"你已經成功更改密碼。",forgotChangePasswordLogin:"點擊此處登錄",simplePasswordError:"密码长度必须为 8-20 个字符。",dobFormatError:"出生日期的格式不符合小部件文件的規定。",generalError:"您的請求出現錯誤。請再試一次...",1e3:"無效、已使用或過期的用戶密鑰",1164:"您的新密碼與之前使用的密碼過於相似。請選擇一個最近未曾使用過的密碼。"},fr:{day:"Jour",month:"Mois",year:"Année",goToLogin:"Retour à la page d'accueil",forgotPasswordTitle:"Mot de passe oublié",resetPasswordSubtitle:"Please reset your password.",hasToSetPassTitle:"Reset Password",forgotPasswordEmail:"Email",forgotPasswordEmailInputError:"L'e-mail doit contenir '@' et un domaine de 2-3 lettres.",forgotPasswordEmailError:"Cette adresse mail n'existe pas",forgotPasswordReset:"Réinitialiser le mot de passe",forgotPasswordSuccess:"Succès!",forgotPasswordSuccessDescription:"Nous vous avons envoyé un e-mail contenant les instructions pour reinitialiser votre mot de passe.",forgotNewPasswordTitle:"Nouveau mot de passe",forgotNewPasswordPassword:"Mot de passe",forgotNewPasswordPasswordError:"Le mot de passe doit comporter de 8 à 20 charactères et contenir au moins une lettre majuscule, un chiffre et un caractère spécial",forgotNewPasswordConfirmPassword:"Confirmer le mot de passe",forgotNewPasswordConfirmPasswordError:"Le mot de passe de confirmation doit correspondre au nouveau mot de passe et doit suivre les mêmes règles.",forgotNewPasswordButton:"Modifier le mot de passe",forgotChangePasswordTitle:"Succès!",forgotChangePasswordDescription:"Votre mot de passe a été modifié avec succès.",forgotChangePasswordLogin:"Cliquez ici pour vous connecter",simplePasswordError:"Le mot de passe doit comporter entre 8 et 20 caractères.",dobFormatError:"Le format de la date de naissance n'est pas conforme à la documentation du widget.",generalError:"Une erreur s'est produite lors de votre demande. Veuillez réessayer...",1e3:"Clé utilisateur invalide, utilisée ou expirée",1164:"Votre nouveau mot de passe est trop similaire à un ancien. Veuillez en choisir un que vous n’avez pas utilisé récemment."},tr:{day:"Gün",month:"Ay",year:"Yıl",goToLogin:"Oturum Açmaya Geri Dön",forgotPasswordTitle:"Parolanızı mı unuttunuz",resetPasswordSubtitle:"Lütfen şifrenizi sıfırlayın.",hasToSetPassTitle:"Şifreyi yenile",forgotPasswordEmail:"E-posta",forgotPasswordEmailInputError:"E-posta '@' ve 2-3 harf uzunluğunda bir alan adı içermelidir.",forgotPasswordEmailError:"Bu e-posta mevcut değil.",forgotPasswordReset:"Şifreyi yenile",forgotPasswordSuccess:"Başarı!",forgotPasswordSuccessDescription:"Şifrenizi sıfırlama talimatlarını içeren bir e-posta gönderdik.",forgotNewPasswordTitle:"Yeni Şifre",forgotNewPasswordPassword:"Şifre",forgotNewPasswordPasswordError:"Şifre 8-20 karakter uzunluğunda olmalı ve en az 1 büyük harf, 1 rakam ve 1 özel karakter içermelidir.",forgotNewPasswordConfirmPassword:"Şifreyi Onayla",forgotNewPasswordConfirmPasswordError:"Parolayı onayla, yeni parolayla eşleşmeli ve aynı kurallara uymalıdır.",forgotNewPasswordButton:"Şifre değiştir",forgotChangePasswordTitle:"Başarı!",forgotChangePasswordDescription:"Şifreniz başarıyla değiştirildi.",forgotChangePasswordLogin:"Giriş yapmak için buraya tıklayın",simplePasswordError:"Şifre 8-20 karakter uzunluğunda olmalı ve en az 1 büyük harf, 1 rakam ve 1 özel karakter içermelidir.",dobFormatError:"Doğum tarihi formatı widget dokümantasyonuna uygun yapılmamış.",generalError:"İsteğiniz yapılırken bir hata oluştu. Lütfen tekrar deneyin...",1e3:"Geçersiz, kullanılmış veya süresi dolmuş kullanıcı anahtarı",1164:"Yeni şifreniz daha önce kullandığınız bir şifreye çok benziyor. Lütfen son zamanlarda kullanmadığınız farklı bir şifre seçin."},ro:{day:"Zi",month:"Luna",year:"An",goToLogin:"Inapoi la autentificare",forgotPasswordTitle:"Parolă Uitată",resetPasswordSubtitle:"Vă rugăm sa resetați parola.",hasToSetPassTitle:"Resetează parola",forgotPasswordEmail:"Email",forgotPasswordEmailInputError:"Email-ul ar trebui să conțină '@' și 2-3 litere.",forgotPasswordEmailError:"Acest email nu există",forgotPasswordReset:"Resetează parola",forgotPasswordSuccess:"Succes!",forgotPasswordSuccessDescription:"Am trimis un email cu instrucțiunile pentru resetarea parolei.",forgotNewPasswordTitle:"Noua parolă",forgotNewPasswordPassword:"Parola",forgotNewPasswordPasswordError:"Parola trebuie să fie între 8 si 20 de caractere, să contțină o literă mare, o cifră și un caracter special",forgotNewPasswordConfirmPassword:"Confirma parola",forgotNewPasswordConfirmPasswordError:"Parola confirmată trebuie să fie la fel ca parola nouă și să respecte aceleași reguli",forgotNewPasswordButton:"Schimbă parola",forgotChangePasswordTitle:"Succes!",forgotChangePasswordDescription:"Parola a fost schimbată cu succes.",forgotChangePasswordLogin:"Autentificare",simplePasswordError:"Parola trebuie să aibă 8-20 de caractere.",dobFormatError:"Formatul pentru data nașterii nu este realizat conform documentației widget-ului.",generalError:"A apărut o eroare în timpul solicitării dvs. Vă rugăm să încercați din nou...",1e3:"Cheie de utilizator invalidă, utilizată sau expirată",1164:"Noua parolă este prea asemănătoare cu una utilizată anterior. Vă rugăm să alegeți o parolă pe care nu ați folosit-o recent."},es:{day:"Día",month:"Mes",year:"Año",goToLogin:"Volver a iniciar sesión",forgotPasswordTitle:"Olvide mi contraseña",resetPasswordSubtitle:"Please reset your password.",hasToSetPassTitle:"Reset Password",forgotPasswordEmail:"Email",forgotPasswordEmailInputError:"Email debe contener '@' y 2-3 letras de longitud.",forgotPasswordEmailError:"Este Email no existe",forgotPasswordReset:"Reestablecer contraseña",forgotPasswordSuccess:"Éxito!",forgotPasswordSuccessDescription:"Te hemos enviado un Email con las instrucciones para Reestablecer tu contraseña.",forgotNewPasswordTitle:"Nueva contraseña",forgotNewPasswordPassword:"Contraseña",forgotNewPasswordPasswordError:"La contraseña debe tener entre 8 a 20 caracteres y contener al menos 1 letra mayúscula, 1 número y 1 carácter especial.",forgotNewPasswordConfirmPassword:"Confirmar constraseña",forgotNewPasswordConfirmPasswordError:"Confirmar contraseña debe coincidir con la Nueva contraseña y debe seguir las mismas reglas.",forgotNewPasswordButton:"Cambiar Contraseña",forgotChangePasswordTitle:"Éxito!!",forgotChangePasswordDescription:"Tu contraseña se ha cambiado con éxito",forgotChangePasswordLogin:"Click aquí para Iniciar sesión",simplePasswordError:"La contraseña debe tener entre 8 a 20 caracteres",dobFormatError:"El formato de la fecha de nacimiento no se realiza de acuerdo con la documentación del widget.",generalError:"Hubo un error al realizar su solicitud. Por favor, inténtelo de nuevo...",1e3:"Clave de usuario inválida, usada o expirada",1164:"Tu nueva contraseña es demasiado similar a una que usaste anteriormente. Por favor, elige una que no hayas usado recientemente."},pt:{day:"Dia",month:"Mês",year:"Ano",goToLogin:"Voltar a Entrar",forgotPasswordTitle:"Esqueceu sua senha",resetPasswordSubtitle:"Please reset your password.",hasToSetPassTitle:"Reset Password",forgotPasswordEmail:"E-mail",forgotPasswordEmailInputError:"O e-mail deve conter '@' e um domínio de 2 a 3 letras.",forgotPasswordEmailError:"Este e-mail não existe.",forgotPasswordReset:"Redefinir senha",forgotPasswordSuccess:"Sucesso!",forgotPasswordSuccessDescription:"Enviamos um e-mail com as instruções para redefinir sua senha.",forgotNewPasswordTitle:"Senha",forgotNewPasswordPassword:"Password",forgotNewPasswordPasswordError:"A senha deve ter de 8 a 20 caracteres e conter pelo menos 1 letra maiúscula, 1 número e 1 caractere especial.",forgotNewPasswordConfirmPassword:"Confirme sua senha",forgotNewPasswordConfirmPasswordError:"A senha de confirmação deve corresponder à nova senha e deve seguir as mesmas regras.",forgotNewPasswordButton:"Mudar senha",forgotChangePasswordTitle:"Sucesso!",forgotChangePasswordDescription:"Sua senha foi alterada com sucesso.",forgotChangePasswordLogin:"Clique aqui para entrar",simplePasswordError:"A senha deve ter de 8 a 20 caracteres.",dobFormatError:"O formato da data de nascimento não está de acordo com a documentação do widget.",generalError:"Houve um erro ao fazer sua solicitação. Por favor, tente novamente...",1e3:"Chave de usuário inválida, usada ou expirada",1164:"A sua nova palavra-passe é demasiado semelhante a uma que já usou. Por favor, escolha uma que não tenha usado recentemente."},"en-us":{day:"Day",month:"Month",year:"Year",goToLogin:"Back to Sign In",forgotPasswordTitle:"Forgot Password",resetPasswordSubtitle:"Please reset your password.",hasToSetPassTitle:"Reset Password",forgotPasswordEmail:"Email",forgotPasswordEmailInputError:"Email should contain '@' and a 2-3 letter long domain.",forgotPasswordEmailError:"This email does not exist.",forgotPasswordReset:"Reset Password",forgotPasswordSuccess:"Success!",forgotPasswordSuccessDescription:"We sent an email with the instructions to reset your password.",forgotNewPasswordTitle:"New Password",forgotNewPasswordPassword:"Password",forgotNewPasswordPasswordError:"The password should be 8-20 characters long, and contain at least 1 uppercase letter, 1 number and 1 special character.",forgotNewPasswordConfirmPassword:"Confirm Password",forgotNewPasswordConfirmPasswordError:"Confirm password must match the new password and must follow the same rules.",forgotNewPasswordButton:"Change Password",forgotChangePasswordTitle:"Success!",forgotChangePasswordDescription:"Your password has been changed successfully.",forgotChangePasswordLogin:"Click here to Login",simplePasswordError:"Password must be 8-20 characters long.",dobFormatError:"The format for the date of birth isn't done according with the widget documentation.",generalError:"There was an error while making your request. Please try again...",1e3:"Invalid, used or expired user key",1164:"Your new password is too similar to a previous one. Please choose a password that you haven’t used recently."}};function Lh(r,t){if(r){const e=document.createElement("style");e.innerHTML=t,r.appendChild(e)}}function Bh(r,t){if(!r||!t)return;const e=new URL(t);fetch(e.href).then(i=>i.text()).then(i=>{const s=document.createElement("style");s.innerHTML=i,r&&r.appendChild(s)}).catch(i=>{console.error("There was an error while trying to load client styling from URL",i)})}function Rh(r,t,e){if(window.emMessageBus){const i=document.createElement("style");window.emMessageBus.subscribe(t,s=>{i.innerHTML=s,r&&r.appendChild(i)})}}/**
|
|
19
19
|
* @license
|
|
20
20
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
21
21
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
@@ -23,43 +23,43 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
|
23
23
|
* @license
|
|
24
24
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
25
25
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
26
|
-
*/class
|
|
26
|
+
*/class Dh extends HTMLElement{static get is(){return"vaadin-lumo-styles"}}ct(Dh);/**
|
|
27
27
|
* @license
|
|
28
28
|
* Copyright 2019 Google LLC
|
|
29
29
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
30
|
-
*/const or=globalThis,Gi=or.ShadowRoot&&(or.ShadyCSS===void 0||or.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Wi=Symbol(),Us=new WeakMap;let qi=class{constructor(t,e,i){if(this._$cssResult$=!0,i!==Wi)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(Gi&&t===void 0){const i=e!==void 0&&e.length===1;i&&(t=Us.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&Us.set(e,t))}return t}toString(){return this.cssText}};const
|
|
30
|
+
*/const or=globalThis,Gi=or.ShadowRoot&&(or.ShadyCSS===void 0||or.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Wi=Symbol(),Us=new WeakMap;let qi=class{constructor(t,e,i){if(this._$cssResult$=!0,i!==Wi)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(Gi&&t===void 0){const i=e!==void 0&&e.length===1;i&&(t=Us.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&Us.set(e,t))}return t}toString(){return this.cssText}};const Hh=r=>new qi(typeof r=="string"?r:r+"",void 0,Wi),R=(r,...t)=>{const e=r.length===1?r[0]:t.reduce((i,s,o)=>i+(n=>{if(n._$cssResult$===!0)return n.cssText;if(typeof n=="number")return n;throw Error("Value passed to 'css' function must be a 'css' function result: "+n+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+r[o+1],r[0]);return new qi(e,r,Wi)},En=(r,t)=>{if(Gi)r.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(const e of t){const i=document.createElement("style"),s=or.litNonce;s!==void 0&&i.setAttribute("nonce",s),i.textContent=e.cssText,r.appendChild(i)}},js=Gi?r=>r:r=>r instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return Hh(e)})(r):r;/**
|
|
31
31
|
* @license
|
|
32
32
|
* Copyright 2017 Google LLC
|
|
33
33
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
34
|
-
*/const{is:
|
|
34
|
+
*/const{is:zh,defineProperty:Fh,getOwnPropertyDescriptor:Vh,getOwnPropertyNames:$h,getOwnPropertySymbols:Uh,getPrototypeOf:jh}=Object,Le=globalThis,Gs=Le.trustedTypes,Gh=Gs?Gs.emptyScript:"",Gr=Le.reactiveElementPolyfillSupport,St=(r,t)=>r,Ci={toAttribute(r,t){switch(t){case Boolean:r=r?Gh:null;break;case Object:case Array:r=r==null?r:JSON.stringify(r)}return r},fromAttribute(r,t){let e=r;switch(t){case Boolean:e=r!==null;break;case Number:e=r===null?null:Number(r);break;case Object:case Array:try{e=JSON.parse(r)}catch(i){e=null}}return e}},Cn=(r,t)=>!zh(r,t),Ws={attribute:!0,type:String,converter:Ci,reflect:!1,useDefault:!1,hasChanged:Cn};var Ro,Do;(Ro=Symbol.metadata)!=null||(Symbol.metadata=Symbol("metadata")),(Do=Le.litPropertyMetadata)!=null||(Le.litPropertyMetadata=new WeakMap);let Xe=class extends HTMLElement{static addInitializer(t){var e;this._$Ei(),((e=this.l)!=null?e:this.l=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=Ws){if(e.state&&(e.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((e=Object.create(e)).wrapped=!0),this.elementProperties.set(t,e),!e.noAccessor){const i=Symbol(),s=this.getPropertyDescriptor(t,i,e);s!==void 0&&Fh(this.prototype,t,s)}}static getPropertyDescriptor(t,e,i){var n;const{get:s,set:o}=(n=Vh(this.prototype,t))!=null?n:{get(){return this[e]},set(a){this[e]=a}};return{get:s,set(a){const l=s==null?void 0:s.call(this);o==null||o.call(this,a),this.requestUpdate(t,l,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){var e;return(e=this.elementProperties.get(t))!=null?e:Ws}static _$Ei(){if(this.hasOwnProperty(St("elementProperties")))return;const t=jh(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(St("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(St("properties"))){const e=this.properties,i=[...$h(e),...Uh(e)];for(const s of i)this.createProperty(s,e[s])}const t=this[Symbol.metadata];if(t!==null){const e=litPropertyMetadata.get(t);if(e!==void 0)for(const[i,s]of e)this.elementProperties.set(i,s)}this._$Eh=new Map;for(const[e,i]of this.elementProperties){const s=this._$Eu(e,i);s!==void 0&&this._$Eh.set(s,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const s of i)e.unshift(js(s))}else t!==void 0&&e.push(js(t));return e}static _$Eu(t,e){const i=e.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._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),(t=this.constructor.l)==null||t.forEach(e=>e(this))}addController(t){var e,i;((e=this._$EO)!=null?e:this._$EO=new Set).add(t),this.renderRoot!==void 0&&this.isConnected&&((i=t.hostConnected)==null||i.call(t))}removeController(t){var e;(e=this._$EO)==null||e.delete(t)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const i of e.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);t.size>0&&(this._$Ep=t)}createRenderRoot(){var e;const t=(e=this.shadowRoot)!=null?e:this.attachShadow(this.constructor.shadowRootOptions);return En(t,this.constructor.elementStyles),t}connectedCallback(){var t,e;(t=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$EO)==null||e.forEach(i=>{var s;return(s=i.hostConnected)==null?void 0:s.call(i)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$EO)==null||t.forEach(e=>{var i;return(i=e.hostDisconnected)==null?void 0:i.call(e)})}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$ET(t,e){var o;const i=this.constructor.elementProperties.get(t),s=this.constructor._$Eu(t,i);if(s!==void 0&&i.reflect===!0){const n=(((o=i.converter)==null?void 0:o.toAttribute)!==void 0?i.converter:Ci).toAttribute(e,i.type);this._$Em=t,n==null?this.removeAttribute(s):this.setAttribute(s,n),this._$Em=null}}_$AK(t,e){var o,n,a;const i=this.constructor,s=i._$Eh.get(t);if(s!==void 0&&this._$Em!==s){const l=i.getPropertyOptions(s),d=typeof l.converter=="function"?{fromAttribute:l.converter}:((o=l.converter)==null?void 0:o.fromAttribute)!==void 0?l.converter:Ci;this._$Em=s;const h=d.fromAttribute(e,l.type);this[s]=(a=h!=null?h:(n=this._$Ej)==null?void 0:n.get(s))!=null?a:h,this._$Em=null}}requestUpdate(t,e,i,s=!1,o){var n,a;if(t!==void 0){const l=this.constructor;if(s===!1&&(o=this[t]),i!=null||(i=l.getPropertyOptions(t)),!(((n=i.hasChanged)!=null?n:Cn)(o,e)||i.useDefault&&i.reflect&&o===((a=this._$Ej)==null?void 0:a.get(t))&&!this.hasAttribute(l._$Eu(t,i))))return;this.C(t,e,i)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(t,e,{useDefault:i,reflect:s,wrapped:o},n){var a,l,d;i&&!((a=this._$Ej)!=null?a:this._$Ej=new Map).has(t)&&(this._$Ej.set(t,(l=n!=null?n:e)!=null?l:this[t]),o!==!0||n!==void 0)||(this._$AL.has(t)||(this.hasUpdated||i||(e=void 0),this._$AL.set(t,e)),s===!0&&this._$Em!==t&&((d=this._$Eq)!=null?d:this._$Eq=new Set).add(t))}_$EP(){return _t(this,null,function*(){this.isUpdatePending=!0;try{yield this._$ES}catch(e){Promise.reject(e)}const t=this.scheduleUpdate();return t!=null&&(yield t),!this.isUpdatePending})}scheduleUpdate(){return this.performUpdate()}performUpdate(){var i,s;if(!this.isUpdatePending)return;if(!this.hasUpdated){if((i=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[n,a]of this._$Ep)this[n]=a;this._$Ep=void 0}const o=this.constructor.elementProperties;if(o.size>0)for(const[n,a]of o){const{wrapped:l}=a,d=this[n];l!==!0||this._$AL.has(n)||d===void 0||this.C(n,void 0,a,d)}}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),(s=this._$EO)==null||s.forEach(o=>{var n;return(n=o.hostUpdate)==null?void 0:n.call(o)}),this.update(e)):this._$EM()}catch(o){throw t=!1,this._$EM(),o}t&&this._$AE(e)}willUpdate(t){}_$AE(t){var e;(e=this._$EO)==null||e.forEach(i=>{var s;return(s=i.hostUpdated)==null?void 0:s.call(i)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&(this._$Eq=this._$Eq.forEach(e=>this._$ET(e,this[e]))),this._$EM()}updated(t){}firstUpdated(t){}};var Ho;Xe.elementStyles=[],Xe.shadowRootOptions={mode:"open"},Xe[St("elementProperties")]=new Map,Xe[St("finalized")]=new Map,Gr==null||Gr({ReactiveElement:Xe}),((Ho=Le.reactiveElementVersions)!=null?Ho:Le.reactiveElementVersions=[]).push("2.1.2");/**
|
|
35
35
|
* @license
|
|
36
36
|
* Copyright 2017 Google LLC
|
|
37
37
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
38
|
-
*/const At=globalThis,ur=At.trustedTypes,
|
|
39
|
-
\f\r]`,bt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,
|
|
40
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),
|
|
38
|
+
*/const At=globalThis,qs=r=>r,ur=At.trustedTypes,Ys=ur?ur.createPolicy("lit-html",{createHTML:r=>r}):void 0,Sn="$lit$",ke=`lit$${Math.random().toFixed(9).slice(2)}$`,An="?"+ke,Wh=`<${An}>`,Ve=document,Mt=()=>Ve.createComment(""),Lt=r=>r===null||typeof r!="object"&&typeof r!="function",Yi=Array.isArray,qh=r=>Yi(r)||typeof(r==null?void 0:r[Symbol.iterator])=="function",Wr=`[
|
|
39
|
+
\f\r]`,bt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Zs=/-->/g,Xs=/>/g,De=RegExp(`>|${Wr}(?:([^\\s"'>=/]+)(${Wr}*=${Wr}*(?:[^
|
|
40
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),Js=/'/g,Ks=/"/g,Tn=/^(?:script|style|textarea|title)$/i,nt=Symbol.for("lit-noChange"),te=Symbol.for("lit-nothing"),Qs=new WeakMap,He=Ve.createTreeWalker(Ve,129);function In(r,t){if(!Yi(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return Ys!==void 0?Ys.createHTML(t):t}const Yh=(r,t)=>{const e=r.length-1,i=[];let s,o=t===2?"<svg>":t===3?"<math>":"",n=bt;for(let a=0;a<e;a++){const l=r[a];let d,h,u=-1,f=0;for(;f<l.length&&(n.lastIndex=f,h=n.exec(l),h!==null);)f=n.lastIndex,n===bt?h[1]==="!--"?n=Zs:h[1]!==void 0?n=Xs:h[2]!==void 0?(Tn.test(h[2])&&(s=RegExp("</"+h[2],"g")),n=De):h[3]!==void 0&&(n=De):n===De?h[0]===">"?(n=s!=null?s:bt,u=-1):h[1]===void 0?u=-2:(u=n.lastIndex-h[2].length,d=h[1],n=h[3]===void 0?De:h[3]==='"'?Ks:Js):n===Ks||n===Js?n=De:n===Zs||n===Xs?n=bt:(n=De,s=void 0);const m=n===De&&r[a+1].startsWith("/>")?" ":"";o+=n===bt?l+Wh:u>=0?(i.push(d),l.slice(0,u)+Sn+l.slice(u)+ke+m):l+ke+(u===-2?a:m)}return[In(r,o+(r[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),i]};class Bt{constructor({strings:t,_$litType$:e},i){let s;this.parts=[];let o=0,n=0;const a=t.length-1,l=this.parts,[d,h]=Yh(t,e);if(this.el=Bt.createElement(d,i),He.currentNode=this.el.content,e===2||e===3){const u=this.el.content.firstChild;u.replaceWith(...u.childNodes)}for(;(s=He.nextNode())!==null&&l.length<a;){if(s.nodeType===1){if(s.hasAttributes())for(const u of s.getAttributeNames())if(u.endsWith(Sn)){const f=h[n++],m=s.getAttribute(u).split(ke),_=/([.?@])?(.*)/.exec(f);l.push({type:1,index:o,name:_[2],strings:m,ctor:_[1]==="."?Xh:_[1]==="?"?Jh:_[1]==="@"?Kh:Cr}),s.removeAttribute(u)}else u.startsWith(ke)&&(l.push({type:6,index:o}),s.removeAttribute(u));if(Tn.test(s.tagName)){const u=s.textContent.split(ke),f=u.length-1;if(f>0){s.textContent=ur?ur.emptyScript:"";for(let m=0;m<f;m++)s.append(u[m],Mt()),He.nextNode(),l.push({type:2,index:++o});s.append(u[f],Mt())}}}else if(s.nodeType===8)if(s.data===An)l.push({type:2,index:o});else{let u=-1;for(;(u=s.data.indexOf(ke,u+1))!==-1;)l.push({type:7,index:o}),u+=ke.length-1}o++}}static createElement(t,e){const i=Ve.createElement("template");return i.innerHTML=t,i}}function at(r,t,e=r,i){var n,a,l;if(t===nt)return t;let s=i!==void 0?(n=e._$Co)==null?void 0:n[i]:e._$Cl;const o=Lt(t)?void 0:t._$litDirective$;return(s==null?void 0:s.constructor)!==o&&((a=s==null?void 0:s._$AO)==null||a.call(s,!1),o===void 0?s=void 0:(s=new o(r),s._$AT(r,e,i)),i!==void 0?((l=e._$Co)!=null?l:e._$Co=[])[i]=s:e._$Cl=s),s!==void 0&&(t=at(r,s._$AS(r,t.values),s,i)),t}class Zh{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var d;const{el:{content:e},parts:i}=this._$AD,s=((d=t==null?void 0:t.creationScope)!=null?d:Ve).importNode(e,!0);He.currentNode=s;let o=He.nextNode(),n=0,a=0,l=i[0];for(;l!==void 0;){if(n===l.index){let h;l.type===2?h=new $t(o,o.nextSibling,this,t):l.type===1?h=new l.ctor(o,l.name,l.strings,this,t):l.type===6&&(h=new Qh(o,this,t)),this._$AV.push(h),l=i[++a]}n!==(l==null?void 0:l.index)&&(o=He.nextNode(),n++)}return He.currentNode=Ve,s}p(t){let e=0;for(const i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class $t{get _$AU(){var t,e;return(e=(t=this._$AM)==null?void 0:t._$AU)!=null?e:this._$Cv}constructor(t,e,i,s){var o;this.type=2,this._$AH=te,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=s,this._$Cv=(o=s==null?void 0:s.isConnected)!=null?o:!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return e!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=at(this,t,e),Lt(t)?t===te||t==null||t===""?(this._$AH!==te&&this._$AR(),this._$AH=te):t!==this._$AH&&t!==nt&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):qh(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==te&&Lt(this._$AH)?this._$AA.nextSibling.data=t:this.T(Ve.createTextNode(t)),this._$AH=t}$(t){var o;const{values:e,_$litType$:i}=t,s=typeof i=="number"?this._$AC(t):(i.el===void 0&&(i.el=Bt.createElement(In(i.h,i.h[0]),this.options)),i);if(((o=this._$AH)==null?void 0:o._$AD)===s)this._$AH.p(e);else{const n=new Zh(s,this),a=n.u(this.options);n.p(e),this.T(a),this._$AH=n}}_$AC(t){let e=Qs.get(t.strings);return e===void 0&&Qs.set(t.strings,e=new Bt(t)),e}k(t){Yi(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,s=0;for(const o of t)s===e.length?e.push(i=new $t(this.O(Mt()),this.O(Mt()),this,this.options)):i=e[s],i._$AI(o),s++;s<e.length&&(this._$AR(i&&i._$AB.nextSibling,s),e.length=s)}_$AR(t=this._$AA.nextSibling,e){var i;for((i=this._$AP)==null?void 0:i.call(this,!1,!0,e);t!==this._$AB;){const s=qs(t).nextSibling;qs(t).remove(),t=s}}setConnected(t){var e;this._$AM===void 0&&(this._$Cv=t,(e=this._$AP)==null||e.call(this,t))}}class Cr{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,i,s,o){this.type=1,this._$AH=te,this._$AN=void 0,this.element=t,this.name=e,this._$AM=s,this.options=o,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=te}_$AI(t,e=this,i,s){const o=this.strings;let n=!1;if(o===void 0)t=at(this,t,e,0),n=!Lt(t)||t!==this._$AH&&t!==nt,n&&(this._$AH=t);else{const a=t;let l,d;for(t=o[0],l=0;l<o.length-1;l++)d=at(this,a[i+l],e,l),d===nt&&(d=this._$AH[l]),n||(n=!Lt(d)||d!==this._$AH[l]),d===te?t=te:t!==te&&(t+=(d!=null?d:"")+o[l+1]),this._$AH[l]=d}n&&!s&&this.j(t)}j(t){t===te?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t!=null?t:"")}}class Xh extends Cr{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===te?void 0:t}}class Jh extends Cr{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==te)}}class Kh extends Cr{constructor(t,e,i,s,o){super(t,e,i,s,o),this.type=5}_$AI(t,e=this){var n;if((t=(n=at(this,t,e,0))!=null?n:te)===nt)return;const i=this._$AH,s=t===te&&i!==te||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,o=t!==te&&(i===te||s);s&&this.element.removeEventListener(this.name,this,i),o&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,i;typeof this._$AH=="function"?this._$AH.call((i=(e=this.options)==null?void 0:e.host)!=null?i:this.element,t):this._$AH.handleEvent(t)}}class Qh{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){at(this,t)}}const qr=At.litHtmlPolyfillSupport;var zo;qr==null||qr(Bt,$t),((zo=At.litHtmlVersions)!=null?zo:At.litHtmlVersions=[]).push("3.3.2");const eu=(r,t,e)=>{var o,n;const i=(o=e==null?void 0:e.renderBefore)!=null?o:t;let s=i._$litPart$;if(s===void 0){const a=(n=e==null?void 0:e.renderBefore)!=null?n:null;i._$litPart$=s=new $t(t.insertBefore(Mt(),a),a,void 0,e!=null?e:{})}return s._$AI(r),s};/**
|
|
41
41
|
* @license
|
|
42
42
|
* Copyright 2017 Google LLC
|
|
43
43
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
44
|
-
*/const ze=globalThis;class Qe extends Xe{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e,i;const t=super.createRenderRoot();return(i=(e=this.renderOptions).renderBefore)!=null||(e.renderBefore=t.firstChild),t}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=
|
|
44
|
+
*/const ze=globalThis;class Qe extends Xe{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e,i;const t=super.createRenderRoot();return(i=(e=this.renderOptions).renderBefore)!=null||(e.renderBefore=t.firstChild),t}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=eu(e,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 nt}}var Fo;Qe._$litElement$=!0,Qe.finalized=!0,(Fo=ze.litElementHydrateSupport)==null||Fo.call(ze,{LitElement:Qe});const Yr=ze.litElementPolyfillSupport;Yr==null||Yr({LitElement:Qe});var Vo;((Vo=ze.litElementVersions)!=null?Vo:ze.litElementVersions=[]).push("4.2.2");/**
|
|
45
45
|
* @license
|
|
46
46
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
47
47
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
48
|
-
*/const
|
|
48
|
+
*/const tu=r=>class extends r{static get properties(){return{_theme:{type:String,readOnly:!0}}}static get observedAttributes(){return[...super.observedAttributes,"theme"]}attributeChangedCallback(e,i,s){super.attributeChangedCallback(e,i,s),e==="theme"&&this._set_theme(s)}};/**
|
|
49
49
|
* @license
|
|
50
50
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
51
51
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
52
|
-
*/const
|
|
53
|
-
`)}const cr="vaadin-themable-mixin-style";function
|
|
52
|
+
*/const On=[],Si=new Set,Zi=new Set;function Nn(r){return r&&Object.prototype.hasOwnProperty.call(r,"__themes")}function ru(r){return Nn(customElements.get(r))}function iu(r=[]){return[r].flat(1/0).filter(t=>t instanceof qi?!0:(console.warn("An item in styles is not of type CSSResult. Use `unsafeCSS` or `css`."),!1))}function kn(r,t){return(r||"").split(" ").some(e=>new RegExp(`^${e.split("*").join(".*")}$`,"u").test(t))}function Mn(r){return r.map(t=>t.cssText).join(`
|
|
53
|
+
`)}const cr="vaadin-themable-mixin-style";function su(r,t){const e=document.createElement("style");e.id=cr,e.textContent=Mn(r),t.content.appendChild(e)}function ou(r){if(!r.shadowRoot)return;const t=r.constructor;if(r instanceof Qe)[...r.shadowRoot.querySelectorAll("style")].forEach(e=>e.remove()),En(r.shadowRoot,t.elementStyles);else{const e=r.shadowRoot.getElementById(cr),i=t.prototype._template;e.textContent=i.content.getElementById(cr).textContent}}function nu(r){Si.forEach(t=>{const e=t.deref();e instanceof r?ou(e):e||Si.delete(t)})}function Ln(r){if(r.prototype instanceof Qe)r.elementStyles=r.finalizeStyles(r.styles);else{const t=r.prototype._template;t.content.getElementById(cr).textContent=Mn(r.getStylesForThis())}Zi.forEach(t=>{const e=customElements.get(t);e!==r&&e.prototype instanceof r&&Ln(e)})}function au(r,t){const e=r.__themes;return!e||!t?!1:e.some(i=>i.styles.some(s=>t.some(o=>o.cssText===s.cssText)))}function ue(r,t,e={}){t=iu(t),window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.registerStyles(r,t,e):On.push({themeFor:r,styles:t,include:e.include,moduleId:e.moduleId}),r&&Zi.forEach(i=>{if(kn(r,i)&&ru(i)){const s=customElements.get(i);au(s,t)?console.warn(`Registering styles that already exist for ${i}`):(!window.Vaadin||!window.Vaadin.suppressPostFinalizeStylesWarning)&&console.warn(`The custom element definition for "${i}" was finalized before a style module was registered. Ideally, import component specific style modules before importing the corresponding custom element. This warning can be suppressed by setting "window.Vaadin.suppressPostFinalizeStylesWarning = true".`),Ln(s),nu(s)}})}function Ai(){return window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.getAllThemes():On}function lu(r=""){let t=0;return r.startsWith("lumo-")||r.startsWith("material-")?t=1:r.startsWith("vaadin-")&&(t=2),t}function Bn(r){const t=[];return r.include&&[].concat(r.include).forEach(e=>{const i=Ai().find(s=>s.moduleId===e);i?t.push(...Bn(i),...i.styles):console.warn(`Included moduleId ${e} not found in style registry`)},r.styles),t}function du(r){const t=`${r}-default-theme`,e=Ai().filter(i=>i.moduleId!==t&&kn(i.themeFor,r)).map(i=>qt(Ge({},i),{styles:[...Bn(i),...i.styles],includePriority:lu(i.moduleId)})).sort((i,s)=>s.includePriority-i.includePriority);return e.length>0?e:Ai().filter(i=>i.moduleId===t)}const Sr=r=>class extends tu(r){constructor(){super(),Si.add(new WeakRef(this))}static finalize(){if(super.finalize(),this.is&&Zi.add(this.is),this.elementStyles)return;const e=this.prototype._template;!e||Nn(this)||su(this.getStylesForThis(),e)}static finalizeStyles(e){const i=this.getStylesForThis();return e?[...[e].flat(1/0),...i]:i}static getStylesForThis(){const e=r.__themes||[],i=Object.getPrototypeOf(this.prototype),s=(i?i.constructor.__themes:[])||[];this.__themes=[...e,...s,...du(this.is)];const o=this.__themes.flatMap(n=>n.styles);return o.filter((n,a)=>a===o.lastIndexOf(n))}};/**
|
|
54
54
|
* @license
|
|
55
55
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
56
56
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
57
|
-
*/const
|
|
58
|
-
`).replace(":host","html"),document.head.insertAdjacentElement("afterbegin",e)},ft=(r,...t)=>{
|
|
57
|
+
*/const hu=(r,...t)=>{const e=document.createElement("style");e.id=r,e.textContent=t.map(i=>i.toString()).join(`
|
|
58
|
+
`).replace(":host","html"),document.head.insertAdjacentElement("afterbegin",e)},ft=(r,...t)=>{hu(`lumo-${r}`,t)};/**
|
|
59
59
|
* @license
|
|
60
60
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
61
61
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
62
|
-
*/const
|
|
62
|
+
*/const uu=R`
|
|
63
63
|
:host {
|
|
64
64
|
/* Base (background) */
|
|
65
65
|
--lumo-base-color: #fff;
|
|
@@ -144,7 +144,7 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
|
144
144
|
--lumo-disabled-text-color: GrayText;
|
|
145
145
|
}
|
|
146
146
|
}
|
|
147
|
-
`;ft("color-props",
|
|
147
|
+
`;ft("color-props",uu);const cu=R`
|
|
148
148
|
[theme~='dark'] {
|
|
149
149
|
/* Base (background) */
|
|
150
150
|
--lumo-base-color: hsl(214, 35%, 21%);
|
|
@@ -262,11 +262,11 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
|
262
262
|
pre code {
|
|
263
263
|
background: transparent;
|
|
264
264
|
}
|
|
265
|
-
`;ue("",
|
|
265
|
+
`;ue("",cu,{moduleId:"lumo-color"});/**
|
|
266
266
|
* @license
|
|
267
267
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
268
268
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
269
|
-
*/const
|
|
269
|
+
*/const fu=R`
|
|
270
270
|
:host {
|
|
271
271
|
/* Square */
|
|
272
272
|
--lumo-space-xs: 0.25rem;
|
|
@@ -289,11 +289,11 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
|
289
289
|
--lumo-space-tall-l: var(--lumo-space-l) calc(var(--lumo-space-l) / 2);
|
|
290
290
|
--lumo-space-tall-xl: var(--lumo-space-xl) calc(var(--lumo-space-xl) / 2);
|
|
291
291
|
}
|
|
292
|
-
`;ft("spacing-props",
|
|
292
|
+
`;ft("spacing-props",fu);/**
|
|
293
293
|
* @license
|
|
294
294
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
295
295
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
296
|
-
*/const
|
|
296
|
+
*/const pu=R`
|
|
297
297
|
:host {
|
|
298
298
|
/* Border radius */
|
|
299
299
|
--lumo-border-radius-s: 0.25em; /* Checkbox, badge, date-picker year indicator, etc */
|
|
@@ -393,11 +393,11 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
|
393
393
|
--vaadin-input-field-value-font-size: var(--lumo-font-size-m);
|
|
394
394
|
--vaadin-input-field-value-font-weight: 500;
|
|
395
395
|
}
|
|
396
|
-
`;ft("style-props",
|
|
396
|
+
`;ft("style-props",pu);/**
|
|
397
397
|
* @license
|
|
398
398
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
399
399
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
400
|
-
*/const
|
|
400
|
+
*/const mu=R`
|
|
401
401
|
@font-face {
|
|
402
402
|
font-family: 'lumo-icons';
|
|
403
403
|
src: url(data:application/font-woff;charset=utf-8;base64,d09GRgABAAAAABEgAAsAAAAAIjQAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABHU1VCAAABCAAAADsAAABUIIslek9TLzIAAAFEAAAAQwAAAFZAIUuKY21hcAAAAYgAAAD4AAADrsCU8d5nbHlmAAACgAAAC2cAABeAWri7U2hlYWQAAA3oAAAAMAAAADZa/6SsaGhlYQAADhgAAAAdAAAAJAbpA35obXR4AAAOOAAAABAAAACspBAAAGxvY2EAAA5IAAAAWAAAAFh57oA4bWF4cAAADqAAAAAfAAAAIAFKAXBuYW1lAAAOwAAAATEAAAIuUUJZCHBvc3QAAA/0AAABKwAAAelm8SzVeJxjYGRgYOBiMGCwY2BycfMJYeDLSSzJY5BiYGGAAJA8MpsxJzM9kYEDxgPKsYBpDiBmg4gCACY7BUgAeJxjYGS+yDiBgZWBgamKaQ8DA0MPhGZ8wGDIyAQUZWBlZsAKAtJcUxgcXjG+0mIO+p/FEMUcxDANKMwIkgMABn8MLQB4nO3SWW6DMABF0UtwCEnIPM/zhLK8LqhfXRybSP14XUYtHV9hGYQwQBNIo3cUIPkhQeM7rib1ekqnXg981XuC1qvy84lzojleh3puxL0hPjGjRU473teloEefAUNGjJkwZcacBUtWrNmwZceeA0dOnLlw5cadB09elPGhGf+j0NTI/65KfXerT6JhqKnpRKtgOpuqaTrtKjPUlqHmhto21I7pL6i6hlqY3q7qGWrfUAeGOjTUkaGODXViqFNDnRnq3FAXhro01JWhrg11Y6hbQ90Z6t5QD4Z6NNSToZ4N9WKoV0O9GerdUB+G+jTUl6GWRvkL24BkEXictVh9bFvVFb/nxvbz+7Rf/N6zHcd2bCfP+Wic1Z9N0jpNHCD9SNqqoVBgbQoMjY+pjA4hNnWa2pV1rHSIif0DGkyT2k10Kmu1Cag6huj4ZpqYBHSqJsTEJgZCG3TaVBFv595nO3ZIv4RIrPPuvefe884599zzO/cRF8G/tgn6CFFImNgkR0ggX8wlspbhSSWSdrC5ozd30s2dw5afzvgtyz9/zG9t1hV4RtF1pXolowvtzc2z6L2aYUQM45jKH9WDTvd1LRDoDASYWhfTzTyvboXz6uZX4ARX5wrF39y+HM2+CJ8d0pkyqBIqoze3D12ez4DrFoYzxI8dWwMrDlZ2DMqQAR9AROsJU+2smlTPaTTco52BVxXa2a2+I8vvqd2dVHm1LoPeTn/AZPRYGthDYOeZjBjKoFsVGulR3lGU95SeCK44oHU7MhWUGUKZDT3oSUcG2GWuh+EDDfUYA/jhIhl0TOsJNYSEu7mQmi3UzfXwZKA4BsVsHLXQYGgJW95qEtpJ1VcW9HiTriZBlFEqxsDjA09yCNUoQxxwd7KWSTt2y3GTKifkqHRCoWZc3m11Wa/dKdFgXD4kSYfkeJBKd8KMz7J8dZn/cGRCcLGDnA2Ge3bKzcvlnTDNthFWLH7Xt80ua5FMjA4WKelWv5Xo16vHuYzpRbJhhdVlftuRK0VlR27D9lu5TF0DPBi60OrHNO0AfP/uRWvhn/U3LXICE+nh+3IHPUJ8JE6GyBjZQLbjGchlrSgYngF8zyrIF4NJD3atUcgWsWunGN/UHX5B5/yg7uF87Nqp4Gf52F3gH73DjEZNRoqCKAr9giQJp5rGJABpiVE2htNhW9R8nw0jqYjCYcY4LIjwYNScf4WN06IZnZCEqsI4cFaQbo4Z1TsZBx40YhXkHOecaYE5oY37IIQ+iJJ+UsDYSun5MuRSBRZRUUhlY2DqOGajOR6zrSU/5My6l2DnusH1GQgnw5BZP7iuYM/ahcfQ7Z8y51ddfutvuwNqWQ0cBYr8fj0U0vsHpwerVaB2sWhXT2NExi2r1KUE2tUuVMnkepVQrxTmpQrZTG4iu8he8iPyM3KcPE/+RP5KPoE2CEAKclCBzXATxkYOtUY/o961PWRqsj0chRrHFBbtrjP9/P0ven5pcbRdpL94vfsy33e5+izuwz3nFLFPVNayPZx/jdG1fOChflFRvYzsW6L18efgLrSWIgvcqnGJYi4skO4xREURjbDuxKke5v0T3Mrzkt2fi31uyZlLLrqIpEuXXsMlgw442Jb0GAxjS1DM20kBoCzHLXm/jEm0IltdcvU0fEW24jgiwwRjVd9u4NJHcIyoHJcwvyVqgqj5hqBJ1ZWSJryh9p56UWhX1XbhRbW2ZopuZWsQd5y8mEQ8M+C6xjRYxZbDKWf5AgY+Qq/l6wSPk16zDFjowYuu+wjx13mfkxbyDDxadYT/LijZyI0THB+6yfLaWsRcO82zo9mWTNtpO18qlorZoIVMwSN40tky5DOQ1MCIAe24mvlsuwIIxPb10+uXDQ4uWz/9m3rj+ql7p6bufZARuPVq5tXtsn6KwfP8Jy0TeWOyNhUJN6mhX5rkUTtUppQWEMNTqEdaCGKFYKJaQrCE4JtDLYOlNEKmO5kBTPGY2A0N2sY3+dVlo1N9ycBsIGtOjQ2p/tlZvzo0ur4v6cOh8NTospB7U/X40KahoU3bGIH97dnwmtHlYffVG3R1YOwKM2vNhrPhCT5zk64sG53oS4b31aYjqe/B7+kQiXBN+b6h21hNUPMq29B8CU4elINdygMPKF1B+WBTG7Z9ZshpN/xwEuuDQZR+nuoo4CDaAiiwXmLpmukMQyPf/JMclqgL1ixZQ/nnP2VbdUODFGt2fgBvL123rlLYu/6A9ckb7F3K0/CyBMEu6aQoPscroCcacVehvyQyCZAsizsWWBkoLC+WAiWnOksLKaeuQDzGuqSk42aiYTiJ4zf9afl17SrqaTO1f+XlZAfIuYcq7/IqYMaMrksOJ6vHkOCPDq943xcCnHqVD9pHFRpMqSPXrIua1WNs+tOz1U+ciTCDpPk+c4QYJIHnYhxP/kVPAq+ahFpVhPcHp8qyarhiF+HsBU9Hrl+UZa876fbKipL0KqB6OdUveErgtOI97fZ63ae9SvWU6k2w1JfwqnUbHsYcFCJFrC/W12zIMMirWYEHxMPs6LGYSdkSZ5TsNP9PCpwnWC3HKZ1lydNjWHC2Mn3l6vL0dHn1ldP3LTSrX+vKrBqv7KmMr8p0SR6P1NqF63or6XRlIyO90f7+kf7+myOhvt4tq7f09oUiTc2/dycGgqFQcCDRLYmi1NL7fk0CknVMxEg/cdfs/TnpJMNkgqwj17B8beVazSrVbU4lG67IZYOCnWrYy3yBR9cyWcChywos3LJBEdhhFoAdYjiw0rLGm0xU5OzoGm5/ZfmHjVZpNNg6SznzGKDdwv2cCtVn6Eaxo12cfxLprpVtTcZ6hVx6dow7Yq7e8LXO8PY9Jgjoze9yCtU5FNbegcKkQMdCbt9au/te4Ebe0jkc0ukUL32eYnTpNs20h0KpUOhZPYwVcfhZnfdqeCvDfXiuCbAoYWcXERPc/mDQD3/hdF+wK4i/xv3kYfprIpAuMkk2kW3kdtS0kBIKpZwp8KxmsCyfM1MFzAss9LBkDxRyThiaqTLwKYKJVTwmWTudMyz+yks09346MDh4m72yOxCKrt1XMlQ1qPVlTEVVQ1ofdK/sCWjtZu9qGwZ8YZ9PPWlo1IV3eW3+U0aXblP39zrt+JPf6UhEQ1rUjNBULN+utyuaDNW34kpAVuSOeMTyWbSNWnooFu+QFNWQ4d/Ox4IPWx41fP/fB/Rjeoz08ezPA9TysMtmnOXfGN7Ui3xIYLDALrlDLOP09qtJuY2OeL0+QZXdRnR1nxRVBF/SOyKKPpcrn9mWzH4rH9IidE+PTNU2182+hOgSItrE1slByS24vaLvJpxOqe4Pduf3HJkZ+jLqUz9rRzB7p8gKcgWZwV1L8JtUS5Z2JxZSOCuBoMTQihMzLbCPA0KqGMAljRQjONklW/wjnXKy8vxT/Elvm3/KiMUMOoV0/vnDYlhec0SMKtt3/kKMyOt33tj2bqxQLsTjSGLl+EAsNhCnTyRGktW55EgCn/A4PlnWn+Mg8bgZrWqHxTbPwMuyy1u5YeZF2SUM7JRhddwRgiRuxpmgJmxn9ZW7XpcF3ViX/ar6ptRpGJ0S9Adg4qhb9sI3vbL7qNJV/y4i07t5TZBiho1imFoMz3gED+CtjYUxvP4SOxov4bFoNPg5aR1e+G4UgDPoedJTpogyCJ7oYvRqoVS0MQAy+CoNEdTDUjok5ZHZL/WtjV7rFj3PKQE3iKp7ou+rIxN3b9LB1dGjeT4cvKo3FrnWpYpuaFd/h3dtV8UeKN1Y9hpR3dt4p0H/zKuPQq0kZQUIIpuDfoiETsnIk+gCWMJZUXHtE8V9LkUc2TE8vOMbO4ax/MACabzyaGXc7u3FBr11ThBdB8SIeMAlCntG2KThHSPsaj2Dc9KNyY2a0KZ7ODaTHoRiFkeYz+shZBpCS4X6471KKKnuHd84edfk5F37d1XO5bbkcltu2ZLNbvnPXiUVAnVvprJrP+NObryjxrllS65md6Tm6wzFHRR4dY3QUUjb7MgxaIixU8hspi98fl/Xc+IB4iU66eCVL9YfAfahiSUt4TONS8x0D8W7u8vd3fGWx6OXlM/U1IoU/s61PGhpyXRFa3eReq2qG56lvmYtXavCC1iN7lbiBpWxXHU+cSlztVLVz0tVN600fVsLxaVDknhYioeoXP3t4lqV1r79MAw0GCI1FTL1YIGzPL1MMlJ9ZsN9P7lvA2yr9ZFUzwzPrVgxN/x/SS+chwB4nGNgZGBgAOLPrYdY4vltvjJwM78AijDUqG5oRND/XzNPZboF5HIwMIFEAU/lC+J4nGNgZGBgDvqfBSRfMAAB81QGRgZUoA0AVvYDbwAAAHicY2BgYGB+MTQwAM8EJo8AAAAAAE4AmgDoAQoBLAFOAXABmgHEAe4CGgKcAugEmgS8BNYE8gUOBSoFegXQBf4GRAZmBrYHGAeQCBgIUghqCP4JRgm+CdoKBAo+CoQKugr0C1QLmgvAeJxjYGRgYNBmTGEQZQABJiDmAkIGhv9gPgMAGJQBvAB4nG2RPU7DMBiG3/QP0UoIBGJh8QILavozdmRo9w7d09RpUzlx5LgVvQMn4BAcgoEzcAgOwVvzSZVQbcnf48fvFysJgGt8IcJxROiG9TgauODuj5ukG+EW+UG4jR4ehTv0Q+EunjER7uEWmk+IWpc0d3gVbuAKb8JN+nfhFvlDuI17fAp36L+Fu1jgR7iHp+jF7Arbz1Nb1nO93pnEncSJFtrVuS3VKB6e5EyX2iVer9TyoOr9eux9pjJnCzW1pdfGWFU5u9WpjzfeV5PBIBMfp7aAwQ4FLPrIkbKWqDHn+67pDRK4s4lzbsEux5qHvcIIMb/nueSMyTKkE3jWFdNLHLjW2PPmMa1Hxn3GjGW/wjT0HtOG09JU4WxLk9LH2ISuiv9twJn9y8fh9uIXI+BknAAAAHicbY7ZboMwEEW5CVBCSLrv+76kfJRjTwHFsdGAG+Xvy5JUfehIHp0rnxmNN/D6ir3/a4YBhvARIMQOIowQY4wEE0yxiz3s4wCHOMIxTnCKM5zjApe4wjVucIs73OMBj3jCM17wije84wMzfHqJ0EVmUkmmJo77oOmrHvfIRZbXsTCZplTZldlgb3TYGVHProwFs11t1A57tcON2rErR3PBqcwF1/6ctI6k0GSU4JHMSS6WghdJQ99sTbfuN7QLJ9vQ37dNrgyktnIxlDYLJNuqitpRbYWKFNuyDT6pog6oOYKHtKakeakqKjHXpPwlGRcsC+OqxLIiJpXqoqqDMreG2l5bv9Ri3TRX+c23DZna9WFFgmXuO6Ps1Jm/w6ErW8N3FbHn/QC444j0AA==)
|
|
@@ -450,11 +450,11 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
|
450
450
|
--lumo-icons-upload: '\\ea29';
|
|
451
451
|
--lumo-icons-user: '\\ea2a';
|
|
452
452
|
}
|
|
453
|
-
`;ft("font-icons",
|
|
453
|
+
`;ft("font-icons",mu);/**
|
|
454
454
|
* @license
|
|
455
455
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
456
456
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
457
|
-
*/const
|
|
457
|
+
*/const _u=R`
|
|
458
458
|
:host {
|
|
459
459
|
--lumo-size-xs: 1.625rem;
|
|
460
460
|
--lumo-size-s: 1.875rem;
|
|
@@ -469,11 +469,11 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
|
469
469
|
/* For backwards compatibility */
|
|
470
470
|
--lumo-icon-size: var(--lumo-icon-size-m);
|
|
471
471
|
}
|
|
472
|
-
`;ft("sizing-props",
|
|
472
|
+
`;ft("sizing-props",_u);/**
|
|
473
473
|
* @license
|
|
474
474
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
475
475
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
476
|
-
*/const
|
|
476
|
+
*/const gu=R`
|
|
477
477
|
:host {
|
|
478
478
|
/* prettier-ignore */
|
|
479
479
|
--lumo-font-family: -apple-system, BlinkMacSystemFont, 'Roboto', 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
|
|
@@ -493,7 +493,7 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
|
493
493
|
--lumo-line-height-s: 1.375;
|
|
494
494
|
--lumo-line-height-m: 1.625;
|
|
495
495
|
}
|
|
496
|
-
`,
|
|
496
|
+
`,bu=R`
|
|
497
497
|
body,
|
|
498
498
|
:host {
|
|
499
499
|
font-family: var(--lumo-font-family);
|
|
@@ -585,7 +585,7 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
|
585
585
|
border-left: none;
|
|
586
586
|
border-right: 2px solid var(--lumo-contrast-30pct);
|
|
587
587
|
}
|
|
588
|
-
`;ue("",
|
|
588
|
+
`;ue("",bu,{moduleId:"lumo-typography"});ft("typography-props",gu);const Rn=R`
|
|
589
589
|
:host {
|
|
590
590
|
display: flex;
|
|
591
591
|
align-items: center;
|
|
@@ -669,7 +669,7 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
|
669
669
|
width: var(--lumo-icon-size-m);
|
|
670
670
|
height: var(--lumo-icon-size-m);
|
|
671
671
|
}
|
|
672
|
-
`;ue("vaadin-item",
|
|
672
|
+
`;ue("vaadin-item",Rn,{moduleId:"lumo-item"});const vu=R`
|
|
673
673
|
:host {
|
|
674
674
|
transition: background-color 100ms;
|
|
675
675
|
overflow: hidden;
|
|
@@ -681,11 +681,11 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
|
681
681
|
:host([focused]:not([disabled])) {
|
|
682
682
|
box-shadow: inset 0 0 0 var(--_focus-ring-width) var(--_focus-ring-color);
|
|
683
683
|
}
|
|
684
|
-
`;ue("vaadin-combo-box-item",[
|
|
684
|
+
`;ue("vaadin-combo-box-item",[Rn,vu],{moduleId:"lumo-combo-box-item"});/**
|
|
685
685
|
* @license
|
|
686
686
|
* Copyright (c) 2022 - 2024 Vaadin Ltd.
|
|
687
687
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
688
|
-
*/const
|
|
688
|
+
*/const yu=R`
|
|
689
689
|
[part~='loader'] {
|
|
690
690
|
box-sizing: border-box;
|
|
691
691
|
width: var(--lumo-icon-size-s);
|
|
@@ -830,7 +830,7 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
|
830
830
|
opacity: 0;
|
|
831
831
|
}
|
|
832
832
|
}
|
|
833
|
-
`;ue("",Ji,{moduleId:"lumo-menu-overlay-core"});const
|
|
833
|
+
`;ue("",Ji,{moduleId:"lumo-menu-overlay-core"});const wu=R`
|
|
834
834
|
/* Small viewport (bottom sheet) styles */
|
|
835
835
|
/* Use direct media queries instead of the state attributes ([phone] and [fullscreen]) provided by the elements */
|
|
836
836
|
@media (max-width: 450px), (max-height: 450px) {
|
|
@@ -892,7 +892,7 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
|
892
892
|
transform: translateY(150%);
|
|
893
893
|
}
|
|
894
894
|
}
|
|
895
|
-
`,
|
|
895
|
+
`,xu=[Xi,Ji,wu];ue("",xu,{moduleId:"lumo-menu-overlay"});const Pu=R`
|
|
896
896
|
[part='content'] {
|
|
897
897
|
padding: 0;
|
|
898
898
|
}
|
|
@@ -913,7 +913,7 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
|
913
913
|
:host([bottom-aligned]) [part~='overlay'] {
|
|
914
914
|
margin-bottom: var(--lumo-space-xs);
|
|
915
915
|
}
|
|
916
|
-
`,
|
|
916
|
+
`,Eu=R`
|
|
917
917
|
[part~='loader'] {
|
|
918
918
|
position: absolute;
|
|
919
919
|
z-index: 1;
|
|
@@ -921,7 +921,7 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
|
921
921
|
top: var(--lumo-space-s);
|
|
922
922
|
margin-inline: auto 0;
|
|
923
923
|
}
|
|
924
|
-
`;ue("vaadin-combo-box-overlay",[Xi,Ji,
|
|
924
|
+
`;ue("vaadin-combo-box-overlay",[Xi,Ji,Pu,yu,Eu,R`
|
|
925
925
|
:host {
|
|
926
926
|
--_vaadin-combo-box-items-container-border-width: var(--lumo-space-xs);
|
|
927
927
|
--_vaadin-combo-box-items-container-border-style: solid;
|
|
@@ -1108,7 +1108,7 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
|
1108
1108
|
* @license
|
|
1109
1109
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
1110
1110
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1111
|
-
*/const
|
|
1111
|
+
*/const Dn=R`
|
|
1112
1112
|
[part$='button'] {
|
|
1113
1113
|
flex: none;
|
|
1114
1114
|
width: 1em;
|
|
@@ -1135,11 +1135,11 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
|
1135
1135
|
font-family: 'lumo-icons';
|
|
1136
1136
|
display: block;
|
|
1137
1137
|
}
|
|
1138
|
-
`;ue("",
|
|
1138
|
+
`;ue("",Dn,{moduleId:"lumo-field-button"});/**
|
|
1139
1139
|
* @license
|
|
1140
1140
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
1141
1141
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1142
|
-
*/const
|
|
1142
|
+
*/const Cu=R`
|
|
1143
1143
|
:host {
|
|
1144
1144
|
--_helper-spacing: var(--vaadin-input-field-helper-spacing, 0.4em);
|
|
1145
1145
|
}
|
|
@@ -1199,7 +1199,7 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
|
1199
1199
|
* @license
|
|
1200
1200
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
1201
1201
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1202
|
-
*/const
|
|
1202
|
+
*/const Hn=R`
|
|
1203
1203
|
[part='label'] {
|
|
1204
1204
|
align-self: flex-start;
|
|
1205
1205
|
color: var(--vaadin-input-field-label-color, var(--lumo-secondary-text-color));
|
|
@@ -1311,11 +1311,11 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
|
1311
1311
|
margin-left: 0;
|
|
1312
1312
|
margin-right: calc(var(--lumo-border-radius-m) / 4);
|
|
1313
1313
|
}
|
|
1314
|
-
`;ue("",
|
|
1314
|
+
`;ue("",Hn,{moduleId:"lumo-required-field"});/**
|
|
1315
1315
|
* @license
|
|
1316
1316
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
1317
1317
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1318
|
-
*/const
|
|
1318
|
+
*/const Su=R`
|
|
1319
1319
|
:host {
|
|
1320
1320
|
--lumo-text-field-size: var(--lumo-size-m);
|
|
1321
1321
|
color: var(--vaadin-input-field-value-color, var(--lumo-body-text-color));
|
|
@@ -1446,11 +1446,11 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
|
1446
1446
|
[part='clear-button']::before {
|
|
1447
1447
|
content: var(--lumo-icons-cross);
|
|
1448
1448
|
}
|
|
1449
|
-
`,
|
|
1449
|
+
`,zn=[Hn,Dn,Cu,Su];ue("",zn,{moduleId:"lumo-input-field-shared-styles"});const Au=R`
|
|
1450
1450
|
[part='toggle-button']::before {
|
|
1451
1451
|
content: var(--lumo-icons-dropdown);
|
|
1452
1452
|
}
|
|
1453
|
-
`;ue("vaadin-combo-box",[
|
|
1453
|
+
`;ue("vaadin-combo-box",[zn,Au],{moduleId:"lumo-combo-box"});/**
|
|
1454
1454
|
@license
|
|
1455
1455
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
1456
1456
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -1466,7 +1466,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
1466
1466
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
1467
1467
|
Code distributed by Google as part of the polymer project is also
|
|
1468
1468
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
1469
|
-
*/let
|
|
1469
|
+
*/let Tu=/(url\()([^)]*)(\))/g,Iu=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/,Xt,ve;function Tt(r,t){if(r&&Iu.test(r)||r==="//")return r;if(Xt===void 0){Xt=!1;try{const e=new URL("b","http://a");e.pathname="c%20d",Xt=e.href==="http://a/c%20d"}catch(e){}}if(t||(t=document.baseURI||window.location.href),Xt)try{return new URL(r,t).href}catch(e){return r}return ve||(ve=document.implementation.createHTMLDocument("temp"),ve.base=ve.createElement("base"),ve.head.appendChild(ve.base),ve.anchor=ve.createElement("a"),ve.body.appendChild(ve.anchor)),ve.base.href=t,ve.anchor.href=r,ve.anchor.href||r}function Ki(r,t){return r.replace(Tu,function(e,i,s,o){return i+"'"+Tt(s.replace(/["']/g,""),t)+"'"+o})}function Qi(r){return r.substring(0,r.lastIndexOf("/")+1)}/**
|
|
1470
1470
|
@license
|
|
1471
1471
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
1472
1472
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -1474,7 +1474,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
1474
1474
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
1475
1475
|
Code distributed by Google as part of the polymer project is also
|
|
1476
1476
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
1477
|
-
*/const
|
|
1477
|
+
*/const Ou=!window.ShadyDOM||!window.ShadyDOM.inUse;!window.ShadyCSS||window.ShadyCSS.nativeCss;const Nu=Ou&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype&&(()=>{try{const r=new CSSStyleSheet;r.replaceSync("");const t=document.createElement("div");return t.attachShadow({mode:"open"}),t.shadowRoot.adoptedStyleSheets=[r],t.shadowRoot.adoptedStyleSheets[0]===r}catch(r){return!1}})();let ku=window.Polymer&&window.Polymer.rootPath||Qi(document.baseURI||window.location.href),fr=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0;window.Polymer&&window.Polymer.setPassiveTouchGestures;let Ti=window.Polymer&&window.Polymer.strictTemplatePolicy||!1,Mu=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,Lu=window.Polymer&&window.Polymer.legacyOptimizations||!1,Bu=window.Polymer&&window.Polymer.legacyWarnings||!1,Ru=window.Polymer&&window.Polymer.syncInitialRender||!1,Ii=window.Polymer&&window.Polymer.legacyUndefined||!1,Du=window.Polymer&&window.Polymer.orderedComputed||!1,eo=window.Polymer&&window.Polymer.removeNestedTemplates||!1,Hu=window.Polymer&&window.Polymer.fastDomIf||!1;window.Polymer&&window.Polymer.suppressTemplateNotifications;window.Polymer&&window.Polymer.legacyNoObservedAttributes;let zu=window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1;/**
|
|
1478
1478
|
@license
|
|
1479
1479
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
1480
1480
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -1482,7 +1482,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
1482
1482
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
1483
1483
|
Code distributed by Google as part of the polymer project is also
|
|
1484
1484
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
1485
|
-
*/let
|
|
1485
|
+
*/let Fu=0;const ae=function(r){let t=r.__mixinApplications;t||(t=new WeakMap,r.__mixinApplications=t);let e=Fu++;function i(s){let o=s.__mixinSet;if(o&&o[e])return s;let n=t,a=n.get(s);if(!a){a=r(s),n.set(s,a);let l=Object.create(a.__mixinSet||o||null);l[e]=!0,a.__mixinSet=l}return a}return i};/**
|
|
1486
1486
|
@license
|
|
1487
1487
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
1488
1488
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -1490,7 +1490,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
1490
1490
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
1491
1491
|
Code distributed by Google as part of the polymer project is also
|
|
1492
1492
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
1493
|
-
*/let es={},
|
|
1493
|
+
*/let es={},Fn={};function to(r,t){es[r]=Fn[r.toLowerCase()]=t}function ro(r){return es[r]||Fn[r.toLowerCase()]}function Vu(r){r.querySelector("style")&&console.warn("dom-module %s has style outside template",r.id)}class Rt extends HTMLElement{static get observedAttributes(){return["id"]}static import(t,e){if(t){let i=ro(t);return i&&e?i.querySelector(e):i}return null}attributeChangedCallback(t,e,i,s){e!==i&&this.register()}get assetpath(){if(!this.__assetpath){const t=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument,e=Tt(this.getAttribute("assetpath")||"",t.baseURI);this.__assetpath=Qi(e)}return this.__assetpath}register(t){if(t=t||this.id,t){if(Ti&&ro(t)!==void 0)throw to(t,null),new Error(`strictTemplatePolicy: dom-module ${t} re-registered`);this.id=t,to(t,this),Vu(this)}}}Rt.prototype.modules=es;customElements.define("dom-module",Rt);/**
|
|
1494
1494
|
@license
|
|
1495
1495
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
1496
1496
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -1498,7 +1498,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
1498
1498
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
1499
1499
|
Code distributed by Google as part of the polymer project is also
|
|
1500
1500
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
1501
|
-
*/const
|
|
1501
|
+
*/const $u="link[rel=import][type~=css]",Uu="include",io="shady-unscoped";function Vn(r){return Rt.import(r)}function so(r){let t=r.body?r.body:r;const e=Ki(t.textContent,r.baseURI),i=document.createElement("style");return i.textContent=e,i}function ju(r){const t=r.trim().split(/\s+/),e=[];for(let i=0;i<t.length;i++)e.push(...Gu(t[i]));return e}function Gu(r){const t=Vn(r);if(!t)return console.warn("Could not find style data in module named",r),[];if(t._styles===void 0){const e=[];e.push(...Un(t));const i=t.querySelector("template");i&&e.push(...$n(i,t.assetpath)),t._styles=e}return t._styles}function $n(r,t){if(!r._styles){const e=[],i=r.content.querySelectorAll("style");for(let s=0;s<i.length;s++){let o=i[s],n=o.getAttribute(Uu);n&&e.push(...ju(n).filter(function(a,l,d){return d.indexOf(a)===l})),t&&(o.textContent=Ki(o.textContent,t)),e.push(o)}r._styles=e}return r._styles}function Wu(r){let t=Vn(r);return t?Un(t):[]}function Un(r){const t=[],e=r.querySelectorAll($u);for(let i=0;i<e.length;i++){let s=e[i];if(s.import){const o=s.import,n=s.hasAttribute(io);if(n&&!o._unscopedStyle){const a=so(o);a.setAttribute(io,""),o._unscopedStyle=a}else o._style||(o._style=so(o));t.push(n?o._unscopedStyle:o._style)}}return t}/**
|
|
1502
1502
|
@license
|
|
1503
1503
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
1504
1504
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -1514,7 +1514,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
1514
1514
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
1515
1515
|
Code distributed by Google as part of the polymer project is also
|
|
1516
1516
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
1517
|
-
*/function Oi(r){return r.indexOf(".")>=0}function je(r){let t=r.indexOf(".");return t===-1?r:r.slice(0,t)}function
|
|
1517
|
+
*/function Oi(r){return r.indexOf(".")>=0}function je(r){let t=r.indexOf(".");return t===-1?r:r.slice(0,t)}function qu(r,t){return r.indexOf(t+".")===0}function pr(r,t){return t.indexOf(r+".")===0}function mr(r,t,e){return t+e.slice(r.length)}function wt(r){if(Array.isArray(r)){let t=[];for(let e=0;e<r.length;e++){let i=r[e].toString().split(".");for(let s=0;s<i.length;s++)t.push(i[s])}return t.join(".")}else return r}function jn(r){return Array.isArray(r)?wt(r).split("."):r.toString().split(".")}function me(r,t,e){let i=r,s=jn(t);for(let o=0;o<s.length;o++){if(!i)return;let n=s[o];i=i[n]}return e&&(e.path=s.join(".")),i}function oo(r,t,e){let i=r,s=jn(t),o=s[s.length-1];if(s.length>1){for(let n=0;n<s.length-1;n++){let a=s[n];if(i=i[a],!i)return}i[o]=e}else i[t]=e;return s.join(".")}/**
|
|
1518
1518
|
@license
|
|
1519
1519
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
1520
1520
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -1522,7 +1522,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
1522
1522
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
1523
1523
|
Code distributed by Google as part of the polymer project is also
|
|
1524
1524
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
1525
|
-
*/const _r={},
|
|
1525
|
+
*/const _r={},Yu=/-[a-z]/g,Zu=/([A-Z])/g;function Gn(r){return _r[r]||(_r[r]=r.indexOf("-")<0?r:r.replace(Yu,t=>t[1].toUpperCase()))}function Ar(r){return _r[r]||(_r[r]=r.replace(Zu,"-$1").toLowerCase())}/**
|
|
1526
1526
|
@license
|
|
1527
1527
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
1528
1528
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -1530,7 +1530,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
1530
1530
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
1531
1531
|
Code distributed by Google as part of the polymer project is also
|
|
1532
1532
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
1533
|
-
*/let
|
|
1533
|
+
*/let Xu=0,Wn=0,et=[],Ju=0,Ni=!1,qn=document.createTextNode("");new window.MutationObserver(Ku).observe(qn,{characterData:!0});function Ku(){Ni=!1;const r=et.length;for(let t=0;t<r;t++){let e=et[t];if(e)try{e()}catch(i){setTimeout(()=>{throw i})}}et.splice(0,r),Wn+=r}const Qu={run(r){return Ni||(Ni=!0,qn.textContent=Ju++),et.push(r),Xu++},cancel(r){const t=r-Wn;if(t>=0){if(!et[t])throw new Error("invalid async handle: "+r);et[t]=null}}};/**
|
|
1534
1534
|
@license
|
|
1535
1535
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
1536
1536
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -1538,7 +1538,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
1538
1538
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
1539
1539
|
Code distributed by Google as part of the polymer project is also
|
|
1540
1540
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
1541
|
-
*/const Qu
|
|
1541
|
+
*/const ec=Qu,Yn=ae(r=>{class t extends r{static createProperties(i){const s=this.prototype;for(let o in i)o in s||s._createPropertyAccessor(o)}static attributeNameForProperty(i){return i.toLowerCase()}static typeForProperty(i){}_createPropertyAccessor(i,s){this._addPropertyToAttributeMap(i),this.hasOwnProperty(JSCompiler_renameProperty("__dataHasAccessor",this))||(this.__dataHasAccessor=Object.assign({},this.__dataHasAccessor)),this.__dataHasAccessor[i]||(this.__dataHasAccessor[i]=!0,this._definePropertyAccessor(i,s))}_addPropertyToAttributeMap(i){this.hasOwnProperty(JSCompiler_renameProperty("__dataAttributes",this))||(this.__dataAttributes=Object.assign({},this.__dataAttributes));let s=this.__dataAttributes[i];return s||(s=this.constructor.attributeNameForProperty(i),this.__dataAttributes[s]=i),s}_definePropertyAccessor(i,s){Object.defineProperty(this,i,{get(){return this.__data[i]},set:s?function(){}:function(o){this._setPendingProperty(i,o,!0)&&this._invalidateProperties()}})}constructor(){super(),this.__dataEnabled=!1,this.__dataReady=!1,this.__dataInvalid=!1,this.__data={},this.__dataPending=null,this.__dataOld=null,this.__dataInstanceProps=null,this.__dataCounter=0,this.__serializing=!1,this._initializeProperties()}ready(){this.__dataReady=!0,this._flushProperties()}_initializeProperties(){for(let i in this.__dataHasAccessor)this.hasOwnProperty(i)&&(this.__dataInstanceProps=this.__dataInstanceProps||{},this.__dataInstanceProps[i]=this[i],delete this[i])}_initializeInstanceProperties(i){Object.assign(this,i)}_setProperty(i,s){this._setPendingProperty(i,s)&&this._invalidateProperties()}_getProperty(i){return this.__data[i]}_setPendingProperty(i,s,o){let n=this.__data[i],a=this._shouldPropertyChange(i,s,n);return a&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),this.__dataOld&&!(i in this.__dataOld)&&(this.__dataOld[i]=n),this.__data[i]=s,this.__dataPending[i]=s),a}_isPropertyPending(i){return!!(this.__dataPending&&this.__dataPending.hasOwnProperty(i))}_invalidateProperties(){!this.__dataInvalid&&this.__dataReady&&(this.__dataInvalid=!0,ec.run(()=>{this.__dataInvalid&&(this.__dataInvalid=!1,this._flushProperties())}))}_enableProperties(){this.__dataEnabled||(this.__dataEnabled=!0,this.__dataInstanceProps&&(this._initializeInstanceProperties(this.__dataInstanceProps),this.__dataInstanceProps=null),this.ready())}_flushProperties(){this.__dataCounter++;const i=this.__data,s=this.__dataPending,o=this.__dataOld;this._shouldPropertiesChange(i,s,o)&&(this.__dataPending=null,this.__dataOld=null,this._propertiesChanged(i,s,o)),this.__dataCounter--}_shouldPropertiesChange(i,s,o){return!!s}_propertiesChanged(i,s,o){}_shouldPropertyChange(i,s,o){return o!==s&&(o===o||s===s)}attributeChangedCallback(i,s,o,n){s!==o&&this._attributeToProperty(i,o),super.attributeChangedCallback&&super.attributeChangedCallback(i,s,o,n)}_attributeToProperty(i,s,o){if(!this.__serializing){const n=this.__dataAttributes,a=n&&n[i]||i;this[a]=this._deserializeValue(s,o||this.constructor.typeForProperty(a))}}_propertyToAttribute(i,s,o){this.__serializing=!0,o=arguments.length<3?this[i]:o,this._valueToNodeAttribute(this,o,s||this.constructor.attributeNameForProperty(i)),this.__serializing=!1}_valueToNodeAttribute(i,s,o){const n=this._serializeValue(s);(o==="class"||o==="name"||o==="slot")&&(i=Fe(i)),n===void 0?i.removeAttribute(o):i.setAttribute(o,n===""&&window.trustedTypes?window.trustedTypes.emptyScript:n)}_serializeValue(i){switch(typeof i){case"boolean":return i?"":void 0;default:return i!=null?i.toString():void 0}}_deserializeValue(i,s){switch(s){case Boolean:return i!==null;case Number:return Number(i);default:return i}}}return t});/**
|
|
1542
1542
|
@license
|
|
1543
1543
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
1544
1544
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -1546,7 +1546,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
1546
1546
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
1547
1547
|
Code distributed by Google as part of the polymer project is also
|
|
1548
1548
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
1549
|
-
*/const
|
|
1549
|
+
*/const Zn={};let Jt=HTMLElement.prototype;for(;Jt;){let r=Object.getOwnPropertyNames(Jt);for(let t=0;t<r.length;t++)Zn[r[t]]=!0;Jt=Object.getPrototypeOf(Jt)}const tc=window.trustedTypes?r=>trustedTypes.isHTML(r)||trustedTypes.isScript(r)||trustedTypes.isScriptURL(r):()=>!1;function rc(r,t){if(!Zn[t]){let e=r[t];e!==void 0&&(r.__data?r._setPendingProperty(t,e):(r.__dataProto?r.hasOwnProperty(JSCompiler_renameProperty("__dataProto",r))||(r.__dataProto=Object.create(r.__dataProto)):r.__dataProto={},r.__dataProto[t]=e))}}const ic=ae(r=>{const t=Yn(r);class e extends t{static createPropertiesForAttributes(){let s=this.observedAttributes;for(let o=0;o<s.length;o++)this.prototype._createPropertyAccessor(Gn(s[o]))}static attributeNameForProperty(s){return Ar(s)}_initializeProperties(){this.__dataProto&&(this._initializeProtoProperties(this.__dataProto),this.__dataProto=null),super._initializeProperties()}_initializeProtoProperties(s){for(let o in s)this._setProperty(o,s[o])}_ensureAttribute(s,o){const n=this;n.hasAttribute(s)||this._valueToNodeAttribute(n,o,s)}_serializeValue(s){switch(typeof s){case"object":if(s instanceof Date)return s.toString();if(s){if(tc(s))return s;try{return JSON.stringify(s)}catch(o){return""}}default:return super._serializeValue(s)}}_deserializeValue(s,o){let n;switch(o){case Object:try{n=JSON.parse(s)}catch(a){n=s}break;case Array:try{n=JSON.parse(s)}catch(a){n=null,console.warn(`Polymer::Attributes: couldn't decode Array as JSON: ${s}`)}break;case Date:n=isNaN(s)?String(s):Number(s),n=new Date(n);break;default:n=super._deserializeValue(s,o);break}return n}_definePropertyAccessor(s,o){rc(this,s),super._definePropertyAccessor(s,o)}_hasAccessor(s){return this.__dataHasAccessor&&this.__dataHasAccessor[s]}_isPropertyPending(s){return!!(this.__dataPending&&s in this.__dataPending)}}return e});/**
|
|
1550
1550
|
@license
|
|
1551
1551
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
1552
1552
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -1554,7 +1554,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
1554
1554
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
1555
1555
|
Code distributed by Google as part of the polymer project is also
|
|
1556
1556
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
1557
|
-
*/const
|
|
1557
|
+
*/const sc={"dom-if":!0,"dom-repeat":!0};let no=!1,ao=!1;function oc(){if(!no){no=!0;const r=document.createElement("textarea");r.placeholder="a",ao=r.placeholder===r.textContent}return ao}function nc(r){oc()&&r.localName==="textarea"&&r.placeholder&&r.placeholder===r.textContent&&(r.textContent=null)}const ac=(()=>{const r=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:t=>t});return(t,e,i)=>{const s=e.getAttribute(i);if(r&&i.startsWith("on-")){t.setAttribute(i,r.createScript(s,i));return}t.setAttribute(i,s)}})();function lc(r){let t=r.getAttribute("is");if(t&&sc[t]){let e=r;for(e.removeAttribute("is"),r=e.ownerDocument.createElement(t),e.parentNode.replaceChild(r,e),r.appendChild(e);e.attributes.length;){const{name:i}=e.attributes[0];ac(r,e,i),e.removeAttribute(i)}}return r}function Xn(r,t){let e=t.parentInfo&&Xn(r,t.parentInfo);if(e){for(let i=e.firstChild,s=0;i;i=i.nextSibling)if(t.parentIndex===s++)return i}else return r}function dc(r,t,e,i){i.id&&(t[i.id]=e)}function hc(r,t,e){if(e.events&&e.events.length)for(let i=0,s=e.events,o;i<s.length&&(o=s[i]);i++)r._addMethodEventListenerToNode(t,o.name,o.value,r)}function uc(r,t,e,i){e.templateInfo&&(t._templateInfo=e.templateInfo,t._parentTemplateInfo=i)}function cc(r,t,e){return r=r._methodHost||r,function(s){r[e]?r[e](s,s.detail):console.warn("listener method `"+e+"` not defined")}}const fc=ae(r=>{class t extends r{static _parseTemplate(i,s){if(!i._templateInfo){let o=i._templateInfo={};o.nodeInfoList=[],o.nestedTemplate=!!s,o.stripWhiteSpace=s&&s.stripWhiteSpace||i.hasAttribute&&i.hasAttribute("strip-whitespace"),this._parseTemplateContent(i,o,{parent:null})}return i._templateInfo}static _parseTemplateContent(i,s,o){return this._parseTemplateNode(i.content,s,o)}static _parseTemplateNode(i,s,o){let n=!1,a=i;return a.localName=="template"&&!a.hasAttribute("preserve-content")?n=this._parseTemplateNestedTemplate(a,s,o)||n:a.localName==="slot"&&(s.hasInsertionPoint=!0),nc(a),a.firstChild&&this._parseTemplateChildNodes(a,s,o),a.hasAttributes&&a.hasAttributes()&&(n=this._parseTemplateNodeAttributes(a,s,o)||n),n||o.noted}static _parseTemplateChildNodes(i,s,o){if(!(i.localName==="script"||i.localName==="style"))for(let n=i.firstChild,a=0,l;n;n=l){if(n.localName=="template"&&(n=lc(n)),l=n.nextSibling,n.nodeType===Node.TEXT_NODE){let h=l;for(;h&&h.nodeType===Node.TEXT_NODE;)n.textContent+=h.textContent,l=h.nextSibling,i.removeChild(h),h=l;if(s.stripWhiteSpace&&!n.textContent.trim()){i.removeChild(n);continue}}let d={parentIndex:a,parentInfo:o};this._parseTemplateNode(n,s,d)&&(d.infoIndex=s.nodeInfoList.push(d)-1),n.parentNode&&a++}}static _parseTemplateNestedTemplate(i,s,o){let n=i,a=this._parseTemplate(n,s);return(a.content=n.content.ownerDocument.createDocumentFragment()).appendChild(n.content),o.templateInfo=a,!0}static _parseTemplateNodeAttributes(i,s,o){let n=!1,a=Array.from(i.attributes);for(let l=a.length-1,d;d=a[l];l--)n=this._parseTemplateNodeAttribute(i,s,o,d.name,d.value)||n;return n}static _parseTemplateNodeAttribute(i,s,o,n,a){return n.slice(0,3)==="on-"?(i.removeAttribute(n),o.events=o.events||[],o.events.push({name:n.slice(3),value:a}),!0):n==="id"?(o.id=a,!0):!1}static _contentForTemplate(i){let s=i._templateInfo;return s&&s.content||i.content}_stampTemplate(i,s){i&&!i.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(i),s=s||this.constructor._parseTemplate(i);let o=s.nodeInfoList,n=s.content||i.content,a=document.importNode(n,!0);a.__noInsertionPoint=!s.hasInsertionPoint;let l=a.nodeList=new Array(o.length);a.$={};for(let d=0,h=o.length,u;d<h&&(u=o[d]);d++){let f=l[d]=Xn(a,u);dc(this,a.$,f,u),uc(this,f,u,s),hc(this,f,u)}return a=a,a}_addMethodEventListenerToNode(i,s,o,n){n=n||i;let a=cc(n,s,o);return this._addEventListenerToNode(i,s,a),a}_addEventListenerToNode(i,s,o){i.addEventListener(s,o)}_removeEventListenerFromNode(i,s,o){i.removeEventListener(s,o)}}return t});/**
|
|
1558
1558
|
* @fileoverview
|
|
1559
1559
|
* @suppress {checkPrototypalTypes}
|
|
1560
1560
|
* @license Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
@@ -1564,7 +1564,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
1564
1564
|
* be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
|
|
1565
1565
|
* Google as part of the polymer project is also subject to an additional IP
|
|
1566
1566
|
* rights grant found at http://polymer.github.io/PATENTS.txt
|
|
1567
|
-
*/let Dt=0;const Ht=[],k={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},Xn="__computeInfo",fc=/[A-Z]/;function Zr(r,t,e){let i=r[t];if(!i)i=r[t]={};else if(!r.hasOwnProperty(t)&&(i=r[t]=Object.create(r[t]),e))for(let s in i){let o=i[s],n=i[s]=Array(o.length);for(let a=0;a<o.length;a++)n[a]=o[a]}return i}function xt(r,t,e,i,s,o){if(t){let n=!1;const a=Dt++;for(let l in e){let d=s?je(l):l,h=t[d];if(h)for(let u=0,f=h.length,m;u<f&&(m=h[u]);u++)(!m.info||m.info.lastRun!==a)&&(!s||ts(l,m.trigger))&&(m.info&&(m.info.lastRun=a),m.fn(r,l,e,i,m.info,s,o),n=!0)}return n}return!1}function pc(r,t,e,i,s,o,n,a){let l=!1,d=n?je(i):i,h=t[d];if(h)for(let u=0,f=h.length,m;u<f&&(m=h[u]);u++)(!m.info||m.info.lastRun!==e)&&(!n||ts(i,m.trigger))&&(m.info&&(m.info.lastRun=e),m.fn(r,i,s,o,m.info,n,a),l=!0);return l}function ts(r,t){if(t){let e=t.name;return e==r||!!(t.structured&&Wu(e,r))||!!(t.wildcard&&pr(e,r))}else return!0}function ao(r,t,e,i,s){let o=typeof s.method=="string"?r[s.method]:s.method,n=s.property;o?o.call(r,r.__data[n],i[n]):s.dynamicFn||console.warn("observer method `"+s.method+"` not defined")}function mc(r,t,e,i,s){let o=r[k.NOTIFY],n,a=Dt++;for(let d in t)t[d]&&(o&&pc(r,o,a,d,e,i,s)||s&&_c(r,d,e))&&(n=!0);let l;n&&(l=r.__dataHost)&&l._invalidateProperties&&l._invalidateProperties()}function _c(r,t,e){let i=je(t);if(i!==t){let s=Ar(i)+"-changed";return Jn(r,s,e[t],t),!0}return!1}function Jn(r,t,e,i){let s={value:e,queueProperty:!0};i&&(s.path=i),Fe(r).dispatchEvent(new CustomEvent(t,{detail:s}))}function gc(r,t,e,i,s,o){let a=(o?je(t):t)!=t?t:null,l=a?me(r,a):r.__data[t];a&&l===void 0&&(l=e[t]),Jn(r,s.eventName,l,a)}function bc(r,t,e,i,s){let o,n=r.detail,a=n&&n.path;a?(i=mr(e,i,a),o=n&&n.value):o=r.currentTarget[e],o=s?!o:o,(!t[k.READ_ONLY]||!t[k.READ_ONLY][i])&&t._setPendingPropertyOrPath(i,o,!0,!!a)&&(!n||!n.queueProperty)&&t._invalidateProperties()}function vc(r,t,e,i,s){let o=r.__data[t];fr&&(o=fr(o,s.attrName,"attribute",r)),r._propertyToAttribute(t,s.attrName,o)}function yc(r,t,e,i){let s=r[k.COMPUTE];if(s)if(Ru){Dt++;const o=xc(r),n=[];for(let l in t)lo(l,s,n,o,i);let a;for(;a=n.shift();)Kn(r,"",t,e,a)&&lo(a.methodInfo,s,n,o,i);Object.assign(e,r.__dataOld),Object.assign(t,r.__dataPending),r.__dataPending=null}else{let o=t;for(;xt(r,s,o,e,i);)Object.assign(e,r.__dataOld),Object.assign(t,r.__dataPending),o=r.__dataPending,r.__dataPending=null}}const wc=(r,t,e)=>{let i=0,s=t.length-1,o=-1;for(;i<=s;){const n=i+s>>1,a=e.get(t[n].methodInfo)-e.get(r.methodInfo);if(a<0)i=n+1;else if(a>0)s=n-1;else{o=n;break}}o<0&&(o=s+1),t.splice(o,0,r)},lo=(r,t,e,i,s)=>{const o=s?je(r):r,n=t[o];if(n)for(let a=0;a<n.length;a++){const l=n[a];l.info.lastRun!==Dt&&(!s||ts(r,l.trigger))&&(l.info.lastRun=Dt,wc(l.info,e,i))}};function xc(r){let t=r.constructor.__orderedComputedDeps;if(!t){t=new Map;const e=r[k.COMPUTE];let{counts:i,ready:s,total:o}=Pc(r),n;for(;n=s.shift();){t.set(n,t.size);const a=e[n];a&&a.forEach(l=>{const d=l.info.methodInfo;--o,--i[d]===0&&s.push(d)})}o!==0&&console.warn(`Computed graph for ${r.localName} incomplete; circular?`),r.constructor.__orderedComputedDeps=t}return t}function Pc(r){const t=r[Xn],e={},i=r[k.COMPUTE],s=[];let o=0;for(let n in t){const a=t[n];o+=e[n]=a.args.filter(l=>!l.literal).length+(a.dynamicFn?1:0)}for(let n in i)t[n]||s.push(n);return{counts:e,ready:s,total:o}}function Kn(r,t,e,i,s){let o=ki(r,t,e,i,s);if(o===Ht)return!1;let n=s.methodInfo;return r.__dataHasAccessor&&r.__dataHasAccessor[n]?r._setPendingProperty(n,o,!0):(r[n]=o,!1)}function Ec(r,t,e){let i=r.__dataLinkedPaths;if(i){let s;for(let o in i){let n=i[o];pr(o,t)?(s=mr(o,n,t),r._setPendingPropertyOrPath(s,e,!0,!0)):pr(n,t)&&(s=mr(n,o,t),r._setPendingPropertyOrPath(s,e,!0,!0))}}}function Xr(r,t,e,i,s,o,n){e.bindings=e.bindings||[];let a={kind:i,target:s,parts:o,literal:n,isCompound:o.length!==1};if(e.bindings.push(a),Ic(a)){let{event:d,negate:h}=a.parts[0];a.listenerEvent=d||Ar(s)+"-changed",a.listenerNegate=h}let l=t.nodeInfoList.length;for(let d=0;d<a.parts.length;d++){let h=a.parts[d];h.compoundIndex=d,Cc(r,t,a,h,l)}}function Cc(r,t,e,i,s){if(!i.literal)if(e.kind==="attribute"&&e.target[0]==="-")console.warn("Cannot set attribute "+e.target+' because "-" is not a valid attribute starting character');else{let o=i.dependencies,n={index:s,binding:e,part:i,evaluator:r};for(let a=0;a<o.length;a++){let l=o[a];typeof l=="string"&&(l=ea(l),l.wildcard=!0),r._addTemplatePropertyEffect(t,l.rootProperty,{fn:Sc,info:n,trigger:l})}}}function Sc(r,t,e,i,s,o,n){let a=n[s.index],l=s.binding,d=s.part;if(o&&d.source&&t.length>d.source.length&&l.kind=="property"&&!l.isCompound&&a.__isPropertyEffectsClient&&a.__dataHasAccessor&&a.__dataHasAccessor[l.target]){let h=e[t];t=mr(d.source,l.target,t),a._setPendingPropertyOrPath(t,h,!1,!0)&&r._enqueueClient(a)}else{let h=s.evaluator._evaluateBinding(r,d,t,e,i,o);h!==Ht&&Ac(r,a,l,d,h)}}function Ac(r,t,e,i,s){if(s=Tc(t,s,e,i),fr&&(s=fr(s,e.target,e.kind,t)),e.kind=="attribute")r._valueToNodeAttribute(t,s,e.target);else{let o=e.target;t.__isPropertyEffectsClient&&t.__dataHasAccessor&&t.__dataHasAccessor[o]?(!t[k.READ_ONLY]||!t[k.READ_ONLY][o])&&t._setPendingProperty(o,s)&&r._enqueueClient(t):r._setUnmanagedPropertyToNode(t,o,s)}}function Tc(r,t,e,i){if(e.isCompound){let s=r.__dataCompoundStorage[e.target];s[i.compoundIndex]=t,t=s.join("")}return e.kind!=="attribute"&&(e.target==="textContent"||e.target==="value"&&(r.localName==="input"||r.localName==="textarea"))&&(t=t==null?"":t),t}function Ic(r){return!!r.target&&r.kind!="attribute"&&r.kind!="text"&&!r.isCompound&&r.parts[0].mode==="{"}function Oc(r,t){let{nodeList:e,nodeInfoList:i}=t;if(i.length)for(let s=0;s<i.length;s++){let o=i[s],n=e[s],a=o.bindings;if(a)for(let l=0;l<a.length;l++){let d=a[l];Nc(n,d),kc(n,r,d)}n.__dataHost=r}}function Nc(r,t){if(t.isCompound){let e=r.__dataCompoundStorage||(r.__dataCompoundStorage={}),i=t.parts,s=new Array(i.length);for(let n=0;n<i.length;n++)s[n]=i[n].literal;let o=t.target;e[o]=s,t.literal&&t.kind=="property"&&(o==="className"&&(r=Fe(r)),r[o]=t.literal)}}function kc(r,t,e){if(e.listenerEvent){let i=e.parts[0];r.addEventListener(e.listenerEvent,function(s){bc(s,t,e.target,i.source,i.negate)})}}function ho(r,t,e,i,s,o){o=t.static||o&&(typeof o!="object"||o[t.methodName]);let n={methodName:t.methodName,args:t.args,methodInfo:s,dynamicFn:o};for(let a=0,l;a<t.args.length&&(l=t.args[a]);a++)l.literal||r._addPropertyEffect(l.rootProperty,e,{fn:i,info:n,trigger:l});return o&&r._addPropertyEffect(t.methodName,e,{fn:i,info:n}),n}function ki(r,t,e,i,s){let o=r._methodHost||r,n=o[s.methodName];if(n){let a=r._marshalArgs(s.args,t,e);return a===Ht?Ht:n.apply(o,a)}else s.dynamicFn||console.warn("method `"+s.methodName+"` not defined")}const Mc=[],Qn="(?:[a-zA-Z_$][\\w.:$\\-*]*)",Lc="(?:[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)",Bc="(?:'(?:[^'\\\\]|\\\\.)*')",Rc='(?:"(?:[^"\\\\]|\\\\.)*")',Dc="(?:"+Bc+"|"+Rc+")",uo="(?:("+Qn+"|"+Lc+"|"+Dc+")\\s*)",Hc="(?:"+uo+"(?:,\\s*"+uo+")*)",zc="(?:\\(\\s*(?:"+Hc+"?)\\)\\s*)",Fc="("+Qn+"\\s*"+zc+"?)",Vc="(\\[\\[|{{)\\s*",$c="(?:]]|}})",Uc="(?:(!)\\s*)?",jc=Vc+Uc+Fc+$c,co=new RegExp(jc,"g");function fo(r){let t="";for(let e=0;e<r.length;e++){let i=r[e].literal;t+=i||""}return t}function Jr(r){let t=r.match(/([^\s]+?)\(([\s\S]*)\)/);if(t){let i={methodName:t[1],static:!0,args:Mc};if(t[2].trim()){let s=t[2].replace(/\\,/g,",").split(",");return Gc(s,i)}else return i}return null}function Gc(r,t){return t.args=r.map(function(e){let i=ea(e);return i.literal||(t.static=!1),i},this),t}function ea(r){let t=r.trim().replace(/,/g,",").replace(/\\(.)/g,"$1"),e={name:t,value:"",literal:!1},i=t[0];switch(i==="-"&&(i=t[1]),i>="0"&&i<="9"&&(i="#"),i){case"'":case'"':e.value=t.slice(1,-1),e.literal=!0;break;case"#":e.value=Number(t),e.literal=!0;break}return e.literal||(e.rootProperty=je(t),e.structured=Oi(t),e.structured&&(e.wildcard=t.slice(-2)==".*",e.wildcard&&(e.name=t.slice(0,-2)))),e}function po(r,t,e){let i=me(r,e);return i===void 0&&(i=t[e]),i}function ta(r,t,e,i){const s={indexSplices:i};Ii&&!r._overrideLegacyUndefined&&(t.splices=s),r.notifyPath(e+".splices",s),r.notifyPath(e+".length",t.length),Ii&&!r._overrideLegacyUndefined&&(s.indexSplices=[])}function vt(r,t,e,i,s,o){ta(r,t,e,[{index:i,addedCount:s,removed:o,object:t,type:"splice"}])}function Wc(r){return r[0].toUpperCase()+r.substring(1)}const qc=ae(r=>{const t=cc(rc(r));class e extends t{constructor(){super(),this.__isPropertyEffectsClient=!0,this.__dataClientsReady,this.__dataPendingClients,this.__dataToNotify,this.__dataLinkedPaths,this.__dataHasPaths,this.__dataCompoundStorage,this.__dataHost,this.__dataTemp,this.__dataClientsInitialized,this.__data,this.__dataPending,this.__dataOld,this.__computeEffects,this.__computeInfo,this.__reflectEffects,this.__notifyEffects,this.__propagateEffects,this.__observeEffects,this.__readOnly,this.__templateInfo,this._overrideLegacyUndefined}get PROPERTY_EFFECT_TYPES(){return k}_initializeProperties(){super._initializeProperties(),this._registerHost(),this.__dataClientsReady=!1,this.__dataPendingClients=null,this.__dataToNotify=null,this.__dataLinkedPaths=null,this.__dataHasPaths=!1,this.__dataCompoundStorage=this.__dataCompoundStorage||null,this.__dataHost=this.__dataHost||null,this.__dataTemp={},this.__dataClientsInitialized=!1}_registerHost(){if(yt.length){let s=yt[yt.length-1];s._enqueueClient(this),this.__dataHost=s}}_initializeProtoProperties(s){this.__data=Object.create(s),this.__dataPending=Object.create(s),this.__dataOld={}}_initializeInstanceProperties(s){let o=this[k.READ_ONLY];for(let n in s)(!o||!o[n])&&(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[n]=this.__dataPending[n]=s[n])}_addPropertyEffect(s,o,n){this._createPropertyAccessor(s,o==k.READ_ONLY);let a=Zr(this,o,!0)[s];a||(a=this[o][s]=[]),a.push(n)}_removePropertyEffect(s,o,n){let a=Zr(this,o,!0)[s],l=a.indexOf(n);l>=0&&a.splice(l,1)}_hasPropertyEffect(s,o){let n=this[o];return!!(n&&n[s])}_hasReadOnlyEffect(s){return this._hasPropertyEffect(s,k.READ_ONLY)}_hasNotifyEffect(s){return this._hasPropertyEffect(s,k.NOTIFY)}_hasReflectEffect(s){return this._hasPropertyEffect(s,k.REFLECT)}_hasComputedEffect(s){return this._hasPropertyEffect(s,k.COMPUTE)}_setPendingPropertyOrPath(s,o,n,a){if(a||je(Array.isArray(s)?s[0]:s)!==s){if(!a){let l=me(this,s);if(s=so(this,s,o),!s||!super._shouldPropertyChange(s,o,l))return!1}if(this.__dataHasPaths=!0,this._setPendingProperty(s,o,n))return Ec(this,s,o),!0}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[s])return this._setPendingProperty(s,o,n);this[s]=o}return!1}_setUnmanagedPropertyToNode(s,o,n){(n!==s[o]||typeof n=="object")&&(o==="className"&&(s=Fe(s)),s[o]=n)}_setPendingProperty(s,o,n){let a=this.__dataHasPaths&&Oi(s),l=a?this.__dataTemp:this.__data;return this._shouldPropertyChange(s,o,l[s])?(this.__dataPending||(this.__dataPending={},this.__dataOld={}),s in this.__dataOld||(this.__dataOld[s]=this.__data[s]),a?this.__dataTemp[s]=o:this.__data[s]=o,this.__dataPending[s]=o,(a||this[k.NOTIFY]&&this[k.NOTIFY][s])&&(this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[s]=n),!0):!1}_setProperty(s,o){this._setPendingProperty(s,o,!0)&&this._invalidateProperties()}_invalidateProperties(){this.__dataReady&&this._flushProperties()}_enqueueClient(s){this.__dataPendingClients=this.__dataPendingClients||[],s!==this&&this.__dataPendingClients.push(s)}_flushClients(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)}__enableOrFlushClients(){let s=this.__dataPendingClients;if(s){this.__dataPendingClients=null;for(let o=0;o<s.length;o++){let n=s[o];n.__dataEnabled?n.__dataPending&&n._flushProperties():n._enableProperties()}}}_readyClients(){this.__enableOrFlushClients()}setProperties(s,o){for(let n in s)(o||!this[k.READ_ONLY]||!this[k.READ_ONLY][n])&&this._setPendingPropertyOrPath(n,s[n],!0);this._invalidateProperties()}ready(){this._flushProperties(),this.__dataClientsReady||this._flushClients(),this.__dataPending&&this._flushProperties()}_propertiesChanged(s,o,n){let a=this.__dataHasPaths;this.__dataHasPaths=!1;let l;yc(this,o,n,a),l=this.__dataToNotify,this.__dataToNotify=null,this._propagatePropertyChanges(o,n,a),this._flushClients(),xt(this,this[k.REFLECT],o,n,a),xt(this,this[k.OBSERVE],o,n,a),l&&mc(this,l,o,n,a),this.__dataCounter==1&&(this.__dataTemp={})}_propagatePropertyChanges(s,o,n){this[k.PROPAGATE]&&xt(this,this[k.PROPAGATE],s,o,n),this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,s,o,n)}_runEffectsForTemplate(s,o,n,a){const l=(d,h)=>{xt(this,s.propertyEffects,d,n,h,s.nodeList);for(let u=s.firstChild;u;u=u.nextSibling)this._runEffectsForTemplate(u,d,n,h)};s.runEffects?s.runEffects(l,o,a):l(o,a)}linkPaths(s,o){s=wt(s),o=wt(o),this.__dataLinkedPaths=this.__dataLinkedPaths||{},this.__dataLinkedPaths[s]=o}unlinkPaths(s){s=wt(s),this.__dataLinkedPaths&&delete this.__dataLinkedPaths[s]}notifySplices(s,o){let n={path:""},a=me(this,s,n);ta(this,a,n.path,o)}get(s,o){return me(o||this,s)}set(s,o,n){n?so(n,s,o):(!this[k.READ_ONLY]||!this[k.READ_ONLY][s])&&this._setPendingPropertyOrPath(s,o,!0)&&this._invalidateProperties()}push(s,...o){let n={path:""},a=me(this,s,n),l=a.length,d=a.push(...o);return o.length&&vt(this,a,n.path,l,o.length,[]),d}pop(s){let o={path:""},n=me(this,s,o),a=!!n.length,l=n.pop();return a&&vt(this,n,o.path,n.length,0,[l]),l}splice(s,o,n,...a){let l={path:""},d=me(this,s,l);o<0?o=d.length-Math.floor(-o):o&&(o=Math.floor(o));let h;return arguments.length===2?h=d.splice(o):h=d.splice(o,n,...a),(a.length||h.length)&&vt(this,d,l.path,o,a.length,h),h}shift(s){let o={path:""},n=me(this,s,o),a=!!n.length,l=n.shift();return a&&vt(this,n,o.path,0,0,[l]),l}unshift(s,...o){let n={path:""},a=me(this,s,n),l=a.unshift(...o);return o.length&&vt(this,a,n.path,0,o.length,[]),l}notifyPath(s,o){let n;if(arguments.length==1){let a={path:""};o=me(this,s,a),n=a.path}else Array.isArray(s)?n=wt(s):n=s;this._setPendingPropertyOrPath(n,o,!0,!0)&&this._invalidateProperties()}_createReadOnlyProperty(s,o){this._addPropertyEffect(s,k.READ_ONLY),o&&(this["_set"+Wc(s)]=function(n){this._setProperty(s,n)})}_createPropertyObserver(s,o,n){let a={property:s,method:o,dynamicFn:!!n};this._addPropertyEffect(s,k.OBSERVE,{fn:ao,info:a,trigger:{name:s}}),n&&this._addPropertyEffect(o,k.OBSERVE,{fn:ao,info:a,trigger:{name:o}})}_createMethodObserver(s,o){let n=Jr(s);if(!n)throw new Error("Malformed observer expression '"+s+"'");ho(this,n,k.OBSERVE,ki,null,o)}_createNotifyingProperty(s){this._addPropertyEffect(s,k.NOTIFY,{fn:gc,info:{eventName:Ar(s)+"-changed",property:s}})}_createReflectedProperty(s){let o=this.constructor.attributeNameForProperty(s);o[0]==="-"?console.warn("Property "+s+" cannot be reflected to attribute "+o+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(s,k.REFLECT,{fn:vc,info:{attrName:o}})}_createComputedProperty(s,o,n){let a=Jr(o);if(!a)throw new Error("Malformed computed expression '"+o+"'");const l=ho(this,a,k.COMPUTE,Kn,s,n);Zr(this,Xn)[s]=l}_marshalArgs(s,o,n){const a=this.__data,l=[];for(let d=0,h=s.length;d<h;d++){let{name:u,structured:f,wildcard:m,value:_,literal:b}=s[d];if(!b)if(m){const w=pr(u,o),y=po(a,n,w?o:u);_={path:w?o:u,value:y,base:w?me(a,u):y}}else _=f?po(a,n,u):a[u];if(Ii&&!this._overrideLegacyUndefined&&_===void 0&&s.length>1)return Ht;l[d]=_}return l}static addPropertyEffect(s,o,n){this.prototype._addPropertyEffect(s,o,n)}static createPropertyObserver(s,o,n){this.prototype._createPropertyObserver(s,o,n)}static createMethodObserver(s,o){this.prototype._createMethodObserver(s,o)}static createNotifyingProperty(s){this.prototype._createNotifyingProperty(s)}static createReadOnlyProperty(s,o){this.prototype._createReadOnlyProperty(s,o)}static createReflectedProperty(s){this.prototype._createReflectedProperty(s)}static createComputedProperty(s,o,n){this.prototype._createComputedProperty(s,o,n)}static bindTemplate(s){return this.prototype._bindTemplate(s)}_bindTemplate(s,o){let n=this.constructor._parseTemplate(s),a=this.__preBoundTemplateInfo==n;if(!a)for(let l in n.propertyEffects)this._createPropertyAccessor(l);if(o)if(n=Object.create(n),n.wasPreBound=a,!this.__templateInfo)this.__templateInfo=n;else{const l=s._parentTemplateInfo||this.__templateInfo,d=l.lastChild;n.parent=l,l.lastChild=n,n.previousSibling=d,d?d.nextSibling=n:l.firstChild=n}else this.__preBoundTemplateInfo=n;return n}static _addTemplatePropertyEffect(s,o,n){let a=s.hostProps=s.hostProps||{};a[o]=!0;let l=s.propertyEffects=s.propertyEffects||{};(l[o]=l[o]||[]).push(n)}_stampTemplate(s,o){o=o||this._bindTemplate(s,!0),yt.push(this);let n=super._stampTemplate(s,o);if(yt.pop(),o.nodeList=n.nodeList,!o.wasPreBound){let a=o.childNodes=[];for(let l=n.firstChild;l;l=l.nextSibling)a.push(l)}return n.templateInfo=o,Oc(this,o),this.__dataClientsReady&&(this._runEffectsForTemplate(o,this.__data,null,!1),this._flushClients()),n}_removeBoundDom(s){const o=s.templateInfo,{previousSibling:n,nextSibling:a,parent:l}=o;n?n.nextSibling=a:l&&(l.firstChild=a),a?a.previousSibling=n:l&&(l.lastChild=n),o.nextSibling=o.previousSibling=null;let d=o.childNodes;for(let h=0;h<d.length;h++){let u=d[h];Fe(Fe(u).parentNode).removeChild(u)}}static _parseTemplateNode(s,o,n){let a=t._parseTemplateNode.call(this,s,o,n);if(s.nodeType===Node.TEXT_NODE){let l=this._parseBindings(s.textContent,o);l&&(s.textContent=fo(l)||" ",Xr(this,o,n,"text","textContent",l),a=!0)}return a}static _parseTemplateNodeAttribute(s,o,n,a,l){let d=this._parseBindings(l,o);if(d){let h=a,u="property";fc.test(a)?u="attribute":a[a.length-1]=="$"&&(a=a.slice(0,-1),u="attribute");let f=fo(d);return f&&u=="attribute"&&(a=="class"&&s.hasAttribute("class")&&(f+=" "+s.getAttribute(a)),s.setAttribute(a,f)),u=="attribute"&&h=="disable-upgrade$"&&s.setAttribute(a,""),s.localName==="input"&&h==="value"&&s.setAttribute(h,""),s.removeAttribute(h),u==="property"&&(a=jn(a)),Xr(this,o,n,u,a,d,f),!0}else return t._parseTemplateNodeAttribute.call(this,s,o,n,a,l)}static _parseTemplateNestedTemplate(s,o,n){let a=t._parseTemplateNestedTemplate.call(this,s,o,n);const l=s.parentNode,d=n.templateInfo,h=l.localName==="dom-if",u=l.localName==="dom-repeat";Qs&&(h||u)&&(l.removeChild(s),n=n.parentInfo,n.templateInfo=d,n.noted=!0,a=!1);let f=d.hostProps;if(Du&&h)f&&(o.hostProps=Object.assign(o.hostProps||{},f),Qs||(n.parentInfo.noted=!0));else{let m="{";for(let _ in f){let b=[{mode:m,source:_,dependencies:[_],hostProp:!0}];Xr(this,o,n,"property","_host_"+_,b)}}return a}static _parseBindings(s,o){let n=[],a=0,l;for(;(l=co.exec(s))!==null;){l.index>a&&n.push({literal:s.slice(a,l.index)});let d=l[1][0],h=!!l[2],u=l[3].trim(),f=!1,m="",_=-1;d=="{"&&(_=u.indexOf("::"))>0&&(m=u.substring(_+2),u=u.substring(0,_),f=!0);let b=Jr(u),w=[];if(b){let{args:y,methodName:v}=b;for(let E=0;E<y.length;E++){let S=y[E];S.literal||w.push(S)}let C=o.dynamicFns;(C&&C[v]||b.static)&&(w.push(v),b.dynamicFn=!0)}else w.push(u);n.push({source:u,mode:d,negate:h,customEvent:f,signature:b,dependencies:w,event:m}),a=co.lastIndex}if(a&&a<s.length){let d=s.substring(a);d&&n.push({literal:d})}return n.length?n:null}static _evaluateBinding(s,o,n,a,l,d){let h;return o.signature?h=ki(s,n,a,l,o.signature):n!=o.source?h=me(s,o.source):d&&Oi(n)?h=me(s,n):h=s.__data[n],o.negate&&(h=!h),h}}return e}),yt=[];/**
|
|
1567
|
+
*/let Dt=0;const Ht=[],k={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},Jn="__computeInfo",pc=/[A-Z]/;function Zr(r,t,e){let i=r[t];if(!i)i=r[t]={};else if(!r.hasOwnProperty(t)&&(i=r[t]=Object.create(r[t]),e))for(let s in i){let o=i[s],n=i[s]=Array(o.length);for(let a=0;a<o.length;a++)n[a]=o[a]}return i}function xt(r,t,e,i,s,o){if(t){let n=!1;const a=Dt++;for(let l in e){let d=s?je(l):l,h=t[d];if(h)for(let u=0,f=h.length,m;u<f&&(m=h[u]);u++)(!m.info||m.info.lastRun!==a)&&(!s||ts(l,m.trigger))&&(m.info&&(m.info.lastRun=a),m.fn(r,l,e,i,m.info,s,o),n=!0)}return n}return!1}function mc(r,t,e,i,s,o,n,a){let l=!1,d=n?je(i):i,h=t[d];if(h)for(let u=0,f=h.length,m;u<f&&(m=h[u]);u++)(!m.info||m.info.lastRun!==e)&&(!n||ts(i,m.trigger))&&(m.info&&(m.info.lastRun=e),m.fn(r,i,s,o,m.info,n,a),l=!0);return l}function ts(r,t){if(t){let e=t.name;return e==r||!!(t.structured&&qu(e,r))||!!(t.wildcard&&pr(e,r))}else return!0}function lo(r,t,e,i,s){let o=typeof s.method=="string"?r[s.method]:s.method,n=s.property;o?o.call(r,r.__data[n],i[n]):s.dynamicFn||console.warn("observer method `"+s.method+"` not defined")}function _c(r,t,e,i,s){let o=r[k.NOTIFY],n,a=Dt++;for(let d in t)t[d]&&(o&&mc(r,o,a,d,e,i,s)||s&&gc(r,d,e))&&(n=!0);let l;n&&(l=r.__dataHost)&&l._invalidateProperties&&l._invalidateProperties()}function gc(r,t,e){let i=je(t);if(i!==t){let s=Ar(i)+"-changed";return Kn(r,s,e[t],t),!0}return!1}function Kn(r,t,e,i){let s={value:e,queueProperty:!0};i&&(s.path=i),Fe(r).dispatchEvent(new CustomEvent(t,{detail:s}))}function bc(r,t,e,i,s,o){let a=(o?je(t):t)!=t?t:null,l=a?me(r,a):r.__data[t];a&&l===void 0&&(l=e[t]),Kn(r,s.eventName,l,a)}function vc(r,t,e,i,s){let o,n=r.detail,a=n&&n.path;a?(i=mr(e,i,a),o=n&&n.value):o=r.currentTarget[e],o=s?!o:o,(!t[k.READ_ONLY]||!t[k.READ_ONLY][i])&&t._setPendingPropertyOrPath(i,o,!0,!!a)&&(!n||!n.queueProperty)&&t._invalidateProperties()}function yc(r,t,e,i,s){let o=r.__data[t];fr&&(o=fr(o,s.attrName,"attribute",r)),r._propertyToAttribute(t,s.attrName,o)}function wc(r,t,e,i){let s=r[k.COMPUTE];if(s)if(Du){Dt++;const o=Pc(r),n=[];for(let l in t)ho(l,s,n,o,i);let a;for(;a=n.shift();)Qn(r,"",t,e,a)&&ho(a.methodInfo,s,n,o,i);Object.assign(e,r.__dataOld),Object.assign(t,r.__dataPending),r.__dataPending=null}else{let o=t;for(;xt(r,s,o,e,i);)Object.assign(e,r.__dataOld),Object.assign(t,r.__dataPending),o=r.__dataPending,r.__dataPending=null}}const xc=(r,t,e)=>{let i=0,s=t.length-1,o=-1;for(;i<=s;){const n=i+s>>1,a=e.get(t[n].methodInfo)-e.get(r.methodInfo);if(a<0)i=n+1;else if(a>0)s=n-1;else{o=n;break}}o<0&&(o=s+1),t.splice(o,0,r)},ho=(r,t,e,i,s)=>{const o=s?je(r):r,n=t[o];if(n)for(let a=0;a<n.length;a++){const l=n[a];l.info.lastRun!==Dt&&(!s||ts(r,l.trigger))&&(l.info.lastRun=Dt,xc(l.info,e,i))}};function Pc(r){let t=r.constructor.__orderedComputedDeps;if(!t){t=new Map;const e=r[k.COMPUTE];let{counts:i,ready:s,total:o}=Ec(r),n;for(;n=s.shift();){t.set(n,t.size);const a=e[n];a&&a.forEach(l=>{const d=l.info.methodInfo;--o,--i[d]===0&&s.push(d)})}o!==0&&console.warn(`Computed graph for ${r.localName} incomplete; circular?`),r.constructor.__orderedComputedDeps=t}return t}function Ec(r){const t=r[Jn],e={},i=r[k.COMPUTE],s=[];let o=0;for(let n in t){const a=t[n];o+=e[n]=a.args.filter(l=>!l.literal).length+(a.dynamicFn?1:0)}for(let n in i)t[n]||s.push(n);return{counts:e,ready:s,total:o}}function Qn(r,t,e,i,s){let o=ki(r,t,e,i,s);if(o===Ht)return!1;let n=s.methodInfo;return r.__dataHasAccessor&&r.__dataHasAccessor[n]?r._setPendingProperty(n,o,!0):(r[n]=o,!1)}function Cc(r,t,e){let i=r.__dataLinkedPaths;if(i){let s;for(let o in i){let n=i[o];pr(o,t)?(s=mr(o,n,t),r._setPendingPropertyOrPath(s,e,!0,!0)):pr(n,t)&&(s=mr(n,o,t),r._setPendingPropertyOrPath(s,e,!0,!0))}}}function Xr(r,t,e,i,s,o,n){e.bindings=e.bindings||[];let a={kind:i,target:s,parts:o,literal:n,isCompound:o.length!==1};if(e.bindings.push(a),Oc(a)){let{event:d,negate:h}=a.parts[0];a.listenerEvent=d||Ar(s)+"-changed",a.listenerNegate=h}let l=t.nodeInfoList.length;for(let d=0;d<a.parts.length;d++){let h=a.parts[d];h.compoundIndex=d,Sc(r,t,a,h,l)}}function Sc(r,t,e,i,s){if(!i.literal)if(e.kind==="attribute"&&e.target[0]==="-")console.warn("Cannot set attribute "+e.target+' because "-" is not a valid attribute starting character');else{let o=i.dependencies,n={index:s,binding:e,part:i,evaluator:r};for(let a=0;a<o.length;a++){let l=o[a];typeof l=="string"&&(l=ta(l),l.wildcard=!0),r._addTemplatePropertyEffect(t,l.rootProperty,{fn:Ac,info:n,trigger:l})}}}function Ac(r,t,e,i,s,o,n){let a=n[s.index],l=s.binding,d=s.part;if(o&&d.source&&t.length>d.source.length&&l.kind=="property"&&!l.isCompound&&a.__isPropertyEffectsClient&&a.__dataHasAccessor&&a.__dataHasAccessor[l.target]){let h=e[t];t=mr(d.source,l.target,t),a._setPendingPropertyOrPath(t,h,!1,!0)&&r._enqueueClient(a)}else{let h=s.evaluator._evaluateBinding(r,d,t,e,i,o);h!==Ht&&Tc(r,a,l,d,h)}}function Tc(r,t,e,i,s){if(s=Ic(t,s,e,i),fr&&(s=fr(s,e.target,e.kind,t)),e.kind=="attribute")r._valueToNodeAttribute(t,s,e.target);else{let o=e.target;t.__isPropertyEffectsClient&&t.__dataHasAccessor&&t.__dataHasAccessor[o]?(!t[k.READ_ONLY]||!t[k.READ_ONLY][o])&&t._setPendingProperty(o,s)&&r._enqueueClient(t):r._setUnmanagedPropertyToNode(t,o,s)}}function Ic(r,t,e,i){if(e.isCompound){let s=r.__dataCompoundStorage[e.target];s[i.compoundIndex]=t,t=s.join("")}return e.kind!=="attribute"&&(e.target==="textContent"||e.target==="value"&&(r.localName==="input"||r.localName==="textarea"))&&(t=t==null?"":t),t}function Oc(r){return!!r.target&&r.kind!="attribute"&&r.kind!="text"&&!r.isCompound&&r.parts[0].mode==="{"}function Nc(r,t){let{nodeList:e,nodeInfoList:i}=t;if(i.length)for(let s=0;s<i.length;s++){let o=i[s],n=e[s],a=o.bindings;if(a)for(let l=0;l<a.length;l++){let d=a[l];kc(n,d),Mc(n,r,d)}n.__dataHost=r}}function kc(r,t){if(t.isCompound){let e=r.__dataCompoundStorage||(r.__dataCompoundStorage={}),i=t.parts,s=new Array(i.length);for(let n=0;n<i.length;n++)s[n]=i[n].literal;let o=t.target;e[o]=s,t.literal&&t.kind=="property"&&(o==="className"&&(r=Fe(r)),r[o]=t.literal)}}function Mc(r,t,e){if(e.listenerEvent){let i=e.parts[0];r.addEventListener(e.listenerEvent,function(s){vc(s,t,e.target,i.source,i.negate)})}}function uo(r,t,e,i,s,o){o=t.static||o&&(typeof o!="object"||o[t.methodName]);let n={methodName:t.methodName,args:t.args,methodInfo:s,dynamicFn:o};for(let a=0,l;a<t.args.length&&(l=t.args[a]);a++)l.literal||r._addPropertyEffect(l.rootProperty,e,{fn:i,info:n,trigger:l});return o&&r._addPropertyEffect(t.methodName,e,{fn:i,info:n}),n}function ki(r,t,e,i,s){let o=r._methodHost||r,n=o[s.methodName];if(n){let a=r._marshalArgs(s.args,t,e);return a===Ht?Ht:n.apply(o,a)}else s.dynamicFn||console.warn("method `"+s.methodName+"` not defined")}const Lc=[],ea="(?:[a-zA-Z_$][\\w.:$\\-*]*)",Bc="(?:[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)",Rc="(?:'(?:[^'\\\\]|\\\\.)*')",Dc='(?:"(?:[^"\\\\]|\\\\.)*")',Hc="(?:"+Rc+"|"+Dc+")",co="(?:("+ea+"|"+Bc+"|"+Hc+")\\s*)",zc="(?:"+co+"(?:,\\s*"+co+")*)",Fc="(?:\\(\\s*(?:"+zc+"?)\\)\\s*)",Vc="("+ea+"\\s*"+Fc+"?)",$c="(\\[\\[|{{)\\s*",Uc="(?:]]|}})",jc="(?:(!)\\s*)?",Gc=$c+jc+Vc+Uc,fo=new RegExp(Gc,"g");function po(r){let t="";for(let e=0;e<r.length;e++){let i=r[e].literal;t+=i||""}return t}function Jr(r){let t=r.match(/([^\s]+?)\(([\s\S]*)\)/);if(t){let i={methodName:t[1],static:!0,args:Lc};if(t[2].trim()){let s=t[2].replace(/\\,/g,",").split(",");return Wc(s,i)}else return i}return null}function Wc(r,t){return t.args=r.map(function(e){let i=ta(e);return i.literal||(t.static=!1),i},this),t}function ta(r){let t=r.trim().replace(/,/g,",").replace(/\\(.)/g,"$1"),e={name:t,value:"",literal:!1},i=t[0];switch(i==="-"&&(i=t[1]),i>="0"&&i<="9"&&(i="#"),i){case"'":case'"':e.value=t.slice(1,-1),e.literal=!0;break;case"#":e.value=Number(t),e.literal=!0;break}return e.literal||(e.rootProperty=je(t),e.structured=Oi(t),e.structured&&(e.wildcard=t.slice(-2)==".*",e.wildcard&&(e.name=t.slice(0,-2)))),e}function mo(r,t,e){let i=me(r,e);return i===void 0&&(i=t[e]),i}function ra(r,t,e,i){const s={indexSplices:i};Ii&&!r._overrideLegacyUndefined&&(t.splices=s),r.notifyPath(e+".splices",s),r.notifyPath(e+".length",t.length),Ii&&!r._overrideLegacyUndefined&&(s.indexSplices=[])}function vt(r,t,e,i,s,o){ra(r,t,e,[{index:i,addedCount:s,removed:o,object:t,type:"splice"}])}function qc(r){return r[0].toUpperCase()+r.substring(1)}const Yc=ae(r=>{const t=fc(ic(r));class e extends t{constructor(){super(),this.__isPropertyEffectsClient=!0,this.__dataClientsReady,this.__dataPendingClients,this.__dataToNotify,this.__dataLinkedPaths,this.__dataHasPaths,this.__dataCompoundStorage,this.__dataHost,this.__dataTemp,this.__dataClientsInitialized,this.__data,this.__dataPending,this.__dataOld,this.__computeEffects,this.__computeInfo,this.__reflectEffects,this.__notifyEffects,this.__propagateEffects,this.__observeEffects,this.__readOnly,this.__templateInfo,this._overrideLegacyUndefined}get PROPERTY_EFFECT_TYPES(){return k}_initializeProperties(){super._initializeProperties(),this._registerHost(),this.__dataClientsReady=!1,this.__dataPendingClients=null,this.__dataToNotify=null,this.__dataLinkedPaths=null,this.__dataHasPaths=!1,this.__dataCompoundStorage=this.__dataCompoundStorage||null,this.__dataHost=this.__dataHost||null,this.__dataTemp={},this.__dataClientsInitialized=!1}_registerHost(){if(yt.length){let s=yt[yt.length-1];s._enqueueClient(this),this.__dataHost=s}}_initializeProtoProperties(s){this.__data=Object.create(s),this.__dataPending=Object.create(s),this.__dataOld={}}_initializeInstanceProperties(s){let o=this[k.READ_ONLY];for(let n in s)(!o||!o[n])&&(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[n]=this.__dataPending[n]=s[n])}_addPropertyEffect(s,o,n){this._createPropertyAccessor(s,o==k.READ_ONLY);let a=Zr(this,o,!0)[s];a||(a=this[o][s]=[]),a.push(n)}_removePropertyEffect(s,o,n){let a=Zr(this,o,!0)[s],l=a.indexOf(n);l>=0&&a.splice(l,1)}_hasPropertyEffect(s,o){let n=this[o];return!!(n&&n[s])}_hasReadOnlyEffect(s){return this._hasPropertyEffect(s,k.READ_ONLY)}_hasNotifyEffect(s){return this._hasPropertyEffect(s,k.NOTIFY)}_hasReflectEffect(s){return this._hasPropertyEffect(s,k.REFLECT)}_hasComputedEffect(s){return this._hasPropertyEffect(s,k.COMPUTE)}_setPendingPropertyOrPath(s,o,n,a){if(a||je(Array.isArray(s)?s[0]:s)!==s){if(!a){let l=me(this,s);if(s=oo(this,s,o),!s||!super._shouldPropertyChange(s,o,l))return!1}if(this.__dataHasPaths=!0,this._setPendingProperty(s,o,n))return Cc(this,s,o),!0}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[s])return this._setPendingProperty(s,o,n);this[s]=o}return!1}_setUnmanagedPropertyToNode(s,o,n){(n!==s[o]||typeof n=="object")&&(o==="className"&&(s=Fe(s)),s[o]=n)}_setPendingProperty(s,o,n){let a=this.__dataHasPaths&&Oi(s),l=a?this.__dataTemp:this.__data;return this._shouldPropertyChange(s,o,l[s])?(this.__dataPending||(this.__dataPending={},this.__dataOld={}),s in this.__dataOld||(this.__dataOld[s]=this.__data[s]),a?this.__dataTemp[s]=o:this.__data[s]=o,this.__dataPending[s]=o,(a||this[k.NOTIFY]&&this[k.NOTIFY][s])&&(this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[s]=n),!0):!1}_setProperty(s,o){this._setPendingProperty(s,o,!0)&&this._invalidateProperties()}_invalidateProperties(){this.__dataReady&&this._flushProperties()}_enqueueClient(s){this.__dataPendingClients=this.__dataPendingClients||[],s!==this&&this.__dataPendingClients.push(s)}_flushClients(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)}__enableOrFlushClients(){let s=this.__dataPendingClients;if(s){this.__dataPendingClients=null;for(let o=0;o<s.length;o++){let n=s[o];n.__dataEnabled?n.__dataPending&&n._flushProperties():n._enableProperties()}}}_readyClients(){this.__enableOrFlushClients()}setProperties(s,o){for(let n in s)(o||!this[k.READ_ONLY]||!this[k.READ_ONLY][n])&&this._setPendingPropertyOrPath(n,s[n],!0);this._invalidateProperties()}ready(){this._flushProperties(),this.__dataClientsReady||this._flushClients(),this.__dataPending&&this._flushProperties()}_propertiesChanged(s,o,n){let a=this.__dataHasPaths;this.__dataHasPaths=!1;let l;wc(this,o,n,a),l=this.__dataToNotify,this.__dataToNotify=null,this._propagatePropertyChanges(o,n,a),this._flushClients(),xt(this,this[k.REFLECT],o,n,a),xt(this,this[k.OBSERVE],o,n,a),l&&_c(this,l,o,n,a),this.__dataCounter==1&&(this.__dataTemp={})}_propagatePropertyChanges(s,o,n){this[k.PROPAGATE]&&xt(this,this[k.PROPAGATE],s,o,n),this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,s,o,n)}_runEffectsForTemplate(s,o,n,a){const l=(d,h)=>{xt(this,s.propertyEffects,d,n,h,s.nodeList);for(let u=s.firstChild;u;u=u.nextSibling)this._runEffectsForTemplate(u,d,n,h)};s.runEffects?s.runEffects(l,o,a):l(o,a)}linkPaths(s,o){s=wt(s),o=wt(o),this.__dataLinkedPaths=this.__dataLinkedPaths||{},this.__dataLinkedPaths[s]=o}unlinkPaths(s){s=wt(s),this.__dataLinkedPaths&&delete this.__dataLinkedPaths[s]}notifySplices(s,o){let n={path:""},a=me(this,s,n);ra(this,a,n.path,o)}get(s,o){return me(o||this,s)}set(s,o,n){n?oo(n,s,o):(!this[k.READ_ONLY]||!this[k.READ_ONLY][s])&&this._setPendingPropertyOrPath(s,o,!0)&&this._invalidateProperties()}push(s,...o){let n={path:""},a=me(this,s,n),l=a.length,d=a.push(...o);return o.length&&vt(this,a,n.path,l,o.length,[]),d}pop(s){let o={path:""},n=me(this,s,o),a=!!n.length,l=n.pop();return a&&vt(this,n,o.path,n.length,0,[l]),l}splice(s,o,n,...a){let l={path:""},d=me(this,s,l);o<0?o=d.length-Math.floor(-o):o&&(o=Math.floor(o));let h;return arguments.length===2?h=d.splice(o):h=d.splice(o,n,...a),(a.length||h.length)&&vt(this,d,l.path,o,a.length,h),h}shift(s){let o={path:""},n=me(this,s,o),a=!!n.length,l=n.shift();return a&&vt(this,n,o.path,0,0,[l]),l}unshift(s,...o){let n={path:""},a=me(this,s,n),l=a.unshift(...o);return o.length&&vt(this,a,n.path,0,o.length,[]),l}notifyPath(s,o){let n;if(arguments.length==1){let a={path:""};o=me(this,s,a),n=a.path}else Array.isArray(s)?n=wt(s):n=s;this._setPendingPropertyOrPath(n,o,!0,!0)&&this._invalidateProperties()}_createReadOnlyProperty(s,o){this._addPropertyEffect(s,k.READ_ONLY),o&&(this["_set"+qc(s)]=function(n){this._setProperty(s,n)})}_createPropertyObserver(s,o,n){let a={property:s,method:o,dynamicFn:!!n};this._addPropertyEffect(s,k.OBSERVE,{fn:lo,info:a,trigger:{name:s}}),n&&this._addPropertyEffect(o,k.OBSERVE,{fn:lo,info:a,trigger:{name:o}})}_createMethodObserver(s,o){let n=Jr(s);if(!n)throw new Error("Malformed observer expression '"+s+"'");uo(this,n,k.OBSERVE,ki,null,o)}_createNotifyingProperty(s){this._addPropertyEffect(s,k.NOTIFY,{fn:bc,info:{eventName:Ar(s)+"-changed",property:s}})}_createReflectedProperty(s){let o=this.constructor.attributeNameForProperty(s);o[0]==="-"?console.warn("Property "+s+" cannot be reflected to attribute "+o+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(s,k.REFLECT,{fn:yc,info:{attrName:o}})}_createComputedProperty(s,o,n){let a=Jr(o);if(!a)throw new Error("Malformed computed expression '"+o+"'");const l=uo(this,a,k.COMPUTE,Qn,s,n);Zr(this,Jn)[s]=l}_marshalArgs(s,o,n){const a=this.__data,l=[];for(let d=0,h=s.length;d<h;d++){let{name:u,structured:f,wildcard:m,value:_,literal:b}=s[d];if(!b)if(m){const w=pr(u,o),y=mo(a,n,w?o:u);_={path:w?o:u,value:y,base:w?me(a,u):y}}else _=f?mo(a,n,u):a[u];if(Ii&&!this._overrideLegacyUndefined&&_===void 0&&s.length>1)return Ht;l[d]=_}return l}static addPropertyEffect(s,o,n){this.prototype._addPropertyEffect(s,o,n)}static createPropertyObserver(s,o,n){this.prototype._createPropertyObserver(s,o,n)}static createMethodObserver(s,o){this.prototype._createMethodObserver(s,o)}static createNotifyingProperty(s){this.prototype._createNotifyingProperty(s)}static createReadOnlyProperty(s,o){this.prototype._createReadOnlyProperty(s,o)}static createReflectedProperty(s){this.prototype._createReflectedProperty(s)}static createComputedProperty(s,o,n){this.prototype._createComputedProperty(s,o,n)}static bindTemplate(s){return this.prototype._bindTemplate(s)}_bindTemplate(s,o){let n=this.constructor._parseTemplate(s),a=this.__preBoundTemplateInfo==n;if(!a)for(let l in n.propertyEffects)this._createPropertyAccessor(l);if(o)if(n=Object.create(n),n.wasPreBound=a,!this.__templateInfo)this.__templateInfo=n;else{const l=s._parentTemplateInfo||this.__templateInfo,d=l.lastChild;n.parent=l,l.lastChild=n,n.previousSibling=d,d?d.nextSibling=n:l.firstChild=n}else this.__preBoundTemplateInfo=n;return n}static _addTemplatePropertyEffect(s,o,n){let a=s.hostProps=s.hostProps||{};a[o]=!0;let l=s.propertyEffects=s.propertyEffects||{};(l[o]=l[o]||[]).push(n)}_stampTemplate(s,o){o=o||this._bindTemplate(s,!0),yt.push(this);let n=super._stampTemplate(s,o);if(yt.pop(),o.nodeList=n.nodeList,!o.wasPreBound){let a=o.childNodes=[];for(let l=n.firstChild;l;l=l.nextSibling)a.push(l)}return n.templateInfo=o,Nc(this,o),this.__dataClientsReady&&(this._runEffectsForTemplate(o,this.__data,null,!1),this._flushClients()),n}_removeBoundDom(s){const o=s.templateInfo,{previousSibling:n,nextSibling:a,parent:l}=o;n?n.nextSibling=a:l&&(l.firstChild=a),a?a.previousSibling=n:l&&(l.lastChild=n),o.nextSibling=o.previousSibling=null;let d=o.childNodes;for(let h=0;h<d.length;h++){let u=d[h];Fe(Fe(u).parentNode).removeChild(u)}}static _parseTemplateNode(s,o,n){let a=t._parseTemplateNode.call(this,s,o,n);if(s.nodeType===Node.TEXT_NODE){let l=this._parseBindings(s.textContent,o);l&&(s.textContent=po(l)||" ",Xr(this,o,n,"text","textContent",l),a=!0)}return a}static _parseTemplateNodeAttribute(s,o,n,a,l){let d=this._parseBindings(l,o);if(d){let h=a,u="property";pc.test(a)?u="attribute":a[a.length-1]=="$"&&(a=a.slice(0,-1),u="attribute");let f=po(d);return f&&u=="attribute"&&(a=="class"&&s.hasAttribute("class")&&(f+=" "+s.getAttribute(a)),s.setAttribute(a,f)),u=="attribute"&&h=="disable-upgrade$"&&s.setAttribute(a,""),s.localName==="input"&&h==="value"&&s.setAttribute(h,""),s.removeAttribute(h),u==="property"&&(a=Gn(a)),Xr(this,o,n,u,a,d,f),!0}else return t._parseTemplateNodeAttribute.call(this,s,o,n,a,l)}static _parseTemplateNestedTemplate(s,o,n){let a=t._parseTemplateNestedTemplate.call(this,s,o,n);const l=s.parentNode,d=n.templateInfo,h=l.localName==="dom-if",u=l.localName==="dom-repeat";eo&&(h||u)&&(l.removeChild(s),n=n.parentInfo,n.templateInfo=d,n.noted=!0,a=!1);let f=d.hostProps;if(Hu&&h)f&&(o.hostProps=Object.assign(o.hostProps||{},f),eo||(n.parentInfo.noted=!0));else{let m="{";for(let _ in f){let b=[{mode:m,source:_,dependencies:[_],hostProp:!0}];Xr(this,o,n,"property","_host_"+_,b)}}return a}static _parseBindings(s,o){let n=[],a=0,l;for(;(l=fo.exec(s))!==null;){l.index>a&&n.push({literal:s.slice(a,l.index)});let d=l[1][0],h=!!l[2],u=l[3].trim(),f=!1,m="",_=-1;d=="{"&&(_=u.indexOf("::"))>0&&(m=u.substring(_+2),u=u.substring(0,_),f=!0);let b=Jr(u),w=[];if(b){let{args:y,methodName:v}=b;for(let E=0;E<y.length;E++){let S=y[E];S.literal||w.push(S)}let C=o.dynamicFns;(C&&C[v]||b.static)&&(w.push(v),b.dynamicFn=!0)}else w.push(u);n.push({source:u,mode:d,negate:h,customEvent:f,signature:b,dependencies:w,event:m}),a=fo.lastIndex}if(a&&a<s.length){let d=s.substring(a);d&&n.push({literal:d})}return n.length?n:null}static _evaluateBinding(s,o,n,a,l,d){let h;return o.signature?h=ki(s,n,a,l,o.signature):n!=o.source?h=me(s,o.source):d&&Oi(n)?h=me(s,n):h=s.__data[n],o.negate&&(h=!h),h}}return e}),yt=[];/**
|
|
1568
1568
|
@license
|
|
1569
1569
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
1570
1570
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -1580,7 +1580,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
1580
1580
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
1581
1581
|
Code distributed by Google as part of the polymer project is also
|
|
1582
1582
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
1583
|
-
*/function
|
|
1583
|
+
*/function Zc(r){const t={};for(let e in r){const i=r[e];t[e]=typeof i=="function"?{type:i}:i}return t}const Xc=ae(r=>{const t=Yn(r);function e(o){const n=Object.getPrototypeOf(o);return n.prototype instanceof s?n:null}function i(o){if(!o.hasOwnProperty(JSCompiler_renameProperty("__ownProperties",o))){let n=null;if(o.hasOwnProperty(JSCompiler_renameProperty("properties",o))){const a=o.properties;a&&(n=Zc(a))}o.__ownProperties=n}return o.__ownProperties}class s extends t{static get observedAttributes(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__observedAttributes",this))){this.prototype;const n=this._properties;this.__observedAttributes=n?Object.keys(n).map(a=>this.prototype._addPropertyToAttributeMap(a)):[]}return this.__observedAttributes}static finalize(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__finalized",this))){const n=e(this);n&&n.finalize(),this.__finalized=!0,this._finalizeClass()}}static _finalizeClass(){const n=i(this);n&&this.createProperties(n)}static get _properties(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__properties",this))){const n=e(this);this.__properties=Object.assign({},n&&n._properties,i(this))}return this.__properties}static typeForProperty(n){const a=this._properties[n];return a&&a.type}_initializeProperties(){this.constructor.finalize(),super._initializeProperties()}connectedCallback(){super.connectedCallback&&super.connectedCallback(),this._enableProperties()}disconnectedCallback(){super.disconnectedCallback&&super.disconnectedCallback()}}return s});/**
|
|
1584
1584
|
* @fileoverview
|
|
1585
1585
|
* @suppress {checkPrototypalTypes}
|
|
1586
1586
|
* @license Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
@@ -1590,7 +1590,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
1590
1590
|
* be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
|
|
1591
1591
|
* Google as part of the polymer project is also subject to an additional IP
|
|
1592
1592
|
* rights grant found at http://polymer.github.io/PATENTS.txt
|
|
1593
|
-
*/const
|
|
1593
|
+
*/const Jc="3.5.2",_o=window.ShadyCSS&&window.ShadyCSS.cssBuild,Kc=ae(r=>{const t=Xc(Yc(r));function e(l){if(!l.hasOwnProperty(JSCompiler_renameProperty("__propertyDefaults",l))){l.__propertyDefaults=null;let d=l._properties;for(let h in d){let u=d[h];"value"in u&&(l.__propertyDefaults=l.__propertyDefaults||{},l.__propertyDefaults[h]=u)}}return l.__propertyDefaults}function i(l){return l.hasOwnProperty(JSCompiler_renameProperty("__ownObservers",l))||(l.__ownObservers=l.hasOwnProperty(JSCompiler_renameProperty("observers",l))?l.observers:null),l.__ownObservers}function s(l,d,h,u){h.computed&&(h.readOnly=!0),h.computed&&(l._hasReadOnlyEffect(d)?console.warn(`Cannot redefine computed property '${d}'.`):l._createComputedProperty(d,h.computed,u)),h.readOnly&&!l._hasReadOnlyEffect(d)?l._createReadOnlyProperty(d,!h.computed):h.readOnly===!1&&l._hasReadOnlyEffect(d)&&console.warn(`Cannot make readOnly property '${d}' non-readOnly.`),h.reflectToAttribute&&!l._hasReflectEffect(d)?l._createReflectedProperty(d):h.reflectToAttribute===!1&&l._hasReflectEffect(d)&&console.warn(`Cannot make reflected property '${d}' non-reflected.`),h.notify&&!l._hasNotifyEffect(d)?l._createNotifyingProperty(d):h.notify===!1&&l._hasNotifyEffect(d)&&console.warn(`Cannot make notify property '${d}' non-notify.`),h.observer&&l._createPropertyObserver(d,h.observer,u[h.observer]),l._addPropertyToAttributeMap(d)}function o(l,d,h,u){if(!_o){const f=d.content.querySelectorAll("style"),m=$n(d),_=Wu(h),b=d.content.firstElementChild;for(let y=0;y<_.length;y++){let v=_[y];v.textContent=l._processStyleText(v.textContent,u),d.content.insertBefore(v,b)}let w=0;for(let y=0;y<m.length;y++){let v=m[y],C=f[w];C!==v?(v=v.cloneNode(!0),C.parentNode.insertBefore(v,C)):w++,v.textContent=l._processStyleText(v.textContent,u)}}if(window.ShadyCSS&&window.ShadyCSS.prepareTemplate(d,h),zu&&_o&&Nu){const f=d.content.querySelectorAll("style");if(f){let m="";Array.from(f).forEach(_=>{m+=_.textContent,_.parentNode.removeChild(_)}),l._styleSheet=new CSSStyleSheet,l._styleSheet.replaceSync(m)}}}function n(l){let d=null;if(l&&(!Ti||Mu)&&(d=Rt.import(l,"template"),Ti&&!d))throw new Error(`strictTemplatePolicy: expecting dom-module or null template for ${l}`);return d}class a extends t{static get polymerElementVersion(){return Jc}static _finalizeClass(){t._finalizeClass.call(this);const d=i(this);d&&this.createObservers(d,this._properties),this._prepareTemplate()}static _prepareTemplate(){let d=this.template;d&&(typeof d=="string"?(console.error("template getter must return HTMLTemplateElement"),d=null):Lu||(d=d.cloneNode(!0))),this.prototype._template=d}static createProperties(d){for(let h in d)s(this.prototype,h,d[h],d)}static createObservers(d,h){const u=this.prototype;for(let f=0;f<d.length;f++)u._createMethodObserver(d[f],h)}static get template(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_template",this))){let d=this.prototype.hasOwnProperty(JSCompiler_renameProperty("_template",this.prototype))?this.prototype._template:void 0;typeof d=="function"&&(d=d()),this._template=d!==void 0?d:this.hasOwnProperty(JSCompiler_renameProperty("is",this))&&n(this.is)||Object.getPrototypeOf(this.prototype).constructor.template}return this._template}static set template(d){this._template=d}static get importPath(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_importPath",this))){const d=this.importMeta;if(d)this._importPath=Qi(d.url);else{const h=Rt.import(this.is);this._importPath=h&&h.assetpath||Object.getPrototypeOf(this.prototype).constructor.importPath}}return this._importPath}constructor(){super(),this._template,this._importPath,this.rootPath,this.importPath,this.root,this.$}_initializeProperties(){this.constructor.finalize(),this.constructor._finalizeTemplate(this.localName),super._initializeProperties(),this.rootPath=ku,this.importPath=this.constructor.importPath;let d=e(this.constructor);if(d)for(let h in d){let u=d[h];if(this._canApplyPropertyDefault(h)){let f=typeof u.value=="function"?u.value.call(this):u.value;this._hasAccessor(h)?this._setPendingProperty(h,f,!0):this[h]=f}}}_canApplyPropertyDefault(d){return!this.hasOwnProperty(d)}static _processStyleText(d,h){return Ki(d,h)}static _finalizeTemplate(d){const h=this.prototype._template;if(h&&!h.__polymerFinalized){h.__polymerFinalized=!0;const u=this.importPath,f=u?Tt(u):"";o(this,h,d,f),this.prototype._bindTemplate(h)}}connectedCallback(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this),super.connectedCallback()}ready(){this._template&&(this.root=this._stampTemplate(this._template),this.$=this.root.$),super.ready()}_readyClients(){this._template&&(this.root=this._attachDom(this.root)),super._readyClients()}_attachDom(d){const h=Fe(this);if(h.attachShadow)return d?(h.shadowRoot||(h.attachShadow({mode:"open",shadyUpgradeFragment:d}),h.shadowRoot.appendChild(d),this.constructor._styleSheet&&(h.shadowRoot.adoptedStyleSheets=[this.constructor._styleSheet])),Ru&&window.ShadyDOM&&window.ShadyDOM.flushInitial(h.shadowRoot),h.shadowRoot):null;throw new Error("ShadowDOM not available. PolymerElement can create dom as children instead of in ShadowDOM by setting `this.root = this;` before `ready`.")}updateStyles(d){window.ShadyCSS&&window.ShadyCSS.styleSubtree(this,d)}resolveUrl(d,h){return!h&&this.importPath&&(h=Tt(this.importPath)),Tt(d,h)}static _parseTemplateContent(d,h,u){return h.dynamicFns=h.dynamicFns||this._properties,t._parseTemplateContent.call(this,d,h,u)}static _addTemplatePropertyEffect(d,h,u){return Bu&&!(h in this._properties)&&!(u.info.part.signature&&u.info.part.signature.static)&&!u.info.part.hostProp&&!d.nestedTemplate&&console.warn(`Property '${h}' used in template but not declared in 'properties'; attribute will not be observed.`),t._addTemplatePropertyEffect.call(this,d,h,u)}}return a});/**
|
|
1594
1594
|
@license
|
|
1595
1595
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
1596
1596
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -1598,7 +1598,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
1598
1598
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
1599
1599
|
Code distributed by Google as part of the polymer project is also
|
|
1600
1600
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
1601
|
-
*/const
|
|
1601
|
+
*/const go=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:r=>r});class ia{constructor(t,e){oa(t,e);const i=e.reduce((s,o,n)=>s+sa(o)+t[n+1],t[0]);this.value=i.toString()}toString(){return this.value}}function sa(r){if(r instanceof ia)return r.value;throw new Error(`non-literal value passed to Polymer's htmlLiteral function: ${r}`)}function Qc(r){if(r instanceof HTMLTemplateElement)return r.innerHTML;if(r instanceof ia)return sa(r);throw new Error(`non-template value passed to Polymer's html function: ${r}`)}const Ut=function(t,...e){oa(t,e);const i=document.createElement("template");let s=e.reduce((o,n,a)=>o+Qc(n)+t[a+1],t[0]);return go&&(s=go.createHTML(s)),i.innerHTML=s,i},oa=(r,t)=>{if(!Array.isArray(r)||!Array.isArray(r.raw)||t.length!==r.length-1)throw new TypeError("Invalid call to the html template tag")};/**
|
|
1602
1602
|
@license
|
|
1603
1603
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
1604
1604
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -1606,19 +1606,19 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
1606
1606
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
1607
1607
|
Code distributed by Google as part of the polymer project is also
|
|
1608
1608
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
1609
|
-
*/const jt=
|
|
1609
|
+
*/const jt=Kc(HTMLElement);/**
|
|
1610
1610
|
* @license
|
|
1611
1611
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
1612
1612
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1613
|
-
*/const Ie=[];function Mi(r,t,e=r.getAttribute("dir")){t?r.setAttribute("dir",t):e!=null&&r.removeAttribute("dir")}function Li(){return document.documentElement.getAttribute("dir")}function
|
|
1613
|
+
*/const Ie=[];function Mi(r,t,e=r.getAttribute("dir")){t?r.setAttribute("dir",t):e!=null&&r.removeAttribute("dir")}function Li(){return document.documentElement.getAttribute("dir")}function ef(){const r=Li();Ie.forEach(t=>{Mi(t,r)})}const tf=new MutationObserver(ef);tf.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]});const Tr=r=>class extends r{static get properties(){return{dir:{type:String,value:"",reflectToAttribute:!0,converter:{fromAttribute:e=>e||"",toAttribute:e=>e===""?null:e}}}}get __isRTL(){return this.getAttribute("dir")==="rtl"}connectedCallback(){super.connectedCallback(),(!this.hasAttribute("dir")||this.__restoreSubscription)&&(this.__subscribe(),Mi(this,Li(),null))}attributeChangedCallback(e,i,s){if(super.attributeChangedCallback(e,i,s),e!=="dir")return;const o=Li(),n=s===o&&Ie.indexOf(this)===-1,a=!s&&i&&Ie.indexOf(this)===-1;n||a?(this.__subscribe(),Mi(this,o,s)):s!==o&&i===o&&this.__unsubscribe()}disconnectedCallback(){super.disconnectedCallback(),this.__restoreSubscription=Ie.includes(this),this.__unsubscribe()}_valueToNodeAttribute(e,i,s){s==="dir"&&i===""&&!e.hasAttribute("dir")||super._valueToNodeAttribute(e,i,s)}_attributeToProperty(e,i,s){e==="dir"&&!i?this.dir="":super._attributeToProperty(e,i,s)}__subscribe(){Ie.includes(this)||Ie.push(this)}__unsubscribe(){Ie.includes(this)&&Ie.splice(Ie.indexOf(this),1)}};/**
|
|
1614
1614
|
* @license
|
|
1615
1615
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
1616
1616
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1617
|
-
*/const
|
|
1617
|
+
*/const rf=r=>class extends r{static get properties(){return{disabled:{type:Boolean,reflectToAttribute:!0},readonly:{type:Boolean,reflectToAttribute:!0},invalid:{type:Boolean,reflectToAttribute:!0}}}ready(){super.ready(),this.addEventListener("pointerdown",e=>{e.target===this&&e.preventDefault()}),this.addEventListener("click",e=>{e.target===this&&this.shadowRoot.querySelector("slot:not([name])").assignedNodes({flatten:!0}).forEach(i=>i.focus&&i.focus())})}};/**
|
|
1618
1618
|
* @license
|
|
1619
1619
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
1620
1620
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1621
|
-
*/const
|
|
1621
|
+
*/const sf=R`
|
|
1622
1622
|
:host {
|
|
1623
1623
|
display: flex;
|
|
1624
1624
|
align-items: center;
|
|
@@ -1687,19 +1687,19 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
1687
1687
|
* @license
|
|
1688
1688
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
1689
1689
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1690
|
-
*/ue("vaadin-input-container",
|
|
1690
|
+
*/ue("vaadin-input-container",sf,{moduleId:"vaadin-input-container-styles"});class of extends rf(Sr(Tr(jt))){static get is(){return"vaadin-input-container"}static get template(){return Ut`
|
|
1691
1691
|
<slot name="prefix"></slot>
|
|
1692
1692
|
<slot></slot>
|
|
1693
1693
|
<slot name="suffix"></slot>
|
|
1694
|
-
`}}ct(
|
|
1694
|
+
`}}ct(of);/**
|
|
1695
1695
|
* @license
|
|
1696
1696
|
* Copyright (c) 2015 - 2024 Vaadin Ltd.
|
|
1697
1697
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1698
|
-
*/const
|
|
1698
|
+
*/const nf=r=>class extends r{static get properties(){return{index:{type:Number},item:{type:Object},label:{type:String},selected:{type:Boolean,value:!1,reflectToAttribute:!0},focused:{type:Boolean,value:!1,reflectToAttribute:!0},renderer:{type:Function}}}static get observers(){return["__rendererOrItemChanged(renderer, index, item, selected, focused)","__updateLabel(label, renderer)"]}static get observedAttributes(){return[...super.observedAttributes,"hidden"]}attributeChangedCallback(e,i,s){e==="hidden"&&s!==null?this.index=void 0:super.attributeChangedCallback(e,i,s)}connectedCallback(){super.connectedCallback(),this._owner=this.parentNode.owner;const e=this._owner.getAttribute("dir");e&&this.setAttribute("dir",e)}requestContentUpdate(){if(!this.renderer||this.hidden)return;const e={index:this.index,item:this.item,focused:this.focused,selected:this.selected};this.renderer(this,this._owner,e)}__rendererOrItemChanged(e,i,s){s===void 0||i===void 0||(this._oldRenderer!==e&&(this.innerHTML="",delete this._$litPart$),e&&(this._oldRenderer=e,this.requestContentUpdate()))}__updateLabel(e,i){i||(this.textContent=e)}};/**
|
|
1699
1699
|
* @license
|
|
1700
1700
|
* Copyright (c) 2015 - 2024 Vaadin Ltd.
|
|
1701
1701
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1702
|
-
*/class
|
|
1702
|
+
*/class af extends nf(Sr(Tr(jt))){static get template(){return Ut`
|
|
1703
1703
|
<style>
|
|
1704
1704
|
:host {
|
|
1705
1705
|
display: block;
|
|
@@ -1713,7 +1713,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
1713
1713
|
<div part="content">
|
|
1714
1714
|
<slot></slot>
|
|
1715
1715
|
</div>
|
|
1716
|
-
`}static get is(){return"vaadin-combo-box-item"}}ct(
|
|
1716
|
+
`}static get is(){return"vaadin-combo-box-item"}}ct(af);/**
|
|
1717
1717
|
@license
|
|
1718
1718
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
1719
1719
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -1721,31 +1721,31 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
1721
1721
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
1722
1722
|
Code distributed by Google as part of the polymer project is also
|
|
1723
1723
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
1724
|
-
*/let Bi=!1,
|
|
1724
|
+
*/let Bi=!1,lf=[],na=[];function df(){Bi=!0,requestAnimationFrame(function(){Bi=!1,hf(lf),setTimeout(function(){uf(na)})})}function hf(r){for(;r.length;)aa(r.shift())}function uf(r){for(let t=0,e=r.length;t<e;t++)aa(r.shift())}function aa(r){const t=r[0],e=r[1],i=r[2];try{e.apply(t,i)}catch(s){setTimeout(()=>{throw s})}}function cf(r,t,e){Bi||df(),na.push([r,t,e])}/**
|
|
1725
1725
|
* @license
|
|
1726
1726
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
1727
1727
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1728
|
-
*/const Ir=r=>r.test(navigator.userAgent),Ri=r=>r.test(navigator.platform),
|
|
1728
|
+
*/const Ir=r=>r.test(navigator.userAgent),Ri=r=>r.test(navigator.platform),ff=r=>r.test(navigator.vendor);Ir(/Android/u);Ir(/Chrome/u)&&ff(/Google Inc/u);Ir(/Firefox/u);const pf=Ri(/^iPad/u)||Ri(/^Mac/u)&&navigator.maxTouchPoints>1,mf=Ri(/^iPhone/u),_f=mf||pf,gf=Ir(/^((?!chrome|android).)*safari/iu),Di=(()=>{try{return document.createEvent("TouchEvent"),!0}catch(r){return!1}})();/**
|
|
1729
1729
|
* @license
|
|
1730
1730
|
* Copyright (c) 2017 Anton Korzunov
|
|
1731
1731
|
* SPDX-License-Identifier: MIT
|
|
1732
|
-
*/let Ye=new WeakMap,Kt=new WeakMap,Qt={},Kr=0;const
|
|
1732
|
+
*/let Ye=new WeakMap,Kt=new WeakMap,Qt={},Kr=0;const bo=r=>r&&r.nodeType===Node.ELEMENT_NODE,Qr=(...r)=>{console.error(`Error: ${r.join(" ")}. Skip setting aria-hidden.`)},bf=(r,t)=>bo(r)?t.map(e=>{if(!bo(e))return Qr(e,"is not a valid element"),null;let i=e;for(;i&&i!==r;){if(r.contains(i))return e;i=i.getRootNode().host}return Qr(e,"is not contained inside",r),null}).filter(e=>!!e):(Qr(r,"is not a valid element"),[]),vf=(r,t,e,i)=>{const s=bf(t,Array.isArray(r)?r:[r]);Qt[e]||(Qt[e]=new WeakMap);const o=Qt[e],n=[],a=new Set,l=new Set(s),d=u=>{if(!u||a.has(u))return;a.add(u);const f=u.assignedSlot;f&&d(f),d(u.parentNode||u.host)};s.forEach(d);const h=u=>{if(!u||l.has(u))return;const f=u.shadowRoot;(f?[...u.children,...f.children]:[...u.children]).forEach(_=>{if(!["template","script","style"].includes(_.localName))if(a.has(_))h(_);else{const b=_.getAttribute(i),w=b!==null&&b!=="false",y=(Ye.get(_)||0)+1,v=(o.get(_)||0)+1;Ye.set(_,y),o.set(_,v),n.push(_),y===1&&w&&Kt.set(_,!0),v===1&&_.setAttribute(e,"true"),w||_.setAttribute(i,"true")}})};return h(t),a.clear(),Kr+=1,()=>{n.forEach(u=>{const f=Ye.get(u)-1,m=o.get(u)-1;Ye.set(u,f),o.set(u,m),f||(Kt.has(u)?Kt.delete(u):u.removeAttribute(i)),m||u.removeAttribute(e)}),Kr-=1,Kr||(Ye=new WeakMap,Ye=new WeakMap,Kt=new WeakMap,Qt={})}},yf=(r,t=document.body,e="data-aria-hidden")=>{const i=Array.from(Array.isArray(r)?r:[r]);return t&&i.push(...Array.from(t.querySelectorAll("[aria-live]"))),vf(i,t,e,"aria-hidden")};/**
|
|
1733
1733
|
* @license
|
|
1734
1734
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
1735
1735
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1736
|
-
*/class
|
|
1736
|
+
*/class wf{constructor(t,e){this.host=t,this.callback=typeof e=="function"?e:()=>t}showModal(){const t=this.callback();this.__showOthers=yf(t)}close(){this.__showOthers&&(this.__showOthers(),this.__showOthers=null)}}/**
|
|
1737
1737
|
* @license
|
|
1738
1738
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
1739
1739
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1740
|
-
*/let rs=!1;window.addEventListener("keydown",()=>{rs=!0},{capture:!0});window.addEventListener("mousedown",()=>{rs=!1},{capture:!0});function Hi(){let r=document.activeElement||document.body;for(;r.shadowRoot&&r.shadowRoot.activeElement;)r=r.shadowRoot.activeElement;return r}function is(){return rs}function
|
|
1740
|
+
*/let rs=!1;window.addEventListener("keydown",()=>{rs=!0},{capture:!0});window.addEventListener("mousedown",()=>{rs=!1},{capture:!0});function Hi(){let r=document.activeElement||document.body;for(;r.shadowRoot&&r.shadowRoot.activeElement;)r=r.shadowRoot.activeElement;return r}function is(){return rs}function xf(r){const t=r.style;if(t.visibility==="hidden"||t.display==="none")return!0;const e=window.getComputedStyle(r);return e.visibility==="hidden"||e.display==="none"}function Pf(r,t){const e=Math.max(r.tabIndex,0),i=Math.max(t.tabIndex,0);return e===0||i===0?i>e:e>i}function Ef(r,t){const e=[];for(;r.length>0&&t.length>0;)Pf(r[0],t[0])?e.push(t.shift()):e.push(r.shift());return e.concat(r,t)}function zi(r){const t=r.length;if(t<2)return r;const e=Math.ceil(t/2),i=zi(r.slice(0,e)),s=zi(r.slice(e));return Ef(i,s)}function la(r){return r.matches('[tabindex="-1"]')?!1:r.matches("input, select, textarea, button, object")?r.matches(":not([disabled])"):r.matches("a[href], area[href], iframe, [tabindex], [contentEditable]")}function da(r){return r.getRootNode().activeElement===r}function Cf(r){if(!la(r))return-1;const t=r.getAttribute("tabindex")||0;return Number(t)}function ha(r,t){if(r.nodeType!==Node.ELEMENT_NODE||xf(r))return!1;const e=r,i=Cf(e);let s=i>0;i>=0&&t.push(e);let o=[];return e.localName==="slot"?o=e.assignedNodes({flatten:!0}):o=(e.shadowRoot||e).children,[...o].forEach(n=>{s=ha(n,t)||s}),s}function Sf(r){const t=[];return ha(r,t)?zi(t):t}/**
|
|
1741
1741
|
* @license
|
|
1742
1742
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
1743
1743
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1744
|
-
*/class
|
|
1744
|
+
*/class Af{saveFocus(t){this.focusNode=t||Hi()}restoreFocus(t){const e=this.focusNode;if(!e)return;const i=t?t.preventScroll:!1;Hi()===document.body?setTimeout(()=>e.focus({preventScroll:i})):e.focus({preventScroll:i}),this.focusNode=null}}/**
|
|
1745
1745
|
* @license
|
|
1746
1746
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
1747
1747
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1748
|
-
*/const ei=[];class
|
|
1748
|
+
*/const ei=[];class Tf{constructor(t){this.host=t,this.__trapNode=null,this.__onKeyDown=this.__onKeyDown.bind(this)}get __focusableElements(){return Sf(this.__trapNode)}get __focusedElementIndex(){const t=this.__focusableElements;return t.indexOf(t.filter(da).pop())}hostConnected(){document.addEventListener("keydown",this.__onKeyDown)}hostDisconnected(){document.removeEventListener("keydown",this.__onKeyDown)}trapFocus(t){if(this.__trapNode=t,this.__focusableElements.length===0)throw this.__trapNode=null,new Error("The trap node should have at least one focusable descendant or be focusable itself.");ei.push(this),this.__focusedElementIndex===-1&&this.__focusableElements[0].focus()}releaseFocus(){this.__trapNode=null,ei.pop()}__onKeyDown(t){if(this.__trapNode&&this===Array.from(ei).pop()&&t.key==="Tab"){t.preventDefault();const e=t.shiftKey;this.__focusNextElement(e)}}__focusNextElement(t=!1){const e=this.__focusableElements,i=t?-1:1,s=this.__focusedElementIndex,o=(e.length+s+i)%e.length,n=e[o];n.focus(),n.localName==="input"&&n.select()}}/**
|
|
1749
1749
|
* @license
|
|
1750
1750
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
1751
1751
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
@@ -1753,19 +1753,19 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
1753
1753
|
* @license
|
|
1754
1754
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
1755
1755
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1756
|
-
*/const
|
|
1756
|
+
*/const If=r=>class extends Or(r){static get properties(){return{focusTrap:{type:Boolean,value:!1},restoreFocusOnClose:{type:Boolean,value:!1},restoreFocusNode:{type:HTMLElement}}}constructor(){super(),this.__ariaModalController=new wf(this),this.__focusTrapController=new Tf(this),this.__focusRestorationController=new Af}ready(){super.ready(),this.addController(this.__ariaModalController),this.addController(this.__focusTrapController),this.addController(this.__focusRestorationController)}_resetFocus(){if(this.focusTrap&&(this.__ariaModalController.close(),this.__focusTrapController.releaseFocus()),this.restoreFocusOnClose&&this._shouldRestoreFocus()){const e=!is();this.__focusRestorationController.restoreFocus({preventScroll:e})}}_saveFocus(){this.restoreFocusOnClose&&this.__focusRestorationController.saveFocus(this.restoreFocusNode)}_trapFocus(){this.focusTrap&&(this.__ariaModalController.showModal(),this.__focusTrapController.trapFocus(this.$.overlay))}_shouldRestoreFocus(){const e=Hi();return e===document.body||this._deepContains(e)}_deepContains(e){if(this.contains(e))return!0;let i=e;const s=e.ownerDocument;for(;i&&i!==s&&i!==this;)i=i.parentNode||i.host;return i===this}};/**
|
|
1757
1757
|
* @license
|
|
1758
1758
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
1759
1759
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1760
|
-
*/const
|
|
1760
|
+
*/const ua=()=>Array.from(document.body.children).filter(r=>r instanceof HTMLElement&&r._hasOverlayStackMixin&&!r.hasAttribute("closing")).sort((r,t)=>r.__zIndex-t.__zIndex||0),Fi=()=>ua().filter(r=>r.$.overlay),Of=r=>r===Fi().pop(),Nf=r=>class extends r{constructor(){super(),this._hasOverlayStackMixin=!0}get _last(){return Of(this)}bringToFront(){let e="";const i=ua().filter(s=>s!==this).pop();i&&(e=i.__zIndex+1),this.style.zIndex=e,this.__zIndex=e||parseFloat(getComputedStyle(this).zIndex)}_enterModalState(){document.body.style.pointerEvents!=="none"&&(this._previousDocumentPointerEvents=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),Fi().forEach(e=>{e!==this&&(e.$.overlay.style.pointerEvents="none")})}_exitModalState(){this._previousDocumentPointerEvents!==void 0&&(document.body.style.pointerEvents=this._previousDocumentPointerEvents,delete this._previousDocumentPointerEvents);const e=Fi();let i;for(;(i=e.pop())&&!(i!==this&&(i.$.overlay.style.removeProperty("pointer-events"),!i.modeless)););}};/**
|
|
1761
1761
|
* @license
|
|
1762
1762
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
1763
1763
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1764
|
-
*/const
|
|
1764
|
+
*/const kf=r=>class extends If(Nf(r)){static get properties(){return{opened:{type:Boolean,notify:!0,observer:"_openedChanged",reflectToAttribute:!0},owner:{type:Object},model:{type:Object},renderer:{type:Object},modeless:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_modelessChanged"},hidden:{type:Boolean,reflectToAttribute:!0,observer:"_hiddenChanged"},withBackdrop:{type:Boolean,value:!1,reflectToAttribute:!0}}}static get observers(){return["_rendererOrDataChanged(renderer, owner, model, opened)"]}constructor(){super(),this._boundMouseDownListener=this._mouseDownListener.bind(this),this._boundMouseUpListener=this._mouseUpListener.bind(this),this._boundOutsideClickListener=this._outsideClickListener.bind(this),this._boundKeydownListener=this._keydownListener.bind(this),_f&&(this._boundIosResizeListener=()=>this._detectIosNavbar())}ready(){super.ready(),this.addEventListener("click",()=>{}),this.$.backdrop.addEventListener("click",()=>{}),this.addEventListener("mouseup",()=>{document.activeElement===document.body&&this.$.overlay.getAttribute("tabindex")==="0"&&this.$.overlay.focus()})}connectedCallback(){super.connectedCallback(),this._boundIosResizeListener&&(this._detectIosNavbar(),window.addEventListener("resize",this._boundIosResizeListener))}disconnectedCallback(){super.disconnectedCallback(),this._boundIosResizeListener&&window.removeEventListener("resize",this._boundIosResizeListener)}requestContentUpdate(){this.renderer&&this.renderer.call(this.owner,this,this.owner,this.model)}close(e){const i=new CustomEvent("vaadin-overlay-close",{bubbles:!0,cancelable:!0,detail:{sourceEvent:e}});this.dispatchEvent(i),i.defaultPrevented||(this.opened=!1)}_detectIosNavbar(){if(!this.opened)return;const e=window.innerHeight,s=window.innerWidth>e,o=document.documentElement.clientHeight;s&&o>e?this.style.setProperty("--vaadin-overlay-viewport-bottom",`${o-e}px`):this.style.setProperty("--vaadin-overlay-viewport-bottom","0")}_addGlobalListeners(){document.addEventListener("mousedown",this._boundMouseDownListener),document.addEventListener("mouseup",this._boundMouseUpListener),document.documentElement.addEventListener("click",this._boundOutsideClickListener,!0)}_removeGlobalListeners(){document.removeEventListener("mousedown",this._boundMouseDownListener),document.removeEventListener("mouseup",this._boundMouseUpListener),document.documentElement.removeEventListener("click",this._boundOutsideClickListener,!0)}_rendererOrDataChanged(e,i,s,o){const n=this._oldOwner!==i||this._oldModel!==s;this._oldModel=s,this._oldOwner=i;const a=this._oldRenderer!==e,l=this._oldRenderer!==void 0;this._oldRenderer=e;const d=this._oldOpened!==o;this._oldOpened=o,a&&l&&(this.innerHTML="",delete this._$litPart$),o&&e&&(a||d||n)&&this.requestContentUpdate()}_modelessChanged(e){e?(this._removeGlobalListeners(),this._exitModalState()):this.opened&&(this._addGlobalListeners(),this._enterModalState())}_openedChanged(e,i){e?(this._saveFocus(),this._animatedOpening(),cf(this,()=>{this._trapFocus();const s=new CustomEvent("vaadin-overlay-open",{bubbles:!0});this.dispatchEvent(s)}),document.addEventListener("keydown",this._boundKeydownListener),this.modeless||this._addGlobalListeners()):i&&(this._resetFocus(),this._animatedClosing(),document.removeEventListener("keydown",this._boundKeydownListener),this.modeless||this._removeGlobalListeners())}_hiddenChanged(e){e&&this.hasAttribute("closing")&&this._flushAnimation("closing")}_shouldAnimate(){const e=getComputedStyle(this),i=e.getPropertyValue("animation-name");return!(e.getPropertyValue("display")==="none")&&i&&i!=="none"}_enqueueAnimation(e,i){const s=`__${e}Handler`,o=n=>{n&&n.target!==this||(i(),this.removeEventListener("animationend",o),delete this[s])};this[s]=o,this.addEventListener("animationend",o)}_flushAnimation(e){const i=`__${e}Handler`;typeof this[i]=="function"&&this[i]()}_animatedOpening(){this.parentNode===document.body&&this.hasAttribute("closing")&&this._flushAnimation("closing"),this._attachOverlay(),this.modeless||this._enterModalState(),this.setAttribute("opening",""),this._shouldAnimate()?this._enqueueAnimation("opening",()=>{this._finishOpening()}):this._finishOpening()}_attachOverlay(){this._placeholder=document.createComment("vaadin-overlay-placeholder"),this.parentNode.insertBefore(this._placeholder,this),document.body.appendChild(this),this.bringToFront()}_finishOpening(){this.removeAttribute("opening")}_finishClosing(){this._detachOverlay(),this.$.overlay.style.removeProperty("pointer-events"),this.removeAttribute("closing"),this.dispatchEvent(new CustomEvent("vaadin-overlay-closed"))}_animatedClosing(){this.hasAttribute("opening")&&this._flushAnimation("opening"),this._placeholder&&(this._exitModalState(),this.setAttribute("closing",""),this.dispatchEvent(new CustomEvent("vaadin-overlay-closing")),this._shouldAnimate()?this._enqueueAnimation("closing",()=>{this._finishClosing()}):this._finishClosing())}_detachOverlay(){this._placeholder.parentNode.insertBefore(this,this._placeholder),this._placeholder.parentNode.removeChild(this._placeholder)}_mouseDownListener(e){this._mouseDownInside=e.composedPath().indexOf(this.$.overlay)>=0}_mouseUpListener(e){this._mouseUpInside=e.composedPath().indexOf(this.$.overlay)>=0}_shouldCloseOnOutsideClick(e){return this._last}_outsideClickListener(e){if(e.composedPath().includes(this.$.overlay)||this._mouseDownInside||this._mouseUpInside){this._mouseDownInside=!1,this._mouseUpInside=!1;return}if(!this._shouldCloseOnOutsideClick(e))return;const i=new CustomEvent("vaadin-overlay-outside-click",{bubbles:!0,cancelable:!0,detail:{sourceEvent:e}});this.dispatchEvent(i),this.opened&&!i.defaultPrevented&&this.close(e)}_keydownListener(e){if(this._last&&!(this.modeless&&!e.composedPath().includes(this.$.overlay))&&e.key==="Escape"){const i=new CustomEvent("vaadin-overlay-escape-press",{bubbles:!0,cancelable:!0,detail:{sourceEvent:e}});this.dispatchEvent(i),this.opened&&!i.defaultPrevented&&this.close(e)}}};/**
|
|
1765
1765
|
* @license
|
|
1766
1766
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
1767
1767
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1768
|
-
*/const
|
|
1768
|
+
*/const Mf=R`
|
|
1769
1769
|
:host {
|
|
1770
1770
|
z-index: 200;
|
|
1771
1771
|
position: fixed;
|
|
@@ -1828,23 +1828,23 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
1828
1828
|
* @license
|
|
1829
1829
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
1830
1830
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1831
|
-
*/function
|
|
1831
|
+
*/function Lf(r){const t=[];for(;r;){if(r.nodeType===Node.DOCUMENT_NODE){t.push(r);break}if(r.nodeType===Node.DOCUMENT_FRAGMENT_NODE){t.push(r),r=r.host;continue}if(r.assignedSlot){r=r.assignedSlot;continue}r=r.parentNode}return t}function ss(r){return r?new Set(r.split(" ")):new Set}function Nr(r){return r?[...r].join(" "):""}function ca(r,t,e){const i=ss(r.getAttribute(t));i.add(e),r.setAttribute(t,Nr(i))}function Bf(r,t,e){const i=ss(r.getAttribute(t));if(i.delete(e),i.size===0){r.removeAttribute(t);return}r.setAttribute(t,Nr(i))}function Rf(r){return r.nodeType===Node.TEXT_NODE&&r.textContent.trim()===""}/**
|
|
1832
1832
|
* @license
|
|
1833
1833
|
* Copyright (c) 2024 Vaadin Ltd.
|
|
1834
1834
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1835
|
-
*/function
|
|
1835
|
+
*/function Df(r,t){let e=null;const i=document.documentElement;function s(){e&&e.disconnect(),e=null}function o(n=!1,a=1){s();const{left:l,top:d,width:h,height:u}=r.getBoundingClientRect();if(n||t(),!h||!u)return;const f=Math.floor(d),m=Math.floor(i.clientWidth-(l+h)),_=Math.floor(i.clientHeight-(d+u)),b=Math.floor(l),y={rootMargin:`${-f}px ${-m}px ${-_}px ${-b}px`,threshold:Math.max(0,Math.min(1,a))||1};let v=!0;function C(E){let S=E[0].intersectionRatio;if(S!==a){if(!v)return o();S===0&&(S=1e-7),o(!1,S)}v=!1}e=new IntersectionObserver(C,y),e.observe(r)}return o(!0),s}/**
|
|
1836
1836
|
* @license
|
|
1837
1837
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
1838
1838
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1839
|
-
*/const ti={start:"top",end:"bottom"},ri={start:"left",end:"right"},
|
|
1839
|
+
*/const ti={start:"top",end:"bottom"},ri={start:"left",end:"right"},vo=new ResizeObserver(r=>{setTimeout(()=>{r.forEach(t=>{t.target.__overlay&&t.target.__overlay._updatePosition()})})}),Hf=r=>class extends r{static get properties(){return{positionTarget:{type:Object,value:null,sync:!0},horizontalAlign:{type:String,value:"start",sync:!0},verticalAlign:{type:String,value:"top",sync:!0},noHorizontalOverlap:{type:Boolean,value:!1,sync:!0},noVerticalOverlap:{type:Boolean,value:!1,sync:!0},requiredVerticalSpace:{type:Number,value:0,sync:!0}}}static get observers(){return["__positionSettingsChanged(horizontalAlign, verticalAlign, noHorizontalOverlap, noVerticalOverlap, requiredVerticalSpace)","__overlayOpenedChanged(opened, positionTarget)"]}constructor(){super(),this.__onScroll=this.__onScroll.bind(this),this._updatePosition=this._updatePosition.bind(this)}connectedCallback(){super.connectedCallback(),this.opened&&this.__addUpdatePositionEventListeners()}disconnectedCallback(){super.disconnectedCallback(),this.__removeUpdatePositionEventListeners()}__addUpdatePositionEventListeners(){window.visualViewport.addEventListener("resize",this._updatePosition),window.visualViewport.addEventListener("scroll",this.__onScroll,!0),this.__positionTargetAncestorRootNodes=Lf(this.positionTarget),this.__positionTargetAncestorRootNodes.forEach(e=>{e.addEventListener("scroll",this.__onScroll,!0)}),this.positionTarget&&(this.__observePositionTargetMove=Df(this.positionTarget,()=>{this._updatePosition()}))}__removeUpdatePositionEventListeners(){window.visualViewport.removeEventListener("resize",this._updatePosition),window.visualViewport.removeEventListener("scroll",this.__onScroll,!0),this.__positionTargetAncestorRootNodes&&(this.__positionTargetAncestorRootNodes.forEach(e=>{e.removeEventListener("scroll",this.__onScroll,!0)}),this.__positionTargetAncestorRootNodes=null),this.__observePositionTargetMove&&(this.__observePositionTargetMove(),this.__observePositionTargetMove=null)}__overlayOpenedChanged(e,i){if(this.__removeUpdatePositionEventListeners(),i&&(i.__overlay=null,vo.unobserve(i),e&&(this.__addUpdatePositionEventListeners(),i.__overlay=this,vo.observe(i))),e){const s=getComputedStyle(this);this.__margins||(this.__margins={},["top","bottom","left","right"].forEach(o=>{this.__margins[o]=parseInt(s[o],10)})),this._updatePosition(),requestAnimationFrame(()=>this._updatePosition())}}__positionSettingsChanged(){this._updatePosition()}__onScroll(e){e.target instanceof Node&&this.contains(e.target)||this._updatePosition()}_updatePosition(){if(!this.positionTarget||!this.opened||!this.__margins)return;const e=this.positionTarget.getBoundingClientRect();if(e.width===0&&e.height===0&&this.opened){this.opened=!1;return}const i=this.__shouldAlignStartVertically(e);this.style.justifyContent=i?"flex-start":"flex-end";const s=this.__isRTL,o=this.__shouldAlignStartHorizontally(e,s),n=!s&&o||s&&!o;this.style.alignItems=n?"flex-start":"flex-end";const a=this.getBoundingClientRect(),l=this.__calculatePositionInOneDimension(e,a,this.noVerticalOverlap,ti,this,i),d=this.__calculatePositionInOneDimension(e,a,this.noHorizontalOverlap,ri,this,o);Object.assign(this.style,l,d),this.toggleAttribute("bottom-aligned",!i),this.toggleAttribute("top-aligned",i),this.toggleAttribute("end-aligned",!n),this.toggleAttribute("start-aligned",n)}__shouldAlignStartHorizontally(e,i){const s=Math.max(this.__oldContentWidth||0,this.$.overlay.offsetWidth);this.__oldContentWidth=this.$.overlay.offsetWidth;const o=Math.min(window.innerWidth,document.documentElement.clientWidth),n=!i&&this.horizontalAlign==="start"||i&&this.horizontalAlign==="end";return this.__shouldAlignStart(e,s,o,this.__margins,n,this.noHorizontalOverlap,ri)}__shouldAlignStartVertically(e){const i=this.requiredVerticalSpace||Math.max(this.__oldContentHeight||0,this.$.overlay.offsetHeight);this.__oldContentHeight=this.$.overlay.offsetHeight;const s=Math.min(window.innerHeight,document.documentElement.clientHeight),o=this.verticalAlign==="top";return this.__shouldAlignStart(e,i,s,this.__margins,o,this.noVerticalOverlap,ti)}__shouldAlignStart(e,i,s,o,n,a,l){const d=s-e[a?l.end:l.start]-o[l.end],h=e[a?l.start:l.end]-o[l.start],u=n?d:h,m=u>(n?h:d)||u>i;return n===m}__adjustBottomProperty(e,i,s){let o;if(e===i.end){if(i.end===ti.end){const n=Math.min(window.innerHeight,document.documentElement.clientHeight);if(s>n&&this.__oldViewportHeight){const a=this.__oldViewportHeight-n;o=s-a}this.__oldViewportHeight=n}if(i.end===ri.end){const n=Math.min(window.innerWidth,document.documentElement.clientWidth);if(s>n&&this.__oldViewportWidth){const a=this.__oldViewportWidth-n;o=s-a}this.__oldViewportWidth=n}}return o}__calculatePositionInOneDimension(e,i,s,o,n,a){const l=a?o.start:o.end,d=a?o.end:o.start,h=parseFloat(n.style[l]||getComputedStyle(n)[l]),u=this.__adjustBottomProperty(l,o,h),f=i[a?o.start:o.end]-e[s===a?o.end:o.start],m=u?`${u}px`:`${h+f*(a?-1:1)}px`;return{[l]:m,[d]:""}}};/**
|
|
1840
1840
|
* @license
|
|
1841
1841
|
* Copyright (c) 2015 - 2024 Vaadin Ltd.
|
|
1842
1842
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1843
|
-
*/const
|
|
1843
|
+
*/const zf=r=>class extends Hf(r){static get observers(){return["_setOverlayWidth(positionTarget, opened)"]}constructor(){super(),this.requiredVerticalSpace=200}connectedCallback(){super.connectedCallback();const e=this._comboBox,i=e&&e.getAttribute("dir");i&&this.setAttribute("dir",i)}_shouldCloseOnOutsideClick(e){const i=e.composedPath();return!i.includes(this.positionTarget)&&!i.includes(this)}_mouseDownListener(e){super._mouseDownListener(e),this._shouldCloseOnOutsideClick(e)&&!la(e.composedPath()[0])&&e.preventDefault()}_updateOverlayWidth(){const e=this.localName;this.style.setProperty(`--_${e}-default-width`,`${this.positionTarget.clientWidth}px`);const i=getComputedStyle(this._comboBox).getPropertyValue(`--${e}-width`);i===""?this.style.removeProperty(`--${e}-width`):this.style.setProperty(`--${e}-width`,i)}_setOverlayWidth(e,i){e&&i&&(this._updateOverlayWidth(),this._updatePosition())}};/**
|
|
1844
1844
|
* @license
|
|
1845
1845
|
* Copyright (c) 2015 - 2024 Vaadin Ltd.
|
|
1846
1846
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1847
|
-
*/const
|
|
1847
|
+
*/const Ff=R`
|
|
1848
1848
|
#overlay {
|
|
1849
1849
|
width: var(--vaadin-combo-box-overlay-width, var(--_vaadin-combo-box-overlay-default-width, auto));
|
|
1850
1850
|
}
|
|
@@ -1854,13 +1854,13 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
1854
1854
|
flex-direction: column;
|
|
1855
1855
|
height: 100%;
|
|
1856
1856
|
}
|
|
1857
|
-
`;ue("vaadin-combo-box-overlay",[
|
|
1857
|
+
`;ue("vaadin-combo-box-overlay",[Mf,Ff],{moduleId:"vaadin-combo-box-overlay-styles"});class Vf extends zf(kf(Tr(Sr(jt)))){static get is(){return"vaadin-combo-box-overlay"}static get template(){return Ut`
|
|
1858
1858
|
<div id="backdrop" part="backdrop" hidden></div>
|
|
1859
1859
|
<div part="overlay" id="overlay">
|
|
1860
1860
|
<div part="loader"></div>
|
|
1861
1861
|
<div part="content" id="content"><slot></slot></div>
|
|
1862
1862
|
</div>
|
|
1863
|
-
`}}ct(
|
|
1863
|
+
`}}ct(Vf);/**
|
|
1864
1864
|
* @license
|
|
1865
1865
|
* Copyright (c) 2023 - 2024 Vaadin Ltd.
|
|
1866
1866
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
@@ -1868,7 +1868,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
1868
1868
|
* @license
|
|
1869
1869
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
1870
1870
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1871
|
-
*/let
|
|
1871
|
+
*/let $f=0;function fa(){return $f++}/**
|
|
1872
1872
|
* @license
|
|
1873
1873
|
* Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
1874
1874
|
* This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -1876,7 +1876,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
1876
1876
|
* The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
1877
1877
|
* Code distributed by Google as part of the polymer project is also
|
|
1878
1878
|
* subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
1879
|
-
*/let
|
|
1879
|
+
*/let yo=0,pa=0;const tt=[];let Vi=!1;function Uf(){Vi=!1;const r=tt.length;for(let t=0;t<r;t++){const e=tt[t];if(e)try{e()}catch(i){setTimeout(()=>{throw i})}}tt.splice(0,r),pa+=r}const nr={after(r){return{run(t){return window.setTimeout(t,r)},cancel(t){window.clearTimeout(t)}}},run(r,t){return window.setTimeout(r,t)},cancel(r){window.clearTimeout(r)}},zt={run(r){return window.requestAnimationFrame(r)},cancel(r){window.cancelAnimationFrame(r)}},ma={run(r){return window.requestIdleCallback?window.requestIdleCallback(r):window.setTimeout(r,16)},cancel(r){window.cancelIdleCallback?window.cancelIdleCallback(r):window.clearTimeout(r)}},$i={run(r){Vi||(Vi=!0,queueMicrotask(()=>Uf())),tt.push(r);const t=yo;return yo+=1,t},cancel(r){const t=r-pa;if(t>=0){if(!tt[t])throw new Error(`invalid async handle: ${r}`);tt[t]=null}}};/**
|
|
1880
1880
|
@license
|
|
1881
1881
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
1882
1882
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -1884,7 +1884,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
1884
1884
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
1885
1885
|
Code distributed by Google as part of the polymer project is also
|
|
1886
1886
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
1887
|
-
*/const Ft=new Set;class Pe{static debounce(t,e,i){return t instanceof Pe?t._cancelAsync():t=new Pe,t.setConfig(e,i),t}constructor(){this._asyncModule=null,this._callback=null,this._timer=null}setConfig(t,e){this._asyncModule=t,this._callback=e,this._timer=this._asyncModule.run(()=>{this._timer=null,Ft.delete(this),this._callback()})}cancel(){this.isActive()&&(this._cancelAsync(),Ft.delete(this))}_cancelAsync(){this.isActive()&&(this._asyncModule.cancel(this._timer),this._timer=null)}flush(){this.isActive()&&(this.cancel(),this._callback())}isActive(){return this._timer!=null}}function
|
|
1887
|
+
*/const Ft=new Set;class Pe{static debounce(t,e,i){return t instanceof Pe?t._cancelAsync():t=new Pe,t.setConfig(e,i),t}constructor(){this._asyncModule=null,this._callback=null,this._timer=null}setConfig(t,e){this._asyncModule=t,this._callback=e,this._timer=this._asyncModule.run(()=>{this._timer=null,Ft.delete(this),this._callback()})}cancel(){this.isActive()&&(this._cancelAsync(),Ft.delete(this))}_cancelAsync(){this.isActive()&&(this._asyncModule.cancel(this._timer),this._timer=null)}flush(){this.isActive()&&(this.cancel(),this._callback())}isActive(){return this._timer!=null}}function _a(r){Ft.add(r)}function jf(){const r=!!Ft.size;return Ft.forEach(t=>{try{t.flush()}catch(e){setTimeout(()=>{throw e})}}),r}const Pt=()=>{let r;do r=jf();while(r)};/**
|
|
1888
1888
|
* @license
|
|
1889
1889
|
* Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
|
|
1890
1890
|
* This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -1892,11 +1892,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
1892
1892
|
* The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
1893
1893
|
* Code distributed by Google as part of the polymer project is also
|
|
1894
1894
|
* subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
1895
|
-
*/const
|
|
1895
|
+
*/const wo=navigator.userAgent.match(/iP(?:hone|ad;(?: U;)? CPU) OS (\d+)/u),Gf=wo&&wo[1]>=8,xo=3,Wf={_ratio:.5,_scrollerPaddingTop:0,_scrollPosition:0,_physicalSize:0,_physicalAverage:0,_physicalAverageCount:0,_physicalTop:0,_virtualCount:0,_estScrollHeight:0,_scrollHeight:0,_viewportHeight:0,_viewportWidth:0,_physicalItems:null,_physicalSizes:null,_firstVisibleIndexVal:null,_lastVisibleIndexVal:null,_maxPages:2,_templateCost:0,get _physicalBottom(){return this._physicalTop+this._physicalSize},get _scrollBottom(){return this._scrollPosition+this._viewportHeight},get _virtualEnd(){return this._virtualStart+this._physicalCount-1},get _hiddenContentSize(){return this._physicalSize-this._viewportHeight},get _maxScrollTop(){return this._estScrollHeight-this._viewportHeight+this._scrollOffset},get _maxVirtualStart(){const r=this._virtualCount;return Math.max(0,r-this._physicalCount)},get _virtualStart(){return this._virtualStartVal||0},set _virtualStart(r){r=this._clamp(r,0,this._maxVirtualStart),this._virtualStartVal=r},get _physicalStart(){return this._physicalStartVal||0},set _physicalStart(r){r%=this._physicalCount,r<0&&(r=this._physicalCount+r),this._physicalStartVal=r},get _physicalEnd(){return(this._physicalStart+this._physicalCount-1)%this._physicalCount},get _physicalCount(){return this._physicalCountVal||0},set _physicalCount(r){this._physicalCountVal=r},get _optPhysicalSize(){return this._viewportHeight===0?1/0:this._viewportHeight*this._maxPages},get _isVisible(){return!!(this.offsetWidth||this.offsetHeight)},get firstVisibleIndex(){let r=this._firstVisibleIndexVal;if(r==null){let t=this._physicalTop+this._scrollOffset;r=this._iterateItems((e,i)=>{if(t+=this._getPhysicalSizeIncrement(e),t>this._scrollPosition)return i})||0,this._firstVisibleIndexVal=r}return r},get lastVisibleIndex(){let r=this._lastVisibleIndexVal;if(r==null){let t=this._physicalTop+this._scrollOffset;this._iterateItems((e,i)=>{t<this._scrollBottom&&(r=i),t+=this._getPhysicalSizeIncrement(e)}),this._lastVisibleIndexVal=r}return r},get _scrollOffset(){return this._scrollerPaddingTop+this.scrollOffset},_scrollHandler(){const r=Math.max(0,Math.min(this._maxScrollTop,this._scrollTop));let t=r-this._scrollPosition;const e=t>=0;if(this._scrollPosition=r,this._firstVisibleIndexVal=null,this._lastVisibleIndexVal=null,Math.abs(t)>this._physicalSize&&this._physicalSize>0){t-=this._scrollOffset;const i=Math.round(t/this._physicalAverage);this._virtualStart+=i,this._physicalStart+=i,this._physicalTop=Math.min(Math.floor(this._virtualStart)*this._physicalAverage,this._scrollPosition),this._update()}else if(this._physicalCount>0){const i=this._getReusables(e);e?(this._physicalTop=i.physicalTop,this._virtualStart+=i.indexes.length,this._physicalStart+=i.indexes.length):(this._virtualStart-=i.indexes.length,this._physicalStart-=i.indexes.length),this._update(i.indexes,e?null:i.indexes),this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,0),$i)}},_getReusables(r){let t,e,i;const s=[],o=this._hiddenContentSize*this._ratio,n=this._virtualStart,a=this._virtualEnd,l=this._physicalCount;let d=this._physicalTop+this._scrollOffset;const h=this._physicalBottom+this._scrollOffset,u=this._scrollPosition,f=this._scrollBottom;for(r?(t=this._physicalStart,e=u-d):(t=this._physicalEnd,e=h-f);i=this._getPhysicalSizeIncrement(t),e-=i,!(s.length>=l||e<=o);)if(r){if(a+s.length+1>=this._virtualCount||d+i>=u-this._scrollOffset)break;s.push(t),d+=i,t=(t+1)%l}else{if(n-s.length<=0||d+this._physicalSize-i<=f)break;s.push(t),d-=i,t=t===0?l-1:t-1}return{indexes:s,physicalTop:d-this._scrollOffset}},_update(r,t){if(!(r&&r.length===0||this._physicalCount===0)){if(this._assignModels(r),this._updateMetrics(r),t)for(;t.length;){const e=t.pop();this._physicalTop-=this._getPhysicalSizeIncrement(e)}this._positionItems(),this._updateScrollerSize()}},_isClientFull(){return this._scrollBottom!==0&&this._physicalBottom-1>=this._scrollBottom&&this._physicalTop<=this._scrollPosition},_increasePoolIfNeeded(r){const e=this._clamp(this._physicalCount+r,xo,this._virtualCount-this._virtualStart)-this._physicalCount;let i=Math.round(this._physicalCount*.5);if(!(e<0)){if(e>0){const s=window.performance.now();[].push.apply(this._physicalItems,this._createPool(e));for(let o=0;o<e;o++)this._physicalSizes.push(0);this._physicalCount+=e,this._physicalStart>this._physicalEnd&&this._isIndexRendered(this._focusedVirtualIndex)&&this._getPhysicalIndex(this._focusedVirtualIndex)<this._physicalEnd&&(this._physicalStart+=e),this._update(),this._templateCost=(window.performance.now()-s)/e,i=Math.round(this._physicalCount*.5)}this._virtualEnd>=this._virtualCount-1||i===0||(this._isClientFull()?this._physicalSize<this._optPhysicalSize&&this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,this._clamp(Math.round(50/this._templateCost),1,i)),ma):this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,i),$i))}},_render(){if(!(!this.isAttached||!this._isVisible))if(this._physicalCount!==0){const r=this._getReusables(!0);this._physicalTop=r.physicalTop,this._virtualStart+=r.indexes.length,this._physicalStart+=r.indexes.length,this._update(r.indexes),this._update(),this._increasePoolIfNeeded(0)}else this._virtualCount>0&&(this.updateViewportBoundaries(),this._increasePoolIfNeeded(xo))},_itemsChanged(r){r.path==="items"&&(this._virtualStart=0,this._physicalTop=0,this._virtualCount=this.items?this.items.length:0,this._physicalIndexForKey={},this._firstVisibleIndexVal=null,this._lastVisibleIndexVal=null,this._physicalItems||(this._physicalItems=[]),this._physicalSizes||(this._physicalSizes=[]),this._physicalStart=0,this._scrollTop>this._scrollOffset&&this._resetScrollPosition(0),this._debounce("_render",this._render,zt))},_iterateItems(r,t){let e,i,s,o;if(arguments.length===2&&t){for(o=0;o<t.length;o++)if(e=t[o],i=this._computeVidx(e),(s=r.call(this,e,i))!=null)return s}else{for(e=this._physicalStart,i=this._virtualStart;e<this._physicalCount;e++,i++)if((s=r.call(this,e,i))!=null)return s;for(e=0;e<this._physicalStart;e++,i++)if((s=r.call(this,e,i))!=null)return s}},_computeVidx(r){return r>=this._physicalStart?this._virtualStart+(r-this._physicalStart):this._virtualStart+(this._physicalCount-this._physicalStart)+r},_positionItems(){this._adjustScrollPosition();let r=this._physicalTop;this._iterateItems(t=>{this.translate3d(0,`${r}px`,0,this._physicalItems[t]),r+=this._physicalSizes[t]})},_getPhysicalSizeIncrement(r){return this._physicalSizes[r]},_adjustScrollPosition(){const r=this._virtualStart===0?this._physicalTop:Math.min(this._scrollPosition+this._physicalTop,0);if(r!==0){this._physicalTop-=r;const t=this._scrollPosition;!Gf&&t>0&&this._resetScrollPosition(t-r)}},_resetScrollPosition(r){this.scrollTarget&&r>=0&&(this._scrollTop=r,this._scrollPosition=this._scrollTop)},_updateScrollerSize(r){const t=this._physicalBottom+Math.max(this._virtualCount-this._physicalCount-this._virtualStart,0)*this._physicalAverage;this._estScrollHeight=t,(r||this._scrollHeight===0||this._scrollPosition>=t-this._physicalSize||Math.abs(t-this._scrollHeight)>=this._viewportHeight)&&(this.$.items.style.height=`${t}px`,this._scrollHeight=t)},scrollToIndex(r){if(typeof r!="number"||r<0||r>this.items.length-1||(Pt(),this._physicalCount===0))return;r=this._clamp(r,0,this._virtualCount-1),(!this._isIndexRendered(r)||r>=this._maxVirtualStart)&&(this._virtualStart=r-1),this._assignModels(),this._updateMetrics(),this._physicalTop=this._virtualStart*this._physicalAverage;let t=this._physicalStart,e=this._virtualStart,i=0;const s=this._hiddenContentSize;for(;e<r&&i<=s;)i+=this._getPhysicalSizeIncrement(t),t=(t+1)%this._physicalCount,e+=1;this._updateScrollerSize(!0),this._positionItems(),this._resetScrollPosition(this._physicalTop+this._scrollOffset+i),this._increasePoolIfNeeded(0),this._firstVisibleIndexVal=null,this._lastVisibleIndexVal=null},_resetAverage(){this._physicalAverage=0,this._physicalAverageCount=0},_resizeHandler(){this._debounce("_render",()=>{this._firstVisibleIndexVal=null,this._lastVisibleIndexVal=null,this._isVisible?(this.updateViewportBoundaries(),this.toggleScrollListener(!0),this._resetAverage(),this._render()):this.toggleScrollListener(!1)},zt)},_isIndexRendered(r){return r>=this._virtualStart&&r<=this._virtualEnd},_getPhysicalIndex(r){return(this._physicalStart+(r-this._virtualStart))%this._physicalCount},_clamp(r,t,e){return Math.min(e,Math.max(t,r))},_debounce(r,t,e){this._debouncers||(this._debouncers={}),this._debouncers[r]=Pe.debounce(this._debouncers[r],e,t.bind(this)),_a(this._debouncers[r])}};/**
|
|
1896
1896
|
* @license
|
|
1897
1897
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
1898
1898
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1899
|
-
*/const Wf=1e5,ii=1e3;class _a{constructor({createElements:t,updateElement:e,scrollTarget:i,scrollContainer:s,elementsContainer:o,reorderElements:n}){this.isAttached=!0,this._vidxOffset=0,this.createElements=t,this.updateElement=e,this.scrollTarget=i,this.scrollContainer=s,this.elementsContainer=o||s,this.reorderElements=n,this._maxPages=1.3,this.__placeholderHeight=200,this.__elementHeightQueue=Array(10),this.timeouts={SCROLL_REORDER:500,IGNORE_WHEEL:500,FIX_INVALID_ITEM_POSITIONING:100},this.__resizeObserver=new ResizeObserver(()=>this._resizeHandler()),getComputedStyle(this.scrollTarget).overflow==="visible"&&(this.scrollTarget.style.overflow="auto"),getComputedStyle(this.scrollContainer).position==="static"&&(this.scrollContainer.style.position="relative"),this.__resizeObserver.observe(this.scrollTarget),this.scrollTarget.addEventListener("scroll",()=>this._scrollHandler()),new ResizeObserver(([{contentRect:l}])=>{const d=l.width===0&&l.height===0;!d&&this.__scrollTargetHidden&&this.scrollTarget.scrollTop!==this._scrollPosition&&(this.scrollTarget.scrollTop=this._scrollPosition),this.__scrollTargetHidden=d}).observe(this.scrollTarget),this._scrollLineHeight=this._getScrollLineHeight(),this.scrollTarget.addEventListener("wheel",l=>this.__onWheel(l)),this.scrollTarget.addEventListener("virtualizer-element-focused",l=>this.__onElementFocused(l)),this.elementsContainer.addEventListener("focusin",()=>{this.scrollTarget.dispatchEvent(new CustomEvent("virtualizer-element-focused",{detail:{element:this.__getFocusedElement()}}))}),this.reorderElements&&(this.scrollTarget.addEventListener("mousedown",()=>{this.__mouseDown=!0}),this.scrollTarget.addEventListener("mouseup",()=>{this.__mouseDown=!1,this.__pendingReorder&&this.__reorderElements()}))}get scrollOffset(){return 0}get adjustedFirstVisibleIndex(){return this.firstVisibleIndex+this._vidxOffset}get adjustedLastVisibleIndex(){return this.lastVisibleIndex+this._vidxOffset}get _maxVirtualIndexOffset(){return this.size-this._virtualCount}__hasPlaceholders(){return this.__getVisibleElements().some(t=>t.__virtualizerPlaceholder)}scrollToIndex(t){if(typeof t!="number"||isNaN(t)||this.size===0||!this.scrollTarget.offsetHeight)return;delete this.__pendingScrollToIndex,this._physicalCount<=3&&this.flush(),t=this._clamp(t,0,this.size-1);const e=this.__getVisibleElements().length;let i=Math.floor(t/this.size*this._virtualCount);this._virtualCount-i<e?(i=this._virtualCount-(this.size-t),this._vidxOffset=this._maxVirtualIndexOffset):i<e?t<ii?(i=t,this._vidxOffset=0):(i=ii,this._vidxOffset=t-i):this._vidxOffset=t-i,this.__skipNextVirtualIndexAdjust=!0,super.scrollToIndex(i),this.adjustedFirstVisibleIndex!==t&&this._scrollTop<this._maxScrollTop&&!this.grid&&(this._scrollTop-=this.__getIndexScrollOffset(t)||0),this._scrollHandler(),this.__hasPlaceholders()&&(this.__pendingScrollToIndex=t)}flush(){this.scrollTarget.offsetHeight!==0&&(this._resizeHandler(),Pt(),this._scrollHandler(),this.__fixInvalidItemPositioningDebouncer&&this.__fixInvalidItemPositioningDebouncer.flush(),this.__scrollReorderDebouncer&&this.__scrollReorderDebouncer.flush(),this.__debouncerWheelAnimationFrame&&this.__debouncerWheelAnimationFrame.flush())}update(t=0,e=this.size-1){const i=[];this.__getVisibleElements().forEach(s=>{s.__virtualIndex>=t&&s.__virtualIndex<=e&&(this.__updateElement(s,s.__virtualIndex,!0),i.push(s))}),this.__afterElementsUpdated(i)}_updateMetrics(t){Pt();let e=0,i=0;const s=this._physicalAverageCount,o=this._physicalAverage;this._iterateItems((n,a)=>{i+=this._physicalSizes[n],this._physicalSizes[n]=Math.ceil(this.__getBorderBoxHeight(this._physicalItems[n])),e+=this._physicalSizes[n],this._physicalAverageCount+=this._physicalSizes[n]?1:0},t),this._physicalSize=this._physicalSize+e-i,this._physicalAverageCount!==s&&(this._physicalAverage=Math.round((o*s+e)/this._physicalAverageCount))}__getBorderBoxHeight(t){const e=getComputedStyle(t),i=parseFloat(e.height)||0;if(e.boxSizing==="border-box")return i;const s=parseFloat(e.paddingBottom)||0,o=parseFloat(e.paddingTop)||0,n=parseFloat(e.borderBottomWidth)||0,a=parseFloat(e.borderTopWidth)||0;return i+s+o+n+a}__updateElement(t,e,i){t.__virtualizerPlaceholder&&(t.style.paddingTop="",t.style.opacity="",t.__virtualizerPlaceholder=!1),!this.__preventElementUpdates&&(t.__lastUpdatedIndex!==e||i)&&(this.updateElement(t,e),t.__lastUpdatedIndex=e)}__afterElementsUpdated(t){t.forEach(e=>{const i=e.offsetHeight;if(i===0)e.style.paddingTop=`${this.__placeholderHeight}px`,e.style.opacity="0",e.__virtualizerPlaceholder=!0,this.__placeholderClearDebouncer=Pe.debounce(this.__placeholderClearDebouncer,zt,()=>this._resizeHandler());else{this.__elementHeightQueue.push(i),this.__elementHeightQueue.shift();const s=this.__elementHeightQueue.filter(o=>o!==void 0);this.__placeholderHeight=Math.round(s.reduce((o,n)=>o+n,0)/s.length)}}),this.__pendingScrollToIndex!==void 0&&!this.__hasPlaceholders()&&this.scrollToIndex(this.__pendingScrollToIndex)}__getIndexScrollOffset(t){const e=this.__getVisibleElements().find(i=>i.__virtualIndex===t);return e?this.scrollTarget.getBoundingClientRect().top-e.getBoundingClientRect().top:void 0}get size(){return this.__size}set size(t){if(t===this.size)return;this.__fixInvalidItemPositioningDebouncer&&this.__fixInvalidItemPositioningDebouncer.cancel(),this._debouncers&&this._debouncers._increasePoolIfNeeded&&this._debouncers._increasePoolIfNeeded.cancel(),this.__preventElementUpdates=!0;let e,i;if(t>0&&(e=this.adjustedFirstVisibleIndex,i=this.__getIndexScrollOffset(e)),this.__size=t,this._itemsChanged({path:"items"}),Pt(),t>0){e=Math.min(e,t-1),this.scrollToIndex(e);const s=this.__getIndexScrollOffset(e);i!==void 0&&s!==void 0&&(this._scrollTop+=i-s)}this.__preventElementUpdates=!1,this._isVisible||this._assignModels(),this.elementsContainer.children.length||requestAnimationFrame(()=>this._resizeHandler()),this._resizeHandler(),Pt(),this._debounce("_update",this._update,$i)}get _scrollTop(){return this.scrollTarget.scrollTop}set _scrollTop(t){this.scrollTarget.scrollTop=t}get items(){return{length:Math.min(this.size,Wf)}}get offsetHeight(){return this.scrollTarget.offsetHeight}get $(){return{items:this.scrollContainer}}updateViewportBoundaries(){const t=window.getComputedStyle(this.scrollTarget);this._scrollerPaddingTop=this.scrollTarget===this?0:parseInt(t["padding-top"],10),this._isRTL=t.direction==="rtl",this._viewportWidth=this.elementsContainer.offsetWidth,this._viewportHeight=this.scrollTarget.offsetHeight,this._scrollPageHeight=this._viewportHeight-this._scrollLineHeight,this.grid&&this._updateGridMetrics()}setAttribute(){}_createPool(t){const e=this.createElements(t),i=document.createDocumentFragment();return e.forEach(s=>{s.style.position="absolute",i.appendChild(s),this.__resizeObserver.observe(s)}),this.elementsContainer.appendChild(i),e}_assignModels(t){const e=[];this._iterateItems((i,s)=>{const o=this._physicalItems[i];o.hidden=s>=this.size,o.hidden?delete o.__lastUpdatedIndex:(o.__virtualIndex=s+(this._vidxOffset||0),this.__updateElement(o,o.__virtualIndex),e.push(o))},t),this.__afterElementsUpdated(e)}_isClientFull(){return setTimeout(()=>{this.__clientFull=!0}),this.__clientFull||super._isClientFull()}translate3d(t,e,i,s){s.style.transform=`translateY(${e})`}toggleScrollListener(){}__getFocusedElement(t=this.__getVisibleElements()){return t.find(e=>e.contains(this.elementsContainer.getRootNode().activeElement)||e.contains(this.scrollTarget.getRootNode().activeElement))}__nextFocusableSiblingMissing(t,e){return e.indexOf(t)===e.length-1&&this.size>t.__virtualIndex+1}__previousFocusableSiblingMissing(t,e){return e.indexOf(t)===0&&t.__virtualIndex>0}__onElementFocused(t){if(!this.reorderElements)return;const e=t.detail.element;if(!e)return;const i=this.__getVisibleElements();(this.__previousFocusableSiblingMissing(e,i)||this.__nextFocusableSiblingMissing(e,i))&&this.flush();const s=this.__getVisibleElements();this.__nextFocusableSiblingMissing(e,s)?(this._scrollTop+=Math.ceil(e.getBoundingClientRect().bottom)-Math.floor(this.scrollTarget.getBoundingClientRect().bottom-1),this.flush()):this.__previousFocusableSiblingMissing(e,s)&&(this._scrollTop-=Math.ceil(this.scrollTarget.getBoundingClientRect().top+1)-Math.floor(e.getBoundingClientRect().top),this.flush())}_scrollHandler(){if(this.scrollTarget.offsetHeight===0)return;this._adjustVirtualIndexOffset(this._scrollTop-(this.__previousScrollTop||0));const t=this.scrollTarget.scrollTop-this._scrollPosition;if(super._scrollHandler(),this._physicalCount!==0){const e=t>=0,i=this._getReusables(!e);i.indexes.length&&(this._physicalTop=i.physicalTop,e?(this._virtualStart-=i.indexes.length,this._physicalStart-=i.indexes.length):(this._virtualStart+=i.indexes.length,this._physicalStart+=i.indexes.length),this._resizeHandler())}t&&(this.__fixInvalidItemPositioningDebouncer=Pe.debounce(this.__fixInvalidItemPositioningDebouncer,nr.after(this.timeouts.FIX_INVALID_ITEM_POSITIONING),()=>this.__fixInvalidItemPositioning())),this.reorderElements&&(this.__scrollReorderDebouncer=Pe.debounce(this.__scrollReorderDebouncer,nr.after(this.timeouts.SCROLL_REORDER),()=>this.__reorderElements())),this.__previousScrollTop=this._scrollTop,this._scrollTop===0&&this.firstVisibleIndex!==0&&Math.abs(t)>0&&this.scrollToIndex(0)}__fixInvalidItemPositioning(){if(!this.scrollTarget.isConnected)return;const t=this._physicalTop>this._scrollTop,e=this._physicalBottom<this._scrollBottom,i=this.adjustedFirstVisibleIndex===0,s=this.adjustedLastVisibleIndex===this.size-1;if(t&&!i||e&&!s){const o=e,n=this._ratio;this._ratio=0,this._scrollPosition=this._scrollTop+(o?-1:1),this._scrollHandler(),this._ratio=n}}__onWheel(t){if(t.ctrlKey||this._hasScrolledAncestor(t.target,t.deltaX,t.deltaY))return;let e=t.deltaY;if(t.deltaMode===WheelEvent.DOM_DELTA_LINE?e*=this._scrollLineHeight:t.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(e*=this._scrollPageHeight),this._deltaYAcc||(this._deltaYAcc=0),this._wheelAnimationFrame){this._deltaYAcc+=e,t.preventDefault();return}e+=this._deltaYAcc,this._deltaYAcc=0,this._wheelAnimationFrame=!0,this.__debouncerWheelAnimationFrame=Pe.debounce(this.__debouncerWheelAnimationFrame,zt,()=>{this._wheelAnimationFrame=!1});const i=Math.abs(t.deltaX)+Math.abs(e);this._canScroll(this.scrollTarget,t.deltaX,e)?(t.preventDefault(),this.scrollTarget.scrollTop+=e,this.scrollTarget.scrollLeft+=t.deltaX,this._hasResidualMomentum=!0,this._ignoreNewWheel=!0,this._debouncerIgnoreNewWheel=Pe.debounce(this._debouncerIgnoreNewWheel,nr.after(this.timeouts.IGNORE_WHEEL),()=>{this._ignoreNewWheel=!1})):this._hasResidualMomentum&&i<=this._previousMomentum||this._ignoreNewWheel?t.preventDefault():i>this._previousMomentum&&(this._hasResidualMomentum=!1),this._previousMomentum=i}_hasScrolledAncestor(t,e,i){if(t===this.scrollTarget||t===this.scrollTarget.getRootNode().host)return!1;if(this._canScroll(t,e,i)&&["auto","scroll"].indexOf(getComputedStyle(t).overflow)!==-1)return!0;if(t!==this&&t.parentElement)return this._hasScrolledAncestor(t.parentElement,e,i)}_canScroll(t,e,i){return i>0&&t.scrollTop<t.scrollHeight-t.offsetHeight||i<0&&t.scrollTop>0||e>0&&t.scrollLeft<t.scrollWidth-t.offsetWidth||e<0&&t.scrollLeft>0}_increasePoolIfNeeded(t){if(this._physicalCount>2&&t){const i=Math.ceil(this._optPhysicalSize/this._physicalAverage)-this._physicalCount;super._increasePoolIfNeeded(Math.max(t,Math.min(100,i)))}else super._increasePoolIfNeeded(t)}get _optPhysicalSize(){const t=super._optPhysicalSize;return t<=0||this.__hasPlaceholders()?t:t+this.__getItemHeightBuffer()}__getItemHeightBuffer(){if(this._physicalCount===0)return 0;const t=Math.ceil(this._viewportHeight*(this._maxPages-1)/2),e=Math.max(...this._physicalSizes);return e>Math.min(...this._physicalSizes)?Math.max(0,e-t):0}_getScrollLineHeight(){const t=document.createElement("div");t.style.fontSize="initial",t.style.display="none",document.body.appendChild(t);const e=window.getComputedStyle(t).fontSize;return document.body.removeChild(t),e?window.parseInt(e):void 0}__getVisibleElements(){return Array.from(this.elementsContainer.children).filter(t=>!t.hidden)}__reorderElements(){if(this.__mouseDown){this.__pendingReorder=!0;return}this.__pendingReorder=!1;const t=this._virtualStart+(this._vidxOffset||0),e=this.__getVisibleElements(),i=this.__getFocusedElement(e)||e[0];if(!i)return;const s=i.__virtualIndex-t,o=e.indexOf(i)-s;if(o>0)for(let n=0;n<o;n++)this.elementsContainer.appendChild(e[n]);else if(o<0)for(let n=e.length+o;n<e.length;n++)this.elementsContainer.insertBefore(e[n],e[0]);if(_f){const{transform:n}=this.scrollTarget.style;this.scrollTarget.style.transform="translateZ(0)",setTimeout(()=>{this.scrollTarget.style.transform=n})}}_adjustVirtualIndexOffset(t){const e=this._maxVirtualIndexOffset;if(this._virtualCount>=this.size)this._vidxOffset=0;else if(this.__skipNextVirtualIndexAdjust)this.__skipNextVirtualIndexAdjust=!1;else if(Math.abs(t)>1e4){const i=this._scrollTop/(this.scrollTarget.scrollHeight-this.scrollTarget.clientHeight);this._vidxOffset=Math.round(i*e)}else{const i=this._vidxOffset,s=ii,o=100;this._scrollTop===0?(this._vidxOffset=0,i!==this._vidxOffset&&super.scrollToIndex(0)):this.firstVisibleIndex<s&&this._vidxOffset>0&&(this._vidxOffset-=Math.min(this._vidxOffset,o),super.scrollToIndex(this.firstVisibleIndex+(i-this._vidxOffset))),this._scrollTop>=this._maxScrollTop&&this._maxScrollTop>0?(this._vidxOffset=e,i!==this._vidxOffset&&super.scrollToIndex(this._virtualCount-1)):this.firstVisibleIndex>this._virtualCount-s&&this._vidxOffset<e&&(this._vidxOffset+=Math.min(e-this._vidxOffset,o),super.scrollToIndex(this.firstVisibleIndex-(this._vidxOffset-i)))}}}Object.setPrototypeOf(_a.prototype,Gf);class qf{constructor(t){this.__adapter=new _a(t)}get firstVisibleIndex(){return this.__adapter.adjustedFirstVisibleIndex}get lastVisibleIndex(){return this.__adapter.adjustedLastVisibleIndex}get size(){return this.__adapter.size}set size(t){this.__adapter.size=t}scrollToIndex(t){this.__adapter.scrollToIndex(t)}update(t=0,e=this.size-1){this.__adapter.update(t,e)}flush(){this.__adapter.flush()}}/**
|
|
1899
|
+
*/const qf=1e5,ii=1e3;class ga{constructor({createElements:t,updateElement:e,scrollTarget:i,scrollContainer:s,elementsContainer:o,reorderElements:n}){this.isAttached=!0,this._vidxOffset=0,this.createElements=t,this.updateElement=e,this.scrollTarget=i,this.scrollContainer=s,this.elementsContainer=o||s,this.reorderElements=n,this._maxPages=1.3,this.__placeholderHeight=200,this.__elementHeightQueue=Array(10),this.timeouts={SCROLL_REORDER:500,IGNORE_WHEEL:500,FIX_INVALID_ITEM_POSITIONING:100},this.__resizeObserver=new ResizeObserver(()=>this._resizeHandler()),getComputedStyle(this.scrollTarget).overflow==="visible"&&(this.scrollTarget.style.overflow="auto"),getComputedStyle(this.scrollContainer).position==="static"&&(this.scrollContainer.style.position="relative"),this.__resizeObserver.observe(this.scrollTarget),this.scrollTarget.addEventListener("scroll",()=>this._scrollHandler()),new ResizeObserver(([{contentRect:l}])=>{const d=l.width===0&&l.height===0;!d&&this.__scrollTargetHidden&&this.scrollTarget.scrollTop!==this._scrollPosition&&(this.scrollTarget.scrollTop=this._scrollPosition),this.__scrollTargetHidden=d}).observe(this.scrollTarget),this._scrollLineHeight=this._getScrollLineHeight(),this.scrollTarget.addEventListener("wheel",l=>this.__onWheel(l)),this.scrollTarget.addEventListener("virtualizer-element-focused",l=>this.__onElementFocused(l)),this.elementsContainer.addEventListener("focusin",()=>{this.scrollTarget.dispatchEvent(new CustomEvent("virtualizer-element-focused",{detail:{element:this.__getFocusedElement()}}))}),this.reorderElements&&(this.scrollTarget.addEventListener("mousedown",()=>{this.__mouseDown=!0}),this.scrollTarget.addEventListener("mouseup",()=>{this.__mouseDown=!1,this.__pendingReorder&&this.__reorderElements()}))}get scrollOffset(){return 0}get adjustedFirstVisibleIndex(){return this.firstVisibleIndex+this._vidxOffset}get adjustedLastVisibleIndex(){return this.lastVisibleIndex+this._vidxOffset}get _maxVirtualIndexOffset(){return this.size-this._virtualCount}__hasPlaceholders(){return this.__getVisibleElements().some(t=>t.__virtualizerPlaceholder)}scrollToIndex(t){if(typeof t!="number"||isNaN(t)||this.size===0||!this.scrollTarget.offsetHeight)return;delete this.__pendingScrollToIndex,this._physicalCount<=3&&this.flush(),t=this._clamp(t,0,this.size-1);const e=this.__getVisibleElements().length;let i=Math.floor(t/this.size*this._virtualCount);this._virtualCount-i<e?(i=this._virtualCount-(this.size-t),this._vidxOffset=this._maxVirtualIndexOffset):i<e?t<ii?(i=t,this._vidxOffset=0):(i=ii,this._vidxOffset=t-i):this._vidxOffset=t-i,this.__skipNextVirtualIndexAdjust=!0,super.scrollToIndex(i),this.adjustedFirstVisibleIndex!==t&&this._scrollTop<this._maxScrollTop&&!this.grid&&(this._scrollTop-=this.__getIndexScrollOffset(t)||0),this._scrollHandler(),this.__hasPlaceholders()&&(this.__pendingScrollToIndex=t)}flush(){this.scrollTarget.offsetHeight!==0&&(this._resizeHandler(),Pt(),this._scrollHandler(),this.__fixInvalidItemPositioningDebouncer&&this.__fixInvalidItemPositioningDebouncer.flush(),this.__scrollReorderDebouncer&&this.__scrollReorderDebouncer.flush(),this.__debouncerWheelAnimationFrame&&this.__debouncerWheelAnimationFrame.flush())}update(t=0,e=this.size-1){const i=[];this.__getVisibleElements().forEach(s=>{s.__virtualIndex>=t&&s.__virtualIndex<=e&&(this.__updateElement(s,s.__virtualIndex,!0),i.push(s))}),this.__afterElementsUpdated(i)}_updateMetrics(t){Pt();let e=0,i=0;const s=this._physicalAverageCount,o=this._physicalAverage;this._iterateItems((n,a)=>{i+=this._physicalSizes[n],this._physicalSizes[n]=Math.ceil(this.__getBorderBoxHeight(this._physicalItems[n])),e+=this._physicalSizes[n],this._physicalAverageCount+=this._physicalSizes[n]?1:0},t),this._physicalSize=this._physicalSize+e-i,this._physicalAverageCount!==s&&(this._physicalAverage=Math.round((o*s+e)/this._physicalAverageCount))}__getBorderBoxHeight(t){const e=getComputedStyle(t),i=parseFloat(e.height)||0;if(e.boxSizing==="border-box")return i;const s=parseFloat(e.paddingBottom)||0,o=parseFloat(e.paddingTop)||0,n=parseFloat(e.borderBottomWidth)||0,a=parseFloat(e.borderTopWidth)||0;return i+s+o+n+a}__updateElement(t,e,i){t.__virtualizerPlaceholder&&(t.style.paddingTop="",t.style.opacity="",t.__virtualizerPlaceholder=!1),!this.__preventElementUpdates&&(t.__lastUpdatedIndex!==e||i)&&(this.updateElement(t,e),t.__lastUpdatedIndex=e)}__afterElementsUpdated(t){t.forEach(e=>{const i=e.offsetHeight;if(i===0)e.style.paddingTop=`${this.__placeholderHeight}px`,e.style.opacity="0",e.__virtualizerPlaceholder=!0,this.__placeholderClearDebouncer=Pe.debounce(this.__placeholderClearDebouncer,zt,()=>this._resizeHandler());else{this.__elementHeightQueue.push(i),this.__elementHeightQueue.shift();const s=this.__elementHeightQueue.filter(o=>o!==void 0);this.__placeholderHeight=Math.round(s.reduce((o,n)=>o+n,0)/s.length)}}),this.__pendingScrollToIndex!==void 0&&!this.__hasPlaceholders()&&this.scrollToIndex(this.__pendingScrollToIndex)}__getIndexScrollOffset(t){const e=this.__getVisibleElements().find(i=>i.__virtualIndex===t);return e?this.scrollTarget.getBoundingClientRect().top-e.getBoundingClientRect().top:void 0}get size(){return this.__size}set size(t){if(t===this.size)return;this.__fixInvalidItemPositioningDebouncer&&this.__fixInvalidItemPositioningDebouncer.cancel(),this._debouncers&&this._debouncers._increasePoolIfNeeded&&this._debouncers._increasePoolIfNeeded.cancel(),this.__preventElementUpdates=!0;let e,i;if(t>0&&(e=this.adjustedFirstVisibleIndex,i=this.__getIndexScrollOffset(e)),this.__size=t,this._itemsChanged({path:"items"}),Pt(),t>0){e=Math.min(e,t-1),this.scrollToIndex(e);const s=this.__getIndexScrollOffset(e);i!==void 0&&s!==void 0&&(this._scrollTop+=i-s)}this.__preventElementUpdates=!1,this._isVisible||this._assignModels(),this.elementsContainer.children.length||requestAnimationFrame(()=>this._resizeHandler()),this._resizeHandler(),Pt(),this._debounce("_update",this._update,$i)}get _scrollTop(){return this.scrollTarget.scrollTop}set _scrollTop(t){this.scrollTarget.scrollTop=t}get items(){return{length:Math.min(this.size,qf)}}get offsetHeight(){return this.scrollTarget.offsetHeight}get $(){return{items:this.scrollContainer}}updateViewportBoundaries(){const t=window.getComputedStyle(this.scrollTarget);this._scrollerPaddingTop=this.scrollTarget===this?0:parseInt(t["padding-top"],10),this._isRTL=t.direction==="rtl",this._viewportWidth=this.elementsContainer.offsetWidth,this._viewportHeight=this.scrollTarget.offsetHeight,this._scrollPageHeight=this._viewportHeight-this._scrollLineHeight,this.grid&&this._updateGridMetrics()}setAttribute(){}_createPool(t){const e=this.createElements(t),i=document.createDocumentFragment();return e.forEach(s=>{s.style.position="absolute",i.appendChild(s),this.__resizeObserver.observe(s)}),this.elementsContainer.appendChild(i),e}_assignModels(t){const e=[];this._iterateItems((i,s)=>{const o=this._physicalItems[i];o.hidden=s>=this.size,o.hidden?delete o.__lastUpdatedIndex:(o.__virtualIndex=s+(this._vidxOffset||0),this.__updateElement(o,o.__virtualIndex),e.push(o))},t),this.__afterElementsUpdated(e)}_isClientFull(){return setTimeout(()=>{this.__clientFull=!0}),this.__clientFull||super._isClientFull()}translate3d(t,e,i,s){s.style.transform=`translateY(${e})`}toggleScrollListener(){}__getFocusedElement(t=this.__getVisibleElements()){return t.find(e=>e.contains(this.elementsContainer.getRootNode().activeElement)||e.contains(this.scrollTarget.getRootNode().activeElement))}__nextFocusableSiblingMissing(t,e){return e.indexOf(t)===e.length-1&&this.size>t.__virtualIndex+1}__previousFocusableSiblingMissing(t,e){return e.indexOf(t)===0&&t.__virtualIndex>0}__onElementFocused(t){if(!this.reorderElements)return;const e=t.detail.element;if(!e)return;const i=this.__getVisibleElements();(this.__previousFocusableSiblingMissing(e,i)||this.__nextFocusableSiblingMissing(e,i))&&this.flush();const s=this.__getVisibleElements();this.__nextFocusableSiblingMissing(e,s)?(this._scrollTop+=Math.ceil(e.getBoundingClientRect().bottom)-Math.floor(this.scrollTarget.getBoundingClientRect().bottom-1),this.flush()):this.__previousFocusableSiblingMissing(e,s)&&(this._scrollTop-=Math.ceil(this.scrollTarget.getBoundingClientRect().top+1)-Math.floor(e.getBoundingClientRect().top),this.flush())}_scrollHandler(){if(this.scrollTarget.offsetHeight===0)return;this._adjustVirtualIndexOffset(this._scrollTop-(this.__previousScrollTop||0));const t=this.scrollTarget.scrollTop-this._scrollPosition;if(super._scrollHandler(),this._physicalCount!==0){const e=t>=0,i=this._getReusables(!e);i.indexes.length&&(this._physicalTop=i.physicalTop,e?(this._virtualStart-=i.indexes.length,this._physicalStart-=i.indexes.length):(this._virtualStart+=i.indexes.length,this._physicalStart+=i.indexes.length),this._resizeHandler())}t&&(this.__fixInvalidItemPositioningDebouncer=Pe.debounce(this.__fixInvalidItemPositioningDebouncer,nr.after(this.timeouts.FIX_INVALID_ITEM_POSITIONING),()=>this.__fixInvalidItemPositioning())),this.reorderElements&&(this.__scrollReorderDebouncer=Pe.debounce(this.__scrollReorderDebouncer,nr.after(this.timeouts.SCROLL_REORDER),()=>this.__reorderElements())),this.__previousScrollTop=this._scrollTop,this._scrollTop===0&&this.firstVisibleIndex!==0&&Math.abs(t)>0&&this.scrollToIndex(0)}__fixInvalidItemPositioning(){if(!this.scrollTarget.isConnected)return;const t=this._physicalTop>this._scrollTop,e=this._physicalBottom<this._scrollBottom,i=this.adjustedFirstVisibleIndex===0,s=this.adjustedLastVisibleIndex===this.size-1;if(t&&!i||e&&!s){const o=e,n=this._ratio;this._ratio=0,this._scrollPosition=this._scrollTop+(o?-1:1),this._scrollHandler(),this._ratio=n}}__onWheel(t){if(t.ctrlKey||this._hasScrolledAncestor(t.target,t.deltaX,t.deltaY))return;let e=t.deltaY;if(t.deltaMode===WheelEvent.DOM_DELTA_LINE?e*=this._scrollLineHeight:t.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(e*=this._scrollPageHeight),this._deltaYAcc||(this._deltaYAcc=0),this._wheelAnimationFrame){this._deltaYAcc+=e,t.preventDefault();return}e+=this._deltaYAcc,this._deltaYAcc=0,this._wheelAnimationFrame=!0,this.__debouncerWheelAnimationFrame=Pe.debounce(this.__debouncerWheelAnimationFrame,zt,()=>{this._wheelAnimationFrame=!1});const i=Math.abs(t.deltaX)+Math.abs(e);this._canScroll(this.scrollTarget,t.deltaX,e)?(t.preventDefault(),this.scrollTarget.scrollTop+=e,this.scrollTarget.scrollLeft+=t.deltaX,this._hasResidualMomentum=!0,this._ignoreNewWheel=!0,this._debouncerIgnoreNewWheel=Pe.debounce(this._debouncerIgnoreNewWheel,nr.after(this.timeouts.IGNORE_WHEEL),()=>{this._ignoreNewWheel=!1})):this._hasResidualMomentum&&i<=this._previousMomentum||this._ignoreNewWheel?t.preventDefault():i>this._previousMomentum&&(this._hasResidualMomentum=!1),this._previousMomentum=i}_hasScrolledAncestor(t,e,i){if(t===this.scrollTarget||t===this.scrollTarget.getRootNode().host)return!1;if(this._canScroll(t,e,i)&&["auto","scroll"].indexOf(getComputedStyle(t).overflow)!==-1)return!0;if(t!==this&&t.parentElement)return this._hasScrolledAncestor(t.parentElement,e,i)}_canScroll(t,e,i){return i>0&&t.scrollTop<t.scrollHeight-t.offsetHeight||i<0&&t.scrollTop>0||e>0&&t.scrollLeft<t.scrollWidth-t.offsetWidth||e<0&&t.scrollLeft>0}_increasePoolIfNeeded(t){if(this._physicalCount>2&&t){const i=Math.ceil(this._optPhysicalSize/this._physicalAverage)-this._physicalCount;super._increasePoolIfNeeded(Math.max(t,Math.min(100,i)))}else super._increasePoolIfNeeded(t)}get _optPhysicalSize(){const t=super._optPhysicalSize;return t<=0||this.__hasPlaceholders()?t:t+this.__getItemHeightBuffer()}__getItemHeightBuffer(){if(this._physicalCount===0)return 0;const t=Math.ceil(this._viewportHeight*(this._maxPages-1)/2),e=Math.max(...this._physicalSizes);return e>Math.min(...this._physicalSizes)?Math.max(0,e-t):0}_getScrollLineHeight(){const t=document.createElement("div");t.style.fontSize="initial",t.style.display="none",document.body.appendChild(t);const e=window.getComputedStyle(t).fontSize;return document.body.removeChild(t),e?window.parseInt(e):void 0}__getVisibleElements(){return Array.from(this.elementsContainer.children).filter(t=>!t.hidden)}__reorderElements(){if(this.__mouseDown){this.__pendingReorder=!0;return}this.__pendingReorder=!1;const t=this._virtualStart+(this._vidxOffset||0),e=this.__getVisibleElements(),i=this.__getFocusedElement(e)||e[0];if(!i)return;const s=i.__virtualIndex-t,o=e.indexOf(i)-s;if(o>0)for(let n=0;n<o;n++)this.elementsContainer.appendChild(e[n]);else if(o<0)for(let n=e.length+o;n<e.length;n++)this.elementsContainer.insertBefore(e[n],e[0]);if(gf){const{transform:n}=this.scrollTarget.style;this.scrollTarget.style.transform="translateZ(0)",setTimeout(()=>{this.scrollTarget.style.transform=n})}}_adjustVirtualIndexOffset(t){const e=this._maxVirtualIndexOffset;if(this._virtualCount>=this.size)this._vidxOffset=0;else if(this.__skipNextVirtualIndexAdjust)this.__skipNextVirtualIndexAdjust=!1;else if(Math.abs(t)>1e4){const i=this._scrollTop/(this.scrollTarget.scrollHeight-this.scrollTarget.clientHeight);this._vidxOffset=Math.round(i*e)}else{const i=this._vidxOffset,s=ii,o=100;this._scrollTop===0?(this._vidxOffset=0,i!==this._vidxOffset&&super.scrollToIndex(0)):this.firstVisibleIndex<s&&this._vidxOffset>0&&(this._vidxOffset-=Math.min(this._vidxOffset,o),super.scrollToIndex(this.firstVisibleIndex+(i-this._vidxOffset))),this._scrollTop>=this._maxScrollTop&&this._maxScrollTop>0?(this._vidxOffset=e,i!==this._vidxOffset&&super.scrollToIndex(this._virtualCount-1)):this.firstVisibleIndex>this._virtualCount-s&&this._vidxOffset<e&&(this._vidxOffset+=Math.min(e-this._vidxOffset,o),super.scrollToIndex(this.firstVisibleIndex-(this._vidxOffset-i)))}}}Object.setPrototypeOf(ga.prototype,Wf);class Yf{constructor(t){this.__adapter=new ga(t)}get firstVisibleIndex(){return this.__adapter.adjustedFirstVisibleIndex}get lastVisibleIndex(){return this.__adapter.adjustedLastVisibleIndex}get size(){return this.__adapter.size}set size(t){this.__adapter.size=t}scrollToIndex(t){this.__adapter.scrollToIndex(t)}update(t=0,e=this.size-1){this.__adapter.update(t,e)}flush(){this.__adapter.flush()}}/**
|
|
1900
1900
|
* @license
|
|
1901
1901
|
* Copyright (c) 2015 - 2024 Vaadin Ltd.
|
|
1902
1902
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
@@ -1904,11 +1904,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
1904
1904
|
* @license
|
|
1905
1905
|
* Copyright (c) 2015 - 2024 Vaadin Ltd.
|
|
1906
1906
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1907
|
-
*/const
|
|
1907
|
+
*/const Zf=r=>class extends r{static get properties(){return{items:{type:Array,sync:!0,observer:"__itemsChanged"},focusedIndex:{type:Number,sync:!0,observer:"__focusedIndexChanged"},loading:{type:Boolean,sync:!0,observer:"__loadingChanged"},opened:{type:Boolean,sync:!0,observer:"__openedChanged"},selectedItem:{type:Object,sync:!0,observer:"__selectedItemChanged"},itemClassNameGenerator:{type:Object,observer:"__itemClassNameGeneratorChanged"},itemIdPath:{type:String},owner:{type:Object},getItemLabel:{type:Object},renderer:{type:Object,sync:!0,observer:"__rendererChanged"},theme:{type:String}}}constructor(){super(),this.__boundOnItemClick=this.__onItemClick.bind(this)}get _viewportTotalPaddingBottom(){if(this._cachedViewportTotalPaddingBottom===void 0){const e=window.getComputedStyle(this.$.selector);this._cachedViewportTotalPaddingBottom=[e.paddingBottom,e.borderBottomWidth].map(i=>parseInt(i,10)).reduce((i,s)=>i+s)}return this._cachedViewportTotalPaddingBottom}ready(){super.ready(),this.setAttribute("role","listbox"),this.id=`${this.localName}-${fa()}`,this.__hostTagName=this.constructor.is.replace("-scroller",""),this.addEventListener("click",e=>e.stopPropagation()),this.__patchWheelOverScrolling()}requestContentUpdate(){this.__virtualizer&&(this.items&&(this.__virtualizer.size=this.items.length),this.opened&&this.__virtualizer.update())}scrollIntoView(e){if(!this.__virtualizer||!(this.opened&&e>=0))return;const i=this._visibleItemsCount();let s=e;e>this.__virtualizer.lastVisibleIndex-1?(this.__virtualizer.scrollToIndex(e),s=e-i+1):e>this.__virtualizer.firstVisibleIndex&&(s=this.__virtualizer.firstVisibleIndex),this.__virtualizer.scrollToIndex(Math.max(0,s));const o=[...this.children].find(d=>!d.hidden&&d.index===this.__virtualizer.lastVisibleIndex);if(!o||e!==o.index)return;const n=o.getBoundingClientRect(),a=this.getBoundingClientRect(),l=n.bottom-a.bottom+this._viewportTotalPaddingBottom;l>0&&(this.scrollTop+=l)}_isItemSelected(e,i,s){return e instanceof lt?!1:s&&e!==void 0&&i!==void 0?gr(s,e)===gr(s,i):e===i}__initVirtualizer(){this.__virtualizer=new Yf({createElements:this.__createElements.bind(this),updateElement:this._updateElement.bind(this),elementsContainer:this,scrollTarget:this,scrollContainer:this.$.selector,reorderElements:!0})}__itemsChanged(e){e&&this.__virtualizer&&this.requestContentUpdate()}__loadingChanged(){this.requestContentUpdate()}__openedChanged(e){e&&(this.__virtualizer||this.__initVirtualizer(),this.requestContentUpdate())}__selectedItemChanged(){this.requestContentUpdate()}__itemClassNameGeneratorChanged(e,i){(e||i)&&this.requestContentUpdate()}__focusedIndexChanged(e,i){e!==i&&this.requestContentUpdate(),e>=0&&!this.loading&&this.scrollIntoView(e)}__rendererChanged(e,i){(e||i)&&this.requestContentUpdate()}__createElements(e){return[...Array(e)].map(()=>{const i=document.createElement(`${this.__hostTagName}-item`);return i.addEventListener("click",this.__boundOnItemClick),i.tabIndex="-1",i.style.width="100%",i})}_updateElement(e,i){const s=this.items[i],o=this.focusedIndex,n=this._isItemSelected(s,this.selectedItem,this.itemIdPath);e.setProperties({item:s,index:i,label:this.getItemLabel(s),selected:n,renderer:this.renderer,focused:!this.loading&&o===i}),typeof this.itemClassNameGenerator=="function"?e.className=this.itemClassNameGenerator(s):e.className!==""&&(e.className=""),e.performUpdate&&!e.hasUpdated&&e.performUpdate(),e.id=`${this.__hostTagName}-item-${i}`,e.setAttribute("role",i!==void 0?"option":!1),e.setAttribute("aria-selected",n.toString()),e.setAttribute("aria-posinset",i+1),e.setAttribute("aria-setsize",this.items.length),this.theme?e.setAttribute("theme",this.theme):e.removeAttribute("theme"),s instanceof lt&&this.__requestItemByIndex(i)}__onItemClick(e){this.dispatchEvent(new CustomEvent("selection-changed",{detail:{item:e.currentTarget.item}}))}__patchWheelOverScrolling(){this.$.selector.addEventListener("wheel",e=>{const i=this.scrollTop===0,s=this.scrollHeight-this.scrollTop-this.clientHeight<=1;(i&&e.deltaY<0||s&&e.deltaY>0)&&e.preventDefault()})}__requestItemByIndex(e){requestAnimationFrame(()=>{this.dispatchEvent(new CustomEvent("index-requested",{detail:{index:e}}))})}_visibleItemsCount(){return this.__virtualizer.scrollToIndex(this.__virtualizer.firstVisibleIndex),this.__virtualizer.size>0?this.__virtualizer.lastVisibleIndex-this.__virtualizer.firstVisibleIndex+1:0}};/**
|
|
1908
1908
|
* @license
|
|
1909
1909
|
* Copyright (c) 2015 - 2024 Vaadin Ltd.
|
|
1910
1910
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1911
|
-
*/class
|
|
1911
|
+
*/class Xf extends Zf(jt){static get is(){return"vaadin-combo-box-scroller"}static get template(){return Ut`
|
|
1912
1912
|
<style>
|
|
1913
1913
|
:host {
|
|
1914
1914
|
display: block;
|
|
@@ -1935,7 +1935,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
1935
1935
|
<div id="selector">
|
|
1936
1936
|
<slot></slot>
|
|
1937
1937
|
</div>
|
|
1938
|
-
`}}ct(
|
|
1938
|
+
`}}ct(Xf);const Jf=/\/\*[\*!]\s+vaadin-dev-mode:start([\s\S]*)vaadin-dev-mode:end\s+\*\*\//i,ar=window.Vaadin&&window.Vaadin.Flow&&window.Vaadin.Flow.clients;function Kf(){function r(){return!0}return ba(r)}function Qf(){try{return ep()?!0:tp()?ar?!rp():!Kf():!1}catch(r){return!1}}function ep(){return localStorage.getItem("vaadin.developmentmode.force")}function tp(){return["localhost","127.0.0.1"].indexOf(window.location.hostname)>=0}function rp(){return!!(ar&&Object.keys(ar).map(t=>ar[t]).filter(t=>t.productionMode).length>0)}function ba(r,t){if(typeof r!="function")return;const e=Jf.exec(r.toString());if(e)try{r=new Function(e[1])}catch(i){console.log("vaadin-development-mode-detector: uncommentAndRun() failed",i)}return r(t)}window.Vaadin=window.Vaadin||{};const Po=function(r,t){if(window.Vaadin.developmentMode)return ba(r,t)};window.Vaadin.developmentMode===void 0&&(window.Vaadin.developmentMode=Qf());function ip(){/*! vaadin-dev-mode:start
|
|
1939
1939
|
(function () {
|
|
1940
1940
|
'use strict';
|
|
1941
1941
|
|
|
@@ -2413,39 +2413,39 @@ try {
|
|
|
2413
2413
|
|
|
2414
2414
|
}());
|
|
2415
2415
|
|
|
2416
|
-
vaadin-dev-mode:end **/}const
|
|
2416
|
+
vaadin-dev-mode:end **/}const sp=function(){if(typeof Po=="function")return Po(ip)};/**
|
|
2417
2417
|
* @license
|
|
2418
2418
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
2419
2419
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2420
|
-
*/window.Vaadin||(window.Vaadin={});window.Vaadin.registrations||(window.Vaadin.registrations=[]);window.Vaadin.developmentModeCallback||(window.Vaadin.developmentModeCallback={});window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]=function(){
|
|
2420
|
+
*/window.Vaadin||(window.Vaadin={});window.Vaadin.registrations||(window.Vaadin.registrations=[]);window.Vaadin.developmentModeCallback||(window.Vaadin.developmentModeCallback={});window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]=function(){sp()};let si;const Eo=new Set,op=r=>class extends Tr(r){static finalize(){super.finalize();const{is:e}=this;e&&!Eo.has(e)&&(window.Vaadin.registrations.push(this),Eo.add(e),window.Vaadin.developmentModeCallback&&(si=Pe.debounce(si,ma,()=>{window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]()}),_a(si)))}constructor(){super(),document.doctype===null&&console.warn('Vaadin components require the "standards mode" declaration. Please add <!DOCTYPE html> to the HTML document.')}};/**
|
|
2421
2421
|
* @license
|
|
2422
2422
|
* Copyright (c) 2023 - 2024 Vaadin Ltd.
|
|
2423
2423
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2424
|
-
*/class
|
|
2424
|
+
*/class np{constructor(t,e){this.slot=t,this.callback=e,this._storedNodes=[],this._connected=!1,this._scheduled=!1,this._boundSchedule=()=>{this._schedule()},this.connect(),this._schedule()}connect(){this.slot.addEventListener("slotchange",this._boundSchedule),this._connected=!0}disconnect(){this.slot.removeEventListener("slotchange",this._boundSchedule),this._connected=!1}_schedule(){this._scheduled||(this._scheduled=!0,queueMicrotask(()=>{this.flush()}))}flush(){this._connected&&(this._scheduled=!1,this._processNodes())}_processNodes(){const t=this.slot.assignedNodes({flatten:!0});let e=[];const i=[],s=[];t.length&&(e=t.filter(o=>!this._storedNodes.includes(o))),this._storedNodes.length&&this._storedNodes.forEach((o,n)=>{const a=t.indexOf(o);a===-1?i.push(o):a!==n&&s.push(o)}),(e.length||i.length||s.length)&&this.callback({addedNodes:e,currentNodes:t,movedNodes:s,removedNodes:i}),this._storedNodes=t}}/**
|
|
2425
2425
|
* @license
|
|
2426
2426
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
2427
2427
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2428
|
-
*/class os extends EventTarget{static generateId(t,e="default"){return`${e}-${t.localName}-${
|
|
2428
|
+
*/class os extends EventTarget{static generateId(t,e="default"){return`${e}-${t.localName}-${fa()}`}constructor(t,e,i,s={}){super();const{initializer:o,multiple:n,observe:a,useUniqueId:l,uniqueIdPrefix:d}=s;this.host=t,this.slotName=e,this.tagName=i,this.observe=typeof a=="boolean"?a:!0,this.multiple=typeof n=="boolean"?n:!1,this.slotInitializer=o,n&&(this.nodes=[]),l&&(this.defaultId=this.constructor.generateId(t,d||e))}hostConnected(){this.initialized||(this.multiple?this.initMultiple():this.initSingle(),this.observe&&this.observeSlot(),this.initialized=!0)}initSingle(){let t=this.getSlotChild();t?(this.node=t,this.initAddedNode(t)):(t=this.attachDefaultNode(),this.initNode(t))}initMultiple(){const t=this.getSlotChildren();if(t.length===0){const e=this.attachDefaultNode();e&&(this.nodes=[e],this.initNode(e))}else this.nodes=t,t.forEach(e=>{this.initAddedNode(e)})}attachDefaultNode(){const{host:t,slotName:e,tagName:i}=this;let s=this.defaultNode;return!s&&i&&(s=document.createElement(i),s instanceof Element&&(e!==""&&s.setAttribute("slot",e),this.defaultNode=s)),s&&(this.node=s,t.appendChild(s)),s}getSlotChildren(){const{slotName:t}=this;return Array.from(this.host.childNodes).filter(e=>e.nodeType===Node.ELEMENT_NODE&&e.slot===t||e.nodeType===Node.TEXT_NODE&&e.textContent.trim()&&t==="")}getSlotChild(){return this.getSlotChildren()[0]}initNode(t){const{slotInitializer:e}=this;e&&e(t,this.host)}initCustomNode(t){}teardownNode(t){}initAddedNode(t){t!==this.defaultNode&&(this.initCustomNode(t),this.initNode(t))}observeSlot(){const{slotName:t}=this,e=t===""?"slot:not([name])":`slot[name=${t}]`,i=this.host.shadowRoot.querySelector(e);this.__slotObserver=new np(i,({addedNodes:s,removedNodes:o})=>{const n=this.multiple?this.nodes:[this.node],a=s.filter(l=>!Rf(l)&&!n.includes(l));o.length&&(this.nodes=n.filter(l=>!o.includes(l)),o.forEach(l=>{this.teardownNode(l)})),a&&a.length>0&&(this.multiple?(this.defaultNode&&this.defaultNode.remove(),this.nodes=[...n,...a].filter(l=>l!==this.defaultNode),a.forEach(l=>{this.initAddedNode(l)})):(this.node&&this.node.remove(),this.node=a[0],this.initAddedNode(this.node)))})}}/**
|
|
2429
2429
|
* @license
|
|
2430
2430
|
* Copyright (c) 2022 - 2024 Vaadin Ltd.
|
|
2431
2431
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2432
|
-
*/class
|
|
2432
|
+
*/class ap extends os{constructor(t){super(t,"tooltip"),this.setTarget(t)}initCustomNode(t){t.target=this.target,this.ariaTarget!==void 0&&(t.ariaTarget=this.ariaTarget),this.context!==void 0&&(t.context=this.context),this.manual!==void 0&&(t.manual=this.manual),this.opened!==void 0&&(t.opened=this.opened),this.position!==void 0&&(t._position=this.position),this.shouldShow!==void 0&&(t.shouldShow=this.shouldShow),this.__notifyChange()}teardownNode(){this.__notifyChange()}setAriaTarget(t){this.ariaTarget=t;const e=this.node;e&&(e.ariaTarget=t)}setContext(t){this.context=t;const e=this.node;e&&(e.context=t)}setManual(t){this.manual=t;const e=this.node;e&&(e.manual=t)}setOpened(t){this.opened=t;const e=this.node;e&&(e.opened=t)}setPosition(t){this.position=t;const e=this.node;e&&(e._position=t)}setShouldShow(t){this.shouldShow=t;const e=this.node;e&&(e.shouldShow=t)}setTarget(t){this.target=t;const e=this.node;e&&(e.target=t)}__notifyChange(){this.dispatchEvent(new CustomEvent("tooltip-changed",{detail:{node:this.node}}))}}/**
|
|
2433
2433
|
* @license
|
|
2434
2434
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
2435
2435
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2436
|
-
*/const
|
|
2436
|
+
*/const va=ae(r=>class extends r{get _keyboardActive(){return is()}ready(){this.addEventListener("focusin",e=>{this._shouldSetFocus(e)&&this._setFocused(!0)}),this.addEventListener("focusout",e=>{this._shouldRemoveFocus(e)&&this._setFocused(!1)}),super.ready()}disconnectedCallback(){super.disconnectedCallback(),this.hasAttribute("focused")&&this._setFocused(!1)}_setFocused(e){this.toggleAttribute("focused",e),this.toggleAttribute("focus-ring",e&&this._keyboardActive)}_shouldSetFocus(e){return!0}_shouldRemoveFocus(e){return!0}});/**
|
|
2437
2437
|
* @license
|
|
2438
2438
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
2439
2439
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2440
|
-
*/const
|
|
2440
|
+
*/const ya=ae(r=>class extends r{static get properties(){return{disabled:{type:Boolean,value:!1,observer:"_disabledChanged",reflectToAttribute:!0}}}_disabledChanged(e){this._setAriaDisabled(e)}_setAriaDisabled(e){e?this.setAttribute("aria-disabled","true"):this.removeAttribute("aria-disabled")}click(){this.disabled||super.click()}});/**
|
|
2441
2441
|
* @license
|
|
2442
2442
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
2443
2443
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2444
|
-
*/const
|
|
2444
|
+
*/const lp=r=>class extends ya(r){static get properties(){return{tabindex:{type:Number,reflectToAttribute:!0,observer:"_tabindexChanged"},_lastTabIndex:{type:Number}}}_disabledChanged(e,i){super._disabledChanged(e,i),e?(this.tabindex!==void 0&&(this._lastTabIndex=this.tabindex),this.tabindex=-1):i&&(this.tabindex=this._lastTabIndex)}_tabindexChanged(e){this.disabled&&e!==-1&&(this._lastTabIndex=e,this.tabindex=-1)}};/**
|
|
2445
2445
|
* @license
|
|
2446
2446
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
2447
2447
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2448
|
-
*/const
|
|
2448
|
+
*/const dp=ae(r=>class extends va(lp(r)){static get properties(){return{autofocus:{type:Boolean},focusElement:{type:Object,readOnly:!0,observer:"_focusElementChanged"},_lastTabIndex:{value:0}}}constructor(){super(),this._boundOnBlur=this._onBlur.bind(this),this._boundOnFocus=this._onFocus.bind(this)}ready(){super.ready(),this.autofocus&&!this.disabled&&requestAnimationFrame(()=>{this.focus(),this.setAttribute("focus-ring","")})}focus(){this.focusElement&&!this.disabled&&this.focusElement.focus()}blur(){this.focusElement&&this.focusElement.blur()}click(){this.focusElement&&!this.disabled&&this.focusElement.click()}_focusElementChanged(e,i){e?(e.disabled=this.disabled,this._addFocusListeners(e),this.__forwardTabIndex(this.tabindex)):i&&this._removeFocusListeners(i)}_addFocusListeners(e){e.addEventListener("blur",this._boundOnBlur),e.addEventListener("focus",this._boundOnFocus)}_removeFocusListeners(e){e.removeEventListener("blur",this._boundOnBlur),e.removeEventListener("focus",this._boundOnFocus)}_onFocus(e){e.stopPropagation(),this.dispatchEvent(new Event("focus"))}_onBlur(e){e.stopPropagation(),this.dispatchEvent(new Event("blur"))}_shouldSetFocus(e){return e.target===this.focusElement}_shouldRemoveFocus(e){return e.target===this.focusElement}_disabledChanged(e,i){super._disabledChanged(e,i),this.focusElement&&(this.focusElement.disabled=e),e&&this.blur()}_tabindexChanged(e){this.__forwardTabIndex(e)}__forwardTabIndex(e){e!==void 0&&this.focusElement&&(this.focusElement.tabIndex=e,e!==-1&&(this.tabindex=void 0)),this.disabled&&e&&(e!==-1&&(this._lastTabIndex=e),this.tabindex=void 0)}});/**
|
|
2449
2449
|
* @license
|
|
2450
2450
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
2451
2451
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
@@ -2453,7 +2453,7 @@ try {
|
|
|
2453
2453
|
* @license
|
|
2454
2454
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
2455
2455
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2456
|
-
*/const oi=new WeakMap;function
|
|
2456
|
+
*/const oi=new WeakMap;function hp(r){return oi.has(r)||oi.set(r,new Set),oi.get(r)}function up(r,t){const e=document.createElement("style");e.textContent=r,t===document?document.head.appendChild(e):t.insertBefore(e,t.firstChild)}const cp=ae(r=>class extends r{get slotStyles(){return{}}connectedCallback(){super.connectedCallback(),this.__applySlotStyles()}__applySlotStyles(){const e=this.getRootNode(),i=hp(e);this.slotStyles.forEach(s=>{i.has(s)||(up(s,e),i.add(s))})}});/**
|
|
2457
2457
|
* @license
|
|
2458
2458
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
2459
2459
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
@@ -2461,19 +2461,19 @@ try {
|
|
|
2461
2461
|
* @license
|
|
2462
2462
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
2463
2463
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2464
|
-
*/const
|
|
2464
|
+
*/const fp=r=>class extends as(ns(r)){static get properties(){return{clearButtonVisible:{type:Boolean,reflectToAttribute:!0,value:!1}}}get clearElement(){return console.warn(`Please implement the 'clearElement' property in <${this.localName}>`),null}ready(){super.ready(),this.clearElement&&(this.clearElement.addEventListener("mousedown",e=>this._onClearButtonMouseDown(e)),this.clearElement.addEventListener("click",e=>this._onClearButtonClick(e)))}_onClearButtonClick(e){e.preventDefault(),this._onClearAction()}_onClearButtonMouseDown(e){e.preventDefault(),Di||this.inputElement.focus()}_onEscape(e){super._onEscape(e),this.clearButtonVisible&&this.value&&!this.readonly&&(e.stopPropagation(),this._onClearAction())}_onClearAction(){this._inputElementValue="",this.inputElement.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})),this.inputElement.dispatchEvent(new Event("change",{bubbles:!0}))}};/**
|
|
2465
2465
|
* @license
|
|
2466
2466
|
* Copyright (c) 2023 - 2024 Vaadin Ltd.
|
|
2467
2467
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2468
|
-
*/const ni=new Map;function ls(r){return ni.has(r)||ni.set(r,new WeakMap),ni.get(r)}function
|
|
2468
|
+
*/const ni=new Map;function ls(r){return ni.has(r)||ni.set(r,new WeakMap),ni.get(r)}function wa(r,t){r&&r.removeAttribute(t)}function xa(r,t){if(!r||!t)return;const e=ls(t);if(e.has(r))return;const i=ss(r.getAttribute(t));e.set(r,new Set(i))}function pp(r,t){if(!r||!t)return;const e=ls(t),i=e.get(r);!i||i.size===0?r.removeAttribute(t):ca(r,t,Nr(i)),e.delete(r)}function ai(r,t,e={newId:null,oldId:null,fromUser:!1}){if(!r||!t)return;const{newId:i,oldId:s,fromUser:o}=e,n=ls(t),a=n.get(r);if(!o&&a){s&&a.delete(s),i&&a.add(i);return}o&&(a?i||n.delete(r):xa(r,t),wa(r,t)),Bf(r,t,s);const l=i||Nr(a);l&&ca(r,t,l)}function mp(r,t){xa(r,t),wa(r,t)}/**
|
|
2469
2469
|
* @license
|
|
2470
2470
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
2471
2471
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2472
|
-
*/class
|
|
2472
|
+
*/class _p{constructor(t){this.host=t,this.__required=!1}setTarget(t){this.__target=t,this.__setAriaRequiredAttribute(this.__required),this.__setLabelIdToAriaAttribute(this.__labelId,this.__labelId),this.__labelIdFromUser!=null&&this.__setLabelIdToAriaAttribute(this.__labelIdFromUser,this.__labelIdFromUser,!0),this.__setErrorIdToAriaAttribute(this.__errorId),this.__setHelperIdToAriaAttribute(this.__helperId),this.setAriaLabel(this.__label)}setRequired(t){this.__setAriaRequiredAttribute(t),this.__required=t}setAriaLabel(t){this.__setAriaLabelToAttribute(t),this.__label=t}setLabelId(t,e=!1){const i=e?this.__labelIdFromUser:this.__labelId;this.__setLabelIdToAriaAttribute(t,i,e),e?this.__labelIdFromUser=t:this.__labelId=t}setErrorId(t){this.__setErrorIdToAriaAttribute(t,this.__errorId),this.__errorId=t}setHelperId(t){this.__setHelperIdToAriaAttribute(t,this.__helperId),this.__helperId=t}__setAriaLabelToAttribute(t){this.__target&&(t?(mp(this.__target,"aria-labelledby"),this.__target.setAttribute("aria-label",t)):this.__label&&(pp(this.__target,"aria-labelledby"),this.__target.removeAttribute("aria-label")))}__setLabelIdToAriaAttribute(t,e,i){ai(this.__target,"aria-labelledby",{newId:t,oldId:e,fromUser:i})}__setErrorIdToAriaAttribute(t,e){ai(this.__target,"aria-describedby",{newId:t,oldId:e,fromUser:!1})}__setHelperIdToAriaAttribute(t,e){ai(this.__target,"aria-describedby",{newId:t,oldId:e,fromUser:!1})}__setAriaRequiredAttribute(t){this.__target&&(["input","textarea"].includes(this.__target.localName)||(t?this.__target.setAttribute("aria-required","true"):this.__target.removeAttribute("aria-required")))}}/**
|
|
2473
2473
|
* @license
|
|
2474
2474
|
* Copyright (c) 2022 - 2024 Vaadin Ltd.
|
|
2475
2475
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2476
|
-
*/const Ce=document.createElement("div");Ce.style.position="fixed";Ce.style.clip="rect(0px, 0px, 0px, 0px)";Ce.setAttribute("aria-live","polite");document.body.appendChild(Ce);let er;function
|
|
2476
|
+
*/const Ce=document.createElement("div");Ce.style.position="fixed";Ce.style.clip="rect(0px, 0px, 0px, 0px)";Ce.setAttribute("aria-live","polite");document.body.appendChild(Ce);let er;function gp(r,t={}){const e=t.mode||"polite",i=t.timeout===void 0?150:t.timeout;e==="alert"?(Ce.removeAttribute("aria-live"),Ce.removeAttribute("role"),er=Pe.debounce(er,zt,()=>{Ce.setAttribute("role","alert")})):(er&&er.cancel(),Ce.removeAttribute("role"),Ce.setAttribute("aria-live",e)),Ce.textContent="",setTimeout(()=>{Ce.textContent=r},i)}/**
|
|
2477
2477
|
* @license
|
|
2478
2478
|
* Copyright (c) 2022 - 2024 Vaadin Ltd.
|
|
2479
2479
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
@@ -2481,19 +2481,19 @@ try {
|
|
|
2481
2481
|
* @license
|
|
2482
2482
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
2483
2483
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2484
|
-
*/class
|
|
2484
|
+
*/class bp extends ds{constructor(t){super(t,"error-message","div")}setErrorMessage(t){this.errorMessage=t,this.updateDefaultNode(this.node)}setInvalid(t){this.invalid=t,this.updateDefaultNode(this.node)}initAddedNode(t){t!==this.defaultNode&&this.initCustomNode(t)}initNode(t){this.updateDefaultNode(t)}initCustomNode(t){t.textContent&&!this.errorMessage&&(this.errorMessage=t.textContent.trim()),super.initCustomNode(t)}restoreDefaultNode(){this.attachDefaultNode()}updateDefaultNode(t){const{errorMessage:e,invalid:i}=this,s=!!(i&&e&&e.trim()!=="");t&&(t.textContent=s?e:"",t.hidden=!s,s&&gp(e,{mode:"assertive"})),super.updateDefaultNode(t)}}/**
|
|
2485
2485
|
* @license
|
|
2486
2486
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
2487
2487
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2488
|
-
*/class
|
|
2488
|
+
*/class vp extends ds{constructor(t){super(t,"helper",null)}setHelperText(t){this.helperText=t,this.getSlotChild()||this.restoreDefaultNode(),this.node===this.defaultNode&&this.updateDefaultNode(this.node)}restoreDefaultNode(){const{helperText:t}=this;if(t&&t.trim()!==""){this.tagName="div";const e=this.attachDefaultNode();this.observeNode(e)}}updateDefaultNode(t){t&&(t.textContent=this.helperText),super.updateDefaultNode(t)}initCustomNode(t){super.initCustomNode(t),this.observeNode(t)}}/**
|
|
2489
2489
|
* @license
|
|
2490
2490
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
2491
2491
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2492
|
-
*/class
|
|
2492
|
+
*/class yp extends ds{constructor(t){super(t,"label","label")}setLabel(t){this.label=t,this.getSlotChild()||this.restoreDefaultNode(),this.node===this.defaultNode&&this.updateDefaultNode(this.node)}restoreDefaultNode(){const{label:t}=this;if(t&&t.trim()!==""){const e=this.attachDefaultNode();this.observeNode(e)}}updateDefaultNode(t){t&&(t.textContent=this.label),super.updateDefaultNode(t)}initCustomNode(t){super.initCustomNode(t),this.observeNode(t)}}/**
|
|
2493
2493
|
* @license
|
|
2494
2494
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
2495
2495
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2496
|
-
*/const
|
|
2496
|
+
*/const wp=ae(r=>class extends Or(r){static get properties(){return{label:{type:String,observer:"_labelChanged"}}}constructor(){super(),this._labelController=new yp(this),this._labelController.addEventListener("slot-content-changed",e=>{this.toggleAttribute("has-label",e.detail.hasContent)})}get _labelId(){const e=this._labelNode;return e&&e.id}get _labelNode(){return this._labelController.node}ready(){super.ready(),this.addController(this._labelController)}_labelChanged(e){this._labelController.setLabel(e)}});/**
|
|
2497
2497
|
* @license
|
|
2498
2498
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
2499
2499
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
@@ -2501,19 +2501,19 @@ try {
|
|
|
2501
2501
|
* @license
|
|
2502
2502
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
2503
2503
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2504
|
-
*/const
|
|
2504
|
+
*/const xp=r=>class extends hs(wp(Or(r))){static get properties(){return{ariaTarget:{type:Object,observer:"_ariaTargetChanged"},errorMessage:{type:String,observer:"_errorMessageChanged"},helperText:{type:String,observer:"_helperTextChanged"},accessibleName:{type:String,observer:"_accessibleNameChanged"},accessibleNameRef:{type:String,observer:"_accessibleNameRefChanged"}}}static get observers(){return["_invalidChanged(invalid)","_requiredChanged(required)"]}constructor(){super(),this._fieldAriaController=new _p(this),this._helperController=new vp(this),this._errorController=new bp(this),this._errorController.addEventListener("slot-content-changed",e=>{this.toggleAttribute("has-error-message",e.detail.hasContent)}),this._labelController.addEventListener("slot-content-changed",e=>{const{hasContent:i,node:s}=e.detail;this.__labelChanged(i,s)}),this._helperController.addEventListener("slot-content-changed",e=>{const{hasContent:i,node:s}=e.detail;this.toggleAttribute("has-helper",i),this.__helperChanged(i,s)})}get _errorNode(){return this._errorController.node}get _helperNode(){return this._helperController.node}ready(){super.ready(),this.addController(this._fieldAriaController),this.addController(this._helperController),this.addController(this._errorController)}__helperChanged(e,i){e?this._fieldAriaController.setHelperId(i.id):this._fieldAriaController.setHelperId(null)}_accessibleNameChanged(e){this._fieldAriaController.setAriaLabel(e)}_accessibleNameRefChanged(e){this._fieldAriaController.setLabelId(e,!0)}__labelChanged(e,i){e?this._fieldAriaController.setLabelId(i.id):this._fieldAriaController.setLabelId(null)}_errorMessageChanged(e){this._errorController.setErrorMessage(e)}_helperTextChanged(e){this._helperController.setHelperText(e)}_ariaTargetChanged(e){e&&this._fieldAriaController.setTarget(e)}_requiredChanged(e){this._fieldAriaController.setRequired(e)}_invalidChanged(e){this._errorController.setInvalid(e),setTimeout(()=>{if(e){const i=this._errorNode;this._fieldAriaController.setErrorId(i&&i.id)}else this._fieldAriaController.setErrorId(null)})}};/**
|
|
2505
2505
|
* @license
|
|
2506
2506
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
2507
2507
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2508
|
-
*/const
|
|
2508
|
+
*/const Pp=ae(r=>class extends r{static get properties(){return{stateTarget:{type:Object,observer:"_stateTargetChanged"}}}static get delegateAttrs(){return[]}static get delegateProps(){return[]}ready(){super.ready(),this._createDelegateAttrsObserver(),this._createDelegatePropsObserver()}_stateTargetChanged(e){e&&(this._ensureAttrsDelegated(),this._ensurePropsDelegated())}_createDelegateAttrsObserver(){this._createMethodObserver(`_delegateAttrsChanged(${this.constructor.delegateAttrs.join(", ")})`)}_createDelegatePropsObserver(){this._createMethodObserver(`_delegatePropsChanged(${this.constructor.delegateProps.join(", ")})`)}_ensureAttrsDelegated(){this.constructor.delegateAttrs.forEach(e=>{this._delegateAttribute(e,this[e])})}_ensurePropsDelegated(){this.constructor.delegateProps.forEach(e=>{this._delegateProperty(e,this[e])})}_delegateAttrsChanged(...e){this.constructor.delegateAttrs.forEach((i,s)=>{this._delegateAttribute(i,e[s])})}_delegatePropsChanged(...e){this.constructor.delegateProps.forEach((i,s)=>{this._delegateProperty(i,e[s])})}_delegateAttribute(e,i){this.stateTarget&&(e==="invalid"&&this._delegateAttribute("aria-invalid",i?"true":!1),typeof i=="boolean"?this.stateTarget.toggleAttribute(e,i):i?this.stateTarget.setAttribute(e,i):this.stateTarget.removeAttribute(e))}_delegateProperty(e,i){this.stateTarget&&(this.stateTarget[e]=i)}});/**
|
|
2509
2509
|
* @license
|
|
2510
2510
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
2511
2511
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2512
|
-
*/const
|
|
2512
|
+
*/const Pa=ae(r=>class extends Pp(hs(as(r))){static get constraints(){return["required"]}static get delegateAttrs(){return[...super.delegateAttrs,"required"]}ready(){super.ready(),this._createConstraintsObserver()}checkValidity(){return this.inputElement&&this._hasValidConstraints(this.constructor.constraints.map(e=>this[e]))?this.inputElement.checkValidity():!this.invalid}_hasValidConstraints(e){return e.some(i=>this.__isValidConstraint(i))}_createConstraintsObserver(){this._createMethodObserver(`_constraintsChanged(stateTarget, ${this.constructor.constraints.join(", ")})`)}_constraintsChanged(e,...i){if(!e)return;const s=this._hasValidConstraints(i),o=this.__previousHasConstraints&&!s;(this._hasValue||this.invalid)&&s?this.validate():o&&this._setInvalid(!1),this.__previousHasConstraints=s}_onChange(e){e.stopPropagation(),this.validate(),this.dispatchEvent(new CustomEvent("change",{detail:{sourceEvent:e},bubbles:e.bubbles,cancelable:e.cancelable}))}__isValidConstraint(e){return!!e||e===0}});/**
|
|
2513
2513
|
* @license
|
|
2514
2514
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
2515
2515
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2516
|
-
*/const
|
|
2516
|
+
*/const Ep=r=>class extends cp(dp(Pa(xp(fp(ns(r)))))){static get properties(){return{allowedCharPattern:{type:String,observer:"_allowedCharPatternChanged"},autoselect:{type:Boolean,value:!1},name:{type:String,reflectToAttribute:!0},placeholder:{type:String,reflectToAttribute:!0},readonly:{type:Boolean,value:!1,reflectToAttribute:!0},title:{type:String,reflectToAttribute:!0}}}static get delegateAttrs(){return[...super.delegateAttrs,"name","type","placeholder","readonly","invalid","title"]}constructor(){super(),this._boundOnPaste=this._onPaste.bind(this),this._boundOnDrop=this._onDrop.bind(this),this._boundOnBeforeInput=this._onBeforeInput.bind(this)}get slotStyles(){return[`
|
|
2517
2517
|
:is(input[slot='input'], textarea[slot='textarea'])::placeholder {
|
|
2518
2518
|
font: inherit;
|
|
2519
2519
|
color: inherit;
|
|
@@ -2522,19 +2522,19 @@ try {
|
|
|
2522
2522
|
* @license
|
|
2523
2523
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
2524
2524
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2525
|
-
*/class
|
|
2525
|
+
*/class Cp extends os{constructor(t,e,i={}){const{uniqueIdPrefix:s}=i;super(t,"input","input",{initializer:(o,n)=>{n.value&&(o.value=n.value),n.type&&o.setAttribute("type",n.type),o.id=this.defaultId,typeof e=="function"&&e(o)},useUniqueId:!0,uniqueIdPrefix:s})}}/**
|
|
2526
2526
|
* @license
|
|
2527
2527
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
2528
2528
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2529
|
-
*/class
|
|
2529
|
+
*/class Sp{constructor(t,e){this.input=t,this.__preventDuplicateLabelClick=this.__preventDuplicateLabelClick.bind(this),e.addEventListener("slot-content-changed",i=>{this.__initLabel(i.detail.node)}),this.__initLabel(e.node)}__initLabel(t){t&&(t.addEventListener("click",this.__preventDuplicateLabelClick),this.input&&t.setAttribute("for",this.input.id))}__preventDuplicateLabelClick(){const t=e=>{e.stopImmediatePropagation(),this.input.removeEventListener("click",t)};this.input.addEventListener("click",t)}}/**
|
|
2530
2530
|
* @license
|
|
2531
2531
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
2532
2532
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2533
|
-
*/const
|
|
2533
|
+
*/const Ap=r=>class extends Pa(r){static get properties(){return{pattern:{type:String}}}static get delegateAttrs(){return[...super.delegateAttrs,"pattern"]}static get constraints(){return[...super.constraints,"pattern"]}};/**
|
|
2534
2534
|
* @license
|
|
2535
2535
|
* Copyright (c) 2021 - 2024 Vaadin Ltd..
|
|
2536
2536
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2537
|
-
*/const
|
|
2537
|
+
*/const Tp=R`
|
|
2538
2538
|
[part='clear-button'] {
|
|
2539
2539
|
display: none;
|
|
2540
2540
|
cursor: default;
|
|
@@ -2551,7 +2551,7 @@ try {
|
|
|
2551
2551
|
* @license
|
|
2552
2552
|
* Copyright (c) 2021 - 2024 Vaadin Ltd..
|
|
2553
2553
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2554
|
-
*/const
|
|
2554
|
+
*/const Ip=R`
|
|
2555
2555
|
:host {
|
|
2556
2556
|
display: inline-flex;
|
|
2557
2557
|
outline: none;
|
|
@@ -2589,7 +2589,7 @@ try {
|
|
|
2589
2589
|
* @license
|
|
2590
2590
|
* Copyright (c) 2021 - 2024 Vaadin Ltd..
|
|
2591
2591
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2592
|
-
*/const
|
|
2592
|
+
*/const Op=R`
|
|
2593
2593
|
[class$='container'] {
|
|
2594
2594
|
display: flex;
|
|
2595
2595
|
flex-direction: column;
|
|
@@ -2601,11 +2601,11 @@ try {
|
|
|
2601
2601
|
* @license
|
|
2602
2602
|
* Copyright (c) 2021 - 2024 Vaadin Ltd..
|
|
2603
2603
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2604
|
-
*/const
|
|
2604
|
+
*/const Np=[Ip,Op,Tp];/**
|
|
2605
2605
|
* @license
|
|
2606
2606
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
2607
2607
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2608
|
-
*/function br(r,t,e=0){let i=t;for(const s of r.subCaches){const o=s.parentCacheIndex;if(i<=o)break;if(i<=o+s.flatSize)return br(s,i-o-1,e+1);i-=s.flatSize}return{cache:r,item:r.items[i],index:i,page:Math.floor(i/r.pageSize),level:e}}function
|
|
2608
|
+
*/function br(r,t,e=0){let i=t;for(const s of r.subCaches){const o=s.parentCacheIndex;if(i<=o)break;if(i<=o+s.flatSize)return br(s,i-o-1,e+1);i-=s.flatSize}return{cache:r,item:r.items[i],index:i,page:Math.floor(i/r.pageSize),level:e}}function Ea({getItemId:r},t,e,i=0,s=0){for(let o=0;o<t.items.length;o++){const n=t.items[o];if(n&&r(n)===r(e))return{cache:t,level:i,item:n,index:o,page:Math.floor(o/t.pageSize),subCache:t.getSubCache(o),flatIndex:s+t.getFlatIndex(o)}}for(const o of t.subCaches){const n=s+t.getFlatIndex(o.parentCacheIndex),a=Ea({getItemId:r},o,e,i+1,n+1);if(a)return a}}function Ca(r,[t,...e],i=0){t===1/0&&(t=r.size-1);const s=r.getFlatIndex(t),o=r.getSubCache(t);return o&&o.flatSize>0&&e.length?Ca(o,e,i+s+1):i+s}/**
|
|
2609
2609
|
* @license
|
|
2610
2610
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
2611
2611
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
@@ -2613,31 +2613,31 @@ try {
|
|
|
2613
2613
|
* @license
|
|
2614
2614
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
2615
2615
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2616
|
-
*/class
|
|
2616
|
+
*/class kp extends EventTarget{constructor(e,{size:i,pageSize:s,isExpanded:o,getItemId:n,isPlaceholder:a,placeholder:l,dataProvider:d,dataProviderParams:h}){super();z(this,"host");z(this,"dataProvider");z(this,"dataProviderParams");z(this,"pageSize");z(this,"isExpanded");z(this,"getItemId");z(this,"rootCache");z(this,"placeholder");z(this,"isPlaceholder");this.host=e,this.pageSize=s,this.getItemId=n,this.isExpanded=o,this.placeholder=l,this.isPlaceholder=a,this.dataProvider=d,this.dataProviderParams=h,this.rootCache=this.__createRootCache(i)}get flatSize(){return this.rootCache.flatSize}get __cacheContext(){return{isExpanded:this.isExpanded,placeholder:this.placeholder,__controller:this}}isLoading(){return this.rootCache.isLoading}setPageSize(e){this.pageSize=e,this.clearCache()}setDataProvider(e){this.dataProvider=e,this.clearCache()}recalculateFlatSize(){this.rootCache.recalculateFlatSize()}clearCache(){this.rootCache=this.__createRootCache(this.rootCache.size)}getFlatIndexContext(e){return br(this.rootCache,e)}getItemContext(e){return Ea({getItemId:this.getItemId},this.rootCache,e)}getFlatIndexByPath(e){return Ca(this.rootCache,e)}ensureFlatIndexLoaded(e){const{cache:i,page:s,item:o}=this.getFlatIndexContext(e);this.__isItemLoaded(o)||this.__loadCachePage(i,s)}ensureFlatIndexHierarchy(e){const{cache:i,item:s,index:o}=this.getFlatIndexContext(e);if(this.__isItemLoaded(s)&&this.isExpanded(s)&&!i.getSubCache(o)){const n=i.createSubCache(o);this.__loadCachePage(n,0)}}loadFirstPage(){this.__loadCachePage(this.rootCache,0)}__createRootCache(e){return new us(this.__cacheContext,this.pageSize,e)}__loadCachePage(e,i){if(!this.dataProvider||e.pendingRequests[i])return;let s={page:i,pageSize:this.pageSize,parentItem:e.parentItem};this.dataProviderParams&&(s=Ge(Ge({},s),this.dataProviderParams()));const o=(n,a)=>{e.pendingRequests[i]===o&&(a!==void 0?e.size=a:s.parentItem&&(e.size=n.length),e.setPage(i,n),this.recalculateFlatSize(),this.dispatchEvent(new CustomEvent("page-received")),delete e.pendingRequests[i],this.dispatchEvent(new CustomEvent("page-loaded")))};e.pendingRequests[i]=o,this.dispatchEvent(new CustomEvent("page-requested")),this.dataProvider(s,o)}__isItemLoaded(e){return this.isPlaceholder?!this.isPlaceholder(e):this.placeholder?e!==this.placeholder:!!e}}/**
|
|
2617
2617
|
* @license
|
|
2618
2618
|
* Copyright (c) 2015 - 2024 Vaadin Ltd.
|
|
2619
2619
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2620
|
-
*/const
|
|
2620
|
+
*/const Mp=r=>class extends r{static get properties(){return{pageSize:{type:Number,value:50,observer:"_pageSizeChanged",sync:!0},size:{type:Number,observer:"_sizeChanged",sync:!0},dataProvider:{type:Object,observer:"_dataProviderChanged",sync:!0},__dataProviderInitialized:{type:Boolean,value:!1},__previousDataProviderFilter:{type:String}}}static get observers(){return["_dataProviderFilterChanged(filter)","_warnDataProviderValue(dataProvider, value)","_ensureFirstPage(opened)"]}constructor(){super(),this.__dataProviderController=new kp(this,{placeholder:new lt,isPlaceholder:e=>e instanceof lt,dataProviderParams:()=>({filter:this.filter})}),this.__dataProviderController.addEventListener("page-requested",this.__onDataProviderPageRequested.bind(this)),this.__dataProviderController.addEventListener("page-loaded",this.__onDataProviderPageLoaded.bind(this))}ready(){super.ready(),this._scroller.addEventListener("index-requested",e=>{if(!this._shouldFetchData())return;const i=e.detail.index;i!==void 0&&this.__dataProviderController.ensureFlatIndexLoaded(i)}),this.__dataProviderInitialized=!0,this.dataProvider&&this.__synchronizeControllerState()}_dataProviderFilterChanged(e){if(this.__previousDataProviderFilter===void 0&&e===""){this.__previousDataProviderFilter=e;return}this.__previousDataProviderFilter!==e&&(this.__previousDataProviderFilter=e,this.__keepOverlayOpened=!0,this.size=void 0,this.clearCache(),this.__keepOverlayOpened=!1)}_shouldFetchData(){return this.dataProvider?this.opened||this.filter&&this.filter.length:!1}_ensureFirstPage(e){!this._shouldFetchData()||!e||(this._forceNextRequest||this.size===void 0?(this._forceNextRequest=!1,this.__dataProviderController.loadFirstPage()):this.size>0&&this.__dataProviderController.ensureFlatIndexLoaded(0))}__onDataProviderPageRequested(){this.loading=!0}__onDataProviderPageLoaded(){const{rootCache:e}=this.__dataProviderController;e.items=[...e.items],this.__synchronizeControllerState(),!this.opened&&!this._isInputFocused()&&this._commitValue()}clearCache(){this.dataProvider&&(this.__dataProviderController.clearCache(),this.__synchronizeControllerState(),this._shouldFetchData()?(this._forceNextRequest=!1,this.__dataProviderController.loadFirstPage()):this._forceNextRequest=!0)}_sizeChanged(e){const{rootCache:i}=this.__dataProviderController;i.size!==e&&(i.size=e,i.items=[...i.items],this.__synchronizeControllerState())}_filteredItemsChanged(e){if(super._filteredItemsChanged(e),this.dataProvider&&e){const{rootCache:i}=this.__dataProviderController;i.items!==e&&(i.items=e,this.__synchronizeControllerState())}}__synchronizeControllerState(){if(this.__dataProviderInitialized&&this.dataProvider){const{rootCache:e}=this.__dataProviderController;this.size=e.size,this.filteredItems=e.items,this.loading=this.__dataProviderController.isLoading()}}_pageSizeChanged(e,i){if(Math.floor(e)!==e||e<1)throw this.pageSize=i,new Error("`pageSize` value must be an integer > 0");this.__dataProviderController.setPageSize(e),this.clearCache()}_dataProviderChanged(e,i){this._ensureItemsOrDataProvider(()=>{this.dataProvider=i}),this.__dataProviderController.setDataProvider(e),this.clearCache()}_ensureItemsOrDataProvider(e){if(this.items!==void 0&&this.dataProvider!==void 0)throw e(),new Error("Using `items` and `dataProvider` together is not supported")}_warnDataProviderValue(e,i){if(e&&i!==""&&(this.selectedItem===void 0||this.selectedItem===null)){const s=this.__getItemIndexByValue(this.filteredItems,i);(s<0||!this._getItemLabel(this.filteredItems[s]))&&console.warn("Warning: unable to determine the label for the provided `value`. Nothing to display in the text field. This usually happens when setting an initial `value` before any items are returned from the `dataProvider` callback. Consider setting `selectedItem` instead of `value`")}}};/**
|
|
2621
2621
|
* @license
|
|
2622
2622
|
* Copyright (c) 2023 - 2024 Vaadin Ltd.
|
|
2623
2623
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2624
|
-
*/const
|
|
2624
|
+
*/const Lp=r=>class extends r{static get properties(){return{overlayClass:{type:String},_overlayElement:{type:Object}}}static get observers(){return["__updateOverlayClassNames(overlayClass, _overlayElement)"]}__updateOverlayClassNames(e,i){if(!i||e===void 0)return;const{classList:s}=i;if(this.__initialClasses||(this.__initialClasses=new Set(s)),Array.isArray(this.__previousClasses)){const n=this.__previousClasses.filter(a=>!this.__initialClasses.has(a));n.length>0&&s.remove(...n)}const o=typeof e=="string"?e.split(" ").filter(Boolean):[];o.length>0&&s.add(...o),this.__previousClasses=o}};/**
|
|
2625
2625
|
* @license
|
|
2626
2626
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
2627
2627
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2628
|
-
*/function
|
|
2628
|
+
*/function Bp(r){if(window.Vaadin&&window.Vaadin.templateRendererCallback){window.Vaadin.templateRendererCallback(r);return}r.querySelector("template")&&console.warn(`WARNING: <template> inside <${r.localName}> is no longer supported. Import @vaadin/polymer-legacy-adapter/template-renderer.js to enable compatibility.`)}/**
|
|
2629
2629
|
* @license
|
|
2630
2630
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
2631
2631
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2632
|
-
*/class
|
|
2632
|
+
*/class Rp{constructor(t){this.host=t,t.addEventListener("opened-changed",()=>{t.opened||this.__setVirtualKeyboardEnabled(!1)}),t.addEventListener("blur",()=>this.__setVirtualKeyboardEnabled(!0)),t.addEventListener("touchstart",()=>this.__setVirtualKeyboardEnabled(!0))}__setVirtualKeyboardEnabled(t){this.host.inputElement&&(this.host.inputElement.inputMode=t?"":"none")}}/**
|
|
2633
2633
|
* @license
|
|
2634
2634
|
* Copyright (c) 2015 - 2024 Vaadin Ltd.
|
|
2635
2635
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2636
|
-
*/function Eo(r){return r!=null}function Co(r,t){return r.findIndex(e=>e instanceof lt?!1:t(e))}const Rp=r=>class extends Mp(Or(hs(ba(ns(as(va(r))))))){static get properties(){return{opened:{type:Boolean,notify:!0,value:!1,reflectToAttribute:!0,sync:!0,observer:"_openedChanged"},autoOpenDisabled:{type:Boolean,sync:!0},readonly:{type:Boolean,value:!1,reflectToAttribute:!0},renderer:{type:Object,sync:!0},items:{type:Array,sync:!0,observer:"_itemsChanged"},allowCustomValue:{type:Boolean,value:!1},filteredItems:{type:Array,observer:"_filteredItemsChanged",sync:!0},_lastCommittedValue:String,loading:{type:Boolean,value:!1,reflectToAttribute:!0,sync:!0},_focusedIndex:{type:Number,observer:"_focusedIndexChanged",value:-1,sync:!0},filter:{type:String,value:"",notify:!0,sync:!0},selectedItem:{type:Object,notify:!0,sync:!0},itemClassNameGenerator:{type:Object},itemLabelPath:{type:String,value:"label",observer:"_itemLabelPathChanged",sync:!0},itemValuePath:{type:String,value:"value",sync:!0},itemIdPath:{type:String,sync:!0},_toggleElement:{type:Object,observer:"_toggleElementChanged"},_dropdownItems:{type:Array,sync:!0},_closeOnBlurIsPrevented:Boolean,_scroller:{type:Object,sync:!0},_overlayOpened:{type:Boolean,sync:!0,observer:"_overlayOpenedChanged"},__keepOverlayOpened:{type:Boolean,sync:!0}}}static get observers(){return["_selectedItemChanged(selectedItem, itemValuePath, itemLabelPath)","_openedOrItemsChanged(opened, _dropdownItems, loading, __keepOverlayOpened)","_updateScroller(_scroller, _dropdownItems, opened, loading, selectedItem, itemIdPath, _focusedIndex, renderer, _theme, itemClassNameGenerator)"]}constructor(){super(),this._boundOverlaySelectedItemChanged=this._overlaySelectedItemChanged.bind(this),this._boundOnClearButtonMouseDown=this.__onClearButtonMouseDown.bind(this),this._boundOnClick=this._onClick.bind(this),this._boundOnOverlayTouchAction=this._onOverlayTouchAction.bind(this),this._boundOnTouchend=this._onTouchend.bind(this)}get _tagNamePrefix(){return"vaadin-combo-box"}get _nativeInput(){return this.inputElement}_inputElementChanged(e){super._inputElementChanged(e);const i=this._nativeInput;i&&(i.autocomplete="off",i.autocapitalize="off",i.setAttribute("role","combobox"),i.setAttribute("aria-autocomplete","list"),i.setAttribute("aria-expanded",!!this.opened),i.setAttribute("spellcheck","false"),i.setAttribute("autocorrect","off"),this._revertInputValueToValue(),this.clearElement&&this.clearElement.addEventListener("mousedown",this._boundOnClearButtonMouseDown))}ready(){super.ready(),this._initOverlay(),this._initScroller(),this._lastCommittedValue=this.value,this.addEventListener("click",this._boundOnClick),this.addEventListener("touchend",this._boundOnTouchend);const e=()=>{requestAnimationFrame(()=>{this._overlayElement.bringToFront()})};this.addEventListener("mousedown",e),this.addEventListener("touchstart",e),Lp(this),this.addController(new Bp(this))}disconnectedCallback(){super.disconnectedCallback(),this.close()}requestContentUpdate(){this._scroller&&(this._scroller.requestContentUpdate(),this._getItemElements().forEach(e=>{e.requestContentUpdate()}))}open(){!this.disabled&&!this.readonly&&(this.opened=!0)}close(){this.opened=!1}_propertiesChanged(e,i,s){super._propertiesChanged(e,i,s),i.filter!==void 0&&this._filterChanged(i.filter)}updated(e){super.updated(e),e.has("filter")&&this._filterChanged(this.filter)}_initOverlay(){const e=this.$.overlay;e._comboBox=this,e.addEventListener("touchend",this._boundOnOverlayTouchAction),e.addEventListener("touchmove",this._boundOnOverlayTouchAction),e.addEventListener("mousedown",i=>i.preventDefault()),e.addEventListener("opened-changed",i=>{this._overlayOpened=i.detail.value}),this._overlayElement=e}_initScroller(e){const i=document.createElement(`${this._tagNamePrefix}-scroller`);i.owner=e||this,i.getItemLabel=this._getItemLabel.bind(this),i.addEventListener("selection-changed",this._boundOverlaySelectedItemChanged);const s=this._overlayElement;s.renderer=o=>{o.innerHTML||o.appendChild(i)},s.requestContentUpdate(),this._scroller=i}_updateScroller(e,i,s,o,n,a,l,d,h,u){if(e&&(s&&(e.style.maxHeight=getComputedStyle(this).getPropertyValue(`--${this._tagNamePrefix}-overlay-max-height`)||"65vh"),e.setProperties({items:s?i:[],opened:s,loading:o,selectedItem:n,itemIdPath:a,focusedIndex:l,renderer:d,theme:h,itemClassNameGenerator:u}),e.performUpdate&&!e.hasUpdated))try{e.performUpdate()}catch(f){}}_openedOrItemsChanged(e,i,s,o){this._overlayOpened=e&&(o||s||!!(i&&i.length))}_overlayOpenedChanged(e,i){e?(this.dispatchEvent(new CustomEvent("vaadin-combo-box-dropdown-opened",{bubbles:!0,composed:!0})),this._onOpened()):i&&this._dropdownItems&&this._dropdownItems.length&&(this.close(),this.dispatchEvent(new CustomEvent("vaadin-combo-box-dropdown-closed",{bubbles:!0,composed:!0})))}_focusedIndexChanged(e,i){i!==void 0&&this._updateActiveDescendant(e)}_isInputFocused(){return this.inputElement&&la(this.inputElement)}_updateActiveDescendant(e){const i=this._nativeInput;if(!i)return;const s=this._getItemElements().find(o=>o.index===e);s?i.setAttribute("aria-activedescendant",s.id):i.removeAttribute("aria-activedescendant")}_openedChanged(e,i){if(i===void 0)return;e?!this._isInputFocused()&&!Di&&this.inputElement&&this.inputElement.focus():this._onClosed();const s=this._nativeInput;s&&(s.setAttribute("aria-expanded",!!e),e?s.setAttribute("aria-controls",this._scroller.id):s.removeAttribute("aria-controls"))}_onOverlayTouchAction(){this._closeOnBlurIsPrevented=!0,this.inputElement.blur(),this._closeOnBlurIsPrevented=!1}_isClearButton(e){return e.composedPath()[0]===this.clearElement}__onClearButtonMouseDown(e){e.preventDefault(),this.inputElement.focus()}_onClearButtonClick(e){e.preventDefault(),this._onClearAction(),this.opened&&this.requestContentUpdate()}_onToggleButtonClick(e){e.preventDefault(),this.opened?this.close():this.open()}_onHostClick(e){this.autoOpenDisabled||(e.preventDefault(),this.open())}_onClick(e){this._isClearButton(e)?this._onClearButtonClick(e):e.composedPath().includes(this._toggleElement)?this._onToggleButtonClick(e):this._onHostClick(e)}_onKeyDown(e){super._onKeyDown(e),e.key==="ArrowDown"?(this._onArrowDown(),e.preventDefault()):e.key==="ArrowUp"&&(this._onArrowUp(),e.preventDefault())}_getItemLabel(e){let i=e&&this.itemLabelPath?gr(this.itemLabelPath,e):void 0;return i==null&&(i=e?e.toString():""),i}_getItemValue(e){let i=e&&this.itemValuePath?gr(this.itemValuePath,e):void 0;return i===void 0&&(i=e?e.toString():""),i}_onArrowDown(){if(this.opened){const e=this._dropdownItems;e&&(this._focusedIndex=Math.min(e.length-1,this._focusedIndex+1),this._prefillFocusedItemLabel())}else this.open()}_onArrowUp(){if(this.opened){if(this._focusedIndex>-1)this._focusedIndex=Math.max(0,this._focusedIndex-1);else{const e=this._dropdownItems;e&&(this._focusedIndex=e.length-1)}this._prefillFocusedItemLabel()}else this.open()}_prefillFocusedItemLabel(){if(this._focusedIndex>-1){const e=this._dropdownItems[this._focusedIndex];this._inputElementValue=this._getItemLabel(e),this._markAllSelectionRange()}}_setSelectionRange(e,i){this._isInputFocused()&&this.inputElement.setSelectionRange&&this.inputElement.setSelectionRange(e,i)}_markAllSelectionRange(){this._inputElementValue!==void 0&&this._setSelectionRange(0,this._inputElementValue.length)}_clearSelectionRange(){if(this._inputElementValue!==void 0){const e=this._inputElementValue?this._inputElementValue.length:0;this._setSelectionRange(e,e)}}_closeOrCommit(){!this.opened&&!this.loading?this._commitValue():this.close()}_onEnter(e){if(!this._hasValidInputValue()){e.preventDefault(),e.stopPropagation();return}this.opened&&(e.preventDefault(),e.stopPropagation()),this._closeOrCommit()}_hasValidInputValue(){const e=this._focusedIndex<0&&this._inputElementValue!==""&&this._getItemLabel(this.selectedItem)!==this._inputElementValue;return this.allowCustomValue||!e}_onEscape(e){this.autoOpenDisabled&&(this.opened||this.value!==this._inputElementValue&&this._inputElementValue.length>0)?(e.stopPropagation(),this._focusedIndex=-1,this.cancel()):this.opened?(e.stopPropagation(),this._focusedIndex>-1?(this._focusedIndex=-1,this._revertInputValue()):this.cancel()):this.clearButtonVisible&&this.value&&!this.readonly&&(e.stopPropagation(),this._onClearAction())}_toggleElementChanged(e){e&&(e.addEventListener("mousedown",i=>i.preventDefault()),e.addEventListener("click",()=>{Di&&!this._isInputFocused()&&document.activeElement.blur()}))}_onClearAction(){this.selectedItem=null,this.allowCustomValue&&(this.value=""),this._detectAndDispatchChange()}_clearFilter(){this.filter=""}cancel(){this._revertInputValueToValue(),this._lastCommittedValue=this.value,this._closeOrCommit()}_onOpened(){this._lastCommittedValue=this.value}_onClosed(){(!this.loading||this.allowCustomValue)&&this._commitValue()}_commitValue(){if(this._focusedIndex>-1){const e=this._dropdownItems[this._focusedIndex];this.selectedItem!==e&&(this.selectedItem=e),this._inputElementValue=this._getItemLabel(this.selectedItem),this._focusedIndex=-1}else if(this._inputElementValue===""||this._inputElementValue===void 0)this.selectedItem=null,this.allowCustomValue&&(this.value="");else{const e=[this.selectedItem,...this._dropdownItems||[]],i=e[this.__getItemIndexByLabel(e,this._inputElementValue)];if(this.allowCustomValue&&!i){const s=this._inputElementValue;this._lastCustomValue=s;const o=new CustomEvent("custom-value-set",{detail:s,composed:!0,cancelable:!0,bubbles:!0});this.dispatchEvent(o),o.defaultPrevented||(this.value=s)}else!this.allowCustomValue&&!this.opened&&i?this.value=this._getItemValue(i):this._revertInputValueToValue()}this._detectAndDispatchChange(),this._clearSelectionRange(),this._clearFilter()}_onInput(e){const i=this._inputElementValue,s={};this.filter===i?this._filterChanged(this.filter):s.filter=i,!this.opened&&!this._isClearButton(e)&&!this.autoOpenDisabled&&(s.opened=!0),this.setProperties(s)}_onChange(e){e.stopPropagation()}_itemLabelPathChanged(e){typeof e!="string"&&console.error("You should set itemLabelPath to a valid string")}_filterChanged(e){this._scrollIntoView(0),this._focusedIndex=-1,this.items?this.filteredItems=this._filterItems(this.items,e):this._filteredItemsChanged(this.filteredItems)}_revertInputValue(){this.filter!==""?this._inputElementValue=this.filter:this._revertInputValueToValue(),this._clearSelectionRange()}_revertInputValueToValue(){this.allowCustomValue&&!this.selectedItem?this._inputElementValue=this.value:this._inputElementValue=this._getItemLabel(this.selectedItem)}_selectedItemChanged(e){if(e==null)this.filteredItems&&(this.allowCustomValue||(this.value=""),this._toggleHasValue(this._hasValue),this._inputElementValue=this.value);else{const i=this._getItemValue(e);if(this.value!==i&&(this.value=i,this.value!==i))return;this._toggleHasValue(!0),this._inputElementValue=this._getItemLabel(e)}}_valueChanged(e,i){e===""&&i===void 0||(Eo(e)?(this._getItemValue(this.selectedItem)!==e&&this._selectItemForValue(e),!this.selectedItem&&this.allowCustomValue&&(this._inputElementValue=e),this._toggleHasValue(this._hasValue)):this.selectedItem=null,this._clearFilter(),this._lastCommittedValue=void 0)}_detectAndDispatchChange(){document.hasFocus()&&this.validate(),this.value!==this._lastCommittedValue&&(this.dispatchEvent(new CustomEvent("change",{bubbles:!0})),this._lastCommittedValue=this.value)}_itemsChanged(e,i){this._ensureItemsOrDataProvider(()=>{this.items=i}),e?this.filteredItems=e.slice(0):i&&(this.filteredItems=null)}_filteredItemsChanged(e){this._setDropdownItems(e)}_filterItems(e,i){return e&&e.filter(o=>(i=i?i.toString().toLowerCase():"",this._getItemLabel(o).toString().toLowerCase().indexOf(i)>-1))}_selectItemForValue(e){const i=this.__getItemIndexByValue(this.filteredItems,e),s=this.selectedItem;i>=0?this.selectedItem=this.filteredItems[i]:this.dataProvider&&this.selectedItem===void 0?this.selectedItem=void 0:this.selectedItem=null,this.selectedItem===null&&s===null&&this._selectedItemChanged(this.selectedItem)}_setDropdownItems(e){const i=this._dropdownItems;this._dropdownItems=e;const s=i?i[this._focusedIndex]:null,o=this.__getItemIndexByValue(e,this.value);(this.selectedItem===null||this.selectedItem===void 0)&&o>=0&&(this.selectedItem=e[o]);const n=this.__getItemIndexByValue(e,this._getItemValue(s));n>-1?this._focusedIndex=n:this._focusedIndex=this.__getItemIndexByLabel(e,this.filter)}_getItemElements(){return Array.from(this._scroller.querySelectorAll(`${this._tagNamePrefix}-item`))}_scrollIntoView(e){this._scroller&&this._scroller.scrollIntoView(e)}__getItemIndexByValue(e,i){return!e||!Eo(i)?-1:Co(e,s=>this._getItemValue(s)===i)}__getItemIndexByLabel(e,i){return!e||!i?-1:Co(e,s=>this._getItemLabel(s).toString().toLowerCase()===i.toString().toLowerCase())}_overlaySelectedItemChanged(e){e.stopPropagation(),!(e.detail.item instanceof lt)&&this.opened&&(this._focusedIndex=this.filteredItems.indexOf(e.detail.item),this.close())}_setFocused(e){if(super._setFocused(e),!e&&!this.readonly&&!this._closeOnBlurIsPrevented){if(!this.opened&&this.allowCustomValue&&this._inputElementValue===this._lastCustomValue){delete this._lastCustomValue;return}if(is()){this._closeOrCommit();return}this.opened?this._overlayOpened||this.close():this._commitValue()}}_shouldRemoveFocus(e){return e.relatedTarget&&e.relatedTarget.localName===`${this._tagNamePrefix}-item`?!1:e.relatedTarget===this._overlayElement?(e.composedPath()[0].focus(),!1):!0}_onTouchend(e){!this.clearElement||e.composedPath()[0]!==this.clearElement||(e.preventDefault(),this._onClearAction())}};/**
|
|
2636
|
+
*/function Co(r){return r!=null}function So(r,t){return r.findIndex(e=>e instanceof lt?!1:t(e))}const Dp=r=>class extends Lp(Or(hs(va(ns(as(ya(r))))))){static get properties(){return{opened:{type:Boolean,notify:!0,value:!1,reflectToAttribute:!0,sync:!0,observer:"_openedChanged"},autoOpenDisabled:{type:Boolean,sync:!0},readonly:{type:Boolean,value:!1,reflectToAttribute:!0},renderer:{type:Object,sync:!0},items:{type:Array,sync:!0,observer:"_itemsChanged"},allowCustomValue:{type:Boolean,value:!1},filteredItems:{type:Array,observer:"_filteredItemsChanged",sync:!0},_lastCommittedValue:String,loading:{type:Boolean,value:!1,reflectToAttribute:!0,sync:!0},_focusedIndex:{type:Number,observer:"_focusedIndexChanged",value:-1,sync:!0},filter:{type:String,value:"",notify:!0,sync:!0},selectedItem:{type:Object,notify:!0,sync:!0},itemClassNameGenerator:{type:Object},itemLabelPath:{type:String,value:"label",observer:"_itemLabelPathChanged",sync:!0},itemValuePath:{type:String,value:"value",sync:!0},itemIdPath:{type:String,sync:!0},_toggleElement:{type:Object,observer:"_toggleElementChanged"},_dropdownItems:{type:Array,sync:!0},_closeOnBlurIsPrevented:Boolean,_scroller:{type:Object,sync:!0},_overlayOpened:{type:Boolean,sync:!0,observer:"_overlayOpenedChanged"},__keepOverlayOpened:{type:Boolean,sync:!0}}}static get observers(){return["_selectedItemChanged(selectedItem, itemValuePath, itemLabelPath)","_openedOrItemsChanged(opened, _dropdownItems, loading, __keepOverlayOpened)","_updateScroller(_scroller, _dropdownItems, opened, loading, selectedItem, itemIdPath, _focusedIndex, renderer, _theme, itemClassNameGenerator)"]}constructor(){super(),this._boundOverlaySelectedItemChanged=this._overlaySelectedItemChanged.bind(this),this._boundOnClearButtonMouseDown=this.__onClearButtonMouseDown.bind(this),this._boundOnClick=this._onClick.bind(this),this._boundOnOverlayTouchAction=this._onOverlayTouchAction.bind(this),this._boundOnTouchend=this._onTouchend.bind(this)}get _tagNamePrefix(){return"vaadin-combo-box"}get _nativeInput(){return this.inputElement}_inputElementChanged(e){super._inputElementChanged(e);const i=this._nativeInput;i&&(i.autocomplete="off",i.autocapitalize="off",i.setAttribute("role","combobox"),i.setAttribute("aria-autocomplete","list"),i.setAttribute("aria-expanded",!!this.opened),i.setAttribute("spellcheck","false"),i.setAttribute("autocorrect","off"),this._revertInputValueToValue(),this.clearElement&&this.clearElement.addEventListener("mousedown",this._boundOnClearButtonMouseDown))}ready(){super.ready(),this._initOverlay(),this._initScroller(),this._lastCommittedValue=this.value,this.addEventListener("click",this._boundOnClick),this.addEventListener("touchend",this._boundOnTouchend);const e=()=>{requestAnimationFrame(()=>{this._overlayElement.bringToFront()})};this.addEventListener("mousedown",e),this.addEventListener("touchstart",e),Bp(this),this.addController(new Rp(this))}disconnectedCallback(){super.disconnectedCallback(),this.close()}requestContentUpdate(){this._scroller&&(this._scroller.requestContentUpdate(),this._getItemElements().forEach(e=>{e.requestContentUpdate()}))}open(){!this.disabled&&!this.readonly&&(this.opened=!0)}close(){this.opened=!1}_propertiesChanged(e,i,s){super._propertiesChanged(e,i,s),i.filter!==void 0&&this._filterChanged(i.filter)}updated(e){super.updated(e),e.has("filter")&&this._filterChanged(this.filter)}_initOverlay(){const e=this.$.overlay;e._comboBox=this,e.addEventListener("touchend",this._boundOnOverlayTouchAction),e.addEventListener("touchmove",this._boundOnOverlayTouchAction),e.addEventListener("mousedown",i=>i.preventDefault()),e.addEventListener("opened-changed",i=>{this._overlayOpened=i.detail.value}),this._overlayElement=e}_initScroller(e){const i=document.createElement(`${this._tagNamePrefix}-scroller`);i.owner=e||this,i.getItemLabel=this._getItemLabel.bind(this),i.addEventListener("selection-changed",this._boundOverlaySelectedItemChanged);const s=this._overlayElement;s.renderer=o=>{o.innerHTML||o.appendChild(i)},s.requestContentUpdate(),this._scroller=i}_updateScroller(e,i,s,o,n,a,l,d,h,u){if(e&&(s&&(e.style.maxHeight=getComputedStyle(this).getPropertyValue(`--${this._tagNamePrefix}-overlay-max-height`)||"65vh"),e.setProperties({items:s?i:[],opened:s,loading:o,selectedItem:n,itemIdPath:a,focusedIndex:l,renderer:d,theme:h,itemClassNameGenerator:u}),e.performUpdate&&!e.hasUpdated))try{e.performUpdate()}catch(f){}}_openedOrItemsChanged(e,i,s,o){this._overlayOpened=e&&(o||s||!!(i&&i.length))}_overlayOpenedChanged(e,i){e?(this.dispatchEvent(new CustomEvent("vaadin-combo-box-dropdown-opened",{bubbles:!0,composed:!0})),this._onOpened()):i&&this._dropdownItems&&this._dropdownItems.length&&(this.close(),this.dispatchEvent(new CustomEvent("vaadin-combo-box-dropdown-closed",{bubbles:!0,composed:!0})))}_focusedIndexChanged(e,i){i!==void 0&&this._updateActiveDescendant(e)}_isInputFocused(){return this.inputElement&&da(this.inputElement)}_updateActiveDescendant(e){const i=this._nativeInput;if(!i)return;const s=this._getItemElements().find(o=>o.index===e);s?i.setAttribute("aria-activedescendant",s.id):i.removeAttribute("aria-activedescendant")}_openedChanged(e,i){if(i===void 0)return;e?!this._isInputFocused()&&!Di&&this.inputElement&&this.inputElement.focus():this._onClosed();const s=this._nativeInput;s&&(s.setAttribute("aria-expanded",!!e),e?s.setAttribute("aria-controls",this._scroller.id):s.removeAttribute("aria-controls"))}_onOverlayTouchAction(){this._closeOnBlurIsPrevented=!0,this.inputElement.blur(),this._closeOnBlurIsPrevented=!1}_isClearButton(e){return e.composedPath()[0]===this.clearElement}__onClearButtonMouseDown(e){e.preventDefault(),this.inputElement.focus()}_onClearButtonClick(e){e.preventDefault(),this._onClearAction(),this.opened&&this.requestContentUpdate()}_onToggleButtonClick(e){e.preventDefault(),this.opened?this.close():this.open()}_onHostClick(e){this.autoOpenDisabled||(e.preventDefault(),this.open())}_onClick(e){this._isClearButton(e)?this._onClearButtonClick(e):e.composedPath().includes(this._toggleElement)?this._onToggleButtonClick(e):this._onHostClick(e)}_onKeyDown(e){super._onKeyDown(e),e.key==="ArrowDown"?(this._onArrowDown(),e.preventDefault()):e.key==="ArrowUp"&&(this._onArrowUp(),e.preventDefault())}_getItemLabel(e){let i=e&&this.itemLabelPath?gr(this.itemLabelPath,e):void 0;return i==null&&(i=e?e.toString():""),i}_getItemValue(e){let i=e&&this.itemValuePath?gr(this.itemValuePath,e):void 0;return i===void 0&&(i=e?e.toString():""),i}_onArrowDown(){if(this.opened){const e=this._dropdownItems;e&&(this._focusedIndex=Math.min(e.length-1,this._focusedIndex+1),this._prefillFocusedItemLabel())}else this.open()}_onArrowUp(){if(this.opened){if(this._focusedIndex>-1)this._focusedIndex=Math.max(0,this._focusedIndex-1);else{const e=this._dropdownItems;e&&(this._focusedIndex=e.length-1)}this._prefillFocusedItemLabel()}else this.open()}_prefillFocusedItemLabel(){if(this._focusedIndex>-1){const e=this._dropdownItems[this._focusedIndex];this._inputElementValue=this._getItemLabel(e),this._markAllSelectionRange()}}_setSelectionRange(e,i){this._isInputFocused()&&this.inputElement.setSelectionRange&&this.inputElement.setSelectionRange(e,i)}_markAllSelectionRange(){this._inputElementValue!==void 0&&this._setSelectionRange(0,this._inputElementValue.length)}_clearSelectionRange(){if(this._inputElementValue!==void 0){const e=this._inputElementValue?this._inputElementValue.length:0;this._setSelectionRange(e,e)}}_closeOrCommit(){!this.opened&&!this.loading?this._commitValue():this.close()}_onEnter(e){if(!this._hasValidInputValue()){e.preventDefault(),e.stopPropagation();return}this.opened&&(e.preventDefault(),e.stopPropagation()),this._closeOrCommit()}_hasValidInputValue(){const e=this._focusedIndex<0&&this._inputElementValue!==""&&this._getItemLabel(this.selectedItem)!==this._inputElementValue;return this.allowCustomValue||!e}_onEscape(e){this.autoOpenDisabled&&(this.opened||this.value!==this._inputElementValue&&this._inputElementValue.length>0)?(e.stopPropagation(),this._focusedIndex=-1,this.cancel()):this.opened?(e.stopPropagation(),this._focusedIndex>-1?(this._focusedIndex=-1,this._revertInputValue()):this.cancel()):this.clearButtonVisible&&this.value&&!this.readonly&&(e.stopPropagation(),this._onClearAction())}_toggleElementChanged(e){e&&(e.addEventListener("mousedown",i=>i.preventDefault()),e.addEventListener("click",()=>{Di&&!this._isInputFocused()&&document.activeElement.blur()}))}_onClearAction(){this.selectedItem=null,this.allowCustomValue&&(this.value=""),this._detectAndDispatchChange()}_clearFilter(){this.filter=""}cancel(){this._revertInputValueToValue(),this._lastCommittedValue=this.value,this._closeOrCommit()}_onOpened(){this._lastCommittedValue=this.value}_onClosed(){(!this.loading||this.allowCustomValue)&&this._commitValue()}_commitValue(){if(this._focusedIndex>-1){const e=this._dropdownItems[this._focusedIndex];this.selectedItem!==e&&(this.selectedItem=e),this._inputElementValue=this._getItemLabel(this.selectedItem),this._focusedIndex=-1}else if(this._inputElementValue===""||this._inputElementValue===void 0)this.selectedItem=null,this.allowCustomValue&&(this.value="");else{const e=[this.selectedItem,...this._dropdownItems||[]],i=e[this.__getItemIndexByLabel(e,this._inputElementValue)];if(this.allowCustomValue&&!i){const s=this._inputElementValue;this._lastCustomValue=s;const o=new CustomEvent("custom-value-set",{detail:s,composed:!0,cancelable:!0,bubbles:!0});this.dispatchEvent(o),o.defaultPrevented||(this.value=s)}else!this.allowCustomValue&&!this.opened&&i?this.value=this._getItemValue(i):this._revertInputValueToValue()}this._detectAndDispatchChange(),this._clearSelectionRange(),this._clearFilter()}_onInput(e){const i=this._inputElementValue,s={};this.filter===i?this._filterChanged(this.filter):s.filter=i,!this.opened&&!this._isClearButton(e)&&!this.autoOpenDisabled&&(s.opened=!0),this.setProperties(s)}_onChange(e){e.stopPropagation()}_itemLabelPathChanged(e){typeof e!="string"&&console.error("You should set itemLabelPath to a valid string")}_filterChanged(e){this._scrollIntoView(0),this._focusedIndex=-1,this.items?this.filteredItems=this._filterItems(this.items,e):this._filteredItemsChanged(this.filteredItems)}_revertInputValue(){this.filter!==""?this._inputElementValue=this.filter:this._revertInputValueToValue(),this._clearSelectionRange()}_revertInputValueToValue(){this.allowCustomValue&&!this.selectedItem?this._inputElementValue=this.value:this._inputElementValue=this._getItemLabel(this.selectedItem)}_selectedItemChanged(e){if(e==null)this.filteredItems&&(this.allowCustomValue||(this.value=""),this._toggleHasValue(this._hasValue),this._inputElementValue=this.value);else{const i=this._getItemValue(e);if(this.value!==i&&(this.value=i,this.value!==i))return;this._toggleHasValue(!0),this._inputElementValue=this._getItemLabel(e)}}_valueChanged(e,i){e===""&&i===void 0||(Co(e)?(this._getItemValue(this.selectedItem)!==e&&this._selectItemForValue(e),!this.selectedItem&&this.allowCustomValue&&(this._inputElementValue=e),this._toggleHasValue(this._hasValue)):this.selectedItem=null,this._clearFilter(),this._lastCommittedValue=void 0)}_detectAndDispatchChange(){document.hasFocus()&&this.validate(),this.value!==this._lastCommittedValue&&(this.dispatchEvent(new CustomEvent("change",{bubbles:!0})),this._lastCommittedValue=this.value)}_itemsChanged(e,i){this._ensureItemsOrDataProvider(()=>{this.items=i}),e?this.filteredItems=e.slice(0):i&&(this.filteredItems=null)}_filteredItemsChanged(e){this._setDropdownItems(e)}_filterItems(e,i){return e&&e.filter(o=>(i=i?i.toString().toLowerCase():"",this._getItemLabel(o).toString().toLowerCase().indexOf(i)>-1))}_selectItemForValue(e){const i=this.__getItemIndexByValue(this.filteredItems,e),s=this.selectedItem;i>=0?this.selectedItem=this.filteredItems[i]:this.dataProvider&&this.selectedItem===void 0?this.selectedItem=void 0:this.selectedItem=null,this.selectedItem===null&&s===null&&this._selectedItemChanged(this.selectedItem)}_setDropdownItems(e){const i=this._dropdownItems;this._dropdownItems=e;const s=i?i[this._focusedIndex]:null,o=this.__getItemIndexByValue(e,this.value);(this.selectedItem===null||this.selectedItem===void 0)&&o>=0&&(this.selectedItem=e[o]);const n=this.__getItemIndexByValue(e,this._getItemValue(s));n>-1?this._focusedIndex=n:this._focusedIndex=this.__getItemIndexByLabel(e,this.filter)}_getItemElements(){return Array.from(this._scroller.querySelectorAll(`${this._tagNamePrefix}-item`))}_scrollIntoView(e){this._scroller&&this._scroller.scrollIntoView(e)}__getItemIndexByValue(e,i){return!e||!Co(i)?-1:So(e,s=>this._getItemValue(s)===i)}__getItemIndexByLabel(e,i){return!e||!i?-1:So(e,s=>this._getItemLabel(s).toString().toLowerCase()===i.toString().toLowerCase())}_overlaySelectedItemChanged(e){e.stopPropagation(),!(e.detail.item instanceof lt)&&this.opened&&(this._focusedIndex=this.filteredItems.indexOf(e.detail.item),this.close())}_setFocused(e){if(super._setFocused(e),!e&&!this.readonly&&!this._closeOnBlurIsPrevented){if(!this.opened&&this.allowCustomValue&&this._inputElementValue===this._lastCustomValue){delete this._lastCustomValue;return}if(is()){this._closeOrCommit();return}this.opened?this._overlayOpened||this.close():this._commitValue()}}_shouldRemoveFocus(e){return e.relatedTarget&&e.relatedTarget.localName===`${this._tagNamePrefix}-item`?!1:e.relatedTarget===this._overlayElement?(e.composedPath()[0].focus(),!1):!0}_onTouchend(e){!this.clearElement||e.composedPath()[0]!==this.clearElement||(e.preventDefault(),this._onClearAction())}};/**
|
|
2637
2637
|
* @license
|
|
2638
2638
|
* Copyright (c) 2015 - 2024 Vaadin Ltd.
|
|
2639
2639
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2640
|
-
*/ue("vaadin-combo-box",
|
|
2640
|
+
*/ue("vaadin-combo-box",Np,{moduleId:"vaadin-combo-box-styles"});class Hp extends Mp(Dp(Ap(Ep(Sr(op(jt)))))){static get is(){return"vaadin-combo-box"}static get template(){return Ut`
|
|
2641
2641
|
<style>
|
|
2642
2642
|
:host([opened]) {
|
|
2643
2643
|
pointer-events: auto;
|
|
@@ -2682,7 +2682,7 @@ try {
|
|
|
2682
2682
|
></vaadin-combo-box-overlay>
|
|
2683
2683
|
|
|
2684
2684
|
<slot name="tooltip"></slot>
|
|
2685
|
-
`}static get properties(){return{_positionTarget:{type:Object}}}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new
|
|
2685
|
+
`}static get properties(){return{_positionTarget:{type:Object}}}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new Cp(this,t=>{this._setInputElement(t),this._setFocusElement(t),this.stateTarget=t,this.ariaTarget=t})),this.addController(new Sp(this.inputElement,this._labelController)),this._tooltipController=new ap(this),this.addController(this._tooltipController),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this._tooltipController.setShouldShow(t=>!t.opened),this._positionTarget=this.shadowRoot.querySelector('[part="input-field"]'),this._toggleElement=this.$.toggleButton}_onClearButtonClick(t){t.stopPropagation(),super._onClearButtonClick(t)}_onHostClick(t){const e=t.composedPath();(e.includes(this._labelNode)||e.includes(this._positionTarget))&&super._onHostClick(t)}}ct(Hp);function zp(r){ll(r,"svelte-1es5rr2",'*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.GeneralPlayerForgotPasswordForm{height:auto}.GeneralPlayerForgotPasswordForm .ModalLoaderWrapper{display:flex;height:100%;align-items:center}.GeneralPlayerForgotPasswordForm .ModalLoader{display:block;width:80px;height:80px;margin:0 auto}.GeneralPlayerForgotPasswordForm .ModalLoader:after{content:" ";display:block;width:64px;height:64px;margin:8px;border-radius:50%;border:6px solid var(--emw--registration-color-primary, var(--emw--color-primary, #22b04e));border-color:var(--emw--registration-color-primary, var(--emw--color-primary, #22b04e)) transparent var(--emw--registration-color-primary, var(--emw--color-primary, #22b04e)) transparent;animation:Loader 1.2s linear infinite}.backButtonForgotPassword{display:inline-flex;color:var(--emw--registration-typography, var(--emw--color-contrast, #07072a));height:24px;line-height:24px;border-radius:5px;border:none;background:transparent;padding:0;text-transform:uppercase;font-size:16px;cursor:pointer;margin-bottom:30px}.backButtonForgotPassword svg{width:24px;height:24px;margin-right:20px;fill:var(--emw--registration-color-primary, var(--emw--color-primary, #22b04e))}.FormContainer{width:100%}.FormForgotPassword{background:var(--emw--registration-color-bg, var(--emw--color-gray-50, #f9f8f8))}.FormHeaderTitle{color:var(--emw--registration-typography, var(--emw--color-contrast, #07072a));font-size:20px;font-weight:300;padding:0;text-transform:uppercase;margin:0}.FormHeaderSubtitle{color:var(--emw--registration-typography, var(--emw--color-contrast, #07072a));font-weight:300;padding-top:14px}.FormRequired{color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.ForgotPasswordError{color:var(--emw--color-error, var(--emw--color-red, #ed0909));font-size:10px;line-height:10px;margin-top:10px}.FormContent{padding-top:20px}.NewPasswordSuccess{display:flex;flex-direction:column;flex-wrap:nowrap;justify-content:space-around;align-items:center}.NewPasswordSuccess h4{margin-top:10px;color:var(--emw--color-valid, var(--emw--color-green, #48952a));font-size:28px;font-weight:500;padding:0;text-transform:uppercase}.NewPasswordSuccess p{text-align:center;font-size:16px;color:var(--emw--registration-typography, var(--emw--color-contrast, #07072a));text-transform:initial;padding:15px 0;margin-bottom:110px}.TogglePasswordVisibility{height:19px;position:absolute;right:8px;top:34px;cursor:pointer}.TogglePasswordVisibility.InvalidToggle path,.TogglePasswordVisibility.InvalidToggle circle,.TogglePasswordVisibility.InvalidToggle rect{fill:var(--emw--registration-color-primary, var(--emw--color-primary, #22b04e))}.TogglePasswordVisibility path,.TogglePasswordVisibility circle,.TogglePasswordVisibility rect{fill:var(--emw--registration-contrast, var(--emw--color-gray-300, #58586b))}.ResetPasswordByEmail,.NewPassword,.ConfirmPassword{color:var(--emw--registration-contrast, var(--emw--color-gray-300, #58586b));display:flex;flex-direction:column;padding-bottom:20px;position:relative}.ResetPasswordByEmail .dobFormatError,.NewPassword .dobFormatError,.ConfirmPassword .dobFormatError{padding:20px;width:100%;text-align:center;color:var(--emw--color-error, #ed0909)}.ResetPasswordByEmail .DobContainer,.NewPassword .DobContainer,.ConfirmPassword .DobContainer{display:flex;flex-direction:row;justify-content:space-between;align-items:center}.ResetPasswordByEmail .DobContainer .datePickerBox,.NewPassword .DobContainer .datePickerBox,.ConfirmPassword .DobContainer .datePickerBox{width:100%;padding:10px}.ResetPasswordByEmail .DobContainer .datePickerBox input,.NewPassword .DobContainer .datePickerBox input,.ConfirmPassword .DobContainer .datePickerBox input{border:0px;background:transparent}.ResetPasswordByEmail .DobContainer.Mobile,.NewPassword .DobContainer.Mobile,.ConfirmPassword .DobContainer.Mobile{flex-direction:column}.ResetPasswordByEmail label,.NewPassword label,.ConfirmPassword label{font-size:14px;font-weight:300;padding-bottom:5px}.ResetPasswordByEmail input,.NewPassword input,.ConfirmPassword input{width:100%;height:44px;border:1px solid var(--emw--color-gray-100, #e6e6e6);border-radius:5px;padding:5px;font-size:14px;box-sizing:border-box;padding:5px 15px;font-size:16px;line-height:18px}.ResetPasswordByEmail.InvalidField input,.NewPassword.InvalidField input,.ConfirmPassword.InvalidField input{border:1px solid var(--emw--registration-color-primary, var(--emw--color-primary, #22b04e));background:var(--emw--color-pale, #fbecf4);color:var(--emw--registration-color-primary, var(--emw--color-primary, #22b04e))}.resetPasswordButton{color:var(--emw--button-typography, var(--emw--color-white, #ffffff));background:var(--emw--registration-color-primary, var(--emw--color-primary, #22b04e));border:1px solid var(--emw--registration-color-primary, var(--emw--color-primary, #22b04e));border-radius:5px;width:100%;height:60px;padding:0;text-transform:uppercase;font-size:18px;cursor:pointer}.resetPasswordButton[disabled]{background:var(--emw--color-gray-100, #e6e6e6);border:1px solid var(--emw--color-gray-150, #828282);cursor:not-allowed}.ResetPasswordByEmail,.NewPassword,.ConfirmPassword{padding-bottom:30px}.ResetPasswordByEmail .InvalidInput{bottom:-3px}.InvalidInput{color:var(--emw--color-error, var(--emw--color-red, #ed0909));font-size:10px;position:absolute;bottom:10px;line-height:10px}.ErrorMessage{margin:0 0 15px 0;font-size:12px;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.FormForgotPassword{padding:50px}.FormMobileContainer{height:100%;background-color:var(--emw--color-gray-50, #f9f8f8)}.FormMobileContainer .resetPasswordButton,.FormMobileContainer .ResetPasswordByEmail input{max-width:unset}.FormMobileContainer{height:100%}.FormMobileContainer .FormForgotPassword{padding:40px 20px}.FormMobileContainer .resetPasswordButton,.FormMobileContainer .UserContainer input{max-width:unset}input::-ms-reveal,input::-ms-clear{display:none}@keyframes Loader{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}')}function Ao(r,t,e){const i=r.slice();return i[90]=t[e],i}function Fp(r){let t,e;function i(n,a){if(n[5])return Gp;if(n[7])return jp;if(n[9])return Up;if(n[10])return $p}let s=i(r),o=s&&s(r);return{c(){t=P("div"),o&&o.c(),c(t,"class",e="FormContainer "+(r[11]?"FormMobileContainer":""))},m(n,a){D(n,t,a),o&&o.m(t,null)},p(n,a){s===(s=i(n))&&o?o.p(n,a):(o&&o.d(1),o=s&&s(n),o&&(o.c(),o.m(t,null))),a[0]&2048&&e!==(e="FormContainer "+(n[11]?"FormMobileContainer":""))&&c(t,"class",e)},d(n){n&&B(t),o&&o.d()}}}function Vp(r){let t;return{c(){t=P("div"),t.innerHTML='<div class="ModalLoader"></div>',c(t,"class","ModalLoaderWrapper")},m(e,i){D(e,t,i)},p:Ee,d(e){e&&B(t)}}}function $p(r){let t,e,i,s,o,n,a,l,d,h,u,f,m,_,b,w=r[30]("forgotChangePasswordTitle")+"",y,v,C,E=r[30]("forgotChangePasswordDescription")+"",S,$,L,pe=r[30]("forgotChangePasswordLogin")+"",q,ye,Y;return{c(){t=P("div"),e=P("div"),i=P("div"),s=x("svg"),o=x("defs"),n=x("style"),a=N(`.a {
|
|
2686
2686
|
fill: var(--emw--color-valid, var(--emw--color-green, #48952a));
|
|
2687
2687
|
}
|
|
2688
2688
|
.b,
|
|
@@ -2696,7 +2696,7 @@ try {
|
|
|
2696
2696
|
.c {
|
|
2697
2697
|
stroke: none;
|
|
2698
2698
|
}
|
|
2699
|
-
`),l=x("g"),d=x("g"),h=x("path"),u=x("g"),f=x("circle"),m=x("circle"),_=V(),b=P("h4"),y=N(w),v=V(),C=P("p"),S=N(E),$=V(),L=P("button"),q=N(pe),c(h,"class","a"),c(h,"d","M16.1,28,0,11.9,3.267,8.633,16.1,21.233,37.333,0,40.6,3.267Z"),c(h,"transform","translate(264.272 482.563)"),c(d,"transform","translate(-7360.574 8503.438)"),c(f,"class","c"),c(f,"cx","30"),c(f,"cy","30"),c(f,"r","30"),c(m,"class","d"),c(m,"cx","30"),c(m,"cy","30"),c(m,"r","29"),c(u,"class","b"),c(u,"transform","translate(-7106 8970)"),c(l,"transform","translate(7106 -8970)"),c(s,"xmlns","http://www.w3.org/2000/svg"),c(s,"width","60"),c(s,"height","60"),c(s,"viewBox","0 0 60 60"),c(i,"class","NewPasswordSuccess"),c(i,"part","NewPasswordSuccess"),c(L,"class","resetPasswordButton"),c(L,"part","resetPasswordButton"),c(e,"class","FormContent"),c(e,"part","FormContent"),c(t,"class","FormForgotPassword"),c(t,"part","FormForgotPassword")},m(re,le){D(re,t,le),p(t,e),p(e,i),p(i,s),p(s,o),p(o,n),p(n,a),p(s,l),p(l,d),p(d,h),p(l,u),p(u,f),p(u,m),p(i,_),p(i,b),p(b,y),p(i,v),p(i,C),p(C,S),p(e,$),p(e,L),p(L,q),ye||(Y=ne(L,"click",r[68]),ye=!0)},p(re,le){le[0]&1073741824&&w!==(w=re[30]("forgotChangePasswordTitle")+"")&&J(y,w),le[0]&1073741824&&E!==(E=re[30]("forgotChangePasswordDescription")+"")&&J(S,E),le[0]&1073741824&&pe!==(pe=re[30]("forgotChangePasswordLogin")+"")&&J(q,pe)},d(re){re&&B(t),ye=!1,Y()}}}function
|
|
2699
|
+
`),l=x("g"),d=x("g"),h=x("path"),u=x("g"),f=x("circle"),m=x("circle"),_=V(),b=P("h4"),y=N(w),v=V(),C=P("p"),S=N(E),$=V(),L=P("button"),q=N(pe),c(h,"class","a"),c(h,"d","M16.1,28,0,11.9,3.267,8.633,16.1,21.233,37.333,0,40.6,3.267Z"),c(h,"transform","translate(264.272 482.563)"),c(d,"transform","translate(-7360.574 8503.438)"),c(f,"class","c"),c(f,"cx","30"),c(f,"cy","30"),c(f,"r","30"),c(m,"class","d"),c(m,"cx","30"),c(m,"cy","30"),c(m,"r","29"),c(u,"class","b"),c(u,"transform","translate(-7106 8970)"),c(l,"transform","translate(7106 -8970)"),c(s,"xmlns","http://www.w3.org/2000/svg"),c(s,"width","60"),c(s,"height","60"),c(s,"viewBox","0 0 60 60"),c(i,"class","NewPasswordSuccess"),c(i,"part","NewPasswordSuccess"),c(L,"class","resetPasswordButton"),c(L,"part","resetPasswordButton"),c(e,"class","FormContent"),c(e,"part","FormContent"),c(t,"class","FormForgotPassword"),c(t,"part","FormForgotPassword")},m(re,le){D(re,t,le),p(t,e),p(e,i),p(i,s),p(s,o),p(o,n),p(n,a),p(s,l),p(l,d),p(d,h),p(l,u),p(u,f),p(u,m),p(i,_),p(i,b),p(b,y),p(i,v),p(i,C),p(C,S),p(e,$),p(e,L),p(L,q),ye||(Y=ne(L,"click",r[68]),ye=!0)},p(re,le){le[0]&1073741824&&w!==(w=re[30]("forgotChangePasswordTitle")+"")&&J(y,w),le[0]&1073741824&&E!==(E=re[30]("forgotChangePasswordDescription")+"")&&J(S,E),le[0]&1073741824&&pe!==(pe=re[30]("forgotChangePasswordLogin")+"")&&J(q,pe)},d(re){re&&B(t),ye=!1,Y()}}}function Up(r){let t,e,i,s,o,n,a,l,d,h=r[30]("forgotNewPasswordPassword")+"",u,f,m,_,b,w,y,v,C,E,S,$=r[30]("forgotNewPasswordConfirmPassword")+"",L,pe,q,ye,Y,re,le,we,Se,Z,_e=r[30]("forgotNewPasswordButton")+"",xe,ce,ge,Ae,I=r[26]&&To(r);function U(se,K){return se[20]?qp:Wp}let F=U(r),G=F(r),W=r[16]&&Io(r);function de(se,K){return se[21]?Jp:Xp}let A=de(r),H=A(r),ie=r[17]&&Oo(r),he=r[24]&&No(r);return{c(){t=P("div"),e=P("div"),i=P("h4"),s=N(r[25]),o=V(),I&&I.c(),n=V(),a=P("form"),l=P("div"),d=P("label"),u=N(h),f=N(":"),m=P("span"),m.textContent="*",_=V(),b=P("input"),y=V(),G.c(),v=V(),W&&W.c(),C=V(),E=P("div"),S=P("label"),L=N($),pe=N(":"),q=P("span"),q.textContent="*",ye=V(),Y=P("input"),re=V(),H.c(),le=V(),ie&&ie.c(),we=V(),he&&he.c(),Se=V(),Z=P("button"),xe=N(_e),c(i,"class","FormHeaderTitle"),c(i,"part","FormHeaderTitle"),c(e,"class","FormHeader"),c(e,"part","FormHeader"),c(m,"class","FormRequired"),c(m,"part","FormRequired"),c(d,"for","NewPassword"),c(b,"type","password"),c(b,"id","new-password"),c(b,"autocomplete",w=r[2]?"new-password":"off"),c(l,"class","NewPassword"),c(l,"part","NewPassword"),c(q,"class","FormRequired"),c(q,"part","FormRequired"),c(S,"for","RetypePassword"),c(Y,"type","password"),c(Y,"id","RetypePassword"),c(E,"class","ConfirmPassword"),c(E,"part","ConfirmPassword"),c(Z,"class","resetPasswordButton"),c(Z,"part","resetPasswordButton"),Z.disabled=ce=!r[15],c(a,"class","FormContent"),c(a,"part","FormContent"),c(t,"class","FormForgotPassword test"),c(t,"part","FormForgotPassword test")},m(se,K){D(se,t,K),p(t,e),p(e,i),p(i,s),p(e,o),I&&I.m(e,null),p(t,n),p(t,a),p(a,l),p(l,d),p(d,u),p(d,f),p(d,m),p(l,_),p(l,b),Je(b,r[22]),r[60](b),p(l,y),G.m(l,null),p(l,v),W&&W.m(l,null),p(a,C),p(a,E),p(E,S),p(S,L),p(S,pe),p(S,q),p(E,ye),p(E,Y),Je(Y,r[23]),r[64](Y),p(E,re),H.m(E,null),p(E,le),ie&&ie.m(E,null),p(a,we),he&&he.m(a,null),p(a,Se),p(a,Z),p(Z,xe),ge||(Ae=[ne(b,"input",r[59]),ne(b,"keyup",function(){It(r[40](r[16],r[22],r[18]))&&r[40](r[16],r[22],r[18]).apply(this,arguments)}),ne(Y,"input",r[63]),ne(Y,"keyup",function(){It(r[40](r[17],r[23],r[19]))&&r[40](r[17],r[23],r[19]).apply(this,arguments)}),ne(Z,"click",r[67])],ge=!0)},p(se,K){r=se,K[0]&33554432&&J(s,r[25]),r[26]?I?I.p(r,K):(I=To(r),I.c(),I.m(e,null)):I&&(I.d(1),I=null),K[0]&1073741824&&h!==(h=r[30]("forgotNewPasswordPassword")+"")&&J(u,h),K[0]&4&&w!==(w=r[2]?"new-password":"off")&&c(b,"autocomplete",w),K[0]&4194304&&b.value!==r[22]&&Je(b,r[22]),F===(F=U(r))&&G?G.p(r,K):(G.d(1),G=F(r),G&&(G.c(),G.m(l,v))),r[16]?W?W.p(r,K):(W=Io(r),W.c(),W.m(l,null)):W&&(W.d(1),W=null),K[0]&1073741824&&$!==($=r[30]("forgotNewPasswordConfirmPassword")+"")&&J(L,$),K[0]&8388608&&Y.value!==r[23]&&Je(Y,r[23]),A===(A=de(r))&&H?H.p(r,K):(H.d(1),H=A(r),H&&(H.c(),H.m(E,le))),r[17]?ie?ie.p(r,K):(ie=Oo(r),ie.c(),ie.m(E,null)):ie&&(ie.d(1),ie=null),r[24]?he?he.p(r,K):(he=No(r),he.c(),he.m(a,Se)):he&&(he.d(1),he=null),K[0]&1073741824&&_e!==(_e=r[30]("forgotNewPasswordButton")+"")&&J(xe,_e),K[0]&32768&&ce!==(ce=!r[15])&&(Z.disabled=ce)},d(se){se&&B(t),I&&I.d(),r[60](null),G.d(),W&&W.d(),r[64](null),H.d(),ie&&ie.d(),he&&he.d(),ge=!1,$e(Ae)}}}function jp(r){let t,e,i,s,o,n,a,l,d,h,u,f,m,_,b,w=r[30]("forgotPasswordSuccess")+"",y,v,C,E=r[30]("forgotPasswordSuccessDescription")+"",S;return{c(){t=P("div"),e=P("div"),i=P("div"),s=x("svg"),o=x("defs"),n=x("style"),a=N(`.a {
|
|
2700
2700
|
fill: #16ce16;
|
|
2701
2701
|
}
|
|
2702
2702
|
.b,
|
|
@@ -2710,19 +2710,19 @@ try {
|
|
|
2710
2710
|
.c {
|
|
2711
2711
|
stroke: none;
|
|
2712
2712
|
}
|
|
2713
|
-
`),l=x("g"),d=x("g"),h=x("path"),u=x("g"),f=x("circle"),m=x("circle"),_=V(),b=P("h4"),y=N(w),v=V(),C=P("p"),S=N(E),c(h,"class","a"),c(h,"d","M16.1,28,0,11.9,3.267,8.633,16.1,21.233,37.333,0,40.6,3.267Z"),c(h,"transform","translate(264.272 482.563)"),c(d,"transform","translate(-7360.574 8503.438)"),c(f,"class","c"),c(f,"cx","30"),c(f,"cy","30"),c(f,"r","30"),c(m,"class","d"),c(m,"cx","30"),c(m,"cy","30"),c(m,"r","29"),c(u,"class","b"),c(u,"transform","translate(-7106 8970)"),c(l,"transform","translate(7106 -8970)"),c(s,"xmlns","http://www.w3.org/2000/svg"),c(s,"width","60"),c(s,"height","60"),c(s,"viewBox","0 0 60 60"),c(i,"class","NewPasswordSuccess"),c(i,"part","NewPasswordSuccess"),c(e,"class","FormContent"),c(e,"part","FormContent"),c(t,"class","FormForgotPassword"),c(t,"part","FormForgotPassword")},m($,L){D($,t,L),p(t,e),p(e,i),p(i,s),p(s,o),p(o,n),p(n,a),p(s,l),p(l,d),p(d,h),p(l,u),p(u,f),p(u,m),p(i,_),p(i,b),p(b,y),p(i,v),p(i,C),p(C,S)},p($,L){L[0]&1073741824&&w!==(w=$[30]("forgotPasswordSuccess")+"")&&J(y,w),L[0]&1073741824&&E!==(E=$[30]("forgotPasswordSuccessDescription")+"")&&J(S,E)},d($){$&&B(t)}}}function
|
|
2713
|
+
`),l=x("g"),d=x("g"),h=x("path"),u=x("g"),f=x("circle"),m=x("circle"),_=V(),b=P("h4"),y=N(w),v=V(),C=P("p"),S=N(E),c(h,"class","a"),c(h,"d","M16.1,28,0,11.9,3.267,8.633,16.1,21.233,37.333,0,40.6,3.267Z"),c(h,"transform","translate(264.272 482.563)"),c(d,"transform","translate(-7360.574 8503.438)"),c(f,"class","c"),c(f,"cx","30"),c(f,"cy","30"),c(f,"r","30"),c(m,"class","d"),c(m,"cx","30"),c(m,"cy","30"),c(m,"r","29"),c(u,"class","b"),c(u,"transform","translate(-7106 8970)"),c(l,"transform","translate(7106 -8970)"),c(s,"xmlns","http://www.w3.org/2000/svg"),c(s,"width","60"),c(s,"height","60"),c(s,"viewBox","0 0 60 60"),c(i,"class","NewPasswordSuccess"),c(i,"part","NewPasswordSuccess"),c(e,"class","FormContent"),c(e,"part","FormContent"),c(t,"class","FormForgotPassword"),c(t,"part","FormForgotPassword")},m($,L){D($,t,L),p(t,e),p(e,i),p(i,s),p(s,o),p(o,n),p(n,a),p(s,l),p(l,d),p(d,h),p(l,u),p(u,f),p(u,m),p(i,_),p(i,b),p(b,y),p(i,v),p(i,C),p(C,S)},p($,L){L[0]&1073741824&&w!==(w=$[30]("forgotPasswordSuccess")+"")&&J(y,w),L[0]&1073741824&&E!==(E=$[30]("forgotPasswordSuccessDescription")+"")&&J(S,E)},d($){$&&B(t)}}}function Gp(r){let t,e,i,s,o,n,a,l,d,h=r[30]("goToLogin")+"",u,f,m,_,b,w,y,v,C,E=r[30]("forgotPasswordEmail")+"",S,$,L,pe,q,ye,Y,re,le,we,Se,Z,_e=r[30]("forgotPasswordReset")+"",xe,ce,ge,Ae,I=r[26]&&ko(r),U=r[12]&&Mo(r),F=r[6]&&Lo(r);function G(A,H){return A[28]?Kp:Qp}let W=G(r),de=W(r);return{c(){t=P("div"),e=P("div"),i=P("button"),s=x("svg"),o=x("defs"),n=x("style"),a=N(`.a {
|
|
2714
2714
|
fill: var(--emw--registration-color-primary, var(--emw--color-primary, #22b04e));
|
|
2715
2715
|
}
|
|
2716
|
-
`),l=x("path"),d=V(),u=N(h),f=V(),m=P("h4"),_=N(r[25]),b=V(),I&&I.c(),w=V(),y=P("form"),v=P("div"),C=P("label"),S=N(E),$=N(":"),L=P("span"),L.textContent="*",pe=V(),q=P("input"),ye=V(),U&&U.c(),Y=V(),F&&F.c(),re=V(),de.c(),Se=V(),Z=P("button"),xe=N(_e),c(l,"class","a"),c(l,"d","M12,0,9.818,2.182l8.26,8.26H0v3.117H18.078l-8.26,8.26L12,24,24,12Z"),c(l,"transform","translate(24 24) rotate(180)"),c(s,"xmlns","http://www.w3.org/2000/svg"),c(s,"viewBox","0 0 24 24"),c(i,"class","backButtonForgotPassword"),c(m,"class","FormHeaderTitle"),c(m,"part","FormHeaderTitle"),c(e,"class","FormHeader"),c(L,"class","FormRequired"),c(L,"part","FormRequired"),c(C,"for","ResetPasswordByEmail"),c(q,"type","text"),c(q,"id","ResetPasswordByEmail"),c(v,"class",le="ResetPasswordByEmail "+(r[12]?"InvalidField":"")),c(v,"part",we="ResetPasswordByEmail "+(r[12]?"InvalidField":"")),c(Z,"class","resetPasswordButton"),c(Z,"part","resetPasswordButton"),Z.disabled=ce=!r[13],c(y,"class","FormContent"),c(y,"part","FormContent"),c(t,"class","FormForgotPassword")},m(A,H){D(A,t,H),p(t,e),p(e,i),p(i,s),p(s,o),p(o,n),p(n,a),p(s,l),p(i,d),p(i,u),p(e,f),p(e,m),p(m,_),p(e,b),I&&I.m(e,null),p(t,w),p(t,y),p(y,v),p(v,C),p(C,S),p(C,$),p(C,L),p(v,pe),p(v,q),Je(q,r[8]),p(v,ye),U&&U.m(v,null),p(v,Y),F&&F.m(v,null),p(v,re),de.m(v,null),p(y,Se),p(y,Z),p(Z,xe),ge||(Ae=[ne(i,"click",r[53]),ne(q,"input",r[54]),ne(q,"input",r[34]),ne(Z,"click",r[58])],ge=!0)},p(A,H){H[0]&1073741824&&h!==(h=A[30]("goToLogin")+"")&&J(u,h),H[0]&33554432&&J(_,A[25]),A[26]?I?I.p(A,H):(I=
|
|
2716
|
+
`),l=x("path"),d=V(),u=N(h),f=V(),m=P("h4"),_=N(r[25]),b=V(),I&&I.c(),w=V(),y=P("form"),v=P("div"),C=P("label"),S=N(E),$=N(":"),L=P("span"),L.textContent="*",pe=V(),q=P("input"),ye=V(),U&&U.c(),Y=V(),F&&F.c(),re=V(),de.c(),Se=V(),Z=P("button"),xe=N(_e),c(l,"class","a"),c(l,"d","M12,0,9.818,2.182l8.26,8.26H0v3.117H18.078l-8.26,8.26L12,24,24,12Z"),c(l,"transform","translate(24 24) rotate(180)"),c(s,"xmlns","http://www.w3.org/2000/svg"),c(s,"viewBox","0 0 24 24"),c(i,"class","backButtonForgotPassword"),c(m,"class","FormHeaderTitle"),c(m,"part","FormHeaderTitle"),c(e,"class","FormHeader"),c(L,"class","FormRequired"),c(L,"part","FormRequired"),c(C,"for","ResetPasswordByEmail"),c(q,"type","text"),c(q,"id","ResetPasswordByEmail"),c(v,"class",le="ResetPasswordByEmail "+(r[12]?"InvalidField":"")),c(v,"part",we="ResetPasswordByEmail "+(r[12]?"InvalidField":"")),c(Z,"class","resetPasswordButton"),c(Z,"part","resetPasswordButton"),Z.disabled=ce=!r[13],c(y,"class","FormContent"),c(y,"part","FormContent"),c(t,"class","FormForgotPassword")},m(A,H){D(A,t,H),p(t,e),p(e,i),p(i,s),p(s,o),p(o,n),p(n,a),p(s,l),p(i,d),p(i,u),p(e,f),p(e,m),p(m,_),p(e,b),I&&I.m(e,null),p(t,w),p(t,y),p(y,v),p(v,C),p(C,S),p(C,$),p(C,L),p(v,pe),p(v,q),Je(q,r[8]),p(v,ye),U&&U.m(v,null),p(v,Y),F&&F.m(v,null),p(v,re),de.m(v,null),p(y,Se),p(y,Z),p(Z,xe),ge||(Ae=[ne(i,"click",r[53]),ne(q,"input",r[54]),ne(q,"input",r[34]),ne(Z,"click",r[58])],ge=!0)},p(A,H){H[0]&1073741824&&h!==(h=A[30]("goToLogin")+"")&&J(u,h),H[0]&33554432&&J(_,A[25]),A[26]?I?I.p(A,H):(I=ko(A),I.c(),I.m(e,null)):I&&(I.d(1),I=null),H[0]&1073741824&&E!==(E=A[30]("forgotPasswordEmail")+"")&&J(S,E),H[0]&256&&q.value!==A[8]&&Je(q,A[8]),A[12]?U?U.p(A,H):(U=Mo(A),U.c(),U.m(v,Y)):U&&(U.d(1),U=null),A[6]?F?F.p(A,H):(F=Lo(A),F.c(),F.m(v,re)):F&&(F.d(1),F=null),W===(W=G(A))&&de?de.p(A,H):(de.d(1),de=W(A),de&&(de.c(),de.m(v,null))),H[0]&4096&&le!==(le="ResetPasswordByEmail "+(A[12]?"InvalidField":""))&&c(v,"class",le),H[0]&4096&&we!==(we="ResetPasswordByEmail "+(A[12]?"InvalidField":""))&&c(v,"part",we),H[0]&1073741824&&_e!==(_e=A[30]("forgotPasswordReset")+"")&&J(xe,_e),H[0]&8192&&ce!==(ce=!A[13])&&(Z.disabled=ce)},d(A){A&&B(t),I&&I.d(),U&&U.d(),F&&F.d(),de.d(),ge=!1,$e(Ae)}}}function To(r){let t,e;return{c(){t=P("p"),e=N(r[26]),c(t,"class","FormHeaderSubtitle"),c(t,"part","FormHeaderSubtitle")},m(i,s){D(i,t,s),p(t,e)},p(i,s){s[0]&67108864&&J(e,i[26])},d(i){i&&B(t)}}}function Wp(r){let t,e,i,s,o,n,a,l,d,h;return{c(){t=x("svg"),e=x("defs"),i=x("style"),s=N(`.a {
|
|
2717
2717
|
fill: var(--emw--color-white, #ffffff);
|
|
2718
2718
|
}
|
|
2719
|
-
`),o=x("g"),n=x("path"),a=x("circle"),c(n,"class","a"),c(n,"d","M23.541,38.332a11.467,11.467,0,0,1-4.886-1.611,34.413,34.413,0,0,1-3.976-2.469,1.1,1.1,0,0,1-.494-.936,1.21,1.21,0,0,1,.442-.962A37.986,37.986,0,0,1,18.6,29.625a16.06,16.06,0,0,1,2.521-1.248,6.862,6.862,0,0,1,2.417-.546,6.862,6.862,0,0,1,2.417.546,20.541,20.541,0,0,1,2.547,1.248,45.872,45.872,0,0,1,4.054,2.729,1.159,1.159,0,0,1,.468.962,1.067,1.067,0,0,1-.52.936,36.353,36.353,0,0,1-4.054,2.469A11.2,11.2,0,0,1,23.541,38.332Zm0-9.46a9.813,9.813,0,0,0-4.392,1.663,44.138,44.138,0,0,0-3.873,2.651.13.13,0,0,0,0,.208,36.5,36.5,0,0,0,3.873,2.391,10.372,10.372,0,0,0,4.392,1.481,11.051,11.051,0,0,0,4.444-1.481,40.2,40.2,0,0,0,3.925-2.391.13.13,0,0,0,0-.208h0a34.132,34.132,0,0,0-3.925-2.651A10.072,10.072,0,0,0,23.541,28.872Z"),c(n,"transform","translate(0)"),c(a,"class","a"),c(a,"cx","2.779"),c(a,"cy","2.779"),c(a,"r","2.779"),c(a,"transform","translate(20.827 30.303)"),c(o,"transform","translate(-14.185 -27.832)"),c(t,"class",l="TogglePasswordVisibility "+(r[16]?"InvalidToggle":"")),c(t,"xmlns","http://www.w3.org/2000/svg"),c(t,"width","18.843"),c(t,"height","10.5"),c(t,"viewBox","0 0 18.843 10.5")},m(u,f){D(u,t,f),p(t,e),p(e,i),p(i,s),p(t,o),p(o,n),p(o,a),d||(h=ne(t,"click",r[62]),d=!0)},p(u,f){f[0]&65536&&l!==(l="TogglePasswordVisibility "+(u[16]?"InvalidToggle":""))&&c(t,"class",l)},d(u){u&&B(t),d=!1,h()}}}function
|
|
2719
|
+
`),o=x("g"),n=x("path"),a=x("circle"),c(n,"class","a"),c(n,"d","M23.541,38.332a11.467,11.467,0,0,1-4.886-1.611,34.413,34.413,0,0,1-3.976-2.469,1.1,1.1,0,0,1-.494-.936,1.21,1.21,0,0,1,.442-.962A37.986,37.986,0,0,1,18.6,29.625a16.06,16.06,0,0,1,2.521-1.248,6.862,6.862,0,0,1,2.417-.546,6.862,6.862,0,0,1,2.417.546,20.541,20.541,0,0,1,2.547,1.248,45.872,45.872,0,0,1,4.054,2.729,1.159,1.159,0,0,1,.468.962,1.067,1.067,0,0,1-.52.936,36.353,36.353,0,0,1-4.054,2.469A11.2,11.2,0,0,1,23.541,38.332Zm0-9.46a9.813,9.813,0,0,0-4.392,1.663,44.138,44.138,0,0,0-3.873,2.651.13.13,0,0,0,0,.208,36.5,36.5,0,0,0,3.873,2.391,10.372,10.372,0,0,0,4.392,1.481,11.051,11.051,0,0,0,4.444-1.481,40.2,40.2,0,0,0,3.925-2.391.13.13,0,0,0,0-.208h0a34.132,34.132,0,0,0-3.925-2.651A10.072,10.072,0,0,0,23.541,28.872Z"),c(n,"transform","translate(0)"),c(a,"class","a"),c(a,"cx","2.779"),c(a,"cy","2.779"),c(a,"r","2.779"),c(a,"transform","translate(20.827 30.303)"),c(o,"transform","translate(-14.185 -27.832)"),c(t,"class",l="TogglePasswordVisibility "+(r[16]?"InvalidToggle":"")),c(t,"xmlns","http://www.w3.org/2000/svg"),c(t,"width","18.843"),c(t,"height","10.5"),c(t,"viewBox","0 0 18.843 10.5")},m(u,f){D(u,t,f),p(t,e),p(e,i),p(i,s),p(t,o),p(o,n),p(o,a),d||(h=ne(t,"click",r[62]),d=!0)},p(u,f){f[0]&65536&&l!==(l="TogglePasswordVisibility "+(u[16]?"InvalidToggle":""))&&c(t,"class",l)},d(u){u&&B(t),d=!1,h()}}}function qp(r){let t,e,i,s,o,n,a,l,d,h,u,f,m,_,b,w;return{c(){t=x("svg"),e=x("defs"),i=x("style"),s=N(`.a {
|
|
2720
2720
|
fill: var(--emw--color-white, #ffffff);
|
|
2721
2721
|
}
|
|
2722
|
-
`),o=x("g"),n=x("circle"),a=x("g"),l=x("path"),d=x("path"),h=x("g"),u=x("path"),f=x("path"),m=x("rect"),c(n,"class","a"),c(n,"cx","0.05"),c(n,"cy","0.05"),c(n,"r","0.05"),c(n,"transform","translate(121.017 31.148)"),c(l,"class","a"),c(l,"d","M147.413,43.174a2.774,2.774,0,0,0-3.229-3.943Z"),c(l,"transform","translate(-142.164 -39.123)"),c(d,"class","a"),c(d,"d","M137.031,43.1a2.778,2.778,0,0,0,3.447,4.209Z"),c(d,"transform","translate(-136.413 -42.068)"),c(a,"transform","translate(117.499 27.37)"),c(u,"class","a"),c(u,"d","M122.538,42.061a7.043,7.043,0,0,1-2.325.53,10.373,10.373,0,0,1-4.393-1.482,36.509,36.509,0,0,1-3.873-2.391.13.13,0,0,1,0-.208,44.141,44.141,0,0,1,3.873-2.651c.394-.233.768-.437,1.13-.622l-.686-.838c-.322.167-.651.347-.99.55a37.989,37.989,0,0,0-3.977,2.729,1.21,1.21,0,0,0-.442.962,1.1,1.1,0,0,0,.494.936,34.416,34.416,0,0,0,3.977,2.469,11.468,11.468,0,0,0,4.886,1.611,8.427,8.427,0,0,0,3.039-.725Z"),c(u,"transform","translate(-110.856 -33.157)"),c(f,"class","a"),c(f,"d","M149.119,34.14a45.875,45.875,0,0,0-4.055-2.729,20.541,20.541,0,0,0-2.547-1.248,5.6,5.6,0,0,0-4.79-.017l.7.856a5.254,5.254,0,0,1,1.672-.346,10.072,10.072,0,0,1,4.445,1.663,34.132,34.132,0,0,1,3.925,2.651.13.13,0,0,1,0,.208,40.2,40.2,0,0,1-3.925,2.391c-.179.092-.352.176-.525.26l.684.835c.1-.054.2-.1.309-.159a36.356,36.356,0,0,0,4.055-2.469,1.067,1.067,0,0,0,.52-.936A1.159,1.159,0,0,0,149.119,34.14Z"),c(f,"transform","translate(-130.743 -29.617)"),c(h,"transform","translate(110.856 24.899)"),c(m,"class","a"),c(m,"width","0.972"),c(m,"height","15.861"),c(m,"rx","0.486"),c(m,"transform","translate(114.827 23.858) rotate(-39.315)"),c(o,"transform","translate(-110.856 -23.242)"),c(t,"class",_="TogglePasswordVisibility "+(r[16]?"InvalidToggle":"")),c(t,"xmlns","http://www.w3.org/2000/svg"),c(t,"width","18.844"),c(t,"height","12.887"),c(t,"viewBox","0 0 18.844 12.887")},m(y,v){D(y,t,v),p(t,e),p(e,i),p(i,s),p(t,o),p(o,n),p(o,a),p(a,l),p(a,d),p(o,h),p(h,u),p(h,f),p(o,m),b||(w=ne(t,"click",r[61]),b=!0)},p(y,v){v[0]&65536&&_!==(_="TogglePasswordVisibility "+(y[16]?"InvalidToggle":""))&&c(t,"class",_)},d(y){y&&B(t),b=!1,w()}}}function
|
|
2722
|
+
`),o=x("g"),n=x("circle"),a=x("g"),l=x("path"),d=x("path"),h=x("g"),u=x("path"),f=x("path"),m=x("rect"),c(n,"class","a"),c(n,"cx","0.05"),c(n,"cy","0.05"),c(n,"r","0.05"),c(n,"transform","translate(121.017 31.148)"),c(l,"class","a"),c(l,"d","M147.413,43.174a2.774,2.774,0,0,0-3.229-3.943Z"),c(l,"transform","translate(-142.164 -39.123)"),c(d,"class","a"),c(d,"d","M137.031,43.1a2.778,2.778,0,0,0,3.447,4.209Z"),c(d,"transform","translate(-136.413 -42.068)"),c(a,"transform","translate(117.499 27.37)"),c(u,"class","a"),c(u,"d","M122.538,42.061a7.043,7.043,0,0,1-2.325.53,10.373,10.373,0,0,1-4.393-1.482,36.509,36.509,0,0,1-3.873-2.391.13.13,0,0,1,0-.208,44.141,44.141,0,0,1,3.873-2.651c.394-.233.768-.437,1.13-.622l-.686-.838c-.322.167-.651.347-.99.55a37.989,37.989,0,0,0-3.977,2.729,1.21,1.21,0,0,0-.442.962,1.1,1.1,0,0,0,.494.936,34.416,34.416,0,0,0,3.977,2.469,11.468,11.468,0,0,0,4.886,1.611,8.427,8.427,0,0,0,3.039-.725Z"),c(u,"transform","translate(-110.856 -33.157)"),c(f,"class","a"),c(f,"d","M149.119,34.14a45.875,45.875,0,0,0-4.055-2.729,20.541,20.541,0,0,0-2.547-1.248,5.6,5.6,0,0,0-4.79-.017l.7.856a5.254,5.254,0,0,1,1.672-.346,10.072,10.072,0,0,1,4.445,1.663,34.132,34.132,0,0,1,3.925,2.651.13.13,0,0,1,0,.208,40.2,40.2,0,0,1-3.925,2.391c-.179.092-.352.176-.525.26l.684.835c.1-.054.2-.1.309-.159a36.356,36.356,0,0,0,4.055-2.469,1.067,1.067,0,0,0,.52-.936A1.159,1.159,0,0,0,149.119,34.14Z"),c(f,"transform","translate(-130.743 -29.617)"),c(h,"transform","translate(110.856 24.899)"),c(m,"class","a"),c(m,"width","0.972"),c(m,"height","15.861"),c(m,"rx","0.486"),c(m,"transform","translate(114.827 23.858) rotate(-39.315)"),c(o,"transform","translate(-110.856 -23.242)"),c(t,"class",_="TogglePasswordVisibility "+(r[16]?"InvalidToggle":"")),c(t,"xmlns","http://www.w3.org/2000/svg"),c(t,"width","18.844"),c(t,"height","12.887"),c(t,"viewBox","0 0 18.844 12.887")},m(y,v){D(y,t,v),p(t,e),p(e,i),p(i,s),p(t,o),p(o,n),p(o,a),p(a,l),p(a,d),p(o,h),p(h,u),p(h,f),p(o,m),b||(w=ne(t,"click",r[61]),b=!0)},p(y,v){v[0]&65536&&_!==(_="TogglePasswordVisibility "+(y[16]?"InvalidToggle":""))&&c(t,"class",_)},d(y){y&&B(t),b=!1,w()}}}function Io(r){let t;function e(o,n){return o[1]=="true"?Zp:Yp}let i=e(r),s=i(r);return{c(){s.c(),t=Go()},m(o,n){s.m(o,n),D(o,t,n)},p(o,n){i===(i=e(o))&&s?s.p(o,n):(s.d(1),s=i(o),s&&(s.c(),s.m(t.parentNode,t)))},d(o){o&&B(t),s.d(o)}}}function Yp(r){let t,e=r[30]("forgotNewPasswordPasswordError")+"",i;return{c(){t=P("p"),i=N(e),c(t,"class","InvalidInput"),c(t,"part","InvalidInput")},m(s,o){D(s,t,o),p(t,i)},p(s,o){o[0]&1073741824&&e!==(e=s[30]("forgotNewPasswordPasswordError")+"")&&J(i,e)},d(s){s&&B(t)}}}function Zp(r){let t,e=r[30]("simplePasswordError")+"",i;return{c(){t=P("p"),i=N(e),c(t,"class","InvalidInput"),c(t,"part","InvalidInput")},m(s,o){D(s,t,o),p(t,i)},p(s,o){o[0]&1073741824&&e!==(e=s[30]("simplePasswordError")+"")&&J(i,e)},d(s){s&&B(t)}}}function Xp(r){let t,e,i,s,o,n,a,l,d,h;return{c(){t=x("svg"),e=x("defs"),i=x("style"),s=N(`.a {
|
|
2723
2723
|
fill: var(--emw--color-white, #ffffff);
|
|
2724
2724
|
}
|
|
2725
|
-
`),o=x("g"),n=x("path"),a=x("circle"),c(n,"class","a"),c(n,"d","M23.541,38.332a11.467,11.467,0,0,1-4.886-1.611,34.413,34.413,0,0,1-3.976-2.469,1.1,1.1,0,0,1-.494-.936,1.21,1.21,0,0,1,.442-.962A37.986,37.986,0,0,1,18.6,29.625a16.06,16.06,0,0,1,2.521-1.248,6.862,6.862,0,0,1,2.417-.546,6.862,6.862,0,0,1,2.417.546,20.541,20.541,0,0,1,2.547,1.248,45.872,45.872,0,0,1,4.054,2.729,1.159,1.159,0,0,1,.468.962,1.067,1.067,0,0,1-.52.936,36.353,36.353,0,0,1-4.054,2.469A11.2,11.2,0,0,1,23.541,38.332Zm0-9.46a9.813,9.813,0,0,0-4.392,1.663,44.138,44.138,0,0,0-3.873,2.651.13.13,0,0,0,0,.208,36.5,36.5,0,0,0,3.873,2.391,10.372,10.372,0,0,0,4.392,1.481,11.051,11.051,0,0,0,4.444-1.481,40.2,40.2,0,0,0,3.925-2.391.13.13,0,0,0,0-.208h0a34.132,34.132,0,0,0-3.925-2.651A10.072,10.072,0,0,0,23.541,28.872Z"),c(n,"transform","translate(0)"),c(a,"class","a"),c(a,"cx","2.779"),c(a,"cy","2.779"),c(a,"r","2.779"),c(a,"transform","translate(20.827 30.303)"),c(o,"transform","translate(-14.185 -27.832)"),c(t,"class",l="TogglePasswordVisibility "+(r[17]?"InvalidToggle":"")),c(t,"xmlns","http://www.w3.org/2000/svg"),c(t,"width","18.843"),c(t,"height","10.5"),c(t,"viewBox","0 0 18.843 10.5")},m(u,f){D(u,t,f),p(t,e),p(e,i),p(i,s),p(t,o),p(o,n),p(o,a),d||(h=ne(t,"click",r[66]),d=!0)},p(u,f){f[0]&131072&&l!==(l="TogglePasswordVisibility "+(u[17]?"InvalidToggle":""))&&c(t,"class",l)},d(u){u&&B(t),d=!1,h()}}}function
|
|
2725
|
+
`),o=x("g"),n=x("path"),a=x("circle"),c(n,"class","a"),c(n,"d","M23.541,38.332a11.467,11.467,0,0,1-4.886-1.611,34.413,34.413,0,0,1-3.976-2.469,1.1,1.1,0,0,1-.494-.936,1.21,1.21,0,0,1,.442-.962A37.986,37.986,0,0,1,18.6,29.625a16.06,16.06,0,0,1,2.521-1.248,6.862,6.862,0,0,1,2.417-.546,6.862,6.862,0,0,1,2.417.546,20.541,20.541,0,0,1,2.547,1.248,45.872,45.872,0,0,1,4.054,2.729,1.159,1.159,0,0,1,.468.962,1.067,1.067,0,0,1-.52.936,36.353,36.353,0,0,1-4.054,2.469A11.2,11.2,0,0,1,23.541,38.332Zm0-9.46a9.813,9.813,0,0,0-4.392,1.663,44.138,44.138,0,0,0-3.873,2.651.13.13,0,0,0,0,.208,36.5,36.5,0,0,0,3.873,2.391,10.372,10.372,0,0,0,4.392,1.481,11.051,11.051,0,0,0,4.444-1.481,40.2,40.2,0,0,0,3.925-2.391.13.13,0,0,0,0-.208h0a34.132,34.132,0,0,0-3.925-2.651A10.072,10.072,0,0,0,23.541,28.872Z"),c(n,"transform","translate(0)"),c(a,"class","a"),c(a,"cx","2.779"),c(a,"cy","2.779"),c(a,"r","2.779"),c(a,"transform","translate(20.827 30.303)"),c(o,"transform","translate(-14.185 -27.832)"),c(t,"class",l="TogglePasswordVisibility "+(r[17]?"InvalidToggle":"")),c(t,"xmlns","http://www.w3.org/2000/svg"),c(t,"width","18.843"),c(t,"height","10.5"),c(t,"viewBox","0 0 18.843 10.5")},m(u,f){D(u,t,f),p(t,e),p(e,i),p(i,s),p(t,o),p(o,n),p(o,a),d||(h=ne(t,"click",r[66]),d=!0)},p(u,f){f[0]&131072&&l!==(l="TogglePasswordVisibility "+(u[17]?"InvalidToggle":""))&&c(t,"class",l)},d(u){u&&B(t),d=!1,h()}}}function Jp(r){let t,e,i,s,o,n,a,l,d,h,u,f,m,_,b,w;return{c(){t=x("svg"),e=x("defs"),i=x("style"),s=N(`.a {
|
|
2726
2726
|
fill: var(--emw--color-white, #ffffff);
|
|
2727
2727
|
}
|
|
2728
|
-
`),o=x("g"),n=x("circle"),a=x("g"),l=x("path"),d=x("path"),h=x("g"),u=x("path"),f=x("path"),m=x("rect"),c(n,"class","a"),c(n,"cx","0.05"),c(n,"cy","0.05"),c(n,"r","0.05"),c(n,"transform","translate(121.017 31.148)"),c(l,"class","a"),c(l,"d","M147.413,43.174a2.774,2.774,0,0,0-3.229-3.943Z"),c(l,"transform","translate(-142.164 -39.123)"),c(d,"class","a"),c(d,"d","M137.031,43.1a2.778,2.778,0,0,0,3.447,4.209Z"),c(d,"transform","translate(-136.413 -42.068)"),c(a,"transform","translate(117.499 27.37)"),c(u,"class","a"),c(u,"d","M122.538,42.061a7.043,7.043,0,0,1-2.325.53,10.373,10.373,0,0,1-4.393-1.482,36.509,36.509,0,0,1-3.873-2.391.13.13,0,0,1,0-.208,44.141,44.141,0,0,1,3.873-2.651c.394-.233.768-.437,1.13-.622l-.686-.838c-.322.167-.651.347-.99.55a37.989,37.989,0,0,0-3.977,2.729,1.21,1.21,0,0,0-.442.962,1.1,1.1,0,0,0,.494.936,34.416,34.416,0,0,0,3.977,2.469,11.468,11.468,0,0,0,4.886,1.611,8.427,8.427,0,0,0,3.039-.725Z"),c(u,"transform","translate(-110.856 -33.157)"),c(f,"class","a"),c(f,"d","M149.119,34.14a45.875,45.875,0,0,0-4.055-2.729,20.541,20.541,0,0,0-2.547-1.248,5.6,5.6,0,0,0-4.79-.017l.7.856a5.254,5.254,0,0,1,1.672-.346,10.072,10.072,0,0,1,4.445,1.663,34.132,34.132,0,0,1,3.925,2.651.13.13,0,0,1,0,.208,40.2,40.2,0,0,1-3.925,2.391c-.179.092-.352.176-.525.26l.684.835c.1-.054.2-.1.309-.159a36.356,36.356,0,0,0,4.055-2.469,1.067,1.067,0,0,0,.52-.936A1.159,1.159,0,0,0,149.119,34.14Z"),c(f,"transform","translate(-130.743 -29.617)"),c(h,"transform","translate(110.856 24.899)"),c(m,"class","a"),c(m,"width","0.972"),c(m,"height","15.861"),c(m,"rx","0.486"),c(m,"transform","translate(114.827 23.858) rotate(-39.315)"),c(o,"transform","translate(-110.856 -23.242)"),c(t,"class",_="TogglePasswordVisibility "+(r[17]?"InvalidToggle":"")),c(t,"xmlns","http://www.w3.org/2000/svg"),c(t,"width","18.844"),c(t,"height","12.887"),c(t,"viewBox","0 0 18.844 12.887")},m(y,v){D(y,t,v),p(t,e),p(e,i),p(i,s),p(t,o),p(o,n),p(o,a),p(a,l),p(a,d),p(o,h),p(h,u),p(h,f),p(o,m),b||(w=ne(t,"click",r[65]),b=!0)},p(y,v){v[0]&131072&&_!==(_="TogglePasswordVisibility "+(y[17]?"InvalidToggle":""))&&c(t,"class",_)},d(y){y&&B(t),b=!1,w()}}}function Io(r){let t,e=r[30]("forgotNewPasswordConfirmPasswordError")+"",i;return{c(){t=P("p"),i=N(e),c(t,"class","InvalidInput"),c(t,"part","InvalidInput")},m(s,o){D(s,t,o),p(t,i)},p(s,o){o[0]&1073741824&&e!==(e=s[30]("forgotNewPasswordConfirmPasswordError")+"")&&J(i,e)},d(s){s&&B(t)}}}function Oo(r){let t,e;return{c(){t=P("p"),e=N(r[14]),c(t,"class","ErrorMessage"),c(t,"part","ErrorMessage")},m(i,s){D(i,t,s),p(t,e)},p(i,s){s[0]&16384&&J(e,i[14])},d(i){i&&B(t)}}}function No(r){let t,e;return{c(){t=P("p"),e=N(r[26]),c(t,"class","FormHeaderSubtitle"),c(t,"part","FormHeaderSubtitle")},m(i,s){D(i,t,s),p(t,e)},p(i,s){s[0]&67108864&&J(e,i[26])},d(i){i&&B(t)}}}function ko(r){let t,e=r[30]("forgotPasswordEmailInputError")+"",i;return{c(){t=P("p"),i=N(e),c(t,"class","ForgotPasswordError"),c(t,"part","ForgotPasswordError")},m(s,o){D(s,t,o),p(t,i)},p(s,o){o[0]&1073741824&&e!==(e=s[30]("forgotPasswordEmailInputError")+"")&&J(i,e)},d(s){s&&B(t)}}}function Mo(r){let t,e=r[30]("forgotPasswordEmailError")+"",i;return{c(){t=P("p"),i=N(e),c(t,"class","ForgotPasswordError"),c(t,"part","ForgotPasswordError")},m(s,o){D(s,t,o),p(t,i)},p(s,o){o[0]&1073741824&&e!==(e=s[30]("forgotPasswordEmailError")+"")&&J(i,e)},d(s){s&&B(t)}}}function Jp(r){let t,e,i=r[30](r[28])+"",s;return{c(){t=P("div"),e=P("span"),s=N(i),c(t,"class","dobFormatError")},m(o,n){D(o,t,n),p(t,e),p(e,s)},p(o,n){n[0]&1342177280&&i!==(i=o[30](o[28])+"")&&J(s,i)},d(o){o&&B(t)}}}function Kp(r){let t,e,i=ys(r[27]),s=[];for(let o=0;o<i.length;o+=1)s[o]=Lo(So(r,i,o));return{c(){t=P("div");for(let o=0;o<s.length;o+=1)s[o].c();c(t,"class",e="DobContainer "+(r[11]?"Mobile":""))},m(o,n){D(o,t,n);for(let a=0;a<s.length;a+=1)s[a]&&s[a].m(t,null)},p(o,n){if(n[0]&1744830464|n[1]&135){i=ys(o[27]);let a;for(a=0;a<i.length;a+=1){const l=So(o,i,a);s[a]?s[a].p(l,n):(s[a]=Lo(l),s[a].c(),s[a].m(t,null))}for(;a<s.length;a+=1)s[a].d(1);s.length=i.length}n[0]&2048&&e!==(e="DobContainer "+(o[11]?"Mobile":""))&&c(t,"class",e)},d(o){o&&B(t),hl(s,o)}}}function Qp(r){let t,e,i,s,o;return{c(){t=P("vaadin-combo-box"),ee(t,"class","datePickerBox"),ee(t,"label",e=r[30]("year")),ee(t,"items",r[31]),ee(t,"disabled",i=r[29].isYearDisabled)},m(n,a){D(n,t,a),s||(o=ne(t,"change",r[57]),s=!0)},p(n,a){a[0]&1073741824&&e!==(e=n[30]("year"))&&ee(t,"label",e),a[0]&536870912&&i!==(i=n[29].isYearDisabled)&&ee(t,"disabled",i)},d(n){n&&B(t),s=!1,o()}}}function em(r){let t,e,i,s,o;return{c(){t=P("vaadin-combo-box"),ee(t,"class","datePickerBox"),ee(t,"label",e=r[30]("month")),ee(t,"items",Object.keys(r[32])),ee(t,"disabled",i=r[29].isMonthDisabled)},m(n,a){D(n,t,a),s||(o=ne(t,"change",r[56]),s=!0)},p(n,a){a[0]&1073741824&&e!==(e=n[30]("month"))&&ee(t,"label",e),a[0]&536870912&&i!==(i=n[29].isMonthDisabled)&&ee(t,"disabled",i)},d(n){n&&B(t),s=!1,o()}}}function tm(r){let t,e,i,s,o;return{c(){t=P("vaadin-combo-box"),ee(t,"class","datePickerBox"),ee(t,"label",e=r[30]("day")),ee(t,"items",r[33]),ee(t,"disabled",i=r[29].isDayDisabled)},m(n,a){D(n,t,a),s||(o=ne(t,"change",r[55]),s=!0)},p(n,a){a[0]&1073741824&&e!==(e=n[30]("day"))&&ee(t,"label",e),a[0]&536870912&&i!==(i=n[29].isDayDisabled)&&ee(t,"disabled",i)},d(n){n&&B(t),s=!1,o()}}}function Lo(r){let t;function e(o,n){if(o[90]==="dd")return tm;if(o[90]==="mm")return em;if(o[90]==="yyyy")return Qp}let i=e(r),s=i&&i(r);return{c(){s&&s.c(),t=jo()},m(o,n){s&&s.m(o,n),D(o,t,n)},p(o,n){i===(i=e(o))&&s?s.p(o,n):(s&&s.d(1),s=i&&i(o),s&&(s.c(),s.m(t.parentNode,t)))},d(o){o&&B(t),s&&s.d(o)}}}function rm(r){let t,e,i;function s(a,l){return a[4]?Fp:zp}let o=s(r),n=o(r);return{c(){t=P("div"),e=V(),i=P("div"),n.c(),c(t,"class","g-recaptcha"),c(t,"data-sitekey",r[0]),c(i,"class","GeneralPlayerForgotPasswordForm")},m(a,l){D(a,t,l),D(a,e,l),D(a,i,l),n.m(i,null),r[69](i)},p(a,l){l[0]&1&&c(t,"data-sitekey",a[0]),o===(o=s(a))&&n?n.p(a,l):(n.d(1),n=o(a),n&&(n.c(),n.m(i,null)))},i:Ee,o:Ee,d(a){a&&(B(t),B(e),B(i)),n.d(),r[69](null)}}}function im(r,t,e){let i;nl(r,Ih,g=>e(30,i=g));let{endpoint:s=""}=t,{forgotpasswordkey:o=""}=t,{captchakey:n=""}=t,{lang:a="en"}=t,{simplepasswordvalidation:l="false"}=t,{mbsource:d}=t,{clientstyling:h=""}=t,{clientstylingurl:u=""}=t,{translationurl:f=""}=t,{savecredentials:m=""}=t,{hastosetpass:_}=t,{passwordregex:b=""}=t,{dobformat:w=""}=t,{mindobyears:y=18}=t,{maxdobyears:v=100}=t,C=!1,E=!0,S=!1,$=!1,L="",pe=!1,q=!1,ye=!1,Y=!1,re=!1,le=window.navigator.userAgent,we="",Se=!1,Z=sessionStorage.getItem("resetScreenWasSeen")==="true",_e=!1,xe=!1,ce,ge,Ae=!1,I=!1,U="",F="",G,W=!1,de,A,H=Array.from({length:v-y+1},(g,M)=>new Date().getFullYear()-y-M),ie={January:"01",February:"02",March:"03",April:"04",May:"05",June:"06",July:"07",August:"08",September:"09",October:"10",November:"11",December:"12"},he=Array.from({length:31},(g,M)=>M+1),se=[],K="",kr=!0,be={isDayDisabled:!1,isMonthDisabled:!1,isYearDisabled:!1},Sa=["mm/dd/yyyy","dd/mm/yyyy","yyyy/mm/dd"],pt={dd:null,mm:null,yyyy:null},cs="";Nh({withLocale:"en",translations:{}});const Aa=()=>{fetch(f).then(M=>M.json()).then(M=>{Object.keys(M).forEach(Q=>{Vs(Q,M[Q])})}).catch(M=>{console.log(M)})};Object.keys($s).forEach(g=>{Vs(g,$s[g])});const Gt={email:/^(([^<>()[\]\.,;:\s@\"]+(\.[^<>()[\]\.,;:\s@\"]+)*)|(\".+\"))@(([^<>()[\]\.,;:\s@\"]+\.)+[^<>()[\]\.,;:\s@\"]{2,})$/i,password:/^(?=.*?[A-Z])(?=.*?[a-z])(?=.*?[0-9])(?=.*?[^\w\s]).{8,20}$/},Ta=()=>{e(13,re=w?!Y&&!kr:!Y)},Ia=g=>!!(Gt.email.test(g)&&g.length<=100),fs=()=>{e(12,Y=!Ia(L)),Ta()},mt=g=>{switch(g){case"userNewPassword":e(20,Ae=!Ae),e(18,ce.type=Ae?"text":"password",ce);break;case"userConfirmPassword":e(21,I=!I),e(19,ge.type=I?"text":"password",ge);break}},Mr=g=>{switch(g){case"ToEmailSuccess":e(6,S=!1),e(5,E=!1),e(7,$=!0);break;case"ToReset":e(5,E=Z),e(9,pe=!Z),Z=!0,sessionStorage.setItem("resetScreenWasSeen","true");break;case"ToSuccess":e(9,pe=!1),e(10,q=!0);break}},Lr=()=>{window.postMessage({type:"ToLogin"},window.location.href)},Oa=()=>new Promise(g=>{const M=setTimeout(()=>{console.warn("reCAPTCHA execution timed out, continuing without token"),g(null)},8e3);if(typeof grecaptcha=="undefined"||!grecaptcha.ready){clearTimeout(M),g(null);return}try{grecaptcha.ready(()=>{grecaptcha.execute(n,{action:"submit"}).then(Q=>{clearTimeout(M),g(Q)}).catch(()=>{clearTimeout(M),g(null)})})}catch(Q){clearTimeout(M),g(null)}}),ps=g=>{g.preventDefault(),e(4,C=!0),Oa().then(M=>{let Q=new URL(`${s}/v1/player/resetpassword`),Re={method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json","g-recaptcha-response":M}};Q.searchParams.append("email",L),w&&Q.searchParams.append("birthDate",cs),fetch(Q,Re).then(Ne=>_s(Ne)).then(()=>{Mr("ToEmailSuccess")}).catch(Ne=>{e(6,S=!0),console.error("There was an error with the player balance request.",Ne)}).finally(()=>{e(4,C=!1),Z=!1,sessionStorage.setItem("resetScreenWasSeen","false")})})},Na=()=>{if(e(41,w=w.toLowerCase()),!Sa.includes(w))return e(28,K="dobFormatError");e(27,se=w.split("/")),e(29,be.isDayDisabled=se[0]!=="dd",be),e(29,be.isMonthDisabled=se[0]!=="mm",be),e(29,be.isYearDisabled=se[0]!=="yyyy",be)},Wt=(g,M)=>{pt[M]=g.target.value,kr=Object.values(pt).some(Q=>!Q),se.forEach((Q,Re)=>{if(M===Q)switch(se[Re+1]){case"dd":e(29,be.isDayDisabled=!1,be);case"mm":e(29,be.isMonthDisabled=!1,be);break;case"yyyy":e(29,be.isYearDisabled=!1,be);break}}),kr||(cs=`${pt.yyyy}-${ie[pt.mm]}-${pt.dd}`),fs()},ms=g=>{g.preventDefault();let M=new URL(`${s}/v1/player/ResetPasswordByHashKey`),Re={method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({hashKey:o,plainTextPassword:U})};fetch(M,Re).then(Ne=>_s(Ne)).then(Ne=>{e(24,W=!1),Mr("ToSuccess")}).catch(Ne=>{e(24,W=!0),console.error("There was an error with changing the password.",Ne)})},ka=()=>{o&&o.length>0&&Mr("ToReset")},Ma=()=>{!_e&&!xe&&U&&F?e(15,Se=!0):e(15,Se=!1)},Br=g=>(l=="true"&&(Gt.password=/^(?!.* ).{8,20}$/),!!Gt.password.test(g)),La=(g,M,Q)=>{Q.id==="new-password"?(e(16,_e=!Br(M)),F&&e(17,xe=U===F?!Br(M):!0)):e(17,xe=U===F?!Br(M):!0),Ma()},_s=g=>_t(this,null,function*(){return g.json().catch(()=>null).then(M=>{var Q;if(g.status>=300){const Re=((Q=M==null?void 0:M.thirdPartyResponse)==null?void 0:Q.errorCode)||"generalError";return e(14,we=i(Re)),window.postMessage({type:"WidgetNotification",data:{type:"error",message:we}},window.location.href),Promise.reject(we)}return M})}),Ba=()=>{kh(a)},Ra=()=>{e(25,de=i(_==="true"?"hasToSetPassTitle":"forgotPasswordTitle")),e(26,A=_==="true"?i("resetPasswordSubtitle"):"")};pl(()=>_t(this,null,function*(){return Oh(le)&&e(11,ye=!0),()=>{}}));const Da=()=>Lr();function Ha(){L=this.value,e(8,L)}const za=g=>Wt(g,"dd"),Fa=g=>Wt(g,"mm"),Va=g=>Wt(g,"yyyy"),$a=g=>ps(g);function Ua(){U=this.value,e(22,U)}function ja(g){Ct[g?"unshift":"push"](()=>{ce=g,e(18,ce)})}const Ga=()=>mt("userNewPassword"),Wa=()=>mt("userNewPassword");function qa(){F=this.value,e(23,F)}function Ya(g){Ct[g?"unshift":"push"](()=>{ge=g,e(19,ge)})}const Za=()=>mt("userConfirmPassword"),Xa=()=>mt("userConfirmPassword"),Ja=g=>ms(g),Ka=()=>Lr();function Qa(g){Ct[g?"unshift":"push"](()=>{G=g,e(3,G)})}return r.$$set=g=>{"endpoint"in g&&e(42,s=g.endpoint),"forgotpasswordkey"in g&&e(43,o=g.forgotpasswordkey),"captchakey"in g&&e(0,n=g.captchakey),"lang"in g&&e(44,a=g.lang),"simplepasswordvalidation"in g&&e(1,l=g.simplepasswordvalidation),"mbsource"in g&&e(45,d=g.mbsource),"clientstyling"in g&&e(46,h=g.clientstyling),"clientstylingurl"in g&&e(47,u=g.clientstylingurl),"translationurl"in g&&e(48,f=g.translationurl),"savecredentials"in g&&e(2,m=g.savecredentials),"hastosetpass"in g&&e(49,_=g.hastosetpass),"passwordregex"in g&&e(50,b=g.passwordregex),"dobformat"in g&&e(41,w=g.dobformat),"mindobyears"in g&&e(51,y=g.mindobyears),"maxdobyears"in g&&e(52,v=g.maxdobyears)},r.$$.update=()=>{r.$$.dirty[1]&4096&&o&&ka(),r.$$.dirty[1]&8192&&a&&Ba(),r.$$.dirty[0]&8|r.$$.dirty[1]&32768&&h&&G&&Mh(G,h),r.$$.dirty[0]&8|r.$$.dirty[1]&65536&&u&&G&&Lh(G,u),r.$$.dirty[0]&8|r.$$.dirty[1]&16384&&d&&G&&Bh(G,`${d}.Style`),r.$$.dirty[1]&131072&&f&&Aa(),r.$$.dirty[1]&270336&&_&&a&&Ra(),r.$$.dirty[1]&524288&&b&&(Gt.password=new RegExp(b)),r.$$.dirty[1]&1024&&w&&Na()},[n,l,m,G,C,E,S,$,L,pe,q,ye,Y,re,we,Se,_e,xe,ce,ge,Ae,I,U,F,W,de,A,se,K,be,i,H,ie,he,fs,mt,Lr,ps,Wt,ms,La,w,s,o,a,d,h,u,f,_,b,y,v,Da,Ha,za,Fa,Va,$a,Ua,ja,Ga,Wa,qa,Ya,Za,Xa,Ja,Ka,Qa]}class Ca extends Sl{constructor(t){super(),El(this,t,im,rm,$o,{endpoint:42,forgotpasswordkey:43,captchakey:0,lang:44,simplepasswordvalidation:1,mbsource:45,clientstyling:46,clientstylingurl:47,translationurl:48,savecredentials:2,hastosetpass:49,passwordregex:50,dobformat:41,mindobyears:51,maxdobyears:52},Hp,[-1,-1,-1])}get endpoint(){return this.$$.ctx[42]}set endpoint(t){this.$$set({endpoint:t}),oe()}get forgotpasswordkey(){return this.$$.ctx[43]}set forgotpasswordkey(t){this.$$set({forgotpasswordkey:t}),oe()}get captchakey(){return this.$$.ctx[0]}set captchakey(t){this.$$set({captchakey:t}),oe()}get lang(){return this.$$.ctx[44]}set lang(t){this.$$set({lang:t}),oe()}get simplepasswordvalidation(){return this.$$.ctx[1]}set simplepasswordvalidation(t){this.$$set({simplepasswordvalidation:t}),oe()}get mbsource(){return this.$$.ctx[45]}set mbsource(t){this.$$set({mbsource:t}),oe()}get clientstyling(){return this.$$.ctx[46]}set clientstyling(t){this.$$set({clientstyling:t}),oe()}get clientstylingurl(){return this.$$.ctx[47]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),oe()}get translationurl(){return this.$$.ctx[48]}set translationurl(t){this.$$set({translationurl:t}),oe()}get savecredentials(){return this.$$.ctx[2]}set savecredentials(t){this.$$set({savecredentials:t}),oe()}get hastosetpass(){return this.$$.ctx[49]}set hastosetpass(t){this.$$set({hastosetpass:t}),oe()}get passwordregex(){return this.$$.ctx[50]}set passwordregex(t){this.$$set({passwordregex:t}),oe()}get dobformat(){return this.$$.ctx[41]}set dobformat(t){this.$$set({dobformat:t}),oe()}get mindobyears(){return this.$$.ctx[51]}set mindobyears(t){this.$$set({mindobyears:t}),oe()}get maxdobyears(){return this.$$.ctx[52]}set maxdobyears(t){this.$$set({maxdobyears:t}),oe()}}Cl(Ca,{endpoint:{},forgotpasswordkey:{},captchakey:{},lang:{},simplepasswordvalidation:{},mbsource:{},clientstyling:{},clientstylingurl:{},translationurl:{},savecredentials:{},hastosetpass:{},passwordregex:{},dobformat:{},mindobyears:{},maxdobyears:{}},[],[],!0);exports.default=Ca;
|
|
2728
|
+
`),o=x("g"),n=x("circle"),a=x("g"),l=x("path"),d=x("path"),h=x("g"),u=x("path"),f=x("path"),m=x("rect"),c(n,"class","a"),c(n,"cx","0.05"),c(n,"cy","0.05"),c(n,"r","0.05"),c(n,"transform","translate(121.017 31.148)"),c(l,"class","a"),c(l,"d","M147.413,43.174a2.774,2.774,0,0,0-3.229-3.943Z"),c(l,"transform","translate(-142.164 -39.123)"),c(d,"class","a"),c(d,"d","M137.031,43.1a2.778,2.778,0,0,0,3.447,4.209Z"),c(d,"transform","translate(-136.413 -42.068)"),c(a,"transform","translate(117.499 27.37)"),c(u,"class","a"),c(u,"d","M122.538,42.061a7.043,7.043,0,0,1-2.325.53,10.373,10.373,0,0,1-4.393-1.482,36.509,36.509,0,0,1-3.873-2.391.13.13,0,0,1,0-.208,44.141,44.141,0,0,1,3.873-2.651c.394-.233.768-.437,1.13-.622l-.686-.838c-.322.167-.651.347-.99.55a37.989,37.989,0,0,0-3.977,2.729,1.21,1.21,0,0,0-.442.962,1.1,1.1,0,0,0,.494.936,34.416,34.416,0,0,0,3.977,2.469,11.468,11.468,0,0,0,4.886,1.611,8.427,8.427,0,0,0,3.039-.725Z"),c(u,"transform","translate(-110.856 -33.157)"),c(f,"class","a"),c(f,"d","M149.119,34.14a45.875,45.875,0,0,0-4.055-2.729,20.541,20.541,0,0,0-2.547-1.248,5.6,5.6,0,0,0-4.79-.017l.7.856a5.254,5.254,0,0,1,1.672-.346,10.072,10.072,0,0,1,4.445,1.663,34.132,34.132,0,0,1,3.925,2.651.13.13,0,0,1,0,.208,40.2,40.2,0,0,1-3.925,2.391c-.179.092-.352.176-.525.26l.684.835c.1-.054.2-.1.309-.159a36.356,36.356,0,0,0,4.055-2.469,1.067,1.067,0,0,0,.52-.936A1.159,1.159,0,0,0,149.119,34.14Z"),c(f,"transform","translate(-130.743 -29.617)"),c(h,"transform","translate(110.856 24.899)"),c(m,"class","a"),c(m,"width","0.972"),c(m,"height","15.861"),c(m,"rx","0.486"),c(m,"transform","translate(114.827 23.858) rotate(-39.315)"),c(o,"transform","translate(-110.856 -23.242)"),c(t,"class",_="TogglePasswordVisibility "+(r[17]?"InvalidToggle":"")),c(t,"xmlns","http://www.w3.org/2000/svg"),c(t,"width","18.844"),c(t,"height","12.887"),c(t,"viewBox","0 0 18.844 12.887")},m(y,v){D(y,t,v),p(t,e),p(e,i),p(i,s),p(t,o),p(o,n),p(o,a),p(a,l),p(a,d),p(o,h),p(h,u),p(h,f),p(o,m),b||(w=ne(t,"click",r[65]),b=!0)},p(y,v){v[0]&131072&&_!==(_="TogglePasswordVisibility "+(y[17]?"InvalidToggle":""))&&c(t,"class",_)},d(y){y&&B(t),b=!1,w()}}}function Oo(r){let t,e=r[30]("forgotNewPasswordConfirmPasswordError")+"",i;return{c(){t=P("p"),i=N(e),c(t,"class","InvalidInput"),c(t,"part","InvalidInput")},m(s,o){D(s,t,o),p(t,i)},p(s,o){o[0]&1073741824&&e!==(e=s[30]("forgotNewPasswordConfirmPasswordError")+"")&&J(i,e)},d(s){s&&B(t)}}}function No(r){let t,e;return{c(){t=P("p"),e=N(r[14]),c(t,"class","ErrorMessage"),c(t,"part","ErrorMessage")},m(i,s){D(i,t,s),p(t,e)},p(i,s){s[0]&16384&&J(e,i[14])},d(i){i&&B(t)}}}function ko(r){let t,e;return{c(){t=P("p"),e=N(r[26]),c(t,"class","FormHeaderSubtitle"),c(t,"part","FormHeaderSubtitle")},m(i,s){D(i,t,s),p(t,e)},p(i,s){s[0]&67108864&&J(e,i[26])},d(i){i&&B(t)}}}function Mo(r){let t,e=r[30]("forgotPasswordEmailInputError")+"",i;return{c(){t=P("p"),i=N(e),c(t,"class","ForgotPasswordError"),c(t,"part","ForgotPasswordError")},m(s,o){D(s,t,o),p(t,i)},p(s,o){o[0]&1073741824&&e!==(e=s[30]("forgotPasswordEmailInputError")+"")&&J(i,e)},d(s){s&&B(t)}}}function Lo(r){let t,e=r[30]("forgotPasswordEmailError")+"",i;return{c(){t=P("p"),i=N(e),c(t,"class","ForgotPasswordError"),c(t,"part","ForgotPasswordError")},m(s,o){D(s,t,o),p(t,i)},p(s,o){o[0]&1073741824&&e!==(e=s[30]("forgotPasswordEmailError")+"")&&J(i,e)},d(s){s&&B(t)}}}function Kp(r){let t,e,i=r[30](r[28])+"",s;return{c(){t=P("div"),e=P("span"),s=N(i),c(t,"class","dobFormatError")},m(o,n){D(o,t,n),p(t,e),p(e,s)},p(o,n){n[0]&1342177280&&i!==(i=o[30](o[28])+"")&&J(s,i)},d(o){o&&B(t)}}}function Qp(r){let t,e,i=ys(r[27]),s=[];for(let o=0;o<i.length;o+=1)s[o]=Bo(Ao(r,i,o));return{c(){t=P("div");for(let o=0;o<s.length;o+=1)s[o].c();c(t,"class",e="DobContainer "+(r[11]?"Mobile":""))},m(o,n){D(o,t,n);for(let a=0;a<s.length;a+=1)s[a]&&s[a].m(t,null)},p(o,n){if(n[0]&1744830464|n[1]&135){i=ys(o[27]);let a;for(a=0;a<i.length;a+=1){const l=Ao(o,i,a);s[a]?s[a].p(l,n):(s[a]=Bo(l),s[a].c(),s[a].m(t,null))}for(;a<s.length;a+=1)s[a].d(1);s.length=i.length}n[0]&2048&&e!==(e="DobContainer "+(o[11]?"Mobile":""))&&c(t,"class",e)},d(o){o&&B(t),ul(s,o)}}}function em(r){let t,e,i,s,o;return{c(){t=P("vaadin-combo-box"),ee(t,"class","datePickerBox"),ee(t,"label",e=r[30]("year")),ee(t,"items",r[31]),ee(t,"disabled",i=r[29].isYearDisabled)},m(n,a){D(n,t,a),s||(o=ne(t,"change",r[57]),s=!0)},p(n,a){a[0]&1073741824&&e!==(e=n[30]("year"))&&ee(t,"label",e),a[0]&536870912&&i!==(i=n[29].isYearDisabled)&&ee(t,"disabled",i)},d(n){n&&B(t),s=!1,o()}}}function tm(r){let t,e,i,s,o;return{c(){t=P("vaadin-combo-box"),ee(t,"class","datePickerBox"),ee(t,"label",e=r[30]("month")),ee(t,"items",Object.keys(r[32])),ee(t,"disabled",i=r[29].isMonthDisabled)},m(n,a){D(n,t,a),s||(o=ne(t,"change",r[56]),s=!0)},p(n,a){a[0]&1073741824&&e!==(e=n[30]("month"))&&ee(t,"label",e),a[0]&536870912&&i!==(i=n[29].isMonthDisabled)&&ee(t,"disabled",i)},d(n){n&&B(t),s=!1,o()}}}function rm(r){let t,e,i,s,o;return{c(){t=P("vaadin-combo-box"),ee(t,"class","datePickerBox"),ee(t,"label",e=r[30]("day")),ee(t,"items",r[33]),ee(t,"disabled",i=r[29].isDayDisabled)},m(n,a){D(n,t,a),s||(o=ne(t,"change",r[55]),s=!0)},p(n,a){a[0]&1073741824&&e!==(e=n[30]("day"))&&ee(t,"label",e),a[0]&536870912&&i!==(i=n[29].isDayDisabled)&&ee(t,"disabled",i)},d(n){n&&B(t),s=!1,o()}}}function Bo(r){let t;function e(o,n){if(o[90]==="dd")return rm;if(o[90]==="mm")return tm;if(o[90]==="yyyy")return em}let i=e(r),s=i&&i(r);return{c(){s&&s.c(),t=Go()},m(o,n){s&&s.m(o,n),D(o,t,n)},p(o,n){i===(i=e(o))&&s?s.p(o,n):(s&&s.d(1),s=i&&i(o),s&&(s.c(),s.m(t.parentNode,t)))},d(o){o&&B(t),s&&s.d(o)}}}function im(r){let t,e,i;function s(a,l){return a[4]?Vp:Fp}let o=s(r),n=o(r);return{c(){t=P("div"),e=V(),i=P("div"),n.c(),c(t,"class","g-recaptcha"),c(t,"data-sitekey",r[0]),c(i,"class","GeneralPlayerForgotPasswordForm")},m(a,l){D(a,t,l),D(a,e,l),D(a,i,l),n.m(i,null),r[69](i)},p(a,l){l[0]&1&&c(t,"data-sitekey",a[0]),o===(o=s(a))&&n?n.p(a,l):(n.d(1),n=o(a),n&&(n.c(),n.m(i,null)))},i:Ee,o:Ee,d(a){a&&(B(t),B(e),B(i)),n.d(),r[69](null)}}}function sm(r,t,e){let i;al(r,Oh,g=>e(30,i=g));let{endpoint:s=""}=t,{forgotpasswordkey:o=""}=t,{captchakey:n=""}=t,{lang:a="en"}=t,{simplepasswordvalidation:l="false"}=t,{mbsource:d}=t,{clientstyling:h=""}=t,{clientstylingurl:u=""}=t,{translationurl:f=""}=t,{savecredentials:m=""}=t,{hastosetpass:_}=t,{passwordregex:b=""}=t,{dobformat:w=""}=t,{mindobyears:y=18}=t,{maxdobyears:v=100}=t,C=!1,E=!0,S=!1,$=!1,L="",pe=!1,q=!1,ye=!1,Y=!1,re=!1,le=window.navigator.userAgent,we="",Se=!1,Z=sessionStorage.getItem("resetScreenWasSeen")==="true",_e=!1,xe=!1,ce,ge,Ae=!1,I=!1,U="",F="",G,W=!1,de,A,H=Array.from({length:v-y+1},(g,M)=>new Date().getFullYear()-y-M),ie={January:"01",February:"02",March:"03",April:"04",May:"05",June:"06",July:"07",August:"08",September:"09",October:"10",November:"11",December:"12"},he=Array.from({length:31},(g,M)=>M+1),se=[],K="",kr=!0,be={isDayDisabled:!1,isMonthDisabled:!1,isYearDisabled:!1},Aa=["mm/dd/yyyy","dd/mm/yyyy","yyyy/mm/dd"],pt={dd:null,mm:null,yyyy:null},cs="";kh({withLocale:"en",translations:{}});const Ta=()=>{fetch(f).then(M=>M.json()).then(M=>{Object.keys(M).forEach(Q=>{Vs(Q,M[Q])})}).catch(M=>{console.log(M)})};Object.keys($s).forEach(g=>{Vs(g,$s[g])});const Gt={email:/^(([^<>()[\]\.,;:\s@\"]+(\.[^<>()[\]\.,;:\s@\"]+)*)|(\".+\"))@(([^<>()[\]\.,;:\s@\"]+\.)+[^<>()[\]\.,;:\s@\"]{2,})$/i,password:/^(?=.*?[A-Z])(?=.*?[a-z])(?=.*?[0-9])(?=.*?[^\w\s]).{8,20}$/},Ia=()=>{e(13,re=w?!Y&&!kr:!Y)},Oa=g=>!!(Gt.email.test(g)&&g.length<=100),fs=()=>{e(12,Y=!Oa(L)),Ia()},mt=g=>{switch(g){case"userNewPassword":e(20,Ae=!Ae),e(18,ce.type=Ae?"text":"password",ce);break;case"userConfirmPassword":e(21,I=!I),e(19,ge.type=I?"text":"password",ge);break}},Mr=g=>{switch(g){case"ToEmailSuccess":e(6,S=!1),e(5,E=!1),e(7,$=!0);break;case"ToReset":e(5,E=Z),e(9,pe=!Z),Z=!0,sessionStorage.setItem("resetScreenWasSeen","true");break;case"ToSuccess":e(9,pe=!1),e(10,q=!0);break}},Lr=()=>{window.postMessage({type:"ToLogin"},window.location.href)},Na=()=>new Promise(g=>{const M=setTimeout(()=>{console.warn("reCAPTCHA execution timed out, continuing without token"),g(null)},8e3);if(typeof grecaptcha=="undefined"||!grecaptcha.ready){clearTimeout(M),g(null);return}try{grecaptcha.ready(()=>{grecaptcha.execute(n,{action:"submit"}).then(Q=>{clearTimeout(M),g(Q)}).catch(()=>{clearTimeout(M),g(null)})})}catch(Q){clearTimeout(M),g(null)}}),ps=g=>{g.preventDefault(),e(4,C=!0),Na().then(M=>{let Q=new URL(`${s}/v1/player/resetpassword`),Re={method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json","g-recaptcha-response":M}};Q.searchParams.append("email",L),w&&Q.searchParams.append("birthDate",cs),fetch(Q,Re).then(Ne=>_s(Ne)).then(()=>{Mr("ToEmailSuccess")}).catch(Ne=>{e(6,S=!0),console.error("There was an error with the player balance request.",Ne)}).finally(()=>{e(4,C=!1),Z=!1,sessionStorage.setItem("resetScreenWasSeen","false")})})},ka=()=>{if(e(41,w=w.toLowerCase()),!Aa.includes(w))return e(28,K="dobFormatError");e(27,se=w.split("/")),e(29,be.isDayDisabled=se[0]!=="dd",be),e(29,be.isMonthDisabled=se[0]!=="mm",be),e(29,be.isYearDisabled=se[0]!=="yyyy",be)},Wt=(g,M)=>{pt[M]=g.target.value,kr=Object.values(pt).some(Q=>!Q),se.forEach((Q,Re)=>{if(M===Q)switch(se[Re+1]){case"dd":e(29,be.isDayDisabled=!1,be);case"mm":e(29,be.isMonthDisabled=!1,be);break;case"yyyy":e(29,be.isYearDisabled=!1,be);break}}),kr||(cs=`${pt.yyyy}-${ie[pt.mm]}-${pt.dd}`),fs()},ms=g=>{g.preventDefault();let M=new URL(`${s}/v1/player/ResetPasswordByHashKey`),Re={method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({hashKey:o,plainTextPassword:U})};fetch(M,Re).then(Ne=>_s(Ne)).then(Ne=>{e(24,W=!1),Mr("ToSuccess")}).catch(Ne=>{e(24,W=!0),console.error("There was an error with changing the password.",Ne)})},Ma=()=>{o&&o.length>0&&Mr("ToReset")},La=()=>{!_e&&!xe&&U&&F?e(15,Se=!0):e(15,Se=!1)},Br=g=>(l=="true"&&(Gt.password=/^(?!.* ).{8,20}$/),!!Gt.password.test(g)),Ba=(g,M,Q)=>{Q.id==="new-password"?(e(16,_e=!Br(M)),F&&e(17,xe=U===F?!Br(M):!0)):e(17,xe=U===F?!Br(M):!0),La()},_s=g=>_t(this,null,function*(){return g.json().catch(()=>null).then(M=>{var Q;if(g.status>=300){const Re=((Q=M==null?void 0:M.thirdPartyResponse)==null?void 0:Q.errorCode)||"generalError";return e(14,we=i(Re)),window.postMessage({type:"WidgetNotification",data:{type:"error",message:we}},window.location.href),Promise.reject(we)}return M})}),Ra=()=>{Mh(a)},Da=()=>{e(25,de=i(_==="true"?"hasToSetPassTitle":"forgotPasswordTitle")),e(26,A=_==="true"?i("resetPasswordSubtitle"):"")};ml(()=>_t(this,null,function*(){return Nh(le)&&e(11,ye=!0),()=>{}}));const Ha=()=>Lr();function za(){L=this.value,e(8,L)}const Fa=g=>Wt(g,"dd"),Va=g=>Wt(g,"mm"),$a=g=>Wt(g,"yyyy"),Ua=g=>ps(g);function ja(){U=this.value,e(22,U)}function Ga(g){Ct[g?"unshift":"push"](()=>{ce=g,e(18,ce)})}const Wa=()=>mt("userNewPassword"),qa=()=>mt("userNewPassword");function Ya(){F=this.value,e(23,F)}function Za(g){Ct[g?"unshift":"push"](()=>{ge=g,e(19,ge)})}const Xa=()=>mt("userConfirmPassword"),Ja=()=>mt("userConfirmPassword"),Ka=g=>ms(g),Qa=()=>Lr();function el(g){Ct[g?"unshift":"push"](()=>{G=g,e(3,G)})}return r.$$set=g=>{"endpoint"in g&&e(42,s=g.endpoint),"forgotpasswordkey"in g&&e(43,o=g.forgotpasswordkey),"captchakey"in g&&e(0,n=g.captchakey),"lang"in g&&e(44,a=g.lang),"simplepasswordvalidation"in g&&e(1,l=g.simplepasswordvalidation),"mbsource"in g&&e(45,d=g.mbsource),"clientstyling"in g&&e(46,h=g.clientstyling),"clientstylingurl"in g&&e(47,u=g.clientstylingurl),"translationurl"in g&&e(48,f=g.translationurl),"savecredentials"in g&&e(2,m=g.savecredentials),"hastosetpass"in g&&e(49,_=g.hastosetpass),"passwordregex"in g&&e(50,b=g.passwordregex),"dobformat"in g&&e(41,w=g.dobformat),"mindobyears"in g&&e(51,y=g.mindobyears),"maxdobyears"in g&&e(52,v=g.maxdobyears)},r.$$.update=()=>{r.$$.dirty[1]&4096&&o&&Ma(),r.$$.dirty[1]&8192&&a&&Ra(),r.$$.dirty[0]&8|r.$$.dirty[1]&32768&&h&&G&&Lh(G,h),r.$$.dirty[0]&8|r.$$.dirty[1]&65536&&u&&G&&Bh(G,u),r.$$.dirty[0]&8|r.$$.dirty[1]&16384&&d&&G&&Rh(G,`${d}.Style`),r.$$.dirty[1]&131072&&f&&Ta(),r.$$.dirty[1]&270336&&_&&a&&Da(),r.$$.dirty[1]&524288&&b&&(Gt.password=new RegExp(b)),r.$$.dirty[1]&1024&&w&&ka()},[n,l,m,G,C,E,S,$,L,pe,q,ye,Y,re,we,Se,_e,xe,ce,ge,Ae,I,U,F,W,de,A,se,K,be,i,H,ie,he,fs,mt,Lr,ps,Wt,ms,Ba,w,s,o,a,d,h,u,f,_,b,y,v,Ha,za,Fa,Va,$a,Ua,ja,Ga,Wa,qa,Ya,Za,Xa,Ja,Ka,Qa,el]}class Sa extends Al{constructor(t){super(),Cl(this,t,sm,im,Uo,{endpoint:42,forgotpasswordkey:43,captchakey:0,lang:44,simplepasswordvalidation:1,mbsource:45,clientstyling:46,clientstylingurl:47,translationurl:48,savecredentials:2,hastosetpass:49,passwordregex:50,dobformat:41,mindobyears:51,maxdobyears:52},zp,[-1,-1,-1])}get endpoint(){return this.$$.ctx[42]}set endpoint(t){this.$$set({endpoint:t}),oe()}get forgotpasswordkey(){return this.$$.ctx[43]}set forgotpasswordkey(t){this.$$set({forgotpasswordkey:t}),oe()}get captchakey(){return this.$$.ctx[0]}set captchakey(t){this.$$set({captchakey:t}),oe()}get lang(){return this.$$.ctx[44]}set lang(t){this.$$set({lang:t}),oe()}get simplepasswordvalidation(){return this.$$.ctx[1]}set simplepasswordvalidation(t){this.$$set({simplepasswordvalidation:t}),oe()}get mbsource(){return this.$$.ctx[45]}set mbsource(t){this.$$set({mbsource:t}),oe()}get clientstyling(){return this.$$.ctx[46]}set clientstyling(t){this.$$set({clientstyling:t}),oe()}get clientstylingurl(){return this.$$.ctx[47]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),oe()}get translationurl(){return this.$$.ctx[48]}set translationurl(t){this.$$set({translationurl:t}),oe()}get savecredentials(){return this.$$.ctx[2]}set savecredentials(t){this.$$set({savecredentials:t}),oe()}get hastosetpass(){return this.$$.ctx[49]}set hastosetpass(t){this.$$set({hastosetpass:t}),oe()}get passwordregex(){return this.$$.ctx[50]}set passwordregex(t){this.$$set({passwordregex:t}),oe()}get dobformat(){return this.$$.ctx[41]}set dobformat(t){this.$$set({dobformat:t}),oe()}get mindobyears(){return this.$$.ctx[51]}set mindobyears(t){this.$$set({mindobyears:t}),oe()}get maxdobyears(){return this.$$.ctx[52]}set maxdobyears(t){this.$$set({maxdobyears:t}),oe()}}Sl(Sa,{endpoint:{},forgotpasswordkey:{},captchakey:{},lang:{},simplepasswordvalidation:{},mbsource:{},clientstyling:{},clientstylingurl:{},translationurl:{},savecredentials:{},hastosetpass:{},passwordregex:{},dobformat:{},mindobyears:{},maxdobyears:{}},[],[],!0);exports.default=Sa;
|