@everymatrix/casino-bonuses-controller 1.56.0 → 1.56.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/{CasinoBonusesController-DcayLoIk.js → CasinoBonusesController-C9jnng14.js} +3877 -3863
- package/components/{CasinoBonusesController-CerQEkDo.js → CasinoBonusesController-DDE1rRkd.js} +4137 -4122
- package/components/{CasinoBonusesController-CB5ld6wQ.cjs → CasinoBonusesController-n3pupIBb.cjs} +199 -188
- package/es2015/casino-bonuses-controller.cjs +1 -1
- package/es2015/casino-bonuses-controller.js +1 -1
- package/esnext/casino-bonuses-controller.js +1 -1
- package/package.json +1 -1
package/components/{CasinoBonusesController-CB5ld6wQ.cjs → CasinoBonusesController-n3pupIBb.cjs}
RENAMED
|
@@ -1,61 +1,74 @@
|
|
|
1
|
-
"use strict";var ef=Object.defineProperty,tf=Object.defineProperties;var rf=Object.getOwnPropertyDescriptors;var $i=Object.getOwnPropertySymbols;var Oa=Object.prototype.hasOwnProperty,Ba=Object.prototype.propertyIsEnumerable;var ps=(e,t,r)=>t in e?ef(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Vt=(e,t)=>{for(var r in t||(t={}))Oa.call(t,r)&&ps(e,r,t[r]);if($i)for(var r of $i(t))Ba.call(t,r)&&ps(e,r,t[r]);return e},Zr=(e,t)=>tf(e,rf(t));var ms=(e,t)=>{var r={};for(var i in e)Oa.call(e,i)&&t.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&$i)for(var i of $i(e))t.indexOf(i)<0&&Ba.call(e,i)&&(r[i]=e[i]);return r};var nt=(e,t,r)=>ps(e,typeof t!="symbol"?t+"":t,r);var et=(e,t,r)=>new Promise((i,n)=>{var s=l=>{try{a(r.next(l))}catch(u){n(u)}},o=l=>{try{a(r.throw(l))}catch(u){n(u)}},a=l=>l.done?i(l.value):Promise.resolve(l.value).then(s,o);a((r=r.apply(e,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function Se(){}function T(e,t){for(const r in t)e[r]=t[r];return e}function Zu(e){return e()}function Na(){return Object.create(null)}function mt(e){e.forEach(Zu)}function Ai(e){return typeof e=="function"}function Ti(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}let Gi;function Ia(e,t){return e===t?!0:(Gi||(Gi=document.createElement("a")),Gi.href=t,e===Gi.href)}function nf(e){return Object.keys(e).length===0}function Xu(e,...t){if(e==null){for(const i of t)i(void 0);return Se}const r=e.subscribe(...t);return r.unsubscribe?()=>r.unsubscribe():r}function Ju(e,t,r){e.$$.on_destroy.push(Xu(t,r))}function Di(e,t,r,i){if(e){const n=Ku(e,t,r,i);return e[0](n)}}function Ku(e,t,r,i){return e[1]&&i?T(r.ctx.slice(),e[1](i(t))):r.ctx}function Pi(e,t,r,i){if(e[2]&&i){const n=e[2](i(r));if(t.dirty===void 0)return n;if(typeof n=="object"){const s=[],o=Math.max(t.dirty.length,n.length);for(let a=0;a<o;a+=1)s[a]=t.dirty[a]|n[a];return s}return t.dirty|n}return t.dirty}function Mi(e,t,r,i,n,s){if(n){const o=Ku(t,r,i,s);e.p(o,n)}}function Oi(e){if(e.ctx.length>32){const t=[],r=e.ctx.length/32;for(let i=0;i<r;i++)t[i]=-1;return t}return-1}function sf(e){return e&&Ai(e.destroy)?e.destroy:Se}const of=["",!0,1,"true","contenteditable"];function p(e,t){e.appendChild(t)}function Mn(e,t,r){const i=af(e);if(!i.getElementById(t)){const n=C("style");n.id=t,n.textContent=r,lf(i,n)}}function af(e){if(!e)return document;const t=e.getRootNode?e.getRootNode():e.ownerDocument;return t&&t.host?t:e.ownerDocument}function lf(e,t){return p(e.head||e,t),t.sheet}function B(e,t,r){e.insertBefore(t,r||null)}function P(e){e.parentNode&&e.parentNode.removeChild(e)}function Jt(e,t){for(let r=0;r<e.length;r+=1)e[r]&&e[r].d(t)}function C(e){return document.createElement(e)}function ee(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function O(e){return document.createTextNode(e)}function W(){return O(" ")}function Lt(){return O("")}function Le(e,t,r,i){return e.addEventListener(t,r,i),()=>e.removeEventListener(t,r,i)}function m(e,t,r){r==null?e.removeAttribute(t):e.getAttribute(t)!==r&&e.setAttribute(t,r)}const uf=["width","height"];function k(e,t){const r=Object.getOwnPropertyDescriptors(e.__proto__);for(const i in t)t[i]==null?e.removeAttribute(i):i==="style"?e.style.cssText=t[i]:i==="__value"?e.value=e[i]=t[i]:r[i]&&r[i].set&&uf.indexOf(i)===-1?e[i]=t[i]:m(e,i,t[i])}function Qu(e,t){for(const r in t)m(e,r,t[r])}function Xe(e,t,r){const i=t.toLowerCase();i in e?e[i]=typeof e[i]=="boolean"&&r===""?!0:r:t in e?e[t]=typeof e[t]=="boolean"&&r===""?!0:r:m(e,t,r)}function ed(e){return e===""?null:+e}function df(e){return Array.from(e.childNodes)}function Ce(e,t){t=""+t,e.data!==t&&(e.data=t)}function cf(e,t){t=""+t,e.wholeText!==t&&(e.data=t)}function ne(e,t,r){~of.indexOf(r)?cf(e,t):Ce(e,t)}function fn(e,t){e.value=t==null?"":t}function $s(e,t,r,i){r==null?e.style.removeProperty(t):e.style.setProperty(t,r,"")}function le(e,t,r){e.classList.toggle(t,!!r)}function hf(e){const t={};return e.childNodes.forEach(r=>{t[r.slot||"default"]=!0}),t}let ci;function oi(e){ci=e}function ff(){if(!ci)throw new Error("Function called outside component initialization");return ci}function On(e){ff().$$.on_mount.push(e)}const yr=[],Pt=[];let Er=[];const La=[],pf=Promise.resolve();let Gs=!1;function mf(){Gs||(Gs=!0,pf.then(me))}function js(e){Er.push(e)}const _s=new Set;let _r=0;function me(){if(_r!==0)return;const e=ci;do{try{for(;_r<yr.length;){const t=yr[_r];_r++,oi(t),_f(t.$$)}}catch(t){throw yr.length=0,_r=0,t}for(oi(null),yr.length=0,_r=0;Pt.length;)Pt.pop()();for(let t=0;t<Er.length;t+=1){const r=Er[t];_s.has(r)||(_s.add(r),r())}Er.length=0}while(yr.length);for(;La.length;)La.pop()();Gs=!1,_s.clear(),oi(e)}function _f(e){if(e.fragment!==null){e.update(),mt(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(js)}}function gf(e){const t=[],r=[];Er.forEach(i=>e.indexOf(i)===-1?t.push(i):r.push(i)),r.forEach(i=>i()),Er=t}const rn=new Set;let rr;function td(){rr={r:0,c:[],p:rr}}function rd(){rr.r||mt(rr.c),rr=rr.p}function ht(e,t){e&&e.i&&(rn.delete(e),e.i(t))}function Nt(e,t,r,i){if(e&&e.o){if(rn.has(e))return;rn.add(e),rr.c.push(()=>{rn.delete(e),i&&(r&&e.d(1),i())}),e.o(t)}else i&&i()}function je(e){return(e==null?void 0:e.length)!==void 0?e:Array.from(e)}function Ie(e,t){const r={},i={},n={$$scope:1};let s=e.length;for(;s--;){const o=e[s],a=t[s];if(a){for(const l in o)l in a||(i[l]=1);for(const l in a)n[l]||(r[l]=a[l],n[l]=1);e[s]=a}else for(const l in o)n[l]=1}for(const o in i)o in r||(r[o]=void 0);return r}function bf(e,t,r){const{fragment:i,after_update:n}=e.$$;i&&i.m(t,r),js(()=>{const s=e.$$.on_mount.map(Zu).filter(Ai);e.$$.on_destroy?e.$$.on_destroy.push(...s):mt(s),e.$$.on_mount=[]}),n.forEach(js)}function vf(e,t){const r=e.$$;r.fragment!==null&&(gf(r.after_update),mt(r.on_destroy),r.fragment&&r.fragment.d(t),r.on_destroy=r.fragment=null,r.ctx=[])}function yf(e,t){e.$$.dirty[0]===-1&&(yr.push(e),mf(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function Bn(e,t,r,i,n,s,o=null,a=[-1]){const l=ci;oi(e);const u=e.$$={fragment:null,ctx:[],props:s,update:Se,not_equal:n,bound:Na(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(l?l.$$.context:[])),callbacks:Na(),dirty:a,skip_bound:!1,root:t.target||l.$$.root};o&&o(u.root);let d=!1;if(u.ctx=r?r(e,t.props||{},(c,h,...f)=>{const b=f.length?f[0]:h;return u.ctx&&n(u.ctx[c],u.ctx[c]=b)&&(!u.skip_bound&&u.bound[c]&&u.bound[c](b),d&&yf(e,c)),h}):[],u.update(),d=!0,mt(u.before_update),u.fragment=i?i(u.ctx):!1,t.target){if(t.hydrate){const c=df(t.target);u.fragment&&u.fragment.l(c),c.forEach(P)}else u.fragment&&u.fragment.c();t.intro&&ht(e.$$.fragment),bf(e,t.target,t.anchor),me()}oi(l)}let id;typeof HTMLElement=="function"&&(id=class extends HTMLElement{constructor(t,r,i){super();nt(this,"$$ctor");nt(this,"$$s");nt(this,"$$c");nt(this,"$$cn",!1);nt(this,"$$d",{});nt(this,"$$r",!1);nt(this,"$$p_d",{});nt(this,"$$l",{});nt(this,"$$l_u",new Map);this.$$ctor=t,this.$$s=r,i&&this.attachShadow({mode:"open"})}addEventListener(t,r,i){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(r),this.$$c){const n=this.$$c.$on(t,r);this.$$l_u.set(r,n)}super.addEventListener(t,r,i)}removeEventListener(t,r,i){if(super.removeEventListener(t,r,i),this.$$c){const n=this.$$l_u.get(r);n&&(n(),this.$$l_u.delete(r))}}connectedCallback(){return et(this,null,function*(){if(this.$$cn=!0,!this.$$c){let t=function(s){return()=>{let o;return{c:function(){o=C("slot"),s!=="default"&&m(o,"name",s)},m:function(u,d){B(u,o,d)},d:function(u){u&&P(o)}}}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const r={},i=hf(this);for(const s of this.$$s)s in i&&(r[s]=[t(s)]);for(const s of this.attributes){const o=this.$$g_p(s.name);o in this.$$d||(this.$$d[o]=nn(o,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:Zr(Vt({},this.$$d),{$$slots:r,$$scope:{ctx:[]}})});const n=()=>{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 o=nn(s,this.$$d[s],this.$$p_d,"toAttribute");o==null?this.removeAttribute(this.$$p_d[s].attribute||s):this.setAttribute(this.$$p_d[s].attribute||s,o)}this.$$r=!1};this.$$c.$$.after_update.push(n),n();for(const s in this.$$l)for(const o of this.$$l[s]){const a=this.$$c.$on(s,o);this.$$l_u.set(o,a)}this.$$l={}}})}attributeChangedCallback(t,r,i){var n;this.$$r||(t=this.$$g_p(t),this.$$d[t]=nn(t,i,this.$$p_d,"toProp"),(n=this.$$c)==null||n.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(t){return Object.keys(this.$$p_d).find(r=>this.$$p_d[r].attribute===t||!this.$$p_d[r].attribute&&r.toLowerCase()===t)||t}});function nn(e,t,r,i){var s;const n=(s=r[e])==null?void 0:s.type;if(t=n==="Boolean"&&typeof t!="boolean"?t!=null:t,!i||!r[e])return t;if(i==="toAttribute")switch(n){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t==null?null:t;default:return t}else switch(n){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function Nn(e,t,r,i,n,s){let o=class extends id{constructor(){super(e,r,n),this.$$p_d=t}static get observedAttributes(){return Object.keys(t).map(a=>(t[a].attribute||a).toLowerCase())}};return Object.keys(t).forEach(a=>{Object.defineProperty(o.prototype,a,{get(){return this.$$c&&a in this.$$c?this.$$c[a]:this.$$d[a]},set(l){var u;l=nn(a,l,t),this.$$d[a]=l,(u=this.$$c)==null||u.$set({[a]:l})}})}),i.forEach(a=>{Object.defineProperty(o.prototype,a,{get(){var l;return(l=this.$$c)==null?void 0:l[a]}})}),e.element=o,o}class In{constructor(){nt(this,"$$");nt(this,"$$set")}$destroy(){vf(this,1),this.$destroy=Se}$on(t,r){if(!Ai(r))return Se;const i=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return i.push(r),()=>{const n=i.indexOf(r);n!==-1&&i.splice(n,1)}}$set(t){this.$$set&&!nf(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const wf="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(wf);const gr=[];function Cf(e,t){return{subscribe:Ln(e,t).subscribe}}function Ln(e,t=Se){let r;const i=new Set;function n(a){if(Ti(e,a)&&(e=a,r)){const l=!gr.length;for(const u of i)u[1](),gr.push(u,e);if(l){for(let u=0;u<gr.length;u+=2)gr[u][0](gr[u+1]);gr.length=0}}}function s(a){n(a(e))}function o(a,l=Se){const u=[a,l];return i.add(u),i.size===1&&(r=t(n,s)||Se),a(e),()=>{i.delete(u),i.size===0&&r&&(r(),r=null)}}return{set:n,update:s,subscribe:o}}function zr(e,t,r){const i=!Array.isArray(e),n=i?[e]:e;if(!n.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const s=t.length<2;return Cf(r,(o,a)=>{let l=!1;const u=[];let d=0,c=Se;const h=()=>{if(d)return;c();const b=t(i?u[0]:u,o,a);s?o(b):c=Ai(b)?b:Se},f=n.map((b,g)=>Xu(b,v=>{u[g]=v,d&=~(1<<g),l&&h()},()=>{d|=1<<g}));return l=!0,h(),function(){mt(f),c(),l=!1}})}function xf(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ef=function(t){return kf(t)&&!Sf(t)};function kf(e){return!!e&&typeof e=="object"}function Sf(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||Df(e)}var Af=typeof Symbol=="function"&&Symbol.for,Tf=Af?Symbol.for("react.element"):60103;function Df(e){return e.$$typeof===Tf}function Pf(e){return Array.isArray(e)?[]:{}}function hi(e,t){return t.clone!==!1&&t.isMergeableObject(e)?Br(Pf(e),e,t):e}function Mf(e,t,r){return e.concat(t).map(function(i){return hi(i,r)})}function Of(e,t){if(!t.customMerge)return Br;var r=t.customMerge(e);return typeof r=="function"?r:Br}function Bf(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function Fa(e){return Object.keys(e).concat(Bf(e))}function nd(e,t){try{return t in e}catch(r){return!1}}function Nf(e,t){return nd(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function If(e,t,r){var i={};return r.isMergeableObject(e)&&Fa(e).forEach(function(n){i[n]=hi(e[n],r)}),Fa(t).forEach(function(n){Nf(e,n)||(nd(e,n)&&r.isMergeableObject(t[n])?i[n]=Of(n,r)(e[n],t[n],r):i[n]=hi(t[n],r))}),i}function Br(e,t,r){r=r||{},r.arrayMerge=r.arrayMerge||Mf,r.isMergeableObject=r.isMergeableObject||Ef,r.cloneUnlessOtherwiseSpecified=hi;var i=Array.isArray(t),n=Array.isArray(e),s=i===n;return s?i?r.arrayMerge(e,t,r):If(e,t,r):hi(t,r)}Br.all=function(t,r){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(i,n){return Br(i,n,r)},{})};var Lf=Br,Ff=Lf;const Hf=xf(Ff);var qs=function(e,t){return qs=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(r[n]=i[n])},qs(e,t)};function Ft(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");qs(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var be=function(){return be=Object.assign||function(t){for(var r,i=1,n=arguments.length;i<n;i++){r=arguments[i];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(t[s]=r[s])}return t},be.apply(this,arguments)};function Rf(e,t){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,i=Object.getOwnPropertySymbols(e);n<i.length;n++)t.indexOf(i[n])<0&&Object.prototype.propertyIsEnumerable.call(e,i[n])&&(r[i[n]]=e[i[n]]);return r}function Zs(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],i=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Xs(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var i=r.call(e),n,s=[],o;try{for(;(t===void 0||t-- >0)&&!(n=i.next()).done;)s.push(n.value)}catch(a){o={error:a}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return s}function kr(e,t,r){if(r||arguments.length===2)for(var i=0,n=t.length,s;i<n;i++)(s||!(i in t))&&(s||(s=Array.prototype.slice.call(t,0,i)),s[i]=t[i]);return e.concat(s||Array.prototype.slice.call(t))}function gs(e,t){var r=t&&t.cache?t.cache:Gf,i=t&&t.serializer?t.serializer:Wf,n=t&&t.strategy?t.strategy:Uf;return n(e,{cache:r,serializer:i})}function Yf(e){return e==null||typeof e=="number"||typeof e=="boolean"}function zf(e,t,r,i){var n=Yf(i)?i:r(i),s=t.get(n);return typeof s=="undefined"&&(s=e.call(this,i),t.set(n,s)),s}function sd(e,t,r){var i=Array.prototype.slice.call(arguments,3),n=r(i),s=t.get(n);return typeof s=="undefined"&&(s=e.apply(this,i),t.set(n,s)),s}function od(e,t,r,i,n){return r.bind(t,e,i,n)}function Uf(e,t){var r=e.length===1?zf:sd;return od(e,this,r,t.cache.create(),t.serializer)}function Vf(e,t){return od(e,this,sd,t.cache.create(),t.serializer)}var Wf=function(){return JSON.stringify(arguments)},$f=function(){function e(){this.cache=Object.create(null)}return e.prototype.get=function(t){return this.cache[t]},e.prototype.set=function(t,r){this.cache[t]=r},e}(),Gf={create:function(){return new $f}},bs={variadic:Vf},he;(function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"})(he||(he={}));var De;(function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"})(De||(De={}));var Nr;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(Nr||(Nr={}));function Ha(e){return e.type===De.literal}function jf(e){return e.type===De.argument}function ad(e){return e.type===De.number}function ld(e){return e.type===De.date}function ud(e){return e.type===De.time}function dd(e){return e.type===De.select}function cd(e){return e.type===De.plural}function qf(e){return e.type===De.pound}function hd(e){return e.type===De.tag}function fd(e){return!!(e&&typeof e=="object"&&e.type===Nr.number)}function Js(e){return!!(e&&typeof e=="object"&&e.type===Nr.dateTime)}var pd=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Zf=/(?:[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 Xf(e){var t={};return e.replace(Zf,function(r){var i=r.length;switch(r[0]){case"G":t.era=i===4?"long":i===5?"narrow":"short";break;case"y":t.year=i===2?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][i-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][i-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=i===4?"long":i===5?"narrow":"short";break;case"e":if(i<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][i-4];break;case"c":if(i<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][i-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][i-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][i-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][i-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][i-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][i-1];break;case"s":t.second=["numeric","2-digit"][i-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=i<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),t}var Jf=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function Kf(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var t=e.split(Jf).filter(function(h){return h.length>0}),r=[],i=0,n=t;i<n.length;i++){var s=n[i],o=s.split("/");if(o.length===0)throw new Error("Invalid number skeleton");for(var a=o[0],l=o.slice(1),u=0,d=l;u<d.length;u++){var c=d[u];if(c.length===0)throw new Error("Invalid number skeleton")}r.push({stem:a,options:l})}return r}function Qf(e){return e.replace(/^(.*?)-/,"")}var Ra=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,md=/^(@+)?(\+|#+)?[rs]?$/g,ep=/(\*)(0+)|(#+)(0+)|(0+)/g,_d=/^(0+)$/;function Ya(e){var t={};return e[e.length-1]==="r"?t.roundingPriority="morePrecision":e[e.length-1]==="s"&&(t.roundingPriority="lessPrecision"),e.replace(md,function(r,i,n){return typeof n!="string"?(t.minimumSignificantDigits=i.length,t.maximumSignificantDigits=i.length):n==="+"?t.minimumSignificantDigits=i.length:i[0]==="#"?t.maximumSignificantDigits=i.length:(t.minimumSignificantDigits=i.length,t.maximumSignificantDigits=i.length+(typeof n=="string"?n.length:0)),""}),t}function gd(e){switch(e){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 tp(e){var t;if(e[0]==="E"&&e[1]==="E"?(t={notation:"engineering"},e=e.slice(2)):e[0]==="E"&&(t={notation:"scientific"},e=e.slice(1)),t){var r=e.slice(0,2);if(r==="+!"?(t.signDisplay="always",e=e.slice(2)):r==="+?"&&(t.signDisplay="exceptZero",e=e.slice(2)),!_d.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function za(e){var t={},r=gd(e);return r||t}function rp(e){for(var t={},r=0,i=e;r<i.length;r++){var n=i[r];switch(n.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=n.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=Qf(n.options[0]);continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=be(be(be({},t),{notation:"scientific"}),n.options.reduce(function(l,u){return be(be({},l),za(u))},{}));continue;case"engineering":t=be(be(be({},t),{notation:"engineering"}),n.options.reduce(function(l,u){return be(be({},l),za(u))},{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(n.options[0]);continue;case"rounding-mode-floor":t.roundingMode="floor";continue;case"rounding-mode-ceiling":t.roundingMode="ceil";continue;case"rounding-mode-down":t.roundingMode="trunc";continue;case"rounding-mode-up":t.roundingMode="expand";continue;case"rounding-mode-half-even":t.roundingMode="halfEven";continue;case"rounding-mode-half-down":t.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":t.roundingMode="halfExpand";continue;case"integer-width":if(n.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");n.options[0].replace(ep,function(l,u,d,c,h,f){if(u)t.minimumIntegerDigits=d.length;else{if(c&&h)throw new Error("We currently do not support maximum integer digits");if(f)throw new Error("We currently do not support exact integer digits")}return""});continue}if(_d.test(n.stem)){t.minimumIntegerDigits=n.stem.length;continue}if(Ra.test(n.stem)){if(n.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");n.stem.replace(Ra,function(l,u,d,c,h,f){return d==="*"?t.minimumFractionDigits=u.length:c&&c[0]==="#"?t.maximumFractionDigits=c.length:h&&f?(t.minimumFractionDigits=h.length,t.maximumFractionDigits=h.length+f.length):(t.minimumFractionDigits=u.length,t.maximumFractionDigits=u.length),""});var s=n.options[0];s==="w"?t=be(be({},t),{trailingZeroDisplay:"stripIfInteger"}):s&&(t=be(be({},t),Ya(s)));continue}if(md.test(n.stem)){t=be(be({},t),Ya(n.stem));continue}var o=gd(n.stem);o&&(t=be(be({},t),o));var a=tp(n.stem);a&&(t=be(be({},t),a))}return t}var ji={"001":["H","h"],419:["h","H","hB","hb"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["h","H","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["h","H","hB","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["h","H","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["h","H","hB","hb"],CU:["h","H","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["h","H","hB","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["h","H","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["h","H","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["h","H","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["h","H","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["h","H","hB","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["h","H","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["h","H","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["h","H","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"en-HK":["h","hb","H","hB"],"en-IL":["H","h","hb","hB"],"en-MY":["h","hb","H","hB"],"es-BR":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function ip(e,t){for(var r="",i=0;i<e.length;i++){var n=e.charAt(i);if(n==="j"){for(var s=0;i+1<e.length&&e.charAt(i+1)===n;)s++,i++;var o=1+(s&1),a=s<2?1:3+(s>>1),l="a",u=np(t);for((u=="H"||u=="k")&&(a=0);a-- >0;)r+=l;for(;o-- >0;)r=u+r}else n==="J"?r+="H":r+=n}return r}function np(e){var t=e.hourCycle;if(t===void 0&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var r=e.language,i;r!=="root"&&(i=e.maximize().region);var n=ji[i||""]||ji[r||""]||ji["".concat(r,"-001")]||ji["001"];return n[0]}var vs,sp=new RegExp("^".concat(pd.source,"*")),op=new RegExp("".concat(pd.source,"*$"));function fe(e,t){return{start:e,end:t}}var ap=!!String.prototype.startsWith&&"_a".startsWith("a",1),lp=!!String.fromCodePoint,up=!!Object.fromEntries,dp=!!String.prototype.codePointAt,cp=!!String.prototype.trimStart,hp=!!String.prototype.trimEnd,fp=!!Number.isSafeInteger,pp=fp?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},Ks=!0;try{var mp=vd("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Ks=((vs=mp.exec("a"))===null||vs===void 0?void 0:vs[0])==="a"}catch(e){Ks=!1}var Ua=ap?function(t,r,i){return t.startsWith(r,i)}:function(t,r,i){return t.slice(i,i+r.length)===r},Qs=lp?String.fromCodePoint:function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];for(var i="",n=t.length,s=0,o;n>s;){if(o=t[s++],o>1114111)throw RangeError(o+" is not a valid code point");i+=o<65536?String.fromCharCode(o):String.fromCharCode(((o-=65536)>>10)+55296,o%1024+56320)}return i},Va=up?Object.fromEntries:function(t){for(var r={},i=0,n=t;i<n.length;i++){var s=n[i],o=s[0],a=s[1];r[o]=a}return r},bd=dp?function(t,r){return t.codePointAt(r)}:function(t,r){var i=t.length;if(!(r<0||r>=i)){var n=t.charCodeAt(r),s;return n<55296||n>56319||r+1===i||(s=t.charCodeAt(r+1))<56320||s>57343?n:(n-55296<<10)+(s-56320)+65536}},_p=cp?function(t){return t.trimStart()}:function(t){return t.replace(sp,"")},gp=hp?function(t){return t.trimEnd()}:function(t){return t.replace(op,"")};function vd(e,t){return new RegExp(e,t)}var eo;if(Ks){var Wa=vd("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");eo=function(t,r){var i;Wa.lastIndex=r;var n=Wa.exec(t);return(i=n[1])!==null&&i!==void 0?i:""}}else eo=function(t,r){for(var i=[];;){var n=bd(t,r);if(n===void 0||yd(n)||wp(n))break;i.push(n),r+=n>=65536?2:1}return Qs.apply(void 0,i)};var bp=function(){function e(t,r){r===void 0&&(r={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!r.ignoreTag,this.locale=r.locale,this.requiresOtherClause=!!r.requiresOtherClause,this.shouldParseSkeletons=!!r.shouldParseSkeletons}return e.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(t,r,i){for(var n=[];!this.isEOF();){var s=this.char();if(s===123){var o=this.parseArgument(t,i);if(o.err)return o;n.push(o.val)}else{if(s===125&&t>0)break;if(s===35&&(r==="plural"||r==="selectordinal")){var a=this.clonePosition();this.bump(),n.push({type:De.pound,location:fe(a,this.clonePosition())})}else if(s===60&&!this.ignoreTag&&this.peek()===47){if(i)break;return this.error(he.UNMATCHED_CLOSING_TAG,fe(this.clonePosition(),this.clonePosition()))}else if(s===60&&!this.ignoreTag&&to(this.peek()||0)){var o=this.parseTag(t,r);if(o.err)return o;n.push(o.val)}else{var o=this.parseLiteral(t,r);if(o.err)return o;n.push(o.val)}}}return{val:n,err:null}},e.prototype.parseTag=function(t,r){var i=this.clonePosition();this.bump();var n=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:De.literal,value:"<".concat(n,"/>"),location:fe(i,this.clonePosition())},err:null};if(this.bumpIf(">")){var s=this.parseMessage(t+1,r,!0);if(s.err)return s;var o=s.val,a=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!to(this.char()))return this.error(he.INVALID_TAG,fe(a,this.clonePosition()));var l=this.clonePosition(),u=this.parseTagName();return n!==u?this.error(he.UNMATCHED_CLOSING_TAG,fe(l,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:De.tag,value:n,children:o,location:fe(i,this.clonePosition())},err:null}:this.error(he.INVALID_TAG,fe(a,this.clonePosition())))}else return this.error(he.UNCLOSED_TAG,fe(i,this.clonePosition()))}else return this.error(he.INVALID_TAG,fe(i,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&yp(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,r){for(var i=this.clonePosition(),n="";;){var s=this.tryParseQuote(r);if(s){n+=s;continue}var o=this.tryParseUnquoted(t,r);if(o){n+=o;continue}var a=this.tryParseLeftAngleBracket();if(a){n+=a;continue}break}var l=fe(i,this.clonePosition());return{val:{type:De.literal,value:n,location:l},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!vp(this.peek()||0))?(this.bump(),"<"):null},e.prototype.tryParseQuote=function(t){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(t==="plural"||t==="selectordinal")break;return null;default:return null}this.bump();var r=[this.char()];for(this.bump();!this.isEOF();){var i=this.char();if(i===39)if(this.peek()===39)r.push(39),this.bump();else{this.bump();break}else r.push(i);this.bump()}return Qs.apply(void 0,r)},e.prototype.tryParseUnquoted=function(t,r){if(this.isEOF())return null;var i=this.char();return i===60||i===123||i===35&&(r==="plural"||r==="selectordinal")||i===125&&t>0?null:(this.bump(),Qs(i))},e.prototype.parseArgument=function(t,r){var i=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(he.EXPECT_ARGUMENT_CLOSING_BRACE,fe(i,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(he.EMPTY_ARGUMENT,fe(i,this.clonePosition()));var n=this.parseIdentifierIfPossible().value;if(!n)return this.error(he.MALFORMED_ARGUMENT,fe(i,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(he.EXPECT_ARGUMENT_CLOSING_BRACE,fe(i,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:De.argument,value:n,location:fe(i,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(he.EXPECT_ARGUMENT_CLOSING_BRACE,fe(i,this.clonePosition())):this.parseArgumentOptions(t,r,n,i);default:return this.error(he.MALFORMED_ARGUMENT,fe(i,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),r=this.offset(),i=eo(this.message,r),n=r+i.length;this.bumpTo(n);var s=this.clonePosition(),o=fe(t,s);return{value:i,location:o}},e.prototype.parseArgumentOptions=function(t,r,i,n){var s,o=this.clonePosition(),a=this.parseIdentifierIfPossible().value,l=this.clonePosition();switch(a){case"":return this.error(he.EXPECT_ARGUMENT_TYPE,fe(o,l));case"number":case"date":case"time":{this.bumpSpace();var u=null;if(this.bumpIf(",")){this.bumpSpace();var d=this.clonePosition(),c=this.parseSimpleArgStyleIfPossible();if(c.err)return c;var h=gp(c.val);if(h.length===0)return this.error(he.EXPECT_ARGUMENT_STYLE,fe(this.clonePosition(),this.clonePosition()));var f=fe(d,this.clonePosition());u={style:h,styleLocation:f}}var b=this.tryParseArgumentClose(n);if(b.err)return b;var g=fe(n,this.clonePosition());if(u&&Ua(u==null?void 0:u.style,"::",0)){var v=_p(u.style.slice(2));if(a==="number"){var c=this.parseNumberSkeletonFromString(v,u.styleLocation);return c.err?c:{val:{type:De.number,value:i,location:g,style:c.val},err:null}}else{if(v.length===0)return this.error(he.EXPECT_DATE_TIME_SKELETON,g);var y=v;this.locale&&(y=ip(v,this.locale));var h={type:Nr.dateTime,pattern:y,location:u.styleLocation,parsedOptions:this.shouldParseSkeletons?Xf(y):{}},_=a==="date"?De.date:De.time;return{val:{type:_,value:i,location:g,style:h},err:null}}}return{val:{type:a==="number"?De.number:a==="date"?De.date:De.time,value:i,location:g,style:(s=u==null?void 0:u.style)!==null&&s!==void 0?s:null},err:null}}case"plural":case"selectordinal":case"select":{var E=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(he.EXPECT_SELECT_ARGUMENT_OPTIONS,fe(E,be({},E)));this.bumpSpace();var w=this.parseIdentifierIfPossible(),N=0;if(a!=="select"&&w.value==="offset"){if(!this.bumpIf(":"))return this.error(he.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,fe(this.clonePosition(),this.clonePosition()));this.bumpSpace();var c=this.tryParseDecimalInteger(he.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,he.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(c.err)return c;this.bumpSpace(),w=this.parseIdentifierIfPossible(),N=c.val}var x=this.tryParsePluralOrSelectOptions(t,a,r,w);if(x.err)return x;var b=this.tryParseArgumentClose(n);if(b.err)return b;var I=fe(n,this.clonePosition());return a==="select"?{val:{type:De.select,value:i,options:Va(x.val),location:I},err:null}:{val:{type:De.plural,value:i,options:Va(x.val),offset:N,pluralType:a==="plural"?"cardinal":"ordinal",location:I},err:null}}default:return this.error(he.INVALID_ARGUMENT_TYPE,fe(o,l))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(he.EXPECT_ARGUMENT_CLOSING_BRACE,fe(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,r=this.clonePosition();!this.isEOF();){var i=this.char();switch(i){case 39:{this.bump();var n=this.clonePosition();if(!this.bumpUntil("'"))return this.error(he.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,fe(n,this.clonePosition()));this.bump();break}case 123:{t+=1,this.bump();break}case 125:{if(t>0)t-=1;else return{val:this.message.slice(r.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(r.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(t,r){var i=[];try{i=Kf(t)}catch(n){return this.error(he.INVALID_NUMBER_SKELETON,r)}return{val:{type:Nr.number,tokens:i,location:r,parsedOptions:this.shouldParseSkeletons?rp(i):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,r,i,n){for(var s,o=!1,a=[],l=new Set,u=n.value,d=n.location;;){if(u.length===0){var c=this.clonePosition();if(r!=="select"&&this.bumpIf("=")){var h=this.tryParseDecimalInteger(he.EXPECT_PLURAL_ARGUMENT_SELECTOR,he.INVALID_PLURAL_ARGUMENT_SELECTOR);if(h.err)return h;d=fe(c,this.clonePosition()),u=this.message.slice(c.offset,this.offset())}else break}if(l.has(u))return this.error(r==="select"?he.DUPLICATE_SELECT_ARGUMENT_SELECTOR:he.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,d);u==="other"&&(o=!0),this.bumpSpace();var f=this.clonePosition();if(!this.bumpIf("{"))return this.error(r==="select"?he.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:he.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,fe(this.clonePosition(),this.clonePosition()));var b=this.parseMessage(t+1,r,i);if(b.err)return b;var g=this.tryParseArgumentClose(f);if(g.err)return g;a.push([u,{value:b.val,location:fe(f,this.clonePosition())}]),l.add(u),this.bumpSpace(),s=this.parseIdentifierIfPossible(),u=s.value,d=s.location}return a.length===0?this.error(r==="select"?he.EXPECT_SELECT_ARGUMENT_SELECTOR:he.EXPECT_PLURAL_ARGUMENT_SELECTOR,fe(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!o?this.error(he.MISSING_OTHER_CLAUSE,fe(this.clonePosition(),this.clonePosition())):{val:a,err:null}},e.prototype.tryParseDecimalInteger=function(t,r){var i=1,n=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(i=-1);for(var s=!1,o=0;!this.isEOF();){var a=this.char();if(a>=48&&a<=57)s=!0,o=o*10+(a-48),this.bump();else break}var l=fe(n,this.clonePosition());return s?(o*=i,pp(o)?{val:o,err:null}:this.error(r,l)):this.error(t,l)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var r=bd(this.message,t);if(r===void 0)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return r},e.prototype.error=function(t,r){return{val:null,err:{kind:t,message:this.message,location:r}}},e.prototype.bump=function(){if(!this.isEOF()){var t=this.char();t===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2)}},e.prototype.bumpIf=function(t){if(Ua(this.message,t,this.offset())){for(var r=0;r<t.length;r++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(t){var r=this.offset(),i=this.message.indexOf(t,r);return i>=0?(this.bumpTo(i),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset ".concat(t," must be greater than or equal to the current offset ").concat(this.offset()));for(t=Math.min(t,this.message.length);;){var r=this.offset();if(r===t)break;if(r>t)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&yd(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),r=this.offset(),i=this.message.charCodeAt(r+(t>=65536?2:1));return i!=null?i:null},e}();function to(e){return e>=97&&e<=122||e>=65&&e<=90}function vp(e){return to(e)||e===47}function yp(e){return e===45||e===46||e>=48&&e<=57||e===95||e>=97&&e<=122||e>=65&&e<=90||e==183||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function yd(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function wp(e){return e>=33&&e<=35||e===36||e>=37&&e<=39||e===40||e===41||e===42||e===43||e===44||e===45||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||e===91||e===92||e===93||e===94||e===96||e===123||e===124||e===125||e===126||e===161||e>=162&&e<=165||e===166||e===167||e===169||e===171||e===172||e===174||e===176||e===177||e===182||e===187||e===191||e===215||e===247||e>=8208&&e<=8213||e>=8214&&e<=8215||e===8216||e===8217||e===8218||e>=8219&&e<=8220||e===8221||e===8222||e===8223||e>=8224&&e<=8231||e>=8240&&e<=8248||e===8249||e===8250||e>=8251&&e<=8254||e>=8257&&e<=8259||e===8260||e===8261||e===8262||e>=8263&&e<=8273||e===8274||e===8275||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||e===8608||e>=8609&&e<=8610||e===8611||e>=8612&&e<=8613||e===8614||e>=8615&&e<=8621||e===8622||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||e===8658||e===8659||e===8660||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||e===8968||e===8969||e===8970||e===8971||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||e===9001||e===9002||e>=9003&&e<=9083||e===9084||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||e===9655||e>=9656&&e<=9664||e===9665||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||e===9839||e>=9840&&e<=10087||e===10088||e===10089||e===10090||e===10091||e===10092||e===10093||e===10094||e===10095||e===10096||e===10097||e===10098||e===10099||e===10100||e===10101||e>=10132&&e<=10175||e>=10176&&e<=10180||e===10181||e===10182||e>=10183&&e<=10213||e===10214||e===10215||e===10216||e===10217||e===10218||e===10219||e===10220||e===10221||e===10222||e===10223||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||e===10627||e===10628||e===10629||e===10630||e===10631||e===10632||e===10633||e===10634||e===10635||e===10636||e===10637||e===10638||e===10639||e===10640||e===10641||e===10642||e===10643||e===10644||e===10645||e===10646||e===10647||e===10648||e>=10649&&e<=10711||e===10712||e===10713||e===10714||e===10715||e>=10716&&e<=10747||e===10748||e===10749||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||e===11158||e>=11159&&e<=11263||e>=11776&&e<=11777||e===11778||e===11779||e===11780||e===11781||e>=11782&&e<=11784||e===11785||e===11786||e===11787||e===11788||e===11789||e>=11790&&e<=11798||e===11799||e>=11800&&e<=11801||e===11802||e===11803||e===11804||e===11805||e>=11806&&e<=11807||e===11808||e===11809||e===11810||e===11811||e===11812||e===11813||e===11814||e===11815||e===11816||e===11817||e>=11818&&e<=11822||e===11823||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||e===11840||e===11841||e===11842||e>=11843&&e<=11855||e>=11856&&e<=11857||e===11858||e>=11859&&e<=11903||e>=12289&&e<=12291||e===12296||e===12297||e===12298||e===12299||e===12300||e===12301||e===12302||e===12303||e===12304||e===12305||e>=12306&&e<=12307||e===12308||e===12309||e===12310||e===12311||e===12312||e===12313||e===12314||e===12315||e===12316||e===12317||e>=12318&&e<=12319||e===12320||e===12336||e===64830||e===64831||e>=65093&&e<=65094}function ro(e){e.forEach(function(t){if(delete t.location,dd(t)||cd(t))for(var r in t.options)delete t.options[r].location,ro(t.options[r].value);else ad(t)&&fd(t.style)||(ld(t)||ud(t))&&Js(t.style)?delete t.style.location:hd(t)&&ro(t.children)})}function Cp(e,t){t===void 0&&(t={}),t=be({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var r=new bp(e,t).parse();if(r.err){var i=SyntaxError(he[r.err.kind]);throw i.location=r.err.location,i.originalMessage=r.err.message,i}return t!=null&&t.captureLocation||ro(r.val),r.val}var Ir;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(Ir||(Ir={}));var Fn=function(e){Ft(t,e);function t(r,i,n){var s=e.call(this,r)||this;return s.code=i,s.originalMessage=n,s}return t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),$a=function(e){Ft(t,e);function t(r,i,n,s){return e.call(this,'Invalid values for "'.concat(r,'": "').concat(i,'". Options are "').concat(Object.keys(n).join('", "'),'"'),Ir.INVALID_VALUE,s)||this}return t}(Fn),xp=function(e){Ft(t,e);function t(r,i,n){return e.call(this,'Value for "'.concat(r,'" must be of type ').concat(i),Ir.INVALID_VALUE,n)||this}return t}(Fn),Ep=function(e){Ft(t,e);function t(r,i){return e.call(this,'The intl string context variable "'.concat(r,'" was not provided to the string "').concat(i,'"'),Ir.MISSING_VALUE,i)||this}return t}(Fn),Ze;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(Ze||(Ze={}));function kp(e){return e.length<2?e:e.reduce(function(t,r){var i=t[t.length-1];return!i||i.type!==Ze.literal||r.type!==Ze.literal?t.push(r):i.value+=r.value,t},[])}function Sp(e){return typeof e=="function"}function sn(e,t,r,i,n,s,o){if(e.length===1&&Ha(e[0]))return[{type:Ze.literal,value:e[0].value}];for(var a=[],l=0,u=e;l<u.length;l++){var d=u[l];if(Ha(d)){a.push({type:Ze.literal,value:d.value});continue}if(qf(d)){typeof s=="number"&&a.push({type:Ze.literal,value:r.getNumberFormat(t).format(s)});continue}var c=d.value;if(!(n&&c in n))throw new Ep(c,o);var h=n[c];if(jf(d)){(!h||typeof h=="string"||typeof h=="number")&&(h=typeof h=="string"||typeof h=="number"?String(h):""),a.push({type:typeof h=="string"?Ze.literal:Ze.object,value:h});continue}if(ld(d)){var f=typeof d.style=="string"?i.date[d.style]:Js(d.style)?d.style.parsedOptions:void 0;a.push({type:Ze.literal,value:r.getDateTimeFormat(t,f).format(h)});continue}if(ud(d)){var f=typeof d.style=="string"?i.time[d.style]:Js(d.style)?d.style.parsedOptions:i.time.medium;a.push({type:Ze.literal,value:r.getDateTimeFormat(t,f).format(h)});continue}if(ad(d)){var f=typeof d.style=="string"?i.number[d.style]:fd(d.style)?d.style.parsedOptions:void 0;f&&f.scale&&(h=h*(f.scale||1)),a.push({type:Ze.literal,value:r.getNumberFormat(t,f).format(h)});continue}if(hd(d)){var b=d.children,g=d.value,v=n[g];if(!Sp(v))throw new xp(g,"function",o);var y=sn(b,t,r,i,n,s),_=v(y.map(function(N){return N.value}));Array.isArray(_)||(_=[_]),a.push.apply(a,_.map(function(N){return{type:typeof N=="string"?Ze.literal:Ze.object,value:N}}))}if(dd(d)){var E=d.options[h]||d.options.other;if(!E)throw new $a(d.value,h,Object.keys(d.options),o);a.push.apply(a,sn(E.value,t,r,i,n));continue}if(cd(d)){var E=d.options["=".concat(h)];if(!E){if(!Intl.PluralRules)throw new Fn(`Intl.PluralRules is not available in this environment.
|
|
1
|
+
"use strict";var nf=Object.defineProperty,sf=Object.defineProperties;var of=Object.getOwnPropertyDescriptors;var Vi=Object.getOwnPropertySymbols;var La=Object.prototype.hasOwnProperty,Fa=Object.prototype.propertyIsEnumerable;var _s=(e,t,r)=>t in e?nf(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,er=(e,t)=>{for(var r in t||(t={}))La.call(t,r)&&_s(e,r,t[r]);if(Vi)for(var r of Vi(t))Fa.call(t,r)&&_s(e,r,t[r]);return e},Zr=(e,t)=>sf(e,of(t));var gs=(e,t)=>{var r={};for(var i in e)La.call(e,i)&&t.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&Vi)for(var i of Vi(e))t.indexOf(i)<0&&Fa.call(e,i)&&(r[i]=e[i]);return r};var at=(e,t,r)=>(_s(e,typeof t!="symbol"?t+"":t,r),r);var rt=(e,t,r)=>new Promise((i,n)=>{var s=l=>{try{a(r.next(l))}catch(u){n(u)}},o=l=>{try{a(r.throw(l))}catch(u){n(u)}},a=l=>l.done?i(l.value):Promise.resolve(l.value).then(s,o);a((r=r.apply(e,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function ke(){}function T(e,t){for(const r in t)e[r]=t[r];return e}function Xu(e){return e()}function Ra(){return Object.create(null)}function gt(e){e.forEach(Xu)}function Ai(e){return typeof e=="function"}function Ti(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}let Gi;function Ha(e,t){return e===t?!0:(Gi||(Gi=document.createElement("a")),Gi.href=t,e===Gi.href)}function af(e){return Object.keys(e).length===0}function Ju(e,...t){if(e==null){for(const i of t)i(void 0);return ke}const r=e.subscribe(...t);return r.unsubscribe?()=>r.unsubscribe():r}function Qu(e,t,r){e.$$.on_destroy.push(Ju(t,r))}function Pi(e,t,r,i){if(e){const n=ed(e,t,r,i);return e[0](n)}}function ed(e,t,r,i){return e[1]&&i?T(r.ctx.slice(),e[1](i(t))):r.ctx}function Di(e,t,r,i){if(e[2]&&i){const n=e[2](i(r));if(t.dirty===void 0)return n;if(typeof n=="object"){const s=[],o=Math.max(t.dirty.length,n.length);for(let a=0;a<o;a+=1)s[a]=t.dirty[a]|n[a];return s}return t.dirty|n}return t.dirty}function Mi(e,t,r,i,n,s){if(n){const o=ed(t,r,i,s);e.p(o,n)}}function Oi(e){if(e.ctx.length>32){const t=[],r=e.ctx.length/32;for(let i=0;i<r;i++)t[i]=-1;return t}return-1}function lf(e){return e&&Ai(e.destroy)?e.destroy:ke}const uf=["",!0,1,"true","contenteditable"];function p(e,t){e.appendChild(t)}function On(e,t,r){const i=df(e);if(!i.getElementById(t)){const n=C("style");n.id=t,n.textContent=r,cf(i,n)}}function df(e){if(!e)return document;const t=e.getRootNode?e.getRootNode():e.ownerDocument;return t&&t.host?t:e.ownerDocument}function cf(e,t){return p(e.head||e,t),t.sheet}function B(e,t,r){e.insertBefore(t,r||null)}function D(e){e.parentNode&&e.parentNode.removeChild(e)}function Xt(e,t){for(let r=0;r<e.length;r+=1)e[r]&&e[r].d(t)}function C(e){return document.createElement(e)}function ee(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function O(e){return document.createTextNode(e)}function $(){return O(" ")}function Ft(){return O("")}function Le(e,t,r,i){return e.addEventListener(t,r,i),()=>e.removeEventListener(t,r,i)}function m(e,t,r){r==null?e.removeAttribute(t):e.getAttribute(t)!==r&&e.setAttribute(t,r)}const hf=["width","height"];function S(e,t){const r=Object.getOwnPropertyDescriptors(e.__proto__);for(const i in t)t[i]==null?e.removeAttribute(i):i==="style"?e.style.cssText=t[i]:i==="__value"?e.value=e[i]=t[i]:r[i]&&r[i].set&&hf.indexOf(i)===-1?e[i]=t[i]:m(e,i,t[i])}function td(e,t){for(const r in t)m(e,r,t[r])}function Je(e,t,r){const i=t.toLowerCase();i in e?e[i]=typeof e[i]=="boolean"&&r===""?!0:r:t in e?e[t]=typeof e[t]=="boolean"&&r===""?!0:r:m(e,t,r)}function rd(e){return e===""?null:+e}function ff(e){return Array.from(e.childNodes)}function Ce(e,t){t=""+t,e.data!==t&&(e.data=t)}function pf(e,t){t=""+t,e.wholeText!==t&&(e.data=t)}function ne(e,t,r){~uf.indexOf(r)?pf(e,t):Ce(e,t)}function fn(e,t){e.value=t==null?"":t}function qs(e,t,r,i){r==null?e.style.removeProperty(t):e.style.setProperty(t,r,"")}function le(e,t,r){e.classList.toggle(t,!!r)}function mf(e){const t={};return e.childNodes.forEach(r=>{t[r.slot||"default"]=!0}),t}let hi;function oi(e){hi=e}function _f(){if(!hi)throw new Error("Function called outside component initialization");return hi}function Bn(e){_f().$$.on_mount.push(e)}const wr=[],Mt=[];let Sr=[];const za=[],gf=Promise.resolve();let Zs=!1;function bf(){Zs||(Zs=!0,gf.then(me))}function Ks(e){Sr.push(e)}const bs=new Set;let gr=0;function me(){if(gr!==0)return;const e=hi;do{try{for(;gr<wr.length;){const t=wr[gr];gr++,oi(t),vf(t.$$)}}catch(t){throw wr.length=0,gr=0,t}for(oi(null),wr.length=0,gr=0;Mt.length;)Mt.pop()();for(let t=0;t<Sr.length;t+=1){const r=Sr[t];bs.has(r)||(bs.add(r),r())}Sr.length=0}while(wr.length);for(;za.length;)za.pop()();Zs=!1,bs.clear(),oi(e)}function vf(e){if(e.fragment!==null){e.update(),gt(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(Ks)}}function yf(e){const t=[],r=[];Sr.forEach(i=>e.indexOf(i)===-1?t.push(i):r.push(i)),r.forEach(i=>i()),Sr=t}const rn=new Set;let ir;function id(){ir={r:0,c:[],p:ir}}function nd(){ir.r||gt(ir.c),ir=ir.p}function pt(e,t){e&&e.i&&(rn.delete(e),e.i(t))}function It(e,t,r,i){if(e&&e.o){if(rn.has(e))return;rn.add(e),ir.c.push(()=>{rn.delete(e),i&&(r&&e.d(1),i())}),e.o(t)}else i&&i()}function je(e){return(e==null?void 0:e.length)!==void 0?e:Array.from(e)}function Ie(e,t){const r={},i={},n={$$scope:1};let s=e.length;for(;s--;){const o=e[s],a=t[s];if(a){for(const l in o)l in a||(i[l]=1);for(const l in a)n[l]||(r[l]=a[l],n[l]=1);e[s]=a}else for(const l in o)n[l]=1}for(const o in i)o in r||(r[o]=void 0);return r}function wf(e,t,r){const{fragment:i,after_update:n}=e.$$;i&&i.m(t,r),Ks(()=>{const s=e.$$.on_mount.map(Xu).filter(Ai);e.$$.on_destroy?e.$$.on_destroy.push(...s):gt(s),e.$$.on_mount=[]}),n.forEach(Ks)}function Cf(e,t){const r=e.$$;r.fragment!==null&&(yf(r.after_update),gt(r.on_destroy),r.fragment&&r.fragment.d(t),r.on_destroy=r.fragment=null,r.ctx=[])}function Ef(e,t){e.$$.dirty[0]===-1&&(wr.push(e),bf(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function Nn(e,t,r,i,n,s,o=null,a=[-1]){const l=hi;oi(e);const u=e.$$={fragment:null,ctx:[],props:s,update:ke,not_equal:n,bound:Ra(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(l?l.$$.context:[])),callbacks:Ra(),dirty:a,skip_bound:!1,root:t.target||l.$$.root};o&&o(u.root);let d=!1;if(u.ctx=r?r(e,t.props||{},(c,h,...f)=>{const b=f.length?f[0]:h;return u.ctx&&n(u.ctx[c],u.ctx[c]=b)&&(!u.skip_bound&&u.bound[c]&&u.bound[c](b),d&&Ef(e,c)),h}):[],u.update(),d=!0,gt(u.before_update),u.fragment=i?i(u.ctx):!1,t.target){if(t.hydrate){const c=ff(t.target);u.fragment&&u.fragment.l(c),c.forEach(D)}else u.fragment&&u.fragment.c();t.intro&&pt(e.$$.fragment),wf(e,t.target,t.anchor),me()}oi(l)}let sd;typeof HTMLElement=="function"&&(sd=class extends HTMLElement{constructor(t,r,i){super();at(this,"$$ctor");at(this,"$$s");at(this,"$$c");at(this,"$$cn",!1);at(this,"$$d",{});at(this,"$$r",!1);at(this,"$$p_d",{});at(this,"$$l",{});at(this,"$$l_u",new Map);this.$$ctor=t,this.$$s=r,i&&this.attachShadow({mode:"open"})}addEventListener(t,r,i){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(r),this.$$c){const n=this.$$c.$on(t,r);this.$$l_u.set(r,n)}super.addEventListener(t,r,i)}removeEventListener(t,r,i){if(super.removeEventListener(t,r,i),this.$$c){const n=this.$$l_u.get(r);n&&(n(),this.$$l_u.delete(r))}}connectedCallback(){return rt(this,null,function*(){if(this.$$cn=!0,!this.$$c){let t=function(s){return()=>{let o;return{c:function(){o=C("slot"),s!=="default"&&m(o,"name",s)},m:function(u,d){B(u,o,d)},d:function(u){u&&D(o)}}}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const r={},i=mf(this);for(const s of this.$$s)s in i&&(r[s]=[t(s)]);for(const s of this.attributes){const o=this.$$g_p(s.name);o in this.$$d||(this.$$d[o]=nn(o,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:Zr(er({},this.$$d),{$$slots:r,$$scope:{ctx:[]}})});const n=()=>{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 o=nn(s,this.$$d[s],this.$$p_d,"toAttribute");o==null?this.removeAttribute(this.$$p_d[s].attribute||s):this.setAttribute(this.$$p_d[s].attribute||s,o)}this.$$r=!1};this.$$c.$$.after_update.push(n),n();for(const s in this.$$l)for(const o of this.$$l[s]){const a=this.$$c.$on(s,o);this.$$l_u.set(o,a)}this.$$l={}}})}attributeChangedCallback(t,r,i){var n;this.$$r||(t=this.$$g_p(t),this.$$d[t]=nn(t,i,this.$$p_d,"toProp"),(n=this.$$c)==null||n.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(t){return Object.keys(this.$$p_d).find(r=>this.$$p_d[r].attribute===t||!this.$$p_d[r].attribute&&r.toLowerCase()===t)||t}});function nn(e,t,r,i){var s;const n=(s=r[e])==null?void 0:s.type;if(t=n==="Boolean"&&typeof t!="boolean"?t!=null:t,!i||!r[e])return t;if(i==="toAttribute")switch(n){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t==null?null:t;default:return t}else switch(n){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function In(e,t,r,i,n,s){let o=class extends sd{constructor(){super(e,r,n),this.$$p_d=t}static get observedAttributes(){return Object.keys(t).map(a=>(t[a].attribute||a).toLowerCase())}};return Object.keys(t).forEach(a=>{Object.defineProperty(o.prototype,a,{get(){return this.$$c&&a in this.$$c?this.$$c[a]:this.$$d[a]},set(l){var u;l=nn(a,l,t),this.$$d[a]=l,(u=this.$$c)==null||u.$set({[a]:l})}})}),i.forEach(a=>{Object.defineProperty(o.prototype,a,{get(){var l;return(l=this.$$c)==null?void 0:l[a]}})}),e.element=o,o}class Ln{constructor(){at(this,"$$");at(this,"$$set")}$destroy(){Cf(this,1),this.$destroy=ke}$on(t,r){if(!Ai(r))return ke;const i=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return i.push(r),()=>{const n=i.indexOf(r);n!==-1&&i.splice(n,1)}}$set(t){this.$$set&&!af(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const xf="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(xf);const br=[];function Sf(e,t){return{subscribe:Fn(e,t).subscribe}}function Fn(e,t=ke){let r;const i=new Set;function n(a){if(Ti(e,a)&&(e=a,r)){const l=!br.length;for(const u of i)u[1](),br.push(u,e);if(l){for(let u=0;u<br.length;u+=2)br[u][0](br[u+1]);br.length=0}}}function s(a){n(a(e))}function o(a,l=ke){const u=[a,l];return i.add(u),i.size===1&&(r=t(n,s)||ke),a(e),()=>{i.delete(u),i.size===0&&r&&(r(),r=null)}}return{set:n,update:s,subscribe:o}}function Ur(e,t,r){const i=!Array.isArray(e),n=i?[e]:e;if(!n.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const s=t.length<2;return Sf(r,(o,a)=>{let l=!1;const u=[];let d=0,c=ke;const h=()=>{if(d)return;c();const b=t(i?u[0]:u,o,a);s?o(b):c=Ai(b)?b:ke},f=n.map((b,g)=>Ju(b,v=>{u[g]=v,d&=~(1<<g),l&&h()},()=>{d|=1<<g}));return l=!0,h(),function(){gt(f),c(),l=!1}})}function kf(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Af=function(t){return Tf(t)&&!Pf(t)};function Tf(e){return!!e&&typeof e=="object"}function Pf(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||Of(e)}var Df=typeof Symbol=="function"&&Symbol.for,Mf=Df?Symbol.for("react.element"):60103;function Of(e){return e.$$typeof===Mf}function Bf(e){return Array.isArray(e)?[]:{}}function fi(e,t){return t.clone!==!1&&t.isMergeableObject(e)?Nr(Bf(e),e,t):e}function Nf(e,t,r){return e.concat(t).map(function(i){return fi(i,r)})}function If(e,t){if(!t.customMerge)return Nr;var r=t.customMerge(e);return typeof r=="function"?r:Nr}function Lf(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function Ya(e){return Object.keys(e).concat(Lf(e))}function od(e,t){try{return t in e}catch(r){return!1}}function Ff(e,t){return od(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function Rf(e,t,r){var i={};return r.isMergeableObject(e)&&Ya(e).forEach(function(n){i[n]=fi(e[n],r)}),Ya(t).forEach(function(n){Ff(e,n)||(od(e,n)&&r.isMergeableObject(t[n])?i[n]=If(n,r)(e[n],t[n],r):i[n]=fi(t[n],r))}),i}function Nr(e,t,r){r=r||{},r.arrayMerge=r.arrayMerge||Nf,r.isMergeableObject=r.isMergeableObject||Af,r.cloneUnlessOtherwiseSpecified=fi;var i=Array.isArray(t),n=Array.isArray(e),s=i===n;return s?i?r.arrayMerge(e,t,r):Rf(e,t,r):fi(t,r)}Nr.all=function(t,r){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(i,n){return Nr(i,n,r)},{})};var Hf=Nr,zf=Hf;const Yf=kf(zf);/*! *****************************************************************************
|
|
2
|
+
Copyright (c) Microsoft Corporation.
|
|
3
|
+
|
|
4
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
5
|
+
purpose with or without fee is hereby granted.
|
|
6
|
+
|
|
7
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
8
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
9
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
10
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
11
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
12
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
13
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
14
|
+
***************************************************************************** */var Xs=function(e,t){return Xs=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(r[n]=i[n])},Xs(e,t)};function Rt(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Xs(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var be=function(){return be=Object.assign||function(t){for(var r,i=1,n=arguments.length;i<n;i++){r=arguments[i];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(t[s]=r[s])}return t},be.apply(this,arguments)};function Uf(e,t){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,i=Object.getOwnPropertySymbols(e);n<i.length;n++)t.indexOf(i[n])<0&&Object.prototype.propertyIsEnumerable.call(e,i[n])&&(r[i[n]]=e[i[n]]);return r}function Js(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],i=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Qs(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var i=r.call(e),n,s=[],o;try{for(;(t===void 0||t-- >0)&&!(n=i.next()).done;)s.push(n.value)}catch(a){o={error:a}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return s}function kr(e,t,r){if(r||arguments.length===2)for(var i=0,n=t.length,s;i<n;i++)(s||!(i in t))&&(s||(s=Array.prototype.slice.call(t,0,i)),s[i]=t[i]);return e.concat(s||t)}function vs(e,t){var r=t&&t.cache?t.cache:qf,i=t&&t.serializer?t.serializer:jf,n=t&&t.strategy?t.strategy:$f;return n(e,{cache:r,serializer:i})}function Wf(e){return e==null||typeof e=="number"||typeof e=="boolean"}function ad(e,t,r,i){var n=Wf(i)?i:r(i),s=t.get(n);return typeof s=="undefined"&&(s=e.call(this,i),t.set(n,s)),s}function ld(e,t,r){var i=Array.prototype.slice.call(arguments,3),n=r(i),s=t.get(n);return typeof s=="undefined"&&(s=e.apply(this,i),t.set(n,s)),s}function Yo(e,t,r,i,n){return r.bind(t,e,i,n)}function $f(e,t){var r=e.length===1?ad:ld;return Yo(e,this,r,t.cache.create(),t.serializer)}function Vf(e,t){return Yo(e,this,ld,t.cache.create(),t.serializer)}function Gf(e,t){return Yo(e,this,ad,t.cache.create(),t.serializer)}var jf=function(){return JSON.stringify(arguments)};function Uo(){this.cache=Object.create(null)}Uo.prototype.get=function(e){return this.cache[e]};Uo.prototype.set=function(e,t){this.cache[e]=t};var qf={create:function(){return new Uo}},ys={variadic:Vf,monadic:Gf},he;(function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"})(he||(he={}));var Pe;(function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"})(Pe||(Pe={}));var Ir;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(Ir||(Ir={}));function Ua(e){return e.type===Pe.literal}function Zf(e){return e.type===Pe.argument}function ud(e){return e.type===Pe.number}function dd(e){return e.type===Pe.date}function cd(e){return e.type===Pe.time}function hd(e){return e.type===Pe.select}function fd(e){return e.type===Pe.plural}function Kf(e){return e.type===Pe.pound}function pd(e){return e.type===Pe.tag}function md(e){return!!(e&&typeof e=="object"&&e.type===Ir.number)}function eo(e){return!!(e&&typeof e=="object"&&e.type===Ir.dateTime)}var _d=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Xf=/(?:[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 Jf(e){var t={};return e.replace(Xf,function(r){var i=r.length;switch(r[0]){case"G":t.era=i===4?"long":i===5?"narrow":"short";break;case"y":t.year=i===2?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][i-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][i-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=i===4?"long":i===5?"narrow":"short";break;case"e":if(i<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][i-4];break;case"c":if(i<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][i-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][i-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][i-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][i-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][i-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][i-1];break;case"s":t.second=["numeric","2-digit"][i-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=i<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),t}var Qf=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function ep(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var t=e.split(Qf).filter(function(h){return h.length>0}),r=[],i=0,n=t;i<n.length;i++){var s=n[i],o=s.split("/");if(o.length===0)throw new Error("Invalid number skeleton");for(var a=o[0],l=o.slice(1),u=0,d=l;u<d.length;u++){var c=d[u];if(c.length===0)throw new Error("Invalid number skeleton")}r.push({stem:a,options:l})}return r}function tp(e){return e.replace(/^(.*?)-/,"")}var Wa=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,gd=/^(@+)?(\+|#+)?[rs]?$/g,rp=/(\*)(0+)|(#+)(0+)|(0+)/g,bd=/^(0+)$/;function $a(e){var t={};return e[e.length-1]==="r"?t.roundingPriority="morePrecision":e[e.length-1]==="s"&&(t.roundingPriority="lessPrecision"),e.replace(gd,function(r,i,n){return typeof n!="string"?(t.minimumSignificantDigits=i.length,t.maximumSignificantDigits=i.length):n==="+"?t.minimumSignificantDigits=i.length:i[0]==="#"?t.maximumSignificantDigits=i.length:(t.minimumSignificantDigits=i.length,t.maximumSignificantDigits=i.length+(typeof n=="string"?n.length:0)),""}),t}function vd(e){switch(e){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 ip(e){var t;if(e[0]==="E"&&e[1]==="E"?(t={notation:"engineering"},e=e.slice(2)):e[0]==="E"&&(t={notation:"scientific"},e=e.slice(1)),t){var r=e.slice(0,2);if(r==="+!"?(t.signDisplay="always",e=e.slice(2)):r==="+?"&&(t.signDisplay="exceptZero",e=e.slice(2)),!bd.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function Va(e){var t={},r=vd(e);return r||t}function np(e){for(var t={},r=0,i=e;r<i.length;r++){var n=i[r];switch(n.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=n.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=tp(n.options[0]);continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=be(be(be({},t),{notation:"scientific"}),n.options.reduce(function(l,u){return be(be({},l),Va(u))},{}));continue;case"engineering":t=be(be(be({},t),{notation:"engineering"}),n.options.reduce(function(l,u){return be(be({},l),Va(u))},{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(n.options[0]);continue;case"rounding-mode-floor":t.roundingMode="floor";continue;case"rounding-mode-ceiling":t.roundingMode="ceil";continue;case"rounding-mode-down":t.roundingMode="trunc";continue;case"rounding-mode-up":t.roundingMode="expand";continue;case"rounding-mode-half-even":t.roundingMode="halfEven";continue;case"rounding-mode-half-down":t.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":t.roundingMode="halfExpand";continue;case"integer-width":if(n.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");n.options[0].replace(rp,function(l,u,d,c,h,f){if(u)t.minimumIntegerDigits=d.length;else{if(c&&h)throw new Error("We currently do not support maximum integer digits");if(f)throw new Error("We currently do not support exact integer digits")}return""});continue}if(bd.test(n.stem)){t.minimumIntegerDigits=n.stem.length;continue}if(Wa.test(n.stem)){if(n.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");n.stem.replace(Wa,function(l,u,d,c,h,f){return d==="*"?t.minimumFractionDigits=u.length:c&&c[0]==="#"?t.maximumFractionDigits=c.length:h&&f?(t.minimumFractionDigits=h.length,t.maximumFractionDigits=h.length+f.length):(t.minimumFractionDigits=u.length,t.maximumFractionDigits=u.length),""});var s=n.options[0];s==="w"?t=be(be({},t),{trailingZeroDisplay:"stripIfInteger"}):s&&(t=be(be({},t),$a(s)));continue}if(gd.test(n.stem)){t=be(be({},t),$a(n.stem));continue}var o=vd(n.stem);o&&(t=be(be({},t),o));var a=ip(n.stem);a&&(t=be(be({},t),a))}return t}var ji={"001":["H","h"],419:["h","H","hB","hb"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["h","H","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["h","H","hB","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["h","H","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["h","H","hB","hb"],CU:["h","H","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["h","H","hB","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["h","H","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["h","H","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["h","H","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["h","H","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["h","H","hB","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["h","H","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["h","H","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["h","H","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"en-HK":["h","hb","H","hB"],"en-IL":["H","h","hb","hB"],"en-MY":["h","hb","H","hB"],"es-BR":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function sp(e,t){for(var r="",i=0;i<e.length;i++){var n=e.charAt(i);if(n==="j"){for(var s=0;i+1<e.length&&e.charAt(i+1)===n;)s++,i++;var o=1+(s&1),a=s<2?1:3+(s>>1),l="a",u=op(t);for((u=="H"||u=="k")&&(a=0);a-- >0;)r+=l;for(;o-- >0;)r=u+r}else n==="J"?r+="H":r+=n}return r}function op(e){var t=e.hourCycle;if(t===void 0&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var r=e.language,i;r!=="root"&&(i=e.maximize().region);var n=ji[i||""]||ji[r||""]||ji["".concat(r,"-001")]||ji["001"];return n[0]}var ws,ap=new RegExp("^".concat(_d.source,"*")),lp=new RegExp("".concat(_d.source,"*$"));function fe(e,t){return{start:e,end:t}}var up=!!String.prototype.startsWith&&"_a".startsWith("a",1),dp=!!String.fromCodePoint,cp=!!Object.fromEntries,hp=!!String.prototype.codePointAt,fp=!!String.prototype.trimStart,pp=!!String.prototype.trimEnd,mp=!!Number.isSafeInteger,_p=mp?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},to=!0;try{var gp=wd("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");to=((ws=gp.exec("a"))===null||ws===void 0?void 0:ws[0])==="a"}catch(e){to=!1}var Ga=up?function(t,r,i){return t.startsWith(r,i)}:function(t,r,i){return t.slice(i,i+r.length)===r},ro=dp?String.fromCodePoint:function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];for(var i="",n=t.length,s=0,o;n>s;){if(o=t[s++],o>1114111)throw RangeError(o+" is not a valid code point");i+=o<65536?String.fromCharCode(o):String.fromCharCode(((o-=65536)>>10)+55296,o%1024+56320)}return i},ja=cp?Object.fromEntries:function(t){for(var r={},i=0,n=t;i<n.length;i++){var s=n[i],o=s[0],a=s[1];r[o]=a}return r},yd=hp?function(t,r){return t.codePointAt(r)}:function(t,r){var i=t.length;if(!(r<0||r>=i)){var n=t.charCodeAt(r),s;return n<55296||n>56319||r+1===i||(s=t.charCodeAt(r+1))<56320||s>57343?n:(n-55296<<10)+(s-56320)+65536}},bp=fp?function(t){return t.trimStart()}:function(t){return t.replace(ap,"")},vp=pp?function(t){return t.trimEnd()}:function(t){return t.replace(lp,"")};function wd(e,t){return new RegExp(e,t)}var io;if(to){var qa=wd("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");io=function(t,r){var i;qa.lastIndex=r;var n=qa.exec(t);return(i=n[1])!==null&&i!==void 0?i:""}}else io=function(t,r){for(var i=[];;){var n=yd(t,r);if(n===void 0||Cd(n)||Ep(n))break;i.push(n),r+=n>=65536?2:1}return ro.apply(void 0,i)};var yp=function(){function e(t,r){r===void 0&&(r={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!r.ignoreTag,this.locale=r.locale,this.requiresOtherClause=!!r.requiresOtherClause,this.shouldParseSkeletons=!!r.shouldParseSkeletons}return e.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(t,r,i){for(var n=[];!this.isEOF();){var s=this.char();if(s===123){var o=this.parseArgument(t,i);if(o.err)return o;n.push(o.val)}else{if(s===125&&t>0)break;if(s===35&&(r==="plural"||r==="selectordinal")){var a=this.clonePosition();this.bump(),n.push({type:Pe.pound,location:fe(a,this.clonePosition())})}else if(s===60&&!this.ignoreTag&&this.peek()===47){if(i)break;return this.error(he.UNMATCHED_CLOSING_TAG,fe(this.clonePosition(),this.clonePosition()))}else if(s===60&&!this.ignoreTag&&no(this.peek()||0)){var o=this.parseTag(t,r);if(o.err)return o;n.push(o.val)}else{var o=this.parseLiteral(t,r);if(o.err)return o;n.push(o.val)}}}return{val:n,err:null}},e.prototype.parseTag=function(t,r){var i=this.clonePosition();this.bump();var n=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:Pe.literal,value:"<".concat(n,"/>"),location:fe(i,this.clonePosition())},err:null};if(this.bumpIf(">")){var s=this.parseMessage(t+1,r,!0);if(s.err)return s;var o=s.val,a=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!no(this.char()))return this.error(he.INVALID_TAG,fe(a,this.clonePosition()));var l=this.clonePosition(),u=this.parseTagName();return n!==u?this.error(he.UNMATCHED_CLOSING_TAG,fe(l,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:Pe.tag,value:n,children:o,location:fe(i,this.clonePosition())},err:null}:this.error(he.INVALID_TAG,fe(a,this.clonePosition())))}else return this.error(he.UNCLOSED_TAG,fe(i,this.clonePosition()))}else return this.error(he.INVALID_TAG,fe(i,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&Cp(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,r){for(var i=this.clonePosition(),n="";;){var s=this.tryParseQuote(r);if(s){n+=s;continue}var o=this.tryParseUnquoted(t,r);if(o){n+=o;continue}var a=this.tryParseLeftAngleBracket();if(a){n+=a;continue}break}var l=fe(i,this.clonePosition());return{val:{type:Pe.literal,value:n,location:l},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!wp(this.peek()||0))?(this.bump(),"<"):null},e.prototype.tryParseQuote=function(t){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(t==="plural"||t==="selectordinal")break;return null;default:return null}this.bump();var r=[this.char()];for(this.bump();!this.isEOF();){var i=this.char();if(i===39)if(this.peek()===39)r.push(39),this.bump();else{this.bump();break}else r.push(i);this.bump()}return ro.apply(void 0,r)},e.prototype.tryParseUnquoted=function(t,r){if(this.isEOF())return null;var i=this.char();return i===60||i===123||i===35&&(r==="plural"||r==="selectordinal")||i===125&&t>0?null:(this.bump(),ro(i))},e.prototype.parseArgument=function(t,r){var i=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(he.EXPECT_ARGUMENT_CLOSING_BRACE,fe(i,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(he.EMPTY_ARGUMENT,fe(i,this.clonePosition()));var n=this.parseIdentifierIfPossible().value;if(!n)return this.error(he.MALFORMED_ARGUMENT,fe(i,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(he.EXPECT_ARGUMENT_CLOSING_BRACE,fe(i,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:Pe.argument,value:n,location:fe(i,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(he.EXPECT_ARGUMENT_CLOSING_BRACE,fe(i,this.clonePosition())):this.parseArgumentOptions(t,r,n,i);default:return this.error(he.MALFORMED_ARGUMENT,fe(i,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),r=this.offset(),i=io(this.message,r),n=r+i.length;this.bumpTo(n);var s=this.clonePosition(),o=fe(t,s);return{value:i,location:o}},e.prototype.parseArgumentOptions=function(t,r,i,n){var s,o=this.clonePosition(),a=this.parseIdentifierIfPossible().value,l=this.clonePosition();switch(a){case"":return this.error(he.EXPECT_ARGUMENT_TYPE,fe(o,l));case"number":case"date":case"time":{this.bumpSpace();var u=null;if(this.bumpIf(",")){this.bumpSpace();var d=this.clonePosition(),c=this.parseSimpleArgStyleIfPossible();if(c.err)return c;var h=vp(c.val);if(h.length===0)return this.error(he.EXPECT_ARGUMENT_STYLE,fe(this.clonePosition(),this.clonePosition()));var f=fe(d,this.clonePosition());u={style:h,styleLocation:f}}var b=this.tryParseArgumentClose(n);if(b.err)return b;var g=fe(n,this.clonePosition());if(u&&Ga(u==null?void 0:u.style,"::",0)){var v=bp(u.style.slice(2));if(a==="number"){var c=this.parseNumberSkeletonFromString(v,u.styleLocation);return c.err?c:{val:{type:Pe.number,value:i,location:g,style:c.val},err:null}}else{if(v.length===0)return this.error(he.EXPECT_DATE_TIME_SKELETON,g);var y=v;this.locale&&(y=sp(v,this.locale));var h={type:Ir.dateTime,pattern:y,location:u.styleLocation,parsedOptions:this.shouldParseSkeletons?Jf(y):{}},_=a==="date"?Pe.date:Pe.time;return{val:{type:_,value:i,location:g,style:h},err:null}}}return{val:{type:a==="number"?Pe.number:a==="date"?Pe.date:Pe.time,value:i,location:g,style:(s=u==null?void 0:u.style)!==null&&s!==void 0?s:null},err:null}}case"plural":case"selectordinal":case"select":{var x=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(he.EXPECT_SELECT_ARGUMENT_OPTIONS,fe(x,be({},x)));this.bumpSpace();var w=this.parseIdentifierIfPossible(),N=0;if(a!=="select"&&w.value==="offset"){if(!this.bumpIf(":"))return this.error(he.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,fe(this.clonePosition(),this.clonePosition()));this.bumpSpace();var c=this.tryParseDecimalInteger(he.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,he.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(c.err)return c;this.bumpSpace(),w=this.parseIdentifierIfPossible(),N=c.val}var E=this.tryParsePluralOrSelectOptions(t,a,r,w);if(E.err)return E;var b=this.tryParseArgumentClose(n);if(b.err)return b;var I=fe(n,this.clonePosition());return a==="select"?{val:{type:Pe.select,value:i,options:ja(E.val),location:I},err:null}:{val:{type:Pe.plural,value:i,options:ja(E.val),offset:N,pluralType:a==="plural"?"cardinal":"ordinal",location:I},err:null}}default:return this.error(he.INVALID_ARGUMENT_TYPE,fe(o,l))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(he.EXPECT_ARGUMENT_CLOSING_BRACE,fe(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,r=this.clonePosition();!this.isEOF();){var i=this.char();switch(i){case 39:{this.bump();var n=this.clonePosition();if(!this.bumpUntil("'"))return this.error(he.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,fe(n,this.clonePosition()));this.bump();break}case 123:{t+=1,this.bump();break}case 125:{if(t>0)t-=1;else return{val:this.message.slice(r.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(r.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(t,r){var i=[];try{i=ep(t)}catch(n){return this.error(he.INVALID_NUMBER_SKELETON,r)}return{val:{type:Ir.number,tokens:i,location:r,parsedOptions:this.shouldParseSkeletons?np(i):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,r,i,n){for(var s,o=!1,a=[],l=new Set,u=n.value,d=n.location;;){if(u.length===0){var c=this.clonePosition();if(r!=="select"&&this.bumpIf("=")){var h=this.tryParseDecimalInteger(he.EXPECT_PLURAL_ARGUMENT_SELECTOR,he.INVALID_PLURAL_ARGUMENT_SELECTOR);if(h.err)return h;d=fe(c,this.clonePosition()),u=this.message.slice(c.offset,this.offset())}else break}if(l.has(u))return this.error(r==="select"?he.DUPLICATE_SELECT_ARGUMENT_SELECTOR:he.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,d);u==="other"&&(o=!0),this.bumpSpace();var f=this.clonePosition();if(!this.bumpIf("{"))return this.error(r==="select"?he.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:he.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,fe(this.clonePosition(),this.clonePosition()));var b=this.parseMessage(t+1,r,i);if(b.err)return b;var g=this.tryParseArgumentClose(f);if(g.err)return g;a.push([u,{value:b.val,location:fe(f,this.clonePosition())}]),l.add(u),this.bumpSpace(),s=this.parseIdentifierIfPossible(),u=s.value,d=s.location}return a.length===0?this.error(r==="select"?he.EXPECT_SELECT_ARGUMENT_SELECTOR:he.EXPECT_PLURAL_ARGUMENT_SELECTOR,fe(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!o?this.error(he.MISSING_OTHER_CLAUSE,fe(this.clonePosition(),this.clonePosition())):{val:a,err:null}},e.prototype.tryParseDecimalInteger=function(t,r){var i=1,n=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(i=-1);for(var s=!1,o=0;!this.isEOF();){var a=this.char();if(a>=48&&a<=57)s=!0,o=o*10+(a-48),this.bump();else break}var l=fe(n,this.clonePosition());return s?(o*=i,_p(o)?{val:o,err:null}:this.error(r,l)):this.error(t,l)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var r=yd(this.message,t);if(r===void 0)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return r},e.prototype.error=function(t,r){return{val:null,err:{kind:t,message:this.message,location:r}}},e.prototype.bump=function(){if(!this.isEOF()){var t=this.char();t===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2)}},e.prototype.bumpIf=function(t){if(Ga(this.message,t,this.offset())){for(var r=0;r<t.length;r++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(t){var r=this.offset(),i=this.message.indexOf(t,r);return i>=0?(this.bumpTo(i),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset ".concat(t," must be greater than or equal to the current offset ").concat(this.offset()));for(t=Math.min(t,this.message.length);;){var r=this.offset();if(r===t)break;if(r>t)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&Cd(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),r=this.offset(),i=this.message.charCodeAt(r+(t>=65536?2:1));return i!=null?i:null},e}();function no(e){return e>=97&&e<=122||e>=65&&e<=90}function wp(e){return no(e)||e===47}function Cp(e){return e===45||e===46||e>=48&&e<=57||e===95||e>=97&&e<=122||e>=65&&e<=90||e==183||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function Cd(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function Ep(e){return e>=33&&e<=35||e===36||e>=37&&e<=39||e===40||e===41||e===42||e===43||e===44||e===45||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||e===91||e===92||e===93||e===94||e===96||e===123||e===124||e===125||e===126||e===161||e>=162&&e<=165||e===166||e===167||e===169||e===171||e===172||e===174||e===176||e===177||e===182||e===187||e===191||e===215||e===247||e>=8208&&e<=8213||e>=8214&&e<=8215||e===8216||e===8217||e===8218||e>=8219&&e<=8220||e===8221||e===8222||e===8223||e>=8224&&e<=8231||e>=8240&&e<=8248||e===8249||e===8250||e>=8251&&e<=8254||e>=8257&&e<=8259||e===8260||e===8261||e===8262||e>=8263&&e<=8273||e===8274||e===8275||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||e===8608||e>=8609&&e<=8610||e===8611||e>=8612&&e<=8613||e===8614||e>=8615&&e<=8621||e===8622||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||e===8658||e===8659||e===8660||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||e===8968||e===8969||e===8970||e===8971||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||e===9001||e===9002||e>=9003&&e<=9083||e===9084||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||e===9655||e>=9656&&e<=9664||e===9665||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||e===9839||e>=9840&&e<=10087||e===10088||e===10089||e===10090||e===10091||e===10092||e===10093||e===10094||e===10095||e===10096||e===10097||e===10098||e===10099||e===10100||e===10101||e>=10132&&e<=10175||e>=10176&&e<=10180||e===10181||e===10182||e>=10183&&e<=10213||e===10214||e===10215||e===10216||e===10217||e===10218||e===10219||e===10220||e===10221||e===10222||e===10223||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||e===10627||e===10628||e===10629||e===10630||e===10631||e===10632||e===10633||e===10634||e===10635||e===10636||e===10637||e===10638||e===10639||e===10640||e===10641||e===10642||e===10643||e===10644||e===10645||e===10646||e===10647||e===10648||e>=10649&&e<=10711||e===10712||e===10713||e===10714||e===10715||e>=10716&&e<=10747||e===10748||e===10749||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||e===11158||e>=11159&&e<=11263||e>=11776&&e<=11777||e===11778||e===11779||e===11780||e===11781||e>=11782&&e<=11784||e===11785||e===11786||e===11787||e===11788||e===11789||e>=11790&&e<=11798||e===11799||e>=11800&&e<=11801||e===11802||e===11803||e===11804||e===11805||e>=11806&&e<=11807||e===11808||e===11809||e===11810||e===11811||e===11812||e===11813||e===11814||e===11815||e===11816||e===11817||e>=11818&&e<=11822||e===11823||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||e===11840||e===11841||e===11842||e>=11843&&e<=11855||e>=11856&&e<=11857||e===11858||e>=11859&&e<=11903||e>=12289&&e<=12291||e===12296||e===12297||e===12298||e===12299||e===12300||e===12301||e===12302||e===12303||e===12304||e===12305||e>=12306&&e<=12307||e===12308||e===12309||e===12310||e===12311||e===12312||e===12313||e===12314||e===12315||e===12316||e===12317||e>=12318&&e<=12319||e===12320||e===12336||e===64830||e===64831||e>=65093&&e<=65094}function so(e){e.forEach(function(t){if(delete t.location,hd(t)||fd(t))for(var r in t.options)delete t.options[r].location,so(t.options[r].value);else ud(t)&&md(t.style)||(dd(t)||cd(t))&&eo(t.style)?delete t.style.location:pd(t)&&so(t.children)})}function xp(e,t){t===void 0&&(t={}),t=be({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var r=new yp(e,t).parse();if(r.err){var i=SyntaxError(he[r.err.kind]);throw i.location=r.err.location,i.originalMessage=r.err.message,i}return t!=null&&t.captureLocation||so(r.val),r.val}var Lr;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(Lr||(Lr={}));var Rn=function(e){Rt(t,e);function t(r,i,n){var s=e.call(this,r)||this;return s.code=i,s.originalMessage=n,s}return t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),Za=function(e){Rt(t,e);function t(r,i,n,s){return e.call(this,'Invalid values for "'.concat(r,'": "').concat(i,'". Options are "').concat(Object.keys(n).join('", "'),'"'),Lr.INVALID_VALUE,s)||this}return t}(Rn),Sp=function(e){Rt(t,e);function t(r,i,n){return e.call(this,'Value for "'.concat(r,'" must be of type ').concat(i),Lr.INVALID_VALUE,n)||this}return t}(Rn),kp=function(e){Rt(t,e);function t(r,i){return e.call(this,'The intl string context variable "'.concat(r,'" was not provided to the string "').concat(i,'"'),Lr.MISSING_VALUE,i)||this}return t}(Rn),Xe;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(Xe||(Xe={}));function Ap(e){return e.length<2?e:e.reduce(function(t,r){var i=t[t.length-1];return!i||i.type!==Xe.literal||r.type!==Xe.literal?t.push(r):i.value+=r.value,t},[])}function Tp(e){return typeof e=="function"}function sn(e,t,r,i,n,s,o){if(e.length===1&&Ua(e[0]))return[{type:Xe.literal,value:e[0].value}];for(var a=[],l=0,u=e;l<u.length;l++){var d=u[l];if(Ua(d)){a.push({type:Xe.literal,value:d.value});continue}if(Kf(d)){typeof s=="number"&&a.push({type:Xe.literal,value:r.getNumberFormat(t).format(s)});continue}var c=d.value;if(!(n&&c in n))throw new kp(c,o);var h=n[c];if(Zf(d)){(!h||typeof h=="string"||typeof h=="number")&&(h=typeof h=="string"||typeof h=="number"?String(h):""),a.push({type:typeof h=="string"?Xe.literal:Xe.object,value:h});continue}if(dd(d)){var f=typeof d.style=="string"?i.date[d.style]:eo(d.style)?d.style.parsedOptions:void 0;a.push({type:Xe.literal,value:r.getDateTimeFormat(t,f).format(h)});continue}if(cd(d)){var f=typeof d.style=="string"?i.time[d.style]:eo(d.style)?d.style.parsedOptions:i.time.medium;a.push({type:Xe.literal,value:r.getDateTimeFormat(t,f).format(h)});continue}if(ud(d)){var f=typeof d.style=="string"?i.number[d.style]:md(d.style)?d.style.parsedOptions:void 0;f&&f.scale&&(h=h*(f.scale||1)),a.push({type:Xe.literal,value:r.getNumberFormat(t,f).format(h)});continue}if(pd(d)){var b=d.children,g=d.value,v=n[g];if(!Tp(v))throw new Sp(g,"function",o);var y=sn(b,t,r,i,n,s),_=v(y.map(function(N){return N.value}));Array.isArray(_)||(_=[_]),a.push.apply(a,_.map(function(N){return{type:typeof N=="string"?Xe.literal:Xe.object,value:N}}))}if(hd(d)){var x=d.options[h]||d.options.other;if(!x)throw new Za(d.value,h,Object.keys(d.options),o);a.push.apply(a,sn(x.value,t,r,i,n));continue}if(fd(d)){var x=d.options["=".concat(h)];if(!x){if(!Intl.PluralRules)throw new Rn(`Intl.PluralRules is not available in this environment.
|
|
2
15
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3
|
-
`,Ir.MISSING_INTL_API,o);var w=r.getPluralRules(t,{type:d.pluralType}).select(h-(d.offset||0));E=d.options[w]||d.options.other}if(!E)throw new $a(d.value,h,Object.keys(d.options),o);a.push.apply(a,sn(E.value,t,r,i,n,h-(d.offset||0)));continue}}return kp(a)}function Ap(e,t){return t?be(be(be({},e||{}),t||{}),Object.keys(e).reduce(function(r,i){return r[i]=be(be({},e[i]),t[i]||{}),r},{})):e}function Tp(e,t){return t?Object.keys(e).reduce(function(r,i){return r[i]=Ap(e[i],t[i]),r},be({},e)):e}function ys(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}function Dp(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:gs(function(){for(var t,r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return new((t=Intl.NumberFormat).bind.apply(t,kr([void 0],r,!1)))},{cache:ys(e.number),strategy:bs.variadic}),getDateTimeFormat:gs(function(){for(var t,r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return new((t=Intl.DateTimeFormat).bind.apply(t,kr([void 0],r,!1)))},{cache:ys(e.dateTime),strategy:bs.variadic}),getPluralRules:gs(function(){for(var t,r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return new((t=Intl.PluralRules).bind.apply(t,kr([void 0],r,!1)))},{cache:ys(e.pluralRules),strategy:bs.variadic})}}var Pp=function(){function e(t,r,i,n){r===void 0&&(r=e.defaultLocale);var s=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(l){var u=s.formatToParts(l);if(u.length===1)return u[0].value;var d=u.reduce(function(c,h){return!c.length||h.type!==Ze.literal||typeof c[c.length-1]!="string"?c.push(h.value):c[c.length-1]+=h.value,c},[]);return d.length<=1?d[0]||"":d},this.formatToParts=function(l){return sn(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=r,this.resolvedLocale=e.resolveLocale(r),typeof t=="string"){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var o=n||{};o.formatters;var a=Rf(o,["formatters"]);this.ast=e.__parse(t,be(be({},a),{locale:this.resolvedLocale}))}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=Tp(e.formats,i),this.formatters=n&&n.formatters||Dp(this.formatterCache)}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(t){if(typeof Intl.Locale!="undefined"){var r=Intl.NumberFormat.supportedLocalesOf(t);return r.length>0?new Intl.Locale(r[0]):new Intl.Locale(typeof t=="string"?t:t[0])}},e.__parse=Cp,e.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"}}},e}();function Mp(e,t){if(t==null)return;if(t in e)return e[t];const r=t.split(".");let i=e;for(let n=0;n<r.length;n++)if(typeof i=="object"){if(n>0){const s=r.slice(n,r.length).join(".");if(s in i){i=i[s];break}}i=i[r[n]]}else i=void 0;return i}const $t={},Op=(e,t,r)=>r&&(t in $t||($t[t]={}),e in $t[t]||($t[t][e]=r),r),wd=(e,t)=>{if(t==null)return;if(t in $t&&e in $t[t])return $t[t][e];const r=Hn(t);for(let i=0;i<r.length;i++){const n=r[i],s=Np(n,e);if(s)return Op(e,t,s)}};let Ho;const Bi=Ln({});function Bp(e){return Ho[e]||null}function Cd(e){return e in Ho}function Np(e,t){if(!Cd(e))return null;const r=Bp(e);return Mp(r,t)}function Ip(e){if(e==null)return;const t=Hn(e);for(let r=0;r<t.length;r++){const i=t[r];if(Cd(i))return i}}function xd(e,...t){delete $t[e],Bi.update(r=>(r[e]=Hf.all([r[e]||{},...t]),r))}zr([Bi],([e])=>Object.keys(e));Bi.subscribe(e=>Ho=e);const on={};function Lp(e,t){on[e].delete(t),on[e].size===0&&delete on[e]}function Ed(e){return on[e]}function Fp(e){return Hn(e).map(t=>{const r=Ed(t);return[t,r?[...r]:[]]}).filter(([,t])=>t.length>0)}function io(e){return e==null?!1:Hn(e).some(t=>{var r;return(r=Ed(t))==null?void 0:r.size})}function Hp(e,t){return Promise.all(t.map(i=>(Lp(e,i),i().then(n=>n.default||n)))).then(i=>xd(e,...i))}const Xr={};function kd(e){if(!io(e))return e in Xr?Xr[e]:Promise.resolve();const t=Fp(e);return Xr[e]=Promise.all(t.map(([r,i])=>Hp(r,i))).then(()=>{if(io(e))return kd(e);delete Xr[e]}),Xr[e]}const Rp={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"}}},Yp={fallbackLocale:null,loadingDelay:200,formats:Rp,warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0},zp=Yp;function Lr(){return zp}const ws=Ln(!1);var Up=Object.defineProperty,Vp=Object.defineProperties,Wp=Object.getOwnPropertyDescriptors,Ga=Object.getOwnPropertySymbols,$p=Object.prototype.hasOwnProperty,Gp=Object.prototype.propertyIsEnumerable,ja=(e,t,r)=>t in e?Up(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,jp=(e,t)=>{for(var r in t||(t={}))$p.call(t,r)&&ja(e,r,t[r]);if(Ga)for(var r of Ga(t))Gp.call(t,r)&&ja(e,r,t[r]);return e},qp=(e,t)=>Vp(e,Wp(t));let no;const pn=Ln(null);function qa(e){return e.split("-").map((t,r,i)=>i.slice(0,r+1).join("-")).reverse()}function Hn(e,t=Lr().fallbackLocale){const r=qa(e);return t?[...new Set([...r,...qa(t)])]:r}function dr(){return no!=null?no:void 0}pn.subscribe(e=>{no=e!=null?e:void 0,typeof window!="undefined"&&e!=null&&document.documentElement.setAttribute("lang",e)});const Zp=e=>{if(e&&Ip(e)&&io(e)){const{loadingDelay:t}=Lr();let r;return typeof window!="undefined"&&dr()!=null&&t?r=window.setTimeout(()=>ws.set(!0),t):ws.set(!0),kd(e).then(()=>{pn.set(e)}).finally(()=>{clearTimeout(r),ws.set(!1)})}return pn.set(e)},Ur=qp(jp({},pn),{set:Zp}),Rn=e=>{const t=Object.create(null);return i=>{const n=JSON.stringify(i);return n in t?t[n]:t[n]=e(i)}};var Xp=Object.defineProperty,mn=Object.getOwnPropertySymbols,Sd=Object.prototype.hasOwnProperty,Ad=Object.prototype.propertyIsEnumerable,Za=(e,t,r)=>t in e?Xp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Ro=(e,t)=>{for(var r in t||(t={}))Sd.call(t,r)&&Za(e,r,t[r]);if(mn)for(var r of mn(t))Ad.call(t,r)&&Za(e,r,t[r]);return e},Vr=(e,t)=>{var r={};for(var i in e)Sd.call(e,i)&&t.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&mn)for(var i of mn(e))t.indexOf(i)<0&&Ad.call(e,i)&&(r[i]=e[i]);return r};const fi=(e,t)=>{const{formats:r}=Lr();if(e in r&&t in r[e])return r[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},Jp=Rn(e=>{var t=e,{locale:r,format:i}=t,n=Vr(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return i&&(n=fi("number",i)),new Intl.NumberFormat(r,n)}),Kp=Rn(e=>{var t=e,{locale:r,format:i}=t,n=Vr(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return i?n=fi("date",i):Object.keys(n).length===0&&(n=fi("date","short")),new Intl.DateTimeFormat(r,n)}),Qp=Rn(e=>{var t=e,{locale:r,format:i}=t,n=Vr(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return i?n=fi("time",i):Object.keys(n).length===0&&(n=fi("time","short")),new Intl.DateTimeFormat(r,n)}),em=(e={})=>{var t=e,{locale:r=dr()}=t,i=Vr(t,["locale"]);return Jp(Ro({locale:r},i))},tm=(e={})=>{var t=e,{locale:r=dr()}=t,i=Vr(t,["locale"]);return Kp(Ro({locale:r},i))},rm=(e={})=>{var t=e,{locale:r=dr()}=t,i=Vr(t,["locale"]);return Qp(Ro({locale:r},i))},im=Rn((e,t=dr())=>new Pp(e,t,Lr().formats,{ignoreTag:Lr().ignoreTag})),nm=(e,t={})=>{var r,i,n,s;let o=t;typeof e=="object"&&(o=e,e=o.id);const{values:a,locale:l=dr(),default:u}=o;if(l==null)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let d=wd(e,l);if(!d)d=(s=(n=(i=(r=Lr()).handleMissingMessage)==null?void 0:i.call(r,{locale:l,id:e,defaultValue:u}))!=null?n:u)!=null?s:e;else if(typeof d!="string")return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof d}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),d;if(!a)return d;let c=d;try{c=im(d,l).format(a)}catch(h){h instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,h.message)}return c},sm=(e,t)=>rm(t).format(e),om=(e,t)=>tm(t).format(e),am=(e,t)=>em(t).format(e),lm=(e,t=dr())=>wd(e,t),Td=zr([Ur,Bi],()=>nm);zr([Ur],()=>sm);zr([Ur],()=>om);zr([Ur],()=>am);zr([Ur,Bi],()=>lm);function _n(e,t){xd(e,t)}function Dd(e){Ur.set(e)}function Mt(e){return typeof e=="function"}function Pd(e){var t=function(i){Error.call(i),i.stack=new Error().stack},r=e(t);return r.prototype=Object.create(Error.prototype),r.prototype.constructor=r,r}var Cs=Pd(function(e){return function(r){e(this),this.message=r?r.length+` errors occurred during unsubscription:
|
|
16
|
+
`,Lr.MISSING_INTL_API,o);var w=r.getPluralRules(t,{type:d.pluralType}).select(h-(d.offset||0));x=d.options[w]||d.options.other}if(!x)throw new Za(d.value,h,Object.keys(d.options),o);a.push.apply(a,sn(x.value,t,r,i,n,h-(d.offset||0)));continue}}return Ap(a)}function Pp(e,t){return t?be(be(be({},e||{}),t||{}),Object.keys(e).reduce(function(r,i){return r[i]=be(be({},e[i]),t[i]||{}),r},{})):e}function Dp(e,t){return t?Object.keys(e).reduce(function(r,i){return r[i]=Pp(e[i],t[i]),r},be({},e)):e}function Cs(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}function Mp(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:vs(function(){for(var t,r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return new((t=Intl.NumberFormat).bind.apply(t,kr([void 0],r,!1)))},{cache:Cs(e.number),strategy:ys.variadic}),getDateTimeFormat:vs(function(){for(var t,r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return new((t=Intl.DateTimeFormat).bind.apply(t,kr([void 0],r,!1)))},{cache:Cs(e.dateTime),strategy:ys.variadic}),getPluralRules:vs(function(){for(var t,r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return new((t=Intl.PluralRules).bind.apply(t,kr([void 0],r,!1)))},{cache:Cs(e.pluralRules),strategy:ys.variadic})}}var Op=function(){function e(t,r,i,n){r===void 0&&(r=e.defaultLocale);var s=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(l){var u=s.formatToParts(l);if(u.length===1)return u[0].value;var d=u.reduce(function(c,h){return!c.length||h.type!==Xe.literal||typeof c[c.length-1]!="string"?c.push(h.value):c[c.length-1]+=h.value,c},[]);return d.length<=1?d[0]||"":d},this.formatToParts=function(l){return sn(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=r,this.resolvedLocale=e.resolveLocale(r),typeof t=="string"){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var o=n||{};o.formatters;var a=Uf(o,["formatters"]);this.ast=e.__parse(t,be(be({},a),{locale:this.resolvedLocale}))}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=Dp(e.formats,i),this.formatters=n&&n.formatters||Mp(this.formatterCache)}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(t){if(typeof Intl.Locale!="undefined"){var r=Intl.NumberFormat.supportedLocalesOf(t);return r.length>0?new Intl.Locale(r[0]):new Intl.Locale(typeof t=="string"?t:t[0])}},e.__parse=xp,e.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"}}},e}();function Bp(e,t){if(t==null)return;if(t in e)return e[t];const r=t.split(".");let i=e;for(let n=0;n<r.length;n++)if(typeof i=="object"){if(n>0){const s=r.slice(n,r.length).join(".");if(s in i){i=i[s];break}}i=i[r[n]]}else i=void 0;return i}const Vt={},Np=(e,t,r)=>r&&(t in Vt||(Vt[t]={}),e in Vt[t]||(Vt[t][e]=r),r),Ed=(e,t)=>{if(t==null)return;if(t in Vt&&e in Vt[t])return Vt[t][e];const r=Hn(t);for(let i=0;i<r.length;i++){const n=r[i],s=Lp(n,e);if(s)return Np(e,t,s)}};let Wo;const Bi=Fn({});function Ip(e){return Wo[e]||null}function xd(e){return e in Wo}function Lp(e,t){if(!xd(e))return null;const r=Ip(e);return Bp(r,t)}function Fp(e){if(e==null)return;const t=Hn(e);for(let r=0;r<t.length;r++){const i=t[r];if(xd(i))return i}}function Sd(e,...t){delete Vt[e],Bi.update(r=>(r[e]=Yf.all([r[e]||{},...t]),r))}Ur([Bi],([e])=>Object.keys(e));Bi.subscribe(e=>Wo=e);const on={};function Rp(e,t){on[e].delete(t),on[e].size===0&&delete on[e]}function kd(e){return on[e]}function Hp(e){return Hn(e).map(t=>{const r=kd(t);return[t,r?[...r]:[]]}).filter(([,t])=>t.length>0)}function oo(e){return e==null?!1:Hn(e).some(t=>{var r;return(r=kd(t))==null?void 0:r.size})}function zp(e,t){return Promise.all(t.map(i=>(Rp(e,i),i().then(n=>n.default||n)))).then(i=>Sd(e,...i))}const Kr={};function Ad(e){if(!oo(e))return e in Kr?Kr[e]:Promise.resolve();const t=Hp(e);return Kr[e]=Promise.all(t.map(([r,i])=>zp(r,i))).then(()=>{if(oo(e))return Ad(e);delete Kr[e]}),Kr[e]}const Yp={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"}}},Up={fallbackLocale:null,loadingDelay:200,formats:Yp,warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0},Wp=Up;function Fr(){return Wp}const Es=Fn(!1);var $p=Object.defineProperty,Vp=Object.defineProperties,Gp=Object.getOwnPropertyDescriptors,Ka=Object.getOwnPropertySymbols,jp=Object.prototype.hasOwnProperty,qp=Object.prototype.propertyIsEnumerable,Xa=(e,t,r)=>t in e?$p(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Zp=(e,t)=>{for(var r in t||(t={}))jp.call(t,r)&&Xa(e,r,t[r]);if(Ka)for(var r of Ka(t))qp.call(t,r)&&Xa(e,r,t[r]);return e},Kp=(e,t)=>Vp(e,Gp(t));let ao;const pn=Fn(null);function Ja(e){return e.split("-").map((t,r,i)=>i.slice(0,r+1).join("-")).reverse()}function Hn(e,t=Fr().fallbackLocale){const r=Ja(e);return t?[...new Set([...r,...Ja(t)])]:r}function cr(){return ao!=null?ao:void 0}pn.subscribe(e=>{ao=e!=null?e:void 0,typeof window!="undefined"&&e!=null&&document.documentElement.setAttribute("lang",e)});const Xp=e=>{if(e&&Fp(e)&&oo(e)){const{loadingDelay:t}=Fr();let r;return typeof window!="undefined"&&cr()!=null&&t?r=window.setTimeout(()=>Es.set(!0),t):Es.set(!0),Ad(e).then(()=>{pn.set(e)}).finally(()=>{clearTimeout(r),Es.set(!1)})}return pn.set(e)},Wr=Kp(Zp({},pn),{set:Xp}),zn=e=>{const t=Object.create(null);return i=>{const n=JSON.stringify(i);return n in t?t[n]:t[n]=e(i)}};var Jp=Object.defineProperty,mn=Object.getOwnPropertySymbols,Td=Object.prototype.hasOwnProperty,Pd=Object.prototype.propertyIsEnumerable,Qa=(e,t,r)=>t in e?Jp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,$o=(e,t)=>{for(var r in t||(t={}))Td.call(t,r)&&Qa(e,r,t[r]);if(mn)for(var r of mn(t))Pd.call(t,r)&&Qa(e,r,t[r]);return e},$r=(e,t)=>{var r={};for(var i in e)Td.call(e,i)&&t.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&mn)for(var i of mn(e))t.indexOf(i)<0&&Pd.call(e,i)&&(r[i]=e[i]);return r};const pi=(e,t)=>{const{formats:r}=Fr();if(e in r&&t in r[e])return r[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},Qp=zn(e=>{var t=e,{locale:r,format:i}=t,n=$r(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return i&&(n=pi("number",i)),new Intl.NumberFormat(r,n)}),em=zn(e=>{var t=e,{locale:r,format:i}=t,n=$r(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return i?n=pi("date",i):Object.keys(n).length===0&&(n=pi("date","short")),new Intl.DateTimeFormat(r,n)}),tm=zn(e=>{var t=e,{locale:r,format:i}=t,n=$r(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return i?n=pi("time",i):Object.keys(n).length===0&&(n=pi("time","short")),new Intl.DateTimeFormat(r,n)}),rm=(e={})=>{var t=e,{locale:r=cr()}=t,i=$r(t,["locale"]);return Qp($o({locale:r},i))},im=(e={})=>{var t=e,{locale:r=cr()}=t,i=$r(t,["locale"]);return em($o({locale:r},i))},nm=(e={})=>{var t=e,{locale:r=cr()}=t,i=$r(t,["locale"]);return tm($o({locale:r},i))},sm=zn((e,t=cr())=>new Op(e,t,Fr().formats,{ignoreTag:Fr().ignoreTag})),om=(e,t={})=>{var r,i,n,s;let o=t;typeof e=="object"&&(o=e,e=o.id);const{values:a,locale:l=cr(),default:u}=o;if(l==null)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let d=Ed(e,l);if(!d)d=(s=(n=(i=(r=Fr()).handleMissingMessage)==null?void 0:i.call(r,{locale:l,id:e,defaultValue:u}))!=null?n:u)!=null?s:e;else if(typeof d!="string")return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof d}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),d;if(!a)return d;let c=d;try{c=sm(d,l).format(a)}catch(h){h instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,h.message)}return c},am=(e,t)=>nm(t).format(e),lm=(e,t)=>im(t).format(e),um=(e,t)=>rm(t).format(e),dm=(e,t=cr())=>Ed(e,t),Dd=Ur([Wr,Bi],()=>om);Ur([Wr],()=>am);Ur([Wr],()=>lm);Ur([Wr],()=>um);Ur([Wr,Bi],()=>dm);function _n(e,t){Sd(e,t)}function Md(e){Wr.set(e)}function Ot(e){return typeof e=="function"}function Od(e){var t=function(i){Error.call(i),i.stack=new Error().stack},r=e(t);return r.prototype=Object.create(Error.prototype),r.prototype.constructor=r,r}var xs=Od(function(e){return function(r){e(this),this.message=r?r.length+` errors occurred during unsubscription:
|
|
4
17
|
`+r.map(function(i,n){return n+1+") "+i.toString()}).join(`
|
|
5
|
-
`):"",this.name="UnsubscriptionError",this.errors=r}});function so(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}var Yn=function(){function e(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var t,r,i,n,s;if(!this.closed){this.closed=!0;var o=this._parentage;if(o)if(this._parentage=null,Array.isArray(o))try{for(var a=Zs(o),l=a.next();!l.done;l=a.next()){var u=l.value;u.remove(this)}}catch(g){t={error:g}}finally{try{l&&!l.done&&(r=a.return)&&r.call(a)}finally{if(t)throw t.error}}else o.remove(this);var d=this.initialTeardown;if(Mt(d))try{d()}catch(g){s=g instanceof Cs?g.errors:[g]}var c=this._finalizers;if(c){this._finalizers=null;try{for(var h=Zs(c),f=h.next();!f.done;f=h.next()){var b=f.value;try{Xa(b)}catch(g){s=s!=null?s:[],g instanceof Cs?s=kr(kr([],Xs(s)),Xs(g.errors)):s.push(g)}}}catch(g){i={error:g}}finally{try{f&&!f.done&&(n=h.return)&&n.call(h)}finally{if(i)throw i.error}}}if(s)throw new Cs(s)}},e.prototype.add=function(t){var r;if(t&&t!==this)if(this.closed)Xa(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(r=this._finalizers)!==null&&r!==void 0?r:[]).push(t)}},e.prototype._hasParent=function(t){var r=this._parentage;return r===t||Array.isArray(r)&&r.includes(t)},e.prototype._addParent=function(t){var r=this._parentage;this._parentage=Array.isArray(r)?(r.push(t),r):r?[r,t]:t},e.prototype._removeParent=function(t){var r=this._parentage;r===t?this._parentage=null:Array.isArray(r)&&so(r,t)},e.prototype.remove=function(t){var r=this._finalizers;r&&so(r,t),t instanceof e&&t._removeParent(this)},e.EMPTY=function(){var t=new e;return t.closed=!0,t}(),e}(),Md=Yn.EMPTY;function Od(e){return e instanceof Yn||e&&"closed"in e&&Mt(e.remove)&&Mt(e.add)&&Mt(e.unsubscribe)}function Xa(e){Mt(e)?e():e.unsubscribe()}var um={Promise:void 0},dm={setTimeout:function(e,t){for(var r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];return setTimeout.apply(void 0,kr([e,t],Xs(r)))},clearTimeout:function(e){return clearTimeout(e)},delegate:void 0};function cm(e){dm.setTimeout(function(){throw e})}function Ja(){}function an(e){e()}var Bd=function(e){Ft(t,e);function t(r){var i=e.call(this)||this;return i.isStopped=!1,r?(i.destination=r,Od(r)&&r.add(i)):i.destination=pm,i}return t.create=function(r,i,n){return new oo(r,i,n)},t.prototype.next=function(r){this.isStopped||this._next(r)},t.prototype.error=function(r){this.isStopped||(this.isStopped=!0,this._error(r))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(r){this.destination.next(r)},t.prototype._error=function(r){try{this.destination.error(r)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(Yn),hm=function(){function e(t){this.partialObserver=t}return e.prototype.next=function(t){var r=this.partialObserver;if(r.next)try{r.next(t)}catch(i){qi(i)}},e.prototype.error=function(t){var r=this.partialObserver;if(r.error)try{r.error(t)}catch(i){qi(i)}else qi(t)},e.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(r){qi(r)}},e}(),oo=function(e){Ft(t,e);function t(r,i,n){var s=e.call(this)||this,o;return Mt(r)||!r?o={next:r!=null?r:void 0,error:i!=null?i:void 0,complete:n!=null?n:void 0}:o=r,s.destination=new hm(o),s}return t}(Bd);function qi(e){cm(e)}function fm(e){throw e}var pm={closed:!0,next:Ja,error:fm,complete:Ja},mm=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function _m(e){return e}function gm(e){return e.length===0?_m:e.length===1?e[0]:function(r){return e.reduce(function(i,n){return n(i)},r)}}var Ka=function(){function e(t){t&&(this._subscribe=t)}return e.prototype.lift=function(t){var r=new e;return r.source=this,r.operator=t,r},e.prototype.subscribe=function(t,r,i){var n=this,s=vm(t)?t:new oo(t,r,i);return an(function(){var o=n,a=o.operator,l=o.source;s.add(a?a.call(s,l):l?n._subscribe(s):n._trySubscribe(s))}),s},e.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(r){t.error(r)}},e.prototype.forEach=function(t,r){var i=this;return r=Qa(r),new r(function(n,s){var o=new oo({next:function(a){try{t(a)}catch(l){s(l),o.unsubscribe()}},error:s,complete:n});i.subscribe(o)})},e.prototype._subscribe=function(t){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(t)},e.prototype[mm]=function(){return this},e.prototype.pipe=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return gm(t)(this)},e.prototype.toPromise=function(t){var r=this;return t=Qa(t),new t(function(i,n){var s;r.subscribe(function(o){return s=o},function(o){return n(o)},function(){return i(s)})})},e.create=function(t){return new e(t)},e}();function Qa(e){var t;return(t=e!=null?e:um.Promise)!==null&&t!==void 0?t:Promise}function bm(e){return e&&Mt(e.next)&&Mt(e.error)&&Mt(e.complete)}function vm(e){return e&&e instanceof Bd||bm(e)&&Od(e)}var ym=Pd(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Nd=function(e){Ft(t,e);function t(){var r=e.call(this)||this;return r.closed=!1,r.currentObservers=null,r.observers=[],r.isStopped=!1,r.hasError=!1,r.thrownError=null,r}return t.prototype.lift=function(r){var i=new el(this,this);return i.operator=r,i},t.prototype._throwIfClosed=function(){if(this.closed)throw new ym},t.prototype.next=function(r){var i=this;an(function(){var n,s;if(i._throwIfClosed(),!i.isStopped){i.currentObservers||(i.currentObservers=Array.from(i.observers));try{for(var o=Zs(i.currentObservers),a=o.next();!a.done;a=o.next()){var l=a.value;l.next(r)}}catch(u){n={error:u}}finally{try{a&&!a.done&&(s=o.return)&&s.call(o)}finally{if(n)throw n.error}}}})},t.prototype.error=function(r){var i=this;an(function(){if(i._throwIfClosed(),!i.isStopped){i.hasError=i.isStopped=!0,i.thrownError=r;for(var n=i.observers;n.length;)n.shift().error(r)}})},t.prototype.complete=function(){var r=this;an(function(){if(r._throwIfClosed(),!r.isStopped){r.isStopped=!0;for(var i=r.observers;i.length;)i.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var r;return((r=this.observers)===null||r===void 0?void 0:r.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(r){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,r)},t.prototype._subscribe=function(r){return this._throwIfClosed(),this._checkFinalizedStatuses(r),this._innerSubscribe(r)},t.prototype._innerSubscribe=function(r){var i=this,n=this,s=n.hasError,o=n.isStopped,a=n.observers;return s||o?Md:(this.currentObservers=null,a.push(r),new Yn(function(){i.currentObservers=null,so(a,r)}))},t.prototype._checkFinalizedStatuses=function(r){var i=this,n=i.hasError,s=i.thrownError,o=i.isStopped;n?r.error(s):o&&r.complete()},t.prototype.asObservable=function(){var r=new Ka;return r.source=this,r},t.create=function(r,i){return new el(r,i)},t}(Ka),el=function(e){Ft(t,e);function t(r,i){var n=e.call(this)||this;return n.destination=r,n.source=i,n}return t.prototype.next=function(r){var i,n;(n=(i=this.destination)===null||i===void 0?void 0:i.next)===null||n===void 0||n.call(i,r)},t.prototype.error=function(r){var i,n;(n=(i=this.destination)===null||i===void 0?void 0:i.error)===null||n===void 0||n.call(i,r)},t.prototype.complete=function(){var r,i;(i=(r=this.destination)===null||r===void 0?void 0:r.complete)===null||i===void 0||i.call(r)},t.prototype._subscribe=function(r){var i,n;return(n=(i=this.source)===null||i===void 0?void 0:i.subscribe(r))!==null&&n!==void 0?n:Md},t}(Nd),Id={now:function(){return(Id.delegate||Date).now()},delegate:void 0},wm=function(e){Ft(t,e);function t(r,i,n){r===void 0&&(r=1/0),i===void 0&&(i=1/0),n===void 0&&(n=Id);var s=e.call(this)||this;return s._bufferSize=r,s._windowTime=i,s._timestampProvider=n,s._buffer=[],s._infiniteTimeWindow=!0,s._infiniteTimeWindow=i===1/0,s._bufferSize=Math.max(1,r),s._windowTime=Math.max(1,i),s}return t.prototype.next=function(r){var i=this,n=i.isStopped,s=i._buffer,o=i._infiniteTimeWindow,a=i._timestampProvider,l=i._windowTime;n||(s.push(r),!o&&s.push(a.now()+l)),this._trimBuffer(),e.prototype.next.call(this,r)},t.prototype._subscribe=function(r){this._throwIfClosed(),this._trimBuffer();for(var i=this._innerSubscribe(r),n=this,s=n._infiniteTimeWindow,o=n._buffer,a=o.slice(),l=0;l<a.length&&!r.closed;l+=s?1:2)r.next(a[l]);return this._checkFinalizedStatuses(r),i},t.prototype._trimBuffer=function(){var r=this,i=r._bufferSize,n=r._timestampProvider,s=r._buffer,o=r._infiniteTimeWindow,a=(o?1:2)*i;if(i<1/0&&a<s.length&&s.splice(0,s.length-a),!o){for(var l=n.now(),u=0,d=1;d<s.length&&s[d]<=l;d+=2)u=d;u&&s.splice(0,u+1)}},t}(Nd);const tl=[],rl={},Cm=(e,t=0)=>{if(tl.indexOf(e)==-1){const r=new wm(t);rl[e]=r,tl.push(e)}return rl[e]};window.emWidgets={topic:Cm};const Ld=e=>!!(e.toLowerCase().match(/android/i)||e.toLowerCase().match(/blackberry|bb/i)||e.toLowerCase().match(/iphone|ipad|ipod/i)||e.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i)),gn={en:{bonus:{bonusCode:"Do you have a bonus code",placeholder:"Enter your bonus code here",claim:"Claim Bonus",from:"From",to:"to",noBonus:"No bonuses found",filter:"Filter",error:"Error",forfeit:"Forfeit",invalidBonusCode:"The bonus code provided is invalid.",noActiveBonuses:"You have no active bonuses at the moment.",forfeitMessage:"Are you sure want to forfeit bonus?",forfeitConfirm:"Confirm",forfeitCancel:"Cancel",claimSuccessMessage:"Bonus claimed!",canlendarTitle:"Select the period",show:"Show"},bonusType:{standard:"Bonus Money",freeBet:"Free Bet",freeRound:"Free Spins",wagering:"Wagering Challenge",cashBack:"Cash Back",oddsBoost:"Odds Boost",stakeBack:"Stake Back",tournamentTicket:"Ticket"},bonusCard:{level:"Level",current:"Current",next:"Next",first:"First",last:"Last",previous:"Previous",startChallenge:"START CHALLENGE",rewards:"Rewards",join:"Join",forfeit:"Forfeit",terms:"Terms and Conditions",bonusType:"Bonus Type",levels:"Levels",validity:"Validity",bonusStatus:"Bonus Status",bonusAmount:"Bonus Amount",wagered:"Wagered",wageredAmount:"Wagered Amount",roundNumber:"Number of freespins",game:"Game",validUntil:"Valid Until",wageringType:"Wagering Type",remaining:"Remaining",money:"Money Wagering",betCount:"Bet Count",allRewards:"All Rewards",error:"Join failed, please try again.",playNow:"Play Now",active:"Active",expired:"Expired",forfeited:"Forfeited",released:"Released",closed:"Closed",completed:"Completed",claimable:"Claimable"}}};function zn(e,t){if(e){const r=document.createElement("style");r.innerHTML=t,e.appendChild(r)}}function Un(e,t){const r=new URL(t);fetch(r.href).then(i=>i.text()).then(i=>{const n=document.createElement("style");n.innerHTML=i,e&&e.appendChild(n)}).catch(i=>{console.error("There was an error while trying to load client styling from URL",i)})}function Vn(e,t,r){if(window.emMessageBus){const i=document.createElement("style");window.emMessageBus.subscribe(t,n=>{i.innerHTML=n,e&&e.appendChild(i)})}}function xm(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}//! moment.js
|
|
6
|
-
//! version : 2.
|
|
18
|
+
`):"",this.name="UnsubscriptionError",this.errors=r}});function lo(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}var Yn=function(){function e(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var t,r,i,n,s;if(!this.closed){this.closed=!0;var o=this._parentage;if(o)if(this._parentage=null,Array.isArray(o))try{for(var a=Js(o),l=a.next();!l.done;l=a.next()){var u=l.value;u.remove(this)}}catch(g){t={error:g}}finally{try{l&&!l.done&&(r=a.return)&&r.call(a)}finally{if(t)throw t.error}}else o.remove(this);var d=this.initialTeardown;if(Ot(d))try{d()}catch(g){s=g instanceof xs?g.errors:[g]}var c=this._finalizers;if(c){this._finalizers=null;try{for(var h=Js(c),f=h.next();!f.done;f=h.next()){var b=f.value;try{el(b)}catch(g){s=s!=null?s:[],g instanceof xs?s=kr(kr([],Qs(s)),Qs(g.errors)):s.push(g)}}}catch(g){i={error:g}}finally{try{f&&!f.done&&(n=h.return)&&n.call(h)}finally{if(i)throw i.error}}}if(s)throw new xs(s)}},e.prototype.add=function(t){var r;if(t&&t!==this)if(this.closed)el(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(r=this._finalizers)!==null&&r!==void 0?r:[]).push(t)}},e.prototype._hasParent=function(t){var r=this._parentage;return r===t||Array.isArray(r)&&r.includes(t)},e.prototype._addParent=function(t){var r=this._parentage;this._parentage=Array.isArray(r)?(r.push(t),r):r?[r,t]:t},e.prototype._removeParent=function(t){var r=this._parentage;r===t?this._parentage=null:Array.isArray(r)&&lo(r,t)},e.prototype.remove=function(t){var r=this._finalizers;r&&lo(r,t),t instanceof e&&t._removeParent(this)},e.EMPTY=function(){var t=new e;return t.closed=!0,t}(),e}(),Bd=Yn.EMPTY;function Nd(e){return e instanceof Yn||e&&"closed"in e&&Ot(e.remove)&&Ot(e.add)&&Ot(e.unsubscribe)}function el(e){Ot(e)?e():e.unsubscribe()}var Id={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},cm={setTimeout:function(e,t){for(var r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];return setTimeout.apply(void 0,kr([e,t],Qs(r)))},clearTimeout:function(e){return clearTimeout(e)},delegate:void 0};function hm(e){cm.setTimeout(function(){throw e})}function tl(){}function an(e){e()}var Ld=function(e){Rt(t,e);function t(r){var i=e.call(this)||this;return i.isStopped=!1,r?(i.destination=r,Nd(r)&&r.add(i)):i.destination=_m,i}return t.create=function(r,i,n){return new uo(r,i,n)},t.prototype.next=function(r){this.isStopped||this._next(r)},t.prototype.error=function(r){this.isStopped||(this.isStopped=!0,this._error(r))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(r){this.destination.next(r)},t.prototype._error=function(r){try{this.destination.error(r)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(Yn),fm=Function.prototype.bind;function Ss(e,t){return fm.call(e,t)}var pm=function(){function e(t){this.partialObserver=t}return e.prototype.next=function(t){var r=this.partialObserver;if(r.next)try{r.next(t)}catch(i){qi(i)}},e.prototype.error=function(t){var r=this.partialObserver;if(r.error)try{r.error(t)}catch(i){qi(i)}else qi(t)},e.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(r){qi(r)}},e}(),uo=function(e){Rt(t,e);function t(r,i,n){var s=e.call(this)||this,o;if(Ot(r)||!r)o={next:r!=null?r:void 0,error:i!=null?i:void 0,complete:n!=null?n:void 0};else{var a;s&&Id.useDeprecatedNextContext?(a=Object.create(r),a.unsubscribe=function(){return s.unsubscribe()},o={next:r.next&&Ss(r.next,a),error:r.error&&Ss(r.error,a),complete:r.complete&&Ss(r.complete,a)}):o=r}return s.destination=new pm(o),s}return t}(Ld);function qi(e){hm(e)}function mm(e){throw e}var _m={closed:!0,next:tl,error:mm,complete:tl},gm=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function bm(e){return e}function vm(e){return e.length===0?bm:e.length===1?e[0]:function(r){return e.reduce(function(i,n){return n(i)},r)}}var rl=function(){function e(t){t&&(this._subscribe=t)}return e.prototype.lift=function(t){var r=new e;return r.source=this,r.operator=t,r},e.prototype.subscribe=function(t,r,i){var n=this,s=wm(t)?t:new uo(t,r,i);return an(function(){var o=n,a=o.operator,l=o.source;s.add(a?a.call(s,l):l?n._subscribe(s):n._trySubscribe(s))}),s},e.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(r){t.error(r)}},e.prototype.forEach=function(t,r){var i=this;return r=il(r),new r(function(n,s){var o=new uo({next:function(a){try{t(a)}catch(l){s(l),o.unsubscribe()}},error:s,complete:n});i.subscribe(o)})},e.prototype._subscribe=function(t){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(t)},e.prototype[gm]=function(){return this},e.prototype.pipe=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return vm(t)(this)},e.prototype.toPromise=function(t){var r=this;return t=il(t),new t(function(i,n){var s;r.subscribe(function(o){return s=o},function(o){return n(o)},function(){return i(s)})})},e.create=function(t){return new e(t)},e}();function il(e){var t;return(t=e!=null?e:Id.Promise)!==null&&t!==void 0?t:Promise}function ym(e){return e&&Ot(e.next)&&Ot(e.error)&&Ot(e.complete)}function wm(e){return e&&e instanceof Ld||ym(e)&&Nd(e)}var Cm=Od(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Fd=function(e){Rt(t,e);function t(){var r=e.call(this)||this;return r.closed=!1,r.currentObservers=null,r.observers=[],r.isStopped=!1,r.hasError=!1,r.thrownError=null,r}return t.prototype.lift=function(r){var i=new nl(this,this);return i.operator=r,i},t.prototype._throwIfClosed=function(){if(this.closed)throw new Cm},t.prototype.next=function(r){var i=this;an(function(){var n,s;if(i._throwIfClosed(),!i.isStopped){i.currentObservers||(i.currentObservers=Array.from(i.observers));try{for(var o=Js(i.currentObservers),a=o.next();!a.done;a=o.next()){var l=a.value;l.next(r)}}catch(u){n={error:u}}finally{try{a&&!a.done&&(s=o.return)&&s.call(o)}finally{if(n)throw n.error}}}})},t.prototype.error=function(r){var i=this;an(function(){if(i._throwIfClosed(),!i.isStopped){i.hasError=i.isStopped=!0,i.thrownError=r;for(var n=i.observers;n.length;)n.shift().error(r)}})},t.prototype.complete=function(){var r=this;an(function(){if(r._throwIfClosed(),!r.isStopped){r.isStopped=!0;for(var i=r.observers;i.length;)i.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var r;return((r=this.observers)===null||r===void 0?void 0:r.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(r){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,r)},t.prototype._subscribe=function(r){return this._throwIfClosed(),this._checkFinalizedStatuses(r),this._innerSubscribe(r)},t.prototype._innerSubscribe=function(r){var i=this,n=this,s=n.hasError,o=n.isStopped,a=n.observers;return s||o?Bd:(this.currentObservers=null,a.push(r),new Yn(function(){i.currentObservers=null,lo(a,r)}))},t.prototype._checkFinalizedStatuses=function(r){var i=this,n=i.hasError,s=i.thrownError,o=i.isStopped;n?r.error(s):o&&r.complete()},t.prototype.asObservable=function(){var r=new rl;return r.source=this,r},t.create=function(r,i){return new nl(r,i)},t}(rl),nl=function(e){Rt(t,e);function t(r,i){var n=e.call(this)||this;return n.destination=r,n.source=i,n}return t.prototype.next=function(r){var i,n;(n=(i=this.destination)===null||i===void 0?void 0:i.next)===null||n===void 0||n.call(i,r)},t.prototype.error=function(r){var i,n;(n=(i=this.destination)===null||i===void 0?void 0:i.error)===null||n===void 0||n.call(i,r)},t.prototype.complete=function(){var r,i;(i=(r=this.destination)===null||r===void 0?void 0:r.complete)===null||i===void 0||i.call(r)},t.prototype._subscribe=function(r){var i,n;return(n=(i=this.source)===null||i===void 0?void 0:i.subscribe(r))!==null&&n!==void 0?n:Bd},t}(Fd),Rd={now:function(){return(Rd.delegate||Date).now()},delegate:void 0},Em=function(e){Rt(t,e);function t(r,i,n){r===void 0&&(r=1/0),i===void 0&&(i=1/0),n===void 0&&(n=Rd);var s=e.call(this)||this;return s._bufferSize=r,s._windowTime=i,s._timestampProvider=n,s._buffer=[],s._infiniteTimeWindow=!0,s._infiniteTimeWindow=i===1/0,s._bufferSize=Math.max(1,r),s._windowTime=Math.max(1,i),s}return t.prototype.next=function(r){var i=this,n=i.isStopped,s=i._buffer,o=i._infiniteTimeWindow,a=i._timestampProvider,l=i._windowTime;n||(s.push(r),!o&&s.push(a.now()+l)),this._trimBuffer(),e.prototype.next.call(this,r)},t.prototype._subscribe=function(r){this._throwIfClosed(),this._trimBuffer();for(var i=this._innerSubscribe(r),n=this,s=n._infiniteTimeWindow,o=n._buffer,a=o.slice(),l=0;l<a.length&&!r.closed;l+=s?1:2)r.next(a[l]);return this._checkFinalizedStatuses(r),i},t.prototype._trimBuffer=function(){var r=this,i=r._bufferSize,n=r._timestampProvider,s=r._buffer,o=r._infiniteTimeWindow,a=(o?1:2)*i;if(i<1/0&&a<s.length&&s.splice(0,s.length-a),!o){for(var l=n.now(),u=0,d=1;d<s.length&&s[d]<=l;d+=2)u=d;u&&s.splice(0,u+1)}},t}(Fd);const sl=[],ol={},xm=(e,t=0)=>{if(sl.indexOf(e)==-1){const r=new Em(t);ol[e]=r,sl.push(e)}return ol[e]};window.emWidgets={topic:xm};const Hd=e=>!!(e.toLowerCase().match(/android/i)||e.toLowerCase().match(/blackberry|bb/i)||e.toLowerCase().match(/iphone|ipad|ipod/i)||e.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i)),gn={en:{bonus:{bonusCode:"Do you have a bonus code",placeholder:"Enter your bonus code here",claim:"Claim Bonus",from:"From",to:"to",noBonus:"No bonuses found",filter:"Filter",error:"Error",forfeit:"Forfeit",invalidBonusCode:"The bonus code provided is invalid.",noActiveBonuses:"You have no active bonuses at the moment.",forfeitMessage:"Are you sure want to forfeit bonus?",forfeitConfirm:"Confirm",forfeitCancel:"Cancel",claimSuccessMessage:"Bonus claimed!",canlendarTitle:"Select the period",show:"Show"},bonusType:{standard:"Bonus Money",freeBet:"Free Bet",freeRound:"Free Spins",wagering:"Wagering Challenge",cashBack:"Cash Back",oddsBoost:"Odds Boost",stakeBack:"Stake Back",tournamentTicket:"Ticket"},bonusCard:{level:"Level",current:"Current",next:"Next",first:"First",last:"Last",previous:"Previous",startChallenge:"START CHALLENGE",rewards:"Rewards",join:"Join",forfeit:"Forfeit",terms:"Terms and Conditions",bonusType:"Bonus Type",levels:"Levels",validity:"Validity",bonusStatus:"Bonus Status",bonusAmount:"Bonus Amount",wagered:"Wagered",wageredAmount:"Wagered Amount",roundNumber:"Number of freespins",game:"Game",validUntil:"Valid Until",wageringType:"Wagering Type",remaining:"Remaining",money:"Money Wagering",betCount:"Bet Count",allRewards:"All Rewards",error:"Join failed, please try again.",playNow:"Play Now",active:"Active",expired:"Expired",forfeited:"Forfeited",released:"Released",closed:"Closed",completed:"Completed",claimable:"Claimable"}}};function Un(e,t){if(e){const r=document.createElement("style");r.innerHTML=t,e.appendChild(r)}}function Wn(e,t){const r=new URL(t);fetch(r.href).then(i=>i.text()).then(i=>{const n=document.createElement("style");n.innerHTML=i,e&&e.appendChild(n)}).catch(i=>{console.error("There was an error while trying to load client styling from URL",i)})}function $n(e,t,r){if(window.emMessageBus){const i=document.createElement("style");window.emMessageBus.subscribe(t,n=>{i.innerHTML=n,e&&e.appendChild(i)})}}function Sm(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}//! moment.js
|
|
19
|
+
//! version : 2.29.4
|
|
7
20
|
//! authors : Tim Wood, Iskren Chernev, Moment.js contributors
|
|
8
21
|
//! license : MIT
|
|
9
22
|
//! momentjs.com
|
|
10
|
-
var
|
|
11
|
-
[`+s+"] ";for(o in arguments[0])ve(arguments[0],o)&&(n+=o+": "+arguments[0][o]+", ");n=n.slice(0,-2)}else n=arguments[s];i.push(n)}
|
|
23
|
+
var zd;function G(){return zd.apply(null,arguments)}function km(e){zd=e}function mt(e){return e instanceof Array||Object.prototype.toString.call(e)==="[object Array]"}function lr(e){return e!=null&&Object.prototype.toString.call(e)==="[object Object]"}function ve(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Vo(e){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(e).length===0;var t;for(t in e)if(ve(e,t))return!1;return!0}function et(e){return e===void 0}function Lt(e){return typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]"}function Ni(e){return e instanceof Date||Object.prototype.toString.call(e)==="[object Date]"}function Yd(e,t){var r=[],i,n=e.length;for(i=0;i<n;++i)r.push(t(e[i],i));return r}function Gt(e,t){for(var r in t)ve(t,r)&&(e[r]=t[r]);return ve(t,"toString")&&(e.toString=t.toString),ve(t,"valueOf")&&(e.valueOf=t.valueOf),e}function Ct(e,t,r,i){return cc(e,t,r,i,!0).utc()}function Am(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function se(e){return e._pf==null&&(e._pf=Am()),e._pf}var co;Array.prototype.some?co=Array.prototype.some:co=function(e){var t=Object(this),r=t.length>>>0,i;for(i=0;i<r;i++)if(i in t&&e.call(this,t[i],i,t))return!0;return!1};function Go(e){if(e._isValid==null){var t=se(e),r=co.call(t.parsedDateParts,function(n){return n!=null}),i=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&r);if(e._strict&&(i=i&&t.charsLeftOver===0&&t.unusedTokens.length===0&&t.bigHour===void 0),Object.isFrozen==null||!Object.isFrozen(e))e._isValid=i;else return i}return e._isValid}function Vn(e){var t=Ct(NaN);return e!=null?Gt(se(t),e):se(t).userInvalidated=!0,t}var al=G.momentProperties=[],ks=!1;function jo(e,t){var r,i,n,s=al.length;if(et(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),et(t._i)||(e._i=t._i),et(t._f)||(e._f=t._f),et(t._l)||(e._l=t._l),et(t._strict)||(e._strict=t._strict),et(t._tzm)||(e._tzm=t._tzm),et(t._isUTC)||(e._isUTC=t._isUTC),et(t._offset)||(e._offset=t._offset),et(t._pf)||(e._pf=se(t)),et(t._locale)||(e._locale=t._locale),s>0)for(r=0;r<s;r++)i=al[r],n=t[i],et(n)||(e[i]=n);return e}function Ii(e){jo(this,e),this._d=new Date(e._d!=null?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),ks===!1&&(ks=!0,G.updateOffset(this),ks=!1)}function _t(e){return e instanceof Ii||e!=null&&e._isAMomentObject!=null}function Ud(e){G.suppressDeprecationWarnings===!1&&typeof console!="undefined"&&console.warn&&console.warn("Deprecation warning: "+e)}function ut(e,t){var r=!0;return Gt(function(){if(G.deprecationHandler!=null&&G.deprecationHandler(null,e),r){var i=[],n,s,o,a=arguments.length;for(s=0;s<a;s++){if(n="",typeof arguments[s]=="object"){n+=`
|
|
24
|
+
[`+s+"] ";for(o in arguments[0])ve(arguments[0],o)&&(n+=o+": "+arguments[0][o]+", ");n=n.slice(0,-2)}else n=arguments[s];i.push(n)}Ud(e+`
|
|
12
25
|
Arguments: `+Array.prototype.slice.call(i).join("")+`
|
|
13
|
-
`+new Error().stack),r=!1}return t.apply(this,arguments)},t)}var nl={};function Yd(e,t){G.deprecationHandler!=null&&G.deprecationHandler(e,t),nl[e]||(Rd(t),nl[e]=!0)}G.suppressDeprecationWarnings=!1;G.deprecationHandler=null;function wt(e){return typeof Function!="undefined"&&e instanceof Function||Object.prototype.toString.call(e)==="[object Function]"}function Sm(e){var t,r;for(r in e)ve(e,r)&&(t=e[r],wt(t)?this[r]=t:this["_"+r]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function lo(e,t){var r=Gt({},e),i;for(i in t)ve(t,i)&&(ar(e[i])&&ar(t[i])?(r[i]={},Gt(r[i],e[i]),Gt(r[i],t[i])):t[i]!=null?r[i]=t[i]:delete r[i]);for(i in e)ve(e,i)&&!ve(t,i)&&ar(e[i])&&(r[i]=Gt({},r[i]));return r}function Vo(e){e!=null&&this.set(e)}var uo;Object.keys?uo=Object.keys:uo=function(e){var t,r=[];for(t in e)ve(e,t)&&r.push(t);return r};var Am={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function Tm(e,t,r){var i=this._calendar[e]||this._calendar.sameElse;return wt(i)?i.call(t,r):i}function vt(e,t,r){var i=""+Math.abs(e),n=t-i.length,s=e>=0;return(s?r?"+":"":"-")+Math.pow(10,Math.max(0,n)).toString().substr(1)+i}var Wo=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,Zi=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Es={},Sr={};function te(e,t,r,i){var n=i;typeof i=="string"&&(n=function(){return this[i]()}),e&&(Sr[e]=n),t&&(Sr[t[0]]=function(){return vt(n.apply(this,arguments),t[1],t[2])}),r&&(Sr[r]=function(){return this.localeData().ordinal(n.apply(this,arguments),e)})}function Dm(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function Pm(e){var t=e.match(Wo),r,i;for(r=0,i=t.length;r<i;r++)Sr[t[r]]?t[r]=Sr[t[r]]:t[r]=Dm(t[r]);return function(n){var s="",o;for(o=0;o<i;o++)s+=wt(t[o])?t[o].call(n,e):t[o];return s}}function ln(e,t){return e.isValid()?(t=zd(t,e.localeData()),Es[t]=Es[t]||Pm(t),Es[t](e)):e.localeData().invalidDate()}function zd(e,t){var r=5;function i(n){return t.longDateFormat(n)||n}for(Zi.lastIndex=0;r>=0&&Zi.test(e);)e=e.replace(Zi,i),Zi.lastIndex=0,r-=1;return e}var Mm={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function Om(e){var t=this._longDateFormat[e],r=this._longDateFormat[e.toUpperCase()];return t||!r?t:(this._longDateFormat[e]=r.match(Wo).map(function(i){return i==="MMMM"||i==="MM"||i==="DD"||i==="dddd"?i.slice(1):i}).join(""),this._longDateFormat[e])}var Bm="Invalid date";function Nm(){return this._invalidDate}var Im="%d",Lm=/\d{1,2}/;function Fm(e){return this._ordinal.replace("%d",e)}var Hm={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function Rm(e,t,r,i){var n=this._relativeTime[r];return wt(n)?n(e,t,r,i):n.replace(/%d/i,e)}function Ym(e,t){var r=this._relativeTime[e>0?"future":"past"];return wt(r)?r(t):r.replace(/%s/i,t)}var sl={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function lt(e){return typeof e=="string"?sl[e]||sl[e.toLowerCase()]:void 0}function $o(e){var t={},r,i;for(i in e)ve(e,i)&&(r=lt(i),r&&(t[r]=e[i]));return t}var zm={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function Um(e){var t=[],r;for(r in e)ve(e,r)&&t.push({unit:r,priority:zm[r]});return t.sort(function(i,n){return i.priority-n.priority}),t}var Ud=/\d/,rt=/\d\d/,Vd=/\d{3}/,Go=/\d{4}/,$n=/[+-]?\d{6}/,Te=/\d\d?/,Wd=/\d\d\d\d?/,$d=/\d\d\d\d\d\d?/,Gn=/\d{1,3}/,jo=/\d{1,4}/,jn=/[+-]?\d{1,6}/,Wr=/\d+/,qn=/[+-]?\d+/,Vm=/Z|[+-]\d\d:?\d\d/gi,Zn=/Z|[+-]\d\d(?::?\d\d)?/gi,Wm=/[+-]?\d+(\.\d{1,3})?/,Li=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,$r=/^[1-9]\d?/,qo=/^([1-9]\d|\d)/,bn;bn={};function X(e,t,r){bn[e]=wt(t)?t:function(i,n){return i&&r?r:t}}function $m(e,t){return ve(bn,e)?bn[e](t._strict,t._locale):new RegExp(Gm(e))}function Gm(e){return Ot(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,r,i,n,s){return r||i||n||s}))}function Ot(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function st(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function de(e){var t=+e,r=0;return t!==0&&isFinite(t)&&(r=st(t)),r}var co={};function Ee(e,t){var r,i=t,n;for(typeof e=="string"&&(e=[e]),It(t)&&(i=function(s,o){o[t]=de(s)}),n=e.length,r=0;r<n;r++)co[e[r]]=i}function Fi(e,t){Ee(e,function(r,i,n,s){n._w=n._w||{},t(r,n._w,n,s)})}function jm(e,t,r){t!=null&&ve(co,e)&&co[e](t,r._a,r,e)}function Xn(e){return e%4===0&&e%100!==0||e%400===0}var Ge=0,Tt=1,bt=2,Ye=3,ct=4,Dt=5,ir=6,qm=7,Zm=8;te("Y",0,0,function(){var e=this.year();return e<=9999?vt(e,4):"+"+e});te(0,["YY",2],0,function(){return this.year()%100});te(0,["YYYY",4],0,"year");te(0,["YYYYY",5],0,"year");te(0,["YYYYYY",6,!0],0,"year");X("Y",qn);X("YY",Te,rt);X("YYYY",jo,Go);X("YYYYY",jn,$n);X("YYYYYY",jn,$n);Ee(["YYYYY","YYYYYY"],Ge);Ee("YYYY",function(e,t){t[Ge]=e.length===2?G.parseTwoDigitYear(e):de(e)});Ee("YY",function(e,t){t[Ge]=G.parseTwoDigitYear(e)});Ee("Y",function(e,t){t[Ge]=parseInt(e,10)});function ai(e){return Xn(e)?366:365}G.parseTwoDigitYear=function(e){return de(e)+(de(e)>68?1900:2e3)};var Gd=Gr("FullYear",!0);function Xm(){return Xn(this.year())}function Gr(e,t){return function(r){return r!=null?(jd(this,e,r),G.updateOffset(this,t),this):pi(this,e)}}function pi(e,t){if(!e.isValid())return NaN;var r=e._d,i=e._isUTC;switch(t){case"Milliseconds":return i?r.getUTCMilliseconds():r.getMilliseconds();case"Seconds":return i?r.getUTCSeconds():r.getSeconds();case"Minutes":return i?r.getUTCMinutes():r.getMinutes();case"Hours":return i?r.getUTCHours():r.getHours();case"Date":return i?r.getUTCDate():r.getDate();case"Day":return i?r.getUTCDay():r.getDay();case"Month":return i?r.getUTCMonth():r.getMonth();case"FullYear":return i?r.getUTCFullYear():r.getFullYear();default:return NaN}}function jd(e,t,r){var i,n,s,o,a;if(!(!e.isValid()||isNaN(r))){switch(i=e._d,n=e._isUTC,t){case"Milliseconds":return void(n?i.setUTCMilliseconds(r):i.setMilliseconds(r));case"Seconds":return void(n?i.setUTCSeconds(r):i.setSeconds(r));case"Minutes":return void(n?i.setUTCMinutes(r):i.setMinutes(r));case"Hours":return void(n?i.setUTCHours(r):i.setHours(r));case"Date":return void(n?i.setUTCDate(r):i.setDate(r));case"FullYear":break;default:return}s=r,o=e.month(),a=e.date(),a=a===29&&o===1&&!Xn(s)?28:a,n?i.setUTCFullYear(s,o,a):i.setFullYear(s,o,a)}}function Jm(e){return e=lt(e),wt(this[e])?this[e]():this}function Km(e,t){if(typeof e=="object"){e=$o(e);var r=Um(e),i,n=r.length;for(i=0;i<n;i++)this[r[i].unit](e[r[i].unit])}else if(e=lt(e),wt(this[e]))return this[e](t);return this}function Qm(e,t){return(e%t+t)%t}var Ne;Array.prototype.indexOf?Ne=Array.prototype.indexOf:Ne=function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1};function Zo(e,t){if(isNaN(e)||isNaN(t))return NaN;var r=Qm(t,12);return e+=(t-r)/12,r===1?Xn(e)?29:28:31-r%7%2}te("M",["MM",2],"Mo",function(){return this.month()+1});te("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)});te("MMMM",0,0,function(e){return this.localeData().months(this,e)});X("M",Te,$r);X("MM",Te,rt);X("MMM",function(e,t){return t.monthsShortRegex(e)});X("MMMM",function(e,t){return t.monthsRegex(e)});Ee(["M","MM"],function(e,t){t[Tt]=de(e)-1});Ee(["MMM","MMMM"],function(e,t,r,i){var n=r._locale.monthsParse(e,i,r._strict);n!=null?t[Tt]=n:se(r).invalidMonth=e});var e_="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),qd="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Zd=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,t_=Li,r_=Li;function i_(e,t){return e?ft(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||Zd).test(t)?"format":"standalone"][e.month()]:ft(this._months)?this._months:this._months.standalone}function n_(e,t){return e?ft(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[Zd.test(t)?"format":"standalone"][e.month()]:ft(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function s_(e,t,r){var i,n,s,o=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],i=0;i<12;++i)s=yt([2e3,i]),this._shortMonthsParse[i]=this.monthsShort(s,"").toLocaleLowerCase(),this._longMonthsParse[i]=this.months(s,"").toLocaleLowerCase();return r?t==="MMM"?(n=Ne.call(this._shortMonthsParse,o),n!==-1?n:null):(n=Ne.call(this._longMonthsParse,o),n!==-1?n:null):t==="MMM"?(n=Ne.call(this._shortMonthsParse,o),n!==-1?n:(n=Ne.call(this._longMonthsParse,o),n!==-1?n:null)):(n=Ne.call(this._longMonthsParse,o),n!==-1?n:(n=Ne.call(this._shortMonthsParse,o),n!==-1?n:null))}function o_(e,t,r){var i,n,s;if(this._monthsParseExact)return s_.call(this,e,t,r);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),i=0;i<12;i++){if(n=yt([2e3,i]),r&&!this._longMonthsParse[i]&&(this._longMonthsParse[i]=new RegExp("^"+this.months(n,"").replace(".","")+"$","i"),this._shortMonthsParse[i]=new RegExp("^"+this.monthsShort(n,"").replace(".","")+"$","i")),!r&&!this._monthsParse[i]&&(s="^"+this.months(n,"")+"|^"+this.monthsShort(n,""),this._monthsParse[i]=new RegExp(s.replace(".",""),"i")),r&&t==="MMMM"&&this._longMonthsParse[i].test(e))return i;if(r&&t==="MMM"&&this._shortMonthsParse[i].test(e))return i;if(!r&&this._monthsParse[i].test(e))return i}}function Xd(e,t){if(!e.isValid())return e;if(typeof t=="string"){if(/^\d+$/.test(t))t=de(t);else if(t=e.localeData().monthsParse(t),!It(t))return e}var r=t,i=e.date();return i=i<29?i:Math.min(i,Zo(e.year(),r)),e._isUTC?e._d.setUTCMonth(r,i):e._d.setMonth(r,i),e}function Jd(e){return e!=null?(Xd(this,e),G.updateOffset(this,!0),this):pi(this,"Month")}function a_(){return Zo(this.year(),this.month())}function l_(e){return this._monthsParseExact?(ve(this,"_monthsRegex")||Kd.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(ve(this,"_monthsShortRegex")||(this._monthsShortRegex=t_),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function u_(e){return this._monthsParseExact?(ve(this,"_monthsRegex")||Kd.call(this),e?this._monthsStrictRegex:this._monthsRegex):(ve(this,"_monthsRegex")||(this._monthsRegex=r_),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function Kd(){function e(l,u){return u.length-l.length}var t=[],r=[],i=[],n,s,o,a;for(n=0;n<12;n++)s=yt([2e3,n]),o=Ot(this.monthsShort(s,"")),a=Ot(this.months(s,"")),t.push(o),r.push(a),i.push(a),i.push(o);t.sort(e),r.sort(e),i.sort(e),this._monthsRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+t.join("|")+")","i")}function d_(e,t,r,i,n,s,o){var a;return e<100&&e>=0?(a=new Date(e+400,t,r,i,n,s,o),isFinite(a.getFullYear())&&a.setFullYear(e)):a=new Date(e,t,r,i,n,s,o),a}function mi(e){var t,r;return e<100&&e>=0?(r=Array.prototype.slice.call(arguments),r[0]=e+400,t=new Date(Date.UTC.apply(null,r)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function vn(e,t,r){var i=7+t-r,n=(7+mi(e,0,i).getUTCDay()-t)%7;return-n+i-1}function Qd(e,t,r,i,n){var s=(7+r-i)%7,o=vn(e,i,n),a=1+7*(t-1)+s+o,l,u;return a<=0?(l=e-1,u=ai(l)+a):a>ai(e)?(l=e+1,u=a-ai(e)):(l=e,u=a),{year:l,dayOfYear:u}}function _i(e,t,r){var i=vn(e.year(),t,r),n=Math.floor((e.dayOfYear()-i-1)/7)+1,s,o;return n<1?(o=e.year()-1,s=n+Bt(o,t,r)):n>Bt(e.year(),t,r)?(s=n-Bt(e.year(),t,r),o=e.year()+1):(o=e.year(),s=n),{week:s,year:o}}function Bt(e,t,r){var i=vn(e,t,r),n=vn(e+1,t,r);return(ai(e)-i+n)/7}te("w",["ww",2],"wo","week");te("W",["WW",2],"Wo","isoWeek");X("w",Te,$r);X("ww",Te,rt);X("W",Te,$r);X("WW",Te,rt);Fi(["w","ww","W","WW"],function(e,t,r,i){t[i.substr(0,1)]=de(e)});function c_(e){return _i(e,this._week.dow,this._week.doy).week}var h_={dow:0,doy:6};function f_(){return this._week.dow}function p_(){return this._week.doy}function m_(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function __(e){var t=_i(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}te("d",0,"do","day");te("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)});te("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)});te("dddd",0,0,function(e){return this.localeData().weekdays(this,e)});te("e",0,0,"weekday");te("E",0,0,"isoWeekday");X("d",Te);X("e",Te);X("E",Te);X("dd",function(e,t){return t.weekdaysMinRegex(e)});X("ddd",function(e,t){return t.weekdaysShortRegex(e)});X("dddd",function(e,t){return t.weekdaysRegex(e)});Fi(["dd","ddd","dddd"],function(e,t,r,i){var n=r._locale.weekdaysParse(e,i,r._strict);n!=null?t.d=n:se(r).invalidWeekday=e});Fi(["d","e","E"],function(e,t,r,i){t[i]=de(e)});function g_(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function b_(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function Xo(e,t){return e.slice(t,7).concat(e.slice(0,t))}var v_="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),ec="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),y_="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),w_=Li,C_=Li,x_=Li;function E_(e,t){var r=ft(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?Xo(r,this._week.dow):e?r[e.day()]:r}function k_(e){return e===!0?Xo(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function S_(e){return e===!0?Xo(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function A_(e,t,r){var i,n,s,o=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],i=0;i<7;++i)s=yt([2e3,1]).day(i),this._minWeekdaysParse[i]=this.weekdaysMin(s,"").toLocaleLowerCase(),this._shortWeekdaysParse[i]=this.weekdaysShort(s,"").toLocaleLowerCase(),this._weekdaysParse[i]=this.weekdays(s,"").toLocaleLowerCase();return r?t==="dddd"?(n=Ne.call(this._weekdaysParse,o),n!==-1?n:null):t==="ddd"?(n=Ne.call(this._shortWeekdaysParse,o),n!==-1?n:null):(n=Ne.call(this._minWeekdaysParse,o),n!==-1?n:null):t==="dddd"?(n=Ne.call(this._weekdaysParse,o),n!==-1||(n=Ne.call(this._shortWeekdaysParse,o),n!==-1)?n:(n=Ne.call(this._minWeekdaysParse,o),n!==-1?n:null)):t==="ddd"?(n=Ne.call(this._shortWeekdaysParse,o),n!==-1||(n=Ne.call(this._weekdaysParse,o),n!==-1)?n:(n=Ne.call(this._minWeekdaysParse,o),n!==-1?n:null)):(n=Ne.call(this._minWeekdaysParse,o),n!==-1||(n=Ne.call(this._weekdaysParse,o),n!==-1)?n:(n=Ne.call(this._shortWeekdaysParse,o),n!==-1?n:null))}function T_(e,t,r){var i,n,s;if(this._weekdaysParseExact)return A_.call(this,e,t,r);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),i=0;i<7;i++){if(n=yt([2e3,1]).day(i),r&&!this._fullWeekdaysParse[i]&&(this._fullWeekdaysParse[i]=new RegExp("^"+this.weekdays(n,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[i]=new RegExp("^"+this.weekdaysShort(n,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[i]=new RegExp("^"+this.weekdaysMin(n,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[i]||(s="^"+this.weekdays(n,"")+"|^"+this.weekdaysShort(n,"")+"|^"+this.weekdaysMin(n,""),this._weekdaysParse[i]=new RegExp(s.replace(".",""),"i")),r&&t==="dddd"&&this._fullWeekdaysParse[i].test(e))return i;if(r&&t==="ddd"&&this._shortWeekdaysParse[i].test(e))return i;if(r&&t==="dd"&&this._minWeekdaysParse[i].test(e))return i;if(!r&&this._weekdaysParse[i].test(e))return i}}function D_(e){if(!this.isValid())return e!=null?this:NaN;var t=pi(this,"Day");return e!=null?(e=g_(e,this.localeData()),this.add(e-t,"d")):t}function P_(e){if(!this.isValid())return e!=null?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return e==null?t:this.add(e-t,"d")}function M_(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=b_(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function O_(e){return this._weekdaysParseExact?(ve(this,"_weekdaysRegex")||Jo.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(ve(this,"_weekdaysRegex")||(this._weekdaysRegex=w_),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function B_(e){return this._weekdaysParseExact?(ve(this,"_weekdaysRegex")||Jo.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(ve(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=C_),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function N_(e){return this._weekdaysParseExact?(ve(this,"_weekdaysRegex")||Jo.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(ve(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=x_),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Jo(){function e(d,c){return c.length-d.length}var t=[],r=[],i=[],n=[],s,o,a,l,u;for(s=0;s<7;s++)o=yt([2e3,1]).day(s),a=Ot(this.weekdaysMin(o,"")),l=Ot(this.weekdaysShort(o,"")),u=Ot(this.weekdays(o,"")),t.push(a),r.push(l),i.push(u),n.push(a),n.push(l),n.push(u);t.sort(e),r.sort(e),i.sort(e),n.sort(e),this._weekdaysRegex=new RegExp("^("+n.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+i.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function Ko(){return this.hours()%12||12}function I_(){return this.hours()||24}te("H",["HH",2],0,"hour");te("h",["hh",2],0,Ko);te("k",["kk",2],0,I_);te("hmm",0,0,function(){return""+Ko.apply(this)+vt(this.minutes(),2)});te("hmmss",0,0,function(){return""+Ko.apply(this)+vt(this.minutes(),2)+vt(this.seconds(),2)});te("Hmm",0,0,function(){return""+this.hours()+vt(this.minutes(),2)});te("Hmmss",0,0,function(){return""+this.hours()+vt(this.minutes(),2)+vt(this.seconds(),2)});function tc(e,t){te(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}tc("a",!0);tc("A",!1);function rc(e,t){return t._meridiemParse}X("a",rc);X("A",rc);X("H",Te,qo);X("h",Te,$r);X("k",Te,$r);X("HH",Te,rt);X("hh",Te,rt);X("kk",Te,rt);X("hmm",Wd);X("hmmss",$d);X("Hmm",Wd);X("Hmmss",$d);Ee(["H","HH"],Ye);Ee(["k","kk"],function(e,t,r){var i=de(e);t[Ye]=i===24?0:i});Ee(["a","A"],function(e,t,r){r._isPm=r._locale.isPM(e),r._meridiem=e});Ee(["h","hh"],function(e,t,r){t[Ye]=de(e),se(r).bigHour=!0});Ee("hmm",function(e,t,r){var i=e.length-2;t[Ye]=de(e.substr(0,i)),t[ct]=de(e.substr(i)),se(r).bigHour=!0});Ee("hmmss",function(e,t,r){var i=e.length-4,n=e.length-2;t[Ye]=de(e.substr(0,i)),t[ct]=de(e.substr(i,2)),t[Dt]=de(e.substr(n)),se(r).bigHour=!0});Ee("Hmm",function(e,t,r){var i=e.length-2;t[Ye]=de(e.substr(0,i)),t[ct]=de(e.substr(i))});Ee("Hmmss",function(e,t,r){var i=e.length-4,n=e.length-2;t[Ye]=de(e.substr(0,i)),t[ct]=de(e.substr(i,2)),t[Dt]=de(e.substr(n))});function L_(e){return(e+"").toLowerCase().charAt(0)==="p"}var F_=/[ap]\.?m?\.?/i,H_=Gr("Hours",!0);function R_(e,t,r){return e>11?r?"pm":"PM":r?"am":"AM"}var ic={calendar:Am,longDateFormat:Mm,invalidDate:Bm,ordinal:Im,dayOfMonthOrdinalParse:Lm,relativeTime:Hm,months:e_,monthsShort:qd,week:h_,weekdays:v_,weekdaysMin:y_,weekdaysShort:ec,meridiemParse:F_},Pe={},Jr={},gi;function Y_(e,t){var r,i=Math.min(e.length,t.length);for(r=0;r<i;r+=1)if(e[r]!==t[r])return r;return i}function ol(e){return e&&e.toLowerCase().replace("_","-")}function z_(e){for(var t=0,r,i,n,s;t<e.length;){for(s=ol(e[t]).split("-"),r=s.length,i=ol(e[t+1]),i=i?i.split("-"):null;r>0;){if(n=Jn(s.slice(0,r).join("-")),n)return n;if(i&&i.length>=r&&Y_(s,i)>=r-1)break;r--}t++}return gi}function U_(e){return!!(e&&e.match("^[^/\\\\]*$"))}function Jn(e){var t=null,r;if(Pe[e]===void 0&&typeof module!="undefined"&&module&&module.exports&&U_(e))try{t=gi._abbr,r=xm,r("./locale/"+e),qt(t)}catch(i){Pe[e]=null}return Pe[e]}function qt(e,t){var r;return e&&(Ke(t)?r=Ht(e):r=Qo(e,t),r?gi=r:typeof console!="undefined"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),gi._abbr}function Qo(e,t){if(t!==null){var r,i=ic;if(t.abbr=e,Pe[e]!=null)Yd("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),i=Pe[e]._config;else if(t.parentLocale!=null)if(Pe[t.parentLocale]!=null)i=Pe[t.parentLocale]._config;else if(r=Jn(t.parentLocale),r!=null)i=r._config;else return Jr[t.parentLocale]||(Jr[t.parentLocale]=[]),Jr[t.parentLocale].push({name:e,config:t}),null;return Pe[e]=new Vo(lo(i,t)),Jr[e]&&Jr[e].forEach(function(n){Qo(n.name,n.config)}),qt(e),Pe[e]}else return delete Pe[e],null}function V_(e,t){if(t!=null){var r,i,n=ic;Pe[e]!=null&&Pe[e].parentLocale!=null?Pe[e].set(lo(Pe[e]._config,t)):(i=Jn(e),i!=null&&(n=i._config),t=lo(n,t),i==null&&(t.abbr=e),r=new Vo(t),r.parentLocale=Pe[e],Pe[e]=r),qt(e)}else Pe[e]!=null&&(Pe[e].parentLocale!=null?(Pe[e]=Pe[e].parentLocale,e===qt()&&qt(e)):Pe[e]!=null&&delete Pe[e]);return Pe[e]}function Ht(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return gi;if(!ft(e)){if(t=Jn(e),t)return t;e=[e]}return z_(e)}function W_(){return uo(Pe)}function ea(e){var t,r=e._a;return r&&se(e).overflow===-2&&(t=r[Tt]<0||r[Tt]>11?Tt:r[bt]<1||r[bt]>Zo(r[Ge],r[Tt])?bt:r[Ye]<0||r[Ye]>24||r[Ye]===24&&(r[ct]!==0||r[Dt]!==0||r[ir]!==0)?Ye:r[ct]<0||r[ct]>59?ct:r[Dt]<0||r[Dt]>59?Dt:r[ir]<0||r[ir]>999?ir:-1,se(e)._overflowDayOfYear&&(t<Ge||t>bt)&&(t=bt),se(e)._overflowWeeks&&t===-1&&(t=qm),se(e)._overflowWeekday&&t===-1&&(t=Zm),se(e).overflow=t),e}var $_=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,G_=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,j_=/Z|[+-]\d\d(?::?\d\d)?/,Xi=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],ks=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],q_=/^\/?Date\((-?\d+)/i,Z_=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,X_={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function nc(e){var t,r,i=e._i,n=$_.exec(i)||G_.exec(i),s,o,a,l,u=Xi.length,d=ks.length;if(n){for(se(e).iso=!0,t=0,r=u;t<r;t++)if(Xi[t][1].exec(n[1])){o=Xi[t][0],s=Xi[t][2]!==!1;break}if(o==null){e._isValid=!1;return}if(n[3]){for(t=0,r=d;t<r;t++)if(ks[t][1].exec(n[3])){a=(n[2]||" ")+ks[t][0];break}if(a==null){e._isValid=!1;return}}if(!s&&a!=null){e._isValid=!1;return}if(n[4])if(j_.exec(n[4]))l="Z";else{e._isValid=!1;return}e._f=o+(a||"")+(l||""),ra(e)}else e._isValid=!1}function J_(e,t,r,i,n,s){var o=[K_(e),qd.indexOf(t),parseInt(r,10),parseInt(i,10),parseInt(n,10)];return s&&o.push(parseInt(s,10)),o}function K_(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function Q_(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function e0(e,t,r){if(e){var i=ec.indexOf(e),n=new Date(t[0],t[1],t[2]).getDay();if(i!==n)return se(r).weekdayMismatch=!0,r._isValid=!1,!1}return!0}function t0(e,t,r){if(e)return X_[e];if(t)return 0;var i=parseInt(r,10),n=i%100,s=(i-n)/100;return s*60+n}function sc(e){var t=Z_.exec(Q_(e._i)),r;if(t){if(r=J_(t[4],t[3],t[2],t[5],t[6],t[7]),!e0(t[1],r,e))return;e._a=r,e._tzm=t0(t[8],t[9],t[10]),e._d=mi.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),se(e).rfc2822=!0}else e._isValid=!1}function r0(e){var t=q_.exec(e._i);if(t!==null){e._d=new Date(+t[1]);return}if(nc(e),e._isValid===!1)delete e._isValid;else return;if(sc(e),e._isValid===!1)delete e._isValid;else return;e._strict?e._isValid=!1:G.createFromInputFallback(e)}G.createFromInputFallback=at("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))});function wr(e,t,r){return e!=null?e:t!=null?t:r}function i0(e){var t=new Date(G.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function ta(e){var t,r,i=[],n,s,o;if(!e._d){for(n=i0(e),e._w&&e._a[bt]==null&&e._a[Tt]==null&&n0(e),e._dayOfYear!=null&&(o=wr(e._a[Ge],n[Ge]),(e._dayOfYear>ai(o)||e._dayOfYear===0)&&(se(e)._overflowDayOfYear=!0),r=mi(o,0,e._dayOfYear),e._a[Tt]=r.getUTCMonth(),e._a[bt]=r.getUTCDate()),t=0;t<3&&e._a[t]==null;++t)e._a[t]=i[t]=n[t];for(;t<7;t++)e._a[t]=i[t]=e._a[t]==null?t===2?1:0:e._a[t];e._a[Ye]===24&&e._a[ct]===0&&e._a[Dt]===0&&e._a[ir]===0&&(e._nextDay=!0,e._a[Ye]=0),e._d=(e._useUTC?mi:d_).apply(null,i),s=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[Ye]=24),e._w&&typeof e._w.d!="undefined"&&e._w.d!==s&&(se(e).weekdayMismatch=!0)}}function n0(e){var t,r,i,n,s,o,a,l,u;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(s=1,o=4,r=wr(t.GG,e._a[Ge],_i(Ae(),1,4).year),i=wr(t.W,1),n=wr(t.E,1),(n<1||n>7)&&(l=!0)):(s=e._locale._week.dow,o=e._locale._week.doy,u=_i(Ae(),s,o),r=wr(t.gg,e._a[Ge],u.year),i=wr(t.w,u.week),t.d!=null?(n=t.d,(n<0||n>6)&&(l=!0)):t.e!=null?(n=t.e+s,(t.e<0||t.e>6)&&(l=!0)):n=s),i<1||i>Bt(r,s,o)?se(e)._overflowWeeks=!0:l!=null?se(e)._overflowWeekday=!0:(a=Qd(r,i,n,s,o),e._a[Ge]=a.year,e._dayOfYear=a.dayOfYear)}G.ISO_8601=function(){};G.RFC_2822=function(){};function ra(e){if(e._f===G.ISO_8601){nc(e);return}if(e._f===G.RFC_2822){sc(e);return}e._a=[],se(e).empty=!0;var t=""+e._i,r,i,n,s,o,a=t.length,l=0,u,d;for(n=zd(e._f,e._locale).match(Wo)||[],d=n.length,r=0;r<d;r++)s=n[r],i=(t.match($m(s,e))||[])[0],i&&(o=t.substr(0,t.indexOf(i)),o.length>0&&se(e).unusedInput.push(o),t=t.slice(t.indexOf(i)+i.length),l+=i.length),Sr[s]?(i?se(e).empty=!1:se(e).unusedTokens.push(s),jm(s,i,e)):e._strict&&!i&&se(e).unusedTokens.push(s);se(e).charsLeftOver=a-l,t.length>0&&se(e).unusedInput.push(t),e._a[Ye]<=12&&se(e).bigHour===!0&&e._a[Ye]>0&&(se(e).bigHour=void 0),se(e).parsedDateParts=e._a.slice(0),se(e).meridiem=e._meridiem,e._a[Ye]=s0(e._locale,e._a[Ye],e._meridiem),u=se(e).era,u!==null&&(e._a[Ge]=e._locale.erasConvertYear(u,e._a[Ge])),ta(e),ea(e)}function s0(e,t,r){var i;return r==null?t:e.meridiemHour!=null?e.meridiemHour(t,r):(e.isPM!=null&&(i=e.isPM(r),i&&t<12&&(t+=12),!i&&t===12&&(t=0)),t)}function o0(e){var t,r,i,n,s,o,a=!1,l=e._f.length;if(l===0){se(e).invalidFormat=!0,e._d=new Date(NaN);return}for(n=0;n<l;n++)s=0,o=!1,t=Uo({},e),e._useUTC!=null&&(t._useUTC=e._useUTC),t._f=e._f[n],ra(t),zo(t)&&(o=!0),s+=se(t).charsLeftOver,s+=se(t).unusedTokens.length*10,se(t).score=s,a?s<i&&(i=s,r=t):(i==null||s<i||o)&&(i=s,r=t,o&&(a=!0));Gt(e,r||t)}function a0(e){if(!e._d){var t=$o(e._i),r=t.day===void 0?t.date:t.day;e._a=Hd([t.year,t.month,r,t.hour,t.minute,t.second,t.millisecond],function(i){return i&&parseInt(i,10)}),ta(e)}}function l0(e){var t=new Ii(ea(oc(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function oc(e){var t=e._i,r=e._f;return e._locale=e._locale||Ht(e._l),t===null||r===void 0&&t===""?Wn({nullInput:!0}):(typeof t=="string"&&(e._i=t=e._locale.preparse(t)),pt(t)?new Ii(ea(t)):(Ni(t)?e._d=t:ft(r)?o0(e):r?ra(e):u0(e),zo(e)||(e._d=null),e))}function u0(e){var t=e._i;Ke(t)?e._d=new Date(G.now()):Ni(t)?e._d=new Date(t.valueOf()):typeof t=="string"?r0(e):ft(t)?(e._a=Hd(t.slice(0),function(r){return parseInt(r,10)}),ta(e)):ar(t)?a0(e):It(t)?e._d=new Date(t):G.createFromInputFallback(e)}function ac(e,t,r,i,n){var s={};return(t===!0||t===!1)&&(i=t,t=void 0),(r===!0||r===!1)&&(i=r,r=void 0),(ar(e)&&Yo(e)||ft(e)&&e.length===0)&&(e=void 0),s._isAMomentObject=!0,s._useUTC=s._isUTC=n,s._l=r,s._i=e,s._f=t,s._strict=i,l0(s)}function Ae(e,t,r,i){return ac(e,t,r,i,!1)}var d0=at("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Ae.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:Wn()}),c0=at("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Ae.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:Wn()});function lc(e,t){var r,i;if(t.length===1&&ft(t[0])&&(t=t[0]),!t.length)return Ae();for(r=t[0],i=1;i<t.length;++i)(!t[i].isValid()||t[i][e](r))&&(r=t[i]);return r}function h0(){var e=[].slice.call(arguments,0);return lc("isBefore",e)}function f0(){var e=[].slice.call(arguments,0);return lc("isAfter",e)}var p0=function(){return Date.now?Date.now():+new Date},Kr=["year","quarter","month","week","day","hour","minute","second","millisecond"];function m0(e){var t,r=!1,i,n=Kr.length;for(t in e)if(ve(e,t)&&!(Ne.call(Kr,t)!==-1&&(e[t]==null||!isNaN(e[t]))))return!1;for(i=0;i<n;++i)if(e[Kr[i]]){if(r)return!1;parseFloat(e[Kr[i]])!==de(e[Kr[i]])&&(r=!0)}return!0}function _0(){return this._isValid}function g0(){return _t(NaN)}function Kn(e){var t=$o(e),r=t.year||0,i=t.quarter||0,n=t.month||0,s=t.week||t.isoWeek||0,o=t.day||0,a=t.hour||0,l=t.minute||0,u=t.second||0,d=t.millisecond||0;this._isValid=m0(t),this._milliseconds=+d+u*1e3+l*6e4+a*1e3*60*60,this._days=+o+s*7,this._months=+n+i*3+r*12,this._data={},this._locale=Ht(),this._bubble()}function un(e){return e instanceof Kn}function ho(e){return e<0?Math.round(-1*e)*-1:Math.round(e)}function b0(e,t,r){var i=Math.min(e.length,t.length),n=Math.abs(e.length-t.length),s=0,o;for(o=0;o<i;o++)de(e[o])!==de(t[o])&&s++;return s+n}function uc(e,t){te(e,0,0,function(){var r=this.utcOffset(),i="+";return r<0&&(r=-r,i="-"),i+vt(~~(r/60),2)+t+vt(~~r%60,2)})}uc("Z",":");uc("ZZ","");X("Z",Zn);X("ZZ",Zn);Ee(["Z","ZZ"],function(e,t,r){r._useUTC=!0,r._tzm=ia(Zn,e)});var v0=/([\+\-]|\d\d)/gi;function ia(e,t){var r=(t||"").match(e),i,n,s;return r===null?null:(i=r[r.length-1]||[],n=(i+"").match(v0)||["-",0,0],s=+(n[1]*60)+de(n[2]),s===0?0:n[0]==="+"?s:-s)}function na(e,t){var r,i;return t._isUTC?(r=t.clone(),i=(pt(e)||Ni(e)?e.valueOf():Ae(e).valueOf())-r.valueOf(),r._d.setTime(r._d.valueOf()+i),G.updateOffset(r,!1),r):Ae(e).local()}function fo(e){return-Math.round(e._d.getTimezoneOffset())}G.updateOffset=function(){};function y0(e,t,r){var i=this._offset||0,n;if(!this.isValid())return e!=null?this:NaN;if(e!=null){if(typeof e=="string"){if(e=ia(Zn,e),e===null)return this}else Math.abs(e)<16&&!r&&(e=e*60);return!this._isUTC&&t&&(n=fo(this)),this._offset=e,this._isUTC=!0,n!=null&&this.add(n,"m"),i!==e&&(!t||this._changeInProgress?hc(this,_t(e-i,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,G.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?i:fo(this)}function w0(e,t){return e!=null?(typeof e!="string"&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function C0(e){return this.utcOffset(0,e)}function x0(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(fo(this),"m")),this}function E0(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var e=ia(Vm,this._i);e!=null?this.utcOffset(e):this.utcOffset(0,!0)}return this}function k0(e){return this.isValid()?(e=e?Ae(e).utcOffset():0,(this.utcOffset()-e)%60===0):!1}function S0(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function A0(){if(!Ke(this._isDSTShifted))return this._isDSTShifted;var e={},t;return Uo(e,this),e=oc(e),e._a?(t=e._isUTC?yt(e._a):Ae(e._a),this._isDSTShifted=this.isValid()&&b0(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function T0(){return this.isValid()?!this._isUTC:!1}function D0(){return this.isValid()?this._isUTC:!1}function dc(){return this.isValid()?this._isUTC&&this._offset===0:!1}var P0=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,M0=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function _t(e,t){var r=e,i=null,n,s,o;return un(e)?r={ms:e._milliseconds,d:e._days,M:e._months}:It(e)||!isNaN(+e)?(r={},t?r[t]=+e:r.milliseconds=+e):(i=P0.exec(e))?(n=i[1]==="-"?-1:1,r={y:0,d:de(i[bt])*n,h:de(i[Ye])*n,m:de(i[ct])*n,s:de(i[Dt])*n,ms:de(ho(i[ir]*1e3))*n}):(i=M0.exec(e))?(n=i[1]==="-"?-1:1,r={y:er(i[2],n),M:er(i[3],n),w:er(i[4],n),d:er(i[5],n),h:er(i[6],n),m:er(i[7],n),s:er(i[8],n)}):r==null?r={}:typeof r=="object"&&("from"in r||"to"in r)&&(o=O0(Ae(r.from),Ae(r.to)),r={},r.ms=o.milliseconds,r.M=o.months),s=new Kn(r),un(e)&&ve(e,"_locale")&&(s._locale=e._locale),un(e)&&ve(e,"_isValid")&&(s._isValid=e._isValid),s}_t.fn=Kn.prototype;_t.invalid=g0;function er(e,t){var r=e&&parseFloat(e.replace(",","."));return(isNaN(r)?0:r)*t}function al(e,t){var r={};return r.months=t.month()-e.month()+(t.year()-e.year())*12,e.clone().add(r.months,"M").isAfter(t)&&--r.months,r.milliseconds=+t-+e.clone().add(r.months,"M"),r}function O0(e,t){var r;return e.isValid()&&t.isValid()?(t=na(t,e),e.isBefore(t)?r=al(e,t):(r=al(t,e),r.milliseconds=-r.milliseconds,r.months=-r.months),r):{milliseconds:0,months:0}}function cc(e,t){return function(r,i){var n,s;return i!==null&&!isNaN(+i)&&(Yd(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),s=r,r=i,i=s),n=_t(r,i),hc(this,n,e),this}}function hc(e,t,r,i){var n=t._milliseconds,s=ho(t._days),o=ho(t._months);e.isValid()&&(i=i==null?!0:i,o&&Xd(e,pi(e,"Month")+o*r),s&&jd(e,"Date",pi(e,"Date")+s*r),n&&e._d.setTime(e._d.valueOf()+n*r),i&&G.updateOffset(e,s||o))}var B0=cc(1,"add"),N0=cc(-1,"subtract");function fc(e){return typeof e=="string"||e instanceof String}function I0(e){return pt(e)||Ni(e)||fc(e)||It(e)||F0(e)||L0(e)||e===null||e===void 0}function L0(e){var t=ar(e)&&!Yo(e),r=!1,i=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],n,s,o=i.length;for(n=0;n<o;n+=1)s=i[n],r=r||ve(e,s);return t&&r}function F0(e){var t=ft(e),r=!1;return t&&(r=e.filter(function(i){return!It(i)&&fc(e)}).length===0),t&&r}function H0(e){var t=ar(e)&&!Yo(e),r=!1,i=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],n,s;for(n=0;n<i.length;n+=1)s=i[n],r=r||ve(e,s);return t&&r}function R0(e,t){var r=e.diff(t,"days",!0);return r<-6?"sameElse":r<-1?"lastWeek":r<0?"lastDay":r<1?"sameDay":r<2?"nextDay":r<7?"nextWeek":"sameElse"}function Y0(e,t){arguments.length===1&&(arguments[0]?I0(arguments[0])?(e=arguments[0],t=void 0):H0(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var r=e||Ae(),i=na(r,this).startOf("day"),n=G.calendarFormat(this,i)||"sameElse",s=t&&(wt(t[n])?t[n].call(this,r):t[n]);return this.format(s||this.localeData().calendar(n,this,Ae(r)))}function z0(){return new Ii(this)}function U0(e,t){var r=pt(e)?e:Ae(e);return this.isValid()&&r.isValid()?(t=lt(t)||"millisecond",t==="millisecond"?this.valueOf()>r.valueOf():r.valueOf()<this.clone().startOf(t).valueOf()):!1}function V0(e,t){var r=pt(e)?e:Ae(e);return this.isValid()&&r.isValid()?(t=lt(t)||"millisecond",t==="millisecond"?this.valueOf()<r.valueOf():this.clone().endOf(t).valueOf()<r.valueOf()):!1}function W0(e,t,r,i){var n=pt(e)?e:Ae(e),s=pt(t)?t:Ae(t);return this.isValid()&&n.isValid()&&s.isValid()?(i=i||"()",(i[0]==="("?this.isAfter(n,r):!this.isBefore(n,r))&&(i[1]===")"?this.isBefore(s,r):!this.isAfter(s,r))):!1}function $0(e,t){var r=pt(e)?e:Ae(e),i;return this.isValid()&&r.isValid()?(t=lt(t)||"millisecond",t==="millisecond"?this.valueOf()===r.valueOf():(i=r.valueOf(),this.clone().startOf(t).valueOf()<=i&&i<=this.clone().endOf(t).valueOf())):!1}function G0(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function j0(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function q0(e,t,r){var i,n,s;if(!this.isValid())return NaN;if(i=na(e,this),!i.isValid())return NaN;switch(n=(i.utcOffset()-this.utcOffset())*6e4,t=lt(t),t){case"year":s=dn(this,i)/12;break;case"month":s=dn(this,i);break;case"quarter":s=dn(this,i)/3;break;case"second":s=(this-i)/1e3;break;case"minute":s=(this-i)/6e4;break;case"hour":s=(this-i)/36e5;break;case"day":s=(this-i-n)/864e5;break;case"week":s=(this-i-n)/6048e5;break;default:s=this-i}return r?s:st(s)}function dn(e,t){if(e.date()<t.date())return-dn(t,e);var r=(t.year()-e.year())*12+(t.month()-e.month()),i=e.clone().add(r,"months"),n,s;return t-i<0?(n=e.clone().add(r-1,"months"),s=(t-i)/(i-n)):(n=e.clone().add(r+1,"months"),s=(t-i)/(n-i)),-(r+s)||0}G.defaultFormat="YYYY-MM-DDTHH:mm:ssZ";G.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function Z0(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function X0(e){if(!this.isValid())return null;var t=e!==!0,r=t?this.clone().utc():this;return r.year()<0||r.year()>9999?ln(r,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):wt(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",ln(r,"Z")):ln(r,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function J0(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",r,i,n,s;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z"),r="["+e+'("]',i=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",n="-MM-DD[T]HH:mm:ss.SSS",s=t+'[")]',this.format(r+i+n+s)}function K0(e){e||(e=this.isUtc()?G.defaultFormatUtc:G.defaultFormat);var t=ln(this,e);return this.localeData().postformat(t)}function Q0(e,t){return this.isValid()&&(pt(e)&&e.isValid()||Ae(e).isValid())?_t({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function eg(e){return this.from(Ae(),e)}function tg(e,t){return this.isValid()&&(pt(e)&&e.isValid()||Ae(e).isValid())?_t({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function rg(e){return this.to(Ae(),e)}function pc(e){var t;return e===void 0?this._locale._abbr:(t=Ht(e),t!=null&&(this._locale=t),this)}var mc=at("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return e===void 0?this.localeData():this.locale(e)});function _c(){return this._locale}var yn=1e3,Ar=60*yn,wn=60*Ar,gc=(365*400+97)*24*wn;function Tr(e,t){return(e%t+t)%t}function bc(e,t,r){return e<100&&e>=0?new Date(e+400,t,r)-gc:new Date(e,t,r).valueOf()}function vc(e,t,r){return e<100&&e>=0?Date.UTC(e+400,t,r)-gc:Date.UTC(e,t,r)}function ig(e){var t,r;if(e=lt(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(r=this._isUTC?vc:bc,e){case"year":t=r(this.year(),0,1);break;case"quarter":t=r(this.year(),this.month()-this.month()%3,1);break;case"month":t=r(this.year(),this.month(),1);break;case"week":t=r(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=r(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=r(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=Tr(t+(this._isUTC?0:this.utcOffset()*Ar),wn);break;case"minute":t=this._d.valueOf(),t-=Tr(t,Ar);break;case"second":t=this._d.valueOf(),t-=Tr(t,yn);break}return this._d.setTime(t),G.updateOffset(this,!0),this}function ng(e){var t,r;if(e=lt(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(r=this._isUTC?vc:bc,e){case"year":t=r(this.year()+1,0,1)-1;break;case"quarter":t=r(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=r(this.year(),this.month()+1,1)-1;break;case"week":t=r(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=r(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=r(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=wn-Tr(t+(this._isUTC?0:this.utcOffset()*Ar),wn)-1;break;case"minute":t=this._d.valueOf(),t+=Ar-Tr(t,Ar)-1;break;case"second":t=this._d.valueOf(),t+=yn-Tr(t,yn)-1;break}return this._d.setTime(t),G.updateOffset(this,!0),this}function sg(){return this._d.valueOf()-(this._offset||0)*6e4}function og(){return Math.floor(this.valueOf()/1e3)}function ag(){return new Date(this.valueOf())}function lg(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function ug(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function dg(){return this.isValid()?this.toISOString():null}function cg(){return zo(this)}function hg(){return Gt({},se(this))}function fg(){return se(this).overflow}function pg(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}te("N",0,0,"eraAbbr");te("NN",0,0,"eraAbbr");te("NNN",0,0,"eraAbbr");te("NNNN",0,0,"eraName");te("NNNNN",0,0,"eraNarrow");te("y",["y",1],"yo","eraYear");te("y",["yy",2],0,"eraYear");te("y",["yyy",3],0,"eraYear");te("y",["yyyy",4],0,"eraYear");X("N",sa);X("NN",sa);X("NNN",sa);X("NNNN",kg);X("NNNNN",Sg);Ee(["N","NN","NNN","NNNN","NNNNN"],function(e,t,r,i){var n=r._locale.erasParse(e,i,r._strict);n?se(r).era=n:se(r).invalidEra=e});X("y",Wr);X("yy",Wr);X("yyy",Wr);X("yyyy",Wr);X("yo",Ag);Ee(["y","yy","yyy","yyyy"],Ge);Ee(["yo"],function(e,t,r,i){var n;r._locale._eraYearOrdinalRegex&&(n=e.match(r._locale._eraYearOrdinalRegex)),r._locale.eraYearOrdinalParse?t[Ge]=r._locale.eraYearOrdinalParse(e,n):t[Ge]=parseInt(e,10)});function mg(e,t){var r,i,n,s=this._eras||Ht("en")._eras;for(r=0,i=s.length;r<i;++r){switch(typeof s[r].since){case"string":n=G(s[r].since).startOf("day"),s[r].since=n.valueOf();break}switch(typeof s[r].until){case"undefined":s[r].until=1/0;break;case"string":n=G(s[r].until).startOf("day").valueOf(),s[r].until=n.valueOf();break}}return s}function _g(e,t,r){var i,n,s=this.eras(),o,a,l;for(e=e.toUpperCase(),i=0,n=s.length;i<n;++i)if(o=s[i].name.toUpperCase(),a=s[i].abbr.toUpperCase(),l=s[i].narrow.toUpperCase(),r)switch(t){case"N":case"NN":case"NNN":if(a===e)return s[i];break;case"NNNN":if(o===e)return s[i];break;case"NNNNN":if(l===e)return s[i];break}else if([o,a,l].indexOf(e)>=0)return s[i]}function gg(e,t){var r=e.since<=e.until?1:-1;return t===void 0?G(e.since).year():G(e.since).year()+(t-e.offset)*r}function bg(){var e,t,r,i=this.localeData().eras();for(e=0,t=i.length;e<t;++e)if(r=this.clone().startOf("day").valueOf(),i[e].since<=r&&r<=i[e].until||i[e].until<=r&&r<=i[e].since)return i[e].name;return""}function vg(){var e,t,r,i=this.localeData().eras();for(e=0,t=i.length;e<t;++e)if(r=this.clone().startOf("day").valueOf(),i[e].since<=r&&r<=i[e].until||i[e].until<=r&&r<=i[e].since)return i[e].narrow;return""}function yg(){var e,t,r,i=this.localeData().eras();for(e=0,t=i.length;e<t;++e)if(r=this.clone().startOf("day").valueOf(),i[e].since<=r&&r<=i[e].until||i[e].until<=r&&r<=i[e].since)return i[e].abbr;return""}function wg(){var e,t,r,i,n=this.localeData().eras();for(e=0,t=n.length;e<t;++e)if(r=n[e].since<=n[e].until?1:-1,i=this.clone().startOf("day").valueOf(),n[e].since<=i&&i<=n[e].until||n[e].until<=i&&i<=n[e].since)return(this.year()-G(n[e].since).year())*r+n[e].offset;return this.year()}function Cg(e){return ve(this,"_erasNameRegex")||oa.call(this),e?this._erasNameRegex:this._erasRegex}function xg(e){return ve(this,"_erasAbbrRegex")||oa.call(this),e?this._erasAbbrRegex:this._erasRegex}function Eg(e){return ve(this,"_erasNarrowRegex")||oa.call(this),e?this._erasNarrowRegex:this._erasRegex}function sa(e,t){return t.erasAbbrRegex(e)}function kg(e,t){return t.erasNameRegex(e)}function Sg(e,t){return t.erasNarrowRegex(e)}function Ag(e,t){return t._eraYearOrdinalRegex||Wr}function oa(){var e=[],t=[],r=[],i=[],n,s,o,a,l,u=this.eras();for(n=0,s=u.length;n<s;++n)o=Ot(u[n].name),a=Ot(u[n].abbr),l=Ot(u[n].narrow),t.push(o),e.push(a),r.push(l),i.push(o),i.push(a),i.push(l);this._erasRegex=new RegExp("^("+i.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+t.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+e.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+r.join("|")+")","i")}te(0,["gg",2],0,function(){return this.weekYear()%100});te(0,["GG",2],0,function(){return this.isoWeekYear()%100});function Qn(e,t){te(0,[e,e.length],0,t)}Qn("gggg","weekYear");Qn("ggggg","weekYear");Qn("GGGG","isoWeekYear");Qn("GGGGG","isoWeekYear");X("G",qn);X("g",qn);X("GG",Te,rt);X("gg",Te,rt);X("GGGG",jo,Go);X("gggg",jo,Go);X("GGGGG",jn,$n);X("ggggg",jn,$n);Fi(["gggg","ggggg","GGGG","GGGGG"],function(e,t,r,i){t[i.substr(0,2)]=de(e)});Fi(["gg","GG"],function(e,t,r,i){t[i]=G.parseTwoDigitYear(e)});function Tg(e){return yc.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function Dg(e){return yc.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function Pg(){return Bt(this.year(),1,4)}function Mg(){return Bt(this.isoWeekYear(),1,4)}function Og(){var e=this.localeData()._week;return Bt(this.year(),e.dow,e.doy)}function Bg(){var e=this.localeData()._week;return Bt(this.weekYear(),e.dow,e.doy)}function yc(e,t,r,i,n){var s;return e==null?_i(this,i,n).year:(s=Bt(e,i,n),t>s&&(t=s),Ng.call(this,e,t,r,i,n))}function Ng(e,t,r,i,n){var s=Qd(e,t,r,i,n),o=mi(s.year,0,s.dayOfYear);return this.year(o.getUTCFullYear()),this.month(o.getUTCMonth()),this.date(o.getUTCDate()),this}te("Q",0,"Qo","quarter");X("Q",Ud);Ee("Q",function(e,t){t[Tt]=(de(e)-1)*3});function Ig(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}te("D",["DD",2],"Do","date");X("D",Te,$r);X("DD",Te,rt);X("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient});Ee(["D","DD"],bt);Ee("Do",function(e,t){t[bt]=de(e.match(Te)[0])});var wc=Gr("Date",!0);te("DDD",["DDDD",3],"DDDo","dayOfYear");X("DDD",Gn);X("DDDD",Vd);Ee(["DDD","DDDD"],function(e,t,r){r._dayOfYear=de(e)});function Lg(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}te("m",["mm",2],0,"minute");X("m",Te,qo);X("mm",Te,rt);Ee(["m","mm"],ct);var Fg=Gr("Minutes",!1);te("s",["ss",2],0,"second");X("s",Te,qo);X("ss",Te,rt);Ee(["s","ss"],Dt);var Hg=Gr("Seconds",!1);te("S",0,0,function(){return~~(this.millisecond()/100)});te(0,["SS",2],0,function(){return~~(this.millisecond()/10)});te(0,["SSS",3],0,"millisecond");te(0,["SSSS",4],0,function(){return this.millisecond()*10});te(0,["SSSSS",5],0,function(){return this.millisecond()*100});te(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3});te(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4});te(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5});te(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6});X("S",Gn,Ud);X("SS",Gn,rt);X("SSS",Gn,Vd);var jt,Cc;for(jt="SSSS";jt.length<=9;jt+="S")X(jt,Wr);function Rg(e,t){t[ir]=de(("0."+e)*1e3)}for(jt="S";jt.length<=9;jt+="S")Ee(jt,Rg);Cc=Gr("Milliseconds",!1);te("z",0,0,"zoneAbbr");te("zz",0,0,"zoneName");function Yg(){return this._isUTC?"UTC":""}function zg(){return this._isUTC?"Coordinated Universal Time":""}var F=Ii.prototype;F.add=B0;F.calendar=Y0;F.clone=z0;F.diff=q0;F.endOf=ng;F.format=K0;F.from=Q0;F.fromNow=eg;F.to=tg;F.toNow=rg;F.get=Jm;F.invalidAt=fg;F.isAfter=U0;F.isBefore=V0;F.isBetween=W0;F.isSame=$0;F.isSameOrAfter=G0;F.isSameOrBefore=j0;F.isValid=cg;F.lang=mc;F.locale=pc;F.localeData=_c;F.max=c0;F.min=d0;F.parsingFlags=hg;F.set=Km;F.startOf=ig;F.subtract=N0;F.toArray=lg;F.toObject=ug;F.toDate=ag;F.toISOString=X0;F.inspect=J0;typeof Symbol!="undefined"&&Symbol.for!=null&&(F[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});F.toJSON=dg;F.toString=Z0;F.unix=og;F.valueOf=sg;F.creationData=pg;F.eraName=bg;F.eraNarrow=vg;F.eraAbbr=yg;F.eraYear=wg;F.year=Gd;F.isLeapYear=Xm;F.weekYear=Tg;F.isoWeekYear=Dg;F.quarter=F.quarters=Ig;F.month=Jd;F.daysInMonth=a_;F.week=F.weeks=m_;F.isoWeek=F.isoWeeks=__;F.weeksInYear=Og;F.weeksInWeekYear=Bg;F.isoWeeksInYear=Pg;F.isoWeeksInISOWeekYear=Mg;F.date=wc;F.day=F.days=D_;F.weekday=P_;F.isoWeekday=M_;F.dayOfYear=Lg;F.hour=F.hours=H_;F.minute=F.minutes=Fg;F.second=F.seconds=Hg;F.millisecond=F.milliseconds=Cc;F.utcOffset=y0;F.utc=C0;F.local=x0;F.parseZone=E0;F.hasAlignedHourOffset=k0;F.isDST=S0;F.isLocal=T0;F.isUtcOffset=D0;F.isUtc=dc;F.isUTC=dc;F.zoneAbbr=Yg;F.zoneName=zg;F.dates=at("dates accessor is deprecated. Use date instead.",wc);F.months=at("months accessor is deprecated. Use month instead",Jd);F.years=at("years accessor is deprecated. Use year instead",Gd);F.zone=at("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",w0);F.isDSTShifted=at("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",A0);function Ug(e){return Ae(e*1e3)}function Vg(){return Ae.apply(null,arguments).parseZone()}function xc(e){return e}var ye=Vo.prototype;ye.calendar=Tm;ye.longDateFormat=Om;ye.invalidDate=Nm;ye.ordinal=Fm;ye.preparse=xc;ye.postformat=xc;ye.relativeTime=Rm;ye.pastFuture=Ym;ye.set=Sm;ye.eras=mg;ye.erasParse=_g;ye.erasConvertYear=gg;ye.erasAbbrRegex=xg;ye.erasNameRegex=Cg;ye.erasNarrowRegex=Eg;ye.months=i_;ye.monthsShort=n_;ye.monthsParse=o_;ye.monthsRegex=u_;ye.monthsShortRegex=l_;ye.week=c_;ye.firstDayOfYear=p_;ye.firstDayOfWeek=f_;ye.weekdays=E_;ye.weekdaysMin=S_;ye.weekdaysShort=k_;ye.weekdaysParse=T_;ye.weekdaysRegex=O_;ye.weekdaysShortRegex=B_;ye.weekdaysMinRegex=N_;ye.isPM=L_;ye.meridiem=R_;function Cn(e,t,r,i){var n=Ht(),s=yt().set(i,t);return n[r](s,e)}function Ec(e,t,r){if(It(e)&&(t=e,e=void 0),e=e||"",t!=null)return Cn(e,t,r,"month");var i,n=[];for(i=0;i<12;i++)n[i]=Cn(e,i,r,"month");return n}function aa(e,t,r,i){typeof e=="boolean"?(It(t)&&(r=t,t=void 0),t=t||""):(t=e,r=t,e=!1,It(t)&&(r=t,t=void 0),t=t||"");var n=Ht(),s=e?n._week.dow:0,o,a=[];if(r!=null)return Cn(t,(r+s)%7,i,"day");for(o=0;o<7;o++)a[o]=Cn(t,(o+s)%7,i,"day");return a}function Wg(e,t){return Ec(e,t,"months")}function $g(e,t){return Ec(e,t,"monthsShort")}function Gg(e,t,r){return aa(e,t,r,"weekdays")}function jg(e,t,r){return aa(e,t,r,"weekdaysShort")}function qg(e,t,r){return aa(e,t,r,"weekdaysMin")}qt("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,r=de(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+r}});G.lang=at("moment.lang is deprecated. Use moment.locale instead.",qt);G.langData=at("moment.langData is deprecated. Use moment.localeData instead.",Ht);var xt=Math.abs;function Zg(){var e=this._data;return this._milliseconds=xt(this._milliseconds),this._days=xt(this._days),this._months=xt(this._months),e.milliseconds=xt(e.milliseconds),e.seconds=xt(e.seconds),e.minutes=xt(e.minutes),e.hours=xt(e.hours),e.months=xt(e.months),e.years=xt(e.years),this}function kc(e,t,r,i){var n=_t(t,r);return e._milliseconds+=i*n._milliseconds,e._days+=i*n._days,e._months+=i*n._months,e._bubble()}function Xg(e,t){return kc(this,e,t,1)}function Jg(e,t){return kc(this,e,t,-1)}function ll(e){return e<0?Math.floor(e):Math.ceil(e)}function Kg(){var e=this._milliseconds,t=this._days,r=this._months,i=this._data,n,s,o,a,l;return e>=0&&t>=0&&r>=0||e<=0&&t<=0&&r<=0||(e+=ll(po(r)+t)*864e5,t=0,r=0),i.milliseconds=e%1e3,n=st(e/1e3),i.seconds=n%60,s=st(n/60),i.minutes=s%60,o=st(s/60),i.hours=o%24,t+=st(o/24),l=st(Sc(t)),r+=l,t-=ll(po(l)),a=st(r/12),r%=12,i.days=t,i.months=r,i.years=a,this}function Sc(e){return e*4800/146097}function po(e){return e*146097/4800}function Qg(e){if(!this.isValid())return NaN;var t,r,i=this._milliseconds;if(e=lt(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+i/864e5,r=this._months+Sc(t),e){case"month":return r;case"quarter":return r/3;case"year":return r/12}else switch(t=this._days+Math.round(po(this._months)),e){case"week":return t/7+i/6048e5;case"day":return t+i/864e5;case"hour":return t*24+i/36e5;case"minute":return t*1440+i/6e4;case"second":return t*86400+i/1e3;case"millisecond":return Math.floor(t*864e5)+i;default:throw new Error("Unknown unit "+e)}}function Rt(e){return function(){return this.as(e)}}var Ac=Rt("ms"),eb=Rt("s"),tb=Rt("m"),rb=Rt("h"),ib=Rt("d"),nb=Rt("w"),sb=Rt("M"),ob=Rt("Q"),ab=Rt("y"),lb=Ac;function ub(){return _t(this)}function db(e){return e=lt(e),this.isValid()?this[e+"s"]():NaN}function cr(e){return function(){return this.isValid()?this._data[e]:NaN}}var cb=cr("milliseconds"),hb=cr("seconds"),fb=cr("minutes"),pb=cr("hours"),mb=cr("days"),_b=cr("months"),gb=cr("years");function bb(){return st(this.days()/7)}var St=Math.round,xr={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function vb(e,t,r,i,n){return n.relativeTime(t||1,!!r,e,i)}function yb(e,t,r,i){var n=_t(e).abs(),s=St(n.as("s")),o=St(n.as("m")),a=St(n.as("h")),l=St(n.as("d")),u=St(n.as("M")),d=St(n.as("w")),c=St(n.as("y")),h=s<=r.ss&&["s",s]||s<r.s&&["ss",s]||o<=1&&["m"]||o<r.m&&["mm",o]||a<=1&&["h"]||a<r.h&&["hh",a]||l<=1&&["d"]||l<r.d&&["dd",l];return r.w!=null&&(h=h||d<=1&&["w"]||d<r.w&&["ww",d]),h=h||u<=1&&["M"]||u<r.M&&["MM",u]||c<=1&&["y"]||["yy",c],h[2]=t,h[3]=+e>0,h[4]=i,vb.apply(null,h)}function wb(e){return e===void 0?St:typeof e=="function"?(St=e,!0):!1}function Cb(e,t){return xr[e]===void 0?!1:t===void 0?xr[e]:(xr[e]=t,e==="s"&&(xr.ss=t-1),!0)}function xb(e,t){if(!this.isValid())return this.localeData().invalidDate();var r=!1,i=xr,n,s;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(r=e),typeof t=="object"&&(i=Object.assign({},xr,t),t.s!=null&&t.ss==null&&(i.ss=t.s-1)),n=this.localeData(),s=yb(this,!r,i,n),r&&(s=n.pastFuture(+this,s)),n.postformat(s)}var Ss=Math.abs;function br(e){return(e>0)-(e<0)||+e}function es(){if(!this.isValid())return this.localeData().invalidDate();var e=Ss(this._milliseconds)/1e3,t=Ss(this._days),r=Ss(this._months),i,n,s,o,a=this.asSeconds(),l,u,d,c;return a?(i=st(e/60),n=st(i/60),e%=60,i%=60,s=st(r/12),r%=12,o=e?e.toFixed(3).replace(/\.?0+$/,""):"",l=a<0?"-":"",u=br(this._months)!==br(a)?"-":"",d=br(this._days)!==br(a)?"-":"",c=br(this._milliseconds)!==br(a)?"-":"",l+"P"+(s?u+s+"Y":"")+(r?u+r+"M":"")+(t?d+t+"D":"")+(n||i||e?"T":"")+(n?c+n+"H":"")+(i?c+i+"M":"")+(e?c+o+"S":"")):"P0D"}var pe=Kn.prototype;pe.isValid=_0;pe.abs=Zg;pe.add=Xg;pe.subtract=Jg;pe.as=Qg;pe.asMilliseconds=Ac;pe.asSeconds=eb;pe.asMinutes=tb;pe.asHours=rb;pe.asDays=ib;pe.asWeeks=nb;pe.asMonths=sb;pe.asQuarters=ob;pe.asYears=ab;pe.valueOf=lb;pe._bubble=Kg;pe.clone=ub;pe.get=db;pe.milliseconds=cb;pe.seconds=hb;pe.minutes=fb;pe.hours=pb;pe.days=mb;pe.weeks=bb;pe.months=_b;pe.years=gb;pe.humanize=xb;pe.toISOString=es;pe.toString=es;pe.toJSON=es;pe.locale=pc;pe.localeData=_c;pe.toIsoString=at("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",es);pe.lang=mc;te("X",0,0,"unix");te("x",0,0,"valueOf");X("x",qn);X("X",Wm);Ee("X",function(e,t,r){r._d=new Date(parseFloat(e)*1e3)});Ee("x",function(e,t,r){r._d=new Date(de(e))});//! moment.js
|
|
14
|
-
G.version="2.
|
|
26
|
+
`+new Error().stack),r=!1}return t.apply(this,arguments)},t)}var ll={};function Wd(e,t){G.deprecationHandler!=null&&G.deprecationHandler(e,t),ll[e]||(Ud(t),ll[e]=!0)}G.suppressDeprecationWarnings=!1;G.deprecationHandler=null;function Et(e){return typeof Function!="undefined"&&e instanceof Function||Object.prototype.toString.call(e)==="[object Function]"}function Tm(e){var t,r;for(r in e)ve(e,r)&&(t=e[r],Et(t)?this[r]=t:this["_"+r]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function ho(e,t){var r=Gt({},e),i;for(i in t)ve(t,i)&&(lr(e[i])&&lr(t[i])?(r[i]={},Gt(r[i],e[i]),Gt(r[i],t[i])):t[i]!=null?r[i]=t[i]:delete r[i]);for(i in e)ve(e,i)&&!ve(t,i)&&lr(e[i])&&(r[i]=Gt({},r[i]));return r}function qo(e){e!=null&&this.set(e)}var fo;Object.keys?fo=Object.keys:fo=function(e){var t,r=[];for(t in e)ve(e,t)&&r.push(t);return r};var Pm={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function Dm(e,t,r){var i=this._calendar[e]||this._calendar.sameElse;return Et(i)?i.call(t,r):i}function wt(e,t,r){var i=""+Math.abs(e),n=t-i.length,s=e>=0;return(s?r?"+":"":"-")+Math.pow(10,Math.max(0,n)).toString().substr(1)+i}var Zo=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,Zi=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,As={},Ar={};function te(e,t,r,i){var n=i;typeof i=="string"&&(n=function(){return this[i]()}),e&&(Ar[e]=n),t&&(Ar[t[0]]=function(){return wt(n.apply(this,arguments),t[1],t[2])}),r&&(Ar[r]=function(){return this.localeData().ordinal(n.apply(this,arguments),e)})}function Mm(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function Om(e){var t=e.match(Zo),r,i;for(r=0,i=t.length;r<i;r++)Ar[t[r]]?t[r]=Ar[t[r]]:t[r]=Mm(t[r]);return function(n){var s="",o;for(o=0;o<i;o++)s+=Et(t[o])?t[o].call(n,e):t[o];return s}}function ln(e,t){return e.isValid()?(t=$d(t,e.localeData()),As[t]=As[t]||Om(t),As[t](e)):e.localeData().invalidDate()}function $d(e,t){var r=5;function i(n){return t.longDateFormat(n)||n}for(Zi.lastIndex=0;r>=0&&Zi.test(e);)e=e.replace(Zi,i),Zi.lastIndex=0,r-=1;return e}var Bm={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function Nm(e){var t=this._longDateFormat[e],r=this._longDateFormat[e.toUpperCase()];return t||!r?t:(this._longDateFormat[e]=r.match(Zo).map(function(i){return i==="MMMM"||i==="MM"||i==="DD"||i==="dddd"?i.slice(1):i}).join(""),this._longDateFormat[e])}var Im="Invalid date";function Lm(){return this._invalidDate}var Fm="%d",Rm=/\d{1,2}/;function Hm(e){return this._ordinal.replace("%d",e)}var zm={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function Ym(e,t,r,i){var n=this._relativeTime[r];return Et(n)?n(e,t,r,i):n.replace(/%d/i,e)}function Um(e,t){var r=this._relativeTime[e>0?"future":"past"];return Et(r)?r(t):r.replace(/%s/i,t)}var ai={};function qe(e,t){var r=e.toLowerCase();ai[r]=ai[r+"s"]=ai[t]=e}function dt(e){return typeof e=="string"?ai[e]||ai[e.toLowerCase()]:void 0}function Ko(e){var t={},r,i;for(i in e)ve(e,i)&&(r=dt(i),r&&(t[r]=e[i]));return t}var Vd={};function Ze(e,t){Vd[e]=t}function Wm(e){var t=[],r;for(r in e)ve(e,r)&&t.push({unit:r,priority:Vd[r]});return t.sort(function(i,n){return i.priority-n.priority}),t}function Gn(e){return e%4===0&&e%100!==0||e%400===0}function lt(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function ue(e){var t=+e,r=0;return t!==0&&isFinite(t)&&(r=lt(t)),r}function Vr(e,t){return function(r){return r!=null?(Gd(this,e,r),G.updateOffset(this,t),this):bn(this,e)}}function bn(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function Gd(e,t,r){e.isValid()&&!isNaN(r)&&(t==="FullYear"&&Gn(e.year())&&e.month()===1&&e.date()===29?(r=ue(r),e._d["set"+(e._isUTC?"UTC":"")+t](r,e.month(),Jn(r,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](r))}function $m(e){return e=dt(e),Et(this[e])?this[e]():this}function Vm(e,t){if(typeof e=="object"){e=Ko(e);var r=Wm(e),i,n=r.length;for(i=0;i<n;i++)this[r[i].unit](e[r[i].unit])}else if(e=dt(e),Et(this[e]))return this[e](t);return this}var jd=/\d/,st=/\d\d/,qd=/\d{3}/,Xo=/\d{4}/,jn=/[+-]?\d{6}/,Te=/\d\d?/,Zd=/\d\d\d\d?/,Kd=/\d\d\d\d\d\d?/,qn=/\d{1,3}/,Jo=/\d{1,4}/,Zn=/[+-]?\d{1,6}/,Gr=/\d+/,Kn=/[+-]?\d+/,Gm=/Z|[+-]\d\d:?\d\d/gi,Xn=/Z|[+-]\d\d(?::?\d\d)?/gi,jm=/[+-]?\d+(\.\d{1,3})?/,Li=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,vn;vn={};function K(e,t,r){vn[e]=Et(t)?t:function(i,n){return i&&r?r:t}}function qm(e,t){return ve(vn,e)?vn[e](t._strict,t._locale):new RegExp(Zm(e))}function Zm(e){return nt(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,r,i,n,s){return r||i||n||s}))}function nt(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var po={};function xe(e,t){var r,i=t,n;for(typeof e=="string"&&(e=[e]),Lt(t)&&(i=function(s,o){o[t]=ue(s)}),n=e.length,r=0;r<n;r++)po[e[r]]=i}function Fi(e,t){xe(e,function(r,i,n,s){n._w=n._w||{},t(r,n._w,n,s)})}function Km(e,t,r){t!=null&&ve(po,e)&&po[e](t,r._a,r,e)}var Ge=0,Pt=1,yt=2,ze=3,ft=4,Dt=5,nr=6,Xm=7,Jm=8;function Qm(e,t){return(e%t+t)%t}var Ne;Array.prototype.indexOf?Ne=Array.prototype.indexOf:Ne=function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1};function Jn(e,t){if(isNaN(e)||isNaN(t))return NaN;var r=Qm(t,12);return e+=(t-r)/12,r===1?Gn(e)?29:28:31-r%7%2}te("M",["MM",2],"Mo",function(){return this.month()+1});te("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)});te("MMMM",0,0,function(e){return this.localeData().months(this,e)});qe("month","M");Ze("month",8);K("M",Te);K("MM",Te,st);K("MMM",function(e,t){return t.monthsShortRegex(e)});K("MMMM",function(e,t){return t.monthsRegex(e)});xe(["M","MM"],function(e,t){t[Pt]=ue(e)-1});xe(["MMM","MMMM"],function(e,t,r,i){var n=r._locale.monthsParse(e,i,r._strict);n!=null?t[Pt]=n:se(r).invalidMonth=e});var e_="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Xd="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Jd=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,t_=Li,r_=Li;function i_(e,t){return e?mt(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||Jd).test(t)?"format":"standalone"][e.month()]:mt(this._months)?this._months:this._months.standalone}function n_(e,t){return e?mt(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[Jd.test(t)?"format":"standalone"][e.month()]:mt(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function s_(e,t,r){var i,n,s,o=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],i=0;i<12;++i)s=Ct([2e3,i]),this._shortMonthsParse[i]=this.monthsShort(s,"").toLocaleLowerCase(),this._longMonthsParse[i]=this.months(s,"").toLocaleLowerCase();return r?t==="MMM"?(n=Ne.call(this._shortMonthsParse,o),n!==-1?n:null):(n=Ne.call(this._longMonthsParse,o),n!==-1?n:null):t==="MMM"?(n=Ne.call(this._shortMonthsParse,o),n!==-1?n:(n=Ne.call(this._longMonthsParse,o),n!==-1?n:null)):(n=Ne.call(this._longMonthsParse,o),n!==-1?n:(n=Ne.call(this._shortMonthsParse,o),n!==-1?n:null))}function o_(e,t,r){var i,n,s;if(this._monthsParseExact)return s_.call(this,e,t,r);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),i=0;i<12;i++){if(n=Ct([2e3,i]),r&&!this._longMonthsParse[i]&&(this._longMonthsParse[i]=new RegExp("^"+this.months(n,"").replace(".","")+"$","i"),this._shortMonthsParse[i]=new RegExp("^"+this.monthsShort(n,"").replace(".","")+"$","i")),!r&&!this._monthsParse[i]&&(s="^"+this.months(n,"")+"|^"+this.monthsShort(n,""),this._monthsParse[i]=new RegExp(s.replace(".",""),"i")),r&&t==="MMMM"&&this._longMonthsParse[i].test(e))return i;if(r&&t==="MMM"&&this._shortMonthsParse[i].test(e))return i;if(!r&&this._monthsParse[i].test(e))return i}}function Qd(e,t){var r;if(!e.isValid())return e;if(typeof t=="string"){if(/^\d+$/.test(t))t=ue(t);else if(t=e.localeData().monthsParse(t),!Lt(t))return e}return r=Math.min(e.date(),Jn(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,r),e}function ec(e){return e!=null?(Qd(this,e),G.updateOffset(this,!0),this):bn(this,"Month")}function a_(){return Jn(this.year(),this.month())}function l_(e){return this._monthsParseExact?(ve(this,"_monthsRegex")||tc.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(ve(this,"_monthsShortRegex")||(this._monthsShortRegex=t_),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function u_(e){return this._monthsParseExact?(ve(this,"_monthsRegex")||tc.call(this),e?this._monthsStrictRegex:this._monthsRegex):(ve(this,"_monthsRegex")||(this._monthsRegex=r_),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function tc(){function e(o,a){return a.length-o.length}var t=[],r=[],i=[],n,s;for(n=0;n<12;n++)s=Ct([2e3,n]),t.push(this.monthsShort(s,"")),r.push(this.months(s,"")),i.push(this.months(s,"")),i.push(this.monthsShort(s,""));for(t.sort(e),r.sort(e),i.sort(e),n=0;n<12;n++)t[n]=nt(t[n]),r[n]=nt(r[n]);for(n=0;n<24;n++)i[n]=nt(i[n]);this._monthsRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+t.join("|")+")","i")}te("Y",0,0,function(){var e=this.year();return e<=9999?wt(e,4):"+"+e});te(0,["YY",2],0,function(){return this.year()%100});te(0,["YYYY",4],0,"year");te(0,["YYYYY",5],0,"year");te(0,["YYYYYY",6,!0],0,"year");qe("year","y");Ze("year",1);K("Y",Kn);K("YY",Te,st);K("YYYY",Jo,Xo);K("YYYYY",Zn,jn);K("YYYYYY",Zn,jn);xe(["YYYYY","YYYYYY"],Ge);xe("YYYY",function(e,t){t[Ge]=e.length===2?G.parseTwoDigitYear(e):ue(e)});xe("YY",function(e,t){t[Ge]=G.parseTwoDigitYear(e)});xe("Y",function(e,t){t[Ge]=parseInt(e,10)});function li(e){return Gn(e)?366:365}G.parseTwoDigitYear=function(e){return ue(e)+(ue(e)>68?1900:2e3)};var rc=Vr("FullYear",!0);function d_(){return Gn(this.year())}function c_(e,t,r,i,n,s,o){var a;return e<100&&e>=0?(a=new Date(e+400,t,r,i,n,s,o),isFinite(a.getFullYear())&&a.setFullYear(e)):a=new Date(e,t,r,i,n,s,o),a}function mi(e){var t,r;return e<100&&e>=0?(r=Array.prototype.slice.call(arguments),r[0]=e+400,t=new Date(Date.UTC.apply(null,r)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function yn(e,t,r){var i=7+t-r,n=(7+mi(e,0,i).getUTCDay()-t)%7;return-n+i-1}function ic(e,t,r,i,n){var s=(7+r-i)%7,o=yn(e,i,n),a=1+7*(t-1)+s+o,l,u;return a<=0?(l=e-1,u=li(l)+a):a>li(e)?(l=e+1,u=a-li(e)):(l=e,u=a),{year:l,dayOfYear:u}}function _i(e,t,r){var i=yn(e.year(),t,r),n=Math.floor((e.dayOfYear()-i-1)/7)+1,s,o;return n<1?(o=e.year()-1,s=n+Bt(o,t,r)):n>Bt(e.year(),t,r)?(s=n-Bt(e.year(),t,r),o=e.year()+1):(o=e.year(),s=n),{week:s,year:o}}function Bt(e,t,r){var i=yn(e,t,r),n=yn(e+1,t,r);return(li(e)-i+n)/7}te("w",["ww",2],"wo","week");te("W",["WW",2],"Wo","isoWeek");qe("week","w");qe("isoWeek","W");Ze("week",5);Ze("isoWeek",5);K("w",Te);K("ww",Te,st);K("W",Te);K("WW",Te,st);Fi(["w","ww","W","WW"],function(e,t,r,i){t[i.substr(0,1)]=ue(e)});function h_(e){return _i(e,this._week.dow,this._week.doy).week}var f_={dow:0,doy:6};function p_(){return this._week.dow}function m_(){return this._week.doy}function __(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function g_(e){var t=_i(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}te("d",0,"do","day");te("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)});te("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)});te("dddd",0,0,function(e){return this.localeData().weekdays(this,e)});te("e",0,0,"weekday");te("E",0,0,"isoWeekday");qe("day","d");qe("weekday","e");qe("isoWeekday","E");Ze("day",11);Ze("weekday",11);Ze("isoWeekday",11);K("d",Te);K("e",Te);K("E",Te);K("dd",function(e,t){return t.weekdaysMinRegex(e)});K("ddd",function(e,t){return t.weekdaysShortRegex(e)});K("dddd",function(e,t){return t.weekdaysRegex(e)});Fi(["dd","ddd","dddd"],function(e,t,r,i){var n=r._locale.weekdaysParse(e,i,r._strict);n!=null?t.d=n:se(r).invalidWeekday=e});Fi(["d","e","E"],function(e,t,r,i){t[i]=ue(e)});function b_(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function v_(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function Qo(e,t){return e.slice(t,7).concat(e.slice(0,t))}var y_="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),nc="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),w_="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),C_=Li,E_=Li,x_=Li;function S_(e,t){var r=mt(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?Qo(r,this._week.dow):e?r[e.day()]:r}function k_(e){return e===!0?Qo(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function A_(e){return e===!0?Qo(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function T_(e,t,r){var i,n,s,o=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],i=0;i<7;++i)s=Ct([2e3,1]).day(i),this._minWeekdaysParse[i]=this.weekdaysMin(s,"").toLocaleLowerCase(),this._shortWeekdaysParse[i]=this.weekdaysShort(s,"").toLocaleLowerCase(),this._weekdaysParse[i]=this.weekdays(s,"").toLocaleLowerCase();return r?t==="dddd"?(n=Ne.call(this._weekdaysParse,o),n!==-1?n:null):t==="ddd"?(n=Ne.call(this._shortWeekdaysParse,o),n!==-1?n:null):(n=Ne.call(this._minWeekdaysParse,o),n!==-1?n:null):t==="dddd"?(n=Ne.call(this._weekdaysParse,o),n!==-1||(n=Ne.call(this._shortWeekdaysParse,o),n!==-1)?n:(n=Ne.call(this._minWeekdaysParse,o),n!==-1?n:null)):t==="ddd"?(n=Ne.call(this._shortWeekdaysParse,o),n!==-1||(n=Ne.call(this._weekdaysParse,o),n!==-1)?n:(n=Ne.call(this._minWeekdaysParse,o),n!==-1?n:null)):(n=Ne.call(this._minWeekdaysParse,o),n!==-1||(n=Ne.call(this._weekdaysParse,o),n!==-1)?n:(n=Ne.call(this._shortWeekdaysParse,o),n!==-1?n:null))}function P_(e,t,r){var i,n,s;if(this._weekdaysParseExact)return T_.call(this,e,t,r);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),i=0;i<7;i++){if(n=Ct([2e3,1]).day(i),r&&!this._fullWeekdaysParse[i]&&(this._fullWeekdaysParse[i]=new RegExp("^"+this.weekdays(n,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[i]=new RegExp("^"+this.weekdaysShort(n,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[i]=new RegExp("^"+this.weekdaysMin(n,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[i]||(s="^"+this.weekdays(n,"")+"|^"+this.weekdaysShort(n,"")+"|^"+this.weekdaysMin(n,""),this._weekdaysParse[i]=new RegExp(s.replace(".",""),"i")),r&&t==="dddd"&&this._fullWeekdaysParse[i].test(e))return i;if(r&&t==="ddd"&&this._shortWeekdaysParse[i].test(e))return i;if(r&&t==="dd"&&this._minWeekdaysParse[i].test(e))return i;if(!r&&this._weekdaysParse[i].test(e))return i}}function D_(e){if(!this.isValid())return e!=null?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return e!=null?(e=b_(e,this.localeData()),this.add(e-t,"d")):t}function M_(e){if(!this.isValid())return e!=null?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return e==null?t:this.add(e-t,"d")}function O_(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=v_(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function B_(e){return this._weekdaysParseExact?(ve(this,"_weekdaysRegex")||ea.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(ve(this,"_weekdaysRegex")||(this._weekdaysRegex=C_),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function N_(e){return this._weekdaysParseExact?(ve(this,"_weekdaysRegex")||ea.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(ve(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=E_),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function I_(e){return this._weekdaysParseExact?(ve(this,"_weekdaysRegex")||ea.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(ve(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=x_),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function ea(){function e(d,c){return c.length-d.length}var t=[],r=[],i=[],n=[],s,o,a,l,u;for(s=0;s<7;s++)o=Ct([2e3,1]).day(s),a=nt(this.weekdaysMin(o,"")),l=nt(this.weekdaysShort(o,"")),u=nt(this.weekdays(o,"")),t.push(a),r.push(l),i.push(u),n.push(a),n.push(l),n.push(u);t.sort(e),r.sort(e),i.sort(e),n.sort(e),this._weekdaysRegex=new RegExp("^("+n.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+i.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function ta(){return this.hours()%12||12}function L_(){return this.hours()||24}te("H",["HH",2],0,"hour");te("h",["hh",2],0,ta);te("k",["kk",2],0,L_);te("hmm",0,0,function(){return""+ta.apply(this)+wt(this.minutes(),2)});te("hmmss",0,0,function(){return""+ta.apply(this)+wt(this.minutes(),2)+wt(this.seconds(),2)});te("Hmm",0,0,function(){return""+this.hours()+wt(this.minutes(),2)});te("Hmmss",0,0,function(){return""+this.hours()+wt(this.minutes(),2)+wt(this.seconds(),2)});function sc(e,t){te(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}sc("a",!0);sc("A",!1);qe("hour","h");Ze("hour",13);function oc(e,t){return t._meridiemParse}K("a",oc);K("A",oc);K("H",Te);K("h",Te);K("k",Te);K("HH",Te,st);K("hh",Te,st);K("kk",Te,st);K("hmm",Zd);K("hmmss",Kd);K("Hmm",Zd);K("Hmmss",Kd);xe(["H","HH"],ze);xe(["k","kk"],function(e,t,r){var i=ue(e);t[ze]=i===24?0:i});xe(["a","A"],function(e,t,r){r._isPm=r._locale.isPM(e),r._meridiem=e});xe(["h","hh"],function(e,t,r){t[ze]=ue(e),se(r).bigHour=!0});xe("hmm",function(e,t,r){var i=e.length-2;t[ze]=ue(e.substr(0,i)),t[ft]=ue(e.substr(i)),se(r).bigHour=!0});xe("hmmss",function(e,t,r){var i=e.length-4,n=e.length-2;t[ze]=ue(e.substr(0,i)),t[ft]=ue(e.substr(i,2)),t[Dt]=ue(e.substr(n)),se(r).bigHour=!0});xe("Hmm",function(e,t,r){var i=e.length-2;t[ze]=ue(e.substr(0,i)),t[ft]=ue(e.substr(i))});xe("Hmmss",function(e,t,r){var i=e.length-4,n=e.length-2;t[ze]=ue(e.substr(0,i)),t[ft]=ue(e.substr(i,2)),t[Dt]=ue(e.substr(n))});function F_(e){return(e+"").toLowerCase().charAt(0)==="p"}var R_=/[ap]\.?m?\.?/i,H_=Vr("Hours",!0);function z_(e,t,r){return e>11?r?"pm":"PM":r?"am":"AM"}var ac={calendar:Pm,longDateFormat:Bm,invalidDate:Im,ordinal:Fm,dayOfMonthOrdinalParse:Rm,relativeTime:zm,months:e_,monthsShort:Xd,week:f_,weekdays:y_,weekdaysMin:w_,weekdaysShort:nc,meridiemParse:R_},De={},Xr={},gi;function Y_(e,t){var r,i=Math.min(e.length,t.length);for(r=0;r<i;r+=1)if(e[r]!==t[r])return r;return i}function ul(e){return e&&e.toLowerCase().replace("_","-")}function U_(e){for(var t=0,r,i,n,s;t<e.length;){for(s=ul(e[t]).split("-"),r=s.length,i=ul(e[t+1]),i=i?i.split("-"):null;r>0;){if(n=Qn(s.slice(0,r).join("-")),n)return n;if(i&&i.length>=r&&Y_(s,i)>=r-1)break;r--}t++}return gi}function W_(e){return e.match("^[^/\\\\]*$")!=null}function Qn(e){var t=null,r;if(De[e]===void 0&&typeof module!="undefined"&&module&&module.exports&&W_(e))try{t=gi._abbr,r=Sm,r("./locale/"+e),qt(t)}catch(i){De[e]=null}return De[e]}function qt(e,t){var r;return e&&(et(t)?r=Ht(e):r=ra(e,t),r?gi=r:typeof console!="undefined"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),gi._abbr}function ra(e,t){if(t!==null){var r,i=ac;if(t.abbr=e,De[e]!=null)Wd("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),i=De[e]._config;else if(t.parentLocale!=null)if(De[t.parentLocale]!=null)i=De[t.parentLocale]._config;else if(r=Qn(t.parentLocale),r!=null)i=r._config;else return Xr[t.parentLocale]||(Xr[t.parentLocale]=[]),Xr[t.parentLocale].push({name:e,config:t}),null;return De[e]=new qo(ho(i,t)),Xr[e]&&Xr[e].forEach(function(n){ra(n.name,n.config)}),qt(e),De[e]}else return delete De[e],null}function $_(e,t){if(t!=null){var r,i,n=ac;De[e]!=null&&De[e].parentLocale!=null?De[e].set(ho(De[e]._config,t)):(i=Qn(e),i!=null&&(n=i._config),t=ho(n,t),i==null&&(t.abbr=e),r=new qo(t),r.parentLocale=De[e],De[e]=r),qt(e)}else De[e]!=null&&(De[e].parentLocale!=null?(De[e]=De[e].parentLocale,e===qt()&&qt(e)):De[e]!=null&&delete De[e]);return De[e]}function Ht(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return gi;if(!mt(e)){if(t=Qn(e),t)return t;e=[e]}return U_(e)}function V_(){return fo(De)}function ia(e){var t,r=e._a;return r&&se(e).overflow===-2&&(t=r[Pt]<0||r[Pt]>11?Pt:r[yt]<1||r[yt]>Jn(r[Ge],r[Pt])?yt:r[ze]<0||r[ze]>24||r[ze]===24&&(r[ft]!==0||r[Dt]!==0||r[nr]!==0)?ze:r[ft]<0||r[ft]>59?ft:r[Dt]<0||r[Dt]>59?Dt:r[nr]<0||r[nr]>999?nr:-1,se(e)._overflowDayOfYear&&(t<Ge||t>yt)&&(t=yt),se(e)._overflowWeeks&&t===-1&&(t=Xm),se(e)._overflowWeekday&&t===-1&&(t=Jm),se(e).overflow=t),e}var G_=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,j_=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,q_=/Z|[+-]\d\d(?::?\d\d)?/,Ki=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],Ts=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Z_=/^\/?Date\((-?\d+)/i,K_=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,X_={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function lc(e){var t,r,i=e._i,n=G_.exec(i)||j_.exec(i),s,o,a,l,u=Ki.length,d=Ts.length;if(n){for(se(e).iso=!0,t=0,r=u;t<r;t++)if(Ki[t][1].exec(n[1])){o=Ki[t][0],s=Ki[t][2]!==!1;break}if(o==null){e._isValid=!1;return}if(n[3]){for(t=0,r=d;t<r;t++)if(Ts[t][1].exec(n[3])){a=(n[2]||" ")+Ts[t][0];break}if(a==null){e._isValid=!1;return}}if(!s&&a!=null){e._isValid=!1;return}if(n[4])if(q_.exec(n[4]))l="Z";else{e._isValid=!1;return}e._f=o+(a||"")+(l||""),sa(e)}else e._isValid=!1}function J_(e,t,r,i,n,s){var o=[Q_(e),Xd.indexOf(t),parseInt(r,10),parseInt(i,10),parseInt(n,10)];return s&&o.push(parseInt(s,10)),o}function Q_(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function e0(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function t0(e,t,r){if(e){var i=nc.indexOf(e),n=new Date(t[0],t[1],t[2]).getDay();if(i!==n)return se(r).weekdayMismatch=!0,r._isValid=!1,!1}return!0}function r0(e,t,r){if(e)return X_[e];if(t)return 0;var i=parseInt(r,10),n=i%100,s=(i-n)/100;return s*60+n}function uc(e){var t=K_.exec(e0(e._i)),r;if(t){if(r=J_(t[4],t[3],t[2],t[5],t[6],t[7]),!t0(t[1],r,e))return;e._a=r,e._tzm=r0(t[8],t[9],t[10]),e._d=mi.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),se(e).rfc2822=!0}else e._isValid=!1}function i0(e){var t=Z_.exec(e._i);if(t!==null){e._d=new Date(+t[1]);return}if(lc(e),e._isValid===!1)delete e._isValid;else return;if(uc(e),e._isValid===!1)delete e._isValid;else return;e._strict?e._isValid=!1:G.createFromInputFallback(e)}G.createFromInputFallback=ut("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))});function Cr(e,t,r){return e!=null?e:t!=null?t:r}function n0(e){var t=new Date(G.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function na(e){var t,r,i=[],n,s,o;if(!e._d){for(n=n0(e),e._w&&e._a[yt]==null&&e._a[Pt]==null&&s0(e),e._dayOfYear!=null&&(o=Cr(e._a[Ge],n[Ge]),(e._dayOfYear>li(o)||e._dayOfYear===0)&&(se(e)._overflowDayOfYear=!0),r=mi(o,0,e._dayOfYear),e._a[Pt]=r.getUTCMonth(),e._a[yt]=r.getUTCDate()),t=0;t<3&&e._a[t]==null;++t)e._a[t]=i[t]=n[t];for(;t<7;t++)e._a[t]=i[t]=e._a[t]==null?t===2?1:0:e._a[t];e._a[ze]===24&&e._a[ft]===0&&e._a[Dt]===0&&e._a[nr]===0&&(e._nextDay=!0,e._a[ze]=0),e._d=(e._useUTC?mi:c_).apply(null,i),s=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[ze]=24),e._w&&typeof e._w.d!="undefined"&&e._w.d!==s&&(se(e).weekdayMismatch=!0)}}function s0(e){var t,r,i,n,s,o,a,l,u;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(s=1,o=4,r=Cr(t.GG,e._a[Ge],_i(Ae(),1,4).year),i=Cr(t.W,1),n=Cr(t.E,1),(n<1||n>7)&&(l=!0)):(s=e._locale._week.dow,o=e._locale._week.doy,u=_i(Ae(),s,o),r=Cr(t.gg,e._a[Ge],u.year),i=Cr(t.w,u.week),t.d!=null?(n=t.d,(n<0||n>6)&&(l=!0)):t.e!=null?(n=t.e+s,(t.e<0||t.e>6)&&(l=!0)):n=s),i<1||i>Bt(r,s,o)?se(e)._overflowWeeks=!0:l!=null?se(e)._overflowWeekday=!0:(a=ic(r,i,n,s,o),e._a[Ge]=a.year,e._dayOfYear=a.dayOfYear)}G.ISO_8601=function(){};G.RFC_2822=function(){};function sa(e){if(e._f===G.ISO_8601){lc(e);return}if(e._f===G.RFC_2822){uc(e);return}e._a=[],se(e).empty=!0;var t=""+e._i,r,i,n,s,o,a=t.length,l=0,u,d;for(n=$d(e._f,e._locale).match(Zo)||[],d=n.length,r=0;r<d;r++)s=n[r],i=(t.match(qm(s,e))||[])[0],i&&(o=t.substr(0,t.indexOf(i)),o.length>0&&se(e).unusedInput.push(o),t=t.slice(t.indexOf(i)+i.length),l+=i.length),Ar[s]?(i?se(e).empty=!1:se(e).unusedTokens.push(s),Km(s,i,e)):e._strict&&!i&&se(e).unusedTokens.push(s);se(e).charsLeftOver=a-l,t.length>0&&se(e).unusedInput.push(t),e._a[ze]<=12&&se(e).bigHour===!0&&e._a[ze]>0&&(se(e).bigHour=void 0),se(e).parsedDateParts=e._a.slice(0),se(e).meridiem=e._meridiem,e._a[ze]=o0(e._locale,e._a[ze],e._meridiem),u=se(e).era,u!==null&&(e._a[Ge]=e._locale.erasConvertYear(u,e._a[Ge])),na(e),ia(e)}function o0(e,t,r){var i;return r==null?t:e.meridiemHour!=null?e.meridiemHour(t,r):(e.isPM!=null&&(i=e.isPM(r),i&&t<12&&(t+=12),!i&&t===12&&(t=0)),t)}function a0(e){var t,r,i,n,s,o,a=!1,l=e._f.length;if(l===0){se(e).invalidFormat=!0,e._d=new Date(NaN);return}for(n=0;n<l;n++)s=0,o=!1,t=jo({},e),e._useUTC!=null&&(t._useUTC=e._useUTC),t._f=e._f[n],sa(t),Go(t)&&(o=!0),s+=se(t).charsLeftOver,s+=se(t).unusedTokens.length*10,se(t).score=s,a?s<i&&(i=s,r=t):(i==null||s<i||o)&&(i=s,r=t,o&&(a=!0));Gt(e,r||t)}function l0(e){if(!e._d){var t=Ko(e._i),r=t.day===void 0?t.date:t.day;e._a=Yd([t.year,t.month,r,t.hour,t.minute,t.second,t.millisecond],function(i){return i&&parseInt(i,10)}),na(e)}}function u0(e){var t=new Ii(ia(dc(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function dc(e){var t=e._i,r=e._f;return e._locale=e._locale||Ht(e._l),t===null||r===void 0&&t===""?Vn({nullInput:!0}):(typeof t=="string"&&(e._i=t=e._locale.preparse(t)),_t(t)?new Ii(ia(t)):(Ni(t)?e._d=t:mt(r)?a0(e):r?sa(e):d0(e),Go(e)||(e._d=null),e))}function d0(e){var t=e._i;et(t)?e._d=new Date(G.now()):Ni(t)?e._d=new Date(t.valueOf()):typeof t=="string"?i0(e):mt(t)?(e._a=Yd(t.slice(0),function(r){return parseInt(r,10)}),na(e)):lr(t)?l0(e):Lt(t)?e._d=new Date(t):G.createFromInputFallback(e)}function cc(e,t,r,i,n){var s={};return(t===!0||t===!1)&&(i=t,t=void 0),(r===!0||r===!1)&&(i=r,r=void 0),(lr(e)&&Vo(e)||mt(e)&&e.length===0)&&(e=void 0),s._isAMomentObject=!0,s._useUTC=s._isUTC=n,s._l=r,s._i=e,s._f=t,s._strict=i,u0(s)}function Ae(e,t,r,i){return cc(e,t,r,i,!1)}var c0=ut("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Ae.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:Vn()}),h0=ut("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Ae.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:Vn()});function hc(e,t){var r,i;if(t.length===1&&mt(t[0])&&(t=t[0]),!t.length)return Ae();for(r=t[0],i=1;i<t.length;++i)(!t[i].isValid()||t[i][e](r))&&(r=t[i]);return r}function f0(){var e=[].slice.call(arguments,0);return hc("isBefore",e)}function p0(){var e=[].slice.call(arguments,0);return hc("isAfter",e)}var m0=function(){return Date.now?Date.now():+new Date},Jr=["year","quarter","month","week","day","hour","minute","second","millisecond"];function _0(e){var t,r=!1,i,n=Jr.length;for(t in e)if(ve(e,t)&&!(Ne.call(Jr,t)!==-1&&(e[t]==null||!isNaN(e[t]))))return!1;for(i=0;i<n;++i)if(e[Jr[i]]){if(r)return!1;parseFloat(e[Jr[i]])!==ue(e[Jr[i]])&&(r=!0)}return!0}function g0(){return this._isValid}function b0(){return bt(NaN)}function es(e){var t=Ko(e),r=t.year||0,i=t.quarter||0,n=t.month||0,s=t.week||t.isoWeek||0,o=t.day||0,a=t.hour||0,l=t.minute||0,u=t.second||0,d=t.millisecond||0;this._isValid=_0(t),this._milliseconds=+d+u*1e3+l*6e4+a*1e3*60*60,this._days=+o+s*7,this._months=+n+i*3+r*12,this._data={},this._locale=Ht(),this._bubble()}function un(e){return e instanceof es}function mo(e){return e<0?Math.round(-1*e)*-1:Math.round(e)}function v0(e,t,r){var i=Math.min(e.length,t.length),n=Math.abs(e.length-t.length),s=0,o;for(o=0;o<i;o++)ue(e[o])!==ue(t[o])&&s++;return s+n}function fc(e,t){te(e,0,0,function(){var r=this.utcOffset(),i="+";return r<0&&(r=-r,i="-"),i+wt(~~(r/60),2)+t+wt(~~r%60,2)})}fc("Z",":");fc("ZZ","");K("Z",Xn);K("ZZ",Xn);xe(["Z","ZZ"],function(e,t,r){r._useUTC=!0,r._tzm=oa(Xn,e)});var y0=/([\+\-]|\d\d)/gi;function oa(e,t){var r=(t||"").match(e),i,n,s;return r===null?null:(i=r[r.length-1]||[],n=(i+"").match(y0)||["-",0,0],s=+(n[1]*60)+ue(n[2]),s===0?0:n[0]==="+"?s:-s)}function aa(e,t){var r,i;return t._isUTC?(r=t.clone(),i=(_t(e)||Ni(e)?e.valueOf():Ae(e).valueOf())-r.valueOf(),r._d.setTime(r._d.valueOf()+i),G.updateOffset(r,!1),r):Ae(e).local()}function _o(e){return-Math.round(e._d.getTimezoneOffset())}G.updateOffset=function(){};function w0(e,t,r){var i=this._offset||0,n;if(!this.isValid())return e!=null?this:NaN;if(e!=null){if(typeof e=="string"){if(e=oa(Xn,e),e===null)return this}else Math.abs(e)<16&&!r&&(e=e*60);return!this._isUTC&&t&&(n=_o(this)),this._offset=e,this._isUTC=!0,n!=null&&this.add(n,"m"),i!==e&&(!t||this._changeInProgress?_c(this,bt(e-i,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,G.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?i:_o(this)}function C0(e,t){return e!=null?(typeof e!="string"&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function E0(e){return this.utcOffset(0,e)}function x0(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(_o(this),"m")),this}function S0(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var e=oa(Gm,this._i);e!=null?this.utcOffset(e):this.utcOffset(0,!0)}return this}function k0(e){return this.isValid()?(e=e?Ae(e).utcOffset():0,(this.utcOffset()-e)%60===0):!1}function A0(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function T0(){if(!et(this._isDSTShifted))return this._isDSTShifted;var e={},t;return jo(e,this),e=dc(e),e._a?(t=e._isUTC?Ct(e._a):Ae(e._a),this._isDSTShifted=this.isValid()&&v0(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function P0(){return this.isValid()?!this._isUTC:!1}function D0(){return this.isValid()?this._isUTC:!1}function pc(){return this.isValid()?this._isUTC&&this._offset===0:!1}var M0=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,O0=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function bt(e,t){var r=e,i=null,n,s,o;return un(e)?r={ms:e._milliseconds,d:e._days,M:e._months}:Lt(e)||!isNaN(+e)?(r={},t?r[t]=+e:r.milliseconds=+e):(i=M0.exec(e))?(n=i[1]==="-"?-1:1,r={y:0,d:ue(i[yt])*n,h:ue(i[ze])*n,m:ue(i[ft])*n,s:ue(i[Dt])*n,ms:ue(mo(i[nr]*1e3))*n}):(i=O0.exec(e))?(n=i[1]==="-"?-1:1,r={y:tr(i[2],n),M:tr(i[3],n),w:tr(i[4],n),d:tr(i[5],n),h:tr(i[6],n),m:tr(i[7],n),s:tr(i[8],n)}):r==null?r={}:typeof r=="object"&&("from"in r||"to"in r)&&(o=B0(Ae(r.from),Ae(r.to)),r={},r.ms=o.milliseconds,r.M=o.months),s=new es(r),un(e)&&ve(e,"_locale")&&(s._locale=e._locale),un(e)&&ve(e,"_isValid")&&(s._isValid=e._isValid),s}bt.fn=es.prototype;bt.invalid=b0;function tr(e,t){var r=e&&parseFloat(e.replace(",","."));return(isNaN(r)?0:r)*t}function dl(e,t){var r={};return r.months=t.month()-e.month()+(t.year()-e.year())*12,e.clone().add(r.months,"M").isAfter(t)&&--r.months,r.milliseconds=+t-+e.clone().add(r.months,"M"),r}function B0(e,t){var r;return e.isValid()&&t.isValid()?(t=aa(t,e),e.isBefore(t)?r=dl(e,t):(r=dl(t,e),r.milliseconds=-r.milliseconds,r.months=-r.months),r):{milliseconds:0,months:0}}function mc(e,t){return function(r,i){var n,s;return i!==null&&!isNaN(+i)&&(Wd(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),s=r,r=i,i=s),n=bt(r,i),_c(this,n,e),this}}function _c(e,t,r,i){var n=t._milliseconds,s=mo(t._days),o=mo(t._months);e.isValid()&&(i=i==null?!0:i,o&&Qd(e,bn(e,"Month")+o*r),s&&Gd(e,"Date",bn(e,"Date")+s*r),n&&e._d.setTime(e._d.valueOf()+n*r),i&&G.updateOffset(e,s||o))}var N0=mc(1,"add"),I0=mc(-1,"subtract");function gc(e){return typeof e=="string"||e instanceof String}function L0(e){return _t(e)||Ni(e)||gc(e)||Lt(e)||R0(e)||F0(e)||e===null||e===void 0}function F0(e){var t=lr(e)&&!Vo(e),r=!1,i=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],n,s,o=i.length;for(n=0;n<o;n+=1)s=i[n],r=r||ve(e,s);return t&&r}function R0(e){var t=mt(e),r=!1;return t&&(r=e.filter(function(i){return!Lt(i)&&gc(e)}).length===0),t&&r}function H0(e){var t=lr(e)&&!Vo(e),r=!1,i=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],n,s;for(n=0;n<i.length;n+=1)s=i[n],r=r||ve(e,s);return t&&r}function z0(e,t){var r=e.diff(t,"days",!0);return r<-6?"sameElse":r<-1?"lastWeek":r<0?"lastDay":r<1?"sameDay":r<2?"nextDay":r<7?"nextWeek":"sameElse"}function Y0(e,t){arguments.length===1&&(arguments[0]?L0(arguments[0])?(e=arguments[0],t=void 0):H0(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var r=e||Ae(),i=aa(r,this).startOf("day"),n=G.calendarFormat(this,i)||"sameElse",s=t&&(Et(t[n])?t[n].call(this,r):t[n]);return this.format(s||this.localeData().calendar(n,this,Ae(r)))}function U0(){return new Ii(this)}function W0(e,t){var r=_t(e)?e:Ae(e);return this.isValid()&&r.isValid()?(t=dt(t)||"millisecond",t==="millisecond"?this.valueOf()>r.valueOf():r.valueOf()<this.clone().startOf(t).valueOf()):!1}function $0(e,t){var r=_t(e)?e:Ae(e);return this.isValid()&&r.isValid()?(t=dt(t)||"millisecond",t==="millisecond"?this.valueOf()<r.valueOf():this.clone().endOf(t).valueOf()<r.valueOf()):!1}function V0(e,t,r,i){var n=_t(e)?e:Ae(e),s=_t(t)?t:Ae(t);return this.isValid()&&n.isValid()&&s.isValid()?(i=i||"()",(i[0]==="("?this.isAfter(n,r):!this.isBefore(n,r))&&(i[1]===")"?this.isBefore(s,r):!this.isAfter(s,r))):!1}function G0(e,t){var r=_t(e)?e:Ae(e),i;return this.isValid()&&r.isValid()?(t=dt(t)||"millisecond",t==="millisecond"?this.valueOf()===r.valueOf():(i=r.valueOf(),this.clone().startOf(t).valueOf()<=i&&i<=this.clone().endOf(t).valueOf())):!1}function j0(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function q0(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function Z0(e,t,r){var i,n,s;if(!this.isValid())return NaN;if(i=aa(e,this),!i.isValid())return NaN;switch(n=(i.utcOffset()-this.utcOffset())*6e4,t=dt(t),t){case"year":s=dn(this,i)/12;break;case"month":s=dn(this,i);break;case"quarter":s=dn(this,i)/3;break;case"second":s=(this-i)/1e3;break;case"minute":s=(this-i)/6e4;break;case"hour":s=(this-i)/36e5;break;case"day":s=(this-i-n)/864e5;break;case"week":s=(this-i-n)/6048e5;break;default:s=this-i}return r?s:lt(s)}function dn(e,t){if(e.date()<t.date())return-dn(t,e);var r=(t.year()-e.year())*12+(t.month()-e.month()),i=e.clone().add(r,"months"),n,s;return t-i<0?(n=e.clone().add(r-1,"months"),s=(t-i)/(i-n)):(n=e.clone().add(r+1,"months"),s=(t-i)/(n-i)),-(r+s)||0}G.defaultFormat="YYYY-MM-DDTHH:mm:ssZ";G.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function K0(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function X0(e){if(!this.isValid())return null;var t=e!==!0,r=t?this.clone().utc():this;return r.year()<0||r.year()>9999?ln(r,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):Et(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",ln(r,"Z")):ln(r,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function J0(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",r,i,n,s;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z"),r="["+e+'("]',i=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",n="-MM-DD[T]HH:mm:ss.SSS",s=t+'[")]',this.format(r+i+n+s)}function Q0(e){e||(e=this.isUtc()?G.defaultFormatUtc:G.defaultFormat);var t=ln(this,e);return this.localeData().postformat(t)}function eg(e,t){return this.isValid()&&(_t(e)&&e.isValid()||Ae(e).isValid())?bt({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function tg(e){return this.from(Ae(),e)}function rg(e,t){return this.isValid()&&(_t(e)&&e.isValid()||Ae(e).isValid())?bt({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function ig(e){return this.to(Ae(),e)}function bc(e){var t;return e===void 0?this._locale._abbr:(t=Ht(e),t!=null&&(this._locale=t),this)}var vc=ut("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return e===void 0?this.localeData():this.locale(e)});function yc(){return this._locale}var wn=1e3,Tr=60*wn,Cn=60*Tr,wc=(365*400+97)*24*Cn;function Pr(e,t){return(e%t+t)%t}function Cc(e,t,r){return e<100&&e>=0?new Date(e+400,t,r)-wc:new Date(e,t,r).valueOf()}function Ec(e,t,r){return e<100&&e>=0?Date.UTC(e+400,t,r)-wc:Date.UTC(e,t,r)}function ng(e){var t,r;if(e=dt(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(r=this._isUTC?Ec:Cc,e){case"year":t=r(this.year(),0,1);break;case"quarter":t=r(this.year(),this.month()-this.month()%3,1);break;case"month":t=r(this.year(),this.month(),1);break;case"week":t=r(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=r(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=r(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=Pr(t+(this._isUTC?0:this.utcOffset()*Tr),Cn);break;case"minute":t=this._d.valueOf(),t-=Pr(t,Tr);break;case"second":t=this._d.valueOf(),t-=Pr(t,wn);break}return this._d.setTime(t),G.updateOffset(this,!0),this}function sg(e){var t,r;if(e=dt(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(r=this._isUTC?Ec:Cc,e){case"year":t=r(this.year()+1,0,1)-1;break;case"quarter":t=r(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=r(this.year(),this.month()+1,1)-1;break;case"week":t=r(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=r(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=r(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=Cn-Pr(t+(this._isUTC?0:this.utcOffset()*Tr),Cn)-1;break;case"minute":t=this._d.valueOf(),t+=Tr-Pr(t,Tr)-1;break;case"second":t=this._d.valueOf(),t+=wn-Pr(t,wn)-1;break}return this._d.setTime(t),G.updateOffset(this,!0),this}function og(){return this._d.valueOf()-(this._offset||0)*6e4}function ag(){return Math.floor(this.valueOf()/1e3)}function lg(){return new Date(this.valueOf())}function ug(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function dg(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function cg(){return this.isValid()?this.toISOString():null}function hg(){return Go(this)}function fg(){return Gt({},se(this))}function pg(){return se(this).overflow}function mg(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}te("N",0,0,"eraAbbr");te("NN",0,0,"eraAbbr");te("NNN",0,0,"eraAbbr");te("NNNN",0,0,"eraName");te("NNNNN",0,0,"eraNarrow");te("y",["y",1],"yo","eraYear");te("y",["yy",2],0,"eraYear");te("y",["yyy",3],0,"eraYear");te("y",["yyyy",4],0,"eraYear");K("N",la);K("NN",la);K("NNN",la);K("NNNN",kg);K("NNNNN",Ag);xe(["N","NN","NNN","NNNN","NNNNN"],function(e,t,r,i){var n=r._locale.erasParse(e,i,r._strict);n?se(r).era=n:se(r).invalidEra=e});K("y",Gr);K("yy",Gr);K("yyy",Gr);K("yyyy",Gr);K("yo",Tg);xe(["y","yy","yyy","yyyy"],Ge);xe(["yo"],function(e,t,r,i){var n;r._locale._eraYearOrdinalRegex&&(n=e.match(r._locale._eraYearOrdinalRegex)),r._locale.eraYearOrdinalParse?t[Ge]=r._locale.eraYearOrdinalParse(e,n):t[Ge]=parseInt(e,10)});function _g(e,t){var r,i,n,s=this._eras||Ht("en")._eras;for(r=0,i=s.length;r<i;++r){switch(typeof s[r].since){case"string":n=G(s[r].since).startOf("day"),s[r].since=n.valueOf();break}switch(typeof s[r].until){case"undefined":s[r].until=1/0;break;case"string":n=G(s[r].until).startOf("day").valueOf(),s[r].until=n.valueOf();break}}return s}function gg(e,t,r){var i,n,s=this.eras(),o,a,l;for(e=e.toUpperCase(),i=0,n=s.length;i<n;++i)if(o=s[i].name.toUpperCase(),a=s[i].abbr.toUpperCase(),l=s[i].narrow.toUpperCase(),r)switch(t){case"N":case"NN":case"NNN":if(a===e)return s[i];break;case"NNNN":if(o===e)return s[i];break;case"NNNNN":if(l===e)return s[i];break}else if([o,a,l].indexOf(e)>=0)return s[i]}function bg(e,t){var r=e.since<=e.until?1:-1;return t===void 0?G(e.since).year():G(e.since).year()+(t-e.offset)*r}function vg(){var e,t,r,i=this.localeData().eras();for(e=0,t=i.length;e<t;++e)if(r=this.clone().startOf("day").valueOf(),i[e].since<=r&&r<=i[e].until||i[e].until<=r&&r<=i[e].since)return i[e].name;return""}function yg(){var e,t,r,i=this.localeData().eras();for(e=0,t=i.length;e<t;++e)if(r=this.clone().startOf("day").valueOf(),i[e].since<=r&&r<=i[e].until||i[e].until<=r&&r<=i[e].since)return i[e].narrow;return""}function wg(){var e,t,r,i=this.localeData().eras();for(e=0,t=i.length;e<t;++e)if(r=this.clone().startOf("day").valueOf(),i[e].since<=r&&r<=i[e].until||i[e].until<=r&&r<=i[e].since)return i[e].abbr;return""}function Cg(){var e,t,r,i,n=this.localeData().eras();for(e=0,t=n.length;e<t;++e)if(r=n[e].since<=n[e].until?1:-1,i=this.clone().startOf("day").valueOf(),n[e].since<=i&&i<=n[e].until||n[e].until<=i&&i<=n[e].since)return(this.year()-G(n[e].since).year())*r+n[e].offset;return this.year()}function Eg(e){return ve(this,"_erasNameRegex")||ua.call(this),e?this._erasNameRegex:this._erasRegex}function xg(e){return ve(this,"_erasAbbrRegex")||ua.call(this),e?this._erasAbbrRegex:this._erasRegex}function Sg(e){return ve(this,"_erasNarrowRegex")||ua.call(this),e?this._erasNarrowRegex:this._erasRegex}function la(e,t){return t.erasAbbrRegex(e)}function kg(e,t){return t.erasNameRegex(e)}function Ag(e,t){return t.erasNarrowRegex(e)}function Tg(e,t){return t._eraYearOrdinalRegex||Gr}function ua(){var e=[],t=[],r=[],i=[],n,s,o=this.eras();for(n=0,s=o.length;n<s;++n)t.push(nt(o[n].name)),e.push(nt(o[n].abbr)),r.push(nt(o[n].narrow)),i.push(nt(o[n].name)),i.push(nt(o[n].abbr)),i.push(nt(o[n].narrow));this._erasRegex=new RegExp("^("+i.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+t.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+e.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+r.join("|")+")","i")}te(0,["gg",2],0,function(){return this.weekYear()%100});te(0,["GG",2],0,function(){return this.isoWeekYear()%100});function ts(e,t){te(0,[e,e.length],0,t)}ts("gggg","weekYear");ts("ggggg","weekYear");ts("GGGG","isoWeekYear");ts("GGGGG","isoWeekYear");qe("weekYear","gg");qe("isoWeekYear","GG");Ze("weekYear",1);Ze("isoWeekYear",1);K("G",Kn);K("g",Kn);K("GG",Te,st);K("gg",Te,st);K("GGGG",Jo,Xo);K("gggg",Jo,Xo);K("GGGGG",Zn,jn);K("ggggg",Zn,jn);Fi(["gggg","ggggg","GGGG","GGGGG"],function(e,t,r,i){t[i.substr(0,2)]=ue(e)});Fi(["gg","GG"],function(e,t,r,i){t[i]=G.parseTwoDigitYear(e)});function Pg(e){return xc.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function Dg(e){return xc.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function Mg(){return Bt(this.year(),1,4)}function Og(){return Bt(this.isoWeekYear(),1,4)}function Bg(){var e=this.localeData()._week;return Bt(this.year(),e.dow,e.doy)}function Ng(){var e=this.localeData()._week;return Bt(this.weekYear(),e.dow,e.doy)}function xc(e,t,r,i,n){var s;return e==null?_i(this,i,n).year:(s=Bt(e,i,n),t>s&&(t=s),Ig.call(this,e,t,r,i,n))}function Ig(e,t,r,i,n){var s=ic(e,t,r,i,n),o=mi(s.year,0,s.dayOfYear);return this.year(o.getUTCFullYear()),this.month(o.getUTCMonth()),this.date(o.getUTCDate()),this}te("Q",0,"Qo","quarter");qe("quarter","Q");Ze("quarter",7);K("Q",jd);xe("Q",function(e,t){t[Pt]=(ue(e)-1)*3});function Lg(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}te("D",["DD",2],"Do","date");qe("date","D");Ze("date",9);K("D",Te);K("DD",Te,st);K("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient});xe(["D","DD"],yt);xe("Do",function(e,t){t[yt]=ue(e.match(Te)[0])});var Sc=Vr("Date",!0);te("DDD",["DDDD",3],"DDDo","dayOfYear");qe("dayOfYear","DDD");Ze("dayOfYear",4);K("DDD",qn);K("DDDD",qd);xe(["DDD","DDDD"],function(e,t,r){r._dayOfYear=ue(e)});function Fg(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}te("m",["mm",2],0,"minute");qe("minute","m");Ze("minute",14);K("m",Te);K("mm",Te,st);xe(["m","mm"],ft);var Rg=Vr("Minutes",!1);te("s",["ss",2],0,"second");qe("second","s");Ze("second",15);K("s",Te);K("ss",Te,st);xe(["s","ss"],Dt);var Hg=Vr("Seconds",!1);te("S",0,0,function(){return~~(this.millisecond()/100)});te(0,["SS",2],0,function(){return~~(this.millisecond()/10)});te(0,["SSS",3],0,"millisecond");te(0,["SSSS",4],0,function(){return this.millisecond()*10});te(0,["SSSSS",5],0,function(){return this.millisecond()*100});te(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3});te(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4});te(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5});te(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6});qe("millisecond","ms");Ze("millisecond",16);K("S",qn,jd);K("SS",qn,st);K("SSS",qn,qd);var jt,kc;for(jt="SSSS";jt.length<=9;jt+="S")K(jt,Gr);function zg(e,t){t[nr]=ue(("0."+e)*1e3)}for(jt="S";jt.length<=9;jt+="S")xe(jt,zg);kc=Vr("Milliseconds",!1);te("z",0,0,"zoneAbbr");te("zz",0,0,"zoneName");function Yg(){return this._isUTC?"UTC":""}function Ug(){return this._isUTC?"Coordinated Universal Time":""}var F=Ii.prototype;F.add=N0;F.calendar=Y0;F.clone=U0;F.diff=Z0;F.endOf=sg;F.format=Q0;F.from=eg;F.fromNow=tg;F.to=rg;F.toNow=ig;F.get=$m;F.invalidAt=pg;F.isAfter=W0;F.isBefore=$0;F.isBetween=V0;F.isSame=G0;F.isSameOrAfter=j0;F.isSameOrBefore=q0;F.isValid=hg;F.lang=vc;F.locale=bc;F.localeData=yc;F.max=h0;F.min=c0;F.parsingFlags=fg;F.set=Vm;F.startOf=ng;F.subtract=I0;F.toArray=ug;F.toObject=dg;F.toDate=lg;F.toISOString=X0;F.inspect=J0;typeof Symbol!="undefined"&&Symbol.for!=null&&(F[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});F.toJSON=cg;F.toString=K0;F.unix=ag;F.valueOf=og;F.creationData=mg;F.eraName=vg;F.eraNarrow=yg;F.eraAbbr=wg;F.eraYear=Cg;F.year=rc;F.isLeapYear=d_;F.weekYear=Pg;F.isoWeekYear=Dg;F.quarter=F.quarters=Lg;F.month=ec;F.daysInMonth=a_;F.week=F.weeks=__;F.isoWeek=F.isoWeeks=g_;F.weeksInYear=Bg;F.weeksInWeekYear=Ng;F.isoWeeksInYear=Mg;F.isoWeeksInISOWeekYear=Og;F.date=Sc;F.day=F.days=D_;F.weekday=M_;F.isoWeekday=O_;F.dayOfYear=Fg;F.hour=F.hours=H_;F.minute=F.minutes=Rg;F.second=F.seconds=Hg;F.millisecond=F.milliseconds=kc;F.utcOffset=w0;F.utc=E0;F.local=x0;F.parseZone=S0;F.hasAlignedHourOffset=k0;F.isDST=A0;F.isLocal=P0;F.isUtcOffset=D0;F.isUtc=pc;F.isUTC=pc;F.zoneAbbr=Yg;F.zoneName=Ug;F.dates=ut("dates accessor is deprecated. Use date instead.",Sc);F.months=ut("months accessor is deprecated. Use month instead",ec);F.years=ut("years accessor is deprecated. Use year instead",rc);F.zone=ut("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",C0);F.isDSTShifted=ut("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",T0);function Wg(e){return Ae(e*1e3)}function $g(){return Ae.apply(null,arguments).parseZone()}function Ac(e){return e}var ye=qo.prototype;ye.calendar=Dm;ye.longDateFormat=Nm;ye.invalidDate=Lm;ye.ordinal=Hm;ye.preparse=Ac;ye.postformat=Ac;ye.relativeTime=Ym;ye.pastFuture=Um;ye.set=Tm;ye.eras=_g;ye.erasParse=gg;ye.erasConvertYear=bg;ye.erasAbbrRegex=xg;ye.erasNameRegex=Eg;ye.erasNarrowRegex=Sg;ye.months=i_;ye.monthsShort=n_;ye.monthsParse=o_;ye.monthsRegex=u_;ye.monthsShortRegex=l_;ye.week=h_;ye.firstDayOfYear=m_;ye.firstDayOfWeek=p_;ye.weekdays=S_;ye.weekdaysMin=A_;ye.weekdaysShort=k_;ye.weekdaysParse=P_;ye.weekdaysRegex=B_;ye.weekdaysShortRegex=N_;ye.weekdaysMinRegex=I_;ye.isPM=F_;ye.meridiem=z_;function En(e,t,r,i){var n=Ht(),s=Ct().set(i,t);return n[r](s,e)}function Tc(e,t,r){if(Lt(e)&&(t=e,e=void 0),e=e||"",t!=null)return En(e,t,r,"month");var i,n=[];for(i=0;i<12;i++)n[i]=En(e,i,r,"month");return n}function da(e,t,r,i){typeof e=="boolean"?(Lt(t)&&(r=t,t=void 0),t=t||""):(t=e,r=t,e=!1,Lt(t)&&(r=t,t=void 0),t=t||"");var n=Ht(),s=e?n._week.dow:0,o,a=[];if(r!=null)return En(t,(r+s)%7,i,"day");for(o=0;o<7;o++)a[o]=En(t,(o+s)%7,i,"day");return a}function Vg(e,t){return Tc(e,t,"months")}function Gg(e,t){return Tc(e,t,"monthsShort")}function jg(e,t,r){return da(e,t,r,"weekdays")}function qg(e,t,r){return da(e,t,r,"weekdaysShort")}function Zg(e,t,r){return da(e,t,r,"weekdaysMin")}qt("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,r=ue(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+r}});G.lang=ut("moment.lang is deprecated. Use moment.locale instead.",qt);G.langData=ut("moment.langData is deprecated. Use moment.localeData instead.",Ht);var St=Math.abs;function Kg(){var e=this._data;return this._milliseconds=St(this._milliseconds),this._days=St(this._days),this._months=St(this._months),e.milliseconds=St(e.milliseconds),e.seconds=St(e.seconds),e.minutes=St(e.minutes),e.hours=St(e.hours),e.months=St(e.months),e.years=St(e.years),this}function Pc(e,t,r,i){var n=bt(t,r);return e._milliseconds+=i*n._milliseconds,e._days+=i*n._days,e._months+=i*n._months,e._bubble()}function Xg(e,t){return Pc(this,e,t,1)}function Jg(e,t){return Pc(this,e,t,-1)}function cl(e){return e<0?Math.floor(e):Math.ceil(e)}function Qg(){var e=this._milliseconds,t=this._days,r=this._months,i=this._data,n,s,o,a,l;return e>=0&&t>=0&&r>=0||e<=0&&t<=0&&r<=0||(e+=cl(go(r)+t)*864e5,t=0,r=0),i.milliseconds=e%1e3,n=lt(e/1e3),i.seconds=n%60,s=lt(n/60),i.minutes=s%60,o=lt(s/60),i.hours=o%24,t+=lt(o/24),l=lt(Dc(t)),r+=l,t-=cl(go(l)),a=lt(r/12),r%=12,i.days=t,i.months=r,i.years=a,this}function Dc(e){return e*4800/146097}function go(e){return e*146097/4800}function eb(e){if(!this.isValid())return NaN;var t,r,i=this._milliseconds;if(e=dt(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+i/864e5,r=this._months+Dc(t),e){case"month":return r;case"quarter":return r/3;case"year":return r/12}else switch(t=this._days+Math.round(go(this._months)),e){case"week":return t/7+i/6048e5;case"day":return t+i/864e5;case"hour":return t*24+i/36e5;case"minute":return t*1440+i/6e4;case"second":return t*86400+i/1e3;case"millisecond":return Math.floor(t*864e5)+i;default:throw new Error("Unknown unit "+e)}}function tb(){return this.isValid()?this._milliseconds+this._days*864e5+this._months%12*2592e6+ue(this._months/12)*31536e6:NaN}function zt(e){return function(){return this.as(e)}}var rb=zt("ms"),ib=zt("s"),nb=zt("m"),sb=zt("h"),ob=zt("d"),ab=zt("w"),lb=zt("M"),ub=zt("Q"),db=zt("y");function cb(){return bt(this)}function hb(e){return e=dt(e),this.isValid()?this[e+"s"]():NaN}function hr(e){return function(){return this.isValid()?this._data[e]:NaN}}var fb=hr("milliseconds"),pb=hr("seconds"),mb=hr("minutes"),_b=hr("hours"),gb=hr("days"),bb=hr("months"),vb=hr("years");function yb(){return lt(this.days()/7)}var At=Math.round,xr={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function wb(e,t,r,i,n){return n.relativeTime(t||1,!!r,e,i)}function Cb(e,t,r,i){var n=bt(e).abs(),s=At(n.as("s")),o=At(n.as("m")),a=At(n.as("h")),l=At(n.as("d")),u=At(n.as("M")),d=At(n.as("w")),c=At(n.as("y")),h=s<=r.ss&&["s",s]||s<r.s&&["ss",s]||o<=1&&["m"]||o<r.m&&["mm",o]||a<=1&&["h"]||a<r.h&&["hh",a]||l<=1&&["d"]||l<r.d&&["dd",l];return r.w!=null&&(h=h||d<=1&&["w"]||d<r.w&&["ww",d]),h=h||u<=1&&["M"]||u<r.M&&["MM",u]||c<=1&&["y"]||["yy",c],h[2]=t,h[3]=+e>0,h[4]=i,wb.apply(null,h)}function Eb(e){return e===void 0?At:typeof e=="function"?(At=e,!0):!1}function xb(e,t){return xr[e]===void 0?!1:t===void 0?xr[e]:(xr[e]=t,e==="s"&&(xr.ss=t-1),!0)}function Sb(e,t){if(!this.isValid())return this.localeData().invalidDate();var r=!1,i=xr,n,s;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(r=e),typeof t=="object"&&(i=Object.assign({},xr,t),t.s!=null&&t.ss==null&&(i.ss=t.s-1)),n=this.localeData(),s=Cb(this,!r,i,n),r&&(s=n.pastFuture(+this,s)),n.postformat(s)}var Ps=Math.abs;function vr(e){return(e>0)-(e<0)||+e}function rs(){if(!this.isValid())return this.localeData().invalidDate();var e=Ps(this._milliseconds)/1e3,t=Ps(this._days),r=Ps(this._months),i,n,s,o,a=this.asSeconds(),l,u,d,c;return a?(i=lt(e/60),n=lt(i/60),e%=60,i%=60,s=lt(r/12),r%=12,o=e?e.toFixed(3).replace(/\.?0+$/,""):"",l=a<0?"-":"",u=vr(this._months)!==vr(a)?"-":"",d=vr(this._days)!==vr(a)?"-":"",c=vr(this._milliseconds)!==vr(a)?"-":"",l+"P"+(s?u+s+"Y":"")+(r?u+r+"M":"")+(t?d+t+"D":"")+(n||i||e?"T":"")+(n?c+n+"H":"")+(i?c+i+"M":"")+(e?c+o+"S":"")):"P0D"}var pe=es.prototype;pe.isValid=g0;pe.abs=Kg;pe.add=Xg;pe.subtract=Jg;pe.as=eb;pe.asMilliseconds=rb;pe.asSeconds=ib;pe.asMinutes=nb;pe.asHours=sb;pe.asDays=ob;pe.asWeeks=ab;pe.asMonths=lb;pe.asQuarters=ub;pe.asYears=db;pe.valueOf=tb;pe._bubble=Qg;pe.clone=cb;pe.get=hb;pe.milliseconds=fb;pe.seconds=pb;pe.minutes=mb;pe.hours=_b;pe.days=gb;pe.weeks=yb;pe.months=bb;pe.years=vb;pe.humanize=Sb;pe.toISOString=rs;pe.toString=rs;pe.toJSON=rs;pe.locale=bc;pe.localeData=yc;pe.toIsoString=ut("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",rs);pe.lang=vc;te("X",0,0,"unix");te("x",0,0,"valueOf");K("x",Kn);K("X",jm);xe("X",function(e,t,r){r._d=new Date(parseFloat(e)*1e3)});xe("x",function(e,t,r){r._d=new Date(ue(e))});//! moment.js
|
|
27
|
+
G.version="2.29.4";km(Ae);G.fn=F;G.min=f0;G.max=p0;G.now=m0;G.utc=Ct;G.unix=Wg;G.months=Vg;G.isDate=Ni;G.locale=qt;G.invalid=Vn;G.duration=bt;G.isMoment=_t;G.weekdays=jg;G.parseZone=$g;G.localeData=Ht;G.isDuration=un;G.monthsShort=Gg;G.weekdaysMin=Zg;G.defineLocale=ra;G.updateLocale=$_;G.locales=V_;G.weekdaysShort=qg;G.normalizeUnits=dt;G.relativeTimeRounding=Eb;G.relativeTimeThreshold=xb;G.calendarFormat=z0;G.prototype=F;G.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};/**
|
|
15
28
|
* @license
|
|
16
29
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
17
30
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
18
|
-
*/
|
|
31
|
+
*/function xt(e,t="24.5.10"){Object.defineProperty(e,"version",{get(){return t}});const r=customElements.get(e.is);if(!r)customElements.define(e.is,e);else{const i=r.version;i&&e.version&&i===e.version?console.warn(`The component ${e.is} has been loaded twice`):console.error(`Tried to define ${e.is} version ${e.version} when version ${r.version} is already in use. Something will probably break.`)}}/**
|
|
19
32
|
* @license
|
|
20
33
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
21
34
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
22
|
-
*/class kb extends HTMLElement{static get is(){return"vaadin-lumo-styles"}}
|
|
35
|
+
*/class kb extends HTMLElement{static get is(){return"vaadin-lumo-styles"}}xt(kb);/**
|
|
23
36
|
* @license
|
|
24
37
|
* Copyright 2019 Google LLC
|
|
25
38
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
26
|
-
*/const cn=globalThis,
|
|
39
|
+
*/const cn=globalThis,ca=cn.ShadowRoot&&(cn.ShadyCSS===void 0||cn.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,ha=Symbol(),hl=new WeakMap;let fa=class{constructor(t,r,i){if(this._$cssResult$=!0,i!==ha)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=r}get styleSheet(){let t=this.o;const r=this.t;if(ca&&t===void 0){const i=r!==void 0&&r.length===1;i&&(t=hl.get(r)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&hl.set(r,t))}return t}toString(){return this.cssText}};const Ab=e=>new fa(typeof e=="string"?e:e+"",void 0,ha),_e=(e,...t)=>{const r=e.length===1?e[0]:t.reduce((i,n,s)=>i+(o=>{if(o._$cssResult$===!0)return o.cssText;if(typeof o=="number")return o;throw Error("Value passed to 'css' function must be a 'css' function result: "+o+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(n)+e[s+1],e[0]);return new fa(r,e,ha)},Mc=(e,t)=>{if(ca)e.adoptedStyleSheets=t.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(const r of t){const i=document.createElement("style"),n=cn.litNonce;n!==void 0&&i.setAttribute("nonce",n),i.textContent=r.cssText,e.appendChild(i)}},fl=ca?e=>e:e=>e instanceof CSSStyleSheet?(t=>{let r="";for(const i of t.cssRules)r+=i.cssText;return Ab(r)})(e):e;/**
|
|
27
40
|
* @license
|
|
28
41
|
* Copyright 2017 Google LLC
|
|
29
42
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
30
|
-
*/const{is:
|
|
43
|
+
*/const{is:Tb,defineProperty:Pb,getOwnPropertyDescriptor:Db,getOwnPropertyNames:Mb,getOwnPropertySymbols:Ob,getPrototypeOf:Bb}=Object,Zt=globalThis,pl=Zt.trustedTypes,Nb=pl?pl.emptyScript:"",Ds=Zt.reactiveElementPolyfillSupport,ui=(e,t)=>e,bo={toAttribute(e,t){switch(t){case Boolean:e=e?Nb:null;break;case Object:case Array:e=e==null?e:JSON.stringify(e)}return e},fromAttribute(e,t){let r=e;switch(t){case Boolean:r=e!==null;break;case Number:r=e===null?null:Number(e);break;case Object:case Array:try{r=JSON.parse(e)}catch(i){r=null}}return r}},Oc=(e,t)=>!Tb(e,t),ml={attribute:!0,type:String,converter:bo,reflect:!1,hasChanged:Oc};var Vu,Gu;(Vu=Symbol.metadata)!=null||(Symbol.metadata=Symbol("metadata")),(Gu=Zt.litPropertyMetadata)!=null||(Zt.litPropertyMetadata=new WeakMap);class Er extends HTMLElement{static addInitializer(t){var r;this._$Ei(),((r=this.l)!=null?r:this.l=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,r=ml){if(r.state&&(r.attribute=!1),this._$Ei(),this.elementProperties.set(t,r),!r.noAccessor){const i=Symbol(),n=this.getPropertyDescriptor(t,i,r);n!==void 0&&Pb(this.prototype,t,n)}}static getPropertyDescriptor(t,r,i){var o;const{get:n,set:s}=(o=Db(this.prototype,t))!=null?o:{get(){return this[r]},set(a){this[r]=a}};return{get(){return n==null?void 0:n.call(this)},set(a){const l=n==null?void 0:n.call(this);s.call(this,a),this.requestUpdate(t,l,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){var r;return(r=this.elementProperties.get(t))!=null?r:ml}static _$Ei(){if(this.hasOwnProperty(ui("elementProperties")))return;const t=Bb(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(ui("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(ui("properties"))){const r=this.properties,i=[...Mb(r),...Ob(r)];for(const n of i)this.createProperty(n,r[n])}const t=this[Symbol.metadata];if(t!==null){const r=litPropertyMetadata.get(t);if(r!==void 0)for(const[i,n]of r)this.elementProperties.set(i,n)}this._$Eh=new Map;for(const[r,i]of this.elementProperties){const n=this._$Eu(r,i);n!==void 0&&this._$Eh.set(n,r)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const r=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const n of i)r.unshift(fl(n))}else t!==void 0&&r.push(fl(t));return r}static _$Eu(t,r){const i=r.attribute;return i===!1?void 0:typeof i=="string"?i:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var t;this._$ES=new Promise(r=>this.enableUpdating=r),this._$AL=new Map,this._$E_(),this.requestUpdate(),(t=this.constructor.l)==null||t.forEach(r=>r(this))}addController(t){var r,i;((r=this._$EO)!=null?r:this._$EO=new Set).add(t),this.renderRoot!==void 0&&this.isConnected&&((i=t.hostConnected)==null||i.call(t))}removeController(t){var r;(r=this._$EO)==null||r.delete(t)}_$E_(){const t=new Map,r=this.constructor.elementProperties;for(const i of r.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);t.size>0&&(this._$Ep=t)}createRenderRoot(){var r;const t=(r=this.shadowRoot)!=null?r:this.attachShadow(this.constructor.shadowRootOptions);return Mc(t,this.constructor.elementStyles),t}connectedCallback(){var t,r;(t=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(r=this._$EO)==null||r.forEach(i=>{var n;return(n=i.hostConnected)==null?void 0:n.call(i)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$EO)==null||t.forEach(r=>{var i;return(i=r.hostDisconnected)==null?void 0:i.call(r)})}attributeChangedCallback(t,r,i){this._$AK(t,i)}_$EC(t,r){var s;const i=this.constructor.elementProperties.get(t),n=this.constructor._$Eu(t,i);if(n!==void 0&&i.reflect===!0){const o=(((s=i.converter)==null?void 0:s.toAttribute)!==void 0?i.converter:bo).toAttribute(r,i.type);this._$Em=t,o==null?this.removeAttribute(n):this.setAttribute(n,o),this._$Em=null}}_$AK(t,r){var s;const i=this.constructor,n=i._$Eh.get(t);if(n!==void 0&&this._$Em!==n){const o=i.getPropertyOptions(n),a=typeof o.converter=="function"?{fromAttribute:o.converter}:((s=o.converter)==null?void 0:s.fromAttribute)!==void 0?o.converter:bo;this._$Em=n,this[n]=a.fromAttribute(r,o.type),this._$Em=null}}requestUpdate(t,r,i){var n;if(t!==void 0){if(i!=null||(i=this.constructor.getPropertyOptions(t)),!((n=i.hasChanged)!=null?n:Oc)(this[t],r))return;this.P(t,r,i)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(t,r,i){var n;this._$AL.has(t)||this._$AL.set(t,r),i.reflect===!0&&this._$Em!==t&&((n=this._$Ej)!=null?n:this._$Ej=new Set).add(t)}_$ET(){return rt(this,null,function*(){this.isUpdatePending=!0;try{yield this._$ES}catch(r){Promise.reject(r)}const t=this.scheduleUpdate();return t!=null&&(yield t),!this.isUpdatePending})}scheduleUpdate(){return this.performUpdate()}performUpdate(){var i,n;if(!this.isUpdatePending)return;if(!this.hasUpdated){if((i=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[o,a]of this._$Ep)this[o]=a;this._$Ep=void 0}const s=this.constructor.elementProperties;if(s.size>0)for(const[o,a]of s)a.wrapped!==!0||this._$AL.has(o)||this[o]===void 0||this.P(o,this[o],a)}let t=!1;const r=this._$AL;try{t=this.shouldUpdate(r),t?(this.willUpdate(r),(n=this._$EO)==null||n.forEach(s=>{var o;return(o=s.hostUpdate)==null?void 0:o.call(s)}),this.update(r)):this._$EU()}catch(s){throw t=!1,this._$EU(),s}t&&this._$AE(r)}willUpdate(t){}_$AE(t){var r;(r=this._$EO)==null||r.forEach(i=>{var n;return(n=i.hostUpdated)==null?void 0:n.call(i)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Ej&&(this._$Ej=this._$Ej.forEach(r=>this._$EC(r,this[r]))),this._$EU()}updated(t){}firstUpdated(t){}}var ju;Er.elementStyles=[],Er.shadowRootOptions={mode:"open"},Er[ui("elementProperties")]=new Map,Er[ui("finalized")]=new Map,Ds==null||Ds({ReactiveElement:Er}),((ju=Zt.reactiveElementVersions)!=null?ju:Zt.reactiveElementVersions=[]).push("2.0.4");/**
|
|
31
44
|
* @license
|
|
32
45
|
* Copyright 2017 Google LLC
|
|
33
46
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
34
|
-
*/const
|
|
35
|
-
\f\r]`,Qr=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,
|
|
36
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),
|
|
47
|
+
*/const di=globalThis,xn=di.trustedTypes,_l=xn?xn.createPolicy("lit-html",{createHTML:e=>e}):void 0,Bc="$lit$",$t=`lit$${Math.random().toFixed(9).slice(2)}$`,Nc="?"+$t,Ib=`<${Nc}>`,dr=document,bi=()=>dr.createComment(""),vi=e=>e===null||typeof e!="object"&&typeof e!="function",pa=Array.isArray,Lb=e=>pa(e)||typeof(e==null?void 0:e[Symbol.iterator])=="function",Ms=`[
|
|
48
|
+
\f\r]`,Qr=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,gl=/-->/g,bl=/>/g,rr=RegExp(`>|${Ms}(?:([^\\s"'>=/]+)(${Ms}*=${Ms}*(?:[^
|
|
49
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),vl=/'/g,yl=/"/g,Ic=/^(?:script|style|textarea|title)$/i,Rr=Symbol.for("lit-noChange"),$e=Symbol.for("lit-nothing"),wl=new WeakMap,sr=dr.createTreeWalker(dr,129);function Lc(e,t){if(!pa(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return _l!==void 0?_l.createHTML(t):t}const Fb=(e,t)=>{const r=e.length-1,i=[];let n,s=t===2?"<svg>":t===3?"<math>":"",o=Qr;for(let a=0;a<r;a++){const l=e[a];let u,d,c=-1,h=0;for(;h<l.length&&(o.lastIndex=h,d=o.exec(l),d!==null);)h=o.lastIndex,o===Qr?d[1]==="!--"?o=gl:d[1]!==void 0?o=bl:d[2]!==void 0?(Ic.test(d[2])&&(n=RegExp("</"+d[2],"g")),o=rr):d[3]!==void 0&&(o=rr):o===rr?d[0]===">"?(o=n!=null?n:Qr,c=-1):d[1]===void 0?c=-2:(c=o.lastIndex-d[2].length,u=d[1],o=d[3]===void 0?rr:d[3]==='"'?yl:vl):o===yl||o===vl?o=rr:o===gl||o===bl?o=Qr:(o=rr,n=void 0);const f=o===rr&&e[a+1].startsWith("/>")?" ":"";s+=o===Qr?l+Ib:c>=0?(i.push(u),l.slice(0,c)+Bc+l.slice(c)+$t+f):l+$t+(c===-2?a:f)}return[Lc(e,s+(e[r]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),i]};class yi{constructor({strings:t,_$litType$:r},i){let n;this.parts=[];let s=0,o=0;const a=t.length-1,l=this.parts,[u,d]=Fb(t,r);if(this.el=yi.createElement(u,i),sr.currentNode=this.el.content,r===2||r===3){const c=this.el.content.firstChild;c.replaceWith(...c.childNodes)}for(;(n=sr.nextNode())!==null&&l.length<a;){if(n.nodeType===1){if(n.hasAttributes())for(const c of n.getAttributeNames())if(c.endsWith(Bc)){const h=d[o++],f=n.getAttribute(c).split($t),b=/([.?@])?(.*)/.exec(h);l.push({type:1,index:s,name:b[2],strings:f,ctor:b[1]==="."?Hb:b[1]==="?"?zb:b[1]==="@"?Yb:is}),n.removeAttribute(c)}else c.startsWith($t)&&(l.push({type:6,index:s}),n.removeAttribute(c));if(Ic.test(n.tagName)){const c=n.textContent.split($t),h=c.length-1;if(h>0){n.textContent=xn?xn.emptyScript:"";for(let f=0;f<h;f++)n.append(c[f],bi()),sr.nextNode(),l.push({type:2,index:++s});n.append(c[h],bi())}}}else if(n.nodeType===8)if(n.data===Nc)l.push({type:2,index:s});else{let c=-1;for(;(c=n.data.indexOf($t,c+1))!==-1;)l.push({type:7,index:s}),c+=$t.length-1}s++}}static createElement(t,r){const i=dr.createElement("template");return i.innerHTML=t,i}}function Hr(e,t,r=e,i){var o,a,l;if(t===Rr)return t;let n=i!==void 0?(o=r._$Co)==null?void 0:o[i]:r._$Cl;const s=vi(t)?void 0:t._$litDirective$;return(n==null?void 0:n.constructor)!==s&&((a=n==null?void 0:n._$AO)==null||a.call(n,!1),s===void 0?n=void 0:(n=new s(e),n._$AT(e,r,i)),i!==void 0?((l=r._$Co)!=null?l:r._$Co=[])[i]=n:r._$Cl=n),n!==void 0&&(t=Hr(e,n._$AS(e,t.values),n,i)),t}class Rb{constructor(t,r){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var u;const{el:{content:r},parts:i}=this._$AD,n=((u=t==null?void 0:t.creationScope)!=null?u:dr).importNode(r,!0);sr.currentNode=n;let s=sr.nextNode(),o=0,a=0,l=i[0];for(;l!==void 0;){if(o===l.index){let d;l.type===2?d=new Ri(s,s.nextSibling,this,t):l.type===1?d=new l.ctor(s,l.name,l.strings,this,t):l.type===6&&(d=new Ub(s,this,t)),this._$AV.push(d),l=i[++a]}o!==(l==null?void 0:l.index)&&(s=sr.nextNode(),o++)}return sr.currentNode=dr,n}p(t){let r=0;for(const i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(t,i,r),r+=i.strings.length-2):i._$AI(t[r])),r++}}class Ri{get _$AU(){var t,r;return(r=(t=this._$AM)==null?void 0:t._$AU)!=null?r:this._$Cv}constructor(t,r,i,n){var s;this.type=2,this._$AH=$e,this._$AN=void 0,this._$AA=t,this._$AB=r,this._$AM=i,this.options=n,this._$Cv=(s=n==null?void 0:n.isConnected)!=null?s:!0}get parentNode(){let t=this._$AA.parentNode;const r=this._$AM;return r!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=r.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,r=this){t=Hr(this,t,r),vi(t)?t===$e||t==null||t===""?(this._$AH!==$e&&this._$AR(),this._$AH=$e):t!==this._$AH&&t!==Rr&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):Lb(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==$e&&vi(this._$AH)?this._$AA.nextSibling.data=t:this.T(dr.createTextNode(t)),this._$AH=t}$(t){var s;const{values:r,_$litType$:i}=t,n=typeof i=="number"?this._$AC(t):(i.el===void 0&&(i.el=yi.createElement(Lc(i.h,i.h[0]),this.options)),i);if(((s=this._$AH)==null?void 0:s._$AD)===n)this._$AH.p(r);else{const o=new Rb(n,this),a=o.u(this.options);o.p(r),this.T(a),this._$AH=o}}_$AC(t){let r=wl.get(t.strings);return r===void 0&&wl.set(t.strings,r=new yi(t)),r}k(t){pa(this._$AH)||(this._$AH=[],this._$AR());const r=this._$AH;let i,n=0;for(const s of t)n===r.length?r.push(i=new Ri(this.O(bi()),this.O(bi()),this,this.options)):i=r[n],i._$AI(s),n++;n<r.length&&(this._$AR(i&&i._$AB.nextSibling,n),r.length=n)}_$AR(t=this._$AA.nextSibling,r){var i;for((i=this._$AP)==null?void 0:i.call(this,!1,!0,r);t&&t!==this._$AB;){const n=t.nextSibling;t.remove(),t=n}}setConnected(t){var r;this._$AM===void 0&&(this._$Cv=t,(r=this._$AP)==null||r.call(this,t))}}class is{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,r,i,n,s){this.type=1,this._$AH=$e,this._$AN=void 0,this.element=t,this.name=r,this._$AM=n,this.options=s,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=$e}_$AI(t,r=this,i,n){const s=this.strings;let o=!1;if(s===void 0)t=Hr(this,t,r,0),o=!vi(t)||t!==this._$AH&&t!==Rr,o&&(this._$AH=t);else{const a=t;let l,u;for(t=s[0],l=0;l<s.length-1;l++)u=Hr(this,a[i+l],r,l),u===Rr&&(u=this._$AH[l]),o||(o=!vi(u)||u!==this._$AH[l]),u===$e?t=$e:t!==$e&&(t+=(u!=null?u:"")+s[l+1]),this._$AH[l]=u}o&&!n&&this.j(t)}j(t){t===$e?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t!=null?t:"")}}class Hb extends is{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===$e?void 0:t}}class zb extends is{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==$e)}}class Yb extends is{constructor(t,r,i,n,s){super(t,r,i,n,s),this.type=5}_$AI(t,r=this){var o;if((t=(o=Hr(this,t,r,0))!=null?o:$e)===Rr)return;const i=this._$AH,n=t===$e&&i!==$e||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,s=t!==$e&&(i===$e||n);n&&this.element.removeEventListener(this.name,this,i),s&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var r,i;typeof this._$AH=="function"?this._$AH.call((i=(r=this.options)==null?void 0:r.host)!=null?i:this.element,t):this._$AH.handleEvent(t)}}class Ub{constructor(t,r,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=r,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){Hr(this,t)}}const Os=di.litHtmlPolyfillSupport;var qu;Os==null||Os(yi,Ri),((qu=di.litHtmlVersions)!=null?qu:di.litHtmlVersions=[]).push("3.2.1");const Wb=(e,t,r)=>{var s,o;const i=(s=r==null?void 0:r.renderBefore)!=null?s:t;let n=i._$litPart$;if(n===void 0){const a=(o=r==null?void 0:r.renderBefore)!=null?o:null;i._$litPart$=n=new Ri(t.insertBefore(bi(),a),a,void 0,r!=null?r:{})}return n._$AI(e),n};/**
|
|
37
50
|
* @license
|
|
38
51
|
* Copyright 2017 Google LLC
|
|
39
52
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
40
|
-
*/let Dr=class extends
|
|
53
|
+
*/let Dr=class extends Er{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var r,i;const t=super.createRenderRoot();return(i=(r=this.renderOptions).renderBefore)!=null||(r.renderBefore=t.firstChild),t}update(t){const r=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=Wb(r,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),(t=this._$Do)==null||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this._$Do)==null||t.setConnected(!1)}render(){return Rr}};var Zu;Dr._$litElement$=!0,Dr.finalized=!0,(Zu=globalThis.litElementHydrateSupport)==null||Zu.call(globalThis,{LitElement:Dr});const Bs=globalThis.litElementPolyfillSupport;Bs==null||Bs({LitElement:Dr});var Ku;((Ku=globalThis.litElementVersions)!=null?Ku:globalThis.litElementVersions=[]).push("4.1.1");/**
|
|
41
54
|
* @license
|
|
42
55
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
43
56
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
44
|
-
*/const
|
|
57
|
+
*/const $b=e=>class extends e{static get properties(){return{_theme:{type:String,readOnly:!0}}}static get observedAttributes(){return[...super.observedAttributes,"theme"]}attributeChangedCallback(r,i,n){super.attributeChangedCallback(r,i,n),r==="theme"&&this._set_theme(n)}};/**
|
|
45
58
|
* @license
|
|
46
59
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
47
60
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
48
|
-
*/const
|
|
49
|
-
`)}const
|
|
61
|
+
*/const Fc=[],vo=new Set,ma=new Set;function Rc(e){return e&&Object.prototype.hasOwnProperty.call(e,"__themes")}function Vb(e){return Rc(customElements.get(e))}function Gb(e=[]){return[e].flat(1/0).filter(t=>t instanceof fa?!0:(console.warn("An item in styles is not of type CSSResult. Use `unsafeCSS` or `css`."),!1))}function Hc(e,t){return(e||"").split(" ").some(r=>new RegExp(`^${r.split("*").join(".*")}$`,"u").test(t))}function zc(e){return e.map(t=>t.cssText).join(`
|
|
62
|
+
`)}const Sn="vaadin-themable-mixin-style";function jb(e,t){const r=document.createElement("style");r.id=Sn,r.textContent=zc(e),t.content.appendChild(r)}function qb(e){if(!e.shadowRoot)return;const t=e.constructor;if(e instanceof Dr)[...e.shadowRoot.querySelectorAll("style")].forEach(r=>r.remove()),Mc(e.shadowRoot,t.elementStyles);else{const r=e.shadowRoot.getElementById(Sn),i=t.prototype._template;r.textContent=i.content.getElementById(Sn).textContent}}function Zb(e){vo.forEach(t=>{const r=t.deref();r instanceof e?qb(r):r||vo.delete(t)})}function Yc(e){if(e.prototype instanceof Dr)e.elementStyles=e.finalizeStyles(e.styles);else{const t=e.prototype._template;t.content.getElementById(Sn).textContent=zc(e.getStylesForThis())}ma.forEach(t=>{const r=customElements.get(t);r!==e&&r.prototype instanceof e&&Yc(r)})}function Kb(e,t){const r=e.__themes;return!r||!t?!1:r.some(i=>i.styles.some(n=>t.some(s=>s.cssText===n.cssText)))}function Fe(e,t,r={}){t=Gb(t),window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.registerStyles(e,t,r):Fc.push({themeFor:e,styles:t,include:r.include,moduleId:r.moduleId}),e&&ma.forEach(i=>{if(Hc(e,i)&&Vb(i)){const n=customElements.get(i);Kb(n,t)?console.warn(`Registering styles that already exist for ${i}`):(!window.Vaadin||!window.Vaadin.suppressPostFinalizeStylesWarning)&&console.warn(`The custom element definition for "${i}" was finalized before a style module was registered. Ideally, import component specific style modules before importing the corresponding custom element. This warning can be suppressed by setting "window.Vaadin.suppressPostFinalizeStylesWarning = true".`),Yc(n),Zb(n)}})}function yo(){return window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.getAllThemes():Fc}function Xb(e=""){let t=0;return e.startsWith("lumo-")||e.startsWith("material-")?t=1:e.startsWith("vaadin-")&&(t=2),t}function Uc(e){const t=[];return e.include&&[].concat(e.include).forEach(r=>{const i=yo().find(n=>n.moduleId===r);i?t.push(...Uc(i),...i.styles):console.warn(`Included moduleId ${r} not found in style registry`)},e.styles),t}function Jb(e){const t=`${e}-default-theme`,r=yo().filter(i=>i.moduleId!==t&&Hc(i.themeFor,e)).map(i=>Zr(er({},i),{styles:[...Uc(i),...i.styles],includePriority:Xb(i.moduleId)})).sort((i,n)=>n.includePriority-i.includePriority);return r.length>0?r:yo().filter(i=>i.moduleId===t)}const fr=e=>class extends $b(e){constructor(){super(),vo.add(new WeakRef(this))}static finalize(){if(super.finalize(),this.is&&ma.add(this.is),this.elementStyles)return;const r=this.prototype._template;!r||Rc(this)||jb(this.getStylesForThis(),r)}static finalizeStyles(r){const i=this.getStylesForThis();return r?[...[r].flat(1/0),...i]:i}static getStylesForThis(){const r=e.__themes||[],i=Object.getPrototypeOf(this.prototype),n=(i?i.constructor.__themes:[])||[];this.__themes=[...r,...n,...Jb(this.is)];const s=this.__themes.flatMap(o=>o.styles);return s.filter((o,a)=>a===s.lastIndexOf(o))}};/**
|
|
50
63
|
* @license
|
|
51
64
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
52
65
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
53
|
-
*/const
|
|
54
|
-
`).replace(":host","html"),document.head.insertAdjacentElement("afterbegin",r)},jr=(e,...t)=>{
|
|
66
|
+
*/const Qb=(e,...t)=>{const r=document.createElement("style");r.id=e,r.textContent=t.map(i=>i.toString()).join(`
|
|
67
|
+
`).replace(":host","html"),document.head.insertAdjacentElement("afterbegin",r)},jr=(e,...t)=>{Qb(`lumo-${e}`,t)};/**
|
|
55
68
|
* @license
|
|
56
69
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
57
70
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
58
|
-
*/const
|
|
71
|
+
*/const ev=_e`
|
|
59
72
|
:host {
|
|
60
73
|
--lumo-size-xs: 1.625rem;
|
|
61
74
|
--lumo-size-s: 1.875rem;
|
|
@@ -70,11 +83,11 @@ G.version="2.30.1";Em(Ae);G.fn=F;G.min=h0;G.max=f0;G.now=p0;G.utc=yt;G.unix=Ug;G
|
|
|
70
83
|
/* For backwards compatibility */
|
|
71
84
|
--lumo-icon-size: var(--lumo-icon-size-m);
|
|
72
85
|
}
|
|
73
|
-
`;jr("sizing-props",
|
|
86
|
+
`;jr("sizing-props",ev);/**
|
|
74
87
|
* @license
|
|
75
88
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
76
89
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
77
|
-
*/const
|
|
90
|
+
*/const tv=_e`
|
|
78
91
|
:host {
|
|
79
92
|
/* Square */
|
|
80
93
|
--lumo-space-xs: 0.25rem;
|
|
@@ -97,11 +110,11 @@ G.version="2.30.1";Em(Ae);G.fn=F;G.min=h0;G.max=f0;G.now=p0;G.utc=yt;G.unix=Ug;G
|
|
|
97
110
|
--lumo-space-tall-l: var(--lumo-space-l) calc(var(--lumo-space-l) / 2);
|
|
98
111
|
--lumo-space-tall-xl: var(--lumo-space-xl) calc(var(--lumo-space-xl) / 2);
|
|
99
112
|
}
|
|
100
|
-
`;jr("spacing-props",
|
|
113
|
+
`;jr("spacing-props",tv);/**
|
|
101
114
|
* @license
|
|
102
115
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
103
116
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
104
|
-
*/const
|
|
117
|
+
*/const rv=_e`
|
|
105
118
|
:host {
|
|
106
119
|
/* Border radius */
|
|
107
120
|
--lumo-border-radius-s: 0.25em; /* Checkbox, badge, date-picker year indicator, etc */
|
|
@@ -201,11 +214,11 @@ G.version="2.30.1";Em(Ae);G.fn=F;G.min=h0;G.max=f0;G.now=p0;G.utc=yt;G.unix=Ug;G
|
|
|
201
214
|
--vaadin-input-field-value-font-size: var(--lumo-font-size-m);
|
|
202
215
|
--vaadin-input-field-value-font-weight: 500;
|
|
203
216
|
}
|
|
204
|
-
`;jr("style-props",
|
|
217
|
+
`;jr("style-props",rv);/**
|
|
205
218
|
* @license
|
|
206
219
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
207
220
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
208
|
-
*/const
|
|
221
|
+
*/const iv=_e`
|
|
209
222
|
:host {
|
|
210
223
|
/* Base (background) */
|
|
211
224
|
--lumo-base-color: #fff;
|
|
@@ -290,7 +303,7 @@ G.version="2.30.1";Em(Ae);G.fn=F;G.min=h0;G.max=f0;G.now=p0;G.utc=yt;G.unix=Ug;G
|
|
|
290
303
|
--lumo-disabled-text-color: GrayText;
|
|
291
304
|
}
|
|
292
305
|
}
|
|
293
|
-
`;jr("color-props",
|
|
306
|
+
`;jr("color-props",iv);const nv=_e`
|
|
294
307
|
[theme~='dark'] {
|
|
295
308
|
/* Base (background) */
|
|
296
309
|
--lumo-base-color: hsl(214, 35%, 21%);
|
|
@@ -408,11 +421,11 @@ G.version="2.30.1";Em(Ae);G.fn=F;G.min=h0;G.max=f0;G.now=p0;G.utc=yt;G.unix=Ug;G
|
|
|
408
421
|
pre code {
|
|
409
422
|
background: transparent;
|
|
410
423
|
}
|
|
411
|
-
`;Fe("",
|
|
424
|
+
`;Fe("",nv,{moduleId:"lumo-color"});/**
|
|
412
425
|
* @license
|
|
413
426
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
414
427
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
415
|
-
*/const
|
|
428
|
+
*/const sv=_e`
|
|
416
429
|
:host {
|
|
417
430
|
/* prettier-ignore */
|
|
418
431
|
--lumo-font-family: -apple-system, BlinkMacSystemFont, 'Roboto', 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
|
|
@@ -432,7 +445,7 @@ G.version="2.30.1";Em(Ae);G.fn=F;G.min=h0;G.max=f0;G.now=p0;G.utc=yt;G.unix=Ug;G
|
|
|
432
445
|
--lumo-line-height-s: 1.375;
|
|
433
446
|
--lumo-line-height-m: 1.625;
|
|
434
447
|
}
|
|
435
|
-
`,
|
|
448
|
+
`,ov=_e`
|
|
436
449
|
body,
|
|
437
450
|
:host {
|
|
438
451
|
font-family: var(--lumo-font-family);
|
|
@@ -524,11 +537,11 @@ G.version="2.30.1";Em(Ae);G.fn=F;G.min=h0;G.max=f0;G.now=p0;G.utc=yt;G.unix=Ug;G
|
|
|
524
537
|
border-left: none;
|
|
525
538
|
border-right: 2px solid var(--lumo-contrast-30pct);
|
|
526
539
|
}
|
|
527
|
-
`;Fe("",
|
|
540
|
+
`;Fe("",ov,{moduleId:"lumo-typography"});jr("typography-props",sv);/**
|
|
528
541
|
* @license
|
|
529
542
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
530
543
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
531
|
-
*/const
|
|
544
|
+
*/const Wc=_e`
|
|
532
545
|
:host {
|
|
533
546
|
top: var(--lumo-space-m);
|
|
534
547
|
right: var(--lumo-space-m);
|
|
@@ -593,11 +606,11 @@ G.version="2.30.1";Em(Ae);G.fn=F;G.min=h0;G.max=f0;G.now=p0;G.utc=yt;G.unix=Ug;G
|
|
|
593
606
|
opacity: 1;
|
|
594
607
|
}
|
|
595
608
|
}
|
|
596
|
-
`;Fe("",
|
|
609
|
+
`;Fe("",Wc,{moduleId:"lumo-overlay"});/**
|
|
597
610
|
* @license
|
|
598
611
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
599
612
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
600
|
-
*/const
|
|
613
|
+
*/const $c=_e`
|
|
601
614
|
:host([opening]),
|
|
602
615
|
:host([closing]) {
|
|
603
616
|
animation: 0.14s lumo-overlay-dummy-animation;
|
|
@@ -627,7 +640,7 @@ G.version="2.30.1";Em(Ae);G.fn=F;G.min=h0;G.max=f0;G.now=p0;G.utc=yt;G.unix=Ug;G
|
|
|
627
640
|
opacity: 0;
|
|
628
641
|
}
|
|
629
642
|
}
|
|
630
|
-
`;Fe("",
|
|
643
|
+
`;Fe("",$c,{moduleId:"lumo-menu-overlay-core"});const av=_e`
|
|
631
644
|
/* Small viewport (bottom sheet) styles */
|
|
632
645
|
/* Use direct media queries instead of the state attributes ([phone] and [fullscreen]) provided by the elements */
|
|
633
646
|
@media (max-width: 450px), (max-height: 450px) {
|
|
@@ -689,7 +702,7 @@ G.version="2.30.1";Em(Ae);G.fn=F;G.min=h0;G.max=f0;G.now=p0;G.utc=yt;G.unix=Ug;G
|
|
|
689
702
|
transform: translateY(150%);
|
|
690
703
|
}
|
|
691
704
|
}
|
|
692
|
-
`,
|
|
705
|
+
`,Vc=[Wc,$c,av];Fe("",Vc,{moduleId:"lumo-menu-overlay"});const lv=_e`
|
|
693
706
|
[part='overlay'] {
|
|
694
707
|
/*
|
|
695
708
|
Width:
|
|
@@ -734,7 +747,7 @@ G.version="2.30.1";Em(Ae);G.fn=F;G.min=h0;G.max=f0;G.now=p0;G.utc=yt;G.unix=Ug;G
|
|
|
734
747
|
max-height: 70vh;
|
|
735
748
|
}
|
|
736
749
|
}
|
|
737
|
-
`;Fe("vaadin-date-picker-overlay",[
|
|
750
|
+
`;Fe("vaadin-date-picker-overlay",[Vc,lv],{moduleId:"lumo-date-picker-overlay"});const uv=_e`
|
|
738
751
|
:host {
|
|
739
752
|
/* Sizing */
|
|
740
753
|
--lumo-button-size: var(--lumo-size-m);
|
|
@@ -1010,7 +1023,7 @@ G.version="2.30.1";Em(Ae);G.fn=F;G.min=h0;G.max=f0;G.now=p0;G.utc=yt;G.unix=Ug;G
|
|
|
1010
1023
|
margin-left: 0;
|
|
1011
1024
|
margin-right: 0;
|
|
1012
1025
|
}
|
|
1013
|
-
`;Fe("vaadin-button",
|
|
1026
|
+
`;Fe("vaadin-button",uv,{moduleId:"lumo-button"});Fe("vaadin-date-picker-year",_e`
|
|
1014
1027
|
:host([current]) [part='year-number'] {
|
|
1015
1028
|
color: var(--lumo-primary-text-color);
|
|
1016
1029
|
}
|
|
@@ -1513,10 +1526,10 @@ G.version="2.30.1";Em(Ae);G.fn=F;G.min=h0;G.max=f0;G.now=p0;G.utc=yt;G.unix=Ug;G
|
|
|
1513
1526
|
* @license
|
|
1514
1527
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
1515
1528
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1516
|
-
*/const
|
|
1529
|
+
*/const dv=_e`
|
|
1517
1530
|
@font-face {
|
|
1518
1531
|
font-family: 'lumo-icons';
|
|
1519
|
-
src: url(data:application/font-woff;charset=utf-8;base64,
|
|
1532
|
+
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==)
|
|
1520
1533
|
format('woff');
|
|
1521
1534
|
font-weight: normal;
|
|
1522
1535
|
font-style: normal;
|
|
@@ -1546,33 +1559,31 @@ G.version="2.30.1";Em(Ae);G.fn=F;G.min=h0;G.max=f0;G.now=p0;G.utc=yt;G.unix=Ug;G
|
|
|
1546
1559
|
--lumo-icons-cog: '\\ea15';
|
|
1547
1560
|
--lumo-icons-cross: '\\ea16';
|
|
1548
1561
|
--lumo-icons-download: '\\ea17';
|
|
1549
|
-
--lumo-icons-
|
|
1550
|
-
--lumo-icons-
|
|
1551
|
-
--lumo-icons-
|
|
1552
|
-
--lumo-icons-
|
|
1553
|
-
--lumo-icons-eye: '\\ea1c';
|
|
1554
|
-
--lumo-icons-
|
|
1555
|
-
--lumo-icons-
|
|
1556
|
-
--lumo-icons-
|
|
1557
|
-
--lumo-icons-
|
|
1558
|
-
--lumo-icons-
|
|
1559
|
-
--lumo-icons-
|
|
1560
|
-
--lumo-icons-
|
|
1561
|
-
--lumo-icons-
|
|
1562
|
-
--lumo-icons-
|
|
1563
|
-
--lumo-icons-
|
|
1564
|
-
--lumo-icons-
|
|
1565
|
-
--lumo-icons-
|
|
1566
|
-
--lumo-icons-
|
|
1567
|
-
--lumo-icons-
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
}
|
|
1571
|
-
`;jr("font-icons",uv);/**
|
|
1562
|
+
--lumo-icons-dropdown: '\\ea18';
|
|
1563
|
+
--lumo-icons-edit: '\\ea19';
|
|
1564
|
+
--lumo-icons-error: '\\ea1a';
|
|
1565
|
+
--lumo-icons-eye: '\\ea1b';
|
|
1566
|
+
--lumo-icons-eye-disabled: '\\ea1c';
|
|
1567
|
+
--lumo-icons-menu: '\\ea1d';
|
|
1568
|
+
--lumo-icons-minus: '\\ea1e';
|
|
1569
|
+
--lumo-icons-ordered-list: '\\ea1f';
|
|
1570
|
+
--lumo-icons-phone: '\\ea20';
|
|
1571
|
+
--lumo-icons-photo: '\\ea21';
|
|
1572
|
+
--lumo-icons-play: '\\ea22';
|
|
1573
|
+
--lumo-icons-plus: '\\ea23';
|
|
1574
|
+
--lumo-icons-redo: '\\ea24';
|
|
1575
|
+
--lumo-icons-reload: '\\ea25';
|
|
1576
|
+
--lumo-icons-search: '\\ea26';
|
|
1577
|
+
--lumo-icons-undo: '\\ea27';
|
|
1578
|
+
--lumo-icons-unordered-list: '\\ea28';
|
|
1579
|
+
--lumo-icons-upload: '\\ea29';
|
|
1580
|
+
--lumo-icons-user: '\\ea2a';
|
|
1581
|
+
}
|
|
1582
|
+
`;jr("font-icons",dv);/**
|
|
1572
1583
|
* @license
|
|
1573
1584
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
1574
1585
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1575
|
-
*/const
|
|
1586
|
+
*/const Gc=_e`
|
|
1576
1587
|
[part$='button'] {
|
|
1577
1588
|
flex: none;
|
|
1578
1589
|
width: 1em;
|
|
@@ -1599,11 +1610,11 @@ G.version="2.30.1";Em(Ae);G.fn=F;G.min=h0;G.max=f0;G.now=p0;G.utc=yt;G.unix=Ug;G
|
|
|
1599
1610
|
font-family: 'lumo-icons';
|
|
1600
1611
|
display: block;
|
|
1601
1612
|
}
|
|
1602
|
-
`;Fe("",
|
|
1613
|
+
`;Fe("",Gc,{moduleId:"lumo-field-button"});/**
|
|
1603
1614
|
* @license
|
|
1604
1615
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
1605
1616
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1606
|
-
*/const
|
|
1617
|
+
*/const cv=_e`
|
|
1607
1618
|
:host {
|
|
1608
1619
|
--_helper-spacing: var(--vaadin-input-field-helper-spacing, 0.4em);
|
|
1609
1620
|
}
|
|
@@ -1663,7 +1674,7 @@ G.version="2.30.1";Em(Ae);G.fn=F;G.min=h0;G.max=f0;G.now=p0;G.utc=yt;G.unix=Ug;G
|
|
|
1663
1674
|
* @license
|
|
1664
1675
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
1665
1676
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1666
|
-
*/const
|
|
1677
|
+
*/const jc=_e`
|
|
1667
1678
|
[part='label'] {
|
|
1668
1679
|
align-self: flex-start;
|
|
1669
1680
|
color: var(--vaadin-input-field-label-color, var(--lumo-secondary-text-color));
|
|
@@ -1775,11 +1786,11 @@ G.version="2.30.1";Em(Ae);G.fn=F;G.min=h0;G.max=f0;G.now=p0;G.utc=yt;G.unix=Ug;G
|
|
|
1775
1786
|
margin-left: 0;
|
|
1776
1787
|
margin-right: calc(var(--lumo-border-radius-m) / 4);
|
|
1777
1788
|
}
|
|
1778
|
-
`;Fe("",
|
|
1789
|
+
`;Fe("",jc,{moduleId:"lumo-required-field"});/**
|
|
1779
1790
|
* @license
|
|
1780
1791
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
1781
1792
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1782
|
-
*/const
|
|
1793
|
+
*/const hv=_e`
|
|
1783
1794
|
:host {
|
|
1784
1795
|
--lumo-text-field-size: var(--lumo-size-m);
|
|
1785
1796
|
color: var(--vaadin-input-field-value-color, var(--lumo-body-text-color));
|
|
@@ -1910,7 +1921,7 @@ G.version="2.30.1";Em(Ae);G.fn=F;G.min=h0;G.max=f0;G.now=p0;G.utc=yt;G.unix=Ug;G
|
|
|
1910
1921
|
[part='clear-button']::before {
|
|
1911
1922
|
content: var(--lumo-icons-cross);
|
|
1912
1923
|
}
|
|
1913
|
-
|
|
1924
|
+
`,qc=[jc,Gc,cv,hv];Fe("",qc,{moduleId:"lumo-input-field-shared-styles"});const fv=_e`
|
|
1914
1925
|
[part='toggle-button']::before {
|
|
1915
1926
|
content: var(--lumo-icons-calendar);
|
|
1916
1927
|
}
|
|
@@ -1932,7 +1943,7 @@ G.version="2.30.1";Em(Ae);G.fn=F;G.min=h0;G.max=f0;G.now=p0;G.utc=yt;G.unix=Ug;G
|
|
|
1932
1943
|
:host([dir='rtl']) [part='input-field'] ::slotted(input:placeholder-shown) {
|
|
1933
1944
|
--_lumo-text-field-overflow-mask-image: none;
|
|
1934
1945
|
}
|
|
1935
|
-
`;Fe("vaadin-date-picker",[
|
|
1946
|
+
`;Fe("vaadin-date-picker",[qc,fv],{moduleId:"lumo-date-picker"});/**
|
|
1936
1947
|
@license
|
|
1937
1948
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
1938
1949
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -1948,7 +1959,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
1948
1959
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
1949
1960
|
Code distributed by Google as part of the polymer project is also
|
|
1950
1961
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
1951
|
-
*/let
|
|
1962
|
+
*/let pv=/(url\()([^)]*)(\))/g,mv=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/,Xi,it;function ci(e,t){if(e&&mv.test(e)||e==="//")return e;if(Xi===void 0){Xi=!1;try{const r=new URL("b","http://a");r.pathname="c%20d",Xi=r.href==="http://a/c%20d"}catch(r){}}if(t||(t=document.baseURI||window.location.href),Xi)try{return new URL(e,t).href}catch(r){return e}return it||(it=document.implementation.createHTMLDocument("temp"),it.base=it.createElement("base"),it.head.appendChild(it.base),it.anchor=it.createElement("a"),it.body.appendChild(it.anchor)),it.base.href=t,it.anchor.href=e,it.anchor.href||e}function _a(e,t){return e.replace(pv,function(r,i,n,s){return i+"'"+ci(n.replace(/["']/g,""),t)+"'"+s})}function ga(e){return e.substring(0,e.lastIndexOf("/")+1)}/**
|
|
1952
1963
|
@license
|
|
1953
1964
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
1954
1965
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -1956,7 +1967,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
1956
1967
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
1957
1968
|
Code distributed by Google as part of the polymer project is also
|
|
1958
1969
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
1959
|
-
*/const
|
|
1970
|
+
*/const Zc=!window.ShadyDOM||!window.ShadyDOM.inUse;!window.ShadyCSS||window.ShadyCSS.nativeCss;const _v=Zc&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype&&(()=>{try{const e=new CSSStyleSheet;e.replaceSync("");const t=document.createElement("div");return t.attachShadow({mode:"open"}),t.shadowRoot.adoptedStyleSheets=[e],t.shadowRoot.adoptedStyleSheets[0]===e}catch(e){return!1}})();let gv=window.Polymer&&window.Polymer.rootPath||ga(document.baseURI||window.location.href),kn=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0;window.Polymer&&window.Polymer.setPassiveTouchGestures;let An=window.Polymer&&window.Polymer.strictTemplatePolicy||!1,bv=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,Kc=window.Polymer&&window.Polymer.legacyOptimizations||!1,Xc=window.Polymer&&window.Polymer.legacyWarnings||!1,vv=window.Polymer&&window.Polymer.syncInitialRender||!1,wo=window.Polymer&&window.Polymer.legacyUndefined||!1,yv=window.Polymer&&window.Polymer.orderedComputed||!1,Cl=window.Polymer&&window.Polymer.removeNestedTemplates||!1,wv=window.Polymer&&window.Polymer.fastDomIf||!1,El=window.Polymer&&window.Polymer.suppressTemplateNotifications||!1;window.Polymer&&window.Polymer.legacyNoObservedAttributes;let Cv=window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1;/**
|
|
1960
1971
|
@license
|
|
1961
1972
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
1962
1973
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -1964,7 +1975,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
1964
1975
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
1965
1976
|
Code distributed by Google as part of the polymer project is also
|
|
1966
1977
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
1967
|
-
*/let
|
|
1978
|
+
*/let Ev=0;const Ye=function(e){let t=e.__mixinApplications;t||(t=new WeakMap,e.__mixinApplications=t);let r=Ev++;function i(n){let s=n.__mixinSet;if(s&&s[r])return n;let o=t,a=o.get(n);if(!a){a=e(n),o.set(n,a);let l=Object.create(a.__mixinSet||s||null);l[r]=!0,a.__mixinSet=l}return a}return i};/**
|
|
1968
1979
|
@license
|
|
1969
1980
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
1970
1981
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -1972,7 +1983,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
1972
1983
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
1973
1984
|
Code distributed by Google as part of the polymer project is also
|
|
1974
1985
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
1975
|
-
*/let
|
|
1986
|
+
*/let ba={},Jc={};function xl(e,t){ba[e]=Jc[e.toLowerCase()]=t}function Sl(e){return ba[e]||Jc[e.toLowerCase()]}function xv(e){e.querySelector("style")&&console.warn("dom-module %s has style outside template",e.id)}class wi extends HTMLElement{static get observedAttributes(){return["id"]}static import(t,r){if(t){let i=Sl(t);return i&&r?i.querySelector(r):i}return null}attributeChangedCallback(t,r,i,n){r!==i&&this.register()}get assetpath(){if(!this.__assetpath){const t=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument,r=ci(this.getAttribute("assetpath")||"",t.baseURI);this.__assetpath=ga(r)}return this.__assetpath}register(t){if(t=t||this.id,t){if(An&&Sl(t)!==void 0)throw xl(t,null),new Error(`strictTemplatePolicy: dom-module ${t} re-registered`);this.id=t,xl(t,this),xv(this)}}}wi.prototype.modules=ba;customElements.define("dom-module",wi);/**
|
|
1976
1987
|
@license
|
|
1977
1988
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
1978
1989
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -1980,7 +1991,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
1980
1991
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
1981
1992
|
Code distributed by Google as part of the polymer project is also
|
|
1982
1993
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
1983
|
-
*/const
|
|
1994
|
+
*/const Sv="link[rel=import][type~=css]",kv="include",kl="shady-unscoped";function Qc(e){return wi.import(e)}function Al(e){let t=e.body?e.body:e;const r=_a(t.textContent,e.baseURI),i=document.createElement("style");return i.textContent=r,i}function Av(e){const t=e.trim().split(/\s+/),r=[];for(let i=0;i<t.length;i++)r.push(...Tv(t[i]));return r}function Tv(e){const t=Qc(e);if(!t)return console.warn("Could not find style data in module named",e),[];if(t._styles===void 0){const r=[];r.push(...th(t));const i=t.querySelector("template");i&&r.push(...eh(i,t.assetpath)),t._styles=r}return t._styles}function eh(e,t){if(!e._styles){const r=[],i=e.content.querySelectorAll("style");for(let n=0;n<i.length;n++){let s=i[n],o=s.getAttribute(kv);o&&r.push(...Av(o).filter(function(a,l,u){return u.indexOf(a)===l})),t&&(s.textContent=_a(s.textContent,t)),r.push(s)}e._styles=r}return e._styles}function Pv(e){let t=Qc(e);return t?th(t):[]}function th(e){const t=[],r=e.querySelectorAll(Sv);for(let i=0;i<r.length;i++){let n=r[i];if(n.import){const s=n.import,o=n.hasAttribute(kl);if(o&&!s._unscopedStyle){const a=Al(s);a.setAttribute(kl,""),s._unscopedStyle=a}else s._style||(s._style=Al(s));t.push(o?s._unscopedStyle:s._style)}}return t}/**
|
|
1984
1995
|
@license
|
|
1985
1996
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
1986
1997
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -1988,7 +1999,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
1988
1999
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
1989
2000
|
Code distributed by Google as part of the polymer project is also
|
|
1990
2001
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
1991
|
-
*/const
|
|
2002
|
+
*/const Ve=window.ShadyDOM&&window.ShadyDOM.noPatch&&window.ShadyDOM.wrap?window.ShadyDOM.wrap:window.ShadyDOM?e=>ShadyDOM.patch(e):e=>e;/**
|
|
1992
2003
|
@license
|
|
1993
2004
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
1994
2005
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -1996,7 +2007,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
1996
2007
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
1997
2008
|
Code distributed by Google as part of the polymer project is also
|
|
1998
2009
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
1999
|
-
*/function
|
|
2010
|
+
*/function Co(e){return e.indexOf(".")>=0}function pr(e){let t=e.indexOf(".");return t===-1?e:e.slice(0,t)}function rh(e,t){return e.indexOf(t+".")===0}function Ci(e,t){return t.indexOf(e+".")===0}function Ei(e,t,r){return t+r.slice(e.length)}function Dv(e,t){return e===t||rh(e,t)||Ci(e,t)}function ni(e){if(Array.isArray(e)){let t=[];for(let r=0;r<e.length;r++){let i=e[r].toString().split(".");for(let n=0;n<i.length;n++)t.push(i[n])}return t.join(".")}else return e}function ih(e){return Array.isArray(e)?ni(e).split("."):e.toString().split(".")}function Qe(e,t,r){let i=e,n=ih(t);for(let s=0;s<n.length;s++){if(!i)return;let o=n[s];i=i[o]}return r&&(r.path=n.join(".")),i}function Tl(e,t,r){let i=e,n=ih(t),s=n[n.length-1];if(n.length>1){for(let o=0;o<n.length-1;o++){let a=n[o];if(i=i[a],!i)return}i[s]=r}else i[t]=r;return n.join(".")}/**
|
|
2000
2011
|
@license
|
|
2001
2012
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
2002
2013
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -2004,7 +2015,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
2004
2015
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
2005
2016
|
Code distributed by Google as part of the polymer project is also
|
|
2006
2017
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
2007
|
-
*/const
|
|
2018
|
+
*/const Tn={},Mv=/-[a-z]/g,Ov=/([A-Z])/g;function nh(e){return Tn[e]||(Tn[e]=e.indexOf("-")<0?e:e.replace(Mv,t=>t[1].toUpperCase()))}function ns(e){return Tn[e]||(Tn[e]=e.replace(Ov,"-$1").toLowerCase())}/**
|
|
2008
2019
|
@license
|
|
2009
2020
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
2010
2021
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -2012,7 +2023,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
2012
2023
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
2013
2024
|
Code distributed by Google as part of the polymer project is also
|
|
2014
2025
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
2015
|
-
*/let
|
|
2026
|
+
*/let Bv=0,sh=0,Mr=[],Nv=0,Eo=!1,oh=document.createTextNode("");new window.MutationObserver(Iv).observe(oh,{characterData:!0});function Iv(){Eo=!1;const e=Mr.length;for(let t=0;t<e;t++){let r=Mr[t];if(r)try{r()}catch(i){setTimeout(()=>{throw i})}}Mr.splice(0,e),sh+=e}const Lv={after(e){return{run(t){return window.setTimeout(t,e)},cancel(t){window.clearTimeout(t)}}},run(e,t){return window.setTimeout(e,t)},cancel(e){window.clearTimeout(e)}},ah={run(e){return Eo||(Eo=!0,oh.textContent=Nv++),Mr.push(e),Bv++},cancel(e){const t=e-sh;if(t>=0){if(!Mr[t])throw new Error("invalid async handle: "+e);Mr[t]=null}}};/**
|
|
2016
2027
|
@license
|
|
2017
2028
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
2018
2029
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -2020,7 +2031,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
2020
2031
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
2021
2032
|
Code distributed by Google as part of the polymer project is also
|
|
2022
2033
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
2023
|
-
*/const
|
|
2034
|
+
*/const Fv=ah,lh=Ye(e=>{class t extends e{static createProperties(i){const n=this.prototype;for(let s in i)s in n||n._createPropertyAccessor(s)}static attributeNameForProperty(i){return i.toLowerCase()}static typeForProperty(i){}_createPropertyAccessor(i,n){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,n))}_addPropertyToAttributeMap(i){this.hasOwnProperty(JSCompiler_renameProperty("__dataAttributes",this))||(this.__dataAttributes=Object.assign({},this.__dataAttributes));let n=this.__dataAttributes[i];return n||(n=this.constructor.attributeNameForProperty(i),this.__dataAttributes[n]=i),n}_definePropertyAccessor(i,n){Object.defineProperty(this,i,{get(){return this.__data[i]},set:n?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,n){this._setPendingProperty(i,n)&&this._invalidateProperties()}_getProperty(i){return this.__data[i]}_setPendingProperty(i,n,s){let o=this.__data[i],a=this._shouldPropertyChange(i,n,o);return a&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),this.__dataOld&&!(i in this.__dataOld)&&(this.__dataOld[i]=o),this.__data[i]=n,this.__dataPending[i]=n),a}_isPropertyPending(i){return!!(this.__dataPending&&this.__dataPending.hasOwnProperty(i))}_invalidateProperties(){!this.__dataInvalid&&this.__dataReady&&(this.__dataInvalid=!0,Fv.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,n=this.__dataPending,s=this.__dataOld;this._shouldPropertiesChange(i,n,s)&&(this.__dataPending=null,this.__dataOld=null,this._propertiesChanged(i,n,s)),this.__dataCounter--}_shouldPropertiesChange(i,n,s){return!!n}_propertiesChanged(i,n,s){}_shouldPropertyChange(i,n,s){return s!==n&&(s===s||n===n)}attributeChangedCallback(i,n,s,o){n!==s&&this._attributeToProperty(i,s),super.attributeChangedCallback&&super.attributeChangedCallback(i,n,s,o)}_attributeToProperty(i,n,s){if(!this.__serializing){const o=this.__dataAttributes,a=o&&o[i]||i;this[a]=this._deserializeValue(n,s||this.constructor.typeForProperty(a))}}_propertyToAttribute(i,n,s){this.__serializing=!0,s=arguments.length<3?this[i]:s,this._valueToNodeAttribute(this,s,n||this.constructor.attributeNameForProperty(i)),this.__serializing=!1}_valueToNodeAttribute(i,n,s){const o=this._serializeValue(n);(s==="class"||s==="name"||s==="slot")&&(i=Ve(i)),o===void 0?i.removeAttribute(s):i.setAttribute(s,o===""&&window.trustedTypes?window.trustedTypes.emptyScript:o)}_serializeValue(i){switch(typeof i){case"boolean":return i?"":void 0;default:return i!=null?i.toString():void 0}}_deserializeValue(i,n){switch(n){case Boolean:return i!==null;case Number:return Number(i);default:return i}}}return t});/**
|
|
2024
2035
|
@license
|
|
2025
2036
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
2026
2037
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -2028,7 +2039,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
2028
2039
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
2029
2040
|
Code distributed by Google as part of the polymer project is also
|
|
2030
2041
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
2031
|
-
*/const
|
|
2042
|
+
*/const uh={};let Ji=HTMLElement.prototype;for(;Ji;){let e=Object.getOwnPropertyNames(Ji);for(let t=0;t<e.length;t++)uh[e[t]]=!0;Ji=Object.getPrototypeOf(Ji)}const Rv=window.trustedTypes?e=>trustedTypes.isHTML(e)||trustedTypes.isScript(e)||trustedTypes.isScriptURL(e):()=>!1;function Hv(e,t){if(!uh[t]){let r=e[t];r!==void 0&&(e.__data?e._setPendingProperty(t,r):(e.__dataProto?e.hasOwnProperty(JSCompiler_renameProperty("__dataProto",e))||(e.__dataProto=Object.create(e.__dataProto)):e.__dataProto={},e.__dataProto[t]=r))}}const zv=Ye(e=>{const t=lh(e);class r extends t{static createPropertiesForAttributes(){let n=this.observedAttributes;for(let s=0;s<n.length;s++)this.prototype._createPropertyAccessor(nh(n[s]))}static attributeNameForProperty(n){return ns(n)}_initializeProperties(){this.__dataProto&&(this._initializeProtoProperties(this.__dataProto),this.__dataProto=null),super._initializeProperties()}_initializeProtoProperties(n){for(let s in n)this._setProperty(s,n[s])}_ensureAttribute(n,s){const o=this;o.hasAttribute(n)||this._valueToNodeAttribute(o,s,n)}_serializeValue(n){switch(typeof n){case"object":if(n instanceof Date)return n.toString();if(n){if(Rv(n))return n;try{return JSON.stringify(n)}catch(s){return""}}default:return super._serializeValue(n)}}_deserializeValue(n,s){let o;switch(s){case Object:try{o=JSON.parse(n)}catch(a){o=n}break;case Array:try{o=JSON.parse(n)}catch(a){o=null,console.warn(`Polymer::Attributes: couldn't decode Array as JSON: ${n}`)}break;case Date:o=isNaN(n)?String(n):Number(n),o=new Date(o);break;default:o=super._deserializeValue(n,s);break}return o}_definePropertyAccessor(n,s){Hv(this,n),super._definePropertyAccessor(n,s)}_hasAccessor(n){return this.__dataHasAccessor&&this.__dataHasAccessor[n]}_isPropertyPending(n){return!!(this.__dataPending&&n in this.__dataPending)}}return r});/**
|
|
2032
2043
|
@license
|
|
2033
2044
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
2034
2045
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -2036,7 +2047,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
2036
2047
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
2037
2048
|
Code distributed by Google as part of the polymer project is also
|
|
2038
2049
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
2039
|
-
*/const Yv={"dom-if":!0,"dom-repeat":!0};let
|
|
2050
|
+
*/const Yv={"dom-if":!0,"dom-repeat":!0};let Pl=!1,Dl=!1;function Uv(){if(!Pl){Pl=!0;const e=document.createElement("textarea");e.placeholder="a",Dl=e.placeholder===e.textContent}return Dl}function Wv(e){Uv()&&e.localName==="textarea"&&e.placeholder&&e.placeholder===e.textContent&&(e.textContent=null)}const $v=(()=>{const e=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:t=>t});return(t,r,i)=>{const n=r.getAttribute(i);if(e&&i.startsWith("on-")){t.setAttribute(i,e.createScript(n,i));return}t.setAttribute(i,n)}})();function Vv(e){let t=e.getAttribute("is");if(t&&Yv[t]){let r=e;for(r.removeAttribute("is"),e=r.ownerDocument.createElement(t),r.parentNode.replaceChild(e,r),e.appendChild(r);r.attributes.length;){const{name:i}=r.attributes[0];$v(e,r,i),r.removeAttribute(i)}}return e}function dh(e,t){let r=t.parentInfo&&dh(e,t.parentInfo);if(r){for(let i=r.firstChild,n=0;i;i=i.nextSibling)if(t.parentIndex===n++)return i}else return e}function Gv(e,t,r,i){i.id&&(t[i.id]=r)}function jv(e,t,r){if(r.events&&r.events.length)for(let i=0,n=r.events,s;i<n.length&&(s=n[i]);i++)e._addMethodEventListenerToNode(t,s.name,s.value,e)}function qv(e,t,r,i){r.templateInfo&&(t._templateInfo=r.templateInfo,t._parentTemplateInfo=i)}function Zv(e,t,r){return e=e._methodHost||e,function(n){e[r]?e[r](n,n.detail):console.warn("listener method `"+r+"` not defined")}}const Kv=Ye(e=>{class t extends e{static _parseTemplate(i,n){if(!i._templateInfo){let s=i._templateInfo={};s.nodeInfoList=[],s.nestedTemplate=!!n,s.stripWhiteSpace=n&&n.stripWhiteSpace||i.hasAttribute&&i.hasAttribute("strip-whitespace"),this._parseTemplateContent(i,s,{parent:null})}return i._templateInfo}static _parseTemplateContent(i,n,s){return this._parseTemplateNode(i.content,n,s)}static _parseTemplateNode(i,n,s){let o=!1,a=i;return a.localName=="template"&&!a.hasAttribute("preserve-content")?o=this._parseTemplateNestedTemplate(a,n,s)||o:a.localName==="slot"&&(n.hasInsertionPoint=!0),Wv(a),a.firstChild&&this._parseTemplateChildNodes(a,n,s),a.hasAttributes&&a.hasAttributes()&&(o=this._parseTemplateNodeAttributes(a,n,s)||o),o||s.noted}static _parseTemplateChildNodes(i,n,s){if(!(i.localName==="script"||i.localName==="style"))for(let o=i.firstChild,a=0,l;o;o=l){if(o.localName=="template"&&(o=Vv(o)),l=o.nextSibling,o.nodeType===Node.TEXT_NODE){let d=l;for(;d&&d.nodeType===Node.TEXT_NODE;)o.textContent+=d.textContent,l=d.nextSibling,i.removeChild(d),d=l;if(n.stripWhiteSpace&&!o.textContent.trim()){i.removeChild(o);continue}}let u={parentIndex:a,parentInfo:s};this._parseTemplateNode(o,n,u)&&(u.infoIndex=n.nodeInfoList.push(u)-1),o.parentNode&&a++}}static _parseTemplateNestedTemplate(i,n,s){let o=i,a=this._parseTemplate(o,n);return(a.content=o.content.ownerDocument.createDocumentFragment()).appendChild(o.content),s.templateInfo=a,!0}static _parseTemplateNodeAttributes(i,n,s){let o=!1,a=Array.from(i.attributes);for(let l=a.length-1,u;u=a[l];l--)o=this._parseTemplateNodeAttribute(i,n,s,u.name,u.value)||o;return o}static _parseTemplateNodeAttribute(i,n,s,o,a){return o.slice(0,3)==="on-"?(i.removeAttribute(o),s.events=s.events||[],s.events.push({name:o.slice(3),value:a}),!0):o==="id"?(s.id=a,!0):!1}static _contentForTemplate(i){let n=i._templateInfo;return n&&n.content||i.content}_stampTemplate(i,n){i&&!i.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(i),n=n||this.constructor._parseTemplate(i);let s=n.nodeInfoList,o=n.content||i.content,a=document.importNode(o,!0);a.__noInsertionPoint=!n.hasInsertionPoint;let l=a.nodeList=new Array(s.length);a.$={};for(let u=0,d=s.length,c;u<d&&(c=s[u]);u++){let h=l[u]=dh(a,c);Gv(this,a.$,h,c),qv(this,h,c,n),jv(this,h,c)}return a=a,a}_addMethodEventListenerToNode(i,n,s,o){o=o||i;let a=Zv(o,n,s);return this._addEventListenerToNode(i,n,a),a}_addEventListenerToNode(i,n,s){i.addEventListener(n,s)}_removeEventListenerFromNode(i,n,s){i.removeEventListener(n,s)}}return t});/**
|
|
2040
2051
|
* @fileoverview
|
|
2041
2052
|
* @suppress {checkPrototypalTypes}
|
|
2042
2053
|
* @license Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
@@ -2046,7 +2057,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
2046
2057
|
* be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
|
|
2047
2058
|
* Google as part of the polymer project is also subject to an additional IP
|
|
2048
2059
|
* rights grant found at http://polymer.github.io/PATENTS.txt
|
|
2049
|
-
*/let Ei=0;const ki=[],ge={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},lh="__computeInfo",Xv=/[A-Z]/;function Ms(e,t,r){let i=e[t];if(!i)i=e[t]={};else if(!e.hasOwnProperty(t)&&(i=e[t]=Object.create(e[t]),r))for(let n in i){let s=i[n],o=i[n]=Array(s.length);for(let a=0;a<s.length;a++)o[a]=s[a]}return i}function ni(e,t,r,i,n,s){if(t){let o=!1;const a=Ei++;for(let l in r){let u=n?fr(l):l,d=t[u];if(d)for(let c=0,h=d.length,f;c<h&&(f=d[c]);c++)(!f.info||f.info.lastRun!==a)&&(!n||_a(l,f.trigger))&&(f.info&&(f.info.lastRun=a),f.fn(e,l,r,i,f.info,n,s),o=!0)}return o}return!1}function Jv(e,t,r,i,n,s,o,a){let l=!1,u=o?fr(i):i,d=t[u];if(d)for(let c=0,h=d.length,f;c<h&&(f=d[c]);c++)(!f.info||f.info.lastRun!==r)&&(!o||_a(i,f.trigger))&&(f.info&&(f.info.lastRun=r),f.fn(e,i,n,s,f.info,o,a),l=!0);return l}function _a(e,t){if(t){let r=t.name;return r==e||!!(t.structured&&Qc(r,e))||!!(t.wildcard&&Ci(r,e))}else return!0}function Tl(e,t,r,i,n){let s=typeof n.method=="string"?e[n.method]:n.method,o=n.property;s?s.call(e,e.__data[o],i[o]):n.dynamicFn||console.warn("observer method `"+n.method+"` not defined")}function Kv(e,t,r,i,n){let s=e[ge.NOTIFY],o,a=Ei++;for(let u in t)t[u]&&(s&&Jv(e,s,a,u,r,i,n)||n&&Qv(e,u,r))&&(o=!0);let l;o&&(l=e.__dataHost)&&l._invalidateProperties&&l._invalidateProperties()}function Qv(e,t,r){let i=fr(t);if(i!==t){let n=rs(i)+"-changed";return uh(e,n,r[t],t),!0}return!1}function uh(e,t,r,i){let n={value:r,queueProperty:!0};i&&(n.path=i),$e(e).dispatchEvent(new CustomEvent(t,{detail:n}))}function ey(e,t,r,i,n,s){let a=(s?fr(t):t)!=t?t:null,l=a?Je(e,a):e.__data[t];a&&l===void 0&&(l=r[t]),uh(e,n.eventName,l,a)}function ty(e,t,r,i,n){let s,o=e.detail,a=o&&o.path;a?(i=xi(r,i,a),s=o&&o.value):s=e.currentTarget[r],s=n?!s:s,(!t[ge.READ_ONLY]||!t[ge.READ_ONLY][i])&&t._setPendingPropertyOrPath(i,s,!0,!!a)&&(!o||!o.queueProperty)&&t._invalidateProperties()}function ry(e,t,r,i,n){let s=e.__data[t];kn&&(s=kn(s,n.attrName,"attribute",e)),e._propertyToAttribute(t,n.attrName,s)}function iy(e,t,r,i){let n=e[ge.COMPUTE];if(n)if(vv){Ei++;const s=sy(e),o=[];for(let l in t)Dl(l,n,o,s,i);let a;for(;a=o.shift();)dh(e,"",t,r,a)&&Dl(a.methodInfo,n,o,s,i);Object.assign(r,e.__dataOld),Object.assign(t,e.__dataPending),e.__dataPending=null}else{let s=t;for(;ni(e,n,s,r,i);)Object.assign(r,e.__dataOld),Object.assign(t,e.__dataPending),s=e.__dataPending,e.__dataPending=null}}const ny=(e,t,r)=>{let i=0,n=t.length-1,s=-1;for(;i<=n;){const o=i+n>>1,a=r.get(t[o].methodInfo)-r.get(e.methodInfo);if(a<0)i=o+1;else if(a>0)n=o-1;else{s=o;break}}s<0&&(s=n+1),t.splice(s,0,e)},Dl=(e,t,r,i,n)=>{const s=n?fr(e):e,o=t[s];if(o)for(let a=0;a<o.length;a++){const l=o[a];l.info.lastRun!==Ei&&(!n||_a(e,l.trigger))&&(l.info.lastRun=Ei,ny(l.info,r,i))}};function sy(e){let t=e.constructor.__orderedComputedDeps;if(!t){t=new Map;const r=e[ge.COMPUTE];let{counts:i,ready:n,total:s}=oy(e),o;for(;o=n.shift();){t.set(o,t.size);const a=r[o];a&&a.forEach(l=>{const u=l.info.methodInfo;--s,--i[u]===0&&n.push(u)})}s!==0&&console.warn(`Computed graph for ${e.localName} incomplete; circular?`),e.constructor.__orderedComputedDeps=t}return t}function oy(e){const t=e[lh],r={},i=e[ge.COMPUTE],n=[];let s=0;for(let o in t){const a=t[o];s+=r[o]=a.args.filter(l=>!l.literal).length+(a.dynamicFn?1:0)}for(let o in i)t[o]||n.push(o);return{counts:r,ready:n,total:s}}function dh(e,t,r,i,n){let s=wo(e,t,r,i,n);if(s===ki)return!1;let o=n.methodInfo;return e.__dataHasAccessor&&e.__dataHasAccessor[o]?e._setPendingProperty(o,s,!0):(e[o]=s,!1)}function ay(e,t,r){let i=e.__dataLinkedPaths;if(i){let n;for(let s in i){let o=i[s];Ci(s,t)?(n=xi(s,o,t),e._setPendingPropertyOrPath(n,r,!0,!0)):Ci(o,t)&&(n=xi(o,s,t),e._setPendingPropertyOrPath(n,r,!0,!0))}}}function Os(e,t,r,i,n,s,o){r.bindings=r.bindings||[];let a={kind:i,target:n,parts:s,literal:o,isCompound:s.length!==1};if(r.bindings.push(a),hy(a)){let{event:u,negate:d}=a.parts[0];a.listenerEvent=u||rs(n)+"-changed",a.listenerNegate=d}let l=t.nodeInfoList.length;for(let u=0;u<a.parts.length;u++){let d=a.parts[u];d.compoundIndex=u,ly(e,t,a,d,l)}}function ly(e,t,r,i,n){if(!i.literal)if(r.kind==="attribute"&&r.target[0]==="-")console.warn("Cannot set attribute "+r.target+' because "-" is not a valid attribute starting character');else{let s=i.dependencies,o={index:n,binding:r,part:i,evaluator:e};for(let a=0;a<s.length;a++){let l=s[a];typeof l=="string"&&(l=hh(l),l.wildcard=!0),e._addTemplatePropertyEffect(t,l.rootProperty,{fn:uy,info:o,trigger:l})}}}function uy(e,t,r,i,n,s,o){let a=o[n.index],l=n.binding,u=n.part;if(s&&u.source&&t.length>u.source.length&&l.kind=="property"&&!l.isCompound&&a.__isPropertyEffectsClient&&a.__dataHasAccessor&&a.__dataHasAccessor[l.target]){let d=r[t];t=xi(u.source,l.target,t),a._setPendingPropertyOrPath(t,d,!1,!0)&&e._enqueueClient(a)}else{let d=n.evaluator._evaluateBinding(e,u,t,r,i,s);d!==ki&&dy(e,a,l,u,d)}}function dy(e,t,r,i,n){if(n=cy(t,n,r,i),kn&&(n=kn(n,r.target,r.kind,t)),r.kind=="attribute")e._valueToNodeAttribute(t,n,r.target);else{let s=r.target;t.__isPropertyEffectsClient&&t.__dataHasAccessor&&t.__dataHasAccessor[s]?(!t[ge.READ_ONLY]||!t[ge.READ_ONLY][s])&&t._setPendingProperty(s,n)&&e._enqueueClient(t):e._setUnmanagedPropertyToNode(t,s,n)}}function cy(e,t,r,i){if(r.isCompound){let n=e.__dataCompoundStorage[r.target];n[i.compoundIndex]=t,t=n.join("")}return r.kind!=="attribute"&&(r.target==="textContent"||r.target==="value"&&(e.localName==="input"||e.localName==="textarea"))&&(t=t==null?"":t),t}function hy(e){return!!e.target&&e.kind!="attribute"&&e.kind!="text"&&!e.isCompound&&e.parts[0].mode==="{"}function fy(e,t){let{nodeList:r,nodeInfoList:i}=t;if(i.length)for(let n=0;n<i.length;n++){let s=i[n],o=r[n],a=s.bindings;if(a)for(let l=0;l<a.length;l++){let u=a[l];py(o,u),my(o,e,u)}o.__dataHost=e}}function py(e,t){if(t.isCompound){let r=e.__dataCompoundStorage||(e.__dataCompoundStorage={}),i=t.parts,n=new Array(i.length);for(let o=0;o<i.length;o++)n[o]=i[o].literal;let s=t.target;r[s]=n,t.literal&&t.kind=="property"&&(s==="className"&&(e=$e(e)),e[s]=t.literal)}}function my(e,t,r){if(r.listenerEvent){let i=r.parts[0];e.addEventListener(r.listenerEvent,function(n){ty(n,t,r.target,i.source,i.negate)})}}function Pl(e,t,r,i,n,s){s=t.static||s&&(typeof s!="object"||s[t.methodName]);let o={methodName:t.methodName,args:t.args,methodInfo:n,dynamicFn:s};for(let a=0,l;a<t.args.length&&(l=t.args[a]);a++)l.literal||e._addPropertyEffect(l.rootProperty,r,{fn:i,info:o,trigger:l});return s&&e._addPropertyEffect(t.methodName,r,{fn:i,info:o}),o}function wo(e,t,r,i,n){let s=e._methodHost||e,o=s[n.methodName];if(o){let a=e._marshalArgs(n.args,t,r);return a===ki?ki:o.apply(s,a)}else n.dynamicFn||console.warn("method `"+n.methodName+"` not defined")}const _y=[],ch="(?:[a-zA-Z_$][\\w.:$\\-*]*)",gy="(?:[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)",by="(?:'(?:[^'\\\\]|\\\\.)*')",vy='(?:"(?:[^"\\\\]|\\\\.)*")',yy="(?:"+by+"|"+vy+")",Ml="(?:("+ch+"|"+gy+"|"+yy+")\\s*)",wy="(?:"+Ml+"(?:,\\s*"+Ml+")*)",Cy="(?:\\(\\s*(?:"+wy+"?)\\)\\s*)",xy="("+ch+"\\s*"+Cy+"?)",Ey="(\\[\\[|{{)\\s*",ky="(?:]]|}})",Sy="(?:(!)\\s*)?",Ay=Ey+Sy+xy+ky,Ol=new RegExp(Ay,"g");function Bl(e){let t="";for(let r=0;r<e.length;r++){let i=e[r].literal;t+=i||""}return t}function Bs(e){let t=e.match(/([^\s]+?)\(([\s\S]*)\)/);if(t){let i={methodName:t[1],static:!0,args:_y};if(t[2].trim()){let n=t[2].replace(/\\,/g,",").split(",");return Ty(n,i)}else return i}return null}function Ty(e,t){return t.args=e.map(function(r){let i=hh(r);return i.literal||(t.static=!1),i},this),t}function hh(e){let t=e.trim().replace(/,/g,",").replace(/\\(.)/g,"$1"),r={name:t,value:"",literal:!1},i=t[0];switch(i==="-"&&(i=t[1]),i>="0"&&i<="9"&&(i="#"),i){case"'":case'"':r.value=t.slice(1,-1),r.literal=!0;break;case"#":r.value=Number(t),r.literal=!0;break}return r.literal||(r.rootProperty=fr(t),r.structured=vo(t),r.structured&&(r.wildcard=t.slice(-2)==".*",r.wildcard&&(r.name=t.slice(0,-2)))),r}function Nl(e,t,r){let i=Je(e,r);return i===void 0&&(i=t[r]),i}function fh(e,t,r,i){const n={indexSplices:i};bo&&!e._overrideLegacyUndefined&&(t.splices=n),e.notifyPath(r+".splices",n),e.notifyPath(r+".length",t.length),bo&&!e._overrideLegacyUndefined&&(n.indexSplices=[])}function ei(e,t,r,i,n,s){fh(e,t,r,[{index:i,addedCount:n,removed:s,object:t,type:"splice"}])}function Dy(e){return e[0].toUpperCase()+e.substring(1)}const ga=ze(e=>{const t=Zv(Rv(e));class r extends t{constructor(){super(),this.__isPropertyEffectsClient=!0,this.__dataClientsReady,this.__dataPendingClients,this.__dataToNotify,this.__dataLinkedPaths,this.__dataHasPaths,this.__dataCompoundStorage,this.__dataHost,this.__dataTemp,this.__dataClientsInitialized,this.__data,this.__dataPending,this.__dataOld,this.__computeEffects,this.__computeInfo,this.__reflectEffects,this.__notifyEffects,this.__propagateEffects,this.__observeEffects,this.__readOnly,this.__templateInfo,this._overrideLegacyUndefined}get PROPERTY_EFFECT_TYPES(){return ge}_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(ti.length){let n=ti[ti.length-1];n._enqueueClient(this),this.__dataHost=n}}_initializeProtoProperties(n){this.__data=Object.create(n),this.__dataPending=Object.create(n),this.__dataOld={}}_initializeInstanceProperties(n){let s=this[ge.READ_ONLY];for(let o in n)(!s||!s[o])&&(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[o]=this.__dataPending[o]=n[o])}_addPropertyEffect(n,s,o){this._createPropertyAccessor(n,s==ge.READ_ONLY);let a=Ms(this,s,!0)[n];a||(a=this[s][n]=[]),a.push(o)}_removePropertyEffect(n,s,o){let a=Ms(this,s,!0)[n],l=a.indexOf(o);l>=0&&a.splice(l,1)}_hasPropertyEffect(n,s){let o=this[s];return!!(o&&o[n])}_hasReadOnlyEffect(n){return this._hasPropertyEffect(n,ge.READ_ONLY)}_hasNotifyEffect(n){return this._hasPropertyEffect(n,ge.NOTIFY)}_hasReflectEffect(n){return this._hasPropertyEffect(n,ge.REFLECT)}_hasComputedEffect(n){return this._hasPropertyEffect(n,ge.COMPUTE)}_setPendingPropertyOrPath(n,s,o,a){if(a||fr(Array.isArray(n)?n[0]:n)!==n){if(!a){let l=Je(this,n);if(n=kl(this,n,s),!n||!super._shouldPropertyChange(n,s,l))return!1}if(this.__dataHasPaths=!0,this._setPendingProperty(n,s,o))return ay(this,n,s),!0}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[n])return this._setPendingProperty(n,s,o);this[n]=s}return!1}_setUnmanagedPropertyToNode(n,s,o){(o!==n[s]||typeof o=="object")&&(s==="className"&&(n=$e(n)),n[s]=o)}_setPendingProperty(n,s,o){let a=this.__dataHasPaths&&vo(n),l=a?this.__dataTemp:this.__data;return this._shouldPropertyChange(n,s,l[n])?(this.__dataPending||(this.__dataPending={},this.__dataOld={}),n in this.__dataOld||(this.__dataOld[n]=this.__data[n]),a?this.__dataTemp[n]=s:this.__data[n]=s,this.__dataPending[n]=s,(a||this[ge.NOTIFY]&&this[ge.NOTIFY][n])&&(this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[n]=o),!0):!1}_setProperty(n,s){this._setPendingProperty(n,s,!0)&&this._invalidateProperties()}_invalidateProperties(){this.__dataReady&&this._flushProperties()}_enqueueClient(n){this.__dataPendingClients=this.__dataPendingClients||[],n!==this&&this.__dataPendingClients.push(n)}_flushClients(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)}__enableOrFlushClients(){let n=this.__dataPendingClients;if(n){this.__dataPendingClients=null;for(let s=0;s<n.length;s++){let o=n[s];o.__dataEnabled?o.__dataPending&&o._flushProperties():o._enableProperties()}}}_readyClients(){this.__enableOrFlushClients()}setProperties(n,s){for(let o in n)(s||!this[ge.READ_ONLY]||!this[ge.READ_ONLY][o])&&this._setPendingPropertyOrPath(o,n[o],!0);this._invalidateProperties()}ready(){this._flushProperties(),this.__dataClientsReady||this._flushClients(),this.__dataPending&&this._flushProperties()}_propertiesChanged(n,s,o){let a=this.__dataHasPaths;this.__dataHasPaths=!1;let l;iy(this,s,o,a),l=this.__dataToNotify,this.__dataToNotify=null,this._propagatePropertyChanges(s,o,a),this._flushClients(),ni(this,this[ge.REFLECT],s,o,a),ni(this,this[ge.OBSERVE],s,o,a),l&&Kv(this,l,s,o,a),this.__dataCounter==1&&(this.__dataTemp={})}_propagatePropertyChanges(n,s,o){this[ge.PROPAGATE]&&ni(this,this[ge.PROPAGATE],n,s,o),this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,n,s,o)}_runEffectsForTemplate(n,s,o,a){const l=(u,d)=>{ni(this,n.propertyEffects,u,o,d,n.nodeList);for(let c=n.firstChild;c;c=c.nextSibling)this._runEffectsForTemplate(c,u,o,d)};n.runEffects?n.runEffects(l,s,a):l(s,a)}linkPaths(n,s){n=ii(n),s=ii(s),this.__dataLinkedPaths=this.__dataLinkedPaths||{},this.__dataLinkedPaths[n]=s}unlinkPaths(n){n=ii(n),this.__dataLinkedPaths&&delete this.__dataLinkedPaths[n]}notifySplices(n,s){let o={path:""},a=Je(this,n,o);fh(this,a,o.path,s)}get(n,s){return Je(s||this,n)}set(n,s,o){o?kl(o,n,s):(!this[ge.READ_ONLY]||!this[ge.READ_ONLY][n])&&this._setPendingPropertyOrPath(n,s,!0)&&this._invalidateProperties()}push(n,...s){let o={path:""},a=Je(this,n,o),l=a.length,u=a.push(...s);return s.length&&ei(this,a,o.path,l,s.length,[]),u}pop(n){let s={path:""},o=Je(this,n,s),a=!!o.length,l=o.pop();return a&&ei(this,o,s.path,o.length,0,[l]),l}splice(n,s,o,...a){let l={path:""},u=Je(this,n,l);s<0?s=u.length-Math.floor(-s):s&&(s=Math.floor(s));let d;return arguments.length===2?d=u.splice(s):d=u.splice(s,o,...a),(a.length||d.length)&&ei(this,u,l.path,s,a.length,d),d}shift(n){let s={path:""},o=Je(this,n,s),a=!!o.length,l=o.shift();return a&&ei(this,o,s.path,0,0,[l]),l}unshift(n,...s){let o={path:""},a=Je(this,n,o),l=a.unshift(...s);return s.length&&ei(this,a,o.path,0,s.length,[]),l}notifyPath(n,s){let o;if(arguments.length==1){let a={path:""};s=Je(this,n,a),o=a.path}else Array.isArray(n)?o=ii(n):o=n;this._setPendingPropertyOrPath(o,s,!0,!0)&&this._invalidateProperties()}_createReadOnlyProperty(n,s){this._addPropertyEffect(n,ge.READ_ONLY),s&&(this["_set"+Dy(n)]=function(o){this._setProperty(n,o)})}_createPropertyObserver(n,s,o){let a={property:n,method:s,dynamicFn:!!o};this._addPropertyEffect(n,ge.OBSERVE,{fn:Tl,info:a,trigger:{name:n}}),o&&this._addPropertyEffect(s,ge.OBSERVE,{fn:Tl,info:a,trigger:{name:s}})}_createMethodObserver(n,s){let o=Bs(n);if(!o)throw new Error("Malformed observer expression '"+n+"'");Pl(this,o,ge.OBSERVE,wo,null,s)}_createNotifyingProperty(n){this._addPropertyEffect(n,ge.NOTIFY,{fn:ey,info:{eventName:rs(n)+"-changed",property:n}})}_createReflectedProperty(n){let s=this.constructor.attributeNameForProperty(n);s[0]==="-"?console.warn("Property "+n+" 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(n,ge.REFLECT,{fn:ry,info:{attrName:s}})}_createComputedProperty(n,s,o){let a=Bs(s);if(!a)throw new Error("Malformed computed expression '"+s+"'");const l=Pl(this,a,ge.COMPUTE,dh,n,o);Ms(this,lh)[n]=l}_marshalArgs(n,s,o){const a=this.__data,l=[];for(let u=0,d=n.length;u<d;u++){let{name:c,structured:h,wildcard:f,value:b,literal:g}=n[u];if(!g)if(f){const v=Ci(c,s),y=Nl(a,o,v?s:c);b={path:v?s:c,value:y,base:v?Je(a,c):y}}else b=h?Nl(a,o,c):a[c];if(bo&&!this._overrideLegacyUndefined&&b===void 0&&n.length>1)return ki;l[u]=b}return l}static addPropertyEffect(n,s,o){this.prototype._addPropertyEffect(n,s,o)}static createPropertyObserver(n,s,o){this.prototype._createPropertyObserver(n,s,o)}static createMethodObserver(n,s){this.prototype._createMethodObserver(n,s)}static createNotifyingProperty(n){this.prototype._createNotifyingProperty(n)}static createReadOnlyProperty(n,s){this.prototype._createReadOnlyProperty(n,s)}static createReflectedProperty(n){this.prototype._createReflectedProperty(n)}static createComputedProperty(n,s,o){this.prototype._createComputedProperty(n,s,o)}static bindTemplate(n){return this.prototype._bindTemplate(n)}_bindTemplate(n,s){let o=this.constructor._parseTemplate(n),a=this.__preBoundTemplateInfo==o;if(!a)for(let l in o.propertyEffects)this._createPropertyAccessor(l);if(s)if(o=Object.create(o),o.wasPreBound=a,!this.__templateInfo)this.__templateInfo=o;else{const l=n._parentTemplateInfo||this.__templateInfo,u=l.lastChild;o.parent=l,l.lastChild=o,o.previousSibling=u,u?u.nextSibling=o:l.firstChild=o}else this.__preBoundTemplateInfo=o;return o}static _addTemplatePropertyEffect(n,s,o){let a=n.hostProps=n.hostProps||{};a[s]=!0;let l=n.propertyEffects=n.propertyEffects||{};(l[s]=l[s]||[]).push(o)}_stampTemplate(n,s){s=s||this._bindTemplate(n,!0),ti.push(this);let o=super._stampTemplate(n,s);if(ti.pop(),s.nodeList=o.nodeList,!s.wasPreBound){let a=s.childNodes=[];for(let l=o.firstChild;l;l=l.nextSibling)a.push(l)}return o.templateInfo=s,fy(this,s),this.__dataClientsReady&&(this._runEffectsForTemplate(s,this.__data,null,!1),this._flushClients()),o}_removeBoundDom(n){const s=n.templateInfo,{previousSibling:o,nextSibling:a,parent:l}=s;o?o.nextSibling=a:l&&(l.firstChild=a),a?a.previousSibling=o:l&&(l.lastChild=o),s.nextSibling=s.previousSibling=null;let u=s.childNodes;for(let d=0;d<u.length;d++){let c=u[d];$e($e(c).parentNode).removeChild(c)}}static _parseTemplateNode(n,s,o){let a=t._parseTemplateNode.call(this,n,s,o);if(n.nodeType===Node.TEXT_NODE){let l=this._parseBindings(n.textContent,s);l&&(n.textContent=Bl(l)||" ",Os(this,s,o,"text","textContent",l),a=!0)}return a}static _parseTemplateNodeAttribute(n,s,o,a,l){let u=this._parseBindings(l,s);if(u){let d=a,c="property";Xv.test(a)?c="attribute":a[a.length-1]=="$"&&(a=a.slice(0,-1),c="attribute");let h=Bl(u);return h&&c=="attribute"&&(a=="class"&&n.hasAttribute("class")&&(h+=" "+n.getAttribute(a)),n.setAttribute(a,h)),c=="attribute"&&d=="disable-upgrade$"&&n.setAttribute(a,""),n.localName==="input"&&d==="value"&&n.setAttribute(d,""),n.removeAttribute(d),c==="property"&&(a=th(a)),Os(this,s,o,c,a,u,h),!0}else return t._parseTemplateNodeAttribute.call(this,n,s,o,a,l)}static _parseTemplateNestedTemplate(n,s,o){let a=t._parseTemplateNestedTemplate.call(this,n,s,o);const l=n.parentNode,u=o.templateInfo,d=l.localName==="dom-if",c=l.localName==="dom-repeat";vl&&(d||c)&&(l.removeChild(n),o=o.parentInfo,o.templateInfo=u,o.noted=!0,a=!1);let h=u.hostProps;if(yv&&d)h&&(s.hostProps=Object.assign(s.hostProps||{},h),vl||(o.parentInfo.noted=!0));else{let f="{";for(let b in h){let g=[{mode:f,source:b,dependencies:[b],hostProp:!0}];Os(this,s,o,"property","_host_"+b,g)}}return a}static _parseBindings(n,s){let o=[],a=0,l;for(;(l=Ol.exec(n))!==null;){l.index>a&&o.push({literal:n.slice(a,l.index)});let u=l[1][0],d=!!l[2],c=l[3].trim(),h=!1,f="",b=-1;u=="{"&&(b=c.indexOf("::"))>0&&(f=c.substring(b+2),c=c.substring(0,b),h=!0);let g=Bs(c),v=[];if(g){let{args:y,methodName:_}=g;for(let w=0;w<y.length;w++){let N=y[w];N.literal||v.push(N)}let E=s.dynamicFns;(E&&E[_]||g.static)&&(v.push(_),g.dynamicFn=!0)}else v.push(c);o.push({source:c,mode:u,negate:d,customEvent:h,signature:g,dependencies:v,event:f}),a=Ol.lastIndex}if(a&&a<n.length){let u=n.substring(a);u&&o.push({literal:u})}return o.length?o:null}static _evaluateBinding(n,s,o,a,l,u){let d;return s.signature?d=wo(n,o,a,l,s.signature):o!=s.source?d=Je(n,s.source):u&&vo(o)?d=Je(n,o):d=n.__data[o],s.negate&&(d=!d),d}}return r}),ti=[];/**
|
|
2060
|
+
*/let xi=0;const Si=[],ge={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},ch="__computeInfo",Xv=/[A-Z]/;function Ns(e,t,r){let i=e[t];if(!i)i=e[t]={};else if(!e.hasOwnProperty(t)&&(i=e[t]=Object.create(e[t]),r))for(let n in i){let s=i[n],o=i[n]=Array(s.length);for(let a=0;a<s.length;a++)o[a]=s[a]}return i}function si(e,t,r,i,n,s){if(t){let o=!1;const a=xi++;for(let l in r){let u=n?pr(l):l,d=t[u];if(d)for(let c=0,h=d.length,f;c<h&&(f=d[c]);c++)(!f.info||f.info.lastRun!==a)&&(!n||va(l,f.trigger))&&(f.info&&(f.info.lastRun=a),f.fn(e,l,r,i,f.info,n,s),o=!0)}return o}return!1}function Jv(e,t,r,i,n,s,o,a){let l=!1,u=o?pr(i):i,d=t[u];if(d)for(let c=0,h=d.length,f;c<h&&(f=d[c]);c++)(!f.info||f.info.lastRun!==r)&&(!o||va(i,f.trigger))&&(f.info&&(f.info.lastRun=r),f.fn(e,i,n,s,f.info,o,a),l=!0);return l}function va(e,t){if(t){let r=t.name;return r==e||!!(t.structured&&rh(r,e))||!!(t.wildcard&&Ci(r,e))}else return!0}function Ml(e,t,r,i,n){let s=typeof n.method=="string"?e[n.method]:n.method,o=n.property;s?s.call(e,e.__data[o],i[o]):n.dynamicFn||console.warn("observer method `"+n.method+"` not defined")}function Qv(e,t,r,i,n){let s=e[ge.NOTIFY],o,a=xi++;for(let u in t)t[u]&&(s&&Jv(e,s,a,u,r,i,n)||n&&ey(e,u,r))&&(o=!0);let l;o&&(l=e.__dataHost)&&l._invalidateProperties&&l._invalidateProperties()}function ey(e,t,r){let i=pr(t);if(i!==t){let n=ns(i)+"-changed";return hh(e,n,r[t],t),!0}return!1}function hh(e,t,r,i){let n={value:r,queueProperty:!0};i&&(n.path=i),Ve(e).dispatchEvent(new CustomEvent(t,{detail:n}))}function ty(e,t,r,i,n,s){let a=(s?pr(t):t)!=t?t:null,l=a?Qe(e,a):e.__data[t];a&&l===void 0&&(l=r[t]),hh(e,n.eventName,l,a)}function ry(e,t,r,i,n){let s,o=e.detail,a=o&&o.path;a?(i=Ei(r,i,a),s=o&&o.value):s=e.currentTarget[r],s=n?!s:s,(!t[ge.READ_ONLY]||!t[ge.READ_ONLY][i])&&t._setPendingPropertyOrPath(i,s,!0,!!a)&&(!o||!o.queueProperty)&&t._invalidateProperties()}function iy(e,t,r,i,n){let s=e.__data[t];kn&&(s=kn(s,n.attrName,"attribute",e)),e._propertyToAttribute(t,n.attrName,s)}function ny(e,t,r,i){let n=e[ge.COMPUTE];if(n)if(yv){xi++;const s=oy(e),o=[];for(let l in t)Ol(l,n,o,s,i);let a;for(;a=o.shift();)fh(e,"",t,r,a)&&Ol(a.methodInfo,n,o,s,i);Object.assign(r,e.__dataOld),Object.assign(t,e.__dataPending),e.__dataPending=null}else{let s=t;for(;si(e,n,s,r,i);)Object.assign(r,e.__dataOld),Object.assign(t,e.__dataPending),s=e.__dataPending,e.__dataPending=null}}const sy=(e,t,r)=>{let i=0,n=t.length-1,s=-1;for(;i<=n;){const o=i+n>>1,a=r.get(t[o].methodInfo)-r.get(e.methodInfo);if(a<0)i=o+1;else if(a>0)n=o-1;else{s=o;break}}s<0&&(s=n+1),t.splice(s,0,e)},Ol=(e,t,r,i,n)=>{const s=n?pr(e):e,o=t[s];if(o)for(let a=0;a<o.length;a++){const l=o[a];l.info.lastRun!==xi&&(!n||va(e,l.trigger))&&(l.info.lastRun=xi,sy(l.info,r,i))}};function oy(e){let t=e.constructor.__orderedComputedDeps;if(!t){t=new Map;const r=e[ge.COMPUTE];let{counts:i,ready:n,total:s}=ay(e),o;for(;o=n.shift();){t.set(o,t.size);const a=r[o];a&&a.forEach(l=>{const u=l.info.methodInfo;--s,--i[u]===0&&n.push(u)})}s!==0&&console.warn(`Computed graph for ${e.localName} incomplete; circular?`),e.constructor.__orderedComputedDeps=t}return t}function ay(e){const t=e[ch],r={},i=e[ge.COMPUTE],n=[];let s=0;for(let o in t){const a=t[o];s+=r[o]=a.args.filter(l=>!l.literal).length+(a.dynamicFn?1:0)}for(let o in i)t[o]||n.push(o);return{counts:r,ready:n,total:s}}function fh(e,t,r,i,n){let s=xo(e,t,r,i,n);if(s===Si)return!1;let o=n.methodInfo;return e.__dataHasAccessor&&e.__dataHasAccessor[o]?e._setPendingProperty(o,s,!0):(e[o]=s,!1)}function ly(e,t,r){let i=e.__dataLinkedPaths;if(i){let n;for(let s in i){let o=i[s];Ci(s,t)?(n=Ei(s,o,t),e._setPendingPropertyOrPath(n,r,!0,!0)):Ci(o,t)&&(n=Ei(o,s,t),e._setPendingPropertyOrPath(n,r,!0,!0))}}}function Is(e,t,r,i,n,s,o){r.bindings=r.bindings||[];let a={kind:i,target:n,parts:s,literal:o,isCompound:s.length!==1};if(r.bindings.push(a),fy(a)){let{event:u,negate:d}=a.parts[0];a.listenerEvent=u||ns(n)+"-changed",a.listenerNegate=d}let l=t.nodeInfoList.length;for(let u=0;u<a.parts.length;u++){let d=a.parts[u];d.compoundIndex=u,uy(e,t,a,d,l)}}function uy(e,t,r,i,n){if(!i.literal)if(r.kind==="attribute"&&r.target[0]==="-")console.warn("Cannot set attribute "+r.target+' because "-" is not a valid attribute starting character');else{let s=i.dependencies,o={index:n,binding:r,part:i,evaluator:e};for(let a=0;a<s.length;a++){let l=s[a];typeof l=="string"&&(l=mh(l),l.wildcard=!0),e._addTemplatePropertyEffect(t,l.rootProperty,{fn:dy,info:o,trigger:l})}}}function dy(e,t,r,i,n,s,o){let a=o[n.index],l=n.binding,u=n.part;if(s&&u.source&&t.length>u.source.length&&l.kind=="property"&&!l.isCompound&&a.__isPropertyEffectsClient&&a.__dataHasAccessor&&a.__dataHasAccessor[l.target]){let d=r[t];t=Ei(u.source,l.target,t),a._setPendingPropertyOrPath(t,d,!1,!0)&&e._enqueueClient(a)}else{let d=n.evaluator._evaluateBinding(e,u,t,r,i,s);d!==Si&&cy(e,a,l,u,d)}}function cy(e,t,r,i,n){if(n=hy(t,n,r,i),kn&&(n=kn(n,r.target,r.kind,t)),r.kind=="attribute")e._valueToNodeAttribute(t,n,r.target);else{let s=r.target;t.__isPropertyEffectsClient&&t.__dataHasAccessor&&t.__dataHasAccessor[s]?(!t[ge.READ_ONLY]||!t[ge.READ_ONLY][s])&&t._setPendingProperty(s,n)&&e._enqueueClient(t):e._setUnmanagedPropertyToNode(t,s,n)}}function hy(e,t,r,i){if(r.isCompound){let n=e.__dataCompoundStorage[r.target];n[i.compoundIndex]=t,t=n.join("")}return r.kind!=="attribute"&&(r.target==="textContent"||r.target==="value"&&(e.localName==="input"||e.localName==="textarea"))&&(t=t==null?"":t),t}function fy(e){return!!e.target&&e.kind!="attribute"&&e.kind!="text"&&!e.isCompound&&e.parts[0].mode==="{"}function py(e,t){let{nodeList:r,nodeInfoList:i}=t;if(i.length)for(let n=0;n<i.length;n++){let s=i[n],o=r[n],a=s.bindings;if(a)for(let l=0;l<a.length;l++){let u=a[l];my(o,u),_y(o,e,u)}o.__dataHost=e}}function my(e,t){if(t.isCompound){let r=e.__dataCompoundStorage||(e.__dataCompoundStorage={}),i=t.parts,n=new Array(i.length);for(let o=0;o<i.length;o++)n[o]=i[o].literal;let s=t.target;r[s]=n,t.literal&&t.kind=="property"&&(s==="className"&&(e=Ve(e)),e[s]=t.literal)}}function _y(e,t,r){if(r.listenerEvent){let i=r.parts[0];e.addEventListener(r.listenerEvent,function(n){ry(n,t,r.target,i.source,i.negate)})}}function Bl(e,t,r,i,n,s){s=t.static||s&&(typeof s!="object"||s[t.methodName]);let o={methodName:t.methodName,args:t.args,methodInfo:n,dynamicFn:s};for(let a=0,l;a<t.args.length&&(l=t.args[a]);a++)l.literal||e._addPropertyEffect(l.rootProperty,r,{fn:i,info:o,trigger:l});return s&&e._addPropertyEffect(t.methodName,r,{fn:i,info:o}),o}function xo(e,t,r,i,n){let s=e._methodHost||e,o=s[n.methodName];if(o){let a=e._marshalArgs(n.args,t,r);return a===Si?Si:o.apply(s,a)}else n.dynamicFn||console.warn("method `"+n.methodName+"` not defined")}const gy=[],ph="(?:[a-zA-Z_$][\\w.:$\\-*]*)",by="(?:[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)",vy="(?:'(?:[^'\\\\]|\\\\.)*')",yy='(?:"(?:[^"\\\\]|\\\\.)*")',wy="(?:"+vy+"|"+yy+")",Nl="(?:("+ph+"|"+by+"|"+wy+")\\s*)",Cy="(?:"+Nl+"(?:,\\s*"+Nl+")*)",Ey="(?:\\(\\s*(?:"+Cy+"?)\\)\\s*)",xy="("+ph+"\\s*"+Ey+"?)",Sy="(\\[\\[|{{)\\s*",ky="(?:]]|}})",Ay="(?:(!)\\s*)?",Ty=Sy+Ay+xy+ky,Il=new RegExp(Ty,"g");function Ll(e){let t="";for(let r=0;r<e.length;r++){let i=e[r].literal;t+=i||""}return t}function Ls(e){let t=e.match(/([^\s]+?)\(([\s\S]*)\)/);if(t){let i={methodName:t[1],static:!0,args:gy};if(t[2].trim()){let n=t[2].replace(/\\,/g,",").split(",");return Py(n,i)}else return i}return null}function Py(e,t){return t.args=e.map(function(r){let i=mh(r);return i.literal||(t.static=!1),i},this),t}function mh(e){let t=e.trim().replace(/,/g,",").replace(/\\(.)/g,"$1"),r={name:t,value:"",literal:!1},i=t[0];switch(i==="-"&&(i=t[1]),i>="0"&&i<="9"&&(i="#"),i){case"'":case'"':r.value=t.slice(1,-1),r.literal=!0;break;case"#":r.value=Number(t),r.literal=!0;break}return r.literal||(r.rootProperty=pr(t),r.structured=Co(t),r.structured&&(r.wildcard=t.slice(-2)==".*",r.wildcard&&(r.name=t.slice(0,-2)))),r}function Fl(e,t,r){let i=Qe(e,r);return i===void 0&&(i=t[r]),i}function _h(e,t,r,i){const n={indexSplices:i};wo&&!e._overrideLegacyUndefined&&(t.splices=n),e.notifyPath(r+".splices",n),e.notifyPath(r+".length",t.length),wo&&!e._overrideLegacyUndefined&&(n.indexSplices=[])}function ei(e,t,r,i,n,s){_h(e,t,r,[{index:i,addedCount:n,removed:s,object:t,type:"splice"}])}function Dy(e){return e[0].toUpperCase()+e.substring(1)}const ya=Ye(e=>{const t=Kv(zv(e));class r extends t{constructor(){super(),this.__isPropertyEffectsClient=!0,this.__dataClientsReady,this.__dataPendingClients,this.__dataToNotify,this.__dataLinkedPaths,this.__dataHasPaths,this.__dataCompoundStorage,this.__dataHost,this.__dataTemp,this.__dataClientsInitialized,this.__data,this.__dataPending,this.__dataOld,this.__computeEffects,this.__computeInfo,this.__reflectEffects,this.__notifyEffects,this.__propagateEffects,this.__observeEffects,this.__readOnly,this.__templateInfo,this._overrideLegacyUndefined}get PROPERTY_EFFECT_TYPES(){return ge}_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(ti.length){let n=ti[ti.length-1];n._enqueueClient(this),this.__dataHost=n}}_initializeProtoProperties(n){this.__data=Object.create(n),this.__dataPending=Object.create(n),this.__dataOld={}}_initializeInstanceProperties(n){let s=this[ge.READ_ONLY];for(let o in n)(!s||!s[o])&&(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[o]=this.__dataPending[o]=n[o])}_addPropertyEffect(n,s,o){this._createPropertyAccessor(n,s==ge.READ_ONLY);let a=Ns(this,s,!0)[n];a||(a=this[s][n]=[]),a.push(o)}_removePropertyEffect(n,s,o){let a=Ns(this,s,!0)[n],l=a.indexOf(o);l>=0&&a.splice(l,1)}_hasPropertyEffect(n,s){let o=this[s];return!!(o&&o[n])}_hasReadOnlyEffect(n){return this._hasPropertyEffect(n,ge.READ_ONLY)}_hasNotifyEffect(n){return this._hasPropertyEffect(n,ge.NOTIFY)}_hasReflectEffect(n){return this._hasPropertyEffect(n,ge.REFLECT)}_hasComputedEffect(n){return this._hasPropertyEffect(n,ge.COMPUTE)}_setPendingPropertyOrPath(n,s,o,a){if(a||pr(Array.isArray(n)?n[0]:n)!==n){if(!a){let l=Qe(this,n);if(n=Tl(this,n,s),!n||!super._shouldPropertyChange(n,s,l))return!1}if(this.__dataHasPaths=!0,this._setPendingProperty(n,s,o))return ly(this,n,s),!0}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[n])return this._setPendingProperty(n,s,o);this[n]=s}return!1}_setUnmanagedPropertyToNode(n,s,o){(o!==n[s]||typeof o=="object")&&(s==="className"&&(n=Ve(n)),n[s]=o)}_setPendingProperty(n,s,o){let a=this.__dataHasPaths&&Co(n),l=a?this.__dataTemp:this.__data;return this._shouldPropertyChange(n,s,l[n])?(this.__dataPending||(this.__dataPending={},this.__dataOld={}),n in this.__dataOld||(this.__dataOld[n]=this.__data[n]),a?this.__dataTemp[n]=s:this.__data[n]=s,this.__dataPending[n]=s,(a||this[ge.NOTIFY]&&this[ge.NOTIFY][n])&&(this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[n]=o),!0):!1}_setProperty(n,s){this._setPendingProperty(n,s,!0)&&this._invalidateProperties()}_invalidateProperties(){this.__dataReady&&this._flushProperties()}_enqueueClient(n){this.__dataPendingClients=this.__dataPendingClients||[],n!==this&&this.__dataPendingClients.push(n)}_flushClients(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)}__enableOrFlushClients(){let n=this.__dataPendingClients;if(n){this.__dataPendingClients=null;for(let s=0;s<n.length;s++){let o=n[s];o.__dataEnabled?o.__dataPending&&o._flushProperties():o._enableProperties()}}}_readyClients(){this.__enableOrFlushClients()}setProperties(n,s){for(let o in n)(s||!this[ge.READ_ONLY]||!this[ge.READ_ONLY][o])&&this._setPendingPropertyOrPath(o,n[o],!0);this._invalidateProperties()}ready(){this._flushProperties(),this.__dataClientsReady||this._flushClients(),this.__dataPending&&this._flushProperties()}_propertiesChanged(n,s,o){let a=this.__dataHasPaths;this.__dataHasPaths=!1;let l;ny(this,s,o,a),l=this.__dataToNotify,this.__dataToNotify=null,this._propagatePropertyChanges(s,o,a),this._flushClients(),si(this,this[ge.REFLECT],s,o,a),si(this,this[ge.OBSERVE],s,o,a),l&&Qv(this,l,s,o,a),this.__dataCounter==1&&(this.__dataTemp={})}_propagatePropertyChanges(n,s,o){this[ge.PROPAGATE]&&si(this,this[ge.PROPAGATE],n,s,o),this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,n,s,o)}_runEffectsForTemplate(n,s,o,a){const l=(u,d)=>{si(this,n.propertyEffects,u,o,d,n.nodeList);for(let c=n.firstChild;c;c=c.nextSibling)this._runEffectsForTemplate(c,u,o,d)};n.runEffects?n.runEffects(l,s,a):l(s,a)}linkPaths(n,s){n=ni(n),s=ni(s),this.__dataLinkedPaths=this.__dataLinkedPaths||{},this.__dataLinkedPaths[n]=s}unlinkPaths(n){n=ni(n),this.__dataLinkedPaths&&delete this.__dataLinkedPaths[n]}notifySplices(n,s){let o={path:""},a=Qe(this,n,o);_h(this,a,o.path,s)}get(n,s){return Qe(s||this,n)}set(n,s,o){o?Tl(o,n,s):(!this[ge.READ_ONLY]||!this[ge.READ_ONLY][n])&&this._setPendingPropertyOrPath(n,s,!0)&&this._invalidateProperties()}push(n,...s){let o={path:""},a=Qe(this,n,o),l=a.length,u=a.push(...s);return s.length&&ei(this,a,o.path,l,s.length,[]),u}pop(n){let s={path:""},o=Qe(this,n,s),a=!!o.length,l=o.pop();return a&&ei(this,o,s.path,o.length,0,[l]),l}splice(n,s,o,...a){let l={path:""},u=Qe(this,n,l);s<0?s=u.length-Math.floor(-s):s&&(s=Math.floor(s));let d;return arguments.length===2?d=u.splice(s):d=u.splice(s,o,...a),(a.length||d.length)&&ei(this,u,l.path,s,a.length,d),d}shift(n){let s={path:""},o=Qe(this,n,s),a=!!o.length,l=o.shift();return a&&ei(this,o,s.path,0,0,[l]),l}unshift(n,...s){let o={path:""},a=Qe(this,n,o),l=a.unshift(...s);return s.length&&ei(this,a,o.path,0,s.length,[]),l}notifyPath(n,s){let o;if(arguments.length==1){let a={path:""};s=Qe(this,n,a),o=a.path}else Array.isArray(n)?o=ni(n):o=n;this._setPendingPropertyOrPath(o,s,!0,!0)&&this._invalidateProperties()}_createReadOnlyProperty(n,s){this._addPropertyEffect(n,ge.READ_ONLY),s&&(this["_set"+Dy(n)]=function(o){this._setProperty(n,o)})}_createPropertyObserver(n,s,o){let a={property:n,method:s,dynamicFn:!!o};this._addPropertyEffect(n,ge.OBSERVE,{fn:Ml,info:a,trigger:{name:n}}),o&&this._addPropertyEffect(s,ge.OBSERVE,{fn:Ml,info:a,trigger:{name:s}})}_createMethodObserver(n,s){let o=Ls(n);if(!o)throw new Error("Malformed observer expression '"+n+"'");Bl(this,o,ge.OBSERVE,xo,null,s)}_createNotifyingProperty(n){this._addPropertyEffect(n,ge.NOTIFY,{fn:ty,info:{eventName:ns(n)+"-changed",property:n}})}_createReflectedProperty(n){let s=this.constructor.attributeNameForProperty(n);s[0]==="-"?console.warn("Property "+n+" 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(n,ge.REFLECT,{fn:iy,info:{attrName:s}})}_createComputedProperty(n,s,o){let a=Ls(s);if(!a)throw new Error("Malformed computed expression '"+s+"'");const l=Bl(this,a,ge.COMPUTE,fh,n,o);Ns(this,ch)[n]=l}_marshalArgs(n,s,o){const a=this.__data,l=[];for(let u=0,d=n.length;u<d;u++){let{name:c,structured:h,wildcard:f,value:b,literal:g}=n[u];if(!g)if(f){const v=Ci(c,s),y=Fl(a,o,v?s:c);b={path:v?s:c,value:y,base:v?Qe(a,c):y}}else b=h?Fl(a,o,c):a[c];if(wo&&!this._overrideLegacyUndefined&&b===void 0&&n.length>1)return Si;l[u]=b}return l}static addPropertyEffect(n,s,o){this.prototype._addPropertyEffect(n,s,o)}static createPropertyObserver(n,s,o){this.prototype._createPropertyObserver(n,s,o)}static createMethodObserver(n,s){this.prototype._createMethodObserver(n,s)}static createNotifyingProperty(n){this.prototype._createNotifyingProperty(n)}static createReadOnlyProperty(n,s){this.prototype._createReadOnlyProperty(n,s)}static createReflectedProperty(n){this.prototype._createReflectedProperty(n)}static createComputedProperty(n,s,o){this.prototype._createComputedProperty(n,s,o)}static bindTemplate(n){return this.prototype._bindTemplate(n)}_bindTemplate(n,s){let o=this.constructor._parseTemplate(n),a=this.__preBoundTemplateInfo==o;if(!a)for(let l in o.propertyEffects)this._createPropertyAccessor(l);if(s)if(o=Object.create(o),o.wasPreBound=a,!this.__templateInfo)this.__templateInfo=o;else{const l=n._parentTemplateInfo||this.__templateInfo,u=l.lastChild;o.parent=l,l.lastChild=o,o.previousSibling=u,u?u.nextSibling=o:l.firstChild=o}else this.__preBoundTemplateInfo=o;return o}static _addTemplatePropertyEffect(n,s,o){let a=n.hostProps=n.hostProps||{};a[s]=!0;let l=n.propertyEffects=n.propertyEffects||{};(l[s]=l[s]||[]).push(o)}_stampTemplate(n,s){s=s||this._bindTemplate(n,!0),ti.push(this);let o=super._stampTemplate(n,s);if(ti.pop(),s.nodeList=o.nodeList,!s.wasPreBound){let a=s.childNodes=[];for(let l=o.firstChild;l;l=l.nextSibling)a.push(l)}return o.templateInfo=s,py(this,s),this.__dataClientsReady&&(this._runEffectsForTemplate(s,this.__data,null,!1),this._flushClients()),o}_removeBoundDom(n){const s=n.templateInfo,{previousSibling:o,nextSibling:a,parent:l}=s;o?o.nextSibling=a:l&&(l.firstChild=a),a?a.previousSibling=o:l&&(l.lastChild=o),s.nextSibling=s.previousSibling=null;let u=s.childNodes;for(let d=0;d<u.length;d++){let c=u[d];Ve(Ve(c).parentNode).removeChild(c)}}static _parseTemplateNode(n,s,o){let a=t._parseTemplateNode.call(this,n,s,o);if(n.nodeType===Node.TEXT_NODE){let l=this._parseBindings(n.textContent,s);l&&(n.textContent=Ll(l)||" ",Is(this,s,o,"text","textContent",l),a=!0)}return a}static _parseTemplateNodeAttribute(n,s,o,a,l){let u=this._parseBindings(l,s);if(u){let d=a,c="property";Xv.test(a)?c="attribute":a[a.length-1]=="$"&&(a=a.slice(0,-1),c="attribute");let h=Ll(u);return h&&c=="attribute"&&(a=="class"&&n.hasAttribute("class")&&(h+=" "+n.getAttribute(a)),n.setAttribute(a,h)),c=="attribute"&&d=="disable-upgrade$"&&n.setAttribute(a,""),n.localName==="input"&&d==="value"&&n.setAttribute(d,""),n.removeAttribute(d),c==="property"&&(a=nh(a)),Is(this,s,o,c,a,u,h),!0}else return t._parseTemplateNodeAttribute.call(this,n,s,o,a,l)}static _parseTemplateNestedTemplate(n,s,o){let a=t._parseTemplateNestedTemplate.call(this,n,s,o);const l=n.parentNode,u=o.templateInfo,d=l.localName==="dom-if",c=l.localName==="dom-repeat";Cl&&(d||c)&&(l.removeChild(n),o=o.parentInfo,o.templateInfo=u,o.noted=!0,a=!1);let h=u.hostProps;if(wv&&d)h&&(s.hostProps=Object.assign(s.hostProps||{},h),Cl||(o.parentInfo.noted=!0));else{let f="{";for(let b in h){let g=[{mode:f,source:b,dependencies:[b],hostProp:!0}];Is(this,s,o,"property","_host_"+b,g)}}return a}static _parseBindings(n,s){let o=[],a=0,l;for(;(l=Il.exec(n))!==null;){l.index>a&&o.push({literal:n.slice(a,l.index)});let u=l[1][0],d=!!l[2],c=l[3].trim(),h=!1,f="",b=-1;u=="{"&&(b=c.indexOf("::"))>0&&(f=c.substring(b+2),c=c.substring(0,b),h=!0);let g=Ls(c),v=[];if(g){let{args:y,methodName:_}=g;for(let w=0;w<y.length;w++){let N=y[w];N.literal||v.push(N)}let x=s.dynamicFns;(x&&x[_]||g.static)&&(v.push(_),g.dynamicFn=!0)}else v.push(c);o.push({source:c,mode:u,negate:d,customEvent:h,signature:g,dependencies:v,event:f}),a=Il.lastIndex}if(a&&a<n.length){let u=n.substring(a);u&&o.push({literal:u})}return o.length?o:null}static _evaluateBinding(n,s,o,a,l,u){let d;return s.signature?d=xo(n,o,a,l,s.signature):o!=s.source?d=Qe(n,s.source):u&&Co(o)?d=Qe(n,o):d=n.__data[o],s.negate&&(d=!d),d}}return r}),ti=[];/**
|
|
2050
2061
|
@license
|
|
2051
2062
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
2052
2063
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -2062,7 +2073,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
2062
2073
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
2063
2074
|
Code distributed by Google as part of the polymer project is also
|
|
2064
2075
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
2065
|
-
*/function
|
|
2076
|
+
*/function My(e){const t={};for(let r in e){const i=e[r];t[r]=typeof i=="function"?{type:i}:i}return t}const Oy=Ye(e=>{const t=lh(e);function r(s){const o=Object.getPrototypeOf(s);return o.prototype instanceof n?o:null}function i(s){if(!s.hasOwnProperty(JSCompiler_renameProperty("__ownProperties",s))){let o=null;if(s.hasOwnProperty(JSCompiler_renameProperty("properties",s))){const a=s.properties;a&&(o=My(a))}s.__ownProperties=o}return s.__ownProperties}class n extends t{static get observedAttributes(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__observedAttributes",this))){this.prototype;const o=this._properties;this.__observedAttributes=o?Object.keys(o).map(a=>this.prototype._addPropertyToAttributeMap(a)):[]}return this.__observedAttributes}static finalize(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__finalized",this))){const o=r(this);o&&o.finalize(),this.__finalized=!0,this._finalizeClass()}}static _finalizeClass(){const o=i(this);o&&this.createProperties(o)}static get _properties(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__properties",this))){const o=r(this);this.__properties=Object.assign({},o&&o._properties,i(this))}return this.__properties}static typeForProperty(o){const a=this._properties[o];return a&&a.type}_initializeProperties(){this.constructor.finalize(),super._initializeProperties()}connectedCallback(){super.connectedCallback&&super.connectedCallback(),this._enableProperties()}disconnectedCallback(){super.disconnectedCallback&&super.disconnectedCallback()}}return n});/**
|
|
2066
2077
|
* @fileoverview
|
|
2067
2078
|
* @suppress {checkPrototypalTypes}
|
|
2068
2079
|
* @license Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
@@ -2072,7 +2083,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
2072
2083
|
* be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
|
|
2073
2084
|
* Google as part of the polymer project is also subject to an additional IP
|
|
2074
2085
|
* rights grant found at http://polymer.github.io/PATENTS.txt
|
|
2075
|
-
*/const
|
|
2086
|
+
*/const By="3.5.2",Rl=window.ShadyCSS&&window.ShadyCSS.cssBuild,Ny=Ye(e=>{const t=Oy(ya(e));function r(l){if(!l.hasOwnProperty(JSCompiler_renameProperty("__propertyDefaults",l))){l.__propertyDefaults=null;let u=l._properties;for(let d in u){let c=u[d];"value"in c&&(l.__propertyDefaults=l.__propertyDefaults||{},l.__propertyDefaults[d]=c)}}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 n(l,u,d,c){d.computed&&(d.readOnly=!0),d.computed&&(l._hasReadOnlyEffect(u)?console.warn(`Cannot redefine computed property '${u}'.`):l._createComputedProperty(u,d.computed,c)),d.readOnly&&!l._hasReadOnlyEffect(u)?l._createReadOnlyProperty(u,!d.computed):d.readOnly===!1&&l._hasReadOnlyEffect(u)&&console.warn(`Cannot make readOnly property '${u}' non-readOnly.`),d.reflectToAttribute&&!l._hasReflectEffect(u)?l._createReflectedProperty(u):d.reflectToAttribute===!1&&l._hasReflectEffect(u)&&console.warn(`Cannot make reflected property '${u}' non-reflected.`),d.notify&&!l._hasNotifyEffect(u)?l._createNotifyingProperty(u):d.notify===!1&&l._hasNotifyEffect(u)&&console.warn(`Cannot make notify property '${u}' non-notify.`),d.observer&&l._createPropertyObserver(u,d.observer,c[d.observer]),l._addPropertyToAttributeMap(u)}function s(l,u,d,c){if(!Rl){const h=u.content.querySelectorAll("style"),f=eh(u),b=Pv(d),g=u.content.firstElementChild;for(let y=0;y<b.length;y++){let _=b[y];_.textContent=l._processStyleText(_.textContent,c),u.content.insertBefore(_,g)}let v=0;for(let y=0;y<f.length;y++){let _=f[y],x=h[v];x!==_?(_=_.cloneNode(!0),x.parentNode.insertBefore(_,x)):v++,_.textContent=l._processStyleText(_.textContent,c)}}if(window.ShadyCSS&&window.ShadyCSS.prepareTemplate(u,d),Cv&&Rl&&_v){const h=u.content.querySelectorAll("style");if(h){let f="";Array.from(h).forEach(b=>{f+=b.textContent,b.parentNode.removeChild(b)}),l._styleSheet=new CSSStyleSheet,l._styleSheet.replaceSync(f)}}}function o(l){let u=null;if(l&&(!An||bv)&&(u=wi.import(l,"template"),An&&!u))throw new Error(`strictTemplatePolicy: expecting dom-module or null template for ${l}`);return u}class a extends t{static get polymerElementVersion(){return By}static _finalizeClass(){t._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):Kc||(u=u.cloneNode(!0))),this.prototype._template=u}static createProperties(u){for(let d in u)n(this.prototype,d,u[d],u)}static createObservers(u,d){const c=this.prototype;for(let h=0;h<u.length;h++)c._createMethodObserver(u[h],d)}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))&&o(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=ga(u.url);else{const d=wi.import(this.is);this._importPath=d&&d.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=gv,this.importPath=this.constructor.importPath;let u=r(this.constructor);if(u)for(let d in u){let c=u[d];if(this._canApplyPropertyDefault(d)){let h=typeof c.value=="function"?c.value.call(this):c.value;this._hasAccessor(d)?this._setPendingProperty(d,h,!0):this[d]=h}}}_canApplyPropertyDefault(u){return!this.hasOwnProperty(u)}static _processStyleText(u,d){return _a(u,d)}static _finalizeTemplate(u){const d=this.prototype._template;if(d&&!d.__polymerFinalized){d.__polymerFinalized=!0;const c=this.importPath,h=c?ci(c):"";s(this,d,u,h),this.prototype._bindTemplate(d)}}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 d=Ve(this);if(d.attachShadow)return u?(d.shadowRoot||(d.attachShadow({mode:"open",shadyUpgradeFragment:u}),d.shadowRoot.appendChild(u),this.constructor._styleSheet&&(d.shadowRoot.adoptedStyleSheets=[this.constructor._styleSheet])),vv&&window.ShadyDOM&&window.ShadyDOM.flushInitial(d.shadowRoot),d.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,d){return!d&&this.importPath&&(d=ci(this.importPath)),ci(u,d)}static _parseTemplateContent(u,d,c){return d.dynamicFns=d.dynamicFns||this._properties,t._parseTemplateContent.call(this,u,d,c)}static _addTemplatePropertyEffect(u,d,c){return Xc&&!(d in this._properties)&&!(c.info.part.signature&&c.info.part.signature.static)&&!c.info.part.hostProp&&!u.nestedTemplate&&console.warn(`Property '${d}' used in template but not declared in 'properties'; attribute will not be observed.`),t._addTemplatePropertyEffect.call(this,u,d,c)}}return a});/**
|
|
2076
2087
|
@license
|
|
2077
2088
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
2078
2089
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -2080,7 +2091,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
2080
2091
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
2081
2092
|
Code distributed by Google as part of the polymer project is also
|
|
2082
2093
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
2083
|
-
*/const
|
|
2094
|
+
*/const Hl=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:e=>e});class gh{constructor(t,r){vh(t,r);const i=r.reduce((n,s,o)=>n+bh(s)+t[o+1],t[0]);this.value=i.toString()}toString(){return this.value}}function bh(e){if(e instanceof gh)return e.value;throw new Error(`non-literal value passed to Polymer's htmlLiteral function: ${e}`)}function Iy(e){if(e instanceof HTMLTemplateElement)return e.innerHTML;if(e instanceof gh)return bh(e);throw new Error(`non-template value passed to Polymer's html function: ${e}`)}const mr=function(t,...r){vh(t,r);const i=document.createElement("template");let n=r.reduce((s,o,a)=>s+Iy(o)+t[a+1],t[0]);return Hl&&(n=Hl.createHTML(n)),i.innerHTML=n,i},vh=(e,t)=>{if(!Array.isArray(e)||!Array.isArray(e.raw)||t.length!==e.length-1)throw new TypeError("Invalid call to the html template tag")};/**
|
|
2084
2095
|
@license
|
|
2085
2096
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
2086
2097
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -2088,15 +2099,15 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
2088
2099
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
2089
2100
|
Code distributed by Google as part of the polymer project is also
|
|
2090
2101
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
2091
|
-
*/const
|
|
2102
|
+
*/const Jt=Ny(HTMLElement);/**
|
|
2092
2103
|
* @license
|
|
2093
2104
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
2094
2105
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2095
|
-
*/const kt=[];function
|
|
2106
|
+
*/const kt=[];function So(e,t,r=e.getAttribute("dir")){t?e.setAttribute("dir",t):r!=null&&e.removeAttribute("dir")}function ko(){return document.documentElement.getAttribute("dir")}function Ly(){const e=ko();kt.forEach(t=>{So(t,e)})}const Fy=new MutationObserver(Ly);Fy.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]});const ss=e=>class extends e{static get properties(){return{dir:{type:String,value:"",reflectToAttribute:!0,converter:{fromAttribute:r=>r||"",toAttribute:r=>r===""?null:r}}}}get __isRTL(){return this.getAttribute("dir")==="rtl"}connectedCallback(){super.connectedCallback(),(!this.hasAttribute("dir")||this.__restoreSubscription)&&(this.__subscribe(),So(this,ko(),null))}attributeChangedCallback(r,i,n){if(super.attributeChangedCallback(r,i,n),r!=="dir")return;const s=ko(),o=n===s&&kt.indexOf(this)===-1,a=!n&&i&&kt.indexOf(this)===-1;o||a?(this.__subscribe(),So(this,s,n)):n!==s&&i===s&&this.__unsubscribe()}disconnectedCallback(){super.disconnectedCallback(),this.__restoreSubscription=kt.includes(this),this.__unsubscribe()}_valueToNodeAttribute(r,i,n){n==="dir"&&i===""&&!r.hasAttribute("dir")||super._valueToNodeAttribute(r,i,n)}_attributeToProperty(r,i,n){r==="dir"&&!i?this.dir="":super._attributeToProperty(r,i,n)}__subscribe(){kt.includes(this)||kt.push(this)}__unsubscribe(){kt.includes(this)&&kt.splice(kt.indexOf(this),1)}};/**
|
|
2096
2107
|
* @license
|
|
2097
2108
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
2098
2109
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2099
|
-
*/const
|
|
2110
|
+
*/const Ry=e=>class extends e{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(i=>i.focus&&i.focus())})}};/**
|
|
2100
2111
|
* @license
|
|
2101
2112
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
2102
2113
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
@@ -2169,11 +2180,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
2169
2180
|
* @license
|
|
2170
2181
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
2171
2182
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2172
|
-
*/Fe("vaadin-input-container",Hy,{moduleId:"vaadin-input-container-styles"});class
|
|
2183
|
+
*/Fe("vaadin-input-container",Hy,{moduleId:"vaadin-input-container-styles"});class zy extends Ry(fr(ss(Jt))){static get is(){return"vaadin-input-container"}static get template(){return mr`
|
|
2173
2184
|
<slot name="prefix"></slot>
|
|
2174
2185
|
<slot></slot>
|
|
2175
2186
|
<slot name="suffix"></slot>
|
|
2176
|
-
`}}
|
|
2187
|
+
`}}xt(zy);/**
|
|
2177
2188
|
* @license
|
|
2178
2189
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
2179
2190
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
@@ -2240,7 +2251,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
2240
2251
|
* @license
|
|
2241
2252
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
2242
2253
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2243
|
-
*/let
|
|
2254
|
+
*/let wa=!1;window.addEventListener("keydown",()=>{wa=!0},{capture:!0});window.addEventListener("mousedown",()=>{wa=!1},{capture:!0});function Ao(){let e=document.activeElement||document.body;for(;e.shadowRoot&&e.shadowRoot.activeElement;)e=e.shadowRoot.activeElement;return e}function Ca(){return wa}function Uy(e){const t=e.style;if(t.visibility==="hidden"||t.display==="none")return!0;const r=window.getComputedStyle(e);return r.visibility==="hidden"||r.display==="none"}function Wy(e,t){const r=Math.max(e.tabIndex,0),i=Math.max(t.tabIndex,0);return r===0||i===0?i>r:r>i}function $y(e,t){const r=[];for(;e.length>0&&t.length>0;)Wy(e[0],t[0])?r.push(t.shift()):r.push(e.shift());return r.concat(e,t)}function To(e){const t=e.length;if(t<2)return e;const r=Math.ceil(t/2),i=To(e.slice(0,r)),n=To(e.slice(r));return $y(i,n)}function yh(e){return e.matches('[tabindex="-1"]')?!1:e.matches("input, select, textarea, button, object")?e.matches(":not([disabled])"):e.matches("a[href], area[href], iframe, [tabindex], [contentEditable]")}function Vy(e){return e.getRootNode().activeElement===e}function Gy(e){if(!yh(e))return-1;const t=e.getAttribute("tabindex")||0;return Number(t)}function wh(e,t){if(e.nodeType!==Node.ELEMENT_NODE||Uy(e))return!1;const r=e,i=Gy(r);let n=i>0;i>=0&&t.push(r);let s=[];return r.localName==="slot"?s=r.assignedNodes({flatten:!0}):s=(r.shadowRoot||r).children,[...s].forEach(o=>{n=wh(o,t)||n}),n}function jy(e){const t=[];return wh(e,t)?To(t):t}/**
|
|
2244
2255
|
@license
|
|
2245
2256
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
2246
2257
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -2248,63 +2259,63 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
2248
2259
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
2249
2260
|
Code distributed by Google as part of the polymer project is also
|
|
2250
2261
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
2251
|
-
*/let
|
|
2262
|
+
*/let Po=!1,qy=[],Ch=[];function Zy(){Po=!0,requestAnimationFrame(function(){Po=!1,Ky(qy),setTimeout(function(){Xy(Ch)})})}function Ky(e){for(;e.length;)Eh(e.shift())}function Xy(e){for(let t=0,r=e.length;t<r;t++)Eh(e.shift())}function Eh(e){const t=e[0],r=e[1],i=e[2];try{r.apply(t,i)}catch(n){setTimeout(()=>{throw n})}}function xh(e,t,r){Po||Zy(),Ch.push([e,t,r])}/**
|
|
2252
2263
|
* @license
|
|
2253
2264
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
2254
2265
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2255
|
-
*/const
|
|
2266
|
+
*/const os=e=>e.test(navigator.userAgent),Do=e=>e.test(navigator.platform),Jy=e=>e.test(navigator.vendor);os(/Android/u);os(/Chrome/u)&&Jy(/Google Inc/u);os(/Firefox/u);const Qy=Do(/^iPad/u)||Do(/^Mac/u)&&navigator.maxTouchPoints>1,e1=Do(/^iPhone/u),Sh=e1||Qy;os(/^((?!chrome|android).)*safari/iu);const t1=(()=>{try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}})();/**
|
|
2256
2267
|
* @license
|
|
2257
2268
|
* Copyright (c) 2017 Anton Korzunov
|
|
2258
2269
|
* SPDX-License-Identifier: MIT
|
|
2259
|
-
*/let
|
|
2270
|
+
*/let yr=new WeakMap,Qi=new WeakMap,en={},Fs=0;const zl=e=>e&&e.nodeType===Node.ELEMENT_NODE,Rs=(...e)=>{console.error(`Error: ${e.join(" ")}. Skip setting aria-hidden.`)},r1=(e,t)=>zl(e)?t.map(r=>{if(!zl(r))return Rs(r,"is not a valid element"),null;let i=r;for(;i&&i!==e;){if(e.contains(i))return r;i=i.getRootNode().host}return Rs(r,"is not contained inside",e),null}).filter(r=>!!r):(Rs(e,"is not a valid element"),[]),i1=(e,t,r,i)=>{const n=r1(t,Array.isArray(e)?e:[e]);en[r]||(en[r]=new WeakMap);const s=en[r],o=[],a=new Set,l=new Set(n),u=c=>{if(!c||a.has(c))return;a.add(c);const h=c.assignedSlot;h&&u(h),u(c.parentNode||c.host)};n.forEach(u);const d=c=>{if(!c||l.has(c))return;const h=c.shadowRoot;(h?[...c.children,...h.children]:[...c.children]).forEach(b=>{if(!["template","script","style"].includes(b.localName))if(a.has(b))d(b);else{const g=b.getAttribute(i),v=g!==null&&g!=="false",y=(yr.get(b)||0)+1,_=(s.get(b)||0)+1;yr.set(b,y),s.set(b,_),o.push(b),y===1&&v&&Qi.set(b,!0),_===1&&b.setAttribute(r,"true"),v||b.setAttribute(i,"true")}})};return d(t),a.clear(),Fs+=1,()=>{o.forEach(c=>{const h=yr.get(c)-1,f=s.get(c)-1;yr.set(c,h),s.set(c,f),h||(Qi.has(c)?Qi.delete(c):c.removeAttribute(i)),f||c.removeAttribute(r)}),Fs-=1,Fs||(yr=new WeakMap,yr=new WeakMap,Qi=new WeakMap,en={})}},kh=(e,t=document.body,r="data-aria-hidden")=>{const i=Array.from(Array.isArray(e)?e:[e]);return t&&i.push(...Array.from(t.querySelectorAll("[aria-live]"))),i1(i,t,r,"aria-hidden")};/**
|
|
2260
2271
|
* @license
|
|
2261
2272
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
2262
2273
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2263
|
-
*/class
|
|
2274
|
+
*/class n1{constructor(t,r){this.host=t,this.callback=typeof r=="function"?r:()=>t}showModal(){const t=this.callback();this.__showOthers=kh(t)}close(){this.__showOthers&&(this.__showOthers(),this.__showOthers=null)}}/**
|
|
2264
2275
|
* @license
|
|
2265
2276
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
2266
2277
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2267
|
-
*/class
|
|
2278
|
+
*/class s1{saveFocus(t){this.focusNode=t||Ao()}restoreFocus(t){const r=this.focusNode;if(!r)return;const i=t?t.preventScroll:!1;Ao()===document.body?setTimeout(()=>r.focus({preventScroll:i})):r.focus({preventScroll:i}),this.focusNode=null}}/**
|
|
2268
2279
|
* @license
|
|
2269
2280
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
2270
2281
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2271
|
-
*/const
|
|
2282
|
+
*/const Hs=[];class o1{constructor(t){this.host=t,this.__trapNode=null,this.__onKeyDown=this.__onKeyDown.bind(this)}get __focusableElements(){return jy(this.__trapNode)}get __focusedElementIndex(){const t=this.__focusableElements;return t.indexOf(t.filter(Vy).pop())}hostConnected(){document.addEventListener("keydown",this.__onKeyDown)}hostDisconnected(){document.removeEventListener("keydown",this.__onKeyDown)}trapFocus(t){if(this.__trapNode=t,this.__focusableElements.length===0)throw this.__trapNode=null,new Error("The trap node should have at least one focusable descendant or be focusable itself.");Hs.push(this),this.__focusedElementIndex===-1&&this.__focusableElements[0].focus()}releaseFocus(){this.__trapNode=null,Hs.pop()}__onKeyDown(t){if(this.__trapNode&&this===Array.from(Hs).pop()&&t.key==="Tab"){t.preventDefault();const r=t.shiftKey;this.__focusNextElement(r)}}__focusNextElement(t=!1){const r=this.__focusableElements,i=t?-1:1,n=this.__focusedElementIndex,s=(r.length+n+i)%r.length,o=r[s];o.focus(),o.localName==="input"&&o.select()}}/**
|
|
2272
2283
|
* @license
|
|
2273
2284
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
2274
2285
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2275
|
-
*/const qr=
|
|
2286
|
+
*/const qr=Ye(e=>typeof e.prototype.addController=="function"?e:class extends e{constructor(){super(),this.__controllers=new Set}connectedCallback(){super.connectedCallback(),this.__controllers.forEach(r=>{r.hostConnected&&r.hostConnected()})}disconnectedCallback(){super.disconnectedCallback(),this.__controllers.forEach(r=>{r.hostDisconnected&&r.hostDisconnected()})}addController(r){this.__controllers.add(r),this.$!==void 0&&this.isConnected&&r.hostConnected&&r.hostConnected()}removeController(r){this.__controllers.delete(r)}});/**
|
|
2276
2287
|
* @license
|
|
2277
2288
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
2278
2289
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2279
|
-
*/const
|
|
2290
|
+
*/const a1=e=>class extends qr(e){static get properties(){return{focusTrap:{type:Boolean,value:!1},restoreFocusOnClose:{type:Boolean,value:!1},restoreFocusNode:{type:HTMLElement}}}constructor(){super(),this.__ariaModalController=new n1(this),this.__focusTrapController=new o1(this),this.__focusRestorationController=new s1}ready(){super.ready(),this.addController(this.__ariaModalController),this.addController(this.__focusTrapController),this.addController(this.__focusRestorationController)}_resetFocus(){if(this.focusTrap&&(this.__ariaModalController.close(),this.__focusTrapController.releaseFocus()),this.restoreFocusOnClose&&this._shouldRestoreFocus()){const r=!Ca();this.__focusRestorationController.restoreFocus({preventScroll:r})}}_saveFocus(){this.restoreFocusOnClose&&this.__focusRestorationController.saveFocus(this.restoreFocusNode)}_trapFocus(){this.focusTrap&&(this.__ariaModalController.showModal(),this.__focusTrapController.trapFocus(this.$.overlay))}_shouldRestoreFocus(){const r=Ao();return r===document.body||this._deepContains(r)}_deepContains(r){if(this.contains(r))return!0;let i=r;const n=r.ownerDocument;for(;i&&i!==n&&i!==this;)i=i.parentNode||i.host;return i===this}};/**
|
|
2280
2291
|
* @license
|
|
2281
2292
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
2282
2293
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2283
|
-
*/const
|
|
2294
|
+
*/const Ah=()=>Array.from(document.body.children).filter(e=>e instanceof HTMLElement&&e._hasOverlayStackMixin&&!e.hasAttribute("closing")).sort((e,t)=>e.__zIndex-t.__zIndex||0),Mo=()=>Ah().filter(e=>e.$.overlay),l1=e=>e===Mo().pop(),u1=e=>class extends e{constructor(){super(),this._hasOverlayStackMixin=!0}get _last(){return l1(this)}bringToFront(){let r="";const i=Ah().filter(n=>n!==this).pop();i&&(r=i.__zIndex+1),this.style.zIndex=r,this.__zIndex=r||parseFloat(getComputedStyle(this).zIndex)}_enterModalState(){document.body.style.pointerEvents!=="none"&&(this._previousDocumentPointerEvents=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),Mo().forEach(r=>{r!==this&&(r.$.overlay.style.pointerEvents="none")})}_exitModalState(){this._previousDocumentPointerEvents!==void 0&&(document.body.style.pointerEvents=this._previousDocumentPointerEvents,delete this._previousDocumentPointerEvents);const r=Mo();let i;for(;(i=r.pop())&&!(i!==this&&(i.$.overlay.style.removeProperty("pointer-events"),!i.modeless)););}};/**
|
|
2284
2295
|
* @license
|
|
2285
2296
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
2286
2297
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2287
|
-
*/const
|
|
2298
|
+
*/const d1=e=>class extends a1(u1(e)){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),Sh&&(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(r){const i=new CustomEvent("vaadin-overlay-close",{bubbles:!0,cancelable:!0,detail:{sourceEvent:r}});this.dispatchEvent(i),i.defaultPrevented||(this.opened=!1)}_detectIosNavbar(){if(!this.opened)return;const r=window.innerHeight,n=window.innerWidth>r,s=document.documentElement.clientHeight;n&&s>r?this.style.setProperty("--vaadin-overlay-viewport-bottom",`${s-r}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(r,i,n,s){const o=this._oldOwner!==i||this._oldModel!==n;this._oldModel=n,this._oldOwner=i;const a=this._oldRenderer!==r,l=this._oldRenderer!==void 0;this._oldRenderer=r;const u=this._oldOpened!==s;this._oldOpened=s,a&&l&&(this.innerHTML="",delete this._$litPart$),s&&r&&(a||u||o)&&this.requestContentUpdate()}_modelessChanged(r){r?(this._removeGlobalListeners(),this._exitModalState()):this.opened&&(this._addGlobalListeners(),this._enterModalState())}_openedChanged(r,i){r?(this._saveFocus(),this._animatedOpening(),xh(this,()=>{this._trapFocus();const n=new CustomEvent("vaadin-overlay-open",{bubbles:!0});this.dispatchEvent(n)}),document.addEventListener("keydown",this._boundKeydownListener),this.modeless||this._addGlobalListeners()):i&&(this._resetFocus(),this._animatedClosing(),document.removeEventListener("keydown",this._boundKeydownListener),this.modeless||this._removeGlobalListeners())}_hiddenChanged(r){r&&this.hasAttribute("closing")&&this._flushAnimation("closing")}_shouldAnimate(){const r=getComputedStyle(this),i=r.getPropertyValue("animation-name");return!(r.getPropertyValue("display")==="none")&&i&&i!=="none"}_enqueueAnimation(r,i){const n=`__${r}Handler`,s=o=>{o&&o.target!==this||(i(),this.removeEventListener("animationend",s),delete this[n])};this[n]=s,this.addEventListener("animationend",s)}_flushAnimation(r){const i=`__${r}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(r){this._mouseDownInside=r.composedPath().indexOf(this.$.overlay)>=0}_mouseUpListener(r){this._mouseUpInside=r.composedPath().indexOf(this.$.overlay)>=0}_shouldCloseOnOutsideClick(r){return this._last}_outsideClickListener(r){if(r.composedPath().includes(this.$.overlay)||this._mouseDownInside||this._mouseUpInside){this._mouseDownInside=!1,this._mouseUpInside=!1;return}if(!this._shouldCloseOnOutsideClick(r))return;const i=new CustomEvent("vaadin-overlay-outside-click",{bubbles:!0,cancelable:!0,detail:{sourceEvent:r}});this.dispatchEvent(i),this.opened&&!i.defaultPrevented&&this.close(r)}_keydownListener(r){if(this._last&&!(this.modeless&&!r.composedPath().includes(this.$.overlay))&&r.key==="Escape"){const i=new CustomEvent("vaadin-overlay-escape-press",{bubbles:!0,cancelable:!0,detail:{sourceEvent:r}});this.dispatchEvent(i),this.opened&&!i.defaultPrevented&&this.close(r)}}};/**
|
|
2288
2299
|
* @license
|
|
2289
2300
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
2290
2301
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2291
|
-
*/function
|
|
2302
|
+
*/function c1(e){const t=[];for(;e;){if(e.nodeType===Node.DOCUMENT_NODE){t.push(e);break}if(e.nodeType===Node.DOCUMENT_FRAGMENT_NODE){t.push(e),e=e.host;continue}if(e.assignedSlot){e=e.assignedSlot;continue}e=e.parentNode}return t}function Ea(e){return e?new Set(e.split(" ")):new Set}function as(e){return e?[...e].join(" "):""}function Th(e,t,r){const i=Ea(e.getAttribute(t));i.add(r),e.setAttribute(t,as(i))}function h1(e,t,r){const i=Ea(e.getAttribute(t));if(i.delete(r),i.size===0){e.removeAttribute(t);return}e.setAttribute(t,as(i))}function f1(e){return e.nodeType===Node.TEXT_NODE&&e.textContent.trim()===""}/**
|
|
2292
2303
|
* @license
|
|
2293
2304
|
* Copyright (c) 2024 Vaadin Ltd.
|
|
2294
2305
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2295
|
-
*/function
|
|
2306
|
+
*/function p1(e,t){let r=null;const i=document.documentElement;function n(){r&&r.disconnect(),r=null}function s(o=!1,a=1){n();const{left:l,top:u,width:d,height:c}=e.getBoundingClientRect();if(o||t(),!d||!c)return;const h=Math.floor(u),f=Math.floor(i.clientWidth-(l+d)),b=Math.floor(i.clientHeight-(u+c)),g=Math.floor(l),y={rootMargin:`${-h}px ${-f}px ${-b}px ${-g}px`,threshold:Math.max(0,Math.min(1,a))||1};let _=!0;function x(w){let N=w[0].intersectionRatio;if(N!==a){if(!_)return s();N===0&&(N=1e-7),s(!1,N)}_=!1}r=new IntersectionObserver(x,y),r.observe(e)}return s(!0),n}/**
|
|
2296
2307
|
* @license
|
|
2297
2308
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
2298
2309
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2299
|
-
*/const
|
|
2310
|
+
*/const zs={start:"top",end:"bottom"},Ys={start:"left",end:"right"},Yl=new ResizeObserver(e=>{setTimeout(()=>{e.forEach(t=>{t.target.__overlay&&t.target.__overlay._updatePosition()})})}),m1=e=>class extends e{static get properties(){return{positionTarget:{type:Object,value:null,sync:!0},horizontalAlign:{type:String,value:"start",sync:!0},verticalAlign:{type:String,value:"top",sync:!0},noHorizontalOverlap:{type:Boolean,value:!1,sync:!0},noVerticalOverlap:{type:Boolean,value:!1,sync:!0},requiredVerticalSpace:{type:Number,value:0,sync:!0}}}static get observers(){return["__positionSettingsChanged(horizontalAlign, verticalAlign, noHorizontalOverlap, noVerticalOverlap, requiredVerticalSpace)","__overlayOpenedChanged(opened, positionTarget)"]}constructor(){super(),this.__onScroll=this.__onScroll.bind(this),this._updatePosition=this._updatePosition.bind(this)}connectedCallback(){super.connectedCallback(),this.opened&&this.__addUpdatePositionEventListeners()}disconnectedCallback(){super.disconnectedCallback(),this.__removeUpdatePositionEventListeners()}__addUpdatePositionEventListeners(){window.visualViewport.addEventListener("resize",this._updatePosition),window.visualViewport.addEventListener("scroll",this.__onScroll,!0),this.__positionTargetAncestorRootNodes=c1(this.positionTarget),this.__positionTargetAncestorRootNodes.forEach(r=>{r.addEventListener("scroll",this.__onScroll,!0)}),this.positionTarget&&(this.__observePositionTargetMove=p1(this.positionTarget,()=>{this._updatePosition()}))}__removeUpdatePositionEventListeners(){window.visualViewport.removeEventListener("resize",this._updatePosition),window.visualViewport.removeEventListener("scroll",this.__onScroll,!0),this.__positionTargetAncestorRootNodes&&(this.__positionTargetAncestorRootNodes.forEach(r=>{r.removeEventListener("scroll",this.__onScroll,!0)}),this.__positionTargetAncestorRootNodes=null),this.__observePositionTargetMove&&(this.__observePositionTargetMove(),this.__observePositionTargetMove=null)}__overlayOpenedChanged(r,i){if(this.__removeUpdatePositionEventListeners(),i&&(i.__overlay=null,Yl.unobserve(i),r&&(this.__addUpdatePositionEventListeners(),i.__overlay=this,Yl.observe(i))),r){const n=getComputedStyle(this);this.__margins||(this.__margins={},["top","bottom","left","right"].forEach(s=>{this.__margins[s]=parseInt(n[s],10)})),this._updatePosition(),requestAnimationFrame(()=>this._updatePosition())}}__positionSettingsChanged(){this._updatePosition()}__onScroll(r){r.target instanceof Node&&this.contains(r.target)||this._updatePosition()}_updatePosition(){if(!this.positionTarget||!this.opened||!this.__margins)return;const r=this.positionTarget.getBoundingClientRect();if(r.width===0&&r.height===0&&this.opened){this.opened=!1;return}const i=this.__shouldAlignStartVertically(r);this.style.justifyContent=i?"flex-start":"flex-end";const n=this.__isRTL,s=this.__shouldAlignStartHorizontally(r,n),o=!n&&s||n&&!s;this.style.alignItems=o?"flex-start":"flex-end";const a=this.getBoundingClientRect(),l=this.__calculatePositionInOneDimension(r,a,this.noVerticalOverlap,zs,this,i),u=this.__calculatePositionInOneDimension(r,a,this.noHorizontalOverlap,Ys,this,s);Object.assign(this.style,l,u),this.toggleAttribute("bottom-aligned",!i),this.toggleAttribute("top-aligned",i),this.toggleAttribute("end-aligned",!o),this.toggleAttribute("start-aligned",o)}__shouldAlignStartHorizontally(r,i){const n=Math.max(this.__oldContentWidth||0,this.$.overlay.offsetWidth);this.__oldContentWidth=this.$.overlay.offsetWidth;const s=Math.min(window.innerWidth,document.documentElement.clientWidth),o=!i&&this.horizontalAlign==="start"||i&&this.horizontalAlign==="end";return this.__shouldAlignStart(r,n,s,this.__margins,o,this.noHorizontalOverlap,Ys)}__shouldAlignStartVertically(r){const i=this.requiredVerticalSpace||Math.max(this.__oldContentHeight||0,this.$.overlay.offsetHeight);this.__oldContentHeight=this.$.overlay.offsetHeight;const n=Math.min(window.innerHeight,document.documentElement.clientHeight),s=this.verticalAlign==="top";return this.__shouldAlignStart(r,i,n,this.__margins,s,this.noVerticalOverlap,zs)}__shouldAlignStart(r,i,n,s,o,a,l){const u=n-r[a?l.end:l.start]-s[l.end],d=r[a?l.start:l.end]-s[l.start],c=o?u:d,f=c>(o?d:u)||c>i;return o===f}__adjustBottomProperty(r,i,n){let s;if(r===i.end){if(i.end===zs.end){const o=Math.min(window.innerHeight,document.documentElement.clientHeight);if(n>o&&this.__oldViewportHeight){const a=this.__oldViewportHeight-o;s=n-a}this.__oldViewportHeight=o}if(i.end===Ys.end){const o=Math.min(window.innerWidth,document.documentElement.clientWidth);if(n>o&&this.__oldViewportWidth){const a=this.__oldViewportWidth-o;s=n-a}this.__oldViewportWidth=o}}return s}__calculatePositionInOneDimension(r,i,n,s,o,a){const l=a?s.start:s.end,u=a?s.end:s.start,d=parseFloat(o.style[l]||getComputedStyle(o)[l]),c=this.__adjustBottomProperty(l,s,d),h=i[a?s.start:s.end]-r[n===a?s.end:s.start],f=c?`${c}px`:`${d+h*(a?-1:1)}px`;return{[l]:f,[u]:""}}};/**
|
|
2300
2311
|
* @license
|
|
2301
2312
|
* Copyright (c) 2015 - 2024 Vaadin Ltd.
|
|
2302
2313
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2303
|
-
*/const
|
|
2314
|
+
*/const _1=e=>class extends m1(d1(e)){_shouldCloseOnOutsideClick(r){return!r.composedPath().includes(this.positionTarget)}_mouseDownListener(r){super._mouseDownListener(r),this._shouldCloseOnOutsideClick(r)&&!yh(r.composedPath()[0])&&r.preventDefault()}};/**
|
|
2304
2315
|
* @license
|
|
2305
2316
|
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
2306
2317
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2307
|
-
*/const
|
|
2318
|
+
*/const g1=_e`
|
|
2308
2319
|
[part='overlay'] {
|
|
2309
2320
|
display: flex;
|
|
2310
2321
|
flex: auto;
|
|
@@ -2323,14 +2334,14 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
2323
2334
|
* @license
|
|
2324
2335
|
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
2325
2336
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2326
|
-
*/Fe("vaadin-date-picker-overlay",[Yy,
|
|
2337
|
+
*/Fe("vaadin-date-picker-overlay",[Yy,g1],{moduleId:"vaadin-date-picker-overlay-styles"});class b1 extends _1(ss(fr(Jt))){static get is(){return"vaadin-date-picker-overlay"}static get template(){return mr`
|
|
2327
2338
|
<div id="backdrop" part="backdrop" hidden$="[[!withBackdrop]]"></div>
|
|
2328
2339
|
<div part="overlay" id="overlay">
|
|
2329
2340
|
<div part="content" id="content">
|
|
2330
2341
|
<slot></slot>
|
|
2331
2342
|
</div>
|
|
2332
2343
|
</div>
|
|
2333
|
-
`}}
|
|
2344
|
+
`}}xt(b1);const v1=/\/\*[\*!]\s+vaadin-dev-mode:start([\s\S]*)vaadin-dev-mode:end\s+\*\*\//i,hn=window.Vaadin&&window.Vaadin.Flow&&window.Vaadin.Flow.clients;function y1(){function e(){return!0}return Ph(e)}function w1(){try{return C1()?!0:E1()?hn?!x1():!y1():!1}catch(e){return!1}}function C1(){return localStorage.getItem("vaadin.developmentmode.force")}function E1(){return["localhost","127.0.0.1"].indexOf(window.location.hostname)>=0}function x1(){return!!(hn&&Object.keys(hn).map(t=>hn[t]).filter(t=>t.productionMode).length>0)}function Ph(e,t){if(typeof e!="function")return;const r=v1.exec(e.toString());if(r)try{e=new Function(r[1])}catch(i){console.log("vaadin-development-mode-detector: uncommentAndRun() failed",i)}return e(t)}window.Vaadin=window.Vaadin||{};const Ul=function(e,t){if(window.Vaadin.developmentMode)return Ph(e,t)};window.Vaadin.developmentMode===void 0&&(window.Vaadin.developmentMode=w1());function S1(){/*! vaadin-dev-mode:start
|
|
2334
2345
|
(function () {
|
|
2335
2346
|
'use strict';
|
|
2336
2347
|
|
|
@@ -2808,7 +2819,7 @@ try {
|
|
|
2808
2819
|
|
|
2809
2820
|
}());
|
|
2810
2821
|
|
|
2811
|
-
vaadin-dev-mode:end **/}const k1=function(){if(typeof
|
|
2822
|
+
vaadin-dev-mode:end **/}const k1=function(){if(typeof Ul=="function")return Ul(S1)};/**
|
|
2812
2823
|
* @license
|
|
2813
2824
|
* Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
2814
2825
|
* This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -2816,7 +2827,7 @@ try {
|
|
|
2816
2827
|
* The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
2817
2828
|
* Code distributed by Google as part of the polymer project is also
|
|
2818
2829
|
* subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
2819
|
-
*/let
|
|
2830
|
+
*/let Wl=0,Dh=0;const Or=[];let Oo=!1;function A1(){Oo=!1;const e=Or.length;for(let t=0;t<e;t++){const r=Or[t];if(r)try{r()}catch(i){setTimeout(()=>{throw i})}}Or.splice(0,e),Dh+=e}const Pn={after(e){return{run(t){return window.setTimeout(t,e)},cancel(t){window.clearTimeout(t)}}},run(e,t){return window.setTimeout(e,t)},cancel(e){window.clearTimeout(e)}},T1={run(e){return window.requestAnimationFrame(e)},cancel(e){window.cancelAnimationFrame(e)}},P1={run(e){return window.requestIdleCallback?window.requestIdleCallback(e):window.setTimeout(e,16)},cancel(e){window.cancelIdleCallback?window.cancelIdleCallback(e):window.clearTimeout(e)}},D1={run(e){Oo||(Oo=!0,queueMicrotask(()=>A1())),Or.push(e);const t=Wl;return Wl+=1,t},cancel(e){const t=e-Dh;if(t>=0){if(!Or[t])throw new Error(`invalid async handle: ${e}`);Or[t]=null}}};/**
|
|
2820
2831
|
@license
|
|
2821
2832
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
2822
2833
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -2824,31 +2835,31 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
2824
2835
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
2825
2836
|
Code distributed by Google as part of the polymer project is also
|
|
2826
2837
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
2827
|
-
*/const
|
|
2838
|
+
*/const Bo=new Set;let zr=class No{static debounce(t,r,i){return t instanceof No?t._cancelAsync():t=new No,t.setConfig(r,i),t}constructor(){this._asyncModule=null,this._callback=null,this._timer=null}setConfig(t,r){this._asyncModule=t,this._callback=r,this._timer=this._asyncModule.run(()=>{this._timer=null,Bo.delete(this),this._callback()})}cancel(){this.isActive()&&(this._cancelAsync(),Bo.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 M1(e){Bo.add(e)}/**
|
|
2828
2839
|
* @license
|
|
2829
2840
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
2830
2841
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2831
|
-
*/window.Vaadin||(window.Vaadin={});window.Vaadin.registrations||(window.Vaadin.registrations=[]);window.Vaadin.developmentModeCallback||(window.Vaadin.developmentModeCallback={});window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]=function(){k1()};let
|
|
2842
|
+
*/window.Vaadin||(window.Vaadin={});window.Vaadin.registrations||(window.Vaadin.registrations=[]);window.Vaadin.developmentModeCallback||(window.Vaadin.developmentModeCallback={});window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]=function(){k1()};let Us;const $l=new Set,Mh=e=>class extends ss(e){static finalize(){super.finalize();const{is:r}=this;r&&!$l.has(r)&&(window.Vaadin.registrations.push(this),$l.add(r),window.Vaadin.developmentModeCallback&&(Us=zr.debounce(Us,P1,()=>{window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]()}),M1(Us)))}constructor(){super(),document.doctype===null&&console.warn('Vaadin components require the "standards mode" declaration. Please add <!DOCTYPE html> to the HTML document.')}};/**
|
|
2832
2843
|
* @license
|
|
2833
2844
|
* Copyright (c) 2023 - 2024 Vaadin Ltd.
|
|
2834
2845
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2835
|
-
*/class
|
|
2846
|
+
*/class O1{constructor(t,r){this.slot=t,this.callback=r,this._storedNodes=[],this._connected=!1,this._scheduled=!1,this._boundSchedule=()=>{this._schedule()},this.connect(),this._schedule()}connect(){this.slot.addEventListener("slotchange",this._boundSchedule),this._connected=!0}disconnect(){this.slot.removeEventListener("slotchange",this._boundSchedule),this._connected=!1}_schedule(){this._scheduled||(this._scheduled=!0,queueMicrotask(()=>{this.flush()}))}flush(){this._connected&&(this._scheduled=!1,this._processNodes())}_processNodes(){const t=this.slot.assignedNodes({flatten:!0});let r=[];const i=[],n=[];t.length&&(r=t.filter(s=>!this._storedNodes.includes(s))),this._storedNodes.length&&this._storedNodes.forEach((s,o)=>{const a=t.indexOf(s);a===-1?i.push(s):a!==o&&n.push(s)}),(r.length||i.length||n.length)&&this.callback({addedNodes:r,currentNodes:t,movedNodes:n,removedNodes:i}),this._storedNodes=t}}/**
|
|
2836
2847
|
* @license
|
|
2837
2848
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
2838
2849
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2839
|
-
*/let
|
|
2850
|
+
*/let B1=0;function Oh(){return B1++}/**
|
|
2840
2851
|
* @license
|
|
2841
2852
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
2842
2853
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2843
|
-
*/class
|
|
2854
|
+
*/class or extends EventTarget{static generateId(t,r="default"){return`${r}-${t.localName}-${Oh()}`}constructor(t,r,i,n={}){super();const{initializer:s,multiple:o,observe:a,useUniqueId:l,uniqueIdPrefix:u}=n;this.host=t,this.slotName=r,this.tagName=i,this.observe=typeof a=="boolean"?a:!0,this.multiple=typeof o=="boolean"?o:!1,this.slotInitializer=s,o&&(this.nodes=[]),l&&(this.defaultId=this.constructor.generateId(t,u||r))}hostConnected(){this.initialized||(this.multiple?this.initMultiple():this.initSingle(),this.observe&&this.observeSlot(),this.initialized=!0)}initSingle(){let t=this.getSlotChild();t?(this.node=t,this.initAddedNode(t)):(t=this.attachDefaultNode(),this.initNode(t))}initMultiple(){const t=this.getSlotChildren();if(t.length===0){const r=this.attachDefaultNode();r&&(this.nodes=[r],this.initNode(r))}else this.nodes=t,t.forEach(r=>{this.initAddedNode(r)})}attachDefaultNode(){const{host:t,slotName:r,tagName:i}=this;let n=this.defaultNode;return!n&&i&&(n=document.createElement(i),n instanceof Element&&(r!==""&&n.setAttribute("slot",r),this.defaultNode=n)),n&&(this.node=n,t.appendChild(n)),n}getSlotChildren(){const{slotName:t}=this;return Array.from(this.host.childNodes).filter(r=>r.nodeType===Node.ELEMENT_NODE&&r.slot===t||r.nodeType===Node.TEXT_NODE&&r.textContent.trim()&&t==="")}getSlotChild(){return this.getSlotChildren()[0]}initNode(t){const{slotInitializer:r}=this;r&&r(t,this.host)}initCustomNode(t){}teardownNode(t){}initAddedNode(t){t!==this.defaultNode&&(this.initCustomNode(t),this.initNode(t))}observeSlot(){const{slotName:t}=this,r=t===""?"slot:not([name])":`slot[name=${t}]`,i=this.host.shadowRoot.querySelector(r);this.__slotObserver=new O1(i,({addedNodes:n,removedNodes:s})=>{const o=this.multiple?this.nodes:[this.node],a=n.filter(l=>!f1(l)&&!o.includes(l));s.length&&(this.nodes=o.filter(l=>!s.includes(l)),s.forEach(l=>{this.teardownNode(l)})),a&&a.length>0&&(this.multiple?(this.defaultNode&&this.defaultNode.remove(),this.nodes=[...o,...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)))})}}/**
|
|
2844
2855
|
* @license
|
|
2845
2856
|
* Copyright (c) 2022 - 2024 Vaadin Ltd.
|
|
2846
2857
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2847
|
-
*/class
|
|
2858
|
+
*/class Bh extends or{constructor(t){super(t,"tooltip"),this.setTarget(t)}initCustomNode(t){t.target=this.target,this.ariaTarget!==void 0&&(t.ariaTarget=this.ariaTarget),this.context!==void 0&&(t.context=this.context),this.manual!==void 0&&(t.manual=this.manual),this.opened!==void 0&&(t.opened=this.opened),this.position!==void 0&&(t._position=this.position),this.shouldShow!==void 0&&(t.shouldShow=this.shouldShow),this.__notifyChange()}teardownNode(){this.__notifyChange()}setAriaTarget(t){this.ariaTarget=t;const r=this.node;r&&(r.ariaTarget=t)}setContext(t){this.context=t;const r=this.node;r&&(r.context=t)}setManual(t){this.manual=t;const r=this.node;r&&(r.manual=t)}setOpened(t){this.opened=t;const r=this.node;r&&(r.opened=t)}setPosition(t){this.position=t;const r=this.node;r&&(r._position=t)}setShouldShow(t){this.shouldShow=t;const r=this.node;r&&(r.shouldShow=t)}setTarget(t){this.target=t;const r=this.node;r&&(r.target=t)}__notifyChange(){this.dispatchEvent(new CustomEvent("tooltip-changed",{detail:{node:this.node}}))}}/**
|
|
2848
2859
|
* @license
|
|
2849
2860
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
2850
2861
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2851
|
-
*/const
|
|
2862
|
+
*/const N1=_e`
|
|
2852
2863
|
:host {
|
|
2853
2864
|
display: inline-block;
|
|
2854
2865
|
position: relative;
|
|
@@ -2908,7 +2919,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
2908
2919
|
outline-color: GrayText;
|
|
2909
2920
|
}
|
|
2910
2921
|
}
|
|
2911
|
-
`,
|
|
2922
|
+
`,I1=e=>e`
|
|
2912
2923
|
<div class="vaadin-button-container">
|
|
2913
2924
|
<span part="prefix" aria-hidden="true">
|
|
2914
2925
|
<slot name="prefix"></slot>
|
|
@@ -2929,39 +2940,39 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
2929
2940
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
2930
2941
|
Code distributed by Google as part of the polymer project is also
|
|
2931
2942
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
2932
|
-
*/const
|
|
2943
|
+
*/const L1=!1,F1=e=>e,xa=typeof document.head.style.touchAction=="string",Io="__polymerGestures",Ws="__polymerGesturesHandled",Lo="__polymerGesturesTouchAction",Vl=25,Gl=5,R1=2,H1=["mousedown","mousemove","mouseup","click"],z1=[0,1,4,2],Y1=function(){try{return new MouseEvent("test",{buttons:1}).buttons===1}catch(e){return!1}}();function Sa(e){return H1.indexOf(e)>-1}let Nh=!1;(function(){try{const e=Object.defineProperty({},"passive",{get(){Nh=!0}});window.addEventListener("test",null,e),window.removeEventListener("test",null,e)}catch(e){}})();function U1(e){if(!(Sa(e)||e==="touchend")&&xa&&Nh&&L1)return{passive:!0}}const W1=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/u),$1={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0};function ur(e){const t=e.type;if(!Sa(t))return!1;if(t==="mousemove"){let i=e.buttons===void 0?1:e.buttons;return e instanceof window.MouseEvent&&!Y1&&(i=z1[e.which]||0),!!(i&1)}return(e.button===void 0?0:e.button)===0}function V1(e){if(e.type==="click"){if(e.detail===0)return!0;const t=Kt(e);if(!t.nodeType||t.nodeType!==Node.ELEMENT_NODE)return!0;const r=t.getBoundingClientRect(),i=e.pageX,n=e.pageY;return!(i>=r.left&&i<=r.right&&n>=r.top&&n<=r.bottom)}return!1}const Tt={mouse:{target:null,mouseIgnoreJob:null},touch:{x:0,y:0,id:-1,scrollDecided:!1}};function G1(e){let t="auto";const r=Lh(e);for(let i=0,n;i<r.length;i++)if(n=r[i],n[Lo]){t=n[Lo];break}return t}function Ih(e,t,r){e.movefn=t,e.upfn=r,document.addEventListener("mousemove",t),document.addEventListener("mouseup",r)}function Br(e){document.removeEventListener("mousemove",e.movefn),document.removeEventListener("mouseup",e.upfn),e.movefn=null,e.upfn=null}const Lh=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:e=>e.composedPath&&e.composedPath()||[],ka={},ar=[];function j1(e,t){let r=document.elementFromPoint(e,t),i=r;for(;i&&i.shadowRoot&&!window.ShadyDOM;){const n=i;if(i=i.shadowRoot.elementFromPoint(e,t),n===i)break;i&&(r=i)}return r}function Kt(e){const t=Lh(e);return t.length>0?t[0]:e.target}function q1(e){const t=e.type,i=e.currentTarget[Io];if(!i)return;const n=i[t];if(!n)return;if(!e[Ws]&&(e[Ws]={},t.startsWith("touch"))){const o=e.changedTouches[0];if(t==="touchstart"&&e.touches.length===1&&(Tt.touch.id=o.identifier),Tt.touch.id!==o.identifier)return;xa||(t==="touchstart"||t==="touchmove")&&Z1(e)}const s=e[Ws];if(!s.skip){for(let o=0,a;o<ar.length;o++)a=ar[o],n[a.name]&&!s[a.name]&&a.flow&&a.flow.start.indexOf(e.type)>-1&&a.reset&&a.reset();for(let o=0,a;o<ar.length;o++)a=ar[o],n[a.name]&&!s[a.name]&&(s[a.name]=!0,a[t](e))}}function Z1(e){const t=e.changedTouches[0],r=e.type;if(r==="touchstart")Tt.touch.x=t.clientX,Tt.touch.y=t.clientY,Tt.touch.scrollDecided=!1;else if(r==="touchmove"){if(Tt.touch.scrollDecided)return;Tt.touch.scrollDecided=!0;const i=G1(e);let n=!1;const s=Math.abs(Tt.touch.x-t.clientX),o=Math.abs(Tt.touch.y-t.clientY);e.cancelable&&(i==="none"?n=!0:i==="pan-x"?n=o>s:i==="pan-y"&&(n=s>o)),n?e.preventDefault():Dn("track")}}function vt(e,t,r){return ka[t]?(K1(e,t,r),!0):!1}function K1(e,t,r){const i=ka[t],n=i.deps,s=i.name;let o=e[Io];o||(e[Io]=o={});for(let a=0,l,u;a<n.length;a++)l=n[a],!(W1&&Sa(l)&&l!=="click")&&(u=o[l],u||(o[l]=u={_count:0}),u._count===0&&e.addEventListener(l,q1,U1(l)),u[s]=(u[s]||0)+1,u._count=(u._count||0)+1);e.addEventListener(t,r),i.touchAction&&Fh(e,i.touchAction)}function Aa(e){ar.push(e),e.emits.forEach(t=>{ka[t]=e})}function X1(e){for(let t=0,r;t<ar.length;t++){r=ar[t];for(let i=0,n;i<r.emits.length;i++)if(n=r.emits[i],n===e)return r}return null}function Fh(e,t){xa&&e instanceof HTMLElement&&D1.run(()=>{e.style.touchAction=t}),e[Lo]=t}function Ta(e,t,r){const i=new Event(t,{bubbles:!0,cancelable:!0,composed:!0});if(i.detail=r,F1(e).dispatchEvent(i),i.defaultPrevented){const n=r.preventer||r.sourceEvent;n&&n.preventDefault&&n.preventDefault()}}function Dn(e){const t=X1(e);t.info&&(t.info.prevent=!0)}Aa({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset(){Br(this.info)},mousedown(e){if(!ur(e))return;const t=Kt(e),r=this,i=s=>{ur(s)||(ri("up",t,s),Br(r.info))},n=s=>{ur(s)&&ri("up",t,s),Br(r.info)};Ih(this.info,i,n),ri("down",t,e)},touchstart(e){ri("down",Kt(e),e.changedTouches[0],e)},touchend(e){ri("up",Kt(e),e.changedTouches[0],e)}});function ri(e,t,r,i){t&&Ta(t,e,{x:r.clientX,y:r.clientY,sourceEvent:r,preventer:i,prevent(n){return Dn(n)}})}Aa({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(e){this.moves.length>R1&&this.moves.shift(),this.moves.push(e)},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,Br(this.info)},mousedown(e){if(!ur(e))return;const t=Kt(e),r=this,i=s=>{const o=s.clientX,a=s.clientY;jl(r.info,o,a)&&(r.info.state=r.info.started?s.type==="mouseup"?"end":"track":"start",r.info.state==="start"&&Dn("tap"),r.info.addMove({x:o,y:a}),ur(s)||(r.info.state="end",Br(r.info)),t&&$s(r.info,t,s),r.info.started=!0)},n=s=>{r.info.started&&i(s),Br(r.info)};Ih(this.info,i,n),this.info.x=e.clientX,this.info.y=e.clientY},touchstart(e){const t=e.changedTouches[0];this.info.x=t.clientX,this.info.y=t.clientY},touchmove(e){const t=Kt(e),r=e.changedTouches[0],i=r.clientX,n=r.clientY;jl(this.info,i,n)&&(this.info.state==="start"&&Dn("tap"),this.info.addMove({x:i,y:n}),$s(this.info,t,r),this.info.state="track",this.info.started=!0)},touchend(e){const t=Kt(e),r=e.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:r.clientX,y:r.clientY}),$s(this.info,t,r))}});function jl(e,t,r){if(e.prevent)return!1;if(e.started)return!0;const i=Math.abs(e.x-t),n=Math.abs(e.y-r);return i>=Gl||n>=Gl}function $s(e,t,r){if(!t)return;const i=e.moves[e.moves.length-2],n=e.moves[e.moves.length-1],s=n.x-e.x,o=n.y-e.y;let a,l=0;i&&(a=n.x-i.x,l=n.y-i.y),Ta(t,"track",{state:e.state,x:r.clientX,y:r.clientY,dx:s,dy:o,ddx:a,ddy:l,sourceEvent:r,hover(){return j1(r.clientX,r.clientY)}})}Aa({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(e){ur(e)&&(this.info.x=e.clientX,this.info.y=e.clientY)},click(e){ur(e)&&ql(this.info,e)},touchstart(e){const t=e.changedTouches[0];this.info.x=t.clientX,this.info.y=t.clientY},touchend(e){ql(this.info,e.changedTouches[0],e)}});function ql(e,t,r){const i=Math.abs(t.clientX-e.x),n=Math.abs(t.clientY-e.y),s=Kt(r||t);!s||$1[s.localName]&&s.hasAttribute("disabled")||(isNaN(i)||isNaN(n)||i<=Vl&&n<=Vl||V1(t))&&(e.prevent||Ta(s,"tap",{x:t.clientX,y:t.clientY,sourceEvent:t,preventer:r}))}/**
|
|
2933
2944
|
* @license
|
|
2934
2945
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
2935
2946
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2936
|
-
*/const
|
|
2947
|
+
*/const Rh=Ye(e=>class extends e{static get properties(){return{disabled:{type:Boolean,value:!1,observer:"_disabledChanged",reflectToAttribute:!0}}}_disabledChanged(r){this._setAriaDisabled(r)}_setAriaDisabled(r){r?this.setAttribute("aria-disabled","true"):this.removeAttribute("aria-disabled")}click(){this.disabled||super.click()}});/**
|
|
2937
2948
|
* @license
|
|
2938
2949
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
2939
2950
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2940
|
-
*/const
|
|
2951
|
+
*/const ls=Ye(e=>class extends e{ready(){super.ready(),this.addEventListener("keydown",r=>{this._onKeyDown(r)}),this.addEventListener("keyup",r=>{this._onKeyUp(r)})}_onKeyDown(r){switch(r.key){case"Enter":this._onEnter(r);break;case"Escape":this._onEscape(r);break}}_onKeyUp(r){}_onEnter(r){}_onEscape(r){}});/**
|
|
2941
2952
|
* @license
|
|
2942
2953
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
2943
2954
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2944
|
-
*/const J1=e=>class extends
|
|
2955
|
+
*/const J1=e=>class extends Rh(ls(e)){get _activeKeys(){return[" "]}ready(){super.ready(),vt(this,"down",r=>{this._shouldSetActive(r)&&this._setActive(!0)}),vt(this,"up",()=>{this._setActive(!1)})}disconnectedCallback(){super.disconnectedCallback(),this._setActive(!1)}_shouldSetActive(r){return!this.disabled}_onKeyDown(r){super._onKeyDown(r),this._shouldSetActive(r)&&this._activeKeys.includes(r.key)&&(this._setActive(!0),document.addEventListener("keyup",i=>{this._activeKeys.includes(i.key)&&this._setActive(!1)},{once:!0}))}_setActive(r){this.toggleAttribute("active",r)}};/**
|
|
2945
2956
|
* @license
|
|
2946
2957
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
2947
2958
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2948
|
-
*/const
|
|
2959
|
+
*/const Pa=Ye(e=>class extends e{get _keyboardActive(){return Ca()}ready(){this.addEventListener("focusin",r=>{this._shouldSetFocus(r)&&this._setFocused(!0)}),this.addEventListener("focusout",r=>{this._shouldRemoveFocus(r)&&this._setFocused(!1)}),super.ready()}disconnectedCallback(){super.disconnectedCallback(),this.hasAttribute("focused")&&this._setFocused(!1)}_setFocused(r){this.toggleAttribute("focused",r),this.toggleAttribute("focus-ring",r&&this._keyboardActive)}_shouldSetFocus(r){return!0}_shouldRemoveFocus(r){return!0}});/**
|
|
2949
2960
|
* @license
|
|
2950
2961
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
2951
2962
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2952
|
-
*/const
|
|
2963
|
+
*/const Hh=e=>class extends Rh(e){static get properties(){return{tabindex:{type:Number,reflectToAttribute:!0,observer:"_tabindexChanged"},_lastTabIndex:{type:Number}}}_disabledChanged(r,i){super._disabledChanged(r,i),r?(this.tabindex!==void 0&&(this._lastTabIndex=this.tabindex),this.tabindex=-1):i&&(this.tabindex=this._lastTabIndex)}_tabindexChanged(r){this.disabled&&r!==-1&&(this._lastTabIndex=r,this.tabindex=-1)}};/**
|
|
2953
2964
|
* @license
|
|
2954
2965
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
2955
2966
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2956
|
-
*/const
|
|
2967
|
+
*/const Q1=e=>class extends J1(Hh(Pa(e))){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(r){super._onKeyDown(r),!(r.altKey||r.shiftKey||r.ctrlKey||r.metaKey)&&this._activeKeys.includes(r.key)&&(r.preventDefault(),this.click())}};/**
|
|
2957
2968
|
* @license
|
|
2958
2969
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
2959
2970
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2960
|
-
*/Fe("vaadin-button",
|
|
2971
|
+
*/Fe("vaadin-button",N1,{moduleId:"vaadin-button-styles"});class ew extends Q1(Mh(fr(qr(Jt)))){static get is(){return"vaadin-button"}static get template(){return I1(mr)}ready(){super.ready(),this._tooltipController=new Bh(this),this.addController(this._tooltipController)}}xt(ew);/**
|
|
2961
2972
|
* @license
|
|
2962
2973
|
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
2963
2974
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2964
|
-
*/function
|
|
2975
|
+
*/function tw(e){let t=e.getDay();t===0&&(t=7);const r=4-t,i=new Date(e.getTime()+r*24*3600*1e3),n=new Date(0,0);n.setFullYear(i.getFullYear());const s=i.getTime()-n.getTime(),o=Math.round(s/(24*3600*1e3));return Math.floor(o/7+1)}function Fo(e){const t=new Date(e);return t.setHours(0,0,0,0),t}function Nt(e,t,r=Fo){return e instanceof Date&&t instanceof Date&&r(e).getTime()===r(t).getTime()}function Da(e){return{day:e.getDate(),month:e.getMonth(),year:e.getFullYear()}}function Yr(e,t,r,i){let n=!1;if(typeof i=="function"&&e){const s=Da(e);n=i(s)}return(!t||e>=t)&&(!r||e<=r)&&!n}function zh(e,t){return t.filter(r=>r!==void 0).reduce((r,i)=>{if(!i)return r;if(!r)return i;const n=Math.abs(e.getTime()-i.getTime()),s=Math.abs(r.getTime()-e.getTime());return n<s?i:r})}function Yh(e){const t=new Date,r=new Date(t);return r.setDate(1),r.setMonth(parseInt(e)+t.getMonth()),r}function rw(e,t,r=0,i=1){if(t>99)throw new Error("The provided year cannot have more than 2 digits.");if(t<0)throw new Error("The provided year cannot be negative.");let n=t+Math.floor(e.getFullYear()/100)*100;return e<new Date(n-50,r,i)?n-=100:e>new Date(n+50,r,i)&&(n+=100),n}function ii(e){const t=/^([-+]\d{1}|\d{2,4}|[-+]\d{6})-(\d{1,2})-(\d{1,2})$/u.exec(e);if(!t)return;const r=new Date(0,0);return r.setFullYear(parseInt(t[1],10)),r.setMonth(parseInt(t[2],10)-1),r.setDate(parseInt(t[3],10)),r}function iw(e){const t=(l,u="00")=>(u+l).substr((u+l).length-u.length);let r="",i="0000",n=e.year;n<0?(n=-n,r="-",i="000000"):e.year>=1e4&&(r="+",i="000000");const s=r+t(n,i),o=t(e.month+1),a=t(e.day);return[s,o,a].join("-")}function nw(e){return e instanceof Date?iw({year:e.getFullYear(),month:e.getMonth(),day:e.getDate()}):""}/**
|
|
2965
2976
|
@license
|
|
2966
2977
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
2967
2978
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -2969,7 +2980,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
2969
2980
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
2970
2981
|
Code distributed by Google as part of the polymer project is also
|
|
2971
2982
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
2972
|
-
*/class
|
|
2983
|
+
*/class Mn{constructor(){this._asyncModule=null,this._callback=null,this._timer=null}setConfig(t,r){this._asyncModule=t,this._callback=r,this._timer=this._asyncModule.run(()=>{this._timer=null,ki.delete(this),this._callback()})}cancel(){this.isActive()&&(this._cancelAsync(),ki.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(t,r,i){return t instanceof Mn?t._cancelAsync():t=new Mn,t.setConfig(r,i),t}}let ki=new Set;const sw=function(e){ki.add(e)},ow=function(){const e=!!ki.size;return ki.forEach(t=>{try{t.flush()}catch(r){setTimeout(()=>{throw r})}}),e};/**
|
|
2973
2984
|
@license
|
|
2974
2985
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
2975
2986
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -2977,11 +2988,11 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
2977
2988
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
2978
2989
|
Code distributed by Google as part of the polymer project is also
|
|
2979
2990
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
2980
|
-
*/const
|
|
2991
|
+
*/const Ma=function(){let e,t;do e=window.ShadyDOM&&ShadyDOM.flush(),window.ShadyCSS&&window.ShadyCSS.ScopingShim&&window.ShadyCSS.ScopingShim.flush(),t=ow();while(e||t)};/**
|
|
2981
2992
|
* @license
|
|
2982
2993
|
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
2983
2994
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2984
|
-
*/const
|
|
2995
|
+
*/const Uh=document.createElement("template");Uh.innerHTML=`
|
|
2985
2996
|
<style>
|
|
2986
2997
|
:host {
|
|
2987
2998
|
display: block;
|
|
@@ -3031,11 +3042,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
3031
3042
|
<div class="buffer"></div>
|
|
3032
3043
|
<div id="fullHeight"></div>
|
|
3033
3044
|
</div>
|
|
3034
|
-
`;class
|
|
3045
|
+
`;class Wh extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"}).appendChild(Uh.content.cloneNode(!0)),this.bufferSize=20,this._initialScroll=5e5,this._initialIndex=0,this._activated=!1}get active(){return this._activated}set active(t){t&&!this._activated&&(this._createPool(),this._activated=!0)}get bufferOffset(){return this._buffers[0].offsetTop}get itemHeight(){if(!this._itemHeightVal){const t=getComputedStyle(this).getPropertyValue("--vaadin-infinite-scroller-item-height"),r="background-position";this.$.fullHeight.style.setProperty(r,t);const i=getComputedStyle(this.$.fullHeight).getPropertyValue(r);this.$.fullHeight.style.removeProperty(r),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(t){this._preventScrollEvent=!0,t>this._firstIndex&&t<this._firstIndex+this.bufferSize*2?this.$.scroller.scrollTop=this.itemHeight*(t-this._firstIndex)+this._buffers[0].translateY:(this._initialIndex=~~t,this._reset(),this._scrollDisabled=!0,this.$.scroller.scrollTop+=t%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(t=>{this.$[t.id]=t}),this.$.scroller.addEventListener("scroll",()=>this._scroll()),this._buffers=[...this.shadowRoot.querySelectorAll(".buffer")],this.$.fullHeight.style.height=`${this._initialScroll*2}px`)}forceUpdate(){this._debouncerScrollFinish&&this._debouncerScrollFinish.flush(),this._debouncerUpdateClones&&(this._buffers[0].updated=this._buffers[1].updated=!1,this._updateClones(),this._debouncerUpdateClones.cancel()),Ma()}_createElement(){}_updateElement(t,r){}_finishInit(){this._initDone||(this._buffers.forEach(t=>{[...t.children].forEach(r=>{this._ensureStampedInstance(r._itemWrapper)})}),this._buffers[0].translateY||this._reset(),this._initDone=!0,this.dispatchEvent(new CustomEvent("init-done")))}_translateBuffer(t){const r=t?1:0;this._buffers[r].translateY=this._buffers[r?0:1].translateY+this._bufferHeight*(r?-1:1),this._buffers[r].style.transform=`translate3d(0, ${this._buffers[r].translateY}px, 0)`,this._buffers[r].updated=!1,this._buffers.reverse()}_scroll(){if(this._scrollDisabled)return;const t=this.$.scroller.scrollTop;(t<this._bufferHeight||t>this._initialScroll*2-this._bufferHeight)&&(this._initialIndex=~~this.position,this._reset());const r=this.itemHeight+this.bufferOffset,i=t>this._buffers[1].translateY+r,n=t<this._buffers[0].translateY+r;(i||n)&&(this._translateBuffer(n),this._updateClones()),this._preventScrollEvent||(this.dispatchEvent(new CustomEvent("custom-scroll",{bubbles:!1,composed:!0})),this._mayHaveMomentum=!0),this._preventScrollEvent=!1,this._debouncerScrollFinish=zr.debounce(this._debouncerScrollFinish,Pn.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(t=>{t.style.transform=`translate3d(0, ${t.translateY}px, 0)`}),this._buffers[0].updated=this._buffers[1].updated=!1,this._updateClones(!0),this._debouncerUpdateClones=zr.debounce(this._debouncerUpdateClones,Pn.after(200),()=>{this._buffers[0].updated=this._buffers[1].updated=!1,this._updateClones()}),this._scrollDisabled=!1}_createPool(){const t=this.getBoundingClientRect();this._buffers.forEach(r=>{for(let i=0;i<this.bufferSize;i++){const n=document.createElement("div");n.style.height=`${this.itemHeight}px`,n.instance={};const s=`vaadin-infinite-scroller-item-content-${Oh()}`,o=document.createElement("slot");o.setAttribute("name",s),o._itemWrapper=n,r.appendChild(o),n.setAttribute("slot",s),this.appendChild(n),this._isVisible(n,t)&&this._ensureStampedInstance(n)}}),requestAnimationFrame(()=>{this._finishInit()})}_ensureStampedInstance(t){if(t.firstElementChild)return;const r=t.instance;t.instance=this._createElement(),t.appendChild(t.instance),Object.keys(r).forEach(i=>{t.instance[i]=r[i]})}_updateClones(t){this._firstIndex=Math.round((this._buffers[0].translateY-this._initialScroll)/this.itemHeight)+this._initialIndex;const r=t?this.$.scroller.getBoundingClientRect():void 0;this._buffers.forEach((i,n)=>{if(!i.updated){const s=this._firstIndex+this.bufferSize*n;[...i.children].forEach((o,a)=>{const l=o._itemWrapper;(!t||this._isVisible(l,r))&&this._updateElement(l.instance,s+a)}),i.updated=!0}})}_isVisible(t,r){const i=t.getBoundingClientRect();return i.bottom>r.top&&i.top<r.bottom}}/**
|
|
3035
3046
|
* @license
|
|
3036
3047
|
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
3037
3048
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3038
|
-
*/const
|
|
3049
|
+
*/const $h=document.createElement("template");$h.innerHTML=`
|
|
3039
3050
|
<style>
|
|
3040
3051
|
:host {
|
|
3041
3052
|
--vaadin-infinite-scroller-item-height: 270px;
|
|
@@ -3047,11 +3058,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
3047
3058
|
height: 100%;
|
|
3048
3059
|
}
|
|
3049
3060
|
</style>
|
|
3050
|
-
`;class
|
|
3061
|
+
`;class aw extends Wh{static get is(){return"vaadin-date-picker-month-scroller"}constructor(){super(),this.bufferSize=3,this.shadowRoot.appendChild($h.content.cloneNode(!0))}_createElement(){return document.createElement("vaadin-month-calendar")}_updateElement(t,r){t.month=Yh(r)}}xt(aw);/**
|
|
3051
3062
|
* @license
|
|
3052
3063
|
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
3053
3064
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3054
|
-
*/const
|
|
3065
|
+
*/const Vh=document.createElement("template");Vh.innerHTML=`
|
|
3055
3066
|
<style>
|
|
3056
3067
|
:host {
|
|
3057
3068
|
--vaadin-infinite-scroller-item-height: 80px;
|
|
@@ -3085,15 +3096,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
3085
3096
|
border-left-color: #000;
|
|
3086
3097
|
}
|
|
3087
3098
|
</style>
|
|
3088
|
-
`;class
|
|
3099
|
+
`;class lw extends Wh{static get is(){return"vaadin-date-picker-year-scroller"}constructor(){super(),this.bufferSize=12,this.shadowRoot.appendChild(Vh.content.cloneNode(!0))}_createElement(){return document.createElement("vaadin-date-picker-year")}_updateElement(t,r){t.year=this._yearAfterXYears(r)}_yearAfterXYears(t){const r=new Date,i=new Date(r);return i.setFullYear(parseInt(t)+r.getFullYear()),i.getFullYear()}}xt(lw);/**
|
|
3089
3100
|
* @license
|
|
3090
3101
|
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
3091
3102
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3092
|
-
*/const
|
|
3103
|
+
*/const uw=e=>class extends e{static get properties(){return{year:{type:String,sync:!0},selectedDate:{type:Object,sync:!0}}}static get observers(){return["__updateSelected(year, selectedDate)"]}__updateSelected(r,i){this.toggleAttribute("selected",i&&i.getFullYear()===r),this.toggleAttribute("current",r===new Date().getFullYear())}};/**
|
|
3093
3104
|
* @license
|
|
3094
3105
|
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
3095
3106
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3096
|
-
*/class
|
|
3107
|
+
*/class dw extends fr(uw(Jt)){static get is(){return"vaadin-date-picker-year"}static get template(){return mr`
|
|
3097
3108
|
<style>
|
|
3098
3109
|
:host {
|
|
3099
3110
|
display: block;
|
|
@@ -3102,7 +3113,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
3102
3113
|
</style>
|
|
3103
3114
|
<div part="year-number">[[year]]</div>
|
|
3104
3115
|
<div part="year-separator" aria-hidden="true"></div>
|
|
3105
|
-
`}}
|
|
3116
|
+
`}}xt(dw);/**
|
|
3106
3117
|
@license
|
|
3107
3118
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
3108
3119
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -3110,7 +3121,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
3110
3121
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
3111
3122
|
Code distributed by Google as part of the polymer project is also
|
|
3112
3123
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
3113
|
-
*/function
|
|
3124
|
+
*/function Oa(e,t,r,i,n){let s;n&&(s=typeof r=="object"&&r!==null,s&&(i=e.__dataTemp[t]));let o=i!==r&&(i===i||r===r);return s&&o&&(e.__dataTemp[t]=r),o}const Ba=Ye(e=>{class t extends e{_shouldPropertyChange(i,n,s){return Oa(this,i,n,s,!0)}}return t}),cw=Ye(e=>{class t extends e{static get properties(){return{mutableData:Boolean}}_shouldPropertyChange(i,n,s){return Oa(this,i,n,s,this.mutableData)}}return t});Ba._mutablePropertyChange=Oa;/**
|
|
3114
3125
|
@license
|
|
3115
3126
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
3116
3127
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -3118,7 +3129,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
3118
3129
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
3119
3130
|
Code distributed by Google as part of the polymer project is also
|
|
3120
3131
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
3121
|
-
*/let
|
|
3132
|
+
*/let Ro=null;function Ho(){return Ro}Ho.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:Ho,writable:!0}});const Gh=ya(Ho),hw=Ba(Gh);function fw(e,t){Ro=e,Object.setPrototypeOf(e,t.prototype),new t,Ro=null}const pw=ya(class{});function mw(e,t){for(let r=0;r<t.length;r++){let i=t[r];if(!!e!=!!i.__hideTemplateChildren__)if(i.nodeType===Node.TEXT_NODE)e?(i.__polymerTextContent__=i.textContent,i.textContent=""):i.textContent=i.__polymerTextContent__;else if(i.localName==="slot")if(e)i.__polymerReplaced__=document.createComment("hidden-slot"),Ve(Ve(i).parentNode).replaceChild(i.__polymerReplaced__,i);else{const n=i.__polymerReplaced__;n&&Ve(Ve(n).parentNode).replaceChild(i,n)}else i.style&&(e?(i.__polymerDisplay__=i.style.display,i.style.display="none"):i.style.display=i.__polymerDisplay__);i.__hideTemplateChildren__=e,i._showHideChildren&&i._showHideChildren(e)}}class Qt extends pw{constructor(t){super(),this._configureProperties(t),this.root=this._stampTemplate(this.__dataHost);let r=[];this.children=r;for(let n=this.root.firstChild;n;n=n.nextSibling)r.push(n),n.__templatizeInstance=this;this.__templatizeOwner&&this.__templatizeOwner.__hideTemplateChildren__&&this._showHideChildren(!0);let i=this.__templatizeOptions;(t&&i.instanceProps||!i.instanceProps)&&this._enableProperties()}_configureProperties(t){if(this.__templatizeOptions.forwardHostProp)for(let i in this.__hostProps)this._setPendingProperty(i,this.__dataHost["_host_"+i]);for(let i in t)this._setPendingProperty(i,t[i])}forwardHostProp(t,r){this._setPendingPropertyOrPath(t,r,!1,!0)&&this.__dataHost._enqueueClient(this)}_addEventListenerToNode(t,r,i){if(this._methodHost&&this.__templatizeOptions.parentModel)this._methodHost._addEventListenerToNode(t,r,n=>{n.model=this,i(n)});else{let n=this.__dataHost.__dataHost;n&&n._addEventListenerToNode(t,r,i)}}_showHideChildren(t){mw(t,this.children)}_setUnmanagedPropertyToNode(t,r,i){t.__hideTemplateChildren__&&t.nodeType==Node.TEXT_NODE&&r=="textContent"?t.__polymerTextContent__=i:super._setUnmanagedPropertyToNode(t,r,i)}get parentModel(){let t=this.__parentModel;if(!t){let r;t=this;do t=t.__dataHost.__dataHost;while((r=t.__templatizeOptions)&&!r.parentModel);this.__parentModel=t}return t}dispatchEvent(t){return!0}}Qt.prototype.__dataHost;Qt.prototype.__templatizeOptions;Qt.prototype._methodHost;Qt.prototype.__templatizeOwner;Qt.prototype.__hostProps;const _w=Ba(Qt);function Zl(e){let t=e.__dataHost;return t&&t._methodHost||t}function gw(e,t,r){let i=r.mutableData?_w:Qt;zo.mixin&&(i=zo.mixin(i));let n=class extends i{};return n.prototype.__templatizeOptions=r,n.prototype._bindTemplate(e),yw(n,e,t,r),n}function bw(e,t,r,i){let n=r.forwardHostProp;if(n&&t.hasHostProps){const s=e.localName=="template";let o=t.templatizeTemplateClass;if(!o){if(s){let l=r.mutableData?hw:Gh;class u extends l{}o=t.templatizeTemplateClass=u}else{const l=e.constructor;class u extends l{}o=t.templatizeTemplateClass=u}let a=t.hostProps;for(let l in a)o.prototype._addPropertyEffect("_host_"+l,o.prototype.PROPERTY_EFFECT_TYPES.PROPAGATE,{fn:vw(l,n)}),o.prototype._createNotifyingProperty("_host_"+l);Xc&&i&&Ew(t,r,i)}if(e.__dataProto&&Object.assign(e.__data,e.__dataProto),s)fw(e,o),e.__dataTemp={},e.__dataPending=null,e.__dataOld=null,e._enableProperties();else{Object.setPrototypeOf(e,o.prototype);const a=t.hostProps;for(let l in a)if(l="_host_"+l,l in e){const u=e[l];delete e[l],e.__data[l]=u}}}}function vw(e,t){return function(i,n,s){t.call(i.__templatizeOwner,n.substring(6),s[n])}}function yw(e,t,r,i){let n=r.hostProps||{};for(let s in i.instanceProps){delete n[s];let o=i.notifyInstanceProp;o&&e.prototype._addPropertyEffect(s,e.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:ww(s,o)})}if(i.forwardHostProp&&t.__dataHost)for(let s in n)r.hasHostProps||(r.hasHostProps=!0),e.prototype._addPropertyEffect(s,e.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:Cw()})}function ww(e,t){return function(i,n,s){t.call(i.__templatizeOwner,i,n,s[n])}}function Cw(){return function(t,r,i){t.__dataHost._setPendingPropertyOrPath("_host_"+r,i[r],!0,!0)}}function zo(e,t,r){if(An&&!Zl(e))throw new Error("strictTemplatePolicy: template owner not trusted");if(r=r||{},e.__templatizeOwner)throw new Error("A <template> can only be templatized once");e.__templatizeOwner=t;let n=(t?t.constructor:Qt)._parseTemplate(e),s=n.templatizeInstanceClass;s||(s=gw(e,n,r),n.templatizeInstanceClass=s);const o=Zl(e);bw(e,n,r,o);let a=class extends s{};return a.prototype._methodHost=o,a.prototype.__dataHost=e,a.prototype.__templatizeOwner=t,a.prototype.__hostProps=n.hostProps,a=a,a}function Ew(e,t,r){const i=r.constructor._properties,{propertyEffects:n}=e,{instanceProps:s}=t;for(let o in n)if(!i[o]&&!(s&&s[o])){const a=n[o];for(let l=0;l<a.length;l++){const{part:u}=a[l].info;if(!(u.signature&&u.signature.static)){console.warn(`Property '${o}' used in template but not declared in 'properties'; attribute will not be observed.`);break}}}}function xw(e,t){let r;for(;t;)if(r=t.__dataHost?t:t.__templatizeInstance)if(r.__dataHost!=e)t=r.__dataHost;else return r;else t=Ve(t).parentNode;return null}/**
|
|
3122
3133
|
@license
|
|
3123
3134
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
3124
3135
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -3126,7 +3137,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
3126
3137
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
3127
3138
|
Code distributed by Google as part of the polymer project is also
|
|
3128
3139
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
3129
|
-
*/let
|
|
3140
|
+
*/let Kl=!1;function Sw(){if(Kc&&!Zc){if(!Kl){Kl=!0;const e=document.createElement("style");e.textContent="dom-bind,dom-if,dom-repeat{display:none;}",document.head.appendChild(e)}return!0}return!1}/**
|
|
3130
3141
|
@license
|
|
3131
3142
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
3132
3143
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -3134,15 +3145,15 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
3134
3145
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
3135
3146
|
Code distributed by Google as part of the polymer project is also
|
|
3136
3147
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
3137
|
-
*/const kw=
|
|
3148
|
+
*/const kw=cw(Jt);class Xl extends kw{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:!El,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 t=0;t<this.__instances.length;t++)this.__detachInstance(t);this.__chunkingId&&cancelAnimationFrame(this.__chunkingId)}connectedCallback(){if(super.connectedCallback(),Sw()||(this.style.display="none"),this.__isDetached){this.__isDetached=!1;let t=Ve(Ve(this).parentNode);for(let r=0;r<this.__instances.length;r++)this.__attachInstance(r,t);this.__chunkingId&&this.__render()}}__ensureTemplatized(){if(!this.__ctor){const t=this;let r=this.template=t._templateInfo?t:this.querySelector("template");if(!r){let n=new MutationObserver(()=>{if(this.querySelector("template"))n.disconnect(),this.__render();else throw new Error("dom-repeat requires a <template> child")});return n.observe(this,{childList:!0}),!1}let i={};i[this.as]=!0,i[this.indexAs]=!0,i[this.itemsIndexAs]=!0,this.__ctor=zo(r,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:i,forwardHostProp:function(n,s){let o=this.__instances;for(let a=0,l;a<o.length&&(l=o[a]);a++)l.forwardHostProp(n,s)},notifyInstanceProp:function(n,s,o){if(Dv(this.as,s)){let a=n[this.itemsIndexAs];s==this.as&&(this.items[a]=o);let l=Ei(this.as,`${JSCompiler_renameProperty("items",this)}.${a}`,s);this.notifyPath(l,o)}}})}return!0}__getMethodHost(){return this.__dataHost._methodHost||this.__dataHost}__functionFromPropertyValue(t){if(typeof t=="string"){let r=t,i=this.__getMethodHost();return function(){return i[r].apply(i,arguments)}}return t}__sortChanged(t){this.__sortFn=this.__functionFromPropertyValue(t),this.items&&this.__debounceRender(this.__render)}__filterChanged(t){this.__filterFn=this.__functionFromPropertyValue(t),this.items&&this.__debounceRender(this.__render)}__computeFrameTime(t){return Math.ceil(1e3/t)}__observeChanged(){this.__observePaths=this.observe&&this.observe.replace(".*",".").split(" ")}__handleObservedPaths(t){if(this.__sortFn||this.__filterFn){if(!t)this.__debounceRender(this.__render,this.delay);else if(this.__observePaths){let r=this.__observePaths;for(let i=0;i<r.length;i++)t.indexOf(r[i])===0&&this.__debounceRender(this.__render,this.delay)}}}__itemsChanged(t){this.items&&!Array.isArray(this.items)&&console.warn("dom-repeat expected array for `items`, found",this.items),this.__handleItemPath(t.path,t.value)||(t.path==="items"&&(this.__itemsArrayChanged=!0),this.__debounceRender(this.__render))}__debounceRender(t,r=0){this.__renderDebouncer=Mn.debounce(this.__renderDebouncer,r>0?Lv.after(r):ah,t.bind(this)),sw(this.__renderDebouncer)}render(){this.__debounceRender(this.__render),Ma()}__render(){if(!this.__ensureTemplatized())return;let t=this.items||[];const r=this.__sortAndFilterItems(t),i=this.__calculateLimit(r.length);this.__updateInstances(t,i,r),this.initialCount&&(this.__shouldMeasureChunk||this.__shouldContinueChunking)&&(cancelAnimationFrame(this.__chunkingId),this.__chunkingId=requestAnimationFrame(()=>{this.__chunkingId=null,this.__continueChunking()})),this._setRenderedItemCount(this.__instances.length),(!El||this.notifyDomChange)&&this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}__sortAndFilterItems(t){let r=new Array(t.length);for(let i=0;i<t.length;i++)r[i]=i;return this.__filterFn&&(r=r.filter((i,n,s)=>this.__filterFn(t[i],n,s))),this.__sortFn&&r.sort((i,n)=>this.__sortFn(t[i],t[n])),r}__calculateLimit(t){let r=t;const i=this.__instances.length;if(this.initialCount){let n;!this.__chunkCount||this.__itemsArrayChanged&&!this.reuseChunkedInstances?(r=Math.min(t,this.initialCount),n=Math.max(r-i,0),this.__chunkCount=n||1):(n=Math.min(Math.max(t-i,0),this.__chunkCount),r=Math.min(i+n,t)),this.__shouldMeasureChunk=n===this.__chunkCount,this.__shouldContinueChunking=r<t,this.__renderStartTime=performance.now()}return this.__itemsArrayChanged=!1,r}__continueChunking(){if(this.__shouldMeasureChunk){const t=performance.now()-this.__renderStartTime,r=this._targetFrameTime/t;this.__chunkCount=Math.round(this.__chunkCount*r)||1}this.__shouldContinueChunking&&this.__debounceRender(this.__render)}__updateInstances(t,r,i){const n=this.__itemsIdxToInstIdx={};let s;for(s=0;s<r;s++){let o=this.__instances[s],a=i[s],l=t[a];n[a]=s,o?(o._setPendingProperty(this.as,l),o._setPendingProperty(this.indexAs,s),o._setPendingProperty(this.itemsIndexAs,a),o._flushProperties()):this.__insertInstance(l,s,a)}for(let o=this.__instances.length-1;o>=s;o--)this.__detachAndRemoveInstance(o)}__detachInstance(t){let r=this.__instances[t];const i=Ve(r.root);for(let n=0;n<r.children.length;n++){let s=r.children[n];i.appendChild(s)}return r}__attachInstance(t,r){let i=this.__instances[t];r.insertBefore(i.root,this)}__detachAndRemoveInstance(t){this.__detachInstance(t),this.__instances.splice(t,1)}__stampInstance(t,r,i){let n={};return n[this.as]=t,n[this.indexAs]=r,n[this.itemsIndexAs]=i,new this.__ctor(n)}__insertInstance(t,r,i){const n=this.__stampInstance(t,r,i);let s=this.__instances[r+1],o=s?s.children[0]:this;return Ve(Ve(this).parentNode).insertBefore(n.root,o),this.__instances[r]=n,n}_showHideChildren(t){for(let r=0;r<this.__instances.length;r++)this.__instances[r]._showHideChildren(t)}__handleItemPath(t,r){let i=t.slice(6),n=i.indexOf("."),s=n<0?i:i.substring(0,n);if(s==parseInt(s,10)){let o=n<0?"":i.substring(n+1);this.__handleObservedPaths(o);let a=this.__itemsIdxToInstIdx[s],l=this.__instances[a];if(l){let u=this.as+(o?"."+o:"");l._setPendingPropertyOrPath(u,r,!1,!0),l._flushProperties()}return!0}}itemForElement(t){let r=this.modelForElement(t);return r&&r[this.as]}indexForElement(t){let r=this.modelForElement(t);return r&&r[this.indexAs]}modelForElement(t){return xw(this.template,t)}}customElements.define(Xl.is,Xl);/**
|
|
3138
3149
|
* @license
|
|
3139
3150
|
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
3140
3151
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3141
|
-
*/const
|
|
3152
|
+
*/const Aw=e=>class extends Pa(e){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},isDateDisabled:{type:Function,value:()=>!1},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(r=>Nt(r.date,this.focusedDate))}ready(){super.ready(),vt(this.$.monthGrid,"tap",this._handleTap.bind(this))}_isDisabled(r,i,n){const s=new Date(0,0);s.setFullYear(r.getFullYear()),s.setMonth(r.getMonth()),s.setDate(1);const o=new Date(0,0);return o.setFullYear(r.getFullYear()),o.setMonth(r.getMonth()+1),o.setDate(0),i&&n&&i.getMonth()===n.getMonth()&&i.getMonth()===r.getMonth()&&n.getDate()-i.getDate()>=0?!1:!Yr(s,i,n)&&!Yr(o,i,n)}_getTitle(r,i){if(!(r===void 0||i===void 0))return i.formatTitle(i.monthNames[r.getMonth()],r.getFullYear())}_onMonthGridTouchStart(){this._notTapping=!1,setTimeout(()=>{this._notTapping=!0},300)}_dateAdd(r,i){r.setDate(r.getDate()+i)}_applyFirstDayOfWeek(r,i){if(!(r===void 0||i===void 0))return r.slice(i).concat(r.slice(0,i))}_getWeekDayNames(r,i){if(r===void 0||i===void 0)return[];const{weekdays:n,weekdaysShort:s,firstDayOfWeek:o}=r,a=this._applyFirstDayOfWeek(s,o);return this._applyFirstDayOfWeek(n,o).map((u,d)=>({weekDay:u,weekDayShort:a[d]})).slice(0,7)}__focusedDateChanged(r,i){Array.isArray(i)&&i.some(n=>Nt(n,r))?this.removeAttribute("aria-hidden"):this.setAttribute("aria-hidden","true")}_getDate(r){return r?r.getDate():""}_showWeekSeparator(r,i){return r&&i&&i.firstDayOfWeek===1}_isToday(r){return Nt(new Date,r)}_getDays(r,i){if(r===void 0||i===void 0)return[];const n=new Date(0,0);for(n.setFullYear(r.getFullYear()),n.setMonth(r.getMonth()),n.setDate(1);n.getDay()!==i.firstDayOfWeek;)this._dateAdd(n,-1);const s=[],o=n.getMonth(),a=r.getMonth();for(;n.getMonth()===a||n.getMonth()===o;)s.push(n.getMonth()===a?new Date(n.getTime()):null),this._dateAdd(n,1);return s}_getWeeks(r){return r.reduce((i,n,s)=>(s%7===0&&i.push([]),i[i.length-1].push(n),i),[])}_handleTap(r){!this.ignoreTaps&&!this._notTapping&&r.target.date&&!r.target.hasAttribute("disabled")&&(this.selectedDate=r.target.date,this.dispatchEvent(new CustomEvent("date-tap",{detail:{date:r.target.date},bubbles:!0,composed:!0})))}_preventDefault(r){r.preventDefault()}__getWeekNumber(r){const i=r.reduce((n,s)=>!n&&s?s:n);return tw(i)}__getDayAriaLabel(r){if(!r)return"";let i=`${this._getDate(r)} ${this.i18n.monthNames[r.getMonth()]} ${r.getFullYear()}, ${this.i18n.weekdays[r.getDay()]}`;return this._isToday(r)&&(i+=`, ${this.i18n.today}`),i}};/**
|
|
3142
3153
|
* @license
|
|
3143
3154
|
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
3144
3155
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3145
|
-
*/const
|
|
3156
|
+
*/const Tw=_e`
|
|
3146
3157
|
:host {
|
|
3147
3158
|
display: block;
|
|
3148
3159
|
}
|
|
@@ -3202,7 +3213,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
3202
3213
|
* @license
|
|
3203
3214
|
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
3204
3215
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3205
|
-
*/Fe("vaadin-month-calendar",
|
|
3216
|
+
*/Fe("vaadin-month-calendar",Tw,{moduleId:"vaadin-month-calendar-styles"});class Pw extends Aw(fr(Jt)){static get template(){return mr`
|
|
3206
3217
|
<div part="month-header" id="month-header" aria-hidden="true">[[_getTitle(month, i18n)]]</div>
|
|
3207
3218
|
<table
|
|
3208
3219
|
id="monthGrid"
|
|
@@ -3230,7 +3241,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
3230
3241
|
<template is="dom-repeat" items="[[week]]">
|
|
3231
3242
|
<td
|
|
3232
3243
|
role="gridcell"
|
|
3233
|
-
part$="[[__getDatePart(item, focusedDate, selectedDate, minDate, maxDate, isDateDisabled
|
|
3244
|
+
part$="[[__getDatePart(item, focusedDate, selectedDate, minDate, maxDate, isDateDisabled)]]"
|
|
3234
3245
|
date="[[item]]"
|
|
3235
3246
|
tabindex$="[[__getDayTabindex(item, focusedDate)]]"
|
|
3236
3247
|
disabled$="[[__isDayDisabled(item, minDate, maxDate, isDateDisabled)]]"
|
|
@@ -3244,19 +3255,19 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
3244
3255
|
</template>
|
|
3245
3256
|
</tbody>
|
|
3246
3257
|
</table>
|
|
3247
|
-
`}static get is(){return"vaadin-month-calendar"}static get properties(){return{_days:{type:Array,computed:"_getDays(month, i18n, minDate, maxDate, isDateDisabled)"},_weeks:{type:Array,computed:"_getWeeks(_days)"},disabled:{type:Boolean,reflectToAttribute:!0,computed:"_isDisabled(month, minDate, maxDate)"}}}static get observers(){return["_showWeekNumbersChanged(showWeekNumbers, i18n)"]}_showWeekNumbersChanged(t,r){t&&r&&r.firstDayOfWeek===1?this.setAttribute("week-numbers",""):this.removeAttribute("week-numbers")}__getDatePart(t,r,i,n,s,o
|
|
3258
|
+
`}static get is(){return"vaadin-month-calendar"}static get properties(){return{_days:{type:Array,computed:"_getDays(month, i18n, minDate, maxDate, isDateDisabled)"},_weeks:{type:Array,computed:"_getWeeks(_days)"},disabled:{type:Boolean,reflectToAttribute:!0,computed:"_isDisabled(month, minDate, maxDate)"}}}static get observers(){return["_showWeekNumbersChanged(showWeekNumbers, i18n)"]}_showWeekNumbersChanged(t,r){t&&r&&r.firstDayOfWeek===1?this.setAttribute("week-numbers",""):this.removeAttribute("week-numbers")}__getDatePart(t,r,i,n,s,o){const a=["date"],l=t>Fo(new Date),u=t<Fo(new Date);return this.__isDayDisabled(t,n,s,o)&&a.push("disabled"),this.__isDayFocused(t,r)&&a.push("focused"),this.__isDaySelected(t,i)&&a.push("selected"),this._isToday(t)&&a.push("today"),u&&a.push("past"),l&&a.push("future"),a.join(" ")}__isDayFocused(t,r){return Nt(t,r)}__isDaySelected(t,r){return Nt(t,r)}__getDayAriaSelected(t,r){if(this.__isDaySelected(t,r))return"true"}__isDayDisabled(t,r,i,n){return!Yr(t,r,i,n)}__getDayAriaDisabled(t,r,i,n){if(!(t===void 0||r===void 0&&i===void 0&&n===void 0)&&this.__isDayDisabled(t,r,i,n))return"true"}__getDayTabindex(t,r){return this.__isDayFocused(t,r)?"0":"-1"}}xt(Pw);/**
|
|
3248
3259
|
* @license
|
|
3249
3260
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
3250
3261
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3251
|
-
*/class
|
|
3262
|
+
*/class jh{constructor(t,r){this.query=t,this.callback=r,this._boundQueryHandler=this._queryHandler.bind(this)}hostConnected(){this._removeListener(),this._mediaQuery=window.matchMedia(this.query),this._addListener(),this._queryHandler(this._mediaQuery)}hostDisconnected(){this._removeListener()}_addListener(){this._mediaQuery&&this._mediaQuery.addListener(this._boundQueryHandler)}_removeListener(){this._mediaQuery&&this._mediaQuery.removeListener(this._boundQueryHandler),this._mediaQuery=null}_queryHandler(t){typeof this.callback=="function"&&this.callback(t.matches)}}/**
|
|
3252
3263
|
* @license
|
|
3253
3264
|
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
3254
3265
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3255
|
-
*/const Dw=e=>class extends e{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",sync:!0},_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},isDateDisabled:{type:Function},enteredDate:{type:Date,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, isDateDisabled, enteredDate)","__updateCancelButton(_cancelButton, i18n)","__updateTodayButton(_todayButton, i18n, minDate, maxDate, isDateDisabled)","__updateYears(years, selectedDate, _theme)"]}get __useSubMonthScrolling(){return this._monthScroller.clientHeight<this._monthScroller.itemHeight+this._monthScroller.bufferOffset}get focusableDateElement(){return this.calendars.map(r=>r.focusableDateElement).find(Boolean)}_addListeners(){Nh(this.$.scrollers,"pan-y"),gt(this.$.scrollers,"track",this._track.bind(this)),gt(this.shadowRoot.querySelector('[part="clear-button"]'),"tap",this._clear.bind(this)),gt(this.shadowRoot.querySelector('[part="toggle-button"]'),"tap",this._cancel.bind(this)),gt(this.shadowRoot.querySelector('[part="years-toggle-button"]'),"tap",this._toggleYearScroller.bind(this))}_initControllers(){this.addController(new Wh(this._desktopMediaQuery,r=>{this._desktopMode=r})),this.addController(new sr(this,"today-button","vaadin-button",{observe:!1,initializer:r=>{r.setAttribute("theme","tertiary"),r.addEventListener("keydown",i=>this.__onTodayButtonKeyDown(i)),gt(r,"tap",this._onTodayTap.bind(this)),this._todayButton=r}})),this.addController(new sr(this,"cancel-button","vaadin-button",{observe:!1,initializer:r=>{r.setAttribute("theme","tertiary"),r.addEventListener("keydown",i=>this.__onCancelButtonKeyDown(i)),gt(r,"tap",this._cancel.bind(this)),this._cancelButton=r}})),this.__initMonthScroller(),this.__initYearScroller()}reset(){this._closeYearScroller(),this._toggleAnimateClass(!0)}focusCancel(){this._cancelButton.focus()}scrollToDate(r,i){const n=this.__useSubMonthScrolling?this._calculateWeekScrollOffset(r):0;this._scrollToPosition(this._differenceInMonths(r,this._originDate)+n,i),this._monthScroller.forceUpdate()}__initMonthScroller(){this.addController(new sr(this,"months","vaadin-date-picker-month-scroller",{observe:!1,initializer:r=>{r.addEventListener("custom-scroll",()=>{this._onMonthScroll()}),r.addEventListener("touchstart",()=>{this._onMonthScrollTouchStart()}),r.addEventListener("keydown",i=>{this.__onMonthCalendarKeyDown(i)}),r.addEventListener("init-done",()=>{const i=[...this.querySelectorAll("vaadin-month-calendar")];i.forEach(n=>{n.addEventListener("selected-date-changed",s=>{this.selectedDate=s.detail.value})}),this.calendars=i}),this._monthScroller=r}}))}__initYearScroller(){this.addController(new sr(this,"years","vaadin-date-picker-year-scroller",{observe:!1,initializer:r=>{r.setAttribute("aria-hidden","true"),gt(r,"tap",i=>{this._onYearTap(i)}),r.addEventListener("custom-scroll",()=>{this._onYearScroll()}),r.addEventListener("touchstart",()=>{this._onYearScrollTouchStart()}),r.addEventListener("init-done",()=>{this.years=[...this.querySelectorAll("vaadin-date-picker-year")]}),this._yearScroller=r}}))}__updateCancelButton(r,i){r&&(r.textContent=i&&i.cancel)}__updateTodayButton(r,i,n,s,o){r&&(r.textContent=i&&i.today,r.disabled=!this._isTodayAllowed(n,s,o))}__updateCalendars(r,i,n,s,o,a,l,u,d,c,h){r&&r.length&&r.forEach(f=>{f.i18n=i,f.minDate=n,f.maxDate=s,f.isDateDisabled=c,f.focusedDate=a,f.selectedDate=o,f.showWeekNumbers=l,f.ignoreTaps=u,f.enteredDate=h,d?f.setAttribute("theme",d):f.removeAttribute("theme")})}__updateYears(r,i,n){r&&r.length&&r.forEach(s=>{s.selectedDate=i,n?s.setAttribute("theme",n):s.removeAttribute("theme")})}_selectDate(r){return this._dateAllowed(r)?(this.selectedDate=r,this.dispatchEvent(new CustomEvent("date-selected",{detail:{date:r},bubbles:!0,composed:!0})),!0):!1}_desktopModeChanged(r){this.toggleAttribute("desktop",r)}_focusedDateChanged(r){this.revealDate(r)}revealDate(r,i=!0){if(!r)return;const n=this._differenceInMonths(r,this._originDate);if(this.__useSubMonthScrolling){const u=this._calculateWeekScrollOffset(r);this._scrollToPosition(n+u,i);return}const s=this._monthScroller.position>n,a=Math.max(this._monthScroller.itemHeight,this._monthScroller.clientHeight-this._monthScroller.bufferOffset*2)/this._monthScroller.itemHeight,l=this._monthScroller.position+a-1<n;s?this._scrollToPosition(n,i):l&&this._scrollToPosition(n-a+1,i)}_calculateWeekScrollOffset(r){const i=new Date(0,0);i.setFullYear(r.getFullYear()),i.setMonth(r.getMonth()),i.setDate(1);let n=0;for(;i.getDate()<r.getDate();)i.setDate(i.getDate()+1),i.getDay()===this.i18n.firstDayOfWeek&&(n+=1);return n/6}_initialPositionChanged(r){this._monthScroller&&this._yearScroller&&(this._monthScroller.active=!0,this._yearScroller.active=!0),this.scrollToDate(r)}_repositionYearScroller(){const r=this._monthScroller.position;this._visibleMonthIndex=Math.floor(r),this._yearScroller.position=(r+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=Rr.debounce(this._debouncer,Tn.after(300),()=>{this._ignoreTaps=!1})}_formatDisplayed(r,i,n){return r&&i&&typeof i.formatDate=="function"?i.formatDate(Sa(r)):n}_onTodayTap(){const r=this._getTodayMidnight();Math.abs(this._monthScroller.position-this._differenceInMonths(r,this._originDate))<.001?(this._selectDate(r),this._close()):this._scrollToCurrentMonth()}_scrollToCurrentMonth(){this.focusedDate&&(this.focusedDate=new Date),this.scrollToDate(new Date,!0)}_onYearTap(r){if(!this._ignoreTaps&&!this._notTapping){const n=(r.detail.y-(this._yearScroller.getBoundingClientRect().top+this._yearScroller.clientHeight/2))/this._yearScroller.itemHeight;this._scrollToPosition(this._monthScroller.position+n*12,!0)}}_scrollToPosition(r,i){if(this._targetPosition!==void 0){this._targetPosition=r;return}if(!i){this._monthScroller.position=r,this._monthScroller.forceUpdate(),this._targetPosition=void 0,this._repositionYearScroller(),this.__tryFocusDate();return}this._targetPosition=r;let n;this._revealPromise=new Promise(u=>{n=u});const s=(u,d,c,h)=>(u/=h/2,u<1?c/2*u*u+d:(u-=1,-c/2*(u*(u-2)-1)+d));let o=0;const a=this._monthScroller.position,l=u=>{o||(o=u);const d=u-o;if(d<this.scrollDuration){const c=s(d,a,this._targetPosition-a,this.scrollDuration);this._monthScroller.position=c,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._monthScroller.forceUpdate(),this._targetPosition=void 0,n(),this._revealPromise=void 0;setTimeout(this._repositionYearScroller.bind(this),1)};window.requestAnimationFrame(l)}_limit(r,i){return Math.min(i.max,Math.max(i.min,r))}_handleTrack(r){if(Math.abs(r.detail.dx)<10||Math.abs(r.detail.ddy)>10)return;Math.abs(r.detail.ddx)>this._yearScrollerWidth/3&&this._toggleAnimateClass(!0);const i=this._translateX+r.detail.ddx;this._translateX=this._limit(i,{min:0,max:this._yearScrollerWidth})}_track(r){if(!this._desktopMode)switch(r.detail.state){case"start":this._toggleAnimateClass(!1);break;case"track":this._handleTrack(r);break;case"end":this._toggleAnimateClass(!0),this._translateX>=this._yearScrollerWidth/2?this._closeYearScroller():this._openYearScroller();break}}_toggleAnimateClass(r){r?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(r){this._desktopMode||(this._monthScroller.style.transform=`translateX(${r-this._yearScrollerWidth}px)`,this._yearScroller.style.transform=`translateX(${r}px)`)}_yearAfterXMonths(r){return Hh(r).getFullYear()}_differenceInMonths(r,i){return(r.getFullYear()-i.getFullYear())*12-i.getMonth()+r.getMonth()}_clear(){this._selectDate("")}_close(){this.dispatchEvent(new CustomEvent("close",{bubbles:!0,composed:!0}))}_cancel(){this.focusedDate=this.selectedDate,this._close()}_preventDefault(r){r.preventDefault()}__toggleDate(r){ot(r,this.selectedDate)?(this._clear(),this.focusedDate=r):this._selectDate(r)}__onMonthCalendarKeyDown(r){let i=!1;switch(r.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(r.shiftKey?12:1),i=!0;break;case"PageUp":this._moveFocusByMonths(r.shiftKey?-12:-1),i=!0;break;case"Tab":this._onTabKeyDown(r,"calendar");break}i&&(r.preventDefault(),r.stopPropagation())}_onTabKeyDown(r,i){switch(r.stopPropagation(),i){case"calendar":r.shiftKey&&(r.preventDefault(),this.hasAttribute("fullscreen")?this.focusCancel():this.__focusInput());break;case"today":r.shiftKey&&(r.preventDefault(),this.focusDateElement());break;case"cancel":r.shiftKey||(r.preventDefault(),this.hasAttribute("fullscreen")?this.focusDateElement():this.__focusInput());break}}__onTodayButtonKeyDown(r){r.key==="Tab"&&this._onTabKeyDown(r,"today")}__onCancelButtonKeyDown(r){r.key==="Tab"&&this._onTabKeyDown(r,"cancel")}__focusInput(){this.dispatchEvent(new CustomEvent("focus-input",{bubbles:!0,composed:!0}))}__tryFocusDate(){if(this.__pendingDateFocus){const i=this.focusableDateElement;i&&ot(i.date,this.__pendingDateFocus)&&(delete this.__pendingDateFocus,i.focus())}}focusDate(r,i){return et(this,null,function*(){const n=r||this.selectedDate||this.initialPosition||new Date;this.focusedDate=n,i||(this._focusedMonthDate=n.getDate()),yield this.focusDateElement(!1)})}focusDateElement(r=!0){return et(this,null,function*(){this.__pendingDateFocus=this.focusedDate,this.calendars.length||(yield new Promise(i=>{wh(this,()=>{Aa(),i()})})),r&&this.revealDate(this.focusedDate),this._revealPromise&&(yield this._revealPromise),this.__tryFocusDate()})}_focusClosestDate(r){this.focusDate(Fh(r,[this.minDate,this.maxDate]))}_focusAllowedDate(r,i,n){this._dateAllowed(r,void 0,void 0,()=>!1)?this.focusDate(r,n):this._dateAllowed(this.focusedDate)?i>0?this.focusDate(this.maxDate):this.focusDate(this.minDate):this._focusClosestDate(this.focusedDate)}_getDateDiff(r,i){const n=new Date(0,0);return n.setFullYear(this.focusedDate.getFullYear()),n.setMonth(this.focusedDate.getMonth()+r),i&&n.setDate(this.focusedDate.getDate()+i),n}_moveFocusByDays(r){const i=this._getDateDiff(0,r);this._focusAllowedDate(i,r,!1)}_moveFocusByMonths(r){const i=this._getDateDiff(r),n=i.getMonth();this._focusedMonthDate||(this._focusedMonthDate=this.focusedDate.getDate()),i.setDate(this._focusedMonthDate),i.getMonth()!==n&&i.setDate(0),this._focusAllowedDate(i,r,!0)}_moveFocusInsideMonth(r,i){const n=new Date(0,0);n.setFullYear(r.getFullYear()),i==="minDate"?(n.setMonth(r.getMonth()),n.setDate(1)):(n.setMonth(r.getMonth()+1),n.setDate(0)),this._dateAllowed(n)?this.focusDate(n):this._dateAllowed(r)?this.focusDate(this[i]):this._focusClosestDate(r)}_dateAllowed(r,i=this.minDate,n=this.maxDate,s=this.isDateDisabled){return Yr(r,i,n,s)}_isTodayAllowed(r,i,n){return this._dateAllowed(this._getTodayMidnight(),r,i,n)}_getTodayMidnight(){const r=new Date,i=new Date(0,0);return i.setFullYear(r.getFullYear()),i.setMonth(r.getMonth()),i.setDate(r.getDate()),i}};/**
|
|
3266
|
+
*/const Dw=e=>class extends e{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},isDateDisabled:{type:Function},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, isDateDisabled)","__updateCancelButton(_cancelButton, i18n)","__updateTodayButton(_todayButton, i18n, minDate, maxDate, isDateDisabled)","__updateYears(years, selectedDate, _theme)"]}get __useSubMonthScrolling(){return this._monthScroller.clientHeight<this._monthScroller.itemHeight+this._monthScroller.bufferOffset}get focusableDateElement(){return this.calendars.map(r=>r.focusableDateElement).find(Boolean)}_addListeners(){Fh(this.$.scrollers,"pan-y"),vt(this.$.scrollers,"track",this._track.bind(this)),vt(this.shadowRoot.querySelector('[part="clear-button"]'),"tap",this._clear.bind(this)),vt(this.shadowRoot.querySelector('[part="toggle-button"]'),"tap",this._cancel.bind(this)),vt(this.shadowRoot.querySelector('[part="years-toggle-button"]'),"tap",this._toggleYearScroller.bind(this))}_initControllers(){this.addController(new jh(this._desktopMediaQuery,r=>{this._desktopMode=r})),this.addController(new or(this,"today-button","vaadin-button",{observe:!1,initializer:r=>{r.setAttribute("theme","tertiary"),r.addEventListener("keydown",i=>this.__onTodayButtonKeyDown(i)),vt(r,"tap",this._onTodayTap.bind(this)),this._todayButton=r}})),this.addController(new or(this,"cancel-button","vaadin-button",{observe:!1,initializer:r=>{r.setAttribute("theme","tertiary"),r.addEventListener("keydown",i=>this.__onCancelButtonKeyDown(i)),vt(r,"tap",this._cancel.bind(this)),this._cancelButton=r}})),this.__initMonthScroller(),this.__initYearScroller()}reset(){this._closeYearScroller(),this._toggleAnimateClass(!0)}focusCancel(){this._cancelButton.focus()}scrollToDate(r,i){const n=this.__useSubMonthScrolling?this._calculateWeekScrollOffset(r):0;this._scrollToPosition(this._differenceInMonths(r,this._originDate)+n,i),this._monthScroller.forceUpdate()}__initMonthScroller(){this.addController(new or(this,"months","vaadin-date-picker-month-scroller",{observe:!1,initializer:r=>{r.addEventListener("custom-scroll",()=>{this._onMonthScroll()}),r.addEventListener("touchstart",()=>{this._onMonthScrollTouchStart()}),r.addEventListener("keydown",i=>{this.__onMonthCalendarKeyDown(i)}),r.addEventListener("init-done",()=>{const i=[...this.querySelectorAll("vaadin-month-calendar")];i.forEach(n=>{n.addEventListener("selected-date-changed",s=>{this.selectedDate=s.detail.value})}),this.calendars=i}),this._monthScroller=r}}))}__initYearScroller(){this.addController(new or(this,"years","vaadin-date-picker-year-scroller",{observe:!1,initializer:r=>{r.setAttribute("aria-hidden","true"),vt(r,"tap",i=>{this._onYearTap(i)}),r.addEventListener("custom-scroll",()=>{this._onYearScroll()}),r.addEventListener("touchstart",()=>{this._onYearScrollTouchStart()}),r.addEventListener("init-done",()=>{this.years=[...this.querySelectorAll("vaadin-date-picker-year")]}),this._yearScroller=r}}))}__updateCancelButton(r,i){r&&(r.textContent=i&&i.cancel)}__updateTodayButton(r,i,n,s,o){r&&(r.textContent=i&&i.today,r.disabled=!this._isTodayAllowed(n,s,o))}__updateCalendars(r,i,n,s,o,a,l,u,d,c){r&&r.length&&r.forEach(h=>{h.i18n=i,h.minDate=n,h.maxDate=s,h.isDateDisabled=c,h.focusedDate=a,h.selectedDate=o,h.showWeekNumbers=l,h.ignoreTaps=u,d?h.setAttribute("theme",d):h.removeAttribute("theme")})}__updateYears(r,i,n){r&&r.length&&r.forEach(s=>{s.selectedDate=i,n?s.setAttribute("theme",n):s.removeAttribute("theme")})}_selectDate(r){return this._dateAllowed(r)?(this.selectedDate=r,this.dispatchEvent(new CustomEvent("date-selected",{detail:{date:r},bubbles:!0,composed:!0})),!0):!1}_desktopModeChanged(r){this.toggleAttribute("desktop",r)}_focusedDateChanged(r){this.revealDate(r)}revealDate(r,i=!0){if(!r)return;const n=this._differenceInMonths(r,this._originDate);if(this.__useSubMonthScrolling){const u=this._calculateWeekScrollOffset(r);this._scrollToPosition(n+u,i);return}const s=this._monthScroller.position>n,a=Math.max(this._monthScroller.itemHeight,this._monthScroller.clientHeight-this._monthScroller.bufferOffset*2)/this._monthScroller.itemHeight,l=this._monthScroller.position+a-1<n;s?this._scrollToPosition(n,i):l&&this._scrollToPosition(n-a+1,i)}_calculateWeekScrollOffset(r){const i=new Date(0,0);i.setFullYear(r.getFullYear()),i.setMonth(r.getMonth()),i.setDate(1);let n=0;for(;i.getDate()<r.getDate();)i.setDate(i.getDate()+1),i.getDay()===this.i18n.firstDayOfWeek&&(n+=1);return n/6}_initialPositionChanged(r){this._monthScroller&&this._yearScroller&&(this._monthScroller.active=!0,this._yearScroller.active=!0),this.scrollToDate(r)}_repositionYearScroller(){const r=this._monthScroller.position;this._visibleMonthIndex=Math.floor(r),this._yearScroller.position=(r+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=zr.debounce(this._debouncer,Pn.after(300),()=>{this._ignoreTaps=!1})}_formatDisplayed(r,i,n){return r&&i&&typeof i.formatDate=="function"?i.formatDate(Da(r)):n}_onTodayTap(){const r=this._getTodayMidnight();Math.abs(this._monthScroller.position-this._differenceInMonths(r,this._originDate))<.001?(this._selectDate(r),this._close()):this._scrollToCurrentMonth()}_scrollToCurrentMonth(){this.focusedDate&&(this.focusedDate=new Date),this.scrollToDate(new Date,!0)}_onYearTap(r){if(!this._ignoreTaps&&!this._notTapping){const n=(r.detail.y-(this._yearScroller.getBoundingClientRect().top+this._yearScroller.clientHeight/2))/this._yearScroller.itemHeight;this._scrollToPosition(this._monthScroller.position+n*12,!0)}}_scrollToPosition(r,i){if(this._targetPosition!==void 0){this._targetPosition=r;return}if(!i){this._monthScroller.position=r,this._monthScroller.forceUpdate(),this._targetPosition=void 0,this._repositionYearScroller(),this.__tryFocusDate();return}this._targetPosition=r;let n;this._revealPromise=new Promise(u=>{n=u});const s=(u,d,c,h)=>(u/=h/2,u<1?c/2*u*u+d:(u-=1,-c/2*(u*(u-2)-1)+d));let o=0;const a=this._monthScroller.position,l=u=>{o||(o=u);const d=u-o;if(d<this.scrollDuration){const c=s(d,a,this._targetPosition-a,this.scrollDuration);this._monthScroller.position=c,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._monthScroller.forceUpdate(),this._targetPosition=void 0,n(),this._revealPromise=void 0;setTimeout(this._repositionYearScroller.bind(this),1)};window.requestAnimationFrame(l)}_limit(r,i){return Math.min(i.max,Math.max(i.min,r))}_handleTrack(r){if(Math.abs(r.detail.dx)<10||Math.abs(r.detail.ddy)>10)return;Math.abs(r.detail.ddx)>this._yearScrollerWidth/3&&this._toggleAnimateClass(!0);const i=this._translateX+r.detail.ddx;this._translateX=this._limit(i,{min:0,max:this._yearScrollerWidth})}_track(r){if(!this._desktopMode)switch(r.detail.state){case"start":this._toggleAnimateClass(!1);break;case"track":this._handleTrack(r);break;case"end":this._toggleAnimateClass(!0),this._translateX>=this._yearScrollerWidth/2?this._closeYearScroller():this._openYearScroller();break}}_toggleAnimateClass(r){r?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(r){this._desktopMode||(this._monthScroller.style.transform=`translateX(${r-this._yearScrollerWidth}px)`,this._yearScroller.style.transform=`translateX(${r}px)`)}_yearAfterXMonths(r){return Yh(r).getFullYear()}_differenceInMonths(r,i){return(r.getFullYear()-i.getFullYear())*12-i.getMonth()+r.getMonth()}_clear(){this._selectDate("")}_close(){this.dispatchEvent(new CustomEvent("close",{bubbles:!0,composed:!0}))}_cancel(){this.focusedDate=this.selectedDate,this._close()}_preventDefault(r){r.preventDefault()}__toggleDate(r){Nt(r,this.selectedDate)?(this._clear(),this.focusedDate=r):this._selectDate(r)}__onMonthCalendarKeyDown(r){let i=!1;switch(r.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(r.shiftKey?12:1),i=!0;break;case"PageUp":this._moveFocusByMonths(r.shiftKey?-12:-1),i=!0;break;case"Tab":this._onTabKeyDown(r,"calendar");break}i&&(r.preventDefault(),r.stopPropagation())}_onTabKeyDown(r,i){switch(r.stopPropagation(),i){case"calendar":r.shiftKey&&(r.preventDefault(),this.hasAttribute("fullscreen")?this.focusCancel():this.__focusInput());break;case"today":r.shiftKey&&(r.preventDefault(),this.focusDateElement());break;case"cancel":r.shiftKey||(r.preventDefault(),this.hasAttribute("fullscreen")?this.focusDateElement():this.__focusInput());break}}__onTodayButtonKeyDown(r){r.key==="Tab"&&this._onTabKeyDown(r,"today")}__onCancelButtonKeyDown(r){r.key==="Tab"&&this._onTabKeyDown(r,"cancel")}__focusInput(){this.dispatchEvent(new CustomEvent("focus-input",{bubbles:!0,composed:!0}))}__tryFocusDate(){if(this.__pendingDateFocus){const i=this.focusableDateElement;i&&Nt(i.date,this.__pendingDateFocus)&&(delete this.__pendingDateFocus,i.focus())}}focusDate(r,i){return rt(this,null,function*(){const n=r||this.selectedDate||this.initialPosition||new Date;this.focusedDate=n,i||(this._focusedMonthDate=n.getDate()),yield this.focusDateElement(!1)})}focusDateElement(r=!0){return rt(this,null,function*(){this.__pendingDateFocus=this.focusedDate,this.calendars.length||(yield new Promise(i=>{xh(this,()=>{Ma(),i()})})),r&&this.revealDate(this.focusedDate),this._revealPromise&&(yield this._revealPromise),this.__tryFocusDate()})}_focusClosestDate(r){this.focusDate(zh(r,[this.minDate,this.maxDate]))}_focusAllowedDate(r,i,n){this._dateAllowed(r,void 0,void 0,()=>!1)?this.focusDate(r,n):this._dateAllowed(this.focusedDate)?i>0?this.focusDate(this.maxDate):this.focusDate(this.minDate):this._focusClosestDate(this.focusedDate)}_getDateDiff(r,i){const n=new Date(0,0);return n.setFullYear(this.focusedDate.getFullYear()),n.setMonth(this.focusedDate.getMonth()+r),i&&n.setDate(this.focusedDate.getDate()+i),n}_moveFocusByDays(r){const i=this._getDateDiff(0,r);this._focusAllowedDate(i,r,!1)}_moveFocusByMonths(r){const i=this._getDateDiff(r),n=i.getMonth();this._focusedMonthDate||(this._focusedMonthDate=this.focusedDate.getDate()),i.setDate(this._focusedMonthDate),i.getMonth()!==n&&i.setDate(0),this._focusAllowedDate(i,r,!0)}_moveFocusInsideMonth(r,i){const n=new Date(0,0);n.setFullYear(r.getFullYear()),i==="minDate"?(n.setMonth(r.getMonth()),n.setDate(1)):(n.setMonth(r.getMonth()+1),n.setDate(0)),this._dateAllowed(n)?this.focusDate(n):this._dateAllowed(r)?this.focusDate(this[i]):this._focusClosestDate(r)}_dateAllowed(r,i=this.minDate,n=this.maxDate,s=this.isDateDisabled){return Yr(r,i,n,s)}_isTodayAllowed(r,i,n){return this._dateAllowed(this._getTodayMidnight(),r,i,n)}_getTodayMidnight(){const r=new Date,i=new Date(0,0);return i.setFullYear(r.getFullYear()),i.setMonth(r.getMonth()),i.setDate(r.getDate()),i}};/**
|
|
3256
3267
|
* @license
|
|
3257
3268
|
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
3258
3269
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3259
|
-
*/const
|
|
3270
|
+
*/const Mw=_e`
|
|
3260
3271
|
:host {
|
|
3261
3272
|
display: flex;
|
|
3262
3273
|
flex-direction: column;
|
|
@@ -3320,7 +3331,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
3320
3331
|
* @license
|
|
3321
3332
|
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
3322
3333
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3323
|
-
*/Fe("vaadin-date-picker-overlay-content",
|
|
3334
|
+
*/Fe("vaadin-date-picker-overlay-content",Mw,{moduleId:"vaadin-date-picker-overlay-content-styles"});class Ow extends Dw(qr(fr(ss(Jt)))){static get template(){return mr`
|
|
3324
3335
|
<div part="overlay-header" on-touchend="_preventDefault" aria-hidden="true">
|
|
3325
3336
|
<div part="label">[[_formatDisplayed(selectedDate, i18n, label)]]</div>
|
|
3326
3337
|
<div part="clear-button" hidden$="[[!selectedDate]]"></div>
|
|
@@ -3340,92 +3351,92 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
3340
3351
|
<slot name="today-button"></slot>
|
|
3341
3352
|
<slot name="cancel-button"></slot>
|
|
3342
3353
|
</div>
|
|
3343
|
-
`}static get is(){return"vaadin-date-picker-overlay-content"}ready(){super.ready(),this.setAttribute("role","dialog"),this._addListeners(),this._initControllers()}}
|
|
3354
|
+
`}static get is(){return"vaadin-date-picker-overlay-content"}ready(){super.ready(),this.setAttribute("role","dialog"),this._addListeners(),this._initControllers()}}xt(Ow);/**
|
|
3344
3355
|
* @license
|
|
3345
3356
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
3346
3357
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3347
|
-
*/const
|
|
3358
|
+
*/const qh=Ye(e=>class extends Pa(Hh(e)){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(r,i){r?(r.disabled=this.disabled,this._addFocusListeners(r),this.__forwardTabIndex(this.tabindex)):i&&this._removeFocusListeners(i)}_addFocusListeners(r){r.addEventListener("blur",this._boundOnBlur),r.addEventListener("focus",this._boundOnFocus)}_removeFocusListeners(r){r.removeEventListener("blur",this._boundOnBlur),r.removeEventListener("focus",this._boundOnFocus)}_onFocus(r){r.stopPropagation(),this.dispatchEvent(new Event("focus"))}_onBlur(r){r.stopPropagation(),this.dispatchEvent(new Event("blur"))}_shouldSetFocus(r){return r.target===this.focusElement}_shouldRemoveFocus(r){return r.target===this.focusElement}_disabledChanged(r,i){super._disabledChanged(r,i),this.focusElement&&(this.focusElement.disabled=r),r&&this.blur()}_tabindexChanged(r){this.__forwardTabIndex(r)}__forwardTabIndex(r){r!==void 0&&this.focusElement&&(this.focusElement.tabIndex=r,r!==-1&&(this.tabindex=void 0)),this.disabled&&r&&(r!==-1&&(this._lastTabIndex=r),this.tabindex=void 0)}});/**
|
|
3348
3359
|
* @license
|
|
3349
3360
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
3350
3361
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3351
|
-
*/const
|
|
3362
|
+
*/const Vs=new WeakMap;function Bw(e){return Vs.has(e)||Vs.set(e,new Set),Vs.get(e)}function Nw(e,t){const r=document.createElement("style");r.textContent=e,t===document?document.head.appendChild(r):t.insertBefore(r,t.firstChild)}const Iw=Ye(e=>class extends e{get slotStyles(){return{}}connectedCallback(){super.connectedCallback(),this.__applySlotStyles()}__applySlotStyles(){const r=this.getRootNode(),i=Bw(r);this.slotStyles.forEach(n=>{i.has(n)||(Nw(n,r),i.add(n))})}});/**
|
|
3352
3363
|
* @license
|
|
3353
3364
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
3354
3365
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3355
|
-
*/const
|
|
3366
|
+
*/const Zh=Ye(e=>class extends e{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(r){this.inputElement&&(this.inputElement[this._inputElementValueProperty]=r)}clear(){this._hasInputValue=!1,this.value="",this._inputElementValue=""}_addInputListeners(r){r.addEventListener("input",this._boundOnInput),r.addEventListener("change",this._boundOnChange)}_removeInputListeners(r){r.removeEventListener("input",this._boundOnInput),r.removeEventListener("change",this._boundOnChange)}_forwardInputValue(r){this.inputElement&&(this._inputElementValue=r!=null?r:"")}_inputElementChanged(r,i){r?this._addInputListeners(r):i&&this._removeInputListeners(i)}_hasInputValueChanged(r,i){(r||i)&&this.dispatchEvent(new CustomEvent("has-input-value-changed"))}__onInput(r){this._setHasInputValue(r),this._onInput(r)}_onInput(r){const i=r.composedPath()[0];this.__userInput=r.isTrusted,this.value=i.value,this.__userInput=!1}_onChange(r){}_toggleHasValue(r){this.toggleAttribute("has-value",r)}_valueChanged(r,i){this._toggleHasValue(this._hasValue),!(r===""&&i===void 0)&&(this.__userInput||this._forwardInputValue(r))}_setHasInputValue(r){const i=r.composedPath()[0];this._hasInputValue=i.value.length>0}});/**
|
|
3356
3367
|
* @license
|
|
3357
3368
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
3358
3369
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3359
|
-
*/const
|
|
3370
|
+
*/const Lw=e=>class extends Zh(ls(e)){static get properties(){return{clearButtonVisible:{type:Boolean,reflectToAttribute:!0,value:!1}}}get clearElement(){return console.warn(`Please implement the 'clearElement' property in <${this.localName}>`),null}ready(){super.ready(),this.clearElement&&(this.clearElement.addEventListener("mousedown",r=>this._onClearButtonMouseDown(r)),this.clearElement.addEventListener("click",r=>this._onClearButtonClick(r)))}_onClearButtonClick(r){r.preventDefault(),this._onClearAction()}_onClearButtonMouseDown(r){r.preventDefault(),t1||this.inputElement.focus()}_onEscape(r){super._onEscape(r),this.clearButtonVisible&&this.value&&!this.readonly&&(r.stopPropagation(),this._onClearAction())}_onClearAction(){this._inputElementValue="",this.inputElement.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})),this.inputElement.dispatchEvent(new Event("change",{bubbles:!0}))}};/**
|
|
3360
3371
|
* @license
|
|
3361
3372
|
* Copyright (c) 2023 - 2024 Vaadin Ltd.
|
|
3362
3373
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3363
|
-
*/const
|
|
3374
|
+
*/const Gs=new Map;function Na(e){return Gs.has(e)||Gs.set(e,new WeakMap),Gs.get(e)}function Kh(e,t){e&&e.removeAttribute(t)}function Xh(e,t){if(!e||!t)return;const r=Na(t);if(r.has(e))return;const i=Ea(e.getAttribute(t));r.set(e,new Set(i))}function Fw(e,t){if(!e||!t)return;const r=Na(t),i=r.get(e);!i||i.size===0?e.removeAttribute(t):Th(e,t,as(i)),r.delete(e)}function js(e,t,r={newId:null,oldId:null,fromUser:!1}){if(!e||!t)return;const{newId:i,oldId:n,fromUser:s}=r,o=Na(t),a=o.get(e);if(!s&&a){n&&a.delete(n),i&&a.add(i);return}s&&(a?i||o.delete(e):Xh(e,t),Kh(e,t)),h1(e,t,n);const l=i||as(a);l&&Th(e,t,l)}function Rw(e,t){Xh(e,t),Kh(e,t)}/**
|
|
3364
3375
|
* @license
|
|
3365
3376
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
3366
3377
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3367
|
-
*/class Hw{constructor(t){this.host=t,this.__required=!1}setTarget(t){this.__target=t,this.__setAriaRequiredAttribute(this.__required),this.__setLabelIdToAriaAttribute(this.__labelId,this.__labelId),this.__labelIdFromUser!=null&&this.__setLabelIdToAriaAttribute(this.__labelIdFromUser,this.__labelIdFromUser,!0),this.__setErrorIdToAriaAttribute(this.__errorId),this.__setHelperIdToAriaAttribute(this.__helperId),this.setAriaLabel(this.__label)}setRequired(t){this.__setAriaRequiredAttribute(t),this.__required=t}setAriaLabel(t){this.__setAriaLabelToAttribute(t),this.__label=t}setLabelId(t,r=!1){const i=r?this.__labelIdFromUser:this.__labelId;this.__setLabelIdToAriaAttribute(t,i,r),r?this.__labelIdFromUser=t:this.__labelId=t}setErrorId(t){this.__setErrorIdToAriaAttribute(t,this.__errorId),this.__errorId=t}setHelperId(t){this.__setHelperIdToAriaAttribute(t,this.__helperId),this.__helperId=t}__setAriaLabelToAttribute(t){this.__target&&(t?(
|
|
3378
|
+
*/class Hw{constructor(t){this.host=t,this.__required=!1}setTarget(t){this.__target=t,this.__setAriaRequiredAttribute(this.__required),this.__setLabelIdToAriaAttribute(this.__labelId,this.__labelId),this.__labelIdFromUser!=null&&this.__setLabelIdToAriaAttribute(this.__labelIdFromUser,this.__labelIdFromUser,!0),this.__setErrorIdToAriaAttribute(this.__errorId),this.__setHelperIdToAriaAttribute(this.__helperId),this.setAriaLabel(this.__label)}setRequired(t){this.__setAriaRequiredAttribute(t),this.__required=t}setAriaLabel(t){this.__setAriaLabelToAttribute(t),this.__label=t}setLabelId(t,r=!1){const i=r?this.__labelIdFromUser:this.__labelId;this.__setLabelIdToAriaAttribute(t,i,r),r?this.__labelIdFromUser=t:this.__labelId=t}setErrorId(t){this.__setErrorIdToAriaAttribute(t,this.__errorId),this.__errorId=t}setHelperId(t){this.__setHelperIdToAriaAttribute(t,this.__helperId),this.__helperId=t}__setAriaLabelToAttribute(t){this.__target&&(t?(Rw(this.__target,"aria-labelledby"),this.__target.setAttribute("aria-label",t)):this.__label&&(Fw(this.__target,"aria-labelledby"),this.__target.removeAttribute("aria-label")))}__setLabelIdToAriaAttribute(t,r,i){js(this.__target,"aria-labelledby",{newId:t,oldId:r,fromUser:i})}__setErrorIdToAriaAttribute(t,r){js(this.__target,"aria-describedby",{newId:t,oldId:r,fromUser:!1})}__setHelperIdToAriaAttribute(t,r){js(this.__target,"aria-describedby",{newId:t,oldId:r,fromUser:!1})}__setAriaRequiredAttribute(t){this.__target&&(["input","textarea"].includes(this.__target.localName)||(t?this.__target.setAttribute("aria-required","true"):this.__target.removeAttribute("aria-required")))}}/**
|
|
3368
3379
|
* @license
|
|
3369
3380
|
* Copyright (c) 2022 - 2024 Vaadin Ltd.
|
|
3370
3381
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3371
|
-
*/const
|
|
3382
|
+
*/const ht=document.createElement("div");ht.style.position="fixed";ht.style.clip="rect(0px, 0px, 0px, 0px)";ht.setAttribute("aria-live","polite");document.body.appendChild(ht);let tn;function zw(e,t={}){const r=t.mode||"polite",i=t.timeout===void 0?150:t.timeout;r==="alert"?(ht.removeAttribute("aria-live"),ht.removeAttribute("role"),tn=zr.debounce(tn,T1,()=>{ht.setAttribute("role","alert")})):(tn&&tn.cancel(),ht.removeAttribute("role"),ht.setAttribute("aria-live",r)),ht.textContent="",setTimeout(()=>{ht.textContent=e},i)}/**
|
|
3372
3383
|
* @license
|
|
3373
3384
|
* Copyright (c) 2022 - 2024 Vaadin Ltd.
|
|
3374
3385
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3375
|
-
*/class
|
|
3386
|
+
*/class Ia extends or{constructor(t,r,i,n={}){super(t,r,i,Zr(er({},n),{useUniqueId:!0}))}initCustomNode(t){this.__updateNodeId(t),this.__notifyChange(t)}teardownNode(t){const r=this.getSlotChild();r&&r!==this.defaultNode?this.__notifyChange(r):(this.restoreDefaultNode(),this.updateDefaultNode(this.node))}attachDefaultNode(){const t=super.attachDefaultNode();return t&&this.__updateNodeId(t),t}restoreDefaultNode(){}updateDefaultNode(t){this.__notifyChange(t)}observeNode(t){this.__nodeObserver&&this.__nodeObserver.disconnect(),this.__nodeObserver=new MutationObserver(r=>{r.forEach(i=>{const n=i.target,s=n===this.node;i.type==="attributes"?s&&this.__updateNodeId(n):(s||n.parentElement===this.node)&&this.__notifyChange(this.node)})}),this.__nodeObserver.observe(t,{attributes:!0,attributeFilter:["id"],childList:!0,subtree:!0,characterData:!0})}__hasContent(t){return t?t.nodeType===Node.ELEMENT_NODE&&(customElements.get(t.localName)||t.children.length>0)||t.textContent&&t.textContent.trim()!=="":!1}__notifyChange(t){this.dispatchEvent(new CustomEvent("slot-content-changed",{detail:{hasContent:this.__hasContent(t),node:t}}))}__updateNodeId(t){const r=!this.nodes||t===this.nodes[0];t.nodeType===Node.ELEMENT_NODE&&(!this.multiple||r)&&!t.id&&(t.id=this.defaultId)}}/**
|
|
3376
3387
|
* @license
|
|
3377
3388
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
3378
3389
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3379
|
-
*/class Yw extends
|
|
3390
|
+
*/class Yw extends Ia{constructor(t){super(t,"error-message","div")}setErrorMessage(t){this.errorMessage=t,this.updateDefaultNode(this.node)}setInvalid(t){this.invalid=t,this.updateDefaultNode(this.node)}initAddedNode(t){t!==this.defaultNode&&this.initCustomNode(t)}initNode(t){this.updateDefaultNode(t)}initCustomNode(t){t.textContent&&!this.errorMessage&&(this.errorMessage=t.textContent.trim()),super.initCustomNode(t)}restoreDefaultNode(){this.attachDefaultNode()}updateDefaultNode(t){const{errorMessage:r,invalid:i}=this,n=!!(i&&r&&r.trim()!=="");t&&(t.textContent=n?r:"",t.hidden=!n,n&&zw(r,{mode:"assertive"})),super.updateDefaultNode(t)}}/**
|
|
3380
3391
|
* @license
|
|
3381
3392
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
3382
3393
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3383
|
-
*/class
|
|
3394
|
+
*/class Uw extends Ia{constructor(t){super(t,"helper",null)}setHelperText(t){this.helperText=t,this.getSlotChild()||this.restoreDefaultNode(),this.node===this.defaultNode&&this.updateDefaultNode(this.node)}restoreDefaultNode(){const{helperText:t}=this;if(t&&t.trim()!==""){this.tagName="div";const r=this.attachDefaultNode();this.observeNode(r)}}updateDefaultNode(t){t&&(t.textContent=this.helperText),super.updateDefaultNode(t)}initCustomNode(t){super.initCustomNode(t),this.observeNode(t)}}/**
|
|
3384
3395
|
* @license
|
|
3385
3396
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
3386
3397
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3387
|
-
*/class
|
|
3398
|
+
*/class Ww extends Ia{constructor(t){super(t,"label","label")}setLabel(t){this.label=t,this.getSlotChild()||this.restoreDefaultNode(),this.node===this.defaultNode&&this.updateDefaultNode(this.node)}restoreDefaultNode(){const{label:t}=this;if(t&&t.trim()!==""){const r=this.attachDefaultNode();this.observeNode(r)}}updateDefaultNode(t){t&&(t.textContent=this.label),super.updateDefaultNode(t)}initCustomNode(t){super.initCustomNode(t),this.observeNode(t)}}/**
|
|
3388
3399
|
* @license
|
|
3389
3400
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
3390
3401
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3391
|
-
*/const
|
|
3402
|
+
*/const $w=Ye(e=>class extends qr(e){static get properties(){return{label:{type:String,observer:"_labelChanged"}}}constructor(){super(),this._labelController=new Ww(this),this._labelController.addEventListener("slot-content-changed",r=>{this.toggleAttribute("has-label",r.detail.hasContent)})}get _labelId(){const r=this._labelNode;return r&&r.id}get _labelNode(){return this._labelController.node}ready(){super.ready(),this.addController(this._labelController)}_labelChanged(r){this._labelController.setLabel(r)}});/**
|
|
3392
3403
|
* @license
|
|
3393
3404
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
3394
3405
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3395
|
-
*/const
|
|
3406
|
+
*/const Jh=Ye(e=>class extends e{static get properties(){return{invalid:{type:Boolean,reflectToAttribute:!0,notify:!0,value:!1},required:{type:Boolean,reflectToAttribute:!0}}}validate(){const r=this.checkValidity();return this._setInvalid(!r),this.dispatchEvent(new CustomEvent("validated",{detail:{valid:r}})),r}checkValidity(){return!this.required||!!this.value}_setInvalid(r){this._shouldSetInvalid(r)&&(this.invalid=r)}_shouldSetInvalid(r){return!0}});/**
|
|
3396
3407
|
* @license
|
|
3397
3408
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
3398
3409
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3399
|
-
*/const
|
|
3410
|
+
*/const Vw=e=>class extends Jh($w(qr(e))){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 Hw(this),this._helperController=new Uw(this),this._errorController=new Yw(this),this._errorController.addEventListener("slot-content-changed",r=>{this.toggleAttribute("has-error-message",r.detail.hasContent)}),this._labelController.addEventListener("slot-content-changed",r=>{const{hasContent:i,node:n}=r.detail;this.__labelChanged(i,n)}),this._helperController.addEventListener("slot-content-changed",r=>{const{hasContent:i,node:n}=r.detail;this.toggleAttribute("has-helper",i),this.__helperChanged(i,n)})}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(r,i){r?this._fieldAriaController.setHelperId(i.id):this._fieldAriaController.setHelperId(null)}_accessibleNameChanged(r){this._fieldAriaController.setAriaLabel(r)}_accessibleNameRefChanged(r){this._fieldAriaController.setLabelId(r,!0)}__labelChanged(r,i){r?this._fieldAriaController.setLabelId(i.id):this._fieldAriaController.setLabelId(null)}_errorMessageChanged(r){this._errorController.setErrorMessage(r)}_helperTextChanged(r){this._helperController.setHelperText(r)}_ariaTargetChanged(r){r&&this._fieldAriaController.setTarget(r)}_requiredChanged(r){this._fieldAriaController.setRequired(r)}_invalidChanged(r){this._errorController.setInvalid(r),setTimeout(()=>{if(r){const i=this._errorNode;this._fieldAriaController.setErrorId(i&&i.id)}else this._fieldAriaController.setErrorId(null)})}};/**
|
|
3400
3411
|
* @license
|
|
3401
3412
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
3402
3413
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3403
|
-
*/const
|
|
3414
|
+
*/const Gw=Ye(e=>class extends e{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(r){r&&(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(r=>{this._delegateAttribute(r,this[r])})}_ensurePropsDelegated(){this.constructor.delegateProps.forEach(r=>{this._delegateProperty(r,this[r])})}_delegateAttrsChanged(...r){this.constructor.delegateAttrs.forEach((i,n)=>{this._delegateAttribute(i,r[n])})}_delegatePropsChanged(...r){this.constructor.delegateProps.forEach((i,n)=>{this._delegateProperty(i,r[n])})}_delegateAttribute(r,i){this.stateTarget&&(r==="invalid"&&this._delegateAttribute("aria-invalid",i?"true":!1),typeof i=="boolean"?this.stateTarget.toggleAttribute(r,i):i?this.stateTarget.setAttribute(r,i):this.stateTarget.removeAttribute(r))}_delegateProperty(r,i){this.stateTarget&&(this.stateTarget[r]=i)}});/**
|
|
3404
3415
|
* @license
|
|
3405
3416
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
3406
3417
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3407
|
-
*/const
|
|
3418
|
+
*/const Qh=Ye(e=>class extends Gw(Jh(Zh(e))){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(r=>this[r]))?this.inputElement.checkValidity():!this.invalid}_hasValidConstraints(r){return r.some(i=>this.__isValidConstraint(i))}_createConstraintsObserver(){this._createMethodObserver(`_constraintsChanged(stateTarget, ${this.constructor.constraints.join(", ")})`)}_constraintsChanged(r,...i){if(!r)return;const n=this._hasValidConstraints(i),s=this.__previousHasConstraints&&!n;(this._hasValue||this.invalid)&&n?this.validate():s&&this._setInvalid(!1),this.__previousHasConstraints=n}_onChange(r){r.stopPropagation(),this.validate(),this.dispatchEvent(new CustomEvent("change",{detail:{sourceEvent:r},bubbles:r.bubbles,cancelable:r.cancelable}))}__isValidConstraint(r){return!!r||r===0}});/**
|
|
3408
3419
|
* @license
|
|
3409
3420
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
3410
3421
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3411
|
-
*/const
|
|
3422
|
+
*/const jw=e=>class extends Iw(qh(Qh(Vw(Lw(ls(e)))))){static get properties(){return{allowedCharPattern:{type:String,observer:"_allowedCharPatternChanged"},autoselect:{type:Boolean,value:!1},name:{type:String,reflectToAttribute:!0},placeholder:{type:String,reflectToAttribute:!0},readonly:{type:Boolean,value:!1,reflectToAttribute:!0},title:{type:String,reflectToAttribute:!0}}}static get delegateAttrs(){return[...super.delegateAttrs,"name","type","placeholder","readonly","invalid","title"]}constructor(){super(),this._boundOnPaste=this._onPaste.bind(this),this._boundOnDrop=this._onDrop.bind(this),this._boundOnBeforeInput=this._onBeforeInput.bind(this)}get slotStyles(){return[`
|
|
3412
3423
|
:is(input[slot='input'], textarea[slot='textarea'])::placeholder {
|
|
3413
3424
|
font: inherit;
|
|
3414
3425
|
color: inherit;
|
|
3415
3426
|
}
|
|
3416
|
-
`]}_onFocus(r){super._onFocus(r),this.autoselect&&this.inputElement&&this.inputElement.select()}_addInputListeners(r){super._addInputListeners(r),r.addEventListener("paste",this._boundOnPaste),r.addEventListener("drop",this._boundOnDrop),r.addEventListener("beforeinput",this._boundOnBeforeInput)}_removeInputListeners(r){super._removeInputListeners(r),r.removeEventListener("paste",this._boundOnPaste),r.removeEventListener("drop",this._boundOnDrop),r.removeEventListener("beforeinput",this._boundOnBeforeInput)}_onKeyDown(r){super._onKeyDown(r),this.allowedCharPattern&&!this.__shouldAcceptKey(r)&&r.target===this.inputElement&&(r.preventDefault(),this._markInputPrevented())}_markInputPrevented(){this.setAttribute("input-prevented",""),this._preventInputDebouncer=
|
|
3427
|
+
`]}_onFocus(r){super._onFocus(r),this.autoselect&&this.inputElement&&this.inputElement.select()}_onChange(r){r.stopPropagation(),this.validate(),this.dispatchEvent(new CustomEvent("change",{detail:{sourceEvent:r},bubbles:r.bubbles,cancelable:r.cancelable}))}_addInputListeners(r){super._addInputListeners(r),r.addEventListener("paste",this._boundOnPaste),r.addEventListener("drop",this._boundOnDrop),r.addEventListener("beforeinput",this._boundOnBeforeInput)}_removeInputListeners(r){super._removeInputListeners(r),r.removeEventListener("paste",this._boundOnPaste),r.removeEventListener("drop",this._boundOnDrop),r.removeEventListener("beforeinput",this._boundOnBeforeInput)}_onKeyDown(r){super._onKeyDown(r),this.allowedCharPattern&&!this.__shouldAcceptKey(r)&&r.target===this.inputElement&&(r.preventDefault(),this._markInputPrevented())}_markInputPrevented(){this.setAttribute("input-prevented",""),this._preventInputDebouncer=zr.debounce(this._preventInputDebouncer,Pn.after(200),()=>{this.removeAttribute("input-prevented")})}__shouldAcceptKey(r){return r.metaKey||r.ctrlKey||!r.key||r.key.length!==1||this.__allowedCharRegExp.test(r.key)}_onPaste(r){if(this.allowedCharPattern){const i=r.clipboardData.getData("text");this.__allowedTextRegExp.test(i)||(r.preventDefault(),this._markInputPrevented())}}_onDrop(r){if(this.allowedCharPattern){const i=r.dataTransfer.getData("text");this.__allowedTextRegExp.test(i)||(r.preventDefault(),this._markInputPrevented())}}_onBeforeInput(r){this.allowedCharPattern&&r.data&&!this.__allowedTextRegExp.test(r.data)&&(r.preventDefault(),this._markInputPrevented())}_allowedCharPatternChanged(r){if(r)try{this.__allowedCharRegExp=new RegExp(`^${r}$`,"u"),this.__allowedTextRegExp=new RegExp(`^${r}*$`,"u")}catch(i){console.error(i)}}};/**
|
|
3417
3428
|
* @license
|
|
3418
3429
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
3419
3430
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3420
|
-
*/class
|
|
3431
|
+
*/class qw extends or{constructor(t,r,i={}){const{uniqueIdPrefix:n}=i;super(t,"input","input",{initializer:(s,o)=>{o.value&&(s.value=o.value),o.type&&s.setAttribute("type",o.type),s.id=this.defaultId,typeof r=="function"&&r(s)},useUniqueId:!0,uniqueIdPrefix:n})}}/**
|
|
3421
3432
|
* @license
|
|
3422
3433
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
3423
3434
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3424
|
-
*/class
|
|
3435
|
+
*/class Zw{constructor(t,r){this.input=t,this.__preventDuplicateLabelClick=this.__preventDuplicateLabelClick.bind(this),r.addEventListener("slot-content-changed",i=>{this.__initLabel(i.detail.node)}),this.__initLabel(r.node)}__initLabel(t){t&&(t.addEventListener("click",this.__preventDuplicateLabelClick),this.input&&t.setAttribute("for",this.input.id))}__preventDuplicateLabelClick(){const t=r=>{r.stopImmediatePropagation(),this.input.removeEventListener("click",t)};this.input.addEventListener("click",t)}}/**
|
|
3425
3436
|
* @license
|
|
3426
3437
|
* Copyright (c) 2021 - 2024 Vaadin Ltd..
|
|
3427
3438
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3428
|
-
*/const
|
|
3439
|
+
*/const Kw=_e`
|
|
3429
3440
|
[part='clear-button'] {
|
|
3430
3441
|
display: none;
|
|
3431
3442
|
cursor: default;
|
|
@@ -3492,19 +3503,19 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
3492
3503
|
* @license
|
|
3493
3504
|
* Copyright (c) 2021 - 2024 Vaadin Ltd..
|
|
3494
3505
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3495
|
-
*/const
|
|
3506
|
+
*/const Qw=[Xw,Jw,Kw];/**
|
|
3496
3507
|
* @license
|
|
3497
3508
|
* Copyright (c) 2023 - 2024 Vaadin Ltd.
|
|
3498
3509
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3499
|
-
*/const
|
|
3510
|
+
*/const e2=e=>class extends e{static get properties(){return{overlayClass:{type:String},_overlayElement:{type:Object}}}static get observers(){return["__updateOverlayClassNames(overlayClass, _overlayElement)"]}__updateOverlayClassNames(r,i){if(!i||r===void 0)return;const{classList:n}=i;if(this.__initialClasses||(this.__initialClasses=new Set(n)),Array.isArray(this.__previousClasses)){const o=this.__previousClasses.filter(a=>!this.__initialClasses.has(a));o.length>0&&n.remove(...o)}const s=typeof r=="string"?r.split(" ").filter(Boolean):[];s.length>0&&n.add(...s),this.__previousClasses=s}};/**
|
|
3500
3511
|
* @license
|
|
3501
3512
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
3502
3513
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3503
|
-
*/class
|
|
3514
|
+
*/class t2{constructor(t){this.host=t,t.addEventListener("opened-changed",()=>{t.opened||this.__setVirtualKeyboardEnabled(!1)}),t.addEventListener("blur",()=>this.__setVirtualKeyboardEnabled(!0)),t.addEventListener("touchstart",()=>this.__setVirtualKeyboardEnabled(!0))}__setVirtualKeyboardEnabled(t){this.host.inputElement&&(this.host.inputElement.inputMode=t?"":"none")}}/**
|
|
3504
3515
|
* @license
|
|
3505
3516
|
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
3506
3517
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3507
|
-
*/const t2=Object.freeze({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 t=String(e.year).replace(/\d+/u,r=>"0000".substr(r.length)+r);return[e.month+1,e.day,t].join("/")},parseDate(e){const t=e.split("/"),r=new Date;let i,n=r.getMonth(),s=r.getFullYear();if(t.length===3){if(n=parseInt(t[0])-1,i=parseInt(t[1]),s=parseInt(t[2]),t[2].length<3&&s>=0){const o=this.referenceDate?si(this.referenceDate):new Date;s=tw(o,s,n,i)}}else t.length===2?(n=parseInt(t[0])-1,i=parseInt(t[1])):t.length===1&&(i=parseInt(t[0]));if(i!==void 0)return{day:i,month:n,year:s}},formatTitle:(e,t)=>`${e} ${t}`}),r2=e=>class extends Qw(qr($h(Xh(os(e))))){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:{type:Boolean,sync:!0},showWeekNumbers:{type:Boolean,value:!1,sync:!0},_fullscreen:{type:Boolean,value:!1,sync:!0},_fullscreenMediaQuery:{value:"(max-width: 450px), (max-height: 450px)"},i18n:{type:Object,sync:!0,value:()=>Vt({},t2)},min:{type:String,sync:!0},max:{type:String,sync:!0},isDateDisabled:{type:Function},_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:Ch},_focusOverlayOnOpen:Boolean,_overlayContent:{type:Object,sync:!0},__enteredDate:{type:Date,sync:!0}}}static get observers(){return["_selectedDateChanged(_selectedDate, i18n)","_focusedDateChanged(_focusedDate, i18n)","__updateOverlayContent(_overlayContent, i18n, label, _minDate, _maxDate, _focusedDate, _selectedDate, showWeekNumbers, isDateDisabled, __enteredDate)","__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(r){super._inputElementValue=r;const i=this.__parseDate(r);this.__setEnteredDate(i)}get clearElement(){return null}get _nativeInput(){return this.inputElement?this.inputElement.focusElement||this.inputElement:null}get __unparsableValue(){return!this._inputElementValue||this.__parseDate(this._inputElementValue)?"":this._inputElementValue}_onFocus(r){super._onFocus(r),this._noInput&&!va()&&r.target.blur()}_onBlur(r){super._onBlur(r),this.opened||(this.__commitParsedOrFocusedDate(),document.hasFocus()&&this._requestValidation())}ready(){super.ready(),this.addEventListener("click",this._boundOnClick),this.addController(new Wh(this._fullscreenMediaQuery,i=>{this._fullscreen=i})),this.addController(new e2(this));const r=this.$.overlay;this._overlayElement=r,r.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(r){if(r.firstChild)return;const i=document.createElement("vaadin-date-picker-overlay-content");r.appendChild(i),this._overlayContent=i,i.addEventListener("close",()=>{this._close()}),i.addEventListener("focus-input",this._focusAndSelect.bind(this)),i.addEventListener("date-tap",n=>{this.__commitDate(n.detail.date),this._close()}),i.addEventListener("date-selected",n=>{this.__commitDate(n.detail.date)}),i.addEventListener("focusin",()=>{this._keyboardActive&&this._setFocused(!0)}),i.addEventListener("focusout",n=>{this._shouldRemoveFocus(n)&&this._setFocused(!1)}),i.addEventListener("focused-date-changed",n=>{this._focusedDate=n.detail.value}),i.addEventListener("click",n=>n.stopPropagation())}__parseDate(r){if(!this.i18n.parseDate)return;let i=this.i18n.parseDate(r);if(i&&(i=si(`${i.year}-${i.month+1}-${i.day}`)),i&&!isNaN(i.getTime()))return i}__formatDate(r){if(this.i18n.formatDate)return this.i18n.formatDate(Sa(r))}checkValidity(){const r=this._inputElementValue,i=!r||!!this._selectedDate&&r===this.__formatDate(this._selectedDate),n=!this._selectedDate||Yr(this._selectedDate,this._minDate,this._maxDate,this.isDateDisabled);let s=!0;return this.inputElement&&this.inputElement.checkValidity&&(s=this.inputElement.checkValidity()),i&&n&&s}_shouldSetFocus(r){return!this._shouldKeepFocusRing}_shouldRemoveFocus(r){const{relatedTarget:i}=r;return this.opened&&i!==null&&i!==document.body&&!this.contains(i)&&!this._overlayContent.contains(i)?!0:!this.opened}_setFocused(r){super._setFocused(r),this._shouldKeepFocusRing=r&&this._keyboardActive}__commitValueChange(){const r=this.__unparsableValue;this.__committedValue!==this.value?(this._requestValidation(),this.dispatchEvent(new CustomEvent("change",{bubbles:!0}))):this.__committedUnparsableValue!==r&&(this._requestValidation(),this.dispatchEvent(new CustomEvent("unparsable-change"))),this.__committedValue=this.value,this.__committedUnparsableValue=r}__commitDate(r){this.__keepCommittedValue=!0,this._selectedDate=r,this.__keepCommittedValue=!1,this.__commitValueChange()}_close(){this._focus(),this.close()}__bringToFront(){requestAnimationFrame(()=>{this.$.overlay.bringToFront()})}_isNoInput(r,i,n,s,o,a){return!r||i&&(!a||o)||n&&o||!s.parseDate}_formatISO(r){return iw(r)}_inputElementChanged(r){super._inputElementChanged(r),r&&(r.autocomplete="off",r.setAttribute("role","combobox"),r.setAttribute("aria-haspopup","dialog"),r.setAttribute("aria-expanded",!!this.opened),this._applyInputValue(this._selectedDate))}_openedChanged(r){this.inputElement&&this.inputElement.setAttribute("aria-expanded",r)}_selectedDateChanged(r,i){r===void 0||i===void 0||(this.__keepInputValue||this._applyInputValue(r),this.value=this._formatISO(r),this._ignoreFocusedDateChange=!0,this._focusedDate=r,this._ignoreFocusedDateChange=!1)}_focusedDateChanged(r,i){r===void 0||i===void 0||!this._ignoreFocusedDateChange&&!this._noInput&&this._applyInputValue(r)}_valueChanged(r,i){const n=si(r);if(r&&!n){this.value=i;return}r?ot(this._selectedDate,n)||(this._selectedDate=n,i!==void 0&&this._requestValidation()):this._selectedDate=null,this.__keepCommittedValue||(this.__committedValue=this.value,this.__committedUnparsableValue=""),this._toggleHasValue(this._hasValue)}__updateOverlayContent(r,i,n,s,o,a,l,u,d,c){r&&(r.i18n=i,r.label=n,r.minDate=s,r.maxDate=o,r.focusedDate=a,r.selectedDate=l,r.showWeekNumbers=u,r.isDateDisabled=d,r.enteredDate=c)}__updateOverlayContentTheme(r,i){r&&(i?r.setAttribute("theme",i):r.removeAttribute("theme"))}__updateOverlayContentFullScreen(r,i){r&&r.toggleAttribute("fullscreen",i)}_onOverlayEscapePress(){this._focusedDate=this._selectedDate,this._closedByEscape=!0,this._close(),this._closedByEscape=!1}_onOverlayOpened(){const r=this._overlayContent;r.reset();const i=this._getInitialPosition();r.initialPosition=i;const n=r.focusedDate||i;r.scrollToDate(n),this._ignoreFocusedDateChange=!0,r.focusedDate=n,this._ignoreFocusedDateChange=!1,window.addEventListener("scroll",this._boundOnScroll,!0),this._focusOverlayOnOpen?(r.focusDateElement(),this._focusOverlayOnOpen=!1):this._focus();const s=this._nativeInput;this._noInput&&s&&(s.blur(),this._overlayContent.focusDateElement());const o=this._noInput?r:[s,r];this.__showOthers=xh(o)}_getInitialPosition(){const r=si(this.initialPosition),i=this._selectedDate||this._overlayContent.initialPosition||r||new Date;return r||Yr(i,this._minDate,this._maxDate,this.isDateDisabled)?i:this._minDate||this._maxDate?Fh(i,[this._minDate,this._maxDate]):new Date}__commitParsedOrFocusedDate(){if(this._ignoreFocusedDateChange=!0,this.i18n.parseDate){const r=this._inputElementValue||"",i=this.__parseDate(r);i?this.__commitDate(i):(this.__keepInputValue=!0,this.__commitDate(null),this.__keepInputValue=!1)}else this._focusedDate&&this.__commitDate(this._focusedDate);this._ignoreFocusedDateChange=!1}_onOverlayClosed(){this.__showOthers&&(this.__showOthers(),this.__showOthers=null),window.removeEventListener("scroll",this._boundOnScroll,!0),this._closedByEscape&&this._applyInputValue(this._selectedDate),this.__commitParsedOrFocusedDate(),this._nativeInput&&this._nativeInput.selectionStart&&(this._nativeInput.selectionStart=this._nativeInput.selectionEnd),!this.value&&!this._keyboardActive&&this._requestValidation()}_onScroll(r){(r.target===window||!this._overlayContent.contains(r.target))&&this._overlayContent._repositionYearScroller()}_focus(){this._noInput||this.inputElement.focus()}_focusAndSelect(){this._focus(),this._setSelectionRange(0,this._inputElementValue.length)}_applyInputValue(r){this._inputElementValue=r?this.__formatDate(r):""}_setSelectionRange(r,i){this._nativeInput&&this._nativeInput.setSelectionRange&&this._nativeInput.setSelectionRange(r,i)}_onChange(r){r.stopPropagation()}_onClick(r){this._isClearButton(r)||this._onHostClick(r)}_onHostClick(r){(!this.autoOpenDisabled||this._noInput)&&(r.preventDefault(),this.open())}_onClearButtonClick(r){r.preventDefault(),this.__commitDate(null)}_onKeyDown(r){switch(super._onKeyDown(r),this._noInput&&[9].indexOf(r.keyCode)===-1&&r.preventDefault(),r.key){case"ArrowDown":case"ArrowUp":r.preventDefault(),this.opened?this._overlayContent.focusDateElement():(this._focusOverlayOnOpen=!0,this.open());break;case"Tab":this.opened&&(r.preventDefault(),r.stopPropagation(),this._setSelectionRange(0,0),r.shiftKey?this._overlayContent.focusCancel():this._overlayContent.focusDateElement());break}}_onEnter(r){this.opened?this.close():this.__commitParsedOrFocusedDate()}_onEscape(r){if(!this.opened){if(this.clearButtonVisible&&this.value&&!this.readonly){r.stopPropagation(),this._onClearButtonClick(r);return}this.inputElement.value===""?this.__commitDate(null):this._applyInputValue(this._selectedDate)}}_isClearButton(r){return r.composedPath()[0]===this.clearElement}_onInput(){!this.opened&&this._inputElementValue&&!this.autoOpenDisabled&&this.open();const r=this.__parseDate(this._inputElementValue||"");r&&(this._ignoreFocusedDateChange=!0,ot(r,this._focusedDate)||(this._focusedDate=r),this._ignoreFocusedDateChange=!1),this.__setEnteredDate(r)}__setEnteredDate(r){r?ot(this.__enteredDate,r)||(this.__enteredDate=r):this.__enteredDate!=null&&(this.__enteredDate=null)}__computeMinOrMaxDate(r){return si(r)}};/**
|
|
3518
|
+
*/const r2=e=>class extends e2(qr(qh(Qh(ls(e))))){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: 450px), (max-height: 450px)"},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(r){const i=String(r.year).replace(/\d+/u,n=>"0000".substr(n.length)+n);return[r.month+1,r.day,i].join("/")},parseDate(r){const i=r.split("/"),n=new Date;let s,o=n.getMonth(),a=n.getFullYear();if(i.length===3){if(o=parseInt(i[0])-1,s=parseInt(i[1]),a=parseInt(i[2]),i[2].length<3&&a>=0){const l=this.referenceDate?ii(this.referenceDate):new Date;a=rw(l,a,o,s)}}else i.length===2?(o=parseInt(i[0])-1,s=parseInt(i[1])):i.length===1&&(s=parseInt(i[0]));if(s!==void 0)return{day:s,month:o,year:a}},formatTitle:(r,i)=>`${r} ${i}`})},min:{type:String,sync:!0},max:{type:String,sync:!0},isDateDisabled:{type:Function},_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:Sh},_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, isDateDisabled)","__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(r){super._inputElementValue=r,this._hasInputValue=!1}get clearElement(){return null}get _nativeInput(){return this.inputElement?this.inputElement.focusElement||this.inputElement:null}get __unparsableValue(){return!this._inputElementValue||this.__parseDate(this._inputElementValue)?"":this._inputElementValue}_onFocus(r){super._onFocus(r),this._noInput&&!Ca()&&r.target.blur()}_onBlur(r){super._onBlur(r),this.opened||(this.__commitParsedOrFocusedDate(),document.hasFocus()&&this.validate())}ready(){super.ready(),this.addEventListener("click",this._boundOnClick),this.addController(new jh(this._fullscreenMediaQuery,i=>{this._fullscreen=i})),this.addController(new t2(this));const r=this.$.overlay;this._overlayElement=r,r.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(r){if(r.firstChild)return;const i=document.createElement("vaadin-date-picker-overlay-content");r.appendChild(i),this._overlayContent=i,i.addEventListener("close",()=>{this._close()}),i.addEventListener("focus-input",this._focusAndSelect.bind(this)),i.addEventListener("date-tap",n=>{this.__commitDate(n.detail.date),this._close()}),i.addEventListener("date-selected",n=>{this.__commitDate(n.detail.date)}),i.addEventListener("focusin",()=>{this._keyboardActive&&this._setFocused(!0)}),i.addEventListener("focusout",n=>{this._shouldRemoveFocus(n)&&this._setFocused(!1)}),i.addEventListener("focused-date-changed",n=>{this._focusedDate=n.detail.value}),i.addEventListener("click",n=>n.stopPropagation())}__parseDate(r){if(!this.i18n.parseDate)return;let i=this.i18n.parseDate(r);if(i&&(i=ii(`${i.year}-${i.month+1}-${i.day}`)),i&&!isNaN(i.getTime()))return i}__formatDate(r){if(this.i18n.formatDate)return this.i18n.formatDate(Da(r))}checkValidity(){const r=this._inputElementValue,i=!r||!!this._selectedDate&&r===this.__formatDate(this._selectedDate),n=!this._selectedDate||Yr(this._selectedDate,this._minDate,this._maxDate,this.isDateDisabled);let s=!0;return this.inputElement&&(this.inputElement.checkValidity?s=this.inputElement.checkValidity():this.inputElement.validate&&(s=this.inputElement.validate())),i&&n&&s}_shouldSetFocus(r){return!this._shouldKeepFocusRing}_shouldRemoveFocus(r){const{relatedTarget:i}=r;return this.opened&&i!==null&&i!==document.body&&!this.contains(i)&&!this._overlayContent.contains(i)?!0:!this.opened}_setFocused(r){super._setFocused(r),this._shouldKeepFocusRing=r&&this._keyboardActive}__commitValueChange(){const r=this.__unparsableValue;this.__committedValue!==this.value?(this.validate(),this.dispatchEvent(new CustomEvent("change",{bubbles:!0}))):this.__committedUnparsableValue!==r&&(this.validate(),this.dispatchEvent(new CustomEvent("unparsable-change"))),this.__committedValue=this.value,this.__committedUnparsableValue=r}__commitDate(r){this.__keepCommittedValue=!0,this._selectedDate=r,this.__keepCommittedValue=!1,this.__commitValueChange()}_close(){this._focus(),this.close()}__bringToFront(){requestAnimationFrame(()=>{this.$.overlay.bringToFront()})}_isNoInput(r,i,n,s,o,a){return!r||i&&(!a||o)||n&&o||!s.parseDate}_formatISO(r){return nw(r)}_inputElementChanged(r){super._inputElementChanged(r),r&&(r.autocomplete="off",r.setAttribute("role","combobox"),r.setAttribute("aria-haspopup","dialog"),r.setAttribute("aria-expanded",!!this.opened),this._applyInputValue(this._selectedDate))}_openedChanged(r){this.inputElement&&this.inputElement.setAttribute("aria-expanded",r)}_selectedDateChanged(r,i){r===void 0||i===void 0||(this.__keepInputValue||this._applyInputValue(r),this.value=this._formatISO(r),this._ignoreFocusedDateChange=!0,this._focusedDate=r,this._ignoreFocusedDateChange=!1)}_focusedDateChanged(r,i){r===void 0||i===void 0||!this._ignoreFocusedDateChange&&!this._noInput&&this._applyInputValue(r)}_valueChanged(r,i){const n=ii(r);if(r&&!n){this.value=i;return}r?Nt(this._selectedDate,n)||(this._selectedDate=n,i!==void 0&&this.validate()):this._selectedDate=null,this.__keepCommittedValue||(this.__committedValue=this.value,this.__committedUnparsableValue=""),this._toggleHasValue(this._hasValue)}__updateOverlayContent(r,i,n,s,o,a,l,u,d){r&&(r.i18n=i,r.label=n,r.minDate=s,r.maxDate=o,r.focusedDate=a,r.selectedDate=l,r.showWeekNumbers=u,r.isDateDisabled=d)}__updateOverlayContentTheme(r,i){r&&(i?r.setAttribute("theme",i):r.removeAttribute("theme"))}__updateOverlayContentFullScreen(r,i){r&&r.toggleAttribute("fullscreen",i)}_onOverlayEscapePress(){this._focusedDate=this._selectedDate,this._closedByEscape=!0,this._close(),this._closedByEscape=!1}_onOverlayOpened(){const r=this._overlayContent;r.reset();const i=this._getInitialPosition();r.initialPosition=i;const n=r.focusedDate||i;r.scrollToDate(n),this._ignoreFocusedDateChange=!0,r.focusedDate=n,this._ignoreFocusedDateChange=!1,window.addEventListener("scroll",this._boundOnScroll,!0),this._focusOverlayOnOpen?(r.focusDateElement(),this._focusOverlayOnOpen=!1):this._focus();const s=this._nativeInput;this._noInput&&s&&(s.blur(),this._overlayContent.focusDateElement());const o=this._noInput?r:[s,r];this.__showOthers=kh(o)}_getInitialPosition(){const r=ii(this.initialPosition),i=this._selectedDate||this._overlayContent.initialPosition||r||new Date;return r||Yr(i,this._minDate,this._maxDate,this.isDateDisabled)?i:this._minDate||this._maxDate?zh(i,[this._minDate,this._maxDate]):new Date}__commitParsedOrFocusedDate(){if(this._ignoreFocusedDateChange=!0,this.i18n.parseDate){const r=this._inputElementValue||"",i=this.__parseDate(r);i?this.__commitDate(i):(this.__keepInputValue=!0,this.__commitDate(null),this.__keepInputValue=!1)}else this._focusedDate&&this.__commitDate(this._focusedDate);this._ignoreFocusedDateChange=!1}_onOverlayClosed(){this.__showOthers&&(this.__showOthers(),this.__showOthers=null),window.removeEventListener("scroll",this._boundOnScroll,!0),this._closedByEscape&&this._applyInputValue(this._selectedDate),this.__commitParsedOrFocusedDate(),this._nativeInput&&this._nativeInput.selectionStart&&(this._nativeInput.selectionStart=this._nativeInput.selectionEnd),!this.value&&!this._keyboardActive&&this.validate()}_onScroll(r){(r.target===window||!this._overlayContent.contains(r.target))&&this._overlayContent._repositionYearScroller()}_focus(){this._noInput||this.inputElement.focus()}_focusAndSelect(){this._focus(),this._setSelectionRange(0,this._inputElementValue.length)}_applyInputValue(r){this._inputElementValue=r?this.__formatDate(r):""}_setSelectionRange(r,i){this._nativeInput&&this._nativeInput.setSelectionRange&&this._nativeInput.setSelectionRange(r,i)}_onChange(r){r.stopPropagation()}_onClick(r){this._isClearButton(r)||this._onHostClick(r)}_onHostClick(r){(!this.autoOpenDisabled||this._noInput)&&(r.preventDefault(),this.open())}_onClearButtonClick(r){r.preventDefault(),this.__commitDate(null)}_onKeyDown(r){switch(super._onKeyDown(r),this._noInput&&[9].indexOf(r.keyCode)===-1&&r.preventDefault(),r.key){case"ArrowDown":case"ArrowUp":r.preventDefault(),this.opened?this._overlayContent.focusDateElement():(this._focusOverlayOnOpen=!0,this.open());break;case"Tab":this.opened&&(r.preventDefault(),r.stopPropagation(),this._setSelectionRange(0,0),r.shiftKey?this._overlayContent.focusCancel():this._overlayContent.focusDateElement());break}}_onEnter(r){this.opened?this.close():this.__commitParsedOrFocusedDate()}_onEscape(r){if(!this.opened){if(this.clearButtonVisible&&this.value&&!this.readonly){r.stopPropagation(),this._onClearButtonClick(r);return}this.inputElement.value===""?this.__commitDate(null):this._applyInputValue(this._selectedDate)}}_isClearButton(r){return r.composedPath()[0]===this.clearElement}_onInput(){if(!this.opened&&this._inputElementValue&&!this.autoOpenDisabled&&this.open(),this._inputElementValue){const r=this.__parseDate(this._inputElementValue);r&&(this._ignoreFocusedDateChange=!0,Nt(r,this._focusedDate)||(this._focusedDate=r),this._ignoreFocusedDateChange=!1)}}__computeMinOrMaxDate(r){return ii(r)}};/**
|
|
3508
3519
|
* @license
|
|
3509
3520
|
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
3510
3521
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
@@ -3525,7 +3536,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
3525
3536
|
* @license
|
|
3526
3537
|
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
3527
3538
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3528
|
-
*/Fe("vaadin-date-picker",[
|
|
3539
|
+
*/Fe("vaadin-date-picker",[Qw,i2],{moduleId:"vaadin-date-picker-styles"});class n2 extends r2(jw(fr(Mh(Jt)))){static get is(){return"vaadin-date-picker"}static get template(){return mr`
|
|
3529
3540
|
<div class="vaadin-date-picker-container">
|
|
3530
3541
|
<div part="label">
|
|
3531
3542
|
<slot name="label"></slot>
|
|
@@ -3567,9 +3578,9 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
3567
3578
|
></vaadin-date-picker-overlay>
|
|
3568
3579
|
|
|
3569
3580
|
<slot name="tooltip"></slot>
|
|
3570
|
-
`}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new jw(this,r=>{this._setInputElement(r),this._setFocusElement(r),this.stateTarget=r,this.ariaTarget=r},{uniqueIdPrefix:"search-input"})),this.addController(new qw(this.inputElement,this._labelController)),this._tooltipController=new Ph(this),this.addController(this._tooltipController),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this._tooltipController.setShouldShow(r=>!r.opened),this.shadowRoot.querySelector('[part="toggle-button"]').addEventListener("mousedown",r=>r.preventDefault()),this.$.overlay.addEventListener("vaadin-overlay-close",this._onVaadinOverlayClose.bind(this))}_onVaadinOverlayClose(t){t.detail.sourceEvent&&t.detail.sourceEvent.composedPath().includes(this)&&t.preventDefault()}_toggle(t){t.stopPropagation(),this.$.overlay.opened?this.close():this.open()}_openedChanged(t){super._openedChanged(t),this.$.overlay.positionTarget=this.shadowRoot.querySelector('[part="input-field"]'),this.$.overlay.noVerticalOverlap=!0}}Ct(n2);function s2(e){Mn(e,"svelte-dy0ryb",":host{font-family:inherit}.CircularProgress{height:100%;position:relative;width:100%}.CircularProgressLineBg{stroke:var(--emw--bonus-progress-primary, var(--emw--color-gray-100, #D9D9D9))}.CircularProgressLine{stroke:var(--emw--bonus-progress-primary, var(--emw--color-primary, #00AEEF));transition:0.35s stroke-dashoffset;transform:rotate(-90deg);transform-origin:50% 50%;fill:transparent}.CircularProgressLine.Completed{stroke:var(--emw--bonus-progress-bg, var(--emw--color-gray-300, #A9A9A9))}.CircularProgressCenter{fill:var(--emw--bonus-progress-primary, var(--emw--color-primary, #00AEEF))}.CircularProgressCenter.Completed{fill:var(--emw--bonus-progress-bg, var(--emw--color-gray-100, #D9D9D9))}.CircularProgressText{left:50%;position:absolute;top:50%;transform:translate(-50%, -50%);color:var(--emw--bonus-progress-text, var(--emw--color-white, #FFFFFF))}")}function o2(e){let t,r,i;return{c(){t=C("span"),r=O(e[0]),i=O(" %"),m(t,"class","CircularProgressText"),m(t,"part","CircularProgressText")},m(n,s){B(n,t,s),p(t,r),p(t,i)},p(n,s){s&1&&Ce(r,n[0])},d(n){n&&P(t)}}}function a2(e){let t,r,i,n,s,o,a,l,u;const d=e[10].default,c=Di(d,e,e[9],null),h=c||o2(e);return{c(){t=C("div"),r=ee("svg"),i=ee("circle"),n=ee("circle"),o=ee("circle"),a=W(),l=C("div"),h&&h.c(),m(i,"class","CircularProgressLineBg"),m(i,"cx","73.5"),m(i,"cy","73.5"),m(i,"r","64.5"),m(i,"fill","transparent"),m(i,"stroke-width","18"),m(n,"class","CircularProgressLine"),m(n,"cx","73.5"),m(n,"cy","73.5"),m(n,"r","64.5"),m(n,"stroke-width","18"),m(n,"stroke-dasharray",e[5]),m(n,"stroke-dashoffset",s=e[4]()),le(n,"Completed",e[1]==="completed"),m(o,"class","CircularProgressCenter"),m(o,"cx","73"),m(o,"cy","73.5"),m(o,"r","50.5"),le(o,"Completed",e[1]==="completed"),m(r,"viewBox","0 0 147 147"),m(t,"class","CircularProgress"),m(t,"part","CircularProgress")},m(f,b){B(f,t,b),p(t,r),p(r,i),p(r,n),e[11](n),p(r,o),p(t,a),p(t,l),h&&h.m(l,null),e[12](t),u=!0},p(f,[b]){(!u||b&16&&s!==(s=f[4]()))&&m(n,"stroke-dashoffset",s),(!u||b&2)&&le(n,"Completed",f[1]==="completed"),(!u||b&2)&&le(o,"Completed",f[1]==="completed"),c?c.p&&(!u||b&512)&&Mi(c,d,f,f[9],u?Pi(d,f[9],b,null):Oi(f[9]),null):h&&h.p&&(!u||b&1)&&h.p(f,u?b:-1)},i(f){u||(ht(h,f),u=!0)},o(f){Nt(h,f),u=!1},d(f){f&&P(t),e[11](null),h&&h.d(f),e[12](null)}}}let Zl=64.5;function l2(e,t,r){let i,{$$slots:n={},$$scope:s}=t,{value:o=0}=t,{status:a=""}=t,{mbsource:l}=t,{clientstyling:u=""}=t,{clientstylingurl:d=""}=t,c,h=Math.PI*(Zl*2),f;On(()=>()=>{});function b(v){Pt[v?"unshift":"push"](()=>{c=v,r(3,c)})}function g(v){Pt[v?"unshift":"push"](()=>{f=v,r(2,f)})}return e.$$set=v=>{"value"in v&&r(0,o=v.value),"status"in v&&r(1,a=v.status),"mbsource"in v&&r(6,l=v.mbsource),"clientstyling"in v&&r(7,u=v.clientstyling),"clientstylingurl"in v&&r(8,d=v.clientstylingurl),"$$scope"in v&&r(9,s=v.$$scope)},e.$$.update=()=>{e.$$.dirty&132&&u&&f&&zn(f,u),e.$$.dirty&260&&d&&f&&Un(f,d),e.$$.dirty&68&&l&&f&&Vn(f,`${l}.Style`),e.$$.dirty&1&&r(4,i=()=>{var v=Math.PI*(Zl*2);return o<0&&r(0,o=0),o>100&&r(0,o=100),(100-o)/100*v})},[o,a,f,c,i,h,l,u,d,s,n,b,g]}class u2 extends In{constructor(t){super(),Bn(this,t,l2,a2,Ti,{value:0,status:1,mbsource:6,clientstyling:7,clientstylingurl:8},s2)}get value(){return this.$$.ctx[0]}set value(t){this.$$set({value:t}),me()}get status(){return this.$$.ctx[1]}set status(t){this.$$set({status:t}),me()}get mbsource(){return this.$$.ctx[6]}set mbsource(t){this.$$set({mbsource:t}),me()}get clientstyling(){return this.$$.ctx[7]}set clientstyling(t){this.$$set({clientstyling:t}),me()}get clientstylingurl(){return this.$$.ctx[8]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),me()}}customElements.define("casino-bonus-progress",Nn(u2,{value:{},status:{},mbsource:{},clientstyling:{},clientstylingurl:{}},["default"],[],!0));const Xl=e=>d2[e],d2={AED:"د.إ",AFN:"؋",ALL:"L",AMD:"֏",ANG:"ƒ",AOA:"Kz",ARS:"$",AUD:"$",AWG:"ƒ",AZN:"ман",BAM:"KM",BBD:"$",BDT:"৳",BGN:"лв",BHD:".د.ب",BIF:"FBu",BMD:"$",BND:"$",BOB:"$b",BRL:"R$",BSD:"$",BTC:"฿",BTN:"Nu.",BWP:"P",BYR:"p.",BZD:"BZ$",CAD:"$",CDF:"FC",CHF:"CHF",CLP:"$",CNY:"¥",COP:"$",CRC:"₡",CUC:"$",CUP:"₱",CVE:"$",CZK:"Kč",DJF:"Fdj",DKK:"kr",DOP:"RD$",DZD:"دج",EEK:"kr",EGP:"£",ERN:"Nfk",ETB:"Br",ETH:"Ξ",EUR:"€",FJD:"$",FKP:"£",GBP:"£",GEL:"₾",GGP:"£",GHC:"₵",GHS:"GH₵",GIP:"£",GMD:"D",GNF:"FG",GTQ:"Q",GYD:"$",HKD:"$",HNL:"L",HRK:"kn",HTG:"G",HUF:"Ft",IDR:"Rp",ILS:"₪",IMP:"£",INR:"₹",IQD:"ع.د",IRR:"﷼",ISK:"kr",JEP:"£",JMD:"J$",JOD:"JD",JPY:"¥",KES:"KSh",KGS:"лв",KHR:"៛",KMF:"CF",KPW:"₩",KRW:"₩",KWD:"KD",KYD:"$",KZT:"лв",LAK:"₭",LBP:"£",LKR:"₨",LRD:"$",LSL:"M",LTC:"Ł",LTL:"Lt",LVL:"Ls",LYD:"LD",MAD:"MAD",MDL:"lei",MGA:"Ar",MKD:"ден",MMK:"K",MNT:"₮",MOP:"MOP$",MRO:"UM",MUR:"₨",MVR:"Rf",MWK:"MK",MXN:"$",MYR:"RM",MZN:"MT",NAD:"$",NGN:"₦",NIO:"C$",NOK:"kr",NPR:"₨",NZD:"$",OMR:"﷼",PAB:"B/.",PEN:"S/.",PGK:"K",PHP:"₱",PKR:"₨",PLN:"zł",PYG:"Gs",QAR:"﷼",RMB:"¥",RON:"lei",RSD:"Дин.",RUB:"₽",RWF:"R₣",SAR:"﷼",SBD:"$",SCR:"₨",SDG:"ج.س.",SEK:"kr",SGD:"$",SHP:"£",SLL:"Le",SOS:"S",SRD:"$",SSP:"£",STD:"Db",SVC:"$",SYP:"£",SZL:"E",THB:"฿",TJS:"SM",TMT:"T",TND:"د.ت",TOP:"T$",TRL:"₤",TRY:"₺",TTD:"TT$",TVD:"$",TWD:"NT$",TZS:"TSh",UAH:"₴",UGX:"USh",USD:"$",UYU:"$U",UZS:"лв",VEF:"Bs",VND:"₫",VUV:"VT",WST:"WS$",XAF:"FCFA",XBT:"Ƀ",XCD:"$",XOF:"CFA",XPF:"₣",YER:"﷼",ZAR:"R",ZWD:"Z$"};function c2(e){Mn(e,"svelte-eovzfn",":host{font-family:inherit}.BonusCard{background-color:#F4F4F4;padding:10px 20px 20px;border-radius:5px;font-size:18px;font-weight:500;color:var(--emw--bonus-card-text, var(--emw--color-gray-300, #6D6D6D))}.BonusCardHeader{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #D1D1D1}.BonusCardHeader:nth-child(even){background-color:var(--emw--bonus-card-bg, var(--emw--color-gray-50, #F9F8F8))}.BonusCardRow{display:flex;padding:11px 0;margin:0;align-items:center}.BonusCardLabel{flex:3}.BonusCardRowTitle{color:var(--emw--bonus-card-black, var(--emw--color-black, #000000));font-weight:700;font-size:18px;display:flex;align-items:center;text-indent:10px}.BonusCardRowTitle span{font-weight:400;color:var(--emw--bonus-card-span, var(--emw--color-primary, #00AEEF))}.BonusCardTitleSub{display:flex;font-size:16px;text-indent:10px;align-items:center;font-weight:400}.BonusCardRowText{flex:2;color:#9C9C9C;text-transform:capitalize}.BonusCardRowText.BonusCardStatus{font-weight:700;color:var(--emw--bonus-card-title, var(--emw--color-black, #000000))}.BonusCardRowText.StatusActive{color:var(--emw--bonus-card-green, var(--emw--color-green, #53B65A))}.BonusCardRowText.Type{color:var(--emw--bonus-card-black, var(--emw--color-black, #000000))}.BonusCardRowText.StatusExpired{color:var(--emw--bonus-card-red, var(--emw--color-red, #FD2839))}.BonusCardRowText.StatusCompleted{color:var(--emw--bonus-card-yellow, var(--emw--color-yellow, #F39C12))}.BonusCardRowText.TextCapitalize{text-transform:capitalize}.BonusCardRowText .BonusAmount{color:var(--emw--bonus-card-black, var(--emw--color-black, #000000))}.BonusCardRowText .Amount{color:var(--emw--bonus-card-green, var(--emw--color-green, #53B65A))}.BonusCardAction{margin:20px 0 0;padding:10px 5px 0 0;display:flex;justify-content:end}.BonusCardAdditional,.BonusCardTerms{border:1px solid var(--emw--bonus-card-border, var(--emw--color-gray-100, #E6E6E6));background:var(--emw--bonus-card-white, var(--emw--color-white, #FFFFFF));color:var(--emw--bonus-card-black, var(--emw--color-black, #000000));padding:12px;border-radius:4px;position:relative;margin-top:10px;font-size:16px;transition:height 0.3s ease;will-change:height}.BonusCardAdditional.active,.BonusCardTerms.active{transition:height 0.3s ease}.BonusCardAdditionalTitle,.BonusCardTermsTitle{display:flex;align-items:center;text-indent:10px}.BonusCardAdditionalButton{font-weight:700;font-size:30px;position:absolute;top:0;right:10px;cursor:pointer}.BonusCardTermsButton{font-weight:700;font-size:30px;position:absolute;top:0;right:10px;cursor:pointer}.BonusCardTermsLink{display:flex;align-items:center;color:#000;text-indent:10px;cursor:pointer}.BonusCardJoinError{color:var(--emw--bonus-card-red, var(--emw--color-red, #FF0000));align-self:center}.BonusCardJoinCountdown{display:flex;align-items:center;text-indent:10px;font-size:16px;font-weight:400}.BonusCardJoinWrapper{display:flex;gap:30px}.BonusJoinButton{background:var(--emw--bonus-card-green, var(--emw--color-green, #53B65A));outline:5px solid var(--emw--bonus-card-green, var(--emw--color-green, rgba(83, 182, 90, 0.3)));border-radius:9px;border:0;width:180px;height:38px;font-size:18px;font-weight:400;text-align:center;transition-duration:0.5s;box-sizing:border-box;cursor:pointer;color:var(--emw--bonus-card-white, var(--emw--color-white, #FFFFFF))}.BonusJoinButton[disabled]{opacity:0.3;cursor:not-allowed}.BonusJoinButton.ClaimBonusButtonMobile{width:100%}.BonusJoinButton:hover{background:var(--emw--bonus-card-green, var(--emw--color-green, #25982D));outline:0}.BonusJoinButton:active{background:var(--emw--bonus-card-green, var(--emw--color-green, #25982D));outline-color:rgba(83, 182, 90, 0.6)}.BonusForfeitButton{background:var(--emw--bonus-card-red, var(--emw--color-red, #F32013));outline:5px solid var(--emw--bonus-card-red, var(--emw--color-red, rgba(243, 32, 19, 0.3)));border-radius:9px;border:0;width:180px;height:38px;font-size:18px;font-weight:400;text-align:center;transition-duration:0.5s;box-sizing:border-box;cursor:pointer;color:var(--emw--color-white, #FFFFFF)}.BonusForfeitButton[disabled]{opacity:0.3;cursor:not-allowed}.BonusForfeitButton.ClaimBonusButtonMobile{width:100%}.BonusForfeitButton:hover{background:var(--emw--bonus-card-red, var(--emw--color-red, #C70C00));outline:0}.BonusForfeitButton:active{background:var(--emw--bonus-card-red, var(--emw--color-red, #C70C00));outline-color:var(--emw--bonus-card-red, var(--emw--color-red, rgba(243, 32, 19, 0.6)))}.BonusCardActionCountdown{margin-bottom:5px}.BonusCardData{display:flex}.BonusCardDataContent{flex:3;height:260px}.BonusCardFooter{height:100px}.BonusCardFooter.Active{height:auto}.BonusCardProgress{flex:1;max-width:147px;--progress-track-color:var(--emw--bonus-card-blue,var(--emw--color-blue, #00AEEF))}.BonusCardProgress .CircularProgress{display:flex;margin:15px;position:relative}.BonusCardProgress .CircularProgressText{text-align:center}.BonusActionWagering{display:flex;height:100px}.BonusWageringInfo{flex:60%}.BonusWageringButton{flex:40%}.TitleIcon{display:flex;max-width:83px;min-width:43px;height:41px}.CasinoIcon,.SportsIcon{fill:none}.BonusGamesSlider{display:flex}.SliderNavButton{border:0px;width:25px;display:flex;align-items:center;justify-content:center}.SliderNavButton svg{width:20px}.SliderNavButton.Hide{display:none}.Main{max-width:300px;overflow:hidden}.Games{display:flex;transition:transform 0.4s ease-in-out;transform:translateX(0px)}.Game{min-width:100px;height:75px;margin:0;color:var(--emw--bonus-card-white, var(--emw--color-white, #FFFFFF));display:flex;justify-content:center;align-items:center;font-weight:bold;font-size:10rem;user-select:none;overflow:hidden}.PlayNowButton{position:absolute;background:var(--emw--bonus-card-green, var(--emw--color-green, #48952a));display:block;box-sizing:border-box;padding:0.8rem 0.5rem;color:var(--emw--bonus-card-white, var(--emw--color-white, #FFFFFF));text-transform:uppercase;text-align:center;font-weight:600;font-size:0.7rem;cursor:pointer;transition:opacity 0.4s linear;opacity:0;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.ItemHover{opacity:1}@media only screen and (max-width: 728px){.BonusCard{font-size:12px}.BonusCardRowTitle{font-size:14px}.BonusCardTitleSub{font-size:12px}.BonusCardAction,.BonusCardActionContent,.BonusForfeitButton,.BonusJoinButton{width:100%}.BonusCardAction{margin-top:10px}.TitleIcon{max-width:60px;min-width:30px;height:30px}.BonusCardAdditional,.BonusCardTerms{font-size:14px}.BonusCardProgress .CircularProgress{margin:10px 0}.BonusCardFooter{height:auto}.BonusCardDataContent{height:auto}.BonusCardJoinWrapper{flex-direction:column;gap:15px}.BonusCardJoinCountdown{font-size:12px}}")}function Jl(e,t,r){const i=e.slice();return i[76]=t[r],i[78]=r,i}function Kl(e,t,r){const i=e.slice();return i[79]=t[r],i}function Ql(e,t,r){const i=e.slice();return i[70]=t[r],i}function eu(e,t,r){const i=e.slice();return i[73]=t[r],i}function tu(e,t,r){const i=e.slice();return i[82]=t[r],i[84]=r,i}function ru(e){var ce;let t,r,i,n,s,o=e[32](e[4]).indexOf("Casino")>-1,a,l=e[32](e[4]).indexOf("Sports")>-1,u,d=(e[4].name||((ce=e[4].presentation)==null?void 0:ce.name.content))+"",c,h,f,b,g,v,y,_=o&&iu(e),E=l&&nu(e),w=[e[35]("TitleIcon")],N={};for(let M=0;M<w.length;M+=1)N=T(N,w[M]);let x=[e[35]("BonusCardRowTitle")],I={};for(let M=0;M<x.length;M+=1)I=T(I,x[M]);function Z(M,z){if(M[0]==="active")return f2;if(M[0]==="completed")return h2}let J=Z(e),H=J&&J(e),D=[e[35]("BonusCardHeader")],Y={};for(let M=0;M<D.length;M+=1)Y=T(Y,D[M]);let re=p2(e),Q=e[9]&&_u(e);function L(M,z){return M[13]?L2:I2}let $=L(e),U=$(e),V=[e[35]("BonusCardFooter")],oe={};for(let M=0;M<V.length;M+=1)oe=T(oe,V[M]);let xe=[e[35]("BonusCardInfo")],Oe={};for(let M=0;M<xe.length;M+=1)Oe=T(Oe,xe[M]);let ie=e[8]&&Eu(e),we=[e[35]("BonusCard")],ae={};for(let M=0;M<we.length;M+=1)ae=T(ae,we[M]);return{c(){t=C("div"),r=C("div"),i=C("div"),n=C("p"),s=C("span"),_&&_.c(),a=W(),E&&E.c(),u=W(),c=O(d),h=W(),H&&H.c(),f=W(),re&&re.c(),b=W(),g=C("div"),Q&&Q.c(),v=W(),U.c(),y=W(),ie&&ie.c(),k(s,N),k(n,I),k(i,Y),k(g,oe),le(g,"Active",e[10]||e[11]),k(r,Oe),k(t,ae)},m(M,z){B(M,t,z),p(t,r),p(r,i),p(i,n),p(n,s),_&&_.m(s,null),p(s,a),E&&E.m(s,null),p(n,u),p(n,c),p(i,h),H&&H.m(i,null),p(r,f),re&&re.m(r,null),p(r,b),p(r,g),Q&&Q.m(g,null),p(g,v),U.m(g,null),p(t,y),ie&&ie.m(t,null),e[53](t)},p(M,z){var A;z[0]&16&&(o=M[32](M[4]).indexOf("Casino")>-1),o?_?_.p(M,z):(_=iu(M),_.c(),_.m(s,a)):_&&(_.d(1),_=null),z[0]&16&&(l=M[32](M[4]).indexOf("Sports")>-1),l?E?E.p(M,z):(E=nu(M),E.c(),E.m(s,null)):E&&(E.d(1),E=null),z[0]&16&&d!==(d=(M[4].name||((A=M[4].presentation)==null?void 0:A.name.content))+"")&&ne(c,d,I.contenteditable),J===(J=Z(M))&&H?H.p(M,z):(H&&H.d(1),H=J&&J(M),H&&(H.c(),H.m(i,null))),re.p(M,z),M[9]?Q?Q.p(M,z):(Q=_u(M),Q.c(),Q.m(g,v)):Q&&(Q.d(1),Q=null),$===($=L(M))&&U?U.p(M,z):(U.d(1),U=$(M),U&&(U.c(),U.m(g,null))),z[0]&3072&&le(g,"Active",M[10]||M[11]),M[8]?ie?ie.p(M,z):(ie=Eu(M),ie.c(),ie.m(t,null)):ie&&(ie.d(1),ie=null)},d(M){M&&P(t),_&&_.d(),E&&E.d(),H&&H.d(),re&&re.d(),Q&&Q.d(),U.d(),ie&&ie.d(),e[53](null)}}}function iu(e){let t,r,i,n,s,o,a,l,u,d,c,h,f,b=[e[35]("CasinoIcon"),{viewBox:"0 0 41 41"}],g={};for(let v=0;v<b.length;v+=1)g=T(g,b[v]);return{c(){t=ee("svg"),r=ee("path"),i=ee("path"),n=ee("path"),s=ee("path"),o=ee("path"),a=ee("path"),l=ee("path"),u=ee("path"),d=ee("path"),c=ee("path"),h=ee("circle"),f=ee("circle"),m(r,"d","M21.2942 0V5.23421C24.916 5.42484 28.1964 6.86246 30.7301 9.14994L34.4393 5.44072C30.9525 2.22394 26.3616 0.190624 21.2942 0Z"),m(r,"fill","black"),m(i,"d","M30.7301 31.8501C28.2043 34.1296 24.916 35.5752 21.2942 35.7658V41C26.3616 40.8094 30.9525 38.7761 34.4313 35.5593L30.7221 31.8501H30.7301Z"),m(i,"fill","black"),m(n,"d","M35.7658 21.2943C35.5752 24.9162 34.1376 28.1965 31.8501 30.7302L35.5593 34.4394C38.7761 30.9605 40.8094 26.3697 41 21.3023H35.7658V21.2943Z"),m(n,"fill","black"),m(s,"d","M19.7056 35.7658C16.0838 35.5752 12.8035 34.1376 10.2698 31.8501L6.56055 35.5593C10.0394 38.7761 14.6382 40.8094 19.6977 41V35.7658H19.7056Z"),m(s,"fill","black"),m(o,"d","M31.8501 10.2698C34.1296 12.7955 35.5752 16.0838 35.7658 19.7056H41C40.8094 14.6382 38.7761 10.0474 35.5593 6.56848L31.8501 10.2777V10.2698Z"),m(o,"fill","black"),m(a,"d","M19.7058 0C14.6383 0.190624 10.0395 2.22394 6.5686 5.44072L10.2778 9.14994C12.8036 6.8704 16.0918 5.42484 19.7137 5.23421V0H19.7058Z"),m(a,"fill","black"),m(l,"d","M9.14994 30.7302C6.8704 28.2044 5.42484 24.9162 5.23421 21.2943H0C0.190624 26.3617 2.22394 30.9526 5.44072 34.4315L9.14994 30.7222V30.7302Z"),m(l,"fill","black"),m(u,"d","M5.23421 19.7058C5.42484 16.0839 6.86246 12.8036 9.14994 10.2699L5.44072 6.56067C2.22394 10.0475 0.190624 14.6384 0 19.7058H5.23421Z"),m(u,"fill","black"),m(d,"fill-rule","evenodd"),m(d,"clip-rule","evenodd"),m(d,"d","M20.5 31.825C26.7547 31.825 31.825 26.7547 31.825 20.5C31.825 14.2454 26.7547 9.17505 20.5 9.17505C14.2454 9.17505 9.17505 14.2454 9.17505 20.5C9.17505 26.7547 14.2454 31.825 20.5 31.825ZM20.5 33.825C27.8592 33.825 33.825 27.8592 33.825 20.5C33.825 13.1409 27.8592 7.17505 20.5 7.17505C13.1409 7.17505 7.17505 13.1409 7.17505 20.5C7.17505 27.8592 13.1409 33.825 20.5 33.825Z"),m(d,"fill","black"),m(c,"d","M21.6173 27.6413V28.7H19.3741V27.6413C17.3997 27.3092 16.3999 26.0428 16.3999 24.0707V23.0742H18.996V24.216C18.996 25.254 19.5421 25.6276 20.4159 25.6276C21.2897 25.6276 21.8358 25.254 21.8358 24.216C21.8442 21.2266 16.4755 21.0813 16.4755 16.9294C16.4755 14.978 17.4501 13.7325 19.3741 13.3795V12.3H21.6173V13.3795C23.5665 13.7117 24.5663 14.9573 24.5663 16.9294V17.3861H21.9702V16.7841C21.9702 15.7461 21.4745 15.3517 20.6007 15.3517C19.727 15.3517 19.2313 15.7461 19.2313 16.7841C19.2313 19.7735 24.5999 19.9188 24.5999 24.0707C24.5999 26.0428 23.5749 27.3092 21.6257 27.6413H21.6173Z"),m(c,"fill","black"),m(h,"cx","28.1874"),m(h,"cy","21.0125"),m(h,"r","1.5375"),m(h,"fill","black"),m(f,"cx","12.8124"),m(f,"cy","21.0125"),m(f,"r","1.5375"),m(f,"fill","black"),Qu(t,g)},m(v,y){B(v,t,y),p(t,r),p(t,i),p(t,n),p(t,s),p(t,o),p(t,a),p(t,l),p(t,u),p(t,d),p(t,c),p(t,h),p(t,f)},p:Se,d(v){v&&P(t)}}}function nu(e){let t,r,i,n,s,o,a=[e[35]("SportsIcon"),{viewBox:"0 0 43 40"}],l={};for(let u=0;u<a.length;u+=1)l=T(l,a[u]);return{c(){t=ee("svg"),r=ee("path"),i=ee("path"),n=ee("path"),s=ee("path"),o=ee("path"),m(r,"d","M23 0C11.9555 0 3 8.95539 3 20C3 31.0446 11.9555 40 23 40C34.0454 40 43 31.0444 43 20C43 8.95558 34.0452 0 23 0ZM26.9568 37.9018C25.6574 38.1573 24.0408 38.3044 22.7261 38.3297C21.4806 38.3119 20.2402 38.1672 19.0241 37.8977C18.8058 37.8415 18.5877 37.7846 18.3698 37.7268L16.022 31.435L17.911 27.6923H28.0892L28.144 27.7958L30.0037 31.5315L27.7327 37.7125C27.4755 37.7813 27.2168 37.8444 26.9568 37.9018ZM16.6133 2.81538L22.1346 6.59385V12.1849L15.308 17.9606L10.5577 15.7962L10.157 15.6136L8.00971 9.45788C10.126 6.4575 13.1191 4.11827 16.6133 2.81538ZM37.9581 9.42952L35.8012 15.6298L30.6096 17.9748L23.7692 12.1849V6.59385L29.3073 2.80394C32.8037 4.10039 35.8366 6.43394 37.9581 9.42952ZM4.74462 21.6744L9.91346 17.2015L14.6768 19.3745L14.7306 19.399L16.6265 26.8305L14.6618 30.5352L7.94452 30.4472C6.18029 27.9126 5.03933 24.9139 4.74462 21.6744ZM31.3384 30.5351L29.3736 26.8304L31.2728 19.3865L36.0802 17.1961L41.2554 21.6744C40.9607 24.9139 39.8196 27.9126 38.0557 30.4471L31.3384 30.5351Z"),m(r,"fill","black"),m(i,"fill-rule","evenodd"),m(i,"clip-rule","evenodd"),m(i,"d","M23 39C23 39.5523 22.5523 40 22 40L6 40C5.44772 40 5 39.5523 5 39C5 38.4477 5.44772 38 6 38L22 38C22.5523 38 23 38.4477 23 39Z"),m(i,"fill","black"),m(n,"fill-rule","evenodd"),m(n,"clip-rule","evenodd"),m(n,"d","M9 36C9 36.5523 8.55228 37 8 37L1 37C0.447715 37 -3.91405e-08 36.5523 -8.74228e-08 36C-1.35705e-07 35.4477 0.447715 35 1 35L8 35C8.55228 35 9 35.4477 9 36Z"),m(n,"fill","black"),m(s,"fill-rule","evenodd"),m(s,"clip-rule","evenodd"),m(s,"d","M3 39C3 39.5523 2.55228 40 2 40L1 40C0.447715 40 3.91405e-08 39.5523 8.74228e-08 39C1.35705e-07 38.4477 0.447715 38 1 38L2 38C2.55228 38 3 38.4477 3 39Z"),m(s,"fill","black"),m(o,"fill-rule","evenodd"),m(o,"clip-rule","evenodd"),m(o,"d","M23 38C32.9411 38 41 29.9411 41 20C41 10.0589 32.9411 2 23 2C13.0589 2 5 10.0589 5 20C5 29.9411 13.0589 38 23 38ZM23 40C34.0457 40 43 31.0457 43 20C43 8.9543 34.0457 0 23 0C11.9543 0 3 8.9543 3 20C3 31.0457 11.9543 40 23 40Z"),m(o,"fill","black"),Qu(t,l)},m(u,d){B(u,t,d),p(t,r),p(t,i),p(t,n),p(t,s),p(t,o)},p:Se,d(u){u&&P(t)}}}function h2(e){let t,r=e[24](`bonusCard.${e[4].status}`)+"",i,n=[e[35]("BonusCardTitleSub")],s={};for(let o=0;o<n.length;o+=1)s=T(s,n[o]);return{c(){t=C("p"),i=O(r),k(t,s)},m(o,a){B(o,t,a),p(t,i)},p(o,a){a[0]&16777232&&r!==(r=o[24](`bonusCard.${o[4].status}`)+"")&&ne(i,r,s.contenteditable)},d(o){o&&P(t)}}}function f2(e){let t,r,i,n,s,o=[e[35]("BonusCardTitleSub")],a={};for(let l=0;l<o.length;l+=1)a=T(a,o[l]);return{c(){t=C("span"),r=ee("svg"),i=ee("path"),n=W(),s=O(e[17]),m(i,"d","M16 0H8V2.66667H16V0ZM10.6667 17.3333H13.3333V9.33333H10.6667V17.3333ZM21.3667 8.51333L23.2667 6.61333C22.6933 5.92667 22.0667 5.3 21.38 4.72667L19.48 6.62667C17.3568 4.92342 14.7153 3.99668 11.9933 4C5.36 4 0 9.37333 0 16C0 22.6267 5.36 28 11.9933 28C18.6267 28 24 22.6267 24 16C24 13.1667 23.0133 10.5667 21.3667 8.51333ZM12 25.3333C6.84667 25.3333 2.66667 21.1533 2.66667 16C2.66667 10.8467 6.84667 6.66667 12 6.66667C17.1533 6.66667 21.3333 10.8467 21.3333 16C21.3333 21.1533 17.1533 25.3333 12 25.3333Z"),m(i,"fill","#6D6D6D"),m(r,"width","24"),m(r,"height","28"),m(r,"viewBox","0 0 24 28"),m(r,"fill","none"),m(r,"xmlns","http://www.w3.org/2000/svg"),k(t,a)},m(l,u){B(l,t,u),p(t,r),p(r,i),p(t,n),p(t,s)},p(l,u){u[0]&131072&&ne(s,l[17],a.contenteditable)},d(l){l&&P(t)}}}function p2(e){let t,r,i;function n(h,f){return h[0]==="claimable"?_2:m2}let s=n(e),o=s(e),a=[e[35]("BonusCardDataContent")],l={};for(let h=0;h<a.length;h+=1)l=T(l,a[h]);let u=(e[0]==="active"||e[0]==="completed")&&fu(e),d=[e[35]("BonusCardData")],c={};for(let h=0;h<d.length;h+=1)c=T(c,d[h]);return{c(){t=C("div"),r=C("div"),o.c(),i=W(),u&&u.c(),k(r,l),k(t,c)},m(h,f){B(h,t,f),p(t,r),o.m(r,null),p(t,i),u&&u.m(t,null)},p(h,f){s===(s=n(h))&&o?o.p(h,f):(o.d(1),o=s(h),o&&(o.c(),o.m(r,null))),h[0]==="active"||h[0]==="completed"?u?u.p(h,f):(u=fu(h),u.c(),u.m(t,null)):u&&(u.d(1),u=null)},d(h){h&&P(t),o.d(),u&&u.d()}}}function m2(e){let t,r,i=e[24]("bonusCard.bonusStatus")+"",n,s,o,a,l,u,d,c=e[24]("bonusCard.bonusType")+"",h,f,b,g,v=e[24](`bonusType.${e[4].type}`)+"",y,_,E,w,N,x,I,Z=[e[35]("BonusCardLabel")],J={};for(let A=0;A<Z.length;A+=1)J=T(J,Z[A]);function H(A,R){return A[0]==="active"?b2:g2}let D=H(e),Y=D(e),re=[e[35]("BonusCardRowText")],Q={};for(let A=0;A<re.length;A+=1)Q=T(Q,re[A]);let L=[e[35]("BonusCardRow")],$={};for(let A=0;A<L.length;A+=1)$=T($,L[A]);let U=[e[35]("BonusCardLabel")],V={};for(let A=0;A<U.length;A+=1)V=T(V,U[A]);let oe=[e[35]("BonusCardRowText","Type")],xe={};for(let A=0;A<oe.length;A+=1)xe=T(xe,oe[A]);let Oe=[e[35]("BonusCardRow")],ie={};for(let A=0;A<Oe.length;A+=1)ie=T(ie,Oe[A]);let we=e[4].type==="standard"&&su(e),ae=e[4].type==="freeBet"&&ou(e),ce=e[4].type==="freeRound"&&au(e),M=e[4].type==="wagering"&&du(e),z=e[4].endTime&&e[0]==="active"&&e[4].type!=="wagering"&&cu(e);return{c(){t=C("p"),r=C("span"),n=O(i),s=O(":"),o=W(),a=C("span"),Y.c(),l=W(),u=C("p"),d=C("span"),h=O(c),f=O(":"),b=W(),g=C("span"),y=O(v),_=W(),we&&we.c(),E=W(),ae&&ae.c(),w=W(),ce&&ce.c(),N=W(),M&&M.c(),x=W(),z&&z.c(),I=Lt(),k(r,J),k(a,Q),le(a,"StatusActive",e[0]==="active"),le(a,"StatusCompleted",e[0]==="completed"),le(a,"StatusClaimable",e[0]==="claimable"),k(t,$),k(d,V),k(g,xe),k(u,ie)},m(A,R){B(A,t,R),p(t,r),p(r,n),p(r,s),p(t,o),p(t,a),Y.m(a,null),B(A,l,R),B(A,u,R),p(u,d),p(d,h),p(d,f),p(u,b),p(u,g),p(g,y),B(A,_,R),we&&we.m(A,R),B(A,E,R),ae&&ae.m(A,R),B(A,w,R),ce&&ce.m(A,R),B(A,N,R),M&&M.m(A,R),B(A,x,R),z&&z.m(A,R),B(A,I,R)},p(A,R){R[0]&16777216&&i!==(i=A[24]("bonusCard.bonusStatus")+"")&&ne(n,i,J.contenteditable),D===(D=H(A))&&Y?Y.p(A,R):(Y.d(1),Y=D(A),Y&&(Y.c(),Y.m(a,null))),R[0]&1&&le(a,"StatusActive",A[0]==="active"),R[0]&1&&le(a,"StatusCompleted",A[0]==="completed"),R[0]&1&&le(a,"StatusClaimable",A[0]==="claimable"),R[0]&16777216&&c!==(c=A[24]("bonusCard.bonusType")+"")&&ne(h,c,V.contenteditable),R[0]&16777232&&v!==(v=A[24](`bonusType.${A[4].type}`)+"")&&ne(y,v,xe.contenteditable),A[4].type==="standard"?we?we.p(A,R):(we=su(A),we.c(),we.m(E.parentNode,E)):we&&(we.d(1),we=null),A[4].type==="freeBet"?ae?ae.p(A,R):(ae=ou(A),ae.c(),ae.m(w.parentNode,w)):ae&&(ae.d(1),ae=null),A[4].type==="freeRound"?ce?ce.p(A,R):(ce=au(A),ce.c(),ce.m(N.parentNode,N)):ce&&(ce.d(1),ce=null),A[4].type==="wagering"?M?M.p(A,R):(M=du(A),M.c(),M.m(x.parentNode,x)):M&&(M.d(1),M=null),A[4].endTime&&A[0]==="active"&&A[4].type!=="wagering"?z?z.p(A,R):(z=cu(A),z.c(),z.m(I.parentNode,I)):z&&(z.d(1),z=null)},d(A){A&&(P(t),P(l),P(u),P(_),P(E),P(w),P(N),P(x),P(I)),Y.d(),we&&we.d(A),ae&&ae.d(A),ce&&ce.d(A),M&&M.d(A),z&&z.d(A)}}}function _2(e){let t,r,i=e[24]("bonusCard.bonusType")+"",n,s,o,a,l=e[24](`bonusType.${e[4].type}`)+"",u,d,c,h,f,b=e[24]("bonusCard.validity")+"",g,v,y,_,E=e[31](e[4])+"",w,N=[e[35]("BonusCardLabel")],x={};for(let V=0;V<N.length;V+=1)x=T(x,N[V]);let I=[e[35]("BonusCardRowText","Type")],Z={};for(let V=0;V<I.length;V+=1)Z=T(Z,I[V]);let J=[e[35]("BonusCardRow")],H={};for(let V=0;V<J.length;V+=1)H=T(H,J[V]);let D=e[4].type==="wagering"&&hu(e),Y=[e[35]("BonusCardLabel")],re={};for(let V=0;V<Y.length;V+=1)re=T(re,Y[V]);let Q=[e[35]("BonusCardRowText")],L={};for(let V=0;V<Q.length;V+=1)L=T(L,Q[V]);let $=[e[35]("BonusCardRow")],U={};for(let V=0;V<$.length;V+=1)U=T(U,$[V]);return{c(){t=C("p"),r=C("span"),n=O(i),s=O(":"),o=W(),a=C("span"),u=O(l),d=W(),D&&D.c(),c=W(),h=C("p"),f=C("span"),g=O(b),v=O(":"),y=W(),_=C("span"),w=O(E),k(r,x),k(a,Z),k(t,H),k(f,re),k(_,L),k(h,U)},m(V,oe){B(V,t,oe),p(t,r),p(r,n),p(r,s),p(t,o),p(t,a),p(a,u),B(V,d,oe),D&&D.m(V,oe),B(V,c,oe),B(V,h,oe),p(h,f),p(f,g),p(f,v),p(h,y),p(h,_),p(_,w)},p(V,oe){oe[0]&16777216&&i!==(i=V[24]("bonusCard.bonusType")+"")&&ne(n,i,x.contenteditable),oe[0]&16777232&&l!==(l=V[24](`bonusType.${V[4].type}`)+"")&&ne(u,l,Z.contenteditable),V[4].type==="wagering"?D?D.p(V,oe):(D=hu(V),D.c(),D.m(c.parentNode,c)):D&&(D.d(1),D=null),oe[0]&16777216&&b!==(b=V[24]("bonusCard.validity")+"")&&ne(g,b,re.contenteditable),oe[0]&16&&E!==(E=V[31](V[4])+"")&&ne(w,E,L.contenteditable)},d(V){V&&(P(t),P(d),P(c),P(h)),D&&D.d(V)}}}function g2(e){let t=e[24](`bonusCard.${e[4].status}`)+"",r;return{c(){r=O(t)},m(i,n){B(i,r,n)},p(i,n){n[0]&16777232&&t!==(t=i[24](`bonusCard.${i[4].status}`)+"")&&Ce(r,t)},d(i){i&&P(r)}}}function b2(e){let t=e[24](`bonusCard.${e[0]}`)+"",r;return{c(){r=O(t)},m(i,n){B(i,r,n)},p(i,n){n[0]&16777217&&t!==(t=i[24](`bonusCard.${i[0]}`)+"")&&Ce(r,t)},d(i){i&&P(r)}}}function su(e){let t,r,i=e[24]("bonusCard.bonusAmount")+"",n,s,o,a,l,u=e[4].remainingAmount+"",d,c,h,f,b=e[4].amount+"",g,v,y,_,E,w=e[24]("bonusCard.wageredAmount")+"",N,x,I,Z,J=e[27](e[4])+e[16]+"",H,D,Y=[e[35]("BonusCardLabel")],re={};for(let z=0;z<Y.length;z+=1)re=T(re,Y[z]);let Q=[e[35]("BonusCardRowText")],L={};for(let z=0;z<Q.length;z+=1)L=T(L,Q[z]);let $=[e[35]("BonusCardRow")],U={};for(let z=0;z<$.length;z+=1)U=T(U,$[z]);let V=[e[35]("BonusCardLabel")],oe={};for(let z=0;z<V.length;z+=1)oe=T(oe,V[z]);function xe(z,A){return z[4].initialWagerRequirementAmount>=2147483647?y2:v2}let Oe=xe(e),ie=Oe(e),we=[e[35]("BonusCardRowText")],ae={};for(let z=0;z<we.length;z+=1)ae=T(ae,we[z]);let ce=[e[35]("BonusCardRow")],M={};for(let z=0;z<ce.length;z+=1)M=T(M,ce[z]);return{c(){t=C("p"),r=C("span"),n=O(i),s=O(":"),o=W(),a=C("span"),l=C("span"),d=O(u),c=O(e[16]),h=O(` /
|
|
3571
|
-
`),f=C("span"),g=O(b),v=O(e[16]),y
|
|
3572
|
-
`),ie.c(),
|
|
3573
|
-
`),a.c(),n=
|
|
3574
|
-
`),a=O(o),l
|
|
3575
|
-
`),v.c(),k(r,f),k(s,_),k(t,w)},m(x,I){B(x,t,I),p(t,r),p(t,n),p(t,s),p(s,a),p(s,l),p(s,d),p(s,c),v.m(s,null)},p(x,I){var Z;k(r,f=Ie(h,[x[35]("CircularProgress"),I[0]&16&&i!==(i=x[29](x[4]))&&{value:i},I[0]&1&&{status:x[0]},I[0]&4&&{clientstyling:x[2]},I[0]&8&&{clientstylingurl:x[3]},I[0]&2&&{mbsource:x[1]}])),I[0]&16777216&&o!==(o=x[24]("bonusCard.level")+"")&&ne(a,o,_.contenteditable),I[0]&16&&u!==(u=(((Z=x[4].wageringProgress)==null?void 0:Z.currentLevel)||1)+"")&&ne(d,u,_.contenteditable),g===(g=b(x))&&v?v.p(x,I):(v.d(1),v=g(x),v&&(v.c(),v.m(s,null)))},d(x){x&&P(t),v.d()}}}function D2(e){let t;return{c(){t=O("∞")},m(r,i){B(r,t,i)},p:Se,d(r){r&&P(t)}}}function P2(e){let t;return{c(){t=O(e[7])},m(r,i){B(r,t,i)},p(r,i){i[0]&128&&Ce(t,r[7])},d(r){r&&P(t)}}}function _u(e){let t,r,i,n,s,o,a=e[24]("bonusCard.rewards")+"",l,u,d,c,h,f,b=[e[35]("BonusCardAdditionalTitle")],g={};for(let H=0;H<b.length;H+=1)g=T(g,b[H]);function v(H,D){return H[10]?M2:O2}let y=v(e),_=y(e),E=[e[35]("BonusCardAdditionalButton")],w={};for(let H=0;H<E.length;H+=1)w=T(w,E[H]);let N=[e[35]("BonusCardAdditionalHeader")],x={};for(let H=0;H<N.length;H+=1)x=T(x,N[H]);let I=e[10]&&gu(e),Z=[e[35]("BonusCardAdditional")],J={};for(let H=0;H<Z.length;H+=1)J=T(J,Z[H]);return{c(){t=C("div"),r=C("div"),i=C("span"),n=ee("svg"),s=ee("path"),o=W(),l=O(a),u=W(),d=C("span"),_.c(),c=W(),I&&I.c(),m(s,"d","M18 5.97075H14.885C15.3396 5.74285 15.7565 5.44638 16.121 5.09175C16.6824 4.52865 16.9977 3.76592 16.9977 2.97075C16.9977 2.17558 16.6824 1.41285 16.121 0.84975C14.987 -0.28325 13.013 -0.28325 11.879 0.84975C10.243 2.48675 10.02 5.56775 10 5.91375C9.98 5.56775 9.757 2.48675 8.121 0.85075C6.987 -0.28225 5.011 -0.28125 3.879 0.85075C3.312 1.41675 3 2.16975 3 2.97075C3 3.77175 3.312 4.52575 3.878 5.09175C4.24311 5.4461 4.66027 5.74253 5.115 5.97075H2C0.897 5.97075 0 6.86875 0 7.97075V10.9707C0 11.236 0.105357 11.4903 0.292893 11.6779C0.48043 11.8654 0.734784 11.9707 1 11.9707V17.9708C1 19.0738 1.897 19.9708 3 19.9708H17C18.103 19.9708 19 19.0738 19 17.9708V11.9707C19.2652 11.9707 19.5196 11.8654 19.7071 11.6779C19.8946 11.4903 20 11.236 20 10.9707V7.97075C20 6.86875 19.103 5.97075 18 5.97075ZM6 17.9708H3V11.9707H6V17.9708ZM6 9.97075H2V7.97075H6V9.97075ZM5.293 3.67775C5.19982 3.58514 5.12595 3.47497 5.07565 3.35361C5.02536 3.23225 4.99964 3.10212 5 2.97075C4.99947 2.83933 5.02498 2.7091 5.07506 2.58759C5.12514 2.46608 5.1988 2.3557 5.29177 2.26281C5.38475 2.16993 5.49521 2.09639 5.61677 2.04643C5.73833 1.99647 5.86858 1.97109 6 1.97175C6.268 1.97175 6.519 2.07575 6.708 2.26475C7.298 2.85375 7.642 3.91275 7.826 4.79475C6.945 4.60975 5.88 4.26475 5.293 3.67775ZM12 17.9708H8V11.9707H12V17.9708ZM12 9.97075H8V7.97075H12V9.97075ZM13.293 2.26475C13.482 2.07575 13.733 1.97175 14 1.97175C14.267 1.97175 14.518 2.07575 14.707 2.26375C14.8945 2.45128 14.9998 2.70559 14.9998 2.97075C14.9998 3.23591 14.8945 3.49022 14.707 3.67775C14.117 4.26975 13.058 4.61375 12.175 4.79875C12.358 3.91375 12.703 2.85475 13.293 2.26475ZM17 17.9708H14V11.9707H17V17.9708ZM18 9.97075H14V7.97075H18V9.97075Z"),m(s,"fill","black"),m(n,"width","20"),m(n,"height","20"),m(n,"viewBox","0 0 20 20"),m(n,"fill","none"),m(n,"xmlns","http://www.w3.org/2000/svg"),k(i,g),k(d,w),k(r,x),le(r,"Active",e[10]),k(t,J)},m(H,D){B(H,t,D),p(t,r),p(r,i),p(i,n),p(n,s),p(i,o),p(i,l),p(r,u),p(r,d),_.m(d,null),p(t,c),I&&I.m(t,null),h||(f=Le(r,"click",e[50]),h=!0)},p(H,D){D[0]&16777216&&a!==(a=H[24]("bonusCard.rewards")+"")&&ne(l,a,g.contenteditable),y!==(y=v(H))&&(_.d(1),_=y(H),_&&(_.c(),_.m(d,null))),D[0]&1024&&le(r,"Active",H[10]),H[10]?I?I.p(H,D):(I=gu(H),I.c(),I.m(t,null)):I&&(I.d(1),I=null)},d(H){H&&P(t),_.d(),I&&I.d(),h=!1,f()}}}function M2(e){let t,r;return{c(){t=ee("svg"),r=ee("path"),m(r,"d","M16.1422 10.071L9.07108 2.99998L2.00002 10.071"),m(r,"stroke","black"),m(r,"stroke-width","3"),m(r,"stroke-linecap","round"),m(t,"width","18"),m(t,"height","12"),m(t,"viewBox","0 0 18 12"),m(t,"fill","none"),m(t,"xmlns","http://www.w3.org/2000/svg")},m(i,n){B(i,t,n),p(t,r)},d(i){i&&P(t)}}}function O2(e){let t,r;return{c(){t=ee("svg"),r=ee("path"),m(r,"d","M2 2.07104L9.07107 9.14211L16.1421 2.07104"),m(r,"stroke","black"),m(r,"stroke-width","3"),m(r,"stroke-linecap","round"),m(t,"width","18"),m(t,"height","12"),m(t,"viewBox","0 0 18 12"),m(t,"fill","none"),m(t,"xmlns","http://www.w3.org/2000/svg")},m(i,n){B(i,t,n),p(t,r)},d(i){i&&P(t)}}}function gu(e){let t,r=e[4].type==="wagering"&&bu(e),i=[e[35]("BonusCardAdditionalContent")],n={};for(let s=0;s<i.length;s+=1)n=T(n,i[s]);return{c(){t=C("div"),r&&r.c(),k(t,n)},m(s,o){B(s,t,o),r&&r.m(t,null)},p(s,o){s[4].type==="wagering"?r?r.p(s,o):(r=bu(s),r.c(),r.m(t,null)):r&&(r.d(1),r=null)},d(s){s&&P(t),r&&r.d()}}}function bu(e){let t,r,i=e[24]("bonusCard.allRewards")+"",n,s,o;function a(h,f){return h[4].status?N2:B2}let l=a(e),u=l(e),d=[e[35]("BonusAllRewardsLink"),{href:"javascript:void(0)"}],c={};for(let h=0;h<d.length;h+=1)c=T(c,d[h]);return{c(){u.c(),t=W(),r=C("a"),n=O(i),k(r,c)},m(h,f){u.m(h,f),B(h,t,f),B(h,r,f),p(r,n),s||(o=Le(r,"click",e[51]),s=!0)},p(h,f){l===(l=a(h))&&u?u.p(h,f):(u.d(1),u=l(h),u&&(u.c(),u.m(t.parentNode,t))),f[0]&16777216&&i!==(i=h[24]("bonusCard.allRewards")+"")&&ne(n,i,c.contenteditable)},d(h){h&&(P(t),P(r)),u.d(h),s=!1,o()}}}function B2(e){let t,r=je(e[4].levels),i=[];for(let n=0;n<r.length;n+=1)i[n]=yu(Jl(e,r,n));return{c(){for(let n=0;n<i.length;n+=1)i[n].c();t=Lt()},m(n,s){for(let o=0;o<i.length;o+=1)i[o]&&i[o].m(n,s);B(n,t,s)},p(n,s){if(s[0]&16777232|s[1]&20){r=je(n[4].levels);let o;for(o=0;o<r.length;o+=1){const a=Jl(n,r,o);i[o]?i[o].p(a,s):(i[o]=yu(a),i[o].c(),i[o].m(t.parentNode,t))}for(;o<i.length;o+=1)i[o].d(1);i.length=r.length}},d(n){n&&P(t),Jt(i,n)}}}function N2(e){let t,r=je(e[34](e[4],e[6])),i=[];for(let n=0;n<r.length;n+=1)i[n]=Cu(Ql(e,r,n));return{c(){for(let n=0;n<i.length;n+=1)i[n].c();t=Lt()},m(n,s){for(let o=0;o<i.length;o+=1)i[o]&&i[o].m(n,s);B(n,t,s)},p(n,s){if(s[0]&16777296|s[1]&24){r=je(n[34](n[4],n[6]));let o;for(o=0;o<r.length;o+=1){const a=Ql(n,r,o);i[o]?i[o].p(a,s):(i[o]=Cu(a),i[o].c(),i[o].m(t.parentNode,t))}for(;o<i.length;o+=1)i[o].d(1);i.length=r.length}},d(n){n&&P(t),Jt(i,n)}}}function vu(e){let t=e[33](e[76],e[79])+"",r;return{c(){r=O(t)},m(i,n){B(i,r,n)},p(i,n){n[0]&16&&t!==(t=i[33](i[76],i[79])+"")&&Ce(r,t)},d(i){i&&P(r)}}}function yu(e){let t,r,i=e[24]("bonusCard.level")+"",n,s,o=(e[76].maxRepeats>1?`${e[78]+1}-${e[78]+1+e[76].maxRepeats-1}`:e[78]+1)+"",a,l,u,d,c,h=[e[35]("BonusRewardsLevelsItemPosition")],f={};for(let _=0;_<h.length;_+=1)f=T(f,h[_]);let b=je(e[76].bonuses),g=[];for(let _=0;_<b.length;_+=1)g[_]=vu(Kl(e,b,_));let v=[e[35]("BonusRewardsLevelsItem")],y={};for(let _=0;_<v.length;_+=1)y=T(y,v[_]);return{c(){t=C("p"),r=C("span"),n=O(i),s=W(),a=O(o),l=O(":"),u=W(),d=C("span");for(let _=0;_<g.length;_+=1)g[_].c();c=W(),k(r,f),k(t,y)},m(_,E){B(_,t,E),p(t,r),p(r,n),p(r,s),p(r,a),p(r,l),p(t,u),p(t,d);for(let w=0;w<g.length;w+=1)g[w]&&g[w].m(d,null);p(t,c)},p(_,E){if(E[0]&16777216&&i!==(i=_[24]("bonusCard.level")+"")&&ne(n,i,f.contenteditable),E[0]&16&&o!==(o=(_[76].maxRepeats>1?`${_[78]+1}-${_[78]+1+_[76].maxRepeats-1}`:_[78]+1)+"")&&ne(a,o,f.contenteditable),E[0]&16|E[1]&4){b=je(_[76].bonuses);let w;for(w=0;w<b.length;w+=1){const N=Kl(_,b,w);g[w]?g[w].p(N,E):(g[w]=vu(N),g[w].c(),g[w].m(d,null))}for(;w<g.length;w+=1)g[w].d(1);g.length=b.length}},d(_){_&&P(t),Jt(g,_)}}}function wu(e){let t=e[73]+"",r;return{c(){r=O(t)},m(i,n){B(i,r,n)},p(i,n){n[0]&80&&t!==(t=i[73]+"")&&Ce(r,t)},d(i){i&&P(r)}}}function Cu(e){let t,r,i=e[24](`bonusCard.${e[70].label}`)+"",n,s,o=e[24]("bonusCard.level")+"",a,l,u,d,c,h=[e[35]("BonusRewardsLevelsItemPosition")],f={};for(let _=0;_<h.length;_+=1)f=T(f,h[_]);let b=je(e[70].desc),g=[];for(let _=0;_<b.length;_+=1)g[_]=wu(eu(e,b,_));let v=[e[35]("BonusRewardsLevelsItem")],y={};for(let _=0;_<v.length;_+=1)y=T(y,v[_]);return{c(){t=C("p"),r=C("span"),n=O(i),s=W(),a=O(o),l=O(":"),u=W(),d=C("span");for(let _=0;_<g.length;_+=1)g[_].c();c=W(),k(r,f),k(t,y)},m(_,E){B(_,t,E),p(t,r),p(r,n),p(r,s),p(r,a),p(r,l),p(t,u),p(t,d);for(let w=0;w<g.length;w+=1)g[w]&&g[w].m(d,null);p(t,c)},p(_,E){if(E[0]&16777296&&i!==(i=_[24](`bonusCard.${_[70].label}`)+"")&&ne(n,i,f.contenteditable),E[0]&16777216&&o!==(o=_[24]("bonusCard.level")+"")&&ne(a,o,f.contenteditable),E[0]&80|E[1]&8){b=je(_[70].desc);let w;for(w=0;w<b.length;w+=1){const N=eu(_,b,w);g[w]?g[w].p(N,E):(g[w]=wu(N),g[w].c(),g[w].m(d,null))}for(;w<g.length;w+=1)g[w].d(1);g.length=b.length}},d(_){_&&P(t),Jt(g,_)}}}function I2(e){let t,r,i,n,s,o,a,l,u,d,c=e[24]("bonusCard.terms")+"",h,f=[e[35]("BonusCardTermsLink"),{href:e[19]},{target:"__blank"}],b={};for(let y=0;y<f.length;y+=1)b=T(b,f[y]);let g=[e[35]("BonusCardTerms")],v={};for(let y=0;y<g.length;y+=1)v=T(v,g[y]);return{c(){t=C("div"),r=C("a"),i=ee("svg"),n=ee("path"),s=ee("path"),o=ee("path"),a=ee("path"),l=ee("path"),u=ee("path"),d=W(),h=O(c),m(n,"fill-rule","evenodd"),m(n,"clip-rule","evenodd"),m(n,"d","M0.5 3.675C0.5 1.64535 2.14535 0 4.175 0H14.675C16.7046 0 18.35 1.64535 18.35 3.675V13.4312C18.35 14.4319 17.9419 15.3893 17.2201 16.0823L13.164 19.9761C12.4796 20.6331 11.5676 21 10.6189 21H4.175C2.14536 21 0.5 19.3546 0.5 17.325V3.675ZM4.175 2.1C3.30515 2.1 2.6 2.80515 2.6 3.675V17.325C2.6 18.1948 3.30515 18.9 4.175 18.9H10.6189C11.0255 18.9 11.4164 18.7428 11.7097 18.4612L15.7657 14.5674C16.0751 14.2704 16.25 13.86 16.25 13.4312V3.675C16.25 2.80515 15.5448 2.1 14.675 2.1H4.175Z"),m(n,"fill","black"),m(s,"fill-rule","evenodd"),m(s,"clip-rule","evenodd"),m(s,"d","M16.775 14.9625L12.575 14.9625C12.1401 14.9625 11.7875 15.3151 11.7875 15.75L11.7875 19.95L10.2125 19.95L10.2125 15.75C10.2125 14.4452 11.2703 13.3875 12.575 13.3875L16.775 13.3875L16.775 14.9625Z"),m(s,"fill","black"),m(o,"fill-rule","evenodd"),m(o,"clip-rule","evenodd"),m(o,"d","M6.27502 4.9875C6.27502 4.55258 6.6276 4.2 7.06252 4.2H11.7875C12.2224 4.2 12.575 4.55258 12.575 4.9875C12.575 5.42242 12.2224 5.775 11.7875 5.775H7.06252C6.6276 5.775 6.27502 5.42242 6.27502 4.9875Z"),m(o,"fill","black"),m(a,"fill-rule","evenodd"),m(a,"clip-rule","evenodd"),m(a,"d","M4.70001 8.1375C4.70001 7.70258 5.05259 7.35 5.48751 7.35H13.3625C13.7974 7.35 14.15 7.70258 14.15 8.1375C14.15 8.57242 13.7974 8.925 13.3625 8.925H5.48751C5.05259 8.925 4.70001 8.57242 4.70001 8.1375Z"),m(a,"fill","black"),m(l,"fill-rule","evenodd"),m(l,"clip-rule","evenodd"),m(l,"d","M4.70001 11.8125C4.70001 11.3776 5.05259 11.025 5.48751 11.025H13.3625C13.7974 11.025 14.15 11.3776 14.15 11.8125C14.15 12.2474 13.7974 12.6 13.3625 12.6H5.48751C5.05259 12.6 4.70001 12.2474 4.70001 11.8125Z"),m(l,"fill","black"),m(u,"fill-rule","evenodd"),m(u,"clip-rule","evenodd"),m(u,"d","M4.70001 15.4875C4.70001 15.0526 5.05259 14.7 5.48751 14.7H8.11251C8.54744 14.7 8.90001 15.0526 8.90001 15.4875C8.90001 15.9224 8.54744 16.275 8.11251 16.275H5.48751C5.05259 16.275 4.70001 15.9224 4.70001 15.4875Z"),m(u,"fill","black"),m(i,"width","19"),m(i,"height","21"),m(i,"viewBox","0 0 19 21"),m(i,"fill","none"),m(i,"xmlns","http://www.w3.org/2000/svg"),k(r,b),k(t,v)},m(y,_){B(y,t,_),p(t,r),p(r,i),p(i,n),p(i,s),p(i,o),p(i,a),p(i,l),p(i,u),p(r,d),p(r,h)},p(y,_){_[0]&16777216&&c!==(c=y[24]("bonusCard.terms")+"")&&ne(h,c,b.contenteditable),k(r,b=Ie(f,[y[35]("BonusCardTermsLink"),_[0]&524288&&{href:y[19]},{target:"__blank"}]))},d(y){y&&P(t)}}}function L2(e){let t,r,i,n,s,o,a,l,u,d,c,h=e[24]("bonusCard.terms")+"",f,b,g,v,y,_,E=[e[35]("BonusCardTermsTitle")],w={};for(let L=0;L<E.length;L+=1)w=T(w,E[L]);function N(L,$){return L[11]?F2:H2}let x=N(e),I=x(e),Z=[e[35]("BonusCardTermsButton")],J={};for(let L=0;L<Z.length;L+=1)J=T(J,Z[L]);let H=[e[35]("BonusCardTermsHeader")],D={};for(let L=0;L<H.length;L+=1)D=T(D,H[L]);let Y=e[11]&&xu(e),re=[e[35]("BonusCardTerms")],Q={};for(let L=0;L<re.length;L+=1)Q=T(Q,re[L]);return{c(){t=C("div"),r=C("div"),i=C("span"),n=ee("svg"),s=ee("path"),o=ee("path"),a=ee("path"),l=ee("path"),u=ee("path"),d=ee("path"),c=W(),f=O(h),b=W(),g=C("span"),I.c(),v=W(),Y&&Y.c(),m(s,"fill-rule","evenodd"),m(s,"clip-rule","evenodd"),m(s,"d","M0.5 3.675C0.5 1.64535 2.14535 0 4.175 0H14.675C16.7046 0 18.35 1.64535 18.35 3.675V13.4312C18.35 14.4319 17.9419 15.3893 17.2201 16.0823L13.164 19.9761C12.4796 20.6331 11.5676 21 10.6189 21H4.175C2.14536 21 0.5 19.3546 0.5 17.325V3.675ZM4.175 2.1C3.30515 2.1 2.6 2.80515 2.6 3.675V17.325C2.6 18.1948 3.30515 18.9 4.175 18.9H10.6189C11.0255 18.9 11.4164 18.7428 11.7097 18.4612L15.7657 14.5674C16.0751 14.2704 16.25 13.86 16.25 13.4312V3.675C16.25 2.80515 15.5448 2.1 14.675 2.1H4.175Z"),m(s,"fill","black"),m(o,"fill-rule","evenodd"),m(o,"clip-rule","evenodd"),m(o,"d","M16.775 14.9625L12.575 14.9625C12.1401 14.9625 11.7875 15.3151 11.7875 15.75L11.7875 19.95L10.2125 19.95L10.2125 15.75C10.2125 14.4452 11.2703 13.3875 12.575 13.3875L16.775 13.3875L16.775 14.9625Z"),m(o,"fill","black"),m(a,"fill-rule","evenodd"),m(a,"clip-rule","evenodd"),m(a,"d","M6.27502 4.9875C6.27502 4.55258 6.6276 4.2 7.06252 4.2H11.7875C12.2224 4.2 12.575 4.55258 12.575 4.9875C12.575 5.42242 12.2224 5.775 11.7875 5.775H7.06252C6.6276 5.775 6.27502 5.42242 6.27502 4.9875Z"),m(a,"fill","black"),m(l,"fill-rule","evenodd"),m(l,"clip-rule","evenodd"),m(l,"d","M4.70001 8.1375C4.70001 7.70258 5.05259 7.35 5.48751 7.35H13.3625C13.7974 7.35 14.15 7.70258 14.15 8.1375C14.15 8.57242 13.7974 8.925 13.3625 8.925H5.48751C5.05259 8.925 4.70001 8.57242 4.70001 8.1375Z"),m(l,"fill","black"),m(u,"fill-rule","evenodd"),m(u,"clip-rule","evenodd"),m(u,"d","M4.70001 11.8125C4.70001 11.3776 5.05259 11.025 5.48751 11.025H13.3625C13.7974 11.025 14.15 11.3776 14.15 11.8125C14.15 12.2474 13.7974 12.6 13.3625 12.6H5.48751C5.05259 12.6 4.70001 12.2474 4.70001 11.8125Z"),m(u,"fill","black"),m(d,"fill-rule","evenodd"),m(d,"clip-rule","evenodd"),m(d,"d","M4.70001 15.4875C4.70001 15.0526 5.05259 14.7 5.48751 14.7H8.11251C8.54744 14.7 8.90001 15.0526 8.90001 15.4875C8.90001 15.9224 8.54744 16.275 8.11251 16.275H5.48751C5.05259 16.275 4.70001 15.9224 4.70001 15.4875Z"),m(d,"fill","black"),m(n,"width","19"),m(n,"height","21"),m(n,"viewBox","0 0 19 21"),m(n,"fill","none"),m(n,"xmlns","http://www.w3.org/2000/svg"),k(i,w),k(g,J),k(r,D),le(r,"Active",e[11]),k(t,Q)},m(L,$){B(L,t,$),p(t,r),p(r,i),p(i,n),p(n,s),p(n,o),p(n,a),p(n,l),p(n,u),p(n,d),p(i,c),p(i,f),p(r,b),p(r,g),I.m(g,null),p(t,v),Y&&Y.m(t,null),y||(_=Le(r,"click",e[52]),y=!0)},p(L,$){$[0]&16777216&&h!==(h=L[24]("bonusCard.terms")+"")&&ne(f,h,w.contenteditable),x!==(x=N(L))&&(I.d(1),I=x(L),I&&(I.c(),I.m(g,null))),$[0]&2048&&le(r,"Active",L[11]),L[11]?Y?Y.p(L,$):(Y=xu(L),Y.c(),Y.m(t,null)):Y&&(Y.d(1),Y=null)},d(L){L&&P(t),I.d(),Y&&Y.d(),y=!1,_()}}}function F2(e){let t,r;return{c(){t=ee("svg"),r=ee("path"),m(r,"d","M16.1422 10.071L9.07108 2.99998L2.00002 10.071"),m(r,"stroke","black"),m(r,"stroke-width","3"),m(r,"stroke-linecap","round"),m(t,"width","18"),m(t,"height","12"),m(t,"viewBox","0 0 18 12"),m(t,"fill","none"),m(t,"xmlns","http://www.w3.org/2000/svg")},m(i,n){B(i,t,n),p(t,r)},d(i){i&&P(t)}}}function H2(e){let t,r;return{c(){t=ee("svg"),r=ee("path"),m(r,"d","M2 2.07104L9.07107 9.14211L16.1421 2.07104"),m(r,"stroke","black"),m(r,"stroke-width","3"),m(r,"stroke-linecap","round"),m(t,"width","18"),m(t,"height","12"),m(t,"viewBox","0 0 18 12"),m(t,"fill","none"),m(t,"xmlns","http://www.w3.org/2000/svg")},m(i,n){B(i,t,n),p(t,r)},d(i){i&&P(t)}}}function xu(e){let t,r,i,n,s=[e[35]("BonusCardTermsContent")],o={};for(let a=0;a<s.length;a+=1)o=T(o,s[a]);return{c(){t=C("div"),k(t,o)},m(a,l){B(a,t,l),i||(n=sf(r=e[39].call(null,t,e[15].terms_and_conditions)),i=!0)},p(a,l){r&&Ai(r.update)&&l[0]&32768&&r.update.call(null,a[15].terms_and_conditions)},d(a){a&&P(t),i=!1,n()}}}function Eu(e){let t,r,i,n=e[0]==="claimable"&&ku(e),s=e[0]==="active"&&e[4].status==="active"&&Au(e),o=[e[35]("BonusCardActionContent")],a={};for(let d=0;d<o.length;d+=1)a=T(a,o[d]);let l=[e[35]("BonusCardAction")],u={};for(let d=0;d<l.length;d+=1)u=T(u,l[d]);return{c(){t=C("div"),r=C("div"),n&&n.c(),i=W(),s&&s.c(),k(r,a),k(t,u)},m(d,c){B(d,t,c),p(t,r),n&&n.m(r,null),p(r,i),s&&s.m(r,null)},p(d,c){d[0]==="claimable"?n?n.p(d,c):(n=ku(d),n.c(),n.m(r,i)):n&&(n.d(1),n=null),d[0]==="active"&&d[4].status==="active"?s?s.p(d,c):(s=Au(d),s.c(),s.m(r,null)):s&&(s.d(1),s=null)},d(d){d&&P(t),n&&n.d(),s&&s.d()}}}function ku(e){let t,r,i,n,s,o,a,l,u,d=e[24]("bonusCard.join")+"",c,h,f,b,g=e[14]===!0&&Su(e),v=[e[35]("BonusCardJoinCountdown")],y={};for(let x=0;x<v.length;x+=1)y=T(y,v[x]);let _=[e[35]("BonusJoinButton"),{type:"button"},{disabled:h=!e[12]}],E={};for(let x=0;x<_.length;x+=1)E=T(E,_[x]);let w=[e[35]("BonusCardJoinWrapper")],N={};for(let x=0;x<w.length;x+=1)N=T(N,w[x]);return{c(){t=C("div"),g&&g.c(),r=W(),i=C("span"),n=ee("svg"),s=ee("path"),o=W(),a=O(e[18]),l=W(),u=C("button"),c=O(d),m(s,"d","M16 0H8V2.66667H16V0ZM10.6667 17.3333H13.3333V9.33333H10.6667V17.3333ZM21.3667 8.51333L23.2667 6.61333C22.6933 5.92667 22.0667 5.3 21.38 4.72667L19.48 6.62667C17.3568 4.92342 14.7153 3.99668 11.9933 4C5.36 4 0 9.37333 0 16C0 22.6267 5.36 28 11.9933 28C18.6267 28 24 22.6267 24 16C24 13.1667 23.0133 10.5667 21.3667 8.51333ZM12 25.3333C6.84667 25.3333 2.66667 21.1533 2.66667 16C2.66667 10.8467 6.84667 6.66667 12 6.66667C17.1533 6.66667 21.3333 10.8467 21.3333 16C21.3333 21.1533 17.1533 25.3333 12 25.3333Z"),m(s,"fill","#6D6D6D"),m(n,"width","24"),m(n,"height","28"),m(n,"viewBox","0 0 24 28"),m(n,"fill","none"),m(n,"xmlns","http://www.w3.org/2000/svg"),k(i,y),k(u,E),k(t,N)},m(x,I){B(x,t,I),g&&g.m(t,null),p(t,r),p(t,i),p(i,n),p(n,s),p(i,o),p(i,a),p(t,l),p(t,u),p(u,c),u.autofocus&&u.focus(),f||(b=Le(u,"click",e[25]),f=!0)},p(x,I){x[14]===!0?g?g.p(x,I):(g=Su(x),g.c(),g.m(t,r)):g&&(g.d(1),g=null),I[0]&262144&&ne(a,x[18],y.contenteditable),I[0]&16777216&&d!==(d=x[24]("bonusCard.join")+"")&&ne(c,d,E.contenteditable),k(u,E=Ie(_,[x[35]("BonusJoinButton"),{type:"button"},I[0]&4096&&h!==(h=!x[12])&&{disabled:h}]))},d(x){x&&P(t),g&&g.d(),f=!1,b()}}}function Su(e){let t,r=e[24]("bonusCard.error")+"",i,n=[e[35]("BonusCardJoinError")],s={};for(let o=0;o<n.length;o+=1)s=T(s,n[o]);return{c(){t=C("span"),i=O(r),k(t,s)},m(o,a){B(o,t,a),p(t,i)},p(o,a){a[0]&16777216&&r!==(r=o[24]("bonusCard.error")+"")&&ne(i,r,s.contenteditable)},d(o){o&&P(t)}}}function Au(e){let t,r=e[24]("bonusCard.forfeit")+"",i,n,s,o,a=[e[35]("BonusForfeitButton"),{type:"button"},{disabled:n=!e[12]}],l={};for(let u=0;u<a.length;u+=1)l=T(l,a[u]);return{c(){t=C("button"),i=O(r),k(t,l)},m(u,d){B(u,t,d),p(t,i),t.autofocus&&t.focus(),s||(o=Le(t,"click",e[26]),s=!0)},p(u,d){d[0]&16777216&&r!==(r=u[24]("bonusCard.forfeit")+"")&&ne(i,r,l.contenteditable),k(t,l=Ie(a,[u[35]("BonusForfeitButton"),{type:"button"},d[0]&4096&&n!==(n=!u[12])&&{disabled:n}]))},d(u){u&&P(t),s=!1,o()}}}function R2(e){let t,r=e[4]&&ru(e);return{c(){r&&r.c(),t=Lt()},m(i,n){r&&r.m(i,n),B(i,t,n)},p(i,n){i[4]?r?r.p(i,n):(r=ru(i),r.c(),r.m(t.parentNode,t)):r&&(r.d(1),r=null)},i:Se,o:Se,d(i){i&&P(t),r&&r.d(i)}}}function Y2(e,t,r){let i,n;Ju(e,Td,S=>r(24,n=S));let{rawbonus:s=""}=t,{lang:o="en"}=t,{status:a=""}=t,{mbsource:l}=t,{clientstyling:u=""}=t,{clientstylingurl:d=""}=t,{cmsendpoint:c=""}=t,{translationurl:h=""}=t,f,b=[],g,v=!1,y=!1,_=!1,E=!1,w=!0,N=!1,x=!1,I={},Z,J,H="",D=1e3*30,Y,re="",Q=!1,L,$=[],U=0;const V=()=>{fetch(h).then(q=>q.json()).then(q=>{Object.keys(q).forEach(ue=>{_n(ue,q[ue])})}).catch(q=>{console.log(q)})};Object.keys(gn).forEach(S=>{_n(S,gn[S])}),On(()=>(window.addEventListener("message",ae,!1),()=>{window.removeEventListener("message",ae)}));const oe=()=>{try{r(4,f=JSON.parse(s))}catch(S){}f&&(f.type==="wagering"&&r(9,y=!0),r(16,Z=Xl(f.currency)),r(6,b=Oe(f.levels)),f.type==="freeRound"&&r(22,$=xe(f.freeSpin)),R())},xe=S=>{if(!S||!S.vendorGamesDetail)return[];let q=[];return Object.keys(S.vendorGamesDetail).length>0&&Object.keys(S.vendorGamesDetail).forEach(ue=>{q=S.vendorGamesDetail[ue]}),q},Oe=S=>{if(!S)return[];const q=[];let ue=!1;return S.map((Ve,qe)=>{const ut=Ve,{maxRepeats:He,completedTime:Ut}=ut,it=ms(ut,["maxRepeats","completedTime"]);He===0&&(ue=!0);for(let Qe=0;Qe<He;Qe++)q.push(Vt({},it))}),ue?r(7,g=0):r(7,g=q.length),q},ie=()=>{r(12,w=!1),r(14,x=!1),window.postMessage({type:"OnBonusClaimed",bonusCode:f.code})},we=()=>{r(12,w=!1),window.postMessage({type:"OnBonusForfeit",bonus:f})},ae=S=>{switch(S.data.type){case"OnBonusClaimedDone":r(12,w=!0);break;case"OnBonusForfeitedDone":r(12,w=!0);case"OnBonusClaimError":S.data.bonusCode===f.code&&r(14,x=!0);break}},ce=(S,q)=>({remainder:S%q,quotient:Math.floor(S/q)}),M=S=>{const q=new Date;return new Date(S).getTime()-q.getTime()},z=S=>{const q=M(S)/6e4,{quotient:ue,remainder:Ve}=ce(q,1440),{quotient:qe,remainder:He}=ce(Ve,60),Ut=Math.floor(He),it=Qe=>Math.abs(Qe)<10?`0${Qe}`:Qe;return[{value:ue,symbol:"d"},{value:qe,symbol:"h"},{value:Ut,symbol:"m"}].map(Qe=>it(Qe.value)+Qe.symbol).join(" ")},A=(S,q,ue,Ve)=>{const qe=M(S);qe<0?ue():(Ve(z(S)),qe<q&&setTimeout(()=>{window.postMessage({type:"OnWageringBonusExpired"})},qe))},R=()=>{f&&((f.endTime||f.trigger&&f.trigger.endTime)&&A(f.endTime||f.trigger.endTime,D,()=>r(18,H="Expired"),S=>r(18,H=S)),f.expiryDate&&A(f.expiryDate,D,()=>r(17,J="Expired"),S=>r(17,J=S)))},Me=S=>{let q=(S.initialWagerRequirementAmount*10-S.remainingWagerRequirementAmount*10)/10;return S.status==="released"&&(q+=S.remainingAmount),q},K=S=>{var q,ue;return((((q=S.wageringProgress)==null?void 0:q.currentLevelIncrement)*10-((ue=S.wageringProgress)==null?void 0:ue.gap)*10)/10).toFixed(1)},Re=S=>{var Ve,qe,He;let q,ue;return S.type==="wagering"&&S.status==="active"&&S.wageringType==="money"?(ue=(Ve=S.wageringProgress)==null?void 0:Ve.currentLevelIncrement,ue!=0&&(q=((((qe=S.wageringProgress)==null?void 0:qe.currentLevelIncrement)-((He=S.wageringProgress)==null?void 0:He.gap))/ue*100).toFixed(1))):S.status=="released"?q=100:(ue=S.initialWagerRequirementAmount,ue!=0&&(q=((S.initialWagerRequirementAmount-S.remainingWagerRequirementAmount)/ue*100).toFixed(1))),Number(q)},Be=S=>G(S).format("YYYY-MM-DD hh:mm:ss"),Yt=S=>{if(!S.wallet)return;let q=S.wallet.validityMinutes;return q===0?"infinite":Math.round(q/1440)+" days"},Ri=S=>{if(S.products)return S.products;{let q=[];return S.wallet&&(S.wallet.casino&&q.push("Casino"),S.wallet.sports&&q.push("Sports")),q}},Yi=(S,q)=>{let ue;ue=n(`bonusType.${q.type}`);const Ve=Xl(Object.keys(S.increment)[0]);if(q.mode==="percentage")return`${q.bonusAmount*100}% up to ${Ve}${q.capAmount} ${ue}`;if(q.mode==="fixed")return`${Ve}${q.bonusAmount} ${ue}`},zi=(S,q)=>{switch(q.type){case"standard":case"freeBet":return Yi(S,q);case"freeRound":return`${q.freespinNumber} Free Spins`;case"tournamentTicket":return"Enroll to Tournament Ticket";case"oddsBoost":return"Enroll to Odds Boost";case"cashBack":return"Enroll to Cash Back";case"stakeBack":return"Enroll to Stake Back"}},as=(S,q)=>{var He;const ue=((He=S.wageringProgress)==null?void 0:He.currentLevel)-1,Ve=q.length-1,qe=Ut=>Ut.filter(it=>it.index>=0&&it.index<=Ve).map(it=>{const ut=q[it.index];return{label:it.label,desc:ut.bonuses.map(Qe=>zi(ut,Qe))}});return S.status==="active"?qe([{label:"current",index:ue},{label:"next",index:ue+1}]):S.status?qe([{label:"last",index:Ve},{label:"previous",index:Ve-1}]):qe([{label:"first",index:0},{label:"next",index:1}])},ls=S=>{var q,ue;r(19,re=S.url?S.url:(ue=(q=S.presentation)==null?void 0:q.url)==null?void 0:ue.content)},us=(S,q="")=>({part:S,class:[S,q].join(" ")}),Ui=S=>{window.postMessage({type:"BonusGameAction",gameId:S.id,name:S.name,gameLaunchUrl:S.href},window.location.href)},Vi=S=>{r(20,Q=!0),r(21,L=S)},Wi=()=>{r(20,Q=!1),r(21,L=-1)},ds=S=>{fetch(`${c}/${o}/bonuses-information/${S}`).then(q=>q.json()).then(q=>{q&&q[S]&&(r(13,N=!0),r(15,I=q[S]))})},cs=(S,q)=>{let ue=document.createElement("div");ue.innerHTML=q,S.append(ue)},hs=()=>r(23,U+=300),fs=S=>Ui(S),j=S=>Vi(S),ke=()=>Wi(),Ue=()=>r(23,U-=300),mr=()=>{r(10,_=!_)},zt=()=>window.postMessage({type:"OnWageringBonusAllRewardsClick",bonusWalletID:f.id}),Kh=()=>{r(11,E=!E)};function Qh(S){Pt[S?"unshift":"push"](()=>{Y=S,r(5,Y)})}return e.$$set=S=>{"rawbonus"in S&&r(40,s=S.rawbonus),"lang"in S&&r(41,o=S.lang),"status"in S&&r(0,a=S.status),"mbsource"in S&&r(1,l=S.mbsource),"clientstyling"in S&&r(2,u=S.clientstyling),"clientstylingurl"in S&&r(3,d=S.clientstylingurl),"cmsendpoint"in S&&r(42,c=S.cmsendpoint),"translationurl"in S&&r(43,h=S.translationurl)},e.$$.update=()=>{e.$$.dirty[0]&1&&(a==="claimable"&&r(8,v=!0),a==="active"&&r(8,v=!0)),e.$$.dirty[0]&1|e.$$.dirty[1]&1536&&r(44,i=s&&o&&a),e.$$.dirty[1]&8192&&i&&oe(),e.$$.dirty[0]&16|e.$$.dirty[1]&11264&&i&&f&&(o&&Dd(o),c?ds(f.id):ls(f)),e.$$.dirty[0]&36&&u&&Y&&zn(Y,u),e.$$.dirty[0]&40&&d&&Y&&Un(Y,d),e.$$.dirty[0]&34&&l&&Y&&Vn(Y,`${l}.Style`),e.$$.dirty[1]&4096&&h&&V()},[a,l,u,d,f,Y,b,g,v,y,_,E,w,N,x,I,Z,J,H,re,Q,L,$,U,n,ie,we,Me,K,Re,Be,Yt,Ri,zi,as,us,Ui,Vi,Wi,cs,s,o,c,h,i,hs,fs,j,ke,Ue,mr,zt,Kh,Qh]}class z2 extends In{constructor(t){super(),Bn(this,t,Y2,R2,Ti,{rawbonus:40,lang:41,status:0,mbsource:1,clientstyling:2,clientstylingurl:3,cmsendpoint:42,translationurl:43},c2,[-1,-1,-1])}get rawbonus(){return this.$$.ctx[40]}set rawbonus(t){this.$$set({rawbonus:t}),me()}get lang(){return this.$$.ctx[41]}set lang(t){this.$$set({lang:t}),me()}get status(){return this.$$.ctx[0]}set status(t){this.$$set({status:t}),me()}get mbsource(){return this.$$.ctx[1]}set mbsource(t){this.$$set({mbsource:t}),me()}get clientstyling(){return this.$$.ctx[2]}set clientstyling(t){this.$$set({clientstyling:t}),me()}get clientstylingurl(){return this.$$.ctx[3]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),me()}get cmsendpoint(){return this.$$.ctx[42]}set cmsendpoint(t){this.$$set({cmsendpoint:t}),me()}get translationurl(){return this.$$.ctx[43]}set translationurl(t){this.$$set({translationurl:t}),me()}}customElements.define("casino-bonus-card",Nn(z2,{rawbonus:{},lang:{},status:{},mbsource:{},clientstyling:{},clientstylingurl:{},cmsendpoint:{},translationurl:{}},[],[],!0));function U2({totalItems:e,pageSize:t,currentPage:r,limit:i}){const n=Math.ceil(e/t),o=i&&n>$2(i)?W2({totalPages:n,limit:i,currentPage:r}):V2({totalPages:n});return[{type:"symbol",symbol:"<",value:r<=1?1:r-1},...o||[],{type:"symbol",symbol:">",value:r>=n?n:r+1}]}function V2({totalPages:e}){return new Array(e).fill(null).map((t,r)=>({type:"number",value:r+1}))}function W2({totalPages:e,limit:t,currentPage:r}){const i=t*2+2,n=1+i,s=e-i,o=n+2;return r<=n-t?Array(o).fill(null).map((a,l)=>l===o-1?{type:"number",value:e}:l===o-2?{type:"symbol",symbol:".",value:n+1}:{type:"number",value:l+1}):r>=s+t?Array(o).fill(null).map((a,l)=>l===0?{type:"number",value:1}:l===1?{type:"symbol",symbol:".",value:s-1}:{type:"number",value:s+l-2}):r>=n-t&&r<=s+t?Array(o).fill(null).map((a,l)=>l===0?{type:"number",value:1}:l===1?{type:"symbol",symbol:".",value:r-t+(l-2)}:l===o-1?{type:"number",value:e}:l===o-2?{type:"symbol",symbol:".",value:r+t+1}:{type:"number",value:r-t+(l-2)}):[]}function $2(e){return e*2+3+2}function G2(e){Mn(e,"svelte-1tlblg6",":host{font-family:inherit}.GeneralPagination{margin:40px 0;display:flex}.PaginationWrapper{flex:1;display:flex;justify-content:center}.PaginationWrapper.PaginationWrapperMobile{flex-wrap:wrap;text-align:center}.PaginationWrapper .prev,.PaginationWrapper .next,.PaginationWrapper .number{color:var(--emw--bonus-pagination-text, var(--emw--color-contrast-600, #0D0D4D));font-size:16px;cursor:pointer;font-weight:700;border:1px solid var(--emw--bonus-pagination-border, var(--emw--color-gray-150, #828282));width:32px;height:32px;line-height:28px;text-align:center;margin-right:2px;border-radius:2px}.PaginationWrapper .prev.disabled,.PaginationWrapper .next.disabled,.PaginationWrapper .number.disabled{color:var(--emw--bonus-pagination-disabled, var(--emw--color-gray-100, #E6E6E6));border-color:var(--emw--bonus-pagination-disabled, var(--emw--color-gray-100, #E6E6E6));cursor:default}.PaginationWrapper .prev.active,.PaginationWrapper .next.active,.PaginationWrapper .number.active{background-color:var(--emw--bonus-pagination-bg, var(--emw--color-contrast, #00AEEF));color:var(--emw--bonus-pagination-active, var(--emw--color-white, #FFFFFF))}.PaginationWrapper .ellipsis{width:32px;margin-right:2px;text-align:center;line-height:20px}.PaginationWrapper .Page{margin:0 5px;color:var(--emw--bonus-pagination-text, var(--emw--color-gray-300, #58586B));font-size:16px;cursor:pointer;padding:5px 10px}.PaginationWrapper .Page.active{background-color:var(--emw--bonus-pagination-active, var(--emw--color-white, #FFFFFF));font-weight:700}.PaginationInputWrapper{flex:1}.PaginationInputWrapper .PaginationInput{padding:7px 0 6px 0;width:32px;text-align:center}.PaginationInputWrapper .PaginationGoButton{background:none;border:none;cursor:pointer;font-size:18px}")}function Tu(e,t,r){const i=e.slice();return i[29]=t[r],i}const j2=e=>({}),Du=e=>({}),q2=e=>({}),Pu=e=>({}),Z2=e=>({}),Mu=e=>({}),X2=e=>({value:e[0]&32}),Ou=e=>({value:e[29].value});function J2(e){let t;const r=e[21].next,i=Di(r,e,e[20],Du),n=i||tC();return{c(){n&&n.c()},m(s,o){n&&n.m(s,o),t=!0},p(s,o){i&&i.p&&(!t||o[0]&1048576)&&Mi(i,r,s,s[20],t?Pi(r,s[20],o,j2):Oi(s[20]),Du)},i(s){t||(ht(n,s),t=!0)},o(s){Nt(n,s),t=!1},d(s){n&&n.d(s)}}}function K2(e){let t;const r=e[21].prev,i=Di(r,e,e[20],Pu),n=i||rC();return{c(){n&&n.c()},m(s,o){n&&n.m(s,o),t=!0},p(s,o){i&&i.p&&(!t||o[0]&1048576)&&Mi(i,r,s,s[20],t?Pi(r,s[20],o,q2):Oi(s[20]),Pu)},i(s){t||(ht(n,s),t=!0)},o(s){Nt(n,s),t=!1},d(s){n&&n.d(s)}}}function Q2(e){let t;const r=e[21].ellipsis,i=Di(r,e,e[20],Mu),n=i||iC();return{c(){n&&n.c()},m(s,o){n&&n.m(s,o),t=!0},p(s,o){i&&i.p&&(!t||o[0]&1048576)&&Mi(i,r,s,s[20],t?Pi(r,s[20],o,Z2):Oi(s[20]),Mu)},i(s){t||(ht(n,s),t=!0)},o(s){Nt(n,s),t=!1},d(s){n&&n.d(s)}}}function eC(e){let t;const r=e[21].number,i=Di(r,e,e[20],Ou),n=i||nC(e);return{c(){n&&n.c()},m(s,o){n&&n.m(s,o),t=!0},p(s,o){i?i.p&&(!t||o[0]&1048608)&&Mi(i,r,s,s[20],t?Pi(r,s[20],o,X2):Oi(s[20]),Ou):n&&n.p&&(!t||o[0]&32)&&n.p(s,t?o:[-1,-1])},i(s){t||(ht(n,s),t=!0)},o(s){Nt(n,s),t=!1},d(s){n&&n.d(s)}}}function tC(e){let t;return{c(){t=O(">")},m(r,i){B(r,t,i)},d(r){r&&P(t)}}}function rC(e){let t;return{c(){t=O("<")},m(r,i){B(r,t,i)},d(r){r&&P(t)}}}function iC(e){let t;return{c(){t=C("span"),t.textContent="..."},m(r,i){B(r,t,i)},p:Se,d(r){r&&P(t)}}}function nC(e){let t,r=e[29].value+"",i;return{c(){t=C("span"),i=O(r)},m(n,s){B(n,t,s),p(t,i)},p(n,s){s[0]&32&&r!==(r=n[29].value+"")&&Ce(i,r)},d(n){n&&P(t)}}}function Bu(e){let t,r,i,n,s,o,a,l;const u=[eC,Q2,K2,J2],d=[];function c(f,b){return f[29].type==="number"?0:f[29].type==="symbol"&&f[29].symbol==="."?1:f[29].type==="symbol"&&f[29].symbol==="<"?2:f[29].type==="symbol"&&f[29].symbol===">"?3:-1}~(r=c(e))&&(i=d[r]=u[r](e));function h(){return e[22](e[29])}return{c(){t=C("button"),i&&i.c(),n=W(),t.disabled=s=e[29].type==="symbol"&&e[29].symbol===">"&&e[1]>=e[6]||e[29].type==="symbol"&&e[29].symbol==="<"&&e[1]<=1,m(t,"class","option"),m(t,"role","presentation"),le(t,"number",e[29].type==="number"),le(t,"prev",e[29].type==="symbol"&&e[29].symbol==="<"),le(t,"next",e[29].type==="symbol"&&e[29].symbol===">"),le(t,"disabled",e[29].type==="symbol"&&e[29].symbol===">"&&e[1]>=e[6]||e[29].type==="symbol"&&e[29].symbol==="<"&&e[1]<=1),le(t,"ellipsis",e[29].type==="symbol"&&e[29].symbol==="."),le(t,"active",e[29].type==="number"&&e[29].value===e[1])},m(f,b){B(f,t,b),~r&&d[r].m(t,null),p(t,n),o=!0,a||(l=Le(t,"click",h),a=!0)},p(f,b){e=f;let g=r;r=c(e),r===g?~r&&d[r].p(e,b):(i&&(td(),Nt(d[g],1,1,()=>{d[g]=null}),rd()),~r?(i=d[r],i?i.p(e,b):(i=d[r]=u[r](e),i.c()),ht(i,1),i.m(t,n)):i=null),(!o||b[0]&98&&s!==(s=e[29].type==="symbol"&&e[29].symbol===">"&&e[1]>=e[6]||e[29].type==="symbol"&&e[29].symbol==="<"&&e[1]<=1))&&(t.disabled=s),(!o||b[0]&32)&&le(t,"number",e[29].type==="number"),(!o||b[0]&32)&&le(t,"prev",e[29].type==="symbol"&&e[29].symbol==="<"),(!o||b[0]&32)&&le(t,"next",e[29].type==="symbol"&&e[29].symbol===">"),(!o||b[0]&98)&&le(t,"disabled",e[29].type==="symbol"&&e[29].symbol===">"&&e[1]>=e[6]||e[29].type==="symbol"&&e[29].symbol==="<"&&e[1]<=1),(!o||b[0]&32)&&le(t,"ellipsis",e[29].type==="symbol"&&e[29].symbol==="."),(!o||b[0]&34)&&le(t,"active",e[29].type==="number"&&e[29].value===e[1])},i(f){o||(ht(i),o=!0)},o(f){Nt(i),o=!1},d(f){f&&P(t),~r&&d[r].d(),a=!1,l()}}}function Nu(e){let t,r,i,n,s,o,a,l;return{c(){t=C("div"),r=C("span"),r.textContent="Go To Page",i=W(),n=C("input"),s=W(),o=C("button"),o.textContent="Go",m(n,"type","number"),m(n,"class","PaginationInput"),m(n,"part","PaginationInput"),m(o,"type","button"),m(o,"class","PaginationGoButton"),m(t,"class","PaginationInputWrapper")},m(u,d){B(u,t,d),p(t,r),p(t,i),p(t,n),fn(n,e[3]),p(t,s),p(t,o),a||(l=[Le(n,"input",e[23]),Le(n,"change",e[24]),Le(o,"click",e[25])],a=!0)},p(u,d){d[0]&8&&ed(n.value)!==u[3]&&fn(n,u[3])},d(u){u&&P(t),a=!1,mt(l)}}}function sC(e){let t,r,i,n,s,o,a=je(e[5]),l=[];for(let c=0;c<a.length;c+=1)l[c]=Bu(Tu(e,a,c));const u=c=>Nt(l[c],1,1,()=>{l[c]=null});let d=e[7]&&Nu(e);return{c(){t=C("div"),r=C("div");for(let c=0;c<l.length;c+=1)l[c].c();s=W(),d&&d.c(),m(r,"class",i="PaginationWrapper "+(e[2]?"PaginationWrapperMobile":"")),m(r,"part",n="PaginationWrapper "+(e[2]?"PaginationWrapperMobile":"")),m(t,"class","GeneralPagination"),m(t,"part","GeneralPagination")},m(c,h){B(c,t,h),p(t,r);for(let f=0;f<l.length;f+=1)l[f]&&l[f].m(r,null);p(t,s),d&&d.m(t,null),e[26](t),o=!0},p(c,h){if(h[0]&1048930){a=je(c[5]);let f;for(f=0;f<a.length;f+=1){const b=Tu(c,a,f);l[f]?(l[f].p(b,h),ht(l[f],1)):(l[f]=Bu(b),l[f].c(),ht(l[f],1),l[f].m(r,null))}for(td(),f=a.length;f<l.length;f+=1)u(f);rd()}(!o||h[0]&4&&i!==(i="PaginationWrapper "+(c[2]?"PaginationWrapperMobile":"")))&&m(r,"class",i),(!o||h[0]&4&&n!==(n="PaginationWrapper "+(c[2]?"PaginationWrapperMobile":"")))&&m(r,"part",n),c[7]?d?d.p(c,h):(d=Nu(c),d.c(),d.m(t,null)):d&&(d.d(1),d=null)},i(c){if(!o){for(let h=0;h<a.length;h+=1)ht(l[h]);o=!0}},o(c){l=l.filter(Boolean);for(let h=0;h<l.length;h+=1)Nt(l[h]);o=!1},d(c){c&&P(t),Jt(l,c),d&&d.d(),e[26](null)}}}function oC(e,t,r){let i,n,s,o,a,{$$slots:l={},$$scope:u}=t,{totalitems:d=""}=t,{pagesize:c=10}=t,{currentpage:h="1"}=t,{limit:f=2}=t,{showinput:b=""}=t,{mbsource:g}=t,{clientstyling:v=""}=t,{clientstylingurl:y=""}=t,_=window.navigator.userAgent,E=!1,w;Ld(_)&&(E=!0);let N,x,I;const Z=L=>{window.postMessage({type:"PaginationChange",page:L.value})},J=L=>{r(4,x=L>a?a:L)};On(()=>()=>{});const H=L=>Z(L);function D(){N=ed(this.value),r(3,N)}const Y=()=>J(N),re=()=>Z({value:x});function Q(L){Pt[L?"unshift":"push"](()=>{w=L,r(0,w)})}return e.$$set=L=>{"totalitems"in L&&r(10,d=L.totalitems),"pagesize"in L&&r(11,c=L.pagesize),"currentpage"in L&&r(12,h=L.currentpage),"limit"in L&&r(13,f=L.limit),"showinput"in L&&r(14,b=L.showinput),"mbsource"in L&&r(15,g=L.mbsource),"clientstyling"in L&&r(16,v=L.clientstyling),"clientstylingurl"in L&&r(17,y=L.clientstylingurl),"$$scope"in L&&r(20,u=L.$$scope)},e.$$.update=()=>{e.$$.dirty[0]&65537&&v&&w&&zn(w,v),e.$$.dirty[0]&131073&&y&&w&&Un(w,y),e.$$.dirty[0]&32769&&g&&w&&Vn(w,`${g}.Style`),e.$$.dirty[0]&1024&&r(19,i=Number(d)),e.$$.dirty[0]&16384&&r(7,n=b),e.$$.dirty[0]&4096&&r(1,s=Number(h)),e.$$.dirty[0]&2048&&r(18,o=c),e.$$.dirty[0]&794626&&r(5,I=U2({totalItems:i,pageSize:o,currentPage:s,limit:f})),e.$$.dirty[0]&786432&&r(6,a=Math.ceil(i/o))},[w,s,E,N,x,I,a,n,Z,J,d,c,h,f,b,g,v,y,o,i,u,l,H,D,Y,re,Q]}class aC extends In{constructor(t){super(),Bn(this,t,oC,sC,Ti,{totalitems:10,pagesize:11,currentpage:12,limit:13,showinput:14,mbsource:15,clientstyling:16,clientstylingurl:17},G2,[-1,-1])}get totalitems(){return this.$$.ctx[10]}set totalitems(t){this.$$set({totalitems:t}),me()}get pagesize(){return this.$$.ctx[11]}set pagesize(t){this.$$set({pagesize:t}),me()}get currentpage(){return this.$$.ctx[12]}set currentpage(t){this.$$set({currentpage:t}),me()}get limit(){return this.$$.ctx[13]}set limit(t){this.$$set({limit:t}),me()}get showinput(){return this.$$.ctx[14]}set showinput(t){this.$$set({showinput:t}),me()}get mbsource(){return this.$$.ctx[15]}set mbsource(t){this.$$set({mbsource:t}),me()}get clientstyling(){return this.$$.ctx[16]}set clientstyling(t){this.$$set({clientstyling:t}),me()}get clientstylingurl(){return this.$$.ctx[17]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),me()}}customElements.define("casino-bonus-pagination",Nn(aC,{totalitems:{},pagesize:{},currentpage:{},limit:{},showinput:{},mbsource:{},clientstyling:{},clientstylingurl:{}},["number","ellipsis","prev","next"],[],!0));function lC(e){Mn(e,"svelte-bgb61g",':host{font-family:system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"}*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit}.BonusList{display:flex;flex-wrap:wrap}.BonusItem{flex:0 0 50%;max-width:50%;padding:10px}.BonusItemMobile{flex:0 0 100%;max-width:100%}.BonusPaginationWrapper{margin:40px 0;display:flex;justify-content:center}.BonusPaginationWrapper.BonusPaginationWrapperMobile{flex-wrap:wrap;text-align:center}.BonusPaginationWrapper .BonusesFirst,.BonusPaginationWrapper .BonusesPrev,.BonusPaginationWrapper .BonusesNext,.BonusPaginationWrapper .BonusesLast{color:var(--emw--bonus-pagination-primary, var(--emw--color-blue, #00AEEF));font-size:16px;cursor:pointer;padding:5px 10px;font-weight:700}.BonusPaginationWrapper .BonusesFirst.Inactive,.BonusPaginationWrapper .BonusesPrev.Inactive,.BonusPaginationWrapper .BonusesNext.Inactive,.BonusPaginationWrapper .BonusesLast.Inactive{color:var(--emw--bonus-pagination-inactive-text, var(--emw--color-gray-100, #E6E6E6));cursor:default}.BonusPaginationWrapper .BonusesPage{margin:0 5px;color:var(--emw--bonus-pagination-text, var(--emw--color-gray-300, #58586B));font-size:16px;cursor:pointer;padding:5px 10px}.BonusPaginationWrapper .BonusesPage.BonusPageActive{background-color:var(--emw--bonus-pagination-active-bg, var(--emw--color-white, #FFFFFF));font-weight:700}.ModalLoader{display:block;width:80px;height:80px;margin:0 auto}.ModalLoader:after{content:" ";display:block;width:64px;height:64px;margin:8px;border-radius:50%;border:6px solid var(--emw--bonus-pagination-border, var(--emw--color-blue, #00AEEF));border-color:var(--emw--bonus-pagination-border, var(--emw--color-blue, #00AEEF)) transparent var(--emw--bonus-pagination-primary, var(--emw--color-blue, #00AEEF)) transparent;animation:LoaderForModal 1.2s linear infinite}@keyframes LoaderForModal{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}.BonusCalendarWrapper{display:flex;gap:20px;flex-wrap:wrap;background:var(--emw--bonus-calendar-bg, var(--emw--color-gray-50, #F4F4F4));border-radius:5px;padding:27px;width:calc(50% - 20px);margin:10px}.BonusCalendarContent{display:flex;gap:20px;flex-wrap:wrap}.BonusCalendarContainer{display:flex;gap:20px;flex-wrap:wrap;flex:4}.BonusCalendarContainer.BonusCalendarContainerMobile{flex-direction:row;gap:0;justify-content:space-between;padding-bottom:0;width:100%;flex-direction:column}.BonusCalendarTitle{font-size:18px;font-weight:700;width:100%;color:var(--emw--bonus-calendar-text, var(--emw--color-gray-300, #58586B))}.BonusCalendarStartDate,.BonusCalendarEndDate{color:var(--emw--bonus-calendar-text, var(--emw--color-gray-300, #58586B));display:flex;position:relative;align-items:center;gap:10px;min-width:140px;flex:0 0 47%;flex-wrap:wrap}.BonusCalendarStartDate vaadin-date-picker,.BonusCalendarEndDate vaadin-date-picker{width:100%}.BonusCalendarStartDate.BonusesCalendarMobile,.BonusCalendarEndDate.BonusesCalendarMobile{flex-direction:column;align-items:flex-start;gap:5px;width:100%}.BonusCalendarStartDate.BonusesCalendarMobile .VaadinDatePicker,.BonusCalendarEndDate.BonusesCalendarMobile .VaadinDatePicker{width:100%}.BonusCalendarStartDate label,.BonusCalendarEndDate label{font-size:14px;font-weight:300;width:100%;text-transform:capitalize}.BonusCalendarStartDate input,.BonusCalendarEndDate input{width:100%;height:44px;border:1px solid var(--emw--bonus-calendar-border, var(--emw--color-gray-100, #E6E6E6));border-radius:5px;box-sizing:border-box;padding:5px 15px;font-size:16px;line-height:18px;outline-color:var(--emw--bonus-calendar-outline, var(--emw--color-primary, #00AEEF))}.BonusFilterButton{flex:2;background:var(--emw--bonus-filter-bg, var(--emw--color-yellow, #F39C12));outline:5px solid var(--emw--bonus-filter-outline, var(--emw--color-yellow, rgba(243, 156, 18, 0.3)));border-radius:9px;border:0;width:180px;max-width:180px;height:38px;font-size:18px;font-weight:400;text-align:center;transition-duration:0.5s;transition-property:outline, color, background;box-sizing:border-box;cursor:pointer;color:var(--emw--bonus-filter-text, var(--emw--color-white, #FFFFFF));align-self:end;margin-bottom:5px}.BonusFilterButton[disabled]{opacity:0.3;cursor:not-allowed}.BonusFilterButton.BonusFilterButtonMobile{width:100%;min-width:100%}.BonusFilterButton:hover{background:var(--emw--bonus-filter-bg, var(--emw--color-yellow, #F38B12));outline:0}.BonusFilterButton:active{background:var(--emw--bonus-filter-bg, var(--emw--color-yellow, #F38B12));outline-color:var(--emw--bonus-filter-outline, var(--emw--color-yellow, rgba(243, 156, 18, 0.6)))}.BonusFilterWrapper{display:flex;gap:15px;padding:10px;align-items:flex-start}.BonusFilterWrapper.BonusFilterWrapperMobile{width:100%;flex-direction:column;gap:10px;padding:0;padding-bottom:15px}.BonusFilterContainer{display:flex;gap:5px;border-bottom:5px solid var(--emw--bonus-filter-border, var(--emw--color-green, #53B65A));width:100%}.BonusStatusFilter{color:var(--emw--bonus-status-filter-text, var(--emw--color-gray-300, #6D6D6D));cursor:pointer;width:200px;height:50px;font-size:18px;text-transform:capitalize;text-align:center;transition-duration:0.5s;box-sizing:border-box;padding:15px;background:var(--emw--bonus-status-filter-bg, var(--emw--color-white, #FFFFFF));border:1px solid var(--emw--bonus-status-filter-border, var(--emw--color-gray-300, #767171));border-bottom:0;border-radius:5px 5px 0px 0px}.BonusStatusFilter.BonusStatusFilterMobile{width:100%;height:44px}.BonusStatusFilter.active{color:var(--emw--bonus-status-active-bg, var(--emw--color-white, #FFFFFF));background:var(--emw--bonus-status-active-bg, var(--emw--color-gray-300, #4E5662));border:0.5px solid var(--emw--bonus-status-active-border, var(--emw--color-gray-300, #767171))}.BonusPageNumber{color:var(--emw--bonus-page-number-text, var(--emw--color-gray-150, #9C9C9C));flex:1;display:flex;flex-wrap:wrap}.BonusPageNumberTabs{display:flex}.BonusPageNumberTabs .BonusPageNumberTab{cursor:pointer;width:36px;height:36px;padding:10px;text-align:center}.BonusPageNumberTabs .BonusPageNumberTab.active{color:var(--emw--bonus-page-number-text, var(--emw--color-white, #FFFFFF));background:var(--emw--bonus-page-number-active, var(--emw--color-yellow, #F39C12));border-radius:50%}.BonusCodeContainer{color:var(--emw--bonus-page-number-text, var(--emw--color-black, #000000));display:flex;flex-direction:column;position:relative;width:calc(50% - 20px);background:#F4F4F4;border-radius:5px;padding:36px;margin:10px}.BonusCodeContainer label{font-size:18px;font-weight:700;padding-bottom:20px}.BonusCodeContainer .Asterisk{color:var(--emw--bonus-card-red, var(--emw--color-red, #FD2839))}.BonusCodeContainer.BonusCodeContainerMobile{width:100%;margin:0 0 10px}.BonusCodeContainer .BonusCodeWrapper{display:flex;gap:10px}.BonusCodeContainer .BonusCodeWrapper.BonusCodeWrapperMobile{flex-direction:column}.BonusCodeContainer .BonusCodeWrapper .BonusCodeInput{flex:3;height:50px;border:1px solid var(--emw--bonus-code-border, var(--emw--color-gray-50, #D1D1D1));border-radius:5px;box-sizing:border-box;padding:5px 15px;font-size:16px;line-height:18px}.BonusCodeContainer .BonusCodeWrapper .BonusCodeInput:focus{outline-color:var(--emw--bonus-code-outline, var(--emw--color-gray-100, #C1C1C1))}.BonusCodeContainer .BonusCodeWrapper .BonusCodeInput.BonusCodeInputMobile{width:100%}.BonusCodeContainer .BonusCodeWrapper .BonusClaimButton{background:var(--emw--bonus-claim-bg, var(--emw--color-yellow, #F39C12));outline:5px solid var(--emw--bonus-claim-outline, var(--emw--color-yellow, rgba(243, 156, 18, 0.3)));border-radius:9px;border:0;width:180px;height:38px;font-size:18px;font-weight:400;text-align:center;transition-duration:0.5s;box-sizing:border-box;margin-top:5px;cursor:pointer;color:var(--emw--bonus-claim-text, var(--emw--color-white, #FFFFFF))}.BonusCodeContainer .BonusCodeWrapper .BonusClaimButton[disabled]{opacity:0.3;cursor:not-allowed}.BonusCodeContainer .BonusCodeWrapper .BonusClaimButton.BonusClaimButtonMobile{width:100%}.BonusCodeContainer .BonusCodeWrapper .BonusClaimButton:hover{background:var(--emw--bonus-claim-hover-bg, var(--emw--color-yellow, #F38B12));outline:0}.BonusCodeContainer .BonusCodeWrapper .BonusClaimButton:active{background:var(--emw--bonus-claim-active-bg, var(--emw--color-yellow, #F38B12));outline-color:var(--emw--bonus-claim-active-outline, var(--emw--color-white, rgba(243, 156, 18, 0.6)))}.BonusCodeContainer.InvalidField input{border:1px solid var(--emw--color-primary, #00AEEF);background:var(--emw--color-primary-50, #FBECF4);color:var(--emw--color-primary, #00AEEF)}.BonusCodeContainer .InvalidBonusCodeMessage{color:var(--emw--color-error, #FD2839)}.ModalWrapper{position:fixed;top:0;right:0;bottom:0;left:0;background-color:var(--emw--bonus-modal-bg, var(--emw--color-black, rgba(0, 0, 0, 0.7)));display:flex;justify-content:center;align-items:center;z-index:100}.ModalWrapper .ModalContent{background-color:var(--emw--bonus-modal-bg, var(--emw--color-white, #FFFFFF));position:relative;padding:30px;border-top:5px solid var(--emw--bonus-modal-border, var(--emw--color-primary, #00AEEF));border-radius:5px}.ModalWrapper .ModalBody{background-color:var(--emw--bonus-modal-bg, var(--emw--color-gray-50, #F9F8F8));padding:30px;text-align:center}.ModalWrapper .ModalBody .ModalText{font-size:22px;margin-bottom:40px}.ModalWrapper .ModalBody .ModalButtons{display:flex;gap:36px}.ModalWrapper .ModalBody .ModalCancel,.ModalWrapper .ModalBody .ModalConfirm{background:transparent;border:1px solid var(--emw--bonus-modal-border, var(--emw--color-gray-300, #58586B));color:var(--emw--bonus-modal-text, var(--emw--color-gray-300, #58586B));cursor:pointer;border-radius:5px;width:180px;height:38px;font-size:18px;text-transform:capitalize;text-align:center;transition-duration:0.5s;box-sizing:border-box;padding:10px}.ModalWrapper .ModalBody .ModalConfirm{background:var(--emw--bonus-modal-bg, var(--emw--color-primary, #00AEEF));border:1px solid var(--emw--bonus-modal-bg, var(--emw--color-primary, #00AEEF));color:var(--emw--bonus-modal-text, var(--emw--color-white, #FFFFFF))}.ModalWrapper.ModalWrapperMobile .ModalContent{padding:20px;width:80vw;border-top:none}.ModalWrapper.ModalWrapperMobile .ModalBody{padding:0;background:transparent}.ModalWrapper.ModalWrapperMobile .ModalText{font-size:16px}.ModalWrapper.ModalWrapperMobile .ModalButtons{gap:10px}.ModalWrapper.ModalWrapperMobile .ModalCancel,.ModalWrapper.ModalWrapperMobile .ModalConfirm{height:40px;width:50%;font-size:14px}@media only screen and (max-width: 1024px){.BonusCodeContainer{width:100%}.BonusCalendarWrapper,.BonusCalendarContent,.BonusCalendarContainer{width:100%;flex-wrap:wrap}.BonusCalendarWrapper{margin:10px 0 0 0}.BonusFilterWrapper{width:100%;flex-direction:column;gap:10px;padding:10px 0}.BonusStatusFilter{width:100%}.BonusFilterButton{margin-top:0}.BonusFilterButton,.BonusClaimButton{width:100%}.BonusItem{flex:0 0 100%;max-width:100%;padding:0;margin:10px 0 0 0}.BonusCalendarStartDate,.BonusCalendarEndDate{flex-direction:column;align-items:flex-start;gap:5px}.BonusCalendarStartDate .VaadinDatePicker,.BonusCalendarEndDate .VaadinDatePicker{width:100%}.BonusCalendarTitle{width:100%}}')}function Iu(e,t,r){const i=e.slice();return i[63]=t[r],i}function Lu(e,t,r){const i=e.slice();return i[66]=t[r],i}function Fu(e){let t,r=e[26](`bonusCard.${e[66]}`)+"",i,n,s,o,a=[{type:"button"},e[25]("BonusStatusFilter"),{disabled:e[11]}],l={};for(let d=0;d<a.length;d+=1)l=T(l,a[d]);function u(){return e[39](e[66])}return{c(){t=C("button"),i=O(r),n=W(),k(t,l),le(t,"active",e[66]===e[22])},m(d,c){B(d,t,c),p(t,i),p(t,n),t.autofocus&&t.focus(),s||(o=Le(t,"click",u),s=!0)},p(d,c){e=d,c[0]&67108864&&r!==(r=e[26](`bonusCard.${e[66]}`)+"")&&ne(i,r,l.contenteditable),k(t,l=Ie(a,[{type:"button"},c[0]&33554432&&e[25]("BonusStatusFilter"),c[0]&2048&&{disabled:e[11]}])),le(t,"active",e[66]===e[22])},d(d){d&&P(t),s=!1,o()}}}function uC(e){let t,r,i=e[26]("bonus.canlendarTitle")+"",n,s,o,a,l,u,d=e[26]("bonus.from")+"",c,h,f,b,g,v,y=e[26]("bonus.to")+"",_,E,w,N,x,I=e[26]("bonus.filter")+"",Z,J,H,D=[e[32]("BonusCalendarTitle")],Y={};for(let R=0;R<D.length;R+=1)Y=T(Y,D[R]);let re=[{max:e[16]},{value:e[17]},{placeholder:"From"},e[32]("VaadinDatePicker")],Q={};for(let R=0;R<re.length;R+=1)Q=T(Q,re[R]);let L=[e[25]("BonusCalendarStartDate")],$={};for(let R=0;R<L.length;R+=1)$=T($,L[R]);let U=[{value:e[16]},{placeholder:"To"},e[32]("VaadinDatePicker")],V={};for(let R=0;R<U.length;R+=1)V=T(V,U[R]);let oe=[e[25]("BonusCalendarEndDate")],xe={};for(let R=0;R<oe.length;R+=1)xe=T(xe,oe[R]);let Oe=[e[25]("BonusCalendarContainer")],ie={};for(let R=0;R<Oe.length;R+=1)ie=T(ie,Oe[R]);let we=[e[25]("BonusFilterButton"),{disabled:e[11]}],ae={};for(let R=0;R<we.length;R+=1)ae=T(ae,we[R]);let ce=[e[32]("BonusCalendarContent")],M={};for(let R=0;R<ce.length;R+=1)M=T(M,ce[R]);let z=[e[25]("BonusCalendarWrapper")],A={};for(let R=0;R<z.length;R+=1)A=T(A,z[R]);return{c(){t=C("div"),r=C("div"),n=O(i),s=W(),o=C("div"),a=C("div"),l=C("div"),u=C("label"),c=O(d),h=W(),f=C("vaadin-date-picker"),b=W(),g=C("div"),v=C("label"),_=O(y),E=W(),w=C("vaadin-date-picker"),N=W(),x=C("button"),Z=O(I),k(r,Y),m(u,"for","BonusCalendarStartDate"),k(f,Q),k(l,$),m(v,"for","BonusCalendarEndDate"),k(w,V),k(g,xe),k(a,ie),k(x,ae),k(o,M),k(t,A)},m(R,Me){B(R,t,Me),p(t,r),p(r,n),p(t,s),p(t,o),p(o,a),p(a,l),p(l,u),p(u,c),p(l,h),p(l,f),e[42](f),p(a,b),p(a,g),p(g,v),p(v,_),p(g,E),p(g,w),e[43](w),p(o,N),p(o,x),p(x,Z),x.autofocus&&x.focus(),J||(H=Le(x,"click",e[44]),J=!0)},p(R,Me){Me[0]&67108864&&i!==(i=R[26]("bonus.canlendarTitle")+"")&&ne(n,i,Y.contenteditable),Me[0]&67108864&&d!==(d=R[26]("bonus.from")+"")&&Ce(c,d),k(f,Q=Ie(re,[Me[0]&65536&&{max:R[16]},Me[0]&131072&&{value:R[17]},{placeholder:"From"},R[32]("VaadinDatePicker")])),k(l,$=Ie(L,[Me[0]&33554432&&R[25]("BonusCalendarStartDate")])),Me[0]&67108864&&y!==(y=R[26]("bonus.to")+"")&&Ce(_,y),k(w,V=Ie(U,[Me[0]&65536&&{value:R[16]},{placeholder:"To"},R[32]("VaadinDatePicker")])),k(g,xe=Ie(oe,[Me[0]&33554432&&R[25]("BonusCalendarEndDate")])),k(a,ie=Ie(Oe,[Me[0]&33554432&&R[25]("BonusCalendarContainer")])),Me[0]&67108864&&I!==(I=R[26]("bonus.filter")+"")&&ne(Z,I,ae.contenteditable),k(x,ae=Ie(we,[Me[0]&33554432&&R[25]("BonusFilterButton"),Me[0]&2048&&{disabled:R[11]}])),k(t,A=Ie(z,[Me[0]&33554432&&R[25]("BonusCalendarWrapper")]))},d(R){R&&P(t),e[42](null),e[43](null),J=!1,H()}}}function dC(e){let t,r,i,n=e[26]("bonus.bonusCode")+"",s,o,a,l,u,d,c,h=e[26]("bonus.claim")+"",f,b,g,v,y,_=[e[25]("BonusCodeInput"),{type:"text"},{id:"BonusCode"},{placeholder:u=e[26]("bonus.placeholder")}],E={};for(let D=0;D<_.length;D+=1)E=T(E,_[D]);let w=[e[25]("BonusClaimButton"),{disabled:b=e[19]||!e[23]}],N={};for(let D=0;D<w.length;D+=1)N=T(N,w[D]);let x=[e[25]("BonusCodeWrapper")],I={};for(let D=0;D<x.length;D+=1)I=T(I,x[D]);let Z=e[20]&&Hu(e),J=[e[25]("BonusCodeContainer")],H={};for(let D=0;D<J.length;D+=1)H=T(H,J[D]);return{c(){t=C("div"),r=C("label"),i=C("span"),i.textContent="*",s=O(n),o=W(),a=C("div"),l=C("input"),d=W(),c=C("button"),f=O(h),g=W(),Z&&Z.c(),m(i,"class","Asterisk"),m(r,"for","BonusCode"),k(l,E),k(c,N),k(a,I),k(t,H)},m(D,Y){B(D,t,Y),p(t,r),p(r,i),p(r,s),p(t,o),p(t,a),p(a,l),l.autofocus&&l.focus(),fn(l,e[18]),p(a,d),p(a,c),p(c,f),c.autofocus&&c.focus(),p(t,g),Z&&Z.m(t,null),v||(y=[Le(l,"input",e[40]),Le(l,"keyup",e[33]),Le(c,"click",e[41])],v=!0)},p(D,Y){Y[0]&67108864&&n!==(n=D[26]("bonus.bonusCode")+"")&&Ce(s,n),k(l,E=Ie(_,[Y[0]&33554432&&D[25]("BonusCodeInput"),{type:"text"},{id:"BonusCode"},Y[0]&67108864&&u!==(u=D[26]("bonus.placeholder"))&&{placeholder:u}])),Y[0]&262144&&l.value!==D[18]&&fn(l,D[18]),Y[0]&67108864&&h!==(h=D[26]("bonus.claim")+"")&&ne(f,h,N.contenteditable),k(c,N=Ie(w,[Y[0]&33554432&&D[25]("BonusClaimButton"),Y[0]&8912896&&b!==(b=D[19]||!D[23])&&{disabled:b}])),k(a,I=Ie(x,[Y[0]&33554432&&D[25]("BonusCodeWrapper")])),D[20]?Z?Z.p(D,Y):(Z=Hu(D),Z.c(),Z.m(t,null)):Z&&(Z.d(1),Z=null),k(t,H=Ie(J,[Y[0]&33554432&&D[25]("BonusCodeContainer")]))},d(D){D&&P(t),Z&&Z.d(),v=!1,mt(y)}}}function Hu(e){let t,r=e[26]("bonus.invalidBonusCode")+"",i;return{c(){t=C("p"),i=O(r),m(t,"class","InvalidBonusCodeMessage"),m(t,"part","InvalidBonusCodeMessage")},m(n,s){B(n,t,s),p(t,i)},p(n,s){s[0]&67108864&&r!==(r=n[26]("bonus.invalidBonusCode")+"")&&Ce(i,r)},d(n){n&&P(t)}}}function cC(e){let t,r;function i(a,l){return a[10].length>0?mC:a[12]?pC:fC}let n=i(e),s=n(e),o=e[10].length!==0&&Yu(e);return{c(){s.c(),t=W(),o&&o.c(),r=Lt()},m(a,l){s.m(a,l),B(a,t,l),o&&o.m(a,l),B(a,r,l)},p(a,l){n===(n=i(a))&&s?s.p(a,l):(s.d(1),s=n(a),s&&(s.c(),s.m(t.parentNode,t))),a[10].length!==0?o?o.p(a,l):(o=Yu(a),o.c(),o.m(r.parentNode,r)):o&&(o.d(1),o=null)},d(a){a&&(P(t),P(r)),s.d(a),o&&o.d(a)}}}function hC(e){let t,r=[e[32]("ModalLoader")],i={};for(let n=0;n<r.length;n+=1)i=T(i,r[n]);return{c(){t=C("div"),k(t,i)},m(n,s){B(n,t,s)},p:Se,d(n){n&&P(t)}}}function fC(e){let t=e[26]("bonus.noBonus")+"",r;return{c(){r=O(t)},m(i,n){B(i,r,n)},p(i,n){n[0]&67108864&&t!==(t=i[26]("bonus.noBonus")+"")&&Ce(r,t)},d(i){i&&P(r)}}}function pC(e){let t,r=e[26]("bonus.error")+"",i,n,s;return{c(){t=C("div"),i=O(r),n=O(": "),s=O(e[12]),$s(t,"color","red")},m(o,a){B(o,t,a),p(t,i),p(t,n),p(t,s)},p(o,a){a[0]&67108864&&r!==(r=o[26]("bonus.error")+"")&&Ce(i,r),a[0]&4096&&Ce(s,o[12])},d(o){o&&P(t)}}}function mC(e){let t,r=je(e[10]),i=[];for(let o=0;o<r.length;o+=1)i[o]=Ru(Iu(e,r,o));let n=[e[32]("BonusList")],s={};for(let o=0;o<n.length;o+=1)s=T(s,n[o]);return{c(){t=C("ul");for(let o=0;o<i.length;o+=1)i[o].c();k(t,s)},m(o,a){B(o,t,a);for(let l=0;l<i.length;l+=1)i[l]&&i[l].m(t,null)},p(o,a){if(a[0]&37749885){r=je(o[10]);let l;for(l=0;l<r.length;l+=1){const u=Iu(o,r,l);i[l]?i[l].p(u,a):(i[l]=Ru(u),i[l].c(),i[l].m(t,null))}for(;l<i.length;l+=1)i[l].d(1);i.length=r.length}},d(o){o&&P(t),Jt(i,o)}}}function Ru(e){let t,r,i,n=[{rawbonus:JSON.stringify(e[63]),status:e[22],cmsendpoint:e[2],lang:e[0],clientstyling:e[4],clientstylingurl:e[5],mbsource:e[3],translationurl:e[6]}],s={};for(let l=0;l<n.length;l+=1)s=T(s,n[l]);let o=[e[25]("BonusItem")],a={};for(let l=0;l<o.length;l+=1)a=T(a,o[l]);return{c(){t=C("li"),r=C("casino-bonus-card"),i=W(),k(r,s),k(t,a)},m(l,u){B(l,t,u),p(t,r),p(t,i)},p(l,u){k(r,s=Ie(n,[u[0]&4195453&&{rawbonus:JSON.stringify(l[63]),status:l[22],cmsendpoint:l[2],lang:l[0],clientstyling:l[4],clientstylingurl:l[5],mbsource:l[3],translationurl:l[6]}])),k(t,a=Ie(o,[u[0]&33554432&&l[25]("BonusItem")]))},d(l){l&&P(t)}}}function Yu(e){let t;return{c(){t=C("casino-bonus-pagination"),Xe(t,"totalitems",e[14]),Xe(t,"currentpage",e[13]),Xe(t,"pagesize",e[1]),Xe(t,"limit",e[15]),Xe(t,"clientstyling",e[4]),Xe(t,"clientstylingurl",e[5]),Xe(t,"mbsource",e[3])},m(r,i){B(r,t,i)},p(r,i){i[0]&16384&&Xe(t,"totalitems",r[14]),i[0]&8192&&Xe(t,"currentpage",r[13]),i[0]&2&&Xe(t,"pagesize",r[1]),i[0]&32768&&Xe(t,"limit",r[15]),i[0]&16&&Xe(t,"clientstyling",r[4]),i[0]&32&&Xe(t,"clientstylingurl",r[5]),i[0]&8&&Xe(t,"mbsource",r[3])},d(r){r&&P(t)}}}function zu(e){let t,r,i,n,s=e[26]("bonus.forfeitMessage")+"",o,a,l,u,d=e[26]("bonus.forfeitCancel")+"",c,h,f,b=e[26]("bonus.forfeitConfirm")+"",g,v,y,_=[e[32]("ModalText")],E={};for(let $=0;$<_.length;$+=1)E=T(E,_[$]);let w=[e[32]("ModalCancel")],N={};for(let $=0;$<w.length;$+=1)N=T(N,w[$]);let x=[e[32]("ModalConfirm")],I={};for(let $=0;$<x.length;$+=1)I=T(I,x[$]);let Z=[e[32]("ModalButtons")],J={};for(let $=0;$<Z.length;$+=1)J=T(J,Z[$]);let H=[e[32]("ModalBody")],D={};for(let $=0;$<H.length;$+=1)D=T(D,H[$]);let Y=[e[32]("ModalContent")],re={};for(let $=0;$<Y.length;$+=1)re=T(re,Y[$]);let Q=[e[25]("ModalWrapper")],L={};for(let $=0;$<Q.length;$+=1)L=T(L,Q[$]);return{c(){t=C("div"),r=C("div"),i=C("div"),n=C("p"),o=O(s),a=W(),l=C("div"),u=C("button"),c=O(d),h=W(),f=C("button"),g=O(b),k(n,E),k(u,N),k(f,I),k(l,J),k(i,D),k(r,re),k(t,L)},m($,U){B($,t,U),p(t,r),p(r,i),p(i,n),p(n,o),p(i,a),p(i,l),p(l,u),p(u,c),u.autofocus&&u.focus(),p(l,h),p(l,f),p(f,g),f.autofocus&&f.focus(),v||(y=[Le(u,"click",e[30]),Le(f,"click",e[45])],v=!0)},p($,U){U[0]&67108864&&s!==(s=$[26]("bonus.forfeitMessage")+"")&&ne(o,s,E.contenteditable),U[0]&67108864&&d!==(d=$[26]("bonus.forfeitCancel")+"")&&ne(c,d,N.contenteditable),U[0]&67108864&&b!==(b=$[26]("bonus.forfeitConfirm")+"")&&ne(g,b,I.contenteditable),k(t,L=Ie(Q,[U[0]&33554432&&$[25]("ModalWrapper")]))},d($){$&&P(t),v=!1,mt(y)}}}function _C(e){let t,r,i,n,s,o,a=je(e[27]),l=[];for(let w=0;w<a.length;w+=1)l[w]=Fu(Lu(e,a,w));let u=[e[25]("BonusFilterWrapper")],d={};for(let w=0;w<u.length;w+=1)d=T(d,u[w]);function c(w,N){if(w[22]==="claimable")return dC;if(w[22]==="completed")return uC}let h=c(e),f=h&&h(e);function b(w,N){return w[11]?hC:cC}let g=b(e),v=g(e),y=e[21]&&zu(e),_=[e[32]("BonusesController")],E={};for(let w=0;w<_.length;w+=1)E=T(E,_[w]);return{c(){t=C("div"),r=C("div"),i=C("div");for(let w=0;w<l.length;w+=1)l[w].c();n=W(),f&&f.c(),s=W(),v.c(),o=W(),y&&y.c(),m(i,"class","BonusFilterContainer"),m(i,"part","BonusFilterContainer"),k(r,d),k(t,E)},m(w,N){B(w,t,N),p(t,r),p(r,i);for(let x=0;x<l.length;x+=1)l[x]&&l[x].m(i,null);p(t,n),f&&f.m(t,null),p(t,s),v.m(t,null),p(t,o),y&&y.m(t,null),e[46](t)},p(w,N){if(N[0]&239077376|N[1]&1){a=je(w[27]);let x;for(x=0;x<a.length;x+=1){const I=Lu(w,a,x);l[x]?l[x].p(I,N):(l[x]=Fu(I),l[x].c(),l[x].m(i,null))}for(;x<l.length;x+=1)l[x].d(1);l.length=a.length}k(r,d=Ie(u,[N[0]&33554432&&w[25]("BonusFilterWrapper")])),h===(h=c(w))&&f?f.p(w,N):(f&&f.d(1),f=h&&h(w),f&&(f.c(),f.m(t,s))),g===(g=b(w))&&v?v.p(w,N):(v.d(1),v=g(w),v&&(v.c(),v.m(t,o))),w[21]?y?y.p(w,N):(y=zu(w),y.c(),y.m(t,null)):y&&(y.d(1),y=null)},i:Se,o:Se,d(w){w&&P(t),Jt(l,w),f&&f.d(),v.d(),y&&y.d(),e[46](null)}}}function gC(e,t,r){let i,n,s;Ju(e,Td,j=>r(26,s=j));let{endpoint:o=""}=t,{lang:a="en"}=t,{session:l=""}=t,{currency:u="EUR"}=t,{limit:d=""}=t,{cmsendpoint:c=""}=t,{mbsource:h}=t,{clientstyling:f=""}=t,{clientstylingurl:b=""}=t,{translationurl:g=""}=t,v=window.navigator.userAgent,y=!1,_=[],E=!0,w="",N=1,x=0,I=2,Z,J,H,D="",Y=!0,re=!1,Q=!1;Z=G(new Date).format("YYYY-MM-DD"),J=G(new Date).subtract(3,"months").format("YYYY-MM-DD");let L=J,$=Z,U,V,oe="active",xe=!0,Oe=["active","completed","claimable"],ie="";Ld(v)&&(y=!0,I=1);const we=()=>{fetch(g).then(ke=>ke.json()).then(ke=>{Object.keys(ke).forEach(Ue=>{_n(Ue,ke[Ue])})}).catch(ke=>{console.log(ke)})};Object.keys(gn).forEach(j=>{_n(j,gn[j])}),On(()=>(window.addEventListener("message",ae,!1),()=>{U.removeEventListener("change",Ri),V.removeEventListener("change",Yi),window.removeEventListener("message",ae)}));const ae=j=>{switch(j.data.type){case"PaginationChange":r(13,N=j.data.page),K(N);break;case"OnBonusClaimed":M(j.data.bonusCode);break;case"OnBonusForfeit":r(24,ie=j.data.bonus.id),r(21,Q=!0)}},ce=()=>et(this,null,function*(){K(1)}),M=(j,ke)=>et(this,null,function*(){r(23,xe=!1);const Ue=yield z(j);Ue.success?(r(20,re=!1),K(1)):(r(12,w=Ue.errorMessage),ke?r(20,re=!0):window.postMessage({type:"OnBonusClaimError",message:w,bonusCode:j})),window.postMessage({type:"OnBonusClaimedDone"}),r(23,xe=!0)}),z=j=>et(this,null,function*(){return yield Yt(o+"/v1/bonus/claim",{method:"PUT",body:JSON.stringify({bonusCode:j,currency:u}),headers:{"x-SessionId":l,accept:"text/plain","Content-Type":"application/json-patch+json"}})}),A=j=>et(this,null,function*(){r(23,xe=!1);const ke=yield R(j);ke.success?K(1):r(12,w=ke.errorMessage),window.postMessage({type:"OnBonusForfeitedDone"}),r(23,xe=!0),r(21,Q=!1)}),R=j=>et(this,null,function*(){const ke=new URL(`${o}/v1/bonus/forfeit`),Ue={bonusID:j,lang:a};return Object.keys(Ue).map(mr=>{ke.searchParams.append(mr,Ue[mr])}),yield Yt(ke,{method:"DELETE",headers:{"x-SessionId":l,accept:"text/plain"}})}),Me=()=>{window.postMessage({type:"EnableScroll"},window.location.href),window.postMessage({type:"OnBonusForfeitedDone"}),r(21,Q=!1)},K=j=>et(this,null,function*(){N!==j&&r(13,N=j);const ke=(j-1)*Number(d);r(11,E=!0),r(10,_=[]);const Ue=yield Re(o,l,ke,{lang:a,limit:d});Ue.success?(r(14,x=Ue.total),r(10,_=Ue.items||Ue.bonuses)):r(12,w=Ue.errorMessage),r(11,E=!1)}),Re=(zt,Kh,Qh,...S)=>et(this,[zt,Kh,Qh,...S],function*(j,ke,Ue,mr={}){const it=mr,{limit:q,lang:ue}=it,Ve=ms(it,["limit","lang"]),qe=(()=>{switch(oe){case"claimable":return oe;default:return"granted"}})(),He=Zr(Vt({pagination:`limit=${q},offset=${Ue}`,language:ue},Ve),{sortOrder:"desc"});if(oe==="completed"){let ut=new Date(L).toISOString(),Qe=new Date($+" 23:59:59").toISOString();He.startTime=ut,He.endTime=Qe,He.type="standard,freeBet,freeRound,cashBack,stakeBack,oddsBoost,wagering",He.status="completed,released,forfeited,expired,closed"}oe==="active"&&(He.type="standard,freeBet,freeRound,cashBack,stakeBack,oddsBoost,wagering",He.status="active");const Ut=new URL(`${j}/v1/bonus/${qe}`);return oe!=="claimable"?Ut.searchParams.append("expand","freeSpin"):delete He.sortOrder,Object.keys(He).map(ut=>{Ut.searchParams.append(ut,He[ut])}),yield Yt(Ut,{headers:Vt({},ke?{"x-SessionId":ke}:{})})}),Be=(j,ke="")=>({part:j,class:[j,ke].join(" ")}),Yt=(Ue,...mr)=>et(this,[Ue,...mr],function*(j,ke={}){let zt;return zt=yield fetch(j,ke),zt.ok===!1?{errorMessage:zt.status}:(zt=yield zt.json(),zt)}),Ri=j=>{L=j.target.value},Yi=j=>{$=j.target.value},zi=()=>{U.addEventListener("change",Ri,!1),V.addEventListener("change",Yi,!1)},as=()=>(r(20,re=!1),!!D),ls=()=>{r(19,Y=!as())},us=j=>{r(22,oe=j),K(1)};function Ui(){D=this.value,r(18,D)}const Vi=()=>{M(D,!0)};function Wi(j){Pt[j?"unshift":"push"](()=>{U=j,r(8,U)})}function ds(j){Pt[j?"unshift":"push"](()=>{V=j,r(9,V)})}const cs=()=>K(1),hs=()=>A(ie);function fs(j){Pt[j?"unshift":"push"](()=>{H=j,r(7,H)})}return e.$$set=j=>{"endpoint"in j&&r(34,o=j.endpoint),"lang"in j&&r(0,a=j.lang),"session"in j&&r(35,l=j.session),"currency"in j&&r(36,u=j.currency),"limit"in j&&r(1,d=j.limit),"cmsendpoint"in j&&r(2,c=j.cmsendpoint),"mbsource"in j&&r(3,h=j.mbsource),"clientstyling"in j&&r(4,f=j.clientstyling),"clientstylingurl"in j&&r(5,b=j.clientstylingurl),"translationurl"in j&&r(6,g=j.translationurl)},e.$$.update=()=>{e.$$.dirty[0]&768&&U&&V&&zi(),e.$$.dirty[1]&64&&r(25,i=(j,ke="")=>Be(`${j}${y?` ${j}Mobile`:""}`,ke)),e.$$.dirty[0]&1&&a&&Dd(a),e.$$.dirty[0]&3|e.$$.dirty[1]&24&&r(38,n=o&&l&&a&&d),e.$$.dirty[1]&128&&n&&ce(),e.$$.dirty[0]&144&&f&&H&&zn(H,f),e.$$.dirty[0]&160&&b&&H&&Un(H,b),e.$$.dirty[0]&136&&h&&H&&Vn(H,`${h}.Style`),e.$$.dirty[0]&64&&g&&we()},[a,d,c,h,f,b,g,H,U,V,_,E,w,N,x,I,Z,J,D,Y,re,Q,oe,xe,ie,i,s,Oe,M,A,Me,K,Be,ls,o,l,u,y,n,us,Ui,Vi,Wi,ds,cs,hs,fs]}class Jh extends In{constructor(t){super(),Bn(this,t,gC,_C,Ti,{endpoint:34,lang:0,session:35,currency:36,limit:1,cmsendpoint:2,mbsource:3,clientstyling:4,clientstylingurl:5,translationurl:6},lC,[-1,-1,-1])}get endpoint(){return this.$$.ctx[34]}set endpoint(t){this.$$set({endpoint:t}),me()}get lang(){return this.$$.ctx[0]}set lang(t){this.$$set({lang:t}),me()}get session(){return this.$$.ctx[35]}set session(t){this.$$set({session:t}),me()}get currency(){return this.$$.ctx[36]}set currency(t){this.$$set({currency:t}),me()}get limit(){return this.$$.ctx[1]}set limit(t){this.$$set({limit:t}),me()}get cmsendpoint(){return this.$$.ctx[2]}set cmsendpoint(t){this.$$set({cmsendpoint:t}),me()}get mbsource(){return this.$$.ctx[3]}set mbsource(t){this.$$set({mbsource:t}),me()}get clientstyling(){return this.$$.ctx[4]}set clientstyling(t){this.$$set({clientstyling:t}),me()}get clientstylingurl(){return this.$$.ctx[5]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),me()}get translationurl(){return this.$$.ctx[6]}set translationurl(t){this.$$set({translationurl:t}),me()}}Nn(Jh,{endpoint:{},lang:{},session:{},currency:{},limit:{},cmsendpoint:{},mbsource:{},clientstyling:{},clientstylingurl:{},translationurl:{}},[],[],!0);exports.default=Jh;
|
|
3581
|
+
`}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new qw(this,r=>{this._setInputElement(r),this._setFocusElement(r),this.stateTarget=r,this.ariaTarget=r},{uniqueIdPrefix:"search-input"})),this.addController(new Zw(this.inputElement,this._labelController)),this._tooltipController=new Bh(this),this.addController(this._tooltipController),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this._tooltipController.setShouldShow(r=>!r.opened),this.shadowRoot.querySelector('[part="toggle-button"]').addEventListener("mousedown",r=>r.preventDefault()),this.$.overlay.addEventListener("vaadin-overlay-close",this._onVaadinOverlayClose.bind(this))}_onVaadinOverlayClose(t){t.detail.sourceEvent&&t.detail.sourceEvent.composedPath().includes(this)&&t.preventDefault()}_toggle(t){t.stopPropagation(),this.$.overlay.opened?this.close():this.open()}_openedChanged(t){super._openedChanged(t),this.$.overlay.positionTarget=this.shadowRoot.querySelector('[part="input-field"]'),this.$.overlay.noVerticalOverlap=!0}}xt(n2);function s2(e){On(e,"svelte-dy0ryb",":host{font-family:inherit}.CircularProgress{height:100%;position:relative;width:100%}.CircularProgressLineBg{stroke:var(--emw--bonus-progress-primary, var(--emw--color-gray-100, #D9D9D9))}.CircularProgressLine{stroke:var(--emw--bonus-progress-primary, var(--emw--color-primary, #00AEEF));transition:0.35s stroke-dashoffset;transform:rotate(-90deg);transform-origin:50% 50%;fill:transparent}.CircularProgressLine.Completed{stroke:var(--emw--bonus-progress-bg, var(--emw--color-gray-300, #A9A9A9))}.CircularProgressCenter{fill:var(--emw--bonus-progress-primary, var(--emw--color-primary, #00AEEF))}.CircularProgressCenter.Completed{fill:var(--emw--bonus-progress-bg, var(--emw--color-gray-100, #D9D9D9))}.CircularProgressText{left:50%;position:absolute;top:50%;transform:translate(-50%, -50%);color:var(--emw--bonus-progress-text, var(--emw--color-white, #FFFFFF))}")}function o2(e){let t,r,i;return{c(){t=C("span"),r=O(e[0]),i=O(" %"),m(t,"class","CircularProgressText"),m(t,"part","CircularProgressText")},m(n,s){B(n,t,s),p(t,r),p(t,i)},p(n,s){s&1&&Ce(r,n[0])},d(n){n&&D(t)}}}function a2(e){let t,r,i,n,s,o,a,l,u;const d=e[10].default,c=Pi(d,e,e[9],null),h=c||o2(e);return{c(){t=C("div"),r=ee("svg"),i=ee("circle"),n=ee("circle"),o=ee("circle"),a=$(),l=C("div"),h&&h.c(),m(i,"class","CircularProgressLineBg"),m(i,"cx","73.5"),m(i,"cy","73.5"),m(i,"r","64.5"),m(i,"fill","transparent"),m(i,"stroke-width","18"),m(n,"class","CircularProgressLine"),m(n,"cx","73.5"),m(n,"cy","73.5"),m(n,"r","64.5"),m(n,"stroke-width","18"),m(n,"stroke-dasharray",e[5]),m(n,"stroke-dashoffset",s=e[4]()),le(n,"Completed",e[1]==="completed"),m(o,"class","CircularProgressCenter"),m(o,"cx","73"),m(o,"cy","73.5"),m(o,"r","50.5"),le(o,"Completed",e[1]==="completed"),m(r,"viewBox","0 0 147 147"),m(t,"class","CircularProgress"),m(t,"part","CircularProgress")},m(f,b){B(f,t,b),p(t,r),p(r,i),p(r,n),e[11](n),p(r,o),p(t,a),p(t,l),h&&h.m(l,null),e[12](t),u=!0},p(f,[b]){(!u||b&16&&s!==(s=f[4]()))&&m(n,"stroke-dashoffset",s),(!u||b&2)&&le(n,"Completed",f[1]==="completed"),(!u||b&2)&&le(o,"Completed",f[1]==="completed"),c?c.p&&(!u||b&512)&&Mi(c,d,f,f[9],u?Di(d,f[9],b,null):Oi(f[9]),null):h&&h.p&&(!u||b&1)&&h.p(f,u?b:-1)},i(f){u||(pt(h,f),u=!0)},o(f){It(h,f),u=!1},d(f){f&&D(t),e[11](null),h&&h.d(f),e[12](null)}}}let Jl=64.5;function l2(e,t,r){let i,{$$slots:n={},$$scope:s}=t,{value:o=0}=t,{status:a=""}=t,{mbsource:l}=t,{clientstyling:u=""}=t,{clientstylingurl:d=""}=t,c,h=Math.PI*(Jl*2),f;Bn(()=>()=>{});function b(v){Mt[v?"unshift":"push"](()=>{c=v,r(3,c)})}function g(v){Mt[v?"unshift":"push"](()=>{f=v,r(2,f)})}return e.$$set=v=>{"value"in v&&r(0,o=v.value),"status"in v&&r(1,a=v.status),"mbsource"in v&&r(6,l=v.mbsource),"clientstyling"in v&&r(7,u=v.clientstyling),"clientstylingurl"in v&&r(8,d=v.clientstylingurl),"$$scope"in v&&r(9,s=v.$$scope)},e.$$.update=()=>{e.$$.dirty&132&&u&&f&&Un(f,u),e.$$.dirty&260&&d&&f&&Wn(f,d),e.$$.dirty&68&&l&&f&&$n(f,`${l}.Style`),e.$$.dirty&1&&r(4,i=()=>{var v=Math.PI*(Jl*2);return o<0&&r(0,o=0),o>100&&r(0,o=100),(100-o)/100*v})},[o,a,f,c,i,h,l,u,d,s,n,b,g]}class u2 extends Ln{constructor(t){super(),Nn(this,t,l2,a2,Ti,{value:0,status:1,mbsource:6,clientstyling:7,clientstylingurl:8},s2)}get value(){return this.$$.ctx[0]}set value(t){this.$$set({value:t}),me()}get status(){return this.$$.ctx[1]}set status(t){this.$$set({status:t}),me()}get mbsource(){return this.$$.ctx[6]}set mbsource(t){this.$$set({mbsource:t}),me()}get clientstyling(){return this.$$.ctx[7]}set clientstyling(t){this.$$set({clientstyling:t}),me()}get clientstylingurl(){return this.$$.ctx[8]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),me()}}customElements.define("casino-bonus-progress",In(u2,{value:{},status:{},mbsource:{},clientstyling:{},clientstylingurl:{}},["default"],[],!0));const Ql=e=>d2[e],d2={AED:"د.إ",AFN:"؋",ALL:"L",AMD:"֏",ANG:"ƒ",AOA:"Kz",ARS:"$",AUD:"$",AWG:"ƒ",AZN:"ман",BAM:"KM",BBD:"$",BDT:"৳",BGN:"лв",BHD:".د.ب",BIF:"FBu",BMD:"$",BND:"$",BOB:"$b",BRL:"R$",BSD:"$",BTC:"฿",BTN:"Nu.",BWP:"P",BYR:"p.",BZD:"BZ$",CAD:"$",CDF:"FC",CHF:"CHF",CLP:"$",CNY:"¥",COP:"$",CRC:"₡",CUC:"$",CUP:"₱",CVE:"$",CZK:"Kč",DJF:"Fdj",DKK:"kr",DOP:"RD$",DZD:"دج",EEK:"kr",EGP:"£",ERN:"Nfk",ETB:"Br",ETH:"Ξ",EUR:"€",FJD:"$",FKP:"£",GBP:"£",GEL:"₾",GGP:"£",GHC:"₵",GHS:"GH₵",GIP:"£",GMD:"D",GNF:"FG",GTQ:"Q",GYD:"$",HKD:"$",HNL:"L",HRK:"kn",HTG:"G",HUF:"Ft",IDR:"Rp",ILS:"₪",IMP:"£",INR:"₹",IQD:"ع.د",IRR:"﷼",ISK:"kr",JEP:"£",JMD:"J$",JOD:"JD",JPY:"¥",KES:"KSh",KGS:"лв",KHR:"៛",KMF:"CF",KPW:"₩",KRW:"₩",KWD:"KD",KYD:"$",KZT:"лв",LAK:"₭",LBP:"£",LKR:"₨",LRD:"$",LSL:"M",LTC:"Ł",LTL:"Lt",LVL:"Ls",LYD:"LD",MAD:"MAD",MDL:"lei",MGA:"Ar",MKD:"ден",MMK:"K",MNT:"₮",MOP:"MOP$",MRO:"UM",MUR:"₨",MVR:"Rf",MWK:"MK",MXN:"$",MYR:"RM",MZN:"MT",NAD:"$",NGN:"₦",NIO:"C$",NOK:"kr",NPR:"₨",NZD:"$",OMR:"﷼",PAB:"B/.",PEN:"S/.",PGK:"K",PHP:"₱",PKR:"₨",PLN:"zł",PYG:"Gs",QAR:"﷼",RMB:"¥",RON:"lei",RSD:"Дин.",RUB:"₽",RWF:"R₣",SAR:"﷼",SBD:"$",SCR:"₨",SDG:"ج.س.",SEK:"kr",SGD:"$",SHP:"£",SLL:"Le",SOS:"S",SRD:"$",SSP:"£",STD:"Db",SVC:"$",SYP:"£",SZL:"E",THB:"฿",TJS:"SM",TMT:"T",TND:"د.ت",TOP:"T$",TRL:"₤",TRY:"₺",TTD:"TT$",TVD:"$",TWD:"NT$",TZS:"TSh",UAH:"₴",UGX:"USh",USD:"$",UYU:"$U",UZS:"лв",VEF:"Bs",VND:"₫",VUV:"VT",WST:"WS$",XAF:"FCFA",XBT:"Ƀ",XCD:"$",XOF:"CFA",XPF:"₣",YER:"﷼",ZAR:"R",ZWD:"Z$"};function c2(e){On(e,"svelte-eovzfn",":host{font-family:inherit}.BonusCard{background-color:#F4F4F4;padding:10px 20px 20px;border-radius:5px;font-size:18px;font-weight:500;color:var(--emw--bonus-card-text, var(--emw--color-gray-300, #6D6D6D))}.BonusCardHeader{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #D1D1D1}.BonusCardHeader:nth-child(even){background-color:var(--emw--bonus-card-bg, var(--emw--color-gray-50, #F9F8F8))}.BonusCardRow{display:flex;padding:11px 0;margin:0;align-items:center}.BonusCardLabel{flex:3}.BonusCardRowTitle{color:var(--emw--bonus-card-black, var(--emw--color-black, #000000));font-weight:700;font-size:18px;display:flex;align-items:center;text-indent:10px}.BonusCardRowTitle span{font-weight:400;color:var(--emw--bonus-card-span, var(--emw--color-primary, #00AEEF))}.BonusCardTitleSub{display:flex;font-size:16px;text-indent:10px;align-items:center;font-weight:400}.BonusCardRowText{flex:2;color:#9C9C9C;text-transform:capitalize}.BonusCardRowText.BonusCardStatus{font-weight:700;color:var(--emw--bonus-card-title, var(--emw--color-black, #000000))}.BonusCardRowText.StatusActive{color:var(--emw--bonus-card-green, var(--emw--color-green, #53B65A))}.BonusCardRowText.Type{color:var(--emw--bonus-card-black, var(--emw--color-black, #000000))}.BonusCardRowText.StatusExpired{color:var(--emw--bonus-card-red, var(--emw--color-red, #FD2839))}.BonusCardRowText.StatusCompleted{color:var(--emw--bonus-card-yellow, var(--emw--color-yellow, #F39C12))}.BonusCardRowText.TextCapitalize{text-transform:capitalize}.BonusCardRowText .BonusAmount{color:var(--emw--bonus-card-black, var(--emw--color-black, #000000))}.BonusCardRowText .Amount{color:var(--emw--bonus-card-green, var(--emw--color-green, #53B65A))}.BonusCardAction{margin:20px 0 0;padding:10px 5px 0 0;display:flex;justify-content:end}.BonusCardAdditional,.BonusCardTerms{border:1px solid var(--emw--bonus-card-border, var(--emw--color-gray-100, #E6E6E6));background:var(--emw--bonus-card-white, var(--emw--color-white, #FFFFFF));color:var(--emw--bonus-card-black, var(--emw--color-black, #000000));padding:12px;border-radius:4px;position:relative;margin-top:10px;font-size:16px;transition:height 0.3s ease;will-change:height}.BonusCardAdditional.active,.BonusCardTerms.active{transition:height 0.3s ease}.BonusCardAdditionalTitle,.BonusCardTermsTitle{display:flex;align-items:center;text-indent:10px}.BonusCardAdditionalButton{font-weight:700;font-size:30px;position:absolute;top:0;right:10px;cursor:pointer}.BonusCardTermsButton{font-weight:700;font-size:30px;position:absolute;top:0;right:10px;cursor:pointer}.BonusCardTermsLink{display:flex;align-items:center;color:#000;text-indent:10px;cursor:pointer}.BonusCardJoinError{color:var(--emw--bonus-card-red, var(--emw--color-red, #FF0000));align-self:center}.BonusCardJoinCountdown{display:flex;align-items:center;text-indent:10px;font-size:16px;font-weight:400}.BonusCardJoinWrapper{display:flex;gap:30px}.BonusJoinButton{background:var(--emw--bonus-card-green, var(--emw--color-green, #53B65A));outline:5px solid var(--emw--bonus-card-green, var(--emw--color-green, rgba(83, 182, 90, 0.3)));border-radius:9px;border:0;width:180px;height:38px;font-size:18px;font-weight:400;text-align:center;transition-duration:0.5s;box-sizing:border-box;cursor:pointer;color:var(--emw--bonus-card-white, var(--emw--color-white, #FFFFFF))}.BonusJoinButton[disabled]{opacity:0.3;cursor:not-allowed}.BonusJoinButton.ClaimBonusButtonMobile{width:100%}.BonusJoinButton:hover{background:var(--emw--bonus-card-green, var(--emw--color-green, #25982D));outline:0}.BonusJoinButton:active{background:var(--emw--bonus-card-green, var(--emw--color-green, #25982D));outline-color:rgba(83, 182, 90, 0.6)}.BonusForfeitButton{background:var(--emw--bonus-card-red, var(--emw--color-red, #F32013));outline:5px solid var(--emw--bonus-card-red, var(--emw--color-red, rgba(243, 32, 19, 0.3)));border-radius:9px;border:0;width:180px;height:38px;font-size:18px;font-weight:400;text-align:center;transition-duration:0.5s;box-sizing:border-box;cursor:pointer;color:var(--emw--color-white, #FFFFFF)}.BonusForfeitButton[disabled]{opacity:0.3;cursor:not-allowed}.BonusForfeitButton.ClaimBonusButtonMobile{width:100%}.BonusForfeitButton:hover{background:var(--emw--bonus-card-red, var(--emw--color-red, #C70C00));outline:0}.BonusForfeitButton:active{background:var(--emw--bonus-card-red, var(--emw--color-red, #C70C00));outline-color:var(--emw--bonus-card-red, var(--emw--color-red, rgba(243, 32, 19, 0.6)))}.BonusCardActionCountdown{margin-bottom:5px}.BonusCardData{display:flex}.BonusCardDataContent{flex:3;height:260px}.BonusCardFooter{height:100px}.BonusCardFooter.Active{height:auto}.BonusCardProgress{flex:1;max-width:147px;--progress-track-color:var(--emw--bonus-card-blue,var(--emw--color-blue, #00AEEF))}.BonusCardProgress .CircularProgress{display:flex;margin:15px;position:relative}.BonusCardProgress .CircularProgressText{text-align:center}.BonusActionWagering{display:flex;height:100px}.BonusWageringInfo{flex:60%}.BonusWageringButton{flex:40%}.TitleIcon{display:flex;max-width:83px;min-width:43px;height:41px}.CasinoIcon,.SportsIcon{fill:none}.BonusGamesSlider{display:flex}.SliderNavButton{border:0px;width:25px;display:flex;align-items:center;justify-content:center}.SliderNavButton svg{width:20px}.SliderNavButton.Hide{display:none}.Main{max-width:300px;overflow:hidden}.Games{display:flex;transition:transform 0.4s ease-in-out;transform:translateX(0px)}.Game{min-width:100px;height:75px;margin:0;color:var(--emw--bonus-card-white, var(--emw--color-white, #FFFFFF));display:flex;justify-content:center;align-items:center;font-weight:bold;font-size:10rem;user-select:none;overflow:hidden}.PlayNowButton{position:absolute;background:var(--emw--bonus-card-green, var(--emw--color-green, #48952a));display:block;box-sizing:border-box;padding:0.8rem 0.5rem;color:var(--emw--bonus-card-white, var(--emw--color-white, #FFFFFF));text-transform:uppercase;text-align:center;font-weight:600;font-size:0.7rem;cursor:pointer;transition:opacity 0.4s linear;opacity:0;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.ItemHover{opacity:1}@media only screen and (max-width: 728px){.BonusCard{font-size:12px}.BonusCardRowTitle{font-size:14px}.BonusCardTitleSub{font-size:12px}.BonusCardAction,.BonusCardActionContent,.BonusForfeitButton,.BonusJoinButton{width:100%}.BonusCardAction{margin-top:10px}.TitleIcon{max-width:60px;min-width:30px;height:30px}.BonusCardAdditional,.BonusCardTerms{font-size:14px}.BonusCardProgress .CircularProgress{margin:10px 0}.BonusCardFooter{height:auto}.BonusCardDataContent{height:auto}.BonusCardJoinWrapper{flex-direction:column;gap:15px}.BonusCardJoinCountdown{font-size:12px}}")}function eu(e,t,r){const i=e.slice();return i[76]=t[r],i[78]=r,i}function tu(e,t,r){const i=e.slice();return i[79]=t[r],i}function ru(e,t,r){const i=e.slice();return i[70]=t[r],i}function iu(e,t,r){const i=e.slice();return i[73]=t[r],i}function nu(e,t,r){const i=e.slice();return i[82]=t[r],i[84]=r,i}function su(e){var ce;let t,r,i,n,s,o=e[32](e[4]).indexOf("Casino")>-1,a,l=e[32](e[4]).indexOf("Sports")>-1,u,d=(e[4].name||((ce=e[4].presentation)==null?void 0:ce.name.content))+"",c,h,f,b,g,v,y,_=o&&ou(e),x=l&&au(e),w=[e[35]("TitleIcon")],N={};for(let M=0;M<w.length;M+=1)N=T(N,w[M]);let E=[e[35]("BonusCardRowTitle")],I={};for(let M=0;M<E.length;M+=1)I=T(I,E[M]);function Z(M,Y){if(M[0]==="active")return f2;if(M[0]==="completed")return h2}let X=Z(e),R=X&&X(e),P=[e[35]("BonusCardHeader")],z={};for(let M=0;M<P.length;M+=1)z=T(z,P[M]);let re=p2(e),Q=e[9]&&vu(e);function L(M,Y){return M[13]?L2:I2}let V=L(e),U=V(e),W=[e[35]("BonusCardFooter")],oe={};for(let M=0;M<W.length;M+=1)oe=T(oe,W[M]);let Ee=[e[35]("BonusCardInfo")],Oe={};for(let M=0;M<Ee.length;M+=1)Oe=T(Oe,Ee[M]);let ie=e[8]&&Au(e),we=[e[35]("BonusCard")],ae={};for(let M=0;M<we.length;M+=1)ae=T(ae,we[M]);return{c(){t=C("div"),r=C("div"),i=C("div"),n=C("p"),s=C("span"),_&&_.c(),a=$(),x&&x.c(),u=$(),c=O(d),h=$(),R&&R.c(),f=$(),re&&re.c(),b=$(),g=C("div"),Q&&Q.c(),v=$(),U.c(),y=$(),ie&&ie.c(),S(s,N),S(n,I),S(i,z),S(g,oe),le(g,"Active",e[10]||e[11]),S(r,Oe),S(t,ae)},m(M,Y){B(M,t,Y),p(t,r),p(r,i),p(i,n),p(n,s),_&&_.m(s,null),p(s,a),x&&x.m(s,null),p(n,u),p(n,c),p(i,h),R&&R.m(i,null),p(r,f),re&&re.m(r,null),p(r,b),p(r,g),Q&&Q.m(g,null),p(g,v),U.m(g,null),p(t,y),ie&&ie.m(t,null),e[53](t)},p(M,Y){var A;Y[0]&16&&(o=M[32](M[4]).indexOf("Casino")>-1),o?_?_.p(M,Y):(_=ou(M),_.c(),_.m(s,a)):_&&(_.d(1),_=null),Y[0]&16&&(l=M[32](M[4]).indexOf("Sports")>-1),l?x?x.p(M,Y):(x=au(M),x.c(),x.m(s,null)):x&&(x.d(1),x=null),Y[0]&16&&d!==(d=(M[4].name||((A=M[4].presentation)==null?void 0:A.name.content))+"")&&ne(c,d,I.contenteditable),X===(X=Z(M))&&R?R.p(M,Y):(R&&R.d(1),R=X&&X(M),R&&(R.c(),R.m(i,null))),re.p(M,Y),M[9]?Q?Q.p(M,Y):(Q=vu(M),Q.c(),Q.m(g,v)):Q&&(Q.d(1),Q=null),V===(V=L(M))&&U?U.p(M,Y):(U.d(1),U=V(M),U&&(U.c(),U.m(g,null))),Y[0]&3072&&le(g,"Active",M[10]||M[11]),M[8]?ie?ie.p(M,Y):(ie=Au(M),ie.c(),ie.m(t,null)):ie&&(ie.d(1),ie=null)},d(M){M&&D(t),_&&_.d(),x&&x.d(),R&&R.d(),re&&re.d(),Q&&Q.d(),U.d(),ie&&ie.d(),e[53](null)}}}function ou(e){let t,r,i,n,s,o,a,l,u,d,c,h,f,b=[e[35]("CasinoIcon"),{viewBox:"0 0 41 41"}],g={};for(let v=0;v<b.length;v+=1)g=T(g,b[v]);return{c(){t=ee("svg"),r=ee("path"),i=ee("path"),n=ee("path"),s=ee("path"),o=ee("path"),a=ee("path"),l=ee("path"),u=ee("path"),d=ee("path"),c=ee("path"),h=ee("circle"),f=ee("circle"),m(r,"d","M21.2942 0V5.23421C24.916 5.42484 28.1964 6.86246 30.7301 9.14994L34.4393 5.44072C30.9525 2.22394 26.3616 0.190624 21.2942 0Z"),m(r,"fill","black"),m(i,"d","M30.7301 31.8501C28.2043 34.1296 24.916 35.5752 21.2942 35.7658V41C26.3616 40.8094 30.9525 38.7761 34.4313 35.5593L30.7221 31.8501H30.7301Z"),m(i,"fill","black"),m(n,"d","M35.7658 21.2943C35.5752 24.9162 34.1376 28.1965 31.8501 30.7302L35.5593 34.4394C38.7761 30.9605 40.8094 26.3697 41 21.3023H35.7658V21.2943Z"),m(n,"fill","black"),m(s,"d","M19.7056 35.7658C16.0838 35.5752 12.8035 34.1376 10.2698 31.8501L6.56055 35.5593C10.0394 38.7761 14.6382 40.8094 19.6977 41V35.7658H19.7056Z"),m(s,"fill","black"),m(o,"d","M31.8501 10.2698C34.1296 12.7955 35.5752 16.0838 35.7658 19.7056H41C40.8094 14.6382 38.7761 10.0474 35.5593 6.56848L31.8501 10.2777V10.2698Z"),m(o,"fill","black"),m(a,"d","M19.7058 0C14.6383 0.190624 10.0395 2.22394 6.5686 5.44072L10.2778 9.14994C12.8036 6.8704 16.0918 5.42484 19.7137 5.23421V0H19.7058Z"),m(a,"fill","black"),m(l,"d","M9.14994 30.7302C6.8704 28.2044 5.42484 24.9162 5.23421 21.2943H0C0.190624 26.3617 2.22394 30.9526 5.44072 34.4315L9.14994 30.7222V30.7302Z"),m(l,"fill","black"),m(u,"d","M5.23421 19.7058C5.42484 16.0839 6.86246 12.8036 9.14994 10.2699L5.44072 6.56067C2.22394 10.0475 0.190624 14.6384 0 19.7058H5.23421Z"),m(u,"fill","black"),m(d,"fill-rule","evenodd"),m(d,"clip-rule","evenodd"),m(d,"d","M20.5 31.825C26.7547 31.825 31.825 26.7547 31.825 20.5C31.825 14.2454 26.7547 9.17505 20.5 9.17505C14.2454 9.17505 9.17505 14.2454 9.17505 20.5C9.17505 26.7547 14.2454 31.825 20.5 31.825ZM20.5 33.825C27.8592 33.825 33.825 27.8592 33.825 20.5C33.825 13.1409 27.8592 7.17505 20.5 7.17505C13.1409 7.17505 7.17505 13.1409 7.17505 20.5C7.17505 27.8592 13.1409 33.825 20.5 33.825Z"),m(d,"fill","black"),m(c,"d","M21.6173 27.6413V28.7H19.3741V27.6413C17.3997 27.3092 16.3999 26.0428 16.3999 24.0707V23.0742H18.996V24.216C18.996 25.254 19.5421 25.6276 20.4159 25.6276C21.2897 25.6276 21.8358 25.254 21.8358 24.216C21.8442 21.2266 16.4755 21.0813 16.4755 16.9294C16.4755 14.978 17.4501 13.7325 19.3741 13.3795V12.3H21.6173V13.3795C23.5665 13.7117 24.5663 14.9573 24.5663 16.9294V17.3861H21.9702V16.7841C21.9702 15.7461 21.4745 15.3517 20.6007 15.3517C19.727 15.3517 19.2313 15.7461 19.2313 16.7841C19.2313 19.7735 24.5999 19.9188 24.5999 24.0707C24.5999 26.0428 23.5749 27.3092 21.6257 27.6413H21.6173Z"),m(c,"fill","black"),m(h,"cx","28.1874"),m(h,"cy","21.0125"),m(h,"r","1.5375"),m(h,"fill","black"),m(f,"cx","12.8124"),m(f,"cy","21.0125"),m(f,"r","1.5375"),m(f,"fill","black"),td(t,g)},m(v,y){B(v,t,y),p(t,r),p(t,i),p(t,n),p(t,s),p(t,o),p(t,a),p(t,l),p(t,u),p(t,d),p(t,c),p(t,h),p(t,f)},p:ke,d(v){v&&D(t)}}}function au(e){let t,r,i,n,s,o,a=[e[35]("SportsIcon"),{viewBox:"0 0 43 40"}],l={};for(let u=0;u<a.length;u+=1)l=T(l,a[u]);return{c(){t=ee("svg"),r=ee("path"),i=ee("path"),n=ee("path"),s=ee("path"),o=ee("path"),m(r,"d","M23 0C11.9555 0 3 8.95539 3 20C3 31.0446 11.9555 40 23 40C34.0454 40 43 31.0444 43 20C43 8.95558 34.0452 0 23 0ZM26.9568 37.9018C25.6574 38.1573 24.0408 38.3044 22.7261 38.3297C21.4806 38.3119 20.2402 38.1672 19.0241 37.8977C18.8058 37.8415 18.5877 37.7846 18.3698 37.7268L16.022 31.435L17.911 27.6923H28.0892L28.144 27.7958L30.0037 31.5315L27.7327 37.7125C27.4755 37.7813 27.2168 37.8444 26.9568 37.9018ZM16.6133 2.81538L22.1346 6.59385V12.1849L15.308 17.9606L10.5577 15.7962L10.157 15.6136L8.00971 9.45788C10.126 6.4575 13.1191 4.11827 16.6133 2.81538ZM37.9581 9.42952L35.8012 15.6298L30.6096 17.9748L23.7692 12.1849V6.59385L29.3073 2.80394C32.8037 4.10039 35.8366 6.43394 37.9581 9.42952ZM4.74462 21.6744L9.91346 17.2015L14.6768 19.3745L14.7306 19.399L16.6265 26.8305L14.6618 30.5352L7.94452 30.4472C6.18029 27.9126 5.03933 24.9139 4.74462 21.6744ZM31.3384 30.5351L29.3736 26.8304L31.2728 19.3865L36.0802 17.1961L41.2554 21.6744C40.9607 24.9139 39.8196 27.9126 38.0557 30.4471L31.3384 30.5351Z"),m(r,"fill","black"),m(i,"fill-rule","evenodd"),m(i,"clip-rule","evenodd"),m(i,"d","M23 39C23 39.5523 22.5523 40 22 40L6 40C5.44772 40 5 39.5523 5 39C5 38.4477 5.44772 38 6 38L22 38C22.5523 38 23 38.4477 23 39Z"),m(i,"fill","black"),m(n,"fill-rule","evenodd"),m(n,"clip-rule","evenodd"),m(n,"d","M9 36C9 36.5523 8.55228 37 8 37L1 37C0.447715 37 -3.91405e-08 36.5523 -8.74228e-08 36C-1.35705e-07 35.4477 0.447715 35 1 35L8 35C8.55228 35 9 35.4477 9 36Z"),m(n,"fill","black"),m(s,"fill-rule","evenodd"),m(s,"clip-rule","evenodd"),m(s,"d","M3 39C3 39.5523 2.55228 40 2 40L1 40C0.447715 40 3.91405e-08 39.5523 8.74228e-08 39C1.35705e-07 38.4477 0.447715 38 1 38L2 38C2.55228 38 3 38.4477 3 39Z"),m(s,"fill","black"),m(o,"fill-rule","evenodd"),m(o,"clip-rule","evenodd"),m(o,"d","M23 38C32.9411 38 41 29.9411 41 20C41 10.0589 32.9411 2 23 2C13.0589 2 5 10.0589 5 20C5 29.9411 13.0589 38 23 38ZM23 40C34.0457 40 43 31.0457 43 20C43 8.9543 34.0457 0 23 0C11.9543 0 3 8.9543 3 20C3 31.0457 11.9543 40 23 40Z"),m(o,"fill","black"),td(t,l)},m(u,d){B(u,t,d),p(t,r),p(t,i),p(t,n),p(t,s),p(t,o)},p:ke,d(u){u&&D(t)}}}function h2(e){let t,r=e[24](`bonusCard.${e[4].status}`)+"",i,n=[e[35]("BonusCardTitleSub")],s={};for(let o=0;o<n.length;o+=1)s=T(s,n[o]);return{c(){t=C("p"),i=O(r),S(t,s)},m(o,a){B(o,t,a),p(t,i)},p(o,a){a[0]&16777232&&r!==(r=o[24](`bonusCard.${o[4].status}`)+"")&&ne(i,r,s.contenteditable)},d(o){o&&D(t)}}}function f2(e){let t,r,i,n,s,o=[e[35]("BonusCardTitleSub")],a={};for(let l=0;l<o.length;l+=1)a=T(a,o[l]);return{c(){t=C("span"),r=ee("svg"),i=ee("path"),n=$(),s=O(e[17]),m(i,"d","M16 0H8V2.66667H16V0ZM10.6667 17.3333H13.3333V9.33333H10.6667V17.3333ZM21.3667 8.51333L23.2667 6.61333C22.6933 5.92667 22.0667 5.3 21.38 4.72667L19.48 6.62667C17.3568 4.92342 14.7153 3.99668 11.9933 4C5.36 4 0 9.37333 0 16C0 22.6267 5.36 28 11.9933 28C18.6267 28 24 22.6267 24 16C24 13.1667 23.0133 10.5667 21.3667 8.51333ZM12 25.3333C6.84667 25.3333 2.66667 21.1533 2.66667 16C2.66667 10.8467 6.84667 6.66667 12 6.66667C17.1533 6.66667 21.3333 10.8467 21.3333 16C21.3333 21.1533 17.1533 25.3333 12 25.3333Z"),m(i,"fill","#6D6D6D"),m(r,"width","24"),m(r,"height","28"),m(r,"viewBox","0 0 24 28"),m(r,"fill","none"),m(r,"xmlns","http://www.w3.org/2000/svg"),S(t,a)},m(l,u){B(l,t,u),p(t,r),p(r,i),p(t,n),p(t,s)},p(l,u){u[0]&131072&&ne(s,l[17],a.contenteditable)},d(l){l&&D(t)}}}function p2(e){let t,r,i;function n(h,f){return h[0]==="claimable"?_2:m2}let s=n(e),o=s(e),a=[e[35]("BonusCardDataContent")],l={};for(let h=0;h<a.length;h+=1)l=T(l,a[h]);let u=(e[0]==="active"||e[0]==="completed")&&_u(e),d=[e[35]("BonusCardData")],c={};for(let h=0;h<d.length;h+=1)c=T(c,d[h]);return{c(){t=C("div"),r=C("div"),o.c(),i=$(),u&&u.c(),S(r,l),S(t,c)},m(h,f){B(h,t,f),p(t,r),o.m(r,null),p(t,i),u&&u.m(t,null)},p(h,f){s===(s=n(h))&&o?o.p(h,f):(o.d(1),o=s(h),o&&(o.c(),o.m(r,null))),h[0]==="active"||h[0]==="completed"?u?u.p(h,f):(u=_u(h),u.c(),u.m(t,null)):u&&(u.d(1),u=null)},d(h){h&&D(t),o.d(),u&&u.d()}}}function m2(e){let t,r,i=e[24]("bonusCard.bonusStatus")+"",n,s,o,a,l,u,d,c=e[24]("bonusCard.bonusType")+"",h,f,b,g,v=e[24](`bonusType.${e[4].type}`)+"",y,_,x,w,N,E,I,Z=[e[35]("BonusCardLabel")],X={};for(let A=0;A<Z.length;A+=1)X=T(X,Z[A]);function R(A,H){return A[0]==="active"?b2:g2}let P=R(e),z=P(e),re=[e[35]("BonusCardRowText")],Q={};for(let A=0;A<re.length;A+=1)Q=T(Q,re[A]);let L=[e[35]("BonusCardRow")],V={};for(let A=0;A<L.length;A+=1)V=T(V,L[A]);let U=[e[35]("BonusCardLabel")],W={};for(let A=0;A<U.length;A+=1)W=T(W,U[A]);let oe=[e[35]("BonusCardRowText","Type")],Ee={};for(let A=0;A<oe.length;A+=1)Ee=T(Ee,oe[A]);let Oe=[e[35]("BonusCardRow")],ie={};for(let A=0;A<Oe.length;A+=1)ie=T(ie,Oe[A]);let we=e[4].type==="standard"&&lu(e),ae=e[4].type==="freeBet"&&uu(e),ce=e[4].type==="freeRound"&&du(e),M=e[4].type==="wagering"&&fu(e),Y=e[4].endTime&&e[0]==="active"&&e[4].type!=="wagering"&&pu(e);return{c(){t=C("p"),r=C("span"),n=O(i),s=O(":"),o=$(),a=C("span"),z.c(),l=$(),u=C("p"),d=C("span"),h=O(c),f=O(":"),b=$(),g=C("span"),y=O(v),_=$(),we&&we.c(),x=$(),ae&&ae.c(),w=$(),ce&&ce.c(),N=$(),M&&M.c(),E=$(),Y&&Y.c(),I=Ft(),S(r,X),S(a,Q),le(a,"StatusActive",e[0]==="active"),le(a,"StatusCompleted",e[0]==="completed"),le(a,"StatusClaimable",e[0]==="claimable"),S(t,V),S(d,W),S(g,Ee),S(u,ie)},m(A,H){B(A,t,H),p(t,r),p(r,n),p(r,s),p(t,o),p(t,a),z.m(a,null),B(A,l,H),B(A,u,H),p(u,d),p(d,h),p(d,f),p(u,b),p(u,g),p(g,y),B(A,_,H),we&&we.m(A,H),B(A,x,H),ae&&ae.m(A,H),B(A,w,H),ce&&ce.m(A,H),B(A,N,H),M&&M.m(A,H),B(A,E,H),Y&&Y.m(A,H),B(A,I,H)},p(A,H){H[0]&16777216&&i!==(i=A[24]("bonusCard.bonusStatus")+"")&&ne(n,i,X.contenteditable),P===(P=R(A))&&z?z.p(A,H):(z.d(1),z=P(A),z&&(z.c(),z.m(a,null))),H[0]&1&&le(a,"StatusActive",A[0]==="active"),H[0]&1&&le(a,"StatusCompleted",A[0]==="completed"),H[0]&1&&le(a,"StatusClaimable",A[0]==="claimable"),H[0]&16777216&&c!==(c=A[24]("bonusCard.bonusType")+"")&&ne(h,c,W.contenteditable),H[0]&16777232&&v!==(v=A[24](`bonusType.${A[4].type}`)+"")&&ne(y,v,Ee.contenteditable),A[4].type==="standard"?we?we.p(A,H):(we=lu(A),we.c(),we.m(x.parentNode,x)):we&&(we.d(1),we=null),A[4].type==="freeBet"?ae?ae.p(A,H):(ae=uu(A),ae.c(),ae.m(w.parentNode,w)):ae&&(ae.d(1),ae=null),A[4].type==="freeRound"?ce?ce.p(A,H):(ce=du(A),ce.c(),ce.m(N.parentNode,N)):ce&&(ce.d(1),ce=null),A[4].type==="wagering"?M?M.p(A,H):(M=fu(A),M.c(),M.m(E.parentNode,E)):M&&(M.d(1),M=null),A[4].endTime&&A[0]==="active"&&A[4].type!=="wagering"?Y?Y.p(A,H):(Y=pu(A),Y.c(),Y.m(I.parentNode,I)):Y&&(Y.d(1),Y=null)},d(A){A&&(D(t),D(l),D(u),D(_),D(x),D(w),D(N),D(E),D(I)),z.d(),we&&we.d(A),ae&&ae.d(A),ce&&ce.d(A),M&&M.d(A),Y&&Y.d(A)}}}function _2(e){let t,r,i=e[24]("bonusCard.bonusType")+"",n,s,o,a,l=e[24](`bonusType.${e[4].type}`)+"",u,d,c,h,f,b=e[24]("bonusCard.validity")+"",g,v,y,_,x=e[31](e[4])+"",w,N=[e[35]("BonusCardLabel")],E={};for(let W=0;W<N.length;W+=1)E=T(E,N[W]);let I=[e[35]("BonusCardRowText","Type")],Z={};for(let W=0;W<I.length;W+=1)Z=T(Z,I[W]);let X=[e[35]("BonusCardRow")],R={};for(let W=0;W<X.length;W+=1)R=T(R,X[W]);let P=e[4].type==="wagering"&&mu(e),z=[e[35]("BonusCardLabel")],re={};for(let W=0;W<z.length;W+=1)re=T(re,z[W]);let Q=[e[35]("BonusCardRowText")],L={};for(let W=0;W<Q.length;W+=1)L=T(L,Q[W]);let V=[e[35]("BonusCardRow")],U={};for(let W=0;W<V.length;W+=1)U=T(U,V[W]);return{c(){t=C("p"),r=C("span"),n=O(i),s=O(":"),o=$(),a=C("span"),u=O(l),d=$(),P&&P.c(),c=$(),h=C("p"),f=C("span"),g=O(b),v=O(":"),y=$(),_=C("span"),w=O(x),S(r,E),S(a,Z),S(t,R),S(f,re),S(_,L),S(h,U)},m(W,oe){B(W,t,oe),p(t,r),p(r,n),p(r,s),p(t,o),p(t,a),p(a,u),B(W,d,oe),P&&P.m(W,oe),B(W,c,oe),B(W,h,oe),p(h,f),p(f,g),p(f,v),p(h,y),p(h,_),p(_,w)},p(W,oe){oe[0]&16777216&&i!==(i=W[24]("bonusCard.bonusType")+"")&&ne(n,i,E.contenteditable),oe[0]&16777232&&l!==(l=W[24](`bonusType.${W[4].type}`)+"")&&ne(u,l,Z.contenteditable),W[4].type==="wagering"?P?P.p(W,oe):(P=mu(W),P.c(),P.m(c.parentNode,c)):P&&(P.d(1),P=null),oe[0]&16777216&&b!==(b=W[24]("bonusCard.validity")+"")&&ne(g,b,re.contenteditable),oe[0]&16&&x!==(x=W[31](W[4])+"")&&ne(w,x,L.contenteditable)},d(W){W&&(D(t),D(d),D(c),D(h)),P&&P.d(W)}}}function g2(e){let t=e[24](`bonusCard.${e[4].status}`)+"",r;return{c(){r=O(t)},m(i,n){B(i,r,n)},p(i,n){n[0]&16777232&&t!==(t=i[24](`bonusCard.${i[4].status}`)+"")&&Ce(r,t)},d(i){i&&D(r)}}}function b2(e){let t=e[24](`bonusCard.${e[0]}`)+"",r;return{c(){r=O(t)},m(i,n){B(i,r,n)},p(i,n){n[0]&16777217&&t!==(t=i[24](`bonusCard.${i[0]}`)+"")&&Ce(r,t)},d(i){i&&D(r)}}}function lu(e){let t,r,i=e[24]("bonusCard.bonusAmount")+"",n,s,o,a,l,u=e[4].remainingAmount+"",d,c,h,f,b=e[4].amount+"",g,v,y,_,x,w=e[24]("bonusCard.wageredAmount")+"",N,E,I,Z,X=e[27](e[4])+e[16]+"",R,P,z=[e[35]("BonusCardLabel")],re={};for(let Y=0;Y<z.length;Y+=1)re=T(re,z[Y]);let Q=[e[35]("BonusCardRowText")],L={};for(let Y=0;Y<Q.length;Y+=1)L=T(L,Q[Y]);let V=[e[35]("BonusCardRow")],U={};for(let Y=0;Y<V.length;Y+=1)U=T(U,V[Y]);let W=[e[35]("BonusCardLabel")],oe={};for(let Y=0;Y<W.length;Y+=1)oe=T(oe,W[Y]);function Ee(Y,A){return Y[4].initialWagerRequirementAmount>=2147483647?y2:v2}let Oe=Ee(e),ie=Oe(e),we=[e[35]("BonusCardRowText")],ae={};for(let Y=0;Y<we.length;Y+=1)ae=T(ae,we[Y]);let ce=[e[35]("BonusCardRow")],M={};for(let Y=0;Y<ce.length;Y+=1)M=T(M,ce[Y]);return{c(){t=C("p"),r=C("span"),n=O(i),s=O(":"),o=$(),a=C("span"),l=C("span"),d=O(u),c=O(e[16]),h=O(` /
|
|
3582
|
+
`),f=C("span"),g=O(b),v=O(e[16]),y=$(),_=C("p"),x=C("span"),N=O(w),E=O(":"),I=$(),Z=C("span"),R=O(X),P=O(` /
|
|
3583
|
+
`),ie.c(),S(r,re),le(l,"BonusAmount",e[0]==="active"),le(f,"Amount",e[0]==="active"),S(a,L),S(t,U),S(x,oe),S(Z,ae),S(_,M)},m(Y,A){B(Y,t,A),p(t,r),p(r,n),p(r,s),p(t,o),p(t,a),p(a,l),p(l,d),p(l,c),p(a,h),p(a,f),p(f,g),p(f,v),B(Y,y,A),B(Y,_,A),p(_,x),p(x,N),p(x,E),p(_,I),p(_,Z),p(Z,R),p(Z,P),ie.m(Z,null)},p(Y,A){A[0]&16777216&&i!==(i=Y[24]("bonusCard.bonusAmount")+"")&&ne(n,i,re.contenteditable),A[0]&16&&u!==(u=Y[4].remainingAmount+"")&&Ce(d,u),A[0]&65536&&Ce(c,Y[16]),A[0]&1&&le(l,"BonusAmount",Y[0]==="active"),A[0]&16&&b!==(b=Y[4].amount+"")&&Ce(g,b),A[0]&65536&&Ce(v,Y[16]),A[0]&1&&le(f,"Amount",Y[0]==="active"),A[0]&16777216&&w!==(w=Y[24]("bonusCard.wageredAmount")+"")&&ne(N,w,oe.contenteditable),A[0]&65552&&X!==(X=Y[27](Y[4])+Y[16]+"")&&ne(R,X,ae.contenteditable),Oe===(Oe=Ee(Y))&&ie?ie.p(Y,A):(ie.d(1),ie=Oe(Y),ie&&(ie.c(),ie.m(Z,null)))},d(Y){Y&&(D(t),D(y),D(_)),ie.d()}}}function v2(e){let t=e[4].initialWagerRequirementAmount+e[16]+"",r;return{c(){r=O(t)},m(i,n){B(i,r,n)},p(i,n){n[0]&65552&&t!==(t=i[4].initialWagerRequirementAmount+i[16]+"")&&Ce(r,t)},d(i){i&&D(r)}}}function y2(e){let t;return{c(){t=O("∞")},m(r,i){B(r,t,i)},p:ke,d(r){r&&D(t)}}}function uu(e){let t,r,i=e[24]("bonusCard.bonusAmount")+"",n,s,o,a,l,u=e[4].remainingAmount+"",d,c,h=[e[35]("BonusCardLabel")],f={};for(let _=0;_<h.length;_+=1)f=T(f,h[_]);let b=[e[35]("BonusCardRowText")],g={};for(let _=0;_<b.length;_+=1)g=T(g,b[_]);let v=[e[35]("BonusCardRow")],y={};for(let _=0;_<v.length;_+=1)y=T(y,v[_]);return{c(){t=C("p"),r=C("span"),n=O(i),s=O(":"),o=$(),a=C("span"),l=C("span"),d=O(u),c=O(e[16]),S(r,f),le(l,"BonusAmount",e[0]==="active"),S(a,g),S(t,y)},m(_,x){B(_,t,x),p(t,r),p(r,n),p(r,s),p(t,o),p(t,a),p(a,l),p(l,d),p(l,c)},p(_,x){x[0]&16777216&&i!==(i=_[24]("bonusCard.bonusAmount")+"")&&ne(n,i,f.contenteditable),x[0]&16&&u!==(u=_[4].remainingAmount+"")&&Ce(d,u),x[0]&65536&&Ce(c,_[16]),x[0]&1&&le(l,"BonusAmount",_[0]==="active")},d(_){_&&D(t)}}}function du(e){let t,r=e[4].status==="active"&&cu(e);return{c(){r&&r.c(),t=Ft()},m(i,n){r&&r.m(i,n),B(i,t,n)},p(i,n){i[4].status==="active"?r?r.p(i,n):(r=cu(i),r.c(),r.m(t.parentNode,t)):r&&(r.d(1),r=null)},d(i){i&&D(t),r&&r.d(i)}}}function cu(e){let t,r,i=e[24]("bonusCard.roundNumber")+"",n,s,o,a,l=e[4].numberOfFreeSpin+"",u,d,c,h,f=e[24]("bonusCard.game")+"",b,g,v,y,_,x,w,N,E,I,Z,X,R,P,z,re,Q,L,V,U=[e[35]("BonusCardLabel")],W={};for(let J=0;J<U.length;J+=1)W=T(W,U[J]);let oe=[e[35]("BonusCardRowText")],Ee={};for(let J=0;J<oe.length;J+=1)Ee=T(Ee,oe[J]);let Oe=[e[35]("BonusCardRow")],ie={};for(let J=0;J<Oe.length;J+=1)ie=T(ie,Oe[J]);let we=[e[35]("BonusCardLabel")],ae={};for(let J=0;J<we.length;J+=1)ae=T(ae,we[J]);let ce=je(e[22]),M=[];for(let J=0;J<ce.length;J+=1)M[J]=hu(nu(e,ce,J));let Y=[e[35]("BonusCardRowText")],A={};for(let J=0;J<Y.length;J+=1)A=T(A,Y[J]);let H=[e[35]("BonusCardRow")],Me={};for(let J=0;J<H.length;J+=1)Me=T(Me,H[J]);return{c(){t=C("p"),r=C("span"),n=O(i),s=O(":"),o=$(),a=C("span"),u=O(l),d=$(),c=C("div"),h=C("div"),b=O(f),g=O(":"),v=$(),y=C("div"),_=C("div"),x=C("button"),w=ee("svg"),N=ee("path"),I=$(),Z=C("div"),X=C("span");for(let J=0;J<M.length;J+=1)M[J].c();R=$(),P=C("button"),z=ee("svg"),re=ee("path"),S(r,W),S(a,Ee),S(t,ie),S(h,ae),m(N,"stroke-linecap","round"),m(N,"stroke-linejoin","round"),m(N,"stroke-width","2"),m(N,"d","M15 19l-7-7 7-7"),m(w,"fill","none"),m(w,"stroke","currentColor"),m(w,"viewBox","0 0 24 24"),m(w,"xmlns","http://www.w3.org/2000/svg"),m(x,"class","SliderNavButton"),m(x,"part","SliderNavButton"),x.disabled=E=e[23]==0,le(x,"Hide",e[22].length<=3),m(X,"class","Games"),qs(X,"transform","translateX("+e[23]+"px)"),m(Z,"class","Main"),m(re,"stroke-linecap","round"),m(re,"stroke-linejoin","round"),m(re,"stroke-width","2"),m(re,"d","M9 5l7 7-7 7"),m(z,"fill","none"),m(z,"stroke","currentColor"),m(z,"viewBox","0 0 24 24"),m(z,"xmlns","http://www.w3.org/2000/svg"),m(P,"class","SliderNavButton"),m(P,"part","SliderNavButton"),P.disabled=Q=e[23]<=-(e[22].length-3)*100,le(P,"Hide",e[22].length<=3),m(_,"class","BonusGamesSlider"),S(y,A),S(c,Me)},m(J,He){B(J,t,He),p(t,r),p(r,n),p(r,s),p(t,o),p(t,a),p(a,u),B(J,d,He),B(J,c,He),p(c,h),p(h,b),p(h,g),p(c,v),p(c,y),p(y,_),p(_,x),p(x,w),p(w,N),p(_,I),p(_,Z),p(Z,X);for(let Be=0;Be<M.length;Be+=1)M[Be]&&M[Be].m(X,null);p(_,R),p(_,P),p(P,z),p(z,re),L||(V=[Le(x,"click",e[45]),Le(P,"click",e[49])],L=!0)},p(J,He){if(He[0]&16777216&&i!==(i=J[24]("bonusCard.roundNumber")+"")&&ne(n,i,W.contenteditable),He[0]&16&&l!==(l=J[4].numberOfFreeSpin+"")&&ne(u,l,Ee.contenteditable),He[0]&16777216&&f!==(f=J[24]("bonusCard.game")+"")&&ne(b,f,ae.contenteditable),He[0]&8388608&&E!==(E=J[23]==0)&&(x.disabled=E),He[0]&4194304&&le(x,"Hide",J[22].length<=3),He[0]&24117248|He[1]&224){ce=je(J[22]);let Be;for(Be=0;Be<ce.length;Be+=1){const Yt=nu(J,ce,Be);M[Be]?M[Be].p(Yt,He):(M[Be]=hu(Yt),M[Be].c(),M[Be].m(X,null))}for(;Be<M.length;Be+=1)M[Be].d(1);M.length=ce.length}He[0]&8388608&&qs(X,"transform","translateX("+J[23]+"px)"),He[0]&12582912&&Q!==(Q=J[23]<=-(J[22].length-3)*100)&&(P.disabled=Q),He[0]&4194304&&le(P,"Hide",J[22].length<=3)},d(J){J&&(D(t),D(d),D(c)),Xt(M,J),L=!1,gt(V)}}}function hu(e){let t,r,i=e[24]("bonusCard.playNow")+"",n,s,o,a,l,u,d,c,h,f,b;function g(){return e[46](e[82])}function v(){return e[47](e[84])}return{c(){t=C("span"),r=C("span"),n=O(i),a=$(),l=C("img"),h=$(),m(r,"class",s="PlayNowButton "+(e[20]&&e[21]==e[84]?"ItemHover":"")),m(r,"part",o="PlayNowButton "+(e[20]&&e[21]==e[84]?"itemHover":"")),Ha(l.src,u=e[82].thumbnail)||m(l,"src",u),m(l,"width","100px"),m(l,"height","75px"),m(l,"alt",d=e[82].name),m(l,"title",c=e[82].name),m(t,"class","Game"),m(t,"part","Game")},m(y,_){B(y,t,_),p(t,r),p(r,n),p(t,a),p(t,l),p(t,h),f||(b=[Le(t,"click",g),Le(t,"mouseenter",v),Le(t,"mouseleave",e[48])],f=!0)},p(y,_){e=y,_[0]&16777216&&i!==(i=e[24]("bonusCard.playNow")+"")&&Ce(n,i),_[0]&3145728&&s!==(s="PlayNowButton "+(e[20]&&e[21]==e[84]?"ItemHover":""))&&m(r,"class",s),_[0]&3145728&&o!==(o="PlayNowButton "+(e[20]&&e[21]==e[84]?"itemHover":""))&&m(r,"part",o),_[0]&4194304&&!Ha(l.src,u=e[82].thumbnail)&&m(l,"src",u),_[0]&4194304&&d!==(d=e[82].name)&&m(l,"alt",d),_[0]&4194304&&c!==(c=e[82].name)&&m(l,"title",c)},d(y){y&&D(t),f=!1,gt(b)}}}function fu(e){let t,r,i=e[24]("bonusCard.wageringType")+"",n,s,o,a,l=e[24](`bonusCard.${e[4].wageringType}`)+"",u,d,c,h,f=e[24]("bonusCard.wagered")+"",b,g,v,y,_=[e[35]("BonusCardLabel")],x={};for(let U=0;U<_.length;U+=1)x=T(x,_[U]);let w=[e[35]("BonusCardRowText")],N={};for(let U=0;U<w.length;U+=1)N=T(N,w[U]);let E=[e[35]("BonusCardRow")],I={};for(let U=0;U<E.length;U+=1)I=T(I,E[U]);let Z=[e[35]("BonusCardLabel")],X={};for(let U=0;U<Z.length;U+=1)X=T(X,Z[U]);function R(U,W){return U[4].wageringType==="money"?C2:w2}let P=R(e),z=P(e),re=[e[35]("BonusCardRowText")],Q={};for(let U=0;U<re.length;U+=1)Q=T(Q,re[U]);let L=[e[35]("BonusCardRow")],V={};for(let U=0;U<L.length;U+=1)V=T(V,L[U]);return{c(){t=C("p"),r=C("span"),n=O(i),s=O(":"),o=$(),a=C("span"),u=O(l),d=$(),c=C("p"),h=C("span"),b=O(f),g=O(":"),v=$(),y=C("span"),z.c(),S(r,x),S(a,N),S(t,I),S(h,X),S(y,Q),S(c,V)},m(U,W){B(U,t,W),p(t,r),p(r,n),p(r,s),p(t,o),p(t,a),p(a,u),B(U,d,W),B(U,c,W),p(c,h),p(h,b),p(h,g),p(c,v),p(c,y),z.m(y,null)},p(U,W){W[0]&16777216&&i!==(i=U[24]("bonusCard.wageringType")+"")&&ne(n,i,x.contenteditable),W[0]&16777232&&l!==(l=U[24](`bonusCard.${U[4].wageringType}`)+"")&&ne(u,l,N.contenteditable),W[0]&16777216&&f!==(f=U[24]("bonusCard.wagered")+"")&&ne(b,f,X.contenteditable),P===(P=R(U))&&z?z.p(U,W):(z.d(1),z=P(U),z&&(z.c(),z.m(y,null)))},d(U){U&&(D(t),D(d),D(c)),z.d()}}}function w2(e){return{c:ke,m:ke,p:ke,d:ke}}function C2(e){let t;function r(s,o){return s[0]==="active"?x2:E2}let i=r(e),n=i(e);return{c(){n.c(),t=Ft()},m(s,o){n.m(s,o),B(s,t,o)},p(s,o){i===(i=r(s))&&n?n.p(s,o):(n.d(1),n=i(s),n&&(n.c(),n.m(t.parentNode,t)))},d(s){s&&D(t),n.d(s)}}}function E2(e){let t=e[27](e[4])+e[16]+"",r,i,n;function s(l,u){return l[4].initialWagerRequirementAmount>=2147483647?k2:S2}let o=s(e),a=o(e);return{c(){r=O(t),i=O(` /
|
|
3584
|
+
`),a.c(),n=Ft()},m(l,u){B(l,r,u),B(l,i,u),a.m(l,u),B(l,n,u)},p(l,u){u[0]&65552&&t!==(t=l[27](l[4])+l[16]+"")&&Ce(r,t),o===(o=s(l))&&a?a.p(l,u):(a.d(1),a=o(l),a&&(a.c(),a.m(n.parentNode,n)))},d(l){l&&(D(r),D(i),D(n)),a.d(l)}}}function x2(e){var d;let t=e[28](e[4])+"",r,i,n,s,o=((d=e[4].wageringProgress)==null?void 0:d.currentLevelIncrement)+"",a,l,u;return{c(){r=O(t),i=$(),n=O(e[16]),s=O(` /
|
|
3585
|
+
`),a=O(o),l=$(),u=O(e[16])},m(c,h){B(c,r,h),B(c,i,h),B(c,n,h),B(c,s,h),B(c,a,h),B(c,l,h),B(c,u,h)},p(c,h){var f;h[0]&16&&t!==(t=c[28](c[4])+"")&&Ce(r,t),h[0]&65536&&Ce(n,c[16]),h[0]&16&&o!==(o=((f=c[4].wageringProgress)==null?void 0:f.currentLevelIncrement)+"")&&Ce(a,o),h[0]&65536&&Ce(u,c[16])},d(c){c&&(D(r),D(i),D(n),D(s),D(a),D(l),D(u))}}}function S2(e){let t=e[4].initialWagerRequirementAmount+e[16]+"",r;return{c(){r=O(t)},m(i,n){B(i,r,n)},p(i,n){n[0]&65552&&t!==(t=i[4].initialWagerRequirementAmount+i[16]+"")&&Ce(r,t)},d(i){i&&D(r)}}}function k2(e){let t;return{c(){t=O("∞")},m(r,i){B(r,t,i)},p:ke,d(r){r&&D(t)}}}function pu(e){let t,r,i=e[24]("bonusCard.validUntil")+"",n,s,o,a,l=e[30](e[4].endTime)+"",u,d=[e[35]("BonusCardLabel")],c={};for(let v=0;v<d.length;v+=1)c=T(c,d[v]);let h=[e[35]("BonusCardRowText")],f={};for(let v=0;v<h.length;v+=1)f=T(f,h[v]);let b=[e[35]("BonusCardRow")],g={};for(let v=0;v<b.length;v+=1)g=T(g,b[v]);return{c(){t=C("p"),r=C("span"),n=O(i),s=O(":"),o=$(),a=C("span"),u=O(l),S(r,c),S(a,f),S(t,g)},m(v,y){B(v,t,y),p(t,r),p(r,n),p(r,s),p(t,o),p(t,a),p(a,u)},p(v,y){y[0]&16777216&&i!==(i=v[24]("bonusCard.validUntil")+"")&&ne(n,i,c.contenteditable),y[0]&16&&l!==(l=v[30](v[4].endTime)+"")&&ne(u,l,f.contenteditable)},d(v){v&&D(t)}}}function mu(e){let t,r,i=e[24]("bonusCard.levels")+"",n,s,o,a,l=[e[35]("BonusCardLabel")],u={};for(let y=0;y<l.length;y+=1)u=T(u,l[y]);function d(y,_){return y[7]>0?T2:A2}let c=d(e),h=c(e),f=[e[35]("BonusCardRowText")],b={};for(let y=0;y<f.length;y+=1)b=T(b,f[y]);let g=[e[35]("BonusCardRow")],v={};for(let y=0;y<g.length;y+=1)v=T(v,g[y]);return{c(){t=C("p"),r=C("span"),n=O(i),s=O(":"),o=$(),a=C("span"),h.c(),S(r,u),S(a,b),S(t,v)},m(y,_){B(y,t,_),p(t,r),p(r,n),p(r,s),p(t,o),p(t,a),h.m(a,null)},p(y,_){_[0]&16777216&&i!==(i=y[24]("bonusCard.levels")+"")&&ne(n,i,u.contenteditable),c===(c=d(y))&&h?h.p(y,_):(h.d(1),h=c(y),h&&(h.c(),h.m(a,null)))},d(y){y&&D(t),h.d()}}}function A2(e){let t;return{c(){t=O("∞")},m(r,i){B(r,t,i)},p:ke,d(r){r&&D(t)}}}function T2(e){let t;return{c(){t=O(e[7])},m(r,i){B(r,t,i)},p(r,i){i[0]&128&&Ce(t,r[7])},d(r){r&&D(t)}}}function _u(e){let t,r,i=e[4].type==="standard"&&gu(e),n=e[4].type==="wagering"&&bu(e);return{c(){i&&i.c(),t=$(),n&&n.c(),r=Ft()},m(s,o){i&&i.m(s,o),B(s,t,o),n&&n.m(s,o),B(s,r,o)},p(s,o){s[4].type==="standard"?i?i.p(s,o):(i=gu(s),i.c(),i.m(t.parentNode,t)):i&&(i.d(1),i=null),s[4].type==="wagering"?n?n.p(s,o):(n=bu(s),n.c(),n.m(r.parentNode,r)):n&&(n.d(1),n=null)},d(s){s&&(D(t),D(r)),i&&i.d(s),n&&n.d(s)}}}function gu(e){let t,r,i,n=[e[35]("CircularProgress"),{value:i=e[29](e[4])},{status:e[0]},{clientstyling:e[2]},{clientstylingurl:e[3]},{mbsource:e[1]}],s={};for(let l=0;l<n.length;l+=1)s=T(s,n[l]);let o=[e[35]("BonusCardProgress")],a={};for(let l=0;l<o.length;l+=1)a=T(a,o[l]);return{c(){t=C("div"),r=C("casino-bonus-progress"),S(r,s),S(t,a)},m(l,u){B(l,t,u),p(t,r)},p(l,u){S(r,s=Ie(n,[l[35]("CircularProgress"),u[0]&16&&i!==(i=l[29](l[4]))&&{value:i},u[0]&1&&{status:l[0]},u[0]&4&&{clientstyling:l[2]},u[0]&8&&{clientstylingurl:l[3]},u[0]&2&&{mbsource:l[1]}]))},d(l){l&&D(t)}}}function bu(e){var N;let t,r,i,n,s,o=e[24]("bonusCard.level")+"",a,l,u=(((N=e[4].wageringProgress)==null?void 0:N.currentLevel)||1)+"",d,c,h=[e[35]("CircularProgress"),{value:i=e[29](e[4])},{status:e[0]},{clientstyling:e[2]},{clientstylingurl:e[3]},{mbsource:e[1]}],f={};for(let E=0;E<h.length;E+=1)f=T(f,h[E]);function b(E,I){return E[7]>0?D2:P2}let g=b(e),v=g(e),y=[e[35]("CircularProgressText")],_={};for(let E=0;E<y.length;E+=1)_=T(_,y[E]);let x=[e[35]("BonusCardProgress")],w={};for(let E=0;E<x.length;E+=1)w=T(w,x[E]);return{c(){t=C("div"),r=C("casino-bonus-progress"),n=$(),s=C("div"),a=O(o),l=O(": "),d=O(u),c=O(` /
|
|
3586
|
+
`),v.c(),S(r,f),S(s,_),S(t,w)},m(E,I){B(E,t,I),p(t,r),p(t,n),p(t,s),p(s,a),p(s,l),p(s,d),p(s,c),v.m(s,null)},p(E,I){var Z;S(r,f=Ie(h,[E[35]("CircularProgress"),I[0]&16&&i!==(i=E[29](E[4]))&&{value:i},I[0]&1&&{status:E[0]},I[0]&4&&{clientstyling:E[2]},I[0]&8&&{clientstylingurl:E[3]},I[0]&2&&{mbsource:E[1]}])),I[0]&16777216&&o!==(o=E[24]("bonusCard.level")+"")&&ne(a,o,_.contenteditable),I[0]&16&&u!==(u=(((Z=E[4].wageringProgress)==null?void 0:Z.currentLevel)||1)+"")&&ne(d,u,_.contenteditable),g===(g=b(E))&&v?v.p(E,I):(v.d(1),v=g(E),v&&(v.c(),v.m(s,null)))},d(E){E&&D(t),v.d()}}}function P2(e){let t;return{c(){t=O("∞")},m(r,i){B(r,t,i)},p:ke,d(r){r&&D(t)}}}function D2(e){let t;return{c(){t=O(e[7])},m(r,i){B(r,t,i)},p(r,i){i[0]&128&&Ce(t,r[7])},d(r){r&&D(t)}}}function vu(e){let t,r,i,n,s,o,a=e[24]("bonusCard.rewards")+"",l,u,d,c,h,f,b=[e[35]("BonusCardAdditionalTitle")],g={};for(let R=0;R<b.length;R+=1)g=T(g,b[R]);function v(R,P){return R[10]?M2:O2}let y=v(e),_=y(e),x=[e[35]("BonusCardAdditionalButton")],w={};for(let R=0;R<x.length;R+=1)w=T(w,x[R]);let N=[e[35]("BonusCardAdditionalHeader")],E={};for(let R=0;R<N.length;R+=1)E=T(E,N[R]);let I=e[10]&&yu(e),Z=[e[35]("BonusCardAdditional")],X={};for(let R=0;R<Z.length;R+=1)X=T(X,Z[R]);return{c(){t=C("div"),r=C("div"),i=C("span"),n=ee("svg"),s=ee("path"),o=$(),l=O(a),u=$(),d=C("span"),_.c(),c=$(),I&&I.c(),m(s,"d","M18 5.97075H14.885C15.3396 5.74285 15.7565 5.44638 16.121 5.09175C16.6824 4.52865 16.9977 3.76592 16.9977 2.97075C16.9977 2.17558 16.6824 1.41285 16.121 0.84975C14.987 -0.28325 13.013 -0.28325 11.879 0.84975C10.243 2.48675 10.02 5.56775 10 5.91375C9.98 5.56775 9.757 2.48675 8.121 0.85075C6.987 -0.28225 5.011 -0.28125 3.879 0.85075C3.312 1.41675 3 2.16975 3 2.97075C3 3.77175 3.312 4.52575 3.878 5.09175C4.24311 5.4461 4.66027 5.74253 5.115 5.97075H2C0.897 5.97075 0 6.86875 0 7.97075V10.9707C0 11.236 0.105357 11.4903 0.292893 11.6779C0.48043 11.8654 0.734784 11.9707 1 11.9707V17.9708C1 19.0738 1.897 19.9708 3 19.9708H17C18.103 19.9708 19 19.0738 19 17.9708V11.9707C19.2652 11.9707 19.5196 11.8654 19.7071 11.6779C19.8946 11.4903 20 11.236 20 10.9707V7.97075C20 6.86875 19.103 5.97075 18 5.97075ZM6 17.9708H3V11.9707H6V17.9708ZM6 9.97075H2V7.97075H6V9.97075ZM5.293 3.67775C5.19982 3.58514 5.12595 3.47497 5.07565 3.35361C5.02536 3.23225 4.99964 3.10212 5 2.97075C4.99947 2.83933 5.02498 2.7091 5.07506 2.58759C5.12514 2.46608 5.1988 2.3557 5.29177 2.26281C5.38475 2.16993 5.49521 2.09639 5.61677 2.04643C5.73833 1.99647 5.86858 1.97109 6 1.97175C6.268 1.97175 6.519 2.07575 6.708 2.26475C7.298 2.85375 7.642 3.91275 7.826 4.79475C6.945 4.60975 5.88 4.26475 5.293 3.67775ZM12 17.9708H8V11.9707H12V17.9708ZM12 9.97075H8V7.97075H12V9.97075ZM13.293 2.26475C13.482 2.07575 13.733 1.97175 14 1.97175C14.267 1.97175 14.518 2.07575 14.707 2.26375C14.8945 2.45128 14.9998 2.70559 14.9998 2.97075C14.9998 3.23591 14.8945 3.49022 14.707 3.67775C14.117 4.26975 13.058 4.61375 12.175 4.79875C12.358 3.91375 12.703 2.85475 13.293 2.26475ZM17 17.9708H14V11.9707H17V17.9708ZM18 9.97075H14V7.97075H18V9.97075Z"),m(s,"fill","black"),m(n,"width","20"),m(n,"height","20"),m(n,"viewBox","0 0 20 20"),m(n,"fill","none"),m(n,"xmlns","http://www.w3.org/2000/svg"),S(i,g),S(d,w),S(r,E),le(r,"Active",e[10]),S(t,X)},m(R,P){B(R,t,P),p(t,r),p(r,i),p(i,n),p(n,s),p(i,o),p(i,l),p(r,u),p(r,d),_.m(d,null),p(t,c),I&&I.m(t,null),h||(f=Le(r,"click",e[50]),h=!0)},p(R,P){P[0]&16777216&&a!==(a=R[24]("bonusCard.rewards")+"")&&ne(l,a,g.contenteditable),y!==(y=v(R))&&(_.d(1),_=y(R),_&&(_.c(),_.m(d,null))),P[0]&1024&&le(r,"Active",R[10]),R[10]?I?I.p(R,P):(I=yu(R),I.c(),I.m(t,null)):I&&(I.d(1),I=null)},d(R){R&&D(t),_.d(),I&&I.d(),h=!1,f()}}}function M2(e){let t,r;return{c(){t=ee("svg"),r=ee("path"),m(r,"d","M16.1422 10.071L9.07108 2.99998L2.00002 10.071"),m(r,"stroke","black"),m(r,"stroke-width","3"),m(r,"stroke-linecap","round"),m(t,"width","18"),m(t,"height","12"),m(t,"viewBox","0 0 18 12"),m(t,"fill","none"),m(t,"xmlns","http://www.w3.org/2000/svg")},m(i,n){B(i,t,n),p(t,r)},d(i){i&&D(t)}}}function O2(e){let t,r;return{c(){t=ee("svg"),r=ee("path"),m(r,"d","M2 2.07104L9.07107 9.14211L16.1421 2.07104"),m(r,"stroke","black"),m(r,"stroke-width","3"),m(r,"stroke-linecap","round"),m(t,"width","18"),m(t,"height","12"),m(t,"viewBox","0 0 18 12"),m(t,"fill","none"),m(t,"xmlns","http://www.w3.org/2000/svg")},m(i,n){B(i,t,n),p(t,r)},d(i){i&&D(t)}}}function yu(e){let t,r=e[4].type==="wagering"&&wu(e),i=[e[35]("BonusCardAdditionalContent")],n={};for(let s=0;s<i.length;s+=1)n=T(n,i[s]);return{c(){t=C("div"),r&&r.c(),S(t,n)},m(s,o){B(s,t,o),r&&r.m(t,null)},p(s,o){s[4].type==="wagering"?r?r.p(s,o):(r=wu(s),r.c(),r.m(t,null)):r&&(r.d(1),r=null)},d(s){s&&D(t),r&&r.d()}}}function wu(e){let t,r,i=e[24]("bonusCard.allRewards")+"",n,s,o;function a(h,f){return h[4].status?N2:B2}let l=a(e),u=l(e),d=[e[35]("BonusAllRewardsLink"),{href:"javascript:void(0)"}],c={};for(let h=0;h<d.length;h+=1)c=T(c,d[h]);return{c(){u.c(),t=$(),r=C("a"),n=O(i),S(r,c)},m(h,f){u.m(h,f),B(h,t,f),B(h,r,f),p(r,n),s||(o=Le(r,"click",e[51]),s=!0)},p(h,f){l===(l=a(h))&&u?u.p(h,f):(u.d(1),u=l(h),u&&(u.c(),u.m(t.parentNode,t))),f[0]&16777216&&i!==(i=h[24]("bonusCard.allRewards")+"")&&ne(n,i,c.contenteditable)},d(h){h&&(D(t),D(r)),u.d(h),s=!1,o()}}}function B2(e){let t,r=je(e[4].levels),i=[];for(let n=0;n<r.length;n+=1)i[n]=Eu(eu(e,r,n));return{c(){for(let n=0;n<i.length;n+=1)i[n].c();t=Ft()},m(n,s){for(let o=0;o<i.length;o+=1)i[o]&&i[o].m(n,s);B(n,t,s)},p(n,s){if(s[0]&16777232|s[1]&20){r=je(n[4].levels);let o;for(o=0;o<r.length;o+=1){const a=eu(n,r,o);i[o]?i[o].p(a,s):(i[o]=Eu(a),i[o].c(),i[o].m(t.parentNode,t))}for(;o<i.length;o+=1)i[o].d(1);i.length=r.length}},d(n){n&&D(t),Xt(i,n)}}}function N2(e){let t,r=je(e[34](e[4],e[6])),i=[];for(let n=0;n<r.length;n+=1)i[n]=Su(ru(e,r,n));return{c(){for(let n=0;n<i.length;n+=1)i[n].c();t=Ft()},m(n,s){for(let o=0;o<i.length;o+=1)i[o]&&i[o].m(n,s);B(n,t,s)},p(n,s){if(s[0]&16777296|s[1]&24){r=je(n[34](n[4],n[6]));let o;for(o=0;o<r.length;o+=1){const a=ru(n,r,o);i[o]?i[o].p(a,s):(i[o]=Su(a),i[o].c(),i[o].m(t.parentNode,t))}for(;o<i.length;o+=1)i[o].d(1);i.length=r.length}},d(n){n&&D(t),Xt(i,n)}}}function Cu(e){let t=e[33](e[76],e[79])+"",r;return{c(){r=O(t)},m(i,n){B(i,r,n)},p(i,n){n[0]&16&&t!==(t=i[33](i[76],i[79])+"")&&Ce(r,t)},d(i){i&&D(r)}}}function Eu(e){let t,r,i=e[24]("bonusCard.level")+"",n,s,o=(e[76].maxRepeats>1?`${e[78]+1}-${e[78]+1+e[76].maxRepeats-1}`:e[78]+1)+"",a,l,u,d,c,h=[e[35]("BonusRewardsLevelsItemPosition")],f={};for(let _=0;_<h.length;_+=1)f=T(f,h[_]);let b=je(e[76].bonuses),g=[];for(let _=0;_<b.length;_+=1)g[_]=Cu(tu(e,b,_));let v=[e[35]("BonusRewardsLevelsItem")],y={};for(let _=0;_<v.length;_+=1)y=T(y,v[_]);return{c(){t=C("p"),r=C("span"),n=O(i),s=$(),a=O(o),l=O(":"),u=$(),d=C("span");for(let _=0;_<g.length;_+=1)g[_].c();c=$(),S(r,f),S(t,y)},m(_,x){B(_,t,x),p(t,r),p(r,n),p(r,s),p(r,a),p(r,l),p(t,u),p(t,d);for(let w=0;w<g.length;w+=1)g[w]&&g[w].m(d,null);p(t,c)},p(_,x){if(x[0]&16777216&&i!==(i=_[24]("bonusCard.level")+"")&&ne(n,i,f.contenteditable),x[0]&16&&o!==(o=(_[76].maxRepeats>1?`${_[78]+1}-${_[78]+1+_[76].maxRepeats-1}`:_[78]+1)+"")&&ne(a,o,f.contenteditable),x[0]&16|x[1]&4){b=je(_[76].bonuses);let w;for(w=0;w<b.length;w+=1){const N=tu(_,b,w);g[w]?g[w].p(N,x):(g[w]=Cu(N),g[w].c(),g[w].m(d,null))}for(;w<g.length;w+=1)g[w].d(1);g.length=b.length}},d(_){_&&D(t),Xt(g,_)}}}function xu(e){let t=e[73]+"",r;return{c(){r=O(t)},m(i,n){B(i,r,n)},p(i,n){n[0]&80&&t!==(t=i[73]+"")&&Ce(r,t)},d(i){i&&D(r)}}}function Su(e){let t,r,i=e[24](`bonusCard.${e[70].label}`)+"",n,s,o=e[24]("bonusCard.level")+"",a,l,u,d,c,h=[e[35]("BonusRewardsLevelsItemPosition")],f={};for(let _=0;_<h.length;_+=1)f=T(f,h[_]);let b=je(e[70].desc),g=[];for(let _=0;_<b.length;_+=1)g[_]=xu(iu(e,b,_));let v=[e[35]("BonusRewardsLevelsItem")],y={};for(let _=0;_<v.length;_+=1)y=T(y,v[_]);return{c(){t=C("p"),r=C("span"),n=O(i),s=$(),a=O(o),l=O(":"),u=$(),d=C("span");for(let _=0;_<g.length;_+=1)g[_].c();c=$(),S(r,f),S(t,y)},m(_,x){B(_,t,x),p(t,r),p(r,n),p(r,s),p(r,a),p(r,l),p(t,u),p(t,d);for(let w=0;w<g.length;w+=1)g[w]&&g[w].m(d,null);p(t,c)},p(_,x){if(x[0]&16777296&&i!==(i=_[24](`bonusCard.${_[70].label}`)+"")&&ne(n,i,f.contenteditable),x[0]&16777216&&o!==(o=_[24]("bonusCard.level")+"")&&ne(a,o,f.contenteditable),x[0]&80|x[1]&8){b=je(_[70].desc);let w;for(w=0;w<b.length;w+=1){const N=iu(_,b,w);g[w]?g[w].p(N,x):(g[w]=xu(N),g[w].c(),g[w].m(d,null))}for(;w<g.length;w+=1)g[w].d(1);g.length=b.length}},d(_){_&&D(t),Xt(g,_)}}}function I2(e){let t,r,i,n,s,o,a,l,u,d,c=e[24]("bonusCard.terms")+"",h,f=[e[35]("BonusCardTermsLink"),{href:e[19]},{target:"__blank"}],b={};for(let y=0;y<f.length;y+=1)b=T(b,f[y]);let g=[e[35]("BonusCardTerms")],v={};for(let y=0;y<g.length;y+=1)v=T(v,g[y]);return{c(){t=C("div"),r=C("a"),i=ee("svg"),n=ee("path"),s=ee("path"),o=ee("path"),a=ee("path"),l=ee("path"),u=ee("path"),d=$(),h=O(c),m(n,"fill-rule","evenodd"),m(n,"clip-rule","evenodd"),m(n,"d","M0.5 3.675C0.5 1.64535 2.14535 0 4.175 0H14.675C16.7046 0 18.35 1.64535 18.35 3.675V13.4312C18.35 14.4319 17.9419 15.3893 17.2201 16.0823L13.164 19.9761C12.4796 20.6331 11.5676 21 10.6189 21H4.175C2.14536 21 0.5 19.3546 0.5 17.325V3.675ZM4.175 2.1C3.30515 2.1 2.6 2.80515 2.6 3.675V17.325C2.6 18.1948 3.30515 18.9 4.175 18.9H10.6189C11.0255 18.9 11.4164 18.7428 11.7097 18.4612L15.7657 14.5674C16.0751 14.2704 16.25 13.86 16.25 13.4312V3.675C16.25 2.80515 15.5448 2.1 14.675 2.1H4.175Z"),m(n,"fill","black"),m(s,"fill-rule","evenodd"),m(s,"clip-rule","evenodd"),m(s,"d","M16.775 14.9625L12.575 14.9625C12.1401 14.9625 11.7875 15.3151 11.7875 15.75L11.7875 19.95L10.2125 19.95L10.2125 15.75C10.2125 14.4452 11.2703 13.3875 12.575 13.3875L16.775 13.3875L16.775 14.9625Z"),m(s,"fill","black"),m(o,"fill-rule","evenodd"),m(o,"clip-rule","evenodd"),m(o,"d","M6.27502 4.9875C6.27502 4.55258 6.6276 4.2 7.06252 4.2H11.7875C12.2224 4.2 12.575 4.55258 12.575 4.9875C12.575 5.42242 12.2224 5.775 11.7875 5.775H7.06252C6.6276 5.775 6.27502 5.42242 6.27502 4.9875Z"),m(o,"fill","black"),m(a,"fill-rule","evenodd"),m(a,"clip-rule","evenodd"),m(a,"d","M4.70001 8.1375C4.70001 7.70258 5.05259 7.35 5.48751 7.35H13.3625C13.7974 7.35 14.15 7.70258 14.15 8.1375C14.15 8.57242 13.7974 8.925 13.3625 8.925H5.48751C5.05259 8.925 4.70001 8.57242 4.70001 8.1375Z"),m(a,"fill","black"),m(l,"fill-rule","evenodd"),m(l,"clip-rule","evenodd"),m(l,"d","M4.70001 11.8125C4.70001 11.3776 5.05259 11.025 5.48751 11.025H13.3625C13.7974 11.025 14.15 11.3776 14.15 11.8125C14.15 12.2474 13.7974 12.6 13.3625 12.6H5.48751C5.05259 12.6 4.70001 12.2474 4.70001 11.8125Z"),m(l,"fill","black"),m(u,"fill-rule","evenodd"),m(u,"clip-rule","evenodd"),m(u,"d","M4.70001 15.4875C4.70001 15.0526 5.05259 14.7 5.48751 14.7H8.11251C8.54744 14.7 8.90001 15.0526 8.90001 15.4875C8.90001 15.9224 8.54744 16.275 8.11251 16.275H5.48751C5.05259 16.275 4.70001 15.9224 4.70001 15.4875Z"),m(u,"fill","black"),m(i,"width","19"),m(i,"height","21"),m(i,"viewBox","0 0 19 21"),m(i,"fill","none"),m(i,"xmlns","http://www.w3.org/2000/svg"),S(r,b),S(t,v)},m(y,_){B(y,t,_),p(t,r),p(r,i),p(i,n),p(i,s),p(i,o),p(i,a),p(i,l),p(i,u),p(r,d),p(r,h)},p(y,_){_[0]&16777216&&c!==(c=y[24]("bonusCard.terms")+"")&&ne(h,c,b.contenteditable),S(r,b=Ie(f,[y[35]("BonusCardTermsLink"),_[0]&524288&&{href:y[19]},{target:"__blank"}]))},d(y){y&&D(t)}}}function L2(e){let t,r,i,n,s,o,a,l,u,d,c,h=e[24]("bonusCard.terms")+"",f,b,g,v,y,_,x=[e[35]("BonusCardTermsTitle")],w={};for(let L=0;L<x.length;L+=1)w=T(w,x[L]);function N(L,V){return L[11]?F2:R2}let E=N(e),I=E(e),Z=[e[35]("BonusCardTermsButton")],X={};for(let L=0;L<Z.length;L+=1)X=T(X,Z[L]);let R=[e[35]("BonusCardTermsHeader")],P={};for(let L=0;L<R.length;L+=1)P=T(P,R[L]);let z=e[11]&&ku(e),re=[e[35]("BonusCardTerms")],Q={};for(let L=0;L<re.length;L+=1)Q=T(Q,re[L]);return{c(){t=C("div"),r=C("div"),i=C("span"),n=ee("svg"),s=ee("path"),o=ee("path"),a=ee("path"),l=ee("path"),u=ee("path"),d=ee("path"),c=$(),f=O(h),b=$(),g=C("span"),I.c(),v=$(),z&&z.c(),m(s,"fill-rule","evenodd"),m(s,"clip-rule","evenodd"),m(s,"d","M0.5 3.675C0.5 1.64535 2.14535 0 4.175 0H14.675C16.7046 0 18.35 1.64535 18.35 3.675V13.4312C18.35 14.4319 17.9419 15.3893 17.2201 16.0823L13.164 19.9761C12.4796 20.6331 11.5676 21 10.6189 21H4.175C2.14536 21 0.5 19.3546 0.5 17.325V3.675ZM4.175 2.1C3.30515 2.1 2.6 2.80515 2.6 3.675V17.325C2.6 18.1948 3.30515 18.9 4.175 18.9H10.6189C11.0255 18.9 11.4164 18.7428 11.7097 18.4612L15.7657 14.5674C16.0751 14.2704 16.25 13.86 16.25 13.4312V3.675C16.25 2.80515 15.5448 2.1 14.675 2.1H4.175Z"),m(s,"fill","black"),m(o,"fill-rule","evenodd"),m(o,"clip-rule","evenodd"),m(o,"d","M16.775 14.9625L12.575 14.9625C12.1401 14.9625 11.7875 15.3151 11.7875 15.75L11.7875 19.95L10.2125 19.95L10.2125 15.75C10.2125 14.4452 11.2703 13.3875 12.575 13.3875L16.775 13.3875L16.775 14.9625Z"),m(o,"fill","black"),m(a,"fill-rule","evenodd"),m(a,"clip-rule","evenodd"),m(a,"d","M6.27502 4.9875C6.27502 4.55258 6.6276 4.2 7.06252 4.2H11.7875C12.2224 4.2 12.575 4.55258 12.575 4.9875C12.575 5.42242 12.2224 5.775 11.7875 5.775H7.06252C6.6276 5.775 6.27502 5.42242 6.27502 4.9875Z"),m(a,"fill","black"),m(l,"fill-rule","evenodd"),m(l,"clip-rule","evenodd"),m(l,"d","M4.70001 8.1375C4.70001 7.70258 5.05259 7.35 5.48751 7.35H13.3625C13.7974 7.35 14.15 7.70258 14.15 8.1375C14.15 8.57242 13.7974 8.925 13.3625 8.925H5.48751C5.05259 8.925 4.70001 8.57242 4.70001 8.1375Z"),m(l,"fill","black"),m(u,"fill-rule","evenodd"),m(u,"clip-rule","evenodd"),m(u,"d","M4.70001 11.8125C4.70001 11.3776 5.05259 11.025 5.48751 11.025H13.3625C13.7974 11.025 14.15 11.3776 14.15 11.8125C14.15 12.2474 13.7974 12.6 13.3625 12.6H5.48751C5.05259 12.6 4.70001 12.2474 4.70001 11.8125Z"),m(u,"fill","black"),m(d,"fill-rule","evenodd"),m(d,"clip-rule","evenodd"),m(d,"d","M4.70001 15.4875C4.70001 15.0526 5.05259 14.7 5.48751 14.7H8.11251C8.54744 14.7 8.90001 15.0526 8.90001 15.4875C8.90001 15.9224 8.54744 16.275 8.11251 16.275H5.48751C5.05259 16.275 4.70001 15.9224 4.70001 15.4875Z"),m(d,"fill","black"),m(n,"width","19"),m(n,"height","21"),m(n,"viewBox","0 0 19 21"),m(n,"fill","none"),m(n,"xmlns","http://www.w3.org/2000/svg"),S(i,w),S(g,X),S(r,P),le(r,"Active",e[11]),S(t,Q)},m(L,V){B(L,t,V),p(t,r),p(r,i),p(i,n),p(n,s),p(n,o),p(n,a),p(n,l),p(n,u),p(n,d),p(i,c),p(i,f),p(r,b),p(r,g),I.m(g,null),p(t,v),z&&z.m(t,null),y||(_=Le(r,"click",e[52]),y=!0)},p(L,V){V[0]&16777216&&h!==(h=L[24]("bonusCard.terms")+"")&&ne(f,h,w.contenteditable),E!==(E=N(L))&&(I.d(1),I=E(L),I&&(I.c(),I.m(g,null))),V[0]&2048&&le(r,"Active",L[11]),L[11]?z?z.p(L,V):(z=ku(L),z.c(),z.m(t,null)):z&&(z.d(1),z=null)},d(L){L&&D(t),I.d(),z&&z.d(),y=!1,_()}}}function F2(e){let t,r;return{c(){t=ee("svg"),r=ee("path"),m(r,"d","M16.1422 10.071L9.07108 2.99998L2.00002 10.071"),m(r,"stroke","black"),m(r,"stroke-width","3"),m(r,"stroke-linecap","round"),m(t,"width","18"),m(t,"height","12"),m(t,"viewBox","0 0 18 12"),m(t,"fill","none"),m(t,"xmlns","http://www.w3.org/2000/svg")},m(i,n){B(i,t,n),p(t,r)},d(i){i&&D(t)}}}function R2(e){let t,r;return{c(){t=ee("svg"),r=ee("path"),m(r,"d","M2 2.07104L9.07107 9.14211L16.1421 2.07104"),m(r,"stroke","black"),m(r,"stroke-width","3"),m(r,"stroke-linecap","round"),m(t,"width","18"),m(t,"height","12"),m(t,"viewBox","0 0 18 12"),m(t,"fill","none"),m(t,"xmlns","http://www.w3.org/2000/svg")},m(i,n){B(i,t,n),p(t,r)},d(i){i&&D(t)}}}function ku(e){let t,r,i,n,s=[e[35]("BonusCardTermsContent")],o={};for(let a=0;a<s.length;a+=1)o=T(o,s[a]);return{c(){t=C("div"),S(t,o)},m(a,l){B(a,t,l),i||(n=lf(r=e[39].call(null,t,e[15].terms_and_conditions)),i=!0)},p(a,l){r&&Ai(r.update)&&l[0]&32768&&r.update.call(null,a[15].terms_and_conditions)},d(a){a&&D(t),i=!1,n()}}}function Au(e){let t,r,i,n=e[0]==="claimable"&&Tu(e),s=e[0]==="active"&&e[4].status==="active"&&Du(e),o=[e[35]("BonusCardActionContent")],a={};for(let d=0;d<o.length;d+=1)a=T(a,o[d]);let l=[e[35]("BonusCardAction")],u={};for(let d=0;d<l.length;d+=1)u=T(u,l[d]);return{c(){t=C("div"),r=C("div"),n&&n.c(),i=$(),s&&s.c(),S(r,a),S(t,u)},m(d,c){B(d,t,c),p(t,r),n&&n.m(r,null),p(r,i),s&&s.m(r,null)},p(d,c){d[0]==="claimable"?n?n.p(d,c):(n=Tu(d),n.c(),n.m(r,i)):n&&(n.d(1),n=null),d[0]==="active"&&d[4].status==="active"?s?s.p(d,c):(s=Du(d),s.c(),s.m(r,null)):s&&(s.d(1),s=null)},d(d){d&&D(t),n&&n.d(),s&&s.d()}}}function Tu(e){let t,r,i,n,s,o,a,l,u,d=e[24]("bonusCard.join")+"",c,h,f,b,g=e[14]===!0&&Pu(e),v=[e[35]("BonusCardJoinCountdown")],y={};for(let E=0;E<v.length;E+=1)y=T(y,v[E]);let _=[e[35]("BonusJoinButton"),{type:"button"},{disabled:h=!e[12]}],x={};for(let E=0;E<_.length;E+=1)x=T(x,_[E]);let w=[e[35]("BonusCardJoinWrapper")],N={};for(let E=0;E<w.length;E+=1)N=T(N,w[E]);return{c(){t=C("div"),g&&g.c(),r=$(),i=C("span"),n=ee("svg"),s=ee("path"),o=$(),a=O(e[18]),l=$(),u=C("button"),c=O(d),m(s,"d","M16 0H8V2.66667H16V0ZM10.6667 17.3333H13.3333V9.33333H10.6667V17.3333ZM21.3667 8.51333L23.2667 6.61333C22.6933 5.92667 22.0667 5.3 21.38 4.72667L19.48 6.62667C17.3568 4.92342 14.7153 3.99668 11.9933 4C5.36 4 0 9.37333 0 16C0 22.6267 5.36 28 11.9933 28C18.6267 28 24 22.6267 24 16C24 13.1667 23.0133 10.5667 21.3667 8.51333ZM12 25.3333C6.84667 25.3333 2.66667 21.1533 2.66667 16C2.66667 10.8467 6.84667 6.66667 12 6.66667C17.1533 6.66667 21.3333 10.8467 21.3333 16C21.3333 21.1533 17.1533 25.3333 12 25.3333Z"),m(s,"fill","#6D6D6D"),m(n,"width","24"),m(n,"height","28"),m(n,"viewBox","0 0 24 28"),m(n,"fill","none"),m(n,"xmlns","http://www.w3.org/2000/svg"),S(i,y),S(u,x),S(t,N)},m(E,I){B(E,t,I),g&&g.m(t,null),p(t,r),p(t,i),p(i,n),p(n,s),p(i,o),p(i,a),p(t,l),p(t,u),p(u,c),u.autofocus&&u.focus(),f||(b=Le(u,"click",e[25]),f=!0)},p(E,I){E[14]===!0?g?g.p(E,I):(g=Pu(E),g.c(),g.m(t,r)):g&&(g.d(1),g=null),I[0]&262144&&ne(a,E[18],y.contenteditable),I[0]&16777216&&d!==(d=E[24]("bonusCard.join")+"")&&ne(c,d,x.contenteditable),S(u,x=Ie(_,[E[35]("BonusJoinButton"),{type:"button"},I[0]&4096&&h!==(h=!E[12])&&{disabled:h}]))},d(E){E&&D(t),g&&g.d(),f=!1,b()}}}function Pu(e){let t,r=e[24]("bonusCard.error")+"",i,n=[e[35]("BonusCardJoinError")],s={};for(let o=0;o<n.length;o+=1)s=T(s,n[o]);return{c(){t=C("span"),i=O(r),S(t,s)},m(o,a){B(o,t,a),p(t,i)},p(o,a){a[0]&16777216&&r!==(r=o[24]("bonusCard.error")+"")&&ne(i,r,s.contenteditable)},d(o){o&&D(t)}}}function Du(e){let t,r=e[24]("bonusCard.forfeit")+"",i,n,s,o,a=[e[35]("BonusForfeitButton"),{type:"button"},{disabled:n=!e[12]}],l={};for(let u=0;u<a.length;u+=1)l=T(l,a[u]);return{c(){t=C("button"),i=O(r),S(t,l)},m(u,d){B(u,t,d),p(t,i),t.autofocus&&t.focus(),s||(o=Le(t,"click",e[26]),s=!0)},p(u,d){d[0]&16777216&&r!==(r=u[24]("bonusCard.forfeit")+"")&&ne(i,r,l.contenteditable),S(t,l=Ie(a,[u[35]("BonusForfeitButton"),{type:"button"},d[0]&4096&&n!==(n=!u[12])&&{disabled:n}]))},d(u){u&&D(t),s=!1,o()}}}function H2(e){let t,r=e[4]&&su(e);return{c(){r&&r.c(),t=Ft()},m(i,n){r&&r.m(i,n),B(i,t,n)},p(i,n){i[4]?r?r.p(i,n):(r=su(i),r.c(),r.m(t.parentNode,t)):r&&(r.d(1),r=null)},i:ke,o:ke,d(i){i&&D(t),r&&r.d(i)}}}function z2(e,t,r){let i,n;Qu(e,Dd,k=>r(24,n=k));let{rawbonus:s=""}=t,{lang:o="en"}=t,{status:a=""}=t,{mbsource:l}=t,{clientstyling:u=""}=t,{clientstylingurl:d=""}=t,{cmsendpoint:c=""}=t,{translationurl:h=""}=t,f,b=[],g,v=!1,y=!1,_=!1,x=!1,w=!0,N=!1,E=!1,I={},Z,X,R="",P=1e3*30,z,re="",Q=!1,L,V=[],U=0;const W=()=>{fetch(h).then(q=>q.json()).then(q=>{Object.keys(q).forEach(de=>{_n(de,q[de])})}).catch(q=>{console.log(q)})};Object.keys(gn).forEach(k=>{_n(k,gn[k])}),Bn(()=>(window.addEventListener("message",ae,!1),()=>{window.removeEventListener("message",ae)}));const oe=()=>{try{r(4,f=JSON.parse(s))}catch(k){}f&&(f.type==="wagering"&&r(9,y=!0),r(16,Z=Ql(f.currency)),r(6,b=Oe(f.levels)),f.type==="freeRound"&&r(22,V=Ee(f.freeSpin)),H())},Ee=k=>{if(!k||!k.vendorGamesDetail)return[];let q=[];return Object.keys(k.vendorGamesDetail).length>0&&Object.keys(k.vendorGamesDetail).forEach(de=>{q=k.vendorGamesDetail[de]}),q},Oe=k=>{if(!k)return[];const q=[];let de=!1;return k.map((We,Ke)=>{const ct=We,{maxRepeats:Re,completedTime:Wt}=ct,ot=gs(ct,["maxRepeats","completedTime"]);Re===0&&(de=!0);for(let tt=0;tt<Re;tt++)q.push(er({},ot))}),de?r(7,g=0):r(7,g=q.length),q},ie=()=>{r(12,w=!1),r(14,E=!1),window.postMessage({type:"OnBonusClaimed",bonusCode:f.code})},we=()=>{r(12,w=!1),window.postMessage({type:"OnBonusForfeit",bonus:f})},ae=k=>{switch(k.data.type){case"OnBonusClaimedDone":r(12,w=!0);break;case"OnBonusForfeitedDone":r(12,w=!0);case"OnBonusClaimError":k.data.bonusCode===f.code&&r(14,E=!0);break}},ce=(k,q)=>({remainder:k%q,quotient:Math.floor(k/q)}),M=k=>{const q=new Date;return new Date(k).getTime()-q.getTime()},Y=k=>{const q=M(k)/6e4,{quotient:de,remainder:We}=ce(q,1440),{quotient:Ke,remainder:Re}=ce(We,60),Wt=Math.floor(Re),ot=tt=>Math.abs(tt)<10?`0${tt}`:tt;return[{value:de,symbol:"d"},{value:Ke,symbol:"h"},{value:Wt,symbol:"m"}].map(tt=>ot(tt.value)+tt.symbol).join(" ")},A=(k,q,de,We)=>{const Ke=M(k);Ke<0?de():(We(Y(k)),Ke<q&&setTimeout(()=>{window.postMessage({type:"OnWageringBonusExpired"})},Ke))},H=()=>{f&&((f.endTime||f.trigger&&f.trigger.endTime)&&A(f.endTime||f.trigger.endTime,P,()=>r(18,R="Expired"),k=>r(18,R=k)),f.expiryDate&&A(f.expiryDate,P,()=>r(17,X="Expired"),k=>r(17,X=k)))},Me=k=>{let q=(k.initialWagerRequirementAmount*10-k.remainingWagerRequirementAmount*10)/10;return k.status==="released"&&(q+=k.remainingAmount),q},J=k=>{var q,de;return((((q=k.wageringProgress)==null?void 0:q.currentLevelIncrement)*10-((de=k.wageringProgress)==null?void 0:de.gap)*10)/10).toFixed(1)},He=k=>{var We,Ke,Re;let q,de;return k.type==="wagering"&&k.status==="active"&&k.wageringType==="money"?(de=(We=k.wageringProgress)==null?void 0:We.currentLevelIncrement,de!=0&&(q=((((Ke=k.wageringProgress)==null?void 0:Ke.currentLevelIncrement)-((Re=k.wageringProgress)==null?void 0:Re.gap))/de*100).toFixed(1))):k.status=="released"?q=100:(de=k.initialWagerRequirementAmount,de!=0&&(q=((k.initialWagerRequirementAmount-k.remainingWagerRequirementAmount)/de*100).toFixed(1))),Number(q)},Be=k=>G(k).format("YYYY-MM-DD hh:mm:ss"),Yt=k=>{if(!k.wallet)return;let q=k.wallet.validityMinutes;return q===0?"infinite":Math.round(q/1440)+" days"},Hi=k=>{if(k.products)return k.products;{let q=[];return k.wallet&&(k.wallet.casino&&q.push("Casino"),k.wallet.sports&&q.push("Sports")),q}},zi=(k,q)=>{let de;de=n(`bonusType.${q.type}`);const We=Ql(Object.keys(k.increment)[0]);if(q.mode==="percentage")return`${q.bonusAmount*100}% up to ${We}${q.capAmount} ${de}`;if(q.mode==="fixed")return`${We}${q.bonusAmount} ${de}`},Yi=(k,q)=>{switch(q.type){case"standard":case"freeBet":return zi(k,q);case"freeRound":return`${q.freespinNumber} Free Spins`;case"tournamentTicket":return"Enroll to Tournament Ticket";case"oddsBoost":return"Enroll to Odds Boost";case"cashBack":return"Enroll to Cash Back";case"stakeBack":return"Enroll to Stake Back"}},us=(k,q)=>{var Re;const de=((Re=k.wageringProgress)==null?void 0:Re.currentLevel)-1,We=q.length-1,Ke=Wt=>Wt.filter(ot=>ot.index>=0&&ot.index<=We).map(ot=>{const ct=q[ot.index];return{label:ot.label,desc:ct.bonuses.map(tt=>Yi(ct,tt))}});return k.status==="active"?Ke([{label:"current",index:de},{label:"next",index:de+1}]):k.status?Ke([{label:"last",index:We},{label:"previous",index:We-1}]):Ke([{label:"first",index:0},{label:"next",index:1}])},ds=k=>{var q,de;r(19,re=k.url?k.url:(de=(q=k.presentation)==null?void 0:q.url)==null?void 0:de.content)},cs=(k,q="")=>({part:k,class:[k,q].join(" ")}),Ui=k=>{window.postMessage({type:"BonusGameAction",gameId:k.id,name:k.name,gameLaunchUrl:k.href},window.location.href)},Wi=k=>{r(20,Q=!0),r(21,L=k)},$i=()=>{r(20,Q=!1),r(21,L=-1)},hs=k=>{fetch(`${c}/${o}/bonuses-information/${k}`).then(q=>q.json()).then(q=>{q&&q[k]&&(r(13,N=!0),r(15,I=q[k]))})},fs=(k,q)=>{let de=document.createElement("div");de.innerHTML=q,k.append(de)},ps=()=>r(23,U+=300),ms=k=>Ui(k),j=k=>Wi(k),Se=()=>$i(),Ue=()=>r(23,U-=300),_r=()=>{r(10,_=!_)},Ut=()=>window.postMessage({type:"OnWageringBonusAllRewardsClick",bonusWalletID:f.id}),tf=()=>{r(11,x=!x)};function rf(k){Mt[k?"unshift":"push"](()=>{z=k,r(5,z)})}return e.$$set=k=>{"rawbonus"in k&&r(40,s=k.rawbonus),"lang"in k&&r(41,o=k.lang),"status"in k&&r(0,a=k.status),"mbsource"in k&&r(1,l=k.mbsource),"clientstyling"in k&&r(2,u=k.clientstyling),"clientstylingurl"in k&&r(3,d=k.clientstylingurl),"cmsendpoint"in k&&r(42,c=k.cmsendpoint),"translationurl"in k&&r(43,h=k.translationurl)},e.$$.update=()=>{e.$$.dirty[0]&1&&(a==="claimable"&&r(8,v=!0),a==="active"&&r(8,v=!0)),e.$$.dirty[0]&1|e.$$.dirty[1]&1536&&r(44,i=s&&o&&a),e.$$.dirty[1]&8192&&i&&oe(),e.$$.dirty[0]&16|e.$$.dirty[1]&11264&&i&&f&&(o&&Md(o),c?hs(f.id):ds(f)),e.$$.dirty[0]&36&&u&&z&&Un(z,u),e.$$.dirty[0]&40&&d&&z&&Wn(z,d),e.$$.dirty[0]&34&&l&&z&&$n(z,`${l}.Style`),e.$$.dirty[1]&4096&&h&&W()},[a,l,u,d,f,z,b,g,v,y,_,x,w,N,E,I,Z,X,R,re,Q,L,V,U,n,ie,we,Me,J,He,Be,Yt,Hi,Yi,us,cs,Ui,Wi,$i,fs,s,o,c,h,i,ps,ms,j,Se,Ue,_r,Ut,tf,rf]}class Y2 extends Ln{constructor(t){super(),Nn(this,t,z2,H2,Ti,{rawbonus:40,lang:41,status:0,mbsource:1,clientstyling:2,clientstylingurl:3,cmsendpoint:42,translationurl:43},c2,[-1,-1,-1])}get rawbonus(){return this.$$.ctx[40]}set rawbonus(t){this.$$set({rawbonus:t}),me()}get lang(){return this.$$.ctx[41]}set lang(t){this.$$set({lang:t}),me()}get status(){return this.$$.ctx[0]}set status(t){this.$$set({status:t}),me()}get mbsource(){return this.$$.ctx[1]}set mbsource(t){this.$$set({mbsource:t}),me()}get clientstyling(){return this.$$.ctx[2]}set clientstyling(t){this.$$set({clientstyling:t}),me()}get clientstylingurl(){return this.$$.ctx[3]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),me()}get cmsendpoint(){return this.$$.ctx[42]}set cmsendpoint(t){this.$$set({cmsendpoint:t}),me()}get translationurl(){return this.$$.ctx[43]}set translationurl(t){this.$$set({translationurl:t}),me()}}customElements.define("casino-bonus-card",In(Y2,{rawbonus:{},lang:{},status:{},mbsource:{},clientstyling:{},clientstylingurl:{},cmsendpoint:{},translationurl:{}},[],[],!0));function U2({totalItems:e,pageSize:t,currentPage:r,limit:i}){const n=Math.ceil(e/t),o=i&&n>V2(i)?$2({totalPages:n,limit:i,currentPage:r}):W2({totalPages:n});return[{type:"symbol",symbol:"<",value:r<=1?1:r-1},...o||[],{type:"symbol",symbol:">",value:r>=n?n:r+1}]}function W2({totalPages:e}){return new Array(e).fill(null).map((t,r)=>({type:"number",value:r+1}))}function $2({totalPages:e,limit:t,currentPage:r}){const i=t*2+2,n=1+i,s=e-i,o=n+2;return r<=n-t?Array(o).fill(null).map((a,l)=>l===o-1?{type:"number",value:e}:l===o-2?{type:"symbol",symbol:".",value:n+1}:{type:"number",value:l+1}):r>=s+t?Array(o).fill(null).map((a,l)=>l===0?{type:"number",value:1}:l===1?{type:"symbol",symbol:".",value:s-1}:{type:"number",value:s+l-2}):r>=n-t&&r<=s+t?Array(o).fill(null).map((a,l)=>l===0?{type:"number",value:1}:l===1?{type:"symbol",symbol:".",value:r-t+(l-2)}:l===o-1?{type:"number",value:e}:l===o-2?{type:"symbol",symbol:".",value:r+t+1}:{type:"number",value:r-t+(l-2)}):[]}function V2(e){return e*2+3+2}function G2(e){On(e,"svelte-1tlblg6",":host{font-family:inherit}.GeneralPagination{margin:40px 0;display:flex}.PaginationWrapper{flex:1;display:flex;justify-content:center}.PaginationWrapper.PaginationWrapperMobile{flex-wrap:wrap;text-align:center}.PaginationWrapper .prev,.PaginationWrapper .next,.PaginationWrapper .number{color:var(--emw--bonus-pagination-text, var(--emw--color-contrast-600, #0D0D4D));font-size:16px;cursor:pointer;font-weight:700;border:1px solid var(--emw--bonus-pagination-border, var(--emw--color-gray-150, #828282));width:32px;height:32px;line-height:28px;text-align:center;margin-right:2px;border-radius:2px}.PaginationWrapper .prev.disabled,.PaginationWrapper .next.disabled,.PaginationWrapper .number.disabled{color:var(--emw--bonus-pagination-disabled, var(--emw--color-gray-100, #E6E6E6));border-color:var(--emw--bonus-pagination-disabled, var(--emw--color-gray-100, #E6E6E6));cursor:default}.PaginationWrapper .prev.active,.PaginationWrapper .next.active,.PaginationWrapper .number.active{background-color:var(--emw--bonus-pagination-bg, var(--emw--color-contrast, #00AEEF));color:var(--emw--bonus-pagination-active, var(--emw--color-white, #FFFFFF))}.PaginationWrapper .ellipsis{width:32px;margin-right:2px;text-align:center;line-height:20px}.PaginationWrapper .Page{margin:0 5px;color:var(--emw--bonus-pagination-text, var(--emw--color-gray-300, #58586B));font-size:16px;cursor:pointer;padding:5px 10px}.PaginationWrapper .Page.active{background-color:var(--emw--bonus-pagination-active, var(--emw--color-white, #FFFFFF));font-weight:700}.PaginationInputWrapper{flex:1}.PaginationInputWrapper .PaginationInput{padding:7px 0 6px 0;width:32px;text-align:center}.PaginationInputWrapper .PaginationGoButton{background:none;border:none;cursor:pointer;font-size:18px}")}function Mu(e,t,r){const i=e.slice();return i[29]=t[r],i}const j2=e=>({}),Ou=e=>({}),q2=e=>({}),Bu=e=>({}),Z2=e=>({}),Nu=e=>({}),K2=e=>({value:e[0]&32}),Iu=e=>({value:e[29].value});function X2(e){let t;const r=e[21].next,i=Pi(r,e,e[20],Ou),n=i||tC();return{c(){n&&n.c()},m(s,o){n&&n.m(s,o),t=!0},p(s,o){i&&i.p&&(!t||o[0]&1048576)&&Mi(i,r,s,s[20],t?Di(r,s[20],o,j2):Oi(s[20]),Ou)},i(s){t||(pt(n,s),t=!0)},o(s){It(n,s),t=!1},d(s){n&&n.d(s)}}}function J2(e){let t;const r=e[21].prev,i=Pi(r,e,e[20],Bu),n=i||rC();return{c(){n&&n.c()},m(s,o){n&&n.m(s,o),t=!0},p(s,o){i&&i.p&&(!t||o[0]&1048576)&&Mi(i,r,s,s[20],t?Di(r,s[20],o,q2):Oi(s[20]),Bu)},i(s){t||(pt(n,s),t=!0)},o(s){It(n,s),t=!1},d(s){n&&n.d(s)}}}function Q2(e){let t;const r=e[21].ellipsis,i=Pi(r,e,e[20],Nu),n=i||iC();return{c(){n&&n.c()},m(s,o){n&&n.m(s,o),t=!0},p(s,o){i&&i.p&&(!t||o[0]&1048576)&&Mi(i,r,s,s[20],t?Di(r,s[20],o,Z2):Oi(s[20]),Nu)},i(s){t||(pt(n,s),t=!0)},o(s){It(n,s),t=!1},d(s){n&&n.d(s)}}}function eC(e){let t;const r=e[21].number,i=Pi(r,e,e[20],Iu),n=i||nC(e);return{c(){n&&n.c()},m(s,o){n&&n.m(s,o),t=!0},p(s,o){i?i.p&&(!t||o[0]&1048608)&&Mi(i,r,s,s[20],t?Di(r,s[20],o,K2):Oi(s[20]),Iu):n&&n.p&&(!t||o[0]&32)&&n.p(s,t?o:[-1,-1])},i(s){t||(pt(n,s),t=!0)},o(s){It(n,s),t=!1},d(s){n&&n.d(s)}}}function tC(e){let t;return{c(){t=O(">")},m(r,i){B(r,t,i)},d(r){r&&D(t)}}}function rC(e){let t;return{c(){t=O("<")},m(r,i){B(r,t,i)},d(r){r&&D(t)}}}function iC(e){let t;return{c(){t=C("span"),t.textContent="..."},m(r,i){B(r,t,i)},p:ke,d(r){r&&D(t)}}}function nC(e){let t,r=e[29].value+"",i;return{c(){t=C("span"),i=O(r)},m(n,s){B(n,t,s),p(t,i)},p(n,s){s[0]&32&&r!==(r=n[29].value+"")&&Ce(i,r)},d(n){n&&D(t)}}}function Lu(e){let t,r,i,n,s,o,a,l;const u=[eC,Q2,J2,X2],d=[];function c(f,b){return f[29].type==="number"?0:f[29].type==="symbol"&&f[29].symbol==="."?1:f[29].type==="symbol"&&f[29].symbol==="<"?2:f[29].type==="symbol"&&f[29].symbol===">"?3:-1}~(r=c(e))&&(i=d[r]=u[r](e));function h(){return e[22](e[29])}return{c(){t=C("button"),i&&i.c(),n=$(),t.disabled=s=e[29].type==="symbol"&&e[29].symbol===">"&&e[1]>=e[6]||e[29].type==="symbol"&&e[29].symbol==="<"&&e[1]<=1,m(t,"class","option"),m(t,"role","presentation"),le(t,"number",e[29].type==="number"),le(t,"prev",e[29].type==="symbol"&&e[29].symbol==="<"),le(t,"next",e[29].type==="symbol"&&e[29].symbol===">"),le(t,"disabled",e[29].type==="symbol"&&e[29].symbol===">"&&e[1]>=e[6]||e[29].type==="symbol"&&e[29].symbol==="<"&&e[1]<=1),le(t,"ellipsis",e[29].type==="symbol"&&e[29].symbol==="."),le(t,"active",e[29].type==="number"&&e[29].value===e[1])},m(f,b){B(f,t,b),~r&&d[r].m(t,null),p(t,n),o=!0,a||(l=Le(t,"click",h),a=!0)},p(f,b){e=f;let g=r;r=c(e),r===g?~r&&d[r].p(e,b):(i&&(id(),It(d[g],1,1,()=>{d[g]=null}),nd()),~r?(i=d[r],i?i.p(e,b):(i=d[r]=u[r](e),i.c()),pt(i,1),i.m(t,n)):i=null),(!o||b[0]&98&&s!==(s=e[29].type==="symbol"&&e[29].symbol===">"&&e[1]>=e[6]||e[29].type==="symbol"&&e[29].symbol==="<"&&e[1]<=1))&&(t.disabled=s),(!o||b[0]&32)&&le(t,"number",e[29].type==="number"),(!o||b[0]&32)&&le(t,"prev",e[29].type==="symbol"&&e[29].symbol==="<"),(!o||b[0]&32)&&le(t,"next",e[29].type==="symbol"&&e[29].symbol===">"),(!o||b[0]&98)&&le(t,"disabled",e[29].type==="symbol"&&e[29].symbol===">"&&e[1]>=e[6]||e[29].type==="symbol"&&e[29].symbol==="<"&&e[1]<=1),(!o||b[0]&32)&&le(t,"ellipsis",e[29].type==="symbol"&&e[29].symbol==="."),(!o||b[0]&34)&&le(t,"active",e[29].type==="number"&&e[29].value===e[1])},i(f){o||(pt(i),o=!0)},o(f){It(i),o=!1},d(f){f&&D(t),~r&&d[r].d(),a=!1,l()}}}function Fu(e){let t,r,i,n,s,o,a,l;return{c(){t=C("div"),r=C("span"),r.textContent="Go To Page",i=$(),n=C("input"),s=$(),o=C("button"),o.textContent="Go",m(n,"type","number"),m(n,"class","PaginationInput"),m(n,"part","PaginationInput"),m(o,"type","button"),m(o,"class","PaginationGoButton"),m(t,"class","PaginationInputWrapper")},m(u,d){B(u,t,d),p(t,r),p(t,i),p(t,n),fn(n,e[3]),p(t,s),p(t,o),a||(l=[Le(n,"input",e[23]),Le(n,"change",e[24]),Le(o,"click",e[25])],a=!0)},p(u,d){d[0]&8&&rd(n.value)!==u[3]&&fn(n,u[3])},d(u){u&&D(t),a=!1,gt(l)}}}function sC(e){let t,r,i,n,s,o,a=je(e[5]),l=[];for(let c=0;c<a.length;c+=1)l[c]=Lu(Mu(e,a,c));const u=c=>It(l[c],1,1,()=>{l[c]=null});let d=e[7]&&Fu(e);return{c(){t=C("div"),r=C("div");for(let c=0;c<l.length;c+=1)l[c].c();s=$(),d&&d.c(),m(r,"class",i="PaginationWrapper "+(e[2]?"PaginationWrapperMobile":"")),m(r,"part",n="PaginationWrapper "+(e[2]?"PaginationWrapperMobile":"")),m(t,"class","GeneralPagination"),m(t,"part","GeneralPagination")},m(c,h){B(c,t,h),p(t,r);for(let f=0;f<l.length;f+=1)l[f]&&l[f].m(r,null);p(t,s),d&&d.m(t,null),e[26](t),o=!0},p(c,h){if(h[0]&1048930){a=je(c[5]);let f;for(f=0;f<a.length;f+=1){const b=Mu(c,a,f);l[f]?(l[f].p(b,h),pt(l[f],1)):(l[f]=Lu(b),l[f].c(),pt(l[f],1),l[f].m(r,null))}for(id(),f=a.length;f<l.length;f+=1)u(f);nd()}(!o||h[0]&4&&i!==(i="PaginationWrapper "+(c[2]?"PaginationWrapperMobile":"")))&&m(r,"class",i),(!o||h[0]&4&&n!==(n="PaginationWrapper "+(c[2]?"PaginationWrapperMobile":"")))&&m(r,"part",n),c[7]?d?d.p(c,h):(d=Fu(c),d.c(),d.m(t,null)):d&&(d.d(1),d=null)},i(c){if(!o){for(let h=0;h<a.length;h+=1)pt(l[h]);o=!0}},o(c){l=l.filter(Boolean);for(let h=0;h<l.length;h+=1)It(l[h]);o=!1},d(c){c&&D(t),Xt(l,c),d&&d.d(),e[26](null)}}}function oC(e,t,r){let i,n,s,o,a,{$$slots:l={},$$scope:u}=t,{totalitems:d=""}=t,{pagesize:c=10}=t,{currentpage:h="1"}=t,{limit:f=2}=t,{showinput:b=""}=t,{mbsource:g}=t,{clientstyling:v=""}=t,{clientstylingurl:y=""}=t,_=window.navigator.userAgent,x=!1,w;Hd(_)&&(x=!0);let N,E,I;const Z=L=>{window.postMessage({type:"PaginationChange",page:L.value})},X=L=>{r(4,E=L>a?a:L)};Bn(()=>()=>{});const R=L=>Z(L);function P(){N=rd(this.value),r(3,N)}const z=()=>X(N),re=()=>Z({value:E});function Q(L){Mt[L?"unshift":"push"](()=>{w=L,r(0,w)})}return e.$$set=L=>{"totalitems"in L&&r(10,d=L.totalitems),"pagesize"in L&&r(11,c=L.pagesize),"currentpage"in L&&r(12,h=L.currentpage),"limit"in L&&r(13,f=L.limit),"showinput"in L&&r(14,b=L.showinput),"mbsource"in L&&r(15,g=L.mbsource),"clientstyling"in L&&r(16,v=L.clientstyling),"clientstylingurl"in L&&r(17,y=L.clientstylingurl),"$$scope"in L&&r(20,u=L.$$scope)},e.$$.update=()=>{e.$$.dirty[0]&65537&&v&&w&&Un(w,v),e.$$.dirty[0]&131073&&y&&w&&Wn(w,y),e.$$.dirty[0]&32769&&g&&w&&$n(w,`${g}.Style`),e.$$.dirty[0]&1024&&r(19,i=Number(d)),e.$$.dirty[0]&16384&&r(7,n=b),e.$$.dirty[0]&4096&&r(1,s=Number(h)),e.$$.dirty[0]&2048&&r(18,o=c),e.$$.dirty[0]&794626&&r(5,I=U2({totalItems:i,pageSize:o,currentPage:s,limit:f})),e.$$.dirty[0]&786432&&r(6,a=Math.ceil(i/o))},[w,s,x,N,E,I,a,n,Z,X,d,c,h,f,b,g,v,y,o,i,u,l,R,P,z,re,Q]}class aC extends Ln{constructor(t){super(),Nn(this,t,oC,sC,Ti,{totalitems:10,pagesize:11,currentpage:12,limit:13,showinput:14,mbsource:15,clientstyling:16,clientstylingurl:17},G2,[-1,-1])}get totalitems(){return this.$$.ctx[10]}set totalitems(t){this.$$set({totalitems:t}),me()}get pagesize(){return this.$$.ctx[11]}set pagesize(t){this.$$set({pagesize:t}),me()}get currentpage(){return this.$$.ctx[12]}set currentpage(t){this.$$set({currentpage:t}),me()}get limit(){return this.$$.ctx[13]}set limit(t){this.$$set({limit:t}),me()}get showinput(){return this.$$.ctx[14]}set showinput(t){this.$$set({showinput:t}),me()}get mbsource(){return this.$$.ctx[15]}set mbsource(t){this.$$set({mbsource:t}),me()}get clientstyling(){return this.$$.ctx[16]}set clientstyling(t){this.$$set({clientstyling:t}),me()}get clientstylingurl(){return this.$$.ctx[17]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),me()}}customElements.define("casino-bonus-pagination",In(aC,{totalitems:{},pagesize:{},currentpage:{},limit:{},showinput:{},mbsource:{},clientstyling:{},clientstylingurl:{}},["number","ellipsis","prev","next"],[],!0));function lC(e){On(e,"svelte-bgb61g",':host{font-family:system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"}*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit}.BonusList{display:flex;flex-wrap:wrap}.BonusItem{flex:0 0 50%;max-width:50%;padding:10px}.BonusItemMobile{flex:0 0 100%;max-width:100%}.BonusPaginationWrapper{margin:40px 0;display:flex;justify-content:center}.BonusPaginationWrapper.BonusPaginationWrapperMobile{flex-wrap:wrap;text-align:center}.BonusPaginationWrapper .BonusesFirst,.BonusPaginationWrapper .BonusesPrev,.BonusPaginationWrapper .BonusesNext,.BonusPaginationWrapper .BonusesLast{color:var(--emw--bonus-pagination-primary, var(--emw--color-blue, #00AEEF));font-size:16px;cursor:pointer;padding:5px 10px;font-weight:700}.BonusPaginationWrapper .BonusesFirst.Inactive,.BonusPaginationWrapper .BonusesPrev.Inactive,.BonusPaginationWrapper .BonusesNext.Inactive,.BonusPaginationWrapper .BonusesLast.Inactive{color:var(--emw--bonus-pagination-inactive-text, var(--emw--color-gray-100, #E6E6E6));cursor:default}.BonusPaginationWrapper .BonusesPage{margin:0 5px;color:var(--emw--bonus-pagination-text, var(--emw--color-gray-300, #58586B));font-size:16px;cursor:pointer;padding:5px 10px}.BonusPaginationWrapper .BonusesPage.BonusPageActive{background-color:var(--emw--bonus-pagination-active-bg, var(--emw--color-white, #FFFFFF));font-weight:700}.ModalLoader{display:block;width:80px;height:80px;margin:0 auto}.ModalLoader:after{content:" ";display:block;width:64px;height:64px;margin:8px;border-radius:50%;border:6px solid var(--emw--bonus-pagination-border, var(--emw--color-blue, #00AEEF));border-color:var(--emw--bonus-pagination-border, var(--emw--color-blue, #00AEEF)) transparent var(--emw--bonus-pagination-primary, var(--emw--color-blue, #00AEEF)) transparent;animation:LoaderForModal 1.2s linear infinite}@keyframes LoaderForModal{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}.BonusCalendarWrapper{display:flex;gap:20px;flex-wrap:wrap;background:var(--emw--bonus-calendar-bg, var(--emw--color-gray-50, #F4F4F4));border-radius:5px;padding:27px;width:calc(50% - 20px);margin:10px}.BonusCalendarContent{display:flex;gap:20px;flex-wrap:wrap}.BonusCalendarContainer{display:flex;gap:20px;flex-wrap:wrap;flex:4}.BonusCalendarContainer.BonusCalendarContainerMobile{flex-direction:row;gap:0;justify-content:space-between;padding-bottom:0;width:100%;flex-direction:column}.BonusCalendarTitle{font-size:18px;font-weight:700;width:100%;color:var(--emw--bonus-calendar-text, var(--emw--color-gray-300, #58586B))}.BonusCalendarStartDate,.BonusCalendarEndDate{color:var(--emw--bonus-calendar-text, var(--emw--color-gray-300, #58586B));display:flex;position:relative;align-items:center;gap:10px;min-width:140px;flex:0 0 47%;flex-wrap:wrap}.BonusCalendarStartDate vaadin-date-picker,.BonusCalendarEndDate vaadin-date-picker{width:100%}.BonusCalendarStartDate.BonusesCalendarMobile,.BonusCalendarEndDate.BonusesCalendarMobile{flex-direction:column;align-items:flex-start;gap:5px;width:100%}.BonusCalendarStartDate.BonusesCalendarMobile .VaadinDatePicker,.BonusCalendarEndDate.BonusesCalendarMobile .VaadinDatePicker{width:100%}.BonusCalendarStartDate label,.BonusCalendarEndDate label{font-size:14px;font-weight:300;width:100%;text-transform:capitalize}.BonusCalendarStartDate input,.BonusCalendarEndDate input{width:100%;height:44px;border:1px solid var(--emw--bonus-calendar-border, var(--emw--color-gray-100, #E6E6E6));border-radius:5px;box-sizing:border-box;padding:5px 15px;font-size:16px;line-height:18px;outline-color:var(--emw--bonus-calendar-outline, var(--emw--color-primary, #00AEEF))}.BonusFilterButton{flex:2;background:var(--emw--bonus-filter-bg, var(--emw--color-yellow, #F39C12));outline:5px solid var(--emw--bonus-filter-outline, var(--emw--color-yellow, rgba(243, 156, 18, 0.3)));border-radius:9px;border:0;width:180px;max-width:180px;height:38px;font-size:18px;font-weight:400;text-align:center;transition-duration:0.5s;transition-property:outline, color, background;box-sizing:border-box;cursor:pointer;color:var(--emw--bonus-filter-text, var(--emw--color-white, #FFFFFF));align-self:end;margin-bottom:5px}.BonusFilterButton[disabled]{opacity:0.3;cursor:not-allowed}.BonusFilterButton.BonusFilterButtonMobile{width:100%;min-width:100%}.BonusFilterButton:hover{background:var(--emw--bonus-filter-bg, var(--emw--color-yellow, #F38B12));outline:0}.BonusFilterButton:active{background:var(--emw--bonus-filter-bg, var(--emw--color-yellow, #F38B12));outline-color:var(--emw--bonus-filter-outline, var(--emw--color-yellow, rgba(243, 156, 18, 0.6)))}.BonusFilterWrapper{display:flex;gap:15px;padding:10px;align-items:flex-start}.BonusFilterWrapper.BonusFilterWrapperMobile{width:100%;flex-direction:column;gap:10px;padding:0;padding-bottom:15px}.BonusFilterContainer{display:flex;gap:5px;border-bottom:5px solid var(--emw--bonus-filter-border, var(--emw--color-green, #53B65A));width:100%}.BonusStatusFilter{color:var(--emw--bonus-status-filter-text, var(--emw--color-gray-300, #6D6D6D));cursor:pointer;width:200px;height:50px;font-size:18px;text-transform:capitalize;text-align:center;transition-duration:0.5s;box-sizing:border-box;padding:15px;background:var(--emw--bonus-status-filter-bg, var(--emw--color-white, #FFFFFF));border:1px solid var(--emw--bonus-status-filter-border, var(--emw--color-gray-300, #767171));border-bottom:0;border-radius:5px 5px 0px 0px}.BonusStatusFilter.BonusStatusFilterMobile{width:100%;height:44px}.BonusStatusFilter.active{color:var(--emw--bonus-status-active-bg, var(--emw--color-white, #FFFFFF));background:var(--emw--bonus-status-active-bg, var(--emw--color-gray-300, #4E5662));border:0.5px solid var(--emw--bonus-status-active-border, var(--emw--color-gray-300, #767171))}.BonusPageNumber{color:var(--emw--bonus-page-number-text, var(--emw--color-gray-150, #9C9C9C));flex:1;display:flex;flex-wrap:wrap}.BonusPageNumberTabs{display:flex}.BonusPageNumberTabs .BonusPageNumberTab{cursor:pointer;width:36px;height:36px;padding:10px;text-align:center}.BonusPageNumberTabs .BonusPageNumberTab.active{color:var(--emw--bonus-page-number-text, var(--emw--color-white, #FFFFFF));background:var(--emw--bonus-page-number-active, var(--emw--color-yellow, #F39C12));border-radius:50%}.BonusCodeContainer{color:var(--emw--bonus-page-number-text, var(--emw--color-black, #000000));display:flex;flex-direction:column;position:relative;width:calc(50% - 20px);background:#F4F4F4;border-radius:5px;padding:36px;margin:10px}.BonusCodeContainer label{font-size:18px;font-weight:700;padding-bottom:20px}.BonusCodeContainer .Asterisk{color:var(--emw--bonus-card-red, var(--emw--color-red, #FD2839))}.BonusCodeContainer.BonusCodeContainerMobile{width:100%;margin:0 0 10px}.BonusCodeContainer .BonusCodeWrapper{display:flex;gap:10px}.BonusCodeContainer .BonusCodeWrapper.BonusCodeWrapperMobile{flex-direction:column}.BonusCodeContainer .BonusCodeWrapper .BonusCodeInput{flex:3;height:50px;border:1px solid var(--emw--bonus-code-border, var(--emw--color-gray-50, #D1D1D1));border-radius:5px;box-sizing:border-box;padding:5px 15px;font-size:16px;line-height:18px}.BonusCodeContainer .BonusCodeWrapper .BonusCodeInput:focus{outline-color:var(--emw--bonus-code-outline, var(--emw--color-gray-100, #C1C1C1))}.BonusCodeContainer .BonusCodeWrapper .BonusCodeInput.BonusCodeInputMobile{width:100%}.BonusCodeContainer .BonusCodeWrapper .BonusClaimButton{background:var(--emw--bonus-claim-bg, var(--emw--color-yellow, #F39C12));outline:5px solid var(--emw--bonus-claim-outline, var(--emw--color-yellow, rgba(243, 156, 18, 0.3)));border-radius:9px;border:0;width:180px;height:38px;font-size:18px;font-weight:400;text-align:center;transition-duration:0.5s;box-sizing:border-box;margin-top:5px;cursor:pointer;color:var(--emw--bonus-claim-text, var(--emw--color-white, #FFFFFF))}.BonusCodeContainer .BonusCodeWrapper .BonusClaimButton[disabled]{opacity:0.3;cursor:not-allowed}.BonusCodeContainer .BonusCodeWrapper .BonusClaimButton.BonusClaimButtonMobile{width:100%}.BonusCodeContainer .BonusCodeWrapper .BonusClaimButton:hover{background:var(--emw--bonus-claim-hover-bg, var(--emw--color-yellow, #F38B12));outline:0}.BonusCodeContainer .BonusCodeWrapper .BonusClaimButton:active{background:var(--emw--bonus-claim-active-bg, var(--emw--color-yellow, #F38B12));outline-color:var(--emw--bonus-claim-active-outline, var(--emw--color-white, rgba(243, 156, 18, 0.6)))}.BonusCodeContainer.InvalidField input{border:1px solid var(--emw--color-primary, #00AEEF);background:var(--emw--color-primary-50, #FBECF4);color:var(--emw--color-primary, #00AEEF)}.BonusCodeContainer .InvalidBonusCodeMessage{color:var(--emw--color-error, #FD2839)}.ModalWrapper{position:fixed;top:0;right:0;bottom:0;left:0;background-color:var(--emw--bonus-modal-bg, var(--emw--color-black, rgba(0, 0, 0, 0.7)));display:flex;justify-content:center;align-items:center;z-index:100}.ModalWrapper .ModalContent{background-color:var(--emw--bonus-modal-bg, var(--emw--color-white, #FFFFFF));position:relative;padding:30px;border-top:5px solid var(--emw--bonus-modal-border, var(--emw--color-primary, #00AEEF));border-radius:5px}.ModalWrapper .ModalBody{background-color:var(--emw--bonus-modal-bg, var(--emw--color-gray-50, #F9F8F8));padding:30px;text-align:center}.ModalWrapper .ModalBody .ModalText{font-size:22px;margin-bottom:40px}.ModalWrapper .ModalBody .ModalButtons{display:flex;gap:36px}.ModalWrapper .ModalBody .ModalCancel,.ModalWrapper .ModalBody .ModalConfirm{background:transparent;border:1px solid var(--emw--bonus-modal-border, var(--emw--color-gray-300, #58586B));color:var(--emw--bonus-modal-text, var(--emw--color-gray-300, #58586B));cursor:pointer;border-radius:5px;width:180px;height:38px;font-size:18px;text-transform:capitalize;text-align:center;transition-duration:0.5s;box-sizing:border-box;padding:10px}.ModalWrapper .ModalBody .ModalConfirm{background:var(--emw--bonus-modal-bg, var(--emw--color-primary, #00AEEF));border:1px solid var(--emw--bonus-modal-bg, var(--emw--color-primary, #00AEEF));color:var(--emw--bonus-modal-text, var(--emw--color-white, #FFFFFF))}.ModalWrapper.ModalWrapperMobile .ModalContent{padding:20px;width:80vw;border-top:none}.ModalWrapper.ModalWrapperMobile .ModalBody{padding:0;background:transparent}.ModalWrapper.ModalWrapperMobile .ModalText{font-size:16px}.ModalWrapper.ModalWrapperMobile .ModalButtons{gap:10px}.ModalWrapper.ModalWrapperMobile .ModalCancel,.ModalWrapper.ModalWrapperMobile .ModalConfirm{height:40px;width:50%;font-size:14px}@media only screen and (max-width: 1024px){.BonusCodeContainer{width:100%}.BonusCalendarWrapper,.BonusCalendarContent,.BonusCalendarContainer{width:100%;flex-wrap:wrap}.BonusCalendarWrapper{margin:10px 0 0 0}.BonusFilterWrapper{width:100%;flex-direction:column;gap:10px;padding:10px 0}.BonusStatusFilter{width:100%}.BonusFilterButton{margin-top:0}.BonusFilterButton,.BonusClaimButton{width:100%}.BonusItem{flex:0 0 100%;max-width:100%;padding:0;margin:10px 0 0 0}.BonusCalendarStartDate,.BonusCalendarEndDate{flex-direction:column;align-items:flex-start;gap:5px}.BonusCalendarStartDate .VaadinDatePicker,.BonusCalendarEndDate .VaadinDatePicker{width:100%}.BonusCalendarTitle{width:100%}}')}function Ru(e,t,r){const i=e.slice();return i[63]=t[r],i}function Hu(e,t,r){const i=e.slice();return i[66]=t[r],i}function zu(e){let t,r=e[26](`bonusCard.${e[66]}`)+"",i,n,s,o,a=[{type:"button"},e[25]("BonusStatusFilter"),{disabled:e[11]}],l={};for(let d=0;d<a.length;d+=1)l=T(l,a[d]);function u(){return e[39](e[66])}return{c(){t=C("button"),i=O(r),n=$(),S(t,l),le(t,"active",e[66]===e[22])},m(d,c){B(d,t,c),p(t,i),p(t,n),t.autofocus&&t.focus(),s||(o=Le(t,"click",u),s=!0)},p(d,c){e=d,c[0]&67108864&&r!==(r=e[26](`bonusCard.${e[66]}`)+"")&&ne(i,r,l.contenteditable),S(t,l=Ie(a,[{type:"button"},c[0]&33554432&&e[25]("BonusStatusFilter"),c[0]&2048&&{disabled:e[11]}])),le(t,"active",e[66]===e[22])},d(d){d&&D(t),s=!1,o()}}}function uC(e){let t,r,i=e[26]("bonus.canlendarTitle")+"",n,s,o,a,l,u,d=e[26]("bonus.from")+"",c,h,f,b,g,v,y=e[26]("bonus.to")+"",_,x,w,N,E,I=e[26]("bonus.filter")+"",Z,X,R,P=[e[32]("BonusCalendarTitle")],z={};for(let H=0;H<P.length;H+=1)z=T(z,P[H]);let re=[{max:e[16]},{value:e[17]},{placeholder:"From"},e[32]("VaadinDatePicker")],Q={};for(let H=0;H<re.length;H+=1)Q=T(Q,re[H]);let L=[e[25]("BonusCalendarStartDate")],V={};for(let H=0;H<L.length;H+=1)V=T(V,L[H]);let U=[{value:e[16]},{placeholder:"To"},e[32]("VaadinDatePicker")],W={};for(let H=0;H<U.length;H+=1)W=T(W,U[H]);let oe=[e[25]("BonusCalendarEndDate")],Ee={};for(let H=0;H<oe.length;H+=1)Ee=T(Ee,oe[H]);let Oe=[e[25]("BonusCalendarContainer")],ie={};for(let H=0;H<Oe.length;H+=1)ie=T(ie,Oe[H]);let we=[e[25]("BonusFilterButton"),{disabled:e[11]}],ae={};for(let H=0;H<we.length;H+=1)ae=T(ae,we[H]);let ce=[e[32]("BonusCalendarContent")],M={};for(let H=0;H<ce.length;H+=1)M=T(M,ce[H]);let Y=[e[25]("BonusCalendarWrapper")],A={};for(let H=0;H<Y.length;H+=1)A=T(A,Y[H]);return{c(){t=C("div"),r=C("div"),n=O(i),s=$(),o=C("div"),a=C("div"),l=C("div"),u=C("label"),c=O(d),h=$(),f=C("vaadin-date-picker"),b=$(),g=C("div"),v=C("label"),_=O(y),x=$(),w=C("vaadin-date-picker"),N=$(),E=C("button"),Z=O(I),S(r,z),m(u,"for","BonusCalendarStartDate"),S(f,Q),S(l,V),m(v,"for","BonusCalendarEndDate"),S(w,W),S(g,Ee),S(a,ie),S(E,ae),S(o,M),S(t,A)},m(H,Me){B(H,t,Me),p(t,r),p(r,n),p(t,s),p(t,o),p(o,a),p(a,l),p(l,u),p(u,c),p(l,h),p(l,f),e[42](f),p(a,b),p(a,g),p(g,v),p(v,_),p(g,x),p(g,w),e[43](w),p(o,N),p(o,E),p(E,Z),E.autofocus&&E.focus(),X||(R=Le(E,"click",e[44]),X=!0)},p(H,Me){Me[0]&67108864&&i!==(i=H[26]("bonus.canlendarTitle")+"")&&ne(n,i,z.contenteditable),Me[0]&67108864&&d!==(d=H[26]("bonus.from")+"")&&Ce(c,d),S(f,Q=Ie(re,[Me[0]&65536&&{max:H[16]},Me[0]&131072&&{value:H[17]},{placeholder:"From"},H[32]("VaadinDatePicker")])),S(l,V=Ie(L,[Me[0]&33554432&&H[25]("BonusCalendarStartDate")])),Me[0]&67108864&&y!==(y=H[26]("bonus.to")+"")&&Ce(_,y),S(w,W=Ie(U,[Me[0]&65536&&{value:H[16]},{placeholder:"To"},H[32]("VaadinDatePicker")])),S(g,Ee=Ie(oe,[Me[0]&33554432&&H[25]("BonusCalendarEndDate")])),S(a,ie=Ie(Oe,[Me[0]&33554432&&H[25]("BonusCalendarContainer")])),Me[0]&67108864&&I!==(I=H[26]("bonus.filter")+"")&&ne(Z,I,ae.contenteditable),S(E,ae=Ie(we,[Me[0]&33554432&&H[25]("BonusFilterButton"),Me[0]&2048&&{disabled:H[11]}])),S(t,A=Ie(Y,[Me[0]&33554432&&H[25]("BonusCalendarWrapper")]))},d(H){H&&D(t),e[42](null),e[43](null),X=!1,R()}}}function dC(e){let t,r,i,n=e[26]("bonus.bonusCode")+"",s,o,a,l,u,d,c,h=e[26]("bonus.claim")+"",f,b,g,v,y,_=[e[25]("BonusCodeInput"),{type:"text"},{id:"BonusCode"},{placeholder:u=e[26]("bonus.placeholder")}],x={};for(let P=0;P<_.length;P+=1)x=T(x,_[P]);let w=[e[25]("BonusClaimButton"),{disabled:b=e[19]||!e[23]}],N={};for(let P=0;P<w.length;P+=1)N=T(N,w[P]);let E=[e[25]("BonusCodeWrapper")],I={};for(let P=0;P<E.length;P+=1)I=T(I,E[P]);let Z=e[20]&&Yu(e),X=[e[25]("BonusCodeContainer")],R={};for(let P=0;P<X.length;P+=1)R=T(R,X[P]);return{c(){t=C("div"),r=C("label"),i=C("span"),i.textContent="*",s=O(n),o=$(),a=C("div"),l=C("input"),d=$(),c=C("button"),f=O(h),g=$(),Z&&Z.c(),m(i,"class","Asterisk"),m(r,"for","BonusCode"),S(l,x),S(c,N),S(a,I),S(t,R)},m(P,z){B(P,t,z),p(t,r),p(r,i),p(r,s),p(t,o),p(t,a),p(a,l),l.autofocus&&l.focus(),fn(l,e[18]),p(a,d),p(a,c),p(c,f),c.autofocus&&c.focus(),p(t,g),Z&&Z.m(t,null),v||(y=[Le(l,"input",e[40]),Le(l,"keyup",e[33]),Le(c,"click",e[41])],v=!0)},p(P,z){z[0]&67108864&&n!==(n=P[26]("bonus.bonusCode")+"")&&Ce(s,n),S(l,x=Ie(_,[z[0]&33554432&&P[25]("BonusCodeInput"),{type:"text"},{id:"BonusCode"},z[0]&67108864&&u!==(u=P[26]("bonus.placeholder"))&&{placeholder:u}])),z[0]&262144&&l.value!==P[18]&&fn(l,P[18]),z[0]&67108864&&h!==(h=P[26]("bonus.claim")+"")&&ne(f,h,N.contenteditable),S(c,N=Ie(w,[z[0]&33554432&&P[25]("BonusClaimButton"),z[0]&8912896&&b!==(b=P[19]||!P[23])&&{disabled:b}])),S(a,I=Ie(E,[z[0]&33554432&&P[25]("BonusCodeWrapper")])),P[20]?Z?Z.p(P,z):(Z=Yu(P),Z.c(),Z.m(t,null)):Z&&(Z.d(1),Z=null),S(t,R=Ie(X,[z[0]&33554432&&P[25]("BonusCodeContainer")]))},d(P){P&&D(t),Z&&Z.d(),v=!1,gt(y)}}}function Yu(e){let t,r=e[26]("bonus.invalidBonusCode")+"",i;return{c(){t=C("p"),i=O(r),m(t,"class","InvalidBonusCodeMessage"),m(t,"part","InvalidBonusCodeMessage")},m(n,s){B(n,t,s),p(t,i)},p(n,s){s[0]&67108864&&r!==(r=n[26]("bonus.invalidBonusCode")+"")&&Ce(i,r)},d(n){n&&D(t)}}}function cC(e){let t,r;function i(a,l){return a[10].length>0?mC:a[12]?pC:fC}let n=i(e),s=n(e),o=e[10].length!==0&&Wu(e);return{c(){s.c(),t=$(),o&&o.c(),r=Ft()},m(a,l){s.m(a,l),B(a,t,l),o&&o.m(a,l),B(a,r,l)},p(a,l){n===(n=i(a))&&s?s.p(a,l):(s.d(1),s=n(a),s&&(s.c(),s.m(t.parentNode,t))),a[10].length!==0?o?o.p(a,l):(o=Wu(a),o.c(),o.m(r.parentNode,r)):o&&(o.d(1),o=null)},d(a){a&&(D(t),D(r)),s.d(a),o&&o.d(a)}}}function hC(e){let t,r=[e[32]("ModalLoader")],i={};for(let n=0;n<r.length;n+=1)i=T(i,r[n]);return{c(){t=C("div"),S(t,i)},m(n,s){B(n,t,s)},p:ke,d(n){n&&D(t)}}}function fC(e){let t=e[26]("bonus.noBonus")+"",r;return{c(){r=O(t)},m(i,n){B(i,r,n)},p(i,n){n[0]&67108864&&t!==(t=i[26]("bonus.noBonus")+"")&&Ce(r,t)},d(i){i&&D(r)}}}function pC(e){let t,r=e[26]("bonus.error")+"",i,n,s;return{c(){t=C("div"),i=O(r),n=O(": "),s=O(e[12]),qs(t,"color","red")},m(o,a){B(o,t,a),p(t,i),p(t,n),p(t,s)},p(o,a){a[0]&67108864&&r!==(r=o[26]("bonus.error")+"")&&Ce(i,r),a[0]&4096&&Ce(s,o[12])},d(o){o&&D(t)}}}function mC(e){let t,r=je(e[10]),i=[];for(let o=0;o<r.length;o+=1)i[o]=Uu(Ru(e,r,o));let n=[e[32]("BonusList")],s={};for(let o=0;o<n.length;o+=1)s=T(s,n[o]);return{c(){t=C("ul");for(let o=0;o<i.length;o+=1)i[o].c();S(t,s)},m(o,a){B(o,t,a);for(let l=0;l<i.length;l+=1)i[l]&&i[l].m(t,null)},p(o,a){if(a[0]&37749885){r=je(o[10]);let l;for(l=0;l<r.length;l+=1){const u=Ru(o,r,l);i[l]?i[l].p(u,a):(i[l]=Uu(u),i[l].c(),i[l].m(t,null))}for(;l<i.length;l+=1)i[l].d(1);i.length=r.length}},d(o){o&&D(t),Xt(i,o)}}}function Uu(e){let t,r,i,n=[{rawbonus:JSON.stringify(e[63]),status:e[22],cmsendpoint:e[2],lang:e[0],clientstyling:e[4],clientstylingurl:e[5],mbsource:e[3],translationurl:e[6]}],s={};for(let l=0;l<n.length;l+=1)s=T(s,n[l]);let o=[e[25]("BonusItem")],a={};for(let l=0;l<o.length;l+=1)a=T(a,o[l]);return{c(){t=C("li"),r=C("casino-bonus-card"),i=$(),S(r,s),S(t,a)},m(l,u){B(l,t,u),p(t,r),p(t,i)},p(l,u){S(r,s=Ie(n,[u[0]&4195453&&{rawbonus:JSON.stringify(l[63]),status:l[22],cmsendpoint:l[2],lang:l[0],clientstyling:l[4],clientstylingurl:l[5],mbsource:l[3],translationurl:l[6]}])),S(t,a=Ie(o,[u[0]&33554432&&l[25]("BonusItem")]))},d(l){l&&D(t)}}}function Wu(e){let t;return{c(){t=C("casino-bonus-pagination"),Je(t,"totalitems",e[14]),Je(t,"currentpage",e[13]),Je(t,"pagesize",e[1]),Je(t,"limit",e[15]),Je(t,"clientstyling",e[4]),Je(t,"clientstylingurl",e[5]),Je(t,"mbsource",e[3])},m(r,i){B(r,t,i)},p(r,i){i[0]&16384&&Je(t,"totalitems",r[14]),i[0]&8192&&Je(t,"currentpage",r[13]),i[0]&2&&Je(t,"pagesize",r[1]),i[0]&32768&&Je(t,"limit",r[15]),i[0]&16&&Je(t,"clientstyling",r[4]),i[0]&32&&Je(t,"clientstylingurl",r[5]),i[0]&8&&Je(t,"mbsource",r[3])},d(r){r&&D(t)}}}function $u(e){let t,r,i,n,s=e[26]("bonus.forfeitMessage")+"",o,a,l,u,d=e[26]("bonus.forfeitCancel")+"",c,h,f,b=e[26]("bonus.forfeitConfirm")+"",g,v,y,_=[e[32]("ModalText")],x={};for(let V=0;V<_.length;V+=1)x=T(x,_[V]);let w=[e[32]("ModalCancel")],N={};for(let V=0;V<w.length;V+=1)N=T(N,w[V]);let E=[e[32]("ModalConfirm")],I={};for(let V=0;V<E.length;V+=1)I=T(I,E[V]);let Z=[e[32]("ModalButtons")],X={};for(let V=0;V<Z.length;V+=1)X=T(X,Z[V]);let R=[e[32]("ModalBody")],P={};for(let V=0;V<R.length;V+=1)P=T(P,R[V]);let z=[e[32]("ModalContent")],re={};for(let V=0;V<z.length;V+=1)re=T(re,z[V]);let Q=[e[25]("ModalWrapper")],L={};for(let V=0;V<Q.length;V+=1)L=T(L,Q[V]);return{c(){t=C("div"),r=C("div"),i=C("div"),n=C("p"),o=O(s),a=$(),l=C("div"),u=C("button"),c=O(d),h=$(),f=C("button"),g=O(b),S(n,x),S(u,N),S(f,I),S(l,X),S(i,P),S(r,re),S(t,L)},m(V,U){B(V,t,U),p(t,r),p(r,i),p(i,n),p(n,o),p(i,a),p(i,l),p(l,u),p(u,c),u.autofocus&&u.focus(),p(l,h),p(l,f),p(f,g),f.autofocus&&f.focus(),v||(y=[Le(u,"click",e[30]),Le(f,"click",e[45])],v=!0)},p(V,U){U[0]&67108864&&s!==(s=V[26]("bonus.forfeitMessage")+"")&&ne(o,s,x.contenteditable),U[0]&67108864&&d!==(d=V[26]("bonus.forfeitCancel")+"")&&ne(c,d,N.contenteditable),U[0]&67108864&&b!==(b=V[26]("bonus.forfeitConfirm")+"")&&ne(g,b,I.contenteditable),S(t,L=Ie(Q,[U[0]&33554432&&V[25]("ModalWrapper")]))},d(V){V&&D(t),v=!1,gt(y)}}}function _C(e){let t,r,i,n,s,o,a=je(e[27]),l=[];for(let w=0;w<a.length;w+=1)l[w]=zu(Hu(e,a,w));let u=[e[25]("BonusFilterWrapper")],d={};for(let w=0;w<u.length;w+=1)d=T(d,u[w]);function c(w,N){if(w[22]==="claimable")return dC;if(w[22]==="completed")return uC}let h=c(e),f=h&&h(e);function b(w,N){return w[11]?hC:cC}let g=b(e),v=g(e),y=e[21]&&$u(e),_=[e[32]("BonusesController")],x={};for(let w=0;w<_.length;w+=1)x=T(x,_[w]);return{c(){t=C("div"),r=C("div"),i=C("div");for(let w=0;w<l.length;w+=1)l[w].c();n=$(),f&&f.c(),s=$(),v.c(),o=$(),y&&y.c(),m(i,"class","BonusFilterContainer"),m(i,"part","BonusFilterContainer"),S(r,d),S(t,x)},m(w,N){B(w,t,N),p(t,r),p(r,i);for(let E=0;E<l.length;E+=1)l[E]&&l[E].m(i,null);p(t,n),f&&f.m(t,null),p(t,s),v.m(t,null),p(t,o),y&&y.m(t,null),e[46](t)},p(w,N){if(N[0]&239077376|N[1]&1){a=je(w[27]);let E;for(E=0;E<a.length;E+=1){const I=Hu(w,a,E);l[E]?l[E].p(I,N):(l[E]=zu(I),l[E].c(),l[E].m(i,null))}for(;E<l.length;E+=1)l[E].d(1);l.length=a.length}S(r,d=Ie(u,[N[0]&33554432&&w[25]("BonusFilterWrapper")])),h===(h=c(w))&&f?f.p(w,N):(f&&f.d(1),f=h&&h(w),f&&(f.c(),f.m(t,s))),g===(g=b(w))&&v?v.p(w,N):(v.d(1),v=g(w),v&&(v.c(),v.m(t,o))),w[21]?y?y.p(w,N):(y=$u(w),y.c(),y.m(t,null)):y&&(y.d(1),y=null)},i:ke,o:ke,d(w){w&&D(t),Xt(l,w),f&&f.d(),v.d(),y&&y.d(),e[46](null)}}}function gC(e,t,r){let i,n,s;Qu(e,Dd,j=>r(26,s=j));let{endpoint:o=""}=t,{lang:a="en"}=t,{session:l=""}=t,{currency:u="EUR"}=t,{limit:d=""}=t,{cmsendpoint:c=""}=t,{mbsource:h}=t,{clientstyling:f=""}=t,{clientstylingurl:b=""}=t,{translationurl:g=""}=t,v=window.navigator.userAgent,y=!1,_=[],x=!0,w="",N=1,E=0,I=2,Z,X,R,P="",z=!0,re=!1,Q=!1;Z=G(new Date).format("YYYY-MM-DD"),X=G(new Date).subtract(3,"months").format("YYYY-MM-DD");let L=X,V=Z,U,W,oe="active",Ee=!0,Oe=["active","completed","claimable"],ie="";Hd(v)&&(y=!0,I=1);const we=()=>{fetch(g).then(Se=>Se.json()).then(Se=>{Object.keys(Se).forEach(Ue=>{_n(Ue,Se[Ue])})}).catch(Se=>{console.log(Se)})};Object.keys(gn).forEach(j=>{_n(j,gn[j])}),Bn(()=>(window.addEventListener("message",ae,!1),()=>{U.removeEventListener("change",Hi),W.removeEventListener("change",zi),window.removeEventListener("message",ae)}));const ae=j=>{switch(j.data.type){case"PaginationChange":r(13,N=j.data.page),J(N);break;case"OnBonusClaimed":M(j.data.bonusCode);break;case"OnBonusForfeit":r(24,ie=j.data.bonus.id),r(21,Q=!0)}},ce=()=>rt(this,null,function*(){J(1)}),M=(j,Se)=>rt(this,null,function*(){r(23,Ee=!1);const Ue=yield Y(j);Ue.success?(r(20,re=!1),J(1)):(r(12,w=Ue.errorMessage),Se?r(20,re=!0):window.postMessage({type:"OnBonusClaimError",message:w,bonusCode:j})),window.postMessage({type:"OnBonusClaimedDone"}),r(23,Ee=!0)}),Y=j=>rt(this,null,function*(){return yield Yt(o+"/v1/bonus/claim",{method:"PUT",body:JSON.stringify({bonusCode:j,currency:u}),headers:{"x-SessionId":l,accept:"text/plain","Content-Type":"application/json-patch+json"}})}),A=j=>rt(this,null,function*(){r(23,Ee=!1);const Se=yield H(j);Se.success?J(1):r(12,w=Se.errorMessage),window.postMessage({type:"OnBonusForfeitedDone"}),r(23,Ee=!0),r(21,Q=!1)}),H=j=>rt(this,null,function*(){const Se=new URL(`${o}/v1/bonus/forfeit`),Ue={bonusID:j,lang:a};return Object.keys(Ue).map(_r=>{Se.searchParams.append(_r,Ue[_r])}),yield Yt(Se,{method:"DELETE",headers:{"x-SessionId":l,accept:"text/plain"}})}),Me=()=>{window.postMessage({type:"EnableScroll"},window.location.href),window.postMessage({type:"OnBonusForfeitedDone"}),r(21,Q=!1)},J=j=>rt(this,null,function*(){N!==j&&r(13,N=j);const Se=(j-1)*Number(d);r(11,x=!0),r(10,_=[]);const Ue=yield He(o,l,Se,{lang:a,limit:d});Ue.success?(r(14,E=Ue.total),r(10,_=Ue.items||Ue.bonuses)):r(12,w=Ue.errorMessage),r(11,x=!1)}),He=(Ut,tf,rf,...k)=>rt(this,[Ut,tf,rf,...k],function*(j,Se,Ue,_r={}){const ot=_r,{limit:q,lang:de}=ot,We=gs(ot,["limit","lang"]),Ke=(()=>{switch(oe){case"claimable":return oe;default:return"granted"}})(),Re=Zr(er({pagination:`limit=${q},offset=${Ue}`,language:de},We),{sortOrder:"desc"});if(oe==="completed"){let ct=new Date(L).toISOString(),tt=new Date(V+" 23:59:59").toISOString();Re.startTime=ct,Re.endTime=tt,Re.type="standard,freeBet,freeRound,cashBack,stakeBack,oddsBoost,wagering",Re.status="completed,released,forfeited,expired,closed"}oe==="active"&&(Re.type="standard,freeBet,freeRound,cashBack,stakeBack,oddsBoost,wagering",Re.status="active");const Wt=new URL(`${j}/v1/bonus/${Ke}`);return oe!=="claimable"?Wt.searchParams.append("expand","freeSpin"):delete Re.sortOrder,Object.keys(Re).map(ct=>{Wt.searchParams.append(ct,Re[ct])}),yield Yt(Wt,{headers:er({},Se?{"x-SessionId":Se}:{})})}),Be=(j,Se="")=>({part:j,class:[j,Se].join(" ")}),Yt=(Ue,..._r)=>rt(this,[Ue,..._r],function*(j,Se={}){let Ut;return Ut=yield fetch(j,Se),Ut.ok===!1?{errorMessage:Ut.status}:(Ut=yield Ut.json(),Ut)}),Hi=j=>{L=j.target.value},zi=j=>{V=j.target.value},Yi=()=>{U.addEventListener("change",Hi,!1),W.addEventListener("change",zi,!1)},us=()=>(r(20,re=!1),!!P),ds=()=>{r(19,z=!us())},cs=j=>{r(22,oe=j),J(1)};function Ui(){P=this.value,r(18,P)}const Wi=()=>{M(P,!0)};function $i(j){Mt[j?"unshift":"push"](()=>{U=j,r(8,U)})}function hs(j){Mt[j?"unshift":"push"](()=>{W=j,r(9,W)})}const fs=()=>J(1),ps=()=>A(ie);function ms(j){Mt[j?"unshift":"push"](()=>{R=j,r(7,R)})}return e.$$set=j=>{"endpoint"in j&&r(34,o=j.endpoint),"lang"in j&&r(0,a=j.lang),"session"in j&&r(35,l=j.session),"currency"in j&&r(36,u=j.currency),"limit"in j&&r(1,d=j.limit),"cmsendpoint"in j&&r(2,c=j.cmsendpoint),"mbsource"in j&&r(3,h=j.mbsource),"clientstyling"in j&&r(4,f=j.clientstyling),"clientstylingurl"in j&&r(5,b=j.clientstylingurl),"translationurl"in j&&r(6,g=j.translationurl)},e.$$.update=()=>{e.$$.dirty[0]&768&&U&&W&&Yi(),e.$$.dirty[1]&64&&r(25,i=(j,Se="")=>Be(`${j}${y?` ${j}Mobile`:""}`,Se)),e.$$.dirty[0]&1&&a&&Md(a),e.$$.dirty[0]&3|e.$$.dirty[1]&24&&r(38,n=o&&l&&a&&d),e.$$.dirty[1]&128&&n&&ce(),e.$$.dirty[0]&144&&f&&R&&Un(R,f),e.$$.dirty[0]&160&&b&&R&&Wn(R,b),e.$$.dirty[0]&136&&h&&R&&$n(R,`${h}.Style`),e.$$.dirty[0]&64&&g&&we()},[a,d,c,h,f,b,g,R,U,W,_,x,w,N,E,I,Z,X,P,z,re,Q,oe,Ee,ie,i,s,Oe,M,A,Me,J,Be,ds,o,l,u,y,n,cs,Ui,Wi,$i,hs,fs,ps,ms]}class ef extends Ln{constructor(t){super(),Nn(this,t,gC,_C,Ti,{endpoint:34,lang:0,session:35,currency:36,limit:1,cmsendpoint:2,mbsource:3,clientstyling:4,clientstylingurl:5,translationurl:6},lC,[-1,-1,-1])}get endpoint(){return this.$$.ctx[34]}set endpoint(t){this.$$set({endpoint:t}),me()}get lang(){return this.$$.ctx[0]}set lang(t){this.$$set({lang:t}),me()}get session(){return this.$$.ctx[35]}set session(t){this.$$set({session:t}),me()}get currency(){return this.$$.ctx[36]}set currency(t){this.$$set({currency:t}),me()}get limit(){return this.$$.ctx[1]}set limit(t){this.$$set({limit:t}),me()}get cmsendpoint(){return this.$$.ctx[2]}set cmsendpoint(t){this.$$set({cmsendpoint:t}),me()}get mbsource(){return this.$$.ctx[3]}set mbsource(t){this.$$set({mbsource:t}),me()}get clientstyling(){return this.$$.ctx[4]}set clientstyling(t){this.$$set({clientstyling:t}),me()}get clientstylingurl(){return this.$$.ctx[5]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),me()}get translationurl(){return this.$$.ctx[6]}set translationurl(t){this.$$set({translationurl:t}),me()}}In(ef,{endpoint:{},lang:{},session:{},currency:{},limit:{},cmsendpoint:{},mbsource:{},clientstyling:{},clientstylingurl:{},translationurl:{}},[],[],!0);exports.default=ef;
|