@everymatrix/player-account-self-exclusion 1.45.0 → 1.45.2
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/{PlayerAccountSelfExclusion-DNoiYhJ-.js → PlayerAccountSelfExclusion-C2aOmzgZ.js} +2284 -2284
- package/components/{PlayerAccountSelfExclusion-CzKls4E1.cjs → PlayerAccountSelfExclusion-DYvjvsCS.cjs} +147 -147
- package/es2015/player-account-self-exclusion.cjs +1 -1
- package/es2015/player-account-self-exclusion.js +1 -1
- package/package.json +2 -2
|
@@ -1,55 +1,55 @@
|
|
|
1
|
-
"use strict";var Ka=Object.defineProperty,Ja=Object.defineProperties;var Za=Object.getOwnPropertyDescriptors;var Ti=Object.getOwnPropertySymbols;var Qa=Object.prototype.hasOwnProperty,el=Object.prototype.propertyIsEnumerable;var Br=(t,r,e)=>r in t?Ka(t,r,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[r]=e,Jt=(t,r)=>{for(var e in r||(r={}))Qa.call(r,e)&&Br(t,e,r[e]);if(Ti)for(var e of Ti(r))el.call(r,e)&&Br(t,e,r[e]);return t},Zt=(t,r)=>Ja(t,Za(r));var _e=(t,r,e)=>Br(t,typeof r!="symbol"?r+"":r,e);var wt=(t,r,e)=>new Promise((o,i)=>{var s=l=>{try{a(e.next(l))}catch(u){i(u)}},n=l=>{try{a(e.throw(l))}catch(u){i(u)}},a=l=>l.done?o(l.value):Promise.resolve(l.value).then(s,n);a((e=e.apply(t,r)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function be(){}function Vs(t){return t()}function Pi(){return Object.create(null)}function _t(t){t.forEach(Vs)}function Zo(t){return typeof t=="function"}function Ys(t,r){return t!=t?r==r:t!==r||t&&typeof t=="object"||typeof t=="function"}function tl(t){return Object.keys(t).length===0}function Gs(t,...r){if(t==null){for(const o of r)o(void 0);return be}const e=t.subscribe(...r);return e.unsubscribe?()=>e.unsubscribe():e}function rl(t,r,e){t.$$.on_destroy.push(Gs(r,e))}function g(t,r){t.appendChild(r)}function ol(t,r,e){const o=il(t);if(!o.getElementById(r)){const i=B("style");i.id=r,i.textContent=e,sl(o,i)}}function il(t){if(!t)return document;const r=t.getRootNode?t.getRootNode():t.ownerDocument;return r&&r.host?r:t.ownerDocument}function sl(t,r){return g(t.head||t,r),r.sheet}function $e(t,r,e){t.insertBefore(r,e||null)}function Oe(t){t.parentNode&&t.parentNode.removeChild(t)}function nl(t,r){for(let e=0;e<t.length;e+=1)t[e]&&t[e].d(r)}function B(t){return document.createElement(t)}function Pe(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function re(t){return document.createTextNode(t)}function ie(){return re(" ")}function pr(t,r,e,o){return t.addEventListener(r,e,o),()=>t.removeEventListener(r,e,o)}function S(t,r,e){e==null?t.removeAttribute(r):t.getAttribute(r)!==e&&t.setAttribute(r,e)}function Je(t,r,e){const o=r.toLowerCase();o in t?t[o]=typeof t[o]=="boolean"&&e===""?!0:e:r in t?t[r]=typeof t[r]=="boolean"&&e===""?!0:e:S(t,r,e)}function al(t){return Array.from(t.childNodes)}function ae(t,r){r=""+r,t.data!==r&&(t.data=r)}function Ze(t,r,e){t.classList.toggle(r,!!e)}function ll(t){const r={};return t.childNodes.forEach(e=>{r[e.slot||"default"]=!0}),r}let It;function Ot(t){It=t}function ul(){if(!It)throw new Error("Function called outside component initialization");return It}function cl(t){ul().$$.on_mount.push(t)}const rt=[],fr=[];let it=[];const Di=[],hl=Promise.resolve();let mo=!1;function dl(){mo||(mo=!0,hl.then(Ce))}function _o(t){it.push(t)}const zr=new Set;let Qe=0;function Ce(){if(Qe!==0)return;const t=It;do{try{for(;Qe<rt.length;){const r=rt[Qe];Qe++,Ot(r),pl(r.$$)}}catch(r){throw rt.length=0,Qe=0,r}for(Ot(null),rt.length=0,Qe=0;fr.length;)fr.pop()();for(let r=0;r<it.length;r+=1){const e=it[r];zr.has(e)||(zr.add(e),e())}it.length=0}while(rt.length);for(;Di.length;)Di.pop()();mo=!1,zr.clear(),Ot(t)}function pl(t){if(t.fragment!==null){t.update(),_t(t.before_update);const r=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,r),t.after_update.forEach(_o)}}function fl(t){const r=[],e=[];it.forEach(o=>t.indexOf(o)===-1?r.push(o):e.push(o)),e.forEach(o=>o()),it=r}const ml=new Set;function _l(t,r){t&&t.i&&(ml.delete(t),t.i(r))}function ki(t){return(t==null?void 0:t.length)!==void 0?t:Array.from(t)}function vl(t,r,e){const{fragment:o,after_update:i}=t.$$;o&&o.m(r,e),_o(()=>{const s=t.$$.on_mount.map(Vs).filter(Zo);t.$$.on_destroy?t.$$.on_destroy.push(...s):_t(s),t.$$.on_mount=[]}),i.forEach(_o)}function gl(t,r){const e=t.$$;e.fragment!==null&&(fl(e.after_update),_t(e.on_destroy),e.fragment&&e.fragment.d(r),e.on_destroy=e.fragment=null,e.ctx=[])}function bl(t,r){t.$$.dirty[0]===-1&&(rt.push(t),dl(),t.$$.dirty.fill(0)),t.$$.dirty[r/31|0]|=1<<r%31}function yl(t,r,e,o,i,s,n=null,a=[-1]){const l=It;Ot(t);const u=t.$$={fragment:null,ctx:[],props:s,update:be,not_equal:i,bound:Pi(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(r.context||(l?l.$$.context:[])),callbacks:Pi(),dirty:a,skip_bound:!1,root:r.target||l.$$.root};n&&n(u.root);let c=!1;if(u.ctx=e?e(t,r.props||{},(h,d,...p)=>{const f=p.length?p[0]:d;return u.ctx&&i(u.ctx[h],u.ctx[h]=f)&&(!u.skip_bound&&u.bound[h]&&u.bound[h](f),c&&bl(t,h)),d}):[],u.update(),c=!0,_t(u.before_update),u.fragment=o?o(u.ctx):!1,r.target){if(r.hydrate){const h=al(r.target);u.fragment&&u.fragment.l(h),h.forEach(Oe)}else u.fragment&&u.fragment.c();r.intro&&_l(t.$$.fragment),vl(t,r.target,r.anchor),Ce()}Ot(l)}let Ws;typeof HTMLElement=="function"&&(Ws=class extends HTMLElement{constructor(r,e,o){super();_e(this,"$$ctor");_e(this,"$$s");_e(this,"$$c");_e(this,"$$cn",!1);_e(this,"$$d",{});_e(this,"$$r",!1);_e(this,"$$p_d",{});_e(this,"$$l",{});_e(this,"$$l_u",new Map);this.$$ctor=r,this.$$s=e,o&&this.attachShadow({mode:"open"})}addEventListener(r,e,o){if(this.$$l[r]=this.$$l[r]||[],this.$$l[r].push(e),this.$$c){const i=this.$$c.$on(r,e);this.$$l_u.set(e,i)}super.addEventListener(r,e,o)}removeEventListener(r,e,o){if(super.removeEventListener(r,e,o),this.$$c){const i=this.$$l_u.get(e);i&&(i(),this.$$l_u.delete(e))}}connectedCallback(){return wt(this,null,function*(){if(this.$$cn=!0,!this.$$c){let r=function(s){return()=>{let n;return{c:function(){n=B("slot"),s!=="default"&&S(n,"name",s)},m:function(u,c){$e(u,n,c)},d:function(u){u&&Oe(n)}}}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const e={},o=ll(this);for(const s of this.$$s)s in o&&(e[s]=[r(s)]);for(const s of this.attributes){const n=this.$$g_p(s.name);n in this.$$d||(this.$$d[n]=sr(n,s.value,this.$$p_d,"toProp"))}for(const s in this.$$p_d)!(s in this.$$d)&&this[s]!==void 0&&(this.$$d[s]=this[s],delete this[s]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:Zt(Jt({},this.$$d),{$$slots:e,$$scope:{ctx:[]}})});const i=()=>{this.$$r=!0;for(const s in this.$$p_d)if(this.$$d[s]=this.$$c.$$.ctx[this.$$c.$$.props[s]],this.$$p_d[s].reflect){const n=sr(s,this.$$d[s],this.$$p_d,"toAttribute");n==null?this.removeAttribute(this.$$p_d[s].attribute||s):this.setAttribute(this.$$p_d[s].attribute||s,n)}this.$$r=!1};this.$$c.$$.after_update.push(i),i();for(const s in this.$$l)for(const n of this.$$l[s]){const a=this.$$c.$on(s,n);this.$$l_u.set(n,a)}this.$$l={}}})}attributeChangedCallback(r,e,o){var i;this.$$r||(r=this.$$g_p(r),this.$$d[r]=sr(r,o,this.$$p_d,"toProp"),(i=this.$$c)==null||i.$set({[r]:this.$$d[r]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(r){return Object.keys(this.$$p_d).find(e=>this.$$p_d[e].attribute===r||!this.$$p_d[e].attribute&&e.toLowerCase()===r)||r}});function sr(t,r,e,o){var s;const i=(s=e[t])==null?void 0:s.type;if(r=i==="Boolean"&&typeof r!="boolean"?r!=null:r,!o||!e[t])return r;if(o==="toAttribute")switch(i){case"Object":case"Array":return r==null?null:JSON.stringify(r);case"Boolean":return r?"":null;case"Number":return r==null?null:r;default:return r}else switch(i){case"Object":case"Array":return r&&JSON.parse(r);case"Boolean":return r;case"Number":return r!=null?+r:r;default:return r}}function xl(t,r,e,o,i,s){let n=class extends Ws{constructor(){super(t,e,i),this.$$p_d=r}static get observedAttributes(){return Object.keys(r).map(a=>(r[a].attribute||a).toLowerCase())}};return Object.keys(r).forEach(a=>{Object.defineProperty(n.prototype,a,{get(){return this.$$c&&a in this.$$c?this.$$c[a]:this.$$d[a]},set(l){var u;l=sr(a,l,r),this.$$d[a]=l,(u=this.$$c)==null||u.$set({[a]:l})}})}),o.forEach(a=>{Object.defineProperty(n.prototype,a,{get(){var l;return(l=this.$$c)==null?void 0:l[a]}})}),t.element=n,n}class wl{constructor(){_e(this,"$$");_e(this,"$$set")}$destroy(){gl(this,1),this.$destroy=be}$on(r,e){if(!Zo(e))return be;const o=this.$$.callbacks[r]||(this.$$.callbacks[r]=[]);return o.push(e),()=>{const i=o.indexOf(e);i!==-1&&o.splice(i,1)}}$set(r){this.$$set&&!tl(r)&&(this.$$.skip_bound=!0,this.$$set(r),this.$$.skip_bound=!1)}}const El="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(El);var vo=function(t,r){return vo=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,o){e.__proto__=o}||function(e,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(e[i]=o[i])},vo(t,r)};function Me(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");vo(t,r);function e(){this.constructor=t}t.prototype=r===null?Object.create(r):(e.prototype=r.prototype,new e)}var H=function(){return H=Object.assign||function(r){for(var e,o=1,i=arguments.length;o<i;o++){e=arguments[o];for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&(r[s]=e[s])}return r},H.apply(this,arguments)};function Sl(t,r){var e={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&r.indexOf(o)<0&&(e[o]=t[o]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,o=Object.getOwnPropertySymbols(t);i<o.length;i++)r.indexOf(o[i])<0&&Object.prototype.propertyIsEnumerable.call(t,o[i])&&(e[o[i]]=t[o[i]]);return e}function go(t){var r=typeof Symbol=="function"&&Symbol.iterator,e=r&&t[r],o=0;if(e)return e.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&o>=t.length&&(t=void 0),{value:t&&t[o++],done:!t}}};throw new TypeError(r?"Object is not iterable.":"Symbol.iterator is not defined.")}function bo(t,r){var e=typeof Symbol=="function"&&t[Symbol.iterator];if(!e)return t;var o=e.call(t),i,s=[],n;try{for(;(r===void 0||r-- >0)&&!(i=o.next()).done;)s.push(i.value)}catch(a){n={error:a}}finally{try{i&&!i.done&&(e=o.return)&&e.call(o)}finally{if(n)throw n.error}}return s}function st(t,r,e){if(e||arguments.length===2)for(var o=0,i=r.length,s;o<i;o++)(s||!(o in r))&&(s||(s=Array.prototype.slice.call(r,0,o)),s[o]=r[o]);return t.concat(s||Array.prototype.slice.call(r))}function De(t){return typeof t=="function"}function qs(t){var r=function(o){Error.call(o),o.stack=new Error().stack},e=t(r);return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}var Fr=qs(function(t){return function(e){t(this),this.message=e?e.length+` errors occurred during unsubscription:
|
|
2
|
-
`+e.map(function(o
|
|
3
|
-
`):"",this.name="UnsubscriptionError",this.errors=e}});function yo(t,r){if(t){var e=t.indexOf(r);0<=e&&t.splice(e,1)}}var Ar=function(){function t(r){this.initialTeardown=r,this.closed=!1,this._parentage=null,this._finalizers=null}return t.prototype.unsubscribe=function(){var r,e,o,i,s;if(!this.closed){this.closed=!0;var n=this._parentage;if(n)if(this._parentage=null,Array.isArray(n))try{for(var a=go(n),l=a.next();!l.done;l=a.next()){var u=l.value;u.remove(this)}}catch(b){r={error:b}}finally{try{l&&!l.done&&(e=a.return)&&e.call(a)}finally{if(r)throw r.error}}else n.remove(this);var c=this.initialTeardown;if(De(c))try{c()}catch(b){s=b instanceof Fr?b.errors:[b]}var h=this._finalizers;if(h){this._finalizers=null;try{for(var d=go(h),p=d.next();!p.done;p=d.next()){var f=p.value;try{Oi(f)}catch(b){s=s!=null?s:[],b instanceof Fr?s=st(st([],bo(s)),bo(b.errors)):s.push(b)}}}catch(b){o={error:b}}finally{try{p&&!p.done&&(i=d.return)&&i.call(d)}finally{if(o)throw o.error}}}if(s)throw new Fr(s)}},t.prototype.add=function(r){var e;if(r&&r!==this)if(this.closed)Oi(r);else{if(r instanceof t){if(r.closed||r._hasParent(this))return;r._addParent(this)}(this._finalizers=(e=this._finalizers)!==null&&e!==void 0?e:[]).push(r)}},t.prototype._hasParent=function(r){var e=this._parentage;return e===r||Array.isArray(e)&&e.includes(r)},t.prototype._addParent=function(r){var e=this._parentage;this._parentage=Array.isArray(e)?(e.push(r),e):e?[e,r]:r},t.prototype._removeParent=function(r){var e=this._parentage;e===r?this._parentage=null:Array.isArray(e)&&yo(e,r)},t.prototype.remove=function(r){var e=this._finalizers;e&&yo(e,r),r instanceof t&&r._removeParent(this)},t.EMPTY=function(){var r=new t;return r.closed=!0,r}(),t}(),Xs=Ar.EMPTY;function Ks(t){return t instanceof Ar||t&&"closed"in t&&De(t.remove)&&De(t.add)&&De(t.unsubscribe)}function Oi(t){De(t)?t():t.unsubscribe()}var Js={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},Zs={setTimeout:function(t,r){for(var e=[],o=2;o<arguments.length;o++)e[o-2]=arguments[o];return setTimeout.apply(void 0,st([t,r],bo(e)))},clearTimeout:function(t){var r=Zs.delegate;return((r==null?void 0:r.clearTimeout)||clearTimeout)(t)},delegate:void 0};function Al(t){Zs.setTimeout(function(){throw t})}function Mi(){}function nr(t){t()}var Qs=function(t){Me(r,t);function r(e){var o=t.call(this)||this;return o.isStopped=!1,e?(o.destination=e,Ks(e)&&e.add(o)):o.destination=Dl,o}return r.create=function(e,o,i){return new xo(e,o,i)},r.prototype.next=function(e){this.isStopped||this._next(e)},r.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},r.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},r.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this),this.destination=null)},r.prototype._next=function(e){this.destination.next(e)},r.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},r.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},r}(Ar),Cl=Function.prototype.bind;function Rr(t,r){return Cl.call(t,r)}var Tl=function(){function t(r){this.partialObserver=r}return t.prototype.next=function(r){var e=this.partialObserver;if(e.next)try{e.next(r)}catch(o){Qt(o)}},t.prototype.error=function(r){var e=this.partialObserver;if(e.error)try{e.error(r)}catch(o){Qt(o)}else Qt(r)},t.prototype.complete=function(){var r=this.partialObserver;if(r.complete)try{r.complete()}catch(e){Qt(e)}},t}(),xo=function(t){Me(r,t);function r(e,o,i){var s=t.call(this)||this,n;if(De(e)||!e)n={next:e!=null?e:void 0,error:o!=null?o:void 0,complete:i!=null?i:void 0};else{var a;s&&Js.useDeprecatedNextContext?(a=Object.create(e),a.unsubscribe=function(){return s.unsubscribe()},n={next:e.next&&Rr(e.next,a),error:e.error&&Rr(e.error,a),complete:e.complete&&Rr(e.complete,a)}):n=e}return s.destination=new Tl(n),s}return r}(Qs);function Qt(t){Al(t)}function Pl(t){throw t}var Dl={closed:!0,next:Mi,error:Pl,complete:Mi},kl=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function Ol(t){return t}function Ml(t){return t.length===0?Ol:t.length===1?t[0]:function(e){return t.reduce(function(o,i){return i(o)},e)}}var Ii=function(){function t(r){r&&(this._subscribe=r)}return t.prototype.lift=function(r){var e=new t;return e.source=this,e.operator=r,e},t.prototype.subscribe=function(r,e,o){var i=this,s=Nl(r)?r:new xo(r,e,o);return nr(function(){var n=i,a=n.operator,l=n.source;s.add(a?a.call(s,l):l?i._subscribe(s):i._trySubscribe(s))}),s},t.prototype._trySubscribe=function(r){try{return this._subscribe(r)}catch(e){r.error(e)}},t.prototype.forEach=function(r,e){var o=this;return e=Ni(e),new e(function(i,s){var n=new xo({next:function(a){try{r(a)}catch(l){s(l),n.unsubscribe()}},error:s,complete:i});o.subscribe(n)})},t.prototype._subscribe=function(r){var e;return(e=this.source)===null||e===void 0?void 0:e.subscribe(r)},t.prototype[kl]=function(){return this},t.prototype.pipe=function(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];return Ml(r)(this)},t.prototype.toPromise=function(r){var e=this;return r=Ni(r),new r(function(o,i){var s;e.subscribe(function(n){return s=n},function(n){return i(n)},function(){return o(s)})})},t.create=function(r){return new t(r)},t}();function Ni(t){var r;return(r=t!=null?t:Js.Promise)!==null&&r!==void 0?r:Promise}function Il(t){return t&&De(t.next)&&De(t.error)&&De(t.complete)}function Nl(t){return t&&t instanceof Qs||Il(t)&&Ks(t)}var Ll=qs(function(t){return function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),en=function(t){Me(r,t);function r(){var e=t.call(this)||this;return e.closed=!1,e.currentObservers=null,e.observers=[],e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return r.prototype.lift=function(e){var o=new Li(this,this);return o.operator=e,o},r.prototype._throwIfClosed=function(){if(this.closed)throw new Ll},r.prototype.next=function(e){var o=this;nr(function(){var i,s;if(o._throwIfClosed(),!o.isStopped){o.currentObservers||(o.currentObservers=Array.from(o.observers));try{for(var n=go(o.currentObservers),a=n.next();!a.done;a=n.next()){var l=a.value;l.next(e)}}catch(u){i={error:u}}finally{try{a&&!a.done&&(s=n.return)&&s.call(n)}finally{if(i)throw i.error}}}})},r.prototype.error=function(e){var o=this;nr(function(){if(o._throwIfClosed(),!o.isStopped){o.hasError=o.isStopped=!0,o.thrownError=e;for(var i=o.observers;i.length;)i.shift().error(e)}})},r.prototype.complete=function(){var e=this;nr(function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var o=e.observers;o.length;)o.shift().complete()}})},r.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(r.prototype,"observed",{get:function(){var e;return((e=this.observers)===null||e===void 0?void 0:e.length)>0},enumerable:!1,configurable:!0}),r.prototype._trySubscribe=function(e){return this._throwIfClosed(),t.prototype._trySubscribe.call(this,e)},r.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},r.prototype._innerSubscribe=function(e){var o=this,i=this,s=i.hasError,n=i.isStopped,a=i.observers;return s||n?Xs:(this.currentObservers=null,a.push(e),new Ar(function(){o.currentObservers=null,yo(a,e)}))},r.prototype._checkFinalizedStatuses=function(e){var o=this,i=o.hasError,s=o.thrownError,n=o.isStopped;i?e.error(s):n&&e.complete()},r.prototype.asObservable=function(){var e=new Ii;return e.source=this,e},r.create=function(e,o){return new Li(e,o)},r}(Ii),Li=function(t){Me(r,t);function r(e,o){var i=t.call(this)||this;return i.destination=e,i.source=o,i}return r.prototype.next=function(e){var o,i;(i=(o=this.destination)===null||o===void 0?void 0:o.next)===null||i===void 0||i.call(o,e)},r.prototype.error=function(e){var o,i;(i=(o=this.destination)===null||o===void 0?void 0:o.error)===null||i===void 0||i.call(o,e)},r.prototype.complete=function(){var e,o;(o=(e=this.destination)===null||e===void 0?void 0:e.complete)===null||o===void 0||o.call(e)},r.prototype._subscribe=function(e){var o,i;return(i=(o=this.source)===null||o===void 0?void 0:o.subscribe(e))!==null&&i!==void 0?i:Xs},r}(en),tn={now:function(){return(tn.delegate||Date).now()},delegate:void 0},$l=function(t){Me(r,t);function r(e,o,i){e===void 0&&(e=1/0),o===void 0&&(o=1/0),i===void 0&&(i=tn);var s=t.call(this)||this;return s._bufferSize=e,s._windowTime=o,s._timestampProvider=i,s._buffer=[],s._infiniteTimeWindow=!0,s._infiniteTimeWindow=o===1/0,s._bufferSize=Math.max(1,e),s._windowTime=Math.max(1,o),s}return r.prototype.next=function(e){var o=this,i=o.isStopped,s=o._buffer,n=o._infiniteTimeWindow,a=o._timestampProvider,l=o._windowTime;i||(s.push(e),!n&&s.push(a.now()+l)),this._trimBuffer(),t.prototype.next.call(this,e)},r.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var o=this._innerSubscribe(e),i=this,s=i._infiniteTimeWindow,n=i._buffer,a=n.slice(),l=0;l<a.length&&!e.closed;l+=s?1:2)e.next(a[l]);return this._checkFinalizedStatuses(e),o},r.prototype._trimBuffer=function(){var e=this,o=e._bufferSize,i=e._timestampProvider,s=e._buffer,n=e._infiniteTimeWindow,a=(n?1:2)*o;if(o<1/0&&a<s.length&&s.splice(0,s.length-a),!n){for(var l=i.now(),u=0,c=1;c<s.length&&s[c]<=l;c+=2)u=c;u&&s.splice(0,u+1)}},r}(en);const $i=[],Hi={},Hl=(t,r=0)=>{if($i.indexOf(t)==-1){const e=new $l(r);Hi[t]=e,$i.push(t)}return Hi[t]},et=[];function Bl(t,r){return{subscribe:Cr(t,r).subscribe}}function Cr(t,r=be){let e;const o=new Set;function i(a){if(Ys(t,a)&&(t=a,e)){const l=!et.length;for(const u of o)u[1](),et.push(u,t);if(l){for(let u=0;u<et.length;u+=2)et[u][0](et[u+1]);et.length=0}}}function s(a){i(a(t))}function n(a,l=be){const u=[a,l];return o.add(u),o.size===1&&(e=r(i,s)||be),a(t),()=>{o.delete(u),o.size===0&&e&&(e(),e=null)}}return{set:i,update:s,subscribe:n}}function vt(t,r,e){const o=!Array.isArray(t),i=o?[t]:t;if(!i.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const s=r.length<2;return Bl(e,(n,a)=>{let l=!1;const u=[];let c=0,h=be;const d=()=>{if(c)return;h();const f=r(o?u[0]:u,n,a);s?n(f):h=Zo(f)?f:be},p=i.map((f,b)=>Gs(f,P=>{u[b]=P,c&=~(1<<b),l&&d()},()=>{c|=1<<b}));return l=!0,d(),function(){_t(p),h(),l=!1}})}var zl=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function rn(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Fl=function(r){return Rl(r)&&!Ul(r)};function Rl(t){return!!t&&typeof t=="object"}function Ul(t){var r=Object.prototype.toString.call(t);return r==="[object RegExp]"||r==="[object Date]"||Yl(t)}var jl=typeof Symbol=="function"&&Symbol.for,Vl=jl?Symbol.for("react.element"):60103;function Yl(t){return t.$$typeof===Vl}function Gl(t){return Array.isArray(t)?[]:{}}function Nt(t,r){return r.clone!==!1&&r.isMergeableObject(t)?ut(Gl(t),t,r):t}function Wl(t,r,e){return t.concat(r).map(function(o){return Nt(o,e)})}function ql(t,r){if(!r.customMerge)return ut;var e=r.customMerge(t);return typeof e=="function"?e:ut}function Xl(t){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(r){return Object.propertyIsEnumerable.call(t,r)}):[]}function Bi(t){return Object.keys(t).concat(Xl(t))}function on(t,r){try{return r in t}catch(e){return!1}}function Kl(t,r){return on(t,r)&&!(Object.hasOwnProperty.call(t,r)&&Object.propertyIsEnumerable.call(t,r))}function Jl(t,r,e){var o={};return e.isMergeableObject(t)&&Bi(t).forEach(function(i){o[i]=Nt(t[i],e)}),Bi(r).forEach(function(i){Kl(t,i)||(on(t,i)&&e.isMergeableObject(r[i])?o[i]=ql(i,e)(t[i],r[i],e):o[i]=Nt(r[i],e))}),o}function ut(t,r,e){e=e||{},e.arrayMerge=e.arrayMerge||Wl,e.isMergeableObject=e.isMergeableObject||Fl,e.cloneUnlessOtherwiseSpecified=Nt;var o=Array.isArray(r),i=Array.isArray(t),s=o===i;return s?o?e.arrayMerge(t,r,e):Jl(t,r,e):Nt(r,e)}ut.all=function(r,e){if(!Array.isArray(r))throw new Error("first argument should be an array");return r.reduce(function(o,i){return ut(o,i,e)},{})};var Zl=ut,Ql=Zl;const eu=rn(Ql);var O;(function(t){t[t.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",t[t.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",t[t.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",t[t.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",t[t.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",t[t.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",t[t.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",t[t.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",t[t.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",t[t.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",t[t.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",t[t.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",t[t.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",t[t.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",t[t.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",t[t.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",t[t.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",t[t.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",t[t.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",t[t.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",t[t.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",t[t.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",t[t.INVALID_TAG=23]="INVALID_TAG",t[t.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",t[t.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",t[t.UNCLOSED_TAG=27]="UNCLOSED_TAG"})(O||(O={}));var V;(function(t){t[t.literal=0]="literal",t[t.argument=1]="argument",t[t.number=2]="number",t[t.date=3]="date",t[t.time=4]="time",t[t.select=5]="select",t[t.plural=6]="plural",t[t.pound=7]="pound",t[t.tag=8]="tag"})(V||(V={}));var ct;(function(t){t[t.number=0]="number",t[t.dateTime=1]="dateTime"})(ct||(ct={}));function zi(t){return t.type===V.literal}function tu(t){return t.type===V.argument}function sn(t){return t.type===V.number}function nn(t){return t.type===V.date}function an(t){return t.type===V.time}function ln(t){return t.type===V.select}function un(t){return t.type===V.plural}function ru(t){return t.type===V.pound}function cn(t){return t.type===V.tag}function hn(t){return!!(t&&typeof t=="object"&&t.type===ct.number)}function wo(t){return!!(t&&typeof t=="object"&&t.type===ct.dateTime)}var dn=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,ou=/(?:[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 iu(t){var r={};return t.replace(ou,function(e){var o=e.length;switch(e[0]){case"G":r.era=o===4?"long":o===5?"narrow":"short";break;case"y":r.year=o===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":r.month=["numeric","2-digit","short","long","narrow"][o-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":r.day=["numeric","2-digit"][o-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":r.weekday=o===4?"long":o===5?"narrow":"short";break;case"e":if(o<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");r.weekday=["short","long","narrow","short"][o-4];break;case"c":if(o<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");r.weekday=["short","long","narrow","short"][o-4];break;case"a":r.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":r.hourCycle="h12",r.hour=["numeric","2-digit"][o-1];break;case"H":r.hourCycle="h23",r.hour=["numeric","2-digit"][o-1];break;case"K":r.hourCycle="h11",r.hour=["numeric","2-digit"][o-1];break;case"k":r.hourCycle="h24",r.hour=["numeric","2-digit"][o-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":r.minute=["numeric","2-digit"][o-1];break;case"s":r.second=["numeric","2-digit"][o-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":r.timeZoneName=o<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""}),r}var su=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function nu(t){if(t.length===0)throw new Error("Number skeleton cannot be empty");for(var r=t.split(su).filter(function(d){return d.length>0}),e=[],o=0,i=r;o<i.length;o++){var s=i[o],n=s.split("/");if(n.length===0)throw new Error("Invalid number skeleton");for(var a=n[0],l=n.slice(1),u=0,c=l;u<c.length;u++){var h=c[u];if(h.length===0)throw new Error("Invalid number skeleton")}e.push({stem:a,options:l})}return e}function au(t){return t.replace(/^(.*?)-/,"")}var Fi=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,pn=/^(@+)?(\+|#+)?[rs]?$/g,lu=/(\*)(0+)|(#+)(0+)|(0+)/g,fn=/^(0+)$/;function Ri(t){var r={};return t[t.length-1]==="r"?r.roundingPriority="morePrecision":t[t.length-1]==="s"&&(r.roundingPriority="lessPrecision"),t.replace(pn,function(e,o,i){return typeof i!="string"?(r.minimumSignificantDigits=o.length,r.maximumSignificantDigits=o.length):i==="+"?r.minimumSignificantDigits=o.length:o[0]==="#"?r.maximumSignificantDigits=o.length:(r.minimumSignificantDigits=o.length,r.maximumSignificantDigits=o.length+(typeof i=="string"?i.length:0)),""}),r}function mn(t){switch(t){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 uu(t){var r;if(t[0]==="E"&&t[1]==="E"?(r={notation:"engineering"},t=t.slice(2)):t[0]==="E"&&(r={notation:"scientific"},t=t.slice(1)),r){var e=t.slice(0,2);if(e==="+!"?(r.signDisplay="always",t=t.slice(2)):e==="+?"&&(r.signDisplay="exceptZero",t=t.slice(2)),!fn.test(t))throw new Error("Malformed concise eng/scientific notation");r.minimumIntegerDigits=t.length}return r}function Ui(t){var r={},e=mn(t);return e||r}function cu(t){for(var r={},e=0,o=t;e<o.length;e++){var i=o[e];switch(i.stem){case"percent":case"%":r.style="percent";continue;case"%x100":r.style="percent",r.scale=100;continue;case"currency":r.style="currency",r.currency=i.options[0];continue;case"group-off":case",_":r.useGrouping=!1;continue;case"precision-integer":case".":r.maximumFractionDigits=0;continue;case"measure-unit":case"unit":r.style="unit",r.unit=au(i.options[0]);continue;case"compact-short":case"K":r.notation="compact",r.compactDisplay="short";continue;case"compact-long":case"KK":r.notation="compact",r.compactDisplay="long";continue;case"scientific":r=H(H(H({},r),{notation:"scientific"}),i.options.reduce(function(l,u){return H(H({},l),Ui(u))},{}));continue;case"engineering":r=H(H(H({},r),{notation:"engineering"}),i.options.reduce(function(l,u){return H(H({},l),Ui(u))},{}));continue;case"notation-simple":r.notation="standard";continue;case"unit-width-narrow":r.currencyDisplay="narrowSymbol",r.unitDisplay="narrow";continue;case"unit-width-short":r.currencyDisplay="code",r.unitDisplay="short";continue;case"unit-width-full-name":r.currencyDisplay="name",r.unitDisplay="long";continue;case"unit-width-iso-code":r.currencyDisplay="symbol";continue;case"scale":r.scale=parseFloat(i.options[0]);continue;case"rounding-mode-floor":r.roundingMode="floor";continue;case"rounding-mode-ceiling":r.roundingMode="ceil";continue;case"rounding-mode-down":r.roundingMode="trunc";continue;case"rounding-mode-up":r.roundingMode="expand";continue;case"rounding-mode-half-even":r.roundingMode="halfEven";continue;case"rounding-mode-half-down":r.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":r.roundingMode="halfExpand";continue;case"integer-width":if(i.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(lu,function(l,u,c,h,d,p){if(u)r.minimumIntegerDigits=c.length;else{if(h&&d)throw new Error("We currently do not support maximum integer digits");if(p)throw new Error("We currently do not support exact integer digits")}return""});continue}if(fn.test(i.stem)){r.minimumIntegerDigits=i.stem.length;continue}if(Fi.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(Fi,function(l,u,c,h,d,p){return c==="*"?r.minimumFractionDigits=u.length:h&&h[0]==="#"?r.maximumFractionDigits=h.length:d&&p?(r.minimumFractionDigits=d.length,r.maximumFractionDigits=d.length+p.length):(r.minimumFractionDigits=u.length,r.maximumFractionDigits=u.length),""});var s=i.options[0];s==="w"?r=H(H({},r),{trailingZeroDisplay:"stripIfInteger"}):s&&(r=H(H({},r),Ri(s)));continue}if(pn.test(i.stem)){r=H(H({},r),Ri(i.stem));continue}var n=mn(i.stem);n&&(r=H(H({},r),n));var a=uu(i.stem);a&&(r=H(H({},r),a))}return r}var er={"001":["H","h"],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","hB","h","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","hB","h","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","hB","h","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"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["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 hu(t,r){for(var e="",o=0;o<t.length;o++){var i=t.charAt(o);if(i==="j"){for(var s=0;o+1<t.length&&t.charAt(o+1)===i;)s++,o++;var n=1+(s&1),a=s<2?1:3+(s>>1),l="a",u=du(r);for((u=="H"||u=="k")&&(a=0);a-- >0;)e+=l;for(;n-- >0;)e=u+e}else i==="J"?e+="H":e+=i}return e}function du(t){var r=t.hourCycle;if(r===void 0&&t.hourCycles&&t.hourCycles.length&&(r=t.hourCycles[0]),r)switch(r){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var e=t.language,o;e!=="root"&&(o=t.maximize().region);var i=er[o||""]||er[e||""]||er["".concat(e,"-001")]||er["001"];return i[0]}var Ur,pu=new RegExp("^".concat(dn.source,"*")),fu=new RegExp("".concat(dn.source,"*$"));function I(t,r){return{start:t,end:r}}var mu=!!String.prototype.startsWith&&"_a".startsWith("a",1),_u=!!String.fromCodePoint,vu=!!Object.fromEntries,gu=!!String.prototype.codePointAt,bu=!!String.prototype.trimStart,yu=!!String.prototype.trimEnd,xu=!!Number.isSafeInteger,wu=xu?Number.isSafeInteger:function(t){return typeof t=="number"&&isFinite(t)&&Math.floor(t)===t&&Math.abs(t)<=9007199254740991},Eo=!0;try{var Eu=vn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Eo=((Ur=Eu.exec("a"))===null||Ur===void 0?void 0:Ur[0])==="a"}catch(t){Eo=!1}var ji=mu?function(r,e,o){return r.startsWith(e,o)}:function(r,e,o){return r.slice(o,o+e.length)===e},So=_u?String.fromCodePoint:function(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];for(var o="",i=r.length,s=0,n;i>s;){if(n=r[s++],n>1114111)throw RangeError(n+" is not a valid code point");o+=n<65536?String.fromCharCode(n):String.fromCharCode(((n-=65536)>>10)+55296,n%1024+56320)}return o},Vi=vu?Object.fromEntries:function(r){for(var e={},o=0,i=r;o<i.length;o++){var s=i[o],n=s[0],a=s[1];e[n]=a}return e},_n=gu?function(r,e){return r.codePointAt(e)}:function(r,e){var o=r.length;if(!(e<0||e>=o)){var i=r.charCodeAt(e),s;return i<55296||i>56319||e+1===o||(s=r.charCodeAt(e+1))<56320||s>57343?i:(i-55296<<10)+(s-56320)+65536}},Su=bu?function(r){return r.trimStart()}:function(r){return r.replace(pu,"")},Au=yu?function(r){return r.trimEnd()}:function(r){return r.replace(fu,"")};function vn(t,r){return new RegExp(t,r)}var Ao;if(Eo){var Yi=vn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Ao=function(r,e){var o;Yi.lastIndex=e;var i=Yi.exec(r);return(o=i[1])!==null&&o!==void 0?o:""}}else Ao=function(r,e){for(var o=[];;){var i=_n(r,e);if(i===void 0||gn(i)||Du(i))break;o.push(i),e+=i>=65536?2:1}return So.apply(void 0,o)};var Cu=function(){function t(r,e){e===void 0&&(e={}),this.message=r,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 t.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},t.prototype.parseMessage=function(r,e,o){for(var i=[];!this.isEOF();){var s=this.char();if(s===123){var n=this.parseArgument(r,o);if(n.err)return n;i.push(n.val)}else{if(s===125&&r>0)break;if(s===35&&(e==="plural"||e==="selectordinal")){var a=this.clonePosition();this.bump(),i.push({type:V.pound,location:I(a,this.clonePosition())})}else if(s===60&&!this.ignoreTag&&this.peek()===47){if(o)break;return this.error(O.UNMATCHED_CLOSING_TAG,I(this.clonePosition(),this.clonePosition()))}else if(s===60&&!this.ignoreTag&&Co(this.peek()||0)){var n=this.parseTag(r,e);if(n.err)return n;i.push(n.val)}else{var n=this.parseLiteral(r,e);if(n.err)return n;i.push(n.val)}}}return{val:i,err:null}},t.prototype.parseTag=function(r,e){var o=this.clonePosition();this.bump();var i=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:V.literal,value:"<".concat(i,"/>"),location:I(o,this.clonePosition())},err:null};if(this.bumpIf(">")){var s=this.parseMessage(r+1,e,!0);if(s.err)return s;var n=s.val,a=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!Co(this.char()))return this.error(O.INVALID_TAG,I(a,this.clonePosition()));var l=this.clonePosition(),u=this.parseTagName();return i!==u?this.error(O.UNMATCHED_CLOSING_TAG,I(l,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:V.tag,value:i,children:n,location:I(o,this.clonePosition())},err:null}:this.error(O.INVALID_TAG,I(a,this.clonePosition())))}else return this.error(O.UNCLOSED_TAG,I(o,this.clonePosition()))}else return this.error(O.INVALID_TAG,I(o,this.clonePosition()))},t.prototype.parseTagName=function(){var r=this.offset();for(this.bump();!this.isEOF()&&Pu(this.char());)this.bump();return this.message.slice(r,this.offset())},t.prototype.parseLiteral=function(r,e){for(var o=this.clonePosition(),i="";;){var s=this.tryParseQuote(e);if(s){i+=s;continue}var n=this.tryParseUnquoted(r,e);if(n){i+=n;continue}var a=this.tryParseLeftAngleBracket();if(a){i+=a;continue}break}var l=I(o,this.clonePosition());return{val:{type:V.literal,value:i,location:l},err:null}},t.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!Tu(this.peek()||0))?(this.bump(),"<"):null},t.prototype.tryParseQuote=function(r){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(r==="plural"||r==="selectordinal")break;return null;default:return null}this.bump();var e=[this.char()];for(this.bump();!this.isEOF();){var o=this.char();if(o===39)if(this.peek()===39)e.push(39),this.bump();else{this.bump();break}else e.push(o);this.bump()}return So.apply(void 0,e)},t.prototype.tryParseUnquoted=function(r,e){if(this.isEOF())return null;var o=this.char();return o===60||o===123||o===35&&(e==="plural"||e==="selectordinal")||o===125&&r>0?null:(this.bump(),So(o))},t.prototype.parseArgument=function(r,e){var o=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(O.EXPECT_ARGUMENT_CLOSING_BRACE,I(o,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(O.EMPTY_ARGUMENT,I(o,this.clonePosition()));var i=this.parseIdentifierIfPossible().value;if(!i)return this.error(O.MALFORMED_ARGUMENT,I(o,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(O.EXPECT_ARGUMENT_CLOSING_BRACE,I(o,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:V.argument,value:i,location:I(o,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(O.EXPECT_ARGUMENT_CLOSING_BRACE,I(o,this.clonePosition())):this.parseArgumentOptions(r,e,i,o);default:return this.error(O.MALFORMED_ARGUMENT,I(o,this.clonePosition()))}},t.prototype.parseIdentifierIfPossible=function(){var r=this.clonePosition(),e=this.offset(),o=Ao(this.message,e),i=e+o.length;this.bumpTo(i);var s=this.clonePosition(),n=I(r,s);return{value:o,location:n}},t.prototype.parseArgumentOptions=function(r,e,o,i){var s,n=this.clonePosition(),a=this.parseIdentifierIfPossible().value,l=this.clonePosition();switch(a){case"":return this.error(O.EXPECT_ARGUMENT_TYPE,I(n,l));case"number":case"date":case"time":{this.bumpSpace();var u=null;if(this.bumpIf(",")){this.bumpSpace();var c=this.clonePosition(),h=this.parseSimpleArgStyleIfPossible();if(h.err)return h;var d=Au(h.val);if(d.length===0)return this.error(O.EXPECT_ARGUMENT_STYLE,I(this.clonePosition(),this.clonePosition()));var p=I(c,this.clonePosition());u={style:d,styleLocation:p}}var f=this.tryParseArgumentClose(i);if(f.err)return f;var b=I(i,this.clonePosition());if(u&&ji(u==null?void 0:u.style,"::",0)){var P=Su(u.style.slice(2));if(a==="number"){var h=this.parseNumberSkeletonFromString(P,u.styleLocation);return h.err?h:{val:{type:V.number,value:o,location:b,style:h.val},err:null}}else{if(P.length===0)return this.error(O.EXPECT_DATE_TIME_SKELETON,b);var D=P;this.locale&&(D=hu(P,this.locale));var d={type:ct.dateTime,pattern:D,location:u.styleLocation,parsedOptions:this.shouldParseSkeletons?iu(D):{}},M=a==="date"?V.date:V.time;return{val:{type:M,value:o,location:b,style:d},err:null}}}return{val:{type:a==="number"?V.number:a==="date"?V.date:V.time,value:o,location:b,style:(s=u==null?void 0:u.style)!==null&&s!==void 0?s:null},err:null}}case"plural":case"selectordinal":case"select":{var z=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(O.EXPECT_SELECT_ARGUMENT_OPTIONS,I(z,H({},z)));this.bumpSpace();var ee=this.parseIdentifierIfPossible(),F=0;if(a!=="select"&&ee.value==="offset"){if(!this.bumpIf(":"))return this.error(O.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,I(this.clonePosition(),this.clonePosition()));this.bumpSpace();var h=this.tryParseDecimalInteger(O.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,O.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(h.err)return h;this.bumpSpace(),ee=this.parseIdentifierIfPossible(),F=h.val}var X=this.tryParsePluralOrSelectOptions(r,a,e,ee);if(X.err)return X;var f=this.tryParseArgumentClose(i);if(f.err)return f;var fe=I(i,this.clonePosition());return a==="select"?{val:{type:V.select,value:o,options:Vi(X.val),location:fe},err:null}:{val:{type:V.plural,value:o,options:Vi(X.val),offset:F,pluralType:a==="plural"?"cardinal":"ordinal",location:fe},err:null}}default:return this.error(O.INVALID_ARGUMENT_TYPE,I(n,l))}},t.prototype.tryParseArgumentClose=function(r){return this.isEOF()||this.char()!==125?this.error(O.EXPECT_ARGUMENT_CLOSING_BRACE,I(r,this.clonePosition())):(this.bump(),{val:!0,err:null})},t.prototype.parseSimpleArgStyleIfPossible=function(){for(var r=0,e=this.clonePosition();!this.isEOF();){var o=this.char();switch(o){case 39:{this.bump();var i=this.clonePosition();if(!this.bumpUntil("'"))return this.error(O.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,I(i,this.clonePosition()));this.bump();break}case 123:{r+=1,this.bump();break}case 125:{if(r>0)r-=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}},t.prototype.parseNumberSkeletonFromString=function(r,e){var o=[];try{o=nu(r)}catch(i){return this.error(O.INVALID_NUMBER_SKELETON,e)}return{val:{type:ct.number,tokens:o,location:e,parsedOptions:this.shouldParseSkeletons?cu(o):{}},err:null}},t.prototype.tryParsePluralOrSelectOptions=function(r,e,o,i){for(var s,n=!1,a=[],l=new Set,u=i.value,c=i.location;;){if(u.length===0){var h=this.clonePosition();if(e!=="select"&&this.bumpIf("=")){var d=this.tryParseDecimalInteger(O.EXPECT_PLURAL_ARGUMENT_SELECTOR,O.INVALID_PLURAL_ARGUMENT_SELECTOR);if(d.err)return d;c=I(h,this.clonePosition()),u=this.message.slice(h.offset,this.offset())}else break}if(l.has(u))return this.error(e==="select"?O.DUPLICATE_SELECT_ARGUMENT_SELECTOR:O.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,c);u==="other"&&(n=!0),this.bumpSpace();var p=this.clonePosition();if(!this.bumpIf("{"))return this.error(e==="select"?O.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:O.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,I(this.clonePosition(),this.clonePosition()));var f=this.parseMessage(r+1,e,o);if(f.err)return f;var b=this.tryParseArgumentClose(p);if(b.err)return b;a.push([u,{value:f.val,location:I(p,this.clonePosition())}]),l.add(u),this.bumpSpace(),s=this.parseIdentifierIfPossible(),u=s.value,c=s.location}return a.length===0?this.error(e==="select"?O.EXPECT_SELECT_ARGUMENT_SELECTOR:O.EXPECT_PLURAL_ARGUMENT_SELECTOR,I(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!n?this.error(O.MISSING_OTHER_CLAUSE,I(this.clonePosition(),this.clonePosition())):{val:a,err:null}},t.prototype.tryParseDecimalInteger=function(r,e){var o=1,i=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(o=-1);for(var s=!1,n=0;!this.isEOF();){var a=this.char();if(a>=48&&a<=57)s=!0,n=n*10+(a-48),this.bump();else break}var l=I(i,this.clonePosition());return s?(n*=o,wu(n)?{val:n,err:null}:this.error(e,l)):this.error(r,l)},t.prototype.offset=function(){return this.position.offset},t.prototype.isEOF=function(){return this.offset()===this.message.length},t.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},t.prototype.char=function(){var r=this.position.offset;if(r>=this.message.length)throw Error("out of bound");var e=_n(this.message,r);if(e===void 0)throw Error("Offset ".concat(r," is at invalid UTF-16 code unit boundary"));return e},t.prototype.error=function(r,e){return{val:null,err:{kind:r,message:this.message,location:e}}},t.prototype.bump=function(){if(!this.isEOF()){var r=this.char();r===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=r<65536?1:2)}},t.prototype.bumpIf=function(r){if(ji(this.message,r,this.offset())){for(var e=0;e<r.length;e++)this.bump();return!0}return!1},t.prototype.bumpUntil=function(r){var e=this.offset(),o=this.message.indexOf(r,e);return o>=0?(this.bumpTo(o),!0):(this.bumpTo(this.message.length),!1)},t.prototype.bumpTo=function(r){if(this.offset()>r)throw Error("targetOffset ".concat(r," must be greater than or equal to the current offset ").concat(this.offset()));for(r=Math.min(r,this.message.length);;){var e=this.offset();if(e===r)break;if(e>r)throw Error("targetOffset ".concat(r," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},t.prototype.bumpSpace=function(){for(;!this.isEOF()&&gn(this.char());)this.bump()},t.prototype.peek=function(){if(this.isEOF())return null;var r=this.char(),e=this.offset(),o=this.message.charCodeAt(e+(r>=65536?2:1));return o!=null?o:null},t}();function Co(t){return t>=97&&t<=122||t>=65&&t<=90}function Tu(t){return Co(t)||t===47}function Pu(t){return t===45||t===46||t>=48&&t<=57||t===95||t>=97&&t<=122||t>=65&&t<=90||t==183||t>=192&&t<=214||t>=216&&t<=246||t>=248&&t<=893||t>=895&&t<=8191||t>=8204&&t<=8205||t>=8255&&t<=8256||t>=8304&&t<=8591||t>=11264&&t<=12271||t>=12289&&t<=55295||t>=63744&&t<=64975||t>=65008&&t<=65533||t>=65536&&t<=983039}function gn(t){return t>=9&&t<=13||t===32||t===133||t>=8206&&t<=8207||t===8232||t===8233}function Du(t){return t>=33&&t<=35||t===36||t>=37&&t<=39||t===40||t===41||t===42||t===43||t===44||t===45||t>=46&&t<=47||t>=58&&t<=59||t>=60&&t<=62||t>=63&&t<=64||t===91||t===92||t===93||t===94||t===96||t===123||t===124||t===125||t===126||t===161||t>=162&&t<=165||t===166||t===167||t===169||t===171||t===172||t===174||t===176||t===177||t===182||t===187||t===191||t===215||t===247||t>=8208&&t<=8213||t>=8214&&t<=8215||t===8216||t===8217||t===8218||t>=8219&&t<=8220||t===8221||t===8222||t===8223||t>=8224&&t<=8231||t>=8240&&t<=8248||t===8249||t===8250||t>=8251&&t<=8254||t>=8257&&t<=8259||t===8260||t===8261||t===8262||t>=8263&&t<=8273||t===8274||t===8275||t>=8277&&t<=8286||t>=8592&&t<=8596||t>=8597&&t<=8601||t>=8602&&t<=8603||t>=8604&&t<=8607||t===8608||t>=8609&&t<=8610||t===8611||t>=8612&&t<=8613||t===8614||t>=8615&&t<=8621||t===8622||t>=8623&&t<=8653||t>=8654&&t<=8655||t>=8656&&t<=8657||t===8658||t===8659||t===8660||t>=8661&&t<=8691||t>=8692&&t<=8959||t>=8960&&t<=8967||t===8968||t===8969||t===8970||t===8971||t>=8972&&t<=8991||t>=8992&&t<=8993||t>=8994&&t<=9e3||t===9001||t===9002||t>=9003&&t<=9083||t===9084||t>=9085&&t<=9114||t>=9115&&t<=9139||t>=9140&&t<=9179||t>=9180&&t<=9185||t>=9186&&t<=9254||t>=9255&&t<=9279||t>=9280&&t<=9290||t>=9291&&t<=9311||t>=9472&&t<=9654||t===9655||t>=9656&&t<=9664||t===9665||t>=9666&&t<=9719||t>=9720&&t<=9727||t>=9728&&t<=9838||t===9839||t>=9840&&t<=10087||t===10088||t===10089||t===10090||t===10091||t===10092||t===10093||t===10094||t===10095||t===10096||t===10097||t===10098||t===10099||t===10100||t===10101||t>=10132&&t<=10175||t>=10176&&t<=10180||t===10181||t===10182||t>=10183&&t<=10213||t===10214||t===10215||t===10216||t===10217||t===10218||t===10219||t===10220||t===10221||t===10222||t===10223||t>=10224&&t<=10239||t>=10240&&t<=10495||t>=10496&&t<=10626||t===10627||t===10628||t===10629||t===10630||t===10631||t===10632||t===10633||t===10634||t===10635||t===10636||t===10637||t===10638||t===10639||t===10640||t===10641||t===10642||t===10643||t===10644||t===10645||t===10646||t===10647||t===10648||t>=10649&&t<=10711||t===10712||t===10713||t===10714||t===10715||t>=10716&&t<=10747||t===10748||t===10749||t>=10750&&t<=11007||t>=11008&&t<=11055||t>=11056&&t<=11076||t>=11077&&t<=11078||t>=11079&&t<=11084||t>=11085&&t<=11123||t>=11124&&t<=11125||t>=11126&&t<=11157||t===11158||t>=11159&&t<=11263||t>=11776&&t<=11777||t===11778||t===11779||t===11780||t===11781||t>=11782&&t<=11784||t===11785||t===11786||t===11787||t===11788||t===11789||t>=11790&&t<=11798||t===11799||t>=11800&&t<=11801||t===11802||t===11803||t===11804||t===11805||t>=11806&&t<=11807||t===11808||t===11809||t===11810||t===11811||t===11812||t===11813||t===11814||t===11815||t===11816||t===11817||t>=11818&&t<=11822||t===11823||t>=11824&&t<=11833||t>=11834&&t<=11835||t>=11836&&t<=11839||t===11840||t===11841||t===11842||t>=11843&&t<=11855||t>=11856&&t<=11857||t===11858||t>=11859&&t<=11903||t>=12289&&t<=12291||t===12296||t===12297||t===12298||t===12299||t===12300||t===12301||t===12302||t===12303||t===12304||t===12305||t>=12306&&t<=12307||t===12308||t===12309||t===12310||t===12311||t===12312||t===12313||t===12314||t===12315||t===12316||t===12317||t>=12318&&t<=12319||t===12320||t===12336||t===64830||t===64831||t>=65093&&t<=65094}function To(t){t.forEach(function(r){if(delete r.location,ln(r)||un(r))for(var e in r.options)delete r.options[e].location,To(r.options[e].value);else sn(r)&&hn(r.style)||(nn(r)||an(r))&&wo(r.style)?delete r.style.location:cn(r)&&To(r.children)})}function ku(t,r){r===void 0&&(r={}),r=H({shouldParseSkeletons:!0,requiresOtherClause:!0},r);var e=new Cu(t,r).parse();if(e.err){var o=SyntaxError(O[e.err.kind]);throw o.location=e.err.location,o.originalMessage=e.err.message,o}return r!=null&&r.captureLocation||To(e.val),e.val}function jr(t,r){var e=r&&r.cache?r.cache:$u,o=r&&r.serializer?r.serializer:Lu,i=r&&r.strategy?r.strategy:Mu;return i(t,{cache:e,serializer:o})}function Ou(t){return t==null||typeof t=="number"||typeof t=="boolean"}function bn(t,r,e,o){var i=Ou(o)?o:e(o),s=r.get(i);return typeof s=="undefined"&&(s=t.call(this,o),r.set(i,s)),s}function yn(t,r,e){var o=Array.prototype.slice.call(arguments,3),i=e(o),s=r.get(i);return typeof s=="undefined"&&(s=t.apply(this,o),r.set(i,s)),s}function Qo(t,r,e,o,i){return e.bind(r,t,o,i)}function Mu(t,r){var e=t.length===1?bn:yn;return Qo(t,this,e,r.cache.create(),r.serializer)}function Iu(t,r){return Qo(t,this,yn,r.cache.create(),r.serializer)}function Nu(t,r){return Qo(t,this,bn,r.cache.create(),r.serializer)}var Lu=function(){return JSON.stringify(arguments)};function ei(){this.cache=Object.create(null)}ei.prototype.get=function(t){return this.cache[t]};ei.prototype.set=function(t,r){this.cache[t]=r};var $u={create:function(){return new ei}},Vr={variadic:Iu,monadic:Nu},ht;(function(t){t.MISSING_VALUE="MISSING_VALUE",t.INVALID_VALUE="INVALID_VALUE",t.MISSING_INTL_API="MISSING_INTL_API"})(ht||(ht={}));var Tr=function(t){Me(r,t);function r(e,o,i){var s=t.call(this,e)||this;return s.code=o,s.originalMessage=i,s}return r.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},r}(Error),Gi=function(t){Me(r,t);function r(e,o,i,s){return t.call(this,'Invalid values for "'.concat(e,'": "').concat(o,'". Options are "').concat(Object.keys(i).join('", "'),'"'),ht.INVALID_VALUE,s)||this}return r}(Tr),Hu=function(t){Me(r,t);function r(e,o,i){return t.call(this,'Value for "'.concat(e,'" must be of type ').concat(o),ht.INVALID_VALUE,i)||this}return r}(Tr),Bu=function(t){Me(r,t);function r(e,o){return t.call(this,'The intl string context variable "'.concat(e,'" was not provided to the string "').concat(o,'"'),ht.MISSING_VALUE,o)||this}return r}(Tr),ne;(function(t){t[t.literal=0]="literal",t[t.object=1]="object"})(ne||(ne={}));function zu(t){return t.length<2?t:t.reduce(function(r,e){var o=r[r.length-1];return!o||o.type!==ne.literal||e.type!==ne.literal?r.push(e):o.value+=e.value,r},[])}function Fu(t){return typeof t=="function"}function ar(t,r,e,o,i,s,n){if(t.length===1&&zi(t[0]))return[{type:ne.literal,value:t[0].value}];for(var a=[],l=0,u=t;l<u.length;l++){var c=u[l];if(zi(c)){a.push({type:ne.literal,value:c.value});continue}if(ru(c)){typeof s=="number"&&a.push({type:ne.literal,value:e.getNumberFormat(r).format(s)});continue}var h=c.value;if(!(i&&h in i))throw new Bu(h,n);var d=i[h];if(tu(c)){(!d||typeof d=="string"||typeof d=="number")&&(d=typeof d=="string"||typeof d=="number"?String(d):""),a.push({type:typeof d=="string"?ne.literal:ne.object,value:d});continue}if(nn(c)){var p=typeof c.style=="string"?o.date[c.style]:wo(c.style)?c.style.parsedOptions:void 0;a.push({type:ne.literal,value:e.getDateTimeFormat(r,p).format(d)});continue}if(an(c)){var p=typeof c.style=="string"?o.time[c.style]:wo(c.style)?c.style.parsedOptions:o.time.medium;a.push({type:ne.literal,value:e.getDateTimeFormat(r,p).format(d)});continue}if(sn(c)){var p=typeof c.style=="string"?o.number[c.style]:hn(c.style)?c.style.parsedOptions:void 0;p&&p.scale&&(d=d*(p.scale||1)),a.push({type:ne.literal,value:e.getNumberFormat(r,p).format(d)});continue}if(cn(c)){var f=c.children,b=c.value,P=i[b];if(!Fu(P))throw new Hu(b,"function",n);var D=ar(f,r,e,o,i,s),M=P(D.map(function(F){return F.value}));Array.isArray(M)||(M=[M]),a.push.apply(a,M.map(function(F){return{type:typeof F=="string"?ne.literal:ne.object,value:F}}))}if(ln(c)){var z=c.options[d]||c.options.other;if(!z)throw new Gi(c.value,d,Object.keys(c.options),n);a.push.apply(a,ar(z.value,r,e,o,i));continue}if(un(c)){var z=c.options["=".concat(d)];if(!z){if(!Intl.PluralRules)throw new Tr(`Intl.PluralRules is not available in this environment.
|
|
1
|
+
"use strict";var Ka=Object.defineProperty,Ja=Object.defineProperties;var Za=Object.getOwnPropertyDescriptors;var To=Object.getOwnPropertySymbols;var Qa=Object.prototype.hasOwnProperty,el=Object.prototype.propertyIsEnumerable;var Br=(t,r,e)=>r in t?Ka(t,r,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[r]=e,Jt=(t,r)=>{for(var e in r||(r={}))Qa.call(r,e)&&Br(t,e,r[e]);if(To)for(var e of To(r))el.call(r,e)&&Br(t,e,r[e]);return t},Zt=(t,r)=>Ja(t,Za(r));var _e=(t,r,e)=>Br(t,typeof r!="symbol"?r+"":r,e);var wt=(t,r,e)=>new Promise((i,o)=>{var s=l=>{try{a(e.next(l))}catch(u){o(u)}},n=l=>{try{a(e.throw(l))}catch(u){o(u)}},a=l=>l.done?i(l.value):Promise.resolve(l.value).then(s,n);a((e=e.apply(t,r)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function ye(){}function Vs(t){return t()}function Po(){return Object.create(null)}function _t(t){t.forEach(Vs)}function Ji(t){return typeof t=="function"}function Ys(t,r){return t!=t?r==r:t!==r||t&&typeof t=="object"||typeof t=="function"}function tl(t){return Object.keys(t).length===0}function Gs(t,...r){if(t==null){for(const i of r)i(void 0);return ye}const e=t.subscribe(...r);return e.unsubscribe?()=>e.unsubscribe():e}function rl(t,r,e){t.$$.on_destroy.push(Gs(r,e))}function b(t,r){t.appendChild(r)}function il(t,r,e){const i=ol(t);if(!i.getElementById(r)){const o=B("style");o.id=r,o.textContent=e,sl(i,o)}}function ol(t){if(!t)return document;const r=t.getRootNode?t.getRootNode():t.ownerDocument;return r&&r.host?r:t.ownerDocument}function sl(t,r){return b(t.head||t,r),r.sheet}function $e(t,r,e){t.insertBefore(r,e||null)}function Oe(t){t.parentNode&&t.parentNode.removeChild(t)}function nl(t,r){for(let e=0;e<t.length;e+=1)t[e]&&t[e].d(r)}function B(t){return document.createElement(t)}function Pe(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function re(t){return document.createTextNode(t)}function oe(){return re(" ")}function pr(t,r,e,i){return t.addEventListener(r,e,i),()=>t.removeEventListener(r,e,i)}function T(t,r,e){e==null?t.removeAttribute(r):t.getAttribute(r)!==e&&t.setAttribute(r,e)}function Je(t,r,e){const i=r.toLowerCase();i in t?t[i]=typeof t[i]=="boolean"&&e===""?!0:e:r in t?t[r]=typeof t[r]=="boolean"&&e===""?!0:e:T(t,r,e)}function al(t){return Array.from(t.childNodes)}function ae(t,r){r=""+r,t.data!==r&&(t.data=r)}function Ze(t,r,e){t.classList.toggle(r,!!e)}function ll(t){const r={};return t.childNodes.forEach(e=>{r[e.slot||"default"]=!0}),r}let It;function Ot(t){It=t}function ul(){if(!It)throw new Error("Function called outside component initialization");return It}function cl(t){ul().$$.on_mount.push(t)}const rt=[],fr=[];let ot=[];const Do=[],hl=Promise.resolve();let fi=!1;function dl(){fi||(fi=!0,hl.then(Ce))}function mi(t){ot.push(t)}const zr=new Set;let Qe=0;function Ce(){if(Qe!==0)return;const t=It;do{try{for(;Qe<rt.length;){const r=rt[Qe];Qe++,Ot(r),pl(r.$$)}}catch(r){throw rt.length=0,Qe=0,r}for(Ot(null),rt.length=0,Qe=0;fr.length;)fr.pop()();for(let r=0;r<ot.length;r+=1){const e=ot[r];zr.has(e)||(zr.add(e),e())}ot.length=0}while(rt.length);for(;Do.length;)Do.pop()();fi=!1,zr.clear(),Ot(t)}function pl(t){if(t.fragment!==null){t.update(),_t(t.before_update);const r=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,r),t.after_update.forEach(mi)}}function fl(t){const r=[],e=[];ot.forEach(i=>t.indexOf(i)===-1?r.push(i):e.push(i)),e.forEach(i=>i()),ot=r}const ml=new Set;function _l(t,r){t&&t.i&&(ml.delete(t),t.i(r))}function ko(t){return(t==null?void 0:t.length)!==void 0?t:Array.from(t)}function gl(t,r,e){const{fragment:i,after_update:o}=t.$$;i&&i.m(r,e),mi(()=>{const s=t.$$.on_mount.map(Vs).filter(Ji);t.$$.on_destroy?t.$$.on_destroy.push(...s):_t(s),t.$$.on_mount=[]}),o.forEach(mi)}function bl(t,r){const e=t.$$;e.fragment!==null&&(fl(e.after_update),_t(e.on_destroy),e.fragment&&e.fragment.d(r),e.on_destroy=e.fragment=null,e.ctx=[])}function yl(t,r){t.$$.dirty[0]===-1&&(rt.push(t),dl(),t.$$.dirty.fill(0)),t.$$.dirty[r/31|0]|=1<<r%31}function vl(t,r,e,i,o,s,n=null,a=[-1]){const l=It;Ot(t);const u=t.$$={fragment:null,ctx:[],props:s,update:ye,not_equal:o,bound:Po(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(r.context||(l?l.$$.context:[])),callbacks:Po(),dirty:a,skip_bound:!1,root:r.target||l.$$.root};n&&n(u.root);let c=!1;if(u.ctx=e?e(t,r.props||{},(h,d,...p)=>{const f=p.length?p[0]:d;return u.ctx&&o(u.ctx[h],u.ctx[h]=f)&&(!u.skip_bound&&u.bound[h]&&u.bound[h](f),c&&yl(t,h)),d}):[],u.update(),c=!0,_t(u.before_update),u.fragment=i?i(u.ctx):!1,r.target){if(r.hydrate){const h=al(r.target);u.fragment&&u.fragment.l(h),h.forEach(Oe)}else u.fragment&&u.fragment.c();r.intro&&_l(t.$$.fragment),gl(t,r.target,r.anchor),Ce()}Ot(l)}let Ws;typeof HTMLElement=="function"&&(Ws=class extends HTMLElement{constructor(r,e,i){super();_e(this,"$$ctor");_e(this,"$$s");_e(this,"$$c");_e(this,"$$cn",!1);_e(this,"$$d",{});_e(this,"$$r",!1);_e(this,"$$p_d",{});_e(this,"$$l",{});_e(this,"$$l_u",new Map);this.$$ctor=r,this.$$s=e,i&&this.attachShadow({mode:"open"})}addEventListener(r,e,i){if(this.$$l[r]=this.$$l[r]||[],this.$$l[r].push(e),this.$$c){const o=this.$$c.$on(r,e);this.$$l_u.set(e,o)}super.addEventListener(r,e,i)}removeEventListener(r,e,i){if(super.removeEventListener(r,e,i),this.$$c){const o=this.$$l_u.get(e);o&&(o(),this.$$l_u.delete(e))}}connectedCallback(){return wt(this,null,function*(){if(this.$$cn=!0,!this.$$c){let r=function(s){return()=>{let n;return{c:function(){n=B("slot"),s!=="default"&&T(n,"name",s)},m:function(u,c){$e(u,n,c)},d:function(u){u&&Oe(n)}}}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const e={},i=ll(this);for(const s of this.$$s)s in i&&(e[s]=[r(s)]);for(const s of this.attributes){const n=this.$$g_p(s.name);n in this.$$d||(this.$$d[n]=sr(n,s.value,this.$$p_d,"toProp"))}for(const s in this.$$p_d)!(s in this.$$d)&&this[s]!==void 0&&(this.$$d[s]=this[s],delete this[s]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:Zt(Jt({},this.$$d),{$$slots:e,$$scope:{ctx:[]}})});const o=()=>{this.$$r=!0;for(const s in this.$$p_d)if(this.$$d[s]=this.$$c.$$.ctx[this.$$c.$$.props[s]],this.$$p_d[s].reflect){const n=sr(s,this.$$d[s],this.$$p_d,"toAttribute");n==null?this.removeAttribute(this.$$p_d[s].attribute||s):this.setAttribute(this.$$p_d[s].attribute||s,n)}this.$$r=!1};this.$$c.$$.after_update.push(o),o();for(const s in this.$$l)for(const n of this.$$l[s]){const a=this.$$c.$on(s,n);this.$$l_u.set(n,a)}this.$$l={}}})}attributeChangedCallback(r,e,i){var o;this.$$r||(r=this.$$g_p(r),this.$$d[r]=sr(r,i,this.$$p_d,"toProp"),(o=this.$$c)==null||o.$set({[r]:this.$$d[r]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(r){return Object.keys(this.$$p_d).find(e=>this.$$p_d[e].attribute===r||!this.$$p_d[e].attribute&&e.toLowerCase()===r)||r}});function sr(t,r,e,i){var s;const o=(s=e[t])==null?void 0:s.type;if(r=o==="Boolean"&&typeof r!="boolean"?r!=null:r,!i||!e[t])return r;if(i==="toAttribute")switch(o){case"Object":case"Array":return r==null?null:JSON.stringify(r);case"Boolean":return r?"":null;case"Number":return r==null?null:r;default:return r}else switch(o){case"Object":case"Array":return r&&JSON.parse(r);case"Boolean":return r;case"Number":return r!=null?+r:r;default:return r}}function xl(t,r,e,i,o,s){let n=class extends Ws{constructor(){super(t,e,o),this.$$p_d=r}static get observedAttributes(){return Object.keys(r).map(a=>(r[a].attribute||a).toLowerCase())}};return Object.keys(r).forEach(a=>{Object.defineProperty(n.prototype,a,{get(){return this.$$c&&a in this.$$c?this.$$c[a]:this.$$d[a]},set(l){var u;l=sr(a,l,r),this.$$d[a]=l,(u=this.$$c)==null||u.$set({[a]:l})}})}),i.forEach(a=>{Object.defineProperty(n.prototype,a,{get(){var l;return(l=this.$$c)==null?void 0:l[a]}})}),t.element=n,n}class wl{constructor(){_e(this,"$$");_e(this,"$$set")}$destroy(){bl(this,1),this.$destroy=ye}$on(r,e){if(!Ji(e))return ye;const i=this.$$.callbacks[r]||(this.$$.callbacks[r]=[]);return i.push(e),()=>{const o=i.indexOf(e);o!==-1&&i.splice(o,1)}}$set(r){this.$$set&&!tl(r)&&(this.$$.skip_bound=!0,this.$$set(r),this.$$.skip_bound=!1)}}const El="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(El);var _i=function(t,r){return _i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,i){e.__proto__=i}||function(e,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(e[o]=i[o])},_i(t,r)};function Me(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");_i(t,r);function e(){this.constructor=t}t.prototype=r===null?Object.create(r):(e.prototype=r.prototype,new e)}var H=function(){return H=Object.assign||function(r){for(var e,i=1,o=arguments.length;i<o;i++){e=arguments[i];for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&(r[s]=e[s])}return r},H.apply(this,arguments)};function Sl(t,r){var e={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&r.indexOf(i)<0&&(e[i]=t[i]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(t);o<i.length;o++)r.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(t,i[o])&&(e[i[o]]=t[i[o]]);return e}function gi(t){var r=typeof Symbol=="function"&&Symbol.iterator,e=r&&t[r],i=0;if(e)return e.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(r?"Object is not iterable.":"Symbol.iterator is not defined.")}function bi(t,r){var e=typeof Symbol=="function"&&t[Symbol.iterator];if(!e)return t;var i=e.call(t),o,s=[],n;try{for(;(r===void 0||r-- >0)&&!(o=i.next()).done;)s.push(o.value)}catch(a){n={error:a}}finally{try{o&&!o.done&&(e=i.return)&&e.call(i)}finally{if(n)throw n.error}}return s}function st(t,r,e){if(e||arguments.length===2)for(var i=0,o=r.length,s;i<o;i++)(s||!(i in r))&&(s||(s=Array.prototype.slice.call(r,0,i)),s[i]=r[i]);return t.concat(s||Array.prototype.slice.call(r))}function De(t){return typeof t=="function"}function qs(t){var r=function(i){Error.call(i),i.stack=new Error().stack},e=t(r);return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}var Fr=qs(function(t){return function(e){t(this),this.message=e?e.length+` errors occurred during unsubscription:
|
|
2
|
+
`+e.map(function(i,o){return o+1+") "+i.toString()}).join(`
|
|
3
|
+
`):"",this.name="UnsubscriptionError",this.errors=e}});function yi(t,r){if(t){var e=t.indexOf(r);0<=e&&t.splice(e,1)}}var Ar=function(){function t(r){this.initialTeardown=r,this.closed=!1,this._parentage=null,this._finalizers=null}return t.prototype.unsubscribe=function(){var r,e,i,o,s;if(!this.closed){this.closed=!0;var n=this._parentage;if(n)if(this._parentage=null,Array.isArray(n))try{for(var a=gi(n),l=a.next();!l.done;l=a.next()){var u=l.value;u.remove(this)}}catch(y){r={error:y}}finally{try{l&&!l.done&&(e=a.return)&&e.call(a)}finally{if(r)throw r.error}}else n.remove(this);var c=this.initialTeardown;if(De(c))try{c()}catch(y){s=y instanceof Fr?y.errors:[y]}var h=this._finalizers;if(h){this._finalizers=null;try{for(var d=gi(h),p=d.next();!p.done;p=d.next()){var f=p.value;try{Oo(f)}catch(y){s=s!=null?s:[],y instanceof Fr?s=st(st([],bi(s)),bi(y.errors)):s.push(y)}}}catch(y){i={error:y}}finally{try{p&&!p.done&&(o=d.return)&&o.call(d)}finally{if(i)throw i.error}}}if(s)throw new Fr(s)}},t.prototype.add=function(r){var e;if(r&&r!==this)if(this.closed)Oo(r);else{if(r instanceof t){if(r.closed||r._hasParent(this))return;r._addParent(this)}(this._finalizers=(e=this._finalizers)!==null&&e!==void 0?e:[]).push(r)}},t.prototype._hasParent=function(r){var e=this._parentage;return e===r||Array.isArray(e)&&e.includes(r)},t.prototype._addParent=function(r){var e=this._parentage;this._parentage=Array.isArray(e)?(e.push(r),e):e?[e,r]:r},t.prototype._removeParent=function(r){var e=this._parentage;e===r?this._parentage=null:Array.isArray(e)&&yi(e,r)},t.prototype.remove=function(r){var e=this._finalizers;e&&yi(e,r),r instanceof t&&r._removeParent(this)},t.EMPTY=function(){var r=new t;return r.closed=!0,r}(),t}(),Xs=Ar.EMPTY;function Ks(t){return t instanceof Ar||t&&"closed"in t&&De(t.remove)&&De(t.add)&&De(t.unsubscribe)}function Oo(t){De(t)?t():t.unsubscribe()}var Js={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},Zs={setTimeout:function(t,r){for(var e=[],i=2;i<arguments.length;i++)e[i-2]=arguments[i];return setTimeout.apply(void 0,st([t,r],bi(e)))},clearTimeout:function(t){var r=Zs.delegate;return((r==null?void 0:r.clearTimeout)||clearTimeout)(t)},delegate:void 0};function Al(t){Zs.setTimeout(function(){throw t})}function Mo(){}function nr(t){t()}var Qs=function(t){Me(r,t);function r(e){var i=t.call(this)||this;return i.isStopped=!1,e?(i.destination=e,Ks(e)&&e.add(i)):i.destination=Dl,i}return r.create=function(e,i,o){return new vi(e,i,o)},r.prototype.next=function(e){this.isStopped||this._next(e)},r.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},r.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},r.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this),this.destination=null)},r.prototype._next=function(e){this.destination.next(e)},r.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},r.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},r}(Ar),Cl=Function.prototype.bind;function Rr(t,r){return Cl.call(t,r)}var Tl=function(){function t(r){this.partialObserver=r}return t.prototype.next=function(r){var e=this.partialObserver;if(e.next)try{e.next(r)}catch(i){Qt(i)}},t.prototype.error=function(r){var e=this.partialObserver;if(e.error)try{e.error(r)}catch(i){Qt(i)}else Qt(r)},t.prototype.complete=function(){var r=this.partialObserver;if(r.complete)try{r.complete()}catch(e){Qt(e)}},t}(),vi=function(t){Me(r,t);function r(e,i,o){var s=t.call(this)||this,n;if(De(e)||!e)n={next:e!=null?e:void 0,error:i!=null?i:void 0,complete:o!=null?o:void 0};else{var a;s&&Js.useDeprecatedNextContext?(a=Object.create(e),a.unsubscribe=function(){return s.unsubscribe()},n={next:e.next&&Rr(e.next,a),error:e.error&&Rr(e.error,a),complete:e.complete&&Rr(e.complete,a)}):n=e}return s.destination=new Tl(n),s}return r}(Qs);function Qt(t){Al(t)}function Pl(t){throw t}var Dl={closed:!0,next:Mo,error:Pl,complete:Mo},kl=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function Ol(t){return t}function Ml(t){return t.length===0?Ol:t.length===1?t[0]:function(e){return t.reduce(function(i,o){return o(i)},e)}}var Io=function(){function t(r){r&&(this._subscribe=r)}return t.prototype.lift=function(r){var e=new t;return e.source=this,e.operator=r,e},t.prototype.subscribe=function(r,e,i){var o=this,s=Nl(r)?r:new vi(r,e,i);return nr(function(){var n=o,a=n.operator,l=n.source;s.add(a?a.call(s,l):l?o._subscribe(s):o._trySubscribe(s))}),s},t.prototype._trySubscribe=function(r){try{return this._subscribe(r)}catch(e){r.error(e)}},t.prototype.forEach=function(r,e){var i=this;return e=No(e),new e(function(o,s){var n=new vi({next:function(a){try{r(a)}catch(l){s(l),n.unsubscribe()}},error:s,complete:o});i.subscribe(n)})},t.prototype._subscribe=function(r){var e;return(e=this.source)===null||e===void 0?void 0:e.subscribe(r)},t.prototype[kl]=function(){return this},t.prototype.pipe=function(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];return Ml(r)(this)},t.prototype.toPromise=function(r){var e=this;return r=No(r),new r(function(i,o){var s;e.subscribe(function(n){return s=n},function(n){return o(n)},function(){return i(s)})})},t.create=function(r){return new t(r)},t}();function No(t){var r;return(r=t!=null?t:Js.Promise)!==null&&r!==void 0?r:Promise}function Il(t){return t&&De(t.next)&&De(t.error)&&De(t.complete)}function Nl(t){return t&&t instanceof Qs||Il(t)&&Ks(t)}var Ll=qs(function(t){return function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),en=function(t){Me(r,t);function r(){var e=t.call(this)||this;return e.closed=!1,e.currentObservers=null,e.observers=[],e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return r.prototype.lift=function(e){var i=new Lo(this,this);return i.operator=e,i},r.prototype._throwIfClosed=function(){if(this.closed)throw new Ll},r.prototype.next=function(e){var i=this;nr(function(){var o,s;if(i._throwIfClosed(),!i.isStopped){i.currentObservers||(i.currentObservers=Array.from(i.observers));try{for(var n=gi(i.currentObservers),a=n.next();!a.done;a=n.next()){var l=a.value;l.next(e)}}catch(u){o={error:u}}finally{try{a&&!a.done&&(s=n.return)&&s.call(n)}finally{if(o)throw o.error}}}})},r.prototype.error=function(e){var i=this;nr(function(){if(i._throwIfClosed(),!i.isStopped){i.hasError=i.isStopped=!0,i.thrownError=e;for(var o=i.observers;o.length;)o.shift().error(e)}})},r.prototype.complete=function(){var e=this;nr(function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var i=e.observers;i.length;)i.shift().complete()}})},r.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(r.prototype,"observed",{get:function(){var e;return((e=this.observers)===null||e===void 0?void 0:e.length)>0},enumerable:!1,configurable:!0}),r.prototype._trySubscribe=function(e){return this._throwIfClosed(),t.prototype._trySubscribe.call(this,e)},r.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},r.prototype._innerSubscribe=function(e){var i=this,o=this,s=o.hasError,n=o.isStopped,a=o.observers;return s||n?Xs:(this.currentObservers=null,a.push(e),new Ar(function(){i.currentObservers=null,yi(a,e)}))},r.prototype._checkFinalizedStatuses=function(e){var i=this,o=i.hasError,s=i.thrownError,n=i.isStopped;o?e.error(s):n&&e.complete()},r.prototype.asObservable=function(){var e=new Io;return e.source=this,e},r.create=function(e,i){return new Lo(e,i)},r}(Io),Lo=function(t){Me(r,t);function r(e,i){var o=t.call(this)||this;return o.destination=e,o.source=i,o}return r.prototype.next=function(e){var i,o;(o=(i=this.destination)===null||i===void 0?void 0:i.next)===null||o===void 0||o.call(i,e)},r.prototype.error=function(e){var i,o;(o=(i=this.destination)===null||i===void 0?void 0:i.error)===null||o===void 0||o.call(i,e)},r.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)},r.prototype._subscribe=function(e){var i,o;return(o=(i=this.source)===null||i===void 0?void 0:i.subscribe(e))!==null&&o!==void 0?o:Xs},r}(en),tn={now:function(){return(tn.delegate||Date).now()},delegate:void 0},$l=function(t){Me(r,t);function r(e,i,o){e===void 0&&(e=1/0),i===void 0&&(i=1/0),o===void 0&&(o=tn);var s=t.call(this)||this;return s._bufferSize=e,s._windowTime=i,s._timestampProvider=o,s._buffer=[],s._infiniteTimeWindow=!0,s._infiniteTimeWindow=i===1/0,s._bufferSize=Math.max(1,e),s._windowTime=Math.max(1,i),s}return r.prototype.next=function(e){var i=this,o=i.isStopped,s=i._buffer,n=i._infiniteTimeWindow,a=i._timestampProvider,l=i._windowTime;o||(s.push(e),!n&&s.push(a.now()+l)),this._trimBuffer(),t.prototype.next.call(this,e)},r.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var i=this._innerSubscribe(e),o=this,s=o._infiniteTimeWindow,n=o._buffer,a=n.slice(),l=0;l<a.length&&!e.closed;l+=s?1:2)e.next(a[l]);return this._checkFinalizedStatuses(e),i},r.prototype._trimBuffer=function(){var e=this,i=e._bufferSize,o=e._timestampProvider,s=e._buffer,n=e._infiniteTimeWindow,a=(n?1:2)*i;if(i<1/0&&a<s.length&&s.splice(0,s.length-a),!n){for(var l=o.now(),u=0,c=1;c<s.length&&s[c]<=l;c+=2)u=c;u&&s.splice(0,u+1)}},r}(en);const $o=[],Ho={},Hl=(t,r=0)=>{if($o.indexOf(t)==-1){const e=new $l(r);Ho[t]=e,$o.push(t)}return Ho[t]},et=[];function Bl(t,r){return{subscribe:Cr(t,r).subscribe}}function Cr(t,r=ye){let e;const i=new Set;function o(a){if(Ys(t,a)&&(t=a,e)){const l=!et.length;for(const u of i)u[1](),et.push(u,t);if(l){for(let u=0;u<et.length;u+=2)et[u][0](et[u+1]);et.length=0}}}function s(a){o(a(t))}function n(a,l=ye){const u=[a,l];return i.add(u),i.size===1&&(e=r(o,s)||ye),a(t),()=>{i.delete(u),i.size===0&&e&&(e(),e=null)}}return{set:o,update:s,subscribe:n}}function gt(t,r,e){const i=!Array.isArray(t),o=i?[t]:t;if(!o.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const s=r.length<2;return Bl(e,(n,a)=>{let l=!1;const u=[];let c=0,h=ye;const d=()=>{if(c)return;h();const f=r(i?u[0]:u,n,a);s?n(f):h=Ji(f)?f:ye},p=o.map((f,y)=>Gs(f,P=>{u[y]=P,c&=~(1<<y),l&&d()},()=>{c|=1<<y}));return l=!0,d(),function(){_t(p),h(),l=!1}})}var zl=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function rn(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Fl=function(r){return Rl(r)&&!Ul(r)};function Rl(t){return!!t&&typeof t=="object"}function Ul(t){var r=Object.prototype.toString.call(t);return r==="[object RegExp]"||r==="[object Date]"||Yl(t)}var jl=typeof Symbol=="function"&&Symbol.for,Vl=jl?Symbol.for("react.element"):60103;function Yl(t){return t.$$typeof===Vl}function Gl(t){return Array.isArray(t)?[]:{}}function Nt(t,r){return r.clone!==!1&&r.isMergeableObject(t)?ut(Gl(t),t,r):t}function Wl(t,r,e){return t.concat(r).map(function(i){return Nt(i,e)})}function ql(t,r){if(!r.customMerge)return ut;var e=r.customMerge(t);return typeof e=="function"?e:ut}function Xl(t){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(r){return Object.propertyIsEnumerable.call(t,r)}):[]}function Bo(t){return Object.keys(t).concat(Xl(t))}function on(t,r){try{return r in t}catch(e){return!1}}function Kl(t,r){return on(t,r)&&!(Object.hasOwnProperty.call(t,r)&&Object.propertyIsEnumerable.call(t,r))}function Jl(t,r,e){var i={};return e.isMergeableObject(t)&&Bo(t).forEach(function(o){i[o]=Nt(t[o],e)}),Bo(r).forEach(function(o){Kl(t,o)||(on(t,o)&&e.isMergeableObject(r[o])?i[o]=ql(o,e)(t[o],r[o],e):i[o]=Nt(r[o],e))}),i}function ut(t,r,e){e=e||{},e.arrayMerge=e.arrayMerge||Wl,e.isMergeableObject=e.isMergeableObject||Fl,e.cloneUnlessOtherwiseSpecified=Nt;var i=Array.isArray(r),o=Array.isArray(t),s=i===o;return s?i?e.arrayMerge(t,r,e):Jl(t,r,e):Nt(r,e)}ut.all=function(r,e){if(!Array.isArray(r))throw new Error("first argument should be an array");return r.reduce(function(i,o){return ut(i,o,e)},{})};var Zl=ut,Ql=Zl;const eu=rn(Ql);var O;(function(t){t[t.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",t[t.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",t[t.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",t[t.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",t[t.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",t[t.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",t[t.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",t[t.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",t[t.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",t[t.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",t[t.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",t[t.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",t[t.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",t[t.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",t[t.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",t[t.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",t[t.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",t[t.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",t[t.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",t[t.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",t[t.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",t[t.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",t[t.INVALID_TAG=23]="INVALID_TAG",t[t.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",t[t.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",t[t.UNCLOSED_TAG=27]="UNCLOSED_TAG"})(O||(O={}));var V;(function(t){t[t.literal=0]="literal",t[t.argument=1]="argument",t[t.number=2]="number",t[t.date=3]="date",t[t.time=4]="time",t[t.select=5]="select",t[t.plural=6]="plural",t[t.pound=7]="pound",t[t.tag=8]="tag"})(V||(V={}));var ct;(function(t){t[t.number=0]="number",t[t.dateTime=1]="dateTime"})(ct||(ct={}));function zo(t){return t.type===V.literal}function tu(t){return t.type===V.argument}function sn(t){return t.type===V.number}function nn(t){return t.type===V.date}function an(t){return t.type===V.time}function ln(t){return t.type===V.select}function un(t){return t.type===V.plural}function ru(t){return t.type===V.pound}function cn(t){return t.type===V.tag}function hn(t){return!!(t&&typeof t=="object"&&t.type===ct.number)}function xi(t){return!!(t&&typeof t=="object"&&t.type===ct.dateTime)}var dn=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,iu=/(?:[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 ou(t){var r={};return t.replace(iu,function(e){var i=e.length;switch(e[0]){case"G":r.era=i===4?"long":i===5?"narrow":"short";break;case"y":r.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":r.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":r.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":r.weekday=i===4?"long":i===5?"narrow":"short";break;case"e":if(i<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");r.weekday=["short","long","narrow","short"][i-4];break;case"c":if(i<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");r.weekday=["short","long","narrow","short"][i-4];break;case"a":r.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":r.hourCycle="h12",r.hour=["numeric","2-digit"][i-1];break;case"H":r.hourCycle="h23",r.hour=["numeric","2-digit"][i-1];break;case"K":r.hourCycle="h11",r.hour=["numeric","2-digit"][i-1];break;case"k":r.hourCycle="h24",r.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":r.minute=["numeric","2-digit"][i-1];break;case"s":r.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":r.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""}),r}var su=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function nu(t){if(t.length===0)throw new Error("Number skeleton cannot be empty");for(var r=t.split(su).filter(function(d){return d.length>0}),e=[],i=0,o=r;i<o.length;i++){var s=o[i],n=s.split("/");if(n.length===0)throw new Error("Invalid number skeleton");for(var a=n[0],l=n.slice(1),u=0,c=l;u<c.length;u++){var h=c[u];if(h.length===0)throw new Error("Invalid number skeleton")}e.push({stem:a,options:l})}return e}function au(t){return t.replace(/^(.*?)-/,"")}var Fo=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,pn=/^(@+)?(\+|#+)?[rs]?$/g,lu=/(\*)(0+)|(#+)(0+)|(0+)/g,fn=/^(0+)$/;function Ro(t){var r={};return t[t.length-1]==="r"?r.roundingPriority="morePrecision":t[t.length-1]==="s"&&(r.roundingPriority="lessPrecision"),t.replace(pn,function(e,i,o){return typeof o!="string"?(r.minimumSignificantDigits=i.length,r.maximumSignificantDigits=i.length):o==="+"?r.minimumSignificantDigits=i.length:i[0]==="#"?r.maximumSignificantDigits=i.length:(r.minimumSignificantDigits=i.length,r.maximumSignificantDigits=i.length+(typeof o=="string"?o.length:0)),""}),r}function mn(t){switch(t){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 uu(t){var r;if(t[0]==="E"&&t[1]==="E"?(r={notation:"engineering"},t=t.slice(2)):t[0]==="E"&&(r={notation:"scientific"},t=t.slice(1)),r){var e=t.slice(0,2);if(e==="+!"?(r.signDisplay="always",t=t.slice(2)):e==="+?"&&(r.signDisplay="exceptZero",t=t.slice(2)),!fn.test(t))throw new Error("Malformed concise eng/scientific notation");r.minimumIntegerDigits=t.length}return r}function Uo(t){var r={},e=mn(t);return e||r}function cu(t){for(var r={},e=0,i=t;e<i.length;e++){var o=i[e];switch(o.stem){case"percent":case"%":r.style="percent";continue;case"%x100":r.style="percent",r.scale=100;continue;case"currency":r.style="currency",r.currency=o.options[0];continue;case"group-off":case",_":r.useGrouping=!1;continue;case"precision-integer":case".":r.maximumFractionDigits=0;continue;case"measure-unit":case"unit":r.style="unit",r.unit=au(o.options[0]);continue;case"compact-short":case"K":r.notation="compact",r.compactDisplay="short";continue;case"compact-long":case"KK":r.notation="compact",r.compactDisplay="long";continue;case"scientific":r=H(H(H({},r),{notation:"scientific"}),o.options.reduce(function(l,u){return H(H({},l),Uo(u))},{}));continue;case"engineering":r=H(H(H({},r),{notation:"engineering"}),o.options.reduce(function(l,u){return H(H({},l),Uo(u))},{}));continue;case"notation-simple":r.notation="standard";continue;case"unit-width-narrow":r.currencyDisplay="narrowSymbol",r.unitDisplay="narrow";continue;case"unit-width-short":r.currencyDisplay="code",r.unitDisplay="short";continue;case"unit-width-full-name":r.currencyDisplay="name",r.unitDisplay="long";continue;case"unit-width-iso-code":r.currencyDisplay="symbol";continue;case"scale":r.scale=parseFloat(o.options[0]);continue;case"rounding-mode-floor":r.roundingMode="floor";continue;case"rounding-mode-ceiling":r.roundingMode="ceil";continue;case"rounding-mode-down":r.roundingMode="trunc";continue;case"rounding-mode-up":r.roundingMode="expand";continue;case"rounding-mode-half-even":r.roundingMode="halfEven";continue;case"rounding-mode-half-down":r.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":r.roundingMode="halfExpand";continue;case"integer-width":if(o.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");o.options[0].replace(lu,function(l,u,c,h,d,p){if(u)r.minimumIntegerDigits=c.length;else{if(h&&d)throw new Error("We currently do not support maximum integer digits");if(p)throw new Error("We currently do not support exact integer digits")}return""});continue}if(fn.test(o.stem)){r.minimumIntegerDigits=o.stem.length;continue}if(Fo.test(o.stem)){if(o.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");o.stem.replace(Fo,function(l,u,c,h,d,p){return c==="*"?r.minimumFractionDigits=u.length:h&&h[0]==="#"?r.maximumFractionDigits=h.length:d&&p?(r.minimumFractionDigits=d.length,r.maximumFractionDigits=d.length+p.length):(r.minimumFractionDigits=u.length,r.maximumFractionDigits=u.length),""});var s=o.options[0];s==="w"?r=H(H({},r),{trailingZeroDisplay:"stripIfInteger"}):s&&(r=H(H({},r),Ro(s)));continue}if(pn.test(o.stem)){r=H(H({},r),Ro(o.stem));continue}var n=mn(o.stem);n&&(r=H(H({},r),n));var a=uu(o.stem);a&&(r=H(H({},r),a))}return r}var er={"001":["H","h"],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","hB","h","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","hB","h","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","hB","h","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"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["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 hu(t,r){for(var e="",i=0;i<t.length;i++){var o=t.charAt(i);if(o==="j"){for(var s=0;i+1<t.length&&t.charAt(i+1)===o;)s++,i++;var n=1+(s&1),a=s<2?1:3+(s>>1),l="a",u=du(r);for((u=="H"||u=="k")&&(a=0);a-- >0;)e+=l;for(;n-- >0;)e=u+e}else o==="J"?e+="H":e+=o}return e}function du(t){var r=t.hourCycle;if(r===void 0&&t.hourCycles&&t.hourCycles.length&&(r=t.hourCycles[0]),r)switch(r){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var e=t.language,i;e!=="root"&&(i=t.maximize().region);var o=er[i||""]||er[e||""]||er["".concat(e,"-001")]||er["001"];return o[0]}var Ur,pu=new RegExp("^".concat(dn.source,"*")),fu=new RegExp("".concat(dn.source,"*$"));function I(t,r){return{start:t,end:r}}var mu=!!String.prototype.startsWith&&"_a".startsWith("a",1),_u=!!String.fromCodePoint,gu=!!Object.fromEntries,bu=!!String.prototype.codePointAt,yu=!!String.prototype.trimStart,vu=!!String.prototype.trimEnd,xu=!!Number.isSafeInteger,wu=xu?Number.isSafeInteger:function(t){return typeof t=="number"&&isFinite(t)&&Math.floor(t)===t&&Math.abs(t)<=9007199254740991},wi=!0;try{var Eu=gn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");wi=((Ur=Eu.exec("a"))===null||Ur===void 0?void 0:Ur[0])==="a"}catch(t){wi=!1}var jo=mu?function(r,e,i){return r.startsWith(e,i)}:function(r,e,i){return r.slice(i,i+e.length)===e},Ei=_u?String.fromCodePoint:function(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];for(var i="",o=r.length,s=0,n;o>s;){if(n=r[s++],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},Vo=gu?Object.fromEntries:function(r){for(var e={},i=0,o=r;i<o.length;i++){var s=o[i],n=s[0],a=s[1];e[n]=a}return e},_n=bu?function(r,e){return r.codePointAt(e)}:function(r,e){var i=r.length;if(!(e<0||e>=i)){var o=r.charCodeAt(e),s;return o<55296||o>56319||e+1===i||(s=r.charCodeAt(e+1))<56320||s>57343?o:(o-55296<<10)+(s-56320)+65536}},Su=yu?function(r){return r.trimStart()}:function(r){return r.replace(pu,"")},Au=vu?function(r){return r.trimEnd()}:function(r){return r.replace(fu,"")};function gn(t,r){return new RegExp(t,r)}var Si;if(wi){var Yo=gn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Si=function(r,e){var i;Yo.lastIndex=e;var o=Yo.exec(r);return(i=o[1])!==null&&i!==void 0?i:""}}else Si=function(r,e){for(var i=[];;){var o=_n(r,e);if(o===void 0||bn(o)||Du(o))break;i.push(o),e+=o>=65536?2:1}return Ei.apply(void 0,i)};var Cu=function(){function t(r,e){e===void 0&&(e={}),this.message=r,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 t.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},t.prototype.parseMessage=function(r,e,i){for(var o=[];!this.isEOF();){var s=this.char();if(s===123){var n=this.parseArgument(r,i);if(n.err)return n;o.push(n.val)}else{if(s===125&&r>0)break;if(s===35&&(e==="plural"||e==="selectordinal")){var a=this.clonePosition();this.bump(),o.push({type:V.pound,location:I(a,this.clonePosition())})}else if(s===60&&!this.ignoreTag&&this.peek()===47){if(i)break;return this.error(O.UNMATCHED_CLOSING_TAG,I(this.clonePosition(),this.clonePosition()))}else if(s===60&&!this.ignoreTag&&Ai(this.peek()||0)){var n=this.parseTag(r,e);if(n.err)return n;o.push(n.val)}else{var n=this.parseLiteral(r,e);if(n.err)return n;o.push(n.val)}}}return{val:o,err:null}},t.prototype.parseTag=function(r,e){var i=this.clonePosition();this.bump();var o=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:V.literal,value:"<".concat(o,"/>"),location:I(i,this.clonePosition())},err:null};if(this.bumpIf(">")){var s=this.parseMessage(r+1,e,!0);if(s.err)return s;var n=s.val,a=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!Ai(this.char()))return this.error(O.INVALID_TAG,I(a,this.clonePosition()));var l=this.clonePosition(),u=this.parseTagName();return o!==u?this.error(O.UNMATCHED_CLOSING_TAG,I(l,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:V.tag,value:o,children:n,location:I(i,this.clonePosition())},err:null}:this.error(O.INVALID_TAG,I(a,this.clonePosition())))}else return this.error(O.UNCLOSED_TAG,I(i,this.clonePosition()))}else return this.error(O.INVALID_TAG,I(i,this.clonePosition()))},t.prototype.parseTagName=function(){var r=this.offset();for(this.bump();!this.isEOF()&&Pu(this.char());)this.bump();return this.message.slice(r,this.offset())},t.prototype.parseLiteral=function(r,e){for(var i=this.clonePosition(),o="";;){var s=this.tryParseQuote(e);if(s){o+=s;continue}var n=this.tryParseUnquoted(r,e);if(n){o+=n;continue}var a=this.tryParseLeftAngleBracket();if(a){o+=a;continue}break}var l=I(i,this.clonePosition());return{val:{type:V.literal,value:o,location:l},err:null}},t.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!Tu(this.peek()||0))?(this.bump(),"<"):null},t.prototype.tryParseQuote=function(r){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(r==="plural"||r==="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 Ei.apply(void 0,e)},t.prototype.tryParseUnquoted=function(r,e){if(this.isEOF())return null;var i=this.char();return i===60||i===123||i===35&&(e==="plural"||e==="selectordinal")||i===125&&r>0?null:(this.bump(),Ei(i))},t.prototype.parseArgument=function(r,e){var i=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(O.EXPECT_ARGUMENT_CLOSING_BRACE,I(i,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(O.EMPTY_ARGUMENT,I(i,this.clonePosition()));var o=this.parseIdentifierIfPossible().value;if(!o)return this.error(O.MALFORMED_ARGUMENT,I(i,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(O.EXPECT_ARGUMENT_CLOSING_BRACE,I(i,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:V.argument,value:o,location:I(i,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(O.EXPECT_ARGUMENT_CLOSING_BRACE,I(i,this.clonePosition())):this.parseArgumentOptions(r,e,o,i);default:return this.error(O.MALFORMED_ARGUMENT,I(i,this.clonePosition()))}},t.prototype.parseIdentifierIfPossible=function(){var r=this.clonePosition(),e=this.offset(),i=Si(this.message,e),o=e+i.length;this.bumpTo(o);var s=this.clonePosition(),n=I(r,s);return{value:i,location:n}},t.prototype.parseArgumentOptions=function(r,e,i,o){var s,n=this.clonePosition(),a=this.parseIdentifierIfPossible().value,l=this.clonePosition();switch(a){case"":return this.error(O.EXPECT_ARGUMENT_TYPE,I(n,l));case"number":case"date":case"time":{this.bumpSpace();var u=null;if(this.bumpIf(",")){this.bumpSpace();var c=this.clonePosition(),h=this.parseSimpleArgStyleIfPossible();if(h.err)return h;var d=Au(h.val);if(d.length===0)return this.error(O.EXPECT_ARGUMENT_STYLE,I(this.clonePosition(),this.clonePosition()));var p=I(c,this.clonePosition());u={style:d,styleLocation:p}}var f=this.tryParseArgumentClose(o);if(f.err)return f;var y=I(o,this.clonePosition());if(u&&jo(u==null?void 0:u.style,"::",0)){var P=Su(u.style.slice(2));if(a==="number"){var h=this.parseNumberSkeletonFromString(P,u.styleLocation);return h.err?h:{val:{type:V.number,value:i,location:y,style:h.val},err:null}}else{if(P.length===0)return this.error(O.EXPECT_DATE_TIME_SKELETON,y);var D=P;this.locale&&(D=hu(P,this.locale));var d={type:ct.dateTime,pattern:D,location:u.styleLocation,parsedOptions:this.shouldParseSkeletons?ou(D):{}},M=a==="date"?V.date:V.time;return{val:{type:M,value:i,location:y,style:d},err:null}}}return{val:{type:a==="number"?V.number:a==="date"?V.date:V.time,value:i,location:y,style:(s=u==null?void 0:u.style)!==null&&s!==void 0?s:null},err:null}}case"plural":case"selectordinal":case"select":{var z=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(O.EXPECT_SELECT_ARGUMENT_OPTIONS,I(z,H({},z)));this.bumpSpace();var ee=this.parseIdentifierIfPossible(),F=0;if(a!=="select"&&ee.value==="offset"){if(!this.bumpIf(":"))return this.error(O.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,I(this.clonePosition(),this.clonePosition()));this.bumpSpace();var h=this.tryParseDecimalInteger(O.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,O.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(h.err)return h;this.bumpSpace(),ee=this.parseIdentifierIfPossible(),F=h.val}var X=this.tryParsePluralOrSelectOptions(r,a,e,ee);if(X.err)return X;var f=this.tryParseArgumentClose(o);if(f.err)return f;var pe=I(o,this.clonePosition());return a==="select"?{val:{type:V.select,value:i,options:Vo(X.val),location:pe},err:null}:{val:{type:V.plural,value:i,options:Vo(X.val),offset:F,pluralType:a==="plural"?"cardinal":"ordinal",location:pe},err:null}}default:return this.error(O.INVALID_ARGUMENT_TYPE,I(n,l))}},t.prototype.tryParseArgumentClose=function(r){return this.isEOF()||this.char()!==125?this.error(O.EXPECT_ARGUMENT_CLOSING_BRACE,I(r,this.clonePosition())):(this.bump(),{val:!0,err:null})},t.prototype.parseSimpleArgStyleIfPossible=function(){for(var r=0,e=this.clonePosition();!this.isEOF();){var i=this.char();switch(i){case 39:{this.bump();var o=this.clonePosition();if(!this.bumpUntil("'"))return this.error(O.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,I(o,this.clonePosition()));this.bump();break}case 123:{r+=1,this.bump();break}case 125:{if(r>0)r-=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}},t.prototype.parseNumberSkeletonFromString=function(r,e){var i=[];try{i=nu(r)}catch(o){return this.error(O.INVALID_NUMBER_SKELETON,e)}return{val:{type:ct.number,tokens:i,location:e,parsedOptions:this.shouldParseSkeletons?cu(i):{}},err:null}},t.prototype.tryParsePluralOrSelectOptions=function(r,e,i,o){for(var s,n=!1,a=[],l=new Set,u=o.value,c=o.location;;){if(u.length===0){var h=this.clonePosition();if(e!=="select"&&this.bumpIf("=")){var d=this.tryParseDecimalInteger(O.EXPECT_PLURAL_ARGUMENT_SELECTOR,O.INVALID_PLURAL_ARGUMENT_SELECTOR);if(d.err)return d;c=I(h,this.clonePosition()),u=this.message.slice(h.offset,this.offset())}else break}if(l.has(u))return this.error(e==="select"?O.DUPLICATE_SELECT_ARGUMENT_SELECTOR:O.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,c);u==="other"&&(n=!0),this.bumpSpace();var p=this.clonePosition();if(!this.bumpIf("{"))return this.error(e==="select"?O.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:O.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,I(this.clonePosition(),this.clonePosition()));var f=this.parseMessage(r+1,e,i);if(f.err)return f;var y=this.tryParseArgumentClose(p);if(y.err)return y;a.push([u,{value:f.val,location:I(p,this.clonePosition())}]),l.add(u),this.bumpSpace(),s=this.parseIdentifierIfPossible(),u=s.value,c=s.location}return a.length===0?this.error(e==="select"?O.EXPECT_SELECT_ARGUMENT_SELECTOR:O.EXPECT_PLURAL_ARGUMENT_SELECTOR,I(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!n?this.error(O.MISSING_OTHER_CLAUSE,I(this.clonePosition(),this.clonePosition())):{val:a,err:null}},t.prototype.tryParseDecimalInteger=function(r,e){var i=1,o=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(i=-1);for(var s=!1,n=0;!this.isEOF();){var a=this.char();if(a>=48&&a<=57)s=!0,n=n*10+(a-48),this.bump();else break}var l=I(o,this.clonePosition());return s?(n*=i,wu(n)?{val:n,err:null}:this.error(e,l)):this.error(r,l)},t.prototype.offset=function(){return this.position.offset},t.prototype.isEOF=function(){return this.offset()===this.message.length},t.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},t.prototype.char=function(){var r=this.position.offset;if(r>=this.message.length)throw Error("out of bound");var e=_n(this.message,r);if(e===void 0)throw Error("Offset ".concat(r," is at invalid UTF-16 code unit boundary"));return e},t.prototype.error=function(r,e){return{val:null,err:{kind:r,message:this.message,location:e}}},t.prototype.bump=function(){if(!this.isEOF()){var r=this.char();r===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=r<65536?1:2)}},t.prototype.bumpIf=function(r){if(jo(this.message,r,this.offset())){for(var e=0;e<r.length;e++)this.bump();return!0}return!1},t.prototype.bumpUntil=function(r){var e=this.offset(),i=this.message.indexOf(r,e);return i>=0?(this.bumpTo(i),!0):(this.bumpTo(this.message.length),!1)},t.prototype.bumpTo=function(r){if(this.offset()>r)throw Error("targetOffset ".concat(r," must be greater than or equal to the current offset ").concat(this.offset()));for(r=Math.min(r,this.message.length);;){var e=this.offset();if(e===r)break;if(e>r)throw Error("targetOffset ".concat(r," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},t.prototype.bumpSpace=function(){for(;!this.isEOF()&&bn(this.char());)this.bump()},t.prototype.peek=function(){if(this.isEOF())return null;var r=this.char(),e=this.offset(),i=this.message.charCodeAt(e+(r>=65536?2:1));return i!=null?i:null},t}();function Ai(t){return t>=97&&t<=122||t>=65&&t<=90}function Tu(t){return Ai(t)||t===47}function Pu(t){return t===45||t===46||t>=48&&t<=57||t===95||t>=97&&t<=122||t>=65&&t<=90||t==183||t>=192&&t<=214||t>=216&&t<=246||t>=248&&t<=893||t>=895&&t<=8191||t>=8204&&t<=8205||t>=8255&&t<=8256||t>=8304&&t<=8591||t>=11264&&t<=12271||t>=12289&&t<=55295||t>=63744&&t<=64975||t>=65008&&t<=65533||t>=65536&&t<=983039}function bn(t){return t>=9&&t<=13||t===32||t===133||t>=8206&&t<=8207||t===8232||t===8233}function Du(t){return t>=33&&t<=35||t===36||t>=37&&t<=39||t===40||t===41||t===42||t===43||t===44||t===45||t>=46&&t<=47||t>=58&&t<=59||t>=60&&t<=62||t>=63&&t<=64||t===91||t===92||t===93||t===94||t===96||t===123||t===124||t===125||t===126||t===161||t>=162&&t<=165||t===166||t===167||t===169||t===171||t===172||t===174||t===176||t===177||t===182||t===187||t===191||t===215||t===247||t>=8208&&t<=8213||t>=8214&&t<=8215||t===8216||t===8217||t===8218||t>=8219&&t<=8220||t===8221||t===8222||t===8223||t>=8224&&t<=8231||t>=8240&&t<=8248||t===8249||t===8250||t>=8251&&t<=8254||t>=8257&&t<=8259||t===8260||t===8261||t===8262||t>=8263&&t<=8273||t===8274||t===8275||t>=8277&&t<=8286||t>=8592&&t<=8596||t>=8597&&t<=8601||t>=8602&&t<=8603||t>=8604&&t<=8607||t===8608||t>=8609&&t<=8610||t===8611||t>=8612&&t<=8613||t===8614||t>=8615&&t<=8621||t===8622||t>=8623&&t<=8653||t>=8654&&t<=8655||t>=8656&&t<=8657||t===8658||t===8659||t===8660||t>=8661&&t<=8691||t>=8692&&t<=8959||t>=8960&&t<=8967||t===8968||t===8969||t===8970||t===8971||t>=8972&&t<=8991||t>=8992&&t<=8993||t>=8994&&t<=9e3||t===9001||t===9002||t>=9003&&t<=9083||t===9084||t>=9085&&t<=9114||t>=9115&&t<=9139||t>=9140&&t<=9179||t>=9180&&t<=9185||t>=9186&&t<=9254||t>=9255&&t<=9279||t>=9280&&t<=9290||t>=9291&&t<=9311||t>=9472&&t<=9654||t===9655||t>=9656&&t<=9664||t===9665||t>=9666&&t<=9719||t>=9720&&t<=9727||t>=9728&&t<=9838||t===9839||t>=9840&&t<=10087||t===10088||t===10089||t===10090||t===10091||t===10092||t===10093||t===10094||t===10095||t===10096||t===10097||t===10098||t===10099||t===10100||t===10101||t>=10132&&t<=10175||t>=10176&&t<=10180||t===10181||t===10182||t>=10183&&t<=10213||t===10214||t===10215||t===10216||t===10217||t===10218||t===10219||t===10220||t===10221||t===10222||t===10223||t>=10224&&t<=10239||t>=10240&&t<=10495||t>=10496&&t<=10626||t===10627||t===10628||t===10629||t===10630||t===10631||t===10632||t===10633||t===10634||t===10635||t===10636||t===10637||t===10638||t===10639||t===10640||t===10641||t===10642||t===10643||t===10644||t===10645||t===10646||t===10647||t===10648||t>=10649&&t<=10711||t===10712||t===10713||t===10714||t===10715||t>=10716&&t<=10747||t===10748||t===10749||t>=10750&&t<=11007||t>=11008&&t<=11055||t>=11056&&t<=11076||t>=11077&&t<=11078||t>=11079&&t<=11084||t>=11085&&t<=11123||t>=11124&&t<=11125||t>=11126&&t<=11157||t===11158||t>=11159&&t<=11263||t>=11776&&t<=11777||t===11778||t===11779||t===11780||t===11781||t>=11782&&t<=11784||t===11785||t===11786||t===11787||t===11788||t===11789||t>=11790&&t<=11798||t===11799||t>=11800&&t<=11801||t===11802||t===11803||t===11804||t===11805||t>=11806&&t<=11807||t===11808||t===11809||t===11810||t===11811||t===11812||t===11813||t===11814||t===11815||t===11816||t===11817||t>=11818&&t<=11822||t===11823||t>=11824&&t<=11833||t>=11834&&t<=11835||t>=11836&&t<=11839||t===11840||t===11841||t===11842||t>=11843&&t<=11855||t>=11856&&t<=11857||t===11858||t>=11859&&t<=11903||t>=12289&&t<=12291||t===12296||t===12297||t===12298||t===12299||t===12300||t===12301||t===12302||t===12303||t===12304||t===12305||t>=12306&&t<=12307||t===12308||t===12309||t===12310||t===12311||t===12312||t===12313||t===12314||t===12315||t===12316||t===12317||t>=12318&&t<=12319||t===12320||t===12336||t===64830||t===64831||t>=65093&&t<=65094}function Ci(t){t.forEach(function(r){if(delete r.location,ln(r)||un(r))for(var e in r.options)delete r.options[e].location,Ci(r.options[e].value);else sn(r)&&hn(r.style)||(nn(r)||an(r))&&xi(r.style)?delete r.style.location:cn(r)&&Ci(r.children)})}function ku(t,r){r===void 0&&(r={}),r=H({shouldParseSkeletons:!0,requiresOtherClause:!0},r);var e=new Cu(t,r).parse();if(e.err){var i=SyntaxError(O[e.err.kind]);throw i.location=e.err.location,i.originalMessage=e.err.message,i}return r!=null&&r.captureLocation||Ci(e.val),e.val}function jr(t,r){var e=r&&r.cache?r.cache:$u,i=r&&r.serializer?r.serializer:Lu,o=r&&r.strategy?r.strategy:Mu;return o(t,{cache:e,serializer:i})}function Ou(t){return t==null||typeof t=="number"||typeof t=="boolean"}function yn(t,r,e,i){var o=Ou(i)?i:e(i),s=r.get(o);return typeof s=="undefined"&&(s=t.call(this,i),r.set(o,s)),s}function vn(t,r,e){var i=Array.prototype.slice.call(arguments,3),o=e(i),s=r.get(o);return typeof s=="undefined"&&(s=t.apply(this,i),r.set(o,s)),s}function Zi(t,r,e,i,o){return e.bind(r,t,i,o)}function Mu(t,r){var e=t.length===1?yn:vn;return Zi(t,this,e,r.cache.create(),r.serializer)}function Iu(t,r){return Zi(t,this,vn,r.cache.create(),r.serializer)}function Nu(t,r){return Zi(t,this,yn,r.cache.create(),r.serializer)}var Lu=function(){return JSON.stringify(arguments)};function Qi(){this.cache=Object.create(null)}Qi.prototype.get=function(t){return this.cache[t]};Qi.prototype.set=function(t,r){this.cache[t]=r};var $u={create:function(){return new Qi}},Vr={variadic:Iu,monadic:Nu},ht;(function(t){t.MISSING_VALUE="MISSING_VALUE",t.INVALID_VALUE="INVALID_VALUE",t.MISSING_INTL_API="MISSING_INTL_API"})(ht||(ht={}));var Tr=function(t){Me(r,t);function r(e,i,o){var s=t.call(this,e)||this;return s.code=i,s.originalMessage=o,s}return r.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},r}(Error),Go=function(t){Me(r,t);function r(e,i,o,s){return t.call(this,'Invalid values for "'.concat(e,'": "').concat(i,'". Options are "').concat(Object.keys(o).join('", "'),'"'),ht.INVALID_VALUE,s)||this}return r}(Tr),Hu=function(t){Me(r,t);function r(e,i,o){return t.call(this,'Value for "'.concat(e,'" must be of type ').concat(i),ht.INVALID_VALUE,o)||this}return r}(Tr),Bu=function(t){Me(r,t);function r(e,i){return t.call(this,'The intl string context variable "'.concat(e,'" was not provided to the string "').concat(i,'"'),ht.MISSING_VALUE,i)||this}return r}(Tr),ne;(function(t){t[t.literal=0]="literal",t[t.object=1]="object"})(ne||(ne={}));function zu(t){return t.length<2?t:t.reduce(function(r,e){var i=r[r.length-1];return!i||i.type!==ne.literal||e.type!==ne.literal?r.push(e):i.value+=e.value,r},[])}function Fu(t){return typeof t=="function"}function ar(t,r,e,i,o,s,n){if(t.length===1&&zo(t[0]))return[{type:ne.literal,value:t[0].value}];for(var a=[],l=0,u=t;l<u.length;l++){var c=u[l];if(zo(c)){a.push({type:ne.literal,value:c.value});continue}if(ru(c)){typeof s=="number"&&a.push({type:ne.literal,value:e.getNumberFormat(r).format(s)});continue}var h=c.value;if(!(o&&h in o))throw new Bu(h,n);var d=o[h];if(tu(c)){(!d||typeof d=="string"||typeof d=="number")&&(d=typeof d=="string"||typeof d=="number"?String(d):""),a.push({type:typeof d=="string"?ne.literal:ne.object,value:d});continue}if(nn(c)){var p=typeof c.style=="string"?i.date[c.style]:xi(c.style)?c.style.parsedOptions:void 0;a.push({type:ne.literal,value:e.getDateTimeFormat(r,p).format(d)});continue}if(an(c)){var p=typeof c.style=="string"?i.time[c.style]:xi(c.style)?c.style.parsedOptions:i.time.medium;a.push({type:ne.literal,value:e.getDateTimeFormat(r,p).format(d)});continue}if(sn(c)){var p=typeof c.style=="string"?i.number[c.style]:hn(c.style)?c.style.parsedOptions:void 0;p&&p.scale&&(d=d*(p.scale||1)),a.push({type:ne.literal,value:e.getNumberFormat(r,p).format(d)});continue}if(cn(c)){var f=c.children,y=c.value,P=o[y];if(!Fu(P))throw new Hu(y,"function",n);var D=ar(f,r,e,i,o,s),M=P(D.map(function(F){return F.value}));Array.isArray(M)||(M=[M]),a.push.apply(a,M.map(function(F){return{type:typeof F=="string"?ne.literal:ne.object,value:F}}))}if(ln(c)){var z=c.options[d]||c.options.other;if(!z)throw new Go(c.value,d,Object.keys(c.options),n);a.push.apply(a,ar(z.value,r,e,i,o));continue}if(un(c)){var z=c.options["=".concat(d)];if(!z){if(!Intl.PluralRules)throw new Tr(`Intl.PluralRules is not available in this environment.
|
|
4
4
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
5
|
-
`,ht.MISSING_INTL_API,n);var ee=e.getPluralRules(r,{type:c.pluralType}).select(d-(c.offset||0));z=c.options[ee]||c.options.other}if(!z)throw new Gi(c.value,d,Object.keys(c.options),n);a.push.apply(a,ar(z.value,r,e,o,i,d-(c.offset||0)));continue}}return zu(a)}function Ru(t,r){return r?H(H(H({},t||{}),r||{}),Object.keys(t).reduce(function(e,o){return e[o]=H(H({},t[o]),r[o]||{}),e},{})):t}function Uu(t,r){return r?Object.keys(t).reduce(function(e,o){return e[o]=Ru(t[o],r[o]),e},H({},t)):t}function Yr(t){return{create:function(){return{get:function(r){return t[r]},set:function(r,e){t[r]=e}}}}}function ju(t){return t===void 0&&(t={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:jr(function(){for(var r,e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];return new((r=Intl.NumberFormat).bind.apply(r,st([void 0],e,!1)))},{cache:Yr(t.number),strategy:Vr.variadic}),getDateTimeFormat:jr(function(){for(var r,e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];return new((r=Intl.DateTimeFormat).bind.apply(r,st([void 0],e,!1)))},{cache:Yr(t.dateTime),strategy:Vr.variadic}),getPluralRules:jr(function(){for(var r,e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];return new((r=Intl.PluralRules).bind.apply(r,st([void 0],e,!1)))},{cache:Yr(t.pluralRules),strategy:Vr.variadic})}}var Vu=function(){function t(r,e,o,i){var s=this;if(e===void 0&&(e=t.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(l){var u=s.formatToParts(l);if(u.length===1)return u[0].value;var c=u.reduce(function(h,d){return!h.length||d.type!==ne.literal||typeof h[h.length-1]!="string"?h.push(d.value):h[h.length-1]+=d.value,h},[]);return c.length<=1?c[0]||"":c},this.formatToParts=function(l){return ar(s.ast,s.locales,s.formatters,s.formats,l,void 0,s.message)},this.resolvedOptions=function(){var l;return{locale:((l=s.resolvedLocale)===null||l===void 0?void 0:l.toString())||Intl.NumberFormat.supportedLocalesOf(s.locales)[0]}},this.getAst=function(){return s.ast},this.locales=e,this.resolvedLocale=t.resolveLocale(e),typeof r=="string"){if(this.message=r,!t.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var n=i||{};n.formatters;var a=Sl(n,["formatters"]);this.ast=t.__parse(r,H(H({},a),{locale:this.resolvedLocale}))}else this.ast=r;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=Uu(t.formats,o),this.formatters=i&&i.formatters||ju(this.formatterCache)}return Object.defineProperty(t,"defaultLocale",{get:function(){return t.memoizedDefaultLocale||(t.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),t.memoizedDefaultLocale},enumerable:!1,configurable:!0}),t.memoizedDefaultLocale=null,t.resolveLocale=function(r){if(typeof Intl.Locale!="undefined"){var e=Intl.NumberFormat.supportedLocalesOf(r);return e.length>0?new Intl.Locale(e[0]):new Intl.Locale(typeof r=="string"?r:r[0])}},t.__parse=ku,t.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"}}},t}();function Yu(t,r){if(r==null)return;if(r in t)return t[r];const e=r.split(".");let o=t;for(let i=0;i<e.length;i++)if(typeof o=="object"){if(i>0){const s=e.slice(i,e.length).join(".");if(s in o){o=o[s];break}}o=o[e[i]]}else o=void 0;return o}const Ne={},Gu=(t,r,e)=>e&&(r in Ne||(Ne[r]={}),t in Ne[r]||(Ne[r][t]=e),e),xn=(t,r)=>{if(r==null)return;if(r in Ne&&t in Ne[r])return Ne[r][t];const e=Pr(r);for(let o=0;o<e.length;o++){const i=e[o],s=qu(i,t);if(s)return Gu(t,r,s)}};let ti;const Wt=Cr({});function Wu(t){return ti[t]||null}function wn(t){return t in ti}function qu(t,r){if(!wn(t))return null;const e=Wu(t);return Yu(e,r)}function Xu(t){if(t==null)return;const r=Pr(t);for(let e=0;e<r.length;e++){const o=r[e];if(wn(o))return o}}function En(t,...r){delete Ne[t],Wt.update(e=>(e[t]=eu.all([e[t]||{},...r]),e))}vt([Wt],([t])=>Object.keys(t));Wt.subscribe(t=>ti=t);const lr={};function Ku(t,r){lr[t].delete(r),lr[t].size===0&&delete lr[t]}function Sn(t){return lr[t]}function Ju(t){return Pr(t).map(r=>{const e=Sn(r);return[r,e?[...e]:[]]}).filter(([,r])=>r.length>0)}function Po(t){return t==null?!1:Pr(t).some(r=>{var e;return(e=Sn(r))==null?void 0:e.size})}function Zu(t,r){return Promise.all(r.map(o=>(Ku(t,o),o().then(i=>i.default||i)))).then(o=>En(t,...o))}const Et={};function An(t){if(!Po(t))return t in Et?Et[t]:Promise.resolve();const r=Ju(t);return Et[t]=Promise.all(r.map(([e,o])=>Zu(e,o))).then(()=>{if(Po(t))return An(t);delete Et[t]}),Et[t]}const Qu={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"}}},ec={fallbackLocale:null,loadingDelay:200,formats:Qu,warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0},tc=ec;function dt(){return tc}const Gr=Cr(!1);var rc=Object.defineProperty,oc=Object.defineProperties,ic=Object.getOwnPropertyDescriptors,Wi=Object.getOwnPropertySymbols,sc=Object.prototype.hasOwnProperty,nc=Object.prototype.propertyIsEnumerable,qi=(t,r,e)=>r in t?rc(t,r,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[r]=e,ac=(t,r)=>{for(var e in r||(r={}))sc.call(r,e)&&qi(t,e,r[e]);if(Wi)for(var e of Wi(r))nc.call(r,e)&&qi(t,e,r[e]);return t},lc=(t,r)=>oc(t,ic(r));let Do;const mr=Cr(null);function Xi(t){return t.split("-").map((r,e,o)=>o.slice(0,e+1).join("-")).reverse()}function Pr(t,r=dt().fallbackLocale){const e=Xi(t);return r?[...new Set([...e,...Xi(r)])]:e}function Ge(){return Do!=null?Do:void 0}mr.subscribe(t=>{Do=t!=null?t:void 0,typeof window!="undefined"&&t!=null&&document.documentElement.setAttribute("lang",t)});const uc=t=>{if(t&&Xu(t)&&Po(t)){const{loadingDelay:r}=dt();let e;return typeof window!="undefined"&&Ge()!=null&&r?e=window.setTimeout(()=>Gr.set(!0),r):Gr.set(!0),An(t).then(()=>{mr.set(t)}).finally(()=>{clearTimeout(e),Gr.set(!1)})}return mr.set(t)},gt=lc(ac({},mr),{set:uc}),Dr=t=>{const r=Object.create(null);return o=>{const i=JSON.stringify(o);return i in r?r[i]:r[i]=t(o)}};var cc=Object.defineProperty,_r=Object.getOwnPropertySymbols,Cn=Object.prototype.hasOwnProperty,Tn=Object.prototype.propertyIsEnumerable,Ki=(t,r,e)=>r in t?cc(t,r,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[r]=e,ri=(t,r)=>{for(var e in r||(r={}))Cn.call(r,e)&&Ki(t,e,r[e]);if(_r)for(var e of _r(r))Tn.call(r,e)&&Ki(t,e,r[e]);return t},bt=(t,r)=>{var e={};for(var o in t)Cn.call(t,o)&&r.indexOf(o)<0&&(e[o]=t[o]);if(t!=null&&_r)for(var o of _r(t))r.indexOf(o)<0&&Tn.call(t,o)&&(e[o]=t[o]);return e};const Lt=(t,r)=>{const{formats:e}=dt();if(t in e&&r in e[t])return e[t][r];throw new Error(`[svelte-i18n] Unknown "${r}" ${t} format.`)},hc=Dr(t=>{var r=t,{locale:e,format:o}=r,i=bt(r,["locale","format"]);if(e==null)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return o&&(i=Lt("number",o)),new Intl.NumberFormat(e,i)}),dc=Dr(t=>{var r=t,{locale:e,format:o}=r,i=bt(r,["locale","format"]);if(e==null)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return o?i=Lt("date",o):Object.keys(i).length===0&&(i=Lt("date","short")),new Intl.DateTimeFormat(e,i)}),pc=Dr(t=>{var r=t,{locale:e,format:o}=r,i=bt(r,["locale","format"]);if(e==null)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return o?i=Lt("time",o):Object.keys(i).length===0&&(i=Lt("time","short")),new Intl.DateTimeFormat(e,i)}),fc=(t={})=>{var r=t,{locale:e=Ge()}=r,o=bt(r,["locale"]);return hc(ri({locale:e},o))},mc=(t={})=>{var r=t,{locale:e=Ge()}=r,o=bt(r,["locale"]);return dc(ri({locale:e},o))},_c=(t={})=>{var r=t,{locale:e=Ge()}=r,o=bt(r,["locale"]);return pc(ri({locale:e},o))},vc=Dr((t,r=Ge())=>new Vu(t,r,dt().formats,{ignoreTag:dt().ignoreTag})),gc=(t,r={})=>{var e,o,i,s;let n=r;typeof t=="object"&&(n=t,t=n.id);const{values:a,locale:l=Ge(),default:u}=n;if(l==null)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let c=xn(t,l);if(!c)c=(s=(i=(o=(e=dt()).handleMissingMessage)==null?void 0:o.call(e,{locale:l,id:t,defaultValue:u}))!=null?i:u)!=null?s:t;else if(typeof c!="string")return console.warn(`[svelte-i18n] Message with id "${t}" must be of type "string", found: "${typeof c}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),c;if(!a)return c;let h=c;try{h=vc(c,l).format(a)}catch(d){d instanceof Error&&console.warn(`[svelte-i18n] Message "${t}" has syntax error:`,d.message)}return h},bc=(t,r)=>_c(r).format(t),yc=(t,r)=>mc(r).format(t),xc=(t,r)=>fc(r).format(t),wc=(t,r=Ge())=>xn(t,r),Ec=vt([gt,Wt],()=>gc);vt([gt],()=>bc);vt([gt],()=>yc);vt([gt],()=>xc);vt([gt,Wt],()=>wc);window.emWidgets={topic:Hl};const Sc=t=>t.toLowerCase().match(/android/i)?"Android":t.toLowerCase().match(/iphone/i)?"iPhone":t.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC";var Pn={exports:{}};(function(t,r){(function(e,o){t.exports=o()})(zl,function(){var e=1e3,o=6e4,i=36e5,s="millisecond",n="second",a="minute",l="hour",u="day",c="week",h="month",d="quarter",p="year",f="date",b="Invalid Date",P=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,D=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,M={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(w){var _=["th","st","nd","rd"],m=w%100;return"["+w+(_[(m-20)%10]||_[m]||_[0])+"]"}},z=function(w,_,m){var y=String(w);return!y||y.length>=_?w:""+Array(_+1-y.length).join(m)+w},ee={s:z,z:function(w){var _=-w.utcOffset(),m=Math.abs(_),y=Math.floor(m/60),v=m%60;return(_<=0?"+":"-")+z(y,2,"0")+":"+z(v,2,"0")},m:function w(_,m){if(_.date()<m.date())return-w(m,_);var y=12*(m.year()-_.year())+(m.month()-_.month()),v=_.clone().add(y,h),E=m-v<0,A=_.clone().add(y+(E?-1:1),h);return+(-(y+(m-v)/(E?v-A:A-v))||0)},a:function(w){return w<0?Math.ceil(w)||0:Math.floor(w)},p:function(w){return{M:h,y:p,w:c,d:u,D:f,h:l,m:a,s:n,ms:s,Q:d}[w]||String(w||"").toLowerCase().replace(/s$/,"")},u:function(w){return w===void 0}},F="en",X={};X[F]=M;var fe="$isDayjsObject",ge=function(w){return w instanceof ye||!(!w||!w[fe])},de=function w(_,m,y){var v;if(!_)return F;if(typeof _=="string"){var E=_.toLowerCase();X[E]&&(v=E),m&&(X[E]=m,v=E);var A=_.split("-");if(!v&&A.length>1)return w(A[0])}else{var N=_.name;X[N]=_,v=N}return!y&&v&&(F=v),v||!y&&F},j=function(w,_){if(ge(w))return w.clone();var m=typeof _=="object"?_:{};return m.date=w,m.args=arguments,new ye(m)},k=ee;k.l=de,k.i=ge,k.w=function(w,_){return j(w,{locale:_.$L,utc:_.$u,x:_.$x,$offset:_.$offset})};var ye=function(){function w(m){this.$L=de(m.locale,null,!0),this.parse(m),this.$x=this.$x||m.x||{},this[fe]=!0}var _=w.prototype;return _.parse=function(m){this.$d=function(y){var v=y.date,E=y.utc;if(v===null)return new Date(NaN);if(k.u(v))return new Date;if(v instanceof Date)return new Date(v);if(typeof v=="string"&&!/Z$/i.test(v)){var A=v.match(P);if(A){var N=A[2]-1||0,U=(A[7]||"0").substring(0,3);return E?new Date(Date.UTC(A[1],N,A[3]||1,A[4]||0,A[5]||0,A[6]||0,U)):new Date(A[1],N,A[3]||1,A[4]||0,A[5]||0,A[6]||0,U)}}return new Date(v)}(m),this.init()},_.init=function(){var m=this.$d;this.$y=m.getFullYear(),this.$M=m.getMonth(),this.$D=m.getDate(),this.$W=m.getDay(),this.$H=m.getHours(),this.$m=m.getMinutes(),this.$s=m.getSeconds(),this.$ms=m.getMilliseconds()},_.$utils=function(){return k},_.isValid=function(){return this.$d.toString()!==b},_.isSame=function(m,y){var v=j(m);return this.startOf(y)<=v&&v<=this.endOf(y)},_.isAfter=function(m,y){return j(m)<this.startOf(y)},_.isBefore=function(m,y){return this.endOf(y)<j(m)},_.$g=function(m,y,v){return k.u(m)?this[y]:this.set(v,m)},_.unix=function(){return Math.floor(this.valueOf()/1e3)},_.valueOf=function(){return this.$d.getTime()},_.startOf=function(m,y){var v=this,E=!!k.u(y)||y,A=k.p(m),N=function(L,W){var me=k.w(v.$u?Date.UTC(v.$y,W,L):new Date(v.$y,W,L),v);return E?me:me.endOf(u)},U=function(L,W){return k.w(v.toDate()[L].apply(v.toDate("s"),(E?[0,0,0,0]:[23,59,59,999]).slice(W)),v)},R=this.$W,K=this.$M,Z=this.$D,ue="set"+(this.$u?"UTC":"");switch(A){case p:return E?N(1,0):N(31,11);case h:return E?N(1,K):N(0,K+1);case c:var x=this.$locale().weekStart||0,G=(R<x?R+7:R)-x;return N(E?Z-G:Z+(6-G),K);case u:case f:return U(ue+"Hours",0);case l:return U(ue+"Minutes",1);case a:return U(ue+"Seconds",2);case n:return U(ue+"Milliseconds",3);default:return this.clone()}},_.endOf=function(m){return this.startOf(m,!1)},_.$set=function(m,y){var v,E=k.p(m),A="set"+(this.$u?"UTC":""),N=(v={},v[u]=A+"Date",v[f]=A+"Date",v[h]=A+"Month",v[p]=A+"FullYear",v[l]=A+"Hours",v[a]=A+"Minutes",v[n]=A+"Seconds",v[s]=A+"Milliseconds",v)[E],U=E===u?this.$D+(y-this.$W):y;if(E===h||E===p){var R=this.clone().set(f,1);R.$d[N](U),R.init(),this.$d=R.set(f,Math.min(this.$D,R.daysInMonth())).$d}else N&&this.$d[N](U);return this.init(),this},_.set=function(m,y){return this.clone().$set(m,y)},_.get=function(m){return this[k.p(m)]()},_.add=function(m,y){var v,E=this;m=Number(m);var A=k.p(y),N=function(K){var Z=j(E);return k.w(Z.date(Z.date()+Math.round(K*m)),E)};if(A===h)return this.set(h,this.$M+m);if(A===p)return this.set(p,this.$y+m);if(A===u)return N(1);if(A===c)return N(7);var U=(v={},v[a]=o,v[l]=i,v[n]=e,v)[A]||1,R=this.$d.getTime()+m*U;return k.w(R,this)},_.subtract=function(m,y){return this.add(-1*m,y)},_.format=function(m){var y=this,v=this.$locale();if(!this.isValid())return v.invalidDate||b;var E=m||"YYYY-MM-DDTHH:mm:ssZ",A=k.z(this),N=this.$H,U=this.$m,R=this.$M,K=v.weekdays,Z=v.months,ue=v.meridiem,x=function(W,me,xe,Se){return W&&(W[me]||W(y,E))||xe[me].slice(0,Se)},G=function(W){return k.s(N%12||12,W,"0")},L=ue||function(W,me,xe){var Se=W<12?"AM":"PM";return xe?Se.toLowerCase():Se};return E.replace(D,function(W,me){return me||function(xe){switch(xe){case"YY":return String(y.$y).slice(-2);case"YYYY":return k.s(y.$y,4,"0");case"M":return R+1;case"MM":return k.s(R+1,2,"0");case"MMM":return x(v.monthsShort,R,Z,3);case"MMMM":return x(Z,R);case"D":return y.$D;case"DD":return k.s(y.$D,2,"0");case"d":return String(y.$W);case"dd":return x(v.weekdaysMin,y.$W,K,2);case"ddd":return x(v.weekdaysShort,y.$W,K,3);case"dddd":return K[y.$W];case"H":return String(N);case"HH":return k.s(N,2,"0");case"h":return G(1);case"hh":return G(2);case"a":return L(N,U,!0);case"A":return L(N,U,!1);case"m":return String(U);case"mm":return k.s(U,2,"0");case"s":return String(y.$s);case"ss":return k.s(y.$s,2,"0");case"SSS":return k.s(y.$ms,3,"0");case"Z":return A}return null}(W)||A.replace(":","")})},_.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},_.diff=function(m,y,v){var E,A=this,N=k.p(y),U=j(m),R=(U.utcOffset()-this.utcOffset())*o,K=this-U,Z=function(){return k.m(A,U)};switch(N){case p:E=Z()/12;break;case h:E=Z();break;case d:E=Z()/3;break;case c:E=(K-R)/6048e5;break;case u:E=(K-R)/864e5;break;case l:E=K/i;break;case a:E=K/o;break;case n:E=K/e;break;default:E=K}return v?E:k.a(E)},_.daysInMonth=function(){return this.endOf(h).$D},_.$locale=function(){return X[this.$L]},_.locale=function(m,y){if(!m)return this.$L;var v=this.clone(),E=de(m,y,!0);return E&&(v.$L=E),v},_.clone=function(){return k.w(this.$d,this)},_.toDate=function(){return new Date(this.valueOf())},_.toJSON=function(){return this.isValid()?this.toISOString():null},_.toISOString=function(){return this.$d.toISOString()},_.toString=function(){return this.$d.toUTCString()},w}(),le=ye.prototype;return j.prototype=le,[["$ms",s],["$s",n],["$m",a],["$H",l],["$W",u],["$M",h],["$y",p],["$D",f]].forEach(function(w){le[w[1]]=function(_){return this.$g(_,w[0],w[1])}}),j.extend=function(w,_){return w.$i||(w(_,ye,j),w.$i=!0),j},j.locale=de,j.isDayjs=ge,j.unix=function(w){return j(1e3*w)},j.en=X[F],j.Ls=X,j.p={},j})})(Pn);var Ac=Pn.exports;const Wr=rn(Ac);function Ji(t,r){En(t,r)}function Cc(t){gt.set(t)}const Zi={en:{titleSelfExclusion:"Self-Exclusion",selfExclusionText1:"We recognize that gambling can be harmful so to prevent problems associated with gambling, we offer our users the ability to exclude from all forms of betting on our site for a certain indefinite period of time.",selfExclusionText2:'Self-exclusion takes effect from the time it is set for your chosen period. Select a timeframe below then click "Save".',selfExclusionText3:"During self-exclusion, you will be able to access your account and withdraw funds but you will not be able to deposit or place any bets. In the case of permanent self-exclusion, it is only possible to revoke Self-exclusion upon written request and only 6 months after its initial application. Please note that an alternative way to request self-exclusion is to contact Customer Service as follows:",selfExclusionText4:"E-mail:",duration:"Duration:",dateInstructions:"In order to manually input date use the following format:",forever:"Forever",save:"Save",noPeriodSelected:"Please select a self exclusion period",selectAPeriod:"Select a period",temporarySelfExclusion:"Your self-exclusion period will last until the {date} 23:59.",permanentSelfExclusion:"Your self-exclusion period will be permanent.",SelfExclusionFor6Months:"6 Months",SelfExclusionFor1Year:"1 Year",SelfExclusionFor5Years:"5 Years",SelfExclusionPermanent:"Permanent",SelfExclusionUntilSelectedDate:"Until"},"zh-hk":{titleSelfExclusion:"自我排除",selfExclusionText1:"我們意識到賭博可能帶來危害,為防止與賭博相關的問題,我們為用戶提供自我排除功能,讓您可以在我們的網站上暫停所有形式的投注,持續一定或不定期限。",selfExclusionText2:"自我排除自您選定的期限開始生效。請選擇以下的時長,然後點擊「儲存」。",selfExclusionText3:"在自我排除期間,您仍然可以進入您的帳戶並提取資金,但無法存款或進行任何投注。如果是永久自我排除,只有在書面申請並且自申請起6個月後才可撤銷自我排除。請注意,另一種申請自我排除的方法是聯絡客戶服務,聯絡方式如下:",selfExclusionText4:"電郵:",duration:"時長:",dateInstructions:"為了手動輸入日期,請使用以下格式",forever:"永久",save:"儲存",noPeriodSelected:"請選擇自我排除時期",selectAPeriod:"選擇時長",temporarySelfExclusion:"您的自我排除期將持續至{date} 23:59。",permanentSelfExclusion:"您的自我排除期將會是永久的。",SelfExclusionFor6Months:"6個月",SelfExclusionFor1Year:"1年",SelfExclusionFor5Years:"5年",SelfExclusionPermanent:"永久",SelfExclusionUntilSelectedDate:"直到"},fr:{titleSelfExclusion:"Auto-exclusion",selfExclusionText1:"Nous reconnaissons que le jeu peut être nuisible, c'est pourquoi, afin de prévenir les problèmes associés au jeu, nous offrons à nos utilisateurs la possibilité de s'exclure de toutes les formes de paris sur notre site pour une période déterminée ou indéfinie.",selfExclusionText2:"L'auto-exclusion prend effet à partir du moment où elle est définie pour la période que vous avez choisie. Sélectionnez une durée ci-dessous, puis cliquez sur « Enregistrer ».",selfExclusionText3:"Pendant la période d'auto-exclusion, vous pourrez accéder à votre compte et retirer des fonds, mais vous ne pourrez ni déposer, ni placer de paris. Dans le cas d'une auto-exclusion permanente, il n'est possible de révoquer l'auto-exclusion que sur demande écrite et seulement 6 mois après son application initiale. Veuillez noter qu'une autre manière de demander une auto-exclusion est de contacter le service client comme suit :",selfExclusionText4:"E-mail :",duration:"Durée :",dateInstructions:"Pour saisir la date manuellement, utilisez le format suivant:",forever:"Pour toujours",save:"Enregistrer",noPeriodSelected:"Veuillez sélectionner une période d'auto-exclusion",selectAPeriod:"Sélectionner une période",temporarySelfExclusion:"Votre période d'auto-exclusion durera jusqu'au {date} 23:59.",permanentSelfExclusion:"Votre période d'auto-exclusion sera permanente.",SelfExclusionFor6Months:"6 mois",SelfExclusionFor1Year:"1 an",SelfExclusionFor5Years:"5 ans",SelfExclusionPermanent:"Permanent",SelfExclusionUntilSelectedDate:"Jusqu'à"},ro:{titleSelfExclusion:"Auto-excludere",selfExclusionText1:"Recunoaștem că jocurile de noroc pot fi dăunătoare, așa că pentru a preveni problemele asociate cu acestea, oferim utilizatorilor noștri posibilitatea de a se auto-exclude de la toate formele de pariuri de pe site-ul nostru pentru o perioadă determinată sau nedeterminată.",selfExclusionText2:"Auto-excluderea intră în vigoare din momentul în care este setată pentru perioada aleasă de dvs. Selectați o perioadă mai jos, apoi faceți clic pe „Salvează”.",selfExclusionText3:"În timpul auto-excluderii, veți putea accesa contul dvs. și retrage fonduri, dar nu veți putea depune sau plasa pariuri. În cazul auto-excluderii permanente, este posibil să revocați auto-excluderea doar la cerere scrisă și numai după 6 luni de la aplicarea inițială. Vă rugăm să rețineți că o altă modalitate de a solicita auto-excluderea este să contactați Serviciul Clienți astfel:",selfExclusionText4:"E-mail:",duration:"Durată:",dateInstructions:"Pentru a introduce manual data, utilizați următorul format:",forever:"Permanent",save:"Salvează",noPeriodSelected:"Vă rugăm să selectați o perioadă de auto-excludere",selectAPeriod:"Selectați o perioadă",temporarySelfExclusion:"Perioada dvs. de auto-excludere va dura până la {date} 23:59.",permanentSelfExclusion:"Perioada dvs. de auto-excludere va fi permanentă.",SelfExclusionFor6Months:"6 luni",SelfExclusionFor1Year:"1 an",SelfExclusionFor5Years:"5 ani",SelfExclusionPermanent:"Permanent",SelfExclusionUntilSelectedDate:"Până la"},es:{titleSelfExclusion:"Autoexclusión",selfExclusionText1:"Reconocemos que el juego puede ser perjudicial, por lo que para prevenir problemas asociados al juego, ofrecemos a nuestros usuarios la posibilidad de excluirse de todas las formas de apuestas en nuestro sitio por un período determinado o indefinido.",selfExclusionText2:'La autoexclusión entra en vigor desde el momento en que se establece para el período que usted elija. Seleccione un período a continuación y luego haga clic en "Guardar".',selfExclusionText3:"Durante el período de autoexclusión, podrá acceder a su cuenta y retirar fondos, pero no podrá depositar ni realizar apuestas. En el caso de la autoexclusión permanente, solo es posible revocar la autoexclusión mediante solicitud por escrito y solo 6 meses después de su aplicación inicial. Tenga en cuenta que otra forma de solicitar la autoexclusión es contactando al Servicio de Atención al Cliente de la siguiente manera:",selfExclusionText4:"Correo electrónico:",duration:"Duración:",dateInstructions:"Para introducir la fecha manualmente, utilice el siguiente formato:",forever:"Permanente",save:"Guardar",noPeriodSelected:"Por favor, seleccione un período de autoexclusión",selectAPeriod:"Seleccione un período",temporarySelfExclusion:"Su período de autoexclusión durará hasta el {date} 23:59.",permanentSelfExclusion:"Su período de autoexclusión será permanente.",SelfExclusionFor6Months:"6 meses",SelfExclusionFor1Year:"1 año",SelfExclusionFor5Years:"5 años",SelfExclusionPermanent:"Permanente",SelfExclusionUntilSelectedDate:"Hasta"},pt:{titleSelfExclusion:"Autoexclusão",selfExclusionText1:"Reconhecemos que o jogo pode ser prejudicial, por isso, para prevenir problemas associados ao jogo, oferecemos aos nossos utilizadores a possibilidade de se autoexcluírem de todas as formas de apostas no nosso site por um período definido ou indefinido.",selfExclusionText2:'A autoexclusão entra em vigor a partir do momento em que é definida para o período escolhido. Selecione um período abaixo e clique em "Guardar".',selfExclusionText3:"Durante o período de autoexclusão, poderá aceder à sua conta e levantar fundos, mas não poderá depositar nem realizar apostas. No caso de autoexclusão permanente, só é possível revogar a autoexclusão mediante pedido por escrito e apenas 6 meses após a sua aplicação inicial. Note que outra forma de solicitar a autoexclusão é contactar o Serviço de Apoio ao Cliente da seguinte forma:",selfExclusionText4:"E-mail:",duration:"Duração:",dateInstructions:"Para inserir a data manualmente, utilize o seguinte formato:",forever:"Para sempre",save:"Guardar",noPeriodSelected:"Por favor, selecione um período de autoexclusão",selectAPeriod:"Selecione um período",temporarySelfExclusion:"O seu período de autoexclusão durará até {date} às 23:59.",permanentSelfExclusion:"O seu período de autoexclusão será permanente.",SelfExclusionFor6Months:"6 meses",SelfExclusionFor1Year:"1 ano",SelfExclusionFor5Years:"5 anos",SelfExclusionPermanent:"Permanente",SelfExclusionUntilSelectedDate:"Até"},hr:{titleSelfExclusion:"Samoisključenje",selfExclusionText1:"Prepoznajemo da kockanje može biti štetno, stoga, kako bismo spriječili probleme povezane s kockanjem, korisnicima nudimo mogućnost samoisključenja iz svih oblika klađenja na našoj stranici na određeno ili neodređeno vrijeme.",selfExclusionText2:'Samoisključenje stupa na snagu od trenutka kada je postavljeno za odabrano razdoblje. Odaberite razdoblje u nastavku, a zatim kliknite "Spremi".',selfExclusionText3:"Tijekom razdoblja samoisključenja moći ćete pristupiti svom računu i podići sredstva, ali nećete moći uplatiti novac niti postavljati oklade. U slučaju trajnog samoisključenja, samoisključenje se može ukinuti isključivo na pisani zahtjev i tek 6 mjeseci nakon njegove prve primjene. Imajte na umu da je alternativni način zahtjeva za samoisključenje kontaktiranje korisničke podrške na sljedeći način:",selfExclusionText4:"E-mail:",duration:"Trajanje:",dateInstructions:"Za ručni unos datuma koristite sljedeći format:",forever:"Zauvijek",save:"Spremi",noPeriodSelected:"Odaberite razdoblje samoisključenja",selectAPeriod:"Odaberite razdoblje",temporarySelfExclusion:"Vaše razdoblje samoisključenja trajat će do {date} u 23:59.",permanentSelfExclusion:"Vaše razdoblje samoisključenja bit će trajno.",SelfExclusionFor6Months:"6 mjeseci",SelfExclusionFor1Year:"1 godina",SelfExclusionFor5Years:"5 godina",SelfExclusionPermanent:"Trajno",SelfExclusionUntilSelectedDate:"Do"},"pt-br":{titleSelfExclusion:"Autoexclusão",selfExclusionText1:"Reconhecemos que o jogo pode ser prejudicial, por isso, para prevenir problemas associados ao jogo, oferecemos aos nossos usuários a possibilidade de se autoexcluírem de todas as formas de apostas em nosso site por um período determinado ou indeterminado.",selfExclusionText2:'A autoexclusão entra em vigor a partir do momento em que é configurada para o período escolhido. Selecione um período abaixo e clique em "Salvar".',selfExclusionText3:"Durante o período de autoexclusão, você poderá acessar sua conta e retirar fundos, mas não poderá depositar nem realizar apostas. No caso de autoexclusão permanente, só é possível revogar a autoexclusão mediante solicitação por escrito e apenas 6 meses após sua aplicação inicial. Observe que outra maneira de solicitar a autoexclusão é entrar em contato com o Atendimento ao Cliente da seguinte forma:",selfExclusionText4:"E-mail:",duration:"Duração:",dateInstructions:"Para inserir a data manualmente, utilize o seguinte formato:",forever:"Para sempre",save:"Salvar",noPeriodSelected:"Por favor, selecione um período de autoexclusão",selectAPeriod:"Selecione um período",temporarySelfExclusion:"Seu período de autoexclusão durará até {date} às 23:59.",permanentSelfExclusion:"Seu período de autoexclusão será permanente.",SelfExclusionFor6Months:"6 meses",SelfExclusionFor1Year:"1 ano",SelfExclusionFor5Years:"5 anos",SelfExclusionPermanent:"Permanente",SelfExclusionUntilSelectedDate:"Até"},"es-mx":{titleSelfExclusion:"Autoexclusión",selfExclusionText1:"Reconocemos que el juego puede ser perjudicial, por lo que para prevenir problemas asociados al juego, ofrecemos a nuestros usuarios la posibilidad de autoexcluirse de todas las formas de apuestas en nuestro sitio por un período determinado o indefinido.",selfExclusionText2:'La autoexclusión entra en vigor desde el momento en que se establece para el período que usted elija. Seleccione un período a continuación y luego haga clic en "Guardar".',selfExclusionText3:"Durante el período de autoexclusión, podrá acceder a su cuenta y retirar fondos, pero no podrá depositar ni realizar apuestas. En el caso de la autoexclusión permanente, solo es posible revocar la autoexclusión mediante solicitud por escrito y solo 6 meses después de su aplicación inicial. Tenga en cuenta que otra manera de solicitar la autoexclusión es contactando al Servicio al Cliente de la siguiente manera:",selfExclusionText4:"Correo electrónico:",duration:"Duración:",dateInstructions:"Para introducir la fecha manualmente, utilice el siguiente formato:",forever:"Permanente",save:"Guardar",noPeriodSelected:"Por favor, seleccione un período de autoexclusión",selectAPeriod:"Seleccione un período",temporarySelfExclusion:"Su período de autoexclusión durará hasta el {date} 23:59.",permanentSelfExclusion:"Su período de autoexclusión será permanente.",SelfExclusionFor6Months:"6 meses",SelfExclusionFor1Year:"1 año",SelfExclusionFor5Years:"5 años",SelfExclusionPermanent:"Permanente",SelfExclusionUntilSelectedDate:"Hasta"},tr:{titleSelfExclusion:"Kendi Kendini Hariç Tutma",selfExclusionText1:"Kumarın zararlı olabileceğini kabul ediyoruz, bu nedenle kumarla ilgili sorunları önlemek için, kullanıcılarımıza sitemizdeki tüm bahis türlerinden belirli veya belirsiz bir süre için kendilerini hariç tutma imkânı sunuyoruz.",selfExclusionText2:'Kendi kendini hariç tutma, seçtiğiniz dönem için ayarlandığı andan itibaren yürürlüğe girer. Aşağıdan bir süre seçin ve ardından "Kaydet"e tıklayın.',selfExclusionText3:"Kendi kendini hariç tutma süresi boyunca hesabınıza erişebilir ve para çekebilirsiniz, ancak para yatıramaz veya bahis oynayamazsınız. Kalıcı hariç tutma durumunda, sadece yazılı talep üzerine ve ilk uygulamadan 6 ay sonra hariç tutma iptal edilebilir. Lütfen kendi kendini hariç tutma talep etmenin alternatif bir yolunun Müşteri Hizmetleri ile iletişime geçmek olduğunu unutmayın:",selfExclusionText4:"E-posta:",duration:"Süre:",dateInstructions:"Tarihi elle girmek için aşağıdaki formatı kullanın:",forever:"Kalıcı",save:"Kaydet",noPeriodSelected:"Lütfen bir hariç tutma süresi seçin",selectAPeriod:"Bir süre seçin",temporarySelfExclusion:"Kendi kendini hariç tutma süreniz {date} 23:59'a kadar sürecektir.",permanentSelfExclusion:"Kendi kendini hariç tutma süreniz kalıcı olacaktır.",SelfExclusionFor6Months:"6 Ay",SelfExclusionFor1Year:"1 Yıl",SelfExclusionFor5Years:"5 Yıl",SelfExclusionPermanent:"Kalıcı",SelfExclusionUntilSelectedDate:"Kadar"}};/**
|
|
5
|
+
`,ht.MISSING_INTL_API,n);var ee=e.getPluralRules(r,{type:c.pluralType}).select(d-(c.offset||0));z=c.options[ee]||c.options.other}if(!z)throw new Go(c.value,d,Object.keys(c.options),n);a.push.apply(a,ar(z.value,r,e,i,o,d-(c.offset||0)));continue}}return zu(a)}function Ru(t,r){return r?H(H(H({},t||{}),r||{}),Object.keys(t).reduce(function(e,i){return e[i]=H(H({},t[i]),r[i]||{}),e},{})):t}function Uu(t,r){return r?Object.keys(t).reduce(function(e,i){return e[i]=Ru(t[i],r[i]),e},H({},t)):t}function Yr(t){return{create:function(){return{get:function(r){return t[r]},set:function(r,e){t[r]=e}}}}}function ju(t){return t===void 0&&(t={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:jr(function(){for(var r,e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return new((r=Intl.NumberFormat).bind.apply(r,st([void 0],e,!1)))},{cache:Yr(t.number),strategy:Vr.variadic}),getDateTimeFormat:jr(function(){for(var r,e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return new((r=Intl.DateTimeFormat).bind.apply(r,st([void 0],e,!1)))},{cache:Yr(t.dateTime),strategy:Vr.variadic}),getPluralRules:jr(function(){for(var r,e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return new((r=Intl.PluralRules).bind.apply(r,st([void 0],e,!1)))},{cache:Yr(t.pluralRules),strategy:Vr.variadic})}}var Vu=function(){function t(r,e,i,o){var s=this;if(e===void 0&&(e=t.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(l){var u=s.formatToParts(l);if(u.length===1)return u[0].value;var c=u.reduce(function(h,d){return!h.length||d.type!==ne.literal||typeof h[h.length-1]!="string"?h.push(d.value):h[h.length-1]+=d.value,h},[]);return c.length<=1?c[0]||"":c},this.formatToParts=function(l){return ar(s.ast,s.locales,s.formatters,s.formats,l,void 0,s.message)},this.resolvedOptions=function(){var l;return{locale:((l=s.resolvedLocale)===null||l===void 0?void 0:l.toString())||Intl.NumberFormat.supportedLocalesOf(s.locales)[0]}},this.getAst=function(){return s.ast},this.locales=e,this.resolvedLocale=t.resolveLocale(e),typeof r=="string"){if(this.message=r,!t.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var n=o||{};n.formatters;var a=Sl(n,["formatters"]);this.ast=t.__parse(r,H(H({},a),{locale:this.resolvedLocale}))}else this.ast=r;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=Uu(t.formats,i),this.formatters=o&&o.formatters||ju(this.formatterCache)}return Object.defineProperty(t,"defaultLocale",{get:function(){return t.memoizedDefaultLocale||(t.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),t.memoizedDefaultLocale},enumerable:!1,configurable:!0}),t.memoizedDefaultLocale=null,t.resolveLocale=function(r){if(typeof Intl.Locale!="undefined"){var e=Intl.NumberFormat.supportedLocalesOf(r);return e.length>0?new Intl.Locale(e[0]):new Intl.Locale(typeof r=="string"?r:r[0])}},t.__parse=ku,t.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"}}},t}();function Yu(t,r){if(r==null)return;if(r in t)return t[r];const e=r.split(".");let i=t;for(let o=0;o<e.length;o++)if(typeof i=="object"){if(o>0){const s=e.slice(o,e.length).join(".");if(s in i){i=i[s];break}}i=i[e[o]]}else i=void 0;return i}const Ne={},Gu=(t,r,e)=>e&&(r in Ne||(Ne[r]={}),t in Ne[r]||(Ne[r][t]=e),e),xn=(t,r)=>{if(r==null)return;if(r in Ne&&t in Ne[r])return Ne[r][t];const e=Pr(r);for(let i=0;i<e.length;i++){const o=e[i],s=qu(o,t);if(s)return Gu(t,r,s)}};let eo;const Wt=Cr({});function Wu(t){return eo[t]||null}function wn(t){return t in eo}function qu(t,r){if(!wn(t))return null;const e=Wu(t);return Yu(e,r)}function Xu(t){if(t==null)return;const r=Pr(t);for(let e=0;e<r.length;e++){const i=r[e];if(wn(i))return i}}function En(t,...r){delete Ne[t],Wt.update(e=>(e[t]=eu.all([e[t]||{},...r]),e))}gt([Wt],([t])=>Object.keys(t));Wt.subscribe(t=>eo=t);const lr={};function Ku(t,r){lr[t].delete(r),lr[t].size===0&&delete lr[t]}function Sn(t){return lr[t]}function Ju(t){return Pr(t).map(r=>{const e=Sn(r);return[r,e?[...e]:[]]}).filter(([,r])=>r.length>0)}function Ti(t){return t==null?!1:Pr(t).some(r=>{var e;return(e=Sn(r))==null?void 0:e.size})}function Zu(t,r){return Promise.all(r.map(i=>(Ku(t,i),i().then(o=>o.default||o)))).then(i=>En(t,...i))}const Et={};function An(t){if(!Ti(t))return t in Et?Et[t]:Promise.resolve();const r=Ju(t);return Et[t]=Promise.all(r.map(([e,i])=>Zu(e,i))).then(()=>{if(Ti(t))return An(t);delete Et[t]}),Et[t]}const Qu={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"}}},ec={fallbackLocale:null,loadingDelay:200,formats:Qu,warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0},tc=ec;function dt(){return tc}const Gr=Cr(!1);var rc=Object.defineProperty,ic=Object.defineProperties,oc=Object.getOwnPropertyDescriptors,Wo=Object.getOwnPropertySymbols,sc=Object.prototype.hasOwnProperty,nc=Object.prototype.propertyIsEnumerable,qo=(t,r,e)=>r in t?rc(t,r,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[r]=e,ac=(t,r)=>{for(var e in r||(r={}))sc.call(r,e)&&qo(t,e,r[e]);if(Wo)for(var e of Wo(r))nc.call(r,e)&&qo(t,e,r[e]);return t},lc=(t,r)=>ic(t,oc(r));let Pi;const mr=Cr(null);function Xo(t){return t.split("-").map((r,e,i)=>i.slice(0,e+1).join("-")).reverse()}function Pr(t,r=dt().fallbackLocale){const e=Xo(t);return r?[...new Set([...e,...Xo(r)])]:e}function Ge(){return Pi!=null?Pi:void 0}mr.subscribe(t=>{Pi=t!=null?t:void 0,typeof window!="undefined"&&t!=null&&document.documentElement.setAttribute("lang",t)});const uc=t=>{if(t&&Xu(t)&&Ti(t)){const{loadingDelay:r}=dt();let e;return typeof window!="undefined"&&Ge()!=null&&r?e=window.setTimeout(()=>Gr.set(!0),r):Gr.set(!0),An(t).then(()=>{mr.set(t)}).finally(()=>{clearTimeout(e),Gr.set(!1)})}return mr.set(t)},bt=lc(ac({},mr),{set:uc}),Dr=t=>{const r=Object.create(null);return i=>{const o=JSON.stringify(i);return o in r?r[o]:r[o]=t(i)}};var cc=Object.defineProperty,_r=Object.getOwnPropertySymbols,Cn=Object.prototype.hasOwnProperty,Tn=Object.prototype.propertyIsEnumerable,Ko=(t,r,e)=>r in t?cc(t,r,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[r]=e,to=(t,r)=>{for(var e in r||(r={}))Cn.call(r,e)&&Ko(t,e,r[e]);if(_r)for(var e of _r(r))Tn.call(r,e)&&Ko(t,e,r[e]);return t},yt=(t,r)=>{var e={};for(var i in t)Cn.call(t,i)&&r.indexOf(i)<0&&(e[i]=t[i]);if(t!=null&&_r)for(var i of _r(t))r.indexOf(i)<0&&Tn.call(t,i)&&(e[i]=t[i]);return e};const Lt=(t,r)=>{const{formats:e}=dt();if(t in e&&r in e[t])return e[t][r];throw new Error(`[svelte-i18n] Unknown "${r}" ${t} format.`)},hc=Dr(t=>{var r=t,{locale:e,format:i}=r,o=yt(r,["locale","format"]);if(e==null)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return i&&(o=Lt("number",i)),new Intl.NumberFormat(e,o)}),dc=Dr(t=>{var r=t,{locale:e,format:i}=r,o=yt(r,["locale","format"]);if(e==null)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return i?o=Lt("date",i):Object.keys(o).length===0&&(o=Lt("date","short")),new Intl.DateTimeFormat(e,o)}),pc=Dr(t=>{var r=t,{locale:e,format:i}=r,o=yt(r,["locale","format"]);if(e==null)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return i?o=Lt("time",i):Object.keys(o).length===0&&(o=Lt("time","short")),new Intl.DateTimeFormat(e,o)}),fc=(t={})=>{var r=t,{locale:e=Ge()}=r,i=yt(r,["locale"]);return hc(to({locale:e},i))},mc=(t={})=>{var r=t,{locale:e=Ge()}=r,i=yt(r,["locale"]);return dc(to({locale:e},i))},_c=(t={})=>{var r=t,{locale:e=Ge()}=r,i=yt(r,["locale"]);return pc(to({locale:e},i))},gc=Dr((t,r=Ge())=>new Vu(t,r,dt().formats,{ignoreTag:dt().ignoreTag})),bc=(t,r={})=>{var e,i,o,s;let n=r;typeof t=="object"&&(n=t,t=n.id);const{values:a,locale:l=Ge(),default:u}=n;if(l==null)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let c=xn(t,l);if(!c)c=(s=(o=(i=(e=dt()).handleMissingMessage)==null?void 0:i.call(e,{locale:l,id:t,defaultValue:u}))!=null?o:u)!=null?s:t;else if(typeof c!="string")return console.warn(`[svelte-i18n] Message with id "${t}" must be of type "string", found: "${typeof c}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),c;if(!a)return c;let h=c;try{h=gc(c,l).format(a)}catch(d){d instanceof Error&&console.warn(`[svelte-i18n] Message "${t}" has syntax error:`,d.message)}return h},yc=(t,r)=>_c(r).format(t),vc=(t,r)=>mc(r).format(t),xc=(t,r)=>fc(r).format(t),wc=(t,r=Ge())=>xn(t,r),Ec=gt([bt,Wt],()=>bc);gt([bt],()=>yc);gt([bt],()=>vc);gt([bt],()=>xc);gt([bt,Wt],()=>wc);window.emWidgets={topic:Hl};const Sc=t=>t.toLowerCase().match(/android/i)?"Android":t.toLowerCase().match(/iphone/i)?"iPhone":t.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC";var Pn={exports:{}};(function(t,r){(function(e,i){t.exports=i()})(zl,function(){var e=1e3,i=6e4,o=36e5,s="millisecond",n="second",a="minute",l="hour",u="day",c="week",h="month",d="quarter",p="year",f="date",y="Invalid Date",P=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,D=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,M={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(w){var _=["th","st","nd","rd"],m=w%100;return"["+w+(_[(m-20)%10]||_[m]||_[0])+"]"}},z=function(w,_,m){var v=String(w);return!v||v.length>=_?w:""+Array(_+1-v.length).join(m)+w},ee={s:z,z:function(w){var _=-w.utcOffset(),m=Math.abs(_),v=Math.floor(m/60),g=m%60;return(_<=0?"+":"-")+z(v,2,"0")+":"+z(g,2,"0")},m:function w(_,m){if(_.date()<m.date())return-w(m,_);var v=12*(m.year()-_.year())+(m.month()-_.month()),g=_.clone().add(v,h),E=m-g<0,S=_.clone().add(v+(E?-1:1),h);return+(-(v+(m-g)/(E?g-S:S-g))||0)},a:function(w){return w<0?Math.ceil(w)||0:Math.floor(w)},p:function(w){return{M:h,y:p,w:c,d:u,D:f,h:l,m:a,s:n,ms:s,Q:d}[w]||String(w||"").toLowerCase().replace(/s$/,"")},u:function(w){return w===void 0}},F="en",X={};X[F]=M;var pe="$isDayjsObject",be=function(w){return w instanceof ve||!(!w||!w[pe])},fe=function w(_,m,v){var g;if(!_)return F;if(typeof _=="string"){var E=_.toLowerCase();X[E]&&(g=E),m&&(X[E]=m,g=E);var S=_.split("-");if(!g&&S.length>1)return w(S[0])}else{var N=_.name;X[N]=_,g=N}return!v&&g&&(F=g),g||!v&&F},j=function(w,_){if(be(w))return w.clone();var m=typeof _=="object"?_:{};return m.date=w,m.args=arguments,new ve(m)},k=ee;k.l=fe,k.i=be,k.w=function(w,_){return j(w,{locale:_.$L,utc:_.$u,x:_.$x,$offset:_.$offset})};var ve=function(){function w(m){this.$L=fe(m.locale,null,!0),this.parse(m),this.$x=this.$x||m.x||{},this[pe]=!0}var _=w.prototype;return _.parse=function(m){this.$d=function(v){var g=v.date,E=v.utc;if(g===null)return new Date(NaN);if(k.u(g))return new Date;if(g instanceof Date)return new Date(g);if(typeof g=="string"&&!/Z$/i.test(g)){var S=g.match(P);if(S){var N=S[2]-1||0,U=(S[7]||"0").substring(0,3);return E?new Date(Date.UTC(S[1],N,S[3]||1,S[4]||0,S[5]||0,S[6]||0,U)):new Date(S[1],N,S[3]||1,S[4]||0,S[5]||0,S[6]||0,U)}}return new Date(g)}(m),this.init()},_.init=function(){var m=this.$d;this.$y=m.getFullYear(),this.$M=m.getMonth(),this.$D=m.getDate(),this.$W=m.getDay(),this.$H=m.getHours(),this.$m=m.getMinutes(),this.$s=m.getSeconds(),this.$ms=m.getMilliseconds()},_.$utils=function(){return k},_.isValid=function(){return this.$d.toString()!==y},_.isSame=function(m,v){var g=j(m);return this.startOf(v)<=g&&g<=this.endOf(v)},_.isAfter=function(m,v){return j(m)<this.startOf(v)},_.isBefore=function(m,v){return this.endOf(v)<j(m)},_.$g=function(m,v,g){return k.u(m)?this[v]:this.set(g,m)},_.unix=function(){return Math.floor(this.valueOf()/1e3)},_.valueOf=function(){return this.$d.getTime()},_.startOf=function(m,v){var g=this,E=!!k.u(v)||v,S=k.p(m),N=function(L,W){var me=k.w(g.$u?Date.UTC(g.$y,W,L):new Date(g.$y,W,L),g);return E?me:me.endOf(u)},U=function(L,W){return k.w(g.toDate()[L].apply(g.toDate("s"),(E?[0,0,0,0]:[23,59,59,999]).slice(W)),g)},R=this.$W,K=this.$M,Z=this.$D,ue="set"+(this.$u?"UTC":"");switch(S){case p:return E?N(1,0):N(31,11);case h:return E?N(1,K):N(0,K+1);case c:var x=this.$locale().weekStart||0,G=(R<x?R+7:R)-x;return N(E?Z-G:Z+(6-G),K);case u:case f:return U(ue+"Hours",0);case l:return U(ue+"Minutes",1);case a:return U(ue+"Seconds",2);case n:return U(ue+"Milliseconds",3);default:return this.clone()}},_.endOf=function(m){return this.startOf(m,!1)},_.$set=function(m,v){var g,E=k.p(m),S="set"+(this.$u?"UTC":""),N=(g={},g[u]=S+"Date",g[f]=S+"Date",g[h]=S+"Month",g[p]=S+"FullYear",g[l]=S+"Hours",g[a]=S+"Minutes",g[n]=S+"Seconds",g[s]=S+"Milliseconds",g)[E],U=E===u?this.$D+(v-this.$W):v;if(E===h||E===p){var R=this.clone().set(f,1);R.$d[N](U),R.init(),this.$d=R.set(f,Math.min(this.$D,R.daysInMonth())).$d}else N&&this.$d[N](U);return this.init(),this},_.set=function(m,v){return this.clone().$set(m,v)},_.get=function(m){return this[k.p(m)]()},_.add=function(m,v){var g,E=this;m=Number(m);var S=k.p(v),N=function(K){var Z=j(E);return k.w(Z.date(Z.date()+Math.round(K*m)),E)};if(S===h)return this.set(h,this.$M+m);if(S===p)return this.set(p,this.$y+m);if(S===u)return N(1);if(S===c)return N(7);var U=(g={},g[a]=i,g[l]=o,g[n]=e,g)[S]||1,R=this.$d.getTime()+m*U;return k.w(R,this)},_.subtract=function(m,v){return this.add(-1*m,v)},_.format=function(m){var v=this,g=this.$locale();if(!this.isValid())return g.invalidDate||y;var E=m||"YYYY-MM-DDTHH:mm:ssZ",S=k.z(this),N=this.$H,U=this.$m,R=this.$M,K=g.weekdays,Z=g.months,ue=g.meridiem,x=function(W,me,xe,Se){return W&&(W[me]||W(v,E))||xe[me].slice(0,Se)},G=function(W){return k.s(N%12||12,W,"0")},L=ue||function(W,me,xe){var Se=W<12?"AM":"PM";return xe?Se.toLowerCase():Se};return E.replace(D,function(W,me){return me||function(xe){switch(xe){case"YY":return String(v.$y).slice(-2);case"YYYY":return k.s(v.$y,4,"0");case"M":return R+1;case"MM":return k.s(R+1,2,"0");case"MMM":return x(g.monthsShort,R,Z,3);case"MMMM":return x(Z,R);case"D":return v.$D;case"DD":return k.s(v.$D,2,"0");case"d":return String(v.$W);case"dd":return x(g.weekdaysMin,v.$W,K,2);case"ddd":return x(g.weekdaysShort,v.$W,K,3);case"dddd":return K[v.$W];case"H":return String(N);case"HH":return k.s(N,2,"0");case"h":return G(1);case"hh":return G(2);case"a":return L(N,U,!0);case"A":return L(N,U,!1);case"m":return String(U);case"mm":return k.s(U,2,"0");case"s":return String(v.$s);case"ss":return k.s(v.$s,2,"0");case"SSS":return k.s(v.$ms,3,"0");case"Z":return S}return null}(W)||S.replace(":","")})},_.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},_.diff=function(m,v,g){var E,S=this,N=k.p(v),U=j(m),R=(U.utcOffset()-this.utcOffset())*i,K=this-U,Z=function(){return k.m(S,U)};switch(N){case p:E=Z()/12;break;case h:E=Z();break;case d:E=Z()/3;break;case c:E=(K-R)/6048e5;break;case u:E=(K-R)/864e5;break;case l:E=K/o;break;case a:E=K/i;break;case n:E=K/e;break;default:E=K}return g?E:k.a(E)},_.daysInMonth=function(){return this.endOf(h).$D},_.$locale=function(){return X[this.$L]},_.locale=function(m,v){if(!m)return this.$L;var g=this.clone(),E=fe(m,v,!0);return E&&(g.$L=E),g},_.clone=function(){return k.w(this.$d,this)},_.toDate=function(){return new Date(this.valueOf())},_.toJSON=function(){return this.isValid()?this.toISOString():null},_.toISOString=function(){return this.$d.toISOString()},_.toString=function(){return this.$d.toUTCString()},w}(),le=ve.prototype;return j.prototype=le,[["$ms",s],["$s",n],["$m",a],["$H",l],["$W",u],["$M",h],["$y",p],["$D",f]].forEach(function(w){le[w[1]]=function(_){return this.$g(_,w[0],w[1])}}),j.extend=function(w,_){return w.$i||(w(_,ve,j),w.$i=!0),j},j.locale=fe,j.isDayjs=be,j.unix=function(w){return j(1e3*w)},j.en=X[F],j.Ls=X,j.p={},j})})(Pn);var Ac=Pn.exports;const Wr=rn(Ac);function Jo(t,r){En(t,r)}function Cc(t){bt.set(t)}const Zo={en:{titleSelfExclusion:"Self-Exclusion",selfExclusionText1:"We recognize that gambling can be harmful so to prevent problems associated with gambling, we offer our users the ability to exclude from all forms of betting on our site for a certain indefinite period of time.",selfExclusionText2:'Self-exclusion takes effect from the time it is set for your chosen period. Select a timeframe below then click "Save".',selfExclusionText3:"During self-exclusion, you will be able to access your account and withdraw funds but you will not be able to deposit or place any bets. In the case of permanent self-exclusion, it is only possible to revoke Self-exclusion upon written request and only 6 months after its initial application. Please note that an alternative way to request self-exclusion is to contact Customer Service as follows:",selfExclusionText4:"E-mail:",duration:"Duration:",dateInstructions:"In order to manually input date use the following format:",forever:"Forever",save:"Save",noPeriodSelected:"Please select a self exclusion period",selectAPeriod:"Select a period",temporarySelfExclusion:"Your self-exclusion period will last until the {date} 23:59.",permanentSelfExclusion:"Your self-exclusion period will be permanent.",SelfExclusionFor6Months:"6 Months",SelfExclusionFor1Year:"1 Year",SelfExclusionFor5Years:"5 Years",SelfExclusionPermanent:"Permanent",SelfExclusionUntilSelectedDate:"Until"},"zh-hk":{titleSelfExclusion:"自我排除",selfExclusionText1:"我們意識到賭博可能帶來危害,為防止與賭博相關的問題,我們為用戶提供自我排除功能,讓您可以在我們的網站上暫停所有形式的投注,持續一定或不定期限。",selfExclusionText2:"自我排除自您選定的期限開始生效。請選擇以下的時長,然後點擊「儲存」。",selfExclusionText3:"在自我排除期間,您仍然可以進入您的帳戶並提取資金,但無法存款或進行任何投注。如果是永久自我排除,只有在書面申請並且自申請起6個月後才可撤銷自我排除。請注意,另一種申請自我排除的方法是聯絡客戶服務,聯絡方式如下:",selfExclusionText4:"電郵:",duration:"時長:",dateInstructions:"為了手動輸入日期,請使用以下格式",forever:"永久",save:"儲存",noPeriodSelected:"請選擇自我排除時期",selectAPeriod:"選擇時長",temporarySelfExclusion:"您的自我排除期將持續至{date} 23:59。",permanentSelfExclusion:"您的自我排除期將會是永久的。",SelfExclusionFor6Months:"6個月",SelfExclusionFor1Year:"1年",SelfExclusionFor5Years:"5年",SelfExclusionPermanent:"永久",SelfExclusionUntilSelectedDate:"直到"},fr:{titleSelfExclusion:"Auto-exclusion",selfExclusionText1:"Nous reconnaissons que le jeu peut être nuisible, c'est pourquoi, afin de prévenir les problèmes associés au jeu, nous offrons à nos utilisateurs la possibilité de s'exclure de toutes les formes de paris sur notre site pour une période déterminée ou indéfinie.",selfExclusionText2:"L'auto-exclusion prend effet à partir du moment où elle est définie pour la période que vous avez choisie. Sélectionnez une durée ci-dessous, puis cliquez sur « Enregistrer ».",selfExclusionText3:"Pendant la période d'auto-exclusion, vous pourrez accéder à votre compte et retirer des fonds, mais vous ne pourrez ni déposer, ni placer de paris. Dans le cas d'une auto-exclusion permanente, il n'est possible de révoquer l'auto-exclusion que sur demande écrite et seulement 6 mois après son application initiale. Veuillez noter qu'une autre manière de demander une auto-exclusion est de contacter le service client comme suit :",selfExclusionText4:"E-mail :",duration:"Durée :",dateInstructions:"Pour saisir la date manuellement, utilisez le format suivant:",forever:"Pour toujours",save:"Enregistrer",noPeriodSelected:"Veuillez sélectionner une période d'auto-exclusion",selectAPeriod:"Sélectionner une période",temporarySelfExclusion:"Votre période d'auto-exclusion durera jusqu'au {date} 23:59.",permanentSelfExclusion:"Votre période d'auto-exclusion sera permanente.",SelfExclusionFor6Months:"6 mois",SelfExclusionFor1Year:"1 an",SelfExclusionFor5Years:"5 ans",SelfExclusionPermanent:"Permanent",SelfExclusionUntilSelectedDate:"Jusqu'à"},ro:{titleSelfExclusion:"Auto-excludere",selfExclusionText1:"Recunoaștem că jocurile de noroc pot fi dăunătoare, așa că pentru a preveni problemele asociate cu acestea, oferim utilizatorilor noștri posibilitatea de a se auto-exclude de la toate formele de pariuri de pe site-ul nostru pentru o perioadă determinată sau nedeterminată.",selfExclusionText2:"Auto-excluderea intră în vigoare din momentul în care este setată pentru perioada aleasă de dvs. Selectați o perioadă mai jos, apoi faceți clic pe „Salvează”.",selfExclusionText3:"În timpul auto-excluderii, veți putea accesa contul dvs. și retrage fonduri, dar nu veți putea depune sau plasa pariuri. În cazul auto-excluderii permanente, este posibil să revocați auto-excluderea doar la cerere scrisă și numai după 6 luni de la aplicarea inițială. Vă rugăm să rețineți că o altă modalitate de a solicita auto-excluderea este să contactați Serviciul Clienți astfel:",selfExclusionText4:"E-mail:",duration:"Durată:",dateInstructions:"Pentru a introduce manual data, utilizați următorul format:",forever:"Permanent",save:"Salvează",noPeriodSelected:"Vă rugăm să selectați o perioadă de auto-excludere",selectAPeriod:"Selectați o perioadă",temporarySelfExclusion:"Perioada dvs. de auto-excludere va dura până la {date} 23:59.",permanentSelfExclusion:"Perioada dvs. de auto-excludere va fi permanentă.",SelfExclusionFor6Months:"6 luni",SelfExclusionFor1Year:"1 an",SelfExclusionFor5Years:"5 ani",SelfExclusionPermanent:"Permanent",SelfExclusionUntilSelectedDate:"Până la"},es:{titleSelfExclusion:"Autoexclusión",selfExclusionText1:"Reconocemos que el juego puede ser perjudicial, por lo que para prevenir problemas asociados al juego, ofrecemos a nuestros usuarios la posibilidad de excluirse de todas las formas de apuestas en nuestro sitio por un período determinado o indefinido.",selfExclusionText2:'La autoexclusión entra en vigor desde el momento en que se establece para el período que usted elija. Seleccione un período a continuación y luego haga clic en "Guardar".',selfExclusionText3:"Durante el período de autoexclusión, podrá acceder a su cuenta y retirar fondos, pero no podrá depositar ni realizar apuestas. En el caso de la autoexclusión permanente, solo es posible revocar la autoexclusión mediante solicitud por escrito y solo 6 meses después de su aplicación inicial. Tenga en cuenta que otra forma de solicitar la autoexclusión es contactando al Servicio de Atención al Cliente de la siguiente manera:",selfExclusionText4:"Correo electrónico:",duration:"Duración:",dateInstructions:"Para introducir la fecha manualmente, utilice el siguiente formato:",forever:"Permanente",save:"Guardar",noPeriodSelected:"Por favor, seleccione un período de autoexclusión",selectAPeriod:"Seleccione un período",temporarySelfExclusion:"Su período de autoexclusión durará hasta el {date} 23:59.",permanentSelfExclusion:"Su período de autoexclusión será permanente.",SelfExclusionFor6Months:"6 meses",SelfExclusionFor1Year:"1 año",SelfExclusionFor5Years:"5 años",SelfExclusionPermanent:"Permanente",SelfExclusionUntilSelectedDate:"Hasta"},pt:{titleSelfExclusion:"Autoexclusão",selfExclusionText1:"Reconhecemos que o jogo pode ser prejudicial, por isso, para prevenir problemas associados ao jogo, oferecemos aos nossos utilizadores a possibilidade de se autoexcluírem de todas as formas de apostas no nosso site por um período definido ou indefinido.",selfExclusionText2:'A autoexclusão entra em vigor a partir do momento em que é definida para o período escolhido. Selecione um período abaixo e clique em "Guardar".',selfExclusionText3:"Durante o período de autoexclusão, poderá aceder à sua conta e levantar fundos, mas não poderá depositar nem realizar apostas. No caso de autoexclusão permanente, só é possível revogar a autoexclusão mediante pedido por escrito e apenas 6 meses após a sua aplicação inicial. Note que outra forma de solicitar a autoexclusão é contactar o Serviço de Apoio ao Cliente da seguinte forma:",selfExclusionText4:"E-mail:",duration:"Duração:",dateInstructions:"Para inserir a data manualmente, utilize o seguinte formato:",forever:"Para sempre",save:"Guardar",noPeriodSelected:"Por favor, selecione um período de autoexclusão",selectAPeriod:"Selecione um período",temporarySelfExclusion:"O seu período de autoexclusão durará até {date} às 23:59.",permanentSelfExclusion:"O seu período de autoexclusão será permanente.",SelfExclusionFor6Months:"6 meses",SelfExclusionFor1Year:"1 ano",SelfExclusionFor5Years:"5 anos",SelfExclusionPermanent:"Permanente",SelfExclusionUntilSelectedDate:"Até"},hr:{titleSelfExclusion:"Samoisključenje",selfExclusionText1:"Prepoznajemo da kockanje može biti štetno, stoga, kako bismo spriječili probleme povezane s kockanjem, korisnicima nudimo mogućnost samoisključenja iz svih oblika klađenja na našoj stranici na određeno ili neodređeno vrijeme.",selfExclusionText2:'Samoisključenje stupa na snagu od trenutka kada je postavljeno za odabrano razdoblje. Odaberite razdoblje u nastavku, a zatim kliknite "Spremi".',selfExclusionText3:"Tijekom razdoblja samoisključenja moći ćete pristupiti svom računu i podići sredstva, ali nećete moći uplatiti novac niti postavljati oklade. U slučaju trajnog samoisključenja, samoisključenje se može ukinuti isključivo na pisani zahtjev i tek 6 mjeseci nakon njegove prve primjene. Imajte na umu da je alternativni način zahtjeva za samoisključenje kontaktiranje korisničke podrške na sljedeći način:",selfExclusionText4:"E-mail:",duration:"Trajanje:",dateInstructions:"Za ručni unos datuma koristite sljedeći format:",forever:"Zauvijek",save:"Spremi",noPeriodSelected:"Odaberite razdoblje samoisključenja",selectAPeriod:"Odaberite razdoblje",temporarySelfExclusion:"Vaše razdoblje samoisključenja trajat će do {date} u 23:59.",permanentSelfExclusion:"Vaše razdoblje samoisključenja bit će trajno.",SelfExclusionFor6Months:"6 mjeseci",SelfExclusionFor1Year:"1 godina",SelfExclusionFor5Years:"5 godina",SelfExclusionPermanent:"Trajno",SelfExclusionUntilSelectedDate:"Do"},"pt-br":{titleSelfExclusion:"Autoexclusão",selfExclusionText1:"Reconhecemos que o jogo pode ser prejudicial, por isso, para prevenir problemas associados ao jogo, oferecemos aos nossos usuários a possibilidade de se autoexcluírem de todas as formas de apostas em nosso site por um período determinado ou indeterminado.",selfExclusionText2:'A autoexclusão entra em vigor a partir do momento em que é configurada para o período escolhido. Selecione um período abaixo e clique em "Salvar".',selfExclusionText3:"Durante o período de autoexclusão, você poderá acessar sua conta e retirar fundos, mas não poderá depositar nem realizar apostas. No caso de autoexclusão permanente, só é possível revogar a autoexclusão mediante solicitação por escrito e apenas 6 meses após sua aplicação inicial. Observe que outra maneira de solicitar a autoexclusão é entrar em contato com o Atendimento ao Cliente da seguinte forma:",selfExclusionText4:"E-mail:",duration:"Duração:",dateInstructions:"Para inserir a data manualmente, utilize o seguinte formato:",forever:"Para sempre",save:"Salvar",noPeriodSelected:"Por favor, selecione um período de autoexclusão",selectAPeriod:"Selecione um período",temporarySelfExclusion:"Seu período de autoexclusão durará até {date} às 23:59.",permanentSelfExclusion:"Seu período de autoexclusão será permanente.",SelfExclusionFor6Months:"6 meses",SelfExclusionFor1Year:"1 ano",SelfExclusionFor5Years:"5 anos",SelfExclusionPermanent:"Permanente",SelfExclusionUntilSelectedDate:"Até"},"es-mx":{titleSelfExclusion:"Autoexclusión",selfExclusionText1:"Reconocemos que el juego puede ser perjudicial, por lo que para prevenir problemas asociados al juego, ofrecemos a nuestros usuarios la posibilidad de autoexcluirse de todas las formas de apuestas en nuestro sitio por un período determinado o indefinido.",selfExclusionText2:'La autoexclusión entra en vigor desde el momento en que se establece para el período que usted elija. Seleccione un período a continuación y luego haga clic en "Guardar".',selfExclusionText3:"Durante el período de autoexclusión, podrá acceder a su cuenta y retirar fondos, pero no podrá depositar ni realizar apuestas. En el caso de la autoexclusión permanente, solo es posible revocar la autoexclusión mediante solicitud por escrito y solo 6 meses después de su aplicación inicial. Tenga en cuenta que otra manera de solicitar la autoexclusión es contactando al Servicio al Cliente de la siguiente manera:",selfExclusionText4:"Correo electrónico:",duration:"Duración:",dateInstructions:"Para introducir la fecha manualmente, utilice el siguiente formato:",forever:"Permanente",save:"Guardar",noPeriodSelected:"Por favor, seleccione un período de autoexclusión",selectAPeriod:"Seleccione un período",temporarySelfExclusion:"Su período de autoexclusión durará hasta el {date} 23:59.",permanentSelfExclusion:"Su período de autoexclusión será permanente.",SelfExclusionFor6Months:"6 meses",SelfExclusionFor1Year:"1 año",SelfExclusionFor5Years:"5 años",SelfExclusionPermanent:"Permanente",SelfExclusionUntilSelectedDate:"Hasta"},tr:{titleSelfExclusion:"Kendi Kendini Hariç Tutma",selfExclusionText1:"Kumarın zararlı olabileceğini kabul ediyoruz, bu nedenle kumarla ilgili sorunları önlemek için, kullanıcılarımıza sitemizdeki tüm bahis türlerinden belirli veya belirsiz bir süre için kendilerini hariç tutma imkânı sunuyoruz.",selfExclusionText2:'Kendi kendini hariç tutma, seçtiğiniz dönem için ayarlandığı andan itibaren yürürlüğe girer. Aşağıdan bir süre seçin ve ardından "Kaydet"e tıklayın.',selfExclusionText3:"Kendi kendini hariç tutma süresi boyunca hesabınıza erişebilir ve para çekebilirsiniz, ancak para yatıramaz veya bahis oynayamazsınız. Kalıcı hariç tutma durumunda, sadece yazılı talep üzerine ve ilk uygulamadan 6 ay sonra hariç tutma iptal edilebilir. Lütfen kendi kendini hariç tutma talep etmenin alternatif bir yolunun Müşteri Hizmetleri ile iletişime geçmek olduğunu unutmayın:",selfExclusionText4:"E-posta:",duration:"Süre:",dateInstructions:"Tarihi elle girmek için aşağıdaki formatı kullanın:",forever:"Kalıcı",save:"Kaydet",noPeriodSelected:"Lütfen bir hariç tutma süresi seçin",selectAPeriod:"Bir süre seçin",temporarySelfExclusion:"Kendi kendini hariç tutma süreniz {date} 23:59'a kadar sürecektir.",permanentSelfExclusion:"Kendi kendini hariç tutma süreniz kalıcı olacaktır.",SelfExclusionFor6Months:"6 Ay",SelfExclusionFor1Year:"1 Yıl",SelfExclusionFor5Years:"5 Yıl",SelfExclusionPermanent:"Kalıcı",SelfExclusionUntilSelectedDate:"Kadar"}};/**
|
|
6
6
|
* @license
|
|
7
7
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
8
8
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
9
|
-
*/function
|
|
9
|
+
*/function ge(t){const r=customElements.get(t.is);if(!r)customElements.define(t.is,t);else{const e=r.version;e&&t.version&&e===t.version?console.warn(`The component ${t.is} has been loaded twice`):console.error(`Tried to define ${t.is} version ${t.version} when version ${r.version} is already in use. Something will probably break.`)}}/**
|
|
10
10
|
* @license
|
|
11
11
|
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
12
12
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
13
|
-
*/let Tc=class extends HTMLElement{static get is(){return"vaadin-lumo-styles"}static get version(){return"24.2.9"}};
|
|
13
|
+
*/let Tc=class extends HTMLElement{static get is(){return"vaadin-lumo-styles"}static get version(){return"24.2.9"}};ge(Tc);/**
|
|
14
14
|
* @license
|
|
15
15
|
* Copyright 2019 Google LLC
|
|
16
16
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
17
|
-
*/const ur=window,
|
|
17
|
+
*/const ur=window,ro=ur.ShadowRoot&&(ur.ShadyCSS===void 0||ur.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,io=Symbol(),Qo=new WeakMap;let oo=class{constructor(r,e,i){if(this._$cssResult$=!0,i!==io)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=r,this.t=e}get styleSheet(){let r=this.o;const e=this.t;if(ro&&r===void 0){const i=e!==void 0&&e.length===1;i&&(r=Qo.get(e)),r===void 0&&((this.o=r=new CSSStyleSheet).replaceSync(this.cssText),i&&Qo.set(e,r))}return r}toString(){return this.cssText}};const Pc=t=>new oo(typeof t=="string"?t:t+"",void 0,io),A=(t,...r)=>{const e=t.length===1?t[0]:r.reduce((i,o,s)=>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.")})(o)+t[s+1],t[0]);return new oo(e,t,io)},Dc=(t,r)=>{ro?t.adoptedStyleSheets=r.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet):r.forEach(e=>{const i=document.createElement("style"),o=ur.litNonce;o!==void 0&&i.setAttribute("nonce",o),i.textContent=e.cssText,t.appendChild(i)})},es=ro?t=>t:t=>t instanceof CSSStyleSheet?(r=>{let e="";for(const i of r.cssRules)e+=i.cssText;return Pc(e)})(t):t;/**
|
|
18
18
|
* @license
|
|
19
19
|
* Copyright 2017 Google LLC
|
|
20
20
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
21
|
-
*/var qr;const
|
|
21
|
+
*/var qr;const gr=window,ts=gr.trustedTypes,kc=ts?ts.emptyScript:"",rs=gr.reactiveElementPolyfillSupport,Di={toAttribute(t,r){switch(r){case Boolean:t=t?kc:null;break;case Object:case Array:t=t==null?t:JSON.stringify(t)}return t},fromAttribute(t,r){let e=t;switch(r){case Boolean:e=t!==null;break;case Number:e=t===null?null:Number(t);break;case Object:case Array:try{e=JSON.parse(t)}catch(i){e=null}}return e}},Dn=(t,r)=>r!==t&&(r==r||t==t),Xr={attribute:!0,type:String,converter:Di,reflect:!1,hasChanged:Dn},ki="finalized";let it=class extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this._$Eu()}static addInitializer(r){var e;this.finalize(),((e=this.h)!==null&&e!==void 0?e:this.h=[]).push(r)}static get observedAttributes(){this.finalize();const r=[];return this.elementProperties.forEach((e,i)=>{const o=this._$Ep(i,e);o!==void 0&&(this._$Ev.set(o,i),r.push(o))}),r}static createProperty(r,e=Xr){if(e.state&&(e.attribute=!1),this.finalize(),this.elementProperties.set(r,e),!e.noAccessor&&!this.prototype.hasOwnProperty(r)){const i=typeof r=="symbol"?Symbol():"__"+r,o=this.getPropertyDescriptor(r,i,e);o!==void 0&&Object.defineProperty(this.prototype,r,o)}}static getPropertyDescriptor(r,e,i){return{get(){return this[e]},set(o){const s=this[r];this[e]=o,this.requestUpdate(r,s,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(r){return this.elementProperties.get(r)||Xr}static finalize(){if(this.hasOwnProperty(ki))return!1;this[ki]=!0;const r=Object.getPrototypeOf(this);if(r.finalize(),r.h!==void 0&&(this.h=[...r.h]),this.elementProperties=new Map(r.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const e=this.properties,i=[...Object.getOwnPropertyNames(e),...Object.getOwnPropertySymbols(e)];for(const o of i)this.createProperty(o,e[o])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(r){const e=[];if(Array.isArray(r)){const i=new Set(r.flat(1/0).reverse());for(const o of i)e.unshift(es(o))}else r!==void 0&&e.push(es(r));return e}static _$Ep(r,e){const i=e.attribute;return i===!1?void 0:typeof i=="string"?i:typeof r=="string"?r.toLowerCase():void 0}_$Eu(){var r;this._$E_=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$Eg(),this.requestUpdate(),(r=this.constructor.h)===null||r===void 0||r.forEach(e=>e(this))}addController(r){var e,i;((e=this._$ES)!==null&&e!==void 0?e:this._$ES=[]).push(r),this.renderRoot!==void 0&&this.isConnected&&((i=r.hostConnected)===null||i===void 0||i.call(r))}removeController(r){var e;(e=this._$ES)===null||e===void 0||e.splice(this._$ES.indexOf(r)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach((r,e)=>{this.hasOwnProperty(e)&&(this._$Ei.set(e,this[e]),delete this[e])})}createRenderRoot(){var r;const e=(r=this.shadowRoot)!==null&&r!==void 0?r:this.attachShadow(this.constructor.shadowRootOptions);return Dc(e,this.constructor.elementStyles),e}connectedCallback(){var r;this.renderRoot===void 0&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(r=this._$ES)===null||r===void 0||r.forEach(e=>{var i;return(i=e.hostConnected)===null||i===void 0?void 0:i.call(e)})}enableUpdating(r){}disconnectedCallback(){var r;(r=this._$ES)===null||r===void 0||r.forEach(e=>{var i;return(i=e.hostDisconnected)===null||i===void 0?void 0:i.call(e)})}attributeChangedCallback(r,e,i){this._$AK(r,i)}_$EO(r,e,i=Xr){var o;const s=this.constructor._$Ep(r,i);if(s!==void 0&&i.reflect===!0){const n=(((o=i.converter)===null||o===void 0?void 0:o.toAttribute)!==void 0?i.converter:Di).toAttribute(e,i.type);this._$El=r,n==null?this.removeAttribute(s):this.setAttribute(s,n),this._$El=null}}_$AK(r,e){var i;const o=this.constructor,s=o._$Ev.get(r);if(s!==void 0&&this._$El!==s){const n=o.getPropertyOptions(s),a=typeof n.converter=="function"?{fromAttribute:n.converter}:((i=n.converter)===null||i===void 0?void 0:i.fromAttribute)!==void 0?n.converter:Di;this._$El=s,this[s]=a.fromAttribute(e,n.type),this._$El=null}}requestUpdate(r,e,i){let o=!0;r!==void 0&&(((i=i||this.constructor.getPropertyOptions(r)).hasChanged||Dn)(this[r],e)?(this._$AL.has(r)||this._$AL.set(r,e),i.reflect===!0&&this._$El!==r&&(this._$EC===void 0&&(this._$EC=new Map),this._$EC.set(r,i))):o=!1),!this.isUpdatePending&&o&&(this._$E_=this._$Ej())}_$Ej(){return wt(this,null,function*(){this.isUpdatePending=!0;try{yield this._$E_}catch(e){Promise.reject(e)}const r=this.scheduleUpdate();return r!=null&&(yield r),!this.isUpdatePending})}scheduleUpdate(){return this.performUpdate()}performUpdate(){var r;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach((o,s)=>this[s]=o),this._$Ei=void 0);let e=!1;const i=this._$AL;try{e=this.shouldUpdate(i),e?(this.willUpdate(i),(r=this._$ES)===null||r===void 0||r.forEach(o=>{var s;return(s=o.hostUpdate)===null||s===void 0?void 0:s.call(o)}),this.update(i)):this._$Ek()}catch(o){throw e=!1,this._$Ek(),o}e&&this._$AE(i)}willUpdate(r){}_$AE(r){var e;(e=this._$ES)===null||e===void 0||e.forEach(i=>{var o;return(o=i.hostUpdated)===null||o===void 0?void 0:o.call(i)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(r)),this.updated(r)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(r){return!0}update(r){this._$EC!==void 0&&(this._$EC.forEach((e,i)=>this._$EO(i,this[i],e)),this._$EC=void 0),this._$Ek()}updated(r){}firstUpdated(r){}};it[ki]=!0,it.elementProperties=new Map,it.elementStyles=[],it.shadowRootOptions={mode:"open"},rs==null||rs({ReactiveElement:it}),((qr=gr.reactiveElementVersions)!==null&&qr!==void 0?qr:gr.reactiveElementVersions=[]).push("1.6.3");/**
|
|
22
22
|
* @license
|
|
23
23
|
* Copyright 2017 Google LLC
|
|
24
24
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
25
|
-
*/var Kr;const
|
|
26
|
-
\f\r]`,St=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,
|
|
27
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),ns=/'/g,as=/"/g,Mn=/^(?:script|style|textarea|title)$/i,ft=Symbol.for("lit-noChange"),Q=Symbol.for("lit-nothing"),ls=new WeakMap,Re=Ye.createTreeWalker(Ye,129,null,!1);function In(t,r){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return
|
|
25
|
+
*/var Kr;const br=window,pt=br.trustedTypes,is=pt?pt.createPolicy("lit-html",{createHTML:t=>t}):void 0,Oi="$lit$",Ie=`lit$${(Math.random()+"").slice(9)}$`,kn="?"+Ie,Oc=`<${kn}>`,Ye=document,$t=()=>Ye.createComment(""),Ht=t=>t===null||typeof t!="object"&&typeof t!="function",On=Array.isArray,Mc=t=>On(t)||typeof(t==null?void 0:t[Symbol.iterator])=="function",Jr=`[
|
|
26
|
+
\f\r]`,St=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,os=/-->/g,ss=/>/g,Fe=RegExp(`>|${Jr}(?:([^\\s"'>=/]+)(${Jr}*=${Jr}*(?:[^
|
|
27
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),ns=/'/g,as=/"/g,Mn=/^(?:script|style|textarea|title)$/i,ft=Symbol.for("lit-noChange"),Q=Symbol.for("lit-nothing"),ls=new WeakMap,Re=Ye.createTreeWalker(Ye,129,null,!1);function In(t,r){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return is!==void 0?is.createHTML(r):r}const Ic=(t,r)=>{const e=t.length-1,i=[];let o,s=r===2?"<svg>":"",n=St;for(let a=0;a<e;a++){const l=t[a];let u,c,h=-1,d=0;for(;d<l.length&&(n.lastIndex=d,c=n.exec(l),c!==null);)d=n.lastIndex,n===St?c[1]==="!--"?n=os:c[1]!==void 0?n=ss:c[2]!==void 0?(Mn.test(c[2])&&(o=RegExp("</"+c[2],"g")),n=Fe):c[3]!==void 0&&(n=Fe):n===Fe?c[0]===">"?(n=o!=null?o:St,h=-1):c[1]===void 0?h=-2:(h=n.lastIndex-c[2].length,u=c[1],n=c[3]===void 0?Fe:c[3]==='"'?as:ns):n===as||n===ns?n=Fe:n===os||n===ss?n=St:(n=Fe,o=void 0);const p=n===Fe&&t[a+1].startsWith("/>")?" ":"";s+=n===St?l+Oc:h>=0?(i.push(u),l.slice(0,h)+Oi+l.slice(h)+Ie+p):l+Ie+(h===-2?(i.push(void 0),a):p)}return[In(t,s+(t[e]||"<?>")+(r===2?"</svg>":"")),i]};class Bt{constructor({strings:r,_$litType$:e},i){let o;this.parts=[];let s=0,n=0;const a=r.length-1,l=this.parts,[u,c]=Ic(r,e);if(this.el=Bt.createElement(u,i),Re.currentNode=this.el.content,e===2){const h=this.el.content,d=h.firstChild;d.remove(),h.append(...d.childNodes)}for(;(o=Re.nextNode())!==null&&l.length<a;){if(o.nodeType===1){if(o.hasAttributes()){const h=[];for(const d of o.getAttributeNames())if(d.endsWith(Oi)||d.startsWith(Ie)){const p=c[n++];if(h.push(d),p!==void 0){const f=o.getAttribute(p.toLowerCase()+Oi).split(Ie),y=/([.?@])?(.*)/.exec(p);l.push({type:1,index:s,name:y[2],strings:f,ctor:y[1]==="."?Lc:y[1]==="?"?Hc:y[1]==="@"?Bc:kr})}else l.push({type:6,index:s})}for(const d of h)o.removeAttribute(d)}if(Mn.test(o.tagName)){const h=o.textContent.split(Ie),d=h.length-1;if(d>0){o.textContent=pt?pt.emptyScript:"";for(let p=0;p<d;p++)o.append(h[p],$t()),Re.nextNode(),l.push({type:2,index:++s});o.append(h[d],$t())}}}else if(o.nodeType===8)if(o.data===kn)l.push({type:2,index:s});else{let h=-1;for(;(h=o.data.indexOf(Ie,h+1))!==-1;)l.push({type:7,index:s}),h+=Ie.length-1}s++}}static createElement(r,e){const i=Ye.createElement("template");return i.innerHTML=r,i}}function mt(t,r,e=t,i){var o,s,n,a;if(r===ft)return r;let l=i!==void 0?(o=e._$Co)===null||o===void 0?void 0:o[i]:e._$Cl;const u=Ht(r)?void 0:r._$litDirective$;return(l==null?void 0:l.constructor)!==u&&((s=l==null?void 0:l._$AO)===null||s===void 0||s.call(l,!1),u===void 0?l=void 0:(l=new u(t),l._$AT(t,e,i)),i!==void 0?((n=(a=e)._$Co)!==null&&n!==void 0?n:a._$Co=[])[i]=l:e._$Cl=l),l!==void 0&&(r=mt(t,l._$AS(t,r.values),l,i)),r}class Nc{constructor(r,e){this._$AV=[],this._$AN=void 0,this._$AD=r,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(r){var e;const{el:{content:i},parts:o}=this._$AD,s=((e=r==null?void 0:r.creationScope)!==null&&e!==void 0?e:Ye).importNode(i,!0);Re.currentNode=s;let n=Re.nextNode(),a=0,l=0,u=o[0];for(;u!==void 0;){if(a===u.index){let c;u.type===2?c=new qt(n,n.nextSibling,this,r):u.type===1?c=new u.ctor(n,u.name,u.strings,this,r):u.type===6&&(c=new zc(n,this,r)),this._$AV.push(c),u=o[++l]}a!==(u==null?void 0:u.index)&&(n=Re.nextNode(),a++)}return Re.currentNode=Ye,s}v(r){let e=0;for(const i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(r,i,e),e+=i.strings.length-2):i._$AI(r[e])),e++}}class qt{constructor(r,e,i,o){var s;this.type=2,this._$AH=Q,this._$AN=void 0,this._$AA=r,this._$AB=e,this._$AM=i,this.options=o,this._$Cp=(s=o==null?void 0:o.isConnected)===null||s===void 0||s}get _$AU(){var r,e;return(e=(r=this._$AM)===null||r===void 0?void 0:r._$AU)!==null&&e!==void 0?e:this._$Cp}get parentNode(){let r=this._$AA.parentNode;const e=this._$AM;return e!==void 0&&(r==null?void 0:r.nodeType)===11&&(r=e.parentNode),r}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(r,e=this){r=mt(this,r,e),Ht(r)?r===Q||r==null||r===""?(this._$AH!==Q&&this._$AR(),this._$AH=Q):r!==this._$AH&&r!==ft&&this._(r):r._$litType$!==void 0?this.g(r):r.nodeType!==void 0?this.$(r):Mc(r)?this.T(r):this._(r)}k(r){return this._$AA.parentNode.insertBefore(r,this._$AB)}$(r){this._$AH!==r&&(this._$AR(),this._$AH=this.k(r))}_(r){this._$AH!==Q&&Ht(this._$AH)?this._$AA.nextSibling.data=r:this.$(Ye.createTextNode(r)),this._$AH=r}g(r){var e;const{values:i,_$litType$:o}=r,s=typeof o=="number"?this._$AC(r):(o.el===void 0&&(o.el=Bt.createElement(In(o.h,o.h[0]),this.options)),o);if(((e=this._$AH)===null||e===void 0?void 0:e._$AD)===s)this._$AH.v(i);else{const n=new Nc(s,this),a=n.u(this.options);n.v(i),this.$(a),this._$AH=n}}_$AC(r){let e=ls.get(r.strings);return e===void 0&&ls.set(r.strings,e=new Bt(r)),e}T(r){On(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,o=0;for(const s of r)o===e.length?e.push(i=new qt(this.k($t()),this.k($t()),this,this.options)):i=e[o],i._$AI(s),o++;o<e.length&&(this._$AR(i&&i._$AB.nextSibling,o),e.length=o)}_$AR(r=this._$AA.nextSibling,e){var i;for((i=this._$AP)===null||i===void 0||i.call(this,!1,!0,e);r&&r!==this._$AB;){const o=r.nextSibling;r.remove(),r=o}}setConnected(r){var e;this._$AM===void 0&&(this._$Cp=r,(e=this._$AP)===null||e===void 0||e.call(this,r))}}class kr{constructor(r,e,i,o,s){this.type=1,this._$AH=Q,this._$AN=void 0,this.element=r,this.name=e,this._$AM=o,this.options=s,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=Q}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(r,e=this,i,o){const s=this.strings;let n=!1;if(s===void 0)r=mt(this,r,e,0),n=!Ht(r)||r!==this._$AH&&r!==ft,n&&(this._$AH=r);else{const a=r;let l,u;for(r=s[0],l=0;l<s.length-1;l++)u=mt(this,a[i+l],e,l),u===ft&&(u=this._$AH[l]),n||(n=!Ht(u)||u!==this._$AH[l]),u===Q?r=Q:r!==Q&&(r+=(u!=null?u:"")+s[l+1]),this._$AH[l]=u}n&&!o&&this.j(r)}j(r){r===Q?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,r!=null?r:"")}}class Lc extends kr{constructor(){super(...arguments),this.type=3}j(r){this.element[this.name]=r===Q?void 0:r}}const $c=pt?pt.emptyScript:"";class Hc extends kr{constructor(){super(...arguments),this.type=4}j(r){r&&r!==Q?this.element.setAttribute(this.name,$c):this.element.removeAttribute(this.name)}}class Bc extends kr{constructor(r,e,i,o,s){super(r,e,i,o,s),this.type=5}_$AI(r,e=this){var i;if((r=(i=mt(this,r,e,0))!==null&&i!==void 0?i:Q)===ft)return;const o=this._$AH,s=r===Q&&o!==Q||r.capture!==o.capture||r.once!==o.once||r.passive!==o.passive,n=r!==Q&&(o===Q||s);s&&this.element.removeEventListener(this.name,this,o),n&&this.element.addEventListener(this.name,this,r),this._$AH=r}handleEvent(r){var e,i;typeof this._$AH=="function"?this._$AH.call((i=(e=this.options)===null||e===void 0?void 0:e.host)!==null&&i!==void 0?i:this.element,r):this._$AH.handleEvent(r)}}class zc{constructor(r,e,i){this.element=r,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(r){mt(this,r)}}const us=br.litHtmlPolyfillSupport;us==null||us(Bt,qt),((Kr=br.litHtmlVersions)!==null&&Kr!==void 0?Kr:br.litHtmlVersions=[]).push("2.8.0");const Fc=(t,r,e)=>{var i,o;const s=(i=e==null?void 0:e.renderBefore)!==null&&i!==void 0?i:r;let n=s._$litPart$;if(n===void 0){const a=(o=e==null?void 0:e.renderBefore)!==null&&o!==void 0?o:null;s._$litPart$=n=new qt(r.insertBefore($t(),a),a,void 0,e!=null?e:{})}return n._$AI(t),n};/**
|
|
28
28
|
* @license
|
|
29
29
|
* Copyright 2017 Google LLC
|
|
30
30
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
31
|
-
*/var Zr,Qr;class cr extends
|
|
31
|
+
*/var Zr,Qr;class cr extends it{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var r,e;const i=super.createRenderRoot();return(r=(e=this.renderOptions).renderBefore)!==null&&r!==void 0||(e.renderBefore=i.firstChild),i}update(r){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(r),this._$Do=Fc(e,this.renderRoot,this.renderOptions)}connectedCallback(){var r;super.connectedCallback(),(r=this._$Do)===null||r===void 0||r.setConnected(!0)}disconnectedCallback(){var r;super.disconnectedCallback(),(r=this._$Do)===null||r===void 0||r.setConnected(!1)}render(){return ft}}cr.finalized=!0,cr._$litElement$=!0,(Zr=globalThis.litElementHydrateSupport)===null||Zr===void 0||Zr.call(globalThis,{LitElement:cr});const cs=globalThis.litElementPolyfillSupport;cs==null||cs({LitElement:cr});((Qr=globalThis.litElementVersions)!==null&&Qr!==void 0?Qr:globalThis.litElementVersions=[]).push("3.3.3");/**
|
|
32
32
|
* @license
|
|
33
33
|
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
34
34
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
35
|
-
*/const Rc=t=>class extends t{static get properties(){return{_theme:{type:String,readOnly:!0}}}static get observedAttributes(){return[...super.observedAttributes,"theme"]}attributeChangedCallback(e,o
|
|
35
|
+
*/const Rc=t=>class extends t{static get properties(){return{_theme:{type:String,readOnly:!0}}}static get observedAttributes(){return[...super.observedAttributes,"theme"]}attributeChangedCallback(e,i,o){super.attributeChangedCallback(e,i,o),e==="theme"&&this._set_theme(o)}};/**
|
|
36
36
|
* @license
|
|
37
37
|
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
38
38
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
39
|
-
*/const Nn=[];function Ln(t){return t&&Object.prototype.hasOwnProperty.call(t,"__themes")}function Uc(t){return Ln(customElements.get(t))}function jc(t=[]){return[t].flat(1/0).filter(r=>r instanceof
|
|
39
|
+
*/const Nn=[];function Ln(t){return t&&Object.prototype.hasOwnProperty.call(t,"__themes")}function Uc(t){return Ln(customElements.get(t))}function jc(t=[]){return[t].flat(1/0).filter(r=>r instanceof oo?!0:(console.warn("An item in styles is not of type CSSResult. Use `unsafeCSS` or `css`."),!1))}function Y(t,r,e={}){t&&Uc(t)&&console.warn(`The custom element definition for "${t}"
|
|
40
40
|
was finalized before a style module was registered.
|
|
41
41
|
Make sure to add component specific style modules before
|
|
42
|
-
importing the corresponding custom element.`),r=jc(r),window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.registerStyles(t,r,e):Nn.push({themeFor:t,styles:r,include:e.include,moduleId:e.moduleId})}function
|
|
43
|
-
`),r.content.appendChild(e)}function Wc(t){const r=`${t}-default-theme`,e=
|
|
42
|
+
importing the corresponding custom element.`),r=jc(r),window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.registerStyles(t,r,e):Nn.push({themeFor:t,styles:r,include:e.include,moduleId:e.moduleId})}function Mi(){return window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.getAllThemes():Nn}function Vc(t,r){return(t||"").split(" ").some(e=>new RegExp(`^${e.split("*").join(".*")}$`,"u").test(r))}function Yc(t=""){let r=0;return t.startsWith("lumo-")||t.startsWith("material-")?r=1:t.startsWith("vaadin-")&&(r=2),r}function $n(t){const r=[];return t.include&&[].concat(t.include).forEach(e=>{const i=Mi().find(o=>o.moduleId===e);i?r.push(...$n(i),...i.styles):console.warn(`Included moduleId ${e} not found in style registry`)},t.styles),r}function Gc(t,r){const e=document.createElement("style");e.innerHTML=t.map(i=>i.cssText).join(`
|
|
43
|
+
`),r.content.appendChild(e)}function Wc(t){const r=`${t}-default-theme`,e=Mi().filter(i=>i.moduleId!==r&&Vc(i.themeFor,t)).map(i=>Zt(Jt({},i),{styles:[...$n(i),...i.styles],includePriority:Yc(i.moduleId)})).sort((i,o)=>o.includePriority-i.includePriority);return e.length>0?e:Mi().filter(i=>i.moduleId===r)}const We=t=>class extends Rc(t){static finalize(){if(super.finalize(),this.elementStyles)return;const e=this.prototype._template;!e||Ln(this)||Gc(this.getStylesForThis(),e)}static finalizeStyles(e){const i=this.getStylesForThis();return e?[...super.finalizeStyles(e),...i]:i}static getStylesForThis(){const e=Object.getPrototypeOf(this.prototype),i=(e?e.constructor.__themes:[])||[];this.__themes=[...i,...Wc(this.is)];const o=this.__themes.flatMap(s=>s.styles);return o.filter((s,n)=>n===o.lastIndexOf(s))}};/**
|
|
44
44
|
* @license
|
|
45
45
|
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
46
46
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
47
|
-
*/const
|
|
48
|
-
`).replace(":host","html"),document.head.insertAdjacentElement("afterbegin",e)},Or=(t,...r)=>{
|
|
47
|
+
*/const so=(t,...r)=>{const e=document.createElement("style");e.id=t,e.textContent=r.map(i=>i.toString()).join(`
|
|
48
|
+
`).replace(":host","html"),document.head.insertAdjacentElement("afterbegin",e)},Or=(t,...r)=>{so(`lumo-${t}`,r)};/**
|
|
49
49
|
* @license
|
|
50
50
|
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
51
51
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
52
|
-
*/const qc=
|
|
52
|
+
*/const qc=A`
|
|
53
53
|
:host {
|
|
54
54
|
/* Base (background) */
|
|
55
55
|
--lumo-base-color: #fff;
|
|
@@ -134,7 +134,7 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
|
134
134
|
--lumo-disabled-text-color: GrayText;
|
|
135
135
|
}
|
|
136
136
|
}
|
|
137
|
-
`;Or("color-props",qc);const Xc=
|
|
137
|
+
`;Or("color-props",qc);const Xc=A`
|
|
138
138
|
[theme~='dark'] {
|
|
139
139
|
/* Base (background) */
|
|
140
140
|
--lumo-base-color: hsl(214, 35%, 21%);
|
|
@@ -253,7 +253,7 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
|
253
253
|
* @license
|
|
254
254
|
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
255
255
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
256
|
-
*/const Kc=
|
|
256
|
+
*/const Kc=A`
|
|
257
257
|
:host {
|
|
258
258
|
--lumo-size-xs: 1.625rem;
|
|
259
259
|
--lumo-size-s: 1.875rem;
|
|
@@ -272,7 +272,7 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
|
272
272
|
* @license
|
|
273
273
|
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
274
274
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
275
|
-
*/const Jc=
|
|
275
|
+
*/const Jc=A`
|
|
276
276
|
:host {
|
|
277
277
|
/* Border radius */
|
|
278
278
|
--lumo-border-radius-s: 0.25em; /* Checkbox, badge, date-picker year indicator, etc */
|
|
@@ -289,7 +289,7 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
|
289
289
|
/* Clickable element cursor */
|
|
290
290
|
--lumo-clickable-cursor: default;
|
|
291
291
|
}
|
|
292
|
-
`;
|
|
292
|
+
`;A`
|
|
293
293
|
html {
|
|
294
294
|
--vaadin-checkbox-size: calc(var(--lumo-size-m) / 2);
|
|
295
295
|
--vaadin-radio-button-size: calc(var(--lumo-size-m) / 2);
|
|
@@ -299,7 +299,7 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
|
299
299
|
* @license
|
|
300
300
|
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
301
301
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
302
|
-
*/const Zc=
|
|
302
|
+
*/const Zc=A`
|
|
303
303
|
:host {
|
|
304
304
|
/* prettier-ignore */
|
|
305
305
|
--lumo-font-family: -apple-system, BlinkMacSystemFont, 'Roboto', 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
|
|
@@ -319,7 +319,7 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
|
319
319
|
--lumo-line-height-s: 1.375;
|
|
320
320
|
--lumo-line-height-m: 1.625;
|
|
321
321
|
}
|
|
322
|
-
`,Qc=
|
|
322
|
+
`,Qc=A`
|
|
323
323
|
body,
|
|
324
324
|
:host {
|
|
325
325
|
font-family: var(--lumo-font-family);
|
|
@@ -411,7 +411,7 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
|
411
411
|
border-left: none;
|
|
412
412
|
border-right: 2px solid var(--lumo-contrast-30pct);
|
|
413
413
|
}
|
|
414
|
-
`;Y("",Qc,{moduleId:"lumo-typography"});Or("typography-props",Zc);Y("vaadin-input-container",
|
|
414
|
+
`;Y("",Qc,{moduleId:"lumo-typography"});Or("typography-props",Zc);Y("vaadin-input-container",A`
|
|
415
415
|
:host {
|
|
416
416
|
background-color: var(--lumo-contrast-10pct);
|
|
417
417
|
padding: 0 calc(0.375em + var(--_input-container-radius) / 4 - 1px);
|
|
@@ -594,7 +594,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
594
594
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
595
595
|
Code distributed by Google as part of the polymer project is also
|
|
596
596
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
597
|
-
*/let eh=/(url\()([^)]*)(\))/g,th=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/,tr,
|
|
597
|
+
*/let eh=/(url\()([^)]*)(\))/g,th=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/,tr,de;function Mt(t,r){if(t&&th.test(t)||t==="//")return t;if(tr===void 0){tr=!1;try{const e=new URL("b","http://a");e.pathname="c%20d",tr=e.href==="http://a/c%20d"}catch(e){}}if(r||(r=document.baseURI||window.location.href),tr)try{return new URL(t,r).href}catch(e){return t}return de||(de=document.implementation.createHTMLDocument("temp"),de.base=de.createElement("base"),de.head.appendChild(de.base),de.anchor=de.createElement("a"),de.body.appendChild(de.anchor)),de.base.href=r,de.anchor.href=t,de.anchor.href||t}function no(t,r){return t.replace(eh,function(e,i,o,s){return i+"'"+Mt(o.replace(/["']/g,""),r)+"'"+s})}function ao(t){return t.substring(0,t.lastIndexOf("/")+1)}/**
|
|
598
598
|
@license
|
|
599
599
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
600
600
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -602,7 +602,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
602
602
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
603
603
|
Code distributed by Google as part of the polymer project is also
|
|
604
604
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
605
|
-
*/const Hn=!window.ShadyDOM||!window.ShadyDOM.inUse;!window.ShadyCSS||window.ShadyCSS.nativeCss;const rh=Hn&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype&&(()=>{try{const t=new CSSStyleSheet;t.replaceSync("");const r=document.createElement("div");return r.attachShadow({mode:"open"}),r.shadowRoot.adoptedStyleSheets=[t],r.shadowRoot.adoptedStyleSheets[0]===t}catch(t){return!1}})();let
|
|
605
|
+
*/const Hn=!window.ShadyDOM||!window.ShadyDOM.inUse;!window.ShadyCSS||window.ShadyCSS.nativeCss;const rh=Hn&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype&&(()=>{try{const t=new CSSStyleSheet;t.replaceSync("");const r=document.createElement("div");return r.attachShadow({mode:"open"}),r.shadowRoot.adoptedStyleSheets=[t],r.shadowRoot.adoptedStyleSheets[0]===t}catch(t){return!1}})();let ih=window.Polymer&&window.Polymer.rootPath||ao(document.baseURI||window.location.href),yr=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0;window.Polymer&&window.Polymer.setPassiveTouchGestures;let vr=window.Polymer&&window.Polymer.strictTemplatePolicy||!1,oh=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,Bn=window.Polymer&&window.Polymer.legacyOptimizations||!1,zn=window.Polymer&&window.Polymer.legacyWarnings||!1,sh=window.Polymer&&window.Polymer.syncInitialRender||!1,Ii=window.Polymer&&window.Polymer.legacyUndefined||!1,nh=window.Polymer&&window.Polymer.orderedComputed||!1,hs=window.Polymer&&window.Polymer.removeNestedTemplates||!1,ah=window.Polymer&&window.Polymer.fastDomIf||!1,ds=window.Polymer&&window.Polymer.suppressTemplateNotifications||!1;window.Polymer&&window.Polymer.legacyNoObservedAttributes;let lh=window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1;/**
|
|
606
606
|
@license
|
|
607
607
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
608
608
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -610,7 +610,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
610
610
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
611
611
|
Code distributed by Google as part of the polymer project is also
|
|
612
612
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
613
|
-
*/let uh=0;const J=function(t){let r=t.__mixinApplications;r||(r=new WeakMap,t.__mixinApplications=r);let e=uh++;function o
|
|
613
|
+
*/let uh=0;const J=function(t){let r=t.__mixinApplications;r||(r=new WeakMap,t.__mixinApplications=r);let e=uh++;function i(o){let s=o.__mixinSet;if(s&&s[e])return o;let n=r,a=n.get(o);if(!a){a=t(o),n.set(o,a);let l=Object.create(a.__mixinSet||s||null);l[e]=!0,a.__mixinSet=l}return a}return i};/**
|
|
614
614
|
@license
|
|
615
615
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
616
616
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -618,7 +618,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
618
618
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
619
619
|
Code distributed by Google as part of the polymer project is also
|
|
620
620
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
621
|
-
*/let
|
|
621
|
+
*/let lo={},Fn={};function ps(t,r){lo[t]=Fn[t.toLowerCase()]=r}function fs(t){return lo[t]||Fn[t.toLowerCase()]}function ch(t){t.querySelector("style")&&console.warn("dom-module %s has style outside template",t.id)}class zt extends HTMLElement{static get observedAttributes(){return["id"]}static import(r,e){if(r){let i=fs(r);return i&&e?i.querySelector(e):i}return null}attributeChangedCallback(r,e,i,o){e!==i&&this.register()}get assetpath(){if(!this.__assetpath){const r=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument,e=Mt(this.getAttribute("assetpath")||"",r.baseURI);this.__assetpath=ao(e)}return this.__assetpath}register(r){if(r=r||this.id,r){if(vr&&fs(r)!==void 0)throw ps(r,null),new Error(`strictTemplatePolicy: dom-module ${r} re-registered`);this.id=r,ps(r,this),ch(this)}}}zt.prototype.modules=lo;customElements.define("dom-module",zt);/**
|
|
622
622
|
@license
|
|
623
623
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
624
624
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -626,7 +626,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
626
626
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
627
627
|
Code distributed by Google as part of the polymer project is also
|
|
628
628
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
629
|
-
*/const hh="link[rel=import][type~=css]",dh="include",ms="shady-unscoped";function Rn(t){return zt.import(t)}function _s(t){let r=t.body?t.body:t;const e=
|
|
629
|
+
*/const hh="link[rel=import][type~=css]",dh="include",ms="shady-unscoped";function Rn(t){return zt.import(t)}function _s(t){let r=t.body?t.body:t;const e=no(r.textContent,t.baseURI),i=document.createElement("style");return i.textContent=e,i}function ph(t){const r=t.trim().split(/\s+/),e=[];for(let i=0;i<r.length;i++)e.push(...fh(r[i]));return e}function fh(t){const r=Rn(t);if(!r)return console.warn("Could not find style data in module named",t),[];if(r._styles===void 0){const e=[];e.push(...jn(r));const i=r.querySelector("template");i&&e.push(...Un(i,r.assetpath)),r._styles=e}return r._styles}function Un(t,r){if(!t._styles){const e=[],i=t.content.querySelectorAll("style");for(let o=0;o<i.length;o++){let s=i[o],n=s.getAttribute(dh);n&&e.push(...ph(n).filter(function(a,l,u){return u.indexOf(a)===l})),r&&(s.textContent=no(s.textContent,r)),e.push(s)}t._styles=e}return t._styles}function mh(t){let r=Rn(t);return r?jn(r):[]}function jn(t){const r=[],e=t.querySelectorAll(hh);for(let i=0;i<e.length;i++){let o=e[i];if(o.import){const s=o.import,n=o.hasAttribute(ms);if(n&&!s._unscopedStyle){const a=_s(s);a.setAttribute(ms,""),s._unscopedStyle=a}else s._style||(s._style=_s(s));r.push(n?s._unscopedStyle:s._style)}}return r}/**
|
|
630
630
|
@license
|
|
631
631
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
632
632
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -634,7 +634,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
634
634
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
635
635
|
Code distributed by Google as part of the polymer project is also
|
|
636
636
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
637
|
-
*/const
|
|
637
|
+
*/const ie=window.ShadyDOM&&window.ShadyDOM.noPatch&&window.ShadyDOM.wrap?window.ShadyDOM.wrap:window.ShadyDOM?t=>ShadyDOM.patch(t):t=>t;/**
|
|
638
638
|
@license
|
|
639
639
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
640
640
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -642,7 +642,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
642
642
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
643
643
|
Code distributed by Google as part of the polymer project is also
|
|
644
644
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
645
|
-
*/function
|
|
645
|
+
*/function Ni(t){return t.indexOf(".")>=0}function qe(t){let r=t.indexOf(".");return r===-1?t:t.slice(0,r)}function Vn(t,r){return t.indexOf(r+".")===0}function Ft(t,r){return r.indexOf(t+".")===0}function Rt(t,r,e){return r+e.slice(t.length)}function _h(t,r){return t===r||Vn(t,r)||Ft(t,r)}function Dt(t){if(Array.isArray(t)){let r=[];for(let e=0;e<t.length;e++){let i=t[e].toString().split(".");for(let o=0;o<i.length;o++)r.push(i[o])}return r.join(".")}else return t}function Yn(t){return Array.isArray(t)?Dt(t).split("."):t.toString().split(".")}function he(t,r,e){let i=t,o=Yn(r);for(let s=0;s<o.length;s++){if(!i)return;let n=o[s];i=i[n]}return e&&(e.path=o.join(".")),i}function gs(t,r,e){let i=t,o=Yn(r),s=o[o.length-1];if(o.length>1){for(let n=0;n<o.length-1;n++){let a=o[n];if(i=i[a],!i)return}i[s]=e}else i[r]=e;return o.join(".")}/**
|
|
646
646
|
@license
|
|
647
647
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
648
648
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -650,7 +650,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
650
650
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
651
651
|
Code distributed by Google as part of the polymer project is also
|
|
652
652
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
653
|
-
*/const xr={},
|
|
653
|
+
*/const xr={},gh=/-[a-z]/g,bh=/([A-Z])/g;function Gn(t){return xr[t]||(xr[t]=t.indexOf("-")<0?t:t.replace(gh,r=>r[1].toUpperCase()))}function Mr(t){return xr[t]||(xr[t]=t.replace(bh,"-$1").toLowerCase())}/**
|
|
654
654
|
@license
|
|
655
655
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
656
656
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -658,7 +658,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
658
658
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
659
659
|
Code distributed by Google as part of the polymer project is also
|
|
660
660
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
661
|
-
*/let
|
|
661
|
+
*/let yh=0,Wn=0,nt=[],vh=0,Li=!1,qn=document.createTextNode("");new window.MutationObserver(xh).observe(qn,{characterData:!0});function xh(){Li=!1;const t=nt.length;for(let r=0;r<t;r++){let e=nt[r];if(e)try{e()}catch(i){setTimeout(()=>{throw i})}}nt.splice(0,t),Wn+=t}const wh={after(t){return{run(r){return window.setTimeout(r,t)},cancel(r){window.clearTimeout(r)}}},run(t,r){return window.setTimeout(t,r)},cancel(t){window.clearTimeout(t)}},Xn={run(t){return Li||(Li=!0,qn.textContent=vh++),nt.push(t),yh++},cancel(t){const r=t-Wn;if(r>=0){if(!nt[r])throw new Error("invalid async handle: "+t);nt[r]=null}}};/**
|
|
662
662
|
@license
|
|
663
663
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
664
664
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -666,7 +666,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
666
666
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
667
667
|
Code distributed by Google as part of the polymer project is also
|
|
668
668
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
669
|
-
*/const Eh=Xn,Kn=J(t=>{class r extends t{static createProperties(
|
|
669
|
+
*/const Eh=Xn,Kn=J(t=>{class r extends t{static createProperties(i){const o=this.prototype;for(let s in i)s in o||o._createPropertyAccessor(s)}static attributeNameForProperty(i){return i.toLowerCase()}static typeForProperty(i){}_createPropertyAccessor(i,o){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,o))}_addPropertyToAttributeMap(i){this.hasOwnProperty(JSCompiler_renameProperty("__dataAttributes",this))||(this.__dataAttributes=Object.assign({},this.__dataAttributes));let o=this.__dataAttributes[i];return o||(o=this.constructor.attributeNameForProperty(i),this.__dataAttributes[o]=i),o}_definePropertyAccessor(i,o){Object.defineProperty(this,i,{get(){return this.__data[i]},set:o?function(){}:function(s){this._setPendingProperty(i,s,!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,o){this._setPendingProperty(i,o)&&this._invalidateProperties()}_getProperty(i){return this.__data[i]}_setPendingProperty(i,o,s){let n=this.__data[i],a=this._shouldPropertyChange(i,o,n);return a&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),this.__dataOld&&!(i in this.__dataOld)&&(this.__dataOld[i]=n),this.__data[i]=o,this.__dataPending[i]=o),a}_isPropertyPending(i){return!!(this.__dataPending&&this.__dataPending.hasOwnProperty(i))}_invalidateProperties(){!this.__dataInvalid&&this.__dataReady&&(this.__dataInvalid=!0,Eh.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,o=this.__dataPending,s=this.__dataOld;this._shouldPropertiesChange(i,o,s)&&(this.__dataPending=null,this.__dataOld=null,this._propertiesChanged(i,o,s)),this.__dataCounter--}_shouldPropertiesChange(i,o,s){return!!o}_propertiesChanged(i,o,s){}_shouldPropertyChange(i,o,s){return s!==o&&(s===s||o===o)}attributeChangedCallback(i,o,s,n){o!==s&&this._attributeToProperty(i,s),super.attributeChangedCallback&&super.attributeChangedCallback(i,o,s,n)}_attributeToProperty(i,o,s){if(!this.__serializing){const n=this.__dataAttributes,a=n&&n[i]||i;this[a]=this._deserializeValue(o,s||this.constructor.typeForProperty(a))}}_propertyToAttribute(i,o,s){this.__serializing=!0,s=arguments.length<3?this[i]:s,this._valueToNodeAttribute(this,s,o||this.constructor.attributeNameForProperty(i)),this.__serializing=!1}_valueToNodeAttribute(i,o,s){const n=this._serializeValue(o);(s==="class"||s==="name"||s==="slot")&&(i=ie(i)),n===void 0?i.removeAttribute(s):i.setAttribute(s,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,o){switch(o){case Boolean:return i!==null;case Number:return Number(i);default:return i}}}return r});/**
|
|
670
670
|
@license
|
|
671
671
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
672
672
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -674,7 +674,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
674
674
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
675
675
|
Code distributed by Google as part of the polymer project is also
|
|
676
676
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
677
|
-
*/const Jn={};let rr=HTMLElement.prototype;for(;rr;){let t=Object.getOwnPropertyNames(rr);for(let r=0;r<t.length;r++)Jn[t[r]]=!0;rr=Object.getPrototypeOf(rr)}const Sh=window.trustedTypes?t=>trustedTypes.isHTML(t)||trustedTypes.isScript(t)||trustedTypes.isScriptURL(t):()=>!1;function Ah(t,r){if(!Jn[r]){let e=t[r];e!==void 0&&(t.__data?t._setPendingProperty(r,e):(t.__dataProto?t.hasOwnProperty(JSCompiler_renameProperty("__dataProto",t))||(t.__dataProto=Object.create(t.__dataProto)):t.__dataProto={},t.__dataProto[r]=e))}}const Ch=J(t=>{const r=Kn(t);class e extends r{static createPropertiesForAttributes(){let
|
|
677
|
+
*/const Jn={};let rr=HTMLElement.prototype;for(;rr;){let t=Object.getOwnPropertyNames(rr);for(let r=0;r<t.length;r++)Jn[t[r]]=!0;rr=Object.getPrototypeOf(rr)}const Sh=window.trustedTypes?t=>trustedTypes.isHTML(t)||trustedTypes.isScript(t)||trustedTypes.isScriptURL(t):()=>!1;function Ah(t,r){if(!Jn[r]){let e=t[r];e!==void 0&&(t.__data?t._setPendingProperty(r,e):(t.__dataProto?t.hasOwnProperty(JSCompiler_renameProperty("__dataProto",t))||(t.__dataProto=Object.create(t.__dataProto)):t.__dataProto={},t.__dataProto[r]=e))}}const Ch=J(t=>{const r=Kn(t);class e extends r{static createPropertiesForAttributes(){let o=this.observedAttributes;for(let s=0;s<o.length;s++)this.prototype._createPropertyAccessor(Gn(o[s]))}static attributeNameForProperty(o){return Mr(o)}_initializeProperties(){this.__dataProto&&(this._initializeProtoProperties(this.__dataProto),this.__dataProto=null),super._initializeProperties()}_initializeProtoProperties(o){for(let s in o)this._setProperty(s,o[s])}_ensureAttribute(o,s){const n=this;n.hasAttribute(o)||this._valueToNodeAttribute(n,s,o)}_serializeValue(o){switch(typeof o){case"object":if(o instanceof Date)return o.toString();if(o){if(Sh(o))return o;try{return JSON.stringify(o)}catch(s){return""}}default:return super._serializeValue(o)}}_deserializeValue(o,s){let n;switch(s){case Object:try{n=JSON.parse(o)}catch(a){n=o}break;case Array:try{n=JSON.parse(o)}catch(a){n=null,console.warn(`Polymer::Attributes: couldn't decode Array as JSON: ${o}`)}break;case Date:n=isNaN(o)?String(o):Number(o),n=new Date(n);break;default:n=super._deserializeValue(o,s);break}return n}_definePropertyAccessor(o,s){Ah(this,o),super._definePropertyAccessor(o,s)}_hasAccessor(o){return this.__dataHasAccessor&&this.__dataHasAccessor[o]}_isPropertyPending(o){return!!(this.__dataPending&&o in this.__dataPending)}}return e});/**
|
|
678
678
|
@license
|
|
679
679
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
680
680
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -682,7 +682,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
682
682
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
683
683
|
Code distributed by Google as part of the polymer project is also
|
|
684
684
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
685
|
-
*/const Th={"dom-if":!0,"dom-repeat":!0};let
|
|
685
|
+
*/const Th={"dom-if":!0,"dom-repeat":!0};let bs=!1,ys=!1;function Ph(){if(!bs){bs=!0;const t=document.createElement("textarea");t.placeholder="a",ys=t.placeholder===t.textContent}return ys}function Dh(t){Ph()&&t.localName==="textarea"&&t.placeholder&&t.placeholder===t.textContent&&(t.textContent=null)}const kh=(()=>{const t=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:r=>r});return(r,e,i)=>{const o=e.getAttribute(i);if(t&&i.startsWith("on-")){r.setAttribute(i,t.createScript(o,i));return}r.setAttribute(i,o)}})();function Oh(t){let r=t.getAttribute("is");if(r&&Th[r]){let e=t;for(e.removeAttribute("is"),t=e.ownerDocument.createElement(r),e.parentNode.replaceChild(t,e),t.appendChild(e);e.attributes.length;){const{name:i}=e.attributes[0];kh(t,e,i),e.removeAttribute(i)}}return t}function Zn(t,r){let e=r.parentInfo&&Zn(t,r.parentInfo);if(e){for(let i=e.firstChild,o=0;i;i=i.nextSibling)if(r.parentIndex===o++)return i}else return t}function Mh(t,r,e,i){i.id&&(r[i.id]=e)}function Ih(t,r,e){if(e.events&&e.events.length)for(let i=0,o=e.events,s;i<o.length&&(s=o[i]);i++)t._addMethodEventListenerToNode(r,s.name,s.value,t)}function Nh(t,r,e,i){e.templateInfo&&(r._templateInfo=e.templateInfo,r._parentTemplateInfo=i)}function Lh(t,r,e){return t=t._methodHost||t,function(o){t[e]?t[e](o,o.detail):console.warn("listener method `"+e+"` not defined")}}const $h=J(t=>{class r extends t{static _parseTemplate(i,o){if(!i._templateInfo){let s=i._templateInfo={};s.nodeInfoList=[],s.nestedTemplate=!!o,s.stripWhiteSpace=o&&o.stripWhiteSpace||i.hasAttribute&&i.hasAttribute("strip-whitespace"),this._parseTemplateContent(i,s,{parent:null})}return i._templateInfo}static _parseTemplateContent(i,o,s){return this._parseTemplateNode(i.content,o,s)}static _parseTemplateNode(i,o,s){let n=!1,a=i;return a.localName=="template"&&!a.hasAttribute("preserve-content")?n=this._parseTemplateNestedTemplate(a,o,s)||n:a.localName==="slot"&&(o.hasInsertionPoint=!0),Dh(a),a.firstChild&&this._parseTemplateChildNodes(a,o,s),a.hasAttributes&&a.hasAttributes()&&(n=this._parseTemplateNodeAttributes(a,o,s)||n),n||s.noted}static _parseTemplateChildNodes(i,o,s){if(!(i.localName==="script"||i.localName==="style"))for(let n=i.firstChild,a=0,l;n;n=l){if(n.localName=="template"&&(n=Oh(n)),l=n.nextSibling,n.nodeType===Node.TEXT_NODE){let c=l;for(;c&&c.nodeType===Node.TEXT_NODE;)n.textContent+=c.textContent,l=c.nextSibling,i.removeChild(c),c=l;if(o.stripWhiteSpace&&!n.textContent.trim()){i.removeChild(n);continue}}let u={parentIndex:a,parentInfo:s};this._parseTemplateNode(n,o,u)&&(u.infoIndex=o.nodeInfoList.push(u)-1),n.parentNode&&a++}}static _parseTemplateNestedTemplate(i,o,s){let n=i,a=this._parseTemplate(n,o);return(a.content=n.content.ownerDocument.createDocumentFragment()).appendChild(n.content),s.templateInfo=a,!0}static _parseTemplateNodeAttributes(i,o,s){let n=!1,a=Array.from(i.attributes);for(let l=a.length-1,u;u=a[l];l--)n=this._parseTemplateNodeAttribute(i,o,s,u.name,u.value)||n;return n}static _parseTemplateNodeAttribute(i,o,s,n,a){return n.slice(0,3)==="on-"?(i.removeAttribute(n),s.events=s.events||[],s.events.push({name:n.slice(3),value:a}),!0):n==="id"?(s.id=a,!0):!1}static _contentForTemplate(i){let o=i._templateInfo;return o&&o.content||i.content}_stampTemplate(i,o){i&&!i.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(i),o=o||this.constructor._parseTemplate(i);let s=o.nodeInfoList,n=o.content||i.content,a=document.importNode(n,!0);a.__noInsertionPoint=!o.hasInsertionPoint;let l=a.nodeList=new Array(s.length);a.$={};for(let u=0,c=s.length,h;u<c&&(h=s[u]);u++){let d=l[u]=Zn(a,h);Mh(this,a.$,d,h),Nh(this,d,h,o),Ih(this,d,h)}return a=a,a}_addMethodEventListenerToNode(i,o,s,n){n=n||i;let a=Lh(n,o,s);return this._addEventListenerToNode(i,o,a),a}_addEventListenerToNode(i,o,s){i.addEventListener(o,s)}_removeEventListenerFromNode(i,o,s){i.removeEventListener(o,s)}}return r});/**
|
|
686
686
|
* @fileoverview
|
|
687
687
|
* @suppress {checkPrototypalTypes}
|
|
688
688
|
* @license Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
@@ -692,7 +692,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
692
692
|
* be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
|
|
693
693
|
* Google as part of the polymer project is also subject to an additional IP
|
|
694
694
|
* rights grant found at http://polymer.github.io/PATENTS.txt
|
|
695
|
-
*/let Ut=0;const jt=[],$={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},Qn="__computeInfo",Hh=/[A-Z]/;function eo(t,r,e){let o=t[r];if(!o)o=t[r]={};else if(!t.hasOwnProperty(r)&&(o=t[r]=Object.create(t[r]),e))for(let i in o){let s=o[i],n=o[i]=Array(s.length);for(let a=0;a<s.length;a++)n[a]=s[a]}return o}function kt(t,r,e,o,i,s){if(r){let n=!1;const a=Ut++;for(let l in e){let u=i?qe(l):l,c=r[u];if(c)for(let h=0,d=c.length,p;h<d&&(p=c[h]);h++)(!p.info||p.info.lastRun!==a)&&(!i||ci(l,p.trigger))&&(p.info&&(p.info.lastRun=a),p.fn(t,l,e,o,p.info,i,s),n=!0)}return n}return!1}function Bh(t,r,e,o,i,s,n,a){let l=!1,u=n?qe(o):o,c=r[u];if(c)for(let h=0,d=c.length,p;h<d&&(p=c[h]);h++)(!p.info||p.info.lastRun!==e)&&(!n||ci(o,p.trigger))&&(p.info&&(p.info.lastRun=e),p.fn(t,o,i,s,p.info,n,a),l=!0);return l}function ci(t,r){if(r){let e=r.name;return e==t||!!(r.structured&&Vn(e,t))||!!(r.wildcard&&Ft(e,t))}else return!0}function ys(t,r,e,o,i){let s=typeof i.method=="string"?t[i.method]:i.method,n=i.property;s?s.call(t,t.__data[n],o[n]):i.dynamicFn||console.warn("observer method `"+i.method+"` not defined")}function zh(t,r,e,o,i){let s=t[$.NOTIFY],n,a=Ut++;for(let u in r)r[u]&&(s&&Bh(t,s,a,u,e,o,i)||i&&Fh(t,u,e))&&(n=!0);let l;n&&(l=t.__dataHost)&&l._invalidateProperties&&l._invalidateProperties()}function Fh(t,r,e){let o=qe(r);if(o!==r){let i=Mr(o)+"-changed";return ea(t,i,e[r],r),!0}return!1}function ea(t,r,e,o){let i={value:e,queueProperty:!0};o&&(i.path=o),oe(t).dispatchEvent(new CustomEvent(r,{detail:i}))}function Rh(t,r,e,o,i,s){let a=(s?qe(r):r)!=r?r:null,l=a?he(t,a):t.__data[r];a&&l===void 0&&(l=e[r]),ea(t,i.eventName,l,a)}function Uh(t,r,e,o,i){let s,n=t.detail,a=n&&n.path;a?(o=Rt(e,o,a),s=n&&n.value):s=t.currentTarget[e],s=i?!s:s,(!r[$.READ_ONLY]||!r[$.READ_ONLY][o])&&r._setPendingPropertyOrPath(o,s,!0,!!a)&&(!n||!n.queueProperty)&&r._invalidateProperties()}function jh(t,r,e,o,i){let s=t.__data[r];br&&(s=br(s,i.attrName,"attribute",t)),t._propertyToAttribute(r,i.attrName,s)}function Vh(t,r,e,o){let i=t[$.COMPUTE];if(i)if(nh){Ut++;const s=Gh(t),n=[];for(let l in r)xs(l,i,n,s,o);let a;for(;a=n.shift();)ta(t,"",r,e,a)&&xs(a.methodInfo,i,n,s,o);Object.assign(e,t.__dataOld),Object.assign(r,t.__dataPending),t.__dataPending=null}else{let s=r;for(;kt(t,i,s,e,o);)Object.assign(e,t.__dataOld),Object.assign(r,t.__dataPending),s=t.__dataPending,t.__dataPending=null}}const Yh=(t,r,e)=>{let o=0,i=r.length-1,s=-1;for(;o<=i;){const n=o+i>>1,a=e.get(r[n].methodInfo)-e.get(t.methodInfo);if(a<0)o=n+1;else if(a>0)i=n-1;else{s=n;break}}s<0&&(s=i+1),r.splice(s,0,t)},xs=(t,r,e,o,i)=>{const s=i?qe(t):t,n=r[s];if(n)for(let a=0;a<n.length;a++){const l=n[a];l.info.lastRun!==Ut&&(!i||ci(t,l.trigger))&&(l.info.lastRun=Ut,Yh(l.info,e,o))}};function Gh(t){let r=t.constructor.__orderedComputedDeps;if(!r){r=new Map;const e=t[$.COMPUTE];let{counts:o,ready:i,total:s}=Wh(t),n;for(;n=i.shift();){r.set(n,r.size);const a=e[n];a&&a.forEach(l=>{const u=l.info.methodInfo;--s,--o[u]===0&&i.push(u)})}s!==0&&console.warn(`Computed graph for ${t.localName} incomplete; circular?`),t.constructor.__orderedComputedDeps=r}return r}function Wh(t){const r=t[Qn],e={},o=t[$.COMPUTE],i=[];let s=0;for(let n in r){const a=r[n];s+=e[n]=a.args.filter(l=>!l.literal).length+(a.dynamicFn?1:0)}for(let n in o)r[n]||i.push(n);return{counts:e,ready:i,total:s}}function ta(t,r,e,o,i){let s=Ho(t,r,e,o,i);if(s===jt)return!1;let n=i.methodInfo;return t.__dataHasAccessor&&t.__dataHasAccessor[n]?t._setPendingProperty(n,s,!0):(t[n]=s,!1)}function qh(t,r,e){let o=t.__dataLinkedPaths;if(o){let i;for(let s in o){let n=o[s];Ft(s,r)?(i=Rt(s,n,r),t._setPendingPropertyOrPath(i,e,!0,!0)):Ft(n,r)&&(i=Rt(n,s,r),t._setPendingPropertyOrPath(i,e,!0,!0))}}}function to(t,r,e,o,i,s,n){e.bindings=e.bindings||[];let a={kind:o,target:i,parts:s,literal:n,isCompound:s.length!==1};if(e.bindings.push(a),Qh(a)){let{event:u,negate:c}=a.parts[0];a.listenerEvent=u||Mr(i)+"-changed",a.listenerNegate=c}let l=r.nodeInfoList.length;for(let u=0;u<a.parts.length;u++){let c=a.parts[u];c.compoundIndex=u,Xh(t,r,a,c,l)}}function Xh(t,r,e,o,i){if(!o.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 s=o.dependencies,n={index:i,binding:e,part:o,evaluator:t};for(let a=0;a<s.length;a++){let l=s[a];typeof l=="string"&&(l=oa(l),l.wildcard=!0),t._addTemplatePropertyEffect(r,l.rootProperty,{fn:Kh,info:n,trigger:l})}}}function Kh(t,r,e,o,i,s,n){let a=n[i.index],l=i.binding,u=i.part;if(s&&u.source&&r.length>u.source.length&&l.kind=="property"&&!l.isCompound&&a.__isPropertyEffectsClient&&a.__dataHasAccessor&&a.__dataHasAccessor[l.target]){let c=e[r];r=Rt(u.source,l.target,r),a._setPendingPropertyOrPath(r,c,!1,!0)&&t._enqueueClient(a)}else{let c=i.evaluator._evaluateBinding(t,u,r,e,o,s);c!==jt&&Jh(t,a,l,u,c)}}function Jh(t,r,e,o,i){if(i=Zh(r,i,e,o),br&&(i=br(i,e.target,e.kind,r)),e.kind=="attribute")t._valueToNodeAttribute(r,i,e.target);else{let s=e.target;r.__isPropertyEffectsClient&&r.__dataHasAccessor&&r.__dataHasAccessor[s]?(!r[$.READ_ONLY]||!r[$.READ_ONLY][s])&&r._setPendingProperty(s,i)&&t._enqueueClient(r):t._setUnmanagedPropertyToNode(r,s,i)}}function Zh(t,r,e,o){if(e.isCompound){let i=t.__dataCompoundStorage[e.target];i[o.compoundIndex]=r,r=i.join("")}return e.kind!=="attribute"&&(e.target==="textContent"||e.target==="value"&&(t.localName==="input"||t.localName==="textarea"))&&(r=r==null?"":r),r}function Qh(t){return!!t.target&&t.kind!="attribute"&&t.kind!="text"&&!t.isCompound&&t.parts[0].mode==="{"}function ed(t,r){let{nodeList:e,nodeInfoList:o}=r;if(o.length)for(let i=0;i<o.length;i++){let s=o[i],n=e[i],a=s.bindings;if(a)for(let l=0;l<a.length;l++){let u=a[l];td(n,u),rd(n,t,u)}n.__dataHost=t}}function td(t,r){if(r.isCompound){let e=t.__dataCompoundStorage||(t.__dataCompoundStorage={}),o=r.parts,i=new Array(o.length);for(let n=0;n<o.length;n++)i[n]=o[n].literal;let s=r.target;e[s]=i,r.literal&&r.kind=="property"&&(s==="className"&&(t=oe(t)),t[s]=r.literal)}}function rd(t,r,e){if(e.listenerEvent){let o=e.parts[0];t.addEventListener(e.listenerEvent,function(i){Uh(i,r,e.target,o.source,o.negate)})}}function ws(t,r,e,o,i,s){s=r.static||s&&(typeof s!="object"||s[r.methodName]);let n={methodName:r.methodName,args:r.args,methodInfo:i,dynamicFn:s};for(let a=0,l;a<r.args.length&&(l=r.args[a]);a++)l.literal||t._addPropertyEffect(l.rootProperty,e,{fn:o,info:n,trigger:l});return s&&t._addPropertyEffect(r.methodName,e,{fn:o,info:n}),n}function Ho(t,r,e,o,i){let s=t._methodHost||t,n=s[i.methodName];if(n){let a=t._marshalArgs(i.args,r,e);return a===jt?jt:n.apply(s,a)}else i.dynamicFn||console.warn("method `"+i.methodName+"` not defined")}const od=[],ra="(?:[a-zA-Z_$][\\w.:$\\-*]*)",id="(?:[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)",sd="(?:'(?:[^'\\\\]|\\\\.)*')",nd='(?:"(?:[^"\\\\]|\\\\.)*")',ad="(?:"+sd+"|"+nd+")",Es="(?:("+ra+"|"+id+"|"+ad+")\\s*)",ld="(?:"+Es+"(?:,\\s*"+Es+")*)",ud="(?:\\(\\s*(?:"+ld+"?)\\)\\s*)",cd="("+ra+"\\s*"+ud+"?)",hd="(\\[\\[|{{)\\s*",dd="(?:]]|}})",pd="(?:(!)\\s*)?",fd=hd+pd+cd+dd,Ss=new RegExp(fd,"g");function As(t){let r="";for(let e=0;e<t.length;e++){let o=t[e].literal;r+=o||""}return r}function ro(t){let r=t.match(/([^\s]+?)\(([\s\S]*)\)/);if(r){let o={methodName:r[1],static:!0,args:od};if(r[2].trim()){let i=r[2].replace(/\\,/g,",").split(",");return md(i,o)}else return o}return null}function md(t,r){return r.args=t.map(function(e){let o=oa(e);return o.literal||(r.static=!1),o},this),r}function oa(t){let r=t.trim().replace(/,/g,",").replace(/\\(.)/g,"$1"),e={name:r,value:"",literal:!1},o=r[0];switch(o==="-"&&(o=r[1]),o>="0"&&o<="9"&&(o="#"),o){case"'":case'"':e.value=r.slice(1,-1),e.literal=!0;break;case"#":e.value=Number(r),e.literal=!0;break}return e.literal||(e.rootProperty=qe(r),e.structured=Lo(r),e.structured&&(e.wildcard=r.slice(-2)==".*",e.wildcard&&(e.name=r.slice(0,-2)))),e}function Cs(t,r,e){let o=he(t,e);return o===void 0&&(o=r[e]),o}function ia(t,r,e,o){const i={indexSplices:o};No&&!t._overrideLegacyUndefined&&(r.splices=i),t.notifyPath(e+".splices",i),t.notifyPath(e+".length",r.length),No&&!t._overrideLegacyUndefined&&(i.indexSplices=[])}function At(t,r,e,o,i,s){ia(t,r,e,[{index:o,addedCount:i,removed:s,object:r,type:"splice"}])}function _d(t){return t[0].toUpperCase()+t.substring(1)}const hi=J(t=>{const r=$h(Ch(t));class e extends r{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 $}_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(Ct.length){let i=Ct[Ct.length-1];i._enqueueClient(this),this.__dataHost=i}}_initializeProtoProperties(i){this.__data=Object.create(i),this.__dataPending=Object.create(i),this.__dataOld={}}_initializeInstanceProperties(i){let s=this[$.READ_ONLY];for(let n in i)(!s||!s[n])&&(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[n]=this.__dataPending[n]=i[n])}_addPropertyEffect(i,s,n){this._createPropertyAccessor(i,s==$.READ_ONLY);let a=eo(this,s,!0)[i];a||(a=this[s][i]=[]),a.push(n)}_removePropertyEffect(i,s,n){let a=eo(this,s,!0)[i],l=a.indexOf(n);l>=0&&a.splice(l,1)}_hasPropertyEffect(i,s){let n=this[s];return!!(n&&n[i])}_hasReadOnlyEffect(i){return this._hasPropertyEffect(i,$.READ_ONLY)}_hasNotifyEffect(i){return this._hasPropertyEffect(i,$.NOTIFY)}_hasReflectEffect(i){return this._hasPropertyEffect(i,$.REFLECT)}_hasComputedEffect(i){return this._hasPropertyEffect(i,$.COMPUTE)}_setPendingPropertyOrPath(i,s,n,a){if(a||qe(Array.isArray(i)?i[0]:i)!==i){if(!a){let l=he(this,i);if(i=vs(this,i,s),!i||!super._shouldPropertyChange(i,s,l))return!1}if(this.__dataHasPaths=!0,this._setPendingProperty(i,s,n))return qh(this,i,s),!0}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[i])return this._setPendingProperty(i,s,n);this[i]=s}return!1}_setUnmanagedPropertyToNode(i,s,n){(n!==i[s]||typeof n=="object")&&(s==="className"&&(i=oe(i)),i[s]=n)}_setPendingProperty(i,s,n){let a=this.__dataHasPaths&&Lo(i),l=a?this.__dataTemp:this.__data;return this._shouldPropertyChange(i,s,l[i])?(this.__dataPending||(this.__dataPending={},this.__dataOld={}),i in this.__dataOld||(this.__dataOld[i]=this.__data[i]),a?this.__dataTemp[i]=s:this.__data[i]=s,this.__dataPending[i]=s,(a||this[$.NOTIFY]&&this[$.NOTIFY][i])&&(this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[i]=n),!0):!1}_setProperty(i,s){this._setPendingProperty(i,s,!0)&&this._invalidateProperties()}_invalidateProperties(){this.__dataReady&&this._flushProperties()}_enqueueClient(i){this.__dataPendingClients=this.__dataPendingClients||[],i!==this&&this.__dataPendingClients.push(i)}_flushClients(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)}__enableOrFlushClients(){let i=this.__dataPendingClients;if(i){this.__dataPendingClients=null;for(let s=0;s<i.length;s++){let n=i[s];n.__dataEnabled?n.__dataPending&&n._flushProperties():n._enableProperties()}}}_readyClients(){this.__enableOrFlushClients()}setProperties(i,s){for(let n in i)(s||!this[$.READ_ONLY]||!this[$.READ_ONLY][n])&&this._setPendingPropertyOrPath(n,i[n],!0);this._invalidateProperties()}ready(){this._flushProperties(),this.__dataClientsReady||this._flushClients(),this.__dataPending&&this._flushProperties()}_propertiesChanged(i,s,n){let a=this.__dataHasPaths;this.__dataHasPaths=!1;let l;Vh(this,s,n,a),l=this.__dataToNotify,this.__dataToNotify=null,this._propagatePropertyChanges(s,n,a),this._flushClients(),kt(this,this[$.REFLECT],s,n,a),kt(this,this[$.OBSERVE],s,n,a),l&&zh(this,l,s,n,a),this.__dataCounter==1&&(this.__dataTemp={})}_propagatePropertyChanges(i,s,n){this[$.PROPAGATE]&&kt(this,this[$.PROPAGATE],i,s,n),this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,i,s,n)}_runEffectsForTemplate(i,s,n,a){const l=(u,c)=>{kt(this,i.propertyEffects,u,n,c,i.nodeList);for(let h=i.firstChild;h;h=h.nextSibling)this._runEffectsForTemplate(h,u,n,c)};i.runEffects?i.runEffects(l,s,a):l(s,a)}linkPaths(i,s){i=Dt(i),s=Dt(s),this.__dataLinkedPaths=this.__dataLinkedPaths||{},this.__dataLinkedPaths[i]=s}unlinkPaths(i){i=Dt(i),this.__dataLinkedPaths&&delete this.__dataLinkedPaths[i]}notifySplices(i,s){let n={path:""},a=he(this,i,n);ia(this,a,n.path,s)}get(i,s){return he(s||this,i)}set(i,s,n){n?vs(n,i,s):(!this[$.READ_ONLY]||!this[$.READ_ONLY][i])&&this._setPendingPropertyOrPath(i,s,!0)&&this._invalidateProperties()}push(i,...s){let n={path:""},a=he(this,i,n),l=a.length,u=a.push(...s);return s.length&&At(this,a,n.path,l,s.length,[]),u}pop(i){let s={path:""},n=he(this,i,s),a=!!n.length,l=n.pop();return a&&At(this,n,s.path,n.length,0,[l]),l}splice(i,s,n,...a){let l={path:""},u=he(this,i,l);s<0?s=u.length-Math.floor(-s):s&&(s=Math.floor(s));let c;return arguments.length===2?c=u.splice(s):c=u.splice(s,n,...a),(a.length||c.length)&&At(this,u,l.path,s,a.length,c),c}shift(i){let s={path:""},n=he(this,i,s),a=!!n.length,l=n.shift();return a&&At(this,n,s.path,0,0,[l]),l}unshift(i,...s){let n={path:""},a=he(this,i,n),l=a.unshift(...s);return s.length&&At(this,a,n.path,0,s.length,[]),l}notifyPath(i,s){let n;if(arguments.length==1){let a={path:""};s=he(this,i,a),n=a.path}else Array.isArray(i)?n=Dt(i):n=i;this._setPendingPropertyOrPath(n,s,!0,!0)&&this._invalidateProperties()}_createReadOnlyProperty(i,s){this._addPropertyEffect(i,$.READ_ONLY),s&&(this["_set"+_d(i)]=function(n){this._setProperty(i,n)})}_createPropertyObserver(i,s,n){let a={property:i,method:s,dynamicFn:!!n};this._addPropertyEffect(i,$.OBSERVE,{fn:ys,info:a,trigger:{name:i}}),n&&this._addPropertyEffect(s,$.OBSERVE,{fn:ys,info:a,trigger:{name:s}})}_createMethodObserver(i,s){let n=ro(i);if(!n)throw new Error("Malformed observer expression '"+i+"'");ws(this,n,$.OBSERVE,Ho,null,s)}_createNotifyingProperty(i){this._addPropertyEffect(i,$.NOTIFY,{fn:Rh,info:{eventName:Mr(i)+"-changed",property:i}})}_createReflectedProperty(i){let s=this.constructor.attributeNameForProperty(i);s[0]==="-"?console.warn("Property "+i+" cannot be reflected to attribute "+s+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(i,$.REFLECT,{fn:jh,info:{attrName:s}})}_createComputedProperty(i,s,n){let a=ro(s);if(!a)throw new Error("Malformed computed expression '"+s+"'");const l=ws(this,a,$.COMPUTE,ta,i,n);eo(this,Qn)[i]=l}_marshalArgs(i,s,n){const a=this.__data,l=[];for(let u=0,c=i.length;u<c;u++){let{name:h,structured:d,wildcard:p,value:f,literal:b}=i[u];if(!b)if(p){const P=Ft(h,s),D=Cs(a,n,P?s:h);f={path:P?s:h,value:D,base:P?he(a,h):D}}else f=d?Cs(a,n,h):a[h];if(No&&!this._overrideLegacyUndefined&&f===void 0&&i.length>1)return jt;l[u]=f}return l}static addPropertyEffect(i,s,n){this.prototype._addPropertyEffect(i,s,n)}static createPropertyObserver(i,s,n){this.prototype._createPropertyObserver(i,s,n)}static createMethodObserver(i,s){this.prototype._createMethodObserver(i,s)}static createNotifyingProperty(i){this.prototype._createNotifyingProperty(i)}static createReadOnlyProperty(i,s){this.prototype._createReadOnlyProperty(i,s)}static createReflectedProperty(i){this.prototype._createReflectedProperty(i)}static createComputedProperty(i,s,n){this.prototype._createComputedProperty(i,s,n)}static bindTemplate(i){return this.prototype._bindTemplate(i)}_bindTemplate(i,s){let n=this.constructor._parseTemplate(i),a=this.__preBoundTemplateInfo==n;if(!a)for(let l in n.propertyEffects)this._createPropertyAccessor(l);if(s)if(n=Object.create(n),n.wasPreBound=a,!this.__templateInfo)this.__templateInfo=n;else{const l=i._parentTemplateInfo||this.__templateInfo,u=l.lastChild;n.parent=l,l.lastChild=n,n.previousSibling=u,u?u.nextSibling=n:l.firstChild=n}else this.__preBoundTemplateInfo=n;return n}static _addTemplatePropertyEffect(i,s,n){let a=i.hostProps=i.hostProps||{};a[s]=!0;let l=i.propertyEffects=i.propertyEffects||{};(l[s]=l[s]||[]).push(n)}_stampTemplate(i,s){s=s||this._bindTemplate(i,!0),Ct.push(this);let n=super._stampTemplate(i,s);if(Ct.pop(),s.nodeList=n.nodeList,!s.wasPreBound){let a=s.childNodes=[];for(let l=n.firstChild;l;l=l.nextSibling)a.push(l)}return n.templateInfo=s,ed(this,s),this.__dataClientsReady&&(this._runEffectsForTemplate(s,this.__data,null,!1),this._flushClients()),n}_removeBoundDom(i){const s=i.templateInfo,{previousSibling:n,nextSibling:a,parent:l}=s;n?n.nextSibling=a:l&&(l.firstChild=a),a?a.previousSibling=n:l&&(l.lastChild=n),s.nextSibling=s.previousSibling=null;let u=s.childNodes;for(let c=0;c<u.length;c++){let h=u[c];oe(oe(h).parentNode).removeChild(h)}}static _parseTemplateNode(i,s,n){let a=r._parseTemplateNode.call(this,i,s,n);if(i.nodeType===Node.TEXT_NODE){let l=this._parseBindings(i.textContent,s);l&&(i.textContent=As(l)||" ",to(this,s,n,"text","textContent",l),a=!0)}return a}static _parseTemplateNodeAttribute(i,s,n,a,l){let u=this._parseBindings(l,s);if(u){let c=a,h="property";Hh.test(a)?h="attribute":a[a.length-1]=="$"&&(a=a.slice(0,-1),h="attribute");let d=As(u);return d&&h=="attribute"&&(a=="class"&&i.hasAttribute("class")&&(d+=" "+i.getAttribute(a)),i.setAttribute(a,d)),h=="attribute"&&c=="disable-upgrade$"&&i.setAttribute(a,""),i.localName==="input"&&c==="value"&&i.setAttribute(c,""),i.removeAttribute(c),h==="property"&&(a=Gn(a)),to(this,s,n,h,a,u,d),!0}else return r._parseTemplateNodeAttribute.call(this,i,s,n,a,l)}static _parseTemplateNestedTemplate(i,s,n){let a=r._parseTemplateNestedTemplate.call(this,i,s,n);const l=i.parentNode,u=n.templateInfo,c=l.localName==="dom-if",h=l.localName==="dom-repeat";hs&&(c||h)&&(l.removeChild(i),n=n.parentInfo,n.templateInfo=u,n.noted=!0,a=!1);let d=u.hostProps;if(ah&&c)d&&(s.hostProps=Object.assign(s.hostProps||{},d),hs||(n.parentInfo.noted=!0));else{let p="{";for(let f in d){let b=[{mode:p,source:f,dependencies:[f],hostProp:!0}];to(this,s,n,"property","_host_"+f,b)}}return a}static _parseBindings(i,s){let n=[],a=0,l;for(;(l=Ss.exec(i))!==null;){l.index>a&&n.push({literal:i.slice(a,l.index)});let u=l[1][0],c=!!l[2],h=l[3].trim(),d=!1,p="",f=-1;u=="{"&&(f=h.indexOf("::"))>0&&(p=h.substring(f+2),h=h.substring(0,f),d=!0);let b=ro(h),P=[];if(b){let{args:D,methodName:M}=b;for(let ee=0;ee<D.length;ee++){let F=D[ee];F.literal||P.push(F)}let z=s.dynamicFns;(z&&z[M]||b.static)&&(P.push(M),b.dynamicFn=!0)}else P.push(h);n.push({source:h,mode:u,negate:c,customEvent:d,signature:b,dependencies:P,event:p}),a=Ss.lastIndex}if(a&&a<i.length){let u=i.substring(a);u&&n.push({literal:u})}return n.length?n:null}static _evaluateBinding(i,s,n,a,l,u){let c;return s.signature?c=Ho(i,n,a,l,s.signature):n!=s.source?c=he(i,s.source):u&&Lo(n)?c=he(i,n):c=i.__data[n],s.negate&&(c=!c),c}}return e}),Ct=[];/**
|
|
695
|
+
*/let Ut=0;const jt=[],$={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},Qn="__computeInfo",Hh=/[A-Z]/;function ei(t,r,e){let i=t[r];if(!i)i=t[r]={};else if(!t.hasOwnProperty(r)&&(i=t[r]=Object.create(t[r]),e))for(let o in i){let s=i[o],n=i[o]=Array(s.length);for(let a=0;a<s.length;a++)n[a]=s[a]}return i}function kt(t,r,e,i,o,s){if(r){let n=!1;const a=Ut++;for(let l in e){let u=o?qe(l):l,c=r[u];if(c)for(let h=0,d=c.length,p;h<d&&(p=c[h]);h++)(!p.info||p.info.lastRun!==a)&&(!o||uo(l,p.trigger))&&(p.info&&(p.info.lastRun=a),p.fn(t,l,e,i,p.info,o,s),n=!0)}return n}return!1}function Bh(t,r,e,i,o,s,n,a){let l=!1,u=n?qe(i):i,c=r[u];if(c)for(let h=0,d=c.length,p;h<d&&(p=c[h]);h++)(!p.info||p.info.lastRun!==e)&&(!n||uo(i,p.trigger))&&(p.info&&(p.info.lastRun=e),p.fn(t,i,o,s,p.info,n,a),l=!0);return l}function uo(t,r){if(r){let e=r.name;return e==t||!!(r.structured&&Vn(e,t))||!!(r.wildcard&&Ft(e,t))}else return!0}function vs(t,r,e,i,o){let s=typeof o.method=="string"?t[o.method]:o.method,n=o.property;s?s.call(t,t.__data[n],i[n]):o.dynamicFn||console.warn("observer method `"+o.method+"` not defined")}function zh(t,r,e,i,o){let s=t[$.NOTIFY],n,a=Ut++;for(let u in r)r[u]&&(s&&Bh(t,s,a,u,e,i,o)||o&&Fh(t,u,e))&&(n=!0);let l;n&&(l=t.__dataHost)&&l._invalidateProperties&&l._invalidateProperties()}function Fh(t,r,e){let i=qe(r);if(i!==r){let o=Mr(i)+"-changed";return ea(t,o,e[r],r),!0}return!1}function ea(t,r,e,i){let o={value:e,queueProperty:!0};i&&(o.path=i),ie(t).dispatchEvent(new CustomEvent(r,{detail:o}))}function Rh(t,r,e,i,o,s){let a=(s?qe(r):r)!=r?r:null,l=a?he(t,a):t.__data[r];a&&l===void 0&&(l=e[r]),ea(t,o.eventName,l,a)}function Uh(t,r,e,i,o){let s,n=t.detail,a=n&&n.path;a?(i=Rt(e,i,a),s=n&&n.value):s=t.currentTarget[e],s=o?!s:s,(!r[$.READ_ONLY]||!r[$.READ_ONLY][i])&&r._setPendingPropertyOrPath(i,s,!0,!!a)&&(!n||!n.queueProperty)&&r._invalidateProperties()}function jh(t,r,e,i,o){let s=t.__data[r];yr&&(s=yr(s,o.attrName,"attribute",t)),t._propertyToAttribute(r,o.attrName,s)}function Vh(t,r,e,i){let o=t[$.COMPUTE];if(o)if(nh){Ut++;const s=Gh(t),n=[];for(let l in r)xs(l,o,n,s,i);let a;for(;a=n.shift();)ta(t,"",r,e,a)&&xs(a.methodInfo,o,n,s,i);Object.assign(e,t.__dataOld),Object.assign(r,t.__dataPending),t.__dataPending=null}else{let s=r;for(;kt(t,o,s,e,i);)Object.assign(e,t.__dataOld),Object.assign(r,t.__dataPending),s=t.__dataPending,t.__dataPending=null}}const Yh=(t,r,e)=>{let i=0,o=r.length-1,s=-1;for(;i<=o;){const n=i+o>>1,a=e.get(r[n].methodInfo)-e.get(t.methodInfo);if(a<0)i=n+1;else if(a>0)o=n-1;else{s=n;break}}s<0&&(s=o+1),r.splice(s,0,t)},xs=(t,r,e,i,o)=>{const s=o?qe(t):t,n=r[s];if(n)for(let a=0;a<n.length;a++){const l=n[a];l.info.lastRun!==Ut&&(!o||uo(t,l.trigger))&&(l.info.lastRun=Ut,Yh(l.info,e,i))}};function Gh(t){let r=t.constructor.__orderedComputedDeps;if(!r){r=new Map;const e=t[$.COMPUTE];let{counts:i,ready:o,total:s}=Wh(t),n;for(;n=o.shift();){r.set(n,r.size);const a=e[n];a&&a.forEach(l=>{const u=l.info.methodInfo;--s,--i[u]===0&&o.push(u)})}s!==0&&console.warn(`Computed graph for ${t.localName} incomplete; circular?`),t.constructor.__orderedComputedDeps=r}return r}function Wh(t){const r=t[Qn],e={},i=t[$.COMPUTE],o=[];let s=0;for(let n in r){const a=r[n];s+=e[n]=a.args.filter(l=>!l.literal).length+(a.dynamicFn?1:0)}for(let n in i)r[n]||o.push(n);return{counts:e,ready:o,total:s}}function ta(t,r,e,i,o){let s=$i(t,r,e,i,o);if(s===jt)return!1;let n=o.methodInfo;return t.__dataHasAccessor&&t.__dataHasAccessor[n]?t._setPendingProperty(n,s,!0):(t[n]=s,!1)}function qh(t,r,e){let i=t.__dataLinkedPaths;if(i){let o;for(let s in i){let n=i[s];Ft(s,r)?(o=Rt(s,n,r),t._setPendingPropertyOrPath(o,e,!0,!0)):Ft(n,r)&&(o=Rt(n,s,r),t._setPendingPropertyOrPath(o,e,!0,!0))}}}function ti(t,r,e,i,o,s,n){e.bindings=e.bindings||[];let a={kind:i,target:o,parts:s,literal:n,isCompound:s.length!==1};if(e.bindings.push(a),Qh(a)){let{event:u,negate:c}=a.parts[0];a.listenerEvent=u||Mr(o)+"-changed",a.listenerNegate=c}let l=r.nodeInfoList.length;for(let u=0;u<a.parts.length;u++){let c=a.parts[u];c.compoundIndex=u,Xh(t,r,a,c,l)}}function Xh(t,r,e,i,o){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 s=i.dependencies,n={index:o,binding:e,part:i,evaluator:t};for(let a=0;a<s.length;a++){let l=s[a];typeof l=="string"&&(l=ia(l),l.wildcard=!0),t._addTemplatePropertyEffect(r,l.rootProperty,{fn:Kh,info:n,trigger:l})}}}function Kh(t,r,e,i,o,s,n){let a=n[o.index],l=o.binding,u=o.part;if(s&&u.source&&r.length>u.source.length&&l.kind=="property"&&!l.isCompound&&a.__isPropertyEffectsClient&&a.__dataHasAccessor&&a.__dataHasAccessor[l.target]){let c=e[r];r=Rt(u.source,l.target,r),a._setPendingPropertyOrPath(r,c,!1,!0)&&t._enqueueClient(a)}else{let c=o.evaluator._evaluateBinding(t,u,r,e,i,s);c!==jt&&Jh(t,a,l,u,c)}}function Jh(t,r,e,i,o){if(o=Zh(r,o,e,i),yr&&(o=yr(o,e.target,e.kind,r)),e.kind=="attribute")t._valueToNodeAttribute(r,o,e.target);else{let s=e.target;r.__isPropertyEffectsClient&&r.__dataHasAccessor&&r.__dataHasAccessor[s]?(!r[$.READ_ONLY]||!r[$.READ_ONLY][s])&&r._setPendingProperty(s,o)&&t._enqueueClient(r):t._setUnmanagedPropertyToNode(r,s,o)}}function Zh(t,r,e,i){if(e.isCompound){let o=t.__dataCompoundStorage[e.target];o[i.compoundIndex]=r,r=o.join("")}return e.kind!=="attribute"&&(e.target==="textContent"||e.target==="value"&&(t.localName==="input"||t.localName==="textarea"))&&(r=r==null?"":r),r}function Qh(t){return!!t.target&&t.kind!="attribute"&&t.kind!="text"&&!t.isCompound&&t.parts[0].mode==="{"}function ed(t,r){let{nodeList:e,nodeInfoList:i}=r;if(i.length)for(let o=0;o<i.length;o++){let s=i[o],n=e[o],a=s.bindings;if(a)for(let l=0;l<a.length;l++){let u=a[l];td(n,u),rd(n,t,u)}n.__dataHost=t}}function td(t,r){if(r.isCompound){let e=t.__dataCompoundStorage||(t.__dataCompoundStorage={}),i=r.parts,o=new Array(i.length);for(let n=0;n<i.length;n++)o[n]=i[n].literal;let s=r.target;e[s]=o,r.literal&&r.kind=="property"&&(s==="className"&&(t=ie(t)),t[s]=r.literal)}}function rd(t,r,e){if(e.listenerEvent){let i=e.parts[0];t.addEventListener(e.listenerEvent,function(o){Uh(o,r,e.target,i.source,i.negate)})}}function ws(t,r,e,i,o,s){s=r.static||s&&(typeof s!="object"||s[r.methodName]);let n={methodName:r.methodName,args:r.args,methodInfo:o,dynamicFn:s};for(let a=0,l;a<r.args.length&&(l=r.args[a]);a++)l.literal||t._addPropertyEffect(l.rootProperty,e,{fn:i,info:n,trigger:l});return s&&t._addPropertyEffect(r.methodName,e,{fn:i,info:n}),n}function $i(t,r,e,i,o){let s=t._methodHost||t,n=s[o.methodName];if(n){let a=t._marshalArgs(o.args,r,e);return a===jt?jt:n.apply(s,a)}else o.dynamicFn||console.warn("method `"+o.methodName+"` not defined")}const id=[],ra="(?:[a-zA-Z_$][\\w.:$\\-*]*)",od="(?:[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)",sd="(?:'(?:[^'\\\\]|\\\\.)*')",nd='(?:"(?:[^"\\\\]|\\\\.)*")',ad="(?:"+sd+"|"+nd+")",Es="(?:("+ra+"|"+od+"|"+ad+")\\s*)",ld="(?:"+Es+"(?:,\\s*"+Es+")*)",ud="(?:\\(\\s*(?:"+ld+"?)\\)\\s*)",cd="("+ra+"\\s*"+ud+"?)",hd="(\\[\\[|{{)\\s*",dd="(?:]]|}})",pd="(?:(!)\\s*)?",fd=hd+pd+cd+dd,Ss=new RegExp(fd,"g");function As(t){let r="";for(let e=0;e<t.length;e++){let i=t[e].literal;r+=i||""}return r}function ri(t){let r=t.match(/([^\s]+?)\(([\s\S]*)\)/);if(r){let i={methodName:r[1],static:!0,args:id};if(r[2].trim()){let o=r[2].replace(/\\,/g,",").split(",");return md(o,i)}else return i}return null}function md(t,r){return r.args=t.map(function(e){let i=ia(e);return i.literal||(r.static=!1),i},this),r}function ia(t){let r=t.trim().replace(/,/g,",").replace(/\\(.)/g,"$1"),e={name:r,value:"",literal:!1},i=r[0];switch(i==="-"&&(i=r[1]),i>="0"&&i<="9"&&(i="#"),i){case"'":case'"':e.value=r.slice(1,-1),e.literal=!0;break;case"#":e.value=Number(r),e.literal=!0;break}return e.literal||(e.rootProperty=qe(r),e.structured=Ni(r),e.structured&&(e.wildcard=r.slice(-2)==".*",e.wildcard&&(e.name=r.slice(0,-2)))),e}function Cs(t,r,e){let i=he(t,e);return i===void 0&&(i=r[e]),i}function oa(t,r,e,i){const o={indexSplices:i};Ii&&!t._overrideLegacyUndefined&&(r.splices=o),t.notifyPath(e+".splices",o),t.notifyPath(e+".length",r.length),Ii&&!t._overrideLegacyUndefined&&(o.indexSplices=[])}function At(t,r,e,i,o,s){oa(t,r,e,[{index:i,addedCount:o,removed:s,object:r,type:"splice"}])}function _d(t){return t[0].toUpperCase()+t.substring(1)}const co=J(t=>{const r=$h(Ch(t));class e extends r{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 $}_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(Ct.length){let o=Ct[Ct.length-1];o._enqueueClient(this),this.__dataHost=o}}_initializeProtoProperties(o){this.__data=Object.create(o),this.__dataPending=Object.create(o),this.__dataOld={}}_initializeInstanceProperties(o){let s=this[$.READ_ONLY];for(let n in o)(!s||!s[n])&&(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[n]=this.__dataPending[n]=o[n])}_addPropertyEffect(o,s,n){this._createPropertyAccessor(o,s==$.READ_ONLY);let a=ei(this,s,!0)[o];a||(a=this[s][o]=[]),a.push(n)}_removePropertyEffect(o,s,n){let a=ei(this,s,!0)[o],l=a.indexOf(n);l>=0&&a.splice(l,1)}_hasPropertyEffect(o,s){let n=this[s];return!!(n&&n[o])}_hasReadOnlyEffect(o){return this._hasPropertyEffect(o,$.READ_ONLY)}_hasNotifyEffect(o){return this._hasPropertyEffect(o,$.NOTIFY)}_hasReflectEffect(o){return this._hasPropertyEffect(o,$.REFLECT)}_hasComputedEffect(o){return this._hasPropertyEffect(o,$.COMPUTE)}_setPendingPropertyOrPath(o,s,n,a){if(a||qe(Array.isArray(o)?o[0]:o)!==o){if(!a){let l=he(this,o);if(o=gs(this,o,s),!o||!super._shouldPropertyChange(o,s,l))return!1}if(this.__dataHasPaths=!0,this._setPendingProperty(o,s,n))return qh(this,o,s),!0}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[o])return this._setPendingProperty(o,s,n);this[o]=s}return!1}_setUnmanagedPropertyToNode(o,s,n){(n!==o[s]||typeof n=="object")&&(s==="className"&&(o=ie(o)),o[s]=n)}_setPendingProperty(o,s,n){let a=this.__dataHasPaths&&Ni(o),l=a?this.__dataTemp:this.__data;return this._shouldPropertyChange(o,s,l[o])?(this.__dataPending||(this.__dataPending={},this.__dataOld={}),o in this.__dataOld||(this.__dataOld[o]=this.__data[o]),a?this.__dataTemp[o]=s:this.__data[o]=s,this.__dataPending[o]=s,(a||this[$.NOTIFY]&&this[$.NOTIFY][o])&&(this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[o]=n),!0):!1}_setProperty(o,s){this._setPendingProperty(o,s,!0)&&this._invalidateProperties()}_invalidateProperties(){this.__dataReady&&this._flushProperties()}_enqueueClient(o){this.__dataPendingClients=this.__dataPendingClients||[],o!==this&&this.__dataPendingClients.push(o)}_flushClients(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)}__enableOrFlushClients(){let o=this.__dataPendingClients;if(o){this.__dataPendingClients=null;for(let s=0;s<o.length;s++){let n=o[s];n.__dataEnabled?n.__dataPending&&n._flushProperties():n._enableProperties()}}}_readyClients(){this.__enableOrFlushClients()}setProperties(o,s){for(let n in o)(s||!this[$.READ_ONLY]||!this[$.READ_ONLY][n])&&this._setPendingPropertyOrPath(n,o[n],!0);this._invalidateProperties()}ready(){this._flushProperties(),this.__dataClientsReady||this._flushClients(),this.__dataPending&&this._flushProperties()}_propertiesChanged(o,s,n){let a=this.__dataHasPaths;this.__dataHasPaths=!1;let l;Vh(this,s,n,a),l=this.__dataToNotify,this.__dataToNotify=null,this._propagatePropertyChanges(s,n,a),this._flushClients(),kt(this,this[$.REFLECT],s,n,a),kt(this,this[$.OBSERVE],s,n,a),l&&zh(this,l,s,n,a),this.__dataCounter==1&&(this.__dataTemp={})}_propagatePropertyChanges(o,s,n){this[$.PROPAGATE]&&kt(this,this[$.PROPAGATE],o,s,n),this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,o,s,n)}_runEffectsForTemplate(o,s,n,a){const l=(u,c)=>{kt(this,o.propertyEffects,u,n,c,o.nodeList);for(let h=o.firstChild;h;h=h.nextSibling)this._runEffectsForTemplate(h,u,n,c)};o.runEffects?o.runEffects(l,s,a):l(s,a)}linkPaths(o,s){o=Dt(o),s=Dt(s),this.__dataLinkedPaths=this.__dataLinkedPaths||{},this.__dataLinkedPaths[o]=s}unlinkPaths(o){o=Dt(o),this.__dataLinkedPaths&&delete this.__dataLinkedPaths[o]}notifySplices(o,s){let n={path:""},a=he(this,o,n);oa(this,a,n.path,s)}get(o,s){return he(s||this,o)}set(o,s,n){n?gs(n,o,s):(!this[$.READ_ONLY]||!this[$.READ_ONLY][o])&&this._setPendingPropertyOrPath(o,s,!0)&&this._invalidateProperties()}push(o,...s){let n={path:""},a=he(this,o,n),l=a.length,u=a.push(...s);return s.length&&At(this,a,n.path,l,s.length,[]),u}pop(o){let s={path:""},n=he(this,o,s),a=!!n.length,l=n.pop();return a&&At(this,n,s.path,n.length,0,[l]),l}splice(o,s,n,...a){let l={path:""},u=he(this,o,l);s<0?s=u.length-Math.floor(-s):s&&(s=Math.floor(s));let c;return arguments.length===2?c=u.splice(s):c=u.splice(s,n,...a),(a.length||c.length)&&At(this,u,l.path,s,a.length,c),c}shift(o){let s={path:""},n=he(this,o,s),a=!!n.length,l=n.shift();return a&&At(this,n,s.path,0,0,[l]),l}unshift(o,...s){let n={path:""},a=he(this,o,n),l=a.unshift(...s);return s.length&&At(this,a,n.path,0,s.length,[]),l}notifyPath(o,s){let n;if(arguments.length==1){let a={path:""};s=he(this,o,a),n=a.path}else Array.isArray(o)?n=Dt(o):n=o;this._setPendingPropertyOrPath(n,s,!0,!0)&&this._invalidateProperties()}_createReadOnlyProperty(o,s){this._addPropertyEffect(o,$.READ_ONLY),s&&(this["_set"+_d(o)]=function(n){this._setProperty(o,n)})}_createPropertyObserver(o,s,n){let a={property:o,method:s,dynamicFn:!!n};this._addPropertyEffect(o,$.OBSERVE,{fn:vs,info:a,trigger:{name:o}}),n&&this._addPropertyEffect(s,$.OBSERVE,{fn:vs,info:a,trigger:{name:s}})}_createMethodObserver(o,s){let n=ri(o);if(!n)throw new Error("Malformed observer expression '"+o+"'");ws(this,n,$.OBSERVE,$i,null,s)}_createNotifyingProperty(o){this._addPropertyEffect(o,$.NOTIFY,{fn:Rh,info:{eventName:Mr(o)+"-changed",property:o}})}_createReflectedProperty(o){let s=this.constructor.attributeNameForProperty(o);s[0]==="-"?console.warn("Property "+o+" cannot be reflected to attribute "+s+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(o,$.REFLECT,{fn:jh,info:{attrName:s}})}_createComputedProperty(o,s,n){let a=ri(s);if(!a)throw new Error("Malformed computed expression '"+s+"'");const l=ws(this,a,$.COMPUTE,ta,o,n);ei(this,Qn)[o]=l}_marshalArgs(o,s,n){const a=this.__data,l=[];for(let u=0,c=o.length;u<c;u++){let{name:h,structured:d,wildcard:p,value:f,literal:y}=o[u];if(!y)if(p){const P=Ft(h,s),D=Cs(a,n,P?s:h);f={path:P?s:h,value:D,base:P?he(a,h):D}}else f=d?Cs(a,n,h):a[h];if(Ii&&!this._overrideLegacyUndefined&&f===void 0&&o.length>1)return jt;l[u]=f}return l}static addPropertyEffect(o,s,n){this.prototype._addPropertyEffect(o,s,n)}static createPropertyObserver(o,s,n){this.prototype._createPropertyObserver(o,s,n)}static createMethodObserver(o,s){this.prototype._createMethodObserver(o,s)}static createNotifyingProperty(o){this.prototype._createNotifyingProperty(o)}static createReadOnlyProperty(o,s){this.prototype._createReadOnlyProperty(o,s)}static createReflectedProperty(o){this.prototype._createReflectedProperty(o)}static createComputedProperty(o,s,n){this.prototype._createComputedProperty(o,s,n)}static bindTemplate(o){return this.prototype._bindTemplate(o)}_bindTemplate(o,s){let n=this.constructor._parseTemplate(o),a=this.__preBoundTemplateInfo==n;if(!a)for(let l in n.propertyEffects)this._createPropertyAccessor(l);if(s)if(n=Object.create(n),n.wasPreBound=a,!this.__templateInfo)this.__templateInfo=n;else{const l=o._parentTemplateInfo||this.__templateInfo,u=l.lastChild;n.parent=l,l.lastChild=n,n.previousSibling=u,u?u.nextSibling=n:l.firstChild=n}else this.__preBoundTemplateInfo=n;return n}static _addTemplatePropertyEffect(o,s,n){let a=o.hostProps=o.hostProps||{};a[s]=!0;let l=o.propertyEffects=o.propertyEffects||{};(l[s]=l[s]||[]).push(n)}_stampTemplate(o,s){s=s||this._bindTemplate(o,!0),Ct.push(this);let n=super._stampTemplate(o,s);if(Ct.pop(),s.nodeList=n.nodeList,!s.wasPreBound){let a=s.childNodes=[];for(let l=n.firstChild;l;l=l.nextSibling)a.push(l)}return n.templateInfo=s,ed(this,s),this.__dataClientsReady&&(this._runEffectsForTemplate(s,this.__data,null,!1),this._flushClients()),n}_removeBoundDom(o){const s=o.templateInfo,{previousSibling:n,nextSibling:a,parent:l}=s;n?n.nextSibling=a:l&&(l.firstChild=a),a?a.previousSibling=n:l&&(l.lastChild=n),s.nextSibling=s.previousSibling=null;let u=s.childNodes;for(let c=0;c<u.length;c++){let h=u[c];ie(ie(h).parentNode).removeChild(h)}}static _parseTemplateNode(o,s,n){let a=r._parseTemplateNode.call(this,o,s,n);if(o.nodeType===Node.TEXT_NODE){let l=this._parseBindings(o.textContent,s);l&&(o.textContent=As(l)||" ",ti(this,s,n,"text","textContent",l),a=!0)}return a}static _parseTemplateNodeAttribute(o,s,n,a,l){let u=this._parseBindings(l,s);if(u){let c=a,h="property";Hh.test(a)?h="attribute":a[a.length-1]=="$"&&(a=a.slice(0,-1),h="attribute");let d=As(u);return d&&h=="attribute"&&(a=="class"&&o.hasAttribute("class")&&(d+=" "+o.getAttribute(a)),o.setAttribute(a,d)),h=="attribute"&&c=="disable-upgrade$"&&o.setAttribute(a,""),o.localName==="input"&&c==="value"&&o.setAttribute(c,""),o.removeAttribute(c),h==="property"&&(a=Gn(a)),ti(this,s,n,h,a,u,d),!0}else return r._parseTemplateNodeAttribute.call(this,o,s,n,a,l)}static _parseTemplateNestedTemplate(o,s,n){let a=r._parseTemplateNestedTemplate.call(this,o,s,n);const l=o.parentNode,u=n.templateInfo,c=l.localName==="dom-if",h=l.localName==="dom-repeat";hs&&(c||h)&&(l.removeChild(o),n=n.parentInfo,n.templateInfo=u,n.noted=!0,a=!1);let d=u.hostProps;if(ah&&c)d&&(s.hostProps=Object.assign(s.hostProps||{},d),hs||(n.parentInfo.noted=!0));else{let p="{";for(let f in d){let y=[{mode:p,source:f,dependencies:[f],hostProp:!0}];ti(this,s,n,"property","_host_"+f,y)}}return a}static _parseBindings(o,s){let n=[],a=0,l;for(;(l=Ss.exec(o))!==null;){l.index>a&&n.push({literal:o.slice(a,l.index)});let u=l[1][0],c=!!l[2],h=l[3].trim(),d=!1,p="",f=-1;u=="{"&&(f=h.indexOf("::"))>0&&(p=h.substring(f+2),h=h.substring(0,f),d=!0);let y=ri(h),P=[];if(y){let{args:D,methodName:M}=y;for(let ee=0;ee<D.length;ee++){let F=D[ee];F.literal||P.push(F)}let z=s.dynamicFns;(z&&z[M]||y.static)&&(P.push(M),y.dynamicFn=!0)}else P.push(h);n.push({source:h,mode:u,negate:c,customEvent:d,signature:y,dependencies:P,event:p}),a=Ss.lastIndex}if(a&&a<o.length){let u=o.substring(a);u&&n.push({literal:u})}return n.length?n:null}static _evaluateBinding(o,s,n,a,l,u){let c;return s.signature?c=$i(o,n,a,l,s.signature):n!=s.source?c=he(o,s.source):u&&Ni(n)?c=he(o,n):c=o.__data[n],s.negate&&(c=!c),c}}return e}),Ct=[];/**
|
|
696
696
|
@license
|
|
697
697
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
698
698
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -708,7 +708,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
708
708
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
709
709
|
Code distributed by Google as part of the polymer project is also
|
|
710
710
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
711
|
-
*/function
|
|
711
|
+
*/function gd(t){const r={};for(let e in t){const i=t[e];r[e]=typeof i=="function"?{type:i}:i}return r}const bd=J(t=>{const r=Kn(t);function e(s){const n=Object.getPrototypeOf(s);return n.prototype instanceof o?n:null}function i(s){if(!s.hasOwnProperty(JSCompiler_renameProperty("__ownProperties",s))){let n=null;if(s.hasOwnProperty(JSCompiler_renameProperty("properties",s))){const a=s.properties;a&&(n=gd(a))}s.__ownProperties=n}return s.__ownProperties}class o extends r{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 o});/**
|
|
712
712
|
* @fileoverview
|
|
713
713
|
* @suppress {checkPrototypalTypes}
|
|
714
714
|
* @license Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
@@ -718,7 +718,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
718
718
|
* be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
|
|
719
719
|
* Google as part of the polymer project is also subject to an additional IP
|
|
720
720
|
* rights grant found at http://polymer.github.io/PATENTS.txt
|
|
721
|
-
*/const
|
|
721
|
+
*/const yd="3.5.1",Ts=window.ShadyCSS&&window.ShadyCSS.cssBuild,vd=J(t=>{const r=bd(co(t));function e(l){if(!l.hasOwnProperty(JSCompiler_renameProperty("__propertyDefaults",l))){l.__propertyDefaults=null;let u=l._properties;for(let c in u){let h=u[c];"value"in h&&(l.__propertyDefaults=l.__propertyDefaults||{},l.__propertyDefaults[c]=h)}}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 o(l,u,c,h){c.computed&&(c.readOnly=!0),c.computed&&(l._hasReadOnlyEffect(u)?console.warn(`Cannot redefine computed property '${u}'.`):l._createComputedProperty(u,c.computed,h)),c.readOnly&&!l._hasReadOnlyEffect(u)?l._createReadOnlyProperty(u,!c.computed):c.readOnly===!1&&l._hasReadOnlyEffect(u)&&console.warn(`Cannot make readOnly property '${u}' non-readOnly.`),c.reflectToAttribute&&!l._hasReflectEffect(u)?l._createReflectedProperty(u):c.reflectToAttribute===!1&&l._hasReflectEffect(u)&&console.warn(`Cannot make reflected property '${u}' non-reflected.`),c.notify&&!l._hasNotifyEffect(u)?l._createNotifyingProperty(u):c.notify===!1&&l._hasNotifyEffect(u)&&console.warn(`Cannot make notify property '${u}' non-notify.`),c.observer&&l._createPropertyObserver(u,c.observer,h[c.observer]),l._addPropertyToAttributeMap(u)}function s(l,u,c,h){if(!Ts){const d=u.content.querySelectorAll("style"),p=Un(u),f=mh(c),y=u.content.firstElementChild;for(let D=0;D<f.length;D++){let M=f[D];M.textContent=l._processStyleText(M.textContent,h),u.content.insertBefore(M,y)}let P=0;for(let D=0;D<p.length;D++){let M=p[D],z=d[P];z!==M?(M=M.cloneNode(!0),z.parentNode.insertBefore(M,z)):P++,M.textContent=l._processStyleText(M.textContent,h)}}if(window.ShadyCSS&&window.ShadyCSS.prepareTemplate(u,c),lh&&Ts&&rh){const d=u.content.querySelectorAll("style");if(d){let p="";Array.from(d).forEach(f=>{p+=f.textContent,f.parentNode.removeChild(f)}),l._styleSheet=new CSSStyleSheet,l._styleSheet.replaceSync(p)}}}function n(l){let u=null;if(l&&(!vr||oh)&&(u=zt.import(l,"template"),vr&&!u))throw new Error(`strictTemplatePolicy: expecting dom-module or null template for ${l}`);return u}class a extends r{static get polymerElementVersion(){return yd}static _finalizeClass(){r._finalizeClass.call(this);const u=i(this);u&&this.createObservers(u,this._properties),this._prepareTemplate()}static _prepareTemplate(){let u=this.template;u&&(typeof u=="string"?(console.error("template getter must return HTMLTemplateElement"),u=null):Bn||(u=u.cloneNode(!0))),this.prototype._template=u}static createProperties(u){for(let c in u)o(this.prototype,c,u[c],u)}static createObservers(u,c){const h=this.prototype;for(let d=0;d<u.length;d++)h._createMethodObserver(u[d],c)}static get template(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_template",this))){let u=this.prototype.hasOwnProperty(JSCompiler_renameProperty("_template",this.prototype))?this.prototype._template:void 0;typeof u=="function"&&(u=u()),this._template=u!==void 0?u:this.hasOwnProperty(JSCompiler_renameProperty("is",this))&&n(this.is)||Object.getPrototypeOf(this.prototype).constructor.template}return this._template}static set template(u){this._template=u}static get importPath(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_importPath",this))){const u=this.importMeta;if(u)this._importPath=ao(u.url);else{const c=zt.import(this.is);this._importPath=c&&c.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=ih,this.importPath=this.constructor.importPath;let u=e(this.constructor);if(u)for(let c in u){let h=u[c];if(this._canApplyPropertyDefault(c)){let d=typeof h.value=="function"?h.value.call(this):h.value;this._hasAccessor(c)?this._setPendingProperty(c,d,!0):this[c]=d}}}_canApplyPropertyDefault(u){return!this.hasOwnProperty(u)}static _processStyleText(u,c){return no(u,c)}static _finalizeTemplate(u){const c=this.prototype._template;if(c&&!c.__polymerFinalized){c.__polymerFinalized=!0;const h=this.importPath,d=h?Mt(h):"";s(this,c,u,d),this.prototype._bindTemplate(c)}}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(u){const c=ie(this);if(c.attachShadow)return u?(c.shadowRoot||(c.attachShadow({mode:"open",shadyUpgradeFragment:u}),c.shadowRoot.appendChild(u),this.constructor._styleSheet&&(c.shadowRoot.adoptedStyleSheets=[this.constructor._styleSheet])),sh&&window.ShadyDOM&&window.ShadyDOM.flushInitial(c.shadowRoot),c.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(u){window.ShadyCSS&&window.ShadyCSS.styleSubtree(this,u)}resolveUrl(u,c){return!c&&this.importPath&&(c=Mt(this.importPath)),Mt(u,c)}static _parseTemplateContent(u,c,h){return c.dynamicFns=c.dynamicFns||this._properties,r._parseTemplateContent.call(this,u,c,h)}static _addTemplatePropertyEffect(u,c,h){return zn&&!(c in this._properties)&&!(h.info.part.signature&&h.info.part.signature.static)&&!h.info.part.hostProp&&!u.nestedTemplate&&console.warn(`Property '${c}' used in template but not declared in 'properties'; attribute will not be observed.`),r._addTemplatePropertyEffect.call(this,u,c,h)}}return a});/**
|
|
722
722
|
@license
|
|
723
723
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
724
724
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -726,7 +726,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
726
726
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
727
727
|
Code distributed by Google as part of the polymer project is also
|
|
728
728
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
729
|
-
*/const Ps=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:t=>t});class sa{constructor(r,e){aa(r,e);const
|
|
729
|
+
*/const Ps=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:t=>t});class sa{constructor(r,e){aa(r,e);const i=e.reduce((o,s,n)=>o+na(s)+r[n+1],r[0]);this.value=i.toString()}toString(){return this.value}}function na(t){if(t instanceof sa)return t.value;throw new Error(`non-literal value passed to Polymer's htmlLiteral function: ${t}`)}function xd(t){if(t instanceof HTMLTemplateElement)return t.innerHTML;if(t instanceof sa)return na(t);throw new Error(`non-template value passed to Polymer's html function: ${t}`)}const Xe=function(r,...e){aa(r,e);const i=document.createElement("template");let o=e.reduce((s,n,a)=>s+xd(n)+r[a+1],r[0]);return Ps&&(o=Ps.createHTML(o)),i.innerHTML=o,i},aa=(t,r)=>{if(!Array.isArray(t)||!Array.isArray(t.raw)||r.length!==t.length-1)throw new TypeError("Invalid call to the html template tag")};/**
|
|
730
730
|
@license
|
|
731
731
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
732
732
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -734,11 +734,11 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
734
734
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
735
735
|
Code distributed by Google as part of the polymer project is also
|
|
736
736
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
737
|
-
*/const He=
|
|
737
|
+
*/const He=vd(HTMLElement);/**
|
|
738
738
|
* @license
|
|
739
739
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
740
740
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
741
|
-
*/const Ae=[];function
|
|
741
|
+
*/const Ae=[];function Hi(t,r,e=t.getAttribute("dir")){r?t.setAttribute("dir",r):e!=null&&t.removeAttribute("dir")}function Bi(){return document.documentElement.getAttribute("dir")}function wd(){const t=Bi();Ae.forEach(r=>{Hi(r,t)})}const Ed=new MutationObserver(wd);Ed.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]});const Ir=t=>class extends t{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(),Hi(this,Bi(),null))}attributeChangedCallback(e,i,o){if(super.attributeChangedCallback(e,i,o),e!=="dir")return;const s=Bi(),n=o===s&&Ae.indexOf(this)===-1,a=!o&&i&&Ae.indexOf(this)===-1;n||a?(this.__subscribe(),Hi(this,s,o)):o!==s&&i===s&&this.__unsubscribe()}disconnectedCallback(){super.disconnectedCallback(),this.__restoreSubscription=Ae.includes(this),this.__unsubscribe()}_valueToNodeAttribute(e,i,o){o==="dir"&&i===""&&!e.hasAttribute("dir")||super._valueToNodeAttribute(e,i,o)}_attributeToProperty(e,i,o){e==="dir"&&!i?this.dir="":super._attributeToProperty(e,i,o)}__subscribe(){Ae.includes(this)||Ae.push(this)}__unsubscribe(){Ae.includes(this)&&Ae.splice(Ae.indexOf(this),1)}};/**
|
|
742
742
|
* @license
|
|
743
743
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
744
744
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
@@ -812,15 +812,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
812
812
|
<slot name="prefix"></slot>
|
|
813
813
|
<slot></slot>
|
|
814
814
|
<slot name="suffix"></slot>
|
|
815
|
-
`}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",r=>{r.target===this&&r.preventDefault()}),this.addEventListener("click",r=>{r.target===this&&this.shadowRoot.querySelector("slot:not([name])").assignedNodes({flatten:!0}).forEach(e=>e.focus&&e.focus())})}}
|
|
815
|
+
`}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",r=>{r.target===this&&r.preventDefault()}),this.addEventListener("click",r=>{r.target===this&&this.shadowRoot.querySelector("slot:not([name])").assignedNodes({flatten:!0}).forEach(e=>e.focus&&e.focus())})}}ge(Sd);/**
|
|
816
816
|
* @license
|
|
817
817
|
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
818
818
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
819
|
-
*/let Ad=class extends HTMLElement{static get is(){return"vaadin-lumo-styles"}static get version(){return"24.2.5"}};
|
|
819
|
+
*/let Ad=class extends HTMLElement{static get is(){return"vaadin-lumo-styles"}static get version(){return"24.2.5"}};ge(Ad);const vt=(t,...r)=>{so(`lumo-${t}`,r)};/**
|
|
820
820
|
* @license
|
|
821
821
|
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
822
822
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
823
|
-
*/const Cd=
|
|
823
|
+
*/const Cd=A`
|
|
824
824
|
:host {
|
|
825
825
|
--lumo-size-xs: 1.625rem;
|
|
826
826
|
--lumo-size-s: 1.875rem;
|
|
@@ -835,11 +835,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
835
835
|
/* For backwards compatibility */
|
|
836
836
|
--lumo-icon-size: var(--lumo-icon-size-m);
|
|
837
837
|
}
|
|
838
|
-
`;
|
|
838
|
+
`;vt("sizing-props",Cd);/**
|
|
839
839
|
* @license
|
|
840
840
|
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
841
841
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
842
|
-
*/const Td=
|
|
842
|
+
*/const Td=A`
|
|
843
843
|
:host {
|
|
844
844
|
/* Square */
|
|
845
845
|
--lumo-space-xs: 0.25rem;
|
|
@@ -862,11 +862,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
862
862
|
--lumo-space-tall-l: var(--lumo-space-l) calc(var(--lumo-space-l) / 2);
|
|
863
863
|
--lumo-space-tall-xl: var(--lumo-space-xl) calc(var(--lumo-space-xl) / 2);
|
|
864
864
|
}
|
|
865
|
-
`;
|
|
865
|
+
`;vt("spacing-props",Td);/**
|
|
866
866
|
* @license
|
|
867
867
|
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
868
868
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
869
|
-
*/const Pd=
|
|
869
|
+
*/const Pd=A`
|
|
870
870
|
:host {
|
|
871
871
|
/* Border radius */
|
|
872
872
|
--lumo-border-radius-s: 0.25em; /* Checkbox, badge, date-picker year indicator, etc */
|
|
@@ -883,17 +883,17 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
883
883
|
/* Clickable element cursor */
|
|
884
884
|
--lumo-clickable-cursor: default;
|
|
885
885
|
}
|
|
886
|
-
`;
|
|
886
|
+
`;A`
|
|
887
887
|
html {
|
|
888
888
|
--vaadin-checkbox-size: calc(var(--lumo-size-m) / 2);
|
|
889
889
|
--vaadin-radio-button-size: calc(var(--lumo-size-m) / 2);
|
|
890
890
|
--vaadin-input-field-border-radius: var(--lumo-border-radius-m);
|
|
891
891
|
}
|
|
892
|
-
`;
|
|
892
|
+
`;vt("style-props",Pd);/**
|
|
893
893
|
* @license
|
|
894
894
|
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
895
895
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
896
|
-
*/const Dd=
|
|
896
|
+
*/const Dd=A`
|
|
897
897
|
:host {
|
|
898
898
|
/* Base (background) */
|
|
899
899
|
--lumo-base-color: #fff;
|
|
@@ -978,7 +978,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
978
978
|
--lumo-disabled-text-color: GrayText;
|
|
979
979
|
}
|
|
980
980
|
}
|
|
981
|
-
`;
|
|
981
|
+
`;vt("color-props",Dd);const kd=A`
|
|
982
982
|
[theme~='dark'] {
|
|
983
983
|
/* Base (background) */
|
|
984
984
|
--lumo-base-color: hsl(214, 35%, 21%);
|
|
@@ -1097,7 +1097,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
1097
1097
|
* @license
|
|
1098
1098
|
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
1099
1099
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1100
|
-
*/const Od=
|
|
1100
|
+
*/const Od=A`
|
|
1101
1101
|
:host {
|
|
1102
1102
|
/* prettier-ignore */
|
|
1103
1103
|
--lumo-font-family: -apple-system, BlinkMacSystemFont, 'Roboto', 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
|
|
@@ -1117,7 +1117,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
1117
1117
|
--lumo-line-height-s: 1.375;
|
|
1118
1118
|
--lumo-line-height-m: 1.625;
|
|
1119
1119
|
}
|
|
1120
|
-
`,Md=
|
|
1120
|
+
`,Md=A`
|
|
1121
1121
|
body,
|
|
1122
1122
|
:host {
|
|
1123
1123
|
font-family: var(--lumo-font-family);
|
|
@@ -1209,11 +1209,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
1209
1209
|
border-left: none;
|
|
1210
1210
|
border-right: 2px solid var(--lumo-contrast-30pct);
|
|
1211
1211
|
}
|
|
1212
|
-
`;Y("",Md,{moduleId:"lumo-typography"});
|
|
1212
|
+
`;Y("",Md,{moduleId:"lumo-typography"});vt("typography-props",Od);/**
|
|
1213
1213
|
* @license
|
|
1214
1214
|
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
1215
1215
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1216
|
-
*/const la=
|
|
1216
|
+
*/const la=A`
|
|
1217
1217
|
:host {
|
|
1218
1218
|
top: var(--lumo-space-m);
|
|
1219
1219
|
right: var(--lumo-space-m);
|
|
@@ -1280,7 +1280,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
1280
1280
|
* @license
|
|
1281
1281
|
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
1282
1282
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1283
|
-
*/const ua=
|
|
1283
|
+
*/const ua=A`
|
|
1284
1284
|
:host([opening]),
|
|
1285
1285
|
:host([closing]) {
|
|
1286
1286
|
animation: 0.14s lumo-overlay-dummy-animation;
|
|
@@ -1310,7 +1310,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
1310
1310
|
opacity: 0;
|
|
1311
1311
|
}
|
|
1312
1312
|
}
|
|
1313
|
-
`;Y("",ua,{moduleId:"lumo-menu-overlay-core"});const Id=
|
|
1313
|
+
`;Y("",ua,{moduleId:"lumo-menu-overlay-core"});const Id=A`
|
|
1314
1314
|
/* Small viewport (bottom sheet) styles */
|
|
1315
1315
|
/* Use direct media queries instead of the state attributes ([phone] and [fullscreen]) provided by the elements */
|
|
1316
1316
|
@media (max-width: 420px), (max-height: 420px) {
|
|
@@ -1372,7 +1372,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
1372
1372
|
transform: translateY(150%);
|
|
1373
1373
|
}
|
|
1374
1374
|
}
|
|
1375
|
-
`,ca=[la,ua,Id];Y("",ca,{moduleId:"lumo-menu-overlay"});const Nd=
|
|
1375
|
+
`,ca=[la,ua,Id];Y("",ca,{moduleId:"lumo-menu-overlay"});const Nd=A`
|
|
1376
1376
|
[part='overlay'] {
|
|
1377
1377
|
/*
|
|
1378
1378
|
Width:
|
|
@@ -1424,11 +1424,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
1424
1424
|
* @license
|
|
1425
1425
|
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
1426
1426
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1427
|
-
*/class Ld extends HTMLElement{static get is(){return"vaadin-lumo-styles"}static get version(){return"24.2.9"}}
|
|
1427
|
+
*/class Ld extends HTMLElement{static get is(){return"vaadin-lumo-styles"}static get version(){return"24.2.9"}}ge(Ld);const Xt=(t,...r)=>{so(`lumo-${t}`,r)};/**
|
|
1428
1428
|
* @license
|
|
1429
1429
|
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
1430
1430
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1431
|
-
*/const $d=
|
|
1431
|
+
*/const $d=A`
|
|
1432
1432
|
:host {
|
|
1433
1433
|
/* Base (background) */
|
|
1434
1434
|
--lumo-base-color: #fff;
|
|
@@ -1513,7 +1513,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
1513
1513
|
--lumo-disabled-text-color: GrayText;
|
|
1514
1514
|
}
|
|
1515
1515
|
}
|
|
1516
|
-
`;Xt("color-props",$d);const Hd=
|
|
1516
|
+
`;Xt("color-props",$d);const Hd=A`
|
|
1517
1517
|
[theme~='dark'] {
|
|
1518
1518
|
/* Base (background) */
|
|
1519
1519
|
--lumo-base-color: hsl(214, 35%, 21%);
|
|
@@ -1632,7 +1632,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
1632
1632
|
* @license
|
|
1633
1633
|
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
1634
1634
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1635
|
-
*/const Bd=
|
|
1635
|
+
*/const Bd=A`
|
|
1636
1636
|
:host {
|
|
1637
1637
|
--lumo-size-xs: 1.625rem;
|
|
1638
1638
|
--lumo-size-s: 1.875rem;
|
|
@@ -1651,7 +1651,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
1651
1651
|
* @license
|
|
1652
1652
|
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
1653
1653
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1654
|
-
*/const zd=
|
|
1654
|
+
*/const zd=A`
|
|
1655
1655
|
:host {
|
|
1656
1656
|
/* Square */
|
|
1657
1657
|
--lumo-space-xs: 0.25rem;
|
|
@@ -1678,7 +1678,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
1678
1678
|
* @license
|
|
1679
1679
|
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
1680
1680
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1681
|
-
*/const Fd=
|
|
1681
|
+
*/const Fd=A`
|
|
1682
1682
|
:host {
|
|
1683
1683
|
/* Border radius */
|
|
1684
1684
|
--lumo-border-radius-s: 0.25em; /* Checkbox, badge, date-picker year indicator, etc */
|
|
@@ -1695,7 +1695,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
1695
1695
|
/* Clickable element cursor */
|
|
1696
1696
|
--lumo-clickable-cursor: default;
|
|
1697
1697
|
}
|
|
1698
|
-
`;
|
|
1698
|
+
`;A`
|
|
1699
1699
|
html {
|
|
1700
1700
|
--vaadin-checkbox-size: calc(var(--lumo-size-m) / 2);
|
|
1701
1701
|
--vaadin-radio-button-size: calc(var(--lumo-size-m) / 2);
|
|
@@ -1705,7 +1705,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
1705
1705
|
* @license
|
|
1706
1706
|
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
1707
1707
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1708
|
-
*/const Rd=
|
|
1708
|
+
*/const Rd=A`
|
|
1709
1709
|
:host {
|
|
1710
1710
|
/* prettier-ignore */
|
|
1711
1711
|
--lumo-font-family: -apple-system, BlinkMacSystemFont, 'Roboto', 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
|
|
@@ -1725,7 +1725,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
1725
1725
|
--lumo-line-height-s: 1.375;
|
|
1726
1726
|
--lumo-line-height-m: 1.625;
|
|
1727
1727
|
}
|
|
1728
|
-
`,Ud=
|
|
1728
|
+
`,Ud=A`
|
|
1729
1729
|
body,
|
|
1730
1730
|
:host {
|
|
1731
1731
|
font-family: var(--lumo-font-family);
|
|
@@ -1817,7 +1817,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
1817
1817
|
border-left: none;
|
|
1818
1818
|
border-right: 2px solid var(--lumo-contrast-30pct);
|
|
1819
1819
|
}
|
|
1820
|
-
`;Y("",Ud,{moduleId:"lumo-typography"});Xt("typography-props",Rd);const jd=
|
|
1820
|
+
`;Y("",Ud,{moduleId:"lumo-typography"});Xt("typography-props",Rd);const jd=A`
|
|
1821
1821
|
:host {
|
|
1822
1822
|
/* Sizing */
|
|
1823
1823
|
--lumo-button-size: var(--lumo-size-m);
|
|
@@ -2070,7 +2070,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
2070
2070
|
* @license
|
|
2071
2071
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
2072
2072
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2073
|
-
*/const xt=J(t=>typeof t.prototype.addController=="function"?t:class extends t{constructor(){super(),this.__controllers=new Set}connectedCallback(){super.connectedCallback(),this.__controllers.forEach(e=>{e.hostConnected&&e.hostConnected()})}disconnectedCallback(){super.disconnectedCallback(),this.__controllers.forEach(e=>{e.hostDisconnected&&e.hostDisconnected()})}addController(e){this.__controllers.add(e),this.$!==void 0&&this.isConnected&&e.hostConnected&&e.hostConnected()}removeController(e){this.__controllers.delete(e)}}),Vd=/\/\*[\*!]\s+vaadin-dev-mode:start([\s\S]*)vaadin-dev-mode:end\s+\*\*\//i,hr=window.Vaadin&&window.Vaadin.Flow&&window.Vaadin.Flow.clients;function Yd(){function t(){return!0}return ha(t)}function Gd(){try{return Wd()?!0:qd()?hr?!Xd():!Yd():!1}catch(t){return!1}}function Wd(){return localStorage.getItem("vaadin.developmentmode.force")}function qd(){return["localhost","127.0.0.1"].indexOf(window.location.hostname)>=0}function Xd(){return!!(hr&&Object.keys(hr).map(r=>hr[r]).filter(r=>r.productionMode).length>0)}function ha(t,r){if(typeof t!="function")return;const e=Vd.exec(t.toString());if(e)try{t=new Function(e[1])}catch(
|
|
2073
|
+
*/const xt=J(t=>typeof t.prototype.addController=="function"?t:class extends t{constructor(){super(),this.__controllers=new Set}connectedCallback(){super.connectedCallback(),this.__controllers.forEach(e=>{e.hostConnected&&e.hostConnected()})}disconnectedCallback(){super.disconnectedCallback(),this.__controllers.forEach(e=>{e.hostDisconnected&&e.hostDisconnected()})}addController(e){this.__controllers.add(e),this.$!==void 0&&this.isConnected&&e.hostConnected&&e.hostConnected()}removeController(e){this.__controllers.delete(e)}}),Vd=/\/\*[\*!]\s+vaadin-dev-mode:start([\s\S]*)vaadin-dev-mode:end\s+\*\*\//i,hr=window.Vaadin&&window.Vaadin.Flow&&window.Vaadin.Flow.clients;function Yd(){function t(){return!0}return ha(t)}function Gd(){try{return Wd()?!0:qd()?hr?!Xd():!Yd():!1}catch(t){return!1}}function Wd(){return localStorage.getItem("vaadin.developmentmode.force")}function qd(){return["localhost","127.0.0.1"].indexOf(window.location.hostname)>=0}function Xd(){return!!(hr&&Object.keys(hr).map(r=>hr[r]).filter(r=>r.productionMode).length>0)}function ha(t,r){if(typeof t!="function")return;const e=Vd.exec(t.toString());if(e)try{t=new Function(e[1])}catch(i){console.log("vaadin-development-mode-detector: uncommentAndRun() failed",i)}return t(r)}window.Vaadin=window.Vaadin||{};const Ds=function(t,r){if(window.Vaadin.developmentMode)return ha(t,r)};window.Vaadin.developmentMode===void 0&&(window.Vaadin.developmentMode=Gd());function Kd(){}const Jd=function(){if(typeof Ds=="function")return Ds(Kd)};/**
|
|
2074
2074
|
* @license
|
|
2075
2075
|
* Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
2076
2076
|
* This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -2078,7 +2078,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
2078
2078
|
* The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
2079
2079
|
* Code distributed by Google as part of the polymer project is also
|
|
2080
2080
|
* subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
2081
|
-
*/let ks=0,da=0;const at=[];let
|
|
2081
|
+
*/let ks=0,da=0;const at=[];let zi=!1;function Zd(){zi=!1;const t=at.length;for(let r=0;r<t;r++){const e=at[r];if(e)try{e()}catch(i){setTimeout(()=>{throw i})}}at.splice(0,t),da+=t}const wr={after(t){return{run(r){return window.setTimeout(r,t)},cancel(r){window.clearTimeout(r)}}},run(t,r){return window.setTimeout(t,r)},cancel(t){window.clearTimeout(t)}},Qd={run(t){return window.requestIdleCallback?window.requestIdleCallback(t):window.setTimeout(t,16)},cancel(t){window.cancelIdleCallback?window.cancelIdleCallback(t):window.clearTimeout(t)}},ep={run(t){zi||(zi=!0,queueMicrotask(()=>Zd())),at.push(t);const r=ks;return ks+=1,r},cancel(t){const r=t-da;if(r>=0){if(!at[r])throw new Error(`invalid async handle: ${t}`);at[r]=null}}};/**
|
|
2082
2082
|
@license
|
|
2083
2083
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
2084
2084
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -2086,19 +2086,19 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
2086
2086
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
2087
2087
|
Code distributed by Google as part of the polymer project is also
|
|
2088
2088
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
2089
|
-
*/const
|
|
2089
|
+
*/const Fi=new Set;let Vt=class Ri{static debounce(r,e,i){return r instanceof Ri?r._cancelAsync():r=new Ri,r.setConfig(e,i),r}constructor(){this._asyncModule=null,this._callback=null,this._timer=null}setConfig(r,e){this._asyncModule=r,this._callback=e,this._timer=this._asyncModule.run(()=>{this._timer=null,Fi.delete(this),this._callback()})}cancel(){this.isActive()&&(this._cancelAsync(),Fi.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 tp(t){Fi.add(t)}/**
|
|
2090
2090
|
* @license
|
|
2091
2091
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
2092
2092
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2093
|
-
*/window.Vaadin||(window.Vaadin={});window.Vaadin.registrations||(window.Vaadin.registrations=[]);window.Vaadin.developmentModeCallback||(window.Vaadin.developmentModeCallback={});window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]=function(){Jd()};let
|
|
2093
|
+
*/window.Vaadin||(window.Vaadin={});window.Vaadin.registrations||(window.Vaadin.registrations=[]);window.Vaadin.developmentModeCallback||(window.Vaadin.developmentModeCallback={});window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]=function(){Jd()};let ii;const Os=new Set,pa=t=>class extends Ir(t){static get version(){return"24.2.9"}static finalize(){super.finalize();const{is:e}=this;e&&!Os.has(e)&&(window.Vaadin.registrations.push(this),Os.add(e),window.Vaadin.developmentModeCallback&&(ii=Vt.debounce(ii,Qd,()=>{window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]()}),tp(ii)))}constructor(){super(),document.doctype===null&&console.warn('Vaadin components require the "standards mode" declaration. Please add <!DOCTYPE html> to the HTML document.')}};/**
|
|
2094
2094
|
* @license
|
|
2095
2095
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
2096
2096
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2097
|
-
*/function rp(t){const r=[];for(;t;){if(t.nodeType===Node.DOCUMENT_NODE){r.push(t);break}if(t.nodeType===Node.DOCUMENT_FRAGMENT_NODE){r.push(t),t=t.host;continue}if(t.assignedSlot){t=t.assignedSlot;continue}t=t.parentNode}return r}function
|
|
2097
|
+
*/function rp(t){const r=[];for(;t;){if(t.nodeType===Node.DOCUMENT_NODE){r.push(t);break}if(t.nodeType===Node.DOCUMENT_FRAGMENT_NODE){r.push(t),t=t.host;continue}if(t.assignedSlot){t=t.assignedSlot;continue}t=t.parentNode}return r}function ho(t){return t?new Set(t.split(" ")):new Set}function Nr(t){return t?[...t].join(" "):""}function fa(t,r,e){const i=ho(t.getAttribute(r));i.add(e),t.setAttribute(r,Nr(i))}function ip(t,r,e){const i=ho(t.getAttribute(r));if(i.delete(e),i.size===0){t.removeAttribute(r);return}t.setAttribute(r,Nr(i))}function op(t){return t.nodeType===Node.TEXT_NODE&&t.textContent.trim()===""}/**
|
|
2098
2098
|
* @license
|
|
2099
2099
|
* Copyright (c) 2023 Vaadin Ltd.
|
|
2100
2100
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2101
|
-
*/class sp{constructor(r,e){this.slot=r,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 r=this.slot.assignedNodes({flatten:!0});let e=[];const
|
|
2101
|
+
*/class sp{constructor(r,e){this.slot=r,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 r=this.slot.assignedNodes({flatten:!0});let e=[];const i=[],o=[];r.length&&(e=r.filter(s=>!this._storedNodes.includes(s))),this._storedNodes.length&&this._storedNodes.forEach((s,n)=>{const a=r.indexOf(s);a===-1?i.push(s):a!==n&&o.push(s)}),(e.length||i.length||o.length)&&this.callback({addedNodes:e,movedNodes:o,removedNodes:i}),this._storedNodes=r}}/**
|
|
2102
2102
|
* @license
|
|
2103
2103
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
2104
2104
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
@@ -2106,7 +2106,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
2106
2106
|
* @license
|
|
2107
2107
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
2108
2108
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2109
|
-
*/class Ue extends EventTarget{static generateId(r,e){return`${e||"default"}-${r.localName}-${ma()}`}constructor(r,e,o
|
|
2109
|
+
*/class Ue extends EventTarget{static generateId(r,e){return`${e||"default"}-${r.localName}-${ma()}`}constructor(r,e,i,o={}){super();const{initializer:s,multiple:n,observe:a,useUniqueId:l}=o;this.host=r,this.slotName=e,this.tagName=i,this.observe=typeof a=="boolean"?a:!0,this.multiple=typeof n=="boolean"?n:!1,this.slotInitializer=s,n&&(this.nodes=[]),l&&(this.defaultId=this.constructor.generateId(r,e))}hostConnected(){this.initialized||(this.multiple?this.initMultiple():this.initSingle(),this.observe&&this.observeSlot(),this.initialized=!0)}initSingle(){let r=this.getSlotChild();r?(this.node=r,this.initAddedNode(r)):(r=this.attachDefaultNode(),this.initNode(r))}initMultiple(){const r=this.getSlotChildren();if(r.length===0){const e=this.attachDefaultNode();e&&(this.nodes=[e],this.initNode(e))}else this.nodes=r,r.forEach(e=>{this.initAddedNode(e)})}attachDefaultNode(){const{host:r,slotName:e,tagName:i}=this;let o=this.defaultNode;return!o&&i&&(o=document.createElement(i),o instanceof Element&&(e!==""&&o.setAttribute("slot",e),this.node=o,this.defaultNode=o)),o&&r.appendChild(o),o}getSlotChildren(){const{slotName:r}=this;return Array.from(this.host.childNodes).filter(e=>e.nodeType===Node.ELEMENT_NODE&&e.slot===r||e.nodeType===Node.TEXT_NODE&&e.textContent.trim()&&r==="")}getSlotChild(){return this.getSlotChildren()[0]}initNode(r){const{slotInitializer:e}=this;e&&e(r,this.host)}initCustomNode(r){}teardownNode(r){}initAddedNode(r){r!==this.defaultNode&&(this.initCustomNode(r),this.initNode(r))}observeSlot(){const{slotName:r}=this,e=r===""?"slot:not([name])":`slot[name=${r}]`,i=this.host.shadowRoot.querySelector(e);this.__slotObserver=new sp(i,({addedNodes:o,removedNodes:s})=>{const n=this.multiple?this.nodes:[this.node],a=o.filter(l=>!op(l)&&!n.includes(l));s.length&&(this.nodes=n.filter(l=>!s.includes(l)),s.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)))})}}/**
|
|
2110
2110
|
* @license
|
|
2111
2111
|
* Copyright (c) 2022 - 2023 Vaadin Ltd.
|
|
2112
2112
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
@@ -2114,7 +2114,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
2114
2114
|
* @license
|
|
2115
2115
|
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
2116
2116
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2117
|
-
*/const ap=
|
|
2117
|
+
*/const ap=A`
|
|
2118
2118
|
:host {
|
|
2119
2119
|
display: inline-block;
|
|
2120
2120
|
position: relative;
|
|
@@ -2195,7 +2195,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
2195
2195
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
2196
2196
|
Code distributed by Google as part of the polymer project is also
|
|
2197
2197
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
2198
|
-
*/const up=!1,cp=t=>t,
|
|
2198
|
+
*/const up=!1,cp=t=>t,po=typeof document.head.style.touchAction=="string",Ui="__polymerGestures",oi="__polymerGesturesHandled",ji="__polymerGesturesTouchAction",Ms=25,Is=5,hp=2,dp=["mousedown","mousemove","mouseup","click"],pp=[0,1,4,2],fp=function(){try{return new MouseEvent("test",{buttons:1}).buttons===1}catch(t){return!1}}();function fo(t){return dp.indexOf(t)>-1}let ga=!1;(function(){try{const t=Object.defineProperty({},"passive",{get(){ga=!0}});window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch(t){}})();function mp(t){if(!(fo(t)||t==="touchend")&&po&&ga&&up)return{passive:!0}}const _p=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/u),gp={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0};function Ve(t){const r=t.type;if(!fo(r))return!1;if(r==="mousemove"){let i=t.buttons===void 0?1:t.buttons;return t instanceof window.MouseEvent&&!fp&&(i=pp[t.which]||0),!!(i&1)}return(t.button===void 0?0:t.button)===0}function bp(t){if(t.type==="click"){if(t.detail===0)return!0;const r=Le(t);if(!r.nodeType||r.nodeType!==Node.ELEMENT_NODE)return!0;const e=r.getBoundingClientRect(),i=t.pageX,o=t.pageY;return!(i>=e.left&&i<=e.right&&o>=e.top&&o<=e.bottom)}return!1}const Te={mouse:{target:null,mouseIgnoreJob:null},touch:{x:0,y:0,id:-1,scrollDecided:!1}};function yp(t){let r="auto";const e=ya(t);for(let i=0,o;i<e.length;i++)if(o=e[i],o[ji]){r=o[ji];break}return r}function ba(t,r,e){t.movefn=r,t.upfn=e,document.addEventListener("mousemove",r),document.addEventListener("mouseup",e)}function lt(t){document.removeEventListener("mousemove",t.movefn),document.removeEventListener("mouseup",t.upfn),t.movefn=null,t.upfn=null}const ya=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:t=>t.composedPath&&t.composedPath()||[],mo={},je=[];function vp(t,r){let e=document.elementFromPoint(t,r),i=e;for(;i&&i.shadowRoot&&!window.ShadyDOM;){const o=i;if(i=i.shadowRoot.elementFromPoint(t,r),o===i)break;i&&(e=i)}return e}function Le(t){const r=ya(t);return r.length>0?r[0]:t.target}function xp(t){const r=t.type,i=t.currentTarget[Ui];if(!i)return;const o=i[r];if(!o)return;if(!t[oi]&&(t[oi]={},r.startsWith("touch"))){const n=t.changedTouches[0];if(r==="touchstart"&&t.touches.length===1&&(Te.touch.id=n.identifier),Te.touch.id!==n.identifier)return;po||(r==="touchstart"||r==="touchmove")&&wp(t)}const s=t[oi];if(!s.skip){for(let n=0,a;n<je.length;n++)a=je[n],o[a.name]&&!s[a.name]&&a.flow&&a.flow.start.indexOf(t.type)>-1&&a.reset&&a.reset();for(let n=0,a;n<je.length;n++)a=je[n],o[a.name]&&!s[a.name]&&(s[a.name]=!0,a[r](t))}}function wp(t){const r=t.changedTouches[0],e=t.type;if(e==="touchstart")Te.touch.x=r.clientX,Te.touch.y=r.clientY,Te.touch.scrollDecided=!1;else if(e==="touchmove"){if(Te.touch.scrollDecided)return;Te.touch.scrollDecided=!0;const i=yp(t);let o=!1;const s=Math.abs(Te.touch.x-r.clientX),n=Math.abs(Te.touch.y-r.clientY);t.cancelable&&(i==="none"?o=!0:i==="pan-x"?o=n>s:i==="pan-y"&&(o=s>n)),o?t.preventDefault():Er("track")}}function Ee(t,r,e){return mo[r]?(Ep(t,r,e),!0):!1}function Ep(t,r,e){const i=mo[r],o=i.deps,s=i.name;let n=t[Ui];n||(t[Ui]=n={});for(let a=0,l,u;a<o.length;a++)l=o[a],!(_p&&fo(l)&&l!=="click")&&(u=n[l],u||(n[l]=u={_count:0}),u._count===0&&t.addEventListener(l,xp,mp(l)),u[s]=(u[s]||0)+1,u._count=(u._count||0)+1);t.addEventListener(r,e),i.touchAction&&va(t,i.touchAction)}function _o(t){je.push(t),t.emits.forEach(r=>{mo[r]=t})}function Sp(t){for(let r=0,e;r<je.length;r++){e=je[r];for(let i=0,o;i<e.emits.length;i++)if(o=e.emits[i],o===t)return e}return null}function va(t,r){po&&t instanceof HTMLElement&&ep.run(()=>{t.style.touchAction=r}),t[ji]=r}function go(t,r,e){const i=new Event(r,{bubbles:!0,cancelable:!0,composed:!0});if(i.detail=e,cp(t).dispatchEvent(i),i.defaultPrevented){const o=e.preventer||e.sourceEvent;o&&o.preventDefault&&o.preventDefault()}}function Er(t){const r=Sp(t);r.info&&(r.info.prevent=!0)}_o({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset(){lt(this.info)},mousedown(t){if(!Ve(t))return;const r=Le(t),e=this,i=s=>{Ve(s)||(Tt("up",r,s),lt(e.info))},o=s=>{Ve(s)&&Tt("up",r,s),lt(e.info)};ba(this.info,i,o),Tt("down",r,t)},touchstart(t){Tt("down",Le(t),t.changedTouches[0],t)},touchend(t){Tt("up",Le(t),t.changedTouches[0],t)}});function Tt(t,r,e,i){r&&go(r,t,{x:e.clientX,y:e.clientY,sourceEvent:e,preventer:i,prevent(o){return Er(o)}})}_o({name:"track",touchAction:"none",deps:["mousedown","touchstart","touchmove","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["track"],info:{x:0,y:0,state:"start",started:!1,moves:[],addMove(t){this.moves.length>hp&&this.moves.shift(),this.moves.push(t)},movefn:null,upfn:null,prevent:!1},reset(){this.info.state="start",this.info.started=!1,this.info.moves=[],this.info.x=0,this.info.y=0,this.info.prevent=!1,lt(this.info)},mousedown(t){if(!Ve(t))return;const r=Le(t),e=this,i=s=>{const n=s.clientX,a=s.clientY;Ns(e.info,n,a)&&(e.info.state=e.info.started?s.type==="mouseup"?"end":"track":"start",e.info.state==="start"&&Er("tap"),e.info.addMove({x:n,y:a}),Ve(s)||(e.info.state="end",lt(e.info)),r&&si(e.info,r,s),e.info.started=!0)},o=s=>{e.info.started&&i(s),lt(e.info)};ba(this.info,i,o),this.info.x=t.clientX,this.info.y=t.clientY},touchstart(t){const r=t.changedTouches[0];this.info.x=r.clientX,this.info.y=r.clientY},touchmove(t){const r=Le(t),e=t.changedTouches[0],i=e.clientX,o=e.clientY;Ns(this.info,i,o)&&(this.info.state==="start"&&Er("tap"),this.info.addMove({x:i,y:o}),si(this.info,r,e),this.info.state="track",this.info.started=!0)},touchend(t){const r=Le(t),e=t.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:e.clientX,y:e.clientY}),si(this.info,r,e))}});function Ns(t,r,e){if(t.prevent)return!1;if(t.started)return!0;const i=Math.abs(t.x-r),o=Math.abs(t.y-e);return i>=Is||o>=Is}function si(t,r,e){if(!r)return;const i=t.moves[t.moves.length-2],o=t.moves[t.moves.length-1],s=o.x-t.x,n=o.y-t.y;let a,l=0;i&&(a=o.x-i.x,l=o.y-i.y),go(r,"track",{state:t.state,x:e.clientX,y:e.clientY,dx:s,dy:n,ddx:a,ddy:l,sourceEvent:e,hover(){return vp(e.clientX,e.clientY)}})}_o({name:"tap",deps:["mousedown","click","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["click","touchend"]},emits:["tap"],info:{x:NaN,y:NaN,prevent:!1},reset(){this.info.x=NaN,this.info.y=NaN,this.info.prevent=!1},mousedown(t){Ve(t)&&(this.info.x=t.clientX,this.info.y=t.clientY)},click(t){Ve(t)&&Ls(this.info,t)},touchstart(t){const r=t.changedTouches[0];this.info.x=r.clientX,this.info.y=r.clientY},touchend(t){Ls(this.info,t.changedTouches[0],t)}});function Ls(t,r,e){const i=Math.abs(r.clientX-t.x),o=Math.abs(r.clientY-t.y),s=Le(e||r);!s||gp[s.localName]&&s.hasAttribute("disabled")||(isNaN(i)||isNaN(o)||i<=Ms&&o<=Ms||bp(r))&&(t.prevent||go(s,"tap",{x:r.clientX,y:r.clientY,sourceEvent:r,preventer:e}))}/**
|
|
2199
2199
|
* @license
|
|
2200
2200
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
2201
2201
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
@@ -2207,27 +2207,27 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
2207
2207
|
* @license
|
|
2208
2208
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
2209
2209
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2210
|
-
*/const Ap=t=>class extends xa(Lr(t)){get _activeKeys(){return[" "]}ready(){super.ready(),Ee(this,"down",e=>{this._shouldSetActive(e)&&this._setActive(!0)}),Ee(this,"up",()=>{this._setActive(!1)})}disconnectedCallback(){super.disconnectedCallback(),this._setActive(!1)}_shouldSetActive(e){return!this.disabled}_onKeyDown(e){super._onKeyDown(e),this._shouldSetActive(e)&&this._activeKeys.includes(e.key)&&(this._setActive(!0),document.addEventListener("keyup",
|
|
2210
|
+
*/const Ap=t=>class extends xa(Lr(t)){get _activeKeys(){return[" "]}ready(){super.ready(),Ee(this,"down",e=>{this._shouldSetActive(e)&&this._setActive(!0)}),Ee(this,"up",()=>{this._setActive(!1)})}disconnectedCallback(){super.disconnectedCallback(),this._setActive(!1)}_shouldSetActive(e){return!this.disabled}_onKeyDown(e){super._onKeyDown(e),this._shouldSetActive(e)&&this._activeKeys.includes(e.key)&&(this._setActive(!0),document.addEventListener("keyup",i=>{this._activeKeys.includes(i.key)&&this._setActive(!1)},{once:!0}))}_setActive(e){this.toggleAttribute("active",e)}};/**
|
|
2211
2211
|
* @license
|
|
2212
2212
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
2213
2213
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2214
|
-
*/let
|
|
2214
|
+
*/let bo=!1;window.addEventListener("keydown",()=>{bo=!0},{capture:!0});window.addEventListener("mousedown",()=>{bo=!1},{capture:!0});function Vi(){let t=document.activeElement||document.body;for(;t.shadowRoot&&t.shadowRoot.activeElement;)t=t.shadowRoot.activeElement;return t}function Cp(){return bo}function Tp(t){const r=t.style;if(r.visibility==="hidden"||r.display==="none")return!0;const e=window.getComputedStyle(t);return e.visibility==="hidden"||e.display==="none"}function Pp(t,r){const e=Math.max(t.tabIndex,0),i=Math.max(r.tabIndex,0);return e===0||i===0?i>e:e>i}function Dp(t,r){const e=[];for(;t.length>0&&r.length>0;)Pp(t[0],r[0])?e.push(r.shift()):e.push(t.shift());return e.concat(t,r)}function Yi(t){const r=t.length;if(r<2)return t;const e=Math.ceil(r/2),i=Yi(t.slice(0,e)),o=Yi(t.slice(e));return Dp(i,o)}function kp(t){return t.matches('[tabindex="-1"]')?!1:t.matches("input, select, textarea, button, object")?t.matches(":not([disabled])"):t.matches("a[href], area[href], iframe, [tabindex], [contentEditable]")}function Op(t){return t.getRootNode().activeElement===t}function Mp(t){if(!kp(t))return-1;const r=t.getAttribute("tabindex")||0;return Number(r)}function wa(t,r){if(t.nodeType!==Node.ELEMENT_NODE||Tp(t))return!1;const e=t,i=Mp(e);let o=i>0;i>=0&&r.push(e);let s=[];return e.localName==="slot"?s=e.assignedNodes({flatten:!0}):s=(e.shadowRoot||e).children,[...s].forEach(n=>{o=wa(n,r)||o}),o}function Ip(t){const r=[];return wa(t,r)?Yi(r):r}/**
|
|
2215
2215
|
* @license
|
|
2216
2216
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
2217
2217
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2218
|
-
*/const
|
|
2218
|
+
*/const yo=J(t=>class extends t{get _keyboardActive(){return Cp()}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}});/**
|
|
2219
2219
|
* @license
|
|
2220
2220
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
2221
2221
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2222
|
-
*/const Ea=t=>class extends xa(t){static get properties(){return{tabindex:{type:Number,reflectToAttribute:!0,observer:"_tabindexChanged"},_lastTabIndex:{type:Number}}}_disabledChanged(e,
|
|
2222
|
+
*/const Ea=t=>class extends xa(t){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)}};/**
|
|
2223
2223
|
* @license
|
|
2224
2224
|
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
2225
2225
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2226
|
-
*/const Np=t=>class extends Ap(Ea(
|
|
2226
|
+
*/const Np=t=>class extends Ap(Ea(yo(t))){static get properties(){return{tabindex:{type:Number,value:0,reflectToAttribute:!0}}}get _activeKeys(){return["Enter"," "]}ready(){super.ready(),this.hasAttribute("role")||this.setAttribute("role","button")}_onKeyDown(e){super._onKeyDown(e),!(e.altKey||e.shiftKey||e.ctrlKey||e.metaKey)&&this._activeKeys.includes(e.key)&&(e.preventDefault(),this.click())}};/**
|
|
2227
2227
|
* @license
|
|
2228
2228
|
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
2229
2229
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2230
|
-
*/Y("vaadin-button",ap,{moduleId:"vaadin-button-styles"});class Lp extends Np(pa(We(xt(He)))){static get is(){return"vaadin-button"}static get template(){return lp(Xe)}ready(){super.ready(),this._tooltipController=new _a(this),this.addController(this._tooltipController)}}
|
|
2230
|
+
*/Y("vaadin-button",ap,{moduleId:"vaadin-button-styles"});class Lp extends Np(pa(We(xt(He)))){static get is(){return"vaadin-button"}static get template(){return lp(Xe)}ready(){super.ready(),this._tooltipController=new _a(this),this.addController(this._tooltipController)}}ge(Lp);Y("vaadin-date-picker-year",A`
|
|
2231
2231
|
:host([current]) [part='year-number'] {
|
|
2232
2232
|
color: var(--lumo-primary-text-color);
|
|
2233
2233
|
}
|
|
@@ -2251,7 +2251,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
2251
2251
|
color: var(--lumo-disabled-text-color);
|
|
2252
2252
|
content: '\\2022';
|
|
2253
2253
|
}
|
|
2254
|
-
`,{moduleId:"lumo-date-picker-year"});Y("vaadin-date-picker-overlay-content",
|
|
2254
|
+
`,{moduleId:"lumo-date-picker-year"});Y("vaadin-date-picker-overlay-content",A`
|
|
2255
2255
|
:host {
|
|
2256
2256
|
position: relative;
|
|
2257
2257
|
/* Background for the year scroller, placed here as we are using a mask image on the actual years part */
|
|
@@ -2401,7 +2401,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
2401
2401
|
padding-left: 50px;
|
|
2402
2402
|
}
|
|
2403
2403
|
}
|
|
2404
|
-
`,{moduleId:"lumo-date-picker-overlay-content"});Y("vaadin-month-calendar",
|
|
2404
|
+
`,{moduleId:"lumo-date-picker-overlay-content"});Y("vaadin-month-calendar",A`
|
|
2405
2405
|
:host {
|
|
2406
2406
|
-moz-user-select: none;
|
|
2407
2407
|
-webkit-user-select: none;
|
|
@@ -2553,7 +2553,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
2553
2553
|
* @license
|
|
2554
2554
|
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
2555
2555
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2556
|
-
*/const $p=
|
|
2556
|
+
*/const $p=A`
|
|
2557
2557
|
@font-face {
|
|
2558
2558
|
font-family: 'lumo-icons';
|
|
2559
2559
|
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==)
|
|
@@ -2606,11 +2606,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
2606
2606
|
--lumo-icons-upload: '\\ea29';
|
|
2607
2607
|
--lumo-icons-user: '\\ea2a';
|
|
2608
2608
|
}
|
|
2609
|
-
`;
|
|
2609
|
+
`;vt("font-icons",$p);/**
|
|
2610
2610
|
* @license
|
|
2611
2611
|
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
2612
2612
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2613
|
-
*/const Aa=
|
|
2613
|
+
*/const Aa=A`
|
|
2614
2614
|
[part$='button'] {
|
|
2615
2615
|
flex: none;
|
|
2616
2616
|
width: 1em;
|
|
@@ -2641,7 +2641,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
2641
2641
|
* @license
|
|
2642
2642
|
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
2643
2643
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2644
|
-
*/const Hp=
|
|
2644
|
+
*/const Hp=A`
|
|
2645
2645
|
:host([has-helper]) [part='helper-text']::before {
|
|
2646
2646
|
content: '';
|
|
2647
2647
|
display: block;
|
|
@@ -2696,7 +2696,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
2696
2696
|
* @license
|
|
2697
2697
|
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
2698
2698
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2699
|
-
*/const Ca=
|
|
2699
|
+
*/const Ca=A`
|
|
2700
2700
|
[part='label'] {
|
|
2701
2701
|
align-self: flex-start;
|
|
2702
2702
|
color: var(--lumo-secondary-text-color);
|
|
@@ -2796,7 +2796,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
2796
2796
|
* @license
|
|
2797
2797
|
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
2798
2798
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2799
|
-
*/const Bp=
|
|
2799
|
+
*/const Bp=A`
|
|
2800
2800
|
:host {
|
|
2801
2801
|
--lumo-text-field-size: var(--lumo-size-m);
|
|
2802
2802
|
color: var(--lumo-body-text-color);
|
|
@@ -2930,7 +2930,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
2930
2930
|
[part='clear-button']::before {
|
|
2931
2931
|
content: var(--lumo-icons-cross);
|
|
2932
2932
|
}
|
|
2933
|
-
`,Ta=[Ca,Aa,Hp,Bp];Y("",Ta,{moduleId:"lumo-input-field-shared-styles"});const zp=
|
|
2933
|
+
`,Ta=[Ca,Aa,Hp,Bp];Y("",Ta,{moduleId:"lumo-input-field-shared-styles"});const zp=A`
|
|
2934
2934
|
:host {
|
|
2935
2935
|
outline: none;
|
|
2936
2936
|
}
|
|
@@ -2964,15 +2964,15 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
2964
2964
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
2965
2965
|
Code distributed by Google as part of the polymer project is also
|
|
2966
2966
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
2967
|
-
*/let
|
|
2967
|
+
*/let Gi=!1,Fp=[],Pa=[];function Rp(){Gi=!0,requestAnimationFrame(function(){Gi=!1,Up(Fp),setTimeout(function(){jp(Pa)})})}function Up(t){for(;t.length;)Da(t.shift())}function jp(t){for(let r=0,e=t.length;r<e;r++)Da(t.shift())}function Da(t){const r=t[0],e=t[1],i=t[2];try{e.apply(r,i)}catch(o){setTimeout(()=>{throw o})}}function ka(t,r,e){Gi||Rp(),Pa.push([t,r,e])}/**
|
|
2968
2968
|
* @license
|
|
2969
2969
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
2970
2970
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2971
|
-
*/const $r=t=>t.test(navigator.userAgent),
|
|
2971
|
+
*/const $r=t=>t.test(navigator.userAgent),Wi=t=>t.test(navigator.platform),Vp=t=>t.test(navigator.vendor);$r(/Android/u);$r(/Chrome/u)&&Vp(/Google Inc/u);const Yp=$r(/Firefox/u),Gp=Wi(/^iPad/u)||Wi(/^Mac/u)&&navigator.maxTouchPoints>1,Wp=Wi(/^iPhone/u),Oa=Wp||Gp;$r(/^((?!chrome|android).)*safari/iu);const qp=(()=>{try{return document.createEvent("TouchEvent"),!0}catch(t){return!1}})();/**
|
|
2972
2972
|
* @license
|
|
2973
2973
|
* Copyright (c) 2017 Anton Korzunov
|
|
2974
2974
|
* SPDX-License-Identifier: MIT
|
|
2975
|
-
*/let tt=new WeakMap,
|
|
2975
|
+
*/let tt=new WeakMap,ir=new WeakMap,or={},ni=0;const $s=t=>t&&t.nodeType===Node.ELEMENT_NODE,ai=(...t)=>{console.error(`Error: ${t.join(" ")}. Skip setting aria-hidden.`)},Xp=(t,r)=>$s(t)?r.map(e=>{if(!$s(e))return ai(e,"is not a valid element"),null;let i=e;for(;i&&i!==t;){if(t.contains(i))return e;i=i.getRootNode().host}return ai(e,"is not contained inside",t),null}).filter(e=>!!e):(ai(t,"is not a valid element"),[]),Kp=(t,r,e,i)=>{const o=Xp(r,Array.isArray(t)?t:[t]);or[e]||(or[e]=new WeakMap);const s=or[e],n=[],a=new Set,l=new Set(o),u=h=>{if(!h||a.has(h))return;a.add(h);const d=h.assignedSlot;d&&u(d),u(h.parentNode||h.host)};o.forEach(u);const c=h=>{if(!h||l.has(h))return;const d=h.shadowRoot;(d?[...h.children,...d.children]:[...h.children]).forEach(f=>{if(!["template","script","style"].includes(f.localName))if(a.has(f))c(f);else{const y=f.getAttribute(i),P=y!==null&&y!=="false",D=(tt.get(f)||0)+1,M=(s.get(f)||0)+1;tt.set(f,D),s.set(f,M),n.push(f),D===1&&P&&ir.set(f,!0),M===1&&f.setAttribute(e,"true"),P||f.setAttribute(i,"true")}})};return c(r),a.clear(),ni+=1,()=>{n.forEach(h=>{const d=tt.get(h)-1,p=s.get(h)-1;tt.set(h,d),s.set(h,p),d||(ir.has(h)?ir.delete(h):h.removeAttribute(i)),p||h.removeAttribute(e)}),ni-=1,ni||(tt=new WeakMap,tt=new WeakMap,ir=new WeakMap,or={})}},Ma=(t,r=document.body,e="data-aria-hidden")=>{const i=Array.from(Array.isArray(t)?t:[t]);return r&&i.push(...Array.from(r.querySelectorAll("[aria-live]"))),Kp(i,r,e,"aria-hidden")};/**
|
|
2976
2976
|
* @license
|
|
2977
2977
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
2978
2978
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
@@ -2980,31 +2980,31 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
2980
2980
|
* @license
|
|
2981
2981
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
2982
2982
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2983
|
-
*/class Zp{saveFocus(r){this.focusNode=r||
|
|
2983
|
+
*/class Zp{saveFocus(r){this.focusNode=r||Vi()}restoreFocus(){const r=this.focusNode;r&&(Vi()===document.body?setTimeout(()=>r.focus()):r.focus(),this.focusNode=null)}}/**
|
|
2984
2984
|
* @license
|
|
2985
2985
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
2986
2986
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2987
|
-
*/const
|
|
2987
|
+
*/const li=[];class Qp{constructor(r){this.host=r,this.__trapNode=null,this.__onKeyDown=this.__onKeyDown.bind(this)}get __focusableElements(){return Ip(this.__trapNode)}get __focusedElementIndex(){const r=this.__focusableElements;return r.indexOf(r.filter(Op).pop())}hostConnected(){document.addEventListener("keydown",this.__onKeyDown)}hostDisconnected(){document.removeEventListener("keydown",this.__onKeyDown)}trapFocus(r){if(this.__trapNode=r,this.__focusableElements.length===0)throw this.__trapNode=null,new Error("The trap node should have at least one focusable descendant or be focusable itself.");li.push(this),this.__focusedElementIndex===-1&&this.__focusableElements[0].focus()}releaseFocus(){this.__trapNode=null,li.pop()}__onKeyDown(r){if(this.__trapNode&&this===Array.from(li).pop()&&r.key==="Tab"){r.preventDefault();const e=r.shiftKey;this.__focusNextElement(e)}}__focusNextElement(r=!1){const e=this.__focusableElements,i=r?-1:1,o=this.__focusedElementIndex,s=(e.length+o+i)%e.length,n=e[s];n.focus(),n.localName==="input"&&n.select()}}/**
|
|
2988
2988
|
* @license
|
|
2989
2989
|
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
2990
2990
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2991
|
-
*/const ef=t=>class extends xt(t){static get properties(){return{focusTrap:{type:Boolean,value:!1},restoreFocusOnClose:{type:Boolean,value:!1},restoreFocusNode:{type:HTMLElement}}}constructor(){super(),this.__ariaModalController=new Jp(this),this.__focusTrapController=new Qp(this),this.__focusRestorationController=new Zp}ready(){super.ready(),this.addController(this.__ariaModalController),this.addController(this.__focusTrapController),this.addController(this.__focusRestorationController)}_resetFocus(){this.focusTrap&&(this.__ariaModalController.close(),this.__focusTrapController.releaseFocus()),this.restoreFocusOnClose&&this._shouldRestoreFocus()&&this.__focusRestorationController.restoreFocus()}_saveFocus(){this.restoreFocusOnClose&&this.__focusRestorationController.saveFocus(this.restoreFocusNode)}_trapFocus(){this.focusTrap&&(this.__ariaModalController.showModal(),this.__focusTrapController.trapFocus(this.$.overlay))}_shouldRestoreFocus(){const e=
|
|
2991
|
+
*/const ef=t=>class extends xt(t){static get properties(){return{focusTrap:{type:Boolean,value:!1},restoreFocusOnClose:{type:Boolean,value:!1},restoreFocusNode:{type:HTMLElement}}}constructor(){super(),this.__ariaModalController=new Jp(this),this.__focusTrapController=new Qp(this),this.__focusRestorationController=new Zp}ready(){super.ready(),this.addController(this.__ariaModalController),this.addController(this.__focusTrapController),this.addController(this.__focusRestorationController)}_resetFocus(){this.focusTrap&&(this.__ariaModalController.close(),this.__focusTrapController.releaseFocus()),this.restoreFocusOnClose&&this._shouldRestoreFocus()&&this.__focusRestorationController.restoreFocus()}_saveFocus(){this.restoreFocusOnClose&&this.__focusRestorationController.saveFocus(this.restoreFocusNode)}_trapFocus(){this.focusTrap&&(this.__ariaModalController.showModal(),this.__focusTrapController.trapFocus(this.$.overlay))}_shouldRestoreFocus(){const e=Vi();return e===document.body||this._deepContains(e)}_deepContains(e){if(this.contains(e))return!0;let i=e;const o=e.ownerDocument;for(;i&&i!==o&&i!==this;)i=i.parentNode||i.host;return i===this}};/**
|
|
2992
2992
|
* @license
|
|
2993
2993
|
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
2994
2994
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2995
|
-
*/const dr=()=>Array.from(document.body.children).filter(t=>t instanceof HTMLElement&&t._hasOverlayStackMixin&&!t.hasAttribute("closing")).sort((t,r)=>t.__zIndex-r.__zIndex||0),tf=t=>t===dr().pop(),rf=t=>class extends t{constructor(){super(),this._hasOverlayStackMixin=!0}get _last(){return tf(this)}bringToFront(){let e="";const
|
|
2995
|
+
*/const dr=()=>Array.from(document.body.children).filter(t=>t instanceof HTMLElement&&t._hasOverlayStackMixin&&!t.hasAttribute("closing")).sort((t,r)=>t.__zIndex-r.__zIndex||0),tf=t=>t===dr().pop(),rf=t=>class extends t{constructor(){super(),this._hasOverlayStackMixin=!0}get _last(){return tf(this)}bringToFront(){let e="";const i=dr().filter(o=>o!==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"),dr().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=dr();let i;for(;(i=e.pop())&&!(i!==this&&(i.$.overlay.style.removeProperty("pointer-events"),!i.modeless)););}};/**
|
|
2996
2996
|
* @license
|
|
2997
2997
|
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
2998
2998
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2999
|
-
*/const of=t=>class extends ef(rf(t)){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),Oa&&(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
|
|
2999
|
+
*/const of=t=>class extends ef(rf(t)){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),Oa&&(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,o=window.innerWidth>e,s=document.documentElement.clientHeight;o&&s>e?this.style.setProperty("--vaadin-overlay-viewport-bottom",`${s-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,o,s){const n=this._oldOwner!==i||this._oldModel!==o;this._oldModel=o,this._oldOwner=i;const a=this._oldRenderer!==e;this._oldRenderer=e;const l=this._oldOpened!==s;this._oldOpened=s,a&&(this.innerHTML="",delete this._$litPart$),s&&e&&(a||l||n)&&this.requestContentUpdate()}_modelessChanged(e){e?(this._removeGlobalListeners(),this._exitModalState()):this.opened&&(this._addGlobalListeners(),this._enterModalState())}_openedChanged(e,i){e?(this._saveFocus(),this._animatedOpening(),ka(this,()=>{this._trapFocus();const o=new CustomEvent("vaadin-overlay-open",{bubbles:!0});this.dispatchEvent(o)}),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 o=`__${e}Handler`,s=n=>{n&&n.target!==this||(i(),this.removeEventListener("animationend",s),delete this[o])};this[o]=s,this.addEventListener("animationend",s)}_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)}}};/**
|
|
3000
3000
|
* @license
|
|
3001
3001
|
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
3002
3002
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3003
|
-
*/const
|
|
3003
|
+
*/const ui={start:"top",end:"bottom"},ci={start:"left",end:"right"},Hs=new ResizeObserver(t=>{setTimeout(()=>{t.forEach(r=>{r.target.__overlay&&r.target.__overlay._updatePosition()})})}),sf=t=>class extends t{static get properties(){return{positionTarget:{type:Object,value:null},horizontalAlign:{type:String,value:"start"},verticalAlign:{type:String,value:"top"},noHorizontalOverlap:{type:Boolean,value:!1},noVerticalOverlap:{type:Boolean,value:!1},requiredVerticalSpace:{type:Number,value: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.addEventListener("resize",this._updatePosition),this.__positionTargetAncestorRootNodes=rp(this.positionTarget),this.__positionTargetAncestorRootNodes.forEach(e=>{e.addEventListener("scroll",this.__onScroll,!0)})}__removeUpdatePositionEventListeners(){window.removeEventListener("resize",this._updatePosition),this.__positionTargetAncestorRootNodes&&(this.__positionTargetAncestorRootNodes.forEach(e=>{e.removeEventListener("scroll",this.__onScroll,!0)}),this.__positionTargetAncestorRootNodes=null)}__overlayOpenedChanged(e,i){if(this.__removeUpdatePositionEventListeners(),i&&(i.__overlay=null,Hs.unobserve(i),e&&(this.__addUpdatePositionEventListeners(),i.__overlay=this,Hs.observe(i))),e){const o=getComputedStyle(this);this.__margins||(this.__margins={},["top","bottom","left","right"].forEach(s=>{this.__margins[s]=parseInt(o[s],10)})),this.setAttribute("dir",o.direction),this._updatePosition(),requestAnimationFrame(()=>this._updatePosition())}}__positionSettingsChanged(){this._updatePosition()}__onScroll(e){this.contains(e.target)||this._updatePosition()}_updatePosition(){if(!this.positionTarget||!this.opened)return;const e=this.positionTarget.getBoundingClientRect(),i=this.__shouldAlignStartVertically(e);this.style.justifyContent=i?"flex-start":"flex-end";const o=this.__isRTL,s=this.__shouldAlignStartHorizontally(e,o),n=!o&&s||o&&!s;this.style.alignItems=n?"flex-start":"flex-end";const a=this.getBoundingClientRect(),l=this.__calculatePositionInOneDimension(e,a,this.noVerticalOverlap,ui,this,i),u=this.__calculatePositionInOneDimension(e,a,this.noHorizontalOverlap,ci,this,s);Object.assign(this.style,l,u),this.toggleAttribute("bottom-aligned",!i),this.toggleAttribute("top-aligned",i),this.toggleAttribute("end-aligned",!n),this.toggleAttribute("start-aligned",n)}__shouldAlignStartHorizontally(e,i){const o=Math.max(this.__oldContentWidth||0,this.$.overlay.offsetWidth);this.__oldContentWidth=this.$.overlay.offsetWidth;const s=Math.min(window.innerWidth,document.documentElement.clientWidth),n=!i&&this.horizontalAlign==="start"||i&&this.horizontalAlign==="end";return this.__shouldAlignStart(e,o,s,this.__margins,n,this.noHorizontalOverlap,ci)}__shouldAlignStartVertically(e){const i=this.requiredVerticalSpace||Math.max(this.__oldContentHeight||0,this.$.overlay.offsetHeight);this.__oldContentHeight=this.$.overlay.offsetHeight;const o=Math.min(window.innerHeight,document.documentElement.clientHeight),s=this.verticalAlign==="top";return this.__shouldAlignStart(e,i,o,this.__margins,s,this.noVerticalOverlap,ui)}__shouldAlignStart(e,i,o,s,n,a,l){const u=o-e[a?l.end:l.start]-s[l.end],c=e[a?l.start:l.end]-s[l.start],h=n?u:c,p=h>(n?c:u)||h>i;return n===p}__adjustBottomProperty(e,i,o){let s;if(e===i.end){if(i.end===ui.end){const n=Math.min(window.innerHeight,document.documentElement.clientHeight);if(o>n&&this.__oldViewportHeight){const a=this.__oldViewportHeight-n;s=o-a}this.__oldViewportHeight=n}if(i.end===ci.end){const n=Math.min(window.innerWidth,document.documentElement.clientWidth);if(o>n&&this.__oldViewportWidth){const a=this.__oldViewportWidth-n;s=o-a}this.__oldViewportWidth=n}}return s}__calculatePositionInOneDimension(e,i,o,s,n,a){const l=a?s.start:s.end,u=a?s.end:s.start,c=parseFloat(n.style[l]||getComputedStyle(n)[l]),h=this.__adjustBottomProperty(l,s,c),d=i[a?s.start:s.end]-e[o===a?s.end:s.start],p=h?`${h}px`:`${c+d*(a?-1:1)}px`;return{[l]:p,[u]:""}}};/**
|
|
3004
3004
|
* @license
|
|
3005
3005
|
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
3006
3006
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3007
|
-
*/const nf=
|
|
3007
|
+
*/const nf=A`
|
|
3008
3008
|
:host {
|
|
3009
3009
|
z-index: 200;
|
|
3010
3010
|
position: fixed;
|
|
@@ -3066,7 +3066,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
3066
3066
|
* @license
|
|
3067
3067
|
* Copyright (c) 2016 - 2023 Vaadin Ltd.
|
|
3068
3068
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3069
|
-
*/const af=
|
|
3069
|
+
*/const af=A`
|
|
3070
3070
|
[part='overlay'] {
|
|
3071
3071
|
display: flex;
|
|
3072
3072
|
flex: auto;
|
|
@@ -3092,11 +3092,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
3092
3092
|
<slot></slot>
|
|
3093
3093
|
</div>
|
|
3094
3094
|
</div>
|
|
3095
|
-
`}}
|
|
3095
|
+
`}}ge(lf);/**
|
|
3096
3096
|
* @license
|
|
3097
3097
|
* Copyright (c) 2016 - 2023 Vaadin Ltd.
|
|
3098
3098
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3099
|
-
*/function uf(t){let r=t.getDay();r===0&&(r=7);const e=4-r,
|
|
3099
|
+
*/function uf(t){let r=t.getDay();r===0&&(r=7);const e=4-r,i=new Date(t.getTime()+e*24*3600*1e3),o=new Date(0,0);o.setFullYear(i.getFullYear());const s=i.getTime()-o.getTime(),n=Math.round(s/(24*3600*1e3));return Math.floor(n/7+1)}function ke(t,r){return t instanceof Date&&r instanceof Date&&t.getFullYear()===r.getFullYear()&&t.getMonth()===r.getMonth()&&t.getDate()===r.getDate()}function Yt(t,r,e){return(!r||t>=r)&&(!e||t<=e)}function Ia(t,r){return r.filter(e=>e!==void 0).reduce((e,i)=>{if(!i)return e;if(!e)return i;const o=Math.abs(t.getTime()-i.getTime()),s=Math.abs(e.getTime()-t.getTime());return o<s?i:e})}function Na(t){return{day:t.getDate(),month:t.getMonth(),year:t.getFullYear()}}function La(t){const r=new Date,e=new Date(r);return e.setDate(1),e.setMonth(parseInt(t)+r.getMonth()),e}function cf(t,r,e=0,i=1){if(r>99)throw new Error("The provided year cannot have more than 2 digits.");if(r<0)throw new Error("The provided year cannot be negative.");let o=r+Math.floor(t.getFullYear()/100)*100;return t<new Date(o-50,e,i)?o-=100:t>new Date(o+50,e,i)&&(o+=100),o}function Pt(t){const r=/^([-+]\d{1}|\d{2,4}|[-+]\d{6})-(\d{1,2})-(\d{1,2})$/u.exec(t);if(!r)return;const e=new Date(0,0);return e.setFullYear(parseInt(r[1],10)),e.setMonth(parseInt(r[2],10)-1),e.setDate(parseInt(r[3],10)),e}/**
|
|
3100
3100
|
* @license
|
|
3101
3101
|
* Copyright (c) 2016 - 2023 Vaadin Ltd.
|
|
3102
3102
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
@@ -3150,7 +3150,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
3150
3150
|
<div class="buffer"></div>
|
|
3151
3151
|
<div id="fullHeight"></div>
|
|
3152
3152
|
</div>
|
|
3153
|
-
`;class Ha extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"}).appendChild($a.content.cloneNode(!0)),this.bufferSize=20,this._initialScroll=5e5,this._initialIndex=0,this._activated=!1}get active(){return this._activated}set active(r){r&&!this._activated&&(this._createPool(),this._activated=!0)}get bufferOffset(){return this._buffers[0].offsetTop}get itemHeight(){if(!this._itemHeightVal){const r=getComputedStyle(this).getPropertyValue("--vaadin-infinite-scroller-item-height"),e="background-position";this.$.fullHeight.style.setProperty(e,r);const
|
|
3153
|
+
`;class Ha extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"}).appendChild($a.content.cloneNode(!0)),this.bufferSize=20,this._initialScroll=5e5,this._initialIndex=0,this._activated=!1}get active(){return this._activated}set active(r){r&&!this._activated&&(this._createPool(),this._activated=!0)}get bufferOffset(){return this._buffers[0].offsetTop}get itemHeight(){if(!this._itemHeightVal){const r=getComputedStyle(this).getPropertyValue("--vaadin-infinite-scroller-item-height"),e="background-position";this.$.fullHeight.style.setProperty(e,r);const i=getComputedStyle(this.$.fullHeight).getPropertyValue(e);this.$.fullHeight.style.removeProperty(e),this._itemHeightVal=parseFloat(i)}return this._itemHeightVal}get _bufferHeight(){return this.itemHeight*this.bufferSize}get position(){return(this.$.scroller.scrollTop-this._buffers[0].translateY)/this.itemHeight+this._firstIndex}set position(r){this._preventScrollEvent=!0,r>this._firstIndex&&r<this._firstIndex+this.bufferSize*2?this.$.scroller.scrollTop=this.itemHeight*(r-this._firstIndex)+this._buffers[0].translateY:(this._initialIndex=~~r,this._reset(),this._scrollDisabled=!0,this.$.scroller.scrollTop+=r%1*this.itemHeight,this._scrollDisabled=!1),this._mayHaveMomentum&&(this.$.scroller.classList.add("notouchscroll"),this._mayHaveMomentum=!1,setTimeout(()=>{this.$.scroller.classList.remove("notouchscroll")},10))}connectedCallback(){this._ready||(this._ready=!0,this.$={},this.shadowRoot.querySelectorAll("[id]").forEach(r=>{this.$[r.id]=r}),this.$.scroller.addEventListener("scroll",()=>this._scroll()),this._buffers=[...this.shadowRoot.querySelectorAll(".buffer")],this.$.fullHeight.style.height=`${this._initialScroll*2}px`,Yp&&(this.$.scroller.tabIndex=-1))}forceUpdate(){this._debouncerUpdateClones&&(this._buffers[0].updated=this._buffers[1].updated=!1,this._updateClones(),this._debouncerUpdateClones.cancel())}_createElement(){}_updateElement(r,e){}_finishInit(){this._initDone||(this._buffers.forEach(r=>{[...r.children].forEach(e=>{this._ensureStampedInstance(e._itemWrapper)})}),this._buffers[0].translateY||this._reset(),this._initDone=!0,this.dispatchEvent(new CustomEvent("init-done")))}_translateBuffer(r){const e=r?1:0;this._buffers[e].translateY=this._buffers[e?0:1].translateY+this._bufferHeight*(e?-1:1),this._buffers[e].style.transform=`translate3d(0, ${this._buffers[e].translateY}px, 0)`,this._buffers[e].updated=!1,this._buffers.reverse()}_scroll(){if(this._scrollDisabled)return;const r=this.$.scroller.scrollTop;(r<this._bufferHeight||r>this._initialScroll*2-this._bufferHeight)&&(this._initialIndex=~~this.position,this._reset());const e=this.itemHeight+this.bufferOffset,i=r>this._buffers[1].translateY+e,o=r<this._buffers[0].translateY+e;(i||o)&&(this._translateBuffer(o),this._updateClones()),this._preventScrollEvent||(this.dispatchEvent(new CustomEvent("custom-scroll",{bubbles:!1,composed:!0})),this._mayHaveMomentum=!0),this._preventScrollEvent=!1,this._debouncerScrollFinish=Vt.debounce(this._debouncerScrollFinish,wr.after(200),()=>{const s=this.$.scroller.getBoundingClientRect();!this._isVisible(this._buffers[0],s)&&!this._isVisible(this._buffers[1],s)&&(this.position=this.position)})}_reset(){this._scrollDisabled=!0,this.$.scroller.scrollTop=this._initialScroll,this._buffers[0].translateY=this._initialScroll-this._bufferHeight,this._buffers[1].translateY=this._initialScroll,this._buffers.forEach(r=>{r.style.transform=`translate3d(0, ${r.translateY}px, 0)`}),this._buffers[0].updated=this._buffers[1].updated=!1,this._updateClones(!0),this._debouncerUpdateClones=Vt.debounce(this._debouncerUpdateClones,wr.after(200),()=>{this._buffers[0].updated=this._buffers[1].updated=!1,this._updateClones()}),this._scrollDisabled=!1}_createPool(){const r=this.getBoundingClientRect();this._buffers.forEach(e=>{for(let i=0;i<this.bufferSize;i++){const o=document.createElement("div");o.style.height=`${this.itemHeight}px`,o.instance={};const s=`vaadin-infinite-scroller-item-content-${ma()}`,n=document.createElement("slot");n.setAttribute("name",s),n._itemWrapper=o,e.appendChild(n),o.setAttribute("slot",s),this.appendChild(o),this._isVisible(o,r)&&this._ensureStampedInstance(o)}}),requestAnimationFrame(()=>{this._finishInit()})}_ensureStampedInstance(r){if(r.firstElementChild)return;const e=r.instance;r.instance=this._createElement(),r.appendChild(r.instance),Object.keys(e).forEach(i=>{r.instance[i]=e[i]})}_updateClones(r){this._firstIndex=~~((this._buffers[0].translateY-this._initialScroll)/this.itemHeight)+this._initialIndex;const e=r?this.$.scroller.getBoundingClientRect():void 0;this._buffers.forEach((i,o)=>{if(!i.updated){const s=this._firstIndex+this.bufferSize*o;[...i.children].forEach((n,a)=>{const l=n._itemWrapper;(!r||this._isVisible(l,e))&&this._updateElement(l.instance,s+a)}),i.updated=!0}})}_isVisible(r,e){const i=r.getBoundingClientRect();return i.bottom>e.top&&i.top<e.bottom}}/**
|
|
3154
3154
|
* @license
|
|
3155
3155
|
* Copyright (c) 2016 - 2023 Vaadin Ltd.
|
|
3156
3156
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
@@ -3166,7 +3166,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
3166
3166
|
height: 100%;
|
|
3167
3167
|
}
|
|
3168
3168
|
</style>
|
|
3169
|
-
`;class hf extends Ha{static get is(){return"vaadin-date-picker-month-scroller"}constructor(){super(),this.bufferSize=3,this.shadowRoot.appendChild(Ba.content.cloneNode(!0))}_createElement(){return document.createElement("vaadin-month-calendar")}_updateElement(r,e){r.month=La(e)}}
|
|
3169
|
+
`;class hf extends Ha{static get is(){return"vaadin-date-picker-month-scroller"}constructor(){super(),this.bufferSize=3,this.shadowRoot.appendChild(Ba.content.cloneNode(!0))}_createElement(){return document.createElement("vaadin-month-calendar")}_updateElement(r,e){r.month=La(e)}}ge(hf);/**
|
|
3170
3170
|
* @license
|
|
3171
3171
|
* Copyright (c) 2016 - 2023 Vaadin Ltd.
|
|
3172
3172
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
@@ -3204,7 +3204,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
3204
3204
|
border-left-color: #000;
|
|
3205
3205
|
}
|
|
3206
3206
|
</style>
|
|
3207
|
-
`;class df extends Ha{static get is(){return"vaadin-date-picker-year-scroller"}constructor(){super(),this.bufferSize=12,this.shadowRoot.appendChild(za.content.cloneNode(!0))}_createElement(){return document.createElement("vaadin-date-picker-year")}_updateElement(r,e){r.year=this._yearAfterXYears(e)}_yearAfterXYears(r){const e=new Date,
|
|
3207
|
+
`;class df extends Ha{static get is(){return"vaadin-date-picker-year-scroller"}constructor(){super(),this.bufferSize=12,this.shadowRoot.appendChild(za.content.cloneNode(!0))}_createElement(){return document.createElement("vaadin-date-picker-year")}_updateElement(r,e){r.year=this._yearAfterXYears(e)}_yearAfterXYears(r){const e=new Date,i=new Date(e);return i.setFullYear(parseInt(r)+e.getFullYear()),i.getFullYear()}}ge(df);/**
|
|
3208
3208
|
* @license
|
|
3209
3209
|
* Copyright (c) 2016 - 2023 Vaadin Ltd.
|
|
3210
3210
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
@@ -3217,7 +3217,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
3217
3217
|
</style>
|
|
3218
3218
|
<div part="year-number">[[year]]</div>
|
|
3219
3219
|
<div part="year-separator" aria-hidden="true"></div>
|
|
3220
|
-
`}static get properties(){return{year:{type:String},selectedDate:{type:Object}}}static get observers(){return["__updateSelected(year, selectedDate)"]}__updateSelected(r,e){this.toggleAttribute("selected",e&&e.getFullYear()===r),this.toggleAttribute("current",r===new Date().getFullYear())}}
|
|
3220
|
+
`}static get properties(){return{year:{type:String},selectedDate:{type:Object}}}static get observers(){return["__updateSelected(year, selectedDate)"]}__updateSelected(r,e){this.toggleAttribute("selected",e&&e.getFullYear()===r),this.toggleAttribute("current",r===new Date().getFullYear())}}ge(pf);/**
|
|
3221
3221
|
@license
|
|
3222
3222
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
3223
3223
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -3225,7 +3225,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
3225
3225
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
3226
3226
|
Code distributed by Google as part of the polymer project is also
|
|
3227
3227
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
3228
|
-
*/function
|
|
3228
|
+
*/function vo(t,r,e,i,o){let s;o&&(s=typeof e=="object"&&e!==null,s&&(i=t.__dataTemp[r]));let n=i!==e&&(i===i||e===e);return s&&n&&(t.__dataTemp[r]=e),n}const xo=J(t=>{class r extends t{_shouldPropertyChange(i,o,s){return vo(this,i,o,s,!0)}}return r}),ff=J(t=>{class r extends t{static get properties(){return{mutableData:Boolean}}_shouldPropertyChange(i,o,s){return vo(this,i,o,s,this.mutableData)}}return r});xo._mutablePropertyChange=vo;/**
|
|
3229
3229
|
@license
|
|
3230
3230
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
3231
3231
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -3233,7 +3233,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
3233
3233
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
3234
3234
|
Code distributed by Google as part of the polymer project is also
|
|
3235
3235
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
3236
|
-
*/let
|
|
3236
|
+
*/let qi=null;function Xi(){return qi}Xi.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:Xi,writable:!0}});const Fa=co(Xi),mf=xo(Fa);function _f(t,r){qi=t,Object.setPrototypeOf(t,r.prototype),new r,qi=null}const gf=co(class{});function bf(t,r){for(let e=0;e<r.length;e++){let i=r[e];if(!!t!=!!i.__hideTemplateChildren__)if(i.nodeType===Node.TEXT_NODE)t?(i.__polymerTextContent__=i.textContent,i.textContent=""):i.textContent=i.__polymerTextContent__;else if(i.localName==="slot")if(t)i.__polymerReplaced__=document.createComment("hidden-slot"),ie(ie(i).parentNode).replaceChild(i.__polymerReplaced__,i);else{const o=i.__polymerReplaced__;o&&ie(ie(o).parentNode).replaceChild(i,o)}else i.style&&(t?(i.__polymerDisplay__=i.style.display,i.style.display="none"):i.style.display=i.__polymerDisplay__);i.__hideTemplateChildren__=t,i._showHideChildren&&i._showHideChildren(t)}}class Be extends gf{constructor(r){super(),this._configureProperties(r),this.root=this._stampTemplate(this.__dataHost);let e=[];this.children=e;for(let o=this.root.firstChild;o;o=o.nextSibling)e.push(o),o.__templatizeInstance=this;this.__templatizeOwner&&this.__templatizeOwner.__hideTemplateChildren__&&this._showHideChildren(!0);let i=this.__templatizeOptions;(r&&i.instanceProps||!i.instanceProps)&&this._enableProperties()}_configureProperties(r){if(this.__templatizeOptions.forwardHostProp)for(let i in this.__hostProps)this._setPendingProperty(i,this.__dataHost["_host_"+i]);for(let i in r)this._setPendingProperty(i,r[i])}forwardHostProp(r,e){this._setPendingPropertyOrPath(r,e,!1,!0)&&this.__dataHost._enqueueClient(this)}_addEventListenerToNode(r,e,i){if(this._methodHost&&this.__templatizeOptions.parentModel)this._methodHost._addEventListenerToNode(r,e,o=>{o.model=this,i(o)});else{let o=this.__dataHost.__dataHost;o&&o._addEventListenerToNode(r,e,i)}}_showHideChildren(r){bf(r,this.children)}_setUnmanagedPropertyToNode(r,e,i){r.__hideTemplateChildren__&&r.nodeType==Node.TEXT_NODE&&e=="textContent"?r.__polymerTextContent__=i:super._setUnmanagedPropertyToNode(r,e,i)}get parentModel(){let r=this.__parentModel;if(!r){let e;r=this;do r=r.__dataHost.__dataHost;while((e=r.__templatizeOptions)&&!e.parentModel);this.__parentModel=r}return r}dispatchEvent(r){return!0}}Be.prototype.__dataHost;Be.prototype.__templatizeOptions;Be.prototype._methodHost;Be.prototype.__templatizeOwner;Be.prototype.__hostProps;const yf=xo(Be);function Bs(t){let r=t.__dataHost;return r&&r._methodHost||r}function vf(t,r,e){let i=e.mutableData?yf:Be;Ki.mixin&&(i=Ki.mixin(i));let o=class extends i{};return o.prototype.__templatizeOptions=e,o.prototype._bindTemplate(t),Ef(o,t,r,e),o}function xf(t,r,e,i){let o=e.forwardHostProp;if(o&&r.hasHostProps){const s=t.localName=="template";let n=r.templatizeTemplateClass;if(!n){if(s){let l=e.mutableData?mf:Fa;class u extends l{}n=r.templatizeTemplateClass=u}else{const l=t.constructor;class u extends l{}n=r.templatizeTemplateClass=u}let a=r.hostProps;for(let l in a)n.prototype._addPropertyEffect("_host_"+l,n.prototype.PROPERTY_EFFECT_TYPES.PROPAGATE,{fn:wf(l,o)}),n.prototype._createNotifyingProperty("_host_"+l);zn&&i&&Cf(r,e,i)}if(t.__dataProto&&Object.assign(t.__data,t.__dataProto),s)_f(t,n),t.__dataTemp={},t.__dataPending=null,t.__dataOld=null,t._enableProperties();else{Object.setPrototypeOf(t,n.prototype);const a=r.hostProps;for(let l in a)if(l="_host_"+l,l in t){const u=t[l];delete t[l],t.__data[l]=u}}}}function wf(t,r){return function(i,o,s){r.call(i.__templatizeOwner,o.substring(6),s[o])}}function Ef(t,r,e,i){let o=e.hostProps||{};for(let s in i.instanceProps){delete o[s];let n=i.notifyInstanceProp;n&&t.prototype._addPropertyEffect(s,t.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:Sf(s,n)})}if(i.forwardHostProp&&r.__dataHost)for(let s in o)e.hasHostProps||(e.hasHostProps=!0),t.prototype._addPropertyEffect(s,t.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:Af()})}function Sf(t,r){return function(i,o,s){r.call(i.__templatizeOwner,i,o,s[o])}}function Af(){return function(r,e,i){r.__dataHost._setPendingPropertyOrPath("_host_"+e,i[e],!0,!0)}}function Ki(t,r,e){if(vr&&!Bs(t))throw new Error("strictTemplatePolicy: template owner not trusted");if(e=e||{},t.__templatizeOwner)throw new Error("A <template> can only be templatized once");t.__templatizeOwner=r;let o=(r?r.constructor:Be)._parseTemplate(t),s=o.templatizeInstanceClass;s||(s=vf(t,o,e),o.templatizeInstanceClass=s);const n=Bs(t);xf(t,o,e,n);let a=class extends s{};return a.prototype._methodHost=n,a.prototype.__dataHost=t,a.prototype.__templatizeOwner=r,a.prototype.__hostProps=o.hostProps,a=a,a}function Cf(t,r,e){const i=e.constructor._properties,{propertyEffects:o}=t,{instanceProps:s}=r;for(let n in o)if(!i[n]&&!(s&&s[n])){const a=o[n];for(let l=0;l<a.length;l++){const{part:u}=a[l].info;if(!(u.signature&&u.signature.static)){console.warn(`Property '${n}' used in template but not declared in 'properties'; attribute will not be observed.`);break}}}}function Tf(t,r){let e;for(;r;)if(e=r.__dataHost?r:r.__templatizeInstance)if(e.__dataHost!=t)r=e.__dataHost;else return e;else r=ie(r).parentNode;return null}/**
|
|
3237
3237
|
@license
|
|
3238
3238
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
3239
3239
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -3241,7 +3241,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
3241
3241
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
3242
3242
|
Code distributed by Google as part of the polymer project is also
|
|
3243
3243
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
3244
|
-
*/class Sr{constructor(){this._asyncModule=null,this._callback=null,this._timer=null}setConfig(r,e){this._asyncModule=r,this._callback=e,this._timer=this._asyncModule.run(()=>{this._timer=null,Gt.delete(this),this._callback()})}cancel(){this.isActive()&&(this._cancelAsync(),Gt.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}static debounce(r,e,
|
|
3244
|
+
*/class Sr{constructor(){this._asyncModule=null,this._callback=null,this._timer=null}setConfig(r,e){this._asyncModule=r,this._callback=e,this._timer=this._asyncModule.run(()=>{this._timer=null,Gt.delete(this),this._callback()})}cancel(){this.isActive()&&(this._cancelAsync(),Gt.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}static debounce(r,e,i){return r instanceof Sr?r._cancelAsync():r=new Sr,r.setConfig(e,i),r}}let Gt=new Set;const Pf=function(t){Gt.add(t)},Df=function(){const t=!!Gt.size;return Gt.forEach(r=>{try{r.flush()}catch(e){setTimeout(()=>{throw e})}}),t};/**
|
|
3245
3245
|
@license
|
|
3246
3246
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
3247
3247
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -3265,15 +3265,15 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
3265
3265
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
3266
3266
|
Code distributed by Google as part of the polymer project is also
|
|
3267
3267
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
3268
|
-
*/const Of=ff(He);class Fs extends Of{static get is(){return"dom-repeat"}static get template(){return null}static get properties(){return{items:{type:Array},as:{type:String,value:"item"},indexAs:{type:String,value:"index"},itemsIndexAs:{type:String,value:"itemsIndex"},sort:{type:Function,observer:"__sortChanged"},filter:{type:Function,observer:"__filterChanged"},observe:{type:String,observer:"__observeChanged"},delay:Number,renderedItemCount:{type:Number,notify:!ds,readOnly:!0},initialCount:{type:Number},targetFramerate:{type:Number,value:20},_targetFrameTime:{type:Number,computed:"__computeFrameTime(targetFramerate)"},notifyDomChange:{type:Boolean},reuseChunkedInstances:{type:Boolean}}}static get observers(){return["__itemsChanged(items.*)"]}constructor(){super(),this.__instances=[],this.__renderDebouncer=null,this.__itemsIdxToInstIdx={},this.__chunkCount=null,this.__renderStartTime=null,this.__itemsArrayChanged=!1,this.__shouldMeasureChunk=!1,this.__shouldContinueChunking=!1,this.__chunkingId=0,this.__sortFn=null,this.__filterFn=null,this.__observePaths=null,this.__ctor=null,this.__isDetached=!0,this.template=null,this._templateInfo}disconnectedCallback(){super.disconnectedCallback(),this.__isDetached=!0;for(let r=0;r<this.__instances.length;r++)this.__detachInstance(r);this.__chunkingId&&cancelAnimationFrame(this.__chunkingId)}connectedCallback(){if(super.connectedCallback(),kf()||(this.style.display="none"),this.__isDetached){this.__isDetached=!1;let r=
|
|
3268
|
+
*/const Of=ff(He);class Fs extends Of{static get is(){return"dom-repeat"}static get template(){return null}static get properties(){return{items:{type:Array},as:{type:String,value:"item"},indexAs:{type:String,value:"index"},itemsIndexAs:{type:String,value:"itemsIndex"},sort:{type:Function,observer:"__sortChanged"},filter:{type:Function,observer:"__filterChanged"},observe:{type:String,observer:"__observeChanged"},delay:Number,renderedItemCount:{type:Number,notify:!ds,readOnly:!0},initialCount:{type:Number},targetFramerate:{type:Number,value:20},_targetFrameTime:{type:Number,computed:"__computeFrameTime(targetFramerate)"},notifyDomChange:{type:Boolean},reuseChunkedInstances:{type:Boolean}}}static get observers(){return["__itemsChanged(items.*)"]}constructor(){super(),this.__instances=[],this.__renderDebouncer=null,this.__itemsIdxToInstIdx={},this.__chunkCount=null,this.__renderStartTime=null,this.__itemsArrayChanged=!1,this.__shouldMeasureChunk=!1,this.__shouldContinueChunking=!1,this.__chunkingId=0,this.__sortFn=null,this.__filterFn=null,this.__observePaths=null,this.__ctor=null,this.__isDetached=!0,this.template=null,this._templateInfo}disconnectedCallback(){super.disconnectedCallback(),this.__isDetached=!0;for(let r=0;r<this.__instances.length;r++)this.__detachInstance(r);this.__chunkingId&&cancelAnimationFrame(this.__chunkingId)}connectedCallback(){if(super.connectedCallback(),kf()||(this.style.display="none"),this.__isDetached){this.__isDetached=!1;let r=ie(ie(this).parentNode);for(let e=0;e<this.__instances.length;e++)this.__attachInstance(e,r);this.__chunkingId&&this.__render()}}__ensureTemplatized(){if(!this.__ctor){const r=this;let e=this.template=r._templateInfo?r:this.querySelector("template");if(!e){let o=new MutationObserver(()=>{if(this.querySelector("template"))o.disconnect(),this.__render();else throw new Error("dom-repeat requires a <template> child")});return o.observe(this,{childList:!0}),!1}let i={};i[this.as]=!0,i[this.indexAs]=!0,i[this.itemsIndexAs]=!0,this.__ctor=Ki(e,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:i,forwardHostProp:function(o,s){let n=this.__instances;for(let a=0,l;a<n.length&&(l=n[a]);a++)l.forwardHostProp(o,s)},notifyInstanceProp:function(o,s,n){if(_h(this.as,s)){let a=o[this.itemsIndexAs];s==this.as&&(this.items[a]=n);let l=Rt(this.as,`${JSCompiler_renameProperty("items",this)}.${a}`,s);this.notifyPath(l,n)}}})}return!0}__getMethodHost(){return this.__dataHost._methodHost||this.__dataHost}__functionFromPropertyValue(r){if(typeof r=="string"){let e=r,i=this.__getMethodHost();return function(){return i[e].apply(i,arguments)}}return r}__sortChanged(r){this.__sortFn=this.__functionFromPropertyValue(r),this.items&&this.__debounceRender(this.__render)}__filterChanged(r){this.__filterFn=this.__functionFromPropertyValue(r),this.items&&this.__debounceRender(this.__render)}__computeFrameTime(r){return Math.ceil(1e3/r)}__observeChanged(){this.__observePaths=this.observe&&this.observe.replace(".*",".").split(" ")}__handleObservedPaths(r){if(this.__sortFn||this.__filterFn){if(!r)this.__debounceRender(this.__render,this.delay);else if(this.__observePaths){let e=this.__observePaths;for(let i=0;i<e.length;i++)r.indexOf(e[i])===0&&this.__debounceRender(this.__render,this.delay)}}}__itemsChanged(r){this.items&&!Array.isArray(this.items)&&console.warn("dom-repeat expected array for `items`, found",this.items),this.__handleItemPath(r.path,r.value)||(r.path==="items"&&(this.__itemsArrayChanged=!0),this.__debounceRender(this.__render))}__debounceRender(r,e=0){this.__renderDebouncer=Sr.debounce(this.__renderDebouncer,e>0?wh.after(e):Xn,r.bind(this)),Pf(this.__renderDebouncer)}render(){this.__debounceRender(this.__render),Ra()}__render(){if(!this.__ensureTemplatized())return;let r=this.items||[];const e=this.__sortAndFilterItems(r),i=this.__calculateLimit(e.length);this.__updateInstances(r,i,e),this.initialCount&&(this.__shouldMeasureChunk||this.__shouldContinueChunking)&&(cancelAnimationFrame(this.__chunkingId),this.__chunkingId=requestAnimationFrame(()=>{this.__chunkingId=null,this.__continueChunking()})),this._setRenderedItemCount(this.__instances.length),(!ds||this.notifyDomChange)&&this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}__sortAndFilterItems(r){let e=new Array(r.length);for(let i=0;i<r.length;i++)e[i]=i;return this.__filterFn&&(e=e.filter((i,o,s)=>this.__filterFn(r[i],o,s))),this.__sortFn&&e.sort((i,o)=>this.__sortFn(r[i],r[o])),e}__calculateLimit(r){let e=r;const i=this.__instances.length;if(this.initialCount){let o;!this.__chunkCount||this.__itemsArrayChanged&&!this.reuseChunkedInstances?(e=Math.min(r,this.initialCount),o=Math.max(e-i,0),this.__chunkCount=o||1):(o=Math.min(Math.max(r-i,0),this.__chunkCount),e=Math.min(i+o,r)),this.__shouldMeasureChunk=o===this.__chunkCount,this.__shouldContinueChunking=e<r,this.__renderStartTime=performance.now()}return this.__itemsArrayChanged=!1,e}__continueChunking(){if(this.__shouldMeasureChunk){const r=performance.now()-this.__renderStartTime,e=this._targetFrameTime/r;this.__chunkCount=Math.round(this.__chunkCount*e)||1}this.__shouldContinueChunking&&this.__debounceRender(this.__render)}__updateInstances(r,e,i){const o=this.__itemsIdxToInstIdx={};let s;for(s=0;s<e;s++){let n=this.__instances[s],a=i[s],l=r[a];o[a]=s,n?(n._setPendingProperty(this.as,l),n._setPendingProperty(this.indexAs,s),n._setPendingProperty(this.itemsIndexAs,a),n._flushProperties()):this.__insertInstance(l,s,a)}for(let n=this.__instances.length-1;n>=s;n--)this.__detachAndRemoveInstance(n)}__detachInstance(r){let e=this.__instances[r];const i=ie(e.root);for(let o=0;o<e.children.length;o++){let s=e.children[o];i.appendChild(s)}return e}__attachInstance(r,e){let i=this.__instances[r];e.insertBefore(i.root,this)}__detachAndRemoveInstance(r){this.__detachInstance(r),this.__instances.splice(r,1)}__stampInstance(r,e,i){let o={};return o[this.as]=r,o[this.indexAs]=e,o[this.itemsIndexAs]=i,new this.__ctor(o)}__insertInstance(r,e,i){const o=this.__stampInstance(r,e,i);let s=this.__instances[e+1],n=s?s.children[0]:this;return ie(ie(this).parentNode).insertBefore(o.root,n),this.__instances[e]=o,o}_showHideChildren(r){for(let e=0;e<this.__instances.length;e++)this.__instances[e]._showHideChildren(r)}__handleItemPath(r,e){let i=r.slice(6),o=i.indexOf("."),s=o<0?i:i.substring(0,o);if(s==parseInt(s,10)){let n=o<0?"":i.substring(o+1);this.__handleObservedPaths(n);let a=this.__itemsIdxToInstIdx[s],l=this.__instances[a];if(l){let u=this.as+(n?"."+n:"");l._setPendingPropertyOrPath(u,e,!1,!0),l._flushProperties()}return!0}}itemForElement(r){let e=this.modelForElement(r);return e&&e[this.as]}indexForElement(r){let e=this.modelForElement(r);return e&&e[this.indexAs]}modelForElement(r){return Tf(this.template,r)}}customElements.define(Fs.is,Fs);/**
|
|
3269
3269
|
* @license
|
|
3270
3270
|
* Copyright (c) 2016 - 2023 Vaadin Ltd.
|
|
3271
3271
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3272
|
-
*/const Mf=t=>class extends
|
|
3272
|
+
*/const Mf=t=>class extends yo(t){static get properties(){return{month:{type:Object,value:new Date,sync:!0},selectedDate:{type:Object,notify:!0,sync:!0},focusedDate:{type:Object},showWeekNumbers:{type:Boolean,value:!1},i18n:{type:Object},ignoreTaps:{type:Boolean},minDate:{type:Date,value:null,sync:!0},maxDate:{type:Date,value:null,sync:!0},disabled:{type:Boolean,reflectToAttribute:!0},_days:{type:Array},_weeks:{type:Array},_notTapping:{type:Boolean}}}static get observers(){return["__focusedDateChanged(focusedDate, _days)"]}get focusableDateElement(){return[...this.shadowRoot.querySelectorAll("[part~=date]")].find(e=>ke(e.date,this.focusedDate))}ready(){super.ready(),Ee(this.$.monthGrid,"tap",this._handleTap.bind(this))}_isDisabled(e,i,o){const s=new Date(0,0);s.setFullYear(e.getFullYear()),s.setMonth(e.getMonth()),s.setDate(1);const n=new Date(0,0);return n.setFullYear(e.getFullYear()),n.setMonth(e.getMonth()+1),n.setDate(0),i&&o&&i.getMonth()===o.getMonth()&&i.getMonth()===e.getMonth()&&o.getDate()-i.getDate()>=0?!1:!Yt(s,i,o)&&!Yt(n,i,o)}_getTitle(e,i){if(!(e===void 0||i===void 0))return i.formatTitle(i.monthNames[e.getMonth()],e.getFullYear())}_onMonthGridTouchStart(){this._notTapping=!1,setTimeout(()=>{this._notTapping=!0},300)}_dateAdd(e,i){e.setDate(e.getDate()+i)}_applyFirstDayOfWeek(e,i){if(!(e===void 0||i===void 0))return e.slice(i).concat(e.slice(0,i))}_getWeekDayNames(e,i){if(e===void 0||i===void 0)return[];const{weekdays:o,weekdaysShort:s,firstDayOfWeek:n}=e,a=this._applyFirstDayOfWeek(s,n);return this._applyFirstDayOfWeek(o,n).map((u,c)=>({weekDay:u,weekDayShort:a[c]}))}__focusedDateChanged(e,i){Array.isArray(i)&&i.some(o=>ke(o,e))?this.removeAttribute("aria-hidden"):this.setAttribute("aria-hidden","true")}_getDate(e){return e?e.getDate():""}_showWeekSeparator(e,i){return e&&i&&i.firstDayOfWeek===1}_isToday(e){return ke(new Date,e)}_getDays(e,i){if(e===void 0||i===void 0)return[];const o=new Date(0,0);for(o.setFullYear(e.getFullYear()),o.setMonth(e.getMonth()),o.setDate(1);o.getDay()!==i.firstDayOfWeek;)this._dateAdd(o,-1);const s=[],n=o.getMonth(),a=e.getMonth();for(;o.getMonth()===a||o.getMonth()===n;)s.push(o.getMonth()===a?new Date(o.getTime()):null),this._dateAdd(o,1);return s}_getWeeks(e){return e.reduce((i,o,s)=>(s%7===0&&i.push([]),i[i.length-1].push(o),i),[])}_handleTap(e){!this.ignoreTaps&&!this._notTapping&&e.target.date&&!e.target.hasAttribute("disabled")&&(this.selectedDate=e.target.date,this.dispatchEvent(new CustomEvent("date-tap",{detail:{date:e.target.date},bubbles:!0,composed:!0})))}_preventDefault(e){e.preventDefault()}__getWeekNumber(e){const i=e.reduce((o,s)=>!o&&s?s:o);return uf(i)}__getDayAriaLabel(e){if(!e)return"";let i=`${this._getDate(e)} ${this.i18n.monthNames[e.getMonth()]} ${e.getFullYear()}, ${this.i18n.weekdays[e.getDay()]}`;return this._isToday(e)&&(i+=`, ${this.i18n.today}`),i}};/**
|
|
3273
3273
|
* @license
|
|
3274
3274
|
* Copyright (c) 2016 - 2023 Vaadin Ltd.
|
|
3275
3275
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3276
|
-
*/const If=
|
|
3276
|
+
*/const If=A`
|
|
3277
3277
|
:host {
|
|
3278
3278
|
display: block;
|
|
3279
3279
|
}
|
|
@@ -3375,7 +3375,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
3375
3375
|
</template>
|
|
3376
3376
|
</tbody>
|
|
3377
3377
|
</table>
|
|
3378
|
-
`}static get is(){return"vaadin-month-calendar"}static get properties(){return{_days:{type:Array,computed:"_getDays(month, i18n, minDate, maxDate)"},_weeks:{type:Array,computed:"_getWeeks(_days)"},disabled:{type:Boolean,reflectToAttribute:!0,computed:"_isDisabled(month, minDate, maxDate)"}}}static get observers(){return["_showWeekNumbersChanged(showWeekNumbers, i18n)"]}_showWeekNumbersChanged(r,e){r&&e&&e.firstDayOfWeek===1?this.setAttribute("week-numbers",""):this.removeAttribute("week-numbers")}__getDatePart(r,e,o,
|
|
3378
|
+
`}static get is(){return"vaadin-month-calendar"}static get properties(){return{_days:{type:Array,computed:"_getDays(month, i18n, minDate, maxDate)"},_weeks:{type:Array,computed:"_getWeeks(_days)"},disabled:{type:Boolean,reflectToAttribute:!0,computed:"_isDisabled(month, minDate, maxDate)"}}}static get observers(){return["_showWeekNumbersChanged(showWeekNumbers, i18n)"]}_showWeekNumbersChanged(r,e){r&&e&&e.firstDayOfWeek===1?this.setAttribute("week-numbers",""):this.removeAttribute("week-numbers")}__getDatePart(r,e,i,o,s){const n=["date"];return this.__isDayDisabled(r,o,s)&&n.push("disabled"),this.__isDayFocused(r,e)&&n.push("focused"),this.__isDaySelected(r,i)&&n.push("selected"),this._isToday(r)&&n.push("today"),n.join(" ")}__isDayFocused(r,e){return ke(r,e)}__isDaySelected(r,e){return ke(r,e)}__getDayAriaSelected(r,e){if(this.__isDaySelected(r,e))return"true"}__isDayDisabled(r,e,i){return!Yt(r,e,i)}__getDayAriaDisabled(r,e,i){if(!(r===void 0||e===void 0||i===void 0)&&this.__isDayDisabled(r,e,i))return"true"}__getDayTabindex(r,e){return this.__isDayFocused(r,e)?"0":"-1"}}ge(Nf);/**
|
|
3379
3379
|
* @license
|
|
3380
3380
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
3381
3381
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
@@ -3383,11 +3383,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
3383
3383
|
* @license
|
|
3384
3384
|
* Copyright (c) 2016 - 2023 Vaadin Ltd.
|
|
3385
3385
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3386
|
-
*/const Lf=t=>class extends t{static get properties(){return{scrollDuration:{type:Number,value:300},selectedDate:{type:Object,value:null,sync:!0},focusedDate:{type:Object,notify:!0,observer:"_focusedDateChanged",sync:!0},_focusedMonthDate:Number,initialPosition:{type:Object,observer:"_initialPositionChanged"},_originDate:{type:Object,value:new Date},_visibleMonthIndex:Number,_desktopMode:{type:Boolean,observer:"_desktopModeChanged"},_desktopMediaQuery:{type:String,value:"(min-width: 375px)"},_translateX:{observer:"_translateXChanged"},_yearScrollerWidth:{value:50},i18n:{type:Object},showWeekNumbers:{type:Boolean,value:!1},_ignoreTaps:Boolean,_notTapping:Boolean,minDate:{type:Object,sync:!0},maxDate:{type:Object,sync:!0},label:String,_cancelButton:{type:Object},_todayButton:{type:Object},calendars:{type:Array,value:()=>[]},years:{type:Array,value:()=>[]}}}static get observers(){return["__updateCalendars(calendars, i18n, minDate, maxDate, selectedDate, focusedDate, showWeekNumbers, _ignoreTaps, _theme)","__updateCancelButton(_cancelButton, i18n)","__updateTodayButton(_todayButton, i18n, minDate, maxDate)","__updateYears(years, selectedDate, _theme)"]}get __useSubMonthScrolling(){return this._monthScroller.clientHeight<this._monthScroller.itemHeight+this._monthScroller.bufferOffset}get focusableDateElement(){return this.calendars.map(e=>e.focusableDateElement).find(Boolean)}_addListeners(){ya(this.$.scrollers,"pan-y"),Ee(this.$.scrollers,"track",this._track.bind(this)),Ee(this.shadowRoot.querySelector('[part="clear-button"]'),"tap",this._clear.bind(this)),Ee(this.shadowRoot.querySelector('[part="toggle-button"]'),"tap",this._cancel.bind(this)),Ee(this.shadowRoot.querySelector('[part="years-toggle-button"]'),"tap",this._toggleYearScroller.bind(this))}_initControllers(){this.addController(new Ua(this._desktopMediaQuery,e=>{this._desktopMode=e})),this.addController(new Ue(this,"today-button","vaadin-button",{observe:!1,initializer:e=>{e.setAttribute("theme","tertiary"),e.addEventListener("keydown",o=>this.__onTodayButtonKeyDown(o)),Ee(e,"tap",this._onTodayTap.bind(this)),this._todayButton=e}})),this.addController(new Ue(this,"cancel-button","vaadin-button",{observe:!1,initializer:e=>{e.setAttribute("theme","tertiary"),e.addEventListener("keydown",o=>this.__onCancelButtonKeyDown(o)),Ee(e,"tap",this._cancel.bind(this)),this._cancelButton=e}})),this.__initMonthScroller(),this.__initYearScroller()}reset(){this._closeYearScroller(),this._toggleAnimateClass(!0)}focusCancel(){this._cancelButton.focus()}scrollToDate(e,o){const i=this.__useSubMonthScrolling?this._calculateWeekScrollOffset(e):0;this._scrollToPosition(this._differenceInMonths(e,this._originDate)+i,o),this._monthScroller.forceUpdate()}__initMonthScroller(){this.addController(new Ue(this,"months","vaadin-date-picker-month-scroller",{observe:!1,initializer:e=>{e.addEventListener("custom-scroll",()=>{this._onMonthScroll()}),e.addEventListener("touchstart",()=>{this._onMonthScrollTouchStart()}),e.addEventListener("keydown",o=>{this.__onMonthCalendarKeyDown(o)}),e.addEventListener("init-done",()=>{const o=[...this.querySelectorAll("vaadin-month-calendar")];o.forEach(i=>{i.addEventListener("selected-date-changed",s=>{this.selectedDate=s.detail.value})}),this.calendars=o}),this._monthScroller=e}}))}__initYearScroller(){this.addController(new Ue(this,"years","vaadin-date-picker-year-scroller",{observe:!1,initializer:e=>{e.setAttribute("aria-hidden","true"),Ee(e,"tap",o=>{this._onYearTap(o)}),e.addEventListener("custom-scroll",()=>{this._onYearScroll()}),e.addEventListener("touchstart",()=>{this._onYearScrollTouchStart()}),e.addEventListener("init-done",()=>{this.years=[...this.querySelectorAll("vaadin-date-picker-year")]}),this._yearScroller=e}}))}__updateCancelButton(e,o){e&&(e.textContent=o&&o.cancel)}__updateTodayButton(e,o,i,s){e&&(e.textContent=o&&o.today,e.disabled=!this._isTodayAllowed(i,s))}__updateCalendars(e,o,i,s,n,a,l,u,c){e&&e.length&&e.forEach(h=>{h.i18n=o,h.minDate=i,h.maxDate=s,h.focusedDate=a,h.selectedDate=n,h.showWeekNumbers=l,h.ignoreTaps=u,c?h.setAttribute("theme",c):h.removeAttribute("theme")})}__updateYears(e,o,i){e&&e.length&&e.forEach(s=>{s.selectedDate=o,i?s.setAttribute("theme",i):s.removeAttribute("theme")})}_selectDate(e){this.selectedDate=e,this.dispatchEvent(new CustomEvent("date-selected",{detail:{date:e},bubbles:!0,composed:!0}))}_desktopModeChanged(e){this.toggleAttribute("desktop",e)}_focusedDateChanged(e){this.revealDate(e)}revealDate(e,o=!0){if(!e)return;const i=this._differenceInMonths(e,this._originDate);if(this.__useSubMonthScrolling){const u=this._calculateWeekScrollOffset(e);this._scrollToPosition(i+u,o);return}const s=this._monthScroller.position>i,a=Math.max(this._monthScroller.itemHeight,this._monthScroller.clientHeight-this._monthScroller.bufferOffset*2)/this._monthScroller.itemHeight,l=this._monthScroller.position+a-1<i;s?this._scrollToPosition(i,o):l&&this._scrollToPosition(i-a+1,o)}_calculateWeekScrollOffset(e){const o=new Date(0,0);o.setFullYear(e.getFullYear()),o.setMonth(e.getMonth()),o.setDate(1);let i=0;for(;o.getDate()<e.getDate();)o.setDate(o.getDate()+1),o.getDay()===this.i18n.firstDayOfWeek&&(i+=1);return i/6}_initialPositionChanged(e){this._monthScroller&&this._yearScroller&&(this._monthScroller.active=!0,this._yearScroller.active=!0),this.scrollToDate(e)}_repositionYearScroller(){const e=this._monthScroller.position;this._visibleMonthIndex=Math.floor(e),this._yearScroller.position=(e+this._originDate.getMonth())/12}_repositionMonthScroller(){this._monthScroller.position=this._yearScroller.position*12-this._originDate.getMonth(),this._visibleMonthIndex=Math.floor(this._monthScroller.position)}_onMonthScroll(){this._repositionYearScroller(),this._doIgnoreTaps()}_onYearScroll(){this._repositionMonthScroller(),this._doIgnoreTaps()}_onYearScrollTouchStart(){this._notTapping=!1,setTimeout(()=>{this._notTapping=!0},300),this._repositionMonthScroller()}_onMonthScrollTouchStart(){this._repositionYearScroller()}_doIgnoreTaps(){this._ignoreTaps=!0,this._debouncer=Vt.debounce(this._debouncer,wr.after(300),()=>{this._ignoreTaps=!1})}_formatDisplayed(e,o,i){return e&&o&&typeof o.formatDate=="function"?o.formatDate(Na(e)):i}_onTodayTap(){const e=new Date;Math.abs(this._monthScroller.position-this._differenceInMonths(e,this._originDate))<.001?(this._selectDate(e),this._close()):this._scrollToCurrentMonth()}_scrollToCurrentMonth(){this.focusedDate&&(this.focusedDate=new Date),this.scrollToDate(new Date,!0)}_onYearTap(e){if(!this._ignoreTaps&&!this._notTapping){const i=(e.detail.y-(this._yearScroller.getBoundingClientRect().top+this._yearScroller.clientHeight/2))/this._yearScroller.itemHeight;this._scrollToPosition(this._monthScroller.position+i*12,!0)}}_scrollToPosition(e,o){if(this._targetPosition!==void 0){this._targetPosition=e;return}if(!o){this._monthScroller.position=e,this._targetPosition=void 0,this._repositionYearScroller(),this.__tryFocusDate();return}this._targetPosition=e;let i;this._revealPromise=new Promise(u=>{i=u});const s=(u,c,h,d)=>(u/=d/2,u<1?h/2*u*u+c:(u-=1,-h/2*(u*(u-2)-1)+c));let n=0;const a=this._monthScroller.position,l=u=>{n||(n=u);const c=u-n;if(c<this.scrollDuration){const h=s(c,a,this._targetPosition-a,this.scrollDuration);this._monthScroller.position=h,window.requestAnimationFrame(l)}else this.dispatchEvent(new CustomEvent("scroll-animation-finished",{bubbles:!0,composed:!0,detail:{position:this._targetPosition,oldPosition:a}})),this._monthScroller.position=this._targetPosition,this._targetPosition=void 0,i(),this._revealPromise=void 0;setTimeout(this._repositionYearScroller.bind(this),1)};window.requestAnimationFrame(l)}_limit(e,o){return Math.min(o.max,Math.max(o.min,e))}_handleTrack(e){if(Math.abs(e.detail.dx)<10||Math.abs(e.detail.ddy)>10)return;Math.abs(e.detail.ddx)>this._yearScrollerWidth/3&&this._toggleAnimateClass(!0);const o=this._translateX+e.detail.ddx;this._translateX=this._limit(o,{min:0,max:this._yearScrollerWidth})}_track(e){if(!this._desktopMode)switch(e.detail.state){case"start":this._toggleAnimateClass(!1);break;case"track":this._handleTrack(e);break;case"end":this._toggleAnimateClass(!0),this._translateX>=this._yearScrollerWidth/2?this._closeYearScroller():this._openYearScroller();break}}_toggleAnimateClass(e){e?this.classList.add("animate"):this.classList.remove("animate")}_toggleYearScroller(){this._isYearScrollerVisible()?this._closeYearScroller():this._openYearScroller()}_openYearScroller(){this._translateX=0,this.setAttribute("years-visible","")}_closeYearScroller(){this.removeAttribute("years-visible"),this._translateX=this._yearScrollerWidth}_isYearScrollerVisible(){return this._translateX<this._yearScrollerWidth/2}_translateXChanged(e){this._desktopMode||(this._monthScroller.style.transform=`translateX(${e-this._yearScrollerWidth}px)`,this._yearScroller.style.transform=`translateX(${e}px)`)}_yearAfterXMonths(e){return La(e).getFullYear()}_differenceInMonths(e,o){return(e.getFullYear()-o.getFullYear())*12-o.getMonth()+e.getMonth()}_clear(){this._selectDate("")}_close(){this.dispatchEvent(new CustomEvent("close",{bubbles:!0,composed:!0}))}_cancel(){this.focusedDate=this.selectedDate,this._close()}_preventDefault(e){e.preventDefault()}__toggleDate(e){ke(e,this.selectedDate)?(this._clear(),this.focusedDate=e):this._selectDate(e)}__onMonthCalendarKeyDown(e){let o=!1;switch(e.key){case"ArrowDown":this._moveFocusByDays(7),o=!0;break;case"ArrowUp":this._moveFocusByDays(-7),o=!0;break;case"ArrowRight":this._moveFocusByDays(this.__isRTL?-1:1),o=!0;break;case"ArrowLeft":this._moveFocusByDays(this.__isRTL?1:-1),o=!0;break;case"Enter":this._selectDate(this.focusedDate),this._close(),o=!0;break;case" ":this.__toggleDate(this.focusedDate),o=!0;break;case"Home":this._moveFocusInsideMonth(this.focusedDate,"minDate"),o=!0;break;case"End":this._moveFocusInsideMonth(this.focusedDate,"maxDate"),o=!0;break;case"PageDown":this._moveFocusByMonths(e.shiftKey?12:1),o=!0;break;case"PageUp":this._moveFocusByMonths(e.shiftKey?-12:-1),o=!0;break;case"Tab":this._onTabKeyDown(e,"calendar");break}o&&(e.preventDefault(),e.stopPropagation())}_onTabKeyDown(e,o){switch(e.stopPropagation(),o){case"calendar":e.shiftKey&&(e.preventDefault(),this.hasAttribute("fullscreen")?this.focusCancel():this.__focusInput());break;case"today":e.shiftKey&&(e.preventDefault(),this.focusDateElement());break;case"cancel":e.shiftKey||(e.preventDefault(),this.hasAttribute("fullscreen")?this.focusDateElement():this.__focusInput());break}}__onTodayButtonKeyDown(e){e.key==="Tab"&&this._onTabKeyDown(e,"today")}__onCancelButtonKeyDown(e){e.key==="Tab"&&this._onTabKeyDown(e,"cancel")}__focusInput(){this.dispatchEvent(new CustomEvent("focus-input",{bubbles:!0,composed:!0}))}__tryFocusDate(){if(this.__pendingDateFocus){const o=this.focusableDateElement;o&&ke(o.date,this.__pendingDateFocus)&&(delete this.__pendingDateFocus,o.focus())}}focusDate(e,o){return wt(this,null,function*(){const i=e||this.selectedDate||this.initialPosition||new Date;this.focusedDate=i,o||(this._focusedMonthDate=i.getDate()),yield this.focusDateElement(!1)})}focusDateElement(e=!0){return wt(this,null,function*(){this.__pendingDateFocus=this.focusedDate,this.calendars.length||(yield new Promise(o=>{ka(this,()=>{Ra(),o()})})),e&&this.revealDate(this.focusedDate),this._revealPromise&&(yield this._revealPromise),this.__tryFocusDate()})}_focusClosestDate(e){this.focusDate(Ia(e,[this.minDate,this.maxDate]))}_focusAllowedDate(e,o,i){this._dateAllowed(e)?this.focusDate(e,i):this._dateAllowed(this.focusedDate)?o>0?this.focusDate(this.maxDate):this.focusDate(this.minDate):this._focusClosestDate(this.focusedDate)}_getDateDiff(e,o){const i=new Date(0,0);return i.setFullYear(this.focusedDate.getFullYear()),i.setMonth(this.focusedDate.getMonth()+e),o&&i.setDate(this.focusedDate.getDate()+o),i}_moveFocusByDays(e){const o=this._getDateDiff(0,e);this._focusAllowedDate(o,e,!1)}_moveFocusByMonths(e){const o=this._getDateDiff(e),i=o.getMonth();this._focusedMonthDate||(this._focusedMonthDate=this.focusedDate.getDate()),o.setDate(this._focusedMonthDate),o.getMonth()!==i&&o.setDate(0),this._focusAllowedDate(o,e,!0)}_moveFocusInsideMonth(e,o){const i=new Date(0,0);i.setFullYear(e.getFullYear()),o==="minDate"?(i.setMonth(e.getMonth()),i.setDate(1)):(i.setMonth(e.getMonth()+1),i.setDate(0)),this._dateAllowed(i)?this.focusDate(i):this._dateAllowed(e)?this.focusDate(this[o]):this._focusClosestDate(e)}_dateAllowed(e,o=this.minDate,i=this.maxDate){return(!o||e>=o)&&(!i||e<=i)}_isTodayAllowed(e,o){const i=new Date,s=new Date(0,0);return s.setFullYear(i.getFullYear()),s.setMonth(i.getMonth()),s.setDate(i.getDate()),this._dateAllowed(s,e,o)}};/**
|
|
3386
|
+
*/const Lf=t=>class extends t{static get properties(){return{scrollDuration:{type:Number,value:300},selectedDate:{type:Object,value:null,sync:!0},focusedDate:{type:Object,notify:!0,observer:"_focusedDateChanged",sync:!0},_focusedMonthDate:Number,initialPosition:{type:Object,observer:"_initialPositionChanged"},_originDate:{type:Object,value:new Date},_visibleMonthIndex:Number,_desktopMode:{type:Boolean,observer:"_desktopModeChanged"},_desktopMediaQuery:{type:String,value:"(min-width: 375px)"},_translateX:{observer:"_translateXChanged"},_yearScrollerWidth:{value:50},i18n:{type:Object},showWeekNumbers:{type:Boolean,value:!1},_ignoreTaps:Boolean,_notTapping:Boolean,minDate:{type:Object,sync:!0},maxDate:{type:Object,sync:!0},label:String,_cancelButton:{type:Object},_todayButton:{type:Object},calendars:{type:Array,value:()=>[]},years:{type:Array,value:()=>[]}}}static get observers(){return["__updateCalendars(calendars, i18n, minDate, maxDate, selectedDate, focusedDate, showWeekNumbers, _ignoreTaps, _theme)","__updateCancelButton(_cancelButton, i18n)","__updateTodayButton(_todayButton, i18n, minDate, maxDate)","__updateYears(years, selectedDate, _theme)"]}get __useSubMonthScrolling(){return this._monthScroller.clientHeight<this._monthScroller.itemHeight+this._monthScroller.bufferOffset}get focusableDateElement(){return this.calendars.map(e=>e.focusableDateElement).find(Boolean)}_addListeners(){va(this.$.scrollers,"pan-y"),Ee(this.$.scrollers,"track",this._track.bind(this)),Ee(this.shadowRoot.querySelector('[part="clear-button"]'),"tap",this._clear.bind(this)),Ee(this.shadowRoot.querySelector('[part="toggle-button"]'),"tap",this._cancel.bind(this)),Ee(this.shadowRoot.querySelector('[part="years-toggle-button"]'),"tap",this._toggleYearScroller.bind(this))}_initControllers(){this.addController(new Ua(this._desktopMediaQuery,e=>{this._desktopMode=e})),this.addController(new Ue(this,"today-button","vaadin-button",{observe:!1,initializer:e=>{e.setAttribute("theme","tertiary"),e.addEventListener("keydown",i=>this.__onTodayButtonKeyDown(i)),Ee(e,"tap",this._onTodayTap.bind(this)),this._todayButton=e}})),this.addController(new Ue(this,"cancel-button","vaadin-button",{observe:!1,initializer:e=>{e.setAttribute("theme","tertiary"),e.addEventListener("keydown",i=>this.__onCancelButtonKeyDown(i)),Ee(e,"tap",this._cancel.bind(this)),this._cancelButton=e}})),this.__initMonthScroller(),this.__initYearScroller()}reset(){this._closeYearScroller(),this._toggleAnimateClass(!0)}focusCancel(){this._cancelButton.focus()}scrollToDate(e,i){const o=this.__useSubMonthScrolling?this._calculateWeekScrollOffset(e):0;this._scrollToPosition(this._differenceInMonths(e,this._originDate)+o,i),this._monthScroller.forceUpdate()}__initMonthScroller(){this.addController(new Ue(this,"months","vaadin-date-picker-month-scroller",{observe:!1,initializer:e=>{e.addEventListener("custom-scroll",()=>{this._onMonthScroll()}),e.addEventListener("touchstart",()=>{this._onMonthScrollTouchStart()}),e.addEventListener("keydown",i=>{this.__onMonthCalendarKeyDown(i)}),e.addEventListener("init-done",()=>{const i=[...this.querySelectorAll("vaadin-month-calendar")];i.forEach(o=>{o.addEventListener("selected-date-changed",s=>{this.selectedDate=s.detail.value})}),this.calendars=i}),this._monthScroller=e}}))}__initYearScroller(){this.addController(new Ue(this,"years","vaadin-date-picker-year-scroller",{observe:!1,initializer:e=>{e.setAttribute("aria-hidden","true"),Ee(e,"tap",i=>{this._onYearTap(i)}),e.addEventListener("custom-scroll",()=>{this._onYearScroll()}),e.addEventListener("touchstart",()=>{this._onYearScrollTouchStart()}),e.addEventListener("init-done",()=>{this.years=[...this.querySelectorAll("vaadin-date-picker-year")]}),this._yearScroller=e}}))}__updateCancelButton(e,i){e&&(e.textContent=i&&i.cancel)}__updateTodayButton(e,i,o,s){e&&(e.textContent=i&&i.today,e.disabled=!this._isTodayAllowed(o,s))}__updateCalendars(e,i,o,s,n,a,l,u,c){e&&e.length&&e.forEach(h=>{h.i18n=i,h.minDate=o,h.maxDate=s,h.focusedDate=a,h.selectedDate=n,h.showWeekNumbers=l,h.ignoreTaps=u,c?h.setAttribute("theme",c):h.removeAttribute("theme")})}__updateYears(e,i,o){e&&e.length&&e.forEach(s=>{s.selectedDate=i,o?s.setAttribute("theme",o):s.removeAttribute("theme")})}_selectDate(e){this.selectedDate=e,this.dispatchEvent(new CustomEvent("date-selected",{detail:{date:e},bubbles:!0,composed:!0}))}_desktopModeChanged(e){this.toggleAttribute("desktop",e)}_focusedDateChanged(e){this.revealDate(e)}revealDate(e,i=!0){if(!e)return;const o=this._differenceInMonths(e,this._originDate);if(this.__useSubMonthScrolling){const u=this._calculateWeekScrollOffset(e);this._scrollToPosition(o+u,i);return}const s=this._monthScroller.position>o,a=Math.max(this._monthScroller.itemHeight,this._monthScroller.clientHeight-this._monthScroller.bufferOffset*2)/this._monthScroller.itemHeight,l=this._monthScroller.position+a-1<o;s?this._scrollToPosition(o,i):l&&this._scrollToPosition(o-a+1,i)}_calculateWeekScrollOffset(e){const i=new Date(0,0);i.setFullYear(e.getFullYear()),i.setMonth(e.getMonth()),i.setDate(1);let o=0;for(;i.getDate()<e.getDate();)i.setDate(i.getDate()+1),i.getDay()===this.i18n.firstDayOfWeek&&(o+=1);return o/6}_initialPositionChanged(e){this._monthScroller&&this._yearScroller&&(this._monthScroller.active=!0,this._yearScroller.active=!0),this.scrollToDate(e)}_repositionYearScroller(){const e=this._monthScroller.position;this._visibleMonthIndex=Math.floor(e),this._yearScroller.position=(e+this._originDate.getMonth())/12}_repositionMonthScroller(){this._monthScroller.position=this._yearScroller.position*12-this._originDate.getMonth(),this._visibleMonthIndex=Math.floor(this._monthScroller.position)}_onMonthScroll(){this._repositionYearScroller(),this._doIgnoreTaps()}_onYearScroll(){this._repositionMonthScroller(),this._doIgnoreTaps()}_onYearScrollTouchStart(){this._notTapping=!1,setTimeout(()=>{this._notTapping=!0},300),this._repositionMonthScroller()}_onMonthScrollTouchStart(){this._repositionYearScroller()}_doIgnoreTaps(){this._ignoreTaps=!0,this._debouncer=Vt.debounce(this._debouncer,wr.after(300),()=>{this._ignoreTaps=!1})}_formatDisplayed(e,i,o){return e&&i&&typeof i.formatDate=="function"?i.formatDate(Na(e)):o}_onTodayTap(){const e=new Date;Math.abs(this._monthScroller.position-this._differenceInMonths(e,this._originDate))<.001?(this._selectDate(e),this._close()):this._scrollToCurrentMonth()}_scrollToCurrentMonth(){this.focusedDate&&(this.focusedDate=new Date),this.scrollToDate(new Date,!0)}_onYearTap(e){if(!this._ignoreTaps&&!this._notTapping){const o=(e.detail.y-(this._yearScroller.getBoundingClientRect().top+this._yearScroller.clientHeight/2))/this._yearScroller.itemHeight;this._scrollToPosition(this._monthScroller.position+o*12,!0)}}_scrollToPosition(e,i){if(this._targetPosition!==void 0){this._targetPosition=e;return}if(!i){this._monthScroller.position=e,this._targetPosition=void 0,this._repositionYearScroller(),this.__tryFocusDate();return}this._targetPosition=e;let o;this._revealPromise=new Promise(u=>{o=u});const s=(u,c,h,d)=>(u/=d/2,u<1?h/2*u*u+c:(u-=1,-h/2*(u*(u-2)-1)+c));let n=0;const a=this._monthScroller.position,l=u=>{n||(n=u);const c=u-n;if(c<this.scrollDuration){const h=s(c,a,this._targetPosition-a,this.scrollDuration);this._monthScroller.position=h,window.requestAnimationFrame(l)}else this.dispatchEvent(new CustomEvent("scroll-animation-finished",{bubbles:!0,composed:!0,detail:{position:this._targetPosition,oldPosition:a}})),this._monthScroller.position=this._targetPosition,this._targetPosition=void 0,o(),this._revealPromise=void 0;setTimeout(this._repositionYearScroller.bind(this),1)};window.requestAnimationFrame(l)}_limit(e,i){return Math.min(i.max,Math.max(i.min,e))}_handleTrack(e){if(Math.abs(e.detail.dx)<10||Math.abs(e.detail.ddy)>10)return;Math.abs(e.detail.ddx)>this._yearScrollerWidth/3&&this._toggleAnimateClass(!0);const i=this._translateX+e.detail.ddx;this._translateX=this._limit(i,{min:0,max:this._yearScrollerWidth})}_track(e){if(!this._desktopMode)switch(e.detail.state){case"start":this._toggleAnimateClass(!1);break;case"track":this._handleTrack(e);break;case"end":this._toggleAnimateClass(!0),this._translateX>=this._yearScrollerWidth/2?this._closeYearScroller():this._openYearScroller();break}}_toggleAnimateClass(e){e?this.classList.add("animate"):this.classList.remove("animate")}_toggleYearScroller(){this._isYearScrollerVisible()?this._closeYearScroller():this._openYearScroller()}_openYearScroller(){this._translateX=0,this.setAttribute("years-visible","")}_closeYearScroller(){this.removeAttribute("years-visible"),this._translateX=this._yearScrollerWidth}_isYearScrollerVisible(){return this._translateX<this._yearScrollerWidth/2}_translateXChanged(e){this._desktopMode||(this._monthScroller.style.transform=`translateX(${e-this._yearScrollerWidth}px)`,this._yearScroller.style.transform=`translateX(${e}px)`)}_yearAfterXMonths(e){return La(e).getFullYear()}_differenceInMonths(e,i){return(e.getFullYear()-i.getFullYear())*12-i.getMonth()+e.getMonth()}_clear(){this._selectDate("")}_close(){this.dispatchEvent(new CustomEvent("close",{bubbles:!0,composed:!0}))}_cancel(){this.focusedDate=this.selectedDate,this._close()}_preventDefault(e){e.preventDefault()}__toggleDate(e){ke(e,this.selectedDate)?(this._clear(),this.focusedDate=e):this._selectDate(e)}__onMonthCalendarKeyDown(e){let i=!1;switch(e.key){case"ArrowDown":this._moveFocusByDays(7),i=!0;break;case"ArrowUp":this._moveFocusByDays(-7),i=!0;break;case"ArrowRight":this._moveFocusByDays(this.__isRTL?-1:1),i=!0;break;case"ArrowLeft":this._moveFocusByDays(this.__isRTL?1:-1),i=!0;break;case"Enter":this._selectDate(this.focusedDate),this._close(),i=!0;break;case" ":this.__toggleDate(this.focusedDate),i=!0;break;case"Home":this._moveFocusInsideMonth(this.focusedDate,"minDate"),i=!0;break;case"End":this._moveFocusInsideMonth(this.focusedDate,"maxDate"),i=!0;break;case"PageDown":this._moveFocusByMonths(e.shiftKey?12:1),i=!0;break;case"PageUp":this._moveFocusByMonths(e.shiftKey?-12:-1),i=!0;break;case"Tab":this._onTabKeyDown(e,"calendar");break}i&&(e.preventDefault(),e.stopPropagation())}_onTabKeyDown(e,i){switch(e.stopPropagation(),i){case"calendar":e.shiftKey&&(e.preventDefault(),this.hasAttribute("fullscreen")?this.focusCancel():this.__focusInput());break;case"today":e.shiftKey&&(e.preventDefault(),this.focusDateElement());break;case"cancel":e.shiftKey||(e.preventDefault(),this.hasAttribute("fullscreen")?this.focusDateElement():this.__focusInput());break}}__onTodayButtonKeyDown(e){e.key==="Tab"&&this._onTabKeyDown(e,"today")}__onCancelButtonKeyDown(e){e.key==="Tab"&&this._onTabKeyDown(e,"cancel")}__focusInput(){this.dispatchEvent(new CustomEvent("focus-input",{bubbles:!0,composed:!0}))}__tryFocusDate(){if(this.__pendingDateFocus){const i=this.focusableDateElement;i&&ke(i.date,this.__pendingDateFocus)&&(delete this.__pendingDateFocus,i.focus())}}focusDate(e,i){return wt(this,null,function*(){const o=e||this.selectedDate||this.initialPosition||new Date;this.focusedDate=o,i||(this._focusedMonthDate=o.getDate()),yield this.focusDateElement(!1)})}focusDateElement(e=!0){return wt(this,null,function*(){this.__pendingDateFocus=this.focusedDate,this.calendars.length||(yield new Promise(i=>{ka(this,()=>{Ra(),i()})})),e&&this.revealDate(this.focusedDate),this._revealPromise&&(yield this._revealPromise),this.__tryFocusDate()})}_focusClosestDate(e){this.focusDate(Ia(e,[this.minDate,this.maxDate]))}_focusAllowedDate(e,i,o){this._dateAllowed(e)?this.focusDate(e,o):this._dateAllowed(this.focusedDate)?i>0?this.focusDate(this.maxDate):this.focusDate(this.minDate):this._focusClosestDate(this.focusedDate)}_getDateDiff(e,i){const o=new Date(0,0);return o.setFullYear(this.focusedDate.getFullYear()),o.setMonth(this.focusedDate.getMonth()+e),i&&o.setDate(this.focusedDate.getDate()+i),o}_moveFocusByDays(e){const i=this._getDateDiff(0,e);this._focusAllowedDate(i,e,!1)}_moveFocusByMonths(e){const i=this._getDateDiff(e),o=i.getMonth();this._focusedMonthDate||(this._focusedMonthDate=this.focusedDate.getDate()),i.setDate(this._focusedMonthDate),i.getMonth()!==o&&i.setDate(0),this._focusAllowedDate(i,e,!0)}_moveFocusInsideMonth(e,i){const o=new Date(0,0);o.setFullYear(e.getFullYear()),i==="minDate"?(o.setMonth(e.getMonth()),o.setDate(1)):(o.setMonth(e.getMonth()+1),o.setDate(0)),this._dateAllowed(o)?this.focusDate(o):this._dateAllowed(e)?this.focusDate(this[i]):this._focusClosestDate(e)}_dateAllowed(e,i=this.minDate,o=this.maxDate){return(!i||e>=i)&&(!o||e<=o)}_isTodayAllowed(e,i){const o=new Date,s=new Date(0,0);return s.setFullYear(o.getFullYear()),s.setMonth(o.getMonth()),s.setDate(o.getDate()),this._dateAllowed(s,e,i)}};/**
|
|
3387
3387
|
* @license
|
|
3388
3388
|
* Copyright (c) 2016 - 2023 Vaadin Ltd.
|
|
3389
3389
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3390
|
-
*/const $f=
|
|
3390
|
+
*/const $f=A`
|
|
3391
3391
|
:host {
|
|
3392
3392
|
display: flex;
|
|
3393
3393
|
flex-direction: column;
|
|
@@ -3471,19 +3471,19 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
3471
3471
|
<slot name="today-button"></slot>
|
|
3472
3472
|
<slot name="cancel-button"></slot>
|
|
3473
3473
|
</div>
|
|
3474
|
-
`}static get is(){return"vaadin-date-picker-overlay-content"}ready(){super.ready(),this.setAttribute("role","dialog"),this._addListeners(),this._initControllers()}}
|
|
3474
|
+
`}static get is(){return"vaadin-date-picker-overlay-content"}ready(){super.ready(),this.setAttribute("role","dialog"),this._addListeners(),this._initControllers()}}ge(Hf);/**
|
|
3475
3475
|
* @license
|
|
3476
3476
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
3477
3477
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3478
|
-
*/const ja=J(t=>class extends
|
|
3478
|
+
*/const ja=J(t=>class extends yo(Ea(t)){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)}});/**
|
|
3479
3479
|
* @license
|
|
3480
3480
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
3481
3481
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3482
|
-
*/const
|
|
3482
|
+
*/const hi=new WeakMap;function Bf(t){return hi.has(t)||hi.set(t,new Set),hi.get(t)}function zf(t,r){const e=document.createElement("style");e.textContent=t,r===document?document.head.appendChild(e):r.insertBefore(e,r.firstChild)}const Ff=J(t=>class extends t{get slotStyles(){return{}}connectedCallback(){super.connectedCallback(),this.__applySlotStyles()}__applySlotStyles(){const e=this.getRootNode(),i=Bf(e);this.slotStyles.forEach(o=>{i.has(o)||(zf(o,e),i.add(o))})}});/**
|
|
3483
3483
|
* @license
|
|
3484
3484
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
3485
3485
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3486
|
-
*/const Va=J(t=>class extends t{static get properties(){return{inputElement:{type:Object,readOnly:!0,observer:"_inputElementChanged"},type:{type:String,readOnly:!0},value:{type:String,value:"",observer:"_valueChanged",notify:!0,sync:!0},_hasInputValue:{type:Boolean,value:!1,observer:"_hasInputValueChanged"}}}constructor(){super(),this._boundOnInput=this.__onInput.bind(this),this._boundOnChange=this._onChange.bind(this)}get _hasValue(){return this.value!=null&&this.value!==""}get _inputElementValueProperty(){return"value"}get _inputElementValue(){return this.inputElement?this.inputElement[this._inputElementValueProperty]:void 0}set _inputElementValue(e){this.inputElement&&(this.inputElement[this._inputElementValueProperty]=e)}clear(){this._hasInputValue=!1,this.value="",this._inputElementValue=""}_addInputListeners(e){e.addEventListener("input",this._boundOnInput),e.addEventListener("change",this._boundOnChange)}_removeInputListeners(e){e.removeEventListener("input",this._boundOnInput),e.removeEventListener("change",this._boundOnChange)}_forwardInputValue(e){this.inputElement&&(this._inputElementValue=e!=null?e:"")}_inputElementChanged(e,
|
|
3486
|
+
*/const Va=J(t=>class extends t{static get properties(){return{inputElement:{type:Object,readOnly:!0,observer:"_inputElementChanged"},type:{type:String,readOnly:!0},value:{type:String,value:"",observer:"_valueChanged",notify:!0,sync:!0},_hasInputValue:{type:Boolean,value:!1,observer:"_hasInputValueChanged"}}}constructor(){super(),this._boundOnInput=this.__onInput.bind(this),this._boundOnChange=this._onChange.bind(this)}get _hasValue(){return this.value!=null&&this.value!==""}get _inputElementValueProperty(){return"value"}get _inputElementValue(){return this.inputElement?this.inputElement[this._inputElementValueProperty]:void 0}set _inputElementValue(e){this.inputElement&&(this.inputElement[this._inputElementValueProperty]=e)}clear(){this._hasInputValue=!1,this.value="",this._inputElementValue=""}_addInputListeners(e){e.addEventListener("input",this._boundOnInput),e.addEventListener("change",this._boundOnChange)}_removeInputListeners(e){e.removeEventListener("input",this._boundOnInput),e.removeEventListener("change",this._boundOnChange)}_forwardInputValue(e){this.inputElement&&(this._inputElementValue=e!=null?e:"")}_inputElementChanged(e,i){e?this._addInputListeners(e):i&&this._removeInputListeners(i)}_hasInputValueChanged(e,i){(e||i)&&this.dispatchEvent(new CustomEvent("has-input-value-changed"))}__onInput(e){this._setHasInputValue(e),this._onInput(e)}_onInput(e){const i=e.composedPath()[0];this.__userInput=e.isTrusted,this.value=i.value,this.__userInput=!1}_onChange(e){}_toggleHasValue(e){this.toggleAttribute("has-value",e)}_valueChanged(e,i){this._toggleHasValue(this._hasValue),!(e===""&&i===void 0)&&(this.__userInput||this._forwardInputValue(e))}_setHasInputValue(e){const i=e.composedPath()[0];this._hasInputValue=i.value.length>0}});/**
|
|
3487
3487
|
* @license
|
|
3488
3488
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
3489
3489
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
@@ -3491,27 +3491,27 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
3491
3491
|
* @license
|
|
3492
3492
|
* Copyright (c) 2023 Vaadin Ltd.
|
|
3493
3493
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3494
|
-
*/const
|
|
3494
|
+
*/const di=new Map;function wo(t){return di.has(t)||di.set(t,new WeakMap),di.get(t)}function Ya(t,r){t&&t.removeAttribute(r)}function Ga(t,r){if(!t||!r)return;const e=wo(r);if(e.has(t))return;const i=ho(t.getAttribute(r));e.set(t,new Set(i))}function Uf(t,r){if(!t||!r)return;const e=wo(r),i=e.get(t);!i||i.size===0?t.removeAttribute(r):fa(t,r,Nr(i)),e.delete(t)}function pi(t,r,e={newId:null,oldId:null,fromUser:!1}){if(!t||!r)return;const{newId:i,oldId:o,fromUser:s}=e,n=wo(r),a=n.get(t);if(!s&&a){o&&a.delete(o),i&&a.add(i);return}s&&(a?i||n.delete(t):Ga(t,r),Ya(t,r)),ip(t,r,o);const l=i||Nr(a);l&&fa(t,r,l)}function jf(t,r){Ga(t,r),Ya(t,r)}/**
|
|
3495
3495
|
* @license
|
|
3496
3496
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
3497
3497
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3498
|
-
*/class Vf{constructor(r){this.host=r,this.__required=!1}setTarget(r){this.__target=r,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(r){this.__setAriaRequiredAttribute(r),this.__required=r}setAriaLabel(r){this.__setAriaLabelToAttribute(r),this.__label=r}setLabelId(r,e=!1){const
|
|
3498
|
+
*/class Vf{constructor(r){this.host=r,this.__required=!1}setTarget(r){this.__target=r,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(r){this.__setAriaRequiredAttribute(r),this.__required=r}setAriaLabel(r){this.__setAriaLabelToAttribute(r),this.__label=r}setLabelId(r,e=!1){const i=e?this.__labelIdFromUser:this.__labelId;this.__setLabelIdToAriaAttribute(r,i,e),e?this.__labelIdFromUser=r:this.__labelId=r}setErrorId(r){this.__setErrorIdToAriaAttribute(r,this.__errorId),this.__errorId=r}setHelperId(r){this.__setHelperIdToAriaAttribute(r,this.__helperId),this.__helperId=r}__setAriaLabelToAttribute(r){this.__target&&(r?(jf(this.__target,"aria-labelledby"),this.__target.setAttribute("aria-label",r)):this.__label&&(Uf(this.__target,"aria-labelledby"),this.__target.removeAttribute("aria-label")))}__setLabelIdToAriaAttribute(r,e,i){pi(this.__target,"aria-labelledby",{newId:r,oldId:e,fromUser:i})}__setErrorIdToAriaAttribute(r,e){pi(this.__target,"aria-describedby",{newId:r,oldId:e,fromUser:!1})}__setHelperIdToAriaAttribute(r,e){pi(this.__target,"aria-describedby",{newId:r,oldId:e,fromUser:!1})}__setAriaRequiredAttribute(r){this.__target&&(["input","textarea"].includes(this.__target.localName)||(r?this.__target.setAttribute("aria-required","true"):this.__target.removeAttribute("aria-required")))}}/**
|
|
3499
3499
|
* @license
|
|
3500
3500
|
* Copyright (c) 2022 - 2023 Vaadin Ltd.
|
|
3501
3501
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3502
|
-
*/class
|
|
3502
|
+
*/class Eo extends Ue{constructor(r,e,i,o={}){super(r,e,i,Zt(Jt({},o),{useUniqueId:!0}))}initCustomNode(r){this.__updateNodeId(r),this.__notifyChange(r)}teardownNode(r){const e=this.getSlotChild();e&&e!==this.defaultNode?this.__notifyChange(e):(this.restoreDefaultNode(),this.updateDefaultNode(this.node))}attachDefaultNode(){const r=super.attachDefaultNode();return r&&this.__updateNodeId(r),r}restoreDefaultNode(){}updateDefaultNode(r){this.__notifyChange(r)}observeNode(r){this.__nodeObserver&&this.__nodeObserver.disconnect(),this.__nodeObserver=new MutationObserver(e=>{e.forEach(i=>{const o=i.target,s=o===this.node;i.type==="attributes"?s&&this.__updateNodeId(o):(s||o.parentElement===this.node)&&this.__notifyChange(this.node)})}),this.__nodeObserver.observe(r,{attributes:!0,attributeFilter:["id"],childList:!0,subtree:!0,characterData:!0})}__hasContent(r){return r?r.nodeType===Node.ELEMENT_NODE&&(customElements.get(r.localName)||r.children.length>0)||r.textContent&&r.textContent.trim()!=="":!1}__notifyChange(r){this.dispatchEvent(new CustomEvent("slot-content-changed",{detail:{hasContent:this.__hasContent(r),node:r}}))}__updateNodeId(r){const e=!this.nodes||r===this.nodes[0];r.nodeType===Node.ELEMENT_NODE&&(!this.multiple||e)&&!r.id&&(r.id=this.defaultId)}}/**
|
|
3503
3503
|
* @license
|
|
3504
3504
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
3505
3505
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3506
|
-
*/class Yf extends
|
|
3506
|
+
*/class Yf extends Eo{constructor(r){super(r,"error-message","div")}setErrorMessage(r){this.errorMessage=r,this.updateDefaultNode(this.node)}setInvalid(r){this.invalid=r,this.updateDefaultNode(this.node)}initAddedNode(r){r!==this.defaultNode&&this.initCustomNode(r)}initNode(r){this.updateDefaultNode(r)}initCustomNode(r){r.textContent&&!this.errorMessage&&(this.errorMessage=r.textContent.trim()),super.initCustomNode(r)}restoreDefaultNode(){this.attachDefaultNode()}updateDefaultNode(r){const{errorMessage:e,invalid:i}=this,o=!!(i&&e&&e.trim()!=="");r&&(r.textContent=o?e:"",r.hidden=!o,o?r.setAttribute("role","alert"):r.removeAttribute("role")),super.updateDefaultNode(r)}}/**
|
|
3507
3507
|
* @license
|
|
3508
3508
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
3509
3509
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3510
|
-
*/class Gf extends
|
|
3510
|
+
*/class Gf extends Eo{constructor(r){super(r,"helper",null)}setHelperText(r){this.helperText=r,this.getSlotChild()||this.restoreDefaultNode(),this.node===this.defaultNode&&this.updateDefaultNode(this.node)}restoreDefaultNode(){const{helperText:r}=this;if(r&&r.trim()!==""){this.tagName="div";const e=this.attachDefaultNode();this.observeNode(e)}}updateDefaultNode(r){r&&(r.textContent=this.helperText),super.updateDefaultNode(r)}initCustomNode(r){super.initCustomNode(r),this.observeNode(r)}}/**
|
|
3511
3511
|
* @license
|
|
3512
3512
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
3513
3513
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3514
|
-
*/class Wf extends
|
|
3514
|
+
*/class Wf extends Eo{constructor(r){super(r,"label","label")}setLabel(r){this.label=r,this.getSlotChild()||this.restoreDefaultNode(),this.node===this.defaultNode&&this.updateDefaultNode(this.node)}restoreDefaultNode(){const{label:r}=this;if(r&&r.trim()!==""){const e=this.attachDefaultNode();this.observeNode(e)}}updateDefaultNode(r){r&&(r.textContent=this.label),super.updateDefaultNode(r)}initCustomNode(r){super.initCustomNode(r),this.observeNode(r)}}/**
|
|
3515
3515
|
* @license
|
|
3516
3516
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
3517
3517
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
@@ -3523,15 +3523,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
3523
3523
|
* @license
|
|
3524
3524
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
3525
3525
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3526
|
-
*/const Xf=t=>class extends Wa(qf(xt(t))){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 Vf(this),this._helperController=new Gf(this),this._errorController=new Yf(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:
|
|
3526
|
+
*/const Xf=t=>class extends Wa(qf(xt(t))){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 Vf(this),this._helperController=new Gf(this),this._errorController=new Yf(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:o}=e.detail;this.__labelChanged(i,o)}),this._helperController.addEventListener("slot-content-changed",e=>{const{hasContent:i,node:o}=e.detail;this.toggleAttribute("has-helper",i),this.__helperChanged(i,o)})}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)})}};/**
|
|
3527
3527
|
* @license
|
|
3528
3528
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
3529
3529
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3530
|
-
*/const Kf=J(t=>class extends t{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((o
|
|
3530
|
+
*/const Kf=J(t=>class extends t{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,o)=>{this._delegateAttribute(i,e[o])})}_delegatePropsChanged(...e){this.constructor.delegateProps.forEach((i,o)=>{this._delegateProperty(i,e[o])})}_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)}});/**
|
|
3531
3531
|
* @license
|
|
3532
3532
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
3533
3533
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3534
|
-
*/const qa=J(t=>class extends Kf(Wa(Va(t))){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(
|
|
3534
|
+
*/const qa=J(t=>class extends Kf(Wa(Va(t))){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 o=this._hasValidConstraints(i),s=this.__previousHasConstraints&&!o;(this._hasValue||this.invalid)&&o?this.validate():s&&this._setInvalid(!1),this.__previousHasConstraints=o}_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}});/**
|
|
3535
3535
|
* @license
|
|
3536
3536
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
3537
3537
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
@@ -3540,19 +3540,19 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
3540
3540
|
font: inherit;
|
|
3541
3541
|
color: inherit;
|
|
3542
3542
|
}
|
|
3543
|
-
`]}_onFocus(e){super._onFocus(e),this.autoselect&&this.inputElement&&this.inputElement.select()}_onChange(e){e.stopPropagation(),this.validate(),this.dispatchEvent(new CustomEvent("change",{detail:{sourceEvent:e},bubbles:e.bubbles,cancelable:e.cancelable}))}_addInputListeners(e){super._addInputListeners(e),e.addEventListener("paste",this._boundOnPaste),e.addEventListener("drop",this._boundOnDrop),e.addEventListener("beforeinput",this._boundOnBeforeInput)}_removeInputListeners(e){super._removeInputListeners(e),e.removeEventListener("paste",this._boundOnPaste),e.removeEventListener("drop",this._boundOnDrop),e.removeEventListener("beforeinput",this._boundOnBeforeInput)}_onKeyDown(e){super._onKeyDown(e),this.allowedCharPattern&&!this.__shouldAcceptKey(e)&&(e.preventDefault(),this._markInputPrevented())}_markInputPrevented(){this.setAttribute("input-prevented",""),this._preventInputDebouncer=Vt.debounce(this._preventInputDebouncer,wr.after(200),()=>{this.removeAttribute("input-prevented")})}__shouldAcceptKey(e){return e.metaKey||e.ctrlKey||!e.key||e.key.length!==1||this.__allowedCharRegExp.test(e.key)}_onPaste(e){if(this.allowedCharPattern){const
|
|
3543
|
+
`]}_onFocus(e){super._onFocus(e),this.autoselect&&this.inputElement&&this.inputElement.select()}_onChange(e){e.stopPropagation(),this.validate(),this.dispatchEvent(new CustomEvent("change",{detail:{sourceEvent:e},bubbles:e.bubbles,cancelable:e.cancelable}))}_addInputListeners(e){super._addInputListeners(e),e.addEventListener("paste",this._boundOnPaste),e.addEventListener("drop",this._boundOnDrop),e.addEventListener("beforeinput",this._boundOnBeforeInput)}_removeInputListeners(e){super._removeInputListeners(e),e.removeEventListener("paste",this._boundOnPaste),e.removeEventListener("drop",this._boundOnDrop),e.removeEventListener("beforeinput",this._boundOnBeforeInput)}_onKeyDown(e){super._onKeyDown(e),this.allowedCharPattern&&!this.__shouldAcceptKey(e)&&(e.preventDefault(),this._markInputPrevented())}_markInputPrevented(){this.setAttribute("input-prevented",""),this._preventInputDebouncer=Vt.debounce(this._preventInputDebouncer,wr.after(200),()=>{this.removeAttribute("input-prevented")})}__shouldAcceptKey(e){return e.metaKey||e.ctrlKey||!e.key||e.key.length!==1||this.__allowedCharRegExp.test(e.key)}_onPaste(e){if(this.allowedCharPattern){const i=e.clipboardData.getData("text");this.__allowedTextRegExp.test(i)||(e.preventDefault(),this._markInputPrevented())}}_onDrop(e){if(this.allowedCharPattern){const i=e.dataTransfer.getData("text");this.__allowedTextRegExp.test(i)||(e.preventDefault(),this._markInputPrevented())}}_onBeforeInput(e){this.allowedCharPattern&&e.data&&!this.__allowedTextRegExp.test(e.data)&&(e.preventDefault(),this._markInputPrevented())}_allowedCharPatternChanged(e){if(e)try{this.__allowedCharRegExp=new RegExp(`^${e}$`,"u"),this.__allowedTextRegExp=new RegExp(`^${e}*$`,"u")}catch(i){console.error(i)}}};/**
|
|
3544
3544
|
* @license
|
|
3545
3545
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
3546
3546
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3547
|
-
*/class Zf extends Ue{constructor(r,e){super(r,"input","input",{initializer:(o
|
|
3547
|
+
*/class Zf extends Ue{constructor(r,e){super(r,"input","input",{initializer:(i,o)=>{o.value&&(i.value=o.value),o.type&&i.setAttribute("type",o.type),i.id=this.defaultId,typeof e=="function"&&e(i)},useUniqueId:!0})}}/**
|
|
3548
3548
|
* @license
|
|
3549
3549
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
3550
3550
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3551
|
-
*/class Qf{constructor(r,e){this.input=r,this.__preventDuplicateLabelClick=this.__preventDuplicateLabelClick.bind(this),e.addEventListener("slot-content-changed",
|
|
3551
|
+
*/class Qf{constructor(r,e){this.input=r,this.__preventDuplicateLabelClick=this.__preventDuplicateLabelClick.bind(this),e.addEventListener("slot-content-changed",i=>{this.__initLabel(i.detail.node)}),this.__initLabel(e.node)}__initLabel(r){r&&(r.addEventListener("click",this.__preventDuplicateLabelClick),this.input&&r.setAttribute("for",this.input.id))}__preventDuplicateLabelClick(){const r=e=>{e.stopImmediatePropagation(),this.input.removeEventListener("click",r)};this.input.addEventListener("click",r)}}/**
|
|
3552
3552
|
* @license
|
|
3553
3553
|
* Copyright (c) 2021 - 2023 Vaadin Ltd..
|
|
3554
3554
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3555
|
-
*/const em=
|
|
3555
|
+
*/const em=A`
|
|
3556
3556
|
[part='clear-button'] {
|
|
3557
3557
|
display: none;
|
|
3558
3558
|
cursor: default;
|
|
@@ -3569,7 +3569,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
3569
3569
|
* @license
|
|
3570
3570
|
* Copyright (c) 2021 - 2023 Vaadin Ltd..
|
|
3571
3571
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3572
|
-
*/const tm=
|
|
3572
|
+
*/const tm=A`
|
|
3573
3573
|
:host {
|
|
3574
3574
|
display: inline-flex;
|
|
3575
3575
|
outline: none;
|
|
@@ -3607,7 +3607,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
3607
3607
|
* @license
|
|
3608
3608
|
* Copyright (c) 2021 - 2023 Vaadin Ltd..
|
|
3609
3609
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3610
|
-
*/const rm=
|
|
3610
|
+
*/const rm=A`
|
|
3611
3611
|
[class$='container'] {
|
|
3612
3612
|
display: flex;
|
|
3613
3613
|
flex-direction: column;
|
|
@@ -3619,11 +3619,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
3619
3619
|
* @license
|
|
3620
3620
|
* Copyright (c) 2021 - 2023 Vaadin Ltd..
|
|
3621
3621
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3622
|
-
*/const
|
|
3622
|
+
*/const im=[tm,rm,em];/**
|
|
3623
3623
|
* @license
|
|
3624
3624
|
* Copyright (c) 2023 Vaadin Ltd.
|
|
3625
3625
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3626
|
-
*/const
|
|
3626
|
+
*/const om=t=>class extends t{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:o}=i;if(this.__initialClasses||(this.__initialClasses=new Set(o)),Array.isArray(this.__previousClasses)){const n=this.__previousClasses.filter(a=>!this.__initialClasses.has(a));n.length>0&&o.remove(...n)}const s=typeof e=="string"?e.split(" "):[];s.length>0&&o.add(...s),this.__previousClasses=s}};/**
|
|
3627
3627
|
* @license
|
|
3628
3628
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
3629
3629
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
@@ -3631,11 +3631,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
3631
3631
|
* @license
|
|
3632
3632
|
* Copyright (c) 2016 - 2023 Vaadin Ltd.
|
|
3633
3633
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3634
|
-
*/const nm=t=>class extends im(xt(ja(qa(Lr(t))))){static get properties(){return{_selectedDate:{type:Object,sync:!0},_focusedDate:{type:Object,sync:!0},value:{type:String,notify:!0,value:"",sync:!0},initialPosition:String,opened:{type:Boolean,reflectToAttribute:!0,notify:!0,observer:"_openedChanged",sync:!0},autoOpenDisabled:Boolean,showWeekNumbers:{type:Boolean,value:!1,sync:!0},_fullscreen:{type:Boolean,value:!1,sync:!0},_fullscreenMediaQuery:{value:"(max-width: 420px), (max-height: 420px)"},i18n:{type:Object,sync:!0,value:()=>({monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],firstDayOfWeek:0,today:"Today",cancel:"Cancel",referenceDate:"",formatDate(e){const o=String(e.year).replace(/\d+/u,i=>"0000".substr(i.length)+i);return[e.month+1,e.day,o].join("/")},parseDate(e){const o=e.split("/"),i=new Date;let s,n=i.getMonth(),a=i.getFullYear();if(o.length===3){if(n=parseInt(o[0])-1,s=parseInt(o[1]),a=parseInt(o[2]),o[2].length<3&&a>=0){const l=this.referenceDate?Pt(this.referenceDate):new Date;a=cf(l,a,n,s)}}else o.length===2?(n=parseInt(o[0])-1,s=parseInt(o[1])):o.length===1&&(s=parseInt(o[0]));if(s!==void 0)return{day:s,month:n,year:a}},formatTitle:(e,o)=>`${e} ${o}`})},min:{type:String,sync:!0},max:{type:String,sync:!0},_minDate:{type:Date,computed:"__computeMinOrMaxDate(min)",sync:!0},_maxDate:{type:Date,computed:"__computeMinOrMaxDate(max)",sync:!0},_noInput:{type:Boolean,computed:"_isNoInput(inputElement, _fullscreen, _ios, i18n, opened, autoOpenDisabled)"},_ios:{type:Boolean,value:Oa},_focusOverlayOnOpen:Boolean,_overlayContent:{type:Object,sync:!0},_hasInputValue:{type:Boolean}}}static get observers(){return["_selectedDateChanged(_selectedDate, i18n)","_focusedDateChanged(_focusedDate, i18n)","__updateOverlayContent(_overlayContent, i18n, label, _minDate, _maxDate, _focusedDate, _selectedDate, showWeekNumbers)","__updateOverlayContentTheme(_overlayContent, _theme)","__updateOverlayContentFullScreen(_overlayContent, _fullscreen)"]}static get constraints(){return[...super.constraints,"min","max"]}constructor(){super(),this._boundOnClick=this._onClick.bind(this),this._boundOnScroll=this._onScroll.bind(this),this._boundOverlayRenderer=this._overlayRenderer.bind(this)}get _inputElementValue(){return super._inputElementValue}set _inputElementValue(e){super._inputElementValue=e,this._hasInputValue=!1}get clearElement(){return null}get _nativeInput(){return this.inputElement?this.inputElement.focusElement||this.inputElement:null}_onFocus(e){super._onFocus(e),this._noInput&&e.target.blur()}_onBlur(e){super._onBlur(e),this.opened||(this._selectParsedOrFocusedDate(),document.hasFocus()&&this.validate())}ready(){super.ready(),this.addEventListener("click",this._boundOnClick),this.addController(new Ua(this._fullscreenMediaQuery,o=>{this._fullscreen=o})),this.addController(new sm(this));const e=this.$.overlay;this._overlayElement=e,e.renderer=this._boundOverlayRenderer,this.addEventListener("mousedown",()=>this.__bringToFront()),this.addEventListener("touchstart",()=>this.__bringToFront())}disconnectedCallback(){super.disconnectedCallback(),this.opened=!1}open(){!this.disabled&&!this.readonly&&(this.opened=!0)}close(){this.$.overlay.close()}_overlayRenderer(e){if(e.firstChild)return;const o=document.createElement("vaadin-date-picker-overlay-content");e.appendChild(o),this._overlayContent=o,o.addEventListener("close",()=>{this._close()}),o.addEventListener("focus-input",this._focusAndSelect.bind(this)),o.addEventListener("date-tap",i=>{this.__userConfirmedDate=!0,this._selectDate(i.detail.date),this._close()}),o.addEventListener("date-selected",i=>{this.__userConfirmedDate=!!i.detail.date,this._selectDate(i.detail.date)}),o.addEventListener("focusin",()=>{this._keyboardActive&&this._setFocused(!0)}),o.addEventListener("focused-date-changed",i=>{this._focusedDate=i.detail.value})}__parseDate(e){if(!this.i18n.parseDate)return;let o=this.i18n.parseDate(e);if(o&&(o=Pt(`${o.year}-${o.month+1}-${o.day}`)),o&&!isNaN(o.getTime()))return o}__formatDate(e){if(this.i18n.formatDate)return this.i18n.formatDate(Na(e))}checkValidity(){const e=this._inputElementValue,o=!e||!!this._selectedDate&&e===this.__formatDate(this._selectedDate),i=!this._selectedDate||Yt(this._selectedDate,this._minDate,this._maxDate);let s=!0;return this.inputElement&&(this.inputElement.checkValidity?s=this.inputElement.checkValidity():this.inputElement.validate&&(s=this.inputElement.validate())),o&&i&&s}_shouldSetFocus(e){return!this._shouldKeepFocusRing}_shouldRemoveFocus(e){return!this.opened}_setFocused(e){super._setFocused(e),this._shouldKeepFocusRing=e&&this._keyboardActive}__dispatchChange(){this.validate(),this.dispatchEvent(new CustomEvent("change",{bubbles:!0}))}_selectDate(e){const o=this.value;this._selectedDate=e,o!==this.value&&this.__dispatchChange()}_close(){this._focus(),this.close()}__bringToFront(){requestAnimationFrame(()=>{this.$.overlay.bringToFront()})}_isNoInput(e,o,i,s,n,a){return!e||o&&(!a||n)||i&&n||!s.parseDate}_formatISO(e){if(!(e instanceof Date))return"";const o=(c,h="00")=>(h+c).substr((h+c).length-h.length);let i="",s="0000",n=e.getFullYear();n<0?(n=-n,i="-",s="000000"):e.getFullYear()>=1e4&&(i="+",s="000000");const a=i+o(n,s),l=o(e.getMonth()+1),u=o(e.getDate());return[a,l,u].join("-")}_inputElementChanged(e){super._inputElementChanged(e),e&&(e.autocomplete="off",e.setAttribute("role","combobox"),e.setAttribute("aria-haspopup","dialog"),e.setAttribute("aria-expanded",!!this.opened),this._applyInputValue(this._selectedDate))}_openedChanged(e){this.inputElement&&this.inputElement.setAttribute("aria-expanded",e)}_selectedDateChanged(e,o){e===void 0||o===void 0||(this.__keepInputValue||this._applyInputValue(e),this.value=this._formatISO(e),this._ignoreFocusedDateChange=!0,this._focusedDate=e,this._ignoreFocusedDateChange=!1)}_focusedDateChanged(e,o){e===void 0||o===void 0||!this._ignoreFocusedDateChange&&!this._noInput&&this._applyInputValue(e)}_valueChanged(e,o){const i=Pt(e);if(e&&!i){this.value=o;return}e?ke(this._selectedDate,i)||(this._selectedDate=i,o!==void 0&&this.validate()):this._selectedDate=null,this._toggleHasValue(this._hasValue)}__updateOverlayContent(e,o,i,s,n,a,l,u){e&&(e.i18n=o,e.label=i,e.minDate=s,e.maxDate=n,e.focusedDate=a,e.selectedDate=l,e.showWeekNumbers=u)}__updateOverlayContentTheme(e,o){e&&(o?e.setAttribute("theme",o):e.removeAttribute("theme"))}__updateOverlayContentFullScreen(e,o){e&&e.toggleAttribute("fullscreen",o)}_onOverlayEscapePress(){this._focusedDate=this._selectedDate,this._close()}_onOverlayOpened(){const e=this._overlayContent;e.reset();const o=this._getInitialPosition();e.initialPosition=o;const i=e.focusedDate||o;e.scrollToDate(i),this._ignoreFocusedDateChange=!0,e.focusedDate=i,this._ignoreFocusedDateChange=!1,window.addEventListener("scroll",this._boundOnScroll,!0),this._focusOverlayOnOpen?(e.focusDateElement(),this._focusOverlayOnOpen=!1):this._focus();const s=this._nativeInput;this._noInput&&s&&(s.blur(),this._overlayContent.focusDateElement());const n=this._noInput?e:[s,e];this.__showOthers=Ma(n)}_getInitialPosition(){const e=Pt(this.initialPosition),o=this._selectedDate||this._overlayContent.initialPosition||e||new Date;return e||Yt(o,this._minDate,this._maxDate)?o:Ia(o,[this._minDate,this._maxDate])}_selectParsedOrFocusedDate(){if(this._ignoreFocusedDateChange=!0,this.i18n.parseDate){const e=this._inputElementValue||"",o=this.__parseDate(e);o?this._selectDate(o):(this.__keepInputValue=!0,this._selectDate(null),this._selectedDate=null,this.__keepInputValue=!1)}else this._focusedDate&&this._selectDate(this._focusedDate);this._ignoreFocusedDateChange=!1}_onOverlayClosed(){this.__showOthers&&(this.__showOthers(),this.__showOthers=null),window.removeEventListener("scroll",this._boundOnScroll,!0),this.__userConfirmedDate?this.__userConfirmedDate=!1:this._selectParsedOrFocusedDate(),this._nativeInput&&this._nativeInput.selectionStart&&(this._nativeInput.selectionStart=this._nativeInput.selectionEnd),!this.value&&!this._keyboardActive&&this.validate()}_onScroll(e){(e.target===window||!this._overlayContent.contains(e.target))&&this._overlayContent._repositionYearScroller()}_focus(){this._noInput||this.inputElement.focus()}_focusAndSelect(){this._focus(),this._setSelectionRange(0,this._inputElementValue.length)}_applyInputValue(e){this._inputElementValue=e?this.__formatDate(e):""}_setSelectionRange(e,o){this._nativeInput&&this._nativeInput.setSelectionRange&&this._nativeInput.setSelectionRange(e,o)}_onChange(e){e.stopPropagation()}_onClick(e){this._isClearButton(e)||this._onHostClick(e)}_onHostClick(e){(!this.autoOpenDisabled||this._noInput)&&(e.preventDefault(),this.open())}_onClearButtonClick(e){e.preventDefault(),this._inputElementValue="",this.value="",this.__dispatchChange()}_onKeyDown(e){switch(super._onKeyDown(e),this._noInput&&[9].indexOf(e.keyCode)===-1&&e.preventDefault(),e.key){case"ArrowDown":case"ArrowUp":e.preventDefault(),this.opened?this._overlayContent.focusDateElement():(this._focusOverlayOnOpen=!0,this.open());break;case"Tab":this.opened&&(e.preventDefault(),e.stopPropagation(),this._setSelectionRange(0,0),e.shiftKey?this._overlayContent.focusCancel():this._overlayContent.focusDateElement());break}}_onEnter(e){const o=this.value;this.opened?this.close():this._selectParsedOrFocusedDate(),o===this.value&&this.validate()}_onEscape(e){if(!this.opened){if(this.clearButtonVisible&&this.value){e.stopPropagation(),this._onClearButtonClick(e);return}this.autoOpenDisabled?(this.inputElement.value===""&&this._selectDate(null),this._applyInputValue(this._selectedDate)):(this._focusedDate=this._selectedDate,this._selectParsedOrFocusedDate())}}_isClearButton(e){return e.composedPath()[0]===this.clearElement}_onInput(){if(!this.opened&&this._inputElementValue&&!this.autoOpenDisabled&&this.open(),this._inputElementValue){const e=this.__parseDate(this._inputElementValue);e&&(this._ignoreFocusedDateChange=!0,ke(e,this._focusedDate)||(this._focusedDate=e),this._ignoreFocusedDateChange=!1)}}__computeMinOrMaxDate(e){return Pt(e)}};/**
|
|
3634
|
+
*/const nm=t=>class extends om(xt(ja(qa(Lr(t))))){static get properties(){return{_selectedDate:{type:Object,sync:!0},_focusedDate:{type:Object,sync:!0},value:{type:String,notify:!0,value:"",sync:!0},initialPosition:String,opened:{type:Boolean,reflectToAttribute:!0,notify:!0,observer:"_openedChanged",sync:!0},autoOpenDisabled:Boolean,showWeekNumbers:{type:Boolean,value:!1,sync:!0},_fullscreen:{type:Boolean,value:!1,sync:!0},_fullscreenMediaQuery:{value:"(max-width: 420px), (max-height: 420px)"},i18n:{type:Object,sync:!0,value:()=>({monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],firstDayOfWeek:0,today:"Today",cancel:"Cancel",referenceDate:"",formatDate(e){const i=String(e.year).replace(/\d+/u,o=>"0000".substr(o.length)+o);return[e.month+1,e.day,i].join("/")},parseDate(e){const i=e.split("/"),o=new Date;let s,n=o.getMonth(),a=o.getFullYear();if(i.length===3){if(n=parseInt(i[0])-1,s=parseInt(i[1]),a=parseInt(i[2]),i[2].length<3&&a>=0){const l=this.referenceDate?Pt(this.referenceDate):new Date;a=cf(l,a,n,s)}}else i.length===2?(n=parseInt(i[0])-1,s=parseInt(i[1])):i.length===1&&(s=parseInt(i[0]));if(s!==void 0)return{day:s,month:n,year:a}},formatTitle:(e,i)=>`${e} ${i}`})},min:{type:String,sync:!0},max:{type:String,sync:!0},_minDate:{type:Date,computed:"__computeMinOrMaxDate(min)",sync:!0},_maxDate:{type:Date,computed:"__computeMinOrMaxDate(max)",sync:!0},_noInput:{type:Boolean,computed:"_isNoInput(inputElement, _fullscreen, _ios, i18n, opened, autoOpenDisabled)"},_ios:{type:Boolean,value:Oa},_focusOverlayOnOpen:Boolean,_overlayContent:{type:Object,sync:!0},_hasInputValue:{type:Boolean}}}static get observers(){return["_selectedDateChanged(_selectedDate, i18n)","_focusedDateChanged(_focusedDate, i18n)","__updateOverlayContent(_overlayContent, i18n, label, _minDate, _maxDate, _focusedDate, _selectedDate, showWeekNumbers)","__updateOverlayContentTheme(_overlayContent, _theme)","__updateOverlayContentFullScreen(_overlayContent, _fullscreen)"]}static get constraints(){return[...super.constraints,"min","max"]}constructor(){super(),this._boundOnClick=this._onClick.bind(this),this._boundOnScroll=this._onScroll.bind(this),this._boundOverlayRenderer=this._overlayRenderer.bind(this)}get _inputElementValue(){return super._inputElementValue}set _inputElementValue(e){super._inputElementValue=e,this._hasInputValue=!1}get clearElement(){return null}get _nativeInput(){return this.inputElement?this.inputElement.focusElement||this.inputElement:null}_onFocus(e){super._onFocus(e),this._noInput&&e.target.blur()}_onBlur(e){super._onBlur(e),this.opened||(this._selectParsedOrFocusedDate(),document.hasFocus()&&this.validate())}ready(){super.ready(),this.addEventListener("click",this._boundOnClick),this.addController(new Ua(this._fullscreenMediaQuery,i=>{this._fullscreen=i})),this.addController(new sm(this));const e=this.$.overlay;this._overlayElement=e,e.renderer=this._boundOverlayRenderer,this.addEventListener("mousedown",()=>this.__bringToFront()),this.addEventListener("touchstart",()=>this.__bringToFront())}disconnectedCallback(){super.disconnectedCallback(),this.opened=!1}open(){!this.disabled&&!this.readonly&&(this.opened=!0)}close(){this.$.overlay.close()}_overlayRenderer(e){if(e.firstChild)return;const i=document.createElement("vaadin-date-picker-overlay-content");e.appendChild(i),this._overlayContent=i,i.addEventListener("close",()=>{this._close()}),i.addEventListener("focus-input",this._focusAndSelect.bind(this)),i.addEventListener("date-tap",o=>{this.__userConfirmedDate=!0,this._selectDate(o.detail.date),this._close()}),i.addEventListener("date-selected",o=>{this.__userConfirmedDate=!!o.detail.date,this._selectDate(o.detail.date)}),i.addEventListener("focusin",()=>{this._keyboardActive&&this._setFocused(!0)}),i.addEventListener("focused-date-changed",o=>{this._focusedDate=o.detail.value})}__parseDate(e){if(!this.i18n.parseDate)return;let i=this.i18n.parseDate(e);if(i&&(i=Pt(`${i.year}-${i.month+1}-${i.day}`)),i&&!isNaN(i.getTime()))return i}__formatDate(e){if(this.i18n.formatDate)return this.i18n.formatDate(Na(e))}checkValidity(){const e=this._inputElementValue,i=!e||!!this._selectedDate&&e===this.__formatDate(this._selectedDate),o=!this._selectedDate||Yt(this._selectedDate,this._minDate,this._maxDate);let s=!0;return this.inputElement&&(this.inputElement.checkValidity?s=this.inputElement.checkValidity():this.inputElement.validate&&(s=this.inputElement.validate())),i&&o&&s}_shouldSetFocus(e){return!this._shouldKeepFocusRing}_shouldRemoveFocus(e){return!this.opened}_setFocused(e){super._setFocused(e),this._shouldKeepFocusRing=e&&this._keyboardActive}__dispatchChange(){this.validate(),this.dispatchEvent(new CustomEvent("change",{bubbles:!0}))}_selectDate(e){const i=this.value;this._selectedDate=e,i!==this.value&&this.__dispatchChange()}_close(){this._focus(),this.close()}__bringToFront(){requestAnimationFrame(()=>{this.$.overlay.bringToFront()})}_isNoInput(e,i,o,s,n,a){return!e||i&&(!a||n)||o&&n||!s.parseDate}_formatISO(e){if(!(e instanceof Date))return"";const i=(c,h="00")=>(h+c).substr((h+c).length-h.length);let o="",s="0000",n=e.getFullYear();n<0?(n=-n,o="-",s="000000"):e.getFullYear()>=1e4&&(o="+",s="000000");const a=o+i(n,s),l=i(e.getMonth()+1),u=i(e.getDate());return[a,l,u].join("-")}_inputElementChanged(e){super._inputElementChanged(e),e&&(e.autocomplete="off",e.setAttribute("role","combobox"),e.setAttribute("aria-haspopup","dialog"),e.setAttribute("aria-expanded",!!this.opened),this._applyInputValue(this._selectedDate))}_openedChanged(e){this.inputElement&&this.inputElement.setAttribute("aria-expanded",e)}_selectedDateChanged(e,i){e===void 0||i===void 0||(this.__keepInputValue||this._applyInputValue(e),this.value=this._formatISO(e),this._ignoreFocusedDateChange=!0,this._focusedDate=e,this._ignoreFocusedDateChange=!1)}_focusedDateChanged(e,i){e===void 0||i===void 0||!this._ignoreFocusedDateChange&&!this._noInput&&this._applyInputValue(e)}_valueChanged(e,i){const o=Pt(e);if(e&&!o){this.value=i;return}e?ke(this._selectedDate,o)||(this._selectedDate=o,i!==void 0&&this.validate()):this._selectedDate=null,this._toggleHasValue(this._hasValue)}__updateOverlayContent(e,i,o,s,n,a,l,u){e&&(e.i18n=i,e.label=o,e.minDate=s,e.maxDate=n,e.focusedDate=a,e.selectedDate=l,e.showWeekNumbers=u)}__updateOverlayContentTheme(e,i){e&&(i?e.setAttribute("theme",i):e.removeAttribute("theme"))}__updateOverlayContentFullScreen(e,i){e&&e.toggleAttribute("fullscreen",i)}_onOverlayEscapePress(){this._focusedDate=this._selectedDate,this._close()}_onOverlayOpened(){const e=this._overlayContent;e.reset();const i=this._getInitialPosition();e.initialPosition=i;const o=e.focusedDate||i;e.scrollToDate(o),this._ignoreFocusedDateChange=!0,e.focusedDate=o,this._ignoreFocusedDateChange=!1,window.addEventListener("scroll",this._boundOnScroll,!0),this._focusOverlayOnOpen?(e.focusDateElement(),this._focusOverlayOnOpen=!1):this._focus();const s=this._nativeInput;this._noInput&&s&&(s.blur(),this._overlayContent.focusDateElement());const n=this._noInput?e:[s,e];this.__showOthers=Ma(n)}_getInitialPosition(){const e=Pt(this.initialPosition),i=this._selectedDate||this._overlayContent.initialPosition||e||new Date;return e||Yt(i,this._minDate,this._maxDate)?i:Ia(i,[this._minDate,this._maxDate])}_selectParsedOrFocusedDate(){if(this._ignoreFocusedDateChange=!0,this.i18n.parseDate){const e=this._inputElementValue||"",i=this.__parseDate(e);i?this._selectDate(i):(this.__keepInputValue=!0,this._selectDate(null),this._selectedDate=null,this.__keepInputValue=!1)}else this._focusedDate&&this._selectDate(this._focusedDate);this._ignoreFocusedDateChange=!1}_onOverlayClosed(){this.__showOthers&&(this.__showOthers(),this.__showOthers=null),window.removeEventListener("scroll",this._boundOnScroll,!0),this.__userConfirmedDate?this.__userConfirmedDate=!1:this._selectParsedOrFocusedDate(),this._nativeInput&&this._nativeInput.selectionStart&&(this._nativeInput.selectionStart=this._nativeInput.selectionEnd),!this.value&&!this._keyboardActive&&this.validate()}_onScroll(e){(e.target===window||!this._overlayContent.contains(e.target))&&this._overlayContent._repositionYearScroller()}_focus(){this._noInput||this.inputElement.focus()}_focusAndSelect(){this._focus(),this._setSelectionRange(0,this._inputElementValue.length)}_applyInputValue(e){this._inputElementValue=e?this.__formatDate(e):""}_setSelectionRange(e,i){this._nativeInput&&this._nativeInput.setSelectionRange&&this._nativeInput.setSelectionRange(e,i)}_onChange(e){e.stopPropagation()}_onClick(e){this._isClearButton(e)||this._onHostClick(e)}_onHostClick(e){(!this.autoOpenDisabled||this._noInput)&&(e.preventDefault(),this.open())}_onClearButtonClick(e){e.preventDefault(),this._inputElementValue="",this.value="",this.__dispatchChange()}_onKeyDown(e){switch(super._onKeyDown(e),this._noInput&&[9].indexOf(e.keyCode)===-1&&e.preventDefault(),e.key){case"ArrowDown":case"ArrowUp":e.preventDefault(),this.opened?this._overlayContent.focusDateElement():(this._focusOverlayOnOpen=!0,this.open());break;case"Tab":this.opened&&(e.preventDefault(),e.stopPropagation(),this._setSelectionRange(0,0),e.shiftKey?this._overlayContent.focusCancel():this._overlayContent.focusDateElement());break}}_onEnter(e){const i=this.value;this.opened?this.close():this._selectParsedOrFocusedDate(),i===this.value&&this.validate()}_onEscape(e){if(!this.opened){if(this.clearButtonVisible&&this.value){e.stopPropagation(),this._onClearButtonClick(e);return}this.autoOpenDisabled?(this.inputElement.value===""&&this._selectDate(null),this._applyInputValue(this._selectedDate)):(this._focusedDate=this._selectedDate,this._selectParsedOrFocusedDate())}}_isClearButton(e){return e.composedPath()[0]===this.clearElement}_onInput(){if(!this.opened&&this._inputElementValue&&!this.autoOpenDisabled&&this.open(),this._inputElementValue){const e=this.__parseDate(this._inputElementValue);e&&(this._ignoreFocusedDateChange=!0,ke(e,this._focusedDate)||(this._focusedDate=e),this._ignoreFocusedDateChange=!1)}}__computeMinOrMaxDate(e){return Pt(e)}};/**
|
|
3635
3635
|
* @license
|
|
3636
3636
|
* Copyright (c) 2016 - 2023 Vaadin Ltd.
|
|
3637
3637
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3638
|
-
*/const am=
|
|
3638
|
+
*/const am=A`
|
|
3639
3639
|
:host([opened]) {
|
|
3640
3640
|
pointer-events: auto;
|
|
3641
3641
|
}
|
|
@@ -3652,7 +3652,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
3652
3652
|
* @license
|
|
3653
3653
|
* Copyright (c) 2016 - 2023 Vaadin Ltd.
|
|
3654
3654
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3655
|
-
*/Y("vaadin-date-picker",[
|
|
3655
|
+
*/Y("vaadin-date-picker",[im,am],{moduleId:"vaadin-date-picker-styles"});class lm extends nm(Jf(We(pa(He)))){static get is(){return"vaadin-date-picker"}static get template(){return Xe`
|
|
3656
3656
|
<div class="vaadin-date-picker-container">
|
|
3657
3657
|
<div part="label">
|
|
3658
3658
|
<slot name="label"></slot>
|
|
@@ -3694,4 +3694,4 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
3694
3694
|
></vaadin-date-picker-overlay>
|
|
3695
3695
|
|
|
3696
3696
|
<slot name="tooltip"></slot>
|
|
3697
|
-
`}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new Zf(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e})),this.addController(new Qf(this.inputElement,this._labelController)),this._tooltipController=new _a(this),this.addController(this._tooltipController),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this._tooltipController.setShouldShow(e=>!e.opened),this.shadowRoot.querySelector('[part="toggle-button"]').addEventListener("mousedown",e=>e.preventDefault()),this.$.overlay.addEventListener("vaadin-overlay-close",this._onVaadinOverlayClose.bind(this))}_onVaadinOverlayClose(r){r.detail.sourceEvent&&r.detail.sourceEvent.composedPath().includes(this)&&r.preventDefault()}_toggle(r){r.stopPropagation(),this.$.overlay.opened?this.close():this.open()}_openedChanged(r){super._openedChanged(r),this.$.overlay.positionTarget=this.shadowRoot.querySelector('[part="input-field"]'),this.$.overlay.noVerticalOverlap=!0}}ve(lm);function um(t){ol(t,"svelte-19to85v",".PlayerSelfExclusionTitle.svelte-19to85v.svelte-19to85v{font-size:26px;color:var(--emfe-w-pam-color-primary, var(--emw--color-primary, #22B04E));font-weight:400}.PlayerSelfExclusionTitleMobile.svelte-19to85v.svelte-19to85v{font-size:var(--emw--font-size-large, 20px);color:var(--emfe-w-pam-color-primary, var(--emw--color-primary, #22B04E))}.PlayerSelfExclusionTitleNone.svelte-19to85v.svelte-19to85v{display:none}.SelfExclusionWrapper.svelte-19to85v.svelte-19to85v{background-color:var(--emfe-w-color-pale, var(--emw--color-gray-50, #F1F1F1));color:var(--emfe-w-pam-color-primary, var(--emw--color-primary, #22B04E));padding:50px;border-radius:20px;max-width:760px}.SelfExclusionWrapper.SelfExclusionWrapperMobile.svelte-19to85v.svelte-19to85v{padding:20px 15px;max-width:unset}.MenuReturnButton.svelte-19to85v.svelte-19to85v{color:var(--emw--color-gray-300, #58586B);display:inline-flex;align-items:center;column-gap:10px;margin-bottom:10px}.SelfExclusionDescription.svelte-19to85v.svelte-19to85v{color:var(--emw--color-gray-300, #58586B);line-height:24px}.SelfExclusionDescription.SelfExclusionDescriptionMobile.svelte-19to85v.svelte-19to85v{font-size:var(--emw--font-size-x-small, 12px);line-height:19px}.SelfExclusionDescription.svelte-19to85v .SelfExclusionDescriptionText a.svelte-19to85v{color:var(--emfe-w-pam-color-primary, var(--emw--color-primary, #22B04E))}.SelfExclusionConfigWrapper.svelte-19to85v.svelte-19to85v{width:50%;height:100%;position:relative;margin-bottom:var(--emw--spacing-large, 20px);color:var(--emfe-w-pam-color-primary, var(--emw--color-primary, #22B04E));border:1px solid var(--emfe-w-pam-color-primary, var(--emw--color-primary, #22B04E));border-radius:var(--emw--border-radius-medium, 20px);cursor:pointer}.SelfExclusionConfigWrapper.svelte-19to85v .SelfExclusionConfigLabel.svelte-19to85v{display:flex;flex-direction:row;justify-content:space-between;align-items:center;padding:var(--emw--spacing-medium, 10px) var(--emw--spacing-large, 20px)}.SelfExclusionConfigWrapper.svelte-19to85v .SelfExclusionConfigLabel .SelfExclusionConfigIcon.svelte-19to85v{width:15px;height:15px;fill:var(--emfe-w-pam-color-primary, var(--emw--color-primary, #22B04E));transform:rotateZ(-90deg);transition:all 0.5s ease-in-out}.SelfExclusionConfigWrapper.svelte-19to85v .SelfExclusionConfigLabel p.svelte-19to85v{margin:0;font-family:inherit}.SelfExclusionConfigWrapper.svelte-19to85v .SelfExclusionConfigLabel .SelfExclusionConfigIcon.active.svelte-19to85v{transform:rotateZ(0deg)}.SelfExclusionConfigWrapper.svelte-19to85v .SelfExclusionDropDown.svelte-19to85v{max-height:0px;overflow:hidden;box-sizing:border-box;transition:all 0.5s ease-in-out;opacity:0;color:var(--emw--color-gray-300, #58586B);background-color:var(--emfe-w-color-pale, var(--emw--color-gray-50, #F1F1F1));border-radius:0px 0px var(--emw--border-radius-medium, 20px) var(--emw--border-radius-medium, 20px)}.SelfExclusionConfigWrapper.svelte-19to85v .SelfExclusionDropDown div.svelte-19to85v{padding:var(--emw--spacing-medium, 10px) var(--emw--spacing-large, 20px);font-size:var(--emw--font-size-x-small, 12px);border-top:1px solid var(--emfe-w-pam-color-primary, var(--emw--color-primary, #22B04E));transition:all 0.5s ease-in-out;font-family:inherit}.SelfExclusionConfigWrapper.svelte-19to85v .SelfExclusionDropDown div.svelte-19to85v:hover{color:var(--emfe-w-color-white, #FFFFFF);background-color:var(--emfe-w-pam-color-primary, var(--emw--color-primary, #22B04E))}.SelfExclusionConfigWrapper.svelte-19to85v .SelfExclusionDropDown.active.svelte-19to85v{max-height:300px;opacity:1}.SelfExclusionConfigWrapper.SelfExclusionConfigWrapperMobile.svelte-19to85v.svelte-19to85v{width:100%;font-size:var(--emw--font-size-x-small, 12px)}.SelfExclusionConfigWrapper.SelfExclusionConfigWrapperMobile.svelte-19to85v .SelfExclusionConfigLabel .SelfExclusionConfigIcon.svelte-19to85v{width:10px;height:10px}.SelfExclusionDateWrapper.svelte-19to85v.svelte-19to85v{color:var(--emw--color-gray-300, #58586B);display:flex;flex-direction:column;padding-bottom:16px;position:relative;width:50%}.SelfExclusionDateWrapper.svelte-19to85v label.svelte-19to85v{font-size:var(--emw--font-size-small, 14px);font-weight:300;padding-bottom:5px}.SelfExclusionDateWrapper.svelte-19to85v .SelfExclusionDateInstructions.svelte-19to85v{font-size:var(--emw--font-size-small, 12px);font-weight:300;padding-bottom:5px;line-height:18px}.SelfExclusionDateWrapper.svelte-19to85v .SelfExclusionDateInstructions strong.svelte-19to85v{color:var(--emfe-w-pam-color-primary, var(--emw--color-primary, #22B04E))}.SelfExclusionDateWrapper.SelfExclusionDateWrapperMobile.svelte-19to85v.svelte-19to85v{width:100%}.SelfExclusionActionButtons.svelte-19to85v.svelte-19to85v{margin-top:40px;width:50%}.SelfExclusionActionButtons.svelte-19to85v .SelfExclusionSave.svelte-19to85v{font-family:var(--emw--button-typography);border-radius:5px;width:100%;height:50px;display:flex;align-items:center;justify-content:center;text-transform:uppercase;transition-duration:0.3s;box-sizing:border-box;background-image:linear-gradient(to bottom, color-mix(in srgb, var(--emfe-w-color-gray-150, #828282) 80%, black 20%), var(--emfe-w-color-gray-150, #828282), color-mix(in srgb, var(--emfe-w-color-gray-150, #828282) 80%, white 30%));border:2px solid var(--emw--color-black, #000000);border-radius:50px;padding:30px 0;font-size:var(--emw--font-size-large, 20px);color:var(--emw--button-text-color, #FFFFFF)}.SelfExclusionActionButtons.svelte-19to85v .SelfExclusionSave.active.svelte-19to85v{cursor:pointer;background-image:linear-gradient(to bottom, color-mix(in srgb, var(--emw--color-primary, #22B04E) 80%, black 20%), var(--emw--color-primary, #22B04E), color-mix(in srgb, var(--emw--color-primary, #22B04E) 80%, white 30%));border:2px solid var(--emw--button-border-color, #0E5924)}.SelfExclusionActionButtons.SelfExclusionActionButtonsMobile.svelte-19to85v.svelte-19to85v{width:100%;grid-template-columns:1fr 1fr}.SelfExclusionActionButtons.SelfExclusionActionButtonsMobile.svelte-19to85v .SelfExclusionSave.svelte-19to85v{height:40px;font-size:var(--emw--font-size-small, 14px);padding:20px 0}")}function Rs(t,r,e){const o=t.slice();return o[42]=r[e],o}function cm(t){let r,e,o,i,s,n,a,l,u,c,h=t[13]("titleSelfExclusion")+"",d,p,f;return{c(){r=B("div"),e=Pe("svg"),o=Pe("defs"),i=Pe("style"),s=re(".aaa{fill:var(--emw--color-primary, #22B04E);}"),n=Pe("g"),a=Pe("g"),l=Pe("path"),u=ie(),c=B("h2"),d=re(h),S(l,"class","aaa"),S(l,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),S(l,"transform","translate(15 15) rotate(180)"),S(a,"transform","translate(20 158)"),S(n,"transform","translate(-20 -158)"),S(e,"xmlns","http://www.w3.org/2000/svg"),S(e,"width","15"),S(e,"height","15"),S(e,"viewBox","0 0 15 15"),S(c,"class","PlayerSelfExclusionTitleMobile svelte-19to85v"),S(r,"class","MenuReturnButton svelte-19to85v")},m(b,P){$e(b,r,P),g(r,e),g(e,o),g(o,i),g(i,s),g(e,n),g(n,a),g(a,l),g(r,u),g(r,c),g(c,d),p||(f=pr(r,"click",t[24]),p=!0)},p(b,P){P[0]&8192&&h!==(h=b[13]("titleSelfExclusion")+"")&&ae(d,h)},d(b){b&&Oe(r),p=!1,f()}}}function Us(t){let r,e=t[13](`${t[42].key}`)+"",o,i,s;function n(){return t[26](t[42])}return{c(){r=B("div"),o=re(e),S(r,"class","svelte-19to85v")},m(a,l){$e(a,r,l),g(r,o),i||(s=pr(r,"click",n),i=!0)},p(a,l){t=a,l[0]&8208&&e!==(e=t[13](`${t[42].key}`)+"")&&ae(o,e)},d(a){a&&Oe(r),i=!1,s()}}}function js(t){let r,e,o=t[13]("duration")+"",i,s,n,a=t[13]("dateInstructions")+"",l,u,c,h,d;return{c(){r=B("div"),e=B("label"),i=re(o),s=ie(),n=B("span"),l=re(a),u=ie(),c=B("strong"),c.innerHTML='MM/DD/YYYY<strong class="svelte-19to85v"></strong>',h=ie(),d=B("vaadin-date-picker"),S(e,"for","SelfExclusionDate"),S(e,"class","svelte-19to85v"),S(c,"class","svelte-19to85v"),S(n,"class","SelfExclusionDateInstructions svelte-19to85v"),Je(d,"min",t[5]),Je(d,"max",t[6]),Je(d,"value",t[5]),S(r,"class","SelfExclusionDateWrapper "+(t[14]?"SelfExclusionDateWrapperMobile":"")+" svelte-19to85v")},m(p,f){$e(p,r,f),g(r,e),g(e,i),g(r,s),g(r,n),g(n,l),g(n,u),g(n,c),g(r,h),g(r,d),t[27](d)},p(p,f){f[0]&8192&&o!==(o=p[13]("duration")+"")&&ae(i,o),f[0]&8192&&a!==(a=p[13]("dateInstructions")+"")&&ae(l,a),f[0]&32&&Je(d,"min",p[5]),f[0]&64&&Je(d,"max",p[6]),f[0]&32&&Je(d,"value",p[5])},d(p){p&&Oe(r),t[27](null)}}}function hm(t){let r,e,o=t[13]("temporarySelfExclusion",{values:{date:t[7]}})+"",i;return{c(){r=B("p"),e=B("strong"),i=re(o),S(r,"class","SelfExclusionDescriptionText")},m(s,n){$e(s,r,n),g(r,e),g(e,i)},p(s,n){n[0]&8320&&o!==(o=s[13]("temporarySelfExclusion",{values:{date:s[7]}})+"")&&ae(i,o)},d(s){s&&Oe(r)}}}function dm(t){let r,e,o=t[13]("noPeriodSelected")+"",i;return{c(){r=B("p"),e=B("strong"),i=re(o),S(r,"class","SelfExclusionDescriptionText")},m(s,n){$e(s,r,n),g(r,e),g(e,i)},p(s,n){n[0]&8192&&o!==(o=s[13]("noPeriodSelected")+"")&&ae(i,o)},d(s){s&&Oe(r)}}}function pm(t){let r,e,o=t[13]("permanentSelfExclusion")+"",i;return{c(){r=B("p"),e=B("strong"),i=re(o),S(r,"class","SelfExclusionDescriptionText")},m(s,n){$e(s,r,n),g(r,e),g(e,i)},p(s,n){n[0]&8192&&o!==(o=s[13]("permanentSelfExclusion")+"")&&ae(i,o)},d(s){s&&Oe(r)}}}function fm(t){let r,e,o,i,s=t[13]("titleSelfExclusion")+"",n,a,l,u,c=t[13]("selfExclusionText1",{values:{operatorname:t[0]}})+"",h,d,p,f=t[13]("selfExclusionText2")+"",b,P,D,M=t[13]("selfExclusionText3",{values:{operatorname:t[0]}})+"",z,ee,F,X=t[13]("selfExclusionText4")+"",fe,ge,de,j,k,ye,le,w,_,m=t[13](`${t[8]}`)+"",y,v,E,A,N,U,R,K,Z,ue,x,G,L,W=t[13]("save")+"",me,xe,Se,Hr,Si,ze=t[14]&&cm(t),Ke=ki(t[4]),se=[];for(let T=0;T<Ke.length;T+=1)se[T]=Us(Rs(t,Ke,T));let ce=t[10]&&js(t);function Ai(T,q){return T[9]?pm:T[11]?hm:dm}let Kt=Ai(t),we=Kt(t);return{c(){r=B("div"),e=B("form"),ze&&ze.c(),o=ie(),i=B("h2"),n=re(s),a=ie(),l=B("div"),u=B("p"),h=re(c),d=ie(),p=B("p"),b=re(f),P=ie(),D=B("p"),z=re(M),ee=ie(),F=B("p"),fe=re(X),ge=ie(),de=B("a"),j=re(t[1]),ye=ie(),le=B("div"),w=B("div"),_=B("p"),y=re(m),v=ie(),E=Pe("svg"),A=Pe("g"),N=Pe("path"),U=ie(),R=B("div");for(let T=0;T<se.length;T+=1)se[T].c();K=ie(),ce&&ce.c(),Z=ie(),ue=B("div"),we.c(),x=ie(),G=B("div"),L=B("button"),me=re(W),S(i,"class","PlayerSelfExclusionTitle "+(t[14]?"PlayerSelfExclusionTitleNone":"")+" svelte-19to85v"),S(u,"class","SelfExclusionDescriptionText"),S(p,"class","SelfExclusionDescriptionText"),S(D,"class","SelfExclusionDescriptionText"),S(de,"href",k="mailto:"+t[1]),S(de,"class","svelte-19to85v"),S(F,"class","SelfExclusionDescriptionText"),S(l,"class","SelfExclusionDescription "+(t[14]?"SelfExclusionDescriptionMobile":"")+" svelte-19to85v"),S(_,"class","svelte-19to85v"),S(N,"d","M 90 24.25 c 0 -0.896 -0.342 -1.792 -1.025 -2.475 c -1.366 -1.367 -3.583 -1.367 -4.949 0 L 45 60.8 L 5.975 21.775 c -1.367 -1.367 -3.583 -1.367 -4.95 0 c -1.366 1.367 -1.366 3.583 0 4.95 l 41.5 41.5 c 1.366 1.367 3.583 1.367 4.949 0 l 41.5 -41.5 C 89.658 26.042 90 25.146 90 24.25 z"),S(N,"stroke-linecap","round"),S(E,"xmlns","http://www.w3.org/2000/svg"),S(E,"xmlns:xlink","http://www.w3.org/1999/xlink"),S(E,"version","1.1"),S(E,"viewBox","0 0 100 100"),S(E,"xml:space","preserve"),S(E,"class","SelfExclusionConfigIcon svelte-19to85v"),Ze(E,"active",t[12]),S(w,"class","SelfExclusionConfigLabel svelte-19to85v"),S(R,"class","SelfExclusionDropDown svelte-19to85v"),Ze(R,"active",t[12]),S(le,"class","SelfExclusionConfigWrapper "+(t[14]?"SelfExclusionConfigWrapperMobile":"")+" svelte-19to85v"),Ze(le,"active",t[12]),S(ue,"class","SelfExclusionDescription "+(t[14]?"SelfExclusionDescriptionMobile":"")+" svelte-19to85v"),S(L,"class",xe="SelfExclusionSave "+(t[11]?"active":"")+" svelte-19to85v"),L.disabled=Se=!t[11],S(G,"class","SelfExclusionActionButtons "+(t[14]?"SelfExclusionActionButtonsMobile":"")+" svelte-19to85v"),S(e,"class","SelfExclusionWrapper "+(t[14]?"SelfExclusionWrapperMobile":"")+" svelte-19to85v")},m(T,q){$e(T,r,q),g(r,e),ze&&ze.m(e,null),g(e,o),g(e,i),g(i,n),g(e,a),g(e,l),g(l,u),g(u,h),g(l,d),g(l,p),g(p,b),g(l,P),g(l,D),g(D,z),g(l,ee),g(l,F),g(F,fe),g(F,ge),g(F,de),g(de,j),g(e,ye),g(e,le),g(le,w),g(w,_),g(_,y),g(w,v),g(w,E),g(E,A),g(A,N),g(le,U),g(le,R);for(let te=0;te<se.length;te+=1)se[te]&&se[te].m(R,null);g(e,K),ce&&ce.m(e,null),g(e,Z),g(e,ue),we.m(ue,null),g(e,x),g(e,G),g(G,L),g(L,me),t[29](r),Hr||(Si=[pr(w,"click",t[25]),pr(L,"click",t[28])],Hr=!0)},p(T,q){if(T[14]&&ze.p(T,q),q[0]&8192&&s!==(s=T[13]("titleSelfExclusion")+"")&&ae(n,s),q[0]&8193&&c!==(c=T[13]("selfExclusionText1",{values:{operatorname:T[0]}})+"")&&ae(h,c),q[0]&8192&&f!==(f=T[13]("selfExclusionText2")+"")&&ae(b,f),q[0]&8193&&M!==(M=T[13]("selfExclusionText3",{values:{operatorname:T[0]}})+"")&&ae(z,M),q[0]&8192&&X!==(X=T[13]("selfExclusionText4")+"")&&ae(fe,X),q[0]&2&&ae(j,T[1]),q[0]&2&&k!==(k="mailto:"+T[1])&&S(de,"href",k),q[0]&8448&&m!==(m=T[13](`${T[8]}`)+"")&&ae(y,m),q[0]&4096&&Ze(E,"active",T[12]),q[0]&73744){Ke=ki(T[4]);let te;for(te=0;te<Ke.length;te+=1){const Ci=Rs(T,Ke,te);se[te]?se[te].p(Ci,q):(se[te]=Us(Ci),se[te].c(),se[te].m(R,null))}for(;te<se.length;te+=1)se[te].d(1);se.length=Ke.length}q[0]&4096&&Ze(R,"active",T[12]),q[0]&4096&&Ze(le,"active",T[12]),T[10]?ce?ce.p(T,q):(ce=js(T),ce.c(),ce.m(e,Z)):ce&&(ce.d(1),ce=null),Kt===(Kt=Ai(T))&&we?we.p(T,q):(we.d(1),we=Kt(T),we&&(we.c(),we.m(ue,null))),q[0]&8192&&W!==(W=T[13]("save")+"")&&ae(me,W),q[0]&2048&&xe!==(xe="SelfExclusionSave "+(T[11]?"active":"")+" svelte-19to85v")&&S(L,"class",xe),q[0]&2048&&Se!==(Se=!T[11])&&(L.disabled=Se)},i:be,o:be,d(T){T&&Oe(r),ze&&ze.d(),nl(se,T),ce&&ce.d(),we.d(),t[29](null),Hr=!1,_t(Si)}}}function mm(t,r,e){let o;rl(t,Ec,x=>e(13,o=x));let{endpoint:i="",lang:s="en",operator:n="Everymatrix",supportemail:a="",clientstyling:l="",clientstylingurl:u="",translationurl:c=""}=r,h,d,p=[],f=window.navigator.userAgent,b,P,D="",M="",z="selectAPeriod",ee=Sc(f)!=="PC",F=!1,X=!1,fe=!1,ge=!1;const de=()=>{fetch(c).then(G=>G.json()).then(G=>{Object.keys(G).forEach(L=>{Ji(L,G[L])})}).catch(G=>{console.log(G)})};Object.keys(Zi).forEach(x=>{Ji(x,Zi[x])});const j=()=>{let x=new URL(`${i}/v1/player/selfExclusionSettings`);fetch(x,{method:"GET",headers:{"Content-Type":"application/json",Accept:"application/json"}}).then(L=>k(L)).then(L=>{e(4,p=L.periods)}).catch(L=>{console.log(L)})},k=x=>{if(x.status>=300)throw new Error("There was an error fetching the config");return x.json()},ye=()=>{e(12,ge=!ge)},le=x=>{switch(M=x.text,e(8,z=x.key),e(11,fe=!0),e(12,ge=!1),e(9,F=!1),e(10,X=!1),M){case"Until":e(10,X=!0),e(5,b=Wr().add(6,"months").format("YYYY-MM-DD")),e(6,P=Wr().add(5,"years").format("YYYY-MM-DD")),e(7,D=b);break;case"Permanent":e(9,F=!F);break;default:const[G,L]=M.split(" "),W=L.includes("Day")?"days":L.includes("Month")?"months":L.includes("Year")?"years":null;if(!W)return;e(7,D=Wr().add(Number(G),W).format("YYYY-MM-DD"));break}},w=x=>{x.preventDefault(),window.postMessage({type:"SetSelfExclusion",selectedPeriodKey:z,selfExclusionExpiryDate:D},window.location.href)},_=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:ee},window.location.href)},m=x=>{e(7,D=x.target.value)},y=()=>{d.addEventListener("change",m,!1)},v=()=>{let x=document.createElement("style");x.innerHTML=l,h.appendChild(x)},E=()=>{let x=new URL(u),G=document.createElement("style");fetch(x.href).then(L=>L.text()).then(L=>{G.innerHTML=L,setTimeout(()=>{h.appendChild(G)},1)})};cl(()=>()=>{d.removeEventListener("change",m)});const A=()=>{Cc(s)},N=()=>_(),U=()=>ye(),R=x=>le(x);function K(x){fr[x?"unshift":"push"](()=>{d=x,e(3,d)})}const Z=x=>w(x);function ue(x){fr[x?"unshift":"push"](()=>{h=x,e(2,h)})}return t.$$set=x=>{"endpoint"in x&&e(19,i=x.endpoint),"lang"in x&&e(20,s=x.lang),"operator"in x&&e(0,n=x.operator),"supportemail"in x&&e(1,a=x.supportemail),"clientstyling"in x&&e(21,l=x.clientstyling),"clientstylingurl"in x&&e(22,u=x.clientstylingurl),"translationurl"in x&&e(23,c=x.translationurl)},t.$$.update=()=>{t.$$.dirty[0]&8&&d&&y(),t.$$.dirty[0]&524288&&i&&j(),t.$$.dirty[0]&1048576&&s&&A(),t.$$.dirty[0]&4194308&&u&&h&&E(),t.$$.dirty[0]&2097156&&l&&h&&v(),t.$$.dirty[0]&8388608&&c&&de()},[n,a,h,d,p,b,P,D,z,F,X,fe,ge,o,ee,ye,le,w,_,i,s,l,u,c,N,U,R,K,Z,ue]}class Xa extends wl{constructor(r){super(),yl(this,r,mm,fm,Ys,{endpoint:19,lang:20,operator:0,supportemail:1,clientstyling:21,clientstylingurl:22,translationurl:23},um,[-1,-1])}get endpoint(){return this.$$.ctx[19]}set endpoint(r){this.$$set({endpoint:r}),Ce()}get lang(){return this.$$.ctx[20]}set lang(r){this.$$set({lang:r}),Ce()}get operator(){return this.$$.ctx[0]}set operator(r){this.$$set({operator:r}),Ce()}get supportemail(){return this.$$.ctx[1]}set supportemail(r){this.$$set({supportemail:r}),Ce()}get clientstyling(){return this.$$.ctx[21]}set clientstyling(r){this.$$set({clientstyling:r}),Ce()}get clientstylingurl(){return this.$$.ctx[22]}set clientstylingurl(r){this.$$set({clientstylingurl:r}),Ce()}get translationurl(){return this.$$.ctx[23]}set translationurl(r){this.$$set({translationurl:r}),Ce()}}xl(Xa,{endpoint:{},lang:{},operator:{},supportemail:{},clientstyling:{},clientstylingurl:{},translationurl:{}},[],[],!0);exports.default=Xa;
|
|
3697
|
+
`}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new Zf(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e})),this.addController(new Qf(this.inputElement,this._labelController)),this._tooltipController=new _a(this),this.addController(this._tooltipController),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this._tooltipController.setShouldShow(e=>!e.opened),this.shadowRoot.querySelector('[part="toggle-button"]').addEventListener("mousedown",e=>e.preventDefault()),this.$.overlay.addEventListener("vaadin-overlay-close",this._onVaadinOverlayClose.bind(this))}_onVaadinOverlayClose(r){r.detail.sourceEvent&&r.detail.sourceEvent.composedPath().includes(this)&&r.preventDefault()}_toggle(r){r.stopPropagation(),this.$.overlay.opened?this.close():this.open()}_openedChanged(r){super._openedChanged(r),this.$.overlay.positionTarget=this.shadowRoot.querySelector('[part="input-field"]'),this.$.overlay.noVerticalOverlap=!0}}ge(lm);function um(t){il(t,"svelte-arm3mh",'.PlayerSelfExclusionTitle{font-size:26px;color:var(--emfe-w-pam-color-primary, var(--emw--color-primary, #22B04E));font-weight:400}.PlayerSelfExclusionTitleMobile{font-size:var(--emw--font-size-large, 20px);color:var(--emfe-w-pam-color-primary, var(--emw--color-primary, #22B04E))}.PlayerSelfExclusionTitleNone{display:none}.SelfExclusionWrapper{background-color:var(--emfe-w-color-pale, var(--emw--color-gray-50, #F1F1F1));color:var(--emfe-w-pam-color-primary, var(--emw--color-primary, #22B04E));padding:50px;border-radius:20px;max-width:760px}.SelfExclusionWrapper.SelfExclusionWrapperMobile{padding:20px 15px;max-width:unset}.MenuReturnButton{color:var(--emw--color-gray-300, #58586B);display:inline-flex;align-items:center;column-gap:10px;margin-bottom:10px}.SelfExclusionTitle{font-size:26px;color:var(--emfe-w-pam-color-primary, var(--emw--color-primary, #22B04E));font-weight:var(--emw--font-weight-bold, 700)}.SelfExclusionTitle.SelfExclusionTitleMobile{font-size:var(--emw--font-size-large, 20px)}.SelfExclusionDescription{color:var(--emw--color-gray-300, #58586B);line-height:24px}.SelfExclusionDescription.SelfExclusionDescriptionMobile{font-size:var(--emw--font-size-x-small, 12px);line-height:19px}.SelfExclusionDescription .SelfExclusionDescriptionText a{color:var(--emfe-w-pam-color-primary, var(--emw--color-primary, #22B04E))}.SelfExclusionConfigWrapper{width:50%;height:100%;position:relative;margin-bottom:var(--emw--spacing-large, 20px);color:var(--emfe-w-pam-color-primary, var(--emw--color-primary, #22B04E));border:1px solid var(--emfe-w-pam-color-primary, var(--emw--color-primary, #22B04E));border-radius:var(--emw--border-radius-medium, 20px);cursor:pointer}.SelfExclusionConfigWrapper .SelfExclusionConfigLabel{display:flex;flex-direction:row;justify-content:space-between;align-items:center;padding:var(--emw--spacing-medium, 10px) var(--emw--spacing-large, 20px)}.SelfExclusionConfigWrapper .SelfExclusionConfigLabel .SelfExclusionConfigIcon{width:15px;height:15px;fill:var(--emfe-w-pam-color-primary, var(--emw--color-primary, #22B04E));transform:rotateZ(-90deg);transition:all 0.5s ease-in-out}.SelfExclusionConfigWrapper .SelfExclusionConfigLabel p{margin:0;font-family:inherit}.SelfExclusionConfigWrapper .SelfExclusionConfigLabel .SelfExclusionConfigIcon.active{transform:rotateZ(0deg)}.SelfExclusionConfigWrapper .SelfExclusionDropDown{max-height:0px;overflow:hidden;box-sizing:border-box;transition:all 0.5s ease-in-out;opacity:0;color:var(--emw--color-gray-300, #58586B);background-color:var(--emfe-w-color-pale, var(--emw--color-gray-50, #F1F1F1));border-radius:0px 0px var(--emw--border-radius-medium, 20px) var(--emw--border-radius-medium, 20px)}.SelfExclusionConfigWrapper .SelfExclusionDropDown div{padding:var(--emw--spacing-medium, 10px) var(--emw--spacing-large, 20px);font-size:var(--emw--font-size-x-small, 12px);border-top:1px solid var(--emfe-w-pam-color-primary, var(--emw--color-primary, #22B04E));transition:all 0.5s ease-in-out;font-family:inherit}.SelfExclusionConfigWrapper .SelfExclusionDropDown div:hover{color:var(--emfe-w-color-white, #FFFFFF);background-color:var(--emfe-w-pam-color-primary, var(--emw--color-primary, #22B04E))}.SelfExclusionConfigWrapper .SelfExclusionDropDown.active{max-height:300px;opacity:1}.SelfExclusionConfigWrapper.SelfExclusionConfigWrapperMobile{width:100%;font-size:var(--emw--font-size-x-small, 12px)}.SelfExclusionConfigWrapper.SelfExclusionConfigWrapperMobile .SelfExclusionConfigLabel .SelfExclusionConfigIcon{width:10px;height:10px}.SelfExclusionDateWrapper{color:var(--emw--color-gray-300, #58586B);display:flex;flex-direction:column;padding-bottom:16px;position:relative;width:50%}.SelfExclusionDateWrapper label{font-size:var(--emw--font-size-small, 14px);font-weight:300;padding-bottom:5px}.SelfExclusionDateWrapper .SelfExclusionDateInstructions{font-size:var(--emw--font-size-small, 12px);font-weight:300;padding-bottom:5px;line-height:18px}.SelfExclusionDateWrapper .SelfExclusionDateInstructions strong{color:var(--emfe-w-pam-color-primary, var(--emw--color-primary, #22B04E))}.SelfExclusionDateWrapper input{font-family:inherit;width:100%;height:44px;border:1px solid var(--emw--color-gray-100, #E6E6E6);border-radius:5px;box-sizing:border-box;padding:5px 15px;font-size:var(--emw--size-standard, 16px);line-height:18px}.SelfExclusionDateWrapper.SelfExclusionDateWrapperMobile{width:100%}.SelfExclusionRadioWrapper{display:block;position:relative;padding:4px 0 0 0;margin-bottom:16px;font-size:var(--emw--size-standard, 16px);user-select:none;line-height:18px}.SelfExclusionRadioWrapper label{font-size:var(--emw--size-standard, 16px);cursor:pointer;padding-left:35px}.SelfExclusionRadioWrapper input{font-family:inherit;position:absolute;opacity:0;cursor:pointer;height:0;width:0}.SelfExclusionRadioWrapper .Checkmark{position:absolute;top:0;left:0;height:25px;width:25px;background-color:var(--emw--color-gray-100, #E6E6E6);border-radius:50%}.SelfExclusionRadioWrapper input:checked~.Checkmark{background-color:var(--emfe-w-pam-color-primary, var(--emw--color-primary, #22B04E))}.SelfExclusionRadioWrapper .Checkmark:after{content:"";position:absolute;display:none;left:9px;top:5px;width:5px;height:10px;border:solid white;border-width:0 2px 2px 0;transform:rotate(45deg)}.SelfExclusionRadioWrapper input:checked~.Checkmark:after{display:block}.SelfExclusionRadioWrapper.SelfExclusionRadioWrapperMobile label{font-family:inherit;font-size:var(--emw--font-size-x-small, 12px)}.SelfExclusionActionButtons{margin-top:40px;width:50%}.SelfExclusionActionButtons .SelfExclusionSave{font-family:var(--emw--button-typography);border-radius:5px;width:100%;height:50px;display:flex;align-items:center;justify-content:center;text-transform:uppercase;transition-duration:0.3s;box-sizing:border-box;background-image:linear-gradient(to bottom, color-mix(in srgb, var(--emfe-w-color-gray-150, #828282) 80%, black 20%), var(--emfe-w-color-gray-150, #828282), color-mix(in srgb, var(--emfe-w-color-gray-150, #828282) 80%, white 30%));border:2px solid var(--emw--color-black, #000000);border-radius:50px;padding:30px 0;font-size:var(--emw--font-size-large, 20px);color:var(--emw--button-text-color, #FFFFFF)}.SelfExclusionActionButtons .SelfExclusionSave.active{cursor:pointer;background-image:linear-gradient(to bottom, color-mix(in srgb, var(--emw--color-primary, #22B04E) 80%, black 20%), var(--emw--color-primary, #22B04E), color-mix(in srgb, var(--emw--color-primary, #22B04E) 80%, white 30%));border:2px solid var(--emw--button-border-color, #0E5924)}.SelfExclusionActionButtons.SelfExclusionActionButtonsMobile{width:100%;grid-template-columns:1fr 1fr}.SelfExclusionActionButtons.SelfExclusionActionButtonsMobile .SelfExclusionSave{height:40px;font-size:var(--emw--font-size-small, 14px);padding:20px 0}')}function Rs(t,r,e){const i=t.slice();return i[42]=r[e],i}function cm(t){let r,e,i,o,s,n,a,l,u,c,h=t[13]("titleSelfExclusion")+"",d,p,f;return{c(){r=B("div"),e=Pe("svg"),i=Pe("defs"),o=Pe("style"),s=re(".aaa{fill:var(--emw--color-primary, #22B04E);}"),n=Pe("g"),a=Pe("g"),l=Pe("path"),u=oe(),c=B("h2"),d=re(h),T(l,"class","aaa"),T(l,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),T(l,"transform","translate(15 15) rotate(180)"),T(a,"transform","translate(20 158)"),T(n,"transform","translate(-20 -158)"),T(e,"xmlns","http://www.w3.org/2000/svg"),T(e,"width","15"),T(e,"height","15"),T(e,"viewBox","0 0 15 15"),T(c,"class","PlayerSelfExclusionTitleMobile"),T(r,"class","MenuReturnButton")},m(y,P){$e(y,r,P),b(r,e),b(e,i),b(i,o),b(o,s),b(e,n),b(n,a),b(a,l),b(r,u),b(r,c),b(c,d),p||(f=pr(r,"click",t[24]),p=!0)},p(y,P){P[0]&8192&&h!==(h=y[13]("titleSelfExclusion")+"")&&ae(d,h)},d(y){y&&Oe(r),p=!1,f()}}}function Us(t){let r,e=t[13](`${t[42].key}`)+"",i,o,s;function n(){return t[26](t[42])}return{c(){r=B("div"),i=re(e)},m(a,l){$e(a,r,l),b(r,i),o||(s=pr(r,"click",n),o=!0)},p(a,l){t=a,l[0]&8208&&e!==(e=t[13](`${t[42].key}`)+"")&&ae(i,e)},d(a){a&&Oe(r),o=!1,s()}}}function js(t){let r,e,i=t[13]("duration")+"",o,s,n,a=t[13]("dateInstructions")+"",l,u,c,h,d;return{c(){r=B("div"),e=B("label"),o=re(i),s=oe(),n=B("span"),l=re(a),u=oe(),c=B("strong"),c.innerHTML="MM/DD/YYYY<strong></strong>",h=oe(),d=B("vaadin-date-picker"),T(e,"for","SelfExclusionDate"),T(n,"class","SelfExclusionDateInstructions"),Je(d,"min",t[5]),Je(d,"max",t[6]),Je(d,"value",t[5]),T(r,"class","SelfExclusionDateWrapper "+(t[14]?"SelfExclusionDateWrapperMobile":""))},m(p,f){$e(p,r,f),b(r,e),b(e,o),b(r,s),b(r,n),b(n,l),b(n,u),b(n,c),b(r,h),b(r,d),t[27](d)},p(p,f){f[0]&8192&&i!==(i=p[13]("duration")+"")&&ae(o,i),f[0]&8192&&a!==(a=p[13]("dateInstructions")+"")&&ae(l,a),f[0]&32&&Je(d,"min",p[5]),f[0]&64&&Je(d,"max",p[6]),f[0]&32&&Je(d,"value",p[5])},d(p){p&&Oe(r),t[27](null)}}}function hm(t){let r,e,i=t[13]("temporarySelfExclusion",{values:{date:t[7]}})+"",o;return{c(){r=B("p"),e=B("strong"),o=re(i),T(r,"class","SelfExclusionDescriptionText")},m(s,n){$e(s,r,n),b(r,e),b(e,o)},p(s,n){n[0]&8320&&i!==(i=s[13]("temporarySelfExclusion",{values:{date:s[7]}})+"")&&ae(o,i)},d(s){s&&Oe(r)}}}function dm(t){let r,e,i=t[13]("noPeriodSelected")+"",o;return{c(){r=B("p"),e=B("strong"),o=re(i),T(r,"class","SelfExclusionDescriptionText")},m(s,n){$e(s,r,n),b(r,e),b(e,o)},p(s,n){n[0]&8192&&i!==(i=s[13]("noPeriodSelected")+"")&&ae(o,i)},d(s){s&&Oe(r)}}}function pm(t){let r,e,i=t[13]("permanentSelfExclusion")+"",o;return{c(){r=B("p"),e=B("strong"),o=re(i),T(r,"class","SelfExclusionDescriptionText")},m(s,n){$e(s,r,n),b(r,e),b(e,o)},p(s,n){n[0]&8192&&i!==(i=s[13]("permanentSelfExclusion")+"")&&ae(o,i)},d(s){s&&Oe(r)}}}function fm(t){let r,e,i,o,s=t[13]("titleSelfExclusion")+"",n,a,l,u,c=t[13]("selfExclusionText1",{values:{operatorname:t[0]}})+"",h,d,p,f=t[13]("selfExclusionText2")+"",y,P,D,M=t[13]("selfExclusionText3",{values:{operatorname:t[0]}})+"",z,ee,F,X=t[13]("selfExclusionText4")+"",pe,be,fe,j,k,ve,le,w,_,m=t[13](`${t[8]}`)+"",v,g,E,S,N,U,R,K,Z,ue,x,G,L,W=t[13]("save")+"",me,xe,Se,Hr,So,ze=t[14]&&cm(t),Ke=ko(t[4]),se=[];for(let C=0;C<Ke.length;C+=1)se[C]=Us(Rs(t,Ke,C));let ce=t[10]&&js(t);function Ao(C,q){return C[9]?pm:C[11]?hm:dm}let Kt=Ao(t),we=Kt(t);return{c(){r=B("div"),e=B("form"),ze&&ze.c(),i=oe(),o=B("h2"),n=re(s),a=oe(),l=B("div"),u=B("p"),h=re(c),d=oe(),p=B("p"),y=re(f),P=oe(),D=B("p"),z=re(M),ee=oe(),F=B("p"),pe=re(X),be=oe(),fe=B("a"),j=re(t[1]),ve=oe(),le=B("div"),w=B("div"),_=B("p"),v=re(m),g=oe(),E=Pe("svg"),S=Pe("g"),N=Pe("path"),U=oe(),R=B("div");for(let C=0;C<se.length;C+=1)se[C].c();K=oe(),ce&&ce.c(),Z=oe(),ue=B("div"),we.c(),x=oe(),G=B("div"),L=B("button"),me=re(W),T(o,"class","PlayerSelfExclusionTitle "+(t[14]?"PlayerSelfExclusionTitleNone":"")),T(u,"class","SelfExclusionDescriptionText"),T(p,"class","SelfExclusionDescriptionText"),T(D,"class","SelfExclusionDescriptionText"),T(fe,"href",k="mailto:"+t[1]),T(F,"class","SelfExclusionDescriptionText"),T(l,"class","SelfExclusionDescription "+(t[14]?"SelfExclusionDescriptionMobile":"")),T(N,"d","M 90 24.25 c 0 -0.896 -0.342 -1.792 -1.025 -2.475 c -1.366 -1.367 -3.583 -1.367 -4.949 0 L 45 60.8 L 5.975 21.775 c -1.367 -1.367 -3.583 -1.367 -4.95 0 c -1.366 1.367 -1.366 3.583 0 4.95 l 41.5 41.5 c 1.366 1.367 3.583 1.367 4.949 0 l 41.5 -41.5 C 89.658 26.042 90 25.146 90 24.25 z"),T(N,"stroke-linecap","round"),T(E,"xmlns","http://www.w3.org/2000/svg"),T(E,"xmlns:xlink","http://www.w3.org/1999/xlink"),T(E,"version","1.1"),T(E,"viewBox","0 0 100 100"),T(E,"xml:space","preserve"),T(E,"class","SelfExclusionConfigIcon"),Ze(E,"active",t[12]),T(w,"class","SelfExclusionConfigLabel"),T(R,"class","SelfExclusionDropDown"),Ze(R,"active",t[12]),T(le,"class","SelfExclusionConfigWrapper "+(t[14]?"SelfExclusionConfigWrapperMobile":"")),Ze(le,"active",t[12]),T(ue,"class","SelfExclusionDescription "+(t[14]?"SelfExclusionDescriptionMobile":"")),T(L,"class",xe="SelfExclusionSave "+(t[11]?"active":"")),L.disabled=Se=!t[11],T(G,"class","SelfExclusionActionButtons "+(t[14]?"SelfExclusionActionButtonsMobile":"")),T(e,"class","SelfExclusionWrapper "+(t[14]?"SelfExclusionWrapperMobile":""))},m(C,q){$e(C,r,q),b(r,e),ze&&ze.m(e,null),b(e,i),b(e,o),b(o,n),b(e,a),b(e,l),b(l,u),b(u,h),b(l,d),b(l,p),b(p,y),b(l,P),b(l,D),b(D,z),b(l,ee),b(l,F),b(F,pe),b(F,be),b(F,fe),b(fe,j),b(e,ve),b(e,le),b(le,w),b(w,_),b(_,v),b(w,g),b(w,E),b(E,S),b(S,N),b(le,U),b(le,R);for(let te=0;te<se.length;te+=1)se[te]&&se[te].m(R,null);b(e,K),ce&&ce.m(e,null),b(e,Z),b(e,ue),we.m(ue,null),b(e,x),b(e,G),b(G,L),b(L,me),t[29](r),Hr||(So=[pr(w,"click",t[25]),pr(L,"click",t[28])],Hr=!0)},p(C,q){if(C[14]&&ze.p(C,q),q[0]&8192&&s!==(s=C[13]("titleSelfExclusion")+"")&&ae(n,s),q[0]&8193&&c!==(c=C[13]("selfExclusionText1",{values:{operatorname:C[0]}})+"")&&ae(h,c),q[0]&8192&&f!==(f=C[13]("selfExclusionText2")+"")&&ae(y,f),q[0]&8193&&M!==(M=C[13]("selfExclusionText3",{values:{operatorname:C[0]}})+"")&&ae(z,M),q[0]&8192&&X!==(X=C[13]("selfExclusionText4")+"")&&ae(pe,X),q[0]&2&&ae(j,C[1]),q[0]&2&&k!==(k="mailto:"+C[1])&&T(fe,"href",k),q[0]&8448&&m!==(m=C[13](`${C[8]}`)+"")&&ae(v,m),q[0]&4096&&Ze(E,"active",C[12]),q[0]&73744){Ke=ko(C[4]);let te;for(te=0;te<Ke.length;te+=1){const Co=Rs(C,Ke,te);se[te]?se[te].p(Co,q):(se[te]=Us(Co),se[te].c(),se[te].m(R,null))}for(;te<se.length;te+=1)se[te].d(1);se.length=Ke.length}q[0]&4096&&Ze(R,"active",C[12]),q[0]&4096&&Ze(le,"active",C[12]),C[10]?ce?ce.p(C,q):(ce=js(C),ce.c(),ce.m(e,Z)):ce&&(ce.d(1),ce=null),Kt===(Kt=Ao(C))&&we?we.p(C,q):(we.d(1),we=Kt(C),we&&(we.c(),we.m(ue,null))),q[0]&8192&&W!==(W=C[13]("save")+"")&&ae(me,W),q[0]&2048&&xe!==(xe="SelfExclusionSave "+(C[11]?"active":""))&&T(L,"class",xe),q[0]&2048&&Se!==(Se=!C[11])&&(L.disabled=Se)},i:ye,o:ye,d(C){C&&Oe(r),ze&&ze.d(),nl(se,C),ce&&ce.d(),we.d(),t[29](null),Hr=!1,_t(So)}}}function mm(t,r,e){let i;rl(t,Ec,x=>e(13,i=x));let{endpoint:o="",lang:s="en",operator:n="Everymatrix",supportemail:a="",clientstyling:l="",clientstylingurl:u="",translationurl:c=""}=r,h,d,p=[],f=window.navigator.userAgent,y,P,D="",M="",z="selectAPeriod",ee=Sc(f)!=="PC",F=!1,X=!1,pe=!1,be=!1;const fe=()=>{fetch(c).then(G=>G.json()).then(G=>{Object.keys(G).forEach(L=>{Jo(L,G[L])})}).catch(G=>{console.log(G)})};Object.keys(Zo).forEach(x=>{Jo(x,Zo[x])});const j=()=>{let x=new URL(`${o}/v1/player/selfExclusionSettings`);fetch(x,{method:"GET",headers:{"Content-Type":"application/json",Accept:"application/json"}}).then(L=>k(L)).then(L=>{e(4,p=L.periods)}).catch(L=>{console.log(L)})},k=x=>{if(x.status>=300)throw new Error("There was an error fetching the config");return x.json()},ve=()=>{e(12,be=!be)},le=x=>{switch(M=x.text,e(8,z=x.key),e(11,pe=!0),e(12,be=!1),e(9,F=!1),e(10,X=!1),M){case"Until":e(10,X=!0),e(5,y=Wr().add(6,"months").format("YYYY-MM-DD")),e(6,P=Wr().add(5,"years").format("YYYY-MM-DD")),e(7,D=y);break;case"Permanent":e(9,F=!F);break;default:const[G,L]=M.split(" "),W=L.includes("Day")?"days":L.includes("Month")?"months":L.includes("Year")?"years":null;if(!W)return;e(7,D=Wr().add(Number(G),W).format("YYYY-MM-DD"));break}},w=x=>{x.preventDefault(),window.postMessage({type:"SetSelfExclusion",selectedPeriodKey:z,selfExclusionExpiryDate:D},window.location.href)},_=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:ee},window.location.href)},m=x=>{e(7,D=x.target.value)},v=()=>{d.addEventListener("change",m,!1)},g=()=>{let x=document.createElement("style");x.innerHTML=l,h.appendChild(x)},E=()=>{let x=new URL(u),G=document.createElement("style");fetch(x.href).then(L=>L.text()).then(L=>{G.innerHTML=L,setTimeout(()=>{h.appendChild(G)},1)})};cl(()=>()=>{d.removeEventListener("change",m)});const S=()=>{Cc(s)},N=()=>_(),U=()=>ve(),R=x=>le(x);function K(x){fr[x?"unshift":"push"](()=>{d=x,e(3,d)})}const Z=x=>w(x);function ue(x){fr[x?"unshift":"push"](()=>{h=x,e(2,h)})}return t.$$set=x=>{"endpoint"in x&&e(19,o=x.endpoint),"lang"in x&&e(20,s=x.lang),"operator"in x&&e(0,n=x.operator),"supportemail"in x&&e(1,a=x.supportemail),"clientstyling"in x&&e(21,l=x.clientstyling),"clientstylingurl"in x&&e(22,u=x.clientstylingurl),"translationurl"in x&&e(23,c=x.translationurl)},t.$$.update=()=>{t.$$.dirty[0]&8&&d&&v(),t.$$.dirty[0]&524288&&o&&j(),t.$$.dirty[0]&1048576&&s&&S(),t.$$.dirty[0]&4194308&&u&&h&&E(),t.$$.dirty[0]&2097156&&l&&h&&g(),t.$$.dirty[0]&8388608&&c&&fe()},[n,a,h,d,p,y,P,D,z,F,X,pe,be,i,ee,ve,le,w,_,o,s,l,u,c,N,U,R,K,Z,ue]}class Xa extends wl{constructor(r){super(),vl(this,r,mm,fm,Ys,{endpoint:19,lang:20,operator:0,supportemail:1,clientstyling:21,clientstylingurl:22,translationurl:23},um,[-1,-1])}get endpoint(){return this.$$.ctx[19]}set endpoint(r){this.$$set({endpoint:r}),Ce()}get lang(){return this.$$.ctx[20]}set lang(r){this.$$set({lang:r}),Ce()}get operator(){return this.$$.ctx[0]}set operator(r){this.$$set({operator:r}),Ce()}get supportemail(){return this.$$.ctx[1]}set supportemail(r){this.$$set({supportemail:r}),Ce()}get clientstyling(){return this.$$.ctx[21]}set clientstyling(r){this.$$set({clientstyling:r}),Ce()}get clientstylingurl(){return this.$$.ctx[22]}set clientstylingurl(r){this.$$set({clientstylingurl:r}),Ce()}get translationurl(){return this.$$.ctx[23]}set translationurl(r){this.$$set({translationurl:r}),Ce()}}xl(Xa,{endpoint:{},lang:{},operator:{},supportemail:{},clientstyling:{},clientstylingurl:{},translationurl:{}},[],[],!0);exports.default=Xa;
|